@progress/kendo-react-common 7.0.0-develop.9 → 7.0.1-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-react-common.js +2 -2
- package/hocs/use-id-hoc.d.ts +7 -0
- package/hooks/use-id.d.ts +6 -0
- package/hooks/use-isomorphic-layout-effect.d.ts +7 -0
- package/index.d.ts +3 -0
- package/index.js +2 -2
- package/index.mjs +328 -305
- package/package.json +2 -1
package/index.mjs
CHANGED
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use client";
|
|
5
6
|
import * as r from "react";
|
|
6
7
|
import * as Y from "@progress/kendo-licensing";
|
|
7
|
-
import * as
|
|
8
|
+
import * as bt from "react-dom";
|
|
8
9
|
import * as g from "prop-types";
|
|
9
|
-
import { dispatchDragAndDrop as
|
|
10
|
-
const
|
|
11
|
-
|
|
10
|
+
import { dispatchDragAndDrop as xt, getScrollableParent as Xe, autoScroll as yt } from "@progress/kendo-draggable-common";
|
|
11
|
+
const qe = r.createContext(0), kn = () => r.useContext(qe);
|
|
12
|
+
qe.displayName = "KendoReactZIndexContext";
|
|
12
13
|
const pt = () => typeof document < "u" ? document : {};
|
|
13
|
-
class
|
|
14
|
+
class Ke {
|
|
14
15
|
constructor() {
|
|
15
16
|
this.scrollbar = 0;
|
|
16
17
|
}
|
|
@@ -24,43 +25,43 @@ class qe {
|
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
const he = !!// from fbjs
|
|
27
|
-
(typeof window < "u" && window.document && window.document.createElement),
|
|
28
|
+
(typeof window < "u" && window.document && window.document.createElement), kt = (e) => {
|
|
28
29
|
var t;
|
|
29
30
|
return !!(typeof e == "function" && ((t = e.prototype) != null && t.isReactComponent));
|
|
30
|
-
},
|
|
31
|
+
}, Dt = (e) => !!(e.$$typeof && typeof e.render == "function"), Dn = (e) => typeof Comment != "string" && (kt(e) || Dt(e)), We = (...e) => {
|
|
31
32
|
const t = {}, n = (s) => typeof s == "object" ? Object.keys(s).forEach((l) => {
|
|
32
33
|
t[l] = s[l];
|
|
33
34
|
}) : t[s] = !0, o = (s) => s.filter((l) => l !== !0 && !!l).map((l) => Array.isArray(l) ? o(l) : n(l));
|
|
34
35
|
return o(e), Object.keys(t).map((s) => t[s] && s || null).filter((s) => s !== null).join(" ");
|
|
35
|
-
},
|
|
36
|
-
function
|
|
36
|
+
}, At = (e) => e ? new Date(e.getTime()) : null;
|
|
37
|
+
function An(e) {
|
|
37
38
|
const t = {};
|
|
38
|
-
return
|
|
39
|
+
return _e(e, t), t;
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function _e(e, t) {
|
|
41
42
|
for (let n in e)
|
|
42
43
|
if (e.hasOwnProperty(n)) {
|
|
43
44
|
const o = e[n];
|
|
44
|
-
t[n] =
|
|
45
|
+
t[n] = $e(o, t[n]);
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
+
function $e(e, t) {
|
|
48
49
|
if (Array.isArray(e))
|
|
49
|
-
return
|
|
50
|
+
return wt(e);
|
|
50
51
|
if (e instanceof Date)
|
|
51
|
-
return
|
|
52
|
+
return At(e);
|
|
52
53
|
if (r.isValidElement(e))
|
|
53
54
|
return r.cloneElement(e, e.props);
|
|
54
55
|
if (e && typeof e == "object") {
|
|
55
56
|
const n = t || {};
|
|
56
|
-
return
|
|
57
|
+
return _e(e, n), n;
|
|
57
58
|
} else
|
|
58
59
|
return e;
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
-
return e.map((t) =>
|
|
61
|
+
function wt(e) {
|
|
62
|
+
return e.map((t) => $e(t, void 0));
|
|
62
63
|
}
|
|
63
|
-
const
|
|
64
|
+
const wn = (e) => {
|
|
64
65
|
if (e) {
|
|
65
66
|
if ((e instanceof HTMLInputElement || e.tabIndex !== -1) && e.focus) {
|
|
66
67
|
e.focus();
|
|
@@ -70,26 +71,26 @@ const kn = (e) => {
|
|
|
70
71
|
t && t.focus && t.focus();
|
|
71
72
|
}
|
|
72
73
|
};
|
|
73
|
-
class
|
|
74
|
+
class Pn {
|
|
74
75
|
}
|
|
75
|
-
const
|
|
76
|
+
const Pt = -1, It = 0, In = (e, t, n) => {
|
|
76
77
|
const o = typeof e == "string" ? parseInt(e) : e;
|
|
77
78
|
if (!Number.isNaN(o))
|
|
78
|
-
return o !== void 0 ? o : t ? n ? void 0 :
|
|
79
|
-
},
|
|
80
|
-
function
|
|
79
|
+
return o !== void 0 ? o : t ? n ? void 0 : Pt : It;
|
|
80
|
+
}, Ot = /\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;
|
|
81
|
+
function et(e) {
|
|
81
82
|
const t = [];
|
|
82
|
-
return e.replace(
|
|
83
|
+
return e.replace(Ot, function(n, o, s, l) {
|
|
83
84
|
t.push(o !== void 0 ? o : s || l);
|
|
84
85
|
}), t;
|
|
85
86
|
}
|
|
86
87
|
const z = {};
|
|
87
88
|
z.undefined = () => {
|
|
88
89
|
};
|
|
89
|
-
function
|
|
90
|
+
function On(e) {
|
|
90
91
|
if (z[e])
|
|
91
92
|
return z[e];
|
|
92
|
-
const t =
|
|
93
|
+
const t = et(e);
|
|
93
94
|
return z[e] = function(n) {
|
|
94
95
|
let o = n;
|
|
95
96
|
for (let s = 0; s < t.length && o; s++)
|
|
@@ -97,12 +98,12 @@ function wn(e) {
|
|
|
97
98
|
return o;
|
|
98
99
|
}, z[e];
|
|
99
100
|
}
|
|
100
|
-
const
|
|
101
|
+
const Ye = () => {
|
|
101
102
|
let e = "", t, n;
|
|
102
103
|
for (t = 0; t < 32; t++)
|
|
103
104
|
n = Math.random() * 16 | 0, (t === 8 || t === 12 || t === 16 || t === 20) && (e += "-"), e += (t === 12 ? 4 : t === 16 ? n & 3 | 8 : n).toString(16);
|
|
104
105
|
return e;
|
|
105
|
-
},
|
|
106
|
+
}, Mn = {
|
|
106
107
|
backspace: 8,
|
|
107
108
|
tab: 9,
|
|
108
109
|
enter: 13,
|
|
@@ -119,49 +120,49 @@ const Pn = () => {
|
|
|
119
120
|
down: 40,
|
|
120
121
|
delete: 46
|
|
121
122
|
}, C = function() {
|
|
122
|
-
},
|
|
123
|
+
}, Sn = () => !he || !document.body ? !1 : new Ke().scrollbarWidth, Rn = () => {
|
|
123
124
|
if (!he || !document.body)
|
|
124
125
|
return !1;
|
|
125
|
-
let e = new
|
|
126
|
+
let e = new Ke().scrollbarWidth;
|
|
126
127
|
document.body.style.setProperty("--kendo-scrollbar-width", `${e}px`);
|
|
127
128
|
}, F = {};
|
|
128
129
|
F.undefined = (e) => e;
|
|
129
|
-
const
|
|
130
|
-
function
|
|
130
|
+
const Mt = (e, t) => t && t.arrays && !isNaN(Number(e)) ? [] : {};
|
|
131
|
+
function Ln(e) {
|
|
131
132
|
if (F[e])
|
|
132
133
|
return F[e];
|
|
133
|
-
const t =
|
|
134
|
+
const t = et(e);
|
|
134
135
|
return F[e] = (n, o, s) => {
|
|
135
136
|
let l = n;
|
|
136
137
|
const c = t.length - 1;
|
|
137
138
|
for (let i = 0; i < c && l; i++)
|
|
138
|
-
l = l[t[i]] = l[t[i]] ||
|
|
139
|
+
l = l[t[i]] = l[t[i]] || Mt(t[i + 1], s);
|
|
139
140
|
l[t[c]] = o;
|
|
140
141
|
}, F[e];
|
|
141
142
|
}
|
|
142
|
-
function
|
|
143
|
+
function Ge(e, t, n) {
|
|
143
144
|
return n ? { ...e, [t]: n.length ? [...n] : void 0 } : e && e[t] ? [...e[t]] : [];
|
|
144
145
|
}
|
|
145
|
-
function
|
|
146
|
+
function tt(e, t, n) {
|
|
146
147
|
if (e[t]) {
|
|
147
|
-
let o =
|
|
148
|
-
return n(
|
|
148
|
+
let o = Ge(e, t).map((s) => tt(s, t, n));
|
|
149
|
+
return n(Ge(e, t, o));
|
|
149
150
|
}
|
|
150
151
|
return n(e);
|
|
151
152
|
}
|
|
152
|
-
const
|
|
153
|
+
const Tn = (e, t, n) => [...e.map((o) => tt(o, t, n))], Nn = (e, t, n, o) => {
|
|
153
154
|
let s = e;
|
|
154
155
|
const l = [];
|
|
155
156
|
for (let f = 0; f < t.length; f++)
|
|
156
157
|
s = s[t[f]], s = Array.isArray(s) ? s : s[n], l.push(s);
|
|
157
158
|
const c = l.length > 1 ? l[l.length - 2] : e, i = t[t.length - 1], h = o(c[i]);
|
|
158
159
|
c.splice(i, 1, h);
|
|
159
|
-
},
|
|
160
|
+
}, Hn = (e, t, n) => Object.assign(
|
|
160
161
|
{},
|
|
161
162
|
e,
|
|
162
163
|
e[t] ? { [t]: e[t].slice() } : {},
|
|
163
164
|
n || {}
|
|
164
|
-
),
|
|
165
|
+
), Bn = (e, t, n) => {
|
|
165
166
|
const o = [], s = [...t];
|
|
166
167
|
if (s.length) {
|
|
167
168
|
let l = e[s.shift() || 0];
|
|
@@ -169,8 +170,8 @@ const Rn = (e, t, n) => [...e.map((o) => et(o, t, n))], Ln = (e, t, n, o) => {
|
|
|
169
170
|
l = l[n][s.shift() || 0], o.push(l);
|
|
170
171
|
}
|
|
171
172
|
return o;
|
|
172
|
-
},
|
|
173
|
-
function
|
|
173
|
+
}, St = ["telerik.com", "progress.com", "stackblitz.io", "csb.app"];
|
|
174
|
+
function jn(e) {
|
|
174
175
|
if (typeof Y < "u")
|
|
175
176
|
Y.validatePackage(e);
|
|
176
177
|
else {
|
|
@@ -181,13 +182,13 @@ function Bn(e) {
|
|
|
181
182
|
`, console.warn(t);
|
|
182
183
|
}
|
|
183
184
|
}
|
|
184
|
-
function
|
|
185
|
-
return !
|
|
185
|
+
function Qn(e) {
|
|
186
|
+
return !St.some((n) => {
|
|
186
187
|
var o;
|
|
187
188
|
return (o = globalThis.document) == null ? void 0 : o.location.hostname.endsWith(n);
|
|
188
189
|
}) && !(Y != null && Y.validatePackage(e));
|
|
189
190
|
}
|
|
190
|
-
const
|
|
191
|
+
const zn = (e) => {
|
|
191
192
|
if (!he)
|
|
192
193
|
return !1;
|
|
193
194
|
const t = e ? e.ownerDocument : document;
|
|
@@ -199,12 +200,12 @@ const jn = (e) => {
|
|
|
199
200
|
s.appendChild(t.createTextNode("child")), s.style.position = "fixed", s.style.top = n + "px", o.appendChild(s), t.body.appendChild(o);
|
|
200
201
|
const l = s.getBoundingClientRect().top !== n;
|
|
201
202
|
return t.body.removeChild(o), l;
|
|
202
|
-
},
|
|
203
|
-
let
|
|
204
|
-
const
|
|
203
|
+
}, Rt = "https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-banner";
|
|
204
|
+
let Je = !1;
|
|
205
|
+
const Fn = () => {
|
|
205
206
|
const [e, t] = r.useState(!0), [n, o] = r.useState(!1);
|
|
206
207
|
r.useEffect(() => {
|
|
207
|
-
|
|
208
|
+
Je || (o(!0), Je = !0);
|
|
208
209
|
}, []);
|
|
209
210
|
const s = () => {
|
|
210
211
|
t(!1);
|
|
@@ -224,7 +225,7 @@ const Qn = () => {
|
|
|
224
225
|
backgroundColor: "#FFC000",
|
|
225
226
|
color: "#1E1E1E",
|
|
226
227
|
zIndex: 999
|
|
227
|
-
} }, /* @__PURE__ */ r.createElement("span", { style: { display: "flex", alignSelf: "center", marginRight: "8px" } }, /* @__PURE__ */ r.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ r.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 1L0 15H16L8 1ZM7 6V11H9V6H7ZM7 14V12H9V14H7Z", fill: "#1E1E1E" }))), /* @__PURE__ */ r.createElement("span", null, "No valid license found for KendoReact. Learn how to activate your license."), /* @__PURE__ */ r.createElement("div", { style: { display: "flex", alignItems: "center", marginLeft: "24px" } }, /* @__PURE__ */ r.createElement("a", { href:
|
|
228
|
+
} }, /* @__PURE__ */ r.createElement("span", { style: { display: "flex", alignSelf: "center", marginRight: "8px" } }, /* @__PURE__ */ r.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ r.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 1L0 15H16L8 1ZM7 6V11H9V6H7ZM7 14V12H9V14H7Z", fill: "#1E1E1E" }))), /* @__PURE__ */ r.createElement("span", null, "No valid license found for KendoReact. Learn how to activate your license."), /* @__PURE__ */ r.createElement("div", { style: { display: "flex", alignItems: "center", marginLeft: "24px" } }, /* @__PURE__ */ r.createElement("a", { href: Rt, style: { marginRight: "8px", display: "flex" } }, /* @__PURE__ */ r.createElement(
|
|
228
229
|
"button",
|
|
229
230
|
{
|
|
230
231
|
title: "Learn More",
|
|
@@ -271,15 +272,15 @@ const Qn = () => {
|
|
|
271
272
|
left: 0,
|
|
272
273
|
right: 0,
|
|
273
274
|
bottom: 0,
|
|
274
|
-
opacity: 0.
|
|
275
|
+
opacity: 0.12,
|
|
275
276
|
zIndex: 101,
|
|
276
277
|
pointerEvents: "none",
|
|
277
278
|
backgroundImage: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABVxSURBVHgB7Z3tVRtJE4WL9zgANgLLGRCCnAGOADmCxRGgDFAGYiOADKQMIAGO9J8ji42g37mjqlUjBgOanpn+uM85sjC2sKzbVd1dVV0tQgghhBBCCCGEEEIIKRPn3Gn1GAlJmmN1pP558J6OX9540ejh4WGlX09OTk7+EZIclXYXlY43+vVflY7PH3wd9c+AY/Wvvcb9/b0bjUYOz/hBQpICmh1oOPrEa6l/4rTR337AhIMgTSqtzg+0m8gnof7p0mD8EzmGhkFwJiR6np6e7luLL9Q/RTDTBzF+7wfWg2CxWOCHjYVET6XTdLPZrFuLL9Q/NeCkoVUQ4/d+6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p/EOSaCaHxv00J+tdoDnRJ8V+jtePLHGshaPzvk7P+pGC47SOkYCqDn6FvH42fkAJxuyPdaN01FlIGbnc/37TkFE8o3L4nAmvHCyQ5/S3gw24oYXAvuyKxbLgwktK/xNr+rsFqKpU8sa78Zlz5hSMZ/Znq6Y4UikVMf72oYyYkGNHrT+PvnpgHAVd+3ROt/jT+/ohxEFD//ohOf4rfPzENAurfP1E5AVzPRPH7xx8EuJ1WBoDGPxyH+ruhjlTjbnR9AxMhvYLPHA4YGkjPIMpP4x+WIfUnhYMZx2voMRFCSFlohVqR3XwIIaQc3O5OtrGQJFC9RkKKRCsyRxICi/YuFgvs986ERA3Eh1ahUkT4GQg0Vc9XQqInqP6ODRyTA046VJ7Y1x/XdgmJnmD6M8+bLiGKRVjemy6t9WeeN30aBsGHI/bUP33a6M88bybYIPjs9o3658Gx+tuLmefNgGN1pP55QB0JIYQQQgghhBBCCJGy+T9ftRg+rVNPfAAAAABJRU5ErkJggg==')"
|
|
278
279
|
}
|
|
279
280
|
}
|
|
280
|
-
), n &&
|
|
281
|
+
), n && bt.createPortal(l, document.body));
|
|
281
282
|
};
|
|
282
|
-
function
|
|
283
|
+
function Xn(e, t, n, o) {
|
|
283
284
|
if (e) {
|
|
284
285
|
const s = {
|
|
285
286
|
syntheticEvent: t,
|
|
@@ -289,7 +290,7 @@ function zn(e, t, n, o) {
|
|
|
289
290
|
e.call(void 0, Object.assign(s, o));
|
|
290
291
|
}
|
|
291
292
|
}
|
|
292
|
-
function
|
|
293
|
+
function Lt({ onFocus: e, onBlur: t, onSyncFocus: n, onSyncBlur: o }) {
|
|
293
294
|
const s = r.useRef(!1), l = r.useRef(0), c = r.useCallback(
|
|
294
295
|
(f) => {
|
|
295
296
|
clearTimeout(l.current), l.current = window.setTimeout(() => f());
|
|
@@ -315,20 +316,39 @@ function Rt({ onFocus: e, onBlur: t, onSyncFocus: n, onSyncBlur: o }) {
|
|
|
315
316
|
onBlur: h
|
|
316
317
|
};
|
|
317
318
|
}
|
|
318
|
-
const
|
|
319
|
+
const Yn = ({
|
|
319
320
|
children: e,
|
|
320
321
|
onFocus: t,
|
|
321
322
|
onBlur: n,
|
|
322
323
|
onSyncFocus: o,
|
|
323
324
|
onSyncBlur: s
|
|
324
325
|
}) => {
|
|
325
|
-
const l =
|
|
326
|
+
const l = Lt({ onFocus: t, onBlur: n, onSyncFocus: o, onSyncBlur: s });
|
|
326
327
|
return /* @__PURE__ */ r.createElement(r.Fragment, null, e.call(void 0, { ...l }));
|
|
327
|
-
},
|
|
328
|
-
const s =
|
|
328
|
+
}, Tt = (e, t) => r.useContext(e)(t), Gn = () => r.createContext((e) => e), Jn = (e, t) => r.forwardRef((n, o) => {
|
|
329
|
+
const s = Tt(e, n);
|
|
329
330
|
return /* @__PURE__ */ r.createElement(t, { ...s, ref: o });
|
|
331
|
+
}), Nt = typeof window < "u" ? r.useLayoutEffect : r.useEffect;
|
|
332
|
+
function Ht(e) {
|
|
333
|
+
const [t, n] = r.useState(!1);
|
|
334
|
+
r.useEffect(() => {
|
|
335
|
+
n(!0);
|
|
336
|
+
}, []);
|
|
337
|
+
const [o, s] = r.useState(() => {
|
|
338
|
+
if (e)
|
|
339
|
+
return e;
|
|
340
|
+
if (t)
|
|
341
|
+
return Ye();
|
|
342
|
+
});
|
|
343
|
+
return Nt(() => {
|
|
344
|
+
o === void 0 && s(Ye());
|
|
345
|
+
}, []), r.useId ? e ?? r.useId() : o;
|
|
346
|
+
}
|
|
347
|
+
const Un = (e) => r.forwardRef((t, n) => {
|
|
348
|
+
const o = Ht(t.id);
|
|
349
|
+
return /* @__PURE__ */ r.createElement(e, { ...t, id: o, ref: n });
|
|
330
350
|
});
|
|
331
|
-
function
|
|
351
|
+
function Zn(e, t, n) {
|
|
332
352
|
const [o, s] = r.useState(t);
|
|
333
353
|
return r.useEffect(
|
|
334
354
|
() => {
|
|
@@ -340,7 +360,7 @@ function Gn(e, t, n) {
|
|
|
340
360
|
n
|
|
341
361
|
), o;
|
|
342
362
|
}
|
|
343
|
-
function
|
|
363
|
+
function Vn(e, t, n) {
|
|
344
364
|
const [o, s] = r.useState(t);
|
|
345
365
|
return r.useEffect(
|
|
346
366
|
() => {
|
|
@@ -352,7 +372,7 @@ function Jn(e, t, n) {
|
|
|
352
372
|
n
|
|
353
373
|
), o;
|
|
354
374
|
}
|
|
355
|
-
const
|
|
375
|
+
const Bt = (e, t, n = {}) => {
|
|
356
376
|
const o = r.useCallback(
|
|
357
377
|
(u) => {
|
|
358
378
|
n.onMouseDown && n.onMouseDown.call(void 0, u), e.onMouseDown && e.onMouseDown.call(void 0, {
|
|
@@ -437,9 +457,9 @@ const Tt = (e, t, n = {}) => {
|
|
|
437
457
|
onMouseOut: d,
|
|
438
458
|
onMouseOver: m
|
|
439
459
|
};
|
|
440
|
-
},
|
|
460
|
+
}, qn = (e) => [e, {}];
|
|
441
461
|
var X = /* @__PURE__ */ ((e) => (e[e.add = 0] = "add", e[e.remove = 1] = "remove", e))(X || {});
|
|
442
|
-
const
|
|
462
|
+
const Ue = (e = []) => {
|
|
443
463
|
const t = r.useRef(e), n = r.useCallback(
|
|
444
464
|
(o) => {
|
|
445
465
|
switch (o.type) {
|
|
@@ -456,7 +476,7 @@ const Je = (e = []) => {
|
|
|
456
476
|
[]
|
|
457
477
|
);
|
|
458
478
|
return [t.current, n];
|
|
459
|
-
},
|
|
479
|
+
}, jt = (e) => {
|
|
460
480
|
const t = r.useCallback(
|
|
461
481
|
() => e.current && e.current.element ? e.current.element : e.current,
|
|
462
482
|
[e]
|
|
@@ -465,13 +485,13 @@ const Je = (e = []) => {
|
|
|
465
485
|
const o = t();
|
|
466
486
|
return o && o.ownerDocument || document;
|
|
467
487
|
}, [t]);
|
|
468
|
-
},
|
|
469
|
-
const t =
|
|
488
|
+
}, Kn = (e) => {
|
|
489
|
+
const t = jt(e);
|
|
470
490
|
return r.useCallback(() => {
|
|
471
491
|
const o = t();
|
|
472
492
|
return o && o.defaultView || window;
|
|
473
493
|
}, [t]);
|
|
474
|
-
},
|
|
494
|
+
}, nt = {
|
|
475
495
|
default: "",
|
|
476
496
|
xsmall: "k-icon-xs",
|
|
477
497
|
small: "k-icon-sm",
|
|
@@ -480,7 +500,7 @@ const Je = (e = []) => {
|
|
|
480
500
|
xlarge: "k-icon-xl",
|
|
481
501
|
xxlarge: "k-icon-xxl",
|
|
482
502
|
xxxlarge: "k-icon-xxxl"
|
|
483
|
-
},
|
|
503
|
+
}, Wn = (e) => e.replace(/^k-i-/, ""), Qt = (e) => "k-i-" + e, _n = g.shape({
|
|
484
504
|
name: g.string.isRequired,
|
|
485
505
|
content: g.string.isRequired,
|
|
486
506
|
viewBox: g.string.isRequired
|
|
@@ -492,14 +512,14 @@ const Je = (e = []) => {
|
|
|
492
512
|
n !== void 0 ? o(...h) : l(h[0]);
|
|
493
513
|
}
|
|
494
514
|
];
|
|
495
|
-
},
|
|
515
|
+
}, rt = r.createContext([
|
|
496
516
|
void 0,
|
|
497
517
|
C
|
|
498
518
|
]), ge = r.createContext([
|
|
499
519
|
void 0,
|
|
500
520
|
C
|
|
501
|
-
]),
|
|
502
|
-
function
|
|
521
|
+
]), ot = r.createContext([[], C, C]), me = r.createContext([[], C, C]), zt = 2e3;
|
|
522
|
+
function Ft(e, t, n = {}) {
|
|
503
523
|
const {
|
|
504
524
|
onPress: o = C,
|
|
505
525
|
onRelease: s = C,
|
|
@@ -511,10 +531,10 @@ function jt(e, t, n = {}) {
|
|
|
511
531
|
mouseOnly: f = !1,
|
|
512
532
|
autoScroll: d = !0,
|
|
513
533
|
scrollContainer: m = null
|
|
514
|
-
} = n, [u, x] = r.useState(!1), [
|
|
534
|
+
} = n, [u, x] = r.useState(!1), [y, w] = r.useState(!1), [E] = de(ge), [R, M] = de(rt), [T] = r.useContext(me), [I, P, O] = r.useContext(ot), p = r.useRef({ x: 0, y: 0 }), K = r.useRef(), W = r.useRef(!1), ye = r.useRef(), j = r.useRef(null), _ = r.useRef(!1), pe = r.useRef({ x: 0, y: 0 }), ke = r.useRef({ x: 0, y: 0 }), Z = r.useRef({ x: 0, y: 0 }), De = r.useRef({ x: 0, y: 0 }), Ae = r.useRef({ x: 0, y: 0 }), we = r.useRef({ x: 0, y: 0 }), dt = !!(typeof window < "u" && window.PointerEvent), Pe = !f && dt, L = r.useCallback(
|
|
515
535
|
() => e.current && e.current.element ? e.current.element : e.current,
|
|
516
536
|
[e]
|
|
517
|
-
),
|
|
537
|
+
), ft = r.useCallback(
|
|
518
538
|
() => h && h.current && h.current.element ? h.current.element : h ? h.current : null,
|
|
519
539
|
[h]
|
|
520
540
|
), Ie = r.useCallback(
|
|
@@ -526,12 +546,12 @@ function jt(e, t, n = {}) {
|
|
|
526
546
|
), Q = r.useRef(null);
|
|
527
547
|
r.useImperativeHandle(Q, () => ({
|
|
528
548
|
element: L(),
|
|
529
|
-
hint:
|
|
530
|
-
onPress:
|
|
531
|
-
onDragStart:
|
|
532
|
-
onDrag:
|
|
533
|
-
onDragEnd:
|
|
534
|
-
onRelease:
|
|
549
|
+
hint: ft(),
|
|
550
|
+
onPress: ht,
|
|
551
|
+
onDragStart: mt,
|
|
552
|
+
onDrag: vt,
|
|
553
|
+
onDragEnd: Ct,
|
|
554
|
+
onRelease: gt,
|
|
535
555
|
data: e.current
|
|
536
556
|
}));
|
|
537
557
|
const V = r.useCallback(
|
|
@@ -555,18 +575,18 @@ function jt(e, t, n = {}) {
|
|
|
555
575
|
pressed: u,
|
|
556
576
|
ignoreMouse: W.current,
|
|
557
577
|
scrollOffset: Ae.current,
|
|
558
|
-
offset:
|
|
578
|
+
offset: pe.current,
|
|
559
579
|
pageOffset: ke.current,
|
|
560
580
|
initialScrollOffset: we.current,
|
|
561
581
|
clientOffset: Z.current,
|
|
562
582
|
initialClientOffset: De.current,
|
|
563
|
-
velocity:
|
|
583
|
+
velocity: p.current,
|
|
564
584
|
autoScroll: !!(typeof d == "object" ? d.enabled !== !1 : d),
|
|
565
585
|
scrollableParent: Oe(),
|
|
566
586
|
autoScrollDirection: typeof d == "object" ? d.direction : { horizontal: !0, vertical: !0 },
|
|
567
|
-
isScrolling:
|
|
587
|
+
isScrolling: y
|
|
568
588
|
}),
|
|
569
|
-
[R, E, I, T, u, d, Oe,
|
|
589
|
+
[R, E, I, T, u, d, Oe, y]
|
|
570
590
|
), Se = r.useCallback(
|
|
571
591
|
(a) => {
|
|
572
592
|
x(a);
|
|
@@ -579,12 +599,12 @@ function jt(e, t, n = {}) {
|
|
|
579
599
|
[]
|
|
580
600
|
), Le = r.useCallback(
|
|
581
601
|
(a) => {
|
|
582
|
-
|
|
602
|
+
p.current = a;
|
|
583
603
|
},
|
|
584
604
|
[]
|
|
585
605
|
), Te = r.useCallback(
|
|
586
606
|
(a) => {
|
|
587
|
-
|
|
607
|
+
pe.current = a;
|
|
588
608
|
},
|
|
589
609
|
[]
|
|
590
610
|
), Ne = r.useCallback(
|
|
@@ -592,12 +612,12 @@ function jt(e, t, n = {}) {
|
|
|
592
612
|
Z.current = a;
|
|
593
613
|
},
|
|
594
614
|
[]
|
|
595
|
-
),
|
|
615
|
+
), He = r.useCallback(
|
|
596
616
|
(a) => {
|
|
597
617
|
ke.current = a;
|
|
598
618
|
},
|
|
599
619
|
[]
|
|
600
|
-
),
|
|
620
|
+
), Be = r.useCallback(
|
|
601
621
|
(a) => {
|
|
602
622
|
De.current = a;
|
|
603
623
|
},
|
|
@@ -612,42 +632,42 @@ function jt(e, t, n = {}) {
|
|
|
612
632
|
we.current = a;
|
|
613
633
|
},
|
|
614
634
|
[]
|
|
615
|
-
),
|
|
635
|
+
), ht = r.useCallback(
|
|
616
636
|
(a) => {
|
|
617
637
|
o(a);
|
|
618
638
|
},
|
|
619
639
|
[o]
|
|
620
|
-
),
|
|
640
|
+
), gt = r.useCallback(
|
|
621
641
|
(a) => {
|
|
622
642
|
s(a);
|
|
623
643
|
},
|
|
624
644
|
[s]
|
|
625
|
-
),
|
|
645
|
+
), mt = r.useCallback(
|
|
626
646
|
(a) => {
|
|
627
647
|
M(Q, { target: e.current, event: a }), l(a);
|
|
628
648
|
},
|
|
629
649
|
[M, e, l]
|
|
630
|
-
),
|
|
650
|
+
), vt = r.useCallback(
|
|
631
651
|
(a) => {
|
|
632
652
|
c(a);
|
|
633
653
|
},
|
|
634
654
|
[c]
|
|
635
|
-
),
|
|
655
|
+
), Ct = r.useCallback(
|
|
636
656
|
(a) => {
|
|
637
657
|
_.current || (M(null, { target: e.current, event: a }), i(a));
|
|
638
658
|
},
|
|
639
659
|
[i, M, e]
|
|
640
660
|
), v = r.useCallback(
|
|
641
661
|
(a) => {
|
|
642
|
-
|
|
662
|
+
xt(
|
|
643
663
|
Me(),
|
|
644
664
|
{ event: a, payload: Q.current },
|
|
645
665
|
{
|
|
646
666
|
onVelocityChange: Le,
|
|
647
667
|
onOffsetChange: Te,
|
|
648
668
|
onClientOffsetChange: Ne,
|
|
649
|
-
onPageOffsetChange:
|
|
650
|
-
onInitialClientOffsetChange:
|
|
669
|
+
onPageOffsetChange: He,
|
|
670
|
+
onInitialClientOffsetChange: Be,
|
|
651
671
|
onScrollOffsetChange: je,
|
|
652
672
|
onInitialScrollOffsetChange: Qe,
|
|
653
673
|
onIsPressedChange: Se,
|
|
@@ -659,9 +679,9 @@ function jt(e, t, n = {}) {
|
|
|
659
679
|
Me,
|
|
660
680
|
Le,
|
|
661
681
|
Te,
|
|
662
|
-
Be,
|
|
663
|
-
Ne,
|
|
664
682
|
He,
|
|
683
|
+
Ne,
|
|
684
|
+
Be,
|
|
665
685
|
Qe,
|
|
666
686
|
Se,
|
|
667
687
|
je,
|
|
@@ -721,9 +741,9 @@ function jt(e, t, n = {}) {
|
|
|
721
741
|
(a) => {
|
|
722
742
|
if (a.touches.length === 0 && a.changedTouches.length === 1) {
|
|
723
743
|
const b = N();
|
|
724
|
-
W.current = !0,
|
|
744
|
+
W.current = !0, ye.current = b.setTimeout(() => {
|
|
725
745
|
W.current = !1;
|
|
726
|
-
},
|
|
746
|
+
}, zt);
|
|
727
747
|
}
|
|
728
748
|
v(a);
|
|
729
749
|
},
|
|
@@ -749,24 +769,24 @@ function jt(e, t, n = {}) {
|
|
|
749
769
|
O(Q);
|
|
750
770
|
}),
|
|
751
771
|
[O, P]
|
|
752
|
-
),
|
|
772
|
+
), Et = () => {
|
|
753
773
|
const a = N(), b = L(), D = V();
|
|
754
774
|
return Pe ? (b && (j.current = Xe(b), j.current && j.current.addEventListener("scroll", ue, { passive: !0 }), b.addEventListener("pointerdown", $, { passive: !0 })), u && (D.addEventListener("pointermove", ee), D.addEventListener("pointerup", ne, !0), D.addEventListener("contextmenu", le), D.addEventListener("pointercancel", te, { passive: !0 }))) : (a.addEventListener("touchmove", C, { capture: !1, passive: !1 }), b && (b.addEventListener("mousedown", re, { passive: !0 }), f || (b.addEventListener("touchstart", ce, { passive: !0 }), u && (b.addEventListener("touchmove", ae, { passive: !0 }), b.addEventListener("touchend", ie, { passive: !0 })))), u && (D.addEventListener("mousemove", oe, { passive: !0 }), D.addEventListener("mouseup", se, { passive: !0 }))), () => {
|
|
755
|
-
j.current && j.current.removeEventListener("scroll", ue), b && (b.removeEventListener("pointerdown", $), b.removeEventListener("mousedown", re), b.removeEventListener("touchstart", ce), b.removeEventListener("touchmove", ae), b.removeEventListener("touchend", ie)), D.removeEventListener("pointermove", ee), D.removeEventListener("pointerup", ne, !0), D.removeEventListener("contextmenu", le), D.removeEventListener("pointercancel", te), D.removeEventListener("mousemove", oe), D.removeEventListener("mouseup", se), a.removeEventListener("touchmove", C), a.clearTimeout(
|
|
775
|
+
j.current && j.current.removeEventListener("scroll", ue), b && (b.removeEventListener("pointerdown", $), b.removeEventListener("mousedown", re), b.removeEventListener("touchstart", ce), b.removeEventListener("touchmove", ae), b.removeEventListener("touchend", ie)), D.removeEventListener("pointermove", ee), D.removeEventListener("pointerup", ne, !0), D.removeEventListener("contextmenu", le), D.removeEventListener("pointercancel", te), D.removeEventListener("mousemove", oe), D.removeEventListener("mouseup", se), a.removeEventListener("touchmove", C), a.clearTimeout(ye.current);
|
|
756
776
|
};
|
|
757
777
|
};
|
|
758
778
|
r.useEffect(() => {
|
|
759
779
|
const a = N();
|
|
760
|
-
if (
|
|
780
|
+
if (y) {
|
|
761
781
|
const b = Ie() || Xe(document.elementFromPoint(Z.current.x, Z.current.y));
|
|
762
782
|
a.clearInterval(K.current), K.current = a.setInterval(() => {
|
|
763
|
-
|
|
783
|
+
yt(b, { x: p.current.x, y: p.current.y });
|
|
764
784
|
}, 50);
|
|
765
785
|
}
|
|
766
786
|
return () => {
|
|
767
787
|
a.clearInterval(K.current);
|
|
768
788
|
};
|
|
769
|
-
}, [L, Ie, N,
|
|
789
|
+
}, [L, Ie, N, y]), r.useEffect(ze, [ze]), r.useEffect(Et, [
|
|
770
790
|
u,
|
|
771
791
|
N,
|
|
772
792
|
L,
|
|
@@ -789,7 +809,7 @@ function jt(e, t, n = {}) {
|
|
|
789
809
|
_.current = !0;
|
|
790
810
|
}), []), r.useLayoutEffect(Fe, [Fe]);
|
|
791
811
|
}
|
|
792
|
-
function
|
|
812
|
+
function Xt(e, t = {
|
|
793
813
|
onDragEnter: C,
|
|
794
814
|
onDragOver: C,
|
|
795
815
|
onDragLeave: C,
|
|
@@ -809,7 +829,7 @@ function Qt(e, t = {
|
|
|
809
829
|
onDragEnter: m,
|
|
810
830
|
onDragOver: u,
|
|
811
831
|
onDragLeave: x,
|
|
812
|
-
onDrop:
|
|
832
|
+
onDrop: y,
|
|
813
833
|
data: e.current
|
|
814
834
|
}));
|
|
815
835
|
const m = r.useCallback(
|
|
@@ -827,7 +847,7 @@ function Qt(e, t = {
|
|
|
827
847
|
c(null, { target: e.current, event: E }), s(E);
|
|
828
848
|
},
|
|
829
849
|
[c, e, s]
|
|
830
|
-
),
|
|
850
|
+
), y = r.useCallback(
|
|
831
851
|
(E) => {
|
|
832
852
|
c(null, { target: e.current, event: E }), l(E);
|
|
833
853
|
},
|
|
@@ -840,7 +860,7 @@ function Qt(e, t = {
|
|
|
840
860
|
);
|
|
841
861
|
r.useLayoutEffect(w, [w]);
|
|
842
862
|
}
|
|
843
|
-
const
|
|
863
|
+
const Ze = (e, t, n) => {
|
|
844
864
|
const [o, s] = r.useState(t || e), l = r.useCallback(
|
|
845
865
|
(c, i) => {
|
|
846
866
|
s(c), n && n.call(void 0, { ...i, value: c });
|
|
@@ -864,26 +884,26 @@ const Ue = (e, t, n) => {
|
|
|
864
884
|
element: u.current
|
|
865
885
|
})), r.useImperativeHandle(t, () => m.current);
|
|
866
886
|
const x = r.useMemo(
|
|
867
|
-
() => l ||
|
|
887
|
+
() => l || Ve.size,
|
|
868
888
|
[l]
|
|
869
|
-
),
|
|
870
|
-
() => c ||
|
|
889
|
+
), y = r.useMemo(
|
|
890
|
+
() => c || Ve.flip,
|
|
871
891
|
[c]
|
|
872
892
|
), w = r.useMemo(
|
|
873
|
-
() =>
|
|
893
|
+
() => We(
|
|
874
894
|
"k-icon",
|
|
875
895
|
"k-font-icon",
|
|
876
|
-
o &&
|
|
896
|
+
o && Qt(o),
|
|
877
897
|
{
|
|
878
898
|
[`k-color-${s}`]: s,
|
|
879
|
-
"k-flip-h":
|
|
880
|
-
"k-flip-v":
|
|
899
|
+
"k-flip-h": y === "horizontal" || y === "both",
|
|
900
|
+
"k-flip-v": y === "vertical" || y === "both"
|
|
881
901
|
},
|
|
882
|
-
|
|
902
|
+
nt[x],
|
|
883
903
|
n
|
|
884
904
|
),
|
|
885
|
-
[o, s, x,
|
|
886
|
-
), E =
|
|
905
|
+
[o, s, x, y, n]
|
|
906
|
+
), E = Bt(e, m);
|
|
887
907
|
return /* @__PURE__ */ r.createElement(
|
|
888
908
|
"span",
|
|
889
909
|
{
|
|
@@ -918,7 +938,7 @@ ve.propTypes = {
|
|
|
918
938
|
size: g.oneOf(["default", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"]),
|
|
919
939
|
flip: g.oneOf(["default", "horizontal", "vertical", "both"])
|
|
920
940
|
};
|
|
921
|
-
const
|
|
941
|
+
const Ve = {
|
|
922
942
|
size: "default",
|
|
923
943
|
flip: "default"
|
|
924
944
|
};
|
|
@@ -937,7 +957,7 @@ const Ce = r.forwardRef((e, t) => {
|
|
|
937
957
|
svgStyle: m,
|
|
938
958
|
themeColor: u,
|
|
939
959
|
viewBox: x,
|
|
940
|
-
name:
|
|
960
|
+
name: y,
|
|
941
961
|
onClick: w,
|
|
942
962
|
...E
|
|
943
963
|
} = e, R = r.useRef(null);
|
|
@@ -960,7 +980,7 @@ const Ce = r.forwardRef((e, t) => {
|
|
|
960
980
|
() => x || q.viewBox,
|
|
961
981
|
[x]
|
|
962
982
|
), O = r.useMemo(
|
|
963
|
-
() =>
|
|
983
|
+
() => We(
|
|
964
984
|
"k-icon",
|
|
965
985
|
"k-svg-icon",
|
|
966
986
|
"k-svg-i-" + M,
|
|
@@ -969,11 +989,11 @@ const Ce = r.forwardRef((e, t) => {
|
|
|
969
989
|
"k-flip-h": I === "horizontal" || I === "both",
|
|
970
990
|
"k-flip-v": I === "vertical" || I === "both"
|
|
971
991
|
},
|
|
972
|
-
|
|
992
|
+
nt[T],
|
|
973
993
|
o
|
|
974
994
|
),
|
|
975
995
|
[M, u, T, I, o]
|
|
976
|
-
),
|
|
996
|
+
), p = r.useMemo(
|
|
977
997
|
() => e.width && e.height ? { width: e.width, height: e.height, ...d } : e.width ? { width: e.width, height: e.width, ...d } : e.height ? { width: e.height, height: e.height, ...d } : { ...d },
|
|
978
998
|
[e.width, e.height, d]
|
|
979
999
|
);
|
|
@@ -981,7 +1001,7 @@ const Ce = r.forwardRef((e, t) => {
|
|
|
981
1001
|
"span",
|
|
982
1002
|
{
|
|
983
1003
|
className: O,
|
|
984
|
-
style:
|
|
1004
|
+
style: p,
|
|
985
1005
|
ref: R,
|
|
986
1006
|
onClick: w
|
|
987
1007
|
},
|
|
@@ -1031,28 +1051,28 @@ const q = {
|
|
|
1031
1051
|
viewBox: "0 0 24 24"
|
|
1032
1052
|
};
|
|
1033
1053
|
Ce.displayName = "KendoSvgIcon";
|
|
1034
|
-
const
|
|
1035
|
-
|
|
1036
|
-
const
|
|
1054
|
+
const st = r.createContext({ type: "svg" });
|
|
1055
|
+
st.displayName = "KendoReactIconsContext";
|
|
1056
|
+
const Yt = r.forwardRef((e, t) => {
|
|
1037
1057
|
var h, f;
|
|
1038
|
-
const { type: n, icons: o } = r.useContext(
|
|
1058
|
+
const { type: n, icons: o } = r.useContext(st), { icon: s, ...l } = e;
|
|
1039
1059
|
let c = n === "svg" ? ((h = e.icon) == null ? void 0 : h.name) || e.name : e.name || ((f = e.icon) == null ? void 0 : f.name);
|
|
1040
1060
|
c = c && o && o[c] && typeof o[c] == "string" ? o[c] : c;
|
|
1041
1061
|
const i = c && o && o[c] && typeof o[c] != "string" ? o[c] : s;
|
|
1042
1062
|
return n === "svg" && i ? /* @__PURE__ */ r.createElement(Ce, { ...e, icon: i, ref: t }) : /* @__PURE__ */ r.createElement(ve, { ...l, name: c, ref: t });
|
|
1043
1063
|
});
|
|
1044
|
-
|
|
1045
|
-
const
|
|
1064
|
+
Yt.displayName = "KendoIconWrap";
|
|
1065
|
+
const Gt = {
|
|
1046
1066
|
xsmall: "k-fs-xs",
|
|
1047
1067
|
small: "k-fs-sm",
|
|
1048
1068
|
medium: "k-fs-md",
|
|
1049
1069
|
large: "k-fs-lg",
|
|
1050
1070
|
xlarge: "k-fs-xl"
|
|
1051
|
-
},
|
|
1071
|
+
}, Jt = {
|
|
1052
1072
|
light: "k-font-weight-light",
|
|
1053
1073
|
normal: "k-font-weight-normal",
|
|
1054
1074
|
bold: "k-font-weight-bold"
|
|
1055
|
-
},
|
|
1075
|
+
}, Ut = {
|
|
1056
1076
|
xsmall: "k-m-xs",
|
|
1057
1077
|
small: "k-m-sm",
|
|
1058
1078
|
medium: "k-m-md",
|
|
@@ -1060,7 +1080,7 @@ const Ft = {
|
|
|
1060
1080
|
xlarge: "k-m-xl",
|
|
1061
1081
|
thin: "k-m-thin",
|
|
1062
1082
|
hair: "k-m-hair"
|
|
1063
|
-
},
|
|
1083
|
+
}, Zt = {
|
|
1064
1084
|
xsmall: "xs",
|
|
1065
1085
|
small: "sm",
|
|
1066
1086
|
medium: "md",
|
|
@@ -1068,21 +1088,21 @@ const Ft = {
|
|
|
1068
1088
|
xlarge: "xl",
|
|
1069
1089
|
thin: "thin",
|
|
1070
1090
|
hair: "hair"
|
|
1071
|
-
},
|
|
1091
|
+
}, Vt = {
|
|
1072
1092
|
top: "k-mt-",
|
|
1073
1093
|
right: "k-mr-",
|
|
1074
1094
|
bottom: "k-mb-",
|
|
1075
1095
|
left: "k-ml-"
|
|
1076
|
-
},
|
|
1096
|
+
}, qt = {
|
|
1077
1097
|
left: "k-text-left",
|
|
1078
1098
|
right: "k-text-right",
|
|
1079
1099
|
center: "k-text-center",
|
|
1080
1100
|
justify: "k-text-justify"
|
|
1081
|
-
},
|
|
1101
|
+
}, Kt = {
|
|
1082
1102
|
lowercase: "k-text-lowercase",
|
|
1083
1103
|
uppercase: "k-text-uppercase",
|
|
1084
1104
|
capitalize: "k-text-capitalize"
|
|
1085
|
-
},
|
|
1105
|
+
}, Wt = {
|
|
1086
1106
|
inherit: "k-color-inherit",
|
|
1087
1107
|
primary: "k-color-primary",
|
|
1088
1108
|
secondary: "k-color-secondary",
|
|
@@ -1107,40 +1127,40 @@ const Ft = {
|
|
|
1107
1127
|
themeColor: m,
|
|
1108
1128
|
margin: u,
|
|
1109
1129
|
...x
|
|
1110
|
-
} = n,
|
|
1130
|
+
} = n, y = r.useRef(null), w = r.useRef(null);
|
|
1111
1131
|
r.useImperativeHandle(
|
|
1112
|
-
|
|
1132
|
+
y,
|
|
1113
1133
|
() => ({
|
|
1114
1134
|
element: w.current,
|
|
1115
1135
|
props: n
|
|
1116
1136
|
})
|
|
1117
|
-
), r.useImperativeHandle(o, () =>
|
|
1137
|
+
), r.useImperativeHandle(o, () => y.current);
|
|
1118
1138
|
const E = () => `k-${e === "p" ? "paragraph" : e}`, R = e, M = (P, O) => {
|
|
1119
|
-
const
|
|
1120
|
-
return `${
|
|
1139
|
+
const p = typeof O == "string" ? Zt[O] : O;
|
|
1140
|
+
return `${Vt[P]}${p}`;
|
|
1121
1141
|
}, T = () => {
|
|
1122
1142
|
if (u !== void 0) {
|
|
1123
1143
|
if (typeof u == "string")
|
|
1124
|
-
return [
|
|
1144
|
+
return [Ut[u]];
|
|
1125
1145
|
if (typeof u == "number" && u >= 0 && u <= 24)
|
|
1126
1146
|
return [`k-m-${u}`];
|
|
1127
1147
|
if (typeof u == "object") {
|
|
1128
1148
|
const P = [];
|
|
1129
|
-
return Object.keys(u).forEach((
|
|
1130
|
-
u[
|
|
1149
|
+
return Object.keys(u).forEach((p) => {
|
|
1150
|
+
u[p] !== null && u[p] !== void 0 && P.push(M(p, u[p]));
|
|
1131
1151
|
}), P.join(" ");
|
|
1132
1152
|
}
|
|
1133
1153
|
}
|
|
1134
1154
|
}, I = () => [
|
|
1135
1155
|
E(),
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1156
|
+
Gt[i],
|
|
1157
|
+
Jt[h],
|
|
1158
|
+
qt[f],
|
|
1159
|
+
Kt[d],
|
|
1160
|
+
Wt[m],
|
|
1141
1161
|
T(),
|
|
1142
1162
|
c
|
|
1143
|
-
].filter((
|
|
1163
|
+
].filter((p) => p !== void 0).join(" ");
|
|
1144
1164
|
return /* @__PURE__ */ r.createElement(
|
|
1145
1165
|
R,
|
|
1146
1166
|
{
|
|
@@ -1179,24 +1199,24 @@ const Ft = {
|
|
|
1179
1199
|
"inverse"
|
|
1180
1200
|
])
|
|
1181
1201
|
}, t.displayName = `KendoReactTypography${e.toUpperCase()}`, t;
|
|
1182
|
-
},
|
|
1183
|
-
h1:
|
|
1184
|
-
h2:
|
|
1185
|
-
h3:
|
|
1186
|
-
h4:
|
|
1187
|
-
h5:
|
|
1188
|
-
h6:
|
|
1189
|
-
p:
|
|
1190
|
-
code:
|
|
1191
|
-
pre:
|
|
1192
|
-
},
|
|
1193
|
-
const [t, n] =
|
|
1202
|
+
}, _t = S("h1"), $t = S("h2"), en = S("h3"), tn = S("h4"), nn = S("h5"), rn = S("h6"), on = S("p"), sn = S("code"), ln = S("pre"), $n = {
|
|
1203
|
+
h1: _t,
|
|
1204
|
+
h2: $t,
|
|
1205
|
+
h3: en,
|
|
1206
|
+
h4: tn,
|
|
1207
|
+
h5: nn,
|
|
1208
|
+
h6: rn,
|
|
1209
|
+
p: on,
|
|
1210
|
+
code: sn,
|
|
1211
|
+
pre: ln
|
|
1212
|
+
}, cn = (e) => {
|
|
1213
|
+
const [t, n] = Ze(
|
|
1194
1214
|
null,
|
|
1195
1215
|
void 0
|
|
1196
|
-
), [o, s] =
|
|
1216
|
+
), [o, s] = Ze(
|
|
1197
1217
|
null,
|
|
1198
1218
|
void 0
|
|
1199
|
-
), [l, c] =
|
|
1219
|
+
), [l, c] = Ue([]), [i, h] = Ue([]), f = (x) => {
|
|
1200
1220
|
c({
|
|
1201
1221
|
type: X.add,
|
|
1202
1222
|
item: x
|
|
@@ -1217,10 +1237,10 @@ const Ft = {
|
|
|
1217
1237
|
item: x
|
|
1218
1238
|
});
|
|
1219
1239
|
};
|
|
1220
|
-
return /* @__PURE__ */ r.createElement(
|
|
1240
|
+
return /* @__PURE__ */ r.createElement(rt.Provider, { value: [t, n] }, /* @__PURE__ */ r.createElement(ge.Provider, { value: [o, s] }, /* @__PURE__ */ r.createElement(ot.Provider, { value: [l, f, d] }, /* @__PURE__ */ r.createElement(me.Provider, { value: [i, m, u] }, e.children))));
|
|
1221
1241
|
};
|
|
1222
|
-
|
|
1223
|
-
const
|
|
1242
|
+
cn.displayName = "KendoReactDragAndDrop";
|
|
1243
|
+
const an = r.forwardRef((e, t) => {
|
|
1224
1244
|
const n = r.useRef(null), o = r.useRef(null), s = r.useCallback(
|
|
1225
1245
|
() => n.current && n.current.element ? n.current.element : n.current,
|
|
1226
1246
|
[n]
|
|
@@ -1272,7 +1292,7 @@ const sn = r.forwardRef((e, t) => {
|
|
|
1272
1292
|
},
|
|
1273
1293
|
[s, e.onDragEnd]
|
|
1274
1294
|
);
|
|
1275
|
-
return
|
|
1295
|
+
return Ft(n, {
|
|
1276
1296
|
onPress: l,
|
|
1277
1297
|
onRelease: c,
|
|
1278
1298
|
onDragStart: i,
|
|
@@ -1285,8 +1305,8 @@ const sn = r.forwardRef((e, t) => {
|
|
|
1285
1305
|
scrollContainer: e.scrollContainer
|
|
1286
1306
|
}), e.children ? r.cloneElement(r.Children.only(e.children), { ref: n }) : null;
|
|
1287
1307
|
});
|
|
1288
|
-
|
|
1289
|
-
const
|
|
1308
|
+
an.displayName = "KendoReactDraggable";
|
|
1309
|
+
const un = r.forwardRef((e, t) => {
|
|
1290
1310
|
const n = r.useRef(null), o = r.useRef(null), s = r.useCallback(
|
|
1291
1311
|
() => n.current && n.current.element ? n.current.element : n.current,
|
|
1292
1312
|
[n]
|
|
@@ -1329,15 +1349,15 @@ const ln = r.forwardRef((e, t) => {
|
|
|
1329
1349
|
},
|
|
1330
1350
|
[e.onDrop, s]
|
|
1331
1351
|
);
|
|
1332
|
-
return
|
|
1352
|
+
return Xt(n, {
|
|
1333
1353
|
onDragEnter: l,
|
|
1334
1354
|
onDragOver: c,
|
|
1335
1355
|
onDragLeave: i,
|
|
1336
1356
|
onDrop: h
|
|
1337
1357
|
}), e.children ? r.cloneElement(r.Children.only(e.children), { ref: n }) : null;
|
|
1338
1358
|
});
|
|
1339
|
-
|
|
1340
|
-
const
|
|
1359
|
+
un.displayName = "KendoReactDroppable";
|
|
1360
|
+
const er = {
|
|
1341
1361
|
sizeMap: {
|
|
1342
1362
|
small: "sm",
|
|
1343
1363
|
medium: "md",
|
|
@@ -1353,18 +1373,18 @@ const Wn = {
|
|
|
1353
1373
|
horizontal: "hstack"
|
|
1354
1374
|
}
|
|
1355
1375
|
};
|
|
1356
|
-
function
|
|
1376
|
+
function dn(e, t) {
|
|
1357
1377
|
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
1358
1378
|
}
|
|
1359
|
-
function
|
|
1379
|
+
function fn(e, t) {
|
|
1360
1380
|
if (e.length !== t.length)
|
|
1361
1381
|
return !1;
|
|
1362
1382
|
for (let n = 0; n < e.length; n++)
|
|
1363
|
-
if (!
|
|
1383
|
+
if (!dn(e[n], t[n]))
|
|
1364
1384
|
return !1;
|
|
1365
1385
|
return !0;
|
|
1366
1386
|
}
|
|
1367
|
-
function
|
|
1387
|
+
function tr(e, t = fn) {
|
|
1368
1388
|
let n = null;
|
|
1369
1389
|
function o(...s) {
|
|
1370
1390
|
if (n && n.lastThis === this && t(s, n.lastArgs))
|
|
@@ -1380,7 +1400,7 @@ function _n(e, t = an) {
|
|
|
1380
1400
|
n = null;
|
|
1381
1401
|
}, o;
|
|
1382
1402
|
}
|
|
1383
|
-
const
|
|
1403
|
+
const nr = [
|
|
1384
1404
|
"input:not([disabled]):not([type=hidden])",
|
|
1385
1405
|
"select:not([disabled])",
|
|
1386
1406
|
"textarea:not([disabled])",
|
|
@@ -1395,7 +1415,7 @@ const $n = [
|
|
|
1395
1415
|
"video[controls]",
|
|
1396
1416
|
"[contenteditable]"
|
|
1397
1417
|
];
|
|
1398
|
-
class
|
|
1418
|
+
class rr {
|
|
1399
1419
|
constructor(t) {
|
|
1400
1420
|
this.rovingTabIndex = !0, this.update = () => {
|
|
1401
1421
|
}, this.focusNextIndex = (n, o) => {
|
|
@@ -1467,7 +1487,7 @@ class er {
|
|
|
1467
1487
|
const fe = (e) => {
|
|
1468
1488
|
const t = e.shadowRoot, n = e.contentDocument;
|
|
1469
1489
|
return t && t.activeElement ? fe(t.activeElement) : n && n.activeElement ? fe(n.activeElement) : e;
|
|
1470
|
-
},
|
|
1490
|
+
}, or = (e) => {
|
|
1471
1491
|
if (!(!e || !e.activeElement))
|
|
1472
1492
|
return fe(e.activeElement);
|
|
1473
1493
|
};
|
|
@@ -1478,10 +1498,10 @@ function k(e, t) {
|
|
|
1478
1498
|
o = o ? o[s] : void 0;
|
|
1479
1499
|
}), o;
|
|
1480
1500
|
}
|
|
1481
|
-
function
|
|
1501
|
+
function sr(e) {
|
|
1482
1502
|
return e.length !== void 0;
|
|
1483
1503
|
}
|
|
1484
|
-
class
|
|
1504
|
+
class lr {
|
|
1485
1505
|
constructor(t) {
|
|
1486
1506
|
this.expandField = t.expandField, this.selectField = t.selectField, this.hasChildrenField = t.hasChildrenField, this.childrenField = t.childrenField, this.textField = t.textField, this.disableField = t.disableField, this.checkField = t.checkField, this.checkIndeterminateField = t.checkIndeterminateField, this.focusIdField = t.focusIdField;
|
|
1487
1507
|
}
|
|
@@ -1517,33 +1537,33 @@ class rr {
|
|
|
1517
1537
|
return this.childrenField;
|
|
1518
1538
|
}
|
|
1519
1539
|
}
|
|
1520
|
-
const
|
|
1521
|
-
class
|
|
1540
|
+
const hn = 5e4;
|
|
1541
|
+
class gn {
|
|
1522
1542
|
constructor() {
|
|
1523
1543
|
this.objects = [];
|
|
1524
1544
|
}
|
|
1525
1545
|
init(t) {
|
|
1526
1546
|
let n;
|
|
1527
1547
|
for (let o = 0; o < t.length; o++)
|
|
1528
|
-
o %
|
|
1548
|
+
o % hn === 0 && (n = {}, this.objects.push(n)), n[t[o]] = !0;
|
|
1529
1549
|
}
|
|
1530
1550
|
hasId(t) {
|
|
1531
1551
|
return this.objects.some((n) => n[t]);
|
|
1532
1552
|
}
|
|
1533
1553
|
}
|
|
1534
|
-
const G = "",
|
|
1535
|
-
function
|
|
1554
|
+
const G = "", lt = "0", A = "_";
|
|
1555
|
+
function ct(e, t, n) {
|
|
1536
1556
|
if (U(e))
|
|
1537
1557
|
return t[Number(e)];
|
|
1538
1558
|
{
|
|
1539
|
-
const o = t[Number(
|
|
1540
|
-
return s.length ?
|
|
1559
|
+
const o = t[Number(H(e))], s = o && o[n] || [];
|
|
1560
|
+
return s.length ? ct(B(e), s, n) : void 0;
|
|
1541
1561
|
}
|
|
1542
1562
|
}
|
|
1543
|
-
function
|
|
1563
|
+
function H(e) {
|
|
1544
1564
|
return Ee(e) ? e : e.split(A)[0];
|
|
1545
1565
|
}
|
|
1546
|
-
function
|
|
1566
|
+
function B(e) {
|
|
1547
1567
|
if (Ee(e))
|
|
1548
1568
|
return e;
|
|
1549
1569
|
{
|
|
@@ -1551,13 +1571,13 @@ function H(e) {
|
|
|
1551
1571
|
return e.substring(t + 1);
|
|
1552
1572
|
}
|
|
1553
1573
|
}
|
|
1554
|
-
function
|
|
1574
|
+
function mn(e) {
|
|
1555
1575
|
return J("0", e);
|
|
1556
1576
|
}
|
|
1557
1577
|
function J(e, t) {
|
|
1558
1578
|
return e = e.toString(), t ? t + A + e : e;
|
|
1559
1579
|
}
|
|
1560
|
-
function
|
|
1580
|
+
function at(e) {
|
|
1561
1581
|
const t = e.lastIndexOf(A);
|
|
1562
1582
|
return t < 0 ? G : e.substring(0, t);
|
|
1563
1583
|
}
|
|
@@ -1574,66 +1594,66 @@ function xe(e) {
|
|
|
1574
1594
|
const t = e.lastIndexOf(A);
|
|
1575
1595
|
return t < 0 ? e : e.substring(t + 1);
|
|
1576
1596
|
}
|
|
1577
|
-
function
|
|
1578
|
-
return xe(e) ===
|
|
1597
|
+
function vn(e) {
|
|
1598
|
+
return xe(e) === lt;
|
|
1579
1599
|
}
|
|
1580
|
-
function
|
|
1600
|
+
function Cn(e, t) {
|
|
1581
1601
|
const n = t;
|
|
1582
1602
|
e = "r" + A + e, t = "r" + A + t;
|
|
1583
|
-
const o =
|
|
1603
|
+
const o = at(e) + A;
|
|
1584
1604
|
if (t.startsWith(o)) {
|
|
1585
1605
|
const s = t.substring(o.length);
|
|
1586
1606
|
if (s) {
|
|
1587
|
-
const l =
|
|
1607
|
+
const l = H(s);
|
|
1588
1608
|
if (Number(xe(e)) < Number(l)) {
|
|
1589
1609
|
const c = o + (Number(l) - 1).toString() + s.substring(l.length);
|
|
1590
|
-
return
|
|
1610
|
+
return B(c);
|
|
1591
1611
|
}
|
|
1592
1612
|
}
|
|
1593
1613
|
}
|
|
1594
1614
|
return n;
|
|
1595
1615
|
}
|
|
1596
|
-
const
|
|
1616
|
+
const cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1597
1617
|
__proto__: null,
|
|
1598
1618
|
EMPTY_ID: G,
|
|
1599
1619
|
SEPARATOR: A,
|
|
1600
|
-
ZERO_LEVEL_ZERO_NODE_ID:
|
|
1620
|
+
ZERO_LEVEL_ZERO_NODE_ID: lt,
|
|
1601
1621
|
createId: J,
|
|
1602
1622
|
getAllShortIds: be,
|
|
1603
|
-
getDecrementedItemIdAfterRemoval:
|
|
1604
|
-
getDirectParentId:
|
|
1605
|
-
getFirstChildId:
|
|
1606
|
-
getIdWithoutRootParentId:
|
|
1607
|
-
getItemById:
|
|
1608
|
-
getRootParentId:
|
|
1623
|
+
getDecrementedItemIdAfterRemoval: Cn,
|
|
1624
|
+
getDirectParentId: at,
|
|
1625
|
+
getFirstChildId: mn,
|
|
1626
|
+
getIdWithoutRootParentId: B,
|
|
1627
|
+
getItemById: ct,
|
|
1628
|
+
getRootParentId: H,
|
|
1609
1629
|
getShortId: xe,
|
|
1610
1630
|
isIdEmptyOrZeroLevel: Ee,
|
|
1611
1631
|
isIdZeroLevel: U,
|
|
1612
|
-
isItemFirstFromSiblings:
|
|
1632
|
+
isItemFirstFromSiblings: vn
|
|
1613
1633
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1614
|
-
function
|
|
1634
|
+
function it(e, t) {
|
|
1615
1635
|
const n = k(t, e);
|
|
1616
1636
|
return !!(n && n.length);
|
|
1617
1637
|
}
|
|
1618
|
-
function
|
|
1619
|
-
return t.expanded(e) &&
|
|
1638
|
+
function ar(e, t) {
|
|
1639
|
+
return t.expanded(e) && it(e, t.getChildrenField());
|
|
1620
1640
|
}
|
|
1621
|
-
function
|
|
1622
|
-
const s =
|
|
1641
|
+
function ir(e, t, n, o) {
|
|
1642
|
+
const s = En([e], t, n, o);
|
|
1623
1643
|
return s.length ? s[0] : void 0;
|
|
1624
1644
|
}
|
|
1625
|
-
function
|
|
1626
|
-
const s = [], l = new
|
|
1627
|
-
return l.init(e),
|
|
1645
|
+
function En(e, t, n, o) {
|
|
1646
|
+
const s = [], l = new gn();
|
|
1647
|
+
return l.init(e), ut(l, t, n, G, s, o), s;
|
|
1628
1648
|
}
|
|
1629
|
-
function
|
|
1630
|
-
const l = Number(
|
|
1649
|
+
function bn(e, t, n, o, s) {
|
|
1650
|
+
const l = Number(H(t));
|
|
1631
1651
|
if (l >= e.length)
|
|
1632
1652
|
return e;
|
|
1633
1653
|
let c = e, i = e[l];
|
|
1634
|
-
return i[o] || (c = e.slice(), i = c[l] = Object.assign({}, i, { [o]: !0 })), U(t) ? n(i) : i[s] && (i[s] =
|
|
1654
|
+
return i[o] || (c = e.slice(), i = c[l] = Object.assign({}, i, { [o]: !0 })), U(t) ? n(i) : i[s] && (i[s] = bn(i[s], B(t), n, o, s)), c;
|
|
1635
1655
|
}
|
|
1636
|
-
function
|
|
1656
|
+
function ur(e, t, n) {
|
|
1637
1657
|
const o = be(e);
|
|
1638
1658
|
let s = t;
|
|
1639
1659
|
for (let l = 0; l < o.length; l++) {
|
|
@@ -1644,7 +1664,7 @@ function cr(e, t, n) {
|
|
|
1644
1664
|
}
|
|
1645
1665
|
return !0;
|
|
1646
1666
|
}
|
|
1647
|
-
function
|
|
1667
|
+
function dr(e, t, n, o) {
|
|
1648
1668
|
return o ? l(e) : s(e, t);
|
|
1649
1669
|
function s(c, i) {
|
|
1650
1670
|
let h = [];
|
|
@@ -1663,10 +1683,10 @@ function ar(e, t, n, o) {
|
|
|
1663
1683
|
return i;
|
|
1664
1684
|
}
|
|
1665
1685
|
}
|
|
1666
|
-
function
|
|
1686
|
+
function fr(e, t, n, o, s) {
|
|
1667
1687
|
return (e[o] || []).every((c, i) => s.indexOf(n ? k(n, c) : J(i, t)) > -1);
|
|
1668
1688
|
}
|
|
1669
|
-
function
|
|
1689
|
+
function hr(e, t, n) {
|
|
1670
1690
|
const o = [], s = be(e);
|
|
1671
1691
|
let l = n;
|
|
1672
1692
|
for (let c = 0; c < s.length - 1 && l; c++) {
|
|
@@ -1675,17 +1695,17 @@ function ur(e, t, n) {
|
|
|
1675
1695
|
}
|
|
1676
1696
|
return o;
|
|
1677
1697
|
}
|
|
1678
|
-
function
|
|
1698
|
+
function xn(e, t, n) {
|
|
1679
1699
|
const o = n.slice();
|
|
1680
1700
|
if (U(e))
|
|
1681
1701
|
o.splice(Number(e), 1);
|
|
1682
1702
|
else {
|
|
1683
|
-
const s = Number(
|
|
1684
|
-
l[t] =
|
|
1703
|
+
const s = Number(H(e)), l = o[s] = { ...o[s] };
|
|
1704
|
+
l[t] = xn(B(e), t, l[t]);
|
|
1685
1705
|
}
|
|
1686
1706
|
return o;
|
|
1687
1707
|
}
|
|
1688
|
-
function
|
|
1708
|
+
function yn(e, t, n, o, s) {
|
|
1689
1709
|
const l = s.slice();
|
|
1690
1710
|
if (U(o))
|
|
1691
1711
|
if (t === "child") {
|
|
@@ -1694,94 +1714,97 @@ function En(e, t, n, o, s) {
|
|
|
1694
1714
|
} else
|
|
1695
1715
|
l.splice(Number(o) + (t === "after" ? 1 : 0), 0, e);
|
|
1696
1716
|
else {
|
|
1697
|
-
const c = Number(
|
|
1698
|
-
i[n] =
|
|
1717
|
+
const c = Number(H(o)), i = l[c] = { ...l[c] };
|
|
1718
|
+
i[n] = yn(e, t, n, B(o), i[n]);
|
|
1699
1719
|
}
|
|
1700
1720
|
return l;
|
|
1701
1721
|
}
|
|
1702
|
-
function
|
|
1722
|
+
function ut(e, t, n, o, s, l) {
|
|
1703
1723
|
for (let c = 0; c < n.length; c++) {
|
|
1704
1724
|
const i = n[c], h = J(c, o);
|
|
1705
|
-
e.hasId(k(t, i)) && s.push(h),
|
|
1725
|
+
e.hasId(k(t, i)) && s.push(h), it(i, l) && ut(e, t, k(l, i), h, s, l);
|
|
1706
1726
|
}
|
|
1707
1727
|
}
|
|
1708
1728
|
export {
|
|
1709
|
-
|
|
1710
|
-
|
|
1729
|
+
Yn as AsyncFocusBlur,
|
|
1730
|
+
Ke as BrowserSupportService,
|
|
1711
1731
|
X as COLLECTION_ACTION,
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1732
|
+
cn as DragAndDrop,
|
|
1733
|
+
an as Draggable,
|
|
1734
|
+
un as Droppable,
|
|
1735
|
+
nr as FOCUSABLE_ELEMENTS,
|
|
1736
|
+
Pn as FormComponent,
|
|
1717
1737
|
ve as Icon,
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1738
|
+
Yt as IconWrap,
|
|
1739
|
+
st as IconsContext,
|
|
1740
|
+
Mn as Keys,
|
|
1741
|
+
rr as Navigation,
|
|
1742
|
+
gn as SortedPublicItemIds,
|
|
1723
1743
|
Ce as SvgIcon,
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1744
|
+
lr as TreeFieldsService,
|
|
1745
|
+
$n as Typography,
|
|
1746
|
+
Fn as WatermarkOverlay,
|
|
1747
|
+
qe as ZIndexContext,
|
|
1748
|
+
yn as addItem,
|
|
1749
|
+
fr as areAllDirectChildrenChecked,
|
|
1730
1750
|
he as canUseDOM,
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1751
|
+
Dn as canUseRef,
|
|
1752
|
+
We as classNames,
|
|
1753
|
+
An as clone,
|
|
1754
|
+
wt as cloneArray,
|
|
1755
|
+
At as cloneDate,
|
|
1756
|
+
_e as cloneObject,
|
|
1757
|
+
$e as cloneValue,
|
|
1758
|
+
Gn as createPropsContext,
|
|
1759
|
+
Xn as dispatchEvent,
|
|
1760
|
+
Hn as extendDataItem,
|
|
1761
|
+
wn as focusFirstFocusableChild,
|
|
1762
|
+
or as getActiveElement,
|
|
1763
|
+
dr as getAllDirectIndirectChildrenIds,
|
|
1764
|
+
hr as getAllParents,
|
|
1745
1765
|
fe as getInnerActiveElement,
|
|
1746
|
-
|
|
1766
|
+
Bn as getItemPath,
|
|
1747
1767
|
k as getNestedValue,
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1768
|
+
Sn as getScrollbarWidth,
|
|
1769
|
+
In as getTabIndex,
|
|
1770
|
+
On as getter,
|
|
1771
|
+
Ye as guid,
|
|
1772
|
+
it as hasChildren,
|
|
1773
|
+
zn as hasRelativeStackingContext,
|
|
1774
|
+
sr as isArray,
|
|
1775
|
+
ur as isEnabledAndAllParentsEnabled,
|
|
1776
|
+
ar as isItemExpandedAndWithChildren,
|
|
1777
|
+
er as kendoThemeMaps,
|
|
1778
|
+
Tn as mapTree,
|
|
1779
|
+
Nn as mapTreeItem,
|
|
1780
|
+
tr as memoizeOne,
|
|
1761
1781
|
C as noop,
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1782
|
+
xn as removeItem,
|
|
1783
|
+
ir as resolveItemId,
|
|
1784
|
+
En as resolveItemsIds,
|
|
1785
|
+
Rn as setScrollbarWidth,
|
|
1786
|
+
Ln as setter,
|
|
1787
|
+
Qn as shouldShowValidationUI,
|
|
1788
|
+
_n as svgIconPropType,
|
|
1789
|
+
Qt as toIconClass,
|
|
1790
|
+
Wn as toIconName,
|
|
1791
|
+
cr as treeIdUtils,
|
|
1792
|
+
bn as updateItem,
|
|
1793
|
+
Lt as useAsyncFocusBlur,
|
|
1794
|
+
Ue as useCollection,
|
|
1795
|
+
qn as useCustomComponent,
|
|
1796
|
+
Zn as useDir,
|
|
1797
|
+
jt as useDocument,
|
|
1798
|
+
Ft as useDraggable,
|
|
1799
|
+
Xt as useDroppable,
|
|
1800
|
+
Ht as useId,
|
|
1801
|
+
Nt as useIsomorphicLayoutEffect,
|
|
1802
|
+
Bt as useMouse,
|
|
1803
|
+
Tt as usePropsContext,
|
|
1804
|
+
Vn as useRtl,
|
|
1805
|
+
Kn as useWindow,
|
|
1806
|
+
kn as useZIndexContext,
|
|
1807
|
+
jn as validatePackage,
|
|
1808
|
+
Un as withIdHOC,
|
|
1809
|
+
Jn as withPropsContext
|
|
1787
1810
|
};
|