material-react-table 1.11.4 → 1.11.5

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 (222) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/index.js +580 -815
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/types/MaterialReactTable.d.ts +1 -1
  5. package/dist/cjs/types/body/MRT_EditRowModal.d.ts +1 -2
  6. package/dist/cjs/types/body/MRT_TableBody.d.ts +3 -3
  7. package/dist/cjs/types/body/MRT_TableBodyCell.d.ts +3 -3
  8. package/dist/cjs/types/body/MRT_TableBodyCellValue.d.ts +1 -2
  9. package/dist/cjs/types/body/MRT_TableBodyRow.d.ts +3 -3
  10. package/dist/cjs/types/body/MRT_TableBodyRowGrabHandle.d.ts +1 -1
  11. package/dist/cjs/types/body/MRT_TableDetailPanel.d.ts +2 -2
  12. package/dist/cjs/types/buttons/MRT_ColumnPinningButtons.d.ts +1 -2
  13. package/dist/cjs/types/buttons/MRT_CopyButton.d.ts +1 -1
  14. package/dist/cjs/types/buttons/MRT_EditActionButtons.d.ts +1 -2
  15. package/dist/cjs/types/buttons/MRT_ExpandAllButton.d.ts +1 -2
  16. package/dist/cjs/types/buttons/MRT_ExpandButton.d.ts +1 -2
  17. package/dist/cjs/types/buttons/MRT_FullScreenToggleButton.d.ts +1 -2
  18. package/dist/cjs/types/buttons/MRT_GrabHandleButton.d.ts +1 -1
  19. package/dist/cjs/types/buttons/MRT_ShowHideColumnsButton.d.ts +1 -2
  20. package/dist/cjs/types/buttons/MRT_ToggleDensePaddingButton.d.ts +1 -2
  21. package/dist/cjs/types/buttons/MRT_ToggleFiltersButton.d.ts +1 -2
  22. package/dist/cjs/types/buttons/MRT_ToggleGlobalFilterButton.d.ts +1 -2
  23. package/dist/cjs/types/buttons/MRT_ToggleRowActionMenuButton.d.ts +1 -2
  24. package/dist/cjs/types/footer/MRT_TableFooter.d.ts +1 -2
  25. package/dist/cjs/types/footer/MRT_TableFooterCell.d.ts +1 -2
  26. package/dist/cjs/types/footer/MRT_TableFooterRow.d.ts +1 -2
  27. package/dist/cjs/types/head/MRT_TableHead.d.ts +1 -2
  28. package/dist/cjs/types/head/MRT_TableHeadCell.d.ts +1 -2
  29. package/dist/cjs/types/head/MRT_TableHeadCellColumnActionsButton.d.ts +1 -2
  30. package/dist/cjs/types/head/MRT_TableHeadCellFilterContainer.d.ts +1 -2
  31. package/dist/cjs/types/head/MRT_TableHeadCellFilterLabel.d.ts +1 -2
  32. package/dist/cjs/types/head/MRT_TableHeadCellGrabHandle.d.ts +1 -1
  33. package/dist/cjs/types/head/MRT_TableHeadCellResizeHandle.d.ts +1 -2
  34. package/dist/cjs/types/head/MRT_TableHeadCellSortLabel.d.ts +1 -2
  35. package/dist/cjs/types/head/MRT_TableHeadRow.d.ts +1 -2
  36. package/dist/cjs/types/inputs/MRT_EditCellTextField.d.ts +1 -2
  37. package/dist/cjs/types/inputs/MRT_FilterCheckbox.d.ts +1 -2
  38. package/dist/cjs/types/inputs/MRT_FilterRangeFields.d.ts +1 -2
  39. package/dist/cjs/types/inputs/MRT_FilterTextField.d.ts +1 -2
  40. package/dist/cjs/types/inputs/MRT_GlobalFilterTextField.d.ts +1 -2
  41. package/dist/cjs/types/inputs/MRT_SelectCheckbox.d.ts +1 -2
  42. package/dist/cjs/types/menus/MRT_ColumnActionMenu.d.ts +1 -2
  43. package/dist/cjs/types/menus/MRT_FilterOptionMenu.d.ts +1 -2
  44. package/dist/cjs/types/menus/MRT_RowActionMenu.d.ts +1 -1
  45. package/dist/cjs/types/menus/MRT_ShowHideColumnsMenu.d.ts +1 -2
  46. package/dist/cjs/types/menus/MRT_ShowHideColumnsMenuItems.d.ts +1 -1
  47. package/dist/cjs/types/table/MRT_Table.d.ts +1 -2
  48. package/dist/cjs/types/table/MRT_TableContainer.d.ts +1 -2
  49. package/dist/cjs/types/table/MRT_TablePaper.d.ts +1 -2
  50. package/dist/cjs/types/toolbar/MRT_BottomToolbar.d.ts +1 -2
  51. package/dist/cjs/types/toolbar/MRT_LinearProgressBar.d.ts +1 -2
  52. package/dist/cjs/types/toolbar/MRT_TablePagination.d.ts +1 -2
  53. package/dist/cjs/types/toolbar/MRT_ToolbarAlertBanner.d.ts +1 -2
  54. package/dist/cjs/types/toolbar/MRT_ToolbarDropZone.d.ts +1 -2
  55. package/dist/cjs/types/toolbar/MRT_ToolbarInternalButtons.d.ts +1 -2
  56. package/dist/cjs/types/toolbar/MRT_TopToolbar.d.ts +1 -2
  57. package/dist/esm/material-react-table.esm.js +501 -735
  58. package/dist/esm/material-react-table.esm.js.map +1 -1
  59. package/dist/esm/types/MaterialReactTable.d.ts +1 -1
  60. package/dist/esm/types/body/MRT_EditRowModal.d.ts +1 -2
  61. package/dist/esm/types/body/MRT_TableBody.d.ts +3 -3
  62. package/dist/esm/types/body/MRT_TableBodyCell.d.ts +3 -3
  63. package/dist/esm/types/body/MRT_TableBodyCellValue.d.ts +1 -2
  64. package/dist/esm/types/body/MRT_TableBodyRow.d.ts +3 -3
  65. package/dist/esm/types/body/MRT_TableBodyRowGrabHandle.d.ts +1 -1
  66. package/dist/esm/types/body/MRT_TableDetailPanel.d.ts +2 -2
  67. package/dist/esm/types/buttons/MRT_ColumnPinningButtons.d.ts +1 -2
  68. package/dist/esm/types/buttons/MRT_CopyButton.d.ts +1 -1
  69. package/dist/esm/types/buttons/MRT_EditActionButtons.d.ts +1 -2
  70. package/dist/esm/types/buttons/MRT_ExpandAllButton.d.ts +1 -2
  71. package/dist/esm/types/buttons/MRT_ExpandButton.d.ts +1 -2
  72. package/dist/esm/types/buttons/MRT_FullScreenToggleButton.d.ts +1 -2
  73. package/dist/esm/types/buttons/MRT_GrabHandleButton.d.ts +1 -1
  74. package/dist/esm/types/buttons/MRT_ShowHideColumnsButton.d.ts +1 -2
  75. package/dist/esm/types/buttons/MRT_ToggleDensePaddingButton.d.ts +1 -2
  76. package/dist/esm/types/buttons/MRT_ToggleFiltersButton.d.ts +1 -2
  77. package/dist/esm/types/buttons/MRT_ToggleGlobalFilterButton.d.ts +1 -2
  78. package/dist/esm/types/buttons/MRT_ToggleRowActionMenuButton.d.ts +1 -2
  79. package/dist/esm/types/footer/MRT_TableFooter.d.ts +1 -2
  80. package/dist/esm/types/footer/MRT_TableFooterCell.d.ts +1 -2
  81. package/dist/esm/types/footer/MRT_TableFooterRow.d.ts +1 -2
  82. package/dist/esm/types/head/MRT_TableHead.d.ts +1 -2
  83. package/dist/esm/types/head/MRT_TableHeadCell.d.ts +1 -2
  84. package/dist/esm/types/head/MRT_TableHeadCellColumnActionsButton.d.ts +1 -2
  85. package/dist/esm/types/head/MRT_TableHeadCellFilterContainer.d.ts +1 -2
  86. package/dist/esm/types/head/MRT_TableHeadCellFilterLabel.d.ts +1 -2
  87. package/dist/esm/types/head/MRT_TableHeadCellGrabHandle.d.ts +1 -1
  88. package/dist/esm/types/head/MRT_TableHeadCellResizeHandle.d.ts +1 -2
  89. package/dist/esm/types/head/MRT_TableHeadCellSortLabel.d.ts +1 -2
  90. package/dist/esm/types/head/MRT_TableHeadRow.d.ts +1 -2
  91. package/dist/esm/types/inputs/MRT_EditCellTextField.d.ts +1 -2
  92. package/dist/esm/types/inputs/MRT_FilterCheckbox.d.ts +1 -2
  93. package/dist/esm/types/inputs/MRT_FilterRangeFields.d.ts +1 -2
  94. package/dist/esm/types/inputs/MRT_FilterTextField.d.ts +1 -2
  95. package/dist/esm/types/inputs/MRT_GlobalFilterTextField.d.ts +1 -2
  96. package/dist/esm/types/inputs/MRT_SelectCheckbox.d.ts +1 -2
  97. package/dist/esm/types/menus/MRT_ColumnActionMenu.d.ts +1 -2
  98. package/dist/esm/types/menus/MRT_FilterOptionMenu.d.ts +1 -2
  99. package/dist/esm/types/menus/MRT_RowActionMenu.d.ts +1 -1
  100. package/dist/esm/types/menus/MRT_ShowHideColumnsMenu.d.ts +1 -2
  101. package/dist/esm/types/menus/MRT_ShowHideColumnsMenuItems.d.ts +1 -1
  102. package/dist/esm/types/table/MRT_Table.d.ts +1 -2
  103. package/dist/esm/types/table/MRT_TableContainer.d.ts +1 -2
  104. package/dist/esm/types/table/MRT_TablePaper.d.ts +1 -2
  105. package/dist/esm/types/toolbar/MRT_BottomToolbar.d.ts +1 -2
  106. package/dist/esm/types/toolbar/MRT_LinearProgressBar.d.ts +1 -2
  107. package/dist/esm/types/toolbar/MRT_TablePagination.d.ts +1 -2
  108. package/dist/esm/types/toolbar/MRT_ToolbarAlertBanner.d.ts +1 -2
  109. package/dist/esm/types/toolbar/MRT_ToolbarDropZone.d.ts +1 -2
  110. package/dist/esm/types/toolbar/MRT_ToolbarInternalButtons.d.ts +1 -2
  111. package/dist/esm/types/toolbar/MRT_TopToolbar.d.ts +1 -2
  112. package/dist/index.d.ts +21 -21
  113. package/locales/cs.esm.js +91 -89
  114. package/locales/cs.js +91 -89
  115. package/locales/da.esm.js +90 -89
  116. package/locales/da.js +90 -89
  117. package/locales/de.esm.js +90 -89
  118. package/locales/de.js +90 -89
  119. package/locales/en.esm.js +90 -89
  120. package/locales/en.js +90 -89
  121. package/locales/es.esm.js +90 -89
  122. package/locales/es.js +90 -89
  123. package/locales/fa.esm.js +90 -89
  124. package/locales/fa.js +90 -89
  125. package/locales/fi.esm.js +91 -89
  126. package/locales/fi.js +91 -89
  127. package/locales/fr.esm.js +90 -89
  128. package/locales/fr.js +90 -89
  129. package/locales/hu.esm.js +90 -89
  130. package/locales/hu.js +90 -89
  131. package/locales/id.esm.js +91 -89
  132. package/locales/id.js +91 -89
  133. package/locales/it.esm.js +90 -89
  134. package/locales/it.js +90 -89
  135. package/locales/ja.esm.js +90 -89
  136. package/locales/ja.js +90 -89
  137. package/locales/nl.esm.js +90 -89
  138. package/locales/nl.js +90 -89
  139. package/locales/pl.esm.js +90 -89
  140. package/locales/pl.js +90 -89
  141. package/locales/pt-BR.esm.js +90 -89
  142. package/locales/pt-BR.js +90 -89
  143. package/locales/pt.esm.js +90 -89
  144. package/locales/pt.js +90 -89
  145. package/locales/ro.esm.js +90 -89
  146. package/locales/ro.js +90 -89
  147. package/locales/ru.esm.js +90 -89
  148. package/locales/ru.js +90 -89
  149. package/locales/sk.esm.js +91 -89
  150. package/locales/sk.js +91 -89
  151. package/locales/sr-Cyrl-RS.esm.js +90 -89
  152. package/locales/sr-Cyrl-RS.js +90 -89
  153. package/locales/sr-Latn-RS.esm.js +90 -89
  154. package/locales/sr-Latn-RS.js +90 -89
  155. package/locales/sv.esm.js +90 -89
  156. package/locales/sv.js +90 -89
  157. package/locales/tr.esm.js +90 -89
  158. package/locales/tr.js +90 -89
  159. package/locales/uk.esm.js +90 -89
  160. package/locales/uk.js +90 -89
  161. package/locales/vi.esm.js +90 -89
  162. package/locales/vi.js +90 -89
  163. package/locales/zh-Hans.esm.js +89 -89
  164. package/locales/zh-Hans.js +89 -89
  165. package/locales/zh-Hant.esm.js +89 -89
  166. package/locales/zh-Hant.js +89 -89
  167. package/package.json +33 -15
  168. package/src/MaterialReactTable.tsx +1 -1
  169. package/src/body/MRT_EditRowModal.tsx +0 -1
  170. package/src/body/MRT_TableBody.tsx +1 -1
  171. package/src/body/MRT_TableBodyCell.tsx +1 -1
  172. package/src/body/MRT_TableBodyCellValue.tsx +1 -1
  173. package/src/body/MRT_TableBodyRow.tsx +1 -1
  174. package/src/body/MRT_TableBodyRowGrabHandle.tsx +1 -1
  175. package/src/body/MRT_TableDetailPanel.tsx +1 -1
  176. package/src/buttons/MRT_ColumnPinningButtons.tsx +0 -1
  177. package/src/buttons/MRT_CopyButton.tsx +1 -1
  178. package/src/buttons/MRT_EditActionButtons.tsx +0 -1
  179. package/src/buttons/MRT_ExpandAllButton.tsx +0 -1
  180. package/src/buttons/MRT_ExpandButton.tsx +1 -1
  181. package/src/buttons/MRT_FullScreenToggleButton.tsx +0 -1
  182. package/src/buttons/MRT_GrabHandleButton.tsx +1 -1
  183. package/src/buttons/MRT_ShowHideColumnsButton.tsx +1 -1
  184. package/src/buttons/MRT_ToggleDensePaddingButton.tsx +0 -1
  185. package/src/buttons/MRT_ToggleFiltersButton.tsx +0 -1
  186. package/src/buttons/MRT_ToggleGlobalFilterButton.tsx +0 -1
  187. package/src/buttons/MRT_ToggleRowActionMenuButton.tsx +1 -1
  188. package/src/column.utils.ts +5 -4
  189. package/src/footer/MRT_TableFooter.tsx +0 -1
  190. package/src/footer/MRT_TableFooterCell.tsx +0 -1
  191. package/src/footer/MRT_TableFooterRow.tsx +0 -1
  192. package/src/head/MRT_TableHead.tsx +0 -1
  193. package/src/head/MRT_TableHeadCell.tsx +1 -1
  194. package/src/head/MRT_TableHeadCellColumnActionsButton.tsx +1 -1
  195. package/src/head/MRT_TableHeadCellFilterContainer.tsx +0 -1
  196. package/src/head/MRT_TableHeadCellFilterLabel.tsx +1 -1
  197. package/src/head/MRT_TableHeadCellGrabHandle.tsx +1 -1
  198. package/src/head/MRT_TableHeadCellResizeHandle.tsx +0 -1
  199. package/src/head/MRT_TableHeadCellSortLabel.tsx +0 -1
  200. package/src/head/MRT_TableHeadRow.tsx +0 -1
  201. package/src/inputs/MRT_EditCellTextField.tsx +1 -1
  202. package/src/inputs/MRT_FilterCheckbox.tsx +0 -1
  203. package/src/inputs/MRT_FilterRangeFields.tsx +0 -1
  204. package/src/inputs/MRT_FilterTextField.tsx +1 -1
  205. package/src/inputs/MRT_GlobalFilterTextField.tsx +1 -1
  206. package/src/inputs/MRT_SelectCheckbox.tsx +1 -1
  207. package/src/menus/MRT_ColumnActionMenu.tsx +2 -1
  208. package/src/menus/MRT_FilterOptionMenu.tsx +1 -1
  209. package/src/menus/MRT_RowActionMenu.tsx +1 -1
  210. package/src/menus/MRT_ShowHideColumnsMenu.tsx +1 -1
  211. package/src/menus/MRT_ShowHideColumnsMenuItems.tsx +1 -7
  212. package/src/table/MRT_Table.tsx +1 -1
  213. package/src/table/MRT_TableContainer.tsx +1 -1
  214. package/src/table/MRT_TablePaper.tsx +0 -1
  215. package/src/table/MRT_TableRoot.tsx +1 -1
  216. package/src/toolbar/MRT_BottomToolbar.tsx +0 -1
  217. package/src/toolbar/MRT_LinearProgressBar.tsx +0 -1
  218. package/src/toolbar/MRT_TablePagination.tsx +1 -1
  219. package/src/toolbar/MRT_ToolbarAlertBanner.tsx +1 -1
  220. package/src/toolbar/MRT_ToolbarDropZone.tsx +1 -1
  221. package/src/toolbar/MRT_ToolbarInternalButtons.tsx +0 -1
  222. package/src/toolbar/MRT_TopToolbar.tsx +0 -1
package/dist/cjs/index.js CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var React = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var react = require('react');
6
7
  var reactTable = require('@tanstack/react-table');
7
8
  var styles = require('@mui/material/styles');
8
9
  var matchSorterUtils = require('@tanstack/match-sorter-utils');
@@ -81,7 +82,6 @@ var Stack = require('@mui/material/Stack');
81
82
 
82
83
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
83
84
 
84
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
85
85
  var ArrowDownwardIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowDownwardIcon);
86
86
  var ArrowRightIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowRightIcon);
87
87
  var CancelIcon__default = /*#__PURE__*/_interopDefaultLegacy(CancelIcon);
@@ -245,8 +245,9 @@ const reorderColumn = (draggedColumn, targetColumn, columnOrder) => {
245
245
  if (draggedColumn.getCanPin()) {
246
246
  draggedColumn.pin(targetColumn.getIsPinned());
247
247
  }
248
- columnOrder.splice(columnOrder.indexOf(targetColumn.id), 0, columnOrder.splice(columnOrder.indexOf(draggedColumn.id), 1)[0]);
249
- return [...columnOrder];
248
+ let newColumnOrder = [...columnOrder];
249
+ newColumnOrder.splice(newColumnOrder.indexOf(targetColumn.id), 0, newColumnOrder.splice(newColumnOrder.indexOf(draggedColumn.id), 1)[0]);
250
+ return newColumnOrder;
250
251
  };
251
252
  const showExpandColumn = (props, grouping) => !!(props.enableExpanding ||
252
253
  (props.enableGrouping && (grouping === undefined || (grouping === null || grouping === void 0 ? void 0 : grouping.length))) ||
@@ -518,16 +519,14 @@ const MRT_ExpandAllButton = ({ table }) => {
518
519
  ? muiExpandAllButtonProps({ table })
519
520
  : muiExpandAllButtonProps;
520
521
  const isAllRowsExpanded = getIsAllRowsExpanded();
521
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: ((_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : isAllRowsExpanded)
522
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: ((_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : isAllRowsExpanded)
522
523
  ? localization.collapseAll
523
- : localization.expandAll },
524
- React__default["default"].createElement("span", null,
525
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": localization.expandAll, disabled: isLoading || (!renderDetailPanel && !getCanSomeRowsExpand()), onClick: () => toggleAllRowsExpanded(!isAllRowsExpanded) }, iconButtonProps, { sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.25rem', width: density === 'compact' ? '1.75rem' : '2.25rem', mt: density !== 'compact' ? '-0.25rem' : undefined }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
524
+ : localization.expandAll }, { children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.expandAll, disabled: isLoading || (!renderDetailPanel && !getCanSomeRowsExpand()), onClick: () => toggleAllRowsExpanded(!isAllRowsExpanded) }, iconButtonProps, { sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.25rem', width: density === 'compact' ? '1.75rem' : '2.25rem', mt: density !== 'compact' ? '-0.25rem' : undefined }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
526
525
  ? iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx(theme)
527
- : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }), (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _b !== void 0 ? _b : (React__default["default"].createElement(KeyboardDoubleArrowDownIcon, { style: {
528
- transform: `rotate(${isAllRowsExpanded ? -180 : getIsSomeRowsExpanded() ? -90 : 0}deg)`,
529
- transition: 'transform 150ms',
530
- } }))))));
526
+ : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }, { children: (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _b !== void 0 ? _b : (jsxRuntime.jsx(KeyboardDoubleArrowDownIcon, { style: {
527
+ transform: `rotate(${isAllRowsExpanded ? -180 : getIsSomeRowsExpanded() ? -90 : 0}deg)`,
528
+ transition: 'transform 150ms',
529
+ } })) })) }) })));
531
530
  };
532
531
 
533
532
  const MRT_ExpandButton = ({ row, table, }) => {
@@ -545,16 +544,14 @@ const MRT_ExpandButton = ({ row, table, }) => {
545
544
  row.toggleExpanded();
546
545
  (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
547
546
  };
548
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, disableHoverListener: !canExpand && !renderDetailPanel, enterDelay: 1000, enterNextDelay: 1000, title: ((_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : isExpanded)
547
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, disableHoverListener: !canExpand && !renderDetailPanel, enterDelay: 1000, enterNextDelay: 1000, title: ((_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : isExpanded)
549
548
  ? localization.collapse
550
- : localization.expand },
551
- React__default["default"].createElement("span", null,
552
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": localization.expand, disabled: !canExpand && !renderDetailPanel }, iconButtonProps, { onClick: handleToggleExpand, sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.25rem', width: density === 'compact' ? '1.75rem' : '2.25rem' }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
549
+ : localization.expand }, { children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.expand, disabled: !canExpand && !renderDetailPanel }, iconButtonProps, { onClick: handleToggleExpand, sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.25rem', width: density === 'compact' ? '1.75rem' : '2.25rem' }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
553
550
  ? iconButtonProps.sx(theme)
554
- : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }), (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _b !== void 0 ? _b : (React__default["default"].createElement(ExpandMoreIcon, { style: {
555
- transform: `rotate(${!canExpand && !renderDetailPanel ? -90 : isExpanded ? -180 : 0}deg)`,
556
- transition: 'transform 150ms',
557
- } }))))));
551
+ : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }, { children: (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _b !== void 0 ? _b : (jsxRuntime.jsx(ExpandMoreIcon, { style: {
552
+ transform: `rotate(${!canExpand && !renderDetailPanel ? -90 : isExpanded ? -180 : 0}deg)`,
553
+ transition: 'transform 150ms',
554
+ } })) })) }) })));
558
555
  };
559
556
 
560
557
  const mrtFilterOptions = (localization) => [
@@ -654,7 +651,7 @@ const MRT_FilterOptionMenu = ({ anchorEl, header, onSelect, setAnchorEl, setFilt
654
651
  const { columnDef } = column !== null && column !== void 0 ? column : {};
655
652
  const currentFilterValue = column === null || column === void 0 ? void 0 : column.getFilterValue();
656
653
  const allowedColumnFilterOptions = (_a = columnDef === null || columnDef === void 0 ? void 0 : columnDef.columnFilterModeOptions) !== null && _a !== void 0 ? _a : columnFilterModeOptions;
657
- const internalFilterOptions = React.useMemo(() => mrtFilterOptions(localization).filter((filterOption) => columnDef
654
+ const internalFilterOptions = react.useMemo(() => mrtFilterOptions(localization).filter((filterOption) => columnDef
658
655
  ? allowedColumnFilterOptions === undefined ||
659
656
  (allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.includes(filterOption.option))
660
657
  : (!globalFilterModeOptions ||
@@ -721,33 +718,31 @@ const MRT_FilterOptionMenu = ({ anchorEl, header, onSelect, setAnchorEl, setFilt
721
718
  onSelect === null || onSelect === void 0 ? void 0 : onSelect();
722
719
  };
723
720
  const filterOption = !!header && columnDef ? columnDef._filterFn : globalFilterFn;
724
- return (React__default["default"].createElement(Menu__default["default"], { anchorEl: anchorEl, anchorOrigin: { vertical: 'center', horizontal: 'right' }, onClose: () => setAnchorEl(null), open: !!anchorEl, MenuListProps: {
721
+ return (jsxRuntime.jsx(Menu__default["default"], Object.assign({ anchorEl: anchorEl, anchorOrigin: { vertical: 'center', horizontal: 'right' }, onClose: () => setAnchorEl(null), open: !!anchorEl, MenuListProps: {
725
722
  dense: density === 'compact',
726
- } }, (_d = (header && column && columnDef
727
- ? (_c = (_b = columnDef.renderColumnFilterModeMenuItems) === null || _b === void 0 ? void 0 : _b.call(columnDef, {
728
- column: column,
729
- internalFilterOptions,
730
- onSelectFilterMode: handleSelectFilterMode,
731
- table,
732
- })) !== null && _c !== void 0 ? _c : renderColumnFilterModeMenuItems === null || renderColumnFilterModeMenuItems === void 0 ? void 0 : renderColumnFilterModeMenuItems({
733
- column: column,
734
- internalFilterOptions,
735
- onSelectFilterMode: handleSelectFilterMode,
736
- table,
737
- })
738
- : renderGlobalFilterModeMenuItems === null || renderGlobalFilterModeMenuItems === void 0 ? void 0 : renderGlobalFilterModeMenuItems({
739
- internalFilterOptions,
740
- onSelectFilterMode: handleSelectFilterMode,
741
- table,
742
- }))) !== null && _d !== void 0 ? _d : internalFilterOptions.map(({ option, label, divider, symbol }, index) => (React__default["default"].createElement(MenuItem__default["default"], { divider: divider, key: index, onClick: () => handleSelectFilterMode(option), selected: option === filterOption, sx: {
743
- alignItems: 'center',
744
- display: 'flex',
745
- gap: '2ch',
746
- my: 0,
747
- py: '6px',
748
- }, value: option },
749
- React__default["default"].createElement(Box__default["default"], { sx: { fontSize: '1.25rem', width: '2ch' } }, symbol),
750
- label)))));
723
+ } }, { children: (_d = (header && column && columnDef
724
+ ? (_c = (_b = columnDef.renderColumnFilterModeMenuItems) === null || _b === void 0 ? void 0 : _b.call(columnDef, {
725
+ column: column,
726
+ internalFilterOptions,
727
+ onSelectFilterMode: handleSelectFilterMode,
728
+ table,
729
+ })) !== null && _c !== void 0 ? _c : renderColumnFilterModeMenuItems === null || renderColumnFilterModeMenuItems === void 0 ? void 0 : renderColumnFilterModeMenuItems({
730
+ column: column,
731
+ internalFilterOptions,
732
+ onSelectFilterMode: handleSelectFilterMode,
733
+ table,
734
+ })
735
+ : renderGlobalFilterModeMenuItems === null || renderGlobalFilterModeMenuItems === void 0 ? void 0 : renderGlobalFilterModeMenuItems({
736
+ internalFilterOptions,
737
+ onSelectFilterMode: handleSelectFilterMode,
738
+ table,
739
+ }))) !== null && _d !== void 0 ? _d : internalFilterOptions.map(({ option, label, divider, symbol }, index) => (jsxRuntime.jsxs(MenuItem__default["default"], Object.assign({ divider: divider, onClick: () => handleSelectFilterMode(option), selected: option === filterOption, sx: {
740
+ alignItems: 'center',
741
+ display: 'flex',
742
+ gap: '2ch',
743
+ my: 0,
744
+ py: '6px',
745
+ }, value: option }, { children: [jsxRuntime.jsx(Box__default["default"], Object.assign({ sx: { fontSize: '1.25rem', width: '2ch' } }, { children: symbol })), label] }), index))) })));
751
746
  };
752
747
 
753
748
  const commonMenuItemStyles = {
@@ -766,7 +761,7 @@ const MRT_ColumnActionMenu = ({ anchorEl, header, setAnchorEl, table, }) => {
766
761
  const { column } = header;
767
762
  const { columnDef } = column;
768
763
  const { columnSizing, columnVisibility, density, showColumnFilters } = getState();
769
- const [filterMenuAnchorEl, setFilterMenuAnchorEl] = React.useState(null);
764
+ const [filterMenuAnchorEl, setFilterMenuAnchorEl] = react.useState(null);
770
765
  const handleClearSort = () => {
771
766
  column.clearSorting();
772
767
  setAnchorEl(null);
@@ -821,121 +816,60 @@ const MRT_ColumnActionMenu = ({ anchorEl, header, setAnchorEl, table, }) => {
821
816
  !isSelectFilter &&
822
817
  (allowedColumnFilterOptions === undefined ||
823
818
  !!(allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.length));
824
- return (React__default["default"].createElement(Menu__default["default"], { anchorEl: anchorEl, open: !!anchorEl, onClose: () => setAnchorEl(null), MenuListProps: {
819
+ return (jsxRuntime.jsxs(Menu__default["default"], Object.assign({ anchorEl: anchorEl, open: !!anchorEl, onClose: () => setAnchorEl(null), MenuListProps: {
825
820
  dense: density === 'compact',
826
- } }, (_d = (_c = (_b = columnDef.renderColumnActionsMenuItems) === null || _b === void 0 ? void 0 : _b.call(columnDef, {
827
- closeMenu: () => setAnchorEl(null),
828
- column,
829
- table,
830
- })) !== null && _c !== void 0 ? _c : renderColumnActionsMenuItems === null || renderColumnActionsMenuItems === void 0 ? void 0 : renderColumnActionsMenuItems({
831
- closeMenu: () => setAnchorEl(null),
832
- column,
833
- table,
834
- })) !== null && _d !== void 0 ? _d : (enableSorting &&
835
- column.getCanSort() &&
836
- [
837
- enableSortingRemoval !== false && (React__default["default"].createElement(MenuItem__default["default"], { disabled: !column.getIsSorted(), key: 0, onClick: handleClearSort, sx: commonMenuItemStyles },
838
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
839
- React__default["default"].createElement(ListItemIcon__default["default"], null,
840
- React__default["default"].createElement(ClearAllIcon, null)),
841
- localization.clearSort))),
842
- React__default["default"].createElement(MenuItem__default["default"], { disabled: column.getIsSorted() === 'asc', key: 1, onClick: handleSortAsc, sx: commonMenuItemStyles },
843
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
844
- React__default["default"].createElement(ListItemIcon__default["default"], null,
845
- React__default["default"].createElement(SortIcon, { style: { transform: 'rotate(180deg) scaleX(-1)' } })), (_e = localization.sortByColumnAsc) === null || _e === void 0 ? void 0 :
846
- _e.replace('{column}', String(columnDef.header)))),
847
- React__default["default"].createElement(MenuItem__default["default"], { divider: enableColumnFilters || enableGrouping || enableHiding, key: 2, disabled: column.getIsSorted() === 'desc', onClick: handleSortDesc, sx: commonMenuItemStyles },
848
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
849
- React__default["default"].createElement(ListItemIcon__default["default"], null,
850
- React__default["default"].createElement(SortIcon, null)), (_f = localization.sortByColumnDesc) === null || _f === void 0 ? void 0 :
851
- _f.replace('{column}', String(columnDef.header)))),
852
- ].filter(Boolean)),
853
- enableColumnFilters &&
854
- column.getCanFilter() &&
855
- [
856
- React__default["default"].createElement(MenuItem__default["default"], { disabled: !column.getFilterValue(), key: 0, onClick: handleClearFilter, sx: commonMenuItemStyles },
857
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
858
- React__default["default"].createElement(ListItemIcon__default["default"], null,
859
- React__default["default"].createElement(FilterListOffIcon, null)),
860
- localization.clearFilter)),
861
- React__default["default"].createElement(MenuItem__default["default"], { disabled: showColumnFilters && !enableColumnFilterModes, divider: enableGrouping || enableHiding, key: 1, onClick: showColumnFilters
862
- ? handleOpenFilterModeMenu
863
- : handleFilterByColumn, sx: commonMenuItemStyles },
864
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
865
- React__default["default"].createElement(ListItemIcon__default["default"], null,
866
- React__default["default"].createElement(FilterListIcon, null)), (_g = localization.filterByColumn) === null || _g === void 0 ? void 0 :
867
- _g.replace('{column}', String(columnDef.header))),
868
- showFilterModeSubMenu && (React__default["default"].createElement(IconButton__default["default"], { onClick: handleOpenFilterModeMenu, onMouseEnter: handleOpenFilterModeMenu, size: "small", sx: { p: 0 } },
869
- React__default["default"].createElement(ArrowRightIcon, null)))),
870
- showFilterModeSubMenu && (React__default["default"].createElement(MRT_FilterOptionMenu, { anchorEl: filterMenuAnchorEl, header: header, key: 2, onSelect: handleFilterByColumn, setAnchorEl: setFilterMenuAnchorEl, table: table })),
871
- ].filter(Boolean),
872
- enableGrouping &&
873
- column.getCanGroup() && [
874
- React__default["default"].createElement(MenuItem__default["default"], { divider: enablePinning, key: 0, onClick: handleGroupByColumn, sx: commonMenuItemStyles },
875
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
876
- React__default["default"].createElement(ListItemIcon__default["default"], null,
877
- React__default["default"].createElement(DynamicFeedIcon, null)), (_h = localization[column.getIsGrouped() ? 'ungroupByColumn' : 'groupByColumn']) === null || _h === void 0 ? void 0 :
878
- _h.replace('{column}', String(columnDef.header)))),
879
- ],
880
- enablePinning &&
881
- column.getCanPin() && [
882
- React__default["default"].createElement(MenuItem__default["default"], { disabled: column.getIsPinned() === 'left' || !column.getCanPin(), key: 0, onClick: () => handlePinColumn('left'), sx: commonMenuItemStyles },
883
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
884
- React__default["default"].createElement(ListItemIcon__default["default"], null,
885
- React__default["default"].createElement(PushPinIcon, { style: { transform: 'rotate(90deg)' } })),
886
- localization.pinToLeft)),
887
- React__default["default"].createElement(MenuItem__default["default"], { disabled: column.getIsPinned() === 'right' || !column.getCanPin(), key: 1, onClick: () => handlePinColumn('right'), sx: commonMenuItemStyles },
888
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
889
- React__default["default"].createElement(ListItemIcon__default["default"], null,
890
- React__default["default"].createElement(PushPinIcon, { style: { transform: 'rotate(-90deg)' } })),
891
- localization.pinToRight)),
892
- React__default["default"].createElement(MenuItem__default["default"], { disabled: !column.getIsPinned(), divider: enableHiding, key: 2, onClick: () => handlePinColumn(false), sx: commonMenuItemStyles },
893
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
894
- React__default["default"].createElement(ListItemIcon__default["default"], null,
895
- React__default["default"].createElement(PushPinIcon, null)),
896
- localization.unpin)),
897
- ],
898
- enableColumnResizing &&
899
- column.getCanResize() && [
900
- React__default["default"].createElement(MenuItem__default["default"], { disabled: !columnSizing[column.id], key: 0, onClick: handleResetColumnSize, sx: commonMenuItemStyles },
901
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
902
- React__default["default"].createElement(ListItemIcon__default["default"], null,
903
- React__default["default"].createElement(RestartAltIcon, null)),
904
- localization.resetColumnSize)),
905
- ],
906
- enableHiding && [
907
- React__default["default"].createElement(MenuItem__default["default"], { disabled: !column.getCanHide(), key: 0, onClick: handleHideColumn, sx: commonMenuItemStyles },
908
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
909
- React__default["default"].createElement(ListItemIcon__default["default"], null,
910
- React__default["default"].createElement(VisibilityOffIcon, null)), (_j = localization.hideColumn) === null || _j === void 0 ? void 0 :
911
- _j.replace('{column}', String(columnDef.header)))),
912
- React__default["default"].createElement(MenuItem__default["default"], { disabled: !Object.values(columnVisibility).filter((visible) => !visible)
913
- .length, key: 1, onClick: handleShowAllColumns, sx: commonMenuItemStyles },
914
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
915
- React__default["default"].createElement(ListItemIcon__default["default"], null,
916
- React__default["default"].createElement(ViewColumnIcon, null)), (_k = localization.showAllColumns) === null || _k === void 0 ? void 0 :
917
- _k.replace('{column}', String(columnDef.header)))),
918
- ]));
821
+ } }, { children: [(_d = (_c = (_b = columnDef.renderColumnActionsMenuItems) === null || _b === void 0 ? void 0 : _b.call(columnDef, {
822
+ closeMenu: () => setAnchorEl(null),
823
+ column,
824
+ table,
825
+ })) !== null && _c !== void 0 ? _c : renderColumnActionsMenuItems === null || renderColumnActionsMenuItems === void 0 ? void 0 : renderColumnActionsMenuItems({
826
+ closeMenu: () => setAnchorEl(null),
827
+ column,
828
+ table,
829
+ })) !== null && _d !== void 0 ? _d : (enableSorting &&
830
+ column.getCanSort() &&
831
+ [
832
+ enableSortingRemoval !== false && (jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: !column.getIsSorted(), onClick: handleClearSort, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(ClearAllIcon, {}) }), localization.clearSort] })) }), 0)),
833
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: column.getIsSorted() === 'asc', onClick: handleSortAsc, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(SortIcon, { style: { transform: 'rotate(180deg) scaleX(-1)' } }) }), (_e = localization.sortByColumnAsc) === null || _e === void 0 ? void 0 : _e.replace('{column}', String(columnDef.header))] })) }), 1),
834
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ divider: enableColumnFilters || enableGrouping || enableHiding, disabled: column.getIsSorted() === 'desc', onClick: handleSortDesc, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(SortIcon, {}) }), (_f = localization.sortByColumnDesc) === null || _f === void 0 ? void 0 : _f.replace('{column}', String(columnDef.header))] })) }), 2),
835
+ ].filter(Boolean)), enableColumnFilters &&
836
+ column.getCanFilter() &&
837
+ [
838
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: !column.getFilterValue(), onClick: handleClearFilter, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(FilterListOffIcon, {}) }), localization.clearFilter] })) }), 0),
839
+ jsxRuntime.jsxs(MenuItem__default["default"], Object.assign({ disabled: showColumnFilters && !enableColumnFilterModes, divider: enableGrouping || enableHiding, onClick: showColumnFilters
840
+ ? handleOpenFilterModeMenu
841
+ : handleFilterByColumn, sx: commonMenuItemStyles }, { children: [jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(FilterListIcon, {}) }), (_g = localization.filterByColumn) === null || _g === void 0 ? void 0 : _g.replace('{column}', String(columnDef.header))] })), showFilterModeSubMenu && (jsxRuntime.jsx(IconButton__default["default"], Object.assign({ onClick: handleOpenFilterModeMenu, onMouseEnter: handleOpenFilterModeMenu, size: "small", sx: { p: 0 } }, { children: jsxRuntime.jsx(ArrowRightIcon, {}) })))] }), 1),
842
+ showFilterModeSubMenu && (jsxRuntime.jsx(MRT_FilterOptionMenu, { anchorEl: filterMenuAnchorEl, header: header, onSelect: handleFilterByColumn, setAnchorEl: setFilterMenuAnchorEl, table: table }, 2)),
843
+ ].filter(Boolean), enableGrouping &&
844
+ column.getCanGroup() && [
845
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ divider: enablePinning, onClick: handleGroupByColumn, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(DynamicFeedIcon, {}) }), (_h = localization[column.getIsGrouped() ? 'ungroupByColumn' : 'groupByColumn']) === null || _h === void 0 ? void 0 : _h.replace('{column}', String(columnDef.header))] })) }), 0),
846
+ ], enablePinning &&
847
+ column.getCanPin() && [
848
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: column.getIsPinned() === 'left' || !column.getCanPin(), onClick: () => handlePinColumn('left'), sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(PushPinIcon, { style: { transform: 'rotate(90deg)' } }) }), localization.pinToLeft] })) }), 0),
849
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: column.getIsPinned() === 'right' || !column.getCanPin(), onClick: () => handlePinColumn('right'), sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(PushPinIcon, { style: { transform: 'rotate(-90deg)' } }) }), localization.pinToRight] })) }), 1),
850
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: !column.getIsPinned(), divider: enableHiding, onClick: () => handlePinColumn(false), sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(PushPinIcon, {}) }), localization.unpin] })) }), 2),
851
+ ], enableColumnResizing &&
852
+ column.getCanResize() && [
853
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: !columnSizing[column.id], onClick: handleResetColumnSize, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(RestartAltIcon, {}) }), localization.resetColumnSize] })) }), 0),
854
+ ], enableHiding && [
855
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: !column.getCanHide(), onClick: handleHideColumn, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(VisibilityOffIcon, {}) }), (_j = localization.hideColumn) === null || _j === void 0 ? void 0 : _j.replace('{column}', String(columnDef.header))] })) }), 0),
856
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: !Object.values(columnVisibility).filter((visible) => !visible)
857
+ .length, onClick: handleShowAllColumns, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(ViewColumnIcon, {}) }), (_k = localization.showAllColumns) === null || _k === void 0 ? void 0 : _k.replace('{column}', String(columnDef.header))] })) }), 1),
858
+ ]] })));
919
859
  };
920
860
 
921
861
  const MRT_RowActionMenu = ({ anchorEl, handleEdit, row, setAnchorEl, table, }) => {
922
862
  const { getState, options: { icons: { EditIcon }, enableEditing, localization, renderRowActionMenuItems, }, } = table;
923
863
  const { density } = getState();
924
- return (React__default["default"].createElement(Menu__default["default"], { anchorEl: anchorEl, open: !!anchorEl, onClick: (event) => event.stopPropagation(), onClose: () => setAnchorEl(null), MenuListProps: {
864
+ return (jsxRuntime.jsxs(Menu__default["default"], Object.assign({ anchorEl: anchorEl, open: !!anchorEl, onClick: (event) => event.stopPropagation(), onClose: () => setAnchorEl(null), MenuListProps: {
925
865
  dense: density === 'compact',
926
- } },
927
- enableEditing instanceof Function
928
- ? enableEditing(row)
929
- : enableEditing && (React__default["default"].createElement(MenuItem__default["default"], { onClick: handleEdit, sx: commonMenuItemStyles },
930
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
931
- React__default["default"].createElement(ListItemIcon__default["default"], null,
932
- React__default["default"].createElement(EditIcon, null)),
933
- localization.edit))), renderRowActionMenuItems === null || renderRowActionMenuItems === void 0 ? void 0 :
934
- renderRowActionMenuItems({
935
- row,
936
- table,
937
- closeMenu: () => setAnchorEl(null),
938
- })));
866
+ } }, { children: [enableEditing instanceof Function
867
+ ? enableEditing(row)
868
+ : enableEditing && (jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ onClick: handleEdit, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(EditIcon, {}) }), localization.edit] })) }))), renderRowActionMenuItems === null || renderRowActionMenuItems === void 0 ? void 0 : renderRowActionMenuItems({
869
+ row,
870
+ table,
871
+ closeMenu: () => setAnchorEl(null),
872
+ })] })));
939
873
  };
940
874
 
941
875
  const MRT_EditActionButtons = ({ row, table, variant = 'icon', }) => {
@@ -962,15 +896,7 @@ const MRT_EditActionButtons = ({ row, table, variant = 'icon', }) => {
962
896
  values: (_b = editingRow === null || editingRow === void 0 ? void 0 : editingRow._valuesCache) !== null && _b !== void 0 ? _b : Object.assign({}, row.original),
963
897
  });
964
898
  };
965
- return (React__default["default"].createElement(Box__default["default"], { onClick: (e) => e.stopPropagation(), sx: { display: 'flex', gap: '0.75rem' } }, variant === 'icon' ? (React__default["default"].createElement(React__default["default"].Fragment, null,
966
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: localization.cancel },
967
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.cancel, onClick: handleCancel },
968
- React__default["default"].createElement(CancelIcon, null))),
969
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: localization.save },
970
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.save, color: "info", onClick: handleSave },
971
- React__default["default"].createElement(SaveIcon, null))))) : (React__default["default"].createElement(React__default["default"].Fragment, null,
972
- React__default["default"].createElement(Button__default["default"], { onClick: handleCancel }, localization.cancel),
973
- React__default["default"].createElement(Button__default["default"], { onClick: handleSave, variant: "contained" }, localization.save)))));
899
+ return (jsxRuntime.jsx(Box__default["default"], Object.assign({ onClick: (e) => e.stopPropagation(), sx: { display: 'flex', gap: '0.75rem' } }, { children: variant === 'icon' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: localization.cancel }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.cancel, onClick: handleCancel }, { children: jsxRuntime.jsx(CancelIcon, {}) })) })), jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: localization.save }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.save, color: "info", onClick: handleSave }, { children: jsxRuntime.jsx(SaveIcon, {}) })) }))] })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Button__default["default"], Object.assign({ onClick: handleCancel }, { children: localization.cancel })), jsxRuntime.jsx(Button__default["default"], Object.assign({ onClick: handleSave, variant: "contained" }, { children: localization.save }))] })) })));
974
900
  };
975
901
 
976
902
  const commonIconButtonStyles = {
@@ -986,7 +912,7 @@ const commonIconButtonStyles = {
986
912
  const MRT_ToggleRowActionMenuButton = ({ cell, row, table, }) => {
987
913
  const { getState, options: { editingMode, enableEditing, icons: { EditIcon, MoreHorizIcon }, localization, renderRowActionMenuItems, renderRowActions, }, setEditingRow, } = table;
988
914
  const { editingRow } = getState();
989
- const [anchorEl, setAnchorEl] = React.useState(null);
915
+ const [anchorEl, setAnchorEl] = react.useState(null);
990
916
  const handleOpenRowActionMenu = (event) => {
991
917
  event.stopPropagation();
992
918
  event.preventDefault();
@@ -997,16 +923,10 @@ const MRT_ToggleRowActionMenuButton = ({ cell, row, table, }) => {
997
923
  setEditingRow(Object.assign({}, row));
998
924
  setAnchorEl(null);
999
925
  };
1000
- return (React__default["default"].createElement(React__default["default"].Fragment, null, renderRowActions ? (renderRowActions({ cell, row, table })) : row.id === (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) && editingMode === 'row' ? (React__default["default"].createElement(MRT_EditActionButtons, { row: row, table: table })) : !renderRowActionMenuItems &&
1001
- (enableEditing instanceof Function
1002
- ? enableEditing(row)
1003
- : enableEditing) ? (React__default["default"].createElement(Tooltip__default["default"], { placement: "right", arrow: true, title: localization.edit },
1004
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.edit, sx: commonIconButtonStyles, onClick: handleStartEditMode },
1005
- React__default["default"].createElement(EditIcon, null)))) : renderRowActionMenuItems ? (React__default["default"].createElement(React__default["default"].Fragment, null,
1006
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.rowActions },
1007
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.rowActions, onClick: handleOpenRowActionMenu, size: "small", sx: commonIconButtonStyles },
1008
- React__default["default"].createElement(MoreHorizIcon, null))),
1009
- React__default["default"].createElement(MRT_RowActionMenu, { anchorEl: anchorEl, handleEdit: handleStartEditMode, row: row, setAnchorEl: setAnchorEl, table: table }))) : null));
926
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: renderRowActions ? (renderRowActions({ cell, row, table })) : row.id === (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) && editingMode === 'row' ? (jsxRuntime.jsx(MRT_EditActionButtons, { row: row, table: table })) : !renderRowActionMenuItems &&
927
+ (enableEditing instanceof Function
928
+ ? enableEditing(row)
929
+ : enableEditing) ? (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ placement: "right", arrow: true, title: localization.edit }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.edit, sx: commonIconButtonStyles, onClick: handleStartEditMode }, { children: jsxRuntime.jsx(EditIcon, {}) })) }))) : renderRowActionMenuItems ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.rowActions }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.rowActions, onClick: handleOpenRowActionMenu, size: "small", sx: commonIconButtonStyles }, { children: jsxRuntime.jsx(MoreHorizIcon, {}) })) })), jsxRuntime.jsx(MRT_RowActionMenu, { anchorEl: anchorEl, handleEdit: handleStartEditMode, row: row, setAnchorEl: setAnchorEl, table: table })] })) : null }));
1010
930
  };
1011
931
 
1012
932
  const MRT_SelectCheckbox = ({ row, selectAll, table }) => {
@@ -1040,11 +960,11 @@ const MRT_SelectCheckbox = ({ row, selectAll, table }) => {
1040
960
  }, sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.5rem', width: density === 'compact' ? '1.75rem' : '2.5rem', m: density !== 'compact' ? '-0.4rem' : undefined }, ((checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx) instanceof Function
1041
961
  ? checkboxProps.sx(theme)
1042
962
  : checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx))), title: undefined });
1043
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _a !== void 0 ? _a : (selectAll
963
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _a !== void 0 ? _a : (selectAll
1044
964
  ? localization.toggleSelectAll
1045
- : localization.toggleSelectRow) }, enableMultiRowSelection === false ? (React__default["default"].createElement(Radio__default["default"], Object.assign({}, commonProps))) : (React__default["default"].createElement(Checkbox__default["default"], Object.assign({ indeterminate: selectAll
1046
- ? table.getIsSomeRowsSelected() && !allRowsSelected
1047
- : row === null || row === void 0 ? void 0 : row.getIsSomeSelected() }, commonProps)))));
965
+ : localization.toggleSelectRow) }, { children: enableMultiRowSelection === false ? (jsxRuntime.jsx(Radio__default["default"], Object.assign({}, commonProps))) : (jsxRuntime.jsx(Checkbox__default["default"], Object.assign({ indeterminate: selectAll
966
+ ? table.getIsSomeRowsSelected() && !allRowsSelected
967
+ : row === null || row === void 0 ? void 0 : row.getIsSomeSelected() }, commonProps))) })));
1048
968
  };
1049
969
 
1050
970
  const MRT_GlobalFilterTextField = ({ table, }) => {
@@ -1054,10 +974,10 @@ const MRT_GlobalFilterTextField = ({ table, }) => {
1054
974
  const textFieldProps = muiSearchTextFieldProps instanceof Function
1055
975
  ? muiSearchTextFieldProps({ table })
1056
976
  : muiSearchTextFieldProps;
1057
- const isMounted = React.useRef(false);
1058
- const [anchorEl, setAnchorEl] = React.useState(null);
1059
- const [searchValue, setSearchValue] = React.useState(globalFilter !== null && globalFilter !== void 0 ? globalFilter : '');
1060
- const handleChangeDebounced = React.useCallback(utils.debounce((event) => {
977
+ const isMounted = react.useRef(false);
978
+ const [anchorEl, setAnchorEl] = react.useState(null);
979
+ const [searchValue, setSearchValue] = react.useState(globalFilter !== null && globalFilter !== void 0 ? globalFilter : '');
980
+ const handleChangeDebounced = react.useCallback(utils.debounce((event) => {
1061
981
  var _a;
1062
982
  setGlobalFilter((_a = event.target.value) !== null && _a !== void 0 ? _a : undefined);
1063
983
  }, manualFiltering ? 500 : 250), []);
@@ -1072,7 +992,7 @@ const MRT_GlobalFilterTextField = ({ table, }) => {
1072
992
  setSearchValue('');
1073
993
  setGlobalFilter(undefined);
1074
994
  };
1075
- React.useEffect(() => {
995
+ react.useEffect(() => {
1076
996
  if (isMounted.current) {
1077
997
  if (globalFilter === undefined) {
1078
998
  handleClear();
@@ -1083,24 +1003,15 @@ const MRT_GlobalFilterTextField = ({ table, }) => {
1083
1003
  }
1084
1004
  isMounted.current = true;
1085
1005
  }, [globalFilter]);
1086
- return (React__default["default"].createElement(Collapse__default["default"], { in: showGlobalFilter, orientation: "horizontal", unmountOnExit: true, mountOnEnter: true },
1087
- React__default["default"].createElement(TextField__default["default"], Object.assign({ placeholder: localization.search, onChange: handleChange, value: searchValue !== null && searchValue !== void 0 ? searchValue : '', variant: "standard", InputProps: {
1088
- startAdornment: enableGlobalFilterModes ? (React__default["default"].createElement(InputAdornment__default["default"], { position: "start" },
1089
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: localization.changeSearchMode },
1090
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.changeSearchMode, onClick: handleGlobalFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' } },
1091
- React__default["default"].createElement(SearchIcon, null))))) : (React__default["default"].createElement(SearchIcon, { style: { marginRight: '4px' } })),
1092
- endAdornment: (React__default["default"].createElement(InputAdornment__default["default"], { position: "end" },
1093
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: (_a = localization.clearSearch) !== null && _a !== void 0 ? _a : '' },
1094
- React__default["default"].createElement("span", null,
1095
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.clearSearch, disabled: !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length), onClick: handleClear, size: "small" },
1096
- React__default["default"].createElement(CloseIcon, null)))))),
1097
- } }, textFieldProps, { inputRef: (inputRef) => {
1098
- searchInputRef.current = inputRef;
1099
- if (textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.inputRef) {
1100
- textFieldProps.inputRef = inputRef;
1101
- }
1102
- } })),
1103
- React__default["default"].createElement(MRT_FilterOptionMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table, onSelect: handleClear })));
1006
+ return (jsxRuntime.jsxs(Collapse__default["default"], Object.assign({ in: showGlobalFilter, orientation: "horizontal", unmountOnExit: true, mountOnEnter: true }, { children: [jsxRuntime.jsx(TextField__default["default"], Object.assign({ placeholder: localization.search, onChange: handleChange, value: searchValue !== null && searchValue !== void 0 ? searchValue : '', variant: "standard", InputProps: {
1007
+ startAdornment: enableGlobalFilterModes ? (jsxRuntime.jsx(InputAdornment__default["default"], Object.assign({ position: "start" }, { children: jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: localization.changeSearchMode }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.changeSearchMode, onClick: handleGlobalFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' } }, { children: jsxRuntime.jsx(SearchIcon, {}) })) })) }))) : (jsxRuntime.jsx(SearchIcon, { style: { marginRight: '4px' } })),
1008
+ endAdornment: (jsxRuntime.jsx(InputAdornment__default["default"], Object.assign({ position: "end" }, { children: jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: (_a = localization.clearSearch) !== null && _a !== void 0 ? _a : '' }, { children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.clearSearch, disabled: !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length), onClick: handleClear, size: "small" }, { children: jsxRuntime.jsx(CloseIcon, {}) })) }) })) }))),
1009
+ } }, textFieldProps, { inputRef: (inputRef) => {
1010
+ searchInputRef.current = inputRef;
1011
+ if (textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.inputRef) {
1012
+ textFieldProps.inputRef = inputRef;
1013
+ }
1014
+ } })), jsxRuntime.jsx(MRT_FilterOptionMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table, onSelect: handleClear })] })));
1104
1015
  };
1105
1016
 
1106
1017
  const MRT_LinearProgressBar = ({ isTopToolbar, table, }) => {
@@ -1109,13 +1020,12 @@ const MRT_LinearProgressBar = ({ isTopToolbar, table, }) => {
1109
1020
  const linearProgressProps = muiLinearProgressProps instanceof Function
1110
1021
  ? muiLinearProgressProps({ isTopToolbar, table })
1111
1022
  : muiLinearProgressProps;
1112
- return (React__default["default"].createElement(Collapse__default["default"], { in: isLoading || showProgressBars, mountOnEnter: true, unmountOnExit: true, sx: {
1023
+ return (jsxRuntime.jsx(Collapse__default["default"], Object.assign({ in: isLoading || showProgressBars, mountOnEnter: true, unmountOnExit: true, sx: {
1113
1024
  bottom: isTopToolbar ? 0 : undefined,
1114
1025
  position: 'absolute',
1115
1026
  top: !isTopToolbar ? 0 : undefined,
1116
1027
  width: '100%',
1117
- } },
1118
- React__default["default"].createElement(LinearProgress__default["default"], Object.assign({ "aria-label": "Loading", "aria-busy": "true", sx: { position: 'relative' } }, linearProgressProps))));
1028
+ } }, { children: jsxRuntime.jsx(LinearProgress__default["default"], Object.assign({ "aria-label": "Loading", "aria-busy": "true", sx: { position: 'relative' } }, linearProgressProps)) })));
1119
1029
  };
1120
1030
 
1121
1031
  const MRT_TablePagination = ({ table, position = 'bottom', }) => {
@@ -1129,7 +1039,7 @@ const MRT_TablePagination = ({ table, position = 'bottom', }) => {
1129
1039
  const handleChangeRowsPerPage = (event) => {
1130
1040
  setPageSize(+event.target.value);
1131
1041
  };
1132
- return (React__default["default"].createElement(TablePagination__default["default"], Object.assign({ component: "div", count: totalRowCount, getItemAriaLabel: (type) => type === 'first'
1042
+ return (jsxRuntime.jsx(TablePagination__default["default"], Object.assign({ component: "div", count: totalRowCount, getItemAriaLabel: (type) => type === 'first'
1133
1043
  ? localization.goToFirstPage
1134
1044
  : type === 'last'
1135
1045
  ? localization.goToLastPage
@@ -1170,27 +1080,14 @@ const MRT_ToolbarAlertBanner = ({ stackAlertBanner, table, }) => {
1170
1080
  const selectMessage = getSelectedRowModel().rows.length > 0
1171
1081
  ? (_b = (_a = localization.selectedCountOfRowCountRowsSelected) === null || _a === void 0 ? void 0 : _a.replace('{selectedCount}', getSelectedRowModel().rows.length.toString())) === null || _b === void 0 ? void 0 : _b.replace('{rowCount}', (rowCount !== null && rowCount !== void 0 ? rowCount : getPrePaginationRowModel().rows.length).toString())
1172
1082
  : null;
1173
- const groupedByMessage = grouping.length > 0 ? (React__default["default"].createElement("span", null,
1174
- localization.groupedBy,
1175
- ' ',
1176
- grouping.map((columnId, index) => (React__default["default"].createElement(React.Fragment, { key: `${index}-${columnId}` },
1177
- index > 0 ? localization.thenBy : '',
1178
- React__default["default"].createElement(Chip__default["default"], Object.assign({ label: table.getColumn(columnId).columnDef.header, onDelete: () => table.getColumn(columnId).toggleGrouping() }, chipProps))))))) : null;
1179
- return (React__default["default"].createElement(Collapse__default["default"], { in: showAlertBanner || !!selectMessage || !!groupedByMessage, timeout: stackAlertBanner ? 200 : 0 },
1180
- React__default["default"].createElement(Alert__default["default"], Object.assign({ color: "info", icon: false }, alertProps, { sx: (theme) => (Object.assign({ borderRadius: 0, fontSize: '1rem', left: 0, p: 0, position: 'relative', mb: stackAlertBanner
1083
+ const groupedByMessage = grouping.length > 0 ? (jsxRuntime.jsxs("span", { children: [localization.groupedBy, ' ', grouping.map((columnId, index) => (jsxRuntime.jsxs(react.Fragment, { children: [index > 0 ? localization.thenBy : '', jsxRuntime.jsx(Chip__default["default"], Object.assign({ label: table.getColumn(columnId).columnDef.header, onDelete: () => table.getColumn(columnId).toggleGrouping() }, chipProps))] }, `${index}-${columnId}`)))] })) : null;
1084
+ return (jsxRuntime.jsx(Collapse__default["default"], Object.assign({ in: showAlertBanner || !!selectMessage || !!groupedByMessage, timeout: stackAlertBanner ? 200 : 0 }, { children: jsxRuntime.jsxs(Alert__default["default"], Object.assign({ color: "info", icon: false }, alertProps, { sx: (theme) => (Object.assign({ borderRadius: 0, fontSize: '1rem', left: 0, p: 0, position: 'relative', mb: stackAlertBanner
1181
1085
  ? 0
1182
1086
  : positionToolbarAlertBanner === 'bottom'
1183
1087
  ? '-1rem'
1184
1088
  : undefined, right: 0, top: 0, width: '100%', zIndex: 2 }, ((alertProps === null || alertProps === void 0 ? void 0 : alertProps.sx) instanceof Function
1185
1089
  ? alertProps.sx(theme)
1186
- : alertProps === null || alertProps === void 0 ? void 0 : alertProps.sx))) }),
1187
- (alertProps === null || alertProps === void 0 ? void 0 : alertProps.title) && React__default["default"].createElement(AlertTitle__default["default"], null, alertProps.title),
1188
- React__default["default"].createElement(Box__default["default"], { sx: { p: '0.5rem 1rem' } }, alertProps === null || alertProps === void 0 ? void 0 :
1189
- alertProps.children,
1190
- (alertProps === null || alertProps === void 0 ? void 0 : alertProps.children) && (selectMessage || groupedByMessage) && (React__default["default"].createElement("br", null)),
1191
- selectMessage,
1192
- selectMessage && groupedByMessage && React__default["default"].createElement("br", null),
1193
- groupedByMessage))));
1090
+ : alertProps === null || alertProps === void 0 ? void 0 : alertProps.sx))) }, { children: [(alertProps === null || alertProps === void 0 ? void 0 : alertProps.title) && jsxRuntime.jsx(AlertTitle__default["default"], { children: alertProps.title }), jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: { p: '0.5rem 1rem' } }, { children: [alertProps === null || alertProps === void 0 ? void 0 : alertProps.children, (alertProps === null || alertProps === void 0 ? void 0 : alertProps.children) && (selectMessage || groupedByMessage) && (jsxRuntime.jsx("br", {})), selectMessage, selectMessage && groupedByMessage && jsxRuntime.jsx("br", {}), groupedByMessage] }))] })) })));
1194
1091
  };
1195
1092
 
1196
1093
  const MRT_FullScreenToggleButton = (_a) => {
@@ -1201,8 +1098,7 @@ const MRT_FullScreenToggleButton = (_a) => {
1201
1098
  const handleToggleFullScreen = () => {
1202
1099
  setIsFullScreen(!isFullScreen);
1203
1100
  };
1204
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleFullScreen },
1205
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleFullScreen }, rest, { title: undefined }), isFullScreen ? React__default["default"].createElement(FullscreenExitIcon, null) : React__default["default"].createElement(FullscreenIcon, null))));
1101
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleFullScreen }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleFullScreen }, rest, { title: undefined }, { children: isFullScreen ? jsxRuntime.jsx(FullscreenExitIcon, {}) : jsxRuntime.jsx(FullscreenIcon, {}) })) })));
1206
1102
  };
1207
1103
 
1208
1104
  const MRT_ColumnPinningButtons = ({ column, table, }) => {
@@ -1210,26 +1106,17 @@ const MRT_ColumnPinningButtons = ({ column, table, }) => {
1210
1106
  const handlePinColumn = (pinDirection) => {
1211
1107
  column.pin(pinDirection);
1212
1108
  };
1213
- return (React__default["default"].createElement(Box__default["default"], { sx: { minWidth: '70px', textAlign: 'center' } }, column.getIsPinned() ? (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: localization.unpin },
1214
- React__default["default"].createElement(IconButton__default["default"], { onClick: () => handlePinColumn(false), size: "small" },
1215
- React__default["default"].createElement(PushPinIcon, null)))) : (React__default["default"].createElement(React__default["default"].Fragment, null,
1216
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: localization.pinToLeft },
1217
- React__default["default"].createElement(IconButton__default["default"], { onClick: () => handlePinColumn('left'), size: "small" },
1218
- React__default["default"].createElement(PushPinIcon, { style: {
1219
- transform: 'rotate(90deg)',
1220
- } }))),
1221
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: localization.pinToRight },
1222
- React__default["default"].createElement(IconButton__default["default"], { onClick: () => handlePinColumn('right'), size: "small" },
1223
- React__default["default"].createElement(PushPinIcon, { style: {
1224
- transform: 'rotate(-90deg)',
1225
- } })))))));
1109
+ return (jsxRuntime.jsx(Box__default["default"], Object.assign({ sx: { minWidth: '70px', textAlign: 'center' } }, { children: column.getIsPinned() ? (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: localization.unpin }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ onClick: () => handlePinColumn(false), size: "small" }, { children: jsxRuntime.jsx(PushPinIcon, {}) })) }))) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: localization.pinToLeft }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ onClick: () => handlePinColumn('left'), size: "small" }, { children: jsxRuntime.jsx(PushPinIcon, { style: {
1110
+ transform: 'rotate(90deg)',
1111
+ } }) })) })), jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: localization.pinToRight }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ onClick: () => handlePinColumn('right'), size: "small" }, { children: jsxRuntime.jsx(PushPinIcon, { style: {
1112
+ transform: 'rotate(-90deg)',
1113
+ } }) })) }))] })) })));
1226
1114
  };
1227
1115
 
1228
1116
  const MRT_GrabHandleButton = ({ iconButtonProps, onDragEnd, onDragStart, table, }) => {
1229
1117
  var _a;
1230
1118
  const { options: { icons: { DragHandleIcon }, localization, }, } = table;
1231
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : localization.move },
1232
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ disableRipple: true, draggable: "true", size: "small" }, iconButtonProps, { onClick: (e) => {
1119
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : localization.move }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ disableRipple: true, draggable: "true", size: "small" }, iconButtonProps, { onClick: (e) => {
1233
1120
  var _a;
1234
1121
  e.stopPropagation();
1235
1122
  (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, e);
@@ -1240,8 +1127,7 @@ const MRT_GrabHandleButton = ({ iconButtonProps, onDragEnd, onDragStart, table,
1240
1127
  cursor: 'grabbing',
1241
1128
  } }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
1242
1129
  ? iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx(theme)
1243
- : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }),
1244
- React__default["default"].createElement(DragHandleIcon, null))));
1130
+ : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }, { children: jsxRuntime.jsx(DragHandleIcon, {}) })) })));
1245
1131
  };
1246
1132
 
1247
1133
  const MRT_ShowHideColumnsMenuItems = ({ allColumns, hoveredColumn, setHoveredColumn, column, table, }) => {
@@ -1264,8 +1150,8 @@ const MRT_ShowHideColumnsMenuItems = ({ allColumns, hoveredColumn, setHoveredCol
1264
1150
  column.toggleVisibility();
1265
1151
  }
1266
1152
  };
1267
- const menuItemRef = React.useRef(null);
1268
- const [isDragging, setIsDragging] = React.useState(false);
1153
+ const menuItemRef = react.useRef(null);
1154
+ const [isDragging, setIsDragging] = react.useState(false);
1269
1155
  const handleDragStart = (e) => {
1270
1156
  setIsDragging(true);
1271
1157
  e.dataTransfer.setDragImage(menuItemRef.current, 0, 0);
@@ -1282,42 +1168,35 @@ const MRT_ShowHideColumnsMenuItems = ({ allColumns, hoveredColumn, setHoveredCol
1282
1168
  setHoveredColumn(column);
1283
1169
  }
1284
1170
  };
1285
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
1286
- React__default["default"].createElement(MenuItem__default["default"], { disableRipple: true, ref: menuItemRef, onDragEnter: handleDragEnter, sx: (theme) => ({
1287
- alignItems: 'center',
1288
- justifyContent: 'flex-start',
1289
- my: 0,
1290
- opacity: isDragging ? 0.5 : 1,
1291
- outlineOffset: '-2px',
1292
- outline: isDragging
1293
- ? `2px dashed ${theme.palette.divider}`
1294
- : (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id
1295
- ? `2px dashed ${theme.palette.primary.main}`
1296
- : 'none',
1297
- pl: `${(column.depth + 0.5) * 2}rem`,
1298
- py: '6px',
1299
- }) },
1300
- React__default["default"].createElement(Box__default["default"], { sx: {
1301
- display: 'flex',
1302
- flexWrap: 'nowrap',
1303
- gap: '8px',
1304
- } },
1305
- columnDefType !== 'group' &&
1306
- enableColumnOrdering &&
1307
- !allColumns.some((col) => col.columnDef.columnDefType === 'group') &&
1308
- (columnDef.enableColumnOrdering !== false ? (React__default["default"].createElement(MRT_GrabHandleButton, { onDragEnd: handleDragEnd, onDragStart: handleDragStart, table: table })) : (React__default["default"].createElement(Box__default["default"], { sx: { width: '28px' } }))),
1309
- enablePinning &&
1310
- (column.getCanPin() ? (React__default["default"].createElement(MRT_ColumnPinningButtons, { column: column, table: table })) : (React__default["default"].createElement(Box__default["default"], { sx: { width: '70px' } }))),
1311
- enableHiding ? (React__default["default"].createElement(FormControlLabel__default["default"], { componentsProps: {
1312
- typography: {
1313
- sx: {
1314
- mb: 0,
1315
- opacity: columnDefType !== 'display' ? 1 : 0.5,
1316
- },
1317
- },
1318
- }, checked: switchChecked, control: React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.toggleVisibility },
1319
- React__default["default"].createElement(Switch__default["default"], null)), disabled: !column.getCanHide(), label: columnDef.header, onChange: () => handleToggleColumnHidden(column) })) : (React__default["default"].createElement(Typography__default["default"], { sx: { alignSelf: 'center' } }, columnDef.header)))), (_a = column.columns) === null || _a === void 0 ? void 0 :
1320
- _a.map((c, i) => (React__default["default"].createElement(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: c, hoveredColumn: hoveredColumn, key: `${i}-${c.id}`, setHoveredColumn: setHoveredColumn, table: table })))));
1171
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disableRipple: true, ref: menuItemRef, onDragEnter: handleDragEnter, sx: (theme) => ({
1172
+ alignItems: 'center',
1173
+ justifyContent: 'flex-start',
1174
+ my: 0,
1175
+ opacity: isDragging ? 0.5 : 1,
1176
+ outlineOffset: '-2px',
1177
+ outline: isDragging
1178
+ ? `2px dashed ${theme.palette.divider}`
1179
+ : (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id
1180
+ ? `2px dashed ${theme.palette.primary.main}`
1181
+ : 'none',
1182
+ pl: `${(column.depth + 0.5) * 2}rem`,
1183
+ py: '6px',
1184
+ }) }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: {
1185
+ display: 'flex',
1186
+ flexWrap: 'nowrap',
1187
+ gap: '8px',
1188
+ } }, { children: [columnDefType !== 'group' &&
1189
+ enableColumnOrdering &&
1190
+ !allColumns.some((col) => col.columnDef.columnDefType === 'group') &&
1191
+ (columnDef.enableColumnOrdering !== false ? (jsxRuntime.jsx(MRT_GrabHandleButton, { onDragEnd: handleDragEnd, onDragStart: handleDragStart, table: table })) : (jsxRuntime.jsx(Box__default["default"], { sx: { width: '28px' } }))), enablePinning &&
1192
+ (column.getCanPin() ? (jsxRuntime.jsx(MRT_ColumnPinningButtons, { column: column, table: table })) : (jsxRuntime.jsx(Box__default["default"], { sx: { width: '70px' } }))), enableHiding ? (jsxRuntime.jsx(FormControlLabel__default["default"], { componentsProps: {
1193
+ typography: {
1194
+ sx: {
1195
+ mb: 0,
1196
+ opacity: columnDefType !== 'display' ? 1 : 0.5,
1197
+ },
1198
+ },
1199
+ }, checked: switchChecked, control: jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.toggleVisibility }, { children: jsxRuntime.jsx(Switch__default["default"], {}) })), disabled: !column.getCanHide(), label: columnDef.header, onChange: () => handleToggleColumnHidden(column) })) : (jsxRuntime.jsx(Typography__default["default"], Object.assign({ sx: { alignSelf: 'center' } }, { children: columnDef.header })))] })) })), (_a = column.columns) === null || _a === void 0 ? void 0 : _a.map((c, i) => (jsxRuntime.jsx(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: c, hoveredColumn: hoveredColumn, setHoveredColumn: setHoveredColumn, table: table }, `${i}-${c.id}`)))] }));
1321
1200
  };
1322
1201
 
1323
1202
  const MRT_ShowHideColumnsMenu = ({ anchorEl, setAnchorEl, table, }) => {
@@ -1328,7 +1207,7 @@ const MRT_ShowHideColumnsMenu = ({ anchorEl, setAnchorEl, table, }) => {
1328
1207
  .filter((col) => col.columnDef.enableHiding !== false)
1329
1208
  .forEach((col) => col.toggleVisibility(false));
1330
1209
  };
1331
- const allColumns = React.useMemo(() => {
1210
+ const allColumns = react.useMemo(() => {
1332
1211
  const columns = getAllColumns();
1333
1212
  if (columnOrder.length > 0 &&
1334
1213
  !columns.some((col) => col.columnDef.columnDefType === 'group')) {
@@ -1347,37 +1226,26 @@ const MRT_ShowHideColumnsMenu = ({ anchorEl, setAnchorEl, table, }) => {
1347
1226
  getLeftLeafColumns(),
1348
1227
  getRightLeafColumns(),
1349
1228
  ]);
1350
- const [hoveredColumn, setHoveredColumn] = React.useState(null);
1351
- return (React__default["default"].createElement(Menu__default["default"], { anchorEl: anchorEl, open: !!anchorEl, onClose: () => setAnchorEl(null), MenuListProps: {
1229
+ const [hoveredColumn, setHoveredColumn] = react.useState(null);
1230
+ return (jsxRuntime.jsxs(Menu__default["default"], Object.assign({ anchorEl: anchorEl, open: !!anchorEl, onClose: () => setAnchorEl(null), MenuListProps: {
1352
1231
  dense: density === 'compact',
1353
- } },
1354
- React__default["default"].createElement(Box__default["default"], { sx: {
1355
- display: 'flex',
1356
- justifyContent: 'space-between',
1357
- p: '0.5rem',
1358
- pt: 0,
1359
- } },
1360
- enableHiding && (React__default["default"].createElement(Button__default["default"], { disabled: !getIsSomeColumnsVisible(), onClick: hideAllColumns }, localization.hideAll)),
1361
- enableColumnOrdering && (React__default["default"].createElement(Button__default["default"], { onClick: () => table.setColumnOrder(getDefaultColumnOrderIds(table.options)) }, localization.resetOrder)),
1362
- enablePinning && (React__default["default"].createElement(Button__default["default"], { disabled: !getIsSomeColumnsPinned(), onClick: () => table.resetColumnPinning(true) }, localization.unpinAll)),
1363
- enableHiding && (React__default["default"].createElement(Button__default["default"], { disabled: getIsAllColumnsVisible(), onClick: () => toggleAllColumnsVisible(true) }, localization.showAll))),
1364
- React__default["default"].createElement(Divider__default["default"], null),
1365
- allColumns.map((column, index) => (React__default["default"].createElement(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: column, hoveredColumn: hoveredColumn, key: `${index}-${column.id}`, setHoveredColumn: setHoveredColumn, table: table })))));
1232
+ } }, { children: [jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: {
1233
+ display: 'flex',
1234
+ justifyContent: 'space-between',
1235
+ p: '0.5rem',
1236
+ pt: 0,
1237
+ } }, { children: [enableHiding && (jsxRuntime.jsx(Button__default["default"], Object.assign({ disabled: !getIsSomeColumnsVisible(), onClick: hideAllColumns }, { children: localization.hideAll }))), enableColumnOrdering && (jsxRuntime.jsx(Button__default["default"], Object.assign({ onClick: () => table.setColumnOrder(getDefaultColumnOrderIds(table.options)) }, { children: localization.resetOrder }))), enablePinning && (jsxRuntime.jsx(Button__default["default"], Object.assign({ disabled: !getIsSomeColumnsPinned(), onClick: () => table.resetColumnPinning(true) }, { children: localization.unpinAll }))), enableHiding && (jsxRuntime.jsx(Button__default["default"], Object.assign({ disabled: getIsAllColumnsVisible(), onClick: () => toggleAllColumnsVisible(true) }, { children: localization.showAll })))] })), jsxRuntime.jsx(Divider__default["default"], {}), allColumns.map((column, index) => (jsxRuntime.jsx(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: column, hoveredColumn: hoveredColumn, setHoveredColumn: setHoveredColumn, table: table }, `${index}-${column.id}`)))] })));
1366
1238
  };
1367
1239
 
1368
1240
  const MRT_ShowHideColumnsButton = (_a) => {
1369
1241
  var _b;
1370
1242
  var { table } = _a, rest = __rest(_a, ["table"]);
1371
1243
  const { options: { icons: { ViewColumnIcon }, localization, }, } = table;
1372
- const [anchorEl, setAnchorEl] = React.useState(null);
1244
+ const [anchorEl, setAnchorEl] = react.useState(null);
1373
1245
  const handleClick = (event) => {
1374
1246
  setAnchorEl(event.currentTarget);
1375
1247
  };
1376
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
1377
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideColumns },
1378
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": localization.showHideColumns, onClick: handleClick }, rest, { title: undefined }),
1379
- React__default["default"].createElement(ViewColumnIcon, null))),
1380
- anchorEl && (React__default["default"].createElement(MRT_ShowHideColumnsMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table }))));
1248
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideColumns }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.showHideColumns, onClick: handleClick }, rest, { title: undefined }, { children: jsxRuntime.jsx(ViewColumnIcon, {}) })) })), anchorEl && (jsxRuntime.jsx(MRT_ShowHideColumnsMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table }))] }));
1381
1249
  };
1382
1250
 
1383
1251
  const MRT_ToggleDensePaddingButton = (_a) => {
@@ -1393,8 +1261,7 @@ const MRT_ToggleDensePaddingButton = (_a) => {
1393
1261
  : 'comfortable';
1394
1262
  setDensity(nextDensity);
1395
1263
  };
1396
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleDensity },
1397
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": localization.toggleDensity, onClick: handleToggleDensePadding }, rest, { title: undefined }), density === 'compact' ? (React__default["default"].createElement(DensitySmallIcon, null)) : density === 'comfortable' ? (React__default["default"].createElement(DensityMediumIcon, null)) : (React__default["default"].createElement(DensityLargeIcon, null)))));
1264
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleDensity }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.toggleDensity, onClick: handleToggleDensePadding }, rest, { title: undefined }, { children: density === 'compact' ? (jsxRuntime.jsx(DensitySmallIcon, {})) : density === 'comfortable' ? (jsxRuntime.jsx(DensityMediumIcon, {})) : (jsxRuntime.jsx(DensityLargeIcon, {})) })) })));
1398
1265
  };
1399
1266
 
1400
1267
  const MRT_ToggleFiltersButton = (_a) => {
@@ -1405,8 +1272,7 @@ const MRT_ToggleFiltersButton = (_a) => {
1405
1272
  const handleToggleShowFilters = () => {
1406
1273
  setShowColumnFilters(!showColumnFilters);
1407
1274
  };
1408
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideFilters },
1409
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleShowFilters }, rest, { title: undefined }), showColumnFilters ? React__default["default"].createElement(FilterListOffIcon, null) : React__default["default"].createElement(FilterListIcon, null))));
1275
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideFilters }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleShowFilters }, rest, { title: undefined }, { children: showColumnFilters ? jsxRuntime.jsx(FilterListOffIcon, {}) : jsxRuntime.jsx(FilterListIcon, {}) })) })));
1410
1276
  };
1411
1277
 
1412
1278
  const MRT_ToggleGlobalFilterButton = (_a) => {
@@ -1418,27 +1284,21 @@ const MRT_ToggleGlobalFilterButton = (_a) => {
1418
1284
  setShowGlobalFilter(!showGlobalFilter);
1419
1285
  queueMicrotask(() => { var _a; return (_a = searchInputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
1420
1286
  };
1421
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideSearch },
1422
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": (_c = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _c !== void 0 ? _c : localization.showHideSearch, disabled: !!globalFilter, onClick: handleToggleSearch }, rest, { title: undefined }), showGlobalFilter ? React__default["default"].createElement(SearchOffIcon, null) : React__default["default"].createElement(SearchIcon, null))));
1287
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideSearch }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": (_c = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _c !== void 0 ? _c : localization.showHideSearch, disabled: !!globalFilter, onClick: handleToggleSearch }, rest, { title: undefined }, { children: showGlobalFilter ? jsxRuntime.jsx(SearchOffIcon, {}) : jsxRuntime.jsx(SearchIcon, {}) })) })));
1423
1288
  };
1424
1289
 
1425
1290
  const MRT_ToolbarInternalButtons = ({ table, }) => {
1426
1291
  var _a;
1427
1292
  const { options: { enableColumnFilters, enableColumnOrdering, enableDensityToggle, enableFilters, enableFullScreenToggle, enableGlobalFilter, enableHiding, enablePinning, initialState, renderToolbarInternalActions, }, } = table;
1428
- return (React__default["default"].createElement(Box__default["default"], { sx: {
1293
+ return (jsxRuntime.jsx(Box__default["default"], Object.assign({ sx: {
1429
1294
  alignItems: 'center',
1430
1295
  display: 'flex',
1431
1296
  zIndex: 3,
1432
- } }, (_a = renderToolbarInternalActions === null || renderToolbarInternalActions === void 0 ? void 0 : renderToolbarInternalActions({
1433
- table,
1434
- })) !== null && _a !== void 0 ? _a : (React__default["default"].createElement(React__default["default"].Fragment, null,
1435
- enableFilters &&
1436
- enableGlobalFilter &&
1437
- !(initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) && (React__default["default"].createElement(MRT_ToggleGlobalFilterButton, { table: table })),
1438
- enableFilters && enableColumnFilters && (React__default["default"].createElement(MRT_ToggleFiltersButton, { table: table })),
1439
- (enableHiding || enableColumnOrdering || enablePinning) && (React__default["default"].createElement(MRT_ShowHideColumnsButton, { table: table })),
1440
- enableDensityToggle && (React__default["default"].createElement(MRT_ToggleDensePaddingButton, { table: table })),
1441
- enableFullScreenToggle && (React__default["default"].createElement(MRT_FullScreenToggleButton, { table: table }))))));
1297
+ } }, { children: (_a = renderToolbarInternalActions === null || renderToolbarInternalActions === void 0 ? void 0 : renderToolbarInternalActions({
1298
+ table,
1299
+ })) !== null && _a !== void 0 ? _a : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [enableFilters &&
1300
+ enableGlobalFilter &&
1301
+ !(initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) && (jsxRuntime.jsx(MRT_ToggleGlobalFilterButton, { table: table })), enableFilters && enableColumnFilters && (jsxRuntime.jsx(MRT_ToggleFiltersButton, { table: table })), (enableHiding || enableColumnOrdering || enablePinning) && (jsxRuntime.jsx(MRT_ShowHideColumnsButton, { table: table })), enableDensityToggle && (jsxRuntime.jsx(MRT_ToggleDensePaddingButton, { table: table })), enableFullScreenToggle && (jsxRuntime.jsx(MRT_FullScreenToggleButton, { table: table }))] })) })));
1442
1302
  };
1443
1303
 
1444
1304
  const MRT_ToolbarDropZone = ({ table, }) => {
@@ -1448,7 +1308,7 @@ const MRT_ToolbarDropZone = ({ table, }) => {
1448
1308
  const handleDragEnter = (_event) => {
1449
1309
  setHoveredColumn({ id: 'drop-zone' });
1450
1310
  };
1451
- React.useEffect(() => {
1311
+ react.useEffect(() => {
1452
1312
  var _a;
1453
1313
  if (((_a = table.options.state) === null || _a === void 0 ? void 0 : _a.showToolbarDropZone) !== undefined) {
1454
1314
  setShowToolbarDropZone(!!enableGrouping &&
@@ -1457,8 +1317,7 @@ const MRT_ToolbarDropZone = ({ table, }) => {
1457
1317
  !grouping.includes(draggingColumn.id));
1458
1318
  }
1459
1319
  }, [enableGrouping, draggingColumn, grouping]);
1460
- return (React__default["default"].createElement(Fade__default["default"], { in: showToolbarDropZone },
1461
- React__default["default"].createElement(Box__default["default"], { className: "Mui-ToolbarDropZone", sx: (theme) => ({
1320
+ return (jsxRuntime.jsx(Fade__default["default"], Object.assign({ in: showToolbarDropZone }, { children: jsxRuntime.jsx(Box__default["default"], Object.assign({ className: "Mui-ToolbarDropZone", sx: (theme) => ({
1462
1321
  alignItems: 'center',
1463
1322
  backgroundColor: styles.alpha(theme.palette.info.main, (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === 'drop-zone' ? 0.2 : 0.1),
1464
1323
  backdropFilter: 'blur(4px)',
@@ -1470,8 +1329,7 @@ const MRT_ToolbarDropZone = ({ table, }) => {
1470
1329
  position: 'absolute',
1471
1330
  width: '100%',
1472
1331
  zIndex: 4,
1473
- }), onDragEnter: handleDragEnter },
1474
- React__default["default"].createElement(Typography__default["default"], { fontStyle: "italic" }, localization.dropToGroupBy.replace('{column}', (_b = (_a = draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.columnDef) === null || _a === void 0 ? void 0 : _a.header) !== null && _b !== void 0 ? _b : '')))));
1332
+ }), onDragEnter: handleDragEnter }, { children: jsxRuntime.jsx(Typography__default["default"], Object.assign({ fontStyle: "italic" }, { children: localization.dropToGroupBy.replace('{column}', (_b = (_a = draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.columnDef) === null || _a === void 0 ? void 0 : _a.header) !== null && _b !== void 0 ? _b : '') })) })) })));
1475
1333
  };
1476
1334
 
1477
1335
  const commonToolbarStyles = ({ theme }) => ({
@@ -1495,7 +1353,7 @@ const MRT_TopToolbar = ({ table, }) => {
1495
1353
  ? muiTopToolbarProps({ table })
1496
1354
  : muiTopToolbarProps;
1497
1355
  const stackAlertBanner = isMobile || !!renderTopToolbarCustomActions || showGlobalFilter;
1498
- return (React__default["default"].createElement(Toolbar__default["default"], Object.assign({ variant: "dense" }, toolbarProps, { ref: (ref) => {
1356
+ return (jsxRuntime.jsxs(Toolbar__default["default"], Object.assign({ variant: "dense" }, toolbarProps, { ref: (ref) => {
1499
1357
  topToolbarRef.current = ref;
1500
1358
  if (toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.ref) {
1501
1359
  // @ts-ignore
@@ -1503,32 +1361,23 @@ const MRT_TopToolbar = ({ table, }) => {
1503
1361
  }
1504
1362
  }, sx: (theme) => (Object.assign(Object.assign({ position: isFullScreen ? 'sticky' : undefined, top: isFullScreen ? '0' : undefined }, commonToolbarStyles({ theme })), ((toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx) instanceof Function
1505
1363
  ? toolbarProps.sx(theme)
1506
- : toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx))) }),
1507
- positionToolbarAlertBanner === 'top' && (React__default["default"].createElement(MRT_ToolbarAlertBanner, { stackAlertBanner: stackAlertBanner, table: table })),
1508
- ['both', 'top'].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : '') && (React__default["default"].createElement(MRT_ToolbarDropZone, { table: table })),
1509
- React__default["default"].createElement(Box__default["default"], { sx: {
1510
- alignItems: 'flex-start',
1511
- boxSizing: 'border-box',
1512
- display: 'flex',
1513
- justifyContent: 'space-between',
1514
- p: '0.5rem',
1515
- position: stackAlertBanner ? 'relative' : 'absolute',
1516
- right: 0,
1517
- top: 0,
1518
- width: '100%',
1519
- } },
1520
- enableGlobalFilter && positionGlobalFilter === 'left' && (React__default["default"].createElement(MRT_GlobalFilterTextField, { table: table })), (_a = renderTopToolbarCustomActions === null || renderTopToolbarCustomActions === void 0 ? void 0 : renderTopToolbarCustomActions({ table })) !== null && _a !== void 0 ? _a : React__default["default"].createElement("span", null),
1521
- enableToolbarInternalActions ? (React__default["default"].createElement(Box__default["default"], { sx: {
1364
+ : toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx))) }, { children: [positionToolbarAlertBanner === 'top' && (jsxRuntime.jsx(MRT_ToolbarAlertBanner, { stackAlertBanner: stackAlertBanner, table: table })), ['both', 'top'].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : '') && (jsxRuntime.jsx(MRT_ToolbarDropZone, { table: table })), jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: {
1365
+ alignItems: 'flex-start',
1366
+ boxSizing: 'border-box',
1522
1367
  display: 'flex',
1523
- flexWrap: 'wrap-reverse',
1524
- justifyContent: 'flex-end',
1525
- } },
1526
- enableGlobalFilter && positionGlobalFilter === 'right' && (React__default["default"].createElement(MRT_GlobalFilterTextField, { table: table })),
1527
- React__default["default"].createElement(MRT_ToolbarInternalButtons, { table: table }))) : (enableGlobalFilter &&
1528
- positionGlobalFilter === 'right' && (React__default["default"].createElement(MRT_GlobalFilterTextField, { table: table })))),
1529
- enablePagination &&
1530
- ['top', 'both'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (React__default["default"].createElement(MRT_TablePagination, { table: table, position: "top" })),
1531
- React__default["default"].createElement(MRT_LinearProgressBar, { isTopToolbar: true, table: table })));
1368
+ justifyContent: 'space-between',
1369
+ p: '0.5rem',
1370
+ position: stackAlertBanner ? 'relative' : 'absolute',
1371
+ right: 0,
1372
+ top: 0,
1373
+ width: '100%',
1374
+ } }, { children: [enableGlobalFilter && positionGlobalFilter === 'left' && (jsxRuntime.jsx(MRT_GlobalFilterTextField, { table: table })), (_a = renderTopToolbarCustomActions === null || renderTopToolbarCustomActions === void 0 ? void 0 : renderTopToolbarCustomActions({ table })) !== null && _a !== void 0 ? _a : jsxRuntime.jsx("span", {}), enableToolbarInternalActions ? (jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: {
1375
+ display: 'flex',
1376
+ flexWrap: 'wrap-reverse',
1377
+ justifyContent: 'flex-end',
1378
+ } }, { children: [enableGlobalFilter && positionGlobalFilter === 'right' && (jsxRuntime.jsx(MRT_GlobalFilterTextField, { table: table })), jsxRuntime.jsx(MRT_ToolbarInternalButtons, { table: table })] }))) : (enableGlobalFilter &&
1379
+ positionGlobalFilter === 'right' && (jsxRuntime.jsx(MRT_GlobalFilterTextField, { table: table })))] })), enablePagination &&
1380
+ ['top', 'both'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (jsxRuntime.jsx(MRT_TablePagination, { table: table, position: "top" })), jsxRuntime.jsx(MRT_LinearProgressBar, { isTopToolbar: true, table: table })] })));
1532
1381
  };
1533
1382
 
1534
1383
  const MRT_BottomToolbar = ({ table, }) => {
@@ -1539,7 +1388,7 @@ const MRT_BottomToolbar = ({ table, }) => {
1539
1388
  ? muiBottomToolbarProps({ table })
1540
1389
  : muiBottomToolbarProps;
1541
1390
  const stackAlertBanner = isMobile || !!renderBottomToolbarCustomActions;
1542
- return (React__default["default"].createElement(Toolbar__default["default"], Object.assign({ variant: "dense" }, toolbarProps, { ref: (node) => {
1391
+ return (jsxRuntime.jsxs(Toolbar__default["default"], Object.assign({ variant: "dense" }, toolbarProps, { ref: (node) => {
1543
1392
  if (node) {
1544
1393
  bottomToolbarRef.current = node;
1545
1394
  if (toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.ref) {
@@ -1549,27 +1398,21 @@ const MRT_BottomToolbar = ({ table, }) => {
1549
1398
  }
1550
1399
  }, sx: (theme) => (Object.assign(Object.assign(Object.assign({}, commonToolbarStyles({ theme })), { bottom: isFullScreen ? '0' : undefined, boxShadow: `0 1px 2px -1px ${styles.alpha(theme.palette.common.black, 0.1)} inset`, left: 0, position: isFullScreen ? 'fixed' : 'relative', right: 0 }), ((toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx) instanceof Function
1551
1400
  ? toolbarProps.sx(theme)
1552
- : toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx))) }),
1553
- React__default["default"].createElement(MRT_LinearProgressBar, { isTopToolbar: false, table: table }),
1554
- positionToolbarAlertBanner === 'bottom' && (React__default["default"].createElement(MRT_ToolbarAlertBanner, { stackAlertBanner: stackAlertBanner, table: table })),
1555
- ['both', 'bottom'].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : '') && (React__default["default"].createElement(MRT_ToolbarDropZone, { table: table })),
1556
- React__default["default"].createElement(Box__default["default"], { sx: {
1557
- alignItems: 'center',
1558
- boxSizing: 'border-box',
1559
- display: 'flex',
1560
- justifyContent: 'space-between',
1561
- p: '0.5rem',
1562
- width: '100%',
1563
- } },
1564
- renderBottomToolbarCustomActions ? (renderBottomToolbarCustomActions({ table })) : (React__default["default"].createElement("span", null)),
1565
- React__default["default"].createElement(Box__default["default"], { sx: {
1401
+ : toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx))) }, { children: [jsxRuntime.jsx(MRT_LinearProgressBar, { isTopToolbar: false, table: table }), positionToolbarAlertBanner === 'bottom' && (jsxRuntime.jsx(MRT_ToolbarAlertBanner, { stackAlertBanner: stackAlertBanner, table: table })), ['both', 'bottom'].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : '') && (jsxRuntime.jsx(MRT_ToolbarDropZone, { table: table })), jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: {
1402
+ alignItems: 'center',
1403
+ boxSizing: 'border-box',
1566
1404
  display: 'flex',
1567
- justifyContent: 'flex-end',
1568
- position: stackAlertBanner ? 'relative' : 'absolute',
1569
- right: 0,
1570
- top: 0,
1571
- } }, enablePagination &&
1572
- ['bottom', 'both'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (React__default["default"].createElement(MRT_TablePagination, { table: table, position: "bottom" }))))));
1405
+ justifyContent: 'space-between',
1406
+ p: '0.5rem',
1407
+ width: '100%',
1408
+ } }, { children: [renderBottomToolbarCustomActions ? (renderBottomToolbarCustomActions({ table })) : (jsxRuntime.jsx("span", {})), jsxRuntime.jsx(Box__default["default"], Object.assign({ sx: {
1409
+ display: 'flex',
1410
+ justifyContent: 'flex-end',
1411
+ position: stackAlertBanner ? 'relative' : 'absolute',
1412
+ right: 0,
1413
+ top: 0,
1414
+ } }, { children: enablePagination &&
1415
+ ['bottom', 'both'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (jsxRuntime.jsx(MRT_TablePagination, { table: table, position: "bottom" })) }))] }))] })));
1573
1416
  };
1574
1417
 
1575
1418
  const MRT_TableHeadCellColumnActionsButton = ({ header, table, }) => {
@@ -1577,7 +1420,7 @@ const MRT_TableHeadCellColumnActionsButton = ({ header, table, }) => {
1577
1420
  const { options: { icons: { MoreVertIcon }, localization, muiTableHeadCellColumnActionsButtonProps, }, } = table;
1578
1421
  const { column } = header;
1579
1422
  const { columnDef } = column;
1580
- const [anchorEl, setAnchorEl] = React.useState(null);
1423
+ const [anchorEl, setAnchorEl] = react.useState(null);
1581
1424
  const handleClick = (event) => {
1582
1425
  event.stopPropagation();
1583
1426
  event.preventDefault();
@@ -1593,15 +1436,11 @@ const MRT_TableHeadCellColumnActionsButton = ({ header, table, }) => {
1593
1436
  })
1594
1437
  : columnDef.muiTableHeadCellColumnActionsButtonProps;
1595
1438
  const iconButtonProps = Object.assign(Object.assign({}, mTableHeadCellColumnActionsButtonProps), mcTableHeadCellColumnActionsButtonProps);
1596
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
1597
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : localization.columnActions },
1598
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": localization.columnActions, onClick: handleClick, size: "small" }, iconButtonProps, { sx: (theme) => (Object.assign({ height: '2rem', m: '-8px -4px', opacity: 0.5, transform: 'scale(0.85) translateX(-4px)', transition: 'opacity 150ms', width: '2rem', '&:hover': {
1599
- opacity: 1,
1600
- } }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
1601
- ? iconButtonProps.sx(theme)
1602
- : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }),
1603
- React__default["default"].createElement(MoreVertIcon, null))),
1604
- anchorEl && (React__default["default"].createElement(MRT_ColumnActionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table }))));
1439
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : localization.columnActions }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.columnActions, onClick: handleClick, size: "small" }, iconButtonProps, { sx: (theme) => (Object.assign({ height: '2rem', m: '-8px -4px', opacity: 0.5, transform: 'scale(0.85) translateX(-4px)', transition: 'opacity 150ms', width: '2rem', '&:hover': {
1440
+ opacity: 1,
1441
+ } }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
1442
+ ? iconButtonProps.sx(theme)
1443
+ : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }, { children: jsxRuntime.jsx(MoreVertIcon, {}) })) })), anchorEl && (jsxRuntime.jsx(MRT_ColumnActionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table }))] }));
1605
1444
  };
1606
1445
 
1607
1446
  const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
@@ -1648,8 +1487,8 @@ const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
1648
1487
  !rangeFilterIndex &&
1649
1488
  (allowedColumnFilterOptions === undefined ||
1650
1489
  !!(allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.length));
1651
- const [anchorEl, setAnchorEl] = React.useState(null);
1652
- const [filterValue, setFilterValue] = React.useState(() => {
1490
+ const [anchorEl, setAnchorEl] = react.useState(null);
1491
+ const [filterValue, setFilterValue] = react.useState(() => {
1653
1492
  var _a, _b;
1654
1493
  return isMultiSelectFilter
1655
1494
  ? column.getFilterValue() || []
@@ -1657,7 +1496,7 @@ const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
1657
1496
  ? ((_a = column.getFilterValue()) === null || _a === void 0 ? void 0 : _a[rangeFilterIndex]) || []
1658
1497
  : (_b = column.getFilterValue()) !== null && _b !== void 0 ? _b : '';
1659
1498
  });
1660
- const handleChangeDebounced = React.useCallback(utils.debounce((event) => {
1499
+ const handleChangeDebounced = react.useCallback(utils.debounce((event) => {
1661
1500
  const value = textFieldProps.type === 'date'
1662
1501
  ? event.target.valueAsDate
1663
1502
  : textFieldProps.type === 'number'
@@ -1707,8 +1546,8 @@ const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
1707
1546
  const handleFilterMenuOpen = (event) => {
1708
1547
  setAnchorEl(event.currentTarget);
1709
1548
  };
1710
- const isMounted = React.useRef(false);
1711
- React.useEffect(() => {
1549
+ const isMounted = react.useRef(false);
1550
+ react.useEffect(() => {
1712
1551
  if (isMounted.current) {
1713
1552
  const filterValue = column.getFilterValue();
1714
1553
  if (filterValue === undefined) {
@@ -1724,100 +1563,83 @@ const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
1724
1563
  isMounted.current = true;
1725
1564
  }, [column.getFilterValue()]);
1726
1565
  if (columnDef.Filter) {
1727
- return (React__default["default"].createElement(React__default["default"].Fragment, null, (_f = columnDef.Filter) === null || _f === void 0 ? void 0 : _f.call(columnDef, { column, header, rangeFilterIndex, table })));
1566
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: (_f = columnDef.Filter) === null || _f === void 0 ? void 0 : _f.call(columnDef, { column, header, rangeFilterIndex, table }) }));
1728
1567
  }
1729
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
1730
- React__default["default"].createElement(TextField__default["default"], Object.assign({ fullWidth: true, inputProps: {
1731
- disabled: !!filterChipLabel,
1732
- sx: {
1733
- textOverflow: 'ellipsis',
1734
- width: filterChipLabel ? 0 : undefined,
1735
- },
1736
- title: filterPlaceholder,
1737
- }, helperText: showChangeModeButton ? (React__default["default"].createElement("label", null, localization.filterMode.replace('{filterType}',
1738
- // @ts-ignore
1739
- localization[`filter${((_g = currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.charAt(0)) === null || _g === void 0 ? void 0 : _g.toUpperCase()) +
1740
- (currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.slice(1))}`]))) : null, FormHelperTextProps: {
1741
- sx: {
1742
- fontSize: '0.75rem',
1743
- lineHeight: '0.8rem',
1744
- whiteSpace: 'nowrap',
1745
- },
1746
- }, margin: "none", placeholder: filterChipLabel || isSelectFilter || isMultiSelectFilter
1747
- ? undefined
1748
- : filterPlaceholder, onChange: handleChange, onClick: (e) => e.stopPropagation(), select: isSelectFilter || isMultiSelectFilter, value: filterValue !== null && filterValue !== void 0 ? filterValue : '', variant: "standard", InputProps: {
1749
- startAdornment: showChangeModeButton ? (React__default["default"].createElement(InputAdornment__default["default"], { position: "start" },
1750
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: localization.changeFilterMode },
1751
- React__default["default"].createElement("span", null,
1752
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.changeFilterMode, onClick: handleFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' } },
1753
- React__default["default"].createElement(FilterListIcon, null)))),
1754
- filterChipLabel && (React__default["default"].createElement(Chip__default["default"], { onDelete: handleClearEmptyFilterChip, label: filterChipLabel })))) : null,
1755
- endAdornment: !filterChipLabel && (React__default["default"].createElement(InputAdornment__default["default"], { position: "end" },
1756
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, placement: "right", title: (_h = localization.clearFilter) !== null && _h !== void 0 ? _h : '' },
1757
- React__default["default"].createElement("span", null,
1758
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.clearFilter, disabled: !((_j = filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString()) === null || _j === void 0 ? void 0 : _j.length), onClick: handleClear, size: "small", sx: {
1759
- height: '1.75rem',
1760
- width: '1.75rem',
1761
- } },
1762
- React__default["default"].createElement(CloseIcon, null)))))),
1763
- }, SelectProps: {
1764
- displayEmpty: true,
1765
- multiple: isMultiSelectFilter,
1766
- renderValue: isMultiSelectFilter
1767
- ? (selected) => !(selected === null || selected === void 0 ? void 0 : selected.length) ? (React__default["default"].createElement(Box__default["default"], { sx: { opacity: 0.5 } }, filterPlaceholder)) : (React__default["default"].createElement(Box__default["default"], { sx: { display: 'flex', flexWrap: 'wrap', gap: '2px' } }, selected === null || selected === void 0 ? void 0 : selected.map((value) => {
1568
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(TextField__default["default"], Object.assign({ fullWidth: true, inputProps: {
1569
+ disabled: !!filterChipLabel,
1570
+ sx: {
1571
+ textOverflow: 'ellipsis',
1572
+ width: filterChipLabel ? 0 : undefined,
1573
+ },
1574
+ title: filterPlaceholder,
1575
+ }, helperText: showChangeModeButton ? (jsxRuntime.jsx("label", { children: localization.filterMode.replace('{filterType}',
1576
+ // @ts-ignore
1577
+ localization[`filter${((_g = currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.charAt(0)) === null || _g === void 0 ? void 0 : _g.toUpperCase()) +
1578
+ (currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.slice(1))}`]) })) : null, FormHelperTextProps: {
1579
+ sx: {
1580
+ fontSize: '0.75rem',
1581
+ lineHeight: '0.8rem',
1582
+ whiteSpace: 'nowrap',
1583
+ },
1584
+ }, margin: "none", placeholder: filterChipLabel || isSelectFilter || isMultiSelectFilter
1585
+ ? undefined
1586
+ : filterPlaceholder, onChange: handleChange, onClick: (e) => e.stopPropagation(), select: isSelectFilter || isMultiSelectFilter, value: filterValue !== null && filterValue !== void 0 ? filterValue : '', variant: "standard", InputProps: {
1587
+ startAdornment: showChangeModeButton ? (jsxRuntime.jsxs(InputAdornment__default["default"], Object.assign({ position: "start" }, { children: [jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: localization.changeFilterMode }, { children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.changeFilterMode, onClick: handleFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' } }, { children: jsxRuntime.jsx(FilterListIcon, {}) })) }) })), filterChipLabel && (jsxRuntime.jsx(Chip__default["default"], { onDelete: handleClearEmptyFilterChip, label: filterChipLabel }))] }))) : null,
1588
+ endAdornment: !filterChipLabel && (jsxRuntime.jsx(InputAdornment__default["default"], Object.assign({ position: "end" }, { children: jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, placement: "right", title: (_h = localization.clearFilter) !== null && _h !== void 0 ? _h : '' }, { children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.clearFilter, disabled: !((_j = filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString()) === null || _j === void 0 ? void 0 : _j.length), onClick: handleClear, size: "small", sx: {
1589
+ height: '1.75rem',
1590
+ width: '1.75rem',
1591
+ } }, { children: jsxRuntime.jsx(CloseIcon, {}) })) }) })) }))),
1592
+ }, SelectProps: {
1593
+ displayEmpty: true,
1594
+ multiple: isMultiSelectFilter,
1595
+ renderValue: isMultiSelectFilter
1596
+ ? (selected) => !(selected === null || selected === void 0 ? void 0 : selected.length) ? (jsxRuntime.jsx(Box__default["default"], Object.assign({ sx: { opacity: 0.5 } }, { children: filterPlaceholder }))) : (jsxRuntime.jsx(Box__default["default"], Object.assign({ sx: { display: 'flex', flexWrap: 'wrap', gap: '2px' } }, { children: selected === null || selected === void 0 ? void 0 : selected.map((value) => {
1597
+ var _a;
1598
+ const selectedValue = (_a = columnDef.filterSelectOptions) === null || _a === void 0 ? void 0 : _a.find((option) => option instanceof Object
1599
+ ? option.value === value
1600
+ : option === value);
1601
+ return (jsxRuntime.jsx(Chip__default["default"], { label: selectedValue instanceof Object
1602
+ ? selectedValue.text
1603
+ : selectedValue }, value));
1604
+ }) })))
1605
+ : undefined,
1606
+ } }, textFieldProps, { inputRef: (inputRef) => {
1607
+ filterInputRefs.current[`${column.id}-${rangeFilterIndex !== null && rangeFilterIndex !== void 0 ? rangeFilterIndex : 0}`] =
1608
+ inputRef;
1609
+ if (textFieldProps.inputRef) {
1610
+ textFieldProps.inputRef = inputRef;
1611
+ }
1612
+ }, sx: (theme) => (Object.assign({ p: 0, minWidth: isRangeFilter
1613
+ ? '100px'
1614
+ : !filterChipLabel
1615
+ ? '120px'
1616
+ : 'auto', width: 'calc(100% + 4px)', mx: '-2px', '& .MuiSelect-icon': {
1617
+ mr: '1.5rem',
1618
+ } }, ((textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.sx) instanceof Function
1619
+ ? textFieldProps.sx(theme)
1620
+ : textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.sx))) }, { children: [(isSelectFilter || isMultiSelectFilter) && (jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ divider: true, disabled: true, hidden: true, value: "" }, { children: jsxRuntime.jsx(Box__default["default"], Object.assign({ sx: { opacity: 0.5 } }, { children: filterPlaceholder })) }))), (_k = textFieldProps.children) !== null && _k !== void 0 ? _k : (_l = columnDef === null || columnDef === void 0 ? void 0 : columnDef.filterSelectOptions) === null || _l === void 0 ? void 0 : _l.map((option) => {
1768
1621
  var _a;
1769
- const selectedValue = (_a = columnDef.filterSelectOptions) === null || _a === void 0 ? void 0 : _a.find((option) => option instanceof Object
1770
- ? option.value === value
1771
- : option === value);
1772
- return (React__default["default"].createElement(Chip__default["default"], { key: value, label: selectedValue instanceof Object
1773
- ? selectedValue.text
1774
- : selectedValue }));
1775
- })))
1776
- : undefined,
1777
- } }, textFieldProps, { inputRef: (inputRef) => {
1778
- filterInputRefs.current[`${column.id}-${rangeFilterIndex !== null && rangeFilterIndex !== void 0 ? rangeFilterIndex : 0}`] =
1779
- inputRef;
1780
- if (textFieldProps.inputRef) {
1781
- textFieldProps.inputRef = inputRef;
1782
- }
1783
- }, sx: (theme) => (Object.assign({ p: 0, minWidth: isRangeFilter
1784
- ? '100px'
1785
- : !filterChipLabel
1786
- ? '120px'
1787
- : 'auto', width: 'calc(100% + 4px)', mx: '-2px', '& .MuiSelect-icon': {
1788
- mr: '1.5rem',
1789
- } }, ((textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.sx) instanceof Function
1790
- ? textFieldProps.sx(theme)
1791
- : textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.sx))) }),
1792
- (isSelectFilter || isMultiSelectFilter) && (React__default["default"].createElement(MenuItem__default["default"], { divider: true, disabled: true, hidden: true, value: "" },
1793
- React__default["default"].createElement(Box__default["default"], { sx: { opacity: 0.5 } }, filterPlaceholder))), (_k = textFieldProps.children) !== null && _k !== void 0 ? _k : (_l = columnDef === null || columnDef === void 0 ? void 0 : columnDef.filterSelectOptions) === null || _l === void 0 ? void 0 : _l.map((option) => {
1794
- var _a;
1795
- let value;
1796
- let text;
1797
- if (typeof option !== 'object') {
1798
- value = option;
1799
- text = option;
1800
- }
1801
- else {
1802
- value = option.value;
1803
- text = option.text;
1804
- }
1805
- return (React__default["default"].createElement(MenuItem__default["default"], { key: value, sx: {
1806
- display: 'flex',
1807
- m: 0,
1808
- alignItems: 'center',
1809
- gap: '0.5rem',
1810
- }, value: value },
1811
- isMultiSelectFilter && (React__default["default"].createElement(Checkbox__default["default"], { checked: ((_a = column.getFilterValue()) !== null && _a !== void 0 ? _a : []).includes(value), sx: { mr: '0.5rem' } })),
1812
- text));
1813
- })),
1814
- React__default["default"].createElement(MRT_FilterOptionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table, setFilterValue: setFilterValue })));
1622
+ let value;
1623
+ let text;
1624
+ if (typeof option !== 'object') {
1625
+ value = option;
1626
+ text = option;
1627
+ }
1628
+ else {
1629
+ value = option.value;
1630
+ text = option.text;
1631
+ }
1632
+ return (jsxRuntime.jsxs(MenuItem__default["default"], Object.assign({ sx: {
1633
+ display: 'flex',
1634
+ m: 0,
1635
+ alignItems: 'center',
1636
+ gap: '0.5rem',
1637
+ }, value: value }, { children: [isMultiSelectFilter && (jsxRuntime.jsx(Checkbox__default["default"], { checked: ((_a = column.getFilterValue()) !== null && _a !== void 0 ? _a : []).includes(value), sx: { mr: '0.5rem' } })), text] }), value));
1638
+ })] })), jsxRuntime.jsx(MRT_FilterOptionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table, setFilterValue: setFilterValue })] }));
1815
1639
  };
1816
1640
 
1817
1641
  const MRT_FilterRangeFields = ({ header, table }) => {
1818
- return (React__default["default"].createElement(Box__default["default"], { sx: { display: 'grid', gridTemplateColumns: '6fr 6fr', gap: '1rem' } },
1819
- React__default["default"].createElement(MRT_FilterTextField, { header: header, rangeFilterIndex: 0, table: table }),
1820
- React__default["default"].createElement(MRT_FilterTextField, { header: header, rangeFilterIndex: 1, table: table })));
1642
+ return (jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: { display: 'grid', gridTemplateColumns: '6fr 6fr', gap: '1rem' } }, { children: [jsxRuntime.jsx(MRT_FilterTextField, { header: header, rangeFilterIndex: 0, table: table }), jsxRuntime.jsx(MRT_FilterTextField, { header: header, rangeFilterIndex: 1, table: table })] })));
1821
1643
  };
1822
1644
 
1823
1645
  const MRT_FilterCheckbox = ({ column, table }) => {
@@ -1839,8 +1661,7 @@ const MRT_FilterCheckbox = ({ column, table }) => {
1839
1661
  : columnDef.muiTableHeadCellFilterCheckboxProps;
1840
1662
  const checkboxProps = Object.assign(Object.assign({}, mTableHeadCellFilterCheckboxProps), mcTableHeadCellFilterCheckboxProps);
1841
1663
  const filterLabel = (_a = localization.filterByColumn) === null || _a === void 0 ? void 0 : _a.replace('{column}', columnDef.header);
1842
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: (_b = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _b !== void 0 ? _b : filterLabel },
1843
- React__default["default"].createElement(FormControlLabel__default["default"], { control: React__default["default"].createElement(Checkbox__default["default"], Object.assign({ checked: column.getFilterValue() === 'true', indeterminate: column.getFilterValue() === undefined, color: column.getFilterValue() === undefined ? 'default' : 'primary', size: density === 'compact' ? 'small' : 'medium' }, checkboxProps, { onClick: (e) => {
1664
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: (_b = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _b !== void 0 ? _b : filterLabel }, { children: jsxRuntime.jsx(FormControlLabel__default["default"], { control: jsxRuntime.jsx(Checkbox__default["default"], Object.assign({ checked: column.getFilterValue() === 'true', indeterminate: column.getFilterValue() === undefined, color: column.getFilterValue() === undefined ? 'default' : 'primary', size: density === 'compact' ? 'small' : 'medium' }, checkboxProps, { onClick: (e) => {
1844
1665
  var _a;
1845
1666
  e.stopPropagation();
1846
1667
  (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a === void 0 ? void 0 : _a.call(checkboxProps, e);
@@ -1854,7 +1675,7 @@ const MRT_FilterCheckbox = ({ column, table }) => {
1854
1675
  (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onChange) === null || _a === void 0 ? void 0 : _a.call(checkboxProps, e, checked);
1855
1676
  }, sx: (theme) => (Object.assign({ height: '2.5rem', width: '2.5rem' }, ((checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx) instanceof Function
1856
1677
  ? checkboxProps.sx(theme)
1857
- : checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx))) })), disableTypography: true, label: (_c = checkboxProps.title) !== null && _c !== void 0 ? _c : filterLabel, sx: { color: 'text.secondary', mt: '-4px', fontWeight: 'normal' }, title: undefined })));
1678
+ : checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx))) })), disableTypography: true, label: (_c = checkboxProps.title) !== null && _c !== void 0 ? _c : filterLabel, sx: { color: 'text.secondary', mt: '-4px', fontWeight: 'normal' }, title: undefined }) })));
1858
1679
  };
1859
1680
 
1860
1681
  const MRT_TableHeadCellFilterContainer = ({ header, table }) => {
@@ -1862,8 +1683,8 @@ const MRT_TableHeadCellFilterContainer = ({ header, table }) => {
1862
1683
  const { showColumnFilters } = getState();
1863
1684
  const { column } = header;
1864
1685
  const { columnDef } = column;
1865
- return (React__default["default"].createElement(Collapse__default["default"], { in: showColumnFilters, mountOnEnter: true, unmountOnExit: true }, columnDef.filterVariant === 'checkbox' ? (React__default["default"].createElement(MRT_FilterCheckbox, { column: column, table: table })) : columnDef.filterVariant === 'range' ||
1866
- ['between', 'betweenInclusive', 'inNumberRange'].includes(columnDef._filterFn) ? (React__default["default"].createElement(MRT_FilterRangeFields, { header: header, table: table })) : (React__default["default"].createElement(MRT_FilterTextField, { header: header, table: table }))));
1686
+ return (jsxRuntime.jsx(Collapse__default["default"], Object.assign({ in: showColumnFilters, mountOnEnter: true, unmountOnExit: true }, { children: columnDef.filterVariant === 'checkbox' ? (jsxRuntime.jsx(MRT_FilterCheckbox, { column: column, table: table })) : columnDef.filterVariant === 'range' ||
1687
+ ['between', 'betweenInclusive', 'inNumberRange'].includes(columnDef._filterFn) ? (jsxRuntime.jsx(MRT_FilterRangeFields, { header: header, table: table })) : (jsxRuntime.jsx(MRT_FilterTextField, { header: header, table: table })) })));
1867
1688
  };
1868
1689
 
1869
1690
  const MRT_TableHeadCellFilterLabel = ({ header, table }) => {
@@ -1884,12 +1705,9 @@ const MRT_TableHeadCellFilterLabel = ({ header, table }) => {
1884
1705
  ? column.getFilterValue().join(`" ${isRangeFilter ? localization.and : localization.or} "`)
1885
1706
  : column.getFilterValue()}"`)
1886
1707
  .replace('" "', '');
1887
- return (React__default["default"].createElement(Grow__default["default"], { unmountOnExit: true, in: (!!column.getFilterValue() && !isRangeFilter) ||
1708
+ return (jsxRuntime.jsx(Grow__default["default"], Object.assign({ unmountOnExit: true, in: (!!column.getFilterValue() && !isRangeFilter) ||
1888
1709
  (isRangeFilter && // @ts-ignore
1889
- (!!((_b = column.getFilterValue()) === null || _b === void 0 ? void 0 : _b[0]) || !!((_c = column.getFilterValue()) === null || _c === void 0 ? void 0 : _c[1]))) },
1890
- React__default["default"].createElement(Box__default["default"], { component: "span", sx: { flex: '0 0' } },
1891
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, placement: "top", title: filterTooltip },
1892
- React__default["default"].createElement(IconButton__default["default"], { disableRipple: true, onClick: (event) => {
1710
+ (!!((_b = column.getFilterValue()) === null || _b === void 0 ? void 0 : _b[0]) || !!((_c = column.getFilterValue()) === null || _c === void 0 ? void 0 : _c[1]))) }, { children: jsxRuntime.jsx(Box__default["default"], Object.assign({ component: "span", sx: { flex: '0 0' } }, { children: jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, placement: "top", title: filterTooltip }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ disableRipple: true, onClick: (event) => {
1893
1711
  setShowColumnFilters(true);
1894
1712
  queueMicrotask(() => {
1895
1713
  var _a, _b;
@@ -1904,8 +1722,7 @@ const MRT_TableHeadCellFilterLabel = ({ header, table }) => {
1904
1722
  p: '2px',
1905
1723
  transform: 'scale(0.66)',
1906
1724
  width: '12px',
1907
- } },
1908
- React__default["default"].createElement(FilterAltIcon, null))))));
1725
+ } }, { children: jsxRuntime.jsx(FilterAltIcon, {}) })) })) })) })));
1909
1726
  };
1910
1727
 
1911
1728
  const MRT_TableHeadCellGrabHandle = ({ column, table, tableHeadCellRef, }) => {
@@ -1939,7 +1756,7 @@ const MRT_TableHeadCellGrabHandle = ({ column, table, tableHeadCellRef, }) => {
1939
1756
  setDraggingColumn(null);
1940
1757
  setHoveredColumn(null);
1941
1758
  };
1942
- return (React__default["default"].createElement(MRT_GrabHandleButton, { iconButtonProps: iconButtonProps, onDragStart: handleDragStart, onDragEnd: handleDragEnd, table: table }));
1759
+ return (jsxRuntime.jsx(MRT_GrabHandleButton, { iconButtonProps: iconButtonProps, onDragStart: handleDragStart, onDragEnd: handleDragEnd, table: table }));
1943
1760
  };
1944
1761
 
1945
1762
  const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
@@ -1947,7 +1764,7 @@ const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
1947
1764
  const { getState, options: { columnResizeMode }, setColumnSizingInfo, } = table;
1948
1765
  const { density } = getState();
1949
1766
  const { column } = header;
1950
- return (React__default["default"].createElement(Box__default["default"], { className: "Mui-TableHeadCell-ResizeHandle-Wrapper", onDoubleClick: () => {
1767
+ return (jsxRuntime.jsx(Box__default["default"], Object.assign({ className: "Mui-TableHeadCell-ResizeHandle-Wrapper", onDoubleClick: () => {
1951
1768
  setColumnSizingInfo((old) => (Object.assign(Object.assign({}, old), { isResizingColumn: false })));
1952
1769
  column.resetSize();
1953
1770
  }, onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler(), sx: (theme) => ({
@@ -1964,8 +1781,7 @@ const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
1964
1781
  transform: column.getIsResizing() && columnResizeMode === 'onEnd'
1965
1782
  ? `translateX(${(_a = getState().columnSizingInfo.deltaOffset) !== null && _a !== void 0 ? _a : 0}px)`
1966
1783
  : undefined,
1967
- } },
1968
- React__default["default"].createElement(Divider__default["default"], { className: "Mui-TableHeadCell-ResizeHandle-Divider", flexItem: true, orientation: "vertical", sx: {
1784
+ } }, { children: jsxRuntime.jsx(Divider__default["default"], { className: "Mui-TableHeadCell-ResizeHandle-Divider", flexItem: true, orientation: "vertical", sx: {
1969
1785
  borderRadius: '2px',
1970
1786
  borderWidth: '2px',
1971
1787
  height: '24px',
@@ -1975,7 +1791,7 @@ const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
1975
1791
  : 'all 150ms ease-in-out',
1976
1792
  userSelect: 'none',
1977
1793
  zIndex: 4,
1978
- } })));
1794
+ } }) })));
1979
1795
  };
1980
1796
 
1981
1797
  const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
@@ -1988,9 +1804,7 @@ const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
1988
1804
  ? localization.sortedByColumnDesc.replace('{column}', columnDef.header)
1989
1805
  : localization.sortedByColumnAsc.replace('{column}', columnDef.header)
1990
1806
  : localization.unsorted;
1991
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, placement: "top", title: sortTooltip },
1992
- React__default["default"].createElement(Badge__default["default"], { badgeContent: sorting.length > 1 ? column.getSortIndex() + 1 : 0, overlap: "circular" },
1993
- React__default["default"].createElement(TableSortLabel__default["default"], { "aria-label": sortTooltip, active: !!column.getIsSorted(), direction: column.getIsSorted()
1807
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, placement: "top", title: sortTooltip }, { children: jsxRuntime.jsx(Badge__default["default"], Object.assign({ badgeContent: sorting.length > 1 ? column.getSortIndex() + 1 : 0, overlap: "circular" }, { children: jsxRuntime.jsx(TableSortLabel__default["default"], { "aria-label": sortTooltip, active: !!column.getIsSorted(), direction: column.getIsSorted()
1994
1808
  ? column.getIsSorted()
1995
1809
  : undefined, sx: {
1996
1810
  flex: '0 0',
@@ -2002,7 +1816,7 @@ const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
2002
1816
  var _a;
2003
1817
  e.stopPropagation();
2004
1818
  (_a = header.column.getToggleSortingHandler()) === null || _a === void 0 ? void 0 : _a(e);
2005
- } }))));
1819
+ } }) })) })));
2006
1820
  };
2007
1821
 
2008
1822
  const MRT_TableHeadCell = ({ header, table }) => {
@@ -2029,7 +1843,7 @@ const MRT_TableHeadCell = ({ header, table }) => {
2029
1843
  (enableGrouping &&
2030
1844
  columnDef.enableGrouping !== false &&
2031
1845
  !grouping.includes(column.id)));
2032
- const headerPL = React.useMemo(() => {
1846
+ const headerPL = react.useMemo(() => {
2033
1847
  let pl = 0;
2034
1848
  if (column.getCanSort())
2035
1849
  pl++;
@@ -2039,7 +1853,7 @@ const MRT_TableHeadCell = ({ header, table }) => {
2039
1853
  pl += 1.25;
2040
1854
  return pl;
2041
1855
  }, [showColumnActions, showDragHandle]);
2042
- const draggingBorder = React.useMemo(() => (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) === column.id
1856
+ const draggingBorder = react.useMemo(() => (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) === column.id
2043
1857
  ? `1px dashed ${theme.palette.text.secondary}`
2044
1858
  : (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id
2045
1859
  ? `2px dashed ${theme.palette.primary.main}`
@@ -2066,7 +1880,7 @@ const MRT_TableHeadCell = ({ header, table }) => {
2066
1880
  table,
2067
1881
  })
2068
1882
  : (_b = columnDef === null || columnDef === void 0 ? void 0 : columnDef.Header) !== null && _b !== void 0 ? _b : columnDef.header;
2069
- return (React__default["default"].createElement(TableCell__default["default"], Object.assign({ align: columnDefType === 'group' ? 'center' : 'left', colSpan: header.colSpan, onDragEnter: handleDragEnter, ref: (node) => {
1883
+ return (jsxRuntime.jsxs(TableCell__default["default"], Object.assign({ align: columnDefType === 'group' ? 'center' : 'left', colSpan: header.colSpan, onDragEnter: handleDragEnter, ref: (node) => {
2070
1884
  if (node) {
2071
1885
  tableHeadCellRefs.current[column.id] = node;
2072
1886
  }
@@ -2096,49 +1910,39 @@ const MRT_TableHeadCell = ({ header, table }) => {
2096
1910
  table,
2097
1911
  tableCellProps,
2098
1912
  theme,
2099
- })), draggingBorders)) }),
2100
- header.isPlaceholder ? null : (React__default["default"].createElement(Box__default["default"], { className: "Mui-TableHeadCell-Content", sx: {
2101
- alignItems: 'center',
2102
- display: 'flex',
2103
- flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
2104
- justifyContent: columnDefType === 'group' || (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
2105
- ? 'center'
2106
- : column.getCanResize()
2107
- ? 'space-between'
2108
- : 'flex-start',
2109
- position: 'relative',
2110
- width: '100%',
2111
- } },
2112
- React__default["default"].createElement(Box__default["default"], { className: "Mui-TableHeadCell-Content-Labels", onClick: column.getToggleSortingHandler(), sx: {
1913
+ })), draggingBorders)) }, { children: [header.isPlaceholder ? null : (jsxRuntime.jsxs(Box__default["default"], Object.assign({ className: "Mui-TableHeadCell-Content", sx: {
2113
1914
  alignItems: 'center',
2114
- cursor: column.getCanSort() && columnDefType !== 'group'
2115
- ? 'pointer'
2116
- : undefined,
2117
1915
  display: 'flex',
2118
1916
  flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
2119
- overflow: columnDefType === 'data' ? 'hidden' : undefined,
2120
- pl: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
2121
- ? `${headerPL}rem`
2122
- : undefined,
2123
- } },
2124
- React__default["default"].createElement(Box__default["default"], { className: "Mui-TableHeadCell-Content-Wrapper", sx: {
2125
- minWidth: `${Math.min((_d = (_c = columnDef.header) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0, 5)}ch`,
2126
- overflow: columnDefType === 'data' ? 'hidden' : undefined,
2127
- textOverflow: 'ellipsis',
2128
- whiteSpace: ((_g = (_f = columnDef.header) === null || _f === void 0 ? void 0 : _f.length) !== null && _g !== void 0 ? _g : 0) < 20 ? 'nowrap' : 'normal',
2129
- '&:hover': {
2130
- textOverflow: 'clip',
2131
- },
2132
- }, title: columnDefType === 'data' ? columnDef.header : undefined }, headerElement),
2133
- column.getCanSort() && (React__default["default"].createElement(MRT_TableHeadCellSortLabel, { header: header, table: table, tableCellProps: tableCellProps })),
2134
- column.getCanFilter() && (React__default["default"].createElement(MRT_TableHeadCellFilterLabel, { header: header, table: table }))),
2135
- columnDefType !== 'group' && (React__default["default"].createElement(Box__default["default"], { className: "Mui-TableHeadCell-Content-Actions", sx: { whiteSpace: 'nowrap' } },
2136
- showDragHandle && (React__default["default"].createElement(MRT_TableHeadCellGrabHandle, { column: column, table: table, tableHeadCellRef: {
2137
- current: tableHeadCellRefs.current[column.id],
2138
- } })),
2139
- showColumnActions && (React__default["default"].createElement(MRT_TableHeadCellColumnActionsButton, { header: header, table: table })))),
2140
- column.getCanResize() && (React__default["default"].createElement(MRT_TableHeadCellResizeHandle, { header: header, table: table })))),
2141
- column.getCanFilter() && (React__default["default"].createElement(MRT_TableHeadCellFilterContainer, { header: header, table: table }))));
1917
+ justifyContent: columnDefType === 'group' || (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
1918
+ ? 'center'
1919
+ : column.getCanResize()
1920
+ ? 'space-between'
1921
+ : 'flex-start',
1922
+ position: 'relative',
1923
+ width: '100%',
1924
+ } }, { children: [jsxRuntime.jsxs(Box__default["default"], Object.assign({ className: "Mui-TableHeadCell-Content-Labels", onClick: column.getToggleSortingHandler(), sx: {
1925
+ alignItems: 'center',
1926
+ cursor: column.getCanSort() && columnDefType !== 'group'
1927
+ ? 'pointer'
1928
+ : undefined,
1929
+ display: 'flex',
1930
+ flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
1931
+ overflow: columnDefType === 'data' ? 'hidden' : undefined,
1932
+ pl: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
1933
+ ? `${headerPL}rem`
1934
+ : undefined,
1935
+ } }, { children: [jsxRuntime.jsx(Box__default["default"], Object.assign({ className: "Mui-TableHeadCell-Content-Wrapper", sx: {
1936
+ minWidth: `${Math.min((_d = (_c = columnDef.header) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0, 5)}ch`,
1937
+ overflow: columnDefType === 'data' ? 'hidden' : undefined,
1938
+ textOverflow: 'ellipsis',
1939
+ whiteSpace: ((_g = (_f = columnDef.header) === null || _f === void 0 ? void 0 : _f.length) !== null && _g !== void 0 ? _g : 0) < 20 ? 'nowrap' : 'normal',
1940
+ '&:hover': {
1941
+ textOverflow: 'clip',
1942
+ },
1943
+ }, title: columnDefType === 'data' ? columnDef.header : undefined }, { children: headerElement })), column.getCanSort() && (jsxRuntime.jsx(MRT_TableHeadCellSortLabel, { header: header, table: table, tableCellProps: tableCellProps })), column.getCanFilter() && (jsxRuntime.jsx(MRT_TableHeadCellFilterLabel, { header: header, table: table }))] })), columnDefType !== 'group' && (jsxRuntime.jsxs(Box__default["default"], Object.assign({ className: "Mui-TableHeadCell-Content-Actions", sx: { whiteSpace: 'nowrap' } }, { children: [showDragHandle && (jsxRuntime.jsx(MRT_TableHeadCellGrabHandle, { column: column, table: table, tableHeadCellRef: {
1944
+ current: tableHeadCellRefs.current[column.id],
1945
+ } })), showColumnActions && (jsxRuntime.jsx(MRT_TableHeadCellColumnActionsButton, { header: header, table: table }))] }))), column.getCanResize() && (jsxRuntime.jsx(MRT_TableHeadCellResizeHandle, { header: header, table: table }))] }))), column.getCanFilter() && (jsxRuntime.jsx(MRT_TableHeadCellFilterContainer, { header: header, table: table }))] })));
2142
1946
  };
2143
1947
 
2144
1948
  const MRT_TableHeadRow = ({ headerGroup, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, }) => {
@@ -2146,17 +1950,14 @@ const MRT_TableHeadRow = ({ headerGroup, table, virtualColumns, virtualPaddingLe
2146
1950
  const tableRowProps = muiTableHeadRowProps instanceof Function
2147
1951
  ? muiTableHeadRowProps({ headerGroup, table })
2148
1952
  : muiTableHeadRowProps;
2149
- return (React__default["default"].createElement(TableRow__default["default"], Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: styles.lighten(theme.palette.background.default, 0.04), boxShadow: `4px 0 8px ${styles.alpha(theme.palette.common.black, 0.1)}`, display: layoutMode === 'grid' ? 'flex' : 'table-row', top: 0 }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
1953
+ return (jsxRuntime.jsxs(TableRow__default["default"], Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: styles.lighten(theme.palette.background.default, 0.04), boxShadow: `4px 0 8px ${styles.alpha(theme.palette.common.black, 0.1)}`, display: layoutMode === 'grid' ? 'flex' : 'table-row', top: 0 }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2150
1954
  ? tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx(theme)
2151
- : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))) }),
2152
- virtualPaddingLeft ? (React__default["default"].createElement("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null,
2153
- (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : headerGroup.headers).map((headerOrVirtualHeader) => {
2154
- const header = virtualColumns
2155
- ? headerGroup.headers[headerOrVirtualHeader.index]
2156
- : headerOrVirtualHeader;
2157
- return (React__default["default"].createElement(MRT_TableHeadCell, { header: header, key: header.id, table: table }));
2158
- }),
2159
- virtualPaddingRight ? (React__default["default"].createElement("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null));
1955
+ : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))) }, { children: [virtualPaddingLeft ? (jsxRuntime.jsx("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : headerGroup.headers).map((headerOrVirtualHeader) => {
1956
+ const header = virtualColumns
1957
+ ? headerGroup.headers[headerOrVirtualHeader.index]
1958
+ : headerOrVirtualHeader;
1959
+ return (jsxRuntime.jsx(MRT_TableHeadCell, { header: header, table: table }, header.id));
1960
+ }), virtualPaddingRight ? (jsxRuntime.jsx("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })));
2160
1961
  };
2161
1962
 
2162
1963
  const MRT_TableHead = ({ table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, }) => {
@@ -2166,9 +1967,9 @@ const MRT_TableHead = ({ table, virtualColumns, virtualPaddingLeft, virtualPaddi
2166
1967
  ? muiTableHeadProps({ table })
2167
1968
  : muiTableHeadProps;
2168
1969
  const stickyHeader = enableStickyHeader || isFullScreen;
2169
- return (React__default["default"].createElement(TableHead__default["default"], Object.assign({}, tableHeadProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table-row-group', opacity: 0.97, position: stickyHeader ? 'sticky' : 'relative', top: stickyHeader && layoutMode === 'grid' ? 0 : undefined, zIndex: stickyHeader ? 2 : undefined }, ((tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx) instanceof Function
1970
+ return (jsxRuntime.jsx(TableHead__default["default"], Object.assign({}, tableHeadProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table-row-group', opacity: 0.97, position: stickyHeader ? 'sticky' : 'relative', top: stickyHeader && layoutMode === 'grid' ? 0 : undefined, zIndex: stickyHeader ? 2 : undefined }, ((tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx) instanceof Function
2170
1971
  ? tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx(theme)
2171
- : tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx))) }), getHeaderGroups().map((headerGroup) => (React__default["default"].createElement(MRT_TableHeadRow, { headerGroup: headerGroup, key: headerGroup.id, table: table, virtualColumns: virtualColumns, virtualPaddingLeft: virtualPaddingLeft, virtualPaddingRight: virtualPaddingRight })))));
1972
+ : tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx))) }, { children: getHeaderGroups().map((headerGroup) => (jsxRuntime.jsx(MRT_TableHeadRow, { headerGroup: headerGroup, table: table, virtualColumns: virtualColumns, virtualPaddingLeft: virtualPaddingLeft, virtualPaddingRight: virtualPaddingRight }, headerGroup.id))) })));
2172
1973
  };
2173
1974
 
2174
1975
  const MRT_EditCellTextField = ({ cell, showLabel, table, }) => {
@@ -2177,7 +1978,7 @@ const MRT_EditCellTextField = ({ cell, showLabel, table, }) => {
2177
1978
  const { column, row } = cell;
2178
1979
  const { columnDef } = column;
2179
1980
  const { editingRow } = getState();
2180
- const [value, setValue] = React.useState(() => cell.getValue());
1981
+ const [value, setValue] = react.useState(() => cell.getValue());
2181
1982
  const mTableBodyCellEditTextFieldProps = muiTableBodyCellEditTextFieldProps instanceof Function
2182
1983
  ? muiTableBodyCellEditTextFieldProps({ cell, column, row, table })
2183
1984
  : muiTableBodyCellEditTextFieldProps;
@@ -2218,9 +2019,9 @@ const MRT_EditCellTextField = ({ cell, showLabel, table, }) => {
2218
2019
  }
2219
2020
  };
2220
2021
  if (columnDef.Edit) {
2221
- return React__default["default"].createElement(React__default["default"].Fragment, null, (_a = columnDef.Edit) === null || _a === void 0 ? void 0 : _a.call(columnDef, { cell, column, row, table }));
2022
+ return jsxRuntime.jsx(jsxRuntime.Fragment, { children: (_a = columnDef.Edit) === null || _a === void 0 ? void 0 : _a.call(columnDef, { cell, column, row, table }) });
2222
2023
  }
2223
- return (React__default["default"].createElement(TextField__default["default"], Object.assign({ disabled: (columnDef.enableEditing instanceof Function
2024
+ return (jsxRuntime.jsx(TextField__default["default"], Object.assign({ disabled: (columnDef.enableEditing instanceof Function
2224
2025
  ? columnDef.enableEditing(row)
2225
2026
  : columnDef.enableEditing) === false, fullWidth: true, inputRef: (inputRef) => {
2226
2027
  if (inputRef) {
@@ -2233,24 +2034,24 @@ const MRT_EditCellTextField = ({ cell, showLabel, table, }) => {
2233
2034
  var _a;
2234
2035
  e.stopPropagation();
2235
2036
  (_a = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.onClick) === null || _a === void 0 ? void 0 : _a.call(textFieldProps, e);
2236
- }, onBlur: handleBlur, onChange: handleChange, onKeyDown: handleEnterKeyDown }), (_b = textFieldProps.children) !== null && _b !== void 0 ? _b : (_c = columnDef === null || columnDef === void 0 ? void 0 : columnDef.editSelectOptions) === null || _c === void 0 ? void 0 : _c.map((option) => {
2237
- let value;
2238
- let text;
2239
- if (typeof option !== 'object') {
2240
- value = option;
2241
- text = option;
2242
- }
2243
- else {
2244
- value = option.value;
2245
- text = option.text;
2246
- }
2247
- return (React__default["default"].createElement(MenuItem__default["default"], { key: value, sx: {
2248
- display: 'flex',
2249
- m: 0,
2250
- alignItems: 'center',
2251
- gap: '0.5rem',
2252
- }, value: value }, text));
2253
- })));
2037
+ }, onBlur: handleBlur, onChange: handleChange, onKeyDown: handleEnterKeyDown }, { children: (_b = textFieldProps.children) !== null && _b !== void 0 ? _b : (_c = columnDef === null || columnDef === void 0 ? void 0 : columnDef.editSelectOptions) === null || _c === void 0 ? void 0 : _c.map((option) => {
2038
+ let value;
2039
+ let text;
2040
+ if (typeof option !== 'object') {
2041
+ value = option;
2042
+ text = option;
2043
+ }
2044
+ else {
2045
+ value = option.value;
2046
+ text = option.text;
2047
+ }
2048
+ return (jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ sx: {
2049
+ display: 'flex',
2050
+ m: 0,
2051
+ alignItems: 'center',
2052
+ gap: '0.5rem',
2053
+ }, value: value }, { children: text }), value));
2054
+ }) })));
2254
2055
  };
2255
2056
 
2256
2057
  const MRT_CopyButton = ({ cell, children, table, }) => {
@@ -2258,7 +2059,7 @@ const MRT_CopyButton = ({ cell, children, table, }) => {
2258
2059
  const { options: { localization, muiTableBodyCellCopyButtonProps }, } = table;
2259
2060
  const { column, row } = cell;
2260
2061
  const { columnDef } = column;
2261
- const [copied, setCopied] = React.useState(false);
2062
+ const [copied, setCopied] = react.useState(false);
2262
2063
  const handleCopy = (event, text) => {
2263
2064
  event.stopPropagation();
2264
2065
  navigator.clipboard.writeText(text);
@@ -2277,10 +2078,9 @@ const MRT_CopyButton = ({ cell, children, table, }) => {
2277
2078
  })
2278
2079
  : columnDef.muiTableBodyCellCopyButtonProps;
2279
2080
  const buttonProps = Object.assign(Object.assign({}, mTableBodyCellCopyButtonProps), mcTableBodyCellCopyButtonProps);
2280
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_a = buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.title) !== null && _a !== void 0 ? _a : (copied ? localization.copiedToClipboard : localization.clickToCopy) },
2281
- React__default["default"].createElement(Button__default["default"], Object.assign({ onClick: (e) => handleCopy(e, cell.getValue()), size: "small", type: "button", variant: "text" }, buttonProps, { sx: (theme) => (Object.assign({ backgroundColor: 'transparent', border: 'none', color: 'inherit', cursor: 'copy', fontFamily: 'inherit', fontSize: 'inherit', letterSpacing: 'inherit', m: '-0.25rem', minWidth: 'unset', textAlign: 'inherit', textTransform: 'inherit' }, ((buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.sx) instanceof Function
2081
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_a = buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.title) !== null && _a !== void 0 ? _a : (copied ? localization.copiedToClipboard : localization.clickToCopy) }, { children: jsxRuntime.jsx(Button__default["default"], Object.assign({ onClick: (e) => handleCopy(e, cell.getValue()), size: "small", type: "button", variant: "text" }, buttonProps, { sx: (theme) => (Object.assign({ backgroundColor: 'transparent', border: 'none', color: 'inherit', cursor: 'copy', fontFamily: 'inherit', fontSize: 'inherit', letterSpacing: 'inherit', m: '-0.25rem', minWidth: 'unset', textAlign: 'inherit', textTransform: 'inherit' }, ((buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.sx) instanceof Function
2282
2082
  ? buttonProps.sx(theme)
2283
- : buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.sx))), title: undefined }), children)));
2083
+ : buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.sx))), title: undefined }, { children: children })) })));
2284
2084
  };
2285
2085
 
2286
2086
  const MRT_TableBodyRowGrabHandle = ({ cell, rowRef, table }) => {
@@ -2301,7 +2101,7 @@ const MRT_TableBodyRowGrabHandle = ({ cell, rowRef, table }) => {
2301
2101
  table.setDraggingRow(null);
2302
2102
  table.setHoveredRow(null);
2303
2103
  };
2304
- return (React__default["default"].createElement(MRT_GrabHandleButton, { iconButtonProps: iconButtonProps, onDragStart: handleDragStart, onDragEnd: handleDragEnd, table: table }));
2104
+ return (jsxRuntime.jsx(MRT_GrabHandleButton, { iconButtonProps: iconButtonProps, onDragStart: handleDragStart, onDragEnd: handleDragEnd, table: table }));
2305
2105
  };
2306
2106
 
2307
2107
  const allowedTypes = ['string', 'number'];
@@ -2349,16 +2149,16 @@ const MRT_TableBodyCellValue = ({ cell, table }) => {
2349
2149
  matchExactly: (filterValue ? columnDef._filterFn : globalFilterFn) !== 'fuzzy',
2350
2150
  });
2351
2151
  if ((chunks === null || chunks === void 0 ? void 0 : chunks.length) > 1 || ((_b = chunks === null || chunks === void 0 ? void 0 : chunks[0]) === null || _b === void 0 ? void 0 : _b.match)) {
2352
- renderedCellValue = (React__default["default"].createElement("span", { "aria-label": renderedCellValue, role: "note" }, (_c = chunks === null || chunks === void 0 ? void 0 : chunks.map(({ key, match, text }) => (React__default["default"].createElement(Box__default["default"], { "aria-hidden": "true", component: "span", key: key, sx: match
2353
- ? {
2354
- backgroundColor: (theme) => theme.palette.mode === 'dark'
2355
- ? styles.darken(theme.palette.warning.dark, 0.25)
2356
- : styles.lighten(theme.palette.warning.light, 0.5),
2357
- borderRadius: '2px',
2358
- color: (theme) => theme.palette.mode === 'dark' ? 'white' : 'black',
2359
- padding: '2px 1px',
2360
- }
2361
- : undefined }, text)))) !== null && _c !== void 0 ? _c : renderedCellValue));
2152
+ renderedCellValue = (jsxRuntime.jsx("span", Object.assign({ "aria-label": renderedCellValue, role: "note" }, { children: (_c = chunks === null || chunks === void 0 ? void 0 : chunks.map(({ key, match, text }) => (jsxRuntime.jsx(Box__default["default"], Object.assign({ "aria-hidden": "true", component: "span", sx: match
2153
+ ? {
2154
+ backgroundColor: (theme) => theme.palette.mode === 'dark'
2155
+ ? styles.darken(theme.palette.warning.dark, 0.25)
2156
+ : styles.lighten(theme.palette.warning.light, 0.5),
2157
+ borderRadius: '2px',
2158
+ color: (theme) => theme.palette.mode === 'dark' ? 'white' : 'black',
2159
+ padding: '2px 1px',
2160
+ }
2161
+ : undefined }, { children: text }), key)))) !== null && _c !== void 0 ? _c : renderedCellValue })));
2362
2162
  }
2363
2163
  }
2364
2164
  if (columnDef.Cell && !isGroupedValue) {
@@ -2370,7 +2170,7 @@ const MRT_TableBodyCellValue = ({ cell, table }) => {
2370
2170
  table,
2371
2171
  });
2372
2172
  }
2373
- return React__default["default"].createElement(React__default["default"].Fragment, null, renderedCellValue);
2173
+ return jsxRuntime.jsx(jsxRuntime.Fragment, { children: renderedCellValue });
2374
2174
  };
2375
2175
 
2376
2176
  const MRT_TableBodyCell = ({ cell, measureElement, numRows, rowIndex, rowRef, table, virtualCell, }) => {
@@ -2391,14 +2191,14 @@ const MRT_TableBodyCell = ({ cell, measureElement, numRows, rowIndex, rowRef, ta
2391
2191
  const skeletonProps = muiTableBodyCellSkeletonProps instanceof Function
2392
2192
  ? muiTableBodyCellSkeletonProps({ cell, column, row, table })
2393
2193
  : muiTableBodyCellSkeletonProps;
2394
- const [skeletonWidth, setSkeletonWidth] = React.useState(0);
2395
- React.useEffect(() => setSkeletonWidth(isLoading || showSkeletons
2194
+ const [skeletonWidth, setSkeletonWidth] = react.useState(0);
2195
+ react.useEffect(() => setSkeletonWidth(isLoading || showSkeletons
2396
2196
  ? columnDefType === 'display'
2397
2197
  ? column.getSize() / 2
2398
2198
  : Math.round(Math.random() * (column.getSize() - column.getSize() / 3) +
2399
2199
  column.getSize() / 3)
2400
2200
  : 100), []);
2401
- const draggingBorders = React.useMemo(() => {
2201
+ const draggingBorders = react.useMemo(() => {
2402
2202
  const isDraggingColumn = (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) === column.id;
2403
2203
  const isHoveredColumn = (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id;
2404
2204
  const isDraggingRow = (draggingRow === null || draggingRow === void 0 ? void 0 : draggingRow.id) === row.id;
@@ -2465,7 +2265,7 @@ const MRT_TableBodyCell = ({ cell, measureElement, numRows, rowIndex, rowRef, ta
2465
2265
  setHoveredColumn(columnDef.enableColumnOrdering !== false ? column : null);
2466
2266
  }
2467
2267
  };
2468
- return (React__default["default"].createElement(TableCell__default["default"], Object.assign({ "data-index": virtualCell === null || virtualCell === void 0 ? void 0 : virtualCell.index, ref: (node) => {
2268
+ return (jsxRuntime.jsx(TableCell__default["default"], Object.assign({ "data-index": virtualCell === null || virtualCell === void 0 ? void 0 : virtualCell.index, ref: (node) => {
2469
2269
  if (node) {
2470
2270
  measureElement === null || measureElement === void 0 ? void 0 : measureElement(node);
2471
2271
  }
@@ -2497,28 +2297,21 @@ const MRT_TableBodyCell = ({ cell, measureElement, numRows, rowIndex, rowRef, ta
2497
2297
  table,
2498
2298
  theme,
2499
2299
  tableCellProps,
2500
- })), draggingBorders)) }),
2501
- React__default["default"].createElement(React__default["default"].Fragment, null,
2502
- cell.getIsPlaceholder() ? ((_b = (_a = columnDef.PlaceholderCell) === null || _a === void 0 ? void 0 : _a.call(columnDef, { cell, column, row, table })) !== null && _b !== void 0 ? _b : null) : isLoading || showSkeletons ? (React__default["default"].createElement(Skeleton__default["default"], Object.assign({ animation: "wave", height: 20, width: skeletonWidth }, skeletonProps))) : enableRowNumbers &&
2503
- rowNumberMode === 'static' &&
2504
- column.id === 'mrt-row-numbers' ? (rowIndex + 1) : column.id === 'mrt-row-drag' ? (React__default["default"].createElement(MRT_TableBodyRowGrabHandle, { cell: cell, rowRef: rowRef, table: table })) : columnDefType === 'display' &&
2505
- (column.id === 'mrt-row-select' ||
2506
- column.id === 'mrt-row-expand' ||
2507
- !row.getIsGrouped()) ? ((_c = columnDef.Cell) === null || _c === void 0 ? void 0 : _c.call(columnDef, {
2508
- cell,
2509
- renderedCellValue: cell.renderValue(),
2510
- column,
2511
- row,
2512
- table,
2513
- })) : isEditing ? (React__default["default"].createElement(MRT_EditCellTextField, { cell: cell, table: table })) : (enableClickToCopy || columnDef.enableClickToCopy) &&
2514
- columnDef.enableClickToCopy !== false ? (React__default["default"].createElement(MRT_CopyButton, { cell: cell, table: table },
2515
- React__default["default"].createElement(MRT_TableBodyCellValue, { cell: cell, table: table }))) : (React__default["default"].createElement(MRT_TableBodyCellValue, { cell: cell, table: table })),
2516
- cell.getIsGrouped() && !columnDef.GroupedCell && (React__default["default"].createElement(React__default["default"].Fragment, null,
2517
- " (", (_d = row.subRows) === null || _d === void 0 ? void 0 :
2518
- _d.length,
2519
- ")")))));
2300
+ })), draggingBorders)) }, { children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [cell.getIsPlaceholder() ? ((_b = (_a = columnDef.PlaceholderCell) === null || _a === void 0 ? void 0 : _a.call(columnDef, { cell, column, row, table })) !== null && _b !== void 0 ? _b : null) : isLoading || showSkeletons ? (jsxRuntime.jsx(Skeleton__default["default"], Object.assign({ animation: "wave", height: 20, width: skeletonWidth }, skeletonProps))) : enableRowNumbers &&
2301
+ rowNumberMode === 'static' &&
2302
+ column.id === 'mrt-row-numbers' ? (rowIndex + 1) : column.id === 'mrt-row-drag' ? (jsxRuntime.jsx(MRT_TableBodyRowGrabHandle, { cell: cell, rowRef: rowRef, table: table })) : columnDefType === 'display' &&
2303
+ (column.id === 'mrt-row-select' ||
2304
+ column.id === 'mrt-row-expand' ||
2305
+ !row.getIsGrouped()) ? ((_c = columnDef.Cell) === null || _c === void 0 ? void 0 : _c.call(columnDef, {
2306
+ cell,
2307
+ renderedCellValue: cell.renderValue(),
2308
+ column,
2309
+ row,
2310
+ table,
2311
+ })) : isEditing ? (jsxRuntime.jsx(MRT_EditCellTextField, { cell: cell, table: table })) : (enableClickToCopy || columnDef.enableClickToCopy) &&
2312
+ columnDef.enableClickToCopy !== false ? (jsxRuntime.jsx(MRT_CopyButton, Object.assign({ cell: cell, table: table }, { children: jsxRuntime.jsx(MRT_TableBodyCellValue, { cell: cell, table: table }) }))) : (jsxRuntime.jsx(MRT_TableBodyCellValue, { cell: cell, table: table })), cell.getIsGrouped() && !columnDef.GroupedCell && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [" (", (_d = row.subRows) === null || _d === void 0 ? void 0 : _d.length, ")"] }))] }) })));
2520
2313
  };
2521
- const Memo_MRT_TableBodyCell = React.memo(MRT_TableBodyCell, (prev, next) => next.cell === prev.cell);
2314
+ const Memo_MRT_TableBodyCell = react.memo(MRT_TableBodyCell, (prev, next) => next.cell === prev.cell);
2522
2315
 
2523
2316
  const MRT_TableDetailPanel = ({ parentRowRef, row, rowIndex, table, virtualRow, }) => {
2524
2317
  const { getVisibleLeafColumns, getState, options: { layoutMode, muiTableBodyRowProps, muiTableDetailPanelProps, renderDetailPanel, }, } = table;
@@ -2534,7 +2327,7 @@ const MRT_TableDetailPanel = ({ parentRowRef, row, rowIndex, table, virtualRow,
2534
2327
  const tableCellProps = muiTableDetailPanelProps instanceof Function
2535
2328
  ? muiTableDetailPanelProps({ row, table })
2536
2329
  : muiTableDetailPanelProps;
2537
- return (React__default["default"].createElement(TableRow__default["default"], Object.assign({ className: "Mui-TableBodyCell-DetailPanel" }, tableRowProps, { sx: (theme) => {
2330
+ return (jsxRuntime.jsx(TableRow__default["default"], Object.assign({ className: "Mui-TableBodyCell-DetailPanel" }, tableRowProps, { sx: (theme) => {
2538
2331
  var _a, _b;
2539
2332
  return (Object.assign({ display: layoutMode === 'grid' ? 'flex' : 'table-row', position: virtualRow ? 'absolute' : undefined, top: virtualRow
2540
2333
  ? `${(_b = (_a = parentRowRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.height}px`
@@ -2543,12 +2336,11 @@ const MRT_TableDetailPanel = ({ parentRowRef, row, rowIndex, table, virtualRow,
2543
2336
  : undefined, width: '100%', zIndex: virtualRow ? 2 : undefined }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2544
2337
  ? tableRowProps.sx(theme)
2545
2338
  : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx)));
2546
- } }),
2547
- React__default["default"].createElement(TableCell__default["default"], Object.assign({ className: "Mui-TableBodyCell-DetailPanel", colSpan: getVisibleLeafColumns().length }, tableCellProps, { sx: (theme) => (Object.assign({ backgroundColor: virtualRow
2339
+ } }, { children: jsxRuntime.jsx(TableCell__default["default"], Object.assign({ className: "Mui-TableBodyCell-DetailPanel", colSpan: getVisibleLeafColumns().length }, tableCellProps, { sx: (theme) => (Object.assign({ backgroundColor: virtualRow
2548
2340
  ? styles.lighten(theme.palette.background.default, 0.06)
2549
2341
  : undefined, borderBottom: !row.getIsExpanded() ? 'none' : undefined, display: layoutMode === 'grid' ? 'flex' : 'table-cell', pb: row.getIsExpanded() ? '1rem' : 0, pt: row.getIsExpanded() ? '1rem' : 0, transition: 'all 150ms ease-in-out', width: `${table.getTotalSize()}px` }, ((tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.sx) instanceof Function
2550
2342
  ? tableCellProps.sx(theme)
2551
- : tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.sx))) }), renderDetailPanel && (React__default["default"].createElement(Collapse__default["default"], { in: row.getIsExpanded(), mountOnEnter: true, unmountOnExit: true }, !isLoading && renderDetailPanel({ row, table }))))));
2343
+ : tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.sx))) }, { children: renderDetailPanel && (jsxRuntime.jsx(Collapse__default["default"], Object.assign({ in: row.getIsExpanded(), mountOnEnter: true, unmountOnExit: true }, { children: !isLoading && renderDetailPanel({ row, table }) }))) })) })));
2552
2344
  };
2553
2345
 
2554
2346
  const MRT_TableBodyRow = ({ columnVirtualizer, measureElement, numRows, row, rowIndex, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, virtualRow, }) => {
@@ -2562,54 +2354,49 @@ const MRT_TableBodyRow = ({ columnVirtualizer, measureElement, numRows, row, row
2562
2354
  setHoveredRow(row);
2563
2355
  }
2564
2356
  };
2565
- const rowRef = React.useRef(null);
2566
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
2567
- React__default["default"].createElement(TableRow__default["default"], Object.assign({ "data-index": virtualRow === null || virtualRow === void 0 ? void 0 : virtualRow.index, onDragEnter: handleDragEnter, selected: row.getIsSelected(), ref: (node) => {
2568
- if (node) {
2569
- rowRef.current = node;
2570
- measureElement === null || measureElement === void 0 ? void 0 : measureElement(node);
2571
- }
2572
- } }, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: styles.lighten(theme.palette.background.default, 0.06), boxSizing: 'border-box', display: layoutMode === 'grid' ? 'flex' : 'table-row', opacity: (draggingRow === null || draggingRow === void 0 ? void 0 : draggingRow.id) === row.id || (hoveredRow === null || hoveredRow === void 0 ? void 0 : hoveredRow.id) === row.id ? 0.5 : 1, position: virtualRow ? 'absolute' : undefined, transition: virtualRow ? 'none' : 'all 150ms ease-in-out', top: virtualRow ? 0 : undefined, width: '100%', '&:hover td': {
2573
- backgroundColor: (tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.hover) !== false
2574
- ? row.getIsSelected()
2575
- ? `${styles.alpha(theme.palette.primary.main, 0.2)}`
2576
- : theme.palette.mode === 'dark'
2577
- ? `${styles.lighten(theme.palette.background.default, 0.12)}`
2578
- : `${styles.darken(theme.palette.background.default, 0.05)}`
2579
- : undefined,
2580
- } }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2581
- ? tableRowProps.sx(theme)
2582
- : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))), style: Object.assign({ transform: virtualRow
2583
- ? `translateY(${virtualRow === null || virtualRow === void 0 ? void 0 : virtualRow.start}px)`
2584
- : undefined }, tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.style) }),
2585
- virtualPaddingLeft ? (React__default["default"].createElement("td", { style: { display: 'flex', width: virtualPaddingLeft } })) : null,
2586
- (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : row.getVisibleCells()).map((cellOrVirtualCell) => {
2587
- const cell = columnVirtualizer
2588
- ? row.getVisibleCells()[cellOrVirtualCell.index]
2589
- : cellOrVirtualCell;
2590
- const props = {
2591
- cell,
2592
- key: cell.id,
2593
- measureElement: columnVirtualizer === null || columnVirtualizer === void 0 ? void 0 : columnVirtualizer.measureElement,
2594
- numRows,
2595
- rowIndex,
2596
- rowRef,
2597
- table,
2598
- virtualCell: columnVirtualizer
2599
- ? cellOrVirtualCell
2600
- : undefined,
2601
- };
2602
- return memoMode === 'cells' &&
2603
- cell.column.columnDef.columnDefType === 'data' &&
2604
- !draggingColumn &&
2605
- !draggingRow &&
2606
- (editingCell === null || editingCell === void 0 ? void 0 : editingCell.id) !== cell.id &&
2607
- (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) !== row.id ? (React__default["default"].createElement(Memo_MRT_TableBodyCell, Object.assign({}, props))) : (React__default["default"].createElement(MRT_TableBodyCell, Object.assign({}, props)));
2608
- }),
2609
- virtualPaddingRight ? (React__default["default"].createElement("td", { style: { display: 'flex', width: virtualPaddingRight } })) : null),
2610
- renderDetailPanel && !row.getIsGrouped() && (React__default["default"].createElement(MRT_TableDetailPanel, { parentRowRef: rowRef, row: row, rowIndex: rowIndex, table: table, virtualRow: virtualRow }))));
2611
- };
2612
- const Memo_MRT_TableBodyRow = React.memo(MRT_TableBodyRow, (prev, next) => prev.row === next.row && prev.rowIndex === next.rowIndex);
2357
+ const rowRef = react.useRef(null);
2358
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(TableRow__default["default"], Object.assign({ "data-index": virtualRow === null || virtualRow === void 0 ? void 0 : virtualRow.index, onDragEnter: handleDragEnter, selected: row.getIsSelected(), ref: (node) => {
2359
+ if (node) {
2360
+ rowRef.current = node;
2361
+ measureElement === null || measureElement === void 0 ? void 0 : measureElement(node);
2362
+ }
2363
+ } }, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: styles.lighten(theme.palette.background.default, 0.06), boxSizing: 'border-box', display: layoutMode === 'grid' ? 'flex' : 'table-row', opacity: (draggingRow === null || draggingRow === void 0 ? void 0 : draggingRow.id) === row.id || (hoveredRow === null || hoveredRow === void 0 ? void 0 : hoveredRow.id) === row.id ? 0.5 : 1, position: virtualRow ? 'absolute' : undefined, transition: virtualRow ? 'none' : 'all 150ms ease-in-out', top: virtualRow ? 0 : undefined, width: '100%', '&:hover td': {
2364
+ backgroundColor: (tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.hover) !== false
2365
+ ? row.getIsSelected()
2366
+ ? `${styles.alpha(theme.palette.primary.main, 0.2)}`
2367
+ : theme.palette.mode === 'dark'
2368
+ ? `${styles.lighten(theme.palette.background.default, 0.12)}`
2369
+ : `${styles.darken(theme.palette.background.default, 0.05)}`
2370
+ : undefined,
2371
+ } }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2372
+ ? tableRowProps.sx(theme)
2373
+ : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))), style: Object.assign({ transform: virtualRow
2374
+ ? `translateY(${virtualRow === null || virtualRow === void 0 ? void 0 : virtualRow.start}px)`
2375
+ : undefined }, tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.style) }, { children: [virtualPaddingLeft ? (jsxRuntime.jsx("td", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : row.getVisibleCells()).map((cellOrVirtualCell) => {
2376
+ const cell = columnVirtualizer
2377
+ ? row.getVisibleCells()[cellOrVirtualCell.index]
2378
+ : cellOrVirtualCell;
2379
+ const props = {
2380
+ cell,
2381
+ key: cell.id,
2382
+ measureElement: columnVirtualizer === null || columnVirtualizer === void 0 ? void 0 : columnVirtualizer.measureElement,
2383
+ numRows,
2384
+ rowIndex,
2385
+ rowRef,
2386
+ table,
2387
+ virtualCell: columnVirtualizer
2388
+ ? cellOrVirtualCell
2389
+ : undefined,
2390
+ };
2391
+ return memoMode === 'cells' &&
2392
+ cell.column.columnDef.columnDefType === 'data' &&
2393
+ !draggingColumn &&
2394
+ !draggingRow &&
2395
+ (editingCell === null || editingCell === void 0 ? void 0 : editingCell.id) !== cell.id &&
2396
+ (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) !== row.id ? (jsxRuntime.jsx(Memo_MRT_TableBodyCell, Object.assign({}, props))) : (jsxRuntime.jsx(MRT_TableBodyCell, Object.assign({}, props)));
2397
+ }), virtualPaddingRight ? (jsxRuntime.jsx("td", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })), renderDetailPanel && !row.getIsGrouped() && (jsxRuntime.jsx(MRT_TableDetailPanel, { parentRowRef: rowRef, row: row, rowIndex: rowIndex, table: table, virtualRow: virtualRow }))] }));
2398
+ };
2399
+ const Memo_MRT_TableBodyRow = react.memo(MRT_TableBodyRow, (prev, next) => prev.row === next.row && prev.rowIndex === next.rowIndex);
2613
2400
 
2614
2401
  const MRT_TableBody = ({ columnVirtualizer, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, }) => {
2615
2402
  var _a, _b, _c, _d;
@@ -2624,7 +2411,7 @@ const MRT_TableBody = ({ columnVirtualizer, table, virtualColumns, virtualPaddin
2624
2411
  const vProps = rowVirtualizerProps instanceof Function
2625
2412
  ? rowVirtualizerProps({ table })
2626
2413
  : rowVirtualizerProps;
2627
- const shouldRankResults = React.useMemo(() => !manualExpanding &&
2414
+ const shouldRankResults = react.useMemo(() => !manualExpanding &&
2628
2415
  !manualFiltering &&
2629
2416
  !manualGrouping &&
2630
2417
  !manualSorting &&
@@ -2643,7 +2430,7 @@ const MRT_TableBody = ({ columnVirtualizer, table, virtualColumns, virtualPaddin
2643
2430
  manualSorting,
2644
2431
  sorting,
2645
2432
  ]);
2646
- const rows = React.useMemo(() => {
2433
+ const rows = react.useMemo(() => {
2647
2434
  if (!shouldRankResults)
2648
2435
  return getRowModel().rows;
2649
2436
  const rankedRows = getPrePaginationRowModel().rows.sort((a, b) => rankGlobalFuzzy(a, b));
@@ -2674,45 +2461,44 @@ const MRT_TableBody = ({ columnVirtualizer, table, virtualColumns, virtualPaddin
2674
2461
  const virtualRows = rowVirtualizer
2675
2462
  ? rowVirtualizer.getVirtualItems()
2676
2463
  : undefined;
2677
- return (React__default["default"].createElement(TableBody__default["default"], Object.assign({}, tableBodyProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table-row-group', height: rowVirtualizer
2464
+ return (jsxRuntime.jsx(TableBody__default["default"], Object.assign({}, tableBodyProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table-row-group', height: rowVirtualizer
2678
2465
  ? `${rowVirtualizer.getTotalSize()}px`
2679
2466
  : 'inherit', minHeight: !rows.length ? '100px' : undefined, position: 'relative' }, ((tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.sx) instanceof Function
2680
2467
  ? tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.sx(theme)
2681
- : tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.sx))) }), (_a = tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.children) !== null && _a !== void 0 ? _a : (!rows.length ? (React__default["default"].createElement("tr", { style: { display: layoutMode === 'grid' ? 'grid' : 'table-row' } },
2682
- React__default["default"].createElement("td", { colSpan: table.getVisibleLeafColumns().length, style: {
2683
- display: layoutMode === 'grid' ? 'grid' : 'table-cell',
2684
- } }, (_b = renderEmptyRowsFallback === null || renderEmptyRowsFallback === void 0 ? void 0 : renderEmptyRowsFallback({ table })) !== null && _b !== void 0 ? _b : (React__default["default"].createElement(Typography__default["default"], { sx: {
2685
- color: 'text.secondary',
2686
- fontStyle: 'italic',
2687
- maxWidth: `min(100vw, ${(_d = (_c = tablePaperRef.current) === null || _c === void 0 ? void 0 : _c.clientWidth) !== null && _d !== void 0 ? _d : 360}px)`,
2688
- py: '2rem',
2689
- textAlign: 'center',
2690
- width: '100%',
2691
- } }, globalFilter || columnFilters.length
2692
- ? localization.noResultsFound
2693
- : localization.noRecordsToDisplay))))) : (React__default["default"].createElement(React__default["default"].Fragment, null, (virtualRows !== null && virtualRows !== void 0 ? virtualRows : rows).map((rowOrVirtualRow, rowIndex) => {
2694
- const row = rowVirtualizer
2695
- ? rows[rowOrVirtualRow.index]
2696
- : rowOrVirtualRow;
2697
- const props = {
2698
- columnVirtualizer,
2699
- key: row.id,
2700
- measureElement: rowVirtualizer === null || rowVirtualizer === void 0 ? void 0 : rowVirtualizer.measureElement,
2701
- numRows: rows.length,
2702
- row,
2703
- rowIndex: rowVirtualizer ? rowOrVirtualRow.index : rowIndex,
2704
- table,
2705
- virtualColumns,
2706
- virtualPaddingLeft,
2707
- virtualPaddingRight,
2708
- virtualRow: rowVirtualizer
2709
- ? rowOrVirtualRow
2710
- : undefined,
2711
- };
2712
- return memoMode === 'rows' ? (React__default["default"].createElement(Memo_MRT_TableBodyRow, Object.assign({}, props))) : (React__default["default"].createElement(MRT_TableBodyRow, Object.assign({}, props)));
2713
- }))))));
2468
+ : tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.sx))) }, { children: (_a = tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.children) !== null && _a !== void 0 ? _a : (!rows.length ? (jsxRuntime.jsx("tr", Object.assign({ style: { display: layoutMode === 'grid' ? 'grid' : 'table-row' } }, { children: jsxRuntime.jsx("td", Object.assign({ colSpan: table.getVisibleLeafColumns().length, style: {
2469
+ display: layoutMode === 'grid' ? 'grid' : 'table-cell',
2470
+ } }, { children: (_b = renderEmptyRowsFallback === null || renderEmptyRowsFallback === void 0 ? void 0 : renderEmptyRowsFallback({ table })) !== null && _b !== void 0 ? _b : (jsxRuntime.jsx(Typography__default["default"], Object.assign({ sx: {
2471
+ color: 'text.secondary',
2472
+ fontStyle: 'italic',
2473
+ maxWidth: `min(100vw, ${(_d = (_c = tablePaperRef.current) === null || _c === void 0 ? void 0 : _c.clientWidth) !== null && _d !== void 0 ? _d : 360}px)`,
2474
+ py: '2rem',
2475
+ textAlign: 'center',
2476
+ width: '100%',
2477
+ } }, { children: globalFilter || columnFilters.length
2478
+ ? localization.noResultsFound
2479
+ : localization.noRecordsToDisplay }))) })) }))) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: (virtualRows !== null && virtualRows !== void 0 ? virtualRows : rows).map((rowOrVirtualRow, rowIndex) => {
2480
+ const row = rowVirtualizer
2481
+ ? rows[rowOrVirtualRow.index]
2482
+ : rowOrVirtualRow;
2483
+ const props = {
2484
+ columnVirtualizer,
2485
+ key: row.id,
2486
+ measureElement: rowVirtualizer === null || rowVirtualizer === void 0 ? void 0 : rowVirtualizer.measureElement,
2487
+ numRows: rows.length,
2488
+ row,
2489
+ rowIndex: rowVirtualizer ? rowOrVirtualRow.index : rowIndex,
2490
+ table,
2491
+ virtualColumns,
2492
+ virtualPaddingLeft,
2493
+ virtualPaddingRight,
2494
+ virtualRow: rowVirtualizer
2495
+ ? rowOrVirtualRow
2496
+ : undefined,
2497
+ };
2498
+ return memoMode === 'rows' ? (jsxRuntime.jsx(Memo_MRT_TableBodyRow, Object.assign({}, props))) : (jsxRuntime.jsx(MRT_TableBodyRow, Object.assign({}, props)));
2499
+ }) }))) })));
2714
2500
  };
2715
- const Memo_MRT_TableBody = React.memo(MRT_TableBody, (prev, next) => prev.table.options.data === next.table.options.data);
2501
+ const Memo_MRT_TableBody = react.memo(MRT_TableBody, (prev, next) => prev.table.options.data === next.table.options.data);
2716
2502
 
2717
2503
  const MRT_TableFooterCell = ({ footer, table }) => {
2718
2504
  var _a, _b, _c;
@@ -2728,7 +2514,7 @@ const MRT_TableFooterCell = ({ footer, table }) => {
2728
2514
  ? columnDef.muiTableFooterCellProps({ column, table })
2729
2515
  : columnDef.muiTableFooterCellProps;
2730
2516
  const tableCellProps = Object.assign(Object.assign({}, mTableFooterCellProps), mcTableFooterCellProps);
2731
- return (React__default["default"].createElement(TableCell__default["default"], Object.assign({ align: columnDefType === 'group' ? 'center' : 'left', colSpan: footer.colSpan, variant: "head" }, tableCellProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table-cell', fontWeight: 'bold', justifyContent: columnDefType === 'group' ? 'center' : undefined, p: density === 'compact'
2517
+ return (jsxRuntime.jsx(TableCell__default["default"], Object.assign({ align: columnDefType === 'group' ? 'center' : 'left', colSpan: footer.colSpan, variant: "head" }, tableCellProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table-cell', fontWeight: 'bold', justifyContent: columnDefType === 'group' ? 'center' : undefined, p: density === 'compact'
2732
2518
  ? '0.5rem'
2733
2519
  : density === 'comfortable'
2734
2520
  ? '1rem'
@@ -2737,16 +2523,15 @@ const MRT_TableFooterCell = ({ footer, table }) => {
2737
2523
  table,
2738
2524
  theme,
2739
2525
  tableCellProps,
2740
- }))) }),
2741
- React__default["default"].createElement(React__default["default"].Fragment, null, footer.isPlaceholder
2742
- ? null
2743
- : (_c = (_b = (columnDef.Footer instanceof Function
2744
- ? (_a = columnDef.Footer) === null || _a === void 0 ? void 0 : _a.call(columnDef, {
2745
- column,
2746
- footer,
2747
- table,
2748
- })
2749
- : columnDef.Footer)) !== null && _b !== void 0 ? _b : columnDef.footer) !== null && _c !== void 0 ? _c : null)));
2526
+ }))) }, { children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: footer.isPlaceholder
2527
+ ? null
2528
+ : (_c = (_b = (columnDef.Footer instanceof Function
2529
+ ? (_a = columnDef.Footer) === null || _a === void 0 ? void 0 : _a.call(columnDef, {
2530
+ column,
2531
+ footer,
2532
+ table,
2533
+ })
2534
+ : columnDef.Footer)) !== null && _b !== void 0 ? _b : columnDef.footer) !== null && _c !== void 0 ? _c : null }) })));
2750
2535
  };
2751
2536
 
2752
2537
  const MRT_TableFooterRow = ({ footerGroup, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, }) => {
@@ -2760,17 +2545,14 @@ const MRT_TableFooterRow = ({ footerGroup, table, virtualColumns, virtualPadding
2760
2545
  const tableRowProps = muiTableFooterRowProps instanceof Function
2761
2546
  ? muiTableFooterRowProps({ footerGroup, table })
2762
2547
  : muiTableFooterRowProps;
2763
- return (React__default["default"].createElement(TableRow__default["default"], Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: styles.lighten(theme.palette.background.default, 0.04), display: layoutMode === 'grid' ? 'flex' : 'table-row', width: '100%' }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2548
+ return (jsxRuntime.jsxs(TableRow__default["default"], Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: styles.lighten(theme.palette.background.default, 0.04), display: layoutMode === 'grid' ? 'flex' : 'table-row', width: '100%' }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2764
2549
  ? tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx(theme)
2765
- : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))) }),
2766
- virtualPaddingLeft ? (React__default["default"].createElement("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null,
2767
- (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : footerGroup.headers).map((footerOrVirtualFooter) => {
2768
- const footer = virtualColumns
2769
- ? footerGroup.headers[footerOrVirtualFooter.index]
2770
- : footerOrVirtualFooter;
2771
- return (React__default["default"].createElement(MRT_TableFooterCell, { footer: footer, key: footer.id, table: table }));
2772
- }),
2773
- virtualPaddingRight ? (React__default["default"].createElement("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null));
2550
+ : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))) }, { children: [virtualPaddingLeft ? (jsxRuntime.jsx("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : footerGroup.headers).map((footerOrVirtualFooter) => {
2551
+ const footer = virtualColumns
2552
+ ? footerGroup.headers[footerOrVirtualFooter.index]
2553
+ : footerOrVirtualFooter;
2554
+ return (jsxRuntime.jsx(MRT_TableFooterCell, { footer: footer, table: table }, footer.id));
2555
+ }), virtualPaddingRight ? (jsxRuntime.jsx("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })));
2774
2556
  };
2775
2557
 
2776
2558
  const MRT_TableFooter = ({ table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, }) => {
@@ -2780,13 +2562,13 @@ const MRT_TableFooter = ({ table, virtualColumns, virtualPaddingLeft, virtualPad
2780
2562
  ? muiTableFooterProps({ table })
2781
2563
  : muiTableFooterProps;
2782
2564
  const stickFooter = (isFullScreen || enableStickyFooter) && enableStickyFooter !== false;
2783
- return (React__default["default"].createElement(TableFooter__default["default"], Object.assign({}, tableFooterProps, { sx: (theme) => (Object.assign({ bottom: stickFooter ? 0 : undefined, display: layoutMode === 'grid' ? 'grid' : 'table-row-group', opacity: stickFooter ? 0.97 : undefined, outline: stickFooter
2565
+ return (jsxRuntime.jsx(TableFooter__default["default"], Object.assign({}, tableFooterProps, { sx: (theme) => (Object.assign({ bottom: stickFooter ? 0 : undefined, display: layoutMode === 'grid' ? 'grid' : 'table-row-group', opacity: stickFooter ? 0.97 : undefined, outline: stickFooter
2784
2566
  ? theme.palette.mode === 'light'
2785
2567
  ? `1px solid ${theme.palette.grey[300]}`
2786
2568
  : `1px solid ${theme.palette.grey[700]}`
2787
2569
  : undefined, position: stickFooter ? 'sticky' : undefined, zIndex: stickFooter ? 1 : undefined }, ((tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.sx) instanceof Function
2788
2570
  ? tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.sx(theme)
2789
- : tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.sx))) }), getFooterGroups().map((footerGroup) => (React__default["default"].createElement(MRT_TableFooterRow, { footerGroup: footerGroup, key: footerGroup.id, table: table, virtualColumns: virtualColumns, virtualPaddingLeft: virtualPaddingLeft, virtualPaddingRight: virtualPaddingRight })))));
2571
+ : tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.sx))) }, { children: getFooterGroups().map((footerGroup) => (jsxRuntime.jsx(MRT_TableFooterRow, { footerGroup: footerGroup, table: table, virtualColumns: virtualColumns, virtualPaddingLeft: virtualPaddingLeft, virtualPaddingRight: virtualPaddingRight }, footerGroup.id))) })));
2790
2572
  };
2791
2573
 
2792
2574
  const MRT_Table = ({ table }) => {
@@ -2799,7 +2581,7 @@ const MRT_Table = ({ table }) => {
2799
2581
  const vProps = columnVirtualizerProps instanceof Function
2800
2582
  ? columnVirtualizerProps({ table })
2801
2583
  : columnVirtualizerProps;
2802
- const columnSizeVars = React.useMemo(() => {
2584
+ const columnSizeVars = react.useMemo(() => {
2803
2585
  const headers = getFlatHeaders();
2804
2586
  const colSizes = {};
2805
2587
  for (let i = 0; i < headers.length; i++) {
@@ -2811,7 +2593,7 @@ const MRT_Table = ({ table }) => {
2811
2593
  return colSizes;
2812
2594
  }, [columns, columnSizing, columnSizingInfo, columnVisibility]);
2813
2595
  //get first 16 column widths and average them
2814
- const averageColumnWidth = React.useMemo(() => {
2596
+ const averageColumnWidth = react.useMemo(() => {
2815
2597
  var _a, _b, _c, _d;
2816
2598
  if (!enableColumnVirtualization)
2817
2599
  return 0;
@@ -2820,7 +2602,7 @@ const MRT_Table = ({ table }) => {
2820
2602
  .rows[0]) === null || _a === void 0 ? void 0 : _a.getCenterVisibleCells()) === null || _b === void 0 ? void 0 : _b.slice(0, 16)) === null || _c === void 0 ? void 0 : _c.map((cell) => cell.column.getSize() * 1.2)) !== null && _d !== void 0 ? _d : [];
2821
2603
  return columnsWidths.reduce((a, b) => a + b, 0) / columnsWidths.length;
2822
2604
  }, [table.getRowModel().rows, columnPinning, columnVisibility]);
2823
- const [leftPinnedIndexes, rightPinnedIndexes] = React.useMemo(() => enableColumnVirtualization && enablePinning
2605
+ const [leftPinnedIndexes, rightPinnedIndexes] = react.useMemo(() => enableColumnVirtualization && enablePinning
2824
2606
  ? [
2825
2607
  table.getLeftLeafColumns().map((c) => c.getPinnedIndex()),
2826
2608
  table
@@ -2829,7 +2611,7 @@ const MRT_Table = ({ table }) => {
2829
2611
  ]
2830
2612
  : [[], []], [columnPinning, enableColumnVirtualization, enablePinning]);
2831
2613
  const columnVirtualizer = enableColumnVirtualization
2832
- ? reactVirtual.useVirtualizer(Object.assign({ count: table.getVisibleLeafColumns().length, estimateSize: () => averageColumnWidth, getScrollElement: () => tableContainerRef.current, horizontal: true, overscan: 3, rangeExtractor: React.useCallback((range) => [
2614
+ ? reactVirtual.useVirtualizer(Object.assign({ count: table.getVisibleLeafColumns().length, estimateSize: () => averageColumnWidth, getScrollElement: () => tableContainerRef.current, horizontal: true, overscan: 3, rangeExtractor: react.useCallback((range) => [
2833
2615
  ...new Set([
2834
2616
  ...leftPinnedIndexes,
2835
2617
  ...reactVirtual.defaultRangeExtractor(range),
@@ -2857,19 +2639,16 @@ const MRT_Table = ({ table }) => {
2857
2639
  virtualPaddingLeft,
2858
2640
  virtualPaddingRight,
2859
2641
  };
2860
- return (React__default["default"].createElement(Table__default["default"], Object.assign({ stickyHeader: enableStickyHeader || isFullScreen }, tableProps, { sx: (theme) => (Object.assign({ borderCollapse: 'separate', display: layoutMode === 'grid' ? 'grid' : 'table', tableLayout: layoutMode !== 'grid' && enableColumnResizing ? 'fixed' : undefined }, ((tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx) instanceof Function
2642
+ return (jsxRuntime.jsxs(Table__default["default"], Object.assign({ stickyHeader: enableStickyHeader || isFullScreen }, tableProps, { sx: (theme) => (Object.assign({ borderCollapse: 'separate', display: layoutMode === 'grid' ? 'grid' : 'table', tableLayout: layoutMode !== 'grid' && enableColumnResizing ? 'fixed' : undefined }, ((tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx) instanceof Function
2861
2643
  ? tableProps.sx(theme)
2862
- : tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx))), style: Object.assign(Object.assign({}, columnSizeVars), tableProps === null || tableProps === void 0 ? void 0 : tableProps.style) }),
2863
- enableTableHead && React__default["default"].createElement(MRT_TableHead, Object.assign({}, props)),
2864
- memoMode === 'table-body' || columnSizingInfo.isResizingColumn ? (React__default["default"].createElement(Memo_MRT_TableBody, Object.assign({ columnVirtualizer: columnVirtualizer }, props))) : (React__default["default"].createElement(MRT_TableBody, Object.assign({ columnVirtualizer: columnVirtualizer }, props))),
2865
- enableTableFooter && React__default["default"].createElement(MRT_TableFooter, Object.assign({}, props))));
2644
+ : tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx))), style: Object.assign(Object.assign({}, columnSizeVars), tableProps === null || tableProps === void 0 ? void 0 : tableProps.style) }, { children: [enableTableHead && jsxRuntime.jsx(MRT_TableHead, Object.assign({}, props)), memoMode === 'table-body' || columnSizingInfo.isResizingColumn ? (jsxRuntime.jsx(Memo_MRT_TableBody, Object.assign({ columnVirtualizer: columnVirtualizer }, props))) : (jsxRuntime.jsx(MRT_TableBody, Object.assign({ columnVirtualizer: columnVirtualizer }, props))), enableTableFooter && jsxRuntime.jsx(MRT_TableFooter, Object.assign({}, props))] })));
2866
2645
  };
2867
2646
 
2868
- const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
2647
+ const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? react.useLayoutEffect : react.useEffect;
2869
2648
  const MRT_TableContainer = ({ table }) => {
2870
2649
  const { getState, options: { enableStickyHeader, muiTableContainerProps }, refs: { tableContainerRef, bottomToolbarRef, topToolbarRef }, } = table;
2871
2650
  const { isFullScreen } = getState();
2872
- const [totalToolbarHeight, setTotalToolbarHeight] = React.useState(0);
2651
+ const [totalToolbarHeight, setTotalToolbarHeight] = react.useState(0);
2873
2652
  const tableContainerProps = muiTableContainerProps instanceof Function
2874
2653
  ? muiTableContainerProps({ table })
2875
2654
  : muiTableContainerProps;
@@ -2883,7 +2662,7 @@ const MRT_TableContainer = ({ table }) => {
2883
2662
  : 0;
2884
2663
  setTotalToolbarHeight(topToolbarHeight + bottomToolbarHeight);
2885
2664
  });
2886
- return (React__default["default"].createElement(TableContainer__default["default"], Object.assign({}, tableContainerProps, { ref: (node) => {
2665
+ return (jsxRuntime.jsx(TableContainer__default["default"], Object.assign({}, tableContainerProps, { ref: (node) => {
2887
2666
  if (node) {
2888
2667
  tableContainerRef.current = node;
2889
2668
  if (tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.ref) {
@@ -2897,8 +2676,7 @@ const MRT_TableContainer = ({ table }) => {
2897
2676
  ? tableContainerProps.sx(theme)
2898
2677
  : tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.sx))), style: Object.assign({ maxHeight: isFullScreen
2899
2678
  ? `calc(100vh - ${totalToolbarHeight}px)`
2900
- : undefined }, tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.style) }),
2901
- React__default["default"].createElement(MRT_Table, { table: table })));
2679
+ : undefined }, tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.style) }, { children: jsxRuntime.jsx(MRT_Table, { table: table }) })));
2902
2680
  };
2903
2681
 
2904
2682
  const MRT_TablePaper = ({ table }) => {
@@ -2907,7 +2685,7 @@ const MRT_TablePaper = ({ table }) => {
2907
2685
  const tablePaperProps = muiTablePaperProps instanceof Function
2908
2686
  ? muiTablePaperProps({ table })
2909
2687
  : muiTablePaperProps;
2910
- return (React__default["default"].createElement(Paper__default["default"], Object.assign({ elevation: 2 }, tablePaperProps, { ref: (ref) => {
2688
+ return (jsxRuntime.jsxs(Paper__default["default"], Object.assign({ elevation: 2 }, tablePaperProps, { ref: (ref) => {
2911
2689
  tablePaperRef.current = ref;
2912
2690
  if (tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.ref) {
2913
2691
  //@ts-ignore
@@ -2924,48 +2702,39 @@ const MRT_TablePaper = ({ table }) => {
2924
2702
  padding: 0,
2925
2703
  width: '100vw',
2926
2704
  }
2927
- : {})) }),
2928
- enableTopToolbar &&
2929
- (renderTopToolbar instanceof Function
2930
- ? renderTopToolbar({ table })
2931
- : renderTopToolbar !== null && renderTopToolbar !== void 0 ? renderTopToolbar : React__default["default"].createElement(MRT_TopToolbar, { table: table })),
2932
- React__default["default"].createElement(MRT_TableContainer, { table: table }),
2933
- enableBottomToolbar &&
2934
- (renderBottomToolbar instanceof Function
2935
- ? renderBottomToolbar({ table })
2936
- : renderBottomToolbar !== null && renderBottomToolbar !== void 0 ? renderBottomToolbar : React__default["default"].createElement(MRT_BottomToolbar, { table: table }))));
2705
+ : {})) }, { children: [enableTopToolbar &&
2706
+ (renderTopToolbar instanceof Function
2707
+ ? renderTopToolbar({ table })
2708
+ : renderTopToolbar !== null && renderTopToolbar !== void 0 ? renderTopToolbar : jsxRuntime.jsx(MRT_TopToolbar, { table: table })), jsxRuntime.jsx(MRT_TableContainer, { table: table }), enableBottomToolbar &&
2709
+ (renderBottomToolbar instanceof Function
2710
+ ? renderBottomToolbar({ table })
2711
+ : renderBottomToolbar !== null && renderBottomToolbar !== void 0 ? renderBottomToolbar : jsxRuntime.jsx(MRT_BottomToolbar, { table: table }))] })));
2937
2712
  };
2938
2713
 
2939
2714
  const MRT_EditRowModal = ({ open, row, table, }) => {
2940
2715
  const { options: { localization }, } = table;
2941
- return (React__default["default"].createElement(Dialog__default["default"], { open: open },
2942
- React__default["default"].createElement(DialogTitle__default["default"], { textAlign: "center" }, localization.edit),
2943
- React__default["default"].createElement(DialogContent__default["default"], null,
2944
- React__default["default"].createElement("form", { onSubmit: (e) => e.preventDefault() },
2945
- React__default["default"].createElement(Stack__default["default"], { sx: {
2946
- gap: '1.5rem',
2947
- minWidth: { xs: '300px', sm: '360px', md: '400px' },
2948
- pt: '1rem',
2949
- width: '100%',
2950
- } }, row
2951
- .getAllCells()
2952
- .filter((cell) => cell.column.columnDef.columnDefType === 'data')
2953
- .map((cell) => (React__default["default"].createElement(MRT_EditCellTextField, { cell: cell, key: cell.id, showLabel: true, table: table })))))),
2954
- React__default["default"].createElement(DialogActions__default["default"], { sx: { p: '1.25rem' } },
2955
- React__default["default"].createElement(MRT_EditActionButtons, { row: row, table: table, variant: "text" }))));
2716
+ return (jsxRuntime.jsxs(Dialog__default["default"], Object.assign({ open: open }, { children: [jsxRuntime.jsx(DialogTitle__default["default"], Object.assign({ textAlign: "center" }, { children: localization.edit })), jsxRuntime.jsx(DialogContent__default["default"], { children: jsxRuntime.jsx("form", Object.assign({ onSubmit: (e) => e.preventDefault() }, { children: jsxRuntime.jsx(Stack__default["default"], Object.assign({ sx: {
2717
+ gap: '1.5rem',
2718
+ minWidth: { xs: '300px', sm: '360px', md: '400px' },
2719
+ pt: '1rem',
2720
+ width: '100%',
2721
+ } }, { children: row
2722
+ .getAllCells()
2723
+ .filter((cell) => cell.column.columnDef.columnDefType === 'data')
2724
+ .map((cell) => (jsxRuntime.jsx(MRT_EditCellTextField, { cell: cell, showLabel: true, table: table }, cell.id))) })) })) }), jsxRuntime.jsx(DialogActions__default["default"], Object.assign({ sx: { p: '1.25rem' } }, { children: jsxRuntime.jsx(MRT_EditActionButtons, { row: row, table: table, variant: "text" }) }))] })));
2956
2725
  };
2957
2726
 
2958
2727
  const MRT_TableRoot = (props) => {
2959
2728
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13;
2960
- const bottomToolbarRef = React.useRef(null);
2961
- const editInputRefs = React.useRef({});
2962
- const filterInputRefs = React.useRef({});
2963
- const searchInputRef = React.useRef(null);
2964
- const tableContainerRef = React.useRef(null);
2965
- const tableHeadCellRefs = React.useRef({});
2966
- const tablePaperRef = React.useRef(null);
2967
- const topToolbarRef = React.useRef(null);
2968
- const initialState = React.useMemo(() => {
2729
+ const bottomToolbarRef = react.useRef(null);
2730
+ const editInputRefs = react.useRef({});
2731
+ const filterInputRefs = react.useRef({});
2732
+ const searchInputRef = react.useRef(null);
2733
+ const tableContainerRef = react.useRef(null);
2734
+ const tableHeadCellRefs = react.useRef({});
2735
+ const tablePaperRef = react.useRef(null);
2736
+ const topToolbarRef = react.useRef(null);
2737
+ const initialState = react.useMemo(() => {
2969
2738
  var _a, _b, _c;
2970
2739
  const initState = (_a = props.initialState) !== null && _a !== void 0 ? _a : {};
2971
2740
  initState.columnOrder =
@@ -2973,7 +2742,7 @@ const MRT_TableRoot = (props) => {
2973
2742
  initState.globalFilterFn = (_c = props.globalFilterFn) !== null && _c !== void 0 ? _c : 'fuzzy';
2974
2743
  return initState;
2975
2744
  }, []);
2976
- const [columnFilterFns, setColumnFilterFns] = React.useState(() => Object.assign({}, ...getAllLeafColumnDefs(props.columns).map((col) => {
2745
+ const [columnFilterFns, setColumnFilterFns] = react.useState(() => Object.assign({}, ...getAllLeafColumnDefs(props.columns).map((col) => {
2977
2746
  var _a, _b, _c, _d;
2978
2747
  return ({
2979
2748
  [getColumnId(col)]: col.filterFn instanceof Function
@@ -2981,32 +2750,32 @@ const MRT_TableRoot = (props) => {
2981
2750
  : (_d = (_b = col.filterFn) !== null && _b !== void 0 ? _b : (_c = initialState === null || initialState === void 0 ? void 0 : initialState.columnFilterFns) === null || _c === void 0 ? void 0 : _c[getColumnId(col)]) !== null && _d !== void 0 ? _d : getDefaultColumnFilterFn(col),
2982
2751
  });
2983
2752
  })));
2984
- const [columnOrder, setColumnOrder] = React.useState((_a = initialState.columnOrder) !== null && _a !== void 0 ? _a : []);
2985
- const [density, setDensity] = React.useState((_b = initialState === null || initialState === void 0 ? void 0 : initialState.density) !== null && _b !== void 0 ? _b : 'comfortable');
2986
- const [draggingColumn, setDraggingColumn] = React.useState((_c = initialState.draggingColumn) !== null && _c !== void 0 ? _c : null);
2987
- const [draggingRow, setDraggingRow] = React.useState((_d = initialState.draggingRow) !== null && _d !== void 0 ? _d : null);
2988
- const [editingCell, setEditingCell] = React.useState((_e = initialState.editingCell) !== null && _e !== void 0 ? _e : null);
2989
- const [editingRow, setEditingRow] = React.useState((_f = initialState.editingRow) !== null && _f !== void 0 ? _f : null);
2990
- const [globalFilterFn, setGlobalFilterFn] = React.useState((_g = initialState.globalFilterFn) !== null && _g !== void 0 ? _g : 'fuzzy');
2991
- const [grouping, setGrouping] = React.useState((_h = initialState.grouping) !== null && _h !== void 0 ? _h : []);
2992
- const [hoveredColumn, setHoveredColumn] = React.useState((_j = initialState.hoveredColumn) !== null && _j !== void 0 ? _j : null);
2993
- const [hoveredRow, setHoveredRow] = React.useState((_k = initialState.hoveredRow) !== null && _k !== void 0 ? _k : null);
2994
- const [isFullScreen, setIsFullScreen] = React.useState((_l = initialState === null || initialState === void 0 ? void 0 : initialState.isFullScreen) !== null && _l !== void 0 ? _l : false);
2995
- const [showAlertBanner, setShowAlertBanner] = React.useState((_o = (_m = props.initialState) === null || _m === void 0 ? void 0 : _m.showAlertBanner) !== null && _o !== void 0 ? _o : false);
2996
- const [showColumnFilters, setShowColumnFilters] = React.useState((_p = initialState === null || initialState === void 0 ? void 0 : initialState.showColumnFilters) !== null && _p !== void 0 ? _p : false);
2997
- const [showGlobalFilter, setShowGlobalFilter] = React.useState((_q = initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) !== null && _q !== void 0 ? _q : false);
2998
- const [showToolbarDropZone, setShowToolbarDropZone] = React.useState((_r = initialState === null || initialState === void 0 ? void 0 : initialState.showToolbarDropZone) !== null && _r !== void 0 ? _r : false);
2999
- const displayColumns = React.useMemo(() => {
2753
+ const [columnOrder, setColumnOrder] = react.useState((_a = initialState.columnOrder) !== null && _a !== void 0 ? _a : []);
2754
+ const [density, setDensity] = react.useState((_b = initialState === null || initialState === void 0 ? void 0 : initialState.density) !== null && _b !== void 0 ? _b : 'comfortable');
2755
+ const [draggingColumn, setDraggingColumn] = react.useState((_c = initialState.draggingColumn) !== null && _c !== void 0 ? _c : null);
2756
+ const [draggingRow, setDraggingRow] = react.useState((_d = initialState.draggingRow) !== null && _d !== void 0 ? _d : null);
2757
+ const [editingCell, setEditingCell] = react.useState((_e = initialState.editingCell) !== null && _e !== void 0 ? _e : null);
2758
+ const [editingRow, setEditingRow] = react.useState((_f = initialState.editingRow) !== null && _f !== void 0 ? _f : null);
2759
+ const [globalFilterFn, setGlobalFilterFn] = react.useState((_g = initialState.globalFilterFn) !== null && _g !== void 0 ? _g : 'fuzzy');
2760
+ const [grouping, setGrouping] = react.useState((_h = initialState.grouping) !== null && _h !== void 0 ? _h : []);
2761
+ const [hoveredColumn, setHoveredColumn] = react.useState((_j = initialState.hoveredColumn) !== null && _j !== void 0 ? _j : null);
2762
+ const [hoveredRow, setHoveredRow] = react.useState((_k = initialState.hoveredRow) !== null && _k !== void 0 ? _k : null);
2763
+ const [isFullScreen, setIsFullScreen] = react.useState((_l = initialState === null || initialState === void 0 ? void 0 : initialState.isFullScreen) !== null && _l !== void 0 ? _l : false);
2764
+ const [showAlertBanner, setShowAlertBanner] = react.useState((_o = (_m = props.initialState) === null || _m === void 0 ? void 0 : _m.showAlertBanner) !== null && _o !== void 0 ? _o : false);
2765
+ const [showColumnFilters, setShowColumnFilters] = react.useState((_p = initialState === null || initialState === void 0 ? void 0 : initialState.showColumnFilters) !== null && _p !== void 0 ? _p : false);
2766
+ const [showGlobalFilter, setShowGlobalFilter] = react.useState((_q = initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) !== null && _q !== void 0 ? _q : false);
2767
+ const [showToolbarDropZone, setShowToolbarDropZone] = react.useState((_r = initialState === null || initialState === void 0 ? void 0 : initialState.showToolbarDropZone) !== null && _r !== void 0 ? _r : false);
2768
+ const displayColumns = react.useMemo(() => {
3000
2769
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
3001
2770
  return [
3002
2771
  ((_b = (_a = props.state) === null || _a === void 0 ? void 0 : _a.columnOrder) !== null && _b !== void 0 ? _b : columnOrder).includes('mrt-row-drag') && Object.assign(Object.assign(Object.assign({ header: props.localization.move, size: 60 }, props.defaultDisplayColumn), (_c = props.displayColumnDefOptions) === null || _c === void 0 ? void 0 : _c['mrt-row-drag']), { id: 'mrt-row-drag' }),
3003
- ((_e = (_d = props.state) === null || _d === void 0 ? void 0 : _d.columnOrder) !== null && _e !== void 0 ? _e : columnOrder).includes('mrt-row-actions') && Object.assign(Object.assign(Object.assign({ Cell: ({ cell, row }) => (React__default["default"].createElement(MRT_ToggleRowActionMenuButton, { cell: cell, row: row, table: table })), header: props.localization.actions, size: 70 }, props.defaultDisplayColumn), (_f = props.displayColumnDefOptions) === null || _f === void 0 ? void 0 : _f['mrt-row-actions']), { id: 'mrt-row-actions' }),
2772
+ ((_e = (_d = props.state) === null || _d === void 0 ? void 0 : _d.columnOrder) !== null && _e !== void 0 ? _e : columnOrder).includes('mrt-row-actions') && Object.assign(Object.assign(Object.assign({ Cell: ({ cell, row }) => (jsxRuntime.jsx(MRT_ToggleRowActionMenuButton, { cell: cell, row: row, table: table })), header: props.localization.actions, size: 70 }, props.defaultDisplayColumn), (_f = props.displayColumnDefOptions) === null || _f === void 0 ? void 0 : _f['mrt-row-actions']), { id: 'mrt-row-actions' }),
3004
2773
  ((_h = (_g = props.state) === null || _g === void 0 ? void 0 : _g.columnOrder) !== null && _h !== void 0 ? _h : columnOrder).includes('mrt-row-expand') &&
3005
- showExpandColumn(props, (_k = (_j = props.state) === null || _j === void 0 ? void 0 : _j.grouping) !== null && _k !== void 0 ? _k : grouping) && Object.assign(Object.assign(Object.assign({ Cell: ({ row }) => (React__default["default"].createElement(MRT_ExpandButton, { row: row, table: table })), Header: props.enableExpandAll
3006
- ? () => React__default["default"].createElement(MRT_ExpandAllButton, { table: table })
2774
+ showExpandColumn(props, (_k = (_j = props.state) === null || _j === void 0 ? void 0 : _j.grouping) !== null && _k !== void 0 ? _k : grouping) && Object.assign(Object.assign(Object.assign({ Cell: ({ row }) => (jsxRuntime.jsx(MRT_ExpandButton, { row: row, table: table })), Header: props.enableExpandAll
2775
+ ? () => jsxRuntime.jsx(MRT_ExpandAllButton, { table: table })
3007
2776
  : null, header: props.localization.expand, size: 60 }, props.defaultDisplayColumn), (_l = props.displayColumnDefOptions) === null || _l === void 0 ? void 0 : _l['mrt-row-expand']), { id: 'mrt-row-expand' }),
3008
- ((_o = (_m = props.state) === null || _m === void 0 ? void 0 : _m.columnOrder) !== null && _o !== void 0 ? _o : columnOrder).includes('mrt-row-select') && Object.assign(Object.assign(Object.assign({ Cell: ({ row }) => (React__default["default"].createElement(MRT_SelectCheckbox, { row: row, table: table })), Header: props.enableSelectAll && props.enableMultiRowSelection
3009
- ? () => React__default["default"].createElement(MRT_SelectCheckbox, { selectAll: true, table: table })
2777
+ ((_o = (_m = props.state) === null || _m === void 0 ? void 0 : _m.columnOrder) !== null && _o !== void 0 ? _o : columnOrder).includes('mrt-row-select') && Object.assign(Object.assign(Object.assign({ Cell: ({ row }) => (jsxRuntime.jsx(MRT_SelectCheckbox, { row: row, table: table })), Header: props.enableSelectAll && props.enableMultiRowSelection
2778
+ ? () => jsxRuntime.jsx(MRT_SelectCheckbox, { selectAll: true, table: table })
3010
2779
  : null, header: props.localization.select, size: 60 }, props.defaultDisplayColumn), (_p = props.displayColumnDefOptions) === null || _p === void 0 ? void 0 : _p['mrt-row-select']), { id: 'mrt-row-select' }),
3011
2780
  ((_r = (_q = props.state) === null || _q === void 0 ? void 0 : _q.columnOrder) !== null && _r !== void 0 ? _r : columnOrder).includes('mrt-row-numbers') && Object.assign(Object.assign(Object.assign({ Cell: ({ row }) => row.index + 1, Header: () => props.localization.rowNumber, header: props.localization.rowNumbers, size: 60 }, props.defaultDisplayColumn), (_s = props.displayColumnDefOptions) === null || _s === void 0 ? void 0 : _s['mrt-row-numbers']), { id: 'mrt-row-numbers' }),
3012
2781
  ].filter(Boolean);
@@ -3036,7 +2805,7 @@ const MRT_TableRoot = (props) => {
3036
2805
  (_s = props.state) === null || _s === void 0 ? void 0 : _s.columnOrder,
3037
2806
  (_t = props.state) === null || _t === void 0 ? void 0 : _t.grouping,
3038
2807
  ]);
3039
- const columnDefs = React.useMemo(() => {
2808
+ const columnDefs = react.useMemo(() => {
3040
2809
  var _a, _b, _c;
3041
2810
  return prepareColumns({
3042
2811
  aggregationFns: props.aggregationFns,
@@ -3052,7 +2821,7 @@ const MRT_TableRoot = (props) => {
3052
2821
  props.columns,
3053
2822
  (_u = props.state) === null || _u === void 0 ? void 0 : _u.columnFilterFns,
3054
2823
  ]);
3055
- const data = React.useMemo(() => {
2824
+ const data = react.useMemo(() => {
3056
2825
  var _a, _b, _c, _d, _e;
3057
2826
  return (((_a = props.state) === null || _a === void 0 ? void 0 : _a.isLoading) || ((_b = props.state) === null || _b === void 0 ? void 0 : _b.showSkeletons)) &&
3058
2827
  !props.data.length
@@ -3101,13 +2870,13 @@ const MRT_TableRoot = (props) => {
3101
2870
  if (props.tableInstanceRef) {
3102
2871
  props.tableInstanceRef.current = table;
3103
2872
  }
3104
- const initialBodyHeight = React.useRef();
3105
- React.useEffect(() => {
2873
+ const initialBodyHeight = react.useRef();
2874
+ react.useEffect(() => {
3106
2875
  if (typeof window !== 'undefined') {
3107
2876
  initialBodyHeight.current = document.body.style.height;
3108
2877
  }
3109
2878
  }, []);
3110
- React.useEffect(() => {
2879
+ react.useEffect(() => {
3111
2880
  if (typeof window !== 'undefined') {
3112
2881
  if (table.getState().isFullScreen) {
3113
2882
  document.body.style.height = '100vh';
@@ -3118,7 +2887,7 @@ const MRT_TableRoot = (props) => {
3118
2887
  }
3119
2888
  }, [table.getState().isFullScreen]);
3120
2889
  //if page index is out of bounds, set it to the last page
3121
- React.useEffect(() => {
2890
+ react.useEffect(() => {
3122
2891
  var _a;
3123
2892
  const { pageIndex, pageSize } = table.getState().pagination;
3124
2893
  const totalRowCount = (_a = props.rowCount) !== null && _a !== void 0 ? _a : table.getPrePaginationRowModel().rows.length;
@@ -3127,11 +2896,7 @@ const MRT_TableRoot = (props) => {
3127
2896
  table.setPageIndex(Math.floor(totalRowCount / pageSize));
3128
2897
  }
3129
2898
  }, [props.rowCount, table.getPrePaginationRowModel().rows.length]);
3130
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
3131
- React__default["default"].createElement(Dialog__default["default"], { PaperComponent: Box__default["default"], TransitionComponent: !props.enableRowVirtualization ? Grow__default["default"] : undefined, disablePortal: true, fullScreen: true, keepMounted: false, onClose: () => table.setIsFullScreen(false), open: table.getState().isFullScreen, transitionDuration: 400 },
3132
- React__default["default"].createElement(MRT_TablePaper, { table: table })),
3133
- !table.getState().isFullScreen && (React__default["default"].createElement(MRT_TablePaper, { table: table })),
3134
- editingRow && props.editingMode === 'modal' && (React__default["default"].createElement(MRT_EditRowModal, { row: editingRow, table: table, open: true }))));
2899
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Dialog__default["default"], Object.assign({ PaperComponent: Box__default["default"], TransitionComponent: !props.enableRowVirtualization ? Grow__default["default"] : undefined, disablePortal: true, fullScreen: true, keepMounted: false, onClose: () => table.setIsFullScreen(false), open: table.getState().isFullScreen, transitionDuration: 400 }, { children: jsxRuntime.jsx(MRT_TablePaper, { table: table }) })), !table.getState().isFullScreen && (jsxRuntime.jsx(MRT_TablePaper, { table: table })), editingRow && props.editingMode === 'modal' && (jsxRuntime.jsx(MRT_EditRowModal, { row: editingRow, table: table, open: true }))] }));
3135
2900
  };
3136
2901
 
3137
2902
  const MRT_Localization_EN = {
@@ -3229,13 +2994,13 @@ const MRT_Localization_EN = {
3229
2994
  const MaterialReactTable = (_a) => {
3230
2995
  var _b;
3231
2996
  var { aggregationFns, autoResetExpanded = false, columnResizeMode = 'onChange', defaultColumn, defaultDisplayColumn, editingMode = 'modal', enableBottomToolbar = true, enableColumnActions = true, enableColumnFilters = true, enableColumnOrdering = false, enableColumnResizing = false, enableDensityToggle = true, enableExpandAll = true, enableFilterMatchHighlighting = true, enableFilters = true, enableFullScreenToggle = true, enableGlobalFilter = true, enableGlobalFilterRankedResults = true, enableGrouping = false, enableHiding = true, enableMultiRowSelection = true, enableMultiSort = true, enablePagination = true, enablePinning = false, enableRowSelection = false, enableSelectAll = true, enableSorting = true, enableStickyHeader = false, enableTableFooter = true, enableTableHead = true, enableToolbarInternalActions = true, enableTopToolbar = true, filterFns, icons, layoutMode = 'semantic', localization, manualFiltering, manualGrouping, manualPagination, manualSorting, positionActionsColumn = 'first', positionExpandColumn = 'first', positionGlobalFilter = 'right', positionPagination = 'bottom', positionToolbarAlertBanner = 'top', positionToolbarDropZone = 'top', rowNumberMode = 'original', selectAllMode = 'page', sortingFns } = _a, rest = __rest(_a, ["aggregationFns", "autoResetExpanded", "columnResizeMode", "defaultColumn", "defaultDisplayColumn", "editingMode", "enableBottomToolbar", "enableColumnActions", "enableColumnFilters", "enableColumnOrdering", "enableColumnResizing", "enableDensityToggle", "enableExpandAll", "enableFilterMatchHighlighting", "enableFilters", "enableFullScreenToggle", "enableGlobalFilter", "enableGlobalFilterRankedResults", "enableGrouping", "enableHiding", "enableMultiRowSelection", "enableMultiSort", "enablePagination", "enablePinning", "enableRowSelection", "enableSelectAll", "enableSorting", "enableStickyHeader", "enableTableFooter", "enableTableHead", "enableToolbarInternalActions", "enableTopToolbar", "filterFns", "icons", "layoutMode", "localization", "manualFiltering", "manualGrouping", "manualPagination", "manualSorting", "positionActionsColumn", "positionExpandColumn", "positionGlobalFilter", "positionPagination", "positionToolbarAlertBanner", "positionToolbarDropZone", "rowNumberMode", "selectAllMode", "sortingFns"]);
3232
- const _icons = React.useMemo(() => (Object.assign(Object.assign({}, MRT_Default_Icons), icons)), [icons]);
3233
- const _localization = React.useMemo(() => (Object.assign(Object.assign({}, MRT_Localization_EN), localization)), [localization]);
3234
- const _aggregationFns = React.useMemo(() => (Object.assign(Object.assign({}, MRT_AggregationFns), aggregationFns)), []);
3235
- const _filterFns = React.useMemo(() => (Object.assign(Object.assign({}, MRT_FilterFns), filterFns)), []);
3236
- const _sortingFns = React.useMemo(() => (Object.assign(Object.assign({}, MRT_SortingFns), sortingFns)), []);
3237
- const _defaultColumn = React.useMemo(() => (Object.assign(Object.assign({}, MRT_DefaultColumn), defaultColumn)), [defaultColumn]);
3238
- const _defaultDisplayColumn = React.useMemo(() => (Object.assign(Object.assign({}, MRT_DefaultDisplayColumn), defaultDisplayColumn)), [defaultDisplayColumn]);
2997
+ const _icons = react.useMemo(() => (Object.assign(Object.assign({}, MRT_Default_Icons), icons)), [icons]);
2998
+ const _localization = react.useMemo(() => (Object.assign(Object.assign({}, MRT_Localization_EN), localization)), [localization]);
2999
+ const _aggregationFns = react.useMemo(() => (Object.assign(Object.assign({}, MRT_AggregationFns), aggregationFns)), []);
3000
+ const _filterFns = react.useMemo(() => (Object.assign(Object.assign({}, MRT_FilterFns), filterFns)), []);
3001
+ const _sortingFns = react.useMemo(() => (Object.assign(Object.assign({}, MRT_SortingFns), sortingFns)), []);
3002
+ const _defaultColumn = react.useMemo(() => (Object.assign(Object.assign({}, MRT_DefaultColumn), defaultColumn)), [defaultColumn]);
3003
+ const _defaultDisplayColumn = react.useMemo(() => (Object.assign(Object.assign({}, MRT_DefaultDisplayColumn), defaultDisplayColumn)), [defaultDisplayColumn]);
3239
3004
  if (rest.enableRowVirtualization || rest.enableColumnVirtualization) {
3240
3005
  layoutMode = 'grid';
3241
3006
  }
@@ -3251,7 +3016,7 @@ const MaterialReactTable = (_a) => {
3251
3016
  manualPagination = true;
3252
3017
  manualSorting = true;
3253
3018
  }
3254
- return (React__default["default"].createElement(MRT_TableRoot, Object.assign({ aggregationFns: _aggregationFns, autoResetExpanded: autoResetExpanded, columnResizeMode: columnResizeMode, defaultColumn: _defaultColumn, defaultDisplayColumn: _defaultDisplayColumn, editingMode: editingMode, enableBottomToolbar: enableBottomToolbar, enableColumnActions: enableColumnActions, enableColumnFilters: enableColumnFilters, enableColumnOrdering: enableColumnOrdering, enableColumnResizing: enableColumnResizing, enableDensityToggle: enableDensityToggle, enableExpandAll: enableExpandAll, enableFilterMatchHighlighting: enableFilterMatchHighlighting, enableFilters: enableFilters, enableFullScreenToggle: enableFullScreenToggle, enableGlobalFilter: enableGlobalFilter, enableGlobalFilterRankedResults: enableGlobalFilterRankedResults, enableGrouping: enableGrouping, enableHiding: enableHiding, enableMultiRowSelection: enableMultiRowSelection, enableMultiSort: enableMultiSort, enablePagination: enablePagination, enablePinning: enablePinning, enableRowSelection: enableRowSelection, enableSelectAll: enableSelectAll, enableSorting: enableSorting, enableStickyHeader: enableStickyHeader, enableTableFooter: enableTableFooter, enableTableHead: enableTableHead, enableToolbarInternalActions: enableToolbarInternalActions, enableTopToolbar: enableTopToolbar, filterFns: _filterFns, icons: _icons, layoutMode: layoutMode, localization: _localization, manualFiltering: manualFiltering, manualGrouping: manualGrouping, manualPagination: manualPagination, manualSorting: manualSorting, positionActionsColumn: positionActionsColumn, positionExpandColumn: positionExpandColumn, positionGlobalFilter: positionGlobalFilter, positionPagination: positionPagination, positionToolbarAlertBanner: positionToolbarAlertBanner, positionToolbarDropZone: positionToolbarDropZone, rowNumberMode: rowNumberMode, selectAllMode: selectAllMode, sortingFns: _sortingFns }, rest)));
3019
+ return (jsxRuntime.jsx(MRT_TableRoot, Object.assign({ aggregationFns: _aggregationFns, autoResetExpanded: autoResetExpanded, columnResizeMode: columnResizeMode, defaultColumn: _defaultColumn, defaultDisplayColumn: _defaultDisplayColumn, editingMode: editingMode, enableBottomToolbar: enableBottomToolbar, enableColumnActions: enableColumnActions, enableColumnFilters: enableColumnFilters, enableColumnOrdering: enableColumnOrdering, enableColumnResizing: enableColumnResizing, enableDensityToggle: enableDensityToggle, enableExpandAll: enableExpandAll, enableFilterMatchHighlighting: enableFilterMatchHighlighting, enableFilters: enableFilters, enableFullScreenToggle: enableFullScreenToggle, enableGlobalFilter: enableGlobalFilter, enableGlobalFilterRankedResults: enableGlobalFilterRankedResults, enableGrouping: enableGrouping, enableHiding: enableHiding, enableMultiRowSelection: enableMultiRowSelection, enableMultiSort: enableMultiSort, enablePagination: enablePagination, enablePinning: enablePinning, enableRowSelection: enableRowSelection, enableSelectAll: enableSelectAll, enableSorting: enableSorting, enableStickyHeader: enableStickyHeader, enableTableFooter: enableTableFooter, enableTableHead: enableTableHead, enableToolbarInternalActions: enableToolbarInternalActions, enableTopToolbar: enableTopToolbar, filterFns: _filterFns, icons: _icons, layoutMode: layoutMode, localization: _localization, manualFiltering: manualFiltering, manualGrouping: manualGrouping, manualPagination: manualPagination, manualSorting: manualSorting, positionActionsColumn: positionActionsColumn, positionExpandColumn: positionExpandColumn, positionGlobalFilter: positionGlobalFilter, positionPagination: positionPagination, positionToolbarAlertBanner: positionToolbarAlertBanner, positionToolbarDropZone: positionToolbarDropZone, rowNumberMode: rowNumberMode, selectAllMode: selectAllMode, sortingFns: _sortingFns }, rest)));
3255
3020
  };
3256
3021
 
3257
3022
  exports.MRT_AggregationFns = MRT_AggregationFns;