material-react-table 1.11.4 → 1.12.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/index.js +770 -1004
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/types/MaterialReactTable.d.ts +4 -743
  5. package/dist/cjs/types/_locales/cs.d.ts +1 -1
  6. package/dist/cjs/types/_locales/da.d.ts +1 -1
  7. package/dist/cjs/types/_locales/de.d.ts +1 -1
  8. package/dist/cjs/types/_locales/en.d.ts +1 -1
  9. package/dist/cjs/types/_locales/es.d.ts +1 -1
  10. package/dist/cjs/types/_locales/fa.d.ts +1 -1
  11. package/dist/cjs/types/_locales/fi.d.ts +1 -1
  12. package/dist/cjs/types/_locales/fr.d.ts +1 -1
  13. package/dist/cjs/types/_locales/hu.d.ts +1 -1
  14. package/dist/cjs/types/_locales/id.d.ts +1 -1
  15. package/dist/cjs/types/_locales/it.d.ts +1 -1
  16. package/dist/cjs/types/_locales/ja.d.ts +1 -1
  17. package/dist/cjs/types/_locales/nl.d.ts +1 -1
  18. package/dist/cjs/types/_locales/pl.d.ts +1 -1
  19. package/dist/cjs/types/_locales/pt-BR.d.ts +1 -1
  20. package/dist/cjs/types/_locales/pt.d.ts +1 -1
  21. package/dist/cjs/types/_locales/ro.d.ts +1 -1
  22. package/dist/cjs/types/_locales/ru.d.ts +1 -1
  23. package/dist/cjs/types/_locales/sk.d.ts +1 -1
  24. package/dist/cjs/types/_locales/sr-Cyrl-RS.d.ts +1 -1
  25. package/dist/cjs/types/_locales/sr-Latn-RS.d.ts +1 -1
  26. package/dist/cjs/types/_locales/sv.d.ts +1 -1
  27. package/dist/cjs/types/_locales/tr.d.ts +1 -1
  28. package/dist/cjs/types/_locales/uk.d.ts +1 -1
  29. package/dist/cjs/types/_locales/vi.d.ts +1 -1
  30. package/dist/cjs/types/_locales/zh-Hans.d.ts +1 -1
  31. package/dist/cjs/types/_locales/zh-Hant.d.ts +1 -1
  32. package/dist/cjs/types/body/MRT_EditRowModal.d.ts +2 -3
  33. package/dist/cjs/types/body/MRT_TableBody.d.ts +4 -4
  34. package/dist/cjs/types/body/MRT_TableBodyCell.d.ts +5 -5
  35. package/dist/cjs/types/body/MRT_TableBodyCellValue.d.ts +2 -3
  36. package/dist/cjs/types/body/MRT_TableBodyRow.d.ts +5 -5
  37. package/dist/cjs/types/body/MRT_TableBodyRowGrabHandle.d.ts +3 -3
  38. package/dist/cjs/types/body/MRT_TableDetailPanel.d.ts +4 -4
  39. package/dist/cjs/types/buttons/MRT_ColumnPinningButtons.d.ts +2 -3
  40. package/dist/cjs/types/buttons/MRT_CopyButton.d.ts +3 -3
  41. package/dist/cjs/types/buttons/MRT_EditActionButtons.d.ts +2 -3
  42. package/dist/cjs/types/buttons/MRT_ExpandAllButton.d.ts +2 -3
  43. package/dist/cjs/types/buttons/MRT_ExpandButton.d.ts +2 -3
  44. package/dist/cjs/types/buttons/MRT_FullScreenToggleButton.d.ts +3 -4
  45. package/dist/cjs/types/buttons/MRT_GrabHandleButton.d.ts +4 -4
  46. package/dist/cjs/types/buttons/MRT_ShowHideColumnsButton.d.ts +3 -4
  47. package/dist/cjs/types/buttons/MRT_ToggleDensePaddingButton.d.ts +3 -4
  48. package/dist/cjs/types/buttons/MRT_ToggleFiltersButton.d.ts +3 -4
  49. package/dist/cjs/types/buttons/MRT_ToggleGlobalFilterButton.d.ts +3 -4
  50. package/dist/cjs/types/buttons/MRT_ToggleRowActionMenuButton.d.ts +2 -3
  51. package/dist/cjs/types/column.utils.d.ts +10 -10
  52. package/dist/cjs/types/filterFns.d.ts +1 -1
  53. package/dist/cjs/types/footer/MRT_TableFooter.d.ts +3 -4
  54. package/dist/cjs/types/footer/MRT_TableFooterCell.d.ts +2 -3
  55. package/dist/cjs/types/footer/MRT_TableFooterRow.d.ts +3 -4
  56. package/dist/cjs/types/head/MRT_TableHead.d.ts +3 -4
  57. package/dist/cjs/types/head/MRT_TableHeadCell.d.ts +2 -3
  58. package/dist/cjs/types/head/MRT_TableHeadCellColumnActionsButton.d.ts +2 -3
  59. package/dist/cjs/types/head/MRT_TableHeadCellFilterContainer.d.ts +2 -3
  60. package/dist/cjs/types/head/MRT_TableHeadCellFilterLabel.d.ts +2 -3
  61. package/dist/cjs/types/head/MRT_TableHeadCellGrabHandle.d.ts +3 -3
  62. package/dist/cjs/types/head/MRT_TableHeadCellResizeHandle.d.ts +2 -3
  63. package/dist/cjs/types/head/MRT_TableHeadCellSortLabel.d.ts +3 -4
  64. package/dist/cjs/types/head/MRT_TableHeadRow.d.ts +3 -4
  65. package/dist/cjs/types/index.d.ts +6 -4
  66. package/dist/cjs/types/inputs/MRT_EditCellTextField.d.ts +2 -3
  67. package/dist/cjs/types/inputs/MRT_FilterCheckbox.d.ts +2 -3
  68. package/dist/cjs/types/inputs/MRT_FilterRangeFields.d.ts +2 -3
  69. package/dist/cjs/types/inputs/MRT_FilterTextField.d.ts +2 -3
  70. package/dist/cjs/types/inputs/MRT_GlobalFilterTextField.d.ts +2 -3
  71. package/dist/cjs/types/inputs/MRT_SelectCheckbox.d.ts +2 -3
  72. package/dist/cjs/types/menus/MRT_ColumnActionMenu.d.ts +2 -3
  73. package/dist/cjs/types/menus/MRT_FilterOptionMenu.d.ts +2 -3
  74. package/dist/cjs/types/menus/MRT_RowActionMenu.d.ts +3 -3
  75. package/dist/cjs/types/menus/MRT_ShowHideColumnsMenu.d.ts +2 -3
  76. package/dist/cjs/types/menus/MRT_ShowHideColumnsMenuItems.d.ts +3 -3
  77. package/dist/cjs/types/sortingFns.d.ts +17 -17
  78. package/dist/cjs/types/table/MRT_Table.d.ts +2 -3
  79. package/dist/cjs/types/table/MRT_TableContainer.d.ts +2 -3
  80. package/dist/cjs/types/table/MRT_TablePaper.d.ts +2 -3
  81. package/dist/cjs/types/toolbar/MRT_BottomToolbar.d.ts +2 -3
  82. package/dist/cjs/types/toolbar/MRT_LinearProgressBar.d.ts +2 -3
  83. package/dist/cjs/types/toolbar/MRT_TablePagination.d.ts +2 -3
  84. package/dist/cjs/types/toolbar/MRT_ToolbarAlertBanner.d.ts +2 -3
  85. package/dist/cjs/types/toolbar/MRT_ToolbarDropZone.d.ts +2 -3
  86. package/dist/cjs/types/toolbar/MRT_ToolbarInternalButtons.d.ts +2 -3
  87. package/dist/cjs/types/toolbar/MRT_TopToolbar.d.ts +3 -4
  88. package/dist/cjs/types/types.d.ts +745 -0
  89. package/dist/esm/material-react-table.esm.js +691 -925
  90. package/dist/esm/material-react-table.esm.js.map +1 -1
  91. package/dist/esm/types/MaterialReactTable.d.ts +4 -743
  92. package/dist/esm/types/_locales/cs.d.ts +1 -1
  93. package/dist/esm/types/_locales/da.d.ts +1 -1
  94. package/dist/esm/types/_locales/de.d.ts +1 -1
  95. package/dist/esm/types/_locales/en.d.ts +1 -1
  96. package/dist/esm/types/_locales/es.d.ts +1 -1
  97. package/dist/esm/types/_locales/fa.d.ts +1 -1
  98. package/dist/esm/types/_locales/fi.d.ts +1 -1
  99. package/dist/esm/types/_locales/fr.d.ts +1 -1
  100. package/dist/esm/types/_locales/hu.d.ts +1 -1
  101. package/dist/esm/types/_locales/id.d.ts +1 -1
  102. package/dist/esm/types/_locales/it.d.ts +1 -1
  103. package/dist/esm/types/_locales/ja.d.ts +1 -1
  104. package/dist/esm/types/_locales/nl.d.ts +1 -1
  105. package/dist/esm/types/_locales/pl.d.ts +1 -1
  106. package/dist/esm/types/_locales/pt-BR.d.ts +1 -1
  107. package/dist/esm/types/_locales/pt.d.ts +1 -1
  108. package/dist/esm/types/_locales/ro.d.ts +1 -1
  109. package/dist/esm/types/_locales/ru.d.ts +1 -1
  110. package/dist/esm/types/_locales/sk.d.ts +1 -1
  111. package/dist/esm/types/_locales/sr-Cyrl-RS.d.ts +1 -1
  112. package/dist/esm/types/_locales/sr-Latn-RS.d.ts +1 -1
  113. package/dist/esm/types/_locales/sv.d.ts +1 -1
  114. package/dist/esm/types/_locales/tr.d.ts +1 -1
  115. package/dist/esm/types/_locales/uk.d.ts +1 -1
  116. package/dist/esm/types/_locales/vi.d.ts +1 -1
  117. package/dist/esm/types/_locales/zh-Hans.d.ts +1 -1
  118. package/dist/esm/types/_locales/zh-Hant.d.ts +1 -1
  119. package/dist/esm/types/body/MRT_EditRowModal.d.ts +2 -3
  120. package/dist/esm/types/body/MRT_TableBody.d.ts +4 -4
  121. package/dist/esm/types/body/MRT_TableBodyCell.d.ts +5 -5
  122. package/dist/esm/types/body/MRT_TableBodyCellValue.d.ts +2 -3
  123. package/dist/esm/types/body/MRT_TableBodyRow.d.ts +5 -5
  124. package/dist/esm/types/body/MRT_TableBodyRowGrabHandle.d.ts +3 -3
  125. package/dist/esm/types/body/MRT_TableDetailPanel.d.ts +4 -4
  126. package/dist/esm/types/buttons/MRT_ColumnPinningButtons.d.ts +2 -3
  127. package/dist/esm/types/buttons/MRT_CopyButton.d.ts +3 -3
  128. package/dist/esm/types/buttons/MRT_EditActionButtons.d.ts +2 -3
  129. package/dist/esm/types/buttons/MRT_ExpandAllButton.d.ts +2 -3
  130. package/dist/esm/types/buttons/MRT_ExpandButton.d.ts +2 -3
  131. package/dist/esm/types/buttons/MRT_FullScreenToggleButton.d.ts +3 -4
  132. package/dist/esm/types/buttons/MRT_GrabHandleButton.d.ts +4 -4
  133. package/dist/esm/types/buttons/MRT_ShowHideColumnsButton.d.ts +3 -4
  134. package/dist/esm/types/buttons/MRT_ToggleDensePaddingButton.d.ts +3 -4
  135. package/dist/esm/types/buttons/MRT_ToggleFiltersButton.d.ts +3 -4
  136. package/dist/esm/types/buttons/MRT_ToggleGlobalFilterButton.d.ts +3 -4
  137. package/dist/esm/types/buttons/MRT_ToggleRowActionMenuButton.d.ts +2 -3
  138. package/dist/esm/types/column.utils.d.ts +10 -10
  139. package/dist/esm/types/filterFns.d.ts +1 -1
  140. package/dist/esm/types/footer/MRT_TableFooter.d.ts +3 -4
  141. package/dist/esm/types/footer/MRT_TableFooterCell.d.ts +2 -3
  142. package/dist/esm/types/footer/MRT_TableFooterRow.d.ts +3 -4
  143. package/dist/esm/types/head/MRT_TableHead.d.ts +3 -4
  144. package/dist/esm/types/head/MRT_TableHeadCell.d.ts +2 -3
  145. package/dist/esm/types/head/MRT_TableHeadCellColumnActionsButton.d.ts +2 -3
  146. package/dist/esm/types/head/MRT_TableHeadCellFilterContainer.d.ts +2 -3
  147. package/dist/esm/types/head/MRT_TableHeadCellFilterLabel.d.ts +2 -3
  148. package/dist/esm/types/head/MRT_TableHeadCellGrabHandle.d.ts +3 -3
  149. package/dist/esm/types/head/MRT_TableHeadCellResizeHandle.d.ts +2 -3
  150. package/dist/esm/types/head/MRT_TableHeadCellSortLabel.d.ts +3 -4
  151. package/dist/esm/types/head/MRT_TableHeadRow.d.ts +3 -4
  152. package/dist/esm/types/index.d.ts +6 -4
  153. package/dist/esm/types/inputs/MRT_EditCellTextField.d.ts +2 -3
  154. package/dist/esm/types/inputs/MRT_FilterCheckbox.d.ts +2 -3
  155. package/dist/esm/types/inputs/MRT_FilterRangeFields.d.ts +2 -3
  156. package/dist/esm/types/inputs/MRT_FilterTextField.d.ts +2 -3
  157. package/dist/esm/types/inputs/MRT_GlobalFilterTextField.d.ts +2 -3
  158. package/dist/esm/types/inputs/MRT_SelectCheckbox.d.ts +2 -3
  159. package/dist/esm/types/menus/MRT_ColumnActionMenu.d.ts +2 -3
  160. package/dist/esm/types/menus/MRT_FilterOptionMenu.d.ts +2 -3
  161. package/dist/esm/types/menus/MRT_RowActionMenu.d.ts +3 -3
  162. package/dist/esm/types/menus/MRT_ShowHideColumnsMenu.d.ts +2 -3
  163. package/dist/esm/types/menus/MRT_ShowHideColumnsMenuItems.d.ts +3 -3
  164. package/dist/esm/types/sortingFns.d.ts +17 -17
  165. package/dist/esm/types/table/MRT_Table.d.ts +2 -3
  166. package/dist/esm/types/table/MRT_TableContainer.d.ts +2 -3
  167. package/dist/esm/types/table/MRT_TablePaper.d.ts +2 -3
  168. package/dist/esm/types/toolbar/MRT_BottomToolbar.d.ts +2 -3
  169. package/dist/esm/types/toolbar/MRT_LinearProgressBar.d.ts +2 -3
  170. package/dist/esm/types/toolbar/MRT_TablePagination.d.ts +2 -3
  171. package/dist/esm/types/toolbar/MRT_ToolbarAlertBanner.d.ts +2 -3
  172. package/dist/esm/types/toolbar/MRT_ToolbarDropZone.d.ts +2 -3
  173. package/dist/esm/types/toolbar/MRT_ToolbarInternalButtons.d.ts +2 -3
  174. package/dist/esm/types/toolbar/MRT_TopToolbar.d.ts +3 -4
  175. package/dist/esm/types/types.d.ts +745 -0
  176. package/dist/index.d.ts +40 -35
  177. package/locales/cs.d.ts +1 -1
  178. package/locales/cs.esm.d.ts +1 -1
  179. package/locales/da.d.ts +1 -1
  180. package/locales/da.esm.d.ts +1 -1
  181. package/locales/de.d.ts +1 -1
  182. package/locales/de.esm.d.ts +1 -1
  183. package/locales/en.d.ts +1 -1
  184. package/locales/en.esm.d.ts +1 -1
  185. package/locales/es.d.ts +1 -1
  186. package/locales/es.esm.d.ts +1 -1
  187. package/locales/fa.d.ts +1 -1
  188. package/locales/fa.esm.d.ts +1 -1
  189. package/locales/fi.d.ts +1 -1
  190. package/locales/fi.esm.d.ts +1 -1
  191. package/locales/fr.d.ts +1 -1
  192. package/locales/fr.esm.d.ts +1 -1
  193. package/locales/hu.d.ts +1 -1
  194. package/locales/hu.esm.d.ts +1 -1
  195. package/locales/id.d.ts +1 -1
  196. package/locales/id.esm.d.ts +1 -1
  197. package/locales/it.d.ts +1 -1
  198. package/locales/it.esm.d.ts +1 -1
  199. package/locales/ja.d.ts +1 -1
  200. package/locales/ja.esm.d.ts +1 -1
  201. package/locales/nl.d.ts +1 -1
  202. package/locales/nl.esm.d.ts +1 -1
  203. package/locales/pl.d.ts +1 -1
  204. package/locales/pl.esm.d.ts +1 -1
  205. package/locales/pt-BR.d.ts +1 -1
  206. package/locales/pt-BR.esm.d.ts +1 -1
  207. package/locales/pt.d.ts +1 -1
  208. package/locales/pt.esm.d.ts +1 -1
  209. package/locales/ro.d.ts +1 -1
  210. package/locales/ro.esm.d.ts +1 -1
  211. package/locales/ru.d.ts +1 -1
  212. package/locales/ru.esm.d.ts +1 -1
  213. package/locales/sk.d.ts +1 -1
  214. package/locales/sk.esm.d.ts +1 -1
  215. package/locales/sr-Cyrl-RS.d.ts +1 -1
  216. package/locales/sr-Cyrl-RS.esm.d.ts +1 -1
  217. package/locales/sr-Latn-RS.d.ts +1 -1
  218. package/locales/sr-Latn-RS.esm.d.ts +1 -1
  219. package/locales/sv.d.ts +1 -1
  220. package/locales/sv.esm.d.ts +1 -1
  221. package/locales/tr.d.ts +1 -1
  222. package/locales/tr.esm.d.ts +1 -1
  223. package/locales/uk.d.ts +1 -1
  224. package/locales/uk.esm.d.ts +1 -1
  225. package/locales/vi.d.ts +1 -1
  226. package/locales/vi.esm.d.ts +1 -1
  227. package/locales/zh-Hans.d.ts +1 -1
  228. package/locales/zh-Hans.esm.d.ts +1 -1
  229. package/locales/zh-Hant.d.ts +1 -1
  230. package/locales/zh-Hant.esm.d.ts +1 -1
  231. package/package.json +35 -17
  232. package/src/MaterialReactTable.tsx +10 -984
  233. package/src/_locales/cs.ts +1 -1
  234. package/src/_locales/da.ts +1 -1
  235. package/src/_locales/de.ts +1 -1
  236. package/src/_locales/en.ts +1 -1
  237. package/src/_locales/es.ts +1 -1
  238. package/src/_locales/fa.ts +1 -1
  239. package/src/_locales/fi.ts +1 -1
  240. package/src/_locales/fr.ts +1 -1
  241. package/src/_locales/hu.ts +1 -1
  242. package/src/_locales/id.ts +1 -1
  243. package/src/_locales/it.ts +1 -1
  244. package/src/_locales/ja.ts +1 -1
  245. package/src/_locales/nl.ts +1 -1
  246. package/src/_locales/pl.ts +1 -1
  247. package/src/_locales/pt-BR.ts +1 -1
  248. package/src/_locales/pt.ts +1 -1
  249. package/src/_locales/ro.ts +1 -1
  250. package/src/_locales/ru.ts +1 -1
  251. package/src/_locales/sk.ts +1 -1
  252. package/src/_locales/sr-Cyrl-RS.ts +1 -1
  253. package/src/_locales/sr-Latn-RS.ts +1 -1
  254. package/src/_locales/sv.ts +1 -1
  255. package/src/_locales/tr.ts +1 -1
  256. package/src/_locales/uk.ts +1 -1
  257. package/src/_locales/vi.ts +1 -1
  258. package/src/_locales/zh-Hans.ts +1 -1
  259. package/src/_locales/zh-Hant.ts +1 -1
  260. package/src/body/MRT_EditRowModal.tsx +1 -2
  261. package/src/body/MRT_TableBody.tsx +2 -2
  262. package/src/body/MRT_TableBodyCell.tsx +6 -6
  263. package/src/body/MRT_TableBodyCellValue.tsx +2 -2
  264. package/src/body/MRT_TableBodyRow.tsx +3 -3
  265. package/src/body/MRT_TableBodyRowGrabHandle.tsx +2 -2
  266. package/src/body/MRT_TableDetailPanel.tsx +3 -3
  267. package/src/buttons/MRT_ColumnPinningButtons.tsx +1 -2
  268. package/src/buttons/MRT_CopyButton.tsx +2 -2
  269. package/src/buttons/MRT_EditActionButtons.tsx +1 -2
  270. package/src/buttons/MRT_ExpandAllButton.tsx +1 -2
  271. package/src/buttons/MRT_ExpandButton.tsx +2 -2
  272. package/src/buttons/MRT_FullScreenToggleButton.tsx +2 -3
  273. package/src/buttons/MRT_GrabHandleButton.tsx +3 -3
  274. package/src/buttons/MRT_ShowHideColumnsButton.tsx +3 -3
  275. package/src/buttons/MRT_ToggleDensePaddingButton.tsx +2 -3
  276. package/src/buttons/MRT_ToggleFiltersButton.tsx +2 -3
  277. package/src/buttons/MRT_ToggleGlobalFilterButton.tsx +2 -3
  278. package/src/buttons/MRT_ToggleRowActionMenuButton.tsx +2 -2
  279. package/src/column.utils.ts +23 -22
  280. package/src/filterFns.ts +1 -1
  281. package/src/footer/MRT_TableFooter.tsx +2 -3
  282. package/src/footer/MRT_TableFooterCell.tsx +1 -2
  283. package/src/footer/MRT_TableFooterRow.tsx +2 -3
  284. package/src/head/MRT_TableHead.tsx +2 -3
  285. package/src/head/MRT_TableHeadCell.tsx +3 -3
  286. package/src/head/MRT_TableHeadCellColumnActionsButton.tsx +2 -2
  287. package/src/head/MRT_TableHeadCellFilterContainer.tsx +1 -2
  288. package/src/head/MRT_TableHeadCellFilterLabel.tsx +2 -2
  289. package/src/head/MRT_TableHeadCellGrabHandle.tsx +2 -2
  290. package/src/head/MRT_TableHeadCellResizeHandle.tsx +1 -2
  291. package/src/head/MRT_TableHeadCellSortLabel.tsx +2 -3
  292. package/src/head/MRT_TableHeadRow.tsx +2 -3
  293. package/src/index.tsx +7 -5
  294. package/src/inputs/MRT_EditCellTextField.tsx +3 -3
  295. package/src/inputs/MRT_FilterCheckbox.tsx +2 -3
  296. package/src/inputs/MRT_FilterRangeFields.tsx +1 -2
  297. package/src/inputs/MRT_FilterTextField.tsx +5 -5
  298. package/src/inputs/MRT_GlobalFilterTextField.tsx +4 -4
  299. package/src/inputs/MRT_SelectCheckbox.tsx +3 -3
  300. package/src/menus/MRT_ColumnActionMenu.tsx +3 -2
  301. package/src/menus/MRT_FilterOptionMenu.tsx +8 -8
  302. package/src/menus/MRT_RowActionMenu.tsx +2 -2
  303. package/src/menus/MRT_ShowHideColumnsMenu.tsx +2 -2
  304. package/src/menus/MRT_ShowHideColumnsMenuItems.tsx +2 -8
  305. package/src/sortingFns.ts +1 -1
  306. package/src/table/MRT_Table.tsx +2 -2
  307. package/src/table/MRT_TableContainer.tsx +2 -2
  308. package/src/table/MRT_TablePaper.tsx +1 -2
  309. package/src/table/MRT_TableRoot.tsx +16 -16
  310. package/src/toolbar/MRT_BottomToolbar.tsx +1 -2
  311. package/src/toolbar/MRT_LinearProgressBar.tsx +1 -2
  312. package/src/toolbar/MRT_TablePagination.tsx +2 -2
  313. package/src/toolbar/MRT_ToolbarAlertBanner.tsx +2 -2
  314. package/src/toolbar/MRT_ToolbarDropZone.tsx +2 -2
  315. package/src/toolbar/MRT_ToolbarInternalButtons.tsx +1 -2
  316. package/src/toolbar/MRT_TopToolbar.tsx +2 -3
  317. package/src/types.ts +981 -0
package/dist/cjs/index.js CHANGED
@@ -2,10 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var React = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var react = require('react');
6
7
  var reactTable = require('@tanstack/react-table');
7
- var styles = require('@mui/material/styles');
8
8
  var matchSorterUtils = require('@tanstack/match-sorter-utils');
9
+ var styles = require('@mui/material/styles');
9
10
  var ArrowDownwardIcon = require('@mui/icons-material/ArrowDownward');
10
11
  var ArrowRightIcon = require('@mui/icons-material/ArrowRight');
11
12
  var CancelIcon = require('@mui/icons-material/Cancel');
@@ -81,7 +82,6 @@ var Stack = require('@mui/material/Stack');
81
82
 
82
83
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
83
84
 
84
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
85
85
  var ArrowDownwardIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowDownwardIcon);
86
86
  var ArrowRightIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowRightIcon);
87
87
  var CancelIcon__default = /*#__PURE__*/_interopDefaultLegacy(CancelIcon);
@@ -178,6 +178,104 @@ function __rest(s, e) {
178
178
 
179
179
  const MRT_AggregationFns = Object.assign({}, reactTable.aggregationFns);
180
180
 
181
+ const fuzzy$1 = (row, columnId, filterValue, addMeta) => {
182
+ const itemRank = matchSorterUtils.rankItem(row.getValue(columnId), filterValue, {
183
+ threshold: matchSorterUtils.rankings.MATCHES,
184
+ });
185
+ addMeta(itemRank);
186
+ return itemRank.passed;
187
+ };
188
+ fuzzy$1.autoRemove = (val) => !val;
189
+ const contains = (row, id, filterValue) => row
190
+ .getValue(id)
191
+ .toString()
192
+ .toLowerCase()
193
+ .trim()
194
+ .includes(filterValue.toString().toLowerCase().trim());
195
+ contains.autoRemove = (val) => !val;
196
+ const startsWith = (row, id, filterValue) => row
197
+ .getValue(id)
198
+ .toString()
199
+ .toLowerCase()
200
+ .trim()
201
+ .startsWith(filterValue.toString().toLowerCase().trim());
202
+ startsWith.autoRemove = (val) => !val;
203
+ const endsWith = (row, id, filterValue) => row
204
+ .getValue(id)
205
+ .toString()
206
+ .toLowerCase()
207
+ .trim()
208
+ .endsWith(filterValue.toString().toLowerCase().trim());
209
+ endsWith.autoRemove = (val) => !val;
210
+ const equals = (row, id, filterValue) => row.getValue(id).toString().toLowerCase().trim() ===
211
+ filterValue.toString().toLowerCase().trim();
212
+ equals.autoRemove = (val) => !val;
213
+ const notEquals = (row, id, filterValue) => row.getValue(id).toString().toLowerCase().trim() !==
214
+ filterValue.toString().toLowerCase().trim();
215
+ notEquals.autoRemove = (val) => !val;
216
+ const greaterThan = (row, id, filterValue) => !isNaN(+filterValue) && !isNaN(+row.getValue(id))
217
+ ? +row.getValue(id) > +filterValue
218
+ : row.getValue(id).toString().toLowerCase().trim() >
219
+ filterValue.toString().toLowerCase().trim();
220
+ greaterThan.autoRemove = (val) => !val;
221
+ const greaterThanOrEqualTo = (row, id, filterValue) => equals(row, id, filterValue) || greaterThan(row, id, filterValue);
222
+ greaterThanOrEqualTo.autoRemove = (val) => !val;
223
+ const lessThan = (row, id, filterValue) => !isNaN(+filterValue) && !isNaN(+row.getValue(id))
224
+ ? +row.getValue(id) < +filterValue
225
+ : row.getValue(id).toString().toLowerCase().trim() <
226
+ filterValue.toString().toLowerCase().trim();
227
+ lessThan.autoRemove = (val) => !val;
228
+ const lessThanOrEqualTo = (row, id, filterValue) => equals(row, id, filterValue) || lessThan(row, id, filterValue);
229
+ lessThanOrEqualTo.autoRemove = (val) => !val;
230
+ const between = (row, id, filterValues) => (['', undefined].includes(filterValues[0]) ||
231
+ greaterThan(row, id, filterValues[0])) &&
232
+ ((!isNaN(+filterValues[0]) &&
233
+ !isNaN(+filterValues[1]) &&
234
+ +filterValues[0] > +filterValues[1]) ||
235
+ ['', undefined].includes(filterValues[1]) ||
236
+ lessThan(row, id, filterValues[1]));
237
+ between.autoRemove = (val) => !val;
238
+ const betweenInclusive = (row, id, filterValues) => (['', undefined].includes(filterValues[0]) ||
239
+ greaterThanOrEqualTo(row, id, filterValues[0])) &&
240
+ ((!isNaN(+filterValues[0]) &&
241
+ !isNaN(+filterValues[1]) &&
242
+ +filterValues[0] > +filterValues[1]) ||
243
+ ['', undefined].includes(filterValues[1]) ||
244
+ lessThanOrEqualTo(row, id, filterValues[1]));
245
+ betweenInclusive.autoRemove = (val) => !val;
246
+ const empty = (row, id, _filterValue) => !row.getValue(id).toString().trim();
247
+ empty.autoRemove = (val) => !val;
248
+ const notEmpty = (row, id, _filterValue) => !!row.getValue(id).toString().trim();
249
+ notEmpty.autoRemove = (val) => !val;
250
+ const MRT_FilterFns = Object.assign(Object.assign({}, reactTable.filterFns), { between,
251
+ betweenInclusive,
252
+ contains,
253
+ empty,
254
+ endsWith,
255
+ equals,
256
+ fuzzy: fuzzy$1,
257
+ greaterThan,
258
+ greaterThanOrEqualTo,
259
+ lessThan,
260
+ lessThanOrEqualTo,
261
+ notEmpty,
262
+ notEquals,
263
+ startsWith });
264
+
265
+ const fuzzy = (rowA, rowB, columnId) => {
266
+ let dir = 0;
267
+ if (rowA.columnFiltersMeta[columnId]) {
268
+ dir = matchSorterUtils.compareItems(rowA.columnFiltersMeta[columnId], rowB.columnFiltersMeta[columnId]);
269
+ }
270
+ // Provide a fallback for when the item ranks are equal
271
+ return dir === 0
272
+ ? reactTable.sortingFns.alphanumeric(rowA, rowB, columnId)
273
+ : dir;
274
+ };
275
+ const MRT_SortingFns = Object.assign(Object.assign({}, reactTable.sortingFns), { fuzzy });
276
+ const rankGlobalFuzzy = (rowA, rowB) => Math.max(...Object.values(rowB.columnFiltersMeta).map((v) => v.rank)) -
277
+ Math.max(...Object.values(rowA.columnFiltersMeta).map((v) => v.rank));
278
+
181
279
  const getColumnId = (columnDef) => { var _a, _b, _c, _d; return (_d = (_a = columnDef.id) !== null && _a !== void 0 ? _a : (_c = (_b = columnDef.accessorKey) === null || _b === void 0 ? void 0 : _b.toString) === null || _c === void 0 ? void 0 : _c.call(_b)) !== null && _d !== void 0 ? _d : columnDef.header; };
182
280
  const getAllLeafColumnDefs = (columns) => {
183
281
  const allLeafColumnDefs = [];
@@ -245,8 +343,9 @@ const reorderColumn = (draggedColumn, targetColumn, columnOrder) => {
245
343
  if (draggedColumn.getCanPin()) {
246
344
  draggedColumn.pin(targetColumn.getIsPinned());
247
345
  }
248
- columnOrder.splice(columnOrder.indexOf(targetColumn.id), 0, columnOrder.splice(columnOrder.indexOf(draggedColumn.id), 1)[0]);
249
- return [...columnOrder];
346
+ const newColumnOrder = [...columnOrder];
347
+ newColumnOrder.splice(newColumnOrder.indexOf(targetColumn.id), 0, newColumnOrder.splice(newColumnOrder.indexOf(draggedColumn.id), 1)[0]);
348
+ return newColumnOrder;
250
349
  };
251
350
  const showExpandColumn = (props, grouping) => !!(props.enableExpanding ||
252
351
  (props.enableGrouping && (grouping === undefined || (grouping === null || grouping === void 0 ? void 0 : grouping.length))) ||
@@ -381,90 +480,6 @@ const MRT_DefaultDisplayColumn = {
381
480
  };
382
481
  const parseCSSVarId = (id) => id.replace(/[^a-zA-Z0-9]/g, '_');
383
482
 
384
- const fuzzy$1 = (row, columnId, filterValue, addMeta) => {
385
- const itemRank = matchSorterUtils.rankItem(row.getValue(columnId), filterValue, {
386
- threshold: matchSorterUtils.rankings.MATCHES,
387
- });
388
- addMeta(itemRank);
389
- return itemRank.passed;
390
- };
391
- fuzzy$1.autoRemove = (val) => !val;
392
- const contains = (row, id, filterValue) => row
393
- .getValue(id)
394
- .toString()
395
- .toLowerCase()
396
- .trim()
397
- .includes(filterValue.toString().toLowerCase().trim());
398
- contains.autoRemove = (val) => !val;
399
- const startsWith = (row, id, filterValue) => row
400
- .getValue(id)
401
- .toString()
402
- .toLowerCase()
403
- .trim()
404
- .startsWith(filterValue.toString().toLowerCase().trim());
405
- startsWith.autoRemove = (val) => !val;
406
- const endsWith = (row, id, filterValue) => row
407
- .getValue(id)
408
- .toString()
409
- .toLowerCase()
410
- .trim()
411
- .endsWith(filterValue.toString().toLowerCase().trim());
412
- endsWith.autoRemove = (val) => !val;
413
- const equals = (row, id, filterValue) => row.getValue(id).toString().toLowerCase().trim() ===
414
- filterValue.toString().toLowerCase().trim();
415
- equals.autoRemove = (val) => !val;
416
- const notEquals = (row, id, filterValue) => row.getValue(id).toString().toLowerCase().trim() !==
417
- filterValue.toString().toLowerCase().trim();
418
- notEquals.autoRemove = (val) => !val;
419
- const greaterThan = (row, id, filterValue) => !isNaN(+filterValue) && !isNaN(+row.getValue(id))
420
- ? +row.getValue(id) > +filterValue
421
- : row.getValue(id).toString().toLowerCase().trim() >
422
- filterValue.toString().toLowerCase().trim();
423
- greaterThan.autoRemove = (val) => !val;
424
- const greaterThanOrEqualTo = (row, id, filterValue) => equals(row, id, filterValue) || greaterThan(row, id, filterValue);
425
- greaterThanOrEqualTo.autoRemove = (val) => !val;
426
- const lessThan = (row, id, filterValue) => !isNaN(+filterValue) && !isNaN(+row.getValue(id))
427
- ? +row.getValue(id) < +filterValue
428
- : row.getValue(id).toString().toLowerCase().trim() <
429
- filterValue.toString().toLowerCase().trim();
430
- lessThan.autoRemove = (val) => !val;
431
- const lessThanOrEqualTo = (row, id, filterValue) => equals(row, id, filterValue) || lessThan(row, id, filterValue);
432
- lessThanOrEqualTo.autoRemove = (val) => !val;
433
- const between = (row, id, filterValues) => (['', undefined].includes(filterValues[0]) ||
434
- greaterThan(row, id, filterValues[0])) &&
435
- ((!isNaN(+filterValues[0]) &&
436
- !isNaN(+filterValues[1]) &&
437
- +filterValues[0] > +filterValues[1]) ||
438
- ['', undefined].includes(filterValues[1]) ||
439
- lessThan(row, id, filterValues[1]));
440
- between.autoRemove = (val) => !val;
441
- const betweenInclusive = (row, id, filterValues) => (['', undefined].includes(filterValues[0]) ||
442
- greaterThanOrEqualTo(row, id, filterValues[0])) &&
443
- ((!isNaN(+filterValues[0]) &&
444
- !isNaN(+filterValues[1]) &&
445
- +filterValues[0] > +filterValues[1]) ||
446
- ['', undefined].includes(filterValues[1]) ||
447
- lessThanOrEqualTo(row, id, filterValues[1]));
448
- betweenInclusive.autoRemove = (val) => !val;
449
- const empty = (row, id, _filterValue) => !row.getValue(id).toString().trim();
450
- empty.autoRemove = (val) => !val;
451
- const notEmpty = (row, id, _filterValue) => !!row.getValue(id).toString().trim();
452
- notEmpty.autoRemove = (val) => !val;
453
- const MRT_FilterFns = Object.assign(Object.assign({}, reactTable.filterFns), { between,
454
- betweenInclusive,
455
- contains,
456
- empty,
457
- endsWith,
458
- equals,
459
- fuzzy: fuzzy$1,
460
- greaterThan,
461
- greaterThanOrEqualTo,
462
- lessThan,
463
- lessThanOrEqualTo,
464
- notEmpty,
465
- notEquals,
466
- startsWith });
467
-
468
483
  const MRT_Default_Icons = {
469
484
  ArrowDownwardIcon: ArrowDownwardIcon__default["default"],
470
485
  ArrowRightIcon: ArrowRightIcon__default["default"],
@@ -496,19 +511,97 @@ const MRT_Default_Icons = {
496
511
  VisibilityOffIcon: VisibilityOffIcon__default["default"],
497
512
  };
498
513
 
499
- const fuzzy = (rowA, rowB, columnId) => {
500
- let dir = 0;
501
- if (rowA.columnFiltersMeta[columnId]) {
502
- dir = matchSorterUtils.compareItems(rowA.columnFiltersMeta[columnId], rowB.columnFiltersMeta[columnId]);
503
- }
504
- // Provide a fallback for when the item ranks are equal
505
- return dir === 0
506
- ? reactTable.sortingFns.alphanumeric(rowA, rowB, columnId)
507
- : dir;
514
+ const MRT_Localization_EN = {
515
+ actions: 'Actions',
516
+ and: 'and',
517
+ cancel: 'Cancel',
518
+ changeFilterMode: 'Change filter mode',
519
+ changeSearchMode: 'Change search mode',
520
+ clearFilter: 'Clear filter',
521
+ clearSearch: 'Clear search',
522
+ clearSort: 'Clear sort',
523
+ clickToCopy: 'Click to copy',
524
+ collapse: 'Collapse',
525
+ collapseAll: 'Collapse all',
526
+ columnActions: 'Column Actions',
527
+ copiedToClipboard: 'Copied to clipboard',
528
+ dropToGroupBy: 'Drop to group by {column}',
529
+ edit: 'Edit',
530
+ expand: 'Expand',
531
+ expandAll: 'Expand all',
532
+ filterArrIncludes: 'Includes',
533
+ filterArrIncludesAll: 'Includes all',
534
+ filterArrIncludesSome: 'Includes',
535
+ filterBetween: 'Between',
536
+ filterBetweenInclusive: 'Between Inclusive',
537
+ filterByColumn: 'Filter by {column}',
538
+ filterContains: 'Contains',
539
+ filterEmpty: 'Empty',
540
+ filterEndsWith: 'Ends With',
541
+ filterEquals: 'Equals',
542
+ filterEqualsString: 'Equals',
543
+ filterFuzzy: 'Fuzzy',
544
+ filterGreaterThan: 'Greater Than',
545
+ filterGreaterThanOrEqualTo: 'Greater Than Or Equal To',
546
+ filterInNumberRange: 'Between',
547
+ filterIncludesString: 'Contains',
548
+ filterIncludesStringSensitive: 'Contains',
549
+ filterLessThan: 'Less Than',
550
+ filterLessThanOrEqualTo: 'Less Than Or Equal To',
551
+ filterMode: 'Filter Mode: {filterType}',
552
+ filterNotEmpty: 'Not Empty',
553
+ filterNotEquals: 'Not Equals',
554
+ filterStartsWith: 'Starts With',
555
+ filterWeakEquals: 'Equals',
556
+ filteringByColumn: 'Filtering by {column} - {filterType} {filterValue}',
557
+ goToFirstPage: 'Go to first page',
558
+ goToLastPage: 'Go to last page',
559
+ goToNextPage: 'Go to next page',
560
+ goToPreviousPage: 'Go to previous page',
561
+ grab: 'Grab',
562
+ groupByColumn: 'Group by {column}',
563
+ groupedBy: 'Grouped by ',
564
+ hideAll: 'Hide all',
565
+ hideColumn: 'Hide {column} column',
566
+ max: 'Max',
567
+ min: 'Min',
568
+ move: 'Move',
569
+ noRecordsToDisplay: 'No records to display',
570
+ noResultsFound: 'No results found',
571
+ of: 'of',
572
+ or: 'or',
573
+ pinToLeft: 'Pin to left',
574
+ pinToRight: 'Pin to right',
575
+ resetColumnSize: 'Reset column size',
576
+ resetOrder: 'Reset order',
577
+ rowActions: 'Row Actions',
578
+ rowNumber: '#',
579
+ rowNumbers: 'Row Numbers',
580
+ rowsPerPage: 'Rows per page',
581
+ save: 'Save',
582
+ search: 'Search',
583
+ selectedCountOfRowCountRowsSelected: '{selectedCount} of {rowCount} row(s) selected',
584
+ select: 'Select',
585
+ showAll: 'Show all',
586
+ showAllColumns: 'Show all columns',
587
+ showHideColumns: 'Show/Hide columns',
588
+ showHideFilters: 'Show/Hide filters',
589
+ showHideSearch: 'Show/Hide search',
590
+ sortByColumnAsc: 'Sort by {column} ascending',
591
+ sortByColumnDesc: 'Sort by {column} descending',
592
+ sortedByColumnAsc: 'Sorted by {column} ascending',
593
+ sortedByColumnDesc: 'Sorted by {column} descending',
594
+ thenBy: ', then by ',
595
+ toggleDensity: 'Toggle density',
596
+ toggleFullScreen: 'Toggle full screen',
597
+ toggleSelectAll: 'Toggle select all',
598
+ toggleSelectRow: 'Toggle select row',
599
+ toggleVisibility: 'Toggle visibility',
600
+ ungroupByColumn: 'Ungroup by {column}',
601
+ unpin: 'Unpin',
602
+ unpinAll: 'Unpin all',
603
+ unsorted: 'Unsorted',
508
604
  };
509
- const MRT_SortingFns = Object.assign(Object.assign({}, reactTable.sortingFns), { fuzzy });
510
- const rankGlobalFuzzy = (rowA, rowB) => Math.max(...Object.values(rowB.columnFiltersMeta).map((v) => v.rank)) -
511
- Math.max(...Object.values(rowA.columnFiltersMeta).map((v) => v.rank));
512
605
 
513
606
  const MRT_ExpandAllButton = ({ table }) => {
514
607
  var _a, _b;
@@ -518,16 +611,14 @@ const MRT_ExpandAllButton = ({ table }) => {
518
611
  ? muiExpandAllButtonProps({ table })
519
612
  : muiExpandAllButtonProps;
520
613
  const isAllRowsExpanded = getIsAllRowsExpanded();
521
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: ((_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : isAllRowsExpanded)
614
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: ((_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : isAllRowsExpanded)
522
615
  ? localization.collapseAll
523
- : localization.expandAll },
524
- React__default["default"].createElement("span", null,
525
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": localization.expandAll, disabled: isLoading || (!renderDetailPanel && !getCanSomeRowsExpand()), onClick: () => toggleAllRowsExpanded(!isAllRowsExpanded) }, iconButtonProps, { sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.25rem', width: density === 'compact' ? '1.75rem' : '2.25rem', mt: density !== 'compact' ? '-0.25rem' : undefined }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
616
+ : localization.expandAll }, { children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.expandAll, disabled: isLoading || (!renderDetailPanel && !getCanSomeRowsExpand()), onClick: () => toggleAllRowsExpanded(!isAllRowsExpanded) }, iconButtonProps, { sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.25rem', width: density === 'compact' ? '1.75rem' : '2.25rem', mt: density !== 'compact' ? '-0.25rem' : undefined }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
526
617
  ? iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx(theme)
527
- : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }), (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _b !== void 0 ? _b : (React__default["default"].createElement(KeyboardDoubleArrowDownIcon, { style: {
528
- transform: `rotate(${isAllRowsExpanded ? -180 : getIsSomeRowsExpanded() ? -90 : 0}deg)`,
529
- transition: 'transform 150ms',
530
- } }))))));
618
+ : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }, { children: (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _b !== void 0 ? _b : (jsxRuntime.jsx(KeyboardDoubleArrowDownIcon, { style: {
619
+ transform: `rotate(${isAllRowsExpanded ? -180 : getIsSomeRowsExpanded() ? -90 : 0}deg)`,
620
+ transition: 'transform 150ms',
621
+ } })) })) }) })));
531
622
  };
532
623
 
533
624
  const MRT_ExpandButton = ({ row, table, }) => {
@@ -545,16 +636,14 @@ const MRT_ExpandButton = ({ row, table, }) => {
545
636
  row.toggleExpanded();
546
637
  (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
547
638
  };
548
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, disableHoverListener: !canExpand && !renderDetailPanel, enterDelay: 1000, enterNextDelay: 1000, title: ((_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : isExpanded)
639
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, disableHoverListener: !canExpand && !renderDetailPanel, enterDelay: 1000, enterNextDelay: 1000, title: ((_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : isExpanded)
549
640
  ? localization.collapse
550
- : localization.expand },
551
- React__default["default"].createElement("span", null,
552
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": localization.expand, disabled: !canExpand && !renderDetailPanel }, iconButtonProps, { onClick: handleToggleExpand, sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.25rem', width: density === 'compact' ? '1.75rem' : '2.25rem' }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
641
+ : localization.expand }, { children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.expand, disabled: !canExpand && !renderDetailPanel }, iconButtonProps, { onClick: handleToggleExpand, sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.25rem', width: density === 'compact' ? '1.75rem' : '2.25rem' }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
553
642
  ? iconButtonProps.sx(theme)
554
- : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }), (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _b !== void 0 ? _b : (React__default["default"].createElement(ExpandMoreIcon, { style: {
555
- transform: `rotate(${!canExpand && !renderDetailPanel ? -90 : isExpanded ? -180 : 0}deg)`,
556
- transition: 'transform 150ms',
557
- } }))))));
643
+ : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }, { children: (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _b !== void 0 ? _b : (jsxRuntime.jsx(ExpandMoreIcon, { style: {
644
+ transform: `rotate(${!canExpand && !renderDetailPanel ? -90 : isExpanded ? -180 : 0}deg)`,
645
+ transition: 'transform 150ms',
646
+ } })) })) }) })));
558
647
  };
559
648
 
560
649
  const mrtFilterOptions = (localization) => [
@@ -654,7 +743,7 @@ const MRT_FilterOptionMenu = ({ anchorEl, header, onSelect, setAnchorEl, setFilt
654
743
  const { columnDef } = column !== null && column !== void 0 ? column : {};
655
744
  const currentFilterValue = column === null || column === void 0 ? void 0 : column.getFilterValue();
656
745
  const allowedColumnFilterOptions = (_a = columnDef === null || columnDef === void 0 ? void 0 : columnDef.columnFilterModeOptions) !== null && _a !== void 0 ? _a : columnFilterModeOptions;
657
- const internalFilterOptions = React.useMemo(() => mrtFilterOptions(localization).filter((filterOption) => columnDef
746
+ const internalFilterOptions = react.useMemo(() => mrtFilterOptions(localization).filter((filterOption) => columnDef
658
747
  ? allowedColumnFilterOptions === undefined ||
659
748
  (allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.includes(filterOption.option))
660
749
  : (!globalFilterModeOptions ||
@@ -721,33 +810,31 @@ const MRT_FilterOptionMenu = ({ anchorEl, header, onSelect, setAnchorEl, setFilt
721
810
  onSelect === null || onSelect === void 0 ? void 0 : onSelect();
722
811
  };
723
812
  const filterOption = !!header && columnDef ? columnDef._filterFn : globalFilterFn;
724
- return (React__default["default"].createElement(Menu__default["default"], { anchorEl: anchorEl, anchorOrigin: { vertical: 'center', horizontal: 'right' }, onClose: () => setAnchorEl(null), open: !!anchorEl, MenuListProps: {
813
+ return (jsxRuntime.jsx(Menu__default["default"], Object.assign({ anchorEl: anchorEl, anchorOrigin: { vertical: 'center', horizontal: 'right' }, onClose: () => setAnchorEl(null), open: !!anchorEl, MenuListProps: {
725
814
  dense: density === 'compact',
726
- } }, (_d = (header && column && columnDef
727
- ? (_c = (_b = columnDef.renderColumnFilterModeMenuItems) === null || _b === void 0 ? void 0 : _b.call(columnDef, {
728
- column: column,
729
- internalFilterOptions,
730
- onSelectFilterMode: handleSelectFilterMode,
731
- table,
732
- })) !== null && _c !== void 0 ? _c : renderColumnFilterModeMenuItems === null || renderColumnFilterModeMenuItems === void 0 ? void 0 : renderColumnFilterModeMenuItems({
733
- column: column,
734
- internalFilterOptions,
735
- onSelectFilterMode: handleSelectFilterMode,
736
- table,
737
- })
738
- : renderGlobalFilterModeMenuItems === null || renderGlobalFilterModeMenuItems === void 0 ? void 0 : renderGlobalFilterModeMenuItems({
739
- internalFilterOptions,
740
- onSelectFilterMode: handleSelectFilterMode,
741
- table,
742
- }))) !== null && _d !== void 0 ? _d : internalFilterOptions.map(({ option, label, divider, symbol }, index) => (React__default["default"].createElement(MenuItem__default["default"], { divider: divider, key: index, onClick: () => handleSelectFilterMode(option), selected: option === filterOption, sx: {
743
- alignItems: 'center',
744
- display: 'flex',
745
- gap: '2ch',
746
- my: 0,
747
- py: '6px',
748
- }, value: option },
749
- React__default["default"].createElement(Box__default["default"], { sx: { fontSize: '1.25rem', width: '2ch' } }, symbol),
750
- label)))));
815
+ } }, { children: (_d = (header && column && columnDef
816
+ ? (_c = (_b = columnDef.renderColumnFilterModeMenuItems) === null || _b === void 0 ? void 0 : _b.call(columnDef, {
817
+ column: column,
818
+ internalFilterOptions,
819
+ onSelectFilterMode: handleSelectFilterMode,
820
+ table,
821
+ })) !== null && _c !== void 0 ? _c : renderColumnFilterModeMenuItems === null || renderColumnFilterModeMenuItems === void 0 ? void 0 : renderColumnFilterModeMenuItems({
822
+ column: column,
823
+ internalFilterOptions,
824
+ onSelectFilterMode: handleSelectFilterMode,
825
+ table,
826
+ })
827
+ : renderGlobalFilterModeMenuItems === null || renderGlobalFilterModeMenuItems === void 0 ? void 0 : renderGlobalFilterModeMenuItems({
828
+ internalFilterOptions,
829
+ onSelectFilterMode: handleSelectFilterMode,
830
+ table,
831
+ }))) !== null && _d !== void 0 ? _d : internalFilterOptions.map(({ option, label, divider, symbol }, index) => (jsxRuntime.jsxs(MenuItem__default["default"], Object.assign({ divider: divider, onClick: () => handleSelectFilterMode(option), selected: option === filterOption, sx: {
832
+ alignItems: 'center',
833
+ display: 'flex',
834
+ gap: '2ch',
835
+ my: 0,
836
+ py: '6px',
837
+ }, value: option }, { children: [jsxRuntime.jsx(Box__default["default"], Object.assign({ sx: { fontSize: '1.25rem', width: '2ch' } }, { children: symbol })), label] }), index))) })));
751
838
  };
752
839
 
753
840
  const commonMenuItemStyles = {
@@ -766,7 +853,7 @@ const MRT_ColumnActionMenu = ({ anchorEl, header, setAnchorEl, table, }) => {
766
853
  const { column } = header;
767
854
  const { columnDef } = column;
768
855
  const { columnSizing, columnVisibility, density, showColumnFilters } = getState();
769
- const [filterMenuAnchorEl, setFilterMenuAnchorEl] = React.useState(null);
856
+ const [filterMenuAnchorEl, setFilterMenuAnchorEl] = react.useState(null);
770
857
  const handleClearSort = () => {
771
858
  column.clearSorting();
772
859
  setAnchorEl(null);
@@ -821,121 +908,60 @@ const MRT_ColumnActionMenu = ({ anchorEl, header, setAnchorEl, table, }) => {
821
908
  !isSelectFilter &&
822
909
  (allowedColumnFilterOptions === undefined ||
823
910
  !!(allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.length));
824
- return (React__default["default"].createElement(Menu__default["default"], { anchorEl: anchorEl, open: !!anchorEl, onClose: () => setAnchorEl(null), MenuListProps: {
911
+ return (jsxRuntime.jsxs(Menu__default["default"], Object.assign({ anchorEl: anchorEl, open: !!anchorEl, onClose: () => setAnchorEl(null), MenuListProps: {
825
912
  dense: density === 'compact',
826
- } }, (_d = (_c = (_b = columnDef.renderColumnActionsMenuItems) === null || _b === void 0 ? void 0 : _b.call(columnDef, {
827
- closeMenu: () => setAnchorEl(null),
828
- column,
829
- table,
830
- })) !== null && _c !== void 0 ? _c : renderColumnActionsMenuItems === null || renderColumnActionsMenuItems === void 0 ? void 0 : renderColumnActionsMenuItems({
831
- closeMenu: () => setAnchorEl(null),
832
- column,
833
- table,
834
- })) !== null && _d !== void 0 ? _d : (enableSorting &&
835
- column.getCanSort() &&
836
- [
837
- enableSortingRemoval !== false && (React__default["default"].createElement(MenuItem__default["default"], { disabled: !column.getIsSorted(), key: 0, onClick: handleClearSort, sx: commonMenuItemStyles },
838
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
839
- React__default["default"].createElement(ListItemIcon__default["default"], null,
840
- React__default["default"].createElement(ClearAllIcon, null)),
841
- localization.clearSort))),
842
- React__default["default"].createElement(MenuItem__default["default"], { disabled: column.getIsSorted() === 'asc', key: 1, onClick: handleSortAsc, sx: commonMenuItemStyles },
843
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
844
- React__default["default"].createElement(ListItemIcon__default["default"], null,
845
- React__default["default"].createElement(SortIcon, { style: { transform: 'rotate(180deg) scaleX(-1)' } })), (_e = localization.sortByColumnAsc) === null || _e === void 0 ? void 0 :
846
- _e.replace('{column}', String(columnDef.header)))),
847
- React__default["default"].createElement(MenuItem__default["default"], { divider: enableColumnFilters || enableGrouping || enableHiding, key: 2, disabled: column.getIsSorted() === 'desc', onClick: handleSortDesc, sx: commonMenuItemStyles },
848
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
849
- React__default["default"].createElement(ListItemIcon__default["default"], null,
850
- React__default["default"].createElement(SortIcon, null)), (_f = localization.sortByColumnDesc) === null || _f === void 0 ? void 0 :
851
- _f.replace('{column}', String(columnDef.header)))),
852
- ].filter(Boolean)),
853
- enableColumnFilters &&
854
- column.getCanFilter() &&
855
- [
856
- React__default["default"].createElement(MenuItem__default["default"], { disabled: !column.getFilterValue(), key: 0, onClick: handleClearFilter, sx: commonMenuItemStyles },
857
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
858
- React__default["default"].createElement(ListItemIcon__default["default"], null,
859
- React__default["default"].createElement(FilterListOffIcon, null)),
860
- localization.clearFilter)),
861
- React__default["default"].createElement(MenuItem__default["default"], { disabled: showColumnFilters && !enableColumnFilterModes, divider: enableGrouping || enableHiding, key: 1, onClick: showColumnFilters
862
- ? handleOpenFilterModeMenu
863
- : handleFilterByColumn, sx: commonMenuItemStyles },
864
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
865
- React__default["default"].createElement(ListItemIcon__default["default"], null,
866
- React__default["default"].createElement(FilterListIcon, null)), (_g = localization.filterByColumn) === null || _g === void 0 ? void 0 :
867
- _g.replace('{column}', String(columnDef.header))),
868
- showFilterModeSubMenu && (React__default["default"].createElement(IconButton__default["default"], { onClick: handleOpenFilterModeMenu, onMouseEnter: handleOpenFilterModeMenu, size: "small", sx: { p: 0 } },
869
- React__default["default"].createElement(ArrowRightIcon, null)))),
870
- showFilterModeSubMenu && (React__default["default"].createElement(MRT_FilterOptionMenu, { anchorEl: filterMenuAnchorEl, header: header, key: 2, onSelect: handleFilterByColumn, setAnchorEl: setFilterMenuAnchorEl, table: table })),
871
- ].filter(Boolean),
872
- enableGrouping &&
873
- column.getCanGroup() && [
874
- React__default["default"].createElement(MenuItem__default["default"], { divider: enablePinning, key: 0, onClick: handleGroupByColumn, sx: commonMenuItemStyles },
875
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
876
- React__default["default"].createElement(ListItemIcon__default["default"], null,
877
- React__default["default"].createElement(DynamicFeedIcon, null)), (_h = localization[column.getIsGrouped() ? 'ungroupByColumn' : 'groupByColumn']) === null || _h === void 0 ? void 0 :
878
- _h.replace('{column}', String(columnDef.header)))),
879
- ],
880
- enablePinning &&
881
- column.getCanPin() && [
882
- React__default["default"].createElement(MenuItem__default["default"], { disabled: column.getIsPinned() === 'left' || !column.getCanPin(), key: 0, onClick: () => handlePinColumn('left'), sx: commonMenuItemStyles },
883
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
884
- React__default["default"].createElement(ListItemIcon__default["default"], null,
885
- React__default["default"].createElement(PushPinIcon, { style: { transform: 'rotate(90deg)' } })),
886
- localization.pinToLeft)),
887
- React__default["default"].createElement(MenuItem__default["default"], { disabled: column.getIsPinned() === 'right' || !column.getCanPin(), key: 1, onClick: () => handlePinColumn('right'), sx: commonMenuItemStyles },
888
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
889
- React__default["default"].createElement(ListItemIcon__default["default"], null,
890
- React__default["default"].createElement(PushPinIcon, { style: { transform: 'rotate(-90deg)' } })),
891
- localization.pinToRight)),
892
- React__default["default"].createElement(MenuItem__default["default"], { disabled: !column.getIsPinned(), divider: enableHiding, key: 2, onClick: () => handlePinColumn(false), sx: commonMenuItemStyles },
893
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
894
- React__default["default"].createElement(ListItemIcon__default["default"], null,
895
- React__default["default"].createElement(PushPinIcon, null)),
896
- localization.unpin)),
897
- ],
898
- enableColumnResizing &&
899
- column.getCanResize() && [
900
- React__default["default"].createElement(MenuItem__default["default"], { disabled: !columnSizing[column.id], key: 0, onClick: handleResetColumnSize, sx: commonMenuItemStyles },
901
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
902
- React__default["default"].createElement(ListItemIcon__default["default"], null,
903
- React__default["default"].createElement(RestartAltIcon, null)),
904
- localization.resetColumnSize)),
905
- ],
906
- enableHiding && [
907
- React__default["default"].createElement(MenuItem__default["default"], { disabled: !column.getCanHide(), key: 0, onClick: handleHideColumn, sx: commonMenuItemStyles },
908
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
909
- React__default["default"].createElement(ListItemIcon__default["default"], null,
910
- React__default["default"].createElement(VisibilityOffIcon, null)), (_j = localization.hideColumn) === null || _j === void 0 ? void 0 :
911
- _j.replace('{column}', String(columnDef.header)))),
912
- React__default["default"].createElement(MenuItem__default["default"], { disabled: !Object.values(columnVisibility).filter((visible) => !visible)
913
- .length, key: 1, onClick: handleShowAllColumns, sx: commonMenuItemStyles },
914
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
915
- React__default["default"].createElement(ListItemIcon__default["default"], null,
916
- React__default["default"].createElement(ViewColumnIcon, null)), (_k = localization.showAllColumns) === null || _k === void 0 ? void 0 :
917
- _k.replace('{column}', String(columnDef.header)))),
918
- ]));
913
+ } }, { children: [(_d = (_c = (_b = columnDef.renderColumnActionsMenuItems) === null || _b === void 0 ? void 0 : _b.call(columnDef, {
914
+ closeMenu: () => setAnchorEl(null),
915
+ column,
916
+ table,
917
+ })) !== null && _c !== void 0 ? _c : renderColumnActionsMenuItems === null || renderColumnActionsMenuItems === void 0 ? void 0 : renderColumnActionsMenuItems({
918
+ closeMenu: () => setAnchorEl(null),
919
+ column,
920
+ table,
921
+ })) !== null && _d !== void 0 ? _d : (enableSorting &&
922
+ column.getCanSort() &&
923
+ [
924
+ enableSortingRemoval !== false && (jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: !column.getIsSorted(), onClick: handleClearSort, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(ClearAllIcon, {}) }), localization.clearSort] })) }), 0)),
925
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: column.getIsSorted() === 'asc', onClick: handleSortAsc, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(SortIcon, { style: { transform: 'rotate(180deg) scaleX(-1)' } }) }), (_e = localization.sortByColumnAsc) === null || _e === void 0 ? void 0 : _e.replace('{column}', String(columnDef.header))] })) }), 1),
926
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ divider: enableColumnFilters || enableGrouping || enableHiding, disabled: column.getIsSorted() === 'desc', onClick: handleSortDesc, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(SortIcon, {}) }), (_f = localization.sortByColumnDesc) === null || _f === void 0 ? void 0 : _f.replace('{column}', String(columnDef.header))] })) }), 2),
927
+ ].filter(Boolean)), enableColumnFilters &&
928
+ column.getCanFilter() &&
929
+ [
930
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: !column.getFilterValue(), onClick: handleClearFilter, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(FilterListOffIcon, {}) }), localization.clearFilter] })) }), 0),
931
+ jsxRuntime.jsxs(MenuItem__default["default"], Object.assign({ disabled: showColumnFilters && !enableColumnFilterModes, divider: enableGrouping || enableHiding, onClick: showColumnFilters
932
+ ? handleOpenFilterModeMenu
933
+ : handleFilterByColumn, sx: commonMenuItemStyles }, { children: [jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(FilterListIcon, {}) }), (_g = localization.filterByColumn) === null || _g === void 0 ? void 0 : _g.replace('{column}', String(columnDef.header))] })), showFilterModeSubMenu && (jsxRuntime.jsx(IconButton__default["default"], Object.assign({ onClick: handleOpenFilterModeMenu, onMouseEnter: handleOpenFilterModeMenu, size: "small", sx: { p: 0 } }, { children: jsxRuntime.jsx(ArrowRightIcon, {}) })))] }), 1),
934
+ showFilterModeSubMenu && (jsxRuntime.jsx(MRT_FilterOptionMenu, { anchorEl: filterMenuAnchorEl, header: header, onSelect: handleFilterByColumn, setAnchorEl: setFilterMenuAnchorEl, table: table }, 2)),
935
+ ].filter(Boolean), enableGrouping &&
936
+ column.getCanGroup() && [
937
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ divider: enablePinning, onClick: handleGroupByColumn, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(DynamicFeedIcon, {}) }), (_h = localization[column.getIsGrouped() ? 'ungroupByColumn' : 'groupByColumn']) === null || _h === void 0 ? void 0 : _h.replace('{column}', String(columnDef.header))] })) }), 0),
938
+ ], enablePinning &&
939
+ column.getCanPin() && [
940
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: column.getIsPinned() === 'left' || !column.getCanPin(), onClick: () => handlePinColumn('left'), sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(PushPinIcon, { style: { transform: 'rotate(90deg)' } }) }), localization.pinToLeft] })) }), 0),
941
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: column.getIsPinned() === 'right' || !column.getCanPin(), onClick: () => handlePinColumn('right'), sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(PushPinIcon, { style: { transform: 'rotate(-90deg)' } }) }), localization.pinToRight] })) }), 1),
942
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: !column.getIsPinned(), divider: enableHiding, onClick: () => handlePinColumn(false), sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(PushPinIcon, {}) }), localization.unpin] })) }), 2),
943
+ ], enableColumnResizing &&
944
+ column.getCanResize() && [
945
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: !columnSizing[column.id], onClick: handleResetColumnSize, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(RestartAltIcon, {}) }), localization.resetColumnSize] })) }), 0),
946
+ ], enableHiding && [
947
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: !column.getCanHide(), onClick: handleHideColumn, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(VisibilityOffIcon, {}) }), (_j = localization.hideColumn) === null || _j === void 0 ? void 0 : _j.replace('{column}', String(columnDef.header))] })) }), 0),
948
+ jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disabled: !Object.values(columnVisibility).filter((visible) => !visible)
949
+ .length, onClick: handleShowAllColumns, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(ViewColumnIcon, {}) }), (_k = localization.showAllColumns) === null || _k === void 0 ? void 0 : _k.replace('{column}', String(columnDef.header))] })) }), 1),
950
+ ]] })));
919
951
  };
920
952
 
921
953
  const MRT_RowActionMenu = ({ anchorEl, handleEdit, row, setAnchorEl, table, }) => {
922
954
  const { getState, options: { icons: { EditIcon }, enableEditing, localization, renderRowActionMenuItems, }, } = table;
923
955
  const { density } = getState();
924
- return (React__default["default"].createElement(Menu__default["default"], { anchorEl: anchorEl, open: !!anchorEl, onClick: (event) => event.stopPropagation(), onClose: () => setAnchorEl(null), MenuListProps: {
956
+ return (jsxRuntime.jsxs(Menu__default["default"], Object.assign({ anchorEl: anchorEl, open: !!anchorEl, onClick: (event) => event.stopPropagation(), onClose: () => setAnchorEl(null), MenuListProps: {
925
957
  dense: density === 'compact',
926
- } },
927
- enableEditing instanceof Function
928
- ? enableEditing(row)
929
- : enableEditing && (React__default["default"].createElement(MenuItem__default["default"], { onClick: handleEdit, sx: commonMenuItemStyles },
930
- React__default["default"].createElement(Box__default["default"], { sx: commonListItemStyles },
931
- React__default["default"].createElement(ListItemIcon__default["default"], null,
932
- React__default["default"].createElement(EditIcon, null)),
933
- localization.edit))), renderRowActionMenuItems === null || renderRowActionMenuItems === void 0 ? void 0 :
934
- renderRowActionMenuItems({
935
- row,
936
- table,
937
- closeMenu: () => setAnchorEl(null),
938
- })));
958
+ } }, { children: [enableEditing instanceof Function
959
+ ? enableEditing(row)
960
+ : enableEditing && (jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ onClick: handleEdit, sx: commonMenuItemStyles }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: commonListItemStyles }, { children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: jsxRuntime.jsx(EditIcon, {}) }), localization.edit] })) }))), renderRowActionMenuItems === null || renderRowActionMenuItems === void 0 ? void 0 : renderRowActionMenuItems({
961
+ row,
962
+ table,
963
+ closeMenu: () => setAnchorEl(null),
964
+ })] })));
939
965
  };
940
966
 
941
967
  const MRT_EditActionButtons = ({ row, table, variant = 'icon', }) => {
@@ -962,15 +988,7 @@ const MRT_EditActionButtons = ({ row, table, variant = 'icon', }) => {
962
988
  values: (_b = editingRow === null || editingRow === void 0 ? void 0 : editingRow._valuesCache) !== null && _b !== void 0 ? _b : Object.assign({}, row.original),
963
989
  });
964
990
  };
965
- return (React__default["default"].createElement(Box__default["default"], { onClick: (e) => e.stopPropagation(), sx: { display: 'flex', gap: '0.75rem' } }, variant === 'icon' ? (React__default["default"].createElement(React__default["default"].Fragment, null,
966
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: localization.cancel },
967
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.cancel, onClick: handleCancel },
968
- React__default["default"].createElement(CancelIcon, null))),
969
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: localization.save },
970
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.save, color: "info", onClick: handleSave },
971
- React__default["default"].createElement(SaveIcon, null))))) : (React__default["default"].createElement(React__default["default"].Fragment, null,
972
- React__default["default"].createElement(Button__default["default"], { onClick: handleCancel }, localization.cancel),
973
- React__default["default"].createElement(Button__default["default"], { onClick: handleSave, variant: "contained" }, localization.save)))));
991
+ return (jsxRuntime.jsx(Box__default["default"], Object.assign({ onClick: (e) => e.stopPropagation(), sx: { display: 'flex', gap: '0.75rem' } }, { children: variant === 'icon' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: localization.cancel }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.cancel, onClick: handleCancel }, { children: jsxRuntime.jsx(CancelIcon, {}) })) })), jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: localization.save }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.save, color: "info", onClick: handleSave }, { children: jsxRuntime.jsx(SaveIcon, {}) })) }))] })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Button__default["default"], Object.assign({ onClick: handleCancel }, { children: localization.cancel })), jsxRuntime.jsx(Button__default["default"], Object.assign({ onClick: handleSave, variant: "contained" }, { children: localization.save }))] })) })));
974
992
  };
975
993
 
976
994
  const commonIconButtonStyles = {
@@ -986,7 +1004,7 @@ const commonIconButtonStyles = {
986
1004
  const MRT_ToggleRowActionMenuButton = ({ cell, row, table, }) => {
987
1005
  const { getState, options: { editingMode, enableEditing, icons: { EditIcon, MoreHorizIcon }, localization, renderRowActionMenuItems, renderRowActions, }, setEditingRow, } = table;
988
1006
  const { editingRow } = getState();
989
- const [anchorEl, setAnchorEl] = React.useState(null);
1007
+ const [anchorEl, setAnchorEl] = react.useState(null);
990
1008
  const handleOpenRowActionMenu = (event) => {
991
1009
  event.stopPropagation();
992
1010
  event.preventDefault();
@@ -997,16 +1015,10 @@ const MRT_ToggleRowActionMenuButton = ({ cell, row, table, }) => {
997
1015
  setEditingRow(Object.assign({}, row));
998
1016
  setAnchorEl(null);
999
1017
  };
1000
- return (React__default["default"].createElement(React__default["default"].Fragment, null, renderRowActions ? (renderRowActions({ cell, row, table })) : row.id === (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) && editingMode === 'row' ? (React__default["default"].createElement(MRT_EditActionButtons, { row: row, table: table })) : !renderRowActionMenuItems &&
1001
- (enableEditing instanceof Function
1002
- ? enableEditing(row)
1003
- : enableEditing) ? (React__default["default"].createElement(Tooltip__default["default"], { placement: "right", arrow: true, title: localization.edit },
1004
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.edit, sx: commonIconButtonStyles, onClick: handleStartEditMode },
1005
- React__default["default"].createElement(EditIcon, null)))) : renderRowActionMenuItems ? (React__default["default"].createElement(React__default["default"].Fragment, null,
1006
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.rowActions },
1007
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.rowActions, onClick: handleOpenRowActionMenu, size: "small", sx: commonIconButtonStyles },
1008
- React__default["default"].createElement(MoreHorizIcon, null))),
1009
- React__default["default"].createElement(MRT_RowActionMenu, { anchorEl: anchorEl, handleEdit: handleStartEditMode, row: row, setAnchorEl: setAnchorEl, table: table }))) : null));
1018
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: renderRowActions ? (renderRowActions({ cell, row, table })) : row.id === (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) && editingMode === 'row' ? (jsxRuntime.jsx(MRT_EditActionButtons, { row: row, table: table })) : !renderRowActionMenuItems &&
1019
+ (enableEditing instanceof Function
1020
+ ? enableEditing(row)
1021
+ : enableEditing) ? (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ placement: "right", arrow: true, title: localization.edit }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.edit, sx: commonIconButtonStyles, onClick: handleStartEditMode }, { children: jsxRuntime.jsx(EditIcon, {}) })) }))) : renderRowActionMenuItems ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.rowActions }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.rowActions, onClick: handleOpenRowActionMenu, size: "small", sx: commonIconButtonStyles }, { children: jsxRuntime.jsx(MoreHorizIcon, {}) })) })), jsxRuntime.jsx(MRT_RowActionMenu, { anchorEl: anchorEl, handleEdit: handleStartEditMode, row: row, setAnchorEl: setAnchorEl, table: table })] })) : null }));
1010
1022
  };
1011
1023
 
1012
1024
  const MRT_SelectCheckbox = ({ row, selectAll, table }) => {
@@ -1040,11 +1052,11 @@ const MRT_SelectCheckbox = ({ row, selectAll, table }) => {
1040
1052
  }, sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.5rem', width: density === 'compact' ? '1.75rem' : '2.5rem', m: density !== 'compact' ? '-0.4rem' : undefined }, ((checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx) instanceof Function
1041
1053
  ? checkboxProps.sx(theme)
1042
1054
  : checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx))), title: undefined });
1043
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _a !== void 0 ? _a : (selectAll
1055
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _a !== void 0 ? _a : (selectAll
1044
1056
  ? localization.toggleSelectAll
1045
- : localization.toggleSelectRow) }, enableMultiRowSelection === false ? (React__default["default"].createElement(Radio__default["default"], Object.assign({}, commonProps))) : (React__default["default"].createElement(Checkbox__default["default"], Object.assign({ indeterminate: selectAll
1046
- ? table.getIsSomeRowsSelected() && !allRowsSelected
1047
- : row === null || row === void 0 ? void 0 : row.getIsSomeSelected() }, commonProps)))));
1057
+ : localization.toggleSelectRow) }, { children: enableMultiRowSelection === false ? (jsxRuntime.jsx(Radio__default["default"], Object.assign({}, commonProps))) : (jsxRuntime.jsx(Checkbox__default["default"], Object.assign({ indeterminate: selectAll
1058
+ ? table.getIsSomeRowsSelected() && !allRowsSelected
1059
+ : row === null || row === void 0 ? void 0 : row.getIsSomeSelected() }, commonProps))) })));
1048
1060
  };
1049
1061
 
1050
1062
  const MRT_GlobalFilterTextField = ({ table, }) => {
@@ -1054,10 +1066,10 @@ const MRT_GlobalFilterTextField = ({ table, }) => {
1054
1066
  const textFieldProps = muiSearchTextFieldProps instanceof Function
1055
1067
  ? muiSearchTextFieldProps({ table })
1056
1068
  : muiSearchTextFieldProps;
1057
- const isMounted = React.useRef(false);
1058
- const [anchorEl, setAnchorEl] = React.useState(null);
1059
- const [searchValue, setSearchValue] = React.useState(globalFilter !== null && globalFilter !== void 0 ? globalFilter : '');
1060
- const handleChangeDebounced = React.useCallback(utils.debounce((event) => {
1069
+ const isMounted = react.useRef(false);
1070
+ const [anchorEl, setAnchorEl] = react.useState(null);
1071
+ const [searchValue, setSearchValue] = react.useState(globalFilter !== null && globalFilter !== void 0 ? globalFilter : '');
1072
+ const handleChangeDebounced = react.useCallback(utils.debounce((event) => {
1061
1073
  var _a;
1062
1074
  setGlobalFilter((_a = event.target.value) !== null && _a !== void 0 ? _a : undefined);
1063
1075
  }, manualFiltering ? 500 : 250), []);
@@ -1072,7 +1084,7 @@ const MRT_GlobalFilterTextField = ({ table, }) => {
1072
1084
  setSearchValue('');
1073
1085
  setGlobalFilter(undefined);
1074
1086
  };
1075
- React.useEffect(() => {
1087
+ react.useEffect(() => {
1076
1088
  if (isMounted.current) {
1077
1089
  if (globalFilter === undefined) {
1078
1090
  handleClear();
@@ -1083,24 +1095,15 @@ const MRT_GlobalFilterTextField = ({ table, }) => {
1083
1095
  }
1084
1096
  isMounted.current = true;
1085
1097
  }, [globalFilter]);
1086
- return (React__default["default"].createElement(Collapse__default["default"], { in: showGlobalFilter, orientation: "horizontal", unmountOnExit: true, mountOnEnter: true },
1087
- React__default["default"].createElement(TextField__default["default"], Object.assign({ placeholder: localization.search, onChange: handleChange, value: searchValue !== null && searchValue !== void 0 ? searchValue : '', variant: "standard", InputProps: {
1088
- startAdornment: enableGlobalFilterModes ? (React__default["default"].createElement(InputAdornment__default["default"], { position: "start" },
1089
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: localization.changeSearchMode },
1090
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.changeSearchMode, onClick: handleGlobalFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' } },
1091
- React__default["default"].createElement(SearchIcon, null))))) : (React__default["default"].createElement(SearchIcon, { style: { marginRight: '4px' } })),
1092
- endAdornment: (React__default["default"].createElement(InputAdornment__default["default"], { position: "end" },
1093
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: (_a = localization.clearSearch) !== null && _a !== void 0 ? _a : '' },
1094
- React__default["default"].createElement("span", null,
1095
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.clearSearch, disabled: !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length), onClick: handleClear, size: "small" },
1096
- React__default["default"].createElement(CloseIcon, null)))))),
1097
- } }, textFieldProps, { inputRef: (inputRef) => {
1098
- searchInputRef.current = inputRef;
1099
- if (textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.inputRef) {
1100
- textFieldProps.inputRef = inputRef;
1101
- }
1102
- } })),
1103
- React__default["default"].createElement(MRT_FilterOptionMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table, onSelect: handleClear })));
1098
+ return (jsxRuntime.jsxs(Collapse__default["default"], Object.assign({ in: showGlobalFilter, orientation: "horizontal", unmountOnExit: true, mountOnEnter: true }, { children: [jsxRuntime.jsx(TextField__default["default"], Object.assign({ placeholder: localization.search, onChange: handleChange, value: searchValue !== null && searchValue !== void 0 ? searchValue : '', variant: "standard", InputProps: {
1099
+ startAdornment: enableGlobalFilterModes ? (jsxRuntime.jsx(InputAdornment__default["default"], Object.assign({ position: "start" }, { children: jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: localization.changeSearchMode }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.changeSearchMode, onClick: handleGlobalFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' } }, { children: jsxRuntime.jsx(SearchIcon, {}) })) })) }))) : (jsxRuntime.jsx(SearchIcon, { style: { marginRight: '4px' } })),
1100
+ endAdornment: (jsxRuntime.jsx(InputAdornment__default["default"], Object.assign({ position: "end" }, { children: jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: (_a = localization.clearSearch) !== null && _a !== void 0 ? _a : '' }, { children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.clearSearch, disabled: !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length), onClick: handleClear, size: "small" }, { children: jsxRuntime.jsx(CloseIcon, {}) })) }) })) }))),
1101
+ } }, textFieldProps, { inputRef: (inputRef) => {
1102
+ searchInputRef.current = inputRef;
1103
+ if (textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.inputRef) {
1104
+ textFieldProps.inputRef = inputRef;
1105
+ }
1106
+ } })), jsxRuntime.jsx(MRT_FilterOptionMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table, onSelect: handleClear })] })));
1104
1107
  };
1105
1108
 
1106
1109
  const MRT_LinearProgressBar = ({ isTopToolbar, table, }) => {
@@ -1109,13 +1112,12 @@ const MRT_LinearProgressBar = ({ isTopToolbar, table, }) => {
1109
1112
  const linearProgressProps = muiLinearProgressProps instanceof Function
1110
1113
  ? muiLinearProgressProps({ isTopToolbar, table })
1111
1114
  : muiLinearProgressProps;
1112
- return (React__default["default"].createElement(Collapse__default["default"], { in: isLoading || showProgressBars, mountOnEnter: true, unmountOnExit: true, sx: {
1115
+ return (jsxRuntime.jsx(Collapse__default["default"], Object.assign({ in: isLoading || showProgressBars, mountOnEnter: true, unmountOnExit: true, sx: {
1113
1116
  bottom: isTopToolbar ? 0 : undefined,
1114
1117
  position: 'absolute',
1115
1118
  top: !isTopToolbar ? 0 : undefined,
1116
1119
  width: '100%',
1117
- } },
1118
- React__default["default"].createElement(LinearProgress__default["default"], Object.assign({ "aria-label": "Loading", "aria-busy": "true", sx: { position: 'relative' } }, linearProgressProps))));
1120
+ } }, { children: jsxRuntime.jsx(LinearProgress__default["default"], Object.assign({ "aria-label": "Loading", "aria-busy": "true", sx: { position: 'relative' } }, linearProgressProps)) })));
1119
1121
  };
1120
1122
 
1121
1123
  const MRT_TablePagination = ({ table, position = 'bottom', }) => {
@@ -1129,7 +1131,7 @@ const MRT_TablePagination = ({ table, position = 'bottom', }) => {
1129
1131
  const handleChangeRowsPerPage = (event) => {
1130
1132
  setPageSize(+event.target.value);
1131
1133
  };
1132
- return (React__default["default"].createElement(TablePagination__default["default"], Object.assign({ component: "div", count: totalRowCount, getItemAriaLabel: (type) => type === 'first'
1134
+ return (jsxRuntime.jsx(TablePagination__default["default"], Object.assign({ component: "div", count: totalRowCount, getItemAriaLabel: (type) => type === 'first'
1133
1135
  ? localization.goToFirstPage
1134
1136
  : type === 'last'
1135
1137
  ? localization.goToLastPage
@@ -1170,27 +1172,14 @@ const MRT_ToolbarAlertBanner = ({ stackAlertBanner, table, }) => {
1170
1172
  const selectMessage = getSelectedRowModel().rows.length > 0
1171
1173
  ? (_b = (_a = localization.selectedCountOfRowCountRowsSelected) === null || _a === void 0 ? void 0 : _a.replace('{selectedCount}', getSelectedRowModel().rows.length.toString())) === null || _b === void 0 ? void 0 : _b.replace('{rowCount}', (rowCount !== null && rowCount !== void 0 ? rowCount : getPrePaginationRowModel().rows.length).toString())
1172
1174
  : null;
1173
- const groupedByMessage = grouping.length > 0 ? (React__default["default"].createElement("span", null,
1174
- localization.groupedBy,
1175
- ' ',
1176
- grouping.map((columnId, index) => (React__default["default"].createElement(React.Fragment, { key: `${index}-${columnId}` },
1177
- index > 0 ? localization.thenBy : '',
1178
- React__default["default"].createElement(Chip__default["default"], Object.assign({ label: table.getColumn(columnId).columnDef.header, onDelete: () => table.getColumn(columnId).toggleGrouping() }, chipProps))))))) : null;
1179
- return (React__default["default"].createElement(Collapse__default["default"], { in: showAlertBanner || !!selectMessage || !!groupedByMessage, timeout: stackAlertBanner ? 200 : 0 },
1180
- React__default["default"].createElement(Alert__default["default"], Object.assign({ color: "info", icon: false }, alertProps, { sx: (theme) => (Object.assign({ borderRadius: 0, fontSize: '1rem', left: 0, p: 0, position: 'relative', mb: stackAlertBanner
1175
+ const groupedByMessage = grouping.length > 0 ? (jsxRuntime.jsxs("span", { children: [localization.groupedBy, ' ', grouping.map((columnId, index) => (jsxRuntime.jsxs(react.Fragment, { children: [index > 0 ? localization.thenBy : '', jsxRuntime.jsx(Chip__default["default"], Object.assign({ label: table.getColumn(columnId).columnDef.header, onDelete: () => table.getColumn(columnId).toggleGrouping() }, chipProps))] }, `${index}-${columnId}`)))] })) : null;
1176
+ return (jsxRuntime.jsx(Collapse__default["default"], Object.assign({ in: showAlertBanner || !!selectMessage || !!groupedByMessage, timeout: stackAlertBanner ? 200 : 0 }, { children: jsxRuntime.jsxs(Alert__default["default"], Object.assign({ color: "info", icon: false }, alertProps, { sx: (theme) => (Object.assign({ borderRadius: 0, fontSize: '1rem', left: 0, p: 0, position: 'relative', mb: stackAlertBanner
1181
1177
  ? 0
1182
1178
  : positionToolbarAlertBanner === 'bottom'
1183
1179
  ? '-1rem'
1184
1180
  : undefined, right: 0, top: 0, width: '100%', zIndex: 2 }, ((alertProps === null || alertProps === void 0 ? void 0 : alertProps.sx) instanceof Function
1185
1181
  ? alertProps.sx(theme)
1186
- : alertProps === null || alertProps === void 0 ? void 0 : alertProps.sx))) }),
1187
- (alertProps === null || alertProps === void 0 ? void 0 : alertProps.title) && React__default["default"].createElement(AlertTitle__default["default"], null, alertProps.title),
1188
- React__default["default"].createElement(Box__default["default"], { sx: { p: '0.5rem 1rem' } }, alertProps === null || alertProps === void 0 ? void 0 :
1189
- alertProps.children,
1190
- (alertProps === null || alertProps === void 0 ? void 0 : alertProps.children) && (selectMessage || groupedByMessage) && (React__default["default"].createElement("br", null)),
1191
- selectMessage,
1192
- selectMessage && groupedByMessage && React__default["default"].createElement("br", null),
1193
- groupedByMessage))));
1182
+ : alertProps === null || alertProps === void 0 ? void 0 : alertProps.sx))) }, { children: [(alertProps === null || alertProps === void 0 ? void 0 : alertProps.title) && jsxRuntime.jsx(AlertTitle__default["default"], { children: alertProps.title }), jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: { p: '0.5rem 1rem' } }, { children: [alertProps === null || alertProps === void 0 ? void 0 : alertProps.children, (alertProps === null || alertProps === void 0 ? void 0 : alertProps.children) && (selectMessage || groupedByMessage) && (jsxRuntime.jsx("br", {})), selectMessage, selectMessage && groupedByMessage && jsxRuntime.jsx("br", {}), groupedByMessage] }))] })) })));
1194
1183
  };
1195
1184
 
1196
1185
  const MRT_FullScreenToggleButton = (_a) => {
@@ -1201,8 +1190,7 @@ const MRT_FullScreenToggleButton = (_a) => {
1201
1190
  const handleToggleFullScreen = () => {
1202
1191
  setIsFullScreen(!isFullScreen);
1203
1192
  };
1204
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleFullScreen },
1205
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleFullScreen }, rest, { title: undefined }), isFullScreen ? React__default["default"].createElement(FullscreenExitIcon, null) : React__default["default"].createElement(FullscreenIcon, null))));
1193
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleFullScreen }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleFullScreen }, rest, { title: undefined }, { children: isFullScreen ? jsxRuntime.jsx(FullscreenExitIcon, {}) : jsxRuntime.jsx(FullscreenIcon, {}) })) })));
1206
1194
  };
1207
1195
 
1208
1196
  const MRT_ColumnPinningButtons = ({ column, table, }) => {
@@ -1210,26 +1198,17 @@ const MRT_ColumnPinningButtons = ({ column, table, }) => {
1210
1198
  const handlePinColumn = (pinDirection) => {
1211
1199
  column.pin(pinDirection);
1212
1200
  };
1213
- return (React__default["default"].createElement(Box__default["default"], { sx: { minWidth: '70px', textAlign: 'center' } }, column.getIsPinned() ? (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: localization.unpin },
1214
- React__default["default"].createElement(IconButton__default["default"], { onClick: () => handlePinColumn(false), size: "small" },
1215
- React__default["default"].createElement(PushPinIcon, null)))) : (React__default["default"].createElement(React__default["default"].Fragment, null,
1216
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: localization.pinToLeft },
1217
- React__default["default"].createElement(IconButton__default["default"], { onClick: () => handlePinColumn('left'), size: "small" },
1218
- React__default["default"].createElement(PushPinIcon, { style: {
1219
- transform: 'rotate(90deg)',
1220
- } }))),
1221
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: localization.pinToRight },
1222
- React__default["default"].createElement(IconButton__default["default"], { onClick: () => handlePinColumn('right'), size: "small" },
1223
- React__default["default"].createElement(PushPinIcon, { style: {
1224
- transform: 'rotate(-90deg)',
1225
- } })))))));
1201
+ return (jsxRuntime.jsx(Box__default["default"], Object.assign({ sx: { minWidth: '70px', textAlign: 'center' } }, { children: column.getIsPinned() ? (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: localization.unpin }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ onClick: () => handlePinColumn(false), size: "small" }, { children: jsxRuntime.jsx(PushPinIcon, {}) })) }))) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: localization.pinToLeft }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ onClick: () => handlePinColumn('left'), size: "small" }, { children: jsxRuntime.jsx(PushPinIcon, { style: {
1202
+ transform: 'rotate(90deg)',
1203
+ } }) })) })), jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: localization.pinToRight }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ onClick: () => handlePinColumn('right'), size: "small" }, { children: jsxRuntime.jsx(PushPinIcon, { style: {
1204
+ transform: 'rotate(-90deg)',
1205
+ } }) })) }))] })) })));
1226
1206
  };
1227
1207
 
1228
1208
  const MRT_GrabHandleButton = ({ iconButtonProps, onDragEnd, onDragStart, table, }) => {
1229
1209
  var _a;
1230
1210
  const { options: { icons: { DragHandleIcon }, localization, }, } = table;
1231
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : localization.move },
1232
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ disableRipple: true, draggable: "true", size: "small" }, iconButtonProps, { onClick: (e) => {
1211
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : localization.move }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ disableRipple: true, draggable: "true", size: "small" }, iconButtonProps, { onClick: (e) => {
1233
1212
  var _a;
1234
1213
  e.stopPropagation();
1235
1214
  (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, e);
@@ -1240,8 +1219,7 @@ const MRT_GrabHandleButton = ({ iconButtonProps, onDragEnd, onDragStart, table,
1240
1219
  cursor: 'grabbing',
1241
1220
  } }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
1242
1221
  ? iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx(theme)
1243
- : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }),
1244
- React__default["default"].createElement(DragHandleIcon, null))));
1222
+ : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }, { children: jsxRuntime.jsx(DragHandleIcon, {}) })) })));
1245
1223
  };
1246
1224
 
1247
1225
  const MRT_ShowHideColumnsMenuItems = ({ allColumns, hoveredColumn, setHoveredColumn, column, table, }) => {
@@ -1264,8 +1242,8 @@ const MRT_ShowHideColumnsMenuItems = ({ allColumns, hoveredColumn, setHoveredCol
1264
1242
  column.toggleVisibility();
1265
1243
  }
1266
1244
  };
1267
- const menuItemRef = React.useRef(null);
1268
- const [isDragging, setIsDragging] = React.useState(false);
1245
+ const menuItemRef = react.useRef(null);
1246
+ const [isDragging, setIsDragging] = react.useState(false);
1269
1247
  const handleDragStart = (e) => {
1270
1248
  setIsDragging(true);
1271
1249
  e.dataTransfer.setDragImage(menuItemRef.current, 0, 0);
@@ -1282,42 +1260,35 @@ const MRT_ShowHideColumnsMenuItems = ({ allColumns, hoveredColumn, setHoveredCol
1282
1260
  setHoveredColumn(column);
1283
1261
  }
1284
1262
  };
1285
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
1286
- React__default["default"].createElement(MenuItem__default["default"], { disableRipple: true, ref: menuItemRef, onDragEnter: handleDragEnter, sx: (theme) => ({
1287
- alignItems: 'center',
1288
- justifyContent: 'flex-start',
1289
- my: 0,
1290
- opacity: isDragging ? 0.5 : 1,
1291
- outlineOffset: '-2px',
1292
- outline: isDragging
1293
- ? `2px dashed ${theme.palette.divider}`
1294
- : (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id
1295
- ? `2px dashed ${theme.palette.primary.main}`
1296
- : 'none',
1297
- pl: `${(column.depth + 0.5) * 2}rem`,
1298
- py: '6px',
1299
- }) },
1300
- React__default["default"].createElement(Box__default["default"], { sx: {
1301
- display: 'flex',
1302
- flexWrap: 'nowrap',
1303
- gap: '8px',
1304
- } },
1305
- columnDefType !== 'group' &&
1306
- enableColumnOrdering &&
1307
- !allColumns.some((col) => col.columnDef.columnDefType === 'group') &&
1308
- (columnDef.enableColumnOrdering !== false ? (React__default["default"].createElement(MRT_GrabHandleButton, { onDragEnd: handleDragEnd, onDragStart: handleDragStart, table: table })) : (React__default["default"].createElement(Box__default["default"], { sx: { width: '28px' } }))),
1309
- enablePinning &&
1310
- (column.getCanPin() ? (React__default["default"].createElement(MRT_ColumnPinningButtons, { column: column, table: table })) : (React__default["default"].createElement(Box__default["default"], { sx: { width: '70px' } }))),
1311
- enableHiding ? (React__default["default"].createElement(FormControlLabel__default["default"], { componentsProps: {
1312
- typography: {
1313
- sx: {
1314
- mb: 0,
1315
- opacity: columnDefType !== 'display' ? 1 : 0.5,
1316
- },
1317
- },
1318
- }, checked: switchChecked, control: React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.toggleVisibility },
1319
- React__default["default"].createElement(Switch__default["default"], null)), disabled: !column.getCanHide(), label: columnDef.header, onChange: () => handleToggleColumnHidden(column) })) : (React__default["default"].createElement(Typography__default["default"], { sx: { alignSelf: 'center' } }, columnDef.header)))), (_a = column.columns) === null || _a === void 0 ? void 0 :
1320
- _a.map((c, i) => (React__default["default"].createElement(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: c, hoveredColumn: hoveredColumn, key: `${i}-${c.id}`, setHoveredColumn: setHoveredColumn, table: table })))));
1263
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disableRipple: true, ref: menuItemRef, onDragEnter: handleDragEnter, sx: (theme) => ({
1264
+ alignItems: 'center',
1265
+ justifyContent: 'flex-start',
1266
+ my: 0,
1267
+ opacity: isDragging ? 0.5 : 1,
1268
+ outlineOffset: '-2px',
1269
+ outline: isDragging
1270
+ ? `2px dashed ${theme.palette.divider}`
1271
+ : (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id
1272
+ ? `2px dashed ${theme.palette.primary.main}`
1273
+ : 'none',
1274
+ pl: `${(column.depth + 0.5) * 2}rem`,
1275
+ py: '6px',
1276
+ }) }, { children: jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: {
1277
+ display: 'flex',
1278
+ flexWrap: 'nowrap',
1279
+ gap: '8px',
1280
+ } }, { children: [columnDefType !== 'group' &&
1281
+ enableColumnOrdering &&
1282
+ !allColumns.some((col) => col.columnDef.columnDefType === 'group') &&
1283
+ (columnDef.enableColumnOrdering !== false ? (jsxRuntime.jsx(MRT_GrabHandleButton, { onDragEnd: handleDragEnd, onDragStart: handleDragStart, table: table })) : (jsxRuntime.jsx(Box__default["default"], { sx: { width: '28px' } }))), enablePinning &&
1284
+ (column.getCanPin() ? (jsxRuntime.jsx(MRT_ColumnPinningButtons, { column: column, table: table })) : (jsxRuntime.jsx(Box__default["default"], { sx: { width: '70px' } }))), enableHiding ? (jsxRuntime.jsx(FormControlLabel__default["default"], { componentsProps: {
1285
+ typography: {
1286
+ sx: {
1287
+ mb: 0,
1288
+ opacity: columnDefType !== 'display' ? 1 : 0.5,
1289
+ },
1290
+ },
1291
+ }, checked: switchChecked, control: jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.toggleVisibility }, { children: jsxRuntime.jsx(Switch__default["default"], {}) })), disabled: !column.getCanHide(), label: columnDef.header, onChange: () => handleToggleColumnHidden(column) })) : (jsxRuntime.jsx(Typography__default["default"], Object.assign({ sx: { alignSelf: 'center' } }, { children: columnDef.header })))] })) })), (_a = column.columns) === null || _a === void 0 ? void 0 : _a.map((c, i) => (jsxRuntime.jsx(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: c, hoveredColumn: hoveredColumn, setHoveredColumn: setHoveredColumn, table: table }, `${i}-${c.id}`)))] }));
1321
1292
  };
1322
1293
 
1323
1294
  const MRT_ShowHideColumnsMenu = ({ anchorEl, setAnchorEl, table, }) => {
@@ -1328,7 +1299,7 @@ const MRT_ShowHideColumnsMenu = ({ anchorEl, setAnchorEl, table, }) => {
1328
1299
  .filter((col) => col.columnDef.enableHiding !== false)
1329
1300
  .forEach((col) => col.toggleVisibility(false));
1330
1301
  };
1331
- const allColumns = React.useMemo(() => {
1302
+ const allColumns = react.useMemo(() => {
1332
1303
  const columns = getAllColumns();
1333
1304
  if (columnOrder.length > 0 &&
1334
1305
  !columns.some((col) => col.columnDef.columnDefType === 'group')) {
@@ -1347,37 +1318,26 @@ const MRT_ShowHideColumnsMenu = ({ anchorEl, setAnchorEl, table, }) => {
1347
1318
  getLeftLeafColumns(),
1348
1319
  getRightLeafColumns(),
1349
1320
  ]);
1350
- const [hoveredColumn, setHoveredColumn] = React.useState(null);
1351
- return (React__default["default"].createElement(Menu__default["default"], { anchorEl: anchorEl, open: !!anchorEl, onClose: () => setAnchorEl(null), MenuListProps: {
1321
+ const [hoveredColumn, setHoveredColumn] = react.useState(null);
1322
+ return (jsxRuntime.jsxs(Menu__default["default"], Object.assign({ anchorEl: anchorEl, open: !!anchorEl, onClose: () => setAnchorEl(null), MenuListProps: {
1352
1323
  dense: density === 'compact',
1353
- } },
1354
- React__default["default"].createElement(Box__default["default"], { sx: {
1355
- display: 'flex',
1356
- justifyContent: 'space-between',
1357
- p: '0.5rem',
1358
- pt: 0,
1359
- } },
1360
- enableHiding && (React__default["default"].createElement(Button__default["default"], { disabled: !getIsSomeColumnsVisible(), onClick: hideAllColumns }, localization.hideAll)),
1361
- enableColumnOrdering && (React__default["default"].createElement(Button__default["default"], { onClick: () => table.setColumnOrder(getDefaultColumnOrderIds(table.options)) }, localization.resetOrder)),
1362
- enablePinning && (React__default["default"].createElement(Button__default["default"], { disabled: !getIsSomeColumnsPinned(), onClick: () => table.resetColumnPinning(true) }, localization.unpinAll)),
1363
- enableHiding && (React__default["default"].createElement(Button__default["default"], { disabled: getIsAllColumnsVisible(), onClick: () => toggleAllColumnsVisible(true) }, localization.showAll))),
1364
- React__default["default"].createElement(Divider__default["default"], null),
1365
- allColumns.map((column, index) => (React__default["default"].createElement(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: column, hoveredColumn: hoveredColumn, key: `${index}-${column.id}`, setHoveredColumn: setHoveredColumn, table: table })))));
1324
+ } }, { children: [jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: {
1325
+ display: 'flex',
1326
+ justifyContent: 'space-between',
1327
+ p: '0.5rem',
1328
+ pt: 0,
1329
+ } }, { children: [enableHiding && (jsxRuntime.jsx(Button__default["default"], Object.assign({ disabled: !getIsSomeColumnsVisible(), onClick: hideAllColumns }, { children: localization.hideAll }))), enableColumnOrdering && (jsxRuntime.jsx(Button__default["default"], Object.assign({ onClick: () => table.setColumnOrder(getDefaultColumnOrderIds(table.options)) }, { children: localization.resetOrder }))), enablePinning && (jsxRuntime.jsx(Button__default["default"], Object.assign({ disabled: !getIsSomeColumnsPinned(), onClick: () => table.resetColumnPinning(true) }, { children: localization.unpinAll }))), enableHiding && (jsxRuntime.jsx(Button__default["default"], Object.assign({ disabled: getIsAllColumnsVisible(), onClick: () => toggleAllColumnsVisible(true) }, { children: localization.showAll })))] })), jsxRuntime.jsx(Divider__default["default"], {}), allColumns.map((column, index) => (jsxRuntime.jsx(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: column, hoveredColumn: hoveredColumn, setHoveredColumn: setHoveredColumn, table: table }, `${index}-${column.id}`)))] })));
1366
1330
  };
1367
1331
 
1368
1332
  const MRT_ShowHideColumnsButton = (_a) => {
1369
1333
  var _b;
1370
1334
  var { table } = _a, rest = __rest(_a, ["table"]);
1371
1335
  const { options: { icons: { ViewColumnIcon }, localization, }, } = table;
1372
- const [anchorEl, setAnchorEl] = React.useState(null);
1336
+ const [anchorEl, setAnchorEl] = react.useState(null);
1373
1337
  const handleClick = (event) => {
1374
1338
  setAnchorEl(event.currentTarget);
1375
1339
  };
1376
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
1377
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideColumns },
1378
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": localization.showHideColumns, onClick: handleClick }, rest, { title: undefined }),
1379
- React__default["default"].createElement(ViewColumnIcon, null))),
1380
- anchorEl && (React__default["default"].createElement(MRT_ShowHideColumnsMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table }))));
1340
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideColumns }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.showHideColumns, onClick: handleClick }, rest, { title: undefined }, { children: jsxRuntime.jsx(ViewColumnIcon, {}) })) })), anchorEl && (jsxRuntime.jsx(MRT_ShowHideColumnsMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table }))] }));
1381
1341
  };
1382
1342
 
1383
1343
  const MRT_ToggleDensePaddingButton = (_a) => {
@@ -1393,8 +1353,7 @@ const MRT_ToggleDensePaddingButton = (_a) => {
1393
1353
  : 'comfortable';
1394
1354
  setDensity(nextDensity);
1395
1355
  };
1396
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleDensity },
1397
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": localization.toggleDensity, onClick: handleToggleDensePadding }, rest, { title: undefined }), density === 'compact' ? (React__default["default"].createElement(DensitySmallIcon, null)) : density === 'comfortable' ? (React__default["default"].createElement(DensityMediumIcon, null)) : (React__default["default"].createElement(DensityLargeIcon, null)))));
1356
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleDensity }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.toggleDensity, onClick: handleToggleDensePadding }, rest, { title: undefined }, { children: density === 'compact' ? (jsxRuntime.jsx(DensitySmallIcon, {})) : density === 'comfortable' ? (jsxRuntime.jsx(DensityMediumIcon, {})) : (jsxRuntime.jsx(DensityLargeIcon, {})) })) })));
1398
1357
  };
1399
1358
 
1400
1359
  const MRT_ToggleFiltersButton = (_a) => {
@@ -1405,8 +1364,7 @@ const MRT_ToggleFiltersButton = (_a) => {
1405
1364
  const handleToggleShowFilters = () => {
1406
1365
  setShowColumnFilters(!showColumnFilters);
1407
1366
  };
1408
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideFilters },
1409
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleShowFilters }, rest, { title: undefined }), showColumnFilters ? React__default["default"].createElement(FilterListOffIcon, null) : React__default["default"].createElement(FilterListIcon, null))));
1367
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideFilters }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleShowFilters }, rest, { title: undefined }, { children: showColumnFilters ? jsxRuntime.jsx(FilterListOffIcon, {}) : jsxRuntime.jsx(FilterListIcon, {}) })) })));
1410
1368
  };
1411
1369
 
1412
1370
  const MRT_ToggleGlobalFilterButton = (_a) => {
@@ -1418,27 +1376,21 @@ const MRT_ToggleGlobalFilterButton = (_a) => {
1418
1376
  setShowGlobalFilter(!showGlobalFilter);
1419
1377
  queueMicrotask(() => { var _a; return (_a = searchInputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
1420
1378
  };
1421
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideSearch },
1422
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": (_c = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _c !== void 0 ? _c : localization.showHideSearch, disabled: !!globalFilter, onClick: handleToggleSearch }, rest, { title: undefined }), showGlobalFilter ? React__default["default"].createElement(SearchOffIcon, null) : React__default["default"].createElement(SearchIcon, null))));
1379
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideSearch }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": (_c = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _c !== void 0 ? _c : localization.showHideSearch, disabled: !!globalFilter, onClick: handleToggleSearch }, rest, { title: undefined }, { children: showGlobalFilter ? jsxRuntime.jsx(SearchOffIcon, {}) : jsxRuntime.jsx(SearchIcon, {}) })) })));
1423
1380
  };
1424
1381
 
1425
1382
  const MRT_ToolbarInternalButtons = ({ table, }) => {
1426
1383
  var _a;
1427
1384
  const { options: { enableColumnFilters, enableColumnOrdering, enableDensityToggle, enableFilters, enableFullScreenToggle, enableGlobalFilter, enableHiding, enablePinning, initialState, renderToolbarInternalActions, }, } = table;
1428
- return (React__default["default"].createElement(Box__default["default"], { sx: {
1385
+ return (jsxRuntime.jsx(Box__default["default"], Object.assign({ sx: {
1429
1386
  alignItems: 'center',
1430
1387
  display: 'flex',
1431
1388
  zIndex: 3,
1432
- } }, (_a = renderToolbarInternalActions === null || renderToolbarInternalActions === void 0 ? void 0 : renderToolbarInternalActions({
1433
- table,
1434
- })) !== null && _a !== void 0 ? _a : (React__default["default"].createElement(React__default["default"].Fragment, null,
1435
- enableFilters &&
1436
- enableGlobalFilter &&
1437
- !(initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) && (React__default["default"].createElement(MRT_ToggleGlobalFilterButton, { table: table })),
1438
- enableFilters && enableColumnFilters && (React__default["default"].createElement(MRT_ToggleFiltersButton, { table: table })),
1439
- (enableHiding || enableColumnOrdering || enablePinning) && (React__default["default"].createElement(MRT_ShowHideColumnsButton, { table: table })),
1440
- enableDensityToggle && (React__default["default"].createElement(MRT_ToggleDensePaddingButton, { table: table })),
1441
- enableFullScreenToggle && (React__default["default"].createElement(MRT_FullScreenToggleButton, { table: table }))))));
1389
+ } }, { children: (_a = renderToolbarInternalActions === null || renderToolbarInternalActions === void 0 ? void 0 : renderToolbarInternalActions({
1390
+ table,
1391
+ })) !== null && _a !== void 0 ? _a : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [enableFilters &&
1392
+ enableGlobalFilter &&
1393
+ !(initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) && (jsxRuntime.jsx(MRT_ToggleGlobalFilterButton, { table: table })), enableFilters && enableColumnFilters && (jsxRuntime.jsx(MRT_ToggleFiltersButton, { table: table })), (enableHiding || enableColumnOrdering || enablePinning) && (jsxRuntime.jsx(MRT_ShowHideColumnsButton, { table: table })), enableDensityToggle && (jsxRuntime.jsx(MRT_ToggleDensePaddingButton, { table: table })), enableFullScreenToggle && (jsxRuntime.jsx(MRT_FullScreenToggleButton, { table: table }))] })) })));
1442
1394
  };
1443
1395
 
1444
1396
  const MRT_ToolbarDropZone = ({ table, }) => {
@@ -1448,7 +1400,7 @@ const MRT_ToolbarDropZone = ({ table, }) => {
1448
1400
  const handleDragEnter = (_event) => {
1449
1401
  setHoveredColumn({ id: 'drop-zone' });
1450
1402
  };
1451
- React.useEffect(() => {
1403
+ react.useEffect(() => {
1452
1404
  var _a;
1453
1405
  if (((_a = table.options.state) === null || _a === void 0 ? void 0 : _a.showToolbarDropZone) !== undefined) {
1454
1406
  setShowToolbarDropZone(!!enableGrouping &&
@@ -1457,8 +1409,7 @@ const MRT_ToolbarDropZone = ({ table, }) => {
1457
1409
  !grouping.includes(draggingColumn.id));
1458
1410
  }
1459
1411
  }, [enableGrouping, draggingColumn, grouping]);
1460
- return (React__default["default"].createElement(Fade__default["default"], { in: showToolbarDropZone },
1461
- React__default["default"].createElement(Box__default["default"], { className: "Mui-ToolbarDropZone", sx: (theme) => ({
1412
+ return (jsxRuntime.jsx(Fade__default["default"], Object.assign({ in: showToolbarDropZone }, { children: jsxRuntime.jsx(Box__default["default"], Object.assign({ className: "Mui-ToolbarDropZone", sx: (theme) => ({
1462
1413
  alignItems: 'center',
1463
1414
  backgroundColor: styles.alpha(theme.palette.info.main, (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === 'drop-zone' ? 0.2 : 0.1),
1464
1415
  backdropFilter: 'blur(4px)',
@@ -1470,8 +1421,7 @@ const MRT_ToolbarDropZone = ({ table, }) => {
1470
1421
  position: 'absolute',
1471
1422
  width: '100%',
1472
1423
  zIndex: 4,
1473
- }), onDragEnter: handleDragEnter },
1474
- React__default["default"].createElement(Typography__default["default"], { fontStyle: "italic" }, localization.dropToGroupBy.replace('{column}', (_b = (_a = draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.columnDef) === null || _a === void 0 ? void 0 : _a.header) !== null && _b !== void 0 ? _b : '')))));
1424
+ }), onDragEnter: handleDragEnter }, { children: jsxRuntime.jsx(Typography__default["default"], Object.assign({ fontStyle: "italic" }, { children: localization.dropToGroupBy.replace('{column}', (_b = (_a = draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.columnDef) === null || _a === void 0 ? void 0 : _a.header) !== null && _b !== void 0 ? _b : '') })) })) })));
1475
1425
  };
1476
1426
 
1477
1427
  const commonToolbarStyles = ({ theme }) => ({
@@ -1495,7 +1445,7 @@ const MRT_TopToolbar = ({ table, }) => {
1495
1445
  ? muiTopToolbarProps({ table })
1496
1446
  : muiTopToolbarProps;
1497
1447
  const stackAlertBanner = isMobile || !!renderTopToolbarCustomActions || showGlobalFilter;
1498
- return (React__default["default"].createElement(Toolbar__default["default"], Object.assign({ variant: "dense" }, toolbarProps, { ref: (ref) => {
1448
+ return (jsxRuntime.jsxs(Toolbar__default["default"], Object.assign({ variant: "dense" }, toolbarProps, { ref: (ref) => {
1499
1449
  topToolbarRef.current = ref;
1500
1450
  if (toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.ref) {
1501
1451
  // @ts-ignore
@@ -1503,32 +1453,23 @@ const MRT_TopToolbar = ({ table, }) => {
1503
1453
  }
1504
1454
  }, sx: (theme) => (Object.assign(Object.assign({ position: isFullScreen ? 'sticky' : undefined, top: isFullScreen ? '0' : undefined }, commonToolbarStyles({ theme })), ((toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx) instanceof Function
1505
1455
  ? toolbarProps.sx(theme)
1506
- : toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx))) }),
1507
- positionToolbarAlertBanner === 'top' && (React__default["default"].createElement(MRT_ToolbarAlertBanner, { stackAlertBanner: stackAlertBanner, table: table })),
1508
- ['both', 'top'].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : '') && (React__default["default"].createElement(MRT_ToolbarDropZone, { table: table })),
1509
- React__default["default"].createElement(Box__default["default"], { sx: {
1510
- alignItems: 'flex-start',
1511
- boxSizing: 'border-box',
1512
- display: 'flex',
1513
- justifyContent: 'space-between',
1514
- p: '0.5rem',
1515
- position: stackAlertBanner ? 'relative' : 'absolute',
1516
- right: 0,
1517
- top: 0,
1518
- width: '100%',
1519
- } },
1520
- enableGlobalFilter && positionGlobalFilter === 'left' && (React__default["default"].createElement(MRT_GlobalFilterTextField, { table: table })), (_a = renderTopToolbarCustomActions === null || renderTopToolbarCustomActions === void 0 ? void 0 : renderTopToolbarCustomActions({ table })) !== null && _a !== void 0 ? _a : React__default["default"].createElement("span", null),
1521
- enableToolbarInternalActions ? (React__default["default"].createElement(Box__default["default"], { sx: {
1456
+ : toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx))) }, { children: [positionToolbarAlertBanner === 'top' && (jsxRuntime.jsx(MRT_ToolbarAlertBanner, { stackAlertBanner: stackAlertBanner, table: table })), ['both', 'top'].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : '') && (jsxRuntime.jsx(MRT_ToolbarDropZone, { table: table })), jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: {
1457
+ alignItems: 'flex-start',
1458
+ boxSizing: 'border-box',
1522
1459
  display: 'flex',
1523
- flexWrap: 'wrap-reverse',
1524
- justifyContent: 'flex-end',
1525
- } },
1526
- enableGlobalFilter && positionGlobalFilter === 'right' && (React__default["default"].createElement(MRT_GlobalFilterTextField, { table: table })),
1527
- React__default["default"].createElement(MRT_ToolbarInternalButtons, { table: table }))) : (enableGlobalFilter &&
1528
- positionGlobalFilter === 'right' && (React__default["default"].createElement(MRT_GlobalFilterTextField, { table: table })))),
1529
- enablePagination &&
1530
- ['top', 'both'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (React__default["default"].createElement(MRT_TablePagination, { table: table, position: "top" })),
1531
- React__default["default"].createElement(MRT_LinearProgressBar, { isTopToolbar: true, table: table })));
1460
+ justifyContent: 'space-between',
1461
+ p: '0.5rem',
1462
+ position: stackAlertBanner ? 'relative' : 'absolute',
1463
+ right: 0,
1464
+ top: 0,
1465
+ width: '100%',
1466
+ } }, { children: [enableGlobalFilter && positionGlobalFilter === 'left' && (jsxRuntime.jsx(MRT_GlobalFilterTextField, { table: table })), (_a = renderTopToolbarCustomActions === null || renderTopToolbarCustomActions === void 0 ? void 0 : renderTopToolbarCustomActions({ table })) !== null && _a !== void 0 ? _a : jsxRuntime.jsx("span", {}), enableToolbarInternalActions ? (jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: {
1467
+ display: 'flex',
1468
+ flexWrap: 'wrap-reverse',
1469
+ justifyContent: 'flex-end',
1470
+ } }, { children: [enableGlobalFilter && positionGlobalFilter === 'right' && (jsxRuntime.jsx(MRT_GlobalFilterTextField, { table: table })), jsxRuntime.jsx(MRT_ToolbarInternalButtons, { table: table })] }))) : (enableGlobalFilter &&
1471
+ positionGlobalFilter === 'right' && (jsxRuntime.jsx(MRT_GlobalFilterTextField, { table: table })))] })), enablePagination &&
1472
+ ['top', 'both'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (jsxRuntime.jsx(MRT_TablePagination, { table: table, position: "top" })), jsxRuntime.jsx(MRT_LinearProgressBar, { isTopToolbar: true, table: table })] })));
1532
1473
  };
1533
1474
 
1534
1475
  const MRT_BottomToolbar = ({ table, }) => {
@@ -1539,7 +1480,7 @@ const MRT_BottomToolbar = ({ table, }) => {
1539
1480
  ? muiBottomToolbarProps({ table })
1540
1481
  : muiBottomToolbarProps;
1541
1482
  const stackAlertBanner = isMobile || !!renderBottomToolbarCustomActions;
1542
- return (React__default["default"].createElement(Toolbar__default["default"], Object.assign({ variant: "dense" }, toolbarProps, { ref: (node) => {
1483
+ return (jsxRuntime.jsxs(Toolbar__default["default"], Object.assign({ variant: "dense" }, toolbarProps, { ref: (node) => {
1543
1484
  if (node) {
1544
1485
  bottomToolbarRef.current = node;
1545
1486
  if (toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.ref) {
@@ -1549,27 +1490,21 @@ const MRT_BottomToolbar = ({ table, }) => {
1549
1490
  }
1550
1491
  }, sx: (theme) => (Object.assign(Object.assign(Object.assign({}, commonToolbarStyles({ theme })), { bottom: isFullScreen ? '0' : undefined, boxShadow: `0 1px 2px -1px ${styles.alpha(theme.palette.common.black, 0.1)} inset`, left: 0, position: isFullScreen ? 'fixed' : 'relative', right: 0 }), ((toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx) instanceof Function
1551
1492
  ? toolbarProps.sx(theme)
1552
- : toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx))) }),
1553
- React__default["default"].createElement(MRT_LinearProgressBar, { isTopToolbar: false, table: table }),
1554
- positionToolbarAlertBanner === 'bottom' && (React__default["default"].createElement(MRT_ToolbarAlertBanner, { stackAlertBanner: stackAlertBanner, table: table })),
1555
- ['both', 'bottom'].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : '') && (React__default["default"].createElement(MRT_ToolbarDropZone, { table: table })),
1556
- React__default["default"].createElement(Box__default["default"], { sx: {
1557
- alignItems: 'center',
1558
- boxSizing: 'border-box',
1559
- display: 'flex',
1560
- justifyContent: 'space-between',
1561
- p: '0.5rem',
1562
- width: '100%',
1563
- } },
1564
- renderBottomToolbarCustomActions ? (renderBottomToolbarCustomActions({ table })) : (React__default["default"].createElement("span", null)),
1565
- React__default["default"].createElement(Box__default["default"], { sx: {
1493
+ : toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx))) }, { children: [jsxRuntime.jsx(MRT_LinearProgressBar, { isTopToolbar: false, table: table }), positionToolbarAlertBanner === 'bottom' && (jsxRuntime.jsx(MRT_ToolbarAlertBanner, { stackAlertBanner: stackAlertBanner, table: table })), ['both', 'bottom'].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : '') && (jsxRuntime.jsx(MRT_ToolbarDropZone, { table: table })), jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: {
1494
+ alignItems: 'center',
1495
+ boxSizing: 'border-box',
1566
1496
  display: 'flex',
1567
- justifyContent: 'flex-end',
1568
- position: stackAlertBanner ? 'relative' : 'absolute',
1569
- right: 0,
1570
- top: 0,
1571
- } }, enablePagination &&
1572
- ['bottom', 'both'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (React__default["default"].createElement(MRT_TablePagination, { table: table, position: "bottom" }))))));
1497
+ justifyContent: 'space-between',
1498
+ p: '0.5rem',
1499
+ width: '100%',
1500
+ } }, { children: [renderBottomToolbarCustomActions ? (renderBottomToolbarCustomActions({ table })) : (jsxRuntime.jsx("span", {})), jsxRuntime.jsx(Box__default["default"], Object.assign({ sx: {
1501
+ display: 'flex',
1502
+ justifyContent: 'flex-end',
1503
+ position: stackAlertBanner ? 'relative' : 'absolute',
1504
+ right: 0,
1505
+ top: 0,
1506
+ } }, { children: enablePagination &&
1507
+ ['bottom', 'both'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (jsxRuntime.jsx(MRT_TablePagination, { table: table, position: "bottom" })) }))] }))] })));
1573
1508
  };
1574
1509
 
1575
1510
  const MRT_TableHeadCellColumnActionsButton = ({ header, table, }) => {
@@ -1577,7 +1512,7 @@ const MRT_TableHeadCellColumnActionsButton = ({ header, table, }) => {
1577
1512
  const { options: { icons: { MoreVertIcon }, localization, muiTableHeadCellColumnActionsButtonProps, }, } = table;
1578
1513
  const { column } = header;
1579
1514
  const { columnDef } = column;
1580
- const [anchorEl, setAnchorEl] = React.useState(null);
1515
+ const [anchorEl, setAnchorEl] = react.useState(null);
1581
1516
  const handleClick = (event) => {
1582
1517
  event.stopPropagation();
1583
1518
  event.preventDefault();
@@ -1593,15 +1528,11 @@ const MRT_TableHeadCellColumnActionsButton = ({ header, table, }) => {
1593
1528
  })
1594
1529
  : columnDef.muiTableHeadCellColumnActionsButtonProps;
1595
1530
  const iconButtonProps = Object.assign(Object.assign({}, mTableHeadCellColumnActionsButtonProps), mcTableHeadCellColumnActionsButtonProps);
1596
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
1597
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : localization.columnActions },
1598
- React__default["default"].createElement(IconButton__default["default"], Object.assign({ "aria-label": localization.columnActions, onClick: handleClick, size: "small" }, iconButtonProps, { sx: (theme) => (Object.assign({ height: '2rem', m: '-8px -4px', opacity: 0.5, transform: 'scale(0.85) translateX(-4px)', transition: 'opacity 150ms', width: '2rem', '&:hover': {
1599
- opacity: 1,
1600
- } }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
1601
- ? iconButtonProps.sx(theme)
1602
- : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }),
1603
- React__default["default"].createElement(MoreVertIcon, null))),
1604
- anchorEl && (React__default["default"].createElement(MRT_ColumnActionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table }))));
1531
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : localization.columnActions }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.columnActions, onClick: handleClick, size: "small" }, iconButtonProps, { sx: (theme) => (Object.assign({ height: '2rem', m: '-8px -4px', opacity: 0.5, transform: 'scale(0.85) translateX(-4px)', transition: 'opacity 150ms', width: '2rem', '&:hover': {
1532
+ opacity: 1,
1533
+ } }, ((iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx) instanceof Function
1534
+ ? iconButtonProps.sx(theme)
1535
+ : iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx))), title: undefined }, { children: jsxRuntime.jsx(MoreVertIcon, {}) })) })), anchorEl && (jsxRuntime.jsx(MRT_ColumnActionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table }))] }));
1605
1536
  };
1606
1537
 
1607
1538
  const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
@@ -1648,8 +1579,8 @@ const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
1648
1579
  !rangeFilterIndex &&
1649
1580
  (allowedColumnFilterOptions === undefined ||
1650
1581
  !!(allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.length));
1651
- const [anchorEl, setAnchorEl] = React.useState(null);
1652
- const [filterValue, setFilterValue] = React.useState(() => {
1582
+ const [anchorEl, setAnchorEl] = react.useState(null);
1583
+ const [filterValue, setFilterValue] = react.useState(() => {
1653
1584
  var _a, _b;
1654
1585
  return isMultiSelectFilter
1655
1586
  ? column.getFilterValue() || []
@@ -1657,7 +1588,7 @@ const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
1657
1588
  ? ((_a = column.getFilterValue()) === null || _a === void 0 ? void 0 : _a[rangeFilterIndex]) || []
1658
1589
  : (_b = column.getFilterValue()) !== null && _b !== void 0 ? _b : '';
1659
1590
  });
1660
- const handleChangeDebounced = React.useCallback(utils.debounce((event) => {
1591
+ const handleChangeDebounced = react.useCallback(utils.debounce((event) => {
1661
1592
  const value = textFieldProps.type === 'date'
1662
1593
  ? event.target.valueAsDate
1663
1594
  : textFieldProps.type === 'number'
@@ -1707,8 +1638,8 @@ const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
1707
1638
  const handleFilterMenuOpen = (event) => {
1708
1639
  setAnchorEl(event.currentTarget);
1709
1640
  };
1710
- const isMounted = React.useRef(false);
1711
- React.useEffect(() => {
1641
+ const isMounted = react.useRef(false);
1642
+ react.useEffect(() => {
1712
1643
  if (isMounted.current) {
1713
1644
  const filterValue = column.getFilterValue();
1714
1645
  if (filterValue === undefined) {
@@ -1724,100 +1655,83 @@ const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
1724
1655
  isMounted.current = true;
1725
1656
  }, [column.getFilterValue()]);
1726
1657
  if (columnDef.Filter) {
1727
- return (React__default["default"].createElement(React__default["default"].Fragment, null, (_f = columnDef.Filter) === null || _f === void 0 ? void 0 : _f.call(columnDef, { column, header, rangeFilterIndex, table })));
1658
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: (_f = columnDef.Filter) === null || _f === void 0 ? void 0 : _f.call(columnDef, { column, header, rangeFilterIndex, table }) }));
1728
1659
  }
1729
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
1730
- React__default["default"].createElement(TextField__default["default"], Object.assign({ fullWidth: true, inputProps: {
1731
- disabled: !!filterChipLabel,
1732
- sx: {
1733
- textOverflow: 'ellipsis',
1734
- width: filterChipLabel ? 0 : undefined,
1735
- },
1736
- title: filterPlaceholder,
1737
- }, helperText: showChangeModeButton ? (React__default["default"].createElement("label", null, localization.filterMode.replace('{filterType}',
1738
- // @ts-ignore
1739
- localization[`filter${((_g = currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.charAt(0)) === null || _g === void 0 ? void 0 : _g.toUpperCase()) +
1740
- (currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.slice(1))}`]))) : null, FormHelperTextProps: {
1741
- sx: {
1742
- fontSize: '0.75rem',
1743
- lineHeight: '0.8rem',
1744
- whiteSpace: 'nowrap',
1745
- },
1746
- }, margin: "none", placeholder: filterChipLabel || isSelectFilter || isMultiSelectFilter
1747
- ? undefined
1748
- : filterPlaceholder, onChange: handleChange, onClick: (e) => e.stopPropagation(), select: isSelectFilter || isMultiSelectFilter, value: filterValue !== null && filterValue !== void 0 ? filterValue : '', variant: "standard", InputProps: {
1749
- startAdornment: showChangeModeButton ? (React__default["default"].createElement(InputAdornment__default["default"], { position: "start" },
1750
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, title: localization.changeFilterMode },
1751
- React__default["default"].createElement("span", null,
1752
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.changeFilterMode, onClick: handleFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' } },
1753
- React__default["default"].createElement(FilterListIcon, null)))),
1754
- filterChipLabel && (React__default["default"].createElement(Chip__default["default"], { onDelete: handleClearEmptyFilterChip, label: filterChipLabel })))) : null,
1755
- endAdornment: !filterChipLabel && (React__default["default"].createElement(InputAdornment__default["default"], { position: "end" },
1756
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, placement: "right", title: (_h = localization.clearFilter) !== null && _h !== void 0 ? _h : '' },
1757
- React__default["default"].createElement("span", null,
1758
- React__default["default"].createElement(IconButton__default["default"], { "aria-label": localization.clearFilter, disabled: !((_j = filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString()) === null || _j === void 0 ? void 0 : _j.length), onClick: handleClear, size: "small", sx: {
1759
- height: '1.75rem',
1760
- width: '1.75rem',
1761
- } },
1762
- React__default["default"].createElement(CloseIcon, null)))))),
1763
- }, SelectProps: {
1764
- displayEmpty: true,
1765
- multiple: isMultiSelectFilter,
1766
- renderValue: isMultiSelectFilter
1767
- ? (selected) => !(selected === null || selected === void 0 ? void 0 : selected.length) ? (React__default["default"].createElement(Box__default["default"], { sx: { opacity: 0.5 } }, filterPlaceholder)) : (React__default["default"].createElement(Box__default["default"], { sx: { display: 'flex', flexWrap: 'wrap', gap: '2px' } }, selected === null || selected === void 0 ? void 0 : selected.map((value) => {
1660
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(TextField__default["default"], Object.assign({ fullWidth: true, inputProps: {
1661
+ disabled: !!filterChipLabel,
1662
+ sx: {
1663
+ textOverflow: 'ellipsis',
1664
+ width: filterChipLabel ? 0 : undefined,
1665
+ },
1666
+ title: filterPlaceholder,
1667
+ }, helperText: showChangeModeButton ? (jsxRuntime.jsx("label", { children: localization.filterMode.replace('{filterType}',
1668
+ // @ts-ignore
1669
+ localization[`filter${((_g = currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.charAt(0)) === null || _g === void 0 ? void 0 : _g.toUpperCase()) +
1670
+ (currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.slice(1))}`]) })) : null, FormHelperTextProps: {
1671
+ sx: {
1672
+ fontSize: '0.75rem',
1673
+ lineHeight: '0.8rem',
1674
+ whiteSpace: 'nowrap',
1675
+ },
1676
+ }, margin: "none", placeholder: filterChipLabel || isSelectFilter || isMultiSelectFilter
1677
+ ? undefined
1678
+ : filterPlaceholder, onChange: handleChange, onClick: (e) => e.stopPropagation(), select: isSelectFilter || isMultiSelectFilter, value: filterValue !== null && filterValue !== void 0 ? filterValue : '', variant: "standard", InputProps: {
1679
+ startAdornment: showChangeModeButton ? (jsxRuntime.jsxs(InputAdornment__default["default"], Object.assign({ position: "start" }, { children: [jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, title: localization.changeFilterMode }, { children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.changeFilterMode, onClick: handleFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' } }, { children: jsxRuntime.jsx(FilterListIcon, {}) })) }) })), filterChipLabel && (jsxRuntime.jsx(Chip__default["default"], { onDelete: handleClearEmptyFilterChip, label: filterChipLabel }))] }))) : null,
1680
+ endAdornment: !filterChipLabel && (jsxRuntime.jsx(InputAdornment__default["default"], Object.assign({ position: "end" }, { children: jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, placement: "right", title: (_h = localization.clearFilter) !== null && _h !== void 0 ? _h : '' }, { children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.clearFilter, disabled: !((_j = filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString()) === null || _j === void 0 ? void 0 : _j.length), onClick: handleClear, size: "small", sx: {
1681
+ height: '1.75rem',
1682
+ width: '1.75rem',
1683
+ } }, { children: jsxRuntime.jsx(CloseIcon, {}) })) }) })) }))),
1684
+ }, SelectProps: {
1685
+ displayEmpty: true,
1686
+ multiple: isMultiSelectFilter,
1687
+ renderValue: isMultiSelectFilter
1688
+ ? (selected) => !(selected === null || selected === void 0 ? void 0 : selected.length) ? (jsxRuntime.jsx(Box__default["default"], Object.assign({ sx: { opacity: 0.5 } }, { children: filterPlaceholder }))) : (jsxRuntime.jsx(Box__default["default"], Object.assign({ sx: { display: 'flex', flexWrap: 'wrap', gap: '2px' } }, { children: selected === null || selected === void 0 ? void 0 : selected.map((value) => {
1689
+ var _a;
1690
+ const selectedValue = (_a = columnDef.filterSelectOptions) === null || _a === void 0 ? void 0 : _a.find((option) => option instanceof Object
1691
+ ? option.value === value
1692
+ : option === value);
1693
+ return (jsxRuntime.jsx(Chip__default["default"], { label: selectedValue instanceof Object
1694
+ ? selectedValue.text
1695
+ : selectedValue }, value));
1696
+ }) })))
1697
+ : undefined,
1698
+ } }, textFieldProps, { inputRef: (inputRef) => {
1699
+ filterInputRefs.current[`${column.id}-${rangeFilterIndex !== null && rangeFilterIndex !== void 0 ? rangeFilterIndex : 0}`] =
1700
+ inputRef;
1701
+ if (textFieldProps.inputRef) {
1702
+ textFieldProps.inputRef = inputRef;
1703
+ }
1704
+ }, sx: (theme) => (Object.assign({ p: 0, minWidth: isRangeFilter
1705
+ ? '100px'
1706
+ : !filterChipLabel
1707
+ ? '120px'
1708
+ : 'auto', width: 'calc(100% + 4px)', mx: '-2px', '& .MuiSelect-icon': {
1709
+ mr: '1.5rem',
1710
+ } }, ((textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.sx) instanceof Function
1711
+ ? textFieldProps.sx(theme)
1712
+ : textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.sx))) }, { children: [(isSelectFilter || isMultiSelectFilter) && (jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ divider: true, disabled: true, hidden: true, value: "" }, { children: jsxRuntime.jsx(Box__default["default"], Object.assign({ sx: { opacity: 0.5 } }, { children: filterPlaceholder })) }))), (_k = textFieldProps.children) !== null && _k !== void 0 ? _k : (_l = columnDef === null || columnDef === void 0 ? void 0 : columnDef.filterSelectOptions) === null || _l === void 0 ? void 0 : _l.map((option) => {
1768
1713
  var _a;
1769
- const selectedValue = (_a = columnDef.filterSelectOptions) === null || _a === void 0 ? void 0 : _a.find((option) => option instanceof Object
1770
- ? option.value === value
1771
- : option === value);
1772
- return (React__default["default"].createElement(Chip__default["default"], { key: value, label: selectedValue instanceof Object
1773
- ? selectedValue.text
1774
- : selectedValue }));
1775
- })))
1776
- : undefined,
1777
- } }, textFieldProps, { inputRef: (inputRef) => {
1778
- filterInputRefs.current[`${column.id}-${rangeFilterIndex !== null && rangeFilterIndex !== void 0 ? rangeFilterIndex : 0}`] =
1779
- inputRef;
1780
- if (textFieldProps.inputRef) {
1781
- textFieldProps.inputRef = inputRef;
1782
- }
1783
- }, sx: (theme) => (Object.assign({ p: 0, minWidth: isRangeFilter
1784
- ? '100px'
1785
- : !filterChipLabel
1786
- ? '120px'
1787
- : 'auto', width: 'calc(100% + 4px)', mx: '-2px', '& .MuiSelect-icon': {
1788
- mr: '1.5rem',
1789
- } }, ((textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.sx) instanceof Function
1790
- ? textFieldProps.sx(theme)
1791
- : textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.sx))) }),
1792
- (isSelectFilter || isMultiSelectFilter) && (React__default["default"].createElement(MenuItem__default["default"], { divider: true, disabled: true, hidden: true, value: "" },
1793
- React__default["default"].createElement(Box__default["default"], { sx: { opacity: 0.5 } }, filterPlaceholder))), (_k = textFieldProps.children) !== null && _k !== void 0 ? _k : (_l = columnDef === null || columnDef === void 0 ? void 0 : columnDef.filterSelectOptions) === null || _l === void 0 ? void 0 : _l.map((option) => {
1794
- var _a;
1795
- let value;
1796
- let text;
1797
- if (typeof option !== 'object') {
1798
- value = option;
1799
- text = option;
1800
- }
1801
- else {
1802
- value = option.value;
1803
- text = option.text;
1804
- }
1805
- return (React__default["default"].createElement(MenuItem__default["default"], { key: value, sx: {
1806
- display: 'flex',
1807
- m: 0,
1808
- alignItems: 'center',
1809
- gap: '0.5rem',
1810
- }, value: value },
1811
- isMultiSelectFilter && (React__default["default"].createElement(Checkbox__default["default"], { checked: ((_a = column.getFilterValue()) !== null && _a !== void 0 ? _a : []).includes(value), sx: { mr: '0.5rem' } })),
1812
- text));
1813
- })),
1814
- React__default["default"].createElement(MRT_FilterOptionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table, setFilterValue: setFilterValue })));
1714
+ let value;
1715
+ let text;
1716
+ if (typeof option !== 'object') {
1717
+ value = option;
1718
+ text = option;
1719
+ }
1720
+ else {
1721
+ value = option.value;
1722
+ text = option.text;
1723
+ }
1724
+ return (jsxRuntime.jsxs(MenuItem__default["default"], Object.assign({ sx: {
1725
+ display: 'flex',
1726
+ m: 0,
1727
+ alignItems: 'center',
1728
+ gap: '0.5rem',
1729
+ }, value: value }, { children: [isMultiSelectFilter && (jsxRuntime.jsx(Checkbox__default["default"], { checked: ((_a = column.getFilterValue()) !== null && _a !== void 0 ? _a : []).includes(value), sx: { mr: '0.5rem' } })), text] }), value));
1730
+ })] })), jsxRuntime.jsx(MRT_FilterOptionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table, setFilterValue: setFilterValue })] }));
1815
1731
  };
1816
1732
 
1817
1733
  const MRT_FilterRangeFields = ({ header, table }) => {
1818
- return (React__default["default"].createElement(Box__default["default"], { sx: { display: 'grid', gridTemplateColumns: '6fr 6fr', gap: '1rem' } },
1819
- React__default["default"].createElement(MRT_FilterTextField, { header: header, rangeFilterIndex: 0, table: table }),
1820
- React__default["default"].createElement(MRT_FilterTextField, { header: header, rangeFilterIndex: 1, table: table })));
1734
+ return (jsxRuntime.jsxs(Box__default["default"], Object.assign({ sx: { display: 'grid', gridTemplateColumns: '6fr 6fr', gap: '1rem' } }, { children: [jsxRuntime.jsx(MRT_FilterTextField, { header: header, rangeFilterIndex: 0, table: table }), jsxRuntime.jsx(MRT_FilterTextField, { header: header, rangeFilterIndex: 1, table: table })] })));
1821
1735
  };
1822
1736
 
1823
1737
  const MRT_FilterCheckbox = ({ column, table }) => {
@@ -1839,8 +1753,7 @@ const MRT_FilterCheckbox = ({ column, table }) => {
1839
1753
  : columnDef.muiTableHeadCellFilterCheckboxProps;
1840
1754
  const checkboxProps = Object.assign(Object.assign({}, mTableHeadCellFilterCheckboxProps), mcTableHeadCellFilterCheckboxProps);
1841
1755
  const filterLabel = (_a = localization.filterByColumn) === null || _a === void 0 ? void 0 : _a.replace('{column}', columnDef.header);
1842
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: (_b = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _b !== void 0 ? _b : filterLabel },
1843
- React__default["default"].createElement(FormControlLabel__default["default"], { control: React__default["default"].createElement(Checkbox__default["default"], Object.assign({ checked: column.getFilterValue() === 'true', indeterminate: column.getFilterValue() === undefined, color: column.getFilterValue() === undefined ? 'default' : 'primary', size: density === 'compact' ? 'small' : 'medium' }, checkboxProps, { onClick: (e) => {
1756
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: (_b = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _b !== void 0 ? _b : filterLabel }, { children: jsxRuntime.jsx(FormControlLabel__default["default"], { control: jsxRuntime.jsx(Checkbox__default["default"], Object.assign({ checked: column.getFilterValue() === 'true', indeterminate: column.getFilterValue() === undefined, color: column.getFilterValue() === undefined ? 'default' : 'primary', size: density === 'compact' ? 'small' : 'medium' }, checkboxProps, { onClick: (e) => {
1844
1757
  var _a;
1845
1758
  e.stopPropagation();
1846
1759
  (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a === void 0 ? void 0 : _a.call(checkboxProps, e);
@@ -1854,7 +1767,7 @@ const MRT_FilterCheckbox = ({ column, table }) => {
1854
1767
  (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onChange) === null || _a === void 0 ? void 0 : _a.call(checkboxProps, e, checked);
1855
1768
  }, sx: (theme) => (Object.assign({ height: '2.5rem', width: '2.5rem' }, ((checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx) instanceof Function
1856
1769
  ? checkboxProps.sx(theme)
1857
- : checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx))) })), disableTypography: true, label: (_c = checkboxProps.title) !== null && _c !== void 0 ? _c : filterLabel, sx: { color: 'text.secondary', mt: '-4px', fontWeight: 'normal' }, title: undefined })));
1770
+ : checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx))) })), disableTypography: true, label: (_c = checkboxProps.title) !== null && _c !== void 0 ? _c : filterLabel, sx: { color: 'text.secondary', mt: '-4px', fontWeight: 'normal' }, title: undefined }) })));
1858
1771
  };
1859
1772
 
1860
1773
  const MRT_TableHeadCellFilterContainer = ({ header, table }) => {
@@ -1862,8 +1775,8 @@ const MRT_TableHeadCellFilterContainer = ({ header, table }) => {
1862
1775
  const { showColumnFilters } = getState();
1863
1776
  const { column } = header;
1864
1777
  const { columnDef } = column;
1865
- return (React__default["default"].createElement(Collapse__default["default"], { in: showColumnFilters, mountOnEnter: true, unmountOnExit: true }, columnDef.filterVariant === 'checkbox' ? (React__default["default"].createElement(MRT_FilterCheckbox, { column: column, table: table })) : columnDef.filterVariant === 'range' ||
1866
- ['between', 'betweenInclusive', 'inNumberRange'].includes(columnDef._filterFn) ? (React__default["default"].createElement(MRT_FilterRangeFields, { header: header, table: table })) : (React__default["default"].createElement(MRT_FilterTextField, { header: header, table: table }))));
1778
+ return (jsxRuntime.jsx(Collapse__default["default"], Object.assign({ in: showColumnFilters, mountOnEnter: true, unmountOnExit: true }, { children: columnDef.filterVariant === 'checkbox' ? (jsxRuntime.jsx(MRT_FilterCheckbox, { column: column, table: table })) : columnDef.filterVariant === 'range' ||
1779
+ ['between', 'betweenInclusive', 'inNumberRange'].includes(columnDef._filterFn) ? (jsxRuntime.jsx(MRT_FilterRangeFields, { header: header, table: table })) : (jsxRuntime.jsx(MRT_FilterTextField, { header: header, table: table })) })));
1867
1780
  };
1868
1781
 
1869
1782
  const MRT_TableHeadCellFilterLabel = ({ header, table }) => {
@@ -1884,12 +1797,9 @@ const MRT_TableHeadCellFilterLabel = ({ header, table }) => {
1884
1797
  ? column.getFilterValue().join(`" ${isRangeFilter ? localization.and : localization.or} "`)
1885
1798
  : column.getFilterValue()}"`)
1886
1799
  .replace('" "', '');
1887
- return (React__default["default"].createElement(Grow__default["default"], { unmountOnExit: true, in: (!!column.getFilterValue() && !isRangeFilter) ||
1800
+ return (jsxRuntime.jsx(Grow__default["default"], Object.assign({ unmountOnExit: true, in: (!!column.getFilterValue() && !isRangeFilter) ||
1888
1801
  (isRangeFilter && // @ts-ignore
1889
- (!!((_b = column.getFilterValue()) === null || _b === void 0 ? void 0 : _b[0]) || !!((_c = column.getFilterValue()) === null || _c === void 0 ? void 0 : _c[1]))) },
1890
- React__default["default"].createElement(Box__default["default"], { component: "span", sx: { flex: '0 0' } },
1891
- React__default["default"].createElement(Tooltip__default["default"], { arrow: true, placement: "top", title: filterTooltip },
1892
- React__default["default"].createElement(IconButton__default["default"], { disableRipple: true, onClick: (event) => {
1802
+ (!!((_b = column.getFilterValue()) === null || _b === void 0 ? void 0 : _b[0]) || !!((_c = column.getFilterValue()) === null || _c === void 0 ? void 0 : _c[1]))) }, { children: jsxRuntime.jsx(Box__default["default"], Object.assign({ component: "span", sx: { flex: '0 0' } }, { children: jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, placement: "top", title: filterTooltip }, { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ disableRipple: true, onClick: (event) => {
1893
1803
  setShowColumnFilters(true);
1894
1804
  queueMicrotask(() => {
1895
1805
  var _a, _b;
@@ -1904,8 +1814,7 @@ const MRT_TableHeadCellFilterLabel = ({ header, table }) => {
1904
1814
  p: '2px',
1905
1815
  transform: 'scale(0.66)',
1906
1816
  width: '12px',
1907
- } },
1908
- React__default["default"].createElement(FilterAltIcon, null))))));
1817
+ } }, { children: jsxRuntime.jsx(FilterAltIcon, {}) })) })) })) })));
1909
1818
  };
1910
1819
 
1911
1820
  const MRT_TableHeadCellGrabHandle = ({ column, table, tableHeadCellRef, }) => {
@@ -1939,7 +1848,7 @@ const MRT_TableHeadCellGrabHandle = ({ column, table, tableHeadCellRef, }) => {
1939
1848
  setDraggingColumn(null);
1940
1849
  setHoveredColumn(null);
1941
1850
  };
1942
- return (React__default["default"].createElement(MRT_GrabHandleButton, { iconButtonProps: iconButtonProps, onDragStart: handleDragStart, onDragEnd: handleDragEnd, table: table }));
1851
+ return (jsxRuntime.jsx(MRT_GrabHandleButton, { iconButtonProps: iconButtonProps, onDragStart: handleDragStart, onDragEnd: handleDragEnd, table: table }));
1943
1852
  };
1944
1853
 
1945
1854
  const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
@@ -1947,7 +1856,7 @@ const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
1947
1856
  const { getState, options: { columnResizeMode }, setColumnSizingInfo, } = table;
1948
1857
  const { density } = getState();
1949
1858
  const { column } = header;
1950
- return (React__default["default"].createElement(Box__default["default"], { className: "Mui-TableHeadCell-ResizeHandle-Wrapper", onDoubleClick: () => {
1859
+ return (jsxRuntime.jsx(Box__default["default"], Object.assign({ className: "Mui-TableHeadCell-ResizeHandle-Wrapper", onDoubleClick: () => {
1951
1860
  setColumnSizingInfo((old) => (Object.assign(Object.assign({}, old), { isResizingColumn: false })));
1952
1861
  column.resetSize();
1953
1862
  }, onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler(), sx: (theme) => ({
@@ -1964,8 +1873,7 @@ const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
1964
1873
  transform: column.getIsResizing() && columnResizeMode === 'onEnd'
1965
1874
  ? `translateX(${(_a = getState().columnSizingInfo.deltaOffset) !== null && _a !== void 0 ? _a : 0}px)`
1966
1875
  : undefined,
1967
- } },
1968
- React__default["default"].createElement(Divider__default["default"], { className: "Mui-TableHeadCell-ResizeHandle-Divider", flexItem: true, orientation: "vertical", sx: {
1876
+ } }, { children: jsxRuntime.jsx(Divider__default["default"], { className: "Mui-TableHeadCell-ResizeHandle-Divider", flexItem: true, orientation: "vertical", sx: {
1969
1877
  borderRadius: '2px',
1970
1878
  borderWidth: '2px',
1971
1879
  height: '24px',
@@ -1975,7 +1883,7 @@ const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
1975
1883
  : 'all 150ms ease-in-out',
1976
1884
  userSelect: 'none',
1977
1885
  zIndex: 4,
1978
- } })));
1886
+ } }) })));
1979
1887
  };
1980
1888
 
1981
1889
  const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
@@ -1988,9 +1896,7 @@ const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
1988
1896
  ? localization.sortedByColumnDesc.replace('{column}', columnDef.header)
1989
1897
  : localization.sortedByColumnAsc.replace('{column}', columnDef.header)
1990
1898
  : localization.unsorted;
1991
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, placement: "top", title: sortTooltip },
1992
- React__default["default"].createElement(Badge__default["default"], { badgeContent: sorting.length > 1 ? column.getSortIndex() + 1 : 0, overlap: "circular" },
1993
- React__default["default"].createElement(TableSortLabel__default["default"], { "aria-label": sortTooltip, active: !!column.getIsSorted(), direction: column.getIsSorted()
1899
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, placement: "top", title: sortTooltip }, { children: jsxRuntime.jsx(Badge__default["default"], Object.assign({ badgeContent: sorting.length > 1 ? column.getSortIndex() + 1 : 0, overlap: "circular" }, { children: jsxRuntime.jsx(TableSortLabel__default["default"], { "aria-label": sortTooltip, active: !!column.getIsSorted(), direction: column.getIsSorted()
1994
1900
  ? column.getIsSorted()
1995
1901
  : undefined, sx: {
1996
1902
  flex: '0 0',
@@ -2002,7 +1908,7 @@ const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
2002
1908
  var _a;
2003
1909
  e.stopPropagation();
2004
1910
  (_a = header.column.getToggleSortingHandler()) === null || _a === void 0 ? void 0 : _a(e);
2005
- } }))));
1911
+ } }) })) })));
2006
1912
  };
2007
1913
 
2008
1914
  const MRT_TableHeadCell = ({ header, table }) => {
@@ -2029,7 +1935,7 @@ const MRT_TableHeadCell = ({ header, table }) => {
2029
1935
  (enableGrouping &&
2030
1936
  columnDef.enableGrouping !== false &&
2031
1937
  !grouping.includes(column.id)));
2032
- const headerPL = React.useMemo(() => {
1938
+ const headerPL = react.useMemo(() => {
2033
1939
  let pl = 0;
2034
1940
  if (column.getCanSort())
2035
1941
  pl++;
@@ -2039,7 +1945,7 @@ const MRT_TableHeadCell = ({ header, table }) => {
2039
1945
  pl += 1.25;
2040
1946
  return pl;
2041
1947
  }, [showColumnActions, showDragHandle]);
2042
- const draggingBorder = React.useMemo(() => (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) === column.id
1948
+ const draggingBorder = react.useMemo(() => (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) === column.id
2043
1949
  ? `1px dashed ${theme.palette.text.secondary}`
2044
1950
  : (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id
2045
1951
  ? `2px dashed ${theme.palette.primary.main}`
@@ -2066,7 +1972,7 @@ const MRT_TableHeadCell = ({ header, table }) => {
2066
1972
  table,
2067
1973
  })
2068
1974
  : (_b = columnDef === null || columnDef === void 0 ? void 0 : columnDef.Header) !== null && _b !== void 0 ? _b : columnDef.header;
2069
- return (React__default["default"].createElement(TableCell__default["default"], Object.assign({ align: columnDefType === 'group' ? 'center' : 'left', colSpan: header.colSpan, onDragEnter: handleDragEnter, ref: (node) => {
1975
+ return (jsxRuntime.jsxs(TableCell__default["default"], Object.assign({ align: columnDefType === 'group' ? 'center' : 'left', colSpan: header.colSpan, onDragEnter: handleDragEnter, ref: (node) => {
2070
1976
  if (node) {
2071
1977
  tableHeadCellRefs.current[column.id] = node;
2072
1978
  }
@@ -2096,49 +2002,39 @@ const MRT_TableHeadCell = ({ header, table }) => {
2096
2002
  table,
2097
2003
  tableCellProps,
2098
2004
  theme,
2099
- })), draggingBorders)) }),
2100
- header.isPlaceholder ? null : (React__default["default"].createElement(Box__default["default"], { className: "Mui-TableHeadCell-Content", sx: {
2101
- alignItems: 'center',
2102
- display: 'flex',
2103
- flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
2104
- justifyContent: columnDefType === 'group' || (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
2105
- ? 'center'
2106
- : column.getCanResize()
2107
- ? 'space-between'
2108
- : 'flex-start',
2109
- position: 'relative',
2110
- width: '100%',
2111
- } },
2112
- React__default["default"].createElement(Box__default["default"], { className: "Mui-TableHeadCell-Content-Labels", onClick: column.getToggleSortingHandler(), sx: {
2005
+ })), draggingBorders)) }, { children: [header.isPlaceholder ? null : (jsxRuntime.jsxs(Box__default["default"], Object.assign({ className: "Mui-TableHeadCell-Content", sx: {
2113
2006
  alignItems: 'center',
2114
- cursor: column.getCanSort() && columnDefType !== 'group'
2115
- ? 'pointer'
2116
- : undefined,
2117
2007
  display: 'flex',
2118
2008
  flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
2119
- overflow: columnDefType === 'data' ? 'hidden' : undefined,
2120
- pl: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
2121
- ? `${headerPL}rem`
2122
- : undefined,
2123
- } },
2124
- React__default["default"].createElement(Box__default["default"], { className: "Mui-TableHeadCell-Content-Wrapper", sx: {
2125
- minWidth: `${Math.min((_d = (_c = columnDef.header) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0, 5)}ch`,
2126
- overflow: columnDefType === 'data' ? 'hidden' : undefined,
2127
- textOverflow: 'ellipsis',
2128
- whiteSpace: ((_g = (_f = columnDef.header) === null || _f === void 0 ? void 0 : _f.length) !== null && _g !== void 0 ? _g : 0) < 20 ? 'nowrap' : 'normal',
2129
- '&:hover': {
2130
- textOverflow: 'clip',
2131
- },
2132
- }, title: columnDefType === 'data' ? columnDef.header : undefined }, headerElement),
2133
- column.getCanSort() && (React__default["default"].createElement(MRT_TableHeadCellSortLabel, { header: header, table: table, tableCellProps: tableCellProps })),
2134
- column.getCanFilter() && (React__default["default"].createElement(MRT_TableHeadCellFilterLabel, { header: header, table: table }))),
2135
- columnDefType !== 'group' && (React__default["default"].createElement(Box__default["default"], { className: "Mui-TableHeadCell-Content-Actions", sx: { whiteSpace: 'nowrap' } },
2136
- showDragHandle && (React__default["default"].createElement(MRT_TableHeadCellGrabHandle, { column: column, table: table, tableHeadCellRef: {
2137
- current: tableHeadCellRefs.current[column.id],
2138
- } })),
2139
- showColumnActions && (React__default["default"].createElement(MRT_TableHeadCellColumnActionsButton, { header: header, table: table })))),
2140
- column.getCanResize() && (React__default["default"].createElement(MRT_TableHeadCellResizeHandle, { header: header, table: table })))),
2141
- column.getCanFilter() && (React__default["default"].createElement(MRT_TableHeadCellFilterContainer, { header: header, table: table }))));
2009
+ justifyContent: columnDefType === 'group' || (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
2010
+ ? 'center'
2011
+ : column.getCanResize()
2012
+ ? 'space-between'
2013
+ : 'flex-start',
2014
+ position: 'relative',
2015
+ width: '100%',
2016
+ } }, { children: [jsxRuntime.jsxs(Box__default["default"], Object.assign({ className: "Mui-TableHeadCell-Content-Labels", onClick: column.getToggleSortingHandler(), sx: {
2017
+ alignItems: 'center',
2018
+ cursor: column.getCanSort() && columnDefType !== 'group'
2019
+ ? 'pointer'
2020
+ : undefined,
2021
+ display: 'flex',
2022
+ flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
2023
+ overflow: columnDefType === 'data' ? 'hidden' : undefined,
2024
+ pl: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
2025
+ ? `${headerPL}rem`
2026
+ : undefined,
2027
+ } }, { children: [jsxRuntime.jsx(Box__default["default"], Object.assign({ className: "Mui-TableHeadCell-Content-Wrapper", sx: {
2028
+ minWidth: `${Math.min((_d = (_c = columnDef.header) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0, 5)}ch`,
2029
+ overflow: columnDefType === 'data' ? 'hidden' : undefined,
2030
+ textOverflow: 'ellipsis',
2031
+ whiteSpace: ((_g = (_f = columnDef.header) === null || _f === void 0 ? void 0 : _f.length) !== null && _g !== void 0 ? _g : 0) < 20 ? 'nowrap' : 'normal',
2032
+ '&:hover': {
2033
+ textOverflow: 'clip',
2034
+ },
2035
+ }, title: columnDefType === 'data' ? columnDef.header : undefined }, { children: headerElement })), column.getCanSort() && (jsxRuntime.jsx(MRT_TableHeadCellSortLabel, { header: header, table: table, tableCellProps: tableCellProps })), column.getCanFilter() && (jsxRuntime.jsx(MRT_TableHeadCellFilterLabel, { header: header, table: table }))] })), columnDefType !== 'group' && (jsxRuntime.jsxs(Box__default["default"], Object.assign({ className: "Mui-TableHeadCell-Content-Actions", sx: { whiteSpace: 'nowrap' } }, { children: [showDragHandle && (jsxRuntime.jsx(MRT_TableHeadCellGrabHandle, { column: column, table: table, tableHeadCellRef: {
2036
+ current: tableHeadCellRefs.current[column.id],
2037
+ } })), showColumnActions && (jsxRuntime.jsx(MRT_TableHeadCellColumnActionsButton, { header: header, table: table }))] }))), column.getCanResize() && (jsxRuntime.jsx(MRT_TableHeadCellResizeHandle, { header: header, table: table }))] }))), column.getCanFilter() && (jsxRuntime.jsx(MRT_TableHeadCellFilterContainer, { header: header, table: table }))] })));
2142
2038
  };
2143
2039
 
2144
2040
  const MRT_TableHeadRow = ({ headerGroup, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, }) => {
@@ -2146,17 +2042,14 @@ const MRT_TableHeadRow = ({ headerGroup, table, virtualColumns, virtualPaddingLe
2146
2042
  const tableRowProps = muiTableHeadRowProps instanceof Function
2147
2043
  ? muiTableHeadRowProps({ headerGroup, table })
2148
2044
  : muiTableHeadRowProps;
2149
- return (React__default["default"].createElement(TableRow__default["default"], Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: styles.lighten(theme.palette.background.default, 0.04), boxShadow: `4px 0 8px ${styles.alpha(theme.palette.common.black, 0.1)}`, display: layoutMode === 'grid' ? 'flex' : 'table-row', top: 0 }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2045
+ return (jsxRuntime.jsxs(TableRow__default["default"], Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: styles.lighten(theme.palette.background.default, 0.04), boxShadow: `4px 0 8px ${styles.alpha(theme.palette.common.black, 0.1)}`, display: layoutMode === 'grid' ? 'flex' : 'table-row', top: 0 }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2150
2046
  ? tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx(theme)
2151
- : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))) }),
2152
- virtualPaddingLeft ? (React__default["default"].createElement("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null,
2153
- (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : headerGroup.headers).map((headerOrVirtualHeader) => {
2154
- const header = virtualColumns
2155
- ? headerGroup.headers[headerOrVirtualHeader.index]
2156
- : headerOrVirtualHeader;
2157
- return (React__default["default"].createElement(MRT_TableHeadCell, { header: header, key: header.id, table: table }));
2158
- }),
2159
- virtualPaddingRight ? (React__default["default"].createElement("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null));
2047
+ : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))) }, { children: [virtualPaddingLeft ? (jsxRuntime.jsx("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : headerGroup.headers).map((headerOrVirtualHeader) => {
2048
+ const header = virtualColumns
2049
+ ? headerGroup.headers[headerOrVirtualHeader.index]
2050
+ : headerOrVirtualHeader;
2051
+ return (jsxRuntime.jsx(MRT_TableHeadCell, { header: header, table: table }, header.id));
2052
+ }), virtualPaddingRight ? (jsxRuntime.jsx("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })));
2160
2053
  };
2161
2054
 
2162
2055
  const MRT_TableHead = ({ table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, }) => {
@@ -2166,9 +2059,9 @@ const MRT_TableHead = ({ table, virtualColumns, virtualPaddingLeft, virtualPaddi
2166
2059
  ? muiTableHeadProps({ table })
2167
2060
  : muiTableHeadProps;
2168
2061
  const stickyHeader = enableStickyHeader || isFullScreen;
2169
- return (React__default["default"].createElement(TableHead__default["default"], Object.assign({}, tableHeadProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table-row-group', opacity: 0.97, position: stickyHeader ? 'sticky' : 'relative', top: stickyHeader && layoutMode === 'grid' ? 0 : undefined, zIndex: stickyHeader ? 2 : undefined }, ((tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx) instanceof Function
2062
+ return (jsxRuntime.jsx(TableHead__default["default"], Object.assign({}, tableHeadProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table-row-group', opacity: 0.97, position: stickyHeader ? 'sticky' : 'relative', top: stickyHeader && layoutMode === 'grid' ? 0 : undefined, zIndex: stickyHeader ? 2 : undefined }, ((tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx) instanceof Function
2170
2063
  ? tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx(theme)
2171
- : tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx))) }), getHeaderGroups().map((headerGroup) => (React__default["default"].createElement(MRT_TableHeadRow, { headerGroup: headerGroup, key: headerGroup.id, table: table, virtualColumns: virtualColumns, virtualPaddingLeft: virtualPaddingLeft, virtualPaddingRight: virtualPaddingRight })))));
2064
+ : tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx))) }, { children: getHeaderGroups().map((headerGroup) => (jsxRuntime.jsx(MRT_TableHeadRow, { headerGroup: headerGroup, table: table, virtualColumns: virtualColumns, virtualPaddingLeft: virtualPaddingLeft, virtualPaddingRight: virtualPaddingRight }, headerGroup.id))) })));
2172
2065
  };
2173
2066
 
2174
2067
  const MRT_EditCellTextField = ({ cell, showLabel, table, }) => {
@@ -2177,7 +2070,7 @@ const MRT_EditCellTextField = ({ cell, showLabel, table, }) => {
2177
2070
  const { column, row } = cell;
2178
2071
  const { columnDef } = column;
2179
2072
  const { editingRow } = getState();
2180
- const [value, setValue] = React.useState(() => cell.getValue());
2073
+ const [value, setValue] = react.useState(() => cell.getValue());
2181
2074
  const mTableBodyCellEditTextFieldProps = muiTableBodyCellEditTextFieldProps instanceof Function
2182
2075
  ? muiTableBodyCellEditTextFieldProps({ cell, column, row, table })
2183
2076
  : muiTableBodyCellEditTextFieldProps;
@@ -2218,9 +2111,9 @@ const MRT_EditCellTextField = ({ cell, showLabel, table, }) => {
2218
2111
  }
2219
2112
  };
2220
2113
  if (columnDef.Edit) {
2221
- return React__default["default"].createElement(React__default["default"].Fragment, null, (_a = columnDef.Edit) === null || _a === void 0 ? void 0 : _a.call(columnDef, { cell, column, row, table }));
2114
+ return jsxRuntime.jsx(jsxRuntime.Fragment, { children: (_a = columnDef.Edit) === null || _a === void 0 ? void 0 : _a.call(columnDef, { cell, column, row, table }) });
2222
2115
  }
2223
- return (React__default["default"].createElement(TextField__default["default"], Object.assign({ disabled: (columnDef.enableEditing instanceof Function
2116
+ return (jsxRuntime.jsx(TextField__default["default"], Object.assign({ disabled: (columnDef.enableEditing instanceof Function
2224
2117
  ? columnDef.enableEditing(row)
2225
2118
  : columnDef.enableEditing) === false, fullWidth: true, inputRef: (inputRef) => {
2226
2119
  if (inputRef) {
@@ -2233,24 +2126,24 @@ const MRT_EditCellTextField = ({ cell, showLabel, table, }) => {
2233
2126
  var _a;
2234
2127
  e.stopPropagation();
2235
2128
  (_a = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.onClick) === null || _a === void 0 ? void 0 : _a.call(textFieldProps, e);
2236
- }, onBlur: handleBlur, onChange: handleChange, onKeyDown: handleEnterKeyDown }), (_b = textFieldProps.children) !== null && _b !== void 0 ? _b : (_c = columnDef === null || columnDef === void 0 ? void 0 : columnDef.editSelectOptions) === null || _c === void 0 ? void 0 : _c.map((option) => {
2237
- let value;
2238
- let text;
2239
- if (typeof option !== 'object') {
2240
- value = option;
2241
- text = option;
2242
- }
2243
- else {
2244
- value = option.value;
2245
- text = option.text;
2246
- }
2247
- return (React__default["default"].createElement(MenuItem__default["default"], { key: value, sx: {
2248
- display: 'flex',
2249
- m: 0,
2250
- alignItems: 'center',
2251
- gap: '0.5rem',
2252
- }, value: value }, text));
2253
- })));
2129
+ }, 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) => {
2130
+ let value;
2131
+ let text;
2132
+ if (typeof option !== 'object') {
2133
+ value = option;
2134
+ text = option;
2135
+ }
2136
+ else {
2137
+ value = option.value;
2138
+ text = option.text;
2139
+ }
2140
+ return (jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ sx: {
2141
+ display: 'flex',
2142
+ m: 0,
2143
+ alignItems: 'center',
2144
+ gap: '0.5rem',
2145
+ }, value: value }, { children: text }), value));
2146
+ }) })));
2254
2147
  };
2255
2148
 
2256
2149
  const MRT_CopyButton = ({ cell, children, table, }) => {
@@ -2258,7 +2151,7 @@ const MRT_CopyButton = ({ cell, children, table, }) => {
2258
2151
  const { options: { localization, muiTableBodyCellCopyButtonProps }, } = table;
2259
2152
  const { column, row } = cell;
2260
2153
  const { columnDef } = column;
2261
- const [copied, setCopied] = React.useState(false);
2154
+ const [copied, setCopied] = react.useState(false);
2262
2155
  const handleCopy = (event, text) => {
2263
2156
  event.stopPropagation();
2264
2157
  navigator.clipboard.writeText(text);
@@ -2277,10 +2170,9 @@ const MRT_CopyButton = ({ cell, children, table, }) => {
2277
2170
  })
2278
2171
  : columnDef.muiTableBodyCellCopyButtonProps;
2279
2172
  const buttonProps = Object.assign(Object.assign({}, mTableBodyCellCopyButtonProps), mcTableBodyCellCopyButtonProps);
2280
- return (React__default["default"].createElement(Tooltip__default["default"], { arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_a = buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.title) !== null && _a !== void 0 ? _a : (copied ? localization.copiedToClipboard : localization.clickToCopy) },
2281
- React__default["default"].createElement(Button__default["default"], Object.assign({ onClick: (e) => handleCopy(e, cell.getValue()), size: "small", type: "button", variant: "text" }, buttonProps, { sx: (theme) => (Object.assign({ backgroundColor: 'transparent', border: 'none', color: 'inherit', cursor: 'copy', fontFamily: 'inherit', fontSize: 'inherit', letterSpacing: 'inherit', m: '-0.25rem', minWidth: 'unset', textAlign: 'inherit', textTransform: 'inherit' }, ((buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.sx) instanceof Function
2173
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_a = buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.title) !== null && _a !== void 0 ? _a : (copied ? localization.copiedToClipboard : localization.clickToCopy) }, { children: jsxRuntime.jsx(Button__default["default"], Object.assign({ onClick: (e) => handleCopy(e, cell.getValue()), size: "small", type: "button", variant: "text" }, buttonProps, { sx: (theme) => (Object.assign({ backgroundColor: 'transparent', border: 'none', color: 'inherit', cursor: 'copy', fontFamily: 'inherit', fontSize: 'inherit', letterSpacing: 'inherit', m: '-0.25rem', minWidth: 'unset', textAlign: 'inherit', textTransform: 'inherit' }, ((buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.sx) instanceof Function
2282
2174
  ? buttonProps.sx(theme)
2283
- : buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.sx))), title: undefined }), children)));
2175
+ : buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.sx))), title: undefined }, { children: children })) })));
2284
2176
  };
2285
2177
 
2286
2178
  const MRT_TableBodyRowGrabHandle = ({ cell, rowRef, table }) => {
@@ -2301,7 +2193,7 @@ const MRT_TableBodyRowGrabHandle = ({ cell, rowRef, table }) => {
2301
2193
  table.setDraggingRow(null);
2302
2194
  table.setHoveredRow(null);
2303
2195
  };
2304
- return (React__default["default"].createElement(MRT_GrabHandleButton, { iconButtonProps: iconButtonProps, onDragStart: handleDragStart, onDragEnd: handleDragEnd, table: table }));
2196
+ return (jsxRuntime.jsx(MRT_GrabHandleButton, { iconButtonProps: iconButtonProps, onDragStart: handleDragStart, onDragEnd: handleDragEnd, table: table }));
2305
2197
  };
2306
2198
 
2307
2199
  const allowedTypes = ['string', 'number'];
@@ -2349,16 +2241,16 @@ const MRT_TableBodyCellValue = ({ cell, table }) => {
2349
2241
  matchExactly: (filterValue ? columnDef._filterFn : globalFilterFn) !== 'fuzzy',
2350
2242
  });
2351
2243
  if ((chunks === null || chunks === void 0 ? void 0 : chunks.length) > 1 || ((_b = chunks === null || chunks === void 0 ? void 0 : chunks[0]) === null || _b === void 0 ? void 0 : _b.match)) {
2352
- renderedCellValue = (React__default["default"].createElement("span", { "aria-label": renderedCellValue, role: "note" }, (_c = chunks === null || chunks === void 0 ? void 0 : chunks.map(({ key, match, text }) => (React__default["default"].createElement(Box__default["default"], { "aria-hidden": "true", component: "span", key: key, sx: match
2353
- ? {
2354
- backgroundColor: (theme) => theme.palette.mode === 'dark'
2355
- ? styles.darken(theme.palette.warning.dark, 0.25)
2356
- : styles.lighten(theme.palette.warning.light, 0.5),
2357
- borderRadius: '2px',
2358
- color: (theme) => theme.palette.mode === 'dark' ? 'white' : 'black',
2359
- padding: '2px 1px',
2360
- }
2361
- : undefined }, text)))) !== null && _c !== void 0 ? _c : renderedCellValue));
2244
+ renderedCellValue = (jsxRuntime.jsx("span", Object.assign({ "aria-label": renderedCellValue, role: "note" }, { children: (_c = chunks === null || chunks === void 0 ? void 0 : chunks.map(({ key, match, text }) => (jsxRuntime.jsx(Box__default["default"], Object.assign({ "aria-hidden": "true", component: "span", sx: match
2245
+ ? {
2246
+ backgroundColor: (theme) => theme.palette.mode === 'dark'
2247
+ ? styles.darken(theme.palette.warning.dark, 0.25)
2248
+ : styles.lighten(theme.palette.warning.light, 0.5),
2249
+ borderRadius: '2px',
2250
+ color: (theme) => theme.palette.mode === 'dark' ? 'white' : 'black',
2251
+ padding: '2px 1px',
2252
+ }
2253
+ : undefined }, { children: text }), key)))) !== null && _c !== void 0 ? _c : renderedCellValue })));
2362
2254
  }
2363
2255
  }
2364
2256
  if (columnDef.Cell && !isGroupedValue) {
@@ -2370,7 +2262,7 @@ const MRT_TableBodyCellValue = ({ cell, table }) => {
2370
2262
  table,
2371
2263
  });
2372
2264
  }
2373
- return React__default["default"].createElement(React__default["default"].Fragment, null, renderedCellValue);
2265
+ return jsxRuntime.jsx(jsxRuntime.Fragment, { children: renderedCellValue });
2374
2266
  };
2375
2267
 
2376
2268
  const MRT_TableBodyCell = ({ cell, measureElement, numRows, rowIndex, rowRef, table, virtualCell, }) => {
@@ -2391,14 +2283,14 @@ const MRT_TableBodyCell = ({ cell, measureElement, numRows, rowIndex, rowRef, ta
2391
2283
  const skeletonProps = muiTableBodyCellSkeletonProps instanceof Function
2392
2284
  ? muiTableBodyCellSkeletonProps({ cell, column, row, table })
2393
2285
  : muiTableBodyCellSkeletonProps;
2394
- const [skeletonWidth, setSkeletonWidth] = React.useState(0);
2395
- React.useEffect(() => setSkeletonWidth(isLoading || showSkeletons
2286
+ const [skeletonWidth, setSkeletonWidth] = react.useState(0);
2287
+ react.useEffect(() => setSkeletonWidth(isLoading || showSkeletons
2396
2288
  ? columnDefType === 'display'
2397
2289
  ? column.getSize() / 2
2398
2290
  : Math.round(Math.random() * (column.getSize() - column.getSize() / 3) +
2399
2291
  column.getSize() / 3)
2400
2292
  : 100), []);
2401
- const draggingBorders = React.useMemo(() => {
2293
+ const draggingBorders = react.useMemo(() => {
2402
2294
  const isDraggingColumn = (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) === column.id;
2403
2295
  const isHoveredColumn = (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id;
2404
2296
  const isDraggingRow = (draggingRow === null || draggingRow === void 0 ? void 0 : draggingRow.id) === row.id;
@@ -2465,7 +2357,7 @@ const MRT_TableBodyCell = ({ cell, measureElement, numRows, rowIndex, rowRef, ta
2465
2357
  setHoveredColumn(columnDef.enableColumnOrdering !== false ? column : null);
2466
2358
  }
2467
2359
  };
2468
- return (React__default["default"].createElement(TableCell__default["default"], Object.assign({ "data-index": virtualCell === null || virtualCell === void 0 ? void 0 : virtualCell.index, ref: (node) => {
2360
+ return (jsxRuntime.jsx(TableCell__default["default"], Object.assign({ "data-index": virtualCell === null || virtualCell === void 0 ? void 0 : virtualCell.index, ref: (node) => {
2469
2361
  if (node) {
2470
2362
  measureElement === null || measureElement === void 0 ? void 0 : measureElement(node);
2471
2363
  }
@@ -2497,28 +2389,21 @@ const MRT_TableBodyCell = ({ cell, measureElement, numRows, rowIndex, rowRef, ta
2497
2389
  table,
2498
2390
  theme,
2499
2391
  tableCellProps,
2500
- })), draggingBorders)) }),
2501
- React__default["default"].createElement(React__default["default"].Fragment, null,
2502
- cell.getIsPlaceholder() ? ((_b = (_a = columnDef.PlaceholderCell) === null || _a === void 0 ? void 0 : _a.call(columnDef, { cell, column, row, table })) !== null && _b !== void 0 ? _b : null) : isLoading || showSkeletons ? (React__default["default"].createElement(Skeleton__default["default"], Object.assign({ animation: "wave", height: 20, width: skeletonWidth }, skeletonProps))) : enableRowNumbers &&
2503
- rowNumberMode === 'static' &&
2504
- column.id === 'mrt-row-numbers' ? (rowIndex + 1) : column.id === 'mrt-row-drag' ? (React__default["default"].createElement(MRT_TableBodyRowGrabHandle, { cell: cell, rowRef: rowRef, table: table })) : columnDefType === 'display' &&
2505
- (column.id === 'mrt-row-select' ||
2506
- column.id === 'mrt-row-expand' ||
2507
- !row.getIsGrouped()) ? ((_c = columnDef.Cell) === null || _c === void 0 ? void 0 : _c.call(columnDef, {
2508
- cell,
2509
- renderedCellValue: cell.renderValue(),
2510
- column,
2511
- row,
2512
- table,
2513
- })) : isEditing ? (React__default["default"].createElement(MRT_EditCellTextField, { cell: cell, table: table })) : (enableClickToCopy || columnDef.enableClickToCopy) &&
2514
- columnDef.enableClickToCopy !== false ? (React__default["default"].createElement(MRT_CopyButton, { cell: cell, table: table },
2515
- React__default["default"].createElement(MRT_TableBodyCellValue, { cell: cell, table: table }))) : (React__default["default"].createElement(MRT_TableBodyCellValue, { cell: cell, table: table })),
2516
- cell.getIsGrouped() && !columnDef.GroupedCell && (React__default["default"].createElement(React__default["default"].Fragment, null,
2517
- " (", (_d = row.subRows) === null || _d === void 0 ? void 0 :
2518
- _d.length,
2519
- ")")))));
2392
+ })), draggingBorders)) }, { children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [cell.getIsPlaceholder() ? ((_b = (_a = columnDef.PlaceholderCell) === null || _a === void 0 ? void 0 : _a.call(columnDef, { cell, column, row, table })) !== null && _b !== void 0 ? _b : null) : isLoading || showSkeletons ? (jsxRuntime.jsx(Skeleton__default["default"], Object.assign({ animation: "wave", height: 20, width: skeletonWidth }, skeletonProps))) : enableRowNumbers &&
2393
+ rowNumberMode === 'static' &&
2394
+ column.id === 'mrt-row-numbers' ? (rowIndex + 1) : column.id === 'mrt-row-drag' ? (jsxRuntime.jsx(MRT_TableBodyRowGrabHandle, { cell: cell, rowRef: rowRef, table: table })) : columnDefType === 'display' &&
2395
+ (column.id === 'mrt-row-select' ||
2396
+ column.id === 'mrt-row-expand' ||
2397
+ !row.getIsGrouped()) ? ((_c = columnDef.Cell) === null || _c === void 0 ? void 0 : _c.call(columnDef, {
2398
+ cell,
2399
+ renderedCellValue: cell.renderValue(),
2400
+ column,
2401
+ row,
2402
+ table,
2403
+ })) : isEditing ? (jsxRuntime.jsx(MRT_EditCellTextField, { cell: cell, table: table })) : (enableClickToCopy || columnDef.enableClickToCopy) &&
2404
+ columnDef.enableClickToCopy !== false ? (jsxRuntime.jsx(MRT_CopyButton, Object.assign({ cell: cell, table: table }, { children: jsxRuntime.jsx(MRT_TableBodyCellValue, { cell: cell, table: table }) }))) : (jsxRuntime.jsx(MRT_TableBodyCellValue, { cell: cell, table: table })), cell.getIsGrouped() && !columnDef.GroupedCell && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [" (", (_d = row.subRows) === null || _d === void 0 ? void 0 : _d.length, ")"] }))] }) })));
2520
2405
  };
2521
- const Memo_MRT_TableBodyCell = React.memo(MRT_TableBodyCell, (prev, next) => next.cell === prev.cell);
2406
+ const Memo_MRT_TableBodyCell = react.memo(MRT_TableBodyCell, (prev, next) => next.cell === prev.cell);
2522
2407
 
2523
2408
  const MRT_TableDetailPanel = ({ parentRowRef, row, rowIndex, table, virtualRow, }) => {
2524
2409
  const { getVisibleLeafColumns, getState, options: { layoutMode, muiTableBodyRowProps, muiTableDetailPanelProps, renderDetailPanel, }, } = table;
@@ -2534,7 +2419,7 @@ const MRT_TableDetailPanel = ({ parentRowRef, row, rowIndex, table, virtualRow,
2534
2419
  const tableCellProps = muiTableDetailPanelProps instanceof Function
2535
2420
  ? muiTableDetailPanelProps({ row, table })
2536
2421
  : muiTableDetailPanelProps;
2537
- return (React__default["default"].createElement(TableRow__default["default"], Object.assign({ className: "Mui-TableBodyCell-DetailPanel" }, tableRowProps, { sx: (theme) => {
2422
+ return (jsxRuntime.jsx(TableRow__default["default"], Object.assign({ className: "Mui-TableBodyCell-DetailPanel" }, tableRowProps, { sx: (theme) => {
2538
2423
  var _a, _b;
2539
2424
  return (Object.assign({ display: layoutMode === 'grid' ? 'flex' : 'table-row', position: virtualRow ? 'absolute' : undefined, top: virtualRow
2540
2425
  ? `${(_b = (_a = parentRowRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.height}px`
@@ -2543,12 +2428,11 @@ const MRT_TableDetailPanel = ({ parentRowRef, row, rowIndex, table, virtualRow,
2543
2428
  : undefined, width: '100%', zIndex: virtualRow ? 2 : undefined }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2544
2429
  ? tableRowProps.sx(theme)
2545
2430
  : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx)));
2546
- } }),
2547
- React__default["default"].createElement(TableCell__default["default"], Object.assign({ className: "Mui-TableBodyCell-DetailPanel", colSpan: getVisibleLeafColumns().length }, tableCellProps, { sx: (theme) => (Object.assign({ backgroundColor: virtualRow
2431
+ } }, { children: jsxRuntime.jsx(TableCell__default["default"], Object.assign({ className: "Mui-TableBodyCell-DetailPanel", colSpan: getVisibleLeafColumns().length }, tableCellProps, { sx: (theme) => (Object.assign({ backgroundColor: virtualRow
2548
2432
  ? styles.lighten(theme.palette.background.default, 0.06)
2549
2433
  : undefined, borderBottom: !row.getIsExpanded() ? 'none' : undefined, display: layoutMode === 'grid' ? 'flex' : 'table-cell', pb: row.getIsExpanded() ? '1rem' : 0, pt: row.getIsExpanded() ? '1rem' : 0, transition: 'all 150ms ease-in-out', width: `${table.getTotalSize()}px` }, ((tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.sx) instanceof Function
2550
2434
  ? tableCellProps.sx(theme)
2551
- : tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.sx))) }), renderDetailPanel && (React__default["default"].createElement(Collapse__default["default"], { in: row.getIsExpanded(), mountOnEnter: true, unmountOnExit: true }, !isLoading && renderDetailPanel({ row, table }))))));
2435
+ : tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.sx))) }, { children: renderDetailPanel && (jsxRuntime.jsx(Collapse__default["default"], Object.assign({ in: row.getIsExpanded(), mountOnEnter: true, unmountOnExit: true }, { children: !isLoading && renderDetailPanel({ row, table }) }))) })) })));
2552
2436
  };
2553
2437
 
2554
2438
  const MRT_TableBodyRow = ({ columnVirtualizer, measureElement, numRows, row, rowIndex, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, virtualRow, }) => {
@@ -2562,54 +2446,49 @@ const MRT_TableBodyRow = ({ columnVirtualizer, measureElement, numRows, row, row
2562
2446
  setHoveredRow(row);
2563
2447
  }
2564
2448
  };
2565
- const rowRef = React.useRef(null);
2566
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
2567
- React__default["default"].createElement(TableRow__default["default"], Object.assign({ "data-index": virtualRow === null || virtualRow === void 0 ? void 0 : virtualRow.index, onDragEnter: handleDragEnter, selected: row.getIsSelected(), ref: (node) => {
2568
- if (node) {
2569
- rowRef.current = node;
2570
- measureElement === null || measureElement === void 0 ? void 0 : measureElement(node);
2571
- }
2572
- } }, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: styles.lighten(theme.palette.background.default, 0.06), boxSizing: 'border-box', display: layoutMode === 'grid' ? 'flex' : 'table-row', opacity: (draggingRow === null || draggingRow === void 0 ? void 0 : draggingRow.id) === row.id || (hoveredRow === null || hoveredRow === void 0 ? void 0 : hoveredRow.id) === row.id ? 0.5 : 1, position: virtualRow ? 'absolute' : undefined, transition: virtualRow ? 'none' : 'all 150ms ease-in-out', top: virtualRow ? 0 : undefined, width: '100%', '&:hover td': {
2573
- backgroundColor: (tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.hover) !== false
2574
- ? row.getIsSelected()
2575
- ? `${styles.alpha(theme.palette.primary.main, 0.2)}`
2576
- : theme.palette.mode === 'dark'
2577
- ? `${styles.lighten(theme.palette.background.default, 0.12)}`
2578
- : `${styles.darken(theme.palette.background.default, 0.05)}`
2579
- : undefined,
2580
- } }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2581
- ? tableRowProps.sx(theme)
2582
- : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))), style: Object.assign({ transform: virtualRow
2583
- ? `translateY(${virtualRow === null || virtualRow === void 0 ? void 0 : virtualRow.start}px)`
2584
- : undefined }, tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.style) }),
2585
- virtualPaddingLeft ? (React__default["default"].createElement("td", { style: { display: 'flex', width: virtualPaddingLeft } })) : null,
2586
- (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : row.getVisibleCells()).map((cellOrVirtualCell) => {
2587
- const cell = columnVirtualizer
2588
- ? row.getVisibleCells()[cellOrVirtualCell.index]
2589
- : cellOrVirtualCell;
2590
- const props = {
2591
- cell,
2592
- key: cell.id,
2593
- measureElement: columnVirtualizer === null || columnVirtualizer === void 0 ? void 0 : columnVirtualizer.measureElement,
2594
- numRows,
2595
- rowIndex,
2596
- rowRef,
2597
- table,
2598
- virtualCell: columnVirtualizer
2599
- ? cellOrVirtualCell
2600
- : undefined,
2601
- };
2602
- return memoMode === 'cells' &&
2603
- cell.column.columnDef.columnDefType === 'data' &&
2604
- !draggingColumn &&
2605
- !draggingRow &&
2606
- (editingCell === null || editingCell === void 0 ? void 0 : editingCell.id) !== cell.id &&
2607
- (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) !== row.id ? (React__default["default"].createElement(Memo_MRT_TableBodyCell, Object.assign({}, props))) : (React__default["default"].createElement(MRT_TableBodyCell, Object.assign({}, props)));
2608
- }),
2609
- virtualPaddingRight ? (React__default["default"].createElement("td", { style: { display: 'flex', width: virtualPaddingRight } })) : null),
2610
- renderDetailPanel && !row.getIsGrouped() && (React__default["default"].createElement(MRT_TableDetailPanel, { parentRowRef: rowRef, row: row, rowIndex: rowIndex, table: table, virtualRow: virtualRow }))));
2611
- };
2612
- const Memo_MRT_TableBodyRow = React.memo(MRT_TableBodyRow, (prev, next) => prev.row === next.row && prev.rowIndex === next.rowIndex);
2449
+ const rowRef = react.useRef(null);
2450
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(TableRow__default["default"], Object.assign({ "data-index": virtualRow === null || virtualRow === void 0 ? void 0 : virtualRow.index, onDragEnter: handleDragEnter, selected: row.getIsSelected(), ref: (node) => {
2451
+ if (node) {
2452
+ rowRef.current = node;
2453
+ measureElement === null || measureElement === void 0 ? void 0 : measureElement(node);
2454
+ }
2455
+ } }, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: styles.lighten(theme.palette.background.default, 0.06), boxSizing: 'border-box', display: layoutMode === 'grid' ? 'flex' : 'table-row', opacity: (draggingRow === null || draggingRow === void 0 ? void 0 : draggingRow.id) === row.id || (hoveredRow === null || hoveredRow === void 0 ? void 0 : hoveredRow.id) === row.id ? 0.5 : 1, position: virtualRow ? 'absolute' : undefined, transition: virtualRow ? 'none' : 'all 150ms ease-in-out', top: virtualRow ? 0 : undefined, width: '100%', '&:hover td': {
2456
+ backgroundColor: (tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.hover) !== false
2457
+ ? row.getIsSelected()
2458
+ ? `${styles.alpha(theme.palette.primary.main, 0.2)}`
2459
+ : theme.palette.mode === 'dark'
2460
+ ? `${styles.lighten(theme.palette.background.default, 0.12)}`
2461
+ : `${styles.darken(theme.palette.background.default, 0.05)}`
2462
+ : undefined,
2463
+ } }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2464
+ ? tableRowProps.sx(theme)
2465
+ : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))), style: Object.assign({ transform: virtualRow
2466
+ ? `translateY(${virtualRow === null || virtualRow === void 0 ? void 0 : virtualRow.start}px)`
2467
+ : undefined }, tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.style) }, { children: [virtualPaddingLeft ? (jsxRuntime.jsx("td", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : row.getVisibleCells()).map((cellOrVirtualCell) => {
2468
+ const cell = columnVirtualizer
2469
+ ? row.getVisibleCells()[cellOrVirtualCell.index]
2470
+ : cellOrVirtualCell;
2471
+ const props = {
2472
+ cell,
2473
+ key: cell.id,
2474
+ measureElement: columnVirtualizer === null || columnVirtualizer === void 0 ? void 0 : columnVirtualizer.measureElement,
2475
+ numRows,
2476
+ rowIndex,
2477
+ rowRef,
2478
+ table,
2479
+ virtualCell: columnVirtualizer
2480
+ ? cellOrVirtualCell
2481
+ : undefined,
2482
+ };
2483
+ return memoMode === 'cells' &&
2484
+ cell.column.columnDef.columnDefType === 'data' &&
2485
+ !draggingColumn &&
2486
+ !draggingRow &&
2487
+ (editingCell === null || editingCell === void 0 ? void 0 : editingCell.id) !== cell.id &&
2488
+ (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) !== row.id ? (jsxRuntime.jsx(Memo_MRT_TableBodyCell, Object.assign({}, props))) : (jsxRuntime.jsx(MRT_TableBodyCell, Object.assign({}, props)));
2489
+ }), virtualPaddingRight ? (jsxRuntime.jsx("td", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })), renderDetailPanel && !row.getIsGrouped() && (jsxRuntime.jsx(MRT_TableDetailPanel, { parentRowRef: rowRef, row: row, rowIndex: rowIndex, table: table, virtualRow: virtualRow }))] }));
2490
+ };
2491
+ const Memo_MRT_TableBodyRow = react.memo(MRT_TableBodyRow, (prev, next) => prev.row === next.row && prev.rowIndex === next.rowIndex);
2613
2492
 
2614
2493
  const MRT_TableBody = ({ columnVirtualizer, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, }) => {
2615
2494
  var _a, _b, _c, _d;
@@ -2624,7 +2503,7 @@ const MRT_TableBody = ({ columnVirtualizer, table, virtualColumns, virtualPaddin
2624
2503
  const vProps = rowVirtualizerProps instanceof Function
2625
2504
  ? rowVirtualizerProps({ table })
2626
2505
  : rowVirtualizerProps;
2627
- const shouldRankResults = React.useMemo(() => !manualExpanding &&
2506
+ const shouldRankResults = react.useMemo(() => !manualExpanding &&
2628
2507
  !manualFiltering &&
2629
2508
  !manualGrouping &&
2630
2509
  !manualSorting &&
@@ -2643,7 +2522,7 @@ const MRT_TableBody = ({ columnVirtualizer, table, virtualColumns, virtualPaddin
2643
2522
  manualSorting,
2644
2523
  sorting,
2645
2524
  ]);
2646
- const rows = React.useMemo(() => {
2525
+ const rows = react.useMemo(() => {
2647
2526
  if (!shouldRankResults)
2648
2527
  return getRowModel().rows;
2649
2528
  const rankedRows = getPrePaginationRowModel().rows.sort((a, b) => rankGlobalFuzzy(a, b));
@@ -2674,45 +2553,44 @@ const MRT_TableBody = ({ columnVirtualizer, table, virtualColumns, virtualPaddin
2674
2553
  const virtualRows = rowVirtualizer
2675
2554
  ? rowVirtualizer.getVirtualItems()
2676
2555
  : undefined;
2677
- return (React__default["default"].createElement(TableBody__default["default"], Object.assign({}, tableBodyProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table-row-group', height: rowVirtualizer
2556
+ return (jsxRuntime.jsx(TableBody__default["default"], Object.assign({}, tableBodyProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table-row-group', height: rowVirtualizer
2678
2557
  ? `${rowVirtualizer.getTotalSize()}px`
2679
2558
  : 'inherit', minHeight: !rows.length ? '100px' : undefined, position: 'relative' }, ((tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.sx) instanceof Function
2680
2559
  ? tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.sx(theme)
2681
- : tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.sx))) }), (_a = tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.children) !== null && _a !== void 0 ? _a : (!rows.length ? (React__default["default"].createElement("tr", { style: { display: layoutMode === 'grid' ? 'grid' : 'table-row' } },
2682
- React__default["default"].createElement("td", { colSpan: table.getVisibleLeafColumns().length, style: {
2683
- display: layoutMode === 'grid' ? 'grid' : 'table-cell',
2684
- } }, (_b = renderEmptyRowsFallback === null || renderEmptyRowsFallback === void 0 ? void 0 : renderEmptyRowsFallback({ table })) !== null && _b !== void 0 ? _b : (React__default["default"].createElement(Typography__default["default"], { sx: {
2685
- color: 'text.secondary',
2686
- fontStyle: 'italic',
2687
- maxWidth: `min(100vw, ${(_d = (_c = tablePaperRef.current) === null || _c === void 0 ? void 0 : _c.clientWidth) !== null && _d !== void 0 ? _d : 360}px)`,
2688
- py: '2rem',
2689
- textAlign: 'center',
2690
- width: '100%',
2691
- } }, globalFilter || columnFilters.length
2692
- ? localization.noResultsFound
2693
- : localization.noRecordsToDisplay))))) : (React__default["default"].createElement(React__default["default"].Fragment, null, (virtualRows !== null && virtualRows !== void 0 ? virtualRows : rows).map((rowOrVirtualRow, rowIndex) => {
2694
- const row = rowVirtualizer
2695
- ? rows[rowOrVirtualRow.index]
2696
- : rowOrVirtualRow;
2697
- const props = {
2698
- columnVirtualizer,
2699
- key: row.id,
2700
- measureElement: rowVirtualizer === null || rowVirtualizer === void 0 ? void 0 : rowVirtualizer.measureElement,
2701
- numRows: rows.length,
2702
- row,
2703
- rowIndex: rowVirtualizer ? rowOrVirtualRow.index : rowIndex,
2704
- table,
2705
- virtualColumns,
2706
- virtualPaddingLeft,
2707
- virtualPaddingRight,
2708
- virtualRow: rowVirtualizer
2709
- ? rowOrVirtualRow
2710
- : undefined,
2711
- };
2712
- return memoMode === 'rows' ? (React__default["default"].createElement(Memo_MRT_TableBodyRow, Object.assign({}, props))) : (React__default["default"].createElement(MRT_TableBodyRow, Object.assign({}, props)));
2713
- }))))));
2560
+ : tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.sx))) }, { children: (_a = tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.children) !== null && _a !== void 0 ? _a : (!rows.length ? (jsxRuntime.jsx("tr", Object.assign({ style: { display: layoutMode === 'grid' ? 'grid' : 'table-row' } }, { children: jsxRuntime.jsx("td", Object.assign({ colSpan: table.getVisibleLeafColumns().length, style: {
2561
+ display: layoutMode === 'grid' ? 'grid' : 'table-cell',
2562
+ } }, { children: (_b = renderEmptyRowsFallback === null || renderEmptyRowsFallback === void 0 ? void 0 : renderEmptyRowsFallback({ table })) !== null && _b !== void 0 ? _b : (jsxRuntime.jsx(Typography__default["default"], Object.assign({ sx: {
2563
+ color: 'text.secondary',
2564
+ fontStyle: 'italic',
2565
+ maxWidth: `min(100vw, ${(_d = (_c = tablePaperRef.current) === null || _c === void 0 ? void 0 : _c.clientWidth) !== null && _d !== void 0 ? _d : 360}px)`,
2566
+ py: '2rem',
2567
+ textAlign: 'center',
2568
+ width: '100%',
2569
+ } }, { children: globalFilter || columnFilters.length
2570
+ ? localization.noResultsFound
2571
+ : localization.noRecordsToDisplay }))) })) }))) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: (virtualRows !== null && virtualRows !== void 0 ? virtualRows : rows).map((rowOrVirtualRow, rowIndex) => {
2572
+ const row = rowVirtualizer
2573
+ ? rows[rowOrVirtualRow.index]
2574
+ : rowOrVirtualRow;
2575
+ const props = {
2576
+ columnVirtualizer,
2577
+ key: row.id,
2578
+ measureElement: rowVirtualizer === null || rowVirtualizer === void 0 ? void 0 : rowVirtualizer.measureElement,
2579
+ numRows: rows.length,
2580
+ row,
2581
+ rowIndex: rowVirtualizer ? rowOrVirtualRow.index : rowIndex,
2582
+ table,
2583
+ virtualColumns,
2584
+ virtualPaddingLeft,
2585
+ virtualPaddingRight,
2586
+ virtualRow: rowVirtualizer
2587
+ ? rowOrVirtualRow
2588
+ : undefined,
2589
+ };
2590
+ return memoMode === 'rows' ? (jsxRuntime.jsx(Memo_MRT_TableBodyRow, Object.assign({}, props))) : (jsxRuntime.jsx(MRT_TableBodyRow, Object.assign({}, props)));
2591
+ }) }))) })));
2714
2592
  };
2715
- const Memo_MRT_TableBody = React.memo(MRT_TableBody, (prev, next) => prev.table.options.data === next.table.options.data);
2593
+ const Memo_MRT_TableBody = react.memo(MRT_TableBody, (prev, next) => prev.table.options.data === next.table.options.data);
2716
2594
 
2717
2595
  const MRT_TableFooterCell = ({ footer, table }) => {
2718
2596
  var _a, _b, _c;
@@ -2728,7 +2606,7 @@ const MRT_TableFooterCell = ({ footer, table }) => {
2728
2606
  ? columnDef.muiTableFooterCellProps({ column, table })
2729
2607
  : columnDef.muiTableFooterCellProps;
2730
2608
  const tableCellProps = Object.assign(Object.assign({}, mTableFooterCellProps), mcTableFooterCellProps);
2731
- return (React__default["default"].createElement(TableCell__default["default"], Object.assign({ align: columnDefType === 'group' ? 'center' : 'left', colSpan: footer.colSpan, variant: "head" }, tableCellProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table-cell', fontWeight: 'bold', justifyContent: columnDefType === 'group' ? 'center' : undefined, p: density === 'compact'
2609
+ return (jsxRuntime.jsx(TableCell__default["default"], Object.assign({ align: columnDefType === 'group' ? 'center' : 'left', colSpan: footer.colSpan, variant: "head" }, tableCellProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'grid' : 'table-cell', fontWeight: 'bold', justifyContent: columnDefType === 'group' ? 'center' : undefined, p: density === 'compact'
2732
2610
  ? '0.5rem'
2733
2611
  : density === 'comfortable'
2734
2612
  ? '1rem'
@@ -2737,16 +2615,15 @@ const MRT_TableFooterCell = ({ footer, table }) => {
2737
2615
  table,
2738
2616
  theme,
2739
2617
  tableCellProps,
2740
- }))) }),
2741
- React__default["default"].createElement(React__default["default"].Fragment, null, footer.isPlaceholder
2742
- ? null
2743
- : (_c = (_b = (columnDef.Footer instanceof Function
2744
- ? (_a = columnDef.Footer) === null || _a === void 0 ? void 0 : _a.call(columnDef, {
2745
- column,
2746
- footer,
2747
- table,
2748
- })
2749
- : columnDef.Footer)) !== null && _b !== void 0 ? _b : columnDef.footer) !== null && _c !== void 0 ? _c : null)));
2618
+ }))) }, { children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: footer.isPlaceholder
2619
+ ? null
2620
+ : (_c = (_b = (columnDef.Footer instanceof Function
2621
+ ? (_a = columnDef.Footer) === null || _a === void 0 ? void 0 : _a.call(columnDef, {
2622
+ column,
2623
+ footer,
2624
+ table,
2625
+ })
2626
+ : columnDef.Footer)) !== null && _b !== void 0 ? _b : columnDef.footer) !== null && _c !== void 0 ? _c : null }) })));
2750
2627
  };
2751
2628
 
2752
2629
  const MRT_TableFooterRow = ({ footerGroup, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, }) => {
@@ -2760,17 +2637,14 @@ const MRT_TableFooterRow = ({ footerGroup, table, virtualColumns, virtualPadding
2760
2637
  const tableRowProps = muiTableFooterRowProps instanceof Function
2761
2638
  ? muiTableFooterRowProps({ footerGroup, table })
2762
2639
  : muiTableFooterRowProps;
2763
- return (React__default["default"].createElement(TableRow__default["default"], Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: styles.lighten(theme.palette.background.default, 0.04), display: layoutMode === 'grid' ? 'flex' : 'table-row', width: '100%' }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2640
+ return (jsxRuntime.jsxs(TableRow__default["default"], Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: styles.lighten(theme.palette.background.default, 0.04), display: layoutMode === 'grid' ? 'flex' : 'table-row', width: '100%' }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2764
2641
  ? tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx(theme)
2765
- : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))) }),
2766
- virtualPaddingLeft ? (React__default["default"].createElement("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null,
2767
- (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : footerGroup.headers).map((footerOrVirtualFooter) => {
2768
- const footer = virtualColumns
2769
- ? footerGroup.headers[footerOrVirtualFooter.index]
2770
- : footerOrVirtualFooter;
2771
- return (React__default["default"].createElement(MRT_TableFooterCell, { footer: footer, key: footer.id, table: table }));
2772
- }),
2773
- virtualPaddingRight ? (React__default["default"].createElement("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null));
2642
+ : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))) }, { children: [virtualPaddingLeft ? (jsxRuntime.jsx("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : footerGroup.headers).map((footerOrVirtualFooter) => {
2643
+ const footer = virtualColumns
2644
+ ? footerGroup.headers[footerOrVirtualFooter.index]
2645
+ : footerOrVirtualFooter;
2646
+ return (jsxRuntime.jsx(MRT_TableFooterCell, { footer: footer, table: table }, footer.id));
2647
+ }), virtualPaddingRight ? (jsxRuntime.jsx("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })));
2774
2648
  };
2775
2649
 
2776
2650
  const MRT_TableFooter = ({ table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, }) => {
@@ -2780,13 +2654,13 @@ const MRT_TableFooter = ({ table, virtualColumns, virtualPaddingLeft, virtualPad
2780
2654
  ? muiTableFooterProps({ table })
2781
2655
  : muiTableFooterProps;
2782
2656
  const stickFooter = (isFullScreen || enableStickyFooter) && enableStickyFooter !== false;
2783
- return (React__default["default"].createElement(TableFooter__default["default"], Object.assign({}, tableFooterProps, { sx: (theme) => (Object.assign({ bottom: stickFooter ? 0 : undefined, display: layoutMode === 'grid' ? 'grid' : 'table-row-group', opacity: stickFooter ? 0.97 : undefined, outline: stickFooter
2657
+ return (jsxRuntime.jsx(TableFooter__default["default"], Object.assign({}, tableFooterProps, { sx: (theme) => (Object.assign({ bottom: stickFooter ? 0 : undefined, display: layoutMode === 'grid' ? 'grid' : 'table-row-group', opacity: stickFooter ? 0.97 : undefined, outline: stickFooter
2784
2658
  ? theme.palette.mode === 'light'
2785
2659
  ? `1px solid ${theme.palette.grey[300]}`
2786
2660
  : `1px solid ${theme.palette.grey[700]}`
2787
2661
  : undefined, position: stickFooter ? 'sticky' : undefined, zIndex: stickFooter ? 1 : undefined }, ((tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.sx) instanceof Function
2788
2662
  ? tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.sx(theme)
2789
- : tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.sx))) }), getFooterGroups().map((footerGroup) => (React__default["default"].createElement(MRT_TableFooterRow, { footerGroup: footerGroup, key: footerGroup.id, table: table, virtualColumns: virtualColumns, virtualPaddingLeft: virtualPaddingLeft, virtualPaddingRight: virtualPaddingRight })))));
2663
+ : tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.sx))) }, { children: getFooterGroups().map((footerGroup) => (jsxRuntime.jsx(MRT_TableFooterRow, { footerGroup: footerGroup, table: table, virtualColumns: virtualColumns, virtualPaddingLeft: virtualPaddingLeft, virtualPaddingRight: virtualPaddingRight }, footerGroup.id))) })));
2790
2664
  };
2791
2665
 
2792
2666
  const MRT_Table = ({ table }) => {
@@ -2799,7 +2673,7 @@ const MRT_Table = ({ table }) => {
2799
2673
  const vProps = columnVirtualizerProps instanceof Function
2800
2674
  ? columnVirtualizerProps({ table })
2801
2675
  : columnVirtualizerProps;
2802
- const columnSizeVars = React.useMemo(() => {
2676
+ const columnSizeVars = react.useMemo(() => {
2803
2677
  const headers = getFlatHeaders();
2804
2678
  const colSizes = {};
2805
2679
  for (let i = 0; i < headers.length; i++) {
@@ -2811,7 +2685,7 @@ const MRT_Table = ({ table }) => {
2811
2685
  return colSizes;
2812
2686
  }, [columns, columnSizing, columnSizingInfo, columnVisibility]);
2813
2687
  //get first 16 column widths and average them
2814
- const averageColumnWidth = React.useMemo(() => {
2688
+ const averageColumnWidth = react.useMemo(() => {
2815
2689
  var _a, _b, _c, _d;
2816
2690
  if (!enableColumnVirtualization)
2817
2691
  return 0;
@@ -2820,7 +2694,7 @@ const MRT_Table = ({ table }) => {
2820
2694
  .rows[0]) === null || _a === void 0 ? void 0 : _a.getCenterVisibleCells()) === null || _b === void 0 ? void 0 : _b.slice(0, 16)) === null || _c === void 0 ? void 0 : _c.map((cell) => cell.column.getSize() * 1.2)) !== null && _d !== void 0 ? _d : [];
2821
2695
  return columnsWidths.reduce((a, b) => a + b, 0) / columnsWidths.length;
2822
2696
  }, [table.getRowModel().rows, columnPinning, columnVisibility]);
2823
- const [leftPinnedIndexes, rightPinnedIndexes] = React.useMemo(() => enableColumnVirtualization && enablePinning
2697
+ const [leftPinnedIndexes, rightPinnedIndexes] = react.useMemo(() => enableColumnVirtualization && enablePinning
2824
2698
  ? [
2825
2699
  table.getLeftLeafColumns().map((c) => c.getPinnedIndex()),
2826
2700
  table
@@ -2829,7 +2703,7 @@ const MRT_Table = ({ table }) => {
2829
2703
  ]
2830
2704
  : [[], []], [columnPinning, enableColumnVirtualization, enablePinning]);
2831
2705
  const columnVirtualizer = enableColumnVirtualization
2832
- ? reactVirtual.useVirtualizer(Object.assign({ count: table.getVisibleLeafColumns().length, estimateSize: () => averageColumnWidth, getScrollElement: () => tableContainerRef.current, horizontal: true, overscan: 3, rangeExtractor: React.useCallback((range) => [
2706
+ ? reactVirtual.useVirtualizer(Object.assign({ count: table.getVisibleLeafColumns().length, estimateSize: () => averageColumnWidth, getScrollElement: () => tableContainerRef.current, horizontal: true, overscan: 3, rangeExtractor: react.useCallback((range) => [
2833
2707
  ...new Set([
2834
2708
  ...leftPinnedIndexes,
2835
2709
  ...reactVirtual.defaultRangeExtractor(range),
@@ -2857,19 +2731,16 @@ const MRT_Table = ({ table }) => {
2857
2731
  virtualPaddingLeft,
2858
2732
  virtualPaddingRight,
2859
2733
  };
2860
- return (React__default["default"].createElement(Table__default["default"], Object.assign({ stickyHeader: enableStickyHeader || isFullScreen }, tableProps, { sx: (theme) => (Object.assign({ borderCollapse: 'separate', display: layoutMode === 'grid' ? 'grid' : 'table', tableLayout: layoutMode !== 'grid' && enableColumnResizing ? 'fixed' : undefined }, ((tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx) instanceof Function
2734
+ return (jsxRuntime.jsxs(Table__default["default"], Object.assign({ stickyHeader: enableStickyHeader || isFullScreen }, tableProps, { sx: (theme) => (Object.assign({ borderCollapse: 'separate', display: layoutMode === 'grid' ? 'grid' : 'table', tableLayout: layoutMode !== 'grid' && enableColumnResizing ? 'fixed' : undefined }, ((tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx) instanceof Function
2861
2735
  ? tableProps.sx(theme)
2862
- : tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx))), style: Object.assign(Object.assign({}, columnSizeVars), tableProps === null || tableProps === void 0 ? void 0 : tableProps.style) }),
2863
- enableTableHead && React__default["default"].createElement(MRT_TableHead, Object.assign({}, props)),
2864
- memoMode === 'table-body' || columnSizingInfo.isResizingColumn ? (React__default["default"].createElement(Memo_MRT_TableBody, Object.assign({ columnVirtualizer: columnVirtualizer }, props))) : (React__default["default"].createElement(MRT_TableBody, Object.assign({ columnVirtualizer: columnVirtualizer }, props))),
2865
- enableTableFooter && React__default["default"].createElement(MRT_TableFooter, Object.assign({}, props))));
2736
+ : tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx))), style: Object.assign(Object.assign({}, columnSizeVars), tableProps === null || tableProps === void 0 ? void 0 : tableProps.style) }, { children: [enableTableHead && jsxRuntime.jsx(MRT_TableHead, Object.assign({}, props)), memoMode === 'table-body' || columnSizingInfo.isResizingColumn ? (jsxRuntime.jsx(Memo_MRT_TableBody, Object.assign({ columnVirtualizer: columnVirtualizer }, props))) : (jsxRuntime.jsx(MRT_TableBody, Object.assign({ columnVirtualizer: columnVirtualizer }, props))), enableTableFooter && jsxRuntime.jsx(MRT_TableFooter, Object.assign({}, props))] })));
2866
2737
  };
2867
2738
 
2868
- const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
2739
+ const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? react.useLayoutEffect : react.useEffect;
2869
2740
  const MRT_TableContainer = ({ table }) => {
2870
2741
  const { getState, options: { enableStickyHeader, muiTableContainerProps }, refs: { tableContainerRef, bottomToolbarRef, topToolbarRef }, } = table;
2871
2742
  const { isFullScreen } = getState();
2872
- const [totalToolbarHeight, setTotalToolbarHeight] = React.useState(0);
2743
+ const [totalToolbarHeight, setTotalToolbarHeight] = react.useState(0);
2873
2744
  const tableContainerProps = muiTableContainerProps instanceof Function
2874
2745
  ? muiTableContainerProps({ table })
2875
2746
  : muiTableContainerProps;
@@ -2883,7 +2754,7 @@ const MRT_TableContainer = ({ table }) => {
2883
2754
  : 0;
2884
2755
  setTotalToolbarHeight(topToolbarHeight + bottomToolbarHeight);
2885
2756
  });
2886
- return (React__default["default"].createElement(TableContainer__default["default"], Object.assign({}, tableContainerProps, { ref: (node) => {
2757
+ return (jsxRuntime.jsx(TableContainer__default["default"], Object.assign({}, tableContainerProps, { ref: (node) => {
2887
2758
  if (node) {
2888
2759
  tableContainerRef.current = node;
2889
2760
  if (tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.ref) {
@@ -2897,8 +2768,7 @@ const MRT_TableContainer = ({ table }) => {
2897
2768
  ? tableContainerProps.sx(theme)
2898
2769
  : tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.sx))), style: Object.assign({ maxHeight: isFullScreen
2899
2770
  ? `calc(100vh - ${totalToolbarHeight}px)`
2900
- : undefined }, tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.style) }),
2901
- React__default["default"].createElement(MRT_Table, { table: table })));
2771
+ : undefined }, tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.style) }, { children: jsxRuntime.jsx(MRT_Table, { table: table }) })));
2902
2772
  };
2903
2773
 
2904
2774
  const MRT_TablePaper = ({ table }) => {
@@ -2907,7 +2777,7 @@ const MRT_TablePaper = ({ table }) => {
2907
2777
  const tablePaperProps = muiTablePaperProps instanceof Function
2908
2778
  ? muiTablePaperProps({ table })
2909
2779
  : muiTablePaperProps;
2910
- return (React__default["default"].createElement(Paper__default["default"], Object.assign({ elevation: 2 }, tablePaperProps, { ref: (ref) => {
2780
+ return (jsxRuntime.jsxs(Paper__default["default"], Object.assign({ elevation: 2 }, tablePaperProps, { ref: (ref) => {
2911
2781
  tablePaperRef.current = ref;
2912
2782
  if (tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.ref) {
2913
2783
  //@ts-ignore
@@ -2924,48 +2794,39 @@ const MRT_TablePaper = ({ table }) => {
2924
2794
  padding: 0,
2925
2795
  width: '100vw',
2926
2796
  }
2927
- : {})) }),
2928
- enableTopToolbar &&
2929
- (renderTopToolbar instanceof Function
2930
- ? renderTopToolbar({ table })
2931
- : renderTopToolbar !== null && renderTopToolbar !== void 0 ? renderTopToolbar : React__default["default"].createElement(MRT_TopToolbar, { table: table })),
2932
- React__default["default"].createElement(MRT_TableContainer, { table: table }),
2933
- enableBottomToolbar &&
2934
- (renderBottomToolbar instanceof Function
2935
- ? renderBottomToolbar({ table })
2936
- : renderBottomToolbar !== null && renderBottomToolbar !== void 0 ? renderBottomToolbar : React__default["default"].createElement(MRT_BottomToolbar, { table: table }))));
2797
+ : {})) }, { children: [enableTopToolbar &&
2798
+ (renderTopToolbar instanceof Function
2799
+ ? renderTopToolbar({ table })
2800
+ : renderTopToolbar !== null && renderTopToolbar !== void 0 ? renderTopToolbar : jsxRuntime.jsx(MRT_TopToolbar, { table: table })), jsxRuntime.jsx(MRT_TableContainer, { table: table }), enableBottomToolbar &&
2801
+ (renderBottomToolbar instanceof Function
2802
+ ? renderBottomToolbar({ table })
2803
+ : renderBottomToolbar !== null && renderBottomToolbar !== void 0 ? renderBottomToolbar : jsxRuntime.jsx(MRT_BottomToolbar, { table: table }))] })));
2937
2804
  };
2938
2805
 
2939
2806
  const MRT_EditRowModal = ({ open, row, table, }) => {
2940
2807
  const { options: { localization }, } = table;
2941
- return (React__default["default"].createElement(Dialog__default["default"], { open: open },
2942
- React__default["default"].createElement(DialogTitle__default["default"], { textAlign: "center" }, localization.edit),
2943
- React__default["default"].createElement(DialogContent__default["default"], null,
2944
- React__default["default"].createElement("form", { onSubmit: (e) => e.preventDefault() },
2945
- React__default["default"].createElement(Stack__default["default"], { sx: {
2946
- gap: '1.5rem',
2947
- minWidth: { xs: '300px', sm: '360px', md: '400px' },
2948
- pt: '1rem',
2949
- width: '100%',
2950
- } }, row
2951
- .getAllCells()
2952
- .filter((cell) => cell.column.columnDef.columnDefType === 'data')
2953
- .map((cell) => (React__default["default"].createElement(MRT_EditCellTextField, { cell: cell, key: cell.id, showLabel: true, table: table })))))),
2954
- React__default["default"].createElement(DialogActions__default["default"], { sx: { p: '1.25rem' } },
2955
- React__default["default"].createElement(MRT_EditActionButtons, { row: row, table: table, variant: "text" }))));
2808
+ return (jsxRuntime.jsxs(Dialog__default["default"], Object.assign({ open: open }, { children: [jsxRuntime.jsx(DialogTitle__default["default"], Object.assign({ textAlign: "center" }, { children: localization.edit })), jsxRuntime.jsx(DialogContent__default["default"], { children: jsxRuntime.jsx("form", Object.assign({ onSubmit: (e) => e.preventDefault() }, { children: jsxRuntime.jsx(Stack__default["default"], Object.assign({ sx: {
2809
+ gap: '1.5rem',
2810
+ minWidth: { xs: '300px', sm: '360px', md: '400px' },
2811
+ pt: '1rem',
2812
+ width: '100%',
2813
+ } }, { children: row
2814
+ .getAllCells()
2815
+ .filter((cell) => cell.column.columnDef.columnDefType === 'data')
2816
+ .map((cell) => (jsxRuntime.jsx(MRT_EditCellTextField, { cell: cell, showLabel: true, table: table }, cell.id))) })) })) }), jsxRuntime.jsx(DialogActions__default["default"], Object.assign({ sx: { p: '1.25rem' } }, { children: jsxRuntime.jsx(MRT_EditActionButtons, { row: row, table: table, variant: "text" }) }))] })));
2956
2817
  };
2957
2818
 
2958
2819
  const MRT_TableRoot = (props) => {
2959
2820
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13;
2960
- const bottomToolbarRef = React.useRef(null);
2961
- const editInputRefs = React.useRef({});
2962
- const filterInputRefs = React.useRef({});
2963
- const searchInputRef = React.useRef(null);
2964
- const tableContainerRef = React.useRef(null);
2965
- const tableHeadCellRefs = React.useRef({});
2966
- const tablePaperRef = React.useRef(null);
2967
- const topToolbarRef = React.useRef(null);
2968
- const initialState = React.useMemo(() => {
2821
+ const bottomToolbarRef = react.useRef(null);
2822
+ const editInputRefs = react.useRef({});
2823
+ const filterInputRefs = react.useRef({});
2824
+ const searchInputRef = react.useRef(null);
2825
+ const tableContainerRef = react.useRef(null);
2826
+ const tableHeadCellRefs = react.useRef({});
2827
+ const tablePaperRef = react.useRef(null);
2828
+ const topToolbarRef = react.useRef(null);
2829
+ const initialState = react.useMemo(() => {
2969
2830
  var _a, _b, _c;
2970
2831
  const initState = (_a = props.initialState) !== null && _a !== void 0 ? _a : {};
2971
2832
  initState.columnOrder =
@@ -2973,7 +2834,7 @@ const MRT_TableRoot = (props) => {
2973
2834
  initState.globalFilterFn = (_c = props.globalFilterFn) !== null && _c !== void 0 ? _c : 'fuzzy';
2974
2835
  return initState;
2975
2836
  }, []);
2976
- const [columnFilterFns, setColumnFilterFns] = React.useState(() => Object.assign({}, ...getAllLeafColumnDefs(props.columns).map((col) => {
2837
+ const [columnFilterFns, setColumnFilterFns] = react.useState(() => Object.assign({}, ...getAllLeafColumnDefs(props.columns).map((col) => {
2977
2838
  var _a, _b, _c, _d;
2978
2839
  return ({
2979
2840
  [getColumnId(col)]: col.filterFn instanceof Function
@@ -2981,32 +2842,32 @@ const MRT_TableRoot = (props) => {
2981
2842
  : (_d = (_b = col.filterFn) !== null && _b !== void 0 ? _b : (_c = initialState === null || initialState === void 0 ? void 0 : initialState.columnFilterFns) === null || _c === void 0 ? void 0 : _c[getColumnId(col)]) !== null && _d !== void 0 ? _d : getDefaultColumnFilterFn(col),
2982
2843
  });
2983
2844
  })));
2984
- const [columnOrder, setColumnOrder] = React.useState((_a = initialState.columnOrder) !== null && _a !== void 0 ? _a : []);
2985
- const [density, setDensity] = React.useState((_b = initialState === null || initialState === void 0 ? void 0 : initialState.density) !== null && _b !== void 0 ? _b : 'comfortable');
2986
- const [draggingColumn, setDraggingColumn] = React.useState((_c = initialState.draggingColumn) !== null && _c !== void 0 ? _c : null);
2987
- const [draggingRow, setDraggingRow] = React.useState((_d = initialState.draggingRow) !== null && _d !== void 0 ? _d : null);
2988
- const [editingCell, setEditingCell] = React.useState((_e = initialState.editingCell) !== null && _e !== void 0 ? _e : null);
2989
- const [editingRow, setEditingRow] = React.useState((_f = initialState.editingRow) !== null && _f !== void 0 ? _f : null);
2990
- const [globalFilterFn, setGlobalFilterFn] = React.useState((_g = initialState.globalFilterFn) !== null && _g !== void 0 ? _g : 'fuzzy');
2991
- const [grouping, setGrouping] = React.useState((_h = initialState.grouping) !== null && _h !== void 0 ? _h : []);
2992
- const [hoveredColumn, setHoveredColumn] = React.useState((_j = initialState.hoveredColumn) !== null && _j !== void 0 ? _j : null);
2993
- const [hoveredRow, setHoveredRow] = React.useState((_k = initialState.hoveredRow) !== null && _k !== void 0 ? _k : null);
2994
- const [isFullScreen, setIsFullScreen] = React.useState((_l = initialState === null || initialState === void 0 ? void 0 : initialState.isFullScreen) !== null && _l !== void 0 ? _l : false);
2995
- const [showAlertBanner, setShowAlertBanner] = React.useState((_o = (_m = props.initialState) === null || _m === void 0 ? void 0 : _m.showAlertBanner) !== null && _o !== void 0 ? _o : false);
2996
- const [showColumnFilters, setShowColumnFilters] = React.useState((_p = initialState === null || initialState === void 0 ? void 0 : initialState.showColumnFilters) !== null && _p !== void 0 ? _p : false);
2997
- const [showGlobalFilter, setShowGlobalFilter] = React.useState((_q = initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) !== null && _q !== void 0 ? _q : false);
2998
- const [showToolbarDropZone, setShowToolbarDropZone] = React.useState((_r = initialState === null || initialState === void 0 ? void 0 : initialState.showToolbarDropZone) !== null && _r !== void 0 ? _r : false);
2999
- const displayColumns = React.useMemo(() => {
2845
+ const [columnOrder, setColumnOrder] = react.useState((_a = initialState.columnOrder) !== null && _a !== void 0 ? _a : []);
2846
+ const [density, setDensity] = react.useState((_b = initialState === null || initialState === void 0 ? void 0 : initialState.density) !== null && _b !== void 0 ? _b : 'comfortable');
2847
+ const [draggingColumn, setDraggingColumn] = react.useState((_c = initialState.draggingColumn) !== null && _c !== void 0 ? _c : null);
2848
+ const [draggingRow, setDraggingRow] = react.useState((_d = initialState.draggingRow) !== null && _d !== void 0 ? _d : null);
2849
+ const [editingCell, setEditingCell] = react.useState((_e = initialState.editingCell) !== null && _e !== void 0 ? _e : null);
2850
+ const [editingRow, setEditingRow] = react.useState((_f = initialState.editingRow) !== null && _f !== void 0 ? _f : null);
2851
+ const [globalFilterFn, setGlobalFilterFn] = react.useState((_g = initialState.globalFilterFn) !== null && _g !== void 0 ? _g : 'fuzzy');
2852
+ const [grouping, setGrouping] = react.useState((_h = initialState.grouping) !== null && _h !== void 0 ? _h : []);
2853
+ const [hoveredColumn, setHoveredColumn] = react.useState((_j = initialState.hoveredColumn) !== null && _j !== void 0 ? _j : null);
2854
+ const [hoveredRow, setHoveredRow] = react.useState((_k = initialState.hoveredRow) !== null && _k !== void 0 ? _k : null);
2855
+ const [isFullScreen, setIsFullScreen] = react.useState((_l = initialState === null || initialState === void 0 ? void 0 : initialState.isFullScreen) !== null && _l !== void 0 ? _l : false);
2856
+ const [showAlertBanner, setShowAlertBanner] = react.useState((_o = (_m = props.initialState) === null || _m === void 0 ? void 0 : _m.showAlertBanner) !== null && _o !== void 0 ? _o : false);
2857
+ const [showColumnFilters, setShowColumnFilters] = react.useState((_p = initialState === null || initialState === void 0 ? void 0 : initialState.showColumnFilters) !== null && _p !== void 0 ? _p : false);
2858
+ const [showGlobalFilter, setShowGlobalFilter] = react.useState((_q = initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) !== null && _q !== void 0 ? _q : false);
2859
+ const [showToolbarDropZone, setShowToolbarDropZone] = react.useState((_r = initialState === null || initialState === void 0 ? void 0 : initialState.showToolbarDropZone) !== null && _r !== void 0 ? _r : false);
2860
+ const displayColumns = react.useMemo(() => {
3000
2861
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
3001
2862
  return [
3002
2863
  ((_b = (_a = props.state) === null || _a === void 0 ? void 0 : _a.columnOrder) !== null && _b !== void 0 ? _b : columnOrder).includes('mrt-row-drag') && Object.assign(Object.assign(Object.assign({ header: props.localization.move, size: 60 }, props.defaultDisplayColumn), (_c = props.displayColumnDefOptions) === null || _c === void 0 ? void 0 : _c['mrt-row-drag']), { id: 'mrt-row-drag' }),
3003
- ((_e = (_d = props.state) === null || _d === void 0 ? void 0 : _d.columnOrder) !== null && _e !== void 0 ? _e : columnOrder).includes('mrt-row-actions') && Object.assign(Object.assign(Object.assign({ Cell: ({ cell, row }) => (React__default["default"].createElement(MRT_ToggleRowActionMenuButton, { cell: cell, row: row, table: table })), header: props.localization.actions, size: 70 }, props.defaultDisplayColumn), (_f = props.displayColumnDefOptions) === null || _f === void 0 ? void 0 : _f['mrt-row-actions']), { id: 'mrt-row-actions' }),
2864
+ ((_e = (_d = props.state) === null || _d === void 0 ? void 0 : _d.columnOrder) !== null && _e !== void 0 ? _e : columnOrder).includes('mrt-row-actions') && Object.assign(Object.assign(Object.assign({ Cell: ({ cell, row }) => (jsxRuntime.jsx(MRT_ToggleRowActionMenuButton, { cell: cell, row: row, table: table })), header: props.localization.actions, size: 70 }, props.defaultDisplayColumn), (_f = props.displayColumnDefOptions) === null || _f === void 0 ? void 0 : _f['mrt-row-actions']), { id: 'mrt-row-actions' }),
3004
2865
  ((_h = (_g = props.state) === null || _g === void 0 ? void 0 : _g.columnOrder) !== null && _h !== void 0 ? _h : columnOrder).includes('mrt-row-expand') &&
3005
- showExpandColumn(props, (_k = (_j = props.state) === null || _j === void 0 ? void 0 : _j.grouping) !== null && _k !== void 0 ? _k : grouping) && Object.assign(Object.assign(Object.assign({ Cell: ({ row }) => (React__default["default"].createElement(MRT_ExpandButton, { row: row, table: table })), Header: props.enableExpandAll
3006
- ? () => React__default["default"].createElement(MRT_ExpandAllButton, { table: table })
2866
+ showExpandColumn(props, (_k = (_j = props.state) === null || _j === void 0 ? void 0 : _j.grouping) !== null && _k !== void 0 ? _k : grouping) && Object.assign(Object.assign(Object.assign({ Cell: ({ row }) => (jsxRuntime.jsx(MRT_ExpandButton, { row: row, table: table })), Header: props.enableExpandAll
2867
+ ? () => jsxRuntime.jsx(MRT_ExpandAllButton, { table: table })
3007
2868
  : null, header: props.localization.expand, size: 60 }, props.defaultDisplayColumn), (_l = props.displayColumnDefOptions) === null || _l === void 0 ? void 0 : _l['mrt-row-expand']), { id: 'mrt-row-expand' }),
3008
- ((_o = (_m = props.state) === null || _m === void 0 ? void 0 : _m.columnOrder) !== null && _o !== void 0 ? _o : columnOrder).includes('mrt-row-select') && Object.assign(Object.assign(Object.assign({ Cell: ({ row }) => (React__default["default"].createElement(MRT_SelectCheckbox, { row: row, table: table })), Header: props.enableSelectAll && props.enableMultiRowSelection
3009
- ? () => React__default["default"].createElement(MRT_SelectCheckbox, { selectAll: true, table: table })
2869
+ ((_o = (_m = props.state) === null || _m === void 0 ? void 0 : _m.columnOrder) !== null && _o !== void 0 ? _o : columnOrder).includes('mrt-row-select') && Object.assign(Object.assign(Object.assign({ Cell: ({ row }) => (jsxRuntime.jsx(MRT_SelectCheckbox, { row: row, table: table })), Header: props.enableSelectAll && props.enableMultiRowSelection
2870
+ ? () => jsxRuntime.jsx(MRT_SelectCheckbox, { selectAll: true, table: table })
3010
2871
  : null, header: props.localization.select, size: 60 }, props.defaultDisplayColumn), (_p = props.displayColumnDefOptions) === null || _p === void 0 ? void 0 : _p['mrt-row-select']), { id: 'mrt-row-select' }),
3011
2872
  ((_r = (_q = props.state) === null || _q === void 0 ? void 0 : _q.columnOrder) !== null && _r !== void 0 ? _r : columnOrder).includes('mrt-row-numbers') && Object.assign(Object.assign(Object.assign({ Cell: ({ row }) => row.index + 1, Header: () => props.localization.rowNumber, header: props.localization.rowNumbers, size: 60 }, props.defaultDisplayColumn), (_s = props.displayColumnDefOptions) === null || _s === void 0 ? void 0 : _s['mrt-row-numbers']), { id: 'mrt-row-numbers' }),
3012
2873
  ].filter(Boolean);
@@ -3036,7 +2897,7 @@ const MRT_TableRoot = (props) => {
3036
2897
  (_s = props.state) === null || _s === void 0 ? void 0 : _s.columnOrder,
3037
2898
  (_t = props.state) === null || _t === void 0 ? void 0 : _t.grouping,
3038
2899
  ]);
3039
- const columnDefs = React.useMemo(() => {
2900
+ const columnDefs = react.useMemo(() => {
3040
2901
  var _a, _b, _c;
3041
2902
  return prepareColumns({
3042
2903
  aggregationFns: props.aggregationFns,
@@ -3052,7 +2913,7 @@ const MRT_TableRoot = (props) => {
3052
2913
  props.columns,
3053
2914
  (_u = props.state) === null || _u === void 0 ? void 0 : _u.columnFilterFns,
3054
2915
  ]);
3055
- const data = React.useMemo(() => {
2916
+ const data = react.useMemo(() => {
3056
2917
  var _a, _b, _c, _d, _e;
3057
2918
  return (((_a = props.state) === null || _a === void 0 ? void 0 : _a.isLoading) || ((_b = props.state) === null || _b === void 0 ? void 0 : _b.showSkeletons)) &&
3058
2919
  !props.data.length
@@ -3101,13 +2962,13 @@ const MRT_TableRoot = (props) => {
3101
2962
  if (props.tableInstanceRef) {
3102
2963
  props.tableInstanceRef.current = table;
3103
2964
  }
3104
- const initialBodyHeight = React.useRef();
3105
- React.useEffect(() => {
2965
+ const initialBodyHeight = react.useRef();
2966
+ react.useEffect(() => {
3106
2967
  if (typeof window !== 'undefined') {
3107
2968
  initialBodyHeight.current = document.body.style.height;
3108
2969
  }
3109
2970
  }, []);
3110
- React.useEffect(() => {
2971
+ react.useEffect(() => {
3111
2972
  if (typeof window !== 'undefined') {
3112
2973
  if (table.getState().isFullScreen) {
3113
2974
  document.body.style.height = '100vh';
@@ -3118,7 +2979,7 @@ const MRT_TableRoot = (props) => {
3118
2979
  }
3119
2980
  }, [table.getState().isFullScreen]);
3120
2981
  //if page index is out of bounds, set it to the last page
3121
- React.useEffect(() => {
2982
+ react.useEffect(() => {
3122
2983
  var _a;
3123
2984
  const { pageIndex, pageSize } = table.getState().pagination;
3124
2985
  const totalRowCount = (_a = props.rowCount) !== null && _a !== void 0 ? _a : table.getPrePaginationRowModel().rows.length;
@@ -3127,115 +2988,19 @@ const MRT_TableRoot = (props) => {
3127
2988
  table.setPageIndex(Math.floor(totalRowCount / pageSize));
3128
2989
  }
3129
2990
  }, [props.rowCount, table.getPrePaginationRowModel().rows.length]);
3130
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
3131
- React__default["default"].createElement(Dialog__default["default"], { PaperComponent: Box__default["default"], TransitionComponent: !props.enableRowVirtualization ? Grow__default["default"] : undefined, disablePortal: true, fullScreen: true, keepMounted: false, onClose: () => table.setIsFullScreen(false), open: table.getState().isFullScreen, transitionDuration: 400 },
3132
- React__default["default"].createElement(MRT_TablePaper, { table: table })),
3133
- !table.getState().isFullScreen && (React__default["default"].createElement(MRT_TablePaper, { table: table })),
3134
- editingRow && props.editingMode === 'modal' && (React__default["default"].createElement(MRT_EditRowModal, { row: editingRow, table: table, open: true }))));
3135
- };
3136
-
3137
- const MRT_Localization_EN = {
3138
- actions: 'Actions',
3139
- and: 'and',
3140
- cancel: 'Cancel',
3141
- changeFilterMode: 'Change filter mode',
3142
- changeSearchMode: 'Change search mode',
3143
- clearFilter: 'Clear filter',
3144
- clearSearch: 'Clear search',
3145
- clearSort: 'Clear sort',
3146
- clickToCopy: 'Click to copy',
3147
- collapse: 'Collapse',
3148
- collapseAll: 'Collapse all',
3149
- columnActions: 'Column Actions',
3150
- copiedToClipboard: 'Copied to clipboard',
3151
- dropToGroupBy: 'Drop to group by {column}',
3152
- edit: 'Edit',
3153
- expand: 'Expand',
3154
- expandAll: 'Expand all',
3155
- filterArrIncludes: 'Includes',
3156
- filterArrIncludesAll: 'Includes all',
3157
- filterArrIncludesSome: 'Includes',
3158
- filterBetween: 'Between',
3159
- filterBetweenInclusive: 'Between Inclusive',
3160
- filterByColumn: 'Filter by {column}',
3161
- filterContains: 'Contains',
3162
- filterEmpty: 'Empty',
3163
- filterEndsWith: 'Ends With',
3164
- filterEquals: 'Equals',
3165
- filterEqualsString: 'Equals',
3166
- filterFuzzy: 'Fuzzy',
3167
- filterGreaterThan: 'Greater Than',
3168
- filterGreaterThanOrEqualTo: 'Greater Than Or Equal To',
3169
- filterInNumberRange: 'Between',
3170
- filterIncludesString: 'Contains',
3171
- filterIncludesStringSensitive: 'Contains',
3172
- filterLessThan: 'Less Than',
3173
- filterLessThanOrEqualTo: 'Less Than Or Equal To',
3174
- filterMode: 'Filter Mode: {filterType}',
3175
- filterNotEmpty: 'Not Empty',
3176
- filterNotEquals: 'Not Equals',
3177
- filterStartsWith: 'Starts With',
3178
- filterWeakEquals: 'Equals',
3179
- filteringByColumn: 'Filtering by {column} - {filterType} {filterValue}',
3180
- goToFirstPage: 'Go to first page',
3181
- goToLastPage: 'Go to last page',
3182
- goToNextPage: 'Go to next page',
3183
- goToPreviousPage: 'Go to previous page',
3184
- grab: 'Grab',
3185
- groupByColumn: 'Group by {column}',
3186
- groupedBy: 'Grouped by ',
3187
- hideAll: 'Hide all',
3188
- hideColumn: 'Hide {column} column',
3189
- max: 'Max',
3190
- min: 'Min',
3191
- move: 'Move',
3192
- noRecordsToDisplay: 'No records to display',
3193
- noResultsFound: 'No results found',
3194
- of: 'of',
3195
- or: 'or',
3196
- pinToLeft: 'Pin to left',
3197
- pinToRight: 'Pin to right',
3198
- resetColumnSize: 'Reset column size',
3199
- resetOrder: 'Reset order',
3200
- rowActions: 'Row Actions',
3201
- rowNumber: '#',
3202
- rowNumbers: 'Row Numbers',
3203
- rowsPerPage: 'Rows per page',
3204
- save: 'Save',
3205
- search: 'Search',
3206
- selectedCountOfRowCountRowsSelected: '{selectedCount} of {rowCount} row(s) selected',
3207
- select: 'Select',
3208
- showAll: 'Show all',
3209
- showAllColumns: 'Show all columns',
3210
- showHideColumns: 'Show/Hide columns',
3211
- showHideFilters: 'Show/Hide filters',
3212
- showHideSearch: 'Show/Hide search',
3213
- sortByColumnAsc: 'Sort by {column} ascending',
3214
- sortByColumnDesc: 'Sort by {column} descending',
3215
- sortedByColumnAsc: 'Sorted by {column} ascending',
3216
- sortedByColumnDesc: 'Sorted by {column} descending',
3217
- thenBy: ', then by ',
3218
- toggleDensity: 'Toggle density',
3219
- toggleFullScreen: 'Toggle full screen',
3220
- toggleSelectAll: 'Toggle select all',
3221
- toggleSelectRow: 'Toggle select row',
3222
- toggleVisibility: 'Toggle visibility',
3223
- ungroupByColumn: 'Ungroup by {column}',
3224
- unpin: 'Unpin',
3225
- unpinAll: 'Unpin all',
3226
- unsorted: 'Unsorted',
2991
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Dialog__default["default"], Object.assign({ PaperComponent: Box__default["default"], TransitionComponent: !props.enableRowVirtualization ? Grow__default["default"] : undefined, disablePortal: true, fullScreen: true, keepMounted: false, onClose: () => table.setIsFullScreen(false), open: table.getState().isFullScreen, transitionDuration: 400 }, { children: jsxRuntime.jsx(MRT_TablePaper, { table: table }) })), !table.getState().isFullScreen && (jsxRuntime.jsx(MRT_TablePaper, { table: table })), editingRow && props.editingMode === 'modal' && (jsxRuntime.jsx(MRT_EditRowModal, { row: editingRow, table: table, open: true }))] }));
3227
2992
  };
3228
2993
 
3229
2994
  const MaterialReactTable = (_a) => {
3230
2995
  var _b;
3231
2996
  var { aggregationFns, autoResetExpanded = false, columnResizeMode = 'onChange', defaultColumn, defaultDisplayColumn, editingMode = 'modal', enableBottomToolbar = true, enableColumnActions = true, enableColumnFilters = true, enableColumnOrdering = false, enableColumnResizing = false, enableDensityToggle = true, enableExpandAll = true, enableFilterMatchHighlighting = true, enableFilters = true, enableFullScreenToggle = true, enableGlobalFilter = true, enableGlobalFilterRankedResults = true, enableGrouping = false, enableHiding = true, enableMultiRowSelection = true, enableMultiSort = true, enablePagination = true, enablePinning = false, enableRowSelection = false, enableSelectAll = true, enableSorting = true, enableStickyHeader = false, enableTableFooter = true, enableTableHead = true, enableToolbarInternalActions = true, enableTopToolbar = true, filterFns, icons, layoutMode = 'semantic', localization, manualFiltering, manualGrouping, manualPagination, manualSorting, positionActionsColumn = 'first', positionExpandColumn = 'first', positionGlobalFilter = 'right', positionPagination = 'bottom', positionToolbarAlertBanner = 'top', positionToolbarDropZone = 'top', rowNumberMode = 'original', selectAllMode = 'page', sortingFns } = _a, rest = __rest(_a, ["aggregationFns", "autoResetExpanded", "columnResizeMode", "defaultColumn", "defaultDisplayColumn", "editingMode", "enableBottomToolbar", "enableColumnActions", "enableColumnFilters", "enableColumnOrdering", "enableColumnResizing", "enableDensityToggle", "enableExpandAll", "enableFilterMatchHighlighting", "enableFilters", "enableFullScreenToggle", "enableGlobalFilter", "enableGlobalFilterRankedResults", "enableGrouping", "enableHiding", "enableMultiRowSelection", "enableMultiSort", "enablePagination", "enablePinning", "enableRowSelection", "enableSelectAll", "enableSorting", "enableStickyHeader", "enableTableFooter", "enableTableHead", "enableToolbarInternalActions", "enableTopToolbar", "filterFns", "icons", "layoutMode", "localization", "manualFiltering", "manualGrouping", "manualPagination", "manualSorting", "positionActionsColumn", "positionExpandColumn", "positionGlobalFilter", "positionPagination", "positionToolbarAlertBanner", "positionToolbarDropZone", "rowNumberMode", "selectAllMode", "sortingFns"]);
3232
- const _icons = React.useMemo(() => (Object.assign(Object.assign({}, MRT_Default_Icons), icons)), [icons]);
3233
- const _localization = React.useMemo(() => (Object.assign(Object.assign({}, MRT_Localization_EN), localization)), [localization]);
3234
- const _aggregationFns = React.useMemo(() => (Object.assign(Object.assign({}, MRT_AggregationFns), aggregationFns)), []);
3235
- const _filterFns = React.useMemo(() => (Object.assign(Object.assign({}, MRT_FilterFns), filterFns)), []);
3236
- const _sortingFns = React.useMemo(() => (Object.assign(Object.assign({}, MRT_SortingFns), sortingFns)), []);
3237
- const _defaultColumn = React.useMemo(() => (Object.assign(Object.assign({}, MRT_DefaultColumn), defaultColumn)), [defaultColumn]);
3238
- const _defaultDisplayColumn = React.useMemo(() => (Object.assign(Object.assign({}, MRT_DefaultDisplayColumn), defaultDisplayColumn)), [defaultDisplayColumn]);
2997
+ const _icons = react.useMemo(() => (Object.assign(Object.assign({}, MRT_Default_Icons), icons)), [icons]);
2998
+ const _localization = react.useMemo(() => (Object.assign(Object.assign({}, MRT_Localization_EN), localization)), [localization]);
2999
+ const _aggregationFns = react.useMemo(() => (Object.assign(Object.assign({}, MRT_AggregationFns), aggregationFns)), []);
3000
+ const _filterFns = react.useMemo(() => (Object.assign(Object.assign({}, MRT_FilterFns), filterFns)), []);
3001
+ const _sortingFns = react.useMemo(() => (Object.assign(Object.assign({}, MRT_SortingFns), sortingFns)), []);
3002
+ const _defaultColumn = react.useMemo(() => (Object.assign(Object.assign({}, MRT_DefaultColumn), defaultColumn)), [defaultColumn]);
3003
+ const _defaultDisplayColumn = react.useMemo(() => (Object.assign(Object.assign({}, MRT_DefaultDisplayColumn), defaultDisplayColumn)), [defaultDisplayColumn]);
3239
3004
  if (rest.enableRowVirtualization || rest.enableColumnVirtualization) {
3240
3005
  layoutMode = 'grid';
3241
3006
  }
@@ -3251,7 +3016,7 @@ const MaterialReactTable = (_a) => {
3251
3016
  manualPagination = true;
3252
3017
  manualSorting = true;
3253
3018
  }
3254
- return (React__default["default"].createElement(MRT_TableRoot, Object.assign({ aggregationFns: _aggregationFns, autoResetExpanded: autoResetExpanded, columnResizeMode: columnResizeMode, defaultColumn: _defaultColumn, defaultDisplayColumn: _defaultDisplayColumn, editingMode: editingMode, enableBottomToolbar: enableBottomToolbar, enableColumnActions: enableColumnActions, enableColumnFilters: enableColumnFilters, enableColumnOrdering: enableColumnOrdering, enableColumnResizing: enableColumnResizing, enableDensityToggle: enableDensityToggle, enableExpandAll: enableExpandAll, enableFilterMatchHighlighting: enableFilterMatchHighlighting, enableFilters: enableFilters, enableFullScreenToggle: enableFullScreenToggle, enableGlobalFilter: enableGlobalFilter, enableGlobalFilterRankedResults: enableGlobalFilterRankedResults, enableGrouping: enableGrouping, enableHiding: enableHiding, enableMultiRowSelection: enableMultiRowSelection, enableMultiSort: enableMultiSort, enablePagination: enablePagination, enablePinning: enablePinning, enableRowSelection: enableRowSelection, enableSelectAll: enableSelectAll, enableSorting: enableSorting, enableStickyHeader: enableStickyHeader, enableTableFooter: enableTableFooter, enableTableHead: enableTableHead, enableToolbarInternalActions: enableToolbarInternalActions, enableTopToolbar: enableTopToolbar, filterFns: _filterFns, icons: _icons, layoutMode: layoutMode, localization: _localization, manualFiltering: manualFiltering, manualGrouping: manualGrouping, manualPagination: manualPagination, manualSorting: manualSorting, positionActionsColumn: positionActionsColumn, positionExpandColumn: positionExpandColumn, positionGlobalFilter: positionGlobalFilter, positionPagination: positionPagination, positionToolbarAlertBanner: positionToolbarAlertBanner, positionToolbarDropZone: positionToolbarDropZone, rowNumberMode: rowNumberMode, selectAllMode: selectAllMode, sortingFns: _sortingFns }, rest)));
3019
+ return (jsxRuntime.jsx(MRT_TableRoot, Object.assign({ aggregationFns: _aggregationFns, autoResetExpanded: autoResetExpanded, columnResizeMode: columnResizeMode, defaultColumn: _defaultColumn, defaultDisplayColumn: _defaultDisplayColumn, editingMode: editingMode, enableBottomToolbar: enableBottomToolbar, enableColumnActions: enableColumnActions, enableColumnFilters: enableColumnFilters, enableColumnOrdering: enableColumnOrdering, enableColumnResizing: enableColumnResizing, enableDensityToggle: enableDensityToggle, enableExpandAll: enableExpandAll, enableFilterMatchHighlighting: enableFilterMatchHighlighting, enableFilters: enableFilters, enableFullScreenToggle: enableFullScreenToggle, enableGlobalFilter: enableGlobalFilter, enableGlobalFilterRankedResults: enableGlobalFilterRankedResults, enableGrouping: enableGrouping, enableHiding: enableHiding, enableMultiRowSelection: enableMultiRowSelection, enableMultiSort: enableMultiSort, enablePagination: enablePagination, enablePinning: enablePinning, enableRowSelection: enableRowSelection, enableSelectAll: enableSelectAll, enableSorting: enableSorting, enableStickyHeader: enableStickyHeader, enableTableFooter: enableTableFooter, enableTableHead: enableTableHead, enableToolbarInternalActions: enableToolbarInternalActions, enableTopToolbar: enableTopToolbar, filterFns: _filterFns, icons: _icons, layoutMode: layoutMode, localization: _localization, manualFiltering: manualFiltering, manualGrouping: manualGrouping, manualPagination: manualPagination, manualSorting: manualSorting, positionActionsColumn: positionActionsColumn, positionExpandColumn: positionExpandColumn, positionGlobalFilter: positionGlobalFilter, positionPagination: positionPagination, positionToolbarAlertBanner: positionToolbarAlertBanner, positionToolbarDropZone: positionToolbarDropZone, rowNumberMode: rowNumberMode, selectAllMode: selectAllMode, sortingFns: _sortingFns }, rest)));
3255
3020
  };
3256
3021
 
3257
3022
  exports.MRT_AggregationFns = MRT_AggregationFns;
@@ -3276,5 +3041,6 @@ exports.MRT_ToolbarAlertBanner = MRT_ToolbarAlertBanner;
3276
3041
  exports.MRT_ToolbarDropZone = MRT_ToolbarDropZone;
3277
3042
  exports.MRT_ToolbarInternalButtons = MRT_ToolbarInternalButtons;
3278
3043
  exports.MRT_TopToolbar = MRT_TopToolbar;
3044
+ exports.MaterialReactTable = MaterialReactTable;
3279
3045
  exports["default"] = MaterialReactTable;
3280
3046
  //# sourceMappingURL=index.js.map