@syncfusion/ej2-vue-splitbuttons 20.4.48 → 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.
- package/CHANGELOG.md +3 -13
- package/dist/ej2-vue-splitbuttons.umd.min.js +2 -2
- package/dist/ej2-vue-splitbuttons.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-splitbuttons.es2015.js +303 -434
- package/dist/es6/ej2-vue-splitbuttons.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-splitbuttons.es5.js +343 -513
- package/dist/es6/ej2-vue-splitbuttons.es5.js.map +1 -1
- package/dist/global/ej2-vue-splitbuttons.min.js +2 -2
- package/package.json +9 -9
- package/src/drop-down-button/dropdownbutton.component.d.ts +2 -26
- package/src/drop-down-button/dropdownbutton.component.js +95 -124
- package/src/drop-down-button/items.directive.d.ts +2 -12
- package/src/drop-down-button/items.directive.js +22 -71
- package/src/progress-button/progressbutton.component.d.ts +2 -27
- package/src/progress-button/progressbutton.component.js +98 -127
- package/src/split-button/items.directive.d.ts +2 -12
- package/src/split-button/items.directive.js +22 -71
- package/src/split-button/splitbutton.component.d.ts +2 -26
- package/src/split-button/splitbutton.component.js +95 -124
- package/styles/bootstrap-dark.css +44 -44
- package/styles/bootstrap.css +44 -44
- package/styles/bootstrap4.css +44 -44
- package/styles/bootstrap5-dark.css +48 -48
- package/styles/bootstrap5.css +48 -48
- package/styles/button-group/bootstrap-dark.css +30 -30
- package/styles/button-group/bootstrap.css +30 -30
- package/styles/button-group/bootstrap4.css +31 -31
- package/styles/button-group/bootstrap5-dark.css +30 -30
- package/styles/button-group/bootstrap5.css +30 -30
- package/styles/button-group/fabric-dark.css +30 -30
- package/styles/button-group/fabric.css +30 -30
- package/styles/button-group/fluent-dark.css +30 -30
- package/styles/button-group/fluent.css +30 -30
- package/styles/button-group/highcontrast-light.css +30 -30
- package/styles/button-group/highcontrast.css +30 -30
- package/styles/button-group/material-dark.css +30 -30
- package/styles/button-group/material.css +30 -30
- package/styles/button-group/tailwind-dark.css +30 -30
- package/styles/button-group/tailwind.css +30 -30
- package/styles/fabric-dark.css +44 -44
- package/styles/fabric.css +44 -44
- package/styles/fluent-dark.css +48 -48
- package/styles/fluent.css +48 -48
- package/styles/highcontrast-light.css +44 -44
- package/styles/highcontrast.css +44 -44
- package/styles/material-dark.css +43 -43
- package/styles/material.css +43 -43
- package/styles/progress-button/bootstrap-dark.css +14 -14
- package/styles/progress-button/bootstrap.css +14 -14
- package/styles/progress-button/bootstrap4.css +13 -13
- package/styles/progress-button/bootstrap5-dark.css +18 -18
- package/styles/progress-button/bootstrap5.css +18 -18
- package/styles/progress-button/fabric-dark.css +14 -14
- package/styles/progress-button/fabric.css +14 -14
- package/styles/progress-button/fluent-dark.css +18 -18
- package/styles/progress-button/fluent.css +18 -18
- package/styles/progress-button/highcontrast-light.css +14 -14
- package/styles/progress-button/highcontrast.css +14 -14
- package/styles/progress-button/material-dark.css +13 -13
- package/styles/progress-button/material.css +13 -13
- package/styles/progress-button/tailwind-dark.css +18 -18
- package/styles/progress-button/tailwind.css +18 -18
- package/styles/tailwind-dark.css +48 -48
- package/styles/tailwind.css +48 -48
|
@@ -1,42 +1,10 @@
|
|
|
1
1
|
import { DropDownButton, ProgressButton, SplitButton } from '@syncfusion/ej2-splitbuttons';
|
|
2
|
-
import { ComponentBase,
|
|
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
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
17
|
+
},
|
|
18
|
+
updated: function () {
|
|
51
19
|
if (!isExecute && this.custom) {
|
|
52
20
|
this.custom();
|
|
53
21
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
|
73
|
-
Vue
|
|
31
|
+
install: function (Vue) {
|
|
32
|
+
Vue.component(DropDownButtonItemsPlugin.name, DropDownButtonItemsDirective);
|
|
74
33
|
}
|
|
75
34
|
};
|
|
76
|
-
var DropDownButtonItemDirective =
|
|
77
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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
|
|
95
|
-
Vue
|
|
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 =
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
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
|
|
246
|
-
Vue
|
|
247
|
-
Vue
|
|
248
|
-
Vue
|
|
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
|
|
253
|
-
|
|
254
|
-
|
|
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
|
-
|
|
191
|
+
},
|
|
192
|
+
updated: function () {
|
|
296
193
|
if (!isExecute && this.custom) {
|
|
297
194
|
this.custom();
|
|
298
195
|
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
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
|
|
318
|
-
Vue
|
|
205
|
+
install: function (Vue) {
|
|
206
|
+
Vue.component(SplitButtonItemsPlugin.name, SplitButtonItemsDirective);
|
|
319
207
|
}
|
|
320
208
|
};
|
|
321
|
-
var SplitButtonItemDirective =
|
|
322
|
-
|
|
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
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
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
|
|
340
|
-
Vue
|
|
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 =
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
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
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
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
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
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
|
-
|
|
486
|
-
|
|
487
|
-
}
|
|
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
|
|
491
|
-
Vue
|
|
492
|
-
Vue
|
|
493
|
-
Vue
|
|
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 =
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
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
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
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
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
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
|
-
|
|
642
|
-
|
|
643
|
-
}
|
|
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
|
|
647
|
-
Vue
|
|
476
|
+
install: function (Vue) {
|
|
477
|
+
Vue.component(ProgressButtonPlugin.name, ProgressButtonComponent);
|
|
648
478
|
}
|
|
649
479
|
};
|
|
650
480
|
|