@progress/kendo-react-common 7.1.0-develop.9 → 7.1.0
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/NOTICE.txt +11 -18
- package/dist/cdn/js/kendo-react-common.js +1 -1
- package/hooks/useCustomComponent.d.ts +4 -6
- package/index.js +1 -1
- package/index.mjs +171 -162
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { validatePackage as Ve } from "@progress/kendo-licensing";
|
|
|
8
8
|
import * as bt from "react-dom";
|
|
9
9
|
import g from "prop-types";
|
|
10
10
|
import { dispatchDragAndDrop as xt, getScrollableParent as Fe, autoScroll as yt } from "@progress/kendo-draggable-common";
|
|
11
|
-
const qe = r.createContext(0),
|
|
11
|
+
const qe = r.createContext(0), Pn = () => r.useContext(qe);
|
|
12
12
|
qe.displayName = "KendoReactZIndexContext";
|
|
13
13
|
const pt = () => typeof document != "undefined" ? document : {};
|
|
14
14
|
class Ke {
|
|
@@ -28,13 +28,13 @@ const fe = !!// from fbjs
|
|
|
28
28
|
(typeof window != "undefined" && 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"), In = (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 On(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 Mn = (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 In = (e) => {
|
|
|
71
71
|
t && t.focus && t.focus();
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
class
|
|
74
|
+
class Sn {
|
|
75
75
|
}
|
|
76
|
-
const Pt = -1, It = 0,
|
|
76
|
+
const Pt = -1, It = 0, Rn = (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 Ln(e) {
|
|
91
91
|
if (z[e])
|
|
92
92
|
return z[e];
|
|
93
93
|
const t = et(e);
|
|
@@ -103,7 +103,7 @@ const Xe = () => {
|
|
|
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
|
+
}, Tn = {
|
|
107
107
|
backspace: 8,
|
|
108
108
|
tab: 9,
|
|
109
109
|
enter: 13,
|
|
@@ -120,7 +120,7 @@ const Xe = () => {
|
|
|
120
120
|
down: 40,
|
|
121
121
|
delete: 46
|
|
122
122
|
}, C = function() {
|
|
123
|
-
},
|
|
123
|
+
}, Nn = () => !fe || !document.body ? !1 : new Ke().scrollbarWidth, Hn = () => {
|
|
124
124
|
if (!fe || !document.body)
|
|
125
125
|
return !1;
|
|
126
126
|
let e = new Ke().scrollbarWidth;
|
|
@@ -128,7 +128,7 @@ const Xe = () => {
|
|
|
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 Bn(e) {
|
|
132
132
|
if (F[e])
|
|
133
133
|
return F[e];
|
|
134
134
|
const t = et(e);
|
|
@@ -150,19 +150,19 @@ function tt(e, t, n) {
|
|
|
150
150
|
}
|
|
151
151
|
return n(e);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const jn = (e, t, n) => [...e.map((o) => tt(o, t, n))], Qn = (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
|
+
}, zn = (e, t, n) => Object.assign(
|
|
161
161
|
{},
|
|
162
162
|
e,
|
|
163
163
|
e[t] ? { [t]: e[t].slice() } : {},
|
|
164
164
|
n || {}
|
|
165
|
-
),
|
|
165
|
+
), Fn = (e, t, n) => {
|
|
166
166
|
const o = [], s = [...t];
|
|
167
167
|
if (s.length) {
|
|
168
168
|
let l = e[s.shift() || 0];
|
|
@@ -170,14 +170,14 @@ const Hn = (e, t, n) => [...e.map((o) => tt(o, t, n))], Bn = (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
|
|
173
|
+
}, St = ["telerik.com", "progress.com", "stackblitz.io", "csb.app"], Xn = Ve;
|
|
174
|
+
function Yn(e) {
|
|
175
175
|
return !St.some((n) => {
|
|
176
176
|
var o;
|
|
177
177
|
return (o = globalThis.document) == null ? void 0 : o.location.hostname.endsWith(n);
|
|
178
178
|
}) && !Ve(e);
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const Gn = (e) => {
|
|
181
181
|
if (!fe)
|
|
182
182
|
return !1;
|
|
183
183
|
const t = e ? e.ownerDocument : document;
|
|
@@ -191,7 +191,7 @@ const Xn = (e) => {
|
|
|
191
191
|
return t.body.removeChild(o), l;
|
|
192
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";
|
|
193
193
|
let Ge = !1;
|
|
194
|
-
const
|
|
194
|
+
const Jn = () => {
|
|
195
195
|
const [e, t] = r.useState(!0), [n, o] = r.useState(!1);
|
|
196
196
|
r.useEffect(() => {
|
|
197
197
|
Ge || (o(!0), Ge = !0);
|
|
@@ -269,7 +269,7 @@ const Yn = () => {
|
|
|
269
269
|
}
|
|
270
270
|
), n && bt.createPortal(l, document.body));
|
|
271
271
|
};
|
|
272
|
-
function
|
|
272
|
+
function Un(e, t, n, o) {
|
|
273
273
|
if (e) {
|
|
274
274
|
const s = {
|
|
275
275
|
syntheticEvent: t,
|
|
@@ -305,7 +305,7 @@ function Lt({ onFocus: e, onBlur: t, onSyncFocus: n, onSyncBlur: o }) {
|
|
|
305
305
|
onBlur: h
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const Zn = ({
|
|
309
309
|
children: e,
|
|
310
310
|
onFocus: t,
|
|
311
311
|
onBlur: n,
|
|
@@ -314,7 +314,7 @@ const Jn = ({
|
|
|
314
314
|
}) => {
|
|
315
315
|
const l = Lt({ onFocus: t, onBlur: n, onSyncFocus: o, onSyncBlur: s });
|
|
316
316
|
return /* @__PURE__ */ r.createElement(r.Fragment, null, e.call(void 0, { ...l }));
|
|
317
|
-
}, Tt = (e, t) => r.useContext(e)(t),
|
|
317
|
+
}, Tt = (e, t) => r.useContext(e)(t), Vn = () => r.createContext((e) => e), qn = (e, t) => r.forwardRef((n, o) => {
|
|
318
318
|
const s = Tt(e, n);
|
|
319
319
|
return /* @__PURE__ */ r.createElement(t, { ...s, ref: o });
|
|
320
320
|
}), Nt = typeof window != "undefined" ? r.useLayoutEffect : r.useEffect;
|
|
@@ -333,11 +333,11 @@ function Ht(e) {
|
|
|
333
333
|
o === void 0 && s(Xe());
|
|
334
334
|
}, []), r.useId ? e != null ? e : r.useId() : o;
|
|
335
335
|
}
|
|
336
|
-
const
|
|
336
|
+
const Kn = (e) => r.forwardRef((t, n) => {
|
|
337
337
|
const o = Ht(t.id);
|
|
338
338
|
return /* @__PURE__ */ r.createElement(e, { ...t, id: o, ref: n });
|
|
339
339
|
});
|
|
340
|
-
function
|
|
340
|
+
function Wn(e, t, n) {
|
|
341
341
|
const [o, s] = r.useState(t);
|
|
342
342
|
return r.useEffect(
|
|
343
343
|
() => {
|
|
@@ -349,7 +349,7 @@ function qn(e, t, n) {
|
|
|
349
349
|
n
|
|
350
350
|
), o;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function _n(e, t, n) {
|
|
353
353
|
const [o, s] = r.useState(t);
|
|
354
354
|
return r.useEffect(
|
|
355
355
|
() => {
|
|
@@ -446,7 +446,16 @@ const Bt = (e, t, n = {}) => {
|
|
|
446
446
|
onMouseOut: d,
|
|
447
447
|
onMouseOver: m
|
|
448
448
|
};
|
|
449
|
-
},
|
|
449
|
+
}, jt = () => null, Qt = ({ children: e }) => e, $n = (e) => {
|
|
450
|
+
if (e) {
|
|
451
|
+
if (e === r.Fragment)
|
|
452
|
+
return [Qt, {}];
|
|
453
|
+
if (r.isValidElement(e))
|
|
454
|
+
return [e.type, e.props];
|
|
455
|
+
} else
|
|
456
|
+
return [jt, {}];
|
|
457
|
+
return [e, {}];
|
|
458
|
+
};
|
|
450
459
|
var X = /* @__PURE__ */ ((e) => (e[e.add = 0] = "add", e[e.remove = 1] = "remove", e))(X || {});
|
|
451
460
|
const Je = (e = []) => {
|
|
452
461
|
const t = r.useRef(e), n = r.useCallback(
|
|
@@ -465,7 +474,7 @@ const Je = (e = []) => {
|
|
|
465
474
|
[]
|
|
466
475
|
);
|
|
467
476
|
return [t.current, n];
|
|
468
|
-
},
|
|
477
|
+
}, zt = (e) => {
|
|
469
478
|
const t = r.useCallback(
|
|
470
479
|
() => e.current && e.current.element ? e.current.element : e.current,
|
|
471
480
|
[e]
|
|
@@ -474,8 +483,8 @@ const Je = (e = []) => {
|
|
|
474
483
|
const o = t();
|
|
475
484
|
return o && o.ownerDocument || document;
|
|
476
485
|
}, [t]);
|
|
477
|
-
},
|
|
478
|
-
const t =
|
|
486
|
+
}, er = (e) => {
|
|
487
|
+
const t = zt(e);
|
|
479
488
|
return r.useCallback(() => {
|
|
480
489
|
const o = t();
|
|
481
490
|
return o && o.defaultView || window;
|
|
@@ -489,7 +498,7 @@ const Je = (e = []) => {
|
|
|
489
498
|
xlarge: "k-icon-xl",
|
|
490
499
|
xxlarge: "k-icon-xxl",
|
|
491
500
|
xxxlarge: "k-icon-xxxl"
|
|
492
|
-
},
|
|
501
|
+
}, tr = (e) => e.replace(/^k-i-/, ""), Ft = (e) => "k-i-" + e, nr = g.shape({
|
|
493
502
|
name: g.string.isRequired,
|
|
494
503
|
content: g.string.isRequired,
|
|
495
504
|
viewBox: g.string.isRequired
|
|
@@ -507,8 +516,8 @@ const Je = (e = []) => {
|
|
|
507
516
|
]), he = r.createContext([
|
|
508
517
|
void 0,
|
|
509
518
|
C
|
|
510
|
-
]), ot = r.createContext([[], C, C]), ge = r.createContext([[], C, C]),
|
|
511
|
-
function
|
|
519
|
+
]), ot = r.createContext([[], C, C]), ge = r.createContext([[], C, C]), Xt = 2e3;
|
|
520
|
+
function Yt(e, t, n = {}) {
|
|
512
521
|
const {
|
|
513
522
|
onPress: o = C,
|
|
514
523
|
onRelease: s = C,
|
|
@@ -732,7 +741,7 @@ function Ft(e, t, n = {}) {
|
|
|
732
741
|
const b = N();
|
|
733
742
|
K.current = !0, xe.current = b.setTimeout(() => {
|
|
734
743
|
K.current = !1;
|
|
735
|
-
},
|
|
744
|
+
}, Xt);
|
|
736
745
|
}
|
|
737
746
|
v(a);
|
|
738
747
|
},
|
|
@@ -798,7 +807,7 @@ function Ft(e, t, n = {}) {
|
|
|
798
807
|
W.current = !0;
|
|
799
808
|
}), []), r.useLayoutEffect(ze, [ze]);
|
|
800
809
|
}
|
|
801
|
-
function
|
|
810
|
+
function Gt(e, t = {
|
|
802
811
|
onDragEnter: C,
|
|
803
812
|
onDragOver: C,
|
|
804
813
|
onDragLeave: C,
|
|
@@ -882,7 +891,7 @@ const Ue = (e, t, n) => {
|
|
|
882
891
|
() => We(
|
|
883
892
|
"k-icon",
|
|
884
893
|
"k-font-icon",
|
|
885
|
-
o &&
|
|
894
|
+
o && Ft(o),
|
|
886
895
|
{
|
|
887
896
|
[`k-color-${s}`]: s,
|
|
888
897
|
"k-flip-h": y === "horizontal" || y === "both",
|
|
@@ -1043,7 +1052,7 @@ const V = {
|
|
|
1043
1052
|
ve.displayName = "KendoSvgIcon";
|
|
1044
1053
|
const st = r.createContext({ type: "svg" });
|
|
1045
1054
|
st.displayName = "KendoReactIconsContext";
|
|
1046
|
-
const
|
|
1055
|
+
const Jt = r.forwardRef((e, t) => {
|
|
1047
1056
|
var h, f;
|
|
1048
1057
|
const { type: n, icons: o } = r.useContext(st), { icon: s, ...l } = e;
|
|
1049
1058
|
let c = n === "svg" ? ((h = e.icon) == null ? void 0 : h.name) || e.name : e.name || ((f = e.icon) == null ? void 0 : f.name);
|
|
@@ -1051,18 +1060,18 @@ const Yt = r.forwardRef((e, t) => {
|
|
|
1051
1060
|
const i = c && o && o[c] && typeof o[c] != "string" ? o[c] : s;
|
|
1052
1061
|
return n === "svg" && i ? /* @__PURE__ */ r.createElement(ve, { ...e, icon: i, ref: t }) : /* @__PURE__ */ r.createElement(me, { ...l, name: c, ref: t });
|
|
1053
1062
|
});
|
|
1054
|
-
|
|
1055
|
-
const
|
|
1063
|
+
Jt.displayName = "KendoIconWrap";
|
|
1064
|
+
const Ut = {
|
|
1056
1065
|
xsmall: "k-fs-xs",
|
|
1057
1066
|
small: "k-fs-sm",
|
|
1058
1067
|
medium: "k-fs-md",
|
|
1059
1068
|
large: "k-fs-lg",
|
|
1060
1069
|
xlarge: "k-fs-xl"
|
|
1061
|
-
},
|
|
1070
|
+
}, Zt = {
|
|
1062
1071
|
light: "k-font-weight-light",
|
|
1063
1072
|
normal: "k-font-weight-normal",
|
|
1064
1073
|
bold: "k-font-weight-bold"
|
|
1065
|
-
},
|
|
1074
|
+
}, Vt = {
|
|
1066
1075
|
xsmall: "k-m-xs",
|
|
1067
1076
|
small: "k-m-sm",
|
|
1068
1077
|
medium: "k-m-md",
|
|
@@ -1070,7 +1079,7 @@ const Gt = {
|
|
|
1070
1079
|
xlarge: "k-m-xl",
|
|
1071
1080
|
thin: "k-m-thin",
|
|
1072
1081
|
hair: "k-m-hair"
|
|
1073
|
-
},
|
|
1082
|
+
}, qt = {
|
|
1074
1083
|
xsmall: "xs",
|
|
1075
1084
|
small: "sm",
|
|
1076
1085
|
medium: "md",
|
|
@@ -1078,21 +1087,21 @@ const Gt = {
|
|
|
1078
1087
|
xlarge: "xl",
|
|
1079
1088
|
thin: "thin",
|
|
1080
1089
|
hair: "hair"
|
|
1081
|
-
},
|
|
1090
|
+
}, Kt = {
|
|
1082
1091
|
top: "k-mt-",
|
|
1083
1092
|
right: "k-mr-",
|
|
1084
1093
|
bottom: "k-mb-",
|
|
1085
1094
|
left: "k-ml-"
|
|
1086
|
-
},
|
|
1095
|
+
}, Wt = {
|
|
1087
1096
|
left: "k-text-left",
|
|
1088
1097
|
right: "k-text-right",
|
|
1089
1098
|
center: "k-text-center",
|
|
1090
1099
|
justify: "k-text-justify"
|
|
1091
|
-
},
|
|
1100
|
+
}, _t = {
|
|
1092
1101
|
lowercase: "k-text-lowercase",
|
|
1093
1102
|
uppercase: "k-text-uppercase",
|
|
1094
1103
|
capitalize: "k-text-capitalize"
|
|
1095
|
-
},
|
|
1104
|
+
}, $t = {
|
|
1096
1105
|
inherit: "k-color-inherit",
|
|
1097
1106
|
primary: "k-color-primary",
|
|
1098
1107
|
secondary: "k-color-secondary",
|
|
@@ -1126,12 +1135,12 @@ const Gt = {
|
|
|
1126
1135
|
})
|
|
1127
1136
|
), r.useImperativeHandle(o, () => y.current);
|
|
1128
1137
|
const E = () => `k-${e === "p" ? "paragraph" : e}`, R = e, M = (P, O) => {
|
|
1129
|
-
const p = typeof O == "string" ?
|
|
1130
|
-
return `${
|
|
1138
|
+
const p = typeof O == "string" ? qt[O] : O;
|
|
1139
|
+
return `${Kt[P]}${p}`;
|
|
1131
1140
|
}, T = () => {
|
|
1132
1141
|
if (u !== void 0) {
|
|
1133
1142
|
if (typeof u == "string")
|
|
1134
|
-
return [
|
|
1143
|
+
return [Vt[u]];
|
|
1135
1144
|
if (typeof u == "number" && u >= 0 && u <= 24)
|
|
1136
1145
|
return [`k-m-${u}`];
|
|
1137
1146
|
if (typeof u == "object") {
|
|
@@ -1143,11 +1152,11 @@ const Gt = {
|
|
|
1143
1152
|
}
|
|
1144
1153
|
}, I = () => [
|
|
1145
1154
|
E(),
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1155
|
+
Ut[i],
|
|
1156
|
+
Zt[h],
|
|
1157
|
+
Wt[f],
|
|
1158
|
+
_t[d],
|
|
1159
|
+
$t[m],
|
|
1151
1160
|
T(),
|
|
1152
1161
|
c
|
|
1153
1162
|
].filter((p) => p !== void 0).join(" ");
|
|
@@ -1189,17 +1198,17 @@ const Gt = {
|
|
|
1189
1198
|
"inverse"
|
|
1190
1199
|
])
|
|
1191
1200
|
}, t.displayName = `KendoReactTypography${e.toUpperCase()}`, t;
|
|
1192
|
-
},
|
|
1193
|
-
h1:
|
|
1194
|
-
h2:
|
|
1195
|
-
h3:
|
|
1196
|
-
h4:
|
|
1197
|
-
h5:
|
|
1198
|
-
h6:
|
|
1199
|
-
p:
|
|
1200
|
-
code:
|
|
1201
|
-
pre:
|
|
1202
|
-
},
|
|
1201
|
+
}, en = S("h1"), tn = S("h2"), nn = S("h3"), rn = S("h4"), on = S("h5"), sn = S("h6"), ln = S("p"), cn = S("code"), an = S("pre"), rr = {
|
|
1202
|
+
h1: en,
|
|
1203
|
+
h2: tn,
|
|
1204
|
+
h3: nn,
|
|
1205
|
+
h4: rn,
|
|
1206
|
+
h5: on,
|
|
1207
|
+
h6: sn,
|
|
1208
|
+
p: ln,
|
|
1209
|
+
code: cn,
|
|
1210
|
+
pre: an
|
|
1211
|
+
}, un = (e) => {
|
|
1203
1212
|
const [t, n] = Ue(
|
|
1204
1213
|
null,
|
|
1205
1214
|
void 0
|
|
@@ -1229,8 +1238,8 @@ const Gt = {
|
|
|
1229
1238
|
};
|
|
1230
1239
|
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))));
|
|
1231
1240
|
};
|
|
1232
|
-
|
|
1233
|
-
const
|
|
1241
|
+
un.displayName = "KendoReactDragAndDrop";
|
|
1242
|
+
const dn = r.forwardRef((e, t) => {
|
|
1234
1243
|
const n = r.useRef(null), o = r.useRef(null), s = r.useCallback(
|
|
1235
1244
|
() => n.current && n.current.element ? n.current.element : n.current,
|
|
1236
1245
|
[n]
|
|
@@ -1282,7 +1291,7 @@ const an = r.forwardRef((e, t) => {
|
|
|
1282
1291
|
},
|
|
1283
1292
|
[s, e.onDragEnd]
|
|
1284
1293
|
);
|
|
1285
|
-
return
|
|
1294
|
+
return Yt(n, {
|
|
1286
1295
|
onPress: l,
|
|
1287
1296
|
onRelease: c,
|
|
1288
1297
|
onDragStart: i,
|
|
@@ -1295,8 +1304,8 @@ const an = r.forwardRef((e, t) => {
|
|
|
1295
1304
|
scrollContainer: e.scrollContainer
|
|
1296
1305
|
}), e.children ? r.cloneElement(r.Children.only(e.children), { ref: n }) : null;
|
|
1297
1306
|
});
|
|
1298
|
-
|
|
1299
|
-
const
|
|
1307
|
+
dn.displayName = "KendoReactDraggable";
|
|
1308
|
+
const fn = r.forwardRef((e, t) => {
|
|
1300
1309
|
const n = r.useRef(null), o = r.useRef(null), s = r.useCallback(
|
|
1301
1310
|
() => n.current && n.current.element ? n.current.element : n.current,
|
|
1302
1311
|
[n]
|
|
@@ -1339,15 +1348,15 @@ const un = r.forwardRef((e, t) => {
|
|
|
1339
1348
|
},
|
|
1340
1349
|
[e.onDrop, s]
|
|
1341
1350
|
);
|
|
1342
|
-
return
|
|
1351
|
+
return Gt(n, {
|
|
1343
1352
|
onDragEnter: l,
|
|
1344
1353
|
onDragOver: c,
|
|
1345
1354
|
onDragLeave: i,
|
|
1346
1355
|
onDrop: h
|
|
1347
1356
|
}), e.children ? r.cloneElement(r.Children.only(e.children), { ref: n }) : null;
|
|
1348
1357
|
});
|
|
1349
|
-
|
|
1350
|
-
const
|
|
1358
|
+
fn.displayName = "KendoReactDroppable";
|
|
1359
|
+
const or = {
|
|
1351
1360
|
sizeMap: {
|
|
1352
1361
|
small: "sm",
|
|
1353
1362
|
medium: "md",
|
|
@@ -1363,18 +1372,18 @@ const nr = {
|
|
|
1363
1372
|
horizontal: "hstack"
|
|
1364
1373
|
}
|
|
1365
1374
|
};
|
|
1366
|
-
function
|
|
1375
|
+
function hn(e, t) {
|
|
1367
1376
|
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
1368
1377
|
}
|
|
1369
|
-
function
|
|
1378
|
+
function gn(e, t) {
|
|
1370
1379
|
if (e.length !== t.length)
|
|
1371
1380
|
return !1;
|
|
1372
1381
|
for (let n = 0; n < e.length; n++)
|
|
1373
|
-
if (!
|
|
1382
|
+
if (!hn(e[n], t[n]))
|
|
1374
1383
|
return !1;
|
|
1375
1384
|
return !0;
|
|
1376
1385
|
}
|
|
1377
|
-
function
|
|
1386
|
+
function sr(e, t = gn) {
|
|
1378
1387
|
let n = null;
|
|
1379
1388
|
function o(...s) {
|
|
1380
1389
|
if (n && n.lastThis === this && t(s, n.lastArgs))
|
|
@@ -1390,7 +1399,7 @@ function rr(e, t = fn) {
|
|
|
1390
1399
|
n = null;
|
|
1391
1400
|
}, o;
|
|
1392
1401
|
}
|
|
1393
|
-
const
|
|
1402
|
+
const lr = [
|
|
1394
1403
|
"input:not([disabled]):not([type=hidden])",
|
|
1395
1404
|
"select:not([disabled])",
|
|
1396
1405
|
"textarea:not([disabled])",
|
|
@@ -1405,7 +1414,7 @@ const or = [
|
|
|
1405
1414
|
"video[controls]",
|
|
1406
1415
|
"[contenteditable]"
|
|
1407
1416
|
];
|
|
1408
|
-
class
|
|
1417
|
+
class cr {
|
|
1409
1418
|
constructor(t) {
|
|
1410
1419
|
this.rovingTabIndex = !0, this.update = () => {
|
|
1411
1420
|
}, this.focusNextIndex = (n, o) => {
|
|
@@ -1477,7 +1486,7 @@ class sr {
|
|
|
1477
1486
|
const de = (e) => {
|
|
1478
1487
|
const t = e.shadowRoot, n = e.contentDocument;
|
|
1479
1488
|
return t && t.activeElement ? de(t.activeElement) : n && n.activeElement ? de(n.activeElement) : e;
|
|
1480
|
-
},
|
|
1489
|
+
}, ar = (e) => {
|
|
1481
1490
|
if (!(!e || !e.activeElement))
|
|
1482
1491
|
return de(e.activeElement);
|
|
1483
1492
|
};
|
|
@@ -1488,10 +1497,10 @@ function k(e, t) {
|
|
|
1488
1497
|
o = o ? o[s] : void 0;
|
|
1489
1498
|
}), o;
|
|
1490
1499
|
}
|
|
1491
|
-
function
|
|
1500
|
+
function ir(e) {
|
|
1492
1501
|
return e.length !== void 0;
|
|
1493
1502
|
}
|
|
1494
|
-
class
|
|
1503
|
+
class ur {
|
|
1495
1504
|
constructor(t) {
|
|
1496
1505
|
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;
|
|
1497
1506
|
}
|
|
@@ -1527,15 +1536,15 @@ class ar {
|
|
|
1527
1536
|
return this.childrenField;
|
|
1528
1537
|
}
|
|
1529
1538
|
}
|
|
1530
|
-
const
|
|
1531
|
-
class
|
|
1539
|
+
const mn = 5e4;
|
|
1540
|
+
class vn {
|
|
1532
1541
|
constructor() {
|
|
1533
1542
|
this.objects = [];
|
|
1534
1543
|
}
|
|
1535
1544
|
init(t) {
|
|
1536
1545
|
let n;
|
|
1537
1546
|
for (let o = 0; o < t.length; o++)
|
|
1538
|
-
o %
|
|
1547
|
+
o % mn === 0 && (n = {}, this.objects.push(n)), n[t[o]] = !0;
|
|
1539
1548
|
}
|
|
1540
1549
|
hasId(t) {
|
|
1541
1550
|
return this.objects.some((n) => n[t]);
|
|
@@ -1561,7 +1570,7 @@ function B(e) {
|
|
|
1561
1570
|
return e.substring(t + 1);
|
|
1562
1571
|
}
|
|
1563
1572
|
}
|
|
1564
|
-
function
|
|
1573
|
+
function Cn(e) {
|
|
1565
1574
|
return G("0", e);
|
|
1566
1575
|
}
|
|
1567
1576
|
function G(e, t) {
|
|
@@ -1584,10 +1593,10 @@ function be(e) {
|
|
|
1584
1593
|
const t = e.lastIndexOf(A);
|
|
1585
1594
|
return t < 0 ? e : e.substring(t + 1);
|
|
1586
1595
|
}
|
|
1587
|
-
function
|
|
1596
|
+
function En(e) {
|
|
1588
1597
|
return be(e) === lt;
|
|
1589
1598
|
}
|
|
1590
|
-
function
|
|
1599
|
+
function bn(e, t) {
|
|
1591
1600
|
const n = t;
|
|
1592
1601
|
e = "r" + A + e, t = "r" + A + t;
|
|
1593
1602
|
const o = at(e) + A;
|
|
@@ -1603,47 +1612,47 @@ function Cn(e, t) {
|
|
|
1603
1612
|
}
|
|
1604
1613
|
return n;
|
|
1605
1614
|
}
|
|
1606
|
-
const
|
|
1615
|
+
const dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1607
1616
|
__proto__: null,
|
|
1608
1617
|
EMPTY_ID: Y,
|
|
1609
1618
|
SEPARATOR: A,
|
|
1610
1619
|
ZERO_LEVEL_ZERO_NODE_ID: lt,
|
|
1611
1620
|
createId: G,
|
|
1612
1621
|
getAllShortIds: Ee,
|
|
1613
|
-
getDecrementedItemIdAfterRemoval:
|
|
1622
|
+
getDecrementedItemIdAfterRemoval: bn,
|
|
1614
1623
|
getDirectParentId: at,
|
|
1615
|
-
getFirstChildId:
|
|
1624
|
+
getFirstChildId: Cn,
|
|
1616
1625
|
getIdWithoutRootParentId: B,
|
|
1617
1626
|
getItemById: ct,
|
|
1618
1627
|
getRootParentId: H,
|
|
1619
1628
|
getShortId: be,
|
|
1620
1629
|
isIdEmptyOrZeroLevel: Ce,
|
|
1621
1630
|
isIdZeroLevel: J,
|
|
1622
|
-
isItemFirstFromSiblings:
|
|
1631
|
+
isItemFirstFromSiblings: En
|
|
1623
1632
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1624
1633
|
function it(e, t) {
|
|
1625
1634
|
const n = k(t, e);
|
|
1626
1635
|
return !!(n && n.length);
|
|
1627
1636
|
}
|
|
1628
|
-
function
|
|
1637
|
+
function fr(e, t) {
|
|
1629
1638
|
return t.expanded(e) && it(e, t.getChildrenField());
|
|
1630
1639
|
}
|
|
1631
|
-
function
|
|
1632
|
-
const s =
|
|
1640
|
+
function hr(e, t, n, o) {
|
|
1641
|
+
const s = xn([e], t, n, o);
|
|
1633
1642
|
return s.length ? s[0] : void 0;
|
|
1634
1643
|
}
|
|
1635
|
-
function
|
|
1636
|
-
const s = [], l = new
|
|
1644
|
+
function xn(e, t, n, o) {
|
|
1645
|
+
const s = [], l = new vn();
|
|
1637
1646
|
return l.init(e), ut(l, t, n, Y, s, o), s;
|
|
1638
1647
|
}
|
|
1639
|
-
function
|
|
1648
|
+
function yn(e, t, n, o, s) {
|
|
1640
1649
|
const l = Number(H(t));
|
|
1641
1650
|
if (l >= e.length)
|
|
1642
1651
|
return e;
|
|
1643
1652
|
let c = e, i = e[l];
|
|
1644
|
-
return i[o] || (c = e.slice(), i = c[l] = Object.assign({}, i, { [o]: !0 })), J(t) ? n(i) : i[s] && (i[s] =
|
|
1653
|
+
return i[o] || (c = e.slice(), i = c[l] = Object.assign({}, i, { [o]: !0 })), J(t) ? n(i) : i[s] && (i[s] = yn(i[s], B(t), n, o, s)), c;
|
|
1645
1654
|
}
|
|
1646
|
-
function
|
|
1655
|
+
function gr(e, t, n) {
|
|
1647
1656
|
const o = Ee(e);
|
|
1648
1657
|
let s = t;
|
|
1649
1658
|
for (let l = 0; l < o.length; l++) {
|
|
@@ -1654,7 +1663,7 @@ function fr(e, t, n) {
|
|
|
1654
1663
|
}
|
|
1655
1664
|
return !0;
|
|
1656
1665
|
}
|
|
1657
|
-
function
|
|
1666
|
+
function mr(e, t, n, o) {
|
|
1658
1667
|
return o ? l(e) : s(e, t);
|
|
1659
1668
|
function s(c, i) {
|
|
1660
1669
|
let h = [];
|
|
@@ -1673,10 +1682,10 @@ function hr(e, t, n, o) {
|
|
|
1673
1682
|
return i;
|
|
1674
1683
|
}
|
|
1675
1684
|
}
|
|
1676
|
-
function
|
|
1685
|
+
function vr(e, t, n, o, s) {
|
|
1677
1686
|
return (e[o] || []).every((c, i) => s.indexOf(n ? k(n, c) : G(i, t)) > -1);
|
|
1678
1687
|
}
|
|
1679
|
-
function
|
|
1688
|
+
function Cr(e, t, n) {
|
|
1680
1689
|
const o = [], s = Ee(e);
|
|
1681
1690
|
let l = n;
|
|
1682
1691
|
for (let c = 0; c < s.length - 1 && l; c++) {
|
|
@@ -1685,17 +1694,17 @@ function mr(e, t, n) {
|
|
|
1685
1694
|
}
|
|
1686
1695
|
return o;
|
|
1687
1696
|
}
|
|
1688
|
-
function
|
|
1697
|
+
function pn(e, t, n) {
|
|
1689
1698
|
const o = n.slice();
|
|
1690
1699
|
if (J(e))
|
|
1691
1700
|
o.splice(Number(e), 1);
|
|
1692
1701
|
else {
|
|
1693
1702
|
const s = Number(H(e)), l = o[s] = { ...o[s] };
|
|
1694
|
-
l[t] =
|
|
1703
|
+
l[t] = pn(B(e), t, l[t]);
|
|
1695
1704
|
}
|
|
1696
1705
|
return o;
|
|
1697
1706
|
}
|
|
1698
|
-
function
|
|
1707
|
+
function kn(e, t, n, o, s) {
|
|
1699
1708
|
const l = s.slice();
|
|
1700
1709
|
if (J(o))
|
|
1701
1710
|
if (t === "child") {
|
|
@@ -1705,7 +1714,7 @@ function yn(e, t, n, o, s) {
|
|
|
1705
1714
|
l.splice(Number(o) + (t === "after" ? 1 : 0), 0, e);
|
|
1706
1715
|
else {
|
|
1707
1716
|
const c = Number(H(o)), i = l[c] = { ...l[c] };
|
|
1708
|
-
i[n] =
|
|
1717
|
+
i[n] = kn(e, t, n, B(o), i[n]);
|
|
1709
1718
|
}
|
|
1710
1719
|
return l;
|
|
1711
1720
|
}
|
|
@@ -1716,85 +1725,85 @@ function ut(e, t, n, o, s, l) {
|
|
|
1716
1725
|
}
|
|
1717
1726
|
}
|
|
1718
1727
|
export {
|
|
1719
|
-
|
|
1728
|
+
Zn as AsyncFocusBlur,
|
|
1720
1729
|
Ke as BrowserSupportService,
|
|
1721
1730
|
X as COLLECTION_ACTION,
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1731
|
+
un as DragAndDrop,
|
|
1732
|
+
dn as Draggable,
|
|
1733
|
+
fn as Droppable,
|
|
1734
|
+
lr as FOCUSABLE_ELEMENTS,
|
|
1735
|
+
Sn as FormComponent,
|
|
1727
1736
|
me as Icon,
|
|
1728
|
-
|
|
1737
|
+
Jt as IconWrap,
|
|
1729
1738
|
st as IconsContext,
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1739
|
+
Tn as Keys,
|
|
1740
|
+
cr as Navigation,
|
|
1741
|
+
vn as SortedPublicItemIds,
|
|
1733
1742
|
ve as SvgIcon,
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1743
|
+
ur as TreeFieldsService,
|
|
1744
|
+
rr as Typography,
|
|
1745
|
+
Jn as WatermarkOverlay,
|
|
1737
1746
|
qe as ZIndexContext,
|
|
1738
|
-
|
|
1739
|
-
|
|
1747
|
+
kn as addItem,
|
|
1748
|
+
vr as areAllDirectChildrenChecked,
|
|
1740
1749
|
fe as canUseDOM,
|
|
1741
|
-
|
|
1750
|
+
In as canUseRef,
|
|
1742
1751
|
We as classNames,
|
|
1743
|
-
|
|
1752
|
+
On as clone,
|
|
1744
1753
|
wt as cloneArray,
|
|
1745
1754
|
At as cloneDate,
|
|
1746
1755
|
_e as cloneObject,
|
|
1747
1756
|
$e as cloneValue,
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1757
|
+
Vn as createPropsContext,
|
|
1758
|
+
Un as dispatchEvent,
|
|
1759
|
+
zn as extendDataItem,
|
|
1760
|
+
Mn as focusFirstFocusableChild,
|
|
1761
|
+
ar as getActiveElement,
|
|
1762
|
+
mr as getAllDirectIndirectChildrenIds,
|
|
1763
|
+
Cr as getAllParents,
|
|
1755
1764
|
de as getInnerActiveElement,
|
|
1756
|
-
|
|
1765
|
+
Fn as getItemPath,
|
|
1757
1766
|
k as getNestedValue,
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1767
|
+
Nn as getScrollbarWidth,
|
|
1768
|
+
Rn as getTabIndex,
|
|
1769
|
+
Ln as getter,
|
|
1761
1770
|
Xe as guid,
|
|
1762
1771
|
it as hasChildren,
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1772
|
+
Gn as hasRelativeStackingContext,
|
|
1773
|
+
ir as isArray,
|
|
1774
|
+
gr as isEnabledAndAllParentsEnabled,
|
|
1775
|
+
fr as isItemExpandedAndWithChildren,
|
|
1776
|
+
or as kendoThemeMaps,
|
|
1777
|
+
jn as mapTree,
|
|
1778
|
+
Qn as mapTreeItem,
|
|
1779
|
+
sr as memoizeOne,
|
|
1771
1780
|
C as noop,
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1781
|
+
pn as removeItem,
|
|
1782
|
+
hr as resolveItemId,
|
|
1783
|
+
xn as resolveItemsIds,
|
|
1784
|
+
Hn as setScrollbarWidth,
|
|
1785
|
+
Bn as setter,
|
|
1786
|
+
Yn as shouldShowValidationUI,
|
|
1787
|
+
nr as svgIconPropType,
|
|
1788
|
+
Ft as toIconClass,
|
|
1789
|
+
tr as toIconName,
|
|
1790
|
+
dr as treeIdUtils,
|
|
1791
|
+
yn as updateItem,
|
|
1783
1792
|
Lt as useAsyncFocusBlur,
|
|
1784
1793
|
Je as useCollection,
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1794
|
+
$n as useCustomComponent,
|
|
1795
|
+
Wn as useDir,
|
|
1796
|
+
zt as useDocument,
|
|
1797
|
+
Yt as useDraggable,
|
|
1798
|
+
Gt as useDroppable,
|
|
1790
1799
|
Ht as useId,
|
|
1791
1800
|
Nt as useIsomorphicLayoutEffect,
|
|
1792
1801
|
Bt as useMouse,
|
|
1793
1802
|
Tt as usePropsContext,
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1803
|
+
_n as useRtl,
|
|
1804
|
+
er as useWindow,
|
|
1805
|
+
Pn as useZIndexContext,
|
|
1806
|
+
Xn as validatePackage,
|
|
1807
|
+
Kn as withIdHOC,
|
|
1808
|
+
qn as withPropsContext
|
|
1800
1809
|
};
|