@progress/kendo-react-common 7.0.2-develop.1 → 7.0.2-develop.3
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 +1 -4
- package/icons/utils.d.ts +1 -1
- package/index.d.mts +5 -0
- package/index.js +1 -4
- package/index.mjs +238 -249
- package/package.json +10 -4
- package/validate-package.d.ts +2 -1
package/index.mjs
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
"use client";
|
|
6
6
|
import * as r from "react";
|
|
7
|
-
import
|
|
7
|
+
import { validatePackage as Ve } from "@progress/kendo-licensing";
|
|
8
8
|
import * as bt from "react-dom";
|
|
9
|
-
import
|
|
10
|
-
import { dispatchDragAndDrop as xt, getScrollableParent as
|
|
11
|
-
const qe = r.createContext(0),
|
|
9
|
+
import g from "prop-types";
|
|
10
|
+
import { dispatchDragAndDrop as xt, getScrollableParent as Fe, autoScroll as yt } from "@progress/kendo-draggable-common";
|
|
11
|
+
const qe = r.createContext(0), An = () => r.useContext(qe);
|
|
12
12
|
qe.displayName = "KendoReactZIndexContext";
|
|
13
13
|
const pt = () => typeof document < "u" ? document : {};
|
|
14
14
|
class Ke {
|
|
@@ -24,17 +24,17 @@ class Ke {
|
|
|
24
24
|
return this.scrollbar;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const fe = !!// from fbjs
|
|
28
28
|
(typeof window < "u" && window.document && window.document.createElement), kt = (e) => {
|
|
29
29
|
var t;
|
|
30
30
|
return !!(typeof e == "function" && ((t = e.prototype) != null && t.isReactComponent));
|
|
31
|
-
}, Dt = (e) => !!(e.$$typeof && typeof e.render == "function"),
|
|
31
|
+
}, Dt = (e) => !!(e.$$typeof && typeof e.render == "function"), wn = (e) => typeof Comment != "string" && (kt(e) || Dt(e)), We = (...e) => {
|
|
32
32
|
const t = {}, n = (s) => typeof s == "object" ? Object.keys(s).forEach((l) => {
|
|
33
33
|
t[l] = s[l];
|
|
34
34
|
}) : t[s] = !0, o = (s) => s.filter((l) => l !== !0 && !!l).map((l) => Array.isArray(l) ? o(l) : n(l));
|
|
35
35
|
return o(e), Object.keys(t).map((s) => t[s] && s || null).filter((s) => s !== null).join(" ");
|
|
36
36
|
}, At = (e) => e ? new Date(e.getTime()) : null;
|
|
37
|
-
function
|
|
37
|
+
function Pn(e) {
|
|
38
38
|
const t = {};
|
|
39
39
|
return _e(e, t), t;
|
|
40
40
|
}
|
|
@@ -61,7 +61,7 @@ function $e(e, t) {
|
|
|
61
61
|
function wt(e) {
|
|
62
62
|
return e.map((t) => $e(t, void 0));
|
|
63
63
|
}
|
|
64
|
-
const
|
|
64
|
+
const In = (e) => {
|
|
65
65
|
if (e) {
|
|
66
66
|
if ((e instanceof HTMLInputElement || e.tabIndex !== -1) && e.focus) {
|
|
67
67
|
e.focus();
|
|
@@ -71,9 +71,9 @@ const wn = (e) => {
|
|
|
71
71
|
t && t.focus && t.focus();
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
class
|
|
74
|
+
class On {
|
|
75
75
|
}
|
|
76
|
-
const Pt = -1, It = 0,
|
|
76
|
+
const Pt = -1, It = 0, Mn = (e, t, n) => {
|
|
77
77
|
const o = typeof e == "string" ? parseInt(e) : e;
|
|
78
78
|
if (!Number.isNaN(o))
|
|
79
79
|
return o !== void 0 ? o : t ? n ? void 0 : Pt : It;
|
|
@@ -87,7 +87,7 @@ function et(e) {
|
|
|
87
87
|
const z = {};
|
|
88
88
|
z.undefined = () => {
|
|
89
89
|
};
|
|
90
|
-
function
|
|
90
|
+
function Sn(e) {
|
|
91
91
|
if (z[e])
|
|
92
92
|
return z[e];
|
|
93
93
|
const t = et(e);
|
|
@@ -98,12 +98,12 @@ function On(e) {
|
|
|
98
98
|
return o;
|
|
99
99
|
}, z[e];
|
|
100
100
|
}
|
|
101
|
-
const
|
|
101
|
+
const Xe = () => {
|
|
102
102
|
let e = "", t, n;
|
|
103
103
|
for (t = 0; t < 32; t++)
|
|
104
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);
|
|
105
105
|
return e;
|
|
106
|
-
},
|
|
106
|
+
}, Rn = {
|
|
107
107
|
backspace: 8,
|
|
108
108
|
tab: 9,
|
|
109
109
|
enter: 13,
|
|
@@ -120,15 +120,15 @@ const Ye = () => {
|
|
|
120
120
|
down: 40,
|
|
121
121
|
delete: 46
|
|
122
122
|
}, C = function() {
|
|
123
|
-
},
|
|
124
|
-
if (!
|
|
123
|
+
}, Ln = () => !fe || !document.body ? !1 : new Ke().scrollbarWidth, Tn = () => {
|
|
124
|
+
if (!fe || !document.body)
|
|
125
125
|
return !1;
|
|
126
126
|
let e = new Ke().scrollbarWidth;
|
|
127
127
|
document.body.style.setProperty("--kendo-scrollbar-width", `${e}px`);
|
|
128
128
|
}, F = {};
|
|
129
129
|
F.undefined = (e) => e;
|
|
130
130
|
const Mt = (e, t) => t && t.arrays && !isNaN(Number(e)) ? [] : {};
|
|
131
|
-
function
|
|
131
|
+
function Nn(e) {
|
|
132
132
|
if (F[e])
|
|
133
133
|
return F[e];
|
|
134
134
|
const t = et(e);
|
|
@@ -140,29 +140,29 @@ function Ln(e) {
|
|
|
140
140
|
l[t[c]] = o;
|
|
141
141
|
}, F[e];
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Ye(e, t, n) {
|
|
144
144
|
return n ? { ...e, [t]: n.length ? [...n] : void 0 } : e && e[t] ? [...e[t]] : [];
|
|
145
145
|
}
|
|
146
146
|
function tt(e, t, n) {
|
|
147
147
|
if (e[t]) {
|
|
148
|
-
let o =
|
|
149
|
-
return n(
|
|
148
|
+
let o = Ye(e, t).map((s) => tt(s, t, n));
|
|
149
|
+
return n(Ye(e, t, o));
|
|
150
150
|
}
|
|
151
151
|
return n(e);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const Hn = (e, t, n) => [...e.map((o) => tt(o, t, n))], Bn = (e, t, n, o) => {
|
|
154
154
|
let s = e;
|
|
155
155
|
const l = [];
|
|
156
156
|
for (let f = 0; f < t.length; f++)
|
|
157
157
|
s = s[t[f]], s = Array.isArray(s) ? s : s[n], l.push(s);
|
|
158
158
|
const c = l.length > 1 ? l[l.length - 2] : e, i = t[t.length - 1], h = o(c[i]);
|
|
159
159
|
c.splice(i, 1, h);
|
|
160
|
-
},
|
|
160
|
+
}, jn = (e, t, n) => Object.assign(
|
|
161
161
|
{},
|
|
162
162
|
e,
|
|
163
163
|
e[t] ? { [t]: e[t].slice() } : {},
|
|
164
164
|
n || {}
|
|
165
|
-
),
|
|
165
|
+
), Qn = (e, t, n) => {
|
|
166
166
|
const o = [], s = [...t];
|
|
167
167
|
if (s.length) {
|
|
168
168
|
let l = e[s.shift() || 0];
|
|
@@ -170,26 +170,15 @@ const Tn = (e, t, n) => [...e.map((o) => tt(o, t, n))], Nn = (e, t, n, o) => {
|
|
|
170
170
|
l = l[n][s.shift() || 0], o.push(l);
|
|
171
171
|
}
|
|
172
172
|
return o;
|
|
173
|
-
}, St = ["telerik.com", "progress.com", "stackblitz.io", "csb.app"];
|
|
174
|
-
function
|
|
175
|
-
if (typeof Y < "u")
|
|
176
|
-
Y.validatePackage(e);
|
|
177
|
-
else {
|
|
178
|
-
let t = `License activation failed for ${e.name}
|
|
179
|
-
`;
|
|
180
|
-
t += `The @progress/kendo-licensing script is not loaded.
|
|
181
|
-
`, t += `See ${e.licensingDocsUrl} for more information.
|
|
182
|
-
`, console.warn(t);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
function Qn(e) {
|
|
173
|
+
}, St = ["telerik.com", "progress.com", "stackblitz.io", "csb.app"], zn = Ve;
|
|
174
|
+
function Fn(e) {
|
|
186
175
|
return !St.some((n) => {
|
|
187
176
|
var o;
|
|
188
177
|
return (o = globalThis.document) == null ? void 0 : o.location.hostname.endsWith(n);
|
|
189
|
-
}) && !(
|
|
178
|
+
}) && !Ve(e);
|
|
190
179
|
}
|
|
191
|
-
const
|
|
192
|
-
if (!
|
|
180
|
+
const Xn = (e) => {
|
|
181
|
+
if (!fe)
|
|
193
182
|
return !1;
|
|
194
183
|
const t = e ? e.ownerDocument : document;
|
|
195
184
|
if (!t || !t.body)
|
|
@@ -201,11 +190,11 @@ const zn = (e) => {
|
|
|
201
190
|
const l = s.getBoundingClientRect().top !== n;
|
|
202
191
|
return t.body.removeChild(o), l;
|
|
203
192
|
}, 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
|
|
205
|
-
const
|
|
193
|
+
let Ge = !1;
|
|
194
|
+
const Yn = () => {
|
|
206
195
|
const [e, t] = r.useState(!0), [n, o] = r.useState(!1);
|
|
207
196
|
r.useEffect(() => {
|
|
208
|
-
|
|
197
|
+
Ge || (o(!0), Ge = !0);
|
|
209
198
|
}, []);
|
|
210
199
|
const s = () => {
|
|
211
200
|
t(!1);
|
|
@@ -280,7 +269,7 @@ const Fn = () => {
|
|
|
280
269
|
}
|
|
281
270
|
), n && bt.createPortal(l, document.body));
|
|
282
271
|
};
|
|
283
|
-
function
|
|
272
|
+
function Gn(e, t, n, o) {
|
|
284
273
|
if (e) {
|
|
285
274
|
const s = {
|
|
286
275
|
syntheticEvent: t,
|
|
@@ -316,7 +305,7 @@ function Lt({ onFocus: e, onBlur: t, onSyncFocus: n, onSyncBlur: o }) {
|
|
|
316
305
|
onBlur: h
|
|
317
306
|
};
|
|
318
307
|
}
|
|
319
|
-
const
|
|
308
|
+
const Jn = ({
|
|
320
309
|
children: e,
|
|
321
310
|
onFocus: t,
|
|
322
311
|
onBlur: n,
|
|
@@ -325,7 +314,7 @@ const Yn = ({
|
|
|
325
314
|
}) => {
|
|
326
315
|
const l = Lt({ onFocus: t, onBlur: n, onSyncFocus: o, onSyncBlur: s });
|
|
327
316
|
return /* @__PURE__ */ r.createElement(r.Fragment, null, e.call(void 0, { ...l }));
|
|
328
|
-
}, Tt = (e, t) => r.useContext(e)(t),
|
|
317
|
+
}, Tt = (e, t) => r.useContext(e)(t), Un = () => r.createContext((e) => e), Zn = (e, t) => r.forwardRef((n, o) => {
|
|
329
318
|
const s = Tt(e, n);
|
|
330
319
|
return /* @__PURE__ */ r.createElement(t, { ...s, ref: o });
|
|
331
320
|
}), Nt = typeof window < "u" ? r.useLayoutEffect : r.useEffect;
|
|
@@ -338,17 +327,17 @@ function Ht(e) {
|
|
|
338
327
|
if (e)
|
|
339
328
|
return e;
|
|
340
329
|
if (t)
|
|
341
|
-
return
|
|
330
|
+
return Xe();
|
|
342
331
|
});
|
|
343
332
|
return Nt(() => {
|
|
344
|
-
o === void 0 && s(
|
|
333
|
+
o === void 0 && s(Xe());
|
|
345
334
|
}, []), r.useId ? e ?? r.useId() : o;
|
|
346
335
|
}
|
|
347
|
-
const
|
|
336
|
+
const Vn = (e) => r.forwardRef((t, n) => {
|
|
348
337
|
const o = Ht(t.id);
|
|
349
338
|
return /* @__PURE__ */ r.createElement(e, { ...t, id: o, ref: n });
|
|
350
339
|
});
|
|
351
|
-
function
|
|
340
|
+
function qn(e, t, n) {
|
|
352
341
|
const [o, s] = r.useState(t);
|
|
353
342
|
return r.useEffect(
|
|
354
343
|
() => {
|
|
@@ -360,7 +349,7 @@ function Zn(e, t, n) {
|
|
|
360
349
|
n
|
|
361
350
|
), o;
|
|
362
351
|
}
|
|
363
|
-
function
|
|
352
|
+
function Kn(e, t, n) {
|
|
364
353
|
const [o, s] = r.useState(t);
|
|
365
354
|
return r.useEffect(
|
|
366
355
|
() => {
|
|
@@ -457,9 +446,9 @@ const Bt = (e, t, n = {}) => {
|
|
|
457
446
|
onMouseOut: d,
|
|
458
447
|
onMouseOver: m
|
|
459
448
|
};
|
|
460
|
-
},
|
|
449
|
+
}, Wn = (e) => [e, {}];
|
|
461
450
|
var X = /* @__PURE__ */ ((e) => (e[e.add = 0] = "add", e[e.remove = 1] = "remove", e))(X || {});
|
|
462
|
-
const
|
|
451
|
+
const Je = (e = []) => {
|
|
463
452
|
const t = r.useRef(e), n = r.useCallback(
|
|
464
453
|
(o) => {
|
|
465
454
|
switch (o.type) {
|
|
@@ -485,7 +474,7 @@ const Ue = (e = []) => {
|
|
|
485
474
|
const o = t();
|
|
486
475
|
return o && o.ownerDocument || document;
|
|
487
476
|
}, [t]);
|
|
488
|
-
},
|
|
477
|
+
}, _n = (e) => {
|
|
489
478
|
const t = jt(e);
|
|
490
479
|
return r.useCallback(() => {
|
|
491
480
|
const o = t();
|
|
@@ -500,11 +489,11 @@ const Ue = (e = []) => {
|
|
|
500
489
|
xlarge: "k-icon-xl",
|
|
501
490
|
xxlarge: "k-icon-xxl",
|
|
502
491
|
xxxlarge: "k-icon-xxxl"
|
|
503
|
-
},
|
|
492
|
+
}, $n = (e) => e.replace(/^k-i-/, ""), Qt = (e) => "k-i-" + e, er = g.shape({
|
|
504
493
|
name: g.string.isRequired,
|
|
505
494
|
content: g.string.isRequired,
|
|
506
495
|
viewBox: g.string.isRequired
|
|
507
|
-
}),
|
|
496
|
+
}), ue = (e, t) => {
|
|
508
497
|
const [n, o] = r.useContext(e), [s, l] = r.useState(t);
|
|
509
498
|
return [
|
|
510
499
|
n !== void 0 ? n : s,
|
|
@@ -515,10 +504,10 @@ const Ue = (e = []) => {
|
|
|
515
504
|
}, rt = r.createContext([
|
|
516
505
|
void 0,
|
|
517
506
|
C
|
|
518
|
-
]),
|
|
507
|
+
]), he = r.createContext([
|
|
519
508
|
void 0,
|
|
520
509
|
C
|
|
521
|
-
]), ot = r.createContext([[], C, C]),
|
|
510
|
+
]), ot = r.createContext([[], C, C]), ge = r.createContext([[], C, C]), zt = 2e3;
|
|
522
511
|
function Ft(e, t, n = {}) {
|
|
523
512
|
const {
|
|
524
513
|
onPress: o = C,
|
|
@@ -531,16 +520,16 @@ function Ft(e, t, n = {}) {
|
|
|
531
520
|
mouseOnly: f = !1,
|
|
532
521
|
autoScroll: d = !0,
|
|
533
522
|
scrollContainer: m = null
|
|
534
|
-
} = n, [u, x] = r.useState(!1), [y, w] = r.useState(!1), [E] =
|
|
523
|
+
} = n, [u, x] = r.useState(!1), [y, w] = r.useState(!1), [E] = ue(he), [R, M] = ue(rt), [T] = r.useContext(ge), [I, P, O] = r.useContext(ot), p = r.useRef({ x: 0, y: 0 }), q = r.useRef(), K = r.useRef(!1), xe = r.useRef(), j = r.useRef(null), W = r.useRef(!1), ye = r.useRef({ x: 0, y: 0 }), pe = r.useRef({ x: 0, y: 0 }), U = r.useRef({ x: 0, y: 0 }), ke = r.useRef({ x: 0, y: 0 }), De = r.useRef({ x: 0, y: 0 }), Ae = r.useRef({ x: 0, y: 0 }), dt = !!(typeof window < "u" && window.PointerEvent), we = !f && dt, L = r.useCallback(
|
|
535
524
|
() => e.current && e.current.element ? e.current.element : e.current,
|
|
536
525
|
[e]
|
|
537
526
|
), ft = r.useCallback(
|
|
538
527
|
() => h && h.current && h.current.element ? h.current.element : h ? h.current : null,
|
|
539
528
|
[h]
|
|
540
|
-
),
|
|
529
|
+
), Pe = r.useCallback(
|
|
541
530
|
() => m && m.current && m.current.element ? m.current.element : m ? m.current : null,
|
|
542
531
|
[m]
|
|
543
|
-
),
|
|
532
|
+
), Ie = r.useCallback(
|
|
544
533
|
() => typeof d == "object" && d.boundaryElementRef && d.boundaryElementRef.current && d.boundaryElementRef.current.element ? d.boundaryElementRef.current.element : typeof d == "object" && d.boundaryElementRef && d.boundaryElementRef.current ? d.boundaryElementRef.current : null,
|
|
545
534
|
[d]
|
|
546
535
|
), Q = r.useRef(null);
|
|
@@ -554,7 +543,7 @@ function Ft(e, t, n = {}) {
|
|
|
554
543
|
onRelease: gt,
|
|
555
544
|
data: e.current
|
|
556
545
|
}));
|
|
557
|
-
const
|
|
546
|
+
const Z = r.useCallback(
|
|
558
547
|
() => {
|
|
559
548
|
const a = L();
|
|
560
549
|
return a && a.ownerDocument || document;
|
|
@@ -562,54 +551,59 @@ function Ft(e, t, n = {}) {
|
|
|
562
551
|
[L]
|
|
563
552
|
), N = r.useCallback(
|
|
564
553
|
() => {
|
|
565
|
-
const a =
|
|
554
|
+
const a = Z();
|
|
566
555
|
return a && a.defaultView || window;
|
|
567
556
|
},
|
|
568
|
-
[
|
|
569
|
-
),
|
|
557
|
+
[Z]
|
|
558
|
+
), Oe = r.useCallback(
|
|
570
559
|
() => ({
|
|
571
560
|
drag: R ? R.current : null,
|
|
572
561
|
drop: E ? E.current : null,
|
|
573
562
|
drags: I.map((a) => a.current),
|
|
574
563
|
drops: T.map((a) => a.current),
|
|
575
564
|
pressed: u,
|
|
576
|
-
ignoreMouse:
|
|
577
|
-
scrollOffset:
|
|
578
|
-
offset:
|
|
579
|
-
pageOffset:
|
|
580
|
-
initialScrollOffset:
|
|
581
|
-
clientOffset:
|
|
582
|
-
initialClientOffset:
|
|
565
|
+
ignoreMouse: K.current,
|
|
566
|
+
scrollOffset: De.current,
|
|
567
|
+
offset: ye.current,
|
|
568
|
+
pageOffset: pe.current,
|
|
569
|
+
initialScrollOffset: Ae.current,
|
|
570
|
+
clientOffset: U.current,
|
|
571
|
+
initialClientOffset: ke.current,
|
|
583
572
|
velocity: p.current,
|
|
584
573
|
autoScroll: !!(typeof d == "object" ? d.enabled !== !1 : d),
|
|
585
|
-
scrollableParent:
|
|
574
|
+
scrollableParent: Ie(),
|
|
586
575
|
autoScrollDirection: typeof d == "object" ? d.direction : { horizontal: !0, vertical: !0 },
|
|
587
576
|
isScrolling: y
|
|
588
577
|
}),
|
|
589
|
-
[R, E, I, T, u, d,
|
|
590
|
-
),
|
|
578
|
+
[R, E, I, T, u, d, Ie, y]
|
|
579
|
+
), Me = r.useCallback(
|
|
591
580
|
(a) => {
|
|
592
581
|
x(a);
|
|
593
582
|
},
|
|
594
583
|
[]
|
|
595
|
-
),
|
|
584
|
+
), Se = r.useCallback(
|
|
596
585
|
(a) => {
|
|
597
586
|
w(a);
|
|
598
587
|
},
|
|
599
588
|
[]
|
|
600
|
-
),
|
|
589
|
+
), Re = r.useCallback(
|
|
601
590
|
(a) => {
|
|
602
591
|
p.current = a;
|
|
603
592
|
},
|
|
604
593
|
[]
|
|
594
|
+
), Le = r.useCallback(
|
|
595
|
+
(a) => {
|
|
596
|
+
ye.current = a;
|
|
597
|
+
},
|
|
598
|
+
[]
|
|
605
599
|
), Te = r.useCallback(
|
|
606
600
|
(a) => {
|
|
607
|
-
|
|
601
|
+
U.current = a;
|
|
608
602
|
},
|
|
609
603
|
[]
|
|
610
604
|
), Ne = r.useCallback(
|
|
611
605
|
(a) => {
|
|
612
|
-
|
|
606
|
+
pe.current = a;
|
|
613
607
|
},
|
|
614
608
|
[]
|
|
615
609
|
), He = r.useCallback(
|
|
@@ -627,11 +621,6 @@ function Ft(e, t, n = {}) {
|
|
|
627
621
|
Ae.current = a;
|
|
628
622
|
},
|
|
629
623
|
[]
|
|
630
|
-
), Qe = r.useCallback(
|
|
631
|
-
(a) => {
|
|
632
|
-
we.current = a;
|
|
633
|
-
},
|
|
634
|
-
[]
|
|
635
624
|
), ht = r.useCallback(
|
|
636
625
|
(a) => {
|
|
637
626
|
o(a);
|
|
@@ -654,39 +643,44 @@ function Ft(e, t, n = {}) {
|
|
|
654
643
|
[c]
|
|
655
644
|
), Ct = r.useCallback(
|
|
656
645
|
(a) => {
|
|
657
|
-
|
|
646
|
+
W.current || (M(null, { target: e.current, event: a }), i(a));
|
|
658
647
|
},
|
|
659
648
|
[i, M, e]
|
|
660
649
|
), v = r.useCallback(
|
|
661
650
|
(a) => {
|
|
662
651
|
xt(
|
|
663
|
-
|
|
652
|
+
Oe(),
|
|
664
653
|
{ event: a, payload: Q.current },
|
|
665
654
|
{
|
|
666
|
-
onVelocityChange:
|
|
667
|
-
onOffsetChange:
|
|
668
|
-
onClientOffsetChange:
|
|
669
|
-
onPageOffsetChange:
|
|
670
|
-
onInitialClientOffsetChange:
|
|
671
|
-
onScrollOffsetChange:
|
|
672
|
-
onInitialScrollOffsetChange:
|
|
673
|
-
onIsPressedChange:
|
|
674
|
-
onIsScrollingChange:
|
|
655
|
+
onVelocityChange: Re,
|
|
656
|
+
onOffsetChange: Le,
|
|
657
|
+
onClientOffsetChange: Te,
|
|
658
|
+
onPageOffsetChange: Ne,
|
|
659
|
+
onInitialClientOffsetChange: He,
|
|
660
|
+
onScrollOffsetChange: Be,
|
|
661
|
+
onInitialScrollOffsetChange: je,
|
|
662
|
+
onIsPressedChange: Me,
|
|
663
|
+
onIsScrollingChange: Se
|
|
675
664
|
}
|
|
676
665
|
);
|
|
677
666
|
},
|
|
678
667
|
[
|
|
679
|
-
|
|
668
|
+
Oe,
|
|
669
|
+
Re,
|
|
680
670
|
Le,
|
|
671
|
+
Ne,
|
|
681
672
|
Te,
|
|
682
673
|
He,
|
|
683
|
-
Ne,
|
|
684
|
-
Be,
|
|
685
|
-
Qe,
|
|
686
|
-
Se,
|
|
687
674
|
je,
|
|
688
|
-
|
|
675
|
+
Me,
|
|
676
|
+
Be,
|
|
677
|
+
Se
|
|
689
678
|
]
|
|
679
|
+
), _ = r.useCallback(
|
|
680
|
+
(a) => {
|
|
681
|
+
v(a);
|
|
682
|
+
},
|
|
683
|
+
[v]
|
|
690
684
|
), $ = r.useCallback(
|
|
691
685
|
(a) => {
|
|
692
686
|
v(a);
|
|
@@ -719,7 +713,7 @@ function Ft(e, t, n = {}) {
|
|
|
719
713
|
[v]
|
|
720
714
|
), se = r.useCallback(
|
|
721
715
|
(a) => {
|
|
722
|
-
v(a);
|
|
716
|
+
a.preventDefault(), v(a);
|
|
723
717
|
},
|
|
724
718
|
[v]
|
|
725
719
|
), le = r.useCallback(
|
|
@@ -733,27 +727,22 @@ function Ft(e, t, n = {}) {
|
|
|
733
727
|
},
|
|
734
728
|
[v]
|
|
735
729
|
), ae = r.useCallback(
|
|
736
|
-
(a) => {
|
|
737
|
-
a.preventDefault(), v(a);
|
|
738
|
-
},
|
|
739
|
-
[v]
|
|
740
|
-
), ie = r.useCallback(
|
|
741
730
|
(a) => {
|
|
742
731
|
if (a.touches.length === 0 && a.changedTouches.length === 1) {
|
|
743
732
|
const b = N();
|
|
744
|
-
|
|
745
|
-
|
|
733
|
+
K.current = !0, xe.current = b.setTimeout(() => {
|
|
734
|
+
K.current = !1;
|
|
746
735
|
}, zt);
|
|
747
736
|
}
|
|
748
737
|
v(a);
|
|
749
738
|
},
|
|
750
739
|
[v, N]
|
|
751
|
-
),
|
|
740
|
+
), ie = r.useCallback(
|
|
752
741
|
(a) => {
|
|
753
742
|
v(a);
|
|
754
743
|
},
|
|
755
744
|
[v]
|
|
756
|
-
),
|
|
745
|
+
), Qe = r.useCallback(
|
|
757
746
|
() => {
|
|
758
747
|
const a = L();
|
|
759
748
|
if (a) {
|
|
@@ -764,50 +753,50 @@ function Ft(e, t, n = {}) {
|
|
|
764
753
|
}
|
|
765
754
|
},
|
|
766
755
|
[L]
|
|
767
|
-
),
|
|
756
|
+
), ze = r.useCallback(
|
|
768
757
|
() => (P(Q), () => {
|
|
769
758
|
O(Q);
|
|
770
759
|
}),
|
|
771
760
|
[O, P]
|
|
772
761
|
), Et = () => {
|
|
773
|
-
const a = N(), b = L(), D =
|
|
774
|
-
return
|
|
775
|
-
j.current && j.current.removeEventListener("scroll",
|
|
762
|
+
const a = N(), b = L(), D = Z();
|
|
763
|
+
return we ? (b && (j.current = Fe(b), j.current && j.current.addEventListener("scroll", ie, { passive: !0 }), b.addEventListener("pointerdown", _, { passive: !0 })), u && (D.addEventListener("pointermove", $), D.addEventListener("pointerup", te, !0), D.addEventListener("contextmenu", se), D.addEventListener("pointercancel", ee, { passive: !0 }))) : (a.addEventListener("touchmove", C, { capture: !1, passive: !1 }), b && (b.addEventListener("mousedown", ne, { passive: !0 }), f || (b.addEventListener("touchstart", le, { passive: !0 }), u && (b.addEventListener("touchmove", ce, { passive: !0 }), b.addEventListener("touchend", ae, { passive: !0 })))), u && (D.addEventListener("mousemove", re, { passive: !0 }), D.addEventListener("mouseup", oe, { passive: !0 }))), () => {
|
|
764
|
+
j.current && j.current.removeEventListener("scroll", ie), b && (b.removeEventListener("pointerdown", _), b.removeEventListener("mousedown", ne), b.removeEventListener("touchstart", le), b.removeEventListener("touchmove", ce), b.removeEventListener("touchend", ae)), D.removeEventListener("pointermove", $), D.removeEventListener("pointerup", te, !0), D.removeEventListener("contextmenu", se), D.removeEventListener("pointercancel", ee), D.removeEventListener("mousemove", re), D.removeEventListener("mouseup", oe), a.removeEventListener("touchmove", C), a.clearTimeout(xe.current);
|
|
776
765
|
};
|
|
777
766
|
};
|
|
778
767
|
r.useEffect(() => {
|
|
779
768
|
const a = N();
|
|
780
769
|
if (y) {
|
|
781
|
-
const b =
|
|
782
|
-
a.clearInterval(
|
|
770
|
+
const b = Pe() || Fe(document.elementFromPoint(U.current.x, U.current.y));
|
|
771
|
+
a.clearInterval(q.current), q.current = a.setInterval(() => {
|
|
783
772
|
yt(b, { x: p.current.x, y: p.current.y });
|
|
784
773
|
}, 50);
|
|
785
774
|
}
|
|
786
775
|
return () => {
|
|
787
|
-
a.clearInterval(
|
|
776
|
+
a.clearInterval(q.current);
|
|
788
777
|
};
|
|
789
|
-
}, [L,
|
|
778
|
+
}, [L, Pe, N, y]), r.useEffect(Qe, [Qe]), r.useEffect(Et, [
|
|
790
779
|
u,
|
|
791
780
|
N,
|
|
792
781
|
L,
|
|
793
|
-
|
|
782
|
+
Z,
|
|
794
783
|
f,
|
|
795
|
-
|
|
796
|
-
|
|
784
|
+
we,
|
|
785
|
+
se,
|
|
786
|
+
ne,
|
|
797
787
|
re,
|
|
798
788
|
oe,
|
|
799
|
-
se,
|
|
800
|
-
te,
|
|
801
|
-
$,
|
|
802
789
|
ee,
|
|
803
|
-
|
|
804
|
-
|
|
790
|
+
_,
|
|
791
|
+
$,
|
|
792
|
+
te,
|
|
805
793
|
ae,
|
|
806
794
|
ce,
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
795
|
+
le,
|
|
796
|
+
ie
|
|
797
|
+
]), r.useEffect(() => (W.current = !1, () => {
|
|
798
|
+
W.current = !0;
|
|
799
|
+
}), []), r.useLayoutEffect(ze, [ze]);
|
|
811
800
|
}
|
|
812
801
|
function Xt(e, t = {
|
|
813
802
|
onDragEnter: C,
|
|
@@ -820,7 +809,7 @@ function Xt(e, t = {
|
|
|
820
809
|
onDragOver: o = C,
|
|
821
810
|
onDragLeave: s = C,
|
|
822
811
|
onDrop: l = C
|
|
823
|
-
} = t, [, c] =
|
|
812
|
+
} = t, [, c] = ue(he), [, i, h] = r.useContext(ge), f = r.useCallback(
|
|
824
813
|
() => e.current && e.current.element ? e.current.element : e.current,
|
|
825
814
|
[e]
|
|
826
815
|
), d = r.useRef(null);
|
|
@@ -860,7 +849,7 @@ function Xt(e, t = {
|
|
|
860
849
|
);
|
|
861
850
|
r.useLayoutEffect(w, [w]);
|
|
862
851
|
}
|
|
863
|
-
const
|
|
852
|
+
const Ue = (e, t, n) => {
|
|
864
853
|
const [o, s] = r.useState(t || e), l = r.useCallback(
|
|
865
854
|
(c, i) => {
|
|
866
855
|
s(c), n && n.call(void 0, { ...i, value: c });
|
|
@@ -868,7 +857,7 @@ const Ze = (e, t, n) => {
|
|
|
868
857
|
[n, s]
|
|
869
858
|
);
|
|
870
859
|
return [t !== void 0 ? t : o, l];
|
|
871
|
-
},
|
|
860
|
+
}, me = r.forwardRef((e, t) => {
|
|
872
861
|
const {
|
|
873
862
|
className: n,
|
|
874
863
|
name: o,
|
|
@@ -884,10 +873,10 @@ const Ze = (e, t, n) => {
|
|
|
884
873
|
element: u.current
|
|
885
874
|
})), r.useImperativeHandle(t, () => m.current);
|
|
886
875
|
const x = r.useMemo(
|
|
887
|
-
() => l ||
|
|
876
|
+
() => l || Ze.size,
|
|
888
877
|
[l]
|
|
889
878
|
), y = r.useMemo(
|
|
890
|
-
() => c ||
|
|
879
|
+
() => c || Ze.flip,
|
|
891
880
|
[c]
|
|
892
881
|
), w = r.useMemo(
|
|
893
882
|
() => We(
|
|
@@ -918,7 +907,7 @@ const Ze = (e, t, n) => {
|
|
|
918
907
|
}
|
|
919
908
|
);
|
|
920
909
|
});
|
|
921
|
-
|
|
910
|
+
me.propTypes = {
|
|
922
911
|
style: g.object,
|
|
923
912
|
classNames: g.string,
|
|
924
913
|
name: g.string,
|
|
@@ -938,12 +927,12 @@ ve.propTypes = {
|
|
|
938
927
|
size: g.oneOf(["default", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"]),
|
|
939
928
|
flip: g.oneOf(["default", "horizontal", "vertical", "both"])
|
|
940
929
|
};
|
|
941
|
-
const
|
|
930
|
+
const Ze = {
|
|
942
931
|
size: "default",
|
|
943
932
|
flip: "default"
|
|
944
933
|
};
|
|
945
|
-
|
|
946
|
-
const
|
|
934
|
+
me.displayName = "KendoIcon";
|
|
935
|
+
const ve = r.forwardRef((e, t) => {
|
|
947
936
|
const {
|
|
948
937
|
children: n,
|
|
949
938
|
className: o,
|
|
@@ -968,16 +957,16 @@ const Ce = r.forwardRef((e, t) => {
|
|
|
968
957
|
})
|
|
969
958
|
);
|
|
970
959
|
const M = r.useMemo(
|
|
971
|
-
() => l ? l.name :
|
|
960
|
+
() => l ? l.name : V.icon,
|
|
972
961
|
[l]
|
|
973
962
|
), T = r.useMemo(
|
|
974
|
-
() => f ||
|
|
963
|
+
() => f || V.size,
|
|
975
964
|
[f]
|
|
976
965
|
), I = r.useMemo(
|
|
977
|
-
() => c ||
|
|
966
|
+
() => c || V.flip,
|
|
978
967
|
[c]
|
|
979
968
|
), P = r.useMemo(
|
|
980
|
-
() => x ||
|
|
969
|
+
() => x || V.viewBox,
|
|
981
970
|
[x]
|
|
982
971
|
), O = r.useMemo(
|
|
983
972
|
() => We(
|
|
@@ -1023,7 +1012,7 @@ const Ce = r.forwardRef((e, t) => {
|
|
|
1023
1012
|
)
|
|
1024
1013
|
);
|
|
1025
1014
|
});
|
|
1026
|
-
|
|
1015
|
+
ve.propTypes = {
|
|
1027
1016
|
style: g.object,
|
|
1028
1017
|
classNames: g.string,
|
|
1029
1018
|
children: g.any,
|
|
@@ -1044,13 +1033,13 @@ Ce.propTypes = {
|
|
|
1044
1033
|
size: g.oneOf(["default", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"]),
|
|
1045
1034
|
flip: g.oneOf(["default", "horizontal", "vertical", "both"])
|
|
1046
1035
|
};
|
|
1047
|
-
const
|
|
1036
|
+
const V = {
|
|
1048
1037
|
size: "default",
|
|
1049
1038
|
flip: "default",
|
|
1050
1039
|
icon: "",
|
|
1051
1040
|
viewBox: "0 0 24 24"
|
|
1052
1041
|
};
|
|
1053
|
-
|
|
1042
|
+
ve.displayName = "KendoSvgIcon";
|
|
1054
1043
|
const st = r.createContext({ type: "svg" });
|
|
1055
1044
|
st.displayName = "KendoReactIconsContext";
|
|
1056
1045
|
const Yt = r.forwardRef((e, t) => {
|
|
@@ -1059,7 +1048,7 @@ const Yt = r.forwardRef((e, t) => {
|
|
|
1059
1048
|
let c = n === "svg" ? ((h = e.icon) == null ? void 0 : h.name) || e.name : e.name || ((f = e.icon) == null ? void 0 : f.name);
|
|
1060
1049
|
c = c && o && o[c] && typeof o[c] == "string" ? o[c] : c;
|
|
1061
1050
|
const i = c && o && o[c] && typeof o[c] != "string" ? o[c] : s;
|
|
1062
|
-
return n === "svg" && i ? /* @__PURE__ */ r.createElement(
|
|
1051
|
+
return n === "svg" && i ? /* @__PURE__ */ r.createElement(ve, { ...e, icon: i, ref: t }) : /* @__PURE__ */ r.createElement(me, { ...l, name: c, ref: t });
|
|
1063
1052
|
});
|
|
1064
1053
|
Yt.displayName = "KendoIconWrap";
|
|
1065
1054
|
const Gt = {
|
|
@@ -1199,7 +1188,7 @@ const Gt = {
|
|
|
1199
1188
|
"inverse"
|
|
1200
1189
|
])
|
|
1201
1190
|
}, t.displayName = `KendoReactTypography${e.toUpperCase()}`, t;
|
|
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"),
|
|
1191
|
+
}, _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"), tr = {
|
|
1203
1192
|
h1: _t,
|
|
1204
1193
|
h2: $t,
|
|
1205
1194
|
h3: en,
|
|
@@ -1210,13 +1199,13 @@ const Gt = {
|
|
|
1210
1199
|
code: sn,
|
|
1211
1200
|
pre: ln
|
|
1212
1201
|
}, cn = (e) => {
|
|
1213
|
-
const [t, n] =
|
|
1202
|
+
const [t, n] = Ue(
|
|
1214
1203
|
null,
|
|
1215
1204
|
void 0
|
|
1216
|
-
), [o, s] =
|
|
1205
|
+
), [o, s] = Ue(
|
|
1217
1206
|
null,
|
|
1218
1207
|
void 0
|
|
1219
|
-
), [l, c] =
|
|
1208
|
+
), [l, c] = Je([]), [i, h] = Je([]), f = (x) => {
|
|
1220
1209
|
c({
|
|
1221
1210
|
type: X.add,
|
|
1222
1211
|
item: x
|
|
@@ -1237,7 +1226,7 @@ const Gt = {
|
|
|
1237
1226
|
item: x
|
|
1238
1227
|
});
|
|
1239
1228
|
};
|
|
1240
|
-
return /* @__PURE__ */ r.createElement(rt.Provider, { value: [t, n] }, /* @__PURE__ */ r.createElement(
|
|
1229
|
+
return /* @__PURE__ */ r.createElement(rt.Provider, { value: [t, n] }, /* @__PURE__ */ r.createElement(he.Provider, { value: [o, s] }, /* @__PURE__ */ r.createElement(ot.Provider, { value: [l, f, d] }, /* @__PURE__ */ r.createElement(ge.Provider, { value: [i, m, u] }, e.children))));
|
|
1241
1230
|
};
|
|
1242
1231
|
cn.displayName = "KendoReactDragAndDrop";
|
|
1243
1232
|
const an = r.forwardRef((e, t) => {
|
|
@@ -1357,7 +1346,7 @@ const un = r.forwardRef((e, t) => {
|
|
|
1357
1346
|
}), e.children ? r.cloneElement(r.Children.only(e.children), { ref: n }) : null;
|
|
1358
1347
|
});
|
|
1359
1348
|
un.displayName = "KendoReactDroppable";
|
|
1360
|
-
const
|
|
1349
|
+
const nr = {
|
|
1361
1350
|
sizeMap: {
|
|
1362
1351
|
small: "sm",
|
|
1363
1352
|
medium: "md",
|
|
@@ -1384,7 +1373,7 @@ function fn(e, t) {
|
|
|
1384
1373
|
return !1;
|
|
1385
1374
|
return !0;
|
|
1386
1375
|
}
|
|
1387
|
-
function
|
|
1376
|
+
function rr(e, t = fn) {
|
|
1388
1377
|
let n = null;
|
|
1389
1378
|
function o(...s) {
|
|
1390
1379
|
if (n && n.lastThis === this && t(s, n.lastArgs))
|
|
@@ -1400,7 +1389,7 @@ function tr(e, t = fn) {
|
|
|
1400
1389
|
n = null;
|
|
1401
1390
|
}, o;
|
|
1402
1391
|
}
|
|
1403
|
-
const
|
|
1392
|
+
const or = [
|
|
1404
1393
|
"input:not([disabled]):not([type=hidden])",
|
|
1405
1394
|
"select:not([disabled])",
|
|
1406
1395
|
"textarea:not([disabled])",
|
|
@@ -1415,7 +1404,7 @@ const nr = [
|
|
|
1415
1404
|
"video[controls]",
|
|
1416
1405
|
"[contenteditable]"
|
|
1417
1406
|
];
|
|
1418
|
-
class
|
|
1407
|
+
class sr {
|
|
1419
1408
|
constructor(t) {
|
|
1420
1409
|
this.rovingTabIndex = !0, this.update = () => {
|
|
1421
1410
|
}, this.focusNextIndex = (n, o) => {
|
|
@@ -1484,12 +1473,12 @@ class rr {
|
|
|
1484
1473
|
t && (n && (this.rovingTabIndex && n.removeAttribute("tabindex"), n.classList.remove("k-focus")), this.rovingTabIndex && t.setAttribute("tabindex", String(this.tabIndex)), t.focus(this.focusOptions));
|
|
1485
1474
|
}
|
|
1486
1475
|
}
|
|
1487
|
-
const
|
|
1476
|
+
const de = (e) => {
|
|
1488
1477
|
const t = e.shadowRoot, n = e.contentDocument;
|
|
1489
|
-
return t && t.activeElement ?
|
|
1490
|
-
},
|
|
1478
|
+
return t && t.activeElement ? de(t.activeElement) : n && n.activeElement ? de(n.activeElement) : e;
|
|
1479
|
+
}, lr = (e) => {
|
|
1491
1480
|
if (!(!e || !e.activeElement))
|
|
1492
|
-
return
|
|
1481
|
+
return de(e.activeElement);
|
|
1493
1482
|
};
|
|
1494
1483
|
function k(e, t) {
|
|
1495
1484
|
const n = (e || "").split(".");
|
|
@@ -1498,10 +1487,10 @@ function k(e, t) {
|
|
|
1498
1487
|
o = o ? o[s] : void 0;
|
|
1499
1488
|
}), o;
|
|
1500
1489
|
}
|
|
1501
|
-
function
|
|
1490
|
+
function cr(e) {
|
|
1502
1491
|
return e.length !== void 0;
|
|
1503
1492
|
}
|
|
1504
|
-
class
|
|
1493
|
+
class ar {
|
|
1505
1494
|
constructor(t) {
|
|
1506
1495
|
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;
|
|
1507
1496
|
}
|
|
@@ -1551,9 +1540,9 @@ class gn {
|
|
|
1551
1540
|
return this.objects.some((n) => n[t]);
|
|
1552
1541
|
}
|
|
1553
1542
|
}
|
|
1554
|
-
const
|
|
1543
|
+
const Y = "", lt = "0", A = "_";
|
|
1555
1544
|
function ct(e, t, n) {
|
|
1556
|
-
if (
|
|
1545
|
+
if (J(e))
|
|
1557
1546
|
return t[Number(e)];
|
|
1558
1547
|
{
|
|
1559
1548
|
const o = t[Number(H(e))], s = o && o[n] || [];
|
|
@@ -1561,10 +1550,10 @@ function ct(e, t, n) {
|
|
|
1561
1550
|
}
|
|
1562
1551
|
}
|
|
1563
1552
|
function H(e) {
|
|
1564
|
-
return
|
|
1553
|
+
return Ce(e) ? e : e.split(A)[0];
|
|
1565
1554
|
}
|
|
1566
1555
|
function B(e) {
|
|
1567
|
-
if (
|
|
1556
|
+
if (Ce(e))
|
|
1568
1557
|
return e;
|
|
1569
1558
|
{
|
|
1570
1559
|
const t = e.indexOf(A);
|
|
@@ -1572,30 +1561,30 @@ function B(e) {
|
|
|
1572
1561
|
}
|
|
1573
1562
|
}
|
|
1574
1563
|
function mn(e) {
|
|
1575
|
-
return
|
|
1564
|
+
return G("0", e);
|
|
1576
1565
|
}
|
|
1577
|
-
function
|
|
1566
|
+
function G(e, t) {
|
|
1578
1567
|
return e = e.toString(), t ? t + A + e : e;
|
|
1579
1568
|
}
|
|
1580
1569
|
function at(e) {
|
|
1581
1570
|
const t = e.lastIndexOf(A);
|
|
1582
|
-
return t < 0 ?
|
|
1571
|
+
return t < 0 ? Y : e.substring(0, t);
|
|
1583
1572
|
}
|
|
1584
|
-
function
|
|
1585
|
-
return e ===
|
|
1573
|
+
function Ce(e) {
|
|
1574
|
+
return e === Y || e.indexOf(A) < 0;
|
|
1586
1575
|
}
|
|
1587
|
-
function
|
|
1588
|
-
return e !==
|
|
1576
|
+
function J(e) {
|
|
1577
|
+
return e !== Y && e.indexOf(A) < 0;
|
|
1589
1578
|
}
|
|
1590
|
-
function
|
|
1579
|
+
function Ee(e) {
|
|
1591
1580
|
return e.split(A);
|
|
1592
1581
|
}
|
|
1593
|
-
function
|
|
1582
|
+
function be(e) {
|
|
1594
1583
|
const t = e.lastIndexOf(A);
|
|
1595
1584
|
return t < 0 ? e : e.substring(t + 1);
|
|
1596
1585
|
}
|
|
1597
1586
|
function vn(e) {
|
|
1598
|
-
return
|
|
1587
|
+
return be(e) === lt;
|
|
1599
1588
|
}
|
|
1600
1589
|
function Cn(e, t) {
|
|
1601
1590
|
const n = t;
|
|
@@ -1605,7 +1594,7 @@ function Cn(e, t) {
|
|
|
1605
1594
|
const s = t.substring(o.length);
|
|
1606
1595
|
if (s) {
|
|
1607
1596
|
const l = H(s);
|
|
1608
|
-
if (Number(
|
|
1597
|
+
if (Number(be(e)) < Number(l)) {
|
|
1609
1598
|
const c = o + (Number(l) - 1).toString() + s.substring(l.length);
|
|
1610
1599
|
return B(c);
|
|
1611
1600
|
}
|
|
@@ -1613,48 +1602,48 @@ function Cn(e, t) {
|
|
|
1613
1602
|
}
|
|
1614
1603
|
return n;
|
|
1615
1604
|
}
|
|
1616
|
-
const
|
|
1605
|
+
const ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1617
1606
|
__proto__: null,
|
|
1618
|
-
EMPTY_ID:
|
|
1607
|
+
EMPTY_ID: Y,
|
|
1619
1608
|
SEPARATOR: A,
|
|
1620
1609
|
ZERO_LEVEL_ZERO_NODE_ID: lt,
|
|
1621
|
-
createId:
|
|
1622
|
-
getAllShortIds:
|
|
1610
|
+
createId: G,
|
|
1611
|
+
getAllShortIds: Ee,
|
|
1623
1612
|
getDecrementedItemIdAfterRemoval: Cn,
|
|
1624
1613
|
getDirectParentId: at,
|
|
1625
1614
|
getFirstChildId: mn,
|
|
1626
1615
|
getIdWithoutRootParentId: B,
|
|
1627
1616
|
getItemById: ct,
|
|
1628
1617
|
getRootParentId: H,
|
|
1629
|
-
getShortId:
|
|
1630
|
-
isIdEmptyOrZeroLevel:
|
|
1631
|
-
isIdZeroLevel:
|
|
1618
|
+
getShortId: be,
|
|
1619
|
+
isIdEmptyOrZeroLevel: Ce,
|
|
1620
|
+
isIdZeroLevel: J,
|
|
1632
1621
|
isItemFirstFromSiblings: vn
|
|
1633
1622
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1634
1623
|
function it(e, t) {
|
|
1635
1624
|
const n = k(t, e);
|
|
1636
1625
|
return !!(n && n.length);
|
|
1637
1626
|
}
|
|
1638
|
-
function
|
|
1627
|
+
function ur(e, t) {
|
|
1639
1628
|
return t.expanded(e) && it(e, t.getChildrenField());
|
|
1640
1629
|
}
|
|
1641
|
-
function
|
|
1630
|
+
function dr(e, t, n, o) {
|
|
1642
1631
|
const s = En([e], t, n, o);
|
|
1643
1632
|
return s.length ? s[0] : void 0;
|
|
1644
1633
|
}
|
|
1645
1634
|
function En(e, t, n, o) {
|
|
1646
1635
|
const s = [], l = new gn();
|
|
1647
|
-
return l.init(e), ut(l, t, n,
|
|
1636
|
+
return l.init(e), ut(l, t, n, Y, s, o), s;
|
|
1648
1637
|
}
|
|
1649
1638
|
function bn(e, t, n, o, s) {
|
|
1650
1639
|
const l = Number(H(t));
|
|
1651
1640
|
if (l >= e.length)
|
|
1652
1641
|
return e;
|
|
1653
1642
|
let c = e, i = e[l];
|
|
1654
|
-
return i[o] || (c = e.slice(), i = c[l] = Object.assign({}, i, { [o]: !0 })),
|
|
1643
|
+
return i[o] || (c = e.slice(), i = c[l] = Object.assign({}, i, { [o]: !0 })), J(t) ? n(i) : i[s] && (i[s] = bn(i[s], B(t), n, o, s)), c;
|
|
1655
1644
|
}
|
|
1656
|
-
function
|
|
1657
|
-
const o =
|
|
1645
|
+
function fr(e, t, n) {
|
|
1646
|
+
const o = Ee(e);
|
|
1658
1647
|
let s = t;
|
|
1659
1648
|
for (let l = 0; l < o.length; l++) {
|
|
1660
1649
|
const c = s[Number(o[l])];
|
|
@@ -1664,13 +1653,13 @@ function ur(e, t, n) {
|
|
|
1664
1653
|
}
|
|
1665
1654
|
return !0;
|
|
1666
1655
|
}
|
|
1667
|
-
function
|
|
1656
|
+
function hr(e, t, n, o) {
|
|
1668
1657
|
return o ? l(e) : s(e, t);
|
|
1669
1658
|
function s(c, i) {
|
|
1670
1659
|
let h = [];
|
|
1671
1660
|
const f = c[n] || [];
|
|
1672
1661
|
for (let d = 0; d < f.length; d++) {
|
|
1673
|
-
const m =
|
|
1662
|
+
const m = G(d, i);
|
|
1674
1663
|
h.push(m), h = h.concat(s(f[d], m));
|
|
1675
1664
|
}
|
|
1676
1665
|
return h;
|
|
@@ -1683,11 +1672,11 @@ function dr(e, t, n, o) {
|
|
|
1683
1672
|
return i;
|
|
1684
1673
|
}
|
|
1685
1674
|
}
|
|
1686
|
-
function
|
|
1687
|
-
return (e[o] || []).every((c, i) => s.indexOf(n ? k(n, c) :
|
|
1675
|
+
function gr(e, t, n, o, s) {
|
|
1676
|
+
return (e[o] || []).every((c, i) => s.indexOf(n ? k(n, c) : G(i, t)) > -1);
|
|
1688
1677
|
}
|
|
1689
|
-
function
|
|
1690
|
-
const o = [], s =
|
|
1678
|
+
function mr(e, t, n) {
|
|
1679
|
+
const o = [], s = Ee(e);
|
|
1691
1680
|
let l = n;
|
|
1692
1681
|
for (let c = 0; c < s.length - 1 && l; c++) {
|
|
1693
1682
|
const i = l[Number(s[c])];
|
|
@@ -1697,7 +1686,7 @@ function hr(e, t, n) {
|
|
|
1697
1686
|
}
|
|
1698
1687
|
function xn(e, t, n) {
|
|
1699
1688
|
const o = n.slice();
|
|
1700
|
-
if (
|
|
1689
|
+
if (J(e))
|
|
1701
1690
|
o.splice(Number(e), 1);
|
|
1702
1691
|
else {
|
|
1703
1692
|
const s = Number(H(e)), l = o[s] = { ...o[s] };
|
|
@@ -1707,7 +1696,7 @@ function xn(e, t, n) {
|
|
|
1707
1696
|
}
|
|
1708
1697
|
function yn(e, t, n, o, s) {
|
|
1709
1698
|
const l = s.slice();
|
|
1710
|
-
if (
|
|
1699
|
+
if (J(o))
|
|
1711
1700
|
if (t === "child") {
|
|
1712
1701
|
const c = l[Number(o)] = { ...l[Number(o)] };
|
|
1713
1702
|
c[n] ? (c[n] = c[n].slice(), c[n].push(e)) : c[n] = [e];
|
|
@@ -1721,79 +1710,79 @@ function yn(e, t, n, o, s) {
|
|
|
1721
1710
|
}
|
|
1722
1711
|
function ut(e, t, n, o, s, l) {
|
|
1723
1712
|
for (let c = 0; c < n.length; c++) {
|
|
1724
|
-
const i = n[c], h =
|
|
1713
|
+
const i = n[c], h = G(c, o);
|
|
1725
1714
|
e.hasId(k(t, i)) && s.push(h), it(i, l) && ut(e, t, k(l, i), h, s, l);
|
|
1726
1715
|
}
|
|
1727
1716
|
}
|
|
1728
1717
|
export {
|
|
1729
|
-
|
|
1718
|
+
Jn as AsyncFocusBlur,
|
|
1730
1719
|
Ke as BrowserSupportService,
|
|
1731
1720
|
X as COLLECTION_ACTION,
|
|
1732
1721
|
cn as DragAndDrop,
|
|
1733
1722
|
an as Draggable,
|
|
1734
1723
|
un as Droppable,
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1724
|
+
or as FOCUSABLE_ELEMENTS,
|
|
1725
|
+
On as FormComponent,
|
|
1726
|
+
me as Icon,
|
|
1738
1727
|
Yt as IconWrap,
|
|
1739
1728
|
st as IconsContext,
|
|
1740
|
-
|
|
1741
|
-
|
|
1729
|
+
Rn as Keys,
|
|
1730
|
+
sr as Navigation,
|
|
1742
1731
|
gn as SortedPublicItemIds,
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1732
|
+
ve as SvgIcon,
|
|
1733
|
+
ar as TreeFieldsService,
|
|
1734
|
+
tr as Typography,
|
|
1735
|
+
Yn as WatermarkOverlay,
|
|
1747
1736
|
qe as ZIndexContext,
|
|
1748
1737
|
yn as addItem,
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1738
|
+
gr as areAllDirectChildrenChecked,
|
|
1739
|
+
fe as canUseDOM,
|
|
1740
|
+
wn as canUseRef,
|
|
1752
1741
|
We as classNames,
|
|
1753
|
-
|
|
1742
|
+
Pn as clone,
|
|
1754
1743
|
wt as cloneArray,
|
|
1755
1744
|
At as cloneDate,
|
|
1756
1745
|
_e as cloneObject,
|
|
1757
1746
|
$e as cloneValue,
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1747
|
+
Un as createPropsContext,
|
|
1748
|
+
Gn as dispatchEvent,
|
|
1749
|
+
jn as extendDataItem,
|
|
1750
|
+
In as focusFirstFocusableChild,
|
|
1751
|
+
lr as getActiveElement,
|
|
1752
|
+
hr as getAllDirectIndirectChildrenIds,
|
|
1753
|
+
mr as getAllParents,
|
|
1754
|
+
de as getInnerActiveElement,
|
|
1755
|
+
Qn as getItemPath,
|
|
1767
1756
|
k as getNestedValue,
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1757
|
+
Ln as getScrollbarWidth,
|
|
1758
|
+
Mn as getTabIndex,
|
|
1759
|
+
Sn as getter,
|
|
1760
|
+
Xe as guid,
|
|
1772
1761
|
it as hasChildren,
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1762
|
+
Xn as hasRelativeStackingContext,
|
|
1763
|
+
cr as isArray,
|
|
1764
|
+
fr as isEnabledAndAllParentsEnabled,
|
|
1765
|
+
ur as isItemExpandedAndWithChildren,
|
|
1766
|
+
nr as kendoThemeMaps,
|
|
1767
|
+
Hn as mapTree,
|
|
1768
|
+
Bn as mapTreeItem,
|
|
1769
|
+
rr as memoizeOne,
|
|
1781
1770
|
C as noop,
|
|
1782
1771
|
xn as removeItem,
|
|
1783
|
-
|
|
1772
|
+
dr as resolveItemId,
|
|
1784
1773
|
En as resolveItemsIds,
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1774
|
+
Tn as setScrollbarWidth,
|
|
1775
|
+
Nn as setter,
|
|
1776
|
+
Fn as shouldShowValidationUI,
|
|
1777
|
+
er as svgIconPropType,
|
|
1789
1778
|
Qt as toIconClass,
|
|
1790
|
-
|
|
1791
|
-
|
|
1779
|
+
$n as toIconName,
|
|
1780
|
+
ir as treeIdUtils,
|
|
1792
1781
|
bn as updateItem,
|
|
1793
1782
|
Lt as useAsyncFocusBlur,
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1783
|
+
Je as useCollection,
|
|
1784
|
+
Wn as useCustomComponent,
|
|
1785
|
+
qn as useDir,
|
|
1797
1786
|
jt as useDocument,
|
|
1798
1787
|
Ft as useDraggable,
|
|
1799
1788
|
Xt as useDroppable,
|
|
@@ -1801,10 +1790,10 @@ export {
|
|
|
1801
1790
|
Nt as useIsomorphicLayoutEffect,
|
|
1802
1791
|
Bt as useMouse,
|
|
1803
1792
|
Tt as usePropsContext,
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1793
|
+
Kn as useRtl,
|
|
1794
|
+
_n as useWindow,
|
|
1795
|
+
An as useZIndexContext,
|
|
1796
|
+
zn as validatePackage,
|
|
1797
|
+
Vn as withIdHOC,
|
|
1798
|
+
Zn as withPropsContext
|
|
1810
1799
|
};
|