@progress/kendo-react-grid 14.3.0-develop.6 → 14.3.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.
Files changed (78) hide show
  1. package/GridClientContextReader.js +1 -1
  2. package/GridClientContextReader.mjs +10 -9
  3. package/GridClientWrapper.js +1 -1
  4. package/GridClientWrapper.mjs +672 -589
  5. package/GridComponent.js +1 -1
  6. package/GridComponent.mjs +427 -374
  7. package/GridState.d.ts +2 -0
  8. package/GridState.js +1 -1
  9. package/GridState.mjs +98 -90
  10. package/cells/pincell/GridPinCell.d.ts +15 -0
  11. package/cells/pincell/GridPinCell.js +9 -0
  12. package/cells/pincell/GridPinCell.mjs +19 -0
  13. package/cells/pincell/GridPinCellServer.d.ts +15 -0
  14. package/cells/pincell/GridPinCellServer.js +8 -0
  15. package/cells/pincell/GridPinCellServer.mjs +32 -0
  16. package/cells/pincell/GridPinCellServerContainer.d.ts +11 -0
  17. package/cells/pincell/GridPinCellServerContainer.js +9 -0
  18. package/cells/pincell/GridPinCellServerContainer.mjs +26 -0
  19. package/cells/pincell/GridPinDropdownButton.d.ts +21 -0
  20. package/cells/pincell/GridPinDropdownButton.js +9 -0
  21. package/cells/pincell/GridPinDropdownButton.mjs +58 -0
  22. package/cells/pincell/useGridPinCellClientTdProps.d.ts +24 -0
  23. package/cells/pincell/useGridPinCellClientTdProps.js +9 -0
  24. package/cells/pincell/useGridPinCellClientTdProps.mjs +21 -0
  25. package/cells/pincell/utils.d.ts +20 -0
  26. package/cells/pincell/utils.js +8 -0
  27. package/cells/pincell/utils.mjs +47 -0
  28. package/components/PinnedRowsTable.d.ts +48 -0
  29. package/components/PinnedRowsTable.js +9 -0
  30. package/components/PinnedRowsTable.mjs +133 -0
  31. package/components/StickyGroupTable.js +1 -1
  32. package/components/StickyGroupTable.mjs +1 -1
  33. package/contextMenu/GridContextMenu.d.ts +42 -0
  34. package/contextMenu/GridContextMenu.js +1 -1
  35. package/contextMenu/GridContextMenu.mjs +101 -51
  36. package/contextMenu/enums.d.ts +5 -1
  37. package/contextMenu/enums.js +1 -1
  38. package/contextMenu/enums.mjs +2 -2
  39. package/dist/cdn/js/kendo-react-grid.js +1 -1
  40. package/drag/ColumnResize.d.ts +9 -0
  41. package/drag/ColumnResize.js +1 -1
  42. package/drag/ColumnResize.mjs +105 -115
  43. package/getRowContents.d.ts +2 -2
  44. package/getRowContents.js +1 -1
  45. package/getRowContents.mjs +13 -14
  46. package/header/client/GridHeaderPinCell.d.ts +12 -0
  47. package/header/client/GridHeaderPinCell.js +9 -0
  48. package/header/client/GridHeaderPinCell.mjs +14 -0
  49. package/index.d.mts +5 -2
  50. package/index.d.ts +5 -2
  51. package/index.js +1 -1
  52. package/index.mjs +99 -95
  53. package/interfaces/ColumnType.d.ts +1 -1
  54. package/interfaces/GridCellsSettings.d.ts +23 -0
  55. package/interfaces/GridProps.d.ts +70 -1
  56. package/interfaces/GridRowProps.d.ts +4 -0
  57. package/interfaces/GridRowsSettings.d.ts +11 -0
  58. package/interfaces/events.d.ts +17 -0
  59. package/messages/index.d.ts +20 -0
  60. package/messages/index.js +2 -2
  61. package/messages/index.mjs +110 -102
  62. package/package-metadata.js +1 -1
  63. package/package-metadata.mjs +2 -2
  64. package/package.json +17 -17
  65. package/rows/GridRow.js +1 -1
  66. package/rows/GridRow.mjs +25 -24
  67. package/rows/GridRowRenderer.d.ts +1 -0
  68. package/rows/GridRowRenderer.js +1 -1
  69. package/rows/GridRowRenderer.mjs +39 -36
  70. package/stacked/GridStackedRow.d.ts +5 -0
  71. package/stacked/GridStackedRow.js +1 -1
  72. package/stacked/GridStackedRow.mjs +118 -116
  73. package/stacked/StackedModeRow.d.ts +1 -0
  74. package/stacked/StackedModeRow.js +1 -1
  75. package/stacked/StackedModeRow.mjs +13 -11
  76. package/utils/index.d.ts +1 -0
  77. package/utils/index.js +1 -1
  78. package/utils/index.mjs +44 -44
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 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 c from "react";
9
+ import { GRID_COL_INDEX_ATTRIBUTE as s } from "../../constants/index.mjs";
10
+ import { uGrid as o, classNames as r } from "@progress/kendo-react-common";
11
+ import { GridPinDropdownButton as m } from "./GridPinDropdownButton.mjs";
12
+ const I = (e) => {
13
+ var i;
14
+ let t = null, l = null;
15
+ if (e.rowType === "groupFooter")
16
+ t = {
17
+ className: e.className
18
+ };
19
+ else if (e.rowType !== "groupHeader") {
20
+ const a = e.unstyled, n = (i = a == null ? void 0 : a.uGrid) != null ? i : o, d = r(
21
+ n.td({
22
+ selected: e.isSelected,
23
+ highlighted: e.isHighlighted,
24
+ sorted: e.isSorted,
25
+ alt: e.isAlt
26
+ }),
27
+ e.className
28
+ );
29
+ t = {
30
+ colSpan: e.colSpan,
31
+ style: e.style,
32
+ className: d,
33
+ role: "gridcell",
34
+ "aria-colindex": e.ariaColumnIndex,
35
+ "aria-selected": e.isSelected,
36
+ [s]: e.columnIndex
37
+ }, l = /* @__PURE__ */ c.createElement(m, { dataItem: e.dataItem });
38
+ }
39
+ return { tdProps: t, content: l };
40
+ }, T = (e) => {
41
+ var t, l;
42
+ return (l = (t = e.cells) == null ? void 0 : t.pin) == null ? void 0 : l[e.rowType || "data"];
43
+ };
44
+ export {
45
+ T as getCustomCell,
46
+ I as getPinCellTdProps
47
+ };
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 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 { EditDescriptor } from '@progress/kendo-react-data-tools';
9
+ import { DataRowContext } from '../getRowContents.js';
10
+ import { GridStackedLayoutSettings } from '../interfaces/GridStackedLayoutSettings.js';
11
+ import { GridRowProps } from '../interfaces/GridRowProps.js';
12
+ import * as React from 'react';
13
+ /**
14
+ * Represents the PinnedRowsTable handle.
15
+ *
16
+ * @hidden
17
+ */
18
+ export interface PinnedRowsTableHandle {
19
+ /**
20
+ * Sets the width of the pinned rows table element.
21
+ */
22
+ setWidth: (width: number) => void;
23
+ /**
24
+ * Sets the horizontal scroll position of the pinned rows container.
25
+ */
26
+ setScrollLeft: (scrollLeft: number) => void;
27
+ }
28
+ /**
29
+ * @hidden
30
+ */
31
+ export interface PinnedRowsTableProps {
32
+ size?: string;
33
+ colGroups?: React.ReactElement;
34
+ dataRowContext: DataRowContext;
35
+ position: 'top' | 'bottom';
36
+ pinnedItems: any[];
37
+ isStackedMode?: boolean;
38
+ groupLevelCount?: number;
39
+ stackedLayoutSettings?: GridStackedLayoutSettings;
40
+ rowHeight?: number;
41
+ rows?: GridRowProps['rows'];
42
+ selectable?: any;
43
+ edit?: EditDescriptor;
44
+ }
45
+ /**
46
+ * @hidden
47
+ */
48
+ export declare const PinnedRowsTable: React.FC<PinnedRowsTableProps>;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react"),d=require("@progress/kendo-react-common"),E=require("@progress/kendo-react-data-tools"),H=require("../utils/GridContext.js"),_=require("../rows/GridRowRenderer.js"),F=require("../getRowContents.js");function U(s){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const r in s)if(r!=="default"){const p=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(c,r,p.get?p:{enumerable:!0,get:()=>s[r]})}}return c.default=s,Object.freeze(c)}const n=U(A),W=({size:s,colGroups:c,dataRowContext:r,position:p,pinnedItems:y,isStackedMode:P,groupLevelCount:h,stackedLayoutSettings:C,rowHeight:G,rows:i,selectable:u,edit:I})=>{const m=d.useUnstyled(),k=m!=null&&m.uGrid?m.uGrid:d.uGrid,o=n.useContext(H.GridContext),a=p==="top",R=a?o.pinnedTopRef:o.pinnedBottomRef,v=a?o.pinnedTopTableRef:o.pinnedBottomTableRef,b=n.useRef(null),S=n.useRef(!1);n.useImperativeHandle(v,()=>({setWidth:e=>{b.current&&(b.current.style.width=e?e+"px":"")},setScrollLeft:e=>{R.current&&R.current.scrollLeft!==e&&(S.current=!0,R.current.scrollLeft=e,S.current=!1)}}));const D=n.useCallback(e=>{var f;const t=(f=o.containerElementRef)==null?void 0:f.current;if(!t||S.current)return;const l=e.currentTarget.scrollLeft;t.scrollLeft!==l&&(t.scrollLeft=l)},[o.containerElementRef]),L=n.useCallback(e=>{var t;(t=o.columnResizeRef)!=null&&t.current&&(a?o.columnResizeRef.current.colGroupPinnedTop=e:o.columnResizeRef.current.colGroupPinnedBottom=e)},[o.columnResizeRef,a]),j=i!=null&&i.pinnedData?{...i,data:i.pinnedData}:i,w=y.map((e,t)=>{var N;const l={dataItem:e,rowType:"data",level:0,expanded:!1,dataIndex:t},f=r.dataItemKey,T="pinned_"+((f?d.getter(f)(e):void 0)||"ai"+t),g=F.getRowContents(r,I,l,T,t,!1);return n.createElement(_.GridRowRenderer,{key:T,isStackedMode:!!P,item:l,rowId:T,dataIndex:t,ariaRowIndex:t+1,absoluteRowIndex:t,isAltRow:t%2!==0,isHidden:!1,isRowReorderable:!1,rowHeight:G,rows:j,leafColumns:r.leafColumns,groupLevelCount:h||0,stackedLayoutSettings:C,cells:r.cells,editMode:(N=r.editable)==null?void 0:N.mode,isSelected:g.isSelected,isHighlighted:g.isHighlighted,isInEdit:g.isInEdit&&!r.isEditDialog,preparedCells:g.row,showDetailToggle:!1,isDetailExpanded:!1})}),q=d.classNames("k-grid-pinned-container",{"k-pos-bottom":!a}),K=d.classNames(k.table({size:s})),O=c?n.cloneElement(c,{colGroupRef:L}):null,z=n.useCallback(e=>{var l;const t=y[e.startRowIndex];t&&((l=o.pinnedSelectionRelease)==null||l.call(o,e,t))},[o,y]),B=n.useMemo(()=>u&&{...typeof u=="object"?u:{},enabled:!0,drag:!1},[u]),M=a?E.tableKeyboardNavigationTopPinnedAttributes:E.tableKeyboardNavigationBottomPinnedAttributes;return n.createElement("div",{className:q,style:{display:w.length?"":"none"}},n.createElement("div",{className:"k-grid-pinned-wrap",ref:R,onScroll:D},n.createElement(E.TableSelection,{selectable:B,onRelease:z,childRef:e=>{b.current=e}},n.createElement("table",{ref:b,className:K,"aria-label":a?"Pinned top rows":"Pinned bottom rows"},O,n.createElement("tbody",{className:d.classNames(k.tbody({})),...M},w)))))};exports.PinnedRowsTable=W;
@@ -0,0 +1,133 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 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 { useUnstyled as j, uGrid as F, getter as U, classNames as g } from "@progress/kendo-react-common";
11
+ import { TableSelection as W, tableKeyboardNavigationTopPinnedAttributes as _, tableKeyboardNavigationBottomPinnedAttributes as q } from "@progress/kendo-react-data-tools";
12
+ import { GridContext as J } from "../utils/GridContext.mjs";
13
+ import { GridRowRenderer as O } from "../rows/GridRowRenderer.mjs";
14
+ import { getRowContents as Q } from "../getRowContents.mjs";
15
+ const ee = ({
16
+ size: h,
17
+ colGroups: y,
18
+ dataRowContext: s,
19
+ position: I,
20
+ pinnedItems: p,
21
+ isStackedMode: k,
22
+ groupLevelCount: N,
23
+ stackedLayoutSettings: w,
24
+ rowHeight: C,
25
+ rows: a,
26
+ selectable: i,
27
+ edit: G
28
+ }) => {
29
+ const d = j(), E = d != null && d.uGrid ? d.uGrid : F, o = n.useContext(J), r = I === "top", f = r ? o.pinnedTopRef : o.pinnedBottomRef, P = r ? o.pinnedTopTableRef : o.pinnedBottomTableRef, u = n.useRef(null), R = n.useRef(!1);
30
+ n.useImperativeHandle(P, () => ({
31
+ setWidth: (e) => {
32
+ u.current && (u.current.style.width = e ? e + "px" : "");
33
+ },
34
+ setScrollLeft: (e) => {
35
+ f.current && f.current.scrollLeft !== e && (R.current = !0, f.current.scrollLeft = e, R.current = !1);
36
+ }
37
+ }));
38
+ const v = n.useCallback(
39
+ (e) => {
40
+ var c;
41
+ const t = (c = o.containerElementRef) == null ? void 0 : c.current;
42
+ if (!t || R.current)
43
+ return;
44
+ const l = e.currentTarget.scrollLeft;
45
+ t.scrollLeft !== l && (t.scrollLeft = l);
46
+ },
47
+ [o.containerElementRef]
48
+ ), L = n.useCallback(
49
+ (e) => {
50
+ var t;
51
+ (t = o.columnResizeRef) != null && t.current && (r ? o.columnResizeRef.current.colGroupPinnedTop = e : o.columnResizeRef.current.colGroupPinnedBottom = e);
52
+ },
53
+ [o.columnResizeRef, r]
54
+ ), K = a != null && a.pinnedData ? { ...a, data: a.pinnedData } : a, S = p.map((e, t) => {
55
+ var T;
56
+ const l = {
57
+ dataItem: e,
58
+ rowType: "data",
59
+ level: 0,
60
+ expanded: !1,
61
+ dataIndex: t
62
+ }, c = s.dataItemKey, b = "pinned_" + ((c ? U(c)(e) : void 0) || "ai" + t), m = Q(s, G, l, b, t, !1);
63
+ return /* @__PURE__ */ n.createElement(
64
+ O,
65
+ {
66
+ key: b,
67
+ isStackedMode: !!k,
68
+ item: l,
69
+ rowId: b,
70
+ dataIndex: t,
71
+ ariaRowIndex: t + 1,
72
+ absoluteRowIndex: t,
73
+ isAltRow: t % 2 !== 0,
74
+ isHidden: !1,
75
+ isRowReorderable: !1,
76
+ rowHeight: C,
77
+ rows: K,
78
+ leafColumns: s.leafColumns,
79
+ groupLevelCount: N || 0,
80
+ stackedLayoutSettings: w,
81
+ cells: s.cells,
82
+ editMode: (T = s.editable) == null ? void 0 : T.mode,
83
+ isSelected: m.isSelected,
84
+ isHighlighted: m.isHighlighted,
85
+ isInEdit: m.isInEdit && !s.isEditDialog,
86
+ preparedCells: m.row,
87
+ showDetailToggle: !1,
88
+ isDetailExpanded: !1
89
+ }
90
+ );
91
+ }), B = g("k-grid-pinned-container", {
92
+ "k-pos-bottom": !r
93
+ }), D = g(E.table({ size: h })), z = y ? n.cloneElement(y, { colGroupRef: L }) : null, A = n.useCallback(
94
+ (e) => {
95
+ var l;
96
+ const t = p[e.startRowIndex];
97
+ t && ((l = o.pinnedSelectionRelease) == null || l.call(o, e, t));
98
+ },
99
+ [o, p]
100
+ ), H = n.useMemo(() => i && { ...typeof i == "object" ? i : {}, enabled: !0, drag: !1 }, [i]), M = r ? _ : q;
101
+ return /* @__PURE__ */ n.createElement(
102
+ "div",
103
+ {
104
+ className: B,
105
+ style: {
106
+ display: S.length ? "" : "none"
107
+ }
108
+ },
109
+ /* @__PURE__ */ n.createElement("div", { className: "k-grid-pinned-wrap", ref: f, onScroll: v }, /* @__PURE__ */ n.createElement(
110
+ W,
111
+ {
112
+ selectable: H,
113
+ onRelease: A,
114
+ childRef: (e) => {
115
+ u.current = e;
116
+ }
117
+ },
118
+ /* @__PURE__ */ n.createElement(
119
+ "table",
120
+ {
121
+ ref: u,
122
+ className: D,
123
+ "aria-label": r ? "Pinned top rows" : "Pinned bottom rows"
124
+ },
125
+ z,
126
+ /* @__PURE__ */ n.createElement("tbody", { className: g(E.tbody({})), ...M }, S)
127
+ )
128
+ ))
129
+ );
130
+ };
131
+ export {
132
+ ee as PinnedRowsTable
133
+ };
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react"),l=require("@progress/kendo-react-common"),h=require("../utils/GridContext.js"),j=require("../rows/GridRowRenderer.js"),q=require("../getRowContents.js");function x(o){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(n,e,i.get?i:{enumerable:!0,get:()=>o[e]})}}return n.default=o,Object.freeze(n)}const r=x(O),z=({size:o,colGroups:n,dataRowContext:e,position:i,isStackedMode:k,groupLevelCount:g,stackedLayoutSettings:I,rowHeight:C})=>{const u=l.useUnstyled(),f=u!=null&&u.uGrid?u.uGrid:l.uGrid,t=r.useContext(h.GridContext),c=i==="top",d=c?t.stickyHeaderRef:t.stickyFooterRef,b=(c?t.stickyHeaderItems:t.stickyFooterItems)||[],G=b.length>0,w=l.classNames(f.stickyContainer({bottom:!c})),S=l.classNames(f.table({size:o})),m=r.useRef(null),N=c?t.stickyHeaderTableRef:t.stickyFooterTableRef;r.useImperativeHandle(N,()=>({setWidth:s=>{m.current&&(m.current.style.width=s?s+"px":"")},setScrollLeft:s=>{d.current&&d.current.scrollLeft!==s&&(d.current.scrollLeft=s)}}));const T=r.useCallback(s=>{var a;(a=t.columnResizeRef)!=null&&a.current&&(c?t.columnResizeRef.current.colGroupStickyHeader=s:t.columnResizeRef.current.colGroupStickyFooter=s)},[t.columnResizeRef,c]),E=n?r.cloneElement(n,{colGroupRef:T}):null,v=()=>b.map((s,a)=>{const{item:y,flatIndex:p}=s,R=e.dataItemKey&&l.getter(e.dataItemKey)(y.dataItem)||"ai"+p,H=q.getRowContents(e,y,R,a,!1);return r.createElement(j.GridRowRenderer,{key:R,isStackedMode:!!k,item:y,rowId:R,dataIndex:-1,ariaRowIndex:a,absoluteRowIndex:p,isAltRow:!1,isHidden:!1,isRowReorderable:!1,rowHeight:C,rows:void 0,leafColumns:e.leafColumns,groupLevelCount:g||0,stackedLayoutSettings:I,cells:e.cells,isSelected:!1,isInEdit:!1,preparedCells:H.row,showDetailToggle:!1,isDetailExpanded:!1})});return r.createElement("div",{ref:d,className:w,style:{display:G?"":"none"}},r.createElement("table",{ref:m,className:S},E,r.createElement("tbody",{className:l.classNames(f.tbody({}))},v())))};exports.StickyGroupTable=z;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react"),l=require("@progress/kendo-react-common"),h=require("../utils/GridContext.js"),j=require("../rows/GridRowRenderer.js"),q=require("../getRowContents.js");function x(o){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(n,e,i.get?i:{enumerable:!0,get:()=>o[e]})}}return n.default=o,Object.freeze(n)}const r=x(O),z=({size:o,colGroups:n,dataRowContext:e,position:i,isStackedMode:k,groupLevelCount:g,stackedLayoutSettings:I,rowHeight:C})=>{const u=l.useUnstyled(),f=u!=null&&u.uGrid?u.uGrid:l.uGrid,t=r.useContext(h.GridContext),c=i==="top",d=c?t.stickyHeaderRef:t.stickyFooterRef,b=(c?t.stickyHeaderItems:t.stickyFooterItems)||[],G=b.length>0,w=l.classNames(f.stickyContainer({bottom:!c})),S=l.classNames(f.table({size:o})),m=r.useRef(null),N=c?t.stickyHeaderTableRef:t.stickyFooterTableRef;r.useImperativeHandle(N,()=>({setWidth:s=>{m.current&&(m.current.style.width=s?s+"px":"")},setScrollLeft:s=>{d.current&&d.current.scrollLeft!==s&&(d.current.scrollLeft=s)}}));const T=r.useCallback(s=>{var a;(a=t.columnResizeRef)!=null&&a.current&&(c?t.columnResizeRef.current.colGroupStickyHeader=s:t.columnResizeRef.current.colGroupStickyFooter=s)},[t.columnResizeRef,c]),E=n?r.cloneElement(n,{colGroupRef:T}):null,v=()=>b.map((s,a)=>{const{item:y,flatIndex:p}=s,R=e.dataItemKey&&l.getter(e.dataItemKey)(y.dataItem)||"ai"+p,H=q.getRowContents(e,{},y,R,a,!1);return r.createElement(j.GridRowRenderer,{key:R,isStackedMode:!!k,item:y,rowId:R,dataIndex:-1,ariaRowIndex:a,absoluteRowIndex:p,isAltRow:!1,isHidden:!1,isRowReorderable:!1,rowHeight:C,rows:void 0,leafColumns:e.leafColumns,groupLevelCount:g||0,stackedLayoutSettings:I,cells:e.cells,isSelected:!1,isInEdit:!1,preparedCells:H.row,showDetailToggle:!1,isDetailExpanded:!1})});return r.createElement("div",{ref:d,className:w,style:{display:G?"":"none"}},r.createElement("table",{ref:m,className:S},E,r.createElement("tbody",{className:l.classNames(f.tbody({}))},v())))};exports.StickyGroupTable=z;
@@ -37,7 +37,7 @@ const j = ({
37
37
  },
38
38
  [e.columnResizeRef, r]
39
39
  ), S = u ? s.cloneElement(u, { colGroupRef: N }) : null, h = () => R.map((t, l) => {
40
- const { item: d, flatIndex: y } = t, m = o.dataItemKey && z(o.dataItemKey)(d.dataItem) || "ai" + y, x = L(o, d, m, l, !1);
40
+ const { item: d, flatIndex: y } = t, m = o.dataItemKey && z(o.dataItemKey)(d.dataItem) || "ai" + y, x = L(o, {}, d, m, l, !1);
41
41
  return /* @__PURE__ */ s.createElement(
42
42
  K,
43
43
  {
@@ -103,6 +103,48 @@ export declare const contextMenuItemsMap: {
103
103
  };
104
104
  }[];
105
105
  };
106
+ pinRow: {
107
+ name: string;
108
+ text: string;
109
+ icon: string;
110
+ svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
111
+ items: {
112
+ name: string;
113
+ text: string;
114
+ icon: string;
115
+ svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
116
+ data: {
117
+ action: string;
118
+ };
119
+ }[];
120
+ };
121
+ pinTop: {
122
+ name: string;
123
+ text: string;
124
+ icon: string;
125
+ svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
126
+ data: {
127
+ action: string;
128
+ };
129
+ };
130
+ pinBottom: {
131
+ name: string;
132
+ text: string;
133
+ icon: string;
134
+ svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
135
+ data: {
136
+ action: string;
137
+ };
138
+ };
139
+ unpin: {
140
+ name: string;
141
+ text: string;
142
+ icon: string;
143
+ svgIcon: import('@progress/kendo-svg-icons').SVGIcon;
144
+ data: {
145
+ action: string;
146
+ };
147
+ };
106
148
  copySelection: {
107
149
  name: string;
108
150
  text: string;
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),e=require("@progress/kendo-svg-icons"),R=require("@progress/kendo-react-intl"),f=require("@progress/kendo-react-layout"),t=require("./enums.js");function M(n){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const c in n)if(c!=="default"){const s=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(r,c,s.get?s:{enumerable:!0,get:()=>n[c]})}}return r.default=n,Object.freeze(r)}const m=M(w),I={[t.GridContextMenuItemNames.create]:{name:"create",text:"Add",icon:"plus",svgIcon:e.plusIcon,data:{action:"AddCommand"}},[t.GridContextMenuItemNames.edit]:{name:"edit",text:"Edit",icon:"pencil",svgIcon:e.pencilIcon,data:{action:"EditCommand"}},[t.GridContextMenuItemNames.delete]:{name:"delete",text:"Delete",icon:"trash",svgIcon:e.trashIcon,data:{action:"DeleteCommand"}},[t.GridContextMenuItemNames.select]:{name:"select",text:"Select",icon:"table-body",svgIcon:e.tableBodyIcon,items:[{name:"selectRow",text:"Row",icon:"table-row-groups",svgIcon:e.tableRowGroupsIcon,data:{action:"SelectRowCommand"}},{name:"selectAllRows",text:"All rows",icon:"grid",svgIcon:e.gridIcon,data:{action:"SelectAllRowsCommand"}},{name:"clearSelection",text:"Clear selection",icon:"table-unmerge",svgIcon:e.tableUnmergeIcon,data:{action:"ClearSelectionCommand"}}]},[t.GridContextMenuItemNames.copySelection]:{name:"copySelection",text:"Copy selection",icon:"page-header-section",svgIcon:e.pageHeaderSectionIcon,data:{action:"CopySelectionCommand"},options:"withHeaders"},[t.GridContextMenuItemNames.copySelectionNoHeaders]:{name:"copySelectionNoHeaders",text:"Copy selection (No Headers)",icon:"file-txt",svgIcon:e.fileTxtIcon,data:{action:"CopySelectionCommand"}},[t.GridContextMenuItemNames.paste]:{name:"paste",text:"Paste (use CTRL/⌘ + V)",icon:"clipboard",svgIcon:e.clipboardIcon,data:{action:"PasteCommand"}},[t.GridContextMenuItemNames.reorderRow]:{name:"reorderRow",text:"Reorder row",icon:"caret-alt-expand",svgIcon:e.caretAltExpandIcon,items:[{name:"reorderRowUp",text:"Up",icon:"caret-alt-up",svgIcon:e.caretAltUpIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowDown",text:"Down",icon:"caret-alt-down",svgIcon:e.caretAltDownIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowTop",text:"Top",icon:"caret-alt-to-top",svgIcon:e.caretAltToTopIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowBottom",text:"Bottom",icon:"caret-alt-to-bottom",svgIcon:e.caretAltToBottomIcon,data:{action:"ReorderRowCommand"}}]},[t.GridContextMenuItemNames.exportPDF]:{name:"exportPDF",text:"Export to PDF",icon:"file-pdf",svgIcon:e.filePdfIcon,data:{action:"ExportPDFCommand"}},[t.GridContextMenuItemNames.exportExcel]:{name:"exportExcel",text:"Export to Excel",icon:"file-excel",svgIcon:e.fileExcelIcon,items:[{name:"exportToExcelAll",text:"All",data:{action:"ExportExcelCommand"}},{name:"exportToExcelSelection",text:"Selection",data:{action:"ExportExcelCommand"},options:"selection,withHeaders"},{name:"exportToExcelSelectionNoHeaders",text:"Selection (No Headers)",data:{action:"ExportExcelCommand"},options:"selection"}]},[t.GridContextMenuItemNames.separator]:{name:"separator",separator:!0},[t.GridContextMenuItemNames.sortAsc]:{name:"sortAsc",text:"Sort Ascending",icon:"sort-asc-small",svgIcon:e.sortAscSmallIcon,data:{action:"SortCommand"}},[t.GridContextMenuItemNames.sortDesc]:{name:"sortDesc",text:"Sort Descending",icon:"sort-desc-small",svgIcon:e.sortDescSmallIcon,data:{action:"SortCommand"}}},v=n=>{const{show:r,offset:c,dataItem:s,field:d,items:i,onClose:u,onSelect:x}=n,p=R.useLocalization(),C=m.useCallback(a=>{x.call(void 0,{event:a,dataItem:s,field:d})},[x,s,d]),l=m.useCallback(a=>{const o=a;return o.text&&o.name&&(o.text=p.toLanguageString(`contextMenu.${o.name}`,o.text||"")),o.items&&Array.isArray(o.items)&&(o.items=o.items.map(S=>l(S))),o},[p]),g=m.useMemo(()=>i&&i.map(a=>{const o=typeof a=="string"?I[a]:a;return l(o)}),[i,l]);return m.createElement(f.ContextMenu,{show:r,offset:c,items:g,onClose:u,onSelect:C})};exports.GridContextMenu=v;exports.contextMenuItemsMap=I;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),e=require("@progress/kendo-svg-icons"),v=require("@progress/kendo-react-intl"),M=require("@progress/kendo-react-layout"),t=require("./enums.js");function R(n){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const c in n)if(c!=="default"){const r=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(i,c,r.get?r:{enumerable:!0,get:()=>n[c]})}}return i.default=n,Object.freeze(i)}const s=R(S),x={[t.GridContextMenuItemNames.create]:{name:"create",text:"Add",icon:"plus",svgIcon:e.plusIcon,data:{action:"AddCommand"}},[t.GridContextMenuItemNames.edit]:{name:"edit",text:"Edit",icon:"pencil",svgIcon:e.pencilIcon,data:{action:"EditCommand"}},[t.GridContextMenuItemNames.delete]:{name:"delete",text:"Delete",icon:"trash",svgIcon:e.trashIcon,data:{action:"DeleteCommand"}},[t.GridContextMenuItemNames.select]:{name:"select",text:"Select",icon:"table-body",svgIcon:e.tableBodyIcon,items:[{name:"selectRow",text:"Row",icon:"table-row-groups",svgIcon:e.tableRowGroupsIcon,data:{action:"SelectRowCommand"}},{name:"selectAllRows",text:"All rows",icon:"grid",svgIcon:e.gridIcon,data:{action:"SelectAllRowsCommand"}},{name:"clearSelection",text:"Clear selection",icon:"table-unmerge",svgIcon:e.tableUnmergeIcon,data:{action:"ClearSelectionCommand"}}]},[t.GridContextMenuItemNames.pinRow]:{name:"pinRow",text:"Pin row",icon:"pin-outline",svgIcon:e.pinOutlineIcon,items:[{name:"pinTop",text:"Pin to Top",icon:"pin-outline-top",svgIcon:e.pinOutlineTopIcon,data:{action:"PinTopCommand"}},{name:"pinBottom",text:"Pin to Bottom",icon:"pin-outline-bottom",svgIcon:e.pinOutlineBottomIcon,data:{action:"PinBottomCommand"}},{name:"unpin",text:"Unpin",icon:"unpin-outline",svgIcon:e.unpinOutlineIcon,data:{action:"UnpinCommand"}}]},[t.GridContextMenuItemNames.pinTop]:{name:"pinTop",text:"Pin to Top",icon:"pin-outline-top",svgIcon:e.pinOutlineTopIcon,data:{action:"PinTopCommand"}},[t.GridContextMenuItemNames.pinBottom]:{name:"pinBottom",text:"Pin to Bottom",icon:"pin-outline-bottom",svgIcon:e.pinOutlineBottomIcon,data:{action:"PinBottomCommand"}},[t.GridContextMenuItemNames.unpin]:{name:"unpin",text:"Unpin",icon:"unpin-outline",svgIcon:e.unpinOutlineIcon,data:{action:"UnpinCommand"}},[t.GridContextMenuItemNames.copySelection]:{name:"copySelection",text:"Copy selection",icon:"page-header-section",svgIcon:e.pageHeaderSectionIcon,data:{action:"CopySelectionCommand"},options:"withHeaders"},[t.GridContextMenuItemNames.copySelectionNoHeaders]:{name:"copySelectionNoHeaders",text:"Copy selection (No Headers)",icon:"file-txt",svgIcon:e.fileTxtIcon,data:{action:"CopySelectionCommand"}},[t.GridContextMenuItemNames.paste]:{name:"paste",text:"Paste (use CTRL/⌘ + V)",icon:"clipboard",svgIcon:e.clipboardIcon,data:{action:"PasteCommand"}},[t.GridContextMenuItemNames.reorderRow]:{name:"reorderRow",text:"Reorder row",icon:"caret-alt-expand",svgIcon:e.caretAltExpandIcon,items:[{name:"reorderRowUp",text:"Up",icon:"caret-alt-up",svgIcon:e.caretAltUpIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowDown",text:"Down",icon:"caret-alt-down",svgIcon:e.caretAltDownIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowTop",text:"Top",icon:"caret-alt-to-top",svgIcon:e.caretAltToTopIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowBottom",text:"Bottom",icon:"caret-alt-to-bottom",svgIcon:e.caretAltToBottomIcon,data:{action:"ReorderRowCommand"}}]},[t.GridContextMenuItemNames.exportPDF]:{name:"exportPDF",text:"Export to PDF",icon:"file-pdf",svgIcon:e.filePdfIcon,data:{action:"ExportPDFCommand"}},[t.GridContextMenuItemNames.exportExcel]:{name:"exportExcel",text:"Export to Excel",icon:"file-excel",svgIcon:e.fileExcelIcon,items:[{name:"exportToExcelAll",text:"All",data:{action:"ExportExcelCommand"}},{name:"exportToExcelSelection",text:"Selection",data:{action:"ExportExcelCommand"},options:"selection,withHeaders"},{name:"exportToExcelSelectionNoHeaders",text:"Selection (No Headers)",data:{action:"ExportExcelCommand"},options:"selection"}]},[t.GridContextMenuItemNames.separator]:{name:"separator",separator:!0},[t.GridContextMenuItemNames.sortAsc]:{name:"sortAsc",text:"Sort Ascending",icon:"sort-asc-small",svgIcon:e.sortAscSmallIcon,data:{action:"SortCommand"}},[t.GridContextMenuItemNames.sortDesc]:{name:"sortDesc",text:"Sort Descending",icon:"sort-desc-small",svgIcon:e.sortDescSmallIcon,data:{action:"SortCommand"}}},f=n=>{const{show:i,offset:c,dataItem:r,field:d,items:m,onClose:I,onSelect:p}=n,u=v.useLocalization(),C=s.useCallback(a=>{p.call(void 0,{event:a,dataItem:r,field:d})},[p,r,d]),l=s.useCallback(a=>{const o=a;return o.text&&o.name&&(o.text=u.toLanguageString(`contextMenu.${o.name}`,o.text||"")),o.items&&Array.isArray(o.items)&&(o.items=o.items.map(w=>l(w))),o},[u]),g=s.useMemo(()=>m&&m.map(a=>{const o=typeof a=="string"?x[a]:a;return l(o)}),[m,l]);return s.createElement(M.ContextMenu,{show:i,offset:c,items:g,onClose:I,onSelect:C})};exports.GridContextMenu=f;exports.contextMenuItemsMap=x;
@@ -7,84 +7,134 @@
7
7
  */
8
8
  "use client";
9
9
  import * as a from "react";
10
- import { sortDescSmallIcon as w, sortAscSmallIcon as S, fileExcelIcon as u, filePdfIcon as R, caretAltUpIcon as f, caretAltDownIcon as v, caretAltToTopIcon as E, caretAltToBottomIcon as A, caretAltExpandIcon as y, clipboardIcon as D, fileTxtIcon as b, pageHeaderSectionIcon as T, tableRowGroupsIcon as H, gridIcon as h, tableUnmergeIcon as M, tableBodyIcon as P, trashIcon as N, pencilIcon as B, plusIcon as F } from "@progress/kendo-svg-icons";
11
- import { useLocalization as U } from "@progress/kendo-react-intl";
12
- import { ContextMenu as z } from "@progress/kendo-react-layout";
13
- import { GridContextMenuItemNames as e } from "./enums.mjs";
14
- const G = {
15
- [e.create]: {
10
+ import { sortDescSmallIcon as S, sortAscSmallIcon as R, fileExcelIcon as f, filePdfIcon as E, caretAltUpIcon as A, caretAltDownIcon as T, caretAltToTopIcon as P, caretAltToBottomIcon as b, caretAltExpandIcon as y, clipboardIcon as D, fileTxtIcon as B, pageHeaderSectionIcon as H, unpinOutlineIcon as s, pinOutlineBottomIcon as d, pinOutlineTopIcon as p, pinOutlineIcon as U, tableRowGroupsIcon as h, gridIcon as M, tableUnmergeIcon as N, tableBodyIcon as F, trashIcon as O, pencilIcon as z, plusIcon as G } from "@progress/kendo-svg-icons";
11
+ import { useLocalization as L } from "@progress/kendo-react-intl";
12
+ import { ContextMenu as k } from "@progress/kendo-react-layout";
13
+ import { GridContextMenuItemNames as o } from "./enums.mjs";
14
+ const V = {
15
+ [o.create]: {
16
16
  name: "create",
17
17
  text: "Add",
18
18
  icon: "plus",
19
- svgIcon: F,
19
+ svgIcon: G,
20
20
  data: { action: "AddCommand" }
21
21
  },
22
- [e.edit]: {
22
+ [o.edit]: {
23
23
  name: "edit",
24
24
  text: "Edit",
25
25
  icon: "pencil",
26
- svgIcon: B,
26
+ svgIcon: z,
27
27
  data: { action: "EditCommand" }
28
28
  },
29
- [e.delete]: {
29
+ [o.delete]: {
30
30
  name: "delete",
31
31
  text: "Delete",
32
32
  icon: "trash",
33
- svgIcon: N,
33
+ svgIcon: O,
34
34
  data: { action: "DeleteCommand" }
35
35
  },
36
- [e.select]: {
36
+ [o.select]: {
37
37
  name: "select",
38
38
  text: "Select",
39
39
  icon: "table-body",
40
- svgIcon: P,
40
+ svgIcon: F,
41
41
  items: [
42
42
  {
43
43
  name: "selectRow",
44
44
  text: "Row",
45
45
  icon: "table-row-groups",
46
- svgIcon: H,
46
+ svgIcon: h,
47
47
  data: { action: "SelectRowCommand" }
48
48
  },
49
49
  {
50
50
  name: "selectAllRows",
51
51
  text: "All rows",
52
52
  icon: "grid",
53
- svgIcon: h,
53
+ svgIcon: M,
54
54
  data: { action: "SelectAllRowsCommand" }
55
55
  },
56
56
  {
57
57
  name: "clearSelection",
58
58
  text: "Clear selection",
59
59
  icon: "table-unmerge",
60
- svgIcon: M,
60
+ svgIcon: N,
61
61
  data: { action: "ClearSelectionCommand" }
62
62
  }
63
63
  ]
64
64
  },
65
- [e.copySelection]: {
65
+ [o.pinRow]: {
66
+ name: "pinRow",
67
+ text: "Pin row",
68
+ icon: "pin-outline",
69
+ svgIcon: U,
70
+ items: [
71
+ {
72
+ name: "pinTop",
73
+ text: "Pin to Top",
74
+ icon: "pin-outline-top",
75
+ svgIcon: p,
76
+ data: { action: "PinTopCommand" }
77
+ },
78
+ {
79
+ name: "pinBottom",
80
+ text: "Pin to Bottom",
81
+ icon: "pin-outline-bottom",
82
+ svgIcon: d,
83
+ data: { action: "PinBottomCommand" }
84
+ },
85
+ {
86
+ name: "unpin",
87
+ text: "Unpin",
88
+ icon: "unpin-outline",
89
+ svgIcon: s,
90
+ data: { action: "UnpinCommand" }
91
+ }
92
+ ]
93
+ },
94
+ [o.pinTop]: {
95
+ name: "pinTop",
96
+ text: "Pin to Top",
97
+ icon: "pin-outline-top",
98
+ svgIcon: p,
99
+ data: { action: "PinTopCommand" }
100
+ },
101
+ [o.pinBottom]: {
102
+ name: "pinBottom",
103
+ text: "Pin to Bottom",
104
+ icon: "pin-outline-bottom",
105
+ svgIcon: d,
106
+ data: { action: "PinBottomCommand" }
107
+ },
108
+ [o.unpin]: {
109
+ name: "unpin",
110
+ text: "Unpin",
111
+ icon: "unpin-outline",
112
+ svgIcon: s,
113
+ data: { action: "UnpinCommand" }
114
+ },
115
+ [o.copySelection]: {
66
116
  name: "copySelection",
67
117
  text: "Copy selection",
68
118
  icon: "page-header-section",
69
- svgIcon: T,
119
+ svgIcon: H,
70
120
  data: { action: "CopySelectionCommand" },
71
121
  options: "withHeaders"
72
122
  },
73
- [e.copySelectionNoHeaders]: {
123
+ [o.copySelectionNoHeaders]: {
74
124
  name: "copySelectionNoHeaders",
75
125
  text: "Copy selection (No Headers)",
76
126
  icon: "file-txt",
77
- svgIcon: b,
127
+ svgIcon: B,
78
128
  data: { action: "CopySelectionCommand" }
79
129
  },
80
- [e.paste]: {
130
+ [o.paste]: {
81
131
  name: "paste",
82
132
  text: "Paste (use CTRL/⌘ + V)",
83
133
  icon: "clipboard",
84
134
  svgIcon: D,
85
135
  data: { action: "PasteCommand" }
86
136
  },
87
- [e.reorderRow]: {
137
+ [o.reorderRow]: {
88
138
  name: "reorderRow",
89
139
  text: "Reorder row",
90
140
  icon: "caret-alt-expand",
@@ -94,44 +144,44 @@ const G = {
94
144
  name: "reorderRowUp",
95
145
  text: "Up",
96
146
  icon: "caret-alt-up",
97
- svgIcon: f,
147
+ svgIcon: A,
98
148
  data: { action: "ReorderRowCommand" }
99
149
  },
100
150
  {
101
151
  name: "reorderRowDown",
102
152
  text: "Down",
103
153
  icon: "caret-alt-down",
104
- svgIcon: v,
154
+ svgIcon: T,
105
155
  data: { action: "ReorderRowCommand" }
106
156
  },
107
157
  {
108
158
  name: "reorderRowTop",
109
159
  text: "Top",
110
160
  icon: "caret-alt-to-top",
111
- svgIcon: E,
161
+ svgIcon: P,
112
162
  data: { action: "ReorderRowCommand" }
113
163
  },
114
164
  {
115
165
  name: "reorderRowBottom",
116
166
  text: "Bottom",
117
167
  icon: "caret-alt-to-bottom",
118
- svgIcon: A,
168
+ svgIcon: b,
119
169
  data: { action: "ReorderRowCommand" }
120
170
  }
121
171
  ]
122
172
  },
123
- [e.exportPDF]: {
173
+ [o.exportPDF]: {
124
174
  name: "exportPDF",
125
175
  text: "Export to PDF",
126
176
  icon: "file-pdf",
127
- svgIcon: R,
177
+ svgIcon: E,
128
178
  data: { action: "ExportPDFCommand" }
129
179
  },
130
- [e.exportExcel]: {
180
+ [o.exportExcel]: {
131
181
  name: "exportExcel",
132
182
  text: "Export to Excel",
133
183
  icon: "file-excel",
134
- svgIcon: u,
184
+ svgIcon: f,
135
185
  items: [
136
186
  { name: "exportToExcelAll", text: "All", data: { action: "ExportExcelCommand" } },
137
187
  {
@@ -148,44 +198,44 @@ const G = {
148
198
  }
149
199
  ]
150
200
  },
151
- [e.separator]: { name: "separator", separator: !0 },
152
- [e.sortAsc]: {
201
+ [o.separator]: { name: "separator", separator: !0 },
202
+ [o.sortAsc]: {
153
203
  name: "sortAsc",
154
204
  text: "Sort Ascending",
155
205
  icon: "sort-asc-small",
156
- svgIcon: S,
206
+ svgIcon: R,
157
207
  data: { action: "SortCommand" }
158
208
  },
159
- [e.sortDesc]: {
209
+ [o.sortDesc]: {
160
210
  name: "sortDesc",
161
211
  text: "Sort Descending",
162
212
  icon: "sort-desc-small",
163
- svgIcon: w,
213
+ svgIcon: S,
164
214
  data: { action: "SortCommand" }
165
215
  }
166
- }, j = (m) => {
167
- const { show: d, offset: p, dataItem: r, field: i, items: n, onClose: x, onSelect: s } = m, l = U(), I = a.useCallback(
168
- (o) => {
169
- s.call(void 0, {
170
- event: o,
171
- dataItem: r,
172
- field: i
216
+ }, K = (x) => {
217
+ const { show: I, offset: u, dataItem: i, field: m, items: n, onClose: g, onSelect: r } = x, l = L(), C = a.useCallback(
218
+ (e) => {
219
+ r.call(void 0, {
220
+ event: e,
221
+ dataItem: i,
222
+ field: m
173
223
  });
174
224
  },
175
- [s, r, i]
225
+ [r, i, m]
176
226
  ), c = a.useCallback(
177
- (o) => {
178
- const t = o;
179
- return t.text && t.name && (t.text = l.toLanguageString(`contextMenu.${t.name}`, t.text || "")), t.items && Array.isArray(t.items) && (t.items = t.items.map((C) => c(C))), t;
227
+ (e) => {
228
+ const t = e;
229
+ return t.text && t.name && (t.text = l.toLanguageString(`contextMenu.${t.name}`, t.text || "")), t.items && Array.isArray(t.items) && (t.items = t.items.map((v) => c(v))), t;
180
230
  },
181
231
  [l]
182
- ), g = a.useMemo(() => n && n.map((o) => {
183
- const t = typeof o == "string" ? G[o] : o;
232
+ ), w = a.useMemo(() => n && n.map((e) => {
233
+ const t = typeof e == "string" ? V[e] : e;
184
234
  return c(t);
185
235
  }), [n, c]);
186
- return /* @__PURE__ */ a.createElement(z, { show: d, offset: p, items: g, onClose: x, onSelect: I });
236
+ return /* @__PURE__ */ a.createElement(k, { show: I, offset: u, items: w, onClose: g, onSelect: C });
187
237
  };
188
238
  export {
189
- j as GridContextMenu,
190
- G as contextMenuItemsMap
239
+ K as GridContextMenu,
240
+ V as contextMenuItemsMap
191
241
  };
@@ -32,5 +32,9 @@ export declare enum GridContextMenuItemNames {
32
32
  exportExcel = "exportExcel",
33
33
  separator = "separator",
34
34
  sortAsc = "sortAsc",
35
- sortDesc = "sortDesc"
35
+ sortDesc = "sortDesc",
36
+ pinRow = "pinRow",
37
+ pinTop = "pinTop",
38
+ pinBottom = "pinBottom",
39
+ unpin = "unpin"
36
40
  }
@@ -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"});var c=(r=>(r.head="head",r.body="body",r))(c||{}),o=(r=>(r.create="create",r.edit="edit",r.delete="delete",r.select="select",r.copySelection="copySelection",r.copySelectionNoHeaders="copySelectionNoHeaders",r.paste="paste",r.reorderRow="reorderRow",r.exportPDF="exportPDF",r.exportExcel="exportExcel",r.separator="separator",r.sortAsc="sortAsc",r.sortDesc="sortDesc",r))(o||{});exports.GridContextMenuAnchorPart=c;exports.GridContextMenuItemNames=o;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var p=(o=>(o.head="head",o.body="body",o))(p||{}),c=(o=>(o.create="create",o.edit="edit",o.delete="delete",o.select="select",o.copySelection="copySelection",o.copySelectionNoHeaders="copySelectionNoHeaders",o.paste="paste",o.reorderRow="reorderRow",o.exportPDF="exportPDF",o.exportExcel="exportExcel",o.separator="separator",o.sortAsc="sortAsc",o.sortDesc="sortDesc",o.pinRow="pinRow",o.pinTop="pinTop",o.pinBottom="pinBottom",o.unpin="unpin",o))(c||{});exports.GridContextMenuAnchorPart=p;exports.GridContextMenuItemNames=c;
@@ -5,8 +5,8 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- var r = /* @__PURE__ */ ((c) => (c.head = "head", c.body = "body", c))(r || {}), o = /* @__PURE__ */ ((c) => (c.create = "create", c.edit = "edit", c.delete = "delete", c.select = "select", c.copySelection = "copySelection", c.copySelectionNoHeaders = "copySelectionNoHeaders", c.paste = "paste", c.reorderRow = "reorderRow", c.exportPDF = "exportPDF", c.exportExcel = "exportExcel", c.separator = "separator", c.sortAsc = "sortAsc", c.sortDesc = "sortDesc", c))(o || {});
8
+ var c = /* @__PURE__ */ ((p) => (p.head = "head", p.body = "body", p))(c || {}), o = /* @__PURE__ */ ((p) => (p.create = "create", p.edit = "edit", p.delete = "delete", p.select = "select", p.copySelection = "copySelection", p.copySelectionNoHeaders = "copySelectionNoHeaders", p.paste = "paste", p.reorderRow = "reorderRow", p.exportPDF = "exportPDF", p.exportExcel = "exportExcel", p.separator = "separator", p.sortAsc = "sortAsc", p.sortDesc = "sortDesc", p.pinRow = "pinRow", p.pinTop = "pinTop", p.pinBottom = "pinBottom", p.unpin = "unpin", p))(o || {});
9
9
  export {
10
- r as GridContextMenuAnchorPart,
10
+ c as GridContextMenuAnchorPart,
11
11
  o as GridContextMenuItemNames
12
12
  };