@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/npm/Button.js
CHANGED
|
@@ -96,7 +96,7 @@ var ButtonVue2 = {
|
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
created: function created() {
|
|
99
|
-
kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
|
|
99
|
+
(0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
|
|
100
100
|
this.currentActive = this.$props.togglable === true && this.$props.selected === true;
|
|
101
101
|
this._activeTemp = undefined;
|
|
102
102
|
},
|
|
@@ -124,9 +124,9 @@ var ButtonVue2 = {
|
|
|
124
124
|
fillMode = _b.fillMode,
|
|
125
125
|
themeColor = _b.themeColor;
|
|
126
126
|
var hasIcon = icon !== undefined || iconClass !== undefined || imageUrl !== undefined;
|
|
127
|
-
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
127
|
+
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
128
128
|
var hasChildren = defaultSlot;
|
|
129
|
-
return _a = {}, _a[styles.button] = true, _a["k-button-"
|
|
129
|
+
return _a = {}, _a[styles.button] = true, _a["k-button-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-button-".concat(shape)] = shape && shape !== 'rectangle', _a["k-rounded-".concat(kendo_vue_common_1.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;
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
updated: function updated() {
|
|
@@ -210,7 +210,7 @@ var ButtonVue2 = {
|
|
|
210
210
|
iconClass = _a.iconClass,
|
|
211
211
|
imageUrl = _a.imageUrl,
|
|
212
212
|
imageAlt = _a.imageAlt;
|
|
213
|
-
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
213
|
+
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
214
214
|
|
|
215
215
|
var iconElement = function iconElement() {
|
|
216
216
|
if (imageUrl) {
|
|
@@ -226,7 +226,7 @@ var ButtonVue2 = {
|
|
|
226
226
|
src: imageUrl
|
|
227
227
|
});
|
|
228
228
|
} else if (icon) {
|
|
229
|
-
var iconClasses = kendo_vue_common_1.classNames('k-icon', 'k-button-icon', 'k-i-' + icon);
|
|
229
|
+
var iconClasses = (0, kendo_vue_common_1.classNames)('k-icon', 'k-button-icon', 'k-i-' + icon);
|
|
230
230
|
return h("span", {
|
|
231
231
|
role: "presentation",
|
|
232
232
|
attrs: this.v3 ? undefined : {
|
package/dist/npm/ButtonGroup.js
CHANGED
|
@@ -40,7 +40,7 @@ var ButtonGroupVue2 = {
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
created: function created() {
|
|
43
|
-
kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
|
|
43
|
+
(0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
|
|
44
44
|
},
|
|
45
45
|
// @ts-ignore
|
|
46
46
|
setup: !isV3 ? undefined : function () {
|
|
@@ -54,12 +54,12 @@ var ButtonGroupVue2 = {
|
|
|
54
54
|
var _a;
|
|
55
55
|
|
|
56
56
|
var h = gh || createElement;
|
|
57
|
-
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
57
|
+
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
58
58
|
|
|
59
59
|
var renderButton = function renderButton(child, index, isLast, isRtl) {
|
|
60
60
|
var _a;
|
|
61
61
|
|
|
62
|
-
var className = kendo_vue_common_1.classNames((_a = {}, _a[styles['state-disabled']] = this.$props.disabled, _a[styles['group-start']] = isRtl ? isLast : index === 0, _a[styles['group-end']] = isRtl ? index === 0 : isLast, _a));
|
|
62
|
+
var className = (0, kendo_vue_common_1.classNames)((_a = {}, _a[styles['state-disabled']] = this.$props.disabled, _a[styles['group-start']] = isRtl ? isLast : index === 0, _a[styles['group-end']] = isRtl ? index === 0 : isLast, _a));
|
|
63
63
|
return h(ButtonWrap_1.ButtonWrap, {
|
|
64
64
|
class: className,
|
|
65
65
|
attrs: this.v3 ? undefined : {
|
|
@@ -85,7 +85,7 @@ var ButtonGroupVue2 = {
|
|
|
85
85
|
});
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
var groupClasses = kendo_vue_common_1.classNames([styles['button-group']], (_a = {}, _a['k-disabled'] = this.$props.disabled, _a[styles['button-group-stretched']] = !!this.$props.width, _a));
|
|
88
|
+
var groupClasses = (0, kendo_vue_common_1.classNames)([styles['button-group']], (_a = {}, _a['k-disabled'] = this.$props.disabled, _a[styles['button-group-stretched']] = !!this.$props.width, _a));
|
|
89
89
|
return h("div", {
|
|
90
90
|
style: {
|
|
91
91
|
width: this.width
|
package/dist/npm/ButtonWrap.js
CHANGED
|
@@ -30,7 +30,7 @@ var ButtonWrapVue2 = {
|
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
render: function render(createElement) {
|
|
32
32
|
var h = gh || createElement;
|
|
33
|
-
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
33
|
+
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
34
34
|
return defaultSlot[0];
|
|
35
35
|
}
|
|
36
36
|
};
|
package/dist/npm/Chip/Chip.js
CHANGED
|
@@ -127,10 +127,10 @@ var ChipVue2 = {
|
|
|
127
127
|
},
|
|
128
128
|
created: function created() {
|
|
129
129
|
this.currentDir = undefined;
|
|
130
|
-
kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
|
|
130
|
+
(0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
|
|
131
131
|
},
|
|
132
132
|
mounted: function mounted() {
|
|
133
|
-
this.chip = kendo_vue_common_1.getRef(this, 'chip');
|
|
133
|
+
this.chip = (0, kendo_vue_common_1.getRef)(this, 'chip');
|
|
134
134
|
this.currentDir = this.$props.dir !== undefined ? this.$props.dir === 'rtl' : this.$el && getComputedStyle(this.$el).direction === 'rtl' || false;
|
|
135
135
|
},
|
|
136
136
|
updated: function updated() {
|
|
@@ -290,21 +290,21 @@ var ChipVue2 = {
|
|
|
290
290
|
role: this.$props.role,
|
|
291
291
|
id: this.$props.value,
|
|
292
292
|
dir: this.currentDir,
|
|
293
|
-
tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
293
|
+
tabindex: (0, kendo_vue_common_1.getTabIndex)(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
294
294
|
"aria-checked": this.currentSelected,
|
|
295
295
|
"aria-disabled": this.$props.disabled,
|
|
296
296
|
"aria-describedby": this.$props.ariaDescribedBy
|
|
297
297
|
},
|
|
298
298
|
id: this.$props.value,
|
|
299
|
-
ref: kendo_vue_common_1.setRef(this, 'chip'),
|
|
299
|
+
ref: (0, kendo_vue_common_1.setRef)(this, 'chip'),
|
|
300
300
|
dir: this.currentDir,
|
|
301
|
-
tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
302
|
-
"class": kendo_vue_common_1.classNames('k-chip', (_a = {
|
|
301
|
+
tabindex: (0, kendo_vue_common_1.getTabIndex)(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
302
|
+
"class": (0, kendo_vue_common_1.classNames)('k-chip', (_a = {
|
|
303
303
|
'k-rtl': this.currentDir === 'rtl',
|
|
304
304
|
'k-disabled': this.$props.disabled,
|
|
305
305
|
'k-selected': this.currentSelected,
|
|
306
306
|
'k-focus': this.computedFocused()
|
|
307
|
-
}, _a["k-chip-"
|
|
307
|
+
}, _a["k-chip-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-rounded-".concat(kendo_vue_common_1.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)),
|
|
308
308
|
"aria-checked": this.currentSelected,
|
|
309
309
|
"aria-disabled": this.$props.disabled,
|
|
310
310
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
@@ -319,9 +319,9 @@ var ChipVue2 = {
|
|
|
319
319
|
onClick: this.handleClick,
|
|
320
320
|
onKeydown: this.handleKeyDown
|
|
321
321
|
}, [this.currentSelected && this.$props.selectedIcon && h("span", {
|
|
322
|
-
"class": kendo_vue_common_1.classNames('k-chip-icon', 'k-icon', this.$props.selectedIcon)
|
|
322
|
+
"class": (0, kendo_vue_common_1.classNames)('k-chip-icon', 'k-icon', this.$props.selectedIcon)
|
|
323
323
|
}), this.$props.icon && h("span", {
|
|
324
|
-
"class": kendo_vue_common_1.classNames('k-chip-icon', 'k-icon', this.$props.icon)
|
|
324
|
+
"class": (0, kendo_vue_common_1.classNames)('k-chip-icon', 'k-icon', this.$props.icon)
|
|
325
325
|
}), h("span", {
|
|
326
326
|
"class": 'k-chip-content'
|
|
327
327
|
}, [this.$props.text && h("span", {
|
|
@@ -335,7 +335,7 @@ var ChipVue2 = {
|
|
|
335
335
|
}, [h("span", {
|
|
336
336
|
"class": "k-chip-action k-chip-remove-action"
|
|
337
337
|
}, [h("span", {
|
|
338
|
-
"class": kendo_vue_common_1.classNames('k-chip-icon', 'k-icon', this.$props.removeIcon),
|
|
338
|
+
"class": (0, kendo_vue_common_1.classNames)('k-chip-icon', 'k-icon', this.$props.removeIcon),
|
|
339
339
|
onClick: this.handleRemove,
|
|
340
340
|
on: this.v3 ? undefined : {
|
|
341
341
|
"click": this.handleRemove
|
|
@@ -121,7 +121,7 @@ var ChipListVue2 = {
|
|
|
121
121
|
};
|
|
122
122
|
},
|
|
123
123
|
created: function created() {
|
|
124
|
-
kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
|
|
124
|
+
(0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
|
|
125
125
|
this.currentDataItems = this.$props.dataItems || this.$props.defaultDataItems;
|
|
126
126
|
this.currentValue.value = this.$props.value || this.$props.defaultValue;
|
|
127
127
|
},
|
|
@@ -156,7 +156,7 @@ var ChipListVue2 = {
|
|
|
156
156
|
},
|
|
157
157
|
methods: {
|
|
158
158
|
handleDispatchSelection: function handleDispatchSelection(action) {
|
|
159
|
-
var newState = selection_reducer_1.selectionReducer(this.computedValue, __assign(__assign({}, action), {
|
|
159
|
+
var newState = (0, selection_reducer_1.selectionReducer)(this.computedValue, __assign(__assign({}, action), {
|
|
160
160
|
selection: this.$props.selection,
|
|
161
161
|
state: this.computedValue
|
|
162
162
|
}));
|
|
@@ -164,13 +164,13 @@ var ChipListVue2 = {
|
|
|
164
164
|
this.currentValue.value = newState;
|
|
165
165
|
},
|
|
166
166
|
handleDispatchFocus: function handleDispatchFocus(action) {
|
|
167
|
-
var newState = focus_reducer_1.focusReducer(action.payload, __assign(__assign({}, action), {
|
|
167
|
+
var newState = (0, focus_reducer_1.focusReducer)(action.payload, __assign(__assign({}, action), {
|
|
168
168
|
items: this.items
|
|
169
169
|
}));
|
|
170
170
|
this.currentFocused.value = newState;
|
|
171
171
|
},
|
|
172
172
|
handleDispatchDataItems: function handleDispatchDataItems(action) {
|
|
173
|
-
var newState = data_reducer_1.dataReducer(this.computedDataItems, __assign(__assign({}, action), {
|
|
173
|
+
var newState = (0, data_reducer_1.dataReducer)(this.computedDataItems, __assign(__assign({}, action), {
|
|
174
174
|
state: this.computedDataItems,
|
|
175
175
|
valueField: this.$props.valueField
|
|
176
176
|
}));
|
|
@@ -215,21 +215,21 @@ var ChipListVue2 = {
|
|
|
215
215
|
var h = gh || createElement;
|
|
216
216
|
var size = this.$props.size;
|
|
217
217
|
return h("div", {
|
|
218
|
-
ref: kendo_vue_common_1.setRef(this, 'chipList'),
|
|
218
|
+
ref: (0, kendo_vue_common_1.setRef)(this, 'chipList'),
|
|
219
219
|
role: 'listbox',
|
|
220
220
|
attrs: this.v3 ? undefined : {
|
|
221
221
|
role: 'listbox',
|
|
222
222
|
id: this.$props.id,
|
|
223
223
|
dir: this.currentDir,
|
|
224
|
-
tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
224
|
+
tabindex: (0, kendo_vue_common_1.getTabIndex)(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
225
225
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
226
226
|
"aria-describedby": this.$props.ariaDescribedBy
|
|
227
227
|
},
|
|
228
228
|
id: this.$props.id,
|
|
229
229
|
dir: this.currentDir,
|
|
230
230
|
style: this.$props.style,
|
|
231
|
-
tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
232
|
-
"class": kendo_vue_common_1.classNames('k-chip-list', (_a = {}, _a["k-chip-list-"
|
|
231
|
+
tabindex: (0, kendo_vue_common_1.getTabIndex)(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
232
|
+
"class": (0, kendo_vue_common_1.classNames)('k-chip-list', (_a = {}, _a["k-chip-list-".concat(kendo_vue_common_1.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)),
|
|
233
233
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
234
234
|
"aria-describedby": this.$props.ariaDescribedBy
|
|
235
235
|
}, [this.computedDataItems.map(function (item) {
|
|
@@ -20,7 +20,7 @@ var DATA_ACTION;
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
var dataReducer = function dataReducer(state, action) {
|
|
24
24
|
switch (action.type) {
|
|
25
25
|
case DATA_ACTION.add:
|
|
26
26
|
// TODO v2
|
|
@@ -38,4 +38,6 @@ exports.dataReducer = function (state, action) {
|
|
|
38
38
|
default:
|
|
39
39
|
return state;
|
|
40
40
|
}
|
|
41
|
-
};
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
exports.dataReducer = dataReducer;
|
|
@@ -21,7 +21,7 @@ var FOCUS_ACTION;
|
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
var focusReducer = function focusReducer(state, action) {
|
|
25
25
|
var currentIndex = action.items.findIndex(function (i) {
|
|
26
26
|
return i === state;
|
|
27
27
|
});
|
|
@@ -42,4 +42,6 @@ exports.focusReducer = function (state, action) {
|
|
|
42
42
|
default:
|
|
43
43
|
return state;
|
|
44
44
|
}
|
|
45
|
-
};
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
exports.focusReducer = focusReducer;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
|
|
9
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
|
|
10
|
-
r[k] = a[j];
|
|
3
|
+
var __spreadArray = undefined && undefined.__spreadArray || function (to, from, pack) {
|
|
4
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
5
|
+
if (ar || !(i in from)) {
|
|
6
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
7
|
+
ar[i] = from[i];
|
|
11
8
|
}
|
|
12
9
|
}
|
|
13
|
-
|
|
14
|
-
return r;
|
|
10
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
15
11
|
};
|
|
16
12
|
|
|
17
13
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -45,7 +41,7 @@ var SELECTION_ACTION;
|
|
|
45
41
|
*/
|
|
46
42
|
|
|
47
43
|
|
|
48
|
-
|
|
44
|
+
var selectionReducer = function selectionReducer(state, action) {
|
|
49
45
|
switch (action.selection) {
|
|
50
46
|
case SELECTION_TYPE.single:
|
|
51
47
|
switch (action.type) {
|
|
@@ -76,7 +72,7 @@ exports.selectionReducer = function (state, action) {
|
|
|
76
72
|
return i === action.payload;
|
|
77
73
|
}) ? state.filter(function (i) {
|
|
78
74
|
return i !== action.payload;
|
|
79
|
-
}) :
|
|
75
|
+
}) : __spreadArray(__spreadArray([], state, true), [action.payload], false);
|
|
80
76
|
}
|
|
81
77
|
|
|
82
78
|
if (state === null) {
|
|
@@ -93,7 +89,7 @@ exports.selectionReducer = function (state, action) {
|
|
|
93
89
|
return i === action.payload;
|
|
94
90
|
}) ? state.filter(function (i) {
|
|
95
91
|
return i !== action.payload;
|
|
96
|
-
}) :
|
|
92
|
+
}) : __spreadArray(__spreadArray([], state, true), [action.payload], false);
|
|
97
93
|
}
|
|
98
94
|
|
|
99
95
|
return state;
|
|
@@ -109,4 +105,6 @@ exports.selectionReducer = function (state, action) {
|
|
|
109
105
|
default:
|
|
110
106
|
return state;
|
|
111
107
|
}
|
|
112
|
-
};
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
exports.selectionReducer = selectionReducer;
|
|
@@ -117,25 +117,25 @@ var FloatingActionButtonVue2 = {
|
|
|
117
117
|
};
|
|
118
118
|
},
|
|
119
119
|
created: function created() {
|
|
120
|
-
kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
|
|
120
|
+
(0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
|
|
121
121
|
this.element = undefined;
|
|
122
|
-
this._anchor = kendo_vue_common_1.guid();
|
|
123
|
-
this.listId = kendo_vue_common_1.guid();
|
|
124
|
-
this.buttonId = kendo_vue_common_1.guid();
|
|
122
|
+
this._anchor = (0, kendo_vue_common_1.guid)();
|
|
123
|
+
this.listId = (0, kendo_vue_common_1.guid)();
|
|
124
|
+
this.buttonId = (0, kendo_vue_common_1.guid)();
|
|
125
125
|
},
|
|
126
126
|
mounted: function mounted() {
|
|
127
127
|
this.element = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
|
|
128
|
-
this.list = kendo_vue_common_1.getRef(this, 'list');
|
|
129
|
-
this.popup = kendo_vue_common_1.getRef(this, 'popup');
|
|
128
|
+
this.list = (0, kendo_vue_common_1.getRef)(this, 'list');
|
|
129
|
+
this.popup = (0, kendo_vue_common_1.getRef)(this, 'popup');
|
|
130
130
|
this.currentDir = this.$props.dir !== undefined ? this.$props.dir : this.$el && getComputedStyle(this.$el).direction === 'rtl' || false;
|
|
131
131
|
this.isRtl = this.currentDir === 'rtl';
|
|
132
132
|
|
|
133
133
|
if (this.opened !== undefined) {
|
|
134
|
-
utils_1.position(this.$el, this.$props.align, this.$props.alignOffset, this.isRtl);
|
|
134
|
+
(0, utils_1.position)(this.$el, this.$props.align, this.$props.alignOffset, this.isRtl);
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
updated: function updated() {
|
|
138
|
-
utils_1.position(this.$el, this.$props.align, this.$props.alignOffset, this.isRtl);
|
|
138
|
+
(0, utils_1.position)(this.$el, this.$props.align, this.$props.alignOffset, this.isRtl);
|
|
139
139
|
|
|
140
140
|
if (this.currentFocused && this.element) {
|
|
141
141
|
this.element.focus();
|
|
@@ -154,13 +154,13 @@ var FloatingActionButtonVue2 = {
|
|
|
154
154
|
rounded = _b.rounded;
|
|
155
155
|
return _a = {
|
|
156
156
|
'k-fab': true
|
|
157
|
-
}, _a["k-fab-"
|
|
157
|
+
}, _a["k-fab-".concat(shape || 'rectangle')] = shape !== null, _a["k-fab-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-rounded-".concat(kendo_vue_common_1.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;
|
|
158
158
|
},
|
|
159
159
|
computedOpened: function computedOpened() {
|
|
160
160
|
return this.$props.opened === undefined ? this.currentOpened : this.$props.opened;
|
|
161
161
|
},
|
|
162
162
|
rootClassNames: function rootClassNames() {
|
|
163
|
-
return kendo_vue_common_1.classNames({
|
|
163
|
+
return (0, kendo_vue_common_1.classNames)({
|
|
164
164
|
'k-pos-absolute': this.$props.positionMode === 'absolute',
|
|
165
165
|
'k-pos-fixed': this.$props.positionMode === 'fixed'
|
|
166
166
|
});
|
|
@@ -348,18 +348,18 @@ var FloatingActionButtonVue2 = {
|
|
|
348
348
|
index: index,
|
|
349
349
|
attrs: this.v3 ? undefined : {
|
|
350
350
|
index: index,
|
|
351
|
-
id: this.listId
|
|
351
|
+
id: "".concat(this.listId, "-").concat(index),
|
|
352
352
|
disabled: disabled || element.disabled,
|
|
353
353
|
focused: this.focusedIndex === index,
|
|
354
354
|
dataItem: element,
|
|
355
355
|
item: item
|
|
356
356
|
},
|
|
357
|
-
id: this.listId
|
|
357
|
+
id: "".concat(this.listId, "-").concat(index),
|
|
358
358
|
disabled: disabled || element.disabled,
|
|
359
359
|
focused: this.focusedIndex === index,
|
|
360
360
|
dataItem: element,
|
|
361
361
|
item: item,
|
|
362
|
-
"class": kendo_vue_common_1.classNames(element.className, utils_1.getTextDirectionClass(this.currentDir || 'ltr', align.horizontal)),
|
|
362
|
+
"class": (0, kendo_vue_common_1.classNames)(element.className, (0, utils_1.getTextDirectionClass)(this.currentDir || 'ltr', align.horizontal)),
|
|
363
363
|
onClick: this.handleItemClick,
|
|
364
364
|
on: this.v3 ? undefined : {
|
|
365
365
|
"click": this.handleItemClick,
|
|
@@ -389,10 +389,10 @@ 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
|
|
395
|
-
tabindex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
|
|
394
|
+
"aria-activedescendant": this.focusedIndex >= 0 && items ? "".concat(this.listId, "-").concat(this.focusedIndex) : undefined,
|
|
395
|
+
tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
|
|
396
396
|
accesskey: accessKey,
|
|
397
397
|
dir: this.currentDir,
|
|
398
398
|
disabled: disabled
|
|
@@ -402,10 +402,10 @@ var FloatingActionButtonVue2 = {
|
|
|
402
402
|
"aria-disabled": disabled,
|
|
403
403
|
"aria-expanded": items ? this.computedOpened : undefined,
|
|
404
404
|
"aria-haspopup": items ? true : false,
|
|
405
|
-
"aria-label": (text || ''
|
|
405
|
+
"aria-label": "".concat(text || '', " floatingactionbutton"),
|
|
406
406
|
"aria-owns": items ? this.listId : undefined,
|
|
407
|
-
"aria-activedescendant": this.focusedIndex >= 0 && items ? this.listId
|
|
408
|
-
tabindex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
|
|
407
|
+
"aria-activedescendant": this.focusedIndex >= 0 && items ? "".concat(this.listId, "-").concat(this.focusedIndex) : undefined,
|
|
408
|
+
tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
|
|
409
409
|
accesskey: accessKey,
|
|
410
410
|
dir: this.currentDir,
|
|
411
411
|
disabled: disabled,
|
|
@@ -429,7 +429,7 @@ var FloatingActionButtonVue2 = {
|
|
|
429
429
|
attrs: this.v3 ? undefined : {
|
|
430
430
|
role: "presentation"
|
|
431
431
|
},
|
|
432
|
-
"class": kendo_vue_common_1.classNames("k-fab-icon k-icon k-i-"
|
|
432
|
+
"class": (0, kendo_vue_common_1.classNames)("k-fab-icon k-icon k-i-".concat(icon))
|
|
433
433
|
}) : iconClass ? h("span", {
|
|
434
434
|
role: "presentation",
|
|
435
435
|
attrs: this.v3 ? undefined : {
|
|
@@ -440,27 +440,27 @@ var FloatingActionButtonVue2 = {
|
|
|
440
440
|
"class": "k-fab-text"
|
|
441
441
|
}, [text])]), // @ts-ignore function children
|
|
442
442
|
h(kendo_vue_popup_1.Popup, {
|
|
443
|
-
ref: kendo_vue_common_1.setRef(this, 'popup'),
|
|
443
|
+
ref: (0, kendo_vue_common_1.setRef)(this, 'popup'),
|
|
444
444
|
show: this.computedOpened,
|
|
445
445
|
attrs: this.v3 ? undefined : {
|
|
446
446
|
show: this.computedOpened,
|
|
447
447
|
anchor: this._anchor,
|
|
448
448
|
animate: popupSettings.animate,
|
|
449
|
-
popupClass: kendo_vue_common_1.classNames('k-popup-transparent k-fab-popup', popupSettings.popupClass),
|
|
450
|
-
anchorAlign: popupSettings.anchorAlign || utils_1.getAnchorAlign(align, this.isRtl),
|
|
451
|
-
popupAlign: popupSettings.popupAlign || utils_1.getPopupAlign(align, this.isRtl)
|
|
449
|
+
popupClass: (0, kendo_vue_common_1.classNames)('k-popup-transparent k-fab-popup', popupSettings.popupClass),
|
|
450
|
+
anchorAlign: popupSettings.anchorAlign || (0, utils_1.getAnchorAlign)(align, this.isRtl),
|
|
451
|
+
popupAlign: popupSettings.popupAlign || (0, utils_1.getPopupAlign)(align, this.isRtl)
|
|
452
452
|
},
|
|
453
453
|
anchor: this._anchor,
|
|
454
454
|
animate: popupSettings.animate,
|
|
455
|
-
popupClass: kendo_vue_common_1.classNames('k-popup-transparent k-fab-popup', popupSettings.popupClass),
|
|
456
|
-
anchorAlign: popupSettings.anchorAlign || utils_1.getAnchorAlign(align, this.isRtl),
|
|
457
|
-
popupAlign: popupSettings.popupAlign || utils_1.getPopupAlign(align, this.isRtl),
|
|
455
|
+
popupClass: (0, kendo_vue_common_1.classNames)('k-popup-transparent k-fab-popup', popupSettings.popupClass),
|
|
456
|
+
anchorAlign: popupSettings.anchorAlign || (0, utils_1.getAnchorAlign)(align, this.isRtl),
|
|
457
|
+
popupAlign: popupSettings.popupAlign || (0, utils_1.getPopupAlign)(align, this.isRtl),
|
|
458
458
|
style: {
|
|
459
459
|
boxShadow: 'none'
|
|
460
460
|
}
|
|
461
461
|
}, this.v3 ? function () {
|
|
462
462
|
return [h("ul", {
|
|
463
|
-
ref: kendo_vue_common_1.setRef(_this2, 'list'),
|
|
463
|
+
ref: (0, kendo_vue_common_1.setRef)(_this2, 'list'),
|
|
464
464
|
role: 'menu',
|
|
465
465
|
attrs: _this2.v3 ? undefined : {
|
|
466
466
|
role: 'menu',
|
|
@@ -469,7 +469,7 @@ var FloatingActionButtonVue2 = {
|
|
|
469
469
|
},
|
|
470
470
|
"aria-labelledby": id,
|
|
471
471
|
id: _this2.listId,
|
|
472
|
-
"class": kendo_vue_common_1.classNames('k-fab-items', {
|
|
472
|
+
"class": (0, kendo_vue_common_1.classNames)('k-fab-items', {
|
|
473
473
|
'k-fab-items-bottom': align.vertical !== 'bottom',
|
|
474
474
|
'k-fab-items-top': align.vertical === 'bottom'
|
|
475
475
|
}),
|
|
@@ -479,7 +479,7 @@ var FloatingActionButtonVue2 = {
|
|
|
479
479
|
}
|
|
480
480
|
}, [fabItems.call(_this2)])];
|
|
481
481
|
} : [h("ul", {
|
|
482
|
-
ref: kendo_vue_common_1.setRef(_this2, 'list'),
|
|
482
|
+
ref: (0, kendo_vue_common_1.setRef)(_this2, 'list'),
|
|
483
483
|
role: 'menu',
|
|
484
484
|
attrs: _this2.v3 ? undefined : {
|
|
485
485
|
role: 'menu',
|
|
@@ -488,7 +488,7 @@ var FloatingActionButtonVue2 = {
|
|
|
488
488
|
},
|
|
489
489
|
"aria-labelledby": id,
|
|
490
490
|
id: _this2.listId,
|
|
491
|
-
"class": kendo_vue_common_1.classNames('k-fab-items', {
|
|
491
|
+
"class": (0, kendo_vue_common_1.classNames)('k-fab-items', {
|
|
492
492
|
'k-fab-items-bottom': align.vertical !== 'bottom',
|
|
493
493
|
'k-fab-items-top': align.vertical === 'bottom'
|
|
494
494
|
}),
|
|
@@ -37,11 +37,11 @@ var FloatingActionButtonItemVue2 = {
|
|
|
37
37
|
'down': null
|
|
38
38
|
},
|
|
39
39
|
mounted: function mounted() {
|
|
40
|
-
this.element = kendo_vue_common_1.getRef(this, 'element');
|
|
40
|
+
this.element = (0, kendo_vue_common_1.getRef)(this, 'element');
|
|
41
41
|
},
|
|
42
42
|
computed: {
|
|
43
43
|
itemClassNames: function itemClassNames() {
|
|
44
|
-
return kendo_vue_common_1.classNames('k-fab-item', {
|
|
44
|
+
return (0, kendo_vue_common_1.classNames)('k-fab-item', {
|
|
45
45
|
'k-focus': this.focused,
|
|
46
46
|
'k-disabled': this.disabled
|
|
47
47
|
});
|
|
@@ -83,20 +83,20 @@ var FloatingActionButtonItemVue2 = {
|
|
|
83
83
|
icon = dataItem.icon;
|
|
84
84
|
var item;
|
|
85
85
|
var itemDefaultRendering = h("li", {
|
|
86
|
-
ref: kendo_vue_common_1.setRef(this, 'element'),
|
|
86
|
+
ref: (0, kendo_vue_common_1.setRef)(this, 'element'),
|
|
87
87
|
id: id,
|
|
88
88
|
attrs: this.v3 ? undefined : {
|
|
89
89
|
id: id,
|
|
90
90
|
role: 'menuitem',
|
|
91
|
-
tabindex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
|
|
91
|
+
tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
|
|
92
92
|
"aria-disabled": disabled,
|
|
93
|
-
"aria-label": (text || ''
|
|
93
|
+
"aria-label": "".concat(text || '', " floatingactionbutton item")
|
|
94
94
|
},
|
|
95
95
|
"class": this.itemClassNames,
|
|
96
96
|
role: 'menuitem',
|
|
97
|
-
tabindex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
|
|
97
|
+
tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
|
|
98
98
|
"aria-disabled": disabled,
|
|
99
|
-
"aria-label": (text || ''
|
|
99
|
+
"aria-label": "".concat(text || '', " floatingactionbutton item"),
|
|
100
100
|
onClick: this.handleClick,
|
|
101
101
|
on: this.v3 ? undefined : {
|
|
102
102
|
"click": this.handleClick,
|
|
@@ -108,7 +108,7 @@ var FloatingActionButtonItemVue2 = {
|
|
|
108
108
|
}, [text && h("span", {
|
|
109
109
|
"class": "k-fab-item-text"
|
|
110
110
|
}, [text]), icon && h("span", {
|
|
111
|
-
"class": kendo_vue_common_1.classNames("k-fab-item-icon k-icon k-i-"
|
|
111
|
+
"class": (0, kendo_vue_common_1.classNames)("k-fab-item-icon k-icon k-i-".concat(icon))
|
|
112
112
|
})]);
|
|
113
113
|
item = kendo_vue_common_1.getTemplate.call(this, {
|
|
114
114
|
h: h,
|
|
@@ -8,36 +8,39 @@ exports.DEFAULT_OFFSET = '16px';
|
|
|
8
8
|
/**
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
var toStringValues = function (val) {
|
|
12
12
|
if (typeof val === 'number') {
|
|
13
13
|
return val + 'px';
|
|
14
14
|
}
|
|
15
15
|
return val;
|
|
16
16
|
};
|
|
17
|
+
exports.toStringValues = toStringValues;
|
|
17
18
|
/**
|
|
18
19
|
* @hidden
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
+
var getAnchorAlign = function (fabAlign, rtl) {
|
|
21
22
|
var align = { horizontal: (rtl ? 'right' : 'left'), vertical: 'bottom' };
|
|
22
23
|
if (fabAlign.horizontal === 'end') {
|
|
23
24
|
align.horizontal = rtl ? 'left' : 'right';
|
|
24
25
|
}
|
|
25
26
|
return align;
|
|
26
27
|
};
|
|
28
|
+
exports.getAnchorAlign = getAnchorAlign;
|
|
27
29
|
/**
|
|
28
30
|
* @hidden
|
|
29
31
|
*/
|
|
30
|
-
|
|
32
|
+
var getPopupAlign = function (fabAlign, rtl) {
|
|
31
33
|
var align = { horizontal: (rtl ? 'right' : 'left'), vertical: 'top' };
|
|
32
34
|
if (fabAlign.horizontal === 'end') {
|
|
33
35
|
align.horizontal = rtl ? 'left' : 'right';
|
|
34
36
|
}
|
|
35
37
|
return align;
|
|
36
38
|
};
|
|
39
|
+
exports.getPopupAlign = getPopupAlign;
|
|
37
40
|
/**
|
|
38
41
|
* @hidden
|
|
39
42
|
*/
|
|
40
|
-
|
|
43
|
+
var getTextDirectionClass = function (rtl, hAlign) {
|
|
41
44
|
var al = hAlign === 'end' ? 'end' : 'start';
|
|
42
45
|
var directions = {
|
|
43
46
|
rtl: { end: 'k-text-left', start: 'k-text-right' },
|
|
@@ -45,24 +48,25 @@ exports.getTextDirectionClass = function (rtl, hAlign) {
|
|
|
45
48
|
};
|
|
46
49
|
return directions[rtl][al];
|
|
47
50
|
};
|
|
51
|
+
exports.getTextDirectionClass = getTextDirectionClass;
|
|
48
52
|
/**
|
|
49
53
|
* @hidden
|
|
50
54
|
*/
|
|
51
|
-
|
|
55
|
+
var position = function (ref, align, alignOffset, isRtl) {
|
|
52
56
|
var horizontal = align.horizontal;
|
|
53
57
|
var vertical = align.vertical;
|
|
54
58
|
if (ref) {
|
|
55
59
|
var xFab = alignOffset && alignOffset.x !== undefined ?
|
|
56
|
-
exports.toStringValues(alignOffset.x) :
|
|
60
|
+
(0, exports.toStringValues)(alignOffset.x) :
|
|
57
61
|
exports.DEFAULT_OFFSET;
|
|
58
62
|
var xCenterFab = alignOffset && alignOffset.x !== undefined ?
|
|
59
|
-
"calc(50% + "
|
|
63
|
+
"calc(50% + ".concat((0, exports.toStringValues)(alignOffset.x), ")") :
|
|
60
64
|
'50%';
|
|
61
65
|
var yFab = alignOffset && alignOffset.y !== undefined ?
|
|
62
|
-
exports.toStringValues(alignOffset.y) :
|
|
66
|
+
(0, exports.toStringValues)(alignOffset.y) :
|
|
63
67
|
exports.DEFAULT_OFFSET;
|
|
64
68
|
var yCenterFab = alignOffset && alignOffset.y !== undefined ?
|
|
65
|
-
"calc(50% + "
|
|
69
|
+
"calc(50% + ".concat((0, exports.toStringValues)(alignOffset.y), ")") :
|
|
66
70
|
'50%';
|
|
67
71
|
ref.style.setProperty(horizontalPosition(align, isRtl), horizontal === 'center' ? xCenterFab : xFab);
|
|
68
72
|
ref.style.setProperty(verticalPosition(align), vertical === 'middle' ? yCenterFab : yFab);
|
|
@@ -79,6 +83,7 @@ exports.position = function (ref, align, alignOffset, isRtl) {
|
|
|
79
83
|
}
|
|
80
84
|
}
|
|
81
85
|
};
|
|
86
|
+
exports.position = position;
|
|
82
87
|
var horizontalPosition = function (align, isRtl) {
|
|
83
88
|
var horizontal = align.horizontal;
|
|
84
89
|
return {
|
|
@@ -76,7 +76,7 @@ var ButtonItemVue2 = {
|
|
|
76
76
|
textField = _a.textField,
|
|
77
77
|
index = _a.index;
|
|
78
78
|
var text = dataItem.text !== undefined ? dataItem.text : textField ? dataItem[textField] : dataItem;
|
|
79
|
-
var iconClass = dataItem.icon ? "k-icon k-i-"
|
|
79
|
+
var iconClass = dataItem.icon ? "k-icon k-i-".concat(dataItem.icon) : dataItem.iconClass;
|
|
80
80
|
var itemContent = h("span", {
|
|
81
81
|
tabindex: -1,
|
|
82
82
|
attrs: this.v3 ? undefined : {
|