@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.
- package/EULA.pdf +0 -0
- package/EULA.rtf +2730 -0
- package/EULA.txt +292 -0
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/expansionpanel/ExpansionPanel.js +1 -1
- package/expansionpanel/ExpansionPanel.mjs +77 -50
- package/expansionpanel/interfaces.d.ts +12 -0
- package/menu/components/Menu.js +1 -1
- package/menu/components/Menu.mjs +107 -100
- package/menu/components/MenuItemInternal.js +1 -1
- package/menu/components/MenuItemInternal.mjs +65 -67
- package/menu/components/MenuItemLink.js +1 -1
- package/menu/components/MenuItemLink.mjs +4 -4
- package/menu/models/MenuItemModel.d.ts +0 -1
- package/menu/utils/itemsIdsUtils.d.ts +0 -4
- package/menu/utils/itemsIdsUtils.js +1 -1
- package/menu/utils/itemsIdsUtils.mjs +27 -31
- package/menu/utils/prepareInputItemsForInternalWork.js +1 -1
- package/menu/utils/prepareInputItemsForInternalWork.mjs +19 -20
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +8 -13
- package/timeline/TimelineCard.js +1 -1
- package/timeline/TimelineCard.mjs +11 -11
|
@@ -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 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
|
|
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
|
|
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
|
|
15
|
-
const
|
|
16
|
-
const { parentItemId: a } = e,
|
|
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
|
|
22
|
-
return e.role ?
|
|
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:
|
|
26
|
+
role: n,
|
|
27
27
|
id: a !== void 0 ? M(e.menuGuid, a) : void 0,
|
|
28
|
-
onMouseOver:
|
|
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,
|
|
33
|
-
|
|
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:
|
|
52
|
+
key: c
|
|
53
53
|
}
|
|
54
54
|
)) : null
|
|
55
55
|
);
|
|
56
|
-
},
|
|
57
|
-
const a = i.useRef(null),
|
|
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,
|
|
60
|
-
const
|
|
61
|
-
if (
|
|
62
|
-
|
|
63
|
-
else if (
|
|
64
|
-
const T =
|
|
65
|
-
u !==
|
|
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)) && ((
|
|
68
|
+
!((s = a.current) != null && s.contains(T)) && ((r = a.current) == null || r.focus({ preventScroll: !0 }));
|
|
69
69
|
}
|
|
70
|
-
I.current =
|
|
70
|
+
I.current = t;
|
|
71
71
|
});
|
|
72
|
-
const E = (
|
|
73
|
-
e.onMouseOver(o),
|
|
74
|
-
},
|
|
75
|
-
e.onMouseLeave(o),
|
|
76
|
-
},
|
|
77
|
-
e.onPopupClose(o,
|
|
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
|
|
80
|
-
return /* @__PURE__ */ i.createElement("div", { className: "k-content", role: "presentation" }, /* @__PURE__ */ i.createElement(l, { item: e.onOriginalItemNeeded(
|
|
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(
|
|
88
|
-
itemId:
|
|
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
|
|
95
|
-
return /* @__PURE__ */ i.createElement(V, { url:
|
|
96
|
-
|
|
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:
|
|
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
|
|
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
|
|
111
|
-
return
|
|
112
|
-
openDuration: (
|
|
113
|
-
closeDuration: (
|
|
114
|
-
direction: (
|
|
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:
|
|
125
|
-
onClose:
|
|
124
|
+
animate: r,
|
|
125
|
+
onClose: L,
|
|
126
126
|
key: "1"
|
|
127
127
|
},
|
|
128
128
|
/* @__PURE__ */ i.createElement(
|
|
129
|
-
|
|
129
|
+
w,
|
|
130
130
|
{
|
|
131
131
|
parentItemId: o,
|
|
132
132
|
animate: e.animate,
|
|
133
|
-
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-
|
|
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
|
-
|
|
160
|
+
n.cssClass
|
|
163
161
|
);
|
|
164
|
-
return /* @__PURE__ */ i.createElement(i.Fragment, null,
|
|
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:
|
|
170
|
-
id:
|
|
167
|
+
key: c,
|
|
168
|
+
id: c,
|
|
171
169
|
ref: a
|
|
172
170
|
}
|
|
173
171
|
) : /* @__PURE__ */ i.createElement(
|
|
174
172
|
"li",
|
|
175
173
|
{
|
|
176
|
-
id:
|
|
174
|
+
id: c,
|
|
177
175
|
className: P,
|
|
178
|
-
style:
|
|
176
|
+
style: n.cssStyle,
|
|
179
177
|
tabIndex: o === e.tabbableItemId ? 0 : -1,
|
|
180
178
|
onMouseOver: E,
|
|
181
|
-
onMouseLeave:
|
|
182
|
-
onBlur: (
|
|
179
|
+
onMouseLeave: h,
|
|
180
|
+
onBlur: (t) => e.onBlur(o, t),
|
|
183
181
|
onFocus: () => e.onFocus(o),
|
|
184
|
-
onClick: (
|
|
182
|
+
onClick: (t) => e.onClick(t, o),
|
|
185
183
|
role: "menuitem",
|
|
186
|
-
"aria-disabled":
|
|
187
|
-
"aria-haspopup":
|
|
188
|
-
"aria-expanded":
|
|
189
|
-
"aria-label":
|
|
190
|
-
"aria-owns": d ?
|
|
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:
|
|
190
|
+
key: c
|
|
193
191
|
},
|
|
194
192
|
k ? C() : D()
|
|
195
193
|
), N());
|
|
196
194
|
};
|
|
197
195
|
export {
|
|
198
|
-
|
|
199
|
-
|
|
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"),
|
|
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 }),
|
|
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
|
-
|
|
21
|
+
r.propTypes = {
|
|
22
22
|
opened: n.bool,
|
|
23
23
|
url: n.string
|
|
24
24
|
};
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
r as MenuItemLink
|
|
27
27
|
};
|
|
@@ -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="",
|
|
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
|
|
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(
|
|
13
|
-
return t.items ? o(
|
|
12
|
+
const t = r[Number(c(n))];
|
|
13
|
+
return t.items ? o(f(n), t.items) : void 0;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function c(n) {
|
|
16
16
|
return e(n) ? n : n.split("_")[0];
|
|
17
17
|
}
|
|
18
|
-
function
|
|
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
|
|
25
|
-
return
|
|
24
|
+
function O(n) {
|
|
25
|
+
return i("0", n);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
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
|
|
30
|
+
function i(n, r) {
|
|
31
31
|
return r ? r + "_" + n : n;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
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
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
function l(n) {
|
|
47
|
-
return R(n) === "0";
|
|
43
|
+
function P(n) {
|
|
44
|
+
return R(n) === 1;
|
|
48
45
|
}
|
|
49
|
-
function
|
|
46
|
+
function a(n) {
|
|
50
47
|
const r = n.lastIndexOf("_");
|
|
51
48
|
return r < 0 ? n : n.substring(r + 1);
|
|
52
49
|
}
|
|
53
|
-
function
|
|
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
|
|
53
|
+
function R(n) {
|
|
57
54
|
return n.split("_").length - 1;
|
|
58
55
|
}
|
|
59
56
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
l as isFirstItemFromSiblings,
|
|
66
|
+
c as getRootParentId,
|
|
67
|
+
a as getShortId,
|
|
72
68
|
e as isIdEmptyOrZeroLevel,
|
|
73
|
-
|
|
69
|
+
P as isIdFirstLevel,
|
|
74
70
|
u as isIdZeroLevel,
|
|
75
|
-
|
|
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
|
|
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
|
|
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
|
|
11
|
+
function k(e, n) {
|
|
12
12
|
if (e && e.length > 0)
|
|
13
13
|
return {
|
|
14
|
-
items:
|
|
14
|
+
items: d(e),
|
|
15
15
|
inputItems: e
|
|
16
16
|
};
|
|
17
17
|
if (s(n).length > 0) {
|
|
18
|
-
const t =
|
|
19
|
-
return { items:
|
|
18
|
+
const t = g(s(n));
|
|
19
|
+
return { items: d(t), inputItems: t };
|
|
20
20
|
}
|
|
21
21
|
return { items: [], inputItems: [] };
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function R(e, n) {
|
|
24
24
|
const t = {}, {
|
|
25
25
|
text: i,
|
|
26
26
|
url: o,
|
|
27
27
|
icon: r,
|
|
28
|
-
svgIcon:
|
|
28
|
+
svgIcon: c,
|
|
29
29
|
disabled: u,
|
|
30
30
|
cssClass: f,
|
|
31
|
-
cssStyle:
|
|
32
|
-
render:
|
|
33
|
-
linkRender:
|
|
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),
|
|
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
|
|
43
|
+
function g(e) {
|
|
44
44
|
const n = [];
|
|
45
45
|
for (let t = 0; t < e.length; t++) {
|
|
46
|
-
const i = e[t], o =
|
|
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
|
|
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 =
|
|
55
|
-
r.id =
|
|
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:
|
|
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 ?
|
|
68
|
+
] : e.items ? d(e.items, n.id) : [];
|
|
70
69
|
}
|
|
71
70
|
export {
|
|
72
|
-
|
|
71
|
+
k as prepareInputItemsForInternalWork
|
|
73
72
|
};
|
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: 1791301569,version:"16.2.0-develop.20",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = Object.freeze({
|
|
|
7
7
|
productName: 'KendoReact',
|
|
8
8
|
productCode: 'KENDOUIREACT',
|
|
9
9
|
productCodes: ['KENDOUIREACT'],
|
|
10
|
-
publishDate:
|
|
11
|
-
version: '16.2.0-develop.
|
|
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.
|
|
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.
|
|
30
|
-
"@progress/kendo-react-buttons": "16.2.0-develop.
|
|
31
|
-
"@progress/kendo-react-common": "16.2.0-develop.
|
|
32
|
-
"@progress/kendo-react-intl": "16.2.0-develop.
|
|
33
|
-
"@progress/kendo-react-popup": "16.2.0-develop.
|
|
34
|
-
"@progress/kendo-react-progressbars": "16.2.0-develop.
|
|
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":
|
|
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
|
}
|
package/timeline/TimelineCard.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 N=require("react"),
|
|
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;
|