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