@progress/kendo-react-grid 9.4.0-develop.6 → 9.4.0-develop.7
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/GridColumn.js +1 -1
- package/GridColumn.mjs +4 -5
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +120 -119
- package/GridState.js +2 -1
- package/GridToolbar.js +1 -1
- package/GridToolbar.mjs +5 -6
- package/GridWatermarkOverlay.js +2 -1
- package/GridWatermarkOverlay.mjs +2 -2
- 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 +15 -17
- 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/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 +7 -7
- 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/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 +1 -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 +12 -12
- 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/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 +6 -0
- package/index.d.ts +6 -0
- package/index.js +1 -1
- package/index.mjs +13 -14
- package/interfaces/GridSortSettings.js +1 -1
- package/interfaces/GridSortSettings.mjs +0 -1
- package/messages/index.js +1 -1
- package/messages/index.mjs +0 -1
- 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 +12 -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/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 +38 -39
package/GridComponent.mjs
CHANGED
|
@@ -5,58 +5,57 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
import * as l from "react";
|
|
10
|
-
import { validatePackage as
|
|
11
|
-
import { process as
|
|
12
|
-
import { getDetailExpandableOptions as
|
|
13
|
-
import { GridSelectionCell as
|
|
14
|
-
import { GridHierarchyCell as
|
|
15
|
-
import { GridEditCell as
|
|
16
|
-
import { Header as
|
|
17
|
-
import { HeaderRow as
|
|
18
|
-
import { FilterRow as
|
|
19
|
-
import { GroupPanel as
|
|
20
|
-
import { Footer as
|
|
21
|
-
import { getColumnWidth as p, isSorted as Ne, flatData as
|
|
22
|
-
import { GridCell as
|
|
9
|
+
import { validatePackage as dt, uGrid as ct, getter as N, classNames as m, canUseDOM as st } from "@progress/kendo-react-common";
|
|
10
|
+
import { process as mt } from "@progress/kendo-data-query";
|
|
11
|
+
import { getDetailExpandableOptions as ut, getGroupExpandableOptions as ft, getSelectionOptions as gt, tableKeyboardNavigationTools as q, Pager as bt, tableKeyboardNavigationBodyAttributes as yt, tableKeyboardNavigationScopeAttributes as ke, tableColumnsVirtualization as Ct } from "@progress/kendo-react-data-tools";
|
|
12
|
+
import { GridSelectionCell as ht } from "./cells/GridSelectionCell.mjs";
|
|
13
|
+
import { GridHierarchyCell as wt } from "./cells/GridHierarchyCell.mjs";
|
|
14
|
+
import { GridEditCell as Et } from "./cells/GridEditCell.mjs";
|
|
15
|
+
import { Header as It } from "./header/Header.mjs";
|
|
16
|
+
import { HeaderRow as Rt } from "./header/HeaderRow.mjs";
|
|
17
|
+
import { FilterRow as xt } from "./header/FilterRow.mjs";
|
|
18
|
+
import { GroupPanel as vt } from "./header/GroupPanel.mjs";
|
|
19
|
+
import { Footer as St } from "./footer/Footer.mjs";
|
|
20
|
+
import { getColumnWidth as p, isSorted as Ne, flatData as Gt, autoGenerateColumns as kt, mapColumns as Nt, clientColumn as Ft, getNestedValue as Fe, getColSpan as De, resolveCells as Dt, isClientReference as Tt, sanitizeColumns as Kt, readColumns as Ht } from "./utils/index.mjs";
|
|
21
|
+
import { GridCell as At } from "./cells/GridCell.mjs";
|
|
23
22
|
import { GridGroupCell as Te } from "./cells/GridGroupCell.mjs";
|
|
24
|
-
import { GridRow as
|
|
25
|
-
import { GridHeaderSelectionCell as
|
|
23
|
+
import { GridRow as Pt } from "./rows/GridRow.mjs";
|
|
24
|
+
import { GridHeaderSelectionCell as Bt } from "./header/GridHeaderSelectionCell.mjs";
|
|
26
25
|
import { GridNoRecords as Ke } from "./components/noRecords/GridNoRecords.mjs";
|
|
27
26
|
import { operators as He } from "./filterCommon.mjs";
|
|
28
|
-
import { FooterRow as
|
|
29
|
-
import { normalize as
|
|
30
|
-
import { packageMetadata as
|
|
31
|
-
import { GridDetailCell as
|
|
32
|
-
import { GridDetailHierarchyCell as
|
|
27
|
+
import { FooterRow as Vt } from "./footer/FooterRow.mjs";
|
|
28
|
+
import { normalize as zt } from "./paging/GridPagerSettings.mjs";
|
|
29
|
+
import { packageMetadata as Ot } from "./package-metadata.mjs";
|
|
30
|
+
import { GridDetailCell as _t } from "./cells/GridDetailCell.mjs";
|
|
31
|
+
import { GridDetailHierarchyCell as Lt } from "./cells/GridDetailHierarchyCell.mjs";
|
|
33
32
|
import { GridNoRecordsContainer as Ae } from "./components/noRecords/GridNoRecordsContainer.mjs";
|
|
34
|
-
import { GridWatermarkOverlay as
|
|
33
|
+
import { GridWatermarkOverlay as Mt } from "./GridWatermarkOverlay.mjs";
|
|
35
34
|
import { GridClientWrapper as Pe } from "./GridClientWrapper.mjs";
|
|
36
|
-
import { GridColGroup as
|
|
37
|
-
import { GridTable as
|
|
35
|
+
import { GridColGroup as Wt } from "./components/colGroup/GridColGroup.mjs";
|
|
36
|
+
import { GridTable as jt } from "./components/table/GridTable.mjs";
|
|
38
37
|
import { GridDropClue as Be } from "./components/GridDropClue.mjs";
|
|
39
38
|
import { GridDragClue as Ve } from "./components/GridDragClue.mjs";
|
|
40
39
|
import { GridTableBody as ze } from "./components/table/GridTableBody.mjs";
|
|
41
|
-
import { PagerContainer as
|
|
42
|
-
import { GridTableScrollable as
|
|
40
|
+
import { PagerContainer as $t } from "./components/PagerContainer.mjs";
|
|
41
|
+
import { GridTableScrollable as Ut } from "./components/table/GridTableScrollable.mjs";
|
|
43
42
|
import { GridElementContainer as Oe } from "./components/GridElementContainer.mjs";
|
|
44
|
-
import { GridContainerElementContainer as
|
|
45
|
-
import { VirtualScrollHeightContainer as
|
|
46
|
-
import { LocalizationService as
|
|
47
|
-
import { gridAriaLabel as _e, messages as
|
|
48
|
-
import { VirtualScrollFixed as
|
|
49
|
-
import { VirtualScroll as
|
|
50
|
-
import { GridCustomCellClientContainer as
|
|
51
|
-
import { GridReorderableRowsContainer as
|
|
52
|
-
import { GridRowReorderCell as
|
|
53
|
-
import { GridHeaderRowReorderCell as
|
|
54
|
-
const
|
|
43
|
+
import { GridContainerElementContainer as Jt } from "./components/GridContainerElementContainer.mjs";
|
|
44
|
+
import { VirtualScrollHeightContainer as Qt } from "./components/VirtualScrollHeightContainer.mjs";
|
|
45
|
+
import { LocalizationService as Xt, IntlService as Yt } from "@progress/kendo-react-intl";
|
|
46
|
+
import { gridAriaLabel as _e, messages as Zt } from "./messages/index.mjs";
|
|
47
|
+
import { VirtualScrollFixed as j } from "./VirtualScrollFixed.mjs";
|
|
48
|
+
import { VirtualScroll as qt } from "./VirtualScroll.mjs";
|
|
49
|
+
import { GridCustomCellClientContainer as pt } from "./components/GridCustomCellClientContainer.mjs";
|
|
50
|
+
import { GridReorderableRowsContainer as el } from "./components/GridDraggableRowsContainer.mjs";
|
|
51
|
+
import { GridRowReorderCell as tl } from "./cells/GridRowReorderCell.mjs";
|
|
52
|
+
import { GridHeaderRowReorderCell as ll } from "./header/client/GridHeaderRowReorderCell.mjs";
|
|
53
|
+
const al = l.forwardRef((e, ee) => {
|
|
55
54
|
var we, Ee, Ie, Re, xe, ve, Se;
|
|
56
55
|
const R = e.id + "-role-element-id", x = e.navigatable ? R : "";
|
|
57
|
-
|
|
56
|
+
dt(Ot);
|
|
58
57
|
const Le = (t, r, o, d, i, a, c) => {
|
|
59
|
-
const f = [], g =
|
|
58
|
+
const f = [], g = Gt(
|
|
60
59
|
f,
|
|
61
60
|
h,
|
|
62
61
|
t,
|
|
@@ -65,19 +64,19 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
65
64
|
d,
|
|
66
65
|
i,
|
|
67
66
|
a,
|
|
68
|
-
|
|
67
|
+
Ze.defaultExpand,
|
|
69
68
|
c
|
|
70
69
|
);
|
|
71
70
|
return { flattedData: f, resolvedGroupsCount: g };
|
|
72
71
|
}, Me = (t) => {
|
|
73
72
|
const r = t.filter(
|
|
74
73
|
(i) => i && i.type && i.type.displayName === "KendoReactGridColumn"
|
|
75
|
-
), o = u.current.filter((i) => i.declarationIndex >= 0 && i.parentIndex === -1), d =
|
|
76
|
-
return
|
|
77
|
-
}, We = (t) => t.filter((r) =>
|
|
74
|
+
), o = u.current.filter((i) => i.declarationIndex >= 0 && i.parentIndex === -1), d = Kt(o);
|
|
75
|
+
return Ht(r, d, { prevId: 0, idPrefix: x });
|
|
76
|
+
}, We = (t) => t.filter((r) => st && r && r.media ? window.matchMedia(r.media).matches : r), je = (t, r) => {
|
|
78
77
|
var i;
|
|
79
78
|
const o = Me(t), d = We(o);
|
|
80
|
-
u.current = d, u.current.length === 0 && (u.current =
|
|
79
|
+
u.current = d, u.current.length === 0 && (u.current = kt(
|
|
81
80
|
h,
|
|
82
81
|
e.group,
|
|
83
82
|
{
|
|
@@ -87,13 +86,13 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
87
86
|
prevId: 0,
|
|
88
87
|
idPrefix: x
|
|
89
88
|
}
|
|
90
|
-
)), $e(u.current, r), v =
|
|
89
|
+
)), $e(u.current, r), v = Nt(u.current, !0), le.current = u.current.map(Ft);
|
|
91
90
|
}, $e = (t, r) => {
|
|
92
91
|
var i;
|
|
93
92
|
t.filter((a) => e.selectedField && a.field === e.selectedField || a.columnType === "checkbox").forEach((a) => {
|
|
94
|
-
a.width = a.width || "50px", a.cell = a.cell ||
|
|
93
|
+
a.width = a.width || "50px", a.cell = a.cell || ht, a._type = "edit", a.headerCell = a.headerCell || Bt;
|
|
95
94
|
}), G !== void 0 && t.filter((a) => a.columnType === "reorder").forEach((a) => {
|
|
96
|
-
a.width = a.width || "50px", a.cell = a.cell ||
|
|
95
|
+
a.width = a.width || "50px", a.cell = a.cell || tl, a.headerCell = a.headerCell || ll, a.sortable = !1, a.filterable = !1, a.editable = !1;
|
|
97
96
|
});
|
|
98
97
|
const o = {
|
|
99
98
|
id: "",
|
|
@@ -119,7 +118,7 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
119
118
|
(e.expandField || T.enabled) && e.detail && (t.unshift({
|
|
120
119
|
...o,
|
|
121
120
|
_type: "expand",
|
|
122
|
-
cell:
|
|
121
|
+
cell: wt,
|
|
123
122
|
field: (i = T.column) != null ? i : e.expandField,
|
|
124
123
|
headerClassName: m(s.hierarchyCell({}))
|
|
125
124
|
}), d++);
|
|
@@ -134,18 +133,18 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
134
133
|
t.slice(d).forEach((a) => a.parentIndex >= 0 && (a.parentIndex += d));
|
|
135
134
|
}, te = () => h.length === e.total, Ue = () => {
|
|
136
135
|
const { rowHeight: t, detailRowHeight: r, detail: o, expandField: d } = e, i = te(), a = t !== void 0 && t > 0, c = r !== void 0 && r > 0;
|
|
137
|
-
return !a || D && !i || !!(o && d) && (!c || !i) ?
|
|
138
|
-
},
|
|
136
|
+
return !a || D && !i || !!(o && d) && (!c || !i) ? qt : j;
|
|
137
|
+
}, $ = () => e.isClient ? u : le, Je = (t, r, o, d, i, a) => {
|
|
139
138
|
let c = De(t, r);
|
|
140
139
|
if (e.columnVirtualization && t.colSpan === 1)
|
|
141
140
|
return { colSpan: a, colsToSkip: i };
|
|
142
141
|
let f = o.length - 1 === d, g = o.length - d;
|
|
143
142
|
return e.columnVirtualization && (f = y.length - 1 === d, g = y.length - d), c > 1 && !f ? i = c - 1 : c = 1, g <= c && !f && (c = g), { colSpan: c, colsToSkip: i };
|
|
144
143
|
};
|
|
145
|
-
let
|
|
144
|
+
let U, b = [], V;
|
|
146
145
|
const u = e.columnsRef || { current: [] }, le = { current: [] };
|
|
147
146
|
let v = [[]];
|
|
148
|
-
const Qe = e.scrollLeftRef || { current: 0 },
|
|
147
|
+
const Qe = e.scrollLeftRef || { current: 0 }, z = e.localization || new Xt(), Xe = e.intl || new Yt("en"), S = e.unstyled, s = S && S.uGrid ? S.uGrid : ct, G = typeof e.rowReorderable == "object" ? e.rowReorderable.enabled : e.rowReorderable, F = e.autoProcessData === !0 ? {
|
|
149
148
|
group: !0,
|
|
150
149
|
sort: !0,
|
|
151
150
|
filter: !0,
|
|
@@ -153,7 +152,7 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
153
152
|
} : e.autoProcessData;
|
|
154
153
|
let h, I;
|
|
155
154
|
if (Array.isArray(e.data) ? (h = e.data, I = (we = e.total) != null ? we : h.length) : (h = ((Ee = e.data) == null ? void 0 : Ee.data) || [], I = (xe = (Re = e.total) != null ? Re : (Ie = e.data) == null ? void 0 : Ie.total) != null ? xe : h.length), F) {
|
|
156
|
-
const { data: t, total: r } =
|
|
155
|
+
const { data: t, total: r } = mt(h, {
|
|
157
156
|
group: F.group ? e.group : void 0,
|
|
158
157
|
sort: F.sort ? e.sort : void 0,
|
|
159
158
|
filter: F.filter ? e.filter : void 0,
|
|
@@ -164,10 +163,10 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
164
163
|
});
|
|
165
164
|
h = t, I = (ve = e.total) != null ? ve : r;
|
|
166
165
|
}
|
|
167
|
-
const { size: w = "medium" } = e,
|
|
166
|
+
const { size: w = "medium" } = e, Ye = typeof e.groupable == "object" && e.groupable.footer || "none", k = e.scrollable === "virtual", D = e.groupable === !0 || typeof e.groupable == "object" && e.groupable.enabled !== !1, T = ut(!!e.detail), Ze = ft(
|
|
168
167
|
typeof e.groupable == "object" && e.groupable.enabled !== !1 ? e.groupable.expandable : e.groupable
|
|
169
|
-
), { resolvedGroupsCount:
|
|
170
|
-
|
|
168
|
+
), { resolvedGroupsCount: qe, flattedData: pe } = Le(
|
|
169
|
+
Ye,
|
|
171
170
|
e.skip || 0,
|
|
172
171
|
e.group,
|
|
173
172
|
e.expandField,
|
|
@@ -175,24 +174,24 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
175
174
|
e.groupExpand,
|
|
176
175
|
e.dataItemKey
|
|
177
176
|
);
|
|
178
|
-
b =
|
|
177
|
+
b = pe;
|
|
179
178
|
const J = Ue();
|
|
180
|
-
J ===
|
|
179
|
+
J === j && te() && (V = b.slice(
|
|
181
180
|
e.skip || 0,
|
|
182
181
|
(e.skip || 0) + ((e.take !== void 0 ? e.take : e.pageSize) || 0)
|
|
183
182
|
));
|
|
184
|
-
const ae =
|
|
185
|
-
je(
|
|
186
|
-
const re =
|
|
183
|
+
const ae = gt(e.selectable || !!e.selectedField), et = ae && ae.drag ? "none" : void 0, O = l.Children.toArray(e.children);
|
|
184
|
+
je(O, qe);
|
|
185
|
+
const re = O.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? l.cloneElement(t, { ...t.props, ariaControls: R }) : null), _ = O.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), ne = O.filter(
|
|
187
186
|
(t) => t && t.type && t.type.displayName === "KendoReactGridStatusBar"
|
|
188
|
-
), y = u.current.filter((t) => t.children.length === 0), ie = D && /* @__PURE__ */ l.createElement(
|
|
189
|
-
|
|
187
|
+
), y = u.current.filter((t) => t.children.length === 0), ie = D && /* @__PURE__ */ l.createElement(vt, { columns: $().current, group: e.group || [], ariaControls: R }), oe = /* @__PURE__ */ l.createElement(
|
|
188
|
+
It,
|
|
190
189
|
{
|
|
191
190
|
size: w,
|
|
192
191
|
staticHeaders: e.scrollable !== "none",
|
|
193
192
|
draggable: e.reorderable || D,
|
|
194
193
|
headerRow: /* @__PURE__ */ l.createElement(
|
|
195
|
-
|
|
194
|
+
Rt,
|
|
196
195
|
{
|
|
197
196
|
cells: e.cells,
|
|
198
197
|
sort: e.sort,
|
|
@@ -208,7 +207,7 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
208
207
|
columnsMap: v,
|
|
209
208
|
cellRender: e.headerCellRender,
|
|
210
209
|
navigatable: !!e.navigatable,
|
|
211
|
-
localization:
|
|
210
|
+
localization: z,
|
|
212
211
|
unstyled: S,
|
|
213
212
|
headerSelectionValue: !!(e.select && b.filter((t) => t.rowType === "data").every(
|
|
214
213
|
(t) => e.select && e.dataItemKey && N(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[N(e.dataItemKey)(t.dataItem)] : void 0
|
|
@@ -216,7 +215,7 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
216
215
|
}
|
|
217
216
|
),
|
|
218
217
|
filterRow: e.filterable && /* @__PURE__ */ l.createElement(
|
|
219
|
-
|
|
218
|
+
xt,
|
|
220
219
|
{
|
|
221
220
|
cells: e.cells,
|
|
222
221
|
size: w,
|
|
@@ -227,20 +226,20 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
227
226
|
cellRender: e.filterCellRender,
|
|
228
227
|
navigatable: !!e.navigatable,
|
|
229
228
|
ariaRowIndex: v.length + 1,
|
|
230
|
-
localization:
|
|
229
|
+
localization: z
|
|
231
230
|
}
|
|
232
231
|
) || void 0,
|
|
233
232
|
cols: y.map((t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: p(t) }))
|
|
234
233
|
}
|
|
235
|
-
),
|
|
234
|
+
), tt = Qe.current || 0, lt = parseFloat(((e.style || {}).width || "").toString()), at = (t, r, o, d) => {
|
|
236
235
|
let i = !1;
|
|
237
236
|
const a = e.selectedField ? Fe(e.selectedField, t.dataItem) : e.select && e.dataItemKey && N(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[N(e.dataItemKey)(t.dataItem)] : void 0;
|
|
238
237
|
let c = 0;
|
|
239
|
-
const { colSpans: f, hiddenColumns: g } =
|
|
238
|
+
const { colSpans: f, hiddenColumns: g } = Ct({
|
|
240
239
|
enabled: e.columnVirtualization,
|
|
241
240
|
columns: y,
|
|
242
|
-
tableViewPortWidth:
|
|
243
|
-
scrollLeft:
|
|
241
|
+
tableViewPortWidth: lt,
|
|
242
|
+
scrollLeft: tt,
|
|
244
243
|
getColSpan: De,
|
|
245
244
|
dataItem: t.dataItem
|
|
246
245
|
}), E = y.filter((n, C) => !g[C]);
|
|
@@ -259,18 +258,18 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
259
258
|
f[C]
|
|
260
259
|
);
|
|
261
260
|
c = A;
|
|
262
|
-
const
|
|
261
|
+
const M = n.id ? n.id : C, W = m(s.contentSticky({ locked: n.locked }), n.className), it = n.left !== void 0 ? { left: n.left, right: n.right } : {};
|
|
263
262
|
let Ge = !1;
|
|
264
263
|
if (n.editable && (e.editable || e.editField)) {
|
|
265
264
|
const B = e.editField ? Fe(e.editField, t.dataItem) : e.edit && e.dataItemKey ? e.edit[N(e.dataItemKey)(t.dataItem)] : void 0, Z = typeof B == "boolean" ? B : Array.isArray(B) ? B.indexOf(n.field) > -1 : n.field !== void 0 && B === n.field;
|
|
266
265
|
Z && n.columnType === "data" && (Z === !0 || Z === n.field) && (i = !0, Ge = !0);
|
|
267
266
|
}
|
|
268
|
-
const Y = n.cell || Ge &&
|
|
267
|
+
const Y = n.cell || Ge && Et || At, ot = e.expandField && e.detail && n.field === e.expandField || n._type === "expand", P = {
|
|
269
268
|
locked: e.lockGroups,
|
|
270
269
|
id: q.generateNavigatableId(
|
|
271
270
|
`${r}-${String(C)}`,
|
|
272
271
|
x,
|
|
273
|
-
|
|
272
|
+
ot || t.rowType === "groupHeader" || t.rowType === "groupFooter" || n.field === "value" ? "nodata" : "cell"
|
|
274
273
|
),
|
|
275
274
|
colSpan: H,
|
|
276
275
|
dataItem: t.dataItem,
|
|
@@ -279,9 +278,9 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
279
278
|
format: n.format,
|
|
280
279
|
columnType: n.columnType,
|
|
281
280
|
rowReorderable: G,
|
|
282
|
-
className:
|
|
281
|
+
className: W,
|
|
283
282
|
render: e.cellRender,
|
|
284
|
-
cells:
|
|
283
|
+
cells: Dt(e.cells, n.cells),
|
|
285
284
|
columnIndex: C,
|
|
286
285
|
columnsCount: y.length,
|
|
287
286
|
rowType: t.rowType,
|
|
@@ -289,7 +288,7 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
289
288
|
expanded: t.expanded,
|
|
290
289
|
dataIndex: t.dataIndex,
|
|
291
290
|
rowDataIndex: o,
|
|
292
|
-
columnPosition:
|
|
291
|
+
columnPosition: it,
|
|
293
292
|
style: {},
|
|
294
293
|
ariaColumnIndex: n.ariaColumnIndex,
|
|
295
294
|
isSelected: (n == null ? void 0 : n._type) === "edit" ? a : Array.isArray(a) && a.indexOf(C) > -1,
|
|
@@ -297,27 +296,29 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
297
296
|
isInEdit: i,
|
|
298
297
|
isAlt: d,
|
|
299
298
|
unstyled: S,
|
|
300
|
-
group: t.group
|
|
299
|
+
group: t.group,
|
|
300
|
+
localization: z,
|
|
301
|
+
intl: Xe
|
|
301
302
|
};
|
|
302
303
|
return n.cell ? /* @__PURE__ */ l.createElement(
|
|
303
|
-
|
|
304
|
+
pt,
|
|
304
305
|
{
|
|
305
|
-
key:
|
|
306
|
-
isClient:
|
|
306
|
+
key: M,
|
|
307
|
+
isClient: Tt(Y),
|
|
307
308
|
dataItem: P.dataItem,
|
|
308
309
|
rowDataIndex: P.rowDataIndex,
|
|
309
310
|
columnIndex: P.columnIndex
|
|
310
311
|
},
|
|
311
312
|
/* @__PURE__ */ l.createElement(Y, { ...P })
|
|
312
|
-
) : /* @__PURE__ */ l.createElement(Y, { key:
|
|
313
|
+
) : /* @__PURE__ */ l.createElement(Y, { key: M, ...P });
|
|
313
314
|
}),
|
|
314
315
|
isInEdit: i,
|
|
315
316
|
isSelected: typeof a == "boolean" && a
|
|
316
317
|
};
|
|
317
318
|
};
|
|
318
319
|
let de = 0;
|
|
319
|
-
if (k &&
|
|
320
|
-
for (let t = 0; t <
|
|
320
|
+
if (k && U)
|
|
321
|
+
for (let t = 0; t < U.topCacheCount + U.attendedSkip - (e.skip || 0); t++) {
|
|
321
322
|
const r = b.shift();
|
|
322
323
|
if (r)
|
|
323
324
|
b.push(r), de++, r.rowType === "groupHeader" && t--;
|
|
@@ -332,10 +333,10 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
332
333
|
let t = -1, r = 0;
|
|
333
334
|
(V || b).forEach((o, d) => {
|
|
334
335
|
o.rowType === "data" && (se++, t++);
|
|
335
|
-
const i = se % 2 === 0, a = e.dataItemKey && N(e.dataItemKey)(o.dataItem), c = d + (e.skip || 0), f = a || "ai" + c, g = f + "_1", E =
|
|
336
|
+
const i = se % 2 === 0, a = e.dataItemKey && N(e.dataItemKey)(o.dataItem), c = d + (e.skip || 0), f = a || "ai" + c, g = f + "_1", E = at(o, f, t, i);
|
|
336
337
|
if (K = c + ue + r, Q.push(
|
|
337
338
|
/* @__PURE__ */ l.createElement(
|
|
338
|
-
|
|
339
|
+
Pt,
|
|
339
340
|
{
|
|
340
341
|
key: f,
|
|
341
342
|
dataItem: o.dataItem,
|
|
@@ -372,8 +373,8 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
372
373
|
"aria-rowindex": K
|
|
373
374
|
},
|
|
374
375
|
e.group && e.group.map((C, H) => {
|
|
375
|
-
var
|
|
376
|
-
const A = (
|
|
376
|
+
var W;
|
|
377
|
+
const A = (W = E == null ? void 0 : E.row[H]) == null ? void 0 : W.props.style, M = A ? { left: A.left, right: A.right } : {};
|
|
377
378
|
return /* @__PURE__ */ l.createElement(
|
|
378
379
|
Te,
|
|
379
380
|
{
|
|
@@ -382,7 +383,7 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
382
383
|
field: C.field,
|
|
383
384
|
dataItem: o.dataItem,
|
|
384
385
|
key: H,
|
|
385
|
-
columnPosition:
|
|
386
|
+
columnPosition: M,
|
|
386
387
|
style: {},
|
|
387
388
|
ariaColumnIndex: 1 + H,
|
|
388
389
|
isSelected: !1,
|
|
@@ -393,14 +394,14 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
393
394
|
);
|
|
394
395
|
}),
|
|
395
396
|
(e.expandField || T.enabled) && /* @__PURE__ */ l.createElement(
|
|
396
|
-
|
|
397
|
+
Lt,
|
|
397
398
|
{
|
|
398
399
|
unstyled: S,
|
|
399
400
|
id: q.generateNavigatableId(`${g}-dhcell`, x)
|
|
400
401
|
}
|
|
401
402
|
),
|
|
402
403
|
/* @__PURE__ */ l.createElement(
|
|
403
|
-
|
|
404
|
+
_t,
|
|
404
405
|
{
|
|
405
406
|
dataItem: o.dataItem,
|
|
406
407
|
dataIndex: o.dataIndex,
|
|
@@ -420,17 +421,17 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
420
421
|
total: I,
|
|
421
422
|
skip: e.skip || 0,
|
|
422
423
|
take: (e.take !== void 0 ? e.take : e.pageSize) || 10,
|
|
423
|
-
...
|
|
424
|
-
}, ge = /* @__PURE__ */ l.createElement(
|
|
424
|
+
...zt(e.pageable || {})
|
|
425
|
+
}, ge = /* @__PURE__ */ l.createElement($t, null, e.pager ? /* @__PURE__ */ l.createElement(e.pager, { ...fe }) : /* @__PURE__ */ l.createElement(bt, { className: m(s.pager({})), ...fe })), rt = (t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: p(t) }), nt = (Se = e.cells) != null && Se.footerCell || u.current.some((t) => {
|
|
425
426
|
var r;
|
|
426
427
|
return !!(t.footerCell || (r = t.cells) != null && r.footerCell);
|
|
427
428
|
}) ? /* @__PURE__ */ l.createElement(
|
|
428
|
-
|
|
429
|
+
St,
|
|
429
430
|
{
|
|
430
431
|
size: w,
|
|
431
432
|
staticHeaders: e.scrollable !== "none",
|
|
432
433
|
row: /* @__PURE__ */ l.createElement(
|
|
433
|
-
|
|
434
|
+
Vt,
|
|
434
435
|
{
|
|
435
436
|
cells: e.cells,
|
|
436
437
|
idPrefix: x,
|
|
@@ -438,27 +439,27 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
438
439
|
ariaRowIndex: K + 1
|
|
439
440
|
}
|
|
440
441
|
),
|
|
441
|
-
cols: y.map(
|
|
442
|
+
cols: y.map(rt)
|
|
442
443
|
}
|
|
443
|
-
) : null, be = /* @__PURE__ */ l.createElement(
|
|
444
|
+
) : null, be = /* @__PURE__ */ l.createElement(Wt, null, y.map((t, r) => /* @__PURE__ */ l.createElement(
|
|
444
445
|
"col",
|
|
445
446
|
{
|
|
446
447
|
key: r.toString(),
|
|
447
448
|
className: Ne(t.field, e.sort) ? m(s.sorted({})) : void 0,
|
|
448
449
|
width: p(t)
|
|
449
450
|
}
|
|
450
|
-
))), ye = e.reorderable || D, { detail:
|
|
451
|
+
))), ye = e.reorderable || D, { detail: rl, cells: nl, ...Ce } = e, he = /* @__PURE__ */ l.createElement(
|
|
451
452
|
"tbody",
|
|
452
453
|
{
|
|
453
454
|
role: "rowgroup",
|
|
454
455
|
className: m(s.tbody({})),
|
|
455
|
-
...
|
|
456
|
+
...yt
|
|
456
457
|
},
|
|
457
458
|
Q
|
|
458
459
|
);
|
|
459
460
|
let X = he;
|
|
460
461
|
if (G && (X = /* @__PURE__ */ l.createElement(
|
|
461
|
-
|
|
462
|
+
el,
|
|
462
463
|
{
|
|
463
464
|
unstyled: s,
|
|
464
465
|
columns: u.current,
|
|
@@ -471,11 +472,11 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
471
472
|
{
|
|
472
473
|
gridRef: ee,
|
|
473
474
|
gridProps: Ce,
|
|
474
|
-
columnsRef:
|
|
475
|
+
columnsRef: $(),
|
|
475
476
|
columnsMapRef: v,
|
|
476
477
|
dataRef: b,
|
|
477
478
|
slicedData: V,
|
|
478
|
-
isFixedVirtualScroll: J ===
|
|
479
|
+
isFixedVirtualScroll: J === j,
|
|
479
480
|
id: R,
|
|
480
481
|
total: I,
|
|
481
482
|
detailExpandable: !!e.detail
|
|
@@ -492,7 +493,7 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
492
493
|
re,
|
|
493
494
|
ie,
|
|
494
495
|
/* @__PURE__ */ l.createElement(
|
|
495
|
-
|
|
496
|
+
jt,
|
|
496
497
|
{
|
|
497
498
|
selectable: e.selectable,
|
|
498
499
|
className: m(s.table({ size: w }))
|
|
@@ -501,23 +502,23 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
501
502
|
oe,
|
|
502
503
|
/* @__PURE__ */ l.createElement(ze, { rowReorderable: G }, X)
|
|
503
504
|
),
|
|
504
|
-
me && /* @__PURE__ */ l.createElement(Ae, null,
|
|
505
|
+
me && /* @__PURE__ */ l.createElement(Ae, null, _.length ? _ : /* @__PURE__ */ l.createElement(Ke, null)),
|
|
505
506
|
ye && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Be, null), /* @__PURE__ */ l.createElement(Ve, null))
|
|
506
507
|
)),
|
|
507
508
|
ne,
|
|
508
509
|
e.pageable && ge
|
|
509
510
|
);
|
|
510
|
-
let
|
|
511
|
-
return k && (
|
|
511
|
+
let L = e.style || {};
|
|
512
|
+
return k && (L.height || (L = Object.assign({}, L, { height: "450px" }))), /* @__PURE__ */ l.createElement(
|
|
512
513
|
Pe,
|
|
513
514
|
{
|
|
514
515
|
gridRef: ee,
|
|
515
516
|
gridProps: Ce,
|
|
516
|
-
columnsRef:
|
|
517
|
+
columnsRef: $(),
|
|
517
518
|
columnsMapRef: v,
|
|
518
519
|
dataRef: b,
|
|
519
520
|
slicedData: V,
|
|
520
|
-
isFixedVirtualScroll: J ===
|
|
521
|
+
isFixedVirtualScroll: J === j,
|
|
521
522
|
id: R,
|
|
522
523
|
total: I,
|
|
523
524
|
detailExpandable: !!e.detail
|
|
@@ -526,7 +527,7 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
526
527
|
"div",
|
|
527
528
|
{
|
|
528
529
|
id: e.id,
|
|
529
|
-
style:
|
|
530
|
+
style: L,
|
|
530
531
|
className: m(
|
|
531
532
|
s.wrapper({
|
|
532
533
|
size: w,
|
|
@@ -547,11 +548,11 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
547
548
|
"aria-colcount": y.length,
|
|
548
549
|
"aria-rowcount": I,
|
|
549
550
|
id: R,
|
|
550
|
-
"aria-label":
|
|
551
|
+
"aria-label": z.toLanguageString(_e, Zt[_e])
|
|
551
552
|
},
|
|
552
553
|
oe,
|
|
553
|
-
/* @__PURE__ */ l.createElement("div", { className: m(s.container({})), role: "presentation" }, /* @__PURE__ */ l.createElement(
|
|
554
|
-
|
|
554
|
+
/* @__PURE__ */ l.createElement("div", { className: m(s.container({})), role: "presentation" }, /* @__PURE__ */ l.createElement(Jt, null, /* @__PURE__ */ l.createElement("div", { className: m(s.content({})), role: "presentation" }, /* @__PURE__ */ l.createElement("div", { className: m(s.tableWrap({})), role: "presentation" }, /* @__PURE__ */ l.createElement(
|
|
555
|
+
Ut,
|
|
555
556
|
{
|
|
556
557
|
selectable: e.selectable,
|
|
557
558
|
tableClassName: m(
|
|
@@ -559,28 +560,28 @@ const tl = l.forwardRef((e, ee) => {
|
|
|
559
560
|
size: w
|
|
560
561
|
})
|
|
561
562
|
),
|
|
562
|
-
tableStyle: { userSelect:
|
|
563
|
+
tableStyle: { userSelect: et }
|
|
563
564
|
},
|
|
564
565
|
be,
|
|
565
566
|
/* @__PURE__ */ l.createElement(ze, { rowReorderable: G }, X)
|
|
566
|
-
), me && /* @__PURE__ */ l.createElement(Ae, null,
|
|
567
|
+
), me && /* @__PURE__ */ l.createElement(Ae, null, _.length ? _ : /* @__PURE__ */ l.createElement(Ke, null))), k && /* @__PURE__ */ l.createElement(
|
|
567
568
|
"div",
|
|
568
569
|
{
|
|
569
570
|
className: m(s.heightContainer({})),
|
|
570
571
|
role: "presentation"
|
|
571
572
|
},
|
|
572
|
-
/* @__PURE__ */ l.createElement(
|
|
573
|
+
/* @__PURE__ */ l.createElement(Qt, { isVirtualScroll: k })
|
|
573
574
|
)))),
|
|
574
|
-
|
|
575
|
+
nt,
|
|
575
576
|
ye && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Be, null), /* @__PURE__ */ l.createElement(Ve, null)),
|
|
576
|
-
/* @__PURE__ */ l.createElement(
|
|
577
|
+
/* @__PURE__ */ l.createElement(Mt, null)
|
|
577
578
|
),
|
|
578
579
|
ne,
|
|
579
580
|
e.pageable && ge
|
|
580
581
|
))
|
|
581
582
|
);
|
|
582
583
|
});
|
|
583
|
-
|
|
584
|
+
al.displayName = "KendoReactGridComponent";
|
|
584
585
|
export {
|
|
585
|
-
|
|
586
|
+
al as GridComponent
|
|
586
587
|
};
|
package/GridState.js
CHANGED
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),w=o.createContext([{},()=>{},{}]),Y=()=>o.useContext(w),Z=e=>{var S,f,C,k,G,P,D,b,m,y,F,T,j,q,H,M,O,R;const{children:z,onEditChange:r,onFilterChange:l,onSortChange:i,onPageChange:c,onGroupChange:u,onDataStateChange:g,onSelectionChange:h,onDetailExpandChange:x,onGroupExpandChange:E,onHeaderSelectionChange:s}=e,[n,d]=o.useState({edit:(S=e.defaultEdit)!=null?S:e.edit,filter:(f=e.defaultFilter)!=null?f:e.filter,select:(C=e.defaultSelect)!=null?C:e.select,sort:(k=e.defaultSort)!=null?k:e.sort,take:(G=e.defaultTake)!=null?G:e.take,skip:(P=e.defaultSkip)!=null?P:e.skip,group:(D=e.defaultGroup)!=null?D:e.group,detailExpand:(b=e.defaultDetailExpand)!=null?b:e.detailExpand,groupExpand:(m=e.defaultGroupExpand)!=null?m:e.groupExpand}),A={edit:(y=e.edit)!=null?y:n.edit,filter:(F=e.filter)!=null?F:n.filter,sort:(T=e.sort)!=null?T:n.sort,take:(j=e.take)!=null?j:n.take,skip:(q=e.skip)!=null?q:n.skip,group:(H=e.group)!=null?H:n.group,select:(M=e.select)!=null?M:n.select,detailExpand:(O=e.detailExpand)!=null?O:n.detailExpand,groupExpand:(R=e.groupExpand)!=null?R:n.groupExpand},B=t=>{},I=t=>{d(a=>({...a,edit:t.edit})),r==null||r(t)},J=t=>{d(a=>({...a,filter:t.filter})),l==null||l(t)},K=t=>{d(a=>({...a,sort:t.sort})),i==null||i(t)},L=t=>{d(a=>({...a,...t.page})),c==null||c(t)},N=t=>{d(a=>({...a,group:t.group})),u==null||u(t)},Q=t=>{d(a=>({...a,...t.dataState})),g==null||g(t)},U=t=>{d(a=>({...a,select:t.select})),h==null||h(t)},V=t=>{d(a=>({...a,select:t.select})),s==null||s(t)},W=t=>{d(a=>({...a,detailExpand:t.detailExpand})),x==null||x(t)},X=t=>{d(a=>({...a,groupExpand:t.groupExpand})),E==null||E(t)};return o.createElement(w.Provider,{value:[A,B,{onEditChange:I,onFilterChange:l&&J,onSortChange:i&&K,onPageChange:c&&L,onGroupChange:u&&N,onDataStateChange:Q,onSelectionChange:U,onHeaderSelectionChange:V,onDetailExpandChange:W,onGroupExpandChange:X}]},z)};exports.GridClientStateProvider=Z;exports.useGridState=Y;
|
package/GridToolbar.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),r=require("@progress/kendo-react-common");function s(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>o[t]})}}return e.default=o,Object.freeze(e)}const b=s(i),l=o=>{const{size:e,className:t,ariaLabel:a,ariaControls:n,children:c}=o;return b.createElement("div",{className:r.classNames("k-toolbar k-grid-toolbar k-toolbar-solid",{"k-toolbar-md":!e,[`k-toolbar-${r.kendoThemeMaps.sizeMap[e]||e}`]:e},t),"aria-label":a,"aria-controls":n,role:"toolbar"},c)};l.displayName="KendoReactGridToolbar";exports.GridToolbar=l;
|
package/GridToolbar.mjs
CHANGED
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
import * as s from "react";
|
|
10
|
-
import { classNames as i, kendoThemeMaps as
|
|
11
|
-
const
|
|
9
|
+
import { classNames as i, kendoThemeMaps as m } from "@progress/kendo-react-common";
|
|
10
|
+
const b = (o) => {
|
|
12
11
|
const { size: a, className: r, ariaLabel: e, ariaControls: l, children: t } = o;
|
|
13
12
|
return /* @__PURE__ */ s.createElement(
|
|
14
13
|
"div",
|
|
@@ -17,7 +16,7 @@ const m = (o) => {
|
|
|
17
16
|
"k-toolbar k-grid-toolbar k-toolbar-solid",
|
|
18
17
|
{
|
|
19
18
|
"k-toolbar-md": !a,
|
|
20
|
-
[`k-toolbar-${
|
|
19
|
+
[`k-toolbar-${m.sizeMap[a] || a}`]: a
|
|
21
20
|
},
|
|
22
21
|
r
|
|
23
22
|
),
|
|
@@ -28,7 +27,7 @@ const m = (o) => {
|
|
|
28
27
|
t
|
|
29
28
|
);
|
|
30
29
|
};
|
|
31
|
-
|
|
30
|
+
b.displayName = "KendoReactGridToolbar";
|
|
32
31
|
export {
|
|
33
|
-
|
|
32
|
+
b as GridToolbar
|
|
34
33
|
};
|
package/GridWatermarkOverlay.js
CHANGED
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),n=require("@progress/kendo-react-common"),c=require("./package-metadata.js");function i(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 l=i(o),s=e=>n.shouldShowValidationUI(c.packageMetadata)&&l.createElement(n.WatermarkOverlay,null);exports.GridWatermarkOverlay=s;
|
package/GridWatermarkOverlay.mjs
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as r from "react";
|
|
10
|
-
import { shouldShowValidationUI as
|
|
10
|
+
import { shouldShowValidationUI as a, WatermarkOverlay as e } from "@progress/kendo-react-common";
|
|
11
11
|
import { packageMetadata as t } from "./package-metadata.mjs";
|
|
12
|
-
const n = (o) =>
|
|
12
|
+
const n = (o) => a(t) && /* @__PURE__ */ r.createElement(e, null);
|
|
13
13
|
export {
|
|
14
14
|
n as GridWatermarkOverlay
|
|
15
15
|
};
|