@syncfusion/ej2-vue-dropdowns 20.4.54 → 21.1.37

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.
Files changed (81) hide show
  1. package/CHANGELOG.md +4 -79
  2. package/dist/ej2-vue-dropdowns.umd.min.js +2 -2
  3. package/dist/ej2-vue-dropdowns.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-dropdowns.es2015.js +928 -1087
  5. package/dist/es6/ej2-vue-dropdowns.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-dropdowns.es5.js +1012 -1206
  7. package/dist/es6/ej2-vue-dropdowns.es5.js.map +1 -1
  8. package/dist/global/ej2-vue-dropdowns.min.js +2 -2
  9. package/package.json +11 -10
  10. package/src/auto-complete/autocomplete.component.d.ts +3 -36
  11. package/src/auto-complete/autocomplete.component.js +152 -183
  12. package/src/combo-box/combobox.component.d.ts +3 -36
  13. package/src/combo-box/combobox.component.js +152 -183
  14. package/src/drop-down-list/dropdownlist.component.d.ts +3 -36
  15. package/src/drop-down-list/dropdownlist.component.js +152 -183
  16. package/src/drop-down-tree/dropdowntree.component.d.ts +3 -32
  17. package/src/drop-down-tree/dropdowntree.component.js +140 -171
  18. package/src/list-box/listbox.component.d.ts +3 -44
  19. package/src/list-box/listbox.component.js +176 -207
  20. package/src/mention/mention.component.d.ts +3 -28
  21. package/src/mention/mention.component.js +101 -130
  22. package/src/multi-select/multiselect.component.d.ts +3 -38
  23. package/src/multi-select/multiselect.component.js +158 -189
  24. package/styles/bootstrap-dark.css +2 -15
  25. package/styles/bootstrap.css +2 -5
  26. package/styles/bootstrap4.css +3 -14
  27. package/styles/bootstrap5-dark.css +5 -8
  28. package/styles/bootstrap5.css +5 -8
  29. package/styles/drop-down-base/bootstrap-dark.css +2 -2
  30. package/styles/drop-down-base/bootstrap.css +2 -2
  31. package/styles/drop-down-base/bootstrap4.css +2 -10
  32. package/styles/drop-down-base/bootstrap5-dark.css +2 -2
  33. package/styles/drop-down-base/bootstrap5.css +2 -2
  34. package/styles/drop-down-base/fabric-dark.css +2 -2
  35. package/styles/drop-down-base/fabric.css +2 -2
  36. package/styles/drop-down-base/fluent-dark.css +2 -2
  37. package/styles/drop-down-base/fluent.css +2 -2
  38. package/styles/drop-down-base/highcontrast-light.css +2 -2
  39. package/styles/drop-down-base/highcontrast.css +2 -2
  40. package/styles/drop-down-base/material-dark.css +2 -2
  41. package/styles/drop-down-base/material.css +2 -2
  42. package/styles/drop-down-base/tailwind-dark.css +2 -2
  43. package/styles/drop-down-base/tailwind.css +2 -2
  44. package/styles/drop-down-list/bootstrap-dark.css +0 -3
  45. package/styles/drop-down-list/bootstrap.css +0 -3
  46. package/styles/drop-down-list/bootstrap4.css +1 -12
  47. package/styles/drop-down-list/bootstrap5-dark.css +0 -3
  48. package/styles/drop-down-list/bootstrap5.css +0 -3
  49. package/styles/drop-down-list/fabric-dark.css +0 -3
  50. package/styles/drop-down-list/fabric.css +0 -3
  51. package/styles/drop-down-list/fluent-dark.css +0 -3
  52. package/styles/drop-down-list/fluent.css +0 -3
  53. package/styles/drop-down-list/highcontrast-light.css +0 -3
  54. package/styles/drop-down-list/highcontrast.css +0 -3
  55. package/styles/drop-down-list/material-dark.css +1 -3
  56. package/styles/drop-down-list/material.css +0 -3
  57. package/styles/drop-down-list/tailwind-dark.css +1 -4
  58. package/styles/drop-down-list/tailwind.css +1 -4
  59. package/styles/drop-down-tree/bootstrap4.css +0 -8
  60. package/styles/drop-down-tree/material-dark.css +1 -0
  61. package/styles/fabric-dark.css +2 -15
  62. package/styles/fabric.css +2 -5
  63. package/styles/fluent-dark.css +6 -9
  64. package/styles/fluent.css +6 -9
  65. package/styles/highcontrast-light.css +9 -15
  66. package/styles/highcontrast.css +15 -11
  67. package/styles/list-box/bootstrap4.css +0 -8
  68. package/styles/material-dark.css +4 -15
  69. package/styles/material.css +2 -5
  70. package/styles/mention/bootstrap4.css +0 -8
  71. package/styles/multi-select/bootstrap4.css +0 -8
  72. package/styles/multi-select/bootstrap5-dark.css +3 -3
  73. package/styles/multi-select/bootstrap5.css +3 -3
  74. package/styles/multi-select/fluent-dark.css +4 -4
  75. package/styles/multi-select/fluent.css +4 -4
  76. package/styles/multi-select/highcontrast-light.css +7 -0
  77. package/styles/multi-select/highcontrast.css +13 -6
  78. package/styles/multi-select/tailwind-dark.css +2 -1
  79. package/styles/multi-select/tailwind.css +2 -1
  80. package/styles/tailwind-dark.css +5 -7
  81. package/styles/tailwind.css +5 -7
@@ -1,14 +1,7 @@
1
1
  import { AutoComplete, ComboBox, DropDownList, DropDownTree, ListBox, Mention, MultiSelect } from '@syncfusion/ej2-dropdowns';
2
+ import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
2
3
  import { getValue, isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
3
- import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
4
4
 
5
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
7
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
8
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
9
- return c > 3 && r && Object.defineProperty(target, key, r), r;
10
- };
11
- // {{VueImport}}
12
5
  const properties = ['isLazyUpdate', 'plugins', 'actionFailureTemplate', 'allowFiltering', 'cssClass', 'dataSource', 'enablePersistence', 'enableRtl', 'enabled', 'fields', 'filterBarPlaceholder', 'filterType', 'floatLabelType', 'footerTemplate', 'groupTemplate', 'headerTemplate', 'htmlAttributes', 'ignoreAccent', 'ignoreCase', 'index', 'itemTemplate', 'locale', 'noRecordsTemplate', 'placeholder', 'popupHeight', 'popupWidth', 'query', 'readonly', 'showClearButton', 'sortOrder', 'text', 'value', 'valueTemplate', 'width', 'zIndex', 'actionBegin', 'actionComplete', 'actionFailure', 'beforeOpen', 'blur', 'change', 'close', 'created', 'dataBound', 'destroyed', 'filtering', 'focus', 'open', 'select'];
13
6
  const modelProps = ['value'];
14
7
  const testProp = getProps({ props: properties });
@@ -25,28 +18,28 @@ for (let props of modelProps) {
25
18
  * <ejs-dropdownlist :dataSource='data'></ejs-dropdownlist>
26
19
  * ```
27
20
  */
28
- let DropDownListComponent =
29
- /* Start Options({
21
+ let DropDownListComponent = vueDefineComponent({
22
+ name: 'DropDownListComponent',
23
+ mixins: [ComponentBase],
30
24
  props: props,
31
25
  watch: watch,
32
26
  emits: emitProbs,
33
- provide: function provide() {
27
+ model: { event: 'modelchanged' },
28
+ provide() { return { custom: this.custom }; },
29
+ data() {
34
30
  return {
35
- custom: this.custom
31
+ ej2Instances: new DropDownList({}),
32
+ propKeys: properties,
33
+ models: modelProps,
34
+ hasChildDirective: false,
35
+ hasInjectedModules: false,
36
+ tagMapper: {},
37
+ tagNameMapper: {},
38
+ isVue3: !isExecute,
39
+ templateCollection: {},
36
40
  };
37
- }
38
- }) End */
39
- class DropDownListComponent extends ComponentBase {
40
- constructor() {
41
- super(arguments);
42
- this.propKeys = properties;
43
- this.models = modelProps;
44
- this.hasChildDirective = false;
45
- this.hasInjectedModules = false;
46
- this.tagMapper = {};
47
- this.tagNameMapper = {};
48
- this.isVue3 = !isExecute;
49
- this.ej2Instances = new DropDownList({});
41
+ },
42
+ created() {
50
43
  this.ej2Instances._trigger = this.ej2Instances.trigger;
51
44
  this.ej2Instances.trigger = this.trigger;
52
45
  this.bindProperties();
@@ -54,154 +47,138 @@ class DropDownListComponent extends ComponentBase {
54
47
  this.ej2Instances.setProperties = this.setProperties;
55
48
  this.ej2Instances.clearTemplate = this.clearTemplate;
56
49
  this.updated = this.updated;
57
- }
58
- clearTemplate(templateNames) {
59
- if (!templateNames) {
60
- templateNames = Object.keys(this.templateCollection || {});
50
+ },
51
+ render(createElement) {
52
+ let h = !isExecute ? gh : createElement;
53
+ let slots = null;
54
+ if (!isNullOrUndefined(this.$slots.default)) {
55
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
61
56
  }
62
- if (templateNames.length && this.templateCollection) {
63
- for (let tempName of templateNames) {
64
- let elementCollection = this.templateCollection[tempName];
65
- if (elementCollection && elementCollection.length) {
66
- for (let ele of elementCollection) {
67
- let destroy = getValue('__vue__.$destroy', ele);
68
- if (destroy) {
69
- ele.__vue__.$destroy();
70
- }
71
- if (ele.innerHTML) {
72
- ele.innerHTML = '';
57
+ return h('input', slots);
58
+ },
59
+ methods: {
60
+ clearTemplate(templateNames) {
61
+ if (!templateNames) {
62
+ templateNames = Object.keys(this.templateCollection || {});
63
+ }
64
+ if (templateNames.length && this.templateCollection) {
65
+ for (let tempName of templateNames) {
66
+ let elementCollection = this.templateCollection[tempName];
67
+ if (elementCollection && elementCollection.length) {
68
+ for (let ele of elementCollection) {
69
+ let destroy = getValue('__vue__.$destroy', ele);
70
+ if (destroy) {
71
+ ele.__vue__.$destroy();
72
+ }
73
+ if (ele.innerHTML) {
74
+ ele.innerHTML = '';
75
+ }
73
76
  }
77
+ delete this.templateCollection[tempName];
74
78
  }
75
- delete this.templateCollection[tempName];
76
79
  }
77
80
  }
78
- }
79
- }
80
- setProperties(prop, muteOnChange) {
81
- if (this.isVue3) {
82
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
83
- }
84
- if (this.ej2Instances && this.ej2Instances._setProperties) {
85
- this.ej2Instances._setProperties(prop, muteOnChange);
86
- }
87
- if (prop && this.models && this.models.length) {
88
- Object.keys(prop).map((key) => {
89
- this.models.map((model) => {
90
- if ((key === model) && !(/datasource/i.test(key))) {
91
- if (this.isVue3) {
92
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
81
+ },
82
+ setProperties(prop, muteOnChange) {
83
+ if (this.isVue3) {
84
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
85
+ }
86
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
87
+ this.ej2Instances._setProperties(prop, muteOnChange);
88
+ }
89
+ if (prop && this.models && this.models.length) {
90
+ Object.keys(prop).map((key) => {
91
+ this.models.map((model) => {
92
+ if ((key === model) && !(/datasource/i.test(key))) {
93
+ if (this.isVue3) {
94
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
95
+ }
96
+ else {
97
+ this.$emit('update:' + key, prop[key]);
98
+ this.$emit('modelchanged', prop[key]);
99
+ }
93
100
  }
94
- else {
95
- this.$emit('update:' + key, prop[key]);
96
- this.$emit('modelchanged', prop[key]);
101
+ });
102
+ });
103
+ }
104
+ },
105
+ trigger(eventName, eventProp, successHandler) {
106
+ if (!isExecute) {
107
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
108
+ }
109
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
110
+ let key = this.models.toString().match(/checked|value/) || [];
111
+ let propKey = key[0];
112
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
113
+ if (!isExecute) {
114
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
115
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
116
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
117
+ }
118
+ else {
119
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
120
+ this.$emit('update:' + propKey, eventProp[propKey]);
121
+ this.$emit('modelchanged', eventProp[propKey]);
97
122
  }
98
123
  }
99
- });
100
- });
101
- }
102
- }
103
- trigger(eventName, eventProp, successHandler) {
104
- if (!isExecute) {
105
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
106
- }
107
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
108
- let key = this.models.toString().match(/checked|value/) || [];
109
- let propKey = key[0];
110
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
111
- if (!isExecute) {
112
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
113
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
114
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
115
124
  }
116
- else {
117
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
125
+ }
126
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
127
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
128
+ let propKey = key[0];
129
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
130
+ if (!isExecute) {
131
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
132
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
133
+ }
134
+ else {
118
135
  this.$emit('update:' + propKey, eventProp[propKey]);
119
136
  this.$emit('modelchanged', eventProp[propKey]);
120
137
  }
121
138
  }
122
139
  }
123
- }
124
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
125
- let key = this.models.toString().match(/currentView|selectedDate/) || [];
126
- let propKey = key[0];
127
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
128
- if (!isExecute) {
129
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
130
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
131
- }
132
- else {
133
- this.$emit('update:' + propKey, eventProp[propKey]);
134
- this.$emit('modelchanged', eventProp[propKey]);
135
- }
140
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
141
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
136
142
  }
137
- }
138
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
139
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
140
- }
141
- }
142
- render(createElement) {
143
- let h = !isExecute ? gh : createElement;
144
- let slots = null;
145
- if (!isNullOrUndefined(this.$slots.default)) {
146
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
147
- }
148
- return h('input', slots);
149
- }
150
- custom() {
151
- this.updated();
152
- }
153
- addItem(items, itemIndex) {
154
- return this.ej2Instances.addItem(items, itemIndex);
155
- }
156
- clear() {
157
- return this.ej2Instances.clear();
158
- }
159
- filter(dataSource, query, fields) {
160
- return this.ej2Instances.filter(dataSource, query, fields);
161
- }
162
- focusIn(e) {
163
- return this.ej2Instances.focusIn(e);
164
- }
165
- focusOut(e) {
166
- return this.ej2Instances.focusOut(e);
167
- }
168
- getDataByValue(value) {
169
- return this.ej2Instances.getDataByValue(value);
170
- }
171
- getItems() {
172
- return this.ej2Instances.getItems();
173
- }
174
- hidePopup(e) {
175
- return this.ej2Instances.hidePopup(e);
176
- }
177
- hideSpinner() {
178
- return this.ej2Instances.hideSpinner();
179
- }
180
- showPopup(e) {
181
- return this.ej2Instances.showPopup(e);
182
- }
183
- showSpinner() {
184
- return this.ej2Instances.showSpinner();
185
- }
186
- };
187
- DropDownListComponent = __decorate([
188
- EJComponentDecorator({
189
- props: properties,
190
- model: {
191
- event: 'modelchanged'
192
- }
193
- }, isExecute)
194
- /* Start Options({
195
- props: props,
196
- watch: watch,
197
- emits: emitProbs,
198
- provide: function provide() {
199
- return {
200
- custom: this.custom
201
- };
202
- }
203
- }) End */
204
- ], DropDownListComponent);
143
+ },
144
+ custom() {
145
+ this.updated();
146
+ },
147
+ addItem(items, itemIndex) {
148
+ return this.ej2Instances.addItem(items, itemIndex);
149
+ },
150
+ clear() {
151
+ return this.ej2Instances.clear();
152
+ },
153
+ filter(dataSource, query, fields) {
154
+ return this.ej2Instances.filter(dataSource, query, fields);
155
+ },
156
+ focusIn(e) {
157
+ return this.ej2Instances.focusIn(e);
158
+ },
159
+ focusOut(e) {
160
+ return this.ej2Instances.focusOut(e);
161
+ },
162
+ getDataByValue(value) {
163
+ return this.ej2Instances.getDataByValue(value);
164
+ },
165
+ getItems() {
166
+ return this.ej2Instances.getItems();
167
+ },
168
+ hidePopup(e) {
169
+ return this.ej2Instances.hidePopup(e);
170
+ },
171
+ hideSpinner() {
172
+ return this.ej2Instances.hideSpinner();
173
+ },
174
+ showPopup(e) {
175
+ return this.ej2Instances.showPopup(e);
176
+ },
177
+ showSpinner() {
178
+ return this.ej2Instances.showSpinner();
179
+ },
180
+ }
181
+ });
205
182
  const DropDownListPlugin = {
206
183
  name: 'ejs-dropdownlist',
207
184
  install(Vue) {
@@ -209,13 +186,6 @@ const DropDownListPlugin = {
209
186
  }
210
187
  };
211
188
 
212
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
213
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
214
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
215
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
216
- return c > 3 && r && Object.defineProperty(target, key, r), r;
217
- };
218
- // {{VueImport}}
219
189
  const properties$1 = ['isLazyUpdate', 'plugins', 'actionFailureTemplate', 'allowCustom', 'allowFiltering', 'autofill', 'cssClass', 'dataSource', 'enablePersistence', 'enableRtl', 'enabled', 'fields', 'filterBarPlaceholder', 'filterType', 'floatLabelType', 'footerTemplate', 'groupTemplate', 'headerTemplate', 'htmlAttributes', 'ignoreAccent', 'ignoreCase', 'index', 'itemTemplate', 'locale', 'noRecordsTemplate', 'placeholder', 'popupHeight', 'popupWidth', 'query', 'readonly', 'showClearButton', 'sortOrder', 'text', 'value', 'valueTemplate', 'width', 'zIndex', 'actionBegin', 'actionComplete', 'actionFailure', 'beforeOpen', 'blur', 'change', 'close', 'created', 'customValueSpecifier', 'dataBound', 'destroyed', 'filtering', 'focus', 'open', 'select'];
220
190
  const modelProps$1 = ['value'];
221
191
  const testProp$1 = getProps({ props: properties$1 });
@@ -232,28 +202,28 @@ for (let props of modelProps$1) {
232
202
  * <ejs-combobox :dataSource='data'></ejs-combobox>
233
203
  * ```
234
204
  */
235
- let ComboBoxComponent =
236
- /* Start Options({
237
- props: props,
238
- watch: watch,
239
- emits: emitProbs,
240
- provide: function provide() {
205
+ let ComboBoxComponent = vueDefineComponent({
206
+ name: 'ComboBoxComponent',
207
+ mixins: [ComponentBase],
208
+ props: props$1,
209
+ watch: watch$1,
210
+ emits: emitProbs$1,
211
+ model: { event: 'modelchanged' },
212
+ provide() { return { custom: this.custom }; },
213
+ data() {
241
214
  return {
242
- custom: this.custom
215
+ ej2Instances: new ComboBox({}),
216
+ propKeys: properties$1,
217
+ models: modelProps$1,
218
+ hasChildDirective: false,
219
+ hasInjectedModules: false,
220
+ tagMapper: {},
221
+ tagNameMapper: {},
222
+ isVue3: !isExecute,
223
+ templateCollection: {},
243
224
  };
244
- }
245
- }) End */
246
- class ComboBoxComponent extends ComponentBase {
247
- constructor() {
248
- super(arguments);
249
- this.propKeys = properties$1;
250
- this.models = modelProps$1;
251
- this.hasChildDirective = false;
252
- this.hasInjectedModules = false;
253
- this.tagMapper = {};
254
- this.tagNameMapper = {};
255
- this.isVue3 = !isExecute;
256
- this.ej2Instances = new ComboBox({});
225
+ },
226
+ created() {
257
227
  this.ej2Instances._trigger = this.ej2Instances.trigger;
258
228
  this.ej2Instances.trigger = this.trigger;
259
229
  this.bindProperties();
@@ -261,154 +231,138 @@ class ComboBoxComponent extends ComponentBase {
261
231
  this.ej2Instances.setProperties = this.setProperties;
262
232
  this.ej2Instances.clearTemplate = this.clearTemplate;
263
233
  this.updated = this.updated;
264
- }
265
- clearTemplate(templateNames) {
266
- if (!templateNames) {
267
- templateNames = Object.keys(this.templateCollection || {});
234
+ },
235
+ render(createElement) {
236
+ let h = !isExecute ? gh : createElement;
237
+ let slots = null;
238
+ if (!isNullOrUndefined(this.$slots.default)) {
239
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
268
240
  }
269
- if (templateNames.length && this.templateCollection) {
270
- for (let tempName of templateNames) {
271
- let elementCollection = this.templateCollection[tempName];
272
- if (elementCollection && elementCollection.length) {
273
- for (let ele of elementCollection) {
274
- let destroy = getValue('__vue__.$destroy', ele);
275
- if (destroy) {
276
- ele.__vue__.$destroy();
277
- }
278
- if (ele.innerHTML) {
279
- ele.innerHTML = '';
241
+ return h('input', slots);
242
+ },
243
+ methods: {
244
+ clearTemplate(templateNames) {
245
+ if (!templateNames) {
246
+ templateNames = Object.keys(this.templateCollection || {});
247
+ }
248
+ if (templateNames.length && this.templateCollection) {
249
+ for (let tempName of templateNames) {
250
+ let elementCollection = this.templateCollection[tempName];
251
+ if (elementCollection && elementCollection.length) {
252
+ for (let ele of elementCollection) {
253
+ let destroy = getValue('__vue__.$destroy', ele);
254
+ if (destroy) {
255
+ ele.__vue__.$destroy();
256
+ }
257
+ if (ele.innerHTML) {
258
+ ele.innerHTML = '';
259
+ }
280
260
  }
261
+ delete this.templateCollection[tempName];
281
262
  }
282
- delete this.templateCollection[tempName];
283
263
  }
284
264
  }
285
- }
286
- }
287
- setProperties(prop, muteOnChange) {
288
- if (this.isVue3) {
289
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
290
- }
291
- if (this.ej2Instances && this.ej2Instances._setProperties) {
292
- this.ej2Instances._setProperties(prop, muteOnChange);
293
- }
294
- if (prop && this.models && this.models.length) {
295
- Object.keys(prop).map((key) => {
296
- this.models.map((model) => {
297
- if ((key === model) && !(/datasource/i.test(key))) {
298
- if (this.isVue3) {
299
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
265
+ },
266
+ setProperties(prop, muteOnChange) {
267
+ if (this.isVue3) {
268
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
269
+ }
270
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
271
+ this.ej2Instances._setProperties(prop, muteOnChange);
272
+ }
273
+ if (prop && this.models && this.models.length) {
274
+ Object.keys(prop).map((key) => {
275
+ this.models.map((model) => {
276
+ if ((key === model) && !(/datasource/i.test(key))) {
277
+ if (this.isVue3) {
278
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
279
+ }
280
+ else {
281
+ this.$emit('update:' + key, prop[key]);
282
+ this.$emit('modelchanged', prop[key]);
283
+ }
300
284
  }
301
- else {
302
- this.$emit('update:' + key, prop[key]);
303
- this.$emit('modelchanged', prop[key]);
285
+ });
286
+ });
287
+ }
288
+ },
289
+ trigger(eventName, eventProp, successHandler) {
290
+ if (!isExecute) {
291
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
292
+ }
293
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
294
+ let key = this.models.toString().match(/checked|value/) || [];
295
+ let propKey = key[0];
296
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
297
+ if (!isExecute) {
298
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
299
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
300
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
301
+ }
302
+ else {
303
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
304
+ this.$emit('update:' + propKey, eventProp[propKey]);
305
+ this.$emit('modelchanged', eventProp[propKey]);
304
306
  }
305
307
  }
306
- });
307
- });
308
- }
309
- }
310
- trigger(eventName, eventProp, successHandler) {
311
- if (!isExecute) {
312
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
313
- }
314
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
315
- let key = this.models.toString().match(/checked|value/) || [];
316
- let propKey = key[0];
317
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
318
- if (!isExecute) {
319
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
320
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
321
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
322
308
  }
323
- else {
324
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
309
+ }
310
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
311
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
312
+ let propKey = key[0];
313
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
314
+ if (!isExecute) {
315
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
316
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
317
+ }
318
+ else {
325
319
  this.$emit('update:' + propKey, eventProp[propKey]);
326
320
  this.$emit('modelchanged', eventProp[propKey]);
327
321
  }
328
322
  }
329
323
  }
330
- }
331
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
332
- let key = this.models.toString().match(/currentView|selectedDate/) || [];
333
- let propKey = key[0];
334
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
335
- if (!isExecute) {
336
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
337
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
338
- }
339
- else {
340
- this.$emit('update:' + propKey, eventProp[propKey]);
341
- this.$emit('modelchanged', eventProp[propKey]);
342
- }
324
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
325
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
343
326
  }
344
- }
345
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
346
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
347
- }
348
- }
349
- render(createElement) {
350
- let h = !isExecute ? gh : createElement;
351
- let slots = null;
352
- if (!isNullOrUndefined(this.$slots.default)) {
353
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
354
- }
355
- return h('input', slots);
356
- }
357
- custom() {
358
- this.updated();
359
- }
360
- addItem(items, itemIndex) {
361
- return this.ej2Instances.addItem(items, itemIndex);
362
- }
363
- clear() {
364
- return this.ej2Instances.clear();
365
- }
366
- filter(dataSource, query, fields) {
367
- return this.ej2Instances.filter(dataSource, query, fields);
368
- }
369
- focusIn() {
370
- return this.ej2Instances.focusIn();
371
- }
372
- focusOut(e) {
373
- return this.ej2Instances.focusOut(e);
374
- }
375
- getDataByValue(value) {
376
- return this.ej2Instances.getDataByValue(value);
377
- }
378
- getItems() {
379
- return this.ej2Instances.getItems();
380
- }
381
- hidePopup(e) {
382
- return this.ej2Instances.hidePopup(e);
383
- }
384
- hideSpinner() {
385
- return this.ej2Instances.hideSpinner();
386
- }
387
- showPopup(e) {
388
- return this.ej2Instances.showPopup(e);
389
- }
390
- showSpinner() {
391
- return this.ej2Instances.showSpinner();
392
- }
393
- };
394
- ComboBoxComponent = __decorate$1([
395
- EJComponentDecorator({
396
- props: properties$1,
397
- model: {
398
- event: 'modelchanged'
399
- }
400
- }, isExecute)
401
- /* Start Options({
402
- props: props,
403
- watch: watch,
404
- emits: emitProbs,
405
- provide: function provide() {
406
- return {
407
- custom: this.custom
408
- };
409
- }
410
- }) End */
411
- ], ComboBoxComponent);
327
+ },
328
+ custom() {
329
+ this.updated();
330
+ },
331
+ addItem(items, itemIndex) {
332
+ return this.ej2Instances.addItem(items, itemIndex);
333
+ },
334
+ clear() {
335
+ return this.ej2Instances.clear();
336
+ },
337
+ filter(dataSource, query, fields) {
338
+ return this.ej2Instances.filter(dataSource, query, fields);
339
+ },
340
+ focusIn() {
341
+ return this.ej2Instances.focusIn();
342
+ },
343
+ focusOut(e) {
344
+ return this.ej2Instances.focusOut(e);
345
+ },
346
+ getDataByValue(value) {
347
+ return this.ej2Instances.getDataByValue(value);
348
+ },
349
+ getItems() {
350
+ return this.ej2Instances.getItems();
351
+ },
352
+ hidePopup(e) {
353
+ return this.ej2Instances.hidePopup(e);
354
+ },
355
+ hideSpinner() {
356
+ return this.ej2Instances.hideSpinner();
357
+ },
358
+ showPopup(e) {
359
+ return this.ej2Instances.showPopup(e);
360
+ },
361
+ showSpinner() {
362
+ return this.ej2Instances.showSpinner();
363
+ },
364
+ }
365
+ });
412
366
  const ComboBoxPlugin = {
413
367
  name: 'ejs-combobox',
414
368
  install(Vue) {
@@ -416,13 +370,6 @@ const ComboBoxPlugin = {
416
370
  }
417
371
  };
418
372
 
419
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
420
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
421
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
422
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
423
- return c > 3 && r && Object.defineProperty(target, key, r), r;
424
- };
425
- // {{VueImport}}
426
373
  const properties$2 = ['isLazyUpdate', 'plugins', 'actionFailureTemplate', 'allowCustom', 'allowFiltering', 'autofill', 'cssClass', 'dataSource', 'enablePersistence', 'enableRtl', 'enabled', 'fields', 'filterBarPlaceholder', 'filterType', 'floatLabelType', 'footerTemplate', 'groupTemplate', 'headerTemplate', 'highlight', 'htmlAttributes', 'ignoreAccent', 'ignoreCase', 'index', 'itemTemplate', 'locale', 'minLength', 'noRecordsTemplate', 'placeholder', 'popupHeight', 'popupWidth', 'query', 'readonly', 'showClearButton', 'showPopupButton', 'sortOrder', 'suggestionCount', 'text', 'value', 'valueTemplate', 'width', 'zIndex', 'actionBegin', 'actionComplete', 'actionFailure', 'beforeOpen', 'blur', 'change', 'close', 'created', 'customValueSpecifier', 'dataBound', 'destroyed', 'filtering', 'focus', 'open', 'select'];
427
374
  const modelProps$2 = ['value'];
428
375
  const testProp$2 = getProps({ props: properties$2 });
@@ -439,28 +386,28 @@ for (let props of modelProps$2) {
439
386
  * <ejs-autocomplete :dataSource='data'></ejs-autocomplete>
440
387
  * ```
441
388
  */
442
- let AutoCompleteComponent =
443
- /* Start Options({
444
- props: props,
445
- watch: watch,
446
- emits: emitProbs,
447
- provide: function provide() {
389
+ let AutoCompleteComponent = vueDefineComponent({
390
+ name: 'AutoCompleteComponent',
391
+ mixins: [ComponentBase],
392
+ props: props$2,
393
+ watch: watch$2,
394
+ emits: emitProbs$2,
395
+ model: { event: 'modelchanged' },
396
+ provide() { return { custom: this.custom }; },
397
+ data() {
448
398
  return {
449
- custom: this.custom
399
+ ej2Instances: new AutoComplete({}),
400
+ propKeys: properties$2,
401
+ models: modelProps$2,
402
+ hasChildDirective: false,
403
+ hasInjectedModules: false,
404
+ tagMapper: {},
405
+ tagNameMapper: {},
406
+ isVue3: !isExecute,
407
+ templateCollection: {},
450
408
  };
451
- }
452
- }) End */
453
- class AutoCompleteComponent extends ComponentBase {
454
- constructor() {
455
- super(arguments);
456
- this.propKeys = properties$2;
457
- this.models = modelProps$2;
458
- this.hasChildDirective = false;
459
- this.hasInjectedModules = false;
460
- this.tagMapper = {};
461
- this.tagNameMapper = {};
462
- this.isVue3 = !isExecute;
463
- this.ej2Instances = new AutoComplete({});
409
+ },
410
+ created() {
464
411
  this.ej2Instances._trigger = this.ej2Instances.trigger;
465
412
  this.ej2Instances.trigger = this.trigger;
466
413
  this.bindProperties();
@@ -468,154 +415,138 @@ class AutoCompleteComponent extends ComponentBase {
468
415
  this.ej2Instances.setProperties = this.setProperties;
469
416
  this.ej2Instances.clearTemplate = this.clearTemplate;
470
417
  this.updated = this.updated;
471
- }
472
- clearTemplate(templateNames) {
473
- if (!templateNames) {
474
- templateNames = Object.keys(this.templateCollection || {});
418
+ },
419
+ render(createElement) {
420
+ let h = !isExecute ? gh : createElement;
421
+ let slots = null;
422
+ if (!isNullOrUndefined(this.$slots.default)) {
423
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
475
424
  }
476
- if (templateNames.length && this.templateCollection) {
477
- for (let tempName of templateNames) {
478
- let elementCollection = this.templateCollection[tempName];
479
- if (elementCollection && elementCollection.length) {
480
- for (let ele of elementCollection) {
481
- let destroy = getValue('__vue__.$destroy', ele);
482
- if (destroy) {
483
- ele.__vue__.$destroy();
484
- }
485
- if (ele.innerHTML) {
486
- ele.innerHTML = '';
425
+ return h('input', slots);
426
+ },
427
+ methods: {
428
+ clearTemplate(templateNames) {
429
+ if (!templateNames) {
430
+ templateNames = Object.keys(this.templateCollection || {});
431
+ }
432
+ if (templateNames.length && this.templateCollection) {
433
+ for (let tempName of templateNames) {
434
+ let elementCollection = this.templateCollection[tempName];
435
+ if (elementCollection && elementCollection.length) {
436
+ for (let ele of elementCollection) {
437
+ let destroy = getValue('__vue__.$destroy', ele);
438
+ if (destroy) {
439
+ ele.__vue__.$destroy();
440
+ }
441
+ if (ele.innerHTML) {
442
+ ele.innerHTML = '';
443
+ }
487
444
  }
445
+ delete this.templateCollection[tempName];
488
446
  }
489
- delete this.templateCollection[tempName];
490
447
  }
491
448
  }
492
- }
493
- }
494
- setProperties(prop, muteOnChange) {
495
- if (this.isVue3) {
496
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
497
- }
498
- if (this.ej2Instances && this.ej2Instances._setProperties) {
499
- this.ej2Instances._setProperties(prop, muteOnChange);
500
- }
501
- if (prop && this.models && this.models.length) {
502
- Object.keys(prop).map((key) => {
503
- this.models.map((model) => {
504
- if ((key === model) && !(/datasource/i.test(key))) {
505
- if (this.isVue3) {
506
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
449
+ },
450
+ setProperties(prop, muteOnChange) {
451
+ if (this.isVue3) {
452
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
453
+ }
454
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
455
+ this.ej2Instances._setProperties(prop, muteOnChange);
456
+ }
457
+ if (prop && this.models && this.models.length) {
458
+ Object.keys(prop).map((key) => {
459
+ this.models.map((model) => {
460
+ if ((key === model) && !(/datasource/i.test(key))) {
461
+ if (this.isVue3) {
462
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
463
+ }
464
+ else {
465
+ this.$emit('update:' + key, prop[key]);
466
+ this.$emit('modelchanged', prop[key]);
467
+ }
507
468
  }
508
- else {
509
- this.$emit('update:' + key, prop[key]);
510
- this.$emit('modelchanged', prop[key]);
469
+ });
470
+ });
471
+ }
472
+ },
473
+ trigger(eventName, eventProp, successHandler) {
474
+ if (!isExecute) {
475
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
476
+ }
477
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
478
+ let key = this.models.toString().match(/checked|value/) || [];
479
+ let propKey = key[0];
480
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
481
+ if (!isExecute) {
482
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
483
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
484
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
485
+ }
486
+ else {
487
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
488
+ this.$emit('update:' + propKey, eventProp[propKey]);
489
+ this.$emit('modelchanged', eventProp[propKey]);
511
490
  }
512
491
  }
513
- });
514
- });
515
- }
516
- }
517
- trigger(eventName, eventProp, successHandler) {
518
- if (!isExecute) {
519
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
520
- }
521
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
522
- let key = this.models.toString().match(/checked|value/) || [];
523
- let propKey = key[0];
524
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
525
- if (!isExecute) {
526
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
527
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
528
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
529
492
  }
530
- else {
531
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
493
+ }
494
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
495
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
496
+ let propKey = key[0];
497
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
498
+ if (!isExecute) {
499
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
500
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
501
+ }
502
+ else {
532
503
  this.$emit('update:' + propKey, eventProp[propKey]);
533
504
  this.$emit('modelchanged', eventProp[propKey]);
534
505
  }
535
506
  }
536
507
  }
537
- }
538
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
539
- let key = this.models.toString().match(/currentView|selectedDate/) || [];
540
- let propKey = key[0];
541
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
542
- if (!isExecute) {
543
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
544
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
545
- }
546
- else {
547
- this.$emit('update:' + propKey, eventProp[propKey]);
548
- this.$emit('modelchanged', eventProp[propKey]);
549
- }
508
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
509
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
550
510
  }
551
- }
552
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
553
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
554
- }
555
- }
556
- render(createElement) {
557
- let h = !isExecute ? gh : createElement;
558
- let slots = null;
559
- if (!isNullOrUndefined(this.$slots.default)) {
560
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
561
- }
562
- return h('input', slots);
563
- }
564
- custom() {
565
- this.updated();
566
- }
567
- addItem(items, itemIndex) {
568
- return this.ej2Instances.addItem(items, itemIndex);
569
- }
570
- clear() {
571
- return this.ej2Instances.clear();
572
- }
573
- filter(dataSource, query, fields) {
574
- return this.ej2Instances.filter(dataSource, query, fields);
575
- }
576
- focusIn() {
577
- return this.ej2Instances.focusIn();
578
- }
579
- focusOut(e) {
580
- return this.ej2Instances.focusOut(e);
581
- }
582
- getDataByValue(value) {
583
- return this.ej2Instances.getDataByValue(value);
584
- }
585
- getItems() {
586
- return this.ej2Instances.getItems();
587
- }
588
- hidePopup(e) {
589
- return this.ej2Instances.hidePopup(e);
590
- }
591
- hideSpinner() {
592
- return this.ej2Instances.hideSpinner();
593
- }
594
- showPopup(e) {
595
- return this.ej2Instances.showPopup(e);
596
- }
597
- showSpinner() {
598
- return this.ej2Instances.showSpinner();
599
- }
600
- };
601
- AutoCompleteComponent = __decorate$2([
602
- EJComponentDecorator({
603
- props: properties$2,
604
- model: {
605
- event: 'modelchanged'
606
- }
607
- }, isExecute)
608
- /* Start Options({
609
- props: props,
610
- watch: watch,
611
- emits: emitProbs,
612
- provide: function provide() {
613
- return {
614
- custom: this.custom
615
- };
616
- }
617
- }) End */
618
- ], AutoCompleteComponent);
511
+ },
512
+ custom() {
513
+ this.updated();
514
+ },
515
+ addItem(items, itemIndex) {
516
+ return this.ej2Instances.addItem(items, itemIndex);
517
+ },
518
+ clear() {
519
+ return this.ej2Instances.clear();
520
+ },
521
+ filter(dataSource, query, fields) {
522
+ return this.ej2Instances.filter(dataSource, query, fields);
523
+ },
524
+ focusIn() {
525
+ return this.ej2Instances.focusIn();
526
+ },
527
+ focusOut(e) {
528
+ return this.ej2Instances.focusOut(e);
529
+ },
530
+ getDataByValue(value) {
531
+ return this.ej2Instances.getDataByValue(value);
532
+ },
533
+ getItems() {
534
+ return this.ej2Instances.getItems();
535
+ },
536
+ hidePopup(e) {
537
+ return this.ej2Instances.hidePopup(e);
538
+ },
539
+ hideSpinner() {
540
+ return this.ej2Instances.hideSpinner();
541
+ },
542
+ showPopup(e) {
543
+ return this.ej2Instances.showPopup(e);
544
+ },
545
+ showSpinner() {
546
+ return this.ej2Instances.showSpinner();
547
+ },
548
+ }
549
+ });
619
550
  const AutoCompletePlugin = {
620
551
  name: 'ejs-autocomplete',
621
552
  install(Vue) {
@@ -623,13 +554,6 @@ const AutoCompletePlugin = {
623
554
  }
624
555
  };
625
556
 
626
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
627
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
628
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
629
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
630
- return c > 3 && r && Object.defineProperty(target, key, r), r;
631
- };
632
- // {{VueImport}}
633
557
  const properties$3 = ['isLazyUpdate', 'plugins', 'actionFailureTemplate', 'addTagOnBlur', 'allowCustomValue', 'allowFiltering', 'changeOnBlur', 'closePopupOnSelect', 'cssClass', 'dataSource', 'delimiterChar', 'enableGroupCheckBox', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableSelectionOrder', 'enabled', 'fields', 'filterBarPlaceholder', 'filterType', 'floatLabelType', 'footerTemplate', 'groupTemplate', 'headerTemplate', 'hideSelectedItem', 'htmlAttributes', 'ignoreAccent', 'ignoreCase', 'itemTemplate', 'locale', 'maximumSelectionLength', 'mode', 'noRecordsTemplate', 'openOnClick', 'placeholder', 'popupHeight', 'popupWidth', 'query', 'readonly', 'selectAllText', 'showClearButton', 'showDropDownIcon', 'showSelectAll', 'sortOrder', 'text', 'unSelectAllText', 'value', 'valueTemplate', 'width', 'zIndex', 'actionBegin', 'actionComplete', 'actionFailure', 'beforeOpen', 'beforeSelectAll', 'blur', 'change', 'chipSelection', 'close', 'created', 'customValueSelection', 'dataBound', 'destroyed', 'filtering', 'focus', 'open', 'removed', 'removing', 'select', 'selectedAll', 'tagging'];
634
558
  const modelProps$3 = ['value'];
635
559
  const testProp$3 = getProps({ props: properties$3 });
@@ -646,28 +570,28 @@ for (let props of modelProps$3) {
646
570
  * <ejs-multiselect :dataSource='data'></ejs-multiselect>
647
571
  * ```
648
572
  */
649
- let MultiSelectComponent =
650
- /* Start Options({
651
- props: props,
652
- watch: watch,
653
- emits: emitProbs,
654
- provide: function provide() {
573
+ let MultiSelectComponent = vueDefineComponent({
574
+ name: 'MultiSelectComponent',
575
+ mixins: [ComponentBase],
576
+ props: props$3,
577
+ watch: watch$3,
578
+ emits: emitProbs$3,
579
+ model: { event: 'modelchanged' },
580
+ provide() { return { custom: this.custom }; },
581
+ data() {
655
582
  return {
656
- custom: this.custom
583
+ ej2Instances: new MultiSelect({}),
584
+ propKeys: properties$3,
585
+ models: modelProps$3,
586
+ hasChildDirective: false,
587
+ hasInjectedModules: true,
588
+ tagMapper: {},
589
+ tagNameMapper: {},
590
+ isVue3: !isExecute,
591
+ templateCollection: {},
657
592
  };
658
- }
659
- }) End */
660
- class MultiSelectComponent extends ComponentBase {
661
- constructor() {
662
- super(arguments);
663
- this.propKeys = properties$3;
664
- this.models = modelProps$3;
665
- this.hasChildDirective = false;
666
- this.hasInjectedModules = true;
667
- this.tagMapper = {};
668
- this.tagNameMapper = {};
669
- this.isVue3 = !isExecute;
670
- this.ej2Instances = new MultiSelect({});
593
+ },
594
+ created() {
671
595
  this.ej2Instances._trigger = this.ej2Instances.trigger;
672
596
  this.ej2Instances.trigger = this.trigger;
673
597
  this.bindProperties();
@@ -675,160 +599,144 @@ class MultiSelectComponent extends ComponentBase {
675
599
  this.ej2Instances.setProperties = this.setProperties;
676
600
  this.ej2Instances.clearTemplate = this.clearTemplate;
677
601
  this.updated = this.updated;
678
- }
679
- clearTemplate(templateNames) {
680
- if (!templateNames) {
681
- templateNames = Object.keys(this.templateCollection || {});
602
+ },
603
+ render(createElement) {
604
+ let h = !isExecute ? gh : createElement;
605
+ let slots = null;
606
+ if (!isNullOrUndefined(this.$slots.default)) {
607
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
682
608
  }
683
- if (templateNames.length && this.templateCollection) {
684
- for (let tempName of templateNames) {
685
- let elementCollection = this.templateCollection[tempName];
686
- if (elementCollection && elementCollection.length) {
687
- for (let ele of elementCollection) {
688
- let destroy = getValue('__vue__.$destroy', ele);
689
- if (destroy) {
690
- ele.__vue__.$destroy();
691
- }
692
- if (ele.innerHTML) {
693
- ele.innerHTML = '';
609
+ return h('input', slots);
610
+ },
611
+ methods: {
612
+ clearTemplate(templateNames) {
613
+ if (!templateNames) {
614
+ templateNames = Object.keys(this.templateCollection || {});
615
+ }
616
+ if (templateNames.length && this.templateCollection) {
617
+ for (let tempName of templateNames) {
618
+ let elementCollection = this.templateCollection[tempName];
619
+ if (elementCollection && elementCollection.length) {
620
+ for (let ele of elementCollection) {
621
+ let destroy = getValue('__vue__.$destroy', ele);
622
+ if (destroy) {
623
+ ele.__vue__.$destroy();
624
+ }
625
+ if (ele.innerHTML) {
626
+ ele.innerHTML = '';
627
+ }
694
628
  }
629
+ delete this.templateCollection[tempName];
695
630
  }
696
- delete this.templateCollection[tempName];
697
631
  }
698
632
  }
699
- }
700
- }
701
- setProperties(prop, muteOnChange) {
702
- if (this.isVue3) {
703
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
704
- }
705
- if (this.ej2Instances && this.ej2Instances._setProperties) {
706
- this.ej2Instances._setProperties(prop, muteOnChange);
707
- }
708
- if (prop && this.models && this.models.length) {
709
- Object.keys(prop).map((key) => {
710
- this.models.map((model) => {
711
- if ((key === model) && !(/datasource/i.test(key))) {
712
- if (this.isVue3) {
713
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
633
+ },
634
+ setProperties(prop, muteOnChange) {
635
+ if (this.isVue3) {
636
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
637
+ }
638
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
639
+ this.ej2Instances._setProperties(prop, muteOnChange);
640
+ }
641
+ if (prop && this.models && this.models.length) {
642
+ Object.keys(prop).map((key) => {
643
+ this.models.map((model) => {
644
+ if ((key === model) && !(/datasource/i.test(key))) {
645
+ if (this.isVue3) {
646
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
647
+ }
648
+ else {
649
+ this.$emit('update:' + key, prop[key]);
650
+ this.$emit('modelchanged', prop[key]);
651
+ }
714
652
  }
715
- else {
716
- this.$emit('update:' + key, prop[key]);
717
- this.$emit('modelchanged', prop[key]);
653
+ });
654
+ });
655
+ }
656
+ },
657
+ trigger(eventName, eventProp, successHandler) {
658
+ if (!isExecute) {
659
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
660
+ }
661
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
662
+ let key = this.models.toString().match(/checked|value/) || [];
663
+ let propKey = key[0];
664
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
665
+ if (!isExecute) {
666
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
667
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
668
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
669
+ }
670
+ else {
671
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
672
+ this.$emit('update:' + propKey, eventProp[propKey]);
673
+ this.$emit('modelchanged', eventProp[propKey]);
718
674
  }
719
675
  }
720
- });
721
- });
722
- }
723
- }
724
- trigger(eventName, eventProp, successHandler) {
725
- if (!isExecute) {
726
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
727
- }
728
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
729
- let key = this.models.toString().match(/checked|value/) || [];
730
- let propKey = key[0];
731
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
732
- if (!isExecute) {
733
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
734
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
735
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
736
676
  }
737
- else {
738
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
677
+ }
678
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
679
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
680
+ let propKey = key[0];
681
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
682
+ if (!isExecute) {
683
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
684
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
685
+ }
686
+ else {
739
687
  this.$emit('update:' + propKey, eventProp[propKey]);
740
688
  this.$emit('modelchanged', eventProp[propKey]);
741
689
  }
742
690
  }
743
691
  }
744
- }
745
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
746
- let key = this.models.toString().match(/currentView|selectedDate/) || [];
747
- let propKey = key[0];
748
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
749
- if (!isExecute) {
750
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
751
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
752
- }
753
- else {
754
- this.$emit('update:' + propKey, eventProp[propKey]);
755
- this.$emit('modelchanged', eventProp[propKey]);
756
- }
692
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
693
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
757
694
  }
758
- }
759
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
760
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
761
- }
762
- }
763
- render(createElement) {
764
- let h = !isExecute ? gh : createElement;
765
- let slots = null;
766
- if (!isNullOrUndefined(this.$slots.default)) {
767
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
768
- }
769
- return h('input', slots);
770
- }
771
- custom() {
772
- this.updated();
773
- }
774
- addItem(items, itemIndex) {
775
- return this.ej2Instances.addItem(items, itemIndex);
776
- }
777
- clear() {
778
- return this.ej2Instances.clear();
779
- }
780
- filter(dataSource, query, fields) {
781
- return this.ej2Instances.filter(dataSource, query, fields);
782
- }
783
- focusIn() {
784
- return this.ej2Instances.focusIn();
785
- }
786
- focusOut() {
787
- return this.ej2Instances.focusOut();
788
- }
789
- getDataByValue(value) {
790
- return this.ej2Instances.getDataByValue(value);
791
- }
792
- getItems() {
793
- return this.ej2Instances.getItems();
794
- }
795
- hidePopup(e) {
796
- return this.ej2Instances.hidePopup(e);
797
- }
798
- hideSpinner() {
799
- return this.ej2Instances.hideSpinner();
800
- }
801
- requiredModules() {
802
- return this.ej2Instances.requiredModules();
803
- }
804
- selectAll(state) {
805
- return this.ej2Instances.selectAll(state);
806
- }
807
- showPopup(e) {
808
- return this.ej2Instances.showPopup(e);
809
- }
810
- showSpinner() {
811
- return this.ej2Instances.showSpinner();
812
- }
813
- };
814
- MultiSelectComponent = __decorate$3([
815
- EJComponentDecorator({
816
- props: properties$3,
817
- model: {
818
- event: 'modelchanged'
819
- }
820
- }, isExecute)
821
- /* Start Options({
822
- props: props,
823
- watch: watch,
824
- emits: emitProbs,
825
- provide: function provide() {
826
- return {
827
- custom: this.custom
828
- };
829
- }
830
- }) End */
831
- ], MultiSelectComponent);
695
+ },
696
+ custom() {
697
+ this.updated();
698
+ },
699
+ addItem(items, itemIndex) {
700
+ return this.ej2Instances.addItem(items, itemIndex);
701
+ },
702
+ clear() {
703
+ return this.ej2Instances.clear();
704
+ },
705
+ filter(dataSource, query, fields) {
706
+ return this.ej2Instances.filter(dataSource, query, fields);
707
+ },
708
+ focusIn() {
709
+ return this.ej2Instances.focusIn();
710
+ },
711
+ focusOut() {
712
+ return this.ej2Instances.focusOut();
713
+ },
714
+ getDataByValue(value) {
715
+ return this.ej2Instances.getDataByValue(value);
716
+ },
717
+ getItems() {
718
+ return this.ej2Instances.getItems();
719
+ },
720
+ hidePopup(e) {
721
+ return this.ej2Instances.hidePopup(e);
722
+ },
723
+ hideSpinner() {
724
+ return this.ej2Instances.hideSpinner();
725
+ },
726
+ requiredModules() {
727
+ return this.ej2Instances.requiredModules();
728
+ },
729
+ selectAll(state) {
730
+ return this.ej2Instances.selectAll(state);
731
+ },
732
+ showPopup(e) {
733
+ return this.ej2Instances.showPopup(e);
734
+ },
735
+ showSpinner() {
736
+ return this.ej2Instances.showSpinner();
737
+ },
738
+ }
739
+ });
832
740
  const MultiSelectPlugin = {
833
741
  name: 'ejs-multiselect',
834
742
  install(Vue) {
@@ -836,13 +744,6 @@ const MultiSelectPlugin = {
836
744
  }
837
745
  };
838
746
 
839
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
840
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
841
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
842
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
843
- return c > 3 && r && Object.defineProperty(target, key, r), r;
844
- };
845
- // {{VueImport}}
846
747
  const properties$4 = ['isLazyUpdate', 'plugins', 'actionFailureTemplate', 'allowDragAndDrop', 'allowFiltering', 'cssClass', 'dataSource', 'enablePersistence', 'enableRtl', 'enabled', 'fields', 'filterBarPlaceholder', 'filterType', 'groupTemplate', 'height', 'ignoreAccent', 'ignoreCase', 'itemTemplate', 'locale', 'maximumSelectionLength', 'noRecordsTemplate', 'query', 'scope', 'selectionSettings', 'sortOrder', 'toolbarSettings', 'value', 'zIndex', 'actionBegin', 'actionComplete', 'actionFailure', 'beforeDrop', 'beforeItemRender', 'change', 'created', 'dataBound', 'destroyed', 'drag', 'dragStart', 'drop', 'filtering', 'select'];
847
748
  const modelProps$4 = ['value'];
848
749
  const testProp$4 = getProps({ props: properties$4 });
@@ -859,28 +760,28 @@ for (let props of modelProps$4) {
859
760
  * <ejs-listbox :dataSource='data'></ejs-listbox>
860
761
  * ```
861
762
  */
862
- let ListBoxComponent =
863
- /* Start Options({
864
- props: props,
865
- watch: watch,
866
- emits: emitProbs,
867
- provide: function provide() {
763
+ let ListBoxComponent = vueDefineComponent({
764
+ name: 'ListBoxComponent',
765
+ mixins: [ComponentBase],
766
+ props: props$4,
767
+ watch: watch$4,
768
+ emits: emitProbs$4,
769
+ model: { event: 'modelchanged' },
770
+ provide() { return { custom: this.custom }; },
771
+ data() {
868
772
  return {
869
- custom: this.custom
773
+ ej2Instances: new ListBox({}),
774
+ propKeys: properties$4,
775
+ models: modelProps$4,
776
+ hasChildDirective: false,
777
+ hasInjectedModules: true,
778
+ tagMapper: {},
779
+ tagNameMapper: {},
780
+ isVue3: !isExecute,
781
+ templateCollection: {},
870
782
  };
871
- }
872
- }) End */
873
- class ListBoxComponent extends ComponentBase {
874
- constructor() {
875
- super(arguments);
876
- this.propKeys = properties$4;
877
- this.models = modelProps$4;
878
- this.hasChildDirective = false;
879
- this.hasInjectedModules = true;
880
- this.tagMapper = {};
881
- this.tagNameMapper = {};
882
- this.isVue3 = !isExecute;
883
- this.ej2Instances = new ListBox({});
783
+ },
784
+ created() {
884
785
  this.ej2Instances._trigger = this.ej2Instances.trigger;
885
786
  this.ej2Instances.trigger = this.trigger;
886
787
  this.bindProperties();
@@ -888,178 +789,162 @@ class ListBoxComponent extends ComponentBase {
888
789
  this.ej2Instances.setProperties = this.setProperties;
889
790
  this.ej2Instances.clearTemplate = this.clearTemplate;
890
791
  this.updated = this.updated;
891
- }
892
- clearTemplate(templateNames) {
893
- if (!templateNames) {
894
- templateNames = Object.keys(this.templateCollection || {});
792
+ },
793
+ render(createElement) {
794
+ let h = !isExecute ? gh : createElement;
795
+ let slots = null;
796
+ if (!isNullOrUndefined(this.$slots.default)) {
797
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
895
798
  }
896
- if (templateNames.length && this.templateCollection) {
897
- for (let tempName of templateNames) {
898
- let elementCollection = this.templateCollection[tempName];
899
- if (elementCollection && elementCollection.length) {
900
- for (let ele of elementCollection) {
901
- let destroy = getValue('__vue__.$destroy', ele);
902
- if (destroy) {
903
- ele.__vue__.$destroy();
904
- }
905
- if (ele.innerHTML) {
906
- ele.innerHTML = '';
799
+ return h('input', slots);
800
+ },
801
+ methods: {
802
+ clearTemplate(templateNames) {
803
+ if (!templateNames) {
804
+ templateNames = Object.keys(this.templateCollection || {});
805
+ }
806
+ if (templateNames.length && this.templateCollection) {
807
+ for (let tempName of templateNames) {
808
+ let elementCollection = this.templateCollection[tempName];
809
+ if (elementCollection && elementCollection.length) {
810
+ for (let ele of elementCollection) {
811
+ let destroy = getValue('__vue__.$destroy', ele);
812
+ if (destroy) {
813
+ ele.__vue__.$destroy();
814
+ }
815
+ if (ele.innerHTML) {
816
+ ele.innerHTML = '';
817
+ }
907
818
  }
819
+ delete this.templateCollection[tempName];
908
820
  }
909
- delete this.templateCollection[tempName];
910
821
  }
911
822
  }
912
- }
913
- }
914
- setProperties(prop, muteOnChange) {
915
- if (this.isVue3) {
916
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
917
- }
918
- if (this.ej2Instances && this.ej2Instances._setProperties) {
919
- this.ej2Instances._setProperties(prop, muteOnChange);
920
- }
921
- if (prop && this.models && this.models.length) {
922
- Object.keys(prop).map((key) => {
923
- this.models.map((model) => {
924
- if ((key === model) && !(/datasource/i.test(key))) {
925
- if (this.isVue3) {
926
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
823
+ },
824
+ setProperties(prop, muteOnChange) {
825
+ if (this.isVue3) {
826
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
827
+ }
828
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
829
+ this.ej2Instances._setProperties(prop, muteOnChange);
830
+ }
831
+ if (prop && this.models && this.models.length) {
832
+ Object.keys(prop).map((key) => {
833
+ this.models.map((model) => {
834
+ if ((key === model) && !(/datasource/i.test(key))) {
835
+ if (this.isVue3) {
836
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
837
+ }
838
+ else {
839
+ this.$emit('update:' + key, prop[key]);
840
+ this.$emit('modelchanged', prop[key]);
841
+ }
927
842
  }
928
- else {
929
- this.$emit('update:' + key, prop[key]);
930
- this.$emit('modelchanged', prop[key]);
843
+ });
844
+ });
845
+ }
846
+ },
847
+ trigger(eventName, eventProp, successHandler) {
848
+ if (!isExecute) {
849
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
850
+ }
851
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
852
+ let key = this.models.toString().match(/checked|value/) || [];
853
+ let propKey = key[0];
854
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
855
+ if (!isExecute) {
856
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
857
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
858
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
859
+ }
860
+ else {
861
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
862
+ this.$emit('update:' + propKey, eventProp[propKey]);
863
+ this.$emit('modelchanged', eventProp[propKey]);
931
864
  }
932
865
  }
933
- });
934
- });
935
- }
936
- }
937
- trigger(eventName, eventProp, successHandler) {
938
- if (!isExecute) {
939
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
940
- }
941
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
942
- let key = this.models.toString().match(/checked|value/) || [];
943
- let propKey = key[0];
944
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
945
- if (!isExecute) {
946
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
947
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
948
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
949
866
  }
950
- else {
951
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
867
+ }
868
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
869
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
870
+ let propKey = key[0];
871
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
872
+ if (!isExecute) {
873
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
874
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
875
+ }
876
+ else {
952
877
  this.$emit('update:' + propKey, eventProp[propKey]);
953
878
  this.$emit('modelchanged', eventProp[propKey]);
954
879
  }
955
880
  }
956
881
  }
957
- }
958
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
959
- let key = this.models.toString().match(/currentView|selectedDate/) || [];
960
- let propKey = key[0];
961
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
962
- if (!isExecute) {
963
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
964
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
965
- }
966
- else {
967
- this.$emit('update:' + propKey, eventProp[propKey]);
968
- this.$emit('modelchanged', eventProp[propKey]);
969
- }
882
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
883
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
970
884
  }
971
- }
972
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
973
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
974
- }
975
- }
976
- render(createElement) {
977
- let h = !isExecute ? gh : createElement;
978
- let slots = null;
979
- if (!isNullOrUndefined(this.$slots.default)) {
980
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
981
- }
982
- return h('input', slots);
983
- }
984
- custom() {
985
- this.updated();
986
- }
987
- addItems(items, itemIndex) {
988
- return this.ej2Instances.addItems(items, itemIndex);
989
- }
990
- enableItems(items, enable, isValue) {
991
- return this.ej2Instances.enableItems(items, enable, isValue);
992
- }
993
- filter(dataSource, query, fields) {
994
- return this.ej2Instances.filter(dataSource, query, fields);
995
- }
996
- getDataByValue(value) {
997
- return this.ej2Instances.getDataByValue(value);
998
- }
999
- getDataByValues(value) {
1000
- return this.ej2Instances.getDataByValues(value);
1001
- }
1002
- getDataList() {
1003
- return this.ej2Instances.getDataList();
1004
- }
1005
- getItems() {
1006
- return this.ej2Instances.getItems();
1007
- }
1008
- getSortedList() {
1009
- return this.ej2Instances.getSortedList();
1010
- }
1011
- hideSpinner() {
1012
- return this.ej2Instances.hideSpinner();
1013
- }
1014
- moveAllTo(targetId, index) {
1015
- return this.ej2Instances.moveAllTo(targetId, index);
1016
- }
1017
- moveDown(value) {
1018
- return this.ej2Instances.moveDown(value);
1019
- }
1020
- moveTo(value, index, targetId) {
1021
- return this.ej2Instances.moveTo(value, index, targetId);
1022
- }
1023
- moveUp(value) {
1024
- return this.ej2Instances.moveUp(value);
1025
- }
1026
- removeItem(items, itemIndex) {
1027
- return this.ej2Instances.removeItem(items, itemIndex);
1028
- }
1029
- removeItems(items, itemIndex) {
1030
- return this.ej2Instances.removeItems(items, itemIndex);
1031
- }
1032
- requiredModules() {
1033
- return this.ej2Instances.requiredModules();
1034
- }
1035
- selectAll(state) {
1036
- return this.ej2Instances.selectAll(state);
1037
- }
1038
- selectItems(items, state, isValue) {
1039
- return this.ej2Instances.selectItems(items, state, isValue);
1040
- }
1041
- showSpinner() {
1042
- return this.ej2Instances.showSpinner();
1043
- }
1044
- };
1045
- ListBoxComponent = __decorate$4([
1046
- EJComponentDecorator({
1047
- props: properties$4,
1048
- model: {
1049
- event: 'modelchanged'
1050
- }
1051
- }, isExecute)
1052
- /* Start Options({
1053
- props: props,
1054
- watch: watch,
1055
- emits: emitProbs,
1056
- provide: function provide() {
1057
- return {
1058
- custom: this.custom
1059
- };
1060
- }
1061
- }) End */
1062
- ], ListBoxComponent);
885
+ },
886
+ custom() {
887
+ this.updated();
888
+ },
889
+ addItems(items, itemIndex) {
890
+ return this.ej2Instances.addItems(items, itemIndex);
891
+ },
892
+ enableItems(items, enable, isValue) {
893
+ return this.ej2Instances.enableItems(items, enable, isValue);
894
+ },
895
+ filter(dataSource, query, fields) {
896
+ return this.ej2Instances.filter(dataSource, query, fields);
897
+ },
898
+ getDataByValue(value) {
899
+ return this.ej2Instances.getDataByValue(value);
900
+ },
901
+ getDataByValues(value) {
902
+ return this.ej2Instances.getDataByValues(value);
903
+ },
904
+ getDataList() {
905
+ return this.ej2Instances.getDataList();
906
+ },
907
+ getItems() {
908
+ return this.ej2Instances.getItems();
909
+ },
910
+ getSortedList() {
911
+ return this.ej2Instances.getSortedList();
912
+ },
913
+ hideSpinner() {
914
+ return this.ej2Instances.hideSpinner();
915
+ },
916
+ moveAllTo(targetId, index) {
917
+ return this.ej2Instances.moveAllTo(targetId, index);
918
+ },
919
+ moveDown(value) {
920
+ return this.ej2Instances.moveDown(value);
921
+ },
922
+ moveTo(value, index, targetId) {
923
+ return this.ej2Instances.moveTo(value, index, targetId);
924
+ },
925
+ moveUp(value) {
926
+ return this.ej2Instances.moveUp(value);
927
+ },
928
+ removeItem(items, itemIndex) {
929
+ return this.ej2Instances.removeItem(items, itemIndex);
930
+ },
931
+ removeItems(items, itemIndex) {
932
+ return this.ej2Instances.removeItems(items, itemIndex);
933
+ },
934
+ requiredModules() {
935
+ return this.ej2Instances.requiredModules();
936
+ },
937
+ selectAll(state) {
938
+ return this.ej2Instances.selectAll(state);
939
+ },
940
+ selectItems(items, state, isValue) {
941
+ return this.ej2Instances.selectItems(items, state, isValue);
942
+ },
943
+ showSpinner() {
944
+ return this.ej2Instances.showSpinner();
945
+ },
946
+ }
947
+ });
1063
948
  const ListBoxPlugin = {
1064
949
  name: 'ejs-listbox',
1065
950
  install(Vue) {
@@ -1067,13 +952,6 @@ const ListBoxPlugin = {
1067
952
  }
1068
953
  };
1069
954
 
1070
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1071
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1072
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1073
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1074
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1075
- };
1076
- // {{VueImport}}
1077
955
  const properties$5 = ['isLazyUpdate', 'plugins', 'actionFailureTemplate', 'allowFiltering', 'allowMultiSelection', 'changeOnBlur', 'cssClass', 'customTemplate', 'delimiterChar', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enabled', 'fields', 'filterBarPlaceholder', 'filterType', 'floatLabelType', 'footerTemplate', 'headerTemplate', 'htmlAttributes', 'ignoreAccent', 'ignoreCase', 'itemTemplate', 'locale', 'mode', 'noRecordsTemplate', 'placeholder', 'popupHeight', 'popupWidth', 'readonly', 'selectAllText', 'showCheckBox', 'showClearButton', 'showDropDownIcon', 'showSelectAll', 'sortOrder', 'text', 'treeSettings', 'unSelectAllText', 'value', 'width', 'wrapText', 'zIndex', 'actionFailure', 'beforeOpen', 'blur', 'change', 'close', 'created', 'dataBound', 'destroyed', 'filtering', 'focus', 'keyPress', 'open', 'select'];
1078
956
  const modelProps$5 = ['value'];
1079
957
  const testProp$5 = getProps({ props: properties$5 });
@@ -1090,28 +968,28 @@ for (let props of modelProps$5) {
1090
968
  * <ejs-dropdowntree></ejs-dropdowntree>
1091
969
  * ```
1092
970
  */
1093
- let DropDownTreeComponent =
1094
- /* Start Options({
1095
- props: props,
1096
- watch: watch,
1097
- emits: emitProbs,
1098
- provide: function provide() {
971
+ let DropDownTreeComponent = vueDefineComponent({
972
+ name: 'DropDownTreeComponent',
973
+ mixins: [ComponentBase],
974
+ props: props$5,
975
+ watch: watch$5,
976
+ emits: emitProbs$5,
977
+ model: { event: 'modelchanged' },
978
+ provide() { return { custom: this.custom }; },
979
+ data() {
1099
980
  return {
1100
- custom: this.custom
981
+ ej2Instances: new DropDownTree({}),
982
+ propKeys: properties$5,
983
+ models: modelProps$5,
984
+ hasChildDirective: false,
985
+ hasInjectedModules: false,
986
+ tagMapper: {},
987
+ tagNameMapper: {},
988
+ isVue3: !isExecute,
989
+ templateCollection: {},
1101
990
  };
1102
- }
1103
- }) End */
1104
- class DropDownTreeComponent extends ComponentBase {
1105
- constructor() {
1106
- super(arguments);
1107
- this.propKeys = properties$5;
1108
- this.models = modelProps$5;
1109
- this.hasChildDirective = false;
1110
- this.hasInjectedModules = false;
1111
- this.tagMapper = {};
1112
- this.tagNameMapper = {};
1113
- this.isVue3 = !isExecute;
1114
- this.ej2Instances = new DropDownTree({});
991
+ },
992
+ created() {
1115
993
  this.ej2Instances._trigger = this.ej2Instances.trigger;
1116
994
  this.ej2Instances.trigger = this.trigger;
1117
995
  this.bindProperties();
@@ -1119,142 +997,126 @@ class DropDownTreeComponent extends ComponentBase {
1119
997
  this.ej2Instances.setProperties = this.setProperties;
1120
998
  this.ej2Instances.clearTemplate = this.clearTemplate;
1121
999
  this.updated = this.updated;
1122
- }
1123
- clearTemplate(templateNames) {
1124
- if (!templateNames) {
1125
- templateNames = Object.keys(this.templateCollection || {});
1000
+ },
1001
+ render(createElement) {
1002
+ let h = !isExecute ? gh : createElement;
1003
+ let slots = null;
1004
+ if (!isNullOrUndefined(this.$slots.default)) {
1005
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
1126
1006
  }
1127
- if (templateNames.length && this.templateCollection) {
1128
- for (let tempName of templateNames) {
1129
- let elementCollection = this.templateCollection[tempName];
1130
- if (elementCollection && elementCollection.length) {
1131
- for (let ele of elementCollection) {
1132
- let destroy = getValue('__vue__.$destroy', ele);
1133
- if (destroy) {
1134
- ele.__vue__.$destroy();
1135
- }
1136
- if (ele.innerHTML) {
1137
- ele.innerHTML = '';
1007
+ return h('input', slots);
1008
+ },
1009
+ methods: {
1010
+ clearTemplate(templateNames) {
1011
+ if (!templateNames) {
1012
+ templateNames = Object.keys(this.templateCollection || {});
1013
+ }
1014
+ if (templateNames.length && this.templateCollection) {
1015
+ for (let tempName of templateNames) {
1016
+ let elementCollection = this.templateCollection[tempName];
1017
+ if (elementCollection && elementCollection.length) {
1018
+ for (let ele of elementCollection) {
1019
+ let destroy = getValue('__vue__.$destroy', ele);
1020
+ if (destroy) {
1021
+ ele.__vue__.$destroy();
1022
+ }
1023
+ if (ele.innerHTML) {
1024
+ ele.innerHTML = '';
1025
+ }
1138
1026
  }
1027
+ delete this.templateCollection[tempName];
1139
1028
  }
1140
- delete this.templateCollection[tempName];
1141
1029
  }
1142
1030
  }
1143
- }
1144
- }
1145
- setProperties(prop, muteOnChange) {
1146
- if (this.isVue3) {
1147
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1148
- }
1149
- if (this.ej2Instances && this.ej2Instances._setProperties) {
1150
- this.ej2Instances._setProperties(prop, muteOnChange);
1151
- }
1152
- if (prop && this.models && this.models.length) {
1153
- Object.keys(prop).map((key) => {
1154
- this.models.map((model) => {
1155
- if ((key === model) && !(/datasource/i.test(key))) {
1156
- if (this.isVue3) {
1157
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1031
+ },
1032
+ setProperties(prop, muteOnChange) {
1033
+ if (this.isVue3) {
1034
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1035
+ }
1036
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
1037
+ this.ej2Instances._setProperties(prop, muteOnChange);
1038
+ }
1039
+ if (prop && this.models && this.models.length) {
1040
+ Object.keys(prop).map((key) => {
1041
+ this.models.map((model) => {
1042
+ if ((key === model) && !(/datasource/i.test(key))) {
1043
+ if (this.isVue3) {
1044
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1045
+ }
1046
+ else {
1047
+ this.$emit('update:' + key, prop[key]);
1048
+ this.$emit('modelchanged', prop[key]);
1049
+ }
1158
1050
  }
1159
- else {
1160
- this.$emit('update:' + key, prop[key]);
1161
- this.$emit('modelchanged', prop[key]);
1051
+ });
1052
+ });
1053
+ }
1054
+ },
1055
+ trigger(eventName, eventProp, successHandler) {
1056
+ if (!isExecute) {
1057
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1058
+ }
1059
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
1060
+ let key = this.models.toString().match(/checked|value/) || [];
1061
+ let propKey = key[0];
1062
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
1063
+ if (!isExecute) {
1064
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1065
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1066
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
1067
+ }
1068
+ else {
1069
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
1070
+ this.$emit('update:' + propKey, eventProp[propKey]);
1071
+ this.$emit('modelchanged', eventProp[propKey]);
1162
1072
  }
1163
1073
  }
1164
- });
1165
- });
1166
- }
1167
- }
1168
- trigger(eventName, eventProp, successHandler) {
1169
- if (!isExecute) {
1170
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1171
- }
1172
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
1173
- let key = this.models.toString().match(/checked|value/) || [];
1174
- let propKey = key[0];
1175
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
1176
- if (!isExecute) {
1177
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1178
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1179
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
1180
1074
  }
1181
- else {
1182
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
1075
+ }
1076
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
1077
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
1078
+ let propKey = key[0];
1079
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
1080
+ if (!isExecute) {
1081
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1082
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1083
+ }
1084
+ else {
1183
1085
  this.$emit('update:' + propKey, eventProp[propKey]);
1184
1086
  this.$emit('modelchanged', eventProp[propKey]);
1185
1087
  }
1186
1088
  }
1187
1089
  }
1188
- }
1189
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
1190
- let key = this.models.toString().match(/currentView|selectedDate/) || [];
1191
- let propKey = key[0];
1192
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
1193
- if (!isExecute) {
1194
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1195
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1196
- }
1197
- else {
1198
- this.$emit('update:' + propKey, eventProp[propKey]);
1199
- this.$emit('modelchanged', eventProp[propKey]);
1200
- }
1090
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
1091
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
1201
1092
  }
1202
- }
1203
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
1204
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
1205
- }
1206
- }
1207
- render(createElement) {
1208
- let h = !isExecute ? gh : createElement;
1209
- let slots = null;
1210
- if (!isNullOrUndefined(this.$slots.default)) {
1211
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
1212
- }
1213
- return h('input', slots);
1214
- }
1215
- custom() {
1216
- this.updated();
1217
- }
1218
- clear() {
1219
- return this.ej2Instances.clear();
1220
- }
1221
- ensureVisible(item) {
1222
- return this.ej2Instances.ensureVisible(item);
1223
- }
1224
- getData(item) {
1225
- return this.ej2Instances.getData(item);
1226
- }
1227
- getLocaleName() {
1228
- return this.ej2Instances.getLocaleName();
1229
- }
1230
- hidePopup() {
1231
- return this.ej2Instances.hidePopup();
1232
- }
1233
- selectAll(state) {
1234
- return this.ej2Instances.selectAll(state);
1235
- }
1236
- showPopup() {
1237
- return this.ej2Instances.showPopup();
1238
- }
1239
- };
1240
- DropDownTreeComponent = __decorate$5([
1241
- EJComponentDecorator({
1242
- props: properties$5,
1243
- model: {
1244
- event: 'modelchanged'
1245
- }
1246
- }, isExecute)
1247
- /* Start Options({
1248
- props: props,
1249
- watch: watch,
1250
- emits: emitProbs,
1251
- provide: function provide() {
1252
- return {
1253
- custom: this.custom
1254
- };
1255
- }
1256
- }) End */
1257
- ], DropDownTreeComponent);
1093
+ },
1094
+ custom() {
1095
+ this.updated();
1096
+ },
1097
+ clear() {
1098
+ return this.ej2Instances.clear();
1099
+ },
1100
+ ensureVisible(item) {
1101
+ return this.ej2Instances.ensureVisible(item);
1102
+ },
1103
+ getData(item) {
1104
+ return this.ej2Instances.getData(item);
1105
+ },
1106
+ getLocaleName() {
1107
+ return this.ej2Instances.getLocaleName();
1108
+ },
1109
+ hidePopup() {
1110
+ return this.ej2Instances.hidePopup();
1111
+ },
1112
+ selectAll(state) {
1113
+ return this.ej2Instances.selectAll(state);
1114
+ },
1115
+ showPopup() {
1116
+ return this.ej2Instances.showPopup();
1117
+ },
1118
+ }
1119
+ });
1258
1120
  const DropDownTreePlugin = {
1259
1121
  name: 'ejs-dropdowntree',
1260
1122
  install(Vue) {
@@ -1262,13 +1124,6 @@ const DropDownTreePlugin = {
1262
1124
  }
1263
1125
  };
1264
1126
 
1265
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1266
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1267
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1268
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1269
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1270
- };
1271
- // {{VueImport}}
1272
1127
  const properties$6 = ['isLazyUpdate', 'plugins', 'allowSpaces', 'cssClass', 'dataSource', 'displayTemplate', 'fields', 'filterType', 'highlight', 'ignoreCase', 'itemTemplate', 'locale', 'mentionChar', 'minLength', 'noRecordsTemplate', 'popupHeight', 'popupWidth', 'query', 'showMentionChar', 'sortOrder', 'spinnerTemplate', 'suffixText', 'suggestionCount', 'target', 'actionBegin', 'actionComplete', 'actionFailure', 'beforeOpen', 'change', 'closed', 'created', 'destroyed', 'filtering', 'opened', 'select'];
1273
1128
  const modelProps$6 = [];
1274
1129
  const testProp$6 = getProps({ props: properties$6 });
@@ -1285,79 +1140,33 @@ for (let props of modelProps$6) {
1285
1140
  * <ejs-mention :dataSource='data'></ejs-mention>
1286
1141
  * ```
1287
1142
  */
1288
- let MentionComponent =
1289
- /* Start Options({
1290
- props: props,
1291
- watch: watch,
1292
- emits: emitProbs,
1293
- provide: function provide() {
1143
+ let MentionComponent = vueDefineComponent({
1144
+ name: 'MentionComponent',
1145
+ mixins: [ComponentBase],
1146
+ props: props$6,
1147
+ watch: watch$6,
1148
+ emits: emitProbs$6,
1149
+ provide() { return { custom: this.custom }; },
1150
+ data() {
1294
1151
  return {
1295
- custom: this.custom
1152
+ ej2Instances: new Mention({}),
1153
+ propKeys: properties$6,
1154
+ models: modelProps$6,
1155
+ hasChildDirective: false,
1156
+ hasInjectedModules: false,
1157
+ tagMapper: {},
1158
+ tagNameMapper: {},
1159
+ isVue3: !isExecute,
1160
+ templateCollection: {},
1296
1161
  };
1297
- }
1298
- }) End */
1299
- class MentionComponent extends ComponentBase {
1300
- constructor() {
1301
- super(arguments);
1302
- this.propKeys = properties$6;
1303
- this.models = modelProps$6;
1304
- this.hasChildDirective = false;
1305
- this.hasInjectedModules = false;
1306
- this.tagMapper = {};
1307
- this.tagNameMapper = {};
1308
- this.isVue3 = !isExecute;
1309
- this.ej2Instances = new Mention({});
1162
+ },
1163
+ created() {
1310
1164
  this.bindProperties();
1311
1165
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
1312
1166
  this.ej2Instances.setProperties = this.setProperties;
1313
1167
  this.ej2Instances.clearTemplate = this.clearTemplate;
1314
1168
  this.updated = this.updated;
1315
- }
1316
- clearTemplate(templateNames) {
1317
- if (!templateNames) {
1318
- templateNames = Object.keys(this.templateCollection || {});
1319
- }
1320
- if (templateNames.length && this.templateCollection) {
1321
- for (let tempName of templateNames) {
1322
- let elementCollection = this.templateCollection[tempName];
1323
- if (elementCollection && elementCollection.length) {
1324
- for (let ele of elementCollection) {
1325
- let destroy = getValue('__vue__.$destroy', ele);
1326
- if (destroy) {
1327
- ele.__vue__.$destroy();
1328
- }
1329
- if (ele.innerHTML) {
1330
- ele.innerHTML = '';
1331
- }
1332
- }
1333
- delete this.templateCollection[tempName];
1334
- }
1335
- }
1336
- }
1337
- }
1338
- setProperties(prop, muteOnChange) {
1339
- if (this.isVue3) {
1340
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1341
- }
1342
- if (this.ej2Instances && this.ej2Instances._setProperties) {
1343
- this.ej2Instances._setProperties(prop, muteOnChange);
1344
- }
1345
- if (prop && this.models && this.models.length) {
1346
- Object.keys(prop).map((key) => {
1347
- this.models.map((model) => {
1348
- if ((key === model) && !(/datasource/i.test(key))) {
1349
- if (this.isVue3) {
1350
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1351
- }
1352
- else {
1353
- this.$emit('update:' + key, prop[key]);
1354
- this.$emit('modelchanged', prop[key]);
1355
- }
1356
- }
1357
- });
1358
- });
1359
- }
1360
- }
1169
+ },
1361
1170
  render(createElement) {
1362
1171
  let h = !isExecute ? gh : createElement;
1363
1172
  let slots = null;
@@ -1365,44 +1174,76 @@ class MentionComponent extends ComponentBase {
1365
1174
  slots = !isExecute ? this.$slots.default() : this.$slots.default;
1366
1175
  }
1367
1176
  return h('div', slots);
1368
- }
1369
- custom() {
1370
- this.updated();
1371
- }
1372
- addItem(items, itemIndex) {
1373
- return this.ej2Instances.addItem(items, itemIndex);
1374
- }
1375
- getDataByValue(value) {
1376
- return this.ej2Instances.getDataByValue(value);
1377
- }
1378
- getItems() {
1379
- return this.ej2Instances.getItems();
1380
- }
1381
- hidePopup(e) {
1382
- return this.ej2Instances.hidePopup(e);
1383
- }
1384
- search(text, positionX, positionY) {
1385
- return this.ej2Instances.search(text, positionX, positionY);
1386
- }
1387
- showPopup() {
1388
- return this.ej2Instances.showPopup();
1389
- }
1390
- };
1391
- MentionComponent = __decorate$6([
1392
- EJComponentDecorator({
1393
- props: properties$6
1394
- }, isExecute)
1395
- /* Start Options({
1396
- props: props,
1397
- watch: watch,
1398
- emits: emitProbs,
1399
- provide: function provide() {
1400
- return {
1401
- custom: this.custom
1402
- };
1403
- }
1404
- }) End */
1405
- ], MentionComponent);
1177
+ },
1178
+ methods: {
1179
+ clearTemplate(templateNames) {
1180
+ if (!templateNames) {
1181
+ templateNames = Object.keys(this.templateCollection || {});
1182
+ }
1183
+ if (templateNames.length && this.templateCollection) {
1184
+ for (let tempName of templateNames) {
1185
+ let elementCollection = this.templateCollection[tempName];
1186
+ if (elementCollection && elementCollection.length) {
1187
+ for (let ele of elementCollection) {
1188
+ let destroy = getValue('__vue__.$destroy', ele);
1189
+ if (destroy) {
1190
+ ele.__vue__.$destroy();
1191
+ }
1192
+ if (ele.innerHTML) {
1193
+ ele.innerHTML = '';
1194
+ }
1195
+ }
1196
+ delete this.templateCollection[tempName];
1197
+ }
1198
+ }
1199
+ }
1200
+ },
1201
+ setProperties(prop, muteOnChange) {
1202
+ if (this.isVue3) {
1203
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1204
+ }
1205
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
1206
+ this.ej2Instances._setProperties(prop, muteOnChange);
1207
+ }
1208
+ if (prop && this.models && this.models.length) {
1209
+ Object.keys(prop).map((key) => {
1210
+ this.models.map((model) => {
1211
+ if ((key === model) && !(/datasource/i.test(key))) {
1212
+ if (this.isVue3) {
1213
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1214
+ }
1215
+ else {
1216
+ this.$emit('update:' + key, prop[key]);
1217
+ this.$emit('modelchanged', prop[key]);
1218
+ }
1219
+ }
1220
+ });
1221
+ });
1222
+ }
1223
+ },
1224
+ custom() {
1225
+ this.updated();
1226
+ },
1227
+ addItem(items, itemIndex) {
1228
+ return this.ej2Instances.addItem(items, itemIndex);
1229
+ },
1230
+ getDataByValue(value) {
1231
+ return this.ej2Instances.getDataByValue(value);
1232
+ },
1233
+ getItems() {
1234
+ return this.ej2Instances.getItems();
1235
+ },
1236
+ hidePopup(e) {
1237
+ return this.ej2Instances.hidePopup(e);
1238
+ },
1239
+ search(text, positionX, positionY) {
1240
+ return this.ej2Instances.search(text, positionX, positionY);
1241
+ },
1242
+ showPopup() {
1243
+ return this.ej2Instances.showPopup();
1244
+ },
1245
+ }
1246
+ });
1406
1247
  const MentionPlugin = {
1407
1248
  name: 'ejs-mention',
1408
1249
  install(Vue) {