@progress/kendo-react-grid 9.4.0-develop.24 → 9.4.0-develop.3

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 (184) hide show
  1. package/Grid.js +1 -1
  2. package/Grid.mjs +5 -4
  3. package/GridClientContextReader.js +1 -2
  4. package/GridClientContextReader.mjs +14 -15
  5. package/GridClientWrapper.js +1 -2
  6. package/GridClientWrapper.mjs +413 -494
  7. package/GridColumn.js +1 -1
  8. package/GridColumn.mjs +5 -4
  9. package/GridComponent.js +1 -1
  10. package/GridComponent.mjs +310 -344
  11. package/GridState.js +1 -2
  12. package/GridState.mjs +67 -79
  13. package/GridToolbar.js +1 -1
  14. package/GridToolbar.mjs +6 -5
  15. package/GridWatermarkOverlay.js +1 -2
  16. package/GridWatermarkOverlay.mjs +2 -2
  17. package/NOTICE.txt +51 -40
  18. package/StatusBar.js +1 -1
  19. package/StatusBar.mjs +1 -0
  20. package/VirtualScroll.js +1 -1
  21. package/VirtualScroll.mjs +1 -0
  22. package/VirtualScrollFixed.js +1 -1
  23. package/VirtualScrollFixed.mjs +10 -9
  24. package/cells/GridCell.js +1 -1
  25. package/cells/GridCell.mjs +23 -25
  26. package/cells/GridDetailCell.js +1 -1
  27. package/cells/GridDetailCell.mjs +6 -5
  28. package/cells/GridDetailHierarchyCell.js +1 -1
  29. package/cells/GridDetailHierarchyCell.mjs +5 -4
  30. package/cells/GridEditCell.js +1 -1
  31. package/cells/GridEditCell.mjs +7 -6
  32. package/cells/GridFilterCell.js +1 -2
  33. package/cells/GridGroupCell.js +1 -1
  34. package/cells/GridGroupCell.mjs +12 -11
  35. package/cells/GridHierarchyCell.js +1 -1
  36. package/cells/GridHierarchyCell.mjs +8 -7
  37. package/cells/GridRowReorderCell.js +1 -1
  38. package/cells/GridRowReorderCell.mjs +4 -3
  39. package/cells/GridSelectionCell.js +1 -1
  40. package/cells/GridSelectionCell.mjs +13 -12
  41. package/cells/client/DetailCellContainer.js +1 -2
  42. package/cells/client/DetailCellContainer.mjs +2 -2
  43. package/cells/client/GridCellContainer.js +1 -2
  44. package/cells/client/GridEditCellContainer.js +1 -2
  45. package/cells/client/GridEditCellEditor.js +1 -2
  46. package/cells/client/GridEditCellEditor.mjs +14 -14
  47. package/cells/client/GridGroupCellContainer.js +1 -2
  48. package/cells/client/GridGroupCellContainer.mjs +39 -39
  49. package/cells/client/GridGroupCellToggle.js +1 -2
  50. package/cells/client/GridGroupCellToggle.mjs +3 -3
  51. package/cells/client/GridHierarchyCellContainer.js +1 -2
  52. package/cells/client/GridHierarchyCellToggle.js +1 -2
  53. package/cells/client/GridHierarchyCellToggle.mjs +15 -15
  54. package/cells/client/GridRowReorderContainer.js +1 -2
  55. package/cells/client/GridRowReorderContainer.mjs +8 -14
  56. package/cells/client/GridSelectionCellContainer.js +1 -2
  57. package/cells/client/GridSelectionCellInput.js +1 -2
  58. package/cells/client/GridSelectionCellInput.mjs +3 -3
  59. package/columnMenu/GridColumnMenuCheckboxFilter.js +1 -2
  60. package/columnMenu/GridColumnMenuCheckboxFilter.mjs +55 -56
  61. package/columnMenu/GridColumnMenuColumnsList.js +1 -2
  62. package/columnMenu/GridColumnMenuColumnsList.mjs +16 -16
  63. package/columnMenu/GridColumnMenuFilter.js +1 -2
  64. package/columnMenu/GridColumnMenuFilterCell.js +1 -2
  65. package/columnMenu/GridColumnMenuFilterCell.mjs +3 -3
  66. package/columnMenu/GridColumnMenuFilterUI.js +1 -2
  67. package/columnMenu/GridColumnMenuGroup.js +1 -2
  68. package/columnMenu/GridColumnMenuGroup.mjs +5 -5
  69. package/columnMenu/GridColumnMenuItem.js +1 -2
  70. package/columnMenu/GridColumnMenuItem.mjs +2 -2
  71. package/columnMenu/GridColumnMenuItemContent.js +1 -2
  72. package/columnMenu/GridColumnMenuItemContent.mjs +4 -4
  73. package/columnMenu/GridColumnMenuItemGroup.js +1 -2
  74. package/columnMenu/GridColumnMenuItemGroup.mjs +4 -4
  75. package/columnMenu/GridColumnMenuSort.js +1 -2
  76. package/columnMenu/GridColumnMenuSort.mjs +8 -8
  77. package/columnMenu/GridColumnMenuWrapper.js +1 -2
  78. package/components/GridContainerElementContainer.js +1 -2
  79. package/components/GridCustomCellClientContainer.js +1 -2
  80. package/components/GridCustomCellClientContainer.mjs +2 -2
  81. package/components/GridDragClue.js +1 -2
  82. package/components/GridDragClue.mjs +5 -5
  83. package/components/GridDraggableRowsContainer.js +1 -2
  84. package/components/GridDropClue.js +1 -2
  85. package/components/GridDropClue.mjs +5 -5
  86. package/components/GridElementContainer.js +1 -2
  87. package/components/GridElementContainer.mjs +6 -6
  88. package/components/PagerContainer.js +1 -2
  89. package/components/PagerContainer.mjs +4 -4
  90. package/components/VirtualScrollHeightContainer.js +1 -2
  91. package/components/VirtualScrollHeightContainer.mjs +2 -2
  92. package/components/colGroup/GridColGroup.js +1 -2
  93. package/components/colGroup/GridColGroup.mjs +5 -5
  94. package/components/icons/reorder-row-svg.js +1 -2
  95. package/components/icons/reorder-row-svg.mjs +2 -2
  96. package/components/noRecords/GridNoRecords.js +1 -2
  97. package/components/noRecords/GridNoRecords.mjs +5 -5
  98. package/components/noRecords/GridNoRecordsContainer.js +1 -2
  99. package/components/noRecords/GridNoRecordsContainer.mjs +4 -4
  100. package/components/table/GridTable.js +1 -2
  101. package/components/table/GridTable.mjs +4 -4
  102. package/components/table/GridTableBody.js +1 -2
  103. package/components/table/GridTableBody.mjs +2 -2
  104. package/components/table/GridTableScrollable.js +1 -2
  105. package/components/table/GridTableScrollable.mjs +6 -6
  106. package/components/utils.js +1 -1
  107. package/components/utils.mjs +1 -0
  108. package/constants/index.js +1 -1
  109. package/constants/index.mjs +1 -0
  110. package/contextMenu/GridContextMenu.js +1 -2
  111. package/contextMenu/GridContextMenu.mjs +3 -3
  112. package/contextMenu/enums.js +1 -1
  113. package/contextMenu/enums.mjs +1 -0
  114. package/dist/cdn/js/kendo-react-grid.js +1 -8
  115. package/drag/ColumnDraggable.js +1 -2
  116. package/drag/ColumnDraggable.mjs +7 -7
  117. package/drag/ColumnResize.js +1 -1
  118. package/drag/ColumnResize.mjs +1 -0
  119. package/drag/CommonDragLogic.js +1 -1
  120. package/drag/CommonDragLogic.mjs +1 -0
  121. package/drag/GroupingIndicator.js +1 -2
  122. package/drag/GroupingIndicator.mjs +11 -11
  123. package/filterCommon.js +1 -1
  124. package/filterCommon.mjs +5 -4
  125. package/footer/Footer.js +1 -2
  126. package/footer/FooterCell.js +1 -1
  127. package/footer/FooterCell.mjs +4 -3
  128. package/footer/FooterRow.js +1 -1
  129. package/footer/FooterRow.mjs +7 -6
  130. package/footer/client/FooterCellContainer.js +1 -2
  131. package/footer/client/FooterCellContainer.mjs +5 -5
  132. package/header/FilterRow.js +1 -1
  133. package/header/FilterRow.mjs +43 -41
  134. package/header/GridHeaderCell.js +1 -2
  135. package/header/GridHeaderCell.mjs +4 -4
  136. package/header/GridHeaderSelectionCell.js +1 -2
  137. package/header/GroupPanel.js +1 -2
  138. package/header/Header.js +1 -2
  139. package/header/HeaderRow.js +1 -1
  140. package/header/HeaderRow.mjs +35 -33
  141. package/header/client/GridFilterCellContainer.js +1 -2
  142. package/header/client/GridFilterCellContainer.mjs +7 -7
  143. package/header/client/GridFilterCellElementContainer.js +1 -2
  144. package/header/client/GridHeaderCellContainer.js +1 -2
  145. package/header/client/GridHeaderCellContainer.mjs +18 -20
  146. package/header/client/GridHeaderCellElementContainer.js +1 -2
  147. package/header/client/GridHeaderCellElementContainer.mjs +10 -10
  148. package/header/client/GridHeaderRowContainer.js +1 -2
  149. package/header/client/GridHeaderRowReorderCell.js +1 -2
  150. package/header/client/GridHeaderRowReorderCell.mjs +2 -2
  151. package/header/client/HeaderCellResizer.js +1 -2
  152. package/header/client/HeaderRowDraggable.js +1 -2
  153. package/index.d.mts +5 -211
  154. package/index.d.ts +5 -211
  155. package/index.js +1 -1
  156. package/index.mjs +68 -71
  157. package/interfaces/GridSortSettings.js +8 -0
  158. package/{sortCommon.mjs → interfaces/GridSortSettings.mjs} +1 -0
  159. package/messages/index.js +1 -1
  160. package/messages/index.mjs +37 -38
  161. package/messages/messagesMap.js +1 -1
  162. package/messages/messagesMap.mjs +3 -2
  163. package/package-metadata.js +1 -1
  164. package/package-metadata.mjs +3 -2
  165. package/package.json +13 -14
  166. package/paging/GridPagerSettings.js +1 -1
  167. package/paging/GridPagerSettings.mjs +7 -6
  168. package/rows/GridDetailRow.js +1 -1
  169. package/rows/GridDetailRow.mjs +3 -2
  170. package/rows/GridRow.js +1 -2
  171. package/rows/GridRow.mjs +45 -45
  172. package/utils/_clientModule.js +1 -2
  173. package/utils/_clientModule.mjs +2 -2
  174. package/utils/_serverModule.js +1 -1
  175. package/utils/_serverModule.mjs +1 -0
  176. package/utils/index.js +1 -1
  177. package/utils/index.mjs +129 -138
  178. package/GridSearchBox.js +0 -8
  179. package/GridSearchBox.mjs +0 -35
  180. package/columnMenu/GridColumnMenuColumnsChooser.js +0 -9
  181. package/columnMenu/GridColumnMenuColumnsChooser.mjs +0 -82
  182. package/components/GridLoader.js +0 -9
  183. package/components/GridLoader.mjs +0 -22
  184. package/sortCommon.js +0 -8
package/utils/index.mjs CHANGED
@@ -5,160 +5,161 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { gridDefaultProps as w } from "../GridColumn.mjs";
9
- import { getter as y } from "@progress/kendo-data-query";
10
- import { findGroupExpand as M, updateLeft as A, updateRight as D, tableKeyboardNavigationTools as b } from "@progress/kendo-react-data-tools";
11
- import { ServerFragment as T } from "./_serverModule.mjs";
8
+ "use client";
9
+ import { gridDefaultProps as v } from "../GridColumn.mjs";
10
+ import { getter as u } from "@progress/kendo-data-query";
11
+ import { findGroupExpand as M, updateLeft as T, updateRight as A, tableKeyboardNavigationTools as b } from "@progress/kendo-react-data-tools";
12
+ import { ServerFragment as D } from "./_serverModule.mjs";
12
13
  import { ClientFragment as B } from "./_clientModule.mjs";
13
- import { GridContextMenuItemNames as g } from "../contextMenu/enums.mjs";
14
- function u(e, t) {
14
+ import { GridContextMenuItemNames as x } from "../contextMenu/enums.mjs";
15
+ function y(e, t) {
15
16
  const a = (e != null ? e : "").split(".");
16
- let i = t;
17
- return a.forEach((l) => {
18
- i = i ? i[l] : void 0;
19
- }), i;
17
+ let l = t;
18
+ return a.forEach((o) => {
19
+ l = l ? l[o] : void 0;
20
+ }), l;
20
21
  }
21
- function E(e, t, a, i, l, f, r, n, d, o, h = 0, s) {
22
- var v;
23
- let C = h;
24
- for (let c = 0; c < t.length; c++) {
25
- let S;
26
- if (!l || t[c].value === void 0 || t[c].items === void 0) {
22
+ function k(e, t, a, l, o, f, r, n, i, d, h = 0, c) {
23
+ var w;
24
+ let S = h;
25
+ for (let s = 0; s < t.length; s++) {
26
+ let C;
27
+ if (!o || t[s].value === void 0 || t[s].items === void 0) {
27
28
  e[e.length] = {
28
- dataIndex: i.index,
29
- dataItem: t[c],
29
+ dataIndex: l.index,
30
+ dataItem: t[s],
30
31
  rowType: "data",
31
32
  level: h,
32
- group: s,
33
+ group: c,
33
34
  // This is related to detail-row expansion
34
- expanded: (v = f ? u(f, t[c]) : o && !!(r != null && r[y(o)(t[c])])) != null ? v : !1
35
- }, i.index++;
35
+ expanded: (w = f ? y(f, t[s]) : d && !!(r != null && r[u(d)(t[s])])) != null ? w : !1
36
+ }, l.index++;
36
37
  continue;
37
38
  } else {
38
39
  let I;
39
- s != null && s.parents ? I = [{ field: s.field, value: s.value }, ...s.parents] : s ? I = [s] : I = [], S = {
40
- field: t[c].field,
41
- value: t[c].value,
40
+ c != null && c.parents ? I = [{ field: c.field, value: c.value }, ...c.parents] : c ? I = [c] : I = [], C = {
41
+ field: t[s].field,
42
+ value: t[s].value,
42
43
  parents: I
43
44
  };
44
45
  }
45
- C = Math.max(C, h + 1);
46
- let x = !1;
46
+ S = Math.max(S, h + 1);
47
+ let g = !1;
47
48
  if (f)
48
- x = u(f, t[c]) !== !1;
49
+ g = y(f, t[s]) !== !1;
49
50
  else {
50
- const I = M(n || [], S);
51
- I ? x = I.expanded !== !1 : x = d !== !1;
51
+ const I = M(n || [], C);
52
+ I ? g = I.expanded !== !1 : g = i !== !1;
52
53
  }
53
54
  e[e.length] = {
54
55
  dataIndex: -1,
55
- dataItem: t[c],
56
+ dataItem: t[s],
56
57
  level: h,
57
- group: S,
58
+ group: C,
58
59
  rowType: "groupHeader",
59
- expanded: x
60
- }, x && (S.expanded = x, C = Math.max(
61
- E(
60
+ expanded: g
61
+ }, g && (C.expanded = g, S = Math.max(
62
+ k(
62
63
  e,
63
- t[c].items,
64
+ t[s].items,
64
65
  a,
65
- i,
66
66
  l,
67
+ o,
67
68
  f,
68
69
  r,
69
70
  n,
71
+ i,
70
72
  d,
71
- o,
72
73
  h + 1,
73
- S
74
+ C
74
75
  ),
75
- C
76
- )), (a === "always" || x && a === "visible") && (e[e.length] = {
76
+ S
77
+ )), (a === "always" || g && a === "visible") && (e[e.length] = {
77
78
  dataIndex: -1,
78
- dataItem: t[c],
79
+ dataItem: t[s],
79
80
  rowType: "groupFooter",
80
81
  level: h,
81
- expanded: x
82
+ expanded: g
82
83
  });
83
84
  }
84
- return C;
85
+ return S;
85
86
  }
86
- const q = (e, t) => typeof e.colSpan == "function" ? e.colSpan({ dataItem: t, column: e }) : e.colSpan || 1;
87
- function z(e, t) {
87
+ const L = (e, t) => typeof e.colSpan == "function" ? e.colSpan({ dataItem: t, column: e }) : e.colSpan || 1;
88
+ function q(e, t) {
88
89
  const a = [[]];
89
- let i = 0;
90
+ let l = 0;
90
91
  for (let r = e.length - 1; r >= 0; r--)
91
- i = Math.max(i, e[r].depth), e[r].headerColSpan = e[r].headerColSpan || 1, e[r].children.length > 0 && (e[r].headerColSpan = e[r].children.reduce(
92
- (n, d) => d.hidden ? n : n + d.headerColSpan,
92
+ l = Math.max(l, e[r].depth), e[r].headerColSpan = e[r].headerColSpan || 1, e[r].children.length > 0 && (e[r].headerColSpan = e[r].children.reduce(
93
+ (n, i) => i.hidden ? n : n + i.headerColSpan,
93
94
  0
94
95
  ));
95
- const l = [];
96
+ const o = [];
96
97
  let f = 1;
97
98
  return e.forEach((r, n) => {
98
99
  a[r.depth] = a[r.depth] || [];
99
- let d = !1;
100
- a[r.depth].length === 0 && (f <= 1 ? f = 1 + (r.children.length > 0 ? 0 : i - r.depth) : (f--, d = !0)), r.rowSpan = 1 + (r.children.length > 0 ? 0 : i - r.depth), r.kFirst = d, r.index = a[r.depth].length, a[r.depth].push(n), r.ariaColumnIndex = l[r.depth] ? l[r.depth] + 1 : 1;
101
- for (let o = r.depth; o < r.depth + r.rowSpan; o++)
102
- l[o] = (l[o] || 0) + r.headerColSpan;
103
- }), A(a, e, t), D(a, e, t), a;
100
+ let i = !1;
101
+ a[r.depth].length === 0 && (f <= 1 ? f = 1 + (r.children.length > 0 ? 0 : l - r.depth) : (f--, i = !0)), r.rowSpan = 1 + (r.children.length > 0 ? 0 : l - r.depth), r.kFirst = i, r.index = a[r.depth].length, a[r.depth].push(n), r.ariaColumnIndex = o[r.depth] ? o[r.depth] + 1 : 1;
102
+ for (let d = r.depth; d < r.depth + r.rowSpan; d++)
103
+ o[d] = (o[d] || 0) + r.headerColSpan;
104
+ }), T(a, e, t), A(a, e, t), a;
104
105
  }
105
- function j(e, t, a, i = 0) {
106
- const l = [];
106
+ function p(e, t, a, l = 0) {
107
+ const o = [];
107
108
  if (!e)
108
109
  return [];
109
- e && e.length === void 0 && (e = [e]), e.filter((n) => n && n.props ? !n.props.hidden : !n.hidden).forEach((n, d) => {
110
+ e && e.length === void 0 && (e = [e]), e.filter((n) => n && n.props ? !n.props.hidden : !n.hidden).forEach((n, i) => {
110
111
  n = n.props ? n.props : n;
111
- const o = t[d] || null, h = j(
112
+ const d = t[i] || null, h = p(
112
113
  n.children,
113
- o && o.children || [],
114
+ d && d.children || [],
114
115
  a,
115
- i + 1
116
+ l + 1
116
117
  );
117
- l.push(
118
+ o.push(
118
119
  Object.assign(
119
- { depth: i },
120
- w,
120
+ { depth: l },
121
+ v,
121
122
  h.length ? { cell: () => null, filterCell: () => null } : {},
122
- o ? { width: o.width, orderIndex: o.orderIndex } : {},
123
+ d ? { width: d.width, orderIndex: d.orderIndex } : {},
123
124
  n,
124
125
  {
125
126
  id: n.id ? n.id : b.generateNavigatableId(`${a.prevId++}`, a.idPrefix, "column"),
126
- declarationIndex: l.length,
127
+ declarationIndex: o.length,
127
128
  children: h,
128
129
  headerColSpan: n.headerColSpan,
129
130
  rowSpan: 0,
130
131
  columnType: n.columnType || "data",
131
132
  colSpan: n.colSpan || 1,
132
133
  isAccessible: !0,
133
- left: n.lockedColumn ? o && Math.floor(o.left) : null,
134
- right: n.lockedColumn ? o && Math.floor(o.right) : null,
135
- rowSpannable: n.rowSpannable
134
+ left: n.lockedColumn ? d && Math.floor(d.left) : null,
135
+ right: n.lockedColumn ? d && Math.floor(d.right) : null
136
136
  }
137
137
  )
138
138
  );
139
139
  });
140
- const r = (n, d) => n.orderIndex === d.orderIndex ? n.declarationIndex - d.declarationIndex : (n.orderIndex || 0) - (d.orderIndex || 0);
141
- if (l.sort(r), i === 0) {
142
- const n = [], d = (o, h) => o.forEach((s) => {
143
- s.parentIndex = h, d(s.children, n.push(s) - 1);
140
+ const r = (n, i) => n.orderIndex === i.orderIndex ? n.declarationIndex - i.declarationIndex : (n.orderIndex || 0) - (i.orderIndex || 0);
141
+ if (o.sort(r), l === 0) {
142
+ const n = [], i = (d, h) => d.forEach((c) => {
143
+ c.parentIndex = h, i(c.children, n.push(c) - 1);
144
144
  });
145
- return d(l, -1), n;
145
+ return i(o, -1), n;
146
146
  }
147
- return l;
147
+ return o;
148
148
  }
149
- const k = (e) => Array.isArray(e) ? e : e ? e.data : [];
150
- function V(e, t, a, i) {
151
- const l = k(e), f = [];
152
- if (l.length > 0) {
153
- let r = l[0];
149
+ function z(e, t, a, l) {
150
+ let o = [];
151
+ Array.isArray(e) ? o = e : e && (o = e.data);
152
+ const f = [];
153
+ if (o.length > 0) {
154
+ let r = o[0];
154
155
  if (t)
155
- for (let d = 0; d < t.length; d++)
156
+ for (let i = 0; i < t.length; i++)
156
157
  r = r.items && r.items[0];
157
- Object.getOwnPropertyNames(r).forEach((d) => {
158
- d !== a.column && f.push(
158
+ Object.getOwnPropertyNames(r).forEach((i) => {
159
+ i !== a.column && f.push(
159
160
  Object.assign(
160
161
  {
161
- id: b.generateNavigatableId(`${i.prevId++}`, i.idPrefix, "column"),
162
+ id: b.generateNavigatableId(`${l.prevId++}`, l.idPrefix, "column"),
162
163
  declarationIndex: -1,
163
164
  parentIndex: -1,
164
165
  depth: 0,
@@ -174,15 +175,15 @@ function V(e, t, a, i) {
174
175
  ariaColumnIndex: 0,
175
176
  isAccessible: !0
176
177
  },
177
- w,
178
- { field: d }
178
+ v,
179
+ { field: i }
179
180
  )
180
181
  );
181
182
  });
182
183
  }
183
184
  return f;
184
185
  }
185
- const F = (e, t) => {
186
+ const E = (e, t) => {
186
187
  let a = e[t.parentIndex];
187
188
  for (; a; ) {
188
189
  if (a.footerCell)
@@ -190,33 +191,33 @@ const F = (e, t) => {
190
191
  a = e[a.parentIndex];
191
192
  }
192
193
  return !1;
193
- }, W = (e) => e.filter((t) => F(e, t) ? !1 : !!t.footerCell || !(t.children && t.children.length > 0)), J = (e) => e.width !== void 0 ? Math.floor(parseFloat(e.width.toString())) + "px" : void 0, K = (e, t) => t && t.filter((a) => a.field === e).length > 0, p = (e) => (e.sort((t, a) => t.declarationIndex - a.declarationIndex), e.map((t) => {
194
- const { declarationIndex: a, parentIndex: i, depth: l, headerColSpan: f, rowSpan: r, index: n, kFirst: d, children: o, ...h } = t;
195
- return o.length ? {
196
- children: p(o),
194
+ }, V = (e) => e.filter((t) => E(e, t) ? !1 : !!t.footerCell || !(t.children && t.children.length > 0)), W = (e) => e.width !== void 0 ? Math.floor(parseFloat(e.width.toString())) + "px" : void 0, J = (e, t) => t && t.filter((a) => a.field === e).length > 0, F = (e) => (e.sort((t, a) => t.declarationIndex - a.declarationIndex), e.map((t) => {
195
+ const { declarationIndex: a, parentIndex: l, depth: o, headerColSpan: f, rowSpan: r, index: n, kFirst: i, children: d, ...h } = t;
196
+ return d.length ? {
197
+ children: F(d),
197
198
  ...h
198
199
  } : h;
199
- })), N = (e) => {
200
- const { filterCell: t, headerCell: a, footerCell: i, cells: l, cell: f, rowSpannable: r, ...n } = e;
200
+ })), m = (e) => {
201
+ const { filterCell: t, headerCell: a, footerCell: l, cells: o, cell: f, ...r } = e;
201
202
  return e.children.length ? {
202
- ...n,
203
- children: e.children.map(N)
204
- } : n;
205
- }, Q = typeof window != "undefined" && /Firefox/.test(window.navigator.userAgent), U = 17895697, X = (e) => {
203
+ ...r,
204
+ children: e.children.map(m)
205
+ } : r;
206
+ }, K = typeof window != "undefined" && /Firefox/.test(window.navigator.userAgent), Q = 17895697, U = (e) => {
206
207
  let t = [];
207
- return e.sortable && (t = t.concat([g.sortAsc, g.sortDesc])), t;
208
- }, Y = (e) => {
208
+ return e.sortable && (t = t.concat([x.sortAsc, x.sortDesc])), t;
209
+ }, X = (e) => {
209
210
  let t = [];
210
211
  return e.clipboard && (t = t.concat([
211
- g.copySelection,
212
- g.copySelectionNoHeaders,
213
- g.paste
214
- ])), e.editable && (t.length && (t = t.concat([g.separator])), t = t.concat([
215
- g.create,
216
- g.edit,
217
- g.delete
218
- ])), e.selectable && (t.length && (t = t.concat([g.separator])), t = t.concat([g.select])), e.rowReorderable && (t.length && (t = t.concat([g.separator])), t = t.concat([g.reorderRow])), t;
219
- }, Z = (e, t) => {
212
+ x.copySelection,
213
+ x.copySelectionNoHeaders,
214
+ x.paste
215
+ ])), e.editable && (t.length && (t = t.concat([x.separator])), t = t.concat([
216
+ x.create,
217
+ x.edit,
218
+ x.delete
219
+ ])), e.selectable && (t.length && (t = t.concat([x.separator])), t = t.concat([x.select])), e.reorderable && (t.length && (t = t.concat([x.separator])), t = t.concat([x.reorderRow])), t;
220
+ }, Y = (e, t) => {
220
221
  if (!(!e && !t))
221
222
  return t ? e ? {
222
223
  ...e,
@@ -238,10 +239,7 @@ const F = (e, t) => {
238
239
  ...t.edit || {}
239
240
  }
240
241
  } : t : e;
241
- }, _ = (e) => {
242
- var a;
243
- return typeof e == "object" ? (a = e.enabled) != null ? a : !0 : e != null ? e : !1;
244
- }, G = () => T === B, P = (e) => !!(e && e.$$typeof === Symbol.for("react.client.reference")), ee = (e) => ({
242
+ }, Z = () => D === B, _ = (e) => !!(e && e.$$typeof === Symbol.for("react.client.reference")), P = (e) => ({
245
243
  id: e.id,
246
244
  ariaColumnIndex: e.ariaColumnIndex,
247
245
  isSelected: e.isSelected,
@@ -267,32 +265,25 @@ const F = (e, t) => {
267
265
  rowDataIndex: e.rowDataIndex,
268
266
  columnPosition: e.columnPosition,
269
267
  group: e.group
270
- }), te = (e) => {
271
- var i, l;
272
- const t = typeof e == "object" ? (i = e.enabled) != null ? i : !0 : e != null ? e : !1, a = typeof e == "object" ? (l = e.valueGetter) != null ? l : (f, r) => y(r)(f) : (f, r) => y(r)(f);
273
- return { enabled: t, valueGetter: a };
274
- };
268
+ });
275
269
  export {
276
- V as autoGenerateColumns,
277
- N as clientColumn,
278
- Q as firefox,
279
- U as firefoxMaxHeight,
280
- E as flatData,
281
- W as footerColumns,
282
- ee as getClientCellProps,
283
- q as getColSpan,
284
- J as getColumnWidth,
285
- k as getDataAsArray,
286
- Y as getDefaultBodyContextMenuItems,
287
- X as getDefaultHeadContextMenuItems,
288
- u as getNestedValue,
289
- te as getRowSpanOptions,
290
- G as isClient,
291
- P as isClientReference,
292
- _ as isRowReorderEnabled,
293
- K as isSorted,
294
- z as mapColumns,
295
- j as readColumns,
296
- Z as resolveCells,
297
- p as sanitizeColumns
270
+ z as autoGenerateColumns,
271
+ m as clientColumn,
272
+ K as firefox,
273
+ Q as firefoxMaxHeight,
274
+ k as flatData,
275
+ V as footerColumns,
276
+ P as getClientCellProps,
277
+ L as getColSpan,
278
+ W as getColumnWidth,
279
+ X as getDefaultBodyContextMenuItems,
280
+ U as getDefaultHeadContextMenuItems,
281
+ y as getNestedValue,
282
+ Z as isClient,
283
+ _ as isClientReference,
284
+ J as isSorted,
285
+ q as mapColumns,
286
+ p as readColumns,
287
+ Y as resolveCells,
288
+ F as sanitizeColumns
298
289
  };
package/GridSearchBox.js DELETED
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- *-------------------------------------------------------------------------------------------
4
- * Copyright © 2025 Progress Software Corporation. All rights reserved.
5
- * Licensed under commercial license. See LICENSE.md in the package root for more information
6
- *-------------------------------------------------------------------------------------------
7
- */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@progress/kendo-react-inputs"),h=require("react"),m=require("./GridClientWrapper.js"),f=require("@progress/kendo-svg-icons"),i=require("@progress/kendo-react-common"),x=require("./GridState.js"),S=require("@progress/kendo-react-data-tools"),b=require("@progress/kendo-react-intl"),a=require("./messages/index.js");function C(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=C(h),q=e=>{const n=b.useLocalization(),t=r.useContext(m.GridContext),[o]=x.useGridState(),l=c=>{t.searchChange(c),e.onChange&&e.onChange.call(void 0,c)},u=S.getStringFromSearch(o.search),d=i.classNames("k-grid-search","k-searchbox",e.className),g=n.toLanguageString(a.searchboxPlaceholder,a.messages[a.searchboxPlaceholder]);return r.createElement(s.TextBox,{placeholder:g,value:u,prefix:()=>r.createElement(s.InputPrefix,{orientation:"horizontal"},r.createElement(i.SvgIcon,{icon:f.searchIcon})),...e,className:d,onChange:l})};exports.GridSearchBox=q;
package/GridSearchBox.mjs DELETED
@@ -1,35 +0,0 @@
1
- /**
2
- * @license
3
- *-------------------------------------------------------------------------------------------
4
- * Copyright © 2025 Progress Software Corporation. All rights reserved.
5
- * Licensed under commercial license. See LICENSE.md in the package root for more information
6
- *-------------------------------------------------------------------------------------------
7
- */
8
- import { TextBox as h, InputPrefix as g } from "@progress/kendo-react-inputs";
9
- import * as o from "react";
10
- import { GridContext as f } from "./GridClientWrapper.mjs";
11
- import { searchIcon as x } from "@progress/kendo-svg-icons";
12
- import { classNames as d, SvgIcon as C } from "@progress/kendo-react-common";
13
- import { useGridState as p } from "./GridState.mjs";
14
- import { getStringFromSearch as u } from "@progress/kendo-react-data-tools";
15
- import { useLocalization as S } from "@progress/kendo-react-intl";
16
- import { searchboxPlaceholder as r, messages as z } from "./messages/index.mjs";
17
- const L = (e) => {
18
- const a = S(), n = o.useContext(f), [c] = p(), i = (t) => {
19
- n.searchChange(t), e.onChange && e.onChange.call(void 0, t);
20
- }, m = u(c.search), s = d("k-grid-search", "k-searchbox", e.className), l = a.toLanguageString(r, z[r]);
21
- return /* @__PURE__ */ o.createElement(
22
- h,
23
- {
24
- placeholder: l,
25
- value: m,
26
- prefix: () => /* @__PURE__ */ o.createElement(g, { orientation: "horizontal" }, /* @__PURE__ */ o.createElement(C, { icon: x })),
27
- ...e,
28
- className: s,
29
- onChange: i
30
- }
31
- );
32
- };
33
- export {
34
- L as GridSearchBox
35
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- *-------------------------------------------------------------------------------------------
4
- * Copyright © 2025 Progress Software Corporation. All rights reserved.
5
- * Licensed under commercial license. See LICENSE.md in the package root for more information
6
- *-------------------------------------------------------------------------------------------
7
- */
8
- "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react"),g=require("@progress/kendo-react-inputs"),j=require("@progress/kendo-react-common"),q=require("@progress/kendo-svg-icons"),b=require("@progress/kendo-react-buttons"),M=require("@progress/kendo-react-intl"),r=require("../messages/index.js");function w(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const c in s)if(c!=="default"){const u=Object.getOwnPropertyDescriptor(s,c);Object.defineProperty(n,c,u.get?u:{enumerable:!0,get:()=>s[c]})}}return n.default=s,Object.freeze(n)}const t=w(O),S=s=>{const{columnsState:n,onCloseMenu:c,onColumnsStateChange:u}=s,f=M.useLocalization(),[m,E]=t.useState(""),h=n.reduce((e,l)=>({...e,[l.id||""]:!l.hidden}),{}),[o,C]=t.useState(h),y=t.useMemo(()=>(n==null?void 0:n.filter(e=>{var l;return(l=e.title||e.field)==null?void 0:l.toLowerCase().includes(m.toLowerCase())}))||[],[n,m]),d=t.useMemo(()=>Object.values(o).filter(e=>e).length,[o]),k=t.useMemo(()=>d===(n==null?void 0:n.length),[n,d]),N=t.useCallback(e=>{const a=(i=>(i==null?void 0:i.map(p=>({...p,hidden:!o[p.id||""]})))||[])(n);u&&u(a),c==null||c.call(void 0)},[o,n,c]),v=()=>{C(h)},B=t.useCallback(()=>{const e={...o};Object.keys(e).forEach((l,a)=>e[l]=k&&a===0?!0:!k),C(e)},[o,k]),R=t.useCallback((e,l)=>{const a={...o};a[l||""]=e,C(a)},[o]),x=e=>{E(String(e.target.value))};return t.createElement("form",{className:"k-filter-menu"},t.createElement("div",{className:"k-filter-menu-container"},t.createElement(g.TextBox,{className:"k-searchbox",value:m,onChange:x,prefix:()=>t.createElement(g.InputPrefix,null,t.createElement(j.IconWrap,{name:"search",icon:q.searchIcon}))}),t.createElement("ul",{className:"k-reset k-multicheck-wrap"},!m&&t.createElement("li",{className:"k-item k-check-all-wrap"},t.createElement(g.Checkbox,{checked:k,onChange:B,label:f.toLanguageString(r.filterSelectAll,r.messages[r.filterSelectAll])})),y.map((e,l)=>t.createElement("li",{key:e.id,className:"k-item"},t.createElement(g.Checkbox,{disabled:o[e.id||""]&&d===1,checked:o[e.id||""],onChange:a=>{var i;return R(!!((i=a.target.element)!=null&&i.checked),e.id)},label:e.title||e.field})))),t.createElement("div",{className:"k-filter-selected-items"},d," selected items"),t.createElement("div",{className:"k-actions k-actions-start k-actions-horizontal"},t.createElement(b.Button,{type:"button",themeColor:"primary",onClick:N},f.toLanguageString(r.filterApplyButton,r.messages[r.filterApplyButton])),t.createElement(b.Button,{type:"button",onClick:v},f.toLanguageString(r.filterResetButton,r.messages[r.filterResetButton])))))};S.displayName="GridColumnMenuColumnsChooser";exports.GridColumnMenuColumnsChooser=S;
@@ -1,82 +0,0 @@
1
- /**
2
- * @license
3
- *-------------------------------------------------------------------------------------------
4
- * Copyright © 2025 Progress Software Corporation. All rights reserved.
5
- * Licensed under commercial license. See LICENSE.md in the package root for more information
6
- *-------------------------------------------------------------------------------------------
7
- */
8
- "use client";
9
- import * as t from "react";
10
- import { TextBox as M, InputPrefix as I, Checkbox as p } from "@progress/kendo-react-inputs";
11
- import { IconWrap as R } from "@progress/kendo-react-common";
12
- import { searchIcon as j } from "@progress/kendo-svg-icons";
13
- import { Button as g } from "@progress/kendo-react-buttons";
14
- import { useLocalization as z } from "@progress/kendo-react-intl";
15
- import { filterSelectAll as E, messages as k, filterApplyButton as S, filterResetButton as b } from "../messages/index.mjs";
16
- const F = (N) => {
17
- const { columnsState: l, onCloseMenu: c, onColumnsStateChange: h } = N, u = z(), [i, y] = t.useState(""), C = l.reduce((e, n) => ({ ...e, [n.id || ""]: !n.hidden }), {}), [o, d] = t.useState(C), x = t.useMemo(
18
- () => (l == null ? void 0 : l.filter((e) => {
19
- var n;
20
- return (n = e.title || e.field) == null ? void 0 : n.toLowerCase().includes(i.toLowerCase());
21
- })) || [],
22
- [l, i]
23
- ), s = t.useMemo(
24
- () => Object.values(o).filter((e) => e).length,
25
- [o]
26
- ), m = t.useMemo(() => s === (l == null ? void 0 : l.length), [l, s]), v = t.useCallback(
27
- (e) => {
28
- const a = ((r) => (r == null ? void 0 : r.map((f) => ({
29
- ...f,
30
- hidden: !o[f.id || ""]
31
- }))) || [])(l);
32
- h && h(a), c == null || c.call(void 0);
33
- },
34
- [o, l, c]
35
- ), L = () => {
36
- d(C);
37
- }, w = t.useCallback(() => {
38
- const e = { ...o };
39
- Object.keys(e).forEach(
40
- (n, a) => e[n] = m && a === 0 ? !0 : !m
41
- ), d(e);
42
- }, [o, m]), B = t.useCallback(
43
- (e, n) => {
44
- const a = { ...o };
45
- a[n || ""] = e, d(a);
46
- },
47
- [o]
48
- ), A = (e) => {
49
- y(String(e.target.value));
50
- };
51
- return /* @__PURE__ */ t.createElement("form", { className: "k-filter-menu" }, /* @__PURE__ */ t.createElement("div", { className: "k-filter-menu-container" }, /* @__PURE__ */ t.createElement(
52
- M,
53
- {
54
- className: "k-searchbox",
55
- value: i,
56
- onChange: A,
57
- prefix: () => /* @__PURE__ */ t.createElement(I, null, /* @__PURE__ */ t.createElement(R, { name: "search", icon: j }))
58
- }
59
- ), /* @__PURE__ */ t.createElement("ul", { className: "k-reset k-multicheck-wrap" }, !i && /* @__PURE__ */ t.createElement("li", { className: "k-item k-check-all-wrap" }, /* @__PURE__ */ t.createElement(
60
- p,
61
- {
62
- checked: m,
63
- onChange: w,
64
- label: u.toLanguageString(E, k[E])
65
- }
66
- )), x.map((e, n) => /* @__PURE__ */ t.createElement("li", { key: e.id, className: "k-item" }, /* @__PURE__ */ t.createElement(
67
- p,
68
- {
69
- disabled: o[e.id || ""] && s === 1,
70
- checked: o[e.id || ""],
71
- onChange: (a) => {
72
- var r;
73
- return B(!!((r = a.target.element) != null && r.checked), e.id);
74
- },
75
- label: e.title || e.field
76
- }
77
- )))), /* @__PURE__ */ t.createElement("div", { className: "k-filter-selected-items" }, s, " selected items"), /* @__PURE__ */ t.createElement("div", { className: "k-actions k-actions-start k-actions-horizontal" }, /* @__PURE__ */ t.createElement(g, { type: "button", themeColor: "primary", onClick: v }, u.toLanguageString(S, k[S])), /* @__PURE__ */ t.createElement(g, { type: "button", onClick: L }, u.toLanguageString(b, k[b])))));
78
- };
79
- F.displayName = "GridColumnMenuColumnsChooser";
80
- export {
81
- F as GridColumnMenuColumnsChooser
82
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- *-------------------------------------------------------------------------------------------
4
- * Copyright © 2025 Progress Software Corporation. All rights reserved.
5
- * Licensed under commercial license. See LICENSE.md in the package root for more information
6
- *-------------------------------------------------------------------------------------------
7
- */
8
- "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),c=require("@progress/kendo-react-indicators");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=l(o),i={height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},s=e=>{var t;return n.createElement(n.Fragment,null,e.showLoader?(t=e.loader)!=null?t:n.createElement("div",{className:"k-loading-mask"},n.createElement("div",{className:"k-loading-color"}),n.createElement("div",{style:i},n.createElement(c.Loader,{size:"large",type:"converging-spinner"}))):null)};exports.GridLoader=s;
@@ -1,22 +0,0 @@
1
- /**
2
- * @license
3
- *-------------------------------------------------------------------------------------------
4
- * Copyright © 2025 Progress Software Corporation. All rights reserved.
5
- * Licensed under commercial license. See LICENSE.md in the package root for more information
6
- *-------------------------------------------------------------------------------------------
7
- */
8
- "use client";
9
- import * as e from "react";
10
- import { Loader as a } from "@progress/kendo-react-indicators";
11
- const n = {
12
- height: "100%",
13
- display: "flex",
14
- justifyContent: "center",
15
- alignItems: "center"
16
- }, o = (t) => {
17
- var r;
18
- return /* @__PURE__ */ e.createElement(e.Fragment, null, t.showLoader ? (r = t.loader) != null ? r : /* @__PURE__ */ e.createElement("div", { className: "k-loading-mask" }, /* @__PURE__ */ e.createElement("div", { className: "k-loading-color" }), /* @__PURE__ */ e.createElement("div", { style: n }, /* @__PURE__ */ e.createElement(a, { size: "large", type: "converging-spinner" }))) : null);
19
- };
20
- export {
21
- o as GridLoader
22
- };
package/sortCommon.js DELETED
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- *-------------------------------------------------------------------------------------------
4
- * Copyright © 2025 Progress Software Corporation. All rights reserved.
5
- * Licensed under commercial license. See LICENSE.md in the package root for more information
6
- *-------------------------------------------------------------------------------------------
7
- */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=(...s)=>Object.assign({allowUnsort:!0,mode:"single"},...s),c={true:{asc:{asc:"",desc:"desc"},desc:{asc:"asc",desc:""},"":{asc:"asc",desc:"desc"}},false:{asc:{asc:"asc",desc:"desc"},desc:{asc:"asc",desc:"desc"},"":{asc:"asc",desc:"desc"}}},a={true:{asc:"desc",desc:"","":"asc"},false:{asc:"desc",desc:"asc","":"asc"}};exports.firstLevelSortSeqMap=a;exports.normalize=e;exports.sortSeqMap=c;