@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.
Files changed (35) hide show
  1. package/GridClientWrapper.js +1 -1
  2. package/GridClientWrapper.mjs +84 -84
  3. package/GridWebMcpProps.d.ts +82 -0
  4. package/README.md +4 -4
  5. package/cells/datacell/utils.js +1 -1
  6. package/cells/datacell/utils.mjs +19 -13
  7. package/cells/groupcell/GridGroupCellToggle.js +1 -1
  8. package/cells/groupcell/GridGroupCellToggle.mjs +23 -23
  9. package/cells/pincell/GridPinDropdownButton.js +1 -1
  10. package/cells/pincell/GridPinDropdownButton.mjs +14 -14
  11. package/columnMenu/GridColumnMenuFilterCell.js +1 -1
  12. package/columnMenu/GridColumnMenuFilterCell.mjs +4 -4
  13. package/columnMenu/GridColumnMenuWrapper.js +1 -1
  14. package/columnMenu/GridColumnMenuWrapper.mjs +46 -46
  15. package/contextMenu/GridContextMenu.js +1 -1
  16. package/contextMenu/GridContextMenu.mjs +44 -44
  17. package/dist/cdn/js/kendo-react-grid.js +1 -1
  18. package/filterCommon.d.ts +1 -1
  19. package/filterCommon.js +1 -1
  20. package/filterCommon.mjs +56 -58
  21. package/header/HeaderRow.js +1 -1
  22. package/header/HeaderRow.mjs +30 -29
  23. package/index.d.mts +3 -1
  24. package/index.d.ts +3 -1
  25. package/interfaces/GridProps.d.ts +22 -0
  26. package/package-metadata.js +1 -1
  27. package/package-metadata.mjs +2 -2
  28. package/package.json +23 -18
  29. package/toolbar-tools/smartbox/SmartBox.js +1 -1
  30. package/toolbar-tools/smartbox/SmartBox.mjs +1 -1
  31. package/toolbar-tools/smartbox/hooks/useSmartBoxListData.js +1 -1
  32. package/toolbar-tools/smartbox/hooks/useSmartBoxListData.mjs +7 -7
  33. package/toolbar-tools/smartbox/listItemRenders.js +1 -1
  34. package/toolbar-tools/smartbox/listItemRenders.mjs +1 -1
  35. 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, 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";
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 V = {
14
+ const $ = {
15
15
  [o.create]: {
16
16
  name: "create",
17
17
  text: "Add",
18
18
  icon: "plus",
19
- svgIcon: G,
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: z,
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: O,
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: h,
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-outline",
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-outline-top",
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-outline-bottom",
82
- svgIcon: d,
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-outline",
89
- svgIcon: s,
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-outline-top",
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-outline-bottom",
105
- svgIcon: d,
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-outline",
112
- svgIcon: s,
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: H,
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: B,
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: D,
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: y,
141
+ svgIcon: T,
142
142
  items: [
143
143
  {
144
144
  name: "reorderRowUp",
145
145
  text: "Up",
146
- icon: "caret-alt-up",
147
- svgIcon: A,
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: "caret-alt-down",
154
- svgIcon: T,
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: "caret-alt-to-top",
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: "caret-alt-to-bottom",
168
- svgIcon: b,
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
- }, 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) => {
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: e,
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
- (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;
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
- [l]
232
- ), w = a.useMemo(() => n && n.map((e) => {
233
- const t = typeof e == "string" ? V[e] : e;
234
- return c(t);
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(k, { show: I, offset: u, items: w, onClose: g, onSelect: C });
236
+ return /* @__PURE__ */ a.createElement(V, { show: I, offset: g, items: v, onClose: C, onSelect: u });
237
237
  };
238
238
  export {
239
- K as GridContextMenu,
240
- V as contextMenuItemsMap
239
+ O as GridContextMenu,
240
+ $ as contextMenuItemsMap
241
241
  };