@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
|
@@ -20,7 +20,7 @@ var allVue = Vue;
|
|
|
20
20
|
var gh = allVue.h;
|
|
21
21
|
var ref = allVue.ref;
|
|
22
22
|
import { Button as KendoButton } from '../Button';
|
|
23
|
-
import { classNames, guid, Keys } from '@progress/kendo-vue-common';
|
|
23
|
+
import { classNames, guid, Keys, kendoThemeMaps } from '@progress/kendo-vue-common';
|
|
24
24
|
import { ButtonItem } from './ButtonItem';
|
|
25
25
|
import navigation from './utils/navigation';
|
|
26
26
|
import { Popup } from '@progress/kendo-vue-popup';
|
|
@@ -30,7 +30,7 @@ import { packageMetadata } from '../package-metadata';
|
|
|
30
30
|
import util from '../util';
|
|
31
31
|
var styles = util.styles; // tslint:enable:max-line-length
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var SplitButtonVue2 = {
|
|
34
34
|
name: 'KendoSplitButton',
|
|
35
35
|
// @ts-ignore
|
|
36
36
|
emits: {
|
|
@@ -54,6 +54,29 @@ var SplitButton = {
|
|
|
54
54
|
tabIndex: Number,
|
|
55
55
|
disabled: Boolean,
|
|
56
56
|
icon: String,
|
|
57
|
+
size: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: 'medium'
|
|
60
|
+
},
|
|
61
|
+
rounded: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: 'medium'
|
|
64
|
+
},
|
|
65
|
+
fillMode: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: 'solid',
|
|
68
|
+
validator: function validator(value) {
|
|
69
|
+
return [null, 'flat', 'link', 'outline', 'solid'].includes(value);
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
// eslint-disable-next-line max-len
|
|
73
|
+
themeColor: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: 'base',
|
|
76
|
+
validator: function validator(value) {
|
|
77
|
+
return [null, 'base', 'dark', 'error', 'info', 'inverse', 'inverse', 'light', 'primary', 'secondary', 'success', 'tertiary', 'warning'].includes(value);
|
|
78
|
+
}
|
|
79
|
+
},
|
|
57
80
|
opened: {
|
|
58
81
|
type: Boolean,
|
|
59
82
|
default: undefined
|
|
@@ -101,13 +124,11 @@ var SplitButton = {
|
|
|
101
124
|
return this.$props.opened === undefined ? this.currentOpened : this.$props.opened;
|
|
102
125
|
},
|
|
103
126
|
wrapperClass: function wrapperClass() {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return _a = {
|
|
107
|
-
'k-widget': true,
|
|
127
|
+
return {
|
|
108
128
|
'k-split-button': true,
|
|
109
|
-
'k-button-group': true
|
|
110
|
-
|
|
129
|
+
'k-button-group': true,
|
|
130
|
+
'k-focus': this.focused
|
|
131
|
+
};
|
|
111
132
|
}
|
|
112
133
|
},
|
|
113
134
|
// @ts-ignore
|
|
@@ -143,6 +164,7 @@ var SplitButton = {
|
|
|
143
164
|
}) : dataItem;
|
|
144
165
|
return (// @ts-ignore
|
|
145
166
|
h(ButtonItem, {
|
|
167
|
+
"class": "k-menu-item",
|
|
146
168
|
dataItem: currentDataItem,
|
|
147
169
|
attrs: this.v3 ? undefined : {
|
|
148
170
|
dataItem: currentDataItem,
|
|
@@ -174,8 +196,10 @@ var SplitButton = {
|
|
|
174
196
|
var renderPopup = function renderPopup() {
|
|
175
197
|
var _this2 = this;
|
|
176
198
|
|
|
177
|
-
var _a = this.$props
|
|
178
|
-
|
|
199
|
+
var _a = this.$props,
|
|
200
|
+
_b = _a.popupSettings,
|
|
201
|
+
popupSettings = _b === void 0 ? {} : _b,
|
|
202
|
+
size = _a.size;
|
|
179
203
|
return (// @ts-ignore function children
|
|
180
204
|
h(Popup, {
|
|
181
205
|
anchor: this._anchor,
|
|
@@ -183,13 +207,13 @@ var SplitButton = {
|
|
|
183
207
|
anchor: this._anchor,
|
|
184
208
|
show: this.computedOpened,
|
|
185
209
|
animate: popupSettings.animate,
|
|
186
|
-
popupClass: classNames('k-
|
|
210
|
+
popupClass: classNames('k-menu-popup', popupSettings.popupClass),
|
|
187
211
|
anchorAlign: popupSettings.anchorAlign || getAnchorAlign(rtl),
|
|
188
212
|
popupAlign: popupSettings.popupAlign || getPopupAlign(rtl)
|
|
189
213
|
},
|
|
190
214
|
show: this.computedOpened,
|
|
191
215
|
animate: popupSettings.animate,
|
|
192
|
-
popupClass: classNames('k-
|
|
216
|
+
popupClass: classNames('k-menu-popup', popupSettings.popupClass),
|
|
193
217
|
anchorAlign: popupSettings.anchorAlign || getAnchorAlign(rtl),
|
|
194
218
|
popupAlign: popupSettings.popupAlign || getPopupAlign(rtl),
|
|
195
219
|
style: rtl ? {
|
|
@@ -197,7 +221,7 @@ var SplitButton = {
|
|
|
197
221
|
} : undefined
|
|
198
222
|
}, this.v3 ? function () {
|
|
199
223
|
return [h("ul", {
|
|
200
|
-
"class": "k-
|
|
224
|
+
"class": "k-group k-menu-group k-reset k-menu-group-" + (kendoThemeMaps.sizeMap[size] || size),
|
|
201
225
|
role: "menu",
|
|
202
226
|
attrs: _this2.v3 ? undefined : {
|
|
203
227
|
role: "menu",
|
|
@@ -206,7 +230,7 @@ var SplitButton = {
|
|
|
206
230
|
id: _this2.guid
|
|
207
231
|
}, [renderChildItems.call(_this2)])];
|
|
208
232
|
} : [h("ul", {
|
|
209
|
-
"class": "k-
|
|
233
|
+
"class": "k-group k-menu-group k-reset k-menu-group-" + (kendoThemeMaps.sizeMap[size] || size),
|
|
210
234
|
role: "menu",
|
|
211
235
|
attrs: _this2.v3 ? undefined : {
|
|
212
236
|
role: "menu",
|
|
@@ -233,16 +257,12 @@ var SplitButton = {
|
|
|
233
257
|
}
|
|
234
258
|
}, [// @ts-ignore function children
|
|
235
259
|
h(KendoButton, {
|
|
236
|
-
|
|
237
|
-
return _this.onItemClick(event, -1);
|
|
238
|
-
},
|
|
239
|
-
on: this.v3 ? undefined : {
|
|
240
|
-
"click": function onClick(event) {
|
|
241
|
-
return _this.onItemClick(event, -1);
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
disabled: disabled || undefined,
|
|
260
|
+
size: this.$props.size,
|
|
245
261
|
attrs: this.v3 ? undefined : {
|
|
262
|
+
size: this.$props.size,
|
|
263
|
+
rounded: this.$props.rounded,
|
|
264
|
+
fillMode: this.$props.fillMode,
|
|
265
|
+
themeColor: this.$props.themeColor,
|
|
246
266
|
disabled: disabled || undefined,
|
|
247
267
|
tabIndex: tabIndex,
|
|
248
268
|
accessKey: this.$props.accessKey,
|
|
@@ -259,6 +279,18 @@ var SplitButton = {
|
|
|
259
279
|
"aria-owns": this.guid,
|
|
260
280
|
"aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? this.guid + "-" + this.focusedIndex : undefined
|
|
261
281
|
},
|
|
282
|
+
rounded: this.$props.rounded,
|
|
283
|
+
fillMode: this.$props.fillMode,
|
|
284
|
+
themeColor: this.$props.themeColor,
|
|
285
|
+
onClick: function onClick(event) {
|
|
286
|
+
return _this.onItemClick(event, -1);
|
|
287
|
+
},
|
|
288
|
+
on: this.v3 ? undefined : {
|
|
289
|
+
"click": function onClick(event) {
|
|
290
|
+
return _this.onItemClick(event, -1);
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
disabled: disabled || undefined,
|
|
262
294
|
tabIndex: tabIndex,
|
|
263
295
|
accessKey: this.$props.accessKey,
|
|
264
296
|
"class": this.$props.buttonClass,
|
|
@@ -279,8 +311,12 @@ var SplitButton = {
|
|
|
279
311
|
return [_this3.$props.text];
|
|
280
312
|
} : [_this3.$props.text]), // @ts-ignore
|
|
281
313
|
h(KendoButton, {
|
|
282
|
-
|
|
314
|
+
size: this.$props.size,
|
|
283
315
|
attrs: this.v3 ? undefined : {
|
|
316
|
+
size: this.$props.size,
|
|
317
|
+
rounded: this.$props.rounded,
|
|
318
|
+
fillMode: this.$props.fillMode,
|
|
319
|
+
themeColor: this.$props.themeColor,
|
|
284
320
|
icon: "arrow-s",
|
|
285
321
|
disabled: disabled || undefined,
|
|
286
322
|
tabIndex: -1,
|
|
@@ -288,6 +324,10 @@ var SplitButton = {
|
|
|
288
324
|
dir: dir,
|
|
289
325
|
"aria-label": "menu toggling button"
|
|
290
326
|
},
|
|
327
|
+
rounded: this.$props.rounded,
|
|
328
|
+
fillMode: this.$props.fillMode,
|
|
329
|
+
themeColor: this.$props.themeColor,
|
|
330
|
+
icon: "arrow-s",
|
|
291
331
|
disabled: disabled || undefined,
|
|
292
332
|
tabIndex: -1,
|
|
293
333
|
look: this.$props.look,
|
|
@@ -463,5 +503,5 @@ var SplitButton = {
|
|
|
463
503
|
}
|
|
464
504
|
}
|
|
465
505
|
};
|
|
466
|
-
var
|
|
467
|
-
export { SplitButton,
|
|
506
|
+
var SplitButton = SplitButtonVue2;
|
|
507
|
+
export { SplitButton, SplitButtonVue2 };
|
|
@@ -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/es/buttonLook.d.ts
CHANGED
package/dist/es/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/es/main.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Button } from './Button';
|
|
2
|
-
import { ButtonGroup,
|
|
3
|
-
import { Chip,
|
|
4
|
-
import { ChipList,
|
|
5
|
-
import { FloatingActionButton,
|
|
6
|
-
import { FloatingActionButtonItem,
|
|
1
|
+
import { Button, ButtonVue2 } from './Button';
|
|
2
|
+
import { ButtonGroup, ButtonGroupVue2 } from './ButtonGroup';
|
|
3
|
+
import { Chip, ChipVue2 } from './Chip/Chip';
|
|
4
|
+
import { ChipList, ChipListVue2 } from './Chip/ChipList';
|
|
5
|
+
import { FloatingActionButton, FloatingActionButtonVue2 } from './FloatingActionButton/FloatingActionButton';
|
|
6
|
+
import { FloatingActionButtonItem, FloatingActionButtonItemVue2 } from './FloatingActionButton/FloatingActionButtonItem';
|
|
7
7
|
export * from './FloatingActionButton/models/events';
|
|
8
|
-
import { SplitButton,
|
|
9
|
-
import { DropDownButton,
|
|
10
|
-
import { Toolbar,
|
|
11
|
-
import { ToolbarItem,
|
|
12
|
-
import { ToolbarSeparator,
|
|
13
|
-
import { ToolbarSpacer,
|
|
14
|
-
export { Toolbar,
|
|
8
|
+
import { SplitButton, SplitButtonVue2 } from './ListButton/SplitButton';
|
|
9
|
+
import { DropDownButton, DropDownButtonVue2 } from './ListButton/DropDownButton';
|
|
10
|
+
import { Toolbar, ToolbarVue2 } from './toolbar/Toolbar';
|
|
11
|
+
import { ToolbarItem, ToolbarItemVue2 } from './toolbar/tools/ToolbarItem';
|
|
12
|
+
import { ToolbarSeparator, ToolbarSeparatorVue2 } from './toolbar/tools/ToolbarSeparator';
|
|
13
|
+
import { ToolbarSpacer, ToolbarSpacerVue2 } from './toolbar/tools/ToolbarSpacer';
|
|
14
|
+
export { Toolbar, ToolbarVue2, ToolbarItem, ToolbarItemVue2, ToolbarSeparator, ToolbarSeparatorVue2, ToolbarSpacer, ToolbarSpacerVue2, Button, ButtonVue2, ButtonGroup, ButtonGroupVue2, SplitButton, SplitButtonVue2, DropDownButton, DropDownButtonVue2, Chip, ChipVue2, ChipList, ChipListVue2, FloatingActionButton, FloatingActionButtonVue2, FloatingActionButtonItem, FloatingActionButtonItemVue2 };
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-buttons',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1641906667,
|
|
9
9
|
version: '',
|
|
10
10
|
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'
|
|
11
11
|
};
|
|
@@ -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 };
|
|
@@ -22,7 +22,7 @@ import { Keys, validatePackage, getDefaultSlots } from '@progress/kendo-vue-comm
|
|
|
22
22
|
import { toolbarButtons } from './../util';
|
|
23
23
|
import { packageMetadata } from '../package-metadata'; // tslint:enable:max-line-length
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var ToolbarVue2 = {
|
|
26
26
|
name: 'KendoToolbar',
|
|
27
27
|
props: {
|
|
28
28
|
tabIndex: {
|
|
@@ -30,11 +30,18 @@ var Toolbar = {
|
|
|
30
30
|
default: 0
|
|
31
31
|
},
|
|
32
32
|
dir: String,
|
|
33
|
-
keyboardNavigation:
|
|
34
|
-
|
|
33
|
+
keyboardNavigation: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: true
|
|
36
|
+
},
|
|
37
|
+
buttons: {
|
|
38
|
+
type: Array,
|
|
39
|
+
default: function _default() {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
35
43
|
},
|
|
36
44
|
created: function created() {
|
|
37
|
-
this.element = null;
|
|
38
45
|
this.offsetHeight = 0;
|
|
39
46
|
this.offsetWidth = 0;
|
|
40
47
|
this.currentButtons = [];
|
|
@@ -50,7 +57,7 @@ var Toolbar = {
|
|
|
50
57
|
},
|
|
51
58
|
mounted: function mounted() {
|
|
52
59
|
window.addEventListener('resize', this.onWindowResize);
|
|
53
|
-
var element = this
|
|
60
|
+
var element = this.$el;
|
|
54
61
|
|
|
55
62
|
if (element) {
|
|
56
63
|
this.offsetWidth = element.offsetWidth;
|
|
@@ -63,7 +70,7 @@ var Toolbar = {
|
|
|
63
70
|
}
|
|
64
71
|
},
|
|
65
72
|
updated: function updated() {
|
|
66
|
-
var element = this
|
|
73
|
+
var element = this.$el;
|
|
67
74
|
|
|
68
75
|
if (!element || this.$props.keyboardNavigation === false) {
|
|
69
76
|
return;
|
|
@@ -110,7 +117,7 @@ var Toolbar = {
|
|
|
110
117
|
return this.$el ? Array.from(this.$el.querySelectorAll(this.selectors.join(','))) : [];
|
|
111
118
|
},
|
|
112
119
|
focusedIndex: function focusedIndex() {
|
|
113
|
-
var focused = this
|
|
120
|
+
var focused = this.$el && this.$el.querySelector(this.focusedSelector);
|
|
114
121
|
return Math.max(0, this.currentButtons.findIndex(function (e) {
|
|
115
122
|
return e === focused;
|
|
116
123
|
}));
|
|
@@ -183,5 +190,5 @@ var Toolbar = {
|
|
|
183
190
|
}
|
|
184
191
|
}
|
|
185
192
|
};
|
|
186
|
-
var
|
|
187
|
-
export { Toolbar,
|
|
193
|
+
var Toolbar = ToolbarVue2;
|
|
194
|
+
export { Toolbar, ToolbarVue2 };
|
|
@@ -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 };
|
|
@@ -4,7 +4,7 @@ var allVue = Vue;
|
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
import { getDefaultSlots } from '@progress/kendo-vue-common'; // tslint:enable:max-line-length
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var ToolbarItemVue2 = {
|
|
8
8
|
name: 'KendoToolbarItem',
|
|
9
9
|
methods: {
|
|
10
10
|
element: function element() {
|
|
@@ -24,5 +24,5 @@ var ToolbarItem = {
|
|
|
24
24
|
return h("span", [defaultSlot]);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
var
|
|
28
|
-
export { ToolbarItem,
|
|
27
|
+
var ToolbarItem = ToolbarItemVue2;
|
|
28
|
+
export { ToolbarItem, ToolbarItemVue2 };
|
|
@@ -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 };
|
|
@@ -7,7 +7,7 @@ import { ToolbarItem } from './ToolbarItem';
|
|
|
7
7
|
* Represents the Kendo UI for Vue Toolbar Separator component.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var ToolbarSeparatorVue2 = {
|
|
11
11
|
name: 'KendoToolbarItem',
|
|
12
12
|
// @ts-ignore
|
|
13
13
|
setup: !gh ? undefined : function () {
|
|
@@ -25,5 +25,5 @@ var ToolbarSeparator = {
|
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
var
|
|
29
|
-
export { ToolbarSeparator,
|
|
28
|
+
var ToolbarSeparator = ToolbarSeparatorVue2;
|
|
29
|
+
export { ToolbarSeparator, ToolbarSeparatorVue2 };
|
|
@@ -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 { ToolbarSpacer,
|
|
9
|
+
declare let ToolbarSpacerVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<{}>, {}, RecordPropsDefinition<{}>>;
|
|
10
|
+
declare const ToolbarSpacer: DefineComponent<{}, any, {}, {}, {}, {}, {}, {}, string, {}, {}, {}>;
|
|
11
|
+
export { ToolbarSpacer, ToolbarSpacerVue2 };
|
|
@@ -6,7 +6,7 @@ var gh = allVue.h;
|
|
|
6
6
|
* Represents the Kendo UI for Vue Toolbar Separator component.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var ToolbarSpacerVue2 = {
|
|
10
10
|
name: 'KendoToolbarItem',
|
|
11
11
|
// @ts-ignore
|
|
12
12
|
setup: !gh ? undefined : function () {
|
|
@@ -22,5 +22,5 @@ var ToolbarSpacer = {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
var
|
|
26
|
-
export { ToolbarSpacer,
|
|
25
|
+
var ToolbarSpacer = ToolbarSpacerVue2;
|
|
26
|
+
export { ToolbarSpacer, ToolbarSpacerVue2 };
|