@progress/kendo-vue-layout 3.6.3 → 3.6.4-dev.202210071340
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/appbar/AppBar.d.ts +44 -0
- package/dist/es/appbar/AppBar.js +90 -0
- package/dist/es/appbar/AppBarSection.d.ts +44 -0
- package/dist/es/appbar/AppBarSection.js +40 -0
- package/dist/es/appbar/AppBarSpacer.d.ts +44 -0
- package/dist/es/appbar/AppBarSpacer.js +57 -0
- package/dist/es/appbar/interfaces/AppBarProps.d.ts +66 -0
- package/dist/es/appbar/interfaces/AppBarProps.js +1 -0
- package/dist/es/appbar/interfaces/AppBarSectionProps.d.ts +5 -0
- package/dist/es/appbar/interfaces/AppBarSectionProps.js +1 -0
- package/dist/es/appbar/interfaces/AppBarSpacerProps.d.ts +7 -0
- package/dist/es/appbar/interfaces/AppBarSpacerProps.js +1 -0
- package/dist/es/bottomnavigation/BottomNavigation.d.ts +45 -0
- package/dist/es/bottomnavigation/BottomNavigation.js +179 -0
- package/dist/es/bottomnavigation/BottomNavigationItem.d.ts +44 -0
- package/dist/es/bottomnavigation/BottomNavigationItem.js +124 -0
- package/dist/es/bottomnavigation/BottomNavigationItemProps.d.ts +54 -0
- package/dist/es/bottomnavigation/BottomNavigationItemProps.js +1 -0
- package/dist/es/bottomnavigation/BottomNavigationProps.d.ts +143 -0
- package/dist/es/bottomnavigation/BottomNavigationProps.js +1 -0
- package/dist/es/bottomnavigation/models/events.d.ts +18 -0
- package/dist/es/bottomnavigation/models/events.js +1 -0
- package/dist/es/bottomnavigation/models/utils.d.ts +36 -0
- package/dist/es/bottomnavigation/models/utils.js +36 -0
- package/dist/es/expansionpanel/ExpansionPanel.d.ts +42 -0
- package/dist/es/expansionpanel/ExpansionPanel.js +185 -0
- package/dist/es/expansionpanel/ExpansionPanelContent.d.ts +19 -0
- package/dist/es/expansionpanel/ExpansionPanelContent.js +39 -0
- package/dist/es/expansionpanel/interfaces.d.ts +79 -0
- package/dist/es/expansionpanel/interfaces.js +1 -0
- package/dist/es/expansionpanel/main.d.ts +3 -0
- package/dist/es/expansionpanel/main.js +3 -0
- package/dist/es/main.d.ts +12 -0
- package/dist/es/main.js +12 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/stepper/interfaces/StepProps.d.ts +0 -4
- package/dist/es/stepper/interfaces/StepperProps.d.ts +0 -4
- package/dist/esm/appbar/AppBar.d.ts +44 -0
- package/dist/esm/appbar/AppBar.js +90 -0
- package/dist/esm/appbar/AppBarSection.d.ts +44 -0
- package/dist/esm/appbar/AppBarSection.js +40 -0
- package/dist/esm/appbar/AppBarSpacer.d.ts +44 -0
- package/dist/esm/appbar/AppBarSpacer.js +57 -0
- package/dist/esm/appbar/interfaces/AppBarProps.d.ts +66 -0
- package/dist/esm/appbar/interfaces/AppBarProps.js +1 -0
- package/dist/esm/appbar/interfaces/AppBarSectionProps.d.ts +5 -0
- package/dist/esm/appbar/interfaces/AppBarSectionProps.js +1 -0
- package/dist/esm/appbar/interfaces/AppBarSpacerProps.d.ts +7 -0
- package/dist/esm/appbar/interfaces/AppBarSpacerProps.js +1 -0
- package/dist/esm/bottomnavigation/BottomNavigation.d.ts +45 -0
- package/dist/esm/bottomnavigation/BottomNavigation.js +179 -0
- package/dist/esm/bottomnavigation/BottomNavigationItem.d.ts +44 -0
- package/dist/esm/bottomnavigation/BottomNavigationItem.js +124 -0
- package/dist/esm/bottomnavigation/BottomNavigationItemProps.d.ts +54 -0
- package/dist/esm/bottomnavigation/BottomNavigationItemProps.js +1 -0
- package/dist/esm/bottomnavigation/BottomNavigationProps.d.ts +143 -0
- package/dist/esm/bottomnavigation/BottomNavigationProps.js +1 -0
- package/dist/esm/bottomnavigation/models/events.d.ts +18 -0
- package/dist/esm/bottomnavigation/models/events.js +1 -0
- package/dist/esm/bottomnavigation/models/utils.d.ts +36 -0
- package/dist/esm/bottomnavigation/models/utils.js +36 -0
- package/dist/esm/expansionpanel/ExpansionPanel.d.ts +42 -0
- package/dist/esm/expansionpanel/ExpansionPanel.js +185 -0
- package/dist/esm/expansionpanel/ExpansionPanelContent.d.ts +19 -0
- package/dist/esm/expansionpanel/ExpansionPanelContent.js +39 -0
- package/dist/esm/expansionpanel/interfaces.d.ts +79 -0
- package/dist/esm/expansionpanel/interfaces.js +1 -0
- package/dist/esm/expansionpanel/main.d.ts +3 -0
- package/dist/esm/expansionpanel/main.js +3 -0
- package/dist/esm/main.d.ts +12 -0
- package/dist/esm/main.js +12 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/stepper/interfaces/StepProps.d.ts +0 -4
- package/dist/esm/stepper/interfaces/StepperProps.d.ts +0 -4
- package/dist/npm/appbar/AppBar.d.ts +44 -0
- package/dist/npm/appbar/AppBar.js +101 -0
- package/dist/npm/appbar/AppBarSection.d.ts +44 -0
- package/dist/npm/appbar/AppBarSection.js +50 -0
- package/dist/npm/appbar/AppBarSpacer.d.ts +44 -0
- package/dist/npm/appbar/AppBarSpacer.js +67 -0
- package/dist/npm/appbar/interfaces/AppBarProps.d.ts +66 -0
- package/dist/npm/appbar/interfaces/AppBarProps.js +2 -0
- package/dist/npm/appbar/interfaces/AppBarSectionProps.d.ts +5 -0
- package/dist/npm/appbar/interfaces/AppBarSectionProps.js +2 -0
- package/dist/npm/appbar/interfaces/AppBarSpacerProps.d.ts +7 -0
- package/dist/npm/appbar/interfaces/AppBarSpacerProps.js +2 -0
- package/dist/npm/bottomnavigation/BottomNavigation.d.ts +45 -0
- package/dist/npm/bottomnavigation/BottomNavigation.js +192 -0
- package/dist/npm/bottomnavigation/BottomNavigationItem.d.ts +44 -0
- package/dist/npm/bottomnavigation/BottomNavigationItem.js +135 -0
- package/dist/npm/bottomnavigation/BottomNavigationItemProps.d.ts +54 -0
- package/dist/npm/bottomnavigation/BottomNavigationItemProps.js +2 -0
- package/dist/npm/bottomnavigation/BottomNavigationProps.d.ts +143 -0
- package/dist/npm/bottomnavigation/BottomNavigationProps.js +2 -0
- package/dist/npm/bottomnavigation/models/events.d.ts +18 -0
- package/dist/npm/bottomnavigation/models/events.js +2 -0
- package/dist/npm/bottomnavigation/models/utils.d.ts +36 -0
- package/dist/npm/bottomnavigation/models/utils.js +39 -0
- package/dist/npm/expansionpanel/ExpansionPanel.d.ts +42 -0
- package/dist/npm/expansionpanel/ExpansionPanel.js +196 -0
- package/dist/npm/expansionpanel/ExpansionPanelContent.d.ts +19 -0
- package/dist/npm/expansionpanel/ExpansionPanelContent.js +50 -0
- package/dist/npm/expansionpanel/interfaces.d.ts +79 -0
- package/dist/npm/expansionpanel/interfaces.js +2 -0
- package/dist/npm/expansionpanel/main.d.ts +3 -0
- package/dist/npm/expansionpanel/main.js +36 -0
- package/dist/npm/main.d.ts +12 -0
- package/dist/npm/main.js +12 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/stepper/interfaces/StepProps.d.ts +0 -4
- package/dist/npm/stepper/interfaces/StepperProps.d.ts +0 -4
- package/package.json +11 -10
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as Vue from 'vue';
|
|
3
|
+
var allVue = Vue;
|
|
4
|
+
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
+
import { getTabIndex, validatePackage, Keys, getDefaultSlots, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
|
|
7
|
+
import { packageMetadata } from '../package-metadata.js';
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
var ExpansionPanelVue2 = {
|
|
13
|
+
name: 'KendoExpansionPanel',
|
|
14
|
+
props: {
|
|
15
|
+
dir: String,
|
|
16
|
+
id: String,
|
|
17
|
+
tabIndex: Number,
|
|
18
|
+
title: String,
|
|
19
|
+
subtitle: String,
|
|
20
|
+
titleRender: [String, Object, Function],
|
|
21
|
+
subtitleRender: [String, Object, Function],
|
|
22
|
+
expandIcon: String,
|
|
23
|
+
collapseIcon: String,
|
|
24
|
+
expanded: Boolean,
|
|
25
|
+
disabled: Boolean
|
|
26
|
+
},
|
|
27
|
+
created: function created() {
|
|
28
|
+
validatePackage(packageMetadata);
|
|
29
|
+
},
|
|
30
|
+
computed: {
|
|
31
|
+
wrapperClass: function wrapperClass() {
|
|
32
|
+
var _a = this.$props,
|
|
33
|
+
expanded = _a.expanded,
|
|
34
|
+
disabled = _a.disabled;
|
|
35
|
+
return {
|
|
36
|
+
'k-expander': true,
|
|
37
|
+
'k-expanded': expanded,
|
|
38
|
+
'k-focus': this.focused && !disabled,
|
|
39
|
+
'k-disabled': disabled
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
expandIconClass: function expandIconClass() {
|
|
43
|
+
var _a;
|
|
44
|
+
|
|
45
|
+
var _b = this.$props,
|
|
46
|
+
expanded = _b.expanded,
|
|
47
|
+
expandIcon = _b.expandIcon,
|
|
48
|
+
collapseIcon = _b.collapseIcon;
|
|
49
|
+
return _a = {
|
|
50
|
+
'k-icon': true,
|
|
51
|
+
'k-i-chevron-down': !expanded && !expandIcon,
|
|
52
|
+
'k-i-chevron-up': expanded && !collapseIcon
|
|
53
|
+
}, _a[expandIcon] = !expanded && Boolean(expandIcon), _a[collapseIcon] = expanded && Boolean(collapseIcon), _a;
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
data: function data() {
|
|
57
|
+
return {
|
|
58
|
+
focused: false
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
// @ts-ignore
|
|
62
|
+
setup: !isV3 ? undefined : function () {
|
|
63
|
+
var v3 = !!isV3;
|
|
64
|
+
return {
|
|
65
|
+
v3: v3
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
render: function render(createElement) {
|
|
69
|
+
var h = gh || createElement;
|
|
70
|
+
var defaultSlots = getDefaultSlots(this);
|
|
71
|
+
var _a = this.$props,
|
|
72
|
+
_b = _a.expanded,
|
|
73
|
+
expanded = _b === void 0 ? false : _b,
|
|
74
|
+
disabled = _a.disabled,
|
|
75
|
+
title = _a.title,
|
|
76
|
+
titleRender = _a.titleRender,
|
|
77
|
+
subtitle = _a.subtitle,
|
|
78
|
+
subtitleRender = _a.subtitleRender,
|
|
79
|
+
ariaControls = _a.ariaControls,
|
|
80
|
+
tabIndex = _a.tabIndex,
|
|
81
|
+
id = _a.id;
|
|
82
|
+
var titleTemplate = templateRendering.call(this, titleRender, getListeners.call(this));
|
|
83
|
+
var titleToRender = getTemplate.call(this, {
|
|
84
|
+
h: h,
|
|
85
|
+
template: titleTemplate,
|
|
86
|
+
defaultRendering: h("div", {
|
|
87
|
+
"class": "k-expander-title"
|
|
88
|
+
}, [title])
|
|
89
|
+
});
|
|
90
|
+
var subtitleTemplate = templateRendering.call(this, subtitleRender, getListeners.call(this));
|
|
91
|
+
var subtitleToRender = getTemplate.call(this, {
|
|
92
|
+
h: h,
|
|
93
|
+
template: subtitleTemplate,
|
|
94
|
+
defaultRendering: h("div", {
|
|
95
|
+
"class": "k-expander-sub-title"
|
|
96
|
+
}, [subtitle])
|
|
97
|
+
});
|
|
98
|
+
return h("div", {
|
|
99
|
+
"class": this.wrapperClass,
|
|
100
|
+
onFocusin: this.handleFocus,
|
|
101
|
+
on: this.v3 ? undefined : {
|
|
102
|
+
"focusin": this.handleFocus,
|
|
103
|
+
"focusout": this.handleBlur,
|
|
104
|
+
"keydown": this.onKeyDown
|
|
105
|
+
},
|
|
106
|
+
onFocusout: this.handleBlur,
|
|
107
|
+
id: id // dir={useRtl(elementRef, dir)}
|
|
108
|
+
,
|
|
109
|
+
attrs: this.v3 ? undefined : {
|
|
110
|
+
id: id
|
|
111
|
+
},
|
|
112
|
+
onKeydown: this.onKeyDown
|
|
113
|
+
}, [h("div", {
|
|
114
|
+
role: 'button',
|
|
115
|
+
attrs: this.v3 ? undefined : {
|
|
116
|
+
role: 'button',
|
|
117
|
+
"aria-controls": ariaControls,
|
|
118
|
+
"aria-expanded": expanded,
|
|
119
|
+
"aria-disabled": disabled,
|
|
120
|
+
tabIndex: getTabIndex(tabIndex, disabled)
|
|
121
|
+
},
|
|
122
|
+
ref: 'header',
|
|
123
|
+
"aria-controls": ariaControls,
|
|
124
|
+
"aria-expanded": expanded,
|
|
125
|
+
"aria-disabled": disabled,
|
|
126
|
+
tabIndex: getTabIndex(tabIndex, disabled),
|
|
127
|
+
"class": "k-expander-header",
|
|
128
|
+
onClick: this.onClick,
|
|
129
|
+
on: this.v3 ? undefined : {
|
|
130
|
+
"click": this.onClick
|
|
131
|
+
}
|
|
132
|
+
}, [titleToRender, h("span", {
|
|
133
|
+
"class": "k-spacer"
|
|
134
|
+
}), subtitleToRender, h("span", {
|
|
135
|
+
"class": "k-expander-indicator"
|
|
136
|
+
}, [h("span", {
|
|
137
|
+
"class": this.expandIconClass
|
|
138
|
+
})])]), defaultSlots]);
|
|
139
|
+
},
|
|
140
|
+
methods: {
|
|
141
|
+
onClick: function onClick(event) {
|
|
142
|
+
if (this.$props.disabled) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
this.$emit('action', {
|
|
147
|
+
event: event,
|
|
148
|
+
expanded: this.expanded
|
|
149
|
+
});
|
|
150
|
+
},
|
|
151
|
+
onKeyDown: function onKeyDown(event) {
|
|
152
|
+
if (this.$props.disabled) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if ((event.keyCode === Keys.enter || event.keyCode === Keys.space) && event.target === this.$refs.header) {
|
|
157
|
+
event.preventDefault();
|
|
158
|
+
this.$emit('action', {
|
|
159
|
+
event: event,
|
|
160
|
+
expanded: this.expanded
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
handleFocus: function handleFocus() {
|
|
165
|
+
if (this.$props.disabled) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
this.focused = true;
|
|
170
|
+
},
|
|
171
|
+
handleBlur: function handleBlur() {
|
|
172
|
+
if (this.$props.disabled) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
this.focused = false;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* @hidden
|
|
182
|
+
*/
|
|
183
|
+
|
|
184
|
+
var ExpansionPanel = ExpansionPanelVue2;
|
|
185
|
+
export { ExpansionPanel, ExpansionPanelVue2 };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export interface ExpansionPanelContentAll extends Vue2type {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
declare const ExpansionPanelContentVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ExpansionPanelContentAll>, {}, RecordPropsDefinition<{}>>;
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
declare let ExpansionPanelContent: DefineComponent<{}, any, {}, {}, {}, {}, {}, {}, string, {}, {}, {}>;
|
|
19
|
+
export { ExpansionPanelContent, ExpansionPanelContentVue2 };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as Vue from 'vue';
|
|
3
|
+
var allVue = Vue;
|
|
4
|
+
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
+
import { packageMetadata } from '../package-metadata.js';
|
|
7
|
+
import { getDefaultSlots, validatePackage } from '@progress/kendo-vue-common';
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
var ExpansionPanelContentVue2 = {
|
|
13
|
+
name: 'KendoExpansionPanelContent',
|
|
14
|
+
created: function created() {
|
|
15
|
+
validatePackage(packageMetadata);
|
|
16
|
+
},
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
setup: !isV3 ? undefined : function () {
|
|
19
|
+
var v3 = !!isV3;
|
|
20
|
+
return {
|
|
21
|
+
v3: v3
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
render: function render(createElement) {
|
|
25
|
+
var h = gh || createElement;
|
|
26
|
+
var defaultSlots = getDefaultSlots(this);
|
|
27
|
+
return h("div", {
|
|
28
|
+
"class": 'k-expander-content-wrapper'
|
|
29
|
+
}, [h("div", {
|
|
30
|
+
"class": 'k-expander-content'
|
|
31
|
+
}, [defaultSlots])]);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
var ExpansionPanelContent = ExpansionPanelContentVue2;
|
|
39
|
+
export { ExpansionPanelContent, ExpansionPanelContentVue2 };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ExpansionPanel ref.
|
|
3
|
+
*/
|
|
4
|
+
export interface ExpansionPanelHandle {
|
|
5
|
+
/**
|
|
6
|
+
* The ExpansionPanel element.
|
|
7
|
+
*/
|
|
8
|
+
element: HTMLDivElement | null;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The arguments for the `onAction` ExpansionPanel event.
|
|
12
|
+
*/
|
|
13
|
+
export interface ExpansionPanelActionEvent {
|
|
14
|
+
/**
|
|
15
|
+
* Represents the `expanded` state of the ExpansionPanel.
|
|
16
|
+
*/
|
|
17
|
+
expanded: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The props of the ExpansionPanel component.
|
|
21
|
+
*/
|
|
22
|
+
export interface ExpansionPanelProps {
|
|
23
|
+
/**
|
|
24
|
+
* Sets additional CSS classes to the ExpansionPanel.
|
|
25
|
+
*/
|
|
26
|
+
class?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Sets the `id` property of the root ExpansionPanel element.
|
|
29
|
+
*/
|
|
30
|
+
id?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Specifies the primary text in the header of the ExpansionPanel.
|
|
33
|
+
*/
|
|
34
|
+
title?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies the secondary text in the header of the ExpansionPanel, which is rendered next to the collapse/expand icon.
|
|
37
|
+
*/
|
|
38
|
+
subtitle?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the primary text template in the header of the ExpansionPanel.
|
|
41
|
+
*/
|
|
42
|
+
titleRender?: any;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the secondary text in the header of the ExpansionPanel, which is rendered next to the collapse/expand icon.
|
|
45
|
+
*/
|
|
46
|
+
subtitleRender?: any;
|
|
47
|
+
/**
|
|
48
|
+
* Sets a custom icon via css class(es), for the expanded state of the ExpansionPanel.
|
|
49
|
+
*/
|
|
50
|
+
expandIcon?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Sets a custom icon via css class(es), for the collapsed state of the ExpansionPanel.
|
|
53
|
+
*/
|
|
54
|
+
collapseIcon?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Sets the `dir` property of the ExpansionPanel.
|
|
57
|
+
*/
|
|
58
|
+
dir?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Sets the `tabIndex` property of the ExpansionPanel.
|
|
61
|
+
*/
|
|
62
|
+
tabIndex?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Sets the `expanded` state of the ExpansionPanel.
|
|
65
|
+
*/
|
|
66
|
+
expanded?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Sets the `disabled` state of the ExpansionPanel.
|
|
69
|
+
*/
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Sets `aria-controls`. The value should represent the `id` of the controlled content element.
|
|
73
|
+
*/
|
|
74
|
+
ariaControls?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The event handler that will be fired when the expanded state of the ExpansionPanel is about to change.
|
|
77
|
+
*/
|
|
78
|
+
onAction?: (event: ExpansionPanelActionEvent) => void;
|
|
79
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/main.d.ts
CHANGED
|
@@ -47,3 +47,15 @@ export * from './panelbar/interfaces/PanelBarProps';
|
|
|
47
47
|
export * from './panelbar/interfaces/PanelBarItemProps';
|
|
48
48
|
export * from './panelbar/interfaces/RenderPanelBarItem';
|
|
49
49
|
export * from './panelbar/interfaces/PanelBarSelectEventArguments';
|
|
50
|
+
export * from './appbar/AppBar';
|
|
51
|
+
export * from './appbar/interfaces/AppBarProps';
|
|
52
|
+
export * from './appbar/AppBarSection';
|
|
53
|
+
export * from './appbar/interfaces/AppBarSectionProps';
|
|
54
|
+
export * from './appbar/AppBarSpacer';
|
|
55
|
+
export * from './appbar/interfaces/AppBarSpacerProps';
|
|
56
|
+
export * from './bottomnavigation/BottomNavigation';
|
|
57
|
+
export * from './bottomnavigation/BottomNavigationProps';
|
|
58
|
+
export * from './bottomnavigation/BottomNavigationItemProps';
|
|
59
|
+
export * from './bottomnavigation/BottomNavigationItem';
|
|
60
|
+
export * from './bottomnavigation/models/events';
|
|
61
|
+
export * from './expansionpanel/main';
|
package/dist/esm/main.js
CHANGED
|
@@ -47,3 +47,15 @@ export * from './panelbar/interfaces/PanelBarProps.js';
|
|
|
47
47
|
export * from './panelbar/interfaces/PanelBarItemProps.js';
|
|
48
48
|
export * from './panelbar/interfaces/RenderPanelBarItem.js';
|
|
49
49
|
export * from './panelbar/interfaces/PanelBarSelectEventArguments.js';
|
|
50
|
+
export * from './appbar/AppBar.js';
|
|
51
|
+
export * from './appbar/interfaces/AppBarProps.js';
|
|
52
|
+
export * from './appbar/AppBarSection.js';
|
|
53
|
+
export * from './appbar/interfaces/AppBarSectionProps.js';
|
|
54
|
+
export * from './appbar/AppBarSpacer.js';
|
|
55
|
+
export * from './appbar/interfaces/AppBarSpacerProps.js';
|
|
56
|
+
export * from './bottomnavigation/BottomNavigation.js';
|
|
57
|
+
export * from './bottomnavigation/BottomNavigationProps.js';
|
|
58
|
+
export * from './bottomnavigation/BottomNavigationItemProps.js';
|
|
59
|
+
export * from './bottomnavigation/BottomNavigationItem.js';
|
|
60
|
+
export * from './bottomnavigation/models/events.js';
|
|
61
|
+
export * from './expansionpanel/main.js';
|
|
@@ -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: 1665149362,
|
|
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
|
};
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
* Represents the props of the [Kendo UI for Vue Step component]({% slug overview_stepper %}).
|
|
3
3
|
*/
|
|
4
4
|
export interface StepProps {
|
|
5
|
-
/**
|
|
6
|
-
* Represents the children that are passed to the Step.
|
|
7
|
-
*/
|
|
8
|
-
children?: any;
|
|
9
5
|
/**
|
|
10
6
|
* Specifies a list of CSS classes that will be added to the Step element.
|
|
11
7
|
*/
|
|
@@ -9,10 +9,6 @@ export interface StepperProps {
|
|
|
9
9
|
* Sets the duration of the Stepper animation. Defaults to `400ms`.
|
|
10
10
|
*/
|
|
11
11
|
animationDuration?: boolean | number;
|
|
12
|
-
/**
|
|
13
|
-
* Represents the children that are passed to the Stepper.
|
|
14
|
-
*/
|
|
15
|
-
children?: any;
|
|
16
12
|
/**
|
|
17
13
|
* Specifies a list of CSS classes that will be added to the Stepper.
|
|
18
14
|
*/
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
import { AppBarProps } from './interfaces/AppBarProps';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export interface AppBarState {
|
|
11
|
+
calculatedId: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export interface AppBarComputed {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
wrapperClass: object;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export interface AppBarMethods {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export interface AppBarData {
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export interface AppBarAll extends Vue2type, AppBarMethods, AppBarData, AppBarComputed, AppBarState {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
declare let AppBarVue2: ComponentOptions<AppBarAll, DefaultData<AppBarData>, DefaultMethods<AppBarAll>, AppBarComputed, RecordPropsDefinition<AppBarProps>>;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
declare const AppBar: DefineComponent<AppBarProps, any, AppBarData, AppBarComputed, AppBarMethods, {}, {}, {}, string, AppBarProps, AppBarProps, {}>;
|
|
44
|
+
export { AppBar, AppBarVue2 };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AppBarVue2 = exports.AppBar = void 0; // @ts-ignore
|
|
7
|
+
|
|
8
|
+
var Vue = require("vue");
|
|
9
|
+
|
|
10
|
+
var allVue = Vue;
|
|
11
|
+
var gh = allVue.h;
|
|
12
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
13
|
+
|
|
14
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
15
|
+
|
|
16
|
+
var package_metadata_1 = require("../package-metadata");
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
var AppBarVue2 = {
|
|
23
|
+
name: 'KendoAppBar',
|
|
24
|
+
props: {
|
|
25
|
+
id: String,
|
|
26
|
+
themeColor: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: 'light'
|
|
29
|
+
},
|
|
30
|
+
position: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: 'top',
|
|
33
|
+
validator: function validator(value) {
|
|
34
|
+
return ['top', 'bottom'].includes(value);
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
positionMode: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: 'static',
|
|
40
|
+
validator: function validator(value) {
|
|
41
|
+
return ['static', 'sticky', 'fixed'].includes(value);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
created: function created() {
|
|
46
|
+
(0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
|
|
47
|
+
this.calculatedId = (0, kendo_vue_common_1.guid)();
|
|
48
|
+
},
|
|
49
|
+
computed: {
|
|
50
|
+
wrapperClass: function wrapperClass() {
|
|
51
|
+
var _a = this.$props,
|
|
52
|
+
position = _a.position,
|
|
53
|
+
positionMode = _a.positionMode,
|
|
54
|
+
themeColor = _a.themeColor;
|
|
55
|
+
return {
|
|
56
|
+
'k-appbar': true,
|
|
57
|
+
'k-appbar-top': position === 'top',
|
|
58
|
+
'k-appbar-bottom': position === 'bottom',
|
|
59
|
+
'k-appbar-static': positionMode === 'static',
|
|
60
|
+
'k-appbar-sticky': positionMode === 'sticky',
|
|
61
|
+
'k-appbar-fixed': positionMode === 'fixed',
|
|
62
|
+
'k-appbar-light': themeColor === 'light',
|
|
63
|
+
'k-appbar-dark': themeColor === 'dark',
|
|
64
|
+
'k-appbar-inherit': themeColor === 'inherit'
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
// @ts-ignore
|
|
69
|
+
setup: !isV3 ? undefined : function () {
|
|
70
|
+
var v3 = !!isV3;
|
|
71
|
+
return {
|
|
72
|
+
v3: v3
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
render: function render(createElement) {
|
|
76
|
+
var h = gh || createElement;
|
|
77
|
+
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
78
|
+
var id = this.$props.id;
|
|
79
|
+
return h("div", {
|
|
80
|
+
"class": this.wrapperClass,
|
|
81
|
+
id: id || this.calculatedId,
|
|
82
|
+
attrs: this.v3 ? undefined : {
|
|
83
|
+
id: id || this.calculatedId
|
|
84
|
+
}
|
|
85
|
+
}, [defaultSlot]);
|
|
86
|
+
},
|
|
87
|
+
methods: {
|
|
88
|
+
focus: function focus() {
|
|
89
|
+
if (this.$el) {
|
|
90
|
+
(0, kendo_vue_common_1.focusFirstFocusableChild)(this.$el);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
exports.AppBarVue2 = AppBarVue2;
|
|
96
|
+
/**
|
|
97
|
+
* @hidden
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
var AppBar = AppBarVue2;
|
|
101
|
+
exports.AppBar = AppBar;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
import { AppBarSectionProps } from './interfaces/AppBarSectionProps';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export interface AppBarSectionState {
|
|
11
|
+
calculatedId: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export interface AppBarSectionComputed {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
wrapperClass: object;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export interface AppBarSectionMethods {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export interface AppBarSectionData {
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export interface AppBarSectionAll extends Vue2type, AppBarSectionMethods, AppBarSectionData, AppBarSectionComputed, AppBarSectionState {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
declare let AppBarSectionVue2: ComponentOptions<AppBarSectionAll, DefaultData<AppBarSectionData>, DefaultMethods<AppBarSectionAll>, AppBarSectionComputed, RecordPropsDefinition<AppBarSectionProps>>;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
declare const AppBarSection: DefineComponent<AppBarSectionProps, any, AppBarSectionData, AppBarSectionComputed, AppBarSectionMethods, {}, {}, {}, string, AppBarSectionProps, AppBarSectionProps, {}>;
|
|
44
|
+
export { AppBarSection, AppBarSectionVue2 };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AppBarSectionVue2 = exports.AppBarSection = void 0; // @ts-ignore
|
|
7
|
+
|
|
8
|
+
var Vue = require("vue");
|
|
9
|
+
|
|
10
|
+
var allVue = Vue;
|
|
11
|
+
var gh = allVue.h;
|
|
12
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
13
|
+
|
|
14
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
var AppBarSectionVue2 = {
|
|
21
|
+
name: 'KendoAppBarSection',
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
setup: !isV3 ? undefined : function () {
|
|
24
|
+
var v3 = !!isV3;
|
|
25
|
+
return {
|
|
26
|
+
v3: v3
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
render: function render(createElement) {
|
|
30
|
+
var h = gh || createElement;
|
|
31
|
+
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
32
|
+
return h("div", {
|
|
33
|
+
"class": 'k-appbar-section'
|
|
34
|
+
}, [defaultSlot]);
|
|
35
|
+
},
|
|
36
|
+
methods: {
|
|
37
|
+
focus: function focus() {
|
|
38
|
+
if (this.$el) {
|
|
39
|
+
(0, kendo_vue_common_1.focusFirstFocusableChild)(this.$el);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.AppBarSectionVue2 = AppBarSectionVue2;
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
var AppBarSection = AppBarSectionVue2;
|
|
50
|
+
exports.AppBarSection = AppBarSection;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
import { AppBarSpacerProps } from './interfaces/AppBarSpacerProps';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export interface AppBarSpacerState {
|
|
11
|
+
calculatedId: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export interface AppBarSpacerComputed {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
spacerClasses: object;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export interface AppBarSpacerMethods {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export interface AppBarSpacerData {
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export interface AppBarSpacerAll extends Vue2type, AppBarSpacerMethods, AppBarSpacerData, AppBarSpacerComputed, AppBarSpacerState {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
declare let AppBarSpacerVue2: ComponentOptions<AppBarSpacerAll, DefaultData<AppBarSpacerData>, DefaultMethods<AppBarSpacerAll>, AppBarSpacerComputed, RecordPropsDefinition<AppBarSpacerProps>>;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
declare const AppBarSpacer: DefineComponent<AppBarSpacerProps, any, AppBarSpacerData, AppBarSpacerComputed, AppBarSpacerMethods, {}, {}, {}, string, AppBarSpacerProps, AppBarSpacerProps, {}>;
|
|
44
|
+
export { AppBarSpacer, AppBarSpacerVue2 };
|