@progress/kendo-vue-layout 3.10.2 → 3.11.0-dev.202305230751
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/dist/cdn/js/kendo-vue-layout.js +1 -1
- package/dist/es/bottomnavigation/BottomNavigation.js +9 -1
- package/dist/es/bottomnavigation/BottomNavigationItem.js +7 -2
- package/dist/es/bottomnavigation/BottomNavigationProps.d.ts +4 -0
- package/dist/es/drawer/DrawerContent.d.ts +4 -4
- package/dist/es/drawer/DrawerContent.js +4 -4
- package/dist/es/drawer/DrawerItem.js +9 -6
- package/dist/es/drawer/interfaces/DrawerItemProps.d.ts +5 -0
- package/dist/es/expansionpanel/ExpansionPanel.js +14 -11
- package/dist/es/expansionpanel/interfaces.d.ts +9 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/panelbar/PanelBarItem.js +7 -3
- package/dist/es/panelbar/interfaces/PanelBarItemProps.d.ts +5 -0
- package/dist/es/panelbar/interfaces/PanelBarItemProps.js +1 -0
- package/dist/es/splitter/Splitter.js +10 -7
- package/dist/es/splitter/SplitterBar.d.ts +1 -3
- package/dist/es/splitter/SplitterBar.js +22 -13
- package/dist/es/stepper/Step.js +32 -11
- package/dist/es/stepper/Stepper.d.ts +5 -5
- package/dist/es/stepper/Stepper.js +5 -5
- package/dist/es/stepper/interfaces/StepProps.d.ts +21 -0
- package/dist/esm/bottomnavigation/BottomNavigation.js +9 -1
- package/dist/esm/bottomnavigation/BottomNavigationItem.js +7 -2
- package/dist/esm/bottomnavigation/BottomNavigationProps.d.ts +4 -0
- package/dist/esm/drawer/DrawerContent.d.ts +4 -4
- package/dist/esm/drawer/DrawerContent.js +4 -4
- package/dist/esm/drawer/DrawerItem.js +9 -6
- package/dist/esm/drawer/interfaces/DrawerItemProps.d.ts +5 -0
- package/dist/esm/expansionpanel/ExpansionPanel.js +14 -11
- package/dist/esm/expansionpanel/interfaces.d.ts +9 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/panelbar/PanelBarItem.js +7 -3
- package/dist/esm/panelbar/interfaces/PanelBarItemProps.d.ts +5 -0
- package/dist/esm/panelbar/interfaces/PanelBarItemProps.js +1 -0
- package/dist/esm/splitter/Splitter.js +10 -7
- package/dist/esm/splitter/SplitterBar.d.ts +1 -3
- package/dist/esm/splitter/SplitterBar.js +22 -13
- package/dist/esm/stepper/Step.js +32 -11
- package/dist/esm/stepper/Stepper.d.ts +5 -5
- package/dist/esm/stepper/Stepper.js +5 -5
- package/dist/esm/stepper/interfaces/StepProps.d.ts +21 -0
- package/dist/npm/bottomnavigation/BottomNavigation.js +9 -1
- package/dist/npm/bottomnavigation/BottomNavigationItem.js +7 -2
- package/dist/npm/bottomnavigation/BottomNavigationProps.d.ts +4 -0
- package/dist/npm/drawer/DrawerContent.d.ts +4 -4
- package/dist/npm/drawer/DrawerContent.js +4 -4
- package/dist/npm/drawer/DrawerItem.js +8 -5
- package/dist/npm/drawer/interfaces/DrawerItemProps.d.ts +5 -0
- package/dist/npm/expansionpanel/ExpansionPanel.js +13 -10
- package/dist/npm/expansionpanel/interfaces.d.ts +9 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/panelbar/PanelBarItem.js +7 -3
- package/dist/npm/panelbar/interfaces/PanelBarItemProps.d.ts +5 -0
- package/dist/npm/panelbar/interfaces/PanelBarItemProps.js +1 -0
- package/dist/npm/splitter/Splitter.js +9 -6
- package/dist/npm/splitter/SplitterBar.d.ts +1 -3
- package/dist/npm/splitter/SplitterBar.js +22 -13
- package/dist/npm/stepper/Step.js +31 -10
- package/dist/npm/stepper/Stepper.d.ts +5 -5
- package/dist/npm/stepper/Stepper.js +5 -5
- package/dist/npm/stepper/interfaces/StepProps.d.ts +21 -0
- package/package.json +13 -13
|
@@ -33,6 +33,13 @@ var BottomNavigationVue2 = {
|
|
|
33
33
|
return ['solid', 'flat'].includes(value);
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
+
fillMode: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: 'flat',
|
|
39
|
+
validator: function validator(value) {
|
|
40
|
+
return ['solid', 'flat'].includes(value);
|
|
41
|
+
}
|
|
42
|
+
},
|
|
36
43
|
item: [String, Object, Function],
|
|
37
44
|
items: Array,
|
|
38
45
|
itemFlow: {
|
|
@@ -65,11 +72,12 @@ var BottomNavigationVue2 = {
|
|
|
65
72
|
var _a;
|
|
66
73
|
var _b = this.$props,
|
|
67
74
|
themeColor = _b.themeColor,
|
|
68
|
-
|
|
75
|
+
fillMode = _b.fillMode,
|
|
69
76
|
positionMode = _b.positionMode,
|
|
70
77
|
itemFlow = _b.itemFlow,
|
|
71
78
|
border = _b.border,
|
|
72
79
|
disabled = _b.disabled;
|
|
80
|
+
var fill = fillMode !== undefined ? fillMode : this.$props.fill;
|
|
73
81
|
return _a = {
|
|
74
82
|
'k-bottom-nav': true
|
|
75
83
|
}, _a[POSITION_MODE_CLASSES[positionMode]] = true, _a[THEME_COLOR_CLASSES[themeColor]] = true, _a[FILL_CLASSES[fill]] = true, _a[ITEM_FLOW_CLASSES[itemFlow]] = true, _a['k-bottom-nav-border'] = border, _a['k-disabled'] = disabled, _a;
|
|
@@ -63,7 +63,8 @@ var BottomNavigationItemVue2 = {
|
|
|
63
63
|
index = _a.index,
|
|
64
64
|
tabIndex = _a.tabIndex;
|
|
65
65
|
var icon = dataItem.icon,
|
|
66
|
-
text = dataItem.text
|
|
66
|
+
text = dataItem.text,
|
|
67
|
+
svgIcon = dataItem.svgIcon;
|
|
67
68
|
var content = getTemplate.call(this, {
|
|
68
69
|
h: h,
|
|
69
70
|
template: item,
|
|
@@ -96,8 +97,12 @@ var BottomNavigationItemVue2 = {
|
|
|
96
97
|
}, [this.$props.item ? content : [icon && h(Icon, {
|
|
97
98
|
name: icon,
|
|
98
99
|
attrs: this.v3 ? undefined : {
|
|
99
|
-
name: icon
|
|
100
|
+
name: icon,
|
|
101
|
+
icon: svgIcon,
|
|
102
|
+
size: 'xlarge'
|
|
100
103
|
},
|
|
104
|
+
icon: svgIcon,
|
|
105
|
+
size: 'xlarge',
|
|
101
106
|
"class": "k-bottom-nav-item-icon"
|
|
102
107
|
}), text && h("span", {
|
|
103
108
|
"class": 'k-bottom-nav-item-text',
|
|
@@ -37,6 +37,10 @@ export interface BottomNavigationProps {
|
|
|
37
37
|
* * `flat`(Default) — Sets the theme color as the text color. The background will be white.
|
|
38
38
|
* * `solid` — Sets the theme color as a background color.
|
|
39
39
|
*/
|
|
40
|
+
fillMode?: BottomNavigationFill | string;
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
40
44
|
fill?: BottomNavigationFill | string;
|
|
41
45
|
/**
|
|
42
46
|
* Specifies the position and behavior of the BottomNavigation when the page is scrolled
|
|
@@ -72,20 +72,20 @@ declare let DrawerContentVue2: ComponentOptions<DrawerContentAll, DefaultData<Dr
|
|
|
72
72
|
* items: [
|
|
73
73
|
* {
|
|
74
74
|
* text: "Inbox",
|
|
75
|
-
* icon: "
|
|
75
|
+
* icon: "inbox",
|
|
76
76
|
* selected: true,
|
|
77
77
|
* },
|
|
78
78
|
* {
|
|
79
79
|
* text: "Calendar",
|
|
80
|
-
* icon: "
|
|
80
|
+
* icon: "calendar",
|
|
81
81
|
* },
|
|
82
82
|
* {
|
|
83
83
|
* text: "Attachments",
|
|
84
|
-
* icon: "
|
|
84
|
+
* icon: "hyperlink-email",
|
|
85
85
|
* },
|
|
86
86
|
* {
|
|
87
87
|
* text: "Favourites",
|
|
88
|
-
* icon: "
|
|
88
|
+
* icon: "star-outline",
|
|
89
89
|
* },
|
|
90
90
|
* ],
|
|
91
91
|
* expanded: true,
|
|
@@ -63,20 +63,20 @@ var DrawerContentVue2 = {
|
|
|
63
63
|
* items: [
|
|
64
64
|
* {
|
|
65
65
|
* text: "Inbox",
|
|
66
|
-
* icon: "
|
|
66
|
+
* icon: "inbox",
|
|
67
67
|
* selected: true,
|
|
68
68
|
* },
|
|
69
69
|
* {
|
|
70
70
|
* text: "Calendar",
|
|
71
|
-
* icon: "
|
|
71
|
+
* icon: "calendar",
|
|
72
72
|
* },
|
|
73
73
|
* {
|
|
74
74
|
* text: "Attachments",
|
|
75
|
-
* icon: "
|
|
75
|
+
* icon: "hyperlink-email",
|
|
76
76
|
* },
|
|
77
77
|
* {
|
|
78
78
|
* text: "Favourites",
|
|
79
|
-
* icon: "
|
|
79
|
+
* icon: "star-outline",
|
|
80
80
|
* },
|
|
81
81
|
* ],
|
|
82
82
|
* expanded: true,
|
|
@@ -15,7 +15,7 @@ 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, Icon } from '@progress/kendo-vue-common';
|
|
18
|
+
import { getTabIndex, getDefaultSlots, Icon, getIconName } from '@progress/kendo-vue-common';
|
|
19
19
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
20
20
|
import { separatorAriaMessage, messages } from '../messages/main';
|
|
21
21
|
/**
|
|
@@ -31,6 +31,7 @@ var DrawerItemVue2 = {
|
|
|
31
31
|
index: Number,
|
|
32
32
|
text: String,
|
|
33
33
|
icon: String,
|
|
34
|
+
svgIcon: Object,
|
|
34
35
|
separator: Boolean,
|
|
35
36
|
selected: Boolean,
|
|
36
37
|
disabled: Boolean,
|
|
@@ -70,6 +71,7 @@ var DrawerItemVue2 = {
|
|
|
70
71
|
var _a = this.$props,
|
|
71
72
|
text = _a.text,
|
|
72
73
|
icon = _a.icon,
|
|
74
|
+
svgIcon = _a.svgIcon,
|
|
73
75
|
separator = _a.separator,
|
|
74
76
|
disabled = _a.disabled,
|
|
75
77
|
selected = _a.selected,
|
|
@@ -79,7 +81,6 @@ var DrawerItemVue2 = {
|
|
|
79
81
|
mini = _b.mini,
|
|
80
82
|
item = _b.item;
|
|
81
83
|
var ariaLabelSeparator = provideLocalizationService(this).toLanguageString(separatorAriaMessage, messages[separatorAriaMessage]);
|
|
82
|
-
var iconName = icon && icon.indexOf('k-i-') !== -1 ? icon.split('k-i-')[1] : icon;
|
|
83
84
|
return separator ? h("li", {
|
|
84
85
|
"class": 'k-drawer-item k-drawer-separator',
|
|
85
86
|
role: "separator",
|
|
@@ -106,11 +107,13 @@ var DrawerItemVue2 = {
|
|
|
106
107
|
"click": this.handleClick
|
|
107
108
|
},
|
|
108
109
|
tabindex: getTabIndex(tabIndex, disabled)
|
|
109
|
-
}, [!item ? [icon && h(Icon, {
|
|
110
|
-
name:
|
|
110
|
+
}, [!item ? [(icon || svgIcon) && h(Icon, {
|
|
111
|
+
name: getIconName(icon),
|
|
111
112
|
attrs: this.v3 ? undefined : {
|
|
112
|
-
name:
|
|
113
|
-
|
|
113
|
+
name: getIconName(icon),
|
|
114
|
+
icon: svgIcon
|
|
115
|
+
},
|
|
116
|
+
icon: svgIcon
|
|
114
117
|
}), !expanded && mini ? null : h("span", {
|
|
115
118
|
"class": 'k-item-text'
|
|
116
119
|
}, [text])] : defaultSlot]);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
1
2
|
/**
|
|
2
3
|
* An interface for the Drawer items.
|
|
3
4
|
*/
|
|
@@ -11,6 +12,10 @@ export interface DrawerItemProps {
|
|
|
11
12
|
* The icon is rendered inside the Drawer item by a `span.k-icon` element.
|
|
12
13
|
*/
|
|
13
14
|
icon?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Defines an SVGIcon to be rendered within the Drawer item.
|
|
17
|
+
*/
|
|
18
|
+
svgIcon?: SVGIcon;
|
|
14
19
|
/**
|
|
15
20
|
* Specifies if the Drawer item is initially selected.
|
|
16
21
|
*/
|
|
@@ -3,7 +3,8 @@ 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, Icon } from '@progress/kendo-vue-common';
|
|
6
|
+
import { getTabIndex, validatePackage, Keys, getDefaultSlots, templateRendering, getListeners, getTemplate, Icon, getIconName } from '@progress/kendo-vue-common';
|
|
7
|
+
import { chevronUpIcon, chevronDownIcon } from '@progress/kendo-svg-icons';
|
|
7
8
|
import { packageMetadata } from '../package-metadata';
|
|
8
9
|
/**
|
|
9
10
|
* @hidden
|
|
@@ -19,7 +20,9 @@ var ExpansionPanelVue2 = {
|
|
|
19
20
|
titleRender: [String, Object, Function],
|
|
20
21
|
subtitleRender: [String, Object, Function],
|
|
21
22
|
expandIcon: String,
|
|
23
|
+
expandSvgIcon: Object,
|
|
22
24
|
collapseIcon: String,
|
|
25
|
+
collapseSvgIcon: Object,
|
|
23
26
|
expanded: Boolean,
|
|
24
27
|
disabled: Boolean
|
|
25
28
|
},
|
|
@@ -43,15 +46,14 @@ var ExpansionPanelVue2 = {
|
|
|
43
46
|
expanded = _a.expanded,
|
|
44
47
|
expandIcon = _a.expandIcon,
|
|
45
48
|
collapseIcon = _a.collapseIcon;
|
|
46
|
-
return
|
|
49
|
+
return expanded ? expandIcon ? getIconName(expandIcon) : 'chevron-up' : collapseIcon ? getIconName(collapseIcon) : 'chevron-down';
|
|
47
50
|
},
|
|
48
|
-
|
|
49
|
-
var _a
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return _a = {}, _a[expandIcon] = !expanded && Boolean(expandIcon), _a[collapseIcon] = expanded && Boolean(collapseIcon), _a;
|
|
51
|
+
expandSVGIcon: function expandSVGIcon() {
|
|
52
|
+
var _a = this.$props,
|
|
53
|
+
expanded = _a.expanded,
|
|
54
|
+
expandSvgIcon = _a.expandSvgIcon,
|
|
55
|
+
collapseSvgIcon = _a.collapseSvgIcon;
|
|
56
|
+
return expanded ? expandSvgIcon || chevronUpIcon : collapseSvgIcon || chevronDownIcon;
|
|
55
57
|
}
|
|
56
58
|
},
|
|
57
59
|
data: function data() {
|
|
@@ -138,9 +140,10 @@ var ExpansionPanelVue2 = {
|
|
|
138
140
|
}, [h(Icon, {
|
|
139
141
|
name: this.expandIconName,
|
|
140
142
|
attrs: this.v3 ? undefined : {
|
|
141
|
-
name: this.expandIconName
|
|
143
|
+
name: this.expandIconName,
|
|
144
|
+
icon: this.expandSVGIcon
|
|
142
145
|
},
|
|
143
|
-
|
|
146
|
+
icon: this.expandSVGIcon
|
|
144
147
|
})])]), defaultSlots]);
|
|
145
148
|
},
|
|
146
149
|
methods: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
1
2
|
/**
|
|
2
3
|
* The ExpansionPanel ref.
|
|
3
4
|
*/
|
|
@@ -48,10 +49,18 @@ export interface ExpansionPanelProps {
|
|
|
48
49
|
* Sets a custom icon via css class(es), for the expanded state of the ExpansionPanel.
|
|
49
50
|
*/
|
|
50
51
|
expandIcon?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Defines an SVGIcon to be rendered within the expand arrow.
|
|
54
|
+
*/
|
|
55
|
+
expandSvgIcon?: SVGIcon;
|
|
51
56
|
/**
|
|
52
57
|
* Sets a custom icon via css class(es), for the collapsed state of the ExpansionPanel.
|
|
53
58
|
*/
|
|
54
59
|
collapseIcon?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Defines an SVGIcon to be rendered within the collapse arrow.
|
|
62
|
+
*/
|
|
63
|
+
collapseSvgIcon?: SVGIcon;
|
|
55
64
|
/**
|
|
56
65
|
* Sets the `dir` property of the ExpansionPanel.
|
|
57
66
|
*/
|
|
@@ -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: 1684827726,
|
|
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
|
};
|
|
@@ -47,6 +47,7 @@ var PanelBarItemVue2 = {
|
|
|
47
47
|
iconClass: String,
|
|
48
48
|
imageUrl: String,
|
|
49
49
|
icon: String,
|
|
50
|
+
svgIcon: Object,
|
|
50
51
|
content: Object,
|
|
51
52
|
header: Object
|
|
52
53
|
},
|
|
@@ -70,6 +71,7 @@ var PanelBarItemVue2 = {
|
|
|
70
71
|
id = _b.id,
|
|
71
72
|
item = _b.item,
|
|
72
73
|
icon = _b.icon,
|
|
74
|
+
svgIcon = _b.svgIcon,
|
|
73
75
|
items = _b.items,
|
|
74
76
|
content = _b.content,
|
|
75
77
|
title = _b.title,
|
|
@@ -108,13 +110,15 @@ var PanelBarItemVue2 = {
|
|
|
108
110
|
"class": 'k-panelbar-item-icon k-image',
|
|
109
111
|
src: this.imageUrl
|
|
110
112
|
});
|
|
111
|
-
} else if (icon) {
|
|
113
|
+
} else if (icon || svgIcon) {
|
|
112
114
|
return h(Icon, {
|
|
113
115
|
name: icon,
|
|
114
116
|
attrs: this.v3 ? undefined : {
|
|
115
|
-
name: icon
|
|
117
|
+
name: icon,
|
|
118
|
+
icon: svgIcon
|
|
116
119
|
},
|
|
117
|
-
"class": 'k-panelbar-item-icon'
|
|
120
|
+
"class": 'k-panelbar-item-icon',
|
|
121
|
+
icon: svgIcon
|
|
118
122
|
});
|
|
119
123
|
} else if (this.iconClass) {
|
|
120
124
|
return h(Icon, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
1
2
|
/**
|
|
2
3
|
* Represents the props of the PanelBarItem component.
|
|
3
4
|
*/
|
|
@@ -30,6 +31,10 @@ export interface PanelBarItemProps {
|
|
|
30
31
|
* Defines an icon that will be rendered next to the title ([see example]({% slug titlesitems_panelbar %}#toc-adding-icons)).
|
|
31
32
|
*/
|
|
32
33
|
icon?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Defines an SVGIcon to be rendered next to the title.
|
|
36
|
+
*/
|
|
37
|
+
svgIcon?: SVGIcon;
|
|
33
38
|
/**
|
|
34
39
|
* Defines an icon with a custom CSS class that will be rendered next to the title ([see example]({% slug titlesitems_panelbar %}#toc-adding-icons)).
|
|
35
40
|
*/
|
|
@@ -17,7 +17,7 @@ var gh = allVue.h;
|
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
18
|
import { SplitterPane } from './SplitterPane';
|
|
19
19
|
import { SplitterBar } from './SplitterBar';
|
|
20
|
-
import { classNames, getListeners, templateRendering } from '@progress/kendo-vue-common';
|
|
20
|
+
import { classNames, getListeners, isRtl, templateRendering } from '@progress/kendo-vue-common';
|
|
21
21
|
import { validatePackage } from '@progress/kendo-vue-common';
|
|
22
22
|
import { packageMetadata } from '../package-metadata';
|
|
23
23
|
/**
|
|
@@ -49,6 +49,9 @@ var SplitterVue2 = {
|
|
|
49
49
|
panes: Array,
|
|
50
50
|
defaultPanes: Array
|
|
51
51
|
},
|
|
52
|
+
mounted: function mounted() {
|
|
53
|
+
this.currentRtl = isRtl(this.$el);
|
|
54
|
+
},
|
|
52
55
|
// @ts-ignore
|
|
53
56
|
emits: {
|
|
54
57
|
change: null
|
|
@@ -61,9 +64,6 @@ var SplitterVue2 = {
|
|
|
61
64
|
// return this.panesDuringOnChange !== undefined ?
|
|
62
65
|
// this.panesDuringOnChange :
|
|
63
66
|
return this.isControlledState ? this.$props.panes : this.currentPanes;
|
|
64
|
-
},
|
|
65
|
-
isRtl: function isRtl() {
|
|
66
|
-
return this.$el && getComputedStyle(this.$el).direction === 'rtl' || false;
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
created: function created() {
|
|
@@ -73,6 +73,7 @@ var SplitterVue2 = {
|
|
|
73
73
|
|
|
74
74
|
data: function data() {
|
|
75
75
|
return {
|
|
76
|
+
currentRtl: false,
|
|
76
77
|
isDragging: false,
|
|
77
78
|
dragIndex: undefined,
|
|
78
79
|
startTime: 0,
|
|
@@ -111,7 +112,8 @@ var SplitterVue2 = {
|
|
|
111
112
|
index: index,
|
|
112
113
|
orientation: this.orientation,
|
|
113
114
|
prev: pane,
|
|
114
|
-
next: next
|
|
115
|
+
next: next,
|
|
116
|
+
isRtl: this.currentRtl
|
|
115
117
|
},
|
|
116
118
|
orientation: this.orientation,
|
|
117
119
|
prev: pane,
|
|
@@ -123,7 +125,8 @@ var SplitterVue2 = {
|
|
|
123
125
|
"keyboardresize": this.onBarKeyboardResize
|
|
124
126
|
},
|
|
125
127
|
onToggle: this.onBarToggle,
|
|
126
|
-
onKeyboardresize: this.onBarKeyboardResize
|
|
128
|
+
onKeyboardresize: this.onBarKeyboardResize,
|
|
129
|
+
isRtl: this.currentRtl
|
|
127
130
|
});
|
|
128
131
|
}
|
|
129
132
|
var splitterPane = h(SplitterPane, {
|
|
@@ -235,7 +238,7 @@ var SplitterVue2 = {
|
|
|
235
238
|
var delta;
|
|
236
239
|
if (this.orientation === 'vertical') {
|
|
237
240
|
delta = pageY - originalY;
|
|
238
|
-
} else if (this.
|
|
241
|
+
} else if (this.currentRtl) {
|
|
239
242
|
delta = originalX - pageX;
|
|
240
243
|
} else {
|
|
241
244
|
delta = pageX - originalX;
|
|
@@ -12,9 +12,7 @@ export interface SplitterBarProps {
|
|
|
12
12
|
index: number;
|
|
13
13
|
prev: SplitterPaneExtendedProps;
|
|
14
14
|
next: SplitterPaneExtendedProps;
|
|
15
|
-
|
|
16
|
-
onToggle?: (index: number, nativeEvent: any) => void;
|
|
17
|
-
onKeyboardResize?: (element: HTMLDivElement, index: number, delta: number, nativeEvent: any) => void;
|
|
15
|
+
isRtl?: boolean;
|
|
18
16
|
}
|
|
19
17
|
/**
|
|
20
18
|
* @hidden
|
|
@@ -28,7 +28,8 @@ var SplitterBarVue2 = {
|
|
|
28
28
|
},
|
|
29
29
|
index: Number,
|
|
30
30
|
prev: Object,
|
|
31
|
-
next: Object
|
|
31
|
+
next: Object,
|
|
32
|
+
isRtl: Boolean
|
|
32
33
|
},
|
|
33
34
|
created: function created() {
|
|
34
35
|
this.draggable = null;
|
|
@@ -151,9 +152,11 @@ var SplitterBarVue2 = {
|
|
|
151
152
|
name: previousArrowName,
|
|
152
153
|
attrs: _this2.v3 ? undefined : {
|
|
153
154
|
name: previousArrowName,
|
|
154
|
-
icon: previousArrowSVG
|
|
155
|
+
icon: previousArrowSVG,
|
|
156
|
+
size: 'xsmall'
|
|
155
157
|
},
|
|
156
|
-
icon: previousArrowSVG
|
|
158
|
+
icon: previousArrowSVG,
|
|
159
|
+
size: 'xsmall'
|
|
157
160
|
})]), h("div", {
|
|
158
161
|
"class": 'k-resize-handle'
|
|
159
162
|
}), _this2.next.collapsible && h("span", {
|
|
@@ -166,9 +169,11 @@ var SplitterBarVue2 = {
|
|
|
166
169
|
name: nextArrowName,
|
|
167
170
|
attrs: _this2.v3 ? undefined : {
|
|
168
171
|
name: nextArrowName,
|
|
169
|
-
icon: nextArrowSVG
|
|
172
|
+
icon: nextArrowSVG,
|
|
173
|
+
size: 'xsmall'
|
|
170
174
|
},
|
|
171
|
-
icon: nextArrowSVG
|
|
175
|
+
icon: nextArrowSVG,
|
|
176
|
+
size: 'xsmall'
|
|
172
177
|
})])])];
|
|
173
178
|
} : [h("div", {
|
|
174
179
|
tabindex: isStatic ? -1 : 0,
|
|
@@ -205,9 +210,11 @@ var SplitterBarVue2 = {
|
|
|
205
210
|
name: previousArrowName,
|
|
206
211
|
attrs: _this2.v3 ? undefined : {
|
|
207
212
|
name: previousArrowName,
|
|
208
|
-
icon: previousArrowSVG
|
|
213
|
+
icon: previousArrowSVG,
|
|
214
|
+
size: 'xsmall'
|
|
209
215
|
},
|
|
210
|
-
icon: previousArrowSVG
|
|
216
|
+
icon: previousArrowSVG,
|
|
217
|
+
size: 'xsmall'
|
|
211
218
|
})]), h("div", {
|
|
212
219
|
"class": 'k-resize-handle'
|
|
213
220
|
}), _this2.next.collapsible && h("span", {
|
|
@@ -220,9 +227,11 @@ var SplitterBarVue2 = {
|
|
|
220
227
|
name: nextArrowName,
|
|
221
228
|
attrs: _this2.v3 ? undefined : {
|
|
222
229
|
name: nextArrowName,
|
|
223
|
-
icon: nextArrowSVG
|
|
230
|
+
icon: nextArrowSVG,
|
|
231
|
+
size: 'xsmall'
|
|
224
232
|
},
|
|
225
|
-
icon: nextArrowSVG
|
|
233
|
+
icon: nextArrowSVG,
|
|
234
|
+
size: 'xsmall'
|
|
226
235
|
})])])])
|
|
227
236
|
);
|
|
228
237
|
},
|
|
@@ -300,22 +309,22 @@ var SplitterBarVue2 = {
|
|
|
300
309
|
previousArrowName: function previousArrowName(isHorizontal) {
|
|
301
310
|
var prev = this.$props.prev;
|
|
302
311
|
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' : '';
|
|
312
|
+
return isHorizontal && !isCollapsed ? this.isRtl ? 'caret-alt-right' : 'caret-alt-left' : isHorizontal && isCollapsed ? this.isRtl ? 'caret-alt-left' : 'caret-alt-right' : !isHorizontal && !isCollapsed ? 'caret-alt-up' : !isHorizontal && isCollapsed ? 'caret-alt-down' : '';
|
|
304
313
|
},
|
|
305
314
|
previousArrowSVG: function previousArrowSVG(isHorizontal) {
|
|
306
315
|
var prev = this.$props.prev;
|
|
307
316
|
var isCollapsed = prev.collapsed;
|
|
308
|
-
return isHorizontal && !isCollapsed ? caretAltLeftIcon : isHorizontal && isCollapsed ? caretAltRightIcon : !isHorizontal && !isCollapsed ? caretAltUpIcon : !isHorizontal && isCollapsed ? caretAltDownIcon : undefined;
|
|
317
|
+
return isHorizontal && !isCollapsed ? this.isRtl ? caretAltRightIcon : caretAltLeftIcon : isHorizontal && isCollapsed ? this.isRtl ? caretAltLeftIcon : caretAltRightIcon : !isHorizontal && !isCollapsed ? caretAltUpIcon : !isHorizontal && isCollapsed ? caretAltDownIcon : undefined;
|
|
309
318
|
},
|
|
310
319
|
nextArrowName: function nextArrowName(isHorizontal) {
|
|
311
320
|
var next = this.$props.next;
|
|
312
321
|
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' : '';
|
|
322
|
+
return isHorizontal && !isCollapsed ? this.isRtl ? 'caret-alt-left' : 'caret-alt-right' : isHorizontal && isCollapsed ? this.isRtl ? 'caret-alt-right' : 'caret-alt-left' : !isHorizontal && !isCollapsed ? 'caret-alt-down' : !isHorizontal && isCollapsed ? 'caret-alt-up' : '';
|
|
314
323
|
},
|
|
315
324
|
nextArrowSVG: function nextArrowSVG(isHorizontal) {
|
|
316
325
|
var next = this.$props.next;
|
|
317
326
|
var isCollapsed = next.collapsed;
|
|
318
|
-
return isHorizontal && !isCollapsed ? caretAltRightIcon : isHorizontal && isCollapsed ? caretAltLeftIcon : !isHorizontal && !isCollapsed ? caretAltDownIcon : !isHorizontal && isCollapsed ? caretAltUpIcon : undefined;
|
|
327
|
+
return isHorizontal && !isCollapsed ? this.isRtl ? caretAltLeftIcon : caretAltRightIcon : isHorizontal && isCollapsed ? this.isRtl ? caretAltRightIcon : caretAltLeftIcon : !isHorizontal && !isCollapsed ? caretAltDownIcon : !isHorizontal && isCollapsed ? caretAltUpIcon : undefined;
|
|
319
328
|
}
|
|
320
329
|
}
|
|
321
330
|
};
|
package/dist/es/stepper/Step.js
CHANGED
|
@@ -4,8 +4,9 @@ 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, Icon } from '@progress/kendo-vue-common';
|
|
7
|
+
import { focusFirstFocusableChild, getDefaultSlots, getIconName, Icon } from '@progress/kendo-vue-common';
|
|
8
8
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
9
|
+
import { exclamationCircleIcon, checkOutlineIcon } from '@progress/kendo-svg-icons';
|
|
9
10
|
import { DEFAULT_ANIMATION_DURATION, NO_ANIMATION } from './contants';
|
|
10
11
|
import { messages, optionalText } from './messages/main';
|
|
11
12
|
/**
|
|
@@ -17,8 +18,12 @@ var StepVue2 = {
|
|
|
17
18
|
current: Boolean,
|
|
18
19
|
disabled: Boolean,
|
|
19
20
|
icon: String,
|
|
21
|
+
svgIcon: Object,
|
|
20
22
|
index: Number,
|
|
21
|
-
isValid:
|
|
23
|
+
isValid: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: undefined
|
|
26
|
+
},
|
|
22
27
|
focused: Boolean,
|
|
23
28
|
label: String,
|
|
24
29
|
optional: Boolean,
|
|
@@ -35,7 +40,9 @@ var StepVue2 = {
|
|
|
35
40
|
numOfSteps: Number,
|
|
36
41
|
value: Number,
|
|
37
42
|
successIcon: String,
|
|
38
|
-
|
|
43
|
+
successSvgIcon: Object,
|
|
44
|
+
errorIcon: String,
|
|
45
|
+
errorSvgIcon: Object
|
|
39
46
|
},
|
|
40
47
|
inject: {
|
|
41
48
|
kendoLocalizationService: {
|
|
@@ -99,6 +106,7 @@ var StepVue2 = {
|
|
|
99
106
|
disabled = _a.disabled,
|
|
100
107
|
focused = _a.focused,
|
|
101
108
|
icon = _a.icon,
|
|
109
|
+
svgIcon = _a.svgIcon,
|
|
102
110
|
index = _a.index,
|
|
103
111
|
isValid = _a.isValid,
|
|
104
112
|
label = _a.label,
|
|
@@ -111,22 +119,29 @@ var StepVue2 = {
|
|
|
111
119
|
mode = _a.mode,
|
|
112
120
|
value = _a.value,
|
|
113
121
|
successIcon = _a.successIcon,
|
|
114
|
-
|
|
122
|
+
successSvgIcon = _a.successSvgIcon,
|
|
123
|
+
errorIcon = _a.errorIcon,
|
|
124
|
+
errorSvgIcon = _a.errorSvgIcon;
|
|
115
125
|
var allowClick = !linear || index === value - 1 || index === value || index === value + 1;
|
|
116
|
-
var isInLabel = mode === 'labels' || Boolean(icon) && Boolean(label);
|
|
126
|
+
var isInLabel = mode === 'labels' || (Boolean(icon) || Boolean(svgIcon)) && Boolean(label);
|
|
117
127
|
var localizationService = provideLocalizationService(this);
|
|
118
128
|
var localizeMessage = function localizeMessage(message) {
|
|
119
129
|
return localizationService.toLanguageString(message, messages[message]);
|
|
120
130
|
};
|
|
121
131
|
var optionalMessage = localizeMessage(optionalText);
|
|
122
132
|
var progressAnimation = typeof animationDuration === 'number' ? animationDuration : animationDuration !== false ? DEFAULT_ANIMATION_DURATION : NO_ANIMATION;
|
|
123
|
-
var
|
|
133
|
+
var validationIconNames = isValid ? successIcon || 'check-circle' : errorIcon || 'exclamation-circle';
|
|
134
|
+
var validationSvgIcon = isValid ? successSvgIcon || checkOutlineIcon : errorSvgIcon || exclamationCircleIcon;
|
|
124
135
|
var validationIcons = h(Icon, {
|
|
125
|
-
"class": 'k-step-indicator-icon
|
|
126
|
-
|
|
136
|
+
"class": 'k-step-indicator-icon',
|
|
137
|
+
name: getIconName(validationIconNames),
|
|
127
138
|
attrs: this.v3 ? undefined : {
|
|
139
|
+
name: getIconName(validationIconNames),
|
|
140
|
+
icon: validationSvgIcon,
|
|
128
141
|
"aria-hidden": "true"
|
|
129
|
-
}
|
|
142
|
+
},
|
|
143
|
+
icon: validationSvgIcon,
|
|
144
|
+
"aria-hidden": "true"
|
|
130
145
|
});
|
|
131
146
|
var stepIndicator = function stepIndicator() {
|
|
132
147
|
return mode !== 'labels' ? h("span", {
|
|
@@ -138,8 +153,14 @@ var StepVue2 = {
|
|
|
138
153
|
style: {
|
|
139
154
|
transitionDuration: progressAnimation + 'ms'
|
|
140
155
|
}
|
|
141
|
-
}, [icon ? !isInLabel && isValid !== undefined ? validationIcons : h(
|
|
142
|
-
"class": "k-step-indicator-icon
|
|
156
|
+
}, [icon || svgIcon ? !isInLabel && isValid !== undefined ? validationIcons : h(Icon, {
|
|
157
|
+
"class": "k-step-indicator-icon",
|
|
158
|
+
name: icon,
|
|
159
|
+
attrs: this.v3 ? undefined : {
|
|
160
|
+
name: icon,
|
|
161
|
+
icon: svgIcon
|
|
162
|
+
},
|
|
163
|
+
icon: svgIcon
|
|
143
164
|
}) : isValid !== undefined ? validationIcons : h("span", {
|
|
144
165
|
"class": "k-step-indicator-text"
|
|
145
166
|
}, [text ? text : index + 1])]) : null;
|
|
@@ -61,24 +61,24 @@ declare let StepperVue2: ComponentOptions<StepperAll, DefaultData<StepperData>,
|
|
|
61
61
|
* items: [
|
|
62
62
|
* {
|
|
63
63
|
* label: "Cart",
|
|
64
|
-
* icon: "
|
|
64
|
+
* icon: "cart",
|
|
65
65
|
* },
|
|
66
66
|
* {
|
|
67
67
|
* label: "Delivery Address",
|
|
68
|
-
* icon: "
|
|
68
|
+
* icon: "marker-pin-target",
|
|
69
69
|
* },
|
|
70
70
|
* {
|
|
71
71
|
* label: "Payment Method",
|
|
72
|
-
* icon: "
|
|
72
|
+
* icon: "dollar",
|
|
73
73
|
* },
|
|
74
74
|
* {
|
|
75
75
|
* label: "Preview",
|
|
76
|
-
* icon: "
|
|
76
|
+
* icon: "preview",
|
|
77
77
|
* optional: true,
|
|
78
78
|
* },
|
|
79
79
|
* {
|
|
80
80
|
* label: "Finish Order",
|
|
81
|
-
* icon: "
|
|
81
|
+
* icon: "track-changes-accept",
|
|
82
82
|
* },
|
|
83
83
|
* ]
|
|
84
84
|
* }
|
|
@@ -411,24 +411,24 @@ var StepperVue2 = {
|
|
|
411
411
|
* items: [
|
|
412
412
|
* {
|
|
413
413
|
* label: "Cart",
|
|
414
|
-
* icon: "
|
|
414
|
+
* icon: "cart",
|
|
415
415
|
* },
|
|
416
416
|
* {
|
|
417
417
|
* label: "Delivery Address",
|
|
418
|
-
* icon: "
|
|
418
|
+
* icon: "marker-pin-target",
|
|
419
419
|
* },
|
|
420
420
|
* {
|
|
421
421
|
* label: "Payment Method",
|
|
422
|
-
* icon: "
|
|
422
|
+
* icon: "dollar",
|
|
423
423
|
* },
|
|
424
424
|
* {
|
|
425
425
|
* label: "Preview",
|
|
426
|
-
* icon: "
|
|
426
|
+
* icon: "preview",
|
|
427
427
|
* optional: true,
|
|
428
428
|
* },
|
|
429
429
|
* {
|
|
430
430
|
* label: "Finish Order",
|
|
431
|
-
* icon: "
|
|
431
|
+
* icon: "track-changes-accept",
|
|
432
432
|
* },
|
|
433
433
|
* ]
|
|
434
434
|
* }
|