@progress/kendo-react-grid 11.0.0-develop.6 → 11.0.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/GridClientContextReader.js +1 -1
- package/GridClientContextReader.mjs +16 -13
- package/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +419 -421
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +402 -395
- package/VirtualScroll.js +1 -1
- package/VirtualScroll.mjs +65 -107
- package/cells/GridDetailHierarchyCell.js +1 -1
- package/cells/GridDetailHierarchyCell.mjs +4 -4
- package/cells/datacell/GridCell.js +9 -0
- package/cells/datacell/GridCell.mjs +29 -0
- package/cells/datacell/GridCellServer.js +8 -0
- package/cells/datacell/GridCellServer.mjs +27 -0
- package/cells/datacell/GridCellServerContainer.js +9 -0
- package/cells/datacell/GridCellServerContainer.mjs +26 -0
- package/cells/datacell/useCellClientTdProps.js +9 -0
- package/cells/datacell/useCellClientTdProps.mjs +30 -0
- package/cells/datacell/utils.js +8 -0
- package/cells/datacell/utils.mjs +47 -0
- package/cells/detailcell/GridDetailCell.js +9 -0
- package/cells/detailcell/GridDetailCell.mjs +18 -0
- package/cells/detailcell/GridDetailCellServer.js +8 -0
- package/cells/detailcell/GridDetailCellServer.mjs +17 -0
- package/cells/detailcell/GridDetailCellServerContainer.js +9 -0
- package/cells/detailcell/GridDetailCellServerContainer.mjs +19 -0
- package/cells/detailcell/useDetailCellClientTdProps.js +9 -0
- package/cells/detailcell/useDetailCellClientTdProps.mjs +20 -0
- package/cells/detailcell/utils.js +8 -0
- package/cells/detailcell/utils.mjs +20 -0
- package/cells/editcell/GridEditCell.js +9 -0
- package/cells/editcell/GridEditCell.mjs +26 -0
- package/cells/editcell/GridEditCellServer.js +8 -0
- package/cells/editcell/GridEditCellServer.mjs +32 -0
- package/cells/editcell/GridEditCellServerContainer.js +9 -0
- package/cells/editcell/GridEditCellServerContainer.mjs +26 -0
- package/cells/editcell/useEditCellClientTdProps.js +9 -0
- package/cells/editcell/useEditCellClientTdProps.mjs +21 -0
- package/cells/editcell/utils.js +8 -0
- package/cells/editcell/utils.mjs +29 -0
- package/cells/groupcell/GridGroupCell.js +9 -0
- package/cells/groupcell/GridGroupCell.mjs +24 -0
- package/cells/groupcell/GridGroupCellServer.js +8 -0
- package/cells/groupcell/GridGroupCellServer.mjs +44 -0
- package/cells/groupcell/GridGroupCellServerContainer.js +9 -0
- package/cells/groupcell/GridGroupCellServerContainer.mjs +38 -0
- package/cells/groupcell/useGroupCellClientTdProps.js +9 -0
- package/cells/groupcell/useGroupCellClientTdProps.mjs +44 -0
- package/cells/groupcell/utils.js +8 -0
- package/cells/groupcell/utils.mjs +48 -0
- package/cells/hierarchycell/GridHierarchyCell.js +9 -0
- package/cells/hierarchycell/GridHierarchyCell.mjs +25 -0
- package/cells/hierarchycell/GridHierarchyCellServer.js +8 -0
- package/cells/hierarchycell/GridHierarchyCellServer.mjs +32 -0
- package/cells/hierarchycell/GridHierarchyCellServerContainer.js +9 -0
- package/cells/hierarchycell/GridHierarchyCellServerContainer.mjs +26 -0
- package/cells/hierarchycell/useHierarchyCellClientTdProps.js +9 -0
- package/cells/hierarchycell/useHierarchyCellClientTdProps.mjs +35 -0
- package/cells/hierarchycell/utils.js +8 -0
- package/cells/hierarchycell/utils.mjs +30 -0
- package/cells/hooks.js +9 -0
- package/cells/hooks.mjs +41 -0
- package/cells/rowreordercell/GridRowReorderCell.js +9 -0
- package/cells/rowreordercell/GridRowReorderCell.mjs +19 -0
- package/cells/rowreordercell/GridRowReorderCellServer.js +8 -0
- package/cells/rowreordercell/GridRowReorderCellServer.mjs +18 -0
- package/cells/rowreordercell/GridRowReorderCellServerContainer.js +9 -0
- package/cells/rowreordercell/GridRowReorderCellServerContainer.mjs +19 -0
- package/cells/rowreordercell/useRowReorderCellClientTdProps.js +9 -0
- package/cells/rowreordercell/useRowReorderCellClientTdProps.mjs +26 -0
- package/cells/rowreordercell/utils.js +8 -0
- package/cells/rowreordercell/utils.mjs +30 -0
- package/cells/selectioncell/GridSelectionCell.js +9 -0
- package/cells/selectioncell/GridSelectionCell.mjs +26 -0
- package/cells/selectioncell/GridSelectionCellServer.js +8 -0
- package/cells/selectioncell/GridSelectionCellServer.mjs +33 -0
- package/cells/selectioncell/GridSelectionCellServerContainer.js +9 -0
- package/cells/selectioncell/GridSelectionCellServerContainer.mjs +26 -0
- package/cells/selectioncell/useSelectionCellClientTdProps.js +9 -0
- package/cells/selectioncell/useSelectionCellClientTdProps.mjs +21 -0
- package/cells/selectioncell/utils.js +8 -0
- package/cells/selectioncell/utils.mjs +25 -0
- package/components/GridDraggableRowsContainer.js +1 -1
- package/components/GridDraggableRowsContainer.mjs +71 -67
- package/components/VirtualScrollHeightContainer.js +1 -1
- package/components/VirtualScrollHeightContainer.mjs +4 -4
- package/components/table/GridTableScrollable.js +1 -1
- package/components/table/GridTableScrollable.mjs +16 -15
- package/components/utils.js +1 -1
- package/components/utils.mjs +9 -10
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/index.d.mts +19 -5
- package/index.d.ts +19 -5
- package/index.js +1 -1
- package/index.mjs +5 -5
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +16 -16
- package/utils/index.js +1 -1
- package/utils/index.mjs +112 -104
- package/VirtualScrollFixed.js +0 -8
- package/VirtualScrollFixed.mjs +0 -52
- package/cells/GridCell.js +0 -8
- package/cells/GridCell.mjs +0 -52
- package/cells/GridDetailCell.js +0 -8
- package/cells/GridDetailCell.mjs +0 -26
- package/cells/GridEditCell.js +0 -8
- package/cells/GridEditCell.mjs +0 -35
- package/cells/GridGroupCell.js +0 -8
- package/cells/GridGroupCell.mjs +0 -74
- package/cells/GridHierarchyCell.js +0 -8
- package/cells/GridHierarchyCell.mjs +0 -33
- package/cells/GridRowReorderCell.js +0 -8
- package/cells/GridRowReorderCell.mjs +0 -42
- package/cells/GridSelectionCell.js +0 -8
- package/cells/GridSelectionCell.mjs +0 -30
- package/cells/client/DetailCellContainer.js +0 -9
- package/cells/client/DetailCellContainer.mjs +0 -27
- package/cells/client/GridCellContainer.js +0 -9
- package/cells/client/GridCellContainer.mjs +0 -69
- package/cells/client/GridEditCellContainer.js +0 -9
- package/cells/client/GridEditCellContainer.mjs +0 -61
- package/cells/client/GridGroupCellContainer.js +0 -9
- package/cells/client/GridGroupCellContainer.mjs +0 -88
- package/cells/client/GridHierarchyCellContainer.js +0 -9
- package/cells/client/GridHierarchyCellContainer.mjs +0 -64
- package/cells/client/GridRowReorderContainer.js +0 -9
- package/cells/client/GridRowReorderContainer.mjs +0 -31
- package/cells/client/GridSelectionCellContainer.js +0 -9
- package/cells/client/GridSelectionCellContainer.mjs +0 -61
- /package/cells/{client → editcell}/GridEditCellEditor.js +0 -0
- /package/cells/{client → editcell}/GridEditCellEditor.mjs +0 -0
- /package/cells/{client → groupcell}/GridGroupCellToggle.js +0 -0
- /package/cells/{client → groupcell}/GridGroupCellToggle.mjs +0 -0
- /package/cells/{client → hierarchycell}/GridHierarchyCellToggle.js +0 -0
- /package/cells/{client → hierarchycell}/GridHierarchyCellToggle.mjs +0 -0
- /package/cells/{client → selectioncell}/GridSelectionCellInput.js +0 -0
- /package/cells/{client → selectioncell}/GridSelectionCellInput.mjs +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { uGrid as d, classNames as t } from "@progress/kendo-react-common";
|
|
9
|
+
const c = (s) => {
|
|
10
|
+
const { colSpan: e, ariaColIndex: l, unstyled: r } = s, o = r && r.uGrid ? r.uGrid : d;
|
|
11
|
+
return { tdProps: {
|
|
12
|
+
className: t(o.detailTd({})),
|
|
13
|
+
colSpan: e,
|
|
14
|
+
"aria-colindex": l,
|
|
15
|
+
role: "gridcell"
|
|
16
|
+
} };
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
c as getDetailCellTdProps
|
|
20
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),a=require("./GridEditCellEditor.js"),d=require("./utils.js"),p=require("../hooks.js"),C=require("./useEditCellClientTdProps.js");function f(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,l.get?l:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const o=f(u),g=r=>{const{cellProps:e}=r,{tdProps:t}=d.getEditCellTdProps(e),l=C.useEditCellClientTdProps(e),n=p.useLegacyCellProps(e),c=o.createElement(a.GridEditCellEditor,{cellProps:e}),s=d.getCustomCell(e);if(s)return o.createElement(s,{...e,...n,tdProps:{...t,...l}},c);const i=t?o.createElement("td",{...t,...l},c):null;return e.render?e.render.call(void 0,i,{...e,...n}):i};exports.GridEditCell=g;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as r from "react";
|
|
10
|
+
import { GridEditCellEditor as i } from "./GridEditCellEditor.mjs";
|
|
11
|
+
import { getEditCellTdProps as m, getCustomCell as p } from "./utils.mjs";
|
|
12
|
+
import { useLegacyCellProps as C } from "../hooks.mjs";
|
|
13
|
+
import { useEditCellClientTdProps as a } from "./useEditCellClientTdProps.mjs";
|
|
14
|
+
const g = (d) => {
|
|
15
|
+
const { cellProps: e } = d, { tdProps: t } = m(e), o = a(e), l = C(e), n = /* @__PURE__ */ r.createElement(i, { cellProps: e }), s = p(e);
|
|
16
|
+
if (s)
|
|
17
|
+
return /* @__PURE__ */ r.createElement(s, { ...e, ...l, tdProps: { ...t, ...o } }, n);
|
|
18
|
+
const c = t ? /* @__PURE__ */ r.createElement("td", { ...t, ...o }, n) : null;
|
|
19
|
+
return e.render ? e.render.call(void 0, c, {
|
|
20
|
+
...e,
|
|
21
|
+
...l
|
|
22
|
+
}) : c;
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
g as GridEditCell
|
|
26
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),c=require("../../utils/index.js"),C=require("./GridEditCellEditor.js"),s=require("./GridEditCellServerContainer.js"),d=require("./utils.js");function p(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const l=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,l.get?l:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const n=p(a),E=t=>{const{cellProps:r}=t,{tdProps:e}=d.getEditCellTdProps(r),l=c.getClientCellProps(r),o=n.createElement(C.GridEditCellEditor,{cellProps:l}),i=d.getCustomCell(r);if(i){const u=c.isClientReference(i);return n.createElement(s.GridEditCellServerContainer,{cellProps:l,tdProps:e,isCustom:!0,isClient:u},n.createElement(i,{...l,tdProps:e},o))}return n.createElement(s.GridEditCellServerContainer,{cellProps:l,tdProps:e},n.createElement("td",{...e},o))};exports.GridEditCellServer=E;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as e from "react";
|
|
9
|
+
import { getClientCellProps as m, isClientReference as C } from "../../utils/index.mjs";
|
|
10
|
+
import { GridEditCellEditor as p } from "./GridEditCellEditor.mjs";
|
|
11
|
+
import { GridEditCellServerContainer as i } from "./GridEditCellServerContainer.mjs";
|
|
12
|
+
import { getEditCellTdProps as d, getCustomCell as E } from "./utils.mjs";
|
|
13
|
+
const g = (s) => {
|
|
14
|
+
const { cellProps: l } = s, { tdProps: t } = d(l), r = m(l), n = /* @__PURE__ */ e.createElement(p, { cellProps: r }), o = E(l);
|
|
15
|
+
if (o) {
|
|
16
|
+
const c = C(o);
|
|
17
|
+
return /* @__PURE__ */ e.createElement(
|
|
18
|
+
i,
|
|
19
|
+
{
|
|
20
|
+
cellProps: r,
|
|
21
|
+
tdProps: t,
|
|
22
|
+
isCustom: !0,
|
|
23
|
+
isClient: c
|
|
24
|
+
},
|
|
25
|
+
/* @__PURE__ */ e.createElement(o, { ...r, tdProps: t }, n)
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
return /* @__PURE__ */ e.createElement(i, { cellProps: r, tdProps: t }, /* @__PURE__ */ e.createElement("td", { ...t }, n));
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
g as GridEditCellServer
|
|
32
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),c=require("../../GridClientWrapper.js"),o=require("./useEditCellClientTdProps.js"),s=require("../hooks.js"),i=require("../../utils/index.js");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=d(l),a=e=>{const r=u.useContext(c.GridContext),t=o.useEditCellClientTdProps(e.cellProps),n=s.useLegacyCellProps(e.cellProps);return e.isCustom&&(r.isClient||e.isClient)?i.cloneReactElement(e.children,{tdProps:{...e.tdProps,...t},...n}):e.children&&i.cloneReactElement(e.children,{...t})};exports.GridEditCellServerContainer=a;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as o from "react";
|
|
10
|
+
import { GridContext as n } from "../../GridClientWrapper.mjs";
|
|
11
|
+
import { useEditCellClientTdProps as c } from "./useEditCellClientTdProps.mjs";
|
|
12
|
+
import { useLegacyCellProps as s } from "../hooks.mjs";
|
|
13
|
+
import { cloneReactElement as r } from "../../utils/index.mjs";
|
|
14
|
+
const f = (e) => {
|
|
15
|
+
const i = o.useContext(n), t = c(e.cellProps), l = s(e.cellProps);
|
|
16
|
+
return e.isCustom && (i.isClient || e.isClient) ? r(e.children, {
|
|
17
|
+
// pass down to tdProps for client templates
|
|
18
|
+
tdProps: { ...e.tdProps, ...t },
|
|
19
|
+
...l
|
|
20
|
+
}) : e.children && r(e.children, {
|
|
21
|
+
...t
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
f as GridEditCellServerContainer
|
|
26
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@progress/kendo-react-data-tools"),t=require("../hooks.js"),l=e=>{const n=s.useTableKeyboardNavigation(e.id),o=t.useContextMenuHandler(e.dataItem,e.field),i=t.usePositionStyle(e);return{...n,onContextMenu:o,style:i}};exports.useEditCellClientTdProps=l;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { useTableKeyboardNavigation as i } from "@progress/kendo-react-data-tools";
|
|
10
|
+
import { useContextMenuHandler as a, usePositionStyle as s } from "../hooks.mjs";
|
|
11
|
+
const u = (t) => {
|
|
12
|
+
const e = i(t.id), n = a(t.dataItem, t.field), o = s(t);
|
|
13
|
+
return {
|
|
14
|
+
...e,
|
|
15
|
+
onContextMenu: n,
|
|
16
|
+
style: o
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
u as useEditCellClientTdProps
|
|
21
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../constants/index.js"),s=require("@progress/kendo-react-common"),i=e=>{let t=null;const l=e.unstyled,d=l&&l.uGrid?l.uGrid:s.uGrid,c=s.classNames(d.editTd({selected:e.isSelected}),e.className);return t={colSpan:e.colSpan,style:e.style,className:c,"aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,[n.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex,role:"gridcell"},{tdProps:t}},a=e=>{var t,l,d;return((l=(t=e.cells)==null?void 0:t.edit)==null?void 0:l[e.editor||"text"])||((d=e.cells)==null?void 0:d.data)};exports.getCustomCell=a;exports.getEditCellTdProps=i;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { GRID_COL_INDEX_ATTRIBUTE as c } from "../../constants/index.mjs";
|
|
9
|
+
import { uGrid as a, classNames as i } from "@progress/kendo-react-common";
|
|
10
|
+
const o = (e) => {
|
|
11
|
+
let t = null;
|
|
12
|
+
const l = e.unstyled, d = l && l.uGrid ? l.uGrid : a, s = i(d.editTd({ selected: e.isSelected }), e.className);
|
|
13
|
+
return t = {
|
|
14
|
+
colSpan: e.colSpan,
|
|
15
|
+
style: e.style,
|
|
16
|
+
className: s,
|
|
17
|
+
"aria-colindex": e.ariaColumnIndex,
|
|
18
|
+
"aria-selected": e.isSelected,
|
|
19
|
+
[c]: e.columnIndex,
|
|
20
|
+
role: "gridcell"
|
|
21
|
+
}, { tdProps: t };
|
|
22
|
+
}, u = (e) => {
|
|
23
|
+
var t, l, d;
|
|
24
|
+
return ((l = (t = e.cells) == null ? void 0 : t.edit) == null ? void 0 : l[e.editor || "text"]) || ((d = e.cells) == null ? void 0 : d.data);
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
u as getCustomCell,
|
|
28
|
+
o as getEditCellTdProps
|
|
29
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),g=require("./utils.js"),y=require("./useGroupCellClientTdProps.js"),b=require("../hooks.js");function T(l){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const e in l)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(l,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>l[e]})}}return t.default=l,Object.freeze(t)}const o=T(P),G=l=>{const{cellProps:t}=l,{tdProps:e,td2Props:n,content:s,renderToggleCell:m}=g.getGroupCellTdProps(t),r=y.useGroupCellClientTdProps(t,m),f=b.useLegacyCellProps(t),u={...t,...f},i={...e,...r,style:{...e==null?void 0:e.style,...r.style}},c=n?{...n,onContextMenu:r.onContextMenu}:null,d=g.getCustomCell(t);if(d)return o.createElement(d,{...u,tdProps:i,td2Props:c},s);const a=e?o.createElement("td",{...i,key:e==null?void 0:e.key},s):null,p=c?o.createElement("td",{...c}):null,C=p?o.createElement(o.Fragment,null,a,p):a;return t.render?t.render.call(void 0,C,{...u}):C};exports.GridGroupCell=G;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as t from "react";
|
|
10
|
+
import { getGroupCellTdProps as g, getCustomCell as f } from "./utils.mjs";
|
|
11
|
+
import { useGroupCellClientTdProps as y } from "./useGroupCellClientTdProps.mjs";
|
|
12
|
+
import { useLegacyCellProps as T } from "../hooks.mjs";
|
|
13
|
+
const x = (i) => {
|
|
14
|
+
const { cellProps: l } = i, { tdProps: e, td2Props: r, content: s, renderToggleCell: a } = g(l), o = y(l, a), P = T(l), c = { ...l, ...P }, d = { ...e, ...o, style: { ...e == null ? void 0 : e.style, ...o.style } }, n = r ? { ...r, onContextMenu: o.onContextMenu } : null, m = f(l);
|
|
15
|
+
if (m)
|
|
16
|
+
return /* @__PURE__ */ t.createElement(m, { ...c, tdProps: d, td2Props: n }, s);
|
|
17
|
+
const C = e ? /* @__PURE__ */ t.createElement("td", { ...d, key: e == null ? void 0 : e.key }, s) : null, p = n ? /* @__PURE__ */ t.createElement("td", { ...n }) : null, u = p ? /* @__PURE__ */ t.createElement(t.Fragment, null, C, p) : C;
|
|
18
|
+
return l.render ? l.render.call(void 0, u, {
|
|
19
|
+
...c
|
|
20
|
+
}) : u;
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
x as GridGroupCell
|
|
24
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),s=require("./GridGroupCellServerContainer.js"),u=require("../../utils/index.js"),a=require("./utils.js");function f(t){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const e=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(l,r,e.get?e:{enumerable:!0,get:()=>t[r]})}}return l.default=t,Object.freeze(l)}const n=f(g),m=t=>{const{cellProps:l}=t,r=u.getClientCellProps(l),{tdProps:e,td2Props:o,content:c,renderToggleCell:C}=a.getGroupCellTdProps(l),i=a.getCustomCell(l);if(i){const p=u.isClientReference(i);return n.createElement(s.GridGroupCellServerContainer,{cellProps:r,tdProps:e,td2Props:o,isCustom:!0,isClient:p,renderToggleCell:!0},n.createElement(i,{...r,tdProps:e,td2Props:o},c))}const d=e?n.createElement("td",{...e,key:e==null?void 0:e.key},c):null;return n.createElement(s.GridGroupCellServerContainer,{cellProps:r,renderToggleCell:C,tdProps:e,td2Props:o,content:c},d)};exports.GridGroupCellServer=m;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as r from "react";
|
|
9
|
+
import { GridGroupCellServerContainer as c } from "./GridGroupCellServerContainer.mjs";
|
|
10
|
+
import { getClientCellProps as u, isClientReference as a } from "../../utils/index.mjs";
|
|
11
|
+
import { getGroupCellTdProps as d, getCustomCell as g } from "./utils.mjs";
|
|
12
|
+
const E = (i) => {
|
|
13
|
+
const { cellProps: t } = i, l = u(t), { tdProps: e, td2Props: o, content: n, renderToggleCell: C } = d(t), s = g(t);
|
|
14
|
+
if (s) {
|
|
15
|
+
const p = a(s);
|
|
16
|
+
return /* @__PURE__ */ r.createElement(
|
|
17
|
+
c,
|
|
18
|
+
{
|
|
19
|
+
cellProps: l,
|
|
20
|
+
tdProps: e,
|
|
21
|
+
td2Props: o,
|
|
22
|
+
isCustom: !0,
|
|
23
|
+
isClient: p,
|
|
24
|
+
renderToggleCell: !0
|
|
25
|
+
},
|
|
26
|
+
/* @__PURE__ */ r.createElement(s, { ...l, tdProps: e, td2Props: o }, n)
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
const m = e ? /* @__PURE__ */ r.createElement("td", { ...e, key: e == null ? void 0 : e.key }, n) : null;
|
|
30
|
+
return /* @__PURE__ */ r.createElement(
|
|
31
|
+
c,
|
|
32
|
+
{
|
|
33
|
+
cellProps: l,
|
|
34
|
+
renderToggleCell: C,
|
|
35
|
+
tdProps: e,
|
|
36
|
+
td2Props: o,
|
|
37
|
+
content: n
|
|
38
|
+
},
|
|
39
|
+
m
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
E as GridGroupCellServer
|
|
44
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),d=require("../../GridClientWrapper.js"),c=require("../../utils/index.js"),a=require("./useGroupCellClientTdProps.js"),C=require("../hooks.js");function P(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=P(s),g=e=>{const{cellProps:t,renderToggleCell:n}=e,l=o.useContext(d.GridContext),r=a.useGroupCellClientTdProps(t,n),i=C.useLegacyCellProps(t);if(e.isCustom)return l.isClient||e.isClient?c.cloneReactElement(e.children,{tdProps:e.tdProps?{...e.tdProps,...r}:null,td2Props:e.td2Props?{...e.td2Props,onContextMenu:r.onContextMenu}:null,...i}):c.cloneReactElement(e.children,{...r});const u=e.td2Props?o.createElement("td",{...e.td2Props,onContextMenu:r.onContextMenu}):null;return o.createElement(o.Fragment,null,e.children&&c.cloneReactElement(e.children,{...r}),u)};exports.GridGroupCellServerContainer=g;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as n from "react";
|
|
10
|
+
import { GridContext as C } from "../../GridClientWrapper.mjs";
|
|
11
|
+
import { cloneReactElement as l } from "../../utils/index.mjs";
|
|
12
|
+
import { useGroupCellClientTdProps as u } from "./useGroupCellClientTdProps.mjs";
|
|
13
|
+
import { useLegacyCellProps as s } from "../hooks.mjs";
|
|
14
|
+
const f = (e) => {
|
|
15
|
+
const { cellProps: o, renderToggleCell: r } = e, i = n.useContext(C), t = u(o, r), c = s(o);
|
|
16
|
+
if (e.isCustom)
|
|
17
|
+
return i.isClient || e.isClient ? l(e.children, {
|
|
18
|
+
// pass down to tdProps for client templates
|
|
19
|
+
tdProps: e.tdProps ? {
|
|
20
|
+
...e.tdProps,
|
|
21
|
+
...t
|
|
22
|
+
} : null,
|
|
23
|
+
td2Props: e.td2Props ? {
|
|
24
|
+
...e.td2Props,
|
|
25
|
+
onContextMenu: t.onContextMenu
|
|
26
|
+
} : null,
|
|
27
|
+
...c
|
|
28
|
+
}) : l(e.children, {
|
|
29
|
+
...t
|
|
30
|
+
});
|
|
31
|
+
const d = e.td2Props ? /* @__PURE__ */ n.createElement("td", { ...e.td2Props, onContextMenu: t.onContextMenu }) : null;
|
|
32
|
+
return /* @__PURE__ */ n.createElement(n.Fragment, null, e.children && l(e.children, {
|
|
33
|
+
...t
|
|
34
|
+
}), d);
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
f as GridGroupCellServerContainer
|
|
38
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),y=require("../../GridClientWrapper.js"),r=require("@progress/kendo-react-data-tools"),p=require("@progress/kendo-react-common"),u=require("../hooks.js");function m(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const i=m(f),b=(e,n)=>{const t=i.useContext(y.GridContext),o=r.useTableKeyboardNavigation(e.id),d=u.useContextMenuHandler(e.dataItem,e.field),s=u.usePositionStyle(e),c=i.useCallback(a=>{a.isDefaultPrevented()||a.keyCode===p.Keys.enter&&(t!=null&&t.itemChange)&&(a.preventDefault(),t.itemChange({dataItem:e.dataItem,dataIndex:e.dataIndex,syntheticEvent:a,field:void 0,value:!e.expanded}),t==null||t.dispatchGroupExpand({type:r.GROUP_EXPAND_ACTION.TOGGLE,group:e.group},a))},[t,e.dataItem,e.dataIndex,e.expanded,e.group]);return{...o,...n?{onKeyDown:c}:{},onContextMenu:d,style:s}};exports.useGroupCellClientTdProps=b;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as a from "react";
|
|
10
|
+
import { GridContext as m } from "../../GridClientWrapper.mjs";
|
|
11
|
+
import { useTableKeyboardNavigation as s, GROUP_EXPAND_ACTION as f } from "@progress/kendo-react-data-tools";
|
|
12
|
+
import { Keys as y } from "@progress/kendo-react-common";
|
|
13
|
+
import { useContextMenuHandler as p, usePositionStyle as x } from "../hooks.mjs";
|
|
14
|
+
const b = (t, o) => {
|
|
15
|
+
const e = a.useContext(m), d = s(t.id), i = p(t.dataItem, t.field), u = x(t), r = a.useCallback(
|
|
16
|
+
(n) => {
|
|
17
|
+
n.isDefaultPrevented() || n.keyCode === y.enter && (e != null && e.itemChange) && (n.preventDefault(), e.itemChange({
|
|
18
|
+
dataItem: t.dataItem,
|
|
19
|
+
dataIndex: t.dataIndex,
|
|
20
|
+
syntheticEvent: n,
|
|
21
|
+
field: void 0,
|
|
22
|
+
value: !t.expanded
|
|
23
|
+
}), e == null || e.dispatchGroupExpand(
|
|
24
|
+
{
|
|
25
|
+
type: f.TOGGLE,
|
|
26
|
+
group: t.group
|
|
27
|
+
},
|
|
28
|
+
n
|
|
29
|
+
));
|
|
30
|
+
},
|
|
31
|
+
[e, t.dataItem, t.dataIndex, t.expanded, t.group]
|
|
32
|
+
);
|
|
33
|
+
return {
|
|
34
|
+
...d,
|
|
35
|
+
...o ? {
|
|
36
|
+
onKeyDown: r
|
|
37
|
+
} : {},
|
|
38
|
+
onContextMenu: i,
|
|
39
|
+
style: u
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
b as useGroupCellClientTdProps
|
|
44
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),k=require("@progress/kendo-react-common"),S=require("./GridGroupCellToggle.js"),P=require("../../utils/index.js");function T(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const r=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(e,l,r.get?r:{enumerable:!0,get:()=>t[l]})}}return e.default=t,Object.freeze(e)}const g=T(b),v=t=>{const{columnIndex:e,level:l,columnsCount:r,rowType:p,dataItem:n,field:m,expanded:f,ariaColumnIndex:C,locked:s,style:a}=t,c=m||"";let o=null,d=null,i=null;const y=P.getClientCellProps(t);let u=!1;return e===void 0||l===void 0||e<l||r===void 0||p!=="groupHeader"||n[c]===void 0?o={style:a,key:"g"+e,className:k.classNames("k-table-td","k-group-cell",{"k-grid-content-sticky":s}),role:"gridcell"}:e===l&&(u=!0,o={className:"k-table-td",style:a,colSpan:r-e,key:"g-colspan",role:"gridcell","aria-selected":!1,"aria-expanded":f,"aria-colindex":C},i=g.createElement("p",{className:"k-reset"},g.createElement(S.GridGroupCellToggle,{...y}),n[c]instanceof Date?n[c].toString():n[c]),s&&(o={...o,colSpan:0,style:{...a,position:"sticky",zIndex:2}},d={className:"k-table-td",role:"gridcell",colSpan:r-e,style:{borderLeftWidth:0,borderRightWidth:0}})),{tdProps:o,td2Props:d,content:i,renderToggleCell:u}},x=t=>{var e,l;return(l=(e=t.cells)==null?void 0:e.group)==null?void 0:l[t.rowType||"data"]};exports.getCustomCell=x;exports.getGroupCellTdProps=v;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as m from "react";
|
|
9
|
+
import { classNames as y } from "@progress/kendo-react-common";
|
|
10
|
+
import { GridGroupCellToggle as x } from "./GridGroupCellToggle.mjs";
|
|
11
|
+
import { getClientCellProps as S } from "../../utils/index.mjs";
|
|
12
|
+
const T = (t) => {
|
|
13
|
+
const { columnIndex: e, level: l, columnsCount: n, rowType: g, dataItem: r, field: u, expanded: f, ariaColumnIndex: k, locked: s, style: d } = t, a = u || "";
|
|
14
|
+
let o = null, c = null, i = null;
|
|
15
|
+
const C = S(t);
|
|
16
|
+
let p = !1;
|
|
17
|
+
return e === void 0 || l === void 0 || e < l || n === void 0 || g !== "groupHeader" || r[a] === void 0 ? o = {
|
|
18
|
+
style: d,
|
|
19
|
+
key: "g" + e,
|
|
20
|
+
className: y("k-table-td", "k-group-cell", { "k-grid-content-sticky": s }),
|
|
21
|
+
role: "gridcell"
|
|
22
|
+
} : e === l && (p = !0, o = {
|
|
23
|
+
className: "k-table-td",
|
|
24
|
+
style: d,
|
|
25
|
+
colSpan: n - e,
|
|
26
|
+
key: "g-colspan",
|
|
27
|
+
role: "gridcell",
|
|
28
|
+
"aria-selected": !1,
|
|
29
|
+
"aria-expanded": f,
|
|
30
|
+
"aria-colindex": k
|
|
31
|
+
}, i = /* @__PURE__ */ m.createElement("p", { className: "k-reset" }, /* @__PURE__ */ m.createElement(x, { ...C }), r[a] instanceof Date ? r[a].toString() : r[a]), s && (o = {
|
|
32
|
+
...o,
|
|
33
|
+
colSpan: 0,
|
|
34
|
+
style: { ...d, position: "sticky", zIndex: 2 }
|
|
35
|
+
}, c = {
|
|
36
|
+
className: "k-table-td",
|
|
37
|
+
role: "gridcell",
|
|
38
|
+
colSpan: n - e,
|
|
39
|
+
style: { borderLeftWidth: 0, borderRightWidth: 0 }
|
|
40
|
+
})), { tdProps: o, td2Props: c, content: i, renderToggleCell: p };
|
|
41
|
+
}, I = (t) => {
|
|
42
|
+
var e, l;
|
|
43
|
+
return (l = (e = t.cells) == null ? void 0 : e.group) == null ? void 0 : l[t.rowType || "data"];
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
I as getCustomCell,
|
|
47
|
+
T as getGroupCellTdProps
|
|
48
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),i=require("./utils.js"),d=require("./useHierarchyCellClientTdProps.js"),p=require("../hooks.js");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const u=g(a),y=t=>{const{cellProps:e}=t,{tdProps:r,content:o}=i.getHierarchyCellTdProps(e),l=d.useHierarchyCellClientTdProps(e),n=p.useLegacyCellProps(e),c=i.getCustomCell(e);if(c)return u.createElement(c,{...e,...n,tdProps:{...r,...l}},o);const s=e.rowType!=="groupHeader"?u.createElement("td",{...r,...l},o):null;return e.render?e.render.call(void 0,s,{...e,...n}):s};exports.GridHierarchyCell=y;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as c from "react";
|
|
10
|
+
import { getHierarchyCellTdProps as d, getCustomCell as i } from "./utils.mjs";
|
|
11
|
+
import { useHierarchyCellClientTdProps as a } from "./useHierarchyCellClientTdProps.mjs";
|
|
12
|
+
import { useLegacyCellProps as m } from "../hooks.mjs";
|
|
13
|
+
const f = (p) => {
|
|
14
|
+
const { cellProps: e } = p, { tdProps: r, content: t } = d(e), o = a(e), l = m(e), n = i(e);
|
|
15
|
+
if (n)
|
|
16
|
+
return /* @__PURE__ */ c.createElement(n, { ...e, ...l, tdProps: { ...r, ...o } }, t);
|
|
17
|
+
const s = e.rowType !== "groupHeader" ? /* @__PURE__ */ c.createElement("td", { ...r, ...o }, t) : null;
|
|
18
|
+
return e.render ? e.render.call(void 0, s, {
|
|
19
|
+
...e,
|
|
20
|
+
...l
|
|
21
|
+
}) : s;
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
f as GridHierarchyCell
|
|
25
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),i=require("../../utils/index.js"),s=require("./GridHierarchyCellServerContainer.js"),a=require("./utils.js");function p(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const l=p(C),f=t=>{const{cellProps:e}=t,r=i.getClientCellProps(e),{tdProps:n,content:o}=a.getHierarchyCellTdProps(e),c=a.getCustomCell(e);if(c){const d=i.isClientReference(c);return l.createElement(s.GridHierarchyCellServerContainer,{cellProps:r,tdProps:n,isCustom:!0,isClient:d},l.createElement(c,{...r,tdProps:n},o))}const u=e.rowType!=="groupHeader"?l.createElement("td",{...n},o):null;return l.createElement(s.GridHierarchyCellServerContainer,{cellProps:r,tdProps:n},u)};exports.GridHierarchyCellServer=f;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as t from "react";
|
|
9
|
+
import { getClientCellProps as p, isClientReference as C } from "../../utils/index.mjs";
|
|
10
|
+
import { GridHierarchyCellServerContainer as c } from "./GridHierarchyCellServerContainer.mjs";
|
|
11
|
+
import { getHierarchyCellTdProps as a, getCustomCell as u } from "./utils.mjs";
|
|
12
|
+
const g = (s) => {
|
|
13
|
+
const { cellProps: e } = s, l = p(e), { tdProps: r, content: n } = a(e), o = u(e);
|
|
14
|
+
if (o) {
|
|
15
|
+
const m = C(o);
|
|
16
|
+
return /* @__PURE__ */ t.createElement(
|
|
17
|
+
c,
|
|
18
|
+
{
|
|
19
|
+
cellProps: l,
|
|
20
|
+
tdProps: r,
|
|
21
|
+
isCustom: !0,
|
|
22
|
+
isClient: m
|
|
23
|
+
},
|
|
24
|
+
/* @__PURE__ */ t.createElement(o, { ...l, tdProps: r }, n)
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
const i = e.rowType !== "groupHeader" ? /* @__PURE__ */ t.createElement("td", { ...r }, n) : null;
|
|
28
|
+
return /* @__PURE__ */ t.createElement(c, { cellProps: l, tdProps: r }, i);
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
g as GridHierarchyCellServer
|
|
32
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),l=require("../../GridClientWrapper.js"),c=require("../../utils/index.js"),o=require("./useHierarchyCellClientTdProps.js"),s=require("../hooks.js");function a(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=a(i),d=e=>{const r=u.useContext(l.GridContext),t=o.useHierarchyCellClientTdProps(e.cellProps),n=s.useLegacyCellProps(e.cellProps);return e.isCustom&&(r.isClient||e.isClient)?c.cloneReactElement(e.children,{tdProps:{...e.tdProps,...t},...n}):e.children&&c.cloneReactElement(e.children,{...t})};exports.GridHierarchyCellServerContainer=d;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as o from "react";
|
|
10
|
+
import { GridContext as n } from "../../GridClientWrapper.mjs";
|
|
11
|
+
import { cloneReactElement as t } from "../../utils/index.mjs";
|
|
12
|
+
import { useHierarchyCellClientTdProps as c } from "./useHierarchyCellClientTdProps.mjs";
|
|
13
|
+
import { useLegacyCellProps as s } from "../hooks.mjs";
|
|
14
|
+
const P = (e) => {
|
|
15
|
+
const i = o.useContext(n), r = c(e.cellProps), l = s(e.cellProps);
|
|
16
|
+
return e.isCustom && (i.isClient || e.isClient) ? t(e.children, {
|
|
17
|
+
// pass down to tdProps for client templates
|
|
18
|
+
tdProps: { ...e.tdProps, ...r },
|
|
19
|
+
...l
|
|
20
|
+
}) : e.children && t(e.children, {
|
|
21
|
+
...r
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
P as GridHierarchyCellServerContainer
|
|
26
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),c=require("../../GridClientWrapper.js"),l=require("@progress/kendo-react-data-tools"),u=require("@progress/kendo-react-common");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=s(d),f=e=>{const t=o.useContext(c.GridContext),n=l.useTableKeyboardNavigation(e.id),a=o.useCallback(r=>{r.isDefaultPrevented()||r.keyCode===u.Keys.enter&&(t!=null&&t.itemChange)&&(r.preventDefault(),t.itemChange({dataItem:e.dataItem,dataIndex:e.dataIndex,syntheticEvent:r,field:e.field,value:!e.expanded}))},[e.dataItem,e.dataIndex,e.field,t,e.expanded]),i=e.rowType!=="groupHeader"&&e.rowType!=="groupFooter"?{onKeyDown:a}:{};return{...n,...i}};exports.useHierarchyCellClientTdProps=f;
|