@progress/kendo-react-grid 9.4.1-develop.4 → 9.4.1-develop.5
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/GridClientContextReader.js +1 -1
- package/GridClientContextReader.mjs +16 -16
- package/cells/client/DetailCellContainer.js +1 -1
- package/cells/client/DetailCellContainer.mjs +7 -6
- package/cells/client/GridCellContainer.js +1 -1
- package/cells/client/GridCellContainer.mjs +27 -26
- package/cells/client/GridEditCellContainer.js +1 -1
- package/cells/client/GridEditCellContainer.mjs +32 -31
- package/cells/client/GridGroupCellContainer.js +1 -1
- package/cells/client/GridGroupCellContainer.mjs +26 -25
- package/cells/client/GridHierarchyCellContainer.js +1 -1
- package/cells/client/GridHierarchyCellContainer.mjs +30 -29
- package/cells/client/GridRowReorderContainer.js +1 -1
- package/cells/client/GridRowReorderContainer.mjs +15 -14
- package/cells/client/GridSelectionCellContainer.js +1 -1
- package/cells/client/GridSelectionCellContainer.mjs +31 -30
- package/components/GridContainerElementContainer.js +1 -1
- package/components/GridContainerElementContainer.mjs +8 -8
- package/components/GridCustomCellClientContainer.js +1 -1
- package/components/GridCustomCellClientContainer.mjs +8 -7
- package/components/GridDraggableRowsContainer.js +1 -1
- package/components/GridDraggableRowsContainer.mjs +10 -9
- package/components/GridElementContainer.js +1 -1
- package/components/GridElementContainer.mjs +6 -6
- package/components/PagerContainer.js +1 -1
- package/components/PagerContainer.mjs +9 -9
- package/components/table/GridTableBody.js +1 -1
- package/components/table/GridTableBody.mjs +9 -9
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/footer/client/FooterCellContainer.js +1 -1
- package/footer/client/FooterCellContainer.mjs +10 -9
- package/header/client/GridFilterCellContainer.js +1 -1
- package/header/client/GridFilterCellContainer.mjs +13 -12
- package/header/client/GridFilterCellElementContainer.js +1 -1
- package/header/client/GridFilterCellElementContainer.mjs +4 -3
- package/header/client/GridHeaderCellContainer.js +1 -1
- package/header/client/GridHeaderCellContainer.mjs +13 -12
- package/header/client/GridHeaderCellElementContainer.js +1 -1
- package/header/client/GridHeaderCellElementContainer.mjs +11 -10
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +13 -13
- package/utils/index.js +1 -1
- package/utils/index.mjs +119 -110
|
@@ -6,55 +6,56 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import { useTableKeyboardNavigation as
|
|
11
|
-
import { GridContext as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
import * as i from "react";
|
|
10
|
+
import { useTableKeyboardNavigation as m } from "@progress/kendo-react-data-tools";
|
|
11
|
+
import { GridContext as x } from "../../GridClientWrapper.mjs";
|
|
12
|
+
import { cloneReactElement as r } from "../../utils/index.mjs";
|
|
13
|
+
const I = (t) => {
|
|
14
|
+
var c;
|
|
15
|
+
const { cellProps: e } = t, n = i.useContext(x), d = m(e.id), s = {
|
|
16
|
+
onContextMenu: i.useCallback(
|
|
17
|
+
(o) => {
|
|
18
|
+
n != null && n.onContextMenu && n.onContextMenu.call(void 0, o, e.dataItem, e.field);
|
|
18
19
|
},
|
|
19
|
-
[
|
|
20
|
+
[n, e.dataItem, e.field]
|
|
20
21
|
)
|
|
21
|
-
},
|
|
22
|
-
style: { ...(
|
|
23
|
-
},
|
|
24
|
-
...c,
|
|
22
|
+
}, u = n.getCellPositionStyle(e.columnPosition), C = {
|
|
23
|
+
style: { ...(c = t.tdProps) == null ? void 0 : c.style, ...u }
|
|
24
|
+
}, l = {
|
|
25
25
|
...d,
|
|
26
|
-
...
|
|
26
|
+
...s,
|
|
27
|
+
...C
|
|
27
28
|
}, a = {
|
|
28
|
-
onContextMenu:
|
|
29
|
-
onChange:
|
|
30
|
-
selectionChange: (
|
|
31
|
-
|
|
32
|
-
event:
|
|
29
|
+
onContextMenu: n.onContextMenu,
|
|
30
|
+
onChange: n.itemChange,
|
|
31
|
+
selectionChange: (o) => {
|
|
32
|
+
n.selectionChange({
|
|
33
|
+
event: o,
|
|
33
34
|
dataItem: e.dataItem,
|
|
34
35
|
dataIndex: e.rowDataIndex,
|
|
35
36
|
columnIndex: e.columnIndex
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
|
-
if (
|
|
40
|
-
return
|
|
40
|
+
if (t.isCustom)
|
|
41
|
+
return n.isClient || t.isClient ? r(t.children, {
|
|
41
42
|
// pass down to tdProps for client templates
|
|
42
|
-
tdProps: { ...
|
|
43
|
+
tdProps: { ...t.tdProps, ...l },
|
|
43
44
|
...a
|
|
44
|
-
}) :
|
|
45
|
-
...
|
|
45
|
+
}) : r(t.children, {
|
|
46
|
+
...l
|
|
46
47
|
});
|
|
47
48
|
if (e.render) {
|
|
48
|
-
const
|
|
49
|
-
return e.render.call(void 0,
|
|
49
|
+
const o = e.rowType !== "groupHeader" ? /* @__PURE__ */ i.createElement("td", { ...t.tdProps, ...l }, t.content) : null;
|
|
50
|
+
return e.render.call(void 0, o, {
|
|
50
51
|
...e,
|
|
51
52
|
...a
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
|
-
return
|
|
55
|
-
...
|
|
55
|
+
return t.children && r(t.children, {
|
|
56
|
+
...l
|
|
56
57
|
});
|
|
57
58
|
};
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
+
I as GridSelectionCellContainer
|
|
60
61
|
};
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),c=require("../GridClientWrapper.js"),i=require("../utils/index.js");function l(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 a=l(o),u=e=>{const t=a.useContext(c.GridContext);return i.cloneReactElement(e.children,{ref:t.containerElementRef,onScroll:t.scrollHandler})};exports.GridContainerElementContainer=u;
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import { GridContext as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
ref:
|
|
16
|
-
onScroll:
|
|
9
|
+
import * as r from "react";
|
|
10
|
+
import { GridContext as n } from "../GridClientWrapper.mjs";
|
|
11
|
+
import { cloneReactElement as o } from "../utils/index.mjs";
|
|
12
|
+
const c = (t) => {
|
|
13
|
+
const e = r.useContext(n);
|
|
14
|
+
return o(t.children, {
|
|
15
|
+
ref: e.containerElementRef,
|
|
16
|
+
onScroll: e.scrollHandler
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),o=require("../GridClientWrapper.js"),a=require("../utils/index.js");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=c(r),u=e=>{const t=l.useContext(o.GridContext);return t.isClient||e.isClient?e.children&&a.cloneReactElement(e.children,{onContextMenu:t.onContextMenu,onChange:t.itemChange,selectionChange:n=>{t.selectionChange({event:n,dataItem:e.dataItem,dataIndex:e.rowDataIndex,columnIndex:e.columnIndex})}}):e.children};exports.GridCustomCellClientContainer=u;
|
|
@@ -6,16 +6,17 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
9
|
+
import * as i from "react";
|
|
10
10
|
import { GridContext as o } from "../GridClientWrapper.mjs";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
import { cloneReactElement as a } from "../utils/index.mjs";
|
|
12
|
+
const d = (e) => {
|
|
13
|
+
const n = i.useContext(o);
|
|
14
|
+
return n.isClient || e.isClient ? e.children && a(e.children, {
|
|
14
15
|
onContextMenu: n.onContextMenu,
|
|
15
16
|
onChange: n.itemChange,
|
|
16
|
-
selectionChange: (
|
|
17
|
+
selectionChange: (t) => {
|
|
17
18
|
n.selectionChange({
|
|
18
|
-
event:
|
|
19
|
+
event: t,
|
|
19
20
|
dataItem: e.dataItem,
|
|
20
21
|
dataIndex: e.rowDataIndex,
|
|
21
22
|
columnIndex: e.columnIndex
|
|
@@ -24,5 +25,5 @@ const C = (e) => {
|
|
|
24
25
|
}) : e.children;
|
|
25
26
|
};
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
+
d as GridCustomCellClientContainer
|
|
28
29
|
};
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),A=require("../GridClientWrapper.js"),y=require("@progress/kendo-react-common"),n=require("./utils.js"),L=require("react-dom"),
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),A=require("../GridClientWrapper.js"),y=require("@progress/kendo-react-common"),n=require("./utils.js"),L=require("react-dom"),R=require("@progress/kendo-svg-icons"),X=require("../utils/index.js"),E={zIndex:"19000",position:"absolute",display:"none",visibility:"hidden"},S={zIndex:"20000",display:"flex",position:"fixed",visibility:"hidden",pointerEvents:"none"},J=m=>{const{rowReorderSettings:l,columns:w,unstyled:C}=m,{rowReorder:k,reorderRowDragTargetRef:u,reorderRowDropTargetRef:i,activeDragRowDataItemRef:d,tableBodyElementRef:T}=e.useContext(A.GridContext),[N,h]=e.useState(!1),[O,q]=e.useState(R.cancelIcon),b=e.useRef(null),f=e.useRef(null),c=e.useRef(null),I=e.useRef(null),p=e.useRef(!1),D=e.useRef(null),v=typeof l=="object"?l.enabled:l;e.useEffect(()=>{T.current=b.current},[]);const P=r=>{const t=r.originalEvent.target;t.closest(".k-drag-cell")&&(I.current=r.offsetY,p.current=!0,u.current=t.closest(".k-table-row"))},M=r=>{!p.current||!v||!d.current||(u.current&&(u.current.style.userSelect="none"),h(!0))},Y=r=>{if(!p.current&&!f.current)return;const{clientX:t,clientY:o}=r,a=I.current,g={x:t,y:o-a};f.current&&(f.current.style.left=`${g.x}px`,f.current.style.top=`${g.y}px`,f.current.style.visibility="visible"),F(r)},B=r=>{var o;if(!v||!d.current)return;h(!1);const t=Number((o=i.current)==null?void 0:o.getAttribute("absolute-row-index"));k(r,t,D.current),p.current=!1};y.useDraggable(b,{onPress:P,onDragStart:M,onDrag:Y,onDragEnd:B});const F=r=>{D.current=z(r),G()},G=()=>{var a;if(D.current===n.dropDirection.forbidden||!i.current){$();return}V();const r=n.getOffset(i.current);let t=r.top;const o=r.left+(((a=c.current)==null?void 0:a.offsetWidth)||0)/2;D.current===n.dropDirection.after&&(t+=i.current.offsetHeight),c.current&&(c.current.style.top=`${t}px`,c.current.style.left=`${o}px`,c.current.style.visibility="visible")},$=()=>{c.current&&(c.current.style.display="none")},V=()=>{c.current&&(c.current.style.display="")},j=()=>{if(d.current){if(l.dragClue)return typeof l.dragClue=="string"?l.dragClue:l.dragClue(d.current);{const r=w.find(o=>!o.hidden&&o.columnType==="data");return d.current[r.field]}}},z=r=>{if(i.current===u.current||!i.current||n.isDifferentParent(i.current,u.current))return n.dropDirection.forbidden;const t=i.current.getBoundingClientRect(),a=t.height/2,g=r.clientY,x=t.top;let s=null;g<x+a?s=n.dropDirection.before:g>=x+t.height-a&&(s=n.dropDirection.after),(s===n.dropDirection.before&&i.current===u.current.nextElementSibling||s===n.dropDirection.after&&i.current===u.current.previousElementSibling)&&(s=n.dropDirection.forbidden);const W=s===n.dropDirection.forbidden?R.cancelIcon:R.insertMiddleIcon;return q(W),s},H=e.useMemo(j,[d.current]);return e.createElement(e.Fragment,null,N&&L.createPortal(e.createElement(e.Fragment,null,e.createElement("div",{ref:c,style:E,className:y.classNames(C.rowReorder({dropIndicatorMain:!0,dropIndicatorDirection:!0}))},e.createElement("div",{className:"k-drop-hint-start"}),e.createElement("div",{className:"k-drop-hint-line"})),e.createElement("div",{ref:f,style:S,className:y.classNames(C.rowReorder({dragClueMain:!0,dragClueOperation:!0}))},e.createElement(y.SvgIcon,{className:"k-drag-status",icon:O}),H)),document.body),X.cloneReactElement(m.children,{ref:b}))};exports.GridReorderableRowsContainer=J;exports.dropIndicatorStyles=E;exports.hintClueStyles=S;
|
|
@@ -12,18 +12,19 @@ import { useDraggable as G, classNames as v, SvgIcon as H } from "@progress/kend
|
|
|
12
12
|
import { dropDirection as o, getOffset as _, isDifferentParent as j } from "./utils.mjs";
|
|
13
13
|
import A from "react-dom";
|
|
14
14
|
import { cancelIcon as E, insertMiddleIcon as L } from "@progress/kendo-svg-icons";
|
|
15
|
-
|
|
15
|
+
import { cloneReactElement as W } from "../utils/index.mjs";
|
|
16
|
+
const X = {
|
|
16
17
|
zIndex: "19000",
|
|
17
18
|
position: "absolute",
|
|
18
19
|
display: "none",
|
|
19
20
|
visibility: "hidden"
|
|
20
|
-
},
|
|
21
|
+
}, q = {
|
|
21
22
|
zIndex: "20000",
|
|
22
23
|
display: "flex",
|
|
23
24
|
position: "fixed",
|
|
24
25
|
visibility: "hidden",
|
|
25
26
|
pointerEvents: "none"
|
|
26
|
-
},
|
|
27
|
+
}, ce = (b) => {
|
|
27
28
|
const { rowReorderSettings: l, columns: x, unstyled: y } = b, {
|
|
28
29
|
rowReorder: w,
|
|
29
30
|
reorderRowDragTargetRef: a,
|
|
@@ -98,7 +99,7 @@ const W = {
|
|
|
98
99
|
"div",
|
|
99
100
|
{
|
|
100
101
|
ref: c,
|
|
101
|
-
style:
|
|
102
|
+
style: X,
|
|
102
103
|
className: v(
|
|
103
104
|
y.rowReorder({ dropIndicatorMain: !0, dropIndicatorDirection: !0 })
|
|
104
105
|
)
|
|
@@ -109,19 +110,19 @@ const W = {
|
|
|
109
110
|
"div",
|
|
110
111
|
{
|
|
111
112
|
ref: f,
|
|
112
|
-
style:
|
|
113
|
+
style: q,
|
|
113
114
|
className: v(y.rowReorder({ dragClueMain: !0, dragClueOperation: !0 }))
|
|
114
115
|
},
|
|
115
116
|
/* @__PURE__ */ e.createElement(H, { className: "k-drag-status", icon: k }),
|
|
116
117
|
$
|
|
117
118
|
)),
|
|
118
119
|
document.body
|
|
119
|
-
),
|
|
120
|
+
), W(b.children, {
|
|
120
121
|
ref: D
|
|
121
122
|
}));
|
|
122
123
|
};
|
|
123
124
|
export {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
ce as GridReorderableRowsContainer,
|
|
126
|
+
X as dropIndicatorStyles,
|
|
127
|
+
q as hintClueStyles
|
|
127
128
|
};
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),c=require("../GridClientWrapper.js"),i=require("../utils/index.js");function u(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 a=u(o),l=e=>{const t=a.useContext(c.GridContext);return i.cloneReactElement(e.children,{ref:t.elementRef,onKeyDown:t.onKeyDown,onFocus:t.onFocus})};exports.GridElementContainer=l;
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as n from "react";
|
|
10
|
-
import { GridContext as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
import { GridContext as t } from "../GridClientWrapper.mjs";
|
|
11
|
+
import { cloneReactElement as r } from "../utils/index.mjs";
|
|
12
|
+
const i = (o) => {
|
|
13
|
+
const e = n.useContext(t);
|
|
14
|
+
return r(o.children, {
|
|
15
15
|
ref: e.elementRef,
|
|
16
16
|
onKeyDown: e.onKeyDown,
|
|
17
17
|
onFocus: e.onFocus
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
i as GridElementContainer
|
|
22
22
|
};
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),o=require("../GridClientWrapper.js"),c=require("../messages/messagesMap.js"),i=require("../utils/index.js");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const g=s(a),u=e=>{const t=g.useContext(o.GridContext);return i.cloneReactElement(e.children,{onPageChange:t.pagerPageChange,messagesMap:c.pagerMessagesMap,dir:t.dir})};exports.PagerContainer=u;
|
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import { GridContext as
|
|
9
|
+
import * as t from "react";
|
|
10
|
+
import { GridContext as o } from "../GridClientWrapper.mjs";
|
|
11
11
|
import { pagerMessagesMap as a } from "../messages/messagesMap.mjs";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
onPageChange:
|
|
12
|
+
import { cloneReactElement as n } from "../utils/index.mjs";
|
|
13
|
+
const s = (r) => {
|
|
14
|
+
const e = t.useContext(o);
|
|
15
|
+
return n(r.children, {
|
|
16
|
+
onPageChange: e.pagerPageChange,
|
|
17
17
|
messagesMap: a,
|
|
18
|
-
dir:
|
|
18
|
+
dir: e.dir
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
s as PagerContainer
|
|
23
23
|
};
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),l=require("../../GridClientWrapper.js"),a=require("@progress/kendo-react-common");function
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),l=require("../../GridClientWrapper.js"),a=require("@progress/kendo-react-common"),i=require("../../utils/index.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=d(c),u=e=>{const t=n.useContext(l.GridContext);return n.createElement(n.Fragment,null,e.rowReorderable?n.createElement(a.DragAndDrop,null,e.children):i.cloneReactElement(e.children,{ref:t.tableBodyElementRef}))};exports.GridTableBody=u;
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import { GridContext as
|
|
11
|
-
import { DragAndDrop as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
ref:
|
|
9
|
+
import * as e from "react";
|
|
10
|
+
import { GridContext as o } from "../../GridClientWrapper.mjs";
|
|
11
|
+
import { DragAndDrop as n } from "@progress/kendo-react-common";
|
|
12
|
+
import { cloneReactElement as l } from "../../utils/index.mjs";
|
|
13
|
+
const d = (t) => {
|
|
14
|
+
const r = e.useContext(o);
|
|
15
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, t.rowReorderable ? /* @__PURE__ */ e.createElement(n, null, t.children) : l(t.children, {
|
|
16
|
+
ref: r.tableBodyElementRef
|
|
17
17
|
}));
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
d as GridTableBody
|
|
21
21
|
};
|