@progress/kendo-react-layout 6.1.1 → 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,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { MenuItemInternalModel } from './../models/MenuItemModel';
|
|
3
|
-
import { BaseMenuItemInternalProps } from './../BaseMenuItemInternalProps';
|
|
4
|
-
/**
|
|
5
|
-
* @hidden
|
|
6
|
-
*/
|
|
7
|
-
export interface MenuItemInternalsListProps extends BaseMenuItemInternalProps {
|
|
8
|
-
items: MenuItemInternalModel[];
|
|
9
|
-
parentItemId?: string;
|
|
10
|
-
className: string;
|
|
11
|
-
role?: string;
|
|
12
|
-
'aria-orientation'?: 'vertical';
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare class MenuItemInternalsList extends React.Component<MenuItemInternalsListProps, {}> {
|
|
18
|
-
render(): JSX.Element;
|
|
19
|
-
private renderChildItems;
|
|
20
|
-
private onMouseOver;
|
|
21
|
-
private onMouseLeave;
|
|
22
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
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");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import * as React from 'react';
|
|
17
|
-
import { MenuItemInternal } from './MenuItemInternal';
|
|
18
|
-
import { getDOMElementId } from './../utils/misc';
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
var MenuItemInternalsList = /** @class */ (function (_super) {
|
|
23
|
-
__extends(MenuItemInternalsList, _super);
|
|
24
|
-
function MenuItemInternalsList() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.onMouseOver = function (event) {
|
|
27
|
-
_this.props.onMouseOver(_this.props.parentItemId);
|
|
28
|
-
event.stopPropagation();
|
|
29
|
-
};
|
|
30
|
-
_this.onMouseLeave = function (event) {
|
|
31
|
-
_this.props.onMouseLeave(_this.props.parentItemId);
|
|
32
|
-
event.stopPropagation();
|
|
33
|
-
};
|
|
34
|
-
return _this;
|
|
35
|
-
}
|
|
36
|
-
MenuItemInternalsList.prototype.render = function () {
|
|
37
|
-
var parentItemId = this.props.parentItemId;
|
|
38
|
-
return (React.createElement("ul", { className: this.props.className, role: this.props.role ? this.props.role : (parentItemId !== undefined ? 'menu' : 'menubar'), id: parentItemId !== undefined ? getDOMElementId(this.props.menuGuid, parentItemId) : undefined, onMouseOver: parentItemId !== undefined ? this.onMouseOver : undefined, onMouseLeave: parentItemId !== undefined ? this.onMouseLeave : undefined, "aria-orientation": this.props['aria-orientation'] }, this.renderChildItems()));
|
|
39
|
-
};
|
|
40
|
-
MenuItemInternalsList.prototype.renderChildItems = function () {
|
|
41
|
-
var _this = this;
|
|
42
|
-
return this.props.items.length > 0 ? (this.props.items.map(function (item, index) {
|
|
43
|
-
return (React.createElement(MenuItemInternal, { item: item, isMenuVertical: _this.props.isMenuVertical, isDirectionRightToLeft: _this.props.isDirectionRightToLeft, focusedItemId: _this.props.focusedItemId, lastItemIdToBeOpened: _this.props.lastItemIdToBeOpened, tabbableItemId: _this.props.tabbableItemId, itemRender: _this.props.itemRender, linkRender: _this.props.linkRender, menuGuid: _this.props.menuGuid, onMouseOver: _this.props.onMouseOver, onMouseLeave: _this.props.onMouseLeave, onMouseDown: _this.props.onMouseDown, onBlur: _this.props.onBlur, onFocus: _this.props.onFocus, onClick: _this.props.onClick, onOriginalItemNeeded: _this.props.onOriginalItemNeeded, key: index }));
|
|
44
|
-
})) : null;
|
|
45
|
-
};
|
|
46
|
-
return MenuItemInternalsList;
|
|
47
|
-
}(React.Component));
|
|
48
|
-
export { MenuItemInternalsList };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
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");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import * as React from 'react';
|
|
17
|
-
import * as PropTypes from 'prop-types';
|
|
18
|
-
import { classNames } from '@progress/kendo-react-common';
|
|
19
|
-
var MenuItemLink = /** @class */ (function (_super) {
|
|
20
|
-
__extends(MenuItemLink, _super);
|
|
21
|
-
function MenuItemLink() {
|
|
22
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
MenuItemLink.prototype.render = function () {
|
|
28
|
-
if (this.props.url) {
|
|
29
|
-
return (React.createElement("a", { className: this.getMenuItemClassName(), role: "presentation", href: this.props.url, tabIndex: -1 }, this.props.children));
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
return (React.createElement("span", { id: this.props.id, className: classNames(this.getMenuItemClassName(), this.props.className), style: this.props.style, role: "presentation" }, this.props.children));
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
MenuItemLink.prototype.getMenuItemClassName = function () {
|
|
36
|
-
return classNames('k-link', 'k-menu-link', {
|
|
37
|
-
'k-active': this.props.opened
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
MenuItemLink.propTypes = {
|
|
44
|
-
opened: PropTypes.bool,
|
|
45
|
-
url: PropTypes.string
|
|
46
|
-
};
|
|
47
|
-
return MenuItemLink;
|
|
48
|
-
}(React.Component));
|
|
49
|
-
export { MenuItemLink };
|
package/dist/es/menu/consts.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export declare const POPUP_SETTINGS_RTL: {
|
|
5
|
-
downward: {
|
|
6
|
-
anchorAlign: {
|
|
7
|
-
vertical: string;
|
|
8
|
-
horizontal: string;
|
|
9
|
-
};
|
|
10
|
-
popupAlign: any;
|
|
11
|
-
collision: {
|
|
12
|
-
vertical: string;
|
|
13
|
-
horizontal: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
leftward: {
|
|
17
|
-
anchorAlign: {
|
|
18
|
-
vertical: string;
|
|
19
|
-
horizontal: string;
|
|
20
|
-
};
|
|
21
|
-
popupAlign: any;
|
|
22
|
-
collision: {
|
|
23
|
-
vertical: string;
|
|
24
|
-
horizontal: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
|
-
export declare const POPUP_SETTINGS: {
|
|
32
|
-
downward: {
|
|
33
|
-
anchorAlign: {
|
|
34
|
-
vertical: string;
|
|
35
|
-
horizontal: string;
|
|
36
|
-
};
|
|
37
|
-
popupAlign: any;
|
|
38
|
-
collision: {
|
|
39
|
-
vertical: string;
|
|
40
|
-
horizontal: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
rightward: {
|
|
44
|
-
anchorAlign: {
|
|
45
|
-
vertical: string;
|
|
46
|
-
horizontal: string;
|
|
47
|
-
};
|
|
48
|
-
popupAlign: any;
|
|
49
|
-
collision: {
|
|
50
|
-
vertical: string;
|
|
51
|
-
horizontal: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
};
|
package/dist/es/menu/consts.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
var POPUP_ALIGN = {
|
|
5
|
-
vertical: 'top',
|
|
6
|
-
horizontal: 'left'
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
var POPUP_ALIGN_RTL = {
|
|
12
|
-
vertical: 'top',
|
|
13
|
-
horizontal: 'right'
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
var VERTICAL_COLLISION = {
|
|
19
|
-
vertical: 'flip',
|
|
20
|
-
horizontal: 'fit'
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
var HORIZONTAL_COLLISION = {
|
|
26
|
-
vertical: 'fit',
|
|
27
|
-
horizontal: 'flip'
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
export var POPUP_SETTINGS_RTL = {
|
|
33
|
-
downward: {
|
|
34
|
-
anchorAlign: {
|
|
35
|
-
vertical: 'bottom',
|
|
36
|
-
horizontal: 'right'
|
|
37
|
-
},
|
|
38
|
-
popupAlign: POPUP_ALIGN_RTL,
|
|
39
|
-
collision: VERTICAL_COLLISION
|
|
40
|
-
},
|
|
41
|
-
leftward: {
|
|
42
|
-
anchorAlign: {
|
|
43
|
-
vertical: 'top',
|
|
44
|
-
horizontal: 'left'
|
|
45
|
-
},
|
|
46
|
-
popupAlign: POPUP_ALIGN_RTL,
|
|
47
|
-
collision: HORIZONTAL_COLLISION
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
*/
|
|
53
|
-
export var POPUP_SETTINGS = {
|
|
54
|
-
downward: {
|
|
55
|
-
anchorAlign: {
|
|
56
|
-
vertical: 'bottom',
|
|
57
|
-
horizontal: 'left'
|
|
58
|
-
},
|
|
59
|
-
popupAlign: POPUP_ALIGN,
|
|
60
|
-
collision: VERTICAL_COLLISION
|
|
61
|
-
},
|
|
62
|
-
rightward: {
|
|
63
|
-
anchorAlign: {
|
|
64
|
-
vertical: 'top',
|
|
65
|
-
horizontal: 'right'
|
|
66
|
-
},
|
|
67
|
-
popupAlign: POPUP_ALIGN,
|
|
68
|
-
collision: HORIZONTAL_COLLISION
|
|
69
|
-
}
|
|
70
|
-
};
|
package/dist/es/menu/events.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export declare class DirectionHolder {
|
|
5
|
-
private phase;
|
|
6
|
-
private previousIsDirectionRightToLeft?;
|
|
7
|
-
private isDirectionRightToLeft?;
|
|
8
|
-
getIsDirectionRightToLeft(): boolean | undefined;
|
|
9
|
-
setIsDirectionRightToLeft(value: boolean): void;
|
|
10
|
-
hasDirectionChanged(): boolean;
|
|
11
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
var DirectionHolder = /** @class */ (function () {
|
|
5
|
-
function DirectionHolder() {
|
|
6
|
-
// The phase changes in the following sequence:
|
|
7
|
-
// NotInitialized -> Initialized -> NewValueReceived.
|
|
8
|
-
this.phase = 'Initialized';
|
|
9
|
-
}
|
|
10
|
-
DirectionHolder.prototype.getIsDirectionRightToLeft = function () {
|
|
11
|
-
return this.isDirectionRightToLeft;
|
|
12
|
-
};
|
|
13
|
-
DirectionHolder.prototype.setIsDirectionRightToLeft = function (value) {
|
|
14
|
-
this.phase = this.phase === 'NotInitialized' ? 'Initialized' : 'NewValueReceived';
|
|
15
|
-
this.previousIsDirectionRightToLeft = this.isDirectionRightToLeft;
|
|
16
|
-
this.isDirectionRightToLeft = value;
|
|
17
|
-
};
|
|
18
|
-
DirectionHolder.prototype.hasDirectionChanged = function () {
|
|
19
|
-
return this.phase === 'NewValueReceived' ?
|
|
20
|
-
this.previousIsDirectionRightToLeft !== this.isDirectionRightToLeft : false;
|
|
21
|
-
};
|
|
22
|
-
return DirectionHolder;
|
|
23
|
-
}());
|
|
24
|
-
export { DirectionHolder };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export declare class MouseOverHandler {
|
|
5
|
-
private openOnClick;
|
|
6
|
-
private resetMenu;
|
|
7
|
-
private openItem;
|
|
8
|
-
private isMouseOverEnabled;
|
|
9
|
-
private mouseDown;
|
|
10
|
-
constructor(openOnClick: boolean | undefined, resetMenu: any, openItem: any);
|
|
11
|
-
set OpenOnClick(value: boolean | undefined);
|
|
12
|
-
handleItemSelectedViaKeyboard(): void;
|
|
13
|
-
get IsMouseOverEnabled(): boolean;
|
|
14
|
-
handleItemMouseDown(): void;
|
|
15
|
-
handleItemFocus(): void;
|
|
16
|
-
handleItemClick(itemId: string, clickedItemIsWithDefaultClose: boolean): void;
|
|
17
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
var MouseOverHandler = /** @class */ (function () {
|
|
5
|
-
function MouseOverHandler(openOnClick, resetMenu, openItem) {
|
|
6
|
-
this.openOnClick = openOnClick;
|
|
7
|
-
this.resetMenu = resetMenu;
|
|
8
|
-
this.openItem = openItem;
|
|
9
|
-
this.mouseDown = false;
|
|
10
|
-
this.openOnClick = openOnClick;
|
|
11
|
-
this.isMouseOverEnabled = openOnClick ? false : true;
|
|
12
|
-
}
|
|
13
|
-
Object.defineProperty(MouseOverHandler.prototype, "OpenOnClick", {
|
|
14
|
-
set: function (value) {
|
|
15
|
-
if (Boolean(value) !== Boolean(this.openOnClick)) {
|
|
16
|
-
this.mouseDown = false;
|
|
17
|
-
this.isMouseOverEnabled = value ? false : true;
|
|
18
|
-
}
|
|
19
|
-
this.openOnClick = value;
|
|
20
|
-
},
|
|
21
|
-
enumerable: false,
|
|
22
|
-
configurable: true
|
|
23
|
-
});
|
|
24
|
-
MouseOverHandler.prototype.handleItemSelectedViaKeyboard = function () {
|
|
25
|
-
if (this.openOnClick) {
|
|
26
|
-
this.isMouseOverEnabled = false;
|
|
27
|
-
this.resetMenu();
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
Object.defineProperty(MouseOverHandler.prototype, "IsMouseOverEnabled", {
|
|
31
|
-
get: function () {
|
|
32
|
-
return this.isMouseOverEnabled;
|
|
33
|
-
},
|
|
34
|
-
enumerable: false,
|
|
35
|
-
configurable: true
|
|
36
|
-
});
|
|
37
|
-
MouseOverHandler.prototype.handleItemMouseDown = function () {
|
|
38
|
-
this.mouseDown = true;
|
|
39
|
-
};
|
|
40
|
-
MouseOverHandler.prototype.handleItemFocus = function () {
|
|
41
|
-
// Keep opening on mouse over upon tabbing
|
|
42
|
-
// and keyboard navigation. However, discard the event
|
|
43
|
-
// upon click because a cycle occurs and the item does not open.
|
|
44
|
-
if (this.openOnClick && !this.mouseDown) {
|
|
45
|
-
this.isMouseOverEnabled = true;
|
|
46
|
-
}
|
|
47
|
-
this.mouseDown = false;
|
|
48
|
-
};
|
|
49
|
-
MouseOverHandler.prototype.handleItemClick = function (itemId, clickedItemIsWithDefaultClose) {
|
|
50
|
-
if (this.openOnClick) {
|
|
51
|
-
if (this.isMouseOverEnabled) {
|
|
52
|
-
if (clickedItemIsWithDefaultClose) {
|
|
53
|
-
this.isMouseOverEnabled = false;
|
|
54
|
-
this.resetMenu();
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
this.isMouseOverEnabled = true;
|
|
59
|
-
this.openItem(itemId);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
return MouseOverHandler;
|
|
64
|
-
}());
|
|
65
|
-
export { MouseOverHandler };
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { Keys } from '@progress/kendo-react-common';
|
|
2
|
-
import { getFirstChildId, isIdZeroLevel, getRootParentId, isIdFirstLevel, getDirectParentId, getShortId, createId, getDirectSiblingIdForLevelZero, getItemById as getItemByIdUtil } from './itemsIdsUtils';
|
|
3
|
-
var NO_WHITESPACE_REGEX = /\S/;
|
|
4
|
-
/**
|
|
5
|
-
* @hidden
|
|
6
|
-
* Returns the `itemId` (string) for applicable key codes even when the id has not changed.
|
|
7
|
-
* For key codes that are not applicable, returns `undefined`.
|
|
8
|
-
*/
|
|
9
|
-
export function getNewItemIdUponKeyboardNavigation(sourceItems, sourceItemId, keyCode, key, isMenuVertical, isDirectionRightToLeft) {
|
|
10
|
-
var sourceItem = getItemById();
|
|
11
|
-
switch (keyCode) {
|
|
12
|
-
case Keys.left:
|
|
13
|
-
return getIdUponLeftKey();
|
|
14
|
-
case Keys.right:
|
|
15
|
-
return getIdUponRightKey();
|
|
16
|
-
case Keys.up:
|
|
17
|
-
return getIdUponUpKey();
|
|
18
|
-
case Keys.down:
|
|
19
|
-
return getIdUponDownKey();
|
|
20
|
-
case Keys.enter:
|
|
21
|
-
case Keys.space:
|
|
22
|
-
return getIdUponEnterAndSpaceKeys();
|
|
23
|
-
case Keys.home:
|
|
24
|
-
return getIdUponHomeKey();
|
|
25
|
-
case Keys.end:
|
|
26
|
-
return getIdUponEndKey();
|
|
27
|
-
case Keys.esc:
|
|
28
|
-
return getIdUponEscKey();
|
|
29
|
-
default:
|
|
30
|
-
return isSearchableKey() ? getIdUponSearchByChar() : sourceItemId;
|
|
31
|
-
}
|
|
32
|
-
function getIdUponLeftKey() {
|
|
33
|
-
if (isMenuVertical) {
|
|
34
|
-
return isDirectionRightToLeft ? getIdUponRightKeyForVerticalMenu() : getIdUponLeftKeyForVerticalMenu();
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
return isDirectionRightToLeft ?
|
|
38
|
-
getIdUponRightKeyForHorizontalMenu() : getIdUponLeftKeyForHorizontalMenu();
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function getIdUponRightKey() {
|
|
42
|
-
if (isMenuVertical) {
|
|
43
|
-
return isDirectionRightToLeft ? getIdUponLeftKeyForVerticalMenu() : getIdUponRightKeyForVerticalMenu();
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
return isDirectionRightToLeft ?
|
|
47
|
-
getIdUponLeftKeyForHorizontalMenu() : getIdUponRightKeyForHorizontalMenu();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function getIdUponDownKey() {
|
|
51
|
-
if (isMenuVertical) {
|
|
52
|
-
return getNextSiblingId();
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
if (isIdZeroLevel(sourceItemId)) {
|
|
56
|
-
return getFirstChildIdForEnabledItemOrGetSameId();
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
return getNextSiblingId();
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function getIdUponUpKey() {
|
|
64
|
-
if (isMenuVertical) {
|
|
65
|
-
return getPrevSiblingId();
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
if (isIdZeroLevel(sourceItemId)) {
|
|
69
|
-
return getLastChildIdForEnabledItemOrGetSameId();
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
return getPrevSiblingId();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
function getIdUponEnterAndSpaceKeys() {
|
|
77
|
-
if (sourceItem.disabled) {
|
|
78
|
-
return sourceItemId;
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
return hasChildren() ? getFirstChildId(sourceItemId) : getRootParentId(sourceItemId);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
function getIdUponHomeKey() {
|
|
85
|
-
return getSiblings()[0].id;
|
|
86
|
-
}
|
|
87
|
-
function getIdUponEndKey() {
|
|
88
|
-
var siblings = getSiblings();
|
|
89
|
-
return siblings[siblings.length - 1].id;
|
|
90
|
-
}
|
|
91
|
-
function getIdUponEscKey() {
|
|
92
|
-
return isIdZeroLevel(sourceItemId) ? sourceItemId : getDirectParentId(sourceItemId);
|
|
93
|
-
}
|
|
94
|
-
function getIdUponSearchByChar() {
|
|
95
|
-
var searchChar = key.toLowerCase();
|
|
96
|
-
var siblings = getSiblings();
|
|
97
|
-
var currentItemIndex = Number(getShortId(sourceItemId));
|
|
98
|
-
var itemsToSearch = siblings.slice(currentItemIndex + 1).concat(siblings.slice(0, currentItemIndex + 1));
|
|
99
|
-
var matchedSibling = itemsToSearch.find(function (item) {
|
|
100
|
-
return (item.text || '').toLowerCase().startsWith(searchChar);
|
|
101
|
-
});
|
|
102
|
-
return matchedSibling ? matchedSibling.id : sourceItemId;
|
|
103
|
-
}
|
|
104
|
-
// #region Left Key Internals
|
|
105
|
-
function getIdUponLeftKeyForHorizontalMenu() {
|
|
106
|
-
if (isIdZeroLevel(sourceItemId)) {
|
|
107
|
-
return getPrevSiblingId();
|
|
108
|
-
}
|
|
109
|
-
else if (isIdFirstLevel(sourceItemId)) {
|
|
110
|
-
return getFirstChildIdForEnabledItemOrGetSameId(getPrevSiblingId(getRootParentId(sourceItemId)));
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
return getDirectParentId(sourceItemId);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
function getIdUponLeftKeyForVerticalMenu() {
|
|
117
|
-
if (isIdZeroLevel(sourceItemId)) {
|
|
118
|
-
return getLastChildIdForEnabledItemOrGetSameId();
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
return getDirectParentId(sourceItemId);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
// #endregion
|
|
125
|
-
// #region Right Key Internals
|
|
126
|
-
function getIdUponRightKeyForHorizontalMenu() {
|
|
127
|
-
if (isIdZeroLevel(sourceItemId)) {
|
|
128
|
-
return getNextSiblingId();
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
return getFirstChildIdForEnabledItemOrGetSameId(hasChildren() ? sourceItemId : getNextSiblingId(getRootParentId(sourceItemId)));
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
function getIdUponRightKeyForVerticalMenu() {
|
|
135
|
-
return getFirstChildIdForEnabledItemOrGetSameId(isIdZeroLevel(sourceItemId) || hasChildren() ?
|
|
136
|
-
sourceItemId : getNextSiblingId(getRootParentId(sourceItemId)));
|
|
137
|
-
}
|
|
138
|
-
// #endregion
|
|
139
|
-
// #region Utils
|
|
140
|
-
function getFirstChildIdForEnabledItemOrGetSameId(itemId) {
|
|
141
|
-
return getFirstOrLastChildIdForEnabledItemOrGetSameId(true, itemId);
|
|
142
|
-
}
|
|
143
|
-
function getLastChildIdForEnabledItemOrGetSameId(itemId) {
|
|
144
|
-
return getFirstOrLastChildIdForEnabledItemOrGetSameId(false, itemId);
|
|
145
|
-
}
|
|
146
|
-
function isSearchableKey() {
|
|
147
|
-
return key.length === 1 && NO_WHITESPACE_REGEX.test(key);
|
|
148
|
-
}
|
|
149
|
-
function getItemById(itemId, items) {
|
|
150
|
-
if (itemId === undefined) {
|
|
151
|
-
itemId = sourceItemId;
|
|
152
|
-
}
|
|
153
|
-
if (items === undefined) {
|
|
154
|
-
items = sourceItems;
|
|
155
|
-
}
|
|
156
|
-
return getItemByIdUtil(itemId, items);
|
|
157
|
-
}
|
|
158
|
-
function hasChildren(itemId) {
|
|
159
|
-
return getItemById(itemId).items.length > 0;
|
|
160
|
-
}
|
|
161
|
-
function getPrevSiblingId(itemId) {
|
|
162
|
-
return getSiblingId(false, itemId);
|
|
163
|
-
}
|
|
164
|
-
function getNextSiblingId(itemId) {
|
|
165
|
-
return getSiblingId(true, itemId);
|
|
166
|
-
}
|
|
167
|
-
function getLastChildId(itemId) {
|
|
168
|
-
var itemChildren = getItemById(itemId).items;
|
|
169
|
-
return itemChildren[itemChildren.length - 1].id;
|
|
170
|
-
}
|
|
171
|
-
function getSiblings() {
|
|
172
|
-
return isIdZeroLevel(sourceItemId) ?
|
|
173
|
-
sourceItems : getItemById(getDirectParentId(sourceItemId), sourceItems).items;
|
|
174
|
-
}
|
|
175
|
-
function getFirstOrLastChildIdForEnabledItemOrGetSameId(getFirstChild, itemId) {
|
|
176
|
-
if (itemId === undefined) {
|
|
177
|
-
itemId = sourceItemId;
|
|
178
|
-
}
|
|
179
|
-
var item = getItemById(itemId);
|
|
180
|
-
if (hasChildren(itemId) && !item.disabled) {
|
|
181
|
-
return getFirstChild ? getFirstChildId(itemId) : getLastChildId(itemId);
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
return itemId;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
function getSiblingId(next, itemId) {
|
|
188
|
-
if (itemId === undefined) {
|
|
189
|
-
itemId = sourceItemId;
|
|
190
|
-
}
|
|
191
|
-
if (isIdZeroLevel(itemId)) {
|
|
192
|
-
return getDirectSiblingIdForLevelZero(next, itemId, sourceItems.length);
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
var directParentId = getDirectParentId(itemId);
|
|
196
|
-
var shortId = getShortId(itemId);
|
|
197
|
-
var siblingsCount = getItemById(directParentId).items.length;
|
|
198
|
-
return createId(getDirectSiblingIdForLevelZero(next, shortId, siblingsCount), directParentId);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
// #endregion
|
|
202
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export function getHoverOpenDelay(props) {
|
|
5
|
-
if (props.hoverOpenDelay !== undefined) {
|
|
6
|
-
return props.hoverOpenDelay;
|
|
7
|
-
}
|
|
8
|
-
else {
|
|
9
|
-
return props.openOnClick ? 0 : 100;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
export function getHoverCloseDelay(props) {
|
|
16
|
-
return props.hoverCloseDelay !== undefined ? props.hoverCloseDelay : 100;
|
|
17
|
-
}
|