@progress/kendo-react-grid 14.3.0-develop.1 → 14.3.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.
Files changed (88) hide show
  1. package/GridClientContextReader.js +1 -1
  2. package/GridClientContextReader.mjs +10 -9
  3. package/GridClientWrapper.js +1 -1
  4. package/GridClientWrapper.mjs +711 -624
  5. package/GridComponent.js +1 -1
  6. package/GridComponent.mjs +427 -374
  7. package/GridState.d.ts +2 -0
  8. package/GridState.js +1 -1
  9. package/GridState.mjs +98 -90
  10. package/{toolbar-tools/smartbox/SegmentedControl.d.ts → cells/pincell/GridPinCell.d.ts} +4 -2
  11. package/cells/pincell/GridPinCell.js +9 -0
  12. package/cells/pincell/GridPinCell.mjs +19 -0
  13. package/cells/pincell/GridPinCellServer.d.ts +15 -0
  14. package/cells/pincell/GridPinCellServer.js +8 -0
  15. package/cells/pincell/GridPinCellServer.mjs +32 -0
  16. package/cells/pincell/GridPinCellServerContainer.d.ts +11 -0
  17. package/cells/pincell/GridPinCellServerContainer.js +9 -0
  18. package/cells/pincell/GridPinCellServerContainer.mjs +26 -0
  19. package/cells/pincell/GridPinDropdownButton.d.ts +21 -0
  20. package/cells/pincell/GridPinDropdownButton.js +9 -0
  21. package/cells/pincell/GridPinDropdownButton.mjs +58 -0
  22. package/cells/pincell/useGridPinCellClientTdProps.d.ts +24 -0
  23. package/cells/pincell/useGridPinCellClientTdProps.js +9 -0
  24. package/cells/pincell/useGridPinCellClientTdProps.mjs +21 -0
  25. package/cells/pincell/utils.d.ts +20 -0
  26. package/cells/pincell/utils.js +8 -0
  27. package/cells/pincell/utils.mjs +47 -0
  28. package/components/PinnedRowsTable.d.ts +48 -0
  29. package/components/PinnedRowsTable.js +9 -0
  30. package/components/PinnedRowsTable.mjs +133 -0
  31. package/components/StickyGroupTable.js +1 -1
  32. package/components/StickyGroupTable.mjs +1 -1
  33. package/contextMenu/GridContextMenu.d.ts +42 -0
  34. package/contextMenu/GridContextMenu.js +1 -1
  35. package/contextMenu/GridContextMenu.mjs +101 -51
  36. package/contextMenu/enums.d.ts +5 -1
  37. package/contextMenu/enums.js +1 -1
  38. package/contextMenu/enums.mjs +2 -2
  39. package/dist/cdn/js/kendo-react-grid.js +1 -1
  40. package/drag/ColumnResize.d.ts +9 -0
  41. package/drag/ColumnResize.js +1 -1
  42. package/drag/ColumnResize.mjs +105 -115
  43. package/getRowContents.d.ts +2 -2
  44. package/getRowContents.js +1 -1
  45. package/getRowContents.mjs +13 -14
  46. package/header/client/GridHeaderPinCell.d.ts +12 -0
  47. package/header/client/GridHeaderPinCell.js +9 -0
  48. package/header/client/GridHeaderPinCell.mjs +14 -0
  49. package/index.d.mts +5 -2
  50. package/index.d.ts +5 -2
  51. package/index.js +1 -1
  52. package/index.mjs +97 -95
  53. package/interfaces/ColumnType.d.ts +1 -1
  54. package/interfaces/GridCellsSettings.d.ts +23 -0
  55. package/interfaces/GridProps.d.ts +70 -1
  56. package/interfaces/GridRowProps.d.ts +4 -0
  57. package/interfaces/GridRowsSettings.d.ts +11 -0
  58. package/interfaces/events.d.ts +17 -0
  59. package/messages/index.d.ts +20 -0
  60. package/messages/index.js +2 -2
  61. package/messages/index.mjs +110 -102
  62. package/package-metadata.js +1 -1
  63. package/package-metadata.mjs +2 -2
  64. package/package.json +18 -17
  65. package/rows/GridRow.js +1 -1
  66. package/rows/GridRow.mjs +25 -24
  67. package/rows/GridRowRenderer.d.ts +1 -0
  68. package/rows/GridRowRenderer.js +1 -1
  69. package/rows/GridRowRenderer.mjs +39 -36
  70. package/stacked/GridStackedRow.d.ts +5 -0
  71. package/stacked/GridStackedRow.js +1 -1
  72. package/stacked/GridStackedRow.mjs +118 -116
  73. package/stacked/StackedModeRow.d.ts +1 -0
  74. package/stacked/StackedModeRow.js +1 -1
  75. package/stacked/StackedModeRow.mjs +13 -11
  76. package/toolbar-tools/smartbox/SmartBox.js +1 -1
  77. package/toolbar-tools/smartbox/SmartBox.mjs +102 -94
  78. package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.d.ts +12 -3
  79. package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.js +1 -1
  80. package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.mjs +42 -41
  81. package/toolbar-tools/smartbox/index.d.ts +0 -1
  82. package/toolbar-tools/smartbox/interfaces/index.d.ts +0 -1
  83. package/utils/index.d.ts +1 -0
  84. package/utils/index.js +1 -1
  85. package/utils/index.mjs +44 -44
  86. package/toolbar-tools/smartbox/SegmentedControl.js +0 -8
  87. package/toolbar-tools/smartbox/SegmentedControl.mjs +0 -109
  88. package/toolbar-tools/smartbox/interfaces/SegmentedControlTypes.d.ts +0 -66
package/GridComponent.mjs CHANGED
@@ -5,134 +5,141 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import * as l from "react";
9
- import { uGrid as It, hasValidLicense as kt, getLicenseMessage as xt, validatePackage as Ht, getter as Y, classNames as c, WatermarkOverlay as Ae } from "@progress/kendo-react-common";
10
- import { getDetailExpandableOptions as Nt, getGroupExpandableOptions as Dt, getSelectionOptions as Lt, tableKeyboardNavigationTools as _, Pager as Pt, tableKeyboardNavigationBodyAttributes as Tt, tableKeyboardNavigationScopeAttributes as Fe } from "@progress/kendo-react-data-tools";
11
- import { GridHierarchyCell as Mt } from "./cells/hierarchycell/GridHierarchyCell.mjs";
12
- import { Header as zt } from "./header/Header.mjs";
13
- import { HeaderRow as Bt } from "./header/HeaderRow.mjs";
14
- import { FilterRow as Kt } from "./header/FilterRow.mjs";
15
- import { GroupPanel as Wt } from "./header/GroupPanel.mjs";
16
- import { Footer as At } from "./footer/Footer.mjs";
17
- import { isRowReorderEnabled as Ft, getRowSpanOptions as Oe, getColumnWidth as Z, isSorted as Ot, flatData as _t, autoGenerateColumns as Vt, mapColumns as jt, clientColumn as $t, getColSpan as Ut, readColumns as qt, getFlatColumnsState as Jt, getColumnState as p } from "./utils/index.mjs";
18
- import { normalizeAutoProcessData as Qt, processData as Xt } from "./utils/dataProcessing.mjs";
19
- import { GridGroupCell as Yt } from "./cells/groupcell/GridGroupCell.mjs";
20
- import { GridHeaderGroupSpacerCell as Zt } from "./header/GridHeaderGroupSpacerCell.mjs";
21
- import { GridHeaderSelectionCell as pt } from "./header/GridHeaderSelectionCell.mjs";
22
- import { GridNoRecords as _e } from "./components/noRecords/GridNoRecords.mjs";
23
- import { operators as Ve } from "./filterCommon.mjs";
24
- import { FooterRow as ea } from "./footer/FooterRow.mjs";
25
- import { normalize as ta } from "./paging/GridPagerSettings.mjs";
26
- import { packageMetadata as ee } from "./package-metadata.mjs";
27
- import { GridDetailCell as aa } from "./cells/detailcell/GridDetailCell.mjs";
28
- import { GridNoRecordsContainer as je } from "./components/noRecords/GridNoRecordsContainer.mjs";
29
- import { GridClientWrapper as $e } from "./GridClientWrapper.mjs";
30
- import { GridColGroup as la } from "./components/colGroup/GridColGroup.mjs";
31
- import { GridTable as na } from "./components/table/GridTable.mjs";
32
- import { GridDropClue as Ue } from "./components/GridDropClue.mjs";
33
- import { GridDragClue as qe } from "./components/GridDragClue.mjs";
34
- import { GridTableBody as Je } from "./components/table/GridTableBody.mjs";
35
- import { PagerContainer as ia } from "./components/PagerContainer.mjs";
36
- import { GridTableScrollable as ra } from "./components/table/GridTableScrollable.mjs";
37
- import { GridElementContainer as Qe } from "./components/GridElementContainer.mjs";
38
- import { GridContainerElementContainer as oa } from "./components/GridContainerElementContainer.mjs";
39
- import { VirtualScrollHeightContainer as da } from "./components/VirtualScrollHeightContainer.mjs";
40
- import { gridAriaLabel as Xe, messages as ma } from "./messages/index.mjs";
41
- import { GridReorderableRowsContainer as sa } from "./components/GridDraggableRowsContainer.mjs";
42
- import { GridRowReorderCell as ca } from "./cells/rowreordercell/GridRowReorderCell.mjs";
43
- import { GridHeaderRowReorderCell as ua } from "./header/client/GridHeaderRowReorderCell.mjs";
44
- import { GridLoader as Ye } from "./components/GridLoader.mjs";
45
- import { gridPremiumFeatures as fa } from "./utils/premium.mjs";
46
- import { LocalizationService as ga, IntlService as ba } from "@progress/kendo-react-intl";
47
- import { getVirtualCellsToRender as ha } from "./utils/virtualColumns.mjs";
48
- import { GridEditDialog as Ca } from "./components/GridEditDialog.mjs";
49
- import { GridSelectionCellServer as wa } from "./cells/selectioncell/GridSelectionCellServer.mjs";
50
- import { GridSelectionCell as ya } from "./cells/selectioncell/GridSelectionCell.mjs";
51
- import { GridHierarchyCellServer as Ea } from "./cells/hierarchycell/GridHierarchyCellServer.mjs";
52
- import { GridRowReorderCellServer as Ra } from "./cells/rowreordercell/GridRowReorderCellServer.mjs";
53
- import { GridDetailCellServer as Sa } from "./cells/detailcell/GridDetailCellServer.mjs";
54
- import { GridGroupCellServer as va } from "./cells/groupcell/GridGroupCellServer.mjs";
55
- import { StackedModeColGroup as Ga } from "./stacked/StackedModeComponents.mjs";
56
- import { GridRowRenderer as Ia } from "./rows/GridRowRenderer.mjs";
57
- import { GridDetailRowRenderer as ka } from "./rows/GridDetailRowRenderer.mjs";
58
- import { StickyGroupTable as Ze } from "./components/StickyGroupTable.mjs";
59
- import { getRowContents as xa } from "./getRowContents.mjs";
60
- const Ha = l.forwardRef((e, pe) => {
61
- var ke, xe, He, Ne, De, Le, Pe, Te, Me, ze, Be, Ke;
62
- const k = e.id + "-role-element-id", E = e.navigatable ? k : "";
63
- let b = e.columnsState || [];
64
- const et = (a, r, i, o, t, n, d) => {
65
- const g = [], W = _t(
66
- g,
67
- a,
68
- r,
69
- { index: i },
70
- o !== void 0,
8
+ import * as n from "react";
9
+ import { uGrid as Wt, hasValidLicense as At, getLicenseMessage as Ft, validatePackage as Ot, getter as Y, classNames as c, WatermarkOverlay as $e } from "@progress/kendo-react-common";
10
+ import { getDetailExpandableOptions as _t, getGroupExpandableOptions as Vt, getSelectionOptions as jt, tableKeyboardNavigationTools as j, Pager as $t, tableKeyboardNavigationBodyAttributes as Zt, tableKeyboardNavigationScopeAttributes as Ze } from "@progress/kendo-react-data-tools";
11
+ import { GridHierarchyCell as Ut } from "./cells/hierarchycell/GridHierarchyCell.mjs";
12
+ import { Header as qt } from "./header/Header.mjs";
13
+ import { HeaderRow as Jt } from "./header/HeaderRow.mjs";
14
+ import { FilterRow as Qt } from "./header/FilterRow.mjs";
15
+ import { GroupPanel as Xt } from "./header/GroupPanel.mjs";
16
+ import { Footer as Yt } from "./footer/Footer.mjs";
17
+ import { isRowReorderEnabled as pt, getRowSpanOptions as Ue, getColumnWidth as p, isSorted as ea, flatData as ta, autoGenerateColumns as aa, mapColumns as la, clientColumn as na, getColSpan as ia, readColumns as ra, getFlatColumnsState as oa, getColumnState as ee } from "./utils/index.mjs";
18
+ import { normalizeAutoProcessData as da, processData as sa } from "./utils/dataProcessing.mjs";
19
+ import { orderBy as qe } from "@progress/kendo-data-query";
20
+ import { GridGroupCell as ma } from "./cells/groupcell/GridGroupCell.mjs";
21
+ import { GridHeaderGroupSpacerCell as ca } from "./header/GridHeaderGroupSpacerCell.mjs";
22
+ import { GridHeaderSelectionCell as ua } from "./header/GridHeaderSelectionCell.mjs";
23
+ import { GridNoRecords as Je } from "./components/noRecords/GridNoRecords.mjs";
24
+ import { operators as Qe } from "./filterCommon.mjs";
25
+ import { FooterRow as fa } from "./footer/FooterRow.mjs";
26
+ import { normalize as ga } from "./paging/GridPagerSettings.mjs";
27
+ import { packageMetadata as te } from "./package-metadata.mjs";
28
+ import { GridDetailCell as ba } from "./cells/detailcell/GridDetailCell.mjs";
29
+ import { GridNoRecordsContainer as Xe } from "./components/noRecords/GridNoRecordsContainer.mjs";
30
+ import { GridClientWrapper as Ye } from "./GridClientWrapper.mjs";
31
+ import { GridColGroup as ha } from "./components/colGroup/GridColGroup.mjs";
32
+ import { GridTable as wa } from "./components/table/GridTable.mjs";
33
+ import { GridDropClue as pe } from "./components/GridDropClue.mjs";
34
+ import { GridDragClue as et } from "./components/GridDragClue.mjs";
35
+ import { GridTableBody as tt } from "./components/table/GridTableBody.mjs";
36
+ import { PagerContainer as Ca } from "./components/PagerContainer.mjs";
37
+ import { GridTableScrollable as Ra } from "./components/table/GridTableScrollable.mjs";
38
+ import { GridElementContainer as at } from "./components/GridElementContainer.mjs";
39
+ import { GridContainerElementContainer as ya } from "./components/GridContainerElementContainer.mjs";
40
+ import { VirtualScrollHeightContainer as Ea } from "./components/VirtualScrollHeightContainer.mjs";
41
+ import { gridAriaLabel as lt, messages as Sa } from "./messages/index.mjs";
42
+ import { GridReorderableRowsContainer as va } from "./components/GridDraggableRowsContainer.mjs";
43
+ import { GridRowReorderCell as Ga } from "./cells/rowreordercell/GridRowReorderCell.mjs";
44
+ import { GridHeaderRowReorderCell as Ia } from "./header/client/GridHeaderRowReorderCell.mjs";
45
+ import { GridLoader as nt } from "./components/GridLoader.mjs";
46
+ import { gridPremiumFeatures as ka } from "./utils/premium.mjs";
47
+ import { LocalizationService as xa, IntlService as Ha } from "@progress/kendo-react-intl";
48
+ import { getVirtualCellsToRender as La } from "./utils/virtualColumns.mjs";
49
+ import { GridEditDialog as Na } from "./components/GridEditDialog.mjs";
50
+ import { GridSelectionCellServer as Da } from "./cells/selectioncell/GridSelectionCellServer.mjs";
51
+ import { GridSelectionCell as Ta } from "./cells/selectioncell/GridSelectionCell.mjs";
52
+ import { GridHierarchyCellServer as Pa } from "./cells/hierarchycell/GridHierarchyCellServer.mjs";
53
+ import { GridRowReorderCellServer as Ba } from "./cells/rowreordercell/GridRowReorderCellServer.mjs";
54
+ import { GridDetailCellServer as Ma } from "./cells/detailcell/GridDetailCellServer.mjs";
55
+ import { GridGroupCellServer as za } from "./cells/groupcell/GridGroupCellServer.mjs";
56
+ import { GridPinCell as Ka } from "./cells/pincell/GridPinCell.mjs";
57
+ import { GridPinCellServer as Wa } from "./cells/pincell/GridPinCellServer.mjs";
58
+ import { GridHeaderPinCell as Aa } from "./header/client/GridHeaderPinCell.mjs";
59
+ import { StackedModeColGroup as Fa } from "./stacked/StackedModeComponents.mjs";
60
+ import { GridRowRenderer as Oa } from "./rows/GridRowRenderer.mjs";
61
+ import { GridDetailRowRenderer as _a } from "./rows/GridDetailRowRenderer.mjs";
62
+ import { StickyGroupTable as it } from "./components/StickyGroupTable.mjs";
63
+ import { PinnedRowsTable as rt } from "./components/PinnedRowsTable.mjs";
64
+ import { getRowContents as Va } from "./getRowContents.mjs";
65
+ const ja = n.forwardRef((e, ot) => {
66
+ var Ne, De, Te, Pe, Be, Me, ze, Ke, We, Ae, Fe, Oe, _e, Ve;
67
+ const L = e.id + "-role-element-id", y = e.navigatable ? L : "";
68
+ let w = e.columnsState || [];
69
+ const dt = (t, i, r, o, a, l, d) => {
70
+ const h = [], F = ta(
71
+ h,
71
72
  t,
72
- n,
73
- ht.defaultExpand,
73
+ i,
74
+ { index: r },
75
+ o !== void 0,
76
+ a,
77
+ l,
78
+ Gt.defaultExpand,
74
79
  d
75
80
  );
76
- return { flattedData: g, resolvedGroupsCount: W };
77
- }, tt = (a) => {
78
- const r = a.filter(
79
- (i) => i && i.type && i.type.displayName === "KendoReactGridColumn"
81
+ return { flattedData: h, resolvedGroupsCount: F };
82
+ }, st = (t) => {
83
+ const i = t.filter(
84
+ (r) => r && r.type && r.type.displayName === "KendoReactGridColumn"
80
85
  );
81
- return qt(r, b, { prevId: 0, idPrefix: E });
82
- }, at = () => {
83
- const a = [], r = (i, o) => i == null ? void 0 : i.forEach((t) => {
84
- const n = t.hidden || o;
85
- a.push({
86
- ...t,
87
- hidden: n
88
- }), r(t.children, n);
86
+ return ra(i, w, { prevId: 0, idPrefix: y });
87
+ }, mt = () => {
88
+ const t = [], i = (r, o) => r == null ? void 0 : r.forEach((a) => {
89
+ const l = a.hidden || o;
90
+ t.push({
91
+ ...a,
92
+ hidden: l
93
+ }), i(a.children, l);
89
94
  });
90
- return r(b, !1), a;
91
- }, lt = (a) => {
92
- const r = at();
95
+ return i(w, !1), t;
96
+ }, ct = (t) => {
97
+ const i = mt();
93
98
  return [
94
- a.filter((i) => {
99
+ t.filter((r) => {
95
100
  var o;
96
- return !i.hidden && !((o = r.find((t) => t.id === i.id)) != null && o.hidden);
101
+ return !r.hidden && !((o = i.find((a) => a.id === r.id)) != null && o.hidden);
97
102
  }),
98
- a.filter((i) => {
103
+ t.filter((r) => {
99
104
  var o;
100
- return i.hidden || ((o = r.find((t) => t.id === i.id)) == null ? void 0 : o.hidden);
105
+ return r.hidden || ((o = i.find((a) => a.id === r.id)) == null ? void 0 : o.hidden);
101
106
  })
102
107
  ];
103
- }, nt = (a, r) => {
104
- m = tt(a), m.filter((t) => !t.hidden).length === 0 && (m = Vt(
105
- w,
108
+ }, ut = (t, i) => {
109
+ s = st(t), s.filter((a) => !a.hidden).length === 0 && (s = aa(
110
+ C,
106
111
  e.group,
107
112
  {
108
- column: S.column
113
+ column: v.column
109
114
  },
110
115
  {
111
116
  prevId: 0,
112
- idPrefix: E
117
+ idPrefix: y
113
118
  }
114
- )), rt(m, r);
115
- const [i, o] = lt(m);
116
- m = i, le = o, x = jt(m, b, !0), ne = m.map($t);
117
- }, it = (a, r) => {
118
- const i = (o) => {
119
- var n;
120
- const t = r.find((d) => d.id === o.id);
121
- if (t) {
122
- const d = { ...t };
123
- return d.children = (n = o.children) == null ? void 0 : n.map(i), d;
119
+ )), gt(s, i);
120
+ const [r, o] = ct(s);
121
+ s = r, ne = o, N = la(s, w, !0), ie = s.map(na);
122
+ }, ft = (t, i) => {
123
+ const r = (o) => {
124
+ var l;
125
+ const a = i.find((d) => d.id === o.id);
126
+ if (a) {
127
+ const d = { ...a };
128
+ return d.children = (l = o.children) == null ? void 0 : l.map(r), d;
124
129
  }
125
- return p(o);
130
+ return ee(o);
126
131
  };
127
- b = a.filter((o) => o.parentIndex === -1).map(i);
128
- }, rt = (a, r) => {
129
- a.filter((n) => n.columnType === "checkbox").forEach((n) => {
130
- n.width = n.width || "50px", n.defaultCell = e.isClient ? ya : wa, n.defaultHeaderCell = pt, n._type = "edit";
131
- }), G !== void 0 && a.filter((n) => n.columnType === "reorder").forEach((n) => {
132
- n.width = n.width || "50px", n.defaultCell = e.isClient ? ca : Ra, n.defaultHeaderCell = ua, n.sortable = !1, n.filterable = !1, n.editable = !1;
132
+ w = t.filter((o) => o.parentIndex === -1).map(r);
133
+ }, gt = (t, i) => {
134
+ t.filter((l) => l.columnType === "checkbox").forEach((l) => {
135
+ l.width = l.width || "50px", l.defaultCell = e.isClient ? Ta : Da, l.defaultHeaderCell = ua, l._type = "edit";
136
+ }), I !== void 0 && t.filter((l) => l.columnType === "reorder").forEach((l) => {
137
+ l.width = l.width || "50px", l.defaultCell = e.isClient ? Ga : Ba, l.defaultHeaderCell = Ia, l.sortable = !1, l.filterable = !1, l.editable = !1;
138
+ }), e.pinnable && t.filter((l) => l.columnType === "pin").forEach((l) => {
139
+ l.width = l.width || "48px", l.defaultCell = e.isClient ? Ka : Wa, l.defaultHeaderCell = Aa, l.sortable = !1, l.filterable = !1, l.editable = !1;
133
140
  });
134
- const i = Jt(b);
135
- it(a, i);
141
+ const r = oa(w);
142
+ ft(t, r);
136
143
  const o = {
137
144
  id: "",
138
145
  resizable: !0,
@@ -153,77 +160,77 @@ const Ha = l.forwardRef((e, pe) => {
153
160
  ariaColumnIndex: 0,
154
161
  isAccessible: !0
155
162
  };
156
- let t = 0;
157
- if (S.enabled && e.detail) {
158
- const n = {
163
+ let a = 0;
164
+ if (v.enabled && e.detail) {
165
+ const l = {
159
166
  ...o,
160
167
  _type: "expand",
161
- id: _.generateNavigatableId(`${t++}`, "expand", "column"),
162
- defaultCell: e.isClient ? Mt : Ea,
163
- field: S.column,
164
- headerClassName: c(s.hierarchyCell({}))
168
+ id: j.generateNavigatableId(`${a++}`, "expand", "column"),
169
+ defaultCell: e.isClient ? Ut : Pa,
170
+ field: v.column,
171
+ headerClassName: c(m.hierarchyCell({}))
165
172
  };
166
- a.unshift(n), b.unshift(i.find((d) => d.id === n.id) || p(n));
173
+ t.unshift(l), w.unshift(r.find((d) => d.id === l.id) || ee(l));
167
174
  }
168
- for (let n = 0; n < r; n++) {
175
+ for (let l = 0; l < i; l++) {
169
176
  const d = {
170
177
  ...o,
171
178
  isAccessible: !1,
172
- defaultCell: e.isClient ? Yt : va,
173
- defaultHeaderCell: Zt,
174
- id: _.generateNavigatableId(`${t++}`, "group", "column"),
179
+ defaultCell: e.isClient ? ma : za,
180
+ defaultHeaderCell: ca,
181
+ id: j.generateNavigatableId(`${a++}`, "group", "column"),
175
182
  field: "value",
176
183
  locked: e.lockGroups
177
184
  };
178
- a.unshift(d), b.unshift(i.find((g) => g.id === d.id) || p(d));
185
+ t.unshift(d), w.unshift(r.find((h) => h.id === d.id) || ee(d));
179
186
  }
180
- a.slice(t).forEach((n) => {
181
- n.parentIndex >= 0 && (n.parentIndex += t), n.rowSpannable = n.rowSpannable !== void 0 ? Oe(n.rowSpannable) : me;
187
+ t.slice(a).forEach((l) => {
188
+ l.parentIndex >= 0 && (l.parentIndex += a), l.rowSpannable = l.rowSpannable !== void 0 ? Ue(l.rowSpannable) : se;
182
189
  });
183
- }, te = () => e.isClient ? m : ne, ae = (a) => {
184
- const r = [];
185
- let i = null, o = 0;
186
- if (f.forEach((t, n) => {
187
- let d = parseFloat((t.width || "").toString()) || 10;
188
- if (typeof (t == null ? void 0 : t.width) == "number" && (t != null && t.minResizableWidth) && (t == null ? void 0 : t.width) < (t == null ? void 0 : t.minResizableWidth) && (d = t == null ? void 0 : t.minResizableWidth), typeof (t == null ? void 0 : t.width) == "number" && (t != null && t.minWidth) && (t == null ? void 0 : t.width) < (t == null ? void 0 : t.minWidth) ? d = t == null ? void 0 : t.minWidth : typeof (t == null ? void 0 : t.width) == "number" && (t != null && t.maxWidth) && (t == null ? void 0 : t.width) > (t == null ? void 0 : t.maxWidth) && (d = t == null ? void 0 : t.maxWidth), o) {
189
- o--, i && (i.width += d);
190
+ }, ae = () => e.isClient ? s : ie, le = (t) => {
191
+ const i = [];
192
+ let r = null, o = 0;
193
+ if (g.forEach((a, l) => {
194
+ let d = parseFloat((a.width || "").toString()) || 10;
195
+ if (typeof (a == null ? void 0 : a.width) == "number" && (a != null && a.minResizableWidth) && (a == null ? void 0 : a.width) < (a == null ? void 0 : a.minResizableWidth) && (d = a == null ? void 0 : a.minResizableWidth), typeof (a == null ? void 0 : a.width) == "number" && (a != null && a.minWidth) && (a == null ? void 0 : a.width) < (a == null ? void 0 : a.minWidth) ? d = a == null ? void 0 : a.minWidth : typeof (a == null ? void 0 : a.width) == "number" && (a != null && a.maxWidth) && (a == null ? void 0 : a.width) > (a == null ? void 0 : a.maxWidth) && (d = a == null ? void 0 : a.maxWidth), o) {
196
+ o--, r && (r.width += d);
190
197
  return;
191
198
  }
192
- const g = Math.min(Ut(t, a), f.length - n);
193
- o = g - 1, i = {
199
+ const h = Math.min(ia(a, t), g.length - l);
200
+ o = h - 1, r = {
194
201
  width: d,
195
- colSpan: g,
196
- columnIndex: n
197
- }, r.push(i);
202
+ colSpan: h,
203
+ columnIndex: l
204
+ }, i.push(r);
198
205
  }), e.columnVirtualization) {
199
- const t = dt.current || 0, n = mt.current || parseFloat(((e.style || {}).width || "").toString());
200
- return ha({
201
- cellModels: r,
202
- columns: f,
203
- tableViewPortWidth: n,
204
- scrollLeft: t
206
+ const a = ht.current || 0, l = wt.current || parseFloat(((e.style || {}).width || "").toString());
207
+ return La({
208
+ cellModels: i,
209
+ columns: g,
210
+ tableViewPortWidth: l,
211
+ scrollLeft: a
205
212
  });
206
213
  }
207
- return r;
208
- }, ot = () => {
209
- const { pageable: a, take: r, pageSize: i } = e;
210
- if (!y)
214
+ return i;
215
+ }, bt = () => {
216
+ const { pageable: t, take: i, pageSize: r } = e;
217
+ if (!R)
211
218
  return 0;
212
- if (!a) {
213
- if (r)
214
- return r;
219
+ if (!t) {
215
220
  if (i)
216
221
  return i;
222
+ if (r)
223
+ return r;
217
224
  }
218
- const o = e.rowHeight || ct.current, t = st.current;
219
- return t && o ? Math.ceil(t / o * 1.5) : 0;
225
+ const o = e.rowHeight || Rt.current, a = Ct.current;
226
+ return a && o ? Math.ceil(a / o * 1.5) : 0;
220
227
  };
221
- let u = [], V, m = [], le = [], ne = [], x = [[]];
222
- const dt = e.scrollLeftRef || { current: 0 }, mt = e.widthRef || { current: 0 }, st = e.containerHeightRef || { current: 0 }, ct = e.minRowHeightRef || { current: 0 }, D = e.localization || new ga(e.language), ut = e.intl || new ba((ke = e.locale) != null ? ke : "en"), v = e.unstyled, s = v && v.uGrid ? v.uGrid : It, G = Ft(e.rowReorderable), y = e.scrollable === "virtual" || e.scrollable === void 0 && e.isClient && kt(ee) || !1, C = e.dataLayoutMode === "stacked", H = ((xe = e.group) == null ? void 0 : xe.length) || 0, ie = xt(ee), re = Qt(e.autoProcessData);
223
- let w, R;
224
- if (Array.isArray(e.data) ? (w = e.data, R = (He = e.total) != null ? He : w.length) : (w = ((Ne = e.data) == null ? void 0 : Ne.data) || [], R = (Pe = (Le = e.total) != null ? Le : (De = e.data) == null ? void 0 : De.total) != null ? Pe : w.length), re) {
225
- const a = Xt(w, {
226
- autoProcessData: re,
228
+ let u = [], $, s = [], ne = [], ie = [], N = [[]];
229
+ const ht = e.scrollLeftRef || { current: 0 }, wt = e.widthRef || { current: 0 }, Ct = e.containerHeightRef || { current: 0 }, Rt = e.minRowHeightRef || { current: 0 }, P = e.localization || new xa(e.language), yt = e.intl || new Ha((Ne = e.locale) != null ? Ne : "en"), G = e.unstyled, m = G && G.uGrid ? G.uGrid : Wt, I = pt(e.rowReorderable), R = e.scrollable === "virtual" || e.scrollable === void 0 && e.isClient && At(te) || !1, b = e.dataLayoutMode === "stacked", E = ((De = e.group) == null ? void 0 : De.length) || 0, re = Ft(te), k = da(e.autoProcessData);
230
+ let C, S;
231
+ if (Array.isArray(e.data) ? (C = e.data, S = (Te = e.total) != null ? Te : C.length) : (C = ((Pe = e.data) == null ? void 0 : Pe.data) || [], S = (ze = (Me = e.total) != null ? Me : (Be = e.data) == null ? void 0 : Be.total) != null ? ze : C.length), k) {
232
+ const t = sa(C, {
233
+ autoProcessData: k,
227
234
  group: e.group,
228
235
  sort: e.sort,
229
236
  filter: e.filter,
@@ -232,373 +239,419 @@ const Ha = l.forwardRef((e, pe) => {
232
239
  take: e.take,
233
240
  skip: e.skip,
234
241
  total: e.total,
235
- isVirtualScroll: y,
242
+ isVirtualScroll: R,
236
243
  includePaging: !0
237
244
  });
238
- w = a.data, R = a.total;
245
+ C = t.data, S = t.total;
239
246
  }
240
- const L = w.length === R, { size: h } = e, ft = typeof e.groupable == "object" && e.groupable.footer || "none", gt = typeof e.groupable == "object" && !!e.groupable.stickyHeaders, bt = typeof e.groupable == "object" && !!e.groupable.stickyFooters, P = e.groupable === !0 || typeof e.groupable == "object" && e.groupable.enabled !== !1, S = Nt(!!e.detail), ht = Dt(
247
+ const B = C.length === S, { size: f } = e, Et = typeof e.groupable == "object" && e.groupable.footer || "none", St = typeof e.groupable == "object" && !!e.groupable.stickyHeaders, vt = typeof e.groupable == "object" && !!e.groupable.stickyFooters, M = e.groupable === !0 || typeof e.groupable == "object" && e.groupable.enabled !== !1, v = _t(!!e.detail), Gt = Vt(
241
248
  typeof e.groupable == "object" && e.groupable.enabled !== !1 ? e.groupable.expandable : e.groupable
242
- ), T = !!((Te = e.group) != null && Te.length), { resolvedGroupsCount: Ct, flattedData: wt } = et(
243
- w,
244
- ft,
245
- L ? 0 : e.skip || 0,
249
+ ), z = !!((Ke = e.group) != null && Ke.length), { resolvedGroupsCount: It, flattedData: kt } = dt(
250
+ C,
251
+ Et,
252
+ B ? 0 : e.skip || 0,
246
253
  e.group,
247
254
  e.detailExpand,
248
255
  e.groupExpand,
249
256
  e.dataItemKey
250
257
  );
251
- u = wt;
252
- const j = ot(), M = ((Me = e.virtualSkipRef) == null ? void 0 : Me.current) || 0;
253
- let oe = R;
254
- if (y) {
255
- let a = e.skip || 0;
256
- if ((T || e.pageable) && (a = M, oe = u.length), L || T || e.pageable)
257
- if (j === 0) {
258
- const r = Math.min(e.take || e.pageSize || 20, u.length);
259
- V = u.slice(a, a + r);
258
+ u = kt;
259
+ const Z = bt(), K = ((We = e.virtualSkipRef) == null ? void 0 : We.current) || 0;
260
+ let oe = S;
261
+ if (R) {
262
+ let t = e.skip || 0;
263
+ if ((z || e.pageable) && (t = K, oe = u.length), B || z || e.pageable)
264
+ if (Z === 0) {
265
+ const i = Math.min(e.take || e.pageSize || 20, u.length);
266
+ $ = u.slice(t, t + i);
260
267
  } else
261
- V = u.slice(a, a + j);
268
+ $ = u.slice(t, t + Z);
262
269
  }
263
- const de = Lt(e.selectable), me = Oe(e.rowSpannable), yt = de && de.drag ? "none" : void 0, z = l.useMemo(() => l.Children.toArray(e.children), [e.children]);
264
- nt(z, Ct);
265
- const $ = l.useMemo(() => {
266
- const a = fa(e, m);
270
+ const de = jt(e.selectable), se = Ue(e.rowSpannable), xt = de && de.drag ? "none" : void 0, W = n.useMemo(() => n.Children.toArray(e.children), [e.children]);
271
+ ut(W, It);
272
+ const U = n.useMemo(() => {
273
+ const t = ka(e, s);
267
274
  return {
268
- premium: a.length > 0,
269
- features: a
275
+ premium: t.length > 0,
276
+ features: t
270
277
  };
271
- }, [e, m]), se = l.useMemo(() => $.premium ? !Ht(ee, { component: "Grid", features: $.features }) : !1, [$.premium]), ce = z.map((a) => a && a.type && a.type.displayName === "KendoReactGridToolbar" ? l.cloneElement(a, { ...a.props, _ariaControls: k, ariaLabel: "Top toolbar" }) : null), B = z.filter((a) => a && a.type && a.type.displayName === "KendoReactGridNoRecords"), ue = z.filter(
272
- (a) => a && a.type && a.type.displayName === "KendoReactGridStatusBar"
273
- ), f = m.filter((a) => a.children.length === 0), fe = P && !C && /* @__PURE__ */ l.createElement(Wt, { columns: te(), group: e.group || [], ariaControls: k }), ge = C ? null : /* @__PURE__ */ l.createElement(
274
- zt,
278
+ }, [e, s]), me = n.useMemo(() => U.premium ? !Ot(te, { component: "Grid", features: U.features }) : !1, [U.premium]), ce = W.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? n.cloneElement(t, { ...t.props, _ariaControls: L, ariaLabel: "Top toolbar" }) : null), A = W.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), ue = W.filter(
279
+ (t) => t && t.type && t.type.displayName === "KendoReactGridStatusBar"
280
+ ), g = s.filter((t) => t.children.length === 0), fe = M && !b && /* @__PURE__ */ n.createElement(Xt, { columns: ae(), group: e.group || [], ariaControls: L }), ge = b ? null : /* @__PURE__ */ n.createElement(
281
+ qt,
275
282
  {
276
- size: h,
283
+ size: f,
277
284
  staticHeaders: e.scrollable !== "none",
278
- draggable: e.reorderable || P,
279
- headerRow: /* @__PURE__ */ l.createElement(
280
- Bt,
285
+ draggable: e.reorderable || M,
286
+ headerRow: /* @__PURE__ */ n.createElement(
287
+ Jt,
281
288
  {
282
289
  cells: e.cells,
283
290
  sort: e.sort,
284
291
  sortable: e.sortable,
285
292
  group: e.group || [],
286
- groupable: P,
293
+ groupable: M,
287
294
  filter: e.filter,
288
295
  filterable: e.filterable,
289
- filterOperators: e.filterOperators || Ve,
296
+ filterOperators: e.filterOperators || Qe,
290
297
  columnMenu: e.columnMenu,
291
298
  columnMenuIcon: e.columnMenuIcon,
292
- columns: m,
293
- columnsMap: x,
299
+ columns: s,
300
+ columnsMap: N,
294
301
  navigatable: !!e.navigatable,
295
- localization: D,
296
- unstyled: v,
297
- columnsState: b,
298
- headerSelectionValue: !!(e.select && u.filter((a) => a.rowType === "data").every(
299
- (a) => e.select && e.dataItemKey && Y(e.dataItemKey)(a.dataItem) !== void 0 ? e.select[Y(e.dataItemKey)(a.dataItem)] : void 0
302
+ localization: P,
303
+ unstyled: G,
304
+ columnsState: w,
305
+ headerSelectionValue: !!(e.select && u.filter((t) => t.rowType === "data").every(
306
+ (t) => e.select && e.dataItemKey && Y(e.dataItemKey)(t.dataItem) !== void 0 ? e.select[Y(e.dataItemKey)(t.dataItem)] : void 0
300
307
  ))
301
308
  }
302
309
  ),
303
- filterRow: e.filterable && /* @__PURE__ */ l.createElement(
304
- Kt,
310
+ filterRow: e.filterable && /* @__PURE__ */ n.createElement(
311
+ Qt,
305
312
  {
306
313
  cells: e.cells,
307
- size: h,
308
- columns: m,
314
+ size: f,
315
+ columns: s,
309
316
  filter: e.filter,
310
- filterOperators: e.filterOperators || Ve,
317
+ filterOperators: e.filterOperators || Qe,
311
318
  sort: e.sort,
312
319
  navigatable: !!e.navigatable,
313
- ariaRowIndex: x.length + 1,
314
- localization: D
320
+ ariaRowIndex: N.length + 1,
321
+ localization: P
315
322
  }
316
323
  ) || void 0,
317
- cols: f.map((a, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: Z(a) }))
324
+ cols: g.map((t, i) => /* @__PURE__ */ n.createElement("col", { key: i.toString(), width: p(t) }))
318
325
  }
319
- ), be = f.findIndex((a) => typeof a.colSpan == "function") > -1;
326
+ ), be = g.findIndex((t) => typeof t.colSpan == "function") > -1;
320
327
  let he;
321
- be || (he = ae(null));
322
- const U = ((ze = e.editable) == null ? void 0 : ze.mode) === "dialog", Et = (Be = e.editable) == null ? void 0 : Be.enabled, q = {
323
- leafColumns: f,
324
- columnsState: b,
328
+ be || (he = le(null));
329
+ const q = ((Ae = e.editable) == null ? void 0 : Ae.mode) === "dialog", Ht = (Fe = e.editable) == null ? void 0 : Fe.enabled, we = (_e = (Oe = e.editZoneRef) == null ? void 0 : Oe.current) != null ? _e : "body", Lt = we === "pinned" ? void 0 : e.edit, Ce = we === "body" ? void 0 : e.edit, D = {
330
+ leafColumns: g,
331
+ columnsState: w,
325
332
  cellsToRender: he,
326
- getCellsToRender: ae,
333
+ getCellsToRender: le,
327
334
  hasDynamicColSpan: be,
328
- idPrefix: E,
329
- gridClasses: s,
330
- unstyled: v,
331
- localization: D,
332
- intl: ut,
335
+ idPrefix: y,
336
+ gridClasses: m,
337
+ unstyled: G,
338
+ localization: P,
339
+ intl: yt,
333
340
  cells: e.cells,
334
- isRowReorderable: G,
341
+ isRowReorderable: I,
335
342
  sort: e.sort,
336
343
  editable: e.editable,
337
- edit: e.edit,
338
344
  isClient: e.isClient,
339
- isEditDialog: U,
345
+ isEditDialog: q,
340
346
  dataItemKey: e.dataItemKey,
341
347
  select: e.select,
342
348
  highlight: e.highlight
343
- }, Rt = 0;
349
+ }, Nt = 0;
344
350
  let J = null;
345
- const Ce = (a) => a >= u.length - Rt, Q = [], we = !u.length;
346
- let N = 0;
351
+ const Re = (t) => t >= u.length - Nt, Q = [], ye = !u.length, Ee = n.useMemo(() => {
352
+ var i;
353
+ const t = e.pinnedTopRows || [];
354
+ return k && ((i = e.sort) != null && i.length) ? qe([...t], e.sort) : t;
355
+ }, [e.pinnedTopRows, e.sort, k]), Se = n.useMemo(() => {
356
+ var i;
357
+ const t = e.pinnedBottomRows || [];
358
+ return k && ((i = e.sort) != null && i.length) ? qe([...t], e.sort) : t;
359
+ }, [e.pinnedBottomRows, e.sort, k]), Dt = e.pinnable && Ee.length > 0, Tt = e.pinnable && Se.length > 0;
360
+ let T = 0;
361
+ const Pt = n.useMemo(() => {
362
+ const t = /* @__PURE__ */ new Set();
363
+ return e.pinnedTopRows && e.pinnedTopRows.forEach((i) => t.add(i)), e.pinnedBottomRows && e.pinnedBottomRows.forEach((i) => t.add(i)), t;
364
+ }, [e.pinnedTopRows, e.pinnedBottomRows]);
347
365
  if (u.length) {
348
- const a = x.length + (e.filterable ? 1 : 0) + 1;
349
- let r = e.skip || 0, i = -1, o = 0;
350
- const t = me.enabled ? {} : void 0;
351
- if (y) {
352
- if (M > 0) {
353
- const n = u.slice(0, M).filter((d) => d.rowType === "data").length;
354
- i += n, r += M;
366
+ const t = N.length + (e.filterable ? 1 : 0) + 1;
367
+ let i = e.skip || 0, r = -1, o = 0;
368
+ const a = se.enabled ? {} : void 0;
369
+ if (R) {
370
+ if (K > 0) {
371
+ const l = u.slice(0, K).filter((d) => d.rowType === "data").length;
372
+ r += l, i += K;
355
373
  }
356
- !e.pageable && L && (i += e.skip || 0);
374
+ !e.pageable && B && (r += e.skip || 0);
357
375
  }
358
- (V || u).forEach((n, d) => {
359
- var We;
360
- n.rowType === "data" && i++;
361
- const g = n.dataIndex % 2 !== 0, W = e.dataItemKey && Y(e.dataItemKey)(n.dataItem), A = d + r, F = W || "ai" + A, I = xa(q, n, F, i, g, t);
362
- if (N = A + a + o, U && Et && I.isInEdit && (J = n.dataItem), Q.push(
363
- /* @__PURE__ */ l.createElement(
364
- Ia,
376
+ ($ || u).forEach((l, d) => {
377
+ var je;
378
+ l.rowType === "data" && r++;
379
+ const h = l.dataIndex % 2 !== 0, F = e.dataItemKey && Y(e.dataItemKey)(l.dataItem), O = d + i, _ = F || "ai" + O, H = Va(D, Lt, l, _, r, h, a), zt = l.rowType === "data" ? Pt.has(l.dataItem) : !1;
380
+ if (T = O + t + o, q && Ht && H.isInEdit && (J = l.dataItem), Q.push(
381
+ /* @__PURE__ */ n.createElement(
382
+ Oa,
365
383
  {
366
- key: F,
367
- isStackedMode: C,
368
- item: n,
369
- rowId: F,
370
- dataIndex: i,
371
- idPrefix: E,
372
- ariaRowIndex: N,
373
- absoluteRowIndex: A,
374
- isAltRow: g,
375
- isHidden: Ce(d),
376
- isRowReorderable: G,
384
+ key: _,
385
+ isStackedMode: b,
386
+ item: l,
387
+ rowId: _,
388
+ dataIndex: r,
389
+ idPrefix: y,
390
+ ariaRowIndex: T,
391
+ absoluteRowIndex: O,
392
+ isAltRow: h,
393
+ isHidden: Re(d),
394
+ isRowReorderable: I,
377
395
  rowHeight: e.rowHeight,
378
396
  rows: e.rows,
379
- leafColumns: f,
380
- groupLevelCount: H,
397
+ leafColumns: g,
398
+ groupLevelCount: E,
381
399
  stackedLayoutSettings: e.stackedLayoutSettings,
382
400
  cells: e.cells,
383
- editMode: (We = e.editable) == null ? void 0 : We.mode,
384
- isSelected: I.isSelected,
385
- isHighlighted: I.isHighlighted,
386
- isInEdit: I.isInEdit && !U,
387
- preparedCells: I.row,
388
- showDetailToggle: !!e.detail && !!S.enabled,
389
- isDetailExpanded: !!n.expanded,
390
- detailExpandField: S.column
401
+ editMode: (je = e.editable) == null ? void 0 : je.mode,
402
+ isSelected: H.isSelected,
403
+ isHighlighted: H.isHighlighted,
404
+ isInEdit: H.isInEdit && !q,
405
+ preparedCells: H.row,
406
+ showDetailToggle: !!e.detail && !!v.enabled,
407
+ isDetailExpanded: !!l.expanded,
408
+ detailExpandField: v.column,
409
+ isPinned: zt
391
410
  }
392
411
  )
393
- ), e.detail && n.rowType === "data" && n.expanded) {
412
+ ), e.detail && l.rowType === "data" && l.expanded) {
394
413
  o++;
395
- const O = F + "_1";
396
- N = A + a + o;
397
- const Gt = e.isClient ? aa : Sa;
414
+ const V = _ + "_1";
415
+ T = O + t + o;
416
+ const Kt = e.isClient ? ba : Ma;
398
417
  Q.push(
399
- /* @__PURE__ */ l.createElement(
400
- ka,
418
+ /* @__PURE__ */ n.createElement(
419
+ _a,
401
420
  {
402
- key: O,
403
- isStackedMode: C,
404
- detailRowId: O,
405
- isHidden: Ce(d),
421
+ key: V,
422
+ isStackedMode: b,
423
+ detailRowId: V,
424
+ isHidden: Re(d),
406
425
  detailRowHeight: e.detailRowHeight,
407
- ariaRowIndex: N,
408
- item: n,
409
- groupLevelCount: H,
426
+ ariaRowIndex: T,
427
+ item: l,
428
+ groupLevelCount: E,
410
429
  groupDescriptors: e.group,
411
430
  lockGroups: e.lockGroups,
412
431
  cells: e.cells,
413
- leafColumns: f,
414
- detailExpandableEnabled: !!S.enabled,
415
- preparedCells: I.row,
416
- DetailCell: Gt,
432
+ leafColumns: g,
433
+ detailExpandableEnabled: !!v.enabled,
434
+ preparedCells: H.row,
435
+ DetailCell: Kt,
417
436
  detail: e.detail,
418
- detailCellId: _.generateNavigatableId(`${O}-dcell`, E),
419
- detailHierarchyCellId: S.enabled ? _.generateNavigatableId(`${O}-dhcell`, E) : void 0,
420
- detailTrClassName: c(s.detailTr({ isAlt: g })),
421
- unstyled: v
437
+ detailCellId: j.generateNavigatableId(`${V}-dcell`, y),
438
+ detailHierarchyCellId: v.enabled ? j.generateNavigatableId(`${V}-dhcell`, y) : void 0,
439
+ detailTrClassName: c(m.detailTr({ isAlt: h })),
440
+ unstyled: G
422
441
  }
423
442
  )
424
443
  );
425
444
  }
426
445
  });
427
446
  }
428
- const ye = {
429
- size: h,
430
- total: R,
447
+ const ve = {
448
+ size: f,
449
+ total: S,
431
450
  skip: e.skip || 0,
432
451
  take: (e.take !== void 0 ? e.take : e.pageSize) || 10,
433
- ...ta(e.pageable || {})
434
- }, Ee = /* @__PURE__ */ l.createElement(ia, null, e.pager ? /* @__PURE__ */ l.createElement(e.pager, { ...ye }) : /* @__PURE__ */ l.createElement(Pt, { className: c(s.pager({})), ...ye })), St = (a, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: Z(a) }), Re = (Ke = e.cells) != null && Ke.footerCell || m.some((a) => {
435
- var r;
436
- return !!((r = a.cells) != null && r.footerCell);
437
- }) ? /* @__PURE__ */ l.createElement(
438
- At,
452
+ ...ga(e.pageable || {})
453
+ }, Ge = /* @__PURE__ */ n.createElement(Ca, null, e.pager ? /* @__PURE__ */ n.createElement(e.pager, { ...ve }) : /* @__PURE__ */ n.createElement($t, { className: c(m.pager({})), ...ve })), Bt = (t, i) => /* @__PURE__ */ n.createElement("col", { key: i.toString(), width: p(t) }), Ie = (Ve = e.cells) != null && Ve.footerCell || s.some((t) => {
454
+ var i;
455
+ return !!((i = t.cells) != null && i.footerCell);
456
+ }) ? /* @__PURE__ */ n.createElement(
457
+ Yt,
439
458
  {
440
- size: h,
459
+ size: f,
441
460
  staticHeaders: e.scrollable !== "none",
442
- row: /* @__PURE__ */ l.createElement(
443
- ea,
461
+ row: /* @__PURE__ */ n.createElement(
462
+ fa,
444
463
  {
445
464
  cells: e.cells,
446
- idPrefix: E,
447
- columns: m,
448
- ariaRowIndex: N + 1
465
+ idPrefix: y,
466
+ columns: s,
467
+ ariaRowIndex: T + 1
449
468
  }
450
469
  ),
451
- cols: f.map(St)
470
+ cols: g.map(Bt)
452
471
  }
453
- ) : null, K = C ? /* @__PURE__ */ l.createElement(Ga, { groupLevelCount: H }) : /* @__PURE__ */ l.createElement(la, null, f.map((a, r) => /* @__PURE__ */ l.createElement(
472
+ ) : null, x = b ? /* @__PURE__ */ n.createElement(Fa, { groupLevelCount: E }) : /* @__PURE__ */ n.createElement(ha, null, g.map((t, i) => /* @__PURE__ */ n.createElement(
454
473
  "col",
455
474
  {
456
- key: r.toString(),
457
- className: Ot(a.field, e.sort) ? c(s.sorted({})) : void 0,
458
- width: Z(a)
475
+ key: i.toString(),
476
+ className: ea(t.field, e.sort) ? c(m.sorted({})) : void 0,
477
+ width: p(t)
459
478
  }
460
- ))), Se = e.reorderable || P, { detail: Na, cells: Da, rows: La, ...vt } = e, ve = /* @__PURE__ */ l.createElement(
479
+ ))), ke = e.reorderable || M, { detail: $a, cells: Za, rows: Ua, ...Mt } = e, xe = /* @__PURE__ */ n.createElement(
461
480
  "tbody",
462
481
  {
463
482
  role: "rowgroup",
464
- className: c(s.tbody({})),
465
- ...Tt
483
+ className: c(m.tbody({})),
484
+ ...Zt
466
485
  },
467
486
  Q
468
- ), Ge = J ? /* @__PURE__ */ l.createElement(Ca, { columns: f, customEditDialog: e.editDialog, dataItem: J }) : null;
469
- let X = ve;
470
- G && (X = /* @__PURE__ */ l.createElement(
471
- sa,
487
+ ), He = J ? /* @__PURE__ */ n.createElement(Na, { columns: g, customEditDialog: e.editDialog, dataItem: J }) : null;
488
+ let X = xe;
489
+ I && (X = /* @__PURE__ */ n.createElement(
490
+ va,
472
491
  {
473
- unstyled: s,
474
- columns: m,
492
+ unstyled: m,
493
+ columns: s,
475
494
  rowReorderSettings: e.rowReorderable
476
495
  },
477
- ve
496
+ xe
478
497
  ));
479
- const Ie = {
480
- gridRef: pe,
498
+ const Le = {
499
+ gridRef: ot,
481
500
  innerGrid: e.innerGrid,
482
- gridProps: vt,
483
- columnsRef: te(),
484
- hiddenColumnsRef: le,
485
- columnsMapRef: x,
486
- columnsState: b,
501
+ gridProps: Mt,
502
+ columnsRef: ae(),
503
+ hiddenColumnsRef: ne,
504
+ columnsMapRef: N,
505
+ columnsState: w,
487
506
  dataRef: u,
488
- id: k,
507
+ id: L,
489
508
  virtualTotal: oe,
490
- isAllData: L,
491
- virtualPageSize: j,
492
- isVirtualScroll: y,
509
+ isAllData: B,
510
+ virtualPageSize: Z,
511
+ isVirtualScroll: R,
493
512
  detailExpandable: !!e.detail
494
513
  };
495
- return e.scrollable === "none" ? /* @__PURE__ */ l.createElement($e, { ...Ie }, /* @__PURE__ */ l.createElement(Qe, null, /* @__PURE__ */ l.createElement(
514
+ return e.scrollable === "none" ? /* @__PURE__ */ n.createElement(Ye, { ...Le }, /* @__PURE__ */ n.createElement(at, null, /* @__PURE__ */ n.createElement(
496
515
  "div",
497
516
  {
498
517
  id: e.id,
499
518
  style: e.style,
500
- className: c(s.wrapper({ size: h, isStackedMode: C }), e.className),
501
- ...Fe
519
+ className: c(m.wrapper({ size: f, isStackedMode: b }), e.className),
520
+ ...Ze
502
521
  },
503
522
  ce,
504
523
  fe,
505
- /* @__PURE__ */ l.createElement(
506
- na,
524
+ /* @__PURE__ */ n.createElement(
525
+ wa,
507
526
  {
508
527
  selectable: e.selectable,
509
- className: c(s.table({ size: h }))
528
+ className: c(m.table({ size: f }))
510
529
  },
511
- K,
530
+ x,
512
531
  ge,
513
- /* @__PURE__ */ l.createElement(Je, { rowReorderable: G }, X),
514
- Re
532
+ /* @__PURE__ */ n.createElement(tt, { rowReorderable: I }, X),
533
+ Ie
515
534
  ),
516
- we && /* @__PURE__ */ l.createElement(je, null, B.length ? B : /* @__PURE__ */ l.createElement(_e, null)),
517
- Se && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Ue, null), /* @__PURE__ */ l.createElement(qe, null))
518
- )), ue, e.pageable && Ee, /* @__PURE__ */ l.createElement(Ye, { loader: e.loader, showLoader: e.showLoader }), Ge, se && /* @__PURE__ */ l.createElement(Ae, { message: ie })) : /* @__PURE__ */ l.createElement($e, { ...Ie }, /* @__PURE__ */ l.createElement(Qe, null, /* @__PURE__ */ l.createElement(
535
+ ye && /* @__PURE__ */ n.createElement(Xe, null, A.length ? A : /* @__PURE__ */ n.createElement(Je, null)),
536
+ ke && /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(pe, null), /* @__PURE__ */ n.createElement(et, null))
537
+ )), ue, e.pageable && Ge, /* @__PURE__ */ n.createElement(nt, { loader: e.loader, showLoader: e.showLoader }), He, me && /* @__PURE__ */ n.createElement($e, { message: re })) : /* @__PURE__ */ n.createElement(Ye, { ...Le }, /* @__PURE__ */ n.createElement(at, null, /* @__PURE__ */ n.createElement(
519
538
  "div",
520
539
  {
521
540
  id: e.id,
522
541
  style: e.style,
523
542
  className: c(
524
- s.wrapper({
525
- size: h,
526
- virtual: y,
527
- isStackedMode: C
543
+ m.wrapper({
544
+ size: f,
545
+ virtual: R,
546
+ isStackedMode: b
528
547
  }),
529
548
  e.className
530
549
  ),
531
- ...Fe
550
+ ...Ze
532
551
  },
533
552
  ce,
534
553
  fe,
535
- /* @__PURE__ */ l.createElement(
554
+ /* @__PURE__ */ n.createElement(
536
555
  "div",
537
556
  {
538
- className: c(s.ariaRoot({})),
557
+ className: c(m.ariaRoot({})),
539
558
  role: "grid",
540
- "aria-colcount": f.length,
541
- "aria-rowcount": R,
542
- id: k,
543
- "aria-label": D.toLanguageString(Xe, ma[Xe])
559
+ "aria-colcount": g.length,
560
+ "aria-rowcount": S,
561
+ id: L,
562
+ "aria-label": P.toLanguageString(lt, Sa[lt])
544
563
  },
545
564
  ge,
546
- /* @__PURE__ */ l.createElement("div", { className: c(s.container({})), role: "presentation" }, e.isClient && T && gt && /* @__PURE__ */ l.createElement(
547
- Ze,
565
+ e.isClient && Dt && /* @__PURE__ */ n.createElement(
566
+ rt,
567
+ {
568
+ size: f,
569
+ colGroups: x,
570
+ dataRowContext: D,
571
+ edit: Ce,
572
+ position: "top",
573
+ pinnedItems: Ee,
574
+ isStackedMode: b,
575
+ groupLevelCount: E,
576
+ stackedLayoutSettings: e.stackedLayoutSettings,
577
+ rowHeight: e.rowHeight,
578
+ rows: e.rows,
579
+ selectable: e.selectable
580
+ }
581
+ ),
582
+ /* @__PURE__ */ n.createElement("div", { className: c(m.container({})), role: "presentation" }, e.isClient && z && St && /* @__PURE__ */ n.createElement(
583
+ it,
548
584
  {
549
- size: h,
550
- colGroups: K,
551
- dataRowContext: q,
585
+ size: f,
586
+ colGroups: x,
587
+ dataRowContext: D,
552
588
  position: "top",
553
- isStackedMode: C,
554
- groupLevelCount: H,
589
+ isStackedMode: b,
590
+ groupLevelCount: E,
555
591
  stackedLayoutSettings: e.stackedLayoutSettings,
556
592
  rowHeight: e.rowHeight
557
593
  }
558
- ), /* @__PURE__ */ l.createElement(oa, null, /* @__PURE__ */ l.createElement("div", { className: c(s.content({})), role: "presentation" }, /* @__PURE__ */ l.createElement("div", { className: c(s.tableWrap({})), role: "presentation" }, /* @__PURE__ */ l.createElement(
559
- ra,
594
+ ), /* @__PURE__ */ n.createElement(ya, null, /* @__PURE__ */ n.createElement("div", { className: c(m.content({})), role: "presentation" }, /* @__PURE__ */ n.createElement("div", { className: c(m.tableWrap({})), role: "presentation" }, /* @__PURE__ */ n.createElement(
595
+ Ra,
560
596
  {
561
597
  selectable: e.selectable,
562
598
  tableClassName: c(
563
- s.table({
564
- size: h
599
+ m.table({
600
+ size: f
565
601
  })
566
602
  ),
567
- tableStyle: { userSelect: yt }
603
+ tableStyle: { userSelect: xt }
568
604
  },
569
- K,
570
- /* @__PURE__ */ l.createElement(Je, { rowReorderable: G }, X)
571
- ), we && /* @__PURE__ */ l.createElement(je, null, B.length ? B : /* @__PURE__ */ l.createElement(_e, null))), y && /* @__PURE__ */ l.createElement(
605
+ x,
606
+ /* @__PURE__ */ n.createElement(tt, { rowReorderable: I }, X)
607
+ ), ye && /* @__PURE__ */ n.createElement(Xe, null, A.length ? A : /* @__PURE__ */ n.createElement(Je, null))), R && /* @__PURE__ */ n.createElement(
572
608
  "div",
573
609
  {
574
- className: c(s.heightContainer({})),
610
+ className: c(m.heightContainer({})),
575
611
  role: "presentation"
576
612
  },
577
- /* @__PURE__ */ l.createElement(da, { isVirtualScroll: y })
578
- ))), e.isClient && T && bt && /* @__PURE__ */ l.createElement(
579
- Ze,
613
+ /* @__PURE__ */ n.createElement(Ea, { isVirtualScroll: R })
614
+ ))), e.isClient && z && vt && /* @__PURE__ */ n.createElement(
615
+ it,
580
616
  {
581
- size: h,
582
- colGroups: K,
583
- dataRowContext: q,
617
+ size: f,
618
+ colGroups: x,
619
+ dataRowContext: D,
584
620
  position: "bottom",
585
- isStackedMode: C,
586
- groupLevelCount: H,
621
+ isStackedMode: b,
622
+ groupLevelCount: E,
587
623
  stackedLayoutSettings: e.stackedLayoutSettings,
588
624
  rowHeight: e.rowHeight
589
625
  }
590
626
  )),
591
- Re,
592
- Se && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Ue, null), /* @__PURE__ */ l.createElement(qe, null)),
593
- se && /* @__PURE__ */ l.createElement(Ae, { message: ie })
627
+ e.isClient && Tt && /* @__PURE__ */ n.createElement(
628
+ rt,
629
+ {
630
+ size: f,
631
+ colGroups: x,
632
+ dataRowContext: D,
633
+ edit: Ce,
634
+ position: "bottom",
635
+ pinnedItems: Se,
636
+ isStackedMode: b,
637
+ groupLevelCount: E,
638
+ stackedLayoutSettings: e.stackedLayoutSettings,
639
+ rowHeight: e.rowHeight,
640
+ rows: e.rows,
641
+ selectable: e.selectable
642
+ }
643
+ ),
644
+ Ie,
645
+ ke && /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(pe, null), /* @__PURE__ */ n.createElement(et, null)),
646
+ me && /* @__PURE__ */ n.createElement($e, { message: re })
594
647
  ),
595
648
  ue,
596
- e.pageable && Ee,
597
- /* @__PURE__ */ l.createElement(Ye, { loader: e.loader, showLoader: e.showLoader }),
598
- Ge
649
+ e.pageable && Ge,
650
+ /* @__PURE__ */ n.createElement(nt, { loader: e.loader, showLoader: e.showLoader }),
651
+ He
599
652
  )));
600
653
  });
601
- Ha.displayName = "KendoReactGridComponent";
654
+ ja.displayName = "KendoReactGridComponent";
602
655
  export {
603
- Ha as GridComponent
656
+ ja as GridComponent
604
657
  };