@progress/kendo-vue-buttons 2.7.3 → 2.8.0-dev.202201111325
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/dist/cdn/js/kendo-vue-buttons.js +1 -1
- package/dist/es/Button.d.ts +75 -6
- package/dist/es/Button.js +64 -19
- package/dist/es/ButtonGroup.d.ts +5 -6
- package/dist/es/ButtonGroup.js +4 -4
- package/dist/es/ButtonInterface.d.ts +4 -1
- package/dist/es/ButtonWrap.d.ts +5 -6
- package/dist/es/ButtonWrap.js +3 -3
- package/dist/es/Chip/Chip.d.ts +56 -10
- package/dist/es/Chip/Chip.js +47 -26
- package/dist/es/Chip/ChipList.d.ts +42 -6
- package/dist/es/Chip/ChipList.js +39 -13
- package/dist/es/FloatingActionButton/FloatingActionButton.d.ts +5 -6
- package/dist/es/FloatingActionButton/FloatingActionButton.js +3 -3
- package/dist/es/FloatingActionButton/FloatingActionButtonItem.d.ts +5 -6
- package/dist/es/FloatingActionButton/FloatingActionButtonItem.js +3 -3
- package/dist/es/FloatingActionButton/models/shape.d.ts +1 -1
- package/dist/es/ListButton/ButtonItem.d.ts +5 -6
- package/dist/es/ListButton/ButtonItem.js +25 -12
- package/dist/es/ListButton/DropDownButton.d.ts +5 -6
- package/dist/es/ListButton/DropDownButton.js +61 -19
- package/dist/es/ListButton/SplitButton.d.ts +5 -6
- package/dist/es/ListButton/SplitButton.js +66 -26
- package/dist/es/ListButton/models/ListButtonProps.d.ts +138 -0
- package/dist/es/additionalTypes.ts +7 -1
- package/dist/es/buttonLook.d.ts +0 -1
- package/dist/es/main.d.ts +13 -13
- package/dist/es/main.js +13 -13
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/toolbar/Toolbar.d.ts +5 -6
- package/dist/es/toolbar/Toolbar.js +16 -9
- package/dist/es/toolbar/tools/ToolbarItem.d.ts +5 -6
- package/dist/es/toolbar/tools/ToolbarItem.js +3 -3
- package/dist/es/toolbar/tools/ToolbarSeparator.d.ts +4 -5
- package/dist/es/toolbar/tools/ToolbarSeparator.js +3 -3
- package/dist/es/toolbar/tools/ToolbarSpacer.d.ts +4 -5
- package/dist/es/toolbar/tools/ToolbarSpacer.js +3 -3
- package/dist/es/util.js +6 -7
- package/dist/npm/Button.d.ts +75 -6
- package/dist/npm/Button.js +65 -20
- package/dist/npm/ButtonGroup.d.ts +5 -6
- package/dist/npm/ButtonGroup.js +6 -6
- package/dist/npm/ButtonInterface.d.ts +4 -1
- package/dist/npm/ButtonWrap.d.ts +5 -6
- package/dist/npm/ButtonWrap.js +5 -5
- package/dist/npm/Chip/Chip.d.ts +56 -10
- package/dist/npm/Chip/Chip.js +48 -27
- package/dist/npm/Chip/ChipList.d.ts +42 -6
- package/dist/npm/Chip/ChipList.js +40 -14
- package/dist/npm/FloatingActionButton/FloatingActionButton.d.ts +5 -6
- package/dist/npm/FloatingActionButton/FloatingActionButton.js +5 -5
- package/dist/npm/FloatingActionButton/FloatingActionButtonItem.d.ts +5 -6
- package/dist/npm/FloatingActionButton/FloatingActionButtonItem.js +5 -5
- package/dist/npm/FloatingActionButton/models/shape.d.ts +1 -1
- package/dist/npm/ListButton/ButtonItem.d.ts +5 -6
- package/dist/npm/ListButton/ButtonItem.js +27 -14
- package/dist/npm/ListButton/DropDownButton.d.ts +5 -6
- package/dist/npm/ListButton/DropDownButton.js +62 -20
- package/dist/npm/ListButton/SplitButton.d.ts +5 -6
- package/dist/npm/ListButton/SplitButton.js +67 -27
- package/dist/npm/ListButton/models/ListButtonProps.d.ts +138 -0
- package/dist/npm/additionalTypes.ts +7 -1
- package/dist/npm/buttonLook.d.ts +0 -1
- package/dist/npm/main.d.ts +13 -13
- package/dist/npm/main.js +13 -12
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/toolbar/Toolbar.d.ts +5 -6
- package/dist/npm/toolbar/Toolbar.js +18 -11
- package/dist/npm/toolbar/tools/ToolbarItem.d.ts +5 -6
- package/dist/npm/toolbar/tools/ToolbarItem.js +5 -5
- package/dist/npm/toolbar/tools/ToolbarSeparator.d.ts +4 -5
- package/dist/npm/toolbar/tools/ToolbarSeparator.js +5 -5
- package/dist/npm/toolbar/tools/ToolbarSpacer.d.ts +4 -5
- package/dist/npm/toolbar/tools/ToolbarSpacer.js +5 -5
- package/dist/npm/util.js +6 -7
- package/package.json +5 -5
|
@@ -19,7 +19,7 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", {
|
|
20
20
|
value: true
|
|
21
21
|
});
|
|
22
|
-
exports.
|
|
22
|
+
exports.SplitButtonVue2 = exports.SplitButton = void 0; // @ts-ignore
|
|
23
23
|
|
|
24
24
|
var Vue = require("vue");
|
|
25
25
|
|
|
@@ -47,7 +47,7 @@ var util_1 = require("../util");
|
|
|
47
47
|
|
|
48
48
|
var styles = util_1.default.styles; // tslint:enable:max-line-length
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var SplitButtonVue2 = {
|
|
51
51
|
name: 'KendoSplitButton',
|
|
52
52
|
// @ts-ignore
|
|
53
53
|
emits: {
|
|
@@ -71,6 +71,29 @@ var SplitButton = {
|
|
|
71
71
|
tabIndex: Number,
|
|
72
72
|
disabled: Boolean,
|
|
73
73
|
icon: String,
|
|
74
|
+
size: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: 'medium'
|
|
77
|
+
},
|
|
78
|
+
rounded: {
|
|
79
|
+
type: String,
|
|
80
|
+
default: 'medium'
|
|
81
|
+
},
|
|
82
|
+
fillMode: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: 'solid',
|
|
85
|
+
validator: function validator(value) {
|
|
86
|
+
return [null, 'flat', 'link', 'outline', 'solid'].includes(value);
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
// eslint-disable-next-line max-len
|
|
90
|
+
themeColor: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: 'base',
|
|
93
|
+
validator: function validator(value) {
|
|
94
|
+
return [null, 'base', 'dark', 'error', 'info', 'inverse', 'inverse', 'light', 'primary', 'secondary', 'success', 'tertiary', 'warning'].includes(value);
|
|
95
|
+
}
|
|
96
|
+
},
|
|
74
97
|
opened: {
|
|
75
98
|
type: Boolean,
|
|
76
99
|
default: undefined
|
|
@@ -118,13 +141,11 @@ var SplitButton = {
|
|
|
118
141
|
return this.$props.opened === undefined ? this.currentOpened : this.$props.opened;
|
|
119
142
|
},
|
|
120
143
|
wrapperClass: function wrapperClass() {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
return _a = {
|
|
124
|
-
'k-widget': true,
|
|
144
|
+
return {
|
|
125
145
|
'k-split-button': true,
|
|
126
|
-
'k-button-group': true
|
|
127
|
-
|
|
146
|
+
'k-button-group': true,
|
|
147
|
+
'k-focus': this.focused
|
|
148
|
+
};
|
|
128
149
|
}
|
|
129
150
|
},
|
|
130
151
|
// @ts-ignore
|
|
@@ -160,6 +181,7 @@ var SplitButton = {
|
|
|
160
181
|
}) : dataItem;
|
|
161
182
|
return (// @ts-ignore
|
|
162
183
|
h(ButtonItem_1.ButtonItem, {
|
|
184
|
+
"class": "k-menu-item",
|
|
163
185
|
dataItem: currentDataItem,
|
|
164
186
|
attrs: this.v3 ? undefined : {
|
|
165
187
|
dataItem: currentDataItem,
|
|
@@ -191,8 +213,10 @@ var SplitButton = {
|
|
|
191
213
|
var renderPopup = function renderPopup() {
|
|
192
214
|
var _this2 = this;
|
|
193
215
|
|
|
194
|
-
var _a = this.$props
|
|
195
|
-
|
|
216
|
+
var _a = this.$props,
|
|
217
|
+
_b = _a.popupSettings,
|
|
218
|
+
popupSettings = _b === void 0 ? {} : _b,
|
|
219
|
+
size = _a.size;
|
|
196
220
|
return (// @ts-ignore function children
|
|
197
221
|
h(kendo_vue_popup_1.Popup, {
|
|
198
222
|
anchor: this._anchor,
|
|
@@ -200,13 +224,13 @@ var SplitButton = {
|
|
|
200
224
|
anchor: this._anchor,
|
|
201
225
|
show: this.computedOpened,
|
|
202
226
|
animate: popupSettings.animate,
|
|
203
|
-
popupClass: kendo_vue_common_1.classNames('k-
|
|
227
|
+
popupClass: kendo_vue_common_1.classNames('k-menu-popup', popupSettings.popupClass),
|
|
204
228
|
anchorAlign: popupSettings.anchorAlign || popup_1.getAnchorAlign(rtl),
|
|
205
229
|
popupAlign: popupSettings.popupAlign || popup_1.getPopupAlign(rtl)
|
|
206
230
|
},
|
|
207
231
|
show: this.computedOpened,
|
|
208
232
|
animate: popupSettings.animate,
|
|
209
|
-
popupClass: kendo_vue_common_1.classNames('k-
|
|
233
|
+
popupClass: kendo_vue_common_1.classNames('k-menu-popup', popupSettings.popupClass),
|
|
210
234
|
anchorAlign: popupSettings.anchorAlign || popup_1.getAnchorAlign(rtl),
|
|
211
235
|
popupAlign: popupSettings.popupAlign || popup_1.getPopupAlign(rtl),
|
|
212
236
|
style: rtl ? {
|
|
@@ -214,7 +238,7 @@ var SplitButton = {
|
|
|
214
238
|
} : undefined
|
|
215
239
|
}, this.v3 ? function () {
|
|
216
240
|
return [h("ul", {
|
|
217
|
-
"class": "k-
|
|
241
|
+
"class": "k-group k-menu-group k-reset k-menu-group-" + (kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size),
|
|
218
242
|
role: "menu",
|
|
219
243
|
attrs: _this2.v3 ? undefined : {
|
|
220
244
|
role: "menu",
|
|
@@ -223,7 +247,7 @@ var SplitButton = {
|
|
|
223
247
|
id: _this2.guid
|
|
224
248
|
}, [renderChildItems.call(_this2)])];
|
|
225
249
|
} : [h("ul", {
|
|
226
|
-
"class": "k-
|
|
250
|
+
"class": "k-group k-menu-group k-reset k-menu-group-" + (kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size),
|
|
227
251
|
role: "menu",
|
|
228
252
|
attrs: _this2.v3 ? undefined : {
|
|
229
253
|
role: "menu",
|
|
@@ -250,16 +274,12 @@ var SplitButton = {
|
|
|
250
274
|
}
|
|
251
275
|
}, [// @ts-ignore function children
|
|
252
276
|
h(Button_1.Button, {
|
|
253
|
-
|
|
254
|
-
return _this.onItemClick(event, -1);
|
|
255
|
-
},
|
|
256
|
-
on: this.v3 ? undefined : {
|
|
257
|
-
"click": function onClick(event) {
|
|
258
|
-
return _this.onItemClick(event, -1);
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
disabled: disabled || undefined,
|
|
277
|
+
size: this.$props.size,
|
|
262
278
|
attrs: this.v3 ? undefined : {
|
|
279
|
+
size: this.$props.size,
|
|
280
|
+
rounded: this.$props.rounded,
|
|
281
|
+
fillMode: this.$props.fillMode,
|
|
282
|
+
themeColor: this.$props.themeColor,
|
|
263
283
|
disabled: disabled || undefined,
|
|
264
284
|
tabIndex: tabIndex,
|
|
265
285
|
accessKey: this.$props.accessKey,
|
|
@@ -276,6 +296,18 @@ var SplitButton = {
|
|
|
276
296
|
"aria-owns": this.guid,
|
|
277
297
|
"aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? this.guid + "-" + this.focusedIndex : undefined
|
|
278
298
|
},
|
|
299
|
+
rounded: this.$props.rounded,
|
|
300
|
+
fillMode: this.$props.fillMode,
|
|
301
|
+
themeColor: this.$props.themeColor,
|
|
302
|
+
onClick: function onClick(event) {
|
|
303
|
+
return _this.onItemClick(event, -1);
|
|
304
|
+
},
|
|
305
|
+
on: this.v3 ? undefined : {
|
|
306
|
+
"click": function onClick(event) {
|
|
307
|
+
return _this.onItemClick(event, -1);
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
disabled: disabled || undefined,
|
|
279
311
|
tabIndex: tabIndex,
|
|
280
312
|
accessKey: this.$props.accessKey,
|
|
281
313
|
"class": this.$props.buttonClass,
|
|
@@ -296,8 +328,12 @@ var SplitButton = {
|
|
|
296
328
|
return [_this3.$props.text];
|
|
297
329
|
} : [_this3.$props.text]), // @ts-ignore
|
|
298
330
|
h(Button_1.Button, {
|
|
299
|
-
|
|
331
|
+
size: this.$props.size,
|
|
300
332
|
attrs: this.v3 ? undefined : {
|
|
333
|
+
size: this.$props.size,
|
|
334
|
+
rounded: this.$props.rounded,
|
|
335
|
+
fillMode: this.$props.fillMode,
|
|
336
|
+
themeColor: this.$props.themeColor,
|
|
301
337
|
icon: "arrow-s",
|
|
302
338
|
disabled: disabled || undefined,
|
|
303
339
|
tabIndex: -1,
|
|
@@ -305,6 +341,10 @@ var SplitButton = {
|
|
|
305
341
|
dir: dir,
|
|
306
342
|
"aria-label": "menu toggling button"
|
|
307
343
|
},
|
|
344
|
+
rounded: this.$props.rounded,
|
|
345
|
+
fillMode: this.$props.fillMode,
|
|
346
|
+
themeColor: this.$props.themeColor,
|
|
347
|
+
icon: "arrow-s",
|
|
308
348
|
disabled: disabled || undefined,
|
|
309
349
|
tabIndex: -1,
|
|
310
350
|
look: this.$props.look,
|
|
@@ -480,6 +520,6 @@ var SplitButton = {
|
|
|
480
520
|
}
|
|
481
521
|
}
|
|
482
522
|
};
|
|
483
|
-
exports.
|
|
484
|
-
var
|
|
485
|
-
exports.
|
|
523
|
+
exports.SplitButtonVue2 = SplitButtonVue2;
|
|
524
|
+
var SplitButton = SplitButtonVue2;
|
|
525
|
+
exports.SplitButton = SplitButton;
|
|
@@ -68,6 +68,75 @@ export interface DropDownButtonProps {
|
|
|
68
68
|
* Sets the direction of the component.
|
|
69
69
|
*/
|
|
70
70
|
dir?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Configures the `size` of the Button.
|
|
73
|
+
*
|
|
74
|
+
* The available options are:
|
|
75
|
+
* - small
|
|
76
|
+
* - medium
|
|
77
|
+
* - large
|
|
78
|
+
* - null—Does not set a size `className`.
|
|
79
|
+
*
|
|
80
|
+
* @default `medium`
|
|
81
|
+
*/
|
|
82
|
+
size?: null | 'small' | 'medium' | 'large' | string;
|
|
83
|
+
/**
|
|
84
|
+
* Configures the `shape` of the Button.
|
|
85
|
+
*
|
|
86
|
+
* The available options are:
|
|
87
|
+
* - rectangle
|
|
88
|
+
* - square
|
|
89
|
+
* - null—Does not set a shape `className`.
|
|
90
|
+
*
|
|
91
|
+
* @default `rectangle`
|
|
92
|
+
*/
|
|
93
|
+
shape?: null | 'rectangle' | 'square' | string;
|
|
94
|
+
/**
|
|
95
|
+
* Configures the `roundness` of the Button.
|
|
96
|
+
*
|
|
97
|
+
* The available options are:
|
|
98
|
+
* - small
|
|
99
|
+
* - medium
|
|
100
|
+
* - large
|
|
101
|
+
* - circle
|
|
102
|
+
* - full
|
|
103
|
+
* - null—Does not set a rounded `className`.
|
|
104
|
+
*
|
|
105
|
+
* @default `medium`
|
|
106
|
+
*/
|
|
107
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
108
|
+
/**
|
|
109
|
+
* Configures the `fillMode` of the Button.
|
|
110
|
+
*
|
|
111
|
+
* The available options are:
|
|
112
|
+
* - solid
|
|
113
|
+
* - outline
|
|
114
|
+
* - flat
|
|
115
|
+
* - link
|
|
116
|
+
* - null—Does not set a fillMode `className`.
|
|
117
|
+
*
|
|
118
|
+
* @default `solid`
|
|
119
|
+
*/
|
|
120
|
+
fillMode?: null | 'solid' | 'outline' | 'flat' | 'link' | string;
|
|
121
|
+
/**
|
|
122
|
+
* Configures the `themeColor` of the Button.
|
|
123
|
+
*
|
|
124
|
+
* The available options are:
|
|
125
|
+
* - base
|
|
126
|
+
* - primary
|
|
127
|
+
* - secondary
|
|
128
|
+
* - tertiary
|
|
129
|
+
* - info
|
|
130
|
+
* - success
|
|
131
|
+
* - warning
|
|
132
|
+
* - dark
|
|
133
|
+
* - light
|
|
134
|
+
* - inverse
|
|
135
|
+
* - null—Does not set a themeColor `className`.
|
|
136
|
+
*
|
|
137
|
+
* @default `base`
|
|
138
|
+
*/
|
|
139
|
+
themeColor?: null | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'dark' | 'light' | 'inverse' | string;
|
|
71
140
|
/**
|
|
72
141
|
* Adds visual weight to the button and makes it primary ([see example]({% slug overview_dropdownbutton %}#toc-basic-usage)).
|
|
73
142
|
*/
|
|
@@ -163,6 +232,75 @@ export interface SplitButtonProps {
|
|
|
163
232
|
* Sets the direction of the component.
|
|
164
233
|
*/
|
|
165
234
|
dir?: string;
|
|
235
|
+
/**
|
|
236
|
+
* Configures the `size` of the Button.
|
|
237
|
+
*
|
|
238
|
+
* The available options are:
|
|
239
|
+
* - small
|
|
240
|
+
* - medium
|
|
241
|
+
* - large
|
|
242
|
+
* - null—Does not set a size `className`.
|
|
243
|
+
*
|
|
244
|
+
* @default `medium`
|
|
245
|
+
*/
|
|
246
|
+
size?: null | 'small' | 'medium' | 'large' | string;
|
|
247
|
+
/**
|
|
248
|
+
* Configures the `shape` of the Button.
|
|
249
|
+
*
|
|
250
|
+
* The available options are:
|
|
251
|
+
* - rectangle
|
|
252
|
+
* - square
|
|
253
|
+
* - null—Does not set a shape `className`.
|
|
254
|
+
*
|
|
255
|
+
* @default `rectangle`
|
|
256
|
+
*/
|
|
257
|
+
shape?: null | 'rectangle' | 'square' | string;
|
|
258
|
+
/**
|
|
259
|
+
* Configures the `roundness` of the Button.
|
|
260
|
+
*
|
|
261
|
+
* The available options are:
|
|
262
|
+
* - small
|
|
263
|
+
* - medium
|
|
264
|
+
* - large
|
|
265
|
+
* - circle
|
|
266
|
+
* - full
|
|
267
|
+
* - null—Does not set a rounded `className`.
|
|
268
|
+
*
|
|
269
|
+
* @default `medium`
|
|
270
|
+
*/
|
|
271
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
272
|
+
/**
|
|
273
|
+
* Configures the `fillMode` of the Button.
|
|
274
|
+
*
|
|
275
|
+
* The available options are:
|
|
276
|
+
* - solid
|
|
277
|
+
* - outline
|
|
278
|
+
* - flat
|
|
279
|
+
* - link
|
|
280
|
+
* - null—Does not set a fillMode `className`.
|
|
281
|
+
*
|
|
282
|
+
* @default `solid`
|
|
283
|
+
*/
|
|
284
|
+
fillMode?: null | 'solid' | 'outline' | 'flat' | 'link' | string;
|
|
285
|
+
/**
|
|
286
|
+
* Configures the `themeColor` of the Button.
|
|
287
|
+
*
|
|
288
|
+
* The available options are:
|
|
289
|
+
* - base
|
|
290
|
+
* - primary
|
|
291
|
+
* - secondary
|
|
292
|
+
* - tertiary
|
|
293
|
+
* - info
|
|
294
|
+
* - success
|
|
295
|
+
* - warning
|
|
296
|
+
* - dark
|
|
297
|
+
* - light
|
|
298
|
+
* - inverse
|
|
299
|
+
* - null—Does not set a themeColor `className`.
|
|
300
|
+
*
|
|
301
|
+
* @default `base`
|
|
302
|
+
*/
|
|
303
|
+
themeColor?: null | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'dark' | 'light' | 'inverse' | string;
|
|
166
304
|
/**
|
|
167
305
|
* Fires when the main button is clicked ([see example]({% slug overview_splitbutton %}#toc-events)).
|
|
168
306
|
*/
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
2
|
import { DefineComponent } from 'vue';
|
|
3
|
-
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
import * as Vue from 'vue';
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
type Vue2type = Vue.default;
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
9
|
+
export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
|
package/dist/npm/buttonLook.d.ts
CHANGED
package/dist/npm/main.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Button, ButtonProps } from './Button';
|
|
2
|
-
import { ButtonGroup,
|
|
1
|
+
import { Button, ButtonVue2, ButtonProps } from './Button';
|
|
2
|
+
import { ButtonGroup, ButtonGroupVue2, ButtonGroupProps } from './ButtonGroup';
|
|
3
3
|
import { ButtonLook } from './buttonLook';
|
|
4
|
-
import { Chip,
|
|
5
|
-
import { ChipList,
|
|
4
|
+
import { Chip, ChipVue2, ChipProps, ChipHandle } from './Chip/Chip';
|
|
5
|
+
import { ChipList, ChipListVue2, ChipListProps, ChipListHandle } from './Chip/ChipList';
|
|
6
6
|
import { ChipRemoveEvent, ChipMouseEvent, ChipKeyboardEvent, ChipFocusEvent, ChipListChangeEvent, ChipListDataChangeEvent } from './models/index';
|
|
7
|
-
import { FloatingActionButton,
|
|
7
|
+
import { FloatingActionButton, FloatingActionButtonVue2 } from './FloatingActionButton/FloatingActionButton';
|
|
8
8
|
import { FloatingActionButtonHandle } from './FloatingActionButton/interfaces/FloatingActionButtonHandle';
|
|
9
9
|
import { FloatingActionButtonProps } from './FloatingActionButton/interfaces/FloatingActionButtonProps';
|
|
10
|
-
import { FloatingActionButtonItem,
|
|
10
|
+
import { FloatingActionButtonItem, FloatingActionButtonItemVue2, FloatingActionButtonItemHandle, FloatingActionButtonItemProps } from './FloatingActionButton/FloatingActionButtonItem';
|
|
11
11
|
import { FloatingActionButtonPopupSettings } from './FloatingActionButton/interfaces/FloatingActionButtonPopupSettings';
|
|
12
12
|
export * from './FloatingActionButton/models/events';
|
|
13
13
|
import { FloatingActionButtonAlign } from './FloatingActionButton/models/align';
|
|
@@ -16,15 +16,15 @@ import { FloatingActionButtonPositionMode } from './FloatingActionButton/models/
|
|
|
16
16
|
import { FloatingActionButtonShape } from './FloatingActionButton/models/shape';
|
|
17
17
|
import { FloatingActionButtonSize } from './FloatingActionButton/models/size';
|
|
18
18
|
import { FloatingActionButtonThemeColor } from './FloatingActionButton/models/theme-color';
|
|
19
|
-
import { SplitButton,
|
|
20
|
-
import { DropDownButton,
|
|
19
|
+
import { SplitButton, SplitButtonVue2 } from './ListButton/SplitButton';
|
|
20
|
+
import { DropDownButton, DropDownButtonVue2 } from './ListButton/DropDownButton';
|
|
21
21
|
import { DropDownButtonProps } from './ListButton/models/ListButtonProps';
|
|
22
22
|
import { SplitButtonFocusEvent, SplitButtonBlurEvent, SplitButtonClickEvent, SplitButtonOpenEvent, SplitButtonCloseEvent, SplitButtonItemClickEvent, DropDownButtonFocusEvent, DropDownButtonBlurEvent, DropDownButtonOpenEvent, DropDownButtonCloseEvent, DropDownButtonItemClickEvent } from './ListButton/models/events';
|
|
23
23
|
import { ButtonItem } from './ListButton/models/ButtonItem';
|
|
24
24
|
import { ButtonItemProps } from './ListButton/ButtonItem';
|
|
25
25
|
import { ButtonsPopupSettings } from './ListButton/models/PopupSettings';
|
|
26
|
-
import { Toolbar,
|
|
27
|
-
import { ToolbarItem,
|
|
28
|
-
import { ToolbarSeparator,
|
|
29
|
-
import { ToolbarSpacer,
|
|
30
|
-
export { Toolbar,
|
|
26
|
+
import { Toolbar, ToolbarVue2, ToolbarProps, ToolbarResizeEvent } from './toolbar/Toolbar';
|
|
27
|
+
import { ToolbarItem, ToolbarItemVue2 } from './toolbar/tools/ToolbarItem';
|
|
28
|
+
import { ToolbarSeparator, ToolbarSeparatorVue2 } from './toolbar/tools/ToolbarSeparator';
|
|
29
|
+
import { ToolbarSpacer, ToolbarSpacerVue2 } from './toolbar/tools/ToolbarSpacer';
|
|
30
|
+
export { Toolbar, ToolbarVue2, ToolbarProps, ToolbarItem, ToolbarItemVue2, ToolbarSeparator, ToolbarSeparatorVue2, ToolbarResizeEvent, ToolbarSpacer, ToolbarSpacerVue2, Button, ButtonVue2, ButtonProps, ButtonLook, ButtonGroup, ButtonGroupVue2, ButtonGroupProps, SplitButton, SplitButtonVue2, DropDownButton, DropDownButtonVue2, DropDownButtonProps, ButtonItem, ButtonItemProps, SplitButtonFocusEvent, SplitButtonBlurEvent, SplitButtonClickEvent, SplitButtonOpenEvent, SplitButtonCloseEvent, SplitButtonItemClickEvent, DropDownButtonFocusEvent, DropDownButtonBlurEvent, DropDownButtonOpenEvent, DropDownButtonCloseEvent, DropDownButtonItemClickEvent, ButtonsPopupSettings, Chip, ChipVue2, ChipProps, ChipHandle, ChipRemoveEvent, ChipMouseEvent, ChipKeyboardEvent, ChipFocusEvent, ChipList, ChipListVue2, ChipListProps, ChipListHandle, ChipListDataChangeEvent, ChipListChangeEvent, FloatingActionButton, FloatingActionButtonVue2, FloatingActionButtonProps, FloatingActionButtonHandle, FloatingActionButtonItem, FloatingActionButtonItemVue2, FloatingActionButtonItemHandle, FloatingActionButtonItemProps, FloatingActionButtonPopupSettings, FloatingActionButtonAlign, FloatingActionButtonAlignOffset, FloatingActionButtonPositionMode, FloatingActionButtonSize, FloatingActionButtonShape, FloatingActionButtonThemeColor };
|
package/dist/npm/main.js
CHANGED
|
@@ -10,40 +10,41 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.
|
|
13
|
+
exports.FloatingActionButtonItemVue2 = exports.FloatingActionButtonItem = exports.FloatingActionButtonVue2 = exports.FloatingActionButton = exports.ChipListVue2 = exports.ChipList = exports.ChipVue2 = exports.Chip = exports.DropDownButtonVue2 = exports.DropDownButton = exports.SplitButtonVue2 = exports.SplitButton = exports.ButtonGroupVue2 = exports.ButtonGroup = exports.ButtonVue2 = exports.Button = exports.ToolbarSpacerVue2 = exports.ToolbarSpacer = exports.ToolbarSeparatorVue2 = exports.ToolbarSeparator = exports.ToolbarItemVue2 = exports.ToolbarItem = exports.ToolbarVue2 = exports.Toolbar = void 0;
|
|
14
14
|
var Button_1 = require("./Button");
|
|
15
15
|
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
|
|
16
|
+
Object.defineProperty(exports, "ButtonVue2", { enumerable: true, get: function () { return Button_1.ButtonVue2; } });
|
|
16
17
|
var ButtonGroup_1 = require("./ButtonGroup");
|
|
17
18
|
Object.defineProperty(exports, "ButtonGroup", { enumerable: true, get: function () { return ButtonGroup_1.ButtonGroup; } });
|
|
18
|
-
Object.defineProperty(exports, "
|
|
19
|
+
Object.defineProperty(exports, "ButtonGroupVue2", { enumerable: true, get: function () { return ButtonGroup_1.ButtonGroupVue2; } });
|
|
19
20
|
var Chip_1 = require("./Chip/Chip");
|
|
20
21
|
Object.defineProperty(exports, "Chip", { enumerable: true, get: function () { return Chip_1.Chip; } });
|
|
21
|
-
Object.defineProperty(exports, "
|
|
22
|
+
Object.defineProperty(exports, "ChipVue2", { enumerable: true, get: function () { return Chip_1.ChipVue2; } });
|
|
22
23
|
var ChipList_1 = require("./Chip/ChipList");
|
|
23
24
|
Object.defineProperty(exports, "ChipList", { enumerable: true, get: function () { return ChipList_1.ChipList; } });
|
|
24
|
-
Object.defineProperty(exports, "
|
|
25
|
+
Object.defineProperty(exports, "ChipListVue2", { enumerable: true, get: function () { return ChipList_1.ChipListVue2; } });
|
|
25
26
|
var FloatingActionButton_1 = require("./FloatingActionButton/FloatingActionButton");
|
|
26
27
|
Object.defineProperty(exports, "FloatingActionButton", { enumerable: true, get: function () { return FloatingActionButton_1.FloatingActionButton; } });
|
|
27
|
-
Object.defineProperty(exports, "
|
|
28
|
+
Object.defineProperty(exports, "FloatingActionButtonVue2", { enumerable: true, get: function () { return FloatingActionButton_1.FloatingActionButtonVue2; } });
|
|
28
29
|
var FloatingActionButtonItem_1 = require("./FloatingActionButton/FloatingActionButtonItem");
|
|
29
30
|
Object.defineProperty(exports, "FloatingActionButtonItem", { enumerable: true, get: function () { return FloatingActionButtonItem_1.FloatingActionButtonItem; } });
|
|
30
|
-
Object.defineProperty(exports, "
|
|
31
|
+
Object.defineProperty(exports, "FloatingActionButtonItemVue2", { enumerable: true, get: function () { return FloatingActionButtonItem_1.FloatingActionButtonItemVue2; } });
|
|
31
32
|
__exportStar(require("./FloatingActionButton/models/events"), exports);
|
|
32
33
|
var SplitButton_1 = require("./ListButton/SplitButton");
|
|
33
34
|
Object.defineProperty(exports, "SplitButton", { enumerable: true, get: function () { return SplitButton_1.SplitButton; } });
|
|
34
|
-
Object.defineProperty(exports, "
|
|
35
|
+
Object.defineProperty(exports, "SplitButtonVue2", { enumerable: true, get: function () { return SplitButton_1.SplitButtonVue2; } });
|
|
35
36
|
var DropDownButton_1 = require("./ListButton/DropDownButton");
|
|
36
37
|
Object.defineProperty(exports, "DropDownButton", { enumerable: true, get: function () { return DropDownButton_1.DropDownButton; } });
|
|
37
|
-
Object.defineProperty(exports, "
|
|
38
|
+
Object.defineProperty(exports, "DropDownButtonVue2", { enumerable: true, get: function () { return DropDownButton_1.DropDownButtonVue2; } });
|
|
38
39
|
var Toolbar_1 = require("./toolbar/Toolbar");
|
|
39
40
|
Object.defineProperty(exports, "Toolbar", { enumerable: true, get: function () { return Toolbar_1.Toolbar; } });
|
|
40
|
-
Object.defineProperty(exports, "
|
|
41
|
+
Object.defineProperty(exports, "ToolbarVue2", { enumerable: true, get: function () { return Toolbar_1.ToolbarVue2; } });
|
|
41
42
|
var ToolbarItem_1 = require("./toolbar/tools/ToolbarItem");
|
|
42
43
|
Object.defineProperty(exports, "ToolbarItem", { enumerable: true, get: function () { return ToolbarItem_1.ToolbarItem; } });
|
|
43
|
-
Object.defineProperty(exports, "
|
|
44
|
+
Object.defineProperty(exports, "ToolbarItemVue2", { enumerable: true, get: function () { return ToolbarItem_1.ToolbarItemVue2; } });
|
|
44
45
|
var ToolbarSeparator_1 = require("./toolbar/tools/ToolbarSeparator");
|
|
45
46
|
Object.defineProperty(exports, "ToolbarSeparator", { enumerable: true, get: function () { return ToolbarSeparator_1.ToolbarSeparator; } });
|
|
46
|
-
Object.defineProperty(exports, "
|
|
47
|
+
Object.defineProperty(exports, "ToolbarSeparatorVue2", { enumerable: true, get: function () { return ToolbarSeparator_1.ToolbarSeparatorVue2; } });
|
|
47
48
|
var ToolbarSpacer_1 = require("./toolbar/tools/ToolbarSpacer");
|
|
48
49
|
Object.defineProperty(exports, "ToolbarSpacer", { enumerable: true, get: function () { return ToolbarSpacer_1.ToolbarSpacer; } });
|
|
49
|
-
Object.defineProperty(exports, "
|
|
50
|
+
Object.defineProperty(exports, "ToolbarSpacerVue2", { enumerable: true, get: function () { return ToolbarSpacer_1.ToolbarSpacerVue2; } });
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-buttons',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1641906667,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
14
14
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -100,8 +99,8 @@ export interface ToolbarData {
|
|
|
100
99
|
/**
|
|
101
100
|
* @hidden
|
|
102
101
|
*/
|
|
103
|
-
export interface ToolbarAll extends
|
|
102
|
+
export interface ToolbarAll extends Vue2type, ToolbarMethods, ToolbarData, ToolbarComputed, ToolbarState {
|
|
104
103
|
}
|
|
105
|
-
declare let
|
|
106
|
-
declare const
|
|
107
|
-
export { Toolbar,
|
|
104
|
+
declare let ToolbarVue2: ComponentOptions<ToolbarAll, DefaultData<ToolbarData>, DefaultMethods<ToolbarAll>, ToolbarComputed, RecordPropsDefinition<ToolbarProps>>;
|
|
105
|
+
declare const Toolbar: DefineComponent<ToolbarProps, any, ToolbarData, ToolbarComputed, ToolbarMethods, {}, {}, {}, string, ToolbarProps, ToolbarProps, {}>;
|
|
106
|
+
export { Toolbar, ToolbarVue2 };
|
|
@@ -19,7 +19,7 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", {
|
|
20
20
|
value: true
|
|
21
21
|
});
|
|
22
|
-
exports.
|
|
22
|
+
exports.ToolbarVue2 = exports.Toolbar = void 0; // @ts-ignore
|
|
23
23
|
|
|
24
24
|
var Vue = require("vue");
|
|
25
25
|
|
|
@@ -33,7 +33,7 @@ var util_1 = require("./../util");
|
|
|
33
33
|
var package_metadata_1 = require("../package-metadata"); // tslint:enable:max-line-length
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var ToolbarVue2 = {
|
|
37
37
|
name: 'KendoToolbar',
|
|
38
38
|
props: {
|
|
39
39
|
tabIndex: {
|
|
@@ -41,11 +41,18 @@ var Toolbar = {
|
|
|
41
41
|
default: 0
|
|
42
42
|
},
|
|
43
43
|
dir: String,
|
|
44
|
-
keyboardNavigation:
|
|
45
|
-
|
|
44
|
+
keyboardNavigation: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: true
|
|
47
|
+
},
|
|
48
|
+
buttons: {
|
|
49
|
+
type: Array,
|
|
50
|
+
default: function _default() {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
46
54
|
},
|
|
47
55
|
created: function created() {
|
|
48
|
-
this.element = null;
|
|
49
56
|
this.offsetHeight = 0;
|
|
50
57
|
this.offsetWidth = 0;
|
|
51
58
|
this.currentButtons = [];
|
|
@@ -61,7 +68,7 @@ var Toolbar = {
|
|
|
61
68
|
},
|
|
62
69
|
mounted: function mounted() {
|
|
63
70
|
window.addEventListener('resize', this.onWindowResize);
|
|
64
|
-
var element = this
|
|
71
|
+
var element = this.$el;
|
|
65
72
|
|
|
66
73
|
if (element) {
|
|
67
74
|
this.offsetWidth = element.offsetWidth;
|
|
@@ -74,7 +81,7 @@ var Toolbar = {
|
|
|
74
81
|
}
|
|
75
82
|
},
|
|
76
83
|
updated: function updated() {
|
|
77
|
-
var element = this
|
|
84
|
+
var element = this.$el;
|
|
78
85
|
|
|
79
86
|
if (!element || this.$props.keyboardNavigation === false) {
|
|
80
87
|
return;
|
|
@@ -121,7 +128,7 @@ var Toolbar = {
|
|
|
121
128
|
return this.$el ? Array.from(this.$el.querySelectorAll(this.selectors.join(','))) : [];
|
|
122
129
|
},
|
|
123
130
|
focusedIndex: function focusedIndex() {
|
|
124
|
-
var focused = this
|
|
131
|
+
var focused = this.$el && this.$el.querySelector(this.focusedSelector);
|
|
125
132
|
return Math.max(0, this.currentButtons.findIndex(function (e) {
|
|
126
133
|
return e === focused;
|
|
127
134
|
}));
|
|
@@ -194,6 +201,6 @@ var Toolbar = {
|
|
|
194
201
|
}
|
|
195
202
|
}
|
|
196
203
|
};
|
|
197
|
-
exports.
|
|
198
|
-
var
|
|
199
|
-
exports.
|
|
204
|
+
exports.ToolbarVue2 = ToolbarVue2;
|
|
205
|
+
var Toolbar = ToolbarVue2;
|
|
206
|
+
exports.Toolbar = Toolbar;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -30,8 +29,8 @@ export interface ToolbarItemData {
|
|
|
30
29
|
/**
|
|
31
30
|
* @hidden
|
|
32
31
|
*/
|
|
33
|
-
export interface ToolbarItemAll extends
|
|
32
|
+
export interface ToolbarItemAll extends Vue2type, ToolbarItemMethods, ToolbarItemData, ToolbarItemComputed, ToolbarItemState {
|
|
34
33
|
}
|
|
35
|
-
declare let
|
|
36
|
-
declare const
|
|
37
|
-
export { ToolbarItem,
|
|
34
|
+
declare let ToolbarItemVue2: ComponentOptions<ToolbarItemAll, DefaultData<ToolbarItemData>, DefaultMethods<ToolbarItemAll>, ToolbarItemComputed, RecordPropsDefinition<{}>>;
|
|
35
|
+
declare const ToolbarItem: DefineComponent<{}, any, ToolbarItemData, ToolbarItemComputed, ToolbarItemMethods, {}, {}, {}, string, {}, {}, {}>;
|
|
36
|
+
export { ToolbarItem, ToolbarItemVue2 };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ToolbarItemVue2 = exports.ToolbarItem = void 0; // @ts-ignore
|
|
7
7
|
|
|
8
8
|
var Vue = require("vue");
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ var gh = allVue.h;
|
|
|
13
13
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common"); // tslint:enable:max-line-length
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var ToolbarItemVue2 = {
|
|
17
17
|
name: 'KendoToolbarItem',
|
|
18
18
|
methods: {
|
|
19
19
|
element: function element() {
|
|
@@ -33,6 +33,6 @@ var ToolbarItem = {
|
|
|
33
33
|
return h("span", [defaultSlot]);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
exports.
|
|
37
|
-
var
|
|
38
|
-
exports.
|
|
36
|
+
exports.ToolbarItemVue2 = ToolbarItemVue2;
|
|
37
|
+
var ToolbarItem = ToolbarItemVue2;
|
|
38
|
+
exports.ToolbarItem = ToolbarItem;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -7,6 +6,6 @@ declare type DefaultMethods<V> = {
|
|
|
7
6
|
/**
|
|
8
7
|
* Represents the Kendo UI for Vue Toolbar Separator component.
|
|
9
8
|
*/
|
|
10
|
-
declare let
|
|
11
|
-
declare const
|
|
12
|
-
export { ToolbarSeparator,
|
|
9
|
+
declare let ToolbarSeparatorVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<{}>, {}, RecordPropsDefinition<{}>>;
|
|
10
|
+
declare const ToolbarSeparator: DefineComponent<{}, any, {}, {}, {}, {}, {}, {}, string, {}, {}, {}>;
|
|
11
|
+
export { ToolbarSeparator, ToolbarSeparatorVue2 };
|