diff --git a/.travis.yml b/.travis.yml
index f0a6f99c..5b945961 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,19 +1,27 @@
language: node_js
cache:
- directories:
- - node_modules
+ directories:
+ - node_modules
+
node_js:
- - "9"
+ - "10"
- "8"
- "6"
-after_success:
- - npm run coverall
+
+install:
+ - npm install
+
+script:
+ - npm test
deploy:
- provider: npm
- email: $NPM_EMAIL
- api_key: $NPM_API_KEY
- skip_cleanup: true
- on:
- tags: true
- node: "8"
\ No newline at end of file
+ provider: npm
+ email: $NPM_EMAIL
+ api_key: $NPM_API_KEY
+ skip_cleanup: true
+ on:
+ tags: true
+ node: "8"
+
+after_success:
+ - npm run coverall
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fdb6c17f..6fa93c1b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,75 @@
+## 2.3.4 (2019-02-07)
+
+* #469 - fixes example in README, tested with a fresh vue-cli project ([b0037c9](https://github.com/vue-generators/vue-form-generator/commit/b0037c9))
+* #551 - added "is-disabled" class to the radios label ([1e9db8e](https://github.com/vue-generators/vue-form-generator/commit/1e9db8e)), closes [#551](https://github.com/vue-generators/vue-form-generator/issues/551)
+* Add vfg-field-matrix into the readme ([a898201](https://github.com/vue-generators/vue-form-generator/commit/a898201))
+* added optional field property `debounceValidateTime` which works at the field level, allowing indivi ([d98fa50](https://github.com/vue-generators/vue-form-generator/commit/d98fa50))
+* Ref #563 - return unique validation errors (prevents multiple validators from returning "this field ([f9c699b](https://github.com/vue-generators/vue-form-generator/commit/f9c699b)), closes [#563](https://github.com/vue-generators/vue-form-generator/issues/563)
+* single-quotes fix ([5756317](https://github.com/vue-generators/vue-form-generator/commit/5756317))
+* Update validators.js ([a282933](https://github.com/vue-generators/vue-form-generator/commit/a282933))
+* updated abstractField test, seems the `field.formOptions` wasn't being updated, the `this.$parent.op ([8c1f462](https://github.com/vue-generators/vue-form-generator/commit/8c1f462))
+* updated package-lock with latest deps ([f7d7c71](https://github.com/vue-generators/vue-form-generator/commit/f7d7c71))
+
+
+
+## 2.3.3 (2018-12-14)
+
+* #535, #526 - reversed "deep property path" fix ([da32bde](https://github.com/vue-generators/vue-form-generator/commit/da32bde)), closes [#535](https://github.com/vue-generators/vue-form-generator/issues/535) [#526](https://github.com/vue-generators/vue-form-generator/issues/526)
+* added "item.disabled" logic, supporting both boolean values and a function that is passed a referenc ([b227eb4](https://github.com/vue-generators/vue-form-generator/commit/b227eb4))
+* added "options" to VFG install function, appending custom "validators" to the validators object that ([892469e](https://github.com/vue-generators/vue-form-generator/commit/892469e))
+* added "type" attribute to inside buttons schema, defaults to "button" when one is not provided ([3306893](https://github.com/vue-generators/vue-form-generator/commit/3306893))
+* added an optional "unique" flag to "getFieldID" that appends lodash "uniqueId" to the ID when true. ([ab1daeb](https://github.com/vue-generators/vue-form-generator/commit/ab1daeb)), closes [#468](https://github.com/vue-generators/vue-form-generator/issues/468)
+* added newline ([5813f0a](https://github.com/vue-generators/vue-form-generator/commit/5813f0a))
+* Codacy (guard-for-in) fix ([4e81d2d](https://github.com/vue-generators/vue-form-generator/commit/4e81d2d))
+* code fix ([b3a1010](https://github.com/vue-generators/vue-form-generator/commit/b3a1010))
+* Fix required number input does not require a value ([f95b38c](https://github.com/vue-generators/vue-form-generator/commit/f95b38c))
+* fixed code structure ([3b750b3](https://github.com/vue-generators/vue-form-generator/commit/3b750b3))
+* fixed single-quotes ([dfee175](https://github.com/vue-generators/vue-form-generator/commit/dfee175))
+* fixes #480 - dates are always passed to "date" and "datetime-local" elements using the standard form ([db3413f](https://github.com/vue-generators/vue-form-generator/commit/db3413f)), closes [#480](https://github.com/vue-generators/vue-form-generator/issues/480)
+* fixes an issue with fieldPikaday modifying the field schema and attaching `this.$el` to it, the pika ([2024204](https://github.com/vue-generators/vue-form-generator/commit/2024204))
+* listen for model-updated from `fields`, and fix `debounceFormatFunction` property to match fieldInpu ([7ad1fca](https://github.com/vue-generators/vue-form-generator/commit/7ad1fca))
+* migrated VFG docs to newer GitBooks, created GitHub Repo for Docs to allow for easier maintenance, u ([d372f5b](https://github.com/vue-generators/vue-form-generator/commit/d372f5b))
+* feat: add maxElements slot to fieldVueMultiSelect ([2e91a2f](https://github.com/vue-generators/vue-form-generator/commit/2e91a2f))
+
+
+
+## 2.3.2 (2018-10-22)
+
+* Export dist ([9912b5e](https://github.com/vue-generators/vue-form-generator/commit/9912b5e))
+* Fix deep property path not working ([fb02f26](https://github.com/vue-generators/vue-form-generator/commit/fb02f26))
+* Fix fieldSubmit not calling validate method ([c82c44b](https://github.com/vue-generators/vue-form-generator/commit/c82c44b))
+* Fix Rawgit shut down ([34e08a6](https://github.com/vue-generators/vue-form-generator/commit/34e08a6))
+* docs: replace duplicated 2.3.0 with 2.3.1 ([69bbfce](https://github.com/vue-generators/vue-form-generator/commit/69bbfce))
+* feat(fields): add required attribute to checkbox component ([2b3c7e5](https://github.com/vue-generators/vue-form-generator/commit/2b3c7e5))
+* feat(fields): add required attribute to radios component ([8d04252](https://github.com/vue-generators/vue-form-generator/commit/8d04252))
+
+
+
+
+## 2.3.1 (2018-10-03)
+
+* Use lodash-webpack-plugin for even better size
+* Added required attribute to textarea
+
+
+
+## 2.3.0 (2018-09-19)
+
+* Fixed issue with SCSS variables being referenced incorrectly (#449)
+* Updated README to include new third-party VFG Fields
+* Rework of formGenerator use a component
+* Allow HTML for Field Label and Hints
+* Updated package.json URL's for VFG
+* Added a "noResult" slot to FieldVueMultiSelect
+* Include a reference to the VFG instance that triggered a "validated" event (3rd param)
+* Fixed a number parsing bug in IE/Edge with FieldInput
+* Added support for Bootstrap CSS Classes (`form-group` will not set width on `col-*` elements)
+
+
+
## 2.2.2 (2018-04-24)
+
* Fix NaN with value 0 on input type number/range.
* Fix bug in fieldUpload that threw error due to $event not being defined
* Added $event to onValidationError in fieldSubmit
diff --git a/README.md b/README.md
index f25ef668..e1040898 100644
--- a/README.md
+++ b/README.md
@@ -15,9 +15,11 @@ A schema-based form generator component for Vue.js.
## Demo
-[JSFiddle simple example](https://jsfiddle.net/icebob/0mg1v81e/)
+[JSFiddle simple example](https://jsfiddle.net/zoul0813/d8excp36/)
-[](https://jsfiddle.net/icebob/0mg1v81e/)
+[CodePen simple example](https://codepen.io/zoul0813/pen/OrNVNw)
+
+[](https://jsfiddle.net/zoul0813/d8excp36/)
## Features
@@ -25,7 +27,7 @@ A schema-based form generator component for Vue.js.
* multiple object editing
* 21 field types
* built-in validators
-* core & full bundles (11kb and 19kb gzipped)
+* core & full bundles (41kb and 50kb gzipped)
* Bootstrap friendly templates
* customizable styles
* can be extended easily with custom fields
@@ -33,7 +35,7 @@ A schema-based form generator component for Vue.js.
## Documentation
-[Online documentation on Gitbook](https://icebob.gitbooks.io/vueformgenerator/content/)
+[Online documentation on Gitbook](https://vue-generators.gitbook.io/vue-generators/)
## Dependencies
@@ -43,7 +45,7 @@ While built-in fields don't need external dependencies, optional fields may need
These dependencies fall into two camps: jQuery or Vanilla. You can find almost the same functionality in both flavors.
In the end, it's your choice to depend on jQuery or not.
-You can find details about dependencies in the official [documentation](https://icebob.gitbooks.io/vueformgenerator/content/) under each specific component.
+You can find details about dependencies in the official [documentation](https://vue-generators.gitbook.io/vue-generators/) under each specific component.
## Installation
@@ -77,8 +79,8 @@ VueFormGenerator come in two version : `core` and `full`.
Core is a more minimal version with only half the fields.
Full is core + other fields.
-* Full bundle: 75 kB (gzipped: 19 kB)
-* Core bundle: 39 kB (gzipped: 11 kB)
+* Full bundle: 172 kB (gzipped: 50 kB)
+* Core bundle: 146 kB (gzipped: 41 kB)
If you don't know what to choose, don't worry, the full is the default version.
If you want the slim down version, here is the changes:
@@ -107,73 +109,83 @@ If you want the slim down version, here is the changes:
+
```
Usage in local components
@@ -233,6 +245,7 @@ This way, it will be easier for everyone to find it. Thank you !
* [vfg-field-sourcecode](https://github.com/gwenaelp/vfg-field-sourcecode) - A source code field for vue-form-generator
* [vfg-field-array](https://github.com/gwenaelp/vfg-field-array) - A vue-form-generator field to handle arrays of items of any type.
* [vfg-field-object](https://github.com/gwenaelp/vfg-field-object) - A vue-form-generator field to handle objects, with or without schemas.
+* [vfg-field-matrix](https://github.com/shwld/vfg-field-matrix) - A matrix field for vue-form-generator.
## Contribution
diff --git a/bower.json b/bower.json
index 471b73c4..d8ea0950 100644
--- a/bower.json
+++ b/bower.json
@@ -1,34 +1,34 @@
{
- "name": "vue-form-generator",
- "version": "2.3.0",
- "homepage": "https://github.com/vue-generators/vue-form-generator/",
- "authors": [
- "Icebob"
- ],
- "description": "A schema-based form generator component for Vue.js",
- "main": [
- "dist/vfg.js",
- "dist/vfg.css",
- "dist/vfg-core.js",
- "dist/vfg-core.css"
- ],
- "moduleType": [
- "amd"
- ],
- "keywords": [
- "vue",
- "vuejs",
- "form",
- "generator",
- "schema",
- "json"
- ],
- "license": "MIT",
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "test",
- "tests"
- ]
+ "name": "vue-form-generator",
+ "version": "2.3.4",
+ "homepage": "https://github.com/vue-generators/vue-form-generator/",
+ "authors": [
+ "Icebob"
+ ],
+ "description": "A schema-based form generator component for Vue.js",
+ "main": [
+ "dist/vfg.js",
+ "dist/vfg.css",
+ "dist/vfg-core.js",
+ "dist/vfg-core.css"
+ ],
+ "moduleType": [
+ "amd"
+ ],
+ "keywords": [
+ "vue",
+ "vuejs",
+ "form",
+ "generator",
+ "schema",
+ "json"
+ ],
+ "license": "MIT",
+ "ignore": [
+ "**/.*",
+ "node_modules",
+ "bower_components",
+ "test",
+ "tests"
+ ]
}
diff --git a/build/webpack.build.config.js b/build/webpack.build.config.js
index 57b8a53b..8b975373 100644
--- a/build/webpack.build.config.js
+++ b/build/webpack.build.config.js
@@ -11,6 +11,7 @@ const banner =
" * Released under the MIT License.\n" +
" */\n";
const ExtractTextPlugin = require("extract-text-webpack-plugin");
+const LodashModuleReplacementPlugin = require("lodash-webpack-plugin");
const StatsPlugin = require("stats-webpack-plugin");
const vueLoaderConfig = require("./vue-loader.conf");
@@ -72,6 +73,10 @@ module.exports = [
NODE_ENV: JSON.stringify("production")
}
}),
+ new LodashModuleReplacementPlugin({
+ collections: true,
+ paths: true,
+ }),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
diff --git a/dev/projects/full/index.html b/dev/projects/full/index.html
index 4964707d..22ec55df 100644
--- a/dev/projects/full/index.html
+++ b/dev/projects/full/index.html
@@ -28,7 +28,7 @@
-
+
diff --git a/dev/projects/full/schema.js b/dev/projects/full/schema.js
index 343594f3..b3b8460a 100644
--- a/dev/projects/full/schema.js
+++ b/dev/projects/full/schema.js
@@ -2,7 +2,7 @@ import fecha from "fecha";
import { validators } from "../../../src";
-let customAsyncValidator = function(value) {
+let customAsyncValidator = function (value) {
return new Promise((resolve, reject) => {
setTimeout(() => {
if (value) resolve();
@@ -39,7 +39,7 @@ export default {
required: true,
help: "First name of user",
placeholder: "User's first name",
- styleClasses: "half-width",
+ styleClasses: "half-width col-xs-12 col-sm-6",
validator: validators.string,
onChanged(model, newVal, oldVal) {
console.log(`Model's name changed from ${oldVal} to ${newVal}. Model:`, model);
@@ -56,7 +56,7 @@ export default {
featured: true,
required: true,
placeholder: "User's last name",
- styleClasses: "half-width",
+ styleClasses: "half-width col-xs-12 col-sm-6",
validator: validators.string
},
{
@@ -387,14 +387,14 @@ export default {
{
classes: "btn-location",
label: "Current location",
- onclick: function(model) {
+ onclick: function (model) {
return this.$parent.getLocation(model);
}
},
{
classes: "btn-clear",
label: "Clear",
- onclick: function(model) {
+ onclick: function (model) {
model.address.geo = {
latitude: 0,
longitude: 0
diff --git a/dist/vfg-core.css b/dist/vfg-core.css
index 6f6a8955..d13c2914 100644
--- a/dist/vfg-core.css
+++ b/dist/vfg-core.css
@@ -1,7 +1,7 @@
/**
- * vue-form-generator v2.2.2
- * https://github.com/icebob/vue-form-generator
+ * vue-form-generator v2.3.4
+ * https://github.com/vue-generators/vue-form-generator/
* Released under the MIT License.
*/
-.vue-form-generator *{box-sizing:border-box}.vue-form-generator .form-control{display:block;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.vue-form-generator .form-control:not([class*=" col-"]){width:100%}.vue-form-generator span.help{margin-left:.3em;position:relative}.vue-form-generator span.help .icon{display:inline-block;width:16px;height:14px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAA+UlEQVQ4ja3TS0oDQRAG4C8+lq7ceICICoLGK7iXuNBbeAMJuPVOIm7cqmDiIncIggg+cMZFaqCnZyYKWtB0df31V1VXdfNH6S2wD9CP8xT3KH8T9BiTcE7XBMOfyBcogvCFO9ziLWwFRosyV+QxthNsA9dJkEYlvazsQdi3sBv6Ol6TBLX+HWT3fcQZ3vGM5fBLk+ynAU41m1biCXvhs4OPBDuBpa6GxF0P8YAj3GA1d1qJfdoS4DOIcIm1DK9x8iaWeDF/SP3QU6zRROpjLDFLsFlibx1jJaMkSIGrWKntvItcyTBKzCcybsvc9ZmYz3kz9Ooz/b98A8yvW13B3ch6AAAAAElFTkSuQmCC");background-repeat:no-repeat;background-position:50%}.vue-form-generator span.help .helpText{background-color:#444;bottom:30px;color:#fff;display:block;left:0;opacity:0;padding:20px;pointer-events:none;position:absolute;text-align:justify;width:300px;transition:all .25s ease-out;box-shadow:2px 2px 6px rgba(0,0,0,.5);border-radius:6px}.vue-form-generator span.help .helpText a{font-weight:700;text-decoration:underline}.vue-form-generator span.help .helpText:before{bottom:-20px;content:" ";display:block;height:20px;left:0;position:absolute;width:100%}.vue-form-generator span.help:hover .helpText{opacity:1;pointer-events:auto;transform:translateY(0)}.vue-form-generator .field-wrap{display:flex}.vue-form-generator .field-wrap .buttons{white-space:nowrap;margin-left:4px}.vue-form-generator .field-wrap button,.vue-form-generator .field-wrap input[type=submit]{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;touch-action:manipulation;cursor:pointer;user-select:none;color:#333;background-color:#fff;border:1px solid #ccc;border-radius:4px}.vue-form-generator .field-wrap button:not(:last-child),.vue-form-generator .field-wrap input[type=submit]:not(:last-child){margin-right:4px}.vue-form-generator .field-wrap button:hover,.vue-form-generator .field-wrap input[type=submit]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.vue-form-generator .field-wrap button:active,.vue-form-generator .field-wrap input[type=submit]:active{color:#333;background-color:#d4d4d4;border-color:#8c8c8c;outline:0;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.vue-form-generator .field-wrap button:disabled,.vue-form-generator .field-wrap input[type=submit]:disabled{opacity:.6;cursor:not-allowed}.vue-form-generator .hint{font-style:italic;font-size:.8em}.vue-form-generator .form-group{display:inline-block;vertical-align:top;width:100%;margin-bottom:1rem}.vue-form-generator .form-group label{font-weight:400}.vue-form-generator .form-group.featured>label{font-weight:700}.vue-form-generator .form-group.required>label:after{content:"*";font-weight:400;color:red;padding-left:.2em;font-size:1em}.vue-form-generator .form-group.disabled>label{color:#666;font-style:italic}.vue-form-generator .form-group.error input:not([type=checkbox]),.vue-form-generator .form-group.error select,.vue-form-generator .form-group.error textarea{border:1px solid red;background-color:rgba(255,0,0,.15)}.vue-form-generator .form-group.error .errors{color:red;font-size:.8em}.vue-form-generator .form-group.error .errors span{display:block;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAiklEQVR4Xt2TMQoCQQxF3xdhu72MpZU3GU/meBFLOztPYrVWsQmEWSaMsIXgK8P8RyYkMjO2sAN+K9gTIAmDAlzoUzE7p4IFytvDCQWJKSStYB2efcAvqZFM0BcstMx5naSDYFzfLhh/4SmRM+6Agw/xIX0tKEDFufeDNRUc4XqLRz3qabVIf3BMHwl6Ktexn3nmAAAAAElFTkSuQmCC");background-repeat:no-repeat;padding-left:17px;padding-top:0;margin-top:.2em;font-weight:600}.vue-form-generator .field-checkbox input{margin-left:12px}.vue-form-generator .field-checklist .dropList,.vue-form-generator .field-checklist .listbox{height:auto;max-height:150px;overflow:auto}.vue-form-generator .field-checklist .dropList .list-row label,.vue-form-generator .field-checklist .listbox .list-row label{font-weight:400}.vue-form-generator .field-checklist .dropList .list-row input,.vue-form-generator .field-checklist .listbox .list-row input{margin-right:.3em}.vue-form-generator .field-checklist .combobox{height:auto;overflow:hidden}.vue-form-generator .field-checklist .combobox .mainRow{cursor:pointer;position:relative;padding-right:10px}.vue-form-generator .field-checklist .combobox .mainRow .arrow{position:absolute;right:-9px;top:3px;width:16px;height:16px;transform:rotate(0deg);transition:transform .5s;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAGdJREFUOI3tzjsOwjAURNGDUqSgTxU5K2AVrJtswjUsgHSR0qdxAZZFPrS+3ZvRzBsqf9MUtBtazJk+oMe0VTriiZCFX8nbpENMgfARjsn74vKj5IFruhfc8d6zIF9S/Hyk5HS4spMVeFcOjszaOwMAAAAASUVORK5CYII=");background-repeat:no-repeat}.vue-form-generator .field-checklist .combobox .mainRow.expanded .arrow{transform:rotate(-180deg)}.vue-form-generator .field-checklist .combobox .dropList{transition:height .5s}.vue-form-generator .field-input .wrapper,.vue-form-generator .field-input input[type=radio]{width:100%}.vue-form-generator .field-input input[type=color]{width:60px}.vue-form-generator .field-input input[type=range]{padding:0}.vue-form-generator .field-input .helper{margin:auto .5em}.vue-form-generator .field-label span{display:block;width:100%;margin-left:12px}.vue-form-generator .field-radios .radio-list label{display:block}.vue-form-generator .field-radios .radio-list label input[type=radio]{margin-right:5px}.vue-form-generator .field-submit input{color:#fff!important;background-color:#337ab7!important;border-color:#2e6da4!important}.vue-form-generator .field-input .wrapper{width:100%}.vue-form-generator .field-input .helper{margin:auto .5em}
\ No newline at end of file
+.vue-form-generator *{box-sizing:border-box}.vue-form-generator .form-control{display:block;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.vue-form-generator .form-control:not([class*=" col-"]){width:100%}.vue-form-generator span.help{margin-left:.3em;position:relative}.vue-form-generator span.help .icon{display:inline-block;width:16px;height:14px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAA+UlEQVQ4ja3TS0oDQRAG4C8+lq7ceICICoLGK7iXuNBbeAMJuPVOIm7cqmDiIncIggg+cMZFaqCnZyYKWtB0df31V1VXdfNH6S2wD9CP8xT3KH8T9BiTcE7XBMOfyBcogvCFO9ziLWwFRosyV+QxthNsA9dJkEYlvazsQdi3sBv6Ol6TBLX+HWT3fcQZ3vGM5fBLk+ynAU41m1biCXvhs4OPBDuBpa6GxF0P8YAj3GA1d1qJfdoS4DOIcIm1DK9x8iaWeDF/SP3QU6zRROpjLDFLsFlibx1jJaMkSIGrWKntvItcyTBKzCcybsvc9ZmYz3kz9Ooz/b98A8yvW13B3ch6AAAAAElFTkSuQmCC");background-repeat:no-repeat;background-position:50%}.vue-form-generator span.help .helpText{background-color:#444;bottom:30px;color:#fff;display:block;left:0;opacity:0;padding:20px;pointer-events:none;position:absolute;text-align:justify;width:300px;transition:all .25s ease-out;box-shadow:2px 2px 6px rgba(0,0,0,.5);border-radius:6px}.vue-form-generator span.help .helpText a{font-weight:700;text-decoration:underline}.vue-form-generator span.help .helpText:before{bottom:-20px;content:" ";display:block;height:20px;left:0;position:absolute;width:100%}.vue-form-generator span.help:hover .helpText{opacity:1;pointer-events:auto;transform:translateY(0)}.vue-form-generator .field-wrap{display:flex}.vue-form-generator .field-wrap .buttons{white-space:nowrap;margin-left:4px}.vue-form-generator .field-wrap button,.vue-form-generator .field-wrap input[type=submit]{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;touch-action:manipulation;cursor:pointer;user-select:none;color:#333;background-color:#fff;border:1px solid #ccc;border-radius:4px}.vue-form-generator .field-wrap button:not(:last-child),.vue-form-generator .field-wrap input[type=submit]:not(:last-child){margin-right:4px}.vue-form-generator .field-wrap button:hover,.vue-form-generator .field-wrap input[type=submit]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.vue-form-generator .field-wrap button:active,.vue-form-generator .field-wrap input[type=submit]:active{color:#333;background-color:#d4d4d4;border-color:#8c8c8c;outline:0;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.vue-form-generator .field-wrap button:disabled,.vue-form-generator .field-wrap input[type=submit]:disabled{opacity:.6;cursor:not-allowed}.vue-form-generator .hint{font-style:italic;font-size:.8em}.form-group:not([class*=" col-"]){width:100%}.form-group{display:inline-block;vertical-align:top;margin-bottom:1rem}.form-group label{font-weight:400}.form-group label>:first-child{display:inline-block}.form-group.featured>label{font-weight:700}.form-group.required>label:after{content:"*";font-weight:400;color:red;padding-left:.2em;font-size:1em}.form-group.disabled>label{color:#666;font-style:italic}.form-group.error input:not([type=checkbox]),.form-group.error select,.form-group.error textarea{border:1px solid red;background-color:rgba(255,0,0,.15)}.form-group.error .errors{color:red;font-size:.8em}.form-group.error .errors span{display:block;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAiklEQVR4Xt2TMQoCQQxF3xdhu72MpZU3GU/meBFLOztPYrVWsQmEWSaMsIXgK8P8RyYkMjO2sAN+K9gTIAmDAlzoUzE7p4IFytvDCQWJKSStYB2efcAvqZFM0BcstMx5naSDYFzfLhh/4SmRM+6Agw/xIX0tKEDFufeDNRUc4XqLRz3qabVIf3BMHwl6Ktexn3nmAAAAAElFTkSuQmCC");background-repeat:no-repeat;padding-left:17px;padding-top:0;margin-top:.2em;font-weight:600}.vue-form-generator .field-checkbox input{margin-left:12px}.vue-form-generator .field-checklist .dropList,.vue-form-generator .field-checklist .listbox{height:auto;max-height:150px;overflow:auto}.vue-form-generator .field-checklist .dropList .list-row label,.vue-form-generator .field-checklist .listbox .list-row label{font-weight:400}.vue-form-generator .field-checklist .dropList .list-row input,.vue-form-generator .field-checklist .listbox .list-row input{margin-right:.3em}.vue-form-generator .field-checklist .combobox{height:auto;overflow:hidden}.vue-form-generator .field-checklist .combobox .mainRow{cursor:pointer;position:relative;padding-right:10px}.vue-form-generator .field-checklist .combobox .mainRow .arrow{position:absolute;right:-9px;top:3px;width:16px;height:16px;transform:rotate(0deg);transition:transform .5s;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAGdJREFUOI3tzjsOwjAURNGDUqSgTxU5K2AVrJtswjUsgHSR0qdxAZZFPrS+3ZvRzBsqf9MUtBtazJk+oMe0VTriiZCFX8nbpENMgfARjsn74vKj5IFruhfc8d6zIF9S/Hyk5HS4spMVeFcOjszaOwMAAAAASUVORK5CYII=");background-repeat:no-repeat}.vue-form-generator .field-checklist .combobox .mainRow.expanded .arrow{transform:rotate(-180deg)}.vue-form-generator .field-checklist .combobox .dropList{transition:height .5s}.vue-form-generator .field-input .wrapper,.vue-form-generator .field-input input[type=radio]{width:100%}.vue-form-generator .field-input input[type=color]{width:60px}.vue-form-generator .field-input input[type=range]{padding:0}.vue-form-generator .field-input .helper{margin:auto .5em}.vue-form-generator .field-label span{display:block;width:100%;margin-left:12px}.vue-form-generator .field-radios .radio-list label{display:block}.vue-form-generator .field-radios .radio-list label input[type=radio]{margin-right:5px}.vue-form-generator .field-submit input{color:#fff!important;background-color:#337ab7!important;border-color:#2e6da4!important}.vue-form-generator .field-input .wrapper{width:100%}.vue-form-generator .field-input .helper{margin:auto .5em}
\ No newline at end of file
diff --git a/dist/vfg-core.js b/dist/vfg-core.js
index d5dd695e..60406ccc 100644
--- a/dist/vfg-core.js
+++ b/dist/vfg-core.js
@@ -1,9 +1,7 @@
/**
- * vue-form-generator v2.2.2
- * https://github.com/icebob/vue-form-generator
+ * vue-form-generator v2.3.4
+ * https://github.com/vue-generators/vue-form-generator/
* Released under the MIT License.
*/
-!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VueFormGenerator=e():t.VueFormGenerator=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var n=e.slice(1),r=t[e[0]];return function(t,e,o){r.apply(this,[t,e,o].concat(n))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(t,e,n){"use strict";t.exports={component:n(1),schema:n(162),validators:n(226),abstractField:n(222).default,install:function(e){e.component("VueFormGenerator",t.exports.component)}}},function(t,e,n){n(2);var r=n(3)(n(4),n(310),null,null);t.exports=r.exports},function(t,e){},function(t,e){t.exports=function(t,e,n,r){var o,i=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(o=t,i=t.default);var u="function"==typeof i?i.options:i;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),n&&(u._scopeId=n),r){var s=u.computed||(u.computed={});Object.keys(r).forEach(function(t){var e=r[t];s[t]=function(){return e}})}return{esModule:o,exports:i,options:u}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=r(o),a=n(76),u=r(a),s=n(80),c=r(s),f=n(87),l=r(f),d=n(89),p=r(d),h=n(90),v=r(h),m=n(92),b=r(m),y=n(120),g=r(y),x=n(162),_={},j=n(218);(0,b.default)(j.keys(),function(t){var e=t.replace(/^\.\//,"").replace(/\.vue/,"");_[e]=j(t)});e.default={components:_,props:{schema:Object,model:Object,options:{type:Object,default:function(){return{validateAfterLoad:!1,validateAsync:!1,validateAfterChanged:!1,validationErrorClass:"error",validationSuccessClass:""}}},multiple:{type:Boolean,default:!1},isNewModel:{type:Boolean,default:!1},tag:{type:String,default:"fieldset",validator:function(t){return t.length>0}}},data:function(){return{errors:[]}},computed:{fields:function(){var t=this,e=[];return this.schema&&this.schema.fields&&(0,b.default)(this.schema.fields,function(n){t.multiple&&n.multi!==!0||e.push(n)}),e},groups:function(){var t=[];return this.schema&&this.schema.groups&&(0,b.default)(this.schema.groups,function(e){t.push(e)}),t}},watch:{model:function(t,e){var n=this;e!=t&&null!=t&&this.$nextTick(function(){n.options.validateAfterLoad===!0&&n.isNewModel!==!0?n.validate():n.clearValidationErrors()})}},mounted:function(){var t=this;this.$nextTick(function(){t.model&&(t.options.validateAfterLoad===!0&&t.isNewModel!==!0?t.validate():t.clearValidationErrors())})},methods:{getFieldRowClasses:function(t){var e,n=this.fieldErrors(t).length>0,r=(e={},(0,u.default)(e,(0,g.default)(this.options,"validationErrorClass","error"),n),(0,u.default)(e,(0,g.default)(this.options,"validationSuccessClass","valid"),!n),(0,u.default)(e,"disabled",this.fieldDisabled(t)),(0,u.default)(e,"readonly",this.fieldReadonly(t)),(0,u.default)(e,"featured",this.fieldFeatured(t)),(0,u.default)(e,"required",this.fieldRequired(t)),e);return(0,l.default)(t.styleClasses)?(0,b.default)(t.styleClasses,function(t){return r[t]=!0}):(0,c.default)(t.styleClasses)&&(r[t.styleClasses]=!0),(0,p.default)(t.type)||(r["field-"+t.type]=!0),r},getFieldType:function(t){return"field-"+t.type},fieldTypeHasLabel:function(t){if((0,p.default)(t.label))return!1;var e="";switch(e="input"===t.type?t.inputType:t.type){case"button":case"submit":case"reset":return!1;default:return!0}},fieldDisabled:function(t){return(0,v.default)(t.disabled)?t.disabled.call(this,this.model,t,this):!(0,p.default)(t.disabled)&&t.disabled},fieldRequired:function(t){return(0,v.default)(t.required)?t.required.call(this,this.model,t,this):!(0,p.default)(t.required)&&t.required},fieldVisible:function(t){return(0,v.default)(t.visible)?t.visible.call(this,this.model,t,this):!!(0,p.default)(t.visible)||t.visible},fieldReadonly:function(t){return(0,v.default)(t.readonly)?t.readonly.call(this,this.model,t,this):!(0,p.default)(t.readonly)&&t.readonly},fieldFeatured:function(t){return(0,v.default)(t.featured)?t.featured.call(this,this.model,t,this):!(0,p.default)(t.featured)&&t.featured},fieldHint:function(t){return(0,v.default)(t.hint)?t.hint.call(this,this.model,t,this):t.hint},buttonClickHandler:function(t,e,n){return t.onclick.call(this,this.model,e,n,this)},onFieldValidated:function(t,e,n){var r=this;this.errors=this.errors.filter(function(t){return t.field!=n.schema}),!t&&e&&e.length>0&&(0,b.default)(e,function(t){r.errors.push({field:n.schema,error:t})});var o=0==this.errors.length;this.$emit("validated",o,this.errors)},validate:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===e&&(e=(0,g.default)(this.options,"validateAsync",!1)),this.clearValidationErrors();var n=[],r=[];(0,b.default)(this.$children,function(t){(0,v.default)(t.validate)&&(n.push(t),r.push(t.validate(!0)))});var o=function(r){var o=[];(0,b.default)(r,function(t,e){(0,l.default)(t)&&t.length>0&&(0,b.default)(t,function(t){o.push({field:n[e].schema,error:t})})}),t.errors=o;var i=0==o.length;return t.$emit("validated",i,o),e?o:i};return e?i.default.all(r).then(o):o(r)},clearValidationErrors:function(){this.errors.splice(0),(0,b.default)(this.$children,function(t){t.clearValidationErrors()})},modelUpdated:function(t,e){this.$emit("model-updated",t,e)},buttonVisibility:function(t){return t.buttons&&t.buttons.length>0},fieldErrors:function(t){var e=this.errors.filter(function(e){return e.field==t});return e.map(function(t){return t.error})},getFieldID:function(t){var e=this.options&&this.options.fieldIdPrefix?this.options.fieldIdPrefix:"";return(0,x.slugifyFormID)(t,e)}}}},function(t,e,n){t.exports={default:n(6),__esModule:!0}},function(t,e,n){n(7),n(8),n(52),n(56),n(74),n(75),t.exports=n(16).Promise},function(t,e){},function(t,e,n){"use strict";var r=n(9)(!0);n(12)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(10),o=n(11);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r=n(13),o=n(14),i=n(30),a=n(19),u=n(31),s=n(32),c=n(48),f=n(50),l=n(49)("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",v="values",m=function(){return this};t.exports=function(t,e,n,b,y,g,x){s(n,e,b);var _,j,w,O=function(t){if(!d&&t in S)return S[t];switch(t){case h:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},M=e+" Iterator",C=y==v,F=!1,S=t.prototype,T=S[l]||S[p]||y&&S[y],I=T||O(y),k=y?C?O("entries"):I:void 0,A="Array"==e?S.entries||T:T;if(A&&(w=f(A.call(new t)),w!==Object.prototype&&w.next&&(c(w,M,!0),r||"function"==typeof w[l]||a(w,l,m))),C&&T&&T.name!==v&&(F=!0,I=function(){return T.call(this)}),r&&!x||!d&&!F&&S[l]||a(S,l,I),u[e]=I,u[M]=m,y)if(_={values:C?I:O(v),keys:g?I:O(h),entries:k},x)for(j in _)j in S||i(S,j,_[j]);else o(o.P+o.F*(d||F),e,_);return _}},function(t,e){t.exports=!0},function(t,e,n){var r=n(15),o=n(16),i=n(17),a=n(19),u=n(29),s="prototype",c=function(t,e,n){var f,l,d,p=t&c.F,h=t&c.G,v=t&c.S,m=t&c.P,b=t&c.B,y=t&c.W,g=h?o:o[e]||(o[e]={}),x=g[s],_=h?r:v?r[e]:(r[e]||{})[s];h&&(n=e);for(f in n)l=!p&&_&&void 0!==_[f],l&&u(g,f)||(d=l?_[f]:n[f],g[f]=h&&"function"!=typeof _[f]?n[f]:b&&l?i(d,r):y&&_[f]==d?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[s]=t[s],e}(d):m&&"function"==typeof d?i(Function.call,d):d,m&&((g.virtual||(g.virtual={}))[f]=d,t&c.R&&x&&!x[f]&&a(x,f,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(18);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(20),o=n(28);t.exports=n(24)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(21),o=n(23),i=n(27),a=Object.defineProperty;e.f=n(24)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(22);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(24)&&!n(25)(function(){return 7!=Object.defineProperty(n(26)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){t.exports=!n(25)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(22),o=n(15).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(22);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=n(19)},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(33),o=n(28),i=n(48),a={};n(19)(a,n(49)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(21),o=n(34),i=n(46),a=n(43)("IE_PROTO"),u=function(){},s="prototype",c=function(){var t,e=n(26)("iframe"),r=i.length,o="<",a=">";for(e.style.display="none",n(47).appendChild(e),e.src="/service/javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),c=t.F;r--;)delete c[s][i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[s]=r(t),n=new u,u[s]=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(20),o=n(21),i=n(35);t.exports=n(24)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,s=0;u>s;)r.f(t,n=a[s++],e[n]);return t}},function(t,e,n){var r=n(36),o=n(46);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(29),o=n(37),i=n(40)(!1),a=n(43)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(38),o=n(11);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(39);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(37),o=n(41),i=n(42);t.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),f=i(a,c);if(t&&n!=n){for(;c>f;)if(u=s[f++],u!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(10),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(10),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(44)("keys"),o=n(45);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(16),o=n(15),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(13)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(15).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(20).f,o=n(29),i=n(49)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(44)("wks"),o=n(45),i=n(15).Symbol,a="function"==typeof i,u=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};u.store=r},function(t,e,n){var r=n(29),o=n(51),i=n(43)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(11);t.exports=function(t){return Object(r(t))}},function(t,e,n){n(53);for(var r=n(15),o=n(19),i=n(31),a=n(49)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r,o,i,a,u=n(13),s=n(15),c=n(17),f=n(57),l=n(14),d=n(22),p=n(18),h=n(58),v=n(59),m=n(63),b=n(64).set,y=n(66)(),g=n(67),x=n(68),_=n(69),j=n(70),w="Promise",O=s.TypeError,M=s.process,C=M&&M.versions,F=C&&C.v8||"",S=s[w],T="process"==f(M),I=function(){},k=o=g.f,A=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(49)("species")]=function(t){t(I,I)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(I)instanceof e&&0!==F.indexOf("6.6")&&_.indexOf("Chrome/66")===-1}catch(t){}}(),P=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},D=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,u=o?e.ok:e.fail,s=e.resolve,c=e.reject,f=e.domain;try{u?(o||(2==t._h&&V(t),t._h=1),u===!0?n=r:(f&&f.enter(),n=u(r),f&&(f.exit(),a=!0)),n===e.promise?c(O("Promise-chain cycle")):(i=P(n))?i.call(n,s,c):s(n)):c(r)}catch(t){f&&!a&&f.exit(),c(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&E(t)})}},E=function(t){b.call(s,function(){var e,n,r,o=t._v,i=N(t);if(i&&(e=x(function(){T?M.emit("unhandledRejection",o,t):(n=s.onunhandledrejection)?n({promise:t,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=T||N(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},V=function(t){b.call(s,function(){var e;T?M.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},L=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),D(e,!0))},R=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw O("Promise can't be resolved itself");(e=P(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,c(R,r,1),c(L,r,1))}catch(t){L.call(r,t)}}):(n._v=t,n._s=1,D(n,!1))}catch(t){L.call({_w:n,_d:!1},t)}}};A||(S=function(t){h(this,S,w,"_h"),p(t),r.call(this);try{t(c(R,this,1),c(L,this,1))}catch(t){L.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(71)(S.prototype,{then:function(t,e){var n=k(m(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=T?M.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&D(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(R,t,1),this.reject=c(L,t,1)},g.f=k=function(t){return t===S||t===a?new i(t):o(t)}),l(l.G+l.W+l.F*!A,{Promise:S}),n(48)(S,w),n(72)(w),a=n(16)[w],l(l.S+l.F*!A,w,{reject:function(t){var e=k(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(u||!A),w,{resolve:function(t){return j(u&&this===a?S:this,t)}}),l(l.S+l.F*!(A&&n(73)(function(t){S.all(t).catch(I)})),w,{all:function(t){var e=this,n=k(e),r=n.resolve,o=n.reject,i=x(function(){var n=[],i=0,a=1;v(t,!1,function(t){var u=i++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=k(e),r=n.reject,o=x(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e,n){var r=n(39),o=n(49)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(17),o=n(60),i=n(61),a=n(21),u=n(41),s=n(62),c={},f={},e=t.exports=function(t,e,n,l,d){var p,h,v,m,b=d?function(){return t}:s(t),y=r(n,l,e?2:1),g=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(i(b)){for(p=u(t.length);p>g;g++)if(m=e?y(a(h=t[g])[0],h[1]):y(t[g]),m===c||m===f)return m}else for(v=b.call(t);!(h=v.next()).done;)if(m=o(v,y,h.value,e),m===c||m===f)return m};e.BREAK=c,e.RETURN=f},function(t,e,n){var r=n(21);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(31),o=n(49)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(57),o=n(49)("iterator"),i=n(31);t.exports=n(16).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(21),o=n(18),i=n(49)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r,o,i,a=n(17),u=n(65),s=n(47),c=n(26),f=n(15),l=f.process,d=f.setImmediate,p=f.clearImmediate,h=f.MessageChannel,v=f.Dispatch,m=0,b={},y="onreadystatechange",g=function(){var t=+this;if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},x=function(t){g.call(t.data)};d&&p||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++m]=function(){u("function"==typeof t?t:Function(t),e)},r(m),m},p=function(t){delete b[t]},"process"==n(39)(l)?r=function(t){l.nextTick(a(g,t,1))}:v&&v.now?r=function(t){v.now(a(g,t,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=x,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",x,!1)):r=y in c("script")?function(t){s.appendChild(c("script"))[y]=function(){s.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:d,clear:p}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(15),o=n(64).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n(39)(a);t.exports=function(){var t,e,n,c=function(){var r,o;for(s&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var f=u.resolve(void 0);n=function(){f.then(c)}}else n=function(){o.call(r,c)};else{var l=!0,d=document.createTextNode("");new i(c).observe(d,{characterData:!0}),n=function(){d.data=l=!l}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=o(e),this.reject=o(n)}var o=n(18);t.exports.f=function(t){return new r(t)}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(15),o=r.navigator;t.exports=o&&o.userAgent||""},function(t,e,n){var r=n(21),o=n(22),i=n(67);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t),a=n.resolve;return a(e),n.promise}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){"use strict";var r=n(15),o=n(16),i=n(20),a=n(24),u=n(49)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];a&&e&&!e[u]&&i.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(49)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(14),o=n(16),i=n(15),a=n(63),u=n(70);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then(function(){return n})}:t,n?function(n){return u(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(14),o=n(67),i=n(68);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(77),i=r(o);e.default=function(t,e,n){return e in t?(0,i.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports={default:n(78),__esModule:!0}},function(t,e,n){n(79);var r=n(16).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(14);r(r.S+r.F*!n(24),"Object",{defineProperty:n(20).f})},function(t,e,n){function r(t){return"string"==typeof t||!i(t)&&a(t)&&o(t)==u}var o=n(81),i=n(87),a=n(88),u="[object String]";t.exports=r},function(t,e,n){function r(t){return null==t?void 0===t?s:u:c&&c in Object(t)?i(t):a(t)}var o=n(82),i=n(85),a=n(86),u="[object Null]",s="[object Undefined]",c=o?o.toStringTag:void 0;t.exports=r},function(t,e,n){var r=n(83),o=r.Symbol;t.exports=o},function(t,e,n){var r=n(84),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,function(){return this}())},function(t,e,n){function r(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var o=u.call(t);return r&&(e?t[s]=n:delete t[s]),o}var o=n(82),i=Object.prototype,a=i.hasOwnProperty,u=i.toString,s=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return o.call(t)}var r=Object.prototype,o=r.toString;t.exports=n},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e){function n(t){return null==t}t.exports=n},function(t,e,n){function r(t){if(!i(t))return!1;var e=o(t);return e==u||e==s||e==a||e==c}var o=n(81),i=n(91),a="[object AsyncFunction]",u="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";t.exports=r},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){function r(t,e){var n=u(t)?o:i;return n(t,a(e))}var o=n(93),i=n(94),a=n(118),u=n(87);t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n-1&&t%1==0&&t-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e,n){(function(t){var r=n(84),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o,u=a&&r.process,s=function(){try{return u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=s}).call(e,n(104)(t))},function(t,e,n){function r(t){if(!o(t))return i(t);var e=[];for(var n in Object(t))u.call(t,n)&&"constructor"!=n&&e.push(n);return e}var o=n(113),i=n(114),a=Object.prototype,u=a.hasOwnProperty;t.exports=r},function(t,e){function n(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||r;return t===n}var r=Object.prototype;t.exports=n},function(t,e,n){var r=n(115),o=r(Object.keys,Object);t.exports=o},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){function r(t){return null!=t&&i(t.length)&&!o(t)}var o=n(90),i=n(109);t.exports=r},function(t,e,n){function r(t,e){return function(n,r){if(null==n)return n;if(!o(n))return t(n,r);for(var i=n.length,a=e?i:-1,u=Object(n);(e?a--:++a-1}var o=n(146);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var o=n(146);t.exports=r},function(t,e,n){var r=n(133),o=n(83),i=r(o,"Map");t.exports=i},function(t,e,n){function r(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}var o=n(153);t.exports=r},function(t,e,n){function r(t,e){var n=t.__data__;return o(e)?n["string"==typeof e?"string":"hash"]:n.map}var o=n(154);t.exports=r},function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},function(t,e,n){function r(t){return o(this,t).get(t)}var o=n(153);t.exports=r},function(t,e,n){function r(t){return o(this,t).has(t)}var o=n(153);t.exports=r},function(t,e,n){function r(t,e){var n=o(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var o=n(153);t.exports=r},function(t,e,n){function r(t){return null==t?"":o(t)}var o=n(159);t.exports=r},function(t,e,n){function r(t){if("string"==typeof t)return t;if(a(t))return i(t,r)+"";if(u(t))return f?f.call(t):"";var e=t+"";return"0"==e&&1/t==-s?"-0":e}var o=n(82),i=n(160),a=n(87),u=n(124),s=1/0,c=o?o.prototype:void 0,f=c?c.toString:void 0;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n1&&void 0!==arguments[1]?arguments[1]:{};return(0,p.default)(t.fields,function(n){void 0===(0,b.default)(e,n.model)&&void 0!==n.default&&((0,u.default)(n.default)?(0,v.default)(e,n.model,n.default(n,t,e)):(0,l.default)(n.default)||(0,c.default)(n.default)?(0,v.default)(e,n.model,(0,i.default)(n.default)):(0,v.default)(e,n.model,n.default))}),e},t.exports.getMultipleFields=function(t){var e=[];return(0,p.default)(t.fields,function(t){t.multi===!0&&e.push(t)}),e},t.exports.mergeMultiObjectFields=function(e,n){var r={},o=t.exports.getMultipleFields(e);return(0,p.default)(o,function(t){var e=void 0,o=!0,i=t.model;(0,p.default)(n,function(t){var n=(0,b.default)(t,i);o?(e=n,o=!1):e!=n&&(e=void 0)}),(0,v.default)(r,i,e)}),r},t.exports.slugifyFormID=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"undefined"!=typeof t.id?e+t.id:e+(t.inputName||t.label||t.model||"").toString().trim().toLowerCase().replace(/ |_/g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-]+)/g,"")},t.exports.slugify=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.toString().trim().replace(/ /g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-_\/.\/:]+)/g,"")}},function(t,e,n){function r(t){return o(t,i|a)}var o=n(164),i=1,a=4;t.exports=r},function(t,e,n){function r(t,e,n,F,S,T){var I,P=e&w,D=e&O,N=e&M;if(n&&(I=S?n(t,F,S,T):n(t)),void 0!==I)return I;if(!_(t))return t;var V=g(t);if(V){if(I=m(t),!P)return f(t,I)}else{var L=v(t),R=L==k||L==A;if(x(t))return c(t,P);if(L==E||L==C||R&&!S){if(I=D||R?{}:y(t),!P)return D?d(t,s(I,t)):l(t,u(I,t))}else{if(!Q[L])return S?t:{};I=b(t,L,r,P)}}T||(T=new o);var Y=T.get(t);if(Y)return Y;T.set(t,I);var $=N?D?h:p:D?keysIn:j,z=V?void 0:$(t);return i(z||t,function(o,i){z&&(i=o,o=t[i]),a(I,i,r(o,e,n,i,t,T))}),I}var o=n(165),i=n(93),a=n(171),u=n(174),s=n(176),c=n(180),f=n(181),l=n(182),d=n(186),p=n(190),h=n(192),v=n(193),m=n(198),b=n(199),y=n(213),g=n(87),x=n(103),_=n(91),j=n(98),w=1,O=2,M=4,C="[object Arguments]",F="[object Array]",S="[object Boolean]",T="[object Date]",I="[object Error]",k="[object Function]",A="[object GeneratorFunction]",P="[object Map]",D="[object Number]",E="[object Object]",N="[object RegExp]",V="[object Set]",L="[object String]",R="[object Symbol]",Y="[object WeakMap]",$="[object ArrayBuffer]",z="[object DataView]",H="[object Float32Array]",q="[object Float64Array]",U="[object Int8Array]",B="[object Int16Array]",G="[object Int32Array]",Z="[object Uint8Array]",W="[object Uint8ClampedArray]",J="[object Uint16Array]",K="[object Uint32Array]",Q={};Q[C]=Q[F]=Q[$]=Q[z]=Q[S]=Q[T]=Q[H]=Q[q]=Q[U]=Q[B]=Q[G]=Q[P]=Q[D]=Q[E]=Q[N]=Q[V]=Q[L]=Q[R]=Q[Z]=Q[W]=Q[J]=Q[K]=!0,Q[I]=Q[k]=Q[Y]=!1,t.exports=r},function(t,e,n){function r(t){var e=this.__data__=new o(t);this.size=e.size}var o=n(143),i=n(166),a=n(167),u=n(168),s=n(169),c=n(170);r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=u,r.prototype.has=s,r.prototype.set=c,t.exports=r},function(t,e,n){function r(){this.__data__=new o,this.size=0}var o=n(143);t.exports=r},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length0?r=r.concat(t):(0,d.default)(t)&&r.push(t)}),(0,h.default)(e.schema.onValidated)&&e.schema.onValidated.call(e,e.model,r,e.schema);var o=0==r.length;return t||e.$emit("validated",o,r,e),e.errors=r,r};return n?a.default.all(r).then(u):u(r)},debouncedValidate:function(){(0,h.default)(this.debouncedValidateFunc)||(this.debouncedValidateFunc=(0,s.default)(this.validate.bind(this),(0,y.default)(this,"$parent.options.validateDebounceTime",500))),this.debouncedValidateFunc()},updateModelValue:function(t,e){var n=!1;(0,h.default)(this.schema.set)?(this.schema.set(this.model,t),n=!0):this.schema.model&&(this.setModelValueByPath(this.schema.model,t),n=!0),n&&(this.$emit("model-updated",t,this.schema.model),(0,h.default)(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,t,e,this.schema),this.$parent.options&&this.$parent.options.validateAfterChanged===!0&&(this.$parent.options.validateDebounceTime>0?this.debouncedValidate():this.validate()))},clearValidationErrors:function(){this.errors.splice(0)},setModelValueByPath:function(t,e){var n=t.replace(/\[(\w+)\]/g,".$1");n=n.replace(/^\./,"");for(var r=this.model,o=n.split("."),i=0,a=o.length;i=e||n<0||C&&r>=x}function p(){var t=i();return d(t)?h(t):void(j=setTimeout(p,l(t)))}function h(t){return j=void 0,F&&y?r(t):(y=g=void 0,_)}function v(){void 0!==j&&clearTimeout(j),O=0,y=w=g=j=void 0}function m(){return void 0===j?_:h(i())}function b(){var t=i(),n=d(t);if(y=arguments,g=this,w=t,n){if(void 0===j)return f(w);if(C)return j=setTimeout(p,e),r(w)}return void 0===j&&(j=setTimeout(p,e)),_}var y,g,x,_,j,w,O=0,M=!1,C=!1,F=!0;if("function"!=typeof t)throw new TypeError(u);return e=a(e)||0,o(n)&&(M=!!n.leading,C="maxWait"in n,x=C?s(a(n.maxWait)||0,e):x,F="trailing"in n?!!n.trailing:F),b.cancel=v,b.flush=m,b}var o=n(91),i=n(224),a=n(225),u="Expected a function",s=Math.max,c=Math.min;t.exports=r},function(t,e,n){var r=n(83),o=function(){return r.Date.now()};t.exports=o},function(t,e,n){function r(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(u,"");var n=c.test(t);return n||f.test(t)?l(t.slice(2),n?2:8):s.test(t)?a:+t}var o=n(91),i=n(124),a=NaN,u=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,l=parseInt;t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;return(0,g.default)(t)||""===t?e?[i(n.fieldIsRequired)]:[]:null}function i(t){if(null!=t&&arguments.length>1)for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:O;return o(t,e.required,r)},number:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=[];return(0,b.default)(t)?(!(0,g.default)(e.min)&&te.max&&u.push(i(r.numberTooBig,e.max))):u.push(i(r.invalidNumber)),u},integer:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=M.number(t,e,n,r);return(0,v.default)(t)||u.push(i(r.invalidInteger)),u},double:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);return null!=a?a:!(0,b.default)(t)||isNaN(t)?[i(r.invalidNumber)]:void 0},string:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=[];return(0,p.default)(t)?(!(0,g.default)(e.min)&&t.lengthe.max&&u.push(i(r.textTooBig,t.length,e.max))):u.push(i(r.thisNotText)),u},array:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O;if(e.required){if(!(0,l.default)(t))return[i(r.thisNotArray)];if(0==t.length)return[i(r.fieldIsRequired)]}if(!(0,g.default)(t)){if(!(0,g.default)(e.min)&&t.lengthe.max)return[i(r.selectMaxItems,e.max)]}},date:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=new Date(t);if(!u)return[i(r.invalidDate)];var s=[];if(!(0,g.default)(e.min)){var c=new Date(e.min);u.valueOf()f.valueOf()&&s.push(i(r.dateIsLate,w.default.format(u),w.default.format(f)))}return s},regexp:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;if(!(0,g.default)(e.pattern)){var u=new RegExp(e.pattern);if(!u.test(t))return[i(r.invalidFormat)]}},email:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return u.test(t)?void 0:[i(r.invalidEmail)]},url:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/g;return u.test(t)?void 0:[i(r.invalidURL)]},creditCard:function t(e,n,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,u=o(e,n.required,a);if(null!=u)return u;var t=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,s=e.replace(/[^0-9]+/g,"");if(!t.test(s))return[i(a.invalidCard)];for(var c=0,f=void 0,l=void 0,d=void 0,p=s.length-1;p>=0;p--)f=s.substring(p,p+1),l=parseInt(f,10),d?(l*=2,c+=l>=10?l%10+1:l):c+=l,d=!d;return c%10===0&&s?void 0:[i(a.invalidCardNumber)]},alpha:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=/^[a-zA-Z]*$/;return u.test(t)?void 0:[i(r.invalidTextContainNumber)]},alphaNumeric:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=/^[a-zA-Z0-9]*$/;return u.test(t)?void 0:[i(r.invalidTextContainSpec)]}};t.exports=M,(0,u.default)(t.exports).forEach(function(e){var n=t.exports[e];(0,c.default)(n)&&(n.locale=function(t){return function(e,r,o){return n(e,r,o,(0,_.default)(t,O))}})})},function(t,e,n){t.exports={default:n(228),__esModule:!0}},function(t,e,n){n(229),t.exports=n(16).Object.keys},function(t,e,n){var r=n(51),o=n(35);n(230)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(14),o=n(16),i=n(25);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){function r(t){return"number"==typeof t&&t==o(t)}var o=n(232);t.exports=r},function(t,e,n){function r(t){var e=o(t),n=e%1;return e===e?n?e-n:e:0}var o=n(233);t.exports=r},function(t,e,n){function r(t){if(!t)return 0===t?t:0;if(t=o(t),t===i||t===-i){var e=t<0?-1:1;return e*a}return t===t?t:0}var o=n(225),i=1/0,a=1.7976931348623157e308;t.exports=r},function(t,e,n){function r(t){return"number"==typeof t||i(t)&&o(t)==a}var o=n(81),i=n(88),a="[object Number]";t.exports=r},function(t,e,n){var r=n(236),o=n(237),i=n(239),a=n(246),u=i(function(t){return t.push(void 0,a),r(o,void 0,t)});t.exports=u},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},function(t,e,n){var r=n(175),o=n(238),i=n(177),a=o(function(t,e,n,o){r(e,i(e),t,o)});t.exports=a},function(t,e,n){function r(t){return o(function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,u&&i(n[0],n[1],u)&&(a=o<3?void 0:a,o=1),e=Object(e);++r0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,o=16,i=Date.now;t.exports=n},function(t,e,n){function r(t,e,n){if(!u(n))return!1;var r=typeof e;return!!("number"==r?i(n)&&a(e,n.length):"string"==r&&e in n)&&o(n[e],t)}var o=n(147),i=n(116),a=n(106),u=n(91);t.exports=r},function(t,e,n){function r(t,e,n,r){return void 0===t||o(t,i[n])&&!a.call(r,n)?e:t}var o=n(147),i=Object.prototype,a=i.hasOwnProperty;t.exports=r},function(t,e,n){var r;!function(o){"use strict";function i(t,e){for(var n=[],r=0,o=t.length;r3?0:(t-t%10!==10)*t%10]}};var x={D:function(t){return t.getDate()},DD:function(t){return u(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return u(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return u(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return String(t.getFullYear()).substr(2)},YYYY:function(t){return t.getFullYear()},h:function(t){return t.getHours()%12||12},hh:function(t){return u(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return u(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return u(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return u(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return u(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return u(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+u(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},_={D:[f,function(t,e){t.day=e}],Do:[new RegExp(f.source+p.source),function(t,e){t.day=parseInt(e,10)}],M:[f,function(t,e){t.month=e-1}],YY:[f,function(t,e){var n=new Date,r=+(""+n.getFullYear()).substr(0,2);t.year=""+(e>68?r-1:r)+e}],h:[f,function(t,e){t.hour=e}],m:[f,function(t,e){t.minute=e}],s:[f,function(t,e){t.second=e}],YYYY:[d,function(t,e){t.year=e}],S:[/\d/,function(t,e){t.millisecond=100*e}],SS:[/\d{2}/,function(t,e){t.millisecond=10*e}],SSS:[l,function(t,e){t.millisecond=e}],d:[f,v],ddd:[p,v],MMM:[p,a("monthNamesShort")],MMMM:[p,a("monthNames")],a:[p,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,r=(e+"").match(/([\+\-]|\d\d)/gi);r&&(n=+(60*r[1])+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};_.dd=_.d,_.dddd=_.ddd,_.DD=_.D,_.mm=_.m,_.hh=_.H=_.HH=_.h,_.MM=_.M,_.ss=_.s,_.A=_.a,s.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},s.format=function(t,e,n){var r=n||s.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");e=s.masks[e]||e||s.masks.default;
-var o=[];return e=e.replace(h,function(t,e){return o.push(e),"??"}),e=e.replace(c,function(e){return e in x?x[e](t,r):e.slice(1,e.length-1)}),e.replace(/\?\?/g,function(){return o.shift()})},s.parse=function(t,e,n){var r=n||s.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=s.masks[e]||e,t.length>1e3)return!1;var o=!0,i={};if(e.replace(c,function(e){if(_[e]){var n=_[e],a=t.search(n[0]);~a?t.replace(n[0],function(e){return n[1](i,e,r),t=t.substr(a+e.length),e}):o=!1}return _[e]?"":e.slice(1,e.length-1)}),!o)return!1;var a=new Date;i.isPm===!0&&null!=i.hour&&12!==+i.hour?i.hour=+i.hour+12:i.isPm===!1&&12===+i.hour&&(i.hour=0);var u;return null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,u=new Date(Date.UTC(i.year||a.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):u=new Date(i.year||a.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),u},"undefined"!=typeof t&&t.exports?t.exports=s:(r=function(){return s}.call(e,n,e,t),!(void 0!==r&&(t.exports=r)))}(this)},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema),type:"checkbox",autocomplete:t.schema.autocomplete,disabled:t.disabled,name:t.schema.inputName},domProps:{checked:Array.isArray(t.value)?t._i(t.value,null)>-1:t.value},on:{click:function(e){var n=t.value,r=e.target,o=!!r.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o?a<0&&(t.value=n.concat(i)):a>-1&&(t.value=n.slice(0,a).concat(n.slice(a+1)))}else t.value=o}}})},staticRenderFns:[]}},function(t,e,n){n(250);var r=n(3)(n(251),n(253),null,null);t.exports=r.exports},2,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(252),i=r(o),a=n(89),u=r(a),s=n(91),c=r(s),f=n(222),l=r(f),d=n(162);e.default={mixins:[l.default],data:function(){return{comboExpanded:!1}},computed:{items:function(){var t=this.schema.values;return"function"==typeof t?t.apply(this,[this.model,this.schema]):t},selectedCount:function(){return this.value?this.value.length:0}},methods:{getInputName:function(t){return this.schema&&this.schema.inputName&&this.schema.inputName.length>0?(0,d.slugify)(this.schema.inputName+"_"+this.getItemValue(t)):(0,d.slugify)(this.getItemValue(t))},getItemValue:function(t){if((0,c.default)(t)){if("undefined"!=typeof this.schema.checklistOptions&&"undefined"!=typeof this.schema.checklistOptions.value)return t[this.schema.checklistOptions.value];if("undefined"!=typeof t.value)return t.value;throw"`value` is not defined. If you want to use another key name, add a `value` property under `checklistOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/checklist.html#checklist-field-with-object-values"}return t},getItemName:function(t){if((0,c.default)(t)){if("undefined"!=typeof this.schema.checklistOptions&&"undefined"!=typeof this.schema.checklistOptions.name)return t[this.schema.checklistOptions.name];if("undefined"!=typeof t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `checklistOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/checklist.html#checklist-field-with-object-values"}return t},isItemChecked:function(t){return this.value&&this.value.indexOf(this.getItemValue(t))!=-1},onChanged:function(t,e){if(!(0,u.default)(this.value)&&Array.isArray(this.value)||(this.value=[]),t.target.checked){var n=(0,i.default)(this.value);n.push(this.getItemValue(e)),this.value=n}else{var r=(0,i.default)(this.value);r.splice(this.value.indexOf(this.getItemValue(e)),1),this.value=r}},onExpandCombo:function(){this.comboExpanded=!this.comboExpanded}}}},function(t,e,n){function r(t){return o(t,i)}var o=n(164),i=4;t.exports=r},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrapper"},[t.schema.listBox?n("div",{staticClass:"listbox form-control",attrs:{disabled:t.disabled}},t._l(t.items,function(e){return n("div",{staticClass:"list-row",class:{"is-checked":t.isItemChecked(e)}},[n("label",[n("input",{attrs:{id:t.getFieldID(t.schema),type:"checkbox",disabled:t.disabled,name:t.getInputName(e)},domProps:{checked:t.isItemChecked(e)},on:{change:function(n){t.onChanged(n,e)}}}),t._v(t._s(t.getItemName(e)))])])})):t._e(),t.schema.listBox?t._e():n("div",{staticClass:"combobox form-control",attrs:{disabled:t.disabled}},[n("div",{staticClass:"mainRow",class:{expanded:t.comboExpanded},on:{click:t.onExpandCombo}},[n("div",{staticClass:"info"},[t._v(t._s(t.selectedCount)+" selected")]),n("div",{staticClass:"arrow"})]),n("div",{staticClass:"dropList"},t._l(t.items,function(e){return t.comboExpanded?n("div",{staticClass:"list-row",class:{"is-checked":t.isItemChecked(e)}},[n("label",[n("input",{attrs:{id:t.getFieldID(t.schema),type:"checkbox",disabled:t.disabled,name:t.getInputName(e)},domProps:{checked:t.isItemChecked(e)},on:{change:function(n){t.onChanged(n,e)}}}),t._v(t._s(t.getItemName(e)))])]):t._e()}))])])},staticRenderFns:[]}},function(t,e,n){n(255);var r=n(3)(n(256),n(257),null,null);t.exports=r.exports},2,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(234),i=r(o),a=n(90),u=r(a),s=n(120),c=r(s),f=n(223),l=r(f),d=n(222),p=r(d),h=n(247),v=r(h),m={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss","datetime-local":"YYYY-MM-DDTHH:mm:ss"};e.default={mixins:[p.default],methods:{formatValueToModel:function(t){var e=this;if(null!=t)switch(this.schema.inputType.toLowerCase()){case"date":case"datetime":case"datetime-local":case"number":case"range":return function(n,r){e.debouncedFormatFunc(t,r)}}return t},formatDatetimeToModel:function(t,e){var n=m[this.schema.inputType.toLowerCase()],r=v.default.parse(t,n);r!==!1&&(t=this.schema.format?v.default.format(r,this.schema.format):r.valueOf()),this.updateModelValue(t,e)},formatNumberToModel:function(t,e){(0,i.default)(t)||(t=NaN),this.updateModelValue(t,e)},onInput:function(t){var e=t.target.value;switch(this.schema.inputType.toLowerCase()){case"number":case"range":(0,i.default)(t.target.valueAsNumber)&&(e=t.target.valueAsNumber)}this.value=e},onBlur:function(){(0,u.default)(this.debouncedFormatFunc)&&this.debouncedFormatFunc.flush()}},mounted:function(){var t=this;switch(this.schema.inputType.toLowerCase()){case"number":case"range":this.debouncedFormatFunc=(0,l.default)(function(e,n){t.formatNumberToModel(e,n)},parseInt((0,c.default)(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1});break;case"date":case"datetime":case"datetime-local":this.debouncedFormatFunc=(0,l.default)(function(e,n){t.formatDatetimeToModel(e,n)},parseInt((0,c.default)(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1})}},created:function(){"file"==this.schema.inputType.toLowerCase()&&console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.")}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrapper"},[n("input",{staticClass:"form-control",class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema),type:t.schema.inputType.toLowerCase(),disabled:t.disabled,accept:t.schema.accept,alt:t.schema.alt,autocomplete:t.schema.autocomplete,dirname:t.schema.dirname,formaction:t.schema.formaction,formenctype:t.schema.formenctype,formmethod:t.schema.formmethod,formnovalidate:t.schema.formnovalidate,formtarget:t.schema.formtarget,height:t.schema.height,list:t.schema.list,max:t.schema.max,maxlength:t.schema.maxlength,min:t.schema.min,minlength:t.schema.minlength,multiple:t.schema.multiple,name:t.schema.inputName,pattern:t.schema.pattern,placeholder:t.schema.placeholder,readonly:t.schema.readonly,required:t.schema.required,size:t.schema.size,src:t.schema.src,step:t.schema.step,width:t.schema.width,files:t.schema.files},domProps:{value:t.value,checked:t.schema.checked},on:{input:t.onInput,blur:t.onBlur,change:function(e){t.schema.onChange||null}}}),"color"===t.schema.inputType.toLowerCase()||"range"===t.schema.inputType.toLowerCase()?n("span",{staticClass:"helper"},[t._v(t._s(t.value))]):t._e()])},staticRenderFns:[]}},function(t,e,n){n(259);var r=n(3)(n(260),n(261),null,null);t.exports=r.exports},2,221,function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema)}},[t._v(t._s(t.value))])},staticRenderFns:[]}},function(t,e,n){n(263);var r=n(3)(n(264),n(265),null,null);t.exports=r.exports},2,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(91),i=r(o),a=n(222),u=r(a);e.default={mixins:[u.default],computed:{items:function(){var t=this.schema.values;return"function"==typeof t?t.apply(this,[this.model,this.schema]):t},id:function(){return this.schema.model}},methods:{getItemValue:function(t){if((0,i.default)(t)){if("undefined"!=typeof this.schema.radiosOptions&&"undefined"!=typeof this.schema.radiosOptions.value)return t[this.schema.radiosOptions.value];if("undefined"!=typeof t.value)return t.value;throw"`value` is not defined. If you want to use another key name, add a `value` property under `radiosOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values"}return t},getItemName:function(t){if((0,i.default)(t)){if("undefined"!=typeof this.schema.radiosOptions&&"undefined"!=typeof this.schema.radiosOptions.name)return t[this.schema.radiosOptions.name];if("undefined"!=typeof t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `radiosOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values"}return t},onSelection:function(t){this.value=this.getItemValue(t)},isItemChecked:function(t){var e=this.getItemValue(t);return e===this.value}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"radio-list",attrs:{disabled:t.disabled}},t._l(t.items,function(e){return n("label",{class:{"is-checked":t.isItemChecked(e)}},[n("input",{class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema),type:"radio",disabled:t.disabled,name:t.id},domProps:{value:t.getItemValue(e),checked:t.isItemChecked(e)},on:{click:function(n){t.onSelection(e)}}}),t._v(t._s(t.getItemName(e)))])}))},staticRenderFns:[]}},function(t,e,n){n(267);var r=n(3)(n(268),n(296),null,null);t.exports=r.exports},2,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(269),i=r(o),a=n(89),u=r(a),s=n(91),c=r(s),f=n(222),l=r(f);e.default={mixins:[l.default],computed:{selectOptions:function(){return this.schema.selectOptions||{}},items:function(){var t=this.schema.values;return"function"==typeof t?this.groupValues(t.apply(this,[this.model,this.schema])):this.groupValues(t)}},methods:{formatValueToField:function(t){return(0,u.default)(t)?null:t},groupValues:function(t){var e=[],n={};return t.forEach(function(t){n=null,t.group&&(0,c.default)(t)?(n=(0,i.default)(e,function(e){return e.group==t.group}),n?n.ops.push({id:t.id,name:t.name}):(n={group:"",ops:[]},n.group=t.group,n.ops.push({id:t.id,name:t.name}),e.push(n))):e.push(t)}),e},getGroupName:function(t){if(t&&t.group)return t.group;throw"Group name is missing! https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"},getItemValue:function(t){if((0,c.default)(t)){if("undefined"!=typeof this.schema.selectOptions&&"undefined"!=typeof this.schema.selectOptions.value)return t[this.schema.selectOptions.value];if("undefined"!=typeof t.id)return t.id;throw"`id` is not defined. If you want to use another key name, add a `value` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"}return t},getItemName:function(t){if((0,c.default)(t)){if("undefined"!=typeof this.schema.selectOptions&&"undefined"!=typeof this.schema.selectOptions.name)return t[this.schema.selectOptions.name];if("undefined"!=typeof t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"}return t}}}},function(t,e,n){var r=n(270),o=n(294),i=r(o);t.exports=i},function(t,e,n){function r(t){return function(e,n,r){var u=Object(e);if(!i(e)){var s=o(n,3);e=a(e),n=function(t){return s(u[t],t,u)}}var c=t(e,n,r);return c>-1?u[s?e[c]:c]:void 0}}var o=n(271),i=n(116),a=n(98);t.exports=r},function(t,e,n){function r(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?u(t)?i(t[0],t[1]):o(t):s(t)}var o=n(272),i=n(287),a=n(119),u=n(87),s=n(291);t.exports=r},function(t,e,n){function r(t){var e=i(t);return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(n){return n===t||o(n,t,e)}}var o=n(273),i=n(284),a=n(286);t.exports=r},function(t,e,n){function r(t,e,n,r){var s=n.length,c=s,f=!r;if(null==t)return!c;for(t=Object(t);s--;){var l=n[s];if(f&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++sd))return!1;var h=f.get(t);if(h&&f.get(e))return h==e;var v=-1,m=!0,b=n&s?new o:void 0;for(f.set(t,e),f.set(e,t);++v"))]),t._l(t.items,function(e){return[e.group?n("optgroup",{attrs:{label:t.getGroupName(e)}},t._l(e.ops,function(r){return e.ops?n("option",{domProps:{value:t.getItemValue(r)}},[t._v(t._s(t.getItemName(r)))]):t._e()})):t._e(),e.group?t._e():n("option",{domProps:{value:t.getItemValue(e)}},[t._v(t._s(t.getItemName(e)))])]})],2)},staticRenderFns:[]}},function(t,e,n){n(298);var r=n(3)(n(299),n(301),null,null);t.exports=r.exports},2,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(300),i=r(o),a=n(90),u=r(a),s=n(222),c=r(s);e.default={mixins:[c.default],methods:{onClick:function(t){var e=this;if(this.schema.validateBeforeSubmit===!0){t.preventDefault();var n=this.$parent.validate(),r=function(n){!(0,i.default)(n)&&(0,u.default)(e.schema.onValidationError)?e.schema.onValidationError(e.model,e.schema,n,t):(0,u.default)(e.schema.onSubmit)&&e.schema.onSubmit(e.model,e.schema,t)};n&&(0,u.default)(n.then)?n.then(r):r(n)}else(0,u.default)(this.schema.onSubmit)&&this.schema.onSubmit(this.model,this.schema,t)}}}},function(t,e,n){function r(t){if(null==t)return!0;if(s(t)&&(u(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||a(t)))return!t.length;var e=i(t);if(e==d||e==p)return!t.size;if(f(t))return!o(t).length;for(var n in t)if(v.call(t,n))return!1;return!0}var o=n(112),i=n(193),a=n(101),u=n(87),s=n(116),c=n(103),f=n(113),l=n(107),d="[object Map]",p="[object Set]",h=Object.prototype,v=h.hasOwnProperty;t.exports=r},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("input",{class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema),type:"submit",name:t.schema.inputName,disabled:t.disabled},domProps:{value:t.schema.buttonText},on:{click:t.onClick}})},staticRenderFns:[]}},function(t,e,n){n(303);var r=n(3)(n(304),n(305),null,null);t.exports=r.exports},2,221,function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema),disabled:t.disabled,maxlength:t.schema.max,minlength:t.schema.min,placeholder:t.schema.placeholder,readonly:t.schema.readonly,rows:t.schema.rows||2,name:t.schema.inputName},domProps:{value:t._s(t.value)},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}})},staticRenderFns:[]}},function(t,e,n){n(307);var r=n(3)(n(308),n(309),null,null);t.exports=r.exports},2,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(90),i=r(o),a=n(222),u=r(a);e.default={mixins:[u.default],methods:{onChange:function(t){(0,i.default)(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,this.schema,t,this)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrapper"},[n("input",{staticClass:"form-control",attrs:{id:t.getFieldID(t.schema),type:"file",name:t.schema.inputName,accept:t.schema.accept,multiple:t.schema.multiple,placeholder:t.schema.placeholder,readonly:t.schema.readonly,required:t.schema.required,disabled:t.disabled},on:{change:t.onChange}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return null!=t.schema?n("div",{staticClass:"vue-form-generator"},[t.schema.fields?n(t.tag,{tag:"fieldset"},[t._l(t.fields,function(e){return[t.fieldVisible(e)?n("div",{staticClass:"form-group",class:t.getFieldRowClasses(e)},[t.fieldTypeHasLabel(e)?n("label",{class:e.labelClasses,attrs:{for:t.getFieldID(e)}},[t._v(t._s(e.label)),e.help?n("span",{staticClass:"help"},[n("i",{staticClass:"icon"}),n("div",{staticClass:"helpText",domProps:{innerHTML:t._s(e.help)}})]):t._e()]):t._e(),n("div",{staticClass:"field-wrap"},[n(t.getFieldType(e),{tag:"component",attrs:{disabled:t.fieldDisabled(e),model:t.model,schema:e,formOptions:t.options},on:{"model-updated":t.modelUpdated,validated:t.onFieldValidated}}),t.buttonVisibility(e)?n("div",{staticClass:"buttons"},t._l(e.buttons,function(r){return n("button",{class:r.classes,on:{click:function(n){t.buttonClickHandler(r,e,n)}}},[t._v(t._s(r.label))])})):t._e()],1),e.hint?n("div",{staticClass:"hint"},[t._v(t._s(t.fieldHint(e)))]):t._e(),t.fieldErrors(e).length>0?n("div",{staticClass:"errors help-block"},t._l(t.fieldErrors(e),function(e,r){return n("span",{attrs:{"track-by":"index"},domProps:{innerHTML:t._s(e)}})})):t._e()]):t._e()]})],2):t._e(),t._l(t.groups,function(e){return[n(t.tag,{tag:"fieldset",class:t.getFieldRowClasses(e)},[e.legend?n("legend",[t._v(t._s(e.legend))]):t._e(),t._l(e.fields,function(e){return[t.fieldVisible(e)?n("div",{staticClass:"form-group",class:t.getFieldRowClasses(e)},[t.fieldTypeHasLabel(e)?n("label",{class:e.labelClasses,attrs:{for:t.getFieldID(e)}},[t._v(t._s(e.label)),e.help?n("span",{staticClass:"help"},[n("i",{staticClass:"icon"}),n("div",{staticClass:"helpText",domProps:{innerHTML:t._s(e.help)}})]):t._e()]):t._e(),n("div",{staticClass:"field-wrap"},[n(t.getFieldType(e),{tag:"component",attrs:{disabled:t.fieldDisabled(e),model:t.model,schema:e,formOptions:t.options},on:{"model-updated":t.modelUpdated,validated:t.onFieldValidated}}),t.buttonVisibility(e)?n("div",{staticClass:"buttons"},t._l(e.buttons,function(r){return n("button",{class:r.classes,on:{click:function(n){t.buttonClickHandler(r,e,n)}}},[t._v(t._s(r.label))])})):t._e()],1),e.hint?n("div",{staticClass:"hint"},[t._v(t._s(e.hint))]):t._e(),t.fieldErrors(e).length>0?n("div",{staticClass:"errors help-block"},t._l(t.fieldErrors(e),function(e,r){return n("span",{attrs:{"track-by":"index"},domProps:{innerHTML:t._s(e)}})})):t._e()]):t._e()]})],2)]})],2):t._e()},staticRenderFns:[]}}]))});
\ No newline at end of file
+!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VueFormGenerator=n():t.VueFormGenerator=n()}("undefined"!=typeof self?self:this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=92)}([function(t,n){var e=Array.isArray;t.exports=e},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(49)("wks"),i=e(50),u=e(1).Symbol,o="function"==typeof u;(t.exports=function(t){return r[t]||(r[t]=o&&u[t]||(o?u:i)("Symbol."+t))}).store=r},function(t,n,e){function r(t){if(!u(t))return!1;var n=i(t);return n==a||n==c||n==o||n==f}var i=e(37),u=e(5),o="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",f="[object Proxy]";t.exports=r},function(t,n,e){"use strict";function r(t,n,e,r,i,u,o,a){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var f="function"==typeof t?t.options:t;n&&(f.render=n,f.staticRenderFns=e,f._compiled=!0),r&&(f.functional=!0),u&&(f._scopeId=u);var s;if(o?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},f._ssrRegister=s):i&&(s=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(f.functional){f._injectStyles=s;var l=f.render;f.render=function(t,n){return s.call(n),l(t,n)}}else{var h=f.beforeCreate;f.beforeCreate=h?[].concat(h,s):[s]}return{exports:t,options:f}}n.a=r},function(t,n){function e(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}t.exports=e},function(t,n,e){"use strict";function r(t){return m()(t)?null!=j.default[t]?j.default[t]:(console.warn("'"+t+"' is not a validator function!"),null):t}function i(t,n,e){var r=w()(e.context,"schema.attributes",{}),i=n.value||"input";m()(i)&&(r=w()(r,i)||r),b()(r,function(n,e){t.setAttribute(e,n)})}Object.defineProperty(n,"__esModule",{value:!0});var u=e(43),o=e.n(u),a=e(182),c=e.n(a),f=e(190),s=e.n(f),l=e(77),h=e.n(l),d=e(0),p=e.n(d),v=e(39),m=e.n(v),g=e(3),_=e.n(g),y=e(21),b=e.n(y),x=e(8),w=e.n(x),j=e(79),O=e(26);n.default={props:["vfg","model","schema","formOptions","disabled"],data:function(){return{errors:[],debouncedValidateFunc:null,debouncedFormatFunc:null}},directives:{attributes:{bind:i,updated:i,componentUpdated:i}},computed:{value:{cache:!1,get:function(){var t=void 0;return t=_()(w()(this.schema,"get"))?this.schema.get(this.model):w()(this.model,this.schema.model),this.formatValueToField(t)},set:function(t){var n=this.value;t=this.formatValueToModel(t),_()(t)?t(t,n):this.updateModelValue(t,n)}}},methods:{validate:function(t){var n=this;this.clearValidationErrors();var e=w()(this.formOptions,"validateAsync",!1),i=[];if(this.schema.validator&&!0!==this.schema.readonly&&!0!==this.disabled){var u=[];p()(this.schema.validator)?b()(this.schema.validator,function(t){u.push(r(t).bind(n))}):u.push(r(this.schema.validator).bind(this)),b()(u,function(t){if(e)i.push(t(n.value,n.schema,n.model));else{var r=t(n.value,n.schema,n.model);r&&_()(r.then)?r.then(function(t){t&&(n.errors=n.errors.concat(t));var e=0===n.errors.length;n.$emit("validated",e,n.errors,n)}):r&&(i=i.concat(r))}})}var a=function(e){var r=[];b()(c()(e),function(t){p()(t)&&t.length>0?r=r.concat(t):m()(t)&&r.push(t)}),_()(n.schema.onValidated)&&n.schema.onValidated.call(n,n.model,r,n.schema);var i=0===r.length;return t||n.$emit("validated",i,r,n),n.errors=r,r};return e?o.a.all(i).then(a):a(i)},debouncedValidate:function(){_()(this.debouncedValidateFunc)||(this.debouncedValidateFunc=h()(this.validate.bind(this),w()(this.schema,"validateDebounceTime",w()(this.formOptions,"validateDebounceTime",500)))),this.debouncedValidateFunc()},updateModelValue:function(t,n){var e=!1;_()(this.schema.set)?(this.schema.set(this.model,t),e=!0):this.schema.model&&(this.setModelValueByPath(this.schema.model,t),e=!0),e&&(this.$emit("model-updated",t,this.schema.model),_()(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,t,n,this.schema),!0===w()(this.formOptions,"validateAfterChanged",!1)&&(w()(this.schema,"validateDebounceTime",w()(this.formOptions,"validateDebounceTime",0))>0?this.debouncedValidate():this.validate()))},clearValidationErrors:function(){this.errors.splice(0)},setModelValueByPath:function(t,n){var e=t.replace(/\[(\w+)\]/g,".$1");e=e.replace(/^\./,"");for(var r=this.model,i=e.split("."),u=0,o=i.length;u1&&void 0!==arguments[1]&&arguments[1],e=w()(this.formOptions,"fieldIdPrefix","");return Object(O.slugifyFormID)(t,e)+(n?"-"+s()():"")},getFieldClasses:function(){return w()(this.schema,"fieldClasses",[])},formatValueToField:function(t){return t},formatValueToModel:function(t){return t}}}},function(t,n){var e=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=e)},function(t,n,e){function r(t,n,e){var r=null==t?void 0:i(t,n);return void 0===r?e:r}var i=e(134);t.exports=r},function(t,n,e){var r=e(15);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(1),i=e(7),u=e(17),o=e(11),a=function(t,n,e){var c,f,s,l=t&a.F,h=t&a.G,d=t&a.S,p=t&a.P,v=t&a.B,m=t&a.W,g=h?i:i[n]||(i[n]={}),_=g.prototype,y=h?r:d?r[n]:(r[n]||{}).prototype;h&&(e=n);for(c in e)(f=!l&&y&&void 0!==y[c])&&c in g||(s=f?y[c]:e[c],g[c]=h&&"function"!=typeof y[c]?e[c]:v&&f?u(s,r):m&&y[c]==s?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(s):p&&"function"==typeof s?u(Function.call,s):s,p&&((g.virtual||(g.virtual={}))[c]=s,t&a.R&&_&&!_[c]&&o(_,c,s)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n,e){var r=e(14),i=e(46);t.exports=e(12)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){t.exports=!e(31)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){function e(t){return null==t}t.exports=e},function(t,n,e){var r=e(9),i=e(99),u=e(100),o=Object.defineProperty;n.f=e(12)?Object.defineProperty:function(t,n,e){if(r(t),n=u(n,!0),r(e),i)try{return o(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){t.exports={}},function(t,n,e){var r=e(18);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){function r(t,n){return(a(t)?i:u)(t,o(n))}var i=e(59),u=e(127),o=e(133),a=e(0);t.exports=r},function(t,n,e){var r=e(23),i=r(Object.keys,Object);t.exports=i},function(t,n){function e(t,n){return function(e){return t(n(e))}}t.exports=e},function(t,n){function e(){return!1}t.exports=e},function(t,n,e){var r=e(140),i="object"==typeof self&&self&&self.Object===Object&&self,u=r||i||Function("return this")();t.exports=u},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),e.d(n,"createDefaultObject",function(){return g}),e.d(n,"getMultipleFields",function(){return _}),e.d(n,"mergeMultiObjectFields",function(){return y}),e.d(n,"slugifyFormID",function(){return b}),e.d(n,"slugify",function(){return x});var r=e(148),i=e.n(r),u=e(3),o=e.n(u),a=e(0),c=e.n(a),f=e(5),s=e.n(f),l=e(174),h=e.n(l),d=e(175),p=e.n(d),v=e(8),m=e.n(v),g=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h()(t.fields,function(e){void 0===m()(n,e.model)&&void 0!==e.default&&(o()(e.default)?p()(n,e.model,e.default(e,t,n)):s()(e.default)||c()(e.default)?p()(n,e.model,i()(e.default)):p()(n,e.model,e.default))}),n},_=function(t){var n=[];return h()(t.fields,function(t){!0===t.multi&&n.push(t)}),n},y=function(t,n){var e={},r=_(t);return h()(r,function(t){var r=void 0,i=!0,u=t.model;h()(n,function(t){var n=m()(t,u);i?(r=n,i=!1):r!==n&&(r=void 0)}),p()(e,u,r)}),e},b=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return void 0!==t.id?n+t.id:n+(t.inputName||t.label||t.model||"").toString().trim().toLowerCase().replace(/ |_/g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-]+)/g,"")},x=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString().trim().replace(/ /g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-_\/.\/:]+)/g,"")}},function(t,n,e){function r(t,n){for(var e=t.length;e--;)if(i(t[e][0],n))return e;return-1}var i=e(40);t.exports=r},function(t,n,e){function r(t,n,e,r){var o=!e;e||(e={});for(var a=-1,c=n.length;++a0?r:e)(t)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(15),i=e(1).document,u=r(i)&&r(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,n,e){var r=e(106),i=e(30);t.exports=function(t){return r(i(t))}},function(t,n,e){var r=e(49)("keys"),i=e(50);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n,e){var r=e(14).f,i=e(19),u=e(2)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,u)&&r(t,u,{configurable:!0,value:n})}},function(t,n,e){"use strict";function r(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r}),this.resolve=i(n),this.reject=i(e)}var i=e(18);t.exports.f=function(t){return new r(t)}},function(t,n){function e(t){return i.call(t)}var r=Object.prototype,i=r.toString;t.exports=e},function(t,n,e){function r(t){return null!=t&&u(t.length)&&!i(t)}var i=e(3),u=e(132);t.exports=r},function(t,n,e){function r(t){return"string"==typeof t||!u(t)&&o(t)&&i(t)==a}var i=e(37),u=e(0),o=e(65),a="[object String]";t.exports=r},function(t,n){function e(t,n){return t===n||t!==t&&n!==n}t.exports=e},function(t,n,e){function r(t,n,e){var r=t[n];a.call(t,n)&&u(r,e)&&(void 0!==e||n in t)||i(t,n,e)}var i=e(68),u=e(40),o=Object.prototype,a=o.hasOwnProperty;t.exports=r},function(t,n,e){"use strict";var r=e(43),i=e.n(r),u=e(0),o=e.n(u),a=e(13),c=e.n(a),f=e(3),s=e.n(f),l=e(21),h=e.n(l),d=e(8),p=e.n(d),v=e(64),m=e(146);n.a={name:"formGenerator",components:{formGroup:m.a},mixins:[v.a],props:{schema:Object,model:Object,options:{type:Object,default:function(){return{validateAfterLoad:!1,validateAfterChanged:!1,fieldIdPrefix:"",validateAsync:!1,validationErrorClass:"error",validationSuccessClass:""}}},multiple:{type:Boolean,default:!1},isNewModel:{type:Boolean,default:!1},tag:{type:String,default:"fieldset",validator:function(t){return t.length>0}}},data:function(){return{vfg:this,errors:[]}},computed:{fields:function(){var t=this,n=[];return this.schema&&this.schema.fields&&h()(this.schema.fields,function(e){t.multiple&&!0!==e.multi||n.push(e)}),n},groups:function(){var t=[];return this.schema&&this.schema.groups&&h()(this.schema.groups.slice(0),function(n){t.push(n)}),t}},watch:{model:function(t,n){var e=this;n!==t&&null!=t&&this.$nextTick(function(){!0===e.options.validateAfterLoad&&!0!==e.isNewModel?e.validate():e.clearValidationErrors()})}},mounted:function(){var t=this;this.$nextTick(function(){t.model&&(!0===t.options.validateAfterLoad&&!0!==t.isNewModel?t.validate():t.clearValidationErrors())})},methods:{fieldVisible:function(t){return s()(t.visible)?t.visible.call(this,this.model,t,this):!!c()(t.visible)||t.visible},onFieldValidated:function(t,n,e){var r=this;this.errors=this.errors.filter(function(t){return t.field!==e.schema}),!t&&n&&n.length>0&&h()(n,function(t){r.errors.push({field:e.schema,error:t})});var i=0===this.errors.length;this.$emit("validated",i,this.errors,this)},onModelUpdated:function(t,n){this.$emit("model-updated",t,n)},validate:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===n&&(n=p()(this.options,"validateAsync",!1)),this.clearValidationErrors();var e=[],r=[];h()(this.$children,function(t){s()(t.validate)&&(e.push(t.$refs.child),r.push(t.validate(!0)))});var u=function(r){var i=[];h()(r,function(t,n){o()(t)&&t.length>0&&h()(t,function(t){i.push({field:e[n].schema,error:t})})}),t.errors=i;var u=0===i.length;return t.$emit("validated",u,i,t),n?i:u};return n?i.a.all(r).then(u):u(r)},clearValidationErrors:function(){this.errors.splice(0),h()(this.$children,function(t){t.clearValidationErrors()})}}}},function(t,n,e){t.exports={default:e(95),__esModule:!0}},function(t,n,e){"use strict";var r=e(45),i=e(10),u=e(101),o=e(11),a=e(19),c=e(16),f=e(102),s=e(35),l=e(109),h=e(2)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,n,e,v,m,g,_){f(e,n,v);var y,b,x,w=function(t){if(!d&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},j=n+" Iterator",O="values"==m,C=!1,M=t.prototype,I=M[h]||M["@@iterator"]||m&&M[m],S=I||w(m),T=m?O?w("entries"):S:void 0,k="Array"==n?M.entries||I:I;if(k&&(x=l(k.call(new t)))!==Object.prototype&&x.next&&(s(x,j,!0),r||a(x,h)||o(x,h,p)),O&&I&&"values"!==I.name&&(C=!0,S=function(){return I.call(this)}),r&&!_||!d&&!C&&M[h]||o(M,h,S),c[n]=S,c[j]=p,m)if(y={values:O?S:w("values"),keys:g?S:w("keys"),entries:T},_)for(b in y)b in M||u(M,b,y[b]);else i(i.P+i.F*(d||C),n,y);return y}},function(t,n){t.exports=!0},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(105),i=e(51);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){var r=e(29),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n,e){var r=e(1),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(1).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(30);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(20),i=e(2)("toStringTag"),u="Arguments"==r(function(){return arguments}()),o=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=o(n=Object(t),i))?e:u?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){var r=e(9),i=e(18),u=e(2)("species");t.exports=function(t,n){var e,o=r(t).constructor;return void 0===o||void 0==(e=r(o)[u])?n:i(e)}},function(t,n,e){var r,i,u,o=e(17),a=e(120),c=e(52),f=e(32),s=e(1),l=s.process,h=s.setImmediate,d=s.clearImmediate,p=s.MessageChannel,v=s.Dispatch,m=0,g={},_=function(){var t=+this;if(g.hasOwnProperty(t)){var n=g[t];delete g[t],n()}},y=function(t){_.call(t.data)};h&&d||(h=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return g[++m]=function(){a("function"==typeof t?t:Function(t),n)},r(m),m},d=function(t){delete g[t]},"process"==e(20)(l)?r=function(t){l.nextTick(o(_,t,1))}:v&&v.now?r=function(t){v.now(o(_,t,1))}:p?(i=new p,u=i.port2,i.port1.onmessage=y,r=o(u.postMessage,u,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(t){s.postMessage(t+"","*")},s.addEventListener("message",y,!1)):r="onreadystatechange"in f("script")?function(t){c.appendChild(f("script")).onreadystatechange=function(){c.removeChild(this),_.call(t)}}:function(t){setTimeout(o(_,t,1),0)}),t.exports={set:h,clear:d}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,e){var r=e(9),i=e(15),u=e(36);t.exports=function(t,n){if(r(t),i(n)&&n.constructor===t)return n;var e=u.f(t);return(0,e.resolve)(n),e.promise}},function(t,n){function e(t,n){for(var e=-1,r=null==t?0:t.length;++e0,r=(n={},i()(n,m()(this.options,"validationErrorClass","error"),e),i()(n,m()(this.options,"validationSuccessClass","valid"),!e),i()(n,"disabled",this.fieldDisabled(t)),i()(n,"readonly",this.fieldReadonly(t)),i()(n,"featured",this.fieldFeatured(t)),i()(n,"required",this.fieldRequired(t)),n);return s()(t.styleClasses)?p()(t.styleClasses,function(t){return r[t]=!0}):c()(t.styleClasses)&&(r[t.styleClasses]=!0),h()(t.type)||(r["field-"+t.type]=!0),r},fieldErrors:function(t){return this.errors.filter(function(n){return n.field===t}).map(function(t){return t.error})},fieldDisabled:function(t){return o()(t.disabled)?t.disabled.call(this,this.model,t,this):!h()(t.disabled)&&t.disabled},fieldReadonly:function(t){return o()(t.readonly)?t.readonly.call(this,this.model,t,this):!h()(t.readonly)&&t.readonly},fieldFeatured:function(t){return o()(t.featured)?t.featured.call(this,this.model,t,this):!h()(t.featured)&&t.featured},fieldRequired:function(t){return o()(t.required)?t.required.call(this,this.model,t,this):!h()(t.required)&&t.required}}}},function(t,n){function e(t){return null!=t&&"object"==typeof t}t.exports=e},function(t,n,e){"use strict";var r=e(3),i=e.n(r),u=e(13),o=e.n(u),a=e(8),c=e.n(a),f=e(26),s=e(64),l=e(74),h=e.n(l);n.a={name:"form-group",components:h.a,mixins:[s.a],props:{vfg:{type:Object,required:!0},model:Object,options:{type:Object},field:{type:Object,required:!0},errors:{type:Array,default:function(){return[]}}},methods:{fieldTypeHasLabel:function(t){if(o()(t.label))return!1;switch("input"===t.type?t.inputType:t.type){case"button":case"submit":case"reset":return!1;default:return!0}},getFieldID:function(t){var n=c()(this.options,"fieldIdPrefix","");return Object(f.slugifyFormID)(t,n)},getFieldType:function(t){return"field-"+t.type},getButtonType:function(t){return c()(t,"type","button")},onFieldValidated:function(t,n,e){this.$emit("validated",t,n,e)},buttonVisibility:function(t){return t.buttons&&t.buttons.length>0},buttonClickHandler:function(t,n,e){return t.onclick.call(this,this.model,n,e,this)},fieldHint:function(t){return i()(t.hint)?t.hint.call(this,this.model,t,this):t.hint},fieldErrors:function(t){return this.errors.filter(function(n){return n.field===t}).map(function(t){return t.error})},onModelUpdated:function(t,n){this.$emit("model-updated",t,n)},validate:function(t){return this.$refs.child.validate(t)},clearValidationErrors:function(){if(this.$refs.child)return this.$refs.child.clearValidationErrors()}}}},function(t,n,e){function r(t,n,e,F,D,P){var N,L=n&C,R=n&M,V=n&I;if(e&&(N=D?e(t,F,D,P):e(t)),void 0!==N)return N;if(!w(t))return t;var $=y(t);if($){if(N=m(t),!L)return s(t,N)}else{var z=v(t),U=z==T||z==k;if(b(t))return f(t,L);if(z==A||z==S||U&&!D){if(N=R||U?{}:_(t),!L)return R?h(t,c(N,t)):l(t,a(N,t))}else{if(!E[z])return D?t:{};N=g(t,z,L)}}P||(P=new i);var q=P.get(t);if(q)return q;if(P.set(t,N),j(t))return t.forEach(function(i){N.add(r(i,n,e,i,t,P))}),N;if(x(t))return t.forEach(function(i,u){N.set(u,r(i,n,e,u,t,P))}),N;var B=V?R?p:d:R?keysIn:O,Y=$?void 0:B(t);return u(Y||t,function(i,u){Y&&(u=i,i=t[u]),o(N,u,r(i,n,e,u,t,P))}),N}var i=e(149),u=e(59),o=e(41),a=e(157),c=e(158),f=e(159),s=e(160),l=e(161),h=e(163),d=e(165),p=e(166),v=e(71),m=e(167),g=e(168),_=e(169),y=e(0),b=e(73),x=e(172),w=e(5),j=e(173),O=e(22),C=1,M=2,I=4,S="[object Arguments]",T="[object Function]",k="[object GeneratorFunction]",A="[object Object]",E={};E[S]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E[A]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E[T]=E["[object WeakMap]"]=!1,t.exports=r},function(t,n,e){function r(t,n,e){"__proto__"==n&&i?i(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}var i=e(155);t.exports=r},function(t,n){function e(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}t.exports=e},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n){function e(t){return i.call(t)}var r=Object.prototype,i=r.toString;t.exports=e},function(t,n){function e(){return!1}t.exports=e},function(t,n){function e(){return!1}t.exports=e},function(t,n,e){var r=e(178).forEach,i={},u=e(179);r(u.keys(),function(t){var n=t.replace(/^\.\//,"").replace(/\.vue/,"");i[n]=u(t).default});t.exports=i},function(t,n,e){"use strict";var r=e(6);n.a={mixins:[r.default]}},function(t,n){function e(t,n,e){for(var r=e-1,i=t.length;++r=n||e<0||M&&r>=b}function d(){var t=u();if(h(t))return p(t);w=setTimeout(d,l(t))}function p(t){return w=void 0,I&&_?r(t):(_=y=void 0,x)}function v(){void 0!==w&&clearTimeout(w),O=0,_=j=y=w=void 0}function m(){return void 0===w?x:p(u())}function g(){var t=u(),e=h(t);if(_=arguments,y=this,j=t,e){if(void 0===w)return s(j);if(M)return w=setTimeout(d,n),r(j)}return void 0===w&&(w=setTimeout(d,n)),x}var _,y,b,x,w,j,O=0,C=!1,M=!1,I=!0;if("function"!=typeof t)throw new TypeError(a);return n=o(n)||0,i(e)&&(C=!!e.leading,M="maxWait"in e,b=M?c(o(e.maxWait)||0,n):b,I="trailing"in e?!!e.trailing:I),g.cancel=v,g.flush=m,g}var i=e(5),u=e(191),o=e(78),a="Expected a function",c=Math.max,f=Math.min;t.exports=r},function(t,n,e){function r(t){if("number"==typeof t)return t;if(u(t))return o;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var e=f.test(t);return e||s.test(t)?l(t.slice(2),e?2:8):c.test(t)?o:+t}var i=e(5),u=e(24),o=NaN,a=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;t.exports=r},function(t,n,e){"use strict";function r(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C;return b()(t)||""===t?n?[i(e.fieldIsRequired)]:[]:null}function i(t){if(null!=t&&arguments.length>1)for(var n=1;n3&&void 0!==arguments[3]?arguments[3]:C;return r(t,n.required,i)},number:function(t,n,e){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C,o=r(t,n.required,u);if(null!=o)return o;var a=[];return c()(t)?(!b()(n.min)&&tn.max&&a.push(i(u.numberTooBig,n.max))):a.push(i(u.invalidNumber)),a},integer:function(t,n,e){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C,o=r(t,n.required,u);if(null!=o)return o;var a=M.number(t,n,e,u);return m()(t)||a.push(i(u.invalidInteger)),a},double:function(t,n,e){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C,o=r(t,n.required,u);return null!=o?o:!_()(t)||isNaN(t)?[i(u.invalidNumber)]:void 0},string:function(t,n,e){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C,o=r(t,n.required,u);if(null!=o)return o;var a=[];return p()(t)?(!b()(n.min)&&t.lengthn.max&&a.push(i(u.textTooBig,t.length,n.max))):a.push(i(u.thisNotText)),a},array:function(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C;if(n.required){if(!h()(t))return[i(r.thisNotArray)];if(0===t.length)return[i(r.fieldIsRequired)]}if(!b()(t)){if(!b()(n.min)&&t.lengthn.max)return[i(r.selectMaxItems,n.max)]}},date:function(t,n,e){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C,o=r(t,n.required,u);if(null!=o)return o;var a=new Date(t);if(isNaN(a.getDate()))return[i(u.invalidDate)];var c=[];if(!b()(n.min)){var f=new Date(n.min);a.valueOf()s.valueOf()&&c.push(i(u.dateIsLate,O.a.format(a),O.a.format(s)))}return c},regexp:function(t,n,e){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C,o=r(t,n.required,u);if(null!=o)return o;if(!b()(n.pattern)){if(!new RegExp(n.pattern).test(t))return[i(u.invalidFormat)]}},email:function(t,n,e){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C,o=r(t,n.required,u);return null!=o?o:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)?void 0:[i(u.invalidEmail)]},url:function(t,n,e){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C,o=r(t,n.required,u);return null!=o?o:/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/g.test(t)?void 0:[i(u.invalidURL)]},creditCard:function(t,n,e){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C,o=r(t,n.required,u);if(null!=o)return o;var a=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,c=t.replace(/[^0-9]+/g,"");if(!a.test(c))return[i(u.invalidCard)];for(var f=0,s=void 0,l=void 0,h=void 0,d=c.length-1;d>=0;d--)s=c.substring(d,d+1),l=parseInt(s,10),h?(l*=2,f+=l>=10?l%10+1:l):f+=l,h=!h;return f%10==0&&c?void 0:[i(u.invalidCardNumber)]},alpha:function(t,n,e){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C,o=r(t,n.required,u);return null!=o?o:/^[a-zA-Z]*$/.test(t)?void 0:[i(u.invalidTextContainNumber)]},alphaNumeric:function(t,n,e){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C,o=r(t,n.required,u);return null!=o?o:/^[a-zA-Z0-9]*$/.test(t)?void 0:[i(u.invalidTextContainSpec)]}};o()(M).forEach(function(t){var n=M[t];s()(n)&&(n.locale=function(t){return function(e,r,i){return n(e,r,i,w()(t,C))}})}),n.default=M},function(t,n,e){function r(t){var n=i(t),e=n%1;return n===n?e?n-e:n:0}var i=e(198);t.exports=r},function(t,n,e){function r(t){return"number"==typeof t||u(t)&&i(t)==o}var i=e(37),u=e(65),o="[object Number]";t.exports=r},function(t,n,e){var r;!function(i){"use strict";function u(t,n){for(var e=[],r=0,i=t.length;r3?0:(t-t%10!=10)*t%10]}};var b={D:function(t){return t.getDate()},DD:function(t){return a(t.getDate())},Do:function(t,n){return n.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return a(t.getDay())},ddd:function(t,n){return n.dayNamesShort[t.getDay()]},dddd:function(t,n){return n.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return a(t.getMonth()+1)},MMM:function(t,n){return n.monthNamesShort[t.getMonth()]},MMMM:function(t,n){return n.monthNames[t.getMonth()]},YY:function(t){return String(t.getFullYear()).substr(2)},YYYY:function(t){return a(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return a(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return a(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return a(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return a(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return a(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return a(t.getMilliseconds(),3)},a:function(t,n){return t.getHours()<12?n.amPm[0]:n.amPm[1]},A:function(t,n){return t.getHours()<12?n.amPm[0].toUpperCase():n.amPm[1].toUpperCase()},ZZ:function(t){var n=t.getTimezoneOffset();return(n>0?"-":"+")+a(100*Math.floor(Math.abs(n)/60)+Math.abs(n)%60,4)}},x={D:[s,function(t,n){t.day=n}],Do:[new RegExp(s.source+d.source),function(t,n){t.day=parseInt(n,10)}],M:[s,function(t,n){t.month=n-1}],YY:[s,function(t,n){var e=new Date,r=+(""+e.getFullYear()).substr(0,2);t.year=""+(n>68?r-1:r)+n}],h:[s,function(t,n){t.hour=n}],m:[s,function(t,n){t.minute=n}],s:[s,function(t,n){t.second=n}],YYYY:[h,function(t,n){t.year=n}],S:[/\d/,function(t,n){t.millisecond=100*n}],SS:[/\d{2}/,function(t,n){t.millisecond=10*n}],SSS:[l,function(t,n){t.millisecond=n}],d:[s,v],ddd:[d,v],MMM:[d,o("monthNamesShort")],MMMM:[d,o("monthNames")],a:[d,function(t,n,e){var r=n.toLowerCase();r===e.amPm[0]?t.isPm=!1:r===e.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,n){"Z"===n&&(n="+00:00");var e,r=(n+"").match(/([\+\-]|\d\d)/gi);r&&(e=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?e:-e)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,c.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},c.format=function(t,n,e){var r=e||c.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");n=c.masks[n]||n||c.masks.default;var i=[];return n=n.replace(p,function(t,n){return i.push(n),"??"}),n=n.replace(f,function(n){return n in b?b[n](t,r):n.slice(1,n.length-1)}),n.replace(/\?\?/g,function(){return i.shift()})},c.parse=function(t,n,e){var r=e||c.i18n;if("string"!=typeof n)throw new Error("Invalid format in fecha.parse");if(n=c.masks[n]||n,t.length>1e3)return!1;var i=!0,u={};if(n.replace(f,function(n){if(x[n]){var e=x[n],o=t.search(e[0]);~o?t.replace(e[0],function(n){return e[1](u,n,r),t=t.substr(o+n.length),n}):i=!1}return x[n]?"":n.slice(1,n.length-1)}),!i)return!1;var o=new Date;!0===u.isPm&&null!=u.hour&&12!=+u.hour?u.hour=+u.hour+12:!1===u.isPm&&12==+u.hour&&(u.hour=0);var a;return null!=u.timezoneOffset?(u.minute=+(u.minute||0)-+u.timezoneOffset,a=new Date(Date.UTC(u.year||o.getFullYear(),u.month||0,u.day||1,u.hour||0,u.minute||0,u.second||0,u.millisecond||0))):a=new Date(u.year||o.getFullYear(),u.month||0,u.day||1,u.hour||0,u.minute||0,u.second||0,u.millisecond||0),a},void 0!==t&&t.exports?t.exports=c:void 0!==(r=function(){return c}.call(n,e,n,t))&&(t.exports=r)}()},function(t,n,e){"use strict";var r=e(209),i=e.n(r),u=e(13),o=e.n(u),a=e(5),c=e.n(a),f=e(6),s=e(26);n.a={mixins:[f.default],data:function(){return{comboExpanded:!1}},computed:{items:function(){var t=this.schema.values;return"function"==typeof t?t.apply(this,[this.model,this.schema]):t},selectedCount:function(){return this.value?this.value.length:0}},methods:{getInputName:function(t){return this.schema&&this.schema.inputName&&this.schema.inputName.length>0?Object(s.slugify)(this.schema.inputName+"_"+this.getItemValue(t)):Object(s.slugify)(this.getItemValue(t))},getItemValue:function(t){if(c()(t)){if(void 0!==this.schema.checklistOptions&&void 0!==this.schema.checklistOptions.value)return t[this.schema.checklistOptions.value];if(void 0!==t.value)return t.value;throw"`value` is not defined. If you want to use another key name, add a `value` property under `checklistOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/checklist.html#checklist-field-with-object-values"}return t},getItemName:function(t){if(c()(t)){if(void 0!==this.schema.checklistOptions&&void 0!==this.schema.checklistOptions.name)return t[this.schema.checklistOptions.name];if(void 0!==t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `checklistOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/checklist.html#checklist-field-with-object-values"}return t},isItemChecked:function(t){return this.value&&-1!==this.value.indexOf(this.getItemValue(t))},onChanged:function(t,n){if(!o()(this.value)&&Array.isArray(this.value)||(this.value=[]),t.target.checked){var e=i()(this.value);e.push(this.getItemValue(n)),this.value=e}else{var r=i()(this.value);r.splice(this.value.indexOf(this.getItemValue(n)),1),this.value=r}},onExpandCombo:function(){this.comboExpanded=!this.comboExpanded}}}},function(t,n,e){"use strict";var r=e(81),i=e.n(r),u=e(3),o=e.n(u),a=e(8),c=e.n(a),f=e(77),s=e.n(f),l=e(6),h=e(82),d=e.n(h),p={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss","datetime-local":"YYYY-MM-DDTHH:mm:ss"};n.a={mixins:[l.default],computed:{inputType:function(){return this.schema&&"datetime"===this.schema.inputType?"datetime-local":this.schema.inputType}},methods:{formatValueToModel:function(t){var n=this;if(null!=t)switch(this.schema.inputType.toLowerCase()){case"date":case"datetime":case"datetime-local":case"number":case"range":return function(e,r){n.debouncedFormatFunc(t,r)}}return t},formatValueToField:function(t){switch(this.schema.inputType.toLowerCase()){case"date":case"datetime":case"datetime-local":return this.formatDatetimeValueToField(t)}return t},formatDatetimeToModel:function(t,n){var e=p[this.schema.inputType.toLowerCase()],r=d.a.parse(t,e);!1!==r&&(t=this.schema.format?d.a.format(r,this.schema.format):r.valueOf()),this.updateModelValue(t,n)},formatDatetimeValueToField:function(t){if(null===t||void 0===t)return null;var n=p[this.schema.inputType.toLowerCase()],e=t;return i()(t)||(e=d.a.parse(t,n)),!1!==e?d.a.format(e,n):t},formatNumberToModel:function(t,n){i()(t)||(t=NaN),this.updateModelValue(t,n)},onInput:function(t){var n=t.target.value;switch(this.schema.inputType.toLowerCase()){case"number":case"range":i()(parseFloat(t.target.value))&&(n=parseFloat(t.target.value))}this.value=n},onBlur:function(){o()(this.debouncedFormatFunc)&&this.debouncedFormatFunc.flush()}},mounted:function(){var t=this;switch(this.schema.inputType.toLowerCase()){case"number":case"range":this.debouncedFormatFunc=s()(function(n,e){t.formatNumberToModel(n,e)},parseInt(c()(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1});break;case"date":case"datetime":case"datetime-local":this.debouncedFormatFunc=s()(function(n,e){t.formatDatetimeToModel(n,e)},parseInt(c()(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1})}},created:function(){"file"===this.schema.inputType.toLowerCase()&&console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.")}}},function(t,n,e){"use strict";var r=e(6);n.a={mixins:[r.default]}},function(t,n,e){"use strict";var r=e(8),i=e.n(r),u=e(3),o=e.n(u),a=e(5),c=e.n(a),f=e(6);n.a={mixins:[f.default],computed:{items:function(){var t=this.schema.values;return"function"==typeof t?t.apply(this,[this.model,this.schema]):t},id:function(){return this.schema.model}},methods:{getItemValue:function(t){if(c()(t)){if(void 0!==this.schema.radiosOptions&&void 0!==this.schema.radiosOptions.value)return t[this.schema.radiosOptions.value];if(void 0!==t.value)return t.value;throw"`value` is not defined. If you want to use another key name, add a `value` property under `radiosOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values"}return t},getItemName:function(t){if(c()(t)){if(void 0!==this.schema.radiosOptions&&void 0!==this.schema.radiosOptions.name)return t[this.schema.radiosOptions.name];if(void 0!==t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `radiosOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values"}return t},getItemCssClasses:function(t){return{"is-checked":this.isItemChecked(t),"is-disabled":this.isItemDisabled(t)}},onSelection:function(t){this.value=this.getItemValue(t)},isItemChecked:function(t){return this.getItemValue(t)===this.value},isItemDisabled:function(t){if(this.disabled)return!0;var n=i()(t,"disabled",!1);return o()(n)?n(this.model):n}}}},function(t,n,e){"use strict";var r=e(222),i=e.n(r),u=e(13),o=e.n(u),a=e(5),c=e.n(a),f=e(6);n.a={mixins:[f.default],computed:{selectOptions:function(){return this.schema.selectOptions||{}},items:function(){var t=this.schema.values;return"function"==typeof t?this.groupValues(t.apply(this,[this.model,this.schema])):this.groupValues(t)}},methods:{formatValueToField:function(t){return o()(t)?null:t},groupValues:function(t){var n=[],e={};return t.forEach(function(t){e=null,t.group&&c()(t)?(e=i()(n,function(n){return n.group===t.group}),e?e.ops.push({id:t.id,name:t.name}):(e={group:"",ops:[]},e.group=t.group,e.ops.push({id:t.id,name:t.name}),n.push(e))):n.push(t)}),n},getGroupName:function(t){if(t&&t.group)return t.group;throw"Group name is missing! https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"},getItemValue:function(t){if(c()(t)){if(void 0!==this.schema.selectOptions&&void 0!==this.schema.selectOptions.value)return t[this.schema.selectOptions.value];if(void 0!==t.id)return t.id;throw"`id` is not defined. If you want to use another key name, add a `value` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"}return t},getItemName:function(t){if(c()(t)){if(void 0!==this.schema.selectOptions&&void 0!==this.schema.selectOptions.name)return t[this.schema.selectOptions.name];if(void 0!==t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"}return t}}}},function(t,n){function e(t){return t}t.exports=e},function(t,n,e){"use strict";var r=e(229),i=e.n(r),u=e(3),o=e.n(u),a=e(8),c=e.n(a),f=e(6);n.a={mixins:[f.default],methods:{onClick:function(t){var n=this;if(!0===this.schema.validateBeforeSubmit){t.preventDefault();var e=c()(this.formOptions,"validateAsync",!1),r=this.vfg.validate(),u=function(r){e&&!i()(r)||!e&&!r?o()(n.schema.onValidationError)&&n.schema.onValidationError(n.model,n.schema,r,t):o()(n.schema.onSubmit)&&n.schema.onSubmit(n.model,n.schema,t)};r&&o()(r.then)?r.then(u):u(r)}else o()(this.schema.onSubmit)&&this.schema.onSubmit(this.model,this.schema,t)}}}},function(t,n,e){"use strict";var r=e(6);n.a={mixins:[r.default]}},function(t,n,e){"use strict";var r=e(3),i=e.n(r),u=e(6);n.a={mixins:[u.default],methods:{onChange:function(t){i()(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,this.schema,t,this)}}}},function(t,n,e){var r=e(93).default,i=e(26),u=e(79).default,o=e(74).default,a=e(6).default,c=function(n,e){if(n.component("VueFormGenerator",t.exports.component),e&&e.validators)for(var r in e.validators)({}).hasOwnProperty.call(e.validators,r)&&(u[r]=e.validators[r])};t.exports={component:r,schema:i,validators:u,abstractField:a,fieldComponents:o,install:c}},function(t,n,e){"use strict";function r(t){e(94)}Object.defineProperty(n,"__esModule",{value:!0});var i=e(42),u=e(241),o=e(4),a=r,c=Object(o.a)(i.a,u.a,u.b,!1,a,null,null);n.default=c.exports},function(t,n){},function(t,n,e){e(96),e(97),e(110),e(114),e(125),e(126),t.exports=e(7).Promise},function(t,n){},function(t,n,e){"use strict";var r=e(98)(!0);e(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(29),i=e(30);t.exports=function(t){return function(n,e){var u,o,a=String(i(n)),c=r(e),f=a.length;return c<0||c>=f?t?"":void 0:(u=a.charCodeAt(c),u<55296||u>56319||c+1===f||(o=a.charCodeAt(c+1))<56320||o>57343?t?a.charAt(c):u:t?a.slice(c,c+2):o-56320+(u-55296<<10)+65536)}}},function(t,n,e){t.exports=!e(12)&&!e(31)(function(){return 7!=Object.defineProperty(e(32)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(15);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){t.exports=e(11)},function(t,n,e){"use strict";var r=e(103),i=e(46),u=e(35),o={};e(11)(o,e(2)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(o,{next:i(1,e)}),u(t,n+" Iterator")}},function(t,n,e){var r=e(9),i=e(104),u=e(51),o=e(34)("IE_PROTO"),a=function(){},c=function(){var t,n=e(32)("iframe"),r=u.length;for(n.style.display="none",e(52).appendChild(n),n.src="/service/javascript:",t=n.contentWindow.document,t.open(),t.write("
diff --git a/src/fields/optional/fieldVueMultiSelect.vue b/src/fields/optional/fieldVueMultiSelect.vue
index 8f92e119..beacff66 100644
--- a/src/fields/optional/fieldVueMultiSelect.vue
+++ b/src/fields/optional/fieldVueMultiSelect.vue
@@ -43,6 +43,8 @@
)
span(slot="noResult").
{{ selectOptions.noResult }}
+ span(slot="maxElements").
+ {{ selectOptions.maxElements }}
diff --git a/src/formGroup.vue b/src/formGroup.vue
index 7d0d7f14..548fc526 100644
--- a/src/formGroup.vue
+++ b/src/formGroup.vue
@@ -9,9 +9,9 @@
@@ -23,33 +23,20 @@