tg-controls_cli 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/myLib.common.js +237 -232
- package/dist/myLib.common.js.map +1 -1
- package/dist/myLib.umd.js +237 -232
- package/dist/myLib.umd.js.map +1 -1
- package/dist/myLib.umd.min.js +2 -2
- package/dist/myLib.umd.min.js.map +1 -1
- package/package.json +2 -2
package/dist/myLib.common.js
CHANGED
|
@@ -24171,7 +24171,7 @@ if (typeof window !== 'undefined') {
|
|
|
24171
24171
|
// Indicate to webpack that this file can be concatenated
|
|
24172
24172
|
/* harmony default export */ var setPublicPath = (null);
|
|
24173
24173
|
|
|
24174
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"c1dfe90e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DynamicForm.vue?vue&type=template&id=
|
|
24174
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"c1dfe90e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DynamicForm.vue?vue&type=template&id=bf3cb39e&
|
|
24175
24175
|
var render = function render() {
|
|
24176
24176
|
var _vm = this,
|
|
24177
24177
|
_c = _vm._self._c;
|
|
@@ -24299,7 +24299,7 @@ var render = function render() {
|
|
|
24299
24299
|
};
|
|
24300
24300
|
var staticRenderFns = [];
|
|
24301
24301
|
|
|
24302
|
-
// CONCATENATED MODULE: ./src/components/DynamicForm.vue?vue&type=template&id=
|
|
24302
|
+
// CONCATENATED MODULE: ./src/components/DynamicForm.vue?vue&type=template&id=bf3cb39e&
|
|
24303
24303
|
|
|
24304
24304
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
24305
24305
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
@@ -28065,8 +28065,8 @@ var CheckBoxField_component = normalizeComponent(
|
|
|
28065
28065
|
)
|
|
28066
28066
|
|
|
28067
28067
|
/* harmony default export */ var CheckBoxField = (CheckBoxField_component.exports);
|
|
28068
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"c1dfe90e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/RadioField.vue?vue&type=template&id=
|
|
28069
|
-
var
|
|
28068
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"c1dfe90e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/RadioField.vue?vue&type=template&id=6965ec07&
|
|
28069
|
+
var RadioFieldvue_type_template_id_6965ec07_render = function render() {
|
|
28070
28070
|
var _vm = this,
|
|
28071
28071
|
_c = _vm._self._c;
|
|
28072
28072
|
return _c('Field', {
|
|
@@ -28112,9 +28112,11 @@ var RadioFieldvue_type_template_id_43707bf0_render = function render() {
|
|
|
28112
28112
|
"checked": _vm._q(_vm.fieldInfo.value, null)
|
|
28113
28113
|
},
|
|
28114
28114
|
on: {
|
|
28115
|
-
"change": function ($event) {
|
|
28115
|
+
"change": [function ($event) {
|
|
28116
28116
|
return _vm.$set(_vm.fieldInfo, "value", null);
|
|
28117
|
-
}
|
|
28117
|
+
}, function ($event) {
|
|
28118
|
+
return _vm.onChange($event);
|
|
28119
|
+
}]
|
|
28118
28120
|
}
|
|
28119
28121
|
}), _c('label', {
|
|
28120
28122
|
staticClass: "custom-control-label",
|
|
@@ -28127,9 +28129,9 @@ var RadioFieldvue_type_template_id_43707bf0_render = function render() {
|
|
|
28127
28129
|
}])
|
|
28128
28130
|
});
|
|
28129
28131
|
};
|
|
28130
|
-
var
|
|
28132
|
+
var RadioFieldvue_type_template_id_6965ec07_staticRenderFns = [];
|
|
28131
28133
|
|
|
28132
|
-
// CONCATENATED MODULE: ./src/components/RadioField.vue?vue&type=template&id=
|
|
28134
|
+
// CONCATENATED MODULE: ./src/components/RadioField.vue?vue&type=template&id=6965ec07&
|
|
28133
28135
|
|
|
28134
28136
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/RadioField.vue?vue&type=script&lang=js&
|
|
28135
28137
|
|
|
@@ -28168,6 +28170,11 @@ var RadioFieldvue_type_template_id_43707bf0_staticRenderFns = [];
|
|
|
28168
28170
|
},
|
|
28169
28171
|
showDependentItem: function (item, value) {
|
|
28170
28172
|
this.$emit('showDependentItem', item, value);
|
|
28173
|
+
},
|
|
28174
|
+
onChange(e) {
|
|
28175
|
+
if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onChange) {
|
|
28176
|
+
this.fieldInfo.config.onChange(e, this.fieldInfo);
|
|
28177
|
+
}
|
|
28171
28178
|
}
|
|
28172
28179
|
},
|
|
28173
28180
|
mounted: function () {
|
|
@@ -28186,8 +28193,8 @@ var RadioFieldvue_type_template_id_43707bf0_staticRenderFns = [];
|
|
|
28186
28193
|
|
|
28187
28194
|
var RadioField_component = normalizeComponent(
|
|
28188
28195
|
components_RadioFieldvue_type_script_lang_js_,
|
|
28189
|
-
|
|
28190
|
-
|
|
28196
|
+
RadioFieldvue_type_template_id_6965ec07_render,
|
|
28197
|
+
RadioFieldvue_type_template_id_6965ec07_staticRenderFns,
|
|
28191
28198
|
false,
|
|
28192
28199
|
null,
|
|
28193
28200
|
null,
|
|
@@ -28196,25 +28203,6 @@ var RadioField_component = normalizeComponent(
|
|
|
28196
28203
|
)
|
|
28197
28204
|
|
|
28198
28205
|
/* harmony default export */ var RadioField = (RadioField_component.exports);
|
|
28199
|
-
// CONCATENATED MODULE: ./src/components/CKEditorField.vue
|
|
28200
|
-
var CKEditorField_render, CKEditorField_staticRenderFns
|
|
28201
|
-
var script = {}
|
|
28202
|
-
|
|
28203
|
-
|
|
28204
|
-
/* normalize component */
|
|
28205
|
-
|
|
28206
|
-
var CKEditorField_component = normalizeComponent(
|
|
28207
|
-
script,
|
|
28208
|
-
CKEditorField_render,
|
|
28209
|
-
CKEditorField_staticRenderFns,
|
|
28210
|
-
false,
|
|
28211
|
-
null,
|
|
28212
|
-
null,
|
|
28213
|
-
null
|
|
28214
|
-
|
|
28215
|
-
)
|
|
28216
|
-
|
|
28217
|
-
/* harmony default export */ var CKEditorField = (CKEditorField_component.exports);
|
|
28218
28206
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"c1dfe90e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/MultiSelectField.vue?vue&type=template&id=151660ca&
|
|
28219
28207
|
var MultiSelectFieldvue_type_template_id_151660ca_render = function render() {
|
|
28220
28208
|
var _vm = this,
|
|
@@ -28648,6 +28636,217 @@ var PhoneField_component = normalizeComponent(
|
|
|
28648
28636
|
)
|
|
28649
28637
|
|
|
28650
28638
|
/* harmony default export */ var PhoneField = (PhoneField_component.exports);
|
|
28639
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"c1dfe90e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CustomSelectField.vue?vue&type=template&id=5c4a03b3&
|
|
28640
|
+
var CustomSelectFieldvue_type_template_id_5c4a03b3_render = function render() {
|
|
28641
|
+
var _vm = this,
|
|
28642
|
+
_c = _vm._self._c;
|
|
28643
|
+
return _c('Field', {
|
|
28644
|
+
staticClass: "w-100",
|
|
28645
|
+
attrs: {
|
|
28646
|
+
"name": _vm.fieldInfo.name,
|
|
28647
|
+
"rules": _vm.fieldInfo.validationRules,
|
|
28648
|
+
"label": _vm.fieldInfo.label
|
|
28649
|
+
},
|
|
28650
|
+
scopedSlots: _vm._u([{
|
|
28651
|
+
key: "default",
|
|
28652
|
+
fn: function ({
|
|
28653
|
+
errors
|
|
28654
|
+
}) {
|
|
28655
|
+
return [_c('Multiselect', {
|
|
28656
|
+
ref: "multiselect",
|
|
28657
|
+
class: {
|
|
28658
|
+
'form-control p-0 w-100': true,
|
|
28659
|
+
'is-invalid': errors[0]
|
|
28660
|
+
},
|
|
28661
|
+
attrs: {
|
|
28662
|
+
"disabled": _vm.fieldInfo.disabled,
|
|
28663
|
+
"options": _vm.options,
|
|
28664
|
+
"close-on-select": false,
|
|
28665
|
+
"searchable": true,
|
|
28666
|
+
"multiple": _vm.fieldInfo.modemode == 'tag' ? true : false,
|
|
28667
|
+
"taggable": _vm.fieldInfo.mode == 'tag' ? true : false
|
|
28668
|
+
},
|
|
28669
|
+
on: {
|
|
28670
|
+
"remove": function ($event) {
|
|
28671
|
+
return _vm.onRemove($event, _vm.field, _vm.meta);
|
|
28672
|
+
},
|
|
28673
|
+
"search-change": _vm.onSearch,
|
|
28674
|
+
"select": _vm.onChange
|
|
28675
|
+
},
|
|
28676
|
+
model: {
|
|
28677
|
+
value: _vm.fieldInfo.value,
|
|
28678
|
+
callback: function ($$v) {
|
|
28679
|
+
_vm.$set(_vm.fieldInfo, "value", $$v);
|
|
28680
|
+
},
|
|
28681
|
+
expression: "fieldInfo.value"
|
|
28682
|
+
}
|
|
28683
|
+
}), _vm.showAddIcon() ? _c('div', {
|
|
28684
|
+
staticClass: "ml-2 mt-1"
|
|
28685
|
+
}, [_c('a', {
|
|
28686
|
+
class: _vm.addButtonClass()
|
|
28687
|
+
}, [_c('i', {
|
|
28688
|
+
class: _vm.addIconClass(),
|
|
28689
|
+
attrs: {
|
|
28690
|
+
"alt": "+"
|
|
28691
|
+
},
|
|
28692
|
+
on: {
|
|
28693
|
+
"click": function ($event) {
|
|
28694
|
+
return _vm.onAddButtonClick($event);
|
|
28695
|
+
}
|
|
28696
|
+
}
|
|
28697
|
+
})])]) : _vm._e(), errors[0] ? _c('span', {
|
|
28698
|
+
staticClass: "invalid-feedback"
|
|
28699
|
+
}, [_vm._v(_vm._s(errors[0]))]) : _vm._e()];
|
|
28700
|
+
}
|
|
28701
|
+
}])
|
|
28702
|
+
});
|
|
28703
|
+
};
|
|
28704
|
+
var CustomSelectFieldvue_type_template_id_5c4a03b3_staticRenderFns = [];
|
|
28705
|
+
|
|
28706
|
+
// CONCATENATED MODULE: ./src/components/CustomSelectField.vue?vue&type=template&id=5c4a03b3&
|
|
28707
|
+
|
|
28708
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CustomSelectField.vue?vue&type=script&lang=js&
|
|
28709
|
+
|
|
28710
|
+
|
|
28711
|
+
|
|
28712
|
+
/* harmony default export */ var CustomSelectFieldvue_type_script_lang_js_ = ({
|
|
28713
|
+
components: {
|
|
28714
|
+
Multiselect: vue_multiselect_min_default.a,
|
|
28715
|
+
Field: ValidationProvider
|
|
28716
|
+
},
|
|
28717
|
+
props: {
|
|
28718
|
+
lang: {
|
|
28719
|
+
type: String,
|
|
28720
|
+
default: 'en'
|
|
28721
|
+
},
|
|
28722
|
+
mode: {
|
|
28723
|
+
type: String,
|
|
28724
|
+
default: 'single'
|
|
28725
|
+
},
|
|
28726
|
+
fieldInfo: {
|
|
28727
|
+
type: Object,
|
|
28728
|
+
required: true
|
|
28729
|
+
}
|
|
28730
|
+
},
|
|
28731
|
+
watch: {
|
|
28732
|
+
fieldInfo: {
|
|
28733
|
+
handler: function (value, old) {
|
|
28734
|
+
let ths = this;
|
|
28735
|
+
console.log("Multi drop down", value, old);
|
|
28736
|
+
if (value.config && value.config.options) {
|
|
28737
|
+
try {
|
|
28738
|
+
ths.options = [];
|
|
28739
|
+
value.config.options.forEach(function (x) {
|
|
28740
|
+
let obj = {
|
|
28741
|
+
value: x.value,
|
|
28742
|
+
label: x.name
|
|
28743
|
+
};
|
|
28744
|
+
ths.options.push(obj);
|
|
28745
|
+
});
|
|
28746
|
+
} catch (x) {}
|
|
28747
|
+
}
|
|
28748
|
+
},
|
|
28749
|
+
deep: true
|
|
28750
|
+
}
|
|
28751
|
+
},
|
|
28752
|
+
created: function () {
|
|
28753
|
+
let ths = this;
|
|
28754
|
+
if (typeof ths.fieldInfo.value == 'undefined' || ths.fieldInfo.value == "") {
|
|
28755
|
+
ths.fieldInfo.value = [];
|
|
28756
|
+
}
|
|
28757
|
+
if (typeof ths.fieldInfo.mode == 'undefined' || ths.fieldInfo.mode == "") {
|
|
28758
|
+
ths.fieldInfo.mode = 'single';
|
|
28759
|
+
}
|
|
28760
|
+
if (ths.fieldInfo.config && ths.fieldInfo.config.options) {
|
|
28761
|
+
try {
|
|
28762
|
+
ths.fieldInfo.config.options.forEach(function (x) {
|
|
28763
|
+
let obj = {
|
|
28764
|
+
value: x.value,
|
|
28765
|
+
label: x.name
|
|
28766
|
+
};
|
|
28767
|
+
ths.options.push(obj);
|
|
28768
|
+
});
|
|
28769
|
+
} catch (x) {
|
|
28770
|
+
console.log(x);
|
|
28771
|
+
}
|
|
28772
|
+
}
|
|
28773
|
+
},
|
|
28774
|
+
data: function () {
|
|
28775
|
+
return {
|
|
28776
|
+
isTouched: false,
|
|
28777
|
+
value: [],
|
|
28778
|
+
selectedHtml: '',
|
|
28779
|
+
options: []
|
|
28780
|
+
};
|
|
28781
|
+
},
|
|
28782
|
+
computed: {
|
|
28783
|
+
isInvalid() {
|
|
28784
|
+
return this.isTouched && this.value.length === 0;
|
|
28785
|
+
}
|
|
28786
|
+
},
|
|
28787
|
+
methods: {
|
|
28788
|
+
onSearch: function (e, x) {
|
|
28789
|
+
if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onSearchChange) {
|
|
28790
|
+
this.fieldInfo.config.onSearchChange(x, this.fieldInfo);
|
|
28791
|
+
}
|
|
28792
|
+
},
|
|
28793
|
+
onChange: function (e, x) {
|
|
28794
|
+
if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onChange) {
|
|
28795
|
+
this.fieldInfo.config.onChange(x, this.fieldInfo);
|
|
28796
|
+
}
|
|
28797
|
+
},
|
|
28798
|
+
showAddIcon: function () {
|
|
28799
|
+
if (this.fieldInfo.config && this.fieldInfo.config.showAddIcon) {
|
|
28800
|
+
return this.fieldInfo.config.showAddIcon;
|
|
28801
|
+
}
|
|
28802
|
+
},
|
|
28803
|
+
onAddButtonClick: function (e) {
|
|
28804
|
+
if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onAddButtonClick) {
|
|
28805
|
+
this.fieldInfo.config.onAddButtonClick(e, this.fieldInfo);
|
|
28806
|
+
}
|
|
28807
|
+
},
|
|
28808
|
+
addButtonClass: function () {
|
|
28809
|
+
if (this.fieldInfo.config && this.fieldInfo.config.addIconBackground) {
|
|
28810
|
+
return "round-icon-small theme-primary " + this.fieldInfo.config.addIconBackground;
|
|
28811
|
+
} else {
|
|
28812
|
+
return "round-icon-small btn-dark theme-primary";
|
|
28813
|
+
}
|
|
28814
|
+
},
|
|
28815
|
+
addIconClass: function () {
|
|
28816
|
+
if (this.fieldInfo.config && this.fieldInfo.config.addIcon) {
|
|
28817
|
+
return "fa text-white pt-7 font-18 " + this.fieldInfo.config.addIcon;
|
|
28818
|
+
} else {
|
|
28819
|
+
return "fa fa-plus text-white pt-7 font-18";
|
|
28820
|
+
}
|
|
28821
|
+
}
|
|
28822
|
+
},
|
|
28823
|
+
mounted: function () {
|
|
28824
|
+
this.fieldInfo.validationRules = getValidationRules(this.fieldInfo.validationRules, this.lang);
|
|
28825
|
+
}
|
|
28826
|
+
});
|
|
28827
|
+
// CONCATENATED MODULE: ./src/components/CustomSelectField.vue?vue&type=script&lang=js&
|
|
28828
|
+
/* harmony default export */ var components_CustomSelectFieldvue_type_script_lang_js_ = (CustomSelectFieldvue_type_script_lang_js_);
|
|
28829
|
+
// CONCATENATED MODULE: ./src/components/CustomSelectField.vue
|
|
28830
|
+
|
|
28831
|
+
|
|
28832
|
+
|
|
28833
|
+
|
|
28834
|
+
|
|
28835
|
+
|
|
28836
|
+
/* normalize component */
|
|
28837
|
+
|
|
28838
|
+
var CustomSelectField_component = normalizeComponent(
|
|
28839
|
+
components_CustomSelectFieldvue_type_script_lang_js_,
|
|
28840
|
+
CustomSelectFieldvue_type_template_id_5c4a03b3_render,
|
|
28841
|
+
CustomSelectFieldvue_type_template_id_5c4a03b3_staticRenderFns,
|
|
28842
|
+
false,
|
|
28843
|
+
null,
|
|
28844
|
+
null,
|
|
28845
|
+
null
|
|
28846
|
+
|
|
28847
|
+
)
|
|
28848
|
+
|
|
28849
|
+
/* harmony default export */ var CustomSelectField = (CustomSelectField_component.exports);
|
|
28651
28850
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"c1dfe90e-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/TextAreaField.vue?vue&type=template&id=1c027eb3&
|
|
28652
28851
|
var TextAreaFieldvue_type_template_id_1c027eb3_render = function render() {
|
|
28653
28852
|
var _vm = this,
|
|
@@ -29288,7 +29487,6 @@ var FileField_component = normalizeComponent(
|
|
|
29288
29487
|
|
|
29289
29488
|
|
|
29290
29489
|
|
|
29291
|
-
//import CustomSelectField from '@/CustomSelectField.vue'
|
|
29292
29490
|
|
|
29293
29491
|
|
|
29294
29492
|
|
|
@@ -29304,11 +29502,10 @@ var FileField_component = normalizeComponent(
|
|
|
29304
29502
|
DateField: DateField,
|
|
29305
29503
|
CheckBoxField: CheckBoxField,
|
|
29306
29504
|
RadioField: RadioField,
|
|
29307
|
-
CKEditorField: CKEditorField,
|
|
29308
29505
|
MultiSelectField: MultiSelectField,
|
|
29309
29506
|
ToggleField: ToggleField,
|
|
29310
29507
|
PhoneField: PhoneField,
|
|
29311
|
-
|
|
29508
|
+
CustomSelectField: CustomSelectField,
|
|
29312
29509
|
TextAreaField: TextAreaField,
|
|
29313
29510
|
ColorField: ColorField,
|
|
29314
29511
|
FileField: FileField
|
|
@@ -29427,209 +29624,17 @@ var DynamicForm_component = normalizeComponent(
|
|
|
29427
29624
|
)
|
|
29428
29625
|
|
|
29429
29626
|
/* harmony default export */ var DynamicForm = (DynamicForm_component.exports);
|
|
29430
|
-
// CONCATENATED MODULE: ./
|
|
29431
|
-
var
|
|
29432
|
-
|
|
29433
|
-
_c = _vm._self._c;
|
|
29434
|
-
return _c('Field', {
|
|
29435
|
-
staticClass: "w-100",
|
|
29436
|
-
attrs: {
|
|
29437
|
-
"name": _vm.fieldInfo.name,
|
|
29438
|
-
"rules": _vm.fieldInfo.validationRules,
|
|
29439
|
-
"label": _vm.fieldInfo.label
|
|
29440
|
-
},
|
|
29441
|
-
scopedSlots: _vm._u([{
|
|
29442
|
-
key: "default",
|
|
29443
|
-
fn: function ({
|
|
29444
|
-
errors
|
|
29445
|
-
}) {
|
|
29446
|
-
return [_c('Multiselect', {
|
|
29447
|
-
ref: "multiselect",
|
|
29448
|
-
class: {
|
|
29449
|
-
'form-control p-0 w-100': true,
|
|
29450
|
-
'is-invalid': errors[0]
|
|
29451
|
-
},
|
|
29452
|
-
attrs: {
|
|
29453
|
-
"disabled": _vm.fieldInfo.disabled,
|
|
29454
|
-
"options": _vm.options,
|
|
29455
|
-
"close-on-select": false,
|
|
29456
|
-
"searchable": true,
|
|
29457
|
-
"multiple": _vm.fieldInfo.modemode == 'tag' ? true : false,
|
|
29458
|
-
"taggable": _vm.fieldInfo.mode == 'tag' ? true : false
|
|
29459
|
-
},
|
|
29460
|
-
on: {
|
|
29461
|
-
"remove": function ($event) {
|
|
29462
|
-
return _vm.onRemove($event, _vm.field, _vm.meta);
|
|
29463
|
-
},
|
|
29464
|
-
"search-change": _vm.onSearch,
|
|
29465
|
-
"select": _vm.onChange
|
|
29466
|
-
},
|
|
29467
|
-
model: {
|
|
29468
|
-
value: _vm.fieldInfo.value,
|
|
29469
|
-
callback: function ($$v) {
|
|
29470
|
-
_vm.$set(_vm.fieldInfo, "value", $$v);
|
|
29471
|
-
},
|
|
29472
|
-
expression: "fieldInfo.value"
|
|
29473
|
-
}
|
|
29474
|
-
}), _vm.showAddIcon() ? _c('div', {
|
|
29475
|
-
staticClass: "ml-2 mt-1"
|
|
29476
|
-
}, [_c('a', {
|
|
29477
|
-
class: _vm.addButtonClass()
|
|
29478
|
-
}, [_c('i', {
|
|
29479
|
-
class: _vm.addIconClass(),
|
|
29480
|
-
attrs: {
|
|
29481
|
-
"alt": "+"
|
|
29482
|
-
},
|
|
29483
|
-
on: {
|
|
29484
|
-
"click": function ($event) {
|
|
29485
|
-
return _vm.onAddButtonClick($event);
|
|
29486
|
-
}
|
|
29487
|
-
}
|
|
29488
|
-
})])]) : _vm._e(), errors[0] ? _c('span', {
|
|
29489
|
-
staticClass: "invalid-feedback"
|
|
29490
|
-
}, [_vm._v(_vm._s(errors[0]))]) : _vm._e()];
|
|
29491
|
-
}
|
|
29492
|
-
}])
|
|
29493
|
-
});
|
|
29494
|
-
};
|
|
29495
|
-
var CustomSelectFieldvue_type_template_id_5c4a03b3_staticRenderFns = [];
|
|
29496
|
-
|
|
29497
|
-
// CONCATENATED MODULE: ./src/components/CustomSelectField.vue?vue&type=template&id=5c4a03b3&
|
|
29498
|
-
|
|
29499
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CustomSelectField.vue?vue&type=script&lang=js&
|
|
29500
|
-
|
|
29501
|
-
|
|
29502
|
-
|
|
29503
|
-
/* harmony default export */ var CustomSelectFieldvue_type_script_lang_js_ = ({
|
|
29504
|
-
components: {
|
|
29505
|
-
Multiselect: vue_multiselect_min_default.a,
|
|
29506
|
-
Field: ValidationProvider
|
|
29507
|
-
},
|
|
29508
|
-
props: {
|
|
29509
|
-
lang: {
|
|
29510
|
-
type: String,
|
|
29511
|
-
default: 'en'
|
|
29512
|
-
},
|
|
29513
|
-
mode: {
|
|
29514
|
-
type: String,
|
|
29515
|
-
default: 'single'
|
|
29516
|
-
},
|
|
29517
|
-
fieldInfo: {
|
|
29518
|
-
type: Object,
|
|
29519
|
-
required: true
|
|
29520
|
-
}
|
|
29521
|
-
},
|
|
29522
|
-
watch: {
|
|
29523
|
-
fieldInfo: {
|
|
29524
|
-
handler: function (value, old) {
|
|
29525
|
-
let ths = this;
|
|
29526
|
-
console.log("Multi drop down", value, old);
|
|
29527
|
-
if (value.config && value.config.options) {
|
|
29528
|
-
try {
|
|
29529
|
-
ths.options = [];
|
|
29530
|
-
value.config.options.forEach(function (x) {
|
|
29531
|
-
let obj = {
|
|
29532
|
-
value: x.value,
|
|
29533
|
-
label: x.name
|
|
29534
|
-
};
|
|
29535
|
-
ths.options.push(obj);
|
|
29536
|
-
});
|
|
29537
|
-
} catch (x) {}
|
|
29538
|
-
}
|
|
29539
|
-
},
|
|
29540
|
-
deep: true
|
|
29541
|
-
}
|
|
29542
|
-
},
|
|
29543
|
-
created: function () {
|
|
29544
|
-
let ths = this;
|
|
29545
|
-
if (typeof ths.fieldInfo.value == 'undefined' || ths.fieldInfo.value == "") {
|
|
29546
|
-
ths.fieldInfo.value = [];
|
|
29547
|
-
}
|
|
29548
|
-
if (typeof ths.fieldInfo.mode == 'undefined' || ths.fieldInfo.mode == "") {
|
|
29549
|
-
ths.fieldInfo.mode = 'single';
|
|
29550
|
-
}
|
|
29551
|
-
if (ths.fieldInfo.config && ths.fieldInfo.config.options) {
|
|
29552
|
-
try {
|
|
29553
|
-
ths.fieldInfo.config.options.forEach(function (x) {
|
|
29554
|
-
let obj = {
|
|
29555
|
-
value: x.value,
|
|
29556
|
-
label: x.name
|
|
29557
|
-
};
|
|
29558
|
-
ths.options.push(obj);
|
|
29559
|
-
});
|
|
29560
|
-
} catch (x) {
|
|
29561
|
-
console.log(x);
|
|
29562
|
-
}
|
|
29563
|
-
}
|
|
29564
|
-
},
|
|
29565
|
-
data: function () {
|
|
29566
|
-
return {
|
|
29567
|
-
isTouched: false,
|
|
29568
|
-
value: [],
|
|
29569
|
-
selectedHtml: '',
|
|
29570
|
-
options: []
|
|
29571
|
-
};
|
|
29572
|
-
},
|
|
29573
|
-
computed: {
|
|
29574
|
-
isInvalid() {
|
|
29575
|
-
return this.isTouched && this.value.length === 0;
|
|
29576
|
-
}
|
|
29577
|
-
},
|
|
29578
|
-
methods: {
|
|
29579
|
-
onSearch: function (e, x) {
|
|
29580
|
-
if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onSearchChange) {
|
|
29581
|
-
this.fieldInfo.config.onSearchChange(x, this.fieldInfo);
|
|
29582
|
-
}
|
|
29583
|
-
},
|
|
29584
|
-
onChange: function (e, x) {
|
|
29585
|
-
if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onChange) {
|
|
29586
|
-
this.fieldInfo.config.onChange(x, this.fieldInfo);
|
|
29587
|
-
}
|
|
29588
|
-
},
|
|
29589
|
-
showAddIcon: function () {
|
|
29590
|
-
if (this.fieldInfo.config && this.fieldInfo.config.showAddIcon) {
|
|
29591
|
-
return this.fieldInfo.config.showAddIcon;
|
|
29592
|
-
}
|
|
29593
|
-
},
|
|
29594
|
-
onAddButtonClick: function (e) {
|
|
29595
|
-
if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onAddButtonClick) {
|
|
29596
|
-
this.fieldInfo.config.onAddButtonClick(e, this.fieldInfo);
|
|
29597
|
-
}
|
|
29598
|
-
},
|
|
29599
|
-
addButtonClass: function () {
|
|
29600
|
-
if (this.fieldInfo.config && this.fieldInfo.config.addIconBackground) {
|
|
29601
|
-
return "round-icon-small theme-primary " + this.fieldInfo.config.addIconBackground;
|
|
29602
|
-
} else {
|
|
29603
|
-
return "round-icon-small btn-dark theme-primary";
|
|
29604
|
-
}
|
|
29605
|
-
},
|
|
29606
|
-
addIconClass: function () {
|
|
29607
|
-
if (this.fieldInfo.config && this.fieldInfo.config.addIcon) {
|
|
29608
|
-
return "fa text-white pt-7 font-18 " + this.fieldInfo.config.addIcon;
|
|
29609
|
-
} else {
|
|
29610
|
-
return "fa fa-plus text-white pt-7 font-18";
|
|
29611
|
-
}
|
|
29612
|
-
}
|
|
29613
|
-
},
|
|
29614
|
-
mounted: function () {
|
|
29615
|
-
this.fieldInfo.validationRules = getValidationRules(this.fieldInfo.validationRules, this.lang);
|
|
29616
|
-
}
|
|
29617
|
-
});
|
|
29618
|
-
// CONCATENATED MODULE: ./src/components/CustomSelectField.vue?vue&type=script&lang=js&
|
|
29619
|
-
/* harmony default export */ var components_CustomSelectFieldvue_type_script_lang_js_ = (CustomSelectFieldvue_type_script_lang_js_);
|
|
29620
|
-
// CONCATENATED MODULE: ./src/components/CustomSelectField.vue
|
|
29621
|
-
|
|
29622
|
-
|
|
29623
|
-
|
|
29624
|
-
|
|
29627
|
+
// CONCATENATED MODULE: ./src/components/CKEditorField.vue
|
|
29628
|
+
var CKEditorField_render, CKEditorField_staticRenderFns
|
|
29629
|
+
var script = {}
|
|
29625
29630
|
|
|
29626
29631
|
|
|
29627
29632
|
/* normalize component */
|
|
29628
29633
|
|
|
29629
|
-
var
|
|
29630
|
-
|
|
29631
|
-
|
|
29632
|
-
|
|
29634
|
+
var CKEditorField_component = normalizeComponent(
|
|
29635
|
+
script,
|
|
29636
|
+
CKEditorField_render,
|
|
29637
|
+
CKEditorField_staticRenderFns,
|
|
29633
29638
|
false,
|
|
29634
29639
|
null,
|
|
29635
29640
|
null,
|
|
@@ -29637,7 +29642,7 @@ var CustomSelectField_component = normalizeComponent(
|
|
|
29637
29642
|
|
|
29638
29643
|
)
|
|
29639
29644
|
|
|
29640
|
-
/* harmony default export */ var
|
|
29645
|
+
/* harmony default export */ var CKEditorField = (CKEditorField_component.exports);
|
|
29641
29646
|
// CONCATENATED MODULE: ./src/index.js
|
|
29642
29647
|
|
|
29643
29648
|
|