@progress/kendo-vue-layout 3.7.4-dev.202212300853 → 3.7.4-dev.202301120847

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.
Files changed (56) hide show
  1. package/dist/cdn/js/kendo-vue-layout.js +1 -1
  2. package/dist/es/bottomnavigation/BottomNavigationItem.js +2 -2
  3. package/dist/es/drawer/DrawerItem.js +17 -7
  4. package/dist/es/drawer/DrawerNavigation.js +2 -2
  5. package/dist/es/menu/components/MenuItemArrow.js +9 -5
  6. package/dist/es/messages/main.d.ts +15 -0
  7. package/dist/es/messages/main.js +16 -0
  8. package/dist/es/package-metadata.js +1 -1
  9. package/dist/es/panelbar/PanelBarItem.js +5 -1
  10. package/dist/es/splitter/SplitterBar.js +49 -12
  11. package/dist/es/splitter/SplitterPane.js +5 -1
  12. package/dist/es/stepper/Step.js +4 -4
  13. package/dist/es/stepper/Stepper.js +11 -0
  14. package/dist/es/stepper/messages/main.d.ts +5 -0
  15. package/dist/es/stepper/messages/main.js +5 -0
  16. package/dist/es/tilelayout/Tile.d.ts +2 -0
  17. package/dist/es/tilelayout/Tile.js +25 -3
  18. package/dist/es/tilelayout/TileLayout.js +32 -9
  19. package/dist/es/tilelayout/interfaces/main.d.ts +8 -0
  20. package/dist/esm/bottomnavigation/BottomNavigationItem.js +2 -2
  21. package/dist/esm/drawer/DrawerItem.js +17 -7
  22. package/dist/esm/drawer/DrawerNavigation.js +2 -2
  23. package/dist/esm/menu/components/MenuItemArrow.js +9 -5
  24. package/dist/esm/messages/main.d.ts +15 -0
  25. package/dist/esm/messages/main.js +16 -0
  26. package/dist/esm/package-metadata.js +1 -1
  27. package/dist/esm/panelbar/PanelBarItem.js +5 -1
  28. package/dist/esm/splitter/SplitterBar.js +49 -12
  29. package/dist/esm/splitter/SplitterPane.js +5 -1
  30. package/dist/esm/stepper/Step.js +4 -4
  31. package/dist/esm/stepper/Stepper.js +11 -0
  32. package/dist/esm/stepper/messages/main.d.ts +5 -0
  33. package/dist/esm/stepper/messages/main.js +5 -0
  34. package/dist/esm/tilelayout/Tile.d.ts +2 -0
  35. package/dist/esm/tilelayout/Tile.js +25 -3
  36. package/dist/esm/tilelayout/TileLayout.js +32 -9
  37. package/dist/esm/tilelayout/interfaces/main.d.ts +8 -0
  38. package/dist/npm/bottomnavigation/BottomNavigationItem.js +2 -2
  39. package/dist/npm/drawer/DrawerItem.js +17 -7
  40. package/dist/npm/drawer/DrawerNavigation.js +2 -2
  41. package/dist/npm/menu/components/MenuItemArrow.js +9 -5
  42. package/dist/npm/messages/main.d.ts +15 -0
  43. package/dist/npm/messages/main.js +19 -0
  44. package/dist/npm/package-metadata.js +1 -1
  45. package/dist/npm/panelbar/PanelBarItem.js +5 -1
  46. package/dist/npm/splitter/SplitterBar.js +49 -12
  47. package/dist/npm/splitter/SplitterPane.js +5 -1
  48. package/dist/npm/stepper/Step.js +4 -4
  49. package/dist/npm/stepper/Stepper.js +11 -0
  50. package/dist/npm/stepper/messages/main.d.ts +5 -0
  51. package/dist/npm/stepper/messages/main.js +6 -1
  52. package/dist/npm/tilelayout/Tile.d.ts +2 -0
  53. package/dist/npm/tilelayout/Tile.js +25 -3
  54. package/dist/npm/tilelayout/TileLayout.js +31 -8
  55. package/dist/npm/tilelayout/interfaces/main.d.ts +8 -0
  56. package/package.json +17 -15
@@ -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,22 +84,27 @@ 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: "presentation",
90
+ role: "separator",
85
91
  attrs: this.v3 ? undefined : {
86
- role: "presentation"
87
- }
92
+ role: "separator",
93
+ "aria-label": ariaLabelSeparator
94
+ },
95
+ "aria-label": ariaLabelSeparator
88
96
  }) : h("li", {
89
97
  "class": this.itemClassNames,
90
- role: "option",
98
+ role: "menuitem",
91
99
  attrs: this.v3 ? undefined : {
92
- role: "option",
93
- "aria-selected": selected,
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-selected": selected,
106
+ "aria-label": text,
107
+ "aria-current": selected,
98
108
  "aria-disabled": disabled,
99
109
  onClick: this.handleClick,
100
110
  on: this.v3 ? undefined : {
@@ -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: "listbox",
134
+ role: "menu",
135
135
  attrs: this.v3 ? undefined : {
136
- role: "listbox",
136
+ role: "menu",
137
137
  title: "drawer-list",
138
138
  "aria-expanded": expanded
139
139
  },
@@ -9,7 +9,6 @@ var Vue = require("vue");
9
9
  var allVue = Vue;
10
10
  var gh = allVue.h;
11
11
  var isV3 = allVue.version && allVue.version[0] === '3';
12
- var kendo_vue_common_1 = require("@progress/kendo-vue-common");
13
12
  var misc_1 = require("../utils/misc");
14
13
  /**
15
14
  * @hidden
@@ -43,11 +42,16 @@ var MenuItemArrowVue2 = {
43
42
  render: function render(createElement) {
44
43
  var h = gh || createElement;
45
44
  return h("span", {
46
- "class": "k-menu-expand-arrow"
47
- }, [h(kendo_vue_common_1.Icon, {
48
- name: this.getArrowName(),
45
+ "class": "k-menu-expand-arrow",
46
+ "aria-hidden": "true",
49
47
  attrs: this.v3 ? undefined : {
50
- name: this.getArrowName()
48
+ "aria-hidden": "true"
49
+ }
50
+ }, [h("span", {
51
+ "class": this.getArrowName(),
52
+ role: "presentation",
53
+ attrs: this.v3 ? undefined : {
54
+ role: "presentation"
51
55
  }
52
56
  })]);
53
57
  },
@@ -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: 1672389706,
11
+ publishDate: 1673512228,
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
@@ -101,6 +102,7 @@ var PanelBarItemVue2 = {
101
102
  }, headerClassName);
102
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));
103
104
  var itemIconName = expanded ? 'chevron-up' : 'chevron-down';
105
+ var itemIconSVG = expanded ? kendo_svg_icons_1.chevronUpIcon : kendo_svg_icons_1.chevronDownIcon;
104
106
  var iconElement = function iconElement() {
105
107
  if (this.imageUrl) {
106
108
  return h("img", {
@@ -131,8 +133,10 @@ var PanelBarItemVue2 = {
131
133
  var arrow = !disabled && (items || content) ? h(kendo_vue_common_1.Icon, {
132
134
  name: itemIconName,
133
135
  attrs: this.v3 ? undefined : {
134
- name: itemIconName
136
+ name: itemIconName,
137
+ icon: itemIconSVG
135
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
@@ -85,7 +93,10 @@ var SplitterBarVue2 = {
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
95
  var previousArrowName = this.previousArrowName(isHorizontal);
96
+ var previousArrowSVG = this.previousArrowSVG(isHorizontal);
88
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,7 +144,9 @@ 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,
@@ -141,8 +156,10 @@ var SplitterBarVue2 = {
141
156
  }, [h(kendo_vue_common_1.Icon, {
142
157
  name: previousArrowName,
143
158
  attrs: _this2.v3 ? undefined : {
144
- name: previousArrowName
145
- }
159
+ name: previousArrowName,
160
+ icon: previousArrowSVG
161
+ },
162
+ icon: previousArrowSVG
146
163
  })]), h("div", {
147
164
  "class": 'k-resize-handle'
148
165
  }), _this2.next.collapsible && h("span", {
@@ -154,14 +171,18 @@ var SplitterBarVue2 = {
154
171
  }, [h(kendo_vue_common_1.Icon, {
155
172
  name: nextArrowName,
156
173
  attrs: _this2.v3 ? undefined : {
157
- name: nextArrowName
158
- }
174
+ name: nextArrowName,
175
+ icon: nextArrowSVG
176
+ },
177
+ icon: nextArrowSVG
159
178
  })])])];
160
179
  } : [h("div", {
161
180
  tabindex: isStatic ? -1 : 0,
162
181
  attrs: _this2.v3 ? undefined : {
163
182
  tabindex: isStatic ? -1 : 0,
164
- role: 'separator'
183
+ role: 'separator',
184
+ ariaLabel: paneLabel,
185
+ ariaOrientation: _this2.isHorizontal ? 'vertical' : 'horizontal'
165
186
  },
166
187
  role: 'separator',
167
188
  "class": barClasses,
@@ -177,7 +198,9 @@ var SplitterBarVue2 = {
177
198
  },
178
199
  onFocusout: _this2.onBlur,
179
200
  onDblclick: _this2.onToggle,
180
- onKeydown: _this2.onKeyDown
201
+ onKeydown: _this2.onKeyDown,
202
+ ariaLabel: paneLabel,
203
+ ariaOrientation: _this2.isHorizontal ? 'vertical' : 'horizontal'
181
204
  }, [_this2.prev.collapsible && h("span", {
182
205
  "class": 'k-collapse-prev',
183
206
  onClick: _this2.onPrevToggle,
@@ -187,8 +210,10 @@ var SplitterBarVue2 = {
187
210
  }, [h(kendo_vue_common_1.Icon, {
188
211
  name: previousArrowName,
189
212
  attrs: _this2.v3 ? undefined : {
190
- name: previousArrowName
191
- }
213
+ name: previousArrowName,
214
+ icon: previousArrowSVG
215
+ },
216
+ icon: previousArrowSVG
192
217
  })]), h("div", {
193
218
  "class": 'k-resize-handle'
194
219
  }), _this2.next.collapsible && h("span", {
@@ -200,8 +225,10 @@ var SplitterBarVue2 = {
200
225
  }, [h(kendo_vue_common_1.Icon, {
201
226
  name: nextArrowName,
202
227
  attrs: _this2.v3 ? undefined : {
203
- name: nextArrowName
204
- }
228
+ name: nextArrowName,
229
+ icon: nextArrowSVG
230
+ },
231
+ icon: nextArrowSVG
205
232
  })])])])
206
233
  );
207
234
  },
@@ -281,10 +308,20 @@ var SplitterBarVue2 = {
281
308
  var isCollapsed = prev.collapsed;
282
309
  return isHorizontal && !isCollapsed ? 'caret-alt-left' : isHorizontal && isCollapsed ? 'caret-alt-right' : !isHorizontal && !isCollapsed ? 'caret-alt-up' : !isHorizontal && isCollapsed ? 'caret-alt-down' : '';
283
310
  },
311
+ previousArrowSVG: function previousArrowSVG(isHorizontal) {
312
+ var prev = this.$props.prev;
313
+ var isCollapsed = prev.collapsed;
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
+ },
284
316
  nextArrowName: function nextArrowName(isHorizontal) {
285
317
  var next = this.$props.next;
286
318
  var isCollapsed = next.collapsed;
287
319
  return isHorizontal && !isCollapsed ? 'caret-alt-right' : isHorizontal && isCollapsed ? 'caret-alt-left' : !isHorizontal && !isCollapsed ? 'caret-alt-down' : !isHorizontal && isCollapsed ? 'caret-alt-up' : '';
320
+ },
321
+ nextArrowSVG: function nextArrowSVG(isHorizontal) {
322
+ var next = this.$props.next;
323
+ var isCollapsed = next.collapsed;
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;
288
325
  }
289
326
  }
290
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]);
@@ -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
- tabindex: focused ? tabIndex : -1,
172
- "aria-current": current ? 'step' : undefined,
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
- tabindex: focused ? tabIndex : -1,
183
- "aria-current": current ? 'step' : undefined,
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);
@@ -12,6 +12,8 @@ export interface TileProps extends TileLayoutItem {
12
12
  index: number;
13
13
  defaultPosition: TileStrictPosition;
14
14
  ignoreDrag?: (event: any) => boolean;
15
+ tabIndex: number;
16
+ ariaDescribedBy: string;
15
17
  }
16
18
  /**
17
19
  * @hidden
@@ -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.