@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
|
@@ -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
|
* }
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
1
2
|
/**
|
|
2
3
|
* Represents the props of the [Kendo UI for Vue Step component]({% slug overview_stepper %}).
|
|
3
4
|
*/
|
|
@@ -31,6 +32,26 @@ export interface StepProps {
|
|
|
31
32
|
* ([see example]({% slug display_modes_stepper %})).
|
|
32
33
|
*/
|
|
33
34
|
icon?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Defines an SVGIcon to be rendered within the Step.
|
|
37
|
+
*/
|
|
38
|
+
svgIcon?: SVGIcon;
|
|
39
|
+
/**
|
|
40
|
+
* Defines the name for an success icon in a Kendo UI for Vue theme.
|
|
41
|
+
*/
|
|
42
|
+
successIcon: String;
|
|
43
|
+
/**
|
|
44
|
+
* Defines an success SVGIcon to be rendered within the Step.
|
|
45
|
+
*/
|
|
46
|
+
successSvgIcon: Object;
|
|
47
|
+
/**
|
|
48
|
+
* Defines the name for an error icon in a Kendo UI for Vue theme.
|
|
49
|
+
*/
|
|
50
|
+
errorIcon: String;
|
|
51
|
+
/**
|
|
52
|
+
* Defines an error SVGIcon to be rendered within the Step.
|
|
53
|
+
*/
|
|
54
|
+
errorSvgIcon: Object;
|
|
34
55
|
/**
|
|
35
56
|
* Sets the index of the Step that is used to identify it.
|
|
36
57
|
*/
|
|
@@ -39,6 +39,13 @@ var BottomNavigationVue2 = {
|
|
|
39
39
|
return ['solid', 'flat'].includes(value);
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
+
fillMode: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: 'flat',
|
|
45
|
+
validator: function validator(value) {
|
|
46
|
+
return ['solid', 'flat'].includes(value);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
42
49
|
item: [String, Object, Function],
|
|
43
50
|
items: Array,
|
|
44
51
|
itemFlow: {
|
|
@@ -71,11 +78,12 @@ var BottomNavigationVue2 = {
|
|
|
71
78
|
var _a;
|
|
72
79
|
var _b = this.$props,
|
|
73
80
|
themeColor = _b.themeColor,
|
|
74
|
-
|
|
81
|
+
fillMode = _b.fillMode,
|
|
75
82
|
positionMode = _b.positionMode,
|
|
76
83
|
itemFlow = _b.itemFlow,
|
|
77
84
|
border = _b.border,
|
|
78
85
|
disabled = _b.disabled;
|
|
86
|
+
var fill = fillMode !== undefined ? fillMode : this.$props.fill;
|
|
79
87
|
return _a = {
|
|
80
88
|
'k-bottom-nav': true
|
|
81
89
|
}, _a[utils_1.POSITION_MODE_CLASSES[positionMode]] = true, _a[utils_1.THEME_COLOR_CLASSES[themeColor]] = true, _a[utils_1.FILL_CLASSES[fill]] = true, _a[utils_1.ITEM_FLOW_CLASSES[itemFlow]] = true, _a['k-bottom-nav-border'] = border, _a['k-disabled'] = disabled, _a;
|
|
@@ -69,7 +69,8 @@ var BottomNavigationItemVue2 = {
|
|
|
69
69
|
index = _a.index,
|
|
70
70
|
tabIndex = _a.tabIndex;
|
|
71
71
|
var icon = dataItem.icon,
|
|
72
|
-
text = dataItem.text
|
|
72
|
+
text = dataItem.text,
|
|
73
|
+
svgIcon = dataItem.svgIcon;
|
|
73
74
|
var content = kendo_vue_common_1.getTemplate.call(this, {
|
|
74
75
|
h: h,
|
|
75
76
|
template: item,
|
|
@@ -102,8 +103,12 @@ var BottomNavigationItemVue2 = {
|
|
|
102
103
|
}, [this.$props.item ? content : [icon && h(kendo_vue_common_1.Icon, {
|
|
103
104
|
name: icon,
|
|
104
105
|
attrs: this.v3 ? undefined : {
|
|
105
|
-
name: icon
|
|
106
|
+
name: icon,
|
|
107
|
+
icon: svgIcon,
|
|
108
|
+
size: 'xlarge'
|
|
106
109
|
},
|
|
110
|
+
icon: svgIcon,
|
|
111
|
+
size: 'xlarge',
|
|
107
112
|
"class": "k-bottom-nav-item-icon"
|
|
108
113
|
}), text && h("span", {
|
|
109
114
|
"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,
|
|
@@ -70,20 +70,20 @@ exports.DrawerContentVue2 = DrawerContentVue2;
|
|
|
70
70
|
* items: [
|
|
71
71
|
* {
|
|
72
72
|
* text: "Inbox",
|
|
73
|
-
* icon: "
|
|
73
|
+
* icon: "inbox",
|
|
74
74
|
* selected: true,
|
|
75
75
|
* },
|
|
76
76
|
* {
|
|
77
77
|
* text: "Calendar",
|
|
78
|
-
* icon: "
|
|
78
|
+
* icon: "calendar",
|
|
79
79
|
* },
|
|
80
80
|
* {
|
|
81
81
|
* text: "Attachments",
|
|
82
|
-
* icon: "
|
|
82
|
+
* icon: "hyperlink-email",
|
|
83
83
|
* },
|
|
84
84
|
* {
|
|
85
85
|
* text: "Favourites",
|
|
86
|
-
* icon: "
|
|
86
|
+
* icon: "star-outline",
|
|
87
87
|
* },
|
|
88
88
|
* ],
|
|
89
89
|
* expanded: true,
|
|
@@ -37,6 +37,7 @@ var DrawerItemVue2 = {
|
|
|
37
37
|
index: Number,
|
|
38
38
|
text: String,
|
|
39
39
|
icon: String,
|
|
40
|
+
svgIcon: Object,
|
|
40
41
|
separator: Boolean,
|
|
41
42
|
selected: Boolean,
|
|
42
43
|
disabled: Boolean,
|
|
@@ -76,6 +77,7 @@ var DrawerItemVue2 = {
|
|
|
76
77
|
var _a = this.$props,
|
|
77
78
|
text = _a.text,
|
|
78
79
|
icon = _a.icon,
|
|
80
|
+
svgIcon = _a.svgIcon,
|
|
79
81
|
separator = _a.separator,
|
|
80
82
|
disabled = _a.disabled,
|
|
81
83
|
selected = _a.selected,
|
|
@@ -85,7 +87,6 @@ var DrawerItemVue2 = {
|
|
|
85
87
|
mini = _b.mini,
|
|
86
88
|
item = _b.item;
|
|
87
89
|
var ariaLabelSeparator = (0, kendo_vue_intl_1.provideLocalizationService)(this).toLanguageString(main_1.separatorAriaMessage, main_1.messages[main_1.separatorAriaMessage]);
|
|
88
|
-
var iconName = icon && icon.indexOf('k-i-') !== -1 ? icon.split('k-i-')[1] : icon;
|
|
89
90
|
return separator ? h("li", {
|
|
90
91
|
"class": 'k-drawer-item k-drawer-separator',
|
|
91
92
|
role: "separator",
|
|
@@ -112,11 +113,13 @@ var DrawerItemVue2 = {
|
|
|
112
113
|
"click": this.handleClick
|
|
113
114
|
},
|
|
114
115
|
tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled)
|
|
115
|
-
}, [!item ? [icon && h(kendo_vue_common_1.Icon, {
|
|
116
|
-
name:
|
|
116
|
+
}, [!item ? [(icon || svgIcon) && h(kendo_vue_common_1.Icon, {
|
|
117
|
+
name: (0, kendo_vue_common_1.getIconName)(icon),
|
|
117
118
|
attrs: this.v3 ? undefined : {
|
|
118
|
-
name:
|
|
119
|
-
|
|
119
|
+
name: (0, kendo_vue_common_1.getIconName)(icon),
|
|
120
|
+
icon: svgIcon
|
|
121
|
+
},
|
|
122
|
+
icon: svgIcon
|
|
120
123
|
}), !expanded && mini ? null : h("span", {
|
|
121
124
|
"class": 'k-item-text'
|
|
122
125
|
}, [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
|
*/
|
|
@@ -10,6 +10,7 @@ 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_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
13
14
|
var package_metadata_1 = require("../package-metadata");
|
|
14
15
|
/**
|
|
15
16
|
* @hidden
|
|
@@ -25,7 +26,9 @@ var ExpansionPanelVue2 = {
|
|
|
25
26
|
titleRender: [String, Object, Function],
|
|
26
27
|
subtitleRender: [String, Object, Function],
|
|
27
28
|
expandIcon: String,
|
|
29
|
+
expandSvgIcon: Object,
|
|
28
30
|
collapseIcon: String,
|
|
31
|
+
collapseSvgIcon: Object,
|
|
29
32
|
expanded: Boolean,
|
|
30
33
|
disabled: Boolean
|
|
31
34
|
},
|
|
@@ -49,15 +52,14 @@ var ExpansionPanelVue2 = {
|
|
|
49
52
|
expanded = _a.expanded,
|
|
50
53
|
expandIcon = _a.expandIcon,
|
|
51
54
|
collapseIcon = _a.collapseIcon;
|
|
52
|
-
return
|
|
55
|
+
return expanded ? expandIcon ? (0, kendo_vue_common_1.getIconName)(expandIcon) : 'chevron-up' : collapseIcon ? (0, kendo_vue_common_1.getIconName)(collapseIcon) : 'chevron-down';
|
|
53
56
|
},
|
|
54
|
-
|
|
55
|
-
var _a
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return _a = {}, _a[expandIcon] = !expanded && Boolean(expandIcon), _a[collapseIcon] = expanded && Boolean(collapseIcon), _a;
|
|
57
|
+
expandSVGIcon: function expandSVGIcon() {
|
|
58
|
+
var _a = this.$props,
|
|
59
|
+
expanded = _a.expanded,
|
|
60
|
+
expandSvgIcon = _a.expandSvgIcon,
|
|
61
|
+
collapseSvgIcon = _a.collapseSvgIcon;
|
|
62
|
+
return expanded ? expandSvgIcon || kendo_svg_icons_1.chevronUpIcon : collapseSvgIcon || kendo_svg_icons_1.chevronDownIcon;
|
|
61
63
|
}
|
|
62
64
|
},
|
|
63
65
|
data: function data() {
|
|
@@ -144,9 +146,10 @@ var ExpansionPanelVue2 = {
|
|
|
144
146
|
}, [h(kendo_vue_common_1.Icon, {
|
|
145
147
|
name: this.expandIconName,
|
|
146
148
|
attrs: this.v3 ? undefined : {
|
|
147
|
-
name: this.expandIconName
|
|
149
|
+
name: this.expandIconName,
|
|
150
|
+
icon: this.expandSVGIcon
|
|
148
151
|
},
|
|
149
|
-
|
|
152
|
+
icon: this.expandSVGIcon
|
|
150
153
|
})])]), defaultSlots]);
|
|
151
154
|
},
|
|
152
155
|
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
|
*/
|
|
@@ -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:
|
|
11
|
+
publishDate: 1684827726,
|
|
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
|
};
|
|
@@ -53,6 +53,7 @@ var PanelBarItemVue2 = {
|
|
|
53
53
|
iconClass: String,
|
|
54
54
|
imageUrl: String,
|
|
55
55
|
icon: String,
|
|
56
|
+
svgIcon: Object,
|
|
56
57
|
content: Object,
|
|
57
58
|
header: Object
|
|
58
59
|
},
|
|
@@ -76,6 +77,7 @@ var PanelBarItemVue2 = {
|
|
|
76
77
|
id = _b.id,
|
|
77
78
|
item = _b.item,
|
|
78
79
|
icon = _b.icon,
|
|
80
|
+
svgIcon = _b.svgIcon,
|
|
79
81
|
items = _b.items,
|
|
80
82
|
content = _b.content,
|
|
81
83
|
title = _b.title,
|
|
@@ -114,13 +116,15 @@ var PanelBarItemVue2 = {
|
|
|
114
116
|
"class": 'k-panelbar-item-icon k-image',
|
|
115
117
|
src: this.imageUrl
|
|
116
118
|
});
|
|
117
|
-
} else if (icon) {
|
|
119
|
+
} else if (icon || svgIcon) {
|
|
118
120
|
return h(kendo_vue_common_1.Icon, {
|
|
119
121
|
name: icon,
|
|
120
122
|
attrs: this.v3 ? undefined : {
|
|
121
|
-
name: icon
|
|
123
|
+
name: icon,
|
|
124
|
+
icon: svgIcon
|
|
122
125
|
},
|
|
123
|
-
"class": 'k-panelbar-item-icon'
|
|
126
|
+
"class": 'k-panelbar-item-icon',
|
|
127
|
+
icon: svgIcon
|
|
124
128
|
});
|
|
125
129
|
} else if (this.iconClass) {
|
|
126
130
|
return h(kendo_vue_common_1.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
|
*/
|
|
@@ -55,6 +55,9 @@ var SplitterVue2 = {
|
|
|
55
55
|
panes: Array,
|
|
56
56
|
defaultPanes: Array
|
|
57
57
|
},
|
|
58
|
+
mounted: function mounted() {
|
|
59
|
+
this.currentRtl = (0, kendo_vue_common_1.isRtl)(this.$el);
|
|
60
|
+
},
|
|
58
61
|
// @ts-ignore
|
|
59
62
|
emits: {
|
|
60
63
|
change: null
|
|
@@ -67,9 +70,6 @@ var SplitterVue2 = {
|
|
|
67
70
|
// return this.panesDuringOnChange !== undefined ?
|
|
68
71
|
// this.panesDuringOnChange :
|
|
69
72
|
return this.isControlledState ? this.$props.panes : this.currentPanes;
|
|
70
|
-
},
|
|
71
|
-
isRtl: function isRtl() {
|
|
72
|
-
return this.$el && getComputedStyle(this.$el).direction === 'rtl' || false;
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
created: function created() {
|
|
@@ -79,6 +79,7 @@ var SplitterVue2 = {
|
|
|
79
79
|
|
|
80
80
|
data: function data() {
|
|
81
81
|
return {
|
|
82
|
+
currentRtl: false,
|
|
82
83
|
isDragging: false,
|
|
83
84
|
dragIndex: undefined,
|
|
84
85
|
startTime: 0,
|
|
@@ -117,7 +118,8 @@ var SplitterVue2 = {
|
|
|
117
118
|
index: index,
|
|
118
119
|
orientation: this.orientation,
|
|
119
120
|
prev: pane,
|
|
120
|
-
next: next
|
|
121
|
+
next: next,
|
|
122
|
+
isRtl: this.currentRtl
|
|
121
123
|
},
|
|
122
124
|
orientation: this.orientation,
|
|
123
125
|
prev: pane,
|
|
@@ -129,7 +131,8 @@ var SplitterVue2 = {
|
|
|
129
131
|
"keyboardresize": this.onBarKeyboardResize
|
|
130
132
|
},
|
|
131
133
|
onToggle: this.onBarToggle,
|
|
132
|
-
onKeyboardresize: this.onBarKeyboardResize
|
|
134
|
+
onKeyboardresize: this.onBarKeyboardResize,
|
|
135
|
+
isRtl: this.currentRtl
|
|
133
136
|
});
|
|
134
137
|
}
|
|
135
138
|
var splitterPane = h(SplitterPane_1.SplitterPane, {
|
|
@@ -241,7 +244,7 @@ var SplitterVue2 = {
|
|
|
241
244
|
var delta;
|
|
242
245
|
if (this.orientation === 'vertical') {
|
|
243
246
|
delta = pageY - originalY;
|
|
244
|
-
} else if (this.
|
|
247
|
+
} else if (this.currentRtl) {
|
|
245
248
|
delta = originalX - pageX;
|
|
246
249
|
} else {
|
|
247
250
|
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
|
|
@@ -34,7 +34,8 @@ var SplitterBarVue2 = {
|
|
|
34
34
|
},
|
|
35
35
|
index: Number,
|
|
36
36
|
prev: Object,
|
|
37
|
-
next: Object
|
|
37
|
+
next: Object,
|
|
38
|
+
isRtl: Boolean
|
|
38
39
|
},
|
|
39
40
|
created: function created() {
|
|
40
41
|
this.draggable = null;
|
|
@@ -157,9 +158,11 @@ var SplitterBarVue2 = {
|
|
|
157
158
|
name: previousArrowName,
|
|
158
159
|
attrs: _this2.v3 ? undefined : {
|
|
159
160
|
name: previousArrowName,
|
|
160
|
-
icon: previousArrowSVG
|
|
161
|
+
icon: previousArrowSVG,
|
|
162
|
+
size: 'xsmall'
|
|
161
163
|
},
|
|
162
|
-
icon: previousArrowSVG
|
|
164
|
+
icon: previousArrowSVG,
|
|
165
|
+
size: 'xsmall'
|
|
163
166
|
})]), h("div", {
|
|
164
167
|
"class": 'k-resize-handle'
|
|
165
168
|
}), _this2.next.collapsible && h("span", {
|
|
@@ -172,9 +175,11 @@ var SplitterBarVue2 = {
|
|
|
172
175
|
name: nextArrowName,
|
|
173
176
|
attrs: _this2.v3 ? undefined : {
|
|
174
177
|
name: nextArrowName,
|
|
175
|
-
icon: nextArrowSVG
|
|
178
|
+
icon: nextArrowSVG,
|
|
179
|
+
size: 'xsmall'
|
|
176
180
|
},
|
|
177
|
-
icon: nextArrowSVG
|
|
181
|
+
icon: nextArrowSVG,
|
|
182
|
+
size: 'xsmall'
|
|
178
183
|
})])])];
|
|
179
184
|
} : [h("div", {
|
|
180
185
|
tabindex: isStatic ? -1 : 0,
|
|
@@ -211,9 +216,11 @@ var SplitterBarVue2 = {
|
|
|
211
216
|
name: previousArrowName,
|
|
212
217
|
attrs: _this2.v3 ? undefined : {
|
|
213
218
|
name: previousArrowName,
|
|
214
|
-
icon: previousArrowSVG
|
|
219
|
+
icon: previousArrowSVG,
|
|
220
|
+
size: 'xsmall'
|
|
215
221
|
},
|
|
216
|
-
icon: previousArrowSVG
|
|
222
|
+
icon: previousArrowSVG,
|
|
223
|
+
size: 'xsmall'
|
|
217
224
|
})]), h("div", {
|
|
218
225
|
"class": 'k-resize-handle'
|
|
219
226
|
}), _this2.next.collapsible && h("span", {
|
|
@@ -226,9 +233,11 @@ var SplitterBarVue2 = {
|
|
|
226
233
|
name: nextArrowName,
|
|
227
234
|
attrs: _this2.v3 ? undefined : {
|
|
228
235
|
name: nextArrowName,
|
|
229
|
-
icon: nextArrowSVG
|
|
236
|
+
icon: nextArrowSVG,
|
|
237
|
+
size: 'xsmall'
|
|
230
238
|
},
|
|
231
|
-
icon: nextArrowSVG
|
|
239
|
+
icon: nextArrowSVG,
|
|
240
|
+
size: 'xsmall'
|
|
232
241
|
})])])])
|
|
233
242
|
);
|
|
234
243
|
},
|
|
@@ -306,22 +315,22 @@ var SplitterBarVue2 = {
|
|
|
306
315
|
previousArrowName: function previousArrowName(isHorizontal) {
|
|
307
316
|
var prev = this.$props.prev;
|
|
308
317
|
var isCollapsed = prev.collapsed;
|
|
309
|
-
return isHorizontal && !isCollapsed ? 'caret-alt-left' : isHorizontal && isCollapsed ? 'caret-alt-right' : !isHorizontal && !isCollapsed ? 'caret-alt-up' : !isHorizontal && isCollapsed ? 'caret-alt-down' : '';
|
|
318
|
+
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' : '';
|
|
310
319
|
},
|
|
311
320
|
previousArrowSVG: function previousArrowSVG(isHorizontal) {
|
|
312
321
|
var prev = this.$props.prev;
|
|
313
322
|
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;
|
|
323
|
+
return isHorizontal && !isCollapsed ? this.isRtl ? kendo_svg_icons_1.caretAltRightIcon : kendo_svg_icons_1.caretAltLeftIcon : isHorizontal && isCollapsed ? this.isRtl ? kendo_svg_icons_1.caretAltLeftIcon : kendo_svg_icons_1.caretAltRightIcon : !isHorizontal && !isCollapsed ? kendo_svg_icons_1.caretAltUpIcon : !isHorizontal && isCollapsed ? kendo_svg_icons_1.caretAltDownIcon : undefined;
|
|
315
324
|
},
|
|
316
325
|
nextArrowName: function nextArrowName(isHorizontal) {
|
|
317
326
|
var next = this.$props.next;
|
|
318
327
|
var isCollapsed = next.collapsed;
|
|
319
|
-
return isHorizontal && !isCollapsed ? 'caret-alt-right' : isHorizontal && isCollapsed ? 'caret-alt-left' : !isHorizontal && !isCollapsed ? 'caret-alt-down' : !isHorizontal && isCollapsed ? 'caret-alt-up' : '';
|
|
328
|
+
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' : '';
|
|
320
329
|
},
|
|
321
330
|
nextArrowSVG: function nextArrowSVG(isHorizontal) {
|
|
322
331
|
var next = this.$props.next;
|
|
323
332
|
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;
|
|
333
|
+
return isHorizontal && !isCollapsed ? this.isRtl ? kendo_svg_icons_1.caretAltLeftIcon : kendo_svg_icons_1.caretAltRightIcon : isHorizontal && isCollapsed ? this.isRtl ? kendo_svg_icons_1.caretAltRightIcon : kendo_svg_icons_1.caretAltLeftIcon : !isHorizontal && !isCollapsed ? kendo_svg_icons_1.caretAltDownIcon : !isHorizontal && isCollapsed ? kendo_svg_icons_1.caretAltUpIcon : undefined;
|
|
325
334
|
}
|
|
326
335
|
}
|
|
327
336
|
};
|
package/dist/npm/stepper/Step.js
CHANGED
|
@@ -12,6 +12,7 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
12
12
|
var inject = allVue.inject;
|
|
13
13
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
14
14
|
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
15
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
15
16
|
var contants_1 = require("./contants");
|
|
16
17
|
var main_1 = require("./messages/main");
|
|
17
18
|
/**
|
|
@@ -23,8 +24,12 @@ var StepVue2 = {
|
|
|
23
24
|
current: Boolean,
|
|
24
25
|
disabled: Boolean,
|
|
25
26
|
icon: String,
|
|
27
|
+
svgIcon: Object,
|
|
26
28
|
index: Number,
|
|
27
|
-
isValid:
|
|
29
|
+
isValid: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: undefined
|
|
32
|
+
},
|
|
28
33
|
focused: Boolean,
|
|
29
34
|
label: String,
|
|
30
35
|
optional: Boolean,
|
|
@@ -41,7 +46,9 @@ var StepVue2 = {
|
|
|
41
46
|
numOfSteps: Number,
|
|
42
47
|
value: Number,
|
|
43
48
|
successIcon: String,
|
|
44
|
-
|
|
49
|
+
successSvgIcon: Object,
|
|
50
|
+
errorIcon: String,
|
|
51
|
+
errorSvgIcon: Object
|
|
45
52
|
},
|
|
46
53
|
inject: {
|
|
47
54
|
kendoLocalizationService: {
|
|
@@ -105,6 +112,7 @@ var StepVue2 = {
|
|
|
105
112
|
disabled = _a.disabled,
|
|
106
113
|
focused = _a.focused,
|
|
107
114
|
icon = _a.icon,
|
|
115
|
+
svgIcon = _a.svgIcon,
|
|
108
116
|
index = _a.index,
|
|
109
117
|
isValid = _a.isValid,
|
|
110
118
|
label = _a.label,
|
|
@@ -117,22 +125,29 @@ var StepVue2 = {
|
|
|
117
125
|
mode = _a.mode,
|
|
118
126
|
value = _a.value,
|
|
119
127
|
successIcon = _a.successIcon,
|
|
120
|
-
|
|
128
|
+
successSvgIcon = _a.successSvgIcon,
|
|
129
|
+
errorIcon = _a.errorIcon,
|
|
130
|
+
errorSvgIcon = _a.errorSvgIcon;
|
|
121
131
|
var allowClick = !linear || index === value - 1 || index === value || index === value + 1;
|
|
122
|
-
var isInLabel = mode === 'labels' || Boolean(icon) && Boolean(label);
|
|
132
|
+
var isInLabel = mode === 'labels' || (Boolean(icon) || Boolean(svgIcon)) && Boolean(label);
|
|
123
133
|
var localizationService = (0, kendo_vue_intl_1.provideLocalizationService)(this);
|
|
124
134
|
var localizeMessage = function localizeMessage(message) {
|
|
125
135
|
return localizationService.toLanguageString(message, main_1.messages[message]);
|
|
126
136
|
};
|
|
127
137
|
var optionalMessage = localizeMessage(main_1.optionalText);
|
|
128
138
|
var progressAnimation = typeof animationDuration === 'number' ? animationDuration : animationDuration !== false ? contants_1.DEFAULT_ANIMATION_DURATION : contants_1.NO_ANIMATION;
|
|
129
|
-
var
|
|
139
|
+
var validationIconNames = isValid ? successIcon || 'check-circle' : errorIcon || 'exclamation-circle';
|
|
140
|
+
var validationSvgIcon = isValid ? successSvgIcon || kendo_svg_icons_1.checkOutlineIcon : errorSvgIcon || kendo_svg_icons_1.exclamationCircleIcon;
|
|
130
141
|
var validationIcons = h(kendo_vue_common_1.Icon, {
|
|
131
|
-
"class": 'k-step-indicator-icon
|
|
132
|
-
|
|
142
|
+
"class": 'k-step-indicator-icon',
|
|
143
|
+
name: (0, kendo_vue_common_1.getIconName)(validationIconNames),
|
|
133
144
|
attrs: this.v3 ? undefined : {
|
|
145
|
+
name: (0, kendo_vue_common_1.getIconName)(validationIconNames),
|
|
146
|
+
icon: validationSvgIcon,
|
|
134
147
|
"aria-hidden": "true"
|
|
135
|
-
}
|
|
148
|
+
},
|
|
149
|
+
icon: validationSvgIcon,
|
|
150
|
+
"aria-hidden": "true"
|
|
136
151
|
});
|
|
137
152
|
var stepIndicator = function stepIndicator() {
|
|
138
153
|
return mode !== 'labels' ? h("span", {
|
|
@@ -144,8 +159,14 @@ var StepVue2 = {
|
|
|
144
159
|
style: {
|
|
145
160
|
transitionDuration: progressAnimation + 'ms'
|
|
146
161
|
}
|
|
147
|
-
}, [icon ? !isInLabel && isValid !== undefined ? validationIcons : h(
|
|
148
|
-
"class": "k-step-indicator-icon
|
|
162
|
+
}, [icon || svgIcon ? !isInLabel && isValid !== undefined ? validationIcons : h(kendo_vue_common_1.Icon, {
|
|
163
|
+
"class": "k-step-indicator-icon",
|
|
164
|
+
name: icon,
|
|
165
|
+
attrs: this.v3 ? undefined : {
|
|
166
|
+
name: icon,
|
|
167
|
+
icon: svgIcon
|
|
168
|
+
},
|
|
169
|
+
icon: svgIcon
|
|
149
170
|
}) : isValid !== undefined ? validationIcons : h("span", {
|
|
150
171
|
"class": "k-step-indicator-text"
|
|
151
172
|
}, [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
|
* }
|