@progress/kendo-vue-buttons 2.7.3 → 3.0.0-dev.202201141128
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 +62 -29
- package/dist/es/ButtonGroup.d.ts +5 -6
- package/dist/es/ButtonGroup.js +4 -4
- package/dist/es/ButtonInterface.d.ts +8 -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 +26 -11
- package/dist/es/FloatingActionButton/FloatingActionButtonItem.d.ts +5 -6
- package/dist/es/FloatingActionButton/FloatingActionButtonItem.js +3 -3
- package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +28 -2
- 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 +67 -29
- 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 +7 -7
- package/dist/npm/Button.d.ts +75 -6
- package/dist/npm/Button.js +63 -30
- package/dist/npm/ButtonGroup.d.ts +5 -6
- package/dist/npm/ButtonGroup.js +6 -6
- package/dist/npm/ButtonInterface.d.ts +8 -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 +27 -12
- package/dist/npm/FloatingActionButton/FloatingActionButtonItem.d.ts +5 -6
- package/dist/npm/FloatingActionButton/FloatingActionButtonItem.js +5 -5
- package/dist/npm/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +28 -2
- 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 +68 -31
- 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 +7 -7
- package/package.json +5 -5
|
@@ -20,17 +20,15 @@ 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';
|
|
27
27
|
import { getAnchorAlign, getPopupAlign } from './utils/popup';
|
|
28
28
|
import { validatePackage, templateRendering, getListeners, canUseDOM } from '@progress/kendo-vue-common';
|
|
29
|
-
import { packageMetadata } from '../package-metadata';
|
|
30
|
-
import util from '../util';
|
|
31
|
-
var styles = util.styles; // tslint:enable:max-line-length
|
|
29
|
+
import { packageMetadata } from '../package-metadata'; // tslint:enable:max-line-length
|
|
32
30
|
|
|
33
|
-
var
|
|
31
|
+
var SplitButtonVue2 = {
|
|
34
32
|
name: 'KendoSplitButton',
|
|
35
33
|
// @ts-ignore
|
|
36
34
|
emits: {
|
|
@@ -54,6 +52,29 @@ var SplitButton = {
|
|
|
54
52
|
tabIndex: Number,
|
|
55
53
|
disabled: Boolean,
|
|
56
54
|
icon: String,
|
|
55
|
+
size: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: 'medium'
|
|
58
|
+
},
|
|
59
|
+
rounded: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: 'medium'
|
|
62
|
+
},
|
|
63
|
+
fillMode: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: 'solid',
|
|
66
|
+
validator: function validator(value) {
|
|
67
|
+
return [null, 'flat', 'link', 'outline', 'solid'].includes(value);
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
// eslint-disable-next-line max-len
|
|
71
|
+
themeColor: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: 'base',
|
|
74
|
+
validator: function validator(value) {
|
|
75
|
+
return [null, 'base', 'dark', 'error', 'info', 'inverse', 'inverse', 'light', 'primary', 'secondary', 'success', 'tertiary', 'warning'].includes(value);
|
|
76
|
+
}
|
|
77
|
+
},
|
|
57
78
|
opened: {
|
|
58
79
|
type: Boolean,
|
|
59
80
|
default: undefined
|
|
@@ -101,13 +122,11 @@ var SplitButton = {
|
|
|
101
122
|
return this.$props.opened === undefined ? this.currentOpened : this.$props.opened;
|
|
102
123
|
},
|
|
103
124
|
wrapperClass: function wrapperClass() {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return _a = {
|
|
107
|
-
'k-widget': true,
|
|
125
|
+
return {
|
|
108
126
|
'k-split-button': true,
|
|
109
|
-
'k-button-group': true
|
|
110
|
-
|
|
127
|
+
'k-button-group': true,
|
|
128
|
+
'k-focus': this.focused
|
|
129
|
+
};
|
|
111
130
|
}
|
|
112
131
|
},
|
|
113
132
|
// @ts-ignore
|
|
@@ -143,6 +162,7 @@ var SplitButton = {
|
|
|
143
162
|
}) : dataItem;
|
|
144
163
|
return (// @ts-ignore
|
|
145
164
|
h(ButtonItem, {
|
|
165
|
+
"class": "k-menu-item",
|
|
146
166
|
dataItem: currentDataItem,
|
|
147
167
|
attrs: this.v3 ? undefined : {
|
|
148
168
|
dataItem: currentDataItem,
|
|
@@ -174,8 +194,10 @@ var SplitButton = {
|
|
|
174
194
|
var renderPopup = function renderPopup() {
|
|
175
195
|
var _this2 = this;
|
|
176
196
|
|
|
177
|
-
var _a = this.$props
|
|
178
|
-
|
|
197
|
+
var _a = this.$props,
|
|
198
|
+
_b = _a.popupSettings,
|
|
199
|
+
popupSettings = _b === void 0 ? {} : _b,
|
|
200
|
+
size = _a.size;
|
|
179
201
|
return (// @ts-ignore function children
|
|
180
202
|
h(Popup, {
|
|
181
203
|
anchor: this._anchor,
|
|
@@ -183,13 +205,13 @@ var SplitButton = {
|
|
|
183
205
|
anchor: this._anchor,
|
|
184
206
|
show: this.computedOpened,
|
|
185
207
|
animate: popupSettings.animate,
|
|
186
|
-
popupClass: classNames('k-
|
|
208
|
+
popupClass: classNames('k-menu-popup', popupSettings.popupClass),
|
|
187
209
|
anchorAlign: popupSettings.anchorAlign || getAnchorAlign(rtl),
|
|
188
210
|
popupAlign: popupSettings.popupAlign || getPopupAlign(rtl)
|
|
189
211
|
},
|
|
190
212
|
show: this.computedOpened,
|
|
191
213
|
animate: popupSettings.animate,
|
|
192
|
-
popupClass: classNames('k-
|
|
214
|
+
popupClass: classNames('k-menu-popup', popupSettings.popupClass),
|
|
193
215
|
anchorAlign: popupSettings.anchorAlign || getAnchorAlign(rtl),
|
|
194
216
|
popupAlign: popupSettings.popupAlign || getPopupAlign(rtl),
|
|
195
217
|
style: rtl ? {
|
|
@@ -197,7 +219,7 @@ var SplitButton = {
|
|
|
197
219
|
} : undefined
|
|
198
220
|
}, this.v3 ? function () {
|
|
199
221
|
return [h("ul", {
|
|
200
|
-
"class": "k-
|
|
222
|
+
"class": "k-group k-menu-group k-reset k-menu-group-" + (kendoThemeMaps.sizeMap[size] || size),
|
|
201
223
|
role: "menu",
|
|
202
224
|
attrs: _this2.v3 ? undefined : {
|
|
203
225
|
role: "menu",
|
|
@@ -206,7 +228,7 @@ var SplitButton = {
|
|
|
206
228
|
id: _this2.guid
|
|
207
229
|
}, [renderChildItems.call(_this2)])];
|
|
208
230
|
} : [h("ul", {
|
|
209
|
-
"class": "k-
|
|
231
|
+
"class": "k-group k-menu-group k-reset k-menu-group-" + (kendoThemeMaps.sizeMap[size] || size),
|
|
210
232
|
role: "menu",
|
|
211
233
|
attrs: _this2.v3 ? undefined : {
|
|
212
234
|
role: "menu",
|
|
@@ -233,16 +255,12 @@ var SplitButton = {
|
|
|
233
255
|
}
|
|
234
256
|
}, [// @ts-ignore function children
|
|
235
257
|
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,
|
|
258
|
+
size: this.$props.size,
|
|
245
259
|
attrs: this.v3 ? undefined : {
|
|
260
|
+
size: this.$props.size,
|
|
261
|
+
rounded: this.$props.rounded,
|
|
262
|
+
fillMode: this.$props.fillMode,
|
|
263
|
+
themeColor: this.$props.themeColor,
|
|
246
264
|
disabled: disabled || undefined,
|
|
247
265
|
tabIndex: tabIndex,
|
|
248
266
|
accessKey: this.$props.accessKey,
|
|
@@ -259,6 +277,18 @@ var SplitButton = {
|
|
|
259
277
|
"aria-owns": this.guid,
|
|
260
278
|
"aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? this.guid + "-" + this.focusedIndex : undefined
|
|
261
279
|
},
|
|
280
|
+
rounded: this.$props.rounded,
|
|
281
|
+
fillMode: this.$props.fillMode,
|
|
282
|
+
themeColor: this.$props.themeColor,
|
|
283
|
+
onClick: function onClick(event) {
|
|
284
|
+
return _this.onItemClick(event, -1);
|
|
285
|
+
},
|
|
286
|
+
on: this.v3 ? undefined : {
|
|
287
|
+
"click": function onClick(event) {
|
|
288
|
+
return _this.onItemClick(event, -1);
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
disabled: disabled || undefined,
|
|
262
292
|
tabIndex: tabIndex,
|
|
263
293
|
accessKey: this.$props.accessKey,
|
|
264
294
|
"class": this.$props.buttonClass,
|
|
@@ -279,8 +309,12 @@ var SplitButton = {
|
|
|
279
309
|
return [_this3.$props.text];
|
|
280
310
|
} : [_this3.$props.text]), // @ts-ignore
|
|
281
311
|
h(KendoButton, {
|
|
282
|
-
|
|
312
|
+
size: this.$props.size,
|
|
283
313
|
attrs: this.v3 ? undefined : {
|
|
314
|
+
size: this.$props.size,
|
|
315
|
+
rounded: this.$props.rounded,
|
|
316
|
+
fillMode: this.$props.fillMode,
|
|
317
|
+
themeColor: this.$props.themeColor,
|
|
284
318
|
icon: "arrow-s",
|
|
285
319
|
disabled: disabled || undefined,
|
|
286
320
|
tabIndex: -1,
|
|
@@ -288,6 +322,10 @@ var SplitButton = {
|
|
|
288
322
|
dir: dir,
|
|
289
323
|
"aria-label": "menu toggling button"
|
|
290
324
|
},
|
|
325
|
+
rounded: this.$props.rounded,
|
|
326
|
+
fillMode: this.$props.fillMode,
|
|
327
|
+
themeColor: this.$props.themeColor,
|
|
328
|
+
icon: "arrow-s",
|
|
291
329
|
disabled: disabled || undefined,
|
|
292
330
|
tabIndex: -1,
|
|
293
331
|
look: this.$props.look,
|
|
@@ -463,5 +501,5 @@ var SplitButton = {
|
|
|
463
501
|
}
|
|
464
502
|
}
|
|
465
503
|
};
|
|
466
|
-
var
|
|
467
|
-
export { SplitButton,
|
|
504
|
+
var SplitButton = SplitButtonVue2;
|
|
505
|
+
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: 1642158855,
|
|
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 };
|