@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,383 +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
|
-
var __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
28
|
-
var t = {};
|
|
29
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
30
|
-
t[p] = s[p];
|
|
31
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
32
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
34
|
-
t[p[i]] = s[p[i]];
|
|
35
|
-
}
|
|
36
|
-
return t;
|
|
37
|
-
};
|
|
38
|
-
import * as React from 'react';
|
|
39
|
-
import { SplitterPane } from './SplitterPane';
|
|
40
|
-
import { SplitterBar } from './SplitterBar';
|
|
41
|
-
import { classNames } from '@progress/kendo-react-common';
|
|
42
|
-
import { validatePackage } from '@progress/kendo-react-common';
|
|
43
|
-
import { packageMetadata } from '../package-metadata';
|
|
44
|
-
import { messages, splitBarLabel } from './messages';
|
|
45
|
-
import { provideLocalizationService } from '@progress/kendo-react-intl';
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
var PANE_DEFAULTS = {
|
|
50
|
-
collapsible: false,
|
|
51
|
-
collapsed: false,
|
|
52
|
-
resizable: true,
|
|
53
|
-
scrollable: true
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
*/
|
|
58
|
-
var DOUBLE_CLICK_WAIT_TIME = 150;
|
|
59
|
-
/**
|
|
60
|
-
* Represents the [KendoReact Splitter component]({% slug overview_splitter %}).
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```jsx
|
|
64
|
-
* class App extends React.Component {
|
|
65
|
-
* render() {
|
|
66
|
-
* return (
|
|
67
|
-
* <div>
|
|
68
|
-
* <Splitter
|
|
69
|
-
* style={{height: 400}}
|
|
70
|
-
* orientation={'vertical'}
|
|
71
|
-
* >
|
|
72
|
-
* <div>Pane 1</div>
|
|
73
|
-
* <div>Pane 2</div>
|
|
74
|
-
* <div>Pane 3</div>
|
|
75
|
-
* </Splitter>
|
|
76
|
-
* </div>
|
|
77
|
-
* );
|
|
78
|
-
* }
|
|
79
|
-
* }
|
|
80
|
-
*
|
|
81
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
82
|
-
* ```
|
|
83
|
-
*/
|
|
84
|
-
var Splitter = /** @class */ (function (_super) {
|
|
85
|
-
__extends(Splitter, _super);
|
|
86
|
-
/**
|
|
87
|
-
* @hidden
|
|
88
|
-
*/
|
|
89
|
-
function Splitter(props) {
|
|
90
|
-
var _this = _super.call(this, props) || this;
|
|
91
|
-
_this._container = null;
|
|
92
|
-
_this.validatePanes = function (panesOptions) {
|
|
93
|
-
var withoutSize = panesOptions.filter(function (pane) { return pane.size === undefined; });
|
|
94
|
-
if (!withoutSize.length) {
|
|
95
|
-
throw new Error('The Splitter should have at least one pane without a set size.');
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
_this.mapPaneOptions = function (panes, panesContent) {
|
|
99
|
-
var orientation = _this.orientation;
|
|
100
|
-
var _a = _this.state, dragIndex = _a.dragIndex, isDragging = _a.isDragging;
|
|
101
|
-
var paneOptions = [];
|
|
102
|
-
for (var index = 0; index < panesContent.length; index++) {
|
|
103
|
-
var containsSplitter = false;
|
|
104
|
-
var paneContent = panesContent[index];
|
|
105
|
-
if (React.isValidElement(paneContent)) {
|
|
106
|
-
containsSplitter = paneContent.type.displayName === 'Splitter';
|
|
107
|
-
}
|
|
108
|
-
var overlay = false;
|
|
109
|
-
if (isDragging && dragIndex !== undefined) {
|
|
110
|
-
overlay = dragIndex === index || dragIndex + 1 === index;
|
|
111
|
-
}
|
|
112
|
-
paneOptions.push(__assign(__assign(__assign({}, PANE_DEFAULTS), { orientation: orientation, containsSplitter: containsSplitter, overlay: overlay }), (panes || [])[index]));
|
|
113
|
-
}
|
|
114
|
-
return paneOptions;
|
|
115
|
-
};
|
|
116
|
-
_this.mapSplitterPanes = function (panes, panesContent) {
|
|
117
|
-
var ariaLabel = provideLocalizationService(_this).toLanguageString(splitBarLabel, messages[splitBarLabel]);
|
|
118
|
-
return panes.map(function (pane, index) {
|
|
119
|
-
var splitterBar;
|
|
120
|
-
var paneKey = index * 2;
|
|
121
|
-
var barKey = paneKey + 1;
|
|
122
|
-
if (index + 1 < panes.length) {
|
|
123
|
-
var next = panes[index + 1];
|
|
124
|
-
splitterBar = (React.createElement(SplitterBar, { key: barKey, index: index, orientation: pane.orientation, prev: pane, next: next, ariaLabel: ariaLabel, onDrag: _this.onBarDragResize, onToggle: _this.onBarToggle, onKeyboardResize: _this.onBarKeyboardResize, isRtl: _this.isRtl }));
|
|
125
|
-
}
|
|
126
|
-
var splitterPane = (React.createElement(SplitterPane, __assign({ key: paneKey }, pane), panesContent[index]));
|
|
127
|
-
return [splitterPane, splitterBar];
|
|
128
|
-
});
|
|
129
|
-
};
|
|
130
|
-
_this.onBarToggle = function (index, event) {
|
|
131
|
-
var panesOptions = _this.panesOptions(_this.panesContent);
|
|
132
|
-
var updatedState = panesOptions.map(function (pane, idx) {
|
|
133
|
-
var paneProps = _this.getPaneProps(pane);
|
|
134
|
-
if (idx === index) {
|
|
135
|
-
return __assign(__assign({}, paneProps), { collapsed: !pane.collapsed });
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
return __assign({}, paneProps);
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
if (_this.props.onChange) {
|
|
142
|
-
_this.props.onChange({
|
|
143
|
-
newState: updatedState,
|
|
144
|
-
isLast: true,
|
|
145
|
-
nativeEvent: event
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
_this.onBarDragResize = function (event, barElement, index, isFirst, isLast) {
|
|
150
|
-
var time = new Date().getTime();
|
|
151
|
-
var pageX = event.pageX, pageY = event.pageY;
|
|
152
|
-
var _a = _this.surroudingPanes(barElement), prevElement = _a.prevElement, nextElement = _a.nextElement;
|
|
153
|
-
if (!prevElement || !nextElement) {
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
if (isFirst) {
|
|
157
|
-
_this.setState({
|
|
158
|
-
isDragging: true,
|
|
159
|
-
dragIndex: index,
|
|
160
|
-
startTime: time,
|
|
161
|
-
originalX: pageX,
|
|
162
|
-
originalY: pageY,
|
|
163
|
-
originalPrevSize: _this.elementSize(prevElement),
|
|
164
|
-
originalNextSize: _this.elementSize(nextElement)
|
|
165
|
-
});
|
|
166
|
-
return;
|
|
167
|
-
}
|
|
168
|
-
var _b = _this.state, originalPrevSize = _b.originalPrevSize, originalNextSize = _b.originalNextSize, startTime = _b.startTime, originalX = _b.originalX, originalY = _b.originalY;
|
|
169
|
-
if (!isFirst && time - startTime < DOUBLE_CLICK_WAIT_TIME) {
|
|
170
|
-
if (isLast) {
|
|
171
|
-
_this.resetDragState();
|
|
172
|
-
}
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
var delta;
|
|
176
|
-
if (_this.orientation === 'vertical') {
|
|
177
|
-
delta = pageY - originalY;
|
|
178
|
-
}
|
|
179
|
-
else if (_this.isRtl) {
|
|
180
|
-
delta = originalX - pageX;
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
delta = pageX - originalX;
|
|
184
|
-
}
|
|
185
|
-
_this.resize(index, index + 1, originalPrevSize, originalNextSize, delta, isLast, event);
|
|
186
|
-
if (isLast) {
|
|
187
|
-
_this.resetDragState();
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
_this.onBarKeyboardResize = function (barElement, index, delta, event) {
|
|
191
|
-
var _a = _this.surroudingPanes(barElement), prevElement = _a.prevElement, nextElement = _a.nextElement;
|
|
192
|
-
var originalPrevSize = _this.elementSize(prevElement);
|
|
193
|
-
var originalNextSize = _this.elementSize(nextElement);
|
|
194
|
-
_this.resize(index, index + 1, originalPrevSize, originalNextSize, delta, true, event);
|
|
195
|
-
};
|
|
196
|
-
_this.containerSize = function () {
|
|
197
|
-
if (!_this._container) {
|
|
198
|
-
return 0;
|
|
199
|
-
}
|
|
200
|
-
return _this.elementSize(_this._container, true);
|
|
201
|
-
};
|
|
202
|
-
_this.panesOptions = function (panesContent) {
|
|
203
|
-
return _this.mapPaneOptions(_this.panes, panesContent);
|
|
204
|
-
};
|
|
205
|
-
_this.elementSize = function (el, isContainer) {
|
|
206
|
-
var sizeType = isContainer ? 'client' : 'offset';
|
|
207
|
-
if (_this.orientation === 'vertical') {
|
|
208
|
-
return el["".concat(sizeType, "Height")];
|
|
209
|
-
}
|
|
210
|
-
else {
|
|
211
|
-
return el["".concat(sizeType, "Width")];
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
_this.clamp = function (min, max, v) { return Math.min(max, Math.max(min, v)); };
|
|
215
|
-
_this.fixedSize = function (size) { return size && size.length > 0; };
|
|
216
|
-
validatePackage(packageMetadata);
|
|
217
|
-
_this.state = {
|
|
218
|
-
isDragging: false,
|
|
219
|
-
dragIndex: undefined,
|
|
220
|
-
startTime: 0,
|
|
221
|
-
originalX: 0,
|
|
222
|
-
originalY: 0,
|
|
223
|
-
originalPrevSize: 0,
|
|
224
|
-
originalNextSize: 0,
|
|
225
|
-
panes: props.defaultPanes || []
|
|
226
|
-
};
|
|
227
|
-
return _this;
|
|
228
|
-
}
|
|
229
|
-
Object.defineProperty(Splitter.prototype, "isControlledState", {
|
|
230
|
-
get: function () {
|
|
231
|
-
return this.props.panes !== undefined;
|
|
232
|
-
},
|
|
233
|
-
enumerable: false,
|
|
234
|
-
configurable: true
|
|
235
|
-
});
|
|
236
|
-
Object.defineProperty(Splitter.prototype, "panes", {
|
|
237
|
-
get: function () {
|
|
238
|
-
return this.panesDuringOnChange !== undefined ?
|
|
239
|
-
this.panesDuringOnChange :
|
|
240
|
-
(this.isControlledState ? this.props.panes : this.state.panes);
|
|
241
|
-
},
|
|
242
|
-
enumerable: false,
|
|
243
|
-
configurable: true
|
|
244
|
-
});
|
|
245
|
-
Object.defineProperty(Splitter.prototype, "orientation", {
|
|
246
|
-
get: function () {
|
|
247
|
-
return this.props.orientation || 'horizontal';
|
|
248
|
-
},
|
|
249
|
-
enumerable: false,
|
|
250
|
-
configurable: true
|
|
251
|
-
});
|
|
252
|
-
Object.defineProperty(Splitter.prototype, "isRtl", {
|
|
253
|
-
get: function () {
|
|
254
|
-
return this._container && (getComputedStyle(this._container).direction === 'rtl') || false;
|
|
255
|
-
},
|
|
256
|
-
enumerable: false,
|
|
257
|
-
configurable: true
|
|
258
|
-
});
|
|
259
|
-
Object.defineProperty(Splitter.prototype, "panesContent", {
|
|
260
|
-
get: function () {
|
|
261
|
-
return React.Children.toArray(this.props.children).filter(function (c) { return c; });
|
|
262
|
-
},
|
|
263
|
-
enumerable: false,
|
|
264
|
-
configurable: true
|
|
265
|
-
});
|
|
266
|
-
/**
|
|
267
|
-
* @hidden
|
|
268
|
-
*/
|
|
269
|
-
Splitter.prototype.render = function () {
|
|
270
|
-
var _this = this;
|
|
271
|
-
var panesContent = this.panesContent;
|
|
272
|
-
var panesOptions = this.panesOptions(panesContent);
|
|
273
|
-
var className = classNames('k-widget', 'k-splitter', 'k-splitter-flex', "k-splitter-".concat(this.orientation), this.props.className);
|
|
274
|
-
this.validatePanes(panesOptions);
|
|
275
|
-
return (React.createElement("div", { style: this.props.style, ref: function (ref) { return _this._container = ref; }, className: className }, this.mapSplitterPanes(panesOptions, panesContent)));
|
|
276
|
-
};
|
|
277
|
-
Splitter.prototype.surroudingPanes = function (barElement) {
|
|
278
|
-
return {
|
|
279
|
-
prevElement: barElement.previousElementSibling,
|
|
280
|
-
nextElement: barElement.nextElementSibling
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
Splitter.prototype.isPercent = function (size) {
|
|
284
|
-
return /%$/.test(size);
|
|
285
|
-
};
|
|
286
|
-
Splitter.prototype.toPixels = function (size, splitterSize) {
|
|
287
|
-
var result = parseInt(size, 10);
|
|
288
|
-
if (this.isPercent(size)) {
|
|
289
|
-
result = (splitterSize * result / 100);
|
|
290
|
-
}
|
|
291
|
-
return result;
|
|
292
|
-
};
|
|
293
|
-
Splitter.prototype.resetDragState = function () {
|
|
294
|
-
this.setState({
|
|
295
|
-
isDragging: false,
|
|
296
|
-
dragIndex: undefined,
|
|
297
|
-
startTime: 0,
|
|
298
|
-
originalX: 0,
|
|
299
|
-
originalY: 0,
|
|
300
|
-
originalPrevSize: 0,
|
|
301
|
-
originalNextSize: 0
|
|
302
|
-
});
|
|
303
|
-
};
|
|
304
|
-
Splitter.prototype.resize = function (prevIndex, nextIndex, originalPrevSize, originalNextSize, delta, isLast, event) {
|
|
305
|
-
var _this = this;
|
|
306
|
-
var panesOptions = this.panesOptions(this.panesContent);
|
|
307
|
-
var prevOptions = panesOptions[prevIndex];
|
|
308
|
-
var nextOptions = panesOptions[nextIndex];
|
|
309
|
-
var total = originalPrevSize + originalNextSize;
|
|
310
|
-
var splitterSize = this.containerSize();
|
|
311
|
-
var px = function (s) { return _this.toPixels(s, splitterSize); };
|
|
312
|
-
var prevDragState = {
|
|
313
|
-
index: prevIndex,
|
|
314
|
-
initialSize: originalPrevSize,
|
|
315
|
-
min: px(prevOptions.min) || total - px(nextOptions.max) || 0,
|
|
316
|
-
max: px(prevOptions.max) || total - px(nextOptions.min) || total
|
|
317
|
-
};
|
|
318
|
-
var nextDragState = {
|
|
319
|
-
index: nextIndex,
|
|
320
|
-
initialSize: originalNextSize,
|
|
321
|
-
min: px(nextOptions.min) || total - px(prevOptions.max) || 0,
|
|
322
|
-
max: px(nextOptions.max) || total - px(prevOptions.min) || total
|
|
323
|
-
};
|
|
324
|
-
var resize = function (paneState, change) {
|
|
325
|
-
var pane = panesOptions[paneState.index];
|
|
326
|
-
var newSize = _this.clamp(paneState.min, paneState.max, paneState.initialSize + change);
|
|
327
|
-
if (_this.isPercent(pane.size || '')) {
|
|
328
|
-
return 100 * newSize / splitterSize + '%';
|
|
329
|
-
}
|
|
330
|
-
else {
|
|
331
|
-
return newSize + 'px';
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
var prevSize;
|
|
335
|
-
var nextSize;
|
|
336
|
-
if (this.fixedSize(prevOptions.size) && this.fixedSize(nextOptions.size)) {
|
|
337
|
-
prevSize = resize(prevDragState, delta);
|
|
338
|
-
nextSize = resize(nextDragState, -delta);
|
|
339
|
-
}
|
|
340
|
-
else if (nextOptions.collapsible || this.fixedSize(nextOptions.size)) {
|
|
341
|
-
nextSize = resize(nextDragState, -delta);
|
|
342
|
-
}
|
|
343
|
-
else {
|
|
344
|
-
prevSize = resize(prevDragState, delta);
|
|
345
|
-
}
|
|
346
|
-
var updatedState = panesOptions.map(function (pane, idx) {
|
|
347
|
-
var paneProps = _this.getPaneProps(pane);
|
|
348
|
-
if (idx === prevIndex) {
|
|
349
|
-
return __assign(__assign({}, paneProps), { size: prevSize });
|
|
350
|
-
}
|
|
351
|
-
else if (idx === nextIndex) {
|
|
352
|
-
return __assign(__assign({}, paneProps), { size: nextSize });
|
|
353
|
-
}
|
|
354
|
-
else {
|
|
355
|
-
return __assign({}, paneProps);
|
|
356
|
-
}
|
|
357
|
-
});
|
|
358
|
-
this.panesDuringOnChange = updatedState;
|
|
359
|
-
if (!this.isControlledState) {
|
|
360
|
-
this.setState({
|
|
361
|
-
panes: updatedState
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
if (this.props.onChange) {
|
|
365
|
-
this.props.onChange({
|
|
366
|
-
newState: updatedState,
|
|
367
|
-
isLast: isLast,
|
|
368
|
-
nativeEvent: event
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
this.panesDuringOnChange = undefined;
|
|
372
|
-
};
|
|
373
|
-
Splitter.prototype.getPaneProps = function (pane) {
|
|
374
|
-
var orientation = pane.orientation, overlay = pane.overlay, containsSplitter = pane.containsSplitter, others = __rest(pane, ["orientation", "overlay", "containsSplitter"]);
|
|
375
|
-
return others;
|
|
376
|
-
};
|
|
377
|
-
/**
|
|
378
|
-
* @hidden
|
|
379
|
-
*/
|
|
380
|
-
Splitter.displayName = 'Splitter';
|
|
381
|
-
return Splitter;
|
|
382
|
-
}(React.Component));
|
|
383
|
-
export { Splitter };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SplitterPaneExtendedProps } from './SplitterPane';
|
|
3
|
-
/**
|
|
4
|
-
* @hidden
|
|
5
|
-
*/
|
|
6
|
-
export interface SplitterBarProps {
|
|
7
|
-
orientation: 'vertical' | 'horizontal';
|
|
8
|
-
index: number;
|
|
9
|
-
prev: SplitterPaneExtendedProps;
|
|
10
|
-
next: SplitterPaneExtendedProps;
|
|
11
|
-
ariaLabel?: string;
|
|
12
|
-
isRtl?: boolean;
|
|
13
|
-
onDrag: (event: any, element: HTMLDivElement, index: number, isFirst: boolean, isLast: boolean) => void;
|
|
14
|
-
onToggle: (index: number, nativeEvent: React.MouseEvent<HTMLDivElement, MouseEvent> | React.KeyboardEvent<HTMLDivElement>) => void;
|
|
15
|
-
onKeyboardResize: (element: HTMLDivElement, index: number, delta: number, nativeEvent: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export interface SplitterBarState {
|
|
21
|
-
focused: boolean;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
export declare class SplitterBar extends React.Component<SplitterBarProps, SplitterBarState> {
|
|
27
|
-
private draggable;
|
|
28
|
-
private get isStatic();
|
|
29
|
-
private get isDraggable();
|
|
30
|
-
private get isHorizontal();
|
|
31
|
-
constructor(props: SplitterBarProps);
|
|
32
|
-
render(): JSX.Element;
|
|
33
|
-
private onDrag;
|
|
34
|
-
private onFocus;
|
|
35
|
-
private onBlur;
|
|
36
|
-
private onToggle;
|
|
37
|
-
private onPrevToggle;
|
|
38
|
-
private onNextToggle;
|
|
39
|
-
private onKeyDown;
|
|
40
|
-
}
|
|
@@ -1,183 +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 { classNames, Draggable, IconWrap, Keys } from '@progress/kendo-react-common';
|
|
18
|
-
import { caretAltRightIcon, caretAltLeftIcon, caretAltDownIcon, caretAltUpIcon } from '@progress/kendo-svg-icons';
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
var SplitterBar = /** @class */ (function (_super) {
|
|
23
|
-
__extends(SplitterBar, _super);
|
|
24
|
-
function SplitterBar(props) {
|
|
25
|
-
var _this = _super.call(this, props) || this;
|
|
26
|
-
_this.draggable = null;
|
|
27
|
-
_this.onDrag = function (data, isFirst, isLast) {
|
|
28
|
-
var event = data.event;
|
|
29
|
-
var _a = _this.props, onDrag = _a.onDrag, index = _a.index;
|
|
30
|
-
var element = _this.draggable && _this.draggable.element;
|
|
31
|
-
if (element && !_this.isStatic && _this.isDraggable) {
|
|
32
|
-
onDrag(event, element, index, isFirst, isLast);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
_this.onFocus = function () {
|
|
36
|
-
_this.setState({
|
|
37
|
-
focused: true
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
_this.onBlur = function () {
|
|
41
|
-
_this.setState({
|
|
42
|
-
focused: false
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
_this.onToggle = function (event) {
|
|
46
|
-
var _a = _this.props, onToggle = _a.onToggle, index = _a.index, prev = _a.prev, next = _a.next;
|
|
47
|
-
if (prev.collapsible || next.collapsible) {
|
|
48
|
-
onToggle(prev.collapsible ? index : index + 1, event);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
_this.onPrevToggle = function (event) {
|
|
52
|
-
var _a = _this.props, onToggle = _a.onToggle, index = _a.index, prev = _a.prev;
|
|
53
|
-
if (prev.collapsible) {
|
|
54
|
-
onToggle(index, event);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
_this.onNextToggle = function (event) {
|
|
58
|
-
var _a = _this.props, onToggle = _a.onToggle, index = _a.index, next = _a.next;
|
|
59
|
-
if (next.collapsible) {
|
|
60
|
-
onToggle(index + 1, event);
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
_this.onKeyDown = function (event) {
|
|
64
|
-
var keyCode = event && event.keyCode;
|
|
65
|
-
var isHorizontal = _this.isHorizontal;
|
|
66
|
-
var index = _this.props.index;
|
|
67
|
-
var element = _this.draggable && _this.draggable.element;
|
|
68
|
-
var onKeyboardResize = function (el, idx, offset) {
|
|
69
|
-
event.preventDefault();
|
|
70
|
-
_this.props.onKeyboardResize(el, idx, offset, event);
|
|
71
|
-
};
|
|
72
|
-
if (!element) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
if (keyCode === Keys.enter) {
|
|
76
|
-
event.preventDefault();
|
|
77
|
-
_this.onToggle(event);
|
|
78
|
-
}
|
|
79
|
-
else if (_this.isDraggable) {
|
|
80
|
-
if (isHorizontal && keyCode === Keys.left) {
|
|
81
|
-
onKeyboardResize(element, index, -10);
|
|
82
|
-
}
|
|
83
|
-
else if (isHorizontal && keyCode === Keys.right) {
|
|
84
|
-
onKeyboardResize(element, index, 10);
|
|
85
|
-
}
|
|
86
|
-
else if (!isHorizontal && keyCode === Keys.up) {
|
|
87
|
-
onKeyboardResize(element, index, -10);
|
|
88
|
-
}
|
|
89
|
-
else if (!isHorizontal && keyCode === Keys.down) {
|
|
90
|
-
onKeyboardResize(element, index, 10);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
_this.state = {
|
|
95
|
-
focused: false
|
|
96
|
-
};
|
|
97
|
-
return _this;
|
|
98
|
-
}
|
|
99
|
-
Object.defineProperty(SplitterBar.prototype, "isStatic", {
|
|
100
|
-
get: function () {
|
|
101
|
-
var _a = this.props, prev = _a.prev, next = _a.next;
|
|
102
|
-
var betweenResizablePanes = prev.resizable && next.resizable;
|
|
103
|
-
var nearCollapsiblePane = prev.collapsible || next.collapsible;
|
|
104
|
-
return !betweenResizablePanes && !nearCollapsiblePane;
|
|
105
|
-
},
|
|
106
|
-
enumerable: false,
|
|
107
|
-
configurable: true
|
|
108
|
-
});
|
|
109
|
-
Object.defineProperty(SplitterBar.prototype, "isDraggable", {
|
|
110
|
-
get: function () {
|
|
111
|
-
var _a = this.props, prev = _a.prev, next = _a.next;
|
|
112
|
-
var betweenResizablePanes = prev.resizable && next.resizable;
|
|
113
|
-
var nearCollapsedPane = prev.collapsed || next.collapsed;
|
|
114
|
-
return !!betweenResizablePanes && !nearCollapsedPane;
|
|
115
|
-
},
|
|
116
|
-
enumerable: false,
|
|
117
|
-
configurable: true
|
|
118
|
-
});
|
|
119
|
-
Object.defineProperty(SplitterBar.prototype, "isHorizontal", {
|
|
120
|
-
get: function () {
|
|
121
|
-
return this.props.orientation === 'horizontal';
|
|
122
|
-
},
|
|
123
|
-
enumerable: false,
|
|
124
|
-
configurable: true
|
|
125
|
-
});
|
|
126
|
-
SplitterBar.prototype.render = function () {
|
|
127
|
-
var _a;
|
|
128
|
-
var _this = this;
|
|
129
|
-
var isDraggable = this.isDraggable;
|
|
130
|
-
var isStatic = this.isStatic;
|
|
131
|
-
var isHorizontal = this.isHorizontal;
|
|
132
|
-
var barClasses = classNames('k-splitbar', (_a = {},
|
|
133
|
-
_a['k-focus'] = this.state.focused,
|
|
134
|
-
_a['k-splitbar-horizontal'] = isHorizontal,
|
|
135
|
-
_a['k-splitbar-vertical'] = !isHorizontal,
|
|
136
|
-
_a['k-splitbar-draggable-horizontal'] = isHorizontal && isDraggable,
|
|
137
|
-
_a['k-splitbar-draggable-vertical'] = !isHorizontal && isDraggable,
|
|
138
|
-
_a['k-splitbar-static-horizontal'] = isHorizontal && isStatic,
|
|
139
|
-
_a['k-splitbar-static-vertical'] = !isHorizontal && isStatic,
|
|
140
|
-
_a));
|
|
141
|
-
return (React.createElement(Draggable, { onPress: function (event) { return _this.onDrag(event, true, false); }, onDrag: function (event) { return _this.onDrag(event, false, false); }, onRelease: function (event) { return _this.onDrag(event, false, true); }, ref: function (component) { _this.draggable = component; } },
|
|
142
|
-
React.createElement("div", { tabIndex: isStatic ? -1 : 0, role: 'separator', "aria-valuenow": 0, "aria-label": this.props.ariaLabel, "aria-orientation": isHorizontal ? 'vertical' : undefined, className: barClasses, style: { touchAction: 'none' }, onFocus: this.onFocus, onBlur: this.onBlur, onDoubleClick: this.onToggle, onKeyDown: this.onKeyDown },
|
|
143
|
-
this.props.prev.collapsible && React.createElement("div", { className: 'k-collapse-prev', onClick: this.onPrevToggle },
|
|
144
|
-
React.createElement(IconWrap, { name: this.props.prev.collapsible
|
|
145
|
-
? isHorizontal
|
|
146
|
-
? this.props.prev.collapsed
|
|
147
|
-
? (this.props.isRtl ? 'caret-alt-left' : 'caret-alt-right')
|
|
148
|
-
: (this.props.isRtl ? 'caret-alt-right' : 'caret-alt-left')
|
|
149
|
-
: this.props.prev.collapsed
|
|
150
|
-
? 'caret-alt-down'
|
|
151
|
-
: 'caret-alt-up'
|
|
152
|
-
: undefined, icon: this.props.prev.collapsible
|
|
153
|
-
? isHorizontal
|
|
154
|
-
? this.props.prev.collapsed
|
|
155
|
-
? (this.props.isRtl ? caretAltLeftIcon : caretAltRightIcon)
|
|
156
|
-
: (this.props.isRtl ? caretAltRightIcon : caretAltLeftIcon)
|
|
157
|
-
: this.props.prev.collapsed
|
|
158
|
-
? caretAltDownIcon
|
|
159
|
-
: caretAltUpIcon
|
|
160
|
-
: undefined, size: 'xsmall' })),
|
|
161
|
-
React.createElement("div", { className: 'k-resize-handle' }),
|
|
162
|
-
this.props.next.collapsible && React.createElement("div", { className: 'k-collapse-next', onClick: this.onNextToggle },
|
|
163
|
-
React.createElement(IconWrap, { name: this.props.next.collapsible
|
|
164
|
-
? isHorizontal
|
|
165
|
-
? this.props.next.collapsed
|
|
166
|
-
? (this.props.isRtl ? 'caret-alt-right' : 'caret-alt-left')
|
|
167
|
-
: (this.props.isRtl ? 'caret-alt-left' : 'caret-alt-right')
|
|
168
|
-
: this.props.next.collapsed
|
|
169
|
-
? 'caret-alt-up'
|
|
170
|
-
: 'caret-alt-down'
|
|
171
|
-
: undefined, icon: this.props.next.collapsible
|
|
172
|
-
? isHorizontal
|
|
173
|
-
? this.props.next.collapsed
|
|
174
|
-
? (this.props.isRtl ? caretAltRightIcon : caretAltLeftIcon)
|
|
175
|
-
: (this.props.isRtl ? caretAltLeftIcon : caretAltRightIcon)
|
|
176
|
-
: this.props.next.collapsed
|
|
177
|
-
? caretAltUpIcon
|
|
178
|
-
: caretAltDownIcon
|
|
179
|
-
: undefined, size: 'xsmall' })))));
|
|
180
|
-
};
|
|
181
|
-
return SplitterBar;
|
|
182
|
-
}(React.Component));
|
|
183
|
-
export { SplitterBar };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the pane options of the Splitter.
|
|
5
|
-
*/
|
|
6
|
-
export interface SplitterPaneProps extends KendoReactComponentBaseProps {
|
|
7
|
-
/**
|
|
8
|
-
* Sets the size of the pane ([see example]({% slug panes_splitter %}#toc-dimensions)). Has to be between the `min` and `max` properties.
|
|
9
|
-
*/
|
|
10
|
-
size?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Sets the minimum possible size of the pane ([see example]({% slug panes_splitter %}#toc-dimensions)).
|
|
13
|
-
*/
|
|
14
|
-
min?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Sets the maximum possible size of the pane ([see example]({% slug panes_splitter %}#toc-dimensions)).
|
|
17
|
-
*/
|
|
18
|
-
max?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Specifies if the user is allowed to resize the pane and provide space for other panes ([see example]({% slug panes_splitter %}#toc-resizing)). If `resizable` is not specified, the resizing of the pane will be enabled.
|
|
21
|
-
*/
|
|
22
|
-
resizable?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Specifies if the user is allowed to hide the pane and provide space for other panes ([see example]({% slug panes_splitter %}#toc-collapsing)).
|
|
25
|
-
*/
|
|
26
|
-
collapsible?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Specifies the pane collapsed state ([see example]({% slug panes_splitter %}#toc-collapsing)).
|
|
29
|
-
*/
|
|
30
|
-
collapsed?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Specifies if overflowing content is scrollable or hidden ([see example]({% slug panes_splitter %}#toc-scrolling)). If `scrollable` is not specified, the content will be scrollable.
|
|
33
|
-
*/
|
|
34
|
-
scrollable?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Specifies if the children of the pane should be mounted when it's in collapsed state.
|
|
37
|
-
*/
|
|
38
|
-
keepMounted?: boolean;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
export interface SplitterPaneExtendedProps extends SplitterPaneProps {
|
|
44
|
-
orientation: 'vertical' | 'horizontal';
|
|
45
|
-
overlay: boolean;
|
|
46
|
-
containsSplitter: boolean;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* @hidden
|
|
50
|
-
*/
|
|
51
|
-
export declare class SplitterPane extends React.Component<SplitterPaneExtendedProps, {}> {
|
|
52
|
-
render(): JSX.Element;
|
|
53
|
-
}
|