@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
|
@@ -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';
|
|
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';
|
|
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';
|
|
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';
|
|
|
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';
|
|
10
10
|
import { getPopupSettings, convertBoolDirectionToString, getDOMElementId } from '../utils/misc';
|
|
@@ -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';
|
|
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, {
|
|
@@ -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';
|
|
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/es/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';
|
|
10
10
|
import { messages, optionalText } from './messages/main';
|
|
@@ -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';
|
|
22
22
|
import { validatePackage, isRtl, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
|
|
23
23
|
import { packageMetadata } from '../package-metadata';
|
|
24
|
+
import { messages, ariaLabel } from './messages/main';
|
|
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
|
};
|