@progress/kendo-react-grid 9.4.0-develop.24 → 9.4.0-develop.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Grid.js +1 -1
- package/Grid.mjs +5 -4
- package/GridClientContextReader.js +1 -2
- package/GridClientContextReader.mjs +14 -15
- package/GridClientWrapper.js +1 -2
- package/GridClientWrapper.mjs +375 -450
- package/GridColumn.js +1 -1
- package/GridColumn.mjs +5 -4
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +310 -344
- package/GridState.js +1 -2
- package/GridState.mjs +67 -79
- package/GridToolbar.js +1 -1
- package/GridToolbar.mjs +6 -5
- package/GridWatermarkOverlay.js +1 -2
- package/GridWatermarkOverlay.mjs +2 -2
- package/NOTICE.txt +51 -40
- package/StatusBar.js +1 -1
- package/StatusBar.mjs +1 -0
- package/VirtualScroll.js +1 -1
- package/VirtualScroll.mjs +1 -0
- package/VirtualScrollFixed.js +1 -1
- package/VirtualScrollFixed.mjs +10 -9
- package/cells/GridCell.js +1 -1
- package/cells/GridCell.mjs +23 -25
- package/cells/GridDetailCell.js +1 -1
- package/cells/GridDetailCell.mjs +6 -5
- package/cells/GridDetailHierarchyCell.js +1 -1
- package/cells/GridDetailHierarchyCell.mjs +5 -4
- package/cells/GridEditCell.js +1 -1
- package/cells/GridEditCell.mjs +7 -6
- package/cells/GridFilterCell.js +1 -2
- package/cells/GridGroupCell.js +1 -1
- package/cells/GridGroupCell.mjs +12 -11
- package/cells/GridHierarchyCell.js +1 -1
- package/cells/GridHierarchyCell.mjs +8 -7
- package/cells/GridRowReorderCell.js +1 -1
- package/cells/GridRowReorderCell.mjs +4 -3
- package/cells/GridSelectionCell.js +1 -1
- package/cells/GridSelectionCell.mjs +13 -12
- package/cells/client/DetailCellContainer.js +1 -2
- package/cells/client/DetailCellContainer.mjs +2 -2
- package/cells/client/GridCellContainer.js +1 -2
- package/cells/client/GridEditCellContainer.js +1 -2
- package/cells/client/GridEditCellEditor.js +1 -2
- package/cells/client/GridEditCellEditor.mjs +14 -14
- package/cells/client/GridGroupCellContainer.js +1 -2
- package/cells/client/GridGroupCellContainer.mjs +39 -39
- package/cells/client/GridGroupCellToggle.js +1 -2
- package/cells/client/GridGroupCellToggle.mjs +3 -3
- package/cells/client/GridHierarchyCellContainer.js +1 -2
- package/cells/client/GridHierarchyCellToggle.js +1 -2
- package/cells/client/GridHierarchyCellToggle.mjs +15 -15
- package/cells/client/GridRowReorderContainer.js +1 -2
- package/cells/client/GridRowReorderContainer.mjs +8 -14
- package/cells/client/GridSelectionCellContainer.js +1 -2
- package/cells/client/GridSelectionCellInput.js +1 -2
- package/cells/client/GridSelectionCellInput.mjs +3 -3
- package/columnMenu/GridColumnMenuCheckboxFilter.js +1 -2
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +55 -56
- package/columnMenu/GridColumnMenuColumnsList.js +1 -2
- package/columnMenu/GridColumnMenuColumnsList.mjs +16 -16
- package/columnMenu/GridColumnMenuFilter.js +1 -2
- package/columnMenu/GridColumnMenuFilterCell.js +1 -2
- package/columnMenu/GridColumnMenuFilterCell.mjs +3 -3
- package/columnMenu/GridColumnMenuFilterUI.js +1 -2
- package/columnMenu/GridColumnMenuGroup.js +1 -2
- package/columnMenu/GridColumnMenuGroup.mjs +5 -5
- package/columnMenu/GridColumnMenuItem.js +1 -2
- package/columnMenu/GridColumnMenuItem.mjs +2 -2
- package/columnMenu/GridColumnMenuItemContent.js +1 -2
- package/columnMenu/GridColumnMenuItemContent.mjs +4 -4
- package/columnMenu/GridColumnMenuItemGroup.js +1 -2
- package/columnMenu/GridColumnMenuItemGroup.mjs +4 -4
- package/columnMenu/GridColumnMenuSort.js +1 -2
- package/columnMenu/GridColumnMenuSort.mjs +8 -8
- package/columnMenu/GridColumnMenuWrapper.js +1 -2
- package/components/GridContainerElementContainer.js +1 -2
- package/components/GridCustomCellClientContainer.js +1 -2
- package/components/GridCustomCellClientContainer.mjs +2 -2
- package/components/GridDragClue.js +1 -2
- package/components/GridDragClue.mjs +5 -5
- package/components/GridDraggableRowsContainer.js +1 -2
- package/components/GridDropClue.js +1 -2
- package/components/GridDropClue.mjs +5 -5
- package/components/GridElementContainer.js +1 -2
- package/components/GridElementContainer.mjs +6 -6
- package/components/PagerContainer.js +1 -2
- package/components/PagerContainer.mjs +4 -4
- package/components/VirtualScrollHeightContainer.js +1 -2
- package/components/VirtualScrollHeightContainer.mjs +2 -2
- package/components/colGroup/GridColGroup.js +1 -2
- package/components/colGroup/GridColGroup.mjs +5 -5
- package/components/icons/reorder-row-svg.js +1 -2
- package/components/icons/reorder-row-svg.mjs +2 -2
- package/components/noRecords/GridNoRecords.js +1 -2
- package/components/noRecords/GridNoRecords.mjs +5 -5
- package/components/noRecords/GridNoRecordsContainer.js +1 -2
- package/components/noRecords/GridNoRecordsContainer.mjs +4 -4
- package/components/table/GridTable.js +1 -2
- package/components/table/GridTable.mjs +4 -4
- package/components/table/GridTableBody.js +1 -2
- package/components/table/GridTableBody.mjs +2 -2
- package/components/table/GridTableScrollable.js +1 -2
- package/components/table/GridTableScrollable.mjs +6 -6
- package/components/utils.js +1 -1
- package/components/utils.mjs +1 -0
- package/constants/index.js +1 -1
- package/constants/index.mjs +1 -0
- package/contextMenu/GridContextMenu.js +1 -2
- package/contextMenu/GridContextMenu.mjs +3 -3
- package/contextMenu/enums.js +1 -1
- package/contextMenu/enums.mjs +1 -0
- package/dist/cdn/js/kendo-react-grid.js +1 -8
- package/drag/ColumnDraggable.js +1 -2
- package/drag/ColumnDraggable.mjs +7 -7
- package/drag/ColumnResize.js +1 -1
- package/drag/ColumnResize.mjs +1 -0
- package/drag/CommonDragLogic.js +1 -1
- package/drag/CommonDragLogic.mjs +1 -0
- package/drag/GroupingIndicator.js +1 -2
- package/drag/GroupingIndicator.mjs +11 -11
- package/filterCommon.js +1 -1
- package/filterCommon.mjs +5 -4
- package/footer/Footer.js +1 -2
- package/footer/FooterCell.js +1 -1
- package/footer/FooterCell.mjs +4 -3
- package/footer/FooterRow.js +1 -1
- package/footer/FooterRow.mjs +7 -6
- package/footer/client/FooterCellContainer.js +1 -2
- package/footer/client/FooterCellContainer.mjs +5 -5
- package/header/FilterRow.js +1 -1
- package/header/FilterRow.mjs +43 -41
- package/header/GridHeaderCell.js +1 -2
- package/header/GridHeaderCell.mjs +4 -4
- package/header/GridHeaderSelectionCell.js +1 -2
- package/header/GroupPanel.js +1 -2
- package/header/Header.js +1 -2
- package/header/HeaderRow.js +1 -1
- package/header/HeaderRow.mjs +35 -33
- package/header/client/GridFilterCellContainer.js +1 -2
- package/header/client/GridFilterCellContainer.mjs +7 -7
- package/header/client/GridFilterCellElementContainer.js +1 -2
- package/header/client/GridHeaderCellContainer.js +1 -2
- package/header/client/GridHeaderCellContainer.mjs +18 -20
- package/header/client/GridHeaderCellElementContainer.js +1 -2
- package/header/client/GridHeaderCellElementContainer.mjs +10 -10
- package/header/client/GridHeaderRowContainer.js +1 -2
- package/header/client/GridHeaderRowReorderCell.js +1 -2
- package/header/client/GridHeaderRowReorderCell.mjs +2 -2
- package/header/client/HeaderCellResizer.js +1 -2
- package/header/client/HeaderRowDraggable.js +1 -2
- package/index.d.mts +5 -211
- package/index.d.ts +5 -211
- package/index.js +1 -1
- package/index.mjs +68 -71
- package/interfaces/GridSortSettings.js +8 -0
- package/{sortCommon.mjs → interfaces/GridSortSettings.mjs} +1 -0
- package/messages/index.js +1 -1
- package/messages/index.mjs +37 -38
- package/messages/messagesMap.js +1 -1
- package/messages/messagesMap.mjs +3 -2
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +3 -2
- package/package.json +13 -14
- package/paging/GridPagerSettings.js +1 -1
- package/paging/GridPagerSettings.mjs +7 -6
- package/rows/GridDetailRow.js +1 -1
- package/rows/GridDetailRow.mjs +3 -2
- package/rows/GridRow.js +1 -2
- package/rows/GridRow.mjs +45 -45
- package/utils/_clientModule.js +1 -2
- package/utils/_clientModule.mjs +2 -2
- package/utils/_serverModule.js +1 -1
- package/utils/_serverModule.mjs +1 -0
- package/utils/index.js +1 -1
- package/utils/index.mjs +129 -138
- package/GridSearchBox.js +0 -8
- package/GridSearchBox.mjs +0 -35
- package/columnMenu/GridColumnMenuColumnsChooser.js +0 -9
- package/columnMenu/GridColumnMenuColumnsChooser.mjs +0 -82
- package/components/GridLoader.js +0 -9
- package/components/GridLoader.mjs +0 -22
- package/sortCommon.js +0 -8
package/GridComponent.mjs
CHANGED
|
@@ -5,112 +5,97 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
+
"use client";
|
|
8
9
|
import * as l from "react";
|
|
9
|
-
import { validatePackage as
|
|
10
|
-
import { process as
|
|
11
|
-
import {
|
|
12
|
-
import { GridSelectionCell as
|
|
13
|
-
import { GridHierarchyCell as
|
|
14
|
-
import { GridEditCell as
|
|
15
|
-
import { Header as
|
|
16
|
-
import { HeaderRow as
|
|
17
|
-
import { FilterRow as
|
|
18
|
-
import { GroupPanel as
|
|
19
|
-
import { Footer as
|
|
20
|
-
import {
|
|
21
|
-
import { GridCell as
|
|
22
|
-
import { GridGroupCell as
|
|
23
|
-
import { GridRow as
|
|
24
|
-
import { GridHeaderSelectionCell as
|
|
25
|
-
import { GridNoRecords as
|
|
26
|
-
import { operators as
|
|
27
|
-
import { FooterRow as
|
|
28
|
-
import { normalize as
|
|
29
|
-
import { packageMetadata as
|
|
30
|
-
import { GridDetailCell as
|
|
31
|
-
import { GridDetailHierarchyCell as
|
|
32
|
-
import { GridNoRecordsContainer as
|
|
33
|
-
import { GridWatermarkOverlay as
|
|
34
|
-
import { GridClientWrapper as
|
|
35
|
-
import { GridColGroup as
|
|
36
|
-
import { GridTable as
|
|
37
|
-
import { GridDropClue as
|
|
38
|
-
import { GridDragClue as
|
|
39
|
-
import { GridTableBody as
|
|
40
|
-
import { PagerContainer as
|
|
41
|
-
import { GridTableScrollable as
|
|
42
|
-
import { GridElementContainer as
|
|
43
|
-
import { GridContainerElementContainer as
|
|
44
|
-
import { VirtualScrollHeightContainer as
|
|
45
|
-
import { LocalizationService as
|
|
46
|
-
import { gridAriaLabel as
|
|
47
|
-
import { VirtualScrollFixed as
|
|
48
|
-
import { VirtualScroll as
|
|
49
|
-
import { GridCustomCellClientContainer as
|
|
50
|
-
import { GridReorderableRowsContainer as
|
|
51
|
-
import { GridRowReorderCell as
|
|
52
|
-
import { GridHeaderRowReorderCell as
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
var Ie, Se, ve, Re, xe, Ge, ke;
|
|
10
|
+
import { validatePackage as ot, uGrid as dt, getter as N, classNames as m, canUseDOM as ct } from "@progress/kendo-react-common";
|
|
11
|
+
import { process as st } from "@progress/kendo-data-query";
|
|
12
|
+
import { getDetailExpandableOptions as mt, getGroupExpandableOptions as ut, getSelectionOptions as ft, tableKeyboardNavigationTools as q, Pager as gt, tableKeyboardNavigationBodyAttributes as bt, tableKeyboardNavigationScopeAttributes as ke, tableColumnsVirtualization as yt } from "@progress/kendo-react-data-tools";
|
|
13
|
+
import { GridSelectionCell as Ct } from "./cells/GridSelectionCell.mjs";
|
|
14
|
+
import { GridHierarchyCell as ht } from "./cells/GridHierarchyCell.mjs";
|
|
15
|
+
import { GridEditCell as wt } from "./cells/GridEditCell.mjs";
|
|
16
|
+
import { Header as Et } from "./header/Header.mjs";
|
|
17
|
+
import { HeaderRow as It } from "./header/HeaderRow.mjs";
|
|
18
|
+
import { FilterRow as Rt } from "./header/FilterRow.mjs";
|
|
19
|
+
import { GroupPanel as xt } from "./header/GroupPanel.mjs";
|
|
20
|
+
import { Footer as vt } from "./footer/Footer.mjs";
|
|
21
|
+
import { getColumnWidth as p, isSorted as Ne, flatData as St, autoGenerateColumns as Gt, mapColumns as kt, clientColumn as Nt, getNestedValue as Fe, getColSpan as De, resolveCells as Ft, isClientReference as Dt, sanitizeColumns as Tt, readColumns as Kt } from "./utils/index.mjs";
|
|
22
|
+
import { GridCell as Ht } from "./cells/GridCell.mjs";
|
|
23
|
+
import { GridGroupCell as Te } from "./cells/GridGroupCell.mjs";
|
|
24
|
+
import { GridRow as At } from "./rows/GridRow.mjs";
|
|
25
|
+
import { GridHeaderSelectionCell as Pt } from "./header/GridHeaderSelectionCell.mjs";
|
|
26
|
+
import { GridNoRecords as Ke } from "./components/noRecords/GridNoRecords.mjs";
|
|
27
|
+
import { operators as He } from "./filterCommon.mjs";
|
|
28
|
+
import { FooterRow as Bt } from "./footer/FooterRow.mjs";
|
|
29
|
+
import { normalize as Vt } from "./paging/GridPagerSettings.mjs";
|
|
30
|
+
import { packageMetadata as zt } from "./package-metadata.mjs";
|
|
31
|
+
import { GridDetailCell as Ot } from "./cells/GridDetailCell.mjs";
|
|
32
|
+
import { GridDetailHierarchyCell as _t } from "./cells/GridDetailHierarchyCell.mjs";
|
|
33
|
+
import { GridNoRecordsContainer as Ae } from "./components/noRecords/GridNoRecordsContainer.mjs";
|
|
34
|
+
import { GridWatermarkOverlay as Lt } from "./GridWatermarkOverlay.mjs";
|
|
35
|
+
import { GridClientWrapper as Pe } from "./GridClientWrapper.mjs";
|
|
36
|
+
import { GridColGroup as Mt } from "./components/colGroup/GridColGroup.mjs";
|
|
37
|
+
import { GridTable as Wt } from "./components/table/GridTable.mjs";
|
|
38
|
+
import { GridDropClue as Be } from "./components/GridDropClue.mjs";
|
|
39
|
+
import { GridDragClue as Ve } from "./components/GridDragClue.mjs";
|
|
40
|
+
import { GridTableBody as ze } from "./components/table/GridTableBody.mjs";
|
|
41
|
+
import { PagerContainer as jt } from "./components/PagerContainer.mjs";
|
|
42
|
+
import { GridTableScrollable as $t } from "./components/table/GridTableScrollable.mjs";
|
|
43
|
+
import { GridElementContainer as Oe } from "./components/GridElementContainer.mjs";
|
|
44
|
+
import { GridContainerElementContainer as Ut } from "./components/GridContainerElementContainer.mjs";
|
|
45
|
+
import { VirtualScrollHeightContainer as Jt } from "./components/VirtualScrollHeightContainer.mjs";
|
|
46
|
+
import { LocalizationService as Qt } from "@progress/kendo-react-intl";
|
|
47
|
+
import { gridAriaLabel as _e, messages as Xt } from "./messages/index.mjs";
|
|
48
|
+
import { VirtualScrollFixed as W } from "./VirtualScrollFixed.mjs";
|
|
49
|
+
import { VirtualScroll as Yt } from "./VirtualScroll.mjs";
|
|
50
|
+
import { GridCustomCellClientContainer as Zt } from "./components/GridCustomCellClientContainer.mjs";
|
|
51
|
+
import { GridReorderableRowsContainer as qt } from "./components/GridDraggableRowsContainer.mjs";
|
|
52
|
+
import { GridRowReorderCell as pt } from "./cells/GridRowReorderCell.mjs";
|
|
53
|
+
import { GridHeaderRowReorderCell as el } from "./header/client/GridHeaderRowReorderCell.mjs";
|
|
54
|
+
const tl = l.forwardRef((e, ee) => {
|
|
55
|
+
var we, Ee, Ie, Re, xe, ve, Se;
|
|
56
56
|
const R = e.id + "-role-element-id", x = e.navigatable ? R : "";
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
ot(zt);
|
|
58
|
+
const Le = (t, r, o, d, i, a, c) => {
|
|
59
|
+
const f = [], g = St(
|
|
60
|
+
f,
|
|
61
|
+
h,
|
|
62
62
|
t,
|
|
63
63
|
{ index: r },
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
o !== void 0,
|
|
65
|
+
d,
|
|
66
66
|
i,
|
|
67
67
|
a,
|
|
68
|
-
|
|
68
|
+
Ye.defaultExpand,
|
|
69
69
|
c
|
|
70
70
|
);
|
|
71
|
-
return { flattedData:
|
|
72
|
-
},
|
|
71
|
+
return { flattedData: f, resolvedGroupsCount: g };
|
|
72
|
+
}, Me = (t) => {
|
|
73
73
|
const r = t.filter(
|
|
74
74
|
(i) => i && i.type && i.type.displayName === "KendoReactGridColumn"
|
|
75
|
-
),
|
|
76
|
-
return
|
|
77
|
-
},
|
|
78
|
-
const t = [], r = (d, o) => d == null ? void 0 : d.forEach((i) => {
|
|
79
|
-
const a = i.hidden || o;
|
|
80
|
-
t.push({
|
|
81
|
-
...i,
|
|
82
|
-
hidden: a
|
|
83
|
-
}), r(i.children, a);
|
|
84
|
-
});
|
|
85
|
-
return r(e.columnsState, !1), t;
|
|
86
|
-
}, pe = (t) => {
|
|
87
|
-
const r = qe();
|
|
88
|
-
return t.filter((d) => {
|
|
89
|
-
var o;
|
|
90
|
-
return !((o = r.find((i) => i.id === d.id)) != null && o.hidden);
|
|
91
|
-
});
|
|
92
|
-
}, et = (t, r) => {
|
|
75
|
+
), o = u.current.filter((i) => i.declarationIndex >= 0 && i.parentIndex === -1), d = Tt(o);
|
|
76
|
+
return Kt(r, d, { prevId: 0, idPrefix: x });
|
|
77
|
+
}, We = (t) => t.filter((r) => ct && r && r.media ? window.matchMedia(r.media).matches : r), je = (t, r) => {
|
|
93
78
|
var i;
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
|
|
79
|
+
const o = Me(t), d = We(o);
|
|
80
|
+
u.current = d, u.current.length === 0 && (u.current = Gt(
|
|
81
|
+
h,
|
|
97
82
|
e.group,
|
|
98
83
|
{
|
|
99
|
-
column: (i =
|
|
84
|
+
column: (i = T.column) != null ? i : e.expandField
|
|
100
85
|
},
|
|
101
86
|
{
|
|
102
87
|
prevId: 0,
|
|
103
88
|
idPrefix: x
|
|
104
89
|
}
|
|
105
|
-
)),
|
|
106
|
-
},
|
|
90
|
+
)), $e(u.current, r), v = kt(u.current, !0), le.current = u.current.map(Nt);
|
|
91
|
+
}, $e = (t, r) => {
|
|
107
92
|
var i;
|
|
108
93
|
t.filter((a) => e.selectedField && a.field === e.selectedField || a.columnType === "checkbox").forEach((a) => {
|
|
109
|
-
a.width = a.width || "50px", a.cell = a.cell ||
|
|
110
|
-
}),
|
|
111
|
-
a.width = a.width || "50px", a.cell = a.cell ||
|
|
94
|
+
a.width = a.width || "50px", a.cell = a.cell || Ct, a._type = "edit", a.headerCell = a.headerCell || Pt;
|
|
95
|
+
}), G !== void 0 && t.filter((a) => a.columnType === "reorder").forEach((a) => {
|
|
96
|
+
a.width = a.width || "50px", a.cell = a.cell || pt, a.headerCell = a.headerCell || el, a.sortable = !1, a.filterable = !1, a.editable = !1;
|
|
112
97
|
});
|
|
113
|
-
const
|
|
98
|
+
const o = {
|
|
114
99
|
id: "",
|
|
115
100
|
resizable: !0,
|
|
116
101
|
width: "32px",
|
|
@@ -130,65 +115,59 @@ const hl = l.forwardRef((e, te) => {
|
|
|
130
115
|
ariaColumnIndex: 0,
|
|
131
116
|
isAccessible: !0
|
|
132
117
|
};
|
|
133
|
-
let
|
|
134
|
-
(e.expandField ||
|
|
135
|
-
...
|
|
118
|
+
let d = 0;
|
|
119
|
+
(e.expandField || T.enabled) && e.detail && (t.unshift({
|
|
120
|
+
...o,
|
|
136
121
|
_type: "expand",
|
|
137
|
-
cell:
|
|
138
|
-
field: (i =
|
|
139
|
-
headerClassName:
|
|
140
|
-
}),
|
|
122
|
+
cell: ht,
|
|
123
|
+
field: (i = T.column) != null ? i : e.expandField,
|
|
124
|
+
headerClassName: m(s.hierarchyCell({}))
|
|
125
|
+
}), d++);
|
|
141
126
|
for (let a = 0; a < r; a++)
|
|
142
127
|
t.unshift({
|
|
143
|
-
...
|
|
128
|
+
...o,
|
|
144
129
|
isAccessible: !1,
|
|
145
|
-
cell:
|
|
130
|
+
cell: Te,
|
|
146
131
|
field: "value",
|
|
147
132
|
locked: e.lockGroups
|
|
148
|
-
}),
|
|
149
|
-
t.slice(
|
|
150
|
-
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}, $ = () => e.isClient ? m : ae, at = (t, r, d, o, i, a) => {
|
|
156
|
-
let c = Ve(t, r);
|
|
133
|
+
}), d++;
|
|
134
|
+
t.slice(d).forEach((a) => a.parentIndex >= 0 && (a.parentIndex += d));
|
|
135
|
+
}, te = () => h.length === e.total, Ue = () => {
|
|
136
|
+
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) ? Yt : W;
|
|
138
|
+
}, j = () => e.isClient ? u : le, Je = (t, r, o, d, i, a) => {
|
|
139
|
+
let c = De(t, r);
|
|
157
140
|
if (e.columnVirtualization && t.colSpan === 1)
|
|
158
141
|
return { colSpan: a, colsToSkip: i };
|
|
159
|
-
let
|
|
160
|
-
return e.columnVirtualization && (
|
|
142
|
+
let f = o.length - 1 === d, g = o.length - d;
|
|
143
|
+
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 };
|
|
161
144
|
};
|
|
162
|
-
let
|
|
163
|
-
const
|
|
164
|
-
let
|
|
165
|
-
const
|
|
145
|
+
let $, b = [], V;
|
|
146
|
+
const u = e.columnsRef || { current: [] }, le = { current: [] };
|
|
147
|
+
let v = [[]];
|
|
148
|
+
const Qe = e.scrollLeftRef || { current: 0 }, U = e.localization || new Qt(), S = e.unstyled, s = S && S.uGrid ? S.uGrid : dt, G = typeof e.rowReorderable == "object" ? e.rowReorderable.enabled : e.rowReorderable, F = e.autoProcessData === !0 ? {
|
|
166
149
|
group: !0,
|
|
167
150
|
sort: !0,
|
|
168
151
|
filter: !0,
|
|
169
|
-
search: !0,
|
|
170
152
|
page: !0
|
|
171
153
|
} : e.autoProcessData;
|
|
172
|
-
let
|
|
173
|
-
if (Array.isArray(e.data) ? (
|
|
174
|
-
const { data: t, total: r } =
|
|
154
|
+
let h, I;
|
|
155
|
+
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 } = st(h, {
|
|
175
157
|
group: F.group ? e.group : void 0,
|
|
176
158
|
sort: F.sort ? e.sort : void 0,
|
|
177
|
-
filter:
|
|
178
|
-
F.filter ? e.filter : void 0,
|
|
179
|
-
F.search ? e.search : void 0
|
|
180
|
-
),
|
|
159
|
+
filter: F.filter ? e.filter : void 0,
|
|
181
160
|
...F.page ? {
|
|
182
161
|
take: e.take,
|
|
183
162
|
skip: e.skip
|
|
184
163
|
} : {}
|
|
185
164
|
});
|
|
186
|
-
|
|
165
|
+
h = t, I = (ve = e.total) != null ? ve : r;
|
|
187
166
|
}
|
|
188
|
-
const { size:
|
|
167
|
+
const { size: w = "medium" } = e, Xe = 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 = mt(!!e.detail), Ye = ut(
|
|
189
168
|
typeof e.groupable == "object" && e.groupable.enabled !== !1 ? e.groupable.expandable : e.groupable
|
|
190
|
-
), { resolvedGroupsCount:
|
|
191
|
-
|
|
169
|
+
), { resolvedGroupsCount: Ze, flattedData: qe } = Le(
|
|
170
|
+
Xe,
|
|
192
171
|
e.skip || 0,
|
|
193
172
|
e.group,
|
|
194
173
|
e.expandField,
|
|
@@ -196,227 +175,216 @@ const hl = l.forwardRef((e, te) => {
|
|
|
196
175
|
e.groupExpand,
|
|
197
176
|
e.dataItemKey
|
|
198
177
|
);
|
|
199
|
-
|
|
200
|
-
const J =
|
|
201
|
-
J ===
|
|
178
|
+
b = qe;
|
|
179
|
+
const J = Ue();
|
|
180
|
+
J === W && te() && (V = b.slice(
|
|
202
181
|
e.skip || 0,
|
|
203
182
|
(e.skip || 0) + ((e.take !== void 0 ? e.take : e.pageSize) || 0)
|
|
204
183
|
));
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
const
|
|
184
|
+
const ae = ft(e.selectable || !!e.selectedField), pe = ae && ae.drag ? "none" : void 0, z = l.Children.toArray(e.children);
|
|
185
|
+
je(z, Ze);
|
|
186
|
+
const re = z.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? l.cloneElement(t, { ...t.props, ariaControls: R }) : null), O = z.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), ne = z.filter(
|
|
208
187
|
(t) => t && t.type && t.type.displayName === "KendoReactGridStatusBar"
|
|
209
|
-
),
|
|
210
|
-
|
|
188
|
+
), y = u.current.filter((t) => t.children.length === 0), ie = D && /* @__PURE__ */ l.createElement(xt, { columns: j().current, group: e.group || [], ariaControls: R }), oe = /* @__PURE__ */ l.createElement(
|
|
189
|
+
Et,
|
|
211
190
|
{
|
|
212
|
-
size:
|
|
191
|
+
size: w,
|
|
213
192
|
staticHeaders: e.scrollable !== "none",
|
|
214
|
-
draggable: e.reorderable ||
|
|
193
|
+
draggable: e.reorderable || D,
|
|
215
194
|
headerRow: /* @__PURE__ */ l.createElement(
|
|
216
|
-
|
|
195
|
+
It,
|
|
217
196
|
{
|
|
218
197
|
cells: e.cells,
|
|
219
198
|
sort: e.sort,
|
|
220
199
|
sortable: e.sortable,
|
|
221
200
|
group: e.group || [],
|
|
222
|
-
groupable:
|
|
201
|
+
groupable: D,
|
|
223
202
|
filter: e.filter,
|
|
224
203
|
filterable: e.filterable,
|
|
225
|
-
filterOperators: e.filterOperators ||
|
|
204
|
+
filterOperators: e.filterOperators || He,
|
|
226
205
|
columnMenu: e.columnMenu,
|
|
227
206
|
columnMenuIcon: e.columnMenuIcon,
|
|
228
|
-
columns:
|
|
229
|
-
columnsMap:
|
|
207
|
+
columns: u.current,
|
|
208
|
+
columnsMap: v,
|
|
230
209
|
cellRender: e.headerCellRender,
|
|
231
210
|
navigatable: !!e.navigatable,
|
|
232
|
-
localization:
|
|
233
|
-
unstyled:
|
|
234
|
-
headerSelectionValue: !!(e.select &&
|
|
235
|
-
(t) => e.select && e.dataItemKey &&
|
|
211
|
+
localization: U,
|
|
212
|
+
unstyled: S,
|
|
213
|
+
headerSelectionValue: !!(e.select && b.filter((t) => t.rowType === "data").every(
|
|
214
|
+
(t) => e.select && e.dataItemKey && N(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[N(e.dataItemKey)(t.dataItem)] : void 0
|
|
236
215
|
))
|
|
237
216
|
}
|
|
238
217
|
),
|
|
239
218
|
filterRow: e.filterable && /* @__PURE__ */ l.createElement(
|
|
240
|
-
|
|
219
|
+
Rt,
|
|
241
220
|
{
|
|
242
221
|
cells: e.cells,
|
|
243
|
-
size:
|
|
244
|
-
columns:
|
|
222
|
+
size: w,
|
|
223
|
+
columns: u.current,
|
|
245
224
|
filter: e.filter,
|
|
246
|
-
filterOperators: e.filterOperators ||
|
|
225
|
+
filterOperators: e.filterOperators || He,
|
|
247
226
|
sort: e.sort,
|
|
248
227
|
cellRender: e.filterCellRender,
|
|
249
228
|
navigatable: !!e.navigatable,
|
|
250
|
-
ariaRowIndex:
|
|
251
|
-
localization:
|
|
229
|
+
ariaRowIndex: v.length + 1,
|
|
230
|
+
localization: U
|
|
252
231
|
}
|
|
253
232
|
) || void 0,
|
|
254
|
-
cols:
|
|
233
|
+
cols: y.map((t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: p(t) }))
|
|
255
234
|
}
|
|
256
|
-
),
|
|
257
|
-
let
|
|
258
|
-
const
|
|
259
|
-
let
|
|
260
|
-
const { colSpans:
|
|
235
|
+
), et = Qe.current || 0, tt = parseFloat(((e.style || {}).width || "").toString()), lt = (t, r, o, d) => {
|
|
236
|
+
let i = !1;
|
|
237
|
+
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
|
+
let c = 0;
|
|
239
|
+
const { colSpans: f, hiddenColumns: g } = yt({
|
|
261
240
|
enabled: e.columnVirtualization,
|
|
262
|
-
columns:
|
|
263
|
-
tableViewPortWidth:
|
|
264
|
-
scrollLeft:
|
|
265
|
-
getColSpan:
|
|
241
|
+
columns: y,
|
|
242
|
+
tableViewPortWidth: tt,
|
|
243
|
+
scrollLeft: et,
|
|
244
|
+
getColSpan: De,
|
|
266
245
|
dataItem: t.dataItem
|
|
267
|
-
}),
|
|
246
|
+
}), E = y.filter((n, C) => !g[C]);
|
|
268
247
|
return {
|
|
269
|
-
row:
|
|
270
|
-
|
|
271
|
-
if (T[y])
|
|
248
|
+
row: y.map((n, C) => {
|
|
249
|
+
if (g[C])
|
|
272
250
|
return null;
|
|
273
|
-
if (
|
|
274
|
-
return
|
|
275
|
-
|
|
276
|
-
if ((Fe = n.rowSpannable) != null && Fe.enabled && t.rowType === "data" && n.field && i) {
|
|
277
|
-
const S = n.field ? (Te = (De = n.rowSpannable).valueGetter) == null ? void 0 : Te.call(De, t.dataItem, n.field) : null;
|
|
278
|
-
w = { value: S, count: 1 }, i[n.field] && ((He = i[n.field]) == null ? void 0 : He.value) === S && i[n.field] !== null ? (i[n.field].count++, w.count = null) : i[n.field] = w;
|
|
279
|
-
}
|
|
280
|
-
const { colSpan: P, colsToSkip: Y } = at(
|
|
251
|
+
if (c > 0)
|
|
252
|
+
return c--, null;
|
|
253
|
+
const { colSpan: H, colsToSkip: A } = Je(
|
|
281
254
|
n,
|
|
282
255
|
t.dataItem,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
256
|
+
E,
|
|
257
|
+
C,
|
|
258
|
+
c,
|
|
259
|
+
f[C]
|
|
287
260
|
);
|
|
288
|
-
|
|
289
|
-
const
|
|
290
|
-
let
|
|
261
|
+
c = A;
|
|
262
|
+
const L = n.id ? n.id : C, M = m(s.contentSticky({ locked: n.locked }), n.className), nt = n.left !== void 0 ? { left: n.left, right: n.right } : {};
|
|
263
|
+
let Ge = !1;
|
|
291
264
|
if (n.editable && (e.editable || e.editField)) {
|
|
292
|
-
const
|
|
293
|
-
|
|
265
|
+
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
|
+
Z && n.columnType === "data" && (Z === !0 || Z === n.field) && (i = !0, Ge = !0);
|
|
294
267
|
}
|
|
295
|
-
const
|
|
268
|
+
const Y = n.cell || Ge && wt || Ht, it = e.expandField && e.detail && n.field === e.expandField || n._type === "expand", P = {
|
|
296
269
|
locked: e.lockGroups,
|
|
297
|
-
id:
|
|
298
|
-
`${r}-${String(
|
|
270
|
+
id: q.generateNavigatableId(
|
|
271
|
+
`${r}-${String(C)}`,
|
|
299
272
|
x,
|
|
300
|
-
|
|
273
|
+
it || t.rowType === "groupHeader" || t.rowType === "groupFooter" || n.field === "value" ? "nodata" : "cell"
|
|
301
274
|
),
|
|
302
|
-
colSpan:
|
|
275
|
+
colSpan: H,
|
|
303
276
|
dataItem: t.dataItem,
|
|
304
277
|
field: n.field,
|
|
305
278
|
editor: n.editor,
|
|
306
279
|
format: n.format,
|
|
307
280
|
columnType: n.columnType,
|
|
308
|
-
rowReorderable:
|
|
309
|
-
className:
|
|
281
|
+
rowReorderable: G,
|
|
282
|
+
className: M,
|
|
310
283
|
render: e.cellRender,
|
|
311
|
-
cells:
|
|
312
|
-
columnIndex:
|
|
313
|
-
columnsCount:
|
|
284
|
+
cells: Ft(e.cells, n.cells),
|
|
285
|
+
columnIndex: C,
|
|
286
|
+
columnsCount: y.length,
|
|
314
287
|
rowType: t.rowType,
|
|
315
288
|
level: t.level,
|
|
316
289
|
expanded: t.expanded,
|
|
317
290
|
dataIndex: t.dataIndex,
|
|
318
|
-
rowDataIndex:
|
|
319
|
-
columnPosition:
|
|
291
|
+
rowDataIndex: o,
|
|
292
|
+
columnPosition: nt,
|
|
320
293
|
style: {},
|
|
321
294
|
ariaColumnIndex: n.ariaColumnIndex,
|
|
322
|
-
isSelected: (n == null ? void 0 : n._type) === "edit" ?
|
|
323
|
-
isSorted: !!
|
|
324
|
-
isInEdit:
|
|
325
|
-
isAlt:
|
|
326
|
-
unstyled:
|
|
327
|
-
group: t.group
|
|
328
|
-
localization: _,
|
|
329
|
-
intl: nt,
|
|
330
|
-
_rowSpan: w
|
|
295
|
+
isSelected: (n == null ? void 0 : n._type) === "edit" ? a : Array.isArray(a) && a.indexOf(C) > -1,
|
|
296
|
+
isSorted: !!Ne(n.field, e.sort),
|
|
297
|
+
isInEdit: i,
|
|
298
|
+
isAlt: d,
|
|
299
|
+
unstyled: S,
|
|
300
|
+
group: t.group
|
|
331
301
|
};
|
|
332
302
|
return n.cell ? /* @__PURE__ */ l.createElement(
|
|
333
|
-
|
|
303
|
+
Zt,
|
|
334
304
|
{
|
|
335
|
-
key:
|
|
336
|
-
isClient:
|
|
337
|
-
dataItem:
|
|
338
|
-
rowDataIndex:
|
|
339
|
-
columnIndex:
|
|
305
|
+
key: L,
|
|
306
|
+
isClient: Dt(Y),
|
|
307
|
+
dataItem: P.dataItem,
|
|
308
|
+
rowDataIndex: P.rowDataIndex,
|
|
309
|
+
columnIndex: P.columnIndex
|
|
340
310
|
},
|
|
341
|
-
/* @__PURE__ */ l.createElement(
|
|
342
|
-
) : /* @__PURE__ */ l.createElement(
|
|
311
|
+
/* @__PURE__ */ l.createElement(Y, { ...P })
|
|
312
|
+
) : /* @__PURE__ */ l.createElement(Y, { key: L, ...P });
|
|
343
313
|
}),
|
|
344
|
-
isInEdit:
|
|
345
|
-
isSelected: typeof
|
|
314
|
+
isInEdit: i,
|
|
315
|
+
isSelected: typeof a == "boolean" && a
|
|
346
316
|
};
|
|
347
317
|
};
|
|
348
|
-
let
|
|
349
|
-
if (
|
|
350
|
-
for (let t = 0; t <
|
|
351
|
-
const r =
|
|
318
|
+
let de = 0;
|
|
319
|
+
if (k && $)
|
|
320
|
+
for (let t = 0; t < $.topCacheCount + $.attendedSkip - (e.skip || 0); t++) {
|
|
321
|
+
const r = b.shift();
|
|
352
322
|
if (r)
|
|
353
|
-
|
|
323
|
+
b.push(r), de++, r.rowType === "groupHeader" && t--;
|
|
354
324
|
else
|
|
355
325
|
break;
|
|
356
326
|
}
|
|
357
|
-
const
|
|
358
|
-
let
|
|
359
|
-
const Q = [],
|
|
360
|
-
let
|
|
361
|
-
if (
|
|
327
|
+
const ce = (t) => t >= b.length - de;
|
|
328
|
+
let se = e.skip || 0;
|
|
329
|
+
const Q = [], me = !b.length, ue = v.length + (e.filterable ? 1 : 0) + 1;
|
|
330
|
+
let K = 0;
|
|
331
|
+
if (b.length) {
|
|
362
332
|
let t = -1, r = 0;
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
o.
|
|
366
|
-
|
|
367
|
-
if (B = s + ge + r, Q.push(
|
|
333
|
+
(V || b).forEach((o, d) => {
|
|
334
|
+
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 = lt(o, f, t, i);
|
|
336
|
+
if (K = c + ue + r, Q.push(
|
|
368
337
|
/* @__PURE__ */ l.createElement(
|
|
369
|
-
|
|
338
|
+
At,
|
|
370
339
|
{
|
|
371
|
-
key:
|
|
340
|
+
key: f,
|
|
372
341
|
dataItem: o.dataItem,
|
|
373
|
-
isAltRow:
|
|
374
|
-
isInEdit:
|
|
342
|
+
isAltRow: i,
|
|
343
|
+
isInEdit: E.isInEdit,
|
|
375
344
|
rowType: o.rowType,
|
|
376
|
-
isRowReorderable:
|
|
377
|
-
isHidden:
|
|
345
|
+
isRowReorderable: G,
|
|
346
|
+
isHidden: ce(d),
|
|
378
347
|
onClick: null,
|
|
379
348
|
onDoubleClick: null,
|
|
380
349
|
selectedField: e.selectedField,
|
|
381
350
|
rowHeight: e.rowHeight,
|
|
382
351
|
render: e.rowRender,
|
|
383
|
-
ariaRowIndex:
|
|
384
|
-
absoluteRowIndex:
|
|
385
|
-
dataIndex:
|
|
386
|
-
isSelected:
|
|
387
|
-
rows: e.rows
|
|
352
|
+
ariaRowIndex: K,
|
|
353
|
+
absoluteRowIndex: c,
|
|
354
|
+
dataIndex: k && !e.groupable ? c : t,
|
|
355
|
+
isSelected: E.isSelected
|
|
388
356
|
},
|
|
389
|
-
|
|
357
|
+
E.row
|
|
390
358
|
)
|
|
391
359
|
), e.detail && o.rowType === "data" && o.expanded) {
|
|
392
|
-
const n =
|
|
393
|
-
r++,
|
|
360
|
+
const n = y.length - (e.expandField || T.enabled ? 1 : 0) - (e.group ? e.group.length : 0) || 1;
|
|
361
|
+
r++, K = c + ue + r, Q.push(
|
|
394
362
|
/* @__PURE__ */ l.createElement(
|
|
395
363
|
"tr",
|
|
396
364
|
{
|
|
397
|
-
key:
|
|
398
|
-
className:
|
|
365
|
+
key: g,
|
|
366
|
+
className: m(s.detailTr({ isAlt: i })),
|
|
399
367
|
style: {
|
|
400
|
-
visibility:
|
|
368
|
+
visibility: ce(d) ? "hidden" : "",
|
|
401
369
|
height: e.detailRowHeight
|
|
402
370
|
},
|
|
403
371
|
role: "row",
|
|
404
|
-
"aria-rowindex":
|
|
372
|
+
"aria-rowindex": K
|
|
405
373
|
},
|
|
406
|
-
e.group && e.group.map((
|
|
407
|
-
var
|
|
408
|
-
const
|
|
374
|
+
e.group && e.group.map((C, H) => {
|
|
375
|
+
var M;
|
|
376
|
+
const A = (M = E == null ? void 0 : E.row[H]) == null ? void 0 : M.props.style, L = A ? { left: A.left, right: A.right } : {};
|
|
409
377
|
return /* @__PURE__ */ l.createElement(
|
|
410
|
-
|
|
378
|
+
Te,
|
|
411
379
|
{
|
|
412
380
|
id: "",
|
|
413
381
|
dataIndex: o.dataIndex,
|
|
414
|
-
field:
|
|
382
|
+
field: C.field,
|
|
415
383
|
dataItem: o.dataItem,
|
|
416
|
-
key:
|
|
417
|
-
columnPosition:
|
|
384
|
+
key: H,
|
|
385
|
+
columnPosition: L,
|
|
418
386
|
style: {},
|
|
419
|
-
ariaColumnIndex: 1 +
|
|
387
|
+
ariaColumnIndex: 1 + H,
|
|
420
388
|
isSelected: !1,
|
|
421
389
|
locked: e.lockGroups,
|
|
422
390
|
cells: e.cells,
|
|
@@ -424,22 +392,22 @@ const hl = l.forwardRef((e, te) => {
|
|
|
424
392
|
}
|
|
425
393
|
);
|
|
426
394
|
}),
|
|
427
|
-
(e.expandField ||
|
|
428
|
-
|
|
395
|
+
(e.expandField || T.enabled) && /* @__PURE__ */ l.createElement(
|
|
396
|
+
_t,
|
|
429
397
|
{
|
|
430
|
-
unstyled:
|
|
431
|
-
id:
|
|
398
|
+
unstyled: S,
|
|
399
|
+
id: q.generateNavigatableId(`${g}-dhcell`, x)
|
|
432
400
|
}
|
|
433
401
|
),
|
|
434
402
|
/* @__PURE__ */ l.createElement(
|
|
435
|
-
|
|
403
|
+
Ot,
|
|
436
404
|
{
|
|
437
405
|
dataItem: o.dataItem,
|
|
438
406
|
dataIndex: o.dataIndex,
|
|
439
407
|
colSpan: n,
|
|
440
408
|
ariaColIndex: 2 + (e.group ? e.group.length : 0),
|
|
441
409
|
detail: e.detail,
|
|
442
|
-
id:
|
|
410
|
+
id: q.generateNavigatableId(`${g}-dcell`, x)
|
|
443
411
|
}
|
|
444
412
|
)
|
|
445
413
|
)
|
|
@@ -447,174 +415,172 @@ const hl = l.forwardRef((e, te) => {
|
|
|
447
415
|
}
|
|
448
416
|
});
|
|
449
417
|
}
|
|
450
|
-
const
|
|
451
|
-
size:
|
|
452
|
-
total:
|
|
418
|
+
const fe = {
|
|
419
|
+
size: w,
|
|
420
|
+
total: I,
|
|
453
421
|
skip: e.skip || 0,
|
|
454
422
|
take: (e.take !== void 0 ? e.take : e.pageSize) || 10,
|
|
455
|
-
...
|
|
456
|
-
},
|
|
423
|
+
...Vt(e.pageable || {})
|
|
424
|
+
}, ge = /* @__PURE__ */ l.createElement(jt, null, e.pager ? /* @__PURE__ */ l.createElement(e.pager, { ...fe }) : /* @__PURE__ */ l.createElement(gt, { className: m(s.pager({})), ...fe })), at = (t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: p(t) }), rt = (Se = e.cells) != null && Se.footerCell || u.current.some((t) => {
|
|
457
425
|
var r;
|
|
458
426
|
return !!(t.footerCell || (r = t.cells) != null && r.footerCell);
|
|
459
427
|
}) ? /* @__PURE__ */ l.createElement(
|
|
460
|
-
|
|
428
|
+
vt,
|
|
461
429
|
{
|
|
462
|
-
size:
|
|
430
|
+
size: w,
|
|
463
431
|
staticHeaders: e.scrollable !== "none",
|
|
464
432
|
row: /* @__PURE__ */ l.createElement(
|
|
465
|
-
|
|
433
|
+
Bt,
|
|
466
434
|
{
|
|
467
435
|
cells: e.cells,
|
|
468
436
|
idPrefix: x,
|
|
469
|
-
columns:
|
|
470
|
-
ariaRowIndex:
|
|
437
|
+
columns: u.current,
|
|
438
|
+
ariaRowIndex: K + 1
|
|
471
439
|
}
|
|
472
440
|
),
|
|
473
|
-
cols:
|
|
441
|
+
cols: y.map(at)
|
|
474
442
|
}
|
|
475
|
-
) : null,
|
|
443
|
+
) : null, be = /* @__PURE__ */ l.createElement(Mt, null, y.map((t, r) => /* @__PURE__ */ l.createElement(
|
|
476
444
|
"col",
|
|
477
445
|
{
|
|
478
446
|
key: r.toString(),
|
|
479
|
-
className:
|
|
480
|
-
width:
|
|
447
|
+
className: Ne(t.field, e.sort) ? m(s.sorted({})) : void 0,
|
|
448
|
+
width: p(t)
|
|
481
449
|
}
|
|
482
|
-
))),
|
|
450
|
+
))), ye = e.reorderable || D, { detail: ll, cells: al, ...Ce } = e, he = /* @__PURE__ */ l.createElement(
|
|
483
451
|
"tbody",
|
|
484
452
|
{
|
|
485
453
|
role: "rowgroup",
|
|
486
|
-
className:
|
|
487
|
-
...
|
|
454
|
+
className: m(s.tbody({})),
|
|
455
|
+
...bt
|
|
488
456
|
},
|
|
489
457
|
Q
|
|
490
458
|
);
|
|
491
|
-
let X =
|
|
492
|
-
if (
|
|
493
|
-
|
|
459
|
+
let X = he;
|
|
460
|
+
if (G && (X = /* @__PURE__ */ l.createElement(
|
|
461
|
+
qt,
|
|
494
462
|
{
|
|
495
|
-
unstyled:
|
|
496
|
-
columns:
|
|
463
|
+
unstyled: s,
|
|
464
|
+
columns: u.current,
|
|
497
465
|
rowReorderSettings: e.rowReorderable
|
|
498
466
|
},
|
|
499
|
-
|
|
467
|
+
he
|
|
500
468
|
)), e.scrollable === "none")
|
|
501
469
|
return /* @__PURE__ */ l.createElement(
|
|
502
|
-
|
|
470
|
+
Pe,
|
|
503
471
|
{
|
|
504
|
-
gridRef:
|
|
505
|
-
gridProps:
|
|
506
|
-
columnsRef:
|
|
507
|
-
columnsMapRef:
|
|
508
|
-
dataRef:
|
|
509
|
-
slicedData:
|
|
510
|
-
isFixedVirtualScroll: J ===
|
|
472
|
+
gridRef: ee,
|
|
473
|
+
gridProps: Ce,
|
|
474
|
+
columnsRef: j(),
|
|
475
|
+
columnsMapRef: v,
|
|
476
|
+
dataRef: b,
|
|
477
|
+
slicedData: V,
|
|
478
|
+
isFixedVirtualScroll: J === W,
|
|
511
479
|
id: R,
|
|
512
|
-
total:
|
|
480
|
+
total: I,
|
|
513
481
|
detailExpandable: !!e.detail
|
|
514
482
|
},
|
|
515
|
-
/* @__PURE__ */ l.createElement(
|
|
483
|
+
/* @__PURE__ */ l.createElement(Oe, null, /* @__PURE__ */ l.createElement(
|
|
516
484
|
"div",
|
|
517
485
|
{
|
|
518
486
|
id: e.id,
|
|
519
487
|
style: e.style,
|
|
520
|
-
className:
|
|
488
|
+
className: m(s.wrapper({ size: w }), e.className),
|
|
521
489
|
"aria-label": e.ariaLabel,
|
|
522
|
-
...
|
|
490
|
+
...ke
|
|
523
491
|
},
|
|
492
|
+
re,
|
|
524
493
|
ie,
|
|
525
|
-
de,
|
|
526
494
|
/* @__PURE__ */ l.createElement(
|
|
527
|
-
|
|
495
|
+
Wt,
|
|
528
496
|
{
|
|
529
497
|
selectable: e.selectable,
|
|
530
|
-
className:
|
|
498
|
+
className: m(s.table({ size: w }))
|
|
531
499
|
},
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
/* @__PURE__ */ l.createElement(
|
|
500
|
+
be,
|
|
501
|
+
oe,
|
|
502
|
+
/* @__PURE__ */ l.createElement(ze, { rowReorderable: G }, X)
|
|
535
503
|
),
|
|
536
|
-
|
|
537
|
-
|
|
504
|
+
me && /* @__PURE__ */ l.createElement(Ae, null, O.length ? O : /* @__PURE__ */ l.createElement(Ke, null)),
|
|
505
|
+
ye && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Be, null), /* @__PURE__ */ l.createElement(Ve, null))
|
|
538
506
|
)),
|
|
539
|
-
|
|
540
|
-
e.pageable &&
|
|
541
|
-
/* @__PURE__ */ l.createElement(Qe, { loader: e.loader, showLoader: e.showLoader })
|
|
507
|
+
ne,
|
|
508
|
+
e.pageable && ge
|
|
542
509
|
);
|
|
543
|
-
let
|
|
544
|
-
return
|
|
545
|
-
|
|
510
|
+
let _ = e.style || {};
|
|
511
|
+
return k && (_.height || (_ = Object.assign({}, _, { height: "450px" }))), /* @__PURE__ */ l.createElement(
|
|
512
|
+
Pe,
|
|
546
513
|
{
|
|
547
|
-
gridRef:
|
|
548
|
-
gridProps:
|
|
549
|
-
columnsRef:
|
|
550
|
-
columnsMapRef:
|
|
551
|
-
dataRef:
|
|
552
|
-
slicedData:
|
|
553
|
-
isFixedVirtualScroll: J ===
|
|
514
|
+
gridRef: ee,
|
|
515
|
+
gridProps: Ce,
|
|
516
|
+
columnsRef: j(),
|
|
517
|
+
columnsMapRef: v,
|
|
518
|
+
dataRef: b,
|
|
519
|
+
slicedData: V,
|
|
520
|
+
isFixedVirtualScroll: J === W,
|
|
554
521
|
id: R,
|
|
555
|
-
total:
|
|
522
|
+
total: I,
|
|
556
523
|
detailExpandable: !!e.detail
|
|
557
524
|
},
|
|
558
|
-
/* @__PURE__ */ l.createElement(
|
|
525
|
+
/* @__PURE__ */ l.createElement(Oe, null, /* @__PURE__ */ l.createElement(
|
|
559
526
|
"div",
|
|
560
527
|
{
|
|
561
528
|
id: e.id,
|
|
562
|
-
style:
|
|
563
|
-
className:
|
|
564
|
-
|
|
565
|
-
size:
|
|
566
|
-
virtual:
|
|
529
|
+
style: _,
|
|
530
|
+
className: m(
|
|
531
|
+
s.wrapper({
|
|
532
|
+
size: w,
|
|
533
|
+
virtual: k
|
|
567
534
|
}),
|
|
568
535
|
e.className
|
|
569
536
|
),
|
|
570
537
|
"aria-label": e.ariaLabel,
|
|
571
|
-
...
|
|
538
|
+
...ke
|
|
572
539
|
},
|
|
540
|
+
re,
|
|
573
541
|
ie,
|
|
574
|
-
de,
|
|
575
542
|
/* @__PURE__ */ l.createElement(
|
|
576
543
|
"div",
|
|
577
544
|
{
|
|
578
|
-
className:
|
|
545
|
+
className: m(s.ariaRoot({})),
|
|
579
546
|
role: "grid",
|
|
580
|
-
"aria-colcount":
|
|
581
|
-
"aria-rowcount":
|
|
547
|
+
"aria-colcount": y.length,
|
|
548
|
+
"aria-rowcount": I,
|
|
582
549
|
id: R,
|
|
583
|
-
"aria-label":
|
|
550
|
+
"aria-label": U.toLanguageString(_e, Xt[_e])
|
|
584
551
|
},
|
|
585
|
-
|
|
586
|
-
/* @__PURE__ */ l.createElement("div", { className:
|
|
587
|
-
|
|
552
|
+
oe,
|
|
553
|
+
/* @__PURE__ */ l.createElement("div", { className: m(s.container({})), role: "presentation" }, /* @__PURE__ */ l.createElement(Ut, null, /* @__PURE__ */ l.createElement("div", { className: m(s.content({})), role: "presentation" }, /* @__PURE__ */ l.createElement("div", { className: m(s.tableWrap({})), role: "presentation" }, /* @__PURE__ */ l.createElement(
|
|
554
|
+
$t,
|
|
588
555
|
{
|
|
589
556
|
selectable: e.selectable,
|
|
590
|
-
tableClassName:
|
|
591
|
-
|
|
592
|
-
size:
|
|
557
|
+
tableClassName: m(
|
|
558
|
+
s.table({
|
|
559
|
+
size: w
|
|
593
560
|
})
|
|
594
561
|
),
|
|
595
|
-
tableStyle: { userSelect:
|
|
562
|
+
tableStyle: { userSelect: pe }
|
|
596
563
|
},
|
|
597
|
-
|
|
598
|
-
/* @__PURE__ */ l.createElement(
|
|
599
|
-
),
|
|
564
|
+
be,
|
|
565
|
+
/* @__PURE__ */ l.createElement(ze, { rowReorderable: G }, X)
|
|
566
|
+
), me && /* @__PURE__ */ l.createElement(Ae, null, O.length ? O : /* @__PURE__ */ l.createElement(Ke, null))), k && /* @__PURE__ */ l.createElement(
|
|
600
567
|
"div",
|
|
601
568
|
{
|
|
602
|
-
className:
|
|
569
|
+
className: m(s.heightContainer({})),
|
|
603
570
|
role: "presentation"
|
|
604
571
|
},
|
|
605
|
-
/* @__PURE__ */ l.createElement(
|
|
572
|
+
/* @__PURE__ */ l.createElement(Jt, { isVirtualScroll: k })
|
|
606
573
|
)))),
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
/* @__PURE__ */ l.createElement(
|
|
574
|
+
rt,
|
|
575
|
+
ye && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Be, null), /* @__PURE__ */ l.createElement(Ve, null)),
|
|
576
|
+
/* @__PURE__ */ l.createElement(Lt, null)
|
|
610
577
|
),
|
|
611
|
-
|
|
612
|
-
e.pageable &&
|
|
613
|
-
/* @__PURE__ */ l.createElement(Qe, { loader: e.loader, showLoader: e.showLoader })
|
|
578
|
+
ne,
|
|
579
|
+
e.pageable && ge
|
|
614
580
|
))
|
|
615
581
|
);
|
|
616
582
|
});
|
|
617
|
-
|
|
583
|
+
tl.displayName = "KendoReactGridComponent";
|
|
618
584
|
export {
|
|
619
|
-
|
|
585
|
+
tl as GridComponent
|
|
620
586
|
};
|