@progress/kendo-react-grid 9.3.1 → 9.4.0-develop.1
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/Grid.js +1 -1
- package/Grid.mjs +80 -1042
- package/GridClientContextReader.js +8 -0
- package/GridClientContextReader.mjs +30 -0
- package/GridClientWrapper.js +8 -0
- package/GridClientWrapper.mjs +759 -0
- package/GridComponent.js +8 -0
- package/GridComponent.mjs +584 -0
- package/GridState.js +8 -0
- package/GridState.mjs +93 -0
- package/GridWatermarkOverlay.js +8 -0
- package/GridWatermarkOverlay.mjs +15 -0
- package/StatusBar.js +1 -1
- package/StatusBar.mjs +24 -24
- package/cells/GridCell.js +1 -1
- package/cells/GridCell.mjs +23 -33
- package/cells/GridDetailCell.js +1 -1
- package/cells/GridDetailCell.mjs +11 -18
- package/cells/GridDetailHierarchyCell.js +1 -1
- package/cells/GridDetailHierarchyCell.mjs +5 -5
- package/cells/GridEditCell.js +1 -1
- package/cells/GridEditCell.mjs +22 -130
- package/cells/GridGroupCell.js +1 -1
- package/cells/GridGroupCell.mjs +60 -95
- package/cells/GridHierarchyCell.js +1 -1
- package/cells/GridHierarchyCell.mjs +22 -61
- package/cells/GridRowReorderCell.js +8 -0
- package/cells/GridRowReorderCell.mjs +42 -0
- package/cells/GridSelectionCell.js +1 -1
- package/cells/GridSelectionCell.mjs +17 -35
- package/cells/client/DetailCellContainer.js +8 -0
- package/cells/client/DetailCellContainer.mjs +26 -0
- package/cells/client/GridCellContainer.js +8 -0
- package/cells/client/GridCellContainer.mjs +68 -0
- package/cells/client/GridEditCellContainer.js +8 -0
- package/cells/client/GridEditCellContainer.mjs +60 -0
- package/cells/client/GridEditCellEditor.js +8 -0
- package/cells/client/GridEditCellEditor.mjs +81 -0
- package/cells/client/GridGroupCellContainer.js +8 -0
- package/cells/client/GridGroupCellContainer.mjs +87 -0
- package/cells/client/GridGroupCellToggle.js +8 -0
- package/cells/client/GridGroupCellToggle.mjs +52 -0
- package/cells/client/GridHierarchyCellContainer.js +8 -0
- package/cells/client/GridHierarchyCellContainer.mjs +63 -0
- package/cells/client/GridHierarchyCellToggle.js +8 -0
- package/cells/client/GridHierarchyCellToggle.mjs +43 -0
- package/cells/client/GridRowReorderContainer.js +8 -0
- package/cells/client/GridRowReorderContainer.mjs +24 -0
- package/cells/client/GridSelectionCellContainer.js +8 -0
- package/cells/client/GridSelectionCellContainer.mjs +60 -0
- package/cells/client/GridSelectionCellInput.js +8 -0
- package/cells/client/GridSelectionCellInput.mjs +43 -0
- package/columnMenu/GridColumnMenuSort.js +1 -1
- package/columnMenu/GridColumnMenuSort.mjs +23 -34
- package/components/GridContainerElementContainer.js +8 -0
- package/components/GridContainerElementContainer.mjs +21 -0
- package/components/GridCustomCellClientContainer.js +8 -0
- package/components/GridCustomCellClientContainer.mjs +28 -0
- package/components/GridDragClue.js +8 -0
- package/components/GridDragClue.mjs +18 -0
- package/components/GridDraggableRowsContainer.js +8 -0
- package/components/GridDraggableRowsContainer.mjs +127 -0
- package/components/GridDropClue.js +8 -0
- package/components/GridDropClue.mjs +18 -0
- package/components/GridElementContainer.js +8 -0
- package/components/GridElementContainer.mjs +22 -0
- package/components/PagerContainer.js +8 -0
- package/components/PagerContainer.mjs +23 -0
- package/components/VirtualScrollHeightContainer.js +8 -0
- package/components/VirtualScrollHeightContainer.mjs +17 -0
- package/components/colGroup/GridColGroup.js +8 -0
- package/components/colGroup/GridColGroup.mjs +25 -0
- package/components/icons/reorder-row-svg.js +8 -0
- package/components/icons/reorder-row-svg.mjs +14 -0
- package/{GridNoRecords.js → components/noRecords/GridNoRecords.js} +1 -1
- package/{GridNoRecords.mjs → components/noRecords/GridNoRecords.mjs} +1 -1
- package/components/noRecords/GridNoRecordsContainer.js +8 -0
- package/components/noRecords/GridNoRecordsContainer.mjs +30 -0
- package/components/table/GridTable.js +8 -0
- package/components/table/GridTable.mjs +28 -0
- package/components/table/GridTableBody.js +8 -0
- package/components/table/GridTableBody.mjs +21 -0
- package/components/table/GridTableScrollable.js +8 -0
- package/components/table/GridTableScrollable.mjs +37 -0
- package/components/utils.js +8 -0
- package/components/utils.mjs +26 -0
- package/contextMenu/GridContextMenu.js +8 -0
- package/contextMenu/GridContextMenu.mjs +191 -0
- package/contextMenu/enums.js +8 -0
- package/contextMenu/enums.mjs +13 -0
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/footer/Footer.js +1 -1
- package/footer/Footer.mjs +22 -21
- package/footer/FooterCell.js +8 -0
- package/footer/FooterCell.mjs +43 -0
- package/footer/FooterRow.js +1 -1
- package/footer/FooterRow.mjs +10 -39
- package/footer/client/FooterCellContainer.js +8 -0
- package/footer/client/FooterCellContainer.mjs +26 -0
- package/header/FilterRow.js +1 -1
- package/header/FilterRow.mjs +58 -54
- package/header/GridHeaderCell.js +1 -1
- package/header/GridHeaderCell.mjs +11 -11
- package/header/GridHeaderSelectionCell.js +1 -1
- package/header/GridHeaderSelectionCell.mjs +10 -9
- package/header/GroupPanel.js +1 -1
- package/header/GroupPanel.mjs +36 -32
- package/header/Header.js +1 -1
- package/header/Header.mjs +35 -33
- package/header/HeaderRow.js +1 -1
- package/header/HeaderRow.mjs +97 -125
- package/header/client/GridFilterCellContainer.js +8 -0
- package/header/client/GridFilterCellContainer.mjs +38 -0
- package/header/client/GridFilterCellElementContainer.js +8 -0
- package/header/client/GridFilterCellElementContainer.mjs +21 -0
- package/header/client/GridHeaderCellContainer.js +8 -0
- package/header/client/GridHeaderCellContainer.mjs +54 -0
- package/header/client/GridHeaderCellElementContainer.js +8 -0
- package/header/client/GridHeaderCellElementContainer.mjs +28 -0
- package/header/client/GridHeaderRowContainer.js +8 -0
- package/header/client/GridHeaderRowContainer.mjs +35 -0
- package/header/client/GridHeaderRowReorderCell.js +8 -0
- package/header/client/GridHeaderRowReorderCell.mjs +13 -0
- package/header/client/HeaderCellResizer.js +8 -0
- package/header/client/HeaderCellResizer.mjs +25 -0
- package/header/client/HeaderRowDraggable.js +8 -0
- package/header/client/HeaderRowDraggable.mjs +30 -0
- package/index.d.mts +543 -24
- package/index.d.ts +543 -24
- package/index.js +1 -1
- package/index.mjs +58 -52
- package/interfaces/GridSortSettings.js +1 -1
- package/interfaces/GridSortSettings.mjs +18 -2
- package/messages/index.js +1 -1
- package/messages/index.mjs +76 -82
- package/messages/messagesMap.js +8 -0
- package/messages/messagesMap.mjs +19 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +12 -11
- package/rows/GridRow.js +1 -1
- package/rows/GridRow.mjs +42 -20
- package/utils/_clientModule.js +8 -0
- package/utils/_clientModule.mjs +13 -0
- package/utils/_serverModule.js +8 -0
- package/utils/_serverModule.mjs +13 -0
- package/utils/index.js +1 -1
- package/utils/index.mjs +213 -101
|
@@ -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
|
+
const p = {
|
|
10
|
+
before: "before",
|
|
11
|
+
after: "after",
|
|
12
|
+
forbidden: "forbidden"
|
|
13
|
+
}, D = (t, n) => (t == null ? void 0 : t.parentElement) !== (n == null ? void 0 : n.parentElement);
|
|
14
|
+
function b(t) {
|
|
15
|
+
const { clientTop: n, clientLeft: o } = e(t), { pageYOffset: f, pageXOffset: c } = u(t), { top: i, left: s } = t.getBoundingClientRect();
|
|
16
|
+
return {
|
|
17
|
+
top: i + f - n,
|
|
18
|
+
left: s + c - o
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
const e = (t) => t == null ? void 0 : t.ownerDocument.documentElement, u = (t) => t == null ? void 0 : t.ownerDocument.defaultView;
|
|
22
|
+
export {
|
|
23
|
+
p as dropDirection,
|
|
24
|
+
b as getOffset,
|
|
25
|
+
D as isDifferentParent
|
|
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 client";"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),u={[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:I,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"?u[a]:a;return l(o)}),[i,l]);return m.createElement(f.ContextMenu,{show:r,offset:c,items:g,onClose:I,onSelect:C})};exports.GridContextMenu=v;exports.contextMenuItemsMap=u;
|
|
@@ -0,0 +1,191 @@
|
|
|
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 { plusIcon as w, pencilIcon as u, trashIcon as S, tableBodyIcon as R, tableRowGroupsIcon as f, gridIcon as v, tableUnmergeIcon as E, pageHeaderSectionIcon as A, fileTxtIcon as y, clipboardIcon as D, caretAltExpandIcon as b, caretAltUpIcon as T, caretAltDownIcon as H, caretAltToTopIcon as h, caretAltToBottomIcon as M, filePdfIcon as P, fileExcelIcon as N, sortAscSmallIcon as B, sortDescSmallIcon 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]: {
|
|
16
|
+
name: "create",
|
|
17
|
+
text: "Add",
|
|
18
|
+
icon: "plus",
|
|
19
|
+
svgIcon: w,
|
|
20
|
+
data: { action: "AddCommand" }
|
|
21
|
+
},
|
|
22
|
+
[e.edit]: {
|
|
23
|
+
name: "edit",
|
|
24
|
+
text: "Edit",
|
|
25
|
+
icon: "pencil",
|
|
26
|
+
svgIcon: u,
|
|
27
|
+
data: { action: "EditCommand" }
|
|
28
|
+
},
|
|
29
|
+
[e.delete]: {
|
|
30
|
+
name: "delete",
|
|
31
|
+
text: "Delete",
|
|
32
|
+
icon: "trash",
|
|
33
|
+
svgIcon: S,
|
|
34
|
+
data: { action: "DeleteCommand" }
|
|
35
|
+
},
|
|
36
|
+
[e.select]: {
|
|
37
|
+
name: "select",
|
|
38
|
+
text: "Select",
|
|
39
|
+
icon: "table-body",
|
|
40
|
+
svgIcon: R,
|
|
41
|
+
items: [
|
|
42
|
+
{
|
|
43
|
+
name: "selectRow",
|
|
44
|
+
text: "Row",
|
|
45
|
+
icon: "table-row-groups",
|
|
46
|
+
svgIcon: f,
|
|
47
|
+
data: { action: "SelectRowCommand" }
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "selectAllRows",
|
|
51
|
+
text: "All rows",
|
|
52
|
+
icon: "grid",
|
|
53
|
+
svgIcon: v,
|
|
54
|
+
data: { action: "SelectAllRowsCommand" }
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "clearSelection",
|
|
58
|
+
text: "Clear selection",
|
|
59
|
+
icon: "table-unmerge",
|
|
60
|
+
svgIcon: E,
|
|
61
|
+
data: { action: "ClearSelectionCommand" }
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
[e.copySelection]: {
|
|
66
|
+
name: "copySelection",
|
|
67
|
+
text: "Copy selection",
|
|
68
|
+
icon: "page-header-section",
|
|
69
|
+
svgIcon: A,
|
|
70
|
+
data: { action: "CopySelectionCommand" },
|
|
71
|
+
options: "withHeaders"
|
|
72
|
+
},
|
|
73
|
+
[e.copySelectionNoHeaders]: {
|
|
74
|
+
name: "copySelectionNoHeaders",
|
|
75
|
+
text: "Copy selection (No Headers)",
|
|
76
|
+
icon: "file-txt",
|
|
77
|
+
svgIcon: y,
|
|
78
|
+
data: { action: "CopySelectionCommand" }
|
|
79
|
+
},
|
|
80
|
+
[e.paste]: {
|
|
81
|
+
name: "paste",
|
|
82
|
+
text: "Paste (use CTRL/⌘ + V)",
|
|
83
|
+
icon: "clipboard",
|
|
84
|
+
svgIcon: D,
|
|
85
|
+
data: { action: "PasteCommand" }
|
|
86
|
+
},
|
|
87
|
+
[e.reorderRow]: {
|
|
88
|
+
name: "reorderRow",
|
|
89
|
+
text: "Reorder row",
|
|
90
|
+
icon: "caret-alt-expand",
|
|
91
|
+
svgIcon: b,
|
|
92
|
+
items: [
|
|
93
|
+
{
|
|
94
|
+
name: "reorderRowUp",
|
|
95
|
+
text: "Up",
|
|
96
|
+
icon: "caret-alt-up",
|
|
97
|
+
svgIcon: T,
|
|
98
|
+
data: { action: "ReorderRowCommand" }
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "reorderRowDown",
|
|
102
|
+
text: "Down",
|
|
103
|
+
icon: "caret-alt-down",
|
|
104
|
+
svgIcon: H,
|
|
105
|
+
data: { action: "ReorderRowCommand" }
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "reorderRowTop",
|
|
109
|
+
text: "Top",
|
|
110
|
+
icon: "caret-alt-to-top",
|
|
111
|
+
svgIcon: h,
|
|
112
|
+
data: { action: "ReorderRowCommand" }
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: "reorderRowBottom",
|
|
116
|
+
text: "Bottom",
|
|
117
|
+
icon: "caret-alt-to-bottom",
|
|
118
|
+
svgIcon: M,
|
|
119
|
+
data: { action: "ReorderRowCommand" }
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
[e.exportPDF]: {
|
|
124
|
+
name: "exportPDF",
|
|
125
|
+
text: "Export to PDF",
|
|
126
|
+
icon: "file-pdf",
|
|
127
|
+
svgIcon: P,
|
|
128
|
+
data: { action: "ExportPDFCommand" }
|
|
129
|
+
},
|
|
130
|
+
[e.exportExcel]: {
|
|
131
|
+
name: "exportExcel",
|
|
132
|
+
text: "Export to Excel",
|
|
133
|
+
icon: "file-excel",
|
|
134
|
+
svgIcon: N,
|
|
135
|
+
items: [
|
|
136
|
+
{ name: "exportToExcelAll", text: "All", data: { action: "ExportExcelCommand" } },
|
|
137
|
+
{
|
|
138
|
+
name: "exportToExcelSelection",
|
|
139
|
+
text: "Selection",
|
|
140
|
+
data: { action: "ExportExcelCommand" },
|
|
141
|
+
options: "selection,withHeaders"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: "exportToExcelSelectionNoHeaders",
|
|
145
|
+
text: "Selection (No Headers)",
|
|
146
|
+
data: { action: "ExportExcelCommand" },
|
|
147
|
+
options: "selection"
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
[e.separator]: { name: "separator", separator: !0 },
|
|
152
|
+
[e.sortAsc]: {
|
|
153
|
+
name: "sortAsc",
|
|
154
|
+
text: "Sort Ascending",
|
|
155
|
+
icon: "sort-asc-small",
|
|
156
|
+
svgIcon: B,
|
|
157
|
+
data: { action: "SortCommand" }
|
|
158
|
+
},
|
|
159
|
+
[e.sortDesc]: {
|
|
160
|
+
name: "sortDesc",
|
|
161
|
+
text: "Sort Descending",
|
|
162
|
+
icon: "sort-desc-small",
|
|
163
|
+
svgIcon: F,
|
|
164
|
+
data: { action: "SortCommand" }
|
|
165
|
+
}
|
|
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
|
|
173
|
+
});
|
|
174
|
+
},
|
|
175
|
+
[s, r, i]
|
|
176
|
+
), 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;
|
|
180
|
+
},
|
|
181
|
+
[l]
|
|
182
|
+
), g = a.useMemo(() => n && n.map((o) => {
|
|
183
|
+
const t = typeof o == "string" ? G[o] : o;
|
|
184
|
+
return c(t);
|
|
185
|
+
}), [n, c]);
|
|
186
|
+
return /* @__PURE__ */ a.createElement(z, { show: d, offset: p, items: g, onClose: x, onSelect: I });
|
|
187
|
+
};
|
|
188
|
+
export {
|
|
189
|
+
j as GridContextMenu,
|
|
190
|
+
G as contextMenuItemsMap
|
|
191
|
+
};
|
|
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r=(c=>(c.head="head",c.body="body",c))(r||{}),o=(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||{});exports.GridContextMenuAnchorPart=r;exports.GridContextMenuItemNames=o;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
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 || {});
|
|
10
|
+
export {
|
|
11
|
+
r as GridContextMenuAnchorPart,
|
|
12
|
+
o as GridContextMenuItemNames
|
|
13
|
+
};
|