@progress/kendo-react-layout 14.0.0-develop.1 → 14.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/dist/cdn/js/kendo-react-layout.js +1 -1
- package/index.d.mts +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -1
- package/index.mjs +105 -104
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +1 -1
- package/package.json +10 -10
- package/panelbar/PanelBar.d.ts +4 -65
- package/panelbar/PanelBar.js +1 -1
- package/panelbar/PanelBar.mjs +182 -161
- package/panelbar/PanelBarItem.d.ts +8 -46
- package/panelbar/PanelBarItem.js +1 -1
- package/panelbar/PanelBarItem.mjs +125 -119
- package/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +2 -2
- package/panelbar/interfaces/PanelBarItemHandle.d.ts +17 -0
package/index.d.mts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './panelbar/interfaces/PanelBarProps.js';
|
|
|
27
27
|
export * from './panelbar/interfaces/PanelBarItemProps.js';
|
|
28
28
|
export * from './panelbar/interfaces/RenderPanelBarItem.js';
|
|
29
29
|
export * from './panelbar/interfaces/PanelBarSelectEventArguments.js';
|
|
30
|
+
export * from './panelbar/interfaces/PanelBarItemHandle.js';
|
|
30
31
|
export * from './menu/components/MenuItemLink.js';
|
|
31
32
|
export * from './menu/components/MenuItem.js';
|
|
32
33
|
export * from './menu/components/MenuItemArrow.js';
|
package/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './panelbar/interfaces/PanelBarProps.js';
|
|
|
27
27
|
export * from './panelbar/interfaces/PanelBarItemProps.js';
|
|
28
28
|
export * from './panelbar/interfaces/RenderPanelBarItem.js';
|
|
29
29
|
export * from './panelbar/interfaces/PanelBarSelectEventArguments.js';
|
|
30
|
+
export * from './panelbar/interfaces/PanelBarItemHandle.js';
|
|
30
31
|
export * from './menu/components/MenuItemLink.js';
|
|
31
32
|
export * from './menu/components/MenuItem.js';
|
|
32
33
|
export * from './menu/components/MenuItemArrow.js';
|
package/index.js
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./menu/components/Menu.js"),n=require("./tabstrip/TabStrip.js"),
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./menu/components/Menu.js"),n=require("./tabstrip/TabStrip.js"),S=require("./menu/components/MenuItemInternal.js"),t=require("./menu/components/MenuItemArrow.js"),q=require("./splitter/SplitterBar.js"),o=require("@progress/kendo-react-common"),C=require("./tabstrip/TabStripContent.js"),I=require("./tabstrip/TabStripNavigation.js"),A=require("./tabstrip/TabStripNavigationItem.js"),b=require("./tabstrip/TabStripTab.js"),B=require("./panelbar/PanelBar.js"),s=require("./panelbar/PanelBarItem.js"),e=require("./panelbar/util.js"),h=require("./menu/components/MenuItemLink.js"),y=require("./menu/components/MenuItem.js"),T=require("./splitter/Splitter.js"),g=require("./splitter/SplitterPane.js"),N=require("./card/Card.js"),w=require("./card/CardHeader.js"),L=require("./card/CardTitle.js"),D=require("./card/CardBody.js"),P=require("./card/CardActions.js"),M=require("./card/CardImage.js"),v=require("./card/CardSubtitle.js"),f=require("./card/CardFooter.js"),r=require("./card/interfaces/Enums.js"),F=require("./card/Avatar.js"),E=require("./drawer/Drawer.js"),k=require("./drawer/DrawerNavigation.js"),x=require("./drawer/DrawerContent.js"),O=require("./drawer/DrawerItem.js"),V=require("./stepper/Stepper.js"),H=require("./stepper/Step.js"),G=require("./appbar/AppBar.js"),R=require("./appbar/AppBarSection.js"),j=require("./appbar/AppBarSpacer.js"),K=require("./tilelayout/TileLayout.js"),U=require("./bottomnavigation/BottomNavigation.js"),Y=require("./bottomnavigation/BottomNavigationItem.js"),$=require("./stacklayout/StackLayout.js"),z=require("./gridlayout/GridLayout.js"),J=require("./gridlayout/GridLayoutItem.js"),Q=require("./breadcrumb/Breadcrumb.js"),W=require("./breadcrumb/BreadcrumbOrderedList.js"),X=require("./breadcrumb/BreadcrumbListItem.js"),Z=require("./breadcrumb/BreadcrumbDelimiter.js"),_=require("./breadcrumb/BreadcrumbLink.js"),u=require("./actionsheet/ActionSheet.js"),ee=require("./actionsheet/ActionSheetItem.js"),c=require("./actionsheet/ActionSheetView.js"),d=require("./actionsheet/ActionSheetHeader.js"),l=require("./actionsheet/ActionSheetContent.js"),m=require("./actionsheet/ActionSheetFooter.js"),te=require("./timeline/Timeline.js"),p=require("./timeline/utils.js"),re=require("./contextmenu/ContextMenu.js"),ae=require("./expansionpanel/ExpansionPanel.js"),ie=require("./expansionpanel/ExpansionPanelContent.js"),a=o.withIdHOC(i.Menu);a.displayName="KendoReactMenu";const ne=o.withIdHOC(n.TabStrip);a.displayName="KendoReactMenu";exports.MenuClassComponent=i.Menu;exports.TabStripClassComponent=n.TabStrip;exports.MenuItemInternalsList=S.MenuItemInternalsList;exports.MenuItemArrow=t.MenuItemArrow;exports.downArrowName=t.downArrowName;exports.leftArrowName=t.leftArrowName;exports.rightArrowName=t.rightArrowName;exports.SplitterBar=q.SplitterBar;exports.TabStripContent=C.TabStripContent;exports.TabStripNavigation=I.TabStripNavigation;exports.TabStripNavigationItem=A.TabStripNavigationItem;exports.TabStripTab=b.TabStripTab;exports.PanelBar=B.PanelBar;exports.PanelBarItem=s.PanelBarItem;exports.panelBarItemDefaultProps=s.panelBarItemDefaultProps;Object.defineProperty(exports,"PanelBarUtils",{enumerable:!0,get:()=>e.PanelBarUtils});exports.flatChildren=e.flatChildren;exports.flatVisibleChildren=e.flatVisibleChildren;exports.flatVisibleItems=e.flatVisibleItems;exports.getFirstId=e.getFirstId;exports.getFocusedChild=e.getFocusedChild;exports.getInitialState=e.getInitialState;exports.isArrayEqual=e.isArrayEqual;exports.isPresent=e.isPresent;exports.renderChildren=e.renderChildren;exports.MenuItemLink=h.MenuItemLink;exports.MenuItem=y.MenuItem;exports.Splitter=T.Splitter;exports.SplitterPane=g.SplitterPane;exports.Card=N.Card;exports.CardHeader=w.CardHeader;exports.CardTitle=L.CardTitle;exports.CardBody=D.CardBody;exports.CardActions=P.CardActions;exports.CardImage=M.CardImage;exports.CardSubtitle=v.CardSubtitle;exports.CardFooter=f.CardFooter;exports.avatarType=r.avatarType;exports.cardActionsLayout=r.cardActionsLayout;exports.cardOrientation=r.cardOrientation;exports.cardType=r.cardType;exports.Avatar=F.Avatar;exports.Drawer=E.Drawer;exports.DrawerNavigation=k.DrawerNavigation;exports.DrawerContent=x.DrawerContent;exports.DrawerItem=O.DrawerItem;exports.Stepper=V.Stepper;exports.Step=H.Step;exports.AppBar=G.AppBar;exports.AppBarSection=R.AppBarSection;exports.AppBarSpacer=j.AppBarSpacer;exports.TileLayout=K.TileLayout;exports.BottomNavigation=U.BottomNavigation;exports.BottomNavigationItem=Y.BottomNavigationItem;exports.StackLayout=$.StackLayout;exports.GridLayout=z.GridLayout;exports.GridLayoutItem=J.GridLayoutItem;exports.Breadcrumb=Q.Breadcrumb;exports.BreadcrumbOrderedList=W.BreadcrumbOrderedList;exports.BreadcrumbListItem=X.BreadcrumbListItem;exports.BreadcrumbDelimiter=Z.BreadcrumbDelimiter;exports.BreadcrumbLink=_.BreadcrumbLink;exports.ActionSheet=u.ActionSheet;exports.actionSheetDefaultProps=u.actionSheetDefaultProps;exports.ActionSheetItem=ee.ActionSheetItem;exports.ActionSheetView=c.ActionSheetView;exports.ActionSheetViewDisplayName=c.ActionSheetViewDisplayName;exports.ActionSheetHeader=d.ActionSheetHeader;exports.headerDisplayName=d.headerDisplayName;exports.ActionSheetContent=l.ActionSheetContent;exports.contentDisplayName=l.contentDisplayName;exports.ActionSheetFooter=m.ActionSheetFooter;exports.footerDisplayName=m.footerDisplayName;exports.Timeline=te.Timeline;exports.addYearsFlags=p.addYearsFlags;exports.sortEventList=p.sortEventList;exports.ContextMenu=re.ContextMenu;exports.ExpansionPanel=ae.ExpansionPanel;exports.ExpansionPanelContent=ie.ExpansionPanelContent;exports.Menu=a;exports.TabStrip=ne;
|
package/index.mjs
CHANGED
|
@@ -9,59 +9,59 @@
|
|
|
9
9
|
import { Menu as o } from "./menu/components/Menu.mjs";
|
|
10
10
|
import { TabStrip as t } from "./tabstrip/TabStrip.mjs";
|
|
11
11
|
import { MenuItemInternalsList as x } from "./menu/components/MenuItemInternal.mjs";
|
|
12
|
-
import { MenuItemArrow as
|
|
12
|
+
import { MenuItemArrow as l, downArrowName as s, leftArrowName as c, rightArrowName as u } from "./menu/components/MenuItemArrow.mjs";
|
|
13
13
|
import { SplitterBar as C } from "./splitter/SplitterBar.mjs";
|
|
14
14
|
import { withIdHOC as r } from "@progress/kendo-react-common";
|
|
15
|
-
import { TabStripContent as
|
|
16
|
-
import { TabStripNavigation as
|
|
17
|
-
import { TabStripNavigationItem as
|
|
15
|
+
import { TabStripContent as I } from "./tabstrip/TabStripContent.mjs";
|
|
16
|
+
import { TabStripNavigation as B } from "./tabstrip/TabStripNavigation.mjs";
|
|
17
|
+
import { TabStripNavigationItem as y } from "./tabstrip/TabStripNavigationItem.mjs";
|
|
18
18
|
import { TabStripTab as T } from "./tabstrip/TabStripTab.mjs";
|
|
19
19
|
import { PanelBar as g } from "./panelbar/PanelBar.mjs";
|
|
20
|
-
import { PanelBarItem as M } from "./panelbar/PanelBarItem.mjs";
|
|
21
|
-
import { PanelBarUtils as v, flatChildren 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
|
|
30
|
-
import { CardActions as
|
|
31
|
-
import { CardImage as
|
|
32
|
-
import { CardSubtitle as
|
|
33
|
-
import { CardFooter as
|
|
34
|
-
import { avatarType as sr, cardActionsLayout as
|
|
35
|
-
import { Avatar as
|
|
20
|
+
import { PanelBarItem as L, panelBarItemDefaultProps as M } from "./panelbar/PanelBarItem.mjs";
|
|
21
|
+
import { PanelBarUtils as v, flatChildren as F, flatVisibleChildren as E, flatVisibleItems as V, getFirstId as k, getFocusedChild as H, getInitialState as O, isArrayEqual as G, isPresent as K, renderChildren as R } from "./panelbar/util.mjs";
|
|
22
|
+
import { MenuItemLink as q } from "./menu/components/MenuItemLink.mjs";
|
|
23
|
+
import { MenuItem as Y } from "./menu/components/MenuItem.mjs";
|
|
24
|
+
import { Splitter as z } from "./splitter/Splitter.mjs";
|
|
25
|
+
import { SplitterPane as Q } from "./splitter/SplitterPane.mjs";
|
|
26
|
+
import { Card as X } from "./card/Card.mjs";
|
|
27
|
+
import { CardHeader as _ } from "./card/CardHeader.mjs";
|
|
28
|
+
import { CardTitle as er } from "./card/CardTitle.mjs";
|
|
29
|
+
import { CardBody as tr } from "./card/CardBody.mjs";
|
|
30
|
+
import { CardActions as mr } from "./card/CardActions.mjs";
|
|
31
|
+
import { CardImage as ir } from "./card/CardImage.mjs";
|
|
32
|
+
import { CardSubtitle as fr } from "./card/CardSubtitle.mjs";
|
|
33
|
+
import { CardFooter as dr } from "./card/CardFooter.mjs";
|
|
34
|
+
import { avatarType as sr, cardActionsLayout as cr, cardOrientation as ur, cardType as Sr } from "./card/interfaces/Enums.mjs";
|
|
35
|
+
import { Avatar as Ar } from "./card/Avatar.mjs";
|
|
36
36
|
import { Drawer as br } from "./drawer/Drawer.mjs";
|
|
37
37
|
import { DrawerNavigation as hr } from "./drawer/DrawerNavigation.mjs";
|
|
38
|
-
import { DrawerContent as
|
|
39
|
-
import { DrawerItem as
|
|
40
|
-
import { Stepper as
|
|
38
|
+
import { DrawerContent as Nr } from "./drawer/DrawerContent.mjs";
|
|
39
|
+
import { DrawerItem as wr } from "./drawer/DrawerItem.mjs";
|
|
40
|
+
import { Stepper as Dr } from "./stepper/Stepper.mjs";
|
|
41
41
|
import { Step as Mr } from "./stepper/Step.mjs";
|
|
42
42
|
import { AppBar as vr } from "./appbar/AppBar.mjs";
|
|
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
|
|
59
|
-
import { ActionSheetHeader as
|
|
60
|
-
import { ActionSheetContent as
|
|
61
|
-
import { ActionSheetFooter as be, footerDisplayName as
|
|
43
|
+
import { AppBarSection as Er } from "./appbar/AppBarSection.mjs";
|
|
44
|
+
import { AppBarSpacer as kr } from "./appbar/AppBarSpacer.mjs";
|
|
45
|
+
import { TileLayout as Or } from "./tilelayout/TileLayout.mjs";
|
|
46
|
+
import { BottomNavigation as Kr } from "./bottomnavigation/BottomNavigation.mjs";
|
|
47
|
+
import { BottomNavigationItem as $r } from "./bottomnavigation/BottomNavigationItem.mjs";
|
|
48
|
+
import { StackLayout as Ur } from "./stacklayout/StackLayout.mjs";
|
|
49
|
+
import { GridLayout as jr } from "./gridlayout/GridLayout.mjs";
|
|
50
|
+
import { GridLayoutItem as Jr } from "./gridlayout/GridLayoutItem.mjs";
|
|
51
|
+
import { Breadcrumb as Wr } from "./breadcrumb/Breadcrumb.mjs";
|
|
52
|
+
import { BreadcrumbOrderedList as Zr } from "./breadcrumb/BreadcrumbOrderedList.mjs";
|
|
53
|
+
import { BreadcrumbListItem as re } from "./breadcrumb/BreadcrumbListItem.mjs";
|
|
54
|
+
import { BreadcrumbDelimiter as oe } from "./breadcrumb/BreadcrumbDelimiter.mjs";
|
|
55
|
+
import { BreadcrumbLink as ae } from "./breadcrumb/BreadcrumbLink.mjs";
|
|
56
|
+
import { ActionSheet as pe, actionSheetDefaultProps as ie } from "./actionsheet/ActionSheet.mjs";
|
|
57
|
+
import { ActionSheetItem as fe } from "./actionsheet/ActionSheetItem.mjs";
|
|
58
|
+
import { ActionSheetView as de, ActionSheetViewDisplayName as le } from "./actionsheet/ActionSheetView.mjs";
|
|
59
|
+
import { ActionSheetHeader as ce, headerDisplayName as ue } from "./actionsheet/ActionSheetHeader.mjs";
|
|
60
|
+
import { ActionSheetContent as Ce, contentDisplayName as Ae } from "./actionsheet/ActionSheetContent.mjs";
|
|
61
|
+
import { ActionSheetFooter as be, footerDisplayName as Be } from "./actionsheet/ActionSheetFooter.mjs";
|
|
62
62
|
import { Timeline as ye } from "./timeline/Timeline.mjs";
|
|
63
|
-
import { addYearsFlags as
|
|
64
|
-
import { ContextMenu as
|
|
63
|
+
import { addYearsFlags as Te, sortEventList as we } from "./timeline/utils.mjs";
|
|
64
|
+
import { ContextMenu as De } from "./contextmenu/ContextMenu.mjs";
|
|
65
65
|
import { ExpansionPanel as Me } from "./expansionpanel/ExpansionPanel.mjs";
|
|
66
66
|
import { ExpansionPanelContent as ve } from "./expansionpanel/ExpansionPanelContent.mjs";
|
|
67
67
|
const e = r(o);
|
|
@@ -69,84 +69,85 @@ e.displayName = "KendoReactMenu";
|
|
|
69
69
|
const i = r(t);
|
|
70
70
|
e.displayName = "KendoReactMenu";
|
|
71
71
|
export {
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
pe as ActionSheet,
|
|
73
|
+
Ce as ActionSheetContent,
|
|
74
74
|
be as ActionSheetFooter,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
ce as ActionSheetHeader,
|
|
76
|
+
fe as ActionSheetItem,
|
|
77
|
+
de as ActionSheetView,
|
|
78
|
+
le as ActionSheetViewDisplayName,
|
|
79
79
|
vr as AppBar,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
80
|
+
Er as AppBarSection,
|
|
81
|
+
kr as AppBarSpacer,
|
|
82
|
+
Ar as Avatar,
|
|
83
|
+
Kr as BottomNavigation,
|
|
84
|
+
$r as BottomNavigationItem,
|
|
85
|
+
Wr as Breadcrumb,
|
|
86
|
+
oe as BreadcrumbDelimiter,
|
|
87
|
+
ae as BreadcrumbLink,
|
|
88
|
+
re as BreadcrumbListItem,
|
|
89
|
+
Zr as BreadcrumbOrderedList,
|
|
90
|
+
X as Card,
|
|
91
|
+
mr as CardActions,
|
|
92
|
+
tr as CardBody,
|
|
93
|
+
dr as CardFooter,
|
|
94
|
+
_ as CardHeader,
|
|
95
|
+
ir as CardImage,
|
|
96
|
+
fr as CardSubtitle,
|
|
97
|
+
er as CardTitle,
|
|
98
|
+
De as ContextMenu,
|
|
99
99
|
br as Drawer,
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
Nr as DrawerContent,
|
|
101
|
+
wr as DrawerItem,
|
|
102
102
|
hr as DrawerNavigation,
|
|
103
103
|
Me as ExpansionPanel,
|
|
104
104
|
ve as ExpansionPanelContent,
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
jr as GridLayout,
|
|
106
|
+
Jr as GridLayoutItem,
|
|
107
107
|
e as Menu,
|
|
108
108
|
o as MenuClassComponent,
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
Y as MenuItem,
|
|
110
|
+
l as MenuItemArrow,
|
|
111
111
|
x as MenuItemInternalsList,
|
|
112
|
-
|
|
112
|
+
q as MenuItemLink,
|
|
113
113
|
g as PanelBar,
|
|
114
|
-
|
|
114
|
+
L as PanelBarItem,
|
|
115
115
|
v as PanelBarUtils,
|
|
116
|
-
|
|
116
|
+
z as Splitter,
|
|
117
117
|
C as SplitterBar,
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
Q as SplitterPane,
|
|
119
|
+
Ur as StackLayout,
|
|
120
120
|
Mr as Step,
|
|
121
|
-
|
|
121
|
+
Dr as Stepper,
|
|
122
122
|
i as TabStrip,
|
|
123
123
|
t as TabStripClassComponent,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
I as TabStripContent,
|
|
125
|
+
B as TabStripNavigation,
|
|
126
|
+
y as TabStripNavigationItem,
|
|
127
127
|
T as TabStripTab,
|
|
128
|
-
|
|
128
|
+
Or as TileLayout,
|
|
129
129
|
ye as Timeline,
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
ie as actionSheetDefaultProps,
|
|
131
|
+
Te as addYearsFlags,
|
|
132
132
|
sr as avatarType,
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
cr as cardActionsLayout,
|
|
134
|
+
ur as cardOrientation,
|
|
135
135
|
Sr as cardType,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
136
|
+
Ae as contentDisplayName,
|
|
137
|
+
s as downArrowName,
|
|
138
|
+
F as flatChildren,
|
|
139
|
+
E as flatVisibleChildren,
|
|
140
|
+
V as flatVisibleItems,
|
|
141
|
+
Be as footerDisplayName,
|
|
142
|
+
k as getFirstId,
|
|
143
|
+
H as getFocusedChild,
|
|
144
|
+
O as getInitialState,
|
|
145
|
+
ue as headerDisplayName,
|
|
146
|
+
G as isArrayEqual,
|
|
147
|
+
K as isPresent,
|
|
148
148
|
c as leftArrowName,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
M as panelBarItemDefaultProps,
|
|
150
|
+
R as renderChildren,
|
|
151
|
+
u as rightArrowName,
|
|
152
|
+
we as sortEventList
|
|
152
153
|
};
|
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: 1770669926,version:"14.0.0-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -8,6 +8,6 @@ export const packageMetadata = Object.freeze({
|
|
|
8
8
|
productCode: 'KENDOUIREACT',
|
|
9
9
|
productCodes: ['KENDOUIREACT'],
|
|
10
10
|
publishDate: 0,
|
|
11
|
-
version: '14.0.0-develop.
|
|
11
|
+
version: '14.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": "14.0.0-develop.
|
|
3
|
+
"version": "14.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,15 +26,15 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@progress/kendo-licensing": "^1.7.2",
|
|
29
|
-
"@progress/kendo-react-animation": "14.0.0-develop.
|
|
30
|
-
"@progress/kendo-react-buttons": "14.0.0-develop.
|
|
31
|
-
"@progress/kendo-react-common": "14.0.0-develop.
|
|
32
|
-
"@progress/kendo-react-intl": "14.0.0-develop.
|
|
33
|
-
"@progress/kendo-react-popup": "14.0.0-develop.
|
|
34
|
-
"@progress/kendo-react-progressbars": "14.0.0-develop.
|
|
29
|
+
"@progress/kendo-react-animation": "14.0.0-develop.2",
|
|
30
|
+
"@progress/kendo-react-buttons": "14.0.0-develop.2",
|
|
31
|
+
"@progress/kendo-react-common": "14.0.0-develop.2",
|
|
32
|
+
"@progress/kendo-react-intl": "14.0.0-develop.2",
|
|
33
|
+
"@progress/kendo-react-popup": "14.0.0-develop.2",
|
|
34
|
+
"@progress/kendo-react-progressbars": "14.0.0-develop.2",
|
|
35
35
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
36
|
-
"react": "^
|
|
37
|
-
"react-dom": "^
|
|
36
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
37
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"prop-types": "^15.6.0"
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"package": {
|
|
77
77
|
"productName": "KendoReact",
|
|
78
78
|
"productCode": "KENDOUIREACT",
|
|
79
|
-
"publishDate":
|
|
79
|
+
"publishDate": 1770669926,
|
|
80
80
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
81
81
|
}
|
|
82
82
|
},
|
package/panelbar/PanelBar.d.ts
CHANGED
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { default as PropTypes } from 'prop-types';
|
|
9
8
|
import { PanelBarProps } from '../index.js';
|
|
10
|
-
import { PanelBarItemClickEventArguments } from './interfaces/PanelBarItemClickEventArguments.js';
|
|
11
|
-
import { NavigationAction } from './interfaces/NavigationAction.js';
|
|
12
9
|
import * as React from 'react';
|
|
13
10
|
/**
|
|
14
11
|
* @hidden
|
|
@@ -25,65 +22,7 @@ export interface PanelBarState {
|
|
|
25
22
|
* @remarks
|
|
26
23
|
* Supported children components are: {@link PanelBarItem}.
|
|
27
24
|
*/
|
|
28
|
-
export declare
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
static propTypes: {
|
|
33
|
-
animation: PropTypes.Requireable<boolean>;
|
|
34
|
-
children: (props: PanelBarProps, propName: any) => Error | null;
|
|
35
|
-
dir: PropTypes.Requireable<string>;
|
|
36
|
-
selected: PropTypes.Requireable<string>;
|
|
37
|
-
expanded: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
38
|
-
focused: PropTypes.Requireable<string>;
|
|
39
|
-
expandMode: PropTypes.Requireable<string>;
|
|
40
|
-
className: PropTypes.Requireable<string>;
|
|
41
|
-
keepItemsMounted: PropTypes.Requireable<boolean>;
|
|
42
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
43
|
-
style: PropTypes.Requireable<object>;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
static defaultProps: {
|
|
49
|
-
expandMode: string;
|
|
50
|
-
animation: boolean;
|
|
51
|
-
keepItemsMounted: boolean;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* @hidden
|
|
55
|
-
*/
|
|
56
|
-
readonly state: PanelBarState;
|
|
57
|
-
private activeDescendant?;
|
|
58
|
-
private _element;
|
|
59
|
-
private nextTickId;
|
|
60
|
-
private get expandMode();
|
|
61
|
-
private get selectedItem();
|
|
62
|
-
private get expandedItems();
|
|
63
|
-
private get children();
|
|
64
|
-
constructor(props: PanelBarProps);
|
|
65
|
-
/**
|
|
66
|
-
* @hidden
|
|
67
|
-
*/
|
|
68
|
-
handleSelect: (event: PanelBarItemClickEventArguments) => void;
|
|
69
|
-
/**
|
|
70
|
-
* @hidden
|
|
71
|
-
*/
|
|
72
|
-
onSelect: (event: any) => void;
|
|
73
|
-
/**
|
|
74
|
-
* @hidden
|
|
75
|
-
*/
|
|
76
|
-
onFocus: (event: any, step?: number, action?: NavigationAction) => void;
|
|
77
|
-
/**
|
|
78
|
-
* @hidden
|
|
79
|
-
*/
|
|
80
|
-
onNavigate: (event: React.KeyboardEvent<HTMLUListElement>, action: NavigationAction) => void;
|
|
81
|
-
/**
|
|
82
|
-
* @hidden
|
|
83
|
-
*/
|
|
84
|
-
render(): React.JSX.Element;
|
|
85
|
-
protected nextTick(f: () => any): void;
|
|
86
|
-
private handleWrapperFocus;
|
|
87
|
-
private handleWrapperBlur;
|
|
88
|
-
private handleKeyDown;
|
|
89
|
-
}
|
|
25
|
+
export declare const PanelBar: React.FC<PanelBarProps> & {
|
|
26
|
+
propTypes?: any;
|
|
27
|
+
defaultProps?: Partial<PanelBarProps>;
|
|
28
|
+
};
|
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 J=require("react"),v=require("prop-types"),L=require("./PanelBarItem.js"),m=require("./util.js"),f=require("@progress/kendo-react-common"),a=require("./interfaces/NavigationAction.js");function Q(s){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const r in s)if(r!=="default"){const k=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(c,r,k.get?k:{enumerable:!0,get:()=>s[r]})}}return c.default=s,Object.freeze(c)}const i=Q(J),w=s=>{const{animation:c=!0,children:r,dir:k,selected:I,expanded:U,expandMode:S="multiple",className:D,keepItemsMounted:T=!1,onSelect:x,style:j,isControlled:_}=s,K=i.useRef(null),B=i.useRef(void 0),N=i.useRef(null),[p,g]=i.useState(()=>{const t=S||"multiple",u=m.getInitialState(s,t);return u.focused||(u.focused=m.getFirstId(s)),u}),R=S||"multiple",F=I!==void 0?I:p.selected,h=_?U||[]:p.expanded,E=i.useCallback(t=>{N.current=window.setTimeout(()=>t())},[]),C=i.useCallback(t=>{const u=A,o=m.flatChildren(i.Children.toArray(u));let n,l;switch(o.forEach(e=>{e.props.uniquePrivateKey===(t.uniquePrivateKey||p.focused)&&(n=e)}),R){case"single":l=[...n.props.parentUniquePrivateKey,n.props.uniquePrivateKey],m.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,R,h,x]),d=i.useCallback((t,u=0,o)=>{const n=A,l=m.flatVisibleChildren(i.Children.toArray(n)),e=m.getFocusedChild(l,u,t,p.focused,o);if(e){const b=h.slice();if(o===a.NavigationAction.Right&&e&&e.props&&e.props.children&&e.props.children.length>0){if(b.push(e.props.uniquePrivateKey),g(y=>({...y,expanded:[...new Set(b)]})),e.props.expanded){const y=e.props.children[0].props.uniquePrivateKey;g(P=>({...P,focused:y}))}}else if(o===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=b.indexOf(P);b.splice(q,1),g(H=>({...H,expanded:b}))}else if(e.props.level>0){const P=e.props.parentUniquePrivateKey[y.length-1];g(q=>({...q,focused:P}))}}else B.current=e.props.id,g(y=>({...y,focused:e.props.uniquePrivateKey}))}},[r,p.focused,h]),M=i.useCallback(t=>{C(t),d(t)},[C,d]),A=i.useMemo(()=>m.renderChildren({animation:c,keepItemsMounted:T,state:{...p,selected:F},expanded:h,handleSelect:M,children:r}),[c,T,p,F,h,r,M]),O=i.useCallback((t,u)=>{let o;switch(u){case a.NavigationAction.First:d(t,o,a.NavigationAction.First);break;case a.NavigationAction.Last:d(t,o,a.NavigationAction.Last);break;case a.NavigationAction.Left:d(t,o,a.NavigationAction.Left);break;case a.NavigationAction.Right:d(t,o,a.NavigationAction.Right);break;case a.NavigationAction.Previous:o=-1,d(t,o);break;case a.NavigationAction.Next:o=1,d(t,o);break;case a.NavigationAction.Toggle:C(t);break}},[d,C]),W=i.useCallback(()=>{clearTimeout(N.current),p.wrapperFocused||g(t=>({...t,wrapperFocused:!0}))},[p.wrapperFocused]),$=i.useCallback(()=>{E(()=>{g(t=>({...t,wrapperFocused:!1}))})},[E]),z=i.useCallback(t=>{const u=K.current&&getComputedStyle(K.current).direction==="rtl"||!1;if(t.target===t.currentTarget){const o=t.keyCode;let n;switch(o){case f.Keys.left:n=u?a.NavigationAction.Right:a.NavigationAction.Left;break;case f.Keys.up:n=a.NavigationAction.Previous;break;case f.Keys.right:n=u?a.NavigationAction.Left:a.NavigationAction.Right;break;case f.Keys.down:n=a.NavigationAction.Next;break;case f.Keys.home:n=a.NavigationAction.First;break;case f.Keys.end:n=a.NavigationAction.Last;break;case f.Keys.space:case f.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":B.current},G=f.classNames("k-panelbar",D);return i.createElement("ul",{ref:K,dir:k,role:"tree",tabIndex:0,onKeyDown:z,onFocus:W,onBlur:$,className:G,style:j,...V},A)};w.propTypes={children:v.oneOfType([v.arrayOf(function(s,c){return s[c].type!==L.PanelBarItem?new Error("PanelBar children should be either PanelBarItem or an array of PanelBarItem."):null}),function(s,c){const r=s[c];return r&&r.type!==L.PanelBarItem?new Error("PanelBar children should be either PanelBarItem or an array of PanelBarItem."):null}]),selected:v.string,expandMode(s,c){const r=s[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:v.bool,keepItemsMounted:v.bool,onSelect:v.func};w.defaultProps={expandMode:"multiple",animation:!0,keepItemsMounted:!1};exports.PanelBar=w;
|