@progress/kendo-react-common 9.4.0-develop.6 → 9.4.0-develop.8
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.js +2 -1
- package/Draggable.mjs +15 -15
- package/Droppable.js +2 -1
- package/Droppable.mjs +5 -5
- package/FormComponent.js +2 -1
- package/FormComponent.mjs +2 -2
- package/apply-default-props.js +1 -1
- package/apply-default-props.mjs +5 -6
- package/browser-support.service.js +1 -1
- package/browser-support.service.mjs +0 -1
- package/canUseDOM.js +1 -1
- package/canUseDOM.mjs +0 -1
- package/canUseRef.js +1 -1
- package/canUseRef.mjs +4 -5
- package/classNames.js +1 -1
- package/classNames.mjs +6 -7
- package/clone.js +1 -1
- package/clone.mjs +6 -7
- package/constants/main.js +1 -1
- package/constants/main.mjs +4 -5
- package/contexts/AdaptiveModeContext.js +2 -1
- package/contexts/AdaptiveModeContext.mjs +2 -2
- package/contexts/ZIndexContext.js +2 -1
- package/dist/cdn/js/kendo-react-common.js +1 -1
- package/drag-n-drop/context/index.js +2 -1
- package/drag-n-drop/index.js +2 -1
- package/drag-n-drop/index.mjs +3 -3
- package/events/dispatchEvent.js +1 -1
- package/events/dispatchEvent.mjs +2 -3
- package/fieldList.js +1 -1
- package/fieldList.mjs +5 -6
- package/getActiveElement.js +1 -1
- package/getActiveElement.mjs +0 -1
- package/getTabIndex.js +1 -1
- package/getTabIndex.mjs +5 -6
- package/getter.js +1 -1
- package/getter.mjs +4 -5
- package/guid.js +1 -1
- package/guid.mjs +5 -6
- package/hasRelativeStackingContext.js +1 -1
- package/hasRelativeStackingContext.mjs +2 -3
- package/hocs/AsyncFocusBlur.js +2 -1
- package/hocs/AsyncFocusBlur.mjs +4 -4
- package/hocs/use-adaptive-mode-hoc.js +2 -1
- package/hocs/use-adaptive-mode-hoc.mjs +2 -2
- package/hocs/use-id-hoc.js +2 -1
- package/hocs/use-id-hoc.mjs +6 -6
- package/hocs/use-unstyled-hoc.js +2 -1
- package/hocs/use-unstyled-hoc.mjs +5 -5
- package/hocs/withPropsContext.js +2 -1
- package/hooks/use-id.js +2 -1
- package/hooks/use-id.mjs +12 -12
- package/hooks/use-isomorphic-layout-effect.js +2 -1
- package/hooks/use-isomorphic-layout-effect.mjs +2 -2
- package/hooks/useAsyncFocusBlur.js +2 -1
- package/hooks/useAsyncFocusBlur.mjs +6 -6
- package/hooks/useCollection.js +2 -1
- package/hooks/useCollection.mjs +2 -2
- package/hooks/useControlledState.js +2 -1
- package/hooks/useControlledState.mjs +4 -4
- package/hooks/useCustomComponent.js +1 -1
- package/hooks/useCustomComponent.mjs +0 -1
- package/hooks/useDir.js +2 -1
- package/hooks/useDir.mjs +5 -5
- package/hooks/useDocument.js +2 -1
- package/hooks/useDraggable.js +2 -1
- package/hooks/useDroppable.js +2 -1
- package/hooks/useDroppable.mjs +12 -12
- package/hooks/useInheritedState.js +2 -1
- package/hooks/useInheritedState.mjs +2 -2
- package/hooks/useMouse.js +2 -1
- package/hooks/usePropsContext.js +2 -1
- package/hooks/useRtl.js +2 -1
- package/hooks/useRtl.mjs +5 -5
- package/hooks/useWindow.js +2 -1
- package/hooks/useWindow.mjs +6 -6
- package/icons/Icon.js +2 -1
- package/icons/Icon.mjs +10 -10
- package/icons/IconWrap.js +2 -1
- package/icons/IconWrap.mjs +8 -8
- package/icons/IconsContext.js +2 -1
- package/icons/SvgIcon.js +2 -1
- package/icons/constants.js +1 -1
- package/icons/constants.mjs +0 -1
- package/icons/utils.js +1 -1
- package/icons/utils.mjs +2 -3
- package/index.js +1 -1
- package/index.mjs +0 -1
- package/keys.js +1 -1
- package/keys.mjs +0 -1
- package/memoize.js +1 -1
- package/memoize.mjs +0 -1
- package/navigation.js +1 -1
- package/navigation.mjs +0 -1
- package/noop.js +1 -1
- package/noop.mjs +2 -3
- package/package.json +1 -1
- package/rowHeightService.js +1 -1
- package/rowHeightService.mjs +0 -1
- package/scrollbarWidth.js +1 -1
- package/scrollbarWidth.mjs +5 -6
- package/setter.js +1 -1
- package/setter.mjs +15 -16
- package/theme.js +1 -1
- package/theme.mjs +2 -3
- package/trappedFocus.js +1 -1
- package/trappedFocus.mjs +7 -8
- package/tree-utils/FieldsService.js +1 -1
- package/tree-utils/FieldsService.mjs +11 -12
- package/tree-utils/SortedPublicItemIds.js +1 -1
- package/tree-utils/SortedPublicItemIds.mjs +0 -1
- package/tree-utils/itemIdUtils.js +1 -1
- package/tree-utils/itemIdUtils.mjs +0 -1
- package/tree-utils/itemUtils.js +1 -1
- package/tree-utils/itemUtils.mjs +0 -1
- package/tree-utils/misc.js +1 -1
- package/tree-utils/misc.mjs +6 -7
- package/treeDataOperations.js +1 -1
- package/treeDataOperations.mjs +11 -12
- package/typography/Typography.js +2 -1
- package/typography/constants.js +1 -1
- package/typography/constants.mjs +0 -1
- package/unstyled/animations.js +1 -1
- package/unstyled/animations.mjs +0 -1
- package/unstyled/buttons.js +1 -1
- package/unstyled/buttons.mjs +0 -1
- package/unstyled/dateinputs.js +1 -1
- package/unstyled/dateinputs.mjs +79 -80
- package/unstyled/dropdowns.js +1 -1
- package/unstyled/dropdowns.mjs +0 -1
- package/unstyled/form.js +1 -1
- package/unstyled/form.mjs +14 -15
- package/unstyled/grid.js +1 -1
- package/unstyled/grid.mjs +38 -39
- package/unstyled/icons.js +1 -1
- package/unstyled/icons.mjs +0 -1
- package/unstyled/inputs.js +1 -1
- package/unstyled/inputs.mjs +0 -1
- package/unstyled/interfaces/common.js +1 -1
- package/unstyled/interfaces/common.mjs +3 -4
- package/unstyled/json-classes.js +1 -1
- package/unstyled/json-classes.mjs +0 -1
- package/unstyled/labels.js +1 -1
- package/unstyled/labels.mjs +0 -1
- package/unstyled/main.js +1 -1
- package/unstyled/main.mjs +0 -1
- package/unstyled/popup.js +1 -1
- package/unstyled/popup.mjs +0 -1
- package/validate-package.js +1 -1
- package/validate-package.mjs +0 -1
- package/watermark/WatermarkOverlay.js +2 -1
package/Draggable.js
CHANGED
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),m=require("./hooks/useDraggable.js");function D(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const n=D(f),u=n.forwardRef((e,c)=>{const t=n.useRef(null),r=n.useRef(null),a=n.useCallback(()=>t.current&&t.current.element?t.current.element:t.current,[t]);n.useImperativeHandle(r,()=>({element:a()||null})),n.useImperativeHandle(c,()=>r.current),n.useImperativeHandle(e.childRef,()=>t.current);const o=n.useCallback(l=>{e.onPress&&e.onPress({element:a(),target:r.current,event:l})},[a,e.onPress]),g=n.useCallback(l=>{e.onRelease&&e.onRelease({element:a(),target:r.current,event:l})},[a,e.onRelease]),s=n.useCallback(l=>{e.onDragStart&&e.onDragStart({element:a(),target:r.current,event:l})},[e,a]),i=n.useCallback(l=>{e.onDrag&&e.onDrag({element:a(),target:r.current,event:l})},[a,e.onDrag]),d=n.useCallback(l=>{e.onDragEnd&&e.onDragEnd({element:a(),target:r.current,event:l})},[a,e.onDragEnd]);return m.useDraggable(t,{onPress:o,onRelease:g,onDragStart:s,onDrag:i,onDragEnd:d},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?n.cloneElement(n.Children.only(e.children),{ref:t}):null});u.displayName="KendoReactDraggable";exports.Draggable=u;
|
package/Draggable.mjs
CHANGED
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
import * as n from "react";
|
|
10
10
|
import { useDraggable as i } from "./hooks/useDraggable.mjs";
|
|
11
11
|
const m = n.forwardRef((e, c) => {
|
|
12
|
-
const
|
|
13
|
-
() =>
|
|
14
|
-
[
|
|
12
|
+
const r = n.useRef(null), l = n.useRef(null), t = n.useCallback(
|
|
13
|
+
() => r.current && r.current.element ? r.current.element : r.current,
|
|
14
|
+
[r]
|
|
15
15
|
);
|
|
16
|
-
n.useImperativeHandle(
|
|
16
|
+
n.useImperativeHandle(l, () => ({ element: t() || null })), n.useImperativeHandle(c, () => l.current), n.useImperativeHandle(e.childRef, () => r.current);
|
|
17
17
|
const u = n.useCallback(
|
|
18
18
|
(a) => {
|
|
19
19
|
e.onPress && e.onPress({
|
|
20
20
|
element: t(),
|
|
21
|
-
target:
|
|
21
|
+
target: l.current,
|
|
22
22
|
event: a
|
|
23
23
|
});
|
|
24
24
|
},
|
|
@@ -27,7 +27,7 @@ const m = n.forwardRef((e, c) => {
|
|
|
27
27
|
(a) => {
|
|
28
28
|
e.onRelease && e.onRelease({
|
|
29
29
|
element: t(),
|
|
30
|
-
target:
|
|
30
|
+
target: l.current,
|
|
31
31
|
event: a
|
|
32
32
|
});
|
|
33
33
|
},
|
|
@@ -36,38 +36,38 @@ const m = n.forwardRef((e, c) => {
|
|
|
36
36
|
(a) => {
|
|
37
37
|
e.onDragStart && e.onDragStart({
|
|
38
38
|
element: t(),
|
|
39
|
-
target:
|
|
39
|
+
target: l.current,
|
|
40
40
|
event: a
|
|
41
41
|
});
|
|
42
42
|
},
|
|
43
43
|
[e, t]
|
|
44
|
-
),
|
|
44
|
+
), d = n.useCallback(
|
|
45
45
|
(a) => {
|
|
46
46
|
e.onDrag && e.onDrag({
|
|
47
47
|
element: t(),
|
|
48
|
-
target:
|
|
48
|
+
target: l.current,
|
|
49
49
|
event: a
|
|
50
50
|
});
|
|
51
51
|
},
|
|
52
52
|
[t, e.onDrag]
|
|
53
|
-
),
|
|
53
|
+
), s = n.useCallback(
|
|
54
54
|
(a) => {
|
|
55
55
|
e.onDragEnd && e.onDragEnd({
|
|
56
56
|
element: t(),
|
|
57
|
-
target:
|
|
57
|
+
target: l.current,
|
|
58
58
|
event: a
|
|
59
59
|
});
|
|
60
60
|
},
|
|
61
61
|
[t, e.onDragEnd]
|
|
62
62
|
);
|
|
63
63
|
return i(
|
|
64
|
-
|
|
64
|
+
r,
|
|
65
65
|
{
|
|
66
66
|
onPress: u,
|
|
67
67
|
onRelease: g,
|
|
68
68
|
onDragStart: o,
|
|
69
|
-
onDrag:
|
|
70
|
-
onDragEnd:
|
|
69
|
+
onDrag: d,
|
|
70
|
+
onDragEnd: s
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
mouseOnly: e.mouseOnly,
|
|
@@ -75,7 +75,7 @@ const m = n.forwardRef((e, c) => {
|
|
|
75
75
|
hint: e.hint,
|
|
76
76
|
scrollContainer: e.scrollContainer
|
|
77
77
|
}
|
|
78
|
-
), e.children ? n.cloneElement(n.Children.only(e.children), { ref:
|
|
78
|
+
), e.children ? n.cloneElement(n.Children.only(e.children), { ref: r }) : null;
|
|
79
79
|
});
|
|
80
80
|
m.displayName = "KendoReactDraggable";
|
|
81
81
|
export {
|
package/Droppable.js
CHANGED
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),f=require("./hooks/useDroppable.js");function b(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(c,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return c.default=e,Object.freeze(c)}const r=b(d),u=r.forwardRef((e,c)=>{const n=r.useRef(null),t=r.useRef(null),a=r.useCallback(()=>n.current&&n.current.element?n.current.element:n.current,[n]);r.useImperativeHandle(t,()=>({element:a()||void 0})),r.useImperativeHandle(c,()=>t.current),r.useImperativeHandle(e.childRef,()=>n.current);const o=r.useCallback(l=>{e.onDragEnter&&e.onDragEnter({element:a(),target:t.current,event:l})},[e.onDragEnter,a]),g=r.useCallback(l=>{e.onDragOver&&e.onDragOver({element:a(),target:t.current,event:l})},[a,e.onDragOver]),i=r.useCallback(l=>{e.onDragLeave&&e.onDragLeave({element:a(),target:t.current,event:l})},[e.onDragLeave,a]),D=r.useCallback(l=>{e.onDrop&&e.onDrop({element:a(),target:t.current,event:l})},[e.onDrop,a]);return f.useDroppable(n,{onDragEnter:o,onDragOver:g,onDragLeave:i,onDrop:D}),e.children?r.cloneElement(r.Children.only(e.children),{ref:n}):null});u.displayName="KendoReactDroppable";exports.Droppable=u;
|
package/Droppable.mjs
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as n from "react";
|
|
10
|
-
import { useDroppable as
|
|
11
|
-
const
|
|
10
|
+
import { useDroppable as m } from "./hooks/useDroppable.mjs";
|
|
11
|
+
const d = n.forwardRef((e, c) => {
|
|
12
12
|
const t = n.useRef(null), l = n.useRef(null), r = n.useCallback(
|
|
13
13
|
() => t.current && t.current.element ? t.current.element : t.current,
|
|
14
14
|
[t]
|
|
@@ -51,14 +51,14 @@ const m = n.forwardRef((e, c) => {
|
|
|
51
51
|
},
|
|
52
52
|
[e.onDrop, r]
|
|
53
53
|
);
|
|
54
|
-
return
|
|
54
|
+
return m(t, {
|
|
55
55
|
onDragEnter: u,
|
|
56
56
|
onDragOver: o,
|
|
57
57
|
onDragLeave: D,
|
|
58
58
|
onDrop: g
|
|
59
59
|
}), e.children ? n.cloneElement(n.Children.only(e.children), { ref: t }) : null;
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
d.displayName = "KendoReactDroppable";
|
|
62
62
|
export {
|
|
63
|
-
|
|
63
|
+
d as Droppable
|
|
64
64
|
};
|
package/FormComponent.js
CHANGED
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class o{}exports.FormComponent=o;
|
package/FormComponent.mjs
CHANGED
package/apply-default-props.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=(e,n)=>{const o={...n};for(const t in e)e[t]!==void 0&&(o[t]=e[t]);return o};exports.applyDefaultProps=r;
|
package/apply-default-props.mjs
CHANGED
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return o;
|
|
8
|
+
const c = (o, e) => {
|
|
9
|
+
const t = { ...e };
|
|
10
|
+
for (const n in o)
|
|
11
|
+
o[n] !== void 0 && (t[n] = o[n]);
|
|
12
|
+
return t;
|
|
14
13
|
};
|
|
15
14
|
export {
|
|
16
15
|
c as applyDefaultProps
|
|
@@ -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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=()=>typeof document!="undefined"?document:{};class r{constructor(){this.scrollbar=0}get scrollbarWidth(){const o=t();if(!this.scrollbar&&o&&o.createElement){const e=o.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",o.body.appendChild(e),this.scrollbar=e.offsetWidth-e.scrollWidth,o.body.removeChild(e)}return this.scrollbar}}exports.BrowserSupportService=r;
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
const t = () => typeof document != "undefined" ? document : {};
|
|
10
9
|
class l {
|
|
11
10
|
constructor() {
|
package/canUseDOM.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=!!(typeof window!="undefined"&&window.document&&window.document.createElement);exports.canUseDOM=e;
|
package/canUseDOM.mjs
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
const e = !!// from fbjs
|
|
10
9
|
(typeof window != "undefined" && window.document && window.document.createElement);
|
|
11
10
|
export {
|
package/canUseRef.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=e=>{var o;return!!(typeof e=="function"&&((o=e.prototype)!=null&&o.isReactComponent))},n=e=>!!(e.$$typeof&&typeof e.render=="function"),s=e=>typeof Comment!="string"&&(t(e)||n(e));exports.canUseRef=s;
|
package/canUseRef.mjs
CHANGED
|
@@ -5,11 +5,10 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}, n = (e) => !!(e.$$typeof && typeof e.render == "function"), s = (e) => typeof Comment != "string" && (t(e) || n(e));
|
|
8
|
+
const t = (o) => {
|
|
9
|
+
var e;
|
|
10
|
+
return !!(typeof o == "function" && ((e = o.prototype) != null && e.isReactComponent));
|
|
11
|
+
}, n = (o) => !!(o.$$typeof && typeof o.render == "function"), s = (o) => typeof Comment != "string" && (t(o) || n(o));
|
|
13
12
|
export {
|
|
14
13
|
s as canUseRef
|
|
15
14
|
};
|
package/classNames.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=(...l)=>{const t={},c=e=>typeof e=="object"?Object.keys(e).forEach(s=>{t[s]=e[s]}):t[e]=!0,r=e=>e.filter(s=>s!==!0&&!!s).map(s=>Array.isArray(s)?r(s):c(s));return r(l),Object.keys(t).map(e=>t[e]&&e||null).filter(e=>e!==null).join(" ")},o=(...l)=>a(l).replace(/[^[\]a-zA-Z0-9-_!: ]/g,"");exports.classNames=a;exports.strippedClassNames=o;
|
package/classNames.mjs
CHANGED
|
@@ -5,14 +5,13 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const t = {}, n = (e) => typeof e == "object" ? Object.keys(e).forEach((s) => {
|
|
8
|
+
const n = (...c) => {
|
|
9
|
+
const t = {}, l = (e) => typeof e == "object" ? Object.keys(e).forEach((s) => {
|
|
11
10
|
t[s] = e[s];
|
|
12
|
-
}) : t[e] = !0,
|
|
13
|
-
return
|
|
14
|
-
}, o = (...c) =>
|
|
11
|
+
}) : t[e] = !0, r = (e) => e.filter((s) => s !== !0 && !!s).map((s) => Array.isArray(s) ? r(s) : l(s));
|
|
12
|
+
return r(c), Object.keys(t).map((e) => t[e] && e || null).filter((e) => e !== null).join(" ");
|
|
13
|
+
}, o = (...c) => n(c).replace(/[^[\]a-zA-Z0-9-_!: ]/g, "");
|
|
15
14
|
export {
|
|
16
|
-
|
|
15
|
+
n as classNames,
|
|
17
16
|
o as strippedClassNames
|
|
18
17
|
};
|
package/clone.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=a(s),l=e=>e?new Date(e.getTime()):null;function u(e){const t={};return o(e,t),t}function o(e,t){for(const n in e)if(e.hasOwnProperty(n)){const r=e[n];t[n]=c(r,t[n])}}function c(e,t){if(Array.isArray(e))return f(e);if(e instanceof Date)return l(e);if(i.isValidElement(e))return i.cloneElement(e,e.props);if(e&&typeof e=="object"){const n=t||{};return o(e,n),n}return e}function f(e){return e.map(t=>c(t,void 0))}exports.clone=u;exports.cloneArray=f;exports.cloneDate=l;exports.cloneObject=o;exports.cloneValue=c;
|
package/clone.mjs
CHANGED
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
import * as r from "react";
|
|
10
|
-
const
|
|
9
|
+
const f = (n) => n ? new Date(n.getTime()) : null;
|
|
11
10
|
function l(n) {
|
|
12
11
|
const e = {};
|
|
13
12
|
return o(n, e), e;
|
|
@@ -21,9 +20,9 @@ function o(n, e) {
|
|
|
21
20
|
}
|
|
22
21
|
function c(n, e) {
|
|
23
22
|
if (Array.isArray(n))
|
|
24
|
-
return f(n);
|
|
25
|
-
if (n instanceof Date)
|
|
26
23
|
return s(n);
|
|
24
|
+
if (n instanceof Date)
|
|
25
|
+
return f(n);
|
|
27
26
|
if (r.isValidElement(n))
|
|
28
27
|
return r.cloneElement(n, n.props);
|
|
29
28
|
if (n && typeof n == "object") {
|
|
@@ -32,13 +31,13 @@ function c(n, e) {
|
|
|
32
31
|
}
|
|
33
32
|
return n;
|
|
34
33
|
}
|
|
35
|
-
function
|
|
34
|
+
function s(n) {
|
|
36
35
|
return n.map((e) => c(e, void 0));
|
|
37
36
|
}
|
|
38
37
|
export {
|
|
39
38
|
l as clone,
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
s as cloneArray,
|
|
40
|
+
f as cloneDate,
|
|
42
41
|
o as cloneObject,
|
|
43
42
|
c as cloneValue
|
|
44
43
|
};
|
package/constants/main.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,t=":not(.k-dropdownlist button):not(.k-colorpicker button):not(.k-numerictextbox button):not(.k-split-button .k-split-button-arrow)",n=":not(.k-dropdownlist select)",o=["input:not([disabled]):not([type=hidden])","select:not([disabled]):not(.k-dropdownlist select)","textarea:not([disabled])",`button:not([disabled])${t}`,"a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],d=[...o,`[tabindex]${t}${n}`],s=[...o,`[tabindex]${t}${n}`].map(E=>E+':not([tabindex="-1"])'),A=500,i=768;exports.ADAPTIVE_MEDIUM_BREAKPOINT=i;exports.ADAPTIVE_SMALL_BREAKPOINT=A;exports.FIELD_REGEX=e;exports.FOCUSABLE_ELEMENTS=d;exports.FOCUSABLE_ELEMENTS_BASE=o;exports.TABBABLE_ELEMENTS=s;
|
package/constants/main.mjs
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
const d = /\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g, t = ":not(.k-dropdownlist button):not(.k-colorpicker button):not(.k-numerictextbox button):not(.k-split-button .k-split-button-arrow)", o = ":not(.k-dropdownlist select)", n = [
|
|
10
9
|
"input:not([disabled]):not([type=hidden])",
|
|
11
10
|
"select:not([disabled]):not(.k-dropdownlist select)",
|
|
@@ -20,14 +19,14 @@ const d = /\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g, t = ":not(.k-dr
|
|
|
20
19
|
"audio[controls]",
|
|
21
20
|
"video[controls]",
|
|
22
21
|
"[contenteditable]"
|
|
23
|
-
], s = [...n, `[tabindex]${t}${o}`],
|
|
22
|
+
], s = [...n, `[tabindex]${t}${o}`], E = [...n, `[tabindex]${t}${o}`].map(
|
|
24
23
|
(e) => e + ':not([tabindex="-1"])'
|
|
25
|
-
),
|
|
24
|
+
), i = 500, c = 768;
|
|
26
25
|
export {
|
|
27
26
|
c as ADAPTIVE_MEDIUM_BREAKPOINT,
|
|
28
|
-
|
|
27
|
+
i as ADAPTIVE_SMALL_BREAKPOINT,
|
|
29
28
|
d as FIELD_REGEX,
|
|
30
29
|
s as FOCUSABLE_ELEMENTS,
|
|
31
30
|
n as FOCUSABLE_ELEMENTS_BASE,
|
|
32
|
-
|
|
31
|
+
E as TABBABLE_ELEMENTS
|
|
33
32
|
};
|
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),c=require("../constants/main.js");function i(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const r=i(d),u={small:c.ADAPTIVE_SMALL_BREAKPOINT,medium:c.ADAPTIVE_MEDIUM_BREAKPOINT},n=r.createContext(u),l=()=>r.useContext(n);n.displayName="KendoReactAdaptiveModeContext";exports.AdaptiveModeContext=n;exports.defaultValue=u;exports.useAdaptiveModeContext=l;
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import * as e from "react";
|
|
10
10
|
import { ADAPTIVE_SMALL_BREAKPOINT as o, ADAPTIVE_MEDIUM_BREAKPOINT as a } from "../constants/main.mjs";
|
|
11
|
-
const d = { small: o, medium: a }, t = e.createContext(d),
|
|
11
|
+
const d = { small: o, medium: a }, t = e.createContext(d), n = () => e.useContext(t);
|
|
12
12
|
t.displayName = "KendoReactAdaptiveModeContext";
|
|
13
13
|
export {
|
|
14
14
|
t as AdaptiveModeContext,
|
|
15
15
|
d as defaultValue,
|
|
16
|
-
|
|
16
|
+
n as useAdaptiveModeContext
|
|
17
17
|
};
|
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=u(a),o=r.createContext(0),s=()=>r.useContext(o);o.displayName="KendoReactZIndexContext";exports.ZIndexContext=o;exports.useZIndexContext=s;
|