@progress/kendo-react-common 7.2.4-develop.2 → 7.2.4-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 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +523 -487
- package/package.json +1 -1
- package/trappedFocus.d.ts +28 -0
- package/focus.d.ts +0 -8
package/index.mjs
CHANGED
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
"use client";
|
|
6
6
|
import * as r from "react";
|
|
7
7
|
import { validatePackage as qe } from "@progress/kendo-licensing";
|
|
8
|
-
import * as
|
|
8
|
+
import * as Dt 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 At, getScrollableParent as Ye, autoScroll as wt } from "@progress/kendo-draggable-common";
|
|
11
|
+
const We = r.createContext(0), Ln = () => r.useContext(We);
|
|
12
|
+
We.displayName = "KendoReactZIndexContext";
|
|
13
|
+
const Pt = () => typeof document != "undefined" ? document : {};
|
|
14
|
+
class _e {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.scrollbar = 0;
|
|
17
17
|
}
|
|
18
18
|
get scrollbarWidth() {
|
|
19
|
-
const t =
|
|
19
|
+
const t = Pt();
|
|
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);
|
|
@@ -24,73 +24,204 @@ class We {
|
|
|
24
24
|
return this.scrollbar;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
(typeof window != "undefined" && window.document && window.document.createElement),
|
|
27
|
+
const he = !!// from fbjs
|
|
28
|
+
(typeof window != "undefined" && window.document && window.document.createElement), It = (e) => {
|
|
29
29
|
var t;
|
|
30
30
|
return !!(typeof e == "function" && ((t = e.prototype) != null && t.isReactComponent));
|
|
31
|
-
},
|
|
31
|
+
}, Ot = (e) => !!(e.$$typeof && typeof e.render == "function"), Tn = (e) => typeof Comment != "string" && (It(e) || Ot(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
|
+
}, Mt = (e) => e ? new Date(e.getTime()) : null;
|
|
37
|
+
function Nn(e) {
|
|
38
38
|
const t = {};
|
|
39
|
-
return
|
|
39
|
+
return et(e, t), t;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function et(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] = tt(o, t[n]);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function tt(e, t) {
|
|
49
49
|
if (Array.isArray(e))
|
|
50
|
-
return
|
|
50
|
+
return St(e);
|
|
51
51
|
if (e instanceof Date)
|
|
52
|
-
return
|
|
52
|
+
return Mt(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 et(e, n), n;
|
|
58
58
|
} else
|
|
59
59
|
return e;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
return e.map((t) =>
|
|
61
|
+
function St(e) {
|
|
62
|
+
return e.map((t) => tt(t, void 0));
|
|
63
|
+
}
|
|
64
|
+
const V = {
|
|
65
|
+
backspace: 8,
|
|
66
|
+
tab: 9,
|
|
67
|
+
enter: 13,
|
|
68
|
+
shift: 16,
|
|
69
|
+
esc: 27,
|
|
70
|
+
space: 32,
|
|
71
|
+
pageUp: 33,
|
|
72
|
+
pageDown: 34,
|
|
73
|
+
end: 35,
|
|
74
|
+
home: 36,
|
|
75
|
+
left: 37,
|
|
76
|
+
up: 38,
|
|
77
|
+
right: 39,
|
|
78
|
+
down: 40,
|
|
79
|
+
delete: 46
|
|
80
|
+
}, nt = [
|
|
81
|
+
"input:not([disabled]):not([type=hidden])",
|
|
82
|
+
"select:not([disabled])",
|
|
83
|
+
"textarea:not([disabled])",
|
|
84
|
+
"button:not([disabled])",
|
|
85
|
+
"a[href]",
|
|
86
|
+
"area[href]",
|
|
87
|
+
"summary",
|
|
88
|
+
"iframe",
|
|
89
|
+
"object",
|
|
90
|
+
"embed",
|
|
91
|
+
"audio[controls]",
|
|
92
|
+
"video[controls]",
|
|
93
|
+
"[contenteditable]",
|
|
94
|
+
'[tabindex]:not([tabindex="-1"])'
|
|
95
|
+
];
|
|
96
|
+
class Bn {
|
|
97
|
+
constructor(t) {
|
|
98
|
+
this.rovingTabIndex = !0, this.update = () => {
|
|
99
|
+
}, this.focusNextIndex = (n, o) => {
|
|
100
|
+
const s = this.elements;
|
|
101
|
+
let l = s.indexOf(n) + o;
|
|
102
|
+
l = l < 0 ? s.length - 1 : l;
|
|
103
|
+
const c = s[l % s.length];
|
|
104
|
+
return this.focusElement(c, n), c;
|
|
105
|
+
}, this.tabIndex = t.tabIndex || 0, this.root = t.root, this.selectors = t.selectors, this.focusOptions = t.focusOptions || { preventScroll: !0 }, this.rovingTabIndex = t.rovingTabIndex !== void 0 ? t.rovingTabIndex : !0, this.mouseEvents = t.mouseEvents || {}, this.keyboardEvents = t.keyboardEvents || {};
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Returns the collection of DOM elements which the module will navigate in.
|
|
109
|
+
*/
|
|
110
|
+
get elements() {
|
|
111
|
+
return this.root.current ? Array.from(this.root.current.querySelectorAll(this.selectors.join(","))) : [];
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Returns the first navigation DOM element.
|
|
115
|
+
*/
|
|
116
|
+
get first() {
|
|
117
|
+
return this.root.current && this.root.current.querySelector(this.selectors.join(",")) || null;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Returns the last navigation DOM element.
|
|
121
|
+
*/
|
|
122
|
+
get last() {
|
|
123
|
+
const t = this.elements;
|
|
124
|
+
return t[t.length - 1] || null;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Returns the focused DOM element from the navigation collection of DOM elements.
|
|
128
|
+
*/
|
|
129
|
+
get current() {
|
|
130
|
+
return this.elements.find((t) => t.matches(":focus")) || null;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Focuses the next element from the navigation collection of DOM elements.
|
|
134
|
+
*/
|
|
135
|
+
focusNext(t) {
|
|
136
|
+
return this.focusNextIndex(t, 1);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Focuses the previous element from the navigation collection of DOM elements.
|
|
140
|
+
*/
|
|
141
|
+
focusPrevious(t) {
|
|
142
|
+
return this.focusNextIndex(t, -1);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* The keyboard events handler.
|
|
146
|
+
*/
|
|
147
|
+
triggerKeyboardEvent(t, n) {
|
|
148
|
+
const o = t.target instanceof Element && t.target.closest(this.selectors.join(",")), s = t.key === " " ? "Space" : t.key, l = t.nativeEvent.type;
|
|
149
|
+
o && this.keyboardEvents[l][s] && this.keyboardEvents[l][s].call(void 0, o, this, t, n);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* The mouse events handler.
|
|
153
|
+
*/
|
|
154
|
+
triggerMouseEvent(t) {
|
|
155
|
+
const n = t.target instanceof Element && t.target.closest(this.selectors.join(",")), o = t.nativeEvent.type;
|
|
156
|
+
n && this.mouseEvents[o].call(void 0, n, this, t);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Focuses the passed element from the navigation collection of DOM elements.
|
|
160
|
+
*/
|
|
161
|
+
focusElement(t, n) {
|
|
162
|
+
t && (n && (this.rovingTabIndex && n.removeAttribute("tabindex"), n.classList.remove("k-focus")), this.rovingTabIndex && t.setAttribute("tabindex", String(this.tabIndex)), t.focus(this.focusOptions));
|
|
163
|
+
}
|
|
63
164
|
}
|
|
64
|
-
const
|
|
165
|
+
const rt = (e) => {
|
|
65
166
|
if (e) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
return;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
167
|
+
const t = e.querySelectorAll(nt.join(","));
|
|
168
|
+
if (t.length && t[0].focus)
|
|
169
|
+
return t[0];
|
|
170
|
+
}
|
|
171
|
+
}, ot = (e) => {
|
|
172
|
+
if (e) {
|
|
173
|
+
const t = e.querySelectorAll(nt.join(","));
|
|
174
|
+
if (t.length && t[t.length - 1].focus)
|
|
175
|
+
return t[t.length - 1];
|
|
176
|
+
}
|
|
177
|
+
}, Rt = (e) => {
|
|
178
|
+
if (e) {
|
|
179
|
+
const t = rt(e);
|
|
180
|
+
t && t.focus();
|
|
181
|
+
}
|
|
182
|
+
}, Hn = (e) => {
|
|
183
|
+
if (e) {
|
|
184
|
+
const t = ot(e);
|
|
185
|
+
t && t.focus();
|
|
186
|
+
}
|
|
187
|
+
}, Lt = (e, t) => {
|
|
188
|
+
if (!t || e.keyCode !== V.tab)
|
|
189
|
+
return;
|
|
190
|
+
const n = rt(t), o = ot(t);
|
|
191
|
+
n && o && !e.shiftKey && e.target === o && (e.preventDefault(), n.focus()), n && o && e.shiftKey && e.target === n && (e.preventDefault(), o.focus()), n || e.preventDefault();
|
|
192
|
+
}, jn = (e, t, n) => {
|
|
193
|
+
let o = !0;
|
|
194
|
+
if (e.keyCode !== V.enter && e.target === t) {
|
|
195
|
+
n && n(!1);
|
|
196
|
+
return;
|
|
72
197
|
}
|
|
198
|
+
e.keyCode === V.enter && e.target === t ? (o = !0, setTimeout(
|
|
199
|
+
() => {
|
|
200
|
+
Rt(t);
|
|
201
|
+
},
|
|
202
|
+
1
|
|
203
|
+
)) : e.keyCode === V.esc ? (o = !1, t.focus()) : Lt(e, t), n && n(o);
|
|
73
204
|
};
|
|
74
|
-
class
|
|
205
|
+
class Qn {
|
|
75
206
|
}
|
|
76
|
-
const
|
|
207
|
+
const Tt = -1, Nt = 0, zn = (e, t, n) => {
|
|
77
208
|
const o = typeof e == "string" ? parseInt(e) : e;
|
|
78
209
|
if (!Number.isNaN(o))
|
|
79
|
-
return o !== void 0 ? o : t ? n ? void 0 :
|
|
80
|
-
},
|
|
81
|
-
function
|
|
210
|
+
return o !== void 0 ? o : t ? n ? void 0 : Tt : Nt;
|
|
211
|
+
}, Bt = /\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;
|
|
212
|
+
function st(e) {
|
|
82
213
|
const t = [];
|
|
83
|
-
return e.replace(
|
|
214
|
+
return e.replace(Bt, function(n, o, s, l) {
|
|
84
215
|
t.push(o !== void 0 ? o : s || l);
|
|
85
216
|
}), t;
|
|
86
217
|
}
|
|
87
218
|
const z = {};
|
|
88
219
|
z.undefined = () => {
|
|
89
220
|
};
|
|
90
|
-
function
|
|
221
|
+
function Fn(e) {
|
|
91
222
|
if (z[e])
|
|
92
223
|
return z[e];
|
|
93
|
-
const t =
|
|
224
|
+
const t = st(e);
|
|
94
225
|
return z[e] = function(n) {
|
|
95
226
|
let o = n;
|
|
96
227
|
for (let s = 0; s < t.length && o; s++)
|
|
@@ -98,71 +229,55 @@ function Ln(e) {
|
|
|
98
229
|
return o;
|
|
99
230
|
}, z[e];
|
|
100
231
|
}
|
|
101
|
-
const
|
|
232
|
+
const Ge = () => {
|
|
102
233
|
let e = "", t, n;
|
|
103
234
|
for (t = 0; t < 32; t++)
|
|
104
235
|
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
236
|
return e;
|
|
106
|
-
}, Tn = {
|
|
107
|
-
backspace: 8,
|
|
108
|
-
tab: 9,
|
|
109
|
-
enter: 13,
|
|
110
|
-
shift: 16,
|
|
111
|
-
esc: 27,
|
|
112
|
-
space: 32,
|
|
113
|
-
pageUp: 33,
|
|
114
|
-
pageDown: 34,
|
|
115
|
-
end: 35,
|
|
116
|
-
home: 36,
|
|
117
|
-
left: 37,
|
|
118
|
-
up: 38,
|
|
119
|
-
right: 39,
|
|
120
|
-
down: 40,
|
|
121
|
-
delete: 46
|
|
122
237
|
}, C = function() {
|
|
123
|
-
},
|
|
124
|
-
if (!
|
|
238
|
+
}, Xn = () => !he || !document.body ? !1 : new _e().scrollbarWidth, Yn = () => {
|
|
239
|
+
if (!he || !document.body)
|
|
125
240
|
return !1;
|
|
126
|
-
let e = new
|
|
241
|
+
let e = new _e().scrollbarWidth;
|
|
127
242
|
document.body.style.setProperty("--kendo-scrollbar-width", `${e}px`);
|
|
128
243
|
}, F = {};
|
|
129
244
|
F.undefined = (e) => e;
|
|
130
|
-
const
|
|
131
|
-
function
|
|
245
|
+
const Ht = (e, t) => t && t.arrays && !isNaN(Number(e)) ? [] : {};
|
|
246
|
+
function Gn(e) {
|
|
132
247
|
if (F[e])
|
|
133
248
|
return F[e];
|
|
134
|
-
const t =
|
|
249
|
+
const t = st(e);
|
|
135
250
|
return F[e] = (n, o, s) => {
|
|
136
251
|
let l = n;
|
|
137
252
|
const c = t.length - 1;
|
|
138
253
|
for (let i = 0; i < c && l; i++)
|
|
139
|
-
l = l[t[i]] = l[t[i]] ||
|
|
254
|
+
l = l[t[i]] = l[t[i]] || Ht(t[i + 1], s);
|
|
140
255
|
l[t[c]] = o;
|
|
141
256
|
}, F[e];
|
|
142
257
|
}
|
|
143
|
-
function
|
|
258
|
+
function Je(e, t, n) {
|
|
144
259
|
return n ? { ...e, [t]: n.length ? [...n] : void 0 } : e && e[t] ? [...e[t]] : [];
|
|
145
260
|
}
|
|
146
|
-
function
|
|
261
|
+
function lt(e, t, n) {
|
|
147
262
|
if (e[t]) {
|
|
148
|
-
let o =
|
|
149
|
-
return n(
|
|
263
|
+
let o = Je(e, t).map((s) => lt(s, t, n));
|
|
264
|
+
return n(Je(e, t, o));
|
|
150
265
|
}
|
|
151
266
|
return n(e);
|
|
152
267
|
}
|
|
153
|
-
const
|
|
268
|
+
const Jn = (e, t, n) => [...e.map((o) => lt(o, t, n))], Un = (e, t, n, o) => {
|
|
154
269
|
let s = e;
|
|
155
270
|
const l = [];
|
|
156
271
|
for (let f = 0; f < t.length; f++)
|
|
157
272
|
s = s[t[f]], s = Array.isArray(s) ? s : s[n], l.push(s);
|
|
158
273
|
const c = l.length > 1 ? l[l.length - 2] : e, i = t[t.length - 1], h = o(c[i]);
|
|
159
274
|
c.splice(i, 1, h);
|
|
160
|
-
},
|
|
275
|
+
}, Zn = (e, t, n) => Object.assign(
|
|
161
276
|
{},
|
|
162
277
|
e,
|
|
163
278
|
e[t] ? { [t]: e[t].slice() } : {},
|
|
164
279
|
n || {}
|
|
165
|
-
),
|
|
280
|
+
), Kn = (e, t, n) => {
|
|
166
281
|
const o = [], s = [...t];
|
|
167
282
|
if (s.length) {
|
|
168
283
|
let l = e[s.shift() || 0];
|
|
@@ -170,15 +285,15 @@ const jn = (e, t, n) => [...e.map((o) => nt(o, t, n))], Qn = (e, t, n, o) => {
|
|
|
170
285
|
l = l[n][s.shift() || 0], o.push(l);
|
|
171
286
|
}
|
|
172
287
|
return o;
|
|
173
|
-
},
|
|
174
|
-
function
|
|
175
|
-
return !
|
|
288
|
+
}, jt = ["telerik.com", "progress.com", "stackblitz.io", "csb.app"], Vn = qe;
|
|
289
|
+
function qn(e) {
|
|
290
|
+
return !jt.some((n) => {
|
|
176
291
|
var o;
|
|
177
292
|
return (o = globalThis.document) == null ? void 0 : o.location.hostname.endsWith(n);
|
|
178
293
|
}) && !qe(e);
|
|
179
294
|
}
|
|
180
|
-
const
|
|
181
|
-
if (!
|
|
295
|
+
const Wn = (e) => {
|
|
296
|
+
if (!he)
|
|
182
297
|
return !1;
|
|
183
298
|
const t = e ? e.ownerDocument : document;
|
|
184
299
|
if (!t || !t.body)
|
|
@@ -189,12 +304,12 @@ const Gn = (e) => {
|
|
|
189
304
|
s.appendChild(t.createTextNode("child")), s.style.position = "fixed", s.style.top = n + "px", o.appendChild(s), t.body.appendChild(o);
|
|
190
305
|
const l = s.getBoundingClientRect().top !== n;
|
|
191
306
|
return t.body.removeChild(o), l;
|
|
192
|
-
},
|
|
193
|
-
let
|
|
194
|
-
const
|
|
307
|
+
}, Qt = "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";
|
|
308
|
+
let Ue = !1;
|
|
309
|
+
const _n = () => {
|
|
195
310
|
const [e, t] = r.useState(!0), [n, o] = r.useState(!1);
|
|
196
311
|
r.useEffect(() => {
|
|
197
|
-
|
|
312
|
+
Ue || (o(!0), Ue = !0);
|
|
198
313
|
}, []);
|
|
199
314
|
const s = () => {
|
|
200
315
|
t(!1);
|
|
@@ -214,7 +329,7 @@ const Jn = () => {
|
|
|
214
329
|
backgroundColor: "#FFC000",
|
|
215
330
|
color: "#1E1E1E",
|
|
216
331
|
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:
|
|
332
|
+
} }, /* @__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: Qt, style: { marginRight: "8px", display: "flex" } }, /* @__PURE__ */ r.createElement(
|
|
218
333
|
"button",
|
|
219
334
|
{
|
|
220
335
|
title: "Learn More",
|
|
@@ -267,9 +382,9 @@ const Jn = () => {
|
|
|
267
382
|
backgroundImage: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABVxSURBVHgB7Z3tVRtJE4WL9zgANgLLGRCCnAGOADmCxRGgDFAGYiOADKQMIAGO9J8ji42g37mjqlUjBgOanpn+uM85sjC2sKzbVd1dVV0tQgghhBBCCCGEEEIIKRPn3Gn1GAlJmmN1pP558J6OX9540ejh4WGlX09OTk7+EZIclXYXlY43+vVflY7PH3wd9c+AY/Wvvcb9/b0bjUYOz/hBQpICmh1oOPrEa6l/4rTR337AhIMgTSqtzg+0m8gnof7p0mD8EzmGhkFwJiR6np6e7luLL9Q/RTDTBzF+7wfWg2CxWOCHjYVET6XTdLPZrFuL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qSBgGd/2uKcgIHEdCJkBp/EOSaCaHxv00J+tdoDnRJ8V+jtePLHGshaPzvk7P+pGC47SOkYCqDn6FvH42fkAJxuyPdaN01FlIGbnc/37TkFE8o3L4nAmvHCyQ5/S3gw24oYXAvuyKxbLgwktK/xNr+rsFqKpU8sa78Zlz5hSMZ/Znq6Y4UikVMf72oYyYkGNHrT+PvnpgHAVd+3ROt/jT+/ohxEFD//ohOf4rfPzENAurfP1E5AVzPRPH7xx8EuJ1WBoDGPxyH+ruhjlTjbnR9AxMhvYLPHA4YGkjPIMpP4x+WIfUnhYMZx2voMRFCSFlohVqR3XwIIaQc3O5OtrGQJFC9RkKKRCsyRxICi/YuFgvs986ERA3Eh1ahUkT4GQg0Vc9XQqInqP6ODRyTA046VJ7Y1x/XdgmJnmD6M8+bLiGKRVjemy6t9WeeN30aBsGHI/bUP33a6M88bybYIPjs9o3658Gx+tuLmefNgGN1pP55QB0JIYQQQgghhBBCCJGy+T9ftRg+rVNPfAAAAABJRU5ErkJggg==')"
|
|
268
383
|
}
|
|
269
384
|
}
|
|
270
|
-
), n &&
|
|
385
|
+
), n && Dt.createPortal(l, document.body));
|
|
271
386
|
};
|
|
272
|
-
function
|
|
387
|
+
function $n(e, t, n, o) {
|
|
273
388
|
if (e) {
|
|
274
389
|
const s = {
|
|
275
390
|
syntheticEvent: t,
|
|
@@ -279,7 +394,7 @@ function Un(e, t, n, o) {
|
|
|
279
394
|
e.call(void 0, Object.assign(s, o));
|
|
280
395
|
}
|
|
281
396
|
}
|
|
282
|
-
function
|
|
397
|
+
function zt({ onFocus: e, onBlur: t, onSyncFocus: n, onSyncBlur: o }) {
|
|
283
398
|
const s = r.useRef(!1), l = r.useRef(0), c = r.useCallback(
|
|
284
399
|
(f) => {
|
|
285
400
|
clearTimeout(l.current), l.current = window.setTimeout(() => f());
|
|
@@ -305,20 +420,20 @@ function Tt({ onFocus: e, onBlur: t, onSyncFocus: n, onSyncBlur: o }) {
|
|
|
305
420
|
onBlur: h
|
|
306
421
|
};
|
|
307
422
|
}
|
|
308
|
-
const
|
|
423
|
+
const er = ({
|
|
309
424
|
children: e,
|
|
310
425
|
onFocus: t,
|
|
311
426
|
onBlur: n,
|
|
312
427
|
onSyncFocus: o,
|
|
313
428
|
onSyncBlur: s
|
|
314
429
|
}) => {
|
|
315
|
-
const l =
|
|
430
|
+
const l = zt({ onFocus: t, onBlur: n, onSyncFocus: o, onSyncBlur: s });
|
|
316
431
|
return /* @__PURE__ */ r.createElement(r.Fragment, null, e.call(void 0, { ...l }));
|
|
317
|
-
},
|
|
318
|
-
const s =
|
|
432
|
+
}, Ft = (e, t) => r.useContext(e)(t), tr = () => r.createContext((e) => e), nr = (e, t) => r.forwardRef((n, o) => {
|
|
433
|
+
const s = Ft(e, n);
|
|
319
434
|
return /* @__PURE__ */ r.createElement(t, { ...s, ref: o });
|
|
320
|
-
}),
|
|
321
|
-
function
|
|
435
|
+
}), ge = typeof window != "undefined" ? r.useLayoutEffect : r.useEffect;
|
|
436
|
+
function Xt(e) {
|
|
322
437
|
const [t, n] = r.useState(!1);
|
|
323
438
|
r.useEffect(() => {
|
|
324
439
|
n(!0);
|
|
@@ -327,10 +442,10 @@ function Ht(e) {
|
|
|
327
442
|
if (e)
|
|
328
443
|
return e;
|
|
329
444
|
if (t)
|
|
330
|
-
return
|
|
445
|
+
return Ge();
|
|
331
446
|
});
|
|
332
|
-
|
|
333
|
-
o === void 0 && s(
|
|
447
|
+
ge(() => {
|
|
448
|
+
o === void 0 && s(Ge());
|
|
334
449
|
}, []);
|
|
335
450
|
const l = r["useId".toString()];
|
|
336
451
|
if (l !== void 0) {
|
|
@@ -339,11 +454,11 @@ function Ht(e) {
|
|
|
339
454
|
}
|
|
340
455
|
return o;
|
|
341
456
|
}
|
|
342
|
-
const
|
|
343
|
-
const o =
|
|
457
|
+
const rr = (e) => r.forwardRef((t, n) => {
|
|
458
|
+
const o = Xt(t.id);
|
|
344
459
|
return /* @__PURE__ */ r.createElement(e, { ...t, id: o, ref: n });
|
|
345
460
|
});
|
|
346
|
-
function
|
|
461
|
+
function or(e, t, n) {
|
|
347
462
|
const [o, s] = r.useState(t);
|
|
348
463
|
return r.useEffect(
|
|
349
464
|
() => {
|
|
@@ -355,7 +470,7 @@ function Wn(e, t, n) {
|
|
|
355
470
|
n
|
|
356
471
|
), o;
|
|
357
472
|
}
|
|
358
|
-
function
|
|
473
|
+
function sr(e, t, n) {
|
|
359
474
|
const [o, s] = r.useState(t);
|
|
360
475
|
return r.useEffect(
|
|
361
476
|
() => {
|
|
@@ -367,7 +482,7 @@ function _n(e, t, n) {
|
|
|
367
482
|
n
|
|
368
483
|
), o;
|
|
369
484
|
}
|
|
370
|
-
const
|
|
485
|
+
const Yt = (e, t, n = {}) => {
|
|
371
486
|
const o = r.useCallback(
|
|
372
487
|
(u) => {
|
|
373
488
|
n.onMouseDown && n.onMouseDown.call(void 0, u), e.onMouseDown && e.onMouseDown.call(void 0, {
|
|
@@ -452,18 +567,18 @@ const Bt = (e, t, n = {}) => {
|
|
|
452
567
|
onMouseOut: d,
|
|
453
568
|
onMouseOver: m
|
|
454
569
|
};
|
|
455
|
-
},
|
|
570
|
+
}, Gt = () => null, Jt = ({ children: e }) => e, lr = (e) => {
|
|
456
571
|
if (e) {
|
|
457
572
|
if (e === r.Fragment)
|
|
458
|
-
return [
|
|
573
|
+
return [Jt, {}];
|
|
459
574
|
if (r.isValidElement(e))
|
|
460
575
|
return [e.type, e.props];
|
|
461
576
|
} else
|
|
462
|
-
return [
|
|
577
|
+
return [Gt, {}];
|
|
463
578
|
return [e, {}];
|
|
464
579
|
};
|
|
465
580
|
var X = /* @__PURE__ */ ((e) => (e[e.add = 0] = "add", e[e.remove = 1] = "remove", e))(X || {});
|
|
466
|
-
const
|
|
581
|
+
const Ze = (e = []) => {
|
|
467
582
|
const t = r.useRef(e), n = r.useCallback(
|
|
468
583
|
(o) => {
|
|
469
584
|
switch (o.type) {
|
|
@@ -480,7 +595,7 @@ const Ue = (e = []) => {
|
|
|
480
595
|
[]
|
|
481
596
|
);
|
|
482
597
|
return [t.current, n];
|
|
483
|
-
},
|
|
598
|
+
}, Ut = (e) => {
|
|
484
599
|
const t = r.useCallback(
|
|
485
600
|
() => e.current && e.current.element ? e.current.element : e.current,
|
|
486
601
|
[e]
|
|
@@ -489,13 +604,13 @@ const Ue = (e = []) => {
|
|
|
489
604
|
const o = t();
|
|
490
605
|
return o && o.ownerDocument || document;
|
|
491
606
|
}, [t]);
|
|
492
|
-
},
|
|
493
|
-
const t =
|
|
607
|
+
}, cr = (e) => {
|
|
608
|
+
const t = Ut(e);
|
|
494
609
|
return r.useCallback(() => {
|
|
495
610
|
const o = t();
|
|
496
611
|
return o && o.defaultView || window;
|
|
497
612
|
}, [t]);
|
|
498
|
-
},
|
|
613
|
+
}, ct = {
|
|
499
614
|
default: "",
|
|
500
615
|
xsmall: "k-icon-xs",
|
|
501
616
|
small: "k-icon-sm",
|
|
@@ -504,11 +619,11 @@ const Ue = (e = []) => {
|
|
|
504
619
|
xlarge: "k-icon-xl",
|
|
505
620
|
xxlarge: "k-icon-xxl",
|
|
506
621
|
xxxlarge: "k-icon-xxxl"
|
|
507
|
-
},
|
|
622
|
+
}, ar = (e) => e.replace(/^k-i-/, ""), Zt = (e) => "k-i-" + e, ir = g.shape({
|
|
508
623
|
name: g.string.isRequired,
|
|
509
624
|
content: g.string.isRequired,
|
|
510
625
|
viewBox: g.string.isRequired
|
|
511
|
-
}),
|
|
626
|
+
}), de = (e, t) => {
|
|
512
627
|
const [n, o] = r.useContext(e), [s, l] = r.useState(t);
|
|
513
628
|
return [
|
|
514
629
|
n !== void 0 ? n : s,
|
|
@@ -516,14 +631,14 @@ const Ue = (e = []) => {
|
|
|
516
631
|
n !== void 0 ? o(...h) : l(h[0]);
|
|
517
632
|
}
|
|
518
633
|
];
|
|
519
|
-
},
|
|
634
|
+
}, at = r.createContext([
|
|
520
635
|
void 0,
|
|
521
636
|
C
|
|
522
|
-
]),
|
|
637
|
+
]), me = r.createContext([
|
|
523
638
|
void 0,
|
|
524
639
|
C
|
|
525
|
-
]),
|
|
526
|
-
function
|
|
640
|
+
]), it = r.createContext([[], C, C]), ve = r.createContext([[], C, C]), Kt = 2e3;
|
|
641
|
+
function Vt(e, t, n = {}) {
|
|
527
642
|
const {
|
|
528
643
|
onPress: o = C,
|
|
529
644
|
onRelease: s = C,
|
|
@@ -535,27 +650,27 @@ function Yt(e, t, n = {}) {
|
|
|
535
650
|
mouseOnly: f = !1,
|
|
536
651
|
autoScroll: d = !0,
|
|
537
652
|
scrollContainer: m = null
|
|
538
|
-
} = n, [u, x] = r.useState(!1), [y, w] = r.useState(!1), [E] =
|
|
653
|
+
} = n, [u, x] = r.useState(!1), [y, w] = r.useState(!1), [E] = de(me), [R, M] = de(at), [T] = r.useContext(ve), [I, P, O] = r.useContext(it), p = r.useRef({ x: 0, y: 0 }), q = r.useRef(), W = r.useRef(!1), pe = r.useRef(), j = r.useRef(null), _ = r.useRef(!1), ke = r.useRef({ x: 0, y: 0 }), De = r.useRef({ x: 0, y: 0 }), U = r.useRef({ x: 0, y: 0 }), Ae = r.useRef({ x: 0, y: 0 }), we = r.useRef({ x: 0, y: 0 }), Pe = r.useRef({ x: 0, y: 0 }), vt = !!(typeof window != "undefined" && window.PointerEvent), Ie = !f && vt, L = r.useCallback(
|
|
539
654
|
() => e.current && e.current.element ? e.current.element : e.current,
|
|
540
655
|
[e]
|
|
541
|
-
),
|
|
656
|
+
), Ct = r.useCallback(
|
|
542
657
|
() => h && h.current && h.current.element ? h.current.element : h ? h.current : null,
|
|
543
658
|
[h]
|
|
544
|
-
),
|
|
659
|
+
), Oe = r.useCallback(
|
|
545
660
|
() => m && m.current && m.current.element ? m.current.element : m ? m.current : null,
|
|
546
661
|
[m]
|
|
547
|
-
),
|
|
662
|
+
), Me = r.useCallback(
|
|
548
663
|
() => 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,
|
|
549
664
|
[d]
|
|
550
665
|
), Q = r.useRef(null);
|
|
551
666
|
r.useImperativeHandle(Q, () => ({
|
|
552
667
|
element: L(),
|
|
553
|
-
hint:
|
|
554
|
-
onPress:
|
|
555
|
-
onDragStart:
|
|
556
|
-
onDrag:
|
|
557
|
-
onDragEnd:
|
|
558
|
-
onRelease:
|
|
668
|
+
hint: Ct(),
|
|
669
|
+
onPress: Et,
|
|
670
|
+
onDragStart: xt,
|
|
671
|
+
onDrag: yt,
|
|
672
|
+
onDragEnd: pt,
|
|
673
|
+
onRelease: bt,
|
|
559
674
|
data: e.current
|
|
560
675
|
}));
|
|
561
676
|
const Z = r.useCallback(
|
|
@@ -570,58 +685,53 @@ function Yt(e, t, n = {}) {
|
|
|
570
685
|
return a && a.defaultView || window;
|
|
571
686
|
},
|
|
572
687
|
[Z]
|
|
573
|
-
),
|
|
688
|
+
), Se = r.useCallback(
|
|
574
689
|
() => ({
|
|
575
690
|
drag: R ? R.current : null,
|
|
576
691
|
drop: E ? E.current : null,
|
|
577
692
|
drags: I.map((a) => a.current),
|
|
578
693
|
drops: T.map((a) => a.current),
|
|
579
694
|
pressed: u,
|
|
580
|
-
ignoreMouse:
|
|
581
|
-
scrollOffset:
|
|
582
|
-
offset:
|
|
583
|
-
pageOffset:
|
|
584
|
-
initialScrollOffset:
|
|
695
|
+
ignoreMouse: W.current,
|
|
696
|
+
scrollOffset: we.current,
|
|
697
|
+
offset: ke.current,
|
|
698
|
+
pageOffset: De.current,
|
|
699
|
+
initialScrollOffset: Pe.current,
|
|
585
700
|
clientOffset: U.current,
|
|
586
|
-
initialClientOffset:
|
|
701
|
+
initialClientOffset: Ae.current,
|
|
587
702
|
velocity: p.current,
|
|
588
703
|
autoScroll: !!(typeof d == "object" ? d.enabled !== !1 : d),
|
|
589
|
-
scrollableParent:
|
|
704
|
+
scrollableParent: Me(),
|
|
590
705
|
autoScrollDirection: typeof d == "object" ? d.direction : { horizontal: !0, vertical: !0 },
|
|
591
706
|
isScrolling: y
|
|
592
707
|
}),
|
|
593
|
-
[R, E, I, T, u, d,
|
|
594
|
-
),
|
|
708
|
+
[R, E, I, T, u, d, Me, y]
|
|
709
|
+
), Re = r.useCallback(
|
|
595
710
|
(a) => {
|
|
596
711
|
x(a);
|
|
597
712
|
},
|
|
598
713
|
[]
|
|
599
|
-
),
|
|
714
|
+
), Le = r.useCallback(
|
|
600
715
|
(a) => {
|
|
601
716
|
w(a);
|
|
602
717
|
},
|
|
603
718
|
[]
|
|
604
|
-
),
|
|
719
|
+
), Te = r.useCallback(
|
|
605
720
|
(a) => {
|
|
606
721
|
p.current = a;
|
|
607
722
|
},
|
|
608
723
|
[]
|
|
609
|
-
),
|
|
724
|
+
), Ne = r.useCallback(
|
|
610
725
|
(a) => {
|
|
611
|
-
|
|
726
|
+
ke.current = a;
|
|
612
727
|
},
|
|
613
728
|
[]
|
|
614
|
-
),
|
|
729
|
+
), Be = r.useCallback(
|
|
615
730
|
(a) => {
|
|
616
731
|
U.current = a;
|
|
617
732
|
},
|
|
618
733
|
[]
|
|
619
734
|
), He = r.useCallback(
|
|
620
|
-
(a) => {
|
|
621
|
-
ke.current = a;
|
|
622
|
-
},
|
|
623
|
-
[]
|
|
624
|
-
), Be = r.useCallback(
|
|
625
735
|
(a) => {
|
|
626
736
|
De.current = a;
|
|
627
737
|
},
|
|
@@ -636,66 +746,66 @@ function Yt(e, t, n = {}) {
|
|
|
636
746
|
we.current = a;
|
|
637
747
|
},
|
|
638
748
|
[]
|
|
639
|
-
),
|
|
749
|
+
), ze = r.useCallback(
|
|
750
|
+
(a) => {
|
|
751
|
+
Pe.current = a;
|
|
752
|
+
},
|
|
753
|
+
[]
|
|
754
|
+
), Et = r.useCallback(
|
|
640
755
|
(a) => {
|
|
641
756
|
o(a);
|
|
642
757
|
},
|
|
643
758
|
[o]
|
|
644
|
-
),
|
|
759
|
+
), bt = r.useCallback(
|
|
645
760
|
(a) => {
|
|
646
761
|
s(a);
|
|
647
762
|
},
|
|
648
763
|
[s]
|
|
649
|
-
),
|
|
764
|
+
), xt = r.useCallback(
|
|
650
765
|
(a) => {
|
|
651
766
|
M(Q, { target: e.current, event: a }), l(a);
|
|
652
767
|
},
|
|
653
768
|
[M, e, l]
|
|
654
|
-
),
|
|
769
|
+
), yt = r.useCallback(
|
|
655
770
|
(a) => {
|
|
656
771
|
c(a);
|
|
657
772
|
},
|
|
658
773
|
[c]
|
|
659
|
-
),
|
|
774
|
+
), pt = r.useCallback(
|
|
660
775
|
(a) => {
|
|
661
|
-
|
|
776
|
+
_.current || (M(null, { target: e.current, event: a }), i(a));
|
|
662
777
|
},
|
|
663
778
|
[i, M, e]
|
|
664
779
|
), v = r.useCallback(
|
|
665
780
|
(a) => {
|
|
666
|
-
|
|
667
|
-
|
|
781
|
+
At(
|
|
782
|
+
Se(),
|
|
668
783
|
{ event: a, payload: Q.current },
|
|
669
784
|
{
|
|
670
|
-
onVelocityChange:
|
|
671
|
-
onOffsetChange:
|
|
672
|
-
onClientOffsetChange:
|
|
785
|
+
onVelocityChange: Te,
|
|
786
|
+
onOffsetChange: Ne,
|
|
787
|
+
onClientOffsetChange: Be,
|
|
673
788
|
onPageOffsetChange: He,
|
|
674
|
-
onInitialClientOffsetChange:
|
|
675
|
-
onScrollOffsetChange:
|
|
676
|
-
onInitialScrollOffsetChange:
|
|
677
|
-
onIsPressedChange:
|
|
678
|
-
onIsScrollingChange:
|
|
789
|
+
onInitialClientOffsetChange: je,
|
|
790
|
+
onScrollOffsetChange: Qe,
|
|
791
|
+
onInitialScrollOffsetChange: ze,
|
|
792
|
+
onIsPressedChange: Re,
|
|
793
|
+
onIsScrollingChange: Le
|
|
679
794
|
}
|
|
680
795
|
);
|
|
681
796
|
},
|
|
682
797
|
[
|
|
683
|
-
|
|
684
|
-
Le,
|
|
798
|
+
Se,
|
|
685
799
|
Te,
|
|
686
|
-
He,
|
|
687
800
|
Ne,
|
|
801
|
+
He,
|
|
688
802
|
Be,
|
|
689
|
-
Qe,
|
|
690
|
-
Se,
|
|
691
803
|
je,
|
|
692
|
-
|
|
804
|
+
ze,
|
|
805
|
+
Re,
|
|
806
|
+
Qe,
|
|
807
|
+
Le
|
|
693
808
|
]
|
|
694
|
-
), _ = r.useCallback(
|
|
695
|
-
(a) => {
|
|
696
|
-
v(a);
|
|
697
|
-
},
|
|
698
|
-
[v]
|
|
699
809
|
), $ = r.useCallback(
|
|
700
810
|
(a) => {
|
|
701
811
|
v(a);
|
|
@@ -728,7 +838,7 @@ function Yt(e, t, n = {}) {
|
|
|
728
838
|
[v]
|
|
729
839
|
), se = r.useCallback(
|
|
730
840
|
(a) => {
|
|
731
|
-
|
|
841
|
+
v(a);
|
|
732
842
|
},
|
|
733
843
|
[v]
|
|
734
844
|
), le = r.useCallback(
|
|
@@ -742,22 +852,27 @@ function Yt(e, t, n = {}) {
|
|
|
742
852
|
},
|
|
743
853
|
[v]
|
|
744
854
|
), ae = r.useCallback(
|
|
855
|
+
(a) => {
|
|
856
|
+
a.preventDefault(), v(a);
|
|
857
|
+
},
|
|
858
|
+
[v]
|
|
859
|
+
), ie = r.useCallback(
|
|
745
860
|
(a) => {
|
|
746
861
|
if (a.touches.length === 0 && a.changedTouches.length === 1) {
|
|
747
862
|
const b = N();
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
},
|
|
863
|
+
W.current = !0, pe.current = b.setTimeout(() => {
|
|
864
|
+
W.current = !1;
|
|
865
|
+
}, Kt);
|
|
751
866
|
}
|
|
752
867
|
v(a);
|
|
753
868
|
},
|
|
754
869
|
[v, N]
|
|
755
|
-
),
|
|
870
|
+
), ue = r.useCallback(
|
|
756
871
|
(a) => {
|
|
757
872
|
v(a);
|
|
758
873
|
},
|
|
759
874
|
[v]
|
|
760
|
-
),
|
|
875
|
+
), Fe = r.useCallback(
|
|
761
876
|
() => {
|
|
762
877
|
const a = L();
|
|
763
878
|
if (a) {
|
|
@@ -768,52 +883,52 @@ function Yt(e, t, n = {}) {
|
|
|
768
883
|
}
|
|
769
884
|
},
|
|
770
885
|
[L]
|
|
771
|
-
),
|
|
886
|
+
), Xe = r.useCallback(
|
|
772
887
|
() => (P(Q), () => {
|
|
773
888
|
O(Q);
|
|
774
889
|
}),
|
|
775
890
|
[O, P]
|
|
776
|
-
),
|
|
891
|
+
), kt = () => {
|
|
777
892
|
const a = N(), b = L(), D = Z();
|
|
778
|
-
return
|
|
779
|
-
j.current && j.current.removeEventListener("scroll",
|
|
893
|
+
return Ie ? (b && (j.current = Ye(b), j.current && j.current.addEventListener("scroll", ue, { passive: !0 }), b.addEventListener("pointerdown", $, { passive: !0 })), u && (D.addEventListener("pointermove", ee), D.addEventListener("pointerup", ne, !0), D.addEventListener("contextmenu", le), D.addEventListener("pointercancel", te, { passive: !0 }))) : (a.addEventListener("touchmove", C, { capture: !1, passive: !1 }), b && (b.addEventListener("mousedown", re, { passive: !0 }), f || (b.addEventListener("touchstart", ce, { passive: !0 }), u && (b.addEventListener("touchmove", ae, { passive: !0 }), b.addEventListener("touchend", ie, { passive: !0 })))), u && (D.addEventListener("mousemove", oe, { passive: !0 }), D.addEventListener("mouseup", se, { passive: !0 }))), () => {
|
|
894
|
+
j.current && j.current.removeEventListener("scroll", ue), b && (b.removeEventListener("pointerdown", $), b.removeEventListener("mousedown", re), b.removeEventListener("touchstart", ce), b.removeEventListener("touchmove", ae), b.removeEventListener("touchend", ie)), D.removeEventListener("pointermove", ee), D.removeEventListener("pointerup", ne, !0), D.removeEventListener("contextmenu", le), D.removeEventListener("pointercancel", te), D.removeEventListener("mousemove", oe), D.removeEventListener("mouseup", se), a.removeEventListener("touchmove", C), a.clearTimeout(pe.current);
|
|
780
895
|
};
|
|
781
896
|
};
|
|
782
897
|
r.useEffect(() => {
|
|
783
898
|
const a = N();
|
|
784
899
|
if (y) {
|
|
785
|
-
const b =
|
|
900
|
+
const b = Oe() || Ye(document.elementFromPoint(U.current.x, U.current.y));
|
|
786
901
|
a.clearInterval(q.current), q.current = a.setInterval(() => {
|
|
787
|
-
|
|
902
|
+
wt(b, { x: p.current.x, y: p.current.y });
|
|
788
903
|
}, 50);
|
|
789
904
|
}
|
|
790
905
|
return () => {
|
|
791
906
|
a.clearInterval(q.current);
|
|
792
907
|
};
|
|
793
|
-
}, [L,
|
|
908
|
+
}, [L, Oe, N, y]), r.useEffect(Fe, [Fe]), r.useEffect(kt, [
|
|
794
909
|
u,
|
|
795
910
|
N,
|
|
796
911
|
L,
|
|
797
912
|
Z,
|
|
798
913
|
f,
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
ne,
|
|
914
|
+
Ie,
|
|
915
|
+
le,
|
|
802
916
|
re,
|
|
803
917
|
oe,
|
|
804
|
-
|
|
805
|
-
_,
|
|
806
|
-
$,
|
|
918
|
+
se,
|
|
807
919
|
te,
|
|
920
|
+
$,
|
|
921
|
+
ee,
|
|
922
|
+
ne,
|
|
923
|
+
ie,
|
|
808
924
|
ae,
|
|
809
925
|
ce,
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
}), []), he(Fe, [Fe]);
|
|
926
|
+
ue
|
|
927
|
+
]), r.useEffect(() => (_.current = !1, () => {
|
|
928
|
+
_.current = !0;
|
|
929
|
+
}), []), ge(Xe, [Xe]);
|
|
815
930
|
}
|
|
816
|
-
function
|
|
931
|
+
function qt(e, t = {
|
|
817
932
|
onDragEnter: C,
|
|
818
933
|
onDragOver: C,
|
|
819
934
|
onDragLeave: C,
|
|
@@ -824,7 +939,7 @@ function Gt(e, t = {
|
|
|
824
939
|
onDragOver: o = C,
|
|
825
940
|
onDragLeave: s = C,
|
|
826
941
|
onDrop: l = C
|
|
827
|
-
} = t, [, c] =
|
|
942
|
+
} = t, [, c] = de(me), [, i, h] = r.useContext(ve), f = r.useCallback(
|
|
828
943
|
() => e.current && e.current.element ? e.current.element : e.current,
|
|
829
944
|
[e]
|
|
830
945
|
), d = r.useRef(null);
|
|
@@ -862,9 +977,9 @@ function Gt(e, t = {
|
|
|
862
977
|
}),
|
|
863
978
|
[h, i]
|
|
864
979
|
);
|
|
865
|
-
|
|
980
|
+
ge(w, [w]);
|
|
866
981
|
}
|
|
867
|
-
const
|
|
982
|
+
const Ke = (e, t, n) => {
|
|
868
983
|
const [o, s] = r.useState(t || e), l = r.useCallback(
|
|
869
984
|
(c, i) => {
|
|
870
985
|
s(c), n && n.call(void 0, { ...i, value: c });
|
|
@@ -872,7 +987,7 @@ const Ze = (e, t, n) => {
|
|
|
872
987
|
[n, s]
|
|
873
988
|
);
|
|
874
989
|
return [t !== void 0 ? t : o, l];
|
|
875
|
-
},
|
|
990
|
+
}, Ce = r.forwardRef((e, t) => {
|
|
876
991
|
const {
|
|
877
992
|
className: n,
|
|
878
993
|
name: o,
|
|
@@ -894,20 +1009,20 @@ const Ze = (e, t, n) => {
|
|
|
894
1009
|
() => c || Ve.flip,
|
|
895
1010
|
[c]
|
|
896
1011
|
), w = r.useMemo(
|
|
897
|
-
() =>
|
|
1012
|
+
() => $e(
|
|
898
1013
|
"k-icon",
|
|
899
1014
|
"k-font-icon",
|
|
900
|
-
o &&
|
|
1015
|
+
o && Zt(o),
|
|
901
1016
|
{
|
|
902
1017
|
[`k-color-${s}`]: s,
|
|
903
1018
|
"k-flip-h": y === "horizontal" || y === "both",
|
|
904
1019
|
"k-flip-v": y === "vertical" || y === "both"
|
|
905
1020
|
},
|
|
906
|
-
|
|
1021
|
+
ct[x],
|
|
907
1022
|
n
|
|
908
1023
|
),
|
|
909
1024
|
[o, s, x, y, n]
|
|
910
|
-
), E =
|
|
1025
|
+
), E = Yt(e, m);
|
|
911
1026
|
return /* @__PURE__ */ r.createElement(
|
|
912
1027
|
"span",
|
|
913
1028
|
{
|
|
@@ -922,7 +1037,7 @@ const Ze = (e, t, n) => {
|
|
|
922
1037
|
}
|
|
923
1038
|
);
|
|
924
1039
|
});
|
|
925
|
-
|
|
1040
|
+
Ce.propTypes = {
|
|
926
1041
|
style: g.object,
|
|
927
1042
|
classNames: g.string,
|
|
928
1043
|
name: g.string,
|
|
@@ -946,8 +1061,8 @@ const Ve = {
|
|
|
946
1061
|
size: "default",
|
|
947
1062
|
flip: "default"
|
|
948
1063
|
};
|
|
949
|
-
|
|
950
|
-
const
|
|
1064
|
+
Ce.displayName = "KendoIcon";
|
|
1065
|
+
const Ee = r.forwardRef((e, t) => {
|
|
951
1066
|
const {
|
|
952
1067
|
children: n,
|
|
953
1068
|
className: o,
|
|
@@ -972,19 +1087,19 @@ const Ce = r.forwardRef((e, t) => {
|
|
|
972
1087
|
})
|
|
973
1088
|
);
|
|
974
1089
|
const M = r.useMemo(
|
|
975
|
-
() => l ? l.name :
|
|
1090
|
+
() => l ? l.name : K.icon,
|
|
976
1091
|
[l]
|
|
977
1092
|
), T = r.useMemo(
|
|
978
|
-
() => f ||
|
|
1093
|
+
() => f || K.size,
|
|
979
1094
|
[f]
|
|
980
1095
|
), I = r.useMemo(
|
|
981
|
-
() => c ||
|
|
1096
|
+
() => c || K.flip,
|
|
982
1097
|
[c]
|
|
983
1098
|
), P = r.useMemo(
|
|
984
|
-
() => x ||
|
|
1099
|
+
() => x || K.viewBox,
|
|
985
1100
|
[x]
|
|
986
1101
|
), O = r.useMemo(
|
|
987
|
-
() =>
|
|
1102
|
+
() => $e(
|
|
988
1103
|
"k-icon",
|
|
989
1104
|
"k-svg-icon",
|
|
990
1105
|
"k-svg-i-" + M,
|
|
@@ -993,7 +1108,7 @@ const Ce = r.forwardRef((e, t) => {
|
|
|
993
1108
|
"k-flip-h": I === "horizontal" || I === "both",
|
|
994
1109
|
"k-flip-v": I === "vertical" || I === "both"
|
|
995
1110
|
},
|
|
996
|
-
|
|
1111
|
+
ct[T],
|
|
997
1112
|
o
|
|
998
1113
|
),
|
|
999
1114
|
[M, u, T, I, o]
|
|
@@ -1028,7 +1143,7 @@ const Ce = r.forwardRef((e, t) => {
|
|
|
1028
1143
|
)
|
|
1029
1144
|
);
|
|
1030
1145
|
});
|
|
1031
|
-
|
|
1146
|
+
Ee.propTypes = {
|
|
1032
1147
|
style: g.object,
|
|
1033
1148
|
classNames: g.string,
|
|
1034
1149
|
children: g.any,
|
|
@@ -1049,35 +1164,35 @@ Ce.propTypes = {
|
|
|
1049
1164
|
size: g.oneOf(["default", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"]),
|
|
1050
1165
|
flip: g.oneOf(["default", "horizontal", "vertical", "both"])
|
|
1051
1166
|
};
|
|
1052
|
-
const
|
|
1167
|
+
const K = {
|
|
1053
1168
|
size: "default",
|
|
1054
1169
|
flip: "default",
|
|
1055
1170
|
icon: "",
|
|
1056
1171
|
viewBox: "0 0 24 24"
|
|
1057
1172
|
};
|
|
1058
|
-
|
|
1059
|
-
const
|
|
1060
|
-
|
|
1061
|
-
const
|
|
1173
|
+
Ee.displayName = "KendoSvgIcon";
|
|
1174
|
+
const ut = r.createContext({ type: "svg" });
|
|
1175
|
+
ut.displayName = "KendoReactIconsContext";
|
|
1176
|
+
const Wt = r.forwardRef((e, t) => {
|
|
1062
1177
|
var h, f;
|
|
1063
|
-
const { type: n, icons: o } = r.useContext(
|
|
1178
|
+
const { type: n, icons: o } = r.useContext(ut), { icon: s, ...l } = e;
|
|
1064
1179
|
let c = n === "svg" ? ((h = e.icon) == null ? void 0 : h.name) || e.name : e.name || ((f = e.icon) == null ? void 0 : f.name);
|
|
1065
1180
|
c = c && o && o[c] && typeof o[c] == "string" ? o[c] : c;
|
|
1066
1181
|
const i = c && o && o[c] && typeof o[c] != "string" ? o[c] : s;
|
|
1067
|
-
return n === "svg" && i ? /* @__PURE__ */ r.createElement(
|
|
1182
|
+
return n === "svg" && i ? /* @__PURE__ */ r.createElement(Ee, { ...e, icon: i, ref: t }) : /* @__PURE__ */ r.createElement(Ce, { ...l, name: c, ref: t });
|
|
1068
1183
|
});
|
|
1069
|
-
|
|
1070
|
-
const
|
|
1184
|
+
Wt.displayName = "KendoIconWrap";
|
|
1185
|
+
const _t = {
|
|
1071
1186
|
xsmall: "k-fs-xs",
|
|
1072
1187
|
small: "k-fs-sm",
|
|
1073
1188
|
medium: "k-fs-md",
|
|
1074
1189
|
large: "k-fs-lg",
|
|
1075
1190
|
xlarge: "k-fs-xl"
|
|
1076
|
-
},
|
|
1191
|
+
}, $t = {
|
|
1077
1192
|
light: "k-font-weight-light",
|
|
1078
1193
|
normal: "k-font-weight-normal",
|
|
1079
1194
|
bold: "k-font-weight-bold"
|
|
1080
|
-
},
|
|
1195
|
+
}, en = {
|
|
1081
1196
|
xsmall: "k-m-xs",
|
|
1082
1197
|
small: "k-m-sm",
|
|
1083
1198
|
medium: "k-m-md",
|
|
@@ -1085,7 +1200,7 @@ const Ut = {
|
|
|
1085
1200
|
xlarge: "k-m-xl",
|
|
1086
1201
|
thin: "k-m-thin",
|
|
1087
1202
|
hair: "k-m-hair"
|
|
1088
|
-
},
|
|
1203
|
+
}, tn = {
|
|
1089
1204
|
xsmall: "xs",
|
|
1090
1205
|
small: "sm",
|
|
1091
1206
|
medium: "md",
|
|
@@ -1093,21 +1208,21 @@ const Ut = {
|
|
|
1093
1208
|
xlarge: "xl",
|
|
1094
1209
|
thin: "thin",
|
|
1095
1210
|
hair: "hair"
|
|
1096
|
-
},
|
|
1211
|
+
}, nn = {
|
|
1097
1212
|
top: "k-mt-",
|
|
1098
1213
|
right: "k-mr-",
|
|
1099
1214
|
bottom: "k-mb-",
|
|
1100
1215
|
left: "k-ml-"
|
|
1101
|
-
},
|
|
1216
|
+
}, rn = {
|
|
1102
1217
|
left: "k-text-left",
|
|
1103
1218
|
right: "k-text-right",
|
|
1104
1219
|
center: "k-text-center",
|
|
1105
1220
|
justify: "k-text-justify"
|
|
1106
|
-
},
|
|
1221
|
+
}, on = {
|
|
1107
1222
|
lowercase: "k-text-lowercase",
|
|
1108
1223
|
uppercase: "k-text-uppercase",
|
|
1109
1224
|
capitalize: "k-text-capitalize"
|
|
1110
|
-
},
|
|
1225
|
+
}, sn = {
|
|
1111
1226
|
inherit: "k-color-inherit",
|
|
1112
1227
|
primary: "k-color-primary",
|
|
1113
1228
|
secondary: "k-color-secondary",
|
|
@@ -1141,12 +1256,12 @@ const Ut = {
|
|
|
1141
1256
|
})
|
|
1142
1257
|
), r.useImperativeHandle(o, () => y.current);
|
|
1143
1258
|
const E = () => `k-${e === "p" ? "paragraph" : e}`, R = e, M = (P, O) => {
|
|
1144
|
-
const p = typeof O == "string" ?
|
|
1145
|
-
return `${
|
|
1259
|
+
const p = typeof O == "string" ? tn[O] : O;
|
|
1260
|
+
return `${nn[P]}${p}`;
|
|
1146
1261
|
}, T = () => {
|
|
1147
1262
|
if (u !== void 0) {
|
|
1148
1263
|
if (typeof u == "string")
|
|
1149
|
-
return [
|
|
1264
|
+
return [en[u]];
|
|
1150
1265
|
if (typeof u == "number" && u >= 0 && u <= 24)
|
|
1151
1266
|
return [`k-m-${u}`];
|
|
1152
1267
|
if (typeof u == "object") {
|
|
@@ -1158,11 +1273,11 @@ const Ut = {
|
|
|
1158
1273
|
}
|
|
1159
1274
|
}, I = () => [
|
|
1160
1275
|
E(),
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1276
|
+
_t[i],
|
|
1277
|
+
$t[h],
|
|
1278
|
+
rn[f],
|
|
1279
|
+
on[d],
|
|
1280
|
+
sn[m],
|
|
1166
1281
|
T(),
|
|
1167
1282
|
c
|
|
1168
1283
|
].filter((p) => p !== void 0).join(" ");
|
|
@@ -1204,24 +1319,24 @@ const Ut = {
|
|
|
1204
1319
|
"inverse"
|
|
1205
1320
|
])
|
|
1206
1321
|
}, t.displayName = `KendoReactTypography${e.toUpperCase()}`, t;
|
|
1207
|
-
},
|
|
1208
|
-
h1:
|
|
1209
|
-
h2:
|
|
1210
|
-
h3:
|
|
1211
|
-
h4:
|
|
1212
|
-
h5:
|
|
1213
|
-
h6:
|
|
1214
|
-
p:
|
|
1215
|
-
code:
|
|
1216
|
-
pre:
|
|
1217
|
-
},
|
|
1218
|
-
const [t, n] =
|
|
1322
|
+
}, ln = S("h1"), cn = S("h2"), an = S("h3"), un = S("h4"), dn = S("h5"), fn = S("h6"), hn = S("p"), gn = S("code"), mn = S("pre"), ur = {
|
|
1323
|
+
h1: ln,
|
|
1324
|
+
h2: cn,
|
|
1325
|
+
h3: an,
|
|
1326
|
+
h4: un,
|
|
1327
|
+
h5: dn,
|
|
1328
|
+
h6: fn,
|
|
1329
|
+
p: hn,
|
|
1330
|
+
code: gn,
|
|
1331
|
+
pre: mn
|
|
1332
|
+
}, vn = (e) => {
|
|
1333
|
+
const [t, n] = Ke(
|
|
1219
1334
|
null,
|
|
1220
1335
|
void 0
|
|
1221
|
-
), [o, s] =
|
|
1336
|
+
), [o, s] = Ke(
|
|
1222
1337
|
null,
|
|
1223
1338
|
void 0
|
|
1224
|
-
), [l, c] =
|
|
1339
|
+
), [l, c] = Ze([]), [i, h] = Ze([]), f = (x) => {
|
|
1225
1340
|
c({
|
|
1226
1341
|
type: X.add,
|
|
1227
1342
|
item: x
|
|
@@ -1242,10 +1357,10 @@ const Ut = {
|
|
|
1242
1357
|
item: x
|
|
1243
1358
|
});
|
|
1244
1359
|
};
|
|
1245
|
-
return /* @__PURE__ */ r.createElement(
|
|
1360
|
+
return /* @__PURE__ */ r.createElement(at.Provider, { value: [t, n] }, /* @__PURE__ */ r.createElement(me.Provider, { value: [o, s] }, /* @__PURE__ */ r.createElement(it.Provider, { value: [l, f, d] }, /* @__PURE__ */ r.createElement(ve.Provider, { value: [i, m, u] }, e.children))));
|
|
1246
1361
|
};
|
|
1247
|
-
|
|
1248
|
-
const
|
|
1362
|
+
vn.displayName = "KendoReactDragAndDrop";
|
|
1363
|
+
const Cn = r.forwardRef((e, t) => {
|
|
1249
1364
|
const n = r.useRef(null), o = r.useRef(null), s = r.useCallback(
|
|
1250
1365
|
() => n.current && n.current.element ? n.current.element : n.current,
|
|
1251
1366
|
[n]
|
|
@@ -1297,7 +1412,7 @@ const dn = r.forwardRef((e, t) => {
|
|
|
1297
1412
|
},
|
|
1298
1413
|
[s, e.onDragEnd]
|
|
1299
1414
|
);
|
|
1300
|
-
return
|
|
1415
|
+
return Vt(n, {
|
|
1301
1416
|
onPress: l,
|
|
1302
1417
|
onRelease: c,
|
|
1303
1418
|
onDragStart: i,
|
|
@@ -1310,8 +1425,8 @@ const dn = r.forwardRef((e, t) => {
|
|
|
1310
1425
|
scrollContainer: e.scrollContainer
|
|
1311
1426
|
}), e.children ? r.cloneElement(r.Children.only(e.children), { ref: n }) : null;
|
|
1312
1427
|
});
|
|
1313
|
-
|
|
1314
|
-
const
|
|
1428
|
+
Cn.displayName = "KendoReactDraggable";
|
|
1429
|
+
const En = r.forwardRef((e, t) => {
|
|
1315
1430
|
const n = r.useRef(null), o = r.useRef(null), s = r.useCallback(
|
|
1316
1431
|
() => n.current && n.current.element ? n.current.element : n.current,
|
|
1317
1432
|
[n]
|
|
@@ -1354,15 +1469,15 @@ const fn = r.forwardRef((e, t) => {
|
|
|
1354
1469
|
},
|
|
1355
1470
|
[e.onDrop, s]
|
|
1356
1471
|
);
|
|
1357
|
-
return
|
|
1472
|
+
return qt(n, {
|
|
1358
1473
|
onDragEnter: l,
|
|
1359
1474
|
onDragOver: c,
|
|
1360
1475
|
onDragLeave: i,
|
|
1361
1476
|
onDrop: h
|
|
1362
1477
|
}), e.children ? r.cloneElement(r.Children.only(e.children), { ref: n }) : null;
|
|
1363
1478
|
});
|
|
1364
|
-
|
|
1365
|
-
const
|
|
1479
|
+
En.displayName = "KendoReactDroppable";
|
|
1480
|
+
const dr = {
|
|
1366
1481
|
sizeMap: {
|
|
1367
1482
|
small: "sm",
|
|
1368
1483
|
medium: "md",
|
|
@@ -1378,18 +1493,18 @@ const or = {
|
|
|
1378
1493
|
horizontal: "hstack"
|
|
1379
1494
|
}
|
|
1380
1495
|
};
|
|
1381
|
-
function
|
|
1496
|
+
function bn(e, t) {
|
|
1382
1497
|
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
1383
1498
|
}
|
|
1384
|
-
function
|
|
1499
|
+
function xn(e, t) {
|
|
1385
1500
|
if (e.length !== t.length)
|
|
1386
1501
|
return !1;
|
|
1387
1502
|
for (let n = 0; n < e.length; n++)
|
|
1388
|
-
if (!
|
|
1503
|
+
if (!bn(e[n], t[n]))
|
|
1389
1504
|
return !1;
|
|
1390
1505
|
return !0;
|
|
1391
1506
|
}
|
|
1392
|
-
function
|
|
1507
|
+
function fr(e, t = xn) {
|
|
1393
1508
|
let n = null;
|
|
1394
1509
|
function o(...s) {
|
|
1395
1510
|
if (n && n.lastThis === this && t(s, n.lastArgs))
|
|
@@ -1405,96 +1520,12 @@ function sr(e, t = gn) {
|
|
|
1405
1520
|
n = null;
|
|
1406
1521
|
}, o;
|
|
1407
1522
|
}
|
|
1408
|
-
const
|
|
1409
|
-
"input:not([disabled]):not([type=hidden])",
|
|
1410
|
-
"select:not([disabled])",
|
|
1411
|
-
"textarea:not([disabled])",
|
|
1412
|
-
"button:not([disabled])",
|
|
1413
|
-
"a[href]",
|
|
1414
|
-
"area[href]",
|
|
1415
|
-
"summary",
|
|
1416
|
-
"iframe",
|
|
1417
|
-
"object",
|
|
1418
|
-
"embed",
|
|
1419
|
-
"audio[controls]",
|
|
1420
|
-
"video[controls]",
|
|
1421
|
-
"[contenteditable]"
|
|
1422
|
-
];
|
|
1423
|
-
class cr {
|
|
1424
|
-
constructor(t) {
|
|
1425
|
-
this.rovingTabIndex = !0, this.update = () => {
|
|
1426
|
-
}, this.focusNextIndex = (n, o) => {
|
|
1427
|
-
const s = this.elements;
|
|
1428
|
-
let l = s.indexOf(n) + o;
|
|
1429
|
-
l = l < 0 ? s.length - 1 : l;
|
|
1430
|
-
const c = s[l % s.length];
|
|
1431
|
-
return this.focusElement(c, n), c;
|
|
1432
|
-
}, this.tabIndex = t.tabIndex || 0, this.root = t.root, this.selectors = t.selectors, this.focusOptions = t.focusOptions || { preventScroll: !0 }, this.rovingTabIndex = t.rovingTabIndex !== void 0 ? t.rovingTabIndex : !0, this.mouseEvents = t.mouseEvents || {}, this.keyboardEvents = t.keyboardEvents || {};
|
|
1433
|
-
}
|
|
1434
|
-
/**
|
|
1435
|
-
* Returns the collection of DOM elements which the module will navigate in.
|
|
1436
|
-
*/
|
|
1437
|
-
get elements() {
|
|
1438
|
-
return this.root.current ? Array.from(this.root.current.querySelectorAll(this.selectors.join(","))) : [];
|
|
1439
|
-
}
|
|
1440
|
-
/**
|
|
1441
|
-
* Returns the first navigation DOM element.
|
|
1442
|
-
*/
|
|
1443
|
-
get first() {
|
|
1444
|
-
return this.root.current && this.root.current.querySelector(this.selectors.join(",")) || null;
|
|
1445
|
-
}
|
|
1446
|
-
/**
|
|
1447
|
-
* Returns the last navigation DOM element.
|
|
1448
|
-
*/
|
|
1449
|
-
get last() {
|
|
1450
|
-
const t = this.elements;
|
|
1451
|
-
return t[t.length - 1] || null;
|
|
1452
|
-
}
|
|
1453
|
-
/**
|
|
1454
|
-
* Returns the focused DOM element from the navigation collection of DOM elements.
|
|
1455
|
-
*/
|
|
1456
|
-
get current() {
|
|
1457
|
-
return this.elements.find((t) => t.matches(":focus")) || null;
|
|
1458
|
-
}
|
|
1459
|
-
/**
|
|
1460
|
-
* Focuses the next element from the navigation collection of DOM elements.
|
|
1461
|
-
*/
|
|
1462
|
-
focusNext(t) {
|
|
1463
|
-
return this.focusNextIndex(t, 1);
|
|
1464
|
-
}
|
|
1465
|
-
/**
|
|
1466
|
-
* Focuses the previous element from the navigation collection of DOM elements.
|
|
1467
|
-
*/
|
|
1468
|
-
focusPrevious(t) {
|
|
1469
|
-
return this.focusNextIndex(t, -1);
|
|
1470
|
-
}
|
|
1471
|
-
/**
|
|
1472
|
-
* The keyboard events handler.
|
|
1473
|
-
*/
|
|
1474
|
-
triggerKeyboardEvent(t, n) {
|
|
1475
|
-
const o = t.target instanceof Element && t.target.closest(this.selectors.join(",")), s = t.key === " " ? "Space" : t.key, l = t.nativeEvent.type;
|
|
1476
|
-
o && this.keyboardEvents[l][s] && this.keyboardEvents[l][s].call(void 0, o, this, t, n);
|
|
1477
|
-
}
|
|
1478
|
-
/**
|
|
1479
|
-
* The mouse events handler.
|
|
1480
|
-
*/
|
|
1481
|
-
triggerMouseEvent(t) {
|
|
1482
|
-
const n = t.target instanceof Element && t.target.closest(this.selectors.join(",")), o = t.nativeEvent.type;
|
|
1483
|
-
n && this.mouseEvents[o].call(void 0, n, this, t);
|
|
1484
|
-
}
|
|
1485
|
-
/**
|
|
1486
|
-
* Focuses the passed element from the navigation collection of DOM elements.
|
|
1487
|
-
*/
|
|
1488
|
-
focusElement(t, n) {
|
|
1489
|
-
t && (n && (this.rovingTabIndex && n.removeAttribute("tabindex"), n.classList.remove("k-focus")), this.rovingTabIndex && t.setAttribute("tabindex", String(this.tabIndex)), t.focus(this.focusOptions));
|
|
1490
|
-
}
|
|
1491
|
-
}
|
|
1492
|
-
const de = (e) => {
|
|
1523
|
+
const fe = (e) => {
|
|
1493
1524
|
const t = e.shadowRoot, n = e.contentDocument;
|
|
1494
|
-
return t && t.activeElement ?
|
|
1495
|
-
},
|
|
1525
|
+
return t && t.activeElement ? fe(t.activeElement) : n && n.activeElement ? fe(n.activeElement) : e;
|
|
1526
|
+
}, hr = (e) => {
|
|
1496
1527
|
if (!(!e || !e.activeElement))
|
|
1497
|
-
return
|
|
1528
|
+
return fe(e.activeElement);
|
|
1498
1529
|
};
|
|
1499
1530
|
function k(e, t) {
|
|
1500
1531
|
const n = (e || "").split(".");
|
|
@@ -1503,10 +1534,10 @@ function k(e, t) {
|
|
|
1503
1534
|
o = o ? o[s] : void 0;
|
|
1504
1535
|
}), o;
|
|
1505
1536
|
}
|
|
1506
|
-
function
|
|
1537
|
+
function gr(e) {
|
|
1507
1538
|
return e.length !== void 0;
|
|
1508
1539
|
}
|
|
1509
|
-
class
|
|
1540
|
+
class mr {
|
|
1510
1541
|
constructor(t) {
|
|
1511
1542
|
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;
|
|
1512
1543
|
}
|
|
@@ -1542,124 +1573,124 @@ class ur {
|
|
|
1542
1573
|
return this.childrenField;
|
|
1543
1574
|
}
|
|
1544
1575
|
}
|
|
1545
|
-
const
|
|
1546
|
-
class
|
|
1576
|
+
const yn = 5e4;
|
|
1577
|
+
class pn {
|
|
1547
1578
|
constructor() {
|
|
1548
1579
|
this.objects = [];
|
|
1549
1580
|
}
|
|
1550
1581
|
init(t) {
|
|
1551
1582
|
let n;
|
|
1552
1583
|
for (let o = 0; o < t.length; o++)
|
|
1553
|
-
o %
|
|
1584
|
+
o % yn === 0 && (n = {}, this.objects.push(n)), n[t[o]] = !0;
|
|
1554
1585
|
}
|
|
1555
1586
|
hasId(t) {
|
|
1556
1587
|
return this.objects.some((n) => n[t]);
|
|
1557
1588
|
}
|
|
1558
1589
|
}
|
|
1559
|
-
const Y = "",
|
|
1560
|
-
function
|
|
1590
|
+
const Y = "", dt = "0", A = "_";
|
|
1591
|
+
function ft(e, t, n) {
|
|
1561
1592
|
if (J(e))
|
|
1562
1593
|
return t[Number(e)];
|
|
1563
1594
|
{
|
|
1564
|
-
const o = t[Number(
|
|
1565
|
-
return s.length ?
|
|
1595
|
+
const o = t[Number(B(e))], s = o && o[n] || [];
|
|
1596
|
+
return s.length ? ft(H(e), s, n) : void 0;
|
|
1566
1597
|
}
|
|
1567
1598
|
}
|
|
1568
|
-
function H(e) {
|
|
1569
|
-
return Ee(e) ? e : e.split(A)[0];
|
|
1570
|
-
}
|
|
1571
1599
|
function B(e) {
|
|
1572
|
-
|
|
1600
|
+
return be(e) ? e : e.split(A)[0];
|
|
1601
|
+
}
|
|
1602
|
+
function H(e) {
|
|
1603
|
+
if (be(e))
|
|
1573
1604
|
return e;
|
|
1574
1605
|
{
|
|
1575
1606
|
const t = e.indexOf(A);
|
|
1576
1607
|
return e.substring(t + 1);
|
|
1577
1608
|
}
|
|
1578
1609
|
}
|
|
1579
|
-
function
|
|
1610
|
+
function kn(e) {
|
|
1580
1611
|
return G("0", e);
|
|
1581
1612
|
}
|
|
1582
1613
|
function G(e, t) {
|
|
1583
1614
|
return e = e.toString(), t ? t + A + e : e;
|
|
1584
1615
|
}
|
|
1585
|
-
function
|
|
1616
|
+
function ht(e) {
|
|
1586
1617
|
const t = e.lastIndexOf(A);
|
|
1587
1618
|
return t < 0 ? Y : e.substring(0, t);
|
|
1588
1619
|
}
|
|
1589
|
-
function
|
|
1620
|
+
function be(e) {
|
|
1590
1621
|
return e === Y || e.indexOf(A) < 0;
|
|
1591
1622
|
}
|
|
1592
1623
|
function J(e) {
|
|
1593
1624
|
return e !== Y && e.indexOf(A) < 0;
|
|
1594
1625
|
}
|
|
1595
|
-
function
|
|
1626
|
+
function xe(e) {
|
|
1596
1627
|
return e.split(A);
|
|
1597
1628
|
}
|
|
1598
|
-
function
|
|
1629
|
+
function ye(e) {
|
|
1599
1630
|
const t = e.lastIndexOf(A);
|
|
1600
1631
|
return t < 0 ? e : e.substring(t + 1);
|
|
1601
1632
|
}
|
|
1602
|
-
function
|
|
1603
|
-
return
|
|
1633
|
+
function Dn(e) {
|
|
1634
|
+
return ye(e) === dt;
|
|
1604
1635
|
}
|
|
1605
|
-
function
|
|
1636
|
+
function An(e, t) {
|
|
1606
1637
|
const n = t;
|
|
1607
1638
|
e = "r" + A + e, t = "r" + A + t;
|
|
1608
|
-
const o =
|
|
1639
|
+
const o = ht(e) + A;
|
|
1609
1640
|
if (t.startsWith(o)) {
|
|
1610
1641
|
const s = t.substring(o.length);
|
|
1611
1642
|
if (s) {
|
|
1612
|
-
const l =
|
|
1613
|
-
if (Number(
|
|
1643
|
+
const l = B(s);
|
|
1644
|
+
if (Number(ye(e)) < Number(l)) {
|
|
1614
1645
|
const c = o + (Number(l) - 1).toString() + s.substring(l.length);
|
|
1615
|
-
return
|
|
1646
|
+
return H(c);
|
|
1616
1647
|
}
|
|
1617
1648
|
}
|
|
1618
1649
|
}
|
|
1619
1650
|
return n;
|
|
1620
1651
|
}
|
|
1621
|
-
const
|
|
1652
|
+
const vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1622
1653
|
__proto__: null,
|
|
1623
1654
|
EMPTY_ID: Y,
|
|
1624
1655
|
SEPARATOR: A,
|
|
1625
|
-
ZERO_LEVEL_ZERO_NODE_ID:
|
|
1656
|
+
ZERO_LEVEL_ZERO_NODE_ID: dt,
|
|
1626
1657
|
createId: G,
|
|
1627
|
-
getAllShortIds:
|
|
1628
|
-
getDecrementedItemIdAfterRemoval:
|
|
1629
|
-
getDirectParentId:
|
|
1630
|
-
getFirstChildId:
|
|
1631
|
-
getIdWithoutRootParentId:
|
|
1632
|
-
getItemById:
|
|
1633
|
-
getRootParentId:
|
|
1634
|
-
getShortId:
|
|
1635
|
-
isIdEmptyOrZeroLevel:
|
|
1658
|
+
getAllShortIds: xe,
|
|
1659
|
+
getDecrementedItemIdAfterRemoval: An,
|
|
1660
|
+
getDirectParentId: ht,
|
|
1661
|
+
getFirstChildId: kn,
|
|
1662
|
+
getIdWithoutRootParentId: H,
|
|
1663
|
+
getItemById: ft,
|
|
1664
|
+
getRootParentId: B,
|
|
1665
|
+
getShortId: ye,
|
|
1666
|
+
isIdEmptyOrZeroLevel: be,
|
|
1636
1667
|
isIdZeroLevel: J,
|
|
1637
|
-
isItemFirstFromSiblings:
|
|
1668
|
+
isItemFirstFromSiblings: Dn
|
|
1638
1669
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1639
|
-
function
|
|
1670
|
+
function gt(e, t) {
|
|
1640
1671
|
const n = k(t, e);
|
|
1641
1672
|
return !!(n && n.length);
|
|
1642
1673
|
}
|
|
1643
|
-
function
|
|
1644
|
-
return t.expanded(e) &&
|
|
1674
|
+
function Cr(e, t) {
|
|
1675
|
+
return t.expanded(e) && gt(e, t.getChildrenField());
|
|
1645
1676
|
}
|
|
1646
|
-
function
|
|
1647
|
-
const s =
|
|
1677
|
+
function Er(e, t, n, o) {
|
|
1678
|
+
const s = wn([e], t, n, o);
|
|
1648
1679
|
return s.length ? s[0] : void 0;
|
|
1649
1680
|
}
|
|
1650
|
-
function
|
|
1651
|
-
const s = [], l = new
|
|
1652
|
-
return l.init(e),
|
|
1681
|
+
function wn(e, t, n, o) {
|
|
1682
|
+
const s = [], l = new pn();
|
|
1683
|
+
return l.init(e), mt(l, t, n, Y, s, o), s;
|
|
1653
1684
|
}
|
|
1654
|
-
function
|
|
1655
|
-
const l = Number(
|
|
1685
|
+
function Pn(e, t, n, o, s) {
|
|
1686
|
+
const l = Number(B(t));
|
|
1656
1687
|
if (l >= e.length)
|
|
1657
1688
|
return e;
|
|
1658
1689
|
let c = e, i = e[l];
|
|
1659
|
-
return i[o] || (c = e.slice(), i = c[l] = Object.assign({}, i, { [o]: !0 })), J(t) ? n(i) : i[s] && (i[s] =
|
|
1690
|
+
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], H(t), n, o, s)), c;
|
|
1660
1691
|
}
|
|
1661
|
-
function
|
|
1662
|
-
const o =
|
|
1692
|
+
function br(e, t, n) {
|
|
1693
|
+
const o = xe(e);
|
|
1663
1694
|
let s = t;
|
|
1664
1695
|
for (let l = 0; l < o.length; l++) {
|
|
1665
1696
|
const c = s[Number(o[l])];
|
|
@@ -1669,7 +1700,7 @@ function gr(e, t, n) {
|
|
|
1669
1700
|
}
|
|
1670
1701
|
return !0;
|
|
1671
1702
|
}
|
|
1672
|
-
function
|
|
1703
|
+
function xr(e, t, n, o) {
|
|
1673
1704
|
return o ? l(e) : s(e, t);
|
|
1674
1705
|
function s(c, i) {
|
|
1675
1706
|
let h = [];
|
|
@@ -1688,11 +1719,11 @@ function mr(e, t, n, o) {
|
|
|
1688
1719
|
return i;
|
|
1689
1720
|
}
|
|
1690
1721
|
}
|
|
1691
|
-
function
|
|
1722
|
+
function yr(e, t, n, o, s) {
|
|
1692
1723
|
return (e[o] || []).every((c, i) => s.indexOf(n ? k(n, c) : G(i, t)) > -1);
|
|
1693
1724
|
}
|
|
1694
|
-
function
|
|
1695
|
-
const o = [], s =
|
|
1725
|
+
function pr(e, t, n) {
|
|
1726
|
+
const o = [], s = xe(e);
|
|
1696
1727
|
let l = n;
|
|
1697
1728
|
for (let c = 0; c < s.length - 1 && l; c++) {
|
|
1698
1729
|
const i = l[Number(s[c])];
|
|
@@ -1700,17 +1731,17 @@ function Cr(e, t, n) {
|
|
|
1700
1731
|
}
|
|
1701
1732
|
return o;
|
|
1702
1733
|
}
|
|
1703
|
-
function
|
|
1734
|
+
function In(e, t, n) {
|
|
1704
1735
|
const o = n.slice();
|
|
1705
1736
|
if (J(e))
|
|
1706
1737
|
o.splice(Number(e), 1);
|
|
1707
1738
|
else {
|
|
1708
|
-
const s = Number(
|
|
1709
|
-
l[t] =
|
|
1739
|
+
const s = Number(B(e)), l = o[s] = { ...o[s] };
|
|
1740
|
+
l[t] = In(H(e), t, l[t]);
|
|
1710
1741
|
}
|
|
1711
1742
|
return o;
|
|
1712
1743
|
}
|
|
1713
|
-
function
|
|
1744
|
+
function On(e, t, n, o, s) {
|
|
1714
1745
|
const l = s.slice();
|
|
1715
1746
|
if (J(o))
|
|
1716
1747
|
if (t === "child") {
|
|
@@ -1719,97 +1750,102 @@ function kn(e, t, n, o, s) {
|
|
|
1719
1750
|
} else
|
|
1720
1751
|
l.splice(Number(o) + (t === "after" ? 1 : 0), 0, e);
|
|
1721
1752
|
else {
|
|
1722
|
-
const c = Number(
|
|
1723
|
-
i[n] =
|
|
1753
|
+
const c = Number(B(o)), i = l[c] = { ...l[c] };
|
|
1754
|
+
i[n] = On(e, t, n, H(o), i[n]);
|
|
1724
1755
|
}
|
|
1725
1756
|
return l;
|
|
1726
1757
|
}
|
|
1727
|
-
function
|
|
1758
|
+
function mt(e, t, n, o, s, l) {
|
|
1728
1759
|
for (let c = 0; c < n.length; c++) {
|
|
1729
1760
|
const i = n[c], h = G(c, o);
|
|
1730
|
-
e.hasId(k(t, i)) && s.push(h),
|
|
1761
|
+
e.hasId(k(t, i)) && s.push(h), gt(i, l) && mt(e, t, k(l, i), h, s, l);
|
|
1731
1762
|
}
|
|
1732
1763
|
}
|
|
1733
1764
|
export {
|
|
1734
|
-
|
|
1735
|
-
|
|
1765
|
+
er as AsyncFocusBlur,
|
|
1766
|
+
_e as BrowserSupportService,
|
|
1736
1767
|
X as COLLECTION_ACTION,
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
et as
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1768
|
+
vn as DragAndDrop,
|
|
1769
|
+
Cn as Draggable,
|
|
1770
|
+
En as Droppable,
|
|
1771
|
+
nt as FOCUSABLE_ELEMENTS,
|
|
1772
|
+
Qn as FormComponent,
|
|
1773
|
+
Ce as Icon,
|
|
1774
|
+
Wt as IconWrap,
|
|
1775
|
+
ut as IconsContext,
|
|
1776
|
+
V as Keys,
|
|
1777
|
+
Bn as Navigation,
|
|
1778
|
+
pn as SortedPublicItemIds,
|
|
1779
|
+
Ee as SvgIcon,
|
|
1780
|
+
mr as TreeFieldsService,
|
|
1781
|
+
ur as Typography,
|
|
1782
|
+
_n as WatermarkOverlay,
|
|
1783
|
+
We as ZIndexContext,
|
|
1784
|
+
On as addItem,
|
|
1785
|
+
jn as applyTrappedFocus,
|
|
1786
|
+
yr as areAllDirectChildrenChecked,
|
|
1787
|
+
he as canUseDOM,
|
|
1788
|
+
Tn as canUseRef,
|
|
1789
|
+
$e as classNames,
|
|
1790
|
+
Nn as clone,
|
|
1791
|
+
St as cloneArray,
|
|
1792
|
+
Mt as cloneDate,
|
|
1793
|
+
et as cloneObject,
|
|
1794
|
+
tt as cloneValue,
|
|
1795
|
+
tr as createPropsContext,
|
|
1796
|
+
$n as dispatchEvent,
|
|
1797
|
+
Zn as extendDataItem,
|
|
1798
|
+
rt as firstFocusableChild,
|
|
1799
|
+
Rt as focusFirstFocusableChild,
|
|
1800
|
+
Hn as focusLastFocusableChild,
|
|
1801
|
+
hr as getActiveElement,
|
|
1802
|
+
xr as getAllDirectIndirectChildrenIds,
|
|
1803
|
+
pr as getAllParents,
|
|
1804
|
+
fe as getInnerActiveElement,
|
|
1805
|
+
Kn as getItemPath,
|
|
1772
1806
|
k as getNestedValue,
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1807
|
+
Xn as getScrollbarWidth,
|
|
1808
|
+
zn as getTabIndex,
|
|
1809
|
+
Fn as getter,
|
|
1810
|
+
Ge as guid,
|
|
1811
|
+
gt as hasChildren,
|
|
1812
|
+
Wn as hasRelativeStackingContext,
|
|
1813
|
+
gr as isArray,
|
|
1814
|
+
br as isEnabledAndAllParentsEnabled,
|
|
1815
|
+
Cr as isItemExpandedAndWithChildren,
|
|
1816
|
+
Lt as keepFocusInContainer,
|
|
1817
|
+
dr as kendoThemeMaps,
|
|
1818
|
+
ot as lastFocusableChild,
|
|
1819
|
+
Jn as mapTree,
|
|
1820
|
+
Un as mapTreeItem,
|
|
1821
|
+
fr as memoizeOne,
|
|
1786
1822
|
C as noop,
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1823
|
+
In as removeItem,
|
|
1824
|
+
Er as resolveItemId,
|
|
1825
|
+
wn as resolveItemsIds,
|
|
1826
|
+
Yn as setScrollbarWidth,
|
|
1827
|
+
Gn as setter,
|
|
1828
|
+
qn as shouldShowValidationUI,
|
|
1829
|
+
ir as svgIconPropType,
|
|
1830
|
+
Zt as toIconClass,
|
|
1831
|
+
ar as toIconName,
|
|
1832
|
+
vr as treeIdUtils,
|
|
1833
|
+
Pn as updateItem,
|
|
1834
|
+
zt as useAsyncFocusBlur,
|
|
1835
|
+
Ze as useCollection,
|
|
1836
|
+
lr as useCustomComponent,
|
|
1837
|
+
or as useDir,
|
|
1838
|
+
Ut as useDocument,
|
|
1839
|
+
Vt as useDraggable,
|
|
1840
|
+
qt as useDroppable,
|
|
1841
|
+
Xt as useId,
|
|
1842
|
+
ge as useIsomorphicLayoutEffect,
|
|
1843
|
+
Yt as useMouse,
|
|
1844
|
+
Ft as usePropsContext,
|
|
1845
|
+
sr as useRtl,
|
|
1846
|
+
cr as useWindow,
|
|
1847
|
+
Ln as useZIndexContext,
|
|
1848
|
+
Vn as validatePackage,
|
|
1849
|
+
rr as withIdHOC,
|
|
1850
|
+
nr as withPropsContext
|
|
1815
1851
|
};
|