@progress/kendo-vue-buttons 3.5.0 → 3.5.1-dev.202208150613
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.js +1 -1
- package/dist/es/ButtonGroupInterface.js +1 -0
- package/dist/es/ButtonInterface.js +1 -0
- package/dist/es/Chip/Chip.js +1 -1
- package/dist/es/Chip/ChipList.js +1 -1
- package/dist/es/Chip/selection-reducer.js +8 -12
- package/dist/es/FloatingActionButton/FloatingActionButton.js +8 -8
- package/dist/es/FloatingActionButton/FloatingActionButtonItem.js +3 -3
- package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonHandle.js +1 -0
- package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.js +1 -0
- package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonProps.js +1 -0
- package/dist/es/FloatingActionButton/models/align-offset.js +1 -0
- package/dist/es/FloatingActionButton/models/align.js +1 -0
- package/dist/es/FloatingActionButton/models/events.js +1 -0
- package/dist/es/FloatingActionButton/models/position-mode.js +1 -0
- package/dist/es/FloatingActionButton/models/shape.js +1 -0
- package/dist/es/FloatingActionButton/models/size.js +1 -0
- package/dist/es/FloatingActionButton/models/theme-color.js +1 -0
- package/dist/es/FloatingActionButton/utils.js +2 -2
- package/dist/es/ListButton/ButtonItem.js +1 -1
- package/dist/es/ListButton/DropDownButton.js +8 -8
- package/dist/es/ListButton/SplitButton.js +8 -8
- package/dist/es/ListButton/models/ButtonItemInterface.js +1 -0
- package/dist/es/ListButton/models/ListButtonProps.js +1 -0
- package/dist/es/ListButton/models/PopupSettings.js +1 -0
- package/dist/es/ListButton/models/events.js +1 -0
- package/dist/es/buttonLook.js +1 -0
- package/dist/es/models/index.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/util.d.ts +3 -3
- package/dist/esm/Button.d.ts +123 -0
- package/dist/esm/Button.js +280 -0
- package/dist/esm/ButtonGroup.d.ts +49 -0
- package/dist/esm/ButtonGroup.js +106 -0
- package/dist/esm/ButtonGroupInterface.d.ts +30 -0
- package/dist/esm/ButtonGroupInterface.js +2 -0
- package/dist/esm/ButtonInterface.d.ts +56 -0
- package/dist/esm/ButtonInterface.js +2 -0
- package/dist/esm/ButtonWrap.d.ts +19 -0
- package/dist/esm/ButtonWrap.js +33 -0
- package/dist/esm/Chip/Chip.d.ts +199 -0
- package/dist/esm/Chip/Chip.js +339 -0
- package/dist/esm/Chip/ChipList.d.ts +174 -0
- package/dist/esm/Chip/ChipList.js +263 -0
- package/dist/esm/Chip/data-reducer.d.ts +21 -0
- package/dist/esm/Chip/data-reducer.js +34 -0
- package/dist/esm/Chip/focus-reducer.d.ts +24 -0
- package/dist/esm/Chip/focus-reducer.js +38 -0
- package/dist/esm/Chip/selection-reducer.d.ts +29 -0
- package/dist/esm/Chip/selection-reducer.js +102 -0
- package/dist/esm/FloatingActionButton/FloatingActionButton.d.ts +49 -0
- package/dist/esm/FloatingActionButton/FloatingActionButton.js +494 -0
- package/dist/esm/FloatingActionButton/FloatingActionButtonItem.d.ts +118 -0
- package/dist/esm/FloatingActionButton/FloatingActionButtonItem.js +121 -0
- package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonHandle.d.ts +13 -0
- package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonHandle.js +1 -0
- package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.d.ts +24 -0
- package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.js +1 -0
- package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +243 -0
- package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonProps.js +1 -0
- package/dist/esm/FloatingActionButton/models/align-offset.d.ts +20 -0
- package/dist/esm/FloatingActionButton/models/align-offset.js +1 -0
- package/dist/esm/FloatingActionButton/models/align.d.ts +27 -0
- package/dist/esm/FloatingActionButton/models/align.js +1 -0
- package/dist/esm/FloatingActionButton/models/events.d.ts +18 -0
- package/dist/esm/FloatingActionButton/models/events.js +2 -0
- package/dist/esm/FloatingActionButton/models/position-mode.d.ts +9 -0
- package/dist/esm/FloatingActionButton/models/position-mode.js +1 -0
- package/dist/esm/FloatingActionButton/models/shape.d.ts +13 -0
- package/dist/esm/FloatingActionButton/models/shape.js +1 -0
- package/dist/esm/FloatingActionButton/models/size.d.ts +10 -0
- package/dist/esm/FloatingActionButton/models/size.js +1 -0
- package/dist/esm/FloatingActionButton/models/theme-color.d.ts +17 -0
- package/dist/esm/FloatingActionButton/models/theme-color.js +1 -0
- package/dist/esm/FloatingActionButton/utils.d.ts +27 -0
- package/dist/esm/FloatingActionButton/utils.js +93 -0
- package/dist/esm/ListButton/ButtonItem.d.ts +58 -0
- package/dist/esm/ListButton/ButtonItem.js +138 -0
- package/dist/esm/ListButton/DropDownButton.d.ts +66 -0
- package/dist/esm/ListButton/DropDownButton.js +453 -0
- package/dist/esm/ListButton/SplitButton.d.ts +67 -0
- package/dist/esm/ListButton/SplitButton.js +515 -0
- package/dist/esm/ListButton/models/ButtonItemInterface.d.ts +29 -0
- package/dist/esm/ListButton/models/ButtonItemInterface.js +2 -0
- package/dist/esm/ListButton/models/ListButtonProps.d.ts +328 -0
- package/dist/esm/ListButton/models/ListButtonProps.js +2 -0
- package/dist/esm/ListButton/models/PopupSettings.d.ts +24 -0
- package/dist/esm/ListButton/models/PopupSettings.js +1 -0
- package/dist/esm/ListButton/models/events.d.ts +48 -0
- package/dist/esm/ListButton/models/events.js +1 -0
- package/dist/esm/ListButton/utils/navigation.d.ts +5 -0
- package/dist/esm/ListButton/utils/navigation.js +24 -0
- package/dist/esm/ListButton/utils/popup.d.ts +9 -0
- package/dist/esm/ListButton/utils/popup.js +20 -0
- package/dist/esm/additionalTypes.ts +21 -0
- package/dist/esm/buttonLook.d.ts +13 -0
- package/dist/esm/buttonLook.js +1 -0
- package/dist/esm/main.d.ts +30 -0
- package/dist/esm/main.js +15 -0
- package/dist/esm/models/index.d.ts +87 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/package-metadata.d.ts +5 -0
- package/dist/esm/package-metadata.js +11 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/toolbar/Toolbar.d.ts +112 -0
- package/dist/esm/toolbar/Toolbar.js +208 -0
- package/dist/esm/toolbar/tools/ToolbarItem.d.ts +64 -0
- package/dist/esm/toolbar/tools/ToolbarItem.js +58 -0
- package/dist/esm/toolbar/tools/ToolbarSeparator.d.ts +36 -0
- package/dist/esm/toolbar/tools/ToolbarSeparator.js +56 -0
- package/dist/esm/toolbar/tools/ToolbarSpacer.d.ts +36 -0
- package/dist/esm/toolbar/tools/ToolbarSpacer.js +53 -0
- package/dist/esm/util.d.ts +31 -0
- package/dist/esm/util.js +40 -0
- package/dist/npm/Button.js +5 -5
- package/dist/npm/ButtonGroup.js +4 -4
- package/dist/npm/ButtonWrap.js +1 -1
- package/dist/npm/Chip/Chip.js +10 -10
- package/dist/npm/Chip/ChipList.js +8 -8
- package/dist/npm/Chip/data-reducer.js +4 -2
- package/dist/npm/Chip/focus-reducer.js +4 -2
- package/dist/npm/Chip/selection-reducer.js +12 -14
- package/dist/npm/FloatingActionButton/FloatingActionButton.js +31 -31
- package/dist/npm/FloatingActionButton/FloatingActionButtonItem.js +8 -8
- package/dist/npm/FloatingActionButton/utils.js +14 -9
- package/dist/npm/ListButton/ButtonItem.js +1 -1
- package/dist/npm/ListButton/DropDownButton.js +19 -19
- package/dist/npm/ListButton/SplitButton.js +19 -19
- package/dist/npm/main.js +6 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/toolbar/Toolbar.js +2 -2
- package/dist/npm/toolbar/tools/ToolbarItem.js +1 -1
- package/dist/npm/util.d.ts +3 -3
- package/package.json +11 -5
package/dist/es/Button.js
CHANGED
|
@@ -115,7 +115,7 @@ var ButtonVue2 = {
|
|
|
115
115
|
var hasIcon = icon !== undefined || iconClass !== undefined || imageUrl !== undefined;
|
|
116
116
|
var defaultSlot = getDefaultSlots(this);
|
|
117
117
|
var hasChildren = defaultSlot;
|
|
118
|
-
return _a = {}, _a[styles.button] = true, _a["k-button-"
|
|
118
|
+
return _a = {}, _a[styles.button] = true, _a["k-button-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-button-".concat(shape)] = shape && shape !== 'rectangle', _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-icon-button'] = !hasChildren && hasIcon, _a['k-disabled'] = disabled, _a['k-selected'] = this.computedSelected, _a['k-rtl'] = dir === 'rtl', _a["k-button-".concat(fillMode)] = fillMode, _a["k-button-".concat(fillMode, "-").concat(themeColor)] = fillMode && themeColor, _a;
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
updated: function updated() {
|
package/dist/es/Chip/Chip.js
CHANGED
|
@@ -292,7 +292,7 @@ var ChipVue2 = {
|
|
|
292
292
|
'k-disabled': this.$props.disabled,
|
|
293
293
|
'k-selected': this.currentSelected,
|
|
294
294
|
'k-focus': this.computedFocused()
|
|
295
|
-
}, _a["k-chip-"
|
|
295
|
+
}, _a["k-chip-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a["k-chip-".concat(fillMode)] = fillMode, _a["k-chip-".concat(fillMode, "-").concat(themeColor)] = Boolean(fillMode && themeColor), _a['k-chip-success'] = type === 'success', _a['k-chip-warning'] = type === 'warning', _a['k-chip-error'] = type === 'error', _a['k-chip-info'] = type === 'info', _a['k-chip-outline'] = look === 'outline' || look === 'outlined', _a['k-chip-solid'] = look === 'solid' || look === 'filled', _a)),
|
|
296
296
|
"aria-checked": this.currentSelected,
|
|
297
297
|
"aria-disabled": this.$props.disabled,
|
|
298
298
|
"aria-describedby": this.$props.ariaDescribedBy,
|
package/dist/es/Chip/ChipList.js
CHANGED
|
@@ -215,7 +215,7 @@ var ChipListVue2 = {
|
|
|
215
215
|
dir: this.currentDir,
|
|
216
216
|
style: this.$props.style,
|
|
217
217
|
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
218
|
-
"class": classNames('k-chip-list', (_a = {}, _a["k-chip-list-"
|
|
218
|
+
"class": classNames('k-chip-list', (_a = {}, _a["k-chip-list-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a['k-rtl'] = this.currentDir === 'rtl', _a['k-selection-single'] = this.$props.selection === 'single', _a['k-selection-multiple'] = this.$props.selection === 'multiple', _a['k-disabled'] = this.$props.disabled, _a)),
|
|
219
219
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
220
220
|
"aria-describedby": this.$props.ariaDescribedBy
|
|
221
221
|
}, [this.computedDataItems.map(function (item) {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
|
|
7
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
|
|
8
|
-
r[k] = a[j];
|
|
1
|
+
var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
9
6
|
}
|
|
10
7
|
}
|
|
11
|
-
|
|
12
|
-
return r;
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
13
9
|
};
|
|
14
10
|
/**
|
|
15
11
|
* @hidden
|
|
@@ -70,7 +66,7 @@ export var selectionReducer = function selectionReducer(state, action) {
|
|
|
70
66
|
return i === action.payload;
|
|
71
67
|
}) ? state.filter(function (i) {
|
|
72
68
|
return i !== action.payload;
|
|
73
|
-
}) :
|
|
69
|
+
}) : __spreadArray(__spreadArray([], state, true), [action.payload], false);
|
|
74
70
|
}
|
|
75
71
|
|
|
76
72
|
if (state === null) {
|
|
@@ -87,7 +83,7 @@ export var selectionReducer = function selectionReducer(state, action) {
|
|
|
87
83
|
return i === action.payload;
|
|
88
84
|
}) ? state.filter(function (i) {
|
|
89
85
|
return i !== action.payload;
|
|
90
|
-
}) :
|
|
86
|
+
}) : __spreadArray(__spreadArray([], state, true), [action.payload], false);
|
|
91
87
|
}
|
|
92
88
|
|
|
93
89
|
return state;
|
|
@@ -141,7 +141,7 @@ var FloatingActionButtonVue2 = {
|
|
|
141
141
|
rounded = _b.rounded;
|
|
142
142
|
return _a = {
|
|
143
143
|
'k-fab': true
|
|
144
|
-
}, _a["k-fab-"
|
|
144
|
+
}, _a["k-fab-".concat(shape || 'rectangle')] = shape !== null, _a["k-fab-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a["k-fab-".concat(fillMode)] = fillMode, _a["k-fab-".concat(fillMode, "-").concat(themeColor)] = fillMode && themeColor, _a['k-disabled'] = this.$props.disabled, _a['k-focus'] = this.currentFocused, _a["k-".concat(this.$props.align.vertical, "-").concat(this.$props.align.horizontal)] = true, _a;
|
|
145
145
|
},
|
|
146
146
|
computedOpened: function computedOpened() {
|
|
147
147
|
return this.$props.opened === undefined ? this.currentOpened : this.$props.opened;
|
|
@@ -335,13 +335,13 @@ var FloatingActionButtonVue2 = {
|
|
|
335
335
|
index: index,
|
|
336
336
|
attrs: this.v3 ? undefined : {
|
|
337
337
|
index: index,
|
|
338
|
-
id: this.listId
|
|
338
|
+
id: "".concat(this.listId, "-").concat(index),
|
|
339
339
|
disabled: disabled || element.disabled,
|
|
340
340
|
focused: this.focusedIndex === index,
|
|
341
341
|
dataItem: element,
|
|
342
342
|
item: item
|
|
343
343
|
},
|
|
344
|
-
id: this.listId
|
|
344
|
+
id: "".concat(this.listId, "-").concat(index),
|
|
345
345
|
disabled: disabled || element.disabled,
|
|
346
346
|
focused: this.focusedIndex === index,
|
|
347
347
|
dataItem: element,
|
|
@@ -376,9 +376,9 @@ var FloatingActionButtonVue2 = {
|
|
|
376
376
|
"aria-disabled": disabled,
|
|
377
377
|
"aria-expanded": items ? this.computedOpened : undefined,
|
|
378
378
|
"aria-haspopup": items ? true : false,
|
|
379
|
-
"aria-label": (text || ''
|
|
379
|
+
"aria-label": "".concat(text || '', " floatingactionbutton"),
|
|
380
380
|
"aria-owns": items ? this.listId : undefined,
|
|
381
|
-
"aria-activedescendant": this.focusedIndex >= 0 && items ? this.listId
|
|
381
|
+
"aria-activedescendant": this.focusedIndex >= 0 && items ? "".concat(this.listId, "-").concat(this.focusedIndex) : undefined,
|
|
382
382
|
tabindex: getTabIndex(tabIndex, disabled),
|
|
383
383
|
accesskey: accessKey,
|
|
384
384
|
dir: this.currentDir,
|
|
@@ -389,9 +389,9 @@ var FloatingActionButtonVue2 = {
|
|
|
389
389
|
"aria-disabled": disabled,
|
|
390
390
|
"aria-expanded": items ? this.computedOpened : undefined,
|
|
391
391
|
"aria-haspopup": items ? true : false,
|
|
392
|
-
"aria-label": (text || ''
|
|
392
|
+
"aria-label": "".concat(text || '', " floatingactionbutton"),
|
|
393
393
|
"aria-owns": items ? this.listId : undefined,
|
|
394
|
-
"aria-activedescendant": this.focusedIndex >= 0 && items ? this.listId
|
|
394
|
+
"aria-activedescendant": this.focusedIndex >= 0 && items ? "".concat(this.listId, "-").concat(this.focusedIndex) : undefined,
|
|
395
395
|
tabindex: getTabIndex(tabIndex, disabled),
|
|
396
396
|
accesskey: accessKey,
|
|
397
397
|
dir: this.currentDir,
|
|
@@ -416,7 +416,7 @@ var FloatingActionButtonVue2 = {
|
|
|
416
416
|
attrs: this.v3 ? undefined : {
|
|
417
417
|
role: "presentation"
|
|
418
418
|
},
|
|
419
|
-
"class": classNames("k-fab-icon k-icon k-i-"
|
|
419
|
+
"class": classNames("k-fab-icon k-icon k-i-".concat(icon))
|
|
420
420
|
}) : iconClass ? h("span", {
|
|
421
421
|
role: "presentation",
|
|
422
422
|
attrs: this.v3 ? undefined : {
|
|
@@ -81,13 +81,13 @@ var FloatingActionButtonItemVue2 = {
|
|
|
81
81
|
role: 'menuitem',
|
|
82
82
|
tabindex: getTabIndex(tabIndex, disabled),
|
|
83
83
|
"aria-disabled": disabled,
|
|
84
|
-
"aria-label": (text || ''
|
|
84
|
+
"aria-label": "".concat(text || '', " floatingactionbutton item")
|
|
85
85
|
},
|
|
86
86
|
"class": this.itemClassNames,
|
|
87
87
|
role: 'menuitem',
|
|
88
88
|
tabindex: getTabIndex(tabIndex, disabled),
|
|
89
89
|
"aria-disabled": disabled,
|
|
90
|
-
"aria-label": (text || ''
|
|
90
|
+
"aria-label": "".concat(text || '', " floatingactionbutton item"),
|
|
91
91
|
onClick: this.handleClick,
|
|
92
92
|
on: this.v3 ? undefined : {
|
|
93
93
|
"click": this.handleClick,
|
|
@@ -99,7 +99,7 @@ var FloatingActionButtonItemVue2 = {
|
|
|
99
99
|
}, [text && h("span", {
|
|
100
100
|
"class": "k-fab-item-text"
|
|
101
101
|
}, [text]), icon && h("span", {
|
|
102
|
-
"class": classNames("k-fab-item-icon k-icon k-i-"
|
|
102
|
+
"class": classNames("k-fab-item-icon k-icon k-i-".concat(icon))
|
|
103
103
|
})]);
|
|
104
104
|
item = getTemplate.call(this, {
|
|
105
105
|
h: h,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -53,13 +53,13 @@ export var position = function (ref, align, alignOffset, isRtl) {
|
|
|
53
53
|
toStringValues(alignOffset.x) :
|
|
54
54
|
DEFAULT_OFFSET;
|
|
55
55
|
var xCenterFab = alignOffset && alignOffset.x !== undefined ?
|
|
56
|
-
"calc(50% + "
|
|
56
|
+
"calc(50% + ".concat(toStringValues(alignOffset.x), ")") :
|
|
57
57
|
'50%';
|
|
58
58
|
var yFab = alignOffset && alignOffset.y !== undefined ?
|
|
59
59
|
toStringValues(alignOffset.y) :
|
|
60
60
|
DEFAULT_OFFSET;
|
|
61
61
|
var yCenterFab = alignOffset && alignOffset.y !== undefined ?
|
|
62
|
-
"calc(50% + "
|
|
62
|
+
"calc(50% + ".concat(toStringValues(alignOffset.y), ")") :
|
|
63
63
|
'50%';
|
|
64
64
|
ref.style.setProperty(horizontalPosition(align, isRtl), horizontal === 'center' ? xCenterFab : xFab);
|
|
65
65
|
ref.style.setProperty(verticalPosition(align), vertical === 'middle' ? yCenterFab : yFab);
|
|
@@ -67,7 +67,7 @@ var ButtonItemVue2 = {
|
|
|
67
67
|
textField = _a.textField,
|
|
68
68
|
index = _a.index;
|
|
69
69
|
var text = dataItem.text !== undefined ? dataItem.text : textField ? dataItem[textField] : dataItem;
|
|
70
|
-
var iconClass = dataItem.icon ? "k-icon k-i-"
|
|
70
|
+
var iconClass = dataItem.icon ? "k-icon k-i-".concat(dataItem.icon) : dataItem.iconClass;
|
|
71
71
|
var itemContent = h("span", {
|
|
72
72
|
tabindex: -1,
|
|
73
73
|
attrs: this.v3 ? undefined : {
|
|
@@ -185,7 +185,7 @@ var DropDownButtonVue2 = {
|
|
|
185
185
|
render: templateRendering.call(this, itemRender, getListeners.call(this)),
|
|
186
186
|
item: item,
|
|
187
187
|
index: index,
|
|
188
|
-
id: this.guid
|
|
188
|
+
id: "".concat(this.guid, "-").concat(index)
|
|
189
189
|
},
|
|
190
190
|
textField: textField,
|
|
191
191
|
focused: this.focusedIndex === index,
|
|
@@ -199,7 +199,7 @@ var DropDownButtonVue2 = {
|
|
|
199
199
|
item: item,
|
|
200
200
|
index: index,
|
|
201
201
|
key: index,
|
|
202
|
-
id: this.guid
|
|
202
|
+
id: "".concat(this.guid, "-").concat(index)
|
|
203
203
|
})
|
|
204
204
|
);
|
|
205
205
|
}, this) : null;
|
|
@@ -233,7 +233,7 @@ var DropDownButtonVue2 = {
|
|
|
233
233
|
} : undefined
|
|
234
234
|
}, this.v3 ? function () {
|
|
235
235
|
return [h("ul", {
|
|
236
|
-
"class": "k-group k-menu-group k-reset k-menu-group-"
|
|
236
|
+
"class": "k-group k-menu-group k-reset k-menu-group-".concat(kendoThemeMaps.sizeMap[size] || size),
|
|
237
237
|
role: "menu",
|
|
238
238
|
attrs: _this.v3 ? undefined : {
|
|
239
239
|
role: "menu",
|
|
@@ -242,7 +242,7 @@ var DropDownButtonVue2 = {
|
|
|
242
242
|
id: _this.guid
|
|
243
243
|
}, [renderChildItems.call(_this)])];
|
|
244
244
|
} : [h("ul", {
|
|
245
|
-
"class": "k-group k-menu-group k-reset k-menu-group-"
|
|
245
|
+
"class": "k-group k-menu-group k-reset k-menu-group-".concat(kendoThemeMaps.sizeMap[size] || size),
|
|
246
246
|
role: "menu",
|
|
247
247
|
attrs: _this.v3 ? undefined : {
|
|
248
248
|
role: "menu",
|
|
@@ -289,9 +289,9 @@ var DropDownButtonVue2 = {
|
|
|
289
289
|
"aria-disabled": disabled,
|
|
290
290
|
"aria-haspopup": true,
|
|
291
291
|
"aria-expanded": this.computedOpened,
|
|
292
|
-
"aria-label": this.$props.text
|
|
292
|
+
"aria-label": "".concat(this.$props.text, " dropdownbutton"),
|
|
293
293
|
"aria-owns": this.guid,
|
|
294
|
-
"aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? this.guid
|
|
294
|
+
"aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? "".concat(this.guid, "-").concat(this.focusedIndex) : undefined
|
|
295
295
|
},
|
|
296
296
|
shape: this.$props.shape,
|
|
297
297
|
rounded: this.$props.rounded,
|
|
@@ -318,9 +318,9 @@ var DropDownButtonVue2 = {
|
|
|
318
318
|
"aria-disabled": disabled,
|
|
319
319
|
"aria-haspopup": true,
|
|
320
320
|
"aria-expanded": this.computedOpened,
|
|
321
|
-
"aria-label": this.$props.text
|
|
321
|
+
"aria-label": "".concat(this.$props.text, " dropdownbutton"),
|
|
322
322
|
"aria-owns": this.guid,
|
|
323
|
-
"aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? this.guid
|
|
323
|
+
"aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? "".concat(this.guid, "-").concat(this.focusedIndex) : undefined
|
|
324
324
|
}, this.v3 ? function () {
|
|
325
325
|
return [_this2.$props.text, defaultSlot];
|
|
326
326
|
} : [_this2.$props.text, defaultSlot]), renderPopup.call(this)]);
|
|
@@ -176,7 +176,7 @@ var SplitButtonVue2 = {
|
|
|
176
176
|
render: templateRendering.call(this, itemRender, getListeners.call(this)),
|
|
177
177
|
item: item,
|
|
178
178
|
index: index,
|
|
179
|
-
id: this.guid
|
|
179
|
+
id: "".concat(this.guid, "-").concat(index)
|
|
180
180
|
},
|
|
181
181
|
textField: textField,
|
|
182
182
|
focused: this.focusedIndex === index,
|
|
@@ -190,7 +190,7 @@ var SplitButtonVue2 = {
|
|
|
190
190
|
item: item,
|
|
191
191
|
key: index,
|
|
192
192
|
index: index,
|
|
193
|
-
id: this.guid
|
|
193
|
+
id: "".concat(this.guid, "-").concat(index)
|
|
194
194
|
})
|
|
195
195
|
);
|
|
196
196
|
}, this) : null;
|
|
@@ -224,7 +224,7 @@ var SplitButtonVue2 = {
|
|
|
224
224
|
} : undefined
|
|
225
225
|
}, this.v3 ? function () {
|
|
226
226
|
return [h("ul", {
|
|
227
|
-
"class": "k-group k-menu-group k-reset k-menu-group-"
|
|
227
|
+
"class": "k-group k-menu-group k-reset k-menu-group-".concat(kendoThemeMaps.sizeMap[size] || size),
|
|
228
228
|
role: "menu",
|
|
229
229
|
attrs: _this2.v3 ? undefined : {
|
|
230
230
|
role: "menu",
|
|
@@ -233,7 +233,7 @@ var SplitButtonVue2 = {
|
|
|
233
233
|
id: _this2.guid
|
|
234
234
|
}, [renderChildItems.call(_this2)])];
|
|
235
235
|
} : [h("ul", {
|
|
236
|
-
"class": "k-group k-menu-group k-reset k-menu-group-"
|
|
236
|
+
"class": "k-group k-menu-group k-reset k-menu-group-".concat(kendoThemeMaps.sizeMap[size] || size),
|
|
237
237
|
role: "menu",
|
|
238
238
|
attrs: _this2.v3 ? undefined : {
|
|
239
239
|
role: "menu",
|
|
@@ -278,9 +278,9 @@ var SplitButtonVue2 = {
|
|
|
278
278
|
"aria-disabled": disabled,
|
|
279
279
|
"aria-haspopup": true,
|
|
280
280
|
"aria-expanded": this.computedOpened,
|
|
281
|
-
"aria-label": this.$props.text
|
|
281
|
+
"aria-label": "".concat(this.$props.text, " splitbutton"),
|
|
282
282
|
"aria-owns": this.guid,
|
|
283
|
-
"aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? this.guid
|
|
283
|
+
"aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? "".concat(this.guid, "-").concat(this.focusedIndex) : undefined
|
|
284
284
|
},
|
|
285
285
|
rounded: this.$props.rounded,
|
|
286
286
|
fillMode: this.$props.fillMode,
|
|
@@ -307,9 +307,9 @@ var SplitButtonVue2 = {
|
|
|
307
307
|
"aria-disabled": disabled,
|
|
308
308
|
"aria-haspopup": true,
|
|
309
309
|
"aria-expanded": this.computedOpened,
|
|
310
|
-
"aria-label": this.$props.text
|
|
310
|
+
"aria-label": "".concat(this.$props.text, " splitbutton"),
|
|
311
311
|
"aria-owns": this.guid,
|
|
312
|
-
"aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? this.guid
|
|
312
|
+
"aria-activedescendant": this.focusedIndex !== undefined && this.focusedIndex >= 0 ? "".concat(this.guid, "-").concat(this.focusedIndex) : undefined
|
|
313
313
|
}, this.v3 ? function () {
|
|
314
314
|
return [_this3.$props.text, defaultSlot];
|
|
315
315
|
} : [_this3.$props.text, defaultSlot]), // @ts-ignore
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es/buttonLook.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es/models/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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: 1660543116,
|
|
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
|
};
|
package/dist/es/util.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ export declare const internalButtons = ".k-dropdownlist > .k-button,.k-colorpick
|
|
|
6
6
|
* @hidden
|
|
7
7
|
*/
|
|
8
8
|
export declare const toolbarButtons: string[];
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
9
12
|
declare const _default: {
|
|
10
13
|
styles: {
|
|
11
14
|
button: string;
|
|
@@ -25,7 +28,4 @@ declare const _default: {
|
|
|
25
28
|
rtl: string;
|
|
26
29
|
};
|
|
27
30
|
};
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
31
|
export default _default;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from './additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
import { ButtonInterface } from './ButtonInterface';
|
|
7
|
+
/**
|
|
8
|
+
* Represents the props of the [Kendo UI for Vue Button component]({% slug overview_button %}).
|
|
9
|
+
* Extends the [native button props](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement).
|
|
10
|
+
*/
|
|
11
|
+
export interface ButtonProps extends ButtonInterface {
|
|
12
|
+
/**
|
|
13
|
+
* Configures the `size` of the Button.
|
|
14
|
+
*
|
|
15
|
+
* The available options are:
|
|
16
|
+
* - small
|
|
17
|
+
* - medium
|
|
18
|
+
* - large
|
|
19
|
+
* - null—Does not set a size `className`.
|
|
20
|
+
*
|
|
21
|
+
* @default `medium`
|
|
22
|
+
*/
|
|
23
|
+
size?: null | 'small' | 'medium' | 'large' | string;
|
|
24
|
+
/**
|
|
25
|
+
* Configures the `shape` of the Button.
|
|
26
|
+
*
|
|
27
|
+
* The available options are:
|
|
28
|
+
* - rectangle
|
|
29
|
+
* - square
|
|
30
|
+
* - null—Does not set a shape `className`.
|
|
31
|
+
*
|
|
32
|
+
* @default `rectangle`
|
|
33
|
+
*/
|
|
34
|
+
shape?: null | 'rectangle' | 'square' | string;
|
|
35
|
+
/**
|
|
36
|
+
* Configures the `roundness` of the Button.
|
|
37
|
+
*
|
|
38
|
+
* The available options are:
|
|
39
|
+
* - small
|
|
40
|
+
* - medium
|
|
41
|
+
* - large
|
|
42
|
+
* - circle
|
|
43
|
+
* - full
|
|
44
|
+
* - null—Does not set a rounded `className`.
|
|
45
|
+
*
|
|
46
|
+
* @default `medium`
|
|
47
|
+
*/
|
|
48
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
49
|
+
/**
|
|
50
|
+
* Configures the `fillMode` of the Button.
|
|
51
|
+
*
|
|
52
|
+
* The available options are:
|
|
53
|
+
* - solid
|
|
54
|
+
* - outline
|
|
55
|
+
* - flat
|
|
56
|
+
* - link
|
|
57
|
+
* - null—Does not set a fillMode `className`.
|
|
58
|
+
*
|
|
59
|
+
* @default `solid`
|
|
60
|
+
*/
|
|
61
|
+
fillMode?: null | 'solid' | 'outline' | 'flat' | 'link' | string;
|
|
62
|
+
/**
|
|
63
|
+
* Configures the `themeColor` of the Button.
|
|
64
|
+
*
|
|
65
|
+
* The available options are:
|
|
66
|
+
* - base
|
|
67
|
+
* - primary
|
|
68
|
+
* - secondary
|
|
69
|
+
* - tertiary
|
|
70
|
+
* - info
|
|
71
|
+
* - success
|
|
72
|
+
* - warning
|
|
73
|
+
* - dark
|
|
74
|
+
* - light
|
|
75
|
+
* - inverse
|
|
76
|
+
* - null—Does not set a themeColor `className`.
|
|
77
|
+
*
|
|
78
|
+
* @default `base`
|
|
79
|
+
*/
|
|
80
|
+
themeColor?: null | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'dark' | 'light' | 'inverse' | string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @hidden
|
|
84
|
+
*/
|
|
85
|
+
export interface ButtonState {
|
|
86
|
+
_activeTemp?: boolean;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @hidden
|
|
90
|
+
*/
|
|
91
|
+
export interface ButtonComputed {
|
|
92
|
+
[key: string]: any;
|
|
93
|
+
buttonClasses: object;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @hidden
|
|
97
|
+
*/
|
|
98
|
+
export interface ButtonMethods {
|
|
99
|
+
[key: string]: any;
|
|
100
|
+
focus: (e: any) => void;
|
|
101
|
+
toggleIfApplicable: () => void;
|
|
102
|
+
handleClick: (event: any) => void;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @hidden
|
|
106
|
+
*/
|
|
107
|
+
export interface ButtonData {
|
|
108
|
+
currentActive: boolean;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @hidden
|
|
112
|
+
*/
|
|
113
|
+
export interface ButtonAll extends Vue2type, ButtonMethods, ButtonData, ButtonComputed, ButtonState {
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @hidden
|
|
117
|
+
*/
|
|
118
|
+
declare let ButtonVue2: ComponentOptions<ButtonAll, DefaultData<ButtonData>, DefaultMethods<ButtonAll>, ButtonComputed, RecordPropsDefinition<ButtonProps>>;
|
|
119
|
+
/**
|
|
120
|
+
* @hidden
|
|
121
|
+
*/
|
|
122
|
+
declare const Button: DefineComponent<ButtonProps, any, ButtonData, ButtonComputed, ButtonMethods, {}, {}, {}, string, ButtonProps, ButtonProps, {}>;
|
|
123
|
+
export { Button, ButtonVue2 };
|