@progress/kendo-react-layout 5.4.0-dev.202205250548 → 5.4.0-dev.202206081230
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/dist/es/appbar/AppBar.d.ts +1 -1
- package/dist/es/appbar/AppBarSection.d.ts +1 -1
- package/dist/es/appbar/AppBarSpacer.d.ts +1 -1
- package/dist/es/appbar/interfaces/AppBarProps.js +1 -0
- package/dist/es/appbar/interfaces/AppBarSectionProps.js +1 -0
- package/dist/es/appbar/interfaces/AppBarSpacerProps.d.ts +4 -0
- package/dist/es/appbar/interfaces/AppBarSpacerProps.js +1 -0
- package/dist/es/bottomnavigation/BottomNavigation.d.ts +1 -1
- package/dist/es/bottomnavigation/BottomNavigation.js +1 -1
- package/dist/es/bottomnavigation/BottomNavigationItem.d.ts +1 -1
- package/dist/es/bottomnavigation/BottomNavigationItem.js +1 -1
- package/dist/es/bottomnavigation/BottomNavigationItemProps.js +1 -0
- package/dist/es/bottomnavigation/BottomNavigationProps.js +1 -0
- package/dist/es/bottomnavigation/models/events.js +1 -0
- package/dist/es/bottomnavigation/models/utils.d.ts +16 -16
- package/dist/es/breadcrumb/Breadcrumb.d.ts +5 -1
- package/dist/es/breadcrumb/Breadcrumb.js +9 -4
- package/dist/es/breadcrumb/BreadcrumbDelimiter.d.ts +1 -1
- package/dist/es/breadcrumb/BreadcrumbDelimiter.js +0 -1
- package/dist/es/breadcrumb/BreadcrumbLink.d.ts +1 -1
- package/dist/es/breadcrumb/BreadcrumbListItem.d.ts +1 -1
- package/dist/es/breadcrumb/BreadcrumbListItem.js +0 -1
- package/dist/es/breadcrumb/BreadcrumbOrderedList.d.ts +1 -1
- package/dist/es/breadcrumb/BreadcrumbOrderedList.js +0 -1
- package/dist/es/card/Avatar.js +5 -5
- package/dist/es/card/Card.d.ts +1 -1
- package/dist/es/card/Card.js +6 -5
- package/dist/es/card/CardActions.js +1 -1
- package/dist/es/card/interfaces/AvatarProps.js +1 -0
- package/dist/es/card/interfaces/CardActionsProps.js +1 -0
- package/dist/es/card/interfaces/CardBodyProps.js +1 -0
- package/dist/es/card/interfaces/CardFooterProps.js +1 -0
- package/dist/es/card/interfaces/CardHandle.js +1 -0
- package/dist/es/card/interfaces/CardHeaderProps.js +1 -0
- package/dist/es/card/interfaces/CardImageProps.js +1 -0
- package/dist/es/card/interfaces/CardProps.js +1 -0
- package/dist/es/card/interfaces/CardSubtitleProps.js +1 -0
- package/dist/es/card/interfaces/CardTitleProps.js +1 -0
- package/dist/es/drawer/Drawer.d.ts +1 -1
- package/dist/es/drawer/Drawer.js +9 -4
- package/dist/es/drawer/DrawerContent.d.ts +1 -1
- package/dist/es/drawer/DrawerItem.d.ts +1 -1
- package/dist/es/drawer/DrawerItem.js +6 -4
- package/dist/es/drawer/DrawerNavigation.d.ts +1 -1
- package/dist/es/drawer/DrawerNavigation.js +2 -2
- package/dist/es/drawer/context/DrawerContext.d.ts +1 -1
- package/dist/es/drawer/interfaces/DrawerAnimation.js +1 -0
- package/dist/es/drawer/interfaces/DrawerContentProps.js +1 -0
- package/dist/es/drawer/interfaces/DrawerItemHandle.js +1 -0
- package/dist/es/drawer/interfaces/DrawerItemProps.d.ts +1 -1
- package/dist/es/drawer/interfaces/DrawerItemProps.js +1 -0
- package/dist/es/drawer/interfaces/DrawerNavigationProps.js +1 -0
- package/dist/es/drawer/interfaces/DrawerProps.js +1 -0
- package/dist/es/drawer/interfaces/DrawerSelectEvent.js +1 -0
- package/dist/es/expansionpanel/ExpansionPanel.d.ts +1 -1
- package/dist/es/expansionpanel/index.js +1 -0
- package/dist/es/expansionpanel/interfaces.js +1 -0
- package/dist/es/gridlayout/GridLayout.d.ts +1 -1
- package/dist/es/gridlayout/GridLayout.js +3 -3
- package/dist/es/gridlayout/GridLayoutItem.d.ts +1 -1
- package/dist/es/gridlayout/GridLayoutItem.js +1 -1
- package/dist/es/gridlayout/interfaces/GridLayoutColumnProps.js +1 -0
- package/dist/es/gridlayout/interfaces/GridLayoutItemProps.js +1 -0
- package/dist/es/gridlayout/interfaces/GridLayoutProps.js +1 -0
- package/dist/es/gridlayout/interfaces/GridLayoutRowProps.js +1 -0
- package/dist/es/main.js +37 -0
- package/dist/es/menu/BaseMenuItemInternalProps.js +1 -0
- package/dist/es/menu/MenuProps.js +1 -0
- package/dist/es/menu/components/Menu.d.ts +2 -2
- package/dist/es/menu/components/Menu.js +5 -1
- package/dist/es/menu/components/MenuItem.d.ts +1 -1
- package/dist/es/menu/components/MenuItem.js +3 -1
- package/dist/es/menu/components/MenuItemArrow.js +3 -1
- package/dist/es/menu/components/MenuItemInternal.d.ts +4 -4
- package/dist/es/menu/components/MenuItemInternal.js +8 -6
- package/dist/es/menu/components/MenuItemInternalsList.js +3 -1
- package/dist/es/menu/components/MenuItemLink.js +3 -1
- package/dist/es/menu/events.js +1 -0
- package/dist/es/menu/models/BaseMenuItem.d.ts +4 -0
- package/dist/es/menu/models/BaseMenuItem.js +1 -0
- package/dist/es/menu/models/MenuItemModel.js +1 -0
- package/dist/es/menu/utils/DirectionHolder.d.ts +1 -1
- package/dist/es/menu/utils/MouseOverHandler.d.ts +2 -2
- package/dist/es/menu/utils/MouseOverHandler.js +3 -2
- package/dist/es/menu/utils/misc.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/panelbar/PanelBar.d.ts +6 -6
- package/dist/es/panelbar/PanelBar.js +19 -8
- package/dist/es/panelbar/PanelBarItem.d.ts +1 -1
- package/dist/es/panelbar/PanelBarItem.js +7 -5
- package/dist/es/panelbar/interfaces/PanelBarItemClickEventArguments.js +1 -0
- package/dist/es/panelbar/interfaces/PanelBarItemProps.js +1 -0
- package/dist/es/panelbar/interfaces/PanelBarProps.js +1 -0
- package/dist/es/panelbar/interfaces/PanelBarSelectEventArguments.js +1 -0
- package/dist/es/panelbar/interfaces/RenderPanelBarItem.js +1 -0
- package/dist/es/panelbar/util.js +14 -5
- package/dist/es/splitter/Splitter.d.ts +5 -5
- package/dist/es/splitter/Splitter.js +20 -17
- package/dist/es/splitter/SplitterBar.d.ts +3 -3
- package/dist/es/splitter/SplitterBar.js +8 -5
- package/dist/es/splitter/SplitterPane.js +3 -1
- package/dist/es/stacklayout/StackLayout.d.ts +1 -1
- package/dist/es/stacklayout/StackLayout.js +1 -1
- package/dist/es/stacklayout/StackLayoutProps.js +1 -0
- package/dist/es/stepper/Step.d.ts +1 -1
- package/dist/es/stepper/Step.js +8 -6
- package/dist/es/stepper/Stepper.d.ts +1 -1
- package/dist/es/stepper/Stepper.js +4 -1
- package/dist/es/stepper/interfaces/StepChangeEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepFocusEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepHandle.js +1 -0
- package/dist/es/stepper/interfaces/StepProps.js +1 -0
- package/dist/es/stepper/interfaces/StepperChangeEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepperFocusEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepperHandle.js +1 -0
- package/dist/es/stepper/interfaces/StepperOnNavigateEvent.js +1 -0
- package/dist/es/stepper/interfaces/StepperProps.js +1 -0
- package/dist/es/stepper/messages/index.d.ts +1 -1
- package/dist/es/tabstrip/TabStrip.js +4 -2
- package/dist/es/tabstrip/TabStripContent.d.ts +5 -1
- package/dist/es/tabstrip/TabStripContent.js +4 -2
- package/dist/es/tabstrip/TabStripNavigation.d.ts +1 -1
- package/dist/es/tabstrip/TabStripNavigation.js +3 -1
- package/dist/es/tabstrip/TabStripNavigationItem.js +3 -1
- package/dist/es/tabstrip/TabStripTab.d.ts +6 -2
- package/dist/es/tabstrip/TabStripTab.js +9 -1
- package/dist/es/tilelayout/InternalTile.d.ts +4 -3
- package/dist/es/tilelayout/InternalTile.js +14 -18
- package/dist/es/tilelayout/ResizeHandlers.d.ts +1 -1
- package/dist/es/tilelayout/ResizeHandlers.js +3 -1
- package/dist/es/tilelayout/TileLayout.d.ts +2 -2
- package/dist/es/tilelayout/TileLayout.js +6 -4
- package/dist/es/tilelayout/interfaces/main.js +1 -0
- package/dist/npm/appbar/AppBar.d.ts +1 -1
- package/dist/npm/appbar/AppBar.js +5 -4
- package/dist/npm/appbar/AppBarSection.d.ts +1 -1
- package/dist/npm/appbar/AppBarSection.js +3 -2
- package/dist/npm/appbar/AppBarSpacer.d.ts +1 -1
- package/dist/npm/appbar/AppBarSpacer.js +3 -2
- package/dist/npm/appbar/interfaces/AppBarSpacerProps.d.ts +4 -0
- package/dist/npm/bottomnavigation/BottomNavigation.d.ts +1 -1
- package/dist/npm/bottomnavigation/BottomNavigation.js +9 -8
- package/dist/npm/bottomnavigation/BottomNavigationItem.d.ts +1 -1
- package/dist/npm/bottomnavigation/BottomNavigationItem.js +4 -3
- package/dist/npm/bottomnavigation/models/utils.d.ts +16 -16
- package/dist/npm/bottomnavigation/models/utils.js +1 -0
- package/dist/npm/breadcrumb/Breadcrumb.d.ts +5 -1
- package/dist/npm/breadcrumb/Breadcrumb.js +15 -9
- package/dist/npm/breadcrumb/BreadcrumbDelimiter.d.ts +1 -1
- package/dist/npm/breadcrumb/BreadcrumbDelimiter.js +3 -3
- package/dist/npm/breadcrumb/BreadcrumbLink.d.ts +1 -1
- package/dist/npm/breadcrumb/BreadcrumbLink.js +6 -5
- package/dist/npm/breadcrumb/BreadcrumbListItem.d.ts +1 -1
- package/dist/npm/breadcrumb/BreadcrumbListItem.js +3 -3
- package/dist/npm/breadcrumb/BreadcrumbOrderedList.d.ts +1 -1
- package/dist/npm/breadcrumb/BreadcrumbOrderedList.js +3 -3
- package/dist/npm/card/Avatar.js +10 -8
- package/dist/npm/card/Card.d.ts +1 -1
- package/dist/npm/card/Card.js +8 -6
- package/dist/npm/card/CardActions.js +4 -2
- package/dist/npm/card/CardBody.js +4 -2
- package/dist/npm/card/CardFooter.js +4 -2
- package/dist/npm/card/CardHeader.js +4 -2
- package/dist/npm/card/CardImage.js +4 -2
- package/dist/npm/card/CardSubtitle.js +4 -2
- package/dist/npm/card/CardTitle.js +4 -2
- package/dist/npm/card/interfaces/Enums.js +1 -0
- package/dist/npm/drawer/Drawer.d.ts +1 -1
- package/dist/npm/drawer/Drawer.js +13 -7
- package/dist/npm/drawer/DrawerContent.d.ts +1 -1
- package/dist/npm/drawer/DrawerContent.js +2 -1
- package/dist/npm/drawer/DrawerItem.d.ts +1 -1
- package/dist/npm/drawer/DrawerItem.js +9 -6
- package/dist/npm/drawer/DrawerNavigation.d.ts +1 -1
- package/dist/npm/drawer/DrawerNavigation.js +4 -3
- package/dist/npm/drawer/context/DrawerContext.d.ts +1 -1
- package/dist/npm/drawer/context/DrawerContext.js +1 -0
- package/dist/npm/drawer/interfaces/DrawerItemProps.d.ts +1 -1
- package/dist/npm/expansionpanel/ExpansionPanel.d.ts +1 -1
- package/dist/npm/expansionpanel/ExpansionPanel.js +8 -7
- package/dist/npm/expansionpanel/ExpansionPanelContent.js +2 -1
- package/dist/npm/expansionpanel/index.js +17 -5
- package/dist/npm/gridlayout/GridLayout.d.ts +1 -1
- package/dist/npm/gridlayout/GridLayout.js +7 -6
- package/dist/npm/gridlayout/GridLayoutItem.d.ts +1 -1
- package/dist/npm/gridlayout/GridLayoutItem.js +4 -3
- package/dist/npm/main.js +95 -47
- package/dist/npm/menu/components/Menu.d.ts +2 -2
- package/dist/npm/menu/components/Menu.js +22 -17
- package/dist/npm/menu/components/MenuItem.d.ts +1 -1
- package/dist/npm/menu/components/MenuItem.js +4 -1
- package/dist/npm/menu/components/MenuItemArrow.js +6 -3
- package/dist/npm/menu/components/MenuItemInternal.d.ts +4 -4
- package/dist/npm/menu/components/MenuItemInternal.js +17 -14
- package/dist/npm/menu/components/MenuItemInternalsList.js +5 -2
- package/dist/npm/menu/components/MenuItemLink.js +6 -3
- package/dist/npm/menu/consts.js +1 -0
- package/dist/npm/menu/models/BaseMenuItem.d.ts +4 -0
- package/dist/npm/menu/utils/DirectionHolder.d.ts +1 -1
- package/dist/npm/menu/utils/DirectionHolder.js +1 -0
- package/dist/npm/menu/utils/MouseOverHandler.d.ts +2 -2
- package/dist/npm/menu/utils/MouseOverHandler.js +4 -2
- package/dist/npm/menu/utils/getNewItemIdUponKeyboardNavigation.js +25 -24
- package/dist/npm/menu/utils/hoverDelay.js +1 -0
- package/dist/npm/menu/utils/itemsIdsUtils.js +1 -0
- package/dist/npm/menu/utils/misc.js +3 -2
- package/dist/npm/menu/utils/prepareInputItemsForInternalWork.js +3 -2
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/panelbar/PanelBar.d.ts +6 -6
- package/dist/npm/panelbar/PanelBar.js +28 -16
- package/dist/npm/panelbar/PanelBarItem.d.ts +1 -1
- package/dist/npm/panelbar/PanelBarItem.js +12 -9
- package/dist/npm/panelbar/interfaces/NavigationAction.js +1 -0
- package/dist/npm/panelbar/util.js +26 -11
- package/dist/npm/splitter/Splitter.d.ts +5 -5
- package/dist/npm/splitter/Splitter.js +22 -18
- package/dist/npm/splitter/SplitterBar.d.ts +3 -3
- package/dist/npm/splitter/SplitterBar.js +12 -8
- package/dist/npm/splitter/SplitterPane.js +5 -2
- package/dist/npm/stacklayout/StackLayout.d.ts +1 -1
- package/dist/npm/stacklayout/StackLayout.js +5 -4
- package/dist/npm/stepper/Step.d.ts +1 -1
- package/dist/npm/stepper/Step.js +14 -11
- package/dist/npm/stepper/Stepper.d.ts +1 -1
- package/dist/npm/stepper/Stepper.js +12 -8
- package/dist/npm/stepper/contants.js +1 -0
- package/dist/npm/stepper/context/StepperContext.js +1 -0
- package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.js +2 -0
- package/dist/npm/stepper/messages/index.d.ts +1 -1
- package/dist/npm/stepper/messages/index.js +2 -1
- package/dist/npm/tabstrip/TabStrip.js +7 -4
- package/dist/npm/tabstrip/TabStripContent.d.ts +5 -1
- package/dist/npm/tabstrip/TabStripContent.js +7 -4
- package/dist/npm/tabstrip/TabStripNavigation.d.ts +1 -1
- package/dist/npm/tabstrip/TabStripNavigation.js +6 -3
- package/dist/npm/tabstrip/TabStripNavigationItem.js +5 -2
- package/dist/npm/tabstrip/TabStripTab.d.ts +6 -2
- package/dist/npm/tabstrip/TabStripTab.js +10 -1
- package/dist/npm/tilelayout/InternalTile.d.ts +4 -3
- package/dist/npm/tilelayout/InternalTile.js +16 -19
- package/dist/npm/tilelayout/ResizeHandlers.d.ts +1 -1
- package/dist/npm/tilelayout/ResizeHandlers.js +4 -1
- package/dist/npm/tilelayout/TileLayout.d.ts +2 -2
- package/dist/npm/tilelayout/TileLayout.js +10 -7
- package/dist/systemjs/kendo-react-layout.js +1 -1
- package/package.json +14 -14
package/dist/es/main.js
CHANGED
|
@@ -6,10 +6,16 @@ export * from './tabstrip/TabStripTab';
|
|
|
6
6
|
export * from './panelbar/PanelBar';
|
|
7
7
|
export * from './panelbar/PanelBarItem';
|
|
8
8
|
export * from './panelbar/util';
|
|
9
|
+
export * from './panelbar/interfaces/PanelBarProps';
|
|
10
|
+
export * from './panelbar/interfaces/PanelBarItemProps';
|
|
11
|
+
export * from './panelbar/interfaces/RenderPanelBarItem';
|
|
12
|
+
export * from './panelbar/interfaces/PanelBarSelectEventArguments';
|
|
9
13
|
export * from './menu/components/Menu';
|
|
10
14
|
export * from './menu/components/MenuItemLink';
|
|
11
15
|
export * from './menu/components/MenuItem';
|
|
12
16
|
export * from './menu/components/MenuItemArrow';
|
|
17
|
+
export * from './menu/models/MenuItemModel';
|
|
18
|
+
export * from './menu/events';
|
|
13
19
|
export * from './splitter/Splitter';
|
|
14
20
|
export * from './splitter/SplitterPane';
|
|
15
21
|
export * from './card/Card';
|
|
@@ -20,22 +26,53 @@ export * from './card/CardActions';
|
|
|
20
26
|
export * from './card/CardImage';
|
|
21
27
|
export * from './card/CardSubtitle';
|
|
22
28
|
export * from './card/CardFooter';
|
|
29
|
+
export * from './card/interfaces/CardProps';
|
|
30
|
+
export * from './card/interfaces/CardHandle';
|
|
31
|
+
export * from './card/interfaces/AvatarProps';
|
|
32
|
+
export * from './card/interfaces/CardActionsProps';
|
|
23
33
|
export * from './card/Avatar';
|
|
24
34
|
export * from './drawer/Drawer';
|
|
35
|
+
export * from './drawer/interfaces/DrawerProps';
|
|
25
36
|
export * from './drawer/DrawerNavigation';
|
|
37
|
+
export * from './drawer/interfaces/DrawerNavigationProps';
|
|
26
38
|
export * from './drawer/DrawerContent';
|
|
39
|
+
export * from './drawer/interfaces/DrawerContentProps';
|
|
27
40
|
export * from './drawer/DrawerItem';
|
|
41
|
+
export * from './drawer/interfaces/DrawerItemHandle';
|
|
42
|
+
export * from './drawer/interfaces/DrawerItemProps';
|
|
43
|
+
export * from './drawer/interfaces/DrawerSelectEvent';
|
|
44
|
+
export * from './drawer/interfaces/DrawerAnimation';
|
|
28
45
|
export * from './stepper/Stepper';
|
|
46
|
+
export * from './stepper/interfaces/StepperProps';
|
|
47
|
+
export * from './stepper/interfaces/StepperHandle';
|
|
48
|
+
export * from './stepper/interfaces/StepperChangeEvent';
|
|
49
|
+
export * from './stepper/interfaces/StepperFocusEvent';
|
|
29
50
|
export * from './stepper/Step';
|
|
51
|
+
export * from './stepper/interfaces/StepProps';
|
|
52
|
+
export * from './stepper/interfaces/StepHandle';
|
|
53
|
+
export * from './stepper/interfaces/StepChangeEvent';
|
|
54
|
+
export * from './stepper/interfaces/StepFocusEvent';
|
|
30
55
|
export * from './appbar/AppBar';
|
|
56
|
+
export * from './appbar/interfaces/AppBarProps';
|
|
31
57
|
export * from './appbar/AppBarSection';
|
|
58
|
+
export * from './appbar/interfaces/AppBarSectionProps';
|
|
32
59
|
export * from './appbar/AppBarSpacer';
|
|
60
|
+
export * from './appbar/interfaces/AppBarSpacerProps';
|
|
33
61
|
export * from './tilelayout/TileLayout';
|
|
62
|
+
export * from './tilelayout/interfaces/main';
|
|
34
63
|
export * from './bottomnavigation/BottomNavigation';
|
|
64
|
+
export * from './bottomnavigation/BottomNavigationProps';
|
|
35
65
|
export * from './bottomnavigation/BottomNavigationItem';
|
|
66
|
+
export * from './bottomnavigation/BottomNavigationItemProps';
|
|
67
|
+
export * from './bottomnavigation/models/events';
|
|
36
68
|
export * from './stacklayout/StackLayout';
|
|
69
|
+
export * from './stacklayout/StackLayoutProps';
|
|
37
70
|
export * from './gridlayout/GridLayout';
|
|
38
71
|
export * from './gridlayout/GridLayoutItem';
|
|
72
|
+
export * from './gridlayout/interfaces/GridLayoutProps';
|
|
73
|
+
export * from './gridlayout/interfaces/GridLayoutItemProps';
|
|
74
|
+
export * from './gridlayout/interfaces/GridLayoutRowProps';
|
|
75
|
+
export * from './gridlayout/interfaces/GridLayoutColumnProps';
|
|
39
76
|
export * from './breadcrumb/Breadcrumb';
|
|
40
77
|
export * from './breadcrumb/BreadcrumbOrderedList';
|
|
41
78
|
export * from './breadcrumb/BreadcrumbListItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -38,7 +38,7 @@ export declare class Menu extends React.Component<MenuProps, MenuState> {
|
|
|
38
38
|
*/
|
|
39
39
|
static propTypes: {
|
|
40
40
|
vertical: PropTypes.Requireable<boolean>;
|
|
41
|
-
items: PropTypes.Requireable<object[]>;
|
|
41
|
+
items: PropTypes.Requireable<(object | null | undefined)[]>;
|
|
42
42
|
style: PropTypes.Requireable<object>;
|
|
43
43
|
dir: PropTypes.Requireable<string>;
|
|
44
44
|
hoverOpenDelay: PropTypes.Requireable<number>;
|
|
@@ -46,7 +46,7 @@ export declare class Menu extends React.Component<MenuProps, MenuState> {
|
|
|
46
46
|
openOnClick: PropTypes.Requireable<boolean>;
|
|
47
47
|
itemRender: PropTypes.Requireable<any>;
|
|
48
48
|
linkRender: PropTypes.Requireable<any>;
|
|
49
|
-
customCloseItemIds: PropTypes.Requireable<string[]>;
|
|
49
|
+
customCloseItemIds: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
50
50
|
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -56,6 +58,8 @@ var Menu = /** @class */ (function (_super) {
|
|
|
56
58
|
var _this = _super.call(this, props) || this;
|
|
57
59
|
_this.guid = guid();
|
|
58
60
|
_this.directionHolder = new DirectionHolder();
|
|
61
|
+
_this.inputItems = [];
|
|
62
|
+
_this.items = [];
|
|
59
63
|
/**
|
|
60
64
|
* Resets the selection and opening of Menu items.
|
|
61
65
|
*/
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -31,10 +31,10 @@ export declare class MenuItemInternal extends React.Component<MenuItemInternalPr
|
|
|
31
31
|
private renderArrowIfApplicable;
|
|
32
32
|
private onMouseOver;
|
|
33
33
|
private onMouseLeave;
|
|
34
|
-
private
|
|
35
|
-
private
|
|
36
|
-
private
|
|
37
|
-
private
|
|
34
|
+
private get itemRender();
|
|
35
|
+
private get linkRender();
|
|
36
|
+
private get contentRender();
|
|
37
|
+
private get Opened();
|
|
38
38
|
private getPopupClassName;
|
|
39
39
|
private getMenuItemClassName;
|
|
40
40
|
}
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -108,7 +110,7 @@ var MenuItemInternal = /** @class */ (function (_super) {
|
|
|
108
110
|
};
|
|
109
111
|
MenuItemInternal.prototype.renderMenuIconIfApplicable = function () {
|
|
110
112
|
return this.props.item.icon ?
|
|
111
|
-
React.createElement("span", { className: "k-icon k-i-"
|
|
113
|
+
React.createElement("span", { className: "k-icon k-i-".concat(this.props.item.icon), role: "presentation", key: "0" }) : null;
|
|
112
114
|
};
|
|
113
115
|
MenuItemInternal.prototype.renderArrowIfApplicable = function () {
|
|
114
116
|
return this.props.item.items.length > 0 ?
|
|
@@ -118,21 +120,21 @@ var MenuItemInternal = /** @class */ (function (_super) {
|
|
|
118
120
|
get: function () {
|
|
119
121
|
return this.props.item.render || this.props.itemRender;
|
|
120
122
|
},
|
|
121
|
-
enumerable:
|
|
123
|
+
enumerable: false,
|
|
122
124
|
configurable: true
|
|
123
125
|
});
|
|
124
126
|
Object.defineProperty(MenuItemInternal.prototype, "linkRender", {
|
|
125
127
|
get: function () {
|
|
126
128
|
return this.props.item.linkRender || this.props.linkRender;
|
|
127
129
|
},
|
|
128
|
-
enumerable:
|
|
130
|
+
enumerable: false,
|
|
129
131
|
configurable: true
|
|
130
132
|
});
|
|
131
133
|
Object.defineProperty(MenuItemInternal.prototype, "contentRender", {
|
|
132
134
|
get: function () {
|
|
133
135
|
return this.props.item.contentParentItemId ? this.props.item.contentRender : null;
|
|
134
136
|
},
|
|
135
|
-
enumerable:
|
|
137
|
+
enumerable: false,
|
|
136
138
|
configurable: true
|
|
137
139
|
});
|
|
138
140
|
Object.defineProperty(MenuItemInternal.prototype, "Opened", {
|
|
@@ -144,7 +146,7 @@ var MenuItemInternal = /** @class */ (function (_super) {
|
|
|
144
146
|
// popup inside popup throws an error (for example, hover of item with id '0_0').
|
|
145
147
|
!this.isFirstRender;
|
|
146
148
|
},
|
|
147
|
-
enumerable:
|
|
149
|
+
enumerable: false,
|
|
148
150
|
configurable: true
|
|
149
151
|
});
|
|
150
152
|
MenuItemInternal.prototype.getPopupClassName = function () {
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
package/dist/es/menu/events.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,7 +5,7 @@ export declare class DirectionHolder {
|
|
|
5
5
|
private phase;
|
|
6
6
|
private previousIsDirectionRightToLeft?;
|
|
7
7
|
private isDirectionRightToLeft?;
|
|
8
|
-
getIsDirectionRightToLeft(): boolean;
|
|
8
|
+
getIsDirectionRightToLeft(): boolean | undefined;
|
|
9
9
|
setIsDirectionRightToLeft(value: boolean): void;
|
|
10
10
|
hasDirectionChanged(): boolean;
|
|
11
11
|
}
|
|
@@ -8,9 +8,9 @@ export declare class MouseOverHandler {
|
|
|
8
8
|
private isMouseOverEnabled;
|
|
9
9
|
private mouseDown;
|
|
10
10
|
constructor(openOnClick: boolean | undefined, resetMenu: any, openItem: any);
|
|
11
|
-
OpenOnClick: boolean | undefined;
|
|
11
|
+
set OpenOnClick(value: boolean | undefined);
|
|
12
12
|
handleItemSelectedViaKeyboard(): void;
|
|
13
|
-
|
|
13
|
+
get IsMouseOverEnabled(): boolean;
|
|
14
14
|
handleItemMouseDown(): void;
|
|
15
15
|
handleItemFocus(): void;
|
|
16
16
|
handleItemClick(itemId: string, clickedItemIsWithDefaultClose: boolean): void;
|
|
@@ -6,6 +6,7 @@ var MouseOverHandler = /** @class */ (function () {
|
|
|
6
6
|
this.openOnClick = openOnClick;
|
|
7
7
|
this.resetMenu = resetMenu;
|
|
8
8
|
this.openItem = openItem;
|
|
9
|
+
this.mouseDown = false;
|
|
9
10
|
this.openOnClick = openOnClick;
|
|
10
11
|
this.isMouseOverEnabled = openOnClick ? false : true;
|
|
11
12
|
}
|
|
@@ -17,7 +18,7 @@ var MouseOverHandler = /** @class */ (function () {
|
|
|
17
18
|
}
|
|
18
19
|
this.openOnClick = value;
|
|
19
20
|
},
|
|
20
|
-
enumerable:
|
|
21
|
+
enumerable: false,
|
|
21
22
|
configurable: true
|
|
22
23
|
});
|
|
23
24
|
MouseOverHandler.prototype.handleItemSelectedViaKeyboard = function () {
|
|
@@ -30,7 +31,7 @@ var MouseOverHandler = /** @class */ (function () {
|
|
|
30
31
|
get: function () {
|
|
31
32
|
return this.isMouseOverEnabled;
|
|
32
33
|
},
|
|
33
|
-
enumerable:
|
|
34
|
+
enumerable: false,
|
|
34
35
|
configurable: true
|
|
35
36
|
});
|
|
36
37
|
MouseOverHandler.prototype.handleItemMouseDown = function () {
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-layout',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1654690499,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -18,10 +18,10 @@ export declare class PanelBar extends React.Component<PanelBarProps, PanelBarSta
|
|
|
18
18
|
*/
|
|
19
19
|
static propTypes: {
|
|
20
20
|
animation: PropTypes.Requireable<boolean>;
|
|
21
|
-
children: (props: PanelBarProps, propName: any) => Error;
|
|
21
|
+
children: (props: PanelBarProps, propName: any) => Error | null | undefined;
|
|
22
22
|
dir: PropTypes.Requireable<string>;
|
|
23
23
|
selected: PropTypes.Requireable<string>;
|
|
24
|
-
expanded: PropTypes.Requireable<string[]>;
|
|
24
|
+
expanded: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
25
25
|
focused: PropTypes.Requireable<string>;
|
|
26
26
|
expandMode: PropTypes.Requireable<string>;
|
|
27
27
|
className: PropTypes.Requireable<string>;
|
|
@@ -44,10 +44,10 @@ export declare class PanelBar extends React.Component<PanelBarProps, PanelBarSta
|
|
|
44
44
|
private activeDescendant?;
|
|
45
45
|
private _element;
|
|
46
46
|
private nextTickId;
|
|
47
|
-
private
|
|
48
|
-
private
|
|
49
|
-
private
|
|
50
|
-
private
|
|
47
|
+
private get expandMode();
|
|
48
|
+
private get selectedItem();
|
|
49
|
+
private get expandedItems();
|
|
50
|
+
private get children();
|
|
51
51
|
constructor(props: PanelBarProps);
|
|
52
52
|
/**
|
|
53
53
|
* @hidden
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -22,6 +24,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
22
24
|
};
|
|
23
25
|
return __assign.apply(this, arguments);
|
|
24
26
|
};
|
|
27
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
28
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
29
|
+
if (ar || !(i in from)) {
|
|
30
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
31
|
+
ar[i] = from[i];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
35
|
+
};
|
|
25
36
|
import * as React from 'react';
|
|
26
37
|
import * as PropTypes from 'prop-types';
|
|
27
38
|
import { PanelBarItem } from './PanelBarItem';
|
|
@@ -56,10 +67,10 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
56
67
|
});
|
|
57
68
|
switch (_this.expandMode) {
|
|
58
69
|
case 'single':
|
|
59
|
-
newExpanded = selectedChild.props.parentUniquePrivateKey
|
|
70
|
+
newExpanded = __spreadArray(__spreadArray([], selectedChild.props.parentUniquePrivateKey, true), [selectedChild.props.uniquePrivateKey], false);
|
|
60
71
|
if (isArrayEqual(_this.expandedItems, newExpanded)) {
|
|
61
72
|
if (selectedChild.props.parentUniquePrivateKey) {
|
|
62
|
-
newExpanded = selectedChild.props.parentUniquePrivateKey
|
|
73
|
+
newExpanded = __spreadArray([], selectedChild.props.parentUniquePrivateKey, true);
|
|
63
74
|
}
|
|
64
75
|
else {
|
|
65
76
|
newExpanded = [];
|
|
@@ -180,7 +191,7 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
180
191
|
get: function () {
|
|
181
192
|
return this.props.expandMode || 'multiple';
|
|
182
193
|
},
|
|
183
|
-
enumerable:
|
|
194
|
+
enumerable: false,
|
|
184
195
|
configurable: true
|
|
185
196
|
});
|
|
186
197
|
Object.defineProperty(PanelBar.prototype, "selectedItem", {
|
|
@@ -188,7 +199,7 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
188
199
|
var _a = this.props.selected, selected = _a === void 0 ? this.state.selected : _a;
|
|
189
200
|
return selected;
|
|
190
201
|
},
|
|
191
|
-
enumerable:
|
|
202
|
+
enumerable: false,
|
|
192
203
|
configurable: true
|
|
193
204
|
});
|
|
194
205
|
Object.defineProperty(PanelBar.prototype, "expandedItems", {
|
|
@@ -196,12 +207,12 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
196
207
|
var expanded = this.props.isControlled ? this.props.expanded || [] : this.state.expanded;
|
|
197
208
|
return expanded;
|
|
198
209
|
},
|
|
199
|
-
enumerable:
|
|
210
|
+
enumerable: false,
|
|
200
211
|
configurable: true
|
|
201
212
|
});
|
|
202
213
|
Object.defineProperty(PanelBar.prototype, "children", {
|
|
203
214
|
get: function () {
|
|
204
|
-
var state = __assign({}, this.state, { selected: this.selectedItem });
|
|
215
|
+
var state = __assign(__assign({}, this.state), { selected: this.selectedItem });
|
|
205
216
|
var renderState = {
|
|
206
217
|
animation: this.props.animation,
|
|
207
218
|
keepItemsMounted: this.props.keepItemsMounted,
|
|
@@ -212,7 +223,7 @@ var PanelBar = /** @class */ (function (_super) {
|
|
|
212
223
|
};
|
|
213
224
|
return renderChildren(renderState);
|
|
214
225
|
},
|
|
215
|
-
enumerable:
|
|
226
|
+
enumerable: false,
|
|
216
227
|
configurable: true
|
|
217
228
|
});
|
|
218
229
|
/**
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -59,12 +61,12 @@ var PanelBarItem = /** @class */ (function (_super) {
|
|
|
59
61
|
};
|
|
60
62
|
_this.childFactory = function (child) {
|
|
61
63
|
if (_this.props.keepItemsMounted) {
|
|
62
|
-
return React.cloneElement(child, __assign({}, child.props, { in: _this.props.expanded }));
|
|
64
|
+
return React.cloneElement(child, __assign(__assign({}, child.props), { in: _this.props.expanded }));
|
|
63
65
|
}
|
|
64
66
|
return child;
|
|
65
67
|
};
|
|
66
68
|
_this.state = {
|
|
67
|
-
show: props.expanded
|
|
69
|
+
show: props.expanded || false
|
|
68
70
|
};
|
|
69
71
|
return _this;
|
|
70
72
|
}
|
|
@@ -72,8 +74,8 @@ var PanelBarItem = /** @class */ (function (_super) {
|
|
|
72
74
|
* @hidden
|
|
73
75
|
*/
|
|
74
76
|
PanelBarItem.prototype.render = function () {
|
|
75
|
-
var _this = this;
|
|
76
77
|
var _a;
|
|
78
|
+
var _this = this;
|
|
77
79
|
var _b = this.props, id = _b.id, children = _b.children, title = _b.title, uniquePrivateKey = _b.uniquePrivateKey, disabled = _b.disabled, selected = _b.selected, focused = _b.focused, expanded = _b.expanded, className = _b.className, level = _b.level, headerClassName = _b.headerClassName, animation = _b.animation, keepItemsMounted = _b.keepItemsMounted;
|
|
78
80
|
var panelBarItemAriaAttributes = {
|
|
79
81
|
'role': 'treeitem',
|
|
@@ -86,7 +88,7 @@ var PanelBarItem = /** @class */ (function (_super) {
|
|
|
86
88
|
'k-panelbar-header': level === 0,
|
|
87
89
|
'k-panelbar-item': level !== 0,
|
|
88
90
|
'k-state-expanded': expanded && !!children
|
|
89
|
-
}, "k-level-"
|
|
91
|
+
}, "k-level-".concat(level), className);
|
|
90
92
|
var panelBarLinkClassName = classNames('k-link', {
|
|
91
93
|
'k-selected': !disabled && selected,
|
|
92
94
|
'k-focus': !disabled && focused,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es/panelbar/util.js
CHANGED
|
@@ -9,6 +9,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
+
if (ar || !(i in from)) {
|
|
15
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
+
ar[i] = from[i];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
+
};
|
|
12
21
|
import * as React from 'react';
|
|
13
22
|
import { PanelBarItem } from './PanelBarItem';
|
|
14
23
|
/**
|
|
@@ -30,11 +39,11 @@ export var renderChildren = function (_a) {
|
|
|
30
39
|
children: child.props.children,
|
|
31
40
|
parentExpanded: (expanded || []).indexOf(privateKey) > -1,
|
|
32
41
|
level: level + 1,
|
|
33
|
-
parentPrivateKey:
|
|
42
|
+
parentPrivateKey: __spreadArray(__spreadArray([], parentPrivateKey, true), [privateKey], false)
|
|
34
43
|
};
|
|
35
44
|
nestedChildren = renderChildren(renderState);
|
|
36
45
|
}
|
|
37
|
-
return React.cloneElement(child, __assign({}, child.props, { animation: child.props.animation !== undefined ? child.props.animation : animation, keepItemsMounted: keepItemsMounted, id: child.props.id || "k-panelbar-item-default-"
|
|
46
|
+
return React.cloneElement(child, __assign(__assign({}, child.props), { animation: child.props.animation !== undefined ? child.props.animation : animation, keepItemsMounted: keepItemsMounted, id: child.props.id || "k-panelbar-item-default-".concat(privateKey), uniquePrivateKey: privateKey, parentUniquePrivateKey: parentPrivateKey, parentExpanded: parentExpanded, level: level, expanded: (expanded || []).indexOf(privateKey) > -1, focused: state.focused === privateKey && state.wrapperFocused, selected: state.selected === privateKey, children: nestedChildren, onSelect: handleSelect }));
|
|
38
47
|
}
|
|
39
48
|
else {
|
|
40
49
|
return React.createElement("div", { className: "k-panelbar-content k-content" }, child);
|
|
@@ -82,7 +91,7 @@ export var getInitialState = function (props, expandMode, result, parentExpanded
|
|
|
82
91
|
}
|
|
83
92
|
}
|
|
84
93
|
if (child.props.children) {
|
|
85
|
-
result = getInitialState(child.props, expandMode, result, !!child.props.expanded,
|
|
94
|
+
result = getInitialState(child.props, expandMode, result, !!child.props.expanded, __spreadArray(__spreadArray([], parentPrivateKey, true), [privateKey], false));
|
|
86
95
|
}
|
|
87
96
|
}
|
|
88
97
|
}
|
|
@@ -96,8 +105,8 @@ var getId = function (child, parentPrivateKey, idx) {
|
|
|
96
105
|
return child && child.props && child.props.id
|
|
97
106
|
? child.props.id
|
|
98
107
|
: parentPrivateKey.length
|
|
99
|
-
? parentPrivateKey[parentPrivateKey.length - 1] +
|
|
100
|
-
: "."
|
|
108
|
+
? parentPrivateKey[parentPrivateKey.length - 1] + ".".concat(idx)
|
|
109
|
+
: ".".concat(idx);
|
|
101
110
|
};
|
|
102
111
|
/**
|
|
103
112
|
* @hidden
|
|
@@ -98,12 +98,12 @@ export declare class Splitter extends React.Component<SplitterProps, SplitterSta
|
|
|
98
98
|
*/
|
|
99
99
|
readonly state: SplitterState;
|
|
100
100
|
private panesDuringOnChange?;
|
|
101
|
-
private
|
|
102
|
-
private
|
|
101
|
+
private get isControlledState();
|
|
102
|
+
private get panes();
|
|
103
103
|
private _container;
|
|
104
|
-
private
|
|
105
|
-
private
|
|
106
|
-
private
|
|
104
|
+
private get orientation();
|
|
105
|
+
private get isRtl();
|
|
106
|
+
private get panesContent();
|
|
107
107
|
/**
|
|
108
108
|
* @hidden
|
|
109
109
|
*/
|