@progress/kendo-react-common 9.0.0-develop.2 → 9.0.0-develop.20
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/Draggable.mjs +16 -12
- package/README.md +25 -24
- package/apply-default-props.js +8 -0
- package/apply-default-props.mjs +17 -0
- package/clone.js +1 -1
- package/clone.mjs +23 -23
- package/constants/main.mjs +3 -1
- package/dist/cdn/js/kendo-react-common.js +1 -1
- package/hooks/useAsyncFocusBlur.mjs +6 -1
- package/hooks/useCollection.mjs +11 -14
- package/hooks/useDir.mjs +6 -9
- package/hooks/useDraggable.mjs +41 -89
- package/hooks/useDroppable.mjs +4 -12
- package/hooks/useInheritedState.mjs +3 -6
- package/hooks/useRtl.mjs +6 -9
- package/icons/Icon.mjs +2 -18
- package/icons/IconWrap.mjs +10 -8
- package/icons/SvgIcon.mjs +32 -41
- package/index.d.mts +12 -5
- package/index.d.ts +12 -5
- package/index.js +1 -1
- package/index.mjs +175 -173
- package/package.json +1 -1
- package/trappedFocus.mjs +2 -8
- package/tree-utils/itemIdUtils.js +1 -1
- package/tree-utils/itemIdUtils.mjs +15 -19
- package/tree-utils/itemUtils.mjs +67 -42
- package/treeDataOperations.js +1 -1
- package/treeDataOperations.mjs +16 -14
- package/typography/Typography.js +1 -1
- package/typography/Typography.mjs +10 -34
- package/unstyled/json-classes.mjs +1 -0
- package/watermark/WatermarkOverlay.js +1 -1
- package/watermark/WatermarkOverlay.mjs +83 -52
package/hooks/useDraggable.mjs
CHANGED
|
@@ -14,18 +14,7 @@ import { DropsContext as Pe, DragsContext as Ie, DropContext as Me, DragContext
|
|
|
14
14
|
import { useIsomorphicLayoutEffect as Ae } from "./use-isomorphic-layout-effect.mjs";
|
|
15
15
|
const je = 2e3;
|
|
16
16
|
function _e(l, ge, ve = {}) {
|
|
17
|
-
const {
|
|
18
|
-
onPress: B = i,
|
|
19
|
-
onRelease: H = i,
|
|
20
|
-
onDragStart: W = i,
|
|
21
|
-
onDrag: _ = i,
|
|
22
|
-
onDragEnd: q = i
|
|
23
|
-
} = ge, {
|
|
24
|
-
hint: a = null,
|
|
25
|
-
mouseOnly: E = !1,
|
|
26
|
-
autoScroll: o = !0,
|
|
27
|
-
scrollContainer: u = null
|
|
28
|
-
} = ve, [f, pe] = t.useState(!1), [C, be] = t.useState(!1), [k] = Ce(Me), [y, g] = Ce(Te), [z] = t.useContext(Pe), [F, G, N] = t.useContext(Ie), v = t.useRef({ x: 0, y: 0 }), D = t.useRef(), S = t.useRef(!1), $ = t.useRef(), m = t.useRef(null), L = t.useRef(!1), J = t.useRef({ x: 0, y: 0 }), K = t.useRef({ x: 0, y: 0 }), p = t.useRef({ x: 0, y: 0 }), Q = t.useRef({ x: 0, y: 0 }), X = t.useRef({ x: 0, y: 0 }), Y = t.useRef({ x: 0, y: 0 }), Ee = !!(typeof window != "undefined" && window.PointerEvent), Z = !E && Ee, c = t.useCallback(
|
|
17
|
+
const { onPress: B = i, onRelease: H = i, onDragStart: W = i, onDrag: _ = i, onDragEnd: q = i } = ge, { hint: a = null, mouseOnly: E = !1, autoScroll: o = !0, scrollContainer: u = null } = ve, [f, pe] = t.useState(!1), [C, be] = t.useState(!1), [k] = Ce(Me), [y, g] = Ce(Te), [z] = t.useContext(Pe), [F, G, N] = t.useContext(Ie), v = t.useRef({ x: 0, y: 0 }), D = t.useRef(), S = t.useRef(!1), $ = t.useRef(), m = t.useRef(null), L = t.useRef(!1), J = t.useRef({ x: 0, y: 0 }), K = t.useRef({ x: 0, y: 0 }), p = t.useRef({ x: 0, y: 0 }), Q = t.useRef({ x: 0, y: 0 }), X = t.useRef({ x: 0, y: 0 }), Y = t.useRef({ x: 0, y: 0 }), Ee = !!(typeof window != "undefined" && window.PointerEvent), Z = !E && Ee, c = t.useCallback(
|
|
29
18
|
() => l.current && l.current.element ? l.current.element : l.current,
|
|
30
19
|
[l]
|
|
31
20
|
), ke = t.useCallback(
|
|
@@ -48,19 +37,13 @@ function _e(l, ge, ve = {}) {
|
|
|
48
37
|
onRelease: De,
|
|
49
38
|
data: l.current
|
|
50
39
|
}));
|
|
51
|
-
const b = t.useCallback(
|
|
52
|
-
()
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
),
|
|
58
|
-
() => {
|
|
59
|
-
const e = b();
|
|
60
|
-
return e && e.defaultView || window;
|
|
61
|
-
},
|
|
62
|
-
[b]
|
|
63
|
-
), ne = t.useCallback(
|
|
40
|
+
const b = t.useCallback(() => {
|
|
41
|
+
const e = c();
|
|
42
|
+
return e && e.ownerDocument || document;
|
|
43
|
+
}, [c]), d = t.useCallback(() => {
|
|
44
|
+
const e = b();
|
|
45
|
+
return e && e.defaultView || window;
|
|
46
|
+
}, [b]), ne = t.useCallback(
|
|
64
47
|
() => ({
|
|
65
48
|
drag: y ? y.current : null,
|
|
66
49
|
drop: k ? k.current : null,
|
|
@@ -81,52 +64,25 @@ function _e(l, ge, ve = {}) {
|
|
|
81
64
|
isScrolling: C
|
|
82
65
|
}),
|
|
83
66
|
[y, k, F, z, f, o, te, C]
|
|
84
|
-
), re = t.useCallback(
|
|
85
|
-
(e)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
[]
|
|
104
|
-
), ce = t.useCallback(
|
|
105
|
-
(e) => {
|
|
106
|
-
p.current = e;
|
|
107
|
-
},
|
|
108
|
-
[]
|
|
109
|
-
), ae = t.useCallback(
|
|
110
|
-
(e) => {
|
|
111
|
-
K.current = e;
|
|
112
|
-
},
|
|
113
|
-
[]
|
|
114
|
-
), ue = t.useCallback(
|
|
115
|
-
(e) => {
|
|
116
|
-
Q.current = e;
|
|
117
|
-
},
|
|
118
|
-
[]
|
|
119
|
-
), ie = t.useCallback(
|
|
120
|
-
(e) => {
|
|
121
|
-
X.current = e;
|
|
122
|
-
},
|
|
123
|
-
[]
|
|
124
|
-
), fe = t.useCallback(
|
|
125
|
-
(e) => {
|
|
126
|
-
Y.current = e;
|
|
127
|
-
},
|
|
128
|
-
[]
|
|
129
|
-
), ye = t.useCallback(
|
|
67
|
+
), re = t.useCallback((e) => {
|
|
68
|
+
pe(e);
|
|
69
|
+
}, []), oe = t.useCallback((e) => {
|
|
70
|
+
be(e);
|
|
71
|
+
}, []), se = t.useCallback((e) => {
|
|
72
|
+
v.current = e;
|
|
73
|
+
}, []), le = t.useCallback((e) => {
|
|
74
|
+
J.current = e;
|
|
75
|
+
}, []), ce = t.useCallback((e) => {
|
|
76
|
+
p.current = e;
|
|
77
|
+
}, []), ae = t.useCallback((e) => {
|
|
78
|
+
K.current = e;
|
|
79
|
+
}, []), ue = t.useCallback((e) => {
|
|
80
|
+
Q.current = e;
|
|
81
|
+
}, []), ie = t.useCallback((e) => {
|
|
82
|
+
X.current = e;
|
|
83
|
+
}, []), fe = t.useCallback((e) => {
|
|
84
|
+
Y.current = e;
|
|
85
|
+
}, []), ye = t.useCallback(
|
|
130
86
|
(e) => {
|
|
131
87
|
B(e);
|
|
132
88
|
},
|
|
@@ -247,23 +203,17 @@ function _e(l, ge, ve = {}) {
|
|
|
247
203
|
n(e);
|
|
248
204
|
},
|
|
249
205
|
[n]
|
|
250
|
-
), de = t.useCallback(
|
|
251
|
-
()
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
), me = t.useCallback(
|
|
262
|
-
() => (G(h), () => {
|
|
263
|
-
N(h);
|
|
264
|
-
}),
|
|
265
|
-
[N, G]
|
|
266
|
-
), Re = () => {
|
|
206
|
+
), de = t.useCallback(() => {
|
|
207
|
+
const e = c();
|
|
208
|
+
if (e) {
|
|
209
|
+
const r = e.style.touchAction;
|
|
210
|
+
return e.style.touchAction = "none", () => {
|
|
211
|
+
e.style.touchAction = r;
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
}, [c]), me = t.useCallback(() => (G(h), () => {
|
|
215
|
+
N(h);
|
|
216
|
+
}), [N, G]), Re = () => {
|
|
267
217
|
const e = d(), r = c(), s = b();
|
|
268
218
|
return Z ? (r && (m.current = he(r), m.current && m.current.addEventListener("scroll", V, { passive: !0 }), r.addEventListener("pointerdown", O, { passive: !0 })), f && (s.addEventListener("pointermove", R), s.addEventListener("pointerup", x, !0), s.addEventListener("contextmenu", T), s.addEventListener("pointercancel", w, { passive: !0 }))) : (e.addEventListener("touchmove", i, { capture: !1, passive: !1 }), r && (r.addEventListener("mousedown", P, { passive: !0 }), E || (r.addEventListener("touchstart", A, { passive: !0 }), f && (r.addEventListener("touchmove", j, { passive: !0 }), r.addEventListener("touchend", U, { passive: !0 })))), f && (s.addEventListener("mousemove", I, { passive: !0 }), s.addEventListener("mouseup", M, { passive: !0 }))), () => {
|
|
269
219
|
m.current && m.current.removeEventListener("scroll", V), r && (r.removeEventListener("pointerdown", O), r.removeEventListener("mousedown", P), r.removeEventListener("touchstart", A), r.removeEventListener("touchmove", j), r.removeEventListener("touchend", U)), s.removeEventListener("pointermove", R), s.removeEventListener("pointerup", x, !0), s.removeEventListener("contextmenu", T), s.removeEventListener("pointercancel", w), s.removeEventListener("mousemove", I), s.removeEventListener("mouseup", M), e.removeEventListener("touchmove", i), e.clearTimeout($.current);
|
|
@@ -272,7 +222,9 @@ function _e(l, ge, ve = {}) {
|
|
|
272
222
|
t.useEffect(() => {
|
|
273
223
|
const e = d();
|
|
274
224
|
if (C) {
|
|
275
|
-
const r = ee() || he(
|
|
225
|
+
const r = ee() || he(
|
|
226
|
+
document.elementFromPoint(p.current.x, p.current.y)
|
|
227
|
+
);
|
|
276
228
|
e.clearInterval(D.current), D.current = e.setInterval(() => {
|
|
277
229
|
xe(r, { x: v.current.x, y: v.current.y });
|
|
278
230
|
}, 50);
|
package/hooks/useDroppable.mjs
CHANGED
|
@@ -17,12 +17,7 @@ function y(e, m = {
|
|
|
17
17
|
onDragLeave: n,
|
|
18
18
|
onDrop: n
|
|
19
19
|
}) {
|
|
20
|
-
const {
|
|
21
|
-
onDragEnter: s = n,
|
|
22
|
-
onDragOver: c = n,
|
|
23
|
-
onDragLeave: l = n,
|
|
24
|
-
onDrop: u = n
|
|
25
|
-
} = m, [, o] = k(E), [, D, g] = t.useContext(v), i = t.useCallback(
|
|
20
|
+
const { onDragEnter: s = n, onDragOver: c = n, onDragLeave: l = n, onDrop: u = n } = m, [, o] = k(E), [, D, g] = t.useContext(v), i = t.useCallback(
|
|
26
21
|
() => e.current && e.current.element ? e.current.element : e.current,
|
|
27
22
|
[e]
|
|
28
23
|
), a = t.useRef(null);
|
|
@@ -54,12 +49,9 @@ function y(e, m = {
|
|
|
54
49
|
o(null, { target: e.current, event: r }), u(r);
|
|
55
50
|
},
|
|
56
51
|
[o, e, u]
|
|
57
|
-
), p = t.useCallback(
|
|
58
|
-
(
|
|
59
|
-
|
|
60
|
-
}),
|
|
61
|
-
[g, D]
|
|
62
|
-
);
|
|
52
|
+
), p = t.useCallback(() => (D(a), () => {
|
|
53
|
+
g(a);
|
|
54
|
+
}), [g, D]);
|
|
63
55
|
L(p, [p]);
|
|
64
56
|
}
|
|
65
57
|
export {
|
|
@@ -9,12 +9,9 @@
|
|
|
9
9
|
import * as a from "react";
|
|
10
10
|
const d = (n, o) => {
|
|
11
11
|
const [e, l] = a.useContext(n), [c, u] = a.useState(o);
|
|
12
|
-
return [
|
|
13
|
-
e !== void 0 ?
|
|
14
|
-
|
|
15
|
-
e !== void 0 ? l(...t) : u(t[0]);
|
|
16
|
-
}
|
|
17
|
-
];
|
|
12
|
+
return [e !== void 0 ? e : c, (...t) => {
|
|
13
|
+
e !== void 0 ? l(...t) : u(t[0]);
|
|
14
|
+
}];
|
|
18
15
|
};
|
|
19
16
|
export {
|
|
20
17
|
d as useInheritedState
|
package/hooks/useRtl.mjs
CHANGED
|
@@ -9,15 +9,12 @@
|
|
|
9
9
|
import * as i from "react";
|
|
10
10
|
function u(t, n, o) {
|
|
11
11
|
const [e, c] = i.useState(n);
|
|
12
|
-
return i.useEffect(
|
|
13
|
-
()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
o
|
|
20
|
-
), e;
|
|
12
|
+
return i.useEffect(() => {
|
|
13
|
+
if (!e && window && t.current) {
|
|
14
|
+
const r = window.getComputedStyle(t.current).direction;
|
|
15
|
+
r && c(r);
|
|
16
|
+
}
|
|
17
|
+
}, o), e;
|
|
21
18
|
}
|
|
22
19
|
export {
|
|
23
20
|
u as useRtl
|
package/icons/Icon.mjs
CHANGED
|
@@ -13,27 +13,11 @@ import { SIZE_CLASSES as v } from "./constants.mjs";
|
|
|
13
13
|
import { toIconClass as N } from "./utils.mjs";
|
|
14
14
|
import { useMouse as b } from "../hooks/useMouse.mjs";
|
|
15
15
|
const u = e.forwardRef((a, d) => {
|
|
16
|
-
const {
|
|
17
|
-
className: n,
|
|
18
|
-
name: s,
|
|
19
|
-
themeColor: t,
|
|
20
|
-
size: i,
|
|
21
|
-
flip: m,
|
|
22
|
-
style: h,
|
|
23
|
-
id: g,
|
|
24
|
-
tabIndex: x,
|
|
25
|
-
...y
|
|
26
|
-
} = a, l = e.useRef(null), c = e.useRef(null);
|
|
16
|
+
const { className: n, name: s, themeColor: t, size: i, flip: m, style: h, id: g, tabIndex: x, ...y } = a, l = e.useRef(null), c = e.useRef(null);
|
|
27
17
|
e.useImperativeHandle(l, () => ({
|
|
28
18
|
element: c.current
|
|
29
19
|
})), e.useImperativeHandle(d, () => l.current);
|
|
30
|
-
const f = e.useMemo(
|
|
31
|
-
() => i || p.size,
|
|
32
|
-
[i]
|
|
33
|
-
), r = e.useMemo(
|
|
34
|
-
() => m || p.flip,
|
|
35
|
-
[m]
|
|
36
|
-
), z = e.useMemo(
|
|
20
|
+
const f = e.useMemo(() => i || p.size, [i]), r = e.useMemo(() => m || p.flip, [m]), z = e.useMemo(
|
|
37
21
|
() => k(
|
|
38
22
|
"k-icon",
|
|
39
23
|
"k-font-icon",
|
package/icons/IconWrap.mjs
CHANGED
|
@@ -10,14 +10,16 @@ import * as t from "react";
|
|
|
10
10
|
import { Icon as g } from "./Icon.mjs";
|
|
11
11
|
import { SvgIcon as I } from "./SvgIcon.mjs";
|
|
12
12
|
import { IconsContext as l } from "./IconsContext.mjs";
|
|
13
|
-
const v = t.forwardRef(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
13
|
+
const v = t.forwardRef(
|
|
14
|
+
(o, c) => {
|
|
15
|
+
var r, i;
|
|
16
|
+
const { type: m, icons: e } = t.useContext(l), { icon: s, ...f } = o;
|
|
17
|
+
let n = m === "svg" ? ((r = o.icon) == null ? void 0 : r.name) || o.name : o.name || ((i = o.icon) == null ? void 0 : i.name);
|
|
18
|
+
n = n && e && e[n] && typeof e[n] == "string" ? e[n] : n;
|
|
19
|
+
const a = n && e && e[n] && typeof e[n] != "string" ? e[n] : s;
|
|
20
|
+
return m === "svg" && a ? /* @__PURE__ */ t.createElement(I, { ...o, icon: a, ref: c }) : /* @__PURE__ */ t.createElement(g, { ...f, name: n, ref: c });
|
|
21
|
+
}
|
|
22
|
+
);
|
|
21
23
|
v.displayName = "KendoIconWrap";
|
|
22
24
|
export {
|
|
23
25
|
v as IconWrap
|
package/icons/SvgIcon.mjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as t from "react";
|
|
10
|
-
import
|
|
10
|
+
import n from "prop-types";
|
|
11
11
|
import { classNames as w } from "../classNames.mjs";
|
|
12
12
|
import { uSvgIcon as x } from "../unstyled/icons.mjs";
|
|
13
13
|
import { useUnstyled as R } from "../unstyled/main.mjs";
|
|
@@ -21,7 +21,7 @@ const y = t.forwardRef((e, b) => {
|
|
|
21
21
|
id: p,
|
|
22
22
|
tabIndex: I,
|
|
23
23
|
size: h,
|
|
24
|
-
style:
|
|
24
|
+
style: s,
|
|
25
25
|
svgStyle: M,
|
|
26
26
|
themeColor: r,
|
|
27
27
|
viewBox: m,
|
|
@@ -35,41 +35,32 @@ const y = t.forwardRef((e, b) => {
|
|
|
35
35
|
element: d.current
|
|
36
36
|
})
|
|
37
37
|
);
|
|
38
|
-
const g = t.useMemo(
|
|
39
|
-
() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
), P = t.useMemo(
|
|
51
|
-
() => w(x.wrapper({
|
|
52
|
-
c: u,
|
|
53
|
-
iconNameProp: g,
|
|
54
|
-
themeColor: r,
|
|
55
|
-
flipH: i === "horizontal" || i === "both",
|
|
56
|
-
flipV: i === "vertical" || i === "both",
|
|
57
|
-
size: v
|
|
58
|
-
}), a),
|
|
38
|
+
const g = t.useMemo(() => o ? o.name : l.icon, [o]), v = t.useMemo(() => h || l.size, [h]), i = t.useMemo(() => c || l.flip, [c]), C = t.useMemo(() => m || l.viewBox, [m]), P = t.useMemo(
|
|
39
|
+
() => w(
|
|
40
|
+
x.wrapper({
|
|
41
|
+
c: u,
|
|
42
|
+
iconNameProp: g,
|
|
43
|
+
themeColor: r,
|
|
44
|
+
flipH: i === "horizontal" || i === "both",
|
|
45
|
+
flipV: i === "vertical" || i === "both",
|
|
46
|
+
size: v
|
|
47
|
+
}),
|
|
48
|
+
a
|
|
49
|
+
),
|
|
59
50
|
[g, r, v, i, a]
|
|
60
|
-
), H = t.useMemo(
|
|
61
|
-
() => e.width && e.height ? { width: e.width, height: e.height, ...l } : e.width ? { width: e.width, height: e.width, ...l } : e.height ? { width: e.height, height: e.height, ...l } : { ...l },
|
|
62
|
-
[e.width, e.height, l]
|
|
63
|
-
);
|
|
51
|
+
), H = t.useMemo(() => e.width && e.height ? { width: e.width, height: e.height, ...s } : e.width ? { width: e.width, height: e.width, ...s } : e.height ? { width: e.height, height: e.height, ...s } : { ...s }, [e.width, e.height, s]);
|
|
64
52
|
return /* @__PURE__ */ t.createElement(
|
|
65
53
|
"span",
|
|
66
54
|
{
|
|
67
|
-
className: w(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
55
|
+
className: w(
|
|
56
|
+
x.svg({
|
|
57
|
+
c: u,
|
|
58
|
+
themeColor: r,
|
|
59
|
+
flipH: i === "horizontal" || i === "both",
|
|
60
|
+
flipV: i === "vertical" || i === "both"
|
|
61
|
+
}),
|
|
62
|
+
P
|
|
63
|
+
),
|
|
73
64
|
style: H,
|
|
74
65
|
ref: d,
|
|
75
66
|
onClick: S,
|
|
@@ -94,11 +85,11 @@ const y = t.forwardRef((e, b) => {
|
|
|
94
85
|
);
|
|
95
86
|
});
|
|
96
87
|
y.propTypes = {
|
|
97
|
-
style:
|
|
98
|
-
classNames:
|
|
99
|
-
children:
|
|
100
|
-
icon:
|
|
101
|
-
themeColor:
|
|
88
|
+
style: n.object,
|
|
89
|
+
classNames: n.string,
|
|
90
|
+
children: n.any,
|
|
91
|
+
icon: n.object,
|
|
92
|
+
themeColor: n.oneOf([
|
|
102
93
|
"inherit",
|
|
103
94
|
"primary",
|
|
104
95
|
"secondary",
|
|
@@ -111,10 +102,10 @@ y.propTypes = {
|
|
|
111
102
|
"light",
|
|
112
103
|
"inverse"
|
|
113
104
|
]),
|
|
114
|
-
size:
|
|
115
|
-
flip:
|
|
105
|
+
size: n.oneOf(["default", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"]),
|
|
106
|
+
flip: n.oneOf(["default", "horizontal", "vertical", "both"])
|
|
116
107
|
};
|
|
117
|
-
const
|
|
108
|
+
const l = {
|
|
118
109
|
size: "default",
|
|
119
110
|
flip: "default",
|
|
120
111
|
icon: "",
|
package/index.d.mts
CHANGED
|
@@ -126,6 +126,13 @@ export declare interface Appear extends AnimationStatesClasses {
|
|
|
126
126
|
export declare interface AppearActive extends AnimationStatesClasses {
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
/**
|
|
130
|
+
* @hidden
|
|
131
|
+
*/
|
|
132
|
+
export declare const applyDefaultProps: <PropsType>(props: PropsType, defaultProps: {
|
|
133
|
+
[key: string]: any;
|
|
134
|
+
}) => PropsType;
|
|
135
|
+
|
|
129
136
|
/**
|
|
130
137
|
* @hidden
|
|
131
138
|
*/
|
|
@@ -2388,9 +2395,9 @@ export declare interface KendoTheme {
|
|
|
2388
2395
|
|
|
2389
2396
|
/** @hidden */
|
|
2390
2397
|
export declare interface KendoThemeMaps {
|
|
2391
|
-
sizeMap: Record<Exclude<any, null>,
|
|
2392
|
-
roundedMap: Record<Exclude<any, null>,
|
|
2393
|
-
orientationMap: Record<Exclude<any, null>,
|
|
2398
|
+
sizeMap: Record<Exclude<any, null>, string>;
|
|
2399
|
+
roundedMap: Record<Exclude<any, null>, string>;
|
|
2400
|
+
orientationMap: Record<Exclude<any, null>, string>;
|
|
2394
2401
|
}
|
|
2395
2402
|
|
|
2396
2403
|
/** @hidden */
|
|
@@ -3860,11 +3867,11 @@ export declare const WatermarkOverlay: () => JSX_2.Element;
|
|
|
3860
3867
|
* @hidden
|
|
3861
3868
|
*/
|
|
3862
3869
|
export declare interface WidgetClassStructure {
|
|
3863
|
-
[key: string]: (
|
|
3870
|
+
[key: string]: (props: {
|
|
3864
3871
|
[key: string]: any;
|
|
3865
3872
|
}) => {
|
|
3866
3873
|
[key: string]: boolean;
|
|
3867
|
-
} | string
|
|
3874
|
+
} | string;
|
|
3868
3875
|
}
|
|
3869
3876
|
|
|
3870
3877
|
/** @hidden */
|
package/index.d.ts
CHANGED
|
@@ -126,6 +126,13 @@ export declare interface Appear extends AnimationStatesClasses {
|
|
|
126
126
|
export declare interface AppearActive extends AnimationStatesClasses {
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
/**
|
|
130
|
+
* @hidden
|
|
131
|
+
*/
|
|
132
|
+
export declare const applyDefaultProps: <PropsType>(props: PropsType, defaultProps: {
|
|
133
|
+
[key: string]: any;
|
|
134
|
+
}) => PropsType;
|
|
135
|
+
|
|
129
136
|
/**
|
|
130
137
|
* @hidden
|
|
131
138
|
*/
|
|
@@ -2388,9 +2395,9 @@ export declare interface KendoTheme {
|
|
|
2388
2395
|
|
|
2389
2396
|
/** @hidden */
|
|
2390
2397
|
export declare interface KendoThemeMaps {
|
|
2391
|
-
sizeMap: Record<Exclude<any, null>,
|
|
2392
|
-
roundedMap: Record<Exclude<any, null>,
|
|
2393
|
-
orientationMap: Record<Exclude<any, null>,
|
|
2398
|
+
sizeMap: Record<Exclude<any, null>, string>;
|
|
2399
|
+
roundedMap: Record<Exclude<any, null>, string>;
|
|
2400
|
+
orientationMap: Record<Exclude<any, null>, string>;
|
|
2394
2401
|
}
|
|
2395
2402
|
|
|
2396
2403
|
/** @hidden */
|
|
@@ -3860,11 +3867,11 @@ export declare const WatermarkOverlay: () => JSX_2.Element;
|
|
|
3860
3867
|
* @hidden
|
|
3861
3868
|
*/
|
|
3862
3869
|
export declare interface WidgetClassStructure {
|
|
3863
|
-
[key: string]: (
|
|
3870
|
+
[key: string]: (props: {
|
|
3864
3871
|
[key: string]: any;
|
|
3865
3872
|
}) => {
|
|
3866
3873
|
[key: string]: boolean;
|
|
3867
|
-
} | string
|
|
3874
|
+
} | string;
|
|
3868
3875
|
}
|
|
3869
3876
|
|
|
3870
3877
|
/** @hidden */
|
package/index.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./tree-utils/itemIdUtils.js"),p=require("./contexts/ZIndexContext.js"),P=require("./browser-support.service.js"),S=require("./canUseDOM.js"),v=require("./canUseRef.js"),m=require("./classNames.js"),s=require("./clone.js"),o=require("./trappedFocus.js"),
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./tree-utils/itemIdUtils.js"),p=require("./contexts/ZIndexContext.js"),P=require("./browser-support.service.js"),S=require("./canUseDOM.js"),v=require("./canUseRef.js"),m=require("./classNames.js"),s=require("./clone.js"),o=require("./trappedFocus.js"),f=require("./FormComponent.js"),A=require("./getTabIndex.js"),y=require("./getter.js"),T=require("./guid.js"),I=require("./keys.js"),B=require("./noop.js"),C=require("./scrollbarWidth.js"),F=require("./setter.js"),i=require("./constants/main.js"),u=require("./treeDataOperations.js"),g=require("./validate-package.js"),L=require("./hasRelativeStackingContext.js"),M=require("./watermark/WatermarkOverlay.js"),w=require("./apply-default-props.js"),k=require("./events/dispatchEvent.js"),O=require("./hocs/AsyncFocusBlur.js"),q=require("./hocs/withPropsContext.js"),N=require("./hocs/use-id-hoc.js"),U=require("./hocs/use-unstyled-hoc.js"),R=require("./hooks/useDir.js"),W=require("./hooks/useAsyncFocusBlur.js"),_=require("./hooks/useRtl.js"),H=require("./hooks/useMouse.js"),G=require("./hooks/useCustomComponent.js"),j=require("./hooks/usePropsContext.js"),b=require("./hooks/useCollection.js"),V=require("./hooks/useDocument.js"),z=require("./hooks/useWindow.js"),Z=require("./hooks/use-id.js"),K=require("./hooks/use-isomorphic-layout-effect.js"),X=require("./icons/Icon.js"),Y=require("./icons/SvgIcon.js"),$=require("./icons/IconWrap.js"),J=require("./icons/IconsContext.js"),l=require("./icons/utils.js"),Q=require("./typography/Typography.js"),ee=require("./drag-n-drop/index.js"),te=require("./Draggable.js"),oe=require("./Droppable.js"),re=require("./hooks/useDraggable.js"),se=require("./hooks/useDroppable.js"),ne=require("./theme.js"),ie=require("./memoize.js"),ue=require("./navigation.js"),h=require("./getActiveElement.js"),ae=require("./tree-utils/FieldsService.js"),ce=require("./tree-utils/SortedPublicItemIds.js"),t=require("./tree-utils/itemUtils.js"),x=require("./tree-utils/misc.js"),le=require("./rowHeightService.js"),D=require("./unstyled/main.js"),de=require("./unstyled/animations.js"),pe=require("./unstyled/icons.js"),d=require("./unstyled/buttons.js"),a=require("./unstyled/dropdowns.js"),n=require("./unstyled/dateinputs.js"),r=require("./unstyled/inputs.js"),c=require("./unstyled/labels.js"),me=require("./unstyled/form.js"),Ie=require("./unstyled/popup.js"),Ce=require("./unstyled/grid.js"),e=require("./unstyled/json-classes.js");exports.treeIdUtils=E;exports.ZIndexContext=p.ZIndexContext;exports.useZIndexContext=p.useZIndexContext;exports.BrowserSupportService=P.BrowserSupportService;exports.canUseDOM=S.canUseDOM;exports.canUseRef=v.canUseRef;exports.classNames=m.classNames;exports.strippedClassNames=m.strippedClassNames;exports.clone=s.clone;exports.cloneArray=s.cloneArray;exports.cloneDate=s.cloneDate;exports.cloneObject=s.cloneObject;exports.cloneValue=s.cloneValue;exports.applyTrappedFocus=o.applyTrappedFocus;exports.disableNavigatableContainer=o.disableNavigatableContainer;exports.enableNavigatableContainer=o.enableNavigatableContainer;exports.firstFocusableChild=o.firstFocusableChild;exports.focusFirstFocusableChild=o.focusFirstFocusableChild;exports.focusLastFocusableChild=o.focusLastFocusableChild;exports.focusableChildren=o.focusableChildren;exports.keepFocusInContainer=o.keepFocusInContainer;exports.lastFocusableChild=o.lastFocusableChild;exports.FormComponent=f.FormComponent;exports.getTabIndex=A.getTabIndex;exports.getter=y.getter;exports.guid=T.guid;exports.KEYS=I.KEYS;exports.Keys=I.Keys;exports.noop=B.noop;exports.getScrollbarWidth=C.getScrollbarWidth;exports.setScrollbarWidth=C.setScrollbarWidth;exports.setter=F.setter;exports.FIELD_REGEX=i.FIELD_REGEX;exports.FOCUSABLE_ELEMENTS=i.FOCUSABLE_ELEMENTS;exports.FOCUSABLE_ELEMENTS_BASE=i.FOCUSABLE_ELEMENTS_BASE;exports.TABBABLE_ELEMENTS=i.TABBABLE_ELEMENTS;exports.extendDataItem=u.extendDataItem;exports.getItemPath=u.getItemPath;exports.mapTree=u.mapTree;exports.mapTreeItem=u.mapTreeItem;exports.shouldShowValidationUI=g.shouldShowValidationUI;exports.validatePackage=g.validatePackage;exports.hasRelativeStackingContext=L.hasRelativeStackingContext;exports.WatermarkOverlay=M.WatermarkOverlay;exports.applyDefaultProps=w.applyDefaultProps;exports.dispatchEvent=k.dispatchEvent;exports.AsyncFocusBlur=O.AsyncFocusBlur;exports.createPropsContext=q.createPropsContext;exports.withPropsContext=q.withPropsContext;exports.withIdHOC=N.withIdHOC;exports.withUnstyledHOC=U.withUnstyledHOC;exports.useDir=R.useDir;exports.useAsyncFocusBlur=W.useAsyncFocusBlur;exports.useRtl=_.useRtl;exports.useMouse=H.useMouse;exports.useCustomComponent=G.useCustomComponent;exports.usePropsContext=j.usePropsContext;exports.COLLECTION_ACTION=b.COLLECTION_ACTION;exports.useCollection=b.useCollection;exports.useDocument=V.useDocument;exports.useWindow=z.useWindow;exports.useId=Z.useId;exports.useIsomorphicLayoutEffect=K.useIsomorphicLayoutEffect;exports.Icon=X.Icon;exports.SvgIcon=Y.SvgIcon;exports.IconWrap=$.IconWrap;exports.IconsContext=J.IconsContext;exports.svgIconPropType=l.svgIconPropType;exports.toIconClass=l.toIconClass;exports.toIconName=l.toIconName;exports.Typography=Q.Typography;exports.DragAndDrop=ee.DragAndDrop;exports.Draggable=te.Draggable;exports.Droppable=oe.Droppable;exports.useDraggable=re.useDraggable;exports.useDroppable=se.useDroppable;exports.kendoThemeMaps=ne.kendoThemeMaps;exports.memoizeOne=ie.memoizeOne;exports.Navigation=ue.Navigation;exports.getActiveElement=h.getActiveElement;exports.getInnerActiveElement=h.getInnerActiveElement;exports.TreeFieldsService=ae.TreeFieldsService;exports.SortedPublicItemIds=ce.SortedPublicItemIds;exports.addItem=t.addItem;exports.areAllDirectChildrenChecked=t.areAllDirectChildrenChecked;exports.getAllDirectIndirectChildrenIds=t.getAllDirectIndirectChildrenIds;exports.getAllParents=t.getAllParents;exports.hasChildren=t.hasChildren;exports.isEnabledAndAllParentsEnabled=t.isEnabledAndAllParentsEnabled;exports.isItemExpandedAndWithChildren=t.isItemExpandedAndWithChildren;exports.removeItem=t.removeItem;exports.resolveItemId=t.resolveItemId;exports.resolveItemsIds=t.resolveItemsIds;exports.updateItem=t.updateItem;exports.getNestedValue=x.getNestedValue;exports.isArray=x.isArray;exports.RowHeightService=le.RowHeightService;exports.UnstyledContext=D.UnstyledContext;exports.useUnstyled=D.useUnstyled;exports.uAnimation=de.uAnimation;exports.uSvgIcon=pe.uSvgIcon;exports.uButton=d.uButton;exports.uButtonGroup=d.uButtonGroup;exports.uDropDownButton=d.uDropDownButton;exports.uComboBox=a.uComboBox;exports.uDropDownList=a.uDropDownList;exports.uDropDownsActionSheet=a.uDropDownsActionSheet;exports.uDropDownsBase=a.uDropDownsBase;exports.uCalendar=n.uCalendar;exports.uDateInput=n.uDateInput;exports.uDateTimePicker=n.uDateTimePicker;exports.uTime=n.uTime;exports.uTimePicker=n.uTimePicker;exports.radioButtonClasses=r.radioButtonClasses;exports.radioGroupClasses=r.radioGroupClasses;exports.uInput=r.uInput;exports.uMaskedTextBox=r.uMaskedTextBox;exports.uRadioButton=r.uRadioButton;exports.uRadioGroup=r.uRadioGroup;exports.uTextBox=r.uTextBox;exports.uError=c.uError;exports.uFloatingLabel=c.uFloatingLabel;exports.uHint=c.uHint;exports.uLabel=c.uLabel;exports.uForm=me.uForm;exports.uPopup=Ie.uPopup;exports.uGrid=Ce.uGrid;exports.actions=e.actions;exports.animationStyles=e.animationStyles;exports.base=e.base;exports.buttonPrefix=e.buttonPrefix;exports.calendarPrefix=e.calendarPrefix;exports.comboBoxPrefix=e.comboBoxPrefix;exports.components=e.components;exports.containers=e.containers;exports.cssUtils=e.cssUtils;exports.cursor=e.cursor;exports.dateInputs=e.dateInputs;exports.ddbPrefix=e.ddbPrefix;exports.dimensions=e.dimensions;exports.directionMap=e.directionMap;exports.dropDownListPrefix=e.dropDownListPrefix;exports.elements=e.elements;exports.fillModeMap=e.fillModeMap;exports.forms=e.forms;exports.grid=e.grid;exports.gridPrefix=e.gridPrefix;exports.icon=e.icon;exports.inputPrefix=e.inputPrefix;exports.inputs=e.inputs;exports.jsonTheme=e.jsonTheme;exports.labels=e.labels;exports.maskedPrefix=e.maskedPrefix;exports.orientationMap=e.orientationMap;exports.pickerPrefix=e.pickerPrefix;exports.popup=e.popup;exports.radioPrefix=e.radioPrefix;exports.roundedMap=e.roundedMap;exports.sizeMap=e.sizeMap;exports.states=e.states;exports.themeColorMap=e.themeColorMap;
|