@progress/kendo-react-grid 9.4.0-develop.8 → 9.4.0

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 (41) hide show
  1. package/GridClientWrapper.js +1 -1
  2. package/GridClientWrapper.mjs +463 -374
  3. package/GridComponent.js +1 -1
  4. package/GridComponent.mjs +339 -306
  5. package/GridSearchBox.js +8 -0
  6. package/GridSearchBox.mjs +35 -0
  7. package/GridState.js +1 -1
  8. package/GridState.mjs +79 -67
  9. package/NOTICE.txt +40 -51
  10. package/cells/GridCell.js +1 -1
  11. package/cells/GridCell.mjs +24 -20
  12. package/cells/client/GridRowReorderContainer.js +1 -1
  13. package/cells/client/GridRowReorderContainer.mjs +15 -9
  14. package/columnMenu/GridColumnMenuCheckboxFilter.js +1 -1
  15. package/columnMenu/GridColumnMenuCheckboxFilter.mjs +56 -55
  16. package/columnMenu/GridColumnMenuColumnsChooser.js +9 -0
  17. package/columnMenu/GridColumnMenuColumnsChooser.mjs +82 -0
  18. package/columnMenu/GridColumnMenuFilter.js +1 -1
  19. package/columnMenu/GridColumnMenuFilter.mjs +19 -19
  20. package/columnMenu/GridColumnMenuSort.js +1 -1
  21. package/columnMenu/GridColumnMenuSort.mjs +1 -1
  22. package/components/GridLoader.js +9 -0
  23. package/components/GridLoader.mjs +22 -0
  24. package/dist/cdn/js/kendo-react-grid.js +1 -1
  25. package/header/client/GridHeaderCellContainer.js +1 -1
  26. package/header/client/GridHeaderCellContainer.mjs +20 -18
  27. package/index.d.mts +297 -36
  28. package/index.d.ts +297 -36
  29. package/index.js +1 -1
  30. package/index.mjs +76 -72
  31. package/messages/index.js +1 -1
  32. package/messages/index.mjs +38 -36
  33. package/package-metadata.js +1 -1
  34. package/package-metadata.mjs +2 -2
  35. package/package.json +14 -13
  36. package/rows/GridRow.js +1 -1
  37. package/rows/GridRow.mjs +45 -45
  38. package/utils/index.js +1 -1
  39. package/utils/index.mjs +156 -146
  40. /package/{interfaces/GridSortSettings.js → sortCommon.js} +0 -0
  41. /package/{interfaces/GridSortSettings.mjs → sortCommon.mjs} +0 -0
package/index.mjs CHANGED
@@ -9,87 +9,91 @@ import { Grid as o } from "./Grid.mjs";
9
9
  import { GridColumn as m } from "./GridColumn.mjs";
10
10
  import { GridColumnMenuWrapper as i } from "./columnMenu/GridColumnMenuWrapper.mjs";
11
11
  import { GridColumnMenuGroup as p } from "./columnMenu/GridColumnMenuGroup.mjs";
12
- import { GridColumnMenuSort as u, isColumnMenuSortActive as x } from "./columnMenu/GridColumnMenuSort.mjs";
13
- import { GridColumnMenuFilter as f, filterGroupByField as C, isColumnMenuFilterActive as G, rootFilterOrDefault as g } from "./columnMenu/GridColumnMenuFilter.mjs";
12
+ import { GridColumnMenuSort as a, isColumnMenuSortActive as x } from "./columnMenu/GridColumnMenuSort.mjs";
13
+ import { GridColumnMenuFilter as C, filterGroupByField as f, isColumnMenuFilterActive as G, rootFilterOrDefault as s } from "./columnMenu/GridColumnMenuFilter.mjs";
14
14
  import { GridColumnMenuFilterUI as M } from "./columnMenu/GridColumnMenuFilterUI.mjs";
15
- import { GridColumnMenuFilterCell as c } from "./columnMenu/GridColumnMenuFilterCell.mjs";
16
- import { GridColumnMenuCheckboxFilter as E } from "./columnMenu/GridColumnMenuCheckboxFilter.mjs";
15
+ import { GridColumnMenuFilterCell as I } from "./columnMenu/GridColumnMenuFilterCell.mjs";
16
+ import { GridColumnMenuCheckboxFilter as D } from "./columnMenu/GridColumnMenuCheckboxFilter.mjs";
17
17
  import { GridColumnMenuColumnsList as F } from "./columnMenu/GridColumnMenuColumnsList.mjs";
18
- import { GridCell as T } from "./cells/GridCell.mjs";
19
- import { GridEditCell as _ } from "./cells/GridEditCell.mjs";
20
- import { GridGroupCell as L } from "./cells/GridGroupCell.mjs";
21
- import { GridHierarchyCell as A } from "./cells/GridHierarchyCell.mjs";
22
- import { GridFilterCell as O } from "./cells/GridFilterCell.mjs";
23
- import { GridHeaderCell as b } from "./header/GridHeaderCell.mjs";
24
- import { GridSelectionCell as y } from "./cells/GridSelectionCell.mjs";
25
- import { GridDetailRow as H } from "./rows/GridDetailRow.mjs";
26
- import { GridRow as W } from "./rows/GridRow.mjs";
27
- import { GridToolbar as k } from "./GridToolbar.mjs";
28
- import { GridNoRecords as j } from "./components/noRecords/GridNoRecords.mjs";
29
- import { GridColumnMenuItem as z } from "./columnMenu/GridColumnMenuItem.mjs";
30
- import { GridColumnMenuItemContent as Q } from "./columnMenu/GridColumnMenuItemContent.mjs";
31
- import { GridColumnMenuItemGroup as Z } from "./columnMenu/GridColumnMenuItemGroup.mjs";
32
- import { GRID_COL_INDEX_ATTRIBUTE as ee, GRID_PREVENT_SELECTION_ELEMENT as re, GRID_ROW_INDEX_ATTRIBUTE as oe } from "./constants/index.mjs";
33
- import { getSelectedState as me, getSelectedStateFromKeyDown as le, setSelectedState as ie } from "@progress/kendo-react-data-tools";
34
- import { CommonDragLogic as pe } from "./drag/CommonDragLogic.mjs";
35
- import { booleanFilterValues as ue, cellBoolDropdownChange as xe, cellInputChange as de, cellOperatorChange as fe, operators as Ce } from "./filterCommon.mjs";
36
- import { messages as ge, pagerFirstPage as se, pagerInfo as Me, pagerItemPerPage as Ie, pagerLastPage as ce, pagerNextPage as De, pagerPreviousPage as Ee } from "./messages/index.mjs";
37
- import { StatusBar as Fe, getStatusData as Re, leafColumns as Te } from "./StatusBar.mjs";
38
- import { GridContextMenu as _e, contextMenuItemsMap as Ne } from "./contextMenu/GridContextMenu.mjs";
39
- import { GridContextMenuAnchorPart as he, GridContextMenuItemNames as Ae } from "./contextMenu/enums.mjs";
18
+ import { GridColumnMenuColumnsChooser as T } from "./columnMenu/GridColumnMenuColumnsChooser.mjs";
19
+ import { GridCell as _ } from "./cells/GridCell.mjs";
20
+ import { GridEditCell as N } from "./cells/GridEditCell.mjs";
21
+ import { GridGroupCell as B } from "./cells/GridGroupCell.mjs";
22
+ import { GridHierarchyCell as O } from "./cells/GridHierarchyCell.mjs";
23
+ import { GridFilterCell as b } from "./cells/GridFilterCell.mjs";
24
+ import { GridHeaderCell as y } from "./header/GridHeaderCell.mjs";
25
+ import { GridSelectionCell as H } from "./cells/GridSelectionCell.mjs";
26
+ import { GridDetailRow as W } from "./rows/GridDetailRow.mjs";
27
+ import { GridRow as k } from "./rows/GridRow.mjs";
28
+ import { GridToolbar as j } from "./GridToolbar.mjs";
29
+ import { GridNoRecords as z } from "./components/noRecords/GridNoRecords.mjs";
30
+ import { GridColumnMenuItem as Q } from "./columnMenu/GridColumnMenuItem.mjs";
31
+ import { GridColumnMenuItemContent as Z } from "./columnMenu/GridColumnMenuItemContent.mjs";
32
+ import { GridColumnMenuItemGroup as rr } from "./columnMenu/GridColumnMenuItemGroup.mjs";
33
+ import { GRID_COL_INDEX_ATTRIBUTE as or, GRID_PREVENT_SELECTION_ELEMENT as tr, GRID_ROW_INDEX_ATTRIBUTE as mr } from "./constants/index.mjs";
34
+ import { getSelectedState as ir, getSelectedStateFromKeyDown as nr, setSelectedState as pr } from "@progress/kendo-react-data-tools";
35
+ import { CommonDragLogic as ar } from "./drag/CommonDragLogic.mjs";
36
+ import { booleanFilterValues as dr, cellBoolDropdownChange as Cr, cellInputChange as fr, cellOperatorChange as Gr, operators as sr } from "./filterCommon.mjs";
37
+ import { messages as Mr, pagerFirstPage as cr, pagerInfo as Ir, pagerItemPerPage as Sr, pagerLastPage as Dr, pagerNextPage as Er, pagerPreviousPage as Fr } from "./messages/index.mjs";
38
+ import { StatusBar as Tr, getStatusData as Pr, leafColumns as _r } from "./StatusBar.mjs";
39
+ import { GridContextMenu as Nr, contextMenuItemsMap as Lr } from "./contextMenu/GridContextMenu.mjs";
40
+ import { GridContextMenuAnchorPart as Ar, GridContextMenuItemNames as Or } from "./contextMenu/enums.mjs";
41
+ import { GridSearchBox as br } from "./GridSearchBox.mjs";
40
42
  export {
41
- ee as GRID_COL_INDEX_ATTRIBUTE,
42
- re as GRID_PREVENT_SELECTION_ELEMENT,
43
- oe as GRID_ROW_INDEX_ATTRIBUTE,
43
+ or as GRID_COL_INDEX_ATTRIBUTE,
44
+ tr as GRID_PREVENT_SELECTION_ELEMENT,
45
+ mr as GRID_ROW_INDEX_ATTRIBUTE,
44
46
  o as Grid,
45
- T as GridCell,
47
+ _ as GridCell,
46
48
  m as GridColumn,
47
- E as GridColumnMenuCheckboxFilter,
49
+ D as GridColumnMenuCheckboxFilter,
50
+ T as GridColumnMenuColumnsChooser,
48
51
  F as GridColumnMenuColumnsList,
49
- f as GridColumnMenuFilter,
50
- c as GridColumnMenuFilterCell,
52
+ C as GridColumnMenuFilter,
53
+ I as GridColumnMenuFilterCell,
51
54
  M as GridColumnMenuFilterUI,
52
55
  p as GridColumnMenuGroup,
53
- z as GridColumnMenuItem,
54
- Q as GridColumnMenuItemContent,
55
- Z as GridColumnMenuItemGroup,
56
- u as GridColumnMenuSort,
56
+ Q as GridColumnMenuItem,
57
+ Z as GridColumnMenuItemContent,
58
+ rr as GridColumnMenuItemGroup,
59
+ a as GridColumnMenuSort,
57
60
  i as GridColumnMenuWrapper,
58
- pe as GridCommonDragLogic,
59
- _e as GridContextMenu,
60
- he as GridContextMenuAnchorPart,
61
- Ae as GridContextMenuItemNames,
62
- H as GridDetailRow,
63
- _ as GridEditCell,
64
- O as GridFilterCell,
65
- L as GridGroupCell,
66
- b as GridHeaderCell,
67
- A as GridHierarchyCell,
68
- j as GridNoRecords,
69
- W as GridRow,
70
- y as GridSelectionCell,
71
- k as GridToolbar,
72
- Fe as StatusBar,
73
- ue as booleanFilterValues,
74
- xe as cellBoolDropdownChange,
75
- de as cellInputChange,
76
- fe as cellOperatorChange,
77
- Ne as contextMenuItemsMap,
78
- C as filterGroupByField,
79
- me as getSelectedState,
80
- le as getSelectedStateFromKeyDown,
81
- Re as getStatusData,
82
- ge as gridMessages,
61
+ ar as GridCommonDragLogic,
62
+ Nr as GridContextMenu,
63
+ Ar as GridContextMenuAnchorPart,
64
+ Or as GridContextMenuItemNames,
65
+ W as GridDetailRow,
66
+ N as GridEditCell,
67
+ b as GridFilterCell,
68
+ B as GridGroupCell,
69
+ y as GridHeaderCell,
70
+ O as GridHierarchyCell,
71
+ z as GridNoRecords,
72
+ k as GridRow,
73
+ br as GridSearchBox,
74
+ H as GridSelectionCell,
75
+ j as GridToolbar,
76
+ Tr as StatusBar,
77
+ dr as booleanFilterValues,
78
+ Cr as cellBoolDropdownChange,
79
+ fr as cellInputChange,
80
+ Gr as cellOperatorChange,
81
+ Lr as contextMenuItemsMap,
82
+ f as filterGroupByField,
83
+ ir as getSelectedState,
84
+ nr as getSelectedStateFromKeyDown,
85
+ Pr as getStatusData,
86
+ Mr as gridMessages,
83
87
  G as isColumnMenuFilterActive,
84
88
  x as isColumnMenuSortActive,
85
- Te as leafColumns,
86
- Ce as operators,
87
- se as pagerFirstPage,
88
- Me as pagerInfo,
89
- Ie as pagerItemPerPage,
90
- ce as pagerLastPage,
91
- De as pagerNextPage,
92
- Ee as pagerPreviousPage,
93
- g as rootFilterOrDefault,
94
- ie as setSelectedState
89
+ _r as leafColumns,
90
+ sr as operators,
91
+ cr as pagerFirstPage,
92
+ Ir as pagerInfo,
93
+ Sr as pagerItemPerPage,
94
+ Dr as pagerLastPage,
95
+ Er as pagerNextPage,
96
+ Fr as pagerPreviousPage,
97
+ s as rootFilterOrDefault,
98
+ pr as setSelectedState
95
99
  };
package/messages/index.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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="grid.noRecords",r="grid.pagerInfo",t="grid.pagerFirstPage",o="grid.pagerPreviousPage",a="grid.pagerNextPage",l="grid.pagerLastPage",i="grid.pagerItemsPerPage",g="grid.pagerPage",s="grid.pagerPageSizeAriaLabel",n="grid.pagerOf",p="grid.pagerTotalPages",d="grid.groupPanelEmpty",c="grid.groupColumn",u="grid.ungroupColumn",f="grid.columnMenu",P="grid.filterApplyButton",A="grid.filterClearButton",m="grid.filterResetButton",C="grid.filterSubmitButton",I="grid.filterTitle",h="grid.sortAscending",O="grid.sortDescending",b="grid.searchPlaceholder",L="grid.filterCheckAll",S="grid.filterChooseOperator",E="grid.filterSelectAll",R="grid.filterSelectedItems",B="grid.sortAriaLabel",y="grid.filterAriaLabel",w="grid.groupPanelAriaLabel",x="grid.groupExpand",q="grid.groupCollapse",N="grid.detailExpand",G="grid.detailCollapse",T="grid.selectRow",D="grid.gridAriaLabel",F="grid.gridRowReorderAriaLabel",v={[N]:"Expand detail row",[G]:"Collapse detail row",[x]:"Expand group",[q]:"Collapse Group",[e]:"No records available",[d]:"Drag a column header and drop it here to group by that column",[P]:"Apply",[A]:"Clear",[m]:"Reset",[C]:"Filter",[I]:"Filter",[h]:"Sort Ascending",[O]:"Sort Descending",[B]:"Sortable",[c]:"Group Column",[u]:"Ungroup Column",[f]:"Column menu",[i]:"items per page",[r]:"{0} - {1} of {2} items",[t]:"Go to the first page",[o]:"Go to the previous page",[a]:"Go to the next page",[l]:"Go to the last page",[g]:"Page",[s]:"Page size",[n]:"of",[p]:"{0}",[b]:"Search",[L]:"Check All",[S]:"Choose Operator",[R]:"selected items",[E]:"Select All",[y]:"Filter",[w]:"Group panel",[D]:"Table",[F]:"Drag row",[T]:"Select Row","grid.filterEqOperator":"Is equal to","grid.filterNotEqOperator":"Is not equal to","grid.filterIsNullOperator":"Is null","grid.filterIsNotNullOperator":"Is not null","grid.filterIsEmptyOperator":"Is empty","grid.filterIsNotEmptyOperator":"Is not empty","grid.filterStartsWithOperator":"Starts with","grid.filterContainsOperator":"Contains","grid.filterNotContainsOperator":"Does not contain","grid.filterEndsWithOperator":"Ends with","grid.filterGteOperator":"Is greater than or equal to","grid.filterGtOperator":"Is greater than","grid.filterLteOperator":"Is less than or equal to","grid.filterLtOperator":"Is less than","grid.filterIsTrue":"Is true","grid.filterIsFalse":"Is false","grid.filterBooleanAll":"(All)","grid.filterAfterOrEqualOperator":"Is after or equal to","grid.filterAfterOperator":"Is after","grid.filterBeforeOperator":"Is before","grid.filterBeforeOrEqualOperator":"Is before or equal to","grid.filterAndLogic":"And","grid.filterOrLogic":"Or"};exports.columnMenu=f;exports.detailCollapse=G;exports.detailExpand=N;exports.filterApplyButton=P;exports.filterAriaLabel=y;exports.filterCheckAll=L;exports.filterChooseOperator=S;exports.filterClearButton=A;exports.filterResetButton=m;exports.filterSelectAll=E;exports.filterSelectedItems=R;exports.filterSubmitButton=C;exports.filterTitle=I;exports.gridAriaLabel=D;exports.gridRowReorderAriaLabel=F;exports.groupCollapse=q;exports.groupColumn=c;exports.groupExpand=x;exports.groupPanelAriaLabel=w;exports.groupPanelEmpty=d;exports.messages=v;exports.noRecords=e;exports.pagerFirstPage=t;exports.pagerInfo=r;exports.pagerItemPerPage=i;exports.pagerLastPage=l;exports.pagerNextPage=a;exports.pagerOf=n;exports.pagerPage=g;exports.pagerPageSizeAriaLabel=s;exports.pagerPreviousPage=o;exports.pagerTotalPages=p;exports.searchPlaceholder=b;exports.selectRow=T;exports.sortAriaLabel=B;exports.sortAscending=h;exports.sortDescending=O;exports.ungroupColumn=u;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="grid.noRecords",r="grid.pagerInfo",t="grid.pagerFirstPage",o="grid.pagerPreviousPage",a="grid.pagerNextPage",l="grid.pagerLastPage",i="grid.pagerItemsPerPage",g="grid.pagerPage",s="grid.pagerPageSizeAriaLabel",n="grid.pagerOf",d="grid.pagerTotalPages",p="grid.groupPanelEmpty",c="grid.groupColumn",u="grid.ungroupColumn",f="grid.columnMenu",P="grid.filterApplyButton",A="grid.filterClearButton",h="grid.filterResetButton",m="grid.filterSubmitButton",b="grid.filterTitle",C="grid.sortAscending",I="grid.sortDescending",O="grid.searchPlaceholder",L="grid.searchboxPlaceholder",S="grid.filterCheckAll",E="grid.filterChooseOperator",R="grid.filterSelectAll",x="grid.filterSelectedItems",B="grid.sortAriaLabel",y="grid.filterAriaLabel",w="grid.groupPanelAriaLabel",q="grid.groupExpand",N="grid.groupCollapse",G="grid.detailExpand",T="grid.detailCollapse",D="grid.selectRow",F="grid.gridAriaLabel",v="grid.gridRowReorderAriaLabel",k={[G]:"Expand detail row",[T]:"Collapse detail row",[q]:"Expand group",[N]:"Collapse Group",[e]:"No records available",[p]:"Drag a column header and drop it here to group by that column",[P]:"Apply",[A]:"Clear",[h]:"Reset",[m]:"Filter",[b]:"Filter",[C]:"Sort Ascending",[I]:"Sort Descending",[B]:"Sortable",[c]:"Group Column",[u]:"Ungroup Column",[f]:"Column menu",[i]:"items per page",[r]:"{0} - {1} of {2} items",[t]:"Go to the first page",[o]:"Go to the previous page",[a]:"Go to the next page",[l]:"Go to the last page",[g]:"Page",[s]:"Page size",[n]:"of",[d]:"{0}",[O]:"Search",[L]:"Search...",[S]:"Check All",[E]:"Choose Operator",[x]:"selected items",[R]:"Select All",[y]:"Filter",[w]:"Group panel",[F]:"Table",[v]:"Drag row",[D]:"Select Row","grid.filterEqOperator":"Is equal to","grid.filterNotEqOperator":"Is not equal to","grid.filterIsNullOperator":"Is null","grid.filterIsNotNullOperator":"Is not null","grid.filterIsEmptyOperator":"Is empty","grid.filterIsNotEmptyOperator":"Is not empty","grid.filterStartsWithOperator":"Starts with","grid.filterContainsOperator":"Contains","grid.filterNotContainsOperator":"Does not contain","grid.filterEndsWithOperator":"Ends with","grid.filterGteOperator":"Is greater than or equal to","grid.filterGtOperator":"Is greater than","grid.filterLteOperator":"Is less than or equal to","grid.filterLtOperator":"Is less than","grid.filterIsTrue":"Is true","grid.filterIsFalse":"Is false","grid.filterBooleanAll":"(All)","grid.filterAfterOrEqualOperator":"Is after or equal to","grid.filterAfterOperator":"Is after","grid.filterBeforeOperator":"Is before","grid.filterBeforeOrEqualOperator":"Is before or equal to","grid.filterAndLogic":"And","grid.filterOrLogic":"Or"};exports.columnMenu=f;exports.detailCollapse=T;exports.detailExpand=G;exports.filterApplyButton=P;exports.filterAriaLabel=y;exports.filterCheckAll=S;exports.filterChooseOperator=E;exports.filterClearButton=A;exports.filterResetButton=h;exports.filterSelectAll=R;exports.filterSelectedItems=x;exports.filterSubmitButton=m;exports.filterTitle=b;exports.gridAriaLabel=F;exports.gridRowReorderAriaLabel=v;exports.groupCollapse=N;exports.groupColumn=c;exports.groupExpand=q;exports.groupPanelAriaLabel=w;exports.groupPanelEmpty=p;exports.messages=k;exports.noRecords=e;exports.pagerFirstPage=t;exports.pagerInfo=r;exports.pagerItemPerPage=i;exports.pagerLastPage=l;exports.pagerNextPage=a;exports.pagerOf=n;exports.pagerPage=g;exports.pagerPageSizeAriaLabel=s;exports.pagerPreviousPage=o;exports.pagerTotalPages=d;exports.searchPlaceholder=O;exports.searchboxPlaceholder=L;exports.selectRow=D;exports.sortAriaLabel=B;exports.sortAscending=C;exports.sortDescending=I;exports.ungroupColumn=u;
@@ -5,19 +5,19 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- const e = "grid.noRecords", r = "grid.pagerInfo", t = "grid.pagerFirstPage", o = "grid.pagerPreviousPage", i = "grid.pagerNextPage", a = "grid.pagerLastPage", l = "grid.pagerItemsPerPage", g = "grid.pagerPage", s = "grid.pagerPageSizeAriaLabel", n = "grid.pagerOf", d = "grid.pagerTotalPages", p = "grid.groupPanelEmpty", c = "grid.groupColumn", u = "grid.ungroupColumn", f = "grid.columnMenu", A = "grid.filterApplyButton", m = "grid.filterClearButton", I = "grid.filterResetButton", P = "grid.filterSubmitButton", O = "grid.filterTitle", h = "grid.sortAscending", C = "grid.sortDescending", b = "grid.searchPlaceholder", L = "grid.filterCheckAll", E = "grid.filterChooseOperator", S = "grid.filterSelectAll", R = "grid.filterSelectedItems", B = "grid.sortAriaLabel", q = "grid.filterAriaLabel", w = "grid.groupPanelAriaLabel", x = "grid.groupExpand", y = "grid.groupCollapse", G = "grid.detailExpand", N = "grid.detailCollapse", D = "grid.selectRow", F = "grid.gridAriaLabel", T = "grid.gridRowReorderAriaLabel", v = {
9
- [G]: "Expand detail row",
10
- [N]: "Collapse detail row",
11
- [x]: "Expand group",
12
- [y]: "Collapse Group",
8
+ const e = "grid.noRecords", r = "grid.pagerInfo", t = "grid.pagerFirstPage", o = "grid.pagerPreviousPage", a = "grid.pagerNextPage", i = "grid.pagerLastPage", l = "grid.pagerItemsPerPage", g = "grid.pagerPage", s = "grid.pagerPageSizeAriaLabel", n = "grid.pagerOf", d = "grid.pagerTotalPages", p = "grid.groupPanelEmpty", c = "grid.groupColumn", u = "grid.ungroupColumn", f = "grid.columnMenu", h = "grid.filterApplyButton", A = "grid.filterClearButton", P = "grid.filterResetButton", m = "grid.filterSubmitButton", I = "grid.filterTitle", O = "grid.sortAscending", C = "grid.sortDescending", b = "grid.searchPlaceholder", L = "grid.searchboxPlaceholder", S = "grid.filterCheckAll", E = "grid.filterChooseOperator", x = "grid.filterSelectAll", R = "grid.filterSelectedItems", B = "grid.sortAriaLabel", q = "grid.filterAriaLabel", w = "grid.groupPanelAriaLabel", y = "grid.groupExpand", G = "grid.groupCollapse", N = "grid.detailExpand", D = "grid.detailCollapse", F = "grid.selectRow", T = "grid.gridAriaLabel", v = "grid.gridRowReorderAriaLabel", k = {
9
+ [N]: "Expand detail row",
10
+ [D]: "Collapse detail row",
11
+ [y]: "Expand group",
12
+ [G]: "Collapse Group",
13
13
  [e]: "No records available",
14
14
  [p]: "Drag a column header and drop it here to group by that column",
15
- [A]: "Apply",
16
- [m]: "Clear",
17
- [I]: "Reset",
18
- [P]: "Filter",
19
- [O]: "Filter",
20
- [h]: "Sort Ascending",
15
+ [h]: "Apply",
16
+ [A]: "Clear",
17
+ [P]: "Reset",
18
+ [m]: "Filter",
19
+ [I]: "Filter",
20
+ [O]: "Sort Ascending",
21
21
  [C]: "Sort Descending",
22
22
  [B]: "Sortable",
23
23
  [c]: "Group Column",
@@ -27,22 +27,23 @@ const e = "grid.noRecords", r = "grid.pagerInfo", t = "grid.pagerFirstPage", o =
27
27
  [r]: "{0} - {1} of {2} items",
28
28
  [t]: "Go to the first page",
29
29
  [o]: "Go to the previous page",
30
- [i]: "Go to the next page",
31
- [a]: "Go to the last page",
30
+ [a]: "Go to the next page",
31
+ [i]: "Go to the last page",
32
32
  [g]: "Page",
33
33
  [s]: "Page size",
34
34
  [n]: "of",
35
35
  [d]: "{0}",
36
36
  [b]: "Search",
37
- [L]: "Check All",
37
+ [L]: "Search...",
38
+ [S]: "Check All",
38
39
  [E]: "Choose Operator",
39
40
  [R]: "selected items",
40
- [S]: "Select All",
41
+ [x]: "Select All",
41
42
  [q]: "Filter",
42
43
  [w]: "Group panel",
43
- [F]: "Table",
44
- [T]: "Drag row",
45
- [D]: "Select Row",
44
+ [T]: "Table",
45
+ [v]: "Drag row",
46
+ [F]: "Select Row",
46
47
  "grid.filterEqOperator": "Is equal to",
47
48
  "grid.filterNotEqOperator": "Is not equal to",
48
49
  "grid.filterIsNullOperator": "Is null",
@@ -69,41 +70,42 @@ const e = "grid.noRecords", r = "grid.pagerInfo", t = "grid.pagerFirstPage", o =
69
70
  };
70
71
  export {
71
72
  f as columnMenu,
72
- N as detailCollapse,
73
- G as detailExpand,
74
- A as filterApplyButton,
73
+ D as detailCollapse,
74
+ N as detailExpand,
75
+ h as filterApplyButton,
75
76
  q as filterAriaLabel,
76
- L as filterCheckAll,
77
+ S as filterCheckAll,
77
78
  E as filterChooseOperator,
78
- m as filterClearButton,
79
- I as filterResetButton,
80
- S as filterSelectAll,
79
+ A as filterClearButton,
80
+ P as filterResetButton,
81
+ x as filterSelectAll,
81
82
  R as filterSelectedItems,
82
- P as filterSubmitButton,
83
- O as filterTitle,
84
- F as gridAriaLabel,
85
- T as gridRowReorderAriaLabel,
86
- y as groupCollapse,
83
+ m as filterSubmitButton,
84
+ I as filterTitle,
85
+ T as gridAriaLabel,
86
+ v as gridRowReorderAriaLabel,
87
+ G as groupCollapse,
87
88
  c as groupColumn,
88
- x as groupExpand,
89
+ y as groupExpand,
89
90
  w as groupPanelAriaLabel,
90
91
  p as groupPanelEmpty,
91
- v as messages,
92
+ k as messages,
92
93
  e as noRecords,
93
94
  t as pagerFirstPage,
94
95
  r as pagerInfo,
95
96
  l as pagerItemPerPage,
96
- a as pagerLastPage,
97
- i as pagerNextPage,
97
+ i as pagerLastPage,
98
+ a as pagerNextPage,
98
99
  n as pagerOf,
99
100
  g as pagerPage,
100
101
  s as pagerPageSizeAriaLabel,
101
102
  o as pagerPreviousPage,
102
103
  d as pagerTotalPages,
103
104
  b as searchPlaceholder,
104
- D as selectRow,
105
+ L as searchboxPlaceholder,
106
+ F as selectRow,
105
107
  B as sortAriaLabel,
106
- h as sortAscending,
108
+ O as sortAscending,
107
109
  C as sortDescending,
108
110
  u as ungroupColumn
109
111
  };
@@ -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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1738137000,version:"9.4.0-develop.8",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1739279959,version:"9.4.0",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "KendoReact",
11
11
  productCode: "KENDOUIREACT",
12
12
  productCodes: ["KENDOUIREACT"],
13
- publishDate: 1738137000,
14
- version: "9.4.0-develop.8",
13
+ publishDate: 1739279959,
14
+ version: "9.4.0",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
16
16
  };
17
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-grid",
3
- "version": "9.4.0-develop.8",
3
+ "version": "9.4.0",
4
4
  "description": "React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -27,17 +27,18 @@
27
27
  "peerDependencies": {
28
28
  "@progress/kendo-data-query": "^1.0.0",
29
29
  "@progress/kendo-drawing": "^1.21.2",
30
- "@progress/kendo-licensing": "^1.3.4",
31
- "@progress/kendo-react-animation": "9.4.0-develop.8",
32
- "@progress/kendo-react-buttons": "9.4.0-develop.8",
33
- "@progress/kendo-react-common": "9.4.0-develop.8",
34
- "@progress/kendo-react-data-tools": "9.4.0-develop.8",
35
- "@progress/kendo-react-dateinputs": "9.4.0-develop.8",
36
- "@progress/kendo-react-dropdowns": "9.4.0-develop.8",
37
- "@progress/kendo-react-inputs": "9.4.0-develop.8",
38
- "@progress/kendo-react-intl": "9.4.0-develop.8",
39
- "@progress/kendo-react-popup": "9.4.0-develop.8",
40
- "@progress/kendo-react-layout": "9.4.0-develop.8",
30
+ "@progress/kendo-licensing": "^1.4.0",
31
+ "@progress/kendo-react-animation": "9.4.0",
32
+ "@progress/kendo-react-buttons": "9.4.0",
33
+ "@progress/kendo-react-common": "9.4.0",
34
+ "@progress/kendo-react-data-tools": "9.4.0",
35
+ "@progress/kendo-react-dateinputs": "9.4.0",
36
+ "@progress/kendo-react-indicators": "9.4.0",
37
+ "@progress/kendo-react-dropdowns": "9.4.0",
38
+ "@progress/kendo-react-inputs": "9.4.0",
39
+ "@progress/kendo-react-intl": "9.4.0",
40
+ "@progress/kendo-react-popup": "9.4.0",
41
+ "@progress/kendo-react-layout": "9.4.0",
41
42
  "@progress/kendo-svg-icons": "^4.0.0",
42
43
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
43
44
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
@@ -83,7 +84,7 @@
83
84
  "package": {
84
85
  "productName": "KendoReact",
85
86
  "productCode": "KENDOUIREACT",
86
- "publishDate": 1738137000,
87
+ "publishDate": 1739279959,
87
88
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
88
89
  }
89
90
  },
package/rows/GridRow.js CHANGED
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),a=require("@progress/kendo-react-common"),C=require("../constants/index.js"),k=require("../GridClientWrapper.js");function O(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,t.get?t:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const d=O(v),T=e=>{var g;const r=d.useContext(k.GridContext),{reorderRowDropTargetRef:o,reorderRowDragTargetRef:t,activeDragRowDataItemRef:R}=r,{rowType:i,isAltRow:w,isInEdit:f,isSelected:b}=e,c=a.useUnstyled(),D=c&&c.uGrid?c.uGrid:a.uGrid,m=a.classNames(D.tr({selected:b,isHeader:i==="groupHeader",isFooter:i==="groupFooter",isMaster:i!=="groupHeader"&&i!=="groupFooter",isAltRow:w,isInEdit:f})),l=d.useRef(null),y=n=>{if(e.isRowReorderable&&R.current){const x=n.originalEvent.target;o.current=x.closest(".k-table-row")}},I=()=>{t.current&&e.isRowReorderable&&(t.current.style.userSelect="")};a.useDroppable(l,{onDragOver:y,onDrop:I});const s={onClick:n=>r.rowClick(n,e.dataItem),onDoubleClick:n=>r.rowDblClick(n,e.dataItem)},u=d.createElement("tr",{ref:l,id:e.id,...s,className:m,style:{height:e.rowHeight?e.rowHeight+"px":"",visibility:e.isHidden?"hidden":"",userSelect:(g=t==null?void 0:t.current)==null?void 0:g.style.userSelect},role:"row","aria-rowindex":e.ariaRowIndex,"absolute-row-index":e.absoluteRowIndex,key:e.absoluteRowIndex,[C.GRID_ROW_INDEX_ATTRIBUTE]:e.rowType==="data"?e.dataIndex:void 0},e.children);return e.render?e.render.call(void 0,u,{...e,...s}):u};exports.GridRow=T;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),a=require("@progress/kendo-react-common"),h=require("../constants/index.js"),O=require("../GridClientWrapper.js");function S(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const c=S(v),G=e=>{var f;const r=c.useContext(O.GridContext),{reorderRowDropTargetRef:n,reorderRowDragTargetRef:t,activeDragRowDataItemRef:b}=r,{rowType:i,isAltRow:m,isInEdit:y,isSelected:D}=e,d=a.useUnstyled(),I=d&&d.uGrid?d.uGrid:a.uGrid,x=a.classNames(I.tr({selected:D,isHeader:i==="groupHeader",isFooter:i==="groupFooter",isMaster:i!=="groupHeader"&&i!=="groupFooter",isAltRow:m,isInEdit:y})),s=c.useRef(null),C=o=>{if(e.isRowReorderable&&b.current){const k=o.originalEvent.target;n.current=k.closest(".k-table-row")}},T=()=>{t.current&&e.isRowReorderable&&(t.current.style.userSelect="")};a.useDroppable(s,{onDragOver:C,onDrop:T});const u={onClick:o=>r.rowClick(o,e.dataItem),onDoubleClick:o=>r.rowDblClick(o,e.dataItem)},w={ref:s,id:e.id,...u,className:x,style:{height:e.rowHeight?e.rowHeight+"px":"",visibility:e.isHidden?"hidden":"",userSelect:(f=t==null?void 0:t.current)==null?void 0:f.style.userSelect},role:"row","aria-rowindex":e.ariaRowIndex,"absolute-row-index":e.absoluteRowIndex,[h.GRID_ROW_INDEX_ATTRIBUTE]:e.rowType==="data"?e.dataIndex:void 0},R=e.rowType||"data",l=e.rows;if(l&&l[R]){const o=l[R];return c.createElement(o,{key:e.absoluteRowIndex,...e,trProps:w},e.children)}const g=c.createElement("tr",{key:e.absoluteRowIndex,...w},e.children);return e.render?e.render.call(void 0,g,{...e,...u}):g};exports.GridRow=G;
package/rows/GridRow.mjs CHANGED
@@ -7,61 +7,61 @@
7
7
  */
8
8
  "use client";
9
9
  import * as n from "react";
10
- import { useUnstyled as x, uGrid as b, classNames as h, useDroppable as v } from "@progress/kendo-react-common";
11
- import { GRID_ROW_INDEX_ATTRIBUTE as y } from "../constants/index.mjs";
12
- import { GridContext as C } from "../GridClientWrapper.mjs";
13
- const O = (e) => {
14
- var s;
15
- const a = n.useContext(C), {
16
- reorderRowDropTargetRef: u,
17
- reorderRowDragTargetRef: t,
18
- activeDragRowDataItemRef: R
19
- } = a, { rowType: o, isAltRow: w, isInEdit: g, isSelected: D } = e, i = x(), m = i && i.uGrid ? i.uGrid : b, f = h(
20
- m.tr({
21
- selected: D,
10
+ import { useUnstyled as h, uGrid as v, classNames as C, useDroppable as T } from "@progress/kendo-react-common";
11
+ import { GRID_ROW_INDEX_ATTRIBUTE as k } from "../constants/index.mjs";
12
+ import { GridContext as E } from "../GridClientWrapper.mjs";
13
+ const N = (e) => {
14
+ var R;
15
+ const a = n.useContext(E), {
16
+ reorderRowDropTargetRef: g,
17
+ reorderRowDragTargetRef: r,
18
+ activeDragRowDataItemRef: m
19
+ } = a, { rowType: o, isAltRow: D, isInEdit: f, isSelected: I } = e, i = h(), x = i && i.uGrid ? i.uGrid : v, y = C(
20
+ x.tr({
21
+ selected: I,
22
22
  isHeader: o === "groupHeader",
23
23
  isFooter: o === "groupFooter",
24
24
  isMaster: o !== "groupHeader" && o !== "groupFooter",
25
- isAltRow: w,
26
- isInEdit: g
25
+ isAltRow: D,
26
+ isInEdit: f
27
27
  })
28
- ), d = n.useRef(null);
29
- v(d, {
30
- onDragOver: (r) => {
31
- if (e.isRowReorderable && R.current) {
32
- const I = r.originalEvent.target;
33
- u.current = I.closest(".k-table-row");
28
+ ), l = n.useRef(null);
29
+ T(l, {
30
+ onDragOver: (t) => {
31
+ if (e.isRowReorderable && m.current) {
32
+ const b = t.originalEvent.target;
33
+ g.current = b.closest(".k-table-row");
34
34
  }
35
35
  },
36
36
  onDrop: () => {
37
- t.current && e.isRowReorderable && (t.current.style.userSelect = "");
37
+ r.current && e.isRowReorderable && (r.current.style.userSelect = "");
38
38
  }
39
39
  });
40
- const l = {
41
- onClick: (r) => a.rowClick(r, e.dataItem),
42
- onDoubleClick: (r) => a.rowDblClick(r, e.dataItem)
43
- }, c = /* @__PURE__ */ n.createElement(
44
- "tr",
45
- {
46
- ref: d,
47
- id: e.id,
48
- ...l,
49
- className: f,
50
- style: {
51
- height: e.rowHeight ? e.rowHeight + "px" : "",
52
- visibility: e.isHidden ? "hidden" : "",
53
- userSelect: (s = t == null ? void 0 : t.current) == null ? void 0 : s.style.userSelect
54
- },
55
- role: "row",
56
- "aria-rowindex": e.ariaRowIndex,
57
- "absolute-row-index": e.absoluteRowIndex,
58
- key: e.absoluteRowIndex,
59
- [y]: e.rowType === "data" ? e.dataIndex : void 0
40
+ const c = {
41
+ onClick: (t) => a.rowClick(t, e.dataItem),
42
+ onDoubleClick: (t) => a.rowDblClick(t, e.dataItem)
43
+ }, s = {
44
+ ref: l,
45
+ id: e.id,
46
+ ...c,
47
+ className: y,
48
+ style: {
49
+ height: e.rowHeight ? e.rowHeight + "px" : "",
50
+ visibility: e.isHidden ? "hidden" : "",
51
+ userSelect: (R = r == null ? void 0 : r.current) == null ? void 0 : R.style.userSelect
60
52
  },
61
- e.children
62
- );
63
- return e.render ? e.render.call(void 0, c, { ...e, ...l }) : c;
53
+ role: "row",
54
+ "aria-rowindex": e.ariaRowIndex,
55
+ "absolute-row-index": e.absoluteRowIndex,
56
+ [k]: e.rowType === "data" ? e.dataIndex : void 0
57
+ }, u = e.rowType || "data", d = e.rows;
58
+ if (d && d[u]) {
59
+ const t = d[u];
60
+ return /* @__PURE__ */ n.createElement(t, { key: e.absoluteRowIndex, ...e, trProps: s }, e.children);
61
+ }
62
+ const w = /* @__PURE__ */ n.createElement("tr", { key: e.absoluteRowIndex, ...s }, e.children);
63
+ return e.render ? e.render.call(void 0, w, { ...e, ...c }) : w;
64
64
  };
65
65
  export {
66
- O as GridRow
66
+ N as GridRow
67
67
  };
package/utils/index.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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("../GridColumn.js"),D=require("@progress/kendo-data-query"),S=require("@progress/kendo-react-data-tools"),T=require("./_serverModule.js"),k=require("./_clientModule.js"),x=require("../contextMenu/enums.js");function m(e,t){const a=(e!=null?e:"").split(".");let l=t;return a.forEach(o=>{l=l?l[o]:void 0}),l}function v(e,t,a,l,o,s,n,r,i,d,f=0,h){var y;let u=f;for(let c=0;c<t.length;c++){let I;if(!o||t[c].value===void 0||t[c].items===void 0){e[e.length]={dataIndex:l.index,dataItem:t[c],rowType:"data",level:f,group:h,expanded:(y=s?m(s,t[c]):d&&!!(n!=null&&n[D.getter(d)(t[c])]))!=null?y:!1},l.index++;continue}else{let g;h!=null&&h.parents?g=[{field:h.field,value:h.value},...h.parents]:h?g=[h]:g=[],I={field:t[c].field,value:t[c].value,parents:g}}u=Math.max(u,f+1);let C=!1;if(s)C=m(s,t[c])!==!1;else{const g=S.findGroupExpand(r||[],I);g?C=g.expanded!==!1:C=i!==!1}e[e.length]={dataIndex:-1,dataItem:t[c],level:f,group:I,rowType:"groupHeader",expanded:C},C&&(I.expanded=C,u=Math.max(v(e,t[c].items,a,l,o,s,n,r,i,d,f+1,I),u)),(a==="always"||C&&a==="visible")&&(e[e.length]={dataIndex:-1,dataItem:t[c],rowType:"groupFooter",level:f,expanded:C})}return u}const A=(e,t)=>typeof e.colSpan=="function"?e.colSpan({dataItem:t,column:e}):e.colSpan||1;function B(e,t){const a=[[]];let l=0;for(let n=e.length-1;n>=0;n--)l=Math.max(l,e[n].depth),e[n].headerColSpan=e[n].headerColSpan||1,e[n].children.length>0&&(e[n].headerColSpan=e[n].children.reduce((r,i)=>i.hidden?r:r+i.headerColSpan,0));const o=[];let s=1;return e.forEach((n,r)=>{a[n.depth]=a[n.depth]||[];let i=!1;a[n.depth].length===0&&(s<=1?s=1+(n.children.length>0?0:l-n.depth):(s--,i=!0)),n.rowSpan=1+(n.children.length>0?0:l-n.depth),n.kFirst=i,n.index=a[n.depth].length,a[n.depth].push(r),n.ariaColumnIndex=o[n.depth]?o[n.depth]+1:1;for(let d=n.depth;d<n.depth+n.rowSpan;d++)o[d]=(o[d]||0)+n.headerColSpan}),S.updateLeft(a,e,t),S.updateRight(a,e,t),a}function w(e,t,a,l=0){const o=[];if(!e)return[];e&&e.length===void 0&&(e=[e]),e.filter(r=>r&&r.props?!r.props.hidden:!r.hidden).forEach((r,i)=>{r=r.props?r.props:r;const d=t[i]||null,f=w(r.children,d&&d.children||[],a,l+1);o.push(Object.assign({depth:l},M.gridDefaultProps,f.length?{cell:()=>null,filterCell:()=>null}:{},d?{width:d.width,orderIndex:d.orderIndex}:{},r,{id:r.id?r.id:S.tableKeyboardNavigationTools.generateNavigatableId(`${a.prevId++}`,a.idPrefix,"column"),declarationIndex:o.length,children:f,headerColSpan:r.headerColSpan,rowSpan:0,columnType:r.columnType||"data",colSpan:r.colSpan||1,isAccessible:!0,left:r.lockedColumn?d&&Math.floor(d.left):null,right:r.lockedColumn?d&&Math.floor(d.right):null}))});const n=(r,i)=>r.orderIndex===i.orderIndex?r.declarationIndex-i.declarationIndex:(r.orderIndex||0)-(i.orderIndex||0);if(o.sort(n),l===0){const r=[],i=(d,f)=>d.forEach(h=>{h.parentIndex=f,i(h.children,r.push(h)-1)});return i(o,-1),r}return o}function q(e,t,a,l){let o=[];Array.isArray(e)?o=e:e&&(o=e.data);const s=[];if(o.length>0){let n=o[0];if(t)for(let i=0;i<t.length;i++)n=n.items&&n.items[0];Object.getOwnPropertyNames(n).forEach(i=>{i!==a.column&&s.push(Object.assign({id:S.tableKeyboardNavigationTools.generateNavigatableId(`${l.prevId++}`,l.idPrefix,"column"),declarationIndex:-1,parentIndex:-1,depth:0,colSpan:0,headerColSpan:0,rowSpan:0,index:0,columnType:"data",left:0,right:0,rightBorder:!1,children:[],ariaColumnIndex:0,isAccessible:!0},M.gridDefaultProps,{field:i}))})}return s}const G=(e,t)=>{let a=e[t.parentIndex];for(;a;){if(a.footerCell)return!0;a=e[a.parentIndex]}return!1},R=e=>e.filter(t=>G(e,t)?!1:!!t.footerCell||!(t.children&&t.children.length>0)),E=e=>e.width!==void 0?Math.floor(parseFloat(e.width.toString()))+"px":void 0,F=(e,t)=>t&&t.filter(a=>a.field===e).length>0,b=e=>(e.sort((t,a)=>t.declarationIndex-a.declarationIndex),e.map(t=>{const{declarationIndex:a,parentIndex:l,depth:o,headerColSpan:s,rowSpan:n,index:r,kFirst:i,children:d,...f}=t;return d.length?{children:b(d),...f}:f})),N=e=>{const{filterCell:t,headerCell:a,footerCell:l,cells:o,cell:s,...n}=e;return e.children.length?{...n,children:e.children.map(N)}:n},H=typeof window!="undefined"&&/Firefox/.test(window.navigator.userAgent),O=17895697,j=e=>{let t=[];return e.sortable&&(t=t.concat([x.GridContextMenuItemNames.sortAsc,x.GridContextMenuItemNames.sortDesc])),t},p=e=>{let t=[];return e.clipboard&&(t=t.concat([x.GridContextMenuItemNames.copySelection,x.GridContextMenuItemNames.copySelectionNoHeaders,x.GridContextMenuItemNames.paste])),e.editable&&(t.length&&(t=t.concat([x.GridContextMenuItemNames.separator])),t=t.concat([x.GridContextMenuItemNames.create,x.GridContextMenuItemNames.edit,x.GridContextMenuItemNames.delete])),e.selectable&&(t.length&&(t=t.concat([x.GridContextMenuItemNames.separator])),t=t.concat([x.GridContextMenuItemNames.select])),e.reorderable&&(t.length&&(t=t.concat([x.GridContextMenuItemNames.separator])),t=t.concat([x.GridContextMenuItemNames.reorderRow])),t},$=(e,t)=>{if(!(!e&&!t))return t?e?{...e,...t,select:{...e.select||{},...t.select||{}},hierarchy:{...e.hierarchy||{},...t.hierarchy||{}},group:{...e.group||{},...t.group||{}},edit:{...e.edit||{},...t.edit||{}}}:t:e},z=()=>T.ServerFragment===k.ClientFragment,L=e=>!!(e&&e.$$typeof===Symbol.for("react.client.reference")),V=e=>({id:e.id,ariaColumnIndex:e.ariaColumnIndex,isSelected:e.isSelected,isInEdit:e.isInEdit,isSorted:e.isSorted,isAlt:e.isAlt,expanded:e.expanded,className:e.className,style:e.style,field:e.field,dataItem:e.dataItem,format:e.format,colSpan:e.colSpan,dataIndex:e.dataIndex,columnIndex:e.columnIndex,columnsCount:e.columnsCount,rowType:e.rowType,level:e.level,editor:e.editor,render:e.render,locked:e.locked,isRtl:e.isRtl,rowDataIndex:e.rowDataIndex,columnPosition:e.columnPosition,group:e.group});exports.autoGenerateColumns=q;exports.clientColumn=N;exports.firefox=H;exports.firefoxMaxHeight=O;exports.flatData=v;exports.footerColumns=R;exports.getClientCellProps=V;exports.getColSpan=A;exports.getColumnWidth=E;exports.getDefaultBodyContextMenuItems=p;exports.getDefaultHeadContextMenuItems=j;exports.getNestedValue=m;exports.isClient=z;exports.isClientReference=L;exports.isSorted=F;exports.mapColumns=B;exports.readColumns=w;exports.resolveCells=$;exports.sanitizeColumns=b;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../GridColumn.js"),y=require("@progress/kendo-data-query"),S=require("@progress/kendo-react-data-tools"),T=require("./_serverModule.js"),G=require("./_clientModule.js"),g=require("../contextMenu/enums.js");function m(e,t){const a=(e!=null?e:"").split(".");let i=t;return a.forEach(o=>{i=i?i[o]:void 0}),i}function b(e,t,a,i,o,s,n,r,d,l,f=0,c){var M;let C=f;for(let h=0;h<t.length;h++){let I;if(!o||t[h].value===void 0||t[h].items===void 0){e[e.length]={dataIndex:i.index,dataItem:t[h],rowType:"data",level:f,group:c,expanded:(M=s?m(s,t[h]):l&&!!(n!=null&&n[y.getter(l)(t[h])]))!=null?M:!1},i.index++;continue}else{let u;c!=null&&c.parents?u=[{field:c.field,value:c.value},...c.parents]:c?u=[c]:u=[],I={field:t[h].field,value:t[h].value,parents:u}}C=Math.max(C,f+1);let x=!1;if(s)x=m(s,t[h])!==!1;else{const u=S.findGroupExpand(r||[],I);u?x=u.expanded!==!1:x=d!==!1}e[e.length]={dataIndex:-1,dataItem:t[h],level:f,group:I,rowType:"groupHeader",expanded:x},x&&(I.expanded=x,C=Math.max(b(e,t[h].items,a,i,o,s,n,r,d,l,f+1,I),C)),(a==="always"||x&&a==="visible")&&(e[e.length]={dataIndex:-1,dataItem:t[h],rowType:"groupFooter",level:f,expanded:x})}return C}const k=(e,t)=>typeof e.colSpan=="function"?e.colSpan({dataItem:t,column:e}):e.colSpan||1;function B(e,t){const a=[[]];let i=0;for(let n=e.length-1;n>=0;n--)i=Math.max(i,e[n].depth),e[n].headerColSpan=e[n].headerColSpan||1,e[n].children.length>0&&(e[n].headerColSpan=e[n].children.reduce((r,d)=>d.hidden?r:r+d.headerColSpan,0));const o=[];let s=1;return e.forEach((n,r)=>{a[n.depth]=a[n.depth]||[];let d=!1;a[n.depth].length===0&&(s<=1?s=1+(n.children.length>0?0:i-n.depth):(s--,d=!0)),n.rowSpan=1+(n.children.length>0?0:i-n.depth),n.kFirst=d,n.index=a[n.depth].length,a[n.depth].push(r),n.ariaColumnIndex=o[n.depth]?o[n.depth]+1:1;for(let l=n.depth;l<n.depth+n.rowSpan;l++)o[l]=(o[l]||0)+n.headerColSpan}),S.updateLeft(a,e,t),S.updateRight(a,e,t),a}function w(e,t,a,i=0){const o=[];if(!e)return[];e&&e.length===void 0&&(e=[e]),e.filter(r=>r&&r.props?!r.props.hidden:!r.hidden).forEach((r,d)=>{r=r.props?r.props:r;const l=t[d]||null,f=w(r.children,l&&l.children||[],a,i+1);o.push(Object.assign({depth:i},v.gridDefaultProps,f.length?{cell:()=>null,filterCell:()=>null}:{},l?{width:l.width,orderIndex:l.orderIndex}:{},r,{id:r.id?r.id:S.tableKeyboardNavigationTools.generateNavigatableId(`${a.prevId++}`,a.idPrefix,"column"),declarationIndex:o.length,children:f,headerColSpan:r.headerColSpan,rowSpan:0,columnType:r.columnType||"data",colSpan:r.colSpan||1,isAccessible:!0,left:r.lockedColumn?l&&Math.floor(l.left):null,right:r.lockedColumn?l&&Math.floor(l.right):null,rowSpannable:r.rowSpannable}))});const n=(r,d)=>r.orderIndex===d.orderIndex?r.declarationIndex-d.declarationIndex:(r.orderIndex||0)-(d.orderIndex||0);if(o.sort(n),i===0){const r=[],d=(l,f)=>l.forEach(c=>{c.parentIndex=f,d(c.children,r.push(c)-1)});return d(o,-1),r}return o}const N=e=>Array.isArray(e)?e:e?e.data:[];function E(e,t,a,i){const o=N(e),s=[];if(o.length>0){let n=o[0];if(t)for(let d=0;d<t.length;d++)n=n.items&&n.items[0];Object.getOwnPropertyNames(n).forEach(d=>{d!==a.column&&s.push(Object.assign({id:S.tableKeyboardNavigationTools.generateNavigatableId(`${i.prevId++}`,i.idPrefix,"column"),declarationIndex:-1,parentIndex:-1,depth:0,colSpan:0,headerColSpan:0,rowSpan:0,index:0,columnType:"data",left:0,right:0,rightBorder:!1,children:[],ariaColumnIndex:0,isAccessible:!0},v.gridDefaultProps,{field:d}))})}return s}const R=(e,t)=>{let a=e[t.parentIndex];for(;a;){if(a.footerCell)return!0;a=e[a.parentIndex]}return!1},j=e=>e.filter(t=>R(e,t)?!1:!!t.footerCell||!(t.children&&t.children.length>0)),q=e=>e.width!==void 0?Math.floor(parseFloat(e.width.toString()))+"px":void 0,O=(e,t)=>t&&t.filter(a=>a.field===e).length>0,D=e=>(e.sort((t,a)=>t.declarationIndex-a.declarationIndex),e.map(t=>{const{declarationIndex:a,parentIndex:i,depth:o,headerColSpan:s,rowSpan:n,index:r,kFirst:d,children:l,...f}=t;return l.length?{children:D(l),...f}:f})),A=e=>{const{filterCell:t,headerCell:a,footerCell:i,cells:o,cell:s,rowSpannable:n,...r}=e;return e.children.length?{...r,children:e.children.map(A)}:r},F=typeof window!="undefined"&&/Firefox/.test(window.navigator.userAgent),H=17895697,p=e=>{let t=[];return e.sortable&&(t=t.concat([g.GridContextMenuItemNames.sortAsc,g.GridContextMenuItemNames.sortDesc])),t},$=e=>{let t=[];return e.clipboard&&(t=t.concat([g.GridContextMenuItemNames.copySelection,g.GridContextMenuItemNames.copySelectionNoHeaders,g.GridContextMenuItemNames.paste])),e.editable&&(t.length&&(t=t.concat([g.GridContextMenuItemNames.separator])),t=t.concat([g.GridContextMenuItemNames.create,g.GridContextMenuItemNames.edit,g.GridContextMenuItemNames.delete])),e.selectable&&(t.length&&(t=t.concat([g.GridContextMenuItemNames.separator])),t=t.concat([g.GridContextMenuItemNames.select])),e.rowReorderable&&(t.length&&(t=t.concat([g.GridContextMenuItemNames.separator])),t=t.concat([g.GridContextMenuItemNames.reorderRow])),t},z=(e,t)=>{if(!(!e&&!t))return t?e?{...e,...t,select:{...e.select||{},...t.select||{}},hierarchy:{...e.hierarchy||{},...t.hierarchy||{}},group:{...e.group||{},...t.group||{}},edit:{...e.edit||{},...t.edit||{}}}:t:e},L=e=>{var a;return typeof e=="object"?(a=e.enabled)!=null?a:!0:e!=null?e:!1},V=()=>T.ServerFragment===G.ClientFragment,W=e=>!!(e&&e.$$typeof===Symbol.for("react.client.reference")),_=e=>({id:e.id,ariaColumnIndex:e.ariaColumnIndex,isSelected:e.isSelected,isInEdit:e.isInEdit,isSorted:e.isSorted,isAlt:e.isAlt,expanded:e.expanded,className:e.className,style:e.style,field:e.field,dataItem:e.dataItem,format:e.format,colSpan:e.colSpan,dataIndex:e.dataIndex,columnIndex:e.columnIndex,columnsCount:e.columnsCount,rowType:e.rowType,level:e.level,editor:e.editor,render:e.render,locked:e.locked,isRtl:e.isRtl,rowDataIndex:e.rowDataIndex,columnPosition:e.columnPosition,group:e.group}),K=e=>{var i,o;const t=typeof e=="object"?(i=e.enabled)!=null?i:!0:e!=null?e:!1,a=typeof e=="object"?(o=e.valueGetter)!=null?o:(s,n)=>y.getter(n)(s):(s,n)=>y.getter(n)(s);return{enabled:t,valueGetter:a}};exports.autoGenerateColumns=E;exports.clientColumn=A;exports.firefox=F;exports.firefoxMaxHeight=H;exports.flatData=b;exports.footerColumns=j;exports.getClientCellProps=_;exports.getColSpan=k;exports.getColumnWidth=q;exports.getDataAsArray=N;exports.getDefaultBodyContextMenuItems=$;exports.getDefaultHeadContextMenuItems=p;exports.getNestedValue=m;exports.getRowSpanOptions=K;exports.isClient=V;exports.isClientReference=W;exports.isRowReorderEnabled=L;exports.isSorted=O;exports.mapColumns=B;exports.readColumns=w;exports.resolveCells=z;exports.sanitizeColumns=D;