From af7eddc69465c24a7680ba265694ad8435d9311d Mon Sep 17 00:00:00 2001 From: janschoenherr Date: Thu, 25 Mar 2021 11:08:58 +0100 Subject: [PATCH] v1.1.3 --- README.md | 4 ++-- dist/vue-fields.common.js | 32 ++++++++++++++++---------------- dist/vue-fields.esm.js | 32 ++++++++++++++++---------------- dist/vue-fields.js | 32 ++++++++++++++++---------------- dist/vue-fields.min.js | 4 ++-- package.json | 2 +- 6 files changed, 53 insertions(+), 53 deletions(-) diff --git a/README.md b/README.md index 573e4fb..58d3630 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ $ npm install vue-fields ``` ### CDN -Available on [jsdelivr](https://cdn.jsdelivr.net/npm/vue-fields@1.1.2) or [unpkg](https://unpkg.com/vue-fields@1.1.2). +Available on [jsdelivr](https://cdn.jsdelivr.net/npm/vue-fields@1.1.3) or [unpkg](https://unpkg.com/vue-fields@1.1.3). ```html - + ``` ## Changelog diff --git a/dist/vue-fields.common.js b/dist/vue-fields.common.js index 975924d..79bba7d 100644 --- a/dist/vue-fields.common.js +++ b/dist/vue-fields.common.js @@ -1,5 +1,5 @@ /*! - * vue-fields v1.1.2 + * vue-fields v1.1.3 * https://github.com/pagekit/vue-fields * Released under the MIT License. */ @@ -77,7 +77,7 @@ function set(obj, key, val) { _set(obj, parts.shift(), val); } var parsedFunc = {}; -var expressionRe = /((?:\d|true|false|null|undefined|(?:this\.|\$)[\w.$]+|\W)*)([\w][\w.]*)?/g; +var expressionRe = /((?:\d|true|false|null|undefined|(?:this\.|\$)[\w.$]+|\W)*)([\w][\w.-]*)?/g; var quotedStringRe = /([^"']+)((.)(?:[^\3\\]|\\.)*?\3|.)?/g; function parse(expr) { return parsedFunc[expr] = parsedFunc[expr] || Function('$values', '$context', "with($context){return " + expr.replace(quotedStringRe, function (match, unquoted, quoted) { @@ -146,7 +146,7 @@ var Field = { label: '', attrs: {}, options: [], - default: undefined + "default": undefined }, this.field); }, computed: { @@ -171,8 +171,8 @@ var Field = { } }, created: function created() { - if (isUndefined(this.value) && !isUndefined(this.default)) { - this.value = this.default; + if (isUndefined(this.value) && !isUndefined(this["default"])) { + this.value = this["default"]; } }, methods: { @@ -237,7 +237,7 @@ var FieldText = { }, 'input', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldTextarea = { @@ -270,7 +270,7 @@ var FieldTextarea = { }, 'textarea', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldRadio = { @@ -306,7 +306,7 @@ var FieldRadio = { })], 2); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldCheckbox = { @@ -353,7 +353,7 @@ var FieldCheckbox = { }, 'input', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldSelect = { @@ -401,7 +401,7 @@ var FieldSelect = { })], 2); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldRange = { @@ -433,7 +433,7 @@ var FieldRange = { }, 'input', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldNumber = { @@ -469,7 +469,7 @@ var FieldNumber = { }, 'input', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var Fields = { @@ -519,19 +519,19 @@ var Fields = { props: { config: { type: [Object, Array], - default: function _default() { + "default": function _default() { return {}; } }, values: { type: Object, - default: function _default() { + "default": function _default() { return {}; } }, prefix: { type: String, - default: 'field-' + "default": 'field-' } }, computed: { @@ -631,7 +631,7 @@ var Plugin = { Vue.component('field', Field); Vue.component('fields', Fields); }, - version: '1.1.2' + version: '1.1.3' }; if (typeof window !== 'undefined' && window.Vue) { diff --git a/dist/vue-fields.esm.js b/dist/vue-fields.esm.js index 3184432..df738f0 100644 --- a/dist/vue-fields.esm.js +++ b/dist/vue-fields.esm.js @@ -1,5 +1,5 @@ /*! - * vue-fields v1.1.2 + * vue-fields v1.1.3 * https://github.com/pagekit/vue-fields * Released under the MIT License. */ @@ -75,7 +75,7 @@ function set(obj, key, val) { _set(obj, parts.shift(), val); } var parsedFunc = {}; -var expressionRe = /((?:\d|true|false|null|undefined|(?:this\.|\$)[\w.$]+|\W)*)([\w][\w.]*)?/g; +var expressionRe = /((?:\d|true|false|null|undefined|(?:this\.|\$)[\w.$]+|\W)*)([\w][\w.-]*)?/g; var quotedStringRe = /([^"']+)((.)(?:[^\3\\]|\\.)*?\3|.)?/g; function parse(expr) { return parsedFunc[expr] = parsedFunc[expr] || Function('$values', '$context', "with($context){return " + expr.replace(quotedStringRe, function (match, unquoted, quoted) { @@ -144,7 +144,7 @@ var Field = { label: '', attrs: {}, options: [], - default: undefined + "default": undefined }, this.field); }, computed: { @@ -169,8 +169,8 @@ var Field = { } }, created: function created() { - if (isUndefined(this.value) && !isUndefined(this.default)) { - this.value = this.default; + if (isUndefined(this.value) && !isUndefined(this["default"])) { + this.value = this["default"]; } }, methods: { @@ -235,7 +235,7 @@ var FieldText = { }, 'input', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldTextarea = { @@ -268,7 +268,7 @@ var FieldTextarea = { }, 'textarea', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldRadio = { @@ -304,7 +304,7 @@ var FieldRadio = { })], 2); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldCheckbox = { @@ -351,7 +351,7 @@ var FieldCheckbox = { }, 'input', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldSelect = { @@ -399,7 +399,7 @@ var FieldSelect = { })], 2); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldRange = { @@ -431,7 +431,7 @@ var FieldRange = { }, 'input', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldNumber = { @@ -467,7 +467,7 @@ var FieldNumber = { }, 'input', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var Fields = { @@ -517,19 +517,19 @@ var Fields = { props: { config: { type: [Object, Array], - default: function _default() { + "default": function _default() { return {}; } }, values: { type: Object, - default: function _default() { + "default": function _default() { return {}; } }, prefix: { type: String, - default: 'field-' + "default": 'field-' } }, computed: { @@ -629,7 +629,7 @@ var Plugin = { Vue.component('field', Field); Vue.component('fields', Fields); }, - version: '1.1.2' + version: '1.1.3' }; if (typeof window !== 'undefined' && window.Vue) { diff --git a/dist/vue-fields.js b/dist/vue-fields.js index b040c71..acb934a 100644 --- a/dist/vue-fields.js +++ b/dist/vue-fields.js @@ -1,5 +1,5 @@ /*! - * vue-fields v1.1.2 + * vue-fields v1.1.3 * https://github.com/pagekit/vue-fields * Released under the MIT License. */ @@ -81,7 +81,7 @@ _set(obj, parts.shift(), val); } var parsedFunc = {}; - var expressionRe = /((?:\d|true|false|null|undefined|(?:this\.|\$)[\w.$]+|\W)*)([\w][\w.]*)?/g; + var expressionRe = /((?:\d|true|false|null|undefined|(?:this\.|\$)[\w.$]+|\W)*)([\w][\w.-]*)?/g; var quotedStringRe = /([^"']+)((.)(?:[^\3\\]|\\.)*?\3|.)?/g; function parse(expr) { return parsedFunc[expr] = parsedFunc[expr] || Function('$values', '$context', "with($context){return " + expr.replace(quotedStringRe, function (match, unquoted, quoted) { @@ -150,7 +150,7 @@ label: '', attrs: {}, options: [], - default: undefined + "default": undefined }, this.field); }, computed: { @@ -175,8 +175,8 @@ } }, created: function created() { - if (isUndefined(this.value) && !isUndefined(this.default)) { - this.value = this.default; + if (isUndefined(this.value) && !isUndefined(this["default"])) { + this.value = this["default"]; } }, methods: { @@ -241,7 +241,7 @@ }, 'input', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldTextarea = { @@ -274,7 +274,7 @@ }, 'textarea', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldRadio = { @@ -310,7 +310,7 @@ })], 2); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldCheckbox = { @@ -357,7 +357,7 @@ }, 'input', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldSelect = { @@ -405,7 +405,7 @@ })], 2); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldRange = { @@ -437,7 +437,7 @@ }, 'input', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var FieldNumber = { @@ -473,7 +473,7 @@ }, 'input', _vm.attributes, false)); }, staticRenderFns: [], - extends: Field + "extends": Field }; var Fields = { @@ -523,19 +523,19 @@ props: { config: { type: [Object, Array], - default: function _default() { + "default": function _default() { return {}; } }, values: { type: Object, - default: function _default() { + "default": function _default() { return {}; } }, prefix: { type: String, - default: 'field-' + "default": 'field-' } }, computed: { @@ -635,7 +635,7 @@ Vue.component('field', Field); Vue.component('fields', Fields); }, - version: '1.1.2' + version: '1.1.3' }; if (typeof window !== 'undefined' && window.Vue) { diff --git a/dist/vue-fields.min.js b/dist/vue-fields.min.js index 2cae8d1..2eb7d5e 100644 --- a/dist/vue-fields.min.js +++ b/dist/vue-fields.min.js @@ -1,7 +1,7 @@ /*! - * vue-fields v1.1.2 + * vue-fields v1.1.3 * https://github.com/pagekit/vue-fields * Released under the MIT License. */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).VueFields=t()}(this,function(){"use strict";var a,r={},u=Object.assign||function(n){for(var e=arguments.length,t=new Array(1