@progress/kendo-react-grid 9.4.0-develop.2 → 9.4.0-develop.20
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 +4 -5
- package/GridClientContextReader.js +2 -1
- package/GridClientContextReader.mjs +15 -14
- package/GridClientWrapper.js +2 -1
- package/GridClientWrapper.mjs +436 -381
- package/GridColumn.js +1 -1
- package/GridColumn.mjs +4 -5
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +342 -306
- package/GridSearchBox.js +8 -0
- package/GridSearchBox.mjs +35 -0
- package/GridState.js +2 -1
- package/GridState.mjs +79 -67
- package/GridToolbar.js +1 -1
- package/GridToolbar.mjs +5 -6
- package/GridWatermarkOverlay.js +2 -1
- package/GridWatermarkOverlay.mjs +2 -2
- package/NOTICE.txt +40 -51
- package/StatusBar.js +1 -1
- package/StatusBar.mjs +0 -1
- package/VirtualScroll.js +1 -1
- package/VirtualScroll.mjs +0 -1
- package/VirtualScrollFixed.js +1 -1
- package/VirtualScrollFixed.mjs +9 -10
- package/cells/GridCell.js +1 -1
- package/cells/GridCell.mjs +25 -23
- package/cells/GridDetailCell.js +1 -1
- package/cells/GridDetailCell.mjs +5 -6
- package/cells/GridDetailHierarchyCell.js +1 -1
- package/cells/GridDetailHierarchyCell.mjs +4 -5
- package/cells/GridEditCell.js +1 -1
- package/cells/GridEditCell.mjs +6 -7
- package/cells/GridFilterCell.js +2 -1
- package/cells/GridGroupCell.js +1 -1
- package/cells/GridGroupCell.mjs +11 -12
- package/cells/GridHierarchyCell.js +1 -1
- package/cells/GridHierarchyCell.mjs +7 -8
- package/cells/GridRowReorderCell.js +1 -1
- package/cells/GridRowReorderCell.mjs +3 -4
- package/cells/GridSelectionCell.js +1 -1
- package/cells/GridSelectionCell.mjs +12 -13
- package/cells/client/DetailCellContainer.js +2 -1
- package/cells/client/DetailCellContainer.mjs +2 -2
- package/cells/client/GridCellContainer.js +2 -1
- package/cells/client/GridEditCellContainer.js +2 -1
- package/cells/client/GridEditCellEditor.js +2 -1
- package/cells/client/GridEditCellEditor.mjs +14 -14
- package/cells/client/GridGroupCellContainer.js +2 -1
- package/cells/client/GridGroupCellContainer.mjs +39 -39
- package/cells/client/GridGroupCellToggle.js +2 -1
- package/cells/client/GridGroupCellToggle.mjs +3 -3
- package/cells/client/GridHierarchyCellContainer.js +2 -1
- package/cells/client/GridHierarchyCellToggle.js +2 -1
- package/cells/client/GridHierarchyCellToggle.mjs +15 -15
- package/cells/client/GridRowReorderContainer.js +2 -1
- package/cells/client/GridRowReorderContainer.mjs +3 -3
- package/cells/client/GridSelectionCellContainer.js +2 -1
- package/cells/client/GridSelectionCellInput.js +2 -1
- package/cells/client/GridSelectionCellInput.mjs +3 -3
- package/columnMenu/GridColumnMenuCheckboxFilter.js +2 -1
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +56 -55
- package/columnMenu/GridColumnMenuColumnsChooser.js +9 -0
- package/columnMenu/GridColumnMenuColumnsChooser.mjs +82 -0
- package/columnMenu/GridColumnMenuColumnsList.js +2 -1
- package/columnMenu/GridColumnMenuColumnsList.mjs +16 -16
- package/columnMenu/GridColumnMenuFilter.js +2 -1
- package/columnMenu/GridColumnMenuFilterCell.js +2 -1
- package/columnMenu/GridColumnMenuFilterCell.mjs +3 -3
- package/columnMenu/GridColumnMenuFilterUI.js +2 -1
- package/columnMenu/GridColumnMenuGroup.js +2 -1
- package/columnMenu/GridColumnMenuGroup.mjs +5 -5
- package/columnMenu/GridColumnMenuItem.js +2 -1
- package/columnMenu/GridColumnMenuItem.mjs +2 -2
- package/columnMenu/GridColumnMenuItemContent.js +2 -1
- package/columnMenu/GridColumnMenuItemContent.mjs +4 -4
- package/columnMenu/GridColumnMenuItemGroup.js +2 -1
- package/columnMenu/GridColumnMenuItemGroup.mjs +4 -4
- package/columnMenu/GridColumnMenuSort.js +2 -1
- package/columnMenu/GridColumnMenuSort.mjs +8 -8
- package/columnMenu/GridColumnMenuWrapper.js +2 -1
- package/components/GridContainerElementContainer.js +2 -1
- package/components/GridCustomCellClientContainer.js +2 -1
- package/components/GridCustomCellClientContainer.mjs +2 -2
- package/components/GridDragClue.js +2 -1
- package/components/GridDragClue.mjs +5 -5
- package/components/GridDraggableRowsContainer.js +2 -1
- package/components/GridDropClue.js +2 -1
- package/components/GridDropClue.mjs +5 -5
- package/components/GridElementContainer.js +2 -1
- package/components/GridElementContainer.mjs +6 -6
- package/components/GridLoader.js +9 -0
- package/components/GridLoader.mjs +22 -0
- package/components/PagerContainer.js +2 -1
- package/components/PagerContainer.mjs +4 -4
- package/components/VirtualScrollHeightContainer.js +2 -1
- package/components/VirtualScrollHeightContainer.mjs +2 -2
- package/components/colGroup/GridColGroup.js +2 -1
- package/components/colGroup/GridColGroup.mjs +5 -5
- package/components/icons/reorder-row-svg.js +2 -1
- package/components/icons/reorder-row-svg.mjs +2 -2
- package/components/noRecords/GridNoRecords.js +2 -1
- package/components/noRecords/GridNoRecords.mjs +5 -5
- package/components/noRecords/GridNoRecordsContainer.js +2 -1
- package/components/noRecords/GridNoRecordsContainer.mjs +4 -4
- package/components/table/GridTable.js +2 -1
- package/components/table/GridTable.mjs +4 -4
- package/components/table/GridTableBody.js +2 -1
- package/components/table/GridTableBody.mjs +2 -2
- package/components/table/GridTableScrollable.js +2 -1
- package/components/table/GridTableScrollable.mjs +6 -6
- package/components/utils.js +1 -1
- package/components/utils.mjs +0 -1
- package/constants/index.js +1 -1
- package/constants/index.mjs +0 -1
- package/contextMenu/GridContextMenu.js +2 -1
- package/contextMenu/GridContextMenu.mjs +3 -3
- package/contextMenu/enums.js +1 -1
- package/contextMenu/enums.mjs +0 -1
- package/dist/cdn/js/kendo-react-grid.js +8 -1
- package/drag/ColumnDraggable.js +2 -1
- package/drag/ColumnDraggable.mjs +7 -7
- package/drag/ColumnResize.js +1 -1
- package/drag/ColumnResize.mjs +0 -1
- package/drag/CommonDragLogic.js +1 -1
- package/drag/CommonDragLogic.mjs +0 -1
- package/drag/GroupingIndicator.js +2 -1
- package/drag/GroupingIndicator.mjs +11 -11
- package/filterCommon.js +1 -1
- package/filterCommon.mjs +4 -5
- package/footer/Footer.js +2 -1
- package/footer/FooterCell.js +1 -1
- package/footer/FooterCell.mjs +3 -4
- package/footer/FooterRow.js +1 -1
- package/footer/FooterRow.mjs +6 -7
- package/footer/client/FooterCellContainer.js +2 -1
- package/footer/client/FooterCellContainer.mjs +5 -5
- package/header/FilterRow.js +1 -1
- package/header/FilterRow.mjs +41 -43
- package/header/GridHeaderCell.js +2 -1
- package/header/GridHeaderCell.mjs +4 -4
- package/header/GridHeaderSelectionCell.js +2 -1
- package/header/GroupPanel.js +2 -1
- package/header/Header.js +2 -1
- package/header/HeaderRow.js +1 -1
- package/header/HeaderRow.mjs +33 -35
- package/header/client/GridFilterCellContainer.js +2 -1
- package/header/client/GridFilterCellContainer.mjs +7 -7
- package/header/client/GridFilterCellElementContainer.js +2 -1
- package/header/client/GridHeaderCellContainer.js +2 -1
- package/header/client/GridHeaderCellContainer.mjs +20 -18
- package/header/client/GridHeaderCellElementContainer.js +2 -1
- package/header/client/GridHeaderCellElementContainer.mjs +10 -10
- package/header/client/GridHeaderRowContainer.js +2 -1
- package/header/client/GridHeaderRowReorderCell.js +2 -1
- package/header/client/GridHeaderRowReorderCell.mjs +2 -2
- package/header/client/HeaderCellResizer.js +2 -1
- package/header/client/HeaderRowDraggable.js +2 -1
- package/index.d.mts +211 -5
- package/index.d.ts +211 -5
- package/index.js +1 -1
- package/index.mjs +71 -68
- package/messages/index.js +1 -1
- package/messages/index.mjs +38 -37
- package/messages/messagesMap.js +1 -1
- package/messages/messagesMap.mjs +2 -3
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -3
- package/package.json +13 -12
- package/paging/GridPagerSettings.js +1 -1
- package/paging/GridPagerSettings.mjs +6 -7
- package/rows/GridDetailRow.js +1 -1
- package/rows/GridDetailRow.mjs +2 -3
- package/rows/GridRow.js +2 -1
- package/rows/GridRow.mjs +45 -45
- package/sortCommon.js +8 -0
- package/{interfaces/GridSortSettings.mjs → sortCommon.mjs} +0 -1
- package/utils/_clientModule.js +2 -1
- package/utils/_clientModule.mjs +2 -2
- package/utils/_serverModule.js +1 -1
- package/utils/_serverModule.mjs +0 -1
- package/utils/index.js +1 -1
- package/utils/index.mjs +104 -99
- package/interfaces/GridSortSettings.js +0 -8
package/utils/index.mjs
CHANGED
|
@@ -5,161 +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 { getter as u } from "@progress/kendo-data-query";
|
|
8
|
+
import { gridDefaultProps as u } from "../GridColumn.mjs";
|
|
9
|
+
import { getter as y } from "@progress/kendo-data-query";
|
|
11
10
|
import { findGroupExpand as M, updateLeft as T, updateRight as A, tableKeyboardNavigationTools as b } from "@progress/kendo-react-data-tools";
|
|
12
11
|
import { ServerFragment as D } from "./_serverModule.mjs";
|
|
13
12
|
import { ClientFragment as B } from "./_clientModule.mjs";
|
|
14
|
-
import { GridContextMenuItemNames as
|
|
15
|
-
function
|
|
13
|
+
import { GridContextMenuItemNames as g } from "../contextMenu/enums.mjs";
|
|
14
|
+
function w(e, t) {
|
|
16
15
|
const a = (e != null ? e : "").split(".");
|
|
17
|
-
let
|
|
18
|
-
return a.forEach((
|
|
19
|
-
|
|
20
|
-
}),
|
|
16
|
+
let i = t;
|
|
17
|
+
return a.forEach((d) => {
|
|
18
|
+
i = i ? i[d] : void 0;
|
|
19
|
+
}), i;
|
|
21
20
|
}
|
|
22
|
-
function k(e, t, a,
|
|
23
|
-
var
|
|
24
|
-
let
|
|
21
|
+
function k(e, t, a, i, d, f, r, n, l, o, h = 0, c) {
|
|
22
|
+
var v;
|
|
23
|
+
let C = h;
|
|
25
24
|
for (let s = 0; s < t.length; s++) {
|
|
26
|
-
let
|
|
27
|
-
if (!
|
|
25
|
+
let S;
|
|
26
|
+
if (!d || t[s].value === void 0 || t[s].items === void 0) {
|
|
28
27
|
e[e.length] = {
|
|
29
|
-
dataIndex:
|
|
28
|
+
dataIndex: i.index,
|
|
30
29
|
dataItem: t[s],
|
|
31
30
|
rowType: "data",
|
|
32
31
|
level: h,
|
|
33
32
|
group: c,
|
|
34
33
|
// This is related to detail-row expansion
|
|
35
|
-
expanded: (
|
|
36
|
-
},
|
|
34
|
+
expanded: (v = f ? w(f, t[s]) : o && !!(r != null && r[y(o)(t[s])])) != null ? v : !1
|
|
35
|
+
}, i.index++;
|
|
37
36
|
continue;
|
|
38
37
|
} else {
|
|
39
38
|
let I;
|
|
40
|
-
c != null && c.parents ? I = [{ field: c.field, value: c.value }, ...c.parents] : c ? I = [c] : I = [],
|
|
39
|
+
c != null && c.parents ? I = [{ field: c.field, value: c.value }, ...c.parents] : c ? I = [c] : I = [], S = {
|
|
41
40
|
field: t[s].field,
|
|
42
41
|
value: t[s].value,
|
|
43
42
|
parents: I
|
|
44
43
|
};
|
|
45
44
|
}
|
|
46
|
-
|
|
47
|
-
let
|
|
45
|
+
C = Math.max(C, h + 1);
|
|
46
|
+
let x = !1;
|
|
48
47
|
if (f)
|
|
49
|
-
|
|
48
|
+
x = w(f, t[s]) !== !1;
|
|
50
49
|
else {
|
|
51
|
-
const I = M(n || [],
|
|
52
|
-
I ?
|
|
50
|
+
const I = M(n || [], S);
|
|
51
|
+
I ? x = I.expanded !== !1 : x = l !== !1;
|
|
53
52
|
}
|
|
54
53
|
e[e.length] = {
|
|
55
54
|
dataIndex: -1,
|
|
56
55
|
dataItem: t[s],
|
|
57
56
|
level: h,
|
|
58
|
-
group:
|
|
57
|
+
group: S,
|
|
59
58
|
rowType: "groupHeader",
|
|
60
|
-
expanded:
|
|
61
|
-
},
|
|
59
|
+
expanded: x
|
|
60
|
+
}, x && (S.expanded = x, C = Math.max(
|
|
62
61
|
k(
|
|
63
62
|
e,
|
|
64
63
|
t[s].items,
|
|
65
64
|
a,
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
i,
|
|
66
|
+
d,
|
|
68
67
|
f,
|
|
69
68
|
r,
|
|
70
69
|
n,
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
l,
|
|
71
|
+
o,
|
|
73
72
|
h + 1,
|
|
74
|
-
|
|
73
|
+
S
|
|
75
74
|
),
|
|
76
|
-
|
|
77
|
-
)), (a === "always" ||
|
|
75
|
+
C
|
|
76
|
+
)), (a === "always" || x && a === "visible") && (e[e.length] = {
|
|
78
77
|
dataIndex: -1,
|
|
79
78
|
dataItem: t[s],
|
|
80
79
|
rowType: "groupFooter",
|
|
81
80
|
level: h,
|
|
82
|
-
expanded:
|
|
81
|
+
expanded: x
|
|
83
82
|
});
|
|
84
83
|
}
|
|
85
|
-
return
|
|
84
|
+
return C;
|
|
86
85
|
}
|
|
87
86
|
const L = (e, t) => typeof e.colSpan == "function" ? e.colSpan({ dataItem: t, column: e }) : e.colSpan || 1;
|
|
88
87
|
function q(e, t) {
|
|
89
88
|
const a = [[]];
|
|
90
|
-
let
|
|
89
|
+
let i = 0;
|
|
91
90
|
for (let r = e.length - 1; r >= 0; r--)
|
|
92
|
-
|
|
93
|
-
(n,
|
|
91
|
+
i = Math.max(i, e[r].depth), e[r].headerColSpan = e[r].headerColSpan || 1, e[r].children.length > 0 && (e[r].headerColSpan = e[r].children.reduce(
|
|
92
|
+
(n, l) => l.hidden ? n : n + l.headerColSpan,
|
|
94
93
|
0
|
|
95
94
|
));
|
|
96
|
-
const
|
|
95
|
+
const d = [];
|
|
97
96
|
let f = 1;
|
|
98
97
|
return e.forEach((r, n) => {
|
|
99
98
|
a[r.depth] = a[r.depth] || [];
|
|
100
|
-
let
|
|
101
|
-
a[r.depth].length === 0 && (f <= 1 ? f = 1 + (r.children.length > 0 ? 0 :
|
|
102
|
-
for (let
|
|
103
|
-
o
|
|
99
|
+
let l = !1;
|
|
100
|
+
a[r.depth].length === 0 && (f <= 1 ? f = 1 + (r.children.length > 0 ? 0 : i - r.depth) : (f--, l = !0)), r.rowSpan = 1 + (r.children.length > 0 ? 0 : i - r.depth), r.kFirst = l, r.index = a[r.depth].length, a[r.depth].push(n), r.ariaColumnIndex = d[r.depth] ? d[r.depth] + 1 : 1;
|
|
101
|
+
for (let o = r.depth; o < r.depth + r.rowSpan; o++)
|
|
102
|
+
d[o] = (d[o] || 0) + r.headerColSpan;
|
|
104
103
|
}), T(a, e, t), A(a, e, t), a;
|
|
105
104
|
}
|
|
106
|
-
function
|
|
107
|
-
const
|
|
105
|
+
function E(e, t, a, i = 0) {
|
|
106
|
+
const d = [];
|
|
108
107
|
if (!e)
|
|
109
108
|
return [];
|
|
110
|
-
e && e.length === void 0 && (e = [e]), e.filter((n) => n && n.props ? !n.props.hidden : !n.hidden).forEach((n,
|
|
109
|
+
e && e.length === void 0 && (e = [e]), e.filter((n) => n && n.props ? !n.props.hidden : !n.hidden).forEach((n, l) => {
|
|
111
110
|
n = n.props ? n.props : n;
|
|
112
|
-
const
|
|
111
|
+
const o = t[l] || null, h = E(
|
|
113
112
|
n.children,
|
|
114
|
-
|
|
113
|
+
o && o.children || [],
|
|
115
114
|
a,
|
|
116
|
-
|
|
115
|
+
i + 1
|
|
117
116
|
);
|
|
118
|
-
|
|
117
|
+
d.push(
|
|
119
118
|
Object.assign(
|
|
120
|
-
{ depth:
|
|
121
|
-
|
|
119
|
+
{ depth: i },
|
|
120
|
+
u,
|
|
122
121
|
h.length ? { cell: () => null, filterCell: () => null } : {},
|
|
123
|
-
|
|
122
|
+
o ? { width: o.width, orderIndex: o.orderIndex } : {},
|
|
124
123
|
n,
|
|
125
124
|
{
|
|
126
125
|
id: n.id ? n.id : b.generateNavigatableId(`${a.prevId++}`, a.idPrefix, "column"),
|
|
127
|
-
declarationIndex:
|
|
126
|
+
declarationIndex: d.length,
|
|
128
127
|
children: h,
|
|
129
128
|
headerColSpan: n.headerColSpan,
|
|
130
129
|
rowSpan: 0,
|
|
131
130
|
columnType: n.columnType || "data",
|
|
132
131
|
colSpan: n.colSpan || 1,
|
|
133
132
|
isAccessible: !0,
|
|
134
|
-
left: n.lockedColumn ?
|
|
135
|
-
right: n.lockedColumn ?
|
|
133
|
+
left: n.lockedColumn ? o && Math.floor(o.left) : null,
|
|
134
|
+
right: n.lockedColumn ? o && Math.floor(o.right) : null,
|
|
135
|
+
rowSpannable: n.rowSpannable
|
|
136
136
|
}
|
|
137
137
|
)
|
|
138
138
|
);
|
|
139
139
|
});
|
|
140
|
-
const r = (n,
|
|
141
|
-
if (
|
|
142
|
-
const n = [],
|
|
143
|
-
c.parentIndex = h,
|
|
140
|
+
const r = (n, l) => n.orderIndex === l.orderIndex ? n.declarationIndex - l.declarationIndex : (n.orderIndex || 0) - (l.orderIndex || 0);
|
|
141
|
+
if (d.sort(r), i === 0) {
|
|
142
|
+
const n = [], l = (o, h) => o.forEach((c) => {
|
|
143
|
+
c.parentIndex = h, l(c.children, n.push(c) - 1);
|
|
144
144
|
});
|
|
145
|
-
return
|
|
145
|
+
return l(d, -1), n;
|
|
146
146
|
}
|
|
147
|
-
return
|
|
147
|
+
return d;
|
|
148
148
|
}
|
|
149
|
-
function z(e, t, a,
|
|
150
|
-
let
|
|
151
|
-
Array.isArray(e) ?
|
|
149
|
+
function z(e, t, a, i) {
|
|
150
|
+
let d = [];
|
|
151
|
+
Array.isArray(e) ? d = e : e && (d = e.data);
|
|
152
152
|
const f = [];
|
|
153
|
-
if (
|
|
154
|
-
let r =
|
|
153
|
+
if (d.length > 0) {
|
|
154
|
+
let r = d[0];
|
|
155
155
|
if (t)
|
|
156
|
-
for (let
|
|
156
|
+
for (let l = 0; l < t.length; l++)
|
|
157
157
|
r = r.items && r.items[0];
|
|
158
|
-
Object.getOwnPropertyNames(r).forEach((
|
|
159
|
-
|
|
158
|
+
Object.getOwnPropertyNames(r).forEach((l) => {
|
|
159
|
+
l !== a.column && f.push(
|
|
160
160
|
Object.assign(
|
|
161
161
|
{
|
|
162
|
-
id: b.generateNavigatableId(`${
|
|
162
|
+
id: b.generateNavigatableId(`${i.prevId++}`, i.idPrefix, "column"),
|
|
163
163
|
declarationIndex: -1,
|
|
164
164
|
parentIndex: -1,
|
|
165
165
|
depth: 0,
|
|
@@ -175,15 +175,15 @@ function z(e, t, a, l) {
|
|
|
175
175
|
ariaColumnIndex: 0,
|
|
176
176
|
isAccessible: !0
|
|
177
177
|
},
|
|
178
|
-
|
|
179
|
-
{ field:
|
|
178
|
+
u,
|
|
179
|
+
{ field: l }
|
|
180
180
|
)
|
|
181
181
|
);
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
return f;
|
|
185
185
|
}
|
|
186
|
-
const
|
|
186
|
+
const F = (e, t) => {
|
|
187
187
|
let a = e[t.parentIndex];
|
|
188
188
|
for (; a; ) {
|
|
189
189
|
if (a.footerCell)
|
|
@@ -191,32 +191,32 @@ const E = (e, t) => {
|
|
|
191
191
|
a = e[a.parentIndex];
|
|
192
192
|
}
|
|
193
193
|
return !1;
|
|
194
|
-
}, V = (e) => e.filter((t) =>
|
|
195
|
-
const { declarationIndex: a, parentIndex:
|
|
196
|
-
return
|
|
197
|
-
children:
|
|
194
|
+
}, V = (e) => e.filter((t) => F(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, R = (e) => (e.sort((t, a) => t.declarationIndex - a.declarationIndex), e.map((t) => {
|
|
195
|
+
const { declarationIndex: a, parentIndex: i, depth: d, headerColSpan: f, rowSpan: r, index: n, kFirst: l, children: o, ...h } = t;
|
|
196
|
+
return o.length ? {
|
|
197
|
+
children: R(o),
|
|
198
198
|
...h
|
|
199
199
|
} : h;
|
|
200
|
-
})),
|
|
201
|
-
const { filterCell: t, headerCell: a, footerCell:
|
|
200
|
+
})), j = (e) => {
|
|
201
|
+
const { filterCell: t, headerCell: a, footerCell: i, cells: d, cell: f, rowSpannable: r, ...n } = e;
|
|
202
202
|
return e.children.length ? {
|
|
203
|
-
...
|
|
204
|
-
children: e.children.map(
|
|
205
|
-
} :
|
|
203
|
+
...n,
|
|
204
|
+
children: e.children.map(j)
|
|
205
|
+
} : n;
|
|
206
206
|
}, K = typeof window != "undefined" && /Firefox/.test(window.navigator.userAgent), Q = 17895697, U = (e) => {
|
|
207
207
|
let t = [];
|
|
208
|
-
return e.sortable && (t = t.concat([
|
|
208
|
+
return e.sortable && (t = t.concat([g.sortAsc, g.sortDesc])), t;
|
|
209
209
|
}, X = (e) => {
|
|
210
210
|
let t = [];
|
|
211
211
|
return e.clipboard && (t = t.concat([
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
])), e.editable && (t.length && (t = t.concat([
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
])), e.selectable && (t.length && (t = t.concat([
|
|
212
|
+
g.copySelection,
|
|
213
|
+
g.copySelectionNoHeaders,
|
|
214
|
+
g.paste
|
|
215
|
+
])), e.editable && (t.length && (t = t.concat([g.separator])), t = t.concat([
|
|
216
|
+
g.create,
|
|
217
|
+
g.edit,
|
|
218
|
+
g.delete
|
|
219
|
+
])), e.selectable && (t.length && (t = t.concat([g.separator])), t = t.concat([g.select])), e.reorderable && (t.length && (t = t.concat([g.separator])), t = t.concat([g.reorderRow])), t;
|
|
220
220
|
}, Y = (e, t) => {
|
|
221
221
|
if (!(!e && !t))
|
|
222
222
|
return t ? e ? {
|
|
@@ -239,7 +239,7 @@ const E = (e, t) => {
|
|
|
239
239
|
...t.edit || {}
|
|
240
240
|
}
|
|
241
241
|
} : t : e;
|
|
242
|
-
}, Z = () => D === B, _ = (e) => !!(e && e.$$typeof === Symbol.for("react.client.reference")),
|
|
242
|
+
}, Z = () => D === B, _ = (e) => !!(e && e.$$typeof === Symbol.for("react.client.reference")), G = (e) => ({
|
|
243
243
|
id: e.id,
|
|
244
244
|
ariaColumnIndex: e.ariaColumnIndex,
|
|
245
245
|
isSelected: e.isSelected,
|
|
@@ -265,25 +265,30 @@ const E = (e, t) => {
|
|
|
265
265
|
rowDataIndex: e.rowDataIndex,
|
|
266
266
|
columnPosition: e.columnPosition,
|
|
267
267
|
group: e.group
|
|
268
|
-
})
|
|
268
|
+
}), P = (e) => {
|
|
269
|
+
var i, d;
|
|
270
|
+
const t = typeof e == "object" ? (i = e.enabled) != null ? i : !0 : e != null ? e : !1, a = typeof e == "object" ? (d = e.valueGetter) != null ? d : (f, r) => y(r)(f) : (f, r) => y(r)(f);
|
|
271
|
+
return { enabled: t, valueGetter: a };
|
|
272
|
+
};
|
|
269
273
|
export {
|
|
270
274
|
z as autoGenerateColumns,
|
|
271
|
-
|
|
275
|
+
j as clientColumn,
|
|
272
276
|
K as firefox,
|
|
273
277
|
Q as firefoxMaxHeight,
|
|
274
278
|
k as flatData,
|
|
275
279
|
V as footerColumns,
|
|
276
|
-
|
|
280
|
+
G as getClientCellProps,
|
|
277
281
|
L as getColSpan,
|
|
278
282
|
W as getColumnWidth,
|
|
279
283
|
X as getDefaultBodyContextMenuItems,
|
|
280
284
|
U as getDefaultHeadContextMenuItems,
|
|
281
|
-
|
|
285
|
+
w as getNestedValue,
|
|
286
|
+
P as getRowSpanOptions,
|
|
282
287
|
Z as isClient,
|
|
283
288
|
_ as isClientReference,
|
|
284
289
|
J as isSorted,
|
|
285
290
|
q as mapColumns,
|
|
286
|
-
|
|
291
|
+
E as readColumns,
|
|
287
292
|
Y as resolveCells,
|
|
288
|
-
|
|
293
|
+
R as sanitizeColumns
|
|
289
294
|
};
|
|
@@ -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 client";"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;
|