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
@@ -1,4 +1,5 @@
1
- import React, { useMemo, useState, useRef, useCallback, useEffect, Fragment, memo, useLayoutEffect } from 'react';
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { useMemo, useState, useRef, useCallback, useEffect, Fragment as Fragment$1, memo, useLayoutEffect } from 'react';
2
3
  import { aggregationFns, filterFns, sortingFns, useReactTable, getCoreRowModel, getExpandedRowModel, getFacetedRowModel, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel } from '@tanstack/react-table';
3
4
  import { alpha, lighten, useTheme, darken } from '@mui/material/styles';
4
5
  import { rankItem, rankings, compareItems } from '@tanstack/match-sorter-utils';
@@ -167,8 +168,9 @@ const reorderColumn = (draggedColumn, targetColumn, columnOrder) => {
167
168
  if (draggedColumn.getCanPin()) {
168
169
  draggedColumn.pin(targetColumn.getIsPinned());
169
170
  }
170
- columnOrder.splice(columnOrder.indexOf(targetColumn.id), 0, columnOrder.splice(columnOrder.indexOf(draggedColumn.id), 1)[0]);
171
- return [...columnOrder];
171
+ let newColumnOrder = [...columnOrder];
172
+ newColumnOrder.splice(newColumnOrder.indexOf(targetColumn.id), 0, newColumnOrder.splice(newColumnOrder.indexOf(draggedColumn.id), 1)[0]);
173
+ return newColumnOrder;
172
174
  };
173
175
  const showExpandColumn = (props, grouping) => !!(props.enableExpanding ||
174
176
  (props.enableGrouping && (grouping === undefined || (grouping === null || grouping === void 0 ? void 0 : grouping.length))) ||
@@ -440,16 +442,14 @@ const MRT_ExpandAllButton = ({ table }) => {
440
442
  ? muiExpandAllButtonProps({ table })
441
443
  : muiExpandAllButtonProps;
442
444
  const isAllRowsExpanded = getIsAllRowsExpanded();
443
- return (React.createElement(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: ((_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : isAllRowsExpanded)
445
+ return (jsx(Tooltip, 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)
444
446
  ? localization.collapseAll
445
- : localization.expandAll },
446
- React.createElement("span", null,
447
- React.createElement(IconButton, 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
447
+ : localization.expandAll }, { children: jsx("span", { children: jsx(IconButton, 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
448
448
  ? iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx(theme)
449
- : 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.createElement(KeyboardDoubleArrowDownIcon, { style: {
450
- transform: `rotate(${isAllRowsExpanded ? -180 : getIsSomeRowsExpanded() ? -90 : 0}deg)`,
451
- transition: 'transform 150ms',
452
- } }))))));
449
+ : 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 : (jsx(KeyboardDoubleArrowDownIcon, { style: {
450
+ transform: `rotate(${isAllRowsExpanded ? -180 : getIsSomeRowsExpanded() ? -90 : 0}deg)`,
451
+ transition: 'transform 150ms',
452
+ } })) })) }) })));
453
453
  };
454
454
 
455
455
  const MRT_ExpandButton = ({ row, table, }) => {
@@ -467,16 +467,14 @@ const MRT_ExpandButton = ({ row, table, }) => {
467
467
  row.toggleExpanded();
468
468
  (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
469
469
  };
470
- return (React.createElement(Tooltip, { 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)
470
+ return (jsx(Tooltip, 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)
471
471
  ? localization.collapse
472
- : localization.expand },
473
- React.createElement("span", null,
474
- React.createElement(IconButton, 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
472
+ : localization.expand }, { children: jsx("span", { children: jsx(IconButton, 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
475
473
  ? iconButtonProps.sx(theme)
476
- : 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.createElement(ExpandMoreIcon, { style: {
477
- transform: `rotate(${!canExpand && !renderDetailPanel ? -90 : isExpanded ? -180 : 0}deg)`,
478
- transition: 'transform 150ms',
479
- } }))))));
474
+ : 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 : (jsx(ExpandMoreIcon, { style: {
475
+ transform: `rotate(${!canExpand && !renderDetailPanel ? -90 : isExpanded ? -180 : 0}deg)`,
476
+ transition: 'transform 150ms',
477
+ } })) })) }) })));
480
478
  };
481
479
 
482
480
  const mrtFilterOptions = (localization) => [
@@ -643,33 +641,31 @@ const MRT_FilterOptionMenu = ({ anchorEl, header, onSelect, setAnchorEl, setFilt
643
641
  onSelect === null || onSelect === void 0 ? void 0 : onSelect();
644
642
  };
645
643
  const filterOption = !!header && columnDef ? columnDef._filterFn : globalFilterFn;
646
- return (React.createElement(Menu, { anchorEl: anchorEl, anchorOrigin: { vertical: 'center', horizontal: 'right' }, onClose: () => setAnchorEl(null), open: !!anchorEl, MenuListProps: {
644
+ return (jsx(Menu, Object.assign({ anchorEl: anchorEl, anchorOrigin: { vertical: 'center', horizontal: 'right' }, onClose: () => setAnchorEl(null), open: !!anchorEl, MenuListProps: {
647
645
  dense: density === 'compact',
648
- } }, (_d = (header && column && columnDef
649
- ? (_c = (_b = columnDef.renderColumnFilterModeMenuItems) === null || _b === void 0 ? void 0 : _b.call(columnDef, {
650
- column: column,
651
- internalFilterOptions,
652
- onSelectFilterMode: handleSelectFilterMode,
653
- table,
654
- })) !== null && _c !== void 0 ? _c : renderColumnFilterModeMenuItems === null || renderColumnFilterModeMenuItems === void 0 ? void 0 : renderColumnFilterModeMenuItems({
655
- column: column,
656
- internalFilterOptions,
657
- onSelectFilterMode: handleSelectFilterMode,
658
- table,
659
- })
660
- : renderGlobalFilterModeMenuItems === null || renderGlobalFilterModeMenuItems === void 0 ? void 0 : renderGlobalFilterModeMenuItems({
661
- internalFilterOptions,
662
- onSelectFilterMode: handleSelectFilterMode,
663
- table,
664
- }))) !== null && _d !== void 0 ? _d : internalFilterOptions.map(({ option, label, divider, symbol }, index) => (React.createElement(MenuItem, { divider: divider, key: index, onClick: () => handleSelectFilterMode(option), selected: option === filterOption, sx: {
665
- alignItems: 'center',
666
- display: 'flex',
667
- gap: '2ch',
668
- my: 0,
669
- py: '6px',
670
- }, value: option },
671
- React.createElement(Box, { sx: { fontSize: '1.25rem', width: '2ch' } }, symbol),
672
- label)))));
646
+ } }, { children: (_d = (header && column && columnDef
647
+ ? (_c = (_b = columnDef.renderColumnFilterModeMenuItems) === null || _b === void 0 ? void 0 : _b.call(columnDef, {
648
+ column: column,
649
+ internalFilterOptions,
650
+ onSelectFilterMode: handleSelectFilterMode,
651
+ table,
652
+ })) !== null && _c !== void 0 ? _c : renderColumnFilterModeMenuItems === null || renderColumnFilterModeMenuItems === void 0 ? void 0 : renderColumnFilterModeMenuItems({
653
+ column: column,
654
+ internalFilterOptions,
655
+ onSelectFilterMode: handleSelectFilterMode,
656
+ table,
657
+ })
658
+ : renderGlobalFilterModeMenuItems === null || renderGlobalFilterModeMenuItems === void 0 ? void 0 : renderGlobalFilterModeMenuItems({
659
+ internalFilterOptions,
660
+ onSelectFilterMode: handleSelectFilterMode,
661
+ table,
662
+ }))) !== null && _d !== void 0 ? _d : internalFilterOptions.map(({ option, label, divider, symbol }, index) => (jsxs(MenuItem, Object.assign({ divider: divider, onClick: () => handleSelectFilterMode(option), selected: option === filterOption, sx: {
663
+ alignItems: 'center',
664
+ display: 'flex',
665
+ gap: '2ch',
666
+ my: 0,
667
+ py: '6px',
668
+ }, value: option }, { children: [jsx(Box, Object.assign({ sx: { fontSize: '1.25rem', width: '2ch' } }, { children: symbol })), label] }), index))) })));
673
669
  };
674
670
 
675
671
  const commonMenuItemStyles = {
@@ -743,121 +739,60 @@ const MRT_ColumnActionMenu = ({ anchorEl, header, setAnchorEl, table, }) => {
743
739
  !isSelectFilter &&
744
740
  (allowedColumnFilterOptions === undefined ||
745
741
  !!(allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.length));
746
- return (React.createElement(Menu, { anchorEl: anchorEl, open: !!anchorEl, onClose: () => setAnchorEl(null), MenuListProps: {
742
+ return (jsxs(Menu, Object.assign({ anchorEl: anchorEl, open: !!anchorEl, onClose: () => setAnchorEl(null), MenuListProps: {
747
743
  dense: density === 'compact',
748
- } }, (_d = (_c = (_b = columnDef.renderColumnActionsMenuItems) === null || _b === void 0 ? void 0 : _b.call(columnDef, {
749
- closeMenu: () => setAnchorEl(null),
750
- column,
751
- table,
752
- })) !== null && _c !== void 0 ? _c : renderColumnActionsMenuItems === null || renderColumnActionsMenuItems === void 0 ? void 0 : renderColumnActionsMenuItems({
753
- closeMenu: () => setAnchorEl(null),
754
- column,
755
- table,
756
- })) !== null && _d !== void 0 ? _d : (enableSorting &&
757
- column.getCanSort() &&
758
- [
759
- enableSortingRemoval !== false && (React.createElement(MenuItem, { disabled: !column.getIsSorted(), key: 0, onClick: handleClearSort, sx: commonMenuItemStyles },
760
- React.createElement(Box, { sx: commonListItemStyles },
761
- React.createElement(ListItemIcon, null,
762
- React.createElement(ClearAllIcon, null)),
763
- localization.clearSort))),
764
- React.createElement(MenuItem, { disabled: column.getIsSorted() === 'asc', key: 1, onClick: handleSortAsc, sx: commonMenuItemStyles },
765
- React.createElement(Box, { sx: commonListItemStyles },
766
- React.createElement(ListItemIcon, null,
767
- React.createElement(SortIcon, { style: { transform: 'rotate(180deg) scaleX(-1)' } })), (_e = localization.sortByColumnAsc) === null || _e === void 0 ? void 0 :
768
- _e.replace('{column}', String(columnDef.header)))),
769
- React.createElement(MenuItem, { divider: enableColumnFilters || enableGrouping || enableHiding, key: 2, disabled: column.getIsSorted() === 'desc', onClick: handleSortDesc, sx: commonMenuItemStyles },
770
- React.createElement(Box, { sx: commonListItemStyles },
771
- React.createElement(ListItemIcon, null,
772
- React.createElement(SortIcon, null)), (_f = localization.sortByColumnDesc) === null || _f === void 0 ? void 0 :
773
- _f.replace('{column}', String(columnDef.header)))),
774
- ].filter(Boolean)),
775
- enableColumnFilters &&
776
- column.getCanFilter() &&
777
- [
778
- React.createElement(MenuItem, { disabled: !column.getFilterValue(), key: 0, onClick: handleClearFilter, sx: commonMenuItemStyles },
779
- React.createElement(Box, { sx: commonListItemStyles },
780
- React.createElement(ListItemIcon, null,
781
- React.createElement(FilterListOffIcon, null)),
782
- localization.clearFilter)),
783
- React.createElement(MenuItem, { disabled: showColumnFilters && !enableColumnFilterModes, divider: enableGrouping || enableHiding, key: 1, onClick: showColumnFilters
784
- ? handleOpenFilterModeMenu
785
- : handleFilterByColumn, sx: commonMenuItemStyles },
786
- React.createElement(Box, { sx: commonListItemStyles },
787
- React.createElement(ListItemIcon, null,
788
- React.createElement(FilterListIcon, null)), (_g = localization.filterByColumn) === null || _g === void 0 ? void 0 :
789
- _g.replace('{column}', String(columnDef.header))),
790
- showFilterModeSubMenu && (React.createElement(IconButton, { onClick: handleOpenFilterModeMenu, onMouseEnter: handleOpenFilterModeMenu, size: "small", sx: { p: 0 } },
791
- React.createElement(ArrowRightIcon, null)))),
792
- showFilterModeSubMenu && (React.createElement(MRT_FilterOptionMenu, { anchorEl: filterMenuAnchorEl, header: header, key: 2, onSelect: handleFilterByColumn, setAnchorEl: setFilterMenuAnchorEl, table: table })),
793
- ].filter(Boolean),
794
- enableGrouping &&
795
- column.getCanGroup() && [
796
- React.createElement(MenuItem, { divider: enablePinning, key: 0, onClick: handleGroupByColumn, sx: commonMenuItemStyles },
797
- React.createElement(Box, { sx: commonListItemStyles },
798
- React.createElement(ListItemIcon, null,
799
- React.createElement(DynamicFeedIcon, null)), (_h = localization[column.getIsGrouped() ? 'ungroupByColumn' : 'groupByColumn']) === null || _h === void 0 ? void 0 :
800
- _h.replace('{column}', String(columnDef.header)))),
801
- ],
802
- enablePinning &&
803
- column.getCanPin() && [
804
- React.createElement(MenuItem, { disabled: column.getIsPinned() === 'left' || !column.getCanPin(), key: 0, onClick: () => handlePinColumn('left'), sx: commonMenuItemStyles },
805
- React.createElement(Box, { sx: commonListItemStyles },
806
- React.createElement(ListItemIcon, null,
807
- React.createElement(PushPinIcon, { style: { transform: 'rotate(90deg)' } })),
808
- localization.pinToLeft)),
809
- React.createElement(MenuItem, { disabled: column.getIsPinned() === 'right' || !column.getCanPin(), key: 1, onClick: () => handlePinColumn('right'), sx: commonMenuItemStyles },
810
- React.createElement(Box, { sx: commonListItemStyles },
811
- React.createElement(ListItemIcon, null,
812
- React.createElement(PushPinIcon, { style: { transform: 'rotate(-90deg)' } })),
813
- localization.pinToRight)),
814
- React.createElement(MenuItem, { disabled: !column.getIsPinned(), divider: enableHiding, key: 2, onClick: () => handlePinColumn(false), sx: commonMenuItemStyles },
815
- React.createElement(Box, { sx: commonListItemStyles },
816
- React.createElement(ListItemIcon, null,
817
- React.createElement(PushPinIcon, null)),
818
- localization.unpin)),
819
- ],
820
- enableColumnResizing &&
821
- column.getCanResize() && [
822
- React.createElement(MenuItem, { disabled: !columnSizing[column.id], key: 0, onClick: handleResetColumnSize, sx: commonMenuItemStyles },
823
- React.createElement(Box, { sx: commonListItemStyles },
824
- React.createElement(ListItemIcon, null,
825
- React.createElement(RestartAltIcon, null)),
826
- localization.resetColumnSize)),
827
- ],
828
- enableHiding && [
829
- React.createElement(MenuItem, { disabled: !column.getCanHide(), key: 0, onClick: handleHideColumn, sx: commonMenuItemStyles },
830
- React.createElement(Box, { sx: commonListItemStyles },
831
- React.createElement(ListItemIcon, null,
832
- React.createElement(VisibilityOffIcon, null)), (_j = localization.hideColumn) === null || _j === void 0 ? void 0 :
833
- _j.replace('{column}', String(columnDef.header)))),
834
- React.createElement(MenuItem, { disabled: !Object.values(columnVisibility).filter((visible) => !visible)
835
- .length, key: 1, onClick: handleShowAllColumns, sx: commonMenuItemStyles },
836
- React.createElement(Box, { sx: commonListItemStyles },
837
- React.createElement(ListItemIcon, null,
838
- React.createElement(ViewColumnIcon, null)), (_k = localization.showAllColumns) === null || _k === void 0 ? void 0 :
839
- _k.replace('{column}', String(columnDef.header)))),
840
- ]));
744
+ } }, { children: [(_d = (_c = (_b = columnDef.renderColumnActionsMenuItems) === null || _b === void 0 ? void 0 : _b.call(columnDef, {
745
+ closeMenu: () => setAnchorEl(null),
746
+ column,
747
+ table,
748
+ })) !== null && _c !== void 0 ? _c : renderColumnActionsMenuItems === null || renderColumnActionsMenuItems === void 0 ? void 0 : renderColumnActionsMenuItems({
749
+ closeMenu: () => setAnchorEl(null),
750
+ column,
751
+ table,
752
+ })) !== null && _d !== void 0 ? _d : (enableSorting &&
753
+ column.getCanSort() &&
754
+ [
755
+ enableSortingRemoval !== false && (jsx(MenuItem, Object.assign({ disabled: !column.getIsSorted(), onClick: handleClearSort, sx: commonMenuItemStyles }, { children: jsxs(Box, Object.assign({ sx: commonListItemStyles }, { children: [jsx(ListItemIcon, { children: jsx(ClearAllIcon, {}) }), localization.clearSort] })) }), 0)),
756
+ jsx(MenuItem, Object.assign({ disabled: column.getIsSorted() === 'asc', onClick: handleSortAsc, sx: commonMenuItemStyles }, { children: jsxs(Box, Object.assign({ sx: commonListItemStyles }, { children: [jsx(ListItemIcon, { children: jsx(SortIcon, { style: { transform: 'rotate(180deg) scaleX(-1)' } }) }), (_e = localization.sortByColumnAsc) === null || _e === void 0 ? void 0 : _e.replace('{column}', String(columnDef.header))] })) }), 1),
757
+ jsx(MenuItem, Object.assign({ divider: enableColumnFilters || enableGrouping || enableHiding, disabled: column.getIsSorted() === 'desc', onClick: handleSortDesc, sx: commonMenuItemStyles }, { children: jsxs(Box, Object.assign({ sx: commonListItemStyles }, { children: [jsx(ListItemIcon, { children: jsx(SortIcon, {}) }), (_f = localization.sortByColumnDesc) === null || _f === void 0 ? void 0 : _f.replace('{column}', String(columnDef.header))] })) }), 2),
758
+ ].filter(Boolean)), enableColumnFilters &&
759
+ column.getCanFilter() &&
760
+ [
761
+ jsx(MenuItem, Object.assign({ disabled: !column.getFilterValue(), onClick: handleClearFilter, sx: commonMenuItemStyles }, { children: jsxs(Box, Object.assign({ sx: commonListItemStyles }, { children: [jsx(ListItemIcon, { children: jsx(FilterListOffIcon, {}) }), localization.clearFilter] })) }), 0),
762
+ jsxs(MenuItem, Object.assign({ disabled: showColumnFilters && !enableColumnFilterModes, divider: enableGrouping || enableHiding, onClick: showColumnFilters
763
+ ? handleOpenFilterModeMenu
764
+ : handleFilterByColumn, sx: commonMenuItemStyles }, { children: [jsxs(Box, Object.assign({ sx: commonListItemStyles }, { children: [jsx(ListItemIcon, { children: jsx(FilterListIcon, {}) }), (_g = localization.filterByColumn) === null || _g === void 0 ? void 0 : _g.replace('{column}', String(columnDef.header))] })), showFilterModeSubMenu && (jsx(IconButton, Object.assign({ onClick: handleOpenFilterModeMenu, onMouseEnter: handleOpenFilterModeMenu, size: "small", sx: { p: 0 } }, { children: jsx(ArrowRightIcon, {}) })))] }), 1),
765
+ showFilterModeSubMenu && (jsx(MRT_FilterOptionMenu, { anchorEl: filterMenuAnchorEl, header: header, onSelect: handleFilterByColumn, setAnchorEl: setFilterMenuAnchorEl, table: table }, 2)),
766
+ ].filter(Boolean), enableGrouping &&
767
+ column.getCanGroup() && [
768
+ jsx(MenuItem, Object.assign({ divider: enablePinning, onClick: handleGroupByColumn, sx: commonMenuItemStyles }, { children: jsxs(Box, Object.assign({ sx: commonListItemStyles }, { children: [jsx(ListItemIcon, { children: jsx(DynamicFeedIcon, {}) }), (_h = localization[column.getIsGrouped() ? 'ungroupByColumn' : 'groupByColumn']) === null || _h === void 0 ? void 0 : _h.replace('{column}', String(columnDef.header))] })) }), 0),
769
+ ], enablePinning &&
770
+ column.getCanPin() && [
771
+ jsx(MenuItem, Object.assign({ disabled: column.getIsPinned() === 'left' || !column.getCanPin(), onClick: () => handlePinColumn('left'), sx: commonMenuItemStyles }, { children: jsxs(Box, Object.assign({ sx: commonListItemStyles }, { children: [jsx(ListItemIcon, { children: jsx(PushPinIcon, { style: { transform: 'rotate(90deg)' } }) }), localization.pinToLeft] })) }), 0),
772
+ jsx(MenuItem, Object.assign({ disabled: column.getIsPinned() === 'right' || !column.getCanPin(), onClick: () => handlePinColumn('right'), sx: commonMenuItemStyles }, { children: jsxs(Box, Object.assign({ sx: commonListItemStyles }, { children: [jsx(ListItemIcon, { children: jsx(PushPinIcon, { style: { transform: 'rotate(-90deg)' } }) }), localization.pinToRight] })) }), 1),
773
+ jsx(MenuItem, Object.assign({ disabled: !column.getIsPinned(), divider: enableHiding, onClick: () => handlePinColumn(false), sx: commonMenuItemStyles }, { children: jsxs(Box, Object.assign({ sx: commonListItemStyles }, { children: [jsx(ListItemIcon, { children: jsx(PushPinIcon, {}) }), localization.unpin] })) }), 2),
774
+ ], enableColumnResizing &&
775
+ column.getCanResize() && [
776
+ jsx(MenuItem, Object.assign({ disabled: !columnSizing[column.id], onClick: handleResetColumnSize, sx: commonMenuItemStyles }, { children: jsxs(Box, Object.assign({ sx: commonListItemStyles }, { children: [jsx(ListItemIcon, { children: jsx(RestartAltIcon, {}) }), localization.resetColumnSize] })) }), 0),
777
+ ], enableHiding && [
778
+ jsx(MenuItem, Object.assign({ disabled: !column.getCanHide(), onClick: handleHideColumn, sx: commonMenuItemStyles }, { children: jsxs(Box, Object.assign({ sx: commonListItemStyles }, { children: [jsx(ListItemIcon, { children: jsx(VisibilityOffIcon, {}) }), (_j = localization.hideColumn) === null || _j === void 0 ? void 0 : _j.replace('{column}', String(columnDef.header))] })) }), 0),
779
+ jsx(MenuItem, Object.assign({ disabled: !Object.values(columnVisibility).filter((visible) => !visible)
780
+ .length, onClick: handleShowAllColumns, sx: commonMenuItemStyles }, { children: jsxs(Box, Object.assign({ sx: commonListItemStyles }, { children: [jsx(ListItemIcon, { children: jsx(ViewColumnIcon, {}) }), (_k = localization.showAllColumns) === null || _k === void 0 ? void 0 : _k.replace('{column}', String(columnDef.header))] })) }), 1),
781
+ ]] })));
841
782
  };
842
783
 
843
784
  const MRT_RowActionMenu = ({ anchorEl, handleEdit, row, setAnchorEl, table, }) => {
844
785
  const { getState, options: { icons: { EditIcon }, enableEditing, localization, renderRowActionMenuItems, }, } = table;
845
786
  const { density } = getState();
846
- return (React.createElement(Menu, { anchorEl: anchorEl, open: !!anchorEl, onClick: (event) => event.stopPropagation(), onClose: () => setAnchorEl(null), MenuListProps: {
787
+ return (jsxs(Menu, Object.assign({ anchorEl: anchorEl, open: !!anchorEl, onClick: (event) => event.stopPropagation(), onClose: () => setAnchorEl(null), MenuListProps: {
847
788
  dense: density === 'compact',
848
- } },
849
- enableEditing instanceof Function
850
- ? enableEditing(row)
851
- : enableEditing && (React.createElement(MenuItem, { onClick: handleEdit, sx: commonMenuItemStyles },
852
- React.createElement(Box, { sx: commonListItemStyles },
853
- React.createElement(ListItemIcon, null,
854
- React.createElement(EditIcon, null)),
855
- localization.edit))), renderRowActionMenuItems === null || renderRowActionMenuItems === void 0 ? void 0 :
856
- renderRowActionMenuItems({
857
- row,
858
- table,
859
- closeMenu: () => setAnchorEl(null),
860
- })));
789
+ } }, { children: [enableEditing instanceof Function
790
+ ? enableEditing(row)
791
+ : enableEditing && (jsx(MenuItem, Object.assign({ onClick: handleEdit, sx: commonMenuItemStyles }, { children: jsxs(Box, Object.assign({ sx: commonListItemStyles }, { children: [jsx(ListItemIcon, { children: jsx(EditIcon, {}) }), localization.edit] })) }))), renderRowActionMenuItems === null || renderRowActionMenuItems === void 0 ? void 0 : renderRowActionMenuItems({
792
+ row,
793
+ table,
794
+ closeMenu: () => setAnchorEl(null),
795
+ })] })));
861
796
  };
862
797
 
863
798
  const MRT_EditActionButtons = ({ row, table, variant = 'icon', }) => {
@@ -884,15 +819,7 @@ const MRT_EditActionButtons = ({ row, table, variant = 'icon', }) => {
884
819
  values: (_b = editingRow === null || editingRow === void 0 ? void 0 : editingRow._valuesCache) !== null && _b !== void 0 ? _b : Object.assign({}, row.original),
885
820
  });
886
821
  };
887
- return (React.createElement(Box, { onClick: (e) => e.stopPropagation(), sx: { display: 'flex', gap: '0.75rem' } }, variant === 'icon' ? (React.createElement(React.Fragment, null,
888
- React.createElement(Tooltip, { arrow: true, title: localization.cancel },
889
- React.createElement(IconButton, { "aria-label": localization.cancel, onClick: handleCancel },
890
- React.createElement(CancelIcon, null))),
891
- React.createElement(Tooltip, { arrow: true, title: localization.save },
892
- React.createElement(IconButton, { "aria-label": localization.save, color: "info", onClick: handleSave },
893
- React.createElement(SaveIcon, null))))) : (React.createElement(React.Fragment, null,
894
- React.createElement(Button, { onClick: handleCancel }, localization.cancel),
895
- React.createElement(Button, { onClick: handleSave, variant: "contained" }, localization.save)))));
822
+ return (jsx(Box, Object.assign({ onClick: (e) => e.stopPropagation(), sx: { display: 'flex', gap: '0.75rem' } }, { children: variant === 'icon' ? (jsxs(Fragment, { children: [jsx(Tooltip, Object.assign({ arrow: true, title: localization.cancel }, { children: jsx(IconButton, Object.assign({ "aria-label": localization.cancel, onClick: handleCancel }, { children: jsx(CancelIcon, {}) })) })), jsx(Tooltip, Object.assign({ arrow: true, title: localization.save }, { children: jsx(IconButton, Object.assign({ "aria-label": localization.save, color: "info", onClick: handleSave }, { children: jsx(SaveIcon, {}) })) }))] })) : (jsxs(Fragment, { children: [jsx(Button, Object.assign({ onClick: handleCancel }, { children: localization.cancel })), jsx(Button, Object.assign({ onClick: handleSave, variant: "contained" }, { children: localization.save }))] })) })));
896
823
  };
897
824
 
898
825
  const commonIconButtonStyles = {
@@ -919,16 +846,10 @@ const MRT_ToggleRowActionMenuButton = ({ cell, row, table, }) => {
919
846
  setEditingRow(Object.assign({}, row));
920
847
  setAnchorEl(null);
921
848
  };
922
- return (React.createElement(React.Fragment, null, renderRowActions ? (renderRowActions({ cell, row, table })) : row.id === (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) && editingMode === 'row' ? (React.createElement(MRT_EditActionButtons, { row: row, table: table })) : !renderRowActionMenuItems &&
923
- (enableEditing instanceof Function
924
- ? enableEditing(row)
925
- : enableEditing) ? (React.createElement(Tooltip, { placement: "right", arrow: true, title: localization.edit },
926
- React.createElement(IconButton, { "aria-label": localization.edit, sx: commonIconButtonStyles, onClick: handleStartEditMode },
927
- React.createElement(EditIcon, null)))) : renderRowActionMenuItems ? (React.createElement(React.Fragment, null,
928
- React.createElement(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.rowActions },
929
- React.createElement(IconButton, { "aria-label": localization.rowActions, onClick: handleOpenRowActionMenu, size: "small", sx: commonIconButtonStyles },
930
- React.createElement(MoreHorizIcon, null))),
931
- React.createElement(MRT_RowActionMenu, { anchorEl: anchorEl, handleEdit: handleStartEditMode, row: row, setAnchorEl: setAnchorEl, table: table }))) : null));
849
+ return (jsx(Fragment, { children: renderRowActions ? (renderRowActions({ cell, row, table })) : row.id === (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) && editingMode === 'row' ? (jsx(MRT_EditActionButtons, { row: row, table: table })) : !renderRowActionMenuItems &&
850
+ (enableEditing instanceof Function
851
+ ? enableEditing(row)
852
+ : enableEditing) ? (jsx(Tooltip, Object.assign({ placement: "right", arrow: true, title: localization.edit }, { children: jsx(IconButton, Object.assign({ "aria-label": localization.edit, sx: commonIconButtonStyles, onClick: handleStartEditMode }, { children: jsx(EditIcon, {}) })) }))) : renderRowActionMenuItems ? (jsxs(Fragment, { children: [jsx(Tooltip, Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.rowActions }, { children: jsx(IconButton, Object.assign({ "aria-label": localization.rowActions, onClick: handleOpenRowActionMenu, size: "small", sx: commonIconButtonStyles }, { children: jsx(MoreHorizIcon, {}) })) })), jsx(MRT_RowActionMenu, { anchorEl: anchorEl, handleEdit: handleStartEditMode, row: row, setAnchorEl: setAnchorEl, table: table })] })) : null }));
932
853
  };
933
854
 
934
855
  const MRT_SelectCheckbox = ({ row, selectAll, table }) => {
@@ -962,11 +883,11 @@ const MRT_SelectCheckbox = ({ row, selectAll, table }) => {
962
883
  }, 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
963
884
  ? checkboxProps.sx(theme)
964
885
  : checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx))), title: undefined });
965
- return (React.createElement(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _a !== void 0 ? _a : (selectAll
886
+ return (jsx(Tooltip, 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
966
887
  ? localization.toggleSelectAll
967
- : localization.toggleSelectRow) }, enableMultiRowSelection === false ? (React.createElement(Radio, Object.assign({}, commonProps))) : (React.createElement(Checkbox, Object.assign({ indeterminate: selectAll
968
- ? table.getIsSomeRowsSelected() && !allRowsSelected
969
- : row === null || row === void 0 ? void 0 : row.getIsSomeSelected() }, commonProps)))));
888
+ : localization.toggleSelectRow) }, { children: enableMultiRowSelection === false ? (jsx(Radio, Object.assign({}, commonProps))) : (jsx(Checkbox, Object.assign({ indeterminate: selectAll
889
+ ? table.getIsSomeRowsSelected() && !allRowsSelected
890
+ : row === null || row === void 0 ? void 0 : row.getIsSomeSelected() }, commonProps))) })));
970
891
  };
971
892
 
972
893
  const MRT_GlobalFilterTextField = ({ table, }) => {
@@ -1005,24 +926,15 @@ const MRT_GlobalFilterTextField = ({ table, }) => {
1005
926
  }
1006
927
  isMounted.current = true;
1007
928
  }, [globalFilter]);
1008
- return (React.createElement(Collapse, { in: showGlobalFilter, orientation: "horizontal", unmountOnExit: true, mountOnEnter: true },
1009
- React.createElement(TextField, Object.assign({ placeholder: localization.search, onChange: handleChange, value: searchValue !== null && searchValue !== void 0 ? searchValue : '', variant: "standard", InputProps: {
1010
- startAdornment: enableGlobalFilterModes ? (React.createElement(InputAdornment, { position: "start" },
1011
- React.createElement(Tooltip, { arrow: true, title: localization.changeSearchMode },
1012
- React.createElement(IconButton, { "aria-label": localization.changeSearchMode, onClick: handleGlobalFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' } },
1013
- React.createElement(SearchIcon, null))))) : (React.createElement(SearchIcon, { style: { marginRight: '4px' } })),
1014
- endAdornment: (React.createElement(InputAdornment, { position: "end" },
1015
- React.createElement(Tooltip, { arrow: true, title: (_a = localization.clearSearch) !== null && _a !== void 0 ? _a : '' },
1016
- React.createElement("span", null,
1017
- React.createElement(IconButton, { "aria-label": localization.clearSearch, disabled: !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length), onClick: handleClear, size: "small" },
1018
- React.createElement(CloseIcon, null)))))),
1019
- } }, textFieldProps, { inputRef: (inputRef) => {
1020
- searchInputRef.current = inputRef;
1021
- if (textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.inputRef) {
1022
- textFieldProps.inputRef = inputRef;
1023
- }
1024
- } })),
1025
- React.createElement(MRT_FilterOptionMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table, onSelect: handleClear })));
929
+ return (jsxs(Collapse, Object.assign({ in: showGlobalFilter, orientation: "horizontal", unmountOnExit: true, mountOnEnter: true }, { children: [jsx(TextField, Object.assign({ placeholder: localization.search, onChange: handleChange, value: searchValue !== null && searchValue !== void 0 ? searchValue : '', variant: "standard", InputProps: {
930
+ startAdornment: enableGlobalFilterModes ? (jsx(InputAdornment, Object.assign({ position: "start" }, { children: jsx(Tooltip, Object.assign({ arrow: true, title: localization.changeSearchMode }, { children: jsx(IconButton, Object.assign({ "aria-label": localization.changeSearchMode, onClick: handleGlobalFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' } }, { children: jsx(SearchIcon, {}) })) })) }))) : (jsx(SearchIcon, { style: { marginRight: '4px' } })),
931
+ endAdornment: (jsx(InputAdornment, Object.assign({ position: "end" }, { children: jsx(Tooltip, Object.assign({ arrow: true, title: (_a = localization.clearSearch) !== null && _a !== void 0 ? _a : '' }, { children: jsx("span", { children: jsx(IconButton, Object.assign({ "aria-label": localization.clearSearch, disabled: !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length), onClick: handleClear, size: "small" }, { children: jsx(CloseIcon, {}) })) }) })) }))),
932
+ } }, textFieldProps, { inputRef: (inputRef) => {
933
+ searchInputRef.current = inputRef;
934
+ if (textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.inputRef) {
935
+ textFieldProps.inputRef = inputRef;
936
+ }
937
+ } })), jsx(MRT_FilterOptionMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table, onSelect: handleClear })] })));
1026
938
  };
1027
939
 
1028
940
  const MRT_LinearProgressBar = ({ isTopToolbar, table, }) => {
@@ -1031,13 +943,12 @@ const MRT_LinearProgressBar = ({ isTopToolbar, table, }) => {
1031
943
  const linearProgressProps = muiLinearProgressProps instanceof Function
1032
944
  ? muiLinearProgressProps({ isTopToolbar, table })
1033
945
  : muiLinearProgressProps;
1034
- return (React.createElement(Collapse, { in: isLoading || showProgressBars, mountOnEnter: true, unmountOnExit: true, sx: {
946
+ return (jsx(Collapse, Object.assign({ in: isLoading || showProgressBars, mountOnEnter: true, unmountOnExit: true, sx: {
1035
947
  bottom: isTopToolbar ? 0 : undefined,
1036
948
  position: 'absolute',
1037
949
  top: !isTopToolbar ? 0 : undefined,
1038
950
  width: '100%',
1039
- } },
1040
- React.createElement(LinearProgress, Object.assign({ "aria-label": "Loading", "aria-busy": "true", sx: { position: 'relative' } }, linearProgressProps))));
951
+ } }, { children: jsx(LinearProgress, Object.assign({ "aria-label": "Loading", "aria-busy": "true", sx: { position: 'relative' } }, linearProgressProps)) })));
1041
952
  };
1042
953
 
1043
954
  const MRT_TablePagination = ({ table, position = 'bottom', }) => {
@@ -1051,7 +962,7 @@ const MRT_TablePagination = ({ table, position = 'bottom', }) => {
1051
962
  const handleChangeRowsPerPage = (event) => {
1052
963
  setPageSize(+event.target.value);
1053
964
  };
1054
- return (React.createElement(TablePagination, Object.assign({ component: "div", count: totalRowCount, getItemAriaLabel: (type) => type === 'first'
965
+ return (jsx(TablePagination, Object.assign({ component: "div", count: totalRowCount, getItemAriaLabel: (type) => type === 'first'
1055
966
  ? localization.goToFirstPage
1056
967
  : type === 'last'
1057
968
  ? localization.goToLastPage
@@ -1092,27 +1003,14 @@ const MRT_ToolbarAlertBanner = ({ stackAlertBanner, table, }) => {
1092
1003
  const selectMessage = getSelectedRowModel().rows.length > 0
1093
1004
  ? (_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())
1094
1005
  : null;
1095
- const groupedByMessage = grouping.length > 0 ? (React.createElement("span", null,
1096
- localization.groupedBy,
1097
- ' ',
1098
- grouping.map((columnId, index) => (React.createElement(Fragment, { key: `${index}-${columnId}` },
1099
- index > 0 ? localization.thenBy : '',
1100
- React.createElement(Chip, Object.assign({ label: table.getColumn(columnId).columnDef.header, onDelete: () => table.getColumn(columnId).toggleGrouping() }, chipProps))))))) : null;
1101
- return (React.createElement(Collapse, { in: showAlertBanner || !!selectMessage || !!groupedByMessage, timeout: stackAlertBanner ? 200 : 0 },
1102
- React.createElement(Alert, Object.assign({ color: "info", icon: false }, alertProps, { sx: (theme) => (Object.assign({ borderRadius: 0, fontSize: '1rem', left: 0, p: 0, position: 'relative', mb: stackAlertBanner
1006
+ const groupedByMessage = grouping.length > 0 ? (jsxs("span", { children: [localization.groupedBy, ' ', grouping.map((columnId, index) => (jsxs(Fragment$1, { children: [index > 0 ? localization.thenBy : '', jsx(Chip, Object.assign({ label: table.getColumn(columnId).columnDef.header, onDelete: () => table.getColumn(columnId).toggleGrouping() }, chipProps))] }, `${index}-${columnId}`)))] })) : null;
1007
+ return (jsx(Collapse, Object.assign({ in: showAlertBanner || !!selectMessage || !!groupedByMessage, timeout: stackAlertBanner ? 200 : 0 }, { children: jsxs(Alert, Object.assign({ color: "info", icon: false }, alertProps, { sx: (theme) => (Object.assign({ borderRadius: 0, fontSize: '1rem', left: 0, p: 0, position: 'relative', mb: stackAlertBanner
1103
1008
  ? 0
1104
1009
  : positionToolbarAlertBanner === 'bottom'
1105
1010
  ? '-1rem'
1106
1011
  : undefined, right: 0, top: 0, width: '100%', zIndex: 2 }, ((alertProps === null || alertProps === void 0 ? void 0 : alertProps.sx) instanceof Function
1107
1012
  ? alertProps.sx(theme)
1108
- : alertProps === null || alertProps === void 0 ? void 0 : alertProps.sx))) }),
1109
- (alertProps === null || alertProps === void 0 ? void 0 : alertProps.title) && React.createElement(AlertTitle, null, alertProps.title),
1110
- React.createElement(Box, { sx: { p: '0.5rem 1rem' } }, alertProps === null || alertProps === void 0 ? void 0 :
1111
- alertProps.children,
1112
- (alertProps === null || alertProps === void 0 ? void 0 : alertProps.children) && (selectMessage || groupedByMessage) && (React.createElement("br", null)),
1113
- selectMessage,
1114
- selectMessage && groupedByMessage && React.createElement("br", null),
1115
- groupedByMessage))));
1013
+ : alertProps === null || alertProps === void 0 ? void 0 : alertProps.sx))) }, { children: [(alertProps === null || alertProps === void 0 ? void 0 : alertProps.title) && jsx(AlertTitle, { children: alertProps.title }), jsxs(Box, 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) && (jsx("br", {})), selectMessage, selectMessage && groupedByMessage && jsx("br", {}), groupedByMessage] }))] })) })));
1116
1014
  };
1117
1015
 
1118
1016
  const MRT_FullScreenToggleButton = (_a) => {
@@ -1123,8 +1021,7 @@ const MRT_FullScreenToggleButton = (_a) => {
1123
1021
  const handleToggleFullScreen = () => {
1124
1022
  setIsFullScreen(!isFullScreen);
1125
1023
  };
1126
- return (React.createElement(Tooltip, { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleFullScreen },
1127
- React.createElement(IconButton, Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleFullScreen }, rest, { title: undefined }), isFullScreen ? React.createElement(FullscreenExitIcon, null) : React.createElement(FullscreenIcon, null))));
1024
+ return (jsx(Tooltip, Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleFullScreen }, { children: jsx(IconButton, Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleFullScreen }, rest, { title: undefined }, { children: isFullScreen ? jsx(FullscreenExitIcon, {}) : jsx(FullscreenIcon, {}) })) })));
1128
1025
  };
1129
1026
 
1130
1027
  const MRT_ColumnPinningButtons = ({ column, table, }) => {
@@ -1132,26 +1029,17 @@ const MRT_ColumnPinningButtons = ({ column, table, }) => {
1132
1029
  const handlePinColumn = (pinDirection) => {
1133
1030
  column.pin(pinDirection);
1134
1031
  };
1135
- return (React.createElement(Box, { sx: { minWidth: '70px', textAlign: 'center' } }, column.getIsPinned() ? (React.createElement(Tooltip, { arrow: true, title: localization.unpin },
1136
- React.createElement(IconButton, { onClick: () => handlePinColumn(false), size: "small" },
1137
- React.createElement(PushPinIcon, null)))) : (React.createElement(React.Fragment, null,
1138
- React.createElement(Tooltip, { arrow: true, title: localization.pinToLeft },
1139
- React.createElement(IconButton, { onClick: () => handlePinColumn('left'), size: "small" },
1140
- React.createElement(PushPinIcon, { style: {
1141
- transform: 'rotate(90deg)',
1142
- } }))),
1143
- React.createElement(Tooltip, { arrow: true, title: localization.pinToRight },
1144
- React.createElement(IconButton, { onClick: () => handlePinColumn('right'), size: "small" },
1145
- React.createElement(PushPinIcon, { style: {
1146
- transform: 'rotate(-90deg)',
1147
- } })))))));
1032
+ return (jsx(Box, Object.assign({ sx: { minWidth: '70px', textAlign: 'center' } }, { children: column.getIsPinned() ? (jsx(Tooltip, Object.assign({ arrow: true, title: localization.unpin }, { children: jsx(IconButton, Object.assign({ onClick: () => handlePinColumn(false), size: "small" }, { children: jsx(PushPinIcon, {}) })) }))) : (jsxs(Fragment, { children: [jsx(Tooltip, Object.assign({ arrow: true, title: localization.pinToLeft }, { children: jsx(IconButton, Object.assign({ onClick: () => handlePinColumn('left'), size: "small" }, { children: jsx(PushPinIcon, { style: {
1033
+ transform: 'rotate(90deg)',
1034
+ } }) })) })), jsx(Tooltip, Object.assign({ arrow: true, title: localization.pinToRight }, { children: jsx(IconButton, Object.assign({ onClick: () => handlePinColumn('right'), size: "small" }, { children: jsx(PushPinIcon, { style: {
1035
+ transform: 'rotate(-90deg)',
1036
+ } }) })) }))] })) })));
1148
1037
  };
1149
1038
 
1150
1039
  const MRT_GrabHandleButton = ({ iconButtonProps, onDragEnd, onDragStart, table, }) => {
1151
1040
  var _a;
1152
1041
  const { options: { icons: { DragHandleIcon }, localization, }, } = table;
1153
- return (React.createElement(Tooltip, { 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 },
1154
- React.createElement(IconButton, Object.assign({ disableRipple: true, draggable: "true", size: "small" }, iconButtonProps, { onClick: (e) => {
1042
+ return (jsx(Tooltip, 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: jsx(IconButton, Object.assign({ disableRipple: true, draggable: "true", size: "small" }, iconButtonProps, { onClick: (e) => {
1155
1043
  var _a;
1156
1044
  e.stopPropagation();
1157
1045
  (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, e);
@@ -1162,8 +1050,7 @@ const MRT_GrabHandleButton = ({ iconButtonProps, onDragEnd, onDragStart, table,
1162
1050
  cursor: 'grabbing',
1163
1051
  } }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
1164
1052
  ? iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx(theme)
1165
- : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }),
1166
- React.createElement(DragHandleIcon, null))));
1053
+ : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }, { children: jsx(DragHandleIcon, {}) })) })));
1167
1054
  };
1168
1055
 
1169
1056
  const MRT_ShowHideColumnsMenuItems = ({ allColumns, hoveredColumn, setHoveredColumn, column, table, }) => {
@@ -1204,42 +1091,35 @@ const MRT_ShowHideColumnsMenuItems = ({ allColumns, hoveredColumn, setHoveredCol
1204
1091
  setHoveredColumn(column);
1205
1092
  }
1206
1093
  };
1207
- return (React.createElement(React.Fragment, null,
1208
- React.createElement(MenuItem, { disableRipple: true, ref: menuItemRef, onDragEnter: handleDragEnter, sx: (theme) => ({
1209
- alignItems: 'center',
1210
- justifyContent: 'flex-start',
1211
- my: 0,
1212
- opacity: isDragging ? 0.5 : 1,
1213
- outlineOffset: '-2px',
1214
- outline: isDragging
1215
- ? `2px dashed ${theme.palette.divider}`
1216
- : (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id
1217
- ? `2px dashed ${theme.palette.primary.main}`
1218
- : 'none',
1219
- pl: `${(column.depth + 0.5) * 2}rem`,
1220
- py: '6px',
1221
- }) },
1222
- React.createElement(Box, { sx: {
1223
- display: 'flex',
1224
- flexWrap: 'nowrap',
1225
- gap: '8px',
1226
- } },
1227
- columnDefType !== 'group' &&
1228
- enableColumnOrdering &&
1229
- !allColumns.some((col) => col.columnDef.columnDefType === 'group') &&
1230
- (columnDef.enableColumnOrdering !== false ? (React.createElement(MRT_GrabHandleButton, { onDragEnd: handleDragEnd, onDragStart: handleDragStart, table: table })) : (React.createElement(Box, { sx: { width: '28px' } }))),
1231
- enablePinning &&
1232
- (column.getCanPin() ? (React.createElement(MRT_ColumnPinningButtons, { column: column, table: table })) : (React.createElement(Box, { sx: { width: '70px' } }))),
1233
- enableHiding ? (React.createElement(FormControlLabel, { componentsProps: {
1234
- typography: {
1235
- sx: {
1236
- mb: 0,
1237
- opacity: columnDefType !== 'display' ? 1 : 0.5,
1238
- },
1239
- },
1240
- }, checked: switchChecked, control: React.createElement(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.toggleVisibility },
1241
- React.createElement(Switch, null)), disabled: !column.getCanHide(), label: columnDef.header, onChange: () => handleToggleColumnHidden(column) })) : (React.createElement(Typography, { sx: { alignSelf: 'center' } }, columnDef.header)))), (_a = column.columns) === null || _a === void 0 ? void 0 :
1242
- _a.map((c, i) => (React.createElement(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: c, hoveredColumn: hoveredColumn, key: `${i}-${c.id}`, setHoveredColumn: setHoveredColumn, table: table })))));
1094
+ return (jsxs(Fragment, { children: [jsx(MenuItem, Object.assign({ disableRipple: true, ref: menuItemRef, onDragEnter: handleDragEnter, sx: (theme) => ({
1095
+ alignItems: 'center',
1096
+ justifyContent: 'flex-start',
1097
+ my: 0,
1098
+ opacity: isDragging ? 0.5 : 1,
1099
+ outlineOffset: '-2px',
1100
+ outline: isDragging
1101
+ ? `2px dashed ${theme.palette.divider}`
1102
+ : (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id
1103
+ ? `2px dashed ${theme.palette.primary.main}`
1104
+ : 'none',
1105
+ pl: `${(column.depth + 0.5) * 2}rem`,
1106
+ py: '6px',
1107
+ }) }, { children: jsxs(Box, Object.assign({ sx: {
1108
+ display: 'flex',
1109
+ flexWrap: 'nowrap',
1110
+ gap: '8px',
1111
+ } }, { children: [columnDefType !== 'group' &&
1112
+ enableColumnOrdering &&
1113
+ !allColumns.some((col) => col.columnDef.columnDefType === 'group') &&
1114
+ (columnDef.enableColumnOrdering !== false ? (jsx(MRT_GrabHandleButton, { onDragEnd: handleDragEnd, onDragStart: handleDragStart, table: table })) : (jsx(Box, { sx: { width: '28px' } }))), enablePinning &&
1115
+ (column.getCanPin() ? (jsx(MRT_ColumnPinningButtons, { column: column, table: table })) : (jsx(Box, { sx: { width: '70px' } }))), enableHiding ? (jsx(FormControlLabel, { componentsProps: {
1116
+ typography: {
1117
+ sx: {
1118
+ mb: 0,
1119
+ opacity: columnDefType !== 'display' ? 1 : 0.5,
1120
+ },
1121
+ },
1122
+ }, checked: switchChecked, control: jsx(Tooltip, Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.toggleVisibility }, { children: jsx(Switch, {}) })), disabled: !column.getCanHide(), label: columnDef.header, onChange: () => handleToggleColumnHidden(column) })) : (jsx(Typography, Object.assign({ sx: { alignSelf: 'center' } }, { children: columnDef.header })))] })) })), (_a = column.columns) === null || _a === void 0 ? void 0 : _a.map((c, i) => (jsx(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: c, hoveredColumn: hoveredColumn, setHoveredColumn: setHoveredColumn, table: table }, `${i}-${c.id}`)))] }));
1243
1123
  };
1244
1124
 
1245
1125
  const MRT_ShowHideColumnsMenu = ({ anchorEl, setAnchorEl, table, }) => {
@@ -1270,21 +1150,14 @@ const MRT_ShowHideColumnsMenu = ({ anchorEl, setAnchorEl, table, }) => {
1270
1150
  getRightLeafColumns(),
1271
1151
  ]);
1272
1152
  const [hoveredColumn, setHoveredColumn] = useState(null);
1273
- return (React.createElement(Menu, { anchorEl: anchorEl, open: !!anchorEl, onClose: () => setAnchorEl(null), MenuListProps: {
1153
+ return (jsxs(Menu, Object.assign({ anchorEl: anchorEl, open: !!anchorEl, onClose: () => setAnchorEl(null), MenuListProps: {
1274
1154
  dense: density === 'compact',
1275
- } },
1276
- React.createElement(Box, { sx: {
1277
- display: 'flex',
1278
- justifyContent: 'space-between',
1279
- p: '0.5rem',
1280
- pt: 0,
1281
- } },
1282
- enableHiding && (React.createElement(Button, { disabled: !getIsSomeColumnsVisible(), onClick: hideAllColumns }, localization.hideAll)),
1283
- enableColumnOrdering && (React.createElement(Button, { onClick: () => table.setColumnOrder(getDefaultColumnOrderIds(table.options)) }, localization.resetOrder)),
1284
- enablePinning && (React.createElement(Button, { disabled: !getIsSomeColumnsPinned(), onClick: () => table.resetColumnPinning(true) }, localization.unpinAll)),
1285
- enableHiding && (React.createElement(Button, { disabled: getIsAllColumnsVisible(), onClick: () => toggleAllColumnsVisible(true) }, localization.showAll))),
1286
- React.createElement(Divider, null),
1287
- allColumns.map((column, index) => (React.createElement(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: column, hoveredColumn: hoveredColumn, key: `${index}-${column.id}`, setHoveredColumn: setHoveredColumn, table: table })))));
1155
+ } }, { children: [jsxs(Box, Object.assign({ sx: {
1156
+ display: 'flex',
1157
+ justifyContent: 'space-between',
1158
+ p: '0.5rem',
1159
+ pt: 0,
1160
+ } }, { children: [enableHiding && (jsx(Button, Object.assign({ disabled: !getIsSomeColumnsVisible(), onClick: hideAllColumns }, { children: localization.hideAll }))), enableColumnOrdering && (jsx(Button, Object.assign({ onClick: () => table.setColumnOrder(getDefaultColumnOrderIds(table.options)) }, { children: localization.resetOrder }))), enablePinning && (jsx(Button, Object.assign({ disabled: !getIsSomeColumnsPinned(), onClick: () => table.resetColumnPinning(true) }, { children: localization.unpinAll }))), enableHiding && (jsx(Button, Object.assign({ disabled: getIsAllColumnsVisible(), onClick: () => toggleAllColumnsVisible(true) }, { children: localization.showAll })))] })), jsx(Divider, {}), allColumns.map((column, index) => (jsx(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: column, hoveredColumn: hoveredColumn, setHoveredColumn: setHoveredColumn, table: table }, `${index}-${column.id}`)))] })));
1288
1161
  };
1289
1162
 
1290
1163
  const MRT_ShowHideColumnsButton = (_a) => {
@@ -1295,11 +1168,7 @@ const MRT_ShowHideColumnsButton = (_a) => {
1295
1168
  const handleClick = (event) => {
1296
1169
  setAnchorEl(event.currentTarget);
1297
1170
  };
1298
- return (React.createElement(React.Fragment, null,
1299
- React.createElement(Tooltip, { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideColumns },
1300
- React.createElement(IconButton, Object.assign({ "aria-label": localization.showHideColumns, onClick: handleClick }, rest, { title: undefined }),
1301
- React.createElement(ViewColumnIcon, null))),
1302
- anchorEl && (React.createElement(MRT_ShowHideColumnsMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table }))));
1171
+ return (jsxs(Fragment, { children: [jsx(Tooltip, Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideColumns }, { children: jsx(IconButton, Object.assign({ "aria-label": localization.showHideColumns, onClick: handleClick }, rest, { title: undefined }, { children: jsx(ViewColumnIcon, {}) })) })), anchorEl && (jsx(MRT_ShowHideColumnsMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table }))] }));
1303
1172
  };
1304
1173
 
1305
1174
  const MRT_ToggleDensePaddingButton = (_a) => {
@@ -1315,8 +1184,7 @@ const MRT_ToggleDensePaddingButton = (_a) => {
1315
1184
  : 'comfortable';
1316
1185
  setDensity(nextDensity);
1317
1186
  };
1318
- return (React.createElement(Tooltip, { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleDensity },
1319
- React.createElement(IconButton, Object.assign({ "aria-label": localization.toggleDensity, onClick: handleToggleDensePadding }, rest, { title: undefined }), density === 'compact' ? (React.createElement(DensitySmallIcon, null)) : density === 'comfortable' ? (React.createElement(DensityMediumIcon, null)) : (React.createElement(DensityLargeIcon, null)))));
1187
+ return (jsx(Tooltip, Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleDensity }, { children: jsx(IconButton, Object.assign({ "aria-label": localization.toggleDensity, onClick: handleToggleDensePadding }, rest, { title: undefined }, { children: density === 'compact' ? (jsx(DensitySmallIcon, {})) : density === 'comfortable' ? (jsx(DensityMediumIcon, {})) : (jsx(DensityLargeIcon, {})) })) })));
1320
1188
  };
1321
1189
 
1322
1190
  const MRT_ToggleFiltersButton = (_a) => {
@@ -1327,8 +1195,7 @@ const MRT_ToggleFiltersButton = (_a) => {
1327
1195
  const handleToggleShowFilters = () => {
1328
1196
  setShowColumnFilters(!showColumnFilters);
1329
1197
  };
1330
- return (React.createElement(Tooltip, { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideFilters },
1331
- React.createElement(IconButton, Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleShowFilters }, rest, { title: undefined }), showColumnFilters ? React.createElement(FilterListOffIcon, null) : React.createElement(FilterListIcon, null))));
1198
+ return (jsx(Tooltip, Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideFilters }, { children: jsx(IconButton, Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleShowFilters }, rest, { title: undefined }, { children: showColumnFilters ? jsx(FilterListOffIcon, {}) : jsx(FilterListIcon, {}) })) })));
1332
1199
  };
1333
1200
 
1334
1201
  const MRT_ToggleGlobalFilterButton = (_a) => {
@@ -1340,27 +1207,21 @@ const MRT_ToggleGlobalFilterButton = (_a) => {
1340
1207
  setShowGlobalFilter(!showGlobalFilter);
1341
1208
  queueMicrotask(() => { var _a; return (_a = searchInputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
1342
1209
  };
1343
- return (React.createElement(Tooltip, { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideSearch },
1344
- React.createElement(IconButton, 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.createElement(SearchOffIcon, null) : React.createElement(SearchIcon, null))));
1210
+ return (jsx(Tooltip, Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideSearch }, { children: jsx(IconButton, 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 ? jsx(SearchOffIcon, {}) : jsx(SearchIcon, {}) })) })));
1345
1211
  };
1346
1212
 
1347
1213
  const MRT_ToolbarInternalButtons = ({ table, }) => {
1348
1214
  var _a;
1349
1215
  const { options: { enableColumnFilters, enableColumnOrdering, enableDensityToggle, enableFilters, enableFullScreenToggle, enableGlobalFilter, enableHiding, enablePinning, initialState, renderToolbarInternalActions, }, } = table;
1350
- return (React.createElement(Box, { sx: {
1216
+ return (jsx(Box, Object.assign({ sx: {
1351
1217
  alignItems: 'center',
1352
1218
  display: 'flex',
1353
1219
  zIndex: 3,
1354
- } }, (_a = renderToolbarInternalActions === null || renderToolbarInternalActions === void 0 ? void 0 : renderToolbarInternalActions({
1355
- table,
1356
- })) !== null && _a !== void 0 ? _a : (React.createElement(React.Fragment, null,
1357
- enableFilters &&
1358
- enableGlobalFilter &&
1359
- !(initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) && (React.createElement(MRT_ToggleGlobalFilterButton, { table: table })),
1360
- enableFilters && enableColumnFilters && (React.createElement(MRT_ToggleFiltersButton, { table: table })),
1361
- (enableHiding || enableColumnOrdering || enablePinning) && (React.createElement(MRT_ShowHideColumnsButton, { table: table })),
1362
- enableDensityToggle && (React.createElement(MRT_ToggleDensePaddingButton, { table: table })),
1363
- enableFullScreenToggle && (React.createElement(MRT_FullScreenToggleButton, { table: table }))))));
1220
+ } }, { children: (_a = renderToolbarInternalActions === null || renderToolbarInternalActions === void 0 ? void 0 : renderToolbarInternalActions({
1221
+ table,
1222
+ })) !== null && _a !== void 0 ? _a : (jsxs(Fragment, { children: [enableFilters &&
1223
+ enableGlobalFilter &&
1224
+ !(initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) && (jsx(MRT_ToggleGlobalFilterButton, { table: table })), enableFilters && enableColumnFilters && (jsx(MRT_ToggleFiltersButton, { table: table })), (enableHiding || enableColumnOrdering || enablePinning) && (jsx(MRT_ShowHideColumnsButton, { table: table })), enableDensityToggle && (jsx(MRT_ToggleDensePaddingButton, { table: table })), enableFullScreenToggle && (jsx(MRT_FullScreenToggleButton, { table: table }))] })) })));
1364
1225
  };
1365
1226
 
1366
1227
  const MRT_ToolbarDropZone = ({ table, }) => {
@@ -1379,8 +1240,7 @@ const MRT_ToolbarDropZone = ({ table, }) => {
1379
1240
  !grouping.includes(draggingColumn.id));
1380
1241
  }
1381
1242
  }, [enableGrouping, draggingColumn, grouping]);
1382
- return (React.createElement(Fade, { in: showToolbarDropZone },
1383
- React.createElement(Box, { className: "Mui-ToolbarDropZone", sx: (theme) => ({
1243
+ return (jsx(Fade, Object.assign({ in: showToolbarDropZone }, { children: jsx(Box, Object.assign({ className: "Mui-ToolbarDropZone", sx: (theme) => ({
1384
1244
  alignItems: 'center',
1385
1245
  backgroundColor: alpha(theme.palette.info.main, (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === 'drop-zone' ? 0.2 : 0.1),
1386
1246
  backdropFilter: 'blur(4px)',
@@ -1392,8 +1252,7 @@ const MRT_ToolbarDropZone = ({ table, }) => {
1392
1252
  position: 'absolute',
1393
1253
  width: '100%',
1394
1254
  zIndex: 4,
1395
- }), onDragEnter: handleDragEnter },
1396
- React.createElement(Typography, { 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 : '')))));
1255
+ }), onDragEnter: handleDragEnter }, { children: jsx(Typography, 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 : '') })) })) })));
1397
1256
  };
1398
1257
 
1399
1258
  const commonToolbarStyles = ({ theme }) => ({
@@ -1417,7 +1276,7 @@ const MRT_TopToolbar = ({ table, }) => {
1417
1276
  ? muiTopToolbarProps({ table })
1418
1277
  : muiTopToolbarProps;
1419
1278
  const stackAlertBanner = isMobile || !!renderTopToolbarCustomActions || showGlobalFilter;
1420
- return (React.createElement(Toolbar, Object.assign({ variant: "dense" }, toolbarProps, { ref: (ref) => {
1279
+ return (jsxs(Toolbar, Object.assign({ variant: "dense" }, toolbarProps, { ref: (ref) => {
1421
1280
  topToolbarRef.current = ref;
1422
1281
  if (toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.ref) {
1423
1282
  // @ts-ignore
@@ -1425,32 +1284,23 @@ const MRT_TopToolbar = ({ table, }) => {
1425
1284
  }
1426
1285
  }, 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
1427
1286
  ? toolbarProps.sx(theme)
1428
- : toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx))) }),
1429
- positionToolbarAlertBanner === 'top' && (React.createElement(MRT_ToolbarAlertBanner, { stackAlertBanner: stackAlertBanner, table: table })),
1430
- ['both', 'top'].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : '') && (React.createElement(MRT_ToolbarDropZone, { table: table })),
1431
- React.createElement(Box, { sx: {
1432
- alignItems: 'flex-start',
1433
- boxSizing: 'border-box',
1434
- display: 'flex',
1435
- justifyContent: 'space-between',
1436
- p: '0.5rem',
1437
- position: stackAlertBanner ? 'relative' : 'absolute',
1438
- right: 0,
1439
- top: 0,
1440
- width: '100%',
1441
- } },
1442
- enableGlobalFilter && positionGlobalFilter === 'left' && (React.createElement(MRT_GlobalFilterTextField, { table: table })), (_a = renderTopToolbarCustomActions === null || renderTopToolbarCustomActions === void 0 ? void 0 : renderTopToolbarCustomActions({ table })) !== null && _a !== void 0 ? _a : React.createElement("span", null),
1443
- enableToolbarInternalActions ? (React.createElement(Box, { sx: {
1287
+ : toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx))) }, { children: [positionToolbarAlertBanner === 'top' && (jsx(MRT_ToolbarAlertBanner, { stackAlertBanner: stackAlertBanner, table: table })), ['both', 'top'].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : '') && (jsx(MRT_ToolbarDropZone, { table: table })), jsxs(Box, Object.assign({ sx: {
1288
+ alignItems: 'flex-start',
1289
+ boxSizing: 'border-box',
1444
1290
  display: 'flex',
1445
- flexWrap: 'wrap-reverse',
1446
- justifyContent: 'flex-end',
1447
- } },
1448
- enableGlobalFilter && positionGlobalFilter === 'right' && (React.createElement(MRT_GlobalFilterTextField, { table: table })),
1449
- React.createElement(MRT_ToolbarInternalButtons, { table: table }))) : (enableGlobalFilter &&
1450
- positionGlobalFilter === 'right' && (React.createElement(MRT_GlobalFilterTextField, { table: table })))),
1451
- enablePagination &&
1452
- ['top', 'both'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (React.createElement(MRT_TablePagination, { table: table, position: "top" })),
1453
- React.createElement(MRT_LinearProgressBar, { isTopToolbar: true, table: table })));
1291
+ justifyContent: 'space-between',
1292
+ p: '0.5rem',
1293
+ position: stackAlertBanner ? 'relative' : 'absolute',
1294
+ right: 0,
1295
+ top: 0,
1296
+ width: '100%',
1297
+ } }, { children: [enableGlobalFilter && positionGlobalFilter === 'left' && (jsx(MRT_GlobalFilterTextField, { table: table })), (_a = renderTopToolbarCustomActions === null || renderTopToolbarCustomActions === void 0 ? void 0 : renderTopToolbarCustomActions({ table })) !== null && _a !== void 0 ? _a : jsx("span", {}), enableToolbarInternalActions ? (jsxs(Box, Object.assign({ sx: {
1298
+ display: 'flex',
1299
+ flexWrap: 'wrap-reverse',
1300
+ justifyContent: 'flex-end',
1301
+ } }, { children: [enableGlobalFilter && positionGlobalFilter === 'right' && (jsx(MRT_GlobalFilterTextField, { table: table })), jsx(MRT_ToolbarInternalButtons, { table: table })] }))) : (enableGlobalFilter &&
1302
+ positionGlobalFilter === 'right' && (jsx(MRT_GlobalFilterTextField, { table: table })))] })), enablePagination &&
1303
+ ['top', 'both'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (jsx(MRT_TablePagination, { table: table, position: "top" })), jsx(MRT_LinearProgressBar, { isTopToolbar: true, table: table })] })));
1454
1304
  };
1455
1305
 
1456
1306
  const MRT_BottomToolbar = ({ table, }) => {
@@ -1461,7 +1311,7 @@ const MRT_BottomToolbar = ({ table, }) => {
1461
1311
  ? muiBottomToolbarProps({ table })
1462
1312
  : muiBottomToolbarProps;
1463
1313
  const stackAlertBanner = isMobile || !!renderBottomToolbarCustomActions;
1464
- return (React.createElement(Toolbar, Object.assign({ variant: "dense" }, toolbarProps, { ref: (node) => {
1314
+ return (jsxs(Toolbar, Object.assign({ variant: "dense" }, toolbarProps, { ref: (node) => {
1465
1315
  if (node) {
1466
1316
  bottomToolbarRef.current = node;
1467
1317
  if (toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.ref) {
@@ -1471,27 +1321,21 @@ const MRT_BottomToolbar = ({ table, }) => {
1471
1321
  }
1472
1322
  }, sx: (theme) => (Object.assign(Object.assign(Object.assign({}, commonToolbarStyles({ theme })), { bottom: isFullScreen ? '0' : undefined, boxShadow: `0 1px 2px -1px ${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
1473
1323
  ? toolbarProps.sx(theme)
1474
- : toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx))) }),
1475
- React.createElement(MRT_LinearProgressBar, { isTopToolbar: false, table: table }),
1476
- positionToolbarAlertBanner === 'bottom' && (React.createElement(MRT_ToolbarAlertBanner, { stackAlertBanner: stackAlertBanner, table: table })),
1477
- ['both', 'bottom'].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : '') && (React.createElement(MRT_ToolbarDropZone, { table: table })),
1478
- React.createElement(Box, { sx: {
1479
- alignItems: 'center',
1480
- boxSizing: 'border-box',
1481
- display: 'flex',
1482
- justifyContent: 'space-between',
1483
- p: '0.5rem',
1484
- width: '100%',
1485
- } },
1486
- renderBottomToolbarCustomActions ? (renderBottomToolbarCustomActions({ table })) : (React.createElement("span", null)),
1487
- React.createElement(Box, { sx: {
1324
+ : toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx))) }, { children: [jsx(MRT_LinearProgressBar, { isTopToolbar: false, table: table }), positionToolbarAlertBanner === 'bottom' && (jsx(MRT_ToolbarAlertBanner, { stackAlertBanner: stackAlertBanner, table: table })), ['both', 'bottom'].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : '') && (jsx(MRT_ToolbarDropZone, { table: table })), jsxs(Box, Object.assign({ sx: {
1325
+ alignItems: 'center',
1326
+ boxSizing: 'border-box',
1488
1327
  display: 'flex',
1489
- justifyContent: 'flex-end',
1490
- position: stackAlertBanner ? 'relative' : 'absolute',
1491
- right: 0,
1492
- top: 0,
1493
- } }, enablePagination &&
1494
- ['bottom', 'both'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (React.createElement(MRT_TablePagination, { table: table, position: "bottom" }))))));
1328
+ justifyContent: 'space-between',
1329
+ p: '0.5rem',
1330
+ width: '100%',
1331
+ } }, { children: [renderBottomToolbarCustomActions ? (renderBottomToolbarCustomActions({ table })) : (jsx("span", {})), jsx(Box, Object.assign({ sx: {
1332
+ display: 'flex',
1333
+ justifyContent: 'flex-end',
1334
+ position: stackAlertBanner ? 'relative' : 'absolute',
1335
+ right: 0,
1336
+ top: 0,
1337
+ } }, { children: enablePagination &&
1338
+ ['bottom', 'both'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (jsx(MRT_TablePagination, { table: table, position: "bottom" })) }))] }))] })));
1495
1339
  };
1496
1340
 
1497
1341
  const MRT_TableHeadCellColumnActionsButton = ({ header, table, }) => {
@@ -1515,15 +1359,11 @@ const MRT_TableHeadCellColumnActionsButton = ({ header, table, }) => {
1515
1359
  })
1516
1360
  : columnDef.muiTableHeadCellColumnActionsButtonProps;
1517
1361
  const iconButtonProps = Object.assign(Object.assign({}, mTableHeadCellColumnActionsButtonProps), mcTableHeadCellColumnActionsButtonProps);
1518
- return (React.createElement(React.Fragment, null,
1519
- React.createElement(Tooltip, { 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 },
1520
- React.createElement(IconButton, 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': {
1521
- opacity: 1,
1522
- } }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
1523
- ? iconButtonProps.sx(theme)
1524
- : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }),
1525
- React.createElement(MoreVertIcon, null))),
1526
- anchorEl && (React.createElement(MRT_ColumnActionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table }))));
1362
+ return (jsxs(Fragment, { children: [jsx(Tooltip, 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: jsx(IconButton, 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': {
1363
+ opacity: 1,
1364
+ } }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
1365
+ ? iconButtonProps.sx(theme)
1366
+ : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }, { children: jsx(MoreVertIcon, {}) })) })), anchorEl && (jsx(MRT_ColumnActionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table }))] }));
1527
1367
  };
1528
1368
 
1529
1369
  const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
@@ -1646,100 +1486,83 @@ const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
1646
1486
  isMounted.current = true;
1647
1487
  }, [column.getFilterValue()]);
1648
1488
  if (columnDef.Filter) {
1649
- return (React.createElement(React.Fragment, null, (_f = columnDef.Filter) === null || _f === void 0 ? void 0 : _f.call(columnDef, { column, header, rangeFilterIndex, table })));
1489
+ return (jsx(Fragment, { children: (_f = columnDef.Filter) === null || _f === void 0 ? void 0 : _f.call(columnDef, { column, header, rangeFilterIndex, table }) }));
1650
1490
  }
1651
- return (React.createElement(React.Fragment, null,
1652
- React.createElement(TextField, Object.assign({ fullWidth: true, inputProps: {
1653
- disabled: !!filterChipLabel,
1654
- sx: {
1655
- textOverflow: 'ellipsis',
1656
- width: filterChipLabel ? 0 : undefined,
1657
- },
1658
- title: filterPlaceholder,
1659
- }, helperText: showChangeModeButton ? (React.createElement("label", null, localization.filterMode.replace('{filterType}',
1660
- // @ts-ignore
1661
- localization[`filter${((_g = currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.charAt(0)) === null || _g === void 0 ? void 0 : _g.toUpperCase()) +
1662
- (currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.slice(1))}`]))) : null, FormHelperTextProps: {
1663
- sx: {
1664
- fontSize: '0.75rem',
1665
- lineHeight: '0.8rem',
1666
- whiteSpace: 'nowrap',
1667
- },
1668
- }, margin: "none", placeholder: filterChipLabel || isSelectFilter || isMultiSelectFilter
1669
- ? undefined
1670
- : filterPlaceholder, onChange: handleChange, onClick: (e) => e.stopPropagation(), select: isSelectFilter || isMultiSelectFilter, value: filterValue !== null && filterValue !== void 0 ? filterValue : '', variant: "standard", InputProps: {
1671
- startAdornment: showChangeModeButton ? (React.createElement(InputAdornment, { position: "start" },
1672
- React.createElement(Tooltip, { arrow: true, title: localization.changeFilterMode },
1673
- React.createElement("span", null,
1674
- React.createElement(IconButton, { "aria-label": localization.changeFilterMode, onClick: handleFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' } },
1675
- React.createElement(FilterListIcon, null)))),
1676
- filterChipLabel && (React.createElement(Chip, { onDelete: handleClearEmptyFilterChip, label: filterChipLabel })))) : null,
1677
- endAdornment: !filterChipLabel && (React.createElement(InputAdornment, { position: "end" },
1678
- React.createElement(Tooltip, { arrow: true, placement: "right", title: (_h = localization.clearFilter) !== null && _h !== void 0 ? _h : '' },
1679
- React.createElement("span", null,
1680
- React.createElement(IconButton, { "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: {
1681
- height: '1.75rem',
1682
- width: '1.75rem',
1683
- } },
1684
- React.createElement(CloseIcon, null)))))),
1685
- }, SelectProps: {
1686
- displayEmpty: true,
1687
- multiple: isMultiSelectFilter,
1688
- renderValue: isMultiSelectFilter
1689
- ? (selected) => !(selected === null || selected === void 0 ? void 0 : selected.length) ? (React.createElement(Box, { sx: { opacity: 0.5 } }, filterPlaceholder)) : (React.createElement(Box, { sx: { display: 'flex', flexWrap: 'wrap', gap: '2px' } }, selected === null || selected === void 0 ? void 0 : selected.map((value) => {
1491
+ return (jsxs(Fragment, { children: [jsxs(TextField, Object.assign({ fullWidth: true, inputProps: {
1492
+ disabled: !!filterChipLabel,
1493
+ sx: {
1494
+ textOverflow: 'ellipsis',
1495
+ width: filterChipLabel ? 0 : undefined,
1496
+ },
1497
+ title: filterPlaceholder,
1498
+ }, helperText: showChangeModeButton ? (jsx("label", { children: localization.filterMode.replace('{filterType}',
1499
+ // @ts-ignore
1500
+ localization[`filter${((_g = currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.charAt(0)) === null || _g === void 0 ? void 0 : _g.toUpperCase()) +
1501
+ (currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.slice(1))}`]) })) : null, FormHelperTextProps: {
1502
+ sx: {
1503
+ fontSize: '0.75rem',
1504
+ lineHeight: '0.8rem',
1505
+ whiteSpace: 'nowrap',
1506
+ },
1507
+ }, margin: "none", placeholder: filterChipLabel || isSelectFilter || isMultiSelectFilter
1508
+ ? undefined
1509
+ : filterPlaceholder, onChange: handleChange, onClick: (e) => e.stopPropagation(), select: isSelectFilter || isMultiSelectFilter, value: filterValue !== null && filterValue !== void 0 ? filterValue : '', variant: "standard", InputProps: {
1510
+ startAdornment: showChangeModeButton ? (jsxs(InputAdornment, Object.assign({ position: "start" }, { children: [jsx(Tooltip, Object.assign({ arrow: true, title: localization.changeFilterMode }, { children: jsx("span", { children: jsx(IconButton, Object.assign({ "aria-label": localization.changeFilterMode, onClick: handleFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' } }, { children: jsx(FilterListIcon, {}) })) }) })), filterChipLabel && (jsx(Chip, { onDelete: handleClearEmptyFilterChip, label: filterChipLabel }))] }))) : null,
1511
+ endAdornment: !filterChipLabel && (jsx(InputAdornment, Object.assign({ position: "end" }, { children: jsx(Tooltip, Object.assign({ arrow: true, placement: "right", title: (_h = localization.clearFilter) !== null && _h !== void 0 ? _h : '' }, { children: jsx("span", { children: jsx(IconButton, 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: {
1512
+ height: '1.75rem',
1513
+ width: '1.75rem',
1514
+ } }, { children: jsx(CloseIcon, {}) })) }) })) }))),
1515
+ }, SelectProps: {
1516
+ displayEmpty: true,
1517
+ multiple: isMultiSelectFilter,
1518
+ renderValue: isMultiSelectFilter
1519
+ ? (selected) => !(selected === null || selected === void 0 ? void 0 : selected.length) ? (jsx(Box, Object.assign({ sx: { opacity: 0.5 } }, { children: filterPlaceholder }))) : (jsx(Box, Object.assign({ sx: { display: 'flex', flexWrap: 'wrap', gap: '2px' } }, { children: selected === null || selected === void 0 ? void 0 : selected.map((value) => {
1520
+ var _a;
1521
+ const selectedValue = (_a = columnDef.filterSelectOptions) === null || _a === void 0 ? void 0 : _a.find((option) => option instanceof Object
1522
+ ? option.value === value
1523
+ : option === value);
1524
+ return (jsx(Chip, { label: selectedValue instanceof Object
1525
+ ? selectedValue.text
1526
+ : selectedValue }, value));
1527
+ }) })))
1528
+ : undefined,
1529
+ } }, textFieldProps, { inputRef: (inputRef) => {
1530
+ filterInputRefs.current[`${column.id}-${rangeFilterIndex !== null && rangeFilterIndex !== void 0 ? rangeFilterIndex : 0}`] =
1531
+ inputRef;
1532
+ if (textFieldProps.inputRef) {
1533
+ textFieldProps.inputRef = inputRef;
1534
+ }
1535
+ }, sx: (theme) => (Object.assign({ p: 0, minWidth: isRangeFilter
1536
+ ? '100px'
1537
+ : !filterChipLabel
1538
+ ? '120px'
1539
+ : 'auto', width: 'calc(100% + 4px)', mx: '-2px', '& .MuiSelect-icon': {
1540
+ mr: '1.5rem',
1541
+ } }, ((textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.sx) instanceof Function
1542
+ ? textFieldProps.sx(theme)
1543
+ : textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.sx))) }, { children: [(isSelectFilter || isMultiSelectFilter) && (jsx(MenuItem, Object.assign({ divider: true, disabled: true, hidden: true, value: "" }, { children: jsx(Box, 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) => {
1690
1544
  var _a;
1691
- const selectedValue = (_a = columnDef.filterSelectOptions) === null || _a === void 0 ? void 0 : _a.find((option) => option instanceof Object
1692
- ? option.value === value
1693
- : option === value);
1694
- return (React.createElement(Chip, { key: value, label: selectedValue instanceof Object
1695
- ? selectedValue.text
1696
- : selectedValue }));
1697
- })))
1698
- : undefined,
1699
- } }, textFieldProps, { inputRef: (inputRef) => {
1700
- filterInputRefs.current[`${column.id}-${rangeFilterIndex !== null && rangeFilterIndex !== void 0 ? rangeFilterIndex : 0}`] =
1701
- inputRef;
1702
- if (textFieldProps.inputRef) {
1703
- textFieldProps.inputRef = inputRef;
1704
- }
1705
- }, sx: (theme) => (Object.assign({ p: 0, minWidth: isRangeFilter
1706
- ? '100px'
1707
- : !filterChipLabel
1708
- ? '120px'
1709
- : 'auto', width: 'calc(100% + 4px)', mx: '-2px', '& .MuiSelect-icon': {
1710
- mr: '1.5rem',
1711
- } }, ((textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.sx) instanceof Function
1712
- ? textFieldProps.sx(theme)
1713
- : textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.sx))) }),
1714
- (isSelectFilter || isMultiSelectFilter) && (React.createElement(MenuItem, { divider: true, disabled: true, hidden: true, value: "" },
1715
- React.createElement(Box, { 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) => {
1716
- var _a;
1717
- let value;
1718
- let text;
1719
- if (typeof option !== 'object') {
1720
- value = option;
1721
- text = option;
1722
- }
1723
- else {
1724
- value = option.value;
1725
- text = option.text;
1726
- }
1727
- return (React.createElement(MenuItem, { key: value, sx: {
1728
- display: 'flex',
1729
- m: 0,
1730
- alignItems: 'center',
1731
- gap: '0.5rem',
1732
- }, value: value },
1733
- isMultiSelectFilter && (React.createElement(Checkbox, { checked: ((_a = column.getFilterValue()) !== null && _a !== void 0 ? _a : []).includes(value), sx: { mr: '0.5rem' } })),
1734
- text));
1735
- })),
1736
- React.createElement(MRT_FilterOptionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table, setFilterValue: setFilterValue })));
1545
+ let value;
1546
+ let text;
1547
+ if (typeof option !== 'object') {
1548
+ value = option;
1549
+ text = option;
1550
+ }
1551
+ else {
1552
+ value = option.value;
1553
+ text = option.text;
1554
+ }
1555
+ return (jsxs(MenuItem, Object.assign({ sx: {
1556
+ display: 'flex',
1557
+ m: 0,
1558
+ alignItems: 'center',
1559
+ gap: '0.5rem',
1560
+ }, value: value }, { children: [isMultiSelectFilter && (jsx(Checkbox, { checked: ((_a = column.getFilterValue()) !== null && _a !== void 0 ? _a : []).includes(value), sx: { mr: '0.5rem' } })), text] }), value));
1561
+ })] })), jsx(MRT_FilterOptionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table, setFilterValue: setFilterValue })] }));
1737
1562
  };
1738
1563
 
1739
1564
  const MRT_FilterRangeFields = ({ header, table }) => {
1740
- return (React.createElement(Box, { sx: { display: 'grid', gridTemplateColumns: '6fr 6fr', gap: '1rem' } },
1741
- React.createElement(MRT_FilterTextField, { header: header, rangeFilterIndex: 0, table: table }),
1742
- React.createElement(MRT_FilterTextField, { header: header, rangeFilterIndex: 1, table: table })));
1565
+ return (jsxs(Box, Object.assign({ sx: { display: 'grid', gridTemplateColumns: '6fr 6fr', gap: '1rem' } }, { children: [jsx(MRT_FilterTextField, { header: header, rangeFilterIndex: 0, table: table }), jsx(MRT_FilterTextField, { header: header, rangeFilterIndex: 1, table: table })] })));
1743
1566
  };
1744
1567
 
1745
1568
  const MRT_FilterCheckbox = ({ column, table }) => {
@@ -1761,8 +1584,7 @@ const MRT_FilterCheckbox = ({ column, table }) => {
1761
1584
  : columnDef.muiTableHeadCellFilterCheckboxProps;
1762
1585
  const checkboxProps = Object.assign(Object.assign({}, mTableHeadCellFilterCheckboxProps), mcTableHeadCellFilterCheckboxProps);
1763
1586
  const filterLabel = (_a = localization.filterByColumn) === null || _a === void 0 ? void 0 : _a.replace('{column}', columnDef.header);
1764
- return (React.createElement(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: (_b = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _b !== void 0 ? _b : filterLabel },
1765
- React.createElement(FormControlLabel, { control: React.createElement(Checkbox, Object.assign({ checked: column.getFilterValue() === 'true', indeterminate: column.getFilterValue() === undefined, color: column.getFilterValue() === undefined ? 'default' : 'primary', size: density === 'compact' ? 'small' : 'medium' }, checkboxProps, { onClick: (e) => {
1587
+ return (jsx(Tooltip, 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: jsx(FormControlLabel, { control: jsx(Checkbox, Object.assign({ checked: column.getFilterValue() === 'true', indeterminate: column.getFilterValue() === undefined, color: column.getFilterValue() === undefined ? 'default' : 'primary', size: density === 'compact' ? 'small' : 'medium' }, checkboxProps, { onClick: (e) => {
1766
1588
  var _a;
1767
1589
  e.stopPropagation();
1768
1590
  (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a === void 0 ? void 0 : _a.call(checkboxProps, e);
@@ -1776,7 +1598,7 @@ const MRT_FilterCheckbox = ({ column, table }) => {
1776
1598
  (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onChange) === null || _a === void 0 ? void 0 : _a.call(checkboxProps, e, checked);
1777
1599
  }, sx: (theme) => (Object.assign({ height: '2.5rem', width: '2.5rem' }, ((checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx) instanceof Function
1778
1600
  ? checkboxProps.sx(theme)
1779
- : 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 })));
1601
+ : 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 }) })));
1780
1602
  };
1781
1603
 
1782
1604
  const MRT_TableHeadCellFilterContainer = ({ header, table }) => {
@@ -1784,8 +1606,8 @@ const MRT_TableHeadCellFilterContainer = ({ header, table }) => {
1784
1606
  const { showColumnFilters } = getState();
1785
1607
  const { column } = header;
1786
1608
  const { columnDef } = column;
1787
- return (React.createElement(Collapse, { in: showColumnFilters, mountOnEnter: true, unmountOnExit: true }, columnDef.filterVariant === 'checkbox' ? (React.createElement(MRT_FilterCheckbox, { column: column, table: table })) : columnDef.filterVariant === 'range' ||
1788
- ['between', 'betweenInclusive', 'inNumberRange'].includes(columnDef._filterFn) ? (React.createElement(MRT_FilterRangeFields, { header: header, table: table })) : (React.createElement(MRT_FilterTextField, { header: header, table: table }))));
1609
+ return (jsx(Collapse, Object.assign({ in: showColumnFilters, mountOnEnter: true, unmountOnExit: true }, { children: columnDef.filterVariant === 'checkbox' ? (jsx(MRT_FilterCheckbox, { column: column, table: table })) : columnDef.filterVariant === 'range' ||
1610
+ ['between', 'betweenInclusive', 'inNumberRange'].includes(columnDef._filterFn) ? (jsx(MRT_FilterRangeFields, { header: header, table: table })) : (jsx(MRT_FilterTextField, { header: header, table: table })) })));
1789
1611
  };
1790
1612
 
1791
1613
  const MRT_TableHeadCellFilterLabel = ({ header, table }) => {
@@ -1806,12 +1628,9 @@ const MRT_TableHeadCellFilterLabel = ({ header, table }) => {
1806
1628
  ? column.getFilterValue().join(`" ${isRangeFilter ? localization.and : localization.or} "`)
1807
1629
  : column.getFilterValue()}"`)
1808
1630
  .replace('" "', '');
1809
- return (React.createElement(Grow, { unmountOnExit: true, in: (!!column.getFilterValue() && !isRangeFilter) ||
1631
+ return (jsx(Grow, Object.assign({ unmountOnExit: true, in: (!!column.getFilterValue() && !isRangeFilter) ||
1810
1632
  (isRangeFilter && // @ts-ignore
1811
- (!!((_b = column.getFilterValue()) === null || _b === void 0 ? void 0 : _b[0]) || !!((_c = column.getFilterValue()) === null || _c === void 0 ? void 0 : _c[1]))) },
1812
- React.createElement(Box, { component: "span", sx: { flex: '0 0' } },
1813
- React.createElement(Tooltip, { arrow: true, placement: "top", title: filterTooltip },
1814
- React.createElement(IconButton, { disableRipple: true, onClick: (event) => {
1633
+ (!!((_b = column.getFilterValue()) === null || _b === void 0 ? void 0 : _b[0]) || !!((_c = column.getFilterValue()) === null || _c === void 0 ? void 0 : _c[1]))) }, { children: jsx(Box, Object.assign({ component: "span", sx: { flex: '0 0' } }, { children: jsx(Tooltip, Object.assign({ arrow: true, placement: "top", title: filterTooltip }, { children: jsx(IconButton, Object.assign({ disableRipple: true, onClick: (event) => {
1815
1634
  setShowColumnFilters(true);
1816
1635
  queueMicrotask(() => {
1817
1636
  var _a, _b;
@@ -1826,8 +1645,7 @@ const MRT_TableHeadCellFilterLabel = ({ header, table }) => {
1826
1645
  p: '2px',
1827
1646
  transform: 'scale(0.66)',
1828
1647
  width: '12px',
1829
- } },
1830
- React.createElement(FilterAltIcon, null))))));
1648
+ } }, { children: jsx(FilterAltIcon, {}) })) })) })) })));
1831
1649
  };
1832
1650
 
1833
1651
  const MRT_TableHeadCellGrabHandle = ({ column, table, tableHeadCellRef, }) => {
@@ -1861,7 +1679,7 @@ const MRT_TableHeadCellGrabHandle = ({ column, table, tableHeadCellRef, }) => {
1861
1679
  setDraggingColumn(null);
1862
1680
  setHoveredColumn(null);
1863
1681
  };
1864
- return (React.createElement(MRT_GrabHandleButton, { iconButtonProps: iconButtonProps, onDragStart: handleDragStart, onDragEnd: handleDragEnd, table: table }));
1682
+ return (jsx(MRT_GrabHandleButton, { iconButtonProps: iconButtonProps, onDragStart: handleDragStart, onDragEnd: handleDragEnd, table: table }));
1865
1683
  };
1866
1684
 
1867
1685
  const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
@@ -1869,7 +1687,7 @@ const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
1869
1687
  const { getState, options: { columnResizeMode }, setColumnSizingInfo, } = table;
1870
1688
  const { density } = getState();
1871
1689
  const { column } = header;
1872
- return (React.createElement(Box, { className: "Mui-TableHeadCell-ResizeHandle-Wrapper", onDoubleClick: () => {
1690
+ return (jsx(Box, Object.assign({ className: "Mui-TableHeadCell-ResizeHandle-Wrapper", onDoubleClick: () => {
1873
1691
  setColumnSizingInfo((old) => (Object.assign(Object.assign({}, old), { isResizingColumn: false })));
1874
1692
  column.resetSize();
1875
1693
  }, onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler(), sx: (theme) => ({
@@ -1886,8 +1704,7 @@ const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
1886
1704
  transform: column.getIsResizing() && columnResizeMode === 'onEnd'
1887
1705
  ? `translateX(${(_a = getState().columnSizingInfo.deltaOffset) !== null && _a !== void 0 ? _a : 0}px)`
1888
1706
  : undefined,
1889
- } },
1890
- React.createElement(Divider, { className: "Mui-TableHeadCell-ResizeHandle-Divider", flexItem: true, orientation: "vertical", sx: {
1707
+ } }, { children: jsx(Divider, { className: "Mui-TableHeadCell-ResizeHandle-Divider", flexItem: true, orientation: "vertical", sx: {
1891
1708
  borderRadius: '2px',
1892
1709
  borderWidth: '2px',
1893
1710
  height: '24px',
@@ -1897,7 +1714,7 @@ const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
1897
1714
  : 'all 150ms ease-in-out',
1898
1715
  userSelect: 'none',
1899
1716
  zIndex: 4,
1900
- } })));
1717
+ } }) })));
1901
1718
  };
1902
1719
 
1903
1720
  const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
@@ -1910,9 +1727,7 @@ const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
1910
1727
  ? localization.sortedByColumnDesc.replace('{column}', columnDef.header)
1911
1728
  : localization.sortedByColumnAsc.replace('{column}', columnDef.header)
1912
1729
  : localization.unsorted;
1913
- return (React.createElement(Tooltip, { arrow: true, placement: "top", title: sortTooltip },
1914
- React.createElement(Badge, { badgeContent: sorting.length > 1 ? column.getSortIndex() + 1 : 0, overlap: "circular" },
1915
- React.createElement(TableSortLabel, { "aria-label": sortTooltip, active: !!column.getIsSorted(), direction: column.getIsSorted()
1730
+ return (jsx(Tooltip, Object.assign({ arrow: true, placement: "top", title: sortTooltip }, { children: jsx(Badge, Object.assign({ badgeContent: sorting.length > 1 ? column.getSortIndex() + 1 : 0, overlap: "circular" }, { children: jsx(TableSortLabel, { "aria-label": sortTooltip, active: !!column.getIsSorted(), direction: column.getIsSorted()
1916
1731
  ? column.getIsSorted()
1917
1732
  : undefined, sx: {
1918
1733
  flex: '0 0',
@@ -1924,7 +1739,7 @@ const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
1924
1739
  var _a;
1925
1740
  e.stopPropagation();
1926
1741
  (_a = header.column.getToggleSortingHandler()) === null || _a === void 0 ? void 0 : _a(e);
1927
- } }))));
1742
+ } }) })) })));
1928
1743
  };
1929
1744
 
1930
1745
  const MRT_TableHeadCell = ({ header, table }) => {
@@ -1988,7 +1803,7 @@ const MRT_TableHeadCell = ({ header, table }) => {
1988
1803
  table,
1989
1804
  })
1990
1805
  : (_b = columnDef === null || columnDef === void 0 ? void 0 : columnDef.Header) !== null && _b !== void 0 ? _b : columnDef.header;
1991
- return (React.createElement(TableCell, Object.assign({ align: columnDefType === 'group' ? 'center' : 'left', colSpan: header.colSpan, onDragEnter: handleDragEnter, ref: (node) => {
1806
+ return (jsxs(TableCell, Object.assign({ align: columnDefType === 'group' ? 'center' : 'left', colSpan: header.colSpan, onDragEnter: handleDragEnter, ref: (node) => {
1992
1807
  if (node) {
1993
1808
  tableHeadCellRefs.current[column.id] = node;
1994
1809
  }
@@ -2018,49 +1833,39 @@ const MRT_TableHeadCell = ({ header, table }) => {
2018
1833
  table,
2019
1834
  tableCellProps,
2020
1835
  theme,
2021
- })), draggingBorders)) }),
2022
- header.isPlaceholder ? null : (React.createElement(Box, { className: "Mui-TableHeadCell-Content", sx: {
2023
- alignItems: 'center',
2024
- display: 'flex',
2025
- flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
2026
- justifyContent: columnDefType === 'group' || (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
2027
- ? 'center'
2028
- : column.getCanResize()
2029
- ? 'space-between'
2030
- : 'flex-start',
2031
- position: 'relative',
2032
- width: '100%',
2033
- } },
2034
- React.createElement(Box, { className: "Mui-TableHeadCell-Content-Labels", onClick: column.getToggleSortingHandler(), sx: {
1836
+ })), draggingBorders)) }, { children: [header.isPlaceholder ? null : (jsxs(Box, Object.assign({ className: "Mui-TableHeadCell-Content", sx: {
2035
1837
  alignItems: 'center',
2036
- cursor: column.getCanSort() && columnDefType !== 'group'
2037
- ? 'pointer'
2038
- : undefined,
2039
1838
  display: 'flex',
2040
1839
  flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
2041
- overflow: columnDefType === 'data' ? 'hidden' : undefined,
2042
- pl: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
2043
- ? `${headerPL}rem`
2044
- : undefined,
2045
- } },
2046
- React.createElement(Box, { className: "Mui-TableHeadCell-Content-Wrapper", sx: {
2047
- minWidth: `${Math.min((_d = (_c = columnDef.header) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0, 5)}ch`,
2048
- overflow: columnDefType === 'data' ? 'hidden' : undefined,
2049
- textOverflow: 'ellipsis',
2050
- whiteSpace: ((_g = (_f = columnDef.header) === null || _f === void 0 ? void 0 : _f.length) !== null && _g !== void 0 ? _g : 0) < 20 ? 'nowrap' : 'normal',
2051
- '&:hover': {
2052
- textOverflow: 'clip',
2053
- },
2054
- }, title: columnDefType === 'data' ? columnDef.header : undefined }, headerElement),
2055
- column.getCanSort() && (React.createElement(MRT_TableHeadCellSortLabel, { header: header, table: table, tableCellProps: tableCellProps })),
2056
- column.getCanFilter() && (React.createElement(MRT_TableHeadCellFilterLabel, { header: header, table: table }))),
2057
- columnDefType !== 'group' && (React.createElement(Box, { className: "Mui-TableHeadCell-Content-Actions", sx: { whiteSpace: 'nowrap' } },
2058
- showDragHandle && (React.createElement(MRT_TableHeadCellGrabHandle, { column: column, table: table, tableHeadCellRef: {
2059
- current: tableHeadCellRefs.current[column.id],
2060
- } })),
2061
- showColumnActions && (React.createElement(MRT_TableHeadCellColumnActionsButton, { header: header, table: table })))),
2062
- column.getCanResize() && (React.createElement(MRT_TableHeadCellResizeHandle, { header: header, table: table })))),
2063
- column.getCanFilter() && (React.createElement(MRT_TableHeadCellFilterContainer, { header: header, table: table }))));
1840
+ justifyContent: columnDefType === 'group' || (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
1841
+ ? 'center'
1842
+ : column.getCanResize()
1843
+ ? 'space-between'
1844
+ : 'flex-start',
1845
+ position: 'relative',
1846
+ width: '100%',
1847
+ } }, { children: [jsxs(Box, Object.assign({ className: "Mui-TableHeadCell-Content-Labels", onClick: column.getToggleSortingHandler(), sx: {
1848
+ alignItems: 'center',
1849
+ cursor: column.getCanSort() && columnDefType !== 'group'
1850
+ ? 'pointer'
1851
+ : undefined,
1852
+ display: 'flex',
1853
+ flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
1854
+ overflow: columnDefType === 'data' ? 'hidden' : undefined,
1855
+ pl: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
1856
+ ? `${headerPL}rem`
1857
+ : undefined,
1858
+ } }, { children: [jsx(Box, Object.assign({ className: "Mui-TableHeadCell-Content-Wrapper", sx: {
1859
+ minWidth: `${Math.min((_d = (_c = columnDef.header) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0, 5)}ch`,
1860
+ overflow: columnDefType === 'data' ? 'hidden' : undefined,
1861
+ textOverflow: 'ellipsis',
1862
+ whiteSpace: ((_g = (_f = columnDef.header) === null || _f === void 0 ? void 0 : _f.length) !== null && _g !== void 0 ? _g : 0) < 20 ? 'nowrap' : 'normal',
1863
+ '&:hover': {
1864
+ textOverflow: 'clip',
1865
+ },
1866
+ }, title: columnDefType === 'data' ? columnDef.header : undefined }, { children: headerElement })), column.getCanSort() && (jsx(MRT_TableHeadCellSortLabel, { header: header, table: table, tableCellProps: tableCellProps })), column.getCanFilter() && (jsx(MRT_TableHeadCellFilterLabel, { header: header, table: table }))] })), columnDefType !== 'group' && (jsxs(Box, Object.assign({ className: "Mui-TableHeadCell-Content-Actions", sx: { whiteSpace: 'nowrap' } }, { children: [showDragHandle && (jsx(MRT_TableHeadCellGrabHandle, { column: column, table: table, tableHeadCellRef: {
1867
+ current: tableHeadCellRefs.current[column.id],
1868
+ } })), showColumnActions && (jsx(MRT_TableHeadCellColumnActionsButton, { header: header, table: table }))] }))), column.getCanResize() && (jsx(MRT_TableHeadCellResizeHandle, { header: header, table: table }))] }))), column.getCanFilter() && (jsx(MRT_TableHeadCellFilterContainer, { header: header, table: table }))] })));
2064
1869
  };
2065
1870
 
2066
1871
  const MRT_TableHeadRow = ({ headerGroup, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, }) => {
@@ -2068,17 +1873,14 @@ const MRT_TableHeadRow = ({ headerGroup, table, virtualColumns, virtualPaddingLe
2068
1873
  const tableRowProps = muiTableHeadRowProps instanceof Function
2069
1874
  ? muiTableHeadRowProps({ headerGroup, table })
2070
1875
  : muiTableHeadRowProps;
2071
- return (React.createElement(TableRow, Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: lighten(theme.palette.background.default, 0.04), boxShadow: `4px 0 8px ${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
1876
+ return (jsxs(TableRow, Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: lighten(theme.palette.background.default, 0.04), boxShadow: `4px 0 8px ${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
2072
1877
  ? tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx(theme)
2073
- : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))) }),
2074
- virtualPaddingLeft ? (React.createElement("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null,
2075
- (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : headerGroup.headers).map((headerOrVirtualHeader) => {
2076
- const header = virtualColumns
2077
- ? headerGroup.headers[headerOrVirtualHeader.index]
2078
- : headerOrVirtualHeader;
2079
- return (React.createElement(MRT_TableHeadCell, { header: header, key: header.id, table: table }));
2080
- }),
2081
- virtualPaddingRight ? (React.createElement("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null));
1878
+ : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))) }, { children: [virtualPaddingLeft ? (jsx("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : headerGroup.headers).map((headerOrVirtualHeader) => {
1879
+ const header = virtualColumns
1880
+ ? headerGroup.headers[headerOrVirtualHeader.index]
1881
+ : headerOrVirtualHeader;
1882
+ return (jsx(MRT_TableHeadCell, { header: header, table: table }, header.id));
1883
+ }), virtualPaddingRight ? (jsx("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })));
2082
1884
  };
2083
1885
 
2084
1886
  const MRT_TableHead = ({ table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, }) => {
@@ -2088,9 +1890,9 @@ const MRT_TableHead = ({ table, virtualColumns, virtualPaddingLeft, virtualPaddi
2088
1890
  ? muiTableHeadProps({ table })
2089
1891
  : muiTableHeadProps;
2090
1892
  const stickyHeader = enableStickyHeader || isFullScreen;
2091
- return (React.createElement(TableHead, 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
1893
+ return (jsx(TableHead, 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
2092
1894
  ? tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx(theme)
2093
- : tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx))) }), getHeaderGroups().map((headerGroup) => (React.createElement(MRT_TableHeadRow, { headerGroup: headerGroup, key: headerGroup.id, table: table, virtualColumns: virtualColumns, virtualPaddingLeft: virtualPaddingLeft, virtualPaddingRight: virtualPaddingRight })))));
1895
+ : tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx))) }, { children: getHeaderGroups().map((headerGroup) => (jsx(MRT_TableHeadRow, { headerGroup: headerGroup, table: table, virtualColumns: virtualColumns, virtualPaddingLeft: virtualPaddingLeft, virtualPaddingRight: virtualPaddingRight }, headerGroup.id))) })));
2094
1896
  };
2095
1897
 
2096
1898
  const MRT_EditCellTextField = ({ cell, showLabel, table, }) => {
@@ -2140,9 +1942,9 @@ const MRT_EditCellTextField = ({ cell, showLabel, table, }) => {
2140
1942
  }
2141
1943
  };
2142
1944
  if (columnDef.Edit) {
2143
- return React.createElement(React.Fragment, null, (_a = columnDef.Edit) === null || _a === void 0 ? void 0 : _a.call(columnDef, { cell, column, row, table }));
1945
+ return jsx(Fragment, { children: (_a = columnDef.Edit) === null || _a === void 0 ? void 0 : _a.call(columnDef, { cell, column, row, table }) });
2144
1946
  }
2145
- return (React.createElement(TextField, Object.assign({ disabled: (columnDef.enableEditing instanceof Function
1947
+ return (jsx(TextField, Object.assign({ disabled: (columnDef.enableEditing instanceof Function
2146
1948
  ? columnDef.enableEditing(row)
2147
1949
  : columnDef.enableEditing) === false, fullWidth: true, inputRef: (inputRef) => {
2148
1950
  if (inputRef) {
@@ -2155,24 +1957,24 @@ const MRT_EditCellTextField = ({ cell, showLabel, table, }) => {
2155
1957
  var _a;
2156
1958
  e.stopPropagation();
2157
1959
  (_a = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.onClick) === null || _a === void 0 ? void 0 : _a.call(textFieldProps, e);
2158
- }, 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) => {
2159
- let value;
2160
- let text;
2161
- if (typeof option !== 'object') {
2162
- value = option;
2163
- text = option;
2164
- }
2165
- else {
2166
- value = option.value;
2167
- text = option.text;
2168
- }
2169
- return (React.createElement(MenuItem, { key: value, sx: {
2170
- display: 'flex',
2171
- m: 0,
2172
- alignItems: 'center',
2173
- gap: '0.5rem',
2174
- }, value: value }, text));
2175
- })));
1960
+ }, 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) => {
1961
+ let value;
1962
+ let text;
1963
+ if (typeof option !== 'object') {
1964
+ value = option;
1965
+ text = option;
1966
+ }
1967
+ else {
1968
+ value = option.value;
1969
+ text = option.text;
1970
+ }
1971
+ return (jsx(MenuItem, Object.assign({ sx: {
1972
+ display: 'flex',
1973
+ m: 0,
1974
+ alignItems: 'center',
1975
+ gap: '0.5rem',
1976
+ }, value: value }, { children: text }), value));
1977
+ }) })));
2176
1978
  };
2177
1979
 
2178
1980
  const MRT_CopyButton = ({ cell, children, table, }) => {
@@ -2199,10 +2001,9 @@ const MRT_CopyButton = ({ cell, children, table, }) => {
2199
2001
  })
2200
2002
  : columnDef.muiTableBodyCellCopyButtonProps;
2201
2003
  const buttonProps = Object.assign(Object.assign({}, mTableBodyCellCopyButtonProps), mcTableBodyCellCopyButtonProps);
2202
- return (React.createElement(Tooltip, { 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) },
2203
- React.createElement(Button, 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
2004
+ return (jsx(Tooltip, 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: jsx(Button, 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
2204
2005
  ? buttonProps.sx(theme)
2205
- : buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.sx))), title: undefined }), children)));
2006
+ : buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.sx))), title: undefined }, { children: children })) })));
2206
2007
  };
2207
2008
 
2208
2009
  const MRT_TableBodyRowGrabHandle = ({ cell, rowRef, table }) => {
@@ -2223,7 +2024,7 @@ const MRT_TableBodyRowGrabHandle = ({ cell, rowRef, table }) => {
2223
2024
  table.setDraggingRow(null);
2224
2025
  table.setHoveredRow(null);
2225
2026
  };
2226
- return (React.createElement(MRT_GrabHandleButton, { iconButtonProps: iconButtonProps, onDragStart: handleDragStart, onDragEnd: handleDragEnd, table: table }));
2027
+ return (jsx(MRT_GrabHandleButton, { iconButtonProps: iconButtonProps, onDragStart: handleDragStart, onDragEnd: handleDragEnd, table: table }));
2227
2028
  };
2228
2029
 
2229
2030
  const allowedTypes = ['string', 'number'];
@@ -2271,16 +2072,16 @@ const MRT_TableBodyCellValue = ({ cell, table }) => {
2271
2072
  matchExactly: (filterValue ? columnDef._filterFn : globalFilterFn) !== 'fuzzy',
2272
2073
  });
2273
2074
  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)) {
2274
- renderedCellValue = (React.createElement("span", { "aria-label": renderedCellValue, role: "note" }, (_c = chunks === null || chunks === void 0 ? void 0 : chunks.map(({ key, match, text }) => (React.createElement(Box, { "aria-hidden": "true", component: "span", key: key, sx: match
2275
- ? {
2276
- backgroundColor: (theme) => theme.palette.mode === 'dark'
2277
- ? darken(theme.palette.warning.dark, 0.25)
2278
- : lighten(theme.palette.warning.light, 0.5),
2279
- borderRadius: '2px',
2280
- color: (theme) => theme.palette.mode === 'dark' ? 'white' : 'black',
2281
- padding: '2px 1px',
2282
- }
2283
- : undefined }, text)))) !== null && _c !== void 0 ? _c : renderedCellValue));
2075
+ renderedCellValue = (jsx("span", Object.assign({ "aria-label": renderedCellValue, role: "note" }, { children: (_c = chunks === null || chunks === void 0 ? void 0 : chunks.map(({ key, match, text }) => (jsx(Box, Object.assign({ "aria-hidden": "true", component: "span", sx: match
2076
+ ? {
2077
+ backgroundColor: (theme) => theme.palette.mode === 'dark'
2078
+ ? darken(theme.palette.warning.dark, 0.25)
2079
+ : lighten(theme.palette.warning.light, 0.5),
2080
+ borderRadius: '2px',
2081
+ color: (theme) => theme.palette.mode === 'dark' ? 'white' : 'black',
2082
+ padding: '2px 1px',
2083
+ }
2084
+ : undefined }, { children: text }), key)))) !== null && _c !== void 0 ? _c : renderedCellValue })));
2284
2085
  }
2285
2086
  }
2286
2087
  if (columnDef.Cell && !isGroupedValue) {
@@ -2292,7 +2093,7 @@ const MRT_TableBodyCellValue = ({ cell, table }) => {
2292
2093
  table,
2293
2094
  });
2294
2095
  }
2295
- return React.createElement(React.Fragment, null, renderedCellValue);
2096
+ return jsx(Fragment, { children: renderedCellValue });
2296
2097
  };
2297
2098
 
2298
2099
  const MRT_TableBodyCell = ({ cell, measureElement, numRows, rowIndex, rowRef, table, virtualCell, }) => {
@@ -2387,7 +2188,7 @@ const MRT_TableBodyCell = ({ cell, measureElement, numRows, rowIndex, rowRef, ta
2387
2188
  setHoveredColumn(columnDef.enableColumnOrdering !== false ? column : null);
2388
2189
  }
2389
2190
  };
2390
- return (React.createElement(TableCell, Object.assign({ "data-index": virtualCell === null || virtualCell === void 0 ? void 0 : virtualCell.index, ref: (node) => {
2191
+ return (jsx(TableCell, Object.assign({ "data-index": virtualCell === null || virtualCell === void 0 ? void 0 : virtualCell.index, ref: (node) => {
2391
2192
  if (node) {
2392
2193
  measureElement === null || measureElement === void 0 ? void 0 : measureElement(node);
2393
2194
  }
@@ -2419,26 +2220,19 @@ const MRT_TableBodyCell = ({ cell, measureElement, numRows, rowIndex, rowRef, ta
2419
2220
  table,
2420
2221
  theme,
2421
2222
  tableCellProps,
2422
- })), draggingBorders)) }),
2423
- React.createElement(React.Fragment, null,
2424
- 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.createElement(Skeleton, Object.assign({ animation: "wave", height: 20, width: skeletonWidth }, skeletonProps))) : enableRowNumbers &&
2425
- rowNumberMode === 'static' &&
2426
- column.id === 'mrt-row-numbers' ? (rowIndex + 1) : column.id === 'mrt-row-drag' ? (React.createElement(MRT_TableBodyRowGrabHandle, { cell: cell, rowRef: rowRef, table: table })) : columnDefType === 'display' &&
2427
- (column.id === 'mrt-row-select' ||
2428
- column.id === 'mrt-row-expand' ||
2429
- !row.getIsGrouped()) ? ((_c = columnDef.Cell) === null || _c === void 0 ? void 0 : _c.call(columnDef, {
2430
- cell,
2431
- renderedCellValue: cell.renderValue(),
2432
- column,
2433
- row,
2434
- table,
2435
- })) : isEditing ? (React.createElement(MRT_EditCellTextField, { cell: cell, table: table })) : (enableClickToCopy || columnDef.enableClickToCopy) &&
2436
- columnDef.enableClickToCopy !== false ? (React.createElement(MRT_CopyButton, { cell: cell, table: table },
2437
- React.createElement(MRT_TableBodyCellValue, { cell: cell, table: table }))) : (React.createElement(MRT_TableBodyCellValue, { cell: cell, table: table })),
2438
- cell.getIsGrouped() && !columnDef.GroupedCell && (React.createElement(React.Fragment, null,
2439
- " (", (_d = row.subRows) === null || _d === void 0 ? void 0 :
2440
- _d.length,
2441
- ")")))));
2223
+ })), draggingBorders)) }, { children: jsxs(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 ? (jsx(Skeleton, Object.assign({ animation: "wave", height: 20, width: skeletonWidth }, skeletonProps))) : enableRowNumbers &&
2224
+ rowNumberMode === 'static' &&
2225
+ column.id === 'mrt-row-numbers' ? (rowIndex + 1) : column.id === 'mrt-row-drag' ? (jsx(MRT_TableBodyRowGrabHandle, { cell: cell, rowRef: rowRef, table: table })) : columnDefType === 'display' &&
2226
+ (column.id === 'mrt-row-select' ||
2227
+ column.id === 'mrt-row-expand' ||
2228
+ !row.getIsGrouped()) ? ((_c = columnDef.Cell) === null || _c === void 0 ? void 0 : _c.call(columnDef, {
2229
+ cell,
2230
+ renderedCellValue: cell.renderValue(),
2231
+ column,
2232
+ row,
2233
+ table,
2234
+ })) : isEditing ? (jsx(MRT_EditCellTextField, { cell: cell, table: table })) : (enableClickToCopy || columnDef.enableClickToCopy) &&
2235
+ columnDef.enableClickToCopy !== false ? (jsx(MRT_CopyButton, Object.assign({ cell: cell, table: table }, { children: jsx(MRT_TableBodyCellValue, { cell: cell, table: table }) }))) : (jsx(MRT_TableBodyCellValue, { cell: cell, table: table })), cell.getIsGrouped() && !columnDef.GroupedCell && (jsxs(Fragment, { children: [" (", (_d = row.subRows) === null || _d === void 0 ? void 0 : _d.length, ")"] }))] }) })));
2442
2236
  };
2443
2237
  const Memo_MRT_TableBodyCell = memo(MRT_TableBodyCell, (prev, next) => next.cell === prev.cell);
2444
2238
 
@@ -2456,7 +2250,7 @@ const MRT_TableDetailPanel = ({ parentRowRef, row, rowIndex, table, virtualRow,
2456
2250
  const tableCellProps = muiTableDetailPanelProps instanceof Function
2457
2251
  ? muiTableDetailPanelProps({ row, table })
2458
2252
  : muiTableDetailPanelProps;
2459
- return (React.createElement(TableRow, Object.assign({ className: "Mui-TableBodyCell-DetailPanel" }, tableRowProps, { sx: (theme) => {
2253
+ return (jsx(TableRow, Object.assign({ className: "Mui-TableBodyCell-DetailPanel" }, tableRowProps, { sx: (theme) => {
2460
2254
  var _a, _b;
2461
2255
  return (Object.assign({ display: layoutMode === 'grid' ? 'flex' : 'table-row', position: virtualRow ? 'absolute' : undefined, top: virtualRow
2462
2256
  ? `${(_b = (_a = parentRowRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.height}px`
@@ -2465,12 +2259,11 @@ const MRT_TableDetailPanel = ({ parentRowRef, row, rowIndex, table, virtualRow,
2465
2259
  : undefined, width: '100%', zIndex: virtualRow ? 2 : undefined }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2466
2260
  ? tableRowProps.sx(theme)
2467
2261
  : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx)));
2468
- } }),
2469
- React.createElement(TableCell, Object.assign({ className: "Mui-TableBodyCell-DetailPanel", colSpan: getVisibleLeafColumns().length }, tableCellProps, { sx: (theme) => (Object.assign({ backgroundColor: virtualRow
2262
+ } }, { children: jsx(TableCell, Object.assign({ className: "Mui-TableBodyCell-DetailPanel", colSpan: getVisibleLeafColumns().length }, tableCellProps, { sx: (theme) => (Object.assign({ backgroundColor: virtualRow
2470
2263
  ? lighten(theme.palette.background.default, 0.06)
2471
2264
  : 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
2472
2265
  ? tableCellProps.sx(theme)
2473
- : tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.sx))) }), renderDetailPanel && (React.createElement(Collapse, { in: row.getIsExpanded(), mountOnEnter: true, unmountOnExit: true }, !isLoading && renderDetailPanel({ row, table }))))));
2266
+ : tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.sx))) }, { children: renderDetailPanel && (jsx(Collapse, Object.assign({ in: row.getIsExpanded(), mountOnEnter: true, unmountOnExit: true }, { children: !isLoading && renderDetailPanel({ row, table }) }))) })) })));
2474
2267
  };
2475
2268
 
2476
2269
  const MRT_TableBodyRow = ({ columnVirtualizer, measureElement, numRows, row, rowIndex, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, virtualRow, }) => {
@@ -2485,51 +2278,46 @@ const MRT_TableBodyRow = ({ columnVirtualizer, measureElement, numRows, row, row
2485
2278
  }
2486
2279
  };
2487
2280
  const rowRef = useRef(null);
2488
- return (React.createElement(React.Fragment, null,
2489
- React.createElement(TableRow, Object.assign({ "data-index": virtualRow === null || virtualRow === void 0 ? void 0 : virtualRow.index, onDragEnter: handleDragEnter, selected: row.getIsSelected(), ref: (node) => {
2490
- if (node) {
2491
- rowRef.current = node;
2492
- measureElement === null || measureElement === void 0 ? void 0 : measureElement(node);
2493
- }
2494
- } }, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: 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': {
2495
- backgroundColor: (tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.hover) !== false
2496
- ? row.getIsSelected()
2497
- ? `${alpha(theme.palette.primary.main, 0.2)}`
2498
- : theme.palette.mode === 'dark'
2499
- ? `${lighten(theme.palette.background.default, 0.12)}`
2500
- : `${darken(theme.palette.background.default, 0.05)}`
2501
- : undefined,
2502
- } }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2503
- ? tableRowProps.sx(theme)
2504
- : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))), style: Object.assign({ transform: virtualRow
2505
- ? `translateY(${virtualRow === null || virtualRow === void 0 ? void 0 : virtualRow.start}px)`
2506
- : undefined }, tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.style) }),
2507
- virtualPaddingLeft ? (React.createElement("td", { style: { display: 'flex', width: virtualPaddingLeft } })) : null,
2508
- (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : row.getVisibleCells()).map((cellOrVirtualCell) => {
2509
- const cell = columnVirtualizer
2510
- ? row.getVisibleCells()[cellOrVirtualCell.index]
2511
- : cellOrVirtualCell;
2512
- const props = {
2513
- cell,
2514
- key: cell.id,
2515
- measureElement: columnVirtualizer === null || columnVirtualizer === void 0 ? void 0 : columnVirtualizer.measureElement,
2516
- numRows,
2517
- rowIndex,
2518
- rowRef,
2519
- table,
2520
- virtualCell: columnVirtualizer
2521
- ? cellOrVirtualCell
2522
- : undefined,
2523
- };
2524
- return memoMode === 'cells' &&
2525
- cell.column.columnDef.columnDefType === 'data' &&
2526
- !draggingColumn &&
2527
- !draggingRow &&
2528
- (editingCell === null || editingCell === void 0 ? void 0 : editingCell.id) !== cell.id &&
2529
- (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) !== row.id ? (React.createElement(Memo_MRT_TableBodyCell, Object.assign({}, props))) : (React.createElement(MRT_TableBodyCell, Object.assign({}, props)));
2530
- }),
2531
- virtualPaddingRight ? (React.createElement("td", { style: { display: 'flex', width: virtualPaddingRight } })) : null),
2532
- renderDetailPanel && !row.getIsGrouped() && (React.createElement(MRT_TableDetailPanel, { parentRowRef: rowRef, row: row, rowIndex: rowIndex, table: table, virtualRow: virtualRow }))));
2281
+ return (jsxs(Fragment, { children: [jsxs(TableRow, Object.assign({ "data-index": virtualRow === null || virtualRow === void 0 ? void 0 : virtualRow.index, onDragEnter: handleDragEnter, selected: row.getIsSelected(), ref: (node) => {
2282
+ if (node) {
2283
+ rowRef.current = node;
2284
+ measureElement === null || measureElement === void 0 ? void 0 : measureElement(node);
2285
+ }
2286
+ } }, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: 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': {
2287
+ backgroundColor: (tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.hover) !== false
2288
+ ? row.getIsSelected()
2289
+ ? `${alpha(theme.palette.primary.main, 0.2)}`
2290
+ : theme.palette.mode === 'dark'
2291
+ ? `${lighten(theme.palette.background.default, 0.12)}`
2292
+ : `${darken(theme.palette.background.default, 0.05)}`
2293
+ : undefined,
2294
+ } }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2295
+ ? tableRowProps.sx(theme)
2296
+ : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))), style: Object.assign({ transform: virtualRow
2297
+ ? `translateY(${virtualRow === null || virtualRow === void 0 ? void 0 : virtualRow.start}px)`
2298
+ : undefined }, tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.style) }, { children: [virtualPaddingLeft ? (jsx("td", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : row.getVisibleCells()).map((cellOrVirtualCell) => {
2299
+ const cell = columnVirtualizer
2300
+ ? row.getVisibleCells()[cellOrVirtualCell.index]
2301
+ : cellOrVirtualCell;
2302
+ const props = {
2303
+ cell,
2304
+ key: cell.id,
2305
+ measureElement: columnVirtualizer === null || columnVirtualizer === void 0 ? void 0 : columnVirtualizer.measureElement,
2306
+ numRows,
2307
+ rowIndex,
2308
+ rowRef,
2309
+ table,
2310
+ virtualCell: columnVirtualizer
2311
+ ? cellOrVirtualCell
2312
+ : undefined,
2313
+ };
2314
+ return memoMode === 'cells' &&
2315
+ cell.column.columnDef.columnDefType === 'data' &&
2316
+ !draggingColumn &&
2317
+ !draggingRow &&
2318
+ (editingCell === null || editingCell === void 0 ? void 0 : editingCell.id) !== cell.id &&
2319
+ (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) !== row.id ? (jsx(Memo_MRT_TableBodyCell, Object.assign({}, props))) : (jsx(MRT_TableBodyCell, Object.assign({}, props)));
2320
+ }), virtualPaddingRight ? (jsx("td", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })), renderDetailPanel && !row.getIsGrouped() && (jsx(MRT_TableDetailPanel, { parentRowRef: rowRef, row: row, rowIndex: rowIndex, table: table, virtualRow: virtualRow }))] }));
2533
2321
  };
2534
2322
  const Memo_MRT_TableBodyRow = memo(MRT_TableBodyRow, (prev, next) => prev.row === next.row && prev.rowIndex === next.rowIndex);
2535
2323
 
@@ -2596,43 +2384,42 @@ const MRT_TableBody = ({ columnVirtualizer, table, virtualColumns, virtualPaddin
2596
2384
  const virtualRows = rowVirtualizer
2597
2385
  ? rowVirtualizer.getVirtualItems()
2598
2386
  : undefined;
2599
- return (React.createElement(TableBody, Object.assign({}, tableBodyProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table-row-group', height: rowVirtualizer
2387
+ return (jsx(TableBody, Object.assign({}, tableBodyProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table-row-group', height: rowVirtualizer
2600
2388
  ? `${rowVirtualizer.getTotalSize()}px`
2601
2389
  : 'inherit', minHeight: !rows.length ? '100px' : undefined, position: 'relative' }, ((tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.sx) instanceof Function
2602
2390
  ? tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.sx(theme)
2603
- : 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.createElement("tr", { style: { display: layoutMode === 'grid' ? 'grid' : 'table-row' } },
2604
- React.createElement("td", { colSpan: table.getVisibleLeafColumns().length, style: {
2605
- display: layoutMode === 'grid' ? 'grid' : 'table-cell',
2606
- } }, (_b = renderEmptyRowsFallback === null || renderEmptyRowsFallback === void 0 ? void 0 : renderEmptyRowsFallback({ table })) !== null && _b !== void 0 ? _b : (React.createElement(Typography, { sx: {
2607
- color: 'text.secondary',
2608
- fontStyle: 'italic',
2609
- maxWidth: `min(100vw, ${(_d = (_c = tablePaperRef.current) === null || _c === void 0 ? void 0 : _c.clientWidth) !== null && _d !== void 0 ? _d : 360}px)`,
2610
- py: '2rem',
2611
- textAlign: 'center',
2612
- width: '100%',
2613
- } }, globalFilter || columnFilters.length
2614
- ? localization.noResultsFound
2615
- : localization.noRecordsToDisplay))))) : (React.createElement(React.Fragment, null, (virtualRows !== null && virtualRows !== void 0 ? virtualRows : rows).map((rowOrVirtualRow, rowIndex) => {
2616
- const row = rowVirtualizer
2617
- ? rows[rowOrVirtualRow.index]
2618
- : rowOrVirtualRow;
2619
- const props = {
2620
- columnVirtualizer,
2621
- key: row.id,
2622
- measureElement: rowVirtualizer === null || rowVirtualizer === void 0 ? void 0 : rowVirtualizer.measureElement,
2623
- numRows: rows.length,
2624
- row,
2625
- rowIndex: rowVirtualizer ? rowOrVirtualRow.index : rowIndex,
2626
- table,
2627
- virtualColumns,
2628
- virtualPaddingLeft,
2629
- virtualPaddingRight,
2630
- virtualRow: rowVirtualizer
2631
- ? rowOrVirtualRow
2632
- : undefined,
2633
- };
2634
- return memoMode === 'rows' ? (React.createElement(Memo_MRT_TableBodyRow, Object.assign({}, props))) : (React.createElement(MRT_TableBodyRow, Object.assign({}, props)));
2635
- }))))));
2391
+ : 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 ? (jsx("tr", Object.assign({ style: { display: layoutMode === 'grid' ? 'grid' : 'table-row' } }, { children: jsx("td", Object.assign({ colSpan: table.getVisibleLeafColumns().length, style: {
2392
+ display: layoutMode === 'grid' ? 'grid' : 'table-cell',
2393
+ } }, { children: (_b = renderEmptyRowsFallback === null || renderEmptyRowsFallback === void 0 ? void 0 : renderEmptyRowsFallback({ table })) !== null && _b !== void 0 ? _b : (jsx(Typography, Object.assign({ sx: {
2394
+ color: 'text.secondary',
2395
+ fontStyle: 'italic',
2396
+ maxWidth: `min(100vw, ${(_d = (_c = tablePaperRef.current) === null || _c === void 0 ? void 0 : _c.clientWidth) !== null && _d !== void 0 ? _d : 360}px)`,
2397
+ py: '2rem',
2398
+ textAlign: 'center',
2399
+ width: '100%',
2400
+ } }, { children: globalFilter || columnFilters.length
2401
+ ? localization.noResultsFound
2402
+ : localization.noRecordsToDisplay }))) })) }))) : (jsx(Fragment, { children: (virtualRows !== null && virtualRows !== void 0 ? virtualRows : rows).map((rowOrVirtualRow, rowIndex) => {
2403
+ const row = rowVirtualizer
2404
+ ? rows[rowOrVirtualRow.index]
2405
+ : rowOrVirtualRow;
2406
+ const props = {
2407
+ columnVirtualizer,
2408
+ key: row.id,
2409
+ measureElement: rowVirtualizer === null || rowVirtualizer === void 0 ? void 0 : rowVirtualizer.measureElement,
2410
+ numRows: rows.length,
2411
+ row,
2412
+ rowIndex: rowVirtualizer ? rowOrVirtualRow.index : rowIndex,
2413
+ table,
2414
+ virtualColumns,
2415
+ virtualPaddingLeft,
2416
+ virtualPaddingRight,
2417
+ virtualRow: rowVirtualizer
2418
+ ? rowOrVirtualRow
2419
+ : undefined,
2420
+ };
2421
+ return memoMode === 'rows' ? (jsx(Memo_MRT_TableBodyRow, Object.assign({}, props))) : (jsx(MRT_TableBodyRow, Object.assign({}, props)));
2422
+ }) }))) })));
2636
2423
  };
2637
2424
  const Memo_MRT_TableBody = memo(MRT_TableBody, (prev, next) => prev.table.options.data === next.table.options.data);
2638
2425
 
@@ -2650,7 +2437,7 @@ const MRT_TableFooterCell = ({ footer, table }) => {
2650
2437
  ? columnDef.muiTableFooterCellProps({ column, table })
2651
2438
  : columnDef.muiTableFooterCellProps;
2652
2439
  const tableCellProps = Object.assign(Object.assign({}, mTableFooterCellProps), mcTableFooterCellProps);
2653
- return (React.createElement(TableCell, 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'
2440
+ return (jsx(TableCell, 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'
2654
2441
  ? '0.5rem'
2655
2442
  : density === 'comfortable'
2656
2443
  ? '1rem'
@@ -2659,16 +2446,15 @@ const MRT_TableFooterCell = ({ footer, table }) => {
2659
2446
  table,
2660
2447
  theme,
2661
2448
  tableCellProps,
2662
- }))) }),
2663
- React.createElement(React.Fragment, null, footer.isPlaceholder
2664
- ? null
2665
- : (_c = (_b = (columnDef.Footer instanceof Function
2666
- ? (_a = columnDef.Footer) === null || _a === void 0 ? void 0 : _a.call(columnDef, {
2667
- column,
2668
- footer,
2669
- table,
2670
- })
2671
- : columnDef.Footer)) !== null && _b !== void 0 ? _b : columnDef.footer) !== null && _c !== void 0 ? _c : null)));
2449
+ }))) }, { children: jsx(Fragment, { children: footer.isPlaceholder
2450
+ ? null
2451
+ : (_c = (_b = (columnDef.Footer instanceof Function
2452
+ ? (_a = columnDef.Footer) === null || _a === void 0 ? void 0 : _a.call(columnDef, {
2453
+ column,
2454
+ footer,
2455
+ table,
2456
+ })
2457
+ : columnDef.Footer)) !== null && _b !== void 0 ? _b : columnDef.footer) !== null && _c !== void 0 ? _c : null }) })));
2672
2458
  };
2673
2459
 
2674
2460
  const MRT_TableFooterRow = ({ footerGroup, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, }) => {
@@ -2682,17 +2468,14 @@ const MRT_TableFooterRow = ({ footerGroup, table, virtualColumns, virtualPadding
2682
2468
  const tableRowProps = muiTableFooterRowProps instanceof Function
2683
2469
  ? muiTableFooterRowProps({ footerGroup, table })
2684
2470
  : muiTableFooterRowProps;
2685
- return (React.createElement(TableRow, Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: 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
2471
+ return (jsxs(TableRow, Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: 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
2686
2472
  ? tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx(theme)
2687
- : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))) }),
2688
- virtualPaddingLeft ? (React.createElement("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null,
2689
- (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : footerGroup.headers).map((footerOrVirtualFooter) => {
2690
- const footer = virtualColumns
2691
- ? footerGroup.headers[footerOrVirtualFooter.index]
2692
- : footerOrVirtualFooter;
2693
- return (React.createElement(MRT_TableFooterCell, { footer: footer, key: footer.id, table: table }));
2694
- }),
2695
- virtualPaddingRight ? (React.createElement("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null));
2473
+ : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))) }, { children: [virtualPaddingLeft ? (jsx("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : footerGroup.headers).map((footerOrVirtualFooter) => {
2474
+ const footer = virtualColumns
2475
+ ? footerGroup.headers[footerOrVirtualFooter.index]
2476
+ : footerOrVirtualFooter;
2477
+ return (jsx(MRT_TableFooterCell, { footer: footer, table: table }, footer.id));
2478
+ }), virtualPaddingRight ? (jsx("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })));
2696
2479
  };
2697
2480
 
2698
2481
  const MRT_TableFooter = ({ table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, }) => {
@@ -2702,13 +2485,13 @@ const MRT_TableFooter = ({ table, virtualColumns, virtualPaddingLeft, virtualPad
2702
2485
  ? muiTableFooterProps({ table })
2703
2486
  : muiTableFooterProps;
2704
2487
  const stickFooter = (isFullScreen || enableStickyFooter) && enableStickyFooter !== false;
2705
- return (React.createElement(TableFooter, 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
2488
+ return (jsx(TableFooter, 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
2706
2489
  ? theme.palette.mode === 'light'
2707
2490
  ? `1px solid ${theme.palette.grey[300]}`
2708
2491
  : `1px solid ${theme.palette.grey[700]}`
2709
2492
  : undefined, position: stickFooter ? 'sticky' : undefined, zIndex: stickFooter ? 1 : undefined }, ((tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.sx) instanceof Function
2710
2493
  ? tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.sx(theme)
2711
- : tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.sx))) }), getFooterGroups().map((footerGroup) => (React.createElement(MRT_TableFooterRow, { footerGroup: footerGroup, key: footerGroup.id, table: table, virtualColumns: virtualColumns, virtualPaddingLeft: virtualPaddingLeft, virtualPaddingRight: virtualPaddingRight })))));
2494
+ : tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.sx))) }, { children: getFooterGroups().map((footerGroup) => (jsx(MRT_TableFooterRow, { footerGroup: footerGroup, table: table, virtualColumns: virtualColumns, virtualPaddingLeft: virtualPaddingLeft, virtualPaddingRight: virtualPaddingRight }, footerGroup.id))) })));
2712
2495
  };
2713
2496
 
2714
2497
  const MRT_Table = ({ table }) => {
@@ -2779,12 +2562,9 @@ const MRT_Table = ({ table }) => {
2779
2562
  virtualPaddingLeft,
2780
2563
  virtualPaddingRight,
2781
2564
  };
2782
- return (React.createElement(Table, 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
2565
+ return (jsxs(Table, 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
2783
2566
  ? tableProps.sx(theme)
2784
- : tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx))), style: Object.assign(Object.assign({}, columnSizeVars), tableProps === null || tableProps === void 0 ? void 0 : tableProps.style) }),
2785
- enableTableHead && React.createElement(MRT_TableHead, Object.assign({}, props)),
2786
- memoMode === 'table-body' || columnSizingInfo.isResizingColumn ? (React.createElement(Memo_MRT_TableBody, Object.assign({ columnVirtualizer: columnVirtualizer }, props))) : (React.createElement(MRT_TableBody, Object.assign({ columnVirtualizer: columnVirtualizer }, props))),
2787
- enableTableFooter && React.createElement(MRT_TableFooter, Object.assign({}, props))));
2567
+ : 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 && jsx(MRT_TableHead, Object.assign({}, props)), memoMode === 'table-body' || columnSizingInfo.isResizingColumn ? (jsx(Memo_MRT_TableBody, Object.assign({ columnVirtualizer: columnVirtualizer }, props))) : (jsx(MRT_TableBody, Object.assign({ columnVirtualizer: columnVirtualizer }, props))), enableTableFooter && jsx(MRT_TableFooter, Object.assign({}, props))] })));
2788
2568
  };
2789
2569
 
2790
2570
  const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
@@ -2805,7 +2585,7 @@ const MRT_TableContainer = ({ table }) => {
2805
2585
  : 0;
2806
2586
  setTotalToolbarHeight(topToolbarHeight + bottomToolbarHeight);
2807
2587
  });
2808
- return (React.createElement(TableContainer, Object.assign({}, tableContainerProps, { ref: (node) => {
2588
+ return (jsx(TableContainer, Object.assign({}, tableContainerProps, { ref: (node) => {
2809
2589
  if (node) {
2810
2590
  tableContainerRef.current = node;
2811
2591
  if (tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.ref) {
@@ -2819,8 +2599,7 @@ const MRT_TableContainer = ({ table }) => {
2819
2599
  ? tableContainerProps.sx(theme)
2820
2600
  : tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.sx))), style: Object.assign({ maxHeight: isFullScreen
2821
2601
  ? `calc(100vh - ${totalToolbarHeight}px)`
2822
- : undefined }, tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.style) }),
2823
- React.createElement(MRT_Table, { table: table })));
2602
+ : undefined }, tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.style) }, { children: jsx(MRT_Table, { table: table }) })));
2824
2603
  };
2825
2604
 
2826
2605
  const MRT_TablePaper = ({ table }) => {
@@ -2829,7 +2608,7 @@ const MRT_TablePaper = ({ table }) => {
2829
2608
  const tablePaperProps = muiTablePaperProps instanceof Function
2830
2609
  ? muiTablePaperProps({ table })
2831
2610
  : muiTablePaperProps;
2832
- return (React.createElement(Paper, Object.assign({ elevation: 2 }, tablePaperProps, { ref: (ref) => {
2611
+ return (jsxs(Paper, Object.assign({ elevation: 2 }, tablePaperProps, { ref: (ref) => {
2833
2612
  tablePaperRef.current = ref;
2834
2613
  if (tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.ref) {
2835
2614
  //@ts-ignore
@@ -2846,35 +2625,26 @@ const MRT_TablePaper = ({ table }) => {
2846
2625
  padding: 0,
2847
2626
  width: '100vw',
2848
2627
  }
2849
- : {})) }),
2850
- enableTopToolbar &&
2851
- (renderTopToolbar instanceof Function
2852
- ? renderTopToolbar({ table })
2853
- : renderTopToolbar !== null && renderTopToolbar !== void 0 ? renderTopToolbar : React.createElement(MRT_TopToolbar, { table: table })),
2854
- React.createElement(MRT_TableContainer, { table: table }),
2855
- enableBottomToolbar &&
2856
- (renderBottomToolbar instanceof Function
2857
- ? renderBottomToolbar({ table })
2858
- : renderBottomToolbar !== null && renderBottomToolbar !== void 0 ? renderBottomToolbar : React.createElement(MRT_BottomToolbar, { table: table }))));
2628
+ : {})) }, { children: [enableTopToolbar &&
2629
+ (renderTopToolbar instanceof Function
2630
+ ? renderTopToolbar({ table })
2631
+ : renderTopToolbar !== null && renderTopToolbar !== void 0 ? renderTopToolbar : jsx(MRT_TopToolbar, { table: table })), jsx(MRT_TableContainer, { table: table }), enableBottomToolbar &&
2632
+ (renderBottomToolbar instanceof Function
2633
+ ? renderBottomToolbar({ table })
2634
+ : renderBottomToolbar !== null && renderBottomToolbar !== void 0 ? renderBottomToolbar : jsx(MRT_BottomToolbar, { table: table }))] })));
2859
2635
  };
2860
2636
 
2861
2637
  const MRT_EditRowModal = ({ open, row, table, }) => {
2862
2638
  const { options: { localization }, } = table;
2863
- return (React.createElement(Dialog, { open: open },
2864
- React.createElement(DialogTitle, { textAlign: "center" }, localization.edit),
2865
- React.createElement(DialogContent, null,
2866
- React.createElement("form", { onSubmit: (e) => e.preventDefault() },
2867
- React.createElement(Stack, { sx: {
2868
- gap: '1.5rem',
2869
- minWidth: { xs: '300px', sm: '360px', md: '400px' },
2870
- pt: '1rem',
2871
- width: '100%',
2872
- } }, row
2873
- .getAllCells()
2874
- .filter((cell) => cell.column.columnDef.columnDefType === 'data')
2875
- .map((cell) => (React.createElement(MRT_EditCellTextField, { cell: cell, key: cell.id, showLabel: true, table: table })))))),
2876
- React.createElement(DialogActions, { sx: { p: '1.25rem' } },
2877
- React.createElement(MRT_EditActionButtons, { row: row, table: table, variant: "text" }))));
2639
+ return (jsxs(Dialog, Object.assign({ open: open }, { children: [jsx(DialogTitle, Object.assign({ textAlign: "center" }, { children: localization.edit })), jsx(DialogContent, { children: jsx("form", Object.assign({ onSubmit: (e) => e.preventDefault() }, { children: jsx(Stack, Object.assign({ sx: {
2640
+ gap: '1.5rem',
2641
+ minWidth: { xs: '300px', sm: '360px', md: '400px' },
2642
+ pt: '1rem',
2643
+ width: '100%',
2644
+ } }, { children: row
2645
+ .getAllCells()
2646
+ .filter((cell) => cell.column.columnDef.columnDefType === 'data')
2647
+ .map((cell) => (jsx(MRT_EditCellTextField, { cell: cell, showLabel: true, table: table }, cell.id))) })) })) }), jsx(DialogActions, Object.assign({ sx: { p: '1.25rem' } }, { children: jsx(MRT_EditActionButtons, { row: row, table: table, variant: "text" }) }))] })));
2878
2648
  };
2879
2649
 
2880
2650
  const MRT_TableRoot = (props) => {
@@ -2922,13 +2692,13 @@ const MRT_TableRoot = (props) => {
2922
2692
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
2923
2693
  return [
2924
2694
  ((_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' }),
2925
- ((_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.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' }),
2695
+ ((_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 }) => (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' }),
2926
2696
  ((_h = (_g = props.state) === null || _g === void 0 ? void 0 : _g.columnOrder) !== null && _h !== void 0 ? _h : columnOrder).includes('mrt-row-expand') &&
2927
- 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.createElement(MRT_ExpandButton, { row: row, table: table })), Header: props.enableExpandAll
2928
- ? () => React.createElement(MRT_ExpandAllButton, { table: table })
2697
+ 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 }) => (jsx(MRT_ExpandButton, { row: row, table: table })), Header: props.enableExpandAll
2698
+ ? () => jsx(MRT_ExpandAllButton, { table: table })
2929
2699
  : 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' }),
2930
- ((_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.createElement(MRT_SelectCheckbox, { row: row, table: table })), Header: props.enableSelectAll && props.enableMultiRowSelection
2931
- ? () => React.createElement(MRT_SelectCheckbox, { selectAll: true, table: table })
2700
+ ((_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 }) => (jsx(MRT_SelectCheckbox, { row: row, table: table })), Header: props.enableSelectAll && props.enableMultiRowSelection
2701
+ ? () => jsx(MRT_SelectCheckbox, { selectAll: true, table: table })
2932
2702
  : 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' }),
2933
2703
  ((_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' }),
2934
2704
  ].filter(Boolean);
@@ -3049,11 +2819,7 @@ const MRT_TableRoot = (props) => {
3049
2819
  table.setPageIndex(Math.floor(totalRowCount / pageSize));
3050
2820
  }
3051
2821
  }, [props.rowCount, table.getPrePaginationRowModel().rows.length]);
3052
- return (React.createElement(React.Fragment, null,
3053
- React.createElement(Dialog, { PaperComponent: Box, TransitionComponent: !props.enableRowVirtualization ? Grow : undefined, disablePortal: true, fullScreen: true, keepMounted: false, onClose: () => table.setIsFullScreen(false), open: table.getState().isFullScreen, transitionDuration: 400 },
3054
- React.createElement(MRT_TablePaper, { table: table })),
3055
- !table.getState().isFullScreen && (React.createElement(MRT_TablePaper, { table: table })),
3056
- editingRow && props.editingMode === 'modal' && (React.createElement(MRT_EditRowModal, { row: editingRow, table: table, open: true }))));
2822
+ return (jsxs(Fragment, { children: [jsx(Dialog, Object.assign({ PaperComponent: Box, TransitionComponent: !props.enableRowVirtualization ? Grow : undefined, disablePortal: true, fullScreen: true, keepMounted: false, onClose: () => table.setIsFullScreen(false), open: table.getState().isFullScreen, transitionDuration: 400 }, { children: jsx(MRT_TablePaper, { table: table }) })), !table.getState().isFullScreen && (jsx(MRT_TablePaper, { table: table })), editingRow && props.editingMode === 'modal' && (jsx(MRT_EditRowModal, { row: editingRow, table: table, open: true }))] }));
3057
2823
  };
3058
2824
 
3059
2825
  const MRT_Localization_EN = {
@@ -3173,7 +2939,7 @@ const MaterialReactTable = (_a) => {
3173
2939
  manualPagination = true;
3174
2940
  manualSorting = true;
3175
2941
  }
3176
- return (React.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)));
2942
+ return (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)));
3177
2943
  };
3178
2944
 
3179
2945
  export { MRT_AggregationFns, MRT_BottomToolbar, MRT_CopyButton, MRT_EditActionButtons, MRT_ExpandButton, MRT_FilterFns, MRT_FilterOptionMenu, MRT_FullScreenToggleButton, MRT_GlobalFilterTextField, MRT_GrabHandleButton, MRT_ShowHideColumnsButton, MRT_SortingFns, MRT_TableHeadCellFilterContainer, MRT_TablePagination, MRT_ToggleDensePaddingButton, MRT_ToggleFiltersButton, MRT_ToggleGlobalFilterButton, MRT_ToggleRowActionMenuButton, MRT_ToolbarAlertBanner, MRT_ToolbarDropZone, MRT_ToolbarInternalButtons, MRT_TopToolbar, MaterialReactTable as default };