@progress/kendo-react-grid 9.4.0-develop.24 → 9.4.0-develop.4
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 +5 -4
- package/GridClientContextReader.js +1 -2
- package/GridClientContextReader.mjs +14 -15
- package/GridClientWrapper.js +1 -2
- package/GridClientWrapper.mjs +375 -450
- package/GridColumn.js +1 -1
- package/GridColumn.mjs +5 -4
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +310 -344
- package/GridState.js +1 -2
- package/GridState.mjs +67 -79
- package/GridToolbar.js +1 -1
- package/GridToolbar.mjs +6 -5
- package/GridWatermarkOverlay.js +1 -2
- package/GridWatermarkOverlay.mjs +2 -2
- package/NOTICE.txt +51 -40
- package/StatusBar.js +1 -1
- package/StatusBar.mjs +1 -0
- package/VirtualScroll.js +1 -1
- package/VirtualScroll.mjs +1 -0
- package/VirtualScrollFixed.js +1 -1
- package/VirtualScrollFixed.mjs +10 -9
- package/cells/GridCell.js +1 -1
- package/cells/GridCell.mjs +23 -25
- package/cells/GridDetailCell.js +1 -1
- package/cells/GridDetailCell.mjs +6 -5
- package/cells/GridDetailHierarchyCell.js +1 -1
- package/cells/GridDetailHierarchyCell.mjs +5 -4
- package/cells/GridEditCell.js +1 -1
- package/cells/GridEditCell.mjs +7 -6
- package/cells/GridFilterCell.js +1 -2
- package/cells/GridGroupCell.js +1 -1
- package/cells/GridGroupCell.mjs +12 -11
- package/cells/GridHierarchyCell.js +1 -1
- package/cells/GridHierarchyCell.mjs +8 -7
- package/cells/GridRowReorderCell.js +1 -1
- package/cells/GridRowReorderCell.mjs +4 -3
- package/cells/GridSelectionCell.js +1 -1
- package/cells/GridSelectionCell.mjs +13 -12
- package/cells/client/DetailCellContainer.js +1 -2
- package/cells/client/DetailCellContainer.mjs +2 -2
- package/cells/client/GridCellContainer.js +1 -2
- package/cells/client/GridEditCellContainer.js +1 -2
- package/cells/client/GridEditCellEditor.js +1 -2
- package/cells/client/GridEditCellEditor.mjs +14 -14
- package/cells/client/GridGroupCellContainer.js +1 -2
- package/cells/client/GridGroupCellContainer.mjs +39 -39
- package/cells/client/GridGroupCellToggle.js +1 -2
- package/cells/client/GridGroupCellToggle.mjs +3 -3
- package/cells/client/GridHierarchyCellContainer.js +1 -2
- package/cells/client/GridHierarchyCellToggle.js +1 -2
- package/cells/client/GridHierarchyCellToggle.mjs +15 -15
- package/cells/client/GridRowReorderContainer.js +1 -2
- package/cells/client/GridRowReorderContainer.mjs +8 -14
- package/cells/client/GridSelectionCellContainer.js +1 -2
- package/cells/client/GridSelectionCellInput.js +1 -2
- package/cells/client/GridSelectionCellInput.mjs +3 -3
- package/columnMenu/GridColumnMenuCheckboxFilter.js +1 -2
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +55 -56
- package/columnMenu/GridColumnMenuColumnsList.js +1 -2
- package/columnMenu/GridColumnMenuColumnsList.mjs +16 -16
- package/columnMenu/GridColumnMenuFilter.js +1 -2
- package/columnMenu/GridColumnMenuFilterCell.js +1 -2
- package/columnMenu/GridColumnMenuFilterCell.mjs +3 -3
- package/columnMenu/GridColumnMenuFilterUI.js +1 -2
- package/columnMenu/GridColumnMenuGroup.js +1 -2
- package/columnMenu/GridColumnMenuGroup.mjs +5 -5
- package/columnMenu/GridColumnMenuItem.js +1 -2
- package/columnMenu/GridColumnMenuItem.mjs +2 -2
- package/columnMenu/GridColumnMenuItemContent.js +1 -2
- package/columnMenu/GridColumnMenuItemContent.mjs +4 -4
- package/columnMenu/GridColumnMenuItemGroup.js +1 -2
- package/columnMenu/GridColumnMenuItemGroup.mjs +4 -4
- package/columnMenu/GridColumnMenuSort.js +1 -2
- package/columnMenu/GridColumnMenuSort.mjs +8 -8
- package/columnMenu/GridColumnMenuWrapper.js +1 -2
- package/components/GridContainerElementContainer.js +1 -2
- package/components/GridCustomCellClientContainer.js +1 -2
- package/components/GridCustomCellClientContainer.mjs +2 -2
- package/components/GridDragClue.js +1 -2
- package/components/GridDragClue.mjs +5 -5
- package/components/GridDraggableRowsContainer.js +1 -2
- package/components/GridDropClue.js +1 -2
- package/components/GridDropClue.mjs +5 -5
- package/components/GridElementContainer.js +1 -2
- package/components/GridElementContainer.mjs +6 -6
- package/components/PagerContainer.js +1 -2
- package/components/PagerContainer.mjs +4 -4
- package/components/VirtualScrollHeightContainer.js +1 -2
- package/components/VirtualScrollHeightContainer.mjs +2 -2
- package/components/colGroup/GridColGroup.js +1 -2
- package/components/colGroup/GridColGroup.mjs +5 -5
- package/components/icons/reorder-row-svg.js +1 -2
- package/components/icons/reorder-row-svg.mjs +2 -2
- package/components/noRecords/GridNoRecords.js +1 -2
- package/components/noRecords/GridNoRecords.mjs +5 -5
- package/components/noRecords/GridNoRecordsContainer.js +1 -2
- package/components/noRecords/GridNoRecordsContainer.mjs +4 -4
- package/components/table/GridTable.js +1 -2
- package/components/table/GridTable.mjs +4 -4
- package/components/table/GridTableBody.js +1 -2
- package/components/table/GridTableBody.mjs +2 -2
- package/components/table/GridTableScrollable.js +1 -2
- package/components/table/GridTableScrollable.mjs +6 -6
- package/components/utils.js +1 -1
- package/components/utils.mjs +1 -0
- package/constants/index.js +1 -1
- package/constants/index.mjs +1 -0
- package/contextMenu/GridContextMenu.js +1 -2
- package/contextMenu/GridContextMenu.mjs +3 -3
- package/contextMenu/enums.js +1 -1
- package/contextMenu/enums.mjs +1 -0
- package/dist/cdn/js/kendo-react-grid.js +1 -8
- package/drag/ColumnDraggable.js +1 -2
- package/drag/ColumnDraggable.mjs +7 -7
- package/drag/ColumnResize.js +1 -1
- package/drag/ColumnResize.mjs +1 -0
- package/drag/CommonDragLogic.js +1 -1
- package/drag/CommonDragLogic.mjs +1 -0
- package/drag/GroupingIndicator.js +1 -2
- package/drag/GroupingIndicator.mjs +11 -11
- package/filterCommon.js +1 -1
- package/filterCommon.mjs +5 -4
- package/footer/Footer.js +1 -2
- package/footer/FooterCell.js +1 -1
- package/footer/FooterCell.mjs +4 -3
- package/footer/FooterRow.js +1 -1
- package/footer/FooterRow.mjs +7 -6
- package/footer/client/FooterCellContainer.js +1 -2
- package/footer/client/FooterCellContainer.mjs +5 -5
- package/header/FilterRow.js +1 -1
- package/header/FilterRow.mjs +43 -41
- package/header/GridHeaderCell.js +1 -2
- package/header/GridHeaderCell.mjs +4 -4
- package/header/GridHeaderSelectionCell.js +1 -2
- package/header/GroupPanel.js +1 -2
- package/header/Header.js +1 -2
- package/header/HeaderRow.js +1 -1
- package/header/HeaderRow.mjs +35 -33
- package/header/client/GridFilterCellContainer.js +1 -2
- package/header/client/GridFilterCellContainer.mjs +7 -7
- package/header/client/GridFilterCellElementContainer.js +1 -2
- package/header/client/GridHeaderCellContainer.js +1 -2
- package/header/client/GridHeaderCellContainer.mjs +18 -20
- package/header/client/GridHeaderCellElementContainer.js +1 -2
- package/header/client/GridHeaderCellElementContainer.mjs +10 -10
- package/header/client/GridHeaderRowContainer.js +1 -2
- package/header/client/GridHeaderRowReorderCell.js +1 -2
- package/header/client/GridHeaderRowReorderCell.mjs +2 -2
- package/header/client/HeaderCellResizer.js +1 -2
- package/header/client/HeaderRowDraggable.js +1 -2
- package/index.d.mts +5 -211
- package/index.d.ts +5 -211
- package/index.js +1 -1
- package/index.mjs +68 -71
- package/interfaces/GridSortSettings.js +8 -0
- package/{sortCommon.mjs → interfaces/GridSortSettings.mjs} +1 -0
- package/messages/index.js +1 -1
- package/messages/index.mjs +37 -38
- package/messages/messagesMap.js +1 -1
- package/messages/messagesMap.mjs +3 -2
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +3 -2
- package/package.json +13 -14
- package/paging/GridPagerSettings.js +1 -1
- package/paging/GridPagerSettings.mjs +7 -6
- package/rows/GridDetailRow.js +1 -1
- package/rows/GridDetailRow.mjs +3 -2
- package/rows/GridRow.js +1 -2
- package/rows/GridRow.mjs +45 -45
- package/utils/_clientModule.js +1 -2
- package/utils/_clientModule.mjs +2 -2
- package/utils/_serverModule.js +1 -1
- package/utils/_serverModule.mjs +1 -0
- package/utils/index.js +1 -1
- package/utils/index.mjs +129 -138
- package/GridSearchBox.js +0 -8
- package/GridSearchBox.mjs +0 -35
- package/columnMenu/GridColumnMenuColumnsChooser.js +0 -9
- package/columnMenu/GridColumnMenuColumnsChooser.mjs +0 -82
- package/components/GridLoader.js +0 -9
- package/components/GridLoader.mjs +0 -22
- package/sortCommon.js +0 -8
package/utils/index.mjs
CHANGED
|
@@ -5,160 +5,161 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
"use client";
|
|
9
|
+
import { gridDefaultProps as v } from "../GridColumn.mjs";
|
|
10
|
+
import { getter as u } from "@progress/kendo-data-query";
|
|
11
|
+
import { findGroupExpand as M, updateLeft as T, updateRight as A, tableKeyboardNavigationTools as b } from "@progress/kendo-react-data-tools";
|
|
12
|
+
import { ServerFragment as D } from "./_serverModule.mjs";
|
|
12
13
|
import { ClientFragment as B } from "./_clientModule.mjs";
|
|
13
|
-
import { GridContextMenuItemNames as
|
|
14
|
-
function
|
|
14
|
+
import { GridContextMenuItemNames as x } from "../contextMenu/enums.mjs";
|
|
15
|
+
function y(e, t) {
|
|
15
16
|
const a = (e != null ? e : "").split(".");
|
|
16
|
-
let
|
|
17
|
-
return a.forEach((
|
|
18
|
-
|
|
19
|
-
}),
|
|
17
|
+
let l = t;
|
|
18
|
+
return a.forEach((o) => {
|
|
19
|
+
l = l ? l[o] : void 0;
|
|
20
|
+
}), l;
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
-
var
|
|
23
|
-
let
|
|
24
|
-
for (let
|
|
25
|
-
let
|
|
26
|
-
if (!
|
|
22
|
+
function k(e, t, a, l, o, f, r, n, i, d, h = 0, c) {
|
|
23
|
+
var w;
|
|
24
|
+
let S = h;
|
|
25
|
+
for (let s = 0; s < t.length; s++) {
|
|
26
|
+
let C;
|
|
27
|
+
if (!o || t[s].value === void 0 || t[s].items === void 0) {
|
|
27
28
|
e[e.length] = {
|
|
28
|
-
dataIndex:
|
|
29
|
-
dataItem: t[
|
|
29
|
+
dataIndex: l.index,
|
|
30
|
+
dataItem: t[s],
|
|
30
31
|
rowType: "data",
|
|
31
32
|
level: h,
|
|
32
|
-
group:
|
|
33
|
+
group: c,
|
|
33
34
|
// This is related to detail-row expansion
|
|
34
|
-
expanded: (
|
|
35
|
-
},
|
|
35
|
+
expanded: (w = f ? y(f, t[s]) : d && !!(r != null && r[u(d)(t[s])])) != null ? w : !1
|
|
36
|
+
}, l.index++;
|
|
36
37
|
continue;
|
|
37
38
|
} else {
|
|
38
39
|
let I;
|
|
39
|
-
|
|
40
|
-
field: t[
|
|
41
|
-
value: t[
|
|
40
|
+
c != null && c.parents ? I = [{ field: c.field, value: c.value }, ...c.parents] : c ? I = [c] : I = [], C = {
|
|
41
|
+
field: t[s].field,
|
|
42
|
+
value: t[s].value,
|
|
42
43
|
parents: I
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
-
let
|
|
46
|
+
S = Math.max(S, h + 1);
|
|
47
|
+
let g = !1;
|
|
47
48
|
if (f)
|
|
48
|
-
|
|
49
|
+
g = y(f, t[s]) !== !1;
|
|
49
50
|
else {
|
|
50
|
-
const I = M(n || [],
|
|
51
|
-
I ?
|
|
51
|
+
const I = M(n || [], C);
|
|
52
|
+
I ? g = I.expanded !== !1 : g = i !== !1;
|
|
52
53
|
}
|
|
53
54
|
e[e.length] = {
|
|
54
55
|
dataIndex: -1,
|
|
55
|
-
dataItem: t[
|
|
56
|
+
dataItem: t[s],
|
|
56
57
|
level: h,
|
|
57
|
-
group:
|
|
58
|
+
group: C,
|
|
58
59
|
rowType: "groupHeader",
|
|
59
|
-
expanded:
|
|
60
|
-
},
|
|
61
|
-
|
|
60
|
+
expanded: g
|
|
61
|
+
}, g && (C.expanded = g, S = Math.max(
|
|
62
|
+
k(
|
|
62
63
|
e,
|
|
63
|
-
t[
|
|
64
|
+
t[s].items,
|
|
64
65
|
a,
|
|
65
|
-
i,
|
|
66
66
|
l,
|
|
67
|
+
o,
|
|
67
68
|
f,
|
|
68
69
|
r,
|
|
69
70
|
n,
|
|
71
|
+
i,
|
|
70
72
|
d,
|
|
71
|
-
o,
|
|
72
73
|
h + 1,
|
|
73
|
-
|
|
74
|
+
C
|
|
74
75
|
),
|
|
75
|
-
|
|
76
|
-
)), (a === "always" ||
|
|
76
|
+
S
|
|
77
|
+
)), (a === "always" || g && a === "visible") && (e[e.length] = {
|
|
77
78
|
dataIndex: -1,
|
|
78
|
-
dataItem: t[
|
|
79
|
+
dataItem: t[s],
|
|
79
80
|
rowType: "groupFooter",
|
|
80
81
|
level: h,
|
|
81
|
-
expanded:
|
|
82
|
+
expanded: g
|
|
82
83
|
});
|
|
83
84
|
}
|
|
84
|
-
return
|
|
85
|
+
return S;
|
|
85
86
|
}
|
|
86
|
-
const
|
|
87
|
-
function
|
|
87
|
+
const L = (e, t) => typeof e.colSpan == "function" ? e.colSpan({ dataItem: t, column: e }) : e.colSpan || 1;
|
|
88
|
+
function q(e, t) {
|
|
88
89
|
const a = [[]];
|
|
89
|
-
let
|
|
90
|
+
let l = 0;
|
|
90
91
|
for (let r = e.length - 1; r >= 0; r--)
|
|
91
|
-
|
|
92
|
-
(n,
|
|
92
|
+
l = Math.max(l, e[r].depth), e[r].headerColSpan = e[r].headerColSpan || 1, e[r].children.length > 0 && (e[r].headerColSpan = e[r].children.reduce(
|
|
93
|
+
(n, i) => i.hidden ? n : n + i.headerColSpan,
|
|
93
94
|
0
|
|
94
95
|
));
|
|
95
|
-
const
|
|
96
|
+
const o = [];
|
|
96
97
|
let f = 1;
|
|
97
98
|
return e.forEach((r, n) => {
|
|
98
99
|
a[r.depth] = a[r.depth] || [];
|
|
99
|
-
let
|
|
100
|
-
a[r.depth].length === 0 && (f <= 1 ? f = 1 + (r.children.length > 0 ? 0 :
|
|
101
|
-
for (let
|
|
102
|
-
|
|
103
|
-
}),
|
|
100
|
+
let i = !1;
|
|
101
|
+
a[r.depth].length === 0 && (f <= 1 ? f = 1 + (r.children.length > 0 ? 0 : l - r.depth) : (f--, i = !0)), r.rowSpan = 1 + (r.children.length > 0 ? 0 : l - r.depth), r.kFirst = i, r.index = a[r.depth].length, a[r.depth].push(n), r.ariaColumnIndex = o[r.depth] ? o[r.depth] + 1 : 1;
|
|
102
|
+
for (let d = r.depth; d < r.depth + r.rowSpan; d++)
|
|
103
|
+
o[d] = (o[d] || 0) + r.headerColSpan;
|
|
104
|
+
}), T(a, e, t), A(a, e, t), a;
|
|
104
105
|
}
|
|
105
|
-
function
|
|
106
|
-
const
|
|
106
|
+
function p(e, t, a, l = 0) {
|
|
107
|
+
const o = [];
|
|
107
108
|
if (!e)
|
|
108
109
|
return [];
|
|
109
|
-
e && e.length === void 0 && (e = [e]), e.filter((n) => n && n.props ? !n.props.hidden : !n.hidden).forEach((n,
|
|
110
|
+
e && e.length === void 0 && (e = [e]), e.filter((n) => n && n.props ? !n.props.hidden : !n.hidden).forEach((n, i) => {
|
|
110
111
|
n = n.props ? n.props : n;
|
|
111
|
-
const
|
|
112
|
+
const d = t[i] || null, h = p(
|
|
112
113
|
n.children,
|
|
113
|
-
|
|
114
|
+
d && d.children || [],
|
|
114
115
|
a,
|
|
115
|
-
|
|
116
|
+
l + 1
|
|
116
117
|
);
|
|
117
|
-
|
|
118
|
+
o.push(
|
|
118
119
|
Object.assign(
|
|
119
|
-
{ depth:
|
|
120
|
-
|
|
120
|
+
{ depth: l },
|
|
121
|
+
v,
|
|
121
122
|
h.length ? { cell: () => null, filterCell: () => null } : {},
|
|
122
|
-
|
|
123
|
+
d ? { width: d.width, orderIndex: d.orderIndex } : {},
|
|
123
124
|
n,
|
|
124
125
|
{
|
|
125
126
|
id: n.id ? n.id : b.generateNavigatableId(`${a.prevId++}`, a.idPrefix, "column"),
|
|
126
|
-
declarationIndex:
|
|
127
|
+
declarationIndex: o.length,
|
|
127
128
|
children: h,
|
|
128
129
|
headerColSpan: n.headerColSpan,
|
|
129
130
|
rowSpan: 0,
|
|
130
131
|
columnType: n.columnType || "data",
|
|
131
132
|
colSpan: n.colSpan || 1,
|
|
132
133
|
isAccessible: !0,
|
|
133
|
-
left: n.lockedColumn ?
|
|
134
|
-
right: n.lockedColumn ?
|
|
135
|
-
rowSpannable: n.rowSpannable
|
|
134
|
+
left: n.lockedColumn ? d && Math.floor(d.left) : null,
|
|
135
|
+
right: n.lockedColumn ? d && Math.floor(d.right) : null
|
|
136
136
|
}
|
|
137
137
|
)
|
|
138
138
|
);
|
|
139
139
|
});
|
|
140
|
-
const r = (n,
|
|
141
|
-
if (
|
|
142
|
-
const n = [],
|
|
143
|
-
|
|
140
|
+
const r = (n, i) => n.orderIndex === i.orderIndex ? n.declarationIndex - i.declarationIndex : (n.orderIndex || 0) - (i.orderIndex || 0);
|
|
141
|
+
if (o.sort(r), l === 0) {
|
|
142
|
+
const n = [], i = (d, h) => d.forEach((c) => {
|
|
143
|
+
c.parentIndex = h, i(c.children, n.push(c) - 1);
|
|
144
144
|
});
|
|
145
|
-
return
|
|
145
|
+
return i(o, -1), n;
|
|
146
146
|
}
|
|
147
|
-
return
|
|
147
|
+
return o;
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
149
|
+
function z(e, t, a, l) {
|
|
150
|
+
let o = [];
|
|
151
|
+
Array.isArray(e) ? o = e : e && (o = e.data);
|
|
152
|
+
const f = [];
|
|
153
|
+
if (o.length > 0) {
|
|
154
|
+
let r = o[0];
|
|
154
155
|
if (t)
|
|
155
|
-
for (let
|
|
156
|
+
for (let i = 0; i < t.length; i++)
|
|
156
157
|
r = r.items && r.items[0];
|
|
157
|
-
Object.getOwnPropertyNames(r).forEach((
|
|
158
|
-
|
|
158
|
+
Object.getOwnPropertyNames(r).forEach((i) => {
|
|
159
|
+
i !== a.column && f.push(
|
|
159
160
|
Object.assign(
|
|
160
161
|
{
|
|
161
|
-
id: b.generateNavigatableId(`${
|
|
162
|
+
id: b.generateNavigatableId(`${l.prevId++}`, l.idPrefix, "column"),
|
|
162
163
|
declarationIndex: -1,
|
|
163
164
|
parentIndex: -1,
|
|
164
165
|
depth: 0,
|
|
@@ -174,15 +175,15 @@ function V(e, t, a, i) {
|
|
|
174
175
|
ariaColumnIndex: 0,
|
|
175
176
|
isAccessible: !0
|
|
176
177
|
},
|
|
177
|
-
|
|
178
|
-
{ field:
|
|
178
|
+
v,
|
|
179
|
+
{ field: i }
|
|
179
180
|
)
|
|
180
181
|
);
|
|
181
182
|
});
|
|
182
183
|
}
|
|
183
184
|
return f;
|
|
184
185
|
}
|
|
185
|
-
const
|
|
186
|
+
const E = (e, t) => {
|
|
186
187
|
let a = e[t.parentIndex];
|
|
187
188
|
for (; a; ) {
|
|
188
189
|
if (a.footerCell)
|
|
@@ -190,33 +191,33 @@ const F = (e, t) => {
|
|
|
190
191
|
a = e[a.parentIndex];
|
|
191
192
|
}
|
|
192
193
|
return !1;
|
|
193
|
-
},
|
|
194
|
-
const { declarationIndex: a, parentIndex:
|
|
195
|
-
return
|
|
196
|
-
children:
|
|
194
|
+
}, V = (e) => e.filter((t) => E(e, t) ? !1 : !!t.footerCell || !(t.children && t.children.length > 0)), W = (e) => e.width !== void 0 ? Math.floor(parseFloat(e.width.toString())) + "px" : void 0, J = (e, t) => t && t.filter((a) => a.field === e).length > 0, F = (e) => (e.sort((t, a) => t.declarationIndex - a.declarationIndex), e.map((t) => {
|
|
195
|
+
const { declarationIndex: a, parentIndex: l, depth: o, headerColSpan: f, rowSpan: r, index: n, kFirst: i, children: d, ...h } = t;
|
|
196
|
+
return d.length ? {
|
|
197
|
+
children: F(d),
|
|
197
198
|
...h
|
|
198
199
|
} : h;
|
|
199
|
-
})),
|
|
200
|
-
const { filterCell: t, headerCell: a, footerCell:
|
|
200
|
+
})), m = (e) => {
|
|
201
|
+
const { filterCell: t, headerCell: a, footerCell: l, cells: o, cell: f, ...r } = e;
|
|
201
202
|
return e.children.length ? {
|
|
202
|
-
...
|
|
203
|
-
children: e.children.map(
|
|
204
|
-
} :
|
|
205
|
-
},
|
|
203
|
+
...r,
|
|
204
|
+
children: e.children.map(m)
|
|
205
|
+
} : r;
|
|
206
|
+
}, K = typeof window != "undefined" && /Firefox/.test(window.navigator.userAgent), Q = 17895697, U = (e) => {
|
|
206
207
|
let t = [];
|
|
207
|
-
return e.sortable && (t = t.concat([
|
|
208
|
-
},
|
|
208
|
+
return e.sortable && (t = t.concat([x.sortAsc, x.sortDesc])), t;
|
|
209
|
+
}, X = (e) => {
|
|
209
210
|
let t = [];
|
|
210
211
|
return e.clipboard && (t = t.concat([
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
])), e.editable && (t.length && (t = t.concat([
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
])), e.selectable && (t.length && (t = t.concat([
|
|
219
|
-
},
|
|
212
|
+
x.copySelection,
|
|
213
|
+
x.copySelectionNoHeaders,
|
|
214
|
+
x.paste
|
|
215
|
+
])), e.editable && (t.length && (t = t.concat([x.separator])), t = t.concat([
|
|
216
|
+
x.create,
|
|
217
|
+
x.edit,
|
|
218
|
+
x.delete
|
|
219
|
+
])), e.selectable && (t.length && (t = t.concat([x.separator])), t = t.concat([x.select])), e.reorderable && (t.length && (t = t.concat([x.separator])), t = t.concat([x.reorderRow])), t;
|
|
220
|
+
}, Y = (e, t) => {
|
|
220
221
|
if (!(!e && !t))
|
|
221
222
|
return t ? e ? {
|
|
222
223
|
...e,
|
|
@@ -238,10 +239,7 @@ const F = (e, t) => {
|
|
|
238
239
|
...t.edit || {}
|
|
239
240
|
}
|
|
240
241
|
} : t : e;
|
|
241
|
-
}, _ = (e) => {
|
|
242
|
-
var a;
|
|
243
|
-
return typeof e == "object" ? (a = e.enabled) != null ? a : !0 : e != null ? e : !1;
|
|
244
|
-
}, G = () => T === B, P = (e) => !!(e && e.$$typeof === Symbol.for("react.client.reference")), ee = (e) => ({
|
|
242
|
+
}, Z = () => D === B, _ = (e) => !!(e && e.$$typeof === Symbol.for("react.client.reference")), P = (e) => ({
|
|
245
243
|
id: e.id,
|
|
246
244
|
ariaColumnIndex: e.ariaColumnIndex,
|
|
247
245
|
isSelected: e.isSelected,
|
|
@@ -267,32 +265,25 @@ const F = (e, t) => {
|
|
|
267
265
|
rowDataIndex: e.rowDataIndex,
|
|
268
266
|
columnPosition: e.columnPosition,
|
|
269
267
|
group: e.group
|
|
270
|
-
})
|
|
271
|
-
var i, l;
|
|
272
|
-
const t = typeof e == "object" ? (i = e.enabled) != null ? i : !0 : e != null ? e : !1, a = typeof e == "object" ? (l = e.valueGetter) != null ? l : (f, r) => y(r)(f) : (f, r) => y(r)(f);
|
|
273
|
-
return { enabled: t, valueGetter: a };
|
|
274
|
-
};
|
|
268
|
+
});
|
|
275
269
|
export {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
j as readColumns,
|
|
296
|
-
Z as resolveCells,
|
|
297
|
-
p as sanitizeColumns
|
|
270
|
+
z as autoGenerateColumns,
|
|
271
|
+
m as clientColumn,
|
|
272
|
+
K as firefox,
|
|
273
|
+
Q as firefoxMaxHeight,
|
|
274
|
+
k as flatData,
|
|
275
|
+
V as footerColumns,
|
|
276
|
+
P as getClientCellProps,
|
|
277
|
+
L as getColSpan,
|
|
278
|
+
W as getColumnWidth,
|
|
279
|
+
X as getDefaultBodyContextMenuItems,
|
|
280
|
+
U as getDefaultHeadContextMenuItems,
|
|
281
|
+
y as getNestedValue,
|
|
282
|
+
Z as isClient,
|
|
283
|
+
_ as isClientReference,
|
|
284
|
+
J as isSorted,
|
|
285
|
+
q as mapColumns,
|
|
286
|
+
p as readColumns,
|
|
287
|
+
Y as resolveCells,
|
|
288
|
+
F as sanitizeColumns
|
|
298
289
|
};
|
package/GridSearchBox.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@progress/kendo-react-inputs"),h=require("react"),m=require("./GridClientWrapper.js"),f=require("@progress/kendo-svg-icons"),i=require("@progress/kendo-react-common"),x=require("./GridState.js"),S=require("@progress/kendo-react-data-tools"),b=require("@progress/kendo-react-intl"),a=require("./messages/index.js");function C(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=C(h),q=e=>{const n=b.useLocalization(),t=r.useContext(m.GridContext),[o]=x.useGridState(),l=c=>{t.searchChange(c),e.onChange&&e.onChange.call(void 0,c)},u=S.getStringFromSearch(o.search),d=i.classNames("k-grid-search","k-searchbox",e.className),g=n.toLanguageString(a.searchboxPlaceholder,a.messages[a.searchboxPlaceholder]);return r.createElement(s.TextBox,{placeholder:g,value:u,prefix:()=>r.createElement(s.InputPrefix,{orientation:"horizontal"},r.createElement(i.SvgIcon,{icon:f.searchIcon})),...e,className:d,onChange:l})};exports.GridSearchBox=q;
|
package/GridSearchBox.mjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
import { TextBox as h, InputPrefix as g } from "@progress/kendo-react-inputs";
|
|
9
|
-
import * as o from "react";
|
|
10
|
-
import { GridContext as f } from "./GridClientWrapper.mjs";
|
|
11
|
-
import { searchIcon as x } from "@progress/kendo-svg-icons";
|
|
12
|
-
import { classNames as d, SvgIcon as C } from "@progress/kendo-react-common";
|
|
13
|
-
import { useGridState as p } from "./GridState.mjs";
|
|
14
|
-
import { getStringFromSearch as u } from "@progress/kendo-react-data-tools";
|
|
15
|
-
import { useLocalization as S } from "@progress/kendo-react-intl";
|
|
16
|
-
import { searchboxPlaceholder as r, messages as z } from "./messages/index.mjs";
|
|
17
|
-
const L = (e) => {
|
|
18
|
-
const a = S(), n = o.useContext(f), [c] = p(), i = (t) => {
|
|
19
|
-
n.searchChange(t), e.onChange && e.onChange.call(void 0, t);
|
|
20
|
-
}, m = u(c.search), s = d("k-grid-search", "k-searchbox", e.className), l = a.toLanguageString(r, z[r]);
|
|
21
|
-
return /* @__PURE__ */ o.createElement(
|
|
22
|
-
h,
|
|
23
|
-
{
|
|
24
|
-
placeholder: l,
|
|
25
|
-
value: m,
|
|
26
|
-
prefix: () => /* @__PURE__ */ o.createElement(g, { orientation: "horizontal" }, /* @__PURE__ */ o.createElement(C, { icon: x })),
|
|
27
|
-
...e,
|
|
28
|
-
className: s,
|
|
29
|
-
onChange: i
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
};
|
|
33
|
-
export {
|
|
34
|
-
L as GridSearchBox
|
|
35
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react"),g=require("@progress/kendo-react-inputs"),j=require("@progress/kendo-react-common"),q=require("@progress/kendo-svg-icons"),b=require("@progress/kendo-react-buttons"),M=require("@progress/kendo-react-intl"),r=require("../messages/index.js");function w(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const c in s)if(c!=="default"){const u=Object.getOwnPropertyDescriptor(s,c);Object.defineProperty(n,c,u.get?u:{enumerable:!0,get:()=>s[c]})}}return n.default=s,Object.freeze(n)}const t=w(O),S=s=>{const{columnsState:n,onCloseMenu:c,onColumnsStateChange:u}=s,f=M.useLocalization(),[m,E]=t.useState(""),h=n.reduce((e,l)=>({...e,[l.id||""]:!l.hidden}),{}),[o,C]=t.useState(h),y=t.useMemo(()=>(n==null?void 0:n.filter(e=>{var l;return(l=e.title||e.field)==null?void 0:l.toLowerCase().includes(m.toLowerCase())}))||[],[n,m]),d=t.useMemo(()=>Object.values(o).filter(e=>e).length,[o]),k=t.useMemo(()=>d===(n==null?void 0:n.length),[n,d]),N=t.useCallback(e=>{const a=(i=>(i==null?void 0:i.map(p=>({...p,hidden:!o[p.id||""]})))||[])(n);u&&u(a),c==null||c.call(void 0)},[o,n,c]),v=()=>{C(h)},B=t.useCallback(()=>{const e={...o};Object.keys(e).forEach((l,a)=>e[l]=k&&a===0?!0:!k),C(e)},[o,k]),R=t.useCallback((e,l)=>{const a={...o};a[l||""]=e,C(a)},[o]),x=e=>{E(String(e.target.value))};return t.createElement("form",{className:"k-filter-menu"},t.createElement("div",{className:"k-filter-menu-container"},t.createElement(g.TextBox,{className:"k-searchbox",value:m,onChange:x,prefix:()=>t.createElement(g.InputPrefix,null,t.createElement(j.IconWrap,{name:"search",icon:q.searchIcon}))}),t.createElement("ul",{className:"k-reset k-multicheck-wrap"},!m&&t.createElement("li",{className:"k-item k-check-all-wrap"},t.createElement(g.Checkbox,{checked:k,onChange:B,label:f.toLanguageString(r.filterSelectAll,r.messages[r.filterSelectAll])})),y.map((e,l)=>t.createElement("li",{key:e.id,className:"k-item"},t.createElement(g.Checkbox,{disabled:o[e.id||""]&&d===1,checked:o[e.id||""],onChange:a=>{var i;return R(!!((i=a.target.element)!=null&&i.checked),e.id)},label:e.title||e.field})))),t.createElement("div",{className:"k-filter-selected-items"},d," selected items"),t.createElement("div",{className:"k-actions k-actions-start k-actions-horizontal"},t.createElement(b.Button,{type:"button",themeColor:"primary",onClick:N},f.toLanguageString(r.filterApplyButton,r.messages[r.filterApplyButton])),t.createElement(b.Button,{type:"button",onClick:v},f.toLanguageString(r.filterResetButton,r.messages[r.filterResetButton])))))};S.displayName="GridColumnMenuColumnsChooser";exports.GridColumnMenuColumnsChooser=S;
|
|
@@ -1,82 +0,0 @@
|
|
|
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 t from "react";
|
|
10
|
-
import { TextBox as M, InputPrefix as I, Checkbox as p } from "@progress/kendo-react-inputs";
|
|
11
|
-
import { IconWrap as R } from "@progress/kendo-react-common";
|
|
12
|
-
import { searchIcon as j } from "@progress/kendo-svg-icons";
|
|
13
|
-
import { Button as g } from "@progress/kendo-react-buttons";
|
|
14
|
-
import { useLocalization as z } from "@progress/kendo-react-intl";
|
|
15
|
-
import { filterSelectAll as E, messages as k, filterApplyButton as S, filterResetButton as b } from "../messages/index.mjs";
|
|
16
|
-
const F = (N) => {
|
|
17
|
-
const { columnsState: l, onCloseMenu: c, onColumnsStateChange: h } = N, u = z(), [i, y] = t.useState(""), C = l.reduce((e, n) => ({ ...e, [n.id || ""]: !n.hidden }), {}), [o, d] = t.useState(C), x = t.useMemo(
|
|
18
|
-
() => (l == null ? void 0 : l.filter((e) => {
|
|
19
|
-
var n;
|
|
20
|
-
return (n = e.title || e.field) == null ? void 0 : n.toLowerCase().includes(i.toLowerCase());
|
|
21
|
-
})) || [],
|
|
22
|
-
[l, i]
|
|
23
|
-
), s = t.useMemo(
|
|
24
|
-
() => Object.values(o).filter((e) => e).length,
|
|
25
|
-
[o]
|
|
26
|
-
), m = t.useMemo(() => s === (l == null ? void 0 : l.length), [l, s]), v = t.useCallback(
|
|
27
|
-
(e) => {
|
|
28
|
-
const a = ((r) => (r == null ? void 0 : r.map((f) => ({
|
|
29
|
-
...f,
|
|
30
|
-
hidden: !o[f.id || ""]
|
|
31
|
-
}))) || [])(l);
|
|
32
|
-
h && h(a), c == null || c.call(void 0);
|
|
33
|
-
},
|
|
34
|
-
[o, l, c]
|
|
35
|
-
), L = () => {
|
|
36
|
-
d(C);
|
|
37
|
-
}, w = t.useCallback(() => {
|
|
38
|
-
const e = { ...o };
|
|
39
|
-
Object.keys(e).forEach(
|
|
40
|
-
(n, a) => e[n] = m && a === 0 ? !0 : !m
|
|
41
|
-
), d(e);
|
|
42
|
-
}, [o, m]), B = t.useCallback(
|
|
43
|
-
(e, n) => {
|
|
44
|
-
const a = { ...o };
|
|
45
|
-
a[n || ""] = e, d(a);
|
|
46
|
-
},
|
|
47
|
-
[o]
|
|
48
|
-
), A = (e) => {
|
|
49
|
-
y(String(e.target.value));
|
|
50
|
-
};
|
|
51
|
-
return /* @__PURE__ */ t.createElement("form", { className: "k-filter-menu" }, /* @__PURE__ */ t.createElement("div", { className: "k-filter-menu-container" }, /* @__PURE__ */ t.createElement(
|
|
52
|
-
M,
|
|
53
|
-
{
|
|
54
|
-
className: "k-searchbox",
|
|
55
|
-
value: i,
|
|
56
|
-
onChange: A,
|
|
57
|
-
prefix: () => /* @__PURE__ */ t.createElement(I, null, /* @__PURE__ */ t.createElement(R, { name: "search", icon: j }))
|
|
58
|
-
}
|
|
59
|
-
), /* @__PURE__ */ t.createElement("ul", { className: "k-reset k-multicheck-wrap" }, !i && /* @__PURE__ */ t.createElement("li", { className: "k-item k-check-all-wrap" }, /* @__PURE__ */ t.createElement(
|
|
60
|
-
p,
|
|
61
|
-
{
|
|
62
|
-
checked: m,
|
|
63
|
-
onChange: w,
|
|
64
|
-
label: u.toLanguageString(E, k[E])
|
|
65
|
-
}
|
|
66
|
-
)), x.map((e, n) => /* @__PURE__ */ t.createElement("li", { key: e.id, className: "k-item" }, /* @__PURE__ */ t.createElement(
|
|
67
|
-
p,
|
|
68
|
-
{
|
|
69
|
-
disabled: o[e.id || ""] && s === 1,
|
|
70
|
-
checked: o[e.id || ""],
|
|
71
|
-
onChange: (a) => {
|
|
72
|
-
var r;
|
|
73
|
-
return B(!!((r = a.target.element) != null && r.checked), e.id);
|
|
74
|
-
},
|
|
75
|
-
label: e.title || e.field
|
|
76
|
-
}
|
|
77
|
-
)))), /* @__PURE__ */ t.createElement("div", { className: "k-filter-selected-items" }, s, " selected items"), /* @__PURE__ */ t.createElement("div", { className: "k-actions k-actions-start k-actions-horizontal" }, /* @__PURE__ */ t.createElement(g, { type: "button", themeColor: "primary", onClick: v }, u.toLanguageString(S, k[S])), /* @__PURE__ */ t.createElement(g, { type: "button", onClick: L }, u.toLanguageString(b, k[b])))));
|
|
78
|
-
};
|
|
79
|
-
F.displayName = "GridColumnMenuColumnsChooser";
|
|
80
|
-
export {
|
|
81
|
-
F as GridColumnMenuColumnsChooser
|
|
82
|
-
};
|
package/components/GridLoader.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),c=require("@progress/kendo-react-indicators");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=l(o),i={height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},s=e=>{var t;return n.createElement(n.Fragment,null,e.showLoader?(t=e.loader)!=null?t:n.createElement("div",{className:"k-loading-mask"},n.createElement("div",{className:"k-loading-color"}),n.createElement("div",{style:i},n.createElement(c.Loader,{size:"large",type:"converging-spinner"}))):null)};exports.GridLoader=s;
|
|
@@ -1,22 +0,0 @@
|
|
|
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 e from "react";
|
|
10
|
-
import { Loader as a } from "@progress/kendo-react-indicators";
|
|
11
|
-
const n = {
|
|
12
|
-
height: "100%",
|
|
13
|
-
display: "flex",
|
|
14
|
-
justifyContent: "center",
|
|
15
|
-
alignItems: "center"
|
|
16
|
-
}, o = (t) => {
|
|
17
|
-
var r;
|
|
18
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, t.showLoader ? (r = t.loader) != null ? r : /* @__PURE__ */ e.createElement("div", { className: "k-loading-mask" }, /* @__PURE__ */ e.createElement("div", { className: "k-loading-color" }), /* @__PURE__ */ e.createElement("div", { style: n }, /* @__PURE__ */ e.createElement(a, { size: "large", type: "converging-spinner" }))) : null);
|
|
19
|
-
};
|
|
20
|
-
export {
|
|
21
|
-
o as GridLoader
|
|
22
|
-
};
|
package/sortCommon.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=(...s)=>Object.assign({allowUnsort:!0,mode:"single"},...s),c={true:{asc:{asc:"",desc:"desc"},desc:{asc:"asc",desc:""},"":{asc:"asc",desc:"desc"}},false:{asc:{asc:"asc",desc:"desc"},desc:{asc:"asc",desc:"desc"},"":{asc:"asc",desc:"desc"}}},a={true:{asc:"desc",desc:"","":"asc"},false:{asc:"desc",desc:"asc","":"asc"}};exports.firstLevelSortSeqMap=a;exports.normalize=e;exports.sortSeqMap=c;
|