@progress/kendo-vue-buttons 3.4.0 → 3.4.2-dev.202207070519
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 +3 -2
- package/dist/es/ButtonGroup.js +6 -7
- package/dist/es/ButtonWrap.js +3 -2
- package/dist/es/Chip/Chip.js +8 -11
- package/dist/es/Chip/ChipList.js +7 -10
- package/dist/es/FloatingActionButton/FloatingActionButton.js +13 -18
- package/dist/es/FloatingActionButton/FloatingActionButtonItem.js +10 -15
- package/dist/es/ListButton/ButtonItem.js +5 -4
- package/dist/es/ListButton/DropDownButton.js +3 -2
- package/dist/es/ListButton/SplitButton.js +3 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/toolbar/Toolbar.js +4 -3
- package/dist/es/toolbar/tools/ToolbarItem.js +3 -2
- package/dist/es/toolbar/tools/ToolbarSeparator.js +3 -2
- package/dist/es/toolbar/tools/ToolbarSpacer.js +3 -2
- package/dist/npm/Button.js +3 -2
- package/dist/npm/ButtonGroup.js +6 -7
- package/dist/npm/ButtonWrap.js +3 -2
- package/dist/npm/Chip/Chip.js +7 -10
- package/dist/npm/Chip/ChipList.js +6 -9
- package/dist/npm/FloatingActionButton/FloatingActionButton.js +12 -17
- package/dist/npm/FloatingActionButton/FloatingActionButtonItem.js +9 -14
- package/dist/npm/ListButton/ButtonItem.js +5 -4
- package/dist/npm/ListButton/DropDownButton.js +3 -2
- package/dist/npm/ListButton/SplitButton.js +3 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/toolbar/Toolbar.js +4 -3
- package/dist/npm/toolbar/tools/ToolbarItem.js +3 -2
- package/dist/npm/toolbar/tools/ToolbarSeparator.js +3 -2
- package/dist/npm/toolbar/tools/ToolbarSpacer.js +3 -2
- package/package.json +5 -5
package/dist/es/ButtonGroup.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version[0] === '3';
|
|
5
6
|
import { classNames, getDefaultSlots, validatePackage } from '@progress/kendo-vue-common';
|
|
6
7
|
import { ButtonWrap } from './ButtonWrap';
|
|
7
8
|
import { packageMetadata } from './package-metadata';
|
|
@@ -30,8 +31,8 @@ var ButtonGroupVue2 = {
|
|
|
30
31
|
validatePackage(packageMetadata);
|
|
31
32
|
},
|
|
32
33
|
// @ts-ignore
|
|
33
|
-
setup: !
|
|
34
|
-
var v3 = !!
|
|
34
|
+
setup: !isV3 ? undefined : function () {
|
|
35
|
+
var v3 = !!isV3;
|
|
35
36
|
return {
|
|
36
37
|
v3: v3
|
|
37
38
|
};
|
|
@@ -77,16 +78,14 @@ var ButtonGroupVue2 = {
|
|
|
77
78
|
style: {
|
|
78
79
|
width: this.width
|
|
79
80
|
},
|
|
80
|
-
|
|
81
|
+
dir: this.$props.dir // Accessibility properties
|
|
82
|
+
,
|
|
81
83
|
attrs: this.v3 ? undefined : {
|
|
82
|
-
|
|
83
|
-
dir: this.$props.dir // Accessibility properties
|
|
84
|
-
,
|
|
84
|
+
dir: this.$props.dir,
|
|
85
85
|
role: 'group',
|
|
86
86
|
"aria-disabled": this.$props.disabled,
|
|
87
87
|
"aria-multiselectable": true
|
|
88
88
|
},
|
|
89
|
-
dir: this.$props.dir,
|
|
90
89
|
role: 'group',
|
|
91
90
|
"aria-disabled": this.$props.disabled,
|
|
92
91
|
"aria-multiselectable": true,
|
package/dist/es/ButtonWrap.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version[0] === '3';
|
|
5
6
|
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
6
7
|
/**
|
|
7
8
|
* @hidden
|
|
@@ -11,8 +12,8 @@ var ButtonWrapVue2 = {
|
|
|
11
12
|
name: 'KendoButtonWrap',
|
|
12
13
|
props: {},
|
|
13
14
|
// @ts-ignore
|
|
14
|
-
setup: !
|
|
15
|
-
var v3 = !!
|
|
15
|
+
setup: !isV3 ? undefined : function () {
|
|
16
|
+
var v3 = !!isV3;
|
|
16
17
|
return {
|
|
17
18
|
v3: v3
|
|
18
19
|
};
|
package/dist/es/Chip/Chip.js
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version[0] === '3';
|
|
5
6
|
var ref = allVue.ref; // import { ChipListSelectionContext, ChipListFocusContext, ChipListDataContext } from './ChipList';
|
|
6
7
|
|
|
7
|
-
import { classNames, getTabIndex, Keys, noop, validatePackage, kendoThemeMaps } from '@progress/kendo-vue-common';
|
|
8
|
+
import { classNames, getTabIndex, Keys, noop, validatePackage, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
|
|
8
9
|
import { FOCUS_ACTION } from './focus-reducer';
|
|
9
10
|
import { DATA_ACTION } from './data-reducer';
|
|
10
11
|
import { SELECTION_ACTION } from './selection-reducer';
|
|
@@ -117,7 +118,7 @@ var ChipVue2 = {
|
|
|
117
118
|
validatePackage(packageMetadata);
|
|
118
119
|
},
|
|
119
120
|
mounted: function mounted() {
|
|
120
|
-
this.chip = this
|
|
121
|
+
this.chip = getRef(this, 'chip');
|
|
121
122
|
this.currentDir = this.$props.dir !== undefined ? this.$props.dir === 'rtl' : this.$el && getComputedStyle(this.$el).direction === 'rtl' || false;
|
|
122
123
|
},
|
|
123
124
|
updated: function updated() {
|
|
@@ -252,8 +253,8 @@ var ChipVue2 = {
|
|
|
252
253
|
}
|
|
253
254
|
},
|
|
254
255
|
// @ts-ignore
|
|
255
|
-
setup: !
|
|
256
|
-
var v3 = !!
|
|
256
|
+
setup: !isV3 ? undefined : function () {
|
|
257
|
+
var v3 = !!isV3;
|
|
257
258
|
var chipRef = ref(null);
|
|
258
259
|
return {
|
|
259
260
|
v3: v3,
|
|
@@ -263,8 +264,6 @@ var ChipVue2 = {
|
|
|
263
264
|
render: function render(createElement) {
|
|
264
265
|
var _a;
|
|
265
266
|
|
|
266
|
-
var _this = this;
|
|
267
|
-
|
|
268
267
|
var h = gh || createElement;
|
|
269
268
|
var _b = this.$props,
|
|
270
269
|
size = _b.size,
|
|
@@ -279,17 +278,15 @@ var ChipVue2 = {
|
|
|
279
278
|
role: this.$props.role,
|
|
280
279
|
id: this.$props.value,
|
|
281
280
|
dir: this.currentDir,
|
|
282
|
-
|
|
281
|
+
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
283
282
|
"aria-checked": this.currentSelected,
|
|
284
283
|
"aria-disabled": this.$props.disabled,
|
|
285
284
|
"aria-describedby": this.$props.ariaDescribedBy
|
|
286
285
|
},
|
|
287
286
|
id: this.$props.value,
|
|
288
|
-
ref: this
|
|
289
|
-
_this.chipRef = el;
|
|
290
|
-
} : 'chip',
|
|
287
|
+
ref: setRef(this, 'chip'),
|
|
291
288
|
dir: this.currentDir,
|
|
292
|
-
|
|
289
|
+
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
293
290
|
"class": classNames('k-chip', (_a = {
|
|
294
291
|
'k-rtl': this.currentDir === 'rtl',
|
|
295
292
|
'k-disabled': this.$props.disabled,
|
package/dist/es/Chip/ChipList.js
CHANGED
|
@@ -18,8 +18,9 @@ var __assign = this && this.__assign || function () {
|
|
|
18
18
|
import * as Vue from 'vue';
|
|
19
19
|
var allVue = Vue;
|
|
20
20
|
var gh = allVue.h;
|
|
21
|
+
var isV3 = allVue.version[0] === '3';
|
|
21
22
|
var ref = allVue.ref;
|
|
22
|
-
import { getTabIndex, classNames, getListeners, templateRendering, getTemplate, validatePackage, kendoThemeMaps } from '@progress/kendo-vue-common';
|
|
23
|
+
import { getTabIndex, classNames, getListeners, templateRendering, getTemplate, validatePackage, kendoThemeMaps, setRef } from '@progress/kendo-vue-common';
|
|
23
24
|
import { selectionReducer } from './selection-reducer';
|
|
24
25
|
import { focusReducer } from './focus-reducer';
|
|
25
26
|
import { dataReducer } from './data-reducer';
|
|
@@ -186,8 +187,8 @@ var ChipListVue2 = {
|
|
|
186
187
|
}
|
|
187
188
|
},
|
|
188
189
|
// @ts-ignore
|
|
189
|
-
setup: !
|
|
190
|
-
var v3 = !!
|
|
190
|
+
setup: !isV3 ? undefined : function () {
|
|
191
|
+
var v3 = !!isV3;
|
|
191
192
|
var chipListRef = ref(null);
|
|
192
193
|
return {
|
|
193
194
|
v3: v3,
|
|
@@ -197,27 +198,23 @@ var ChipListVue2 = {
|
|
|
197
198
|
render: function render(createElement) {
|
|
198
199
|
var _a;
|
|
199
200
|
|
|
200
|
-
var _this = this;
|
|
201
|
-
|
|
202
201
|
var h = gh || createElement;
|
|
203
202
|
var size = this.$props.size;
|
|
204
203
|
return h("div", {
|
|
205
|
-
ref: this
|
|
206
|
-
_this.chipListRef = el;
|
|
207
|
-
} : 'chipList',
|
|
204
|
+
ref: setRef(this, 'chipList'),
|
|
208
205
|
role: 'listbox',
|
|
209
206
|
attrs: this.v3 ? undefined : {
|
|
210
207
|
role: 'listbox',
|
|
211
208
|
id: this.$props.id,
|
|
212
209
|
dir: this.currentDir,
|
|
213
|
-
|
|
210
|
+
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
214
211
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
215
212
|
"aria-describedby": this.$props.ariaDescribedBy
|
|
216
213
|
},
|
|
217
214
|
id: this.$props.id,
|
|
218
215
|
dir: this.currentDir,
|
|
219
216
|
style: this.$props.style,
|
|
220
|
-
|
|
217
|
+
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
221
218
|
"class": classNames('k-chip-list', (_a = {}, _a["k-chip-list-" + (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)),
|
|
222
219
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
223
220
|
"aria-describedby": this.$props.ariaDescribedBy
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version[0] === '3';
|
|
5
6
|
var ref = allVue.ref;
|
|
6
|
-
import { classNames, guid, Keys, getTabIndex, templateRendering, getListeners, validatePackage, canUseDOM, kendoThemeMaps } from '@progress/kendo-vue-common';
|
|
7
|
+
import { classNames, guid, Keys, getTabIndex, templateRendering, getListeners, validatePackage, canUseDOM, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
|
|
7
8
|
import { FloatingActionButtonItem } from './FloatingActionButtonItem';
|
|
8
9
|
import { packageMetadata } from '../package-metadata';
|
|
9
10
|
import { position, getAnchorAlign, getPopupAlign, getTextDirectionClass } from './utils';
|
|
@@ -111,8 +112,8 @@ var FloatingActionButtonVue2 = {
|
|
|
111
112
|
},
|
|
112
113
|
mounted: function mounted() {
|
|
113
114
|
this.element = this.v3 ? this.kendoAnchorRef : this.$refs[this._anchor];
|
|
114
|
-
this.list = this
|
|
115
|
-
this.popup = this
|
|
115
|
+
this.list = getRef(this, 'list');
|
|
116
|
+
this.popup = getRef(this, 'popup');
|
|
116
117
|
this.currentDir = this.$props.dir !== undefined ? this.$props.dir : this.$el && getComputedStyle(this.$el).direction === 'rtl' || false;
|
|
117
118
|
this.isRtl = this.currentDir === 'rtl';
|
|
118
119
|
|
|
@@ -297,8 +298,8 @@ var FloatingActionButtonVue2 = {
|
|
|
297
298
|
}
|
|
298
299
|
},
|
|
299
300
|
// @ts-ignore
|
|
300
|
-
setup: !
|
|
301
|
-
var v3 = !!
|
|
301
|
+
setup: !isV3 ? undefined : function () {
|
|
302
|
+
var v3 = !!isV3;
|
|
302
303
|
var chipRef = ref(null);
|
|
303
304
|
var kendoAnchorRef = ref(null);
|
|
304
305
|
return {
|
|
@@ -378,8 +379,8 @@ var FloatingActionButtonVue2 = {
|
|
|
378
379
|
"aria-label": (text || '') + " floatingactionbutton",
|
|
379
380
|
"aria-owns": items ? this.listId : undefined,
|
|
380
381
|
"aria-activedescendant": this.focusedIndex >= 0 && items ? this.listId + "-" + this.focusedIndex : undefined,
|
|
381
|
-
|
|
382
|
-
|
|
382
|
+
tabindex: getTabIndex(tabIndex, disabled),
|
|
383
|
+
accesskey: accessKey,
|
|
383
384
|
dir: this.currentDir,
|
|
384
385
|
disabled: disabled
|
|
385
386
|
},
|
|
@@ -391,8 +392,8 @@ var FloatingActionButtonVue2 = {
|
|
|
391
392
|
"aria-label": (text || '') + " floatingactionbutton",
|
|
392
393
|
"aria-owns": items ? this.listId : undefined,
|
|
393
394
|
"aria-activedescendant": this.focusedIndex >= 0 && items ? this.listId + "-" + this.focusedIndex : undefined,
|
|
394
|
-
|
|
395
|
-
|
|
395
|
+
tabindex: getTabIndex(tabIndex, disabled),
|
|
396
|
+
accesskey: accessKey,
|
|
396
397
|
dir: this.currentDir,
|
|
397
398
|
disabled: disabled,
|
|
398
399
|
"class": this.buttonClassNames,
|
|
@@ -426,9 +427,7 @@ var FloatingActionButtonVue2 = {
|
|
|
426
427
|
"class": "k-fab-text"
|
|
427
428
|
}, [text])]), // @ts-ignore function children
|
|
428
429
|
h(Popup, {
|
|
429
|
-
ref: this
|
|
430
|
-
_this.popupRef = el;
|
|
431
|
-
} : 'popup',
|
|
430
|
+
ref: setRef(this, 'popup'),
|
|
432
431
|
show: this.computedOpened,
|
|
433
432
|
attrs: this.v3 ? undefined : {
|
|
434
433
|
show: this.computedOpened,
|
|
@@ -448,9 +447,7 @@ var FloatingActionButtonVue2 = {
|
|
|
448
447
|
}
|
|
449
448
|
}, this.v3 ? function () {
|
|
450
449
|
return [h("ul", {
|
|
451
|
-
ref: _this2
|
|
452
|
-
_this.listRef = el;
|
|
453
|
-
} : 'list',
|
|
450
|
+
ref: setRef(_this2, 'list'),
|
|
454
451
|
role: 'menu',
|
|
455
452
|
attrs: _this2.v3 ? undefined : {
|
|
456
453
|
role: 'menu',
|
|
@@ -469,9 +466,7 @@ var FloatingActionButtonVue2 = {
|
|
|
469
466
|
}
|
|
470
467
|
}, [fabItems.call(_this2)])];
|
|
471
468
|
} : [h("ul", {
|
|
472
|
-
ref: _this2
|
|
473
|
-
_this.listRef = el;
|
|
474
|
-
} : 'list',
|
|
469
|
+
ref: setRef(_this2, 'list'),
|
|
475
470
|
role: 'menu',
|
|
476
471
|
attrs: _this2.v3 ? undefined : {
|
|
477
472
|
role: 'menu',
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version[0] === '3';
|
|
5
6
|
var ref = allVue.ref;
|
|
6
|
-
import { classNames, getTabIndex, getTemplate } from '@progress/kendo-vue-common';
|
|
7
|
+
import { classNames, getRef, getTabIndex, getTemplate, setRef } from '@progress/kendo-vue-common';
|
|
7
8
|
/**
|
|
8
9
|
* @hidden
|
|
9
10
|
*/
|
|
@@ -27,7 +28,7 @@ var FloatingActionButtonItemVue2 = {
|
|
|
27
28
|
'down': null
|
|
28
29
|
},
|
|
29
30
|
mounted: function mounted() {
|
|
30
|
-
this.element = this
|
|
31
|
+
this.element = getRef(this, 'element');
|
|
31
32
|
},
|
|
32
33
|
computed: {
|
|
33
34
|
itemClassNames: function itemClassNames() {
|
|
@@ -53,8 +54,8 @@ var FloatingActionButtonItemVue2 = {
|
|
|
53
54
|
}
|
|
54
55
|
},
|
|
55
56
|
// @ts-ignore
|
|
56
|
-
setup: !
|
|
57
|
-
var v3 = !!
|
|
57
|
+
setup: !isV3 ? undefined : function () {
|
|
58
|
+
var v3 = !!isV3;
|
|
58
59
|
var elementRef = ref(null);
|
|
59
60
|
return {
|
|
60
61
|
v3: v3,
|
|
@@ -62,8 +63,6 @@ var FloatingActionButtonItemVue2 = {
|
|
|
62
63
|
};
|
|
63
64
|
},
|
|
64
65
|
render: function render(createElement) {
|
|
65
|
-
var _this = this;
|
|
66
|
-
|
|
67
66
|
var h = gh || createElement;
|
|
68
67
|
var _a = this.$props,
|
|
69
68
|
disabled = _a.disabled,
|
|
@@ -75,21 +74,18 @@ var FloatingActionButtonItemVue2 = {
|
|
|
75
74
|
icon = dataItem.icon;
|
|
76
75
|
var item;
|
|
77
76
|
var itemDefaultRendering = h("li", {
|
|
78
|
-
ref: this
|
|
79
|
-
_this.elementRef = el;
|
|
80
|
-
} : 'element',
|
|
77
|
+
ref: setRef(this, 'element'),
|
|
81
78
|
id: id,
|
|
82
79
|
attrs: this.v3 ? undefined : {
|
|
83
80
|
id: id,
|
|
84
81
|
role: 'menuitem',
|
|
85
|
-
|
|
82
|
+
tabindex: getTabIndex(tabIndex, disabled),
|
|
86
83
|
"aria-disabled": disabled,
|
|
87
|
-
"aria-label": (text || '') + " floatingactionbutton item"
|
|
88
|
-
customProp: customProp
|
|
84
|
+
"aria-label": (text || '') + " floatingactionbutton item"
|
|
89
85
|
},
|
|
90
86
|
"class": this.itemClassNames,
|
|
91
87
|
role: 'menuitem',
|
|
92
|
-
|
|
88
|
+
tabindex: getTabIndex(tabIndex, disabled),
|
|
93
89
|
"aria-disabled": disabled,
|
|
94
90
|
"aria-label": (text || '') + " floatingactionbutton item",
|
|
95
91
|
onClick: this.handleClick,
|
|
@@ -99,8 +95,7 @@ var FloatingActionButtonItemVue2 = {
|
|
|
99
95
|
"pointerdown": this.onDown
|
|
100
96
|
},
|
|
101
97
|
onMousedown: this.onDown,
|
|
102
|
-
onPointerdown: this.onDown
|
|
103
|
-
customProp: customProp
|
|
98
|
+
onPointerdown: this.onDown
|
|
104
99
|
}, [text && h("span", {
|
|
105
100
|
"class": "k-fab-item-text"
|
|
106
101
|
}, [text]), icon && h("span", {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version[0] === '3';
|
|
5
6
|
import { getTemplate } from '@progress/kendo-vue-common';
|
|
6
7
|
/**
|
|
7
8
|
* @hidden
|
|
@@ -48,8 +49,8 @@ var ButtonItemVue2 = {
|
|
|
48
49
|
}
|
|
49
50
|
},
|
|
50
51
|
// @ts-ignore
|
|
51
|
-
setup: !
|
|
52
|
-
var v3 = !!
|
|
52
|
+
setup: !isV3 ? undefined : function () {
|
|
53
|
+
var v3 = !!isV3;
|
|
53
54
|
return {
|
|
54
55
|
v3: v3
|
|
55
56
|
};
|
|
@@ -68,9 +69,9 @@ var ButtonItemVue2 = {
|
|
|
68
69
|
var text = dataItem.text !== undefined ? dataItem.text : textField ? dataItem[textField] : dataItem;
|
|
69
70
|
var iconClass = dataItem.icon ? "k-icon k-i-" + dataItem.icon : dataItem.iconClass;
|
|
70
71
|
var itemContent = h("span", {
|
|
71
|
-
|
|
72
|
+
tabindex: -1,
|
|
72
73
|
attrs: this.v3 ? undefined : {
|
|
73
|
-
|
|
74
|
+
tabindex: -1
|
|
74
75
|
},
|
|
75
76
|
"class": this.innerClass,
|
|
76
77
|
key: "icon"
|
|
@@ -18,6 +18,7 @@ var __assign = this && this.__assign || function () {
|
|
|
18
18
|
import * as Vue from 'vue';
|
|
19
19
|
var allVue = Vue;
|
|
20
20
|
var gh = allVue.h;
|
|
21
|
+
var isV3 = allVue.version[0] === '3';
|
|
21
22
|
var ref = allVue.ref;
|
|
22
23
|
import { Button as KendoButton } from '../Button';
|
|
23
24
|
import { classNames, guid, Keys, kendoThemeMaps, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
@@ -144,8 +145,8 @@ var DropDownButtonVue2 = {
|
|
|
144
145
|
}
|
|
145
146
|
},
|
|
146
147
|
// @ts-ignore
|
|
147
|
-
setup: !
|
|
148
|
-
var v3 = !!
|
|
148
|
+
setup: !isV3 ? undefined : function () {
|
|
149
|
+
var v3 = !!isV3;
|
|
149
150
|
var kendoAnchorRef = ref(null);
|
|
150
151
|
return {
|
|
151
152
|
v3: v3,
|
|
@@ -18,6 +18,7 @@ var __assign = this && this.__assign || function () {
|
|
|
18
18
|
import * as Vue from 'vue';
|
|
19
19
|
var allVue = Vue;
|
|
20
20
|
var gh = allVue.h;
|
|
21
|
+
var isV3 = allVue.version[0] === '3';
|
|
21
22
|
var ref = allVue.ref;
|
|
22
23
|
import { Button as KendoButton } from '../Button';
|
|
23
24
|
import { classNames, guid, Keys, kendoThemeMaps, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
@@ -133,8 +134,8 @@ var SplitButtonVue2 = {
|
|
|
133
134
|
}
|
|
134
135
|
},
|
|
135
136
|
// @ts-ignore
|
|
136
|
-
setup: !
|
|
137
|
-
var v3 = !!
|
|
137
|
+
setup: !isV3 ? undefined : function () {
|
|
138
|
+
var v3 = !!isV3;
|
|
138
139
|
var kendoAnchorRef = ref(null);
|
|
139
140
|
return {
|
|
140
141
|
v3: v3,
|
|
@@ -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: 1657170562,
|
|
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
|
};
|
|
@@ -18,6 +18,7 @@ var __assign = this && this.__assign || function () {
|
|
|
18
18
|
import * as Vue from 'vue';
|
|
19
19
|
var allVue = Vue;
|
|
20
20
|
var gh = allVue.h;
|
|
21
|
+
var isV3 = allVue.version[0] === '3';
|
|
21
22
|
import { Keys, validatePackage, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
22
23
|
import { toolbarButtons, internalButtons } from './../util';
|
|
23
24
|
import { packageMetadata } from '../package-metadata';
|
|
@@ -82,7 +83,7 @@ var ToolbarVue2 = {
|
|
|
82
83
|
this.currentButtons = this.getCurrentButtons();
|
|
83
84
|
this.setTabIndex(this.focusedIndex());
|
|
84
85
|
},
|
|
85
|
-
destroyed: !!
|
|
86
|
+
destroyed: !!isV3 ? undefined : function () {
|
|
86
87
|
window.removeEventListener('resize', this.onWindowResize);
|
|
87
88
|
this.currentButtons.length = 0;
|
|
88
89
|
},
|
|
@@ -92,8 +93,8 @@ var ToolbarVue2 = {
|
|
|
92
93
|
this.currentButtons.length = 0;
|
|
93
94
|
},
|
|
94
95
|
// @ts-ignore
|
|
95
|
-
setup: !
|
|
96
|
-
var v3 = !!
|
|
96
|
+
setup: !isV3 ? undefined : function () {
|
|
97
|
+
var v3 = !!isV3;
|
|
97
98
|
return {
|
|
98
99
|
v3: v3
|
|
99
100
|
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version[0] === '3';
|
|
5
6
|
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
6
7
|
/**
|
|
7
8
|
* @hidden
|
|
@@ -15,8 +16,8 @@ var ToolbarItemVue2 = {
|
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
18
|
// @ts-ignore
|
|
18
|
-
setup: !
|
|
19
|
-
var v3 = !!
|
|
19
|
+
setup: !isV3 ? undefined : function () {
|
|
20
|
+
var v3 = !!isV3;
|
|
20
21
|
return {
|
|
21
22
|
v3: v3
|
|
22
23
|
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version[0] === '3';
|
|
5
6
|
import { ToolbarItem } from './ToolbarItem';
|
|
6
7
|
/**
|
|
7
8
|
* @hidden
|
|
@@ -10,8 +11,8 @@ import { ToolbarItem } from './ToolbarItem';
|
|
|
10
11
|
var ToolbarSeparatorVue2 = {
|
|
11
12
|
name: 'KendoToolbarItem',
|
|
12
13
|
// @ts-ignore
|
|
13
|
-
setup: !
|
|
14
|
-
var v3 = !!
|
|
14
|
+
setup: !isV3 ? undefined : function () {
|
|
15
|
+
var v3 = !!isV3;
|
|
15
16
|
return {
|
|
16
17
|
v3: v3
|
|
17
18
|
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version[0] === '3';
|
|
5
6
|
/**
|
|
6
7
|
* @hidden
|
|
7
8
|
*/
|
|
@@ -9,8 +10,8 @@ var gh = allVue.h;
|
|
|
9
10
|
var ToolbarSpacerVue2 = {
|
|
10
11
|
name: 'KendoToolbarItem',
|
|
11
12
|
// @ts-ignore
|
|
12
|
-
setup: !
|
|
13
|
-
var v3 = !!
|
|
13
|
+
setup: !isV3 ? undefined : function () {
|
|
14
|
+
var v3 = !!isV3;
|
|
14
15
|
return {
|
|
15
16
|
v3: v3
|
|
16
17
|
};
|
package/dist/npm/Button.js
CHANGED
|
@@ -9,6 +9,7 @@ var Vue = require("vue");
|
|
|
9
9
|
|
|
10
10
|
var allVue = Vue;
|
|
11
11
|
var gh = allVue.h;
|
|
12
|
+
var isV3 = allVue.version[0] === '3';
|
|
12
13
|
|
|
13
14
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
14
15
|
|
|
@@ -187,8 +188,8 @@ var ButtonVue2 = {
|
|
|
187
188
|
}
|
|
188
189
|
},
|
|
189
190
|
// @ts-ignore
|
|
190
|
-
setup: !
|
|
191
|
-
var v3 = !!
|
|
191
|
+
setup: !isV3 ? undefined : function () {
|
|
192
|
+
var v3 = !!isV3;
|
|
192
193
|
return {
|
|
193
194
|
v3: v3
|
|
194
195
|
};
|
package/dist/npm/ButtonGroup.js
CHANGED
|
@@ -9,6 +9,7 @@ var Vue = require("vue");
|
|
|
9
9
|
|
|
10
10
|
var allVue = Vue;
|
|
11
11
|
var gh = allVue.h;
|
|
12
|
+
var isV3 = allVue.version[0] === '3';
|
|
12
13
|
|
|
13
14
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
14
15
|
|
|
@@ -42,8 +43,8 @@ var ButtonGroupVue2 = {
|
|
|
42
43
|
kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
|
|
43
44
|
},
|
|
44
45
|
// @ts-ignore
|
|
45
|
-
setup: !
|
|
46
|
-
var v3 = !!
|
|
46
|
+
setup: !isV3 ? undefined : function () {
|
|
47
|
+
var v3 = !!isV3;
|
|
47
48
|
return {
|
|
48
49
|
v3: v3
|
|
49
50
|
};
|
|
@@ -89,16 +90,14 @@ var ButtonGroupVue2 = {
|
|
|
89
90
|
style: {
|
|
90
91
|
width: this.width
|
|
91
92
|
},
|
|
92
|
-
|
|
93
|
+
dir: this.$props.dir // Accessibility properties
|
|
94
|
+
,
|
|
93
95
|
attrs: this.v3 ? undefined : {
|
|
94
|
-
|
|
95
|
-
dir: this.$props.dir // Accessibility properties
|
|
96
|
-
,
|
|
96
|
+
dir: this.$props.dir,
|
|
97
97
|
role: 'group',
|
|
98
98
|
"aria-disabled": this.$props.disabled,
|
|
99
99
|
"aria-multiselectable": true
|
|
100
100
|
},
|
|
101
|
-
dir: this.$props.dir,
|
|
102
101
|
role: 'group',
|
|
103
102
|
"aria-disabled": this.$props.disabled,
|
|
104
103
|
"aria-multiselectable": true,
|
package/dist/npm/ButtonWrap.js
CHANGED
|
@@ -9,6 +9,7 @@ var Vue = require("vue");
|
|
|
9
9
|
|
|
10
10
|
var allVue = Vue;
|
|
11
11
|
var gh = allVue.h;
|
|
12
|
+
var isV3 = allVue.version[0] === '3';
|
|
12
13
|
|
|
13
14
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
14
15
|
/**
|
|
@@ -20,8 +21,8 @@ var ButtonWrapVue2 = {
|
|
|
20
21
|
name: 'KendoButtonWrap',
|
|
21
22
|
props: {},
|
|
22
23
|
// @ts-ignore
|
|
23
|
-
setup: !
|
|
24
|
-
var v3 = !!
|
|
24
|
+
setup: !isV3 ? undefined : function () {
|
|
25
|
+
var v3 = !!isV3;
|
|
25
26
|
return {
|
|
26
27
|
v3: v3
|
|
27
28
|
};
|
package/dist/npm/Chip/Chip.js
CHANGED
|
@@ -9,6 +9,7 @@ var Vue = require("vue");
|
|
|
9
9
|
|
|
10
10
|
var allVue = Vue;
|
|
11
11
|
var gh = allVue.h;
|
|
12
|
+
var isV3 = allVue.version[0] === '3';
|
|
12
13
|
var ref = allVue.ref; // import { ChipListSelectionContext, ChipListFocusContext, ChipListDataContext } from './ChipList';
|
|
13
14
|
|
|
14
15
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
@@ -129,7 +130,7 @@ var ChipVue2 = {
|
|
|
129
130
|
kendo_vue_common_1.validatePackage(package_metadata_1.packageMetadata);
|
|
130
131
|
},
|
|
131
132
|
mounted: function mounted() {
|
|
132
|
-
this.chip =
|
|
133
|
+
this.chip = kendo_vue_common_1.getRef(this, 'chip');
|
|
133
134
|
this.currentDir = this.$props.dir !== undefined ? this.$props.dir === 'rtl' : this.$el && getComputedStyle(this.$el).direction === 'rtl' || false;
|
|
134
135
|
},
|
|
135
136
|
updated: function updated() {
|
|
@@ -264,8 +265,8 @@ var ChipVue2 = {
|
|
|
264
265
|
}
|
|
265
266
|
},
|
|
266
267
|
// @ts-ignore
|
|
267
|
-
setup: !
|
|
268
|
-
var v3 = !!
|
|
268
|
+
setup: !isV3 ? undefined : function () {
|
|
269
|
+
var v3 = !!isV3;
|
|
269
270
|
var chipRef = ref(null);
|
|
270
271
|
return {
|
|
271
272
|
v3: v3,
|
|
@@ -275,8 +276,6 @@ var ChipVue2 = {
|
|
|
275
276
|
render: function render(createElement) {
|
|
276
277
|
var _a;
|
|
277
278
|
|
|
278
|
-
var _this = this;
|
|
279
|
-
|
|
280
279
|
var h = gh || createElement;
|
|
281
280
|
var _b = this.$props,
|
|
282
281
|
size = _b.size,
|
|
@@ -291,17 +290,15 @@ var ChipVue2 = {
|
|
|
291
290
|
role: this.$props.role,
|
|
292
291
|
id: this.$props.value,
|
|
293
292
|
dir: this.currentDir,
|
|
294
|
-
|
|
293
|
+
tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
295
294
|
"aria-checked": this.currentSelected,
|
|
296
295
|
"aria-disabled": this.$props.disabled,
|
|
297
296
|
"aria-describedby": this.$props.ariaDescribedBy
|
|
298
297
|
},
|
|
299
298
|
id: this.$props.value,
|
|
300
|
-
ref: this
|
|
301
|
-
_this.chipRef = el;
|
|
302
|
-
} : 'chip',
|
|
299
|
+
ref: kendo_vue_common_1.setRef(this, 'chip'),
|
|
303
300
|
dir: this.currentDir,
|
|
304
|
-
|
|
301
|
+
tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
305
302
|
"class": kendo_vue_common_1.classNames('k-chip', (_a = {
|
|
306
303
|
'k-rtl': this.currentDir === 'rtl',
|
|
307
304
|
'k-disabled': this.$props.disabled,
|