@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.
Files changed (72) hide show
  1. package/MenuMcpWrapper.d.ts +17 -0
  2. package/MenuMcpWrapper.js +8 -0
  3. package/MenuMcpWrapper.mjs +18 -0
  4. package/README.md +4 -4
  5. package/actionsheet/ActionSheet.js +1 -1
  6. package/actionsheet/ActionSheet.mjs +18 -19
  7. package/actionsheet/ActionSheetItem.js +1 -1
  8. package/actionsheet/ActionSheetItem.mjs +1 -3
  9. package/bottomnavigation/BottomNavigation.js +1 -1
  10. package/bottomnavigation/BottomNavigation.mjs +85 -69
  11. package/bottomnavigation/BottomNavigationItem.js +1 -1
  12. package/bottomnavigation/BottomNavigationItem.mjs +34 -33
  13. package/bottomnavigation/messages/index.d.ts +17 -0
  14. package/bottomnavigation/messages/index.js +8 -0
  15. package/bottomnavigation/messages/index.mjs +14 -0
  16. package/breadcrumb/Breadcrumb.js +1 -1
  17. package/breadcrumb/Breadcrumb.mjs +30 -28
  18. package/breadcrumb/BreadcrumbLink.js +1 -1
  19. package/breadcrumb/BreadcrumbLink.mjs +26 -26
  20. package/breadcrumb/messages/index.d.ts +17 -0
  21. package/breadcrumb/messages/index.js +8 -0
  22. package/breadcrumb/messages/index.mjs +14 -0
  23. package/dist/cdn/js/kendo-react-layout.js +1 -1
  24. package/drawer/Drawer.js +1 -1
  25. package/drawer/Drawer.mjs +63 -63
  26. package/drawer/DrawerItem.js +1 -1
  27. package/drawer/DrawerItem.mjs +22 -23
  28. package/drawer/interfaces/DrawerProps.d.ts +8 -0
  29. package/expansionpanel/ExpansionPanel.js +1 -1
  30. package/expansionpanel/ExpansionPanel.mjs +50 -50
  31. package/expansionpanel/ExpansionPanelContent.js +1 -1
  32. package/expansionpanel/ExpansionPanelContent.mjs +7 -4
  33. package/index.d.mts +1 -2
  34. package/index.d.ts +1 -2
  35. package/index.js +1 -1
  36. package/index.mjs +128 -130
  37. package/menu/MenuProps.d.ts +6 -0
  38. package/package-metadata.js +1 -1
  39. package/package-metadata.mjs +2 -2
  40. package/package.json +8 -8
  41. package/panelbar/PanelBar.js +1 -1
  42. package/panelbar/PanelBar.mjs +94 -91
  43. package/panelbar/PanelBarItem.js +1 -1
  44. package/panelbar/PanelBarItem.mjs +13 -15
  45. package/panelbar/interfaces/PanelBarProps.d.ts +8 -0
  46. package/panelbar/interfaces/RenderPanelBarItem.d.ts +1 -0
  47. package/panelbar/util.d.ts +1 -1
  48. package/panelbar/util.js +1 -1
  49. package/panelbar/util.mjs +62 -59
  50. package/splitter/SplitterBar.d.ts +1 -0
  51. package/splitter/SplitterBar.js +1 -1
  52. package/splitter/SplitterBar.mjs +64 -56
  53. package/stepper/Step.js +1 -1
  54. package/stepper/Step.mjs +79 -85
  55. package/stepper/Stepper.js +1 -1
  56. package/stepper/Stepper.mjs +134 -133
  57. package/stepper/interfaces/StepperProps.d.ts +8 -1
  58. package/stepper/messages/index.d.ts +12 -2
  59. package/stepper/messages/index.js +1 -1
  60. package/stepper/messages/index.mjs +8 -4
  61. package/tabstrip/TabStrip.d.ts +8 -1
  62. package/tabstrip/TabStrip.js +1 -1
  63. package/tabstrip/TabStrip.mjs +126 -125
  64. package/tilelayout/InternalTile.js +1 -1
  65. package/tilelayout/InternalTile.mjs +119 -115
  66. package/tilelayout/TileLayout.js +1 -1
  67. package/tilelayout/TileLayout.mjs +58 -58
  68. package/timeline/TimelineCard.d.ts +2 -0
  69. package/timeline/TimelineCard.js +1 -1
  70. package/timeline/TimelineCard.mjs +16 -15
  71. package/timeline/TimelineHorizontal.js +1 -1
  72. 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 o } from "./menu/components/Menu.mjs";
10
- import { TabStrip as t } from "./tabstrip/TabStrip.mjs";
11
- import { MenuItemInternalsList as x } from "./menu/components/MenuItemInternal.mjs";
12
- import { MenuItemArrow as l, downArrowName as s, leftArrowName as c, rightArrowName as u } from "./menu/components/MenuItemArrow.mjs";
13
- import { SplitterBar as C } from "./splitter/SplitterBar.mjs";
14
- import { withIdHOC as r } from "@progress/kendo-react-common";
15
- import { TabStripContent as I } from "./tabstrip/TabStripContent.mjs";
16
- import { TabStripNavigation as B } from "./tabstrip/TabStripNavigation.mjs";
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 T } from "./tabstrip/TabStripTab.mjs";
19
- import { PanelBar as g } from "./panelbar/PanelBar.mjs";
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";
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 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
- import { Drawer as br } from "./drawer/Drawer.mjs";
37
- import { DrawerNavigation as hr } from "./drawer/DrawerNavigation.mjs";
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
- import { Step as Mr } from "./stepper/Step.mjs";
42
- import { AppBar as vr } from "./appbar/AppBar.mjs";
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";
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 Ce, contentDisplayName as Ae } from "./actionsheet/ActionSheetContent.mjs";
61
- import { ActionSheetFooter as be, footerDisplayName as Be } from "./actionsheet/ActionSheetFooter.mjs";
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 Te, sortEventList as we } from "./timeline/utils.mjs";
64
- import { ContextMenu as De } from "./contextmenu/ContextMenu.mjs";
65
- import { ExpansionPanel as Me } from "./expansionpanel/ExpansionPanel.mjs";
66
- import { ExpansionPanelContent as ve } from "./expansionpanel/ExpansionPanelContent.mjs";
67
- const e = r(o);
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
- pe as ActionSheet,
73
- Ce as ActionSheetContent,
74
- be as ActionSheetFooter,
70
+ ie as ActionSheet,
71
+ Ae as ActionSheetContent,
72
+ Be as ActionSheetFooter,
75
73
  ce as ActionSheetHeader,
76
- fe as ActionSheetItem,
77
- de as ActionSheetView,
78
- le as ActionSheetViewDisplayName,
79
- vr as AppBar,
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,
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
- 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
- br as Drawer,
100
- Nr as DrawerContent,
101
- wr as DrawerItem,
102
- hr as DrawerNavigation,
103
- Me as ExpansionPanel,
104
- ve as ExpansionPanelContent,
105
- jr as GridLayout,
106
- Jr as GridLayoutItem,
107
- e as Menu,
108
- o as MenuClassComponent,
109
- Y as MenuItem,
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
- x as MenuItemInternalsList,
112
- q as MenuItemLink,
113
- g as PanelBar,
114
- L as PanelBarItem,
115
- v as PanelBarUtils,
116
- z as Splitter,
117
- C as SplitterBar,
118
- Q as SplitterPane,
119
- Ur as StackLayout,
120
- Mr as Step,
121
- Dr as Stepper,
122
- i as TabStrip,
123
- t as TabStripClassComponent,
124
- I as TabStripContent,
125
- B as TabStripNavigation,
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
- T as TabStripTab,
128
- Or as TileLayout,
125
+ N as TabStripTab,
126
+ Gr as TileLayout,
129
127
  ye as Timeline,
130
- ie as actionSheetDefaultProps,
131
- Te as addYearsFlags,
132
- sr as avatarType,
128
+ ne as actionSheetDefaultProps,
129
+ Ne as addYearsFlags,
130
+ Sr as avatarType,
133
131
  cr as cardActionsLayout,
134
132
  ur as cardOrientation,
135
- Sr as cardType,
136
- Ae as contentDisplayName,
133
+ Cr as cardType,
134
+ Ie as contentDisplayName,
137
135
  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,
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
- G as isArrayEqual,
147
- K as isPresent,
148
- c as leftArrowName,
149
- M as panelBarItemDefaultProps,
150
- R as renderChildren,
151
- u as rightArrowName,
152
- we as sortEventList
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
  };
@@ -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
  }
@@ -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: 1778599352,version:"14.5.0-develop.9",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
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;
@@ -7,7 +7,7 @@ export const packageMetadata = Object.freeze({
7
7
  productName: 'KendoReact',
8
8
  productCode: 'KENDOUIREACT',
9
9
  productCodes: ['KENDOUIREACT'],
10
- publishDate: 1778599352,
11
- version: '14.5.0-develop.9',
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": "14.5.0-develop.9",
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": "14.5.0-develop.9",
30
- "@progress/kendo-react-buttons": "14.5.0-develop.9",
31
- "@progress/kendo-react-common": "14.5.0-develop.9",
32
- "@progress/kendo-react-intl": "14.5.0-develop.9",
33
- "@progress/kendo-react-popup": "14.5.0-develop.9",
34
- "@progress/kendo-react-progressbars": "14.5.0-develop.9",
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": 1778599352,
79
+ "publishDate": 1779253013,
80
80
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
81
81
  }
82
82
  },
@@ -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 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;
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;