@progress/kendo-react-layout 16.2.0-develop.2 → 16.2.0-develop.20

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.
@@ -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 F=require("react"),k=require("@progress/kendo-react-common"),S=require("@progress/kendo-react-popup"),M=require("../utils/itemsIdsUtils.js"),f=require("../utils/misc.js"),q=require("./MenuItemLink.js"),x=require("./MenuItemArrow.js");function w(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const c in e)if(c!=="default"){const l=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(a,c,l.get?l:{enumerable:!0,get:()=>e[c]})}}return a.default=e,Object.freeze(a)}const i=w(F),b=e=>{const{parentItemId:a}=e,c=a!==void 0?o=>{e.onMouseOver(a),o.stopPropagation()}:void 0,l=a!==void 0?o=>{e.onMouseLeave(a),o.stopPropagation()}:void 0;let t;return e.role?t=e.role:a!==void 0?t="menu":t="menubar",i.createElement("ul",{className:e.className,role:t,id:a!==void 0?f.getDOMElementId(e.menuGuid,a):void 0,onMouseOver:c,onMouseLeave:l,"aria-orientation":e["aria-orientation"]},e.items.length>0?e.items.map((o,u)=>i.createElement(O,{item:o,animate:e.animate,isMenuVertical:e.isMenuVertical,isDirectionRightToLeft:e.isDirectionRightToLeft,focusedItemId:e.focusedItemId,lastItemIdToBeOpened:e.lastItemIdToBeOpened,tabbableItemId:e.tabbableItemId,itemRender:e.itemRender,linkRender:e.linkRender,menuGuid:e.menuGuid,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onBlur:e.onBlur,onFocus:e.onFocus,onClick:e.onClick,onOriginalItemNeeded:e.onOriginalItemNeeded,onPopupClose:e.onPopupClose,key:u})):null)},O=e=>{const a=i.useRef(null),c=i.useRef(!0),l=i.useRef(void 0),t=e.item,o=t.id,u=f.getDOMElementId(e.menuGuid,o),L=t.separator,E=t.render||e.itemRender,v=t.linkRender||e.linkRender,R=t.contentParentItemId?t.contentRender:null,m=t.items.length>0&&M.shouldOpenItem(o,e.lastItemIdToBeOpened)&&!c.current;i.useEffect(()=>{var g,I,d;const n=e.focusedItemId,r=e.item.id,s=l.current;if(c.current)n&&n===r&&((g=a.current)==null||g.focus({preventScroll:!0})),c.current=!1;else if(n){const B=k.getActiveElement(document);s!==n&&n===r&&!((I=a.current)!=null&&I.contains(B))&&((d=a.current)==null||d.focus({preventScroll:!0}))}l.current=n});const D=n=>{e.onMouseOver(o),n.stopPropagation()},h=n=>{e.onMouseLeave(o),n.stopPropagation()},P=n=>{e.onPopupClose(o,n)},C=()=>{const n=t.contentParentItemId,r=R;return i.createElement("div",{className:"k-content",role:"presentation"},i.createElement(r,{item:e.onOriginalItemNeeded(n),itemId:n}))},N=()=>{if(v){const s=v;return i.createElement(s,{item:e.onOriginalItemNeeded(t.id),itemId:t.id,opened:m,dir:f.convertBoolDirectionToString(e.isDirectionRightToLeft)})}const n=E,r=n?i.createElement(n,{item:e.onOriginalItemNeeded(t.id),itemId:t.id,key:"1"}):i.createElement("span",{className:"k-menu-link-text"},t.text);return i.createElement(q.MenuItemLink,{url:t.url,opened:m},t.icon||t.svgIcon?i.createElement(k.IconWrap,{name:t.icon,icon:t.svgIcon,key:"0"}):null,r,t.items.length>0?i.createElement("span",{className:"k-menu-expand-arrow","aria-hidden":!0},i.createElement(x.MenuItemArrow,{itemId:t.id,verticalMenu:e.isMenuVertical,dir:f.convertBoolDirectionToString(e.isDirectionRightToLeft),key:"2"})):null)},T=()=>{const n=e.animate,{anchorAlign:r,popupAlign:s,collision:g,animationDirection:I}=f.getPopupSettings(o,e.isMenuVertical,e.isDirectionRightToLeft);let d;return n===!0?d={openDuration:300,closeDuration:300,direction:I}:n===!1?d=!1:d={openDuration:(n==null?void 0:n.openDuration)||300,closeDuration:(n==null?void 0:n.closeDuration)||300,direction:(n==null?void 0:n.direction)||I},i.createElement(S.Popup,{anchor:a.current,show:m,popupClass:k.classNames("k-menu-popup",{"k-rtl":e.isDirectionRightToLeft}),anchorAlign:r,popupAlign:s,collision:g,animate:d,onClose:P,key:"1"},i.createElement(b,{parentItemId:o,animate:e.animate,items:t.items,menuGuid:e.menuGuid,focusedItemId:e.focusedItemId,lastItemIdToBeOpened:e.lastItemIdToBeOpened,tabbableItemId:e.tabbableItemId,itemRender:e.itemRender,linkRender:e.linkRender,isMenuVertical:e.isMenuVertical,isDirectionRightToLeft:e.isDirectionRightToLeft,className:"k-menu-group",onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onBlur:e.onBlur,onFocus:e.onFocus,onClick:e.onClick,onOriginalItemNeeded:e.onOriginalItemNeeded,onPopupClose:e.onPopupClose}))},y=k.classNames("k-item","k-menu-item",{"k-first":M.isFirstItemFromSiblings(o),"k-last":t.isLastFromSiblings,"k-disabled":t.disabled,"k-focus":e.focusedItemId===o},t.cssClass);return i.createElement(i.Fragment,null,L?i.createElement("li",{className:"k-separator k-item","aria-hidden":!0,key:u,id:u,ref:a}):i.createElement("li",{id:u,className:y,style:t.cssStyle,tabIndex:o===e.tabbableItemId?0:-1,onMouseOver:D,onMouseLeave:h,onBlur:n=>e.onBlur(o,n),onFocus:()=>e.onFocus(o),onClick:n=>e.onClick(n,o),role:"menuitem","aria-disabled":t.disabled?!0:void 0,"aria-haspopup":t.items.length>0?"menu":void 0,"aria-expanded":t.items.length>0?m:void 0,"aria-label":t.text,"aria-owns":m?u:void 0,ref:a,key:u},R?C():N()),T())};exports.MenuItemInternal=O;exports.MenuItemInternalsList=b;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react"),v=require("@progress/kendo-react-common"),F=require("@progress/kendo-react-popup"),S=require("../utils/itemsIdsUtils.js"),f=require("../utils/misc.js"),q=require("./MenuItemLink.js"),x=require("./MenuItemArrow.js");function w(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const c in e)if(c!=="default"){const l=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(o,c,l.get?l:{enumerable:!0,get:()=>e[c]})}}return o.default=e,Object.freeze(o)}const i=w(B),M=e=>{const{parentItemId:o}=e,c=o!==void 0?a=>{e.onMouseOver(o),a.stopPropagation()}:void 0,l=o!==void 0?a=>{e.onMouseLeave(o),a.stopPropagation()}:void 0;let n;return e.role?n=e.role:o!==void 0?n="menu":n="menubar",i.createElement("ul",{className:e.className,role:n,id:o!==void 0?f.getDOMElementId(e.menuGuid,o):void 0,onMouseOver:c,onMouseLeave:l,"aria-orientation":e["aria-orientation"]},e.items.length>0?e.items.map((a,u)=>i.createElement(b,{item:a,animate:e.animate,isMenuVertical:e.isMenuVertical,isDirectionRightToLeft:e.isDirectionRightToLeft,focusedItemId:e.focusedItemId,lastItemIdToBeOpened:e.lastItemIdToBeOpened,tabbableItemId:e.tabbableItemId,itemRender:e.itemRender,linkRender:e.linkRender,menuGuid:e.menuGuid,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onBlur:e.onBlur,onFocus:e.onFocus,onClick:e.onClick,onOriginalItemNeeded:e.onOriginalItemNeeded,onPopupClose:e.onPopupClose,key:u})):null)},b=e=>{const o=i.useRef(null),c=i.useRef(!0),l=i.useRef(void 0),n=e.item,a=n.id,u=f.getDOMElementId(e.menuGuid,a),O=n.separator,E=n.render||e.itemRender,k=n.linkRender||e.linkRender,R=n.contentParentItemId?n.contentRender:null,m=n.items.length>0&&S.shouldOpenItem(a,e.lastItemIdToBeOpened)&&!c.current;i.useEffect(()=>{var g,I,d;const t=e.focusedItemId,r=e.item.id,s=l.current;if(c.current)t&&t===r&&((g=o.current)==null||g.focus({preventScroll:!0})),c.current=!1;else if(t){const y=v.getActiveElement(document);s!==t&&t===r&&!((I=o.current)!=null&&I.contains(y))&&((d=o.current)==null||d.focus({preventScroll:!0}))}l.current=t});const L=t=>{e.onMouseOver(a),t.stopPropagation()},D=t=>{e.onMouseLeave(a),t.stopPropagation()},h=t=>{e.onPopupClose(a,t)},P=()=>{const t=n.contentParentItemId,r=R;return i.createElement("div",{className:"k-content",role:"presentation"},i.createElement(r,{item:e.onOriginalItemNeeded(t),itemId:t}))},C=()=>{if(k){const s=k;return i.createElement(s,{item:e.onOriginalItemNeeded(n.id),itemId:n.id,opened:m,dir:f.convertBoolDirectionToString(e.isDirectionRightToLeft)})}const t=E,r=t?i.createElement(t,{item:e.onOriginalItemNeeded(n.id),itemId:n.id,key:"1"}):i.createElement("span",{className:"k-menu-link-text"},n.text);return i.createElement(q.MenuItemLink,{url:n.url,opened:m},n.icon||n.svgIcon?i.createElement(v.IconWrap,{name:n.icon,icon:n.svgIcon,key:"0"}):null,r,n.items.length>0?i.createElement("span",{className:"k-menu-expand-arrow","aria-hidden":!0},i.createElement(x.MenuItemArrow,{itemId:n.id,verticalMenu:e.isMenuVertical,dir:f.convertBoolDirectionToString(e.isDirectionRightToLeft),key:"2"})):null)},N=()=>{const t=e.animate,{anchorAlign:r,popupAlign:s,collision:g,animationDirection:I}=f.getPopupSettings(a,e.isMenuVertical,e.isDirectionRightToLeft);let d;return t===!0?d={openDuration:300,closeDuration:300,direction:I}:t===!1?d=!1:d={openDuration:(t==null?void 0:t.openDuration)||300,closeDuration:(t==null?void 0:t.closeDuration)||300,direction:(t==null?void 0:t.direction)||I},i.createElement(F.Popup,{anchor:o.current,show:m,popupClass:v.classNames("k-menu-popup",{"k-rtl":e.isDirectionRightToLeft}),anchorAlign:r,popupAlign:s,collision:g,animate:d,onClose:h,key:"1"},i.createElement(M,{parentItemId:a,animate:e.animate,items:n.items,menuGuid:e.menuGuid,focusedItemId:e.focusedItemId,lastItemIdToBeOpened:e.lastItemIdToBeOpened,tabbableItemId:e.tabbableItemId,itemRender:e.itemRender,linkRender:e.linkRender,isMenuVertical:e.isMenuVertical,isDirectionRightToLeft:e.isDirectionRightToLeft,className:"k-menu-group",onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onBlur:e.onBlur,onFocus:e.onFocus,onClick:e.onClick,onOriginalItemNeeded:e.onOriginalItemNeeded,onPopupClose:e.onPopupClose}))},T=v.classNames("k-item","k-menu-item",{"k-disabled":n.disabled,"k-focus":e.focusedItemId===a},n.cssClass);return i.createElement(i.Fragment,null,O?i.createElement("li",{className:"k-separator k-item","aria-hidden":!0,key:u,id:u,ref:o}):i.createElement("li",{id:u,className:T,style:n.cssStyle,tabIndex:a===e.tabbableItemId?0:-1,onMouseOver:L,onMouseLeave:D,onBlur:t=>e.onBlur(a,t),onFocus:()=>e.onFocus(a),onClick:t=>e.onClick(t,a),role:"menuitem","aria-disabled":n.disabled?!0:void 0,"aria-haspopup":n.items.length>0?"menu":void 0,"aria-expanded":n.items.length>0?m:void 0,"aria-label":n.text,"aria-owns":m?u:void 0,ref:o,key:u},R?P():C()),N())};exports.MenuItemInternal=b;exports.MenuItemInternalsList=M;
@@ -6,31 +6,31 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import * as i from "react";
9
- import { getActiveElement as F, classNames as g, IconWrap as B } from "@progress/kendo-react-common";
9
+ import { getActiveElement as B, classNames as g, IconWrap as F } from "@progress/kendo-react-common";
10
10
  import { Popup as y } from "@progress/kendo-react-popup";
11
- import { shouldOpenItem as x, isFirstItemFromSiblings as S } from "../utils/itemsIdsUtils.mjs";
11
+ import { shouldOpenItem as x } from "../utils/itemsIdsUtils.mjs";
12
12
  import { getDOMElementId as M, convertBoolDirectionToString as R, getPopupSettings as G } from "../utils/misc.mjs";
13
13
  import { MenuItemLink as V } from "./MenuItemLink.mjs";
14
- import { MenuItemArrow as w } from "./MenuItemArrow.mjs";
15
- const A = (e) => {
16
- const { parentItemId: a } = e, c = a !== void 0 ? (o) => {
14
+ import { MenuItemArrow as S } from "./MenuItemArrow.mjs";
15
+ const w = (e) => {
16
+ const { parentItemId: a } = e, m = a !== void 0 ? (o) => {
17
17
  e.onMouseOver(a), o.stopPropagation();
18
18
  } : void 0, I = a !== void 0 ? (o) => {
19
19
  e.onMouseLeave(a), o.stopPropagation();
20
20
  } : void 0;
21
- let t;
22
- return e.role ? t = e.role : a !== void 0 ? t = "menu" : t = "menubar", /* @__PURE__ */ i.createElement(
21
+ let n;
22
+ return e.role ? n = e.role : a !== void 0 ? n = "menu" : n = "menubar", /* @__PURE__ */ i.createElement(
23
23
  "ul",
24
24
  {
25
25
  className: e.className,
26
- role: t,
26
+ role: n,
27
27
  id: a !== void 0 ? M(e.menuGuid, a) : void 0,
28
- onMouseOver: c,
28
+ onMouseOver: m,
29
29
  onMouseLeave: I,
30
30
  "aria-orientation": e["aria-orientation"]
31
31
  },
32
- e.items.length > 0 ? e.items.map((o, r) => /* @__PURE__ */ i.createElement(
33
- W,
32
+ e.items.length > 0 ? e.items.map((o, c) => /* @__PURE__ */ i.createElement(
33
+ A,
34
34
  {
35
35
  item: o,
36
36
  animate: e.animate,
@@ -49,69 +49,69 @@ const A = (e) => {
49
49
  onClick: e.onClick,
50
50
  onOriginalItemNeeded: e.onOriginalItemNeeded,
51
51
  onPopupClose: e.onPopupClose,
52
- key: r
52
+ key: c
53
53
  }
54
54
  )) : null
55
55
  );
56
- }, W = (e) => {
57
- const a = i.useRef(null), c = i.useRef(!0), I = i.useRef(void 0), t = e.item, o = t.id, r = M(e.menuGuid, o), b = t.separator, O = t.render || e.itemRender, v = t.linkRender || e.linkRender, k = t.contentParentItemId ? t.contentRender : null, d = t.items.length > 0 && x(o, e.lastItemIdToBeOpened) && !c.current;
56
+ }, A = (e) => {
57
+ const a = i.useRef(null), m = i.useRef(!0), I = i.useRef(void 0), n = e.item, o = n.id, c = M(e.menuGuid, o), O = n.separator, b = n.render || e.itemRender, v = n.linkRender || e.linkRender, k = n.contentParentItemId ? n.contentRender : null, d = n.items.length > 0 && x(o, e.lastItemIdToBeOpened) && !m.current;
58
58
  i.useEffect(() => {
59
- var f, s, m;
60
- const n = e.focusedItemId, l = e.item.id, u = I.current;
61
- if (c.current)
62
- n && n === l && ((f = a.current) == null || f.focus({ preventScroll: !0 })), c.current = !1;
63
- else if (n) {
64
- const T = F(document);
65
- u !== n && n === l && // https://github.com/telerik/kendo-react/issues/216 :
59
+ var f, s, r;
60
+ const t = e.focusedItemId, l = e.item.id, u = I.current;
61
+ if (m.current)
62
+ t && t === l && ((f = a.current) == null || f.focus({ preventScroll: !0 })), m.current = !1;
63
+ else if (t) {
64
+ const T = B(document);
65
+ u !== t && t === l && // https://github.com/telerik/kendo-react/issues/216 :
66
66
  // No need to focus the wrapping menu item DOM element
67
67
  // when a child DOM element was clicked.
68
- !((s = a.current) != null && s.contains(T)) && ((m = a.current) == null || m.focus({ preventScroll: !0 }));
68
+ !((s = a.current) != null && s.contains(T)) && ((r = a.current) == null || r.focus({ preventScroll: !0 }));
69
69
  }
70
- I.current = n;
70
+ I.current = t;
71
71
  });
72
- const E = (n) => {
73
- e.onMouseOver(o), n.stopPropagation();
74
- }, L = (n) => {
75
- e.onMouseLeave(o), n.stopPropagation();
76
- }, h = (n) => {
77
- e.onPopupClose(o, n);
72
+ const E = (t) => {
73
+ e.onMouseOver(o), t.stopPropagation();
74
+ }, h = (t) => {
75
+ e.onMouseLeave(o), t.stopPropagation();
76
+ }, L = (t) => {
77
+ e.onPopupClose(o, t);
78
78
  }, C = () => {
79
- const n = t.contentParentItemId, l = k;
80
- return /* @__PURE__ */ i.createElement("div", { className: "k-content", role: "presentation" }, /* @__PURE__ */ i.createElement(l, { item: e.onOriginalItemNeeded(n), itemId: n }));
79
+ const t = n.contentParentItemId, l = k;
80
+ return /* @__PURE__ */ i.createElement("div", { className: "k-content", role: "presentation" }, /* @__PURE__ */ i.createElement(l, { item: e.onOriginalItemNeeded(t), itemId: t }));
81
81
  }, D = () => {
82
82
  if (v) {
83
83
  const u = v;
84
84
  return /* @__PURE__ */ i.createElement(
85
85
  u,
86
86
  {
87
- item: e.onOriginalItemNeeded(t.id),
88
- itemId: t.id,
87
+ item: e.onOriginalItemNeeded(n.id),
88
+ itemId: n.id,
89
89
  opened: d,
90
90
  dir: R(e.isDirectionRightToLeft)
91
91
  }
92
92
  );
93
93
  }
94
- const n = O, l = n ? /* @__PURE__ */ i.createElement(n, { item: e.onOriginalItemNeeded(t.id), itemId: t.id, key: "1" }) : /* @__PURE__ */ i.createElement("span", { className: "k-menu-link-text" }, t.text);
95
- return /* @__PURE__ */ i.createElement(V, { url: t.url, opened: d }, t.icon || t.svgIcon ? /* @__PURE__ */ i.createElement(B, { name: t.icon, icon: t.svgIcon, key: "0" }) : null, l, t.items.length > 0 ? /* @__PURE__ */ i.createElement("span", { className: "k-menu-expand-arrow", "aria-hidden": !0 }, /* @__PURE__ */ i.createElement(
96
- w,
94
+ const t = b, l = t ? /* @__PURE__ */ i.createElement(t, { item: e.onOriginalItemNeeded(n.id), itemId: n.id, key: "1" }) : /* @__PURE__ */ i.createElement("span", { className: "k-menu-link-text" }, n.text);
95
+ return /* @__PURE__ */ i.createElement(V, { url: n.url, opened: d }, n.icon || n.svgIcon ? /* @__PURE__ */ i.createElement(F, { name: n.icon, icon: n.svgIcon, key: "0" }) : null, l, n.items.length > 0 ? /* @__PURE__ */ i.createElement("span", { className: "k-menu-expand-arrow", "aria-hidden": !0 }, /* @__PURE__ */ i.createElement(
96
+ S,
97
97
  {
98
- itemId: t.id,
98
+ itemId: n.id,
99
99
  verticalMenu: e.isMenuVertical,
100
100
  dir: R(e.isDirectionRightToLeft),
101
101
  key: "2"
102
102
  }
103
103
  )) : null);
104
104
  }, N = () => {
105
- const n = e.animate, { anchorAlign: l, popupAlign: u, collision: f, animationDirection: s } = G(
105
+ const t = e.animate, { anchorAlign: l, popupAlign: u, collision: f, animationDirection: s } = G(
106
106
  o,
107
107
  e.isMenuVertical,
108
108
  e.isDirectionRightToLeft
109
109
  );
110
- let m;
111
- return n === !0 ? m = { openDuration: 300, closeDuration: 300, direction: s } : n === !1 ? m = !1 : m = {
112
- openDuration: (n == null ? void 0 : n.openDuration) || 300,
113
- closeDuration: (n == null ? void 0 : n.closeDuration) || 300,
114
- direction: (n == null ? void 0 : n.direction) || s
110
+ let r;
111
+ return t === !0 ? r = { openDuration: 300, closeDuration: 300, direction: s } : t === !1 ? r = !1 : r = {
112
+ openDuration: (t == null ? void 0 : t.openDuration) || 300,
113
+ closeDuration: (t == null ? void 0 : t.closeDuration) || 300,
114
+ direction: (t == null ? void 0 : t.direction) || s
115
115
  }, /* @__PURE__ */ i.createElement(
116
116
  y,
117
117
  {
@@ -121,16 +121,16 @@ const A = (e) => {
121
121
  anchorAlign: l,
122
122
  popupAlign: u,
123
123
  collision: f,
124
- animate: m,
125
- onClose: h,
124
+ animate: r,
125
+ onClose: L,
126
126
  key: "1"
127
127
  },
128
128
  /* @__PURE__ */ i.createElement(
129
- A,
129
+ w,
130
130
  {
131
131
  parentItemId: o,
132
132
  animate: e.animate,
133
- items: t.items,
133
+ items: n.items,
134
134
  menuGuid: e.menuGuid,
135
135
  focusedItemId: e.focusedItemId,
136
136
  lastItemIdToBeOpened: e.lastItemIdToBeOpened,
@@ -154,47 +154,45 @@ const A = (e) => {
154
154
  "k-item",
155
155
  "k-menu-item",
156
156
  {
157
- "k-first": S(o),
158
- "k-last": t.isLastFromSiblings,
159
- "k-disabled": t.disabled,
157
+ "k-disabled": n.disabled,
160
158
  "k-focus": e.focusedItemId === o
161
159
  },
162
- t.cssClass
160
+ n.cssClass
163
161
  );
164
- return /* @__PURE__ */ i.createElement(i.Fragment, null, b ? /* @__PURE__ */ i.createElement(
162
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, O ? /* @__PURE__ */ i.createElement(
165
163
  "li",
166
164
  {
167
165
  className: "k-separator k-item",
168
166
  "aria-hidden": !0,
169
- key: r,
170
- id: r,
167
+ key: c,
168
+ id: c,
171
169
  ref: a
172
170
  }
173
171
  ) : /* @__PURE__ */ i.createElement(
174
172
  "li",
175
173
  {
176
- id: r,
174
+ id: c,
177
175
  className: P,
178
- style: t.cssStyle,
176
+ style: n.cssStyle,
179
177
  tabIndex: o === e.tabbableItemId ? 0 : -1,
180
178
  onMouseOver: E,
181
- onMouseLeave: L,
182
- onBlur: (n) => e.onBlur(o, n),
179
+ onMouseLeave: h,
180
+ onBlur: (t) => e.onBlur(o, t),
183
181
  onFocus: () => e.onFocus(o),
184
- onClick: (n) => e.onClick(n, o),
182
+ onClick: (t) => e.onClick(t, o),
185
183
  role: "menuitem",
186
- "aria-disabled": t.disabled ? !0 : void 0,
187
- "aria-haspopup": t.items.length > 0 ? "menu" : void 0,
188
- "aria-expanded": t.items.length > 0 ? d : void 0,
189
- "aria-label": t.text,
190
- "aria-owns": d ? r : void 0,
184
+ "aria-disabled": n.disabled ? !0 : void 0,
185
+ "aria-haspopup": n.items.length > 0 ? "menu" : void 0,
186
+ "aria-expanded": n.items.length > 0 ? d : void 0,
187
+ "aria-label": n.text,
188
+ "aria-owns": d ? c : void 0,
191
189
  ref: a,
192
- key: r
190
+ key: c
193
191
  },
194
192
  k ? C() : D()
195
193
  ), N());
196
194
  };
197
195
  export {
198
- W as MenuItemInternal,
199
- A as MenuItemInternalsList
196
+ A as MenuItemInternal,
197
+ w as MenuItemInternalsList
200
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 o=require("react"),r=require("prop-types"),s=require("@progress/kendo-react-common");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const c=u(o),l=e=>s.classNames("k-link","k-menu-link",{"k-active":e}),i=e=>e.url?c.createElement("a",{className:l(e.opened),href:e.url,tabIndex:-1},e.children):c.createElement("span",{id:e.id,className:s.classNames(l(e.opened),e.className),style:e.style,role:"presentation"},e.children);i.propTypes={opened:r.bool,url:r.string};exports.MenuItemLink=i;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),c=require("prop-types"),a=require("@progress/kendo-react-common");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=u(o),i=e=>a.classNames("k-link","k-menu-link",{"k-active":e}),s=e=>e.url?l.createElement("a",{className:i(e.opened),href:a.sanitizeUrl(e.url)||void 0,tabIndex:-1},e.children):l.createElement("span",{id:e.id,className:a.classNames(i(e.opened),e.className),style:e.style,role:"presentation"},e.children);s.propTypes={opened:c.bool,url:c.string};exports.MenuItemLink=s;
@@ -7,8 +7,8 @@
7
7
  */
8
8
  import * as t from "react";
9
9
  import n from "prop-types";
10
- import { classNames as l } from "@progress/kendo-react-common";
11
- const a = (e) => l("k-link", "k-menu-link", { "k-active": e }), m = (e) => e.url ? /* @__PURE__ */ t.createElement("a", { className: a(e.opened), href: e.url, tabIndex: -1 }, e.children) : /* @__PURE__ */ t.createElement(
10
+ import { sanitizeUrl as i, classNames as l } from "@progress/kendo-react-common";
11
+ const a = (e) => l("k-link", "k-menu-link", { "k-active": e }), r = (e) => e.url ? /* @__PURE__ */ t.createElement("a", { className: a(e.opened), href: i(e.url) || void 0, tabIndex: -1 }, e.children) : /* @__PURE__ */ t.createElement(
12
12
  "span",
13
13
  {
14
14
  id: e.id,
@@ -18,10 +18,10 @@ const a = (e) => l("k-link", "k-menu-link", { "k-active": e }), m = (e) => e.url
18
18
  },
19
19
  e.children
20
20
  );
21
- m.propTypes = {
21
+ r.propTypes = {
22
22
  opened: n.bool,
23
23
  url: n.string
24
24
  };
25
25
  export {
26
- m as MenuItemLink
26
+ r as MenuItemLink
27
27
  };
@@ -26,5 +26,4 @@ export interface MenuItemInternalModel extends BaseMenuItem {
26
26
  id: string;
27
27
  items: MenuItemInternalModel[];
28
28
  contentParentItemId?: string;
29
- isLastFromSiblings: boolean;
30
29
  }
@@ -57,10 +57,6 @@ export declare function isIdZeroLevel(itemId: string): boolean;
57
57
  * @hidden
58
58
  */
59
59
  export declare function isIdFirstLevel(itemId: string): boolean;
60
- /**
61
- * @hidden
62
- */
63
- export declare function isFirstItemFromSiblings(itemId: string): boolean;
64
60
  /**
65
61
  * @hidden
66
62
  */
@@ -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 o="",s="0",e="_";function c(t,r){if(u(t))return r[Number(t)];const n=r[Number(g(t))];return n.items?c(f(t),n.items):void 0}function g(t){return i(t)?t:t.split(e)[0]}function f(t){if(i(t))return t;const r=t.indexOf(e);return t.substring(r+1)}function S(t){return l("0",t)}function E(t,r){return r.indexOf(t)===0?r.length===t.length||r.charAt(t.length)===e:!1}function l(t,r){return r?r+e+t:t}function O(t){const r=t.lastIndexOf(e);return r<0?o:t.substring(0,r)}function i(t){return t===o||t.indexOf(e)<0}function u(t){return t!==o&&t.indexOf(e)<0}function b(t){return P(t)===1}function d(t){return a(t)===s}function a(t){const r=t.lastIndexOf(e);return r<0?t:t.substring(r+1)}function L(t,r,n){return u(r)?t?Number(r)<n-1?(Number(r)+1).toString():"0":Number(r)>0?(Number(r)-1).toString():(n-1).toString():r}function P(t){return t.split(e).length-1}exports.EMPTY_ID=o;exports.SEPARATOR=e;exports.ZERO_LEVEL_ZERO_ITEM_ID=s;exports.createId=l;exports.getDirectParentId=O;exports.getDirectSiblingIdForLevelZero=L;exports.getFirstChildId=S;exports.getIdWithoutRootParentId=f;exports.getItemById=c;exports.getRootParentId=g;exports.getShortId=a;exports.isFirstItemFromSiblings=d;exports.isIdEmptyOrZeroLevel=i;exports.isIdFirstLevel=b;exports.isIdZeroLevel=u;exports.shouldOpenItem=E;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o="",l="0",e="_";function c(t,r){if(i(t))return r[Number(t)];const n=r[Number(g(t))];return n.items?c(s(t),n.items):void 0}function g(t){return u(t)?t:t.split(e)[0]}function s(t){if(u(t))return t;const r=t.indexOf(e);return t.substring(r+1)}function a(t){return f("0",t)}function E(t,r){return r.indexOf(t)===0?r.length===t.length||r.charAt(t.length)===e:!1}function f(t,r){return r?r+e+t:t}function O(t){const r=t.lastIndexOf(e);return r<0?o:t.substring(0,r)}function u(t){return t===o||t.indexOf(e)<0}function i(t){return t!==o&&t.indexOf(e)<0}function S(t){return L(t)===1}function d(t){const r=t.lastIndexOf(e);return r<0?t:t.substring(r+1)}function b(t,r,n){return i(r)?t?Number(r)<n-1?(Number(r)+1).toString():"0":Number(r)>0?(Number(r)-1).toString():(n-1).toString():r}function L(t){return t.split(e).length-1}exports.EMPTY_ID=o;exports.SEPARATOR=e;exports.ZERO_LEVEL_ZERO_ITEM_ID=l;exports.createId=f;exports.getDirectParentId=O;exports.getDirectSiblingIdForLevelZero=b;exports.getFirstChildId=a;exports.getIdWithoutRootParentId=s;exports.getItemById=c;exports.getRootParentId=g;exports.getShortId=d;exports.isIdEmptyOrZeroLevel=u;exports.isIdFirstLevel=S;exports.isIdZeroLevel=i;exports.shouldOpenItem=E;
@@ -5,32 +5,32 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- const s = "", A = "0", O = "_";
8
+ const A = "", s = "0", E = "_";
9
9
  function o(n, r) {
10
10
  if (u(n))
11
11
  return r[Number(n)];
12
- const t = r[Number(i(n))];
13
- return t.items ? o(c(n), t.items) : void 0;
12
+ const t = r[Number(c(n))];
13
+ return t.items ? o(f(n), t.items) : void 0;
14
14
  }
15
- function i(n) {
15
+ function c(n) {
16
16
  return e(n) ? n : n.split("_")[0];
17
17
  }
18
- function c(n) {
18
+ function f(n) {
19
19
  if (e(n))
20
20
  return n;
21
21
  const r = n.indexOf("_");
22
22
  return n.substring(r + 1);
23
23
  }
24
- function S(n) {
25
- return f("0", n);
24
+ function O(n) {
25
+ return i("0", n);
26
26
  }
27
- function g(n, r) {
27
+ function S(n, r) {
28
28
  return r.indexOf(n) === 0 ? r.length === n.length || r.charAt(n.length) === "_" : !1;
29
29
  }
30
- function f(n, r) {
30
+ function i(n, r) {
31
31
  return r ? r + "_" + n : n;
32
32
  }
33
- function P(n) {
33
+ function g(n) {
34
34
  const r = n.lastIndexOf("_");
35
35
  return r < 0 ? "" : n.substring(0, r);
36
36
  }
@@ -40,37 +40,33 @@ function e(n) {
40
40
  function u(n) {
41
41
  return n !== "" && n.indexOf("_") < 0;
42
42
  }
43
- function a(n) {
44
- return E(n) === 1;
45
- }
46
- function l(n) {
47
- return R(n) === "0";
43
+ function P(n) {
44
+ return R(n) === 1;
48
45
  }
49
- function R(n) {
46
+ function a(n) {
50
47
  const r = n.lastIndexOf("_");
51
48
  return r < 0 ? n : n.substring(r + 1);
52
49
  }
53
- function T(n, r, t) {
50
+ function l(n, r, t) {
54
51
  return u(r) ? n ? Number(r) < t - 1 ? (Number(r) + 1).toString() : "0" : Number(r) > 0 ? (Number(r) - 1).toString() : (t - 1).toString() : r;
55
52
  }
56
- function E(n) {
53
+ function R(n) {
57
54
  return n.split("_").length - 1;
58
55
  }
59
56
  export {
60
- s as EMPTY_ID,
61
- O as SEPARATOR,
62
- A as ZERO_LEVEL_ZERO_ITEM_ID,
63
- f as createId,
64
- P as getDirectParentId,
65
- T as getDirectSiblingIdForLevelZero,
66
- S as getFirstChildId,
67
- c as getIdWithoutRootParentId,
57
+ A as EMPTY_ID,
58
+ E as SEPARATOR,
59
+ s as ZERO_LEVEL_ZERO_ITEM_ID,
60
+ i as createId,
61
+ g as getDirectParentId,
62
+ l as getDirectSiblingIdForLevelZero,
63
+ O as getFirstChildId,
64
+ f as getIdWithoutRootParentId,
68
65
  o as getItemById,
69
- i as getRootParentId,
70
- R as getShortId,
71
- l as isFirstItemFromSiblings,
66
+ c as getRootParentId,
67
+ a as getShortId,
72
68
  e as isIdEmptyOrZeroLevel,
73
- a as isIdFirstLevel,
69
+ P as isIdFirstLevel,
74
70
  u as isIdZeroLevel,
75
- g as shouldOpenItem
71
+ S as shouldOpenItem
76
72
  };
@@ -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 y=require("react"),s=require("./itemsIdsUtils.js"),R=require("../components/MenuItem.js");function O(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const S=O(y);function C(t,n){if(t&&t.length>0)return{items:u(t),inputItems:t};if(c(n).length>0){const e=h(c(n));return{items:u(e),inputItems:e}}return{items:[],inputItems:[]}}function b(t,n){const e={},{text:r,url:o,icon:i,svgIcon:a,disabled:d,cssClass:l,cssStyle:f,render:p,linkRender:I,contentRender:m,data:g,separator:v}=t||n.props;return r!==void 0&&(e.text=r),o!==void 0&&(e.url=o),i!==void 0&&(e.icon=i),a!==void 0&&(e.svgIcon=a),d!==void 0&&(e.disabled=d),l!==void 0&&(e.cssClass=l),f!==void 0&&(e.cssStyle=f),p!==void 0&&(e.render=p),I!==void 0&&(e.linkRender=I),m!==void 0&&(e.contentRender=m),g!==void 0&&(e.data=g),v!==void 0&&(e.separator=v),e}function c(t){return S.Children.toArray(t).filter(n=>n&&n.type===R.MenuItem)}function h(t){const n=[];for(let e=0;e<t.length;e++){const r=t[e],o=b(void 0,r),i=h(c(r.props.children));i.length>0&&(o.items=i),n.push(o)}return n}function u(t,n){const e=[];for(let r=0;r<t.length;r++){const o=t[r],i=b(o);i.id=s.createId(r.toString(),n),i.isLastFromSiblings=r===t.length-1,i.separator=o.separator===!0,i.items=_(o,i),e.push(i)}return e}function _(t,n){return t.contentRender?[{contentParentItemId:n.id,id:s.createId(s.ZERO_LEVEL_ZERO_ITEM_ID,n.id),isLastFromSiblings:!0,separator:!1,contentRender:t.contentRender,items:[]}]:t.items?u(t.items,n.id):[]}exports.prepareInputItemsForInternalWork=C;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react"),s=require("./itemsIdsUtils.js"),b=require("../components/MenuItem.js");function O(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const C=O(R);function S(t,n){if(t&&t.length>0)return{items:u(t),inputItems:t};if(c(n).length>0){const e=y(c(n));return{items:u(e),inputItems:e}}return{items:[],inputItems:[]}}function h(t,n){const e={},{text:r,url:i,icon:o,svgIcon:d,disabled:a,cssClass:l,cssStyle:f,render:p,linkRender:I,contentRender:m,data:v,separator:g}=t||n.props;return r!==void 0&&(e.text=r),i!==void 0&&(e.url=i),o!==void 0&&(e.icon=o),d!==void 0&&(e.svgIcon=d),a!==void 0&&(e.disabled=a),l!==void 0&&(e.cssClass=l),f!==void 0&&(e.cssStyle=f),p!==void 0&&(e.render=p),I!==void 0&&(e.linkRender=I),m!==void 0&&(e.contentRender=m),v!==void 0&&(e.data=v),g!==void 0&&(e.separator=g),e}function c(t){return C.Children.toArray(t).filter(n=>n&&n.type===b.MenuItem)}function y(t){const n=[];for(let e=0;e<t.length;e++){const r=t[e],i=h(void 0,r),o=y(c(r.props.children));o.length>0&&(i.items=o),n.push(i)}return n}function u(t,n){const e=[];for(let r=0;r<t.length;r++){const i=t[r],o=h(i);o.id=s.createId(r.toString(),n),o.separator=i.separator===!0,o.items=_(i,o),e.push(o)}return e}function _(t,n){return t.contentRender?[{contentParentItemId:n.id,id:s.createId(s.ZERO_LEVEL_ZERO_ITEM_ID,n.id),separator:!1,contentRender:t.contentRender,items:[]}]:t.items?u(t.items,n.id):[]}exports.prepareInputItemsForInternalWork=S;
@@ -6,53 +6,53 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import * as C from "react";
9
- import { createId as g, ZERO_LEVEL_ZERO_ITEM_ID as y } from "./itemsIdsUtils.mjs";
9
+ import { createId as h, ZERO_LEVEL_ZERO_ITEM_ID as y } from "./itemsIdsUtils.mjs";
10
10
  import { MenuItem as x } from "../components/MenuItem.mjs";
11
- function L(e, n) {
11
+ function k(e, n) {
12
12
  if (e && e.length > 0)
13
13
  return {
14
- items: c(e),
14
+ items: d(e),
15
15
  inputItems: e
16
16
  };
17
17
  if (s(n).length > 0) {
18
- const t = R(s(n));
19
- return { items: c(t), inputItems: t };
18
+ const t = g(s(n));
19
+ return { items: d(t), inputItems: t };
20
20
  }
21
21
  return { items: [], inputItems: [] };
22
22
  }
23
- function h(e, n) {
23
+ function R(e, n) {
24
24
  const t = {}, {
25
25
  text: i,
26
26
  url: o,
27
27
  icon: r,
28
- svgIcon: d,
28
+ svgIcon: c,
29
29
  disabled: u,
30
30
  cssClass: f,
31
- cssStyle: a,
32
- render: l,
33
- linkRender: p,
31
+ cssStyle: p,
32
+ render: a,
33
+ linkRender: l,
34
34
  contentRender: m,
35
35
  data: I,
36
36
  separator: v
37
37
  } = e || n.props;
38
- return i !== void 0 && (t.text = i), o !== void 0 && (t.url = o), r !== void 0 && (t.icon = r), d !== void 0 && (t.svgIcon = d), u !== void 0 && (t.disabled = u), f !== void 0 && (t.cssClass = f), a !== void 0 && (t.cssStyle = a), l !== void 0 && (t.render = l), p !== void 0 && (t.linkRender = p), m !== void 0 && (t.contentRender = m), I !== void 0 && (t.data = I), v !== void 0 && (t.separator = v), t;
38
+ return i !== void 0 && (t.text = i), o !== void 0 && (t.url = o), r !== void 0 && (t.icon = r), c !== void 0 && (t.svgIcon = c), u !== void 0 && (t.disabled = u), f !== void 0 && (t.cssClass = f), p !== void 0 && (t.cssStyle = p), a !== void 0 && (t.render = a), l !== void 0 && (t.linkRender = l), m !== void 0 && (t.contentRender = m), I !== void 0 && (t.data = I), v !== void 0 && (t.separator = v), t;
39
39
  }
40
40
  function s(e) {
41
41
  return C.Children.toArray(e).filter((n) => n && n.type === x);
42
42
  }
43
- function R(e) {
43
+ function g(e) {
44
44
  const n = [];
45
45
  for (let t = 0; t < e.length; t++) {
46
- const i = e[t], o = h(void 0, i), r = R(s(i.props.children));
46
+ const i = e[t], o = R(void 0, i), r = g(s(i.props.children));
47
47
  r.length > 0 && (o.items = r), n.push(o);
48
48
  }
49
49
  return n;
50
50
  }
51
- function c(e, n) {
51
+ function d(e, n) {
52
52
  const t = [];
53
53
  for (let i = 0; i < e.length; i++) {
54
- const o = e[i], r = h(o);
55
- r.id = g(i.toString(), n), r.isLastFromSiblings = i === e.length - 1, r.separator = o.separator === !0, r.items = E(o, r), t.push(r);
54
+ const o = e[i], r = R(o);
55
+ r.id = h(i.toString(), n), r.separator = o.separator === !0, r.items = E(o, r), t.push(r);
56
56
  }
57
57
  return t;
58
58
  }
@@ -60,14 +60,13 @@ function E(e, n) {
60
60
  return e.contentRender ? [
61
61
  {
62
62
  contentParentItemId: n.id,
63
- id: g(y, n.id),
64
- isLastFromSiblings: !0,
63
+ id: h(y, n.id),
65
64
  separator: !1,
66
65
  contentRender: e.contentRender,
67
66
  items: []
68
67
  }
69
- ] : e.items ? c(e.items, n.id) : [];
68
+ ] : e.items ? d(e.items, n.id) : [];
70
69
  }
71
70
  export {
72
- L as prepareInputItemsForInternalWork
71
+ k as prepareInputItemsForInternalWork
73
72
  };
@@ -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: 1789036970,version:"16.2.0-develop.2",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: 1791301569,version:"16.2.0-develop.20",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: 1789036970,
11
- version: '16.2.0-develop.2',
10
+ publishDate: 1791301569,
11
+ version: '16.2.0-develop.20',
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": "16.2.0-develop.2",
3
+ "version": "16.2.0-develop.20",
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": "16.2.0-develop.2",
30
- "@progress/kendo-react-buttons": "16.2.0-develop.2",
31
- "@progress/kendo-react-common": "16.2.0-develop.2",
32
- "@progress/kendo-react-intl": "16.2.0-develop.2",
33
- "@progress/kendo-react-popup": "16.2.0-develop.2",
34
- "@progress/kendo-react-progressbars": "16.2.0-develop.2",
29
+ "@progress/kendo-react-animation": "16.2.0-develop.20",
30
+ "@progress/kendo-react-buttons": "16.2.0-develop.20",
31
+ "@progress/kendo-react-common": "16.2.0-develop.20",
32
+ "@progress/kendo-react-intl": "16.2.0-develop.20",
33
+ "@progress/kendo-react-popup": "16.2.0-develop.20",
34
+ "@progress/kendo-react-progressbars": "16.2.0-develop.20",
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"
@@ -108,7 +108,7 @@
108
108
  "package": {
109
109
  "productName": "KendoReact",
110
110
  "productCode": "KENDOUIREACT",
111
- "publishDate": 1789036970,
111
+ "publishDate": 1791301569,
112
112
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
113
113
  }
114
114
  },
@@ -118,10 +118,5 @@
118
118
  },
119
119
  "publishConfig": {
120
120
  "access": "public"
121
- },
122
- "peerDependenciesMeta": {
123
- "@progress/kendo-svg-icons": {
124
- "optional": true
125
- }
126
121
  }
127
122
  }
@@ -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 N=require("react"),v=require("prop-types"),y=require("../card/Card.js"),A=require("../card/CardHeader.js"),D=require("../card/CardTitle.js"),I=require("../card/CardSubtitle.js"),h=require("../card/CardBody.js"),O=require("../card/CardImage.js"),T=require("../card/CardActions.js"),k=require("@progress/kendo-react-common"),q=require("@progress/kendo-react-animation"),R=require("@progress/kendo-svg-icons"),S=require("@progress/kendo-react-buttons");function x(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const c=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(i,l,c.get?c:{enumerable:!0,get:()=>e[l]})}}return i.default=e,Object.freeze(i)}const t=x(N),E=e=>{const{title:l,subtitle:c,actions:r,images:o,description:b}=e.eventData,[d,C]=t.useState(e.eventData.opened||!1),[s,u]=t.useState(!!e.collapsible&&!e.eventData.opened),f=a=>{if(C(!d),e.onChange){const n={syntheticEvent:a,nativeEvent:a.nativeEvent,eventData:e.eventData};e.onChange.call(void 0,n)}},g=a=>{if(e.onActionClick){const n={syntheticEvent:a,nativeEvent:a.nativeEvent,eventData:e.eventData};e.onActionClick.call(void 0,n)}},m=()=>t.createElement(t.Fragment,null,t.createElement(h.CardBody,null,t.createElement("div",{className:"k-card-description"},t.createElement("p",null,b),o&&o.map((a,n)=>t.createElement(O.CardImage,{key:n,src:a.src})))),r&&t.createElement(T.CardActions,null,r.map((a,n)=>t.createElement("a",{key:n,href:a.url,className:"k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary",onClick:g},a.text))));return t.createElement("div",{"data-testid":"k-timeline-card",className:k.classNames("k-timeline-card",{"k-collapsed":e.collapsible&&s})},t.createElement(y.Card,{id:e.panelId,"aria-label":e.ariaLabel,"aria-live":e.horizontal?void 0:"polite","aria-describedby":e.id,tabIndex:e.tabindex,role:e.horizontal?"tabpanel":"button","aria-expanded":e.collapsible?!s:void 0,className:"k-card-with-callout",onClick:a=>f(a)},t.createElement("span",{style:e.calloutStyle,className:k.classNames("k-timeline-card-callout","k-card-callout",{"k-callout-n":e.horizontal},{"k-callout-e":e.alternated&&!e.horizontal},{"k-callout-w":!e.alternated&&!e.horizontal})}),t.createElement("div",{className:"k-card-inner"},t.createElement(A.CardHeader,null,t.createElement(D.CardTitle,null,t.createElement("span",{className:"k-event-title"},l),e.collapsible&&t.createElement(S.Button,{className:"k-event-collapse",fillMode:"flat",size:"xs",svgIcon:R.chevronRightIcon})),c&&t.createElement(I.CardSubtitle,null,c)),e.collapsible?t.createElement(q.Reveal,{transitionEnterDuration:e.transitionDuration||400,transitionExitDuration:e.transitionDuration||400,onBeforeEnter:()=>u(!1),onAfterExited:()=>u(!0)},d?m():null):m())))};E.propTypes={onChange:v.func,onActionClick:v.func};exports.TimelineCard=E;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),k=require("prop-types"),y=require("../card/Card.js"),A=require("../card/CardHeader.js"),D=require("../card/CardTitle.js"),I=require("../card/CardSubtitle.js"),h=require("../card/CardBody.js"),O=require("../card/CardImage.js"),T=require("../card/CardActions.js"),r=require("@progress/kendo-react-common"),q=require("@progress/kendo-react-animation"),R=require("@progress/kendo-svg-icons"),S=require("@progress/kendo-react-buttons");function z(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const i=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(c,l,i.get?i:{enumerable:!0,get:()=>e[l]})}}return c.default=e,Object.freeze(c)}const t=z(N),E=e=>{const{title:l,subtitle:i,actions:o,images:d,description:b}=e.eventData,[s,C]=t.useState(e.eventData.opened||!1),[u,m]=t.useState(!!e.collapsible&&!e.eventData.opened),f=a=>{if(C(!s),e.onChange){const n={syntheticEvent:a,nativeEvent:a.nativeEvent,eventData:e.eventData};e.onChange.call(void 0,n)}},g=a=>{if(e.onActionClick){const n={syntheticEvent:a,nativeEvent:a.nativeEvent,eventData:e.eventData};e.onActionClick.call(void 0,n)}},v=()=>t.createElement(t.Fragment,null,t.createElement(h.CardBody,null,t.createElement("div",{className:"k-card-description"},t.createElement("p",null,b),d&&d.map((a,n)=>t.createElement(O.CardImage,{key:n,src:a.src})))),o&&t.createElement(T.CardActions,null,o.map((a,n)=>t.createElement("a",{key:n,href:r.sanitizeUrl(a.url)||void 0,className:"k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary",onClick:g},a.text))));return t.createElement("div",{"data-testid":"k-timeline-card",className:r.classNames("k-timeline-card",{"k-collapsed":e.collapsible&&u})},t.createElement(y.Card,{id:e.panelId,"aria-label":e.ariaLabel,"aria-live":e.horizontal?void 0:"polite","aria-describedby":e.id,tabIndex:e.tabindex,role:e.horizontal?"tabpanel":"button","aria-expanded":e.collapsible?!u:void 0,className:"k-card-with-callout",onClick:a=>f(a)},t.createElement("span",{style:e.calloutStyle,className:r.classNames("k-timeline-card-callout","k-card-callout",{"k-callout-n":e.horizontal},{"k-callout-e":e.alternated&&!e.horizontal},{"k-callout-w":!e.alternated&&!e.horizontal})}),t.createElement("div",{className:"k-card-inner"},t.createElement(A.CardHeader,null,t.createElement(D.CardTitle,null,t.createElement("span",{className:"k-event-title"},l),e.collapsible&&t.createElement(S.Button,{className:"k-event-collapse",fillMode:"flat",size:"xs",svgIcon:R.chevronRightIcon})),i&&t.createElement(I.CardSubtitle,null,i)),e.collapsible?t.createElement(q.Reveal,{transitionEnterDuration:e.transitionDuration||400,transitionExitDuration:e.transitionDuration||400,onBeforeEnter:()=>m(!1),onAfterExited:()=>m(!0)},s?v():null):v())))};E.propTypes={onChange:k.func,onActionClick:k.func};exports.TimelineCard=E;