@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,15 @@
|
|
|
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 { PanelBarItem } from '../PanelBarItem.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface PanelBarItemClickEventArguments {
|
|
13
|
+
uniquePrivateKey: number;
|
|
14
|
+
target: PanelBarItem;
|
|
15
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
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-react-common';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the props of the PanelBarItem component.
|
|
11
|
+
*/
|
|
12
|
+
export interface PanelBarItemProps {
|
|
13
|
+
/**
|
|
14
|
+
* Allows individual animation control over the child ([see example](https://www.telerik.com/kendo-react-ui/components/layout/panelbar/animations)). By default, it is controlled by the PanelBar component.
|
|
15
|
+
*/
|
|
16
|
+
animation?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Can be any of PanelBar items, an array of PanelBar items, or a custom component.
|
|
19
|
+
*/
|
|
20
|
+
children?: any;
|
|
21
|
+
/**
|
|
22
|
+
* The class name that is set to the PanelBarItem component.
|
|
23
|
+
*/
|
|
24
|
+
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The class name that is set to the PanelBarItem header.
|
|
27
|
+
*/
|
|
28
|
+
headerClassName?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the initial expanded state of the PanelBarItem
|
|
31
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/panelbar/items/states#toc-expanded-items)). Controlled by the PanelBar component.
|
|
32
|
+
*
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
expanded?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Sets the disabled state of the PanelBarItem
|
|
38
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/panelbar/items/states#toc-disabled-items)).
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
onSelect?: Function;
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
50
|
+
level?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Defines an icon that will be rendered next to the title
|
|
53
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/panelbar/items/titles#toc-adding-icons)).
|
|
54
|
+
*/
|
|
55
|
+
icon?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Defines an SVG icon that will be rendered next to the title
|
|
58
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/panelbar/items/titles#toc-adding-icons)).
|
|
59
|
+
*/
|
|
60
|
+
svgIcon?: SVGIcon;
|
|
61
|
+
/**
|
|
62
|
+
* Defines an icon with a custom CSS class that will be rendered next to the title
|
|
63
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/panelbar/items/titles#toc-adding-icons)).
|
|
64
|
+
*/
|
|
65
|
+
iconClass?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Defines the location of the image that will be displayed next to the title
|
|
68
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/panelbar/items/titles#toc-adding-images)).
|
|
69
|
+
*/
|
|
70
|
+
imageUrl?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Sets the initial selected state of the PanelBarItem. Controlled by the PanelBarItem component
|
|
73
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/panelbar/items/states#toc-selected-items)).
|
|
74
|
+
*
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
selected?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the title of the PanelBar item
|
|
80
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/panelbar/items/titles#toc-getting-started)).
|
|
81
|
+
*/
|
|
82
|
+
title?: React.ReactNode;
|
|
83
|
+
/**
|
|
84
|
+
* Allows the component to set the `id` property to each item. If not set, a default `id` is applied.
|
|
85
|
+
*/
|
|
86
|
+
id?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Sets the initial focused state of the PanelBarItem. Controlled by the PanelBar component.
|
|
89
|
+
*/
|
|
90
|
+
focused?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* @hidden
|
|
93
|
+
*/
|
|
94
|
+
parentExpanded?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* @hidden
|
|
97
|
+
*/
|
|
98
|
+
content?: any;
|
|
99
|
+
/**
|
|
100
|
+
* Used to identify the PanelBarItems inside the PanelBar
|
|
101
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/panelbar/controlling-state)). Does not depend on the state of the PanelBarItem.
|
|
102
|
+
*/
|
|
103
|
+
uniquePrivateKey?: string;
|
|
104
|
+
/**
|
|
105
|
+
* @hidden
|
|
106
|
+
*/
|
|
107
|
+
parentUniquePrivateKey?: string[];
|
|
108
|
+
/**
|
|
109
|
+
* @hidden
|
|
110
|
+
*/
|
|
111
|
+
keepItemsMounted?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Sets a custom property. Contained in the PanelBarItem props that are returned from the `onSelect` PanelBar event.
|
|
114
|
+
*/
|
|
115
|
+
[customProp: string]: any;
|
|
116
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
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 { PanelBarSelectEventArguments } from '../../index.js';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the expand modes of the KendoReact PanelBar. Defaults to `multiple`.
|
|
11
|
+
*/
|
|
12
|
+
export type PanelBarExpandMode = 'single' | 'multiple';
|
|
13
|
+
/**
|
|
14
|
+
* Represents the props of the [KendoReact PanelBar component](https://www.telerik.com/kendo-react-ui/components/layout/panelbar).
|
|
15
|
+
*/
|
|
16
|
+
export interface PanelBarProps {
|
|
17
|
+
/**
|
|
18
|
+
* The child can be either a single PanelBarItem or a PanelBarItem array.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```jsx
|
|
22
|
+
* <PanelBar>
|
|
23
|
+
* <PanelBarItem title="Item 1" />
|
|
24
|
+
* <PanelBarItem title="Item 2" />
|
|
25
|
+
* </PanelBar>
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* The class name that is set to the PanelBar.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```jsx
|
|
34
|
+
* <PanelBar className="custom-panelbar" />
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
className?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the animation state of the PanelBar.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```jsx
|
|
43
|
+
* <PanelBar animation={false} />
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @default true
|
|
47
|
+
*/
|
|
48
|
+
animation?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Sets the expand mode of the PanelBar ([see example](https://www.telerik.com/kendo-react-ui/components/layout/panelbar/expand-modes)).
|
|
51
|
+
*
|
|
52
|
+
* The available modes are:
|
|
53
|
+
* - `"single"`—Allows you to expand only one item at a time. The expanding of an item collapses the item that was previously expanded.
|
|
54
|
+
* - `"multiple"`—Allows you to expand two or more items at a time. Items can also be toggled.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```jsx
|
|
58
|
+
* <PanelBar expandMode="single" />
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @default 'multiple'
|
|
62
|
+
*/
|
|
63
|
+
expandMode?: PanelBarExpandMode;
|
|
64
|
+
/**
|
|
65
|
+
* Sets the direction of the PanelBar component.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```jsx
|
|
69
|
+
* <PanelBar dir="rtl" />
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
dir?: string;
|
|
73
|
+
/**
|
|
74
|
+
* If set, overrides the currently selected property in the PanelBar state. Takes the `id` of the item.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```jsx
|
|
78
|
+
* <PanelBar selected="item1" />
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
selected?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Sets the initial expanded state of the PanelBar. Takes the `id` of the item.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```jsx
|
|
87
|
+
* <PanelBar expanded={['item1', 'item2']} />
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
expanded?: string[];
|
|
91
|
+
/**
|
|
92
|
+
* Sets the initial focused state of the PanelBar. Takes the `id` of the item.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```jsx
|
|
96
|
+
* <PanelBar focused="item1" />
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
focused?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Determines if the PanelBar items will be mounted after expand collapse.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```jsx
|
|
105
|
+
* <PanelBar keepItemsMounted />
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
110
|
+
keepItemsMounted?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Determines if the PanelBar is going to be used in controlled state.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```jsx
|
|
116
|
+
* <PanelBar isControlled />
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* @default false
|
|
120
|
+
*/
|
|
121
|
+
isControlled?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Fires each time the user makes a selection ([see example](https://www.telerik.com/kendo-react-ui/components/layout/panelbar/controlling-state)).
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```jsx
|
|
127
|
+
* <PanelBar onSelect={(event) => console.log(event.item)} />
|
|
128
|
+
* ```
|
|
129
|
+
*/
|
|
130
|
+
onSelect?: (event: PanelBarSelectEventArguments) => void;
|
|
131
|
+
/**
|
|
132
|
+
* Sets additional CSS styles to the PanelBar.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```jsx
|
|
136
|
+
* <PanelBar style={{ backgroundColor: 'lightblue' }} />
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
style?: React.CSSProperties;
|
|
140
|
+
}
|
|
@@ -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 { PanelBarItemProps } from '../interfaces/PanelBarItemProps.js';
|
|
9
|
+
/**
|
|
10
|
+
* The arguments that are passed to the `onSelect` callback function.
|
|
11
|
+
*/
|
|
12
|
+
export interface PanelBarSelectEventArguments {
|
|
13
|
+
/**
|
|
14
|
+
* The selected PanelBar item.
|
|
15
|
+
*/
|
|
16
|
+
target: React.ReactElement<PanelBarItemProps>;
|
|
17
|
+
/**
|
|
18
|
+
* The new expanded PanelBar items state.
|
|
19
|
+
*/
|
|
20
|
+
expandedItems: string[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { PanelBarState } from '../PanelBar.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface RenderPanelBarItem {
|
|
13
|
+
animation?: boolean;
|
|
14
|
+
keepItemsMounted?: boolean;
|
|
15
|
+
state: PanelBarState;
|
|
16
|
+
expanded: string[];
|
|
17
|
+
handleSelect: any;
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
parentExpanded?: boolean;
|
|
20
|
+
level?: number;
|
|
21
|
+
parentPrivateKey?: string[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { PanelBarState } from './PanelBar.js';
|
|
9
|
+
import { RenderPanelBarItem } from './interfaces/RenderPanelBarItem.js';
|
|
10
|
+
import { PanelBarItemProps } from '../index.js';
|
|
11
|
+
import { PanelBarExpandMode } from './interfaces/PanelBarProps.js';
|
|
12
|
+
import { NavigationAction } from './interfaces/NavigationAction.js';
|
|
13
|
+
import * as React from 'react';
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export declare const renderChildren: ({ animation, keepItemsMounted, state, expanded, handleSelect, children, parentExpanded, level, parentPrivateKey }: RenderPanelBarItem) => React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export declare const getFirstId: (props: any) => any;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
export declare const getInitialState: (props: any, expandMode: PanelBarExpandMode, result?: PanelBarState, parentExpanded?: boolean, parentPrivateKey?: string[]) => PanelBarState;
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export declare function flatVisibleItems(data: any, flattedItems?: any[]): any[];
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
export declare function flatChildren(children: any, flattenChildren?: any[]): any[];
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
export declare function flatVisibleChildren(children: any, flattenVisibleChildren?: any[]): any[];
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
export declare const isPresent: (value: any) => boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Represents the PanelBarUtils functions.
|
|
44
|
+
*/
|
|
45
|
+
export declare namespace PanelBarUtils {
|
|
46
|
+
/**
|
|
47
|
+
* Maps a collection of PanelBarItemProps to PanelBarItem components
|
|
48
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/panelbar/customization)).
|
|
49
|
+
* Contained in the `PanelBarUtils` object.
|
|
50
|
+
*
|
|
51
|
+
* @param items - A collection of PanelBarItemProps.
|
|
52
|
+
* @return {PanelBarItem[]} Returns an array of PanelBarItem components.
|
|
53
|
+
*/
|
|
54
|
+
function mapItemsToComponents(items: Array<PanelBarItemProps>): React.ReactNode[];
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
export declare const isArrayEqual: (firstArray: any[], secondArray: any[]) => boolean;
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
export declare const getFocusedChild: (flattenChildren: any, step: number, event: any, focused?: string, action?: NavigationAction) => any;
|
|
@@ -0,0 +1,150 @@
|
|
|
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 { SplitterPaneProps } from './SplitterPane.js';
|
|
9
|
+
import { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the onChange event of the Splitter.
|
|
13
|
+
*/
|
|
14
|
+
export interface SplitterOnChangeEvent {
|
|
15
|
+
/**
|
|
16
|
+
* The new panes state.
|
|
17
|
+
*/
|
|
18
|
+
newState: SplitterPaneProps[];
|
|
19
|
+
/**
|
|
20
|
+
* Indicates if is the last event during drag. Can be used to optimize performance.
|
|
21
|
+
*/
|
|
22
|
+
isLast: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The native DOM event.
|
|
25
|
+
*/
|
|
26
|
+
nativeEvent: React.MouseEvent<HTMLDivElement, MouseEvent> | React.KeyboardEvent<HTMLDivElement> | any;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Represents the options of the Splitter.
|
|
30
|
+
*/
|
|
31
|
+
export interface SplitterProps extends KendoReactComponentBaseProps {
|
|
32
|
+
/**
|
|
33
|
+
* Sets the options of the Splitter panes ([more information and examples](https://www.telerik.com/kendo-react-ui/components/layout/splitter/panes)). Can be used for controlled state.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```jsx
|
|
37
|
+
* <Splitter panes={[{ size: '50%' }, { size: '50%' }]} />
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
panes?: SplitterPaneProps[];
|
|
41
|
+
/**
|
|
42
|
+
* Sets the initial options of the Splitter panes ([more information and examples](https://www.telerik.com/kendo-react-ui/components/layout/splitter/panes)). Can be used for uncontrolled state.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```jsx
|
|
46
|
+
* <Splitter defaultPanes={[{ size: '30%' }, { size: '70%' }]} />
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
defaultPanes?: SplitterPaneProps[];
|
|
50
|
+
/**
|
|
51
|
+
* Specifies the orientation of the panes within the Splitter
|
|
52
|
+
* ([more information and examples](https://www.telerik.com/kendo-react-ui/components/layout/splitter/orientation)).
|
|
53
|
+
* Panes in a horizontal Splitter are placed horizontally. Panes in a vertical Splitter are placed vertically.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```jsx
|
|
57
|
+
* <Splitter orientation="vertical" />
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @default 'horizontal'
|
|
61
|
+
*/
|
|
62
|
+
orientation?: 'vertical' | 'horizontal';
|
|
63
|
+
/**
|
|
64
|
+
* Fires after a Splitter pane is resized or collapsed. Useful for updating the pane options and triggering layout calculations on components which are positioned inside the panes.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```jsx
|
|
68
|
+
* <Splitter onChange={(event) => console.log(event.newState)} />
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
onChange?: (event: SplitterOnChangeEvent) => void;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* @hidden
|
|
75
|
+
*/
|
|
76
|
+
export interface SplitterState {
|
|
77
|
+
isDragging: boolean;
|
|
78
|
+
dragIndex?: number;
|
|
79
|
+
startTime: number;
|
|
80
|
+
originalX: number;
|
|
81
|
+
originalY: number;
|
|
82
|
+
originalPrevSize: number;
|
|
83
|
+
originalNextSize: number;
|
|
84
|
+
panes: SplitterPaneProps[];
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Represents the [KendoReact Splitter component](https://www.telerik.com/kendo-react-ui/components/layout/splitter).
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```jsx
|
|
91
|
+
* const App = () => {
|
|
92
|
+
* return (
|
|
93
|
+
* <div>
|
|
94
|
+
* <Splitter
|
|
95
|
+
* style={{height: 400}}
|
|
96
|
+
* orientation={'vertical'}
|
|
97
|
+
* >
|
|
98
|
+
* <div>Pane 1</div>
|
|
99
|
+
* <div>Pane 2</div>
|
|
100
|
+
* <div>Pane 3</div>
|
|
101
|
+
* </Splitter>
|
|
102
|
+
* </div>
|
|
103
|
+
* );
|
|
104
|
+
* }
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
export declare class Splitter extends React.Component<SplitterProps, SplitterState> {
|
|
108
|
+
/**
|
|
109
|
+
* @hidden
|
|
110
|
+
*/
|
|
111
|
+
static displayName: string;
|
|
112
|
+
/**
|
|
113
|
+
* @hidden
|
|
114
|
+
*/
|
|
115
|
+
readonly state: SplitterState;
|
|
116
|
+
private panesDuringOnChange?;
|
|
117
|
+
private readonly showLicenseWatermark;
|
|
118
|
+
private readonly licenseMessage?;
|
|
119
|
+
private get isControlledState();
|
|
120
|
+
private get panes();
|
|
121
|
+
private _container;
|
|
122
|
+
private get orientation();
|
|
123
|
+
private get isRtl();
|
|
124
|
+
private get panesContent();
|
|
125
|
+
/**
|
|
126
|
+
* @hidden
|
|
127
|
+
*/
|
|
128
|
+
constructor(props: SplitterProps);
|
|
129
|
+
/**
|
|
130
|
+
* @hidden
|
|
131
|
+
*/
|
|
132
|
+
render(): React.JSX.Element;
|
|
133
|
+
private validatePanes;
|
|
134
|
+
private mapPaneOptions;
|
|
135
|
+
private mapSplitterPanes;
|
|
136
|
+
private onBarToggle;
|
|
137
|
+
private onBarDragResize;
|
|
138
|
+
private onBarKeyboardResize;
|
|
139
|
+
private surroudingPanes;
|
|
140
|
+
private containerSize;
|
|
141
|
+
private isPercent;
|
|
142
|
+
private toPixels;
|
|
143
|
+
private panesOptions;
|
|
144
|
+
private resetDragState;
|
|
145
|
+
private elementSize;
|
|
146
|
+
private clamp;
|
|
147
|
+
private fixedSize;
|
|
148
|
+
private resize;
|
|
149
|
+
private getPaneProps;
|
|
150
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { SplitterPaneExtendedProps } from './SplitterPane.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface SplitterBarProps {
|
|
14
|
+
orientation: 'vertical' | 'horizontal';
|
|
15
|
+
index: number;
|
|
16
|
+
prev: SplitterPaneExtendedProps;
|
|
17
|
+
next: SplitterPaneExtendedProps;
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
isRtl?: boolean;
|
|
20
|
+
onDrag: (event: any, element: HTMLDivElement, index: number, isFirst: boolean, isLast: boolean) => void;
|
|
21
|
+
onToggle: (index: number, nativeEvent: React.MouseEvent<HTMLDivElement, MouseEvent> | React.KeyboardEvent<HTMLDivElement>) => void;
|
|
22
|
+
onKeyboardResize: (element: HTMLDivElement, index: number, delta: number, nativeEvent: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export interface SplitterBarState {
|
|
28
|
+
focused: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
export declare class SplitterBar extends React.Component<SplitterBarProps, SplitterBarState> {
|
|
34
|
+
private draggable;
|
|
35
|
+
private spliterBarRef;
|
|
36
|
+
private navigation?;
|
|
37
|
+
private get isStatic();
|
|
38
|
+
private get isDraggable();
|
|
39
|
+
private get isHorizontal();
|
|
40
|
+
constructor(props: SplitterBarProps);
|
|
41
|
+
/** @hidden */
|
|
42
|
+
componentDidMount(): void;
|
|
43
|
+
render(): React.JSX.Element;
|
|
44
|
+
private onDrag;
|
|
45
|
+
private onFocus;
|
|
46
|
+
private onBlur;
|
|
47
|
+
private onToggle;
|
|
48
|
+
private onPrevToggle;
|
|
49
|
+
private onNextToggle;
|
|
50
|
+
private onKeyDown;
|
|
51
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the pane options of the Splitter.
|
|
12
|
+
*/
|
|
13
|
+
export interface SplitterPaneProps extends KendoReactComponentBaseProps {
|
|
14
|
+
/**
|
|
15
|
+
* Sets the size of the pane ([see example](https://www.telerik.com/kendo-react-ui/components/layout/splitter/panes#toc-dimensions)). Has to be between the `min` and `max` properties.
|
|
16
|
+
*/
|
|
17
|
+
size?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the minimum possible size of the pane ([see example](https://www.telerik.com/kendo-react-ui/components/layout/splitter/panes#toc-dimensions)).
|
|
20
|
+
*/
|
|
21
|
+
min?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Sets the maximum possible size of the pane ([see example](https://www.telerik.com/kendo-react-ui/components/layout/splitter/panes#toc-dimensions)).
|
|
24
|
+
*/
|
|
25
|
+
max?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies if the user is allowed to resize the pane and provide space for other panes
|
|
28
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/splitter/panes#toc-resizing)).
|
|
29
|
+
* If `resizable` is not specified, the resizing of the pane will be enabled.
|
|
30
|
+
*
|
|
31
|
+
* @default true
|
|
32
|
+
*/
|
|
33
|
+
resizable?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Specifies if the user is allowed to hide the pane and provide space for other panes
|
|
36
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/splitter/panes#toc-collapsing)).
|
|
37
|
+
*
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
collapsible?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Specifies the pane collapsed state
|
|
43
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/splitter/panes#toc-collapsing)).
|
|
44
|
+
*
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
collapsed?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Specifies if overflowing content is scrollable or hidden
|
|
50
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/splitter/panes#toc-scrolling)).
|
|
51
|
+
* If `scrollable` is not specified, the content will be scrollable.
|
|
52
|
+
*
|
|
53
|
+
* @default true
|
|
54
|
+
*/
|
|
55
|
+
scrollable?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Specifies if the children of the pane should be mounted when it's in collapsed state.
|
|
58
|
+
*
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
keepMounted?: boolean;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @hidden
|
|
65
|
+
*/
|
|
66
|
+
export interface SplitterPaneExtendedProps extends SplitterPaneProps {
|
|
67
|
+
orientation: 'vertical' | 'horizontal';
|
|
68
|
+
overlay: boolean;
|
|
69
|
+
containsSplitter: boolean;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @hidden
|
|
73
|
+
*/
|
|
74
|
+
export declare class SplitterPane extends React.Component<SplitterPaneExtendedProps, {}> {
|
|
75
|
+
render(): React.JSX.Element;
|
|
76
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 splitBarLabel = "splitBarLabel";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare const messages: {
|
|
16
|
+
splitBarLabel: string;
|
|
17
|
+
};
|