@progress/kendo-react-layout 6.1.1-dev.202311151536 → 7.0.0-develop.1
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/LICENSE.md +1 -1
- package/{dist/npm/actionsheet → actionsheet}/ActionSheet.d.ts +5 -1
- package/actionsheet/ActionSheetContent.d.ts +14 -0
- package/actionsheet/ActionSheetFooter.d.ts +14 -0
- package/actionsheet/ActionSheetHeader.d.ts +14 -0
- package/actionsheet/ActionSheetItem.d.ts +10 -0
- package/actionsheet/interfaces/ActionSheetChildrenProps.d.ts +17 -0
- package/{dist/npm/actionsheet → actionsheet}/interfaces/ActionSheetItemProps.d.ts +4 -1
- package/{dist/npm/appbar → appbar}/AppBar.d.ts +4 -0
- package/{dist/npm/appbar → appbar}/AppBarSection.d.ts +4 -0
- package/{dist/npm/appbar → appbar}/AppBarSpacer.d.ts +4 -0
- package/{dist/es/appbar → appbar}/interfaces/AppBarProps.d.ts +7 -3
- package/{dist/npm/appbar → appbar}/interfaces/AppBarSectionProps.d.ts +4 -0
- package/{dist/npm/appbar → appbar}/interfaces/AppBarSpacerProps.d.ts +4 -0
- package/{dist/es/bottomnavigation → bottomnavigation}/BottomNavigation.d.ts +4 -0
- package/{dist/npm/bottomnavigation → bottomnavigation}/BottomNavigationItem.d.ts +5 -1
- package/{dist/npm/bottomnavigation → bottomnavigation}/BottomNavigationItemProps.d.ts +4 -1
- package/{dist/es/bottomnavigation → bottomnavigation}/BottomNavigationProps.d.ts +8 -6
- package/{dist/npm/bottomnavigation → bottomnavigation}/models/events.d.ts +4 -0
- package/{dist/npm/bottomnavigation → bottomnavigation}/models/utils.d.ts +4 -0
- package/{dist/npm/breadcrumb → breadcrumb}/Breadcrumb.d.ts +4 -0
- package/{dist/npm/breadcrumb → breadcrumb}/BreadcrumbDelimiter.d.ts +4 -0
- package/{dist/npm/breadcrumb → breadcrumb}/BreadcrumbLink.d.ts +4 -0
- package/{dist/es/breadcrumb → breadcrumb}/BreadcrumbListItem.d.ts +4 -0
- package/{dist/npm/breadcrumb → breadcrumb}/BreadcrumbOrderedList.d.ts +4 -0
- package/card/Avatar.d.ts +7 -0
- package/card/Card.d.ts +8 -0
- package/card/CardActions.d.ts +7 -0
- package/card/CardBody.d.ts +7 -0
- package/card/CardFooter.d.ts +7 -0
- package/card/CardHeader.d.ts +7 -0
- package/card/CardImage.d.ts +7 -0
- package/card/CardSubtitle.d.ts +7 -0
- package/card/CardTitle.d.ts +7 -0
- package/{dist/npm/card → card}/interfaces/AvatarProps.d.ts +4 -1
- package/{dist/es/card → card}/interfaces/CardActionsProps.d.ts +4 -1
- package/card/interfaces/CardBodyProps.d.ts +18 -0
- package/card/interfaces/CardFooterProps.d.ts +18 -0
- package/card/interfaces/CardHandle.d.ts +18 -0
- package/card/interfaces/CardHeaderProps.d.ts +18 -0
- package/{dist/es/card → card}/interfaces/CardImageProps.d.ts +4 -1
- package/{dist/es/card → card}/interfaces/CardProps.d.ts +4 -1
- package/card/interfaces/CardSubtitleProps.d.ts +18 -0
- package/card/interfaces/CardTitleProps.d.ts +18 -0
- package/{dist/npm/card → card}/interfaces/Enums.d.ts +4 -0
- package/{dist/npm/contextmenu → contextmenu}/ContextMenu.d.ts +5 -1
- package/dist/cdn/js/kendo-react-layout.js +5 -1
- package/{dist/es/drawer → drawer}/Drawer.d.ts +4 -0
- package/{dist/es/drawer → drawer}/DrawerContent.d.ts +4 -0
- package/{dist/npm/drawer → drawer}/DrawerItem.d.ts +4 -0
- package/{dist/npm/drawer → drawer}/DrawerNavigation.d.ts +4 -0
- package/{dist/npm/drawer → drawer}/context/DrawerContext.d.ts +5 -1
- package/drawer/interfaces/DrawerAnimation.d.ts +18 -0
- package/{dist/es/drawer → drawer}/interfaces/DrawerContentProps.d.ts +4 -1
- package/drawer/interfaces/DrawerItemHandle.d.ts +21 -0
- package/{dist/es/drawer → drawer}/interfaces/DrawerItemProps.d.ts +4 -1
- package/{dist/npm/drawer → drawer}/interfaces/DrawerNavigationProps.d.ts +4 -1
- package/{dist/npm/drawer → drawer}/interfaces/DrawerProps.d.ts +4 -0
- package/{dist/es/drawer → drawer}/interfaces/DrawerSelectEvent.d.ts +4 -0
- package/expansionpanel/ExpansionPanel.d.ts +10 -0
- package/expansionpanel/ExpansionPanelContent.d.ts +9 -0
- package/expansionpanel/index.d.ts +7 -0
- package/{dist/es/expansionpanel → expansionpanel}/interfaces.d.ts +4 -1
- package/{dist/es/gridlayout → gridlayout}/GridLayout.d.ts +4 -0
- package/{dist/es/gridlayout → gridlayout}/GridLayoutItem.d.ts +4 -0
- package/gridlayout/interfaces/GridLayoutColumnProps.d.ts +13 -0
- package/{dist/npm/gridlayout → gridlayout}/interfaces/GridLayoutItemProps.d.ts +4 -0
- package/{dist/npm/gridlayout → gridlayout}/interfaces/GridLayoutProps.d.ts +4 -0
- package/gridlayout/interfaces/GridLayoutRowProps.d.ts +13 -0
- package/{dist/npm/main.d.ts → index.d.ts} +6 -2
- package/index.js +5 -0
- package/index.mjs +5012 -0
- package/{dist/es/menu → menu}/BaseMenuItemInternalProps.d.ts +4 -0
- package/{dist/es/menu → menu}/MenuProps.d.ts +4 -1
- package/{dist/es/menu → menu}/components/Menu.d.ts +5 -1
- package/{dist/es/menu → menu}/components/MenuItem.d.ts +4 -0
- package/{dist/es/menu → menu}/components/MenuItemArrow.d.ts +5 -1
- package/{dist/es/menu → menu}/components/MenuItemInternal.d.ts +24 -1
- package/{dist/es/menu → menu}/components/MenuItemLink.d.ts +5 -1
- package/{dist/npm/menu → menu}/consts.d.ts +4 -0
- package/{dist/es/menu → menu}/events.d.ts +4 -0
- package/{dist/es/menu → menu}/models/BaseMenuItem.d.ts +4 -1
- package/{dist/es/menu → menu}/models/MenuItemModel.d.ts +4 -0
- package/menu/utils/DirectionHolder.d.ts +15 -0
- package/{dist/npm/menu → menu}/utils/MouseOverHandler.d.ts +4 -0
- package/{dist/es/menu → menu}/utils/getNewItemIdUponKeyboardNavigation.d.ts +4 -0
- package/menu/utils/hoverDelay.d.ts +13 -0
- package/{dist/es/menu → menu}/utils/itemsIdsUtils.d.ts +4 -0
- package/{dist/npm/menu → menu}/utils/misc.d.ts +4 -0
- package/menu/utils/prepareInputItemsForInternalWork.d.ts +10 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +31 -48
- package/{dist/es/panelbar → panelbar}/PanelBar.d.ts +6 -2
- package/{dist/npm/panelbar → panelbar}/PanelBarItem.d.ts +6 -2
- package/panelbar/interfaces/NavigationAction.d.ts +12 -0
- package/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +12 -0
- package/{dist/es/panelbar → panelbar}/interfaces/PanelBarItemProps.d.ts +4 -1
- package/{dist/es/panelbar → panelbar}/interfaces/PanelBarProps.d.ts +6 -3
- package/{dist/es/panelbar → panelbar}/interfaces/PanelBarSelectEventArguments.d.ts +4 -1
- package/panelbar/interfaces/RenderPanelBarItem.d.ts +19 -0
- package/{dist/es/panelbar → panelbar}/util.d.ts +5 -1
- package/{dist/es/splitter → splitter}/Splitter.d.ts +5 -1
- package/{dist/npm/splitter → splitter}/SplitterBar.d.ts +5 -1
- package/{dist/npm/splitter → splitter}/SplitterPane.d.ts +5 -1
- package/splitter/messages/index.d.ts +14 -0
- package/{dist/npm/stacklayout → stacklayout}/StackLayout.d.ts +4 -0
- package/{dist/es/stacklayout → stacklayout}/StackLayoutProps.d.ts +5 -1
- package/{dist/es/stepper → stepper}/Step.d.ts +4 -0
- package/{dist/es/stepper → stepper}/Stepper.d.ts +4 -0
- package/stepper/contants.d.ts +12 -0
- package/{dist/es/stepper → stepper}/context/StepperContext.d.ts +5 -1
- package/stepper/interfaces/StepChangeEvent.d.ts +15 -0
- package/stepper/interfaces/StepFocusEvent.d.ts +11 -0
- package/stepper/interfaces/StepHandle.d.ts +17 -0
- package/{dist/es/stepper → stepper}/interfaces/StepProps.d.ts +4 -0
- package/stepper/interfaces/StepperChangeEvent.d.ts +15 -0
- package/stepper/interfaces/StepperFocusEvent.d.ts +11 -0
- package/stepper/interfaces/StepperHandle.d.ts +17 -0
- package/{dist/npm/stepper → stepper}/interfaces/StepperProps.d.ts +4 -0
- package/stepper/messages/index.d.ts +19 -0
- package/{dist/es/tabstrip → tabstrip}/TabStrip.d.ts +5 -1
- package/{dist/npm/tabstrip → tabstrip}/TabStripContent.d.ts +5 -1
- package/{dist/es/tabstrip → tabstrip}/TabStripNavigation.d.ts +5 -1
- package/{dist/npm/tabstrip → tabstrip}/TabStripNavigationItem.d.ts +5 -1
- package/{dist/es/tabstrip → tabstrip}/TabStripTab.d.ts +4 -0
- package/{dist/es/tilelayout → tilelayout}/InternalTile.d.ts +6 -2
- package/{dist/es/tilelayout → tilelayout}/ResizeHandlers.d.ts +5 -1
- package/{dist/npm/tilelayout → tilelayout}/TileLayout.d.ts +6 -2
- package/{dist/es/tilelayout/interfaces/main.d.ts → tilelayout/interfaces/index.d.ts} +6 -3
- package/{dist/npm/timeline → timeline}/Timeline.d.ts +4 -0
- package/{dist/npm/timeline → timeline}/TimelineCard.d.ts +4 -0
- package/timeline/TimelineHorizontal.d.ts +7 -0
- package/{dist/es/timeline → timeline}/TimelineVertical.d.ts +4 -0
- package/{dist/npm/timeline → timeline}/utils.d.ts +4 -0
- package/about.md +0 -3
- package/dist/es/actionsheet/ActionSheet.d.ts +0 -134
- package/dist/es/actionsheet/ActionSheet.js +0 -267
- package/dist/es/actionsheet/ActionSheetContent.d.ts +0 -10
- package/dist/es/actionsheet/ActionSheetContent.js +0 -26
- package/dist/es/actionsheet/ActionSheetFooter.d.ts +0 -10
- package/dist/es/actionsheet/ActionSheetFooter.js +0 -26
- package/dist/es/actionsheet/ActionSheetHeader.d.ts +0 -10
- package/dist/es/actionsheet/ActionSheetHeader.js +0 -26
- package/dist/es/actionsheet/ActionSheetItem.d.ts +0 -6
- package/dist/es/actionsheet/ActionSheetItem.js +0 -38
- package/dist/es/actionsheet/interfaces/ActionSheetChildrenProps.d.ts +0 -13
- package/dist/es/actionsheet/interfaces/ActionSheetChildrenProps.js +0 -5
- package/dist/es/actionsheet/interfaces/ActionSheetItemProps.d.ts +0 -67
- package/dist/es/actionsheet/interfaces/ActionSheetItemProps.js +0 -1
- package/dist/es/appbar/AppBar.d.ts +0 -50
- package/dist/es/appbar/AppBar.js +0 -84
- package/dist/es/appbar/AppBarSection.d.ts +0 -49
- package/dist/es/appbar/AppBarSection.js +0 -58
- package/dist/es/appbar/AppBarSpacer.d.ts +0 -50
- package/dist/es/appbar/AppBarSpacer.js +0 -66
- package/dist/es/appbar/interfaces/AppBarProps.js +0 -1
- package/dist/es/appbar/interfaces/AppBarSectionProps.d.ts +0 -18
- package/dist/es/appbar/interfaces/AppBarSectionProps.js +0 -1
- package/dist/es/appbar/interfaces/AppBarSpacerProps.d.ts +0 -19
- package/dist/es/appbar/interfaces/AppBarSpacerProps.js +0 -1
- package/dist/es/bottomnavigation/BottomNavigation.js +0 -133
- package/dist/es/bottomnavigation/BottomNavigationItem.d.ts +0 -12
- package/dist/es/bottomnavigation/BottomNavigationItem.js +0 -53
- package/dist/es/bottomnavigation/BottomNavigationItemProps.d.ts +0 -61
- package/dist/es/bottomnavigation/BottomNavigationItemProps.js +0 -1
- package/dist/es/bottomnavigation/BottomNavigationProps.js +0 -1
- package/dist/es/bottomnavigation/models/events.d.ts +0 -20
- package/dist/es/bottomnavigation/models/events.js +0 -1
- package/dist/es/bottomnavigation/models/utils.d.ts +0 -36
- package/dist/es/bottomnavigation/models/utils.js +0 -36
- package/dist/es/breadcrumb/Breadcrumb.d.ts +0 -159
- package/dist/es/breadcrumb/Breadcrumb.js +0 -118
- package/dist/es/breadcrumb/BreadcrumbDelimiter.d.ts +0 -43
- package/dist/es/breadcrumb/BreadcrumbDelimiter.js +0 -32
- package/dist/es/breadcrumb/BreadcrumbLink.d.ts +0 -131
- package/dist/es/breadcrumb/BreadcrumbLink.js +0 -110
- package/dist/es/breadcrumb/BreadcrumbListItem.js +0 -36
- package/dist/es/breadcrumb/BreadcrumbOrderedList.d.ts +0 -55
- package/dist/es/breadcrumb/BreadcrumbOrderedList.js +0 -36
- package/dist/es/card/Avatar.d.ts +0 -3
- package/dist/es/card/Avatar.js +0 -39
- package/dist/es/card/Card.d.ts +0 -4
- package/dist/es/card/Card.js +0 -55
- package/dist/es/card/CardActions.d.ts +0 -3
- package/dist/es/card/CardActions.js +0 -23
- package/dist/es/card/CardBody.d.ts +0 -3
- package/dist/es/card/CardBody.js +0 -9
- package/dist/es/card/CardFooter.d.ts +0 -3
- package/dist/es/card/CardFooter.js +0 -9
- package/dist/es/card/CardHeader.d.ts +0 -3
- package/dist/es/card/CardHeader.js +0 -9
- package/dist/es/card/CardImage.d.ts +0 -3
- package/dist/es/card/CardImage.js +0 -22
- package/dist/es/card/CardSubtitle.d.ts +0 -3
- package/dist/es/card/CardSubtitle.js +0 -9
- package/dist/es/card/CardTitle.d.ts +0 -3
- package/dist/es/card/CardTitle.js +0 -9
- package/dist/es/card/interfaces/AvatarProps.d.ts +0 -85
- package/dist/es/card/interfaces/AvatarProps.js +0 -1
- package/dist/es/card/interfaces/CardActionsProps.js +0 -1
- package/dist/es/card/interfaces/CardBodyProps.d.ts +0 -15
- package/dist/es/card/interfaces/CardBodyProps.js +0 -1
- package/dist/es/card/interfaces/CardFooterProps.d.ts +0 -15
- package/dist/es/card/interfaces/CardFooterProps.js +0 -1
- package/dist/es/card/interfaces/CardHandle.d.ts +0 -14
- package/dist/es/card/interfaces/CardHandle.js +0 -1
- package/dist/es/card/interfaces/CardHeaderProps.d.ts +0 -15
- package/dist/es/card/interfaces/CardHeaderProps.js +0 -1
- package/dist/es/card/interfaces/CardImageProps.js +0 -1
- package/dist/es/card/interfaces/CardProps.js +0 -1
- package/dist/es/card/interfaces/CardSubtitleProps.d.ts +0 -15
- package/dist/es/card/interfaces/CardSubtitleProps.js +0 -1
- package/dist/es/card/interfaces/CardTitleProps.d.ts +0 -15
- package/dist/es/card/interfaces/CardTitleProps.js +0 -1
- package/dist/es/card/interfaces/Enums.d.ts +0 -23
- package/dist/es/card/interfaces/Enums.js +0 -27
- package/dist/es/contextmenu/ContextMenu.d.ts +0 -27
- package/dist/es/contextmenu/ContextMenu.js +0 -36
- package/dist/es/drawer/Drawer.js +0 -118
- package/dist/es/drawer/DrawerContent.js +0 -50
- package/dist/es/drawer/DrawerItem.d.ts +0 -32
- package/dist/es/drawer/DrawerItem.js +0 -101
- package/dist/es/drawer/DrawerNavigation.d.ts +0 -43
- package/dist/es/drawer/DrawerNavigation.js +0 -153
- package/dist/es/drawer/context/DrawerContext.d.ts +0 -20
- package/dist/es/drawer/context/DrawerContext.js +0 -16
- package/dist/es/drawer/interfaces/DrawerAnimation.d.ts +0 -14
- package/dist/es/drawer/interfaces/DrawerAnimation.js +0 -1
- package/dist/es/drawer/interfaces/DrawerContentProps.js +0 -1
- package/dist/es/drawer/interfaces/DrawerItemHandle.d.ts +0 -17
- package/dist/es/drawer/interfaces/DrawerItemHandle.js +0 -1
- package/dist/es/drawer/interfaces/DrawerItemProps.js +0 -1
- package/dist/es/drawer/interfaces/DrawerNavigationProps.d.ts +0 -18
- package/dist/es/drawer/interfaces/DrawerNavigationProps.js +0 -1
- package/dist/es/drawer/interfaces/DrawerProps.d.ts +0 -82
- package/dist/es/drawer/interfaces/DrawerProps.js +0 -1
- package/dist/es/drawer/interfaces/DrawerSelectEvent.js +0 -1
- package/dist/es/expansionpanel/ExpansionPanel.d.ts +0 -6
- package/dist/es/expansionpanel/ExpansionPanel.js +0 -76
- package/dist/es/expansionpanel/ExpansionPanelContent.d.ts +0 -5
- package/dist/es/expansionpanel/ExpansionPanelContent.js +0 -21
- package/dist/es/expansionpanel/index.d.ts +0 -3
- package/dist/es/expansionpanel/index.js +0 -3
- package/dist/es/expansionpanel/interfaces.js +0 -1
- package/dist/es/gridlayout/GridLayout.js +0 -92
- package/dist/es/gridlayout/GridLayoutItem.js +0 -60
- package/dist/es/gridlayout/interfaces/GridLayoutColumnProps.d.ts +0 -9
- package/dist/es/gridlayout/interfaces/GridLayoutColumnProps.js +0 -1
- package/dist/es/gridlayout/interfaces/GridLayoutItemProps.d.ts +0 -40
- package/dist/es/gridlayout/interfaces/GridLayoutItemProps.js +0 -1
- package/dist/es/gridlayout/interfaces/GridLayoutProps.d.ts +0 -95
- package/dist/es/gridlayout/interfaces/GridLayoutProps.js +0 -1
- package/dist/es/gridlayout/interfaces/GridLayoutRowProps.d.ts +0 -9
- package/dist/es/gridlayout/interfaces/GridLayoutRowProps.js +0 -1
- package/dist/es/main.d.ts +0 -94
- package/dist/es/main.js +0 -94
- package/dist/es/menu/BaseMenuItemInternalProps.js +0 -1
- package/dist/es/menu/MenuProps.js +0 -2
- package/dist/es/menu/components/Menu.js +0 -277
- package/dist/es/menu/components/MenuItem.js +0 -46
- package/dist/es/menu/components/MenuItemArrow.js +0 -78
- package/dist/es/menu/components/MenuItemInternal.js +0 -165
- package/dist/es/menu/components/MenuItemInternalsList.d.ts +0 -22
- package/dist/es/menu/components/MenuItemInternalsList.js +0 -48
- package/dist/es/menu/components/MenuItemLink.js +0 -49
- package/dist/es/menu/consts.d.ts +0 -54
- package/dist/es/menu/consts.js +0 -70
- package/dist/es/menu/events.js +0 -2
- package/dist/es/menu/models/BaseMenuItem.js +0 -3
- package/dist/es/menu/models/MenuItemModel.js +0 -1
- package/dist/es/menu/utils/DirectionHolder.d.ts +0 -11
- package/dist/es/menu/utils/DirectionHolder.js +0 -24
- package/dist/es/menu/utils/MouseOverHandler.d.ts +0 -17
- package/dist/es/menu/utils/MouseOverHandler.js +0 -65
- package/dist/es/menu/utils/getNewItemIdUponKeyboardNavigation.js +0 -202
- package/dist/es/menu/utils/hoverDelay.d.ts +0 -9
- package/dist/es/menu/utils/hoverDelay.js +0 -17
- package/dist/es/menu/utils/itemsIdsUtils.js +0 -119
- package/dist/es/menu/utils/misc.d.ts +0 -16
- package/dist/es/menu/utils/misc.js +0 -42
- package/dist/es/menu/utils/prepareInputItemsForInternalWork.d.ts +0 -6
- package/dist/es/menu/utils/prepareInputItemsForInternalWork.js +0 -105
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/panelbar/PanelBar.js +0 -291
- package/dist/es/panelbar/PanelBarItem.d.ts +0 -48
- package/dist/es/panelbar/PanelBarItem.js +0 -153
- package/dist/es/panelbar/interfaces/NavigationAction.d.ts +0 -8
- package/dist/es/panelbar/interfaces/NavigationAction.js +0 -9
- package/dist/es/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +0 -8
- package/dist/es/panelbar/interfaces/PanelBarItemClickEventArguments.js +0 -1
- package/dist/es/panelbar/interfaces/PanelBarItemProps.js +0 -2
- package/dist/es/panelbar/interfaces/PanelBarProps.js +0 -1
- package/dist/es/panelbar/interfaces/PanelBarSelectEventArguments.js +0 -1
- package/dist/es/panelbar/interfaces/RenderPanelBarItem.d.ts +0 -16
- package/dist/es/panelbar/interfaces/RenderPanelBarItem.js +0 -1
- package/dist/es/panelbar/util.js +0 -197
- package/dist/es/splitter/Splitter.js +0 -383
- package/dist/es/splitter/SplitterBar.d.ts +0 -40
- package/dist/es/splitter/SplitterBar.js +0 -183
- package/dist/es/splitter/SplitterPane.d.ts +0 -53
- package/dist/es/splitter/SplitterPane.js +0 -46
- package/dist/es/splitter/messages/index.d.ts +0 -10
- package/dist/es/splitter/messages/index.js +0 -11
- package/dist/es/stacklayout/StackLayout.d.ts +0 -37
- package/dist/es/stacklayout/StackLayout.js +0 -87
- package/dist/es/stacklayout/StackLayoutProps.js +0 -1
- package/dist/es/stepper/Step.js +0 -141
- package/dist/es/stepper/Stepper.js +0 -224
- package/dist/es/stepper/contants.d.ts +0 -8
- package/dist/es/stepper/contants.js +0 -8
- package/dist/es/stepper/context/StepperContext.js +0 -11
- package/dist/es/stepper/interfaces/StepChangeEvent.d.ts +0 -11
- package/dist/es/stepper/interfaces/StepChangeEvent.js +0 -1
- package/dist/es/stepper/interfaces/StepFocusEvent.d.ts +0 -7
- package/dist/es/stepper/interfaces/StepFocusEvent.js +0 -1
- package/dist/es/stepper/interfaces/StepHandle.d.ts +0 -13
- package/dist/es/stepper/interfaces/StepHandle.js +0 -4
- package/dist/es/stepper/interfaces/StepProps.js +0 -1
- package/dist/es/stepper/interfaces/StepperChangeEvent.d.ts +0 -11
- package/dist/es/stepper/interfaces/StepperChangeEvent.js +0 -1
- package/dist/es/stepper/interfaces/StepperFocusEvent.d.ts +0 -7
- package/dist/es/stepper/interfaces/StepperFocusEvent.js +0 -1
- package/dist/es/stepper/interfaces/StepperHandle.d.ts +0 -13
- package/dist/es/stepper/interfaces/StepperHandle.js +0 -4
- package/dist/es/stepper/interfaces/StepperOnNavigateEvent.d.ts +0 -26
- package/dist/es/stepper/interfaces/StepperOnNavigateEvent.js +0 -16
- package/dist/es/stepper/interfaces/StepperProps.d.ts +0 -94
- package/dist/es/stepper/interfaces/StepperProps.js +0 -1
- package/dist/es/stepper/messages/index.d.ts +0 -15
- package/dist/es/stepper/messages/index.js +0 -16
- package/dist/es/tabstrip/TabStrip.js +0 -218
- package/dist/es/tabstrip/TabStripContent.d.ts +0 -50
- package/dist/es/tabstrip/TabStripContent.js +0 -95
- package/dist/es/tabstrip/TabStripNavigation.js +0 -257
- package/dist/es/tabstrip/TabStripNavigationItem.d.ts +0 -67
- package/dist/es/tabstrip/TabStripNavigationItem.js +0 -106
- package/dist/es/tabstrip/TabStripTab.js +0 -47
- package/dist/es/tilelayout/InternalTile.js +0 -331
- package/dist/es/tilelayout/ResizeHandlers.js +0 -59
- package/dist/es/tilelayout/TileLayout.d.ts +0 -149
- package/dist/es/tilelayout/TileLayout.js +0 -178
- package/dist/es/tilelayout/interfaces/main.js +0 -1
- package/dist/es/timeline/Timeline.d.ts +0 -98
- package/dist/es/timeline/Timeline.js +0 -37
- package/dist/es/timeline/TimelineCard.d.ts +0 -34
- package/dist/es/timeline/TimelineCard.js +0 -62
- package/dist/es/timeline/TimelineHorizontal.d.ts +0 -3
- package/dist/es/timeline/TimelineHorizontal.js +0 -291
- package/dist/es/timeline/TimelineVertical.js +0 -72
- package/dist/es/timeline/utils.d.ts +0 -15
- package/dist/es/timeline/utils.js +0 -26
- package/dist/npm/actionsheet/ActionSheet.js +0 -270
- package/dist/npm/actionsheet/ActionSheetContent.d.ts +0 -10
- package/dist/npm/actionsheet/ActionSheetContent.js +0 -30
- package/dist/npm/actionsheet/ActionSheetFooter.d.ts +0 -10
- package/dist/npm/actionsheet/ActionSheetFooter.js +0 -30
- package/dist/npm/actionsheet/ActionSheetHeader.d.ts +0 -10
- package/dist/npm/actionsheet/ActionSheetHeader.js +0 -30
- package/dist/npm/actionsheet/ActionSheetItem.d.ts +0 -6
- package/dist/npm/actionsheet/ActionSheetItem.js +0 -42
- package/dist/npm/actionsheet/interfaces/ActionSheetChildrenProps.d.ts +0 -13
- package/dist/npm/actionsheet/interfaces/ActionSheetChildrenProps.js +0 -6
- package/dist/npm/actionsheet/interfaces/ActionSheetItemProps.js +0 -2
- package/dist/npm/appbar/AppBar.js +0 -87
- package/dist/npm/appbar/AppBarSection.js +0 -61
- package/dist/npm/appbar/AppBarSpacer.js +0 -69
- package/dist/npm/appbar/interfaces/AppBarProps.d.ts +0 -79
- package/dist/npm/appbar/interfaces/AppBarProps.js +0 -2
- package/dist/npm/appbar/interfaces/AppBarSectionProps.js +0 -2
- package/dist/npm/appbar/interfaces/AppBarSpacerProps.js +0 -2
- package/dist/npm/bottomnavigation/BottomNavigation.d.ts +0 -38
- package/dist/npm/bottomnavigation/BottomNavigation.js +0 -136
- package/dist/npm/bottomnavigation/BottomNavigationItem.js +0 -56
- package/dist/npm/bottomnavigation/BottomNavigationItemProps.js +0 -2
- package/dist/npm/bottomnavigation/BottomNavigationProps.d.ts +0 -155
- package/dist/npm/bottomnavigation/BottomNavigationProps.js +0 -2
- package/dist/npm/bottomnavigation/models/events.js +0 -2
- package/dist/npm/bottomnavigation/models/utils.js +0 -39
- package/dist/npm/breadcrumb/Breadcrumb.js +0 -121
- package/dist/npm/breadcrumb/BreadcrumbDelimiter.js +0 -35
- package/dist/npm/breadcrumb/BreadcrumbLink.js +0 -113
- package/dist/npm/breadcrumb/BreadcrumbListItem.d.ts +0 -51
- package/dist/npm/breadcrumb/BreadcrumbListItem.js +0 -39
- package/dist/npm/breadcrumb/BreadcrumbOrderedList.js +0 -39
- package/dist/npm/card/Avatar.d.ts +0 -3
- package/dist/npm/card/Avatar.js +0 -43
- package/dist/npm/card/Card.d.ts +0 -4
- package/dist/npm/card/Card.js +0 -58
- package/dist/npm/card/CardActions.d.ts +0 -3
- package/dist/npm/card/CardActions.js +0 -27
- package/dist/npm/card/CardBody.d.ts +0 -3
- package/dist/npm/card/CardBody.js +0 -13
- package/dist/npm/card/CardFooter.d.ts +0 -3
- package/dist/npm/card/CardFooter.js +0 -13
- package/dist/npm/card/CardHeader.d.ts +0 -3
- package/dist/npm/card/CardHeader.js +0 -13
- package/dist/npm/card/CardImage.d.ts +0 -3
- package/dist/npm/card/CardImage.js +0 -26
- package/dist/npm/card/CardSubtitle.d.ts +0 -3
- package/dist/npm/card/CardSubtitle.js +0 -13
- package/dist/npm/card/CardTitle.d.ts +0 -3
- package/dist/npm/card/CardTitle.js +0 -13
- package/dist/npm/card/interfaces/AvatarProps.js +0 -2
- package/dist/npm/card/interfaces/CardActionsProps.d.ts +0 -35
- package/dist/npm/card/interfaces/CardActionsProps.js +0 -2
- package/dist/npm/card/interfaces/CardBodyProps.d.ts +0 -15
- package/dist/npm/card/interfaces/CardBodyProps.js +0 -2
- package/dist/npm/card/interfaces/CardFooterProps.d.ts +0 -15
- package/dist/npm/card/interfaces/CardFooterProps.js +0 -2
- package/dist/npm/card/interfaces/CardHandle.d.ts +0 -14
- package/dist/npm/card/interfaces/CardHandle.js +0 -2
- package/dist/npm/card/interfaces/CardHeaderProps.d.ts +0 -15
- package/dist/npm/card/interfaces/CardHeaderProps.js +0 -2
- package/dist/npm/card/interfaces/CardImageProps.d.ts +0 -19
- package/dist/npm/card/interfaces/CardImageProps.js +0 -2
- package/dist/npm/card/interfaces/CardProps.d.ts +0 -45
- package/dist/npm/card/interfaces/CardProps.js +0 -2
- package/dist/npm/card/interfaces/CardSubtitleProps.d.ts +0 -15
- package/dist/npm/card/interfaces/CardSubtitleProps.js +0 -2
- package/dist/npm/card/interfaces/CardTitleProps.d.ts +0 -15
- package/dist/npm/card/interfaces/CardTitleProps.js +0 -2
- package/dist/npm/card/interfaces/Enums.js +0 -30
- package/dist/npm/contextmenu/ContextMenu.js +0 -40
- package/dist/npm/drawer/Drawer.d.ts +0 -40
- package/dist/npm/drawer/Drawer.js +0 -121
- package/dist/npm/drawer/DrawerContent.d.ts +0 -39
- package/dist/npm/drawer/DrawerContent.js +0 -53
- package/dist/npm/drawer/DrawerItem.js +0 -104
- package/dist/npm/drawer/DrawerNavigation.js +0 -156
- package/dist/npm/drawer/context/DrawerContext.js +0 -19
- package/dist/npm/drawer/interfaces/DrawerAnimation.d.ts +0 -14
- package/dist/npm/drawer/interfaces/DrawerAnimation.js +0 -2
- package/dist/npm/drawer/interfaces/DrawerContentProps.d.ts +0 -18
- package/dist/npm/drawer/interfaces/DrawerContentProps.js +0 -2
- package/dist/npm/drawer/interfaces/DrawerItemHandle.d.ts +0 -17
- package/dist/npm/drawer/interfaces/DrawerItemHandle.js +0 -2
- package/dist/npm/drawer/interfaces/DrawerItemProps.d.ts +0 -61
- package/dist/npm/drawer/interfaces/DrawerItemProps.js +0 -2
- package/dist/npm/drawer/interfaces/DrawerNavigationProps.js +0 -2
- package/dist/npm/drawer/interfaces/DrawerProps.js +0 -2
- package/dist/npm/drawer/interfaces/DrawerSelectEvent.d.ts +0 -15
- package/dist/npm/drawer/interfaces/DrawerSelectEvent.js +0 -2
- package/dist/npm/expansionpanel/ExpansionPanel.d.ts +0 -6
- package/dist/npm/expansionpanel/ExpansionPanel.js +0 -79
- package/dist/npm/expansionpanel/ExpansionPanelContent.d.ts +0 -5
- package/dist/npm/expansionpanel/ExpansionPanelContent.js +0 -24
- package/dist/npm/expansionpanel/index.d.ts +0 -3
- package/dist/npm/expansionpanel/index.js +0 -19
- package/dist/npm/expansionpanel/interfaces.d.ts +0 -89
- package/dist/npm/expansionpanel/interfaces.js +0 -2
- package/dist/npm/gridlayout/GridLayout.d.ts +0 -39
- package/dist/npm/gridlayout/GridLayout.js +0 -95
- package/dist/npm/gridlayout/GridLayoutItem.d.ts +0 -38
- package/dist/npm/gridlayout/GridLayoutItem.js +0 -63
- package/dist/npm/gridlayout/interfaces/GridLayoutColumnProps.d.ts +0 -9
- package/dist/npm/gridlayout/interfaces/GridLayoutColumnProps.js +0 -2
- package/dist/npm/gridlayout/interfaces/GridLayoutItemProps.js +0 -2
- package/dist/npm/gridlayout/interfaces/GridLayoutProps.js +0 -2
- package/dist/npm/gridlayout/interfaces/GridLayoutRowProps.d.ts +0 -9
- package/dist/npm/gridlayout/interfaces/GridLayoutRowProps.js +0 -2
- package/dist/npm/main.js +0 -115
- package/dist/npm/menu/BaseMenuItemInternalProps.d.ts +0 -20
- package/dist/npm/menu/BaseMenuItemInternalProps.js +0 -2
- package/dist/npm/menu/MenuProps.d.ts +0 -68
- package/dist/npm/menu/MenuProps.js +0 -3
- package/dist/npm/menu/components/Menu.d.ts +0 -109
- package/dist/npm/menu/components/Menu.js +0 -280
- package/dist/npm/menu/components/MenuItem.d.ts +0 -29
- package/dist/npm/menu/components/MenuItem.js +0 -49
- package/dist/npm/menu/components/MenuItemArrow.d.ts +0 -46
- package/dist/npm/menu/components/MenuItemArrow.js +0 -81
- package/dist/npm/menu/components/MenuItemInternal.d.ts +0 -40
- package/dist/npm/menu/components/MenuItemInternal.js +0 -168
- package/dist/npm/menu/components/MenuItemInternalsList.d.ts +0 -22
- package/dist/npm/menu/components/MenuItemInternalsList.js +0 -51
- package/dist/npm/menu/components/MenuItemLink.d.ts +0 -30
- package/dist/npm/menu/components/MenuItemLink.js +0 -52
- package/dist/npm/menu/consts.js +0 -73
- package/dist/npm/menu/events.d.ts +0 -16
- package/dist/npm/menu/events.js +0 -3
- package/dist/npm/menu/models/BaseMenuItem.d.ts +0 -55
- package/dist/npm/menu/models/BaseMenuItem.js +0 -4
- package/dist/npm/menu/models/MenuItemModel.d.ts +0 -19
- package/dist/npm/menu/models/MenuItemModel.js +0 -2
- package/dist/npm/menu/utils/DirectionHolder.d.ts +0 -11
- package/dist/npm/menu/utils/DirectionHolder.js +0 -27
- package/dist/npm/menu/utils/MouseOverHandler.js +0 -68
- package/dist/npm/menu/utils/getNewItemIdUponKeyboardNavigation.d.ts +0 -7
- package/dist/npm/menu/utils/getNewItemIdUponKeyboardNavigation.js +0 -206
- package/dist/npm/menu/utils/hoverDelay.d.ts +0 -9
- package/dist/npm/menu/utils/hoverDelay.js +0 -22
- package/dist/npm/menu/utils/itemsIdsUtils.d.ts +0 -64
- package/dist/npm/menu/utils/itemsIdsUtils.js +0 -135
- package/dist/npm/menu/utils/misc.js +0 -49
- package/dist/npm/menu/utils/prepareInputItemsForInternalWork.d.ts +0 -6
- package/dist/npm/menu/utils/prepareInputItemsForInternalWork.js +0 -109
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/panelbar/PanelBar.d.ts +0 -77
- package/dist/npm/panelbar/PanelBar.js +0 -294
- package/dist/npm/panelbar/PanelBarItem.js +0 -156
- package/dist/npm/panelbar/interfaces/NavigationAction.d.ts +0 -8
- package/dist/npm/panelbar/interfaces/NavigationAction.js +0 -12
- package/dist/npm/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +0 -8
- package/dist/npm/panelbar/interfaces/PanelBarItemClickEventArguments.js +0 -2
- package/dist/npm/panelbar/interfaces/PanelBarItemProps.d.ts +0 -95
- package/dist/npm/panelbar/interfaces/PanelBarItemProps.js +0 -3
- package/dist/npm/panelbar/interfaces/PanelBarProps.d.ts +0 -63
- package/dist/npm/panelbar/interfaces/PanelBarProps.js +0 -2
- package/dist/npm/panelbar/interfaces/PanelBarSelectEventArguments.d.ts +0 -15
- package/dist/npm/panelbar/interfaces/PanelBarSelectEventArguments.js +0 -2
- package/dist/npm/panelbar/interfaces/RenderPanelBarItem.d.ts +0 -16
- package/dist/npm/panelbar/interfaces/RenderPanelBarItem.js +0 -2
- package/dist/npm/panelbar/util.d.ts +0 -52
- package/dist/npm/panelbar/util.js +0 -208
- package/dist/npm/splitter/Splitter.d.ts +0 -132
- package/dist/npm/splitter/Splitter.js +0 -386
- package/dist/npm/splitter/SplitterBar.js +0 -186
- package/dist/npm/splitter/SplitterPane.js +0 -49
- package/dist/npm/splitter/messages/index.d.ts +0 -10
- package/dist/npm/splitter/messages/index.js +0 -14
- package/dist/npm/stacklayout/StackLayout.js +0 -90
- package/dist/npm/stacklayout/StackLayoutProps.d.ts +0 -88
- package/dist/npm/stacklayout/StackLayoutProps.js +0 -2
- package/dist/npm/stepper/Step.d.ts +0 -23
- package/dist/npm/stepper/Step.js +0 -144
- package/dist/npm/stepper/Stepper.d.ts +0 -23
- package/dist/npm/stepper/Stepper.js +0 -227
- package/dist/npm/stepper/contants.d.ts +0 -8
- package/dist/npm/stepper/contants.js +0 -11
- package/dist/npm/stepper/context/StepperContext.d.ts +0 -23
- package/dist/npm/stepper/context/StepperContext.js +0 -14
- package/dist/npm/stepper/interfaces/StepChangeEvent.d.ts +0 -11
- package/dist/npm/stepper/interfaces/StepChangeEvent.js +0 -2
- package/dist/npm/stepper/interfaces/StepFocusEvent.d.ts +0 -7
- package/dist/npm/stepper/interfaces/StepFocusEvent.js +0 -2
- package/dist/npm/stepper/interfaces/StepHandle.d.ts +0 -13
- package/dist/npm/stepper/interfaces/StepHandle.js +0 -5
- package/dist/npm/stepper/interfaces/StepProps.d.ts +0 -79
- package/dist/npm/stepper/interfaces/StepProps.js +0 -2
- package/dist/npm/stepper/interfaces/StepperChangeEvent.d.ts +0 -11
- package/dist/npm/stepper/interfaces/StepperChangeEvent.js +0 -2
- package/dist/npm/stepper/interfaces/StepperFocusEvent.d.ts +0 -7
- package/dist/npm/stepper/interfaces/StepperFocusEvent.js +0 -2
- package/dist/npm/stepper/interfaces/StepperHandle.d.ts +0 -13
- package/dist/npm/stepper/interfaces/StepperHandle.js +0 -5
- package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.d.ts +0 -26
- package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.js +0 -19
- package/dist/npm/stepper/interfaces/StepperProps.js +0 -2
- package/dist/npm/stepper/messages/index.d.ts +0 -15
- package/dist/npm/stepper/messages/index.js +0 -19
- package/dist/npm/tabstrip/TabStrip.d.ts +0 -147
- package/dist/npm/tabstrip/TabStrip.js +0 -221
- package/dist/npm/tabstrip/TabStripContent.js +0 -98
- package/dist/npm/tabstrip/TabStripNavigation.d.ts +0 -98
- package/dist/npm/tabstrip/TabStripNavigation.js +0 -260
- package/dist/npm/tabstrip/TabStripNavigationItem.js +0 -109
- package/dist/npm/tabstrip/TabStripTab.d.ts +0 -38
- package/dist/npm/tabstrip/TabStripTab.js +0 -50
- package/dist/npm/tilelayout/InternalTile.d.ts +0 -90
- package/dist/npm/tilelayout/InternalTile.js +0 -334
- package/dist/npm/tilelayout/ResizeHandlers.d.ts +0 -20
- package/dist/npm/tilelayout/ResizeHandlers.js +0 -62
- package/dist/npm/tilelayout/TileLayout.js +0 -181
- package/dist/npm/tilelayout/interfaces/main.d.ts +0 -142
- package/dist/npm/tilelayout/interfaces/main.js +0 -2
- package/dist/npm/timeline/Timeline.js +0 -41
- package/dist/npm/timeline/TimelineCard.js +0 -66
- package/dist/npm/timeline/TimelineHorizontal.d.ts +0 -3
- package/dist/npm/timeline/TimelineHorizontal.js +0 -295
- package/dist/npm/timeline/TimelineVertical.d.ts +0 -12
- package/dist/npm/timeline/TimelineVertical.js +0 -76
- package/dist/npm/timeline/utils.js +0 -31
- package/dist/systemjs/kendo-react-layout.js +0 -1
- package/e2e-next/actionsheet.basic.tests.ts +0 -25
- package/e2e-next/appbar.basic.tests.ts +0 -24
- package/e2e-next/avatar.basic.tests.ts +0 -24
- package/e2e-next/bottomnav.basic.tests.ts +0 -24
- package/e2e-next/breadcrumb.basic.tests.ts +0 -24
- package/e2e-next/card.basic.tests.ts +0 -24
- package/e2e-next/contextmenu.basic.tests.ts +0 -25
- package/e2e-next/drawer.basic.tests.ts +0 -24
- package/e2e-next/expansionpanel.basic.tests.ts +0 -23
- package/e2e-next/gridlayout.basic.tests.ts +0 -24
- package/e2e-next/menu.basic.tests.ts +0 -24
- package/e2e-next/panelbar.basic.tests.ts +0 -24
- package/e2e-next/splitter.basic.tests.ts +0 -24
- package/e2e-next/stacklayout.basic.tests.ts +0 -24
- package/e2e-next/tabstrip.basic.tests.ts +0 -24
- package/e2e-next/tilelayout.basic.tests.ts +0 -24
- package/e2e-next/timeline.basic.tests.ts +0 -24
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __assign = (this && this.__assign) || function () {
|
|
18
|
-
__assign = Object.assign || function(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
-
t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.PanelBarItem = void 0;
|
|
30
|
-
var React = require("react");
|
|
31
|
-
var PropTypes = require("prop-types");
|
|
32
|
-
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
33
|
-
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
34
|
-
var kendo_react_animation_1 = require("@progress/kendo-react-animation");
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
*/
|
|
38
|
-
function iconElement(_a) {
|
|
39
|
-
var imageUrl = _a.imageUrl, icon = _a.icon, svgIcon = _a.svgIcon, iconClass = _a.iconClass;
|
|
40
|
-
if (imageUrl) {
|
|
41
|
-
return (React.createElement("img", { role: "presentation", className: 'k-panelbar-item-icon k-image', src: imageUrl }));
|
|
42
|
-
}
|
|
43
|
-
else if (icon || svgIcon) {
|
|
44
|
-
return (React.createElement(kendo_react_common_1.IconWrap, { className: 'k-panelbar-item-icon', name: icon, icon: svgIcon }));
|
|
45
|
-
}
|
|
46
|
-
else if (iconClass) {
|
|
47
|
-
return (React.createElement("span", { role: "presentation", className: 'k-panelbar-item-icon ' + iconClass }));
|
|
48
|
-
}
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
var PanelBarItem = /** @class */ (function (_super) {
|
|
52
|
-
__extends(PanelBarItem, _super);
|
|
53
|
-
function PanelBarItem(props) {
|
|
54
|
-
var _this = _super.call(this, props) || this;
|
|
55
|
-
_this.handleItemClick = function () {
|
|
56
|
-
var _a = _this.props, onSelect = _a.onSelect, disabled = _a.disabled, id = _a.id;
|
|
57
|
-
if (onSelect && !disabled) {
|
|
58
|
-
onSelect.call(undefined, {
|
|
59
|
-
uniquePrivateKey: _this.props.uniquePrivateKey,
|
|
60
|
-
id: id,
|
|
61
|
-
target: _this
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
_this.childFactory = function (child) {
|
|
66
|
-
if (_this.props.keepItemsMounted) {
|
|
67
|
-
return React.cloneElement(child, __assign(__assign({}, child.props), { in: _this.props.expanded }));
|
|
68
|
-
}
|
|
69
|
-
return child;
|
|
70
|
-
};
|
|
71
|
-
_this.state = {
|
|
72
|
-
show: props.expanded || false
|
|
73
|
-
};
|
|
74
|
-
return _this;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* @hidden
|
|
78
|
-
*/
|
|
79
|
-
PanelBarItem.prototype.render = function () {
|
|
80
|
-
var _this = this;
|
|
81
|
-
var _a = this.props, id = _a.id, children = _a.children, title = _a.title, uniquePrivateKey = _a.uniquePrivateKey, disabled = _a.disabled, selected = _a.selected, focused = _a.focused, expanded = _a.expanded, className = _a.className, level = _a.level, headerClassName = _a.headerClassName, animation = _a.animation, keepItemsMounted = _a.keepItemsMounted;
|
|
82
|
-
var panelBarItemAriaAttributes = {
|
|
83
|
-
'role': 'treeitem',
|
|
84
|
-
'aria-disabled': disabled,
|
|
85
|
-
'aria-hidden': !disabled && !expanded,
|
|
86
|
-
'aria-selected': !disabled && selected,
|
|
87
|
-
'aria-expanded': !disabled && expanded && !!children
|
|
88
|
-
};
|
|
89
|
-
var panelBarItemClassName = (0, kendo_react_common_1.classNames)('k-panelbar-item', {
|
|
90
|
-
'k-panelbar-header': level === 0,
|
|
91
|
-
'k-expanded': expanded && !!children,
|
|
92
|
-
'k-disabled': disabled
|
|
93
|
-
}, "k-level-".concat(level), className);
|
|
94
|
-
var panelBarLinkClassName = (0, kendo_react_common_1.classNames)('k-link', {
|
|
95
|
-
'k-selected': !disabled && selected,
|
|
96
|
-
'k-focus': !disabled && focused
|
|
97
|
-
}, headerClassName);
|
|
98
|
-
var animationStyle = { display: 'block' };
|
|
99
|
-
var icon = iconElement(this.props);
|
|
100
|
-
var arrow = (!disabled && children)
|
|
101
|
-
? (React.createElement(kendo_react_common_1.IconWrap, { name: expanded ? 'chevron-up' : 'chevron-down', icon: expanded ? kendo_svg_icons_1.chevronUpIcon : kendo_svg_icons_1.chevronDownIcon, className: (0, kendo_react_common_1.classNames)('k-panelbar-toggle', expanded
|
|
102
|
-
? 'k-panelbar-collapse'
|
|
103
|
-
: 'k-panelbar-expand') }))
|
|
104
|
-
: null;
|
|
105
|
-
var opened = (!disabled && expanded);
|
|
106
|
-
var content = opened || keepItemsMounted
|
|
107
|
-
? (React.createElement("ul", { role: "group", "aria-expanded": expanded, "aria-hidden": !expanded, className: "k-panelbar-group k-panel k-group", style: { display: keepItemsMounted
|
|
108
|
-
? (this.state.show ? 'block' : 'none')
|
|
109
|
-
: 'block' } }, children))
|
|
110
|
-
: null;
|
|
111
|
-
var child = ((animation !== undefined ? animation : true) && !disabled && children)
|
|
112
|
-
? (React.createElement(kendo_react_animation_1.Reveal, { transitionEnterDuration: 200, transitionExitDuration: 200, key: uniquePrivateKey + '_animation', style: animationStyle, children: content, childFactory: keepItemsMounted && this.childFactory, unmountOnExit: !keepItemsMounted, onBeforeEnter: function () { return keepItemsMounted && _this.setState({ show: true }); }, onAfterExited: function () { return keepItemsMounted && _this.setState({ show: false }); } }))
|
|
113
|
-
: content;
|
|
114
|
-
return (React.createElement("li", __assign({ id: id, className: panelBarItemClassName }, panelBarItemAriaAttributes),
|
|
115
|
-
React.createElement("span", { className: panelBarLinkClassName, onClick: this.handleItemClick },
|
|
116
|
-
icon,
|
|
117
|
-
React.createElement("span", { className: 'k-panelbar-item-text' }, title),
|
|
118
|
-
arrow),
|
|
119
|
-
child));
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* @hidden
|
|
123
|
-
*/
|
|
124
|
-
PanelBarItem.propTypes = {
|
|
125
|
-
animation: PropTypes.bool,
|
|
126
|
-
children: PropTypes.any,
|
|
127
|
-
className: PropTypes.string,
|
|
128
|
-
icon: PropTypes.string,
|
|
129
|
-
iconClass: PropTypes.string,
|
|
130
|
-
imageUrl: PropTypes.string,
|
|
131
|
-
svgIcon: kendo_react_common_1.svgIconPropType,
|
|
132
|
-
expanded: PropTypes.bool,
|
|
133
|
-
disabled: PropTypes.bool,
|
|
134
|
-
onSelect: PropTypes.func,
|
|
135
|
-
selected: PropTypes.bool,
|
|
136
|
-
level: PropTypes.number,
|
|
137
|
-
title: PropTypes.oneOfType([
|
|
138
|
-
PropTypes.string,
|
|
139
|
-
PropTypes.element
|
|
140
|
-
]),
|
|
141
|
-
id: PropTypes.oneOfType([
|
|
142
|
-
PropTypes.string,
|
|
143
|
-
PropTypes.number
|
|
144
|
-
]),
|
|
145
|
-
focused: PropTypes.bool,
|
|
146
|
-
keepItemsMounted: PropTypes.bool
|
|
147
|
-
};
|
|
148
|
-
/**
|
|
149
|
-
* @hidden
|
|
150
|
-
*/
|
|
151
|
-
PanelBarItem.defaultProps = {
|
|
152
|
-
title: 'Untitled'
|
|
153
|
-
};
|
|
154
|
-
return PanelBarItem;
|
|
155
|
-
}(React.PureComponent));
|
|
156
|
-
exports.PanelBarItem = PanelBarItem;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NavigationAction = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @hidden
|
|
6
|
-
*/
|
|
7
|
-
var NavigationAction;
|
|
8
|
-
(function (NavigationAction) {
|
|
9
|
-
NavigationAction[NavigationAction["Toggle"] = 0] = "Toggle";
|
|
10
|
-
NavigationAction[NavigationAction["Next"] = 1] = "Next";
|
|
11
|
-
NavigationAction[NavigationAction["Previous"] = 2] = "Previous";
|
|
12
|
-
})(NavigationAction = exports.NavigationAction || (exports.NavigationAction = {}));
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SVGIcon } from '@progress/kendo-react-common';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the props of the PanelBarItem component.
|
|
5
|
-
*/
|
|
6
|
-
export interface PanelBarItemProps {
|
|
7
|
-
/**
|
|
8
|
-
* Allows individual animation control over the child ([see example]({% slug animations_panelbar %})). By default, it is controlled by the PanelBar component.
|
|
9
|
-
*/
|
|
10
|
-
animation?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Can be any of PanelBar items, an array of PanelBar items, or a custom component.
|
|
13
|
-
*/
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* The class name that is set to the PanelBarItem component.
|
|
17
|
-
*/
|
|
18
|
-
className?: string;
|
|
19
|
-
/**
|
|
20
|
-
* The class name that is set to the PanelBarItem header.
|
|
21
|
-
*/
|
|
22
|
-
headerClassName?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Sets the initial expanded state of the PanelBarItem ([see example]({% slug statesitems_panelbar %}#toc-expanded-items)). Controlled by the PanelBar component.
|
|
25
|
-
*/
|
|
26
|
-
expanded?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Sets the disabled state of the PanelBarItem ([see example]({% slug statesitems_panelbar %}#toc-disabled-items)).
|
|
29
|
-
*/
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
onSelect?: Function;
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
*/
|
|
38
|
-
level?: number;
|
|
39
|
-
/**
|
|
40
|
-
* Defines an icon that will be rendered next to the title ([see example]({% slug titlesitems_panelbar %}#toc-adding-icons)).
|
|
41
|
-
*/
|
|
42
|
-
icon?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Defines an SVG icon that will be rendered next to the title ([see example]({% slug titlesitems_panelbar %}#toc-adding-icons)).
|
|
45
|
-
*/
|
|
46
|
-
svgIcon?: SVGIcon;
|
|
47
|
-
/**
|
|
48
|
-
* Defines an icon with a custom CSS class that will be rendered next to the title ([see example]({% slug titlesitems_panelbar %}#toc-adding-icons)).
|
|
49
|
-
*/
|
|
50
|
-
iconClass?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Defines the location of the image that will be displayed next to the title ([see example]({% slug titlesitems_panelbar %}#toc-adding-images)).
|
|
53
|
-
*/
|
|
54
|
-
imageUrl?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Sets the initial selected state of the PanelBarItem. Controlled by the PanelBarItem component ([see example]({% slug statesitems_panelbar %}#toc-selected-items)).
|
|
57
|
-
*/
|
|
58
|
-
selected?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Sets the title of the PanelBar item ([see example]({% slug titlesitems_panelbar %}#toc-getting-started)).
|
|
61
|
-
*/
|
|
62
|
-
title?: React.ReactNode;
|
|
63
|
-
/**
|
|
64
|
-
* Allows the component to set the `id` property to each item. If not set, a default `id` is applied.
|
|
65
|
-
*/
|
|
66
|
-
id?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Sets the initial focused state of the PanelBarItem. Controlled by the PanelBar component.
|
|
69
|
-
*/
|
|
70
|
-
focused?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* @hidden
|
|
73
|
-
*/
|
|
74
|
-
parentExpanded?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* @hidden
|
|
77
|
-
*/
|
|
78
|
-
content?: any;
|
|
79
|
-
/**
|
|
80
|
-
* Used to identify the PanelBarItems inside the PanelBar ([see example]({% slug controlling_state_panelbar %})). Does not depend on the state of the PanelBarItem.
|
|
81
|
-
*/
|
|
82
|
-
uniquePrivateKey?: string;
|
|
83
|
-
/**
|
|
84
|
-
* @hidden
|
|
85
|
-
*/
|
|
86
|
-
parentUniquePrivateKey?: string[];
|
|
87
|
-
/**
|
|
88
|
-
* @hidden
|
|
89
|
-
*/
|
|
90
|
-
keepItemsMounted?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Sets a custom property. Contained in the PanelBarItem props that are returned from the `onSelect` PanelBar event.
|
|
93
|
-
*/
|
|
94
|
-
[customProp: string]: any;
|
|
95
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PanelBarSelectEventArguments } from '../../main';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the expand modes of the KendoReact PanelBar. Defaults to `multiple`.
|
|
5
|
-
*/
|
|
6
|
-
export declare type PanelBarExpandMode = 'single' | 'multiple';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the props of the [KendoReact PanelBar component]({% slug overview_panelbar %}).
|
|
9
|
-
*/
|
|
10
|
-
export interface PanelBarProps {
|
|
11
|
-
/**
|
|
12
|
-
* The child can be either a single PanelBarItem or a PanelBarItem array.
|
|
13
|
-
*/
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* The class name that is set to the PanelBar.
|
|
17
|
-
*/
|
|
18
|
-
className?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Sets the animation state of the PanelBar.
|
|
21
|
-
*/
|
|
22
|
-
animation?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Sets the expand mode of the PanelBar ([see example]({% slug expandmodes_panelbar %})).
|
|
25
|
-
*
|
|
26
|
-
* The available modes are:
|
|
27
|
-
* - `"single"`—Allows you to expand only one item at a time. The expanding of an item collapses the item that was previously expanded.
|
|
28
|
-
* - `"multiple"` (default)—Allows you to expand two or more items at a time. Items can also be toggled.
|
|
29
|
-
*/
|
|
30
|
-
expandMode?: PanelBarExpandMode;
|
|
31
|
-
/**
|
|
32
|
-
* Sets the direction of the PanelBar component.
|
|
33
|
-
*/
|
|
34
|
-
dir?: string;
|
|
35
|
-
/**
|
|
36
|
-
* If set, overrides the currently selected property in the PanelBar state.
|
|
37
|
-
*/
|
|
38
|
-
selected?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Sets the initial expanded state of the PanelBar.
|
|
41
|
-
*/
|
|
42
|
-
expanded?: string[];
|
|
43
|
-
/**
|
|
44
|
-
* Sets the initial focused state of the PanelBar.
|
|
45
|
-
*/
|
|
46
|
-
focused?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Determines if the PanelBar items will be mounted after expand collapse. Defaults to `false`.
|
|
49
|
-
*/
|
|
50
|
-
keepItemsMounted?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Determines if the PanelBar is going to be used in controlled state.
|
|
53
|
-
*/
|
|
54
|
-
isControlled?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Fires each time the user makes a selection ([see example]({% slug controlling_state_panelbar %})).
|
|
57
|
-
*/
|
|
58
|
-
onSelect?: (event: PanelBarSelectEventArguments) => void;
|
|
59
|
-
/**
|
|
60
|
-
* Sets additional CSS styles to the PanelBar.
|
|
61
|
-
*/
|
|
62
|
-
style?: React.CSSProperties;
|
|
63
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PanelBarItemProps } from '../interfaces/PanelBarItemProps';
|
|
3
|
-
/**
|
|
4
|
-
* The arguments that are passed to the `onSelect` callback function.
|
|
5
|
-
*/
|
|
6
|
-
export interface PanelBarSelectEventArguments {
|
|
7
|
-
/**
|
|
8
|
-
* The selected PanelBar item.
|
|
9
|
-
*/
|
|
10
|
-
target: React.ReactElement<PanelBarItemProps>;
|
|
11
|
-
/**
|
|
12
|
-
* The new expanded PanelBar items state.
|
|
13
|
-
*/
|
|
14
|
-
expandedItems: string[];
|
|
15
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PanelBarState } from '../PanelBar';
|
|
3
|
-
/**
|
|
4
|
-
* @hidden
|
|
5
|
-
*/
|
|
6
|
-
export interface RenderPanelBarItem {
|
|
7
|
-
animation?: boolean;
|
|
8
|
-
keepItemsMounted?: boolean;
|
|
9
|
-
state: PanelBarState;
|
|
10
|
-
expanded: string[];
|
|
11
|
-
handleSelect: any;
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
parentExpanded?: boolean;
|
|
14
|
-
level?: number;
|
|
15
|
-
parentPrivateKey?: string[];
|
|
16
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { PanelBarState } from './PanelBar';
|
|
3
|
-
import { PanelBarItem } from './PanelBarItem';
|
|
4
|
-
import { RenderPanelBarItem } from './interfaces/RenderPanelBarItem';
|
|
5
|
-
import { PanelBarItemProps } from '../main';
|
|
6
|
-
import { PanelBarExpandMode } from './interfaces/PanelBarProps';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare const renderChildren: ({ animation, keepItemsMounted, state, expanded, handleSelect, children, parentExpanded, level, parentPrivateKey }: RenderPanelBarItem) => React.ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export declare const getFirstId: (props: any) => any;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export declare const getInitialState: (props: any, expandMode: PanelBarExpandMode, result?: PanelBarState, parentExpanded?: boolean, parentPrivateKey?: string[]) => PanelBarState;
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
export declare function flatVisibleItems(data: any, flattedItems?: any[]): any[];
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
export declare function flatChildren(children: any, flattenChildren?: any[]): any[];
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
export declare function flatVisibleChildren(children: any, flattenVisibleChildren?: any[]): any[];
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
export declare const isPresent: Function;
|
|
35
|
-
/**
|
|
36
|
-
* Represents the PanelBarUtils functions.
|
|
37
|
-
*/
|
|
38
|
-
export declare namespace PanelBarUtils {
|
|
39
|
-
/**
|
|
40
|
-
* Maps a collection of PanelBarItemProps to PanelBarItem components
|
|
41
|
-
* ([see example]({% slug customization_panelbar %})).
|
|
42
|
-
* Contained in the `PanelBarUtils` object.
|
|
43
|
-
*
|
|
44
|
-
* @param items - A collection of PanelBarItemProps.
|
|
45
|
-
* @return {PanelBarItem[]} Returns an array of PanelBarItem components.
|
|
46
|
-
*/
|
|
47
|
-
function mapItemsToComponents(items: Array<PanelBarItemProps>): PanelBarItem[];
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* @hidden
|
|
51
|
-
*/
|
|
52
|
-
export declare const isArrayEqual: (firstArray: any[], secondArray: any[]) => boolean;
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
14
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
-
if (ar || !(i in from)) {
|
|
16
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
-
ar[i] = from[i];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
|
-
};
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.isArrayEqual = exports.PanelBarUtils = exports.isPresent = exports.flatVisibleChildren = exports.flatChildren = exports.flatVisibleItems = exports.getInitialState = exports.getFirstId = exports.renderChildren = void 0;
|
|
24
|
-
var React = require("react");
|
|
25
|
-
var PanelBarItem_1 = require("./PanelBarItem");
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
var renderChildren = function (_a) {
|
|
30
|
-
var _b = _a.animation, animation = _b === void 0 ? true : _b, _c = _a.keepItemsMounted, keepItemsMounted = _c === void 0 ? false : _c, state = _a.state, expanded = _a.expanded, handleSelect = _a.handleSelect, children = _a.children, _d = _a.parentExpanded, parentExpanded = _d === void 0 ? true : _d, _e = _a.level, level = _e === void 0 ? 0 : _e, _f = _a.parentPrivateKey, parentPrivateKey = _f === void 0 ? [] : _f;
|
|
31
|
-
return React.Children.map(children, function (child, idx) {
|
|
32
|
-
if (child && child.type === PanelBarItem_1.PanelBarItem) {
|
|
33
|
-
var nestedChildren = void 0;
|
|
34
|
-
var privateKey = getId(child, parentPrivateKey, idx);
|
|
35
|
-
if (child.props.children) {
|
|
36
|
-
var renderState = {
|
|
37
|
-
animation: animation,
|
|
38
|
-
keepItemsMounted: keepItemsMounted,
|
|
39
|
-
state: state,
|
|
40
|
-
expanded: expanded,
|
|
41
|
-
handleSelect: handleSelect,
|
|
42
|
-
children: child.props.children,
|
|
43
|
-
parentExpanded: (expanded || []).indexOf(privateKey) > -1,
|
|
44
|
-
level: level + 1,
|
|
45
|
-
parentPrivateKey: __spreadArray(__spreadArray([], parentPrivateKey, true), [privateKey], false)
|
|
46
|
-
};
|
|
47
|
-
nestedChildren = (0, exports.renderChildren)(renderState);
|
|
48
|
-
}
|
|
49
|
-
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 }));
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
return React.createElement("div", { className: "k-panelbar-content k-content" }, child);
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
exports.renderChildren = renderChildren;
|
|
57
|
-
/**
|
|
58
|
-
* @hidden
|
|
59
|
-
*/
|
|
60
|
-
var getFirstId = function (props) {
|
|
61
|
-
var firstItem = React.Children.toArray(props.children)[0];
|
|
62
|
-
if (firstItem) {
|
|
63
|
-
return getId(firstItem, [], 0);
|
|
64
|
-
}
|
|
65
|
-
return '';
|
|
66
|
-
};
|
|
67
|
-
exports.getFirstId = getFirstId;
|
|
68
|
-
/**
|
|
69
|
-
* @hidden
|
|
70
|
-
*/
|
|
71
|
-
var getInitialState = function (props, expandMode, result, parentExpanded, parentPrivateKey) {
|
|
72
|
-
if (result === void 0) { result = {
|
|
73
|
-
expanded: props.expanded || [],
|
|
74
|
-
selected: props.selected || '',
|
|
75
|
-
focused: props.focused || '',
|
|
76
|
-
wrapperFocused: false
|
|
77
|
-
}; }
|
|
78
|
-
if (parentExpanded === void 0) { parentExpanded = true; }
|
|
79
|
-
if (parentPrivateKey === void 0) { parentPrivateKey = []; }
|
|
80
|
-
React.Children.map(props.children, function (child, idx) {
|
|
81
|
-
if (child && child.type === PanelBarItem_1.PanelBarItem) {
|
|
82
|
-
var privateKey = getId(child, parentPrivateKey, idx);
|
|
83
|
-
if (!child.props.disabled && parentExpanded) {
|
|
84
|
-
if (child.props.selected) {
|
|
85
|
-
result.selected = privateKey;
|
|
86
|
-
}
|
|
87
|
-
if (child.props.focused) {
|
|
88
|
-
result.focused = privateKey;
|
|
89
|
-
}
|
|
90
|
-
if (child.props.expanded) {
|
|
91
|
-
if (expandMode === 'multiple') {
|
|
92
|
-
result.expanded.push(privateKey);
|
|
93
|
-
}
|
|
94
|
-
else if (expandMode === 'single') {
|
|
95
|
-
result.expanded = [privateKey];
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
if (child.props.children) {
|
|
99
|
-
result = (0, exports.getInitialState)(child.props, expandMode, result, !!child.props.expanded, __spreadArray(__spreadArray([], parentPrivateKey, true), [privateKey], false));
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
return result;
|
|
105
|
-
};
|
|
106
|
-
exports.getInitialState = getInitialState;
|
|
107
|
-
/**
|
|
108
|
-
* @hidden
|
|
109
|
-
*/
|
|
110
|
-
var getId = function (child, parentPrivateKey, idx) {
|
|
111
|
-
return child && child.props && child.props.id
|
|
112
|
-
? child.props.id
|
|
113
|
-
: parentPrivateKey.length
|
|
114
|
-
? parentPrivateKey[parentPrivateKey.length - 1] + ".".concat(idx)
|
|
115
|
-
: ".".concat(idx);
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
* @hidden
|
|
119
|
-
*/
|
|
120
|
-
function flatVisibleItems(data, flattedItems) {
|
|
121
|
-
if (flattedItems === void 0) { flattedItems = []; }
|
|
122
|
-
(data || []).forEach(function (item) {
|
|
123
|
-
if (!item.disabled) {
|
|
124
|
-
flattedItems.push(item);
|
|
125
|
-
if (item.expanded && item.children) {
|
|
126
|
-
flatVisibleItems(item.children, flattedItems);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
return flattedItems;
|
|
131
|
-
}
|
|
132
|
-
exports.flatVisibleItems = flatVisibleItems;
|
|
133
|
-
/**
|
|
134
|
-
* @hidden
|
|
135
|
-
*/
|
|
136
|
-
function flatChildren(children, flattenChildren) {
|
|
137
|
-
if (flattenChildren === void 0) { flattenChildren = []; }
|
|
138
|
-
React.Children.forEach(children, function (child) {
|
|
139
|
-
if (child && child.props && !child.props.disabled) {
|
|
140
|
-
flattenChildren.push(child);
|
|
141
|
-
if (child.props.children) {
|
|
142
|
-
flatChildren(child.props.children, flattenChildren);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
return flattenChildren;
|
|
147
|
-
}
|
|
148
|
-
exports.flatChildren = flatChildren;
|
|
149
|
-
;
|
|
150
|
-
/**
|
|
151
|
-
* @hidden
|
|
152
|
-
*/
|
|
153
|
-
function flatVisibleChildren(children, flattenVisibleChildren) {
|
|
154
|
-
if (flattenVisibleChildren === void 0) { flattenVisibleChildren = []; }
|
|
155
|
-
React.Children.forEach(children, function (child) {
|
|
156
|
-
if (child && child.props && !child.props.disabled && (child.props.expanded || child.props.parentExpanded)) {
|
|
157
|
-
flattenVisibleChildren.push(child);
|
|
158
|
-
if (child.props.children) {
|
|
159
|
-
flatVisibleChildren(child.props.children, flattenVisibleChildren);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
return flattenVisibleChildren;
|
|
164
|
-
}
|
|
165
|
-
exports.flatVisibleChildren = flatVisibleChildren;
|
|
166
|
-
;
|
|
167
|
-
/**
|
|
168
|
-
* @hidden
|
|
169
|
-
*/
|
|
170
|
-
var isPresent = function (value) { return value !== null && value !== undefined; };
|
|
171
|
-
exports.isPresent = isPresent;
|
|
172
|
-
/**
|
|
173
|
-
* Represents the PanelBarUtils functions.
|
|
174
|
-
*/
|
|
175
|
-
var PanelBarUtils;
|
|
176
|
-
(function (PanelBarUtils) {
|
|
177
|
-
/**
|
|
178
|
-
* Maps a collection of PanelBarItemProps to PanelBarItem components
|
|
179
|
-
* ([see example]({% slug customization_panelbar %})).
|
|
180
|
-
* Contained in the `PanelBarUtils` object.
|
|
181
|
-
*
|
|
182
|
-
* @param items - A collection of PanelBarItemProps.
|
|
183
|
-
* @return {PanelBarItem[]} Returns an array of PanelBarItem components.
|
|
184
|
-
*/
|
|
185
|
-
function mapItemsToComponents(items) {
|
|
186
|
-
return items.map(function (item, idx) {
|
|
187
|
-
var children;
|
|
188
|
-
if (item.content) {
|
|
189
|
-
children = item.content;
|
|
190
|
-
}
|
|
191
|
-
if (item.children) {
|
|
192
|
-
children = (mapItemsToComponents(item.children));
|
|
193
|
-
}
|
|
194
|
-
return (React.createElement(PanelBarItem_1.PanelBarItem, __assign({}, item, { children: children, key: item.id || idx })));
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
PanelBarUtils.mapItemsToComponents = mapItemsToComponents;
|
|
198
|
-
})(PanelBarUtils = exports.PanelBarUtils || (exports.PanelBarUtils = {}));
|
|
199
|
-
/**
|
|
200
|
-
* @hidden
|
|
201
|
-
*/
|
|
202
|
-
var isArrayEqual = function (firstArray, secondArray) {
|
|
203
|
-
if (firstArray.length !== secondArray.length) {
|
|
204
|
-
return false;
|
|
205
|
-
}
|
|
206
|
-
return firstArray.every(function (ex, i) { return ex === secondArray[i]; });
|
|
207
|
-
};
|
|
208
|
-
exports.isArrayEqual = isArrayEqual;
|