@syncfusion/ej2-vue-inputs 20.4.52 → 21.1.35

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 (67) hide show
  1. package/CHANGELOG.md +0 -29
  2. package/README.md +184 -112
  3. package/dist/ej2-vue-inputs.umd.min.js +2 -2
  4. package/dist/ej2-vue-inputs.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-vue-inputs.es2015.js +933 -1148
  6. package/dist/es6/ej2-vue-inputs.es2015.js.map +1 -1
  7. package/dist/es6/ej2-vue-inputs.es5.js +1033 -1300
  8. package/dist/es6/ej2-vue-inputs.es5.js.map +1 -1
  9. package/dist/global/ej2-vue-inputs.min.js +2 -2
  10. package/package.json +9 -9
  11. package/src/color-picker/colorpicker.component.d.ts +3 -28
  12. package/src/color-picker/colorpicker.component.js +128 -159
  13. package/src/maskedtextbox/maskedtextbox.component.d.ts +3 -28
  14. package/src/maskedtextbox/maskedtextbox.component.js +128 -159
  15. package/src/numerictextbox/numerictextbox.component.d.ts +3 -30
  16. package/src/numerictextbox/numerictextbox.component.js +134 -165
  17. package/src/rating/rating.component.d.ts +3 -26
  18. package/src/rating/rating.component.js +122 -153
  19. package/src/signature/signature.component.d.ts +3 -34
  20. package/src/signature/signature.component.js +119 -148
  21. package/src/slider/slider.component.d.ts +3 -27
  22. package/src/slider/slider.component.js +125 -156
  23. package/src/textbox/textbox.component.d.ts +3 -30
  24. package/src/textbox/textbox.component.js +134 -165
  25. package/src/uploader/files.directive.d.ts +2 -12
  26. package/src/uploader/files.directive.js +22 -71
  27. package/src/uploader/uploader.component.d.ts +3 -34
  28. package/src/uploader/uploader.component.js +119 -148
  29. package/styles/bootstrap-dark.css +6 -0
  30. package/styles/bootstrap.css +6 -0
  31. package/styles/bootstrap4.css +6 -0
  32. package/styles/bootstrap5-dark.css +10 -4
  33. package/styles/bootstrap5.css +10 -4
  34. package/styles/color-picker/bootstrap-dark.css +6 -0
  35. package/styles/color-picker/bootstrap.css +6 -0
  36. package/styles/color-picker/bootstrap4.css +6 -0
  37. package/styles/color-picker/bootstrap5-dark.css +6 -0
  38. package/styles/color-picker/bootstrap5.css +6 -0
  39. package/styles/color-picker/fabric-dark.css +6 -0
  40. package/styles/color-picker/fabric.css +6 -0
  41. package/styles/color-picker/fluent-dark.css +6 -0
  42. package/styles/color-picker/fluent.css +6 -0
  43. package/styles/color-picker/highcontrast-light.css +6 -0
  44. package/styles/color-picker/highcontrast.css +6 -0
  45. package/styles/color-picker/material-dark.css +6 -0
  46. package/styles/color-picker/material.css +6 -0
  47. package/styles/color-picker/tailwind-dark.css +6 -0
  48. package/styles/color-picker/tailwind.css +6 -0
  49. package/styles/fabric-dark.css +6 -0
  50. package/styles/fabric.css +6 -0
  51. package/styles/fluent-dark.css +6 -0
  52. package/styles/fluent.css +6 -0
  53. package/styles/highcontrast-light.css +6 -0
  54. package/styles/highcontrast.css +6 -0
  55. package/styles/input/material-dark.css +1 -1
  56. package/styles/input/material.css +1 -1
  57. package/styles/material-dark.css +7 -5
  58. package/styles/material.css +7 -1
  59. package/styles/rating/tailwind-dark.css +1 -1
  60. package/styles/rating/tailwind.css +1 -1
  61. package/styles/tailwind-dark.css +8 -2
  62. package/styles/tailwind.css +8 -2
  63. package/styles/uploader/bootstrap5-dark.css +4 -4
  64. package/styles/uploader/bootstrap5.css +4 -4
  65. package/styles/uploader/material-dark.css +0 -4
  66. package/styles/uploader/tailwind-dark.css +1 -1
  67. package/styles/uploader/tailwind.css +1 -1
@@ -1,16 +1,7 @@
1
1
  import { ColorPicker, MaskedTextBox, NumericTextBox, Rating, Signature, Slider, TextBox, Uploader } from '@syncfusion/ej2-inputs';
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, allVue, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
4
- import { Vue } from 'vue-class-component';
5
- import Vue$1 from 'vue';
6
4
 
7
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10
- 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;
11
- return c > 3 && r && Object.defineProperty(target, key, r), r;
12
- };
13
- // {{VueImport}}
14
5
  const properties = ['isLazyUpdate', 'plugins', 'autocomplete', 'cssClass', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'multiline', 'placeholder', 'readonly', 'showClearButton', 'type', 'value', 'width', 'blur', 'change', 'created', 'destroyed', 'focus', 'input'];
15
6
  const modelProps = ['value'];
16
7
  const testProp = getProps({ props: properties });
@@ -27,28 +18,28 @@ for (let props of modelProps) {
27
18
  * <ejs-textbox v-bind:value='value'></ejs-textbox>
28
19
  * ```
29
20
  */
30
- let TextBoxComponent =
31
- /* Start Options({
21
+ let TextBoxComponent = vueDefineComponent({
22
+ name: 'TextBoxComponent',
23
+ mixins: [ComponentBase],
32
24
  props: props,
33
25
  watch: watch,
34
26
  emits: emitProbs,
35
- provide: function provide() {
27
+ model: { event: 'modelchanged' },
28
+ provide() { return { custom: this.custom }; },
29
+ data() {
36
30
  return {
37
- custom: this.custom
31
+ ej2Instances: new TextBox({}),
32
+ propKeys: properties,
33
+ models: modelProps,
34
+ hasChildDirective: false,
35
+ hasInjectedModules: false,
36
+ tagMapper: {},
37
+ tagNameMapper: {},
38
+ isVue3: !isExecute,
39
+ templateCollection: {},
38
40
  };
39
- }
40
- }) End */
41
- class TextBoxComponent extends ComponentBase {
42
- constructor() {
43
- super(arguments);
44
- this.propKeys = properties;
45
- this.models = modelProps;
46
- this.hasChildDirective = false;
47
- this.hasInjectedModules = false;
48
- this.tagMapper = {};
49
- this.tagNameMapper = {};
50
- this.isVue3 = !isExecute;
51
- this.ej2Instances = new TextBox({});
41
+ },
42
+ created() {
52
43
  this.ej2Instances._trigger = this.ej2Instances.trigger;
53
44
  this.ej2Instances.trigger = this.trigger;
54
45
  this.bindProperties();
@@ -56,150 +47,127 @@ class TextBoxComponent extends ComponentBase {
56
47
  this.ej2Instances.setProperties = this.setProperties;
57
48
  this.ej2Instances.clearTemplate = this.clearTemplate;
58
49
  this.updated = this.updated;
59
- }
60
- clearTemplate(templateNames) {
61
- if (!templateNames) {
62
- 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;
63
56
  }
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 = '';
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
+ }
75
76
  }
77
+ delete this.templateCollection[tempName];
76
78
  }
77
- delete this.templateCollection[tempName];
78
79
  }
79
80
  }
80
- }
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]);
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
+ }
95
100
  }
96
- else {
97
- this.$emit('update:' + key, prop[key]);
98
- 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]);
99
122
  }
100
123
  }
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
124
  }
118
- else {
119
- 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 {
120
135
  this.$emit('update:' + propKey, eventProp[propKey]);
121
136
  this.$emit('modelchanged', eventProp[propKey]);
122
137
  }
123
138
  }
124
139
  }
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 {
135
- this.$emit('update:' + propKey, eventProp[propKey]);
136
- this.$emit('modelchanged', eventProp[propKey]);
137
- }
140
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
141
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
138
142
  }
139
- }
140
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
141
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
142
- }
143
- }
144
- render(createElement) {
145
- let h = !isExecute ? gh : createElement;
146
- let slots = null;
147
- if (!isNullOrUndefined(this.$slots.default)) {
148
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
149
- }
150
- return h('input', slots);
151
- }
152
- custom() {
153
- this.updated();
154
- }
155
- addAttributes(attributes) {
156
- return this.ej2Instances.addAttributes(attributes);
157
- }
158
- addIcon(position, icons) {
159
- return this.ej2Instances.addIcon(position, icons);
160
- }
161
- focusIn() {
162
- return this.ej2Instances.focusIn();
163
- }
164
- focusOut() {
165
- return this.ej2Instances.focusOut();
166
- }
167
- removeAttributes(attributes) {
168
- return this.ej2Instances.removeAttributes(attributes);
169
- }
170
- };
171
- TextBoxComponent = __decorate([
172
- EJComponentDecorator({
173
- props: properties,
174
- model: {
175
- event: 'modelchanged'
176
- }
177
- }, isExecute)
178
- /* Start Options({
179
- props: props,
180
- watch: watch,
181
- emits: emitProbs,
182
- provide: function provide() {
183
- return {
184
- custom: this.custom
185
- };
186
- }
187
- }) End */
188
- ], TextBoxComponent);
143
+ },
144
+ custom() {
145
+ this.updated();
146
+ },
147
+ addAttributes(attributes) {
148
+ return this.ej2Instances.addAttributes(attributes);
149
+ },
150
+ addIcon(position, icons) {
151
+ return this.ej2Instances.addIcon(position, icons);
152
+ },
153
+ focusIn() {
154
+ return this.ej2Instances.focusIn();
155
+ },
156
+ focusOut() {
157
+ return this.ej2Instances.focusOut();
158
+ },
159
+ removeAttributes(attributes) {
160
+ return this.ej2Instances.removeAttributes(attributes);
161
+ },
162
+ }
163
+ });
189
164
  const TextBoxPlugin = {
190
165
  name: 'ejs-textbox',
191
- install(Vue$$1) {
192
- Vue$$1.component(TextBoxPlugin.name, TextBoxComponent);
166
+ install(Vue) {
167
+ Vue.component(TextBoxPlugin.name, TextBoxComponent);
193
168
  }
194
169
  };
195
170
 
196
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
197
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
198
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
199
- 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;
200
- return c > 3 && r && Object.defineProperty(target, key, r), r;
201
- };
202
- // {{VueImport}}
203
171
  const properties$1 = ['isLazyUpdate', 'plugins', 'cssClass', 'currency', 'currencyCode', 'decimals', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'format', 'htmlAttributes', 'locale', 'max', 'min', 'placeholder', 'readonly', 'showClearButton', 'showSpinButton', 'step', 'strictMode', 'validateDecimalOnType', 'value', 'width', 'blur', 'change', 'created', 'destroyed', 'focus'];
204
172
  const modelProps$1 = ['value'];
205
173
  const testProp$1 = getProps({ props: properties$1 });
@@ -216,28 +184,28 @@ for (let props of modelProps$1) {
216
184
  * <ejs-numerictextbox v-bind:value='value'></ejs-numerictextbox>
217
185
  * ```
218
186
  */
219
- let NumericTextBoxComponent =
220
- /* Start Options({
221
- props: props,
222
- watch: watch,
223
- emits: emitProbs,
224
- provide: function provide() {
187
+ let NumericTextBoxComponent = vueDefineComponent({
188
+ name: 'NumericTextBoxComponent',
189
+ mixins: [ComponentBase],
190
+ props: props$1,
191
+ watch: watch$1,
192
+ emits: emitProbs$1,
193
+ model: { event: 'modelchanged' },
194
+ provide() { return { custom: this.custom }; },
195
+ data() {
225
196
  return {
226
- custom: this.custom
197
+ ej2Instances: new NumericTextBox({}),
198
+ propKeys: properties$1,
199
+ models: modelProps$1,
200
+ hasChildDirective: false,
201
+ hasInjectedModules: false,
202
+ tagMapper: {},
203
+ tagNameMapper: {},
204
+ isVue3: !isExecute,
205
+ templateCollection: {},
227
206
  };
228
- }
229
- }) End */
230
- class NumericTextBoxComponent extends ComponentBase {
231
- constructor() {
232
- super(arguments);
233
- this.propKeys = properties$1;
234
- this.models = modelProps$1;
235
- this.hasChildDirective = false;
236
- this.hasInjectedModules = false;
237
- this.tagMapper = {};
238
- this.tagNameMapper = {};
239
- this.isVue3 = !isExecute;
240
- this.ej2Instances = new NumericTextBox({});
207
+ },
208
+ created() {
241
209
  this.ej2Instances._trigger = this.ej2Instances.trigger;
242
210
  this.ej2Instances.trigger = this.trigger;
243
211
  this.bindProperties();
@@ -245,150 +213,127 @@ class NumericTextBoxComponent extends ComponentBase {
245
213
  this.ej2Instances.setProperties = this.setProperties;
246
214
  this.ej2Instances.clearTemplate = this.clearTemplate;
247
215
  this.updated = this.updated;
248
- }
249
- clearTemplate(templateNames) {
250
- if (!templateNames) {
251
- templateNames = Object.keys(this.templateCollection || {});
216
+ },
217
+ render(createElement) {
218
+ let h = !isExecute ? gh : createElement;
219
+ let slots = null;
220
+ if (!isNullOrUndefined(this.$slots.default)) {
221
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
252
222
  }
253
- if (templateNames.length && this.templateCollection) {
254
- for (let tempName of templateNames) {
255
- let elementCollection = this.templateCollection[tempName];
256
- if (elementCollection && elementCollection.length) {
257
- for (let ele of elementCollection) {
258
- let destroy = getValue('__vue__.$destroy', ele);
259
- if (destroy) {
260
- ele.__vue__.$destroy();
261
- }
262
- if (ele.innerHTML) {
263
- ele.innerHTML = '';
223
+ return h('input', slots);
224
+ },
225
+ methods: {
226
+ clearTemplate(templateNames) {
227
+ if (!templateNames) {
228
+ templateNames = Object.keys(this.templateCollection || {});
229
+ }
230
+ if (templateNames.length && this.templateCollection) {
231
+ for (let tempName of templateNames) {
232
+ let elementCollection = this.templateCollection[tempName];
233
+ if (elementCollection && elementCollection.length) {
234
+ for (let ele of elementCollection) {
235
+ let destroy = getValue('__vue__.$destroy', ele);
236
+ if (destroy) {
237
+ ele.__vue__.$destroy();
238
+ }
239
+ if (ele.innerHTML) {
240
+ ele.innerHTML = '';
241
+ }
264
242
  }
243
+ delete this.templateCollection[tempName];
265
244
  }
266
- delete this.templateCollection[tempName];
267
245
  }
268
246
  }
269
- }
270
- }
271
- setProperties(prop, muteOnChange) {
272
- if (this.isVue3) {
273
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
274
- }
275
- if (this.ej2Instances && this.ej2Instances._setProperties) {
276
- this.ej2Instances._setProperties(prop, muteOnChange);
277
- }
278
- if (prop && this.models && this.models.length) {
279
- Object.keys(prop).map((key) => {
280
- this.models.map((model) => {
281
- if ((key === model) && !(/datasource/i.test(key))) {
282
- if (this.isVue3) {
283
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
247
+ },
248
+ setProperties(prop, muteOnChange) {
249
+ if (this.isVue3) {
250
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
251
+ }
252
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
253
+ this.ej2Instances._setProperties(prop, muteOnChange);
254
+ }
255
+ if (prop && this.models && this.models.length) {
256
+ Object.keys(prop).map((key) => {
257
+ this.models.map((model) => {
258
+ if ((key === model) && !(/datasource/i.test(key))) {
259
+ if (this.isVue3) {
260
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
261
+ }
262
+ else {
263
+ this.$emit('update:' + key, prop[key]);
264
+ this.$emit('modelchanged', prop[key]);
265
+ }
284
266
  }
285
- else {
286
- this.$emit('update:' + key, prop[key]);
287
- this.$emit('modelchanged', prop[key]);
267
+ });
268
+ });
269
+ }
270
+ },
271
+ trigger(eventName, eventProp, successHandler) {
272
+ if (!isExecute) {
273
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
274
+ }
275
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
276
+ let key = this.models.toString().match(/checked|value/) || [];
277
+ let propKey = key[0];
278
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
279
+ if (!isExecute) {
280
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
281
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
282
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
283
+ }
284
+ else {
285
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
286
+ this.$emit('update:' + propKey, eventProp[propKey]);
287
+ this.$emit('modelchanged', eventProp[propKey]);
288
288
  }
289
289
  }
290
- });
291
- });
292
- }
293
- }
294
- trigger(eventName, eventProp, successHandler) {
295
- if (!isExecute) {
296
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
297
- }
298
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
299
- let key = this.models.toString().match(/checked|value/) || [];
300
- let propKey = key[0];
301
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
302
- if (!isExecute) {
303
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
304
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
305
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
306
290
  }
307
- else {
308
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
291
+ }
292
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
293
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
294
+ let propKey = key[0];
295
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
296
+ if (!isExecute) {
297
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
298
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
299
+ }
300
+ else {
309
301
  this.$emit('update:' + propKey, eventProp[propKey]);
310
302
  this.$emit('modelchanged', eventProp[propKey]);
311
303
  }
312
304
  }
313
305
  }
314
- }
315
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
316
- let key = this.models.toString().match(/currentView|selectedDate/) || [];
317
- let propKey = key[0];
318
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
319
- if (!isExecute) {
320
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
321
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
322
- }
323
- else {
324
- this.$emit('update:' + propKey, eventProp[propKey]);
325
- this.$emit('modelchanged', eventProp[propKey]);
326
- }
306
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
307
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
327
308
  }
328
- }
329
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
330
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
331
- }
332
- }
333
- render(createElement) {
334
- let h = !isExecute ? gh : createElement;
335
- let slots = null;
336
- if (!isNullOrUndefined(this.$slots.default)) {
337
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
338
- }
339
- return h('input', slots);
340
- }
341
- custom() {
342
- this.updated();
343
- }
344
- decrement(step) {
345
- return this.ej2Instances.decrement(step);
346
- }
347
- focusIn() {
348
- return this.ej2Instances.focusIn();
349
- }
350
- focusOut() {
351
- return this.ej2Instances.focusOut();
352
- }
353
- getText() {
354
- return this.ej2Instances.getText();
355
- }
356
- increment(step) {
357
- return this.ej2Instances.increment(step);
358
- }
359
- };
360
- NumericTextBoxComponent = __decorate$1([
361
- EJComponentDecorator({
362
- props: properties$1,
363
- model: {
364
- event: 'modelchanged'
365
- }
366
- }, isExecute)
367
- /* Start Options({
368
- props: props,
369
- watch: watch,
370
- emits: emitProbs,
371
- provide: function provide() {
372
- return {
373
- custom: this.custom
374
- };
375
- }
376
- }) End */
377
- ], NumericTextBoxComponent);
309
+ },
310
+ custom() {
311
+ this.updated();
312
+ },
313
+ decrement(step) {
314
+ return this.ej2Instances.decrement(step);
315
+ },
316
+ focusIn() {
317
+ return this.ej2Instances.focusIn();
318
+ },
319
+ focusOut() {
320
+ return this.ej2Instances.focusOut();
321
+ },
322
+ getText() {
323
+ return this.ej2Instances.getText();
324
+ },
325
+ increment(step) {
326
+ return this.ej2Instances.increment(step);
327
+ },
328
+ }
329
+ });
378
330
  const NumericTextBoxPlugin = {
379
331
  name: 'ejs-numerictextbox',
380
- install(Vue$$1) {
381
- Vue$$1.component(NumericTextBoxPlugin.name, NumericTextBoxComponent);
332
+ install(Vue) {
333
+ Vue.component(NumericTextBoxPlugin.name, NumericTextBoxComponent);
382
334
  }
383
335
  };
384
336
 
385
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
386
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
387
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
388
- 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;
389
- return c > 3 && r && Object.defineProperty(target, key, r), r;
390
- };
391
- // {{VueImport}}
392
337
  const properties$2 = ['isLazyUpdate', 'plugins', 'cssClass', 'customCharacters', 'enablePersistence', 'enableRtl', 'enabled', 'floatLabelType', 'htmlAttributes', 'locale', 'mask', 'placeholder', 'promptChar', 'readonly', 'showClearButton', 'value', 'width', 'blur', 'change', 'created', 'destroyed', 'focus'];
393
338
  const modelProps$2 = ['value'];
394
339
  const testProp$2 = getProps({ props: properties$2 });
@@ -405,28 +350,28 @@ for (let props of modelProps$2) {
405
350
  * <ejs-maskedtextbox v-bind:value='value'></ejs-maskedtextbox>
406
351
  * ```
407
352
  */
408
- let MaskedTextBoxComponent =
409
- /* Start Options({
410
- props: props,
411
- watch: watch,
412
- emits: emitProbs,
413
- provide: function provide() {
353
+ let MaskedTextBoxComponent = vueDefineComponent({
354
+ name: 'MaskedTextBoxComponent',
355
+ mixins: [ComponentBase],
356
+ props: props$2,
357
+ watch: watch$2,
358
+ emits: emitProbs$2,
359
+ model: { event: 'modelchanged' },
360
+ provide() { return { custom: this.custom }; },
361
+ data() {
414
362
  return {
415
- custom: this.custom
363
+ ej2Instances: new MaskedTextBox({}),
364
+ propKeys: properties$2,
365
+ models: modelProps$2,
366
+ hasChildDirective: false,
367
+ hasInjectedModules: false,
368
+ tagMapper: {},
369
+ tagNameMapper: {},
370
+ isVue3: !isExecute,
371
+ templateCollection: {},
416
372
  };
417
- }
418
- }) End */
419
- class MaskedTextBoxComponent extends ComponentBase {
420
- constructor() {
421
- super(arguments);
422
- this.propKeys = properties$2;
423
- this.models = modelProps$2;
424
- this.hasChildDirective = false;
425
- this.hasInjectedModules = false;
426
- this.tagMapper = {};
427
- this.tagNameMapper = {};
428
- this.isVue3 = !isExecute;
429
- this.ej2Instances = new MaskedTextBox({});
373
+ },
374
+ created() {
430
375
  this.ej2Instances._trigger = this.ej2Instances.trigger;
431
376
  this.ej2Instances.trigger = this.trigger;
432
377
  this.bindProperties();
@@ -434,144 +379,121 @@ class MaskedTextBoxComponent extends ComponentBase {
434
379
  this.ej2Instances.setProperties = this.setProperties;
435
380
  this.ej2Instances.clearTemplate = this.clearTemplate;
436
381
  this.updated = this.updated;
437
- }
438
- clearTemplate(templateNames) {
439
- if (!templateNames) {
440
- templateNames = Object.keys(this.templateCollection || {});
382
+ },
383
+ render(createElement) {
384
+ let h = !isExecute ? gh : createElement;
385
+ let slots = null;
386
+ if (!isNullOrUndefined(this.$slots.default)) {
387
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
441
388
  }
442
- if (templateNames.length && this.templateCollection) {
443
- for (let tempName of templateNames) {
444
- let elementCollection = this.templateCollection[tempName];
445
- if (elementCollection && elementCollection.length) {
446
- for (let ele of elementCollection) {
447
- let destroy = getValue('__vue__.$destroy', ele);
448
- if (destroy) {
449
- ele.__vue__.$destroy();
450
- }
451
- if (ele.innerHTML) {
452
- ele.innerHTML = '';
389
+ return h('input', slots);
390
+ },
391
+ methods: {
392
+ clearTemplate(templateNames) {
393
+ if (!templateNames) {
394
+ templateNames = Object.keys(this.templateCollection || {});
395
+ }
396
+ if (templateNames.length && this.templateCollection) {
397
+ for (let tempName of templateNames) {
398
+ let elementCollection = this.templateCollection[tempName];
399
+ if (elementCollection && elementCollection.length) {
400
+ for (let ele of elementCollection) {
401
+ let destroy = getValue('__vue__.$destroy', ele);
402
+ if (destroy) {
403
+ ele.__vue__.$destroy();
404
+ }
405
+ if (ele.innerHTML) {
406
+ ele.innerHTML = '';
407
+ }
453
408
  }
409
+ delete this.templateCollection[tempName];
454
410
  }
455
- delete this.templateCollection[tempName];
456
411
  }
457
412
  }
458
- }
459
- }
460
- setProperties(prop, muteOnChange) {
461
- if (this.isVue3) {
462
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
463
- }
464
- if (this.ej2Instances && this.ej2Instances._setProperties) {
465
- this.ej2Instances._setProperties(prop, muteOnChange);
466
- }
467
- if (prop && this.models && this.models.length) {
468
- Object.keys(prop).map((key) => {
469
- this.models.map((model) => {
470
- if ((key === model) && !(/datasource/i.test(key))) {
471
- if (this.isVue3) {
472
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
413
+ },
414
+ setProperties(prop, muteOnChange) {
415
+ if (this.isVue3) {
416
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
417
+ }
418
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
419
+ this.ej2Instances._setProperties(prop, muteOnChange);
420
+ }
421
+ if (prop && this.models && this.models.length) {
422
+ Object.keys(prop).map((key) => {
423
+ this.models.map((model) => {
424
+ if ((key === model) && !(/datasource/i.test(key))) {
425
+ if (this.isVue3) {
426
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
427
+ }
428
+ else {
429
+ this.$emit('update:' + key, prop[key]);
430
+ this.$emit('modelchanged', prop[key]);
431
+ }
473
432
  }
474
- else {
475
- this.$emit('update:' + key, prop[key]);
476
- this.$emit('modelchanged', prop[key]);
433
+ });
434
+ });
435
+ }
436
+ },
437
+ trigger(eventName, eventProp, successHandler) {
438
+ if (!isExecute) {
439
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
440
+ }
441
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
442
+ let key = this.models.toString().match(/checked|value/) || [];
443
+ let propKey = key[0];
444
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
445
+ if (!isExecute) {
446
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
447
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
448
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
449
+ }
450
+ else {
451
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
452
+ this.$emit('update:' + propKey, eventProp[propKey]);
453
+ this.$emit('modelchanged', eventProp[propKey]);
477
454
  }
478
455
  }
479
- });
480
- });
481
- }
482
- }
483
- trigger(eventName, eventProp, successHandler) {
484
- if (!isExecute) {
485
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
486
- }
487
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
488
- let key = this.models.toString().match(/checked|value/) || [];
489
- let propKey = key[0];
490
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
491
- if (!isExecute) {
492
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
493
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
494
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
495
456
  }
496
- else {
497
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
457
+ }
458
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
459
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
460
+ let propKey = key[0];
461
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
462
+ if (!isExecute) {
463
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
464
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
465
+ }
466
+ else {
498
467
  this.$emit('update:' + propKey, eventProp[propKey]);
499
468
  this.$emit('modelchanged', eventProp[propKey]);
500
469
  }
501
470
  }
502
471
  }
503
- }
504
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
505
- let key = this.models.toString().match(/currentView|selectedDate/) || [];
506
- let propKey = key[0];
507
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
508
- if (!isExecute) {
509
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
510
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
511
- }
512
- else {
513
- this.$emit('update:' + propKey, eventProp[propKey]);
514
- this.$emit('modelchanged', eventProp[propKey]);
515
- }
472
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
473
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
516
474
  }
517
- }
518
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
519
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
520
- }
521
- }
522
- render(createElement) {
523
- let h = !isExecute ? gh : createElement;
524
- let slots = null;
525
- if (!isNullOrUndefined(this.$slots.default)) {
526
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
527
- }
528
- return h('input', slots);
529
- }
530
- custom() {
531
- this.updated();
532
- }
533
- focusIn() {
534
- return this.ej2Instances.focusIn();
535
- }
536
- focusOut() {
537
- return this.ej2Instances.focusOut();
538
- }
539
- getMaskedValue() {
540
- return this.ej2Instances.getMaskedValue();
541
- }
542
- };
543
- MaskedTextBoxComponent = __decorate$2([
544
- EJComponentDecorator({
545
- props: properties$2,
546
- model: {
547
- event: 'modelchanged'
548
- }
549
- }, isExecute)
550
- /* Start Options({
551
- props: props,
552
- watch: watch,
553
- emits: emitProbs,
554
- provide: function provide() {
555
- return {
556
- custom: this.custom
557
- };
558
- }
559
- }) End */
560
- ], MaskedTextBoxComponent);
475
+ },
476
+ custom() {
477
+ this.updated();
478
+ },
479
+ focusIn() {
480
+ return this.ej2Instances.focusIn();
481
+ },
482
+ focusOut() {
483
+ return this.ej2Instances.focusOut();
484
+ },
485
+ getMaskedValue() {
486
+ return this.ej2Instances.getMaskedValue();
487
+ },
488
+ }
489
+ });
561
490
  const MaskedTextBoxPlugin = {
562
491
  name: 'ejs-maskedtextbox',
563
- install(Vue$$1) {
564
- Vue$$1.component(MaskedTextBoxPlugin.name, MaskedTextBoxComponent);
492
+ install(Vue) {
493
+ Vue.component(MaskedTextBoxPlugin.name, MaskedTextBoxComponent);
565
494
  }
566
495
  };
567
496
 
568
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
569
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
570
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
571
- 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;
572
- return c > 3 && r && Object.defineProperty(target, key, r), r;
573
- };
574
- // {{VueImport}}
575
497
  const properties$3 = ['isLazyUpdate', 'plugins', 'colorRange', 'cssClass', 'customValues', 'enableAnimation', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enabled', 'limits', 'locale', 'max', 'min', 'orientation', 'readonly', 'showButtons', 'step', 'ticks', 'tooltip', 'type', 'value', 'width', 'change', 'changed', 'created', 'renderedTicks', 'renderingTicks', 'tooltipChange'];
576
498
  const modelProps$3 = ['value'];
577
499
  const testProp$3 = getProps({ props: properties$3 });
@@ -588,28 +510,28 @@ for (let props of modelProps$3) {
588
510
  * <ejs-slider :value='value'></ejs-slider>
589
511
  * ```
590
512
  */
591
- let SliderComponent =
592
- /* Start Options({
593
- props: props,
594
- watch: watch,
595
- emits: emitProbs,
596
- provide: function provide() {
513
+ let SliderComponent = vueDefineComponent({
514
+ name: 'SliderComponent',
515
+ mixins: [ComponentBase],
516
+ props: props$3,
517
+ watch: watch$3,
518
+ emits: emitProbs$3,
519
+ model: { event: 'modelchanged' },
520
+ provide() { return { custom: this.custom }; },
521
+ data() {
597
522
  return {
598
- custom: this.custom
523
+ ej2Instances: new Slider({}),
524
+ propKeys: properties$3,
525
+ models: modelProps$3,
526
+ hasChildDirective: false,
527
+ hasInjectedModules: false,
528
+ tagMapper: {},
529
+ tagNameMapper: {},
530
+ isVue3: !isExecute,
531
+ templateCollection: {},
599
532
  };
600
- }
601
- }) End */
602
- class SliderComponent extends ComponentBase {
603
- constructor() {
604
- super(arguments);
605
- this.propKeys = properties$3;
606
- this.models = modelProps$3;
607
- this.hasChildDirective = false;
608
- this.hasInjectedModules = false;
609
- this.tagMapper = {};
610
- this.tagNameMapper = {};
611
- this.isVue3 = !isExecute;
612
- this.ej2Instances = new Slider({});
533
+ },
534
+ created() {
613
535
  this.ej2Instances._trigger = this.ej2Instances.trigger;
614
536
  this.ej2Instances.trigger = this.trigger;
615
537
  this.bindProperties();
@@ -617,160 +539,120 @@ class SliderComponent extends ComponentBase {
617
539
  this.ej2Instances.setProperties = this.setProperties;
618
540
  this.ej2Instances.clearTemplate = this.clearTemplate;
619
541
  this.updated = this.updated;
620
- }
621
- clearTemplate(templateNames) {
622
- if (!templateNames) {
623
- templateNames = Object.keys(this.templateCollection || {});
542
+ },
543
+ render(createElement) {
544
+ let h = !isExecute ? gh : createElement;
545
+ let slots = null;
546
+ if (!isNullOrUndefined(this.$slots.default)) {
547
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
624
548
  }
625
- if (templateNames.length && this.templateCollection) {
626
- for (let tempName of templateNames) {
627
- let elementCollection = this.templateCollection[tempName];
628
- if (elementCollection && elementCollection.length) {
629
- for (let ele of elementCollection) {
630
- let destroy = getValue('__vue__.$destroy', ele);
631
- if (destroy) {
632
- ele.__vue__.$destroy();
633
- }
634
- if (ele.innerHTML) {
635
- ele.innerHTML = '';
549
+ return h('div', slots);
550
+ },
551
+ methods: {
552
+ clearTemplate(templateNames) {
553
+ if (!templateNames) {
554
+ templateNames = Object.keys(this.templateCollection || {});
555
+ }
556
+ if (templateNames.length && this.templateCollection) {
557
+ for (let tempName of templateNames) {
558
+ let elementCollection = this.templateCollection[tempName];
559
+ if (elementCollection && elementCollection.length) {
560
+ for (let ele of elementCollection) {
561
+ let destroy = getValue('__vue__.$destroy', ele);
562
+ if (destroy) {
563
+ ele.__vue__.$destroy();
564
+ }
565
+ if (ele.innerHTML) {
566
+ ele.innerHTML = '';
567
+ }
636
568
  }
569
+ delete this.templateCollection[tempName];
637
570
  }
638
- delete this.templateCollection[tempName];
639
571
  }
640
572
  }
641
- }
642
- }
643
- setProperties(prop, muteOnChange) {
644
- if (this.isVue3) {
645
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
646
- }
647
- if (this.ej2Instances && this.ej2Instances._setProperties) {
648
- this.ej2Instances._setProperties(prop, muteOnChange);
649
- }
650
- if (prop && this.models && this.models.length) {
651
- Object.keys(prop).map((key) => {
652
- this.models.map((model) => {
653
- if ((key === model) && !(/datasource/i.test(key))) {
654
- if (this.isVue3) {
655
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
573
+ },
574
+ setProperties(prop, muteOnChange) {
575
+ if (this.isVue3) {
576
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
577
+ }
578
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
579
+ this.ej2Instances._setProperties(prop, muteOnChange);
580
+ }
581
+ if (prop && this.models && this.models.length) {
582
+ Object.keys(prop).map((key) => {
583
+ this.models.map((model) => {
584
+ if ((key === model) && !(/datasource/i.test(key))) {
585
+ if (this.isVue3) {
586
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
587
+ }
588
+ else {
589
+ this.$emit('update:' + key, prop[key]);
590
+ this.$emit('modelchanged', prop[key]);
591
+ }
656
592
  }
657
- else {
658
- this.$emit('update:' + key, prop[key]);
659
- this.$emit('modelchanged', prop[key]);
593
+ });
594
+ });
595
+ }
596
+ },
597
+ trigger(eventName, eventProp, successHandler) {
598
+ if (!isExecute) {
599
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
600
+ }
601
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
602
+ let key = this.models.toString().match(/checked|value/) || [];
603
+ let propKey = key[0];
604
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
605
+ if (!isExecute) {
606
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
607
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
608
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
609
+ }
610
+ else {
611
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
612
+ this.$emit('update:' + propKey, eventProp[propKey]);
613
+ this.$emit('modelchanged', eventProp[propKey]);
660
614
  }
661
615
  }
662
- });
663
- });
664
- }
665
- }
666
- trigger(eventName, eventProp, successHandler) {
667
- if (!isExecute) {
668
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
669
- }
670
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
671
- let key = this.models.toString().match(/checked|value/) || [];
672
- let propKey = key[0];
673
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
674
- if (!isExecute) {
675
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
676
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
677
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
678
616
  }
679
- else {
680
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
617
+ }
618
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
619
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
620
+ let propKey = key[0];
621
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
622
+ if (!isExecute) {
623
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
624
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
625
+ }
626
+ else {
681
627
  this.$emit('update:' + propKey, eventProp[propKey]);
682
628
  this.$emit('modelchanged', eventProp[propKey]);
683
629
  }
684
630
  }
685
631
  }
686
- }
687
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
688
- let key = this.models.toString().match(/currentView|selectedDate/) || [];
689
- let propKey = key[0];
690
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
691
- if (!isExecute) {
692
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
693
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
694
- }
695
- else {
696
- this.$emit('update:' + propKey, eventProp[propKey]);
697
- this.$emit('modelchanged', eventProp[propKey]);
698
- }
632
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
633
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
699
634
  }
700
- }
701
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
702
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
703
- }
704
- }
705
- render(createElement) {
706
- let h = !isExecute ? gh : createElement;
707
- let slots = null;
708
- if (!isNullOrUndefined(this.$slots.default)) {
709
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
710
- }
711
- return h('div', slots);
712
- }
713
- custom() {
714
- this.updated();
715
- }
716
- reposition() {
717
- return this.ej2Instances.reposition();
718
- }
719
- setTooltip(args) {
720
- return this.ej2Instances.setTooltip(args);
721
- }
722
- };
723
- SliderComponent = __decorate$3([
724
- EJComponentDecorator({
725
- props: properties$3,
726
- model: {
727
- event: 'modelchanged'
728
- }
729
- }, isExecute)
730
- /* Start Options({
731
- props: props,
732
- watch: watch,
733
- emits: emitProbs,
734
- provide: function provide() {
735
- return {
736
- custom: this.custom
737
- };
738
- }
739
- }) End */
740
- ], SliderComponent);
635
+ },
636
+ custom() {
637
+ this.updated();
638
+ },
639
+ reposition() {
640
+ return this.ej2Instances.reposition();
641
+ },
642
+ setTooltip(args) {
643
+ return this.ej2Instances.setTooltip(args);
644
+ },
645
+ }
646
+ });
741
647
  const SliderPlugin = {
742
648
  name: 'ejs-slider',
743
- install(Vue$$1) {
744
- Vue$$1.component(SliderPlugin.name, SliderComponent);
649
+ install(Vue) {
650
+ Vue.component(SliderPlugin.name, SliderComponent);
745
651
  }
746
652
  };
747
653
 
748
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
749
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
750
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
751
- 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;
752
- return c > 3 && r && Object.defineProperty(target, key, r), r;
753
- };
754
- // {{VueImport}}
755
- let vueImport;
756
- if (!isExecute || parseInt(allVue.version) < 3) {
757
- vueImport = Vue;
758
- }
759
- else {
760
- vueImport = Vue$1;
761
- }
762
- let FilesDirective =
763
- /* Start Options({
764
- inject: {
765
- custom: {
766
- default: null
767
- }
768
- }
769
- }) End */
770
- class FilesDirective extends vueImport {
771
- constructor() {
772
- super(arguments);
773
- }
654
+ let FilesDirective = vueDefineComponent({
655
+ inject: { custom: { default: null } },
774
656
  render(createElement) {
775
657
  if (!isExecute) {
776
658
  let h = !isExecute ? gh : createElement;
@@ -781,30 +663,22 @@ class FilesDirective extends vueImport {
781
663
  return h('div', { class: 'e-directive' }, slots);
782
664
  }
783
665
  return;
784
- }
666
+ },
785
667
  updated() {
786
668
  if (!isExecute && this.custom) {
787
669
  this.custom();
788
670
  }
789
- }
790
- getTag() {
791
- return 'e-files';
792
- }
793
- };
794
- FilesDirective = __decorate$4([
795
- EJComponentDecorator({}, isExecute)
796
- /* Start Options({
797
- inject: {
798
- custom: {
799
- default: null
800
- }
671
+ },
672
+ methods: {
673
+ getTag() {
674
+ return 'e-files';
801
675
  }
802
- }) End */
803
- ], FilesDirective);
676
+ }
677
+ });
804
678
  const FilesPlugin = {
805
679
  name: 'e-files',
806
- install(Vue$$1) {
807
- Vue$$1.component(FilesPlugin.name, FilesDirective);
680
+ install(Vue) {
681
+ Vue.component(FilesPlugin.name, FilesDirective);
808
682
  }
809
683
  };
810
684
  /**
@@ -819,31 +693,23 @@ const FilesPlugin = {
819
693
  * </ejs-uploader>
820
694
  * ```
821
695
  */
822
- let UploadedFilesDirective = class UploadedFilesDirective extends vueImport {
696
+ let UploadedFilesDirective = vueDefineComponent({
823
697
  render() {
824
698
  return;
699
+ },
700
+ methods: {
701
+ getTag() {
702
+ return 'e-uploadedfiles';
703
+ }
825
704
  }
826
- getTag() {
827
- return 'e-uploadedfiles';
828
- }
829
- };
830
- UploadedFilesDirective = __decorate$4([
831
- EJComponentDecorator({}, isExecute)
832
- ], UploadedFilesDirective);
705
+ });
833
706
  const UploadedFilesPlugin = {
834
707
  name: 'e-uploadedfiles',
835
- install(Vue$$1) {
836
- Vue$$1.component(UploadedFilesPlugin.name, UploadedFilesDirective);
708
+ install(Vue) {
709
+ Vue.component(UploadedFilesPlugin.name, UploadedFilesDirective);
837
710
  }
838
711
  };
839
712
 
840
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
841
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
842
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
843
- 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;
844
- return c > 3 && r && Object.defineProperty(target, key, r), r;
845
- };
846
- // {{VueImport}}
847
713
  const properties$4 = ['isLazyUpdate', 'plugins', 'allowedExtensions', 'asyncSettings', 'autoUpload', 'buttons', 'cssClass', 'directoryUpload', 'dropArea', 'dropEffect', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enabled', 'files', 'htmlAttributes', 'locale', 'maxFileSize', 'minFileSize', 'multiple', 'sequentialUpload', 'showFileList', 'template', 'actionComplete', 'beforeRemove', 'beforeUpload', 'canceling', 'change', 'chunkFailure', 'chunkSuccess', 'chunkUploading', 'clearing', 'created', 'failure', 'fileListRendering', 'pausing', 'progress', 'removing', 'rendering', 'resuming', 'selected', 'success', 'uploading'];
848
714
  const modelProps$4 = [];
849
715
  const testProp$4 = getProps({ props: properties$4 });
@@ -860,79 +726,33 @@ for (let props of modelProps$4) {
860
726
  * <ejs-uploader id='fileUpload' v-bind:multiple='true'></ejs-uploader>
861
727
  * ```
862
728
  */
863
- let UploaderComponent =
864
- /* Start Options({
865
- props: props,
866
- watch: watch,
867
- emits: emitProbs,
868
- provide: function provide() {
729
+ let UploaderComponent = vueDefineComponent({
730
+ name: 'UploaderComponent',
731
+ mixins: [ComponentBase],
732
+ props: props$4,
733
+ watch: watch$4,
734
+ emits: emitProbs$4,
735
+ provide() { return { custom: this.custom }; },
736
+ data() {
869
737
  return {
870
- custom: this.custom
738
+ ej2Instances: new Uploader({}),
739
+ propKeys: properties$4,
740
+ models: modelProps$4,
741
+ hasChildDirective: true,
742
+ hasInjectedModules: false,
743
+ tagMapper: { "e-files": "e-uploadedfiles" },
744
+ tagNameMapper: {},
745
+ isVue3: !isExecute,
746
+ templateCollection: {},
871
747
  };
872
- }
873
- }) End */
874
- class UploaderComponent extends ComponentBase {
875
- constructor() {
876
- super(arguments);
877
- this.propKeys = properties$4;
878
- this.models = modelProps$4;
879
- this.hasChildDirective = true;
880
- this.hasInjectedModules = false;
881
- this.tagMapper = { "e-files": "e-uploadedfiles" };
882
- this.tagNameMapper = {};
883
- this.isVue3 = !isExecute;
884
- this.ej2Instances = new Uploader({});
748
+ },
749
+ created() {
885
750
  this.bindProperties();
886
751
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
887
752
  this.ej2Instances.setProperties = this.setProperties;
888
753
  this.ej2Instances.clearTemplate = this.clearTemplate;
889
754
  this.updated = this.updated;
890
- }
891
- clearTemplate(templateNames) {
892
- if (!templateNames) {
893
- templateNames = Object.keys(this.templateCollection || {});
894
- }
895
- if (templateNames.length && this.templateCollection) {
896
- for (let tempName of templateNames) {
897
- let elementCollection = this.templateCollection[tempName];
898
- if (elementCollection && elementCollection.length) {
899
- for (let ele of elementCollection) {
900
- let destroy = getValue('__vue__.$destroy', ele);
901
- if (destroy) {
902
- ele.__vue__.$destroy();
903
- }
904
- if (ele.innerHTML) {
905
- ele.innerHTML = '';
906
- }
907
- }
908
- delete this.templateCollection[tempName];
909
- }
910
- }
911
- }
912
- }
913
- setProperties(prop, muteOnChange) {
914
- if (this.isVue3) {
915
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
916
- }
917
- if (this.ej2Instances && this.ej2Instances._setProperties) {
918
- this.ej2Instances._setProperties(prop, muteOnChange);
919
- }
920
- if (prop && this.models && this.models.length) {
921
- Object.keys(prop).map((key) => {
922
- this.models.map((model) => {
923
- if ((key === model) && !(/datasource/i.test(key))) {
924
- if (this.isVue3) {
925
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
926
- }
927
- else {
928
- this.$emit('update:' + key, prop[key]);
929
- this.$emit('modelchanged', prop[key]);
930
- }
931
- }
932
- });
933
- });
934
- }
935
- }
755
+ },
936
756
  render(createElement) {
937
757
  let h = !isExecute ? gh : createElement;
938
758
  let slots = null;
@@ -940,78 +760,103 @@ class UploaderComponent extends ComponentBase {
940
760
  slots = !isExecute ? this.$slots.default() : this.$slots.default;
941
761
  }
942
762
  return h('input', slots);
943
- }
944
- custom() {
945
- this.updated();
946
- }
947
- bytesToSize(bytes) {
948
- return this.ej2Instances.bytesToSize(bytes);
949
- }
950
- cancel(fileData) {
951
- return this.ej2Instances.cancel(fileData);
952
- }
953
- clearAll() {
954
- return this.ej2Instances.clearAll();
955
- }
956
- createFileList(fileData, isSelectedFile) {
957
- return this.ej2Instances.createFileList(fileData, isSelectedFile);
958
- }
959
- getFilesData(index) {
960
- return this.ej2Instances.getFilesData(index);
961
- }
962
- pause(fileData, custom) {
963
- return this.ej2Instances.pause(fileData, custom);
964
- }
965
- remove(fileData, customTemplate, removeDirectly, postRawFile, args) {
966
- return this.ej2Instances.remove(fileData, customTemplate, removeDirectly, postRawFile, args);
967
- }
968
- resume(fileData, custom) {
969
- return this.ej2Instances.resume(fileData, custom);
970
- }
971
- retry(fileData, fromcanceledStage, custom) {
972
- return this.ej2Instances.retry(fileData, fromcanceledStage, custom);
973
- }
974
- sortFileList(filesData) {
975
- return this.ej2Instances.sortFileList(filesData);
976
- }
977
- traverseFileTree(item, event) {
978
- return this.ej2Instances.traverseFileTree(item, event);
979
- }
980
- upload(files, custom) {
981
- return this.ej2Instances.upload(files, custom);
982
- }
983
- };
984
- UploaderComponent = __decorate$5([
985
- EJComponentDecorator({
986
- props: properties$4
987
- }, isExecute)
988
- /* Start Options({
989
- props: props,
990
- watch: watch,
991
- emits: emitProbs,
992
- provide: function provide() {
993
- return {
994
- custom: this.custom
995
- };
996
- }
997
- }) End */
998
- ], UploaderComponent);
763
+ },
764
+ methods: {
765
+ clearTemplate(templateNames) {
766
+ if (!templateNames) {
767
+ templateNames = Object.keys(this.templateCollection || {});
768
+ }
769
+ if (templateNames.length && this.templateCollection) {
770
+ for (let tempName of templateNames) {
771
+ let elementCollection = this.templateCollection[tempName];
772
+ if (elementCollection && elementCollection.length) {
773
+ for (let ele of elementCollection) {
774
+ let destroy = getValue('__vue__.$destroy', ele);
775
+ if (destroy) {
776
+ ele.__vue__.$destroy();
777
+ }
778
+ if (ele.innerHTML) {
779
+ ele.innerHTML = '';
780
+ }
781
+ }
782
+ delete this.templateCollection[tempName];
783
+ }
784
+ }
785
+ }
786
+ },
787
+ setProperties(prop, muteOnChange) {
788
+ if (this.isVue3) {
789
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
790
+ }
791
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
792
+ this.ej2Instances._setProperties(prop, muteOnChange);
793
+ }
794
+ if (prop && this.models && this.models.length) {
795
+ Object.keys(prop).map((key) => {
796
+ this.models.map((model) => {
797
+ if ((key === model) && !(/datasource/i.test(key))) {
798
+ if (this.isVue3) {
799
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
800
+ }
801
+ else {
802
+ this.$emit('update:' + key, prop[key]);
803
+ this.$emit('modelchanged', prop[key]);
804
+ }
805
+ }
806
+ });
807
+ });
808
+ }
809
+ },
810
+ custom() {
811
+ this.updated();
812
+ },
813
+ bytesToSize(bytes) {
814
+ return this.ej2Instances.bytesToSize(bytes);
815
+ },
816
+ cancel(fileData) {
817
+ return this.ej2Instances.cancel(fileData);
818
+ },
819
+ clearAll() {
820
+ return this.ej2Instances.clearAll();
821
+ },
822
+ createFileList(fileData, isSelectedFile) {
823
+ return this.ej2Instances.createFileList(fileData, isSelectedFile);
824
+ },
825
+ getFilesData(index) {
826
+ return this.ej2Instances.getFilesData(index);
827
+ },
828
+ pause(fileData, custom) {
829
+ return this.ej2Instances.pause(fileData, custom);
830
+ },
831
+ remove(fileData, customTemplate, removeDirectly, postRawFile, args) {
832
+ return this.ej2Instances.remove(fileData, customTemplate, removeDirectly, postRawFile, args);
833
+ },
834
+ resume(fileData, custom) {
835
+ return this.ej2Instances.resume(fileData, custom);
836
+ },
837
+ retry(fileData, fromcanceledStage, custom) {
838
+ return this.ej2Instances.retry(fileData, fromcanceledStage, custom);
839
+ },
840
+ sortFileList(filesData) {
841
+ return this.ej2Instances.sortFileList(filesData);
842
+ },
843
+ traverseFileTree(item, event) {
844
+ return this.ej2Instances.traverseFileTree(item, event);
845
+ },
846
+ upload(files, custom) {
847
+ return this.ej2Instances.upload(files, custom);
848
+ },
849
+ }
850
+ });
999
851
  const UploaderPlugin = {
1000
852
  name: 'ejs-uploader',
1001
- install(Vue$$1) {
1002
- Vue$$1.component(UploaderPlugin.name, UploaderComponent);
1003
- Vue$$1.component(UploadedFilesPlugin.name, UploadedFilesDirective);
1004
- Vue$$1.component(FilesPlugin.name, FilesDirective);
853
+ install(Vue) {
854
+ Vue.component(UploaderPlugin.name, UploaderComponent);
855
+ Vue.component(UploadedFilesPlugin.name, UploadedFilesDirective);
856
+ Vue.component(FilesPlugin.name, FilesDirective);
1005
857
  }
1006
858
  };
1007
859
 
1008
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1009
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1010
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1011
- 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;
1012
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1013
- };
1014
- // {{VueImport}}
1015
860
  const properties$5 = ['isLazyUpdate', 'plugins', 'columns', 'createPopupOnClick', 'cssClass', 'disabled', 'enableOpacity', 'enablePersistence', 'enableRtl', 'inline', 'locale', 'mode', 'modeSwitcher', 'noColor', 'presetColors', 'showButtons', 'value', 'beforeClose', 'beforeModeSwitch', 'beforeOpen', 'beforeTileRender', 'change', 'created', 'onModeSwitch', 'open', 'select'];
1016
861
  const modelProps$5 = ['value'];
1017
862
  const testProp$5 = getProps({ props: properties$5 });
@@ -1028,28 +873,28 @@ for (let props of modelProps$5) {
1028
873
  * <ejs-colorpicker></ejs-colorpicker>
1029
874
  * ```
1030
875
  */
1031
- let ColorPickerComponent =
1032
- /* Start Options({
1033
- props: props,
1034
- watch: watch,
1035
- emits: emitProbs,
1036
- provide: function provide() {
876
+ let ColorPickerComponent = vueDefineComponent({
877
+ name: 'ColorPickerComponent',
878
+ mixins: [ComponentBase],
879
+ props: props$5,
880
+ watch: watch$5,
881
+ emits: emitProbs$5,
882
+ model: { event: 'modelchanged' },
883
+ provide() { return { custom: this.custom }; },
884
+ data() {
1037
885
  return {
1038
- custom: this.custom
886
+ ej2Instances: new ColorPicker({}),
887
+ propKeys: properties$5,
888
+ models: modelProps$5,
889
+ hasChildDirective: false,
890
+ hasInjectedModules: false,
891
+ tagMapper: {},
892
+ tagNameMapper: {},
893
+ isVue3: !isExecute,
894
+ templateCollection: {},
1039
895
  };
1040
- }
1041
- }) End */
1042
- class ColorPickerComponent extends ComponentBase {
1043
- constructor() {
1044
- super(arguments);
1045
- this.propKeys = properties$5;
1046
- this.models = modelProps$5;
1047
- this.hasChildDirective = false;
1048
- this.hasInjectedModules = false;
1049
- this.tagMapper = {};
1050
- this.tagNameMapper = {};
1051
- this.isVue3 = !isExecute;
1052
- this.ej2Instances = new ColorPicker({});
896
+ },
897
+ created() {
1053
898
  this.ej2Instances._trigger = this.ej2Instances.trigger;
1054
899
  this.ej2Instances.trigger = this.trigger;
1055
900
  this.bindProperties();
@@ -1057,144 +902,121 @@ class ColorPickerComponent extends ComponentBase {
1057
902
  this.ej2Instances.setProperties = this.setProperties;
1058
903
  this.ej2Instances.clearTemplate = this.clearTemplate;
1059
904
  this.updated = this.updated;
1060
- }
1061
- clearTemplate(templateNames) {
1062
- if (!templateNames) {
1063
- templateNames = Object.keys(this.templateCollection || {});
905
+ },
906
+ render(createElement) {
907
+ let h = !isExecute ? gh : createElement;
908
+ let slots = null;
909
+ if (!isNullOrUndefined(this.$slots.default)) {
910
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
1064
911
  }
1065
- if (templateNames.length && this.templateCollection) {
1066
- for (let tempName of templateNames) {
1067
- let elementCollection = this.templateCollection[tempName];
1068
- if (elementCollection && elementCollection.length) {
1069
- for (let ele of elementCollection) {
1070
- let destroy = getValue('__vue__.$destroy', ele);
1071
- if (destroy) {
1072
- ele.__vue__.$destroy();
1073
- }
1074
- if (ele.innerHTML) {
1075
- ele.innerHTML = '';
912
+ return h('input', slots);
913
+ },
914
+ methods: {
915
+ clearTemplate(templateNames) {
916
+ if (!templateNames) {
917
+ templateNames = Object.keys(this.templateCollection || {});
918
+ }
919
+ if (templateNames.length && this.templateCollection) {
920
+ for (let tempName of templateNames) {
921
+ let elementCollection = this.templateCollection[tempName];
922
+ if (elementCollection && elementCollection.length) {
923
+ for (let ele of elementCollection) {
924
+ let destroy = getValue('__vue__.$destroy', ele);
925
+ if (destroy) {
926
+ ele.__vue__.$destroy();
927
+ }
928
+ if (ele.innerHTML) {
929
+ ele.innerHTML = '';
930
+ }
1076
931
  }
932
+ delete this.templateCollection[tempName];
1077
933
  }
1078
- delete this.templateCollection[tempName];
1079
934
  }
1080
935
  }
1081
- }
1082
- }
1083
- setProperties(prop, muteOnChange) {
1084
- if (this.isVue3) {
1085
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1086
- }
1087
- if (this.ej2Instances && this.ej2Instances._setProperties) {
1088
- this.ej2Instances._setProperties(prop, muteOnChange);
1089
- }
1090
- if (prop && this.models && this.models.length) {
1091
- Object.keys(prop).map((key) => {
1092
- this.models.map((model) => {
1093
- if ((key === model) && !(/datasource/i.test(key))) {
1094
- if (this.isVue3) {
1095
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
936
+ },
937
+ setProperties(prop, muteOnChange) {
938
+ if (this.isVue3) {
939
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
940
+ }
941
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
942
+ this.ej2Instances._setProperties(prop, muteOnChange);
943
+ }
944
+ if (prop && this.models && this.models.length) {
945
+ Object.keys(prop).map((key) => {
946
+ this.models.map((model) => {
947
+ if ((key === model) && !(/datasource/i.test(key))) {
948
+ if (this.isVue3) {
949
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
950
+ }
951
+ else {
952
+ this.$emit('update:' + key, prop[key]);
953
+ this.$emit('modelchanged', prop[key]);
954
+ }
1096
955
  }
1097
- else {
1098
- this.$emit('update:' + key, prop[key]);
1099
- this.$emit('modelchanged', prop[key]);
956
+ });
957
+ });
958
+ }
959
+ },
960
+ trigger(eventName, eventProp, successHandler) {
961
+ if (!isExecute) {
962
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
963
+ }
964
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
965
+ let key = this.models.toString().match(/checked|value/) || [];
966
+ let propKey = key[0];
967
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
968
+ if (!isExecute) {
969
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
970
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
971
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
972
+ }
973
+ else {
974
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
975
+ this.$emit('update:' + propKey, eventProp[propKey]);
976
+ this.$emit('modelchanged', eventProp[propKey]);
1100
977
  }
1101
978
  }
1102
- });
1103
- });
1104
- }
1105
- }
1106
- trigger(eventName, eventProp, successHandler) {
1107
- if (!isExecute) {
1108
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1109
- }
1110
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
1111
- let key = this.models.toString().match(/checked|value/) || [];
1112
- let propKey = key[0];
1113
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
1114
- if (!isExecute) {
1115
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1116
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1117
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
1118
979
  }
1119
- else {
1120
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
980
+ }
981
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
982
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
983
+ let propKey = key[0];
984
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
985
+ if (!isExecute) {
986
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
987
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
988
+ }
989
+ else {
1121
990
  this.$emit('update:' + propKey, eventProp[propKey]);
1122
991
  this.$emit('modelchanged', eventProp[propKey]);
1123
992
  }
1124
993
  }
1125
994
  }
1126
- }
1127
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
1128
- let key = this.models.toString().match(/currentView|selectedDate/) || [];
1129
- let propKey = key[0];
1130
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
1131
- if (!isExecute) {
1132
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1133
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1134
- }
1135
- else {
1136
- this.$emit('update:' + propKey, eventProp[propKey]);
1137
- this.$emit('modelchanged', eventProp[propKey]);
1138
- }
995
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
996
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
1139
997
  }
1140
- }
1141
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
1142
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
1143
- }
1144
- }
1145
- render(createElement) {
1146
- let h = !isExecute ? gh : createElement;
1147
- let slots = null;
1148
- if (!isNullOrUndefined(this.$slots.default)) {
1149
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
1150
- }
1151
- return h('input', slots);
1152
- }
1153
- custom() {
1154
- this.updated();
1155
- }
1156
- focusIn() {
1157
- return this.ej2Instances.focusIn();
1158
- }
1159
- getValue(value, type) {
1160
- return this.ej2Instances.getValue(value, type);
1161
- }
1162
- toggle() {
1163
- return this.ej2Instances.toggle();
1164
- }
1165
- };
1166
- ColorPickerComponent = __decorate$6([
1167
- EJComponentDecorator({
1168
- props: properties$5,
1169
- model: {
1170
- event: 'modelchanged'
1171
- }
1172
- }, isExecute)
1173
- /* Start Options({
1174
- props: props,
1175
- watch: watch,
1176
- emits: emitProbs,
1177
- provide: function provide() {
1178
- return {
1179
- custom: this.custom
1180
- };
1181
- }
1182
- }) End */
1183
- ], ColorPickerComponent);
998
+ },
999
+ custom() {
1000
+ this.updated();
1001
+ },
1002
+ focusIn() {
1003
+ return this.ej2Instances.focusIn();
1004
+ },
1005
+ getValue(value, type) {
1006
+ return this.ej2Instances.getValue(value, type);
1007
+ },
1008
+ toggle() {
1009
+ return this.ej2Instances.toggle();
1010
+ },
1011
+ }
1012
+ });
1184
1013
  const ColorPickerPlugin = {
1185
1014
  name: 'ejs-colorpicker',
1186
- install(Vue$$1) {
1187
- Vue$$1.component(ColorPickerPlugin.name, ColorPickerComponent);
1015
+ install(Vue) {
1016
+ Vue.component(ColorPickerPlugin.name, ColorPickerComponent);
1188
1017
  }
1189
1018
  };
1190
1019
 
1191
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1192
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1193
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1194
- 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;
1195
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1196
- };
1197
- // {{VueImport}}
1198
1020
  const properties$6 = ['isLazyUpdate', 'plugins', 'backgroundColor', 'backgroundImage', 'disabled', 'enablePersistence', 'enableRtl', 'isReadOnly', 'locale', 'maxStrokeWidth', 'minStrokeWidth', 'saveWithBackground', 'strokeColor', 'velocity', 'beforeSave', 'change', 'created'];
1199
1021
  const modelProps$6 = [];
1200
1022
  const testProp$6 = getProps({ props: properties$6 });
@@ -1211,79 +1033,33 @@ for (let props of modelProps$6) {
1211
1033
  * <ejs-signature></ejs-signature>
1212
1034
  * ```
1213
1035
  */
1214
- let SignatureComponent =
1215
- /* Start Options({
1216
- props: props,
1217
- watch: watch,
1218
- emits: emitProbs,
1219
- provide: function provide() {
1036
+ let SignatureComponent = vueDefineComponent({
1037
+ name: 'SignatureComponent',
1038
+ mixins: [ComponentBase],
1039
+ props: props$6,
1040
+ watch: watch$6,
1041
+ emits: emitProbs$6,
1042
+ provide() { return { custom: this.custom }; },
1043
+ data() {
1220
1044
  return {
1221
- custom: this.custom
1045
+ ej2Instances: new Signature({}),
1046
+ propKeys: properties$6,
1047
+ models: modelProps$6,
1048
+ hasChildDirective: false,
1049
+ hasInjectedModules: false,
1050
+ tagMapper: {},
1051
+ tagNameMapper: {},
1052
+ isVue3: !isExecute,
1053
+ templateCollection: {},
1222
1054
  };
1223
- }
1224
- }) End */
1225
- class SignatureComponent extends ComponentBase {
1226
- constructor() {
1227
- super(arguments);
1228
- this.propKeys = properties$6;
1229
- this.models = modelProps$6;
1230
- this.hasChildDirective = false;
1231
- this.hasInjectedModules = false;
1232
- this.tagMapper = {};
1233
- this.tagNameMapper = {};
1234
- this.isVue3 = !isExecute;
1235
- this.ej2Instances = new Signature({});
1055
+ },
1056
+ created() {
1236
1057
  this.bindProperties();
1237
1058
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
1238
1059
  this.ej2Instances.setProperties = this.setProperties;
1239
1060
  this.ej2Instances.clearTemplate = this.clearTemplate;
1240
1061
  this.updated = this.updated;
1241
- }
1242
- clearTemplate(templateNames) {
1243
- if (!templateNames) {
1244
- templateNames = Object.keys(this.templateCollection || {});
1245
- }
1246
- if (templateNames.length && this.templateCollection) {
1247
- for (let tempName of templateNames) {
1248
- let elementCollection = this.templateCollection[tempName];
1249
- if (elementCollection && elementCollection.length) {
1250
- for (let ele of elementCollection) {
1251
- let destroy = getValue('__vue__.$destroy', ele);
1252
- if (destroy) {
1253
- ele.__vue__.$destroy();
1254
- }
1255
- if (ele.innerHTML) {
1256
- ele.innerHTML = '';
1257
- }
1258
- }
1259
- delete this.templateCollection[tempName];
1260
- }
1261
- }
1262
- }
1263
- }
1264
- setProperties(prop, muteOnChange) {
1265
- if (this.isVue3) {
1266
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1267
- }
1268
- if (this.ej2Instances && this.ej2Instances._setProperties) {
1269
- this.ej2Instances._setProperties(prop, muteOnChange);
1270
- }
1271
- if (prop && this.models && this.models.length) {
1272
- Object.keys(prop).map((key) => {
1273
- this.models.map((model) => {
1274
- if ((key === model) && !(/datasource/i.test(key))) {
1275
- if (this.isVue3) {
1276
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1277
- }
1278
- else {
1279
- this.$emit('update:' + key, prop[key]);
1280
- this.$emit('modelchanged', prop[key]);
1281
- }
1282
- }
1283
- });
1284
- });
1285
- }
1286
- }
1062
+ },
1287
1063
  render(createElement) {
1288
1064
  let h = !isExecute ? gh : createElement;
1289
1065
  let slots = null;
@@ -1291,76 +1067,101 @@ class SignatureComponent extends ComponentBase {
1291
1067
  slots = !isExecute ? this.$slots.default() : this.$slots.default;
1292
1068
  }
1293
1069
  return h('canvas', slots);
1294
- }
1295
- custom() {
1296
- this.updated();
1297
- }
1298
- canRedo() {
1299
- return this.ej2Instances.canRedo();
1300
- }
1301
- canUndo() {
1302
- return this.ej2Instances.canUndo();
1303
- }
1304
- clear() {
1305
- return this.ej2Instances.clear();
1306
- }
1307
- draw(text, fontFamily, fontSize) {
1308
- return this.ej2Instances.draw(text, fontFamily, fontSize);
1309
- }
1310
- getBlob(url) {
1311
- return this.ej2Instances.getBlob(url);
1312
- }
1313
- initialize() {
1314
- return this.ej2Instances.initialize();
1315
- }
1316
- isEmpty() {
1317
- return this.ej2Instances.isEmpty();
1318
- }
1319
- load(signature, width, height) {
1320
- return this.ej2Instances.load(signature, width, height);
1321
- }
1322
- redo() {
1323
- return this.ej2Instances.redo();
1324
- }
1325
- save(type, fileName) {
1326
- return this.ej2Instances.save(type, fileName);
1327
- }
1328
- saveAsBlob() {
1329
- return this.ej2Instances.saveAsBlob();
1330
- }
1331
- undo() {
1332
- return this.ej2Instances.undo();
1333
- }
1334
- };
1335
- SignatureComponent = __decorate$7([
1336
- EJComponentDecorator({
1337
- props: properties$6
1338
- }, isExecute)
1339
- /* Start Options({
1340
- props: props,
1341
- watch: watch,
1342
- emits: emitProbs,
1343
- provide: function provide() {
1344
- return {
1345
- custom: this.custom
1346
- };
1347
- }
1348
- }) End */
1349
- ], SignatureComponent);
1070
+ },
1071
+ methods: {
1072
+ clearTemplate(templateNames) {
1073
+ if (!templateNames) {
1074
+ templateNames = Object.keys(this.templateCollection || {});
1075
+ }
1076
+ if (templateNames.length && this.templateCollection) {
1077
+ for (let tempName of templateNames) {
1078
+ let elementCollection = this.templateCollection[tempName];
1079
+ if (elementCollection && elementCollection.length) {
1080
+ for (let ele of elementCollection) {
1081
+ let destroy = getValue('__vue__.$destroy', ele);
1082
+ if (destroy) {
1083
+ ele.__vue__.$destroy();
1084
+ }
1085
+ if (ele.innerHTML) {
1086
+ ele.innerHTML = '';
1087
+ }
1088
+ }
1089
+ delete this.templateCollection[tempName];
1090
+ }
1091
+ }
1092
+ }
1093
+ },
1094
+ setProperties(prop, muteOnChange) {
1095
+ if (this.isVue3) {
1096
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1097
+ }
1098
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
1099
+ this.ej2Instances._setProperties(prop, muteOnChange);
1100
+ }
1101
+ if (prop && this.models && this.models.length) {
1102
+ Object.keys(prop).map((key) => {
1103
+ this.models.map((model) => {
1104
+ if ((key === model) && !(/datasource/i.test(key))) {
1105
+ if (this.isVue3) {
1106
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1107
+ }
1108
+ else {
1109
+ this.$emit('update:' + key, prop[key]);
1110
+ this.$emit('modelchanged', prop[key]);
1111
+ }
1112
+ }
1113
+ });
1114
+ });
1115
+ }
1116
+ },
1117
+ custom() {
1118
+ this.updated();
1119
+ },
1120
+ canRedo() {
1121
+ return this.ej2Instances.canRedo();
1122
+ },
1123
+ canUndo() {
1124
+ return this.ej2Instances.canUndo();
1125
+ },
1126
+ clear() {
1127
+ return this.ej2Instances.clear();
1128
+ },
1129
+ draw(text, fontFamily, fontSize) {
1130
+ return this.ej2Instances.draw(text, fontFamily, fontSize);
1131
+ },
1132
+ getBlob(url) {
1133
+ return this.ej2Instances.getBlob(url);
1134
+ },
1135
+ initialize() {
1136
+ return this.ej2Instances.initialize();
1137
+ },
1138
+ isEmpty() {
1139
+ return this.ej2Instances.isEmpty();
1140
+ },
1141
+ load(signature, width, height) {
1142
+ return this.ej2Instances.load(signature, width, height);
1143
+ },
1144
+ redo() {
1145
+ return this.ej2Instances.redo();
1146
+ },
1147
+ save(type, fileName) {
1148
+ return this.ej2Instances.save(type, fileName);
1149
+ },
1150
+ saveAsBlob() {
1151
+ return this.ej2Instances.saveAsBlob();
1152
+ },
1153
+ undo() {
1154
+ return this.ej2Instances.undo();
1155
+ },
1156
+ }
1157
+ });
1350
1158
  const SignaturePlugin = {
1351
1159
  name: 'ejs-signature',
1352
- install(Vue$$1) {
1353
- Vue$$1.component(SignaturePlugin.name, SignatureComponent);
1160
+ install(Vue) {
1161
+ Vue.component(SignaturePlugin.name, SignatureComponent);
1354
1162
  }
1355
1163
  };
1356
1164
 
1357
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1358
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1359
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1360
- 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;
1361
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1362
- };
1363
- // {{VueImport}}
1364
1165
  const properties$7 = ['isLazyUpdate', 'plugins', 'allowReset', 'cssClass', 'disabled', 'emptyTemplate', 'enableAnimation', 'enablePersistence', 'enableRtl', 'enableSingleSelection', 'fullTemplate', 'itemsCount', 'labelPosition', 'labelTemplate', 'locale', 'min', 'precision', 'readOnly', 'showLabel', 'showTooltip', 'tooltipTemplate', 'value', 'visible', 'beforeItemRender', 'created', 'onItemHover', 'valueChanged'];
1365
1166
  const modelProps$7 = ['value'];
1366
1167
  const testProp$7 = getProps({ props: properties$7 });
@@ -1377,28 +1178,28 @@ for (let props of modelProps$7) {
1377
1178
  * <ejs-rating v-bind:value='value'></ejs-rating>
1378
1179
  * ```
1379
1180
  */
1380
- let RatingComponent =
1381
- /* Start Options({
1382
- props: props,
1383
- watch: watch,
1384
- emits: emitProbs,
1385
- provide: function provide() {
1181
+ let RatingComponent = vueDefineComponent({
1182
+ name: 'RatingComponent',
1183
+ mixins: [ComponentBase],
1184
+ props: props$7,
1185
+ watch: watch$7,
1186
+ emits: emitProbs$7,
1187
+ model: { event: 'modelchanged' },
1188
+ provide() { return { custom: this.custom }; },
1189
+ data() {
1386
1190
  return {
1387
- custom: this.custom
1191
+ ej2Instances: new Rating({}),
1192
+ propKeys: properties$7,
1193
+ models: modelProps$7,
1194
+ hasChildDirective: false,
1195
+ hasInjectedModules: false,
1196
+ tagMapper: {},
1197
+ tagNameMapper: {},
1198
+ isVue3: !isExecute,
1199
+ templateCollection: {},
1388
1200
  };
1389
- }
1390
- }) End */
1391
- class RatingComponent extends ComponentBase {
1392
- constructor() {
1393
- super(arguments);
1394
- this.propKeys = properties$7;
1395
- this.models = modelProps$7;
1396
- this.hasChildDirective = false;
1397
- this.hasInjectedModules = false;
1398
- this.tagMapper = {};
1399
- this.tagNameMapper = {};
1400
- this.isVue3 = !isExecute;
1401
- this.ej2Instances = new Rating({});
1201
+ },
1202
+ created() {
1402
1203
  this.ej2Instances._trigger = this.ej2Instances.trigger;
1403
1204
  this.ej2Instances.trigger = this.trigger;
1404
1205
  this.bindProperties();
@@ -1406,128 +1207,112 @@ class RatingComponent extends ComponentBase {
1406
1207
  this.ej2Instances.setProperties = this.setProperties;
1407
1208
  this.ej2Instances.clearTemplate = this.clearTemplate;
1408
1209
  this.updated = this.updated;
1409
- }
1410
- clearTemplate(templateNames) {
1411
- if (!templateNames) {
1412
- templateNames = Object.keys(this.templateCollection || {});
1210
+ },
1211
+ render(createElement) {
1212
+ let h = !isExecute ? gh : createElement;
1213
+ let slots = null;
1214
+ if (!isNullOrUndefined(this.$slots.default)) {
1215
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
1413
1216
  }
1414
- if (templateNames.length && this.templateCollection) {
1415
- for (let tempName of templateNames) {
1416
- let elementCollection = this.templateCollection[tempName];
1417
- if (elementCollection && elementCollection.length) {
1418
- for (let ele of elementCollection) {
1419
- let destroy = getValue('__vue__.$destroy', ele);
1420
- if (destroy) {
1421
- ele.__vue__.$destroy();
1422
- }
1423
- if (ele.innerHTML) {
1424
- ele.innerHTML = '';
1217
+ return h('input', slots);
1218
+ },
1219
+ methods: {
1220
+ clearTemplate(templateNames) {
1221
+ if (!templateNames) {
1222
+ templateNames = Object.keys(this.templateCollection || {});
1223
+ }
1224
+ if (templateNames.length && this.templateCollection) {
1225
+ for (let tempName of templateNames) {
1226
+ let elementCollection = this.templateCollection[tempName];
1227
+ if (elementCollection && elementCollection.length) {
1228
+ for (let ele of elementCollection) {
1229
+ let destroy = getValue('__vue__.$destroy', ele);
1230
+ if (destroy) {
1231
+ ele.__vue__.$destroy();
1232
+ }
1233
+ if (ele.innerHTML) {
1234
+ ele.innerHTML = '';
1235
+ }
1425
1236
  }
1237
+ delete this.templateCollection[tempName];
1426
1238
  }
1427
- delete this.templateCollection[tempName];
1428
1239
  }
1429
1240
  }
1430
- }
1431
- }
1432
- setProperties(prop, muteOnChange) {
1433
- if (this.isVue3) {
1434
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1435
- }
1436
- if (this.ej2Instances && this.ej2Instances._setProperties) {
1437
- this.ej2Instances._setProperties(prop, muteOnChange);
1438
- }
1439
- if (prop && this.models && this.models.length) {
1440
- Object.keys(prop).map((key) => {
1441
- this.models.map((model) => {
1442
- if ((key === model) && !(/datasource/i.test(key))) {
1443
- if (this.isVue3) {
1444
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1241
+ },
1242
+ setProperties(prop, muteOnChange) {
1243
+ if (this.isVue3) {
1244
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1245
+ }
1246
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
1247
+ this.ej2Instances._setProperties(prop, muteOnChange);
1248
+ }
1249
+ if (prop && this.models && this.models.length) {
1250
+ Object.keys(prop).map((key) => {
1251
+ this.models.map((model) => {
1252
+ if ((key === model) && !(/datasource/i.test(key))) {
1253
+ if (this.isVue3) {
1254
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1255
+ }
1256
+ else {
1257
+ this.$emit('update:' + key, prop[key]);
1258
+ this.$emit('modelchanged', prop[key]);
1259
+ }
1445
1260
  }
1446
- else {
1447
- this.$emit('update:' + key, prop[key]);
1448
- this.$emit('modelchanged', prop[key]);
1261
+ });
1262
+ });
1263
+ }
1264
+ },
1265
+ trigger(eventName, eventProp, successHandler) {
1266
+ if (!isExecute) {
1267
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1268
+ }
1269
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
1270
+ let key = this.models.toString().match(/checked|value/) || [];
1271
+ let propKey = key[0];
1272
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
1273
+ if (!isExecute) {
1274
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1275
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1276
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
1277
+ }
1278
+ else {
1279
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
1280
+ this.$emit('update:' + propKey, eventProp[propKey]);
1281
+ this.$emit('modelchanged', eventProp[propKey]);
1449
1282
  }
1450
1283
  }
1451
- });
1452
- });
1453
- }
1454
- }
1455
- trigger(eventName, eventProp, successHandler) {
1456
- if (!isExecute) {
1457
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1458
- }
1459
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
1460
- let key = this.models.toString().match(/checked|value/) || [];
1461
- let propKey = key[0];
1462
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
1463
- if (!isExecute) {
1464
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1465
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1466
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
1467
1284
  }
1468
- else {
1469
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
1285
+ }
1286
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
1287
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
1288
+ let propKey = key[0];
1289
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
1290
+ if (!isExecute) {
1291
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1292
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1293
+ }
1294
+ else {
1470
1295
  this.$emit('update:' + propKey, eventProp[propKey]);
1471
1296
  this.$emit('modelchanged', eventProp[propKey]);
1472
1297
  }
1473
1298
  }
1474
1299
  }
1475
- }
1476
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
1477
- let key = this.models.toString().match(/currentView|selectedDate/) || [];
1478
- let propKey = key[0];
1479
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
1480
- if (!isExecute) {
1481
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1482
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1483
- }
1484
- else {
1485
- this.$emit('update:' + propKey, eventProp[propKey]);
1486
- this.$emit('modelchanged', eventProp[propKey]);
1487
- }
1300
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
1301
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
1488
1302
  }
1489
- }
1490
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
1491
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
1492
- }
1493
- }
1494
- render(createElement) {
1495
- let h = !isExecute ? gh : createElement;
1496
- let slots = null;
1497
- if (!isNullOrUndefined(this.$slots.default)) {
1498
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
1499
- }
1500
- return h('input', slots);
1501
- }
1502
- custom() {
1503
- this.updated();
1504
- }
1505
- reset() {
1506
- return this.ej2Instances.reset();
1507
- }
1508
- };
1509
- RatingComponent = __decorate$8([
1510
- EJComponentDecorator({
1511
- props: properties$7,
1512
- model: {
1513
- event: 'modelchanged'
1514
- }
1515
- }, isExecute)
1516
- /* Start Options({
1517
- props: props,
1518
- watch: watch,
1519
- emits: emitProbs,
1520
- provide: function provide() {
1521
- return {
1522
- custom: this.custom
1523
- };
1524
- }
1525
- }) End */
1526
- ], RatingComponent);
1303
+ },
1304
+ custom() {
1305
+ this.updated();
1306
+ },
1307
+ reset() {
1308
+ return this.ej2Instances.reset();
1309
+ },
1310
+ }
1311
+ });
1527
1312
  const RatingPlugin = {
1528
1313
  name: 'ejs-rating',
1529
- install(Vue$$1) {
1530
- Vue$$1.component(RatingPlugin.name, RatingComponent);
1314
+ install(Vue) {
1315
+ Vue.component(RatingPlugin.name, RatingComponent);
1531
1316
  }
1532
1317
  };
1533
1318