@progress/kendo-react-grid 9.4.0-develop.6 → 9.4.0-develop.7

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 (171) 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/GridColumn.js +1 -1
  7. package/GridColumn.mjs +4 -5
  8. package/GridComponent.js +1 -1
  9. package/GridComponent.mjs +120 -119
  10. package/GridState.js +2 -1
  11. package/GridToolbar.js +1 -1
  12. package/GridToolbar.mjs +5 -6
  13. package/GridWatermarkOverlay.js +2 -1
  14. package/GridWatermarkOverlay.mjs +2 -2
  15. package/StatusBar.js +1 -1
  16. package/StatusBar.mjs +0 -1
  17. package/VirtualScroll.js +1 -1
  18. package/VirtualScroll.mjs +0 -1
  19. package/VirtualScrollFixed.js +1 -1
  20. package/VirtualScrollFixed.mjs +9 -10
  21. package/cells/GridCell.js +1 -1
  22. package/cells/GridCell.mjs +15 -17
  23. package/cells/GridDetailCell.js +1 -1
  24. package/cells/GridDetailCell.mjs +5 -6
  25. package/cells/GridDetailHierarchyCell.js +1 -1
  26. package/cells/GridDetailHierarchyCell.mjs +4 -5
  27. package/cells/GridEditCell.js +1 -1
  28. package/cells/GridEditCell.mjs +6 -7
  29. package/cells/GridFilterCell.js +2 -1
  30. package/cells/GridGroupCell.js +1 -1
  31. package/cells/GridGroupCell.mjs +11 -12
  32. package/cells/GridHierarchyCell.js +1 -1
  33. package/cells/GridHierarchyCell.mjs +7 -8
  34. package/cells/GridRowReorderCell.js +1 -1
  35. package/cells/GridRowReorderCell.mjs +3 -4
  36. package/cells/GridSelectionCell.js +1 -1
  37. package/cells/GridSelectionCell.mjs +12 -13
  38. package/cells/client/DetailCellContainer.js +2 -1
  39. package/cells/client/DetailCellContainer.mjs +2 -2
  40. package/cells/client/GridCellContainer.js +2 -1
  41. package/cells/client/GridEditCellContainer.js +2 -1
  42. package/cells/client/GridEditCellEditor.js +2 -1
  43. package/cells/client/GridEditCellEditor.mjs +14 -14
  44. package/cells/client/GridGroupCellContainer.js +2 -1
  45. package/cells/client/GridGroupCellContainer.mjs +39 -39
  46. package/cells/client/GridGroupCellToggle.js +2 -1
  47. package/cells/client/GridGroupCellToggle.mjs +3 -3
  48. package/cells/client/GridHierarchyCellContainer.js +2 -1
  49. package/cells/client/GridHierarchyCellToggle.js +2 -1
  50. package/cells/client/GridHierarchyCellToggle.mjs +15 -15
  51. package/cells/client/GridRowReorderContainer.js +2 -1
  52. package/cells/client/GridRowReorderContainer.mjs +3 -3
  53. package/cells/client/GridSelectionCellContainer.js +2 -1
  54. package/cells/client/GridSelectionCellInput.js +2 -1
  55. package/cells/client/GridSelectionCellInput.mjs +3 -3
  56. package/columnMenu/GridColumnMenuCheckboxFilter.js +2 -1
  57. package/columnMenu/GridColumnMenuColumnsList.js +2 -1
  58. package/columnMenu/GridColumnMenuColumnsList.mjs +16 -16
  59. package/columnMenu/GridColumnMenuFilter.js +2 -1
  60. package/columnMenu/GridColumnMenuFilterCell.js +2 -1
  61. package/columnMenu/GridColumnMenuFilterCell.mjs +3 -3
  62. package/columnMenu/GridColumnMenuFilterUI.js +2 -1
  63. package/columnMenu/GridColumnMenuGroup.js +2 -1
  64. package/columnMenu/GridColumnMenuGroup.mjs +5 -5
  65. package/columnMenu/GridColumnMenuItem.js +2 -1
  66. package/columnMenu/GridColumnMenuItem.mjs +2 -2
  67. package/columnMenu/GridColumnMenuItemContent.js +2 -1
  68. package/columnMenu/GridColumnMenuItemContent.mjs +4 -4
  69. package/columnMenu/GridColumnMenuItemGroup.js +2 -1
  70. package/columnMenu/GridColumnMenuItemGroup.mjs +4 -4
  71. package/columnMenu/GridColumnMenuSort.js +2 -1
  72. package/columnMenu/GridColumnMenuSort.mjs +7 -7
  73. package/columnMenu/GridColumnMenuWrapper.js +2 -1
  74. package/components/GridContainerElementContainer.js +2 -1
  75. package/components/GridCustomCellClientContainer.js +2 -1
  76. package/components/GridCustomCellClientContainer.mjs +2 -2
  77. package/components/GridDragClue.js +2 -1
  78. package/components/GridDragClue.mjs +5 -5
  79. package/components/GridDraggableRowsContainer.js +2 -1
  80. package/components/GridDropClue.js +2 -1
  81. package/components/GridDropClue.mjs +5 -5
  82. package/components/GridElementContainer.js +2 -1
  83. package/components/GridElementContainer.mjs +6 -6
  84. package/components/PagerContainer.js +2 -1
  85. package/components/PagerContainer.mjs +4 -4
  86. package/components/VirtualScrollHeightContainer.js +2 -1
  87. package/components/VirtualScrollHeightContainer.mjs +2 -2
  88. package/components/colGroup/GridColGroup.js +2 -1
  89. package/components/colGroup/GridColGroup.mjs +5 -5
  90. package/components/icons/reorder-row-svg.js +2 -1
  91. package/components/icons/reorder-row-svg.mjs +2 -2
  92. package/components/noRecords/GridNoRecords.js +2 -1
  93. package/components/noRecords/GridNoRecords.mjs +5 -5
  94. package/components/noRecords/GridNoRecordsContainer.js +2 -1
  95. package/components/noRecords/GridNoRecordsContainer.mjs +4 -4
  96. package/components/table/GridTable.js +2 -1
  97. package/components/table/GridTable.mjs +4 -4
  98. package/components/table/GridTableBody.js +2 -1
  99. package/components/table/GridTableBody.mjs +2 -2
  100. package/components/table/GridTableScrollable.js +2 -1
  101. package/components/table/GridTableScrollable.mjs +6 -6
  102. package/components/utils.js +1 -1
  103. package/components/utils.mjs +0 -1
  104. package/constants/index.js +1 -1
  105. package/constants/index.mjs +0 -1
  106. package/contextMenu/GridContextMenu.js +2 -1
  107. package/contextMenu/GridContextMenu.mjs +3 -3
  108. package/contextMenu/enums.js +1 -1
  109. package/contextMenu/enums.mjs +0 -1
  110. package/dist/cdn/js/kendo-react-grid.js +1 -1
  111. package/drag/ColumnDraggable.js +2 -1
  112. package/drag/ColumnDraggable.mjs +7 -7
  113. package/drag/ColumnResize.js +1 -1
  114. package/drag/ColumnResize.mjs +0 -1
  115. package/drag/CommonDragLogic.js +1 -1
  116. package/drag/CommonDragLogic.mjs +0 -1
  117. package/drag/GroupingIndicator.js +2 -1
  118. package/drag/GroupingIndicator.mjs +12 -12
  119. package/filterCommon.js +1 -1
  120. package/filterCommon.mjs +4 -5
  121. package/footer/Footer.js +2 -1
  122. package/footer/FooterCell.js +1 -1
  123. package/footer/FooterCell.mjs +3 -4
  124. package/footer/FooterRow.js +1 -1
  125. package/footer/FooterRow.mjs +6 -7
  126. package/footer/client/FooterCellContainer.js +2 -1
  127. package/footer/client/FooterCellContainer.mjs +5 -5
  128. package/header/FilterRow.js +1 -1
  129. package/header/FilterRow.mjs +41 -43
  130. package/header/GridHeaderCell.js +2 -1
  131. package/header/GridHeaderCell.mjs +4 -4
  132. package/header/GridHeaderSelectionCell.js +2 -1
  133. package/header/GroupPanel.js +2 -1
  134. package/header/Header.js +2 -1
  135. package/header/HeaderRow.js +1 -1
  136. package/header/HeaderRow.mjs +33 -35
  137. package/header/client/GridFilterCellContainer.js +2 -1
  138. package/header/client/GridFilterCellContainer.mjs +7 -7
  139. package/header/client/GridFilterCellElementContainer.js +2 -1
  140. package/header/client/GridHeaderCellContainer.js +2 -1
  141. package/header/client/GridHeaderCellElementContainer.js +2 -1
  142. package/header/client/GridHeaderCellElementContainer.mjs +10 -10
  143. package/header/client/GridHeaderRowContainer.js +2 -1
  144. package/header/client/GridHeaderRowReorderCell.js +2 -1
  145. package/header/client/GridHeaderRowReorderCell.mjs +2 -2
  146. package/header/client/HeaderCellResizer.js +2 -1
  147. package/header/client/HeaderRowDraggable.js +2 -1
  148. package/index.d.mts +6 -0
  149. package/index.d.ts +6 -0
  150. package/index.js +1 -1
  151. package/index.mjs +13 -14
  152. package/interfaces/GridSortSettings.js +1 -1
  153. package/interfaces/GridSortSettings.mjs +0 -1
  154. package/messages/index.js +1 -1
  155. package/messages/index.mjs +0 -1
  156. package/messages/messagesMap.js +1 -1
  157. package/messages/messagesMap.mjs +2 -3
  158. package/package-metadata.js +1 -1
  159. package/package-metadata.mjs +2 -3
  160. package/package.json +12 -12
  161. package/paging/GridPagerSettings.js +1 -1
  162. package/paging/GridPagerSettings.mjs +6 -7
  163. package/rows/GridDetailRow.js +1 -1
  164. package/rows/GridDetailRow.mjs +2 -3
  165. package/rows/GridRow.js +2 -1
  166. package/utils/_clientModule.js +2 -1
  167. package/utils/_clientModule.mjs +2 -2
  168. package/utils/_serverModule.js +1 -1
  169. package/utils/_serverModule.mjs +0 -1
  170. package/utils/index.js +1 -1
  171. package/utils/index.mjs +38 -39
@@ -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 a=require("react"),c=require("../../GridClientWrapper.js"),o=require("@progress/kendo-react-data-tools");function i(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 n=i(a),s=e=>{const t=n.useContext(c.GridContext);return n.createElement(o.TableSelection,{selectable:e.selectable,onRelease:t.selectionRelease,childRef:l=>{t.tableElementRef.current=l}},n.createElement("table",{className:e.tableClassName,role:"presentation",style:e.tableStyle,ref:t.tableElementRef},e.children))};exports.GridTableScrollable=s;
8
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),c=require("../../GridClientWrapper.js"),o=require("@progress/kendo-react-data-tools");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const a=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,a.get?a:{enumerable:!0,get:()=>e[l]})}}return t.default=e,Object.freeze(t)}const r=i(n),s=e=>{const t=r.useContext(c.GridContext);return r.createElement(o.TableSelection,{selectable:e.selectable,onRelease:t.selectionRelease,childRef:l=>{t.tableElementRef.current=l}},r.createElement("table",{className:e.tableClassName,role:"presentation",style:e.tableStyle,ref:t.tableElementRef},e.children))};exports.GridTableScrollable=s;
@@ -7,12 +7,12 @@
7
7
  */
8
8
  "use client";
9
9
  import * as l from "react";
10
- import { GridContext as n } from "../../GridClientWrapper.mjs";
11
- import { TableSelection as r } from "@progress/kendo-react-data-tools";
12
- const s = (e) => {
13
- const t = l.useContext(n);
10
+ import { GridContext as r } from "../../GridClientWrapper.mjs";
11
+ import { TableSelection as n } from "@progress/kendo-react-data-tools";
12
+ const m = (e) => {
13
+ const t = l.useContext(r);
14
14
  return /* @__PURE__ */ l.createElement(
15
- r,
15
+ n,
16
16
  {
17
17
  selectable: e.selectable,
18
18
  onRelease: t.selectionRelease,
@@ -33,5 +33,5 @@ const s = (e) => {
33
33
  );
34
34
  };
35
35
  export {
36
- s as GridTableScrollable
36
+ m as GridTableScrollable
37
37
  };
@@ -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={before:"before",after:"after",forbidden:"forbidden"},u=(t,n)=>(t==null?void 0:t.parentElement)!==(n==null?void 0:n.parentElement);function r(t){const{clientTop:n,clientLeft:o}=D(t),{pageYOffset:f,pageXOffset:e}=b(t),{top:i,left:c}=t.getBoundingClientRect();return{top:i+f-n,left:c+e-o}}const D=t=>t==null?void 0:t.ownerDocument.documentElement,b=t=>t==null?void 0:t.ownerDocument.defaultView;exports.dropDirection=s;exports.getOffset=r;exports.isDifferentParent=u;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={before:"before",after:"after",forbidden:"forbidden"},u=(t,n)=>(t==null?void 0:t.parentElement)!==(n==null?void 0:n.parentElement);function r(t){const{clientTop:n,clientLeft:o}=D(t),{pageYOffset:f,pageXOffset:e}=b(t),{top:i,left:c}=t.getBoundingClientRect();return{top:i+f-n,left:c+e-o}}const D=t=>t==null?void 0:t.ownerDocument.documentElement,b=t=>t==null?void 0:t.ownerDocument.defaultView;exports.dropDirection=s;exports.getOffset=r;exports.isDifferentParent=u;
@@ -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
  const p = {
10
9
  before: "before",
11
10
  after: "after",
@@ -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("@progress/kendo-react-data-tools"),T=E.TABLE_ROW_INDEX_ATTRIBUTE,_=E.TABLE_COL_INDEX_ATTRIBUTE,I=E.TABLE_PREVENT_SELECTION_ELEMENT,R=/^(?!.*\bChrome).*\bSafari/i;exports.GRID_COL_INDEX_ATTRIBUTE=_;exports.GRID_PREVENT_SELECTION_ELEMENT=I;exports.GRID_ROW_INDEX_ATTRIBUTE=T;exports.SAFARI_REGEX=R;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@progress/kendo-react-data-tools"),T=E.TABLE_ROW_INDEX_ATTRIBUTE,_=E.TABLE_COL_INDEX_ATTRIBUTE,I=E.TABLE_PREVENT_SELECTION_ELEMENT,R=/^(?!.*\bChrome).*\bSafari/i;exports.GRID_COL_INDEX_ATTRIBUTE=_;exports.GRID_PREVENT_SELECTION_ELEMENT=I;exports.GRID_ROW_INDEX_ATTRIBUTE=T;exports.SAFARI_REGEX=R;
@@ -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 { TABLE_ROW_INDEX_ATTRIBUTE as E, TABLE_COL_INDEX_ATTRIBUTE as T, TABLE_PREVENT_SELECTION_ELEMENT as _ } from "@progress/kendo-react-data-tools";
10
9
  const R = E, N = T, A = _, L = /^(?!.*\bChrome).*\bSafari/i;
11
10
  export {
@@ -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 w=require("react"),e=require("@progress/kendo-svg-icons"),R=require("@progress/kendo-react-intl"),f=require("@progress/kendo-react-layout"),t=require("./enums.js");function M(n){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const c in n)if(c!=="default"){const s=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(r,c,s.get?s:{enumerable:!0,get:()=>n[c]})}}return r.default=n,Object.freeze(r)}const m=M(w),u={[t.GridContextMenuItemNames.create]:{name:"create",text:"Add",icon:"plus",svgIcon:e.plusIcon,data:{action:"AddCommand"}},[t.GridContextMenuItemNames.edit]:{name:"edit",text:"Edit",icon:"pencil",svgIcon:e.pencilIcon,data:{action:"EditCommand"}},[t.GridContextMenuItemNames.delete]:{name:"delete",text:"Delete",icon:"trash",svgIcon:e.trashIcon,data:{action:"DeleteCommand"}},[t.GridContextMenuItemNames.select]:{name:"select",text:"Select",icon:"table-body",svgIcon:e.tableBodyIcon,items:[{name:"selectRow",text:"Row",icon:"table-row-groups",svgIcon:e.tableRowGroupsIcon,data:{action:"SelectRowCommand"}},{name:"selectAllRows",text:"All rows",icon:"grid",svgIcon:e.gridIcon,data:{action:"SelectAllRowsCommand"}},{name:"clearSelection",text:"Clear selection",icon:"table-unmerge",svgIcon:e.tableUnmergeIcon,data:{action:"ClearSelectionCommand"}}]},[t.GridContextMenuItemNames.copySelection]:{name:"copySelection",text:"Copy selection",icon:"page-header-section",svgIcon:e.pageHeaderSectionIcon,data:{action:"CopySelectionCommand"},options:"withHeaders"},[t.GridContextMenuItemNames.copySelectionNoHeaders]:{name:"copySelectionNoHeaders",text:"Copy selection (No Headers)",icon:"file-txt",svgIcon:e.fileTxtIcon,data:{action:"CopySelectionCommand"}},[t.GridContextMenuItemNames.paste]:{name:"paste",text:"Paste (use CTRL/⌘ + V)",icon:"clipboard",svgIcon:e.clipboardIcon,data:{action:"PasteCommand"}},[t.GridContextMenuItemNames.reorderRow]:{name:"reorderRow",text:"Reorder row",icon:"caret-alt-expand",svgIcon:e.caretAltExpandIcon,items:[{name:"reorderRowUp",text:"Up",icon:"caret-alt-up",svgIcon:e.caretAltUpIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowDown",text:"Down",icon:"caret-alt-down",svgIcon:e.caretAltDownIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowTop",text:"Top",icon:"caret-alt-to-top",svgIcon:e.caretAltToTopIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowBottom",text:"Bottom",icon:"caret-alt-to-bottom",svgIcon:e.caretAltToBottomIcon,data:{action:"ReorderRowCommand"}}]},[t.GridContextMenuItemNames.exportPDF]:{name:"exportPDF",text:"Export to PDF",icon:"file-pdf",svgIcon:e.filePdfIcon,data:{action:"ExportPDFCommand"}},[t.GridContextMenuItemNames.exportExcel]:{name:"exportExcel",text:"Export to Excel",icon:"file-excel",svgIcon:e.fileExcelIcon,items:[{name:"exportToExcelAll",text:"All",data:{action:"ExportExcelCommand"}},{name:"exportToExcelSelection",text:"Selection",data:{action:"ExportExcelCommand"},options:"selection,withHeaders"},{name:"exportToExcelSelectionNoHeaders",text:"Selection (No Headers)",data:{action:"ExportExcelCommand"},options:"selection"}]},[t.GridContextMenuItemNames.separator]:{name:"separator",separator:!0},[t.GridContextMenuItemNames.sortAsc]:{name:"sortAsc",text:"Sort Ascending",icon:"sort-asc-small",svgIcon:e.sortAscSmallIcon,data:{action:"SortCommand"}},[t.GridContextMenuItemNames.sortDesc]:{name:"sortDesc",text:"Sort Descending",icon:"sort-desc-small",svgIcon:e.sortDescSmallIcon,data:{action:"SortCommand"}}},v=n=>{const{show:r,offset:c,dataItem:s,field:d,items:i,onClose:I,onSelect:x}=n,p=R.useLocalization(),C=m.useCallback(a=>{x.call(void 0,{event:a,dataItem:s,field:d})},[x,s,d]),l=m.useCallback(a=>{const o=a;return o.text&&o.name&&(o.text=p.toLanguageString(`contextMenu.${o.name}`,o.text||"")),o.items&&Array.isArray(o.items)&&(o.items=o.items.map(S=>l(S))),o},[p]),g=m.useMemo(()=>i&&i.map(a=>{const o=typeof a=="string"?u[a]:a;return l(o)}),[i,l]);return m.createElement(f.ContextMenu,{show:r,offset:c,items:g,onClose:I,onSelect:C})};exports.GridContextMenu=v;exports.contextMenuItemsMap=u;
8
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),e=require("@progress/kendo-svg-icons"),R=require("@progress/kendo-react-intl"),f=require("@progress/kendo-react-layout"),t=require("./enums.js");function M(n){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const c in n)if(c!=="default"){const s=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(r,c,s.get?s:{enumerable:!0,get:()=>n[c]})}}return r.default=n,Object.freeze(r)}const m=M(w),I={[t.GridContextMenuItemNames.create]:{name:"create",text:"Add",icon:"plus",svgIcon:e.plusIcon,data:{action:"AddCommand"}},[t.GridContextMenuItemNames.edit]:{name:"edit",text:"Edit",icon:"pencil",svgIcon:e.pencilIcon,data:{action:"EditCommand"}},[t.GridContextMenuItemNames.delete]:{name:"delete",text:"Delete",icon:"trash",svgIcon:e.trashIcon,data:{action:"DeleteCommand"}},[t.GridContextMenuItemNames.select]:{name:"select",text:"Select",icon:"table-body",svgIcon:e.tableBodyIcon,items:[{name:"selectRow",text:"Row",icon:"table-row-groups",svgIcon:e.tableRowGroupsIcon,data:{action:"SelectRowCommand"}},{name:"selectAllRows",text:"All rows",icon:"grid",svgIcon:e.gridIcon,data:{action:"SelectAllRowsCommand"}},{name:"clearSelection",text:"Clear selection",icon:"table-unmerge",svgIcon:e.tableUnmergeIcon,data:{action:"ClearSelectionCommand"}}]},[t.GridContextMenuItemNames.copySelection]:{name:"copySelection",text:"Copy selection",icon:"page-header-section",svgIcon:e.pageHeaderSectionIcon,data:{action:"CopySelectionCommand"},options:"withHeaders"},[t.GridContextMenuItemNames.copySelectionNoHeaders]:{name:"copySelectionNoHeaders",text:"Copy selection (No Headers)",icon:"file-txt",svgIcon:e.fileTxtIcon,data:{action:"CopySelectionCommand"}},[t.GridContextMenuItemNames.paste]:{name:"paste",text:"Paste (use CTRL/⌘ + V)",icon:"clipboard",svgIcon:e.clipboardIcon,data:{action:"PasteCommand"}},[t.GridContextMenuItemNames.reorderRow]:{name:"reorderRow",text:"Reorder row",icon:"caret-alt-expand",svgIcon:e.caretAltExpandIcon,items:[{name:"reorderRowUp",text:"Up",icon:"caret-alt-up",svgIcon:e.caretAltUpIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowDown",text:"Down",icon:"caret-alt-down",svgIcon:e.caretAltDownIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowTop",text:"Top",icon:"caret-alt-to-top",svgIcon:e.caretAltToTopIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowBottom",text:"Bottom",icon:"caret-alt-to-bottom",svgIcon:e.caretAltToBottomIcon,data:{action:"ReorderRowCommand"}}]},[t.GridContextMenuItemNames.exportPDF]:{name:"exportPDF",text:"Export to PDF",icon:"file-pdf",svgIcon:e.filePdfIcon,data:{action:"ExportPDFCommand"}},[t.GridContextMenuItemNames.exportExcel]:{name:"exportExcel",text:"Export to Excel",icon:"file-excel",svgIcon:e.fileExcelIcon,items:[{name:"exportToExcelAll",text:"All",data:{action:"ExportExcelCommand"}},{name:"exportToExcelSelection",text:"Selection",data:{action:"ExportExcelCommand"},options:"selection,withHeaders"},{name:"exportToExcelSelectionNoHeaders",text:"Selection (No Headers)",data:{action:"ExportExcelCommand"},options:"selection"}]},[t.GridContextMenuItemNames.separator]:{name:"separator",separator:!0},[t.GridContextMenuItemNames.sortAsc]:{name:"sortAsc",text:"Sort Ascending",icon:"sort-asc-small",svgIcon:e.sortAscSmallIcon,data:{action:"SortCommand"}},[t.GridContextMenuItemNames.sortDesc]:{name:"sortDesc",text:"Sort Descending",icon:"sort-desc-small",svgIcon:e.sortDescSmallIcon,data:{action:"SortCommand"}}},v=n=>{const{show:r,offset:c,dataItem:s,field:d,items:i,onClose:u,onSelect:x}=n,p=R.useLocalization(),C=m.useCallback(a=>{x.call(void 0,{event:a,dataItem:s,field:d})},[x,s,d]),l=m.useCallback(a=>{const o=a;return o.text&&o.name&&(o.text=p.toLanguageString(`contextMenu.${o.name}`,o.text||"")),o.items&&Array.isArray(o.items)&&(o.items=o.items.map(S=>l(S))),o},[p]),g=m.useMemo(()=>i&&i.map(a=>{const o=typeof a=="string"?I[a]:a;return l(o)}),[i,l]);return m.createElement(f.ContextMenu,{show:r,offset:c,items:g,onClose:u,onSelect:C})};exports.GridContextMenu=v;exports.contextMenuItemsMap=I;
@@ -7,7 +7,7 @@
7
7
  */
8
8
  "use client";
9
9
  import * as a from "react";
10
- import { plusIcon as w, pencilIcon as u, trashIcon as S, tableBodyIcon as R, tableRowGroupsIcon as f, gridIcon as v, tableUnmergeIcon as E, pageHeaderSectionIcon as A, fileTxtIcon as y, clipboardIcon as D, caretAltExpandIcon as b, caretAltUpIcon as T, caretAltDownIcon as H, caretAltToTopIcon as h, caretAltToBottomIcon as M, filePdfIcon as P, fileExcelIcon as N, sortAscSmallIcon as B, sortDescSmallIcon as F } from "@progress/kendo-svg-icons";
10
+ import { plusIcon as w, pencilIcon as S, trashIcon as u, tableBodyIcon as R, tableRowGroupsIcon as f, gridIcon as v, tableUnmergeIcon as E, pageHeaderSectionIcon as A, fileTxtIcon as y, clipboardIcon as D, caretAltExpandIcon as b, caretAltUpIcon as T, caretAltDownIcon as H, caretAltToTopIcon as h, caretAltToBottomIcon as M, filePdfIcon as P, fileExcelIcon as N, sortAscSmallIcon as B, sortDescSmallIcon as F } from "@progress/kendo-svg-icons";
11
11
  import { useLocalization as U } from "@progress/kendo-react-intl";
12
12
  import { ContextMenu as z } from "@progress/kendo-react-layout";
13
13
  import { GridContextMenuItemNames as e } from "./enums.mjs";
@@ -23,14 +23,14 @@ const G = {
23
23
  name: "edit",
24
24
  text: "Edit",
25
25
  icon: "pencil",
26
- svgIcon: u,
26
+ svgIcon: S,
27
27
  data: { action: "EditCommand" }
28
28
  },
29
29
  [e.delete]: {
30
30
  name: "delete",
31
31
  text: "Delete",
32
32
  icon: "trash",
33
- svgIcon: S,
33
+ svgIcon: u,
34
34
  data: { action: "DeleteCommand" }
35
35
  },
36
36
  [e.select]: {
@@ -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"});var r=(c=>(c.head="head",c.body="body",c))(r||{}),o=(c=>(c.create="create",c.edit="edit",c.delete="delete",c.select="select",c.copySelection="copySelection",c.copySelectionNoHeaders="copySelectionNoHeaders",c.paste="paste",c.reorderRow="reorderRow",c.exportPDF="exportPDF",c.exportExcel="exportExcel",c.separator="separator",c.sortAsc="sortAsc",c.sortDesc="sortDesc",c))(o||{});exports.GridContextMenuAnchorPart=r;exports.GridContextMenuItemNames=o;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var c=(r=>(r.head="head",r.body="body",r))(c||{}),o=(r=>(r.create="create",r.edit="edit",r.delete="delete",r.select="select",r.copySelection="copySelection",r.copySelectionNoHeaders="copySelectionNoHeaders",r.paste="paste",r.reorderRow="reorderRow",r.exportPDF="exportPDF",r.exportExcel="exportExcel",r.separator="separator",r.sortAsc="sortAsc",r.sortDesc="sortDesc",r))(o||{});exports.GridContextMenuAnchorPart=c;exports.GridContextMenuItemNames=o;
@@ -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
  var r = /* @__PURE__ */ ((c) => (c.head = "head", c.body = "body", c))(r || {}), o = /* @__PURE__ */ ((c) => (c.create = "create", c.edit = "edit", c.delete = "delete", c.select = "select", c.copySelection = "copySelection", c.copySelectionNoHeaders = "copySelectionNoHeaders", c.paste = "paste", c.reorderRow = "reorderRow", c.exportPDF = "exportPDF", c.exportExcel = "exportExcel", c.separator = "separator", c.sortAsc = "sortAsc", c.sortDesc = "sortDesc", c))(o || {});
10
9
  export {
11
10
  r as GridContextMenuAnchorPart,