@progress/kendo-react-layout 7.2.4-develop.3 → 7.2.4-develop.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actionsheet/ActionSheet.js +8 -0
- package/actionsheet/ActionSheet.mjs +184 -0
- package/actionsheet/ActionSheetContent.js +8 -0
- package/actionsheet/ActionSheetContent.mjs +32 -0
- package/actionsheet/ActionSheetFooter.js +8 -0
- package/actionsheet/ActionSheetFooter.mjs +32 -0
- package/actionsheet/ActionSheetHeader.js +8 -0
- package/actionsheet/ActionSheetHeader.mjs +32 -0
- package/actionsheet/ActionSheetItem.js +8 -0
- package/actionsheet/ActionSheetItem.mjs +52 -0
- package/appbar/AppBar.js +8 -0
- package/appbar/AppBar.mjs +86 -0
- package/appbar/AppBarSection.js +8 -0
- package/appbar/AppBarSection.mjs +47 -0
- package/appbar/AppBarSpacer.js +8 -0
- package/appbar/AppBarSpacer.mjs +55 -0
- package/bottomnavigation/BottomNavigation.js +8 -0
- package/bottomnavigation/BottomNavigation.mjs +160 -0
- package/bottomnavigation/BottomNavigationItem.js +8 -0
- package/bottomnavigation/BottomNavigationItem.mjs +93 -0
- package/bottomnavigation/models/utils.js +8 -0
- package/bottomnavigation/models/utils.mjs +19 -0
- package/breadcrumb/Breadcrumb.js +8 -0
- package/breadcrumb/Breadcrumb.mjs +158 -0
- package/breadcrumb/BreadcrumbDelimiter.js +8 -0
- package/breadcrumb/BreadcrumbDelimiter.mjs +48 -0
- package/breadcrumb/BreadcrumbLink.js +8 -0
- package/breadcrumb/BreadcrumbLink.mjs +82 -0
- package/breadcrumb/BreadcrumbListItem.js +8 -0
- package/breadcrumb/BreadcrumbListItem.mjs +52 -0
- package/breadcrumb/BreadcrumbOrderedList.js +8 -0
- package/breadcrumb/BreadcrumbOrderedList.mjs +67 -0
- package/card/Avatar.js +8 -0
- package/card/Avatar.mjs +53 -0
- package/card/Card.js +8 -0
- package/card/Card.mjs +52 -0
- package/card/CardActions.js +8 -0
- package/card/CardActions.mjs +40 -0
- package/card/CardBody.js +8 -0
- package/card/CardBody.mjs +28 -0
- package/card/CardFooter.js +8 -0
- package/card/CardFooter.mjs +28 -0
- package/card/CardHeader.js +8 -0
- package/card/CardHeader.mjs +28 -0
- package/card/CardImage.js +8 -0
- package/card/CardImage.mjs +36 -0
- package/card/CardSubtitle.js +8 -0
- package/card/CardSubtitle.mjs +28 -0
- package/card/CardTitle.js +8 -0
- package/card/CardTitle.mjs +28 -0
- package/card/interfaces/Enums.js +8 -0
- package/card/interfaces/Enums.mjs +15 -0
- package/contextmenu/ContextMenu.js +8 -0
- package/contextmenu/ContextMenu.mjs +48 -0
- package/dist/cdn/js/kendo-react-layout.js +8 -5
- package/drawer/Drawer.js +8 -0
- package/drawer/Drawer.mjs +130 -0
- package/drawer/DrawerContent.js +8 -0
- package/drawer/DrawerContent.mjs +33 -0
- package/drawer/DrawerItem.js +8 -0
- package/drawer/DrawerItem.mjs +89 -0
- package/drawer/DrawerNavigation.js +8 -0
- package/drawer/DrawerNavigation.mjs +132 -0
- package/drawer/context/DrawerContext.js +8 -0
- package/drawer/context/DrawerContext.mjs +22 -0
- package/expansionpanel/ExpansionPanel.js +8 -0
- package/expansionpanel/ExpansionPanel.mjs +116 -0
- package/expansionpanel/ExpansionPanelContent.js +8 -0
- package/expansionpanel/ExpansionPanelContent.mjs +23 -0
- package/gridlayout/GridLayout.js +8 -0
- package/gridlayout/GridLayout.mjs +83 -0
- package/gridlayout/GridLayoutItem.js +8 -0
- package/gridlayout/GridLayoutItem.mjs +46 -0
- package/index.d.mts +4593 -5
- package/index.d.ts +4593 -103
- package/index.js +8 -5
- package/index.mjs +139 -5037
- package/menu/components/Menu.js +8 -0
- package/menu/components/Menu.mjs +193 -0
- package/menu/components/MenuItem.js +8 -0
- package/menu/components/MenuItem.mjs +34 -0
- package/menu/components/MenuItemArrow.js +8 -0
- package/menu/components/MenuItemArrow.mjs +49 -0
- package/menu/components/MenuItemInternal.js +8 -0
- package/menu/components/MenuItemInternal.mjs +222 -0
- package/menu/components/MenuItemLink.js +8 -0
- package/menu/components/MenuItemLink.mjs +54 -0
- package/menu/consts.js +8 -0
- package/menu/consts.mjs +59 -0
- package/menu/utils/DirectionHolder.js +8 -0
- package/menu/utils/DirectionHolder.mjs +25 -0
- package/menu/utils/MouseOverHandler.js +8 -0
- package/menu/utils/MouseOverHandler.mjs +34 -0
- package/menu/utils/getNewItemIdUponKeyboardNavigation.js +8 -0
- package/menu/utils/getNewItemIdUponKeyboardNavigation.mjs +124 -0
- package/menu/utils/hoverDelay.js +8 -0
- package/menu/utils/hoverDelay.mjs +18 -0
- package/menu/utils/itemsIdsUtils.js +8 -0
- package/menu/utils/itemsIdsUtils.mjs +81 -0
- package/menu/utils/misc.js +8 -0
- package/menu/utils/misc.mjs +29 -0
- package/menu/utils/prepareInputItemsForInternalWork.js +8 -0
- package/menu/utils/prepareInputItemsForInternalWork.mjs +59 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +6 -6
- package/panelbar/PanelBar.js +8 -0
- package/panelbar/PanelBar.mjs +195 -0
- package/panelbar/PanelBarItem.js +8 -0
- package/panelbar/PanelBarItem.mjs +148 -0
- package/panelbar/interfaces/NavigationAction.js +8 -0
- package/panelbar/interfaces/NavigationAction.mjs +12 -0
- package/panelbar/util.js +8 -0
- package/panelbar/util.mjs +122 -0
- package/splitter/Splitter.js +8 -0
- package/splitter/Splitter.mjs +238 -0
- package/splitter/SplitterBar.js +8 -0
- package/splitter/SplitterBar.mjs +129 -0
- package/splitter/SplitterPane.js +8 -0
- package/splitter/SplitterPane.mjs +50 -0
- package/splitter/messages/index.js +8 -0
- package/splitter/messages/index.mjs +15 -0
- package/stacklayout/StackLayout.js +8 -0
- package/stacklayout/StackLayout.mjs +84 -0
- package/stepper/Step.js +8 -0
- package/stepper/Step.mjs +177 -0
- package/stepper/Stepper.js +8 -0
- package/stepper/Stepper.mjs +252 -0
- package/stepper/contants.js +8 -0
- package/stepper/contants.mjs +13 -0
- package/stepper/context/StepperContext.js +8 -0
- package/stepper/context/StepperContext.mjs +17 -0
- package/stepper/messages/index.js +8 -0
- package/stepper/messages/index.mjs +17 -0
- package/tabstrip/TabStrip.js +8 -0
- package/tabstrip/TabStrip.mjs +163 -0
- package/tabstrip/TabStripContent.js +8 -0
- package/tabstrip/TabStripContent.mjs +81 -0
- package/tabstrip/TabStripNavigation.js +8 -0
- package/tabstrip/TabStripNavigation.mjs +171 -0
- package/tabstrip/TabStripNavigationItem.js +8 -0
- package/tabstrip/TabStripNavigationItem.mjs +55 -0
- package/tabstrip/TabStripTab.js +8 -0
- package/tabstrip/TabStripTab.mjs +35 -0
- package/tilelayout/InternalTile.js +8 -0
- package/tilelayout/InternalTile.mjs +203 -0
- package/tilelayout/ResizeHandlers.js +8 -0
- package/tilelayout/ResizeHandlers.mjs +53 -0
- package/tilelayout/TileLayout.js +8 -0
- package/tilelayout/TileLayout.mjs +122 -0
- package/timeline/Timeline.js +8 -0
- package/timeline/Timeline.mjs +79 -0
- package/timeline/TimelineCard.js +8 -0
- package/timeline/TimelineCard.mjs +109 -0
- package/timeline/TimelineHorizontal.js +8 -0
- package/timeline/TimelineHorizontal.mjs +239 -0
- package/timeline/TimelineVertical.js +8 -0
- package/timeline/TimelineVertical.mjs +78 -0
- package/timeline/utils.js +8 -0
- package/timeline/utils.mjs +16 -0
- package/actionsheet/ActionSheet.d.ts +0 -138
- package/actionsheet/ActionSheetContent.d.ts +0 -14
- package/actionsheet/ActionSheetFooter.d.ts +0 -14
- package/actionsheet/ActionSheetHeader.d.ts +0 -14
- package/actionsheet/ActionSheetItem.d.ts +0 -10
- package/actionsheet/interfaces/ActionSheetChildrenProps.d.ts +0 -17
- package/actionsheet/interfaces/ActionSheetItemProps.d.ts +0 -70
- package/appbar/AppBar.d.ts +0 -54
- package/appbar/AppBarSection.d.ts +0 -53
- package/appbar/AppBarSpacer.d.ts +0 -54
- package/appbar/interfaces/AppBarProps.d.ts +0 -83
- package/appbar/interfaces/AppBarSectionProps.d.ts +0 -22
- package/appbar/interfaces/AppBarSpacerProps.d.ts +0 -23
- package/bottomnavigation/BottomNavigation.d.ts +0 -42
- package/bottomnavigation/BottomNavigationItem.d.ts +0 -16
- package/bottomnavigation/BottomNavigationItemProps.d.ts +0 -64
- package/bottomnavigation/BottomNavigationProps.d.ts +0 -157
- package/bottomnavigation/models/events.d.ts +0 -24
- package/bottomnavigation/models/utils.d.ts +0 -40
- package/breadcrumb/Breadcrumb.d.ts +0 -163
- package/breadcrumb/BreadcrumbDelimiter.d.ts +0 -47
- package/breadcrumb/BreadcrumbLink.d.ts +0 -135
- package/breadcrumb/BreadcrumbListItem.d.ts +0 -55
- package/breadcrumb/BreadcrumbOrderedList.d.ts +0 -59
- package/card/Avatar.d.ts +0 -7
- package/card/Card.d.ts +0 -8
- package/card/CardActions.d.ts +0 -7
- package/card/CardBody.d.ts +0 -7
- package/card/CardFooter.d.ts +0 -7
- package/card/CardHeader.d.ts +0 -7
- package/card/CardImage.d.ts +0 -7
- package/card/CardSubtitle.d.ts +0 -7
- package/card/CardTitle.d.ts +0 -7
- package/card/interfaces/AvatarProps.d.ts +0 -88
- package/card/interfaces/CardActionsProps.d.ts +0 -38
- package/card/interfaces/CardBodyProps.d.ts +0 -18
- package/card/interfaces/CardFooterProps.d.ts +0 -18
- package/card/interfaces/CardHandle.d.ts +0 -18
- package/card/interfaces/CardHeaderProps.d.ts +0 -18
- package/card/interfaces/CardImageProps.d.ts +0 -22
- package/card/interfaces/CardProps.d.ts +0 -48
- package/card/interfaces/CardSubtitleProps.d.ts +0 -18
- package/card/interfaces/CardTitleProps.d.ts +0 -18
- package/card/interfaces/Enums.d.ts +0 -27
- package/contextmenu/ContextMenu.d.ts +0 -31
- package/drawer/Drawer.d.ts +0 -44
- package/drawer/DrawerContent.d.ts +0 -43
- package/drawer/DrawerItem.d.ts +0 -36
- package/drawer/DrawerNavigation.d.ts +0 -47
- package/drawer/context/DrawerContext.d.ts +0 -24
- package/drawer/interfaces/DrawerAnimation.d.ts +0 -18
- package/drawer/interfaces/DrawerContentProps.d.ts +0 -21
- package/drawer/interfaces/DrawerItemHandle.d.ts +0 -21
- package/drawer/interfaces/DrawerItemProps.d.ts +0 -64
- package/drawer/interfaces/DrawerNavigationProps.d.ts +0 -21
- package/drawer/interfaces/DrawerProps.d.ts +0 -86
- package/drawer/interfaces/DrawerSelectEvent.d.ts +0 -19
- package/expansionpanel/ExpansionPanel.d.ts +0 -10
- package/expansionpanel/ExpansionPanelContent.d.ts +0 -9
- package/expansionpanel/index.d.ts +0 -7
- package/expansionpanel/interfaces.d.ts +0 -92
- package/gridlayout/GridLayout.d.ts +0 -43
- package/gridlayout/GridLayoutItem.d.ts +0 -42
- package/gridlayout/interfaces/GridLayoutColumnProps.d.ts +0 -13
- package/gridlayout/interfaces/GridLayoutItemProps.d.ts +0 -44
- package/gridlayout/interfaces/GridLayoutProps.d.ts +0 -99
- package/gridlayout/interfaces/GridLayoutRowProps.d.ts +0 -13
- package/menu/BaseMenuItemInternalProps.d.ts +0 -24
- package/menu/MenuProps.d.ts +0 -75
- package/menu/components/Menu.d.ts +0 -118
- package/menu/components/MenuItem.d.ts +0 -33
- package/menu/components/MenuItemArrow.d.ts +0 -50
- package/menu/components/MenuItemInternal.d.ts +0 -63
- package/menu/components/MenuItemLink.d.ts +0 -34
- package/menu/consts.d.ts +0 -58
- package/menu/events.d.ts +0 -20
- package/menu/models/BaseMenuItem.d.ts +0 -58
- package/menu/models/MenuItemModel.d.ts +0 -23
- package/menu/utils/DirectionHolder.d.ts +0 -15
- package/menu/utils/MouseOverHandler.d.ts +0 -21
- package/menu/utils/getNewItemIdUponKeyboardNavigation.d.ts +0 -11
- package/menu/utils/hoverDelay.d.ts +0 -13
- package/menu/utils/itemsIdsUtils.d.ts +0 -68
- package/menu/utils/misc.d.ts +0 -20
- package/menu/utils/prepareInputItemsForInternalWork.d.ts +0 -10
- package/package-metadata.d.ts +0 -9
- package/panelbar/PanelBar.d.ts +0 -81
- package/panelbar/PanelBarItem.d.ts +0 -52
- package/panelbar/interfaces/NavigationAction.d.ts +0 -12
- package/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +0 -12
- package/panelbar/interfaces/PanelBarItemProps.d.ts +0 -98
- package/panelbar/interfaces/PanelBarProps.d.ts +0 -66
- package/panelbar/interfaces/PanelBarSelectEventArguments.d.ts +0 -18
- package/panelbar/interfaces/RenderPanelBarItem.d.ts +0 -19
- package/panelbar/util.d.ts +0 -56
- package/splitter/Splitter.d.ts +0 -136
- package/splitter/SplitterBar.d.ts +0 -44
- package/splitter/SplitterPane.d.ts +0 -57
- package/splitter/messages/index.d.ts +0 -14
- package/stacklayout/StackLayout.d.ts +0 -41
- package/stacklayout/StackLayoutProps.d.ts +0 -92
- package/stepper/Step.d.ts +0 -27
- package/stepper/Stepper.d.ts +0 -27
- package/stepper/contants.d.ts +0 -12
- package/stepper/context/StepperContext.d.ts +0 -27
- package/stepper/interfaces/StepChangeEvent.d.ts +0 -15
- package/stepper/interfaces/StepFocusEvent.d.ts +0 -11
- package/stepper/interfaces/StepHandle.d.ts +0 -17
- package/stepper/interfaces/StepProps.d.ts +0 -83
- package/stepper/interfaces/StepperChangeEvent.d.ts +0 -15
- package/stepper/interfaces/StepperFocusEvent.d.ts +0 -11
- package/stepper/interfaces/StepperHandle.d.ts +0 -17
- package/stepper/interfaces/StepperProps.d.ts +0 -98
- package/stepper/messages/index.d.ts +0 -19
- package/tabstrip/TabStrip.d.ts +0 -158
- package/tabstrip/TabStripContent.d.ts +0 -62
- package/tabstrip/TabStripNavigation.d.ts +0 -110
- package/tabstrip/TabStripNavigationItem.d.ts +0 -75
- package/tabstrip/TabStripTab.d.ts +0 -42
- package/tilelayout/InternalTile.d.ts +0 -94
- package/tilelayout/ResizeHandlers.d.ts +0 -24
- package/tilelayout/TileLayout.d.ts +0 -153
- package/tilelayout/interfaces/index.d.ts +0 -145
- package/timeline/Timeline.d.ts +0 -102
- package/timeline/TimelineCard.d.ts +0 -38
- package/timeline/TimelineHorizontal.d.ts +0 -7
- package/timeline/TimelineVertical.d.ts +0 -16
- package/timeline/utils.d.ts +0 -19
package/menu/consts.mjs
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
const o = {
|
|
10
|
+
vertical: "top",
|
|
11
|
+
horizontal: "left"
|
|
12
|
+
}, t = {
|
|
13
|
+
vertical: "top",
|
|
14
|
+
horizontal: "right"
|
|
15
|
+
}, i = {
|
|
16
|
+
vertical: "flip",
|
|
17
|
+
horizontal: "fit"
|
|
18
|
+
}, l = {
|
|
19
|
+
vertical: "fit",
|
|
20
|
+
horizontal: "flip"
|
|
21
|
+
}, n = {
|
|
22
|
+
downward: {
|
|
23
|
+
anchorAlign: {
|
|
24
|
+
vertical: "bottom",
|
|
25
|
+
horizontal: "right"
|
|
26
|
+
},
|
|
27
|
+
popupAlign: t,
|
|
28
|
+
collision: i
|
|
29
|
+
},
|
|
30
|
+
leftward: {
|
|
31
|
+
anchorAlign: {
|
|
32
|
+
vertical: "top",
|
|
33
|
+
horizontal: "left"
|
|
34
|
+
},
|
|
35
|
+
popupAlign: t,
|
|
36
|
+
collision: l
|
|
37
|
+
}
|
|
38
|
+
}, r = {
|
|
39
|
+
downward: {
|
|
40
|
+
anchorAlign: {
|
|
41
|
+
vertical: "bottom",
|
|
42
|
+
horizontal: "left"
|
|
43
|
+
},
|
|
44
|
+
popupAlign: o,
|
|
45
|
+
collision: i
|
|
46
|
+
},
|
|
47
|
+
rightward: {
|
|
48
|
+
anchorAlign: {
|
|
49
|
+
vertical: "top",
|
|
50
|
+
horizontal: "right"
|
|
51
|
+
},
|
|
52
|
+
popupAlign: o,
|
|
53
|
+
collision: l
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
r as POPUP_SETTINGS,
|
|
58
|
+
n as POPUP_SETTINGS_RTL
|
|
59
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class e{constructor(){this.phase="Initialized"}getIsDirectionRightToLeft(){return this.isDirectionRightToLeft}setIsDirectionRightToLeft(i){this.phase=this.phase==="NotInitialized"?"Initialized":"NewValueReceived",this.previousIsDirectionRightToLeft=this.isDirectionRightToLeft,this.isDirectionRightToLeft=i}hasDirectionChanged(){return this.phase==="NewValueReceived"?this.previousIsDirectionRightToLeft!==this.isDirectionRightToLeft:!1}}exports.DirectionHolder=e;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
class e {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.phase = "Initialized";
|
|
12
|
+
}
|
|
13
|
+
getIsDirectionRightToLeft() {
|
|
14
|
+
return this.isDirectionRightToLeft;
|
|
15
|
+
}
|
|
16
|
+
setIsDirectionRightToLeft(i) {
|
|
17
|
+
this.phase = this.phase === "NotInitialized" ? "Initialized" : "NewValueReceived", this.previousIsDirectionRightToLeft = this.isDirectionRightToLeft, this.isDirectionRightToLeft = i;
|
|
18
|
+
}
|
|
19
|
+
hasDirectionChanged() {
|
|
20
|
+
return this.phase === "NewValueReceived" ? this.previousIsDirectionRightToLeft !== this.isDirectionRightToLeft : !1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
e as DirectionHolder
|
|
25
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class i{constructor(e,s,t){this.openOnClick=e,this.resetMenu=s,this.openItem=t,this.mouseDown=!1,this.openOnClick=e,this.isMouseOverEnabled=!e}set OpenOnClick(e){!!e!=!!this.openOnClick&&(this.mouseDown=!1,this.isMouseOverEnabled=!e),this.openOnClick=e}handleItemSelectedViaKeyboard(){this.openOnClick&&(this.isMouseOverEnabled=!1,this.resetMenu())}get IsMouseOverEnabled(){return this.isMouseOverEnabled}handleItemMouseDown(){this.mouseDown=!0}handleItemFocus(){this.openOnClick&&!this.mouseDown&&(this.isMouseOverEnabled=!0),this.mouseDown=!1}handleItemClick(e,s){this.openOnClick&&(this.isMouseOverEnabled?s&&(this.isMouseOverEnabled=!1,this.resetMenu()):(this.isMouseOverEnabled=!0,this.openItem(e)))}}exports.MouseOverHandler=i;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
class n {
|
|
10
|
+
constructor(e, s, i) {
|
|
11
|
+
this.openOnClick = e, this.resetMenu = s, this.openItem = i, this.mouseDown = !1, this.openOnClick = e, this.isMouseOverEnabled = !e;
|
|
12
|
+
}
|
|
13
|
+
set OpenOnClick(e) {
|
|
14
|
+
!!e != !!this.openOnClick && (this.mouseDown = !1, this.isMouseOverEnabled = !e), this.openOnClick = e;
|
|
15
|
+
}
|
|
16
|
+
handleItemSelectedViaKeyboard() {
|
|
17
|
+
this.openOnClick && (this.isMouseOverEnabled = !1, this.resetMenu());
|
|
18
|
+
}
|
|
19
|
+
get IsMouseOverEnabled() {
|
|
20
|
+
return this.isMouseOverEnabled;
|
|
21
|
+
}
|
|
22
|
+
handleItemMouseDown() {
|
|
23
|
+
this.mouseDown = !0;
|
|
24
|
+
}
|
|
25
|
+
handleItemFocus() {
|
|
26
|
+
this.openOnClick && !this.mouseDown && (this.isMouseOverEnabled = !0), this.mouseDown = !1;
|
|
27
|
+
}
|
|
28
|
+
handleItemClick(e, s) {
|
|
29
|
+
this.openOnClick && (this.isMouseOverEnabled ? s && (this.isMouseOverEnabled = !1, this.resetMenu()) : (this.isMouseOverEnabled = !0, this.openItem(e)));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
n as MouseOverHandler
|
|
34
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@progress/kendo-react-common"),n=require("./itemsIdsUtils.js"),A=/\S/;function M(g,e,P,y,a,u){const Z=l();switch(P){case i.Keys.left:return E();case i.Keys.right:return w();case i.Keys.up:return O();case i.Keys.down:return N();case i.Keys.enter:case i.Keys.space:return R();case i.Keys.home:return D();case i.Keys.end:return G();case i.Keys.esc:return H();default:return q()?B():e}function E(){return a?u?v():S():u?p():b()}function w(){return a?u?S():v():u?b():p()}function N(){return a?s():n.isIdZeroLevel(e)?d():s()}function O(){return a?c():n.isIdZeroLevel(e)?L():c()}function R(){return Z.disabled?e:f()?n.getFirstChildId(e):n.getRootParentId(e)}function D(){return K()[0].id}function G(){const t=K();return t[t.length-1].id}function H(){return n.isIdZeroLevel(e)?e:n.getDirectParentId(e)}function B(){const t=y.toLowerCase(),r=K(),o=Number(n.getShortId(e)),h=r.slice(o+1).concat(r.slice(0,o+1)).find(z=>(z.text||"").toLowerCase().startsWith(t));return h?h.id:e}function b(){return n.isIdZeroLevel(e)?c():n.isIdFirstLevel(e)?d(c(n.getRootParentId(e))):n.getDirectParentId(e)}function S(){return n.isIdZeroLevel(e)?L():n.getDirectParentId(e)}function p(){return n.isIdZeroLevel(e)?s():d(f()?e:s(n.getRootParentId(e)))}function v(){return d(n.isIdZeroLevel(e)||f()?e:s(n.getRootParentId(e)))}function d(t){return U(!0,t)}function L(t){return U(!1,t)}function q(){return y.length===1&&A.test(y)}function l(t,r){return t===void 0&&(t=e),r===void 0&&(r=g),n.getItemById(t,r)}function f(t){return l(t).items.length>0}function c(t){return C(!1,t)}function s(t){return C(!0,t)}function x(t){const r=l(t).items;return r[r.length-1].id}function K(){return n.isIdZeroLevel(e)?g:l(n.getDirectParentId(e),g).items}function U(t,r){r===void 0&&(r=e);const o=l(r);return f(r)&&!o.disabled?t?n.getFirstChildId(r):x(r):r}function C(t,r){if(r===void 0&&(r=e),n.isIdZeroLevel(r))return n.getDirectSiblingIdForLevelZero(t,r,g.length);{const o=n.getDirectParentId(r),F=n.getShortId(r),h=l(o).items.length;return n.createId(n.getDirectSiblingIdForLevelZero(t,F,h),o)}}}exports.getNewItemIdUponKeyboardNavigation=M;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { Keys as r } from "@progress/kendo-react-common";
|
|
10
|
+
import { isIdZeroLevel as i, getFirstChildId as N, getRootParentId as b, getDirectParentId as f, getShortId as O, isIdFirstLevel as q, getItemById as D, getDirectSiblingIdForLevelZero as P, createId as J } from "./itemsIdsUtils.mjs";
|
|
11
|
+
const Q = /\S/;
|
|
12
|
+
function V(a, n, G, S, g, s) {
|
|
13
|
+
const H = l();
|
|
14
|
+
switch (G) {
|
|
15
|
+
case r.left:
|
|
16
|
+
return x();
|
|
17
|
+
case r.right:
|
|
18
|
+
return B();
|
|
19
|
+
case r.up:
|
|
20
|
+
return A();
|
|
21
|
+
case r.down:
|
|
22
|
+
return z();
|
|
23
|
+
case r.enter:
|
|
24
|
+
case r.space:
|
|
25
|
+
return R();
|
|
26
|
+
case r.home:
|
|
27
|
+
return W();
|
|
28
|
+
case r.end:
|
|
29
|
+
return Z();
|
|
30
|
+
case r.esc:
|
|
31
|
+
return _();
|
|
32
|
+
default:
|
|
33
|
+
return X() ? M() : n;
|
|
34
|
+
}
|
|
35
|
+
function x() {
|
|
36
|
+
return g ? s ? F() : U() : s ? C() : K();
|
|
37
|
+
}
|
|
38
|
+
function B() {
|
|
39
|
+
return g ? s ? U() : F() : s ? K() : C();
|
|
40
|
+
}
|
|
41
|
+
function z() {
|
|
42
|
+
return g ? u() : i(n) ? c() : u();
|
|
43
|
+
}
|
|
44
|
+
function A() {
|
|
45
|
+
return g ? h() : i(n) ? E() : h();
|
|
46
|
+
}
|
|
47
|
+
function R() {
|
|
48
|
+
return H.disabled ? n : d() ? N(n) : b(n);
|
|
49
|
+
}
|
|
50
|
+
function W() {
|
|
51
|
+
return y()[0].id;
|
|
52
|
+
}
|
|
53
|
+
function Z() {
|
|
54
|
+
const e = y();
|
|
55
|
+
return e[e.length - 1].id;
|
|
56
|
+
}
|
|
57
|
+
function _() {
|
|
58
|
+
return i(n) ? n : f(n);
|
|
59
|
+
}
|
|
60
|
+
function M() {
|
|
61
|
+
const e = S.toLowerCase(), t = y(), o = Number(O(n)), p = t.slice(o + 1).concat(t.slice(0, o + 1)).find((j) => (j.text || "").toLowerCase().startsWith(e));
|
|
62
|
+
return p ? p.id : n;
|
|
63
|
+
}
|
|
64
|
+
function K() {
|
|
65
|
+
return i(n) ? h() : q(n) ? c(h(b(n))) : f(n);
|
|
66
|
+
}
|
|
67
|
+
function U() {
|
|
68
|
+
return i(n) ? E() : f(n);
|
|
69
|
+
}
|
|
70
|
+
function C() {
|
|
71
|
+
return i(n) ? u() : c(
|
|
72
|
+
d() ? n : u(b(n))
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
function F() {
|
|
76
|
+
return c(
|
|
77
|
+
i(n) || d() ? n : u(b(n))
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
function c(e) {
|
|
81
|
+
return v(!0, e);
|
|
82
|
+
}
|
|
83
|
+
function E(e) {
|
|
84
|
+
return v(!1, e);
|
|
85
|
+
}
|
|
86
|
+
function X() {
|
|
87
|
+
return S.length === 1 && Q.test(S);
|
|
88
|
+
}
|
|
89
|
+
function l(e, t) {
|
|
90
|
+
return e === void 0 && (e = n), t === void 0 && (t = a), D(e, t);
|
|
91
|
+
}
|
|
92
|
+
function d(e) {
|
|
93
|
+
return l(e).items.length > 0;
|
|
94
|
+
}
|
|
95
|
+
function h(e) {
|
|
96
|
+
return L(!1, e);
|
|
97
|
+
}
|
|
98
|
+
function u(e) {
|
|
99
|
+
return L(!0, e);
|
|
100
|
+
}
|
|
101
|
+
function $(e) {
|
|
102
|
+
const t = l(e).items;
|
|
103
|
+
return t[t.length - 1].id;
|
|
104
|
+
}
|
|
105
|
+
function y() {
|
|
106
|
+
return i(n) ? a : l(f(n), a).items;
|
|
107
|
+
}
|
|
108
|
+
function v(e, t) {
|
|
109
|
+
t === void 0 && (t = n);
|
|
110
|
+
const o = l(t);
|
|
111
|
+
return d(t) && !o.disabled ? e ? N(t) : $(t) : t;
|
|
112
|
+
}
|
|
113
|
+
function L(e, t) {
|
|
114
|
+
if (t === void 0 && (t = n), i(t))
|
|
115
|
+
return P(e, t, a.length);
|
|
116
|
+
{
|
|
117
|
+
const o = f(t), w = O(t), p = l(o).items.length;
|
|
118
|
+
return J(P(e, w, p), o);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
export {
|
|
123
|
+
V as getNewItemIdUponKeyboardNavigation
|
|
124
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function l(e){return e.hoverOpenDelay!==void 0?e.hoverOpenDelay:e.openOnClick?0:100}function o(e){return e.hoverCloseDelay!==void 0?e.hoverCloseDelay:100}exports.getHoverCloseDelay=o;exports.getHoverOpenDelay=l;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
function n(e) {
|
|
10
|
+
return e.hoverOpenDelay !== void 0 ? e.hoverOpenDelay : e.openOnClick ? 0 : 100;
|
|
11
|
+
}
|
|
12
|
+
function l(e) {
|
|
13
|
+
return e.hoverCloseDelay !== void 0 ? e.hoverCloseDelay : 100;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
l as getHoverCloseDelay,
|
|
17
|
+
n as getHoverOpenDelay
|
|
18
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o="",s="0",r="_";function c(t,e){if(u(t))return e[Number(t)];{const n=e[Number(g(t))];return n.items?c(l(t),n.items):void 0}}function g(t){return i(t)?t:t.split(r)[0]}function l(t){if(i(t))return t;{const e=t.indexOf(r);return t.substring(e+1)}}function S(t){return f("0",t)}function E(t,e){return e.indexOf(t)===0?e.length===t.length||e.charAt(t.length)===r:!1}function f(t,e){return e?e+r+t:t}function O(t){const e=t.lastIndexOf(r);return e<0?o:t.substring(0,e)}function i(t){return t===o||t.indexOf(r)<0}function u(t){return t!==o&&t.indexOf(r)<0}function b(t){return P(t)===1}function d(t){return a(t)===s}function a(t){const e=t.lastIndexOf(r);return e<0?t:t.substring(e+1)}function L(t,e,n){return u(e)?t?Number(e)<n-1?(Number(e)+1).toString():"0":Number(e)>0?(Number(e)-1).toString():(n-1).toString():e}function P(t){return t.split(r).length-1}exports.EMPTY_ID=o;exports.SEPARATOR=r;exports.ZERO_LEVEL_ZERO_ITEM_ID=s;exports.createId=f;exports.getDirectParentId=O;exports.getDirectSiblingIdForLevelZero=L;exports.getFirstChildId=S;exports.getIdWithoutRootParentId=l;exports.getItemById=c;exports.getRootParentId=g;exports.getShortId=a;exports.isFirstItemFromSiblings=d;exports.isIdEmptyOrZeroLevel=i;exports.isIdFirstLevel=b;exports.isIdZeroLevel=u;exports.shouldOpenItem=E;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
const u = "", c = "0", t = "_";
|
|
10
|
+
function s(n, r) {
|
|
11
|
+
if (i(n))
|
|
12
|
+
return r[Number(n)];
|
|
13
|
+
{
|
|
14
|
+
const e = r[Number(f(n))];
|
|
15
|
+
return e.items ? s(g(n), e.items) : void 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function f(n) {
|
|
19
|
+
return o(n) ? n : n.split(t)[0];
|
|
20
|
+
}
|
|
21
|
+
function g(n) {
|
|
22
|
+
if (o(n))
|
|
23
|
+
return n;
|
|
24
|
+
{
|
|
25
|
+
const r = n.indexOf(t);
|
|
26
|
+
return n.substring(r + 1);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function b(n) {
|
|
30
|
+
return l("0", n);
|
|
31
|
+
}
|
|
32
|
+
function x(n, r) {
|
|
33
|
+
return r.indexOf(n) === 0 ? r.length === n.length || r.charAt(n.length) === t : !1;
|
|
34
|
+
}
|
|
35
|
+
function l(n, r) {
|
|
36
|
+
return r ? r + t + n : n;
|
|
37
|
+
}
|
|
38
|
+
function O(n) {
|
|
39
|
+
const r = n.lastIndexOf(t);
|
|
40
|
+
return r < 0 ? u : n.substring(0, r);
|
|
41
|
+
}
|
|
42
|
+
function o(n) {
|
|
43
|
+
return n === u || n.indexOf(t) < 0;
|
|
44
|
+
}
|
|
45
|
+
function i(n) {
|
|
46
|
+
return n !== u && n.indexOf(t) < 0;
|
|
47
|
+
}
|
|
48
|
+
function E(n) {
|
|
49
|
+
return S(n) === 1;
|
|
50
|
+
}
|
|
51
|
+
function p(n) {
|
|
52
|
+
return a(n) === c;
|
|
53
|
+
}
|
|
54
|
+
function a(n) {
|
|
55
|
+
const r = n.lastIndexOf(t);
|
|
56
|
+
return r < 0 ? n : n.substring(r + 1);
|
|
57
|
+
}
|
|
58
|
+
function L(n, r, e) {
|
|
59
|
+
return i(r) ? n ? Number(r) < e - 1 ? (Number(r) + 1).toString() : "0" : Number(r) > 0 ? (Number(r) - 1).toString() : (e - 1).toString() : r;
|
|
60
|
+
}
|
|
61
|
+
function S(n) {
|
|
62
|
+
return n.split(t).length - 1;
|
|
63
|
+
}
|
|
64
|
+
export {
|
|
65
|
+
u as EMPTY_ID,
|
|
66
|
+
t as SEPARATOR,
|
|
67
|
+
c as ZERO_LEVEL_ZERO_ITEM_ID,
|
|
68
|
+
l as createId,
|
|
69
|
+
O as getDirectParentId,
|
|
70
|
+
L as getDirectSiblingIdForLevelZero,
|
|
71
|
+
b as getFirstChildId,
|
|
72
|
+
g as getIdWithoutRootParentId,
|
|
73
|
+
s as getItemById,
|
|
74
|
+
f as getRootParentId,
|
|
75
|
+
a as getShortId,
|
|
76
|
+
p as isFirstItemFromSiblings,
|
|
77
|
+
o as isIdEmptyOrZeroLevel,
|
|
78
|
+
E as isIdFirstLevel,
|
|
79
|
+
i as isIdZeroLevel,
|
|
80
|
+
x as shouldOpenItem
|
|
81
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../consts.js"),d=require("./itemsIdsUtils.js");function l(e,t,r){const o=i(e,t,r);return r?o==="downward"?n.POPUP_SETTINGS_RTL.downward:n.POPUP_SETTINGS_RTL.leftward:o==="downward"?n.POPUP_SETTINGS.downward:n.POPUP_SETTINGS.rightward}function i(e,t,r){return d.isIdZeroLevel(e)?t?r?"leftward":"rightward":"downward":r?"leftward":"rightward"}function u(e){return e?"rtl":"ltr"}function s(e,t){return`${e}_${t}`}exports.convertBoolDirectionToString=u;exports.getChildrenPosition=i;exports.getDOMElementId=s;exports.getPopupSettings=l;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { POPUP_SETTINGS_RTL as o, POPUP_SETTINGS as d } from "../consts.mjs";
|
|
10
|
+
import { isIdZeroLevel as i } from "./itemsIdsUtils.mjs";
|
|
11
|
+
function a(r, n, t) {
|
|
12
|
+
const e = w(r, n, t);
|
|
13
|
+
return t ? e === "downward" ? o.downward : o.leftward : e === "downward" ? d.downward : d.rightward;
|
|
14
|
+
}
|
|
15
|
+
function w(r, n, t) {
|
|
16
|
+
return i(r) ? n ? t ? "leftward" : "rightward" : "downward" : t ? "leftward" : "rightward";
|
|
17
|
+
}
|
|
18
|
+
function f(r) {
|
|
19
|
+
return r ? "rtl" : "ltr";
|
|
20
|
+
}
|
|
21
|
+
function P(r, n) {
|
|
22
|
+
return `${r}_${n}`;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
f as convertBoolDirectionToString,
|
|
26
|
+
w as getChildrenPosition,
|
|
27
|
+
P as getDOMElementId,
|
|
28
|
+
a as getPopupSettings
|
|
29
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react"),s=require("./itemsIdsUtils.js"),y=require("../components/MenuItem.js");function R(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const O=R(h);function S(e,n){if(e&&e.length>0)return{items:u(e),inputItems:e};if(c(n).length>0){const t=b(c(n));return{items:u(t),inputItems:t}}else return{items:[],inputItems:[]}}function v(e,n){let t={};const{text:r,url:o,icon:i,svgIcon:l,disabled:d,cssClass:f,cssStyle:a,render:p,linkRender:I,contentRender:m,data:g}=e||n.props;return r!==void 0&&(t.text=r),o!==void 0&&(t.url=o),i!==void 0&&(t.icon=i),l!==void 0&&(t.svgIcon=l),d!==void 0&&(t.disabled=d),f!==void 0&&(t.cssClass=f),a!==void 0&&(t.cssStyle=a),p!==void 0&&(t.render=p),I!==void 0&&(t.linkRender=I),m!==void 0&&(t.contentRender=m),g!==void 0&&(t.data=g),t}function c(e){return O.Children.toArray(e).filter(n=>n&&n.type===y.MenuItem)}function b(e){const n=[];for(let t=0;t<e.length;t++){const r=e[t],o=v(void 0,r),i=b(c(r.props.children));i.length>0&&(o.items=i),n.push(o)}return n}function u(e,n){const t=[];for(let r=0;r<e.length;r++){const o=e[r],i=v(o);i.id=s.createId(r.toString(),n),i.isLastFromSiblings=r===e.length-1,i.items=C(o,i),t.push(i)}return t}function C(e,n){return e.contentRender?[{contentParentItemId:n.id,id:s.createId(s.ZERO_LEVEL_ZERO_ITEM_ID,n.id),isLastFromSiblings:!0,contentRender:e.contentRender,items:[]}]:e.items?u(e.items,n.id):[]}exports.prepareInputItemsForInternalWork=S;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as R from "react";
|
|
10
|
+
import { createId as v, ZERO_LEVEL_ZERO_ITEM_ID as C } from "./itemsIdsUtils.mjs";
|
|
11
|
+
import { MenuItem as y } from "../components/MenuItem.mjs";
|
|
12
|
+
function b(t, n) {
|
|
13
|
+
if (t && t.length > 0)
|
|
14
|
+
return {
|
|
15
|
+
items: c(t),
|
|
16
|
+
inputItems: t
|
|
17
|
+
};
|
|
18
|
+
if (s(n).length > 0) {
|
|
19
|
+
const e = h(s(n));
|
|
20
|
+
return { items: c(e), inputItems: e };
|
|
21
|
+
} else
|
|
22
|
+
return { items: [], inputItems: [] };
|
|
23
|
+
}
|
|
24
|
+
function g(t, n) {
|
|
25
|
+
let e = {};
|
|
26
|
+
const { text: i, url: o, icon: r, svgIcon: d, disabled: l, cssClass: u, cssStyle: f, render: m, linkRender: p, contentRender: I, data: a } = t || n.props;
|
|
27
|
+
return i !== void 0 && (e.text = i), o !== void 0 && (e.url = o), r !== void 0 && (e.icon = r), d !== void 0 && (e.svgIcon = d), l !== void 0 && (e.disabled = l), u !== void 0 && (e.cssClass = u), f !== void 0 && (e.cssStyle = f), m !== void 0 && (e.render = m), p !== void 0 && (e.linkRender = p), I !== void 0 && (e.contentRender = I), a !== void 0 && (e.data = a), e;
|
|
28
|
+
}
|
|
29
|
+
function s(t) {
|
|
30
|
+
return R.Children.toArray(t).filter((n) => n && n.type === y);
|
|
31
|
+
}
|
|
32
|
+
function h(t) {
|
|
33
|
+
const n = [];
|
|
34
|
+
for (let e = 0; e < t.length; e++) {
|
|
35
|
+
const i = t[e], o = g(void 0, i), r = h(s(i.props.children));
|
|
36
|
+
r.length > 0 && (o.items = r), n.push(o);
|
|
37
|
+
}
|
|
38
|
+
return n;
|
|
39
|
+
}
|
|
40
|
+
function c(t, n) {
|
|
41
|
+
const e = [];
|
|
42
|
+
for (let i = 0; i < t.length; i++) {
|
|
43
|
+
const o = t[i], r = g(o);
|
|
44
|
+
r.id = v(i.toString(), n), r.isLastFromSiblings = i === t.length - 1, r.items = x(o, r), e.push(r);
|
|
45
|
+
}
|
|
46
|
+
return e;
|
|
47
|
+
}
|
|
48
|
+
function x(t, n) {
|
|
49
|
+
return t.contentRender ? [{
|
|
50
|
+
contentParentItemId: n.id,
|
|
51
|
+
id: v(C, n.id),
|
|
52
|
+
isLastFromSiblings: !0,
|
|
53
|
+
contentRender: t.contentRender,
|
|
54
|
+
items: []
|
|
55
|
+
}] : t.items ? c(t.items, n.id) : [];
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
b as prepareInputItemsForInternalWork
|
|
59
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-layout",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
const e = {
|
|
10
|
+
name: "@progress/kendo-react-layout",
|
|
11
|
+
productName: "KendoReact",
|
|
12
|
+
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
+
publishDate: 1709713972,
|
|
14
|
+
version: "",
|
|
15
|
+
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
e as packageMetadata
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-layout",
|
|
3
|
-
"version": "7.2.4-develop.
|
|
3
|
+
"version": "7.2.4-develop.4",
|
|
4
4
|
"description": "React Layout components enable you to create a perceptive and intuitive layout of web projects. KendoReact Layout package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@progress/kendo-licensing": "^1.3.4",
|
|
26
|
-
"@progress/kendo-react-animation": "7.2.4-develop.
|
|
27
|
-
"@progress/kendo-react-common": "7.2.4-develop.
|
|
28
|
-
"@progress/kendo-react-intl": "7.2.4-develop.
|
|
29
|
-
"@progress/kendo-react-popup": "7.2.4-develop.
|
|
30
|
-
"@progress/kendo-react-progressbars": "7.2.4-develop.
|
|
26
|
+
"@progress/kendo-react-animation": "7.2.4-develop.4",
|
|
27
|
+
"@progress/kendo-react-common": "7.2.4-develop.4",
|
|
28
|
+
"@progress/kendo-react-intl": "7.2.4-develop.4",
|
|
29
|
+
"@progress/kendo-react-popup": "7.2.4-develop.4",
|
|
30
|
+
"@progress/kendo-react-progressbars": "7.2.4-develop.4",
|
|
31
31
|
"@progress/kendo-svg-icons": "^2.1.0",
|
|
32
32
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
33
33
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),n=require("prop-types"),g=require("./PanelBarItem.js"),d=require("./util.js"),o=require("@progress/kendo-react-common"),y=require("../package-metadata.js"),l=require("./interfaces/NavigationAction.js");function x(p){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(p){for(const s in p)if(s!=="default"){const e=Object.getOwnPropertyDescriptor(p,s);Object.defineProperty(a,s,e.get?e:{enumerable:!0,get:()=>p[s]})}}return a.default=p,Object.freeze(a)}const u=x(v),h=class h extends u.Component{constructor(a){super(a),this._element=null,this.showLicenseWatermark=!1,this.handleSelect=e=>{this.onSelect(e),this.onFocus(e)},this.onSelect=e=>{const r=d.flatChildren(u.Children.toArray(this.children));let i,t;switch(r.forEach(c=>{c.props.uniquePrivateKey===(e.uniquePrivateKey||this.state.focused)&&(i=c)}),this.expandMode){case"single":t=[...i.props.parentUniquePrivateKey,i.props.uniquePrivateKey],d.isArrayEqual(this.expandedItems,t)&&(i.props.parentUniquePrivateKey?t=[...i.props.parentUniquePrivateKey]:t=[]);break;case"multiple":{t=this.expandedItems.slice();let c=t.indexOf(i.props.uniquePrivateKey);c===-1?t.push(i.props.uniquePrivateKey):t.splice(c,1);break}default:t=this.expandedItems.slice();break}this.setState({selected:i.props.uniquePrivateKey,expanded:t}),this.props.onSelect&&this.props.onSelect.call(void 0,{target:i,expandedItems:t})},this.onFocus=(e,r=0)=>{const i=d.flatVisibleChildren(u.Children.toArray(this.children));let t;i.forEach((c,f)=>{if(c.props.uniquePrivateKey===(e.uniquePrivateKey||this.state.focused)){let k=f+r<0?0:f+r>i.length?i.length-1:f+r;t=i[k]}}),t&&(this.activeDescendant=t.props.id,this.setState({focused:t.props.uniquePrivateKey}))},this.onNavigate=(e,r)=>{let i;switch(r){case l.NavigationAction.Previous:i=-1,this.onFocus(e,i);break;case l.NavigationAction.Next:i=1,this.onFocus(e,i);break;case l.NavigationAction.Toggle:this.onSelect(e);break}},this.handleWrapperFocus=()=>{clearTimeout(this.nextTickId),this.state.wrapperFocused||this.setState({wrapperFocused:!0})},this.handleWrapperBlur=()=>{this.nextTick(()=>{this.setState({wrapperFocused:!1})})},this.handleKeyDown=e=>{const r=this._element&&getComputedStyle(this._element).direction==="rtl"||!1;if(e.target===e.currentTarget){const i=e.keyCode;let t;switch(i){case o.Keys.left:t=r?l.NavigationAction.Next:l.NavigationAction.Previous;break;case o.Keys.up:t=l.NavigationAction.Previous;break;case o.Keys.right:t=r?l.NavigationAction.Previous:l.NavigationAction.Next;break;case o.Keys.down:t=l.NavigationAction.Next;break;case o.Keys.space:case o.Keys.enter:t=l.NavigationAction.Toggle;break;default:t=null;break}t!==null&&(e.preventDefault(),this.onNavigate(e,t))}},o.validatePackage(y.packageMetadata),this.showLicenseWatermark=o.shouldShowValidationUI(y.packageMetadata);const s=d.getInitialState(a,this.expandMode);s.focused||(s.focused=d.getFirstId(a)),this.state=s}get expandMode(){return this.props.expandMode||"multiple"}get selectedItem(){const{selected:a=this.state.selected}=this.props;return a}get expandedItems(){return this.props.isControlled?this.props.expanded||[]:this.state.expanded}get children(){const a={...this.state,selected:this.selectedItem},s={animation:this.props.animation,keepItemsMounted:this.props.keepItemsMounted,state:a,expanded:this.expandedItems,handleSelect:this.handleSelect,children:this.props.children};return d.renderChildren(s)}render(){const a={"aria-activedescendant":this.activeDescendant},s=o.classNames("k-panelbar","k-pos-relative",this.props.className);return u.createElement("ul",{ref:e=>{this._element=e},dir:this.props.dir,role:"tree",tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,className:s,style:this.props.style,...a},this.children,this.showLicenseWatermark&&u.createElement(o.WatermarkOverlay,null))}nextTick(a){this.nextTickId=window.setTimeout(()=>a())}};h.propTypes={animation:n.bool,children:function(a,s){const e=a[s];if(e){if(Array.isArray(e)){for(let r of e)if(!r.type||r.type!==g.PanelBarItem)return new Error("PanelBar children should be either PanelBarItem or Array of PanelBarItem.")}else if(e.type!==g.PanelBarItem)return new Error("PanelBar child should be either PanelBarItem or Array of PanelBarItem.");return null}return null},dir:n.string,selected:n.string,expanded:n.arrayOf(n.string),focused:n.string,expandMode:n.oneOf(["single","multiple"]),className:n.string,keepItemsMounted:n.bool,onSelect:n.func,style:n.object},h.defaultProps={expandMode:"multiple",animation:!0,keepItemsMounted:!1};let m=h;exports.PanelBar=m;
|