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