@progress/kendo-react-common 7.1.0-develop.9 → 7.1.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/NOTICE.txt +11 -18
- package/dist/cdn/js/kendo-react-common.js +1 -1
- package/hooks/use-isomorphic-layout-effect.d.ts +1 -1
- package/hooks/useCustomComponent.d.ts +4 -6
- package/index.js +1 -1
- package/index.mjs +364 -355
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
"use client";
|
|
6
6
|
import * as r from "react";
|
|
7
|
-
import { validatePackage as
|
|
8
|
-
import * as
|
|
7
|
+
import { validatePackage as qe } from "@progress/kendo-licensing";
|
|
8
|
+
import * as xt from "react-dom";
|
|
9
9
|
import g from "prop-types";
|
|
10
|
-
import { dispatchDragAndDrop as
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
class
|
|
10
|
+
import { dispatchDragAndDrop as pt, getScrollableParent as Xe, autoScroll as yt } from "@progress/kendo-draggable-common";
|
|
11
|
+
const Ke = r.createContext(0), Pn = () => r.useContext(Ke);
|
|
12
|
+
Ke.displayName = "KendoReactZIndexContext";
|
|
13
|
+
const kt = () => typeof document != "undefined" ? document : {};
|
|
14
|
+
class We {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.scrollbar = 0;
|
|
17
17
|
}
|
|
18
18
|
get scrollbarWidth() {
|
|
19
|
-
const t =
|
|
19
|
+
const t = kt();
|
|
20
20
|
if (!this.scrollbar && t && t.createElement) {
|
|
21
21
|
const n = t.createElement("div");
|
|
22
22
|
n.style.cssText = "overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block", n.innerHTML = " ", t.body.appendChild(n), this.scrollbar = n.offsetWidth - n.scrollWidth, t.body.removeChild(n);
|
|
@@ -25,43 +25,43 @@ class Ke {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
const fe = !!// from fbjs
|
|
28
|
-
(typeof window != "undefined" && window.document && window.document.createElement),
|
|
28
|
+
(typeof window != "undefined" && window.document && window.document.createElement), Dt = (e) => {
|
|
29
29
|
var t;
|
|
30
30
|
return !!(typeof e == "function" && ((t = e.prototype) != null && t.isReactComponent));
|
|
31
|
-
},
|
|
31
|
+
}, At = (e) => !!(e.$$typeof && typeof e.render == "function"), In = (e) => typeof Comment != "string" && (Dt(e) || At(e)), _e = (...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
|
-
},
|
|
37
|
-
function
|
|
36
|
+
}, wt = (e) => e ? new Date(e.getTime()) : null;
|
|
37
|
+
function On(e) {
|
|
38
38
|
const t = {};
|
|
39
|
-
return
|
|
39
|
+
return $e(e, t), t;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function $e(e, t) {
|
|
42
42
|
for (let n in e)
|
|
43
43
|
if (e.hasOwnProperty(n)) {
|
|
44
44
|
const o = e[n];
|
|
45
|
-
t[n] =
|
|
45
|
+
t[n] = et(o, t[n]);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function et(e, t) {
|
|
49
49
|
if (Array.isArray(e))
|
|
50
|
-
return
|
|
50
|
+
return Pt(e);
|
|
51
51
|
if (e instanceof Date)
|
|
52
|
-
return
|
|
52
|
+
return wt(e);
|
|
53
53
|
if (r.isValidElement(e))
|
|
54
54
|
return r.cloneElement(e, e.props);
|
|
55
55
|
if (e && typeof e == "object") {
|
|
56
56
|
const n = t || {};
|
|
57
|
-
return
|
|
57
|
+
return $e(e, n), n;
|
|
58
58
|
} else
|
|
59
59
|
return e;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
return e.map((t) =>
|
|
61
|
+
function Pt(e) {
|
|
62
|
+
return e.map((t) => et(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,26 +71,26 @@ const In = (e) => {
|
|
|
71
71
|
t && t.focus && t.focus();
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
class
|
|
74
|
+
class Sn {
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const It = -1, Ot = 0, Rn = (e, t, n) => {
|
|
77
77
|
const o = typeof e == "string" ? parseInt(e) : e;
|
|
78
78
|
if (!Number.isNaN(o))
|
|
79
|
-
return o !== void 0 ? o : t ? n ? void 0 :
|
|
80
|
-
},
|
|
81
|
-
function
|
|
79
|
+
return o !== void 0 ? o : t ? n ? void 0 : It : Ot;
|
|
80
|
+
}, Mt = /\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;
|
|
81
|
+
function tt(e) {
|
|
82
82
|
const t = [];
|
|
83
|
-
return e.replace(
|
|
83
|
+
return e.replace(Mt, function(n, o, s, l) {
|
|
84
84
|
t.push(o !== void 0 ? o : s || l);
|
|
85
85
|
}), t;
|
|
86
86
|
}
|
|
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
|
-
const t =
|
|
93
|
+
const t = tt(e);
|
|
94
94
|
return z[e] = function(n) {
|
|
95
95
|
let o = n;
|
|
96
96
|
for (let s = 0; s < t.length && o; s++)
|
|
@@ -98,12 +98,12 @@ function Sn(e) {
|
|
|
98
98
|
return o;
|
|
99
99
|
}, z[e];
|
|
100
100
|
}
|
|
101
|
-
const
|
|
101
|
+
const Ye = () => {
|
|
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
|
+
}, Tn = {
|
|
107
107
|
backspace: 8,
|
|
108
108
|
tab: 9,
|
|
109
109
|
enter: 13,
|
|
@@ -120,49 +120,49 @@ const Xe = () => {
|
|
|
120
120
|
down: 40,
|
|
121
121
|
delete: 46
|
|
122
122
|
}, C = function() {
|
|
123
|
-
},
|
|
123
|
+
}, Nn = () => !fe || !document.body ? !1 : new We().scrollbarWidth, Hn = () => {
|
|
124
124
|
if (!fe || !document.body)
|
|
125
125
|
return !1;
|
|
126
|
-
let e = new
|
|
126
|
+
let e = new We().scrollbarWidth;
|
|
127
127
|
document.body.style.setProperty("--kendo-scrollbar-width", `${e}px`);
|
|
128
128
|
}, F = {};
|
|
129
129
|
F.undefined = (e) => e;
|
|
130
|
-
const
|
|
131
|
-
function
|
|
130
|
+
const St = (e, t) => t && t.arrays && !isNaN(Number(e)) ? [] : {};
|
|
131
|
+
function Bn(e) {
|
|
132
132
|
if (F[e])
|
|
133
133
|
return F[e];
|
|
134
|
-
const t =
|
|
134
|
+
const t = tt(e);
|
|
135
135
|
return F[e] = (n, o, s) => {
|
|
136
136
|
let l = n;
|
|
137
137
|
const c = t.length - 1;
|
|
138
138
|
for (let i = 0; i < c && l; i++)
|
|
139
|
-
l = l[t[i]] = l[t[i]] ||
|
|
139
|
+
l = l[t[i]] = l[t[i]] || St(t[i + 1], s);
|
|
140
140
|
l[t[c]] = o;
|
|
141
141
|
}, F[e];
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Ge(e, t, n) {
|
|
144
144
|
return n ? { ...e, [t]: n.length ? [...n] : void 0 } : e && e[t] ? [...e[t]] : [];
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function nt(e, t, n) {
|
|
147
147
|
if (e[t]) {
|
|
148
|
-
let o =
|
|
149
|
-
return n(
|
|
148
|
+
let o = Ge(e, t).map((s) => nt(s, t, n));
|
|
149
|
+
return n(Ge(e, t, o));
|
|
150
150
|
}
|
|
151
151
|
return n(e);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const jn = (e, t, n) => [...e.map((o) => nt(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
|
-
},
|
|
174
|
-
function
|
|
175
|
-
return !
|
|
173
|
+
}, Rt = ["telerik.com", "progress.com", "stackblitz.io", "csb.app"], Xn = qe;
|
|
174
|
+
function Yn(e) {
|
|
175
|
+
return !Rt.some((n) => {
|
|
176
176
|
var o;
|
|
177
177
|
return (o = globalThis.document) == null ? void 0 : o.location.hostname.endsWith(n);
|
|
178
|
-
}) && !
|
|
178
|
+
}) && !qe(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;
|
|
@@ -189,12 +189,12 @@ const Xn = (e) => {
|
|
|
189
189
|
s.appendChild(t.createTextNode("child")), s.style.position = "fixed", s.style.top = n + "px", o.appendChild(s), t.body.appendChild(o);
|
|
190
190
|
const l = s.getBoundingClientRect().top !== n;
|
|
191
191
|
return t.body.removeChild(o), l;
|
|
192
|
-
},
|
|
193
|
-
let
|
|
194
|
-
const
|
|
192
|
+
}, Lt = "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
|
+
let Je = !1;
|
|
194
|
+
const Jn = () => {
|
|
195
195
|
const [e, t] = r.useState(!0), [n, o] = r.useState(!1);
|
|
196
196
|
r.useEffect(() => {
|
|
197
|
-
|
|
197
|
+
Je || (o(!0), Je = !0);
|
|
198
198
|
}, []);
|
|
199
199
|
const s = () => {
|
|
200
200
|
t(!1);
|
|
@@ -214,7 +214,7 @@ const Yn = () => {
|
|
|
214
214
|
backgroundColor: "#FFC000",
|
|
215
215
|
color: "#1E1E1E",
|
|
216
216
|
zIndex: 999
|
|
217
|
-
} }, /* @__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:
|
|
217
|
+
} }, /* @__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: Lt, style: { marginRight: "8px", display: "flex" } }, /* @__PURE__ */ r.createElement(
|
|
218
218
|
"button",
|
|
219
219
|
{
|
|
220
220
|
title: "Learn More",
|
|
@@ -267,9 +267,9 @@ const Yn = () => {
|
|
|
267
267
|
backgroundImage: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABVxSURBVHgB7Z3tVRtJE4WL9zgANgLLGRCCnAGOADmCxRGgDFAGYiOADKQMIAGO9J8ji42g37mjqlUjBgOanpn+uM85sjC2sKzbVd1dVV0tQgghhBBCCCGEEEIIKRPn3Gn1GAlJmmN1pP558J6OX9540ejh4WGlX09OTk7+EZIclXYXlY43+vVflY7PH3wd9c+AY/Wvvcb9/b0bjUYOz/hBQpICmh1oOPrEa6l/4rTR337AhIMgTSqtzg+0m8gnof7p0mD8EzmGhkFwJiR6np6e7luLL9Q/RTDTBzF+7wfWg2CxWOCHjYVET6XTdLPZrFuLL9Q/NeCkoVUQ4/d+6Ijev1yof1rAUVMvQgjJHebrSRu+CEmWo/O8hISgCjStKpgiGoDWed4AUP/hwGf++Pi4hQYyFHgDzBP3T7A8b0uo/zD4+sMBy1CwWKR/YjF+fS/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XAvuyKxbLgwktK/xNr+rsFqKpU8sa78Zlz5hSMZ/Znq6Y4UikVMf72oYyYkGNHrT+PvnpgHAVd+3ROt/jT+/ohxEFD//ohOf4rfPzENAurfP1E5AVzPRPH7xx8EuJ1WBoDGPxyH+ruhjlTjbnR9AxMhvYLPHA4YGkjPIMpP4x+WIfUnhYMZx2voMRFCSFlohVqR3XwIIaQc3O5OtrGQJFC9RkKKRCsyRxICi/YuFgvs986ERA3Eh1ahUkT4GQg0Vc9XQqInqP6ODRyTA046VJ7Y1x/XdgmJnmD6M8+bLiGKRVjemy6t9WeeN30aBsGHI/bUP33a6M88bybYIPjs9o3658Gx+tuLmefNgGN1pP55QB0JIYQQQgghhBBCCJGy+T9ftRg+rVNPfAAAAABJRU5ErkJggg==')"
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
), n &&
|
|
270
|
+
), n && xt.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,
|
|
@@ -279,7 +279,7 @@ function Gn(e, t, n, o) {
|
|
|
279
279
|
e.call(void 0, Object.assign(s, o));
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function Tt({ onFocus: e, onBlur: t, onSyncFocus: n, onSyncBlur: o }) {
|
|
283
283
|
const s = r.useRef(!1), l = r.useRef(0), c = r.useCallback(
|
|
284
284
|
(f) => {
|
|
285
285
|
clearTimeout(l.current), l.current = window.setTimeout(() => f());
|
|
@@ -305,19 +305,19 @@ 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,
|
|
312
312
|
onSyncFocus: o,
|
|
313
313
|
onSyncBlur: s
|
|
314
314
|
}) => {
|
|
315
|
-
const l =
|
|
315
|
+
const l = Tt({ onFocus: t, onBlur: n, onSyncFocus: o, onSyncBlur: s });
|
|
316
316
|
return /* @__PURE__ */ r.createElement(r.Fragment, null, e.call(void 0, { ...l }));
|
|
317
|
-
},
|
|
318
|
-
const s =
|
|
317
|
+
}, Nt = (e, t) => r.useContext(e)(t), Vn = () => r.createContext((e) => e), qn = (e, t) => r.forwardRef((n, o) => {
|
|
318
|
+
const s = Nt(e, n);
|
|
319
319
|
return /* @__PURE__ */ r.createElement(t, { ...s, ref: o });
|
|
320
|
-
}),
|
|
320
|
+
}), he = typeof window != "undefined" ? r.useLayoutEffect : r.useEffect;
|
|
321
321
|
function Ht(e) {
|
|
322
322
|
const [t, n] = r.useState(!1);
|
|
323
323
|
r.useEffect(() => {
|
|
@@ -327,17 +327,17 @@ function Ht(e) {
|
|
|
327
327
|
if (e)
|
|
328
328
|
return e;
|
|
329
329
|
if (t)
|
|
330
|
-
return
|
|
330
|
+
return Ye();
|
|
331
331
|
});
|
|
332
|
-
return
|
|
333
|
-
o === void 0 && s(
|
|
332
|
+
return he(() => {
|
|
333
|
+
o === void 0 && s(Ye());
|
|
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,9 +446,18 @@ 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
|
-
const
|
|
460
|
+
const Ue = (e = []) => {
|
|
452
461
|
const t = r.useRef(e), n = r.useCallback(
|
|
453
462
|
(o) => {
|
|
454
463
|
switch (o.type) {
|
|
@@ -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,13 +483,13 @@ 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;
|
|
482
491
|
}, [t]);
|
|
483
|
-
},
|
|
492
|
+
}, rt = {
|
|
484
493
|
default: "",
|
|
485
494
|
xsmall: "k-icon-xs",
|
|
486
495
|
small: "k-icon-sm",
|
|
@@ -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
|
|
@@ -501,14 +510,14 @@ const Je = (e = []) => {
|
|
|
501
510
|
n !== void 0 ? o(...h) : l(h[0]);
|
|
502
511
|
}
|
|
503
512
|
];
|
|
504
|
-
},
|
|
513
|
+
}, ot = r.createContext([
|
|
505
514
|
void 0,
|
|
506
515
|
C
|
|
507
|
-
]),
|
|
516
|
+
]), ge = r.createContext([
|
|
508
517
|
void 0,
|
|
509
518
|
C
|
|
510
|
-
]),
|
|
511
|
-
function
|
|
519
|
+
]), st = r.createContext([[], C, C]), me = 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,
|
|
@@ -520,27 +529,27 @@ function Ft(e, t, n = {}) {
|
|
|
520
529
|
mouseOnly: f = !1,
|
|
521
530
|
autoScroll: d = !0,
|
|
522
531
|
scrollContainer: m = null
|
|
523
|
-
} = n, [u, x] = r.useState(!1), [
|
|
532
|
+
} = n, [u, x] = r.useState(!1), [p, w] = r.useState(!1), [E] = ue(ge), [R, M] = ue(ot), [T] = r.useContext(me), [I, P, O] = r.useContext(st), y = r.useRef({ x: 0, y: 0 }), q = r.useRef(), K = r.useRef(!1), pe = r.useRef(), j = r.useRef(null), W = r.useRef(!1), ye = r.useRef({ x: 0, y: 0 }), ke = r.useRef({ x: 0, y: 0 }), U = 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 }), ft = !!(typeof window != "undefined" && window.PointerEvent), Pe = !f && ft, L = r.useCallback(
|
|
524
533
|
() => e.current && e.current.element ? e.current.element : e.current,
|
|
525
534
|
[e]
|
|
526
|
-
),
|
|
535
|
+
), ht = r.useCallback(
|
|
527
536
|
() => h && h.current && h.current.element ? h.current.element : h ? h.current : null,
|
|
528
537
|
[h]
|
|
529
|
-
),
|
|
538
|
+
), Ie = r.useCallback(
|
|
530
539
|
() => m && m.current && m.current.element ? m.current.element : m ? m.current : null,
|
|
531
540
|
[m]
|
|
532
|
-
),
|
|
541
|
+
), Oe = r.useCallback(
|
|
533
542
|
() => 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,
|
|
534
543
|
[d]
|
|
535
544
|
), Q = r.useRef(null);
|
|
536
545
|
r.useImperativeHandle(Q, () => ({
|
|
537
546
|
element: L(),
|
|
538
|
-
hint:
|
|
539
|
-
onPress:
|
|
540
|
-
onDragStart:
|
|
541
|
-
onDrag:
|
|
542
|
-
onDragEnd:
|
|
543
|
-
onRelease:
|
|
547
|
+
hint: ht(),
|
|
548
|
+
onPress: gt,
|
|
549
|
+
onDragStart: vt,
|
|
550
|
+
onDrag: Ct,
|
|
551
|
+
onDragEnd: Et,
|
|
552
|
+
onRelease: mt,
|
|
544
553
|
data: e.current
|
|
545
554
|
}));
|
|
546
555
|
const Z = r.useCallback(
|
|
@@ -555,7 +564,7 @@ function Ft(e, t, n = {}) {
|
|
|
555
564
|
return a && a.defaultView || window;
|
|
556
565
|
},
|
|
557
566
|
[Z]
|
|
558
|
-
),
|
|
567
|
+
), Me = r.useCallback(
|
|
559
568
|
() => ({
|
|
560
569
|
drag: R ? R.current : null,
|
|
561
570
|
drop: E ? E.current : null,
|
|
@@ -563,47 +572,42 @@ function Ft(e, t, n = {}) {
|
|
|
563
572
|
drops: T.map((a) => a.current),
|
|
564
573
|
pressed: u,
|
|
565
574
|
ignoreMouse: K.current,
|
|
566
|
-
scrollOffset:
|
|
575
|
+
scrollOffset: Ae.current,
|
|
567
576
|
offset: ye.current,
|
|
568
|
-
pageOffset:
|
|
569
|
-
initialScrollOffset:
|
|
577
|
+
pageOffset: ke.current,
|
|
578
|
+
initialScrollOffset: we.current,
|
|
570
579
|
clientOffset: U.current,
|
|
571
|
-
initialClientOffset:
|
|
572
|
-
velocity:
|
|
580
|
+
initialClientOffset: De.current,
|
|
581
|
+
velocity: y.current,
|
|
573
582
|
autoScroll: !!(typeof d == "object" ? d.enabled !== !1 : d),
|
|
574
|
-
scrollableParent:
|
|
583
|
+
scrollableParent: Oe(),
|
|
575
584
|
autoScrollDirection: typeof d == "object" ? d.direction : { horizontal: !0, vertical: !0 },
|
|
576
|
-
isScrolling:
|
|
585
|
+
isScrolling: p
|
|
577
586
|
}),
|
|
578
|
-
[R, E, I, T, u, d,
|
|
579
|
-
), Me = r.useCallback(
|
|
580
|
-
(a) => {
|
|
581
|
-
x(a);
|
|
582
|
-
},
|
|
583
|
-
[]
|
|
587
|
+
[R, E, I, T, u, d, Oe, p]
|
|
584
588
|
), Se = r.useCallback(
|
|
585
589
|
(a) => {
|
|
586
|
-
|
|
590
|
+
x(a);
|
|
587
591
|
},
|
|
588
592
|
[]
|
|
589
593
|
), Re = r.useCallback(
|
|
590
594
|
(a) => {
|
|
591
|
-
|
|
595
|
+
w(a);
|
|
592
596
|
},
|
|
593
597
|
[]
|
|
594
598
|
), Le = r.useCallback(
|
|
595
599
|
(a) => {
|
|
596
|
-
|
|
600
|
+
y.current = a;
|
|
597
601
|
},
|
|
598
602
|
[]
|
|
599
603
|
), Te = r.useCallback(
|
|
600
604
|
(a) => {
|
|
601
|
-
|
|
605
|
+
ye.current = a;
|
|
602
606
|
},
|
|
603
607
|
[]
|
|
604
608
|
), Ne = r.useCallback(
|
|
605
609
|
(a) => {
|
|
606
|
-
|
|
610
|
+
U.current = a;
|
|
607
611
|
},
|
|
608
612
|
[]
|
|
609
613
|
), He = r.useCallback(
|
|
@@ -621,60 +625,65 @@ function Ft(e, t, n = {}) {
|
|
|
621
625
|
Ae.current = a;
|
|
622
626
|
},
|
|
623
627
|
[]
|
|
624
|
-
),
|
|
628
|
+
), Qe = r.useCallback(
|
|
629
|
+
(a) => {
|
|
630
|
+
we.current = a;
|
|
631
|
+
},
|
|
632
|
+
[]
|
|
633
|
+
), gt = r.useCallback(
|
|
625
634
|
(a) => {
|
|
626
635
|
o(a);
|
|
627
636
|
},
|
|
628
637
|
[o]
|
|
629
|
-
),
|
|
638
|
+
), mt = r.useCallback(
|
|
630
639
|
(a) => {
|
|
631
640
|
s(a);
|
|
632
641
|
},
|
|
633
642
|
[s]
|
|
634
|
-
),
|
|
643
|
+
), vt = r.useCallback(
|
|
635
644
|
(a) => {
|
|
636
645
|
M(Q, { target: e.current, event: a }), l(a);
|
|
637
646
|
},
|
|
638
647
|
[M, e, l]
|
|
639
|
-
),
|
|
648
|
+
), Ct = r.useCallback(
|
|
640
649
|
(a) => {
|
|
641
650
|
c(a);
|
|
642
651
|
},
|
|
643
652
|
[c]
|
|
644
|
-
),
|
|
653
|
+
), Et = r.useCallback(
|
|
645
654
|
(a) => {
|
|
646
655
|
W.current || (M(null, { target: e.current, event: a }), i(a));
|
|
647
656
|
},
|
|
648
657
|
[i, M, e]
|
|
649
658
|
), v = r.useCallback(
|
|
650
659
|
(a) => {
|
|
651
|
-
|
|
652
|
-
|
|
660
|
+
pt(
|
|
661
|
+
Me(),
|
|
653
662
|
{ event: a, payload: Q.current },
|
|
654
663
|
{
|
|
655
|
-
onVelocityChange:
|
|
656
|
-
onOffsetChange:
|
|
657
|
-
onClientOffsetChange:
|
|
658
|
-
onPageOffsetChange:
|
|
659
|
-
onInitialClientOffsetChange:
|
|
660
|
-
onScrollOffsetChange:
|
|
661
|
-
onInitialScrollOffsetChange:
|
|
662
|
-
onIsPressedChange:
|
|
663
|
-
onIsScrollingChange:
|
|
664
|
+
onVelocityChange: Le,
|
|
665
|
+
onOffsetChange: Te,
|
|
666
|
+
onClientOffsetChange: Ne,
|
|
667
|
+
onPageOffsetChange: He,
|
|
668
|
+
onInitialClientOffsetChange: Be,
|
|
669
|
+
onScrollOffsetChange: je,
|
|
670
|
+
onInitialScrollOffsetChange: Qe,
|
|
671
|
+
onIsPressedChange: Se,
|
|
672
|
+
onIsScrollingChange: Re
|
|
664
673
|
}
|
|
665
674
|
);
|
|
666
675
|
},
|
|
667
676
|
[
|
|
668
|
-
|
|
669
|
-
Re,
|
|
677
|
+
Me,
|
|
670
678
|
Le,
|
|
671
|
-
Ne,
|
|
672
679
|
Te,
|
|
673
680
|
He,
|
|
674
|
-
|
|
675
|
-
Me,
|
|
681
|
+
Ne,
|
|
676
682
|
Be,
|
|
677
|
-
|
|
683
|
+
Qe,
|
|
684
|
+
Se,
|
|
685
|
+
je,
|
|
686
|
+
Re
|
|
678
687
|
]
|
|
679
688
|
), _ = r.useCallback(
|
|
680
689
|
(a) => {
|
|
@@ -730,9 +739,9 @@ function Ft(e, t, n = {}) {
|
|
|
730
739
|
(a) => {
|
|
731
740
|
if (a.touches.length === 0 && a.changedTouches.length === 1) {
|
|
732
741
|
const b = N();
|
|
733
|
-
K.current = !0,
|
|
742
|
+
K.current = !0, pe.current = b.setTimeout(() => {
|
|
734
743
|
K.current = !1;
|
|
735
|
-
},
|
|
744
|
+
}, Xt);
|
|
736
745
|
}
|
|
737
746
|
v(a);
|
|
738
747
|
},
|
|
@@ -742,7 +751,7 @@ function Ft(e, t, n = {}) {
|
|
|
742
751
|
v(a);
|
|
743
752
|
},
|
|
744
753
|
[v]
|
|
745
|
-
),
|
|
754
|
+
), ze = r.useCallback(
|
|
746
755
|
() => {
|
|
747
756
|
const a = L();
|
|
748
757
|
if (a) {
|
|
@@ -753,35 +762,35 @@ function Ft(e, t, n = {}) {
|
|
|
753
762
|
}
|
|
754
763
|
},
|
|
755
764
|
[L]
|
|
756
|
-
),
|
|
765
|
+
), Fe = r.useCallback(
|
|
757
766
|
() => (P(Q), () => {
|
|
758
767
|
O(Q);
|
|
759
768
|
}),
|
|
760
769
|
[O, P]
|
|
761
|
-
),
|
|
770
|
+
), bt = () => {
|
|
762
771
|
const a = N(), b = L(), D = Z();
|
|
763
|
-
return
|
|
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(
|
|
772
|
+
return Pe ? (b && (j.current = Xe(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 }))), () => {
|
|
773
|
+
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(pe.current);
|
|
765
774
|
};
|
|
766
775
|
};
|
|
767
776
|
r.useEffect(() => {
|
|
768
777
|
const a = N();
|
|
769
|
-
if (
|
|
770
|
-
const b =
|
|
778
|
+
if (p) {
|
|
779
|
+
const b = Ie() || Xe(document.elementFromPoint(U.current.x, U.current.y));
|
|
771
780
|
a.clearInterval(q.current), q.current = a.setInterval(() => {
|
|
772
|
-
yt(b, { x:
|
|
781
|
+
yt(b, { x: y.current.x, y: y.current.y });
|
|
773
782
|
}, 50);
|
|
774
783
|
}
|
|
775
784
|
return () => {
|
|
776
785
|
a.clearInterval(q.current);
|
|
777
786
|
};
|
|
778
|
-
}, [L,
|
|
787
|
+
}, [L, Ie, N, p]), r.useEffect(ze, [ze]), r.useEffect(bt, [
|
|
779
788
|
u,
|
|
780
789
|
N,
|
|
781
790
|
L,
|
|
782
791
|
Z,
|
|
783
792
|
f,
|
|
784
|
-
|
|
793
|
+
Pe,
|
|
785
794
|
se,
|
|
786
795
|
ne,
|
|
787
796
|
re,
|
|
@@ -796,9 +805,9 @@ function Ft(e, t, n = {}) {
|
|
|
796
805
|
ie
|
|
797
806
|
]), r.useEffect(() => (W.current = !1, () => {
|
|
798
807
|
W.current = !0;
|
|
799
|
-
}), []),
|
|
808
|
+
}), []), he(Fe, [Fe]);
|
|
800
809
|
}
|
|
801
|
-
function
|
|
810
|
+
function Gt(e, t = {
|
|
802
811
|
onDragEnter: C,
|
|
803
812
|
onDragOver: C,
|
|
804
813
|
onDragLeave: C,
|
|
@@ -809,7 +818,7 @@ function Xt(e, t = {
|
|
|
809
818
|
onDragOver: o = C,
|
|
810
819
|
onDragLeave: s = C,
|
|
811
820
|
onDrop: l = C
|
|
812
|
-
} = t, [, c] = ue(
|
|
821
|
+
} = t, [, c] = ue(ge), [, i, h] = r.useContext(me), f = r.useCallback(
|
|
813
822
|
() => e.current && e.current.element ? e.current.element : e.current,
|
|
814
823
|
[e]
|
|
815
824
|
), d = r.useRef(null);
|
|
@@ -818,7 +827,7 @@ function Xt(e, t = {
|
|
|
818
827
|
onDragEnter: m,
|
|
819
828
|
onDragOver: u,
|
|
820
829
|
onDragLeave: x,
|
|
821
|
-
onDrop:
|
|
830
|
+
onDrop: p,
|
|
822
831
|
data: e.current
|
|
823
832
|
}));
|
|
824
833
|
const m = r.useCallback(
|
|
@@ -836,7 +845,7 @@ function Xt(e, t = {
|
|
|
836
845
|
c(null, { target: e.current, event: E }), s(E);
|
|
837
846
|
},
|
|
838
847
|
[c, e, s]
|
|
839
|
-
),
|
|
848
|
+
), p = r.useCallback(
|
|
840
849
|
(E) => {
|
|
841
850
|
c(null, { target: e.current, event: E }), l(E);
|
|
842
851
|
},
|
|
@@ -847,9 +856,9 @@ function Xt(e, t = {
|
|
|
847
856
|
}),
|
|
848
857
|
[h, i]
|
|
849
858
|
);
|
|
850
|
-
|
|
859
|
+
he(w, [w]);
|
|
851
860
|
}
|
|
852
|
-
const
|
|
861
|
+
const Ze = (e, t, n) => {
|
|
853
862
|
const [o, s] = r.useState(t || e), l = r.useCallback(
|
|
854
863
|
(c, i) => {
|
|
855
864
|
s(c), n && n.call(void 0, { ...i, value: c });
|
|
@@ -857,7 +866,7 @@ const Ue = (e, t, n) => {
|
|
|
857
866
|
[n, s]
|
|
858
867
|
);
|
|
859
868
|
return [t !== void 0 ? t : o, l];
|
|
860
|
-
},
|
|
869
|
+
}, ve = r.forwardRef((e, t) => {
|
|
861
870
|
const {
|
|
862
871
|
className: n,
|
|
863
872
|
name: o,
|
|
@@ -873,25 +882,25 @@ const Ue = (e, t, n) => {
|
|
|
873
882
|
element: u.current
|
|
874
883
|
})), r.useImperativeHandle(t, () => m.current);
|
|
875
884
|
const x = r.useMemo(
|
|
876
|
-
() => l ||
|
|
885
|
+
() => l || Ve.size,
|
|
877
886
|
[l]
|
|
878
|
-
),
|
|
879
|
-
() => c ||
|
|
887
|
+
), p = r.useMemo(
|
|
888
|
+
() => c || Ve.flip,
|
|
880
889
|
[c]
|
|
881
890
|
), w = r.useMemo(
|
|
882
|
-
() =>
|
|
891
|
+
() => _e(
|
|
883
892
|
"k-icon",
|
|
884
893
|
"k-font-icon",
|
|
885
|
-
o &&
|
|
894
|
+
o && Ft(o),
|
|
886
895
|
{
|
|
887
896
|
[`k-color-${s}`]: s,
|
|
888
|
-
"k-flip-h":
|
|
889
|
-
"k-flip-v":
|
|
897
|
+
"k-flip-h": p === "horizontal" || p === "both",
|
|
898
|
+
"k-flip-v": p === "vertical" || p === "both"
|
|
890
899
|
},
|
|
891
|
-
|
|
900
|
+
rt[x],
|
|
892
901
|
n
|
|
893
902
|
),
|
|
894
|
-
[o, s, x,
|
|
903
|
+
[o, s, x, p, n]
|
|
895
904
|
), E = Bt(e, m);
|
|
896
905
|
return /* @__PURE__ */ r.createElement(
|
|
897
906
|
"span",
|
|
@@ -907,7 +916,7 @@ const Ue = (e, t, n) => {
|
|
|
907
916
|
}
|
|
908
917
|
);
|
|
909
918
|
});
|
|
910
|
-
|
|
919
|
+
ve.propTypes = {
|
|
911
920
|
style: g.object,
|
|
912
921
|
classNames: g.string,
|
|
913
922
|
name: g.string,
|
|
@@ -927,12 +936,12 @@ me.propTypes = {
|
|
|
927
936
|
size: g.oneOf(["default", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"]),
|
|
928
937
|
flip: g.oneOf(["default", "horizontal", "vertical", "both"])
|
|
929
938
|
};
|
|
930
|
-
const
|
|
939
|
+
const Ve = {
|
|
931
940
|
size: "default",
|
|
932
941
|
flip: "default"
|
|
933
942
|
};
|
|
934
|
-
|
|
935
|
-
const
|
|
943
|
+
ve.displayName = "KendoIcon";
|
|
944
|
+
const Ce = r.forwardRef((e, t) => {
|
|
936
945
|
const {
|
|
937
946
|
children: n,
|
|
938
947
|
className: o,
|
|
@@ -946,7 +955,7 @@ const ve = r.forwardRef((e, t) => {
|
|
|
946
955
|
svgStyle: m,
|
|
947
956
|
themeColor: u,
|
|
948
957
|
viewBox: x,
|
|
949
|
-
name:
|
|
958
|
+
name: p,
|
|
950
959
|
onClick: w,
|
|
951
960
|
...E
|
|
952
961
|
} = e, R = r.useRef(null);
|
|
@@ -969,7 +978,7 @@ const ve = r.forwardRef((e, t) => {
|
|
|
969
978
|
() => x || V.viewBox,
|
|
970
979
|
[x]
|
|
971
980
|
), O = r.useMemo(
|
|
972
|
-
() =>
|
|
981
|
+
() => _e(
|
|
973
982
|
"k-icon",
|
|
974
983
|
"k-svg-icon",
|
|
975
984
|
"k-svg-i-" + M,
|
|
@@ -978,11 +987,11 @@ const ve = r.forwardRef((e, t) => {
|
|
|
978
987
|
"k-flip-h": I === "horizontal" || I === "both",
|
|
979
988
|
"k-flip-v": I === "vertical" || I === "both"
|
|
980
989
|
},
|
|
981
|
-
|
|
990
|
+
rt[T],
|
|
982
991
|
o
|
|
983
992
|
),
|
|
984
993
|
[M, u, T, I, o]
|
|
985
|
-
),
|
|
994
|
+
), y = r.useMemo(
|
|
986
995
|
() => 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 },
|
|
987
996
|
[e.width, e.height, d]
|
|
988
997
|
);
|
|
@@ -990,7 +999,7 @@ const ve = r.forwardRef((e, t) => {
|
|
|
990
999
|
"span",
|
|
991
1000
|
{
|
|
992
1001
|
className: O,
|
|
993
|
-
style:
|
|
1002
|
+
style: y,
|
|
994
1003
|
ref: R,
|
|
995
1004
|
onClick: w,
|
|
996
1005
|
"aria-hidden": !0
|
|
@@ -1013,7 +1022,7 @@ const ve = r.forwardRef((e, t) => {
|
|
|
1013
1022
|
)
|
|
1014
1023
|
);
|
|
1015
1024
|
});
|
|
1016
|
-
|
|
1025
|
+
Ce.propTypes = {
|
|
1017
1026
|
style: g.object,
|
|
1018
1027
|
classNames: g.string,
|
|
1019
1028
|
children: g.any,
|
|
@@ -1040,29 +1049,29 @@ const V = {
|
|
|
1040
1049
|
icon: "",
|
|
1041
1050
|
viewBox: "0 0 24 24"
|
|
1042
1051
|
};
|
|
1043
|
-
|
|
1044
|
-
const
|
|
1045
|
-
|
|
1046
|
-
const
|
|
1052
|
+
Ce.displayName = "KendoSvgIcon";
|
|
1053
|
+
const lt = r.createContext({ type: "svg" });
|
|
1054
|
+
lt.displayName = "KendoReactIconsContext";
|
|
1055
|
+
const Jt = r.forwardRef((e, t) => {
|
|
1047
1056
|
var h, f;
|
|
1048
|
-
const { type: n, icons: o } = r.useContext(
|
|
1057
|
+
const { type: n, icons: o } = r.useContext(lt), { 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);
|
|
1050
1059
|
c = c && o && o[c] && typeof o[c] == "string" ? o[c] : c;
|
|
1051
1060
|
const i = c && o && o[c] && typeof o[c] != "string" ? o[c] : s;
|
|
1052
|
-
return n === "svg" && i ? /* @__PURE__ */ r.createElement(
|
|
1061
|
+
return n === "svg" && i ? /* @__PURE__ */ r.createElement(Ce, { ...e, icon: i, ref: t }) : /* @__PURE__ */ r.createElement(ve, { ...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",
|
|
@@ -1117,40 +1126,40 @@ const Gt = {
|
|
|
1117
1126
|
themeColor: m,
|
|
1118
1127
|
margin: u,
|
|
1119
1128
|
...x
|
|
1120
|
-
} = n,
|
|
1129
|
+
} = n, p = r.useRef(null), w = r.useRef(null);
|
|
1121
1130
|
r.useImperativeHandle(
|
|
1122
|
-
|
|
1131
|
+
p,
|
|
1123
1132
|
() => ({
|
|
1124
1133
|
element: w.current,
|
|
1125
1134
|
props: n
|
|
1126
1135
|
})
|
|
1127
|
-
), r.useImperativeHandle(o, () =>
|
|
1136
|
+
), r.useImperativeHandle(o, () => p.current);
|
|
1128
1137
|
const E = () => `k-${e === "p" ? "paragraph" : e}`, R = e, M = (P, O) => {
|
|
1129
|
-
const
|
|
1130
|
-
return `${
|
|
1138
|
+
const y = typeof O == "string" ? qt[O] : O;
|
|
1139
|
+
return `${Kt[P]}${y}`;
|
|
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") {
|
|
1138
1147
|
const P = [];
|
|
1139
|
-
return Object.keys(u).forEach((
|
|
1140
|
-
u[
|
|
1148
|
+
return Object.keys(u).forEach((y) => {
|
|
1149
|
+
u[y] !== null && u[y] !== void 0 && P.push(M(y, u[y]));
|
|
1141
1150
|
}), P.join(" ");
|
|
1142
1151
|
}
|
|
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
|
-
].filter((
|
|
1162
|
+
].filter((y) => y !== void 0).join(" ");
|
|
1154
1163
|
return /* @__PURE__ */ r.createElement(
|
|
1155
1164
|
R,
|
|
1156
1165
|
{
|
|
@@ -1189,24 +1198,24 @@ 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
|
-
},
|
|
1203
|
-
const [t, n] =
|
|
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) => {
|
|
1212
|
+
const [t, n] = Ze(
|
|
1204
1213
|
null,
|
|
1205
1214
|
void 0
|
|
1206
|
-
), [o, s] =
|
|
1215
|
+
), [o, s] = Ze(
|
|
1207
1216
|
null,
|
|
1208
1217
|
void 0
|
|
1209
|
-
), [l, c] =
|
|
1218
|
+
), [l, c] = Ue([]), [i, h] = Ue([]), f = (x) => {
|
|
1210
1219
|
c({
|
|
1211
1220
|
type: X.add,
|
|
1212
1221
|
item: x
|
|
@@ -1227,10 +1236,10 @@ const Gt = {
|
|
|
1227
1236
|
item: x
|
|
1228
1237
|
});
|
|
1229
1238
|
};
|
|
1230
|
-
return /* @__PURE__ */ r.createElement(
|
|
1239
|
+
return /* @__PURE__ */ r.createElement(ot.Provider, { value: [t, n] }, /* @__PURE__ */ r.createElement(ge.Provider, { value: [o, s] }, /* @__PURE__ */ r.createElement(st.Provider, { value: [l, f, d] }, /* @__PURE__ */ r.createElement(me.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,75 +1536,75 @@ 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]);
|
|
1542
1551
|
}
|
|
1543
1552
|
}
|
|
1544
|
-
const Y = "",
|
|
1545
|
-
function
|
|
1553
|
+
const Y = "", ct = "0", A = "_";
|
|
1554
|
+
function at(e, t, n) {
|
|
1546
1555
|
if (J(e))
|
|
1547
1556
|
return t[Number(e)];
|
|
1548
1557
|
{
|
|
1549
1558
|
const o = t[Number(H(e))], s = o && o[n] || [];
|
|
1550
|
-
return s.length ?
|
|
1559
|
+
return s.length ? at(B(e), s, n) : void 0;
|
|
1551
1560
|
}
|
|
1552
1561
|
}
|
|
1553
1562
|
function H(e) {
|
|
1554
|
-
return
|
|
1563
|
+
return Ee(e) ? e : e.split(A)[0];
|
|
1555
1564
|
}
|
|
1556
1565
|
function B(e) {
|
|
1557
|
-
if (
|
|
1566
|
+
if (Ee(e))
|
|
1558
1567
|
return e;
|
|
1559
1568
|
{
|
|
1560
1569
|
const t = e.indexOf(A);
|
|
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) {
|
|
1568
1577
|
return e = e.toString(), t ? t + A + e : e;
|
|
1569
1578
|
}
|
|
1570
|
-
function
|
|
1579
|
+
function it(e) {
|
|
1571
1580
|
const t = e.lastIndexOf(A);
|
|
1572
1581
|
return t < 0 ? Y : e.substring(0, t);
|
|
1573
1582
|
}
|
|
1574
|
-
function
|
|
1583
|
+
function Ee(e) {
|
|
1575
1584
|
return e === Y || e.indexOf(A) < 0;
|
|
1576
1585
|
}
|
|
1577
1586
|
function J(e) {
|
|
1578
1587
|
return e !== Y && e.indexOf(A) < 0;
|
|
1579
1588
|
}
|
|
1580
|
-
function
|
|
1589
|
+
function be(e) {
|
|
1581
1590
|
return e.split(A);
|
|
1582
1591
|
}
|
|
1583
|
-
function
|
|
1592
|
+
function xe(e) {
|
|
1584
1593
|
const t = e.lastIndexOf(A);
|
|
1585
1594
|
return t < 0 ? e : e.substring(t + 1);
|
|
1586
1595
|
}
|
|
1587
|
-
function
|
|
1588
|
-
return
|
|
1596
|
+
function En(e) {
|
|
1597
|
+
return xe(e) === ct;
|
|
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
|
-
const o =
|
|
1602
|
+
const o = it(e) + A;
|
|
1594
1603
|
if (t.startsWith(o)) {
|
|
1595
1604
|
const s = t.substring(o.length);
|
|
1596
1605
|
if (s) {
|
|
1597
1606
|
const l = H(s);
|
|
1598
|
-
if (Number(
|
|
1607
|
+
if (Number(xe(e)) < Number(l)) {
|
|
1599
1608
|
const c = o + (Number(l) - 1).toString() + s.substring(l.length);
|
|
1600
1609
|
return B(c);
|
|
1601
1610
|
}
|
|
@@ -1603,48 +1612,48 @@ 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
|
-
ZERO_LEVEL_ZERO_NODE_ID:
|
|
1619
|
+
ZERO_LEVEL_ZERO_NODE_ID: ct,
|
|
1611
1620
|
createId: G,
|
|
1612
|
-
getAllShortIds:
|
|
1613
|
-
getDecrementedItemIdAfterRemoval:
|
|
1614
|
-
getDirectParentId:
|
|
1615
|
-
getFirstChildId:
|
|
1621
|
+
getAllShortIds: be,
|
|
1622
|
+
getDecrementedItemIdAfterRemoval: bn,
|
|
1623
|
+
getDirectParentId: it,
|
|
1624
|
+
getFirstChildId: Cn,
|
|
1616
1625
|
getIdWithoutRootParentId: B,
|
|
1617
|
-
getItemById:
|
|
1626
|
+
getItemById: at,
|
|
1618
1627
|
getRootParentId: H,
|
|
1619
|
-
getShortId:
|
|
1620
|
-
isIdEmptyOrZeroLevel:
|
|
1628
|
+
getShortId: xe,
|
|
1629
|
+
isIdEmptyOrZeroLevel: Ee,
|
|
1621
1630
|
isIdZeroLevel: J,
|
|
1622
|
-
isItemFirstFromSiblings:
|
|
1631
|
+
isItemFirstFromSiblings: En
|
|
1623
1632
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1624
|
-
function
|
|
1633
|
+
function ut(e, t) {
|
|
1625
1634
|
const n = k(t, e);
|
|
1626
1635
|
return !!(n && n.length);
|
|
1627
1636
|
}
|
|
1628
|
-
function
|
|
1629
|
-
return t.expanded(e) &&
|
|
1637
|
+
function fr(e, t) {
|
|
1638
|
+
return t.expanded(e) && ut(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
|
|
1637
|
-
return l.init(e),
|
|
1644
|
+
function xn(e, t, n, o) {
|
|
1645
|
+
const s = [], l = new vn();
|
|
1646
|
+
return l.init(e), dt(l, t, n, Y, s, o), s;
|
|
1638
1647
|
}
|
|
1639
|
-
function
|
|
1648
|
+
function pn(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] = pn(i[s], B(t), n, o, s)), c;
|
|
1645
1654
|
}
|
|
1646
|
-
function
|
|
1647
|
-
const o =
|
|
1655
|
+
function gr(e, t, n) {
|
|
1656
|
+
const o = be(e);
|
|
1648
1657
|
let s = t;
|
|
1649
1658
|
for (let l = 0; l < o.length; l++) {
|
|
1650
1659
|
const c = s[Number(o[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,11 +1682,11 @@ 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
|
|
1680
|
-
const o = [], s =
|
|
1688
|
+
function Cr(e, t, n) {
|
|
1689
|
+
const o = [], s = be(e);
|
|
1681
1690
|
let l = n;
|
|
1682
1691
|
for (let c = 0; c < s.length - 1 && l; c++) {
|
|
1683
1692
|
const i = l[Number(s[c])];
|
|
@@ -1685,17 +1694,17 @@ function mr(e, t, n) {
|
|
|
1685
1694
|
}
|
|
1686
1695
|
return o;
|
|
1687
1696
|
}
|
|
1688
|
-
function
|
|
1697
|
+
function yn(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] = yn(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,96 +1714,96 @@ 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
|
}
|
|
1712
|
-
function
|
|
1721
|
+
function dt(e, t, n, o, s, l) {
|
|
1713
1722
|
for (let c = 0; c < n.length; c++) {
|
|
1714
1723
|
const i = n[c], h = G(c, o);
|
|
1715
|
-
e.hasId(k(t, i)) && s.push(h),
|
|
1724
|
+
e.hasId(k(t, i)) && s.push(h), ut(i, l) && dt(e, t, k(l, i), h, s, l);
|
|
1716
1725
|
}
|
|
1717
1726
|
}
|
|
1718
1727
|
export {
|
|
1719
|
-
|
|
1720
|
-
|
|
1728
|
+
Zn as AsyncFocusBlur,
|
|
1729
|
+
We as BrowserSupportService,
|
|
1721
1730
|
X as COLLECTION_ACTION,
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1731
|
+
un as DragAndDrop,
|
|
1732
|
+
dn as Draggable,
|
|
1733
|
+
fn as Droppable,
|
|
1734
|
+
lr as FOCUSABLE_ELEMENTS,
|
|
1735
|
+
Sn as FormComponent,
|
|
1736
|
+
ve as Icon,
|
|
1737
|
+
Jt as IconWrap,
|
|
1738
|
+
lt as IconsContext,
|
|
1739
|
+
Tn as Keys,
|
|
1740
|
+
cr as Navigation,
|
|
1741
|
+
vn as SortedPublicItemIds,
|
|
1742
|
+
Ce as SvgIcon,
|
|
1743
|
+
ur as TreeFieldsService,
|
|
1744
|
+
rr as Typography,
|
|
1745
|
+
Jn as WatermarkOverlay,
|
|
1746
|
+
Ke as ZIndexContext,
|
|
1747
|
+
kn as addItem,
|
|
1748
|
+
vr as areAllDirectChildrenChecked,
|
|
1740
1749
|
fe as canUseDOM,
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1750
|
+
In as canUseRef,
|
|
1751
|
+
_e as classNames,
|
|
1752
|
+
On as clone,
|
|
1753
|
+
Pt as cloneArray,
|
|
1754
|
+
wt as cloneDate,
|
|
1755
|
+
$e as cloneObject,
|
|
1756
|
+
et as cloneValue,
|
|
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
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1767
|
+
Nn as getScrollbarWidth,
|
|
1768
|
+
Rn as getTabIndex,
|
|
1769
|
+
Ln as getter,
|
|
1770
|
+
Ye as guid,
|
|
1771
|
+
ut as hasChildren,
|
|
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
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1781
|
+
yn 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
|
+
pn as updateItem,
|
|
1792
|
+
Tt as useAsyncFocusBlur,
|
|
1793
|
+
Ue as useCollection,
|
|
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
|
+
he as useIsomorphicLayoutEffect,
|
|
1792
1801
|
Bt as useMouse,
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1802
|
+
Nt as usePropsContext,
|
|
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
|
};
|