@progress/kendo-vue-layout 3.7.4-dev.202212020747 → 3.7.4-dev.202212300853
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 +7 -3
- package/dist/es/drawer/DrawerItem.js +6 -3
- 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 +9 -12
- package/dist/es/menu/components/MenuItemInternal.js +4 -5
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/panelbar/PanelBarItem.js +13 -13
- package/dist/es/splitter/SplitterBar.js +27 -19
- package/dist/es/stepper/Step.js +2 -2
- package/dist/esm/bottomnavigation/BottomNavigationItem.js +7 -3
- package/dist/esm/drawer/DrawerItem.js +6 -3
- 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 +9 -12
- package/dist/esm/menu/components/MenuItemInternal.js +4 -5
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/panelbar/PanelBarItem.js +13 -13
- package/dist/esm/splitter/SplitterBar.js +27 -19
- package/dist/esm/stepper/Step.js +2 -2
- package/dist/npm/bottomnavigation/BottomNavigationItem.js +6 -2
- package/dist/npm/drawer/DrawerItem.js +5 -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 +9 -12
- package/dist/npm/menu/components/MenuItemInternal.js +3 -4
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/panelbar/PanelBarItem.js +12 -12
- package/dist/npm/splitter/SplitterBar.js +26 -18
- package/dist/npm/stepper/Step.js +1 -1
- package/package.json +13 -13
|
@@ -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
|
*/
|
|
@@ -93,8 +93,12 @@ var BottomNavigationItemVue2 = {
|
|
|
93
93
|
onKeydown: this.handleKeyDown,
|
|
94
94
|
"aria-selected": 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,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 } from '@progress/kendo-vue-common';
|
|
18
|
+
import { getTabIndex, getDefaultSlots, Icon } from '@progress/kendo-vue-common';
|
|
19
19
|
/**
|
|
20
20
|
* @hidden
|
|
21
21
|
*/
|
|
@@ -95,8 +95,11 @@ var DrawerItemVue2 = {
|
|
|
95
95
|
"click": this.handleClick
|
|
96
96
|
},
|
|
97
97
|
tabindex: getTabIndex(tabIndex, disabled)
|
|
98
|
-
}, [!item ? [icon && h(
|
|
99
|
-
|
|
98
|
+
}, [!item ? [icon && h(Icon, {
|
|
99
|
+
name: icon,
|
|
100
|
+
attrs: this.v3 ? undefined : {
|
|
101
|
+
name: icon
|
|
102
|
+
}
|
|
100
103
|
}), !expanded && mini ? null : h("span", {
|
|
101
104
|
"class": 'k-item-text'
|
|
102
105
|
}, [text])] : defaultSlot]);
|
|
@@ -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
|
*/
|
|
@@ -3,19 +3,20 @@ 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 { Icon } from '@progress/kendo-vue-common';
|
|
6
7
|
import { getChildrenPosition } from '../utils/misc';
|
|
7
8
|
/**
|
|
8
9
|
* @hidden
|
|
9
10
|
*/
|
|
10
|
-
export var downArrowClass = '
|
|
11
|
+
export var downArrowClass = 'caret-alt-down';
|
|
11
12
|
/**
|
|
12
13
|
* @hidden
|
|
13
14
|
*/
|
|
14
|
-
export var rightArrowClass = '
|
|
15
|
+
export var rightArrowClass = 'caret-alt-right';
|
|
15
16
|
/**
|
|
16
17
|
* @hidden
|
|
17
18
|
*/
|
|
18
|
-
export var leftArrowClass = '
|
|
19
|
+
export var leftArrowClass = 'caret-alt-left';
|
|
19
20
|
/**
|
|
20
21
|
* @hidden
|
|
21
22
|
*/
|
|
@@ -37,21 +38,17 @@ var MenuItemArrowVue2 = {
|
|
|
37
38
|
var h = gh || createElement;
|
|
38
39
|
return h("span", {
|
|
39
40
|
"class": "k-menu-expand-arrow"
|
|
40
|
-
}, [h(
|
|
41
|
-
|
|
42
|
-
role: "presentation",
|
|
41
|
+
}, [h(Icon, {
|
|
42
|
+
name: this.getArrowName(),
|
|
43
43
|
attrs: this.v3 ? undefined : {
|
|
44
|
-
|
|
44
|
+
name: this.getArrowName()
|
|
45
45
|
}
|
|
46
46
|
})]);
|
|
47
47
|
},
|
|
48
48
|
methods: {
|
|
49
|
-
|
|
50
|
-
var _a;
|
|
49
|
+
getArrowName: function getArrowName() {
|
|
51
50
|
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;
|
|
51
|
+
return childrenPosition === 'downward' ? downArrowClass : childrenPosition === 'rightward' ? rightArrowClass : childrenPosition === 'leftward' ? leftArrowClass : '';
|
|
55
52
|
}
|
|
56
53
|
}
|
|
57
54
|
};
|
|
@@ -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;
|
|
@@ -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: 1672389706,
|
|
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,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 { classNames, getTemplate } from '@progress/kendo-vue-common';
|
|
18
|
+
import { classNames, getTemplate, Icon } from '@progress/kendo-vue-common';
|
|
19
19
|
import { PanelBarGroup } from './PanelBarGroup';
|
|
20
20
|
/**
|
|
21
21
|
* @hidden
|
|
@@ -93,7 +93,8 @@ var PanelBarItemVue2 = {
|
|
|
93
93
|
'k-selected': !disabled && selected,
|
|
94
94
|
'k-focus': focused
|
|
95
95
|
}, headerClassName);
|
|
96
|
-
var panelBarItemArrowClassName = classNames('k-panelbar-toggle',
|
|
96
|
+
var panelBarItemArrowClassName = classNames('k-panelbar-toggle', (_a = {}, _a['k-panelbar-collapse'] = expanded && hasContent, _a['k-panelbar-expand'] = !expanded && hasContent, _a));
|
|
97
|
+
var itemIconName = expanded ? 'chevron-up' : 'chevron-down';
|
|
97
98
|
var iconElement = function iconElement() {
|
|
98
99
|
if (this.imageUrl) {
|
|
99
100
|
return h("img", {
|
|
@@ -106,27 +107,26 @@ var PanelBarItemVue2 = {
|
|
|
106
107
|
src: this.imageUrl
|
|
107
108
|
});
|
|
108
109
|
} else if (icon) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
role: "presentation",
|
|
110
|
+
return h(Icon, {
|
|
111
|
+
name: icon,
|
|
112
112
|
attrs: this.v3 ? undefined : {
|
|
113
|
-
|
|
113
|
+
name: icon
|
|
114
114
|
},
|
|
115
|
-
"class":
|
|
115
|
+
"class": 'k-panelbar-item-icon'
|
|
116
116
|
});
|
|
117
117
|
} else if (this.iconClass) {
|
|
118
|
-
return h(
|
|
119
|
-
role: "presentation",
|
|
120
|
-
attrs: this.v3 ? undefined : {
|
|
121
|
-
role: "presentation"
|
|
122
|
-
},
|
|
118
|
+
return h(Icon, {
|
|
123
119
|
"class": 'k-panelbar-item-icon ' + this.iconClass
|
|
124
120
|
});
|
|
125
121
|
}
|
|
126
122
|
return null;
|
|
127
123
|
};
|
|
128
124
|
var iconRender = iconElement.call(this);
|
|
129
|
-
var arrow = !disabled && (items || content) ? h(
|
|
125
|
+
var arrow = !disabled && (items || content) ? h(Icon, {
|
|
126
|
+
name: itemIconName,
|
|
127
|
+
attrs: this.v3 ? undefined : {
|
|
128
|
+
name: itemIconName
|
|
129
|
+
},
|
|
130
130
|
"class": panelBarItemArrowClassName
|
|
131
131
|
}) : null;
|
|
132
132
|
var group = items || content ? h(PanelBarGroup, {
|
|
@@ -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 { classNames, Draggable, Keys } from '@progress/kendo-vue-common';
|
|
6
|
+
import { classNames, Draggable, Icon, Keys } from '@progress/kendo-vue-common';
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
@@ -78,8 +78,8 @@ var SplitterBarVue2 = {
|
|
|
78
78
|
var isStatic = this.isStatic;
|
|
79
79
|
var isHorizontal = this.isHorizontal;
|
|
80
80
|
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
|
|
81
|
+
var previousArrowName = this.previousArrowName(isHorizontal);
|
|
82
|
+
var nextArrowName = this.nextArrowName(isHorizontal);
|
|
83
83
|
return (
|
|
84
84
|
// @ts-ignore function children
|
|
85
85
|
h(Draggable, {
|
|
@@ -132,8 +132,11 @@ var SplitterBarVue2 = {
|
|
|
132
132
|
on: _this2.v3 ? undefined : {
|
|
133
133
|
"click": _this2.onPrevToggle
|
|
134
134
|
}
|
|
135
|
-
}, [h(
|
|
136
|
-
|
|
135
|
+
}, [h(Icon, {
|
|
136
|
+
name: previousArrowName,
|
|
137
|
+
attrs: _this2.v3 ? undefined : {
|
|
138
|
+
name: previousArrowName
|
|
139
|
+
}
|
|
137
140
|
})]), h("div", {
|
|
138
141
|
"class": 'k-resize-handle'
|
|
139
142
|
}), _this2.next.collapsible && h("span", {
|
|
@@ -142,8 +145,11 @@ var SplitterBarVue2 = {
|
|
|
142
145
|
on: _this2.v3 ? undefined : {
|
|
143
146
|
"click": _this2.onNextToggle
|
|
144
147
|
}
|
|
145
|
-
}, [h(
|
|
146
|
-
|
|
148
|
+
}, [h(Icon, {
|
|
149
|
+
name: nextArrowName,
|
|
150
|
+
attrs: _this2.v3 ? undefined : {
|
|
151
|
+
name: nextArrowName
|
|
152
|
+
}
|
|
147
153
|
})])])];
|
|
148
154
|
} : [h("div", {
|
|
149
155
|
tabindex: isStatic ? -1 : 0,
|
|
@@ -172,8 +178,11 @@ var SplitterBarVue2 = {
|
|
|
172
178
|
on: _this2.v3 ? undefined : {
|
|
173
179
|
"click": _this2.onPrevToggle
|
|
174
180
|
}
|
|
175
|
-
}, [h(
|
|
176
|
-
|
|
181
|
+
}, [h(Icon, {
|
|
182
|
+
name: previousArrowName,
|
|
183
|
+
attrs: _this2.v3 ? undefined : {
|
|
184
|
+
name: previousArrowName
|
|
185
|
+
}
|
|
177
186
|
})]), h("div", {
|
|
178
187
|
"class": 'k-resize-handle'
|
|
179
188
|
}), _this2.next.collapsible && h("span", {
|
|
@@ -182,8 +191,11 @@ var SplitterBarVue2 = {
|
|
|
182
191
|
on: _this2.v3 ? undefined : {
|
|
183
192
|
"click": _this2.onNextToggle
|
|
184
193
|
}
|
|
185
|
-
}, [h(
|
|
186
|
-
|
|
194
|
+
}, [h(Icon, {
|
|
195
|
+
name: nextArrowName,
|
|
196
|
+
attrs: _this2.v3 ? undefined : {
|
|
197
|
+
name: nextArrowName
|
|
198
|
+
}
|
|
187
199
|
})])])])
|
|
188
200
|
);
|
|
189
201
|
},
|
|
@@ -258,19 +270,15 @@ var SplitterBarVue2 = {
|
|
|
258
270
|
}
|
|
259
271
|
}
|
|
260
272
|
},
|
|
261
|
-
|
|
262
|
-
var _a;
|
|
273
|
+
previousArrowName: function previousArrowName(isHorizontal) {
|
|
263
274
|
var prev = this.$props.prev;
|
|
264
|
-
var isCollapsible = prev.collapsible;
|
|
265
275
|
var isCollapsed = prev.collapsed;
|
|
266
|
-
return
|
|
276
|
+
return isHorizontal && !isCollapsed ? 'caret-alt-left' : isHorizontal && isCollapsed ? 'caret-alt-right' : !isHorizontal && !isCollapsed ? 'caret-alt-up' : !isHorizontal && isCollapsed ? 'caret-alt-down' : '';
|
|
267
277
|
},
|
|
268
|
-
|
|
269
|
-
var _a;
|
|
278
|
+
nextArrowName: function nextArrowName(isHorizontal) {
|
|
270
279
|
var next = this.$props.next;
|
|
271
|
-
var isCollapsible = next.collapsible;
|
|
272
280
|
var isCollapsed = next.collapsed;
|
|
273
|
-
return
|
|
281
|
+
return isHorizontal && !isCollapsed ? 'caret-alt-right' : isHorizontal && isCollapsed ? 'caret-alt-left' : !isHorizontal && !isCollapsed ? 'caret-alt-down' : !isHorizontal && isCollapsed ? 'caret-alt-up' : '';
|
|
274
282
|
}
|
|
275
283
|
}
|
|
276
284
|
};
|
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 : {
|
|
@@ -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
|
*/
|
|
@@ -93,8 +93,12 @@ var BottomNavigationItemVue2 = {
|
|
|
93
93
|
onKeydown: this.handleKeyDown,
|
|
94
94
|
"aria-selected": 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,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 } from '@progress/kendo-vue-common';
|
|
18
|
+
import { getTabIndex, getDefaultSlots, Icon } from '@progress/kendo-vue-common';
|
|
19
19
|
/**
|
|
20
20
|
* @hidden
|
|
21
21
|
*/
|
|
@@ -95,8 +95,11 @@ var DrawerItemVue2 = {
|
|
|
95
95
|
"click": this.handleClick
|
|
96
96
|
},
|
|
97
97
|
tabindex: getTabIndex(tabIndex, disabled)
|
|
98
|
-
}, [!item ? [icon && h(
|
|
99
|
-
|
|
98
|
+
}, [!item ? [icon && h(Icon, {
|
|
99
|
+
name: icon,
|
|
100
|
+
attrs: this.v3 ? undefined : {
|
|
101
|
+
name: icon
|
|
102
|
+
}
|
|
100
103
|
}), !expanded && mini ? null : h("span", {
|
|
101
104
|
"class": 'k-item-text'
|
|
102
105
|
}, [text])] : defaultSlot]);
|
|
@@ -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
|
*/
|
|
@@ -3,19 +3,20 @@ 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 { Icon } from '@progress/kendo-vue-common';
|
|
6
7
|
import { getChildrenPosition } from '../utils/misc.js';
|
|
7
8
|
/**
|
|
8
9
|
* @hidden
|
|
9
10
|
*/
|
|
10
|
-
export var downArrowClass = '
|
|
11
|
+
export var downArrowClass = 'caret-alt-down';
|
|
11
12
|
/**
|
|
12
13
|
* @hidden
|
|
13
14
|
*/
|
|
14
|
-
export var rightArrowClass = '
|
|
15
|
+
export var rightArrowClass = 'caret-alt-right';
|
|
15
16
|
/**
|
|
16
17
|
* @hidden
|
|
17
18
|
*/
|
|
18
|
-
export var leftArrowClass = '
|
|
19
|
+
export var leftArrowClass = 'caret-alt-left';
|
|
19
20
|
/**
|
|
20
21
|
* @hidden
|
|
21
22
|
*/
|
|
@@ -37,21 +38,17 @@ var MenuItemArrowVue2 = {
|
|
|
37
38
|
var h = gh || createElement;
|
|
38
39
|
return h("span", {
|
|
39
40
|
"class": "k-menu-expand-arrow"
|
|
40
|
-
}, [h(
|
|
41
|
-
|
|
42
|
-
role: "presentation",
|
|
41
|
+
}, [h(Icon, {
|
|
42
|
+
name: this.getArrowName(),
|
|
43
43
|
attrs: this.v3 ? undefined : {
|
|
44
|
-
|
|
44
|
+
name: this.getArrowName()
|
|
45
45
|
}
|
|
46
46
|
})]);
|
|
47
47
|
},
|
|
48
48
|
methods: {
|
|
49
|
-
|
|
50
|
-
var _a;
|
|
49
|
+
getArrowName: function getArrowName() {
|
|
51
50
|
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;
|
|
51
|
+
return childrenPosition === 'downward' ? downArrowClass : childrenPosition === 'rightward' ? rightArrowClass : childrenPosition === 'leftward' ? leftArrowClass : '';
|
|
55
52
|
}
|
|
56
53
|
}
|
|
57
54
|
};
|
|
@@ -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;
|
|
@@ -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: 1672389706,
|
|
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,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 { classNames, getTemplate } from '@progress/kendo-vue-common';
|
|
18
|
+
import { classNames, getTemplate, Icon } from '@progress/kendo-vue-common';
|
|
19
19
|
import { PanelBarGroup } from './PanelBarGroup.js';
|
|
20
20
|
/**
|
|
21
21
|
* @hidden
|
|
@@ -93,7 +93,8 @@ var PanelBarItemVue2 = {
|
|
|
93
93
|
'k-selected': !disabled && selected,
|
|
94
94
|
'k-focus': focused
|
|
95
95
|
}, headerClassName);
|
|
96
|
-
var panelBarItemArrowClassName = classNames('k-panelbar-toggle',
|
|
96
|
+
var panelBarItemArrowClassName = classNames('k-panelbar-toggle', (_a = {}, _a['k-panelbar-collapse'] = expanded && hasContent, _a['k-panelbar-expand'] = !expanded && hasContent, _a));
|
|
97
|
+
var itemIconName = expanded ? 'chevron-up' : 'chevron-down';
|
|
97
98
|
var iconElement = function iconElement() {
|
|
98
99
|
if (this.imageUrl) {
|
|
99
100
|
return h("img", {
|
|
@@ -106,27 +107,26 @@ var PanelBarItemVue2 = {
|
|
|
106
107
|
src: this.imageUrl
|
|
107
108
|
});
|
|
108
109
|
} else if (icon) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
role: "presentation",
|
|
110
|
+
return h(Icon, {
|
|
111
|
+
name: icon,
|
|
112
112
|
attrs: this.v3 ? undefined : {
|
|
113
|
-
|
|
113
|
+
name: icon
|
|
114
114
|
},
|
|
115
|
-
"class":
|
|
115
|
+
"class": 'k-panelbar-item-icon'
|
|
116
116
|
});
|
|
117
117
|
} else if (this.iconClass) {
|
|
118
|
-
return h(
|
|
119
|
-
role: "presentation",
|
|
120
|
-
attrs: this.v3 ? undefined : {
|
|
121
|
-
role: "presentation"
|
|
122
|
-
},
|
|
118
|
+
return h(Icon, {
|
|
123
119
|
"class": 'k-panelbar-item-icon ' + this.iconClass
|
|
124
120
|
});
|
|
125
121
|
}
|
|
126
122
|
return null;
|
|
127
123
|
};
|
|
128
124
|
var iconRender = iconElement.call(this);
|
|
129
|
-
var arrow = !disabled && (items || content) ? h(
|
|
125
|
+
var arrow = !disabled && (items || content) ? h(Icon, {
|
|
126
|
+
name: itemIconName,
|
|
127
|
+
attrs: this.v3 ? undefined : {
|
|
128
|
+
name: itemIconName
|
|
129
|
+
},
|
|
130
130
|
"class": panelBarItemArrowClassName
|
|
131
131
|
}) : null;
|
|
132
132
|
var group = items || content ? h(PanelBarGroup, {
|