@progress/kendo-vue-layout 3.7.4-dev.202212020747 → 3.7.4-dev.202301091431
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/README.md +1 -1
- package/dist/cdn/js/kendo-vue-layout.js +1 -1
- package/dist/es/bottomnavigation/BottomNavigationItem.js +9 -5
- package/dist/es/drawer/DrawerItem.js +23 -10
- package/dist/es/drawer/DrawerNavigation.js +2 -2
- package/dist/es/expansionpanel/ExpansionPanel.js +14 -7
- package/dist/es/menu/components/MenuItemArrow.d.ts +3 -3
- package/dist/es/menu/components/MenuItemArrow.js +11 -10
- package/dist/es/menu/components/MenuItemInternal.js +4 -5
- package/dist/es/messages/main.d.ts +15 -0
- package/dist/es/messages/main.js +16 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/panelbar/PanelBarItem.js +17 -13
- package/dist/es/splitter/SplitterBar.js +68 -23
- package/dist/es/splitter/SplitterPane.js +5 -1
- package/dist/es/stepper/Step.js +6 -6
- package/dist/es/stepper/Stepper.js +11 -0
- package/dist/es/stepper/messages/main.d.ts +5 -0
- package/dist/es/stepper/messages/main.js +5 -0
- package/dist/es/tilelayout/Tile.d.ts +2 -0
- package/dist/es/tilelayout/Tile.js +25 -3
- package/dist/es/tilelayout/TileLayout.js +32 -9
- package/dist/es/tilelayout/interfaces/main.d.ts +8 -0
- package/dist/esm/bottomnavigation/BottomNavigationItem.js +9 -5
- package/dist/esm/drawer/DrawerItem.js +23 -10
- package/dist/esm/drawer/DrawerNavigation.js +2 -2
- package/dist/esm/expansionpanel/ExpansionPanel.js +14 -7
- package/dist/esm/menu/components/MenuItemArrow.d.ts +3 -3
- package/dist/esm/menu/components/MenuItemArrow.js +11 -10
- package/dist/esm/menu/components/MenuItemInternal.js +4 -5
- package/dist/esm/messages/main.d.ts +15 -0
- package/dist/esm/messages/main.js +16 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/panelbar/PanelBarItem.js +17 -13
- package/dist/esm/splitter/SplitterBar.js +68 -23
- package/dist/esm/splitter/SplitterPane.js +5 -1
- package/dist/esm/stepper/Step.js +6 -6
- package/dist/esm/stepper/Stepper.js +11 -0
- package/dist/esm/stepper/messages/main.d.ts +5 -0
- package/dist/esm/stepper/messages/main.js +5 -0
- package/dist/esm/tilelayout/Tile.d.ts +2 -0
- package/dist/esm/tilelayout/Tile.js +25 -3
- package/dist/esm/tilelayout/TileLayout.js +32 -9
- package/dist/esm/tilelayout/interfaces/main.d.ts +8 -0
- package/dist/npm/bottomnavigation/BottomNavigationItem.js +8 -4
- package/dist/npm/drawer/DrawerItem.js +22 -9
- package/dist/npm/drawer/DrawerNavigation.js +2 -2
- package/dist/npm/expansionpanel/ExpansionPanel.js +13 -6
- package/dist/npm/menu/components/MenuItemArrow.d.ts +3 -3
- package/dist/npm/menu/components/MenuItemArrow.js +11 -10
- package/dist/npm/menu/components/MenuItemInternal.js +3 -4
- package/dist/npm/messages/main.d.ts +15 -0
- package/dist/npm/messages/main.js +19 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/panelbar/PanelBarItem.js +16 -12
- package/dist/npm/splitter/SplitterBar.js +67 -22
- package/dist/npm/splitter/SplitterPane.js +5 -1
- package/dist/npm/stepper/Step.js +5 -5
- package/dist/npm/stepper/Stepper.js +11 -0
- package/dist/npm/stepper/messages/main.d.ts +5 -0
- package/dist/npm/stepper/messages/main.js +6 -1
- package/dist/npm/tilelayout/Tile.d.ts +2 -0
- package/dist/npm/tilelayout/Tile.js +25 -3
- package/dist/npm/tilelayout/TileLayout.js +31 -8
- package/dist/npm/tilelayout/interfaces/main.d.ts +8 -0
- package/package.json +17 -15
|
@@ -13,15 +13,15 @@ var misc_1 = require("../utils/misc");
|
|
|
13
13
|
/**
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
|
-
exports.downArrowClass = '
|
|
16
|
+
exports.downArrowClass = 'caret-alt-down';
|
|
17
17
|
/**
|
|
18
18
|
* @hidden
|
|
19
19
|
*/
|
|
20
|
-
exports.rightArrowClass = '
|
|
20
|
+
exports.rightArrowClass = 'caret-alt-right';
|
|
21
21
|
/**
|
|
22
22
|
* @hidden
|
|
23
23
|
*/
|
|
24
|
-
exports.leftArrowClass = '
|
|
24
|
+
exports.leftArrowClass = 'caret-alt-left';
|
|
25
25
|
/**
|
|
26
26
|
* @hidden
|
|
27
27
|
*/
|
|
@@ -42,9 +42,13 @@ var MenuItemArrowVue2 = {
|
|
|
42
42
|
render: function render(createElement) {
|
|
43
43
|
var h = gh || createElement;
|
|
44
44
|
return h("span", {
|
|
45
|
-
"class": "k-menu-expand-arrow"
|
|
45
|
+
"class": "k-menu-expand-arrow",
|
|
46
|
+
"aria-hidden": "true",
|
|
47
|
+
attrs: this.v3 ? undefined : {
|
|
48
|
+
"aria-hidden": "true"
|
|
49
|
+
}
|
|
46
50
|
}, [h("span", {
|
|
47
|
-
"class": this.
|
|
51
|
+
"class": this.getArrowName(),
|
|
48
52
|
role: "presentation",
|
|
49
53
|
attrs: this.v3 ? undefined : {
|
|
50
54
|
role: "presentation"
|
|
@@ -52,12 +56,9 @@ var MenuItemArrowVue2 = {
|
|
|
52
56
|
})]);
|
|
53
57
|
},
|
|
54
58
|
methods: {
|
|
55
|
-
|
|
56
|
-
var _a;
|
|
59
|
+
getArrowName: function getArrowName() {
|
|
57
60
|
var childrenPosition = (0, misc_1.getChildrenPosition)(this.$props.itemId, this.$props.verticalMenu === true, this.$props.dir === 'rtl');
|
|
58
|
-
return
|
|
59
|
-
'k-icon': true
|
|
60
|
-
}, _a[exports.downArrowClass] = childrenPosition === 'downward', _a[exports.rightArrowClass] = childrenPosition === 'rightward', _a[exports.leftArrowClass] = childrenPosition === 'leftward', _a;
|
|
61
|
+
return childrenPosition === 'downward' ? exports.downArrowClass : childrenPosition === 'rightward' ? exports.rightArrowClass : childrenPosition === 'leftward' ? exports.leftArrowClass : '';
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
};
|
|
@@ -163,11 +163,10 @@ var MenuItemInternalVue2 = {
|
|
|
163
163
|
})]);
|
|
164
164
|
};
|
|
165
165
|
var renderMenuIconIfApplicable = function renderMenuIconIfApplicable() {
|
|
166
|
-
return this.$props.item.icon ? h(
|
|
167
|
-
|
|
168
|
-
role: "presentation",
|
|
166
|
+
return this.$props.item.icon ? h(kendo_vue_common_1.Icon, {
|
|
167
|
+
name: this.$props.item.icon,
|
|
169
168
|
attrs: this.v3 ? undefined : {
|
|
170
|
-
|
|
169
|
+
name: this.$props.item.icon
|
|
171
170
|
},
|
|
172
171
|
key: "0"
|
|
173
172
|
}) : null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export declare const separatorAriaMessage = "drawer.separatorAriaMessage";
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export declare const splitterPaneLabel = "splitter.splitterPaneLabel";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const messages: {
|
|
13
|
+
"drawer.separatorAriaMessage": string;
|
|
14
|
+
"splitter.splitterPaneLabel": string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.messages = exports.splitterPaneLabel = exports.separatorAriaMessage = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
exports.separatorAriaMessage = 'drawer.separatorAriaMessage';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
exports.splitterPaneLabel = 'splitter.splitterPaneLabel';
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
exports.messages = (_a = {},
|
|
17
|
+
_a[exports.separatorAriaMessage] = 'Separator',
|
|
18
|
+
_a[exports.splitterPaneLabel] = 'Splitter pane',
|
|
19
|
+
_a);
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-layout',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1673273592,
|
|
12
12
|
version: '',
|
|
13
13
|
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'
|
|
14
14
|
};
|
|
@@ -22,6 +22,7 @@ var allVue = Vue;
|
|
|
22
22
|
var gh = allVue.h;
|
|
23
23
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
24
24
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
25
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
25
26
|
var PanelBarGroup_1 = require("./PanelBarGroup");
|
|
26
27
|
/**
|
|
27
28
|
* @hidden
|
|
@@ -99,7 +100,9 @@ var PanelBarItemVue2 = {
|
|
|
99
100
|
'k-selected': !disabled && selected,
|
|
100
101
|
'k-focus': focused
|
|
101
102
|
}, headerClassName);
|
|
102
|
-
var panelBarItemArrowClassName = (0, kendo_vue_common_1.classNames)('k-panelbar-toggle',
|
|
103
|
+
var panelBarItemArrowClassName = (0, kendo_vue_common_1.classNames)('k-panelbar-toggle', (_a = {}, _a['k-panelbar-collapse'] = expanded && hasContent, _a['k-panelbar-expand'] = !expanded && hasContent, _a));
|
|
104
|
+
var itemIconName = expanded ? 'chevron-up' : 'chevron-down';
|
|
105
|
+
var itemIconSVG = expanded ? kendo_svg_icons_1.chevronUpIcon : kendo_svg_icons_1.chevronDownIcon;
|
|
103
106
|
var iconElement = function iconElement() {
|
|
104
107
|
if (this.imageUrl) {
|
|
105
108
|
return h("img", {
|
|
@@ -112,27 +115,28 @@ var PanelBarItemVue2 = {
|
|
|
112
115
|
src: this.imageUrl
|
|
113
116
|
});
|
|
114
117
|
} else if (icon) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
role: "presentation",
|
|
118
|
+
return h(kendo_vue_common_1.Icon, {
|
|
119
|
+
name: icon,
|
|
118
120
|
attrs: this.v3 ? undefined : {
|
|
119
|
-
|
|
121
|
+
name: icon
|
|
120
122
|
},
|
|
121
|
-
"class":
|
|
123
|
+
"class": 'k-panelbar-item-icon'
|
|
122
124
|
});
|
|
123
125
|
} else if (this.iconClass) {
|
|
124
|
-
return h(
|
|
125
|
-
role: "presentation",
|
|
126
|
-
attrs: this.v3 ? undefined : {
|
|
127
|
-
role: "presentation"
|
|
128
|
-
},
|
|
126
|
+
return h(kendo_vue_common_1.Icon, {
|
|
129
127
|
"class": 'k-panelbar-item-icon ' + this.iconClass
|
|
130
128
|
});
|
|
131
129
|
}
|
|
132
130
|
return null;
|
|
133
131
|
};
|
|
134
132
|
var iconRender = iconElement.call(this);
|
|
135
|
-
var arrow = !disabled && (items || content) ? h(
|
|
133
|
+
var arrow = !disabled && (items || content) ? h(kendo_vue_common_1.Icon, {
|
|
134
|
+
name: itemIconName,
|
|
135
|
+
attrs: this.v3 ? undefined : {
|
|
136
|
+
name: itemIconName,
|
|
137
|
+
icon: itemIconSVG
|
|
138
|
+
},
|
|
139
|
+
icon: itemIconSVG,
|
|
136
140
|
"class": panelBarItemArrowClassName
|
|
137
141
|
}) : null;
|
|
138
142
|
var group = items || content ? h(PanelBarGroup_1.PanelBarGroup, {
|
|
@@ -10,6 +10,9 @@ var allVue = Vue;
|
|
|
10
10
|
var gh = allVue.h;
|
|
11
11
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
12
12
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
13
|
+
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
14
|
+
var main_1 = require("../messages/main");
|
|
15
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
13
16
|
/**
|
|
14
17
|
* @hidden
|
|
15
18
|
*/
|
|
@@ -57,6 +60,11 @@ var SplitterBarVue2 = {
|
|
|
57
60
|
return this.$props.orientation === 'horizontal';
|
|
58
61
|
}
|
|
59
62
|
},
|
|
63
|
+
inject: {
|
|
64
|
+
kendoLocalizationService: {
|
|
65
|
+
default: null
|
|
66
|
+
}
|
|
67
|
+
},
|
|
60
68
|
data: function data() {
|
|
61
69
|
return {
|
|
62
70
|
focused: false
|
|
@@ -84,8 +92,11 @@ var SplitterBarVue2 = {
|
|
|
84
92
|
var isStatic = this.isStatic;
|
|
85
93
|
var isHorizontal = this.isHorizontal;
|
|
86
94
|
var barClasses = (0, kendo_vue_common_1.classNames)('k-splitbar', (_a = {}, _a['k-focus'] = this.focused, _a['k-splitbar-horizontal'] = isHorizontal, _a['k-splitbar-vertical'] = !isHorizontal, _a['k-splitbar-draggable-horizontal'] = isHorizontal && isDraggable, _a['k-splitbar-draggable-vertical'] = !isHorizontal && isDraggable, _a['k-splitbar-static-horizontal'] = isHorizontal && isStatic, _a['k-splitbar-static-vertical'] = !isHorizontal && isStatic, _a));
|
|
87
|
-
var
|
|
88
|
-
var
|
|
95
|
+
var previousArrowName = this.previousArrowName(isHorizontal);
|
|
96
|
+
var previousArrowSVG = this.previousArrowSVG(isHorizontal);
|
|
97
|
+
var nextArrowName = this.nextArrowName(isHorizontal);
|
|
98
|
+
var nextArrowSVG = this.nextArrowSVG(isHorizontal);
|
|
99
|
+
var paneLabel = (0, kendo_vue_intl_1.provideLocalizationService)(this).toLanguageString(main_1.splitterPaneLabel, main_1.messages[main_1.splitterPaneLabel]);
|
|
89
100
|
return (
|
|
90
101
|
// @ts-ignore function children
|
|
91
102
|
h(kendo_vue_common_1.Draggable, {
|
|
@@ -115,7 +126,9 @@ var SplitterBarVue2 = {
|
|
|
115
126
|
tabindex: isStatic ? -1 : 0,
|
|
116
127
|
attrs: _this2.v3 ? undefined : {
|
|
117
128
|
tabindex: isStatic ? -1 : 0,
|
|
118
|
-
role: 'separator'
|
|
129
|
+
role: 'separator',
|
|
130
|
+
ariaLabel: paneLabel,
|
|
131
|
+
ariaOrientation: _this2.isHorizontal ? 'vertical' : 'horizontal'
|
|
119
132
|
},
|
|
120
133
|
role: 'separator',
|
|
121
134
|
"class": barClasses,
|
|
@@ -131,15 +144,22 @@ var SplitterBarVue2 = {
|
|
|
131
144
|
},
|
|
132
145
|
onFocusout: _this2.onBlur,
|
|
133
146
|
onDblclick: _this2.onToggle,
|
|
134
|
-
onKeydown: _this2.onKeyDown
|
|
147
|
+
onKeydown: _this2.onKeyDown,
|
|
148
|
+
ariaLabel: paneLabel,
|
|
149
|
+
ariaOrientation: _this2.isHorizontal ? 'vertical' : 'horizontal'
|
|
135
150
|
}, [_this2.prev.collapsible && h("span", {
|
|
136
151
|
"class": 'k-collapse-prev',
|
|
137
152
|
onClick: _this2.onPrevToggle,
|
|
138
153
|
on: _this2.v3 ? undefined : {
|
|
139
154
|
"click": _this2.onPrevToggle
|
|
140
155
|
}
|
|
141
|
-
}, [h(
|
|
142
|
-
|
|
156
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
157
|
+
name: previousArrowName,
|
|
158
|
+
attrs: _this2.v3 ? undefined : {
|
|
159
|
+
name: previousArrowName,
|
|
160
|
+
icon: previousArrowSVG
|
|
161
|
+
},
|
|
162
|
+
icon: previousArrowSVG
|
|
143
163
|
})]), h("div", {
|
|
144
164
|
"class": 'k-resize-handle'
|
|
145
165
|
}), _this2.next.collapsible && h("span", {
|
|
@@ -148,14 +168,21 @@ var SplitterBarVue2 = {
|
|
|
148
168
|
on: _this2.v3 ? undefined : {
|
|
149
169
|
"click": _this2.onNextToggle
|
|
150
170
|
}
|
|
151
|
-
}, [h(
|
|
152
|
-
|
|
171
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
172
|
+
name: nextArrowName,
|
|
173
|
+
attrs: _this2.v3 ? undefined : {
|
|
174
|
+
name: nextArrowName,
|
|
175
|
+
icon: nextArrowSVG
|
|
176
|
+
},
|
|
177
|
+
icon: nextArrowSVG
|
|
153
178
|
})])])];
|
|
154
179
|
} : [h("div", {
|
|
155
180
|
tabindex: isStatic ? -1 : 0,
|
|
156
181
|
attrs: _this2.v3 ? undefined : {
|
|
157
182
|
tabindex: isStatic ? -1 : 0,
|
|
158
|
-
role: 'separator'
|
|
183
|
+
role: 'separator',
|
|
184
|
+
ariaLabel: paneLabel,
|
|
185
|
+
ariaOrientation: _this2.isHorizontal ? 'vertical' : 'horizontal'
|
|
159
186
|
},
|
|
160
187
|
role: 'separator',
|
|
161
188
|
"class": barClasses,
|
|
@@ -171,15 +198,22 @@ var SplitterBarVue2 = {
|
|
|
171
198
|
},
|
|
172
199
|
onFocusout: _this2.onBlur,
|
|
173
200
|
onDblclick: _this2.onToggle,
|
|
174
|
-
onKeydown: _this2.onKeyDown
|
|
201
|
+
onKeydown: _this2.onKeyDown,
|
|
202
|
+
ariaLabel: paneLabel,
|
|
203
|
+
ariaOrientation: _this2.isHorizontal ? 'vertical' : 'horizontal'
|
|
175
204
|
}, [_this2.prev.collapsible && h("span", {
|
|
176
205
|
"class": 'k-collapse-prev',
|
|
177
206
|
onClick: _this2.onPrevToggle,
|
|
178
207
|
on: _this2.v3 ? undefined : {
|
|
179
208
|
"click": _this2.onPrevToggle
|
|
180
209
|
}
|
|
181
|
-
}, [h(
|
|
182
|
-
|
|
210
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
211
|
+
name: previousArrowName,
|
|
212
|
+
attrs: _this2.v3 ? undefined : {
|
|
213
|
+
name: previousArrowName,
|
|
214
|
+
icon: previousArrowSVG
|
|
215
|
+
},
|
|
216
|
+
icon: previousArrowSVG
|
|
183
217
|
})]), h("div", {
|
|
184
218
|
"class": 'k-resize-handle'
|
|
185
219
|
}), _this2.next.collapsible && h("span", {
|
|
@@ -188,8 +222,13 @@ var SplitterBarVue2 = {
|
|
|
188
222
|
on: _this2.v3 ? undefined : {
|
|
189
223
|
"click": _this2.onNextToggle
|
|
190
224
|
}
|
|
191
|
-
}, [h(
|
|
192
|
-
|
|
225
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
226
|
+
name: nextArrowName,
|
|
227
|
+
attrs: _this2.v3 ? undefined : {
|
|
228
|
+
name: nextArrowName,
|
|
229
|
+
icon: nextArrowSVG
|
|
230
|
+
},
|
|
231
|
+
icon: nextArrowSVG
|
|
193
232
|
})])])])
|
|
194
233
|
);
|
|
195
234
|
},
|
|
@@ -264,19 +303,25 @@ var SplitterBarVue2 = {
|
|
|
264
303
|
}
|
|
265
304
|
}
|
|
266
305
|
},
|
|
267
|
-
|
|
268
|
-
var
|
|
306
|
+
previousArrowName: function previousArrowName(isHorizontal) {
|
|
307
|
+
var prev = this.$props.prev;
|
|
308
|
+
var isCollapsed = prev.collapsed;
|
|
309
|
+
return isHorizontal && !isCollapsed ? 'caret-alt-left' : isHorizontal && isCollapsed ? 'caret-alt-right' : !isHorizontal && !isCollapsed ? 'caret-alt-up' : !isHorizontal && isCollapsed ? 'caret-alt-down' : '';
|
|
310
|
+
},
|
|
311
|
+
previousArrowSVG: function previousArrowSVG(isHorizontal) {
|
|
269
312
|
var prev = this.$props.prev;
|
|
270
|
-
var isCollapsible = prev.collapsible;
|
|
271
313
|
var isCollapsed = prev.collapsed;
|
|
272
|
-
return
|
|
314
|
+
return isHorizontal && !isCollapsed ? kendo_svg_icons_1.caretAltLeftIcon : isHorizontal && isCollapsed ? kendo_svg_icons_1.caretAltRightIcon : !isHorizontal && !isCollapsed ? kendo_svg_icons_1.caretAltUpIcon : !isHorizontal && isCollapsed ? kendo_svg_icons_1.caretAltDownIcon : undefined;
|
|
315
|
+
},
|
|
316
|
+
nextArrowName: function nextArrowName(isHorizontal) {
|
|
317
|
+
var next = this.$props.next;
|
|
318
|
+
var isCollapsed = next.collapsed;
|
|
319
|
+
return isHorizontal && !isCollapsed ? 'caret-alt-right' : isHorizontal && isCollapsed ? 'caret-alt-left' : !isHorizontal && !isCollapsed ? 'caret-alt-down' : !isHorizontal && isCollapsed ? 'caret-alt-up' : '';
|
|
273
320
|
},
|
|
274
|
-
|
|
275
|
-
var _a;
|
|
321
|
+
nextArrowSVG: function nextArrowSVG(isHorizontal) {
|
|
276
322
|
var next = this.$props.next;
|
|
277
|
-
var isCollapsible = next.collapsible;
|
|
278
323
|
var isCollapsed = next.collapsed;
|
|
279
|
-
return
|
|
324
|
+
return isHorizontal && !isCollapsed ? kendo_svg_icons_1.caretAltRightIcon : isHorizontal && isCollapsed ? kendo_svg_icons_1.caretAltLeftIcon : !isHorizontal && !isCollapsed ? kendo_svg_icons_1.caretAltDownIcon : !isHorizontal && isCollapsed ? kendo_svg_icons_1.caretAltUpIcon : undefined;
|
|
280
325
|
}
|
|
281
326
|
}
|
|
282
327
|
};
|
|
@@ -69,7 +69,11 @@ var SplitterPaneVue2 = {
|
|
|
69
69
|
});
|
|
70
70
|
return h("div", {
|
|
71
71
|
style: style,
|
|
72
|
-
"class": paneClasses
|
|
72
|
+
"class": paneClasses,
|
|
73
|
+
role: 'group',
|
|
74
|
+
attrs: this.v3 ? undefined : {
|
|
75
|
+
role: 'group'
|
|
76
|
+
}
|
|
73
77
|
}, [!collapsed || keepMounted ? content : undefined, overlay ? h("div", {
|
|
74
78
|
"class": 'k-splitter-overlay k-overlay'
|
|
75
79
|
}) : undefined]);
|
package/dist/npm/stepper/Step.js
CHANGED
|
@@ -127,7 +127,7 @@ var StepVue2 = {
|
|
|
127
127
|
var optionalMessage = localizeMessage(main_1.optionalText);
|
|
128
128
|
var progressAnimation = typeof animationDuration === 'number' ? animationDuration : animationDuration !== false ? contants_1.DEFAULT_ANIMATION_DURATION : contants_1.NO_ANIMATION;
|
|
129
129
|
var validationIconClasses = isValid ? successIcon ? "".concat(successIcon) : 'k-icon k-i-check-circle' : errorIcon ? "".concat(errorIcon) : 'k-icon k-i-exclamation-circle';
|
|
130
|
-
var validationIcons = h(
|
|
130
|
+
var validationIcons = h(kendo_vue_common_1.Icon, {
|
|
131
131
|
"class": 'k-step-indicator-icon ' + validationIconClasses,
|
|
132
132
|
"aria-hidden": "true",
|
|
133
133
|
attrs: this.v3 ? undefined : {
|
|
@@ -168,8 +168,8 @@ var StepVue2 = {
|
|
|
168
168
|
title: label ? label : undefined,
|
|
169
169
|
attrs: this.v3 ? undefined : {
|
|
170
170
|
title: label ? label : undefined,
|
|
171
|
-
|
|
172
|
-
"aria-current": current ?
|
|
171
|
+
tabIndex: tabIndex ? tabIndex : current ? 0 : -1,
|
|
172
|
+
"aria-current": current ? true : undefined,
|
|
173
173
|
"aria-disabled": disabled || !allowClick || undefined,
|
|
174
174
|
"aria-invalid": isValid !== undefined && !isValid || undefined
|
|
175
175
|
},
|
|
@@ -179,8 +179,8 @@ var StepVue2 = {
|
|
|
179
179
|
"focusin": this.handleFocus
|
|
180
180
|
},
|
|
181
181
|
onFocusin: this.handleFocus,
|
|
182
|
-
|
|
183
|
-
"aria-current": current ?
|
|
182
|
+
tabIndex: tabIndex ? tabIndex : current ? 0 : -1,
|
|
183
|
+
"aria-current": current ? true : undefined,
|
|
184
184
|
"aria-disabled": disabled || !allowClick || undefined,
|
|
185
185
|
"aria-invalid": isValid !== undefined && !isValid || undefined
|
|
186
186
|
}, [!item ? [stepIndicator.call(this), stepLabel.call(this)] : defaultSlots])]);
|
|
@@ -27,6 +27,8 @@ var kendo_vue_progressbars_1 = require("@progress/kendo-vue-progressbars");
|
|
|
27
27
|
var contants_1 = require("./contants");
|
|
28
28
|
var kendo_vue_common_2 = require("@progress/kendo-vue-common");
|
|
29
29
|
var package_metadata_1 = require("../package-metadata");
|
|
30
|
+
var main_1 = require("./messages/main");
|
|
31
|
+
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
30
32
|
/**
|
|
31
33
|
* @hidden
|
|
32
34
|
*/
|
|
@@ -35,6 +37,11 @@ var StepperVue2 = {
|
|
|
35
37
|
model: {
|
|
36
38
|
event: 'changemodel'
|
|
37
39
|
},
|
|
40
|
+
inject: {
|
|
41
|
+
kendoLocalizationService: {
|
|
42
|
+
default: null
|
|
43
|
+
}
|
|
44
|
+
},
|
|
38
45
|
props: {
|
|
39
46
|
animationDuration: {
|
|
40
47
|
type: [Boolean, Number],
|
|
@@ -156,6 +163,8 @@ var StepperVue2 = {
|
|
|
156
163
|
orientation = _a.orientation;
|
|
157
164
|
var value = this.computedValue;
|
|
158
165
|
var animation = typeof animationDuration === 'number' ? animationDuration : animationDuration !== false ? contants_1.DEFAULT_ANIMATION_DURATION : contants_1.NO_ANIMATION;
|
|
166
|
+
var localizationService = (0, kendo_vue_intl_1.provideLocalizationService)(this);
|
|
167
|
+
var progressbarAriaLabelMessage = localizationService.toLanguageString(main_1.ariaLabel, main_1.messages[main_1.ariaLabel]);
|
|
159
168
|
var steps = items && items.map(function (element, index) {
|
|
160
169
|
var step = this.$props.item ? kendo_vue_common_2.templateRendering.call(this, this.$props.item, kendo_vue_common_2.getListeners.call(this)) : undefined;
|
|
161
170
|
var stepDefaultRendering =
|
|
@@ -260,6 +269,7 @@ var StepperVue2 = {
|
|
|
260
269
|
duration: animation
|
|
261
270
|
},
|
|
262
271
|
"aria-hidden": true,
|
|
272
|
+
"aria-label": progressbarAriaLabelMessage,
|
|
263
273
|
max: this.numOfSteps - 1,
|
|
264
274
|
labelVisible: false,
|
|
265
275
|
orientation: orientation,
|
|
@@ -269,6 +279,7 @@ var StepperVue2 = {
|
|
|
269
279
|
tabIndex: -1
|
|
270
280
|
},
|
|
271
281
|
"aria-hidden": true,
|
|
282
|
+
"aria-label": progressbarAriaLabelMessage,
|
|
272
283
|
max: this.numOfSteps - 1,
|
|
273
284
|
labelVisible: false,
|
|
274
285
|
orientation: orientation,
|
|
@@ -2,9 +2,14 @@
|
|
|
2
2
|
* @hidden
|
|
3
3
|
*/
|
|
4
4
|
export declare const optionalText = "stepper.optionalText";
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export declare const ariaLabel = "stepper.ariaLabel";
|
|
5
9
|
/**
|
|
6
10
|
* @hidden
|
|
7
11
|
*/
|
|
8
12
|
export declare const messages: {
|
|
9
13
|
"stepper.optionalText": string;
|
|
14
|
+
"stepper.ariaLabel": string;
|
|
10
15
|
};
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.messages = exports.optionalText = void 0;
|
|
4
|
+
exports.messages = exports.ariaLabel = exports.optionalText = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* @hidden
|
|
7
7
|
*/
|
|
8
8
|
exports.optionalText = 'stepper.optionalText';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
exports.ariaLabel = 'stepper.ariaLabel';
|
|
9
13
|
/**
|
|
10
14
|
* @hidden
|
|
11
15
|
*/
|
|
12
16
|
exports.messages = (_a = {},
|
|
13
17
|
_a[exports.optionalText] = '(Optional)',
|
|
18
|
+
_a[exports.ariaLabel] = 'Progressbar',
|
|
14
19
|
_a);
|
|
@@ -52,7 +52,12 @@ var TileVue2 = {
|
|
|
52
52
|
reorderable: {
|
|
53
53
|
type: Boolean,
|
|
54
54
|
default: true
|
|
55
|
-
}
|
|
55
|
+
},
|
|
56
|
+
tabIndex: {
|
|
57
|
+
type: Number,
|
|
58
|
+
default: 0
|
|
59
|
+
},
|
|
60
|
+
ariaDescribedBy: String
|
|
56
61
|
},
|
|
57
62
|
created: function created() {
|
|
58
63
|
this.oldSize = {};
|
|
@@ -85,7 +90,8 @@ var TileVue2 = {
|
|
|
85
90
|
},
|
|
86
91
|
data: function data() {
|
|
87
92
|
return {
|
|
88
|
-
rtl: false
|
|
93
|
+
rtl: false,
|
|
94
|
+
grabbed: false
|
|
89
95
|
};
|
|
90
96
|
},
|
|
91
97
|
mounted: function mounted() {
|
|
@@ -198,7 +204,21 @@ var TileVue2 = {
|
|
|
198
204
|
"class": this.wrapperClass,
|
|
199
205
|
style: {
|
|
200
206
|
height: '100%'
|
|
201
|
-
}
|
|
207
|
+
},
|
|
208
|
+
role: 'listitem',
|
|
209
|
+
attrs: this.v3 ? undefined : {
|
|
210
|
+
role: 'listitem',
|
|
211
|
+
tabIndex: this.$props.tabIndex,
|
|
212
|
+
"aria-keyshortcuts": 'Enter',
|
|
213
|
+
"aria-dropeffect": 'execute',
|
|
214
|
+
"aria-grabbed": this.grabbed ? true : false,
|
|
215
|
+
"aria-ariaDescribedBy": this.$props.ariaDescribedBy
|
|
216
|
+
},
|
|
217
|
+
tabIndex: this.$props.tabIndex,
|
|
218
|
+
"aria-keyshortcuts": 'Enter',
|
|
219
|
+
"aria-dropeffect": 'execute',
|
|
220
|
+
"aria-grabbed": this.grabbed ? true : false,
|
|
221
|
+
"aria-ariaDescribedBy": this.$props.ariaDescribedBy
|
|
202
222
|
}, [defaultSlots, resizable && resizable !== 'vertical' && h(ResizeHandlers_1.ResizeHandlers, {
|
|
203
223
|
onPress: this.handlePress,
|
|
204
224
|
on: this.v3 ? undefined : {
|
|
@@ -324,6 +344,7 @@ var TileVue2 = {
|
|
|
324
344
|
}
|
|
325
345
|
dragElement.classList.remove('k-cursor-grab');
|
|
326
346
|
dragElement.classList.add('k-cursor-grabbing');
|
|
347
|
+
this.grabbed = true;
|
|
327
348
|
var rec = dragElement.getBoundingClientRect();
|
|
328
349
|
this.pressXY = {
|
|
329
350
|
x: e.clientX,
|
|
@@ -392,6 +413,7 @@ var TileVue2 = {
|
|
|
392
413
|
dragElement.style.height = '100%';
|
|
393
414
|
dragElement.classList.remove('k-cursor-grabbing');
|
|
394
415
|
dragElement.classList.add('k-cursor-grab');
|
|
416
|
+
this.grabbed = false;
|
|
395
417
|
}
|
|
396
418
|
}
|
|
397
419
|
}
|
|
@@ -120,12 +120,16 @@ var TileLayoutVue2 = {
|
|
|
120
120
|
dir: this.$props.dir,
|
|
121
121
|
attrs: this.v3 ? undefined : {
|
|
122
122
|
dir: this.$props.dir,
|
|
123
|
-
id: this.$props.id
|
|
123
|
+
id: this.$props.id,
|
|
124
|
+
role: 'list'
|
|
124
125
|
},
|
|
125
126
|
"class": this.wrapperClass,
|
|
126
127
|
style: tileLayoutStyles,
|
|
127
|
-
id: this.$props.id
|
|
128
|
+
id: this.$props.id,
|
|
129
|
+
role: 'list'
|
|
128
130
|
}, [items.map(function (tile, index) {
|
|
131
|
+
var _this = this;
|
|
132
|
+
var tileTitleId = tile && tile.id || (0, kendo_vue_common_1.guid)();
|
|
129
133
|
var item = kendo_vue_common_1.templateRendering.call(this, tile.item, kendo_vue_common_1.getListeners.call(this));
|
|
130
134
|
var itemContent = kendo_vue_common_1.getTemplate.call(this, {
|
|
131
135
|
h: h,
|
|
@@ -136,13 +140,20 @@ var TileLayoutVue2 = {
|
|
|
136
140
|
var headerContent = kendo_vue_common_1.getTemplate.call(this, {
|
|
137
141
|
h: h,
|
|
138
142
|
template: header,
|
|
139
|
-
defaultRendering: null
|
|
143
|
+
defaultRendering: null,
|
|
144
|
+
additionalProps: {
|
|
145
|
+
id: tileTitleId,
|
|
146
|
+
headerText: tile.headerText
|
|
147
|
+
}
|
|
140
148
|
});
|
|
141
149
|
var body = kendo_vue_common_1.templateRendering.call(this, tile.body, kendo_vue_common_1.getListeners.call(this));
|
|
142
150
|
var bodyContent = kendo_vue_common_1.getTemplate.call(this, {
|
|
143
151
|
h: h,
|
|
144
152
|
template: body,
|
|
145
|
-
defaultRendering: null
|
|
153
|
+
defaultRendering: null,
|
|
154
|
+
additionalProps: {
|
|
155
|
+
bodyText: tile.bodyText
|
|
156
|
+
}
|
|
146
157
|
});
|
|
147
158
|
return (
|
|
148
159
|
// @ts-ignore function children
|
|
@@ -160,7 +171,9 @@ var TileLayoutVue2 = {
|
|
|
160
171
|
reorderable: tile.reorderable,
|
|
161
172
|
hintClass: tile.hintClass,
|
|
162
173
|
hintStyle: tile.hintStyle,
|
|
163
|
-
ignoreDrag: this.$props.ignoreDrag
|
|
174
|
+
ignoreDrag: this.$props.ignoreDrag,
|
|
175
|
+
"aria-describedby": tileTitleId,
|
|
176
|
+
"tab-index": tile.tabIndex
|
|
164
177
|
},
|
|
165
178
|
index: index,
|
|
166
179
|
resizable: tile.resizable,
|
|
@@ -169,19 +182,29 @@ var TileLayoutVue2 = {
|
|
|
169
182
|
"class": tile.class,
|
|
170
183
|
hintClass: tile.hintClass,
|
|
171
184
|
hintStyle: tile.hintStyle,
|
|
172
|
-
ignoreDrag: this.$props.ignoreDrag
|
|
185
|
+
ignoreDrag: this.$props.ignoreDrag,
|
|
186
|
+
"aria-describedby": tileTitleId,
|
|
187
|
+
"tab-index": tile.tabIndex
|
|
173
188
|
}, this.v3 ? function () {
|
|
174
189
|
return [tile.item ? itemContent : [h("div", {
|
|
175
190
|
"class": "k-tilelayout-item-header k-card-header"
|
|
176
191
|
}, [tile.header ? headerContent : h("h5", {
|
|
177
|
-
"class": 'k-card-title'
|
|
192
|
+
"class": 'k-card-title',
|
|
193
|
+
id: tileTitleId,
|
|
194
|
+
attrs: _this.v3 ? undefined : {
|
|
195
|
+
id: tileTitleId
|
|
196
|
+
}
|
|
178
197
|
}, [tile.headerText])]), h("div", {
|
|
179
198
|
"class": 'k-tilelayout-item-body k-card-body'
|
|
180
199
|
}, [tile.body ? bodyContent : tile.bodyText])]];
|
|
181
200
|
} : [tile.item ? itemContent : [h("div", {
|
|
182
201
|
"class": "k-tilelayout-item-header k-card-header"
|
|
183
202
|
}, [tile.header ? headerContent : h("h5", {
|
|
184
|
-
"class": 'k-card-title'
|
|
203
|
+
"class": 'k-card-title',
|
|
204
|
+
id: tileTitleId,
|
|
205
|
+
attrs: _this.v3 ? undefined : {
|
|
206
|
+
id: tileTitleId
|
|
207
|
+
}
|
|
185
208
|
}, [tile.headerText])]), h("div", {
|
|
186
209
|
"class": 'k-tilelayout-item-body k-card-body'
|
|
187
210
|
}, [tile.body ? bodyContent : tile.bodyText])]])
|
|
@@ -48,6 +48,10 @@ export interface TileLayoutItem {
|
|
|
48
48
|
* ([see example]({% slug tiles_tilelayout %}#toc-custom-rendering)).
|
|
49
49
|
*/
|
|
50
50
|
item?: any;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies the id of each Tile if needed to be user-defined. By default the id is automatically generated.
|
|
53
|
+
*/
|
|
54
|
+
id?: any;
|
|
51
55
|
/**
|
|
52
56
|
* Specifies if the user is allowed to resize the TileLayoutItem and in which direction
|
|
53
57
|
* ([see example]({% slug tiles_tilelayout %}#toc-resizing)).
|
|
@@ -60,6 +64,10 @@ export interface TileLayoutItem {
|
|
|
60
64
|
* If `reorderable` is not specified, the dragging functionality of the TileLayoutItem will be enabled.
|
|
61
65
|
*/
|
|
62
66
|
reorderable?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Specifies if the tabIndex of each TileLayout tile if the scenario requires it. Defaults to `0`.
|
|
69
|
+
*/
|
|
70
|
+
tabIndex?: number;
|
|
63
71
|
}
|
|
64
72
|
/**
|
|
65
73
|
* Specifies the position of each tile.
|