@progress/kendo-react-grid 9.4.0-develop.19 → 9.4.0-develop.2
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 +391 -425
- package/GridColumn.js +1 -1
- package/GridColumn.mjs +5 -4
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +324 -345
- package/GridState.js +1 -2
- package/GridState.mjs +70 -76
- 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 +3 -3
- 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/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 +4 -133
- package/index.d.ts +4 -133
- package/index.js +1 -1
- package/index.mjs +45 -46
- 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 +12 -13
- 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 +99 -104
- package/GridSearchBox.js +0 -8
- package/GridSearchBox.mjs +0 -35
- package/components/GridLoader.js +0 -9
- package/components/GridLoader.mjs +0 -22
- package/sortCommon.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 {
|
|
8
|
+
"use client";
|
|
9
|
+
import { gridDefaultProps as v } from "../GridColumn.mjs";
|
|
10
|
+
import { getter as u } from "@progress/kendo-data-query";
|
|
10
11
|
import { findGroupExpand as M, updateLeft as T, updateRight as A, tableKeyboardNavigationTools as b } from "@progress/kendo-react-data-tools";
|
|
11
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 k(e, t, a,
|
|
22
|
-
var
|
|
23
|
-
let
|
|
22
|
+
function k(e, t, a, l, o, f, r, n, i, d, h = 0, c) {
|
|
23
|
+
var w;
|
|
24
|
+
let S = h;
|
|
24
25
|
for (let s = 0; s < t.length; s++) {
|
|
25
|
-
let
|
|
26
|
-
if (!
|
|
26
|
+
let C;
|
|
27
|
+
if (!o || t[s].value === void 0 || t[s].items === void 0) {
|
|
27
28
|
e[e.length] = {
|
|
28
|
-
dataIndex:
|
|
29
|
+
dataIndex: l.index,
|
|
29
30
|
dataItem: t[s],
|
|
30
31
|
rowType: "data",
|
|
31
32
|
level: h,
|
|
32
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
|
-
c != null && c.parents ? I = [{ field: c.field, value: c.value }, ...c.parents] : c ? I = [c] : I = [],
|
|
40
|
+
c != null && c.parents ? I = [{ field: c.field, value: c.value }, ...c.parents] : c ? I = [c] : I = [], C = {
|
|
40
41
|
field: t[s].field,
|
|
41
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
56
|
dataItem: t[s],
|
|
56
57
|
level: h,
|
|
57
|
-
group:
|
|
58
|
+
group: C,
|
|
58
59
|
rowType: "groupHeader",
|
|
59
|
-
expanded:
|
|
60
|
-
},
|
|
60
|
+
expanded: g
|
|
61
|
+
}, g && (C.expanded = g, S = Math.max(
|
|
61
62
|
k(
|
|
62
63
|
e,
|
|
63
64
|
t[s].items,
|
|
64
65
|
a,
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
l,
|
|
67
|
+
o,
|
|
67
68
|
f,
|
|
68
69
|
r,
|
|
69
70
|
n,
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
i,
|
|
72
|
+
d,
|
|
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
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
87
|
const L = (e, t) => typeof e.colSpan == "function" ? e.colSpan({ dataItem: t, column: e }) : e.colSpan || 1;
|
|
87
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
|
-
d
|
|
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;
|
|
103
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
|
-
c.parentIndex = h,
|
|
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
|
-
function z(e, t, a,
|
|
150
|
-
let
|
|
151
|
-
Array.isArray(e) ?
|
|
149
|
+
function z(e, t, a, l) {
|
|
150
|
+
let o = [];
|
|
151
|
+
Array.isArray(e) ? o = e : e && (o = e.data);
|
|
152
152
|
const f = [];
|
|
153
|
-
if (
|
|
154
|
-
let r =
|
|
153
|
+
if (o.length > 0) {
|
|
154
|
+
let r = o[0];
|
|
155
155
|
if (t)
|
|
156
|
-
for (let
|
|
156
|
+
for (let i = 0; i < t.length; i++)
|
|
157
157
|
r = r.items && r.items[0];
|
|
158
|
-
Object.getOwnPropertyNames(r).forEach((
|
|
159
|
-
|
|
158
|
+
Object.getOwnPropertyNames(r).forEach((i) => {
|
|
159
|
+
i !== a.column && f.push(
|
|
160
160
|
Object.assign(
|
|
161
161
|
{
|
|
162
|
-
id: b.generateNavigatableId(`${
|
|
162
|
+
id: b.generateNavigatableId(`${l.prevId++}`, l.idPrefix, "column"),
|
|
163
163
|
declarationIndex: -1,
|
|
164
164
|
parentIndex: -1,
|
|
165
165
|
depth: 0,
|
|
@@ -175,15 +175,15 @@ function z(e, t, a, i) {
|
|
|
175
175
|
ariaColumnIndex: 0,
|
|
176
176
|
isAccessible: !0
|
|
177
177
|
},
|
|
178
|
-
|
|
179
|
-
{ field:
|
|
178
|
+
v,
|
|
179
|
+
{ field: i }
|
|
180
180
|
)
|
|
181
181
|
);
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
return f;
|
|
185
185
|
}
|
|
186
|
-
const
|
|
186
|
+
const E = (e, t) => {
|
|
187
187
|
let a = e[t.parentIndex];
|
|
188
188
|
for (; a; ) {
|
|
189
189
|
if (a.footerCell)
|
|
@@ -191,32 +191,32 @@ const F = (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) => 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),
|
|
198
198
|
...h
|
|
199
199
|
} : h;
|
|
200
|
-
})),
|
|
201
|
-
const { filterCell: t, headerCell: a, footerCell:
|
|
200
|
+
})), m = (e) => {
|
|
201
|
+
const { filterCell: t, headerCell: a, footerCell: l, cells: o, cell: f, ...r } = e;
|
|
202
202
|
return e.children.length ? {
|
|
203
|
-
...
|
|
204
|
-
children: e.children.map(
|
|
205
|
-
} :
|
|
203
|
+
...r,
|
|
204
|
+
children: e.children.map(m)
|
|
205
|
+
} : r;
|
|
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([x.sortAsc, x.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
|
+
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
220
|
}, Y = (e, t) => {
|
|
221
221
|
if (!(!e && !t))
|
|
222
222
|
return t ? e ? {
|
|
@@ -239,7 +239,7 @@ const F = (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")), P = (e) => ({
|
|
243
243
|
id: e.id,
|
|
244
244
|
ariaColumnIndex: e.ariaColumnIndex,
|
|
245
245
|
isSelected: e.isSelected,
|
|
@@ -265,30 +265,25 @@ const F = (e, t) => {
|
|
|
265
265
|
rowDataIndex: e.rowDataIndex,
|
|
266
266
|
columnPosition: e.columnPosition,
|
|
267
267
|
group: e.group
|
|
268
|
-
})
|
|
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
|
-
};
|
|
268
|
+
});
|
|
273
269
|
export {
|
|
274
270
|
z as autoGenerateColumns,
|
|
275
|
-
|
|
271
|
+
m as clientColumn,
|
|
276
272
|
K as firefox,
|
|
277
273
|
Q as firefoxMaxHeight,
|
|
278
274
|
k as flatData,
|
|
279
275
|
V as footerColumns,
|
|
280
|
-
|
|
276
|
+
P as getClientCellProps,
|
|
281
277
|
L as getColSpan,
|
|
282
278
|
W as getColumnWidth,
|
|
283
279
|
X as getDefaultBodyContextMenuItems,
|
|
284
280
|
U as getDefaultHeadContextMenuItems,
|
|
285
|
-
|
|
286
|
-
P as getRowSpanOptions,
|
|
281
|
+
y as getNestedValue,
|
|
287
282
|
Z as isClient,
|
|
288
283
|
_ as isClientReference,
|
|
289
284
|
J as isSorted,
|
|
290
285
|
q as mapColumns,
|
|
291
|
-
|
|
286
|
+
p as readColumns,
|
|
292
287
|
Y as resolveCells,
|
|
293
|
-
|
|
288
|
+
F as sanitizeColumns
|
|
294
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
|
-
};
|
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;
|