@progress/kendo-react-common 7.2.4-develop.3 → 7.3.0-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.
Files changed (203) hide show
  1. package/Draggable.js +8 -0
  2. package/Draggable.mjs +79 -0
  3. package/Droppable.js +8 -0
  4. package/Droppable.mjs +64 -0
  5. package/FormComponent.js +8 -0
  6. package/FormComponent.mjs +13 -0
  7. package/browser-support.service.js +8 -0
  8. package/browser-support.service.mjs +25 -0
  9. package/canUseDOM.js +8 -0
  10. package/canUseDOM.mjs +13 -0
  11. package/canUseRef.js +8 -0
  12. package/canUseRef.mjs +15 -0
  13. package/classNames.js +8 -0
  14. package/classNames.mjs +17 -0
  15. package/clone.js +8 -0
  16. package/clone.mjs +44 -0
  17. package/constants/index.js +8 -0
  18. package/constants/index.mjs +12 -0
  19. package/contexts/ZIndexContext.js +8 -0
  20. package/contexts/ZIndexContext.mjs +15 -0
  21. package/dist/cdn/js/kendo-react-common.js +8 -5
  22. package/drag-n-drop/context/index.js +8 -0
  23. package/drag-n-drop/context/index.mjs +23 -0
  24. package/drag-n-drop/index.js +8 -0
  25. package/drag-n-drop/index.mjs +46 -0
  26. package/events/dispatchEvent.js +8 -0
  27. package/events/dispatchEvent.mjs +21 -0
  28. package/fieldList.js +8 -0
  29. package/fieldList.mjs +18 -0
  30. package/getActiveElement.js +8 -0
  31. package/getActiveElement.mjs +19 -0
  32. package/getTabIndex.js +8 -0
  33. package/getTabIndex.mjs +16 -0
  34. package/getter.js +8 -0
  35. package/getter.mjs +26 -0
  36. package/guid.js +8 -0
  37. package/guid.mjs +17 -0
  38. package/hasRelativeStackingContext.js +8 -0
  39. package/hasRelativeStackingContext.mjs +25 -0
  40. package/hocs/AsyncFocusBlur.js +8 -0
  41. package/hocs/AsyncFocusBlur.mjs +23 -0
  42. package/hocs/use-id-hoc.js +8 -0
  43. package/hocs/use-id-hoc.mjs +17 -0
  44. package/hocs/withPropsContext.js +8 -0
  45. package/hocs/withPropsContext.mjs +18 -0
  46. package/hooks/use-id.js +8 -0
  47. package/hooks/use-id.mjs +35 -0
  48. package/hooks/use-isomorphic-layout-effect.js +8 -0
  49. package/hooks/use-isomorphic-layout-effect.mjs +13 -0
  50. package/hooks/useAsyncFocusBlur.js +8 -0
  51. package/hooks/useAsyncFocusBlur.mjs +38 -0
  52. package/hooks/useCollection.js +8 -0
  53. package/hooks/useCollection.mjs +32 -0
  54. package/hooks/useControlledState.js +8 -0
  55. package/hooks/useControlledState.mjs +21 -0
  56. package/hooks/useCustomComponent.js +8 -0
  57. package/hooks/useCustomComponent.mjs +22 -0
  58. package/hooks/useDir.js +8 -0
  59. package/hooks/useDir.mjs +24 -0
  60. package/hooks/useDocument.js +8 -0
  61. package/hooks/useDocument.mjs +22 -0
  62. package/hooks/useDraggable.js +8 -0
  63. package/hooks/useDraggable.mjs +308 -0
  64. package/hooks/useDroppable.js +8 -0
  65. package/hooks/useDroppable.mjs +67 -0
  66. package/hooks/useInheritedState.js +8 -0
  67. package/hooks/useInheritedState.mjs +21 -0
  68. package/hooks/useMouse.js +8 -0
  69. package/hooks/useMouse.mjs +98 -0
  70. package/hooks/usePropsContext.js +8 -0
  71. package/hooks/usePropsContext.mjs +13 -0
  72. package/hooks/useRtl.js +8 -0
  73. package/hooks/useRtl.mjs +24 -0
  74. package/hooks/useWindow.js +8 -0
  75. package/hooks/useWindow.mjs +20 -0
  76. package/icons/Icon.js +8 -0
  77. package/icons/Icon.mjs +92 -0
  78. package/icons/IconWrap.js +8 -0
  79. package/icons/IconWrap.mjs +24 -0
  80. package/icons/IconsContext.js +8 -0
  81. package/icons/IconsContext.mjs +14 -0
  82. package/icons/SvgIcon.js +8 -0
  83. package/icons/SvgIcon.mjs +124 -0
  84. package/icons/constants.js +8 -0
  85. package/icons/constants.mjs +21 -0
  86. package/icons/utils.js +8 -0
  87. package/icons/utils.mjs +19 -0
  88. package/index.d.mts +1771 -5
  89. package/index.d.ts +1771 -65
  90. package/index.js +8 -5
  91. package/index.mjs +147 -1848
  92. package/keys.js +8 -0
  93. package/keys.mjs +28 -0
  94. package/memoize.js +8 -0
  95. package/memoize.mjs +38 -0
  96. package/navigation.js +8 -0
  97. package/navigation.mjs +97 -0
  98. package/noop.js +8 -0
  99. package/noop.mjs +13 -0
  100. package/package.json +1 -1
  101. package/scrollbarWidth.js +8 -0
  102. package/scrollbarWidth.mjs +20 -0
  103. package/setter.js +8 -0
  104. package/setter.mjs +27 -0
  105. package/theme.js +8 -0
  106. package/theme.mjs +27 -0
  107. package/trappedFocus.js +8 -0
  108. package/trappedFocus.mjs +58 -0
  109. package/tree-utils/FieldsService.js +8 -0
  110. package/tree-utils/FieldsService.mjs +48 -0
  111. package/tree-utils/SortedPublicItemIds.js +8 -0
  112. package/tree-utils/SortedPublicItemIds.mjs +24 -0
  113. package/tree-utils/itemIdUtils.js +8 -0
  114. package/tree-utils/itemIdUtils.mjs +87 -0
  115. package/tree-utils/itemUtils.js +8 -0
  116. package/tree-utils/itemUtils.mjs +118 -0
  117. package/tree-utils/misc.js +8 -0
  118. package/tree-utils/misc.mjs +22 -0
  119. package/treeDataOperations.js +8 -0
  120. package/treeDataOperations.mjs +45 -0
  121. package/typography/Typography.js +8 -0
  122. package/typography/Typography.mjs +110 -0
  123. package/typography/constants.js +8 -0
  124. package/typography/constants.mjs +71 -0
  125. package/validate-package.js +8 -0
  126. package/validate-package.mjs +20 -0
  127. package/watermark/WatermarkOverlay.js +8 -0
  128. package/watermark/WatermarkOverlay.mjs +93 -0
  129. package/Draggable.d.ts +0 -90
  130. package/Droppable.d.ts +0 -81
  131. package/FormComponent.d.ts +0 -167
  132. package/browser-support.service.d.ts +0 -11
  133. package/canUseDOM.d.ts +0 -8
  134. package/canUseRef.d.ts +0 -9
  135. package/classNames.d.ts +0 -8
  136. package/clone.d.ts +0 -24
  137. package/constants/index.d.ts +0 -8
  138. package/contexts/ZIndexContext.d.ts +0 -11
  139. package/drag-n-drop/context/index.d.ts +0 -23
  140. package/drag-n-drop/index.d.ts +0 -25
  141. package/events/BaseEvent.d.ts +0 -22
  142. package/events/dispatchEvent.d.ts +0 -18
  143. package/fieldList.d.ts +0 -8
  144. package/getActiveElement.d.ts +0 -12
  145. package/getTabIndex.d.ts +0 -8
  146. package/getter.d.ts +0 -18
  147. package/guid.d.ts +0 -8
  148. package/hasRelativeStackingContext.d.ts +0 -6
  149. package/hocs/AsyncFocusBlur.d.ts +0 -17
  150. package/hocs/use-id-hoc.d.ts +0 -7
  151. package/hocs/withPropsContext.d.ts +0 -9
  152. package/hooks/index.d.ts +0 -16
  153. package/hooks/use-id.d.ts +0 -6
  154. package/hooks/use-isomorphic-layout-effect.d.ts +0 -7
  155. package/hooks/useAsyncFocusBlur.d.ts +0 -29
  156. package/hooks/useCollection.d.ts +0 -18
  157. package/hooks/useControlledState.d.ts +0 -11
  158. package/hooks/useCustomComponent.d.ts +0 -15
  159. package/hooks/useDir.d.ts +0 -9
  160. package/hooks/useDocument.d.ts +0 -11
  161. package/hooks/useDraggable.d.ts +0 -67
  162. package/hooks/useDroppable.d.ts +0 -32
  163. package/hooks/useInheritedState.d.ts +0 -17
  164. package/hooks/useMouse.d.ts +0 -24
  165. package/hooks/usePropsContext.d.ts +0 -7
  166. package/hooks/useRtl.d.ts +0 -9
  167. package/hooks/useWindow.d.ts +0 -11
  168. package/icons/BaseIconProps.d.ts +0 -76
  169. package/icons/Icon.d.ts +0 -39
  170. package/icons/IconWrap.d.ts +0 -11
  171. package/icons/IconsContext.d.ts +0 -25
  172. package/icons/SvgIcon.d.ts +0 -75
  173. package/icons/constants.d.ts +0 -17
  174. package/icons/models/flip.d.ts +0 -15
  175. package/icons/models/size.d.ts +0 -19
  176. package/icons/models/theme-color.d.ts +0 -25
  177. package/icons/utils.d.ts +0 -21
  178. package/keys.d.ts +0 -24
  179. package/memoize.d.ts +0 -14
  180. package/models/auto-scroll-options.d.ts +0 -26
  181. package/models/index.d.ts +0 -9
  182. package/models/kendoReactComponentBaseProps.d.ts +0 -27
  183. package/models/mouse.d.ts +0 -20
  184. package/models/pointer.d.ts +0 -27
  185. package/models/touch.d.ts +0 -21
  186. package/navigation.d.ts +0 -131
  187. package/noop.d.ts +0 -8
  188. package/scrollbarWidth.d.ts +0 -12
  189. package/setter.d.ts +0 -20
  190. package/theme.d.ts +0 -12
  191. package/trappedFocus.d.ts +0 -28
  192. package/tree-utils/FieldsService.d.ts +0 -29
  193. package/tree-utils/SortedPublicItemIds.d.ts +0 -12
  194. package/tree-utils/itemIdUtils.d.ts +0 -64
  195. package/tree-utils/itemUtils.d.ts +0 -49
  196. package/tree-utils/misc.d.ts +0 -12
  197. package/treeDataOperations.d.ts +0 -43
  198. package/typography/Typography.d.ts +0 -39
  199. package/typography/TypographyProps.d.ts +0 -124
  200. package/typography/constants.d.ts +0 -88
  201. package/typography/models/margin.d.ts +0 -27
  202. package/validate-package.d.ts +0 -13
  203. package/watermark/WatermarkOverlay.d.ts +0 -9
package/index.mjs CHANGED
@@ -1,1851 +1,150 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
5
8
  "use client";
6
- import * as r from "react";
7
- import { validatePackage as qe } from "@progress/kendo-licensing";
8
- import * as Dt from "react-dom";
9
- import g from "prop-types";
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
- constructor() {
16
- this.scrollbar = 0;
17
- }
18
- get scrollbarWidth() {
19
- const t = Pt();
20
- if (!this.scrollbar && t && t.createElement) {
21
- const n = t.createElement("div");
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);
23
- }
24
- return this.scrollbar;
25
- }
26
- }
27
- const he = !!// from fbjs
28
- (typeof window != "undefined" && window.document && window.document.createElement), It = (e) => {
29
- var t;
30
- return !!(typeof e == "function" && ((t = e.prototype) != null && t.isReactComponent));
31
- }, Ot = (e) => !!(e.$$typeof && typeof e.render == "function"), Tn = (e) => typeof Comment != "string" && (It(e) || Ot(e)), $e = (...e) => {
32
- const t = {}, n = (s) => typeof s == "object" ? Object.keys(s).forEach((l) => {
33
- t[l] = s[l];
34
- }) : t[s] = !0, o = (s) => s.filter((l) => l !== !0 && !!l).map((l) => Array.isArray(l) ? o(l) : n(l));
35
- return o(e), Object.keys(t).map((s) => t[s] && s || null).filter((s) => s !== null).join(" ");
36
- }, Mt = (e) => e ? new Date(e.getTime()) : null;
37
- function Nn(e) {
38
- const t = {};
39
- return et(e, t), t;
40
- }
41
- function et(e, t) {
42
- for (let n in e)
43
- if (e.hasOwnProperty(n)) {
44
- const o = e[n];
45
- t[n] = tt(o, t[n]);
46
- }
47
- }
48
- function tt(e, t) {
49
- if (Array.isArray(e))
50
- return St(e);
51
- if (e instanceof Date)
52
- return Mt(e);
53
- if (r.isValidElement(e))
54
- return r.cloneElement(e, e.props);
55
- if (e && typeof e == "object") {
56
- const n = t || {};
57
- return et(e, n), n;
58
- } else
59
- return e;
60
- }
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
- }
164
- }
165
- const rt = (e) => {
166
- if (e) {
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;
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);
204
- };
205
- class Qn {
206
- }
207
- const Tt = -1, Nt = 0, zn = (e, t, n) => {
208
- const o = typeof e == "string" ? parseInt(e) : e;
209
- if (!Number.isNaN(o))
210
- return o !== void 0 ? o : t ? n ? void 0 : Tt : Nt;
211
- }, Bt = /\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;
212
- function st(e) {
213
- const t = [];
214
- return e.replace(Bt, function(n, o, s, l) {
215
- t.push(o !== void 0 ? o : s || l);
216
- }), t;
217
- }
218
- const z = {};
219
- z.undefined = () => {
220
- };
221
- function Fn(e) {
222
- if (z[e])
223
- return z[e];
224
- const t = st(e);
225
- return z[e] = function(n) {
226
- let o = n;
227
- for (let s = 0; s < t.length && o; s++)
228
- o = o[t[s]];
229
- return o;
230
- }, z[e];
231
- }
232
- const Ge = () => {
233
- let e = "", t, n;
234
- for (t = 0; t < 32; t++)
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);
236
- return e;
237
- }, C = function() {
238
- }, Xn = () => !he || !document.body ? !1 : new _e().scrollbarWidth, Yn = () => {
239
- if (!he || !document.body)
240
- return !1;
241
- let e = new _e().scrollbarWidth;
242
- document.body.style.setProperty("--kendo-scrollbar-width", `${e}px`);
243
- }, F = {};
244
- F.undefined = (e) => e;
245
- const Ht = (e, t) => t && t.arrays && !isNaN(Number(e)) ? [] : {};
246
- function Gn(e) {
247
- if (F[e])
248
- return F[e];
249
- const t = st(e);
250
- return F[e] = (n, o, s) => {
251
- let l = n;
252
- const c = t.length - 1;
253
- for (let i = 0; i < c && l; i++)
254
- l = l[t[i]] = l[t[i]] || Ht(t[i + 1], s);
255
- l[t[c]] = o;
256
- }, F[e];
257
- }
258
- function Je(e, t, n) {
259
- return n ? { ...e, [t]: n.length ? [...n] : void 0 } : e && e[t] ? [...e[t]] : [];
260
- }
261
- function lt(e, t, n) {
262
- if (e[t]) {
263
- let o = Je(e, t).map((s) => lt(s, t, n));
264
- return n(Je(e, t, o));
265
- }
266
- return n(e);
267
- }
268
- const Jn = (e, t, n) => [...e.map((o) => lt(o, t, n))], Un = (e, t, n, o) => {
269
- let s = e;
270
- const l = [];
271
- for (let f = 0; f < t.length; f++)
272
- s = s[t[f]], s = Array.isArray(s) ? s : s[n], l.push(s);
273
- const c = l.length > 1 ? l[l.length - 2] : e, i = t[t.length - 1], h = o(c[i]);
274
- c.splice(i, 1, h);
275
- }, Zn = (e, t, n) => Object.assign(
276
- {},
277
- e,
278
- e[t] ? { [t]: e[t].slice() } : {},
279
- n || {}
280
- ), Kn = (e, t, n) => {
281
- const o = [], s = [...t];
282
- if (s.length) {
283
- let l = e[s.shift() || 0];
284
- for (o.push(l); s.length && n; )
285
- l = l[n][s.shift() || 0], o.push(l);
286
- }
287
- return o;
288
- }, jt = ["telerik.com", "progress.com", "stackblitz.io", "csb.app"], Vn = qe;
289
- function qn(e) {
290
- return !jt.some((n) => {
291
- var o;
292
- return (o = globalThis.document) == null ? void 0 : o.location.hostname.endsWith(n);
293
- }) && !qe(e);
294
- }
295
- const Wn = (e) => {
296
- if (!he)
297
- return !1;
298
- const t = e ? e.ownerDocument : document;
299
- if (!t || !t.body)
300
- return !1;
301
- const n = 10, o = t.createElement("div");
302
- o.style.transform = "matrix(10, 0, 0, 10, 0, 0)";
303
- const s = t.createElement("div");
304
- s.appendChild(t.createTextNode("child")), s.style.position = "fixed", s.style.top = n + "px", o.appendChild(s), t.body.appendChild(o);
305
- const l = s.getBoundingClientRect().top !== n;
306
- return t.body.removeChild(o), l;
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 = () => {
310
- const [e, t] = r.useState(!0), [n, o] = r.useState(!1);
311
- r.useEffect(() => {
312
- Ue || (o(!0), Ue = !0);
313
- }, []);
314
- const s = () => {
315
- t(!1);
316
- }, l = /* @__PURE__ */ r.createElement(r.Fragment, null, e && /* @__PURE__ */ r.createElement("div", { style: {
317
- display: "flex",
318
- justifyContent: "center",
319
- alignItems: "center",
320
- position: "fixed",
321
- top: "16px",
322
- right: "16px",
323
- padding: "12px",
324
- borderRadius: "4px",
325
- boxShadow: "0px 4px 5px 0px rgba(0, 0, 0, 0.04), 0px 2px 4px 0px rgba(0, 0, 0, 0.03)",
326
- fontSize: "14px",
327
- fontWeight: 400,
328
- lineHeight: "20px",
329
- backgroundColor: "#FFC000",
330
- color: "#1E1E1E",
331
- zIndex: 999
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(
333
- "button",
334
- {
335
- title: "Learn More",
336
- style: {
337
- display: "inline-flex",
338
- position: "relative",
339
- border: "none",
340
- borderRadius: "4px",
341
- padding: "5px",
342
- backgroundColor: "transparent",
343
- transition: "color 0.2s ease-in-out",
344
- outline: "none",
345
- cursor: "pointer"
346
- }
347
- },
348
- /* @__PURE__ */ r.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ r.createElement("path", { d: "M15 8C15 11.8656 11.8656 15 8 15C4.13437 15 1 11.8656 1 8C1 4.13437 4.13437 1 8 1C11.8656 1 15 4.13437 15 8ZM14 8C14 4.6875 11.3125 2 8 2C4.6875 2 2 4.6875 2 8C2 11.3125 4.6875 14 8 14C11.3125 14 14 11.3125 14 8ZM11 6C11 7.4125 10.2687 8.05937 9.73125 8.53125C9.25937 8.94688 9 9.17813 9 10H7C7 8.275 7.84688 7.525 8.40938 7.03125C8.84062 6.65312 9 6.50938 9 6C9 5.45 8.55 5 8 5C7.45 5 7 5.45 7 6H5C5 4.34375 6.34375 3 8 3C9.65625 3 11 4.34375 11 6ZM9 13V11H7V13H9Z", fill: "#1E1E1E" }))
349
- )), /* @__PURE__ */ r.createElement(
350
- "button",
351
- {
352
- title: "Close",
353
- style: {
354
- display: "inline-flex",
355
- position: "relative",
356
- border: "none",
357
- borderRadius: "4px",
358
- padding: "5px",
359
- backgroundColor: "transparent",
360
- transition: "color 0.2s ease-in-out",
361
- outline: "none",
362
- cursor: "pointer"
363
- },
364
- onClick: s
365
- },
366
- /* @__PURE__ */ r.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, /* @__PURE__ */ r.createElement("path", { d: "M13 4.41562L9.41563 8L13 11.5844L11.5844 13L8 9.41563L4.41562 13L3 11.5844L6.58437 8L3 4.41562L4.41562 3L8 6.58437L11.5844 3L13 4.41562Z", fill: "#1E1E1E" }))
367
- ))));
368
- return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
369
- "div",
370
- {
371
- style: {
372
- position: "absolute",
373
- width: "100%",
374
- height: "100%",
375
- top: 0,
376
- left: 0,
377
- right: 0,
378
- bottom: 0,
379
- opacity: 0.12,
380
- zIndex: 101,
381
- pointerEvents: "none",
382
- backgroundImage: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABVxSURBVHgB7Z3tVRtJE4WL9zgANgLLGRCCnAGOADmCxRGgDFAGYiOADKQMIAGO9J8ji42g37mjqlUjBgOanpn+uM85s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bBJqqmgr5NO6gGYc5gTYHe/qC+gfC7bv3jCUx3K5ibepYmPJp3BvNXNyut+M0xpn/EOpPyBG4AM1cCCEJkmLMhxASiKenp3saf4Fg2Vc9FsjpSuZo3hr/115r1lMAe+bNZrPO2fip/wH+nq9iKZkD8ZknLhfq79EQ8MneK7JYpGyov5JShV9oOAjKvnSjeP1LNn6j5EHgWl7akgPF6k/j31PiIGCef09x+jPP+5qSBgGd/2uKcgIHEdCJkBp/EOSaCaHxv00J+tdoDnRJ8V+jtePLHGshaPzvk7P+pGC47SOkYCqDn6FvH42fkAJxuyPdaN01FlIGbnc/37TkFE8o3L4nAmvHCyQ5/S3gw24oYXAvuyKxbLgwktK/xNr+rsFqKpU8sa78Zlz5hSMZ/Znq6Y4UikVMf72oYyYkGNHrT+PvnpgHAVd+3ROt/jT+/ohxEFD//ohOf4rfPzENAurfP1E5AVzPRPH7xx8EuJ1WBoDGPxyH+ruhjlTjbnR9AxMhvYLPHA4YGkjPIMpP4x+WIfUnhYMZx2voMRFCSFlohVqR3XwIIaQc3O5OtrGQJFC9RkKKRCsyRxICi/YuFgvs986ERA3Eh1ahUkT4GQg0Vc9XQqInqP6ODRyTA046VJ7Y1x/XdgmJnmD6M8+bLiGKRVjemy6t9WeeN30aBsGHI/bUP33a6M88bybYIPjs9o3658Gx+tuLmefNgGN1pP55QB0JIYQQQgghhBBCCJGy+T9ftRg+rVNPfAAAAABJRU5ErkJggg==')"
383
- }
384
- }
385
- ), n && Dt.createPortal(l, document.body));
386
- };
387
- function $n(e, t, n, o) {
388
- if (e) {
389
- const s = {
390
- syntheticEvent: t,
391
- nativeEvent: t.nativeEvent,
392
- target: n
393
- };
394
- e.call(void 0, Object.assign(s, o));
395
- }
396
- }
397
- function zt({ onFocus: e, onBlur: t, onSyncFocus: n, onSyncBlur: o }) {
398
- const s = r.useRef(!1), l = r.useRef(0), c = r.useCallback(
399
- (f) => {
400
- clearTimeout(l.current), l.current = window.setTimeout(() => f());
401
- },
402
- [l]
403
- ), i = r.useCallback(
404
- (...f) => {
405
- clearTimeout(l.current), n && n.call(void 0, f[0]), !s.current && (s.current = !0, e && e.call(void 0, ...f));
406
- },
407
- [s, e, n]
408
- ), h = r.useCallback(
409
- (...f) => {
410
- o && o.call(void 0, f[0]), c(() => {
411
- s.current && t && (s.current = !1, t.call(void 0, ...f));
412
- });
413
- },
414
- [s, c, t, o]
415
- );
416
- return r.useEffect(() => () => {
417
- clearTimeout(l.current);
418
- }, []), {
419
- onFocus: i,
420
- onBlur: h
421
- };
422
- }
423
- const er = ({
424
- children: e,
425
- onFocus: t,
426
- onBlur: n,
427
- onSyncFocus: o,
428
- onSyncBlur: s
429
- }) => {
430
- const l = zt({ onFocus: t, onBlur: n, onSyncFocus: o, onSyncBlur: s });
431
- return /* @__PURE__ */ r.createElement(r.Fragment, null, e.call(void 0, { ...l }));
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);
434
- return /* @__PURE__ */ r.createElement(t, { ...s, ref: o });
435
- }), ge = typeof window != "undefined" ? r.useLayoutEffect : r.useEffect;
436
- function Xt(e) {
437
- const [t, n] = r.useState(!1);
438
- r.useEffect(() => {
439
- n(!0);
440
- }, []);
441
- const [o, s] = r.useState(() => {
442
- if (e)
443
- return e;
444
- if (t)
445
- return Ge();
446
- });
447
- ge(() => {
448
- o === void 0 && s(Ge());
449
- }, []);
450
- const l = r["useId".toString()];
451
- if (l !== void 0) {
452
- const c = l();
453
- return e != null ? e : c;
454
- }
455
- return o;
456
- }
457
- const rr = (e) => r.forwardRef((t, n) => {
458
- const o = Xt(t.id);
459
- return /* @__PURE__ */ r.createElement(e, { ...t, id: o, ref: n });
460
- });
461
- function or(e, t, n) {
462
- const [o, s] = r.useState(t);
463
- return r.useEffect(
464
- () => {
465
- if (!o && window && e.current) {
466
- const l = window.getComputedStyle(e.current).direction;
467
- l && s(l);
468
- }
469
- },
470
- n
471
- ), o;
472
- }
473
- function sr(e, t, n) {
474
- const [o, s] = r.useState(t);
475
- return r.useEffect(
476
- () => {
477
- if (!o && window && e.current) {
478
- const l = window.getComputedStyle(e.current).direction;
479
- l && s(l);
480
- }
481
- },
482
- n
483
- ), o;
484
- }
485
- const Yt = (e, t, n = {}) => {
486
- const o = r.useCallback(
487
- (u) => {
488
- n.onMouseDown && n.onMouseDown.call(void 0, u), e.onMouseDown && e.onMouseDown.call(void 0, {
489
- target: t.current,
490
- syntheticEvent: u
491
- });
492
- },
493
- [n.onMouseDown, e.onMouseDown, t]
494
- ), s = r.useCallback(
495
- (u) => {
496
- n.onMouseUp && n.onMouseUp.call(void 0, u), e.onMouseUp && e.onMouseUp.call(void 0, {
497
- target: t.current,
498
- syntheticEvent: u
499
- });
500
- },
501
- [n.onMouseUp, e.onMouseUp, t]
502
- ), l = r.useCallback(
503
- (u) => {
504
- n.onClick && n.onClick.call(void 0, u), e.onClick && e.onClick.call(void 0, {
505
- target: t.current,
506
- syntheticEvent: u
507
- });
508
- },
509
- [n.onClick, e.onClick, t]
510
- ), c = r.useCallback(
511
- (u) => {
512
- n.onDoubleClick && n.onDoubleClick.call(void 0, u), e.onDoubleClick && e.onDoubleClick.call(void 0, {
513
- target: t.current,
514
- syntheticEvent: u
515
- });
516
- },
517
- [n.onDoubleClick, e.onDoubleClick, t]
518
- ), i = r.useCallback(
519
- (u) => {
520
- n.onMouseEnter && n.onMouseEnter.call(void 0, u), e.onMouseEnter && e.onMouseEnter.call(void 0, {
521
- target: t.current,
522
- syntheticEvent: u
523
- });
524
- },
525
- [n.onMouseEnter, e.onMouseEnter, t]
526
- ), h = r.useCallback(
527
- (u) => {
528
- n.onMouseLeave && n.onMouseLeave.call(void 0, u), e.onMouseLeave && e.onMouseLeave.call(void 0, {
529
- target: t.current,
530
- syntheticEvent: u
531
- });
532
- },
533
- [n.onMouseLeave, e.onMouseLeave, t]
534
- ), f = r.useCallback(
535
- (u) => {
536
- n.onMouseMove && n.onMouseMove.call(void 0, u), e.onMouseMove && e.onMouseMove.call(void 0, {
537
- target: t.current,
538
- syntheticEvent: u
539
- });
540
- },
541
- [n.onMouseMove, e.onMouseMove, t]
542
- ), d = r.useCallback(
543
- (u) => {
544
- n.onMouseOut && n.onMouseOut.call(void 0, u), e.onMouseOut && e.onMouseOut.call(void 0, {
545
- target: t.current,
546
- syntheticEvent: u
547
- });
548
- },
549
- [n.onMouseOut, e.onMouseOut, t]
550
- ), m = r.useCallback(
551
- (u) => {
552
- n.onMouseOver && n.onMouseOver.call(void 0, u), e.onMouseOver && e.onMouseOver.call(void 0, {
553
- target: t.current,
554
- syntheticEvent: u
555
- });
556
- },
557
- [n.onMouseOver, e.onMouseOver, t]
558
- );
559
- return {
560
- onClick: l,
561
- onMouseUp: s,
562
- onMouseDown: o,
563
- onDoubleClick: c,
564
- onMouseEnter: i,
565
- onMouseLeave: h,
566
- onMouseMove: f,
567
- onMouseOut: d,
568
- onMouseOver: m
569
- };
570
- }, Gt = () => null, Jt = ({ children: e }) => e, lr = (e) => {
571
- if (e) {
572
- if (e === r.Fragment)
573
- return [Jt, {}];
574
- if (r.isValidElement(e))
575
- return [e.type, e.props];
576
- } else
577
- return [Gt, {}];
578
- return [e, {}];
579
- };
580
- var X = /* @__PURE__ */ ((e) => (e[e.add = 0] = "add", e[e.remove = 1] = "remove", e))(X || {});
581
- const Ze = (e = []) => {
582
- const t = r.useRef(e), n = r.useCallback(
583
- (o) => {
584
- switch (o.type) {
585
- case 0:
586
- t.current.push(o.item);
587
- break;
588
- case 1: {
589
- const s = t.current.indexOf(o.item);
590
- t.current.splice(s, 1);
591
- break;
592
- }
593
- }
594
- },
595
- []
596
- );
597
- return [t.current, n];
598
- }, Ut = (e) => {
599
- const t = r.useCallback(
600
- () => e.current && e.current.element ? e.current.element : e.current,
601
- [e]
602
- );
603
- return r.useCallback(() => {
604
- const o = t();
605
- return o && o.ownerDocument || document;
606
- }, [t]);
607
- }, cr = (e) => {
608
- const t = Ut(e);
609
- return r.useCallback(() => {
610
- const o = t();
611
- return o && o.defaultView || window;
612
- }, [t]);
613
- }, ct = {
614
- default: "",
615
- xsmall: "k-icon-xs",
616
- small: "k-icon-sm",
617
- medium: "k-icon-md",
618
- large: "k-icon-lg",
619
- xlarge: "k-icon-xl",
620
- xxlarge: "k-icon-xxl",
621
- xxxlarge: "k-icon-xxxl"
622
- }, ar = (e) => e.replace(/^k-i-/, ""), Zt = (e) => "k-i-" + e, ir = g.shape({
623
- name: g.string.isRequired,
624
- content: g.string.isRequired,
625
- viewBox: g.string.isRequired
626
- }), de = (e, t) => {
627
- const [n, o] = r.useContext(e), [s, l] = r.useState(t);
628
- return [
629
- n !== void 0 ? n : s,
630
- (...h) => {
631
- n !== void 0 ? o(...h) : l(h[0]);
632
- }
633
- ];
634
- }, at = r.createContext([
635
- void 0,
636
- C
637
- ]), me = r.createContext([
638
- void 0,
639
- C
640
- ]), it = r.createContext([[], C, C]), ve = r.createContext([[], C, C]), Kt = 2e3;
641
- function Vt(e, t, n = {}) {
642
- const {
643
- onPress: o = C,
644
- onRelease: s = C,
645
- onDragStart: l = C,
646
- onDrag: c = C,
647
- onDragEnd: i = C
648
- } = t, {
649
- hint: h = null,
650
- mouseOnly: f = !1,
651
- autoScroll: d = !0,
652
- scrollContainer: m = null
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(
654
- () => e.current && e.current.element ? e.current.element : e.current,
655
- [e]
656
- ), Ct = r.useCallback(
657
- () => h && h.current && h.current.element ? h.current.element : h ? h.current : null,
658
- [h]
659
- ), Oe = r.useCallback(
660
- () => m && m.current && m.current.element ? m.current.element : m ? m.current : null,
661
- [m]
662
- ), Me = r.useCallback(
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,
664
- [d]
665
- ), Q = r.useRef(null);
666
- r.useImperativeHandle(Q, () => ({
667
- element: L(),
668
- hint: Ct(),
669
- onPress: Et,
670
- onDragStart: xt,
671
- onDrag: yt,
672
- onDragEnd: pt,
673
- onRelease: bt,
674
- data: e.current
675
- }));
676
- const Z = r.useCallback(
677
- () => {
678
- const a = L();
679
- return a && a.ownerDocument || document;
680
- },
681
- [L]
682
- ), N = r.useCallback(
683
- () => {
684
- const a = Z();
685
- return a && a.defaultView || window;
686
- },
687
- [Z]
688
- ), Se = r.useCallback(
689
- () => ({
690
- drag: R ? R.current : null,
691
- drop: E ? E.current : null,
692
- drags: I.map((a) => a.current),
693
- drops: T.map((a) => a.current),
694
- pressed: u,
695
- ignoreMouse: W.current,
696
- scrollOffset: we.current,
697
- offset: ke.current,
698
- pageOffset: De.current,
699
- initialScrollOffset: Pe.current,
700
- clientOffset: U.current,
701
- initialClientOffset: Ae.current,
702
- velocity: p.current,
703
- autoScroll: !!(typeof d == "object" ? d.enabled !== !1 : d),
704
- scrollableParent: Me(),
705
- autoScrollDirection: typeof d == "object" ? d.direction : { horizontal: !0, vertical: !0 },
706
- isScrolling: y
707
- }),
708
- [R, E, I, T, u, d, Me, y]
709
- ), Re = r.useCallback(
710
- (a) => {
711
- x(a);
712
- },
713
- []
714
- ), Le = r.useCallback(
715
- (a) => {
716
- w(a);
717
- },
718
- []
719
- ), Te = r.useCallback(
720
- (a) => {
721
- p.current = a;
722
- },
723
- []
724
- ), Ne = r.useCallback(
725
- (a) => {
726
- ke.current = a;
727
- },
728
- []
729
- ), Be = r.useCallback(
730
- (a) => {
731
- U.current = a;
732
- },
733
- []
734
- ), He = r.useCallback(
735
- (a) => {
736
- De.current = a;
737
- },
738
- []
739
- ), je = r.useCallback(
740
- (a) => {
741
- Ae.current = a;
742
- },
743
- []
744
- ), Qe = r.useCallback(
745
- (a) => {
746
- we.current = a;
747
- },
748
- []
749
- ), ze = r.useCallback(
750
- (a) => {
751
- Pe.current = a;
752
- },
753
- []
754
- ), Et = r.useCallback(
755
- (a) => {
756
- o(a);
757
- },
758
- [o]
759
- ), bt = r.useCallback(
760
- (a) => {
761
- s(a);
762
- },
763
- [s]
764
- ), xt = r.useCallback(
765
- (a) => {
766
- M(Q, { target: e.current, event: a }), l(a);
767
- },
768
- [M, e, l]
769
- ), yt = r.useCallback(
770
- (a) => {
771
- c(a);
772
- },
773
- [c]
774
- ), pt = r.useCallback(
775
- (a) => {
776
- _.current || (M(null, { target: e.current, event: a }), i(a));
777
- },
778
- [i, M, e]
779
- ), v = r.useCallback(
780
- (a) => {
781
- At(
782
- Se(),
783
- { event: a, payload: Q.current },
784
- {
785
- onVelocityChange: Te,
786
- onOffsetChange: Ne,
787
- onClientOffsetChange: Be,
788
- onPageOffsetChange: He,
789
- onInitialClientOffsetChange: je,
790
- onScrollOffsetChange: Qe,
791
- onInitialScrollOffsetChange: ze,
792
- onIsPressedChange: Re,
793
- onIsScrollingChange: Le
794
- }
795
- );
796
- },
797
- [
798
- Se,
799
- Te,
800
- Ne,
801
- He,
802
- Be,
803
- je,
804
- ze,
805
- Re,
806
- Qe,
807
- Le
808
- ]
809
- ), $ = r.useCallback(
810
- (a) => {
811
- v(a);
812
- },
813
- [v]
814
- ), ee = r.useCallback(
815
- (a) => {
816
- v(a);
817
- },
818
- [v]
819
- ), te = r.useCallback(
820
- (a) => {
821
- v(a);
822
- },
823
- [v]
824
- ), ne = r.useCallback(
825
- (a) => {
826
- v(a);
827
- },
828
- [v]
829
- ), re = r.useCallback(
830
- (a) => {
831
- v(a);
832
- },
833
- [v]
834
- ), oe = r.useCallback(
835
- (a) => {
836
- v(a);
837
- },
838
- [v]
839
- ), se = r.useCallback(
840
- (a) => {
841
- v(a);
842
- },
843
- [v]
844
- ), le = r.useCallback(
845
- (a) => {
846
- a.preventDefault(), v(a);
847
- },
848
- [v]
849
- ), ce = r.useCallback(
850
- (a) => {
851
- a.preventDefault(), v(a);
852
- },
853
- [v]
854
- ), ae = r.useCallback(
855
- (a) => {
856
- a.preventDefault(), v(a);
857
- },
858
- [v]
859
- ), ie = r.useCallback(
860
- (a) => {
861
- if (a.touches.length === 0 && a.changedTouches.length === 1) {
862
- const b = N();
863
- W.current = !0, pe.current = b.setTimeout(() => {
864
- W.current = !1;
865
- }, Kt);
866
- }
867
- v(a);
868
- },
869
- [v, N]
870
- ), ue = r.useCallback(
871
- (a) => {
872
- v(a);
873
- },
874
- [v]
875
- ), Fe = r.useCallback(
876
- () => {
877
- const a = L();
878
- if (a) {
879
- const b = a.style.touchAction;
880
- return a.style.touchAction = "none", () => {
881
- a.style.touchAction = b;
882
- };
883
- }
884
- },
885
- [L]
886
- ), Xe = r.useCallback(
887
- () => (P(Q), () => {
888
- O(Q);
889
- }),
890
- [O, P]
891
- ), kt = () => {
892
- const a = N(), b = L(), D = Z();
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);
895
- };
896
- };
897
- r.useEffect(() => {
898
- const a = N();
899
- if (y) {
900
- const b = Oe() || Ye(document.elementFromPoint(U.current.x, U.current.y));
901
- a.clearInterval(q.current), q.current = a.setInterval(() => {
902
- wt(b, { x: p.current.x, y: p.current.y });
903
- }, 50);
904
- }
905
- return () => {
906
- a.clearInterval(q.current);
907
- };
908
- }, [L, Oe, N, y]), r.useEffect(Fe, [Fe]), r.useEffect(kt, [
909
- u,
910
- N,
911
- L,
912
- Z,
913
- f,
914
- Ie,
915
- le,
916
- re,
917
- oe,
918
- se,
919
- te,
920
- $,
921
- ee,
922
- ne,
923
- ie,
924
- ae,
925
- ce,
926
- ue
927
- ]), r.useEffect(() => (_.current = !1, () => {
928
- _.current = !0;
929
- }), []), ge(Xe, [Xe]);
930
- }
931
- function qt(e, t = {
932
- onDragEnter: C,
933
- onDragOver: C,
934
- onDragLeave: C,
935
- onDrop: C
936
- }) {
937
- const {
938
- onDragEnter: n = C,
939
- onDragOver: o = C,
940
- onDragLeave: s = C,
941
- onDrop: l = C
942
- } = t, [, c] = de(me), [, i, h] = r.useContext(ve), f = r.useCallback(
943
- () => e.current && e.current.element ? e.current.element : e.current,
944
- [e]
945
- ), d = r.useRef(null);
946
- r.useImperativeHandle(d, () => ({
947
- element: f(),
948
- onDragEnter: m,
949
- onDragOver: u,
950
- onDragLeave: x,
951
- onDrop: y,
952
- data: e.current
953
- }));
954
- const m = r.useCallback(
955
- (E) => {
956
- c(d, { target: e.current, event: E }), n(E);
957
- },
958
- [c, e, n]
959
- ), u = r.useCallback(
960
- (E) => {
961
- o(E);
962
- },
963
- [o]
964
- ), x = r.useCallback(
965
- (E) => {
966
- c(null, { target: e.current, event: E }), s(E);
967
- },
968
- [c, e, s]
969
- ), y = r.useCallback(
970
- (E) => {
971
- c(null, { target: e.current, event: E }), l(E);
972
- },
973
- [c, e, l]
974
- ), w = r.useCallback(
975
- () => (i(d), () => {
976
- h(d);
977
- }),
978
- [h, i]
979
- );
980
- ge(w, [w]);
981
- }
982
- const Ke = (e, t, n) => {
983
- const [o, s] = r.useState(t || e), l = r.useCallback(
984
- (c, i) => {
985
- s(c), n && n.call(void 0, { ...i, value: c });
986
- },
987
- [n, s]
988
- );
989
- return [t !== void 0 ? t : o, l];
990
- }, Ce = r.forwardRef((e, t) => {
991
- const {
992
- className: n,
993
- name: o,
994
- themeColor: s,
995
- size: l,
996
- flip: c,
997
- style: i,
998
- id: h,
999
- tabIndex: f,
1000
- ...d
1001
- } = e, m = r.useRef(null), u = r.useRef(null);
1002
- r.useImperativeHandle(m, () => ({
1003
- element: u.current
1004
- })), r.useImperativeHandle(t, () => m.current);
1005
- const x = r.useMemo(
1006
- () => l || Ve.size,
1007
- [l]
1008
- ), y = r.useMemo(
1009
- () => c || Ve.flip,
1010
- [c]
1011
- ), w = r.useMemo(
1012
- () => $e(
1013
- "k-icon",
1014
- "k-font-icon",
1015
- o && Zt(o),
1016
- {
1017
- [`k-color-${s}`]: s,
1018
- "k-flip-h": y === "horizontal" || y === "both",
1019
- "k-flip-v": y === "vertical" || y === "both"
1020
- },
1021
- ct[x],
1022
- n
1023
- ),
1024
- [o, s, x, y, n]
1025
- ), E = Yt(e, m);
1026
- return /* @__PURE__ */ r.createElement(
1027
- "span",
1028
- {
1029
- ref: u,
1030
- ...d,
1031
- ...E,
1032
- className: w,
1033
- id: h,
1034
- tabIndex: f,
1035
- style: i,
1036
- role: "presentation"
1037
- }
1038
- );
1039
- });
1040
- Ce.propTypes = {
1041
- style: g.object,
1042
- classNames: g.string,
1043
- name: g.string,
1044
- themeColor: g.oneOf([
1045
- "inherit",
1046
- "primary",
1047
- "secondary",
1048
- "tertiary",
1049
- "info",
1050
- "success",
1051
- "error",
1052
- "warning",
1053
- "dark",
1054
- "light",
1055
- "inverse"
1056
- ]),
1057
- size: g.oneOf(["default", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"]),
1058
- flip: g.oneOf(["default", "horizontal", "vertical", "both"])
1059
- };
1060
- const Ve = {
1061
- size: "default",
1062
- flip: "default"
1063
- };
1064
- Ce.displayName = "KendoIcon";
1065
- const Ee = r.forwardRef((e, t) => {
1066
- const {
1067
- children: n,
1068
- className: o,
1069
- svgClassName: s,
1070
- icon: l,
1071
- flip: c,
1072
- id: i,
1073
- tabIndex: h,
1074
- size: f,
1075
- style: d,
1076
- svgStyle: m,
1077
- themeColor: u,
1078
- viewBox: x,
1079
- name: y,
1080
- onClick: w,
1081
- ...E
1082
- } = e, R = r.useRef(null);
1083
- r.useImperativeHandle(
1084
- t,
1085
- () => ({
1086
- element: R.current
1087
- })
1088
- );
1089
- const M = r.useMemo(
1090
- () => l ? l.name : K.icon,
1091
- [l]
1092
- ), T = r.useMemo(
1093
- () => f || K.size,
1094
- [f]
1095
- ), I = r.useMemo(
1096
- () => c || K.flip,
1097
- [c]
1098
- ), P = r.useMemo(
1099
- () => x || K.viewBox,
1100
- [x]
1101
- ), O = r.useMemo(
1102
- () => $e(
1103
- "k-icon",
1104
- "k-svg-icon",
1105
- "k-svg-i-" + M,
1106
- {
1107
- [`k-color-${u}`]: u,
1108
- "k-flip-h": I === "horizontal" || I === "both",
1109
- "k-flip-v": I === "vertical" || I === "both"
1110
- },
1111
- ct[T],
1112
- o
1113
- ),
1114
- [M, u, T, I, o]
1115
- ), p = r.useMemo(
1116
- () => 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 },
1117
- [e.width, e.height, d]
1118
- );
1119
- return /* @__PURE__ */ r.createElement(
1120
- "span",
1121
- {
1122
- className: O,
1123
- style: p,
1124
- ref: R,
1125
- onClick: w,
1126
- "aria-hidden": !0
1127
- },
1128
- /* @__PURE__ */ r.createElement(
1129
- "svg",
1130
- {
1131
- id: i,
1132
- className: s,
1133
- style: m,
1134
- "aria-hidden": !0,
1135
- tabIndex: h,
1136
- focusable: !1,
1137
- xmlns: "http://www.w3.org/2000/svg",
1138
- viewBox: l ? l.viewBox : P,
1139
- dangerouslySetInnerHTML: l ? { __html: l.content } : void 0,
1140
- ...E
1141
- },
1142
- l ? void 0 : n
1143
- )
1144
- );
1145
- });
1146
- Ee.propTypes = {
1147
- style: g.object,
1148
- classNames: g.string,
1149
- children: g.any,
1150
- icon: g.object,
1151
- themeColor: g.oneOf([
1152
- "inherit",
1153
- "primary",
1154
- "secondary",
1155
- "tertiary",
1156
- "info",
1157
- "success",
1158
- "error",
1159
- "warning",
1160
- "dark",
1161
- "light",
1162
- "inverse"
1163
- ]),
1164
- size: g.oneOf(["default", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"]),
1165
- flip: g.oneOf(["default", "horizontal", "vertical", "both"])
1166
- };
1167
- const K = {
1168
- size: "default",
1169
- flip: "default",
1170
- icon: "",
1171
- viewBox: "0 0 24 24"
1172
- };
1173
- Ee.displayName = "KendoSvgIcon";
1174
- const ut = r.createContext({ type: "svg" });
1175
- ut.displayName = "KendoReactIconsContext";
1176
- const Wt = r.forwardRef((e, t) => {
1177
- var h, f;
1178
- const { type: n, icons: o } = r.useContext(ut), { icon: s, ...l } = e;
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);
1180
- c = c && o && o[c] && typeof o[c] == "string" ? o[c] : c;
1181
- const i = c && o && o[c] && typeof o[c] != "string" ? o[c] : s;
1182
- return n === "svg" && i ? /* @__PURE__ */ r.createElement(Ee, { ...e, icon: i, ref: t }) : /* @__PURE__ */ r.createElement(Ce, { ...l, name: c, ref: t });
1183
- });
1184
- Wt.displayName = "KendoIconWrap";
1185
- const _t = {
1186
- xsmall: "k-fs-xs",
1187
- small: "k-fs-sm",
1188
- medium: "k-fs-md",
1189
- large: "k-fs-lg",
1190
- xlarge: "k-fs-xl"
1191
- }, $t = {
1192
- light: "k-font-weight-light",
1193
- normal: "k-font-weight-normal",
1194
- bold: "k-font-weight-bold"
1195
- }, en = {
1196
- xsmall: "k-m-xs",
1197
- small: "k-m-sm",
1198
- medium: "k-m-md",
1199
- large: "k-m-lg",
1200
- xlarge: "k-m-xl",
1201
- thin: "k-m-thin",
1202
- hair: "k-m-hair"
1203
- }, tn = {
1204
- xsmall: "xs",
1205
- small: "sm",
1206
- medium: "md",
1207
- large: "lg",
1208
- xlarge: "xl",
1209
- thin: "thin",
1210
- hair: "hair"
1211
- }, nn = {
1212
- top: "k-mt-",
1213
- right: "k-mr-",
1214
- bottom: "k-mb-",
1215
- left: "k-ml-"
1216
- }, rn = {
1217
- left: "k-text-left",
1218
- right: "k-text-right",
1219
- center: "k-text-center",
1220
- justify: "k-text-justify"
1221
- }, on = {
1222
- lowercase: "k-text-lowercase",
1223
- uppercase: "k-text-uppercase",
1224
- capitalize: "k-text-capitalize"
1225
- }, sn = {
1226
- inherit: "k-color-inherit",
1227
- primary: "k-color-primary",
1228
- secondary: "k-color-secondary",
1229
- tertiary: "k-color-tertiary",
1230
- info: "k-color-info",
1231
- success: "k-color-success",
1232
- warning: "k-color-warning",
1233
- error: "k-color-error",
1234
- dark: "k-color-dark",
1235
- light: "k-color-light",
1236
- inverse: "k-color-inverse"
1237
- }, S = (e) => {
1238
- const t = r.forwardRef((n, o) => {
1239
- const {
1240
- id: s,
1241
- style: l,
1242
- className: c,
1243
- fontSize: i,
1244
- fontWeight: h,
1245
- textAlign: f,
1246
- textTransform: d,
1247
- themeColor: m,
1248
- margin: u,
1249
- ...x
1250
- } = n, y = r.useRef(null), w = r.useRef(null);
1251
- r.useImperativeHandle(
1252
- y,
1253
- () => ({
1254
- element: w.current,
1255
- props: n
1256
- })
1257
- ), r.useImperativeHandle(o, () => y.current);
1258
- const E = () => `k-${e === "p" ? "paragraph" : e}`, R = e, M = (P, O) => {
1259
- const p = typeof O == "string" ? tn[O] : O;
1260
- return `${nn[P]}${p}`;
1261
- }, T = () => {
1262
- if (u !== void 0) {
1263
- if (typeof u == "string")
1264
- return [en[u]];
1265
- if (typeof u == "number" && u >= 0 && u <= 24)
1266
- return [`k-m-${u}`];
1267
- if (typeof u == "object") {
1268
- const P = [];
1269
- return Object.keys(u).forEach((p) => {
1270
- u[p] !== null && u[p] !== void 0 && P.push(M(p, u[p]));
1271
- }), P.join(" ");
1272
- }
1273
- }
1274
- }, I = () => [
1275
- E(),
1276
- _t[i],
1277
- $t[h],
1278
- rn[f],
1279
- on[d],
1280
- sn[m],
1281
- T(),
1282
- c
1283
- ].filter((p) => p !== void 0).join(" ");
1284
- return /* @__PURE__ */ r.createElement(
1285
- R,
1286
- {
1287
- id: s,
1288
- ref: w,
1289
- className: I(),
1290
- style: l,
1291
- ...x
1292
- },
1293
- n.children
1294
- );
1295
- });
1296
- return t.propTypes = {
1297
- style: g.object,
1298
- className: g.string,
1299
- fontSize: g.oneOf(["xsmall", "small", "medium", "large", "xlarge"]),
1300
- fontWeight: g.oneOf(["light", "normal", "bold"]),
1301
- margin: g.oneOfType([
1302
- g.number,
1303
- g.object,
1304
- g.oneOf(["xsmall", "small", "medium", "large", "xlarge", "thin", "hair"])
1305
- ]),
1306
- textAlign: g.oneOf(["left", "right", "center", "justify"]),
1307
- textTransform: g.oneOf(["lowercase", "uppercase", "capitalize"]),
1308
- themeColor: g.oneOf([
1309
- "inherit",
1310
- "primary",
1311
- "secondary",
1312
- "tertiary",
1313
- "info",
1314
- "success",
1315
- "error",
1316
- "warning",
1317
- "dark",
1318
- "light",
1319
- "inverse"
1320
- ])
1321
- }, t.displayName = `KendoReactTypography${e.toUpperCase()}`, t;
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(
1334
- null,
1335
- void 0
1336
- ), [o, s] = Ke(
1337
- null,
1338
- void 0
1339
- ), [l, c] = Ze([]), [i, h] = Ze([]), f = (x) => {
1340
- c({
1341
- type: X.add,
1342
- item: x
1343
- });
1344
- }, d = (x) => {
1345
- c({
1346
- type: X.remove,
1347
- item: x
1348
- });
1349
- }, m = (x) => {
1350
- h({
1351
- type: X.add,
1352
- item: x
1353
- });
1354
- }, u = (x) => {
1355
- h({
1356
- type: X.remove,
1357
- item: x
1358
- });
1359
- };
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))));
1361
- };
1362
- vn.displayName = "KendoReactDragAndDrop";
1363
- const Cn = r.forwardRef((e, t) => {
1364
- const n = r.useRef(null), o = r.useRef(null), s = r.useCallback(
1365
- () => n.current && n.current.element ? n.current.element : n.current,
1366
- [n]
1367
- );
1368
- r.useImperativeHandle(o, () => ({ element: s() || null })), r.useImperativeHandle(t, () => o.current), r.useImperativeHandle(e.childRef, () => n.current);
1369
- const l = r.useCallback(
1370
- (d) => {
1371
- e.onPress && e.onPress({
1372
- element: s(),
1373
- target: o.current,
1374
- event: d
1375
- });
1376
- },
1377
- [s, e.onPress]
1378
- ), c = r.useCallback(
1379
- (d) => {
1380
- e.onRelease && e.onRelease({
1381
- element: s(),
1382
- target: o.current,
1383
- event: d
1384
- });
1385
- },
1386
- [s, e.onRelease]
1387
- ), i = r.useCallback(
1388
- (d) => {
1389
- e.onDragStart && e.onDragStart({
1390
- element: s(),
1391
- target: o.current,
1392
- event: d
1393
- });
1394
- },
1395
- [e, s]
1396
- ), h = r.useCallback(
1397
- (d) => {
1398
- e.onDrag && e.onDrag({
1399
- element: s(),
1400
- target: o.current,
1401
- event: d
1402
- });
1403
- },
1404
- [s, e.onDrag]
1405
- ), f = r.useCallback(
1406
- (d) => {
1407
- e.onDragEnd && e.onDragEnd({
1408
- element: s(),
1409
- target: o.current,
1410
- event: d
1411
- });
1412
- },
1413
- [s, e.onDragEnd]
1414
- );
1415
- return Vt(n, {
1416
- onPress: l,
1417
- onRelease: c,
1418
- onDragStart: i,
1419
- onDrag: h,
1420
- onDragEnd: f
1421
- }, {
1422
- mouseOnly: e.mouseOnly,
1423
- autoScroll: e.autoScroll,
1424
- hint: e.hint,
1425
- scrollContainer: e.scrollContainer
1426
- }), e.children ? r.cloneElement(r.Children.only(e.children), { ref: n }) : null;
1427
- });
1428
- Cn.displayName = "KendoReactDraggable";
1429
- const En = r.forwardRef((e, t) => {
1430
- const n = r.useRef(null), o = r.useRef(null), s = r.useCallback(
1431
- () => n.current && n.current.element ? n.current.element : n.current,
1432
- [n]
1433
- );
1434
- r.useImperativeHandle(o, () => ({ element: s() || void 0 })), r.useImperativeHandle(t, () => o.current), r.useImperativeHandle(e.childRef, () => n.current);
1435
- const l = r.useCallback(
1436
- (f) => {
1437
- e.onDragEnter && e.onDragEnter({
1438
- element: s(),
1439
- target: o.current,
1440
- event: f
1441
- });
1442
- },
1443
- [e.onDragEnter, s]
1444
- ), c = r.useCallback(
1445
- (f) => {
1446
- e.onDragOver && e.onDragOver({
1447
- element: s(),
1448
- target: o.current,
1449
- event: f
1450
- });
1451
- },
1452
- [s, e.onDragOver]
1453
- ), i = r.useCallback(
1454
- (f) => {
1455
- e.onDragLeave && e.onDragLeave({
1456
- element: s(),
1457
- target: o.current,
1458
- event: f
1459
- });
1460
- },
1461
- [e.onDragLeave, s]
1462
- ), h = r.useCallback(
1463
- (f) => {
1464
- e.onDrop && e.onDrop({
1465
- element: s(),
1466
- target: o.current,
1467
- event: f
1468
- });
1469
- },
1470
- [e.onDrop, s]
1471
- );
1472
- return qt(n, {
1473
- onDragEnter: l,
1474
- onDragOver: c,
1475
- onDragLeave: i,
1476
- onDrop: h
1477
- }), e.children ? r.cloneElement(r.Children.only(e.children), { ref: n }) : null;
1478
- });
1479
- En.displayName = "KendoReactDroppable";
1480
- const dr = {
1481
- sizeMap: {
1482
- small: "sm",
1483
- medium: "md",
1484
- large: "lg"
1485
- },
1486
- roundedMap: {
1487
- small: "sm",
1488
- medium: "md",
1489
- large: "lg"
1490
- },
1491
- orientationMap: {
1492
- vertical: "vstack",
1493
- horizontal: "hstack"
1494
- }
1495
- };
1496
- function bn(e, t) {
1497
- return e === t || Number.isNaN(e) && Number.isNaN(t);
1498
- }
1499
- function xn(e, t) {
1500
- if (e.length !== t.length)
1501
- return !1;
1502
- for (let n = 0; n < e.length; n++)
1503
- if (!bn(e[n], t[n]))
1504
- return !1;
1505
- return !0;
1506
- }
1507
- function fr(e, t = xn) {
1508
- let n = null;
1509
- function o(...s) {
1510
- if (n && n.lastThis === this && t(s, n.lastArgs))
1511
- return n.lastResult;
1512
- const l = e.apply(this, s);
1513
- return n = {
1514
- lastResult: l,
1515
- lastArgs: s,
1516
- lastThis: this
1517
- }, l;
1518
- }
1519
- return o.clear = function() {
1520
- n = null;
1521
- }, o;
1522
- }
1523
- const fe = (e) => {
1524
- const t = e.shadowRoot, n = e.contentDocument;
1525
- return t && t.activeElement ? fe(t.activeElement) : n && n.activeElement ? fe(n.activeElement) : e;
1526
- }, hr = (e) => {
1527
- if (!(!e || !e.activeElement))
1528
- return fe(e.activeElement);
1529
- };
1530
- function k(e, t) {
1531
- const n = (e || "").split(".");
1532
- let o = t;
1533
- return n.forEach((s) => {
1534
- o = o ? o[s] : void 0;
1535
- }), o;
1536
- }
1537
- function gr(e) {
1538
- return e.length !== void 0;
1539
- }
1540
- class mr {
1541
- constructor(t) {
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;
1543
- }
1544
- expanded(t) {
1545
- return k(this.expandField, t);
1546
- }
1547
- selected(t) {
1548
- return k(this.selectField, t);
1549
- }
1550
- text(t) {
1551
- return k(this.textField, t);
1552
- }
1553
- disabled(t) {
1554
- return k(this.disableField, t);
1555
- }
1556
- hasChildren(t) {
1557
- return k(this.hasChildrenField, t);
1558
- }
1559
- children(t) {
1560
- const n = k(this.childrenField, t);
1561
- return n || [];
1562
- }
1563
- checked(t) {
1564
- return k(this.checkField, t);
1565
- }
1566
- checkIndeterminate(t) {
1567
- return k(this.checkIndeterminateField, t);
1568
- }
1569
- focusId(t) {
1570
- return this.focusIdField && k(this.focusIdField, t);
1571
- }
1572
- getChildrenField() {
1573
- return this.childrenField;
1574
- }
1575
- }
1576
- const yn = 5e4;
1577
- class pn {
1578
- constructor() {
1579
- this.objects = [];
1580
- }
1581
- init(t) {
1582
- let n;
1583
- for (let o = 0; o < t.length; o++)
1584
- o % yn === 0 && (n = {}, this.objects.push(n)), n[t[o]] = !0;
1585
- }
1586
- hasId(t) {
1587
- return this.objects.some((n) => n[t]);
1588
- }
1589
- }
1590
- const Y = "", dt = "0", A = "_";
1591
- function ft(e, t, n) {
1592
- if (J(e))
1593
- return t[Number(e)];
1594
- {
1595
- const o = t[Number(B(e))], s = o && o[n] || [];
1596
- return s.length ? ft(H(e), s, n) : void 0;
1597
- }
1598
- }
1599
- function B(e) {
1600
- return be(e) ? e : e.split(A)[0];
1601
- }
1602
- function H(e) {
1603
- if (be(e))
1604
- return e;
1605
- {
1606
- const t = e.indexOf(A);
1607
- return e.substring(t + 1);
1608
- }
1609
- }
1610
- function kn(e) {
1611
- return G("0", e);
1612
- }
1613
- function G(e, t) {
1614
- return e = e.toString(), t ? t + A + e : e;
1615
- }
1616
- function ht(e) {
1617
- const t = e.lastIndexOf(A);
1618
- return t < 0 ? Y : e.substring(0, t);
1619
- }
1620
- function be(e) {
1621
- return e === Y || e.indexOf(A) < 0;
1622
- }
1623
- function J(e) {
1624
- return e !== Y && e.indexOf(A) < 0;
1625
- }
1626
- function xe(e) {
1627
- return e.split(A);
1628
- }
1629
- function ye(e) {
1630
- const t = e.lastIndexOf(A);
1631
- return t < 0 ? e : e.substring(t + 1);
1632
- }
1633
- function Dn(e) {
1634
- return ye(e) === dt;
1635
- }
1636
- function An(e, t) {
1637
- const n = t;
1638
- e = "r" + A + e, t = "r" + A + t;
1639
- const o = ht(e) + A;
1640
- if (t.startsWith(o)) {
1641
- const s = t.substring(o.length);
1642
- if (s) {
1643
- const l = B(s);
1644
- if (Number(ye(e)) < Number(l)) {
1645
- const c = o + (Number(l) - 1).toString() + s.substring(l.length);
1646
- return H(c);
1647
- }
1648
- }
1649
- }
1650
- return n;
1651
- }
1652
- const vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1653
- __proto__: null,
1654
- EMPTY_ID: Y,
1655
- SEPARATOR: A,
1656
- ZERO_LEVEL_ZERO_NODE_ID: dt,
1657
- createId: G,
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,
1667
- isIdZeroLevel: J,
1668
- isItemFirstFromSiblings: Dn
1669
- }, Symbol.toStringTag, { value: "Module" }));
1670
- function gt(e, t) {
1671
- const n = k(t, e);
1672
- return !!(n && n.length);
1673
- }
1674
- function Cr(e, t) {
1675
- return t.expanded(e) && gt(e, t.getChildrenField());
1676
- }
1677
- function Er(e, t, n, o) {
1678
- const s = wn([e], t, n, o);
1679
- return s.length ? s[0] : void 0;
1680
- }
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;
1684
- }
1685
- function Pn(e, t, n, o, s) {
1686
- const l = Number(B(t));
1687
- if (l >= e.length)
1688
- return e;
1689
- let c = e, i = e[l];
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;
1691
- }
1692
- function br(e, t, n) {
1693
- const o = xe(e);
1694
- let s = t;
1695
- for (let l = 0; l < o.length; l++) {
1696
- const c = s[Number(o[l])];
1697
- if (n.disabled(c))
1698
- return !1;
1699
- s = c[n.getChildrenField()];
1700
- }
1701
- return !0;
1702
- }
1703
- function xr(e, t, n, o) {
1704
- return o ? l(e) : s(e, t);
1705
- function s(c, i) {
1706
- let h = [];
1707
- const f = c[n] || [];
1708
- for (let d = 0; d < f.length; d++) {
1709
- const m = G(d, i);
1710
- h.push(m), h = h.concat(s(f[d], m));
1711
- }
1712
- return h;
1713
- }
1714
- function l(c) {
1715
- let i = [];
1716
- const h = c[n] || [];
1717
- for (let f = 0; f < h.length; f++)
1718
- i.push(k(o, h[f])), i = i.concat(l(h[f]));
1719
- return i;
1720
- }
1721
- }
1722
- function yr(e, t, n, o, s) {
1723
- return (e[o] || []).every((c, i) => s.indexOf(n ? k(n, c) : G(i, t)) > -1);
1724
- }
1725
- function pr(e, t, n) {
1726
- const o = [], s = xe(e);
1727
- let l = n;
1728
- for (let c = 0; c < s.length - 1 && l; c++) {
1729
- const i = l[Number(s[c])];
1730
- o.push(i), l = i[t];
1731
- }
1732
- return o;
1733
- }
1734
- function In(e, t, n) {
1735
- const o = n.slice();
1736
- if (J(e))
1737
- o.splice(Number(e), 1);
1738
- else {
1739
- const s = Number(B(e)), l = o[s] = { ...o[s] };
1740
- l[t] = In(H(e), t, l[t]);
1741
- }
1742
- return o;
1743
- }
1744
- function On(e, t, n, o, s) {
1745
- const l = s.slice();
1746
- if (J(o))
1747
- if (t === "child") {
1748
- const c = l[Number(o)] = { ...l[Number(o)] };
1749
- c[n] ? (c[n] = c[n].slice(), c[n].push(e)) : c[n] = [e];
1750
- } else
1751
- l.splice(Number(o) + (t === "after" ? 1 : 0), 0, e);
1752
- else {
1753
- const c = Number(B(o)), i = l[c] = { ...l[c] };
1754
- i[n] = On(e, t, n, H(o), i[n]);
1755
- }
1756
- return l;
1757
- }
1758
- function mt(e, t, n, o, s, l) {
1759
- for (let c = 0; c < n.length; c++) {
1760
- const i = n[c], h = G(c, o);
1761
- e.hasId(k(t, i)) && s.push(h), gt(i, l) && mt(e, t, k(l, i), h, s, l);
1762
- }
1763
- }
9
+ import * as e from "./tree-utils/itemIdUtils.mjs";
10
+ import { ZIndexContext as t, useZIndexContext as p } from "./contexts/ZIndexContext.mjs";
11
+ import { BrowserSupportService as s } from "./browser-support.service.mjs";
12
+ import { canUseDOM as x } from "./canUseDOM.mjs";
13
+ import { canUseRef as f } from "./canUseRef.mjs";
14
+ import { classNames as c } from "./classNames.mjs";
15
+ import { clone as d, cloneArray as u, cloneDate as I, cloneObject as C, cloneValue as h } from "./clone.mjs";
16
+ import { applyTrappedFocus as b, firstFocusableChild as A, focusFirstFocusableChild as v, focusLastFocusableChild as D, keepFocusInContainer as E, lastFocusableChild as F } from "./trappedFocus.mjs";
17
+ import { FormComponent as S } from "./FormComponent.mjs";
18
+ import { getTabIndex as O } from "./getTabIndex.mjs";
19
+ import { getter as N } from "./getter.mjs";
20
+ import { guid as L } from "./guid.mjs";
21
+ import { Keys as W } from "./keys.mjs";
22
+ import { noop as B } from "./noop.mjs";
23
+ import { getScrollbarWidth as R, setScrollbarWidth as V } from "./scrollbarWidth.mjs";
24
+ import { setter as _ } from "./setter.mjs";
25
+ import { extendDataItem as z, getItemPath as H, mapTree as K, mapTreeItem as q } from "./treeDataOperations.mjs";
26
+ import { shouldShowValidationUI as J, validatePackage as Q } from "./validate-package.mjs";
27
+ import { hasRelativeStackingContext as Y } from "./hasRelativeStackingContext.mjs";
28
+ import { WatermarkOverlay as ee } from "./watermark/WatermarkOverlay.mjs";
29
+ import { dispatchEvent as re } from "./events/dispatchEvent.mjs";
30
+ import { AsyncFocusBlur as pe } from "./hocs/AsyncFocusBlur.mjs";
31
+ import { createPropsContext as se, withPropsContext as ae } from "./hocs/withPropsContext.mjs";
32
+ import { withIdHOC as ne } from "./hocs/use-id-hoc.mjs";
33
+ import { useDir as le } from "./hooks/useDir.mjs";
34
+ import { useAsyncFocusBlur as ie } from "./hooks/useAsyncFocusBlur.mjs";
35
+ import { useRtl as ue } from "./hooks/useRtl.mjs";
36
+ import { useMouse as Ce } from "./hooks/useMouse.mjs";
37
+ import { useCustomComponent as ge } from "./hooks/useCustomComponent.mjs";
38
+ import { usePropsContext as Ae } from "./hooks/usePropsContext.mjs";
39
+ import { COLLECTION_ACTION as De, useCollection as Ee } from "./hooks/useCollection.mjs";
40
+ import { useDocument as ye } from "./hooks/useDocument.mjs";
41
+ import { useWindow as Te } from "./hooks/useWindow.mjs";
42
+ import { useId as Pe } from "./hooks/use-id.mjs";
43
+ import { useIsomorphicLayoutEffect as ke } from "./hooks/use-isomorphic-layout-effect.mjs";
44
+ import { Icon as Ue } from "./icons/Icon.mjs";
45
+ import { SvgIcon as we } from "./icons/SvgIcon.mjs";
46
+ import { IconWrap as Me } from "./icons/IconWrap.mjs";
47
+ import { IconsContext as Ve } from "./icons/IconsContext.mjs";
48
+ import { svgIconPropType as _e, toIconClass as je, toIconName as ze } from "./icons/utils.mjs";
49
+ import { Typography as Ke } from "./typography/Typography.mjs";
50
+ import { DragAndDrop as Ge } from "./drag-n-drop/index.mjs";
51
+ import { Draggable as Qe } from "./Draggable.mjs";
52
+ import { Droppable as Ye } from "./Droppable.mjs";
53
+ import { useDraggable as eo } from "./hooks/useDraggable.mjs";
54
+ import { useDroppable as ro } from "./hooks/useDroppable.mjs";
55
+ import { kendoThemeMaps as po } from "./theme.mjs";
56
+ import { memoizeOne as so } from "./memoize.mjs";
57
+ import { FOCUSABLE_ELEMENTS as xo, Navigation as no } from "./navigation.mjs";
58
+ import { getActiveElement as lo, getInnerActiveElement as co } from "./getActiveElement.mjs";
59
+ import { TreeFieldsService as uo } from "./tree-utils/FieldsService.mjs";
60
+ import { SortedPublicItemIds as Co } from "./tree-utils/SortedPublicItemIds.mjs";
61
+ import { addItem as go, areAllDirectChildrenChecked as bo, getAllDirectIndirectChildrenIds as Ao, getAllParents as vo, hasChildren as Do, isEnabledAndAllParentsEnabled as Eo, isItemExpandedAndWithChildren as Fo, removeItem as yo, resolveItemId as So, resolveItemsIds as To, updateItem as Oo } from "./tree-utils/itemUtils.mjs";
62
+ import { getNestedValue as No, isArray as ko } from "./tree-utils/misc.mjs";
1764
63
  export {
1765
- er as AsyncFocusBlur,
1766
- _e as BrowserSupportService,
1767
- X as COLLECTION_ACTION,
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,
1806
- k as getNestedValue,
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,
1822
- C as noop,
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
64
+ pe as AsyncFocusBlur,
65
+ s as BrowserSupportService,
66
+ De as COLLECTION_ACTION,
67
+ Ge as DragAndDrop,
68
+ Qe as Draggable,
69
+ Ye as Droppable,
70
+ xo as FOCUSABLE_ELEMENTS,
71
+ S as FormComponent,
72
+ Ue as Icon,
73
+ Me as IconWrap,
74
+ Ve as IconsContext,
75
+ W as Keys,
76
+ no as Navigation,
77
+ Co as SortedPublicItemIds,
78
+ we as SvgIcon,
79
+ uo as TreeFieldsService,
80
+ Ke as Typography,
81
+ ee as WatermarkOverlay,
82
+ t as ZIndexContext,
83
+ go as addItem,
84
+ b as applyTrappedFocus,
85
+ bo as areAllDirectChildrenChecked,
86
+ x as canUseDOM,
87
+ f as canUseRef,
88
+ c as classNames,
89
+ d as clone,
90
+ u as cloneArray,
91
+ I as cloneDate,
92
+ C as cloneObject,
93
+ h as cloneValue,
94
+ se as createPropsContext,
95
+ re as dispatchEvent,
96
+ z as extendDataItem,
97
+ A as firstFocusableChild,
98
+ v as focusFirstFocusableChild,
99
+ D as focusLastFocusableChild,
100
+ lo as getActiveElement,
101
+ Ao as getAllDirectIndirectChildrenIds,
102
+ vo as getAllParents,
103
+ co as getInnerActiveElement,
104
+ H as getItemPath,
105
+ No as getNestedValue,
106
+ R as getScrollbarWidth,
107
+ O as getTabIndex,
108
+ N as getter,
109
+ L as guid,
110
+ Do as hasChildren,
111
+ Y as hasRelativeStackingContext,
112
+ ko as isArray,
113
+ Eo as isEnabledAndAllParentsEnabled,
114
+ Fo as isItemExpandedAndWithChildren,
115
+ E as keepFocusInContainer,
116
+ po as kendoThemeMaps,
117
+ F as lastFocusableChild,
118
+ K as mapTree,
119
+ q as mapTreeItem,
120
+ so as memoizeOne,
121
+ B as noop,
122
+ yo as removeItem,
123
+ So as resolveItemId,
124
+ To as resolveItemsIds,
125
+ V as setScrollbarWidth,
126
+ _ as setter,
127
+ J as shouldShowValidationUI,
128
+ _e as svgIconPropType,
129
+ je as toIconClass,
130
+ ze as toIconName,
131
+ e as treeIdUtils,
132
+ Oo as updateItem,
133
+ ie as useAsyncFocusBlur,
134
+ Ee as useCollection,
135
+ ge as useCustomComponent,
136
+ le as useDir,
137
+ ye as useDocument,
138
+ eo as useDraggable,
139
+ ro as useDroppable,
140
+ Pe as useId,
141
+ ke as useIsomorphicLayoutEffect,
142
+ Ce as useMouse,
143
+ Ae as usePropsContext,
144
+ ue as useRtl,
145
+ Te as useWindow,
146
+ p as useZIndexContext,
147
+ Q as validatePackage,
148
+ ne as withIdHOC,
149
+ ae as withPropsContext
1851
150
  };