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