From 14eb52a357e0d224baa0755292e8d3eb398698da Mon Sep 17 00:00:00 2001 From: David Higgins Date: Mon, 22 Oct 2018 10:36:21 -0400 Subject: [PATCH 1/2] 2.3.2 releases --- CHANGELOG.md | 12 ++ bower.json | 64 +++++----- dist/vfg-core.css | 2 +- dist/vfg-core.js | 2 +- dist/vfg.css | 2 +- dist/vfg.js | 2 +- package.json | 302 +++++++++++++++++++++++----------------------- 7 files changed, 199 insertions(+), 187 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00001c34..8b430c73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## 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) diff --git a/bower.json b/bower.json index f8d07381..bf7bc7ae 100644 --- a/bower.json +++ b/bower.json @@ -1,34 +1,34 @@ { - "name": "vue-form-generator", - "version": "2.3.1", - "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.2", + "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/dist/vfg-core.css b/dist/vfg-core.css index 493c9dce..ffd8d104 100644 --- a/dist/vfg-core.css +++ b/dist/vfg-core.css @@ -1,5 +1,5 @@ /** - * vue-form-generator v2.3.1 + * vue-form-generator v2.3.2 * https://github.com/vue-generators/vue-form-generator/ * Released under the MIT License. */ diff --git a/dist/vfg-core.js b/dist/vfg-core.js index 6693c2d2..a36e6f98 100644 --- a/dist/vfg-core.js +++ b/dist/vfg-core.js @@ -1,5 +1,5 @@ /** - * vue-form-generator v2.3.1 + * vue-form-generator v2.3.2 * https://github.com/vue-generators/vue-form-generator/ * Released under the MIT License. */ diff --git a/dist/vfg.css b/dist/vfg.css index 28b5dda0..773a108a 100644 --- a/dist/vfg.css +++ b/dist/vfg.css @@ -1,5 +1,5 @@ /** - * vue-form-generator v2.3.1 + * vue-form-generator v2.3.2 * https://github.com/vue-generators/vue-form-generator/ * Released under the MIT License. */ diff --git a/dist/vfg.js b/dist/vfg.js index c27fec19..91686997 100644 --- a/dist/vfg.js +++ b/dist/vfg.js @@ -1,5 +1,5 @@ /** - * vue-form-generator v2.3.1 + * vue-form-generator v2.3.2 * https://github.com/vue-generators/vue-form-generator/ * Released under the MIT License. */ diff --git a/package.json b/package.json index 8d5ef277..63b590a2 100644 --- a/package.json +++ b/package.json @@ -1,153 +1,153 @@ { - "name": "vue-form-generator", - "version": "2.3.1", - "description": "A schema-based form generator component for Vue.js", - "homepage": "https://github.com/vue-generators/vue-form-generator/", - "main": "dist/vfg.js", - "scripts": { - "prebuild": "npm run test", - "build:core": "cross-env FULL_BUNDLE=false webpack --progress --config build/webpack.build.config.js --define process.env.FULL_BUNDLE=false --output-filename=vfg-core.js", - "build:full": "cross-env FULL_BUNDLE=true webpack --progress --config build/webpack.build.config.js --define process.env.FULL_BUNDLE=true", - "build": "cross-env NODE_ENV=production npm run build:core && cross-env NODE_ENV=production npm run build:full", - "dev-OLD": "webpack-dev-server --config webpack.dev.config.js --inline --hot --content-base dev/", - "dev": "webpack-dev-server --config build/webpack.dev.config.js --inline --hot", - "lint": "eslint --ext=.js,.vue src test/unit/specs", - "coverall": "cat ./test/unit/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", - "coverage-OLD": "npm run test && npm run coverall", - "coverage": "cross-env NODE_ENV=test nyc npm run mocha && nyc report --reporter=text-lcov | coveralls", - "changelog": "conventional-changelog -i CHANGELOG.md -s", - "changelog:full": "conventional-changelog -i CHANGELOG.md -s -r 0", - "docs": "cd docs && gitbook serve", - "mocha": "mocha-webpack --webpack-config build/webpack.test.config.js --require test/unit/setup.js test/unit/specs/**/*.spec.js", - "unit-OLD": "karma start test/unit/karma.conf.js", - "unit": "cross-env NODE_ENV=test nyc npm run mocha", - "e2e": "node test/e2e/runner.js", - "pretest": "npm run lint", - "ci-OLD": "karma start test/unit/karma.conf.js --auto-watch --no-single-run --reporters=dots --port=9877", - "ci": "cross-env NODE_ENV=test mocha-webpack --watch --webpack-config build/webpack.test.config.js --require test/unit/setup.js test/unit/specs/**/*.spec.js", - "test": "npm run unit", - "version": "bumped release" - }, - "keywords": [ - "vue", - "vuejs", - "form", - "generator", - "schema", - "json" - ], - "repository": { - "type": "git", - "url": "https://github.com/vue-generators/vue-form-generator.git" - }, - "files": [ - "dist/vfg.js", - "dist/vfg.css", - "dist/vfg-core.js", - "dist/vfg-core.css", - "src" - ], - "author": "Icebob", - "license": "MIT", - "devDependencies": { - "@vue/test-utils": "1.0.0-beta.11", - "ajv": "6.5.1", - "autoprefixer": "8.6.3", - "babel-core": "6.26.3", - "babel-eslint": "8.2.3", - "babel-loader": "7.1.4", - "babel-plugin-istanbul": "4.1.6", - "babel-plugin-lodash": "3.3.4", - "babel-plugin-transform-runtime": "6.23.0", - "babel-preset-env": "1.7.0", - "babel-preset-stage-2": "6.24.1", - "bumped": "0.10.10", - "bumped-terminal": "0.7.3", - "chai": "4.1.2", - "cleave.js": "1.3.7", - "conventional-changelog-cli": "2.0.1", - "coveralls": "3.0.1", - "cross-env": "5.2.0", - "css-loader": "0.28.11", - "eonasdan-bootstrap-datetimepicker": "4.17.47", - "eslint": "4.19.1", - "eslint-config-prettier": "2.9.0", - "eslint-friendly-formatter": "4.0.1", - "eslint-loader": "2.0.0", - "eslint-plugin-import": "2.12.0", - "eslint-plugin-node": "6.0.1", - "eslint-plugin-prettier": "2.6.0", - "eslint-plugin-vue": "4.5.0", - "expect": "23.1.0", - "extract-text-webpack-plugin": "3.0.2", - "fakerator": "0.3.0", - "fecha": "2.3.3", - "file-loader": "1.1.11", - "inject-loader": "3.0.1", - "ion-rangeslider": "2.2.0", - "jquery": "3.3.1", - "jsdom": "11.11.0", - "jsdom-global": "3.0.2", - "lodash": "4.17.10", - "lodash-webpack-plugin": "0.11.5", - "lolex": "2.7.0", - "mocha": "5.2.0", - "mocha-generators": "2.0.0", - "mocha-loader": "1.1.3", - "mocha-webpack": "1.1.0", - "nightwatch": "0.9.21", - "node-sass": "4.9.0", - "nouislider": "11.0.3", - "nyc": "12.0.2", - "pikaday": "1.7.0", - "prettier": "1.11.1", - "pug": "2.0.3", - "pug-loader": "2.4.0", - "sass-loader": "7.0.3", - "sinon": "6.0.0", - "sinon-chai": "3.2.0", - "spectrum-colorpicker": "1.8.0", - "stats-webpack-plugin": "0.6.2", - "url-loader": "1.0.1", - "vue": "2.5.16", - "vue-loader": "14.2.1", - "vue-multiselect": "2.1.0", - "vue-style-loader": "4.1.0", - "vue-template-compiler": "2.5.16", - "webpack": "3.11.0", - "webpack-dev-middleware": "2.0.6", - "webpack-dev-server": "2.11.1", - "webpack-merge": "4.1.3", - "webpack-node-externals": "1.7.2" - }, - "dependencies": {}, - "publishConfig": { - "access": "public" - }, - "browserslist": [ - "last 2 versions" - ], - "prettier": { - "printWidth": 120, - "tabWidth": 4, - "singleQuote": false, - "trailingComma": "none", - "bracketSpacing": true, - "semi": true, - "useTabs": true, - "arrowParens": "always" - }, - "nyc": { - "include": [ - "src/**/*.(js|vue)" - ], - "instrument": false, - "sourceMap": false, - "reporter": [ - "lcov", - "text" - ], - "report-dir": "./test/unit/coverage", - "temp-directory": "./test/unit/coverage/.nyc_output" - } + "name": "vue-form-generator", + "version": "2.3.2", + "description": "A schema-based form generator component for Vue.js", + "homepage": "https://github.com/vue-generators/vue-form-generator/", + "main": "dist/vfg.js", + "scripts": { + "prebuild": "npm run test", + "build:core": "cross-env FULL_BUNDLE=false webpack --progress --config build/webpack.build.config.js --define process.env.FULL_BUNDLE=false --output-filename=vfg-core.js", + "build:full": "cross-env FULL_BUNDLE=true webpack --progress --config build/webpack.build.config.js --define process.env.FULL_BUNDLE=true", + "build": "cross-env NODE_ENV=production npm run build:core && cross-env NODE_ENV=production npm run build:full", + "dev-OLD": "webpack-dev-server --config webpack.dev.config.js --inline --hot --content-base dev/", + "dev": "webpack-dev-server --config build/webpack.dev.config.js --inline --hot", + "lint": "eslint --ext=.js,.vue src test/unit/specs", + "coverall": "cat ./test/unit/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", + "coverage-OLD": "npm run test && npm run coverall", + "coverage": "cross-env NODE_ENV=test nyc npm run mocha && nyc report --reporter=text-lcov | coveralls", + "changelog": "conventional-changelog -i CHANGELOG.md -s", + "changelog:full": "conventional-changelog -i CHANGELOG.md -s -r 0", + "docs": "cd docs && gitbook serve", + "mocha": "mocha-webpack --webpack-config build/webpack.test.config.js --require test/unit/setup.js test/unit/specs/**/*.spec.js", + "unit-OLD": "karma start test/unit/karma.conf.js", + "unit": "cross-env NODE_ENV=test nyc npm run mocha", + "e2e": "node test/e2e/runner.js", + "pretest": "npm run lint", + "ci-OLD": "karma start test/unit/karma.conf.js --auto-watch --no-single-run --reporters=dots --port=9877", + "ci": "cross-env NODE_ENV=test mocha-webpack --watch --webpack-config build/webpack.test.config.js --require test/unit/setup.js test/unit/specs/**/*.spec.js", + "test": "npm run unit", + "version": "bumped release" + }, + "keywords": [ + "vue", + "vuejs", + "form", + "generator", + "schema", + "json" + ], + "repository": { + "type": "git", + "url": "https://github.com/vue-generators/vue-form-generator.git" + }, + "files": [ + "dist/vfg.js", + "dist/vfg.css", + "dist/vfg-core.js", + "dist/vfg-core.css", + "src" + ], + "author": "Icebob", + "license": "MIT", + "devDependencies": { + "@vue/test-utils": "1.0.0-beta.11", + "ajv": "6.5.1", + "autoprefixer": "8.6.3", + "babel-core": "6.26.3", + "babel-eslint": "8.2.3", + "babel-loader": "7.1.4", + "babel-plugin-istanbul": "4.1.6", + "babel-plugin-lodash": "3.3.4", + "babel-plugin-transform-runtime": "6.23.0", + "babel-preset-env": "1.7.0", + "babel-preset-stage-2": "6.24.1", + "bumped": "0.10.10", + "bumped-terminal": "0.7.3", + "chai": "4.1.2", + "cleave.js": "1.3.7", + "conventional-changelog-cli": "2.0.1", + "coveralls": "3.0.1", + "cross-env": "5.2.0", + "css-loader": "0.28.11", + "eonasdan-bootstrap-datetimepicker": "4.17.47", + "eslint": "4.19.1", + "eslint-config-prettier": "2.9.0", + "eslint-friendly-formatter": "4.0.1", + "eslint-loader": "2.0.0", + "eslint-plugin-import": "2.12.0", + "eslint-plugin-node": "6.0.1", + "eslint-plugin-prettier": "2.6.0", + "eslint-plugin-vue": "4.5.0", + "expect": "23.1.0", + "extract-text-webpack-plugin": "3.0.2", + "fakerator": "0.3.0", + "fecha": "2.3.3", + "file-loader": "1.1.11", + "inject-loader": "3.0.1", + "ion-rangeslider": "2.2.0", + "jquery": "3.3.1", + "jsdom": "11.11.0", + "jsdom-global": "3.0.2", + "lodash": "4.17.10", + "lodash-webpack-plugin": "0.11.5", + "lolex": "2.7.0", + "mocha": "5.2.0", + "mocha-generators": "2.0.0", + "mocha-loader": "1.1.3", + "mocha-webpack": "1.1.0", + "nightwatch": "0.9.21", + "node-sass": "4.9.0", + "nouislider": "11.0.3", + "nyc": "12.0.2", + "pikaday": "1.7.0", + "prettier": "1.11.1", + "pug": "2.0.3", + "pug-loader": "2.4.0", + "sass-loader": "7.0.3", + "sinon": "6.0.0", + "sinon-chai": "3.2.0", + "spectrum-colorpicker": "1.8.0", + "stats-webpack-plugin": "0.6.2", + "url-loader": "1.0.1", + "vue": "2.5.16", + "vue-loader": "14.2.1", + "vue-multiselect": "2.1.0", + "vue-style-loader": "4.1.0", + "vue-template-compiler": "2.5.16", + "webpack": "3.11.0", + "webpack-dev-middleware": "2.0.6", + "webpack-dev-server": "2.11.1", + "webpack-merge": "4.1.3", + "webpack-node-externals": "1.7.2" + }, + "dependencies": {}, + "publishConfig": { + "access": "public" + }, + "browserslist": [ + "last 2 versions" + ], + "prettier": { + "printWidth": 120, + "tabWidth": 4, + "singleQuote": false, + "trailingComma": "none", + "bracketSpacing": true, + "semi": true, + "useTabs": true, + "arrowParens": "always" + }, + "nyc": { + "include": [ + "src/**/*.(js|vue)" + ], + "instrument": false, + "sourceMap": false, + "reporter": [ + "lcov", + "text" + ], + "report-dir": "./test/unit/coverage", + "temp-directory": "./test/unit/coverage/.nyc_output" + } } From da32bde989466c3f5a5c6de88a7ef708563e3ddf Mon Sep 17 00:00:00 2001 From: David Higgins Date: Tue, 23 Oct 2018 12:56:26 -0400 Subject: [PATCH 2/2] #535, #526 - reversed "deep property path" fix --- build/webpack.build.config.js | 16 +--------------- dist/vfg-core.js | 2 +- dist/vfg.js | 2 +- 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/build/webpack.build.config.js b/build/webpack.build.config.js index 7d18f89d..8b975373 100644 --- a/build/webpack.build.config.js +++ b/build/webpack.build.config.js @@ -74,22 +74,8 @@ module.exports = [ } }), new LodashModuleReplacementPlugin({ - shorthands: true, - cloning: true, - currying: true, - caching: true, collections: true, - exotics: true, - guards: true, - metadata: true, - deburring: true, - unicode: true, - chaining: true, - memoizing: true, - coercions: true, - flattening: true, - paths: false, - placeholders: true + paths: true, }), new webpack.optimize.UglifyJsPlugin({ compress: { diff --git a/dist/vfg-core.js b/dist/vfg-core.js index a36e6f98..09d2e450 100644 --- a/dist/vfg-core.js +++ b/dist/vfg-core.js @@ -4,4 +4,4 @@ * Released under the MIT License. */ -!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=122)}([function(t,n){var e=Array.isArray;t.exports=e},function(t,n){function e(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}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(67)("wks"),i=e(68),o=e(2).Symbol,u="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=r},function(t,n,e){function r(t){if(!o(t))return!1;var n=i(t);return n==a||n==c||n==u||n==f}var i=e(12),o=e(1),u="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",f="[object Proxy]";t.exports=r},function(t,n,e){var r=e(77),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,n,e){"use strict";function r(t,n,e,r,i,o,u,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),o&&(f._scopeId=o);var s;if(u?(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(u)},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 p=f.beforeCreate;f.beforeCreate=p?[].concat(p,s):[s]}return{exports:t,options:f}}n.a=r},function(t,n,e){"use strict";function r(t){return p()(t)?null!=y.default[t]?y.default[t]:(console.warn("'"+t+"' is not a validator function!"),null):t}function i(t,n,e){var r=g()(e.context,"schema.attributes",{}),i=n.value||"input";p()(i)&&(r=g()(r,i)||r),m()(r,function(n,e){t.setAttribute(e,n)})}Object.defineProperty(n,"__esModule",{value:!0});var o=e(61),u=e.n(o),a=e(103),c=e.n(a),f=e(0),s=e.n(f),l=e(53),p=e.n(l),h=e(4),d=e.n(h),v=e(30),m=e.n(v),_=e(10),g=e.n(_),y=e(105),b=e(35);n.default={props:["vfg","model","schema","formOptions","disabled"],data:function(){return{errors:[],debouncedValidateFunc:null,debouncedFormatFunction:null}},directives:{attributes:{bind:i,updated:i,componentUpdated:i}},computed:{value:{cache:!1,get:function(){var t=void 0;return t=d()(g()(this.schema,"get"))?this.schema.get(this.model):g()(this.model,this.schema.model),this.formatValueToField(t)},set:function(t){var n=this.value;t=this.formatValueToModel(t),d()(t)?t(t,n):this.updateModelValue(t,n)}}},methods:{validate:function(t){var n=this;this.clearValidationErrors();var e=g()(this.formOptions,"validateAsync",!1),i=[];if(this.schema.validator&&!0!==this.schema.readonly&&!0!==this.disabled){var o=[];s()(this.schema.validator)?m()(this.schema.validator,function(t){o.push(r(t).bind(n))}):o.push(r(this.schema.validator).bind(this)),m()(o,function(t){if(e)i.push(t(n.value,n.schema,n.model));else{var r=t(n.value,n.schema,n.model);r&&d()(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=[];m()(e,function(t){s()(t)&&t.length>0?r=r.concat(t):p()(t)&&r.push(t)}),d()(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?u.a.all(i).then(a):a(i)},debouncedValidate:function(){d()(this.debouncedValidateFunc)||(this.debouncedValidateFunc=c()(this.validate.bind(this),g()(this,"$parent.options.validateDebounceTime",500))),this.debouncedValidateFunc()},updateModelValue:function(t,n){var e=!1;d()(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),d()(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,t,n,this.schema),!0===g()(this.$parent,"options.validateAfterChanged",!1)&&(g()(this.$parent,"options.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("."),o=0,u=i.length;o1&&void 0!==arguments[1]?arguments[1]:{};return p()(t.fields,function(e){void 0===m()(n,e.model)&&void 0!==e.default&&(u()(e.default)?d()(n,e.model,e.default(e,t,n)):s()(e.default)||c()(e.default)?d()(n,e.model,i()(e.default)):d()(n,e.model,e.default))}),n},g=function(t){var n=[];return p()(t.fields,function(t){!0===t.multi&&n.push(t)}),n},y=function(t,n){var e={},r=g(t);return p()(r,function(t){var r=void 0,i=!0,o=t.model;p()(n,function(t){var n=m()(t,o);i?(r=n,i=!1):r!==n&&(r=void 0)}),d()(e,o,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){var n=-1,e=null==t?0:t.length;for(this.clear();++n0?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(21),i=e(2).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,e){var r=e(136),i=e(42);t.exports=function(t){return r(i(t))}},function(t,n,e){var r=e(67)("keys"),i=e(68);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n,e){var r=e(20).f,i=e(27),o=e(3)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{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(26);t.exports.f=function(t){return new r(t)}},function(t,n){function e(t,n){var e=typeof t;return!!(n=null==n?r:n)&&("number"==e||"symbol"!=e&&i.test(t))&&t>-1&&t%1==0&&t0}}},data:function(){return{vfg:this,errors:[]}},computed:{fields:function(){var t=this,n=[];return this.schema&&this.schema.fields&&p()(this.schema.fields,function(e){t.multiple&&!0!==e.multi||n.push(e)}),n},groups:function(){var t=[];return this.schema&&this.schema.groups&&p()(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&&p()(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=d()(this.options,"validateAsync",!1)),this.clearValidationErrors();var e=[],r=[];p()(this.$children,function(t){s()(t.validate)&&(e.push(t.$refs.child),r.push(t.validate(!0)))});var o=function(r){var i=[];p()(r,function(t,n){u()(t)&&t.length>0&&p()(t,function(t){i.push({field:e[n].schema,error:t})})}),t.errors=i;var o=0===i.length;return t.$emit("validated",o,i,t),n?i:o};return n?i.a.all(r).then(o):o(r)},clearValidationErrors:function(){this.errors.splice(0),p()(this.$children,function(t){t.clearValidationErrors()})}}}},function(t,n,e){t.exports={default:e(125),__esModule:!0}},function(t,n,e){"use strict";var r=e(63),i=e(14),o=e(131),u=e(15),a=e(27),c=e(22),f=e(132),s=e(47),l=e(139),p=e(3)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,n,e,v,m,_,g){f(e,n,v);var y,b,x,w=function(t){if(!h&&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,A=!1,M=t.prototype,S=M[p]||M["@@iterator"]||m&&M[m],C=S||w(m),I=m?O?w("entries"):C:void 0,k="Array"==n?M.entries||S:S;if(k&&(x=l(k.call(new t)))!==Object.prototype&&x.next&&(s(x,j,!0),r||a(x,p)||u(x,p,d)),O&&S&&"values"!==S.name&&(A=!0,C=function(){return S.call(this)}),r&&!g||!h&&!A&&M[p]||u(M,p,C),c[n]=C,c[j]=d,m)if(y={values:O?C:w("values"),keys:_?C:w("keys"),entries:I},g)for(b in y)b in M||o(M,b,y[b]);else i(i.P+i.F*(h||A),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(135),i=e(69);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){var r=e(41),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n,e){var r=e(2),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(2).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(42);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(28),i=e(3)("toStringTag"),o="Arguments"==r(function(){return arguments}()),u=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=u(n=Object(t),i))?e:o?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){var r=e(11),i=e(26),o=e(3)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[o])?n:i(e)}},function(t,n,e){var r,i,o,u=e(25),a=e(150),c=e(70),f=e(44),s=e(2),l=s.process,p=s.setImmediate,h=s.clearImmediate,d=s.MessageChannel,v=s.Dispatch,m=0,_={},g=function(){var t=+this;if(_.hasOwnProperty(t)){var n=_[t];delete _[t],n()}},y=function(t){g.call(t.data)};p&&h||(p=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return _[++m]=function(){a("function"==typeof t?t:Function(t),n)},r(m),m},h=function(t){delete _[t]},"process"==e(28)(l)?r=function(t){l.nextTick(u(g,t,1))}:v&&v.now?r=function(t){v.now(u(g,t,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=y,r=u(o.postMessage,o,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),g.call(t)}}:function(t){setTimeout(u(g,t,1),0)}),t.exports={set:p,clear:h}},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(11),i=e(21),o=e(48);t.exports=function(t,n){if(r(t),i(n)&&n.constructor===t)return n;var e=o.f(t);return(0,e.resolve)(n),e.promise}},function(t,n,e){(function(n){var e="object"==typeof n&&n&&n.Object===Object&&n;t.exports=e}).call(n,e(78))},function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n){function e(t,n){for(var e=-1,r=null==t?0:t.length;++e-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=e},function(t,n,e){function r(t){if(!i(t))return o(t);var n=[];for(var e in Object(t))a.call(t,e)&&"constructor"!=e&&n.push(e);return n}var i=e(33),o=e(167),u=Object.prototype,a=u.hasOwnProperty;t.exports=r},function(t,n){function e(t,n){return function(e){return t(n(e))}}t.exports=e},function(t,n,e){"use strict";var r=e(171),i=e.n(r),o=e(4),u=e.n(o),a=e(53),c=e.n(a),f=e(0),s=e.n(f),l=e(17),p=e.n(l),h=e(30),d=e.n(h),v=e(10),m=e.n(v);n.a={methods:{getFieldRowClasses:function(t){var n,e=this.fieldErrors(t).length>0,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)?d()(t.styleClasses,function(t){return r[t]=!0}):c()(t.styleClasses)&&(r[t.styleClasses]=!0),p()(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 u()(t.disabled)?t.disabled.call(this,this.model,t,this):!p()(t.disabled)&&t.disabled},fieldReadonly:function(t){return u()(t.readonly)?t.readonly.call(this,this.model,t,this):!p()(t.readonly)&&t.readonly},fieldFeatured:function(t){return u()(t.featured)?t.featured.call(this,this.model,t,this):!p()(t.featured)&&t.featured},fieldRequired:function(t){return u()(t.required)?t.required.call(this,this.model,t,this):!p()(t.required)&&t.required}}}},function(t,n,e){"use strict";var r=e(4),i=e.n(r),o=e(17),u=e.n(o),a=e(10),c=e.n(a),f=e(35),s=e(85),l=e(101),p=e.n(l);n.a={name:"form-group",components:p.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(u()(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},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,P,D){var N,L=n&A,R=n&M,z=n&S;if(e&&(N=P?e(t,F,P,D):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 V=v(t),U=V==I||V==k;if(b(t))return f(t,L);if(V==T||V==C||U&&!P){if(N=R||U?{}:g(t),!L)return R?p(t,c(N,t)):l(t,a(N,t))}else{if(!E[V])return P?t:{};N=_(t,V,L)}}D||(D=new i);var B=D.get(t);if(B)return B;if(D.set(t,N),j(t))return t.forEach(function(i){N.add(r(i,n,e,i,t,D))}),N;if(x(t))return t.forEach(function(i,o){N.set(o,r(i,n,e,o,t,D))}),N;var q=z?R?d:h:R?keysIn:O,Y=$?void 0:q(t);return o(Y||t,function(i,o){Y&&(o=i,i=t[o]),u(N,o,r(i,n,e,o,t,D))}),N}var i=e(54),o=e(79),u=e(56),a=e(204),c=e(205),f=e(208),s=e(209),l=e(210),p=e(212),h=e(96),d=e(213),v=e(24),m=e(218),_=e(219),g=e(224),y=e(0),b=e(31),x=e(226),w=e(1),j=e(228),O=e(18),A=1,M=2,S=4,C="[object Arguments]",I="[object Function]",k="[object GeneratorFunction]",T="[object Object]",E={};E[C]=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[T]=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[I]=E["[object WeakMap]"]=!1,t.exports=r},function(t,n){function e(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var r=Function.prototype,i=r.toString;t.exports=e},function(t,n,e){function r(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n||e<0||M&&r>=b}function h(){var t=o();if(p(t))return d(t);w=setTimeout(h,l(t))}function d(t){return w=void 0,S&&g?r(t):(g=y=void 0,x)}function v(){void 0!==w&&clearTimeout(w),O=0,g=j=y=w=void 0}function m(){return void 0===w?x:d(o())}function _(){var t=o(),e=p(t);if(g=arguments,y=this,j=t,e){if(void 0===w)return s(j);if(M)return w=setTimeout(h,n),r(j)}return void 0===w&&(w=setTimeout(h,n)),x}var g,y,b,x,w,j,O=0,A=!1,M=!1,S=!0;if("function"!=typeof t)throw new TypeError(a);return n=u(n)||0,i(e)&&(A=!!e.leading,M="maxWait"in e,b=M?c(u(e.maxWait)||0,n):b,S="trailing"in e?!!e.trailing:S),_.cancel=v,_.flush=m,_}var i=e(1),o=e(238),u=e(104),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(o(t))return u;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)?u:+t}var i=e(1),o=e(100),u=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]:j;return g()(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]:j;return r(t,n.required,i)},number:function(t,n,e){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j,u=r(t,n.required,o);if(null!=u)return u;var a=[];return m()(t)?(!g()(n.min)&&tn.max&&a.push(i(o.numberTooBig,n.max))):a.push(i(o.invalidNumber)),a},integer:function(t,n,e){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j,u=r(t,n.required,o);if(null!=u)return u;var a=O.number(t,n,e,o);return d()(t)||a.push(i(o.invalidInteger)),a},double:function(t,n,e){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j,u=r(t,n.required,o);return null!=u?u:!m()(t)||isNaN(t)?[i(o.invalidNumber)]:void 0},string:function(t,n,e){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j,u=r(t,n.required,o);if(null!=u)return u;var a=[];return p()(t)?(!g()(n.min)&&t.lengthn.max&&a.push(i(o.textTooBig,t.length,n.max))):a.push(i(o.thisNotText)),a},array:function(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j;if(n.required){if(!s()(t))return[i(r.thisNotArray)];if(0===t.length)return[i(r.fieldIsRequired)]}if(!g()(t)){if(!g()(n.min)&&t.lengthn.max)return[i(r.selectMaxItems,n.max)]}},date:function(t,n,e){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j,u=r(t,n.required,o);if(null!=u)return u;var a=new Date(t);if(!a)return[i(o.invalidDate)];var c=[];if(!g()(n.min)){var f=new Date(n.min);a.valueOf()s.valueOf()&&c.push(i(o.dateIsLate,w.a.format(a),w.a.format(s)))}return c},regexp:function(t,n,e){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j,u=r(t,n.required,o);if(null!=u)return u;if(!g()(n.pattern)){if(!new RegExp(n.pattern).test(t))return[i(o.invalidFormat)]}},email:function(t,n,e){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j,u=r(t,n.required,o);return null!=u?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,}))$/.test(t)?void 0:[i(o.invalidEmail)]},url:function(t,n,e){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j,u=r(t,n.required,o);return null!=u?u:/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/g.test(t)?void 0:[i(o.invalidURL)]},creditCard:function(t,n,e){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j,u=r(t,n.required,o);if(null!=u)return u;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(o.invalidCard)];for(var f=0,s=void 0,l=void 0,p=void 0,h=c.length-1;h>=0;h--)s=c.substring(h,h+1),l=parseInt(s,10),p?(l*=2,f+=l>=10?l%10+1:l):f+=l,p=!p;return f%10==0&&c?void 0:[i(o.invalidCardNumber)]},alpha:function(t,n,e){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j,u=r(t,n.required,o);return null!=u?u:/^[a-zA-Z]*$/.test(t)?void 0:[i(o.invalidTextContainNumber)]},alphaNumeric:function(t,n,e){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j,u=r(t,n.required,o);return null!=u?u:/^[a-zA-Z0-9]*$/.test(t)?void 0:[i(o.invalidTextContainSpec)]}};u()(O).forEach(function(t){var n=O[t];c()(n)&&(n.locale=function(t){return function(e,r,i){return n(e,r,i,b()(t,j))}})}),n.default=O},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(244);t.exports=r},function(t,n,e){function r(t){return"number"==typeof t||o(t)&&i(t)==u}var i=e(12),o=e(9),u="[object Number]";t.exports=r},function(t,n,e){var r;!function(i){"use strict";function o(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+h.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:[p,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:[h,v],MMM:[h,u("monthNamesShort")],MMMM:[h,u("monthNames")],a:[h,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(d,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,o={};if(n.replace(f,function(n){if(x[n]){var e=x[n],u=t.search(e[0]);~u?t.replace(e[0],function(n){return e[1](o,n,r),t=t.substr(u+n.length),n}):i=!1}return x[n]?"":n.slice(1,n.length-1)}),!i)return!1;var u=new Date;!0===o.isPm&&null!=o.hour&&12!=+o.hour?o.hour=+o.hour+12:!1===o.isPm&&12==+o.hour&&(o.hour=0);var a;return null!=o.timezoneOffset?(o.minute=+(o.minute||0)-+o.timezoneOffset,a=new Date(Date.UTC(o.year||u.getFullYear(),o.month||0,o.day||1,o.hour||0,o.minute||0,o.second||0,o.millisecond||0))):a=new Date(o.year||u.getFullYear(),o.month||0,o.day||1,o.hour||0,o.minute||0,o.second||0,o.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(257),i=e.n(r),o=e(17),u=e.n(o),a=e(1),c=e.n(a),f=e(7),s=e(35);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(!u()(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(107),i=e.n(r),o=e(4),u=e.n(o),a=e(10),c=e.n(a),f=e(103),s=e.n(f),l=e(7),p=e(108),h=e.n(p),d={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss","datetime-local":"YYYY-MM-DDTHH:mm:ss"};n.a={mixins:[l.default],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},formatDatetimeToModel:function(t,n){var e=d[this.schema.inputType.toLowerCase()],r=h.a.parse(t,e);!1!==r&&(t=this.schema.format?h.a.format(r,this.schema.format):r.valueOf()),this.updateModelValue(t,n)},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(){u()(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(7);n.a={mixins:[r.default]}},function(t,n,e){"use strict";var r=e(1),i=e.n(r),o=e(7);n.a={mixins:[o.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(i()(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(i()(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},onSelection:function(t){this.value=this.getItemValue(t)},isItemChecked:function(t){return this.getItemValue(t)===this.value}}}},function(t,n,e){"use strict";var r=e(270),i=e.n(r),o=e(17),u=e.n(o),a=e(1),c=e.n(a),f=e(7);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 u()(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,e){function r(t){return"function"==typeof t?t:null==t?u:"object"==typeof t?a(t)?o(t[0],t[1]):i(t):c(t)}var i=e(272),o=e(285),u=e(34),a=e(0),c=e(288);t.exports=r},function(t,n,e){function r(t,n,e,u,a){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:i(t,n,e,u,r,a))}var i=e(274),o=e(9);t.exports=r},function(t,n,e){function r(t,n,e,r,f,s){var l=e&a,p=t.length,h=n.length;if(p!=h&&!(l&&h>p))return!1;var d=s.get(t);if(d&&s.get(n))return d==n;var v=-1,m=!0,_=e&c?new i:void 0;for(s.set(t,n),s.set(n,t);++v=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(41),i=e(42);t.exports=function(t){return function(n,e){var o,u,a=String(i(n)),c=r(e),f=a.length;return c<0||c>=f?t?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===f||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):o:t?a.slice(c,c+2):u-56320+(o-55296<<10)+65536)}}},function(t,n,e){t.exports=!e(16)&&!e(43)(function(){return 7!=Object.defineProperty(e(44)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(21);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(15)},function(t,n,e){"use strict";var r=e(133),i=e(64),o=e(47),u={};e(15)(u,e(3)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n,e){var r=e(11),i=e(134),o=e(69),u=e(46)("IE_PROTO"),a=function(){},c=function(){var t,n=e(44)("iframe"),r=o.length;for(n.style.display="none",e(70).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("