@progress/kendo-react-layout 14.5.0-develop.9 → 15.0.0-develop.2
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/MenuMcpWrapper.d.ts +17 -0
- package/MenuMcpWrapper.js +8 -0
- package/MenuMcpWrapper.mjs +18 -0
- package/README.md +4 -4
- package/actionsheet/ActionSheet.js +1 -1
- package/actionsheet/ActionSheet.mjs +18 -19
- package/actionsheet/ActionSheetItem.js +1 -1
- package/actionsheet/ActionSheetItem.mjs +1 -3
- package/bottomnavigation/BottomNavigation.js +1 -1
- package/bottomnavigation/BottomNavigation.mjs +85 -69
- package/bottomnavigation/BottomNavigationItem.js +1 -1
- package/bottomnavigation/BottomNavigationItem.mjs +34 -33
- package/bottomnavigation/messages/index.d.ts +17 -0
- package/bottomnavigation/messages/index.js +8 -0
- package/bottomnavigation/messages/index.mjs +14 -0
- package/breadcrumb/Breadcrumb.js +1 -1
- package/breadcrumb/Breadcrumb.mjs +30 -28
- package/breadcrumb/BreadcrumbLink.js +1 -1
- package/breadcrumb/BreadcrumbLink.mjs +26 -26
- package/breadcrumb/messages/index.d.ts +17 -0
- package/breadcrumb/messages/index.js +8 -0
- package/breadcrumb/messages/index.mjs +14 -0
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/drawer/Drawer.js +1 -1
- package/drawer/Drawer.mjs +63 -63
- package/drawer/DrawerItem.js +1 -1
- package/drawer/DrawerItem.mjs +22 -23
- package/drawer/interfaces/DrawerProps.d.ts +8 -0
- package/expansionpanel/ExpansionPanel.js +1 -1
- package/expansionpanel/ExpansionPanel.mjs +50 -50
- package/expansionpanel/ExpansionPanelContent.js +1 -1
- package/expansionpanel/ExpansionPanelContent.mjs +7 -4
- package/index.d.mts +1 -2
- package/index.d.ts +1 -2
- package/index.js +1 -1
- package/index.mjs +128 -130
- package/menu/MenuProps.d.ts +6 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +8 -8
- package/panelbar/PanelBar.js +1 -1
- package/panelbar/PanelBar.mjs +94 -91
- package/panelbar/PanelBarItem.js +1 -1
- package/panelbar/PanelBarItem.mjs +13 -15
- package/panelbar/interfaces/PanelBarProps.d.ts +8 -0
- package/panelbar/interfaces/RenderPanelBarItem.d.ts +1 -0
- package/panelbar/util.d.ts +1 -1
- package/panelbar/util.js +1 -1
- package/panelbar/util.mjs +62 -59
- package/splitter/SplitterBar.d.ts +1 -0
- package/splitter/SplitterBar.js +1 -1
- package/splitter/SplitterBar.mjs +64 -56
- package/stepper/Step.js +1 -1
- package/stepper/Step.mjs +79 -85
- package/stepper/Stepper.js +1 -1
- package/stepper/Stepper.mjs +134 -133
- package/stepper/interfaces/StepperProps.d.ts +8 -1
- package/stepper/messages/index.d.ts +12 -2
- package/stepper/messages/index.js +1 -1
- package/stepper/messages/index.mjs +8 -4
- package/tabstrip/TabStrip.d.ts +8 -1
- package/tabstrip/TabStrip.js +1 -1
- package/tabstrip/TabStrip.mjs +126 -125
- package/tilelayout/InternalTile.js +1 -1
- package/tilelayout/InternalTile.mjs +119 -115
- package/tilelayout/TileLayout.js +1 -1
- package/tilelayout/TileLayout.mjs +58 -58
- package/timeline/TimelineCard.d.ts +2 -0
- package/timeline/TimelineCard.js +1 -1
- package/timeline/TimelineCard.mjs +16 -15
- package/timeline/TimelineHorizontal.js +1 -1
- package/timeline/TimelineHorizontal.mjs +105 -101
package/index.mjs
CHANGED
|
@@ -6,148 +6,146 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import { Menu as
|
|
10
|
-
import { TabStrip as
|
|
11
|
-
import { MenuItemInternalsList as
|
|
12
|
-
import { MenuItemArrow as l, downArrowName as s, leftArrowName as
|
|
13
|
-
import { SplitterBar as
|
|
14
|
-
import { withIdHOC as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
9
|
+
import { Menu as i } from "./menu/components/Menu.mjs";
|
|
10
|
+
import { TabStrip as r } from "./tabstrip/TabStrip.mjs";
|
|
11
|
+
import { MenuItemInternalsList as f } from "./menu/components/MenuItemInternal.mjs";
|
|
12
|
+
import { MenuItemArrow as l, downArrowName as s, leftArrowName as d, rightArrowName as S } from "./menu/components/MenuItemArrow.mjs";
|
|
13
|
+
import { SplitterBar as u } from "./splitter/SplitterBar.mjs";
|
|
14
|
+
import { withIdHOC as e } from "@progress/kendo-react-common";
|
|
15
|
+
import { MenuWrapper as A } from "./MenuMcpWrapper.mjs";
|
|
16
|
+
import { TabStripContent as b } from "./tabstrip/TabStripContent.mjs";
|
|
17
|
+
import { TabStripNavigation as h } from "./tabstrip/TabStripNavigation.mjs";
|
|
17
18
|
import { TabStripNavigationItem as y } from "./tabstrip/TabStripNavigationItem.mjs";
|
|
18
|
-
import { TabStripTab as
|
|
19
|
-
import { PanelBar as
|
|
20
|
-
import { PanelBarItem as
|
|
21
|
-
import { PanelBarUtils as
|
|
22
|
-
import { MenuItemLink as
|
|
23
|
-
import { MenuItem as
|
|
24
|
-
import { Splitter as
|
|
25
|
-
import { SplitterPane as
|
|
26
|
-
import { Card as
|
|
27
|
-
import { CardHeader as
|
|
28
|
-
import { CardTitle as
|
|
29
|
-
import { CardBody as
|
|
19
|
+
import { TabStripTab as N } from "./tabstrip/TabStripTab.mjs";
|
|
20
|
+
import { PanelBar as D } from "./panelbar/PanelBar.mjs";
|
|
21
|
+
import { PanelBarItem as M, panelBarItemDefaultProps as P } from "./panelbar/PanelBarItem.mjs";
|
|
22
|
+
import { PanelBarUtils as F, flatChildren as E, flatVisibleChildren as V, flatVisibleItems as k, getFirstId as H, getFocusedChild as O, getInitialState as G, isArrayEqual as q, isPresent as U, renderChildren as W } from "./panelbar/util.mjs";
|
|
23
|
+
import { MenuItemLink as $ } from "./menu/components/MenuItemLink.mjs";
|
|
24
|
+
import { MenuItem as z } from "./menu/components/MenuItem.mjs";
|
|
25
|
+
import { Splitter as K } from "./splitter/Splitter.mjs";
|
|
26
|
+
import { SplitterPane as R } from "./splitter/SplitterPane.mjs";
|
|
27
|
+
import { Card as Z } from "./card/Card.mjs";
|
|
28
|
+
import { CardHeader as rr } from "./card/CardHeader.mjs";
|
|
29
|
+
import { CardTitle as or } from "./card/CardTitle.mjs";
|
|
30
|
+
import { CardBody as ar } from "./card/CardBody.mjs";
|
|
30
31
|
import { CardActions as mr } from "./card/CardActions.mjs";
|
|
31
|
-
import { CardImage as
|
|
32
|
-
import { CardSubtitle as
|
|
33
|
-
import { CardFooter as
|
|
34
|
-
import { avatarType as
|
|
35
|
-
import { Avatar as
|
|
36
|
-
import { Drawer as
|
|
37
|
-
import { DrawerNavigation as
|
|
38
|
-
import { DrawerContent as
|
|
39
|
-
import { DrawerItem as
|
|
40
|
-
import { Stepper as
|
|
41
|
-
import { Step as
|
|
42
|
-
import { AppBar as
|
|
43
|
-
import { AppBarSection as
|
|
44
|
-
import { AppBarSpacer as
|
|
45
|
-
import { TileLayout as
|
|
46
|
-
import { BottomNavigation as
|
|
47
|
-
import { BottomNavigationItem as
|
|
48
|
-
import { StackLayout as
|
|
49
|
-
import { GridLayout as
|
|
50
|
-
import { GridLayoutItem as
|
|
51
|
-
import { Breadcrumb as
|
|
52
|
-
import { BreadcrumbOrderedList as
|
|
53
|
-
import { BreadcrumbListItem as
|
|
54
|
-
import { BreadcrumbDelimiter as
|
|
55
|
-
import { BreadcrumbLink as
|
|
56
|
-
import { ActionSheet as
|
|
57
|
-
import { ActionSheetItem as
|
|
58
|
-
import { ActionSheetView as
|
|
32
|
+
import { CardImage as nr } from "./card/CardImage.mjs";
|
|
33
|
+
import { CardSubtitle as xr } from "./card/CardSubtitle.mjs";
|
|
34
|
+
import { CardFooter as sr } from "./card/CardFooter.mjs";
|
|
35
|
+
import { avatarType as Sr, cardActionsLayout as cr, cardOrientation as ur, cardType as Cr } from "./card/interfaces/Enums.mjs";
|
|
36
|
+
import { Avatar as Ir } from "./card/Avatar.mjs";
|
|
37
|
+
import { Drawer as Br } from "./drawer/Drawer.mjs";
|
|
38
|
+
import { DrawerNavigation as Tr } from "./drawer/DrawerNavigation.mjs";
|
|
39
|
+
import { DrawerContent as wr } from "./drawer/DrawerContent.mjs";
|
|
40
|
+
import { DrawerItem as gr } from "./drawer/DrawerItem.mjs";
|
|
41
|
+
import { Stepper as Lr } from "./stepper/Stepper.mjs";
|
|
42
|
+
import { Step as Pr } from "./stepper/Step.mjs";
|
|
43
|
+
import { AppBar as Fr } from "./appbar/AppBar.mjs";
|
|
44
|
+
import { AppBarSection as Vr } from "./appbar/AppBarSection.mjs";
|
|
45
|
+
import { AppBarSpacer as Hr } from "./appbar/AppBarSpacer.mjs";
|
|
46
|
+
import { TileLayout as Gr } from "./tilelayout/TileLayout.mjs";
|
|
47
|
+
import { BottomNavigation as Ur } from "./bottomnavigation/BottomNavigation.mjs";
|
|
48
|
+
import { BottomNavigationItem as Yr } from "./bottomnavigation/BottomNavigationItem.mjs";
|
|
49
|
+
import { StackLayout as jr } from "./stacklayout/StackLayout.mjs";
|
|
50
|
+
import { GridLayout as Jr } from "./gridlayout/GridLayout.mjs";
|
|
51
|
+
import { GridLayoutItem as Qr } from "./gridlayout/GridLayoutItem.mjs";
|
|
52
|
+
import { Breadcrumb as Xr } from "./breadcrumb/Breadcrumb.mjs";
|
|
53
|
+
import { BreadcrumbOrderedList as _r } from "./breadcrumb/BreadcrumbOrderedList.mjs";
|
|
54
|
+
import { BreadcrumbListItem as ee } from "./breadcrumb/BreadcrumbListItem.mjs";
|
|
55
|
+
import { BreadcrumbDelimiter as te } from "./breadcrumb/BreadcrumbDelimiter.mjs";
|
|
56
|
+
import { BreadcrumbLink as pe } from "./breadcrumb/BreadcrumbLink.mjs";
|
|
57
|
+
import { ActionSheet as ie, actionSheetDefaultProps as ne } from "./actionsheet/ActionSheet.mjs";
|
|
58
|
+
import { ActionSheetItem as xe } from "./actionsheet/ActionSheetItem.mjs";
|
|
59
|
+
import { ActionSheetView as se, ActionSheetViewDisplayName as de } from "./actionsheet/ActionSheetView.mjs";
|
|
59
60
|
import { ActionSheetHeader as ce, headerDisplayName as ue } from "./actionsheet/ActionSheetHeader.mjs";
|
|
60
|
-
import { ActionSheetContent as
|
|
61
|
-
import { ActionSheetFooter as
|
|
61
|
+
import { ActionSheetContent as Ae, contentDisplayName as Ie } from "./actionsheet/ActionSheetContent.mjs";
|
|
62
|
+
import { ActionSheetFooter as Be, footerDisplayName as he } from "./actionsheet/ActionSheetFooter.mjs";
|
|
62
63
|
import { Timeline as ye } from "./timeline/Timeline.mjs";
|
|
63
|
-
import { addYearsFlags as
|
|
64
|
-
import { ContextMenu as
|
|
65
|
-
import { ExpansionPanel as
|
|
66
|
-
import { ExpansionPanelContent as
|
|
67
|
-
const
|
|
68
|
-
e.displayName = "KendoReactMenu";
|
|
69
|
-
const i = r(t);
|
|
70
|
-
e.displayName = "KendoReactMenu";
|
|
64
|
+
import { addYearsFlags as Ne, sortEventList as ge } from "./timeline/utils.mjs";
|
|
65
|
+
import { ContextMenu as Le } from "./contextmenu/ContextMenu.mjs";
|
|
66
|
+
import { ExpansionPanel as Pe } from "./expansionpanel/ExpansionPanel.mjs";
|
|
67
|
+
import { ExpansionPanelContent as Fe } from "./expansionpanel/ExpansionPanelContent.mjs";
|
|
68
|
+
const a = e(r);
|
|
71
69
|
export {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
ie as ActionSheet,
|
|
71
|
+
Ae as ActionSheetContent,
|
|
72
|
+
Be as ActionSheetFooter,
|
|
75
73
|
ce as ActionSheetHeader,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
74
|
+
xe as ActionSheetItem,
|
|
75
|
+
se as ActionSheetView,
|
|
76
|
+
de as ActionSheetViewDisplayName,
|
|
77
|
+
Fr as AppBar,
|
|
78
|
+
Vr as AppBarSection,
|
|
79
|
+
Hr as AppBarSpacer,
|
|
80
|
+
Ir as Avatar,
|
|
81
|
+
Ur as BottomNavigation,
|
|
82
|
+
Yr as BottomNavigationItem,
|
|
83
|
+
Xr as Breadcrumb,
|
|
84
|
+
te as BreadcrumbDelimiter,
|
|
85
|
+
pe as BreadcrumbLink,
|
|
86
|
+
ee as BreadcrumbListItem,
|
|
87
|
+
_r as BreadcrumbOrderedList,
|
|
88
|
+
Z as Card,
|
|
91
89
|
mr as CardActions,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
90
|
+
ar as CardBody,
|
|
91
|
+
sr as CardFooter,
|
|
92
|
+
rr as CardHeader,
|
|
93
|
+
nr as CardImage,
|
|
94
|
+
xr as CardSubtitle,
|
|
95
|
+
or as CardTitle,
|
|
96
|
+
Le as ContextMenu,
|
|
97
|
+
Br as Drawer,
|
|
98
|
+
wr as DrawerContent,
|
|
99
|
+
gr as DrawerItem,
|
|
100
|
+
Tr as DrawerNavigation,
|
|
101
|
+
Pe as ExpansionPanel,
|
|
102
|
+
Fe as ExpansionPanelContent,
|
|
103
|
+
Jr as GridLayout,
|
|
104
|
+
Qr as GridLayoutItem,
|
|
105
|
+
A as Menu,
|
|
106
|
+
i as MenuClassComponent,
|
|
107
|
+
z as MenuItem,
|
|
110
108
|
l as MenuItemArrow,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
109
|
+
f as MenuItemInternalsList,
|
|
110
|
+
$ as MenuItemLink,
|
|
111
|
+
D as PanelBar,
|
|
112
|
+
M as PanelBarItem,
|
|
113
|
+
F as PanelBarUtils,
|
|
114
|
+
K as Splitter,
|
|
115
|
+
u as SplitterBar,
|
|
116
|
+
R as SplitterPane,
|
|
117
|
+
jr as StackLayout,
|
|
118
|
+
Pr as Step,
|
|
119
|
+
Lr as Stepper,
|
|
120
|
+
a as TabStrip,
|
|
121
|
+
r as TabStripClassComponent,
|
|
122
|
+
b as TabStripContent,
|
|
123
|
+
h as TabStripNavigation,
|
|
126
124
|
y as TabStripNavigationItem,
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
N as TabStripTab,
|
|
126
|
+
Gr as TileLayout,
|
|
129
127
|
ye as Timeline,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
ne as actionSheetDefaultProps,
|
|
129
|
+
Ne as addYearsFlags,
|
|
130
|
+
Sr as avatarType,
|
|
133
131
|
cr as cardActionsLayout,
|
|
134
132
|
ur as cardOrientation,
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
Cr as cardType,
|
|
134
|
+
Ie as contentDisplayName,
|
|
137
135
|
s as downArrowName,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
136
|
+
E as flatChildren,
|
|
137
|
+
V as flatVisibleChildren,
|
|
138
|
+
k as flatVisibleItems,
|
|
139
|
+
he as footerDisplayName,
|
|
140
|
+
H as getFirstId,
|
|
141
|
+
O as getFocusedChild,
|
|
142
|
+
G as getInitialState,
|
|
145
143
|
ue as headerDisplayName,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
144
|
+
q as isArrayEqual,
|
|
145
|
+
U as isPresent,
|
|
146
|
+
d as leftArrowName,
|
|
147
|
+
P as panelBarItemDefaultProps,
|
|
148
|
+
W as renderChildren,
|
|
149
|
+
S as rightArrowName,
|
|
150
|
+
ge as sortEventList
|
|
153
151
|
};
|
package/menu/MenuProps.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import { MenuItemModel } from './models/MenuItemModel';
|
|
9
9
|
import { MenuSelectEvent, MenuCloseEvent } from './events';
|
|
10
10
|
import { PopupAnimation } from '@progress/kendo-react-popup';
|
|
11
|
+
import { WebMcpProps } from '@progress/kendo-react-common';
|
|
11
12
|
/**
|
|
12
13
|
* The properties of the [KendoReact Menu component](https://www.telerik.com/kendo-react-ui/components/layout/menu).
|
|
13
14
|
*/
|
|
@@ -189,4 +190,9 @@ export interface MenuProps {
|
|
|
189
190
|
* ```
|
|
190
191
|
*/
|
|
191
192
|
onClose?: (event: MenuCloseEvent) => void;
|
|
193
|
+
/**
|
|
194
|
+
* Enables Web MCP tool registration for this component.
|
|
195
|
+
* Requires a parent `WebMcpProvider` from `@progress/kendo-react-webmcp`.
|
|
196
|
+
*/
|
|
197
|
+
webMcp?: boolean | WebMcpProps;
|
|
192
198
|
}
|
package/package-metadata.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 e=Object.freeze({name:"@progress/kendo-react-layout",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-layout",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1779253013,version:"15.0.0-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = Object.freeze({
|
|
|
7
7
|
productName: 'KendoReact',
|
|
8
8
|
productCode: 'KENDOUIREACT',
|
|
9
9
|
productCodes: ['KENDOUIREACT'],
|
|
10
|
-
publishDate:
|
|
11
|
-
version: '
|
|
10
|
+
publishDate: 1779253013,
|
|
11
|
+
version: '15.0.0-develop.2',
|
|
12
12
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
|
|
13
13
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-layout",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0-develop.2",
|
|
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",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@progress/kendo-licensing": "^1.7.2",
|
|
29
|
-
"@progress/kendo-react-animation": "
|
|
30
|
-
"@progress/kendo-react-buttons": "
|
|
31
|
-
"@progress/kendo-react-common": "
|
|
32
|
-
"@progress/kendo-react-intl": "
|
|
33
|
-
"@progress/kendo-react-popup": "
|
|
34
|
-
"@progress/kendo-react-progressbars": "
|
|
29
|
+
"@progress/kendo-react-animation": "15.0.0-develop.2",
|
|
30
|
+
"@progress/kendo-react-buttons": "15.0.0-develop.2",
|
|
31
|
+
"@progress/kendo-react-common": "15.0.0-develop.2",
|
|
32
|
+
"@progress/kendo-react-intl": "15.0.0-develop.2",
|
|
33
|
+
"@progress/kendo-react-popup": "15.0.0-develop.2",
|
|
34
|
+
"@progress/kendo-react-progressbars": "15.0.0-develop.2",
|
|
35
35
|
"@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
|
|
36
36
|
"react": "^18.0.0 || ^19.0.0",
|
|
37
37
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"package": {
|
|
77
77
|
"productName": "KendoReact",
|
|
78
78
|
"productCode": "KENDOUIREACT",
|
|
79
|
-
"publishDate":
|
|
79
|
+
"publishDate": 1779253013,
|
|
80
80
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
81
81
|
}
|
|
82
82
|
},
|
package/panelbar/PanelBar.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 Q=require("react"),m=require("prop-types"),L=require("./PanelBarItem.js"),b=require("./util.js"),d=require("@progress/kendo-react-common"),a=require("./interfaces/NavigationAction.js");function X(o){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const k=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(c,r,k.get?k:{enumerable:!0,get:()=>o[r]})}}return c.default=o,Object.freeze(c)}const i=X(Q),w=o=>{const{animation:c=!0,children:r,dir:k,selected:I,expanded:U,expandMode:R="multiple",className:D,keepItemsMounted:S=!1,onSelect:x,style:j,isControlled:W}=o,K=i.useRef(null),_=i.useRef(null),T=i.useRef(void 0),N=i.useRef(null);d.useWebMcpRegister("panelbar",_,o,o.webMcp);const[p,g]=i.useState(()=>{const t=R||"multiple",u=b.getInitialState(o,t);return u.focused||(u.focused=b.getFirstId(o)),u}),B=R||"multiple",M=I!==void 0?I:p.selected,h=W?U||[]:p.expanded,F=i.useCallback(t=>{N.current=window.setTimeout(()=>t())},[]),C=i.useCallback(t=>{const u=A,s=b.flatChildren(i.Children.toArray(u));let n,l;switch(s.forEach(e=>{e.props.uniquePrivateKey===(t.uniquePrivateKey||p.focused)&&(n=e)}),B){case"single":l=[...n.props.parentUniquePrivateKey,n.props.uniquePrivateKey],b.isArrayEqual(h,l)&&(n.props.parentUniquePrivateKey?l=[...n.props.parentUniquePrivateKey]:l=[]);break;case"multiple":{l=h.slice();const e=l.indexOf(n.props.uniquePrivateKey);e===-1?l.push(n.props.uniquePrivateKey):l.splice(e,1);break}default:l=h.slice();break}g(e=>({...e,selected:n.props.uniquePrivateKey,expanded:l})),x&&x({target:n,expandedItems:l})},[r,p.focused,B,h,x]),f=i.useCallback((t,u=0,s)=>{const n=A,l=b.flatVisibleChildren(i.Children.toArray(n)),e=b.getFocusedChild(l,u,t,p.focused,s);if(e){const v=h.slice();if(s===a.NavigationAction.Right&&e&&e.props&&e.props.children&&e.props.children.length>0){if(v.push(e.props.uniquePrivateKey),g(y=>({...y,expanded:[...new Set(v)]})),e.props.expanded){const y=e.props.children[0];g(P=>({...P,focused:y.props.uniquePrivateKey}))}}else if(s===a.NavigationAction.Left&&(e&&e.props&&e.props.parentUniquePrivateKey&&e.props.parentUniquePrivateKey.length>0||e&&e.props&&!e.props.disabled&&e.props.children&&e.props.children.length>0)){const y=e.props.parentUniquePrivateKey;if(e.props.expanded){const P=e.props.uniquePrivateKey,q=v.indexOf(P);v.splice(q,1),g(J=>({...J,expanded:v}))}else if(e.props.level>0){const P=e.props.parentUniquePrivateKey[y.length-1];g(q=>({...q,focused:P}))}}else g(y=>({...y,focused:e.props.uniquePrivateKey}))}},[r,p.focused,h]),E=i.useCallback(t=>{C(t),f(t)},[C,f]),A=i.useMemo(()=>b.renderChildren({animation:c,keepItemsMounted:S,state:{...p,selected:M},expanded:h,handleSelect:E,children:r,activeDescendantRef:T}),[c,S,p,M,h,r,E]),O=i.useCallback((t,u)=>{let s;switch(u){case a.NavigationAction.First:f(t,s,a.NavigationAction.First);break;case a.NavigationAction.Last:f(t,s,a.NavigationAction.Last);break;case a.NavigationAction.Left:f(t,s,a.NavigationAction.Left);break;case a.NavigationAction.Right:f(t,s,a.NavigationAction.Right);break;case a.NavigationAction.Previous:s=-1,f(t,s);break;case a.NavigationAction.Next:s=1,f(t,s);break;case a.NavigationAction.Toggle:C(t);break}},[f,C]),$=i.useCallback(()=>{clearTimeout(N.current),p.wrapperFocused||g(t=>({...t,wrapperFocused:!0}))},[p.wrapperFocused]),z=i.useCallback(()=>{F(()=>{g(t=>({...t,wrapperFocused:!1}))})},[F]),H=i.useCallback(t=>{const u=K.current&&getComputedStyle(K.current).direction==="rtl"||!1;if(t.target===t.currentTarget){const s=t.keyCode;let n;switch(s){case d.Keys.left:n=u?a.NavigationAction.Right:a.NavigationAction.Left;break;case d.Keys.up:n=a.NavigationAction.Previous;break;case d.Keys.right:n=u?a.NavigationAction.Left:a.NavigationAction.Right;break;case d.Keys.down:n=a.NavigationAction.Next;break;case d.Keys.home:n=a.NavigationAction.First;break;case d.Keys.end:n=a.NavigationAction.Last;break;case d.Keys.space:case d.Keys.enter:n=a.NavigationAction.Toggle;break;default:n=null;break}n!==null&&(t.preventDefault(),O(t,n))}},[O]);i.useEffect(()=>()=>{N.current&&clearTimeout(N.current)},[]);const V={"aria-activedescendant":T.current},G=d.classNames("k-panelbar",D);return i.createElement("ul",{ref:K,dir:k,role:"tree",tabIndex:0,onKeyDown:H,onFocus:$,onBlur:z,className:G,style:j,...V},A)};w.propTypes={children:m.oneOfType([m.arrayOf(function(o,c){return o[c].type!==L.PanelBarItem?new Error("PanelBar children should be either PanelBarItem or an array of PanelBarItem."):null}),function(o,c){const r=o[c];return r&&r.type!==L.PanelBarItem?new Error("PanelBar children should be either PanelBarItem or an array of PanelBarItem."):null}]),selected:m.string,expandMode(o,c){const r=o[c];return r!=="single"&&r!=="multiple"&&r!=="default"?new Error(`Invalid value '${r}' given to '${c}'. It must be either 'single', 'multiple' or 'default'.`):null},animation:m.bool,keepItemsMounted:m.bool,onSelect:m.func};w.defaultProps={expandMode:"multiple",animation:!0,keepItemsMounted:!1};exports.PanelBar=w;
|