tg-controls_cli 0.0.14 → 0.0.16

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.umd.js CHANGED
@@ -24180,7 +24180,7 @@ if (typeof window !== 'undefined') {
24180
24180
  // Indicate to webpack that this file can be concatenated
24181
24181
  /* harmony default export */ var setPublicPath = (null);
24182
24182
 
24183
- // 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=130ac18a&
24183
+ // 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&
24184
24184
  var render = function render() {
24185
24185
  var _vm = this,
24186
24186
  _c = _vm._self._c;
@@ -24308,7 +24308,7 @@ var render = function render() {
24308
24308
  };
24309
24309
  var staticRenderFns = [];
24310
24310
 
24311
- // CONCATENATED MODULE: ./src/components/DynamicForm.vue?vue&type=template&id=130ac18a&
24311
+ // CONCATENATED MODULE: ./src/components/DynamicForm.vue?vue&type=template&id=bf3cb39e&
24312
24312
 
24313
24313
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
24314
24314
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
@@ -28074,8 +28074,8 @@ var CheckBoxField_component = normalizeComponent(
28074
28074
  )
28075
28075
 
28076
28076
  /* harmony default export */ var CheckBoxField = (CheckBoxField_component.exports);
28077
- // 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=43707bf0&
28078
- var RadioFieldvue_type_template_id_43707bf0_render = function render() {
28077
+ // 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&
28078
+ var RadioFieldvue_type_template_id_6965ec07_render = function render() {
28079
28079
  var _vm = this,
28080
28080
  _c = _vm._self._c;
28081
28081
  return _c('Field', {
@@ -28121,9 +28121,11 @@ var RadioFieldvue_type_template_id_43707bf0_render = function render() {
28121
28121
  "checked": _vm._q(_vm.fieldInfo.value, null)
28122
28122
  },
28123
28123
  on: {
28124
- "change": function ($event) {
28124
+ "change": [function ($event) {
28125
28125
  return _vm.$set(_vm.fieldInfo, "value", null);
28126
- }
28126
+ }, function ($event) {
28127
+ return _vm.onChange($event);
28128
+ }]
28127
28129
  }
28128
28130
  }), _c('label', {
28129
28131
  staticClass: "custom-control-label",
@@ -28136,9 +28138,9 @@ var RadioFieldvue_type_template_id_43707bf0_render = function render() {
28136
28138
  }])
28137
28139
  });
28138
28140
  };
28139
- var RadioFieldvue_type_template_id_43707bf0_staticRenderFns = [];
28141
+ var RadioFieldvue_type_template_id_6965ec07_staticRenderFns = [];
28140
28142
 
28141
- // CONCATENATED MODULE: ./src/components/RadioField.vue?vue&type=template&id=43707bf0&
28143
+ // CONCATENATED MODULE: ./src/components/RadioField.vue?vue&type=template&id=6965ec07&
28142
28144
 
28143
28145
  // 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&
28144
28146
 
@@ -28177,6 +28179,11 @@ var RadioFieldvue_type_template_id_43707bf0_staticRenderFns = [];
28177
28179
  },
28178
28180
  showDependentItem: function (item, value) {
28179
28181
  this.$emit('showDependentItem', item, value);
28182
+ },
28183
+ onChange(e) {
28184
+ if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onChange) {
28185
+ this.fieldInfo.config.onChange(e, this.fieldInfo);
28186
+ }
28180
28187
  }
28181
28188
  },
28182
28189
  mounted: function () {
@@ -28195,8 +28202,8 @@ var RadioFieldvue_type_template_id_43707bf0_staticRenderFns = [];
28195
28202
 
28196
28203
  var RadioField_component = normalizeComponent(
28197
28204
  components_RadioFieldvue_type_script_lang_js_,
28198
- RadioFieldvue_type_template_id_43707bf0_render,
28199
- RadioFieldvue_type_template_id_43707bf0_staticRenderFns,
28205
+ RadioFieldvue_type_template_id_6965ec07_render,
28206
+ RadioFieldvue_type_template_id_6965ec07_staticRenderFns,
28200
28207
  false,
28201
28208
  null,
28202
28209
  null,
@@ -28205,25 +28212,6 @@ var RadioField_component = normalizeComponent(
28205
28212
  )
28206
28213
 
28207
28214
  /* harmony default export */ var RadioField = (RadioField_component.exports);
28208
- // CONCATENATED MODULE: ./src/components/CKEditorField.vue
28209
- var CKEditorField_render, CKEditorField_staticRenderFns
28210
- var script = {}
28211
-
28212
-
28213
- /* normalize component */
28214
-
28215
- var CKEditorField_component = normalizeComponent(
28216
- script,
28217
- CKEditorField_render,
28218
- CKEditorField_staticRenderFns,
28219
- false,
28220
- null,
28221
- null,
28222
- null
28223
-
28224
- )
28225
-
28226
- /* harmony default export */ var CKEditorField = (CKEditorField_component.exports);
28227
28215
  // 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&
28228
28216
  var MultiSelectFieldvue_type_template_id_151660ca_render = function render() {
28229
28217
  var _vm = this,
@@ -28657,6 +28645,232 @@ var PhoneField_component = normalizeComponent(
28657
28645
  )
28658
28646
 
28659
28647
  /* harmony default export */ var PhoneField = (PhoneField_component.exports);
28648
+ // 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=1f35ed08&
28649
+ var CustomSelectFieldvue_type_template_id_1f35ed08_render = function render() {
28650
+ var _vm = this,
28651
+ _c = _vm._self._c;
28652
+ return _c('Field', {
28653
+ staticClass: "w-100",
28654
+ attrs: {
28655
+ "name": _vm.fieldInfo.name,
28656
+ "rules": _vm.fieldInfo.validationRules,
28657
+ "label": _vm.fieldInfo.label
28658
+ },
28659
+ scopedSlots: _vm._u([{
28660
+ key: "default",
28661
+ fn: function ({
28662
+ errors
28663
+ }) {
28664
+ return [_c('Multiselect', {
28665
+ ref: "multiselect",
28666
+ class: {
28667
+ 'form-control p-0 w-100': true,
28668
+ 'is-invalid': errors[0]
28669
+ },
28670
+ attrs: {
28671
+ "filter-results": false,
28672
+ "object": true,
28673
+ "label": "name",
28674
+ "showNoOptions": true,
28675
+ "searchable": true,
28676
+ "track-by": "value",
28677
+ "show-labels": false,
28678
+ "show-no-results": false,
28679
+ "internal-search": false,
28680
+ "disabled": _vm.fieldInfo.disabled,
28681
+ "options": _vm.options,
28682
+ "multiple": _vm.fieldInfo.mode == 'tag' ? true : false,
28683
+ "taggable": _vm.fieldInfo.mode == 'tag' ? true : false,
28684
+ "clear-on-select": false,
28685
+ "close-on-select": false,
28686
+ "open-direction": "bottom"
28687
+ },
28688
+ on: {
28689
+ "remove": function ($event) {
28690
+ return _vm.onRemove($event, _vm.field, _vm.meta);
28691
+ },
28692
+ "search-change": _vm.onSearch,
28693
+ "select": _vm.onChange
28694
+ },
28695
+ model: {
28696
+ value: _vm.fieldInfo.value,
28697
+ callback: function ($$v) {
28698
+ _vm.$set(_vm.fieldInfo, "value", $$v);
28699
+ },
28700
+ expression: "fieldInfo.value"
28701
+ }
28702
+ }, [_c('span', {
28703
+ attrs: {
28704
+ "slot": "noOptions"
28705
+ },
28706
+ slot: "noOptions"
28707
+ }, [_vm._v(" Type to search " + _vm._s(_vm.fieldInfo.display_name) + " ")])]), _vm.showAddIcon() ? _c('div', {
28708
+ staticClass: "ml-2 mt-1"
28709
+ }, [_c('a', {
28710
+ class: _vm.addButtonClass()
28711
+ }, [_c('i', {
28712
+ class: _vm.addIconClass(),
28713
+ attrs: {
28714
+ "alt": "+"
28715
+ },
28716
+ on: {
28717
+ "click": function ($event) {
28718
+ return _vm.onAddButtonClick($event);
28719
+ }
28720
+ }
28721
+ })])]) : _vm._e(), errors[0] ? _c('span', {
28722
+ staticClass: "invalid-feedback"
28723
+ }, [_vm._v(_vm._s(errors[0]))]) : _vm._e()];
28724
+ }
28725
+ }])
28726
+ });
28727
+ };
28728
+ var CustomSelectFieldvue_type_template_id_1f35ed08_staticRenderFns = [];
28729
+
28730
+ // CONCATENATED MODULE: ./src/components/CustomSelectField.vue?vue&type=template&id=1f35ed08&
28731
+
28732
+ // 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&
28733
+
28734
+
28735
+
28736
+ /* harmony default export */ var CustomSelectFieldvue_type_script_lang_js_ = ({
28737
+ components: {
28738
+ Multiselect: vue_multiselect_min_default.a,
28739
+ Field: ValidationProvider
28740
+ },
28741
+ props: {
28742
+ lang: {
28743
+ type: String,
28744
+ default: 'en'
28745
+ },
28746
+ mode: {
28747
+ type: String,
28748
+ default: 'single'
28749
+ },
28750
+ fieldInfo: {
28751
+ type: Object,
28752
+ required: true
28753
+ }
28754
+ },
28755
+ watch: {
28756
+ fieldInfo: {
28757
+ handler: function (value, old) {
28758
+ let ths = this;
28759
+ console.log("Multi drop down", value, old);
28760
+ if (value.config && value.config.options) {
28761
+ try {
28762
+ ths.options = [];
28763
+ value.config.options.forEach(function (x) {
28764
+ let obj = {
28765
+ value: x.value,
28766
+ label: x.name
28767
+ };
28768
+ ths.options.push(obj);
28769
+ });
28770
+ } catch (x) {}
28771
+ }
28772
+ },
28773
+ deep: true
28774
+ }
28775
+ },
28776
+ created: function () {
28777
+ let ths = this;
28778
+ if (typeof ths.fieldInfo.value == 'undefined' || ths.fieldInfo.value == "") {
28779
+ ths.fieldInfo.value = [];
28780
+ }
28781
+ if (typeof ths.fieldInfo.mode == 'undefined' || ths.fieldInfo.mode == "") {
28782
+ ths.fieldInfo.mode = 'single';
28783
+ }
28784
+ if (ths.fieldInfo.config && ths.fieldInfo.config.options) {
28785
+ try {
28786
+ ths.fieldInfo.config.options.forEach(function (x) {
28787
+ let obj = {
28788
+ value: x.value,
28789
+ label: x.name
28790
+ };
28791
+ ths.options.push(obj);
28792
+ });
28793
+ } catch (x) {
28794
+ console.log(x);
28795
+ }
28796
+ }
28797
+ },
28798
+ data: function () {
28799
+ return {
28800
+ isTouched: false,
28801
+ value: [],
28802
+ selectedHtml: '',
28803
+ options: []
28804
+ };
28805
+ },
28806
+ computed: {
28807
+ isInvalid() {
28808
+ return this.isTouched && this.value.length === 0;
28809
+ }
28810
+ },
28811
+ methods: {
28812
+ onSearch: function (e, x) {
28813
+ if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onSearchChange) {
28814
+ this.fieldInfo.config.onSearchChange(x, this.fieldInfo);
28815
+ }
28816
+ },
28817
+ onChange: function (e, x) {
28818
+ if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onChange) {
28819
+ this.fieldInfo.config.onChange(x, this.fieldInfo);
28820
+ }
28821
+ },
28822
+ showAddIcon: function () {
28823
+ if (this.fieldInfo.config && this.fieldInfo.config.showAddIcon) {
28824
+ return this.fieldInfo.config.showAddIcon;
28825
+ }
28826
+ },
28827
+ onAddButtonClick: function (e) {
28828
+ if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onAddButtonClick) {
28829
+ this.fieldInfo.config.onAddButtonClick(e, this.fieldInfo);
28830
+ }
28831
+ },
28832
+ addButtonClass: function () {
28833
+ if (this.fieldInfo.config && this.fieldInfo.config.addIconBackground) {
28834
+ return "round-icon-small theme-primary " + this.fieldInfo.config.addIconBackground;
28835
+ } else {
28836
+ return "round-icon-small btn-dark theme-primary";
28837
+ }
28838
+ },
28839
+ addIconClass: function () {
28840
+ if (this.fieldInfo.config && this.fieldInfo.config.addIcon) {
28841
+ return "fa text-white pt-7 font-18 " + this.fieldInfo.config.addIcon;
28842
+ } else {
28843
+ return "fa fa-plus text-white pt-7 font-18";
28844
+ }
28845
+ }
28846
+ },
28847
+ mounted: function () {
28848
+ this.fieldInfo.validationRules = getValidationRules(this.fieldInfo.validationRules, this.lang);
28849
+ }
28850
+ });
28851
+ // CONCATENATED MODULE: ./src/components/CustomSelectField.vue?vue&type=script&lang=js&
28852
+ /* harmony default export */ var components_CustomSelectFieldvue_type_script_lang_js_ = (CustomSelectFieldvue_type_script_lang_js_);
28853
+ // CONCATENATED MODULE: ./src/components/CustomSelectField.vue
28854
+
28855
+
28856
+
28857
+
28858
+
28859
+
28860
+ /* normalize component */
28861
+
28862
+ var CustomSelectField_component = normalizeComponent(
28863
+ components_CustomSelectFieldvue_type_script_lang_js_,
28864
+ CustomSelectFieldvue_type_template_id_1f35ed08_render,
28865
+ CustomSelectFieldvue_type_template_id_1f35ed08_staticRenderFns,
28866
+ false,
28867
+ null,
28868
+ null,
28869
+ null
28870
+
28871
+ )
28872
+
28873
+ /* harmony default export */ var CustomSelectField = (CustomSelectField_component.exports);
28660
28874
  // 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&
28661
28875
  var TextAreaFieldvue_type_template_id_1c027eb3_render = function render() {
28662
28876
  var _vm = this,
@@ -29297,7 +29511,6 @@ var FileField_component = normalizeComponent(
29297
29511
 
29298
29512
 
29299
29513
 
29300
- //import CustomSelectField from '@/CustomSelectField.vue'
29301
29514
 
29302
29515
 
29303
29516
 
@@ -29313,11 +29526,10 @@ var FileField_component = normalizeComponent(
29313
29526
  DateField: DateField,
29314
29527
  CheckBoxField: CheckBoxField,
29315
29528
  RadioField: RadioField,
29316
- CKEditorField: CKEditorField,
29317
29529
  MultiSelectField: MultiSelectField,
29318
29530
  ToggleField: ToggleField,
29319
29531
  PhoneField: PhoneField,
29320
- //CustomSelectField,
29532
+ CustomSelectField: CustomSelectField,
29321
29533
  TextAreaField: TextAreaField,
29322
29534
  ColorField: ColorField,
29323
29535
  FileField: FileField
@@ -29436,209 +29648,17 @@ var DynamicForm_component = normalizeComponent(
29436
29648
  )
29437
29649
 
29438
29650
  /* harmony default export */ var DynamicForm = (DynamicForm_component.exports);
29439
- // 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&
29440
- var CustomSelectFieldvue_type_template_id_5c4a03b3_render = function render() {
29441
- var _vm = this,
29442
- _c = _vm._self._c;
29443
- return _c('Field', {
29444
- staticClass: "w-100",
29445
- attrs: {
29446
- "name": _vm.fieldInfo.name,
29447
- "rules": _vm.fieldInfo.validationRules,
29448
- "label": _vm.fieldInfo.label
29449
- },
29450
- scopedSlots: _vm._u([{
29451
- key: "default",
29452
- fn: function ({
29453
- errors
29454
- }) {
29455
- return [_c('Multiselect', {
29456
- ref: "multiselect",
29457
- class: {
29458
- 'form-control p-0 w-100': true,
29459
- 'is-invalid': errors[0]
29460
- },
29461
- attrs: {
29462
- "disabled": _vm.fieldInfo.disabled,
29463
- "options": _vm.options,
29464
- "close-on-select": false,
29465
- "searchable": true,
29466
- "multiple": _vm.fieldInfo.modemode == 'tag' ? true : false,
29467
- "taggable": _vm.fieldInfo.mode == 'tag' ? true : false
29468
- },
29469
- on: {
29470
- "remove": function ($event) {
29471
- return _vm.onRemove($event, _vm.field, _vm.meta);
29472
- },
29473
- "search-change": _vm.onSearch,
29474
- "select": _vm.onChange
29475
- },
29476
- model: {
29477
- value: _vm.fieldInfo.value,
29478
- callback: function ($$v) {
29479
- _vm.$set(_vm.fieldInfo, "value", $$v);
29480
- },
29481
- expression: "fieldInfo.value"
29482
- }
29483
- }), _vm.showAddIcon() ? _c('div', {
29484
- staticClass: "ml-2 mt-1"
29485
- }, [_c('a', {
29486
- class: _vm.addButtonClass()
29487
- }, [_c('i', {
29488
- class: _vm.addIconClass(),
29489
- attrs: {
29490
- "alt": "+"
29491
- },
29492
- on: {
29493
- "click": function ($event) {
29494
- return _vm.onAddButtonClick($event);
29495
- }
29496
- }
29497
- })])]) : _vm._e(), errors[0] ? _c('span', {
29498
- staticClass: "invalid-feedback"
29499
- }, [_vm._v(_vm._s(errors[0]))]) : _vm._e()];
29500
- }
29501
- }])
29502
- });
29503
- };
29504
- var CustomSelectFieldvue_type_template_id_5c4a03b3_staticRenderFns = [];
29505
-
29506
- // CONCATENATED MODULE: ./src/components/CustomSelectField.vue?vue&type=template&id=5c4a03b3&
29507
-
29508
- // 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&
29509
-
29510
-
29511
-
29512
- /* harmony default export */ var CustomSelectFieldvue_type_script_lang_js_ = ({
29513
- components: {
29514
- Multiselect: vue_multiselect_min_default.a,
29515
- Field: ValidationProvider
29516
- },
29517
- props: {
29518
- lang: {
29519
- type: String,
29520
- default: 'en'
29521
- },
29522
- mode: {
29523
- type: String,
29524
- default: 'single'
29525
- },
29526
- fieldInfo: {
29527
- type: Object,
29528
- required: true
29529
- }
29530
- },
29531
- watch: {
29532
- fieldInfo: {
29533
- handler: function (value, old) {
29534
- let ths = this;
29535
- console.log("Multi drop down", value, old);
29536
- if (value.config && value.config.options) {
29537
- try {
29538
- ths.options = [];
29539
- value.config.options.forEach(function (x) {
29540
- let obj = {
29541
- value: x.value,
29542
- label: x.name
29543
- };
29544
- ths.options.push(obj);
29545
- });
29546
- } catch (x) {}
29547
- }
29548
- },
29549
- deep: true
29550
- }
29551
- },
29552
- created: function () {
29553
- let ths = this;
29554
- if (typeof ths.fieldInfo.value == 'undefined' || ths.fieldInfo.value == "") {
29555
- ths.fieldInfo.value = [];
29556
- }
29557
- if (typeof ths.fieldInfo.mode == 'undefined' || ths.fieldInfo.mode == "") {
29558
- ths.fieldInfo.mode = 'single';
29559
- }
29560
- if (ths.fieldInfo.config && ths.fieldInfo.config.options) {
29561
- try {
29562
- ths.fieldInfo.config.options.forEach(function (x) {
29563
- let obj = {
29564
- value: x.value,
29565
- label: x.name
29566
- };
29567
- ths.options.push(obj);
29568
- });
29569
- } catch (x) {
29570
- console.log(x);
29571
- }
29572
- }
29573
- },
29574
- data: function () {
29575
- return {
29576
- isTouched: false,
29577
- value: [],
29578
- selectedHtml: '',
29579
- options: []
29580
- };
29581
- },
29582
- computed: {
29583
- isInvalid() {
29584
- return this.isTouched && this.value.length === 0;
29585
- }
29586
- },
29587
- methods: {
29588
- onSearch: function (e, x) {
29589
- if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onSearchChange) {
29590
- this.fieldInfo.config.onSearchChange(x, this.fieldInfo);
29591
- }
29592
- },
29593
- onChange: function (e, x) {
29594
- if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onChange) {
29595
- this.fieldInfo.config.onChange(x, this.fieldInfo);
29596
- }
29597
- },
29598
- showAddIcon: function () {
29599
- if (this.fieldInfo.config && this.fieldInfo.config.showAddIcon) {
29600
- return this.fieldInfo.config.showAddIcon;
29601
- }
29602
- },
29603
- onAddButtonClick: function (e) {
29604
- if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onAddButtonClick) {
29605
- this.fieldInfo.config.onAddButtonClick(e, this.fieldInfo);
29606
- }
29607
- },
29608
- addButtonClass: function () {
29609
- if (this.fieldInfo.config && this.fieldInfo.config.addIconBackground) {
29610
- return "round-icon-small theme-primary " + this.fieldInfo.config.addIconBackground;
29611
- } else {
29612
- return "round-icon-small btn-dark theme-primary";
29613
- }
29614
- },
29615
- addIconClass: function () {
29616
- if (this.fieldInfo.config && this.fieldInfo.config.addIcon) {
29617
- return "fa text-white pt-7 font-18 " + this.fieldInfo.config.addIcon;
29618
- } else {
29619
- return "fa fa-plus text-white pt-7 font-18";
29620
- }
29621
- }
29622
- },
29623
- mounted: function () {
29624
- this.fieldInfo.validationRules = getValidationRules(this.fieldInfo.validationRules, this.lang);
29625
- }
29626
- });
29627
- // CONCATENATED MODULE: ./src/components/CustomSelectField.vue?vue&type=script&lang=js&
29628
- /* harmony default export */ var components_CustomSelectFieldvue_type_script_lang_js_ = (CustomSelectFieldvue_type_script_lang_js_);
29629
- // CONCATENATED MODULE: ./src/components/CustomSelectField.vue
29630
-
29631
-
29632
-
29633
-
29651
+ // CONCATENATED MODULE: ./src/components/CKEditorField.vue
29652
+ var CKEditorField_render, CKEditorField_staticRenderFns
29653
+ var script = {}
29634
29654
 
29635
29655
 
29636
29656
  /* normalize component */
29637
29657
 
29638
- var CustomSelectField_component = normalizeComponent(
29639
- components_CustomSelectFieldvue_type_script_lang_js_,
29640
- CustomSelectFieldvue_type_template_id_5c4a03b3_render,
29641
- CustomSelectFieldvue_type_template_id_5c4a03b3_staticRenderFns,
29658
+ var CKEditorField_component = normalizeComponent(
29659
+ script,
29660
+ CKEditorField_render,
29661
+ CKEditorField_staticRenderFns,
29642
29662
  false,
29643
29663
  null,
29644
29664
  null,
@@ -29646,7 +29666,7 @@ var CustomSelectField_component = normalizeComponent(
29646
29666
 
29647
29667
  )
29648
29668
 
29649
- /* harmony default export */ var CustomSelectField = (CustomSelectField_component.exports);
29669
+ /* harmony default export */ var CKEditorField = (CKEditorField_component.exports);
29650
29670
  // CONCATENATED MODULE: ./src/index.js
29651
29671
 
29652
29672