@progress/kendo-react-layout 13.2.1-develop.1 → 13.3.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/README.md +1 -1
- package/actionsheet/ActionSheet.js +1 -1
- package/actionsheet/ActionSheet.mjs +1 -1
- package/actionsheet/ActionSheetContent.js +1 -1
- package/actionsheet/ActionSheetContent.mjs +1 -1
- package/actionsheet/ActionSheetFooter.js +1 -1
- package/actionsheet/ActionSheetFooter.mjs +1 -1
- package/actionsheet/ActionSheetHeader.js +1 -1
- package/actionsheet/ActionSheetHeader.mjs +1 -1
- package/actionsheet/ActionSheetItem.js +1 -1
- package/actionsheet/ActionSheetItem.mjs +1 -1
- package/actionsheet/ActionSheetView.js +1 -1
- package/actionsheet/ActionSheetView.mjs +1 -1
- package/appbar/AppBar.js +1 -1
- package/appbar/AppBar.mjs +1 -1
- package/appbar/AppBarSection.js +1 -1
- package/appbar/AppBarSection.mjs +1 -1
- package/appbar/AppBarSpacer.js +1 -1
- package/appbar/AppBarSpacer.mjs +1 -1
- package/bottomnavigation/BottomNavigation.js +1 -1
- package/bottomnavigation/BottomNavigation.mjs +1 -1
- package/bottomnavigation/BottomNavigationItem.js +1 -1
- package/bottomnavigation/BottomNavigationItem.mjs +1 -1
- package/bottomnavigation/models/utils.js +1 -1
- package/bottomnavigation/models/utils.mjs +1 -1
- package/breadcrumb/Breadcrumb.js +1 -1
- package/breadcrumb/Breadcrumb.mjs +1 -1
- package/breadcrumb/BreadcrumbDelimiter.js +1 -1
- package/breadcrumb/BreadcrumbDelimiter.mjs +1 -1
- package/breadcrumb/BreadcrumbLink.js +1 -1
- package/breadcrumb/BreadcrumbLink.mjs +1 -1
- package/breadcrumb/BreadcrumbListItem.js +1 -1
- package/breadcrumb/BreadcrumbListItem.mjs +1 -1
- package/breadcrumb/BreadcrumbOrderedList.js +1 -1
- package/breadcrumb/BreadcrumbOrderedList.mjs +1 -1
- package/card/Avatar.js +1 -1
- package/card/Avatar.mjs +1 -1
- package/card/Card.js +1 -1
- package/card/Card.mjs +1 -1
- package/card/CardActions.js +1 -1
- package/card/CardActions.mjs +1 -1
- package/card/CardBody.js +1 -1
- package/card/CardBody.mjs +1 -1
- package/card/CardFooter.js +1 -1
- package/card/CardFooter.mjs +1 -1
- package/card/CardHeader.js +1 -1
- package/card/CardHeader.mjs +1 -1
- package/card/CardImage.js +1 -1
- package/card/CardImage.mjs +1 -1
- package/card/CardSubtitle.js +1 -1
- package/card/CardSubtitle.mjs +1 -1
- package/card/CardTitle.js +1 -1
- package/card/CardTitle.mjs +1 -1
- package/card/interfaces/Enums.js +1 -1
- package/card/interfaces/Enums.mjs +1 -1
- package/contextmenu/ContextMenu.js +2 -2
- package/contextmenu/ContextMenu.mjs +21 -17
- package/dist/cdn/js/kendo-react-layout.js +3 -3
- package/drawer/Drawer.js +1 -1
- package/drawer/Drawer.mjs +1 -1
- package/drawer/DrawerContent.js +1 -1
- package/drawer/DrawerContent.mjs +1 -1
- package/drawer/DrawerItem.js +1 -1
- package/drawer/DrawerItem.mjs +1 -1
- package/drawer/DrawerNavigation.js +1 -1
- package/drawer/DrawerNavigation.mjs +1 -1
- package/drawer/context/DrawerContext.js +1 -1
- package/drawer/context/DrawerContext.mjs +1 -1
- package/expansionpanel/ExpansionPanel.js +1 -1
- package/expansionpanel/ExpansionPanel.mjs +1 -1
- package/expansionpanel/ExpansionPanelContent.js +1 -1
- package/expansionpanel/ExpansionPanelContent.mjs +1 -1
- package/gridlayout/GridLayout.js +1 -1
- package/gridlayout/GridLayout.mjs +1 -1
- package/gridlayout/GridLayoutItem.js +1 -1
- package/gridlayout/GridLayoutItem.mjs +1 -1
- package/index.d.mts +36 -5
- package/index.d.ts +36 -5
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/menu/components/Menu.js +2 -2
- package/menu/components/Menu.mjs +71 -49
- package/menu/components/MenuItem.js +1 -1
- package/menu/components/MenuItem.mjs +1 -1
- package/menu/components/MenuItemArrow.js +1 -1
- package/menu/components/MenuItemArrow.mjs +1 -1
- package/menu/components/MenuItemInternal.js +2 -2
- package/menu/components/MenuItemInternal.mjs +25 -20
- package/menu/components/MenuItemLink.js +1 -1
- package/menu/components/MenuItemLink.mjs +1 -1
- package/menu/consts.js +1 -1
- package/menu/consts.mjs +1 -1
- package/menu/utils/DirectionHolder.js +1 -1
- package/menu/utils/DirectionHolder.mjs +1 -1
- package/menu/utils/MouseOverHandler.js +1 -1
- package/menu/utils/MouseOverHandler.mjs +1 -1
- package/menu/utils/getNewItemIdUponKeyboardNavigation.js +1 -1
- package/menu/utils/getNewItemIdUponKeyboardNavigation.mjs +1 -1
- package/menu/utils/hoverDelay.js +1 -1
- package/menu/utils/hoverDelay.mjs +1 -1
- package/menu/utils/itemsIdsUtils.js +1 -1
- package/menu/utils/itemsIdsUtils.mjs +1 -1
- package/menu/utils/misc.js +1 -1
- package/menu/utils/misc.mjs +1 -1
- package/menu/utils/prepareInputItemsForInternalWork.js +1 -1
- package/menu/utils/prepareInputItemsForInternalWork.mjs +1 -1
- package/package-metadata.js +2 -2
- package/package-metadata.mjs +3 -3
- package/package.json +8 -8
- package/panelbar/PanelBar.js +1 -1
- package/panelbar/PanelBar.mjs +1 -1
- package/panelbar/PanelBarItem.js +1 -1
- package/panelbar/PanelBarItem.mjs +1 -1
- package/panelbar/interfaces/NavigationAction.js +1 -1
- package/panelbar/interfaces/NavigationAction.mjs +1 -1
- package/panelbar/util.js +1 -1
- package/panelbar/util.mjs +1 -1
- package/splitter/Splitter.js +1 -1
- package/splitter/Splitter.mjs +1 -1
- package/splitter/SplitterBar.js +1 -1
- package/splitter/SplitterBar.mjs +1 -1
- package/splitter/SplitterPane.js +1 -1
- package/splitter/SplitterPane.mjs +1 -1
- package/splitter/messages/index.js +1 -1
- package/splitter/messages/index.mjs +1 -1
- package/stacklayout/StackLayout.js +1 -1
- package/stacklayout/StackLayout.mjs +1 -1
- package/stepper/Step.js +1 -1
- package/stepper/Step.mjs +1 -1
- package/stepper/Stepper.js +1 -1
- package/stepper/Stepper.mjs +1 -1
- package/stepper/contants.js +1 -1
- package/stepper/contants.mjs +1 -1
- package/stepper/context/StepperContext.js +1 -1
- package/stepper/context/StepperContext.mjs +1 -1
- package/stepper/messages/index.js +1 -1
- package/stepper/messages/index.mjs +1 -1
- package/tabstrip/TabStrip.js +1 -1
- package/tabstrip/TabStrip.mjs +1 -1
- package/tabstrip/TabStripContent.js +1 -1
- package/tabstrip/TabStripContent.mjs +1 -1
- package/tabstrip/TabStripNavigation.js +1 -1
- package/tabstrip/TabStripNavigation.mjs +1 -1
- package/tabstrip/TabStripNavigationItem.js +1 -1
- package/tabstrip/TabStripNavigationItem.mjs +1 -1
- package/tabstrip/TabStripTab.js +1 -1
- package/tabstrip/TabStripTab.mjs +1 -1
- package/tabstrip/messages/index.js +1 -1
- package/tabstrip/messages/index.mjs +1 -1
- package/tilelayout/InternalTile.js +1 -1
- package/tilelayout/InternalTile.mjs +1 -1
- package/tilelayout/ResizeHandlers.js +1 -1
- package/tilelayout/ResizeHandlers.mjs +1 -1
- package/tilelayout/TileLayout.js +1 -1
- package/tilelayout/TileLayout.mjs +1 -1
- package/timeline/Timeline.js +1 -1
- package/timeline/Timeline.mjs +1 -1
- package/timeline/TimelineCard.js +1 -1
- package/timeline/TimelineCard.mjs +1 -1
- package/timeline/TimelineHorizontal.js +1 -1
- package/timeline/TimelineHorizontal.mjs +1 -1
- package/timeline/TimelineVertical.js +1 -1
- package/timeline/TimelineVertical.mjs +1 -1
- package/timeline/utils.js +1 -1
- package/timeline/utils.mjs +1 -1
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright ©
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import * as n from "react";
|
|
9
|
-
import { useId as
|
|
10
|
-
import { Popup as
|
|
11
|
-
import { Menu as
|
|
12
|
-
const
|
|
13
|
-
const o = n.useRef(null), [
|
|
14
|
-
|
|
9
|
+
import { useId as f, getActiveElement as r, classNames as d } from "@progress/kendo-react-common";
|
|
10
|
+
import { Popup as h } from "@progress/kendo-react-popup";
|
|
11
|
+
import { Menu as v } from "../menu/components/Menu.mjs";
|
|
12
|
+
const w = (e) => {
|
|
13
|
+
const o = n.useRef(null), [u, c] = n.useState(e.show), m = f(e.id), { animate: a = C.animate } = e;
|
|
14
|
+
n.useEffect(() => {
|
|
15
15
|
c(e.show), e.show && setTimeout(() => {
|
|
16
|
-
const t = o.current && o.current.element, s = t && t.querySelector(".k-menu-item"),
|
|
17
|
-
s && s !==
|
|
16
|
+
const t = o.current && o.current.element, s = t && t.querySelector(".k-menu-item"), l = r(t == null ? void 0 : t.ownerDocument);
|
|
17
|
+
s && s !== l && s.focus();
|
|
18
18
|
});
|
|
19
|
-
}, [e.show])
|
|
20
|
-
|
|
19
|
+
}, [e.show]);
|
|
20
|
+
const i = (t) => {
|
|
21
|
+
t.popupCloseEvent || e.onClose(t);
|
|
22
|
+
};
|
|
23
|
+
return /* @__PURE__ */ n.createElement(h, { show: u, offset: e.offset, popupClass: "k-menu-popup k-overflow-visible", animate: a }, /* @__PURE__ */ n.createElement(
|
|
24
|
+
v,
|
|
21
25
|
{
|
|
22
|
-
id:
|
|
26
|
+
id: m,
|
|
23
27
|
vertical: !0,
|
|
24
28
|
...e,
|
|
25
29
|
ref: o,
|
|
26
|
-
className:
|
|
27
|
-
onClose:
|
|
30
|
+
className: d("k-context-menu", e.className),
|
|
31
|
+
onClose: i,
|
|
28
32
|
role: "menu"
|
|
29
33
|
},
|
|
30
34
|
e.children
|
|
31
35
|
));
|
|
32
|
-
},
|
|
36
|
+
}, C = {
|
|
33
37
|
animate: { openDuration: 300, closeDuration: 300 }
|
|
34
38
|
};
|
|
35
|
-
|
|
39
|
+
w.displayName = "KendoReactContextMenu";
|
|
36
40
|
export {
|
|
37
|
-
|
|
41
|
+
w as ContextMenu
|
|
38
42
|
};
|