@progress/kendo-react-layout 14.4.1-develop.9 → 14.5.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/actionsheet/ActionSheet.d.ts +1 -1
- package/actionsheet/ActionSheetContent.d.ts +1 -1
- package/actionsheet/ActionSheetFooter.d.ts +1 -1
- package/actionsheet/ActionSheetHeader.d.ts +1 -1
- package/actionsheet/ActionSheetItem.d.ts +1 -1
- package/appbar/AppBar.d.ts +1 -1
- package/appbar/AppBarSection.d.ts +1 -1
- package/appbar/AppBarSpacer.d.ts +1 -1
- package/bottomnavigation/BottomNavigation.d.ts +1 -1
- package/bottomnavigation/BottomNavigationProps.d.ts +2 -2
- package/card/Avatar.d.ts +1 -1
- package/card/Card.d.ts +2 -2
- package/card/CardActions.d.ts +1 -1
- package/card/CardBody.d.ts +1 -1
- package/card/CardFooter.d.ts +1 -1
- package/card/CardHeader.d.ts +1 -1
- package/card/CardImage.d.ts +1 -1
- package/card/CardSubtitle.d.ts +1 -1
- package/card/CardTitle.d.ts +1 -1
- package/card/interfaces/CardHandle.d.ts +1 -1
- package/contextmenu/ContextMenu.d.ts +2 -2
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/drawer/Drawer.d.ts +1 -1
- package/drawer/DrawerContent.d.ts +1 -1
- package/drawer/DrawerItem.d.ts +2 -2
- package/drawer/DrawerNavigation.d.ts +1 -1
- package/drawer/context/DrawerContext.d.ts +2 -2
- package/drawer/interfaces/DrawerProps.d.ts +3 -3
- package/expansionpanel/ExpansionPanel.d.ts +1 -1
- package/expansionpanel/index.d.ts +1 -1
- package/gridlayout/GridLayout.d.ts +1 -1
- package/gridlayout/GridLayoutItem.d.ts +1 -1
- package/gridlayout/interfaces/GridLayoutProps.d.ts +2 -2
- package/index.d.mts +39 -39
- package/index.d.ts +39 -39
- package/menu/MenuProps.d.ts +2 -2
- package/menu/components/Menu.d.ts +15 -94
- package/menu/components/Menu.js +1 -1
- package/menu/components/Menu.mjs +223 -212
- package/menu/components/MenuItem.d.ts +5 -25
- package/menu/components/MenuItem.js +1 -1
- package/menu/components/MenuItem.mjs +16 -24
- package/menu/components/MenuItemArrow.d.ts +1 -16
- package/menu/components/MenuItemArrow.js +1 -1
- package/menu/components/MenuItemArrow.mjs +26 -35
- package/menu/components/MenuItemInternal.d.ts +4 -37
- package/menu/components/MenuItemInternal.js +1 -1
- package/menu/components/MenuItemInternal.mjs +174 -219
- package/menu/components/MenuItemLink.d.ts +1 -15
- package/menu/components/MenuItemLink.js +1 -1
- package/menu/components/MenuItemLink.mjs +17 -30
- package/menu/events.d.ts +5 -5
- package/menu/models/MenuItemModel.d.ts +1 -1
- package/menu/utils/DirectionHolder.js +1 -1
- package/menu/utils/DirectionHolder.mjs +1 -1
- package/menu/utils/getNewItemIdUponKeyboardNavigation.d.ts +1 -1
- package/menu/utils/hoverDelay.d.ts +1 -1
- package/menu/utils/prepareInputItemsForInternalWork.d.ts +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +8 -8
- package/panelbar/PanelBarItem.d.ts +1 -1
- package/panelbar/interfaces/PanelBarItemHandle.d.ts +1 -1
- package/panelbar/interfaces/PanelBarSelectEventArguments.d.ts +1 -1
- package/panelbar/util.d.ts +2 -2
- package/stacklayout/StackLayout.d.ts +1 -1
- package/stepper/Step.d.ts +2 -2
- package/stepper/Stepper.d.ts +2 -2
- package/stepper/context/StepperContext.d.ts +3 -3
- package/stepper/interfaces/StepChangeEvent.d.ts +1 -1
- package/stepper/interfaces/StepFocusEvent.d.ts +1 -1
- package/stepper/interfaces/StepperChangeEvent.d.ts +1 -1
- package/stepper/interfaces/StepperFocusEvent.d.ts +1 -1
- package/stepper/interfaces/StepperOnNavigateEvent.d.ts +1 -1
- package/stepper/interfaces/StepperProps.d.ts +3 -3
package/drawer/Drawer.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { DrawerProps } from './interfaces/DrawerProps
|
|
8
|
+
import { DrawerProps } from './interfaces/DrawerProps';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
/**
|
|
11
11
|
* The Drawer ref.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { DrawerContentProps } from './interfaces/DrawerContentProps
|
|
8
|
+
import { DrawerContentProps } from './interfaces/DrawerContentProps';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
/**
|
|
11
11
|
* The DrawerContent ref.
|
package/drawer/DrawerItem.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { DrawerItemHandle } from './interfaces/DrawerItemHandle
|
|
9
|
-
import { DrawerItemProps } from './interfaces/DrawerItemProps
|
|
8
|
+
import { DrawerItemHandle } from './interfaces/DrawerItemHandle';
|
|
9
|
+
import { DrawerItemProps } from './interfaces/DrawerItemProps';
|
|
10
10
|
import * as React from 'react';
|
|
11
11
|
/**
|
|
12
12
|
* Represents the [KendoReact Drawer component](https://www.telerik.com/kendo-react-ui/components/layout/drawer).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { DrawerNavigationProps } from './interfaces/DrawerNavigationProps
|
|
8
|
+
import { DrawerNavigationProps } from './interfaces/DrawerNavigationProps';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { DrawerAnimation } from '../interfaces/DrawerAnimation
|
|
9
|
-
import { DrawerItemProps } from '../interfaces/DrawerItemProps
|
|
8
|
+
import { DrawerAnimation } from '../interfaces/DrawerAnimation';
|
|
9
|
+
import { DrawerItemProps } from '../interfaces/DrawerItemProps';
|
|
10
10
|
import * as React from 'react';
|
|
11
11
|
/** @hidden */
|
|
12
12
|
export type DrawerContextType = {
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { DrawerSelectEvent } from './DrawerSelectEvent
|
|
9
|
-
import { DrawerAnimation } from '../interfaces/DrawerAnimation
|
|
10
|
-
import { DrawerItemProps } from './DrawerItemProps
|
|
8
|
+
import { DrawerSelectEvent } from './DrawerSelectEvent';
|
|
9
|
+
import { DrawerAnimation } from '../interfaces/DrawerAnimation';
|
|
10
|
+
import { DrawerItemProps } from './DrawerItemProps';
|
|
11
11
|
import * as React from 'react';
|
|
12
12
|
/**
|
|
13
13
|
* The properties of the [KendoReact Drawer component](https://www.telerik.com/kendo-react-ui/components/layout/drawer).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { ExpansionPanelHandle, ExpansionPanelProps } from './interfaces
|
|
8
|
+
import { ExpansionPanelHandle, ExpansionPanelProps } from './interfaces';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
/**
|
|
11
11
|
* Represents the [KendoReact ExpansionPanel component](https://www.telerik.com/kendo-react-ui/components/layout/expansionpanel).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { GridLayoutProps } from './interfaces/GridLayoutProps
|
|
8
|
+
import { GridLayoutProps } from './interfaces/GridLayoutProps';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
/**
|
|
11
11
|
* Represents the Object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { GridLayoutItemProps } from './interfaces/GridLayoutItemProps
|
|
8
|
+
import { GridLayoutItemProps } from './interfaces/GridLayoutItemProps';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
/**
|
|
11
11
|
* Represents the Object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom)
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { GridLayoutColumnProps } from './GridLayoutColumnProps
|
|
9
|
-
import { GridLayoutRowProps } from './GridLayoutRowProps
|
|
8
|
+
import { GridLayoutColumnProps } from './GridLayoutColumnProps';
|
|
9
|
+
import { GridLayoutRowProps } from './GridLayoutRowProps';
|
|
10
10
|
import * as React from 'react';
|
|
11
11
|
/**
|
|
12
12
|
* Represents the props of the [KendoReact GridLayout component](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout).
|
package/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { Menu as MenuClassComponent, MenuState, MenuHandle } from './menu/components/Menu.js';
|
|
9
|
-
import { MenuProps } from './menu/MenuProps
|
|
9
|
+
import { MenuProps } from './menu/MenuProps';
|
|
10
10
|
import { TabStrip as TabStripClassComponent, TabStripScrollableProps, TabStripSelectEventArguments, TabStripProps } from './tabstrip/TabStrip.js';
|
|
11
11
|
import { MenuItemInternalsList } from './menu/components/MenuItemInternal.js';
|
|
12
12
|
import { downArrowName, leftArrowName, rightArrowName } from './menu/components/MenuItemArrow.js';
|
|
@@ -23,16 +23,16 @@ export * from './tabstrip/TabStripTab.js';
|
|
|
23
23
|
export * from './panelbar/PanelBar.js';
|
|
24
24
|
export * from './panelbar/PanelBarItem.js';
|
|
25
25
|
export * from './panelbar/util.js';
|
|
26
|
-
export * from './panelbar/interfaces/PanelBarProps
|
|
27
|
-
export * from './panelbar/interfaces/PanelBarItemProps
|
|
28
|
-
export * from './panelbar/interfaces/RenderPanelBarItem
|
|
29
|
-
export * from './panelbar/interfaces/PanelBarSelectEventArguments
|
|
30
|
-
export * from './panelbar/interfaces/PanelBarItemHandle
|
|
26
|
+
export * from './panelbar/interfaces/PanelBarProps';
|
|
27
|
+
export * from './panelbar/interfaces/PanelBarItemProps';
|
|
28
|
+
export * from './panelbar/interfaces/RenderPanelBarItem';
|
|
29
|
+
export * from './panelbar/interfaces/PanelBarSelectEventArguments';
|
|
30
|
+
export * from './panelbar/interfaces/PanelBarItemHandle';
|
|
31
31
|
export * from './menu/components/MenuItemLink.js';
|
|
32
32
|
export * from './menu/components/MenuItem.js';
|
|
33
33
|
export * from './menu/components/MenuItemArrow.js';
|
|
34
|
-
export * from './menu/models/MenuItemModel
|
|
35
|
-
export * from './menu/events
|
|
34
|
+
export * from './menu/models/MenuItemModel';
|
|
35
|
+
export * from './menu/events';
|
|
36
36
|
export * from './splitter/Splitter.js';
|
|
37
37
|
export * from './splitter/SplitterPane.js';
|
|
38
38
|
export * from './card/Card.js';
|
|
@@ -43,54 +43,54 @@ export * from './card/CardActions.js';
|
|
|
43
43
|
export * from './card/CardImage.js';
|
|
44
44
|
export * from './card/CardSubtitle.js';
|
|
45
45
|
export * from './card/CardFooter.js';
|
|
46
|
-
export * from './card/interfaces/CardProps
|
|
47
|
-
export * from './card/interfaces/CardHandle
|
|
48
|
-
export * from './card/interfaces/AvatarProps
|
|
49
|
-
export * from './card/interfaces/CardActionsProps
|
|
46
|
+
export * from './card/interfaces/CardProps';
|
|
47
|
+
export * from './card/interfaces/CardHandle';
|
|
48
|
+
export * from './card/interfaces/AvatarProps';
|
|
49
|
+
export * from './card/interfaces/CardActionsProps';
|
|
50
50
|
export * from './card/interfaces/Enums.js';
|
|
51
51
|
export * from './card/Avatar.js';
|
|
52
52
|
export * from './drawer/Drawer.js';
|
|
53
|
-
export * from './drawer/interfaces/DrawerProps
|
|
53
|
+
export * from './drawer/interfaces/DrawerProps';
|
|
54
54
|
export * from './drawer/DrawerNavigation.js';
|
|
55
|
-
export * from './drawer/interfaces/DrawerNavigationProps
|
|
55
|
+
export * from './drawer/interfaces/DrawerNavigationProps';
|
|
56
56
|
export * from './drawer/DrawerContent.js';
|
|
57
|
-
export * from './drawer/interfaces/DrawerContentProps
|
|
57
|
+
export * from './drawer/interfaces/DrawerContentProps';
|
|
58
58
|
export * from './drawer/DrawerItem.js';
|
|
59
|
-
export * from './drawer/interfaces/DrawerItemHandle
|
|
60
|
-
export * from './drawer/interfaces/DrawerItemProps
|
|
61
|
-
export * from './drawer/interfaces/DrawerSelectEvent
|
|
62
|
-
export * from './drawer/interfaces/DrawerAnimation
|
|
59
|
+
export * from './drawer/interfaces/DrawerItemHandle';
|
|
60
|
+
export * from './drawer/interfaces/DrawerItemProps';
|
|
61
|
+
export * from './drawer/interfaces/DrawerSelectEvent';
|
|
62
|
+
export * from './drawer/interfaces/DrawerAnimation';
|
|
63
63
|
export * from './stepper/Stepper.js';
|
|
64
|
-
export * from './stepper/interfaces/StepperProps
|
|
65
|
-
export * from './stepper/interfaces/StepperHandle
|
|
66
|
-
export * from './stepper/interfaces/StepperChangeEvent
|
|
67
|
-
export * from './stepper/interfaces/StepperFocusEvent
|
|
64
|
+
export * from './stepper/interfaces/StepperProps';
|
|
65
|
+
export * from './stepper/interfaces/StepperHandle';
|
|
66
|
+
export * from './stepper/interfaces/StepperChangeEvent';
|
|
67
|
+
export * from './stepper/interfaces/StepperFocusEvent';
|
|
68
68
|
export * from './stepper/Step.js';
|
|
69
|
-
export * from './stepper/interfaces/StepProps
|
|
70
|
-
export * from './stepper/interfaces/StepHandle
|
|
71
|
-
export * from './stepper/interfaces/StepChangeEvent
|
|
72
|
-
export * from './stepper/interfaces/StepFocusEvent
|
|
69
|
+
export * from './stepper/interfaces/StepProps';
|
|
70
|
+
export * from './stepper/interfaces/StepHandle';
|
|
71
|
+
export * from './stepper/interfaces/StepChangeEvent';
|
|
72
|
+
export * from './stepper/interfaces/StepFocusEvent';
|
|
73
73
|
export * from './appbar/AppBar.js';
|
|
74
|
-
export * from './appbar/interfaces/AppBarProps
|
|
74
|
+
export * from './appbar/interfaces/AppBarProps';
|
|
75
75
|
export * from './appbar/AppBarSection.js';
|
|
76
|
-
export * from './appbar/interfaces/AppBarSectionProps
|
|
76
|
+
export * from './appbar/interfaces/AppBarSectionProps';
|
|
77
77
|
export * from './appbar/AppBarSpacer.js';
|
|
78
|
-
export * from './appbar/interfaces/AppBarSpacerProps
|
|
78
|
+
export * from './appbar/interfaces/AppBarSpacerProps';
|
|
79
79
|
export * from './tilelayout/TileLayout.js';
|
|
80
80
|
export * from './tilelayout/interfaces//index.js';
|
|
81
81
|
export * from './bottomnavigation/BottomNavigation.js';
|
|
82
|
-
export * from './bottomnavigation/BottomNavigationProps
|
|
82
|
+
export * from './bottomnavigation/BottomNavigationProps';
|
|
83
83
|
export * from './bottomnavigation/BottomNavigationItem.js';
|
|
84
|
-
export * from './bottomnavigation/BottomNavigationItemProps
|
|
85
|
-
export * from './bottomnavigation/models/events
|
|
84
|
+
export * from './bottomnavigation/BottomNavigationItemProps';
|
|
85
|
+
export * from './bottomnavigation/models/events';
|
|
86
86
|
export * from './stacklayout/StackLayout.js';
|
|
87
|
-
export * from './stacklayout/StackLayoutProps
|
|
87
|
+
export * from './stacklayout/StackLayoutProps';
|
|
88
88
|
export * from './gridlayout/GridLayout.js';
|
|
89
89
|
export * from './gridlayout/GridLayoutItem.js';
|
|
90
|
-
export * from './gridlayout/interfaces/GridLayoutProps
|
|
91
|
-
export * from './gridlayout/interfaces/GridLayoutItemProps
|
|
92
|
-
export * from './gridlayout/interfaces/GridLayoutRowProps
|
|
93
|
-
export * from './gridlayout/interfaces/GridLayoutColumnProps
|
|
90
|
+
export * from './gridlayout/interfaces/GridLayoutProps';
|
|
91
|
+
export * from './gridlayout/interfaces/GridLayoutItemProps';
|
|
92
|
+
export * from './gridlayout/interfaces/GridLayoutRowProps';
|
|
93
|
+
export * from './gridlayout/interfaces/GridLayoutColumnProps';
|
|
94
94
|
export * from './breadcrumb/Breadcrumb.js';
|
|
95
95
|
export * from './breadcrumb/BreadcrumbOrderedList.js';
|
|
96
96
|
export * from './breadcrumb/BreadcrumbListItem.js';
|
|
@@ -98,7 +98,7 @@ export * from './breadcrumb/BreadcrumbDelimiter.js';
|
|
|
98
98
|
export * from './breadcrumb/BreadcrumbLink.js';
|
|
99
99
|
export * from './actionsheet/ActionSheet.js';
|
|
100
100
|
export * from './actionsheet/ActionSheetItem.js';
|
|
101
|
-
export * from './actionsheet/interfaces/ActionSheetItemProps
|
|
101
|
+
export * from './actionsheet/interfaces/ActionSheetItemProps';
|
|
102
102
|
export * from './actionsheet/ActionSheetView.js';
|
|
103
103
|
export * from './actionsheet/ActionSheetHeader.js';
|
|
104
104
|
export * from './actionsheet/ActionSheetContent.js';
|
package/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { Menu as MenuClassComponent, MenuState, MenuHandle } from './menu/components/Menu.js';
|
|
9
|
-
import { MenuProps } from './menu/MenuProps
|
|
9
|
+
import { MenuProps } from './menu/MenuProps';
|
|
10
10
|
import { TabStrip as TabStripClassComponent, TabStripScrollableProps, TabStripSelectEventArguments, TabStripProps } from './tabstrip/TabStrip.js';
|
|
11
11
|
import { MenuItemInternalsList } from './menu/components/MenuItemInternal.js';
|
|
12
12
|
import { downArrowName, leftArrowName, rightArrowName } from './menu/components/MenuItemArrow.js';
|
|
@@ -23,16 +23,16 @@ export * from './tabstrip/TabStripTab.js';
|
|
|
23
23
|
export * from './panelbar/PanelBar.js';
|
|
24
24
|
export * from './panelbar/PanelBarItem.js';
|
|
25
25
|
export * from './panelbar/util.js';
|
|
26
|
-
export * from './panelbar/interfaces/PanelBarProps
|
|
27
|
-
export * from './panelbar/interfaces/PanelBarItemProps
|
|
28
|
-
export * from './panelbar/interfaces/RenderPanelBarItem
|
|
29
|
-
export * from './panelbar/interfaces/PanelBarSelectEventArguments
|
|
30
|
-
export * from './panelbar/interfaces/PanelBarItemHandle
|
|
26
|
+
export * from './panelbar/interfaces/PanelBarProps';
|
|
27
|
+
export * from './panelbar/interfaces/PanelBarItemProps';
|
|
28
|
+
export * from './panelbar/interfaces/RenderPanelBarItem';
|
|
29
|
+
export * from './panelbar/interfaces/PanelBarSelectEventArguments';
|
|
30
|
+
export * from './panelbar/interfaces/PanelBarItemHandle';
|
|
31
31
|
export * from './menu/components/MenuItemLink.js';
|
|
32
32
|
export * from './menu/components/MenuItem.js';
|
|
33
33
|
export * from './menu/components/MenuItemArrow.js';
|
|
34
|
-
export * from './menu/models/MenuItemModel
|
|
35
|
-
export * from './menu/events
|
|
34
|
+
export * from './menu/models/MenuItemModel';
|
|
35
|
+
export * from './menu/events';
|
|
36
36
|
export * from './splitter/Splitter.js';
|
|
37
37
|
export * from './splitter/SplitterPane.js';
|
|
38
38
|
export * from './card/Card.js';
|
|
@@ -43,54 +43,54 @@ export * from './card/CardActions.js';
|
|
|
43
43
|
export * from './card/CardImage.js';
|
|
44
44
|
export * from './card/CardSubtitle.js';
|
|
45
45
|
export * from './card/CardFooter.js';
|
|
46
|
-
export * from './card/interfaces/CardProps
|
|
47
|
-
export * from './card/interfaces/CardHandle
|
|
48
|
-
export * from './card/interfaces/AvatarProps
|
|
49
|
-
export * from './card/interfaces/CardActionsProps
|
|
46
|
+
export * from './card/interfaces/CardProps';
|
|
47
|
+
export * from './card/interfaces/CardHandle';
|
|
48
|
+
export * from './card/interfaces/AvatarProps';
|
|
49
|
+
export * from './card/interfaces/CardActionsProps';
|
|
50
50
|
export * from './card/interfaces/Enums.js';
|
|
51
51
|
export * from './card/Avatar.js';
|
|
52
52
|
export * from './drawer/Drawer.js';
|
|
53
|
-
export * from './drawer/interfaces/DrawerProps
|
|
53
|
+
export * from './drawer/interfaces/DrawerProps';
|
|
54
54
|
export * from './drawer/DrawerNavigation.js';
|
|
55
|
-
export * from './drawer/interfaces/DrawerNavigationProps
|
|
55
|
+
export * from './drawer/interfaces/DrawerNavigationProps';
|
|
56
56
|
export * from './drawer/DrawerContent.js';
|
|
57
|
-
export * from './drawer/interfaces/DrawerContentProps
|
|
57
|
+
export * from './drawer/interfaces/DrawerContentProps';
|
|
58
58
|
export * from './drawer/DrawerItem.js';
|
|
59
|
-
export * from './drawer/interfaces/DrawerItemHandle
|
|
60
|
-
export * from './drawer/interfaces/DrawerItemProps
|
|
61
|
-
export * from './drawer/interfaces/DrawerSelectEvent
|
|
62
|
-
export * from './drawer/interfaces/DrawerAnimation
|
|
59
|
+
export * from './drawer/interfaces/DrawerItemHandle';
|
|
60
|
+
export * from './drawer/interfaces/DrawerItemProps';
|
|
61
|
+
export * from './drawer/interfaces/DrawerSelectEvent';
|
|
62
|
+
export * from './drawer/interfaces/DrawerAnimation';
|
|
63
63
|
export * from './stepper/Stepper.js';
|
|
64
|
-
export * from './stepper/interfaces/StepperProps
|
|
65
|
-
export * from './stepper/interfaces/StepperHandle
|
|
66
|
-
export * from './stepper/interfaces/StepperChangeEvent
|
|
67
|
-
export * from './stepper/interfaces/StepperFocusEvent
|
|
64
|
+
export * from './stepper/interfaces/StepperProps';
|
|
65
|
+
export * from './stepper/interfaces/StepperHandle';
|
|
66
|
+
export * from './stepper/interfaces/StepperChangeEvent';
|
|
67
|
+
export * from './stepper/interfaces/StepperFocusEvent';
|
|
68
68
|
export * from './stepper/Step.js';
|
|
69
|
-
export * from './stepper/interfaces/StepProps
|
|
70
|
-
export * from './stepper/interfaces/StepHandle
|
|
71
|
-
export * from './stepper/interfaces/StepChangeEvent
|
|
72
|
-
export * from './stepper/interfaces/StepFocusEvent
|
|
69
|
+
export * from './stepper/interfaces/StepProps';
|
|
70
|
+
export * from './stepper/interfaces/StepHandle';
|
|
71
|
+
export * from './stepper/interfaces/StepChangeEvent';
|
|
72
|
+
export * from './stepper/interfaces/StepFocusEvent';
|
|
73
73
|
export * from './appbar/AppBar.js';
|
|
74
|
-
export * from './appbar/interfaces/AppBarProps
|
|
74
|
+
export * from './appbar/interfaces/AppBarProps';
|
|
75
75
|
export * from './appbar/AppBarSection.js';
|
|
76
|
-
export * from './appbar/interfaces/AppBarSectionProps
|
|
76
|
+
export * from './appbar/interfaces/AppBarSectionProps';
|
|
77
77
|
export * from './appbar/AppBarSpacer.js';
|
|
78
|
-
export * from './appbar/interfaces/AppBarSpacerProps
|
|
78
|
+
export * from './appbar/interfaces/AppBarSpacerProps';
|
|
79
79
|
export * from './tilelayout/TileLayout.js';
|
|
80
80
|
export * from './tilelayout/interfaces//index.js';
|
|
81
81
|
export * from './bottomnavigation/BottomNavigation.js';
|
|
82
|
-
export * from './bottomnavigation/BottomNavigationProps
|
|
82
|
+
export * from './bottomnavigation/BottomNavigationProps';
|
|
83
83
|
export * from './bottomnavigation/BottomNavigationItem.js';
|
|
84
|
-
export * from './bottomnavigation/BottomNavigationItemProps
|
|
85
|
-
export * from './bottomnavigation/models/events
|
|
84
|
+
export * from './bottomnavigation/BottomNavigationItemProps';
|
|
85
|
+
export * from './bottomnavigation/models/events';
|
|
86
86
|
export * from './stacklayout/StackLayout.js';
|
|
87
|
-
export * from './stacklayout/StackLayoutProps
|
|
87
|
+
export * from './stacklayout/StackLayoutProps';
|
|
88
88
|
export * from './gridlayout/GridLayout.js';
|
|
89
89
|
export * from './gridlayout/GridLayoutItem.js';
|
|
90
|
-
export * from './gridlayout/interfaces/GridLayoutProps
|
|
91
|
-
export * from './gridlayout/interfaces/GridLayoutItemProps
|
|
92
|
-
export * from './gridlayout/interfaces/GridLayoutRowProps
|
|
93
|
-
export * from './gridlayout/interfaces/GridLayoutColumnProps
|
|
90
|
+
export * from './gridlayout/interfaces/GridLayoutProps';
|
|
91
|
+
export * from './gridlayout/interfaces/GridLayoutItemProps';
|
|
92
|
+
export * from './gridlayout/interfaces/GridLayoutRowProps';
|
|
93
|
+
export * from './gridlayout/interfaces/GridLayoutColumnProps';
|
|
94
94
|
export * from './breadcrumb/Breadcrumb.js';
|
|
95
95
|
export * from './breadcrumb/BreadcrumbOrderedList.js';
|
|
96
96
|
export * from './breadcrumb/BreadcrumbListItem.js';
|
|
@@ -98,7 +98,7 @@ export * from './breadcrumb/BreadcrumbDelimiter.js';
|
|
|
98
98
|
export * from './breadcrumb/BreadcrumbLink.js';
|
|
99
99
|
export * from './actionsheet/ActionSheet.js';
|
|
100
100
|
export * from './actionsheet/ActionSheetItem.js';
|
|
101
|
-
export * from './actionsheet/interfaces/ActionSheetItemProps
|
|
101
|
+
export * from './actionsheet/interfaces/ActionSheetItemProps';
|
|
102
102
|
export * from './actionsheet/ActionSheetView.js';
|
|
103
103
|
export * from './actionsheet/ActionSheetHeader.js';
|
|
104
104
|
export * from './actionsheet/ActionSheetContent.js';
|
package/menu/MenuProps.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { MenuItemModel } from './models/MenuItemModel
|
|
9
|
-
import { MenuSelectEvent, MenuCloseEvent } from './events
|
|
8
|
+
import { MenuItemModel } from './models/MenuItemModel';
|
|
9
|
+
import { MenuSelectEvent, MenuCloseEvent } from './events';
|
|
10
10
|
import { PopupAnimation } from '@progress/kendo-react-popup';
|
|
11
11
|
/**
|
|
12
12
|
* The properties of the [KendoReact Menu component](https://www.telerik.com/kendo-react-ui/components/layout/menu).
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { MenuProps } from '../MenuProps.js';
|
|
8
|
+
import { MenuProps } from '../MenuProps';
|
|
10
9
|
import * as React from 'react';
|
|
11
10
|
/**
|
|
12
11
|
* @hidden
|
|
@@ -15,7 +14,19 @@ export interface MenuState {
|
|
|
15
14
|
focusedItemId: string;
|
|
16
15
|
hoveredItemId: string;
|
|
17
16
|
tabbableItemId: string;
|
|
18
|
-
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Represent the `ref` of the Menu component.
|
|
20
|
+
*/
|
|
21
|
+
export interface MenuHandle {
|
|
22
|
+
/**
|
|
23
|
+
* The current element or `null` if there is no one.
|
|
24
|
+
*/
|
|
25
|
+
element: HTMLDivElement | null;
|
|
26
|
+
/**
|
|
27
|
+
* Resets the selection and opening of Menu items.
|
|
28
|
+
*/
|
|
29
|
+
reset: () => void;
|
|
19
30
|
}
|
|
20
31
|
/**
|
|
21
32
|
* Represents the [KendoReact Menu component](https://www.telerik.com/kendo-react-ui/components/layout/menu).
|
|
@@ -39,94 +50,4 @@ export interface MenuState {
|
|
|
39
50
|
* }
|
|
40
51
|
* ```
|
|
41
52
|
*/
|
|
42
|
-
export declare
|
|
43
|
-
/**
|
|
44
|
-
* @hidden
|
|
45
|
-
*/
|
|
46
|
-
static propTypes: {
|
|
47
|
-
vertical: PropTypes.Requireable<boolean>;
|
|
48
|
-
items: PropTypes.Requireable<(object | null | undefined)[]>;
|
|
49
|
-
style: PropTypes.Requireable<object>;
|
|
50
|
-
animate: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
|
|
51
|
-
openDuration: PropTypes.Requireable<number>;
|
|
52
|
-
closeDuration: PropTypes.Requireable<number>;
|
|
53
|
-
}> | null | undefined>>;
|
|
54
|
-
dir: PropTypes.Requireable<string>;
|
|
55
|
-
hoverOpenDelay: PropTypes.Requireable<number>;
|
|
56
|
-
hoverCloseDelay: PropTypes.Requireable<number>;
|
|
57
|
-
openOnClick: PropTypes.Requireable<boolean>;
|
|
58
|
-
itemRender: PropTypes.Requireable<any>;
|
|
59
|
-
linkRender: PropTypes.Requireable<any>;
|
|
60
|
-
customCloseItemIds: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
61
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
62
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
63
|
-
role: PropTypes.Requireable<string>;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* @hidden
|
|
67
|
-
*/
|
|
68
|
-
static defaultProps: {
|
|
69
|
-
vertical: boolean;
|
|
70
|
-
animate: boolean;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* @hidden
|
|
74
|
-
*/
|
|
75
|
-
readonly state: MenuState;
|
|
76
|
-
private itemHoverRequest;
|
|
77
|
-
private itemLeaveRequest;
|
|
78
|
-
private menuWrapperEl;
|
|
79
|
-
private get menuItemId();
|
|
80
|
-
private directionHolder;
|
|
81
|
-
private inputItems;
|
|
82
|
-
private items;
|
|
83
|
-
private mouseOverHandler;
|
|
84
|
-
/**
|
|
85
|
-
* The current element or `null` if there is no one.
|
|
86
|
-
*/
|
|
87
|
-
get element(): HTMLDivElement | null;
|
|
88
|
-
constructor(props: MenuProps);
|
|
89
|
-
protected get animate(): boolean;
|
|
90
|
-
/**
|
|
91
|
-
* @hidden
|
|
92
|
-
*/
|
|
93
|
-
render(): React.JSX.Element;
|
|
94
|
-
/**
|
|
95
|
-
* @hidden
|
|
96
|
-
*/
|
|
97
|
-
componentDidMount(): void;
|
|
98
|
-
/**
|
|
99
|
-
* @hidden
|
|
100
|
-
*/
|
|
101
|
-
componentDidUpdate(prevProps: MenuProps): void;
|
|
102
|
-
/**
|
|
103
|
-
* @hidden
|
|
104
|
-
*/
|
|
105
|
-
componentWillUnmount(): void;
|
|
106
|
-
/**
|
|
107
|
-
* Resets the selection and opening of Menu items.
|
|
108
|
-
*/
|
|
109
|
-
reset: () => void;
|
|
110
|
-
private handleClickOutside;
|
|
111
|
-
private onKeyDown;
|
|
112
|
-
private onItemMouseOver;
|
|
113
|
-
private onItemMouseLeave;
|
|
114
|
-
private onItemFocus;
|
|
115
|
-
private onItemClick;
|
|
116
|
-
private onPopupClose;
|
|
117
|
-
private onItemBlur;
|
|
118
|
-
private getInputItem;
|
|
119
|
-
private setFocusedItemId;
|
|
120
|
-
private setHoveredItemId;
|
|
121
|
-
private getMenuClassName;
|
|
122
|
-
private clearItemHoverAndLeaveRequestsIfApplicable;
|
|
123
|
-
private isItemWithDefaultClose;
|
|
124
|
-
private checkIsDirectionRightToLeft;
|
|
125
|
-
private prepareItems;
|
|
126
|
-
private dispatchSelectEventIfWired;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Represent the `ref` of the Menu component.
|
|
130
|
-
*/
|
|
131
|
-
export interface MenuHandle extends Pick<Menu, keyof Menu> {
|
|
132
|
-
}
|
|
53
|
+
export declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<MenuHandle>>;
|
package/menu/components/Menu.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("react"),i=require("prop-types"),M=require("@progress/kendo-react-common"),t=require("../utils/itemsIdsUtils.js"),ee=require("../utils/prepareInputItemsForInternalWork.js"),Z=require("../utils/getNewItemIdUponKeyboardNavigation.js"),B=require("../utils/hoverDelay.js"),te=require("./MenuItemInternal.js"),re=require("../utils/DirectionHolder.js"),ne=require("../utils/MouseOverHandler.js");function oe(o){const D=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const I in o)if(I!=="default"){const b=Object.getOwnPropertyDescriptor(o,I);Object.defineProperty(D,I,b.get?b:{enumerable:!0,get:()=>o[I]})}}return D.default=o,Object.freeze(D)}const n=oe(X),K={focusedItemId:t.EMPTY_ID,hoveredItemId:t.EMPTY_ID,tabbableItemId:t.ZERO_LEVEL_ZERO_ITEM_ID},S=n.forwardRef((o,D)=>{const I=n.useRef(null),b=n.useRef(null),y=n.useRef(null),R=n.useRef(new re.DirectionHolder),O=n.useRef([]),N=n.useRef([]),l=n.useRef(o);l.current=o;const[v,h]=n.useState({...K}),C=n.useRef(v);C.current=v;const w=n.useRef(()=>{}),P=n.useRef(new ne.MouseOverHandler(o.openOnClick,()=>w.current())),{items:j,inputItems:F}=ee.prepareInputItemsForInternalWork(o.items,o.children);O.current=j,N.current=F,R.current.setIsDirectionRightToLeft(V());function V(){return!!(l.current.dir!==void 0?l.current.dir==="rtl":I.current&&getComputedStyle(I.current).direction==="rtl")}const g=n.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null),y.current&&(clearTimeout(y.current),y.current=null)},[]),H=n.useCallback(()=>{g(),h({...K})},[g]);w.current=H;const E=n.useRef({get element(){return I.current},reset:()=>w.current()});n.useImperativeHandle(D,()=>E.current,[]);const m=n.useCallback(e=>{h(r=>{const c=e===t.EMPTY_ID?r.tabbableItemId:t.getRootParentId(e);return{hoveredItemId:e===t.EMPTY_ID||t.isIdEmptyOrZeroLevel(r.hoveredItemId)&&t.isIdEmptyOrZeroLevel(e)?r.hoveredItemId:t.EMPTY_ID,focusedItemId:e,tabbableItemId:c}})},[]),a=n.useCallback(e=>{h(r=>t.isIdEmptyOrZeroLevel(e)&&t.isIdEmptyOrZeroLevel(r.focusedItemId)?{hoveredItemId:e,focusedItemId:r.focusedItemId,tabbableItemId:r.tabbableItemId}:{hoveredItemId:e,focusedItemId:t.EMPTY_ID,tabbableItemId:t.ZERO_LEVEL_ZERO_ITEM_ID})},[]),f=n.useCallback(e=>t.getItemById(e,N.current),[]),T=n.useCallback((e,r)=>{M.dispatchEvent(l.current.onSelect,e,E.current,{item:f(r),itemId:r})},[f]),_=n.useCallback(e=>!l.current.customCloseItemIds||l.current.customCloseItemIds.indexOf(e)===-1,[]),Y=n.useCallback(e=>{var s,u;const r=l.current,c=C.current;if(r.openOnClick&&c.hoveredItemId!==t.EMPTY_ID){const d=e.target;((s=I.current)==null?void 0:s.contains(d))===!1&&(r.id&&((u=d.closest)!=null&&u.call(d,`[id^="${r.id}_"]`))||a(t.EMPTY_ID))}},[a]),W=n.useCallback(e=>{const r=C.current,c=l.current,s=O.current;if(r.focusedItemId!==t.EMPTY_ID){const u=t.getItemById(r.focusedItemId,s);let d=Z.getNewItemIdUponKeyboardNavigation(s,u.id,e.keyCode,e.key,c.vertical,R.current.getIsDirectionRightToLeft());const k=t.getItemById(d,s);if(k!=null&&k.separator&&(d=Z.getNewItemIdUponKeyboardNavigation(s,d,e.keyCode,e.key,c.vertical,R.current.getIsDirectionRightToLeft())),u.id!==d&&(e.preventDefault(),m(d)),(e.keyCode===M.Keys.enter||e.keyCode===M.Keys.space)&&!u.disabled&&(P.current.handleItemSelectedViaKeyboard(),T(e,u.id),!e.isDefaultPrevented()&&u.items.length===0&&u.url&&window.location.assign(u.url)),e.keyCode===M.Keys.esc&&t.isIdZeroLevel(u.id)&&c.onClose){const p=f(u.id);c.onClose({target:E.current,item:p,itemId:u.id})}}},[m,T,f]),U=n.useCallback(e=>{const r=C.current,c=l.current,s=c.openOnClick&&!t.isIdZeroLevel(e)&&r.hoveredItemId!==t.EMPTY_ID;(P.current.IsMouseOverEnabled||s)&&(g(),b.current=window.setTimeout(()=>{a(e),b.current=null},B.getHoverOpenDelay(c)))},[g,a]),A=n.useCallback(e=>{const r=C.current,c=l.current,s=c.openOnClick&&!t.isIdZeroLevel(e)&&r.hoveredItemId!==t.EMPTY_ID;(P.current.IsMouseOverEnabled||s)&&_(e)&&(g(),y.current=window.setTimeout(()=>{a(s?t.getDirectParentId(e):t.EMPTY_ID),y.current=null},B.getHoverCloseDelay(c)))},[g,_,a]),z=n.useCallback(e=>{C.current.hoveredItemId===t.EMPTY_ID?m(e):h(c=>({focusedItemId:e,hoveredItemId:c.hoveredItemId,tabbableItemId:t.getRootParentId(e)}))},[m]),G=n.useCallback((e,r)=>{const c=O.current,s=t.getItemById(r,c),u=C.current,d=l.current;if(!s.disabled){const k=t.isIdZeroLevel(r),p=!s.items||s.items.length===0;k?(m(r),p||d.openOnClick&&u.hoveredItemId!==t.EMPTY_ID&&t.getRootParentId(u.hoveredItemId)===r?a(t.EMPTY_ID):a(r)):p&&(m(r),a(t.EMPTY_ID)),T(e,r),!e.isDefaultPrevented()&&s.url&&window.location.assign(s.url)}},[m,a,T]),$=n.useCallback((e,r)=>{const c=l.current;c.onClose&&c.onClose({target:E.current,item:f(e),itemId:e,popupCloseEvent:r})},[f]),x=n.useCallback((e,r)=>{var s;const c=l.current;if(_(e)&&m(t.EMPTY_ID),((s=r.relatedTarget)==null?void 0:s.nodeName)==="LI"){const u=r.relatedTarget.getAttribute("id");if(u!=null&&u.includes(c.id))return}if(t.isIdZeroLevel(e)&&c.onClose){const u=f(e);c.onClose({target:E.current,item:u,itemId:e})}},[_,m,f]),q=n.useRef(o.vertical);n.useEffect(()=>()=>{g()},[g]),n.useEffect(()=>(o.openOnClick&&document.addEventListener("mousedown",Y),()=>{document.removeEventListener("mousedown",Y)}),[o.openOnClick,Y]),n.useEffect(()=>{const e=!!q.current!=!!o.vertical,r=R.current.hasDirectionChanged();(e||r)&&H(),P.current.OpenOnClick=o.openOnClick,q.current=o.vertical});const J=()=>M.classNames("k-reset","k-header","k-menu",{"k-menu-horizontal":!o.vertical},{"k-menu-vertical":o.vertical},o.className);let L;v.hoveredItemId?L=v.hoveredItemId:v.focusedItemId?L=t.getDirectParentId(v.focusedItemId):L=t.EMPTY_ID;const Q=o.animate!==void 0?o.animate:!0;return n.createElement("div",{id:o.id,onKeyDown:W,style:o.style,className:R.current.getIsDirectionRightToLeft()?"k-rtl":void 0,ref:I},n.createElement(te.MenuItemInternalsList,{className:J(),"aria-orientation":o.vertical?"vertical":void 0,items:O.current,animate:Q,isMenuVertical:o.vertical,isDirectionRightToLeft:R.current.getIsDirectionRightToLeft(),focusedItemId:v.focusedItemId,lastItemIdToBeOpened:L,tabbableItemId:v.tabbableItemId,itemRender:o.itemRender,linkRender:o.linkRender,menuGuid:o.id,onMouseLeave:A,onMouseOver:U,onFocus:z,onClick:G,onBlur:x,onOriginalItemNeeded:f,onPopupClose:$,role:o.role}))});S.propTypes={vertical:i.bool,items:i.arrayOf(i.object),style:i.object,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),dir:i.string,hoverOpenDelay:i.number,hoverCloseDelay:i.number,openOnClick:i.bool,itemRender:i.any,linkRender:i.any,customCloseItemIds:i.arrayOf(i.string),onSelect:i.func,onClose:i.func,role:i.string};S.displayName="Menu";exports.Menu=S;
|