@progress/kendo-react-grid 14.5.0-develop.8 → 15.0.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/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +84 -84
- package/GridWebMcpProps.d.ts +82 -0
- package/README.md +4 -4
- package/cells/datacell/utils.js +1 -1
- package/cells/datacell/utils.mjs +19 -13
- package/cells/groupcell/GridGroupCellToggle.js +1 -1
- package/cells/groupcell/GridGroupCellToggle.mjs +23 -23
- package/cells/pincell/GridPinDropdownButton.js +1 -1
- package/cells/pincell/GridPinDropdownButton.mjs +14 -14
- package/columnMenu/GridColumnMenuFilterCell.js +1 -1
- package/columnMenu/GridColumnMenuFilterCell.mjs +4 -4
- package/columnMenu/GridColumnMenuWrapper.js +1 -1
- package/columnMenu/GridColumnMenuWrapper.mjs +46 -46
- package/contextMenu/GridContextMenu.js +1 -1
- package/contextMenu/GridContextMenu.mjs +44 -44
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/filterCommon.d.ts +1 -1
- package/filterCommon.js +1 -1
- package/filterCommon.mjs +56 -58
- package/header/HeaderRow.js +1 -1
- package/header/HeaderRow.mjs +30 -29
- package/index.d.mts +3 -1
- package/index.d.ts +3 -1
- package/interfaces/GridProps.d.ts +22 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +23 -18
- package/toolbar-tools/smartbox/SmartBox.js +1 -1
- package/toolbar-tools/smartbox/SmartBox.mjs +1 -1
- package/toolbar-tools/smartbox/hooks/useSmartBoxListData.js +1 -1
- package/toolbar-tools/smartbox/hooks/useSmartBoxListData.mjs +7 -7
- package/toolbar-tools/smartbox/listItemRenders.js +1 -1
- package/toolbar-tools/smartbox/listItemRenders.mjs +1 -1
- package/utils/handleAIResponse.d.ts +7 -3
|
@@ -7,30 +7,30 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as a from "react";
|
|
10
|
-
import { sortDescSmallIcon as S, sortAscSmallIcon as R, fileExcelIcon as f, filePdfIcon as E,
|
|
11
|
-
import { useLocalization as
|
|
12
|
-
import { ContextMenu as
|
|
10
|
+
import { sortDescSmallIcon as S, sortAscSmallIcon as R, fileExcelIcon as f, filePdfIcon as E, chevronUpIcon as b, chevronDownIcon as D, chevronDoubleUpIcon as P, chevronDoubleDownIcon as h, caretAltExpandIcon as T, clipboardIcon as A, fileTxtIcon as y, pageHeaderSectionIcon as B, unpinIcon as d, pinBottomIcon as l, pinTopIcon as p, pinIcon as U, tableRowGroupsIcon as H, gridIcon as M, tableUnmergeIcon as N, tableBodyIcon as F, trashIcon as z, pencilIcon as G, plusIcon as L } from "@progress/kendo-svg-icons";
|
|
11
|
+
import { useLocalization as k } from "@progress/kendo-react-intl";
|
|
12
|
+
import { ContextMenu as V } from "@progress/kendo-react-layout";
|
|
13
13
|
import { GridContextMenuItemNames as o } from "./enums.mjs";
|
|
14
|
-
const
|
|
14
|
+
const $ = {
|
|
15
15
|
[o.create]: {
|
|
16
16
|
name: "create",
|
|
17
17
|
text: "Add",
|
|
18
18
|
icon: "plus",
|
|
19
|
-
svgIcon:
|
|
19
|
+
svgIcon: L,
|
|
20
20
|
data: { action: "AddCommand" }
|
|
21
21
|
},
|
|
22
22
|
[o.edit]: {
|
|
23
23
|
name: "edit",
|
|
24
24
|
text: "Edit",
|
|
25
25
|
icon: "pencil",
|
|
26
|
-
svgIcon:
|
|
26
|
+
svgIcon: G,
|
|
27
27
|
data: { action: "EditCommand" }
|
|
28
28
|
},
|
|
29
29
|
[o.delete]: {
|
|
30
30
|
name: "delete",
|
|
31
31
|
text: "Delete",
|
|
32
32
|
icon: "trash",
|
|
33
|
-
svgIcon:
|
|
33
|
+
svgIcon: z,
|
|
34
34
|
data: { action: "DeleteCommand" }
|
|
35
35
|
},
|
|
36
36
|
[o.select]: {
|
|
@@ -43,7 +43,7 @@ const V = {
|
|
|
43
43
|
name: "selectRow",
|
|
44
44
|
text: "Row",
|
|
45
45
|
icon: "table-row-groups",
|
|
46
|
-
svgIcon:
|
|
46
|
+
svgIcon: H,
|
|
47
47
|
data: { action: "SelectRowCommand" }
|
|
48
48
|
},
|
|
49
49
|
{
|
|
@@ -65,28 +65,28 @@ const V = {
|
|
|
65
65
|
[o.pinRow]: {
|
|
66
66
|
name: "pinRow",
|
|
67
67
|
text: "Pin row",
|
|
68
|
-
icon: "pin
|
|
68
|
+
icon: "pin",
|
|
69
69
|
svgIcon: U,
|
|
70
70
|
items: [
|
|
71
71
|
{
|
|
72
72
|
name: "pinTop",
|
|
73
73
|
text: "Pin to Top",
|
|
74
|
-
icon: "pin-
|
|
74
|
+
icon: "pin-top",
|
|
75
75
|
svgIcon: p,
|
|
76
76
|
data: { action: "PinTopCommand" }
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
name: "pinBottom",
|
|
80
80
|
text: "Pin to Bottom",
|
|
81
|
-
icon: "pin-
|
|
82
|
-
svgIcon:
|
|
81
|
+
icon: "pin-bottom",
|
|
82
|
+
svgIcon: l,
|
|
83
83
|
data: { action: "PinBottomCommand" }
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
name: "unpin",
|
|
87
87
|
text: "Unpin",
|
|
88
|
-
icon: "unpin
|
|
89
|
-
svgIcon:
|
|
88
|
+
icon: "unpin",
|
|
89
|
+
svgIcon: d,
|
|
90
90
|
data: { action: "UnpinCommand" }
|
|
91
91
|
}
|
|
92
92
|
]
|
|
@@ -94,29 +94,29 @@ const V = {
|
|
|
94
94
|
[o.pinTop]: {
|
|
95
95
|
name: "pinTop",
|
|
96
96
|
text: "Pin to Top",
|
|
97
|
-
icon: "pin-
|
|
97
|
+
icon: "pin-top",
|
|
98
98
|
svgIcon: p,
|
|
99
99
|
data: { action: "PinTopCommand" }
|
|
100
100
|
},
|
|
101
101
|
[o.pinBottom]: {
|
|
102
102
|
name: "pinBottom",
|
|
103
103
|
text: "Pin to Bottom",
|
|
104
|
-
icon: "pin-
|
|
105
|
-
svgIcon:
|
|
104
|
+
icon: "pin-bottom",
|
|
105
|
+
svgIcon: l,
|
|
106
106
|
data: { action: "PinBottomCommand" }
|
|
107
107
|
},
|
|
108
108
|
[o.unpin]: {
|
|
109
109
|
name: "unpin",
|
|
110
110
|
text: "Unpin",
|
|
111
|
-
icon: "unpin
|
|
112
|
-
svgIcon:
|
|
111
|
+
icon: "unpin",
|
|
112
|
+
svgIcon: d,
|
|
113
113
|
data: { action: "UnpinCommand" }
|
|
114
114
|
},
|
|
115
115
|
[o.copySelection]: {
|
|
116
116
|
name: "copySelection",
|
|
117
117
|
text: "Copy selection",
|
|
118
118
|
icon: "page-header-section",
|
|
119
|
-
svgIcon:
|
|
119
|
+
svgIcon: B,
|
|
120
120
|
data: { action: "CopySelectionCommand" },
|
|
121
121
|
options: "withHeaders"
|
|
122
122
|
},
|
|
@@ -124,48 +124,48 @@ const V = {
|
|
|
124
124
|
name: "copySelectionNoHeaders",
|
|
125
125
|
text: "Copy selection (No Headers)",
|
|
126
126
|
icon: "file-txt",
|
|
127
|
-
svgIcon:
|
|
127
|
+
svgIcon: y,
|
|
128
128
|
data: { action: "CopySelectionCommand" }
|
|
129
129
|
},
|
|
130
130
|
[o.paste]: {
|
|
131
131
|
name: "paste",
|
|
132
132
|
text: "Paste (use CTRL/⌘ + V)",
|
|
133
133
|
icon: "clipboard",
|
|
134
|
-
svgIcon:
|
|
134
|
+
svgIcon: A,
|
|
135
135
|
data: { action: "PasteCommand" }
|
|
136
136
|
},
|
|
137
137
|
[o.reorderRow]: {
|
|
138
138
|
name: "reorderRow",
|
|
139
139
|
text: "Reorder row",
|
|
140
140
|
icon: "caret-alt-expand",
|
|
141
|
-
svgIcon:
|
|
141
|
+
svgIcon: T,
|
|
142
142
|
items: [
|
|
143
143
|
{
|
|
144
144
|
name: "reorderRowUp",
|
|
145
145
|
text: "Up",
|
|
146
|
-
icon: "
|
|
147
|
-
svgIcon:
|
|
146
|
+
icon: "chevron-up",
|
|
147
|
+
svgIcon: b,
|
|
148
148
|
data: { action: "ReorderRowCommand" }
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
name: "reorderRowDown",
|
|
152
152
|
text: "Down",
|
|
153
|
-
icon: "
|
|
154
|
-
svgIcon:
|
|
153
|
+
icon: "chevron-down",
|
|
154
|
+
svgIcon: D,
|
|
155
155
|
data: { action: "ReorderRowCommand" }
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
name: "reorderRowTop",
|
|
159
159
|
text: "Top",
|
|
160
|
-
icon: "
|
|
160
|
+
icon: "chevron-double-up",
|
|
161
161
|
svgIcon: P,
|
|
162
162
|
data: { action: "ReorderRowCommand" }
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
name: "reorderRowBottom",
|
|
166
166
|
text: "Bottom",
|
|
167
|
-
icon: "
|
|
168
|
-
svgIcon:
|
|
167
|
+
icon: "chevron-double-down",
|
|
168
|
+
svgIcon: h,
|
|
169
169
|
data: { action: "ReorderRowCommand" }
|
|
170
170
|
}
|
|
171
171
|
]
|
|
@@ -213,29 +213,29 @@ const V = {
|
|
|
213
213
|
svgIcon: S,
|
|
214
214
|
data: { action: "SortCommand" }
|
|
215
215
|
}
|
|
216
|
-
},
|
|
217
|
-
const { show: I, offset:
|
|
218
|
-
(
|
|
216
|
+
}, O = (x) => {
|
|
217
|
+
const { show: I, offset: g, dataItem: i, field: m, items: n, onClose: C, onSelect: r } = x, s = k(), u = a.useCallback(
|
|
218
|
+
(t) => {
|
|
219
219
|
r.call(void 0, {
|
|
220
|
-
event:
|
|
220
|
+
event: t,
|
|
221
221
|
dataItem: i,
|
|
222
222
|
field: m
|
|
223
223
|
});
|
|
224
224
|
},
|
|
225
225
|
[r, i, m]
|
|
226
226
|
), c = a.useCallback(
|
|
227
|
-
(
|
|
228
|
-
const
|
|
229
|
-
return
|
|
227
|
+
(t) => {
|
|
228
|
+
const e = t;
|
|
229
|
+
return e.text && e.name && (e.text = s.toLanguageString(`contextMenu.${e.name}`, e.text || "")), e.items && Array.isArray(e.items) && (e.items = e.items.map((w) => c(w))), e;
|
|
230
230
|
},
|
|
231
|
-
[
|
|
232
|
-
),
|
|
233
|
-
const
|
|
234
|
-
return c(
|
|
231
|
+
[s]
|
|
232
|
+
), v = a.useMemo(() => n && n.map((t) => {
|
|
233
|
+
const e = typeof t == "string" ? $[t] : t;
|
|
234
|
+
return c(e);
|
|
235
235
|
}), [n, c]);
|
|
236
|
-
return /* @__PURE__ */ a.createElement(
|
|
236
|
+
return /* @__PURE__ */ a.createElement(V, { show: I, offset: g, items: v, onClose: C, onSelect: u });
|
|
237
237
|
};
|
|
238
238
|
export {
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
O as GridContextMenu,
|
|
240
|
+
$ as contextMenuItemsMap
|
|
241
241
|
};
|