@progress/kendo-react-grid 11.0.0-develop.6 → 11.0.0-develop.7
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/GridComponent.js +1 -1
- package/GridComponent.mjs +317 -303
- 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/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 +40 -40
- 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
|
@@ -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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@progress/kendo-react-common")
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),n=require("@progress/kendo-react-common");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=l(a),i=e=>{const t=e.unstyled,r=t&&t.uGrid?t.uGrid:n.uGrid;return o.createElement("td",{className:n.classNames(r.hierarchyTd({})),role:"gridcell"})};exports.GridDetailHierarchyCell=i;
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import * as t from "react";
|
|
9
|
+
import { uGrid as l, classNames as a } from "@progress/kendo-react-common";
|
|
10
10
|
const c = (e) => {
|
|
11
|
-
const r = e.unstyled, s = r && r.uGrid ? r.uGrid :
|
|
12
|
-
return /* @__PURE__ */
|
|
11
|
+
const r = e.unstyled, s = r && r.uGrid ? r.uGrid : l;
|
|
12
|
+
return /* @__PURE__ */ t.createElement("td", { className: a(s.hierarchyTd({})), role: "gridcell" });
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
15
|
c as GridDetailHierarchyCell
|
|
@@ -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"),p=require("./useCellClientTdProps.js"),f=require("../hooks.js"),i=require("./utils.js");function C(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 a=C(d),g=r=>{var u;const{cellProps:e}=r,{tdProps:t,content:l}=i.getCellTdProps(e),n=p.useCellClientTdProps(e),o=f.useLegacyCellProps(e);if(((u=e._rowSpan)==null?void 0:u.count)===null)return null;const c=i.getCustomCell(e);if(c)return a.createElement(c,{...e,...o,tdProps:{...t,...n}},l);const s=t?a.createElement("td",{...t,...n},l):null;return e.render?e.render.call(void 0,s,{...e,...o}):s};exports.GridCell=g;
|
|
@@ -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
|
+
"use client";
|
|
9
|
+
import * as p from "react";
|
|
10
|
+
import { useCellClientTdProps as m } from "./useCellClientTdProps.mjs";
|
|
11
|
+
import { useLegacyCellProps as u } from "../hooks.mjs";
|
|
12
|
+
import { getCellTdProps as i, getCustomCell as C } from "./utils.mjs";
|
|
13
|
+
const g = (d) => {
|
|
14
|
+
var c;
|
|
15
|
+
const { cellProps: e } = d, { tdProps: t, content: r } = i(e), l = m(e), o = u(e);
|
|
16
|
+
if (((c = e._rowSpan) == null ? void 0 : c.count) === null)
|
|
17
|
+
return null;
|
|
18
|
+
const n = C(e);
|
|
19
|
+
if (n)
|
|
20
|
+
return /* @__PURE__ */ p.createElement(n, { ...e, ...o, tdProps: { ...t, ...l } }, r);
|
|
21
|
+
const s = t ? /* @__PURE__ */ p.createElement("td", { ...t, ...l }, r) : null;
|
|
22
|
+
return e.render ? e.render.call(void 0, s, {
|
|
23
|
+
...e,
|
|
24
|
+
...o
|
|
25
|
+
}) : s;
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
g as GridCell
|
|
29
|
+
};
|
|
@@ -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 p=require("react"),s=require("../../utils/index.js"),u=require("./GridCellServerContainer.js"),a=require("./utils.js");function f(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const l=f(p),m=r=>{var i;const{cellProps:t}=r,{tdProps:e,content:n}=a.getCellTdProps(t);if(((i=t._rowSpan)==null?void 0:i.count)===null)return null;const o=s.getClientCellProps(t),c=a.getCustomCell(t);if(c){const d=s.isClientReference(c);return l.createElement(u.GridCellServerContainer,{cellProps:o,tdProps:e,isCustom:!0,isClient:d},l.createElement(c,{...o,tdProps:e},n))}const C=e?l.createElement("td",{...e},n):null;return l.createElement(u.GridCellServerContainer,{cellProps:o,tdProps:e},C)};exports.GridCellServer=m;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { getClientCellProps as p, isClientReference as u } from "../../utils/index.mjs";
|
|
10
|
+
import { GridCellServerContainer as c } from "./GridCellServerContainer.mjs";
|
|
11
|
+
import { getCellTdProps as a, getCustomCell as f } from "./utils.mjs";
|
|
12
|
+
const E = (i) => {
|
|
13
|
+
var s;
|
|
14
|
+
const { cellProps: t } = i, { tdProps: e, content: o } = a(t);
|
|
15
|
+
if (((s = t._rowSpan) == null ? void 0 : s.count) === null)
|
|
16
|
+
return null;
|
|
17
|
+
const l = p(t), n = f(t);
|
|
18
|
+
if (n) {
|
|
19
|
+
const C = u(n);
|
|
20
|
+
return /* @__PURE__ */ r.createElement(c, { cellProps: l, tdProps: e, isCustom: !0, isClient: C }, /* @__PURE__ */ r.createElement(n, { ...l, tdProps: e }, o));
|
|
21
|
+
}
|
|
22
|
+
const m = e ? /* @__PURE__ */ r.createElement("td", { ...e }, o) : null;
|
|
23
|
+
return /* @__PURE__ */ r.createElement(c, { cellProps: l, tdProps: e }, m);
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
E as GridCellServer
|
|
27
|
+
};
|
|
@@ -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 c=require("react"),i=require("../../GridClientWrapper.js"),l=require("../../utils/index.js"),o=require("./useCellClientTdProps.js"),s=require("../hooks.js");function u(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 a=u(c),d=e=>{const r=a.useContext(i.GridContext),t=o.useCellClientTdProps(e.cellProps),n=s.useLegacyCellProps(e.cellProps);return e.isCustom&&(r.isClient||e.isClient)?l.cloneReactElement(e.children,{tdProps:{...e.tdProps,...t},...n}):e.children&&l.cloneReactElement(e.children,{...t})};exports.GridCellServerContainer=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 i from "react";
|
|
10
|
+
import { GridContext as n } from "../../GridClientWrapper.mjs";
|
|
11
|
+
import { cloneReactElement as r } from "../../utils/index.mjs";
|
|
12
|
+
import { useCellClientTdProps as c } from "./useCellClientTdProps.mjs";
|
|
13
|
+
import { useLegacyCellProps as s } from "../hooks.mjs";
|
|
14
|
+
const f = (e) => {
|
|
15
|
+
const l = i.useContext(n), t = c(e.cellProps), o = s(e.cellProps);
|
|
16
|
+
return e.isCustom && (l.isClient || e.isClient) ? r(e.children, {
|
|
17
|
+
// pass down to tdProps for client templates
|
|
18
|
+
tdProps: { ...e.tdProps, ...t },
|
|
19
|
+
...o
|
|
20
|
+
}) : e.children && r(e.children, {
|
|
21
|
+
...t
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
f as GridCellServerContainer
|
|
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 f=require("react"),y=require("../../GridClientWrapper.js"),b=require("@progress/kendo-react-data-tools"),a=require("../hooks.js");function g(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const c=g(f),C=e=>{const t=c.useContext(y.GridContext),o=b.useTableKeyboardNavigation(e.id),n=a.useContextMenuHandler(e.dataItem,e.field),l=a.usePositionStyle(e),u=c.useCallback(d=>{var r;(r=t==null?void 0:t.cellClick)==null||r.call(t,d,e.dataItem,e.field)},[t,e.dataItem,e.field]),i=e.rowType==="groupFooter"||e.rowType!=="groupHeader"?{onContextMenu:n}:{},s=e.rowType!=="groupFooter"&&e.rowType!=="groupHeader"?{style:l}:{};return{...o,...i,...s,onClick:u}};exports.useCellClientTdProps=C;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 s } from "../../GridClientWrapper.mjs";
|
|
11
|
+
import { useTableKeyboardNavigation as d } from "@progress/kendo-react-data-tools";
|
|
12
|
+
import { useContextMenuHandler as y, usePositionStyle as f } from "../hooks.mjs";
|
|
13
|
+
const w = (e) => {
|
|
14
|
+
const t = n.useContext(s), a = d(e.id), l = y(e.dataItem, e.field), i = f(e), r = n.useCallback(
|
|
15
|
+
(m) => {
|
|
16
|
+
var o;
|
|
17
|
+
(o = t == null ? void 0 : t.cellClick) == null || o.call(t, m, e.dataItem, e.field);
|
|
18
|
+
},
|
|
19
|
+
[t, e.dataItem, e.field]
|
|
20
|
+
), u = e.rowType === "groupFooter" || e.rowType !== "groupHeader" ? { onContextMenu: l } : {}, c = e.rowType !== "groupFooter" && e.rowType !== "groupHeader" ? { style: i } : {};
|
|
21
|
+
return {
|
|
22
|
+
...a,
|
|
23
|
+
...u,
|
|
24
|
+
...c,
|
|
25
|
+
onClick: r
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
w as useCellClientTdProps
|
|
30
|
+
};
|
|
@@ -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 s=require("../../utils/index.js"),r=require("../../constants/index.js"),c=require("@progress/kendo-react-common"),m=e=>{var d,i;let t=null,a=null;const n=e.unstyled,o=n&&n.uGrid?n.uGrid:c.uGrid;if(e.rowType==="groupFooter")t={className:e.className};else if(e.rowType!=="groupHeader"){if(e.field!==void 0){const l=s.getNestedValue(e.field,e.dataItem);l!=null&&(a=e.intl&&e.format?e.intl.format(e.format,l):l.toString())}const u=c.classNames(o.td({selected:e.isSelected,sorted:e.isSorted,alt:e.isAlt}),e.className);t={rowSpan:(i=(d=e._rowSpan)==null?void 0:d.count)!=null?i:void 0,colSpan:e.colSpan,style:e.style,className:u,role:"gridcell","aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,[r.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex}}return{tdProps:t,content:a}},g=e=>{var t;return(t=e.cells)==null?void 0:t[e.rowType||"data"]};exports.getCellTdProps=m;exports.getCustomCell=g;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { getNestedValue as m } from "../../utils/index.mjs";
|
|
9
|
+
import { GRID_COL_INDEX_ATTRIBUTE as u } from "../../constants/index.mjs";
|
|
10
|
+
import { uGrid as r, classNames as s } from "@progress/kendo-react-common";
|
|
11
|
+
const y = (e) => {
|
|
12
|
+
var i, n;
|
|
13
|
+
let t = null, d = null;
|
|
14
|
+
const a = e.unstyled, c = a && a.uGrid ? a.uGrid : r;
|
|
15
|
+
if (e.rowType === "groupFooter")
|
|
16
|
+
t = {
|
|
17
|
+
className: e.className
|
|
18
|
+
};
|
|
19
|
+
else if (e.rowType !== "groupHeader") {
|
|
20
|
+
if (e.field !== void 0) {
|
|
21
|
+
const l = m(e.field, e.dataItem);
|
|
22
|
+
l != null && (d = e.intl && e.format ? e.intl.format(e.format, l) : l.toString());
|
|
23
|
+
}
|
|
24
|
+
const o = s(
|
|
25
|
+
c.td({ selected: e.isSelected, sorted: e.isSorted, alt: e.isAlt }),
|
|
26
|
+
e.className
|
|
27
|
+
);
|
|
28
|
+
t = {
|
|
29
|
+
rowSpan: (n = (i = e._rowSpan) == null ? void 0 : i.count) != null ? n : void 0,
|
|
30
|
+
colSpan: e.colSpan,
|
|
31
|
+
style: e.style,
|
|
32
|
+
className: o,
|
|
33
|
+
role: "gridcell",
|
|
34
|
+
"aria-colindex": e.ariaColumnIndex,
|
|
35
|
+
"aria-selected": e.isSelected,
|
|
36
|
+
[u]: e.columnIndex
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return { tdProps: t, content: d };
|
|
40
|
+
}, N = (e) => {
|
|
41
|
+
var t;
|
|
42
|
+
return (t = e.cells) == null ? void 0 : t[e.rowType || "data"];
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
y as getCellTdProps,
|
|
46
|
+
N as getCustomCell
|
|
47
|
+
};
|
|
@@ -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 c=require("react"),i=require("./utils.js"),o=require("./useDetailCellClientTdProps.js");function s(e){const l=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(l,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return l.default=e,Object.freeze(l)}const n=s(c),u=e=>{const{dataItem:l,dataIndex:t}=e,{tdProps:r}=i.getDetailCellTdProps(e),a=o.useDetailCellClientTdProps(e);return n.createElement("td",{...r,...a},n.createElement(e.detail,{dataItem:l,dataIndex:t}))};exports.GridDetailCell=u;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 e from "react";
|
|
10
|
+
import { getDetailCellTdProps as d } from "./utils.mjs";
|
|
11
|
+
import { useDetailCellClientTdProps as i } from "./useDetailCellClientTdProps.mjs";
|
|
12
|
+
const c = (t) => {
|
|
13
|
+
const { dataItem: l, dataIndex: r } = t, { tdProps: a } = d(t), o = i(t);
|
|
14
|
+
return /* @__PURE__ */ e.createElement("td", { ...a, ...o }, /* @__PURE__ */ e.createElement(t.detail, { dataItem: l, dataIndex: r }));
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
c as GridDetailCell
|
|
18
|
+
};
|
|
@@ -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 i=require("react"),c=require("./GridDetailCellServerContainer.js"),o=require("./utils.js");function d(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 l=d(i),u=e=>{const{dataItem:t,dataIndex:r,id:n}=e,{tdProps:a}=o.getDetailCellTdProps(e);return l.createElement(c.GridDetailCellServerContainer,{id:n,dataItem:t},l.createElement("td",{...a},l.createElement(e.detail,{dataItem:t,dataIndex:r})))};exports.GridDetailCellServer=u;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { GridDetailCellServerContainer as o } from "./GridDetailCellServerContainer.mjs";
|
|
10
|
+
import { getDetailCellTdProps as d } from "./utils.mjs";
|
|
11
|
+
const c = (e) => {
|
|
12
|
+
const { dataItem: r, dataIndex: a, id: l } = e, { tdProps: i } = d(e);
|
|
13
|
+
return /* @__PURE__ */ t.createElement(o, { id: l, dataItem: r }, /* @__PURE__ */ t.createElement("td", { ...i }, /* @__PURE__ */ t.createElement(e.detail, { dataItem: r, dataIndex: a })));
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
c as GridDetailCellServer
|
|
17
|
+
};
|
|
@@ -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("../../utils/index.js"),r=require("./useDetailCellClientTdProps.js"),i=e=>{const t=r.useDetailCellClientTdProps(e);return l.cloneReactElement(e.children,{...t})};exports.GridDetailCellServerContainer=i;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { cloneReactElement as t } from "../../utils/index.mjs";
|
|
10
|
+
import { useDetailCellClientTdProps as l } from "./useDetailCellClientTdProps.mjs";
|
|
11
|
+
const i = (e) => {
|
|
12
|
+
const r = l(e);
|
|
13
|
+
return t(e.children, {
|
|
14
|
+
...r
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
i as GridDetailCellServerContainer
|
|
19
|
+
};
|
|
@@ -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 n=require("@progress/kendo-react-data-tools"),o=require("../hooks.js"),a=e=>{const t=n.useTableKeyboardNavigation(e.id);return{onContextMenu:o.useContextMenuHandler(e.dataItem),...t}};exports.useDetailCellClientTdProps=a;
|
|
@@ -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
|
+
"use client";
|
|
9
|
+
import { useTableKeyboardNavigation as n } from "@progress/kendo-react-data-tools";
|
|
10
|
+
import { useContextMenuHandler as o } from "../hooks.mjs";
|
|
11
|
+
const u = (t) => {
|
|
12
|
+
const e = n(t.id);
|
|
13
|
+
return {
|
|
14
|
+
onContextMenu: o(t.dataItem),
|
|
15
|
+
...e
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
u as useDetailCellClientTdProps
|
|
20
|
+
};
|
|
@@ -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 t=require("@progress/kendo-react-common"),d=l=>{const{colSpan:o,ariaColIndex:r,unstyled:e}=l,s=e&&e.uGrid?e.uGrid:t.uGrid;return{tdProps:{className:t.classNames(s.detailTd({})),colSpan:o,"aria-colindex":r,role:"gridcell"}}};exports.getDetailCellTdProps=d;
|
|
@@ -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;
|