@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,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';
|
|
8
8
|
import { Tile } from './Tile';
|
|
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.
|
|
@@ -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
|
import { packageMetadata } from '../package-metadata.js';
|
|
7
|
-
import { getTemplate, validatePackage } from '@progress/kendo-vue-common';
|
|
7
|
+
import { getTemplate, Icon, validatePackage } from '@progress/kendo-vue-common';
|
|
8
8
|
/**
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
@@ -80,7 +80,7 @@ var BottomNavigationItemVue2 = {
|
|
|
80
80
|
role: 'link',
|
|
81
81
|
id: id,
|
|
82
82
|
tabIndex: tabIndex,
|
|
83
|
-
"aria-
|
|
83
|
+
"aria-current": selected,
|
|
84
84
|
"aria-disabled": disabled
|
|
85
85
|
},
|
|
86
86
|
id: id,
|
|
@@ -91,10 +91,14 @@ var BottomNavigationItemVue2 = {
|
|
|
91
91
|
"keydown": this.handleKeyDown
|
|
92
92
|
},
|
|
93
93
|
onKeydown: this.handleKeyDown,
|
|
94
|
-
"aria-
|
|
94
|
+
"aria-current": selected,
|
|
95
95
|
"aria-disabled": disabled
|
|
96
|
-
}, [this.$props.item ? content : [icon && h(
|
|
97
|
-
|
|
96
|
+
}, [this.$props.item ? content : [icon && h(Icon, {
|
|
97
|
+
name: icon,
|
|
98
|
+
attrs: this.v3 ? undefined : {
|
|
99
|
+
name: icon
|
|
100
|
+
},
|
|
101
|
+
"class": "k-bottom-nav-item-icon"
|
|
98
102
|
}), text && h("span", {
|
|
99
103
|
"class": 'k-bottom-nav-item-text',
|
|
100
104
|
style: {
|
|
@@ -15,7 +15,9 @@ import * as Vue from 'vue';
|
|
|
15
15
|
var allVue = Vue;
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
|
-
import { getTabIndex, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
18
|
+
import { getTabIndex, getDefaultSlots, Icon } from '@progress/kendo-vue-common';
|
|
19
|
+
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
20
|
+
import { separatorAriaMessage, messages } from '../messages/main.js';
|
|
19
21
|
/**
|
|
20
22
|
* @hidden
|
|
21
23
|
*/
|
|
@@ -37,6 +39,9 @@ var DrawerItemVue2 = {
|
|
|
37
39
|
inject: {
|
|
38
40
|
kendoDrawer: {
|
|
39
41
|
default: null
|
|
42
|
+
},
|
|
43
|
+
kendoLocalizationService: {
|
|
44
|
+
default: null
|
|
40
45
|
}
|
|
41
46
|
},
|
|
42
47
|
computed: {
|
|
@@ -73,30 +78,38 @@ var DrawerItemVue2 = {
|
|
|
73
78
|
expanded = _b.expanded,
|
|
74
79
|
mini = _b.mini,
|
|
75
80
|
item = _b.item;
|
|
81
|
+
var ariaLabelSeparator = provideLocalizationService(this).toLanguageString(separatorAriaMessage, messages[separatorAriaMessage]);
|
|
76
82
|
return separator ? h("li", {
|
|
77
83
|
"class": 'k-drawer-item k-drawer-separator',
|
|
78
|
-
role: "
|
|
84
|
+
role: "separator",
|
|
79
85
|
attrs: this.v3 ? undefined : {
|
|
80
|
-
role: "
|
|
81
|
-
|
|
86
|
+
role: "separator",
|
|
87
|
+
"aria-label": ariaLabelSeparator
|
|
88
|
+
},
|
|
89
|
+
"aria-label": ariaLabelSeparator
|
|
82
90
|
}) : h("li", {
|
|
83
91
|
"class": this.itemClassNames,
|
|
84
|
-
role: "
|
|
92
|
+
role: "menuitem",
|
|
85
93
|
attrs: this.v3 ? undefined : {
|
|
86
|
-
role: "
|
|
87
|
-
"aria-
|
|
94
|
+
role: "menuitem",
|
|
95
|
+
"aria-label": text,
|
|
96
|
+
"aria-current": selected,
|
|
88
97
|
"aria-disabled": disabled,
|
|
89
98
|
tabindex: getTabIndex(tabIndex, disabled)
|
|
90
99
|
},
|
|
91
|
-
"aria-
|
|
100
|
+
"aria-label": text,
|
|
101
|
+
"aria-current": selected,
|
|
92
102
|
"aria-disabled": disabled,
|
|
93
103
|
onClick: this.handleClick,
|
|
94
104
|
on: this.v3 ? undefined : {
|
|
95
105
|
"click": this.handleClick
|
|
96
106
|
},
|
|
97
107
|
tabindex: getTabIndex(tabIndex, disabled)
|
|
98
|
-
}, [!item ? [icon && h(
|
|
99
|
-
|
|
108
|
+
}, [!item ? [icon && h(Icon, {
|
|
109
|
+
name: icon,
|
|
110
|
+
attrs: this.v3 ? undefined : {
|
|
111
|
+
name: icon
|
|
112
|
+
}
|
|
100
113
|
}), !expanded && mini ? null : h("span", {
|
|
101
114
|
"class": 'k-item-text'
|
|
102
115
|
}, [text])] : defaultSlot]);
|
|
@@ -125,9 +125,9 @@ var DrawerNavigationVue2 = {
|
|
|
125
125
|
var drawerAnimation = expanded ? mode === 'push' ? expandPush : expandOverlay : mode === 'push' ? collapsePush : dir === 'ltr' && position === 'start' || dir === 'rtl' && position === 'end' ? mini ? collapseOverlayMini : collapseOverlay : mini ? collapseOverlayMini : collapseOverlayRtl;
|
|
126
126
|
var drawerItems = items && h("ul", {
|
|
127
127
|
"class": 'k-drawer-items',
|
|
128
|
-
role: "
|
|
128
|
+
role: "menu",
|
|
129
129
|
attrs: this.v3 ? undefined : {
|
|
130
|
-
role: "
|
|
130
|
+
role: "menu",
|
|
131
131
|
title: "drawer-list",
|
|
132
132
|
"aria-expanded": expanded
|
|
133
133
|
},
|
|
@@ -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 { getTabIndex, validatePackage, Keys, getDefaultSlots, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
|
|
6
|
+
import { getTabIndex, validatePackage, Keys, getDefaultSlots, templateRendering, getListeners, getTemplate, Icon } from '@progress/kendo-vue-common';
|
|
7
7
|
import { packageMetadata } from '../package-metadata.js';
|
|
8
8
|
/**
|
|
9
9
|
* @hidden
|
|
@@ -38,17 +38,20 @@ var ExpansionPanelVue2 = {
|
|
|
38
38
|
'k-disabled': disabled
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
|
+
expandIconName: function expandIconName() {
|
|
42
|
+
var _a = this.$props,
|
|
43
|
+
expanded = _a.expanded,
|
|
44
|
+
expandIcon = _a.expandIcon,
|
|
45
|
+
collapseIcon = _a.collapseIcon;
|
|
46
|
+
return !expanded && !expandIcon ? 'chevron-down' : expanded && !collapseIcon ? 'chevron-up' : '';
|
|
47
|
+
},
|
|
41
48
|
expandIconClass: function expandIconClass() {
|
|
42
49
|
var _a;
|
|
43
50
|
var _b = this.$props,
|
|
44
51
|
expanded = _b.expanded,
|
|
45
52
|
expandIcon = _b.expandIcon,
|
|
46
53
|
collapseIcon = _b.collapseIcon;
|
|
47
|
-
return _a = {
|
|
48
|
-
'k-icon': true,
|
|
49
|
-
'k-i-chevron-down': !expanded && !expandIcon,
|
|
50
|
-
'k-i-chevron-up': expanded && !collapseIcon
|
|
51
|
-
}, _a[expandIcon] = !expanded && Boolean(expandIcon), _a[collapseIcon] = expanded && Boolean(collapseIcon), _a;
|
|
54
|
+
return _a = {}, _a[expandIcon] = !expanded && Boolean(expandIcon), _a[collapseIcon] = expanded && Boolean(collapseIcon), _a;
|
|
52
55
|
}
|
|
53
56
|
},
|
|
54
57
|
data: function data() {
|
|
@@ -132,7 +135,11 @@ var ExpansionPanelVue2 = {
|
|
|
132
135
|
"class": "k-spacer"
|
|
133
136
|
}), subtitleToRender, h("span", {
|
|
134
137
|
"class": "k-expander-indicator"
|
|
135
|
-
}, [h(
|
|
138
|
+
}, [h(Icon, {
|
|
139
|
+
name: this.expandIconName,
|
|
140
|
+
attrs: this.v3 ? undefined : {
|
|
141
|
+
name: this.expandIconName
|
|
142
|
+
},
|
|
136
143
|
"class": this.expandIconClass
|
|
137
144
|
})])]), defaultSlots]);
|
|
138
145
|
},
|
|
@@ -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
|
*/
|
|
@@ -7,15 +7,15 @@ import { getChildrenPosition } from '../utils/misc.js';
|
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
|
-
export var downArrowClass = '
|
|
10
|
+
export var downArrowClass = 'caret-alt-down';
|
|
11
11
|
/**
|
|
12
12
|
* @hidden
|
|
13
13
|
*/
|
|
14
|
-
export var rightArrowClass = '
|
|
14
|
+
export var rightArrowClass = 'caret-alt-right';
|
|
15
15
|
/**
|
|
16
16
|
* @hidden
|
|
17
17
|
*/
|
|
18
|
-
export var leftArrowClass = '
|
|
18
|
+
export var leftArrowClass = 'caret-alt-left';
|
|
19
19
|
/**
|
|
20
20
|
* @hidden
|
|
21
21
|
*/
|
|
@@ -36,9 +36,13 @@ var MenuItemArrowVue2 = {
|
|
|
36
36
|
render: function render(createElement) {
|
|
37
37
|
var h = gh || createElement;
|
|
38
38
|
return h("span", {
|
|
39
|
-
"class": "k-menu-expand-arrow"
|
|
39
|
+
"class": "k-menu-expand-arrow",
|
|
40
|
+
"aria-hidden": "true",
|
|
41
|
+
attrs: this.v3 ? undefined : {
|
|
42
|
+
"aria-hidden": "true"
|
|
43
|
+
}
|
|
40
44
|
}, [h("span", {
|
|
41
|
-
"class": this.
|
|
45
|
+
"class": this.getArrowName(),
|
|
42
46
|
role: "presentation",
|
|
43
47
|
attrs: this.v3 ? undefined : {
|
|
44
48
|
role: "presentation"
|
|
@@ -46,12 +50,9 @@ var MenuItemArrowVue2 = {
|
|
|
46
50
|
})]);
|
|
47
51
|
},
|
|
48
52
|
methods: {
|
|
49
|
-
|
|
50
|
-
var _a;
|
|
53
|
+
getArrowName: function getArrowName() {
|
|
51
54
|
var childrenPosition = getChildrenPosition(this.$props.itemId, this.$props.verticalMenu === true, this.$props.dir === 'rtl');
|
|
52
|
-
return
|
|
53
|
-
'k-icon': true
|
|
54
|
-
}, _a[downArrowClass] = childrenPosition === 'downward', _a[rightArrowClass] = childrenPosition === 'rightward', _a[leftArrowClass] = childrenPosition === 'leftward', _a;
|
|
55
|
+
return childrenPosition === 'downward' ? downArrowClass : childrenPosition === 'rightward' ? rightArrowClass : childrenPosition === 'leftward' ? leftArrowClass : '';
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
};
|
|
@@ -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 ref = allVue.ref;
|
|
7
|
-
import { classNames, guid, getTemplate, setRef, getRef } from '@progress/kendo-vue-common';
|
|
7
|
+
import { classNames, guid, getTemplate, setRef, getRef, Icon } from '@progress/kendo-vue-common';
|
|
8
8
|
import { Popup } from '@progress/kendo-vue-popup';
|
|
9
9
|
import { shouldOpenItem, isFirstItemFromSiblings } from '../utils/itemsIdsUtils.js';
|
|
10
10
|
import { getPopupSettings, convertBoolDirectionToString, getDOMElementId } from '../utils/misc.js';
|
|
@@ -157,11 +157,10 @@ var MenuItemInternalVue2 = {
|
|
|
157
157
|
})]);
|
|
158
158
|
};
|
|
159
159
|
var renderMenuIconIfApplicable = function renderMenuIconIfApplicable() {
|
|
160
|
-
return this.$props.item.icon ? h(
|
|
161
|
-
|
|
162
|
-
role: "presentation",
|
|
160
|
+
return this.$props.item.icon ? h(Icon, {
|
|
161
|
+
name: this.$props.item.icon,
|
|
163
162
|
attrs: this.v3 ? undefined : {
|
|
164
|
-
|
|
163
|
+
name: this.$props.item.icon
|
|
165
164
|
},
|
|
166
165
|
key: "0"
|
|
167
166
|
}) : 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,16 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
export var separatorAriaMessage = 'drawer.separatorAriaMessage';
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export var splitterPaneLabel = 'splitter.splitterPaneLabel';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export var messages = (_a = {},
|
|
14
|
+
_a[separatorAriaMessage] = 'Separator',
|
|
15
|
+
_a[splitterPaneLabel] = 'Splitter pane',
|
|
16
|
+
_a);
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-layout',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1673273592,
|
|
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
|
};
|
|
@@ -15,7 +15,8 @@ import * as Vue from 'vue';
|
|
|
15
15
|
var allVue = Vue;
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
|
-
import { classNames, getTemplate } from '@progress/kendo-vue-common';
|
|
18
|
+
import { classNames, getTemplate, Icon } from '@progress/kendo-vue-common';
|
|
19
|
+
import { chevronUpIcon, chevronDownIcon } from '@progress/kendo-svg-icons';
|
|
19
20
|
import { PanelBarGroup } from './PanelBarGroup.js';
|
|
20
21
|
/**
|
|
21
22
|
* @hidden
|
|
@@ -93,7 +94,9 @@ var PanelBarItemVue2 = {
|
|
|
93
94
|
'k-selected': !disabled && selected,
|
|
94
95
|
'k-focus': focused
|
|
95
96
|
}, headerClassName);
|
|
96
|
-
var panelBarItemArrowClassName = classNames('k-panelbar-toggle',
|
|
97
|
+
var panelBarItemArrowClassName = classNames('k-panelbar-toggle', (_a = {}, _a['k-panelbar-collapse'] = expanded && hasContent, _a['k-panelbar-expand'] = !expanded && hasContent, _a));
|
|
98
|
+
var itemIconName = expanded ? 'chevron-up' : 'chevron-down';
|
|
99
|
+
var itemIconSVG = expanded ? chevronUpIcon : chevronDownIcon;
|
|
97
100
|
var iconElement = function iconElement() {
|
|
98
101
|
if (this.imageUrl) {
|
|
99
102
|
return h("img", {
|
|
@@ -106,27 +109,28 @@ var PanelBarItemVue2 = {
|
|
|
106
109
|
src: this.imageUrl
|
|
107
110
|
});
|
|
108
111
|
} else if (icon) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
role: "presentation",
|
|
112
|
+
return h(Icon, {
|
|
113
|
+
name: icon,
|
|
112
114
|
attrs: this.v3 ? undefined : {
|
|
113
|
-
|
|
115
|
+
name: icon
|
|
114
116
|
},
|
|
115
|
-
"class":
|
|
117
|
+
"class": 'k-panelbar-item-icon'
|
|
116
118
|
});
|
|
117
119
|
} else if (this.iconClass) {
|
|
118
|
-
return h(
|
|
119
|
-
role: "presentation",
|
|
120
|
-
attrs: this.v3 ? undefined : {
|
|
121
|
-
role: "presentation"
|
|
122
|
-
},
|
|
120
|
+
return h(Icon, {
|
|
123
121
|
"class": 'k-panelbar-item-icon ' + this.iconClass
|
|
124
122
|
});
|
|
125
123
|
}
|
|
126
124
|
return null;
|
|
127
125
|
};
|
|
128
126
|
var iconRender = iconElement.call(this);
|
|
129
|
-
var arrow = !disabled && (items || content) ? h(
|
|
127
|
+
var arrow = !disabled && (items || content) ? h(Icon, {
|
|
128
|
+
name: itemIconName,
|
|
129
|
+
attrs: this.v3 ? undefined : {
|
|
130
|
+
name: itemIconName,
|
|
131
|
+
icon: itemIconSVG
|
|
132
|
+
},
|
|
133
|
+
icon: itemIconSVG,
|
|
130
134
|
"class": panelBarItemArrowClassName
|
|
131
135
|
}) : null;
|
|
132
136
|
var group = items || content ? h(PanelBarGroup, {
|