@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
package/cells/GridGroupCell.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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 w=require("@progress/kendo-react-common"),E=require("react"),N=require("./client/GridGroupCellToggle.js"),p=require("./client/GridGroupCellContainer.js"),k=require("../utils/index.js");function O(e){const l=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(l,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return l.default=e,Object.freeze(l)}const o=O(E),R=e=>{const{columnIndex:l,level:r,columnsCount:n,rowType:G,dataItem:a,field:b,expanded:S,render:j,ariaColumnIndex:v}=e,c=b||"";let t=null,i=null,d=null,m=!1,s=!1,C=!1;const u=k.getClientCellProps(e);l===void 0||r===void 0||l<r||n===void 0||G!=="groupHeader"||a[c]===void 0?(s=!0,t={style:e.style,key:"g"+l,className:w.classNames("k-table-td","k-group-cell",{"k-grid-content-sticky":e.locked}),role:"gridcell"}):l===r&&(s=!0,t={className:"k-table-td",style:e.style,colSpan:n-l,key:"g-colspan",role:"gridcell","aria-selected":!1,"aria-expanded":S,"aria-colindex":v},d=o.createElement("p",{className:"k-reset"},o.createElement(N.GridGroupCellToggle,{...u}),a[c]instanceof Date&&a[c].toString?a[c].toString():a[c]),m=!0,e.locked&&(C=!0,t={...t,colSpan:0,style:{...e.style,position:"sticky",zIndex:2}},i={className:"k-table-td",role:"gridcell",colSpan:n-l,style:{borderLeftWidth:0,borderRightWidth:0}}));const f=e.rowType||"data",g=e.cells;if(g&&g.group&&g.group[f]){const y=g.group[f],T=k.isClientReference(y);return o.createElement(p.GridGroupCellContainer,{cellProps:u,tdProps:t,td2Props:i,isCustom:!0,isClient:T,addKeyDownHandler:!0},o.createElement(y,{...u,tdProps:t,td2Props:i},d))}const x=s?o.createElement("td",{...t,key:t==null?void 0:t.key},d):null;return o.createElement(p.GridGroupCellContainer,{cellProps:u,addKeyDownHandler:m,tdProps:t,td2Props:i,renderFirstCell:s,renderSecondCell:C,content:d},x)};exports.GridGroupCell=R;
|
package/cells/GridGroupCell.mjs
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
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 { classNames as v } from "@progress/kendo-react-common";
|
|
9
|
-
import * as r from "react";
|
|
10
|
-
import { GridGroupCellToggle as w } from "./client/GridGroupCellToggle.mjs";
|
|
11
|
-
import { GridGroupCellContainer as k } from "./client/GridGroupCellContainer.mjs";
|
|
12
|
-
import { getClientCellProps as N, isClientReference as I } from "../utils/index.mjs";
|
|
13
|
-
const K = (l) => {
|
|
14
|
-
const { columnIndex: t, level: m, columnsCount: u, rowType: p, dataItem: n, field: S, expanded: x, render: R, ariaColumnIndex: E } = l, o = S || "";
|
|
15
|
-
let e = null, a = null, d = null, f = !1, c = !1, g = !1;
|
|
16
|
-
const i = N(l);
|
|
17
|
-
t === void 0 || m === void 0 || t < m || u === void 0 || p !== "groupHeader" || n[o] === void 0 ? (c = !0, e = {
|
|
18
|
-
style: l.style,
|
|
19
|
-
key: "g" + t,
|
|
20
|
-
className: v("k-table-td", "k-group-cell", { "k-grid-content-sticky": l.locked }),
|
|
21
|
-
role: "gridcell"
|
|
22
|
-
}) : t === m && (c = !0, e = {
|
|
23
|
-
className: "k-table-td",
|
|
24
|
-
style: l.style,
|
|
25
|
-
colSpan: u - t,
|
|
26
|
-
key: "g-colspan",
|
|
27
|
-
role: "gridcell",
|
|
28
|
-
"aria-selected": !1,
|
|
29
|
-
"aria-expanded": x,
|
|
30
|
-
"aria-colindex": E
|
|
31
|
-
}, d = /* @__PURE__ */ r.createElement("p", { className: "k-reset" }, /* @__PURE__ */ r.createElement(w, { ...i }), n[o] instanceof Date && n[o].toString ? n[o].toString() : n[o]), f = !0, l.locked && (g = !0, e = {
|
|
32
|
-
...e,
|
|
33
|
-
colSpan: 0,
|
|
34
|
-
style: { ...l.style, position: "sticky", zIndex: 2 }
|
|
35
|
-
}, a = {
|
|
36
|
-
className: "k-table-td",
|
|
37
|
-
role: "gridcell",
|
|
38
|
-
colSpan: u - t,
|
|
39
|
-
style: { borderLeftWidth: 0, borderRightWidth: 0 }
|
|
40
|
-
}));
|
|
41
|
-
const y = l.rowType || "data", s = l.cells;
|
|
42
|
-
if (s && s.group && s.group[y]) {
|
|
43
|
-
const C = s.group[y], b = I(C);
|
|
44
|
-
return /* @__PURE__ */ r.createElement(
|
|
45
|
-
k,
|
|
46
|
-
{
|
|
47
|
-
cellProps: i,
|
|
48
|
-
tdProps: e,
|
|
49
|
-
td2Props: a,
|
|
50
|
-
isCustom: !0,
|
|
51
|
-
isClient: b,
|
|
52
|
-
addKeyDownHandler: !0
|
|
53
|
-
},
|
|
54
|
-
/* @__PURE__ */ r.createElement(C, { ...i, tdProps: e, td2Props: a }, d)
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
const G = c ? /* @__PURE__ */ r.createElement("td", { ...e, key: e == null ? void 0 : e.key }, d) : null;
|
|
58
|
-
return /* @__PURE__ */ r.createElement(
|
|
59
|
-
k,
|
|
60
|
-
{
|
|
61
|
-
cellProps: i,
|
|
62
|
-
addKeyDownHandler: f,
|
|
63
|
-
tdProps: e,
|
|
64
|
-
td2Props: a,
|
|
65
|
-
renderFirstCell: c,
|
|
66
|
-
renderSecondCell: g,
|
|
67
|
-
content: d
|
|
68
|
-
},
|
|
69
|
-
G
|
|
70
|
-
);
|
|
71
|
-
};
|
|
72
|
-
export {
|
|
73
|
-
K as GridGroupCell
|
|
74
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
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"),d=require("../utils/index.js"),u=require("./client/GridHierarchyCellContainer.js"),C=require("./client/GridHierarchyCellToggle.js");function f(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(l,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return l.default=e,Object.freeze(l)}const n=f(g),h=e=>{let l=null,r=null,t=null;const c=d.getClientCellProps(e),s=e.expanded;e.rowType==="groupFooter"?r={className:"k-table-td k-hierarchy-cell",role:"gridcell"}:e.rowType!=="groupHeader"&&(r={className:"k-table-td k-hierarchy-cell",role:"gridcell","aria-expanded":!!s,"aria-colindex":e.ariaColumnIndex},t=n.createElement(C.GridHierarchyCellToggle,{...c}));const i=e.rowType||"data",a=e.cells;if(a&&a.hierarchy&&a.hierarchy[i]){const o=a.hierarchy[i],y=d.isClientReference(o);return n.createElement(u.GridHierarchyCellContainer,{cellProps:c,tdProps:r,isCustom:!0,isClient:y},n.createElement(o,{...c,tdProps:r},t))}return e.rowType!=="groupHeader"&&(l=n.createElement("td",{...r},t)),n.createElement(u.GridHierarchyCellContainer,{cellProps:c,content:t,tdProps:r},l)};exports.GridHierarchyCell=h;
|
|
@@ -1,33 +0,0 @@
|
|
|
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 l from "react";
|
|
9
|
-
import { getClientCellProps as u, isClientReference as h } from "../utils/index.mjs";
|
|
10
|
-
import { GridHierarchyCellContainer as d } from "./client/GridHierarchyCellContainer.mjs";
|
|
11
|
-
import { GridHierarchyCellToggle as y } from "./client/GridHierarchyCellToggle.mjs";
|
|
12
|
-
const x = (e) => {
|
|
13
|
-
let n = null, r = null, t = null;
|
|
14
|
-
const a = u(e), m = e.expanded;
|
|
15
|
-
e.rowType === "groupFooter" ? r = {
|
|
16
|
-
className: "k-table-td k-hierarchy-cell",
|
|
17
|
-
role: "gridcell"
|
|
18
|
-
} : e.rowType !== "groupHeader" && (r = {
|
|
19
|
-
className: "k-table-td k-hierarchy-cell",
|
|
20
|
-
role: "gridcell",
|
|
21
|
-
"aria-expanded": !!m,
|
|
22
|
-
"aria-colindex": e.ariaColumnIndex
|
|
23
|
-
}, t = /* @__PURE__ */ l.createElement(y, { ...a }));
|
|
24
|
-
const c = e.rowType || "data", i = e.cells;
|
|
25
|
-
if (i && i.hierarchy && i.hierarchy[c]) {
|
|
26
|
-
const o = i.hierarchy[c], s = h(o);
|
|
27
|
-
return /* @__PURE__ */ l.createElement(d, { cellProps: a, tdProps: r, isCustom: !0, isClient: s }, /* @__PURE__ */ l.createElement(o, { ...a, tdProps: r }, t));
|
|
28
|
-
}
|
|
29
|
-
return e.rowType !== "groupHeader" && (n = /* @__PURE__ */ l.createElement("td", { ...r }, t)), /* @__PURE__ */ l.createElement(d, { cellProps: a, content: t, tdProps: r }, n);
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
x as GridHierarchyCell
|
|
33
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
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("react"),s=require("../constants/index.js"),i=require("../components/icons/reorder-row-svg.js"),R=require("./client/GridRowReorderContainer.js"),a=require("@progress/kendo-react-common"),u=e=>{const{...d}=e,r=e.unstyled,o=r&&r.uGrid?r.uGrid:a.uGrid,c=a.classNames(o.td({selected:e.isSelected,sorted:e.isSorted,alt:e.isAlt}),e.className),l={colSpan:e.colSpan,style:e.style,className:c,role:"gridcell","aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,[s.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex},n=a.classNames(l==null?void 0:l.className,["k-drag-cell",`${e.rowReorderable?"":"k-disabled"}`]);return t.createElement(R.GridRowReorderCellContainer,{rowReorderable:e.rowReorderable,cellProps:d},t.createElement("td",{...l,style:{touchAction:"none"},"aria-disabled":!e.rowReorderable,className:n},t.createElement(i.ReorderRowIcon,null)))};exports.GridRowReorderCell=u;
|
|
@@ -1,42 +0,0 @@
|
|
|
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 a from "react";
|
|
9
|
-
import { GRID_COL_INDEX_ATTRIBUTE as i } from "../constants/index.mjs";
|
|
10
|
-
import { ReorderRowIcon as s } from "../components/icons/reorder-row-svg.mjs";
|
|
11
|
-
import { GridRowReorderCellContainer as m } from "./client/GridRowReorderContainer.mjs";
|
|
12
|
-
import { uGrid as R, classNames as r } from "@progress/kendo-react-common";
|
|
13
|
-
const f = (e) => {
|
|
14
|
-
const { ...d } = e, t = e.unstyled, o = t && t.uGrid ? t.uGrid : R, c = r(
|
|
15
|
-
o.td({ selected: e.isSelected, sorted: e.isSorted, alt: e.isAlt }),
|
|
16
|
-
e.className
|
|
17
|
-
), l = {
|
|
18
|
-
colSpan: e.colSpan,
|
|
19
|
-
style: e.style,
|
|
20
|
-
className: c,
|
|
21
|
-
role: "gridcell",
|
|
22
|
-
"aria-colindex": e.ariaColumnIndex,
|
|
23
|
-
"aria-selected": e.isSelected,
|
|
24
|
-
[i]: e.columnIndex
|
|
25
|
-
}, n = r(l == null ? void 0 : l.className, [
|
|
26
|
-
"k-drag-cell",
|
|
27
|
-
`${e.rowReorderable ? "" : "k-disabled"}`
|
|
28
|
-
]);
|
|
29
|
-
return /* @__PURE__ */ a.createElement(m, { rowReorderable: e.rowReorderable, cellProps: d }, /* @__PURE__ */ a.createElement(
|
|
30
|
-
"td",
|
|
31
|
-
{
|
|
32
|
-
...l,
|
|
33
|
-
style: { touchAction: "none" },
|
|
34
|
-
"aria-disabled": !e.rowReorderable,
|
|
35
|
-
className: n
|
|
36
|
-
},
|
|
37
|
-
/* @__PURE__ */ a.createElement(s, null)
|
|
38
|
-
));
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
f as GridRowReorderCell
|
|
42
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
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 y=require("react"),G=require("@progress/kendo-react-common"),O=require("./client/GridSelectionCellInput.js"),C=require("./client/GridSelectionCellContainer.js"),m=require("../utils/index.js");function P(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=P(y),j=e=>{const{className:n,colSpan:t,style:c,ariaColumnIndex:f,rowType:a,cells:S}=e,g=G.classNames("k-table-td",n),r={colSpan:t,style:c,className:g,"aria-colindex":f,role:"gridcell"},i=l.createElement(O.GridSelectionCellInput,{key:1,...e}),s=m.getClientCellProps(e),u=a||"data",o=S;if(o&&o.select&&o.select[u]){const d=o.select[u],b=m.isClientReference(d);return l.createElement(C.GridSelectionCellContainer,{cellProps:s,tdProps:r,isCustom:!0,isClient:b},l.createElement(d,{...s,tdProps:r},i))}const p=a!=="groupHeader"?l.createElement("td",{...r},i):null;return l.createElement(C.GridSelectionCellContainer,{cellProps:s,content:i,tdProps:r},p)};exports.GridSelectionCell=j;
|
|
@@ -1,30 +0,0 @@
|
|
|
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 { classNames as S } from "@progress/kendo-react-common";
|
|
10
|
-
import { GridSelectionCellInput as y } from "./client/GridSelectionCellInput.mjs";
|
|
11
|
-
import { GridSelectionCellContainer as i } from "./client/GridSelectionCellContainer.mjs";
|
|
12
|
-
import { getClientCellProps as N, isClientReference as x } from "../utils/index.mjs";
|
|
13
|
-
const w = (n) => {
|
|
14
|
-
const { className: m, colSpan: C, style: d, ariaColumnIndex: u, rowType: c, cells: p } = n, f = S("k-table-td", m), t = {
|
|
15
|
-
colSpan: C,
|
|
16
|
-
style: d,
|
|
17
|
-
className: f,
|
|
18
|
-
"aria-colindex": u,
|
|
19
|
-
role: "gridcell"
|
|
20
|
-
}, o = /* @__PURE__ */ e.createElement(y, { key: 1, ...n }), r = N(n), s = c || "data", l = p;
|
|
21
|
-
if (l && l.select && l.select[s]) {
|
|
22
|
-
const a = l.select[s], E = x(a);
|
|
23
|
-
return /* @__PURE__ */ e.createElement(i, { cellProps: r, tdProps: t, isCustom: !0, isClient: E }, /* @__PURE__ */ e.createElement(a, { ...r, tdProps: t }, o));
|
|
24
|
-
}
|
|
25
|
-
const g = c !== "groupHeader" ? /* @__PURE__ */ e.createElement("td", { ...t }, o) : null;
|
|
26
|
-
return /* @__PURE__ */ e.createElement(i, { cellProps: r, content: o, tdProps: t }, g);
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
w as GridSelectionCell
|
|
30
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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("@progress/kendo-react-data-tools"),l=require("../../GridClientWrapper.js"),u=require("../../utils/index.js");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=s(c),d=e=>{const t=a.useContext(l.GridContext),n=i.useTableKeyboardNavigation(e.id),o=a.useCallback(r=>{t!=null&&t.onContextMenu&&t.onContextMenu.call(void 0,r,e.dataItem)},[t,e.dataItem]);return u.cloneReactElement(e.children,{onContextMenu:o,...n})};exports.DetailCellContainer=d;
|
|
@@ -1,27 +0,0 @@
|
|
|
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 { useTableKeyboardNavigation as r } from "@progress/kendo-react-data-tools";
|
|
11
|
-
import { GridContext as l } from "../../GridClientWrapper.mjs";
|
|
12
|
-
import { cloneReactElement as m } from "../../utils/index.mjs";
|
|
13
|
-
const d = (e) => {
|
|
14
|
-
const t = n.useContext(l), o = r(e.id), a = n.useCallback(
|
|
15
|
-
(i) => {
|
|
16
|
-
t != null && t.onContextMenu && t.onContextMenu.call(void 0, i, e.dataItem);
|
|
17
|
-
},
|
|
18
|
-
[t, e.dataItem]
|
|
19
|
-
);
|
|
20
|
-
return m(e.children, {
|
|
21
|
-
onContextMenu: a,
|
|
22
|
-
...o
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
d as DetailCellContainer
|
|
27
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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 y=require("react"),P=require("@progress/kendo-react-data-tools"),b=require("../../GridClientWrapper.js"),i=require("../../utils/index.js");function p(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const c=p(y),I=n=>{var s;const{cellProps:e}=n,t=c.useContext(b.GridContext),r=P.useTableKeyboardNavigation(e.id),u=c.useCallback(o=>{var l;(l=t==null?void 0:t.cellClick)==null||l.call(t,o,e.dataItem,e.field)},[t,e.dataItem,e.field]),C=c.useCallback(o=>{var l;(l=t==null?void 0:t.onContextMenu)==null||l.call(void 0,o,e.dataItem,e.field)},[t,e.dataItem,e.field]),m=e.rowType==="groupFooter"||e.rowType!=="groupHeader"?{onContextMenu:C}:{},f=t.getCellPositionStyle(e.columnPosition),g=e.rowType!=="groupFooter"&&e.rowType!=="groupHeader"?{style:{...(s=n.tdProps)==null?void 0:s.style,...f}}:{},a={...r,...m,...g,onClick:u},d={onContextMenu:t.onContextMenu,onChange:t.itemChange,selectionChange:o=>{t.selectionChange({event:o,dataItem:e.dataItem,dataIndex:e.rowDataIndex,columnIndex:e.columnIndex})}};if(n.isCustom)return t.isClient||n.isClient?i.cloneReactElement(n.children,{tdProps:{...n.tdProps,...a},...d}):i.cloneReactElement(n.children,{...a});if(e.render){const o=e.rowType!=="groupHeader"?c.createElement("td",{...n.tdProps,...a},n.content):null;return e.render.call(void 0,o,{...e,...d})}return n.children&&i.cloneReactElement(n.children,{...a})};exports.GridCellContainer=I;
|
|
@@ -1,69 +0,0 @@
|
|
|
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 { useTableKeyboardNavigation as y } from "@progress/kendo-react-data-tools";
|
|
11
|
-
import { GridContext as I } from "../../GridClientWrapper.mjs";
|
|
12
|
-
import { cloneReactElement as i } from "../../utils/index.mjs";
|
|
13
|
-
const p = (n) => {
|
|
14
|
-
var d;
|
|
15
|
-
const { cellProps: e } = n, t = a.useContext(I), s = y(e.id), u = a.useCallback(
|
|
16
|
-
(o) => {
|
|
17
|
-
var l;
|
|
18
|
-
(l = t == null ? void 0 : t.cellClick) == null || l.call(t, o, e.dataItem, e.field);
|
|
19
|
-
},
|
|
20
|
-
[t, e.dataItem, e.field]
|
|
21
|
-
), m = a.useCallback(
|
|
22
|
-
(o) => {
|
|
23
|
-
var l;
|
|
24
|
-
(l = t == null ? void 0 : t.onContextMenu) == null || l.call(void 0, o, e.dataItem, e.field);
|
|
25
|
-
},
|
|
26
|
-
[t, e.dataItem, e.field]
|
|
27
|
-
), C = e.rowType === "groupFooter" || e.rowType !== "groupHeader" ? {
|
|
28
|
-
onContextMenu: m
|
|
29
|
-
} : {}, f = t.getCellPositionStyle(e.columnPosition), P = e.rowType !== "groupFooter" && e.rowType !== "groupHeader" ? {
|
|
30
|
-
style: { ...(d = n.tdProps) == null ? void 0 : d.style, ...f }
|
|
31
|
-
} : {}, r = {
|
|
32
|
-
...s,
|
|
33
|
-
...C,
|
|
34
|
-
...P,
|
|
35
|
-
onClick: u
|
|
36
|
-
}, c = {
|
|
37
|
-
onContextMenu: t.onContextMenu,
|
|
38
|
-
onChange: t.itemChange,
|
|
39
|
-
selectionChange: (o) => {
|
|
40
|
-
t.selectionChange({
|
|
41
|
-
event: o,
|
|
42
|
-
dataItem: e.dataItem,
|
|
43
|
-
dataIndex: e.rowDataIndex,
|
|
44
|
-
columnIndex: e.columnIndex
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
if (n.isCustom)
|
|
49
|
-
return t.isClient || n.isClient ? i(n.children, {
|
|
50
|
-
// pass down to tdProps for client templates
|
|
51
|
-
tdProps: { ...n.tdProps, ...r },
|
|
52
|
-
...c
|
|
53
|
-
}) : i(n.children, {
|
|
54
|
-
...r
|
|
55
|
-
});
|
|
56
|
-
if (e.render) {
|
|
57
|
-
const o = e.rowType !== "groupHeader" ? /* @__PURE__ */ a.createElement("td", { ...n.tdProps, ...r }, n.content) : null;
|
|
58
|
-
return e.render.call(void 0, o, {
|
|
59
|
-
...e,
|
|
60
|
-
...c
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
return n.children && i(n.children, {
|
|
64
|
-
...r
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
export {
|
|
68
|
-
p as GridCellContainer
|
|
69
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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 m=require("react"),f=require("@progress/kendo-react-data-tools"),g=require("../../GridClientWrapper.js"),r=require("../../utils/index.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 c=P(m),x=e=>{var d;const{cellProps:t}=e,n=c.useContext(g.GridContext),l=f.useTableKeyboardNavigation(t.id),s={onContextMenu:c.useCallback(o=>{n!=null&&n.onContextMenu&&n.onContextMenu.call(void 0,o,t.dataItem,t.field)},[n,t.dataItem,t.field])},u=n.getCellPositionStyle(t.columnPosition),C={style:{...(d=e.tdProps)==null?void 0:d.style,...u}},i={...l,...s,...C},a={onContextMenu:n.onContextMenu,onChange:n.itemChange,selectionChange:o=>{n.selectionChange({event:o,dataItem:t.dataItem,dataIndex:t.rowDataIndex,columnIndex:t.columnIndex})}};if(e.isCustom)return n.isClient||e.isClient?r.cloneReactElement(e.children,{tdProps:{...e.tdProps,...i},...a}):r.cloneReactElement(e.children,{...i});if(t.render){const o=c.createElement("td",{...e.tdProps,...i},e.content);return t.render.call(void 0,o,{...t,...a})}return e.children&&r.cloneReactElement(e.children,{...i})};exports.GridEditCellContainer=x;
|
|
@@ -1,61 +0,0 @@
|
|
|
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 l from "react";
|
|
10
|
-
import { useTableKeyboardNavigation as m } from "@progress/kendo-react-data-tools";
|
|
11
|
-
import { GridContext as x } from "../../GridClientWrapper.mjs";
|
|
12
|
-
import { cloneReactElement as a } from "../../utils/index.mjs";
|
|
13
|
-
const I = (t) => {
|
|
14
|
-
var d;
|
|
15
|
-
const { cellProps: e } = t, n = l.useContext(x), c = m(e.id), s = {
|
|
16
|
-
onContextMenu: l.useCallback(
|
|
17
|
-
(o) => {
|
|
18
|
-
n != null && n.onContextMenu && n.onContextMenu.call(void 0, o, e.dataItem, e.field);
|
|
19
|
-
},
|
|
20
|
-
[n, e.dataItem, e.field]
|
|
21
|
-
)
|
|
22
|
-
}, u = n.getCellPositionStyle(e.columnPosition), C = {
|
|
23
|
-
style: { ...(d = t.tdProps) == null ? void 0 : d.style, ...u }
|
|
24
|
-
}, i = {
|
|
25
|
-
...c,
|
|
26
|
-
...s,
|
|
27
|
-
...C
|
|
28
|
-
}, r = {
|
|
29
|
-
onContextMenu: n.onContextMenu,
|
|
30
|
-
onChange: n.itemChange,
|
|
31
|
-
selectionChange: (o) => {
|
|
32
|
-
n.selectionChange({
|
|
33
|
-
event: o,
|
|
34
|
-
dataItem: e.dataItem,
|
|
35
|
-
dataIndex: e.rowDataIndex,
|
|
36
|
-
columnIndex: e.columnIndex
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
if (t.isCustom)
|
|
41
|
-
return n.isClient || t.isClient ? a(t.children, {
|
|
42
|
-
// pass down to tdProps for client templates
|
|
43
|
-
tdProps: { ...t.tdProps, ...i },
|
|
44
|
-
...r
|
|
45
|
-
}) : a(t.children, {
|
|
46
|
-
...i
|
|
47
|
-
});
|
|
48
|
-
if (e.render) {
|
|
49
|
-
const o = /* @__PURE__ */ l.createElement("td", { ...t.tdProps, ...i }, t.content);
|
|
50
|
-
return e.render.call(void 0, o, {
|
|
51
|
-
...e,
|
|
52
|
-
...r
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
return t.children && a(t.children, {
|
|
56
|
-
...i
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
export {
|
|
60
|
-
I as GridEditCellContainer
|
|
61
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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 g=require("react"),m=require("@progress/kendo-react-data-tools"),x=require("../../GridClientWrapper.js"),I=require("@progress/kendo-react-common"),c=require("../../utils/index.js");function b(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const d=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,d.get?d:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=b(g),h=e=>{var s;const{cellProps:t}=e,n=o.useContext(x.GridContext),d=m.useTableKeyboardNavigation(t.id),C=o.useCallback(l=>{l.isDefaultPrevented()||l.keyCode===I.Keys.enter&&(n!=null&&n.itemChange)&&(l.preventDefault(),n.itemChange({dataItem:t.dataItem,dataIndex:t.dataIndex,syntheticEvent:l,field:void 0,value:!t.expanded}),n==null||n.dispatchGroupExpand({type:m.GROUP_EXPAND_ACTION.TOGGLE,group:t.group},l))},[n,t.dataItem,t.dataIndex,t.expanded,t.group]),f=e.addKeyDownHandler?{onKeyDown:C}:{},r=o.useCallback(l=>{n!=null&&n.onContextMenu&&n.onContextMenu.call(void 0,l,t.dataItem,t.field)},[n,t.dataItem,t.field]),P=n.getCellPositionStyle(t.columnPosition),y={style:{...(s=e.tdProps)==null?void 0:s.style,...P}},a={...d,...f,onContextMenu:r,...y},i={onContextMenu:n.onContextMenu,onChange:n.itemChange,selectionChange:l=>{n.selectionChange({event:l,dataItem:t.dataItem,dataIndex:t.rowDataIndex,columnIndex:t.columnIndex})}};if(e.isCustom)return n.isClient||e.isClient?c.cloneReactElement(e.children,{tdProps:e.tdProps?{...e.tdProps,...a}:null,td2Props:e.td2Props?{...e.td2Props,onContextMenu:r}:null,...i}):c.cloneReactElement(e.children,{...a});const u=e.renderSecondCell?o.createElement("td",{...e.td2Props,onContextMenu:r}):null;if(t.render){let l=null;return e.renderFirstCell&&(e.renderSecondCell?l=o.createElement(o.Fragment,null,o.createElement("td",{...e.tdProps,...a},e.content),e.renderSecondCell&&u):l=o.createElement("td",{...e.tdProps,...a},e.content)),t.render.call(void 0,l,{...t,...i})}return o.createElement(o.Fragment,null,e.children&&c.cloneReactElement(e.children,{...a}),u)};exports.GridGroupCellContainer=h;
|
|
@@ -1,88 +0,0 @@
|
|
|
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 { useTableKeyboardNavigation as x, GROUP_EXPAND_ACTION as I } from "@progress/kendo-react-data-tools";
|
|
11
|
-
import { GridContext as y } from "../../GridClientWrapper.mjs";
|
|
12
|
-
import { Keys as h } from "@progress/kendo-react-common";
|
|
13
|
-
import { cloneReactElement as r } from "../../utils/index.mjs";
|
|
14
|
-
const G = (e) => {
|
|
15
|
-
var u;
|
|
16
|
-
const { cellProps: n } = e, t = o.useContext(y), m = x(n.id), s = o.useCallback(
|
|
17
|
-
(l) => {
|
|
18
|
-
l.isDefaultPrevented() || l.keyCode === h.enter && (t != null && t.itemChange) && (l.preventDefault(), t.itemChange({
|
|
19
|
-
dataItem: n.dataItem,
|
|
20
|
-
dataIndex: n.dataIndex,
|
|
21
|
-
syntheticEvent: l,
|
|
22
|
-
field: void 0,
|
|
23
|
-
value: !n.expanded
|
|
24
|
-
}), t == null || t.dispatchGroupExpand(
|
|
25
|
-
{
|
|
26
|
-
type: I.TOGGLE,
|
|
27
|
-
group: n.group
|
|
28
|
-
},
|
|
29
|
-
l
|
|
30
|
-
));
|
|
31
|
-
},
|
|
32
|
-
[t, n.dataItem, n.dataIndex, n.expanded, n.group]
|
|
33
|
-
), C = e.addKeyDownHandler ? {
|
|
34
|
-
onKeyDown: s
|
|
35
|
-
} : {}, d = o.useCallback(
|
|
36
|
-
(l) => {
|
|
37
|
-
t != null && t.onContextMenu && t.onContextMenu.call(void 0, l, n.dataItem, n.field);
|
|
38
|
-
},
|
|
39
|
-
[t, n.dataItem, n.field]
|
|
40
|
-
), P = t.getCellPositionStyle(n.columnPosition), f = {
|
|
41
|
-
style: { ...(u = e.tdProps) == null ? void 0 : u.style, ...P }
|
|
42
|
-
}, a = {
|
|
43
|
-
...m,
|
|
44
|
-
...C,
|
|
45
|
-
onContextMenu: d,
|
|
46
|
-
...f
|
|
47
|
-
}, i = {
|
|
48
|
-
onContextMenu: t.onContextMenu,
|
|
49
|
-
onChange: t.itemChange,
|
|
50
|
-
selectionChange: (l) => {
|
|
51
|
-
t.selectionChange({
|
|
52
|
-
event: l,
|
|
53
|
-
dataItem: n.dataItem,
|
|
54
|
-
dataIndex: n.rowDataIndex,
|
|
55
|
-
columnIndex: n.columnIndex
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
if (e.isCustom)
|
|
60
|
-
return t.isClient || e.isClient ? r(e.children, {
|
|
61
|
-
// pass down to tdProps for client templates
|
|
62
|
-
tdProps: e.tdProps ? {
|
|
63
|
-
...e.tdProps,
|
|
64
|
-
...a
|
|
65
|
-
} : null,
|
|
66
|
-
td2Props: e.td2Props ? {
|
|
67
|
-
...e.td2Props,
|
|
68
|
-
onContextMenu: d
|
|
69
|
-
} : null,
|
|
70
|
-
...i
|
|
71
|
-
}) : r(e.children, {
|
|
72
|
-
...a
|
|
73
|
-
});
|
|
74
|
-
const c = e.renderSecondCell ? /* @__PURE__ */ o.createElement("td", { ...e.td2Props, onContextMenu: d }) : null;
|
|
75
|
-
if (n.render) {
|
|
76
|
-
let l = null;
|
|
77
|
-
return e.renderFirstCell && (e.renderSecondCell ? l = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("td", { ...e.tdProps, ...a }, e.content), e.renderSecondCell && c) : l = /* @__PURE__ */ o.createElement("td", { ...e.tdProps, ...a }, e.content)), n.render.call(void 0, l, {
|
|
78
|
-
...n,
|
|
79
|
-
...i
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null, e.children && r(e.children, {
|
|
83
|
-
...a
|
|
84
|
-
}), c);
|
|
85
|
-
};
|
|
86
|
-
export {
|
|
87
|
-
G as GridGroupCellContainer
|
|
88
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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 m=require("react"),f=require("@progress/kendo-react-data-tools"),C=require("../../GridClientWrapper.js"),g=require("@progress/kendo-react-common"),c=require("../../utils/index.js");function y(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const i=y(m),h=t=>{const{cellProps:e}=t,n=i.useContext(C.GridContext),r=f.useTableKeyboardNavigation(e.id),d=t.expanded,u=i.useCallback(a=>{a.isDefaultPrevented()||a.keyCode===g.Keys.enter&&(n!=null&&n.itemChange)&&(a.preventDefault(),n.itemChange({dataItem:e.dataItem,dataIndex:e.dataIndex,syntheticEvent:a,field:e.field,value:!d}))},[e.dataItem,e.dataIndex,e.field,n,d]),s=e.rowType!=="groupHeader"&&e.rowType!=="groupFooter"?{onKeyDown:u}:{},o={...r,...s},l={onContextMenu:n.onContextMenu,onChange:n.itemChange,selectionChange:a=>{n.selectionChange({event:a,dataItem:e.dataItem,dataIndex:e.rowDataIndex,columnIndex:e.columnIndex})}};if(t.isCustom)return n.isClient||t.isClient?c.cloneReactElement(t.children,{tdProps:{...t.tdProps,...o},...l}):c.cloneReactElement(t.children,{...o});if(e.render){const a=e.rowType!=="groupHeader"?i.createElement("td",{...t.tdProps,...o},t.content):null;return e.render.call(void 0,a,{...e,...l})}return t.children&&c.cloneReactElement(t.children,{...o})};exports.GridHierarchyCellContainer=h;
|
|
@@ -1,64 +0,0 @@
|
|
|
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 { useTableKeyboardNavigation as s } from "@progress/kendo-react-data-tools";
|
|
11
|
-
import { GridContext as C } from "../../GridClientWrapper.mjs";
|
|
12
|
-
import { Keys as f } from "@progress/kendo-react-common";
|
|
13
|
-
import { cloneReactElement as d } from "../../utils/index.mjs";
|
|
14
|
-
const I = (t) => {
|
|
15
|
-
const { cellProps: e } = t, n = r.useContext(C), c = s(e.id), i = t.expanded, m = r.useCallback(
|
|
16
|
-
(o) => {
|
|
17
|
-
o.isDefaultPrevented() || o.keyCode === f.enter && (n != null && n.itemChange) && (o.preventDefault(), n.itemChange({
|
|
18
|
-
dataItem: e.dataItem,
|
|
19
|
-
dataIndex: e.dataIndex,
|
|
20
|
-
syntheticEvent: o,
|
|
21
|
-
field: e.field,
|
|
22
|
-
value: !i
|
|
23
|
-
}));
|
|
24
|
-
},
|
|
25
|
-
[e.dataItem, e.dataIndex, e.field, n, i]
|
|
26
|
-
), u = e.rowType !== "groupHeader" && e.rowType !== "groupFooter" ? {
|
|
27
|
-
onKeyDown: m
|
|
28
|
-
} : {}, a = {
|
|
29
|
-
...c,
|
|
30
|
-
...u
|
|
31
|
-
}, l = {
|
|
32
|
-
onContextMenu: n.onContextMenu,
|
|
33
|
-
onChange: n.itemChange,
|
|
34
|
-
selectionChange: (o) => {
|
|
35
|
-
n.selectionChange({
|
|
36
|
-
event: o,
|
|
37
|
-
dataItem: e.dataItem,
|
|
38
|
-
dataIndex: e.rowDataIndex,
|
|
39
|
-
columnIndex: e.columnIndex
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
if (t.isCustom)
|
|
44
|
-
return n.isClient || t.isClient ? d(t.children, {
|
|
45
|
-
// pass down to tdProps for client templates
|
|
46
|
-
tdProps: { ...t.tdProps, ...a },
|
|
47
|
-
...l
|
|
48
|
-
}) : d(t.children, {
|
|
49
|
-
...a
|
|
50
|
-
});
|
|
51
|
-
if (e.render) {
|
|
52
|
-
const o = e.rowType !== "groupHeader" ? /* @__PURE__ */ r.createElement("td", { ...t.tdProps, ...a }, t.content) : null;
|
|
53
|
-
return e.render.call(void 0, o, {
|
|
54
|
-
...e,
|
|
55
|
-
...l
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
return t.children && d(t.children, {
|
|
59
|
-
...a
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
export {
|
|
63
|
-
I as GridHierarchyCellContainer
|
|
64
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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 r=require("react"),C=require("@progress/kendo-react-intl"),m=require("@progress/kendo-react-data-tools"),w=require("../../GridClientWrapper.js"),n=require("../../messages/index.js"),q=require("../../utils/index.js"),x=o=>{const{cellProps:t,rowReorderable:a}=o,{id:i,dataItem:c}=t,l=C.useLocalization(),e=r.useContext(w.GridContext),s=m.useTableKeyboardNavigation(i),d=a,u=l.toLanguageString(n.gridRowReorderAriaLabel,n.messages[n.gridRowReorderAriaLabel]),R=()=>d?e.activeDragRowDataItemRef.current=c:null,g=r.useCallback(b=>{e!=null&&e.onContextMenu&&e.onContextMenu.call(void 0,b,t.dataItem,t.field)},[e,t.dataItem,t.field]);return o.children&&q.cloneReactElement(o.children,{"aria-label":u,...s,onMouseDown:R,onContextMenu:g})};exports.GridRowReorderCellContainer=x;
|
|
@@ -1,31 +0,0 @@
|
|
|
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 n from "react";
|
|
10
|
-
import { useLocalization as g } from "@progress/kendo-react-intl";
|
|
11
|
-
import { useTableKeyboardNavigation as b } from "@progress/kendo-react-data-tools";
|
|
12
|
-
import { GridContext as C } from "../../GridClientWrapper.mjs";
|
|
13
|
-
import { gridRowReorderAriaLabel as a, messages as w } from "../../messages/index.mjs";
|
|
14
|
-
import { cloneReactElement as x } from "../../utils/index.mjs";
|
|
15
|
-
const h = (t) => {
|
|
16
|
-
const { cellProps: o, rowReorderable: r } = t, { id: i, dataItem: l } = o, c = g(), e = n.useContext(C), s = b(i), m = r, d = c.toLanguageString(a, w[a]), u = () => m ? e.activeDragRowDataItemRef.current = l : null, f = n.useCallback(
|
|
17
|
-
(R) => {
|
|
18
|
-
e != null && e.onContextMenu && e.onContextMenu.call(void 0, R, o.dataItem, o.field);
|
|
19
|
-
},
|
|
20
|
-
[e, o.dataItem, o.field]
|
|
21
|
-
);
|
|
22
|
-
return t.children && x(t.children, {
|
|
23
|
-
"aria-label": d,
|
|
24
|
-
...s,
|
|
25
|
-
onMouseDown: u,
|
|
26
|
-
onContextMenu: f
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
export {
|
|
30
|
-
h as GridRowReorderCellContainer
|
|
31
|
-
};
|