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.
@@ -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=130ac18a&
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=130ac18a&
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=43707bf0&
28069
- var RadioFieldvue_type_template_id_43707bf0_render = function render() {
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 RadioFieldvue_type_template_id_43707bf0_staticRenderFns = [];
28132
+ var RadioFieldvue_type_template_id_6965ec07_staticRenderFns = [];
28131
28133
 
28132
- // CONCATENATED MODULE: ./src/components/RadioField.vue?vue&type=template&id=43707bf0&
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
- RadioFieldvue_type_template_id_43707bf0_render,
28190
- RadioFieldvue_type_template_id_43707bf0_staticRenderFns,
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,232 @@ 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=1f35ed08&
28640
+ var CustomSelectFieldvue_type_template_id_1f35ed08_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
+ "filter-results": false,
28663
+ "object": true,
28664
+ "label": "name",
28665
+ "showNoOptions": true,
28666
+ "searchable": true,
28667
+ "track-by": "value",
28668
+ "show-labels": false,
28669
+ "show-no-results": false,
28670
+ "internal-search": false,
28671
+ "disabled": _vm.fieldInfo.disabled,
28672
+ "options": _vm.options,
28673
+ "multiple": _vm.fieldInfo.mode == 'tag' ? true : false,
28674
+ "taggable": _vm.fieldInfo.mode == 'tag' ? true : false,
28675
+ "clear-on-select": false,
28676
+ "close-on-select": false,
28677
+ "open-direction": "bottom"
28678
+ },
28679
+ on: {
28680
+ "remove": function ($event) {
28681
+ return _vm.onRemove($event, _vm.field, _vm.meta);
28682
+ },
28683
+ "search-change": _vm.onSearch,
28684
+ "select": _vm.onChange
28685
+ },
28686
+ model: {
28687
+ value: _vm.fieldInfo.value,
28688
+ callback: function ($$v) {
28689
+ _vm.$set(_vm.fieldInfo, "value", $$v);
28690
+ },
28691
+ expression: "fieldInfo.value"
28692
+ }
28693
+ }, [_c('span', {
28694
+ attrs: {
28695
+ "slot": "noOptions"
28696
+ },
28697
+ slot: "noOptions"
28698
+ }, [_vm._v(" Type to search " + _vm._s(_vm.fieldInfo.display_name) + " ")])]), _vm.showAddIcon() ? _c('div', {
28699
+ staticClass: "ml-2 mt-1"
28700
+ }, [_c('a', {
28701
+ class: _vm.addButtonClass()
28702
+ }, [_c('i', {
28703
+ class: _vm.addIconClass(),
28704
+ attrs: {
28705
+ "alt": "+"
28706
+ },
28707
+ on: {
28708
+ "click": function ($event) {
28709
+ return _vm.onAddButtonClick($event);
28710
+ }
28711
+ }
28712
+ })])]) : _vm._e(), errors[0] ? _c('span', {
28713
+ staticClass: "invalid-feedback"
28714
+ }, [_vm._v(_vm._s(errors[0]))]) : _vm._e()];
28715
+ }
28716
+ }])
28717
+ });
28718
+ };
28719
+ var CustomSelectFieldvue_type_template_id_1f35ed08_staticRenderFns = [];
28720
+
28721
+ // CONCATENATED MODULE: ./src/components/CustomSelectField.vue?vue&type=template&id=1f35ed08&
28722
+
28723
+ // 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&
28724
+
28725
+
28726
+
28727
+ /* harmony default export */ var CustomSelectFieldvue_type_script_lang_js_ = ({
28728
+ components: {
28729
+ Multiselect: vue_multiselect_min_default.a,
28730
+ Field: ValidationProvider
28731
+ },
28732
+ props: {
28733
+ lang: {
28734
+ type: String,
28735
+ default: 'en'
28736
+ },
28737
+ mode: {
28738
+ type: String,
28739
+ default: 'single'
28740
+ },
28741
+ fieldInfo: {
28742
+ type: Object,
28743
+ required: true
28744
+ }
28745
+ },
28746
+ watch: {
28747
+ fieldInfo: {
28748
+ handler: function (value, old) {
28749
+ let ths = this;
28750
+ console.log("Multi drop down", value, old);
28751
+ if (value.config && value.config.options) {
28752
+ try {
28753
+ ths.options = [];
28754
+ value.config.options.forEach(function (x) {
28755
+ let obj = {
28756
+ value: x.value,
28757
+ label: x.name
28758
+ };
28759
+ ths.options.push(obj);
28760
+ });
28761
+ } catch (x) {}
28762
+ }
28763
+ },
28764
+ deep: true
28765
+ }
28766
+ },
28767
+ created: function () {
28768
+ let ths = this;
28769
+ if (typeof ths.fieldInfo.value == 'undefined' || ths.fieldInfo.value == "") {
28770
+ ths.fieldInfo.value = [];
28771
+ }
28772
+ if (typeof ths.fieldInfo.mode == 'undefined' || ths.fieldInfo.mode == "") {
28773
+ ths.fieldInfo.mode = 'single';
28774
+ }
28775
+ if (ths.fieldInfo.config && ths.fieldInfo.config.options) {
28776
+ try {
28777
+ ths.fieldInfo.config.options.forEach(function (x) {
28778
+ let obj = {
28779
+ value: x.value,
28780
+ label: x.name
28781
+ };
28782
+ ths.options.push(obj);
28783
+ });
28784
+ } catch (x) {
28785
+ console.log(x);
28786
+ }
28787
+ }
28788
+ },
28789
+ data: function () {
28790
+ return {
28791
+ isTouched: false,
28792
+ value: [],
28793
+ selectedHtml: '',
28794
+ options: []
28795
+ };
28796
+ },
28797
+ computed: {
28798
+ isInvalid() {
28799
+ return this.isTouched && this.value.length === 0;
28800
+ }
28801
+ },
28802
+ methods: {
28803
+ onSearch: function (e, x) {
28804
+ if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onSearchChange) {
28805
+ this.fieldInfo.config.onSearchChange(x, this.fieldInfo);
28806
+ }
28807
+ },
28808
+ onChange: function (e, x) {
28809
+ if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onChange) {
28810
+ this.fieldInfo.config.onChange(x, this.fieldInfo);
28811
+ }
28812
+ },
28813
+ showAddIcon: function () {
28814
+ if (this.fieldInfo.config && this.fieldInfo.config.showAddIcon) {
28815
+ return this.fieldInfo.config.showAddIcon;
28816
+ }
28817
+ },
28818
+ onAddButtonClick: function (e) {
28819
+ if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onAddButtonClick) {
28820
+ this.fieldInfo.config.onAddButtonClick(e, this.fieldInfo);
28821
+ }
28822
+ },
28823
+ addButtonClass: function () {
28824
+ if (this.fieldInfo.config && this.fieldInfo.config.addIconBackground) {
28825
+ return "round-icon-small theme-primary " + this.fieldInfo.config.addIconBackground;
28826
+ } else {
28827
+ return "round-icon-small btn-dark theme-primary";
28828
+ }
28829
+ },
28830
+ addIconClass: function () {
28831
+ if (this.fieldInfo.config && this.fieldInfo.config.addIcon) {
28832
+ return "fa text-white pt-7 font-18 " + this.fieldInfo.config.addIcon;
28833
+ } else {
28834
+ return "fa fa-plus text-white pt-7 font-18";
28835
+ }
28836
+ }
28837
+ },
28838
+ mounted: function () {
28839
+ this.fieldInfo.validationRules = getValidationRules(this.fieldInfo.validationRules, this.lang);
28840
+ }
28841
+ });
28842
+ // CONCATENATED MODULE: ./src/components/CustomSelectField.vue?vue&type=script&lang=js&
28843
+ /* harmony default export */ var components_CustomSelectFieldvue_type_script_lang_js_ = (CustomSelectFieldvue_type_script_lang_js_);
28844
+ // CONCATENATED MODULE: ./src/components/CustomSelectField.vue
28845
+
28846
+
28847
+
28848
+
28849
+
28850
+
28851
+ /* normalize component */
28852
+
28853
+ var CustomSelectField_component = normalizeComponent(
28854
+ components_CustomSelectFieldvue_type_script_lang_js_,
28855
+ CustomSelectFieldvue_type_template_id_1f35ed08_render,
28856
+ CustomSelectFieldvue_type_template_id_1f35ed08_staticRenderFns,
28857
+ false,
28858
+ null,
28859
+ null,
28860
+ null
28861
+
28862
+ )
28863
+
28864
+ /* harmony default export */ var CustomSelectField = (CustomSelectField_component.exports);
28651
28865
  // 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
28866
  var TextAreaFieldvue_type_template_id_1c027eb3_render = function render() {
28653
28867
  var _vm = this,
@@ -29288,7 +29502,6 @@ var FileField_component = normalizeComponent(
29288
29502
 
29289
29503
 
29290
29504
 
29291
- //import CustomSelectField from '@/CustomSelectField.vue'
29292
29505
 
29293
29506
 
29294
29507
 
@@ -29304,11 +29517,10 @@ var FileField_component = normalizeComponent(
29304
29517
  DateField: DateField,
29305
29518
  CheckBoxField: CheckBoxField,
29306
29519
  RadioField: RadioField,
29307
- CKEditorField: CKEditorField,
29308
29520
  MultiSelectField: MultiSelectField,
29309
29521
  ToggleField: ToggleField,
29310
29522
  PhoneField: PhoneField,
29311
- //CustomSelectField,
29523
+ CustomSelectField: CustomSelectField,
29312
29524
  TextAreaField: TextAreaField,
29313
29525
  ColorField: ColorField,
29314
29526
  FileField: FileField
@@ -29427,209 +29639,17 @@ var DynamicForm_component = normalizeComponent(
29427
29639
  )
29428
29640
 
29429
29641
  /* harmony default export */ var DynamicForm = (DynamicForm_component.exports);
29430
- // 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&
29431
- var CustomSelectFieldvue_type_template_id_5c4a03b3_render = function render() {
29432
- var _vm = this,
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
-
29642
+ // CONCATENATED MODULE: ./src/components/CKEditorField.vue
29643
+ var CKEditorField_render, CKEditorField_staticRenderFns
29644
+ var script = {}
29625
29645
 
29626
29646
 
29627
29647
  /* normalize component */
29628
29648
 
29629
- var CustomSelectField_component = normalizeComponent(
29630
- components_CustomSelectFieldvue_type_script_lang_js_,
29631
- CustomSelectFieldvue_type_template_id_5c4a03b3_render,
29632
- CustomSelectFieldvue_type_template_id_5c4a03b3_staticRenderFns,
29649
+ var CKEditorField_component = normalizeComponent(
29650
+ script,
29651
+ CKEditorField_render,
29652
+ CKEditorField_staticRenderFns,
29633
29653
  false,
29634
29654
  null,
29635
29655
  null,
@@ -29637,7 +29657,7 @@ var CustomSelectField_component = normalizeComponent(
29637
29657
 
29638
29658
  )
29639
29659
 
29640
- /* harmony default export */ var CustomSelectField = (CustomSelectField_component.exports);
29660
+ /* harmony default export */ var CKEditorField = (CKEditorField_component.exports);
29641
29661
  // CONCATENATED MODULE: ./src/index.js
29642
29662
 
29643
29663