@progress/kendo-react-layout 13.3.0 → 13.4.0-develop.2
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 +242 -0
- package/actionsheet/ActionSheetContent.d.ts +17 -0
- package/actionsheet/ActionSheetFooter.d.ts +42 -0
- package/actionsheet/ActionSheetHeader.d.ts +17 -0
- package/actionsheet/ActionSheetItem.d.ts +13 -0
- package/actionsheet/ActionSheetView.d.ts +16 -0
- package/actionsheet/interfaces/ActionSheetChildrenProps.d.ts +20 -0
- package/actionsheet/interfaces/ActionSheetItemProps.d.ts +76 -0
- package/appbar/AppBar.d.ts +56 -0
- package/appbar/AppBar.js +1 -1
- package/appbar/AppBar.mjs +10 -10
- package/appbar/AppBarSection.d.ts +55 -0
- package/appbar/AppBarSpacer.d.ts +56 -0
- package/appbar/interfaces/AppBarProps.d.ts +143 -0
- package/appbar/interfaces/AppBarSectionProps.d.ts +25 -0
- package/appbar/interfaces/AppBarSpacerProps.d.ts +26 -0
- package/bottomnavigation/BottomNavigation.d.ts +44 -0
- package/bottomnavigation/BottomNavigation.js +1 -1
- package/bottomnavigation/BottomNavigation.mjs +13 -13
- package/bottomnavigation/BottomNavigationItem.d.ts +19 -0
- package/bottomnavigation/BottomNavigationItem.mjs +3 -3
- package/bottomnavigation/BottomNavigationItemProps.d.ts +120 -0
- package/bottomnavigation/BottomNavigationProps.d.ts +238 -0
- package/bottomnavigation/models/events.d.ts +27 -0
- package/bottomnavigation/models/utils.d.ts +43 -0
- package/breadcrumb/Breadcrumb.d.ts +276 -0
- package/breadcrumb/Breadcrumb.js +1 -1
- package/breadcrumb/Breadcrumb.mjs +0 -1
- package/breadcrumb/BreadcrumbDelimiter.d.ts +50 -0
- package/breadcrumb/BreadcrumbLink.d.ts +136 -0
- package/breadcrumb/BreadcrumbLink.mjs +3 -3
- package/breadcrumb/BreadcrumbListItem.d.ts +58 -0
- package/breadcrumb/BreadcrumbOrderedList.d.ts +62 -0
- package/breadcrumb/BreadcrumbOrderedList.mjs +5 -5
- package/card/Avatar.d.ts +10 -0
- package/card/Avatar.js +1 -1
- package/card/Avatar.mjs +20 -22
- package/card/Card.d.ts +11 -0
- package/card/CardActions.d.ts +10 -0
- package/card/CardActions.mjs +1 -1
- package/card/CardBody.d.ts +10 -0
- package/card/CardFooter.d.ts +10 -0
- package/card/CardHeader.d.ts +10 -0
- package/card/CardImage.d.ts +10 -0
- package/card/CardSubtitle.d.ts +10 -0
- package/card/CardTitle.d.ts +10 -0
- package/card/interfaces/AvatarProps.d.ts +141 -0
- package/card/interfaces/CardActionsProps.d.ts +76 -0
- package/card/interfaces/CardBodyProps.d.ts +36 -0
- package/card/interfaces/CardFooterProps.d.ts +36 -0
- package/card/interfaces/CardHandle.d.ts +21 -0
- package/card/interfaces/CardHeaderProps.d.ts +36 -0
- package/card/interfaces/CardImageProps.d.ts +45 -0
- package/card/interfaces/CardProps.d.ts +91 -0
- package/card/interfaces/CardSubtitleProps.d.ts +36 -0
- package/card/interfaces/CardTitleProps.d.ts +21 -0
- package/card/interfaces/Enums.d.ts +30 -0
- package/contextmenu/ContextMenu.d.ts +50 -0
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/drawer/Drawer.d.ts +52 -0
- package/drawer/DrawerContent.d.ts +48 -0
- package/drawer/DrawerItem.d.ts +37 -0
- package/drawer/DrawerNavigation.d.ts +49 -0
- package/drawer/DrawerNavigation.js +1 -1
- package/drawer/DrawerNavigation.mjs +27 -27
- package/drawer/context/DrawerContext.d.ts +27 -0
- package/drawer/interfaces/DrawerAnimation.d.ts +21 -0
- package/drawer/interfaces/DrawerContentProps.d.ts +24 -0
- package/drawer/interfaces/DrawerItemHandle.d.ts +24 -0
- package/drawer/interfaces/DrawerItemProps.d.ts +129 -0
- package/drawer/interfaces/DrawerNavigationProps.d.ts +24 -0
- package/drawer/interfaces/DrawerProps.d.ts +171 -0
- package/drawer/interfaces/DrawerSelectEvent.d.ts +22 -0
- package/expansionpanel/ExpansionPanel.d.ts +13 -0
- package/expansionpanel/ExpansionPanel.mjs +1 -1
- package/expansionpanel/ExpansionPanelContent.d.ts +12 -0
- package/expansionpanel/index.d.ts +10 -0
- package/expansionpanel/interfaces.d.ts +99 -0
- package/gridlayout/GridLayout.d.ts +45 -0
- package/gridlayout/GridLayoutItem.d.ts +44 -0
- package/gridlayout/interfaces/GridLayoutColumnProps.d.ts +21 -0
- package/gridlayout/interfaces/GridLayoutItemProps.d.ts +87 -0
- package/gridlayout/interfaces/GridLayoutProps.d.ts +144 -0
- package/gridlayout/interfaces/GridLayoutRowProps.d.ts +21 -0
- package/index.d.mts +101 -6278
- package/index.d.ts +101 -6278
- package/menu/BaseMenuItemInternalProps.d.ts +29 -0
- package/menu/MenuProps.d.ts +189 -0
- package/menu/components/Menu.d.ts +132 -0
- package/menu/components/Menu.mjs +1 -1
- package/menu/components/MenuItem.d.ts +43 -0
- package/menu/components/MenuItemArrow.d.ts +53 -0
- package/menu/components/MenuItemInternal.d.ts +70 -0
- package/menu/components/MenuItemLink.d.ts +37 -0
- package/menu/consts.d.ts +65 -0
- package/menu/events.d.ts +45 -0
- package/menu/models/BaseMenuItem.d.ts +65 -0
- package/menu/models/MenuItemModel.d.ts +30 -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 +13 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +8 -8
- package/panelbar/PanelBar.d.ts +89 -0
- package/panelbar/PanelBarItem.d.ts +61 -0
- package/panelbar/interfaces/NavigationAction.d.ts +19 -0
- package/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +15 -0
- package/panelbar/interfaces/PanelBarItemProps.d.ts +116 -0
- package/panelbar/interfaces/PanelBarProps.d.ts +140 -0
- package/panelbar/interfaces/PanelBarSelectEventArguments.d.ts +21 -0
- package/panelbar/interfaces/RenderPanelBarItem.d.ts +22 -0
- package/panelbar/util.d.ts +63 -0
- package/splitter/Splitter.d.ts +150 -0
- package/splitter/SplitterBar.d.ts +51 -0
- package/splitter/SplitterPane.d.ts +76 -0
- package/splitter/messages/index.d.ts +17 -0
- package/stacklayout/StackLayout.d.ts +43 -0
- package/stacklayout/StackLayoutProps.d.ts +97 -0
- package/stepper/Step.d.ts +29 -0
- package/stepper/Stepper.d.ts +29 -0
- package/stepper/contants.d.ts +15 -0
- package/stepper/context/StepperContext.d.ts +30 -0
- package/stepper/interfaces/StepChangeEvent.d.ts +18 -0
- package/stepper/interfaces/StepFocusEvent.d.ts +14 -0
- package/stepper/interfaces/StepHandle.d.ts +20 -0
- package/stepper/interfaces/StepProps.d.ts +95 -0
- package/stepper/interfaces/StepperChangeEvent.d.ts +18 -0
- package/stepper/interfaces/StepperFocusEvent.d.ts +14 -0
- package/stepper/interfaces/StepperHandle.d.ts +20 -0
- package/stepper/interfaces/StepperOnNavigateEvent.d.ts +38 -0
- package/stepper/interfaces/StepperProps.d.ts +216 -0
- package/stepper/messages/index.d.ts +22 -0
- package/tabstrip/TabStrip.d.ts +297 -0
- package/tabstrip/TabStrip.js +1 -1
- package/tabstrip/TabStrip.mjs +1 -1
- package/tabstrip/TabStripContent.d.ts +70 -0
- package/tabstrip/TabStripNavigation.d.ts +144 -0
- package/tabstrip/TabStripNavigation.mjs +6 -6
- package/tabstrip/TabStripNavigationItem.d.ts +82 -0
- package/tabstrip/TabStripTab.d.ts +50 -0
- package/tabstrip/messages/index.d.ts +22 -0
- package/tilelayout/InternalTile.d.ts +112 -0
- package/tilelayout/ResizeHandlers.d.ts +27 -0
- package/tilelayout/TileLayout.d.ts +228 -0
- package/tilelayout/interfaces/index.d.ts +159 -0
- package/timeline/Timeline.d.ts +205 -0
- package/timeline/TimelineCard.d.ts +44 -0
- package/timeline/TimelineHorizontal.d.ts +10 -0
- package/timeline/TimelineHorizontal.js +1 -1
- package/timeline/TimelineHorizontal.mjs +0 -2
- package/timeline/TimelineVertical.d.ts +19 -0
- package/timeline/utils.d.ts +22 -0
|
@@ -0,0 +1,29 @@
|
|
|
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 { PopupCloseEvent } from '@progress/kendo-react-popup';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface BaseMenuItemInternalProps {
|
|
13
|
+
focusedItemId: string;
|
|
14
|
+
lastItemIdToBeOpened: string;
|
|
15
|
+
tabbableItemId: string;
|
|
16
|
+
itemRender?: any;
|
|
17
|
+
linkRender?: any;
|
|
18
|
+
isMenuVertical: boolean;
|
|
19
|
+
isDirectionRightToLeft?: boolean;
|
|
20
|
+
menuGuid: string;
|
|
21
|
+
onMouseOver: any;
|
|
22
|
+
onMouseLeave: any;
|
|
23
|
+
onMouseDown: any;
|
|
24
|
+
onFocus: any;
|
|
25
|
+
onClick: any;
|
|
26
|
+
onBlur: any;
|
|
27
|
+
onOriginalItemNeeded: any;
|
|
28
|
+
onPopupClose: (itemId: string, popupCloseEvent: PopupCloseEvent) => void;
|
|
29
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
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 { MenuItemModel } from './models/MenuItemModel.js';
|
|
9
|
+
import { MenuSelectEvent, MenuCloseEvent } from './events.js';
|
|
10
|
+
import { PopupAnimation } from '@progress/kendo-react-popup';
|
|
11
|
+
/**
|
|
12
|
+
* The properties of the [KendoReact Menu component](https://www.telerik.com/kendo-react-ui/components/layout/menu).
|
|
13
|
+
*/
|
|
14
|
+
export interface MenuProps {
|
|
15
|
+
/**
|
|
16
|
+
* Specifies whether the Menu will be vertical
|
|
17
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/menu/vertical)).
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```jsx
|
|
21
|
+
* <Menu vertical />
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
vertical?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Sets the Menu items.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```jsx
|
|
32
|
+
* const items = [{ text: 'Item 1' }, { text: 'Item 2' }];
|
|
33
|
+
* <Menu items={items} />
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
items?: MenuItemModel[];
|
|
37
|
+
/**
|
|
38
|
+
* Sets the Menu items declaratively.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```jsx
|
|
42
|
+
* <Menu>
|
|
43
|
+
* <MenuItem text="Item 1" />
|
|
44
|
+
* <MenuItem text="Item 2" />
|
|
45
|
+
* </Menu>
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
children?: React.ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* Sets additional CSS styles to the Menu.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```jsx
|
|
54
|
+
* <Menu style={{ backgroundColor: 'lightblue' }} />
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
style?: React.CSSProperties;
|
|
58
|
+
/**
|
|
59
|
+
* Sets the ID of the Menu.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```jsx
|
|
63
|
+
* <Menu id="custom-menu" />
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
id?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Controls the Popup animation.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```jsx
|
|
72
|
+
* <Menu animate={{ openDuration: 200, closeDuration: 200 }} />
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @default true
|
|
76
|
+
*/
|
|
77
|
+
animate?: boolean | PopupAnimation;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the direction of the Menu.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```jsx
|
|
83
|
+
* <Menu dir="rtl" />
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
dir?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Specifies the delay in milliseconds before the Menu items are closed on
|
|
89
|
+
* item mouse-leave ([see example](https://www.telerik.com/kendo-react-ui/components/layout/menu/open-close#toc-delay-on-hover)).
|
|
90
|
+
* Used to avoid accidental closure on leaving.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```jsx
|
|
94
|
+
* <Menu hoverOpenDelay={200} />
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* @default 100
|
|
98
|
+
*/
|
|
99
|
+
hoverOpenDelay?: number;
|
|
100
|
+
/**
|
|
101
|
+
* Specifies the delay in milliseconds before the Menu items are closed on item mouse-leave
|
|
102
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/menu/open-close#toc-delay-on-hover)).
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```jsx
|
|
106
|
+
* <Menu hoverCloseDelay={200} />
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* @default 100
|
|
110
|
+
*/
|
|
111
|
+
hoverCloseDelay?: number;
|
|
112
|
+
/**
|
|
113
|
+
* If `openOnClick` is set to `true`, the items are opened on mouse hover only after an initial click.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```jsx
|
|
117
|
+
* <Menu openOnClick />
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* @default false
|
|
121
|
+
*/
|
|
122
|
+
openOnClick?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* A React functional or class component which is used for rendering the innermost part of
|
|
125
|
+
* the Menu item ([see example](https://www.telerik.com/kendo-react-ui/components/layout/menu/items/rendering#toc-items)).
|
|
126
|
+
* By default, the innermost item part includes only the text for the item.
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* ```jsx
|
|
130
|
+
* const CustomItem = (props) => <div>{props.text}</div>;
|
|
131
|
+
* <Menu itemRender={CustomItem} />
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
itemRender?: any;
|
|
135
|
+
/**
|
|
136
|
+
* A React functional or class component which is used for rendering the link of the item
|
|
137
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/menu/items/rendering#toc-links)).
|
|
138
|
+
* The item link is a part of the visual representation of the item which, by default, includes an arrow, icon, and text.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```jsx
|
|
142
|
+
* const CustomLink = (props) => <a href={props.href}>{props.text}</a>;
|
|
143
|
+
* <Menu linkRender={CustomLink} />
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
linkRender?: any;
|
|
147
|
+
/**
|
|
148
|
+
* Sets the ids of the Menu items that will not be closed on mouse-leave. The ids are hierarchical and zero-based.
|
|
149
|
+
* The first root item has a `0` id. If the first root item has children,
|
|
150
|
+
* the first child item acquires a `0_0` id and the second acquires a `0_1` id.
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* ```jsx
|
|
154
|
+
* <Menu customCloseItemIds={['0', '0_1']} />
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
customCloseItemIds?: string[];
|
|
158
|
+
/**
|
|
159
|
+
* Adds a custom className to the Menu top element.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```jsx
|
|
163
|
+
* <Menu className="custom-menu" />
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
166
|
+
className?: string;
|
|
167
|
+
/**
|
|
168
|
+
* @hidden
|
|
169
|
+
*/
|
|
170
|
+
role?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Fires when a Menu item is selected.
|
|
173
|
+
*
|
|
174
|
+
* @example
|
|
175
|
+
* ```jsx
|
|
176
|
+
* <Menu onSelect={(event) => console.log(event.item.text)} />
|
|
177
|
+
* ```
|
|
178
|
+
*/
|
|
179
|
+
onSelect?: (event: MenuSelectEvent) => void;
|
|
180
|
+
/**
|
|
181
|
+
* Fires when a Menu item is closed.
|
|
182
|
+
*
|
|
183
|
+
* @example
|
|
184
|
+
* ```jsx
|
|
185
|
+
* <Menu onClose={(event) => console.log('Item closed:', event.item.text)} />
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
onClose?: (event: MenuCloseEvent) => void;
|
|
189
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
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 { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { MenuProps } from '../MenuProps.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface MenuState {
|
|
15
|
+
focusedItemId: string;
|
|
16
|
+
hoveredItemId: string;
|
|
17
|
+
tabbableItemId: string;
|
|
18
|
+
isFirstRender: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Represents the [KendoReact Menu component](https://www.telerik.com/kendo-react-ui/components/layout/menu).
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* Supported children components are: {@link MenuItem}.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```jsx
|
|
28
|
+
* const App = () => {
|
|
29
|
+
* return (
|
|
30
|
+
* <Menu>
|
|
31
|
+
* <MenuItem text="Item1" />
|
|
32
|
+
* <MenuItem text="Item2">
|
|
33
|
+
* <MenuItem text="Item2.1" />
|
|
34
|
+
* <MenuItem text="Item2.2" />
|
|
35
|
+
* </MenuItem>
|
|
36
|
+
* <MenuItem text="Item3" />
|
|
37
|
+
* </Menu>
|
|
38
|
+
* );
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare class Menu extends React.Component<MenuProps, MenuState> {
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
static propTypes: {
|
|
47
|
+
vertical: PropTypes.Requireable<boolean>;
|
|
48
|
+
items: PropTypes.Requireable<(object | null | undefined)[]>;
|
|
49
|
+
style: PropTypes.Requireable<object>;
|
|
50
|
+
animate: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
|
|
51
|
+
openDuration: PropTypes.Requireable<number>;
|
|
52
|
+
closeDuration: PropTypes.Requireable<number>;
|
|
53
|
+
}> | null | undefined>>;
|
|
54
|
+
dir: PropTypes.Requireable<string>;
|
|
55
|
+
hoverOpenDelay: PropTypes.Requireable<number>;
|
|
56
|
+
hoverCloseDelay: PropTypes.Requireable<number>;
|
|
57
|
+
openOnClick: PropTypes.Requireable<boolean>;
|
|
58
|
+
itemRender: PropTypes.Requireable<any>;
|
|
59
|
+
linkRender: PropTypes.Requireable<any>;
|
|
60
|
+
customCloseItemIds: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
61
|
+
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
62
|
+
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
63
|
+
role: PropTypes.Requireable<string>;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @hidden
|
|
67
|
+
*/
|
|
68
|
+
static defaultProps: {
|
|
69
|
+
vertical: boolean;
|
|
70
|
+
animate: boolean;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* @hidden
|
|
74
|
+
*/
|
|
75
|
+
readonly state: MenuState;
|
|
76
|
+
private itemHoverRequest;
|
|
77
|
+
private itemLeaveRequest;
|
|
78
|
+
private menuWrapperEl;
|
|
79
|
+
private get menuItemId();
|
|
80
|
+
private directionHolder;
|
|
81
|
+
private inputItems;
|
|
82
|
+
private items;
|
|
83
|
+
private mouseOverHandler;
|
|
84
|
+
/**
|
|
85
|
+
* The current element or `null` if there is no one.
|
|
86
|
+
*/
|
|
87
|
+
get element(): HTMLDivElement | null;
|
|
88
|
+
constructor(props: MenuProps);
|
|
89
|
+
protected get animate(): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* @hidden
|
|
92
|
+
*/
|
|
93
|
+
render(): React.JSX.Element;
|
|
94
|
+
/**
|
|
95
|
+
* @hidden
|
|
96
|
+
*/
|
|
97
|
+
componentDidMount(): void;
|
|
98
|
+
/**
|
|
99
|
+
* @hidden
|
|
100
|
+
*/
|
|
101
|
+
componentDidUpdate(prevProps: MenuProps): void;
|
|
102
|
+
/**
|
|
103
|
+
* @hidden
|
|
104
|
+
*/
|
|
105
|
+
componentWillUnmount(): void;
|
|
106
|
+
/**
|
|
107
|
+
* Resets the selection and opening of Menu items.
|
|
108
|
+
*/
|
|
109
|
+
reset: () => void;
|
|
110
|
+
private onKeyDown;
|
|
111
|
+
private onItemMouseOver;
|
|
112
|
+
private onItemMouseLeave;
|
|
113
|
+
private onItemMouseDown;
|
|
114
|
+
private onItemFocus;
|
|
115
|
+
private onItemClick;
|
|
116
|
+
private onPopupClose;
|
|
117
|
+
private onItemBlur;
|
|
118
|
+
private getInputItem;
|
|
119
|
+
private setFocusedItemId;
|
|
120
|
+
private setHoveredItemId;
|
|
121
|
+
private getMenuClassName;
|
|
122
|
+
private clearItemHoverAndLeaveRequestsIfApplicable;
|
|
123
|
+
private isItemWithDefaultClose;
|
|
124
|
+
private checkIsDirectionRightToLeft;
|
|
125
|
+
private prepareItems;
|
|
126
|
+
private dispatchSelectEventIfWired;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Represent the `ref` of the Menu component.
|
|
130
|
+
*/
|
|
131
|
+
export interface MenuHandle extends Pick<Menu, keyof Menu> {
|
|
132
|
+
}
|
package/menu/components/Menu.mjs
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import * as m from "react";
|
|
9
9
|
import i from "prop-types";
|
|
10
10
|
import { Keys as h, classNames as g, dispatchEvent as b } from "@progress/kendo-react-common";
|
|
11
|
-
import { EMPTY_ID as r, getItemById as a, isIdZeroLevel as p, getDirectParentId as C, getRootParentId as R, isIdEmptyOrZeroLevel as l
|
|
11
|
+
import { ZERO_LEVEL_ZERO_ITEM_ID as f, EMPTY_ID as r, getItemById as a, isIdZeroLevel as p, getDirectParentId as C, getRootParentId as R, isIdEmptyOrZeroLevel as l } from "../utils/itemsIdsUtils.mjs";
|
|
12
12
|
import { prepareInputItemsForInternalWork as D } from "../utils/prepareInputItemsForInternalWork.mjs";
|
|
13
13
|
import { getNewItemIdUponKeyboardNavigation as I } from "../utils/getNewItemIdUponKeyboardNavigation.mjs";
|
|
14
14
|
import { getHoverOpenDelay as H, getHoverCloseDelay as O } from "../utils/hoverDelay.mjs";
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { BaseMenuItem } from '../models/BaseMenuItem.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* The properties of the KendoReact MenuItem component ([more information and examples](https://www.telerik.com/kendo-react-ui/components/layout/menu/items/items)).
|
|
13
|
+
*/
|
|
14
|
+
export interface MenuItemProps extends BaseMenuItem {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Represents the MenuItem component.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Supported children components are: {@link MenuItem}.
|
|
21
|
+
*/
|
|
22
|
+
export declare class MenuItem extends React.Component<MenuItemProps, {}> {
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
static propTypes: {
|
|
27
|
+
text: PropTypes.Requireable<string>;
|
|
28
|
+
url: PropTypes.Requireable<string>;
|
|
29
|
+
icon: PropTypes.Requireable<string>;
|
|
30
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
31
|
+
cssClass: PropTypes.Requireable<string>;
|
|
32
|
+
cssStyle: PropTypes.Requireable<object>;
|
|
33
|
+
render: PropTypes.Requireable<any>;
|
|
34
|
+
linkRender: PropTypes.Requireable<any>;
|
|
35
|
+
contentRender: PropTypes.Requireable<any>;
|
|
36
|
+
data: PropTypes.Requireable<any>;
|
|
37
|
+
separator: PropTypes.Requireable<boolean>;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
render(): null;
|
|
43
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { default as PropTypes } from 'prop-types';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* The properties of the KendoReact MenuItemArrow component.
|
|
12
|
+
*/
|
|
13
|
+
export interface MenuItemArrowProps {
|
|
14
|
+
/**
|
|
15
|
+
* Sets the item id of the MenuItemArrow component.
|
|
16
|
+
*/
|
|
17
|
+
itemId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the direction of the MenuItemArrow component.
|
|
20
|
+
*/
|
|
21
|
+
dir: 'ltr' | 'rtl';
|
|
22
|
+
/**
|
|
23
|
+
* Specifies whether the Menu which holds the MenuItemArrow component is vertical.
|
|
24
|
+
*/
|
|
25
|
+
verticalMenu?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
export declare const downArrowName = "caret-alt-down";
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export declare const rightArrowName = "caret-alt-right";
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
export declare const leftArrowName = "caret-alt-left";
|
|
39
|
+
export declare class MenuItemArrow extends React.Component<MenuItemArrowProps, {}> {
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
static propTypes: {
|
|
44
|
+
itemId: PropTypes.Requireable<string>;
|
|
45
|
+
dir: PropTypes.Requireable<string>;
|
|
46
|
+
verticalMenu: PropTypes.Requireable<boolean>;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
*/
|
|
51
|
+
render(): React.JSX.Element;
|
|
52
|
+
private getIcon;
|
|
53
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { MenuItemInternalModel } from '../models/MenuItemModel.js';
|
|
9
|
+
import { PopupAnimation } from '@progress/kendo-react-popup';
|
|
10
|
+
import { BaseMenuItemInternalProps } from './../BaseMenuItemInternalProps.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export interface MenuItemInternalsListProps extends BaseMenuItemInternalProps {
|
|
16
|
+
items: MenuItemInternalModel[];
|
|
17
|
+
parentItemId?: string;
|
|
18
|
+
className: string;
|
|
19
|
+
animate?: boolean | PopupAnimation;
|
|
20
|
+
role?: string;
|
|
21
|
+
'aria-orientation'?: 'vertical';
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export declare class MenuItemInternalsList extends React.Component<MenuItemInternalsListProps, {}> {
|
|
27
|
+
render(): React.JSX.Element;
|
|
28
|
+
private renderChildItems;
|
|
29
|
+
private onMouseOver;
|
|
30
|
+
private onMouseLeave;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export interface MenuItemInternalProps extends BaseMenuItemInternalProps {
|
|
36
|
+
item: MenuItemInternalModel;
|
|
37
|
+
animate?: boolean | PopupAnimation;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
export interface MenuItemInternalState {
|
|
43
|
+
opened: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
export declare class MenuItemInternal extends React.Component<MenuItemInternalProps, MenuItemInternalState> {
|
|
49
|
+
readonly state: MenuItemInternalState;
|
|
50
|
+
private itemElement;
|
|
51
|
+
private isFirstRender;
|
|
52
|
+
constructor(props: MenuItemInternalProps);
|
|
53
|
+
componentDidMount(): void;
|
|
54
|
+
componentDidUpdate(prevProps: MenuItemInternalProps): void;
|
|
55
|
+
render(): React.JSX.Element;
|
|
56
|
+
private renderContent;
|
|
57
|
+
private renderMenuItemLink;
|
|
58
|
+
private renderPopupIfOpened;
|
|
59
|
+
private renderMenuIconIfApplicable;
|
|
60
|
+
private renderArrowIfApplicable;
|
|
61
|
+
private onMouseOver;
|
|
62
|
+
private onMouseLeave;
|
|
63
|
+
private get itemRender();
|
|
64
|
+
private onPopupClose;
|
|
65
|
+
private get linkRender();
|
|
66
|
+
private get contentRender();
|
|
67
|
+
private get Opened();
|
|
68
|
+
private getPopupClassName;
|
|
69
|
+
private getMenuItemClassName;
|
|
70
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* The properties of the KendoReact MenuItemLink component.
|
|
13
|
+
*/
|
|
14
|
+
export interface MenuItemLinkProps extends KendoReactComponentBaseProps {
|
|
15
|
+
/**
|
|
16
|
+
* Specifies whether the MenuItemLink component is opened.
|
|
17
|
+
*/
|
|
18
|
+
opened: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Sets the URL of the MenuItemLink component.
|
|
21
|
+
*/
|
|
22
|
+
url?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare class MenuItemLink extends React.Component<MenuItemLinkProps, {}> {
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
static propTypes: {
|
|
29
|
+
opened: PropTypes.Requireable<boolean>;
|
|
30
|
+
url: PropTypes.Requireable<string>;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
render(): React.JSX.Element;
|
|
36
|
+
private getMenuItemClassName;
|
|
37
|
+
}
|
package/menu/consts.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
export declare const POPUP_SETTINGS_RTL: {
|
|
12
|
+
downward: {
|
|
13
|
+
anchorAlign: {
|
|
14
|
+
vertical: string;
|
|
15
|
+
horizontal: string;
|
|
16
|
+
};
|
|
17
|
+
popupAlign: any;
|
|
18
|
+
collision: {
|
|
19
|
+
vertical: string;
|
|
20
|
+
horizontal: string;
|
|
21
|
+
};
|
|
22
|
+
animationDirection: string;
|
|
23
|
+
};
|
|
24
|
+
leftward: {
|
|
25
|
+
anchorAlign: {
|
|
26
|
+
vertical: string;
|
|
27
|
+
horizontal: string;
|
|
28
|
+
};
|
|
29
|
+
popupAlign: any;
|
|
30
|
+
collision: {
|
|
31
|
+
vertical: string;
|
|
32
|
+
horizontal: string;
|
|
33
|
+
};
|
|
34
|
+
animationDirection: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
export declare const POPUP_SETTINGS: {
|
|
41
|
+
downward: {
|
|
42
|
+
anchorAlign: {
|
|
43
|
+
vertical: string;
|
|
44
|
+
horizontal: string;
|
|
45
|
+
};
|
|
46
|
+
popupAlign: any;
|
|
47
|
+
collision: {
|
|
48
|
+
vertical: string;
|
|
49
|
+
horizontal: string;
|
|
50
|
+
};
|
|
51
|
+
animationDirection: string;
|
|
52
|
+
};
|
|
53
|
+
rightward: {
|
|
54
|
+
anchorAlign: {
|
|
55
|
+
vertical: string;
|
|
56
|
+
horizontal: string;
|
|
57
|
+
};
|
|
58
|
+
popupAlign: any;
|
|
59
|
+
collision: {
|
|
60
|
+
vertical: string;
|
|
61
|
+
horizontal: string;
|
|
62
|
+
};
|
|
63
|
+
animationDirection: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
package/menu/events.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
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 { Menu } from './components/Menu.js';
|
|
9
|
+
import { MenuItemModel } from './models/MenuItemModel.js';
|
|
10
|
+
import { BaseEvent } from '@progress/kendo-react-common';
|
|
11
|
+
import { PopupCloseEvent } from '@progress/kendo-react-popup';
|
|
12
|
+
/**
|
|
13
|
+
* The arguments for the `select` event of the Menu. If the item has a URL and the event is prevented, navigation to the URL does not occur.
|
|
14
|
+
*/
|
|
15
|
+
export interface MenuSelectEvent extends BaseEvent<Menu> {
|
|
16
|
+
/**
|
|
17
|
+
* The id of selected item. The ids are hierarchical and zero-based. The first root item has a `0` id. If the first root item has children, the first child acquires a `0_0` id and the second acquires a `0_1` id.
|
|
18
|
+
*/
|
|
19
|
+
itemId: string;
|
|
20
|
+
/**
|
|
21
|
+
* The selected item.
|
|
22
|
+
*/
|
|
23
|
+
item: MenuItemModel;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The arguments for the `itemClose` event of the Menu.
|
|
27
|
+
*/
|
|
28
|
+
export interface MenuCloseEvent {
|
|
29
|
+
/**
|
|
30
|
+
* The Menu component instance.
|
|
31
|
+
*/
|
|
32
|
+
target: Menu;
|
|
33
|
+
/**
|
|
34
|
+
* The id of the item whose popup was closed. The ids are hierarchical and zero-based. The first root item has a `0` id. If the first root item has children, the first child acquires a `0_0` id and the second acquires a `0_1` id.
|
|
35
|
+
*/
|
|
36
|
+
itemId: string;
|
|
37
|
+
/**
|
|
38
|
+
* The closed item.
|
|
39
|
+
*/
|
|
40
|
+
item: MenuItemModel;
|
|
41
|
+
/**
|
|
42
|
+
* The popup close event if the close was triggered by a popup closing .
|
|
43
|
+
*/
|
|
44
|
+
popupCloseEvent?: PopupCloseEvent;
|
|
45
|
+
}
|