@progress/kendo-react-grid 14.2.2-develop.1 → 14.3.0-develop.10
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/GridClientContextReader.js +1 -1
- package/GridClientContextReader.mjs +10 -9
- package/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +651 -494
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +418 -379
- package/GridState.d.ts +2 -0
- package/GridState.js +1 -1
- package/GridState.mjs +98 -90
- package/{toolbar-tools/smartbox/SegmentedControl.d.ts → cells/pincell/GridPinCell.d.ts} +4 -2
- package/cells/pincell/GridPinCell.js +9 -0
- package/cells/pincell/GridPinCell.mjs +19 -0
- package/cells/pincell/GridPinCellServer.d.ts +15 -0
- package/cells/pincell/GridPinCellServer.js +8 -0
- package/cells/pincell/GridPinCellServer.mjs +32 -0
- package/cells/pincell/GridPinCellServerContainer.d.ts +11 -0
- package/cells/pincell/GridPinCellServerContainer.js +9 -0
- package/cells/pincell/GridPinCellServerContainer.mjs +26 -0
- package/cells/pincell/GridPinDropdownButton.d.ts +21 -0
- package/cells/pincell/GridPinDropdownButton.js +9 -0
- package/cells/pincell/GridPinDropdownButton.mjs +58 -0
- package/cells/pincell/useGridPinCellClientTdProps.d.ts +24 -0
- package/cells/pincell/useGridPinCellClientTdProps.js +9 -0
- package/cells/pincell/useGridPinCellClientTdProps.mjs +21 -0
- package/cells/pincell/utils.d.ts +20 -0
- package/cells/pincell/utils.js +8 -0
- package/cells/pincell/utils.mjs +47 -0
- package/components/PinnedRowsTable.d.ts +48 -0
- package/components/PinnedRowsTable.js +9 -0
- package/components/PinnedRowsTable.mjs +133 -0
- package/components/StickyGroupTable.d.ts +42 -0
- package/components/StickyGroupTable.js +9 -0
- package/components/StickyGroupTable.mjs +82 -0
- package/components/colGroup/GridColGroup.js +1 -1
- package/components/colGroup/GridColGroup.mjs +9 -9
- package/contextMenu/GridContextMenu.d.ts +42 -0
- package/contextMenu/GridContextMenu.js +1 -1
- package/contextMenu/GridContextMenu.mjs +101 -51
- package/contextMenu/enums.d.ts +5 -1
- package/contextMenu/enums.js +1 -1
- package/contextMenu/enums.mjs +2 -2
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/drag/ColumnResize.d.ts +17 -0
- package/drag/ColumnResize.js +1 -1
- package/drag/ColumnResize.mjs +107 -100
- package/getRowContents.d.ts +58 -0
- package/getRowContents.js +8 -0
- package/getRowContents.mjs +99 -0
- package/header/GridHeaderGroupSpacerCell.d.ts +13 -0
- package/header/GridHeaderGroupSpacerCell.js +9 -0
- package/header/GridHeaderGroupSpacerCell.mjs +23 -0
- package/header/client/GridHeaderPinCell.d.ts +12 -0
- package/header/client/GridHeaderPinCell.js +9 -0
- package/header/client/GridHeaderPinCell.mjs +14 -0
- package/hooks/useStickyGroups.d.ts +71 -0
- package/hooks/useStickyGroups.js +9 -0
- package/hooks/useStickyGroups.mjs +350 -0
- package/index.d.mts +5 -2
- package/index.d.ts +5 -2
- package/index.js +1 -1
- package/index.mjs +97 -95
- package/interfaces/ColumnType.d.ts +1 -1
- package/interfaces/GridCellsSettings.d.ts +23 -0
- package/interfaces/GridGroupableSettings.d.ts +23 -0
- package/interfaces/GridProps.d.ts +70 -1
- package/interfaces/GridRowProps.d.ts +4 -0
- package/interfaces/GridRowsSettings.d.ts +11 -0
- package/interfaces/events.d.ts +17 -0
- package/messages/index.d.ts +25 -0
- package/messages/index.js +2 -2
- package/messages/index.mjs +122 -112
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +17 -17
- package/rows/GridRow.js +1 -1
- package/rows/GridRow.mjs +25 -24
- package/rows/GridRowRenderer.d.ts +1 -0
- package/rows/GridRowRenderer.js +1 -1
- package/rows/GridRowRenderer.mjs +39 -36
- package/stacked/GridStackedRow.d.ts +5 -0
- package/stacked/GridStackedRow.js +1 -1
- package/stacked/GridStackedRow.mjs +118 -116
- package/stacked/StackedModeComponents.d.ts +1 -0
- package/stacked/StackedModeComponents.js +1 -1
- package/stacked/StackedModeComponents.mjs +14 -14
- package/stacked/StackedModeRow.d.ts +1 -0
- package/stacked/StackedModeRow.js +1 -1
- package/stacked/StackedModeRow.mjs +13 -11
- package/toolbar-tools/smartbox/SmartBox.js +1 -1
- package/toolbar-tools/smartbox/SmartBox.mjs +102 -94
- package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.d.ts +12 -3
- package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.js +1 -1
- package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.mjs +42 -41
- package/toolbar-tools/smartbox/index.d.ts +0 -1
- package/toolbar-tools/smartbox/interfaces/index.d.ts +0 -1
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -1
- package/utils/index.mjs +44 -44
- package/toolbar-tools/smartbox/SegmentedControl.js +0 -8
- package/toolbar-tools/smartbox/SegmentedControl.mjs +0 -109
- package/toolbar-tools/smartbox/interfaces/SegmentedControlTypes.d.ts +0 -66
|
@@ -7,84 +7,134 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as a from "react";
|
|
10
|
-
import { sortDescSmallIcon as
|
|
11
|
-
import { useLocalization as
|
|
12
|
-
import { ContextMenu as
|
|
13
|
-
import { GridContextMenuItemNames as
|
|
14
|
-
const
|
|
15
|
-
[
|
|
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:
|
|
19
|
+
svgIcon: G,
|
|
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: z,
|
|
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: O,
|
|
34
34
|
data: { action: "DeleteCommand" }
|
|
35
35
|
},
|
|
36
|
-
[
|
|
36
|
+
[o.select]: {
|
|
37
37
|
name: "select",
|
|
38
38
|
text: "Select",
|
|
39
39
|
icon: "table-body",
|
|
40
|
-
svgIcon:
|
|
40
|
+
svgIcon: F,
|
|
41
41
|
items: [
|
|
42
42
|
{
|
|
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
|
{
|
|
50
50
|
name: "selectAllRows",
|
|
51
51
|
text: "All rows",
|
|
52
52
|
icon: "grid",
|
|
53
|
-
svgIcon:
|
|
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:
|
|
60
|
+
svgIcon: N,
|
|
61
61
|
data: { action: "ClearSelectionCommand" }
|
|
62
62
|
}
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
|
-
[
|
|
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:
|
|
119
|
+
svgIcon: H,
|
|
70
120
|
data: { action: "CopySelectionCommand" },
|
|
71
121
|
options: "withHeaders"
|
|
72
122
|
},
|
|
73
|
-
[
|
|
123
|
+
[o.copySelectionNoHeaders]: {
|
|
74
124
|
name: "copySelectionNoHeaders",
|
|
75
125
|
text: "Copy selection (No Headers)",
|
|
76
126
|
icon: "file-txt",
|
|
77
|
-
svgIcon:
|
|
127
|
+
svgIcon: B,
|
|
78
128
|
data: { action: "CopySelectionCommand" }
|
|
79
129
|
},
|
|
80
|
-
[
|
|
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
|
-
[
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
168
|
+
svgIcon: b,
|
|
119
169
|
data: { action: "ReorderRowCommand" }
|
|
120
170
|
}
|
|
121
171
|
]
|
|
122
172
|
},
|
|
123
|
-
[
|
|
173
|
+
[o.exportPDF]: {
|
|
124
174
|
name: "exportPDF",
|
|
125
175
|
text: "Export to PDF",
|
|
126
176
|
icon: "file-pdf",
|
|
127
|
-
svgIcon:
|
|
177
|
+
svgIcon: E,
|
|
128
178
|
data: { action: "ExportPDFCommand" }
|
|
129
179
|
},
|
|
130
|
-
[
|
|
180
|
+
[o.exportExcel]: {
|
|
131
181
|
name: "exportExcel",
|
|
132
182
|
text: "Export to Excel",
|
|
133
183
|
icon: "file-excel",
|
|
134
|
-
svgIcon:
|
|
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
|
-
[
|
|
152
|
-
[
|
|
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:
|
|
206
|
+
svgIcon: R,
|
|
157
207
|
data: { action: "SortCommand" }
|
|
158
208
|
},
|
|
159
|
-
[
|
|
209
|
+
[o.sortDesc]: {
|
|
160
210
|
name: "sortDesc",
|
|
161
211
|
text: "Sort Descending",
|
|
162
212
|
icon: "sort-desc-small",
|
|
163
|
-
svgIcon:
|
|
213
|
+
svgIcon: S,
|
|
164
214
|
data: { action: "SortCommand" }
|
|
165
215
|
}
|
|
166
|
-
},
|
|
167
|
-
const { show:
|
|
168
|
-
(
|
|
169
|
-
|
|
170
|
-
event:
|
|
171
|
-
dataItem:
|
|
172
|
-
field:
|
|
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
|
-
[
|
|
225
|
+
[r, i, m]
|
|
176
226
|
), c = a.useCallback(
|
|
177
|
-
(
|
|
178
|
-
const t =
|
|
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((
|
|
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
|
-
),
|
|
183
|
-
const t = typeof
|
|
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(
|
|
236
|
+
return /* @__PURE__ */ a.createElement(k, { show: I, offset: u, items: w, onClose: g, onSelect: C });
|
|
187
237
|
};
|
|
188
238
|
export {
|
|
189
|
-
|
|
190
|
-
|
|
239
|
+
K as GridContextMenu,
|
|
240
|
+
V as contextMenuItemsMap
|
|
191
241
|
};
|
package/contextMenu/enums.d.ts
CHANGED
|
@@ -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
|
}
|
package/contextMenu/enums.js
CHANGED
|
@@ -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
|
|
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;
|
package/contextMenu/enums.mjs
CHANGED
|
@@ -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
|
|
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
|
-
|
|
10
|
+
c as GridContextMenuAnchorPart,
|
|
11
11
|
o as GridContextMenuItemNames
|
|
12
12
|
};
|