@progress/kendo-react-grid 9.4.0-develop.1 → 9.4.0-develop.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/Grid.js +1 -1
  2. package/Grid.mjs +4 -5
  3. package/GridClientContextReader.js +2 -1
  4. package/GridClientContextReader.mjs +15 -14
  5. package/GridClientWrapper.js +2 -1
  6. package/GridClientWrapper.mjs +425 -391
  7. package/GridColumn.js +1 -1
  8. package/GridColumn.mjs +4 -5
  9. package/GridComponent.js +1 -1
  10. package/GridComponent.mjs +262 -252
  11. package/GridSearchBox.js +8 -0
  12. package/GridSearchBox.mjs +35 -0
  13. package/GridState.js +2 -1
  14. package/GridState.mjs +76 -70
  15. package/GridToolbar.js +1 -1
  16. package/GridToolbar.mjs +5 -6
  17. package/GridWatermarkOverlay.js +2 -1
  18. package/GridWatermarkOverlay.mjs +2 -2
  19. package/StatusBar.js +1 -1
  20. package/StatusBar.mjs +0 -1
  21. package/VirtualScroll.js +1 -1
  22. package/VirtualScroll.mjs +0 -1
  23. package/VirtualScrollFixed.js +1 -1
  24. package/VirtualScrollFixed.mjs +9 -10
  25. package/cells/GridCell.js +1 -1
  26. package/cells/GridCell.mjs +15 -17
  27. package/cells/GridDetailCell.js +1 -1
  28. package/cells/GridDetailCell.mjs +5 -6
  29. package/cells/GridDetailHierarchyCell.js +1 -1
  30. package/cells/GridDetailHierarchyCell.mjs +4 -5
  31. package/cells/GridEditCell.js +1 -1
  32. package/cells/GridEditCell.mjs +6 -7
  33. package/cells/GridFilterCell.js +2 -1
  34. package/cells/GridGroupCell.js +1 -1
  35. package/cells/GridGroupCell.mjs +11 -12
  36. package/cells/GridHierarchyCell.js +1 -1
  37. package/cells/GridHierarchyCell.mjs +7 -8
  38. package/cells/GridRowReorderCell.js +1 -1
  39. package/cells/GridRowReorderCell.mjs +3 -4
  40. package/cells/GridSelectionCell.js +1 -1
  41. package/cells/GridSelectionCell.mjs +12 -13
  42. package/cells/client/DetailCellContainer.js +2 -1
  43. package/cells/client/DetailCellContainer.mjs +2 -2
  44. package/cells/client/GridCellContainer.js +2 -1
  45. package/cells/client/GridEditCellContainer.js +2 -1
  46. package/cells/client/GridEditCellEditor.js +2 -1
  47. package/cells/client/GridEditCellEditor.mjs +14 -14
  48. package/cells/client/GridGroupCellContainer.js +2 -1
  49. package/cells/client/GridGroupCellContainer.mjs +39 -39
  50. package/cells/client/GridGroupCellToggle.js +2 -1
  51. package/cells/client/GridGroupCellToggle.mjs +3 -3
  52. package/cells/client/GridHierarchyCellContainer.js +2 -1
  53. package/cells/client/GridHierarchyCellToggle.js +2 -1
  54. package/cells/client/GridHierarchyCellToggle.mjs +15 -15
  55. package/cells/client/GridRowReorderContainer.js +2 -1
  56. package/cells/client/GridRowReorderContainer.mjs +3 -3
  57. package/cells/client/GridSelectionCellContainer.js +2 -1
  58. package/cells/client/GridSelectionCellInput.js +2 -1
  59. package/cells/client/GridSelectionCellInput.mjs +3 -3
  60. package/codemods/index.js +8 -0
  61. package/columnMenu/GridColumnMenuCheckboxFilter.js +2 -1
  62. package/columnMenu/GridColumnMenuColumnsList.js +2 -1
  63. package/columnMenu/GridColumnMenuColumnsList.mjs +16 -16
  64. package/columnMenu/GridColumnMenuFilter.js +2 -1
  65. package/columnMenu/GridColumnMenuFilterCell.js +2 -1
  66. package/columnMenu/GridColumnMenuFilterCell.mjs +3 -3
  67. package/columnMenu/GridColumnMenuFilterUI.js +2 -1
  68. package/columnMenu/GridColumnMenuGroup.js +2 -1
  69. package/columnMenu/GridColumnMenuGroup.mjs +5 -5
  70. package/columnMenu/GridColumnMenuItem.js +2 -1
  71. package/columnMenu/GridColumnMenuItem.mjs +2 -2
  72. package/columnMenu/GridColumnMenuItemContent.js +2 -1
  73. package/columnMenu/GridColumnMenuItemContent.mjs +4 -4
  74. package/columnMenu/GridColumnMenuItemGroup.js +2 -1
  75. package/columnMenu/GridColumnMenuItemGroup.mjs +4 -4
  76. package/columnMenu/GridColumnMenuSort.js +2 -1
  77. package/columnMenu/GridColumnMenuSort.mjs +8 -8
  78. package/columnMenu/GridColumnMenuWrapper.js +2 -1
  79. package/components/GridContainerElementContainer.js +2 -1
  80. package/components/GridCustomCellClientContainer.js +2 -1
  81. package/components/GridCustomCellClientContainer.mjs +2 -2
  82. package/components/GridDragClue.js +2 -1
  83. package/components/GridDragClue.mjs +5 -5
  84. package/components/GridDraggableRowsContainer.js +2 -1
  85. package/components/GridDropClue.js +2 -1
  86. package/components/GridDropClue.mjs +5 -5
  87. package/components/GridElementContainer.js +2 -1
  88. package/components/GridElementContainer.mjs +6 -6
  89. package/components/GridLoader.js +9 -0
  90. package/components/GridLoader.mjs +22 -0
  91. package/components/PagerContainer.js +2 -1
  92. package/components/PagerContainer.mjs +4 -4
  93. package/components/VirtualScrollHeightContainer.js +2 -1
  94. package/components/VirtualScrollHeightContainer.mjs +2 -2
  95. package/components/colGroup/GridColGroup.js +2 -1
  96. package/components/colGroup/GridColGroup.mjs +5 -5
  97. package/components/icons/reorder-row-svg.js +2 -1
  98. package/components/icons/reorder-row-svg.mjs +2 -2
  99. package/components/noRecords/GridNoRecords.js +2 -1
  100. package/components/noRecords/GridNoRecords.mjs +5 -5
  101. package/components/noRecords/GridNoRecordsContainer.js +2 -1
  102. package/components/noRecords/GridNoRecordsContainer.mjs +4 -4
  103. package/components/table/GridTable.js +2 -1
  104. package/components/table/GridTable.mjs +4 -4
  105. package/components/table/GridTableBody.js +2 -1
  106. package/components/table/GridTableBody.mjs +2 -2
  107. package/components/table/GridTableScrollable.js +2 -1
  108. package/components/table/GridTableScrollable.mjs +6 -6
  109. package/components/utils.js +1 -1
  110. package/components/utils.mjs +0 -1
  111. package/constants/index.js +1 -1
  112. package/constants/index.mjs +0 -1
  113. package/contextMenu/GridContextMenu.js +2 -1
  114. package/contextMenu/GridContextMenu.mjs +3 -3
  115. package/contextMenu/enums.js +1 -1
  116. package/contextMenu/enums.mjs +0 -1
  117. package/dist/cdn/js/kendo-react-grid.js +8 -1
  118. package/drag/ColumnDraggable.js +2 -1
  119. package/drag/ColumnDraggable.mjs +7 -7
  120. package/drag/ColumnResize.js +1 -1
  121. package/drag/ColumnResize.mjs +0 -1
  122. package/drag/CommonDragLogic.js +1 -1
  123. package/drag/CommonDragLogic.mjs +0 -1
  124. package/drag/GroupingIndicator.js +2 -1
  125. package/drag/GroupingIndicator.mjs +11 -11
  126. package/filterCommon.js +1 -1
  127. package/filterCommon.mjs +4 -5
  128. package/footer/Footer.js +2 -1
  129. package/footer/FooterCell.js +1 -1
  130. package/footer/FooterCell.mjs +3 -4
  131. package/footer/FooterRow.js +1 -1
  132. package/footer/FooterRow.mjs +6 -7
  133. package/footer/client/FooterCellContainer.js +2 -1
  134. package/footer/client/FooterCellContainer.mjs +5 -5
  135. package/header/FilterRow.js +1 -1
  136. package/header/FilterRow.mjs +41 -43
  137. package/header/GridHeaderCell.js +2 -1
  138. package/header/GridHeaderCell.mjs +4 -4
  139. package/header/GridHeaderSelectionCell.js +2 -1
  140. package/header/GroupPanel.js +2 -1
  141. package/header/Header.js +2 -1
  142. package/header/HeaderRow.js +1 -1
  143. package/header/HeaderRow.mjs +33 -35
  144. package/header/client/GridFilterCellContainer.js +2 -1
  145. package/header/client/GridFilterCellContainer.mjs +7 -7
  146. package/header/client/GridFilterCellElementContainer.js +2 -1
  147. package/header/client/GridHeaderCellContainer.js +2 -1
  148. package/header/client/GridHeaderCellElementContainer.js +2 -1
  149. package/header/client/GridHeaderCellElementContainer.mjs +10 -10
  150. package/header/client/GridHeaderRowContainer.js +2 -1
  151. package/header/client/GridHeaderRowReorderCell.js +2 -1
  152. package/header/client/GridHeaderRowReorderCell.mjs +2 -2
  153. package/header/client/HeaderCellResizer.js +2 -1
  154. package/header/client/HeaderRowDraggable.js +2 -1
  155. package/index.d.mts +60 -3
  156. package/index.d.ts +60 -3
  157. package/index.js +1 -1
  158. package/index.mjs +46 -45
  159. package/messages/index.js +1 -1
  160. package/messages/index.mjs +38 -37
  161. package/messages/messagesMap.js +1 -1
  162. package/messages/messagesMap.mjs +2 -3
  163. package/package-metadata.js +1 -1
  164. package/package-metadata.mjs +2 -3
  165. package/package.json +27 -12
  166. package/paging/GridPagerSettings.js +1 -1
  167. package/paging/GridPagerSettings.mjs +6 -7
  168. package/rows/GridDetailRow.js +1 -1
  169. package/rows/GridDetailRow.mjs +2 -3
  170. package/rows/GridRow.js +2 -1
  171. package/sortCommon.js +8 -0
  172. package/{interfaces/GridSortSettings.mjs → sortCommon.mjs} +0 -1
  173. package/utils/_clientModule.js +2 -1
  174. package/utils/_clientModule.mjs +2 -2
  175. package/utils/_serverModule.js +1 -1
  176. package/utils/_serverModule.mjs +0 -1
  177. package/utils/index.js +1 -1
  178. package/utils/index.mjs +38 -39
  179. package/interfaces/GridSortSettings.js +0 -8
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,35 @@
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
+ };
package/GridState.js CHANGED
@@ -5,4 +5,5 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),w=o.createContext([{},()=>{},{}]),Y=()=>o.useContext(w),Z=e=>{var S,f,C,k,G,P,D,b,m,y,F,T,j,q,H,M,O,R;const{children:z,onEditChange:r,onFilterChange:l,onSortChange:i,onPageChange:c,onGroupChange:u,onDataStateChange:g,onSelectionChange:h,onDetailExpandChange:s,onGroupExpandChange:x,onHeaderSelectionChange:E}=e,[n,d]=o.useState({edit:(S=e.defaultEdit)!=null?S:e.edit,filter:(f=e.defaultFilter)!=null?f:e.filter,select:(C=e.defaultSelect)!=null?C:e.select,sort:(k=e.defaultSort)!=null?k:e.sort,take:(G=e.defaultTake)!=null?G:e.take,skip:(P=e.defaultSkip)!=null?P:e.skip,group:(D=e.defaultGroup)!=null?D:e.group,detailExpand:(b=e.defaultDetailExpand)!=null?b:e.detailExpand,groupExpand:(m=e.defaultGroupExpand)!=null?m:e.groupExpand}),A={edit:(y=e.edit)!=null?y:n.edit,filter:(F=e.filter)!=null?F:n.filter,sort:(T=e.sort)!=null?T:n.sort,take:(j=e.take)!=null?j:n.take,skip:(q=e.skip)!=null?q:n.skip,group:(H=e.group)!=null?H:n.group,select:(M=e.select)!=null?M:n.select,detailExpand:(O=e.detailExpand)!=null?O:n.detailExpand,groupExpand:(R=e.groupExpand)!=null?R:n.groupExpand},B=t=>{},I=t=>{d(a=>({...a,edit:t.edit})),r==null||r(t)},J=t=>{d(a=>({...a,filter:t.filter})),l==null||l(t)},K=t=>{d(a=>({...a,sort:t.sort})),i==null||i(t)},L=t=>{d(a=>({...a,...t.page})),c==null||c(t)},N=t=>{d(a=>({...a,group:t.group})),u==null||u(t)},Q=t=>{d(a=>({...a,...t.dataState})),g==null||g(t)},U=t=>{d(a=>({...a,select:t.select})),h==null||h(t)},V=t=>{d(a=>({...a,select:t.select})),E==null||E(t)},W=t=>{d(a=>({...a,detailExpand:t.detailExpand})),s==null||s(t)},X=t=>{d(a=>({...a,groupExpand:t.groupExpand})),x==null||x(t)};return o.createElement(w.Provider,{value:[A,B,{onEditChange:I,onFilterChange:l&&J,onSortChange:i&&K,onPageChange:c&&L,onGroupChange:u&&N,onDataStateChange:Q,onSelectionChange:U,onHeaderSelectionChange:V,onDetailExpandChange:W,onGroupExpandChange:X}]},z)};exports.GridClientStateProvider=Z;exports.useGridState=Y;
8
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),B=u.createContext([{},()=>{},{}]),v=()=>u.useContext(B),p=t=>{var f,C,k,G,P,D,b,m,y,F,T,j,q,H,M,O,R,w,z,A;const{children:I,onEditChange:h,onFilterChange:l,onSortChange:i,onSearchChange:o,onPageChange:c,onGroupChange:r,onDataStateChange:g,onSelectionChange:s,onDetailExpandChange:x,onGroupExpandChange:E,onHeaderSelectionChange:S}=t,[n,d]=u.useState({edit:(f=t.defaultEdit)!=null?f:t.edit,filter:(C=t.defaultFilter)!=null?C:t.filter,select:(k=t.defaultSelect)!=null?k:t.select,search:(G=t.defaultSearch)!=null?G:t.search,sort:(P=t.defaultSort)!=null?P:t.sort,take:(D=t.defaultTake)!=null?D:t.take,skip:(b=t.defaultSkip)!=null?b:t.skip,group:(m=t.defaultGroup)!=null?m:t.group,detailExpand:(y=t.defaultDetailExpand)!=null?y:t.detailExpand,groupExpand:(F=t.defaultGroupExpand)!=null?F:t.groupExpand}),J={edit:(T=t.edit)!=null?T:n.edit,filter:(j=t.filter)!=null?j:n.filter,search:(q=t.search)!=null?q:n.search,sort:(H=t.sort)!=null?H:n.sort,take:(M=t.take)!=null?M:n.take,skip:(O=t.skip)!=null?O:n.skip,group:(R=t.group)!=null?R:n.group,select:(w=t.select)!=null?w:n.select,detailExpand:(z=t.detailExpand)!=null?z:n.detailExpand,groupExpand:(A=t.groupExpand)!=null?A:n.groupExpand},K=e=>{},L=e=>{d(a=>({...a,edit:e.edit})),h==null||h(e)},N=e=>{d(a=>({...a,filter:e.filter})),l==null||l(e)},Q=e=>{d(a=>({...a,search:e.search})),o==null||o(e)},U=e=>{d(a=>({...a,sort:e.sort})),i==null||i(e)},V=e=>{d(a=>({...a,...e.page})),c==null||c(e)},W=e=>{d(a=>({...a,group:e.group})),r==null||r(e)},X=e=>{d(a=>({...a,...e.dataState})),g==null||g(e)},Y=e=>{d(a=>({...a,select:e.select})),s==null||s(e)},Z=e=>{d(a=>({...a,select:e.select})),S==null||S(e)},_=e=>{d(a=>({...a,detailExpand:e.detailExpand})),x==null||x(e)},$=e=>{d(a=>({...a,groupExpand:e.groupExpand})),E==null||E(e)};return u.createElement(B.Provider,{value:[J,K,{onEditChange:L,onFilterChange:l&&N,onSearchChange:Q,onSortChange:i&&U,onPageChange:c&&V,onGroupChange:r&&W,onDataStateChange:X,onSelectionChange:Y,onHeaderSelectionChange:Z,onDetailExpandChange:_,onGroupExpandChange:$}]},I)};exports.GridClientStateProvider=p;exports.useGridState=v;
package/GridState.mjs CHANGED
@@ -6,88 +6,94 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import o from "react";
10
- const z = o.createContext([{}, () => {
11
- }, {}]), Y = () => o.useContext(z), Z = (e) => {
12
- var s, S, C, k, G, D, P, m, F, _, H, R, T, b, j, q, w, y;
9
+ import u from "react";
10
+ const I = u.createContext([{}, () => {
11
+ }, {}]), p = () => u.useContext(I), ee = (t) => {
12
+ var S, C, k, G, D, P, m, F, _, H, R, T, b, j, q, w, y, z, A, B;
13
13
  const {
14
- children: A,
14
+ children: J,
15
15
  onEditChange: r,
16
- onFilterChange: n,
17
- onSortChange: i,
18
- onPageChange: c,
19
- onGroupChange: u,
16
+ onFilterChange: l,
17
+ onSortChange: c,
18
+ onSearchChange: o,
19
+ onPageChange: i,
20
+ onGroupChange: h,
20
21
  onDataStateChange: g,
21
- onSelectionChange: h,
22
- onDetailExpandChange: x,
23
- onGroupExpandChange: E,
22
+ onSelectionChange: x,
23
+ onDetailExpandChange: E,
24
+ onGroupExpandChange: s,
24
25
  onHeaderSelectionChange: f
25
- } = e, [l, d] = o.useState({
26
- edit: (s = e.defaultEdit) != null ? s : e.edit,
27
- filter: (S = e.defaultFilter) != null ? S : e.filter,
28
- select: (C = e.defaultSelect) != null ? C : e.select,
29
- sort: (k = e.defaultSort) != null ? k : e.sort,
30
- take: (G = e.defaultTake) != null ? G : e.take,
31
- skip: (D = e.defaultSkip) != null ? D : e.skip,
32
- group: (P = e.defaultGroup) != null ? P : e.group,
33
- detailExpand: (m = e.defaultDetailExpand) != null ? m : e.detailExpand,
34
- groupExpand: (F = e.defaultGroupExpand) != null ? F : e.groupExpand
35
- }), B = {
36
- edit: (_ = e.edit) != null ? _ : l.edit,
37
- filter: (H = e.filter) != null ? H : l.filter,
38
- sort: (R = e.sort) != null ? R : l.sort,
39
- take: (T = e.take) != null ? T : l.take,
40
- skip: (b = e.skip) != null ? b : l.skip,
41
- group: (j = e.group) != null ? j : l.group,
42
- select: (q = e.select) != null ? q : l.select,
43
- detailExpand: (w = e.detailExpand) != null ? w : l.detailExpand,
44
- groupExpand: (y = e.groupExpand) != null ? y : l.groupExpand
45
- }, I = (t) => {
46
- }, J = (t) => {
47
- d((a) => ({ ...a, edit: t.edit })), r == null || r(t);
48
- }, K = (t) => {
49
- d((a) => ({ ...a, filter: t.filter })), n == null || n(t);
50
- }, L = (t) => {
51
- d((a) => ({ ...a, sort: t.sort })), i == null || i(t);
52
- }, M = (t) => {
53
- d((a) => ({ ...a, ...t.page })), c == null || c(t);
54
- }, N = (t) => {
55
- d((a) => ({ ...a, group: t.group })), u == null || u(t);
56
- }, O = (t) => {
57
- d((a) => ({ ...a, ...t.dataState })), g == null || g(t);
58
- }, Q = (t) => {
59
- d((a) => ({ ...a, select: t.select })), h == null || h(t);
60
- }, U = (t) => {
61
- d((a) => ({ ...a, select: t.select })), f == null || f(t);
62
- }, V = (t) => {
63
- d((a) => ({ ...a, detailExpand: t.detailExpand })), x == null || x(t);
64
- }, W = (t) => {
65
- d((a) => ({ ...a, groupExpand: t.groupExpand })), E == null || E(t);
26
+ } = t, [n, d] = u.useState({
27
+ edit: (S = t.defaultEdit) != null ? S : t.edit,
28
+ filter: (C = t.defaultFilter) != null ? C : t.filter,
29
+ select: (k = t.defaultSelect) != null ? k : t.select,
30
+ search: (G = t.defaultSearch) != null ? G : t.search,
31
+ sort: (D = t.defaultSort) != null ? D : t.sort,
32
+ take: (P = t.defaultTake) != null ? P : t.take,
33
+ skip: (m = t.defaultSkip) != null ? m : t.skip,
34
+ group: (F = t.defaultGroup) != null ? F : t.group,
35
+ detailExpand: (_ = t.defaultDetailExpand) != null ? _ : t.detailExpand,
36
+ groupExpand: (H = t.defaultGroupExpand) != null ? H : t.groupExpand
37
+ }), K = {
38
+ edit: (R = t.edit) != null ? R : n.edit,
39
+ filter: (T = t.filter) != null ? T : n.filter,
40
+ search: (b = t.search) != null ? b : n.search,
41
+ sort: (j = t.sort) != null ? j : n.sort,
42
+ take: (q = t.take) != null ? q : n.take,
43
+ skip: (w = t.skip) != null ? w : n.skip,
44
+ group: (y = t.group) != null ? y : n.group,
45
+ select: (z = t.select) != null ? z : n.select,
46
+ detailExpand: (A = t.detailExpand) != null ? A : n.detailExpand,
47
+ groupExpand: (B = t.groupExpand) != null ? B : n.groupExpand
48
+ }, L = (e) => {
49
+ }, M = (e) => {
50
+ d((a) => ({ ...a, edit: e.edit })), r == null || r(e);
51
+ }, N = (e) => {
52
+ d((a) => ({ ...a, filter: e.filter })), l == null || l(e);
53
+ }, O = (e) => {
54
+ d((a) => ({ ...a, search: e.search })), o == null || o(e);
55
+ }, Q = (e) => {
56
+ d((a) => ({ ...a, sort: e.sort })), c == null || c(e);
57
+ }, U = (e) => {
58
+ d((a) => ({ ...a, ...e.page })), i == null || i(e);
59
+ }, V = (e) => {
60
+ d((a) => ({ ...a, group: e.group })), h == null || h(e);
61
+ }, W = (e) => {
62
+ d((a) => ({ ...a, ...e.dataState })), g == null || g(e);
63
+ }, X = (e) => {
64
+ d((a) => ({ ...a, select: e.select })), x == null || x(e);
65
+ }, Y = (e) => {
66
+ d((a) => ({ ...a, select: e.select })), f == null || f(e);
67
+ }, Z = (e) => {
68
+ d((a) => ({ ...a, detailExpand: e.detailExpand })), E == null || E(e);
69
+ }, $ = (e) => {
70
+ d((a) => ({ ...a, groupExpand: e.groupExpand })), s == null || s(e);
66
71
  };
67
- return /* @__PURE__ */ o.createElement(
68
- z.Provider,
72
+ return /* @__PURE__ */ u.createElement(
73
+ I.Provider,
69
74
  {
70
75
  value: [
71
- B,
72
- I,
76
+ K,
77
+ L,
73
78
  {
74
- onEditChange: J,
75
- onFilterChange: n && K,
76
- onSortChange: i && L,
77
- onPageChange: c && M,
78
- onGroupChange: u && N,
79
- onDataStateChange: O,
80
- onSelectionChange: Q,
81
- onHeaderSelectionChange: U,
82
- onDetailExpandChange: V,
83
- onGroupExpandChange: W
79
+ onEditChange: M,
80
+ onFilterChange: l && N,
81
+ onSearchChange: O,
82
+ onSortChange: c && Q,
83
+ onPageChange: i && U,
84
+ onGroupChange: h && V,
85
+ onDataStateChange: W,
86
+ onSelectionChange: X,
87
+ onHeaderSelectionChange: Y,
88
+ onDetailExpandChange: Z,
89
+ onGroupExpandChange: $
84
90
  }
85
91
  ]
86
92
  },
87
- A
93
+ J
88
94
  );
89
95
  };
90
96
  export {
91
- Z as GridClientStateProvider,
92
- Y as useGridState
97
+ ee as GridClientStateProvider,
98
+ p as useGridState
93
99
  };
package/GridToolbar.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),r=require("@progress/kendo-react-common");function s(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>o[t]})}}return e.default=o,Object.freeze(e)}const b=s(i),l=o=>{const{size:e,className:t,ariaLabel:a,ariaControls:n,children:c}=o;return b.createElement("div",{className:r.classNames("k-toolbar k-grid-toolbar k-toolbar-solid",{"k-toolbar-md":!e,[`k-toolbar-${r.kendoThemeMaps.sizeMap[e]||e}`]:e},t),"aria-label":a,"aria-controls":n,role:"toolbar"},c)};l.displayName="KendoReactGridToolbar";exports.GridToolbar=l;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),r=require("@progress/kendo-react-common");function s(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>o[t]})}}return e.default=o,Object.freeze(e)}const b=s(i),l=o=>{const{size:e,className:t,ariaLabel:a,ariaControls:n,children:c}=o;return b.createElement("div",{className:r.classNames("k-toolbar k-grid-toolbar k-toolbar-solid",{"k-toolbar-md":!e,[`k-toolbar-${r.kendoThemeMaps.sizeMap[e]||e}`]:e},t),"aria-label":a,"aria-controls":n,role:"toolbar"},c)};l.displayName="KendoReactGridToolbar";exports.GridToolbar=l;
package/GridToolbar.mjs CHANGED
@@ -5,10 +5,9 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as s from "react";
10
- import { classNames as i, kendoThemeMaps as c } from "@progress/kendo-react-common";
11
- const m = (o) => {
9
+ import { classNames as i, kendoThemeMaps as m } from "@progress/kendo-react-common";
10
+ const b = (o) => {
12
11
  const { size: a, className: r, ariaLabel: e, ariaControls: l, children: t } = o;
13
12
  return /* @__PURE__ */ s.createElement(
14
13
  "div",
@@ -17,7 +16,7 @@ const m = (o) => {
17
16
  "k-toolbar k-grid-toolbar k-toolbar-solid",
18
17
  {
19
18
  "k-toolbar-md": !a,
20
- [`k-toolbar-${c.sizeMap[a] || a}`]: a
19
+ [`k-toolbar-${m.sizeMap[a] || a}`]: a
21
20
  },
22
21
  r
23
22
  ),
@@ -28,7 +27,7 @@ const m = (o) => {
28
27
  t
29
28
  );
30
29
  };
31
- m.displayName = "KendoReactGridToolbar";
30
+ b.displayName = "KendoReactGridToolbar";
32
31
  export {
33
- m as GridToolbar
32
+ b as GridToolbar
34
33
  };
@@ -5,4 +5,5 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),n=require("@progress/kendo-react-common"),c=require("./package-metadata.js");function i(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 l=i(o),s=e=>n.shouldShowValidationUI(c.packageMetadata)&&l.createElement(n.WatermarkOverlay,null);exports.GridWatermarkOverlay=s;
8
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),n=require("@progress/kendo-react-common"),c=require("./package-metadata.js");function i(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 l=i(o),s=e=>n.shouldShowValidationUI(c.packageMetadata)&&l.createElement(n.WatermarkOverlay,null);exports.GridWatermarkOverlay=s;
@@ -7,9 +7,9 @@
7
7
  */
8
8
  "use client";
9
9
  import * as r from "react";
10
- import { shouldShowValidationUI as e, WatermarkOverlay as a } from "@progress/kendo-react-common";
10
+ import { shouldShowValidationUI as a, WatermarkOverlay as e } from "@progress/kendo-react-common";
11
11
  import { packageMetadata as t } from "./package-metadata.mjs";
12
- const n = (o) => e(t) && /* @__PURE__ */ r.createElement(a, null);
12
+ const n = (o) => a(t) && /* @__PURE__ */ r.createElement(e, null);
13
13
  export {
14
14
  n as GridWatermarkOverlay
15
15
  };
package/StatusBar.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react"),u=require("@progress/kendo-react-common");function O(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const o in s)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:()=>s[o]})}}return n.default=s,Object.freeze(n)}const c=O(E),b=s=>{const{data:n=[]}=s;return c.createElement("div",{className:"k-selection-aggregates k-grid-selection-aggregates"},n.map((o,r)=>c.createElement("div",{key:r},c.createElement("span",{className:"k-selection-aggregates-item-text"},o.type,": "),c.createElement("span",{className:"k-selection-aggregates-item-value"},o.formattedValue))))};b.displayName="KendoReactGridStatusBar";const p=s=>{var o;const n=s.slice();for(let r=0;r<n.length;r++)for(;n[r]&&((o=n[r].children)!=null&&o.length);)n.splice(r,1,...n[r].children);return n},j=s=>{const{dataItems:n,target:o}=s,y=p(o.columns).map(e=>e.field).filter(e=>e&&typeof e=="string").map(e=>u.getter(e)),S="selectedField"in s?u.getter(s.selectedField):e=>s.select[u.getter(s.dataItemKey)(e)],t={dates:[],numbers:[],booleans:[],others:[]},D=e=>{typeof e=="number"?t.numbers.push(e):typeof e=="boolean"?t.booleans.push(e):e instanceof Date?t.dates.push(e):t.others.push(e)};n.forEach(e=>{const a=S(e);a&&a.forEach(l=>{D(y[l](e))})});const m=t.dates.map(e=>e.getTime()),d=t.booleans.filter(e=>e).length,g=t.booleans.filter(e=>!e).length,i=t.numbers.length?t.numbers.reduce((e,a)=>e+=a,0):void 0,f={sum:i,average:typeof i=="number"?i/t.numbers.length:void 0,min:t.numbers.length?Math.min(...t.numbers):void 0,max:t.numbers.length?Math.max(...t.numbers):void 0,count:t.numbers.length+t.booleans.length+t.dates.length+t.others.length,isTrue:d>0?d:void 0,isFalse:g>0?g:void 0,earliest:t.dates.length?new Date(Math.min(...m)):void 0,latest:t.dates.length?new Date(Math.max(...m)):void 0},v=(e,a)=>(a==="sum"||a==="average")&&typeof e=="number"?e.toFixed(2):(a==="earliest"||a==="latest")&&e instanceof Date?e.toLocaleDateString():String(e),h=[];return Object.keys(f).forEach(e=>{const a=e,l=f[a];l!==void 0&&h.push({type:a,value:l,formattedValue:v(l,a)})}),h};exports.StatusBar=b;exports.getStatusData=j;exports.leafColumns=p;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react"),u=require("@progress/kendo-react-common");function O(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const o in s)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:()=>s[o]})}}return n.default=s,Object.freeze(n)}const c=O(E),b=s=>{const{data:n=[]}=s;return c.createElement("div",{className:"k-selection-aggregates k-grid-selection-aggregates"},n.map((o,r)=>c.createElement("div",{key:r},c.createElement("span",{className:"k-selection-aggregates-item-text"},o.type,": "),c.createElement("span",{className:"k-selection-aggregates-item-value"},o.formattedValue))))};b.displayName="KendoReactGridStatusBar";const p=s=>{var o;const n=s.slice();for(let r=0;r<n.length;r++)for(;n[r]&&((o=n[r].children)!=null&&o.length);)n.splice(r,1,...n[r].children);return n},j=s=>{const{dataItems:n,target:o}=s,y=p(o.columns).map(e=>e.field).filter(e=>e&&typeof e=="string").map(e=>u.getter(e)),S="selectedField"in s?u.getter(s.selectedField):e=>s.select[u.getter(s.dataItemKey)(e)],t={dates:[],numbers:[],booleans:[],others:[]},D=e=>{typeof e=="number"?t.numbers.push(e):typeof e=="boolean"?t.booleans.push(e):e instanceof Date?t.dates.push(e):t.others.push(e)};n.forEach(e=>{const a=S(e);a&&a.forEach(l=>{D(y[l](e))})});const m=t.dates.map(e=>e.getTime()),d=t.booleans.filter(e=>e).length,g=t.booleans.filter(e=>!e).length,i=t.numbers.length?t.numbers.reduce((e,a)=>e+=a,0):void 0,f={sum:i,average:typeof i=="number"?i/t.numbers.length:void 0,min:t.numbers.length?Math.min(...t.numbers):void 0,max:t.numbers.length?Math.max(...t.numbers):void 0,count:t.numbers.length+t.booleans.length+t.dates.length+t.others.length,isTrue:d>0?d:void 0,isFalse:g>0?g:void 0,earliest:t.dates.length?new Date(Math.min(...m)):void 0,latest:t.dates.length?new Date(Math.max(...m)):void 0},v=(e,a)=>(a==="sum"||a==="average")&&typeof e=="number"?e.toFixed(2):(a==="earliest"||a==="latest")&&e instanceof Date?e.toLocaleDateString():String(e),h=[];return Object.keys(f).forEach(e=>{const a=e,l=f[a];l!==void 0&&h.push({type:a,value:l,formattedValue:v(l,a)})}),h};exports.StatusBar=b;exports.getStatusData=j;exports.leafColumns=p;
package/StatusBar.mjs CHANGED
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as i from "react";
10
9
  import { getter as m } from "@progress/kendo-react-common";
11
10
  const x = (a) => {
package/VirtualScroll.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react");function g(r){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(i,t,s.get?s:{enumerable:!0,get:()=>r[t]})}}return i.default=r,Object.freeze(i)}const u=g(p);class f{constructor(i){this.table=null,this.containerHeight=0,this.topCacheCount=0,this.attendedSkip=0,this.propsSkip=0,this.total=0,this.scrollableVirtual=!1,this.realSkip=0,this.pageSize=0,this.PageChange=null,this.tableBodyRef=null,this.fixedScroll=!1,this.askedSkip=void 0,this.containerRef=null,this.tableTransform="",this.prevScrollPos=0,this.tableTranslate=0,this.scrollSyncing=!1,this.reactVersion=Number.parseFloat(u.version),this.topItems=(t,s)=>{if(!this.container||s)return{topItemsCount:0,topItemsHeight:0};const l=this.container.clientHeight,e=Math.ceil(l/t[0].line),n=Math.ceil((t.length-e)/2);let o=0;for(let a=0;a<n;a++)o+=t[a].line+t[a].acc;return{topItemsCount:n,topItemsHeight:o,itemsNeededOnScreen:e+e/2}},this.horizontalScrollbarHeight=()=>this.container?this.container.offsetHeight-this.container.clientHeight:0,i&&(this.topCacheCount=4,this.attendedSkip=-this.topCacheCount),this.scrollHandler=this.scrollHandler.bind(this)}get container(){var i;return(i=this.containerRef)==null?void 0:i.current}get rowHeights(){var l,e;const i=[],t=((l=this.tableBodyRef)==null?void 0:l.current)&&((e=this.tableBodyRef)==null?void 0:e.current.children)||[];let s=0;for(let n=0;n<t.length;n++){if(t[n].className.indexOf("k-grouping-row")>-1){s+=t[n].scrollHeight;continue}t[n].className.indexOf("k-detail-row")>-1?i[i.length-1].line+=t[n].scrollHeight:(i.push({line:t[n].scrollHeight,acc:s}),s=0)}return i}changePage(i,t){this.attendedSkip=i-this.topCacheCount,this.PageChange&&this.PageChange({skip:Math.max(0,i-this.topCacheCount),take:this.pageSize},t)}translate(i,t){this.tableTranslate=i,this.scrollableVirtual&&this.table&&(this.reactVersion<=17||t?this.table.style.transform="translateY("+i+"px)":this.tableTransform="translateY("+i+"px)")}reset(){this.scrollSyncing=!0,!this.fixedScroll&&(this.container&&(this.container.scrollTop=0),this.translate(0,!0))}localScrollUp(i){if(!this.container)return;const t=this.rowHeights,s=this.container.scrollTop;let l=this.tableTranslate,e=0;const{topItemsCount:n,topItemsHeight:o,itemsNeededOnScreen:a}=this.topItems(t,!!this.topCacheCount),h=s-l;if(!(h>o||t.length<=a)){for(;e<this.topCacheCount+this.attendedSkip-this.realSkip+n&&this.propsSkip-e>0&&!(l+(t[t.length-1-e].line+t[t.length-1-e].acc)+h<=s);)l-=t[t.length-1-e].line+t[t.length-1-e].acc,e++;if(e===0&&this.topCacheCount===0&&this.attendedSkip>0&&(l=Math.max(l-t[0].line,0),e=1),this.propsSkip-e<=0&&l>s){this.translate(0),this.changePage(0,i),this.container.scrollTop=0;return}if(l>s&&(l=s),l!==this.tableTranslate){this.translate(Math.max(0,l-o));const c=Math.max(0,this.propsSkip-e-n);this.changePage(c,i)}}}localScrollDown(i){if(!this.container)return;const t=this.rowHeights,s=this.container.scrollTop;let l=this.tableTranslate,e=0;const{topItemsCount:n,topItemsHeight:o,itemsNeededOnScreen:a}=this.topItems(t,!!this.topCacheCount);for(;e<t.length-this.topCacheCount&&!(l+t[e].line+t[e].acc>s);)l+=t[e].line+t[e].acc,e++;n>this.propsSkip+e||t.length<=a||(e>=t.length-this.topCacheCount&&this.propsSkip+e>=this.total?(this.translate(l-o),this.changePage(this.total-1-n,i)):l!==this.tableTranslate&&this.propsSkip+e-n!==this.propsSkip&&(this.translate(l-o),this.changePage(this.propsSkip+e-n,i)))}scrollNonStrict(i){const t=this.total*this.prevScrollPos/this.containerHeight;let s=Math.floor(t);s>=this.total&&(s=this.total-1);const l=Math.min(t-s,1);let e=0;const n=s-this.propsSkip,o=this.rowHeights;n>=0&&n<=1?e=-((o[0].line+o[0].acc)*l):n===-1&&(e=-((o[o.length-1].line+o[o.length-1].acc)*l));const{topItemsCount:a,topItemsHeight:h}=this.topItems(o,!!this.topCacheCount);this.translate(Math.max(0,e-h-this.horizontalScrollbarHeight()+this.containerHeight*t/this.total)),this.changePage(s-a,i)}scrollHandler(i){if(!this.scrollableVirtual)return;if(this.scrollSyncing||!this.container||!this.table){this.scrollSyncing=!1;return}const t=this.container.scrollTop,s=this.prevScrollPos;if(this.prevScrollPos=t,this.askedSkip!==void 0){this.translate(this.containerHeight*this.askedSkip/this.total),this.changePage(this.askedSkip,i),this.prevScrollPos=t,this.askedSkip=void 0;return}t-s<0&&t>this.tableTranslate-this.table.scrollHeight/10?this.localScrollUp(i):t-s>0&&t<this.tableTranslate+this.table.scrollHeight*2/3?this.localScrollDown(i):this.scrollNonStrict(i),this.prevScrollPos=t}}exports.VirtualScroll=f;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react");function g(r){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(i,t,s.get?s:{enumerable:!0,get:()=>r[t]})}}return i.default=r,Object.freeze(i)}const u=g(p);class f{constructor(i){this.table=null,this.containerHeight=0,this.topCacheCount=0,this.attendedSkip=0,this.propsSkip=0,this.total=0,this.scrollableVirtual=!1,this.realSkip=0,this.pageSize=0,this.PageChange=null,this.tableBodyRef=null,this.fixedScroll=!1,this.askedSkip=void 0,this.containerRef=null,this.tableTransform="",this.prevScrollPos=0,this.tableTranslate=0,this.scrollSyncing=!1,this.reactVersion=Number.parseFloat(u.version),this.topItems=(t,s)=>{if(!this.container||s)return{topItemsCount:0,topItemsHeight:0};const l=this.container.clientHeight,e=Math.ceil(l/t[0].line),n=Math.ceil((t.length-e)/2);let o=0;for(let a=0;a<n;a++)o+=t[a].line+t[a].acc;return{topItemsCount:n,topItemsHeight:o,itemsNeededOnScreen:e+e/2}},this.horizontalScrollbarHeight=()=>this.container?this.container.offsetHeight-this.container.clientHeight:0,i&&(this.topCacheCount=4,this.attendedSkip=-this.topCacheCount),this.scrollHandler=this.scrollHandler.bind(this)}get container(){var i;return(i=this.containerRef)==null?void 0:i.current}get rowHeights(){var l,e;const i=[],t=((l=this.tableBodyRef)==null?void 0:l.current)&&((e=this.tableBodyRef)==null?void 0:e.current.children)||[];let s=0;for(let n=0;n<t.length;n++){if(t[n].className.indexOf("k-grouping-row")>-1){s+=t[n].scrollHeight;continue}t[n].className.indexOf("k-detail-row")>-1?i[i.length-1].line+=t[n].scrollHeight:(i.push({line:t[n].scrollHeight,acc:s}),s=0)}return i}changePage(i,t){this.attendedSkip=i-this.topCacheCount,this.PageChange&&this.PageChange({skip:Math.max(0,i-this.topCacheCount),take:this.pageSize},t)}translate(i,t){this.tableTranslate=i,this.scrollableVirtual&&this.table&&(this.reactVersion<=17||t?this.table.style.transform="translateY("+i+"px)":this.tableTransform="translateY("+i+"px)")}reset(){this.scrollSyncing=!0,!this.fixedScroll&&(this.container&&(this.container.scrollTop=0),this.translate(0,!0))}localScrollUp(i){if(!this.container)return;const t=this.rowHeights,s=this.container.scrollTop;let l=this.tableTranslate,e=0;const{topItemsCount:n,topItemsHeight:o,itemsNeededOnScreen:a}=this.topItems(t,!!this.topCacheCount),h=s-l;if(!(h>o||t.length<=a)){for(;e<this.topCacheCount+this.attendedSkip-this.realSkip+n&&this.propsSkip-e>0&&!(l+(t[t.length-1-e].line+t[t.length-1-e].acc)+h<=s);)l-=t[t.length-1-e].line+t[t.length-1-e].acc,e++;if(e===0&&this.topCacheCount===0&&this.attendedSkip>0&&(l=Math.max(l-t[0].line,0),e=1),this.propsSkip-e<=0&&l>s){this.translate(0),this.changePage(0,i),this.container.scrollTop=0;return}if(l>s&&(l=s),l!==this.tableTranslate){this.translate(Math.max(0,l-o));const c=Math.max(0,this.propsSkip-e-n);this.changePage(c,i)}}}localScrollDown(i){if(!this.container)return;const t=this.rowHeights,s=this.container.scrollTop;let l=this.tableTranslate,e=0;const{topItemsCount:n,topItemsHeight:o,itemsNeededOnScreen:a}=this.topItems(t,!!this.topCacheCount);for(;e<t.length-this.topCacheCount&&!(l+t[e].line+t[e].acc>s);)l+=t[e].line+t[e].acc,e++;n>this.propsSkip+e||t.length<=a||(e>=t.length-this.topCacheCount&&this.propsSkip+e>=this.total?(this.translate(l-o),this.changePage(this.total-1-n,i)):l!==this.tableTranslate&&this.propsSkip+e-n!==this.propsSkip&&(this.translate(l-o),this.changePage(this.propsSkip+e-n,i)))}scrollNonStrict(i){const t=this.total*this.prevScrollPos/this.containerHeight;let s=Math.floor(t);s>=this.total&&(s=this.total-1);const l=Math.min(t-s,1);let e=0;const n=s-this.propsSkip,o=this.rowHeights;n>=0&&n<=1?e=-((o[0].line+o[0].acc)*l):n===-1&&(e=-((o[o.length-1].line+o[o.length-1].acc)*l));const{topItemsCount:a,topItemsHeight:h}=this.topItems(o,!!this.topCacheCount);this.translate(Math.max(0,e-h-this.horizontalScrollbarHeight()+this.containerHeight*t/this.total)),this.changePage(s-a,i)}scrollHandler(i){if(!this.scrollableVirtual)return;if(this.scrollSyncing||!this.container||!this.table){this.scrollSyncing=!1;return}const t=this.container.scrollTop,s=this.prevScrollPos;if(this.prevScrollPos=t,this.askedSkip!==void 0){this.translate(this.containerHeight*this.askedSkip/this.total),this.changePage(this.askedSkip,i),this.prevScrollPos=t,this.askedSkip=void 0;return}t-s<0&&t>this.tableTranslate-this.table.scrollHeight/10?this.localScrollUp(i):t-s>0&&t<this.tableTranslate+this.table.scrollHeight*2/3?this.localScrollDown(i):this.scrollNonStrict(i),this.prevScrollPos=t}}exports.VirtualScroll=f;
package/VirtualScroll.mjs CHANGED
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as c from "react";
10
9
  class g {
11
10
  constructor(i) {
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),g=require("./utils/index.js");function u(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const e in s)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(s,e);Object.defineProperty(t,e,a.get?a:{enumerable:!0,get:()=>s[e]})}}return t.default=s,Object.freeze(t)}const p=u(d);class S{constructor(t){this.table=null,this.containerHeight=0,this.topCacheCount=0,this.attendedSkip=0,this.propsSkip=0,this.total=0,this.scrollableVirtual=!1,this.realSkip=0,this.pageSize=0,this.PageChange=null,this.tableBodyRef=null,this.fixedScroll=!1,this.askedSkip=void 0,this.containerRef=null,this.tableTransform="",this.scrollSyncing=!1,this.lastLoaded=0,this.firstLoaded=0,this.lastScrollTop=0,this.reactVersion=Number.parseFloat(p.version),this.firstLoaded=this.pageSize,this.lastLoaded=this.realSkip+this.pageSize,this.scrollHandler=this.scrollHandler.bind(this)}get container(){var t;return((t=this.containerRef)==null?void 0:t.current)||void 0}translate(t,e){this.scrollableVirtual&&this.table&&(g.firefox||this.reactVersion<=17||e?this.table.style.transform="translateY("+t+"px)":this.tableTransform="translateY("+t+"px)")}changePage(t,e){this.PageChange&&this.PageChange({skip:Math.max(0,t),take:this.pageSize},e)}reset(){this.scrollSyncing=!0,!this.fixedScroll&&(this.container&&(this.container.scrollTop=0),this.translate(0,!0))}scrollHandler(t){var o;if(!this.scrollableVirtual||!this.container||!this.table||!this.rowHeightService||!((o=this.containerRef)!=null&&o.current))return;if(this.scrollSyncing){this.scrollSyncing=!1;return}const e=this.container.scrollTop,a=this.lastScrollTop>=e,n=!a;this.lastScrollTop=e;let i=this.rowHeightService.index(e),l=this.rowHeightService.offset(i);const{offsetHeight:h}=this.containerRef.current,c=this.rowHeightService.index(e+h);if(n&&c>=this.lastLoaded&&this.lastLoaded<this.total){const r=i+this.pageSize-this.total;r>0&&(i=i-r,l=this.rowHeightService.offset(i)),this.firstLoaded=i,this.translate(l);const f=this.firstLoaded+this.pageSize;this.lastLoaded=Math.min(f,this.total),this.changePage(this.firstLoaded,t)}else if(a&&i<this.firstLoaded){const r=Math.floor(this.pageSize*.3);this.firstLoaded=Math.max(i-r,0),this.translate(this.rowHeightService.offset(this.firstLoaded)),this.lastLoaded=Math.min(this.firstLoaded+this.pageSize,this.total),this.changePage(this.firstLoaded,t)}}}exports.VirtualScrollFixed=S;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),g=require("./utils/index.js");function u(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const e in s)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(s,e);Object.defineProperty(t,e,a.get?a:{enumerable:!0,get:()=>s[e]})}}return t.default=s,Object.freeze(t)}const p=u(d);class S{constructor(t){this.table=null,this.containerHeight=0,this.topCacheCount=0,this.attendedSkip=0,this.propsSkip=0,this.total=0,this.scrollableVirtual=!1,this.realSkip=0,this.pageSize=0,this.PageChange=null,this.tableBodyRef=null,this.fixedScroll=!1,this.askedSkip=void 0,this.containerRef=null,this.tableTransform="",this.scrollSyncing=!1,this.lastLoaded=0,this.firstLoaded=0,this.lastScrollTop=0,this.reactVersion=Number.parseFloat(p.version),this.firstLoaded=this.pageSize,this.lastLoaded=this.realSkip+this.pageSize,this.scrollHandler=this.scrollHandler.bind(this)}get container(){var t;return((t=this.containerRef)==null?void 0:t.current)||void 0}translate(t,e){this.scrollableVirtual&&this.table&&(g.firefox||this.reactVersion<=17||e?this.table.style.transform="translateY("+t+"px)":this.tableTransform="translateY("+t+"px)")}changePage(t,e){this.PageChange&&this.PageChange({skip:Math.max(0,t),take:this.pageSize},e)}reset(){this.scrollSyncing=!0,!this.fixedScroll&&(this.container&&(this.container.scrollTop=0),this.translate(0,!0))}scrollHandler(t){var l;if(!this.scrollableVirtual||!this.container||!this.table||!this.rowHeightService||!((l=this.containerRef)!=null&&l.current))return;if(this.scrollSyncing){this.scrollSyncing=!1;return}const e=this.container.scrollTop,a=this.lastScrollTop>=e,h=!a;this.lastScrollTop=e;let i=this.rowHeightService.index(e),o=this.rowHeightService.offset(i);const{offsetHeight:n}=this.containerRef.current,c=this.rowHeightService.index(e+n);if(h&&c>=this.lastLoaded&&this.lastLoaded<this.total){const r=i+this.pageSize-this.total;r>0&&(i=i-r,o=this.rowHeightService.offset(i)),this.firstLoaded=i,this.translate(o);const f=this.firstLoaded+this.pageSize;this.lastLoaded=Math.min(f,this.total),this.changePage(this.firstLoaded,t)}else if(a&&i<this.firstLoaded){const r=Math.floor(this.pageSize*.3);this.firstLoaded=Math.max(i-r,0),this.translate(this.rowHeightService.offset(this.firstLoaded)),this.lastLoaded=Math.min(this.firstLoaded+this.pageSize,this.total),this.changePage(this.firstLoaded,t)}}}exports.VirtualScrollFixed=S;
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as f from "react";
10
9
  import { firefox as d } from "./utils/index.mjs";
11
10
  class S {
@@ -33,18 +32,18 @@ class S {
33
32
  this.scrollSyncing = !1;
34
33
  return;
35
34
  }
36
- const i = this.container.scrollTop, a = this.lastScrollTop >= i, l = !a;
35
+ const i = this.container.scrollTop, a = this.lastScrollTop >= i, o = !a;
37
36
  this.lastScrollTop = i;
38
- let e = this.rowHeightService.index(i), r = this.rowHeightService.offset(e);
39
- const { offsetHeight: o } = this.containerRef.current, n = this.rowHeightService.index(i + o);
40
- if (l && n >= this.lastLoaded && this.lastLoaded < this.total) {
41
- const s = e + this.pageSize - this.total;
42
- s > 0 && (e = e - s, r = this.rowHeightService.offset(e)), this.firstLoaded = e, this.translate(r);
37
+ let s = this.rowHeightService.index(i), r = this.rowHeightService.offset(s);
38
+ const { offsetHeight: l } = this.containerRef.current, n = this.rowHeightService.index(i + l);
39
+ if (o && n >= this.lastLoaded && this.lastLoaded < this.total) {
40
+ const e = s + this.pageSize - this.total;
41
+ e > 0 && (s = s - e, r = this.rowHeightService.offset(s)), this.firstLoaded = s, this.translate(r);
43
42
  const c = this.firstLoaded + this.pageSize;
44
43
  this.lastLoaded = Math.min(c, this.total), this.changePage(this.firstLoaded, t);
45
- } else if (a && e < this.firstLoaded) {
46
- const s = Math.floor(this.pageSize * 0.3);
47
- this.firstLoaded = Math.max(e - s, 0), this.translate(this.rowHeightService.offset(this.firstLoaded)), this.lastLoaded = Math.min(this.firstLoaded + this.pageSize, this.total), this.changePage(this.firstLoaded, t);
44
+ } else if (a && s < this.firstLoaded) {
45
+ const e = Math.floor(this.pageSize * 0.3);
46
+ this.firstLoaded = Math.max(s - e, 0), this.translate(this.rowHeightService.offset(this.firstLoaded)), this.lastLoaded = Math.min(this.firstLoaded + this.pageSize, this.total), this.changePage(this.firstLoaded, t);
48
47
  }
49
48
  }
50
49
  }
package/cells/GridCell.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),d=require("../utils/index.js"),S=require("../constants/index.js"),m=require("./client/GridCellContainer.js"),f=require("@progress/kendo-react-common"),G=require("@progress/kendo-react-intl");function T(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const i=T(y),b=e=>{let n=null,t=null,l=null;const r=e.unstyled,C=r&&r.uGrid?r.uGrid:f.uGrid,g=new G.IntlService("en");if(e.rowType==="groupFooter")t={className:e.className},n=i.createElement("td",{...t},l);else if(e.rowType!=="groupHeader"){if(e.field!==void 0){const c=d.getNestedValue(e.field,e.dataItem);c!=null&&(l=e.format?g.format(e.format,c):c.toString())}const a=f.classNames(C.td({selected:e.isSelected,sorted:e.isSorted,alt:e.isAlt}),e.className);t={colSpan:e.colSpan,style:e.style,className:a,role:"gridcell","aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,[S.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex},n=i.createElement("td",{...t},l)}const s=d.getClientCellProps(e),u=e.rowType||"data",o=e.cells;if(o&&o[u]){const a=o[u],c=d.isClientReference(a);return i.createElement(m.GridCellContainer,{cellProps:s,tdProps:t,isCustom:!0,isClient:c},i.createElement(a,{...e,tdProps:t},l))}return i.createElement(m.GridCellContainer,{cellProps:s,content:l,tdProps:t},n)};exports.GridCell=b;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),s=require("../utils/index.js"),y=require("../constants/index.js"),m=require("./client/GridCellContainer.js"),f=require("@progress/kendo-react-common");function S(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const c=S(g),G=e=>{let n=null,t=null,l=null;const r=e.unstyled,C=r&&r.uGrid?r.uGrid:f.uGrid;if(e.rowType==="groupFooter")t={className:e.className},n=c.createElement("td",{...t},l);else if(e.rowType!=="groupHeader"){if(e.field!==void 0){const i=s.getNestedValue(e.field,e.dataItem);i!=null&&(l=e.intl&&e.format?e.intl.format(e.format,i):i.toString())}const a=f.classNames(C.td({selected:e.isSelected,sorted:e.isSorted,alt:e.isAlt}),e.className);t={colSpan:e.colSpan,style:e.style,className:a,role:"gridcell","aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,[y.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex},n=c.createElement("td",{...t},l)}const d=s.getClientCellProps(e),u=e.rowType||"data",o=e.cells;if(o&&o[u]){const a=o[u],i=s.isClientReference(a);return c.createElement(m.GridCellContainer,{cellProps:d,tdProps:t,isCustom:!0,isClient:i},c.createElement(a,{...d,tdProps:t},l))}return c.createElement(m.GridCellContainer,{cellProps:d,content:l,tdProps:t},n)};exports.GridCell=G;
@@ -5,26 +5,24 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as i from "react";
10
- import { getNestedValue as C, getClientCellProps as g, isClientReference as y } from "../utils/index.mjs";
11
- import { GRID_COL_INDEX_ATTRIBUTE as S } from "../constants/index.mjs";
9
+ import { getNestedValue as f, getClientCellProps as C, isClientReference as g } from "../utils/index.mjs";
10
+ import { GRID_COL_INDEX_ATTRIBUTE as y } from "../constants/index.mjs";
12
11
  import { GridCellContainer as s } from "./client/GridCellContainer.mjs";
13
- import { uGrid as E, classNames as I } from "@progress/kendo-react-common";
14
- import { IntlService as N } from "@progress/kendo-react-intl";
15
- const v = (e) => {
12
+ import { uGrid as E, classNames as N } from "@progress/kendo-react-common";
13
+ const R = (e) => {
16
14
  let c = null, t = null, n = null;
17
- const r = e.unstyled, u = r && r.uGrid ? r.uGrid : E, f = new N("en");
15
+ const d = e.unstyled, u = d && d.uGrid ? d.uGrid : E;
18
16
  if (e.rowType === "groupFooter")
19
17
  t = {
20
18
  className: e.className
21
19
  }, c = /* @__PURE__ */ i.createElement("td", { ...t }, n);
22
20
  else if (e.rowType !== "groupHeader") {
23
21
  if (e.field !== void 0) {
24
- const l = C(e.field, e.dataItem);
25
- l != null && (n = e.format ? f.format(e.format, l) : l.toString());
22
+ const l = f(e.field, e.dataItem);
23
+ l != null && (n = e.intl && e.format ? e.intl.format(e.format, l) : l.toString());
26
24
  }
27
- const a = I(
25
+ const a = N(
28
26
  u.td({ selected: e.isSelected, sorted: e.isSorted, alt: e.isAlt }),
29
27
  e.className
30
28
  );
@@ -35,16 +33,16 @@ const v = (e) => {
35
33
  role: "gridcell",
36
34
  "aria-colindex": e.ariaColumnIndex,
37
35
  "aria-selected": e.isSelected,
38
- [S]: e.columnIndex
36
+ [y]: e.columnIndex
39
37
  }, c = /* @__PURE__ */ i.createElement("td", { ...t }, n);
40
38
  }
41
- const o = g(e), m = e.rowType || "data", d = e.cells;
42
- if (d && d[m]) {
43
- const a = d[m], l = y(a);
44
- return /* @__PURE__ */ i.createElement(s, { cellProps: o, tdProps: t, isCustom: !0, isClient: l }, /* @__PURE__ */ i.createElement(a, { ...e, tdProps: t }, n));
39
+ const r = C(e), o = e.rowType || "data", m = e.cells;
40
+ if (m && m[o]) {
41
+ const a = m[o], l = g(a);
42
+ return /* @__PURE__ */ i.createElement(s, { cellProps: r, tdProps: t, isCustom: !0, isClient: l }, /* @__PURE__ */ i.createElement(a, { ...r, tdProps: t }, n));
45
43
  }
46
- return /* @__PURE__ */ i.createElement(s, { cellProps: o, content: n, tdProps: t }, c);
44
+ return /* @__PURE__ */ i.createElement(s, { cellProps: r, content: n, tdProps: t }, c);
47
45
  };
48
46
  export {
49
- v as GridCell
47
+ R as GridCell
50
48
  };
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),c=require("@progress/kendo-react-common"),u=require("./client/DetailCellContainer.js");function m(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=m(s),f=e=>{const{colSpan:n,ariaColIndex:t,dataItem:a,dataIndex:i,id:o}=e,l=e.unstyled,d=l&&l.uGrid?l.uGrid:c.uGrid;return r.createElement(u.DetailCellContainer,{id:o,dataItem:a},r.createElement("td",{className:c.classNames(d.detailTd({})),colSpan:n,"aria-colindex":t,role:"gridcell"},r.createElement(e.detail,{dataItem:a,dataIndex:i})))};exports.GridDetailCell=f;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),c=require("@progress/kendo-react-common"),u=require("./client/DetailCellContainer.js");function m(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const r=m(s),f=e=>{const{colSpan:a,ariaColIndex:t,dataItem:n,dataIndex:i,id:o}=e,l=e.unstyled,d=l&&l.uGrid?l.uGrid:c.uGrid;return r.createElement(u.DetailCellContainer,{id:o,dataItem:n},r.createElement("td",{className:c.classNames(d.detailTd({})),colSpan:a,"aria-colindex":t,role:"gridcell"},r.createElement(e.detail,{dataItem:n,dataIndex:i})))};exports.GridDetailCell=f;
@@ -5,21 +5,20 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as a from "react";
10
- import { uGrid as o, classNames as s } from "@progress/kendo-react-common";
9
+ import { uGrid as c, classNames as s } from "@progress/kendo-react-common";
11
10
  import { DetailCellContainer as m } from "./client/DetailCellContainer.mjs";
12
11
  const x = (e) => {
13
- const { colSpan: r, ariaColIndex: i, dataItem: l, dataIndex: d, id: n } = e, t = e.unstyled, c = t && t.uGrid ? t.uGrid : o;
12
+ const { colSpan: r, ariaColIndex: d, dataItem: l, dataIndex: i, id: n } = e, t = e.unstyled, o = t && t.uGrid ? t.uGrid : c;
14
13
  return /* @__PURE__ */ a.createElement(m, { id: n, dataItem: l }, /* @__PURE__ */ a.createElement(
15
14
  "td",
16
15
  {
17
- className: s(c.detailTd({})),
16
+ className: s(o.detailTd({})),
18
17
  colSpan: r,
19
- "aria-colindex": i,
18
+ "aria-colindex": d,
20
19
  role: "gridcell"
21
20
  },
22
- /* @__PURE__ */ a.createElement(e.detail, { dataItem: l, dataIndex: d })
21
+ /* @__PURE__ */ a.createElement(e.detail, { dataItem: l, dataIndex: i })
23
22
  ));
24
23
  };
25
24
  export {
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@progress/kendo-react-common"),l=require("react");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=a(l),o=e=>{const t=e.unstyled,r=t&&t.uGrid?t.uGrid:n.uGrid;return i.createElement("td",{className:n.classNames(r.hierarchyTd({})),role:"gridcell"})};exports.GridDetailHierarchyCell=o;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@progress/kendo-react-common"),a=require("react");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=l(a),i=e=>{const t=e.unstyled,r=t&&t.uGrid?t.uGrid:n.uGrid;return o.createElement("td",{className:n.classNames(r.hierarchyTd({})),role:"gridcell"})};exports.GridDetailHierarchyCell=i;
@@ -5,12 +5,11 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import { uGrid as t, classNames as l } from "@progress/kendo-react-common";
10
- import * as i from "react";
11
- const c = (r) => {
12
- const e = r.unstyled, s = e && e.uGrid ? e.uGrid : t;
13
- return /* @__PURE__ */ i.createElement("td", { className: l(s.hierarchyTd({})), role: "gridcell" });
9
+ import * as a from "react";
10
+ const c = (e) => {
11
+ const r = e.unstyled, s = r && r.uGrid ? r.uGrid : t;
12
+ return /* @__PURE__ */ a.createElement("td", { className: l(s.hierarchyTd({})), role: "gridcell" });
14
13
  };
15
14
  export {
16
15
  c as GridDetailHierarchyCell
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),u=require("../utils/index.js"),C=require("@progress/kendo-react-common"),g=require("../constants/index.js"),G=require("./client/GridEditCellEditor.js"),m=require("./client/GridEditCellContainer.js");function y(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const c=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,c.get?c:{enumerable:!0,get:()=>e[l]})}}return t.default=e,Object.freeze(t)}const i=y(f),S=e=>{const t=e.unstyled,l=t&&t.uGrid?t.uGrid:C.uGrid,c=C.classNames(l.editTd({selected:e.isSelected}),e.className),r={colSpan:e.colSpan,style:e.style,className:c,"aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,[g.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex,role:"gridcell"},s=u.getClientCellProps(e),o=i.createElement(G.GridEditCellEditor,{cellProps:s}),a=e.editor||"text",n=e.cells;if(n){let d;n.edit&&n.edit[a]?d=n.edit[a]:n.data&&(d=n.data);const E=u.isClientReference(d);return i.createElement(m.GridEditCellContainer,{cellProps:s,tdProps:r,isCustom:!0,isClient:E},i.createElement(d,{...e,tdProps:r},o))}return i.createElement(m.GridEditCellContainer,{cellProps:s,content:o,tdProps:r},i.createElement("td",{...r},o))};exports.GridEditCell=S;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),u=require("../utils/index.js"),C=require("@progress/kendo-react-common"),g=require("../constants/index.js"),G=require("./client/GridEditCellEditor.js"),m=require("./client/GridEditCellContainer.js");function y(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const r=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,r.get?r:{enumerable:!0,get:()=>e[l]})}}return t.default=e,Object.freeze(t)}const i=y(f),S=e=>{const t=e.unstyled,l=t&&t.uGrid?t.uGrid:C.uGrid,r=C.classNames(l.editTd({selected:e.isSelected}),e.className),c={colSpan:e.colSpan,style:e.style,className:r,"aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,[g.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex,role:"gridcell"},d=u.getClientCellProps(e),o=i.createElement(G.GridEditCellEditor,{cellProps:d}),a=e.editor||"text",n=e.cells;if(n){let s;n.edit&&n.edit[a]?s=n.edit[a]:n.data&&(s=n.data);const E=u.isClientReference(s);return i.createElement(m.GridEditCellContainer,{cellProps:d,tdProps:c,isCustom:!0,isClient:E},i.createElement(s,{...d,tdProps:c},o))}return i.createElement(m.GridEditCellContainer,{cellProps:d,content:o,tdProps:c},i.createElement("td",{...c},o))};exports.GridEditCell=S;
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as l from "react";
10
9
  import { getClientCellProps as u, isClientReference as E } from "../utils/index.mjs";
11
10
  import { uGrid as f, classNames as G } from "@progress/kendo-react-common";
@@ -21,14 +20,14 @@ const T = (e) => {
21
20
  "aria-selected": e.isSelected,
22
21
  [x]: e.columnIndex,
23
22
  role: "gridcell"
24
- }, s = u(e), d = /* @__PURE__ */ l.createElement(I, { cellProps: s }), r = e.editor || "text", t = e.cells;
23
+ }, n = u(e), d = /* @__PURE__ */ l.createElement(I, { cellProps: n }), r = e.editor || "text", t = e.cells;
25
24
  if (t) {
26
- let n;
27
- t.edit && t.edit[r] ? n = t.edit[r] : t.data && (n = t.data);
28
- const C = E(n);
29
- return /* @__PURE__ */ l.createElement(o, { cellProps: s, tdProps: i, isCustom: !0, isClient: C }, /* @__PURE__ */ l.createElement(n, { ...e, tdProps: i }, d));
25
+ let s;
26
+ t.edit && t.edit[r] ? s = t.edit[r] : t.data && (s = t.data);
27
+ const C = E(s);
28
+ return /* @__PURE__ */ l.createElement(o, { cellProps: n, tdProps: i, isCustom: !0, isClient: C }, /* @__PURE__ */ l.createElement(s, { ...n, tdProps: i }, d));
30
29
  }
31
- return /* @__PURE__ */ l.createElement(o, { cellProps: s, content: d, tdProps: i }, /* @__PURE__ */ l.createElement("td", { ...i }, d));
30
+ return /* @__PURE__ */ l.createElement(o, { cellProps: n, content: d, tdProps: i }, /* @__PURE__ */ l.createElement("td", { ...i }, d));
32
31
  };
33
32
  export {
34
33
  T as GridEditCell