@progress/kendo-react-grid 14.2.2-develop.1 → 14.3.0-develop.10

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