Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
v1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
janschoenherr committed Mar 25, 2021
1 parent 8b78a23 commit af7eddc
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 53 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ $ npm install vue-fields
```

### CDN
Available on [jsdelivr](https://cdn.jsdelivr.net/npm/[email protected].2) or [unpkg](https://unpkg.com/[email protected].2).
Available on [jsdelivr](https://cdn.jsdelivr.net/npm/[email protected].3) or [unpkg](https://unpkg.com/[email protected].3).
```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].2"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].3"></script>
```

## Changelog
Expand Down
32 changes: 16 additions & 16 deletions dist/vue-fields.common.js
Original file line number Diff line number Diff line change
@@ -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.
*/
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -146,7 +146,7 @@ var Field = {
label: '',
attrs: {},
options: [],
default: undefined
"default": undefined
}, this.field);
},
computed: {
Expand All @@ -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: {
Expand Down Expand Up @@ -237,7 +237,7 @@ var FieldText = {
}, 'input', _vm.attributes, false));
},
staticRenderFns: [],
extends: Field
"extends": Field
};

var FieldTextarea = {
Expand Down Expand Up @@ -270,7 +270,7 @@ var FieldTextarea = {
}, 'textarea', _vm.attributes, false));
},
staticRenderFns: [],
extends: Field
"extends": Field
};

var FieldRadio = {
Expand Down Expand Up @@ -306,7 +306,7 @@ var FieldRadio = {
})], 2);
},
staticRenderFns: [],
extends: Field
"extends": Field
};

var FieldCheckbox = {
Expand Down Expand Up @@ -353,7 +353,7 @@ var FieldCheckbox = {
}, 'input', _vm.attributes, false));
},
staticRenderFns: [],
extends: Field
"extends": Field
};

var FieldSelect = {
Expand Down Expand Up @@ -401,7 +401,7 @@ var FieldSelect = {
})], 2);
},
staticRenderFns: [],
extends: Field
"extends": Field
};

var FieldRange = {
Expand Down Expand Up @@ -433,7 +433,7 @@ var FieldRange = {
}, 'input', _vm.attributes, false));
},
staticRenderFns: [],
extends: Field
"extends": Field
};

var FieldNumber = {
Expand Down Expand Up @@ -469,7 +469,7 @@ var FieldNumber = {
}, 'input', _vm.attributes, false));
},
staticRenderFns: [],
extends: Field
"extends": Field
};

var Fields = {
Expand Down Expand Up @@ -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: {
Expand Down Expand Up @@ -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) {
Expand Down
32 changes: 16 additions & 16 deletions dist/vue-fields.esm.js
Original file line number Diff line number Diff line change
@@ -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.
*/
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -144,7 +144,7 @@ var Field = {
label: '',
attrs: {},
options: [],
default: undefined
"default": undefined
}, this.field);
},
computed: {
Expand All @@ -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: {
Expand Down Expand Up @@ -235,7 +235,7 @@ var FieldText = {
}, 'input', _vm.attributes, false));
},
staticRenderFns: [],
extends: Field
"extends": Field
};

var FieldTextarea = {
Expand Down Expand Up @@ -268,7 +268,7 @@ var FieldTextarea = {
}, 'textarea', _vm.attributes, false));
},
staticRenderFns: [],
extends: Field
"extends": Field
};

var FieldRadio = {
Expand Down Expand Up @@ -304,7 +304,7 @@ var FieldRadio = {
})], 2);
},
staticRenderFns: [],
extends: Field
"extends": Field
};

var FieldCheckbox = {
Expand Down Expand Up @@ -351,7 +351,7 @@ var FieldCheckbox = {
}, 'input', _vm.attributes, false));
},
staticRenderFns: [],
extends: Field
"extends": Field
};

var FieldSelect = {
Expand Down Expand Up @@ -399,7 +399,7 @@ var FieldSelect = {
})], 2);
},
staticRenderFns: [],
extends: Field
"extends": Field
};

var FieldRange = {
Expand Down Expand Up @@ -431,7 +431,7 @@ var FieldRange = {
}, 'input', _vm.attributes, false));
},
staticRenderFns: [],
extends: Field
"extends": Field
};

var FieldNumber = {
Expand Down Expand Up @@ -467,7 +467,7 @@ var FieldNumber = {
}, 'input', _vm.attributes, false));
},
staticRenderFns: [],
extends: Field
"extends": Field
};

var Fields = {
Expand Down Expand Up @@ -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: {
Expand Down Expand Up @@ -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) {
Expand Down
Loading

0 comments on commit af7eddc

Please sign in to comment.