@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
|
@@ -3,7 +3,10 @@ import * as Vue from 'vue';
|
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
-
import { classNames, Draggable, Keys } from '@progress/kendo-vue-common';
|
|
6
|
+
import { classNames, Draggable, Icon, Keys } from '@progress/kendo-vue-common';
|
|
7
|
+
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
8
|
+
import { splitterPaneLabel, messages } from '../messages/main.js';
|
|
9
|
+
import { caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon, caretAltUpIcon } from '@progress/kendo-svg-icons';
|
|
7
10
|
/**
|
|
8
11
|
* @hidden
|
|
9
12
|
*/
|
|
@@ -51,6 +54,11 @@ var SplitterBarVue2 = {
|
|
|
51
54
|
return this.$props.orientation === 'horizontal';
|
|
52
55
|
}
|
|
53
56
|
},
|
|
57
|
+
inject: {
|
|
58
|
+
kendoLocalizationService: {
|
|
59
|
+
default: null
|
|
60
|
+
}
|
|
61
|
+
},
|
|
54
62
|
data: function data() {
|
|
55
63
|
return {
|
|
56
64
|
focused: false
|
|
@@ -78,8 +86,11 @@ var SplitterBarVue2 = {
|
|
|
78
86
|
var isStatic = this.isStatic;
|
|
79
87
|
var isHorizontal = this.isHorizontal;
|
|
80
88
|
var barClasses = 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));
|
|
81
|
-
var
|
|
82
|
-
var
|
|
89
|
+
var previousArrowName = this.previousArrowName(isHorizontal);
|
|
90
|
+
var previousArrowSVG = this.previousArrowSVG(isHorizontal);
|
|
91
|
+
var nextArrowName = this.nextArrowName(isHorizontal);
|
|
92
|
+
var nextArrowSVG = this.nextArrowSVG(isHorizontal);
|
|
93
|
+
var paneLabel = provideLocalizationService(this).toLanguageString(splitterPaneLabel, messages[splitterPaneLabel]);
|
|
83
94
|
return (
|
|
84
95
|
// @ts-ignore function children
|
|
85
96
|
h(Draggable, {
|
|
@@ -109,7 +120,9 @@ var SplitterBarVue2 = {
|
|
|
109
120
|
tabindex: isStatic ? -1 : 0,
|
|
110
121
|
attrs: _this2.v3 ? undefined : {
|
|
111
122
|
tabindex: isStatic ? -1 : 0,
|
|
112
|
-
role: 'separator'
|
|
123
|
+
role: 'separator',
|
|
124
|
+
ariaLabel: paneLabel,
|
|
125
|
+
ariaOrientation: _this2.isHorizontal ? 'vertical' : 'horizontal'
|
|
113
126
|
},
|
|
114
127
|
role: 'separator',
|
|
115
128
|
"class": barClasses,
|
|
@@ -125,15 +138,22 @@ var SplitterBarVue2 = {
|
|
|
125
138
|
},
|
|
126
139
|
onFocusout: _this2.onBlur,
|
|
127
140
|
onDblclick: _this2.onToggle,
|
|
128
|
-
onKeydown: _this2.onKeyDown
|
|
141
|
+
onKeydown: _this2.onKeyDown,
|
|
142
|
+
ariaLabel: paneLabel,
|
|
143
|
+
ariaOrientation: _this2.isHorizontal ? 'vertical' : 'horizontal'
|
|
129
144
|
}, [_this2.prev.collapsible && h("span", {
|
|
130
145
|
"class": 'k-collapse-prev',
|
|
131
146
|
onClick: _this2.onPrevToggle,
|
|
132
147
|
on: _this2.v3 ? undefined : {
|
|
133
148
|
"click": _this2.onPrevToggle
|
|
134
149
|
}
|
|
135
|
-
}, [h(
|
|
136
|
-
|
|
150
|
+
}, [h(Icon, {
|
|
151
|
+
name: previousArrowName,
|
|
152
|
+
attrs: _this2.v3 ? undefined : {
|
|
153
|
+
name: previousArrowName,
|
|
154
|
+
icon: previousArrowSVG
|
|
155
|
+
},
|
|
156
|
+
icon: previousArrowSVG
|
|
137
157
|
})]), h("div", {
|
|
138
158
|
"class": 'k-resize-handle'
|
|
139
159
|
}), _this2.next.collapsible && h("span", {
|
|
@@ -142,14 +162,21 @@ var SplitterBarVue2 = {
|
|
|
142
162
|
on: _this2.v3 ? undefined : {
|
|
143
163
|
"click": _this2.onNextToggle
|
|
144
164
|
}
|
|
145
|
-
}, [h(
|
|
146
|
-
|
|
165
|
+
}, [h(Icon, {
|
|
166
|
+
name: nextArrowName,
|
|
167
|
+
attrs: _this2.v3 ? undefined : {
|
|
168
|
+
name: nextArrowName,
|
|
169
|
+
icon: nextArrowSVG
|
|
170
|
+
},
|
|
171
|
+
icon: nextArrowSVG
|
|
147
172
|
})])])];
|
|
148
173
|
} : [h("div", {
|
|
149
174
|
tabindex: isStatic ? -1 : 0,
|
|
150
175
|
attrs: _this2.v3 ? undefined : {
|
|
151
176
|
tabindex: isStatic ? -1 : 0,
|
|
152
|
-
role: 'separator'
|
|
177
|
+
role: 'separator',
|
|
178
|
+
ariaLabel: paneLabel,
|
|
179
|
+
ariaOrientation: _this2.isHorizontal ? 'vertical' : 'horizontal'
|
|
153
180
|
},
|
|
154
181
|
role: 'separator',
|
|
155
182
|
"class": barClasses,
|
|
@@ -165,15 +192,22 @@ var SplitterBarVue2 = {
|
|
|
165
192
|
},
|
|
166
193
|
onFocusout: _this2.onBlur,
|
|
167
194
|
onDblclick: _this2.onToggle,
|
|
168
|
-
onKeydown: _this2.onKeyDown
|
|
195
|
+
onKeydown: _this2.onKeyDown,
|
|
196
|
+
ariaLabel: paneLabel,
|
|
197
|
+
ariaOrientation: _this2.isHorizontal ? 'vertical' : 'horizontal'
|
|
169
198
|
}, [_this2.prev.collapsible && h("span", {
|
|
170
199
|
"class": 'k-collapse-prev',
|
|
171
200
|
onClick: _this2.onPrevToggle,
|
|
172
201
|
on: _this2.v3 ? undefined : {
|
|
173
202
|
"click": _this2.onPrevToggle
|
|
174
203
|
}
|
|
175
|
-
}, [h(
|
|
176
|
-
|
|
204
|
+
}, [h(Icon, {
|
|
205
|
+
name: previousArrowName,
|
|
206
|
+
attrs: _this2.v3 ? undefined : {
|
|
207
|
+
name: previousArrowName,
|
|
208
|
+
icon: previousArrowSVG
|
|
209
|
+
},
|
|
210
|
+
icon: previousArrowSVG
|
|
177
211
|
})]), h("div", {
|
|
178
212
|
"class": 'k-resize-handle'
|
|
179
213
|
}), _this2.next.collapsible && h("span", {
|
|
@@ -182,8 +216,13 @@ var SplitterBarVue2 = {
|
|
|
182
216
|
on: _this2.v3 ? undefined : {
|
|
183
217
|
"click": _this2.onNextToggle
|
|
184
218
|
}
|
|
185
|
-
}, [h(
|
|
186
|
-
|
|
219
|
+
}, [h(Icon, {
|
|
220
|
+
name: nextArrowName,
|
|
221
|
+
attrs: _this2.v3 ? undefined : {
|
|
222
|
+
name: nextArrowName,
|
|
223
|
+
icon: nextArrowSVG
|
|
224
|
+
},
|
|
225
|
+
icon: nextArrowSVG
|
|
187
226
|
})])])])
|
|
188
227
|
);
|
|
189
228
|
},
|
|
@@ -258,19 +297,25 @@ var SplitterBarVue2 = {
|
|
|
258
297
|
}
|
|
259
298
|
}
|
|
260
299
|
},
|
|
261
|
-
|
|
262
|
-
var
|
|
300
|
+
previousArrowName: function previousArrowName(isHorizontal) {
|
|
301
|
+
var prev = this.$props.prev;
|
|
302
|
+
var isCollapsed = prev.collapsed;
|
|
303
|
+
return isHorizontal && !isCollapsed ? 'caret-alt-left' : isHorizontal && isCollapsed ? 'caret-alt-right' : !isHorizontal && !isCollapsed ? 'caret-alt-up' : !isHorizontal && isCollapsed ? 'caret-alt-down' : '';
|
|
304
|
+
},
|
|
305
|
+
previousArrowSVG: function previousArrowSVG(isHorizontal) {
|
|
263
306
|
var prev = this.$props.prev;
|
|
264
|
-
var isCollapsible = prev.collapsible;
|
|
265
307
|
var isCollapsed = prev.collapsed;
|
|
266
|
-
return
|
|
308
|
+
return isHorizontal && !isCollapsed ? caretAltLeftIcon : isHorizontal && isCollapsed ? caretAltRightIcon : !isHorizontal && !isCollapsed ? caretAltUpIcon : !isHorizontal && isCollapsed ? caretAltDownIcon : undefined;
|
|
309
|
+
},
|
|
310
|
+
nextArrowName: function nextArrowName(isHorizontal) {
|
|
311
|
+
var next = this.$props.next;
|
|
312
|
+
var isCollapsed = next.collapsed;
|
|
313
|
+
return isHorizontal && !isCollapsed ? 'caret-alt-right' : isHorizontal && isCollapsed ? 'caret-alt-left' : !isHorizontal && !isCollapsed ? 'caret-alt-down' : !isHorizontal && isCollapsed ? 'caret-alt-up' : '';
|
|
267
314
|
},
|
|
268
|
-
|
|
269
|
-
var _a;
|
|
315
|
+
nextArrowSVG: function nextArrowSVG(isHorizontal) {
|
|
270
316
|
var next = this.$props.next;
|
|
271
|
-
var isCollapsible = next.collapsible;
|
|
272
317
|
var isCollapsed = next.collapsed;
|
|
273
|
-
return
|
|
318
|
+
return isHorizontal && !isCollapsed ? caretAltRightIcon : isHorizontal && isCollapsed ? caretAltLeftIcon : !isHorizontal && !isCollapsed ? caretAltDownIcon : !isHorizontal && isCollapsed ? caretAltUpIcon : undefined;
|
|
274
319
|
}
|
|
275
320
|
}
|
|
276
321
|
};
|
|
@@ -63,7 +63,11 @@ var SplitterPaneVue2 = {
|
|
|
63
63
|
});
|
|
64
64
|
return h("div", {
|
|
65
65
|
style: style,
|
|
66
|
-
"class": paneClasses
|
|
66
|
+
"class": paneClasses,
|
|
67
|
+
role: 'group',
|
|
68
|
+
attrs: this.v3 ? undefined : {
|
|
69
|
+
role: 'group'
|
|
70
|
+
}
|
|
67
71
|
}, [!collapsed || keepMounted ? content : undefined, overlay ? h("div", {
|
|
68
72
|
"class": 'k-splitter-overlay k-overlay'
|
|
69
73
|
}) : undefined]);
|
package/dist/esm/stepper/Step.js
CHANGED
|
@@ -4,7 +4,7 @@ var allVue = Vue;
|
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
6
|
var inject = allVue.inject;
|
|
7
|
-
import { focusFirstFocusableChild, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
7
|
+
import { focusFirstFocusableChild, getDefaultSlots, Icon } from '@progress/kendo-vue-common';
|
|
8
8
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
9
9
|
import { DEFAULT_ANIMATION_DURATION, NO_ANIMATION } from './contants.js';
|
|
10
10
|
import { messages, optionalText } from './messages/main.js';
|
|
@@ -121,7 +121,7 @@ var StepVue2 = {
|
|
|
121
121
|
var optionalMessage = localizeMessage(optionalText);
|
|
122
122
|
var progressAnimation = typeof animationDuration === 'number' ? animationDuration : animationDuration !== false ? DEFAULT_ANIMATION_DURATION : NO_ANIMATION;
|
|
123
123
|
var validationIconClasses = isValid ? successIcon ? "".concat(successIcon) : 'k-icon k-i-check-circle' : errorIcon ? "".concat(errorIcon) : 'k-icon k-i-exclamation-circle';
|
|
124
|
-
var validationIcons = h(
|
|
124
|
+
var validationIcons = h(Icon, {
|
|
125
125
|
"class": 'k-step-indicator-icon ' + validationIconClasses,
|
|
126
126
|
"aria-hidden": "true",
|
|
127
127
|
attrs: this.v3 ? undefined : {
|
|
@@ -162,8 +162,8 @@ var StepVue2 = {
|
|
|
162
162
|
title: label ? label : undefined,
|
|
163
163
|
attrs: this.v3 ? undefined : {
|
|
164
164
|
title: label ? label : undefined,
|
|
165
|
-
|
|
166
|
-
"aria-current": current ?
|
|
165
|
+
tabIndex: tabIndex ? tabIndex : current ? 0 : -1,
|
|
166
|
+
"aria-current": current ? true : undefined,
|
|
167
167
|
"aria-disabled": disabled || !allowClick || undefined,
|
|
168
168
|
"aria-invalid": isValid !== undefined && !isValid || undefined
|
|
169
169
|
},
|
|
@@ -173,8 +173,8 @@ var StepVue2 = {
|
|
|
173
173
|
"focusin": this.handleFocus
|
|
174
174
|
},
|
|
175
175
|
onFocusin: this.handleFocus,
|
|
176
|
-
|
|
177
|
-
"aria-current": current ?
|
|
176
|
+
tabIndex: tabIndex ? tabIndex : current ? 0 : -1,
|
|
177
|
+
"aria-current": current ? true : undefined,
|
|
178
178
|
"aria-disabled": disabled || !allowClick || undefined,
|
|
179
179
|
"aria-invalid": isValid !== undefined && !isValid || undefined
|
|
180
180
|
}, [!item ? [stepIndicator.call(this), stepLabel.call(this)] : defaultSlots])]);
|
|
@@ -21,6 +21,8 @@ import { ProgressBar } from '@progress/kendo-vue-progressbars';
|
|
|
21
21
|
import { DEFAULT_ANIMATION_DURATION, NO_ANIMATION } from './contants.js';
|
|
22
22
|
import { validatePackage, isRtl, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
|
|
23
23
|
import { packageMetadata } from '../package-metadata.js';
|
|
24
|
+
import { messages, ariaLabel } from './messages/main.js';
|
|
25
|
+
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
24
26
|
/**
|
|
25
27
|
* @hidden
|
|
26
28
|
*/
|
|
@@ -29,6 +31,11 @@ var StepperVue2 = {
|
|
|
29
31
|
model: {
|
|
30
32
|
event: 'changemodel'
|
|
31
33
|
},
|
|
34
|
+
inject: {
|
|
35
|
+
kendoLocalizationService: {
|
|
36
|
+
default: null
|
|
37
|
+
}
|
|
38
|
+
},
|
|
32
39
|
props: {
|
|
33
40
|
animationDuration: {
|
|
34
41
|
type: [Boolean, Number],
|
|
@@ -150,6 +157,8 @@ var StepperVue2 = {
|
|
|
150
157
|
orientation = _a.orientation;
|
|
151
158
|
var value = this.computedValue;
|
|
152
159
|
var animation = typeof animationDuration === 'number' ? animationDuration : animationDuration !== false ? DEFAULT_ANIMATION_DURATION : NO_ANIMATION;
|
|
160
|
+
var localizationService = provideLocalizationService(this);
|
|
161
|
+
var progressbarAriaLabelMessage = localizationService.toLanguageString(ariaLabel, messages[ariaLabel]);
|
|
153
162
|
var steps = items && items.map(function (element, index) {
|
|
154
163
|
var step = this.$props.item ? templateRendering.call(this, this.$props.item, getListeners.call(this)) : undefined;
|
|
155
164
|
var stepDefaultRendering =
|
|
@@ -254,6 +263,7 @@ var StepperVue2 = {
|
|
|
254
263
|
duration: animation
|
|
255
264
|
},
|
|
256
265
|
"aria-hidden": true,
|
|
266
|
+
"aria-label": progressbarAriaLabelMessage,
|
|
257
267
|
max: this.numOfSteps - 1,
|
|
258
268
|
labelVisible: false,
|
|
259
269
|
orientation: orientation,
|
|
@@ -263,6 +273,7 @@ var StepperVue2 = {
|
|
|
263
273
|
tabIndex: -1
|
|
264
274
|
},
|
|
265
275
|
"aria-hidden": true,
|
|
276
|
+
"aria-label": progressbarAriaLabelMessage,
|
|
266
277
|
max: this.numOfSteps - 1,
|
|
267
278
|
labelVisible: false,
|
|
268
279
|
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
|
};
|
|
@@ -3,9 +3,14 @@ var _a;
|
|
|
3
3
|
* @hidden
|
|
4
4
|
*/
|
|
5
5
|
export var optionalText = 'stepper.optionalText';
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export var ariaLabel = 'stepper.ariaLabel';
|
|
6
10
|
/**
|
|
7
11
|
* @hidden
|
|
8
12
|
*/
|
|
9
13
|
export var messages = (_a = {},
|
|
10
14
|
_a[optionalText] = '(Optional)',
|
|
15
|
+
_a[ariaLabel] = 'Progressbar',
|
|
11
16
|
_a);
|
|
@@ -46,7 +46,12 @@ var TileVue2 = {
|
|
|
46
46
|
reorderable: {
|
|
47
47
|
type: Boolean,
|
|
48
48
|
default: true
|
|
49
|
-
}
|
|
49
|
+
},
|
|
50
|
+
tabIndex: {
|
|
51
|
+
type: Number,
|
|
52
|
+
default: 0
|
|
53
|
+
},
|
|
54
|
+
ariaDescribedBy: String
|
|
50
55
|
},
|
|
51
56
|
created: function created() {
|
|
52
57
|
this.oldSize = {};
|
|
@@ -79,7 +84,8 @@ var TileVue2 = {
|
|
|
79
84
|
},
|
|
80
85
|
data: function data() {
|
|
81
86
|
return {
|
|
82
|
-
rtl: false
|
|
87
|
+
rtl: false,
|
|
88
|
+
grabbed: false
|
|
83
89
|
};
|
|
84
90
|
},
|
|
85
91
|
mounted: function mounted() {
|
|
@@ -192,7 +198,21 @@ var TileVue2 = {
|
|
|
192
198
|
"class": this.wrapperClass,
|
|
193
199
|
style: {
|
|
194
200
|
height: '100%'
|
|
195
|
-
}
|
|
201
|
+
},
|
|
202
|
+
role: 'listitem',
|
|
203
|
+
attrs: this.v3 ? undefined : {
|
|
204
|
+
role: 'listitem',
|
|
205
|
+
tabIndex: this.$props.tabIndex,
|
|
206
|
+
"aria-keyshortcuts": 'Enter',
|
|
207
|
+
"aria-dropeffect": 'execute',
|
|
208
|
+
"aria-grabbed": this.grabbed ? true : false,
|
|
209
|
+
"aria-ariaDescribedBy": this.$props.ariaDescribedBy
|
|
210
|
+
},
|
|
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
|
|
196
216
|
}, [defaultSlots, resizable && resizable !== 'vertical' && h(ResizeHandlers, {
|
|
197
217
|
onPress: this.handlePress,
|
|
198
218
|
on: this.v3 ? undefined : {
|
|
@@ -318,6 +338,7 @@ var TileVue2 = {
|
|
|
318
338
|
}
|
|
319
339
|
dragElement.classList.remove('k-cursor-grab');
|
|
320
340
|
dragElement.classList.add('k-cursor-grabbing');
|
|
341
|
+
this.grabbed = true;
|
|
321
342
|
var rec = dragElement.getBoundingClientRect();
|
|
322
343
|
this.pressXY = {
|
|
323
344
|
x: e.clientX,
|
|
@@ -386,6 +407,7 @@ var TileVue2 = {
|
|
|
386
407
|
dragElement.style.height = '100%';
|
|
387
408
|
dragElement.classList.remove('k-cursor-grabbing');
|
|
388
409
|
dragElement.classList.add('k-cursor-grab');
|
|
410
|
+
this.grabbed = false;
|
|
389
411
|
}
|
|
390
412
|
}
|
|
391
413
|
}
|
|
@@ -3,7 +3,7 @@ import * as Vue from 'vue';
|
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
5
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
-
import { getListeners, getTemplate, getter, templateRendering, validatePackage } from '@progress/kendo-vue-common';
|
|
6
|
+
import { getListeners, getTemplate, getter, templateRendering, validatePackage, guid } from '@progress/kendo-vue-common';
|
|
7
7
|
import { packageMetadata } from '../package-metadata.js';
|
|
8
8
|
import { Tile } from './Tile.js';
|
|
9
9
|
/**
|
|
@@ -114,12 +114,16 @@ var TileLayoutVue2 = {
|
|
|
114
114
|
dir: this.$props.dir,
|
|
115
115
|
attrs: this.v3 ? undefined : {
|
|
116
116
|
dir: this.$props.dir,
|
|
117
|
-
id: this.$props.id
|
|
117
|
+
id: this.$props.id,
|
|
118
|
+
role: 'list'
|
|
118
119
|
},
|
|
119
120
|
"class": this.wrapperClass,
|
|
120
121
|
style: tileLayoutStyles,
|
|
121
|
-
id: this.$props.id
|
|
122
|
+
id: this.$props.id,
|
|
123
|
+
role: 'list'
|
|
122
124
|
}, [items.map(function (tile, index) {
|
|
125
|
+
var _this = this;
|
|
126
|
+
var tileTitleId = tile && tile.id || guid();
|
|
123
127
|
var item = templateRendering.call(this, tile.item, getListeners.call(this));
|
|
124
128
|
var itemContent = getTemplate.call(this, {
|
|
125
129
|
h: h,
|
|
@@ -130,13 +134,20 @@ var TileLayoutVue2 = {
|
|
|
130
134
|
var headerContent = getTemplate.call(this, {
|
|
131
135
|
h: h,
|
|
132
136
|
template: header,
|
|
133
|
-
defaultRendering: null
|
|
137
|
+
defaultRendering: null,
|
|
138
|
+
additionalProps: {
|
|
139
|
+
id: tileTitleId,
|
|
140
|
+
headerText: tile.headerText
|
|
141
|
+
}
|
|
134
142
|
});
|
|
135
143
|
var body = templateRendering.call(this, tile.body, getListeners.call(this));
|
|
136
144
|
var bodyContent = getTemplate.call(this, {
|
|
137
145
|
h: h,
|
|
138
146
|
template: body,
|
|
139
|
-
defaultRendering: null
|
|
147
|
+
defaultRendering: null,
|
|
148
|
+
additionalProps: {
|
|
149
|
+
bodyText: tile.bodyText
|
|
150
|
+
}
|
|
140
151
|
});
|
|
141
152
|
return (
|
|
142
153
|
// @ts-ignore function children
|
|
@@ -154,7 +165,9 @@ var TileLayoutVue2 = {
|
|
|
154
165
|
reorderable: tile.reorderable,
|
|
155
166
|
hintClass: tile.hintClass,
|
|
156
167
|
hintStyle: tile.hintStyle,
|
|
157
|
-
ignoreDrag: this.$props.ignoreDrag
|
|
168
|
+
ignoreDrag: this.$props.ignoreDrag,
|
|
169
|
+
"aria-describedby": tileTitleId,
|
|
170
|
+
"tab-index": tile.tabIndex
|
|
158
171
|
},
|
|
159
172
|
index: index,
|
|
160
173
|
resizable: tile.resizable,
|
|
@@ -163,19 +176,29 @@ var TileLayoutVue2 = {
|
|
|
163
176
|
"class": tile.class,
|
|
164
177
|
hintClass: tile.hintClass,
|
|
165
178
|
hintStyle: tile.hintStyle,
|
|
166
|
-
ignoreDrag: this.$props.ignoreDrag
|
|
179
|
+
ignoreDrag: this.$props.ignoreDrag,
|
|
180
|
+
"aria-describedby": tileTitleId,
|
|
181
|
+
"tab-index": tile.tabIndex
|
|
167
182
|
}, this.v3 ? function () {
|
|
168
183
|
return [tile.item ? itemContent : [h("div", {
|
|
169
184
|
"class": "k-tilelayout-item-header k-card-header"
|
|
170
185
|
}, [tile.header ? headerContent : h("h5", {
|
|
171
|
-
"class": 'k-card-title'
|
|
186
|
+
"class": 'k-card-title',
|
|
187
|
+
id: tileTitleId,
|
|
188
|
+
attrs: _this.v3 ? undefined : {
|
|
189
|
+
id: tileTitleId
|
|
190
|
+
}
|
|
172
191
|
}, [tile.headerText])]), h("div", {
|
|
173
192
|
"class": 'k-tilelayout-item-body k-card-body'
|
|
174
193
|
}, [tile.body ? bodyContent : tile.bodyText])]];
|
|
175
194
|
} : [tile.item ? itemContent : [h("div", {
|
|
176
195
|
"class": "k-tilelayout-item-header k-card-header"
|
|
177
196
|
}, [tile.header ? headerContent : h("h5", {
|
|
178
|
-
"class": 'k-card-title'
|
|
197
|
+
"class": 'k-card-title',
|
|
198
|
+
id: tileTitleId,
|
|
199
|
+
attrs: _this.v3 ? undefined : {
|
|
200
|
+
id: tileTitleId
|
|
201
|
+
}
|
|
179
202
|
}, [tile.headerText])]), h("div", {
|
|
180
203
|
"class": 'k-tilelayout-item-body k-card-body'
|
|
181
204
|
}, [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.
|
|
@@ -86,7 +86,7 @@ var BottomNavigationItemVue2 = {
|
|
|
86
86
|
role: 'link',
|
|
87
87
|
id: id,
|
|
88
88
|
tabIndex: tabIndex,
|
|
89
|
-
"aria-
|
|
89
|
+
"aria-current": selected,
|
|
90
90
|
"aria-disabled": disabled
|
|
91
91
|
},
|
|
92
92
|
id: id,
|
|
@@ -97,10 +97,14 @@ var BottomNavigationItemVue2 = {
|
|
|
97
97
|
"keydown": this.handleKeyDown
|
|
98
98
|
},
|
|
99
99
|
onKeydown: this.handleKeyDown,
|
|
100
|
-
"aria-
|
|
100
|
+
"aria-current": selected,
|
|
101
101
|
"aria-disabled": disabled
|
|
102
|
-
}, [this.$props.item ? content : [icon && h(
|
|
103
|
-
|
|
102
|
+
}, [this.$props.item ? content : [icon && h(kendo_vue_common_1.Icon, {
|
|
103
|
+
name: icon,
|
|
104
|
+
attrs: this.v3 ? undefined : {
|
|
105
|
+
name: icon
|
|
106
|
+
},
|
|
107
|
+
"class": "k-bottom-nav-item-icon"
|
|
104
108
|
}), text && h("span", {
|
|
105
109
|
"class": 'k-bottom-nav-item-text',
|
|
106
110
|
style: {
|
|
@@ -22,6 +22,8 @@ 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_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
26
|
+
var main_1 = require("../messages/main");
|
|
25
27
|
/**
|
|
26
28
|
* @hidden
|
|
27
29
|
*/
|
|
@@ -43,6 +45,9 @@ var DrawerItemVue2 = {
|
|
|
43
45
|
inject: {
|
|
44
46
|
kendoDrawer: {
|
|
45
47
|
default: null
|
|
48
|
+
},
|
|
49
|
+
kendoLocalizationService: {
|
|
50
|
+
default: null
|
|
46
51
|
}
|
|
47
52
|
},
|
|
48
53
|
computed: {
|
|
@@ -79,30 +84,38 @@ var DrawerItemVue2 = {
|
|
|
79
84
|
expanded = _b.expanded,
|
|
80
85
|
mini = _b.mini,
|
|
81
86
|
item = _b.item;
|
|
87
|
+
var ariaLabelSeparator = (0, kendo_vue_intl_1.provideLocalizationService)(this).toLanguageString(main_1.separatorAriaMessage, main_1.messages[main_1.separatorAriaMessage]);
|
|
82
88
|
return separator ? h("li", {
|
|
83
89
|
"class": 'k-drawer-item k-drawer-separator',
|
|
84
|
-
role: "
|
|
90
|
+
role: "separator",
|
|
85
91
|
attrs: this.v3 ? undefined : {
|
|
86
|
-
role: "
|
|
87
|
-
|
|
92
|
+
role: "separator",
|
|
93
|
+
"aria-label": ariaLabelSeparator
|
|
94
|
+
},
|
|
95
|
+
"aria-label": ariaLabelSeparator
|
|
88
96
|
}) : h("li", {
|
|
89
97
|
"class": this.itemClassNames,
|
|
90
|
-
role: "
|
|
98
|
+
role: "menuitem",
|
|
91
99
|
attrs: this.v3 ? undefined : {
|
|
92
|
-
role: "
|
|
93
|
-
"aria-
|
|
100
|
+
role: "menuitem",
|
|
101
|
+
"aria-label": text,
|
|
102
|
+
"aria-current": selected,
|
|
94
103
|
"aria-disabled": disabled,
|
|
95
104
|
tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled)
|
|
96
105
|
},
|
|
97
|
-
"aria-
|
|
106
|
+
"aria-label": text,
|
|
107
|
+
"aria-current": selected,
|
|
98
108
|
"aria-disabled": disabled,
|
|
99
109
|
onClick: this.handleClick,
|
|
100
110
|
on: this.v3 ? undefined : {
|
|
101
111
|
"click": this.handleClick
|
|
102
112
|
},
|
|
103
113
|
tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled)
|
|
104
|
-
}, [!item ? [icon && h(
|
|
105
|
-
|
|
114
|
+
}, [!item ? [icon && h(kendo_vue_common_1.Icon, {
|
|
115
|
+
name: icon,
|
|
116
|
+
attrs: this.v3 ? undefined : {
|
|
117
|
+
name: icon
|
|
118
|
+
}
|
|
106
119
|
}), !expanded && mini ? null : h("span", {
|
|
107
120
|
"class": 'k-item-text'
|
|
108
121
|
}, [text])] : defaultSlot]);
|
|
@@ -131,9 +131,9 @@ var DrawerNavigationVue2 = {
|
|
|
131
131
|
var drawerAnimation = expanded ? mode === 'push' ? expandPush : expandOverlay : mode === 'push' ? collapsePush : dir === 'ltr' && position === 'start' || dir === 'rtl' && position === 'end' ? mini ? collapseOverlayMini : collapseOverlay : mini ? collapseOverlayMini : collapseOverlayRtl;
|
|
132
132
|
var drawerItems = items && h("ul", {
|
|
133
133
|
"class": 'k-drawer-items',
|
|
134
|
-
role: "
|
|
134
|
+
role: "menu",
|
|
135
135
|
attrs: this.v3 ? undefined : {
|
|
136
|
-
role: "
|
|
136
|
+
role: "menu",
|
|
137
137
|
title: "drawer-list",
|
|
138
138
|
"aria-expanded": expanded
|
|
139
139
|
},
|
|
@@ -44,17 +44,20 @@ var ExpansionPanelVue2 = {
|
|
|
44
44
|
'k-disabled': disabled
|
|
45
45
|
};
|
|
46
46
|
},
|
|
47
|
+
expandIconName: function expandIconName() {
|
|
48
|
+
var _a = this.$props,
|
|
49
|
+
expanded = _a.expanded,
|
|
50
|
+
expandIcon = _a.expandIcon,
|
|
51
|
+
collapseIcon = _a.collapseIcon;
|
|
52
|
+
return !expanded && !expandIcon ? 'chevron-down' : expanded && !collapseIcon ? 'chevron-up' : '';
|
|
53
|
+
},
|
|
47
54
|
expandIconClass: function expandIconClass() {
|
|
48
55
|
var _a;
|
|
49
56
|
var _b = this.$props,
|
|
50
57
|
expanded = _b.expanded,
|
|
51
58
|
expandIcon = _b.expandIcon,
|
|
52
59
|
collapseIcon = _b.collapseIcon;
|
|
53
|
-
return _a = {
|
|
54
|
-
'k-icon': true,
|
|
55
|
-
'k-i-chevron-down': !expanded && !expandIcon,
|
|
56
|
-
'k-i-chevron-up': expanded && !collapseIcon
|
|
57
|
-
}, _a[expandIcon] = !expanded && Boolean(expandIcon), _a[collapseIcon] = expanded && Boolean(collapseIcon), _a;
|
|
60
|
+
return _a = {}, _a[expandIcon] = !expanded && Boolean(expandIcon), _a[collapseIcon] = expanded && Boolean(collapseIcon), _a;
|
|
58
61
|
}
|
|
59
62
|
},
|
|
60
63
|
data: function data() {
|
|
@@ -138,7 +141,11 @@ var ExpansionPanelVue2 = {
|
|
|
138
141
|
"class": "k-spacer"
|
|
139
142
|
}), subtitleToRender, h("span", {
|
|
140
143
|
"class": "k-expander-indicator"
|
|
141
|
-
}, [h(
|
|
144
|
+
}, [h(kendo_vue_common_1.Icon, {
|
|
145
|
+
name: this.expandIconName,
|
|
146
|
+
attrs: this.v3 ? undefined : {
|
|
147
|
+
name: this.expandIconName
|
|
148
|
+
},
|
|
142
149
|
"class": this.expandIconClass
|
|
143
150
|
})])]), defaultSlots]);
|
|
144
151
|
},
|
|
@@ -23,15 +23,15 @@ export interface MenuItemArrowProps {
|
|
|
23
23
|
/**
|
|
24
24
|
* @hidden
|
|
25
25
|
*/
|
|
26
|
-
export declare const downArrowClass = "
|
|
26
|
+
export declare const downArrowClass = "caret-alt-down";
|
|
27
27
|
/**
|
|
28
28
|
* @hidden
|
|
29
29
|
*/
|
|
30
|
-
export declare const rightArrowClass = "
|
|
30
|
+
export declare const rightArrowClass = "caret-alt-right";
|
|
31
31
|
/**
|
|
32
32
|
* @hidden
|
|
33
33
|
*/
|
|
34
|
-
export declare const leftArrowClass = "
|
|
34
|
+
export declare const leftArrowClass = "caret-alt-left";
|
|
35
35
|
/**
|
|
36
36
|
* @hidden
|
|
37
37
|
*/
|