@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,124 @@
|
|
|
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';
|
|
7
|
+
import { getTemplate, validatePackage } from '@progress/kendo-vue-common';
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
var BottomNavigationItemVue2 = {
|
|
13
|
+
name: 'KendoBottomNavigationItem',
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
emits: {
|
|
16
|
+
'keydown': null,
|
|
17
|
+
'select': null
|
|
18
|
+
},
|
|
19
|
+
props: {
|
|
20
|
+
id: String,
|
|
21
|
+
disabled: Boolean,
|
|
22
|
+
selected: Boolean,
|
|
23
|
+
icon: String,
|
|
24
|
+
text: String,
|
|
25
|
+
dataItem: Object,
|
|
26
|
+
index: Number,
|
|
27
|
+
tabIndex: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 0
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
created: function created() {
|
|
33
|
+
validatePackage(packageMetadata);
|
|
34
|
+
},
|
|
35
|
+
computed: {
|
|
36
|
+
itemClasses: function itemClasses() {
|
|
37
|
+
var _a = this.$props,
|
|
38
|
+
selected = _a.selected,
|
|
39
|
+
disabled = _a.disabled;
|
|
40
|
+
return {
|
|
41
|
+
'k-bottom-nav-item': true,
|
|
42
|
+
'k-selected': selected,
|
|
43
|
+
'k-disabled': disabled
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
setup: !isV3 ? undefined : function () {
|
|
49
|
+
var v3 = !!isV3;
|
|
50
|
+
return {
|
|
51
|
+
v3: v3
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
render: function render(createElement) {
|
|
56
|
+
var h = gh || createElement;
|
|
57
|
+
var _a = this.$props,
|
|
58
|
+
selected = _a.selected,
|
|
59
|
+
disabled = _a.disabled,
|
|
60
|
+
item = _a.item,
|
|
61
|
+
dataItem = _a.dataItem,
|
|
62
|
+
id = _a.id,
|
|
63
|
+
index = _a.index,
|
|
64
|
+
tabIndex = _a.tabIndex;
|
|
65
|
+
var icon = dataItem.icon,
|
|
66
|
+
text = dataItem.text;
|
|
67
|
+
var content = getTemplate.call(this, {
|
|
68
|
+
h: h,
|
|
69
|
+
template: item,
|
|
70
|
+
defaultRendering: null,
|
|
71
|
+
additionalProps: {
|
|
72
|
+
itemIndex: index,
|
|
73
|
+
item: dataItem
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
var bottomNavItem = h("span", {
|
|
77
|
+
"class": this.itemClasses,
|
|
78
|
+
role: 'link',
|
|
79
|
+
attrs: this.v3 ? undefined : {
|
|
80
|
+
role: 'link',
|
|
81
|
+
id: id,
|
|
82
|
+
tabIndex: tabIndex,
|
|
83
|
+
"aria-selected": selected,
|
|
84
|
+
"aria-disabled": disabled
|
|
85
|
+
},
|
|
86
|
+
id: id,
|
|
87
|
+
tabIndex: tabIndex,
|
|
88
|
+
onClick: this.handleClick,
|
|
89
|
+
on: this.v3 ? undefined : {
|
|
90
|
+
"click": this.handleClick,
|
|
91
|
+
"keydown": this.handleKeyDown
|
|
92
|
+
},
|
|
93
|
+
onKeydown: this.handleKeyDown,
|
|
94
|
+
"aria-selected": selected,
|
|
95
|
+
"aria-disabled": disabled
|
|
96
|
+
}, [this.$props.item ? content : [icon && h("span", {
|
|
97
|
+
"class": "k-bottom-nav-item-icon k-icon k-i-".concat(icon)
|
|
98
|
+
}), text && h("span", {
|
|
99
|
+
"class": 'k-bottom-nav-item-text',
|
|
100
|
+
style: {
|
|
101
|
+
userSelect: 'none'
|
|
102
|
+
}
|
|
103
|
+
}, [text])]]);
|
|
104
|
+
return bottomNavItem;
|
|
105
|
+
},
|
|
106
|
+
methods: {
|
|
107
|
+
handleClick: function handleClick(event) {
|
|
108
|
+
if (this.index !== undefined && !this.disabled) {
|
|
109
|
+
this.$emit('select', event, this.index);
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
handleKeyDown: function handleKeyDown(event) {
|
|
113
|
+
if (this.index !== undefined && !this.disabled) {
|
|
114
|
+
this.$emit('keydown', event, this.index);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* @hidden
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
var BottomNavigationItem = BottomNavigationItemVue2;
|
|
124
|
+
export { BottomNavigationItem, BottomNavigationItemVue2 };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The interface for describing items that can be passed to the `items` property of the BottomNavigation component.
|
|
3
|
+
*/
|
|
4
|
+
export interface BottomNavigationItemProps {
|
|
5
|
+
/**
|
|
6
|
+
* Style the BottomNavigation item.
|
|
7
|
+
*/
|
|
8
|
+
style?: object;
|
|
9
|
+
/**
|
|
10
|
+
* Class the BottomNavigation item.
|
|
11
|
+
*/
|
|
12
|
+
class?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Disables the BottomNavigation item.
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Specifies if the BottomNavigation item is selected.
|
|
19
|
+
*/
|
|
20
|
+
selected?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the name for an existing icon in a KendoReact theme.
|
|
23
|
+
* The icon is rendered inside the BottomNavigation item by a `span.k-icon` element.
|
|
24
|
+
*/
|
|
25
|
+
icon?: any;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the text content of the BottomNavigation item.
|
|
28
|
+
*/
|
|
29
|
+
text?: any;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the `tabIndex` property of the BottomNavigation item. Defaults to `0`.
|
|
32
|
+
*/
|
|
33
|
+
tabIndex?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Sets a custom property. Contained in the BottomNavItem props that are returned from the `onSelect` BottomNavigation event.
|
|
36
|
+
*/
|
|
37
|
+
[customProp: string]: any;
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
index?: number;
|
|
42
|
+
/**
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
45
|
+
item?: any;
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
dataItem?: any;
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
*/
|
|
53
|
+
id?: string;
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { BottomNavigationItemProps } from './BottomNavigationItemProps';
|
|
2
|
+
import { BottomNavigationEvent, BottomNavigationSelectEvent } from './models/events';
|
|
3
|
+
/**
|
|
4
|
+
* Represents the props of the [KendoReact BottomNavigation component]({% slug overview_bottomnavigation %}).
|
|
5
|
+
*/
|
|
6
|
+
export interface BottomNavigationProps {
|
|
7
|
+
/**
|
|
8
|
+
* Sets the `id` property of the root BottomNavigation element.
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
|
|
13
|
+
*/
|
|
14
|
+
dir?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the theme color of the BottomNavigation
|
|
17
|
+
* ([see example]({% slug appearance_bottomnavigation %}#toc-theme-color)).
|
|
18
|
+
*
|
|
19
|
+
* The possible values are:
|
|
20
|
+
* * `primary` (Default) — Applies coloring based on the primary theme color.
|
|
21
|
+
* * `secondary` — Applies coloring based on the secondary theme color.
|
|
22
|
+
* * `tertiary` — Applies coloring based on the tertiary theme color.
|
|
23
|
+
* * `info` — Applies coloring based on the info theme color.
|
|
24
|
+
* * `success` — Applies coloring based on the success theme color.
|
|
25
|
+
* * `warning` — Applies coloring based on the warning theme color.
|
|
26
|
+
* * `error` — Applies coloring based on the error theme color.
|
|
27
|
+
* * `dark` — Applies coloring based on the dark theme color.
|
|
28
|
+
* * `light` — Applies coloring based on the light theme color.
|
|
29
|
+
* * `inverse` — Applies coloring based on the inverted theme color.
|
|
30
|
+
*/
|
|
31
|
+
themeColor?: BottomNavigationThemeColor | string;
|
|
32
|
+
/**
|
|
33
|
+
* The fill style of the BottomNavigation
|
|
34
|
+
* ([see example]({% slug appearance_bottomnavigation %}#toc-fill)).
|
|
35
|
+
*
|
|
36
|
+
* The possible values are:
|
|
37
|
+
* * `flat`(Default) — Sets the theme color as the text color. The background will be white.
|
|
38
|
+
* * `solid` — Sets the theme color as a background color.
|
|
39
|
+
*/
|
|
40
|
+
fill?: BottomNavigationFill | string;
|
|
41
|
+
/**
|
|
42
|
+
* Specifies the position and behavior of the BottomNavigation when the page is scrolled
|
|
43
|
+
* ([see example]({% slug positioning_bottomnavigation %}#toc-position-mode)).
|
|
44
|
+
*
|
|
45
|
+
* The possible values are:
|
|
46
|
+
* * `fixed`(Default) — The BottomNavigation always stays at the bottom of the viewport, regardless of the page scroll position.
|
|
47
|
+
* * `sticky` — Positions the BottomNavigation based on the user's scroll position. A sticky element toggles between static
|
|
48
|
+
* and fixed CSS [`position`](https://developer.mozilla.org/en-US/docs/Web/CSS/position) property, depending on the scroll position.
|
|
49
|
+
* It is positioned static until a given offset position is met in the viewport - then it "sticks" in place like `fixed` positionMode.
|
|
50
|
+
*/
|
|
51
|
+
positionMode?: BottomNavigationPositionMode | string;
|
|
52
|
+
/**
|
|
53
|
+
* Specifies how the icon and text label are positioned in each item of the BottomNavigation
|
|
54
|
+
* ([see example]({% slug content_types_bottomnavigation %}#toc-item-flow)).
|
|
55
|
+
*
|
|
56
|
+
* The possible values are:
|
|
57
|
+
* * `vertical`(Default) — Renders the text below the icon.
|
|
58
|
+
* * `horizontal` — Renders the text and the icon on the same line.
|
|
59
|
+
*/
|
|
60
|
+
itemFlow?: BottomNavigationItemFlow | string;
|
|
61
|
+
/**
|
|
62
|
+
* Sets a border to the BottomNavigation.
|
|
63
|
+
*/
|
|
64
|
+
border?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Disables the whole BottomNavigation.
|
|
67
|
+
*/
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* The index of the selected BottomNavigationItem.
|
|
71
|
+
*/
|
|
72
|
+
selected?: number;
|
|
73
|
+
/**
|
|
74
|
+
* The collection of items that will be rendered in the BottomNavigation ([see example]({% slug overview_bottomnavigation %})).
|
|
75
|
+
*/
|
|
76
|
+
items?: Array<BottomNavigationItemProps>;
|
|
77
|
+
/**
|
|
78
|
+
* Overrides the default component's content responsible for visualizing a single item
|
|
79
|
+
* ([see example]({% slug custom_rendering_bottomnavigation %}#toc-custom-rendering)).
|
|
80
|
+
*/
|
|
81
|
+
item?: any;
|
|
82
|
+
/**
|
|
83
|
+
* Fires when a BottomNavigation item is about to be rendered
|
|
84
|
+
* ([see example]({% slug custom_rendering_bottomnavigation %}#toc-item-render-property)).
|
|
85
|
+
* Used to override the default appearance of the items.
|
|
86
|
+
*/
|
|
87
|
+
itemRender?: any;
|
|
88
|
+
/**
|
|
89
|
+
* Fires when a BottomNavigation item is selected.
|
|
90
|
+
*/
|
|
91
|
+
onSelect?: (event: BottomNavigationSelectEvent) => void;
|
|
92
|
+
/**
|
|
93
|
+
* Triggered on `onKeyDown` event.
|
|
94
|
+
*/
|
|
95
|
+
onKeyDown?: (event: BottomNavigationEvent) => void;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* The fill style of the BottomNavigation
|
|
99
|
+
* ([see example]({% slug appearance_bottomnavigation %}#toc-fill)).
|
|
100
|
+
*
|
|
101
|
+
* The possible values are:
|
|
102
|
+
* * `flat`(Default) — Sets the theme color as the text color. The background will be white.
|
|
103
|
+
* * `solid` — Sets the theme color as a background color.
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
export declare type BottomNavigationFill = 'solid' | 'flat';
|
|
107
|
+
/**
|
|
108
|
+
* Specifies how the icon and text label are positioned in each item of the BottomNavigation
|
|
109
|
+
* ([see example]({% slug content_types_bottomnavigation %}#toc-item-flow)).
|
|
110
|
+
*
|
|
111
|
+
* The possible values are:
|
|
112
|
+
* * `vertical`(Default) — Renders the text below the icon.
|
|
113
|
+
* * `horizontal` — Renders the text and the icon on the same line.
|
|
114
|
+
*/
|
|
115
|
+
export declare type BottomNavigationItemFlow = 'vertical' | 'horizontal';
|
|
116
|
+
/**
|
|
117
|
+
* Specifies the theme color of the BottomNavigationThemeColor.
|
|
118
|
+
* ([see example]({% slug appearance_bottomnavigation %}#toc-theme-color)).
|
|
119
|
+
*
|
|
120
|
+
* The possible values are:
|
|
121
|
+
* * `primary` (Default) — Applies coloring based on the primary theme color.
|
|
122
|
+
* * `secondary` — Applies coloring based on the secondary theme color.
|
|
123
|
+
* * `tertiary` — Applies coloring based on the tertiary theme color.
|
|
124
|
+
* * `info` — Applies coloring based on the info theme color.
|
|
125
|
+
* * `success` — Applies coloring based on the success theme color.
|
|
126
|
+
* * `warning` — Applies coloring based on the warning theme color.
|
|
127
|
+
* * `error` — Applies coloring based on the error theme color.
|
|
128
|
+
* * `dark` — Applies coloring based on the dark theme color.
|
|
129
|
+
* * `light` — Applies coloring based on the light theme color.
|
|
130
|
+
* * `inverse` — Applies coloring based on the inverted theme color.
|
|
131
|
+
*/
|
|
132
|
+
export declare type BottomNavigationThemeColor = 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
|
|
133
|
+
/**
|
|
134
|
+
* Specifies the position and behavior of the BottomNavigation when the page is scrolled
|
|
135
|
+
* ([see example]({% slug positioning_bottomnavigation %}#toc-position-mode)).
|
|
136
|
+
*
|
|
137
|
+
* The possible values are:
|
|
138
|
+
* * `fixed`(Default) — The BottomNavigation always stays at the bottom of the viewport, regardless of the page scroll position.
|
|
139
|
+
* * `sticky` — Positions the BottomNavigation based on the user's scroll position. A sticky element toggles between
|
|
140
|
+
* static and fixed CSS [`position`](https://developer.mozilla.org/en-US/docs/Web/CSS/position) property, depending on the scroll position.
|
|
141
|
+
* It is positioned static until a given offset position is met in the viewport - then it "sticks" in place like `fixed` positionMode.
|
|
142
|
+
*/
|
|
143
|
+
export declare type BottomNavigationPositionMode = 'sticky' | 'fixed';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The arguments for the `onSelect` BottomNavigation event.
|
|
3
|
+
*/
|
|
4
|
+
export interface BottomNavigationSelectEvent {
|
|
5
|
+
/**
|
|
6
|
+
* A BottomNavigation item event target.
|
|
7
|
+
*/
|
|
8
|
+
itemTarget: any;
|
|
9
|
+
/**
|
|
10
|
+
* The index of the selected BottomNavigation item.
|
|
11
|
+
*/
|
|
12
|
+
itemIndex: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Represents the return type of the BottomNavigation events.
|
|
16
|
+
*/
|
|
17
|
+
export interface BottomNavigationEvent {
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export declare const THEME_COLOR_CLASSES: {
|
|
5
|
+
primary: string;
|
|
6
|
+
secondary: string;
|
|
7
|
+
tertiary: string;
|
|
8
|
+
info: string;
|
|
9
|
+
success: string;
|
|
10
|
+
warning: string;
|
|
11
|
+
error: string;
|
|
12
|
+
dark: string;
|
|
13
|
+
light: string;
|
|
14
|
+
inverse: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export declare const FILL_CLASSES: {
|
|
20
|
+
flat: string;
|
|
21
|
+
solid: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export declare const ITEM_FLOW_CLASSES: {
|
|
27
|
+
vertical: string;
|
|
28
|
+
horizontal: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
export declare const POSITION_MODE_CLASSES: {
|
|
34
|
+
fixed: string;
|
|
35
|
+
sticky: string;
|
|
36
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export var THEME_COLOR_CLASSES = {
|
|
5
|
+
'primary': 'k-bottom-nav-primary',
|
|
6
|
+
'secondary': 'k-bottom-nav-secondary',
|
|
7
|
+
'tertiary': 'k-bottom-nav-tertiary',
|
|
8
|
+
'info': 'k-bottom-nav-info',
|
|
9
|
+
'success': 'k-bottom-nav-success',
|
|
10
|
+
'warning': 'k-bottom-nav-warning',
|
|
11
|
+
'error': 'k-bottom-nav-error',
|
|
12
|
+
'dark': 'k-bottom-nav-dark',
|
|
13
|
+
'light': 'k-bottom-nav-light',
|
|
14
|
+
'inverse': 'k-bottom-nav-inverse'
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export var FILL_CLASSES = {
|
|
20
|
+
'flat': 'k-bottom-nav-flat',
|
|
21
|
+
'solid': 'k-bottom-nav-solid'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export var ITEM_FLOW_CLASSES = {
|
|
27
|
+
'vertical': 'k-bottom-nav-item-flow-vertical',
|
|
28
|
+
'horizontal': 'k-bottom-nav-item-flow-horizontal'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
export var POSITION_MODE_CLASSES = {
|
|
34
|
+
'fixed': 'k-pos-fixed',
|
|
35
|
+
'sticky': 'k-pos-sticky'
|
|
36
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { ExpansionPanelProps } from './interfaces';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
interface ExpansionPanelState {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
interface ExpansionPanelData {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export interface ExpansionPanelMethods {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export interface ExpansionPanelComputed {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
export interface ExpansionPanelAll extends ExpansionPanelMethods, ExpansionPanelState, ExpansionPanelData, ExpansionPanelComputed, Vue2type {
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
declare const ExpansionPanelVue2: ComponentOptions<Vue2type, DefaultData<ExpansionPanelData>, DefaultMethods<ExpansionPanelAll>, ExpansionPanelComputed, RecordPropsDefinition<ExpansionPanelProps>>;
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
declare let ExpansionPanel: DefineComponent<ExpansionPanelProps, any, ExpansionPanelData, ExpansionPanelComputed, ExpansionPanelMethods, {}, {}, {}, string, ExpansionPanelProps, ExpansionPanelProps, {}>;
|
|
42
|
+
export { ExpansionPanel, ExpansionPanelVue2 };
|
|
@@ -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';
|
|
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 };
|