@syncfusion/ej2-vue-splitbuttons 20.4.50 → 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 (64) hide show
  1. package/CHANGELOG.md +2 -26
  2. package/dist/ej2-vue-splitbuttons.umd.min.js +2 -2
  3. package/dist/ej2-vue-splitbuttons.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-splitbuttons.es2015.js +303 -434
  5. package/dist/es6/ej2-vue-splitbuttons.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-splitbuttons.es5.js +343 -513
  7. package/dist/es6/ej2-vue-splitbuttons.es5.js.map +1 -1
  8. package/dist/global/ej2-vue-splitbuttons.min.js +2 -2
  9. package/package.json +11 -10
  10. package/src/drop-down-button/dropdownbutton.component.d.ts +3 -26
  11. package/src/drop-down-button/dropdownbutton.component.js +95 -124
  12. package/src/drop-down-button/items.directive.d.ts +2 -12
  13. package/src/drop-down-button/items.directive.js +22 -71
  14. package/src/progress-button/progressbutton.component.d.ts +3 -27
  15. package/src/progress-button/progressbutton.component.js +98 -127
  16. package/src/split-button/items.directive.d.ts +2 -12
  17. package/src/split-button/items.directive.js +22 -71
  18. package/src/split-button/splitbutton.component.d.ts +3 -26
  19. package/src/split-button/splitbutton.component.js +95 -124
  20. package/styles/bootstrap-dark.css +44 -44
  21. package/styles/bootstrap.css +44 -44
  22. package/styles/bootstrap4.css +44 -44
  23. package/styles/bootstrap5-dark.css +48 -48
  24. package/styles/bootstrap5.css +48 -48
  25. package/styles/button-group/bootstrap-dark.css +30 -30
  26. package/styles/button-group/bootstrap.css +30 -30
  27. package/styles/button-group/bootstrap4.css +31 -31
  28. package/styles/button-group/bootstrap5-dark.css +30 -30
  29. package/styles/button-group/bootstrap5.css +30 -30
  30. package/styles/button-group/fabric-dark.css +30 -30
  31. package/styles/button-group/fabric.css +30 -30
  32. package/styles/button-group/fluent-dark.css +30 -30
  33. package/styles/button-group/fluent.css +30 -30
  34. package/styles/button-group/highcontrast-light.css +30 -30
  35. package/styles/button-group/highcontrast.css +30 -30
  36. package/styles/button-group/material-dark.css +30 -30
  37. package/styles/button-group/material.css +30 -30
  38. package/styles/button-group/tailwind-dark.css +30 -30
  39. package/styles/button-group/tailwind.css +30 -30
  40. package/styles/fabric-dark.css +44 -44
  41. package/styles/fabric.css +44 -44
  42. package/styles/fluent-dark.css +48 -48
  43. package/styles/fluent.css +48 -48
  44. package/styles/highcontrast-light.css +44 -44
  45. package/styles/highcontrast.css +44 -44
  46. package/styles/material-dark.css +43 -43
  47. package/styles/material.css +43 -43
  48. package/styles/progress-button/bootstrap-dark.css +14 -14
  49. package/styles/progress-button/bootstrap.css +14 -14
  50. package/styles/progress-button/bootstrap4.css +13 -13
  51. package/styles/progress-button/bootstrap5-dark.css +18 -18
  52. package/styles/progress-button/bootstrap5.css +18 -18
  53. package/styles/progress-button/fabric-dark.css +14 -14
  54. package/styles/progress-button/fabric.css +14 -14
  55. package/styles/progress-button/fluent-dark.css +18 -18
  56. package/styles/progress-button/fluent.css +18 -18
  57. package/styles/progress-button/highcontrast-light.css +14 -14
  58. package/styles/progress-button/highcontrast.css +14 -14
  59. package/styles/progress-button/material-dark.css +13 -13
  60. package/styles/progress-button/material.css +13 -13
  61. package/styles/progress-button/tailwind-dark.css +18 -18
  62. package/styles/progress-button/tailwind.css +18 -18
  63. package/styles/tailwind-dark.css +48 -48
  64. package/styles/tailwind.css +48 -48
@@ -1,35 +1,9 @@
1
1
  import { DropDownButton, ProgressButton, SplitButton } from '@syncfusion/ej2-splitbuttons';
2
- import { ComponentBase, EJComponentDecorator, allVue, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
3
- import { Vue } from 'vue-class-component';
2
+ import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
4
3
  import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
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
- let vueImport;
15
- if (!isExecute || parseInt(allVue.version) < 3) {
16
- vueImport = Vue;
17
- }
18
- else {
19
- vueImport = Vue$1;
20
- }
21
- let DropDownButtonItemsDirective =
22
- /* Start Options({
23
- inject: {
24
- custom: {
25
- default: null
26
- }
27
- }
28
- }) End */
29
- class DropDownButtonItemsDirective extends vueImport {
30
- constructor() {
31
- super(arguments);
32
- }
5
+ let DropDownButtonItemsDirective = vueDefineComponent({
6
+ inject: { custom: { default: null } },
33
7
  render(createElement) {
34
8
  if (!isExecute) {
35
9
  let h = !isExecute ? gh : createElement;
@@ -40,57 +14,41 @@ class DropDownButtonItemsDirective extends vueImport {
40
14
  return h('div', { class: 'e-directive' }, slots);
41
15
  }
42
16
  return;
43
- }
17
+ },
44
18
  updated() {
45
19
  if (!isExecute && this.custom) {
46
20
  this.custom();
47
21
  }
48
- }
49
- getTag() {
50
- return 'e-dropdownbuttonitems';
51
- }
52
- };
53
- DropDownButtonItemsDirective = __decorate([
54
- EJComponentDecorator({}, isExecute)
55
- /* Start Options({
56
- inject: {
57
- custom: {
58
- default: null
59
- }
22
+ },
23
+ methods: {
24
+ getTag() {
25
+ return 'e-dropdownbuttonitems';
60
26
  }
61
- }) End */
62
- ], DropDownButtonItemsDirective);
27
+ }
28
+ });
63
29
  const DropDownButtonItemsPlugin = {
64
30
  name: 'e-dropdownbuttonitems',
65
- install(Vue$$1) {
66
- Vue$$1.component(DropDownButtonItemsPlugin.name, DropDownButtonItemsDirective);
31
+ install(Vue) {
32
+ Vue.component(DropDownButtonItemsPlugin.name, DropDownButtonItemsDirective);
67
33
  }
68
34
  };
69
- let DropDownButtonItemDirective = class DropDownButtonItemDirective extends vueImport {
35
+ let DropDownButtonItemDirective = vueDefineComponent({
70
36
  render() {
71
37
  return;
38
+ },
39
+ methods: {
40
+ getTag() {
41
+ return 'e-dropdownbuttonitem';
42
+ }
72
43
  }
73
- getTag() {
74
- return 'e-dropdownbuttonitem';
75
- }
76
- };
77
- DropDownButtonItemDirective = __decorate([
78
- EJComponentDecorator({}, isExecute)
79
- ], DropDownButtonItemDirective);
44
+ });
80
45
  const DropDownButtonItemPlugin = {
81
46
  name: 'e-dropdownbuttonitem',
82
- install(Vue$$1) {
83
- Vue$$1.component(DropDownButtonItemPlugin.name, DropDownButtonItemDirective);
47
+ install(Vue) {
48
+ Vue.component(DropDownButtonItemPlugin.name, DropDownButtonItemDirective);
84
49
  }
85
50
  };
86
51
 
87
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
88
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
89
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
90
- 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;
91
- return c > 3 && r && Object.defineProperty(target, key, r), r;
92
- };
93
- // {{VueImport}}
94
52
  const properties = ['isLazyUpdate', 'plugins', 'closeActionEvents', 'content', 'createPopupOnClick', 'cssClass', 'disabled', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'iconCss', 'iconPosition', 'items', 'locale', 'target', 'beforeClose', 'beforeItemRender', 'beforeOpen', 'close', 'created', 'open', 'select'];
95
53
  const modelProps = [];
96
54
  const testProp = getProps({ props: properties });
@@ -107,79 +65,33 @@ for (let props of modelProps) {
107
65
  * <ejs-dropdownbutton>DropDownButton</ejs-dropdownbutton>
108
66
  * ```
109
67
  */
110
- let DropDownButtonComponent =
111
- /* Start Options({
68
+ let DropDownButtonComponent = vueDefineComponent({
69
+ name: 'DropDownButtonComponent',
70
+ mixins: [ComponentBase],
112
71
  props: props,
113
72
  watch: watch,
114
73
  emits: emitProbs,
115
- provide: function provide() {
74
+ provide() { return { custom: this.custom }; },
75
+ data() {
116
76
  return {
117
- custom: this.custom
77
+ ej2Instances: new DropDownButton({}),
78
+ propKeys: properties,
79
+ models: modelProps,
80
+ hasChildDirective: true,
81
+ hasInjectedModules: false,
82
+ tagMapper: { "e-dropdownbuttonitems": "e-dropdownbuttonitem" },
83
+ tagNameMapper: { "e-dropdownbuttonitems": "e-items" },
84
+ isVue3: !isExecute,
85
+ templateCollection: {},
118
86
  };
119
- }
120
- }) End */
121
- class DropDownButtonComponent extends ComponentBase {
122
- constructor() {
123
- super(arguments);
124
- this.propKeys = properties;
125
- this.models = modelProps;
126
- this.hasChildDirective = true;
127
- this.hasInjectedModules = false;
128
- this.tagMapper = { "e-dropdownbuttonitems": "e-dropdownbuttonitem" };
129
- this.tagNameMapper = { "e-dropdownbuttonitems": "e-items" };
130
- this.isVue3 = !isExecute;
131
- this.ej2Instances = new DropDownButton({});
87
+ },
88
+ created() {
132
89
  this.bindProperties();
133
90
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
134
91
  this.ej2Instances.setProperties = this.setProperties;
135
92
  this.ej2Instances.clearTemplate = this.clearTemplate;
136
93
  this.updated = this.updated;
137
- }
138
- clearTemplate(templateNames) {
139
- if (!templateNames) {
140
- templateNames = Object.keys(this.templateCollection || {});
141
- }
142
- if (templateNames.length && this.templateCollection) {
143
- for (let tempName of templateNames) {
144
- let elementCollection = this.templateCollection[tempName];
145
- if (elementCollection && elementCollection.length) {
146
- for (let ele of elementCollection) {
147
- let destroy = getValue('__vue__.$destroy', ele);
148
- if (destroy) {
149
- ele.__vue__.$destroy();
150
- }
151
- if (ele.innerHTML) {
152
- ele.innerHTML = '';
153
- }
154
- }
155
- delete this.templateCollection[tempName];
156
- }
157
- }
158
- }
159
- }
160
- setProperties(prop, muteOnChange) {
161
- if (this.isVue3) {
162
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
163
- }
164
- if (this.ej2Instances && this.ej2Instances._setProperties) {
165
- this.ej2Instances._setProperties(prop, muteOnChange);
166
- }
167
- if (prop && this.models && this.models.length) {
168
- Object.keys(prop).map((key) => {
169
- this.models.map((model) => {
170
- if ((key === model) && !(/datasource/i.test(key))) {
171
- if (this.isVue3) {
172
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
173
- }
174
- else {
175
- this.$emit('update:' + key, prop[key]);
176
- this.$emit('modelchanged', prop[key]);
177
- }
178
- }
179
- });
180
- });
181
- }
182
- }
94
+ },
183
95
  render(createElement) {
184
96
  let h = !isExecute ? gh : createElement;
185
97
  let slots = null;
@@ -187,73 +99,81 @@ class DropDownButtonComponent extends ComponentBase {
187
99
  slots = !isExecute ? this.$slots.default() : this.$slots.default;
188
100
  }
189
101
  return h('button', slots);
190
- }
191
- custom() {
192
- this.updated();
193
- }
194
- addItems(items, text) {
195
- return this.ej2Instances.addItems(items, text);
196
- }
197
- focusIn() {
198
- return this.ej2Instances.focusIn();
199
- }
200
- removeItems(items, isUniqueId) {
201
- return this.ej2Instances.removeItems(items, isUniqueId);
202
- }
203
- toggle() {
204
- return this.ej2Instances.toggle();
205
- }
206
- };
207
- DropDownButtonComponent = __decorate$1([
208
- EJComponentDecorator({
209
- props: properties
210
- }, isExecute)
211
- /* Start Options({
212
- props: props,
213
- watch: watch,
214
- emits: emitProbs,
215
- provide: function provide() {
216
- return {
217
- custom: this.custom
218
- };
219
- }
220
- }) End */
221
- ], DropDownButtonComponent);
102
+ },
103
+ methods: {
104
+ clearTemplate(templateNames) {
105
+ if (!templateNames) {
106
+ templateNames = Object.keys(this.templateCollection || {});
107
+ }
108
+ if (templateNames.length && this.templateCollection) {
109
+ for (let tempName of templateNames) {
110
+ let elementCollection = this.templateCollection[tempName];
111
+ if (elementCollection && elementCollection.length) {
112
+ for (let ele of elementCollection) {
113
+ let destroy = getValue('__vue__.$destroy', ele);
114
+ if (destroy) {
115
+ ele.__vue__.$destroy();
116
+ }
117
+ if (ele.innerHTML) {
118
+ ele.innerHTML = '';
119
+ }
120
+ }
121
+ delete this.templateCollection[tempName];
122
+ }
123
+ }
124
+ }
125
+ },
126
+ setProperties(prop, muteOnChange) {
127
+ if (this.isVue3) {
128
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
129
+ }
130
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
131
+ this.ej2Instances._setProperties(prop, muteOnChange);
132
+ }
133
+ if (prop && this.models && this.models.length) {
134
+ Object.keys(prop).map((key) => {
135
+ this.models.map((model) => {
136
+ if ((key === model) && !(/datasource/i.test(key))) {
137
+ if (this.isVue3) {
138
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
139
+ }
140
+ else {
141
+ this.$emit('update:' + key, prop[key]);
142
+ this.$emit('modelchanged', prop[key]);
143
+ }
144
+ }
145
+ });
146
+ });
147
+ }
148
+ },
149
+ custom() {
150
+ this.updated();
151
+ },
152
+ addItems(items, text) {
153
+ return this.ej2Instances.addItems(items, text);
154
+ },
155
+ focusIn() {
156
+ return this.ej2Instances.focusIn();
157
+ },
158
+ removeItems(items, isUniqueId) {
159
+ return this.ej2Instances.removeItems(items, isUniqueId);
160
+ },
161
+ toggle() {
162
+ return this.ej2Instances.toggle();
163
+ },
164
+ }
165
+ });
222
166
  const DropDownButtonPlugin = {
223
167
  name: 'ejs-dropdownbutton',
224
- install(Vue$$1) {
225
- Vue$$1.component(DropDownButtonPlugin.name, DropDownButtonComponent);
226
- Vue$$1.component(DropDownButtonItemPlugin.name, DropDownButtonItemDirective);
227
- Vue$$1.component(DropDownButtonItemsPlugin.name, DropDownButtonItemsDirective);
168
+ install(Vue) {
169
+ Vue.component(DropDownButtonPlugin.name, DropDownButtonComponent);
170
+ Vue.component(DropDownButtonItemPlugin.name, DropDownButtonItemDirective);
171
+ Vue.component(DropDownButtonItemsPlugin.name, DropDownButtonItemsDirective);
228
172
  }
229
173
  };
230
174
 
231
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
232
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
233
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
234
- 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;
235
- return c > 3 && r && Object.defineProperty(target, key, r), r;
236
- };
237
- // {{VueImport}}
238
- let vueImport$1;
239
- if (!isExecute || parseInt(allVue.version) < 3) {
240
- vueImport$1 = Vue;
241
- }
242
- else {
243
- vueImport$1 = Vue$1;
244
- }
245
- let SplitButtonItemsDirective =
246
- /* Start Options({
247
- inject: {
248
- custom: {
249
- default: null
250
- }
251
- }
252
- }) End */
253
- class SplitButtonItemsDirective extends vueImport$1 {
254
- constructor() {
255
- super(arguments);
256
- }
175
+ let SplitButtonItemsDirective = vueDefineComponent({
176
+ inject: { custom: { default: null } },
257
177
  render(createElement) {
258
178
  if (!isExecute) {
259
179
  let h = !isExecute ? gh : createElement;
@@ -264,57 +184,41 @@ class SplitButtonItemsDirective extends vueImport$1 {
264
184
  return h('div', { class: 'e-directive' }, slots);
265
185
  }
266
186
  return;
267
- }
187
+ },
268
188
  updated() {
269
189
  if (!isExecute && this.custom) {
270
190
  this.custom();
271
191
  }
272
- }
273
- getTag() {
274
- return 'e-splitbuttonitems';
275
- }
276
- };
277
- SplitButtonItemsDirective = __decorate$2([
278
- EJComponentDecorator({}, isExecute)
279
- /* Start Options({
280
- inject: {
281
- custom: {
282
- default: null
283
- }
192
+ },
193
+ methods: {
194
+ getTag() {
195
+ return 'e-splitbuttonitems';
284
196
  }
285
- }) End */
286
- ], SplitButtonItemsDirective);
197
+ }
198
+ });
287
199
  const SplitButtonItemsPlugin = {
288
200
  name: 'e-splitbuttonitems',
289
- install(Vue$$1) {
290
- Vue$$1.component(SplitButtonItemsPlugin.name, SplitButtonItemsDirective);
201
+ install(Vue) {
202
+ Vue.component(SplitButtonItemsPlugin.name, SplitButtonItemsDirective);
291
203
  }
292
204
  };
293
- let SplitButtonItemDirective = class SplitButtonItemDirective extends vueImport$1 {
205
+ let SplitButtonItemDirective = vueDefineComponent({
294
206
  render() {
295
207
  return;
208
+ },
209
+ methods: {
210
+ getTag() {
211
+ return 'e-splitbuttonitem';
212
+ }
296
213
  }
297
- getTag() {
298
- return 'e-splitbuttonitem';
299
- }
300
- };
301
- SplitButtonItemDirective = __decorate$2([
302
- EJComponentDecorator({}, isExecute)
303
- ], SplitButtonItemDirective);
214
+ });
304
215
  const SplitButtonItemPlugin = {
305
216
  name: 'e-splitbuttonitem',
306
- install(Vue$$1) {
307
- Vue$$1.component(SplitButtonItemPlugin.name, SplitButtonItemDirective);
217
+ install(Vue) {
218
+ Vue.component(SplitButtonItemPlugin.name, SplitButtonItemDirective);
308
219
  }
309
220
  };
310
221
 
311
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
312
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
313
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
314
- 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;
315
- return c > 3 && r && Object.defineProperty(target, key, r), r;
316
- };
317
- // {{VueImport}}
318
222
  const properties$1 = ['isLazyUpdate', 'plugins', 'closeActionEvents', 'content', 'createPopupOnClick', 'cssClass', 'disabled', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'iconCss', 'iconPosition', 'items', 'locale', 'target', 'beforeClose', 'beforeItemRender', 'beforeOpen', 'click', 'close', 'created', 'open', 'select'];
319
223
  const modelProps$1 = [];
320
224
  const testProp$1 = getProps({ props: properties$1 });
@@ -331,79 +235,33 @@ for (let props of modelProps$1) {
331
235
  * <ejs-splitbutton content='Split Button'></ejs-splitbutton>
332
236
  * ```
333
237
  */
334
- let SplitButtonComponent =
335
- /* Start Options({
336
- props: props,
337
- watch: watch,
338
- emits: emitProbs,
339
- provide: function provide() {
238
+ let SplitButtonComponent = vueDefineComponent({
239
+ name: 'SplitButtonComponent',
240
+ mixins: [ComponentBase],
241
+ props: props$1,
242
+ watch: watch$1,
243
+ emits: emitProbs$1,
244
+ provide() { return { custom: this.custom }; },
245
+ data() {
340
246
  return {
341
- custom: this.custom
247
+ ej2Instances: new SplitButton({}),
248
+ propKeys: properties$1,
249
+ models: modelProps$1,
250
+ hasChildDirective: true,
251
+ hasInjectedModules: false,
252
+ tagMapper: { "e-splitbuttonitems": "e-splitbuttonitem" },
253
+ tagNameMapper: { "e-splitbuttonitems": "e-items" },
254
+ isVue3: !isExecute,
255
+ templateCollection: {},
342
256
  };
343
- }
344
- }) End */
345
- class SplitButtonComponent extends ComponentBase {
346
- constructor() {
347
- super(arguments);
348
- this.propKeys = properties$1;
349
- this.models = modelProps$1;
350
- this.hasChildDirective = true;
351
- this.hasInjectedModules = false;
352
- this.tagMapper = { "e-splitbuttonitems": "e-splitbuttonitem" };
353
- this.tagNameMapper = { "e-splitbuttonitems": "e-items" };
354
- this.isVue3 = !isExecute;
355
- this.ej2Instances = new SplitButton({});
257
+ },
258
+ created() {
356
259
  this.bindProperties();
357
260
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
358
261
  this.ej2Instances.setProperties = this.setProperties;
359
262
  this.ej2Instances.clearTemplate = this.clearTemplate;
360
263
  this.updated = this.updated;
361
- }
362
- clearTemplate(templateNames) {
363
- if (!templateNames) {
364
- templateNames = Object.keys(this.templateCollection || {});
365
- }
366
- if (templateNames.length && this.templateCollection) {
367
- for (let tempName of templateNames) {
368
- let elementCollection = this.templateCollection[tempName];
369
- if (elementCollection && elementCollection.length) {
370
- for (let ele of elementCollection) {
371
- let destroy = getValue('__vue__.$destroy', ele);
372
- if (destroy) {
373
- ele.__vue__.$destroy();
374
- }
375
- if (ele.innerHTML) {
376
- ele.innerHTML = '';
377
- }
378
- }
379
- delete this.templateCollection[tempName];
380
- }
381
- }
382
- }
383
- }
384
- setProperties(prop, muteOnChange) {
385
- if (this.isVue3) {
386
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
387
- }
388
- if (this.ej2Instances && this.ej2Instances._setProperties) {
389
- this.ej2Instances._setProperties(prop, muteOnChange);
390
- }
391
- if (prop && this.models && this.models.length) {
392
- Object.keys(prop).map((key) => {
393
- this.models.map((model) => {
394
- if ((key === model) && !(/datasource/i.test(key))) {
395
- if (this.isVue3) {
396
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
397
- }
398
- else {
399
- this.$emit('update:' + key, prop[key]);
400
- this.$emit('modelchanged', prop[key]);
401
- }
402
- }
403
- });
404
- });
405
- }
406
- }
264
+ },
407
265
  render(createElement) {
408
266
  let h = !isExecute ? gh : createElement;
409
267
  let slots = null;
@@ -411,54 +269,79 @@ class SplitButtonComponent extends ComponentBase {
411
269
  slots = !isExecute ? this.$slots.default() : this.$slots.default;
412
270
  }
413
271
  return h('button', slots);
414
- }
415
- custom() {
416
- this.updated();
417
- }
418
- addItems(items, text) {
419
- return this.ej2Instances.addItems(items, text);
420
- }
421
- focusIn() {
422
- return this.ej2Instances.focusIn();
423
- }
424
- removeItems(items, isUniqueId) {
425
- return this.ej2Instances.removeItems(items, isUniqueId);
426
- }
427
- toggle() {
428
- return this.ej2Instances.toggle();
429
- }
430
- };
431
- SplitButtonComponent = __decorate$3([
432
- EJComponentDecorator({
433
- props: properties$1
434
- }, isExecute)
435
- /* Start Options({
436
- props: props,
437
- watch: watch,
438
- emits: emitProbs,
439
- provide: function provide() {
440
- return {
441
- custom: this.custom
442
- };
443
- }
444
- }) End */
445
- ], SplitButtonComponent);
272
+ },
273
+ methods: {
274
+ clearTemplate(templateNames) {
275
+ if (!templateNames) {
276
+ templateNames = Object.keys(this.templateCollection || {});
277
+ }
278
+ if (templateNames.length && this.templateCollection) {
279
+ for (let tempName of templateNames) {
280
+ let elementCollection = this.templateCollection[tempName];
281
+ if (elementCollection && elementCollection.length) {
282
+ for (let ele of elementCollection) {
283
+ let destroy = getValue('__vue__.$destroy', ele);
284
+ if (destroy) {
285
+ ele.__vue__.$destroy();
286
+ }
287
+ if (ele.innerHTML) {
288
+ ele.innerHTML = '';
289
+ }
290
+ }
291
+ delete this.templateCollection[tempName];
292
+ }
293
+ }
294
+ }
295
+ },
296
+ setProperties(prop, muteOnChange) {
297
+ if (this.isVue3) {
298
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
299
+ }
300
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
301
+ this.ej2Instances._setProperties(prop, muteOnChange);
302
+ }
303
+ if (prop && this.models && this.models.length) {
304
+ Object.keys(prop).map((key) => {
305
+ this.models.map((model) => {
306
+ if ((key === model) && !(/datasource/i.test(key))) {
307
+ if (this.isVue3) {
308
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
309
+ }
310
+ else {
311
+ this.$emit('update:' + key, prop[key]);
312
+ this.$emit('modelchanged', prop[key]);
313
+ }
314
+ }
315
+ });
316
+ });
317
+ }
318
+ },
319
+ custom() {
320
+ this.updated();
321
+ },
322
+ addItems(items, text) {
323
+ return this.ej2Instances.addItems(items, text);
324
+ },
325
+ focusIn() {
326
+ return this.ej2Instances.focusIn();
327
+ },
328
+ removeItems(items, isUniqueId) {
329
+ return this.ej2Instances.removeItems(items, isUniqueId);
330
+ },
331
+ toggle() {
332
+ return this.ej2Instances.toggle();
333
+ },
334
+ }
335
+ });
446
336
  const SplitButtonPlugin = {
447
337
  name: 'ejs-splitbutton',
448
- install(Vue$$1) {
449
- Vue$$1.component(SplitButtonPlugin.name, SplitButtonComponent);
450
- Vue$$1.component(SplitButtonItemPlugin.name, SplitButtonItemDirective);
451
- Vue$$1.component(SplitButtonItemsPlugin.name, SplitButtonItemsDirective);
338
+ install(Vue) {
339
+ Vue.component(SplitButtonPlugin.name, SplitButtonComponent);
340
+ Vue.component(SplitButtonItemPlugin.name, SplitButtonItemDirective);
341
+ Vue.component(SplitButtonItemsPlugin.name, SplitButtonItemsDirective);
452
342
  }
453
343
  };
454
344
 
455
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
456
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
457
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
458
- 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;
459
- return c > 3 && r && Object.defineProperty(target, key, r), r;
460
- };
461
- // {{VueImport}}
462
345
  const properties$2 = ['isLazyUpdate', 'plugins', 'animationSettings', 'content', 'cssClass', 'disabled', 'duration', 'enableHtmlSanitizer', 'enableProgress', 'iconCss', 'iconPosition', 'isPrimary', 'isToggle', 'spinSettings', 'begin', 'created', 'end', 'fail', 'progress'];
463
346
  const modelProps$2 = [];
464
347
  const testProp$2 = getProps({ props: properties$2 });
@@ -475,79 +358,33 @@ for (let props of modelProps$2) {
475
358
  * <ejs-progressbutton content='Progress Button'></ejs-progressbutton>
476
359
  * ```
477
360
  */
478
- let ProgressButtonComponent =
479
- /* Start Options({
480
- props: props,
481
- watch: watch,
482
- emits: emitProbs,
483
- provide: function provide() {
361
+ let ProgressButtonComponent = vueDefineComponent({
362
+ name: 'ProgressButtonComponent',
363
+ mixins: [ComponentBase],
364
+ props: props$2,
365
+ watch: watch$2,
366
+ emits: emitProbs$2,
367
+ provide() { return { custom: this.custom }; },
368
+ data() {
484
369
  return {
485
- custom: this.custom
370
+ ej2Instances: new ProgressButton({}),
371
+ propKeys: properties$2,
372
+ models: modelProps$2,
373
+ hasChildDirective: false,
374
+ hasInjectedModules: false,
375
+ tagMapper: {},
376
+ tagNameMapper: {},
377
+ isVue3: !isExecute,
378
+ templateCollection: {},
486
379
  };
487
- }
488
- }) End */
489
- class ProgressButtonComponent extends ComponentBase {
490
- constructor() {
491
- super(arguments);
492
- this.propKeys = properties$2;
493
- this.models = modelProps$2;
494
- this.hasChildDirective = false;
495
- this.hasInjectedModules = false;
496
- this.tagMapper = {};
497
- this.tagNameMapper = {};
498
- this.isVue3 = !isExecute;
499
- this.ej2Instances = new ProgressButton({});
380
+ },
381
+ created() {
500
382
  this.bindProperties();
501
383
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
502
384
  this.ej2Instances.setProperties = this.setProperties;
503
385
  this.ej2Instances.clearTemplate = this.clearTemplate;
504
386
  this.updated = this.updated;
505
- }
506
- clearTemplate(templateNames) {
507
- if (!templateNames) {
508
- templateNames = Object.keys(this.templateCollection || {});
509
- }
510
- if (templateNames.length && this.templateCollection) {
511
- for (let tempName of templateNames) {
512
- let elementCollection = this.templateCollection[tempName];
513
- if (elementCollection && elementCollection.length) {
514
- for (let ele of elementCollection) {
515
- let destroy = getValue('__vue__.$destroy', ele);
516
- if (destroy) {
517
- ele.__vue__.$destroy();
518
- }
519
- if (ele.innerHTML) {
520
- ele.innerHTML = '';
521
- }
522
- }
523
- delete this.templateCollection[tempName];
524
- }
525
- }
526
- }
527
- }
528
- setProperties(prop, muteOnChange) {
529
- if (this.isVue3) {
530
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
531
- }
532
- if (this.ej2Instances && this.ej2Instances._setProperties) {
533
- this.ej2Instances._setProperties(prop, muteOnChange);
534
- }
535
- if (prop && this.models && this.models.length) {
536
- Object.keys(prop).map((key) => {
537
- this.models.map((model) => {
538
- if ((key === model) && !(/datasource/i.test(key))) {
539
- if (this.isVue3) {
540
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
541
- }
542
- else {
543
- this.$emit('update:' + key, prop[key]);
544
- this.$emit('modelchanged', prop[key]);
545
- }
546
- }
547
- });
548
- });
549
- }
550
- }
387
+ },
551
388
  render(createElement) {
552
389
  let h = !isExecute ? gh : createElement;
553
390
  let slots = null;
@@ -555,45 +392,77 @@ class ProgressButtonComponent extends ComponentBase {
555
392
  slots = !isExecute ? this.$slots.default() : this.$slots.default;
556
393
  }
557
394
  return h('button', slots);
558
- }
559
- custom() {
560
- this.updated();
561
- }
562
- click() {
563
- return this.ej2Instances.click();
564
- }
565
- focusIn() {
566
- return this.ej2Instances.focusIn();
567
- }
568
- progressComplete() {
569
- return this.ej2Instances.progressComplete();
570
- }
571
- start(percent) {
572
- return this.ej2Instances.start(percent);
573
- }
574
- stop() {
575
- return this.ej2Instances.stop();
576
- }
577
- };
578
- ProgressButtonComponent = __decorate$4([
579
- EJComponentDecorator({
580
- props: properties$2
581
- }, isExecute)
582
- /* Start Options({
583
- props: props,
584
- watch: watch,
585
- emits: emitProbs,
586
- provide: function provide() {
587
- return {
588
- custom: this.custom
589
- };
590
- }
591
- }) End */
592
- ], ProgressButtonComponent);
395
+ },
396
+ methods: {
397
+ clearTemplate(templateNames) {
398
+ if (!templateNames) {
399
+ templateNames = Object.keys(this.templateCollection || {});
400
+ }
401
+ if (templateNames.length && this.templateCollection) {
402
+ for (let tempName of templateNames) {
403
+ let elementCollection = this.templateCollection[tempName];
404
+ if (elementCollection && elementCollection.length) {
405
+ for (let ele of elementCollection) {
406
+ let destroy = getValue('__vue__.$destroy', ele);
407
+ if (destroy) {
408
+ ele.__vue__.$destroy();
409
+ }
410
+ if (ele.innerHTML) {
411
+ ele.innerHTML = '';
412
+ }
413
+ }
414
+ delete this.templateCollection[tempName];
415
+ }
416
+ }
417
+ }
418
+ },
419
+ setProperties(prop, muteOnChange) {
420
+ if (this.isVue3) {
421
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
422
+ }
423
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
424
+ this.ej2Instances._setProperties(prop, muteOnChange);
425
+ }
426
+ if (prop && this.models && this.models.length) {
427
+ Object.keys(prop).map((key) => {
428
+ this.models.map((model) => {
429
+ if ((key === model) && !(/datasource/i.test(key))) {
430
+ if (this.isVue3) {
431
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
432
+ }
433
+ else {
434
+ this.$emit('update:' + key, prop[key]);
435
+ this.$emit('modelchanged', prop[key]);
436
+ }
437
+ }
438
+ });
439
+ });
440
+ }
441
+ },
442
+ custom() {
443
+ this.updated();
444
+ },
445
+ click() {
446
+ return this.ej2Instances.click();
447
+ },
448
+ focusIn() {
449
+ return this.ej2Instances.focusIn();
450
+ },
451
+ progressComplete() {
452
+ return this.ej2Instances.progressComplete();
453
+ },
454
+ start(percent) {
455
+ return this.ej2Instances.start(percent);
456
+ },
457
+ stop() {
458
+ return this.ej2Instances.stop();
459
+ },
460
+ }
461
+ });
593
462
  const ProgressButtonPlugin = {
594
463
  name: 'ejs-progressbutton',
595
- install(Vue$$1) {
596
- Vue$$1.component(ProgressButtonPlugin.name, ProgressButtonComponent);
464
+ install(Vue) {
465
+ Vue.component(ProgressButtonPlugin.name, ProgressButtonComponent);
597
466
  }
598
467
  };
599
468