@progress/kendo-vue-layout 8.0.3-develop.1 → 8.0.3-develop.3
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/actionsheet/ActionSheet.d.ts +234 -0
- package/actionsheet/ActionSheetContent.d.ts +25 -0
- package/actionsheet/ActionSheetFooter.d.ts +25 -0
- package/actionsheet/ActionSheetHeader.d.ts +34 -0
- package/actionsheet/ActionSheetItem.d.ts +65 -0
- package/actionsheet/interfaces/ActionSheetContentProps.d.ts +16 -0
- package/actionsheet/interfaces/ActionSheetFooterProps.d.ts +16 -0
- package/actionsheet/interfaces/ActionSheetHeaderProps.d.ts +20 -0
- package/actionsheet/interfaces/ActionSheetItemProps.d.ts +81 -0
- package/appbar/AppBar.d.ts +60 -0
- package/appbar/AppBarSection.d.ts +21 -0
- package/appbar/AppBarSpacer.d.ts +30 -0
- package/appbar/interfaces/AppBarProps.d.ts +74 -0
- package/appbar/interfaces/AppBarSectionProps.d.ts +12 -0
- package/appbar/interfaces/AppBarSpacerProps.d.ts +14 -0
- package/bottomnavigation/BottomNavigation.d.ts +117 -0
- package/bottomnavigation/BottomNavigationItem.d.ts +59 -0
- package/bottomnavigation/BottomNavigationItemProps.d.ts +61 -0
- package/bottomnavigation/BottomNavigationProps.d.ts +154 -0
- package/bottomnavigation/models/events.d.ts +25 -0
- package/bottomnavigation/models/utils.d.ts +43 -0
- package/breadcrumb/Breadcrumb.d.ts +143 -0
- package/breadcrumb/BreadcrumbDelimiter.d.ts +21 -0
- package/breadcrumb/BreadcrumbLink.d.ts +63 -0
- package/breadcrumb/BreadcrumbListItem.d.ts +30 -0
- package/breadcrumb/BreadcrumbOrderedList.d.ts +42 -0
- package/breadcrumb/interfaces/BreadcrumbDelimiterProps.d.ts +24 -0
- package/breadcrumb/interfaces/BreadcrumbLinkProps.d.ts +61 -0
- package/breadcrumb/interfaces/BreadcrumbListItemProps.d.ts +24 -0
- package/breadcrumb/interfaces/BreadcrumbOrderedListProps.d.ts +42 -0
- package/breadcrumb/interfaces/BreadcrumbProps.d.ts +138 -0
- package/card/Avatar.d.ts +76 -0
- package/card/Card.d.ts +50 -0
- package/card/CardActions.d.ts +52 -0
- package/card/CardBody.d.ts +12 -0
- package/card/CardFooter.d.ts +12 -0
- package/card/CardHeader.d.ts +12 -0
- package/card/CardImage.d.ts +17 -0
- package/card/CardSubtitle.d.ts +12 -0
- package/card/CardTitle.d.ts +12 -0
- package/card/interfaces/AvatarProps.d.ts +79 -0
- package/card/interfaces/CardActionsProps.d.ts +29 -0
- package/card/interfaces/CardBodyProps.d.ts +9 -0
- package/card/interfaces/CardFooterProps.d.ts +9 -0
- package/card/interfaces/CardHeaderProps.d.ts +9 -0
- package/card/interfaces/CardImageProps.d.ts +13 -0
- package/card/interfaces/CardProps.d.ts +34 -0
- package/card/interfaces/CardSubtitleProps.d.ts +9 -0
- package/card/interfaces/CardTitleProps.d.ts +9 -0
- package/card/interfaces/Enums.d.ts +39 -0
- package/card/interfaces/Enums.js +1 -1
- package/card/interfaces/Enums.mjs +5 -5
- package/dist/cdn/js/kendo-vue-layout.js +1 -1
- package/drawer/Drawer.d.ts +148 -0
- package/drawer/DrawerContent.d.ts +84 -0
- package/drawer/DrawerItem.d.ts +81 -0
- package/drawer/DrawerNavigation.d.ts +47 -0
- package/drawer/context/DrawerContext.d.ts +24 -0
- package/drawer/interfaces/DrawerAnimation.d.ts +21 -0
- package/drawer/interfaces/DrawerContentProps.d.ts +12 -0
- package/drawer/interfaces/DrawerItemHandle.d.ts +24 -0
- package/drawer/interfaces/DrawerItemProps.d.ts +55 -0
- package/drawer/interfaces/DrawerNavigationProps.d.ts +21 -0
- package/drawer/interfaces/DrawerProps.d.ts +92 -0
- package/drawer/interfaces/DrawerSelectEvent.d.ts +20 -0
- package/expansionpanel/ExpansionPanel.d.ts +59 -0
- package/expansionpanel/ExpansionPanel.mjs +1 -1
- package/expansionpanel/ExpansionPanelContent.d.ts +12 -0
- package/expansionpanel/interfaces.d.ts +95 -0
- package/expansionpanel/main.d.ts +10 -0
- package/gridlayout/GridLayout.d.ts +61 -0
- package/gridlayout/GridLayoutItem.d.ts +35 -0
- package/gridlayout/interfaces/GridLayoutColumnProps.d.ts +17 -0
- package/gridlayout/interfaces/GridLayoutItemProps.d.ts +46 -0
- package/gridlayout/interfaces/GridLayoutProps.d.ts +102 -0
- package/gridlayout/interfaces/GridLayoutRowProps.d.ts +17 -0
- package/index.d.mts +86 -4954
- package/index.d.ts +86 -4954
- package/menu/BaseMenuItemInternalProps.d.ts +27 -0
- package/menu/MenuProps.d.ts +58 -0
- package/menu/components/Menu.d.ts +117 -0
- package/menu/components/MenuItemArrow.d.ts +52 -0
- package/menu/components/MenuItemArrow.mjs +2 -2
- package/menu/components/MenuItemInternal.d.ts +173 -0
- package/menu/components/MenuItemLink.d.ts +53 -0
- package/menu/consts.d.ts +61 -0
- package/menu/events.d.ts +21 -0
- package/menu/models/BaseMenuItem.d.ts +65 -0
- package/menu/models/MenuItemModel.d.ts +26 -0
- package/menu/utils/DirectionHolder.d.ts +18 -0
- package/menu/utils/MouseOverHandler.d.ts +24 -0
- package/menu/utils/getNewItemIdUponKeyboardNavigation.d.ts +14 -0
- package/menu/utils/hoverDelay.d.ts +16 -0
- package/menu/utils/itemsIdsUtils.d.ts +71 -0
- package/menu/utils/itemsIdsUtils.mjs +49 -49
- package/menu/utils/misc.d.ts +23 -0
- package/menu/utils/prepareInputItemsForInternalWork.d.ts +12 -0
- package/messages/main.d.ts +22 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +15 -9
- package/panelbar/PanelBar.d.ts +88 -0
- package/panelbar/PanelBarItem.d.ts +87 -0
- package/panelbar/interfaces/NavigationAction.d.ts +15 -0
- package/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +14 -0
- package/panelbar/interfaces/PanelBarItemProps.d.ts +97 -0
- package/panelbar/interfaces/PanelBarProps.d.ts +65 -0
- package/panelbar/interfaces/PanelBarSelectEventArguments.d.ts +20 -0
- package/panelbar/interfaces/RenderPanelBarItem.d.ts +21 -0
- package/panelbar/util.d.ts +42 -0
- package/splitter/Splitter.d.ts +170 -0
- package/splitter/SplitterBar.d.ts +72 -0
- package/splitter/SplitterPane.d.ts +101 -0
- package/stacklayout/StackLayout.d.ts +64 -0
- package/stacklayout/StackLayoutProps.d.ts +82 -0
- package/stepper/Step.d.ts +120 -0
- package/stepper/Stepper.d.ts +195 -0
- package/stepper/contants.d.ts +15 -0
- package/stepper/context/StepperContext.d.ts +23 -0
- package/stepper/interfaces/StepChangeEvent.d.ts +16 -0
- package/stepper/interfaces/StepFocusEvent.d.ts +12 -0
- package/stepper/interfaces/StepHandle.d.ts +20 -0
- package/stepper/interfaces/StepProps.d.ts +91 -0
- package/stepper/interfaces/StepperChangeEvent.d.ts +16 -0
- package/stepper/interfaces/StepperFocusEvent.d.ts +12 -0
- package/stepper/interfaces/StepperHandle.d.ts +20 -0
- package/stepper/interfaces/StepperOnNavigateEvent.d.ts +30 -0
- package/stepper/interfaces/StepperProps.d.ts +95 -0
- package/stepper/messages/main.d.ts +22 -0
- package/tabstrip/TabStrip.d.ts +171 -0
- package/tabstrip/TabStripContent.d.ts +71 -0
- package/tabstrip/TabStripNavigation.d.ts +101 -0
- package/tabstrip/TabStripNavigationItem.d.ts +118 -0
- package/tabstrip/TabStripTab.d.ts +59 -0
- package/tabstrip/utils.d.ts +8 -0
- package/tilelayout/ResizeHandlers.d.ts +84 -0
- package/tilelayout/Tile.d.ts +105 -0
- package/tilelayout/TileLayout.d.ts +126 -0
- package/tilelayout/interfaces/main.d.ts +205 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DrawerSelectEvent } from './interfaces/DrawerSelectEvent';
|
|
9
|
+
import { PropType } from 'vue';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface DrawerComputed {
|
|
14
|
+
drawerClassNames: object;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
declare const Drawer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
20
|
+
animation: {
|
|
21
|
+
type: PropType<boolean | import('..').DrawerAnimation>;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
expanded: {
|
|
25
|
+
type: PropType<boolean>;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
dir: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
item: PropType<any>;
|
|
33
|
+
navigationHeader: PropType<Object | Function | String>;
|
|
34
|
+
navigationFooter: PropType<Object | Function | String>;
|
|
35
|
+
navigationContent: PropType<Object | Function | String>;
|
|
36
|
+
mode: {
|
|
37
|
+
type: PropType<string>;
|
|
38
|
+
default: string;
|
|
39
|
+
validator: (value: string) => any;
|
|
40
|
+
};
|
|
41
|
+
position: {
|
|
42
|
+
type: PropType<string>;
|
|
43
|
+
default: string;
|
|
44
|
+
validator: (value: string) => any;
|
|
45
|
+
};
|
|
46
|
+
items: {
|
|
47
|
+
type: PropType<import('..').DrawerItemProps[]>;
|
|
48
|
+
default: any[];
|
|
49
|
+
};
|
|
50
|
+
mini: {
|
|
51
|
+
type: PropType<boolean>;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
tabIndex: PropType<number>;
|
|
55
|
+
width: {
|
|
56
|
+
type: PropType<number>;
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
miniWidth: {
|
|
60
|
+
type: PropType<number>;
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
}>, {}, {
|
|
64
|
+
currentDir: string;
|
|
65
|
+
drawer: {
|
|
66
|
+
expanded: boolean;
|
|
67
|
+
mode: string;
|
|
68
|
+
dir: Function;
|
|
69
|
+
position: string;
|
|
70
|
+
animation: boolean | import('..').DrawerAnimation;
|
|
71
|
+
mini: boolean;
|
|
72
|
+
width: number;
|
|
73
|
+
miniWidth: number;
|
|
74
|
+
items: import('..').DrawerItemProps[];
|
|
75
|
+
item: any;
|
|
76
|
+
};
|
|
77
|
+
showLicenseWatermark: boolean;
|
|
78
|
+
licenseMessage: any;
|
|
79
|
+
}, {
|
|
80
|
+
drawerClassNames(): DrawerComputed['drawerClassNames'];
|
|
81
|
+
}, {
|
|
82
|
+
focus(): void;
|
|
83
|
+
handleSelect(itemTarget: any, itemIndex: number): void;
|
|
84
|
+
onOverlayClick(e: any): void;
|
|
85
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
86
|
+
select: (event: DrawerSelectEvent) => true;
|
|
87
|
+
overlayclick: any;
|
|
88
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
89
|
+
animation: {
|
|
90
|
+
type: PropType<boolean | import('..').DrawerAnimation>;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
expanded: {
|
|
94
|
+
type: PropType<boolean>;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
dir: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
item: PropType<any>;
|
|
102
|
+
navigationHeader: PropType<Object | Function | String>;
|
|
103
|
+
navigationFooter: PropType<Object | Function | String>;
|
|
104
|
+
navigationContent: PropType<Object | Function | String>;
|
|
105
|
+
mode: {
|
|
106
|
+
type: PropType<string>;
|
|
107
|
+
default: string;
|
|
108
|
+
validator: (value: string) => any;
|
|
109
|
+
};
|
|
110
|
+
position: {
|
|
111
|
+
type: PropType<string>;
|
|
112
|
+
default: string;
|
|
113
|
+
validator: (value: string) => any;
|
|
114
|
+
};
|
|
115
|
+
items: {
|
|
116
|
+
type: PropType<import('..').DrawerItemProps[]>;
|
|
117
|
+
default: any[];
|
|
118
|
+
};
|
|
119
|
+
mini: {
|
|
120
|
+
type: PropType<boolean>;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
tabIndex: PropType<number>;
|
|
124
|
+
width: {
|
|
125
|
+
type: PropType<number>;
|
|
126
|
+
default: number;
|
|
127
|
+
};
|
|
128
|
+
miniWidth: {
|
|
129
|
+
type: PropType<number>;
|
|
130
|
+
default: number;
|
|
131
|
+
};
|
|
132
|
+
}>> & Readonly<{
|
|
133
|
+
onSelect?: (event: DrawerSelectEvent) => any;
|
|
134
|
+
onOverlayclick?: (...args: any[] | unknown[]) => any;
|
|
135
|
+
}>, {
|
|
136
|
+
width: number;
|
|
137
|
+
animation: boolean | import('..').DrawerAnimation;
|
|
138
|
+
position: string;
|
|
139
|
+
mode: string;
|
|
140
|
+
dir: string;
|
|
141
|
+
expanded: boolean;
|
|
142
|
+
mini: boolean;
|
|
143
|
+
miniWidth: number;
|
|
144
|
+
items: import('..').DrawerItemProps[];
|
|
145
|
+
}, {}, {}, {}, string, () => {
|
|
146
|
+
kendoDrawer: any;
|
|
147
|
+
}, true, {}, any>;
|
|
148
|
+
export { Drawer };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
declare const DrawerContent: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
/**
|
|
13
|
+
* Represents the [Kendo UI for Vue Drawer component]({% slug overview_drawer %}).
|
|
14
|
+
*
|
|
15
|
+
* ```jsx
|
|
16
|
+
* <template>
|
|
17
|
+
* <div>
|
|
18
|
+
* <Drawer
|
|
19
|
+
* :expanded="expanded"
|
|
20
|
+
* :position="position"
|
|
21
|
+
* :mode="mode"
|
|
22
|
+
* :items="
|
|
23
|
+
* items.map((item, index) => ({
|
|
24
|
+
* ...item,
|
|
25
|
+
* selected: index === selectedId,
|
|
26
|
+
* }))
|
|
27
|
+
* "
|
|
28
|
+
* @select="handleSelect"
|
|
29
|
+
* >
|
|
30
|
+
* <DrawerContent>
|
|
31
|
+
* <k-button @click="handleClick"> Toggle the drawer state </k-button>
|
|
32
|
+
* </DrawerContent>
|
|
33
|
+
* </Drawer>
|
|
34
|
+
* </div>
|
|
35
|
+
* </template>
|
|
36
|
+
*
|
|
37
|
+
* <script>
|
|
38
|
+
* import { Drawer, DrawerContent } from "@progress/kendo-vue-layout";
|
|
39
|
+
* import { Button } from "@progress/kendo-vue-buttons";
|
|
40
|
+
* import "./styles.css";
|
|
41
|
+
*
|
|
42
|
+
* export default {
|
|
43
|
+
* name: "App",
|
|
44
|
+
* components: { Drawer, DrawerContent, "k-button": Button },
|
|
45
|
+
* data() {
|
|
46
|
+
* return {
|
|
47
|
+
* items: [
|
|
48
|
+
* {
|
|
49
|
+
* text: "Inbox",
|
|
50
|
+
* icon: "inbox",
|
|
51
|
+
* selected: true,
|
|
52
|
+
* },
|
|
53
|
+
* {
|
|
54
|
+
* text: "Calendar",
|
|
55
|
+
* icon: "calendar",
|
|
56
|
+
* },
|
|
57
|
+
* {
|
|
58
|
+
* text: "Attachments",
|
|
59
|
+
* icon: "hyperlink-email",
|
|
60
|
+
* },
|
|
61
|
+
* {
|
|
62
|
+
* text: "Favourites",
|
|
63
|
+
* icon: "star-outline",
|
|
64
|
+
* },
|
|
65
|
+
* ],
|
|
66
|
+
* expanded: true,
|
|
67
|
+
* selectedId: 0,
|
|
68
|
+
* position: "start",
|
|
69
|
+
* mode: "push",
|
|
70
|
+
* };
|
|
71
|
+
* },
|
|
72
|
+
* methods: {
|
|
73
|
+
* handleClick(e) {
|
|
74
|
+
* this.expanded = !this.expanded;
|
|
75
|
+
* },
|
|
76
|
+
* handleSelect(e) {
|
|
77
|
+
* this.selectedId = e.itemIndex;
|
|
78
|
+
* },
|
|
79
|
+
* },
|
|
80
|
+
* };
|
|
81
|
+
* </script>
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
export { DrawerContent };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface DrawerItemComputed {
|
|
13
|
+
itemClassNames: object;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
declare const DrawerItem: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
19
|
+
index: PropType<number>;
|
|
20
|
+
text: PropType<string>;
|
|
21
|
+
icon: PropType<string>;
|
|
22
|
+
svgIcon: PropType<import('@progress/kendo-vue-common').SVGIcon>;
|
|
23
|
+
separator: PropType<boolean>;
|
|
24
|
+
selected: PropType<boolean>;
|
|
25
|
+
disabled: PropType<boolean>;
|
|
26
|
+
targetItem: PropType<any>;
|
|
27
|
+
}>, {}, {}, {
|
|
28
|
+
itemClassNames(): DrawerItemComputed['itemClassNames'];
|
|
29
|
+
}, {
|
|
30
|
+
focus(e: any): void;
|
|
31
|
+
handleClick(): void;
|
|
32
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
|
+
click: any;
|
|
34
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
35
|
+
index: PropType<number>;
|
|
36
|
+
text: PropType<string>;
|
|
37
|
+
icon: PropType<string>;
|
|
38
|
+
svgIcon: PropType<import('@progress/kendo-vue-common').SVGIcon>;
|
|
39
|
+
separator: PropType<boolean>;
|
|
40
|
+
selected: PropType<boolean>;
|
|
41
|
+
disabled: PropType<boolean>;
|
|
42
|
+
targetItem: PropType<any>;
|
|
43
|
+
}>> & Readonly<{
|
|
44
|
+
onClick?: (...args: any[] | unknown[]) => any;
|
|
45
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
46
|
+
/**
|
|
47
|
+
* Represents the [Kendo UI for Vue Drawer component]({% slug overview_drawer %}).
|
|
48
|
+
*
|
|
49
|
+
* ```jsx
|
|
50
|
+
* <Drawer
|
|
51
|
+
* :expanded="expanded"
|
|
52
|
+
* :position="position"
|
|
53
|
+
* :mode="mode"
|
|
54
|
+
* :mini="true"
|
|
55
|
+
* :width="175"
|
|
56
|
+
* :items="
|
|
57
|
+
* items.map((item, index) => ({
|
|
58
|
+
* ...item,
|
|
59
|
+
* selected: index === selectedId,
|
|
60
|
+
* }))
|
|
61
|
+
* "
|
|
62
|
+
* :item="'CustomItem'"
|
|
63
|
+
* @select="onSelect"
|
|
64
|
+
* >
|
|
65
|
+
* <template v-slot:CustomItem="{ props }">
|
|
66
|
+
* <DrawerItem v-bind="props" @click="props.onClick">
|
|
67
|
+
* <span :class="'k-icon flag ' + props.flag" />
|
|
68
|
+
* <div class="item-descr-wrap">
|
|
69
|
+
* <div>{{ props.text }}</div>
|
|
70
|
+
* <span class="item-descr">Capital of {{ props.country }}</span>
|
|
71
|
+
* </div>
|
|
72
|
+
* </DrawerItem>
|
|
73
|
+
* </template>
|
|
74
|
+
* <DrawerContent>
|
|
75
|
+
* <router-view />
|
|
76
|
+
* </DrawerContent>
|
|
77
|
+
* </Drawer>
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
export { DrawerItem };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface DrawerNavigationState {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export interface DrawerNavigationComputed {
|
|
18
|
+
navigationClassNames: object;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
declare const DrawerNavigation: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
24
|
+
item: PropType<any>;
|
|
25
|
+
header: PropType<any>;
|
|
26
|
+
footer: PropType<any>;
|
|
27
|
+
content: PropType<any>;
|
|
28
|
+
tabIndex: PropType<number>;
|
|
29
|
+
showLicenseWatermark: PropType<boolean>;
|
|
30
|
+
licenseMessage: PropType<string>;
|
|
31
|
+
onSelect: PropType<(event: import('..').DrawerSelectEvent) => void>;
|
|
32
|
+
}>, {}, {}, {
|
|
33
|
+
navigationClassNames(): DrawerNavigationComputed['navigationClassNames'];
|
|
34
|
+
}, {
|
|
35
|
+
focus(e: any): void;
|
|
36
|
+
onDrawerItemSelect(e: any, index: number): void;
|
|
37
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
38
|
+
item: PropType<any>;
|
|
39
|
+
header: PropType<any>;
|
|
40
|
+
footer: PropType<any>;
|
|
41
|
+
content: PropType<any>;
|
|
42
|
+
tabIndex: PropType<number>;
|
|
43
|
+
showLicenseWatermark: PropType<boolean>;
|
|
44
|
+
licenseMessage: PropType<string>;
|
|
45
|
+
onSelect: PropType<(event: import('..').DrawerSelectEvent) => void>;
|
|
46
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
export { DrawerNavigation };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DrawerAnimation } from '../interfaces/DrawerAnimation';
|
|
9
|
+
import { DrawerItemProps } from '../interfaces/DrawerItemProps';
|
|
10
|
+
/** @hidden */
|
|
11
|
+
export type DrawerContextType = {
|
|
12
|
+
animation?: boolean | DrawerAnimation;
|
|
13
|
+
expanded?: boolean;
|
|
14
|
+
mode?: 'overlay' | 'push';
|
|
15
|
+
position?: 'start' | 'end';
|
|
16
|
+
mini?: boolean;
|
|
17
|
+
dir?: string;
|
|
18
|
+
items?: Array<DrawerItemProps>;
|
|
19
|
+
item?: any;
|
|
20
|
+
width?: number;
|
|
21
|
+
miniWidth?: number;
|
|
22
|
+
onOverlayClick?: (event: any) => void;
|
|
23
|
+
onSelect?: (target: any, idx: number) => void;
|
|
24
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the animation settings of the Drawer.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export interface DrawerAnimation {
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the type of the Drawer animation.
|
|
15
|
+
*/
|
|
16
|
+
type?: 'slide';
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the duration of the Drawer animation ([see example]({% slug display_modes_drawer %}#toc-expand-modes)) .
|
|
19
|
+
*/
|
|
20
|
+
duration: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The properties of the [Kendo UI for Vue DrawerContent component]({% slug overview_drawer %}).
|
|
10
|
+
*/
|
|
11
|
+
export interface DrawerContentProps {
|
|
12
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The DrawerItem ref.
|
|
10
|
+
*/
|
|
11
|
+
export interface DrawerItemHandle {
|
|
12
|
+
/**
|
|
13
|
+
* The DrawerItem element.
|
|
14
|
+
*/
|
|
15
|
+
element: any;
|
|
16
|
+
/**
|
|
17
|
+
* Focus the DrawerItem.
|
|
18
|
+
*/
|
|
19
|
+
focus: (e: any) => void;
|
|
20
|
+
/**
|
|
21
|
+
* The props of the DrawerItem.
|
|
22
|
+
*/
|
|
23
|
+
props?: any;
|
|
24
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
9
|
+
/**
|
|
10
|
+
* An interface for the Drawer items.
|
|
11
|
+
*/
|
|
12
|
+
export interface DrawerItemProps {
|
|
13
|
+
/**
|
|
14
|
+
* Specifies if the Drawer item is disabled.
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the name for an existing icon in a Kendo UI for Vue theme.
|
|
19
|
+
* The icon is rendered inside the Drawer item by a `span.k-icon` element.
|
|
20
|
+
*/
|
|
21
|
+
icon?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Defines an SVGIcon to be rendered within the Drawer item.
|
|
24
|
+
*/
|
|
25
|
+
svgIcon?: SVGIcon;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies if the Drawer item is initially selected.
|
|
28
|
+
*/
|
|
29
|
+
selected?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Specifies if this is a separator item.
|
|
32
|
+
*/
|
|
33
|
+
separator?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Specifies the text content of the Drawer item.
|
|
36
|
+
*/
|
|
37
|
+
text?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the index of the DrawerItem that is used to identify it.
|
|
40
|
+
*/
|
|
41
|
+
index?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Sets the `tabIndex` property of the DrawerItem.
|
|
44
|
+
* Defaults to `0`.
|
|
45
|
+
*/
|
|
46
|
+
tabIndex?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Sets a custom property. Contained in the DrawerItem props that are returned from the `onSelect` Drawer event.
|
|
49
|
+
*/
|
|
50
|
+
[customProp: string]: any;
|
|
51
|
+
/**
|
|
52
|
+
* @hidden
|
|
53
|
+
*/
|
|
54
|
+
onSelect?(target?: any, idx?: number): void;
|
|
55
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DrawerSelectEvent } from './DrawerSelectEvent';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface DrawerNavigationProps {
|
|
13
|
+
item?: any;
|
|
14
|
+
header?: any;
|
|
15
|
+
footer?: any;
|
|
16
|
+
content?: any;
|
|
17
|
+
showLicenseWatermark?: boolean;
|
|
18
|
+
licenseMessage?: string;
|
|
19
|
+
tabIndex?: number;
|
|
20
|
+
onSelect?: (event: DrawerSelectEvent) => void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DrawerSelectEvent } from './DrawerSelectEvent';
|
|
9
|
+
import { DrawerAnimation } from '../interfaces/DrawerAnimation';
|
|
10
|
+
import { DrawerItemProps } from './DrawerItemProps';
|
|
11
|
+
/**
|
|
12
|
+
* The properties of the [Kendo UI for Vue Drawer component]({% slug overview_drawer %}).
|
|
13
|
+
*/
|
|
14
|
+
export interface DrawerProps {
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the animation settings of the Drawer.
|
|
17
|
+
* If boolean enables or disables the default animation.
|
|
18
|
+
* Use DrawerAnimation to set slide animation with customizable duration option. Accepts a number in milliseconds.
|
|
19
|
+
*/
|
|
20
|
+
animation?: boolean | DrawerAnimation;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the state of the Drawer. Defaults to `false` ([see example]({% slug expanded_state_drawer %})).
|
|
23
|
+
*/
|
|
24
|
+
expanded?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
|
|
27
|
+
*/
|
|
28
|
+
dir?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the mode in which the Drawer will be displayed.
|
|
31
|
+
* The possible values are `overlay` and `push`.
|
|
32
|
+
* Defaults to `overlay` ([see example]({% slug display_modes_drawer %}#toc-expand-modes)).
|
|
33
|
+
*/
|
|
34
|
+
mode?: 'overlay' | 'push' | string;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies the position of the Drawer.
|
|
37
|
+
* The possible values are `start` and `end` ([see example]({% slug positioning_drawer %})).
|
|
38
|
+
*/
|
|
39
|
+
position?: 'start' | 'end' | string;
|
|
40
|
+
/**
|
|
41
|
+
* Sets the `tabIndex` property of the Drawer.
|
|
42
|
+
*/
|
|
43
|
+
tabIndex?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Enables the mini (compact) view of the Drawer which is displayed when the component is collapsed
|
|
46
|
+
* ([see example]({% slug display_modes_drawer %}#toc-mini-view))).
|
|
47
|
+
*/
|
|
48
|
+
mini?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Defines the width of the Drawer when the mini view is enabled and the component is collapsed. Defaults to `50`.
|
|
51
|
+
*/
|
|
52
|
+
miniWidth?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Defines the width of the Drawer when it is expanded. Defaults to `240`.
|
|
55
|
+
*/
|
|
56
|
+
width?: number;
|
|
57
|
+
/**
|
|
58
|
+
* The collection of items that will be rendered in the Drawer ([see example]({% slug overview_drawer %})).
|
|
59
|
+
*/
|
|
60
|
+
items?: Array<DrawerItemProps>;
|
|
61
|
+
/**
|
|
62
|
+
* Overrides the default component responsible for visualizing a single item ([see example]({% slug custom_rendering %})).
|
|
63
|
+
*
|
|
64
|
+
* The default Component is: [DrawerItem]({% slug api_layout_draweritemprops %}).
|
|
65
|
+
*/
|
|
66
|
+
item?: any;
|
|
67
|
+
/**
|
|
68
|
+
* The event handler that will be fired when the overlay is clicked.
|
|
69
|
+
* Used in overlay mode only.
|
|
70
|
+
*/
|
|
71
|
+
onOverlayclick?: (event: any) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Fires when a Drawer item is selected.
|
|
74
|
+
*/
|
|
75
|
+
onSelect?: (event: DrawerSelectEvent) => void;
|
|
76
|
+
/**
|
|
77
|
+
* Provides the option to define a `header` in the Drawer component ([see example]({% slug custom_rendering %})).
|
|
78
|
+
* The header is rendered above the Drawer Items. By default, the property is not defined.
|
|
79
|
+
*/
|
|
80
|
+
navigationHeader?: String | Object | Function;
|
|
81
|
+
/**
|
|
82
|
+
* Provides the option to define a `footer` in the Drawer component ([see example]({% slug custom_rendering %})).
|
|
83
|
+
* The footer is rendered below the Drawer Items. By default, the property is not defined.
|
|
84
|
+
*/
|
|
85
|
+
navigationFooter?: String | Object | Function;
|
|
86
|
+
/**
|
|
87
|
+
* Provides the option to define a custom template inside the navigational section of the Drawer component ([see example]({% slug custom_rendering %})).
|
|
88
|
+
* When defined, the custom template will override the default [DrawerItem]({% slug api_layout_draweritemprops %}) rendering.
|
|
89
|
+
* By default, the property is not defined.
|
|
90
|
+
*/
|
|
91
|
+
navigationContent?: String | Object | Function;
|
|
92
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The arguments for the `onSelect` Drawer event.
|
|
10
|
+
*/
|
|
11
|
+
export interface DrawerSelectEvent {
|
|
12
|
+
/**
|
|
13
|
+
* A Drawer item event target.
|
|
14
|
+
*/
|
|
15
|
+
itemTarget: any;
|
|
16
|
+
/**
|
|
17
|
+
* The index of the selected Drawer item.
|
|
18
|
+
*/
|
|
19
|
+
itemIndex: number;
|
|
20
|
+
}
|