material-react-table-narender 1.0.0 → 2.13.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1998) hide show
  1. package/README.md +5 -5
  2. package/dist/index.d.ts +1872 -0
  3. package/dist/index.esm.js +4288 -0
  4. package/dist/index.esm.js.map +1 -0
  5. package/dist/index.js +4482 -0
  6. package/dist/index.js.map +1 -0
  7. package/locales/ar/index.d.ts +3 -0
  8. package/locales/ar/index.esm.d.ts +3 -0
  9. package/locales/ar/index.esm.js +95 -0
  10. package/locales/ar/index.js +99 -0
  11. package/locales/ar/package.json +6 -0
  12. package/locales/az/index.d.ts +3 -0
  13. package/locales/az/index.esm.d.ts +3 -0
  14. package/locales/az/index.esm.js +95 -0
  15. package/locales/az/index.js +99 -0
  16. package/locales/az/package.json +6 -0
  17. package/locales/bg/index.d.ts +3 -0
  18. package/locales/bg/index.esm.d.ts +3 -0
  19. package/locales/bg/index.esm.js +95 -0
  20. package/locales/bg/index.js +99 -0
  21. package/locales/bg/package.json +6 -0
  22. package/locales/cs/index.d.ts +3 -0
  23. package/locales/cs/index.esm.d.ts +3 -0
  24. package/locales/cs/index.esm.js +95 -0
  25. package/locales/cs/index.js +99 -0
  26. package/locales/cs/package.json +6 -0
  27. package/locales/da/index.d.ts +3 -0
  28. package/locales/da/index.esm.d.ts +3 -0
  29. package/locales/da/index.esm.js +95 -0
  30. package/locales/da/index.js +99 -0
  31. package/locales/da/package.json +6 -0
  32. package/locales/de/index.d.ts +3 -0
  33. package/locales/de/index.esm.d.ts +3 -0
  34. package/locales/de/index.esm.js +95 -0
  35. package/locales/de/index.js +99 -0
  36. package/locales/de/package.json +6 -0
  37. package/locales/el/index.d.ts +3 -0
  38. package/locales/el/index.esm.d.ts +3 -0
  39. package/locales/el/index.esm.js +95 -0
  40. package/locales/el/index.js +99 -0
  41. package/locales/el/package.json +6 -0
  42. package/locales/en/index.d.ts +3 -0
  43. package/locales/en/index.esm.d.ts +3 -0
  44. package/locales/en/index.esm.js +95 -0
  45. package/locales/en/index.js +99 -0
  46. package/locales/en/package.json +6 -0
  47. package/locales/es/index.d.ts +3 -0
  48. package/locales/es/index.esm.d.ts +3 -0
  49. package/locales/es/index.esm.js +95 -0
  50. package/locales/es/index.js +99 -0
  51. package/locales/es/package.json +6 -0
  52. package/locales/et/index.d.ts +3 -0
  53. package/locales/et/index.esm.d.ts +3 -0
  54. package/locales/et/index.esm.js +95 -0
  55. package/locales/et/index.js +99 -0
  56. package/locales/et/package.json +6 -0
  57. package/locales/fa/index.d.ts +3 -0
  58. package/locales/fa/index.esm.d.ts +3 -0
  59. package/locales/fa/index.esm.js +95 -0
  60. package/locales/fa/index.js +99 -0
  61. package/locales/fa/package.json +6 -0
  62. package/locales/fi/index.d.ts +3 -0
  63. package/locales/fi/index.esm.d.ts +3 -0
  64. package/locales/fi/index.esm.js +95 -0
  65. package/locales/fi/index.js +99 -0
  66. package/locales/fi/package.json +6 -0
  67. package/locales/fr/index.d.ts +3 -0
  68. package/locales/fr/index.esm.d.ts +3 -0
  69. package/locales/fr/index.esm.js +95 -0
  70. package/locales/fr/index.js +99 -0
  71. package/locales/fr/package.json +6 -0
  72. package/locales/he/index.d.ts +3 -0
  73. package/locales/he/index.esm.d.ts +3 -0
  74. package/locales/he/index.esm.js +95 -0
  75. package/locales/he/index.js +99 -0
  76. package/locales/he/package.json +6 -0
  77. package/locales/hr/index.d.ts +3 -0
  78. package/locales/hr/index.esm.d.ts +3 -0
  79. package/locales/hr/index.esm.js +95 -0
  80. package/locales/hr/index.js +99 -0
  81. package/locales/hr/package.json +6 -0
  82. package/locales/hu/index.d.ts +3 -0
  83. package/locales/hu/index.esm.d.ts +3 -0
  84. package/locales/hu/index.esm.js +95 -0
  85. package/locales/hu/index.js +99 -0
  86. package/locales/hu/package.json +6 -0
  87. package/locales/hy/index.d.ts +3 -0
  88. package/locales/hy/index.esm.d.ts +3 -0
  89. package/locales/hy/index.esm.js +95 -0
  90. package/locales/hy/index.js +99 -0
  91. package/locales/hy/package.json +6 -0
  92. package/locales/id/index.d.ts +3 -0
  93. package/locales/id/index.esm.d.ts +3 -0
  94. package/locales/id/index.esm.js +95 -0
  95. package/locales/id/index.js +99 -0
  96. package/locales/id/package.json +6 -0
  97. package/locales/it/index.d.ts +3 -0
  98. package/locales/it/index.esm.d.ts +3 -0
  99. package/locales/it/index.esm.js +95 -0
  100. package/locales/it/index.js +99 -0
  101. package/locales/it/package.json +6 -0
  102. package/locales/ja/index.d.ts +3 -0
  103. package/locales/ja/index.esm.d.ts +3 -0
  104. package/locales/ja/index.esm.js +95 -0
  105. package/locales/ja/index.js +99 -0
  106. package/locales/ja/package.json +6 -0
  107. package/locales/ko/index.d.ts +3 -0
  108. package/locales/ko/index.esm.d.ts +3 -0
  109. package/locales/ko/index.esm.js +95 -0
  110. package/locales/ko/index.js +99 -0
  111. package/locales/ko/package.json +6 -0
  112. package/locales/nl/index.d.ts +3 -0
  113. package/locales/nl/index.esm.d.ts +3 -0
  114. package/locales/nl/index.esm.js +95 -0
  115. package/locales/nl/index.js +99 -0
  116. package/locales/nl/package.json +6 -0
  117. package/locales/no/index.d.ts +3 -0
  118. package/locales/no/index.esm.d.ts +3 -0
  119. package/locales/no/index.esm.js +95 -0
  120. package/locales/no/index.js +99 -0
  121. package/locales/no/package.json +6 -0
  122. package/locales/np/index.d.ts +3 -0
  123. package/locales/np/index.esm.d.ts +3 -0
  124. package/locales/np/index.esm.js +95 -0
  125. package/locales/np/index.js +99 -0
  126. package/locales/np/package.json +6 -0
  127. package/locales/pl/index.d.ts +3 -0
  128. package/locales/pl/index.esm.d.ts +3 -0
  129. package/locales/pl/index.esm.js +95 -0
  130. package/locales/pl/index.js +99 -0
  131. package/locales/pl/package.json +6 -0
  132. package/locales/pt/index.d.ts +3 -0
  133. package/locales/pt/index.esm.d.ts +3 -0
  134. package/locales/pt/index.esm.js +95 -0
  135. package/locales/pt/index.js +99 -0
  136. package/locales/pt/package.json +6 -0
  137. package/locales/pt-BR/index.d.ts +3 -0
  138. package/locales/pt-BR/index.esm.d.ts +3 -0
  139. package/locales/pt-BR/index.esm.js +95 -0
  140. package/locales/pt-BR/index.js +99 -0
  141. package/locales/pt-BR/package.json +6 -0
  142. package/locales/ro/index.d.ts +3 -0
  143. package/locales/ro/index.esm.d.ts +3 -0
  144. package/locales/ro/index.esm.js +95 -0
  145. package/locales/ro/index.js +99 -0
  146. package/locales/ro/package.json +6 -0
  147. package/locales/ru/index.d.ts +3 -0
  148. package/locales/ru/index.esm.d.ts +3 -0
  149. package/locales/ru/index.esm.js +95 -0
  150. package/locales/ru/index.js +99 -0
  151. package/locales/ru/package.json +6 -0
  152. package/locales/sk/index.d.ts +3 -0
  153. package/locales/sk/index.esm.d.ts +3 -0
  154. package/locales/sk/index.esm.js +95 -0
  155. package/locales/sk/index.js +99 -0
  156. package/locales/sk/package.json +6 -0
  157. package/locales/sr-Cyrl-RS/index.d.ts +3 -0
  158. package/locales/sr-Cyrl-RS/index.esm.d.ts +3 -0
  159. package/locales/sr-Cyrl-RS/index.esm.js +95 -0
  160. package/locales/sr-Cyrl-RS/index.js +99 -0
  161. package/locales/sr-Cyrl-RS/package.json +6 -0
  162. package/locales/sr-Latn-RS/index.d.ts +3 -0
  163. package/locales/sr-Latn-RS/index.esm.d.ts +3 -0
  164. package/locales/sr-Latn-RS/index.esm.js +95 -0
  165. package/locales/sr-Latn-RS/index.js +99 -0
  166. package/locales/sr-Latn-RS/package.json +6 -0
  167. package/locales/sv/index.d.ts +3 -0
  168. package/locales/sv/index.esm.d.ts +3 -0
  169. package/locales/sv/index.esm.js +95 -0
  170. package/locales/sv/index.js +99 -0
  171. package/locales/sv/package.json +6 -0
  172. package/locales/tr/index.d.ts +3 -0
  173. package/locales/tr/index.esm.d.ts +3 -0
  174. package/locales/tr/index.esm.js +95 -0
  175. package/locales/tr/index.js +99 -0
  176. package/locales/tr/package.json +6 -0
  177. package/locales/uk/index.d.ts +3 -0
  178. package/locales/uk/index.esm.d.ts +3 -0
  179. package/locales/uk/index.esm.js +95 -0
  180. package/locales/uk/index.js +99 -0
  181. package/locales/uk/package.json +6 -0
  182. package/locales/vi/index.d.ts +3 -0
  183. package/locales/vi/index.esm.d.ts +3 -0
  184. package/locales/vi/index.esm.js +95 -0
  185. package/locales/vi/index.js +99 -0
  186. package/locales/vi/package.json +6 -0
  187. package/locales/zh-Hans/index.d.ts +3 -0
  188. package/locales/zh-Hans/index.esm.d.ts +3 -0
  189. package/locales/zh-Hans/index.esm.js +95 -0
  190. package/locales/zh-Hans/index.js +99 -0
  191. package/locales/zh-Hans/package.json +6 -0
  192. package/locales/zh-Hant/index.d.ts +3 -0
  193. package/locales/zh-Hant/index.esm.d.ts +3 -0
  194. package/locales/zh-Hant/index.esm.js +95 -0
  195. package/locales/zh-Hant/index.js +99 -0
  196. package/locales/zh-Hant/package.json +6 -0
  197. package/package.json +122 -66
  198. package/src/components/MaterialReactTable.tsx +36 -0
  199. package/src/components/body/MRT_TableBodyCell.tsx +347 -0
  200. package/src/components/body/MRT_TableBodyCellValue.tsx +130 -0
  201. package/src/components/body/MRT_TableBodyRow.tsx +287 -0
  202. package/src/components/body/MRT_TableBodyRowGrabHandle.tsx +61 -0
  203. package/src/components/body/MRT_TableDetailPanel.tsx +110 -0
  204. package/src/components/buttons/MRT_EditActionButtons.tsx +134 -0
  205. package/src/components/buttons/MRT_RowPinButton.tsx +82 -0
  206. package/src/components/buttons/MRT_ToggleFullScreenButton.tsx +49 -0
  207. package/src/components/buttons/MRT_ToggleRowActionMenuButton.tsx +122 -0
  208. package/src/components/footer/MRT_TableFooter.tsx +73 -0
  209. package/src/components/footer/MRT_TableFooterCell.tsx +104 -0
  210. package/src/components/head/MRT_TableHeadCell.tsx +344 -0
  211. package/src/components/head/MRT_TableHeadCellFilterLabel.tsx +180 -0
  212. package/src/components/head/MRT_TableHeadCellGrabHandle.tsx +83 -0
  213. package/src/components/inputs/MRT_EditCellTextField.tsx +191 -0
  214. package/src/components/inputs/MRT_FilterRangeSlider.tsx +136 -0
  215. package/src/components/inputs/MRT_FilterTextField.tsx +527 -0
  216. package/src/components/inputs/MRT_GlobalFilterTextField.tsx +163 -0
  217. package/src/components/menus/MRT_ActionMenuItem.tsx +61 -0
  218. package/src/components/menus/MRT_ColumnActionMenu.tsx +349 -0
  219. package/src/components/menus/MRT_RowActionMenu.tsx +75 -0
  220. package/src/components/table/MRT_TableLoadingOverlay.tsx +57 -0
  221. package/src/components/table/MRT_TablePaper.tsx +88 -0
  222. package/src/components/toolbar/MRT_TablePagination.tsx +241 -0
  223. package/src/fns/filterFns.ts +188 -0
  224. package/src/hooks/display-columns/getMRT_RowDragColumnDef.tsx +29 -0
  225. package/src/hooks/useMRT_Effects.ts +103 -0
  226. package/src/hooks/useMRT_TableOptions.ts +268 -0
  227. package/src/locales/sv.ts +96 -0
  228. package/src/types.ts +1300 -0
  229. package/src/utils/cell.utils.ts +235 -0
  230. package/src/utils/style.utils.ts +208 -0
  231. package/src/utils/tanstack.helpers.ts +64 -0
  232. package/src/utils/utils.ts +23 -0
  233. package/.editorconfig +0 -13
  234. package/.github/FUNDING.yml +0 -3
  235. package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -85
  236. package/.github/ISSUE_TEMPLATE/config.yml +0 -8
  237. package/.github/workflows/main.yml +0 -27
  238. package/.github/workflows/pr.yml +0 -37
  239. package/.prettierignore +0 -8
  240. package/.prettierrc +0 -6
  241. package/CONTRIBUTING.md +0 -56
  242. package/apps/material-react-table-docs/README.md +0 -34
  243. package/apps/material-react-table-docs/components/mdx/AnchorLink.tsx +0 -16
  244. package/apps/material-react-table-docs/components/mdx/Blockquote.tsx +0 -21
  245. package/apps/material-react-table-docs/components/mdx/BlogAuthor.tsx +0 -56
  246. package/apps/material-react-table-docs/components/mdx/ComparisonTable.tsx +0 -161
  247. package/apps/material-react-table-docs/components/mdx/CompatibilityTable.tsx +0 -115
  248. package/apps/material-react-table-docs/components/mdx/Contributors.tsx +0 -109
  249. package/apps/material-react-table-docs/components/mdx/EthicalAd.tsx +0 -35
  250. package/apps/material-react-table-docs/components/mdx/FAQs.tsx +0 -51
  251. package/apps/material-react-table-docs/components/mdx/FeatureTable.tsx +0 -280
  252. package/apps/material-react-table-docs/components/mdx/GuideCard.tsx +0 -37
  253. package/apps/material-react-table-docs/components/mdx/HomeCards.tsx +0 -215
  254. package/apps/material-react-table-docs/components/mdx/InstallCommand.tsx +0 -50
  255. package/apps/material-react-table-docs/components/mdx/LinkCards.tsx +0 -94
  256. package/apps/material-react-table-docs/components/mdx/LinkHeading.tsx +0 -74
  257. package/apps/material-react-table-docs/components/mdx/SampleCodeSnippet.tsx +0 -138
  258. package/apps/material-react-table-docs/components/mdx/SourceCodeSnippet.tsx +0 -474
  259. package/apps/material-react-table-docs/components/mdx/StatBadges.tsx +0 -79
  260. package/apps/material-react-table-docs/components/mdx/mdxComponents.tsx +0 -53
  261. package/apps/material-react-table-docs/components/navigation/BreadCrumbs.tsx +0 -96
  262. package/apps/material-react-table-docs/components/navigation/Footer.tsx +0 -260
  263. package/apps/material-react-table-docs/components/navigation/Layout.tsx +0 -76
  264. package/apps/material-react-table-docs/components/navigation/MiniNav.tsx +0 -82
  265. package/apps/material-react-table-docs/components/navigation/Sidebar.tsx +0 -169
  266. package/apps/material-react-table-docs/components/navigation/SidebarItems.tsx +0 -216
  267. package/apps/material-react-table-docs/components/navigation/TableOfContentsList.tsx +0 -100
  268. package/apps/material-react-table-docs/components/navigation/TopBar.tsx +0 -265
  269. package/apps/material-react-table-docs/components/navigation/routes.ts +0 -652
  270. package/apps/material-react-table-docs/components/prop-tables/CellInstanceAPIsSource.tsx +0 -16
  271. package/apps/material-react-table-docs/components/prop-tables/CellInstanceAPIsTable.tsx +0 -149
  272. package/apps/material-react-table-docs/components/prop-tables/ColumnInstanceAPIsSource.tsx +0 -16
  273. package/apps/material-react-table-docs/components/prop-tables/ColumnInstanceAPIsTable.tsx +0 -152
  274. package/apps/material-react-table-docs/components/prop-tables/ColumnOptionsSource.tsx +0 -16
  275. package/apps/material-react-table-docs/components/prop-tables/ColumnOptionsTable.tsx +0 -184
  276. package/apps/material-react-table-docs/components/prop-tables/RowInstanceAPIsSource.tsx +0 -16
  277. package/apps/material-react-table-docs/components/prop-tables/RowInstanceAPIsTable.tsx +0 -149
  278. package/apps/material-react-table-docs/components/prop-tables/StateOptionsSource.tsx +0 -16
  279. package/apps/material-react-table-docs/components/prop-tables/StateOptionsTable.tsx +0 -174
  280. package/apps/material-react-table-docs/components/prop-tables/TableInstanceAPIsSource.tsx +0 -16
  281. package/apps/material-react-table-docs/components/prop-tables/TableInstanceAPIsTable.tsx +0 -149
  282. package/apps/material-react-table-docs/components/prop-tables/TableOptionsSource.tsx +0 -16
  283. package/apps/material-react-table-docs/components/prop-tables/TableOptionsTable.tsx +0 -195
  284. package/apps/material-react-table-docs/components/prop-tables/cellInstanceAPIs.ts +0 -78
  285. package/apps/material-react-table-docs/components/prop-tables/columnInstanceAPIs.ts +0 -407
  286. package/apps/material-react-table-docs/components/prop-tables/columnOptions.ts +0 -654
  287. package/apps/material-react-table-docs/components/prop-tables/rowInstanceAPIs.ts +0 -285
  288. package/apps/material-react-table-docs/components/prop-tables/stateOptions.ts +0 -317
  289. package/apps/material-react-table-docs/components/prop-tables/tableInstanceAPIs.ts +0 -978
  290. package/apps/material-react-table-docs/components/prop-tables/tableOptions.ts +0 -2177
  291. package/apps/material-react-table-docs/example-groups/BasicExamples.tsx +0 -136
  292. package/apps/material-react-table-docs/example-groups/DataExportExamples.tsx +0 -53
  293. package/apps/material-react-table-docs/example-groups/DraggingExamples.tsx +0 -56
  294. package/apps/material-react-table-docs/example-groups/EditingCRUDExamples.tsx +0 -73
  295. package/apps/material-react-table-docs/example-groups/ExpandingExamples.tsx +0 -107
  296. package/apps/material-react-table-docs/example-groups/FilteringExamples.tsx +0 -71
  297. package/apps/material-react-table-docs/example-groups/InstanceAPIsSwitcher.tsx +0 -37
  298. package/apps/material-react-table-docs/example-groups/LocaleExamples.tsx +0 -166
  299. package/apps/material-react-table-docs/example-groups/OptionsSwitcher.tsx +0 -34
  300. package/apps/material-react-table-docs/example-groups/RemoteFetchingExamples.tsx +0 -82
  301. package/apps/material-react-table-docs/example-groups/StickyPinningExamples.tsx +0 -62
  302. package/apps/material-react-table-docs/example-groups/VirtualizedExamples.tsx +0 -59
  303. package/apps/material-react-table-docs/examples/SimpleCodeSandbox.tsx +0 -16
  304. package/apps/material-react-table-docs/examples/advanced/index.tsx +0 -16
  305. package/apps/material-react-table-docs/examples/advanced/sandbox/README.md +0 -6
  306. package/apps/material-react-table-docs/examples/advanced/sandbox/index.html +0 -13
  307. package/apps/material-react-table-docs/examples/advanced/sandbox/package-lock.json +0 -2594
  308. package/apps/material-react-table-docs/examples/advanced/sandbox/package.json +0 -29
  309. package/apps/material-react-table-docs/examples/advanced/sandbox/src/TS.tsx +0 -309
  310. package/apps/material-react-table-docs/examples/advanced/sandbox/src/main.tsx +0 -9
  311. package/apps/material-react-table-docs/examples/advanced/sandbox/src/makeData.ts +0 -1412
  312. package/apps/material-react-table-docs/examples/advanced/sandbox/src/vite.env.d.ts +0 -1
  313. package/apps/material-react-table-docs/examples/advanced/sandbox/tsconfig.json +0 -31
  314. package/apps/material-react-table-docs/examples/advanced/sandbox/tsconfig.node.json +0 -8
  315. package/apps/material-react-table-docs/examples/advanced/sandbox/vite.config.js +0 -7
  316. package/apps/material-react-table-docs/examples/aggregation-and-grouping/index.tsx +0 -16
  317. package/apps/material-react-table-docs/examples/aggregation-and-grouping/sandbox/README.md +0 -6
  318. package/apps/material-react-table-docs/examples/aggregation-and-grouping/sandbox/index.html +0 -13
  319. package/apps/material-react-table-docs/examples/aggregation-and-grouping/sandbox/package-lock.json +0 -2594
  320. package/apps/material-react-table-docs/examples/aggregation-and-grouping/sandbox/package.json +0 -30
  321. package/apps/material-react-table-docs/examples/aggregation-and-grouping/sandbox/src/TS.tsx +0 -143
  322. package/apps/material-react-table-docs/examples/aggregation-and-grouping/sandbox/src/main.tsx +0 -9
  323. package/apps/material-react-table-docs/examples/aggregation-and-grouping/sandbox/src/makeData.ts +0 -1611
  324. package/apps/material-react-table-docs/examples/aggregation-and-grouping/sandbox/src/vite.env.d.ts +0 -1
  325. package/apps/material-react-table-docs/examples/aggregation-and-grouping/sandbox/tsconfig.json +0 -31
  326. package/apps/material-react-table-docs/examples/aggregation-and-grouping/sandbox/tsconfig.node.json +0 -8
  327. package/apps/material-react-table-docs/examples/aggregation-and-grouping/sandbox/vite.config.js +0 -7
  328. package/apps/material-react-table-docs/examples/aggregation-multi/index.tsx +0 -15
  329. package/apps/material-react-table-docs/examples/aggregation-multi/sandbox/README.md +0 -6
  330. package/apps/material-react-table-docs/examples/aggregation-multi/sandbox/index.html +0 -13
  331. package/apps/material-react-table-docs/examples/aggregation-multi/sandbox/package-lock.json +0 -2594
  332. package/apps/material-react-table-docs/examples/aggregation-multi/sandbox/package.json +0 -30
  333. package/apps/material-react-table-docs/examples/aggregation-multi/sandbox/src/TS.tsx +0 -105
  334. package/apps/material-react-table-docs/examples/aggregation-multi/sandbox/src/main.tsx +0 -9
  335. package/apps/material-react-table-docs/examples/aggregation-multi/sandbox/src/makeData.ts +0 -1611
  336. package/apps/material-react-table-docs/examples/aggregation-multi/sandbox/src/vite.env.d.ts +0 -1
  337. package/apps/material-react-table-docs/examples/aggregation-multi/sandbox/tsconfig.json +0 -31
  338. package/apps/material-react-table-docs/examples/aggregation-multi/sandbox/tsconfig.node.json +0 -8
  339. package/apps/material-react-table-docs/examples/aggregation-multi/sandbox/vite.config.js +0 -7
  340. package/apps/material-react-table-docs/examples/alternate-column-filtering/index.tsx +0 -15
  341. package/apps/material-react-table-docs/examples/alternate-column-filtering/sandbox/README.md +0 -6
  342. package/apps/material-react-table-docs/examples/alternate-column-filtering/sandbox/index.html +0 -13
  343. package/apps/material-react-table-docs/examples/alternate-column-filtering/sandbox/package-lock.json +0 -2595
  344. package/apps/material-react-table-docs/examples/alternate-column-filtering/sandbox/package.json +0 -29
  345. package/apps/material-react-table-docs/examples/alternate-column-filtering/sandbox/src/TS.tsx +0 -49
  346. package/apps/material-react-table-docs/examples/alternate-column-filtering/sandbox/src/main.tsx +0 -9
  347. package/apps/material-react-table-docs/examples/alternate-column-filtering/sandbox/src/makeData.ts +0 -38
  348. package/apps/material-react-table-docs/examples/alternate-column-filtering/sandbox/src/vite.env.d.ts +0 -1
  349. package/apps/material-react-table-docs/examples/alternate-column-filtering/sandbox/tsconfig.json +0 -31
  350. package/apps/material-react-table-docs/examples/alternate-column-filtering/sandbox/tsconfig.node.json +0 -8
  351. package/apps/material-react-table-docs/examples/alternate-column-filtering/sandbox/vite.config.js +0 -7
  352. package/apps/material-react-table-docs/examples/alternate-detail-panel/index.tsx +0 -15
  353. package/apps/material-react-table-docs/examples/alternate-detail-panel/sandbox/README.md +0 -6
  354. package/apps/material-react-table-docs/examples/alternate-detail-panel/sandbox/index.html +0 -13
  355. package/apps/material-react-table-docs/examples/alternate-detail-panel/sandbox/package-lock.json +0 -2594
  356. package/apps/material-react-table-docs/examples/alternate-detail-panel/sandbox/package.json +0 -30
  357. package/apps/material-react-table-docs/examples/alternate-detail-panel/sandbox/src/TS.tsx +0 -79
  358. package/apps/material-react-table-docs/examples/alternate-detail-panel/sandbox/src/main.tsx +0 -9
  359. package/apps/material-react-table-docs/examples/alternate-detail-panel/sandbox/src/makeData.ts +0 -43
  360. package/apps/material-react-table-docs/examples/alternate-detail-panel/sandbox/src/vite.env.d.ts +0 -1
  361. package/apps/material-react-table-docs/examples/alternate-detail-panel/sandbox/tsconfig.json +0 -31
  362. package/apps/material-react-table-docs/examples/alternate-detail-panel/sandbox/tsconfig.node.json +0 -8
  363. package/apps/material-react-table-docs/examples/alternate-detail-panel/sandbox/vite.config.js +0 -7
  364. package/apps/material-react-table-docs/examples/alternate-pagination/index.tsx +0 -15
  365. package/apps/material-react-table-docs/examples/alternate-pagination/sandbox/README.md +0 -6
  366. package/apps/material-react-table-docs/examples/alternate-pagination/sandbox/index.html +0 -13
  367. package/apps/material-react-table-docs/examples/alternate-pagination/sandbox/package-lock.json +0 -2594
  368. package/apps/material-react-table-docs/examples/alternate-pagination/sandbox/package.json +0 -29
  369. package/apps/material-react-table-docs/examples/alternate-pagination/sandbox/src/TS.tsx +0 -23
  370. package/apps/material-react-table-docs/examples/alternate-pagination/sandbox/src/main.tsx +0 -9
  371. package/apps/material-react-table-docs/examples/alternate-pagination/sandbox/src/makeData.ts +0 -156
  372. package/apps/material-react-table-docs/examples/alternate-pagination/sandbox/src/vite.env.d.ts +0 -1
  373. package/apps/material-react-table-docs/examples/alternate-pagination/sandbox/tsconfig.json +0 -31
  374. package/apps/material-react-table-docs/examples/alternate-pagination/sandbox/tsconfig.node.json +0 -8
  375. package/apps/material-react-table-docs/examples/alternate-pagination/sandbox/vite.config.js +0 -7
  376. package/apps/material-react-table-docs/examples/basic/index.tsx +0 -16
  377. package/apps/material-react-table-docs/examples/basic/sandbox/README.md +0 -6
  378. package/apps/material-react-table-docs/examples/basic/sandbox/index.html +0 -13
  379. package/apps/material-react-table-docs/examples/basic/sandbox/package-lock.json +0 -2594
  380. package/apps/material-react-table-docs/examples/basic/sandbox/package.json +0 -30
  381. package/apps/material-react-table-docs/examples/basic/sandbox/src/TS.tsx +0 -109
  382. package/apps/material-react-table-docs/examples/basic/sandbox/src/main.tsx +0 -9
  383. package/apps/material-react-table-docs/examples/basic/sandbox/src/vite.env.d.ts +0 -1
  384. package/apps/material-react-table-docs/examples/basic/sandbox/tsconfig.json +0 -31
  385. package/apps/material-react-table-docs/examples/basic/sandbox/tsconfig.node.json +0 -8
  386. package/apps/material-react-table-docs/examples/basic/sandbox/vite.config.js +0 -7
  387. package/apps/material-react-table-docs/examples/chart-detail-panel/index.tsx +0 -15
  388. package/apps/material-react-table-docs/examples/chart-detail-panel/sandbox/README.md +0 -6
  389. package/apps/material-react-table-docs/examples/chart-detail-panel/sandbox/index.html +0 -13
  390. package/apps/material-react-table-docs/examples/chart-detail-panel/sandbox/package-lock.json +0 -2915
  391. package/apps/material-react-table-docs/examples/chart-detail-panel/sandbox/package.json +0 -31
  392. package/apps/material-react-table-docs/examples/chart-detail-panel/sandbox/src/TS.tsx +0 -89
  393. package/apps/material-react-table-docs/examples/chart-detail-panel/sandbox/src/main.tsx +0 -9
  394. package/apps/material-react-table-docs/examples/chart-detail-panel/sandbox/src/makeData.ts +0 -71
  395. package/apps/material-react-table-docs/examples/chart-detail-panel/sandbox/src/vite.env.d.ts +0 -1
  396. package/apps/material-react-table-docs/examples/chart-detail-panel/sandbox/tsconfig.json +0 -31
  397. package/apps/material-react-table-docs/examples/chart-detail-panel/sandbox/tsconfig.node.json +0 -8
  398. package/apps/material-react-table-docs/examples/chart-detail-panel/sandbox/vite.config.js +0 -7
  399. package/apps/material-react-table-docs/examples/column-actions-space/index.tsx +0 -15
  400. package/apps/material-react-table-docs/examples/column-actions-space/sandbox/README.md +0 -6
  401. package/apps/material-react-table-docs/examples/column-actions-space/sandbox/index.html +0 -13
  402. package/apps/material-react-table-docs/examples/column-actions-space/sandbox/package-lock.json +0 -2594
  403. package/apps/material-react-table-docs/examples/column-actions-space/sandbox/package.json +0 -30
  404. package/apps/material-react-table-docs/examples/column-actions-space/sandbox/src/TS.tsx +0 -44
  405. package/apps/material-react-table-docs/examples/column-actions-space/sandbox/src/main.tsx +0 -9
  406. package/apps/material-react-table-docs/examples/column-actions-space/sandbox/src/makeData.ts +0 -18
  407. package/apps/material-react-table-docs/examples/column-actions-space/sandbox/src/vite.env.d.ts +0 -1
  408. package/apps/material-react-table-docs/examples/column-actions-space/sandbox/tsconfig.json +0 -31
  409. package/apps/material-react-table-docs/examples/column-actions-space/sandbox/tsconfig.node.json +0 -8
  410. package/apps/material-react-table-docs/examples/column-actions-space/sandbox/vite.config.js +0 -7
  411. package/apps/material-react-table-docs/examples/column-alignment/index.tsx +0 -15
  412. package/apps/material-react-table-docs/examples/column-alignment/sandbox/README.md +0 -6
  413. package/apps/material-react-table-docs/examples/column-alignment/sandbox/index.html +0 -13
  414. package/apps/material-react-table-docs/examples/column-alignment/sandbox/package-lock.json +0 -2594
  415. package/apps/material-react-table-docs/examples/column-alignment/sandbox/package.json +0 -30
  416. package/apps/material-react-table-docs/examples/column-alignment/sandbox/src/TS.tsx +0 -70
  417. package/apps/material-react-table-docs/examples/column-alignment/sandbox/src/main.tsx +0 -9
  418. package/apps/material-react-table-docs/examples/column-alignment/sandbox/src/makeData.ts +0 -45
  419. package/apps/material-react-table-docs/examples/column-alignment/sandbox/src/vite.env.d.ts +0 -1
  420. package/apps/material-react-table-docs/examples/column-alignment/sandbox/tsconfig.json +0 -31
  421. package/apps/material-react-table-docs/examples/column-alignment/sandbox/tsconfig.node.json +0 -8
  422. package/apps/material-react-table-docs/examples/column-alignment/sandbox/vite.config.js +0 -7
  423. package/apps/material-react-table-docs/examples/custom-column-actions/index.tsx +0 -15
  424. package/apps/material-react-table-docs/examples/custom-column-actions/sandbox/README.md +0 -6
  425. package/apps/material-react-table-docs/examples/custom-column-actions/sandbox/index.html +0 -13
  426. package/apps/material-react-table-docs/examples/custom-column-actions/sandbox/package-lock.json +0 -2594
  427. package/apps/material-react-table-docs/examples/custom-column-actions/sandbox/package.json +0 -30
  428. package/apps/material-react-table-docs/examples/custom-column-actions/sandbox/src/TS.tsx +0 -109
  429. package/apps/material-react-table-docs/examples/custom-column-actions/sandbox/src/main.tsx +0 -9
  430. package/apps/material-react-table-docs/examples/custom-column-actions/sandbox/src/makeData.ts +0 -18
  431. package/apps/material-react-table-docs/examples/custom-column-actions/sandbox/src/vite.env.d.ts +0 -1
  432. package/apps/material-react-table-docs/examples/custom-column-actions/sandbox/tsconfig.json +0 -31
  433. package/apps/material-react-table-docs/examples/custom-column-actions/sandbox/tsconfig.node.json +0 -8
  434. package/apps/material-react-table-docs/examples/custom-column-actions/sandbox/vite.config.js +0 -7
  435. package/apps/material-react-table-docs/examples/custom-column-filtering-ui/index.tsx +0 -15
  436. package/apps/material-react-table-docs/examples/custom-column-filtering-ui/sandbox/README.md +0 -6
  437. package/apps/material-react-table-docs/examples/custom-column-filtering-ui/sandbox/index.html +0 -13
  438. package/apps/material-react-table-docs/examples/custom-column-filtering-ui/sandbox/package-lock.json +0 -2595
  439. package/apps/material-react-table-docs/examples/custom-column-filtering-ui/sandbox/package.json +0 -29
  440. package/apps/material-react-table-docs/examples/custom-column-filtering-ui/sandbox/src/TS.tsx +0 -74
  441. package/apps/material-react-table-docs/examples/custom-column-filtering-ui/sandbox/src/main.tsx +0 -9
  442. package/apps/material-react-table-docs/examples/custom-column-filtering-ui/sandbox/src/makeData.ts +0 -38
  443. package/apps/material-react-table-docs/examples/custom-column-filtering-ui/sandbox/src/vite.env.d.ts +0 -1
  444. package/apps/material-react-table-docs/examples/custom-column-filtering-ui/sandbox/tsconfig.json +0 -31
  445. package/apps/material-react-table-docs/examples/custom-column-filtering-ui/sandbox/tsconfig.node.json +0 -8
  446. package/apps/material-react-table-docs/examples/custom-column-filtering-ui/sandbox/vite.config.js +0 -7
  447. package/apps/material-react-table-docs/examples/custom-headless/index.tsx +0 -16
  448. package/apps/material-react-table-docs/examples/custom-headless/sandbox/README.md +0 -6
  449. package/apps/material-react-table-docs/examples/custom-headless/sandbox/index.html +0 -13
  450. package/apps/material-react-table-docs/examples/custom-headless/sandbox/package-lock.json +0 -2594
  451. package/apps/material-react-table-docs/examples/custom-headless/sandbox/package.json +0 -29
  452. package/apps/material-react-table-docs/examples/custom-headless/sandbox/src/TS.tsx +0 -125
  453. package/apps/material-react-table-docs/examples/custom-headless/sandbox/src/main.tsx +0 -9
  454. package/apps/material-react-table-docs/examples/custom-headless/sandbox/src/makeData.ts +0 -120
  455. package/apps/material-react-table-docs/examples/custom-headless/sandbox/src/vite.env.d.ts +0 -1
  456. package/apps/material-react-table-docs/examples/custom-headless/sandbox/tsconfig.json +0 -31
  457. package/apps/material-react-table-docs/examples/custom-headless/sandbox/tsconfig.node.json +0 -8
  458. package/apps/material-react-table-docs/examples/custom-headless/sandbox/vite.config.js +0 -7
  459. package/apps/material-react-table-docs/examples/custom-top-toolbar/index.tsx +0 -15
  460. package/apps/material-react-table-docs/examples/custom-top-toolbar/sandbox/README.md +0 -6
  461. package/apps/material-react-table-docs/examples/custom-top-toolbar/sandbox/index.html +0 -13
  462. package/apps/material-react-table-docs/examples/custom-top-toolbar/sandbox/package-lock.json +0 -2594
  463. package/apps/material-react-table-docs/examples/custom-top-toolbar/sandbox/package.json +0 -30
  464. package/apps/material-react-table-docs/examples/custom-top-toolbar/sandbox/src/TS.tsx +0 -88
  465. package/apps/material-react-table-docs/examples/custom-top-toolbar/sandbox/src/main.tsx +0 -9
  466. package/apps/material-react-table-docs/examples/custom-top-toolbar/sandbox/src/makeData.ts +0 -45
  467. package/apps/material-react-table-docs/examples/custom-top-toolbar/sandbox/src/vite.env.d.ts +0 -1
  468. package/apps/material-react-table-docs/examples/custom-top-toolbar/sandbox/tsconfig.json +0 -31
  469. package/apps/material-react-table-docs/examples/custom-top-toolbar/sandbox/tsconfig.node.json +0 -8
  470. package/apps/material-react-table-docs/examples/custom-top-toolbar/sandbox/vite.config.js +0 -7
  471. package/apps/material-react-table-docs/examples/customize-display-columns/index.tsx +0 -15
  472. package/apps/material-react-table-docs/examples/customize-display-columns/sandbox/README.md +0 -6
  473. package/apps/material-react-table-docs/examples/customize-display-columns/sandbox/index.html +0 -13
  474. package/apps/material-react-table-docs/examples/customize-display-columns/sandbox/package-lock.json +0 -2594
  475. package/apps/material-react-table-docs/examples/customize-display-columns/sandbox/package.json +0 -30
  476. package/apps/material-react-table-docs/examples/customize-display-columns/sandbox/src/TS.tsx +0 -85
  477. package/apps/material-react-table-docs/examples/customize-display-columns/sandbox/src/main.tsx +0 -9
  478. package/apps/material-react-table-docs/examples/customize-display-columns/sandbox/src/makeData.ts +0 -45
  479. package/apps/material-react-table-docs/examples/customize-display-columns/sandbox/src/vite.env.d.ts +0 -1
  480. package/apps/material-react-table-docs/examples/customize-display-columns/sandbox/tsconfig.json +0 -31
  481. package/apps/material-react-table-docs/examples/customize-display-columns/sandbox/tsconfig.node.json +0 -8
  482. package/apps/material-react-table-docs/examples/customize-display-columns/sandbox/vite.config.js +0 -7
  483. package/apps/material-react-table-docs/examples/customize-filter-components/index.tsx +0 -15
  484. package/apps/material-react-table-docs/examples/customize-filter-components/sandbox/README.md +0 -6
  485. package/apps/material-react-table-docs/examples/customize-filter-components/sandbox/index.html +0 -13
  486. package/apps/material-react-table-docs/examples/customize-filter-components/sandbox/package-lock.json +0 -2594
  487. package/apps/material-react-table-docs/examples/customize-filter-components/sandbox/package.json +0 -30
  488. package/apps/material-react-table-docs/examples/customize-filter-components/sandbox/src/TS.tsx +0 -101
  489. package/apps/material-react-table-docs/examples/customize-filter-components/sandbox/src/main.tsx +0 -9
  490. package/apps/material-react-table-docs/examples/customize-filter-components/sandbox/src/vite.env.d.ts +0 -1
  491. package/apps/material-react-table-docs/examples/customize-filter-components/sandbox/tsconfig.json +0 -31
  492. package/apps/material-react-table-docs/examples/customize-filter-components/sandbox/tsconfig.node.json +0 -8
  493. package/apps/material-react-table-docs/examples/customize-filter-components/sandbox/vite.config.js +0 -7
  494. package/apps/material-react-table-docs/examples/customize-filter-modes/index.tsx +0 -15
  495. package/apps/material-react-table-docs/examples/customize-filter-modes/sandbox/README.md +0 -6
  496. package/apps/material-react-table-docs/examples/customize-filter-modes/sandbox/index.html +0 -13
  497. package/apps/material-react-table-docs/examples/customize-filter-modes/sandbox/package-lock.json +0 -2594
  498. package/apps/material-react-table-docs/examples/customize-filter-modes/sandbox/package.json +0 -30
  499. package/apps/material-react-table-docs/examples/customize-filter-modes/sandbox/src/TS.tsx +0 -73
  500. package/apps/material-react-table-docs/examples/customize-filter-modes/sandbox/src/main.tsx +0 -9
  501. package/apps/material-react-table-docs/examples/customize-filter-modes/sandbox/src/makeData.ts +0 -38
  502. package/apps/material-react-table-docs/examples/customize-filter-modes/sandbox/src/vite.env.d.ts +0 -1
  503. package/apps/material-react-table-docs/examples/customize-filter-modes/sandbox/tsconfig.json +0 -31
  504. package/apps/material-react-table-docs/examples/customize-filter-modes/sandbox/tsconfig.node.json +0 -8
  505. package/apps/material-react-table-docs/examples/customize-filter-modes/sandbox/vite.config.js +0 -7
  506. package/apps/material-react-table-docs/examples/customize-filter-variants/index.tsx +0 -15
  507. package/apps/material-react-table-docs/examples/customize-filter-variants/sandbox/README.md +0 -6
  508. package/apps/material-react-table-docs/examples/customize-filter-variants/sandbox/index.html +0 -13
  509. package/apps/material-react-table-docs/examples/customize-filter-variants/sandbox/package-lock.json +0 -2594
  510. package/apps/material-react-table-docs/examples/customize-filter-variants/sandbox/package.json +0 -30
  511. package/apps/material-react-table-docs/examples/customize-filter-variants/sandbox/src/TS.tsx +0 -116
  512. package/apps/material-react-table-docs/examples/customize-filter-variants/sandbox/src/main.tsx +0 -9
  513. package/apps/material-react-table-docs/examples/customize-filter-variants/sandbox/src/makeData.ts +0 -117
  514. package/apps/material-react-table-docs/examples/customize-filter-variants/sandbox/src/vite.env.d.ts +0 -1
  515. package/apps/material-react-table-docs/examples/customize-filter-variants/sandbox/tsconfig.json +0 -31
  516. package/apps/material-react-table-docs/examples/customize-filter-variants/sandbox/tsconfig.node.json +0 -8
  517. package/apps/material-react-table-docs/examples/customize-filter-variants/sandbox/vite.config.js +0 -7
  518. package/apps/material-react-table-docs/examples/customize-global-filter-component/index.tsx +0 -15
  519. package/apps/material-react-table-docs/examples/customize-global-filter-component/sandbox/README.md +0 -6
  520. package/apps/material-react-table-docs/examples/customize-global-filter-component/sandbox/index.html +0 -13
  521. package/apps/material-react-table-docs/examples/customize-global-filter-component/sandbox/package-lock.json +0 -2594
  522. package/apps/material-react-table-docs/examples/customize-global-filter-component/sandbox/package.json +0 -30
  523. package/apps/material-react-table-docs/examples/customize-global-filter-component/sandbox/src/TS.tsx +0 -52
  524. package/apps/material-react-table-docs/examples/customize-global-filter-component/sandbox/src/main.tsx +0 -9
  525. package/apps/material-react-table-docs/examples/customize-global-filter-component/sandbox/src/makeData.ts +0 -38
  526. package/apps/material-react-table-docs/examples/customize-global-filter-component/sandbox/src/vite.env.d.ts +0 -1
  527. package/apps/material-react-table-docs/examples/customize-global-filter-component/sandbox/tsconfig.json +0 -31
  528. package/apps/material-react-table-docs/examples/customize-global-filter-component/sandbox/tsconfig.node.json +0 -8
  529. package/apps/material-react-table-docs/examples/customize-global-filter-component/sandbox/vite.config.js +0 -7
  530. package/apps/material-react-table-docs/examples/customize-remove-column-grouping/index.tsx +0 -16
  531. package/apps/material-react-table-docs/examples/customize-remove-column-grouping/sandbox/README.md +0 -6
  532. package/apps/material-react-table-docs/examples/customize-remove-column-grouping/sandbox/index.html +0 -13
  533. package/apps/material-react-table-docs/examples/customize-remove-column-grouping/sandbox/package-lock.json +0 -2594
  534. package/apps/material-react-table-docs/examples/customize-remove-column-grouping/sandbox/package.json +0 -30
  535. package/apps/material-react-table-docs/examples/customize-remove-column-grouping/sandbox/src/TS.tsx +0 -89
  536. package/apps/material-react-table-docs/examples/customize-remove-column-grouping/sandbox/src/main.tsx +0 -9
  537. package/apps/material-react-table-docs/examples/customize-remove-column-grouping/sandbox/src/makeData.ts +0 -1611
  538. package/apps/material-react-table-docs/examples/customize-remove-column-grouping/sandbox/src/vite.env.d.ts +0 -1
  539. package/apps/material-react-table-docs/examples/customize-remove-column-grouping/sandbox/tsconfig.json +0 -31
  540. package/apps/material-react-table-docs/examples/customize-remove-column-grouping/sandbox/tsconfig.node.json +0 -8
  541. package/apps/material-react-table-docs/examples/customize-remove-column-grouping/sandbox/vite.config.js +0 -7
  542. package/apps/material-react-table-docs/examples/customize-row-selection/index.tsx +0 -15
  543. package/apps/material-react-table-docs/examples/customize-row-selection/sandbox/README.md +0 -6
  544. package/apps/material-react-table-docs/examples/customize-row-selection/sandbox/index.html +0 -13
  545. package/apps/material-react-table-docs/examples/customize-row-selection/sandbox/package-lock.json +0 -2594
  546. package/apps/material-react-table-docs/examples/customize-row-selection/sandbox/package.json +0 -30
  547. package/apps/material-react-table-docs/examples/customize-row-selection/sandbox/src/TS.tsx +0 -54
  548. package/apps/material-react-table-docs/examples/customize-row-selection/sandbox/src/main.tsx +0 -9
  549. package/apps/material-react-table-docs/examples/customize-row-selection/sandbox/src/makeData.ts +0 -51
  550. package/apps/material-react-table-docs/examples/customize-row-selection/sandbox/src/vite.env.d.ts +0 -1
  551. package/apps/material-react-table-docs/examples/customize-row-selection/sandbox/tsconfig.json +0 -31
  552. package/apps/material-react-table-docs/examples/customize-row-selection/sandbox/tsconfig.node.json +0 -8
  553. package/apps/material-react-table-docs/examples/customize-row-selection/sandbox/vite.config.js +0 -7
  554. package/apps/material-react-table-docs/examples/customize-table-styles/index.tsx +0 -15
  555. package/apps/material-react-table-docs/examples/customize-table-styles/sandbox/README.md +0 -6
  556. package/apps/material-react-table-docs/examples/customize-table-styles/sandbox/index.html +0 -13
  557. package/apps/material-react-table-docs/examples/customize-table-styles/sandbox/package-lock.json +0 -2594
  558. package/apps/material-react-table-docs/examples/customize-table-styles/sandbox/package.json +0 -30
  559. package/apps/material-react-table-docs/examples/customize-table-styles/sandbox/src/TS.tsx +0 -100
  560. package/apps/material-react-table-docs/examples/customize-table-styles/sandbox/src/main.tsx +0 -9
  561. package/apps/material-react-table-docs/examples/customize-table-styles/sandbox/src/makeData.ts +0 -57
  562. package/apps/material-react-table-docs/examples/customize-table-styles/sandbox/src/vite.env.d.ts +0 -1
  563. package/apps/material-react-table-docs/examples/customize-table-styles/sandbox/tsconfig.json +0 -31
  564. package/apps/material-react-table-docs/examples/customize-table-styles/sandbox/tsconfig.node.json +0 -8
  565. package/apps/material-react-table-docs/examples/customize-table-styles/sandbox/vite.config.js +0 -7
  566. package/apps/material-react-table-docs/examples/disable-column-actions/index.tsx +0 -15
  567. package/apps/material-react-table-docs/examples/disable-column-actions/sandbox/README.md +0 -6
  568. package/apps/material-react-table-docs/examples/disable-column-actions/sandbox/index.html +0 -13
  569. package/apps/material-react-table-docs/examples/disable-column-actions/sandbox/package-lock.json +0 -2594
  570. package/apps/material-react-table-docs/examples/disable-column-actions/sandbox/package.json +0 -30
  571. package/apps/material-react-table-docs/examples/disable-column-actions/sandbox/src/TS.tsx +0 -37
  572. package/apps/material-react-table-docs/examples/disable-column-actions/sandbox/src/main.tsx +0 -9
  573. package/apps/material-react-table-docs/examples/disable-column-actions/sandbox/src/makeData.ts +0 -18
  574. package/apps/material-react-table-docs/examples/disable-column-actions/sandbox/src/vite.env.d.ts +0 -1
  575. package/apps/material-react-table-docs/examples/disable-column-actions/sandbox/tsconfig.json +0 -31
  576. package/apps/material-react-table-docs/examples/disable-column-actions/sandbox/tsconfig.node.json +0 -8
  577. package/apps/material-react-table-docs/examples/disable-column-actions/sandbox/vite.config.js +0 -7
  578. package/apps/material-react-table-docs/examples/disable-column-hiding/index.tsx +0 -15
  579. package/apps/material-react-table-docs/examples/disable-column-hiding/sandbox/README.md +0 -6
  580. package/apps/material-react-table-docs/examples/disable-column-hiding/sandbox/index.html +0 -13
  581. package/apps/material-react-table-docs/examples/disable-column-hiding/sandbox/package-lock.json +0 -2594
  582. package/apps/material-react-table-docs/examples/disable-column-hiding/sandbox/package.json +0 -30
  583. package/apps/material-react-table-docs/examples/disable-column-hiding/sandbox/src/TS.tsx +0 -90
  584. package/apps/material-react-table-docs/examples/disable-column-hiding/sandbox/src/main.tsx +0 -9
  585. package/apps/material-react-table-docs/examples/disable-column-hiding/sandbox/src/vite.env.d.ts +0 -1
  586. package/apps/material-react-table-docs/examples/disable-column-hiding/sandbox/tsconfig.json +0 -31
  587. package/apps/material-react-table-docs/examples/disable-column-hiding/sandbox/tsconfig.node.json +0 -8
  588. package/apps/material-react-table-docs/examples/disable-column-hiding/sandbox/vite.config.js +0 -7
  589. package/apps/material-react-table-docs/examples/disable-density-toggle/index.tsx +0 -15
  590. package/apps/material-react-table-docs/examples/disable-density-toggle/sandbox/README.md +0 -6
  591. package/apps/material-react-table-docs/examples/disable-density-toggle/sandbox/index.html +0 -13
  592. package/apps/material-react-table-docs/examples/disable-density-toggle/sandbox/package-lock.json +0 -2594
  593. package/apps/material-react-table-docs/examples/disable-density-toggle/sandbox/package.json +0 -30
  594. package/apps/material-react-table-docs/examples/disable-density-toggle/sandbox/src/TS.tsx +0 -49
  595. package/apps/material-react-table-docs/examples/disable-density-toggle/sandbox/src/main.tsx +0 -9
  596. package/apps/material-react-table-docs/examples/disable-density-toggle/sandbox/src/makeData.ts +0 -45
  597. package/apps/material-react-table-docs/examples/disable-density-toggle/sandbox/src/vite.env.d.ts +0 -1
  598. package/apps/material-react-table-docs/examples/disable-density-toggle/sandbox/tsconfig.json +0 -31
  599. package/apps/material-react-table-docs/examples/disable-density-toggle/sandbox/tsconfig.node.json +0 -8
  600. package/apps/material-react-table-docs/examples/disable-density-toggle/sandbox/vite.config.js +0 -7
  601. package/apps/material-react-table-docs/examples/dynamic-columns/index.tsx +0 -15
  602. package/apps/material-react-table-docs/examples/dynamic-columns/sandbox/README.md +0 -6
  603. package/apps/material-react-table-docs/examples/dynamic-columns/sandbox/index.html +0 -13
  604. package/apps/material-react-table-docs/examples/dynamic-columns/sandbox/package-lock.json +0 -2647
  605. package/apps/material-react-table-docs/examples/dynamic-columns/sandbox/package.json +0 -29
  606. package/apps/material-react-table-docs/examples/dynamic-columns/sandbox/src/TS.tsx +0 -177
  607. package/apps/material-react-table-docs/examples/dynamic-columns/sandbox/src/main.tsx +0 -9
  608. package/apps/material-react-table-docs/examples/dynamic-columns/sandbox/src/vite.env.d.ts +0 -1
  609. package/apps/material-react-table-docs/examples/dynamic-columns/sandbox/tsconfig.json +0 -31
  610. package/apps/material-react-table-docs/examples/dynamic-columns/sandbox/tsconfig.node.json +0 -8
  611. package/apps/material-react-table-docs/examples/dynamic-columns/sandbox/vite.config.js +0 -7
  612. package/apps/material-react-table-docs/examples/editing-crud-cell/index.tsx +0 -15
  613. package/apps/material-react-table-docs/examples/editing-crud-cell/sandbox/README.md +0 -6
  614. package/apps/material-react-table-docs/examples/editing-crud-cell/sandbox/index.html +0 -13
  615. package/apps/material-react-table-docs/examples/editing-crud-cell/sandbox/package-lock.json +0 -2621
  616. package/apps/material-react-table-docs/examples/editing-crud-cell/sandbox/package.json +0 -31
  617. package/apps/material-react-table-docs/examples/editing-crud-cell/sandbox/src/TS.tsx +0 -365
  618. package/apps/material-react-table-docs/examples/editing-crud-cell/sandbox/src/main.tsx +0 -9
  619. package/apps/material-react-table-docs/examples/editing-crud-cell/sandbox/src/makeData.ts +0 -121
  620. package/apps/material-react-table-docs/examples/editing-crud-cell/sandbox/src/vite.env.d.ts +0 -1
  621. package/apps/material-react-table-docs/examples/editing-crud-cell/sandbox/tsconfig.json +0 -31
  622. package/apps/material-react-table-docs/examples/editing-crud-cell/sandbox/tsconfig.node.json +0 -8
  623. package/apps/material-react-table-docs/examples/editing-crud-cell/sandbox/vite.config.js +0 -7
  624. package/apps/material-react-table-docs/examples/editing-crud-modal/index.tsx +0 -15
  625. package/apps/material-react-table-docs/examples/editing-crud-modal/sandbox/README.md +0 -6
  626. package/apps/material-react-table-docs/examples/editing-crud-modal/sandbox/index.html +0 -13
  627. package/apps/material-react-table-docs/examples/editing-crud-modal/sandbox/package-lock.json +0 -2621
  628. package/apps/material-react-table-docs/examples/editing-crud-modal/sandbox/package.json +0 -31
  629. package/apps/material-react-table-docs/examples/editing-crud-modal/sandbox/src/TS.tsx +0 -359
  630. package/apps/material-react-table-docs/examples/editing-crud-modal/sandbox/src/main.tsx +0 -9
  631. package/apps/material-react-table-docs/examples/editing-crud-modal/sandbox/src/makeData.ts +0 -121
  632. package/apps/material-react-table-docs/examples/editing-crud-modal/sandbox/src/vite.env.d.ts +0 -1
  633. package/apps/material-react-table-docs/examples/editing-crud-modal/sandbox/tsconfig.json +0 -31
  634. package/apps/material-react-table-docs/examples/editing-crud-modal/sandbox/tsconfig.node.json +0 -8
  635. package/apps/material-react-table-docs/examples/editing-crud-modal/sandbox/vite.config.js +0 -7
  636. package/apps/material-react-table-docs/examples/editing-crud-row/index.tsx +0 -15
  637. package/apps/material-react-table-docs/examples/editing-crud-row/sandbox/README.md +0 -6
  638. package/apps/material-react-table-docs/examples/editing-crud-row/sandbox/index.html +0 -13
  639. package/apps/material-react-table-docs/examples/editing-crud-row/sandbox/package-lock.json +0 -2621
  640. package/apps/material-react-table-docs/examples/editing-crud-row/sandbox/package.json +0 -31
  641. package/apps/material-react-table-docs/examples/editing-crud-row/sandbox/src/TS.tsx +0 -322
  642. package/apps/material-react-table-docs/examples/editing-crud-row/sandbox/src/main.tsx +0 -9
  643. package/apps/material-react-table-docs/examples/editing-crud-row/sandbox/src/makeData.ts +0 -121
  644. package/apps/material-react-table-docs/examples/editing-crud-row/sandbox/src/vite.env.d.ts +0 -1
  645. package/apps/material-react-table-docs/examples/editing-crud-row/sandbox/tsconfig.json +0 -31
  646. package/apps/material-react-table-docs/examples/editing-crud-row/sandbox/tsconfig.node.json +0 -8
  647. package/apps/material-react-table-docs/examples/editing-crud-row/sandbox/vite.config.js +0 -7
  648. package/apps/material-react-table-docs/examples/editing-crud-table/index.tsx +0 -15
  649. package/apps/material-react-table-docs/examples/editing-crud-table/sandbox/README.md +0 -6
  650. package/apps/material-react-table-docs/examples/editing-crud-table/sandbox/index.html +0 -13
  651. package/apps/material-react-table-docs/examples/editing-crud-table/sandbox/package-lock.json +0 -2621
  652. package/apps/material-react-table-docs/examples/editing-crud-table/sandbox/package.json +0 -31
  653. package/apps/material-react-table-docs/examples/editing-crud-table/sandbox/src/TS.tsx +0 -358
  654. package/apps/material-react-table-docs/examples/editing-crud-table/sandbox/src/main.tsx +0 -9
  655. package/apps/material-react-table-docs/examples/editing-crud-table/sandbox/src/makeData.ts +0 -121
  656. package/apps/material-react-table-docs/examples/editing-crud-table/sandbox/src/vite.env.d.ts +0 -1
  657. package/apps/material-react-table-docs/examples/editing-crud-table/sandbox/tsconfig.json +0 -31
  658. package/apps/material-react-table-docs/examples/editing-crud-table/sandbox/tsconfig.node.json +0 -8
  659. package/apps/material-react-table-docs/examples/editing-crud-table/sandbox/vite.config.js +0 -7
  660. package/apps/material-react-table-docs/examples/editing-crud-tree/index.tsx +0 -15
  661. package/apps/material-react-table-docs/examples/editing-crud-tree/sandbox/README.md +0 -6
  662. package/apps/material-react-table-docs/examples/editing-crud-tree/sandbox/index.html +0 -13
  663. package/apps/material-react-table-docs/examples/editing-crud-tree/sandbox/package-lock.json +0 -2621
  664. package/apps/material-react-table-docs/examples/editing-crud-tree/sandbox/package.json +0 -31
  665. package/apps/material-react-table-docs/examples/editing-crud-tree/sandbox/src/TS.tsx +0 -405
  666. package/apps/material-react-table-docs/examples/editing-crud-tree/sandbox/src/main.tsx +0 -9
  667. package/apps/material-react-table-docs/examples/editing-crud-tree/sandbox/src/makeData.ts +0 -159
  668. package/apps/material-react-table-docs/examples/editing-crud-tree/sandbox/src/vite.env.d.ts +0 -1
  669. package/apps/material-react-table-docs/examples/editing-crud-tree/sandbox/tsconfig.json +0 -31
  670. package/apps/material-react-table-docs/examples/editing-crud-tree/sandbox/tsconfig.node.json +0 -8
  671. package/apps/material-react-table-docs/examples/editing-crud-tree/sandbox/vite.config.js +0 -7
  672. package/apps/material-react-table-docs/examples/enable-cell-actions/index.tsx +0 -15
  673. package/apps/material-react-table-docs/examples/enable-cell-actions/sandbox/README.md +0 -6
  674. package/apps/material-react-table-docs/examples/enable-cell-actions/sandbox/index.html +0 -13
  675. package/apps/material-react-table-docs/examples/enable-cell-actions/sandbox/package-lock.json +0 -2594
  676. package/apps/material-react-table-docs/examples/enable-cell-actions/sandbox/package.json +0 -30
  677. package/apps/material-react-table-docs/examples/enable-cell-actions/sandbox/src/TS.tsx +0 -76
  678. package/apps/material-react-table-docs/examples/enable-cell-actions/sandbox/src/main.tsx +0 -9
  679. package/apps/material-react-table-docs/examples/enable-cell-actions/sandbox/src/makeData.ts +0 -45
  680. package/apps/material-react-table-docs/examples/enable-cell-actions/sandbox/src/vite.env.d.ts +0 -1
  681. package/apps/material-react-table-docs/examples/enable-cell-actions/sandbox/tsconfig.json +0 -31
  682. package/apps/material-react-table-docs/examples/enable-cell-actions/sandbox/tsconfig.node.json +0 -8
  683. package/apps/material-react-table-docs/examples/enable-cell-actions/sandbox/vite.config.js +0 -7
  684. package/apps/material-react-table-docs/examples/enable-click-to-copy/index.tsx +0 -15
  685. package/apps/material-react-table-docs/examples/enable-click-to-copy/sandbox/README.md +0 -6
  686. package/apps/material-react-table-docs/examples/enable-click-to-copy/sandbox/index.html +0 -13
  687. package/apps/material-react-table-docs/examples/enable-click-to-copy/sandbox/package-lock.json +0 -2594
  688. package/apps/material-react-table-docs/examples/enable-click-to-copy/sandbox/package.json +0 -30
  689. package/apps/material-react-table-docs/examples/enable-click-to-copy/sandbox/src/TS.tsx +0 -39
  690. package/apps/material-react-table-docs/examples/enable-click-to-copy/sandbox/src/main.tsx +0 -9
  691. package/apps/material-react-table-docs/examples/enable-click-to-copy/sandbox/src/makeData.ts +0 -39
  692. package/apps/material-react-table-docs/examples/enable-click-to-copy/sandbox/src/vite.env.d.ts +0 -1
  693. package/apps/material-react-table-docs/examples/enable-click-to-copy/sandbox/tsconfig.json +0 -31
  694. package/apps/material-react-table-docs/examples/enable-click-to-copy/sandbox/tsconfig.node.json +0 -8
  695. package/apps/material-react-table-docs/examples/enable-click-to-copy/sandbox/vite.config.js +0 -7
  696. package/apps/material-react-table-docs/examples/enable-column-grouping/index.tsx +0 -16
  697. package/apps/material-react-table-docs/examples/enable-column-grouping/sandbox/README.md +0 -6
  698. package/apps/material-react-table-docs/examples/enable-column-grouping/sandbox/index.html +0 -13
  699. package/apps/material-react-table-docs/examples/enable-column-grouping/sandbox/package-lock.json +0 -2594
  700. package/apps/material-react-table-docs/examples/enable-column-grouping/sandbox/package.json +0 -30
  701. package/apps/material-react-table-docs/examples/enable-column-grouping/sandbox/src/TS.tsx +0 -116
  702. package/apps/material-react-table-docs/examples/enable-column-grouping/sandbox/src/main.tsx +0 -9
  703. package/apps/material-react-table-docs/examples/enable-column-grouping/sandbox/src/makeData.ts +0 -1611
  704. package/apps/material-react-table-docs/examples/enable-column-grouping/sandbox/src/vite.env.d.ts +0 -1
  705. package/apps/material-react-table-docs/examples/enable-column-grouping/sandbox/tsconfig.json +0 -31
  706. package/apps/material-react-table-docs/examples/enable-column-grouping/sandbox/tsconfig.node.json +0 -8
  707. package/apps/material-react-table-docs/examples/enable-column-grouping/sandbox/vite.config.js +0 -7
  708. package/apps/material-react-table-docs/examples/enable-column-ordering/index.tsx +0 -15
  709. package/apps/material-react-table-docs/examples/enable-column-ordering/sandbox/README.md +0 -6
  710. package/apps/material-react-table-docs/examples/enable-column-ordering/sandbox/index.html +0 -13
  711. package/apps/material-react-table-docs/examples/enable-column-ordering/sandbox/package-lock.json +0 -2594
  712. package/apps/material-react-table-docs/examples/enable-column-ordering/sandbox/package.json +0 -30
  713. package/apps/material-react-table-docs/examples/enable-column-ordering/sandbox/src/TS.tsx +0 -48
  714. package/apps/material-react-table-docs/examples/enable-column-ordering/sandbox/src/main.tsx +0 -9
  715. package/apps/material-react-table-docs/examples/enable-column-ordering/sandbox/src/makeData.ts +0 -45
  716. package/apps/material-react-table-docs/examples/enable-column-ordering/sandbox/src/vite.env.d.ts +0 -1
  717. package/apps/material-react-table-docs/examples/enable-column-ordering/sandbox/tsconfig.json +0 -31
  718. package/apps/material-react-table-docs/examples/enable-column-ordering/sandbox/tsconfig.node.json +0 -8
  719. package/apps/material-react-table-docs/examples/enable-column-ordering/sandbox/vite.config.js +0 -7
  720. package/apps/material-react-table-docs/examples/enable-column-pinning/index.tsx +0 -15
  721. package/apps/material-react-table-docs/examples/enable-column-pinning/sandbox/README.md +0 -6
  722. package/apps/material-react-table-docs/examples/enable-column-pinning/sandbox/index.html +0 -13
  723. package/apps/material-react-table-docs/examples/enable-column-pinning/sandbox/package-lock.json +0 -2594
  724. package/apps/material-react-table-docs/examples/enable-column-pinning/sandbox/package.json +0 -30
  725. package/apps/material-react-table-docs/examples/enable-column-pinning/sandbox/src/TS.tsx +0 -69
  726. package/apps/material-react-table-docs/examples/enable-column-pinning/sandbox/src/main.tsx +0 -9
  727. package/apps/material-react-table-docs/examples/enable-column-pinning/sandbox/src/makeData.ts +0 -73
  728. package/apps/material-react-table-docs/examples/enable-column-pinning/sandbox/src/vite.env.d.ts +0 -1
  729. package/apps/material-react-table-docs/examples/enable-column-pinning/sandbox/tsconfig.json +0 -31
  730. package/apps/material-react-table-docs/examples/enable-column-pinning/sandbox/tsconfig.node.json +0 -8
  731. package/apps/material-react-table-docs/examples/enable-column-pinning/sandbox/vite.config.js +0 -7
  732. package/apps/material-react-table-docs/examples/enable-column-resizing/index.tsx +0 -15
  733. package/apps/material-react-table-docs/examples/enable-column-resizing/sandbox/README.md +0 -6
  734. package/apps/material-react-table-docs/examples/enable-column-resizing/sandbox/index.html +0 -13
  735. package/apps/material-react-table-docs/examples/enable-column-resizing/sandbox/package-lock.json +0 -2594
  736. package/apps/material-react-table-docs/examples/enable-column-resizing/sandbox/package.json +0 -30
  737. package/apps/material-react-table-docs/examples/enable-column-resizing/sandbox/src/TS.tsx +0 -56
  738. package/apps/material-react-table-docs/examples/enable-column-resizing/sandbox/src/main.tsx +0 -9
  739. package/apps/material-react-table-docs/examples/enable-column-resizing/sandbox/src/makeData.ts +0 -45
  740. package/apps/material-react-table-docs/examples/enable-column-resizing/sandbox/src/vite.env.d.ts +0 -1
  741. package/apps/material-react-table-docs/examples/enable-column-resizing/sandbox/tsconfig.json +0 -31
  742. package/apps/material-react-table-docs/examples/enable-column-resizing/sandbox/tsconfig.node.json +0 -8
  743. package/apps/material-react-table-docs/examples/enable-column-resizing/sandbox/vite.config.js +0 -7
  744. package/apps/material-react-table-docs/examples/enable-column-virtualization/index.tsx +0 -15
  745. package/apps/material-react-table-docs/examples/enable-column-virtualization/sandbox/README.md +0 -6
  746. package/apps/material-react-table-docs/examples/enable-column-virtualization/sandbox/index.html +0 -13
  747. package/apps/material-react-table-docs/examples/enable-column-virtualization/sandbox/package-lock.json +0 -2611
  748. package/apps/material-react-table-docs/examples/enable-column-virtualization/sandbox/package.json +0 -31
  749. package/apps/material-react-table-docs/examples/enable-column-virtualization/sandbox/src/TS.tsx +0 -27
  750. package/apps/material-react-table-docs/examples/enable-column-virtualization/sandbox/src/main.tsx +0 -9
  751. package/apps/material-react-table-docs/examples/enable-column-virtualization/sandbox/src/makeData.ts +0 -15
  752. package/apps/material-react-table-docs/examples/enable-column-virtualization/sandbox/src/vite.env.d.ts +0 -1
  753. package/apps/material-react-table-docs/examples/enable-column-virtualization/sandbox/tsconfig.json +0 -31
  754. package/apps/material-react-table-docs/examples/enable-column-virtualization/sandbox/tsconfig.node.json +0 -8
  755. package/apps/material-react-table-docs/examples/enable-column-virtualization/sandbox/vite.config.js +0 -7
  756. package/apps/material-react-table-docs/examples/enable-detail-panel-conditionally/index.tsx +0 -15
  757. package/apps/material-react-table-docs/examples/enable-detail-panel-conditionally/sandbox/README.md +0 -6
  758. package/apps/material-react-table-docs/examples/enable-detail-panel-conditionally/sandbox/index.html +0 -13
  759. package/apps/material-react-table-docs/examples/enable-detail-panel-conditionally/sandbox/package-lock.json +0 -2594
  760. package/apps/material-react-table-docs/examples/enable-detail-panel-conditionally/sandbox/package.json +0 -30
  761. package/apps/material-react-table-docs/examples/enable-detail-panel-conditionally/sandbox/src/TS.tsx +0 -78
  762. package/apps/material-react-table-docs/examples/enable-detail-panel-conditionally/sandbox/src/main.tsx +0 -9
  763. package/apps/material-react-table-docs/examples/enable-detail-panel-conditionally/sandbox/src/makeData.ts +0 -55
  764. package/apps/material-react-table-docs/examples/enable-detail-panel-conditionally/sandbox/src/vite.env.d.ts +0 -1
  765. package/apps/material-react-table-docs/examples/enable-detail-panel-conditionally/sandbox/tsconfig.json +0 -31
  766. package/apps/material-react-table-docs/examples/enable-detail-panel-conditionally/sandbox/tsconfig.node.json +0 -8
  767. package/apps/material-react-table-docs/examples/enable-detail-panel-conditionally/sandbox/vite.config.js +0 -7
  768. package/apps/material-react-table-docs/examples/enable-detail-panel-virtualized/index.tsx +0 -15
  769. package/apps/material-react-table-docs/examples/enable-detail-panel-virtualized/sandbox/README.md +0 -6
  770. package/apps/material-react-table-docs/examples/enable-detail-panel-virtualized/sandbox/index.html +0 -13
  771. package/apps/material-react-table-docs/examples/enable-detail-panel-virtualized/sandbox/package-lock.json +0 -2594
  772. package/apps/material-react-table-docs/examples/enable-detail-panel-virtualized/sandbox/package.json +0 -30
  773. package/apps/material-react-table-docs/examples/enable-detail-panel-virtualized/sandbox/src/TS.tsx +0 -80
  774. package/apps/material-react-table-docs/examples/enable-detail-panel-virtualized/sandbox/src/main.tsx +0 -9
  775. package/apps/material-react-table-docs/examples/enable-detail-panel-virtualized/sandbox/src/makeData.ts +0 -201
  776. package/apps/material-react-table-docs/examples/enable-detail-panel-virtualized/sandbox/src/vite.env.d.ts +0 -1
  777. package/apps/material-react-table-docs/examples/enable-detail-panel-virtualized/sandbox/tsconfig.json +0 -31
  778. package/apps/material-react-table-docs/examples/enable-detail-panel-virtualized/sandbox/tsconfig.node.json +0 -8
  779. package/apps/material-react-table-docs/examples/enable-detail-panel-virtualized/sandbox/vite.config.js +0 -7
  780. package/apps/material-react-table-docs/examples/enable-expanding-tree/index.tsx +0 -15
  781. package/apps/material-react-table-docs/examples/enable-expanding-tree/sandbox/README.md +0 -6
  782. package/apps/material-react-table-docs/examples/enable-expanding-tree/sandbox/index.html +0 -13
  783. package/apps/material-react-table-docs/examples/enable-expanding-tree/sandbox/package-lock.json +0 -2594
  784. package/apps/material-react-table-docs/examples/enable-expanding-tree/sandbox/package.json +0 -30
  785. package/apps/material-react-table-docs/examples/enable-expanding-tree/sandbox/src/TS.tsx +0 -110
  786. package/apps/material-react-table-docs/examples/enable-expanding-tree/sandbox/src/main.tsx +0 -9
  787. package/apps/material-react-table-docs/examples/enable-expanding-tree/sandbox/src/vite.env.d.ts +0 -1
  788. package/apps/material-react-table-docs/examples/enable-expanding-tree/sandbox/tsconfig.json +0 -31
  789. package/apps/material-react-table-docs/examples/enable-expanding-tree/sandbox/tsconfig.node.json +0 -8
  790. package/apps/material-react-table-docs/examples/enable-expanding-tree/sandbox/vite.config.js +0 -7
  791. package/apps/material-react-table-docs/examples/enable-filter-facet-values/index.tsx +0 -15
  792. package/apps/material-react-table-docs/examples/enable-filter-facet-values/sandbox/README.md +0 -6
  793. package/apps/material-react-table-docs/examples/enable-filter-facet-values/sandbox/index.html +0 -13
  794. package/apps/material-react-table-docs/examples/enable-filter-facet-values/sandbox/package-lock.json +0 -2594
  795. package/apps/material-react-table-docs/examples/enable-filter-facet-values/sandbox/package.json +0 -30
  796. package/apps/material-react-table-docs/examples/enable-filter-facet-values/sandbox/src/TS.tsx +0 -65
  797. package/apps/material-react-table-docs/examples/enable-filter-facet-values/sandbox/src/main.tsx +0 -9
  798. package/apps/material-react-table-docs/examples/enable-filter-facet-values/sandbox/src/makeData.ts +0 -67
  799. package/apps/material-react-table-docs/examples/enable-filter-facet-values/sandbox/src/vite.env.d.ts +0 -1
  800. package/apps/material-react-table-docs/examples/enable-filter-facet-values/sandbox/tsconfig.json +0 -31
  801. package/apps/material-react-table-docs/examples/enable-filter-facet-values/sandbox/tsconfig.node.json +0 -8
  802. package/apps/material-react-table-docs/examples/enable-filter-facet-values/sandbox/vite.config.js +0 -7
  803. package/apps/material-react-table-docs/examples/enable-row-dragging/index.tsx +0 -15
  804. package/apps/material-react-table-docs/examples/enable-row-dragging/sandbox/README.md +0 -6
  805. package/apps/material-react-table-docs/examples/enable-row-dragging/sandbox/index.html +0 -13
  806. package/apps/material-react-table-docs/examples/enable-row-dragging/sandbox/package-lock.json +0 -2594
  807. package/apps/material-react-table-docs/examples/enable-row-dragging/sandbox/package.json +0 -30
  808. package/apps/material-react-table-docs/examples/enable-row-dragging/sandbox/src/TS.tsx +0 -125
  809. package/apps/material-react-table-docs/examples/enable-row-dragging/sandbox/src/main.tsx +0 -9
  810. package/apps/material-react-table-docs/examples/enable-row-dragging/sandbox/src/makeData.ts +0 -33
  811. package/apps/material-react-table-docs/examples/enable-row-dragging/sandbox/src/vite.env.d.ts +0 -1
  812. package/apps/material-react-table-docs/examples/enable-row-dragging/sandbox/tsconfig.json +0 -31
  813. package/apps/material-react-table-docs/examples/enable-row-dragging/sandbox/tsconfig.node.json +0 -8
  814. package/apps/material-react-table-docs/examples/enable-row-dragging/sandbox/vite.config.js +0 -7
  815. package/apps/material-react-table-docs/examples/enable-row-numbers-original/index.tsx +0 -15
  816. package/apps/material-react-table-docs/examples/enable-row-numbers-original/sandbox/README.md +0 -6
  817. package/apps/material-react-table-docs/examples/enable-row-numbers-original/sandbox/index.html +0 -13
  818. package/apps/material-react-table-docs/examples/enable-row-numbers-original/sandbox/package-lock.json +0 -2594
  819. package/apps/material-react-table-docs/examples/enable-row-numbers-original/sandbox/package.json +0 -30
  820. package/apps/material-react-table-docs/examples/enable-row-numbers-original/sandbox/src/TS.tsx +0 -48
  821. package/apps/material-react-table-docs/examples/enable-row-numbers-original/sandbox/src/main.tsx +0 -9
  822. package/apps/material-react-table-docs/examples/enable-row-numbers-original/sandbox/src/makeData.ts +0 -45
  823. package/apps/material-react-table-docs/examples/enable-row-numbers-original/sandbox/src/vite.env.d.ts +0 -1
  824. package/apps/material-react-table-docs/examples/enable-row-numbers-original/sandbox/tsconfig.json +0 -31
  825. package/apps/material-react-table-docs/examples/enable-row-numbers-original/sandbox/tsconfig.node.json +0 -8
  826. package/apps/material-react-table-docs/examples/enable-row-numbers-original/sandbox/vite.config.js +0 -7
  827. package/apps/material-react-table-docs/examples/enable-row-numbers-static/index.tsx +0 -15
  828. package/apps/material-react-table-docs/examples/enable-row-numbers-static/sandbox/README.md +0 -6
  829. package/apps/material-react-table-docs/examples/enable-row-numbers-static/sandbox/index.html +0 -13
  830. package/apps/material-react-table-docs/examples/enable-row-numbers-static/sandbox/package-lock.json +0 -2594
  831. package/apps/material-react-table-docs/examples/enable-row-numbers-static/sandbox/package.json +0 -30
  832. package/apps/material-react-table-docs/examples/enable-row-numbers-static/sandbox/src/TS.tsx +0 -48
  833. package/apps/material-react-table-docs/examples/enable-row-numbers-static/sandbox/src/main.tsx +0 -9
  834. package/apps/material-react-table-docs/examples/enable-row-numbers-static/sandbox/src/makeData.ts +0 -45
  835. package/apps/material-react-table-docs/examples/enable-row-numbers-static/sandbox/src/vite.env.d.ts +0 -1
  836. package/apps/material-react-table-docs/examples/enable-row-numbers-static/sandbox/tsconfig.json +0 -31
  837. package/apps/material-react-table-docs/examples/enable-row-numbers-static/sandbox/tsconfig.node.json +0 -8
  838. package/apps/material-react-table-docs/examples/enable-row-numbers-static/sandbox/vite.config.js +0 -7
  839. package/apps/material-react-table-docs/examples/enable-row-ordering/index.tsx +0 -15
  840. package/apps/material-react-table-docs/examples/enable-row-ordering/sandbox/README.md +0 -6
  841. package/apps/material-react-table-docs/examples/enable-row-ordering/sandbox/index.html +0 -13
  842. package/apps/material-react-table-docs/examples/enable-row-ordering/sandbox/package-lock.json +0 -2594
  843. package/apps/material-react-table-docs/examples/enable-row-ordering/sandbox/package.json +0 -30
  844. package/apps/material-react-table-docs/examples/enable-row-ordering/sandbox/src/TS.tsx +0 -57
  845. package/apps/material-react-table-docs/examples/enable-row-ordering/sandbox/src/main.tsx +0 -9
  846. package/apps/material-react-table-docs/examples/enable-row-ordering/sandbox/src/makeData.ts +0 -33
  847. package/apps/material-react-table-docs/examples/enable-row-ordering/sandbox/src/vite.env.d.ts +0 -1
  848. package/apps/material-react-table-docs/examples/enable-row-ordering/sandbox/tsconfig.json +0 -31
  849. package/apps/material-react-table-docs/examples/enable-row-ordering/sandbox/tsconfig.node.json +0 -8
  850. package/apps/material-react-table-docs/examples/enable-row-ordering/sandbox/vite.config.js +0 -7
  851. package/apps/material-react-table-docs/examples/enable-row-pinning-select/index.tsx +0 -15
  852. package/apps/material-react-table-docs/examples/enable-row-pinning-select/sandbox/README.md +0 -6
  853. package/apps/material-react-table-docs/examples/enable-row-pinning-select/sandbox/index.html +0 -13
  854. package/apps/material-react-table-docs/examples/enable-row-pinning-select/sandbox/package-lock.json +0 -2594
  855. package/apps/material-react-table-docs/examples/enable-row-pinning-select/sandbox/package.json +0 -30
  856. package/apps/material-react-table-docs/examples/enable-row-pinning-select/sandbox/src/TS.tsx +0 -75
  857. package/apps/material-react-table-docs/examples/enable-row-pinning-select/sandbox/src/main.tsx +0 -9
  858. package/apps/material-react-table-docs/examples/enable-row-pinning-select/sandbox/src/makeData.ts +0 -189
  859. package/apps/material-react-table-docs/examples/enable-row-pinning-select/sandbox/src/vite.env.d.ts +0 -1
  860. package/apps/material-react-table-docs/examples/enable-row-pinning-select/sandbox/tsconfig.json +0 -31
  861. package/apps/material-react-table-docs/examples/enable-row-pinning-select/sandbox/tsconfig.node.json +0 -8
  862. package/apps/material-react-table-docs/examples/enable-row-pinning-select/sandbox/vite.config.js +0 -7
  863. package/apps/material-react-table-docs/examples/enable-row-pinning-static/index.tsx +0 -15
  864. package/apps/material-react-table-docs/examples/enable-row-pinning-static/sandbox/README.md +0 -6
  865. package/apps/material-react-table-docs/examples/enable-row-pinning-static/sandbox/index.html +0 -13
  866. package/apps/material-react-table-docs/examples/enable-row-pinning-static/sandbox/package-lock.json +0 -2594
  867. package/apps/material-react-table-docs/examples/enable-row-pinning-static/sandbox/package.json +0 -30
  868. package/apps/material-react-table-docs/examples/enable-row-pinning-static/sandbox/src/TS.tsx +0 -50
  869. package/apps/material-react-table-docs/examples/enable-row-pinning-static/sandbox/src/main.tsx +0 -9
  870. package/apps/material-react-table-docs/examples/enable-row-pinning-static/sandbox/src/makeData.ts +0 -189
  871. package/apps/material-react-table-docs/examples/enable-row-pinning-static/sandbox/src/vite.env.d.ts +0 -1
  872. package/apps/material-react-table-docs/examples/enable-row-pinning-static/sandbox/tsconfig.json +0 -31
  873. package/apps/material-react-table-docs/examples/enable-row-pinning-static/sandbox/tsconfig.node.json +0 -8
  874. package/apps/material-react-table-docs/examples/enable-row-pinning-static/sandbox/vite.config.js +0 -7
  875. package/apps/material-react-table-docs/examples/enable-row-pinning-sticky/index.tsx +0 -15
  876. package/apps/material-react-table-docs/examples/enable-row-pinning-sticky/sandbox/README.md +0 -6
  877. package/apps/material-react-table-docs/examples/enable-row-pinning-sticky/sandbox/index.html +0 -13
  878. package/apps/material-react-table-docs/examples/enable-row-pinning-sticky/sandbox/package-lock.json +0 -2594
  879. package/apps/material-react-table-docs/examples/enable-row-pinning-sticky/sandbox/package.json +0 -30
  880. package/apps/material-react-table-docs/examples/enable-row-pinning-sticky/sandbox/src/TS.tsx +0 -69
  881. package/apps/material-react-table-docs/examples/enable-row-pinning-sticky/sandbox/src/main.tsx +0 -9
  882. package/apps/material-react-table-docs/examples/enable-row-pinning-sticky/sandbox/src/makeData.ts +0 -189
  883. package/apps/material-react-table-docs/examples/enable-row-pinning-sticky/sandbox/src/vite.env.d.ts +0 -1
  884. package/apps/material-react-table-docs/examples/enable-row-pinning-sticky/sandbox/tsconfig.json +0 -31
  885. package/apps/material-react-table-docs/examples/enable-row-pinning-sticky/sandbox/tsconfig.node.json +0 -8
  886. package/apps/material-react-table-docs/examples/enable-row-pinning-sticky/sandbox/vite.config.js +0 -7
  887. package/apps/material-react-table-docs/examples/enable-row-selection/index.tsx +0 -15
  888. package/apps/material-react-table-docs/examples/enable-row-selection/sandbox/README.md +0 -6
  889. package/apps/material-react-table-docs/examples/enable-row-selection/sandbox/index.html +0 -13
  890. package/apps/material-react-table-docs/examples/enable-row-selection/sandbox/package-lock.json +0 -2594
  891. package/apps/material-react-table-docs/examples/enable-row-selection/sandbox/package.json +0 -30
  892. package/apps/material-react-table-docs/examples/enable-row-selection/sandbox/src/TS.tsx +0 -96
  893. package/apps/material-react-table-docs/examples/enable-row-selection/sandbox/src/main.tsx +0 -9
  894. package/apps/material-react-table-docs/examples/enable-row-selection/sandbox/src/vite.env.d.ts +0 -1
  895. package/apps/material-react-table-docs/examples/enable-row-selection/sandbox/tsconfig.json +0 -31
  896. package/apps/material-react-table-docs/examples/enable-row-selection/sandbox/tsconfig.node.json +0 -8
  897. package/apps/material-react-table-docs/examples/enable-row-selection/sandbox/vite.config.js +0 -7
  898. package/apps/material-react-table-docs/examples/enable-row-virtualization/index.tsx +0 -15
  899. package/apps/material-react-table-docs/examples/enable-row-virtualization/sandbox/README.md +0 -6
  900. package/apps/material-react-table-docs/examples/enable-row-virtualization/sandbox/index.html +0 -13
  901. package/apps/material-react-table-docs/examples/enable-row-virtualization/sandbox/package-lock.json +0 -2611
  902. package/apps/material-react-table-docs/examples/enable-row-virtualization/sandbox/package.json +0 -31
  903. package/apps/material-react-table-docs/examples/enable-row-virtualization/sandbox/src/TS.tsx +0 -101
  904. package/apps/material-react-table-docs/examples/enable-row-virtualization/sandbox/src/main.tsx +0 -9
  905. package/apps/material-react-table-docs/examples/enable-row-virtualization/sandbox/src/makeData.ts +0 -26
  906. package/apps/material-react-table-docs/examples/enable-row-virtualization/sandbox/src/vite.env.d.ts +0 -1
  907. package/apps/material-react-table-docs/examples/enable-row-virtualization/sandbox/tsconfig.json +0 -31
  908. package/apps/material-react-table-docs/examples/enable-row-virtualization/sandbox/tsconfig.node.json +0 -8
  909. package/apps/material-react-table-docs/examples/enable-row-virtualization/sandbox/vite.config.js +0 -7
  910. package/apps/material-react-table-docs/examples/enable-sticky-header/index.tsx +0 -15
  911. package/apps/material-react-table-docs/examples/enable-sticky-header/sandbox/README.md +0 -6
  912. package/apps/material-react-table-docs/examples/enable-sticky-header/sandbox/index.html +0 -13
  913. package/apps/material-react-table-docs/examples/enable-sticky-header/sandbox/package-lock.json +0 -2594
  914. package/apps/material-react-table-docs/examples/enable-sticky-header/sandbox/package.json +0 -30
  915. package/apps/material-react-table-docs/examples/enable-sticky-header/sandbox/src/TS.tsx +0 -59
  916. package/apps/material-react-table-docs/examples/enable-sticky-header/sandbox/src/main.tsx +0 -9
  917. package/apps/material-react-table-docs/examples/enable-sticky-header/sandbox/src/makeData.ts +0 -189
  918. package/apps/material-react-table-docs/examples/enable-sticky-header/sandbox/src/vite.env.d.ts +0 -1
  919. package/apps/material-react-table-docs/examples/enable-sticky-header/sandbox/tsconfig.json +0 -31
  920. package/apps/material-react-table-docs/examples/enable-sticky-header/sandbox/tsconfig.node.json +0 -8
  921. package/apps/material-react-table-docs/examples/enable-sticky-header/sandbox/vite.config.js +0 -7
  922. package/apps/material-react-table-docs/examples/expanding-tree-expanded/index.tsx +0 -15
  923. package/apps/material-react-table-docs/examples/expanding-tree-expanded/sandbox/README.md +0 -6
  924. package/apps/material-react-table-docs/examples/expanding-tree-expanded/sandbox/index.html +0 -13
  925. package/apps/material-react-table-docs/examples/expanding-tree-expanded/sandbox/package-lock.json +0 -2594
  926. package/apps/material-react-table-docs/examples/expanding-tree-expanded/sandbox/package.json +0 -30
  927. package/apps/material-react-table-docs/examples/expanding-tree-expanded/sandbox/src/TS.tsx +0 -121
  928. package/apps/material-react-table-docs/examples/expanding-tree-expanded/sandbox/src/main.tsx +0 -9
  929. package/apps/material-react-table-docs/examples/expanding-tree-expanded/sandbox/src/vite.env.d.ts +0 -1
  930. package/apps/material-react-table-docs/examples/expanding-tree-expanded/sandbox/tsconfig.json +0 -31
  931. package/apps/material-react-table-docs/examples/expanding-tree-expanded/sandbox/tsconfig.node.json +0 -8
  932. package/apps/material-react-table-docs/examples/expanding-tree-expanded/sandbox/vite.config.js +0 -7
  933. package/apps/material-react-table-docs/examples/expanding-tree-flat-parse/index.tsx +0 -15
  934. package/apps/material-react-table-docs/examples/expanding-tree-flat-parse/sandbox/README.md +0 -6
  935. package/apps/material-react-table-docs/examples/expanding-tree-flat-parse/sandbox/index.html +0 -13
  936. package/apps/material-react-table-docs/examples/expanding-tree-flat-parse/sandbox/package-lock.json +0 -2594
  937. package/apps/material-react-table-docs/examples/expanding-tree-flat-parse/sandbox/package.json +0 -30
  938. package/apps/material-react-table-docs/examples/expanding-tree-flat-parse/sandbox/src/TS.tsx +0 -125
  939. package/apps/material-react-table-docs/examples/expanding-tree-flat-parse/sandbox/src/main.tsx +0 -9
  940. package/apps/material-react-table-docs/examples/expanding-tree-flat-parse/sandbox/src/vite.env.d.ts +0 -1
  941. package/apps/material-react-table-docs/examples/expanding-tree-flat-parse/sandbox/tsconfig.json +0 -31
  942. package/apps/material-react-table-docs/examples/expanding-tree-flat-parse/sandbox/tsconfig.node.json +0 -8
  943. package/apps/material-react-table-docs/examples/expanding-tree-flat-parse/sandbox/vite.config.js +0 -7
  944. package/apps/material-react-table-docs/examples/expanding-tree-root-expanded/index.tsx +0 -15
  945. package/apps/material-react-table-docs/examples/expanding-tree-root-expanded/sandbox/README.md +0 -6
  946. package/apps/material-react-table-docs/examples/expanding-tree-root-expanded/sandbox/index.html +0 -13
  947. package/apps/material-react-table-docs/examples/expanding-tree-root-expanded/sandbox/package-lock.json +0 -2594
  948. package/apps/material-react-table-docs/examples/expanding-tree-root-expanded/sandbox/package.json +0 -30
  949. package/apps/material-react-table-docs/examples/expanding-tree-root-expanded/sandbox/src/TS.tsx +0 -151
  950. package/apps/material-react-table-docs/examples/expanding-tree-root-expanded/sandbox/src/main.tsx +0 -9
  951. package/apps/material-react-table-docs/examples/expanding-tree-root-expanded/sandbox/src/vite.env.d.ts +0 -1
  952. package/apps/material-react-table-docs/examples/expanding-tree-root-expanded/sandbox/tsconfig.json +0 -31
  953. package/apps/material-react-table-docs/examples/expanding-tree-root-expanded/sandbox/tsconfig.node.json +0 -8
  954. package/apps/material-react-table-docs/examples/expanding-tree-root-expanded/sandbox/vite.config.js +0 -7
  955. package/apps/material-react-table-docs/examples/export-to-csv/index.tsx +0 -15
  956. package/apps/material-react-table-docs/examples/export-to-csv/sandbox/README.md +0 -6
  957. package/apps/material-react-table-docs/examples/export-to-csv/sandbox/index.html +0 -13
  958. package/apps/material-react-table-docs/examples/export-to-csv/sandbox/package-lock.json +0 -2624
  959. package/apps/material-react-table-docs/examples/export-to-csv/sandbox/package.json +0 -28
  960. package/apps/material-react-table-docs/examples/export-to-csv/sandbox/src/TS.tsx +0 -116
  961. package/apps/material-react-table-docs/examples/export-to-csv/sandbox/src/main.tsx +0 -9
  962. package/apps/material-react-table-docs/examples/export-to-csv/sandbox/src/makeData.ts +0 -107
  963. package/apps/material-react-table-docs/examples/export-to-csv/sandbox/src/vite.env.d.ts +0 -1
  964. package/apps/material-react-table-docs/examples/export-to-csv/sandbox/tsconfig.json +0 -31
  965. package/apps/material-react-table-docs/examples/export-to-csv/sandbox/tsconfig.node.json +0 -8
  966. package/apps/material-react-table-docs/examples/export-to-csv/sandbox/vite.config.js +0 -7
  967. package/apps/material-react-table-docs/examples/export-to-pdf/index.tsx +0 -15
  968. package/apps/material-react-table-docs/examples/export-to-pdf/sandbox/README.md +0 -6
  969. package/apps/material-react-table-docs/examples/export-to-pdf/sandbox/index.html +0 -13
  970. package/apps/material-react-table-docs/examples/export-to-pdf/sandbox/package-lock.json +0 -2821
  971. package/apps/material-react-table-docs/examples/export-to-pdf/sandbox/package.json +0 -30
  972. package/apps/material-react-table-docs/examples/export-to-pdf/sandbox/src/TS.tsx +0 -106
  973. package/apps/material-react-table-docs/examples/export-to-pdf/sandbox/src/main.tsx +0 -9
  974. package/apps/material-react-table-docs/examples/export-to-pdf/sandbox/src/makeData.ts +0 -107
  975. package/apps/material-react-table-docs/examples/export-to-pdf/sandbox/src/vite.env.d.ts +0 -1
  976. package/apps/material-react-table-docs/examples/export-to-pdf/sandbox/tsconfig.json +0 -31
  977. package/apps/material-react-table-docs/examples/export-to-pdf/sandbox/tsconfig.node.json +0 -8
  978. package/apps/material-react-table-docs/examples/export-to-pdf/sandbox/vite.config.js +0 -7
  979. package/apps/material-react-table-docs/examples/external-toolbar/index.tsx +0 -15
  980. package/apps/material-react-table-docs/examples/external-toolbar/sandbox/README.md +0 -6
  981. package/apps/material-react-table-docs/examples/external-toolbar/sandbox/index.html +0 -13
  982. package/apps/material-react-table-docs/examples/external-toolbar/sandbox/package-lock.json +0 -2594
  983. package/apps/material-react-table-docs/examples/external-toolbar/sandbox/package.json +0 -30
  984. package/apps/material-react-table-docs/examples/external-toolbar/sandbox/src/TS.tsx +0 -104
  985. package/apps/material-react-table-docs/examples/external-toolbar/sandbox/src/main.tsx +0 -9
  986. package/apps/material-react-table-docs/examples/external-toolbar/sandbox/src/makeData.ts +0 -87
  987. package/apps/material-react-table-docs/examples/external-toolbar/sandbox/src/vite.env.d.ts +0 -1
  988. package/apps/material-react-table-docs/examples/external-toolbar/sandbox/tsconfig.json +0 -31
  989. package/apps/material-react-table-docs/examples/external-toolbar/sandbox/tsconfig.node.json +0 -8
  990. package/apps/material-react-table-docs/examples/external-toolbar/sandbox/vite.config.js +0 -7
  991. package/apps/material-react-table-docs/examples/font-awesome-icons/index.tsx +0 -15
  992. package/apps/material-react-table-docs/examples/font-awesome-icons/sandbox/README.md +0 -6
  993. package/apps/material-react-table-docs/examples/font-awesome-icons/sandbox/index.html +0 -13
  994. package/apps/material-react-table-docs/examples/font-awesome-icons/sandbox/package-lock.json +0 -2642
  995. package/apps/material-react-table-docs/examples/font-awesome-icons/sandbox/package.json +0 -33
  996. package/apps/material-react-table-docs/examples/font-awesome-icons/sandbox/src/TS.tsx +0 -106
  997. package/apps/material-react-table-docs/examples/font-awesome-icons/sandbox/src/main.tsx +0 -9
  998. package/apps/material-react-table-docs/examples/font-awesome-icons/sandbox/src/makeData.ts +0 -45
  999. package/apps/material-react-table-docs/examples/font-awesome-icons/sandbox/src/vite.env.d.ts +0 -1
  1000. package/apps/material-react-table-docs/examples/font-awesome-icons/sandbox/tsconfig.json +0 -31
  1001. package/apps/material-react-table-docs/examples/font-awesome-icons/sandbox/tsconfig.node.json +0 -8
  1002. package/apps/material-react-table-docs/examples/font-awesome-icons/sandbox/vite.config.js +0 -7
  1003. package/apps/material-react-table-docs/examples/infinite-scrolling/index.tsx +0 -15
  1004. package/apps/material-react-table-docs/examples/infinite-scrolling/sandbox/README.md +0 -6
  1005. package/apps/material-react-table-docs/examples/infinite-scrolling/sandbox/index.html +0 -13
  1006. package/apps/material-react-table-docs/examples/infinite-scrolling/sandbox/package-lock.json +0 -2647
  1007. package/apps/material-react-table-docs/examples/infinite-scrolling/sandbox/package.json +0 -29
  1008. package/apps/material-react-table-docs/examples/infinite-scrolling/sandbox/src/TS.tsx +0 -198
  1009. package/apps/material-react-table-docs/examples/infinite-scrolling/sandbox/src/main.tsx +0 -9
  1010. package/apps/material-react-table-docs/examples/infinite-scrolling/sandbox/src/vite.env.d.ts +0 -1
  1011. package/apps/material-react-table-docs/examples/infinite-scrolling/sandbox/tsconfig.json +0 -31
  1012. package/apps/material-react-table-docs/examples/infinite-scrolling/sandbox/tsconfig.node.json +0 -8
  1013. package/apps/material-react-table-docs/examples/infinite-scrolling/sandbox/vite.config.js +0 -7
  1014. package/apps/material-react-table-docs/examples/lazy-detail-panel/index.tsx +0 -15
  1015. package/apps/material-react-table-docs/examples/lazy-detail-panel/sandbox/README.md +0 -6
  1016. package/apps/material-react-table-docs/examples/lazy-detail-panel/sandbox/index.html +0 -13
  1017. package/apps/material-react-table-docs/examples/lazy-detail-panel/sandbox/package-lock.json +0 -2647
  1018. package/apps/material-react-table-docs/examples/lazy-detail-panel/sandbox/package.json +0 -29
  1019. package/apps/material-react-table-docs/examples/lazy-detail-panel/sandbox/src/TS.tsx +0 -246
  1020. package/apps/material-react-table-docs/examples/lazy-detail-panel/sandbox/src/main.tsx +0 -9
  1021. package/apps/material-react-table-docs/examples/lazy-detail-panel/sandbox/src/vite.env.d.ts +0 -1
  1022. package/apps/material-react-table-docs/examples/lazy-detail-panel/sandbox/tsconfig.json +0 -31
  1023. package/apps/material-react-table-docs/examples/lazy-detail-panel/sandbox/tsconfig.node.json +0 -8
  1024. package/apps/material-react-table-docs/examples/lazy-detail-panel/sandbox/vite.config.js +0 -7
  1025. package/apps/material-react-table-docs/examples/lazy-sub-rows/index.tsx +0 -15
  1026. package/apps/material-react-table-docs/examples/lazy-sub-rows/sandbox/README.md +0 -6
  1027. package/apps/material-react-table-docs/examples/lazy-sub-rows/sandbox/index.html +0 -13
  1028. package/apps/material-react-table-docs/examples/lazy-sub-rows/sandbox/package-lock.json +0 -2647
  1029. package/apps/material-react-table-docs/examples/lazy-sub-rows/sandbox/package.json +0 -29
  1030. package/apps/material-react-table-docs/examples/lazy-sub-rows/sandbox/src/TS.tsx +0 -178
  1031. package/apps/material-react-table-docs/examples/lazy-sub-rows/sandbox/src/main.tsx +0 -9
  1032. package/apps/material-react-table-docs/examples/lazy-sub-rows/sandbox/src/vite.env.d.ts +0 -1
  1033. package/apps/material-react-table-docs/examples/lazy-sub-rows/sandbox/tsconfig.json +0 -31
  1034. package/apps/material-react-table-docs/examples/lazy-sub-rows/sandbox/tsconfig.node.json +0 -8
  1035. package/apps/material-react-table-docs/examples/lazy-sub-rows/sandbox/vite.config.js +0 -7
  1036. package/apps/material-react-table-docs/examples/linear-progress/index.tsx +0 -15
  1037. package/apps/material-react-table-docs/examples/linear-progress/sandbox/README.md +0 -6
  1038. package/apps/material-react-table-docs/examples/linear-progress/sandbox/index.html +0 -13
  1039. package/apps/material-react-table-docs/examples/linear-progress/sandbox/package-lock.json +0 -2594
  1040. package/apps/material-react-table-docs/examples/linear-progress/sandbox/package.json +0 -30
  1041. package/apps/material-react-table-docs/examples/linear-progress/sandbox/src/TS.tsx +0 -66
  1042. package/apps/material-react-table-docs/examples/linear-progress/sandbox/src/main.tsx +0 -9
  1043. package/apps/material-react-table-docs/examples/linear-progress/sandbox/src/makeData.ts +0 -45
  1044. package/apps/material-react-table-docs/examples/linear-progress/sandbox/src/vite.env.d.ts +0 -1
  1045. package/apps/material-react-table-docs/examples/linear-progress/sandbox/tsconfig.json +0 -31
  1046. package/apps/material-react-table-docs/examples/linear-progress/sandbox/tsconfig.node.json +0 -8
  1047. package/apps/material-react-table-docs/examples/linear-progress/sandbox/vite.config.js +0 -7
  1048. package/apps/material-react-table-docs/examples/loading/index.tsx +0 -15
  1049. package/apps/material-react-table-docs/examples/loading/sandbox/README.md +0 -6
  1050. package/apps/material-react-table-docs/examples/loading/sandbox/index.html +0 -13
  1051. package/apps/material-react-table-docs/examples/loading/sandbox/package-lock.json +0 -2594
  1052. package/apps/material-react-table-docs/examples/loading/sandbox/package.json +0 -30
  1053. package/apps/material-react-table-docs/examples/loading/sandbox/src/TS.tsx +0 -50
  1054. package/apps/material-react-table-docs/examples/loading/sandbox/src/main.tsx +0 -9
  1055. package/apps/material-react-table-docs/examples/loading/sandbox/src/makeData.ts +0 -45
  1056. package/apps/material-react-table-docs/examples/loading/sandbox/src/vite.env.d.ts +0 -1
  1057. package/apps/material-react-table-docs/examples/loading/sandbox/tsconfig.json +0 -31
  1058. package/apps/material-react-table-docs/examples/loading/sandbox/tsconfig.node.json +0 -8
  1059. package/apps/material-react-table-docs/examples/loading/sandbox/vite.config.js +0 -7
  1060. package/apps/material-react-table-docs/examples/localization-i18n-ar/index.tsx +0 -15
  1061. package/apps/material-react-table-docs/examples/localization-i18n-ar/sandbox/README.md +0 -6
  1062. package/apps/material-react-table-docs/examples/localization-i18n-ar/sandbox/index.html +0 -13
  1063. package/apps/material-react-table-docs/examples/localization-i18n-ar/sandbox/package-lock.json +0 -2594
  1064. package/apps/material-react-table-docs/examples/localization-i18n-ar/sandbox/package.json +0 -30
  1065. package/apps/material-react-table-docs/examples/localization-i18n-ar/sandbox/src/TS.tsx +0 -65
  1066. package/apps/material-react-table-docs/examples/localization-i18n-ar/sandbox/src/main.tsx +0 -9
  1067. package/apps/material-react-table-docs/examples/localization-i18n-ar/sandbox/src/makeData.ts +0 -23
  1068. package/apps/material-react-table-docs/examples/localization-i18n-ar/sandbox/src/vite.env.d.ts +0 -1
  1069. package/apps/material-react-table-docs/examples/localization-i18n-ar/sandbox/tsconfig.json +0 -31
  1070. package/apps/material-react-table-docs/examples/localization-i18n-ar/sandbox/tsconfig.node.json +0 -8
  1071. package/apps/material-react-table-docs/examples/localization-i18n-ar/sandbox/vite.config.js +0 -7
  1072. package/apps/material-react-table-docs/examples/localization-i18n-az/index.tsx +0 -15
  1073. package/apps/material-react-table-docs/examples/localization-i18n-az/sandbox/README.md +0 -6
  1074. package/apps/material-react-table-docs/examples/localization-i18n-az/sandbox/index.html +0 -13
  1075. package/apps/material-react-table-docs/examples/localization-i18n-az/sandbox/package-lock.json +0 -2594
  1076. package/apps/material-react-table-docs/examples/localization-i18n-az/sandbox/package.json +0 -30
  1077. package/apps/material-react-table-docs/examples/localization-i18n-az/sandbox/src/TS.tsx +0 -60
  1078. package/apps/material-react-table-docs/examples/localization-i18n-az/sandbox/src/main.tsx +0 -9
  1079. package/apps/material-react-table-docs/examples/localization-i18n-az/sandbox/src/makeData.ts +0 -23
  1080. package/apps/material-react-table-docs/examples/localization-i18n-az/sandbox/src/vite.env.d.ts +0 -1
  1081. package/apps/material-react-table-docs/examples/localization-i18n-az/sandbox/tsconfig.json +0 -31
  1082. package/apps/material-react-table-docs/examples/localization-i18n-az/sandbox/tsconfig.node.json +0 -8
  1083. package/apps/material-react-table-docs/examples/localization-i18n-az/sandbox/vite.config.js +0 -7
  1084. package/apps/material-react-table-docs/examples/localization-i18n-bg/index.tsx +0 -15
  1085. package/apps/material-react-table-docs/examples/localization-i18n-bg/sandbox/README.md +0 -6
  1086. package/apps/material-react-table-docs/examples/localization-i18n-bg/sandbox/index.html +0 -13
  1087. package/apps/material-react-table-docs/examples/localization-i18n-bg/sandbox/package-lock.json +0 -2594
  1088. package/apps/material-react-table-docs/examples/localization-i18n-bg/sandbox/package.json +0 -30
  1089. package/apps/material-react-table-docs/examples/localization-i18n-bg/sandbox/src/TS.tsx +0 -60
  1090. package/apps/material-react-table-docs/examples/localization-i18n-bg/sandbox/src/main.tsx +0 -9
  1091. package/apps/material-react-table-docs/examples/localization-i18n-bg/sandbox/src/makeData.ts +0 -23
  1092. package/apps/material-react-table-docs/examples/localization-i18n-bg/sandbox/src/vite.env.d.ts +0 -1
  1093. package/apps/material-react-table-docs/examples/localization-i18n-bg/sandbox/tsconfig.json +0 -31
  1094. package/apps/material-react-table-docs/examples/localization-i18n-bg/sandbox/tsconfig.node.json +0 -8
  1095. package/apps/material-react-table-docs/examples/localization-i18n-bg/sandbox/vite.config.js +0 -7
  1096. package/apps/material-react-table-docs/examples/localization-i18n-cs/index.tsx +0 -15
  1097. package/apps/material-react-table-docs/examples/localization-i18n-cs/sandbox/README.md +0 -6
  1098. package/apps/material-react-table-docs/examples/localization-i18n-cs/sandbox/index.html +0 -13
  1099. package/apps/material-react-table-docs/examples/localization-i18n-cs/sandbox/package-lock.json +0 -2594
  1100. package/apps/material-react-table-docs/examples/localization-i18n-cs/sandbox/package.json +0 -30
  1101. package/apps/material-react-table-docs/examples/localization-i18n-cs/sandbox/src/TS.tsx +0 -60
  1102. package/apps/material-react-table-docs/examples/localization-i18n-cs/sandbox/src/main.tsx +0 -9
  1103. package/apps/material-react-table-docs/examples/localization-i18n-cs/sandbox/src/makeData.ts +0 -23
  1104. package/apps/material-react-table-docs/examples/localization-i18n-cs/sandbox/src/vite.env.d.ts +0 -1
  1105. package/apps/material-react-table-docs/examples/localization-i18n-cs/sandbox/tsconfig.json +0 -31
  1106. package/apps/material-react-table-docs/examples/localization-i18n-cs/sandbox/tsconfig.node.json +0 -8
  1107. package/apps/material-react-table-docs/examples/localization-i18n-cs/sandbox/vite.config.js +0 -7
  1108. package/apps/material-react-table-docs/examples/localization-i18n-da/index.tsx +0 -15
  1109. package/apps/material-react-table-docs/examples/localization-i18n-da/sandbox/README.md +0 -6
  1110. package/apps/material-react-table-docs/examples/localization-i18n-da/sandbox/index.html +0 -13
  1111. package/apps/material-react-table-docs/examples/localization-i18n-da/sandbox/package-lock.json +0 -2594
  1112. package/apps/material-react-table-docs/examples/localization-i18n-da/sandbox/package.json +0 -30
  1113. package/apps/material-react-table-docs/examples/localization-i18n-da/sandbox/src/TS.tsx +0 -60
  1114. package/apps/material-react-table-docs/examples/localization-i18n-da/sandbox/src/main.tsx +0 -9
  1115. package/apps/material-react-table-docs/examples/localization-i18n-da/sandbox/src/makeData.ts +0 -23
  1116. package/apps/material-react-table-docs/examples/localization-i18n-da/sandbox/src/vite.env.d.ts +0 -1
  1117. package/apps/material-react-table-docs/examples/localization-i18n-da/sandbox/tsconfig.json +0 -31
  1118. package/apps/material-react-table-docs/examples/localization-i18n-da/sandbox/tsconfig.node.json +0 -8
  1119. package/apps/material-react-table-docs/examples/localization-i18n-da/sandbox/vite.config.js +0 -7
  1120. package/apps/material-react-table-docs/examples/localization-i18n-de/index.tsx +0 -15
  1121. package/apps/material-react-table-docs/examples/localization-i18n-de/sandbox/README.md +0 -6
  1122. package/apps/material-react-table-docs/examples/localization-i18n-de/sandbox/index.html +0 -13
  1123. package/apps/material-react-table-docs/examples/localization-i18n-de/sandbox/package-lock.json +0 -2594
  1124. package/apps/material-react-table-docs/examples/localization-i18n-de/sandbox/package.json +0 -30
  1125. package/apps/material-react-table-docs/examples/localization-i18n-de/sandbox/src/TS.tsx +0 -60
  1126. package/apps/material-react-table-docs/examples/localization-i18n-de/sandbox/src/main.tsx +0 -9
  1127. package/apps/material-react-table-docs/examples/localization-i18n-de/sandbox/src/makeData.ts +0 -23
  1128. package/apps/material-react-table-docs/examples/localization-i18n-de/sandbox/src/vite.env.d.ts +0 -1
  1129. package/apps/material-react-table-docs/examples/localization-i18n-de/sandbox/tsconfig.json +0 -31
  1130. package/apps/material-react-table-docs/examples/localization-i18n-de/sandbox/tsconfig.node.json +0 -8
  1131. package/apps/material-react-table-docs/examples/localization-i18n-de/sandbox/vite.config.js +0 -7
  1132. package/apps/material-react-table-docs/examples/localization-i18n-el/index.tsx +0 -15
  1133. package/apps/material-react-table-docs/examples/localization-i18n-el/sandbox/README.md +0 -6
  1134. package/apps/material-react-table-docs/examples/localization-i18n-el/sandbox/index.html +0 -13
  1135. package/apps/material-react-table-docs/examples/localization-i18n-el/sandbox/package-lock.json +0 -2594
  1136. package/apps/material-react-table-docs/examples/localization-i18n-el/sandbox/package.json +0 -30
  1137. package/apps/material-react-table-docs/examples/localization-i18n-el/sandbox/src/TS.tsx +0 -60
  1138. package/apps/material-react-table-docs/examples/localization-i18n-el/sandbox/src/main.tsx +0 -9
  1139. package/apps/material-react-table-docs/examples/localization-i18n-el/sandbox/src/makeData.ts +0 -23
  1140. package/apps/material-react-table-docs/examples/localization-i18n-el/sandbox/src/vite.env.d.ts +0 -1
  1141. package/apps/material-react-table-docs/examples/localization-i18n-el/sandbox/tsconfig.json +0 -31
  1142. package/apps/material-react-table-docs/examples/localization-i18n-el/sandbox/tsconfig.node.json +0 -8
  1143. package/apps/material-react-table-docs/examples/localization-i18n-el/sandbox/vite.config.js +0 -7
  1144. package/apps/material-react-table-docs/examples/localization-i18n-en/index.tsx +0 -15
  1145. package/apps/material-react-table-docs/examples/localization-i18n-en/sandbox/README.md +0 -6
  1146. package/apps/material-react-table-docs/examples/localization-i18n-en/sandbox/index.html +0 -13
  1147. package/apps/material-react-table-docs/examples/localization-i18n-en/sandbox/package-lock.json +0 -2594
  1148. package/apps/material-react-table-docs/examples/localization-i18n-en/sandbox/package.json +0 -30
  1149. package/apps/material-react-table-docs/examples/localization-i18n-en/sandbox/src/TS.tsx +0 -60
  1150. package/apps/material-react-table-docs/examples/localization-i18n-en/sandbox/src/main.tsx +0 -9
  1151. package/apps/material-react-table-docs/examples/localization-i18n-en/sandbox/src/makeData.ts +0 -23
  1152. package/apps/material-react-table-docs/examples/localization-i18n-en/sandbox/src/vite.env.d.ts +0 -1
  1153. package/apps/material-react-table-docs/examples/localization-i18n-en/sandbox/tsconfig.json +0 -31
  1154. package/apps/material-react-table-docs/examples/localization-i18n-en/sandbox/tsconfig.node.json +0 -8
  1155. package/apps/material-react-table-docs/examples/localization-i18n-en/sandbox/vite.config.js +0 -7
  1156. package/apps/material-react-table-docs/examples/localization-i18n-es/index.tsx +0 -15
  1157. package/apps/material-react-table-docs/examples/localization-i18n-es/sandbox/README.md +0 -6
  1158. package/apps/material-react-table-docs/examples/localization-i18n-es/sandbox/index.html +0 -13
  1159. package/apps/material-react-table-docs/examples/localization-i18n-es/sandbox/package-lock.json +0 -2594
  1160. package/apps/material-react-table-docs/examples/localization-i18n-es/sandbox/package.json +0 -30
  1161. package/apps/material-react-table-docs/examples/localization-i18n-es/sandbox/src/TS.tsx +0 -60
  1162. package/apps/material-react-table-docs/examples/localization-i18n-es/sandbox/src/main.tsx +0 -9
  1163. package/apps/material-react-table-docs/examples/localization-i18n-es/sandbox/src/makeData.ts +0 -23
  1164. package/apps/material-react-table-docs/examples/localization-i18n-es/sandbox/src/vite.env.d.ts +0 -1
  1165. package/apps/material-react-table-docs/examples/localization-i18n-es/sandbox/tsconfig.json +0 -31
  1166. package/apps/material-react-table-docs/examples/localization-i18n-es/sandbox/tsconfig.node.json +0 -8
  1167. package/apps/material-react-table-docs/examples/localization-i18n-es/sandbox/vite.config.js +0 -7
  1168. package/apps/material-react-table-docs/examples/localization-i18n-et/index.tsx +0 -15
  1169. package/apps/material-react-table-docs/examples/localization-i18n-et/sandbox/README.md +0 -6
  1170. package/apps/material-react-table-docs/examples/localization-i18n-et/sandbox/index.html +0 -13
  1171. package/apps/material-react-table-docs/examples/localization-i18n-et/sandbox/package-lock.json +0 -2594
  1172. package/apps/material-react-table-docs/examples/localization-i18n-et/sandbox/package.json +0 -30
  1173. package/apps/material-react-table-docs/examples/localization-i18n-et/sandbox/src/TS.tsx +0 -60
  1174. package/apps/material-react-table-docs/examples/localization-i18n-et/sandbox/src/main.tsx +0 -9
  1175. package/apps/material-react-table-docs/examples/localization-i18n-et/sandbox/src/makeData.ts +0 -23
  1176. package/apps/material-react-table-docs/examples/localization-i18n-et/sandbox/src/vite.env.d.ts +0 -1
  1177. package/apps/material-react-table-docs/examples/localization-i18n-et/sandbox/tsconfig.json +0 -31
  1178. package/apps/material-react-table-docs/examples/localization-i18n-et/sandbox/tsconfig.node.json +0 -8
  1179. package/apps/material-react-table-docs/examples/localization-i18n-et/sandbox/vite.config.js +0 -7
  1180. package/apps/material-react-table-docs/examples/localization-i18n-fa/index.tsx +0 -15
  1181. package/apps/material-react-table-docs/examples/localization-i18n-fa/sandbox/README.md +0 -6
  1182. package/apps/material-react-table-docs/examples/localization-i18n-fa/sandbox/index.html +0 -13
  1183. package/apps/material-react-table-docs/examples/localization-i18n-fa/sandbox/package-lock.json +0 -2594
  1184. package/apps/material-react-table-docs/examples/localization-i18n-fa/sandbox/package.json +0 -30
  1185. package/apps/material-react-table-docs/examples/localization-i18n-fa/sandbox/src/TS.tsx +0 -66
  1186. package/apps/material-react-table-docs/examples/localization-i18n-fa/sandbox/src/main.tsx +0 -9
  1187. package/apps/material-react-table-docs/examples/localization-i18n-fa/sandbox/src/makeData.ts +0 -23
  1188. package/apps/material-react-table-docs/examples/localization-i18n-fa/sandbox/tsconfig.json +0 -31
  1189. package/apps/material-react-table-docs/examples/localization-i18n-fa/sandbox/tsconfig.node.json +0 -8
  1190. package/apps/material-react-table-docs/examples/localization-i18n-fa/sandbox/vite.config.js +0 -7
  1191. package/apps/material-react-table-docs/examples/localization-i18n-fi/index.tsx +0 -15
  1192. package/apps/material-react-table-docs/examples/localization-i18n-fi/sandbox/README.md +0 -6
  1193. package/apps/material-react-table-docs/examples/localization-i18n-fi/sandbox/index.html +0 -13
  1194. package/apps/material-react-table-docs/examples/localization-i18n-fi/sandbox/package-lock.json +0 -2594
  1195. package/apps/material-react-table-docs/examples/localization-i18n-fi/sandbox/package.json +0 -30
  1196. package/apps/material-react-table-docs/examples/localization-i18n-fi/sandbox/src/TS.tsx +0 -60
  1197. package/apps/material-react-table-docs/examples/localization-i18n-fi/sandbox/src/main.tsx +0 -9
  1198. package/apps/material-react-table-docs/examples/localization-i18n-fi/sandbox/src/makeData.ts +0 -23
  1199. package/apps/material-react-table-docs/examples/localization-i18n-fi/sandbox/src/vite.env.d.ts +0 -1
  1200. package/apps/material-react-table-docs/examples/localization-i18n-fi/sandbox/tsconfig.json +0 -31
  1201. package/apps/material-react-table-docs/examples/localization-i18n-fi/sandbox/tsconfig.node.json +0 -8
  1202. package/apps/material-react-table-docs/examples/localization-i18n-fi/sandbox/vite.config.js +0 -7
  1203. package/apps/material-react-table-docs/examples/localization-i18n-fr/index.tsx +0 -15
  1204. package/apps/material-react-table-docs/examples/localization-i18n-fr/sandbox/README.md +0 -6
  1205. package/apps/material-react-table-docs/examples/localization-i18n-fr/sandbox/index.html +0 -13
  1206. package/apps/material-react-table-docs/examples/localization-i18n-fr/sandbox/package-lock.json +0 -2594
  1207. package/apps/material-react-table-docs/examples/localization-i18n-fr/sandbox/package.json +0 -30
  1208. package/apps/material-react-table-docs/examples/localization-i18n-fr/sandbox/src/TS.tsx +0 -60
  1209. package/apps/material-react-table-docs/examples/localization-i18n-fr/sandbox/src/main.tsx +0 -9
  1210. package/apps/material-react-table-docs/examples/localization-i18n-fr/sandbox/src/makeData.ts +0 -23
  1211. package/apps/material-react-table-docs/examples/localization-i18n-fr/sandbox/src/vite.env.d.ts +0 -1
  1212. package/apps/material-react-table-docs/examples/localization-i18n-fr/sandbox/tsconfig.json +0 -31
  1213. package/apps/material-react-table-docs/examples/localization-i18n-fr/sandbox/tsconfig.node.json +0 -8
  1214. package/apps/material-react-table-docs/examples/localization-i18n-fr/sandbox/vite.config.js +0 -7
  1215. package/apps/material-react-table-docs/examples/localization-i18n-he/index.tsx +0 -15
  1216. package/apps/material-react-table-docs/examples/localization-i18n-he/sandbox/README.md +0 -6
  1217. package/apps/material-react-table-docs/examples/localization-i18n-he/sandbox/index.html +0 -13
  1218. package/apps/material-react-table-docs/examples/localization-i18n-he/sandbox/package-lock.json +0 -2594
  1219. package/apps/material-react-table-docs/examples/localization-i18n-he/sandbox/package.json +0 -30
  1220. package/apps/material-react-table-docs/examples/localization-i18n-he/sandbox/src/TS.tsx +0 -66
  1221. package/apps/material-react-table-docs/examples/localization-i18n-he/sandbox/src/main.tsx +0 -9
  1222. package/apps/material-react-table-docs/examples/localization-i18n-he/sandbox/src/makeData.ts +0 -23
  1223. package/apps/material-react-table-docs/examples/localization-i18n-he/sandbox/tsconfig.json +0 -31
  1224. package/apps/material-react-table-docs/examples/localization-i18n-he/sandbox/tsconfig.node.json +0 -8
  1225. package/apps/material-react-table-docs/examples/localization-i18n-he/sandbox/vite.config.js +0 -7
  1226. package/apps/material-react-table-docs/examples/localization-i18n-hr/index.tsx +0 -15
  1227. package/apps/material-react-table-docs/examples/localization-i18n-hr/sandbox/README.md +0 -6
  1228. package/apps/material-react-table-docs/examples/localization-i18n-hr/sandbox/index.html +0 -13
  1229. package/apps/material-react-table-docs/examples/localization-i18n-hr/sandbox/package-lock.json +0 -2594
  1230. package/apps/material-react-table-docs/examples/localization-i18n-hr/sandbox/package.json +0 -30
  1231. package/apps/material-react-table-docs/examples/localization-i18n-hr/sandbox/src/TS.tsx +0 -60
  1232. package/apps/material-react-table-docs/examples/localization-i18n-hr/sandbox/src/main.tsx +0 -9
  1233. package/apps/material-react-table-docs/examples/localization-i18n-hr/sandbox/src/makeData.ts +0 -23
  1234. package/apps/material-react-table-docs/examples/localization-i18n-hr/sandbox/src/vite.env.d.ts +0 -1
  1235. package/apps/material-react-table-docs/examples/localization-i18n-hr/sandbox/tsconfig.json +0 -31
  1236. package/apps/material-react-table-docs/examples/localization-i18n-hr/sandbox/tsconfig.node.json +0 -8
  1237. package/apps/material-react-table-docs/examples/localization-i18n-hr/sandbox/vite.config.js +0 -7
  1238. package/apps/material-react-table-docs/examples/localization-i18n-hu/index.tsx +0 -15
  1239. package/apps/material-react-table-docs/examples/localization-i18n-hu/sandbox/README.md +0 -6
  1240. package/apps/material-react-table-docs/examples/localization-i18n-hu/sandbox/index.html +0 -13
  1241. package/apps/material-react-table-docs/examples/localization-i18n-hu/sandbox/package-lock.json +0 -2594
  1242. package/apps/material-react-table-docs/examples/localization-i18n-hu/sandbox/package.json +0 -30
  1243. package/apps/material-react-table-docs/examples/localization-i18n-hu/sandbox/src/TS.tsx +0 -60
  1244. package/apps/material-react-table-docs/examples/localization-i18n-hu/sandbox/src/main.tsx +0 -9
  1245. package/apps/material-react-table-docs/examples/localization-i18n-hu/sandbox/src/makeData.ts +0 -23
  1246. package/apps/material-react-table-docs/examples/localization-i18n-hu/sandbox/src/vite.env.d.ts +0 -1
  1247. package/apps/material-react-table-docs/examples/localization-i18n-hu/sandbox/tsconfig.json +0 -31
  1248. package/apps/material-react-table-docs/examples/localization-i18n-hu/sandbox/tsconfig.node.json +0 -8
  1249. package/apps/material-react-table-docs/examples/localization-i18n-hu/sandbox/vite.config.js +0 -7
  1250. package/apps/material-react-table-docs/examples/localization-i18n-hy/index.tsx +0 -15
  1251. package/apps/material-react-table-docs/examples/localization-i18n-hy/sandbox/README.md +0 -6
  1252. package/apps/material-react-table-docs/examples/localization-i18n-hy/sandbox/index.html +0 -13
  1253. package/apps/material-react-table-docs/examples/localization-i18n-hy/sandbox/package-lock.json +0 -2594
  1254. package/apps/material-react-table-docs/examples/localization-i18n-hy/sandbox/package.json +0 -30
  1255. package/apps/material-react-table-docs/examples/localization-i18n-hy/sandbox/src/TS.tsx +0 -65
  1256. package/apps/material-react-table-docs/examples/localization-i18n-hy/sandbox/src/main.tsx +0 -9
  1257. package/apps/material-react-table-docs/examples/localization-i18n-hy/sandbox/src/makeData.ts +0 -23
  1258. package/apps/material-react-table-docs/examples/localization-i18n-hy/sandbox/src/vite.env.d.ts +0 -1
  1259. package/apps/material-react-table-docs/examples/localization-i18n-hy/sandbox/tsconfig.json +0 -31
  1260. package/apps/material-react-table-docs/examples/localization-i18n-hy/sandbox/tsconfig.node.json +0 -8
  1261. package/apps/material-react-table-docs/examples/localization-i18n-hy/sandbox/vite.config.js +0 -7
  1262. package/apps/material-react-table-docs/examples/localization-i18n-id/index.tsx +0 -15
  1263. package/apps/material-react-table-docs/examples/localization-i18n-id/sandbox/README.md +0 -6
  1264. package/apps/material-react-table-docs/examples/localization-i18n-id/sandbox/index.html +0 -13
  1265. package/apps/material-react-table-docs/examples/localization-i18n-id/sandbox/package-lock.json +0 -2594
  1266. package/apps/material-react-table-docs/examples/localization-i18n-id/sandbox/package.json +0 -30
  1267. package/apps/material-react-table-docs/examples/localization-i18n-id/sandbox/src/TS.tsx +0 -60
  1268. package/apps/material-react-table-docs/examples/localization-i18n-id/sandbox/src/main.tsx +0 -9
  1269. package/apps/material-react-table-docs/examples/localization-i18n-id/sandbox/src/makeData.ts +0 -23
  1270. package/apps/material-react-table-docs/examples/localization-i18n-id/sandbox/src/vite.env.d.ts +0 -1
  1271. package/apps/material-react-table-docs/examples/localization-i18n-id/sandbox/tsconfig.json +0 -31
  1272. package/apps/material-react-table-docs/examples/localization-i18n-id/sandbox/tsconfig.node.json +0 -8
  1273. package/apps/material-react-table-docs/examples/localization-i18n-id/sandbox/vite.config.js +0 -7
  1274. package/apps/material-react-table-docs/examples/localization-i18n-it/index.tsx +0 -15
  1275. package/apps/material-react-table-docs/examples/localization-i18n-it/sandbox/README.md +0 -6
  1276. package/apps/material-react-table-docs/examples/localization-i18n-it/sandbox/index.html +0 -13
  1277. package/apps/material-react-table-docs/examples/localization-i18n-it/sandbox/package-lock.json +0 -2594
  1278. package/apps/material-react-table-docs/examples/localization-i18n-it/sandbox/package.json +0 -30
  1279. package/apps/material-react-table-docs/examples/localization-i18n-it/sandbox/src/TS.tsx +0 -60
  1280. package/apps/material-react-table-docs/examples/localization-i18n-it/sandbox/src/main.tsx +0 -9
  1281. package/apps/material-react-table-docs/examples/localization-i18n-it/sandbox/src/makeData.ts +0 -23
  1282. package/apps/material-react-table-docs/examples/localization-i18n-it/sandbox/src/vite.env.d.ts +0 -1
  1283. package/apps/material-react-table-docs/examples/localization-i18n-it/sandbox/tsconfig.json +0 -31
  1284. package/apps/material-react-table-docs/examples/localization-i18n-it/sandbox/tsconfig.node.json +0 -8
  1285. package/apps/material-react-table-docs/examples/localization-i18n-it/sandbox/vite.config.js +0 -7
  1286. package/apps/material-react-table-docs/examples/localization-i18n-ja/index.tsx +0 -15
  1287. package/apps/material-react-table-docs/examples/localization-i18n-ja/sandbox/README.md +0 -6
  1288. package/apps/material-react-table-docs/examples/localization-i18n-ja/sandbox/index.html +0 -13
  1289. package/apps/material-react-table-docs/examples/localization-i18n-ja/sandbox/package-lock.json +0 -2594
  1290. package/apps/material-react-table-docs/examples/localization-i18n-ja/sandbox/package.json +0 -30
  1291. package/apps/material-react-table-docs/examples/localization-i18n-ja/sandbox/src/TS.tsx +0 -60
  1292. package/apps/material-react-table-docs/examples/localization-i18n-ja/sandbox/src/main.tsx +0 -9
  1293. package/apps/material-react-table-docs/examples/localization-i18n-ja/sandbox/src/makeData.ts +0 -23
  1294. package/apps/material-react-table-docs/examples/localization-i18n-ja/sandbox/src/vite.env.d.ts +0 -1
  1295. package/apps/material-react-table-docs/examples/localization-i18n-ja/sandbox/tsconfig.json +0 -31
  1296. package/apps/material-react-table-docs/examples/localization-i18n-ja/sandbox/tsconfig.node.json +0 -8
  1297. package/apps/material-react-table-docs/examples/localization-i18n-ja/sandbox/vite.config.js +0 -7
  1298. package/apps/material-react-table-docs/examples/localization-i18n-ko/index.tsx +0 -15
  1299. package/apps/material-react-table-docs/examples/localization-i18n-ko/sandbox/README.md +0 -6
  1300. package/apps/material-react-table-docs/examples/localization-i18n-ko/sandbox/index.html +0 -13
  1301. package/apps/material-react-table-docs/examples/localization-i18n-ko/sandbox/package-lock.json +0 -2594
  1302. package/apps/material-react-table-docs/examples/localization-i18n-ko/sandbox/package.json +0 -30
  1303. package/apps/material-react-table-docs/examples/localization-i18n-ko/sandbox/src/TS.tsx +0 -60
  1304. package/apps/material-react-table-docs/examples/localization-i18n-ko/sandbox/src/main.tsx +0 -9
  1305. package/apps/material-react-table-docs/examples/localization-i18n-ko/sandbox/src/makeData.ts +0 -23
  1306. package/apps/material-react-table-docs/examples/localization-i18n-ko/sandbox/src/vite.env.d.ts +0 -1
  1307. package/apps/material-react-table-docs/examples/localization-i18n-ko/sandbox/tsconfig.json +0 -31
  1308. package/apps/material-react-table-docs/examples/localization-i18n-ko/sandbox/tsconfig.node.json +0 -8
  1309. package/apps/material-react-table-docs/examples/localization-i18n-ko/sandbox/vite.config.js +0 -7
  1310. package/apps/material-react-table-docs/examples/localization-i18n-nl/index.tsx +0 -15
  1311. package/apps/material-react-table-docs/examples/localization-i18n-nl/sandbox/README.md +0 -6
  1312. package/apps/material-react-table-docs/examples/localization-i18n-nl/sandbox/index.html +0 -13
  1313. package/apps/material-react-table-docs/examples/localization-i18n-nl/sandbox/package-lock.json +0 -2594
  1314. package/apps/material-react-table-docs/examples/localization-i18n-nl/sandbox/package.json +0 -30
  1315. package/apps/material-react-table-docs/examples/localization-i18n-nl/sandbox/src/TS.tsx +0 -60
  1316. package/apps/material-react-table-docs/examples/localization-i18n-nl/sandbox/src/main.tsx +0 -9
  1317. package/apps/material-react-table-docs/examples/localization-i18n-nl/sandbox/src/makeData.ts +0 -23
  1318. package/apps/material-react-table-docs/examples/localization-i18n-nl/sandbox/src/vite.env.d.ts +0 -1
  1319. package/apps/material-react-table-docs/examples/localization-i18n-nl/sandbox/tsconfig.json +0 -31
  1320. package/apps/material-react-table-docs/examples/localization-i18n-nl/sandbox/tsconfig.node.json +0 -8
  1321. package/apps/material-react-table-docs/examples/localization-i18n-nl/sandbox/vite.config.js +0 -7
  1322. package/apps/material-react-table-docs/examples/localization-i18n-no/index.tsx +0 -15
  1323. package/apps/material-react-table-docs/examples/localization-i18n-no/sandbox/README.md +0 -6
  1324. package/apps/material-react-table-docs/examples/localization-i18n-no/sandbox/index.html +0 -13
  1325. package/apps/material-react-table-docs/examples/localization-i18n-no/sandbox/package-lock.json +0 -2594
  1326. package/apps/material-react-table-docs/examples/localization-i18n-no/sandbox/package.json +0 -30
  1327. package/apps/material-react-table-docs/examples/localization-i18n-no/sandbox/src/TS.tsx +0 -60
  1328. package/apps/material-react-table-docs/examples/localization-i18n-no/sandbox/src/main.tsx +0 -9
  1329. package/apps/material-react-table-docs/examples/localization-i18n-no/sandbox/src/makeData.ts +0 -23
  1330. package/apps/material-react-table-docs/examples/localization-i18n-no/sandbox/src/vite.env.d.ts +0 -1
  1331. package/apps/material-react-table-docs/examples/localization-i18n-no/sandbox/tsconfig.json +0 -31
  1332. package/apps/material-react-table-docs/examples/localization-i18n-no/sandbox/tsconfig.node.json +0 -8
  1333. package/apps/material-react-table-docs/examples/localization-i18n-no/sandbox/vite.config.js +0 -7
  1334. package/apps/material-react-table-docs/examples/localization-i18n-np/index.tsx +0 -15
  1335. package/apps/material-react-table-docs/examples/localization-i18n-np/sandbox/README.md +0 -6
  1336. package/apps/material-react-table-docs/examples/localization-i18n-np/sandbox/index.html +0 -13
  1337. package/apps/material-react-table-docs/examples/localization-i18n-np/sandbox/package-lock.json +0 -2594
  1338. package/apps/material-react-table-docs/examples/localization-i18n-np/sandbox/package.json +0 -30
  1339. package/apps/material-react-table-docs/examples/localization-i18n-np/sandbox/src/TS.tsx +0 -60
  1340. package/apps/material-react-table-docs/examples/localization-i18n-np/sandbox/src/main.tsx +0 -9
  1341. package/apps/material-react-table-docs/examples/localization-i18n-np/sandbox/src/makeData.ts +0 -23
  1342. package/apps/material-react-table-docs/examples/localization-i18n-np/sandbox/src/vite.env.d.ts +0 -1
  1343. package/apps/material-react-table-docs/examples/localization-i18n-np/sandbox/tsconfig.json +0 -31
  1344. package/apps/material-react-table-docs/examples/localization-i18n-np/sandbox/tsconfig.node.json +0 -8
  1345. package/apps/material-react-table-docs/examples/localization-i18n-np/sandbox/vite.config.js +0 -7
  1346. package/apps/material-react-table-docs/examples/localization-i18n-pl/index.tsx +0 -15
  1347. package/apps/material-react-table-docs/examples/localization-i18n-pl/sandbox/README.md +0 -6
  1348. package/apps/material-react-table-docs/examples/localization-i18n-pl/sandbox/index.html +0 -13
  1349. package/apps/material-react-table-docs/examples/localization-i18n-pl/sandbox/package-lock.json +0 -2594
  1350. package/apps/material-react-table-docs/examples/localization-i18n-pl/sandbox/package.json +0 -30
  1351. package/apps/material-react-table-docs/examples/localization-i18n-pl/sandbox/src/TS.tsx +0 -60
  1352. package/apps/material-react-table-docs/examples/localization-i18n-pl/sandbox/src/main.tsx +0 -9
  1353. package/apps/material-react-table-docs/examples/localization-i18n-pl/sandbox/src/makeData.ts +0 -23
  1354. package/apps/material-react-table-docs/examples/localization-i18n-pl/sandbox/src/vite.env.d.ts +0 -1
  1355. package/apps/material-react-table-docs/examples/localization-i18n-pl/sandbox/tsconfig.json +0 -31
  1356. package/apps/material-react-table-docs/examples/localization-i18n-pl/sandbox/tsconfig.node.json +0 -8
  1357. package/apps/material-react-table-docs/examples/localization-i18n-pl/sandbox/vite.config.js +0 -7
  1358. package/apps/material-react-table-docs/examples/localization-i18n-pt/index.tsx +0 -15
  1359. package/apps/material-react-table-docs/examples/localization-i18n-pt/sandbox/README.md +0 -6
  1360. package/apps/material-react-table-docs/examples/localization-i18n-pt/sandbox/index.html +0 -13
  1361. package/apps/material-react-table-docs/examples/localization-i18n-pt/sandbox/package-lock.json +0 -2594
  1362. package/apps/material-react-table-docs/examples/localization-i18n-pt/sandbox/package.json +0 -30
  1363. package/apps/material-react-table-docs/examples/localization-i18n-pt/sandbox/src/TS.tsx +0 -60
  1364. package/apps/material-react-table-docs/examples/localization-i18n-pt/sandbox/src/main.tsx +0 -9
  1365. package/apps/material-react-table-docs/examples/localization-i18n-pt/sandbox/src/makeData.ts +0 -23
  1366. package/apps/material-react-table-docs/examples/localization-i18n-pt/sandbox/src/vite.env.d.ts +0 -1
  1367. package/apps/material-react-table-docs/examples/localization-i18n-pt/sandbox/tsconfig.json +0 -31
  1368. package/apps/material-react-table-docs/examples/localization-i18n-pt/sandbox/tsconfig.node.json +0 -8
  1369. package/apps/material-react-table-docs/examples/localization-i18n-pt/sandbox/vite.config.js +0 -7
  1370. package/apps/material-react-table-docs/examples/localization-i18n-pt-BR/index.tsx +0 -15
  1371. package/apps/material-react-table-docs/examples/localization-i18n-pt-BR/sandbox/README.md +0 -6
  1372. package/apps/material-react-table-docs/examples/localization-i18n-pt-BR/sandbox/index.html +0 -13
  1373. package/apps/material-react-table-docs/examples/localization-i18n-pt-BR/sandbox/package-lock.json +0 -2594
  1374. package/apps/material-react-table-docs/examples/localization-i18n-pt-BR/sandbox/package.json +0 -30
  1375. package/apps/material-react-table-docs/examples/localization-i18n-pt-BR/sandbox/src/TS.tsx +0 -60
  1376. package/apps/material-react-table-docs/examples/localization-i18n-pt-BR/sandbox/src/main.tsx +0 -9
  1377. package/apps/material-react-table-docs/examples/localization-i18n-pt-BR/sandbox/src/makeData.ts +0 -23
  1378. package/apps/material-react-table-docs/examples/localization-i18n-pt-BR/sandbox/src/vite.env.d.ts +0 -1
  1379. package/apps/material-react-table-docs/examples/localization-i18n-pt-BR/sandbox/tsconfig.json +0 -31
  1380. package/apps/material-react-table-docs/examples/localization-i18n-pt-BR/sandbox/tsconfig.node.json +0 -8
  1381. package/apps/material-react-table-docs/examples/localization-i18n-pt-BR/sandbox/vite.config.js +0 -7
  1382. package/apps/material-react-table-docs/examples/localization-i18n-ro/index.tsx +0 -15
  1383. package/apps/material-react-table-docs/examples/localization-i18n-ro/sandbox/README.md +0 -6
  1384. package/apps/material-react-table-docs/examples/localization-i18n-ro/sandbox/index.html +0 -13
  1385. package/apps/material-react-table-docs/examples/localization-i18n-ro/sandbox/package-lock.json +0 -2594
  1386. package/apps/material-react-table-docs/examples/localization-i18n-ro/sandbox/package.json +0 -30
  1387. package/apps/material-react-table-docs/examples/localization-i18n-ro/sandbox/src/TS.tsx +0 -60
  1388. package/apps/material-react-table-docs/examples/localization-i18n-ro/sandbox/src/main.tsx +0 -9
  1389. package/apps/material-react-table-docs/examples/localization-i18n-ro/sandbox/src/makeData.ts +0 -23
  1390. package/apps/material-react-table-docs/examples/localization-i18n-ro/sandbox/src/vite.env.d.ts +0 -1
  1391. package/apps/material-react-table-docs/examples/localization-i18n-ro/sandbox/tsconfig.json +0 -31
  1392. package/apps/material-react-table-docs/examples/localization-i18n-ro/sandbox/tsconfig.node.json +0 -8
  1393. package/apps/material-react-table-docs/examples/localization-i18n-ro/sandbox/vite.config.js +0 -7
  1394. package/apps/material-react-table-docs/examples/localization-i18n-ru/index.tsx +0 -15
  1395. package/apps/material-react-table-docs/examples/localization-i18n-ru/sandbox/README.md +0 -6
  1396. package/apps/material-react-table-docs/examples/localization-i18n-ru/sandbox/index.html +0 -13
  1397. package/apps/material-react-table-docs/examples/localization-i18n-ru/sandbox/package-lock.json +0 -2594
  1398. package/apps/material-react-table-docs/examples/localization-i18n-ru/sandbox/package.json +0 -30
  1399. package/apps/material-react-table-docs/examples/localization-i18n-ru/sandbox/src/TS.tsx +0 -60
  1400. package/apps/material-react-table-docs/examples/localization-i18n-ru/sandbox/src/main.tsx +0 -9
  1401. package/apps/material-react-table-docs/examples/localization-i18n-ru/sandbox/src/makeData.ts +0 -23
  1402. package/apps/material-react-table-docs/examples/localization-i18n-ru/sandbox/src/vite.env.d.ts +0 -1
  1403. package/apps/material-react-table-docs/examples/localization-i18n-ru/sandbox/tsconfig.json +0 -31
  1404. package/apps/material-react-table-docs/examples/localization-i18n-ru/sandbox/tsconfig.node.json +0 -8
  1405. package/apps/material-react-table-docs/examples/localization-i18n-ru/sandbox/vite.config.js +0 -7
  1406. package/apps/material-react-table-docs/examples/localization-i18n-sk/index.tsx +0 -15
  1407. package/apps/material-react-table-docs/examples/localization-i18n-sk/sandbox/README.md +0 -6
  1408. package/apps/material-react-table-docs/examples/localization-i18n-sk/sandbox/index.html +0 -13
  1409. package/apps/material-react-table-docs/examples/localization-i18n-sk/sandbox/package-lock.json +0 -2594
  1410. package/apps/material-react-table-docs/examples/localization-i18n-sk/sandbox/package.json +0 -30
  1411. package/apps/material-react-table-docs/examples/localization-i18n-sk/sandbox/src/TS.tsx +0 -60
  1412. package/apps/material-react-table-docs/examples/localization-i18n-sk/sandbox/src/main.tsx +0 -9
  1413. package/apps/material-react-table-docs/examples/localization-i18n-sk/sandbox/src/makeData.ts +0 -23
  1414. package/apps/material-react-table-docs/examples/localization-i18n-sk/sandbox/src/vite.env.d.ts +0 -1
  1415. package/apps/material-react-table-docs/examples/localization-i18n-sk/sandbox/tsconfig.json +0 -31
  1416. package/apps/material-react-table-docs/examples/localization-i18n-sk/sandbox/tsconfig.node.json +0 -8
  1417. package/apps/material-react-table-docs/examples/localization-i18n-sk/sandbox/vite.config.js +0 -7
  1418. package/apps/material-react-table-docs/examples/localization-i18n-sr-Cyrl-RS/index.tsx +0 -15
  1419. package/apps/material-react-table-docs/examples/localization-i18n-sr-Cyrl-RS/sandbox/README.md +0 -6
  1420. package/apps/material-react-table-docs/examples/localization-i18n-sr-Cyrl-RS/sandbox/index.html +0 -13
  1421. package/apps/material-react-table-docs/examples/localization-i18n-sr-Cyrl-RS/sandbox/package-lock.json +0 -2594
  1422. package/apps/material-react-table-docs/examples/localization-i18n-sr-Cyrl-RS/sandbox/package.json +0 -30
  1423. package/apps/material-react-table-docs/examples/localization-i18n-sr-Cyrl-RS/sandbox/src/TS.tsx +0 -60
  1424. package/apps/material-react-table-docs/examples/localization-i18n-sr-Cyrl-RS/sandbox/src/main.tsx +0 -9
  1425. package/apps/material-react-table-docs/examples/localization-i18n-sr-Cyrl-RS/sandbox/src/makeData.ts +0 -23
  1426. package/apps/material-react-table-docs/examples/localization-i18n-sr-Cyrl-RS/sandbox/src/vite.env.d.ts +0 -1
  1427. package/apps/material-react-table-docs/examples/localization-i18n-sr-Cyrl-RS/sandbox/tsconfig.json +0 -31
  1428. package/apps/material-react-table-docs/examples/localization-i18n-sr-Cyrl-RS/sandbox/tsconfig.node.json +0 -8
  1429. package/apps/material-react-table-docs/examples/localization-i18n-sr-Cyrl-RS/sandbox/vite.config.js +0 -7
  1430. package/apps/material-react-table-docs/examples/localization-i18n-sr-Latn-RS/index.tsx +0 -15
  1431. package/apps/material-react-table-docs/examples/localization-i18n-sr-Latn-RS/sandbox/README.md +0 -6
  1432. package/apps/material-react-table-docs/examples/localization-i18n-sr-Latn-RS/sandbox/index.html +0 -13
  1433. package/apps/material-react-table-docs/examples/localization-i18n-sr-Latn-RS/sandbox/package-lock.json +0 -2594
  1434. package/apps/material-react-table-docs/examples/localization-i18n-sr-Latn-RS/sandbox/package.json +0 -30
  1435. package/apps/material-react-table-docs/examples/localization-i18n-sr-Latn-RS/sandbox/src/TS.tsx +0 -60
  1436. package/apps/material-react-table-docs/examples/localization-i18n-sr-Latn-RS/sandbox/src/main.tsx +0 -9
  1437. package/apps/material-react-table-docs/examples/localization-i18n-sr-Latn-RS/sandbox/src/makeData.ts +0 -23
  1438. package/apps/material-react-table-docs/examples/localization-i18n-sr-Latn-RS/sandbox/src/vite.env.d.ts +0 -1
  1439. package/apps/material-react-table-docs/examples/localization-i18n-sr-Latn-RS/sandbox/tsconfig.json +0 -31
  1440. package/apps/material-react-table-docs/examples/localization-i18n-sr-Latn-RS/sandbox/tsconfig.node.json +0 -8
  1441. package/apps/material-react-table-docs/examples/localization-i18n-sr-Latn-RS/sandbox/vite.config.js +0 -7
  1442. package/apps/material-react-table-docs/examples/localization-i18n-sv/index.tsx +0 -15
  1443. package/apps/material-react-table-docs/examples/localization-i18n-sv/sandbox/README.md +0 -6
  1444. package/apps/material-react-table-docs/examples/localization-i18n-sv/sandbox/index.html +0 -13
  1445. package/apps/material-react-table-docs/examples/localization-i18n-sv/sandbox/package-lock.json +0 -2594
  1446. package/apps/material-react-table-docs/examples/localization-i18n-sv/sandbox/package.json +0 -30
  1447. package/apps/material-react-table-docs/examples/localization-i18n-sv/sandbox/src/TS.tsx +0 -60
  1448. package/apps/material-react-table-docs/examples/localization-i18n-sv/sandbox/src/main.tsx +0 -9
  1449. package/apps/material-react-table-docs/examples/localization-i18n-sv/sandbox/src/makeData.ts +0 -23
  1450. package/apps/material-react-table-docs/examples/localization-i18n-sv/sandbox/src/vite.env.d.ts +0 -1
  1451. package/apps/material-react-table-docs/examples/localization-i18n-sv/sandbox/tsconfig.json +0 -31
  1452. package/apps/material-react-table-docs/examples/localization-i18n-sv/sandbox/tsconfig.node.json +0 -8
  1453. package/apps/material-react-table-docs/examples/localization-i18n-sv/sandbox/vite.config.js +0 -7
  1454. package/apps/material-react-table-docs/examples/localization-i18n-tr/index.tsx +0 -15
  1455. package/apps/material-react-table-docs/examples/localization-i18n-tr/sandbox/README.md +0 -6
  1456. package/apps/material-react-table-docs/examples/localization-i18n-tr/sandbox/index.html +0 -13
  1457. package/apps/material-react-table-docs/examples/localization-i18n-tr/sandbox/package-lock.json +0 -2594
  1458. package/apps/material-react-table-docs/examples/localization-i18n-tr/sandbox/package.json +0 -30
  1459. package/apps/material-react-table-docs/examples/localization-i18n-tr/sandbox/src/TS.tsx +0 -60
  1460. package/apps/material-react-table-docs/examples/localization-i18n-tr/sandbox/src/main.tsx +0 -9
  1461. package/apps/material-react-table-docs/examples/localization-i18n-tr/sandbox/src/makeData.ts +0 -23
  1462. package/apps/material-react-table-docs/examples/localization-i18n-tr/sandbox/src/vite.env.d.ts +0 -1
  1463. package/apps/material-react-table-docs/examples/localization-i18n-tr/sandbox/tsconfig.json +0 -31
  1464. package/apps/material-react-table-docs/examples/localization-i18n-tr/sandbox/tsconfig.node.json +0 -8
  1465. package/apps/material-react-table-docs/examples/localization-i18n-tr/sandbox/vite.config.js +0 -7
  1466. package/apps/material-react-table-docs/examples/localization-i18n-uk/index.tsx +0 -15
  1467. package/apps/material-react-table-docs/examples/localization-i18n-uk/sandbox/README.md +0 -6
  1468. package/apps/material-react-table-docs/examples/localization-i18n-uk/sandbox/index.html +0 -13
  1469. package/apps/material-react-table-docs/examples/localization-i18n-uk/sandbox/package-lock.json +0 -2594
  1470. package/apps/material-react-table-docs/examples/localization-i18n-uk/sandbox/package.json +0 -30
  1471. package/apps/material-react-table-docs/examples/localization-i18n-uk/sandbox/src/TS.tsx +0 -60
  1472. package/apps/material-react-table-docs/examples/localization-i18n-uk/sandbox/src/main.tsx +0 -9
  1473. package/apps/material-react-table-docs/examples/localization-i18n-uk/sandbox/src/makeData.ts +0 -23
  1474. package/apps/material-react-table-docs/examples/localization-i18n-uk/sandbox/src/vite.env.d.ts +0 -1
  1475. package/apps/material-react-table-docs/examples/localization-i18n-uk/sandbox/tsconfig.json +0 -31
  1476. package/apps/material-react-table-docs/examples/localization-i18n-uk/sandbox/tsconfig.node.json +0 -8
  1477. package/apps/material-react-table-docs/examples/localization-i18n-uk/sandbox/vite.config.js +0 -7
  1478. package/apps/material-react-table-docs/examples/localization-i18n-vi/index.tsx +0 -15
  1479. package/apps/material-react-table-docs/examples/localization-i18n-vi/sandbox/README.md +0 -6
  1480. package/apps/material-react-table-docs/examples/localization-i18n-vi/sandbox/index.html +0 -13
  1481. package/apps/material-react-table-docs/examples/localization-i18n-vi/sandbox/package-lock.json +0 -2594
  1482. package/apps/material-react-table-docs/examples/localization-i18n-vi/sandbox/package.json +0 -30
  1483. package/apps/material-react-table-docs/examples/localization-i18n-vi/sandbox/src/TS.tsx +0 -60
  1484. package/apps/material-react-table-docs/examples/localization-i18n-vi/sandbox/src/main.tsx +0 -9
  1485. package/apps/material-react-table-docs/examples/localization-i18n-vi/sandbox/src/makeData.ts +0 -23
  1486. package/apps/material-react-table-docs/examples/localization-i18n-vi/sandbox/src/vite.env.d.ts +0 -1
  1487. package/apps/material-react-table-docs/examples/localization-i18n-vi/sandbox/tsconfig.json +0 -31
  1488. package/apps/material-react-table-docs/examples/localization-i18n-vi/sandbox/tsconfig.node.json +0 -8
  1489. package/apps/material-react-table-docs/examples/localization-i18n-vi/sandbox/vite.config.js +0 -7
  1490. package/apps/material-react-table-docs/examples/localization-i18n-zh-hans/index.tsx +0 -15
  1491. package/apps/material-react-table-docs/examples/localization-i18n-zh-hans/sandbox/README.md +0 -6
  1492. package/apps/material-react-table-docs/examples/localization-i18n-zh-hans/sandbox/index.html +0 -13
  1493. package/apps/material-react-table-docs/examples/localization-i18n-zh-hans/sandbox/package-lock.json +0 -2594
  1494. package/apps/material-react-table-docs/examples/localization-i18n-zh-hans/sandbox/package.json +0 -30
  1495. package/apps/material-react-table-docs/examples/localization-i18n-zh-hans/sandbox/src/TS.tsx +0 -60
  1496. package/apps/material-react-table-docs/examples/localization-i18n-zh-hans/sandbox/src/main.tsx +0 -9
  1497. package/apps/material-react-table-docs/examples/localization-i18n-zh-hans/sandbox/src/makeData.ts +0 -23
  1498. package/apps/material-react-table-docs/examples/localization-i18n-zh-hans/sandbox/src/vite.env.d.ts +0 -1
  1499. package/apps/material-react-table-docs/examples/localization-i18n-zh-hans/sandbox/tsconfig.json +0 -31
  1500. package/apps/material-react-table-docs/examples/localization-i18n-zh-hans/sandbox/tsconfig.node.json +0 -8
  1501. package/apps/material-react-table-docs/examples/localization-i18n-zh-hans/sandbox/vite.config.js +0 -7
  1502. package/apps/material-react-table-docs/examples/localization-i18n-zh-hant/index.tsx +0 -15
  1503. package/apps/material-react-table-docs/examples/localization-i18n-zh-hant/sandbox/README.md +0 -6
  1504. package/apps/material-react-table-docs/examples/localization-i18n-zh-hant/sandbox/index.html +0 -13
  1505. package/apps/material-react-table-docs/examples/localization-i18n-zh-hant/sandbox/package-lock.json +0 -2594
  1506. package/apps/material-react-table-docs/examples/localization-i18n-zh-hant/sandbox/package.json +0 -30
  1507. package/apps/material-react-table-docs/examples/localization-i18n-zh-hant/sandbox/src/TS.tsx +0 -60
  1508. package/apps/material-react-table-docs/examples/localization-i18n-zh-hant/sandbox/src/main.tsx +0 -9
  1509. package/apps/material-react-table-docs/examples/localization-i18n-zh-hant/sandbox/src/makeData.ts +0 -23
  1510. package/apps/material-react-table-docs/examples/localization-i18n-zh-hant/sandbox/src/vite.env.d.ts +0 -1
  1511. package/apps/material-react-table-docs/examples/localization-i18n-zh-hant/sandbox/tsconfig.json +0 -31
  1512. package/apps/material-react-table-docs/examples/localization-i18n-zh-hant/sandbox/tsconfig.node.json +0 -8
  1513. package/apps/material-react-table-docs/examples/localization-i18n-zh-hant/sandbox/vite.config.js +0 -7
  1514. package/apps/material-react-table-docs/examples/manual-selection/index.tsx +0 -15
  1515. package/apps/material-react-table-docs/examples/manual-selection/sandbox/README.md +0 -6
  1516. package/apps/material-react-table-docs/examples/manual-selection/sandbox/index.html +0 -13
  1517. package/apps/material-react-table-docs/examples/manual-selection/sandbox/package-lock.json +0 -2594
  1518. package/apps/material-react-table-docs/examples/manual-selection/sandbox/package.json +0 -30
  1519. package/apps/material-react-table-docs/examples/manual-selection/sandbox/src/TS.tsx +0 -102
  1520. package/apps/material-react-table-docs/examples/manual-selection/sandbox/src/main.tsx +0 -9
  1521. package/apps/material-react-table-docs/examples/manual-selection/sandbox/src/vite.env.d.ts +0 -1
  1522. package/apps/material-react-table-docs/examples/manual-selection/sandbox/tsconfig.json +0 -31
  1523. package/apps/material-react-table-docs/examples/manual-selection/sandbox/tsconfig.node.json +0 -8
  1524. package/apps/material-react-table-docs/examples/manual-selection/sandbox/vite.config.js +0 -7
  1525. package/apps/material-react-table-docs/examples/minimal/index.tsx +0 -16
  1526. package/apps/material-react-table-docs/examples/minimal/sandbox/README.md +0 -6
  1527. package/apps/material-react-table-docs/examples/minimal/sandbox/index.html +0 -13
  1528. package/apps/material-react-table-docs/examples/minimal/sandbox/package-lock.json +0 -2594
  1529. package/apps/material-react-table-docs/examples/minimal/sandbox/package.json +0 -30
  1530. package/apps/material-react-table-docs/examples/minimal/sandbox/src/TS.tsx +0 -78
  1531. package/apps/material-react-table-docs/examples/minimal/sandbox/src/main.tsx +0 -9
  1532. package/apps/material-react-table-docs/examples/minimal/sandbox/src/makeData.ts +0 -45
  1533. package/apps/material-react-table-docs/examples/minimal/sandbox/src/vite.env.d.ts +0 -1
  1534. package/apps/material-react-table-docs/examples/minimal/sandbox/tsconfig.json +0 -31
  1535. package/apps/material-react-table-docs/examples/minimal/sandbox/tsconfig.node.json +0 -8
  1536. package/apps/material-react-table-docs/examples/minimal/sandbox/vite.config.js +0 -7
  1537. package/apps/material-react-table-docs/examples/mui-theme/index.tsx +0 -15
  1538. package/apps/material-react-table-docs/examples/mui-theme/sandbox/README.md +0 -6
  1539. package/apps/material-react-table-docs/examples/mui-theme/sandbox/index.html +0 -13
  1540. package/apps/material-react-table-docs/examples/mui-theme/sandbox/package-lock.json +0 -2594
  1541. package/apps/material-react-table-docs/examples/mui-theme/sandbox/package.json +0 -30
  1542. package/apps/material-react-table-docs/examples/mui-theme/sandbox/src/TS.tsx +0 -136
  1543. package/apps/material-react-table-docs/examples/mui-theme/sandbox/src/main.tsx +0 -9
  1544. package/apps/material-react-table-docs/examples/mui-theme/sandbox/src/vite.env.d.ts +0 -1
  1545. package/apps/material-react-table-docs/examples/mui-theme/sandbox/tsconfig.json +0 -31
  1546. package/apps/material-react-table-docs/examples/mui-theme/sandbox/tsconfig.node.json +0 -8
  1547. package/apps/material-react-table-docs/examples/mui-theme/sandbox/vite.config.js +0 -7
  1548. package/apps/material-react-table-docs/examples/multi-sorting/index.tsx +0 -15
  1549. package/apps/material-react-table-docs/examples/multi-sorting/sandbox/README.md +0 -6
  1550. package/apps/material-react-table-docs/examples/multi-sorting/sandbox/index.html +0 -13
  1551. package/apps/material-react-table-docs/examples/multi-sorting/sandbox/package-lock.json +0 -2594
  1552. package/apps/material-react-table-docs/examples/multi-sorting/sandbox/package.json +0 -30
  1553. package/apps/material-react-table-docs/examples/multi-sorting/sandbox/src/TS.tsx +0 -58
  1554. package/apps/material-react-table-docs/examples/multi-sorting/sandbox/src/main.tsx +0 -9
  1555. package/apps/material-react-table-docs/examples/multi-sorting/sandbox/src/makeData.ts +0 -74
  1556. package/apps/material-react-table-docs/examples/multi-sorting/sandbox/src/vite.env.d.ts +0 -1
  1557. package/apps/material-react-table-docs/examples/multi-sorting/sandbox/tsconfig.json +0 -31
  1558. package/apps/material-react-table-docs/examples/multi-sorting/sandbox/tsconfig.node.json +0 -8
  1559. package/apps/material-react-table-docs/examples/multi-sorting/sandbox/vite.config.js +0 -7
  1560. package/apps/material-react-table-docs/examples/persistent-state/index.tsx +0 -15
  1561. package/apps/material-react-table-docs/examples/persistent-state/sandbox/README.md +0 -6
  1562. package/apps/material-react-table-docs/examples/persistent-state/sandbox/index.html +0 -13
  1563. package/apps/material-react-table-docs/examples/persistent-state/sandbox/package-lock.json +0 -2594
  1564. package/apps/material-react-table-docs/examples/persistent-state/sandbox/package.json +0 -30
  1565. package/apps/material-react-table-docs/examples/persistent-state/sandbox/src/TS.tsx +0 -184
  1566. package/apps/material-react-table-docs/examples/persistent-state/sandbox/src/main.tsx +0 -7
  1567. package/apps/material-react-table-docs/examples/persistent-state/sandbox/src/makeData.ts +0 -74
  1568. package/apps/material-react-table-docs/examples/persistent-state/sandbox/src/vite.env.d.ts +0 -1
  1569. package/apps/material-react-table-docs/examples/persistent-state/sandbox/tsconfig.json +0 -31
  1570. package/apps/material-react-table-docs/examples/persistent-state/sandbox/tsconfig.node.json +0 -8
  1571. package/apps/material-react-table-docs/examples/persistent-state/sandbox/vite.config.js +0 -7
  1572. package/apps/material-react-table-docs/examples/react-query/index.tsx +0 -15
  1573. package/apps/material-react-table-docs/examples/react-query/sandbox/README.md +0 -6
  1574. package/apps/material-react-table-docs/examples/react-query/sandbox/index.html +0 -13
  1575. package/apps/material-react-table-docs/examples/react-query/sandbox/package-lock.json +0 -2647
  1576. package/apps/material-react-table-docs/examples/react-query/sandbox/package.json +0 -29
  1577. package/apps/material-react-table-docs/examples/react-query/sandbox/src/TS.tsx +0 -170
  1578. package/apps/material-react-table-docs/examples/react-query/sandbox/src/main.tsx +0 -9
  1579. package/apps/material-react-table-docs/examples/react-query/sandbox/src/vite.env.d.ts +0 -1
  1580. package/apps/material-react-table-docs/examples/react-query/sandbox/tsconfig.json +0 -31
  1581. package/apps/material-react-table-docs/examples/react-query/sandbox/tsconfig.node.json +0 -8
  1582. package/apps/material-react-table-docs/examples/react-query/sandbox/vite.config.js +0 -7
  1583. package/apps/material-react-table-docs/examples/remote/index.tsx +0 -15
  1584. package/apps/material-react-table-docs/examples/remote/sandbox/README.md +0 -6
  1585. package/apps/material-react-table-docs/examples/remote/sandbox/index.html +0 -13
  1586. package/apps/material-react-table-docs/examples/remote/sandbox/package-lock.json +0 -2594
  1587. package/apps/material-react-table-docs/examples/remote/sandbox/package.json +0 -30
  1588. package/apps/material-react-table-docs/examples/remote/sandbox/src/TS.tsx +0 -150
  1589. package/apps/material-react-table-docs/examples/remote/sandbox/src/main.tsx +0 -9
  1590. package/apps/material-react-table-docs/examples/remote/sandbox/src/vite.env.d.ts +0 -1
  1591. package/apps/material-react-table-docs/examples/remote/sandbox/tsconfig.json +0 -31
  1592. package/apps/material-react-table-docs/examples/remote/sandbox/tsconfig.node.json +0 -8
  1593. package/apps/material-react-table-docs/examples/remote/sandbox/vite.config.js +0 -7
  1594. package/apps/material-react-table-docs/examples/row-actions-buttons/index.tsx +0 -15
  1595. package/apps/material-react-table-docs/examples/row-actions-buttons/sandbox/README.md +0 -6
  1596. package/apps/material-react-table-docs/examples/row-actions-buttons/sandbox/index.html +0 -13
  1597. package/apps/material-react-table-docs/examples/row-actions-buttons/sandbox/package-lock.json +0 -2594
  1598. package/apps/material-react-table-docs/examples/row-actions-buttons/sandbox/package.json +0 -30
  1599. package/apps/material-react-table-docs/examples/row-actions-buttons/sandbox/src/TS.tsx +0 -89
  1600. package/apps/material-react-table-docs/examples/row-actions-buttons/sandbox/src/main.tsx +0 -9
  1601. package/apps/material-react-table-docs/examples/row-actions-buttons/sandbox/src/makeData.ts +0 -45
  1602. package/apps/material-react-table-docs/examples/row-actions-buttons/sandbox/src/vite.env.d.ts +0 -1
  1603. package/apps/material-react-table-docs/examples/row-actions-buttons/sandbox/tsconfig.json +0 -31
  1604. package/apps/material-react-table-docs/examples/row-actions-buttons/sandbox/tsconfig.node.json +0 -8
  1605. package/apps/material-react-table-docs/examples/row-actions-buttons/sandbox/vite.config.js +0 -7
  1606. package/apps/material-react-table-docs/examples/row-actions-menu-items/index.tsx +0 -15
  1607. package/apps/material-react-table-docs/examples/row-actions-menu-items/sandbox/README.md +0 -6
  1608. package/apps/material-react-table-docs/examples/row-actions-menu-items/sandbox/index.html +0 -13
  1609. package/apps/material-react-table-docs/examples/row-actions-menu-items/sandbox/package-lock.json +0 -2594
  1610. package/apps/material-react-table-docs/examples/row-actions-menu-items/sandbox/package.json +0 -30
  1611. package/apps/material-react-table-docs/examples/row-actions-menu-items/sandbox/src/TS.tsx +0 -64
  1612. package/apps/material-react-table-docs/examples/row-actions-menu-items/sandbox/src/main.tsx +0 -9
  1613. package/apps/material-react-table-docs/examples/row-actions-menu-items/sandbox/src/makeData.ts +0 -45
  1614. package/apps/material-react-table-docs/examples/row-actions-menu-items/sandbox/src/vite.env.d.ts +0 -1
  1615. package/apps/material-react-table-docs/examples/row-actions-menu-items/sandbox/tsconfig.json +0 -31
  1616. package/apps/material-react-table-docs/examples/row-actions-menu-items/sandbox/tsconfig.node.json +0 -8
  1617. package/apps/material-react-table-docs/examples/row-actions-menu-items/sandbox/vite.config.js +0 -7
  1618. package/apps/material-react-table-docs/examples/single-row-selection/index.tsx +0 -15
  1619. package/apps/material-react-table-docs/examples/single-row-selection/sandbox/README.md +0 -6
  1620. package/apps/material-react-table-docs/examples/single-row-selection/sandbox/index.html +0 -13
  1621. package/apps/material-react-table-docs/examples/single-row-selection/sandbox/package-lock.json +0 -2594
  1622. package/apps/material-react-table-docs/examples/single-row-selection/sandbox/package.json +0 -30
  1623. package/apps/material-react-table-docs/examples/single-row-selection/sandbox/src/TS.tsx +0 -98
  1624. package/apps/material-react-table-docs/examples/single-row-selection/sandbox/src/main.tsx +0 -9
  1625. package/apps/material-react-table-docs/examples/single-row-selection/sandbox/src/vite.env.d.ts +0 -1
  1626. package/apps/material-react-table-docs/examples/single-row-selection/sandbox/tsconfig.json +0 -31
  1627. package/apps/material-react-table-docs/examples/single-row-selection/sandbox/tsconfig.node.json +0 -8
  1628. package/apps/material-react-table-docs/examples/single-row-selection/sandbox/vite.config.js +0 -7
  1629. package/apps/material-react-table-docs/examples/virtualized/index.tsx +0 -15
  1630. package/apps/material-react-table-docs/examples/virtualized/sandbox/README.md +0 -6
  1631. package/apps/material-react-table-docs/examples/virtualized/sandbox/index.html +0 -13
  1632. package/apps/material-react-table-docs/examples/virtualized/sandbox/package-lock.json +0 -2611
  1633. package/apps/material-react-table-docs/examples/virtualized/sandbox/package.json +0 -31
  1634. package/apps/material-react-table-docs/examples/virtualized/sandbox/src/TS.tsx +0 -138
  1635. package/apps/material-react-table-docs/examples/virtualized/sandbox/src/main.tsx +0 -9
  1636. package/apps/material-react-table-docs/examples/virtualized/sandbox/src/makeData.ts +0 -45
  1637. package/apps/material-react-table-docs/examples/virtualized/sandbox/src/vite.env.d.ts +0 -1
  1638. package/apps/material-react-table-docs/examples/virtualized/sandbox/tsconfig.json +0 -31
  1639. package/apps/material-react-table-docs/examples/virtualized/sandbox/tsconfig.node.json +0 -8
  1640. package/apps/material-react-table-docs/examples/virtualized/sandbox/vite.config.js +0 -7
  1641. package/apps/material-react-table-docs/next-env.d.ts +0 -5
  1642. package/apps/material-react-table-docs/next-sitemap.config.cjs +0 -18
  1643. package/apps/material-react-table-docs/next.config.js +0 -115
  1644. package/apps/material-react-table-docs/package.json +0 -59
  1645. package/apps/material-react-table-docs/pages/_app.tsx +0 -62
  1646. package/apps/material-react-table-docs/pages/about.mdx +0 -169
  1647. package/apps/material-react-table-docs/pages/api/data.ts +0 -1485
  1648. package/apps/material-react-table-docs/pages/api/moredata/[phoneNumber].ts +0 -2390
  1649. package/apps/material-react-table-docs/pages/api/treedata.ts +0 -178
  1650. package/apps/material-react-table-docs/pages/blog/index.mdx +0 -14
  1651. package/apps/material-react-table-docs/pages/blog/the-best-react-data-grid-table-libraries-with-material-design-in-2023.mdx +0 -152
  1652. package/apps/material-react-table-docs/pages/changelog.mdx +0 -66
  1653. package/apps/material-react-table-docs/pages/docs/api/cell-instance-apis.mdx +0 -83
  1654. package/apps/material-react-table-docs/pages/docs/api/column-instance-apis.mdx +0 -90
  1655. package/apps/material-react-table-docs/pages/docs/api/column-options.mdx +0 -64
  1656. package/apps/material-react-table-docs/pages/docs/api/index.mdx +0 -14
  1657. package/apps/material-react-table-docs/pages/docs/api/mrt-components.mdx +0 -214
  1658. package/apps/material-react-table-docs/pages/docs/api/mrt-hooks.mdx +0 -153
  1659. package/apps/material-react-table-docs/pages/docs/api/row-instance-apis.mdx +0 -89
  1660. package/apps/material-react-table-docs/pages/docs/api/state-options.mdx +0 -61
  1661. package/apps/material-react-table-docs/pages/docs/api/table-instance-apis.mdx +0 -73
  1662. package/apps/material-react-table-docs/pages/docs/api/table-options.mdx +0 -62
  1663. package/apps/material-react-table-docs/pages/docs/examples/advanced.mdx +0 -25
  1664. package/apps/material-react-table-docs/pages/docs/examples/aggregation-and-grouping.mdx +0 -34
  1665. package/apps/material-react-table-docs/pages/docs/examples/basic.mdx +0 -23
  1666. package/apps/material-react-table-docs/pages/docs/examples/chart-detail-panel.mdx +0 -28
  1667. package/apps/material-react-table-docs/pages/docs/examples/column-grouping.mdx +0 -23
  1668. package/apps/material-react-table-docs/pages/docs/examples/column-ordering.mdx +0 -26
  1669. package/apps/material-react-table-docs/pages/docs/examples/column-pinning.mdx +0 -26
  1670. package/apps/material-react-table-docs/pages/docs/examples/column-virtualization.mdx +0 -34
  1671. package/apps/material-react-table-docs/pages/docs/examples/custom-filter-ui.mdx +0 -26
  1672. package/apps/material-react-table-docs/pages/docs/examples/custom-headless.mdx +0 -28
  1673. package/apps/material-react-table-docs/pages/docs/examples/customized-grouping.mdx +0 -23
  1674. package/apps/material-react-table-docs/pages/docs/examples/detail-panel.mdx +0 -26
  1675. package/apps/material-react-table-docs/pages/docs/examples/dynamic-columns.mdx +0 -26
  1676. package/apps/material-react-table-docs/pages/docs/examples/editing-crud-inline-cell.mdx +0 -30
  1677. package/apps/material-react-table-docs/pages/docs/examples/editing-crud-inline-row.mdx +0 -32
  1678. package/apps/material-react-table-docs/pages/docs/examples/editing-crud-inline-table.mdx +0 -30
  1679. package/apps/material-react-table-docs/pages/docs/examples/editing-crud-tree.mdx +0 -30
  1680. package/apps/material-react-table-docs/pages/docs/examples/editing-crud.mdx +0 -30
  1681. package/apps/material-react-table-docs/pages/docs/examples/expanding-tree-flat-parse.mdx +0 -28
  1682. package/apps/material-react-table-docs/pages/docs/examples/expanding-tree.mdx +0 -28
  1683. package/apps/material-react-table-docs/pages/docs/examples/export-csv.mdx +0 -28
  1684. package/apps/material-react-table-docs/pages/docs/examples/export-pdf.mdx +0 -28
  1685. package/apps/material-react-table-docs/pages/docs/examples/faceted-values.mdx +0 -26
  1686. package/apps/material-react-table-docs/pages/docs/examples/filter-switching.mdx +0 -26
  1687. package/apps/material-react-table-docs/pages/docs/examples/filter-variants.mdx +0 -26
  1688. package/apps/material-react-table-docs/pages/docs/examples/index.mdx +0 -14
  1689. package/apps/material-react-table-docs/pages/docs/examples/infinite-scrolling.mdx +0 -30
  1690. package/apps/material-react-table-docs/pages/docs/examples/lazy-detail-panel.mdx +0 -28
  1691. package/apps/material-react-table-docs/pages/docs/examples/lazy-sub-rows.mdx +0 -30
  1692. package/apps/material-react-table-docs/pages/docs/examples/minimal.mdx +0 -30
  1693. package/apps/material-react-table-docs/pages/docs/examples/popover-filters.mdx +0 -26
  1694. package/apps/material-react-table-docs/pages/docs/examples/react-query.mdx +0 -30
  1695. package/apps/material-react-table-docs/pages/docs/examples/remote.mdx +0 -28
  1696. package/apps/material-react-table-docs/pages/docs/examples/row-dragging.mdx +0 -26
  1697. package/apps/material-react-table-docs/pages/docs/examples/row-ordering.mdx +0 -26
  1698. package/apps/material-react-table-docs/pages/docs/examples/row-virtualization.mdx +0 -32
  1699. package/apps/material-react-table-docs/pages/docs/examples/static-row-pinning.mdx +0 -26
  1700. package/apps/material-react-table-docs/pages/docs/examples/sticky-header.mdx +0 -26
  1701. package/apps/material-react-table-docs/pages/docs/examples/sticky-row-pinning.mdx +0 -26
  1702. package/apps/material-react-table-docs/pages/docs/examples/sticky-row-selection.mdx +0 -26
  1703. package/apps/material-react-table-docs/pages/docs/examples/virtualized.mdx +0 -32
  1704. package/apps/material-react-table-docs/pages/docs/getting-started/index.mdx +0 -17
  1705. package/apps/material-react-table-docs/pages/docs/getting-started/install.mdx +0 -124
  1706. package/apps/material-react-table-docs/pages/docs/getting-started/migrating-to-v3.mdx +0 -112
  1707. package/apps/material-react-table-docs/pages/docs/getting-started/usage.mdx +0 -173
  1708. package/apps/material-react-table-docs/pages/docs/guides/accessibility.mdx +0 -133
  1709. package/apps/material-react-table-docs/pages/docs/guides/aggregation.mdx +0 -231
  1710. package/apps/material-react-table-docs/pages/docs/guides/async-loading.mdx +0 -155
  1711. package/apps/material-react-table-docs/pages/docs/guides/best-practices.mdx +0 -373
  1712. package/apps/material-react-table-docs/pages/docs/guides/cell-actions.mdx +0 -161
  1713. package/apps/material-react-table-docs/pages/docs/guides/click-to-copy.mdx +0 -78
  1714. package/apps/material-react-table-docs/pages/docs/guides/column-actions.mdx +0 -92
  1715. package/apps/material-react-table-docs/pages/docs/guides/column-filtering.mdx +0 -397
  1716. package/apps/material-react-table-docs/pages/docs/guides/column-grouping.mdx +0 -213
  1717. package/apps/material-react-table-docs/pages/docs/guides/column-hiding.mdx +0 -143
  1718. package/apps/material-react-table-docs/pages/docs/guides/column-ordering-dnd.mdx +0 -114
  1719. package/apps/material-react-table-docs/pages/docs/guides/column-pinning.mdx +0 -81
  1720. package/apps/material-react-table-docs/pages/docs/guides/column-resizing.mdx +0 -173
  1721. package/apps/material-react-table-docs/pages/docs/guides/column-size.mdx +0 -174
  1722. package/apps/material-react-table-docs/pages/docs/guides/customize-components.mdx +0 -419
  1723. package/apps/material-react-table-docs/pages/docs/guides/customize-icons.mdx +0 -45
  1724. package/apps/material-react-table-docs/pages/docs/guides/data-columns.mdx +0 -303
  1725. package/apps/material-react-table-docs/pages/docs/guides/density-toggle.mdx +0 -56
  1726. package/apps/material-react-table-docs/pages/docs/guides/detail-panel.mdx +0 -214
  1727. package/apps/material-react-table-docs/pages/docs/guides/display-columns.mdx +0 -146
  1728. package/apps/material-react-table-docs/pages/docs/guides/editing.mdx +0 -388
  1729. package/apps/material-react-table-docs/pages/docs/guides/expanding-sub-rows.mdx +0 -217
  1730. package/apps/material-react-table-docs/pages/docs/guides/full-screen-toggle.mdx +0 -77
  1731. package/apps/material-react-table-docs/pages/docs/guides/global-filtering.mdx +0 -256
  1732. package/apps/material-react-table-docs/pages/docs/guides/index.mdx +0 -18
  1733. package/apps/material-react-table-docs/pages/docs/guides/localization.mdx +0 -65
  1734. package/apps/material-react-table-docs/pages/docs/guides/memoization.mdx +0 -164
  1735. package/apps/material-react-table-docs/pages/docs/guides/pagination.mdx +0 -190
  1736. package/apps/material-react-table-docs/pages/docs/guides/row-actions.mdx +0 -133
  1737. package/apps/material-react-table-docs/pages/docs/guides/row-numbers.mdx +0 -36
  1738. package/apps/material-react-table-docs/pages/docs/guides/row-ordering-dnd.mdx +0 -66
  1739. package/apps/material-react-table-docs/pages/docs/guides/row-pinning.mdx +0 -113
  1740. package/apps/material-react-table-docs/pages/docs/guides/row-selection.mdx +0 -256
  1741. package/apps/material-react-table-docs/pages/docs/guides/sorting.mdx +0 -212
  1742. package/apps/material-react-table-docs/pages/docs/guides/state-management.mdx +0 -174
  1743. package/apps/material-react-table-docs/pages/docs/guides/sticky-header.mdx +0 -52
  1744. package/apps/material-react-table-docs/pages/docs/guides/table-event-listeners.mdx +0 -113
  1745. package/apps/material-react-table-docs/pages/docs/guides/toolbar-customization.mdx +0 -269
  1746. package/apps/material-react-table-docs/pages/docs/guides/virtualization.mdx +0 -200
  1747. package/apps/material-react-table-docs/pages/docs/index.mdx +0 -15
  1748. package/apps/material-react-table-docs/pages/index.tsx +0 -317
  1749. package/apps/material-react-table-docs/pages/roadmap.mdx +0 -30
  1750. package/apps/material-react-table-docs/public/Discord-Logo-White.svg +0 -10
  1751. package/apps/material-react-table-docs/public/banner.png +0 -0
  1752. package/apps/material-react-table-docs/public/blog-imgs/best-table-libs/ag-grid-example.png +0 -0
  1753. package/apps/material-react-table-docs/public/blog-imgs/best-table-libs/mrt-example.png +0 -0
  1754. package/apps/material-react-table-docs/public/blog-imgs/best-table-libs/mui-x-example.png +0 -0
  1755. package/apps/material-react-table-docs/public/blog-imgs/best-table-libs/tanstack.png +0 -0
  1756. package/apps/material-react-table-docs/public/contributors/danielhumphrey.jpeg +0 -0
  1757. package/apps/material-react-table-docs/public/contributors/kevinvancott.jpg +0 -0
  1758. package/apps/material-react-table-docs/public/contributors/ryankholousi.jpeg +0 -0
  1759. package/apps/material-react-table-docs/public/customizable.svg +0 -1
  1760. package/apps/material-react-table-docs/public/discord.svg +0 -1
  1761. package/apps/material-react-table-docs/public/efficient.svg +0 -9
  1762. package/apps/material-react-table-docs/public/github-issues.svg +0 -1
  1763. package/apps/material-react-table-docs/public/mrt_logo.png +0 -0
  1764. package/apps/material-react-table-docs/public/mrt_logo.svg +0 -27
  1765. package/apps/material-react-table-docs/public/npm.svg +0 -1
  1766. package/apps/material-react-table-docs/public/opt-out.svg +0 -1
  1767. package/apps/material-react-table-docs/public/quality.svg +0 -1
  1768. package/apps/material-react-table-docs/public/robots.txt +0 -11
  1769. package/apps/material-react-table-docs/public/sitemap-0.xml +0 -104
  1770. package/apps/material-react-table-docs/public/sitemap.xml +0 -4
  1771. package/apps/material-react-table-docs/public/source-code.svg +0 -1
  1772. package/apps/material-react-table-docs/public/storybook.svg +0 -1
  1773. package/apps/material-react-table-docs/styles/MuiTheme.ts +0 -79
  1774. package/apps/material-react-table-docs/styles/ThemeContext.tsx +0 -69
  1775. package/apps/material-react-table-docs/styles/globals.css +0 -52
  1776. package/apps/material-react-table-docs/tsconfig.json +0 -32
  1777. package/apps/test-cra/README.md +0 -70
  1778. package/apps/test-cra/package.json +0 -43
  1779. package/apps/test-cra/public/favicon.ico +0 -0
  1780. package/apps/test-cra/public/index.html +0 -41
  1781. package/apps/test-cra/src/App.js +0 -99
  1782. package/apps/test-cra/src/index.js +0 -10
  1783. package/apps/test-remix/.eslintrc.cjs +0 -4
  1784. package/apps/test-remix/README.md +0 -38
  1785. package/apps/test-remix/app/entry.client.tsx +0 -18
  1786. package/apps/test-remix/app/entry.server.tsx +0 -137
  1787. package/apps/test-remix/app/root.tsx +0 -33
  1788. package/apps/test-remix/app/routes/_index.tsx +0 -117
  1789. package/apps/test-remix/package.json +0 -38
  1790. package/apps/test-remix/public/favicon.ico +0 -0
  1791. package/apps/test-remix/remix.config.js +0 -8
  1792. package/apps/test-remix/remix.env.d.ts +0 -2
  1793. package/apps/test-remix/tsconfig.json +0 -22
  1794. package/apps/test-vite/.eslintrc.cjs +0 -18
  1795. package/apps/test-vite/README.md +0 -27
  1796. package/apps/test-vite/index.html +0 -13
  1797. package/apps/test-vite/package.json +0 -34
  1798. package/apps/test-vite/public/vite.svg +0 -1
  1799. package/apps/test-vite/src/App.tsx +0 -111
  1800. package/apps/test-vite/src/assets/react.svg +0 -1
  1801. package/apps/test-vite/src/main.tsx +0 -9
  1802. package/apps/test-vite/src/vite-env.d.ts +0 -1
  1803. package/apps/test-vite/tsconfig.json +0 -25
  1804. package/apps/test-vite/tsconfig.node.json +0 -10
  1805. package/apps/test-vite/vite.config.ts +0 -7
  1806. package/packages/material-react-table/.eslintrc +0 -76
  1807. package/packages/material-react-table/.storybook/main.ts +0 -35
  1808. package/packages/material-react-table/.storybook/preview.tsx +0 -104
  1809. package/packages/material-react-table/LICENSE +0 -21
  1810. package/packages/material-react-table/README.md +0 -215
  1811. package/packages/material-react-table/build-locales.mjs +0 -112
  1812. package/packages/material-react-table/index.ts +0 -1
  1813. package/packages/material-react-table/package.json +0 -121
  1814. package/packages/material-react-table/rollup.config.mjs +0 -51
  1815. package/packages/material-react-table/src/components/MaterialReactTable.tsx +0 -36
  1816. package/packages/material-react-table/src/components/body/MRT_TableBodyCell.tsx +0 -351
  1817. package/packages/material-react-table/src/components/body/MRT_TableBodyCellValue.tsx +0 -130
  1818. package/packages/material-react-table/src/components/body/MRT_TableBodyRow.tsx +0 -288
  1819. package/packages/material-react-table/src/components/body/MRT_TableBodyRowGrabHandle.tsx +0 -61
  1820. package/packages/material-react-table/src/components/body/MRT_TableDetailPanel.tsx +0 -110
  1821. package/packages/material-react-table/src/components/buttons/MRT_EditActionButtons.tsx +0 -134
  1822. package/packages/material-react-table/src/components/buttons/MRT_RowPinButton.tsx +0 -84
  1823. package/packages/material-react-table/src/components/buttons/MRT_ToggleFullScreenButton.tsx +0 -51
  1824. package/packages/material-react-table/src/components/buttons/MRT_ToggleRowActionMenuButton.tsx +0 -126
  1825. package/packages/material-react-table/src/components/footer/MRT_TableFooter.tsx +0 -88
  1826. package/packages/material-react-table/src/components/footer/MRT_TableFooterCell.tsx +0 -107
  1827. package/packages/material-react-table/src/components/head/MRT_TableHeadCell.tsx +0 -344
  1828. package/packages/material-react-table/src/components/head/MRT_TableHeadCellFilterLabel.tsx +0 -180
  1829. package/packages/material-react-table/src/components/head/MRT_TableHeadCellGrabHandle.tsx +0 -83
  1830. package/packages/material-react-table/src/components/inputs/MRT_EditCellTextField.tsx +0 -191
  1831. package/packages/material-react-table/src/components/inputs/MRT_FilterRangeSlider.tsx +0 -136
  1832. package/packages/material-react-table/src/components/inputs/MRT_FilterTextField.tsx +0 -538
  1833. package/packages/material-react-table/src/components/inputs/MRT_GlobalFilterTextField.tsx +0 -163
  1834. package/packages/material-react-table/src/components/menus/MRT_ActionMenuItem.tsx +0 -62
  1835. package/packages/material-react-table/src/components/menus/MRT_ColumnActionMenu.tsx +0 -349
  1836. package/packages/material-react-table/src/components/menus/MRT_RowActionMenu.tsx +0 -86
  1837. package/packages/material-react-table/src/components/table/MRT_TableLoadingOverlay.tsx +0 -58
  1838. package/packages/material-react-table/src/components/table/MRT_TablePaper.tsx +0 -89
  1839. package/packages/material-react-table/src/components/toolbar/MRT_TablePagination.tsx +0 -239
  1840. package/packages/material-react-table/src/fns/filterFns.ts +0 -196
  1841. package/packages/material-react-table/src/hooks/display-columns/getMRT_RowDragColumnDef.tsx +0 -29
  1842. package/packages/material-react-table/src/hooks/useMRT_Effects.ts +0 -103
  1843. package/packages/material-react-table/src/hooks/useMRT_TableOptions.ts +0 -270
  1844. package/packages/material-react-table/src/locales/sv.ts +0 -96
  1845. package/packages/material-react-table/src/types.ts +0 -1338
  1846. package/packages/material-react-table/src/utils/cell.utils.ts +0 -234
  1847. package/packages/material-react-table/src/utils/style.utils.ts +0 -213
  1848. package/packages/material-react-table/src/utils/tanstack.helpers.ts +0 -64
  1849. package/packages/material-react-table/src/utils/utils.ts +0 -23
  1850. package/packages/material-react-table/stories/features/Aggregation.stories.tsx +0 -313
  1851. package/packages/material-react-table/stories/features/CellActions.stories.tsx +0 -160
  1852. package/packages/material-react-table/stories/features/ClickToCopy.stories.tsx +0 -152
  1853. package/packages/material-react-table/stories/features/ColumnActions.stories.tsx +0 -181
  1854. package/packages/material-react-table/stories/features/ColumnDragging.stories.tsx +0 -92
  1855. package/packages/material-react-table/stories/features/ColumnGrouping.stories.tsx +0 -362
  1856. package/packages/material-react-table/stories/features/ColumnHiding.stories.tsx +0 -245
  1857. package/packages/material-react-table/stories/features/ColumnOrdering.stories.tsx +0 -176
  1858. package/packages/material-react-table/stories/features/ColumnPinning.stories.tsx +0 -111
  1859. package/packages/material-react-table/stories/features/ColumnResizing.stories.tsx +0 -329
  1860. package/packages/material-react-table/stories/features/Creating.stories.tsx +0 -404
  1861. package/packages/material-react-table/stories/features/DensePadding.stories.tsx +0 -73
  1862. package/packages/material-react-table/stories/features/DetailPanel.stories.tsx +0 -493
  1863. package/packages/material-react-table/stories/features/Editing.stories.tsx +0 -1102
  1864. package/packages/material-react-table/stories/features/Filtering.stories.tsx +0 -733
  1865. package/packages/material-react-table/stories/features/FullScreen.stories.tsx +0 -96
  1866. package/packages/material-react-table/stories/features/HeaderGroups.stories.tsx +0 -236
  1867. package/packages/material-react-table/stories/features/LayoutMode.stories.tsx +0 -92
  1868. package/packages/material-react-table/stories/features/Loading.stories.tsx +0 -152
  1869. package/packages/material-react-table/stories/features/Memod.stories.tsx +0 -184
  1870. package/packages/material-react-table/stories/features/Pagination.stories.tsx +0 -201
  1871. package/packages/material-react-table/stories/features/RowActions.stories.tsx +0 -371
  1872. package/packages/material-react-table/stories/features/RowDragging.stories.tsx +0 -87
  1873. package/packages/material-react-table/stories/features/RowNumbers.stories.tsx +0 -113
  1874. package/packages/material-react-table/stories/features/RowOrdering.stories.tsx +0 -282
  1875. package/packages/material-react-table/stories/features/RowPinning.stories.tsx +0 -281
  1876. package/packages/material-react-table/stories/features/Search.stories.tsx +0 -149
  1877. package/packages/material-react-table/stories/features/Selection.stories.tsx +0 -379
  1878. package/packages/material-react-table/stories/features/Sorting.stories.tsx +0 -138
  1879. package/packages/material-react-table/stories/features/SubRowTree.stories.tsx +0 -225
  1880. package/packages/material-react-table/stories/features/Toolbar.stories.tsx +0 -369
  1881. package/packages/material-react-table/stories/features/Virtualization.stories.tsx +0 -391
  1882. package/packages/material-react-table/stories/fixed-bugs/click-propogation.stories.tsx +0 -86
  1883. package/packages/material-react-table/stories/fixed-bugs/data-types.stories.tsx +0 -71
  1884. package/packages/material-react-table/stories/fixed-bugs/fullscreen-with-appbar.stories.tsx +0 -122
  1885. package/packages/material-react-table/stories/fixed-bugs/gridLayout.stories.tsx +0 -80
  1886. package/packages/material-react-table/stories/fixed-bugs/loading.stories.tsx +0 -260
  1887. package/packages/material-react-table/stories/fixed-bugs/mobile-date-pickers.stories.tsx +0 -70
  1888. package/packages/material-react-table/stories/fixed-bugs/sticky-footer.stories.tsx +0 -154
  1889. package/packages/material-react-table/stories/fixed-bugs/useEffects.stories.tsx +0 -325
  1890. package/packages/material-react-table/stories/styling/Alignment.stories.tsx +0 -229
  1891. package/packages/material-react-table/stories/styling/Caption.stories.tsx +0 -64
  1892. package/packages/material-react-table/stories/styling/ColumnWidths.stories.tsx +0 -320
  1893. package/packages/material-react-table/stories/styling/CustomTableBody.stories.tsx +0 -66
  1894. package/packages/material-react-table/stories/styling/RowHeights.stories.tsx +0 -62
  1895. package/packages/material-react-table/stories/styling/StickyHeader.stories.tsx +0 -126
  1896. package/packages/material-react-table/stories/styling/StylingDisplayColumns.stories.tsx +0 -95
  1897. package/packages/material-react-table/stories/styling/TableBodyCellStyles.stories.tsx +0 -131
  1898. package/packages/material-react-table/stories/styling/TableBodyRowStyles.stories.tsx +0 -106
  1899. package/packages/material-react-table/stories/styling/TableDiminsions.stories.tsx +0 -115
  1900. package/packages/material-react-table/stories/styling/TableHeadCellStyles.stories.tsx +0 -129
  1901. package/packages/material-react-table/stories/styling/TablePaper.stories.tsx +0 -50
  1902. package/packages/material-react-table/stories/styling/Theming.stories.tsx +0 -80
  1903. package/packages/material-react-table/tsconfig.json +0 -36
  1904. package/packages/material-react-table/tsconfig.node.json +0 -9
  1905. package/packages/material-react-table/vite.config.ts +0 -7
  1906. package/pnpm-workspace.yaml +0 -3
  1907. package/turbo.json +0 -72
  1908. package/upgrade-examples.sh +0 -42
  1909. /package/{packages/material-react-table/src → src}/components/body/MRT_TableBody.tsx +0 -0
  1910. /package/{packages/material-react-table/src → src}/components/body/MRT_TableBodyRowPinButton.tsx +0 -0
  1911. /package/{packages/material-react-table/src → src}/components/buttons/MRT_ColumnPinningButtons.tsx +0 -0
  1912. /package/{packages/material-react-table/src → src}/components/buttons/MRT_CopyButton.tsx +0 -0
  1913. /package/{packages/material-react-table/src → src}/components/buttons/MRT_ExpandAllButton.tsx +0 -0
  1914. /package/{packages/material-react-table/src → src}/components/buttons/MRT_ExpandButton.tsx +0 -0
  1915. /package/{packages/material-react-table/src → src}/components/buttons/MRT_GrabHandleButton.tsx +0 -0
  1916. /package/{packages/material-react-table/src → src}/components/buttons/MRT_ShowHideColumnsButton.tsx +0 -0
  1917. /package/{packages/material-react-table/src → src}/components/buttons/MRT_ToggleDensePaddingButton.tsx +0 -0
  1918. /package/{packages/material-react-table/src → src}/components/buttons/MRT_ToggleFiltersButton.tsx +0 -0
  1919. /package/{packages/material-react-table/src → src}/components/buttons/MRT_ToggleGlobalFilterButton.tsx +0 -0
  1920. /package/{packages/material-react-table/src → src}/components/footer/MRT_TableFooterRow.tsx +0 -0
  1921. /package/{packages/material-react-table/src → src}/components/head/MRT_TableHead.tsx +0 -0
  1922. /package/{packages/material-react-table/src → src}/components/head/MRT_TableHeadCellColumnActionsButton.tsx +0 -0
  1923. /package/{packages/material-react-table/src → src}/components/head/MRT_TableHeadCellFilterContainer.tsx +0 -0
  1924. /package/{packages/material-react-table/src → src}/components/head/MRT_TableHeadCellResizeHandle.tsx +0 -0
  1925. /package/{packages/material-react-table/src → src}/components/head/MRT_TableHeadCellSortLabel.tsx +0 -0
  1926. /package/{packages/material-react-table/src → src}/components/head/MRT_TableHeadRow.tsx +0 -0
  1927. /package/{packages/material-react-table/src → src}/components/inputs/MRT_FilterCheckbox.tsx +0 -0
  1928. /package/{packages/material-react-table/src → src}/components/inputs/MRT_FilterRangeFields.tsx +0 -0
  1929. /package/{packages/material-react-table/src → src}/components/inputs/MRT_SelectCheckbox.tsx +0 -0
  1930. /package/{packages/material-react-table/src → src}/components/menus/MRT_CellActionMenu.tsx +0 -0
  1931. /package/{packages/material-react-table/src → src}/components/menus/MRT_FilterOptionMenu.tsx +0 -0
  1932. /package/{packages/material-react-table/src → src}/components/menus/MRT_ShowHideColumnsMenu.tsx +0 -0
  1933. /package/{packages/material-react-table/src → src}/components/menus/MRT_ShowHideColumnsMenuItems.tsx +0 -0
  1934. /package/{packages/material-react-table/src → src}/components/modals/MRT_EditRowModal.tsx +0 -0
  1935. /package/{packages/material-react-table/src → src}/components/table/MRT_Table.tsx +0 -0
  1936. /package/{packages/material-react-table/src → src}/components/table/MRT_TableContainer.tsx +0 -0
  1937. /package/{packages/material-react-table/src → src}/components/toolbar/MRT_BottomToolbar.tsx +0 -0
  1938. /package/{packages/material-react-table/src → src}/components/toolbar/MRT_LinearProgressBar.tsx +0 -0
  1939. /package/{packages/material-react-table/src → src}/components/toolbar/MRT_ToolbarAlertBanner.tsx +0 -0
  1940. /package/{packages/material-react-table/src → src}/components/toolbar/MRT_ToolbarDropZone.tsx +0 -0
  1941. /package/{packages/material-react-table/src → src}/components/toolbar/MRT_ToolbarInternalButtons.tsx +0 -0
  1942. /package/{packages/material-react-table/src → src}/components/toolbar/MRT_TopToolbar.tsx +0 -0
  1943. /package/{packages/material-react-table/src → src}/fns/aggregationFns.ts +0 -0
  1944. /package/{packages/material-react-table/src → src}/fns/sortingFns.ts +0 -0
  1945. /package/{packages/material-react-table/src → src}/hooks/display-columns/getMRT_RowActionsColumnDef.tsx +0 -0
  1946. /package/{packages/material-react-table/src → src}/hooks/display-columns/getMRT_RowExpandColumnDef.tsx +0 -0
  1947. /package/{packages/material-react-table/src → src}/hooks/display-columns/getMRT_RowNumbersColumnDef.tsx +0 -0
  1948. /package/{packages/material-react-table/src → src}/hooks/display-columns/getMRT_RowPinningColumnDef.tsx +0 -0
  1949. /package/{packages/material-react-table/src → src}/hooks/display-columns/getMRT_RowSelectColumnDef.tsx +0 -0
  1950. /package/{packages/material-react-table/src → src}/hooks/display-columns/getMRT_RowSpacerColumnDef.tsx +0 -0
  1951. /package/{packages/material-react-table/src → src}/hooks/useMRT_ColumnVirtualizer.ts +0 -0
  1952. /package/{packages/material-react-table/src → src}/hooks/useMRT_RowVirtualizer.ts +0 -0
  1953. /package/{packages/material-react-table/src → src}/hooks/useMRT_Rows.ts +0 -0
  1954. /package/{packages/material-react-table/src → src}/hooks/useMRT_TableInstance.ts +0 -0
  1955. /package/{packages/material-react-table/src → src}/hooks/useMaterialReactTable.ts +0 -0
  1956. /package/{packages/material-react-table/src → src}/icons.ts +0 -0
  1957. /package/{packages/material-react-table/src → src}/index.ts +0 -0
  1958. /package/{packages/material-react-table/src → src}/locales/ar.ts +0 -0
  1959. /package/{packages/material-react-table/src → src}/locales/az.ts +0 -0
  1960. /package/{packages/material-react-table/src → src}/locales/bg.ts +0 -0
  1961. /package/{packages/material-react-table/src → src}/locales/cs.ts +0 -0
  1962. /package/{packages/material-react-table/src → src}/locales/da.ts +0 -0
  1963. /package/{packages/material-react-table/src → src}/locales/de.ts +0 -0
  1964. /package/{packages/material-react-table/src → src}/locales/el.ts +0 -0
  1965. /package/{packages/material-react-table/src → src}/locales/en.ts +0 -0
  1966. /package/{packages/material-react-table/src → src}/locales/es.ts +0 -0
  1967. /package/{packages/material-react-table/src → src}/locales/et.ts +0 -0
  1968. /package/{packages/material-react-table/src → src}/locales/fa.ts +0 -0
  1969. /package/{packages/material-react-table/src → src}/locales/fi.ts +0 -0
  1970. /package/{packages/material-react-table/src → src}/locales/fr.ts +0 -0
  1971. /package/{packages/material-react-table/src → src}/locales/he.ts +0 -0
  1972. /package/{packages/material-react-table/src → src}/locales/hr.ts +0 -0
  1973. /package/{packages/material-react-table/src → src}/locales/hu.ts +0 -0
  1974. /package/{packages/material-react-table/src → src}/locales/hy.ts +0 -0
  1975. /package/{packages/material-react-table/src → src}/locales/id.ts +0 -0
  1976. /package/{packages/material-react-table/src → src}/locales/it.ts +0 -0
  1977. /package/{packages/material-react-table/src → src}/locales/ja.ts +0 -0
  1978. /package/{packages/material-react-table/src → src}/locales/ko.ts +0 -0
  1979. /package/{packages/material-react-table/src → src}/locales/nl.ts +0 -0
  1980. /package/{packages/material-react-table/src → src}/locales/no.ts +0 -0
  1981. /package/{packages/material-react-table/src → src}/locales/np.ts +0 -0
  1982. /package/{packages/material-react-table/src → src}/locales/pl.ts +0 -0
  1983. /package/{packages/material-react-table/src → src}/locales/pt-BR.ts +0 -0
  1984. /package/{packages/material-react-table/src → src}/locales/pt.ts +0 -0
  1985. /package/{packages/material-react-table/src → src}/locales/ro.ts +0 -0
  1986. /package/{packages/material-react-table/src → src}/locales/ru.ts +0 -0
  1987. /package/{packages/material-react-table/src → src}/locales/sk.ts +0 -0
  1988. /package/{packages/material-react-table/src → src}/locales/sr-Cyrl-RS.ts +0 -0
  1989. /package/{packages/material-react-table/src → src}/locales/sr-Latn-RS.ts +0 -0
  1990. /package/{packages/material-react-table/src → src}/locales/tr.ts +0 -0
  1991. /package/{packages/material-react-table/src → src}/locales/uk.ts +0 -0
  1992. /package/{packages/material-react-table/src → src}/locales/vi.ts +0 -0
  1993. /package/{packages/material-react-table/src → src}/locales/zh-Hans.ts +0 -0
  1994. /package/{packages/material-react-table/src → src}/locales/zh-Hant.ts +0 -0
  1995. /package/{packages/material-react-table/src → src}/utils/column.utils.ts +0 -0
  1996. /package/{packages/material-react-table/src → src}/utils/displayColumn.utils.ts +0 -0
  1997. /package/{packages/material-react-table/src → src}/utils/row.utils.ts +0 -0
  1998. /package/{packages/material-react-table/src → src}/utils/virtualization.utils.ts +0 -0
package/dist/index.js ADDED
@@ -0,0 +1,4482 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var reactTable = require('@tanstack/react-table');
6
+ var react = require('react');
7
+ var matchSorterUtils = require('@tanstack/match-sorter-utils');
8
+ var jsxRuntime = require('react/jsx-runtime');
9
+ var IconButton = require('@mui/material/IconButton');
10
+ var Tooltip = require('@mui/material/Tooltip');
11
+ var Box = require('@mui/material/Box');
12
+ var Button = require('@mui/material/Button');
13
+ var CircularProgress = require('@mui/material/CircularProgress');
14
+ var styles = require('@mui/material/styles');
15
+ var Menu = require('@mui/material/Menu');
16
+ var ListItemIcon = require('@mui/material/ListItemIcon');
17
+ var MenuItem = require('@mui/material/MenuItem');
18
+ var Stack = require('@mui/material/Stack');
19
+ var Checkbox = require('@mui/material/Checkbox');
20
+ var Radio = require('@mui/material/Radio');
21
+ var ArrowDownwardIcon = require('@mui/icons-material/ArrowDownward');
22
+ var ArrowRightIcon = require('@mui/icons-material/ArrowRight');
23
+ var CancelIcon = require('@mui/icons-material/Cancel');
24
+ var ChevronLeftIcon = require('@mui/icons-material/ChevronLeft');
25
+ var ChevronRightIcon = require('@mui/icons-material/ChevronRight');
26
+ var ClearAllIcon = require('@mui/icons-material/ClearAll');
27
+ var CloseIcon = require('@mui/icons-material/Close');
28
+ var ContentCopy = require('@mui/icons-material/ContentCopy');
29
+ var DensityLargeIcon = require('@mui/icons-material/DensityLarge');
30
+ var DensityMediumIcon = require('@mui/icons-material/DensityMedium');
31
+ var DensitySmallIcon = require('@mui/icons-material/DensitySmall');
32
+ var DragHandleIcon = require('@mui/icons-material/DragHandle');
33
+ var DynamicFeedIcon = require('@mui/icons-material/DynamicFeed');
34
+ var EditIcon = require('@mui/icons-material/Edit');
35
+ var ExpandMoreIcon = require('@mui/icons-material/ExpandMore');
36
+ var FilterAltIcon = require('@mui/icons-material/FilterAlt');
37
+ var FilterListIcon = require('@mui/icons-material/FilterList');
38
+ var FilterListOffIcon = require('@mui/icons-material/FilterListOff');
39
+ var FirstPageIcon = require('@mui/icons-material/FirstPage');
40
+ var FullscreenIcon = require('@mui/icons-material/Fullscreen');
41
+ var FullscreenExitIcon = require('@mui/icons-material/FullscreenExit');
42
+ var KeyboardDoubleArrowDownIcon = require('@mui/icons-material/KeyboardDoubleArrowDown');
43
+ var LastPageIcon = require('@mui/icons-material/LastPage');
44
+ var MoreHorizIcon = require('@mui/icons-material/MoreHoriz');
45
+ var MoreVertIcon = require('@mui/icons-material/MoreVert');
46
+ var PushPinIcon = require('@mui/icons-material/PushPin');
47
+ var RestartAltIcon = require('@mui/icons-material/RestartAlt');
48
+ var SaveIcon = require('@mui/icons-material/Save');
49
+ var SearchIcon = require('@mui/icons-material/Search');
50
+ var SearchOffIcon = require('@mui/icons-material/SearchOff');
51
+ var SortIcon = require('@mui/icons-material/Sort');
52
+ var SyncAltIcon = require('@mui/icons-material/SyncAlt');
53
+ var ViewColumnIcon = require('@mui/icons-material/ViewColumn');
54
+ var VisibilityOffIcon = require('@mui/icons-material/VisibilityOff');
55
+ var reactVirtual = require('@tanstack/react-virtual');
56
+ var Paper = require('@mui/material/Paper');
57
+ var material = require('@mui/material');
58
+ var TableContainer = require('@mui/material/TableContainer');
59
+ var Table = require('@mui/material/Table');
60
+ var TableBody = require('@mui/material/TableBody');
61
+ var Typography = require('@mui/material/Typography');
62
+ var TableRow = require('@mui/material/TableRow');
63
+ var Skeleton = require('@mui/material/Skeleton');
64
+ var TableCell = require('@mui/material/TableCell');
65
+ var highlightWords = require('highlight-words');
66
+ var TextField = require('@mui/material/TextField');
67
+ var Collapse = require('@mui/material/Collapse');
68
+ var TableFooter = require('@mui/material/TableFooter');
69
+ var TableHead = require('@mui/material/TableHead');
70
+ var FormControlLabel = require('@mui/material/FormControlLabel');
71
+ var Autocomplete = require('@mui/material/Autocomplete');
72
+ var Chip = require('@mui/material/Chip');
73
+ var InputAdornment = require('@mui/material/InputAdornment');
74
+ var utils = require('@mui/material/utils');
75
+ var DatePicker = require('@mui/x-date-pickers/DatePicker');
76
+ var DateTimePicker = require('@mui/x-date-pickers/DateTimePicker');
77
+ var TimePicker = require('@mui/x-date-pickers/TimePicker');
78
+ var FormHelperText = require('@mui/material/FormHelperText');
79
+ var Slider = require('@mui/material/Slider');
80
+ var Grow = require('@mui/material/Grow');
81
+ var Popover = require('@mui/material/Popover');
82
+ var Divider = require('@mui/material/Divider');
83
+ var Badge = require('@mui/material/Badge');
84
+ var TableSortLabel = require('@mui/material/TableSortLabel');
85
+ var Alert = require('@mui/material/Alert');
86
+ var AlertTitle = require('@mui/material/AlertTitle');
87
+ var Dialog = require('@mui/material/Dialog');
88
+ var DialogActions = require('@mui/material/DialogActions');
89
+ var DialogContent = require('@mui/material/DialogContent');
90
+ var DialogTitle = require('@mui/material/DialogTitle');
91
+ var useMediaQuery = require('@mui/material/useMediaQuery');
92
+ var LinearProgress = require('@mui/material/LinearProgress');
93
+ var InputLabel = require('@mui/material/InputLabel');
94
+ var Pagination = require('@mui/material/Pagination');
95
+ var PaginationItem = require('@mui/material/PaginationItem');
96
+ var Select = require('@mui/material/Select');
97
+ var Fade = require('@mui/material/Fade');
98
+ var Switch = require('@mui/material/Switch');
99
+
100
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
101
+
102
+ var IconButton__default = /*#__PURE__*/_interopDefaultLegacy(IconButton);
103
+ var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
104
+ var Box__default = /*#__PURE__*/_interopDefaultLegacy(Box);
105
+ var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
106
+ var CircularProgress__default = /*#__PURE__*/_interopDefaultLegacy(CircularProgress);
107
+ var Menu__default = /*#__PURE__*/_interopDefaultLegacy(Menu);
108
+ var ListItemIcon__default = /*#__PURE__*/_interopDefaultLegacy(ListItemIcon);
109
+ var MenuItem__default = /*#__PURE__*/_interopDefaultLegacy(MenuItem);
110
+ var Stack__default = /*#__PURE__*/_interopDefaultLegacy(Stack);
111
+ var Checkbox__default = /*#__PURE__*/_interopDefaultLegacy(Checkbox);
112
+ var Radio__default = /*#__PURE__*/_interopDefaultLegacy(Radio);
113
+ var ArrowDownwardIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowDownwardIcon);
114
+ var ArrowRightIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowRightIcon);
115
+ var CancelIcon__default = /*#__PURE__*/_interopDefaultLegacy(CancelIcon);
116
+ var ChevronLeftIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronLeftIcon);
117
+ var ChevronRightIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronRightIcon);
118
+ var ClearAllIcon__default = /*#__PURE__*/_interopDefaultLegacy(ClearAllIcon);
119
+ var CloseIcon__default = /*#__PURE__*/_interopDefaultLegacy(CloseIcon);
120
+ var ContentCopy__default = /*#__PURE__*/_interopDefaultLegacy(ContentCopy);
121
+ var DensityLargeIcon__default = /*#__PURE__*/_interopDefaultLegacy(DensityLargeIcon);
122
+ var DensityMediumIcon__default = /*#__PURE__*/_interopDefaultLegacy(DensityMediumIcon);
123
+ var DensitySmallIcon__default = /*#__PURE__*/_interopDefaultLegacy(DensitySmallIcon);
124
+ var DragHandleIcon__default = /*#__PURE__*/_interopDefaultLegacy(DragHandleIcon);
125
+ var DynamicFeedIcon__default = /*#__PURE__*/_interopDefaultLegacy(DynamicFeedIcon);
126
+ var EditIcon__default = /*#__PURE__*/_interopDefaultLegacy(EditIcon);
127
+ var ExpandMoreIcon__default = /*#__PURE__*/_interopDefaultLegacy(ExpandMoreIcon);
128
+ var FilterAltIcon__default = /*#__PURE__*/_interopDefaultLegacy(FilterAltIcon);
129
+ var FilterListIcon__default = /*#__PURE__*/_interopDefaultLegacy(FilterListIcon);
130
+ var FilterListOffIcon__default = /*#__PURE__*/_interopDefaultLegacy(FilterListOffIcon);
131
+ var FirstPageIcon__default = /*#__PURE__*/_interopDefaultLegacy(FirstPageIcon);
132
+ var FullscreenIcon__default = /*#__PURE__*/_interopDefaultLegacy(FullscreenIcon);
133
+ var FullscreenExitIcon__default = /*#__PURE__*/_interopDefaultLegacy(FullscreenExitIcon);
134
+ var KeyboardDoubleArrowDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(KeyboardDoubleArrowDownIcon);
135
+ var LastPageIcon__default = /*#__PURE__*/_interopDefaultLegacy(LastPageIcon);
136
+ var MoreHorizIcon__default = /*#__PURE__*/_interopDefaultLegacy(MoreHorizIcon);
137
+ var MoreVertIcon__default = /*#__PURE__*/_interopDefaultLegacy(MoreVertIcon);
138
+ var PushPinIcon__default = /*#__PURE__*/_interopDefaultLegacy(PushPinIcon);
139
+ var RestartAltIcon__default = /*#__PURE__*/_interopDefaultLegacy(RestartAltIcon);
140
+ var SaveIcon__default = /*#__PURE__*/_interopDefaultLegacy(SaveIcon);
141
+ var SearchIcon__default = /*#__PURE__*/_interopDefaultLegacy(SearchIcon);
142
+ var SearchOffIcon__default = /*#__PURE__*/_interopDefaultLegacy(SearchOffIcon);
143
+ var SortIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortIcon);
144
+ var SyncAltIcon__default = /*#__PURE__*/_interopDefaultLegacy(SyncAltIcon);
145
+ var ViewColumnIcon__default = /*#__PURE__*/_interopDefaultLegacy(ViewColumnIcon);
146
+ var VisibilityOffIcon__default = /*#__PURE__*/_interopDefaultLegacy(VisibilityOffIcon);
147
+ var Paper__default = /*#__PURE__*/_interopDefaultLegacy(Paper);
148
+ var TableContainer__default = /*#__PURE__*/_interopDefaultLegacy(TableContainer);
149
+ var Table__default = /*#__PURE__*/_interopDefaultLegacy(Table);
150
+ var TableBody__default = /*#__PURE__*/_interopDefaultLegacy(TableBody);
151
+ var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography);
152
+ var TableRow__default = /*#__PURE__*/_interopDefaultLegacy(TableRow);
153
+ var Skeleton__default = /*#__PURE__*/_interopDefaultLegacy(Skeleton);
154
+ var TableCell__default = /*#__PURE__*/_interopDefaultLegacy(TableCell);
155
+ var highlightWords__default = /*#__PURE__*/_interopDefaultLegacy(highlightWords);
156
+ var TextField__default = /*#__PURE__*/_interopDefaultLegacy(TextField);
157
+ var Collapse__default = /*#__PURE__*/_interopDefaultLegacy(Collapse);
158
+ var TableFooter__default = /*#__PURE__*/_interopDefaultLegacy(TableFooter);
159
+ var TableHead__default = /*#__PURE__*/_interopDefaultLegacy(TableHead);
160
+ var FormControlLabel__default = /*#__PURE__*/_interopDefaultLegacy(FormControlLabel);
161
+ var Autocomplete__default = /*#__PURE__*/_interopDefaultLegacy(Autocomplete);
162
+ var Chip__default = /*#__PURE__*/_interopDefaultLegacy(Chip);
163
+ var InputAdornment__default = /*#__PURE__*/_interopDefaultLegacy(InputAdornment);
164
+ var FormHelperText__default = /*#__PURE__*/_interopDefaultLegacy(FormHelperText);
165
+ var Slider__default = /*#__PURE__*/_interopDefaultLegacy(Slider);
166
+ var Grow__default = /*#__PURE__*/_interopDefaultLegacy(Grow);
167
+ var Popover__default = /*#__PURE__*/_interopDefaultLegacy(Popover);
168
+ var Divider__default = /*#__PURE__*/_interopDefaultLegacy(Divider);
169
+ var Badge__default = /*#__PURE__*/_interopDefaultLegacy(Badge);
170
+ var TableSortLabel__default = /*#__PURE__*/_interopDefaultLegacy(TableSortLabel);
171
+ var Alert__default = /*#__PURE__*/_interopDefaultLegacy(Alert);
172
+ var AlertTitle__default = /*#__PURE__*/_interopDefaultLegacy(AlertTitle);
173
+ var Dialog__default = /*#__PURE__*/_interopDefaultLegacy(Dialog);
174
+ var DialogActions__default = /*#__PURE__*/_interopDefaultLegacy(DialogActions);
175
+ var DialogContent__default = /*#__PURE__*/_interopDefaultLegacy(DialogContent);
176
+ var DialogTitle__default = /*#__PURE__*/_interopDefaultLegacy(DialogTitle);
177
+ var useMediaQuery__default = /*#__PURE__*/_interopDefaultLegacy(useMediaQuery);
178
+ var LinearProgress__default = /*#__PURE__*/_interopDefaultLegacy(LinearProgress);
179
+ var InputLabel__default = /*#__PURE__*/_interopDefaultLegacy(InputLabel);
180
+ var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
181
+ var PaginationItem__default = /*#__PURE__*/_interopDefaultLegacy(PaginationItem);
182
+ var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select);
183
+ var Fade__default = /*#__PURE__*/_interopDefaultLegacy(Fade);
184
+ var Switch__default = /*#__PURE__*/_interopDefaultLegacy(Switch);
185
+
186
+ 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; };
187
+ const getAllLeafColumnDefs = (columns) => {
188
+ const allLeafColumnDefs = [];
189
+ const getLeafColumns = (cols) => {
190
+ cols.forEach((col) => {
191
+ if (col.columns) {
192
+ getLeafColumns(col.columns);
193
+ }
194
+ else {
195
+ allLeafColumnDefs.push(col);
196
+ }
197
+ });
198
+ };
199
+ getLeafColumns(columns);
200
+ return allLeafColumnDefs;
201
+ };
202
+ const prepareColumns = ({ columnDefs, tableOptions, }) => {
203
+ const { aggregationFns = {}, defaultDisplayColumn, filterFns = {}, sortingFns = {}, state: { columnFilterFns = {} } = {}, } = tableOptions;
204
+ return columnDefs.map((columnDef) => {
205
+ var _a, _b;
206
+ //assign columnId
207
+ if (!columnDef.id)
208
+ columnDef.id = getColumnId(columnDef);
209
+ //assign columnDefType
210
+ if (!columnDef.columnDefType)
211
+ columnDef.columnDefType = 'data';
212
+ if ((_a = columnDef.columns) === null || _a === void 0 ? void 0 : _a.length) {
213
+ columnDef.columnDefType = 'group';
214
+ //recursively prepare columns if this is a group column
215
+ columnDef.columns = prepareColumns({
216
+ columnDefs: columnDef.columns,
217
+ tableOptions,
218
+ });
219
+ }
220
+ else if (columnDef.columnDefType === 'data') {
221
+ //assign aggregationFns if multiple aggregationFns are provided
222
+ if (Array.isArray(columnDef.aggregationFn)) {
223
+ const aggFns = columnDef.aggregationFn;
224
+ columnDef.aggregationFn = (columnId, leafRows, childRows) => aggFns.map((fn) => { var _a; return (_a = aggregationFns[fn]) === null || _a === void 0 ? void 0 : _a.call(aggregationFns, columnId, leafRows, childRows); });
225
+ }
226
+ //assign filterFns
227
+ if (Object.keys(filterFns).includes(columnFilterFns[columnDef.id])) {
228
+ columnDef.filterFn =
229
+ (_b = filterFns[columnFilterFns[columnDef.id]]) !== null && _b !== void 0 ? _b : filterFns.fuzzy;
230
+ columnDef._filterFn =
231
+ columnFilterFns[columnDef.id];
232
+ }
233
+ //assign sortingFns
234
+ if (Object.keys(sortingFns).includes(columnDef.sortingFn)) {
235
+ // @ts-ignore
236
+ columnDef.sortingFn = sortingFns[columnDef.sortingFn];
237
+ }
238
+ }
239
+ else if (columnDef.columnDefType === 'display') {
240
+ columnDef = Object.assign(Object.assign({}, defaultDisplayColumn), columnDef);
241
+ }
242
+ return columnDef;
243
+ });
244
+ };
245
+ const reorderColumn = (draggedColumn, targetColumn, columnOrder) => {
246
+ if (draggedColumn.getCanPin()) {
247
+ draggedColumn.pin(targetColumn.getIsPinned());
248
+ }
249
+ const newColumnOrder = [...columnOrder];
250
+ newColumnOrder.splice(newColumnOrder.indexOf(targetColumn.id), 0, newColumnOrder.splice(newColumnOrder.indexOf(draggedColumn.id), 1)[0]);
251
+ return newColumnOrder;
252
+ };
253
+ const getDefaultColumnFilterFn = (columnDef) => {
254
+ const { filterVariant } = columnDef;
255
+ if (filterVariant === 'multi-select')
256
+ return 'arrIncludesSome';
257
+ if (filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.includes('range'))
258
+ return 'betweenInclusive';
259
+ if (filterVariant === 'select' || filterVariant === 'checkbox')
260
+ return 'equals';
261
+ return 'fuzzy';
262
+ };
263
+ const getColumnFilterInfo = ({ header, table, }) => {
264
+ var _a;
265
+ const { options: { columnFilterModeOptions }, } = table;
266
+ const { column } = header;
267
+ const { columnDef } = column;
268
+ const { filterVariant } = columnDef;
269
+ const isDateFilter = !!((filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.startsWith('date')) || (filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.startsWith('time')));
270
+ const isAutocompleteFilter = filterVariant === 'autocomplete';
271
+ const isRangeFilter = (filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.includes('range')) ||
272
+ ['between', 'betweenInclusive', 'inNumberRange'].includes(columnDef._filterFn);
273
+ const isSelectFilter = filterVariant === 'select';
274
+ const isMultiSelectFilter = filterVariant === 'multi-select';
275
+ const isTextboxFilter = ['autocomplete', 'text'].includes(filterVariant) ||
276
+ (!isSelectFilter && !isMultiSelectFilter);
277
+ const currentFilterOption = columnDef._filterFn;
278
+ const allowedColumnFilterOptions = (_a = columnDef === null || columnDef === void 0 ? void 0 : columnDef.columnFilterModeOptions) !== null && _a !== void 0 ? _a : columnFilterModeOptions;
279
+ const facetedUniqueValues = column.getFacetedUniqueValues();
280
+ return {
281
+ allowedColumnFilterOptions,
282
+ currentFilterOption,
283
+ facetedUniqueValues,
284
+ isAutocompleteFilter,
285
+ isDateFilter,
286
+ isMultiSelectFilter,
287
+ isRangeFilter,
288
+ isSelectFilter,
289
+ isTextboxFilter,
290
+ };
291
+ };
292
+ const useDropdownOptions = ({ header, table, }) => {
293
+ const { column } = header;
294
+ const { columnDef } = column;
295
+ const { facetedUniqueValues, isAutocompleteFilter, isMultiSelectFilter, isSelectFilter, } = getColumnFilterInfo({ header, table });
296
+ return react.useMemo(() => {
297
+ var _a;
298
+ return (_a = columnDef.filterSelectOptions) !== null && _a !== void 0 ? _a : ((isSelectFilter || isMultiSelectFilter || isAutocompleteFilter) &&
299
+ facetedUniqueValues
300
+ ? Array.from(facetedUniqueValues.keys())
301
+ .filter((value) => value !== null && value !== undefined)
302
+ .sort((a, b) => a.localeCompare(b))
303
+ : undefined);
304
+ }, [
305
+ columnDef.filterSelectOptions,
306
+ facetedUniqueValues,
307
+ isMultiSelectFilter,
308
+ isSelectFilter,
309
+ ]);
310
+ };
311
+
312
+ const flexRender = reactTable.flexRender;
313
+ function createMRTColumnHelper() {
314
+ return {
315
+ accessor: (accessor, column) => {
316
+ return typeof accessor === 'function'
317
+ ? Object.assign(Object.assign({}, column), { accessorFn: accessor })
318
+ : Object.assign(Object.assign({}, column), { accessorKey: accessor });
319
+ },
320
+ display: (column) => column,
321
+ group: (column) => column,
322
+ };
323
+ }
324
+ const createRow = (table, originalRow, rowIndex = -1, depth = 0, subRows, parentId) => reactTable.createRow(table, 'mrt-row-create', originalRow !== null && originalRow !== void 0 ? originalRow : Object.assign({}, ...getAllLeafColumnDefs(table.options.columns).map((col) => ({
325
+ [getColumnId(col)]: '',
326
+ }))), rowIndex, depth, subRows, parentId);
327
+
328
+ const fuzzy$1 = (rowA, rowB, columnId) => {
329
+ let dir = 0;
330
+ if (rowA.columnFiltersMeta[columnId]) {
331
+ dir = matchSorterUtils.compareItems(rowA.columnFiltersMeta[columnId], rowB.columnFiltersMeta[columnId]);
332
+ }
333
+ // Provide a fallback for when the item ranks are equal
334
+ return dir === 0
335
+ ? reactTable.sortingFns.alphanumeric(rowA, rowB, columnId)
336
+ : dir;
337
+ };
338
+ const MRT_SortingFns = Object.assign(Object.assign({}, reactTable.sortingFns), { fuzzy: fuzzy$1 });
339
+ const rankGlobalFuzzy = (rowA, rowB) => Math.max(...Object.values(rowB.columnFiltersMeta).map((v) => v.rank)) -
340
+ Math.max(...Object.values(rowA.columnFiltersMeta).map((v) => v.rank));
341
+
342
+ const parseFromValuesOrFunc = (fn, arg) => (fn instanceof Function ? fn(arg) : fn);
343
+ const getValueAndLabel = (option) => {
344
+ var _a, _b, _c;
345
+ let label = '';
346
+ let value = '';
347
+ if (option) {
348
+ if (typeof option !== 'object') {
349
+ label = option;
350
+ value = option;
351
+ }
352
+ else {
353
+ label = (_b = (_a = option.label) !== null && _a !== void 0 ? _a : option.text) !== null && _b !== void 0 ? _b : option.value;
354
+ value = (_c = option.value) !== null && _c !== void 0 ? _c : label;
355
+ }
356
+ }
357
+ return { label, value };
358
+ };
359
+
360
+ const getMRT_Rows = (table, all) => {
361
+ const { getCenterRows, getPrePaginationRowModel, getRowModel, getState, getTopRows, options: { createDisplayMode, enablePagination, enableRowPinning, manualPagination, positionCreatingRow, rowPinningDisplayMode, }, } = table;
362
+ const { creatingRow, pagination } = getState();
363
+ const isRankingRows = getIsRankingRows(table);
364
+ let rows = [];
365
+ if (!isRankingRows) {
366
+ rows =
367
+ !enableRowPinning || (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky'))
368
+ ? all
369
+ ? getPrePaginationRowModel().rows
370
+ : getRowModel().rows
371
+ : getCenterRows();
372
+ }
373
+ else {
374
+ // fuzzy ranking adjustments
375
+ rows = getPrePaginationRowModel().rows.sort((a, b) => rankGlobalFuzzy(a, b));
376
+ if (enablePagination && !manualPagination && !all) {
377
+ const start = pagination.pageIndex * pagination.pageSize;
378
+ rows = rows.slice(start, start + pagination.pageSize);
379
+ }
380
+ if (enableRowPinning && !(rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky'))) {
381
+ // "re-center-ize" the rows (no top or bottom pinned rows unless sticky)
382
+ rows = rows.filter((row) => !row.getIsPinned());
383
+ }
384
+ }
385
+ // row pinning adjustments
386
+ if (enableRowPinning && (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky'))) {
387
+ const centerPinnedRowIds = rows
388
+ .filter((row) => row.getIsPinned())
389
+ .map((r) => r.id);
390
+ rows = [
391
+ ...getTopRows().filter((row) => !centerPinnedRowIds.includes(row.id)),
392
+ ...rows,
393
+ ];
394
+ }
395
+ // blank inserted creating row adjustments
396
+ if (positionCreatingRow !== undefined &&
397
+ creatingRow &&
398
+ createDisplayMode === 'row') {
399
+ const creatingRowIndex = !isNaN(+positionCreatingRow)
400
+ ? +positionCreatingRow
401
+ : positionCreatingRow === 'top'
402
+ ? 0
403
+ : rows.length;
404
+ rows = [
405
+ ...rows.slice(0, creatingRowIndex),
406
+ creatingRow,
407
+ ...rows.slice(creatingRowIndex),
408
+ ];
409
+ }
410
+ return rows;
411
+ };
412
+ const getCanRankRows = (table) => {
413
+ const { getState, options: { enableGlobalFilterRankedResults, manualExpanding, manualFiltering, manualGrouping, manualSorting, }, } = table;
414
+ const { expanded, globalFilterFn } = getState();
415
+ return (!manualExpanding &&
416
+ !manualFiltering &&
417
+ !manualGrouping &&
418
+ !manualSorting &&
419
+ enableGlobalFilterRankedResults &&
420
+ globalFilterFn === 'fuzzy' &&
421
+ expanded !== true &&
422
+ !Object.values(expanded).some(Boolean));
423
+ };
424
+ const getIsRankingRows = (table) => {
425
+ const { globalFilter, sorting } = table.getState();
426
+ return (getCanRankRows(table) &&
427
+ globalFilter &&
428
+ !Object.values(sorting).some(Boolean));
429
+ };
430
+ const getIsRowSelected = ({ row, table, }) => {
431
+ const { options: { enableRowSelection }, } = table;
432
+ return (row.getIsSelected() ||
433
+ (parseFromValuesOrFunc(enableRowSelection, row) &&
434
+ row.getCanSelectSubRows() &&
435
+ row.getIsAllSubRowsSelected()));
436
+ };
437
+ const getMRT_RowSelectionHandler = ({ row, staticRowIndex = 0, table, }) => (event, value) => {
438
+ var _a;
439
+ const { getState, options: { enableBatchRowSelection, enableMultiRowSelection, enableRowPinning, manualPagination, rowPinningDisplayMode, }, refs: { lastSelectedRowId: lastSelectedRowId }, } = table;
440
+ const { pagination: { pageIndex, pageSize }, } = getState();
441
+ const paginationOffset = manualPagination ? 0 : pageSize * pageIndex;
442
+ const wasCurrentRowChecked = getIsRowSelected({ row, table });
443
+ // toggle selection of this row
444
+ row.toggleSelected(value !== null && value !== void 0 ? value : !wasCurrentRowChecked);
445
+ const changedRowIds = new Set([row.id]);
446
+ // if shift key is pressed, select all rows between last selected and this one
447
+ if (enableBatchRowSelection &&
448
+ enableMultiRowSelection &&
449
+ event.nativeEvent.shiftKey &&
450
+ lastSelectedRowId.current !== null) {
451
+ const rows = getMRT_Rows(table, true);
452
+ const lastIndex = rows.findIndex((r) => r.id === lastSelectedRowId.current);
453
+ if (lastIndex !== -1) {
454
+ const isLastIndexChecked = getIsRowSelected({
455
+ row: rows === null || rows === void 0 ? void 0 : rows[lastIndex],
456
+ table,
457
+ });
458
+ const currentIndex = staticRowIndex + paginationOffset;
459
+ const [start, end] = lastIndex < currentIndex
460
+ ? [lastIndex, currentIndex]
461
+ : [currentIndex, lastIndex];
462
+ // toggle selection of all rows between last selected and this one
463
+ // but only if the last selected row is not the same as the current one
464
+ if (wasCurrentRowChecked !== isLastIndexChecked) {
465
+ for (let i = start; i <= end; i++) {
466
+ rows[i].toggleSelected(!wasCurrentRowChecked);
467
+ changedRowIds.add(rows[i].id);
468
+ }
469
+ }
470
+ }
471
+ }
472
+ // record the last selected row id
473
+ lastSelectedRowId.current = row.id;
474
+ // if all sub rows were selected, unselect them
475
+ if (row.getCanSelectSubRows() && row.getIsAllSubRowsSelected()) {
476
+ (_a = row.subRows) === null || _a === void 0 ? void 0 : _a.forEach((r) => r.toggleSelected(false));
477
+ }
478
+ if (enableRowPinning && (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('select'))) {
479
+ changedRowIds.forEach((rowId) => {
480
+ const rowToTogglePin = table.getRow(rowId);
481
+ rowToTogglePin.pin(!wasCurrentRowChecked //was not previously pinned or selected
482
+ ? (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('bottom'))
483
+ ? 'bottom'
484
+ : 'top'
485
+ : false);
486
+ });
487
+ }
488
+ };
489
+ const getMRT_SelectAllHandler = ({ table }) => (event, value, forceAll) => {
490
+ const { options: { enableRowPinning, rowPinningDisplayMode, selectAllMode }, refs: { lastSelectedRowId }, } = table;
491
+ selectAllMode === 'all' || forceAll
492
+ ? table.toggleAllRowsSelected(value !== null && value !== void 0 ? value : event.target.checked)
493
+ : table.toggleAllPageRowsSelected(value !== null && value !== void 0 ? value : event.target.checked);
494
+ if (enableRowPinning && (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('select'))) {
495
+ table.setRowPinning({ bottom: [], top: [] });
496
+ }
497
+ lastSelectedRowId.current = null;
498
+ };
499
+
500
+ const isWinCtrlMacMeta = (event) => {
501
+ return ((event.ctrlKey && navigator.platform.toLowerCase().includes('win')) ||
502
+ (event.metaKey && navigator.platform.toLowerCase().includes('mac')));
503
+ };
504
+ const isCellEditable = ({ cell, table, }) => {
505
+ const { enableEditing } = table.options;
506
+ const { column: { columnDef }, row, } = cell;
507
+ return (!cell.getIsPlaceholder() &&
508
+ parseFromValuesOrFunc(enableEditing, row) &&
509
+ parseFromValuesOrFunc(columnDef.enableEditing, row) !== false);
510
+ };
511
+ const openEditingCell = ({ cell, table, }) => {
512
+ const { options: { editDisplayMode }, refs: { editInputRefs }, } = table;
513
+ const { column } = cell;
514
+ if (isCellEditable({ cell, table }) && editDisplayMode === 'cell') {
515
+ table.setEditingCell(cell);
516
+ queueMicrotask(() => {
517
+ var _a;
518
+ const textField = editInputRefs.current[column.id];
519
+ if (textField) {
520
+ textField.focus();
521
+ (_a = textField.select) === null || _a === void 0 ? void 0 : _a.call(textField);
522
+ }
523
+ });
524
+ }
525
+ };
526
+ const cellKeyboardShortcuts = ({ cell, cellElements, cellValue, containerElement, event, header, parentElement, table, }) => {
527
+ var _a, _b, _c, _d, _e, _f, _g, _h;
528
+ if (!table.options.enableKeyboardShortcuts)
529
+ return;
530
+ if (event.isPropagationStopped())
531
+ return;
532
+ const currentCell = event.currentTarget;
533
+ if (cellValue && isWinCtrlMacMeta(event) && event.key === 'c') {
534
+ navigator.clipboard.writeText(cellValue);
535
+ }
536
+ else if (['Enter', ' '].includes(event.key)) {
537
+ if (((_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.id) === 'mrt-row-select') {
538
+ event.preventDefault();
539
+ getMRT_RowSelectionHandler({
540
+ row: cell.row,
541
+ table,
542
+ //@ts-ignore
543
+ staticRowIndex: +event.target.getAttribute('data-index'),
544
+ })(event);
545
+ }
546
+ else if (((_b = header === null || header === void 0 ? void 0 : header.column) === null || _b === void 0 ? void 0 : _b.id) === 'mrt-row-select' &&
547
+ table.options.enableSelectAll) {
548
+ event.preventDefault();
549
+ getMRT_SelectAllHandler({
550
+ table,
551
+ })(event);
552
+ }
553
+ else if (((_c = cell === null || cell === void 0 ? void 0 : cell.column) === null || _c === void 0 ? void 0 : _c.id) === 'mrt-row-expand' &&
554
+ (cell.row.getCanExpand() ||
555
+ ((_e = (_d = table.options).renderDetailPanel) === null || _e === void 0 ? void 0 : _e.call(_d, { row: cell.row, table })))) {
556
+ event.preventDefault();
557
+ cell.row.toggleExpanded();
558
+ }
559
+ else if (((_f = header === null || header === void 0 ? void 0 : header.column) === null || _f === void 0 ? void 0 : _f.id) === 'mrt-row-expand' &&
560
+ table.options.enableExpandAll) {
561
+ event.preventDefault();
562
+ table.toggleAllRowsExpanded();
563
+ }
564
+ else if ((cell === null || cell === void 0 ? void 0 : cell.column.id) === 'mrt-row-pin') {
565
+ event.preventDefault();
566
+ cell.row.getIsPinned()
567
+ ? cell.row.pin(false)
568
+ : cell.row.pin(((_g = table.options.rowPinningDisplayMode) === null || _g === void 0 ? void 0 : _g.includes('bottom'))
569
+ ? 'bottom'
570
+ : 'top');
571
+ }
572
+ else if (header && isWinCtrlMacMeta(event)) {
573
+ const actionsButton = currentCell.querySelector(`button[aria-label="${table.options.localization.columnActions}"]`);
574
+ if (actionsButton) {
575
+ actionsButton.click();
576
+ }
577
+ }
578
+ else if ((_h = header === null || header === void 0 ? void 0 : header.column) === null || _h === void 0 ? void 0 : _h.getCanSort()) {
579
+ event.preventDefault();
580
+ header.column.toggleSorting();
581
+ }
582
+ }
583
+ else if ([
584
+ 'ArrowRight',
585
+ 'ArrowLeft',
586
+ 'ArrowUp',
587
+ 'ArrowDown',
588
+ 'Home',
589
+ 'End',
590
+ 'PageUp',
591
+ 'PageDown',
592
+ ].includes(event.key)) {
593
+ event.preventDefault();
594
+ const currentRow = parentElement || currentCell.closest('tr');
595
+ const tableElement = containerElement || currentCell.closest('table');
596
+ const allCells = cellElements ||
597
+ Array.from((tableElement === null || tableElement === void 0 ? void 0 : tableElement.querySelectorAll('th, td')) || []);
598
+ const currentCellIndex = allCells.indexOf(currentCell);
599
+ const currentIndex = parseInt(currentCell.getAttribute('data-index') || '0');
600
+ let nextCell = undefined;
601
+ //home/end first or last cell in row
602
+ const findEdgeCell = (rowIndex, edge) => {
603
+ var _a;
604
+ const row = rowIndex === 'c'
605
+ ? currentRow
606
+ : rowIndex === 'f'
607
+ ? tableElement === null || tableElement === void 0 ? void 0 : tableElement.querySelector('tr')
608
+ : (_a = tableElement === null || tableElement === void 0 ? void 0 : tableElement.lastElementChild) === null || _a === void 0 ? void 0 : _a.lastElementChild;
609
+ const rowCells = Array.from((row === null || row === void 0 ? void 0 : row.children) || []);
610
+ const targetCell = edge === 'f' ? rowCells[0] : rowCells[rowCells.length - 1];
611
+ return targetCell;
612
+ };
613
+ //page up/down first or last cell in column
614
+ const findBottomTopCell = (columnIndex, edge) => {
615
+ var _a;
616
+ const row = edge === 't'
617
+ ? tableElement === null || tableElement === void 0 ? void 0 : tableElement.querySelector('tr')
618
+ : (_a = tableElement === null || tableElement === void 0 ? void 0 : tableElement.lastElementChild) === null || _a === void 0 ? void 0 : _a.lastElementChild;
619
+ const rowCells = Array.from((row === null || row === void 0 ? void 0 : row.children) || []);
620
+ const targetCell = rowCells[columnIndex];
621
+ return targetCell;
622
+ };
623
+ const findAdjacentCell = (columnIndex, searchDirection) => {
624
+ const searchArray = searchDirection === 'f'
625
+ ? allCells.slice(currentCellIndex + 1)
626
+ : allCells.slice(0, currentCellIndex).reverse();
627
+ return searchArray.find((cell) => cell.matches(`[data-index="${columnIndex}"]`));
628
+ };
629
+ switch (event.key) {
630
+ case 'ArrowRight':
631
+ nextCell = findAdjacentCell(currentIndex + 1, 'f');
632
+ break;
633
+ case 'ArrowLeft':
634
+ nextCell = findAdjacentCell(currentIndex - 1, 'b');
635
+ break;
636
+ case 'ArrowUp':
637
+ nextCell = findAdjacentCell(currentIndex, 'b');
638
+ break;
639
+ case 'ArrowDown':
640
+ nextCell = findAdjacentCell(currentIndex, 'f');
641
+ break;
642
+ case 'Home':
643
+ nextCell = findEdgeCell(isWinCtrlMacMeta(event) ? 'f' : 'c', 'f');
644
+ break;
645
+ case 'End':
646
+ nextCell = findEdgeCell(isWinCtrlMacMeta(event) ? 'l' : 'c', 'l');
647
+ break;
648
+ case 'PageUp':
649
+ nextCell = findBottomTopCell(currentIndex, 't');
650
+ break;
651
+ case 'PageDown':
652
+ nextCell = findBottomTopCell(currentIndex, 'b');
653
+ break;
654
+ }
655
+ if (nextCell) {
656
+ nextCell.focus();
657
+ }
658
+ }
659
+ };
660
+
661
+ function defaultDisplayColumnProps({ header, id, size, tableOptions, }) {
662
+ const { defaultDisplayColumn, displayColumnDefOptions, localization } = tableOptions;
663
+ return Object.assign(Object.assign(Object.assign(Object.assign({}, defaultDisplayColumn), { header: header ? localization[header] : '', size }), displayColumnDefOptions === null || displayColumnDefOptions === void 0 ? void 0 : displayColumnDefOptions[id]), { id });
664
+ }
665
+ const showRowPinningColumn = (tableOptions) => {
666
+ const { enableRowPinning, rowPinningDisplayMode } = tableOptions;
667
+ return !!(enableRowPinning && !(rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.startsWith('select')));
668
+ };
669
+ const showRowDragColumn = (tableOptions) => {
670
+ const { enableRowDragging, enableRowOrdering } = tableOptions;
671
+ return !!(enableRowDragging || enableRowOrdering);
672
+ };
673
+ const showRowExpandColumn = (tableOptions) => {
674
+ const { enableExpanding, enableGrouping, renderDetailPanel, state: { grouping }, } = tableOptions;
675
+ return !!(enableExpanding ||
676
+ (enableGrouping && (grouping === null || grouping === void 0 ? void 0 : grouping.length)) ||
677
+ renderDetailPanel);
678
+ };
679
+ const showRowActionsColumn = (tableOptions) => {
680
+ const { createDisplayMode, editDisplayMode, enableEditing, enableRowActions, state: { creatingRow }, } = tableOptions;
681
+ return !!(enableRowActions ||
682
+ (creatingRow && createDisplayMode === 'row') ||
683
+ (enableEditing && ['modal', 'row'].includes(editDisplayMode !== null && editDisplayMode !== void 0 ? editDisplayMode : '')));
684
+ };
685
+ const showRowSelectionColumn = (tableOptions) => !!tableOptions.enableRowSelection;
686
+ const showRowNumbersColumn = (tableOptions) => !!tableOptions.enableRowNumbers;
687
+ const showRowSpacerColumn = (tableOptions) => tableOptions.layoutMode === 'grid-no-grow';
688
+ const getLeadingDisplayColumnIds = (tableOptions) => [
689
+ showRowPinningColumn(tableOptions) && 'mrt-row-pin',
690
+ showRowDragColumn(tableOptions) && 'mrt-row-drag',
691
+ tableOptions.positionActionsColumn === 'first' &&
692
+ showRowActionsColumn(tableOptions) &&
693
+ 'mrt-row-actions',
694
+ tableOptions.positionExpandColumn === 'first' &&
695
+ showRowExpandColumn(tableOptions) &&
696
+ 'mrt-row-expand',
697
+ showRowSelectionColumn(tableOptions) && 'mrt-row-select',
698
+ showRowNumbersColumn(tableOptions) && 'mrt-row-numbers',
699
+ ].filter(Boolean);
700
+ const getTrailingDisplayColumnIds = (tableOptions) => [
701
+ tableOptions.positionActionsColumn === 'last' &&
702
+ showRowActionsColumn(tableOptions) &&
703
+ 'mrt-row-actions',
704
+ tableOptions.positionExpandColumn === 'last' &&
705
+ showRowExpandColumn(tableOptions) &&
706
+ 'mrt-row-expand',
707
+ showRowSpacerColumn(tableOptions) && 'mrt-row-spacer',
708
+ ].filter(Boolean);
709
+ const getDefaultColumnOrderIds = (tableOptions, reset = false) => {
710
+ const { state: { columnOrder: currentColumnOrderIds = [] }, } = tableOptions;
711
+ const leadingDisplayColIds = getLeadingDisplayColumnIds(tableOptions);
712
+ const trailingDisplayColIds = getTrailingDisplayColumnIds(tableOptions);
713
+ const defaultColumnDefIds = getAllLeafColumnDefs(tableOptions.columns).map((columnDef) => getColumnId(columnDef));
714
+ let allLeafColumnDefIds = reset
715
+ ? defaultColumnDefIds
716
+ : Array.from(new Set([...currentColumnOrderIds, ...defaultColumnDefIds]));
717
+ allLeafColumnDefIds = allLeafColumnDefIds.filter((colId) => !leadingDisplayColIds.includes(colId) &&
718
+ !trailingDisplayColIds.includes(colId));
719
+ return [
720
+ ...leadingDisplayColIds,
721
+ ...allLeafColumnDefIds,
722
+ ...trailingDisplayColIds,
723
+ ];
724
+ };
725
+
726
+ const MRT_AggregationFns = Object.assign({}, reactTable.aggregationFns);
727
+
728
+ const fuzzy = (row, columnId, filterValue, addMeta) => {
729
+ const itemRank = matchSorterUtils.rankItem(row.getValue(columnId), filterValue, {
730
+ threshold: matchSorterUtils.rankings.MATCHES,
731
+ });
732
+ addMeta(itemRank);
733
+ return itemRank.passed;
734
+ };
735
+ fuzzy.autoRemove = (val) => !val;
736
+ const contains = (row, id, filterValue) => row
737
+ .getValue(id)
738
+ .toString()
739
+ .toLowerCase()
740
+ .trim()
741
+ .includes(filterValue.toString().toLowerCase().trim());
742
+ contains.autoRemove = (val) => !val;
743
+ const startsWith = (row, id, filterValue) => row
744
+ .getValue(id)
745
+ .toString()
746
+ .toLowerCase()
747
+ .trim()
748
+ .startsWith(filterValue.toString().toLowerCase().trim());
749
+ startsWith.autoRemove = (val) => !val;
750
+ const endsWith = (row, id, filterValue) => row
751
+ .getValue(id)
752
+ .toString()
753
+ .toLowerCase()
754
+ .trim()
755
+ .endsWith(filterValue.toString().toLowerCase().trim());
756
+ endsWith.autoRemove = (val) => !val;
757
+ const equals = (row, id, filterValue) => row.getValue(id).toString().toLowerCase().trim() ===
758
+ (filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString().toLowerCase().trim());
759
+ equals.autoRemove = (val) => !val;
760
+ const notEquals = (row, id, filterValue) => row.getValue(id).toString().toLowerCase().trim() !==
761
+ filterValue.toString().toLowerCase().trim();
762
+ notEquals.autoRemove = (val) => !val;
763
+ const greaterThan = (row, id, filterValue) => !isNaN(+filterValue) && !isNaN(+row.getValue(id))
764
+ ? +row.getValue(id) > +filterValue
765
+ : row.getValue(id).toString().toLowerCase().trim() >
766
+ (filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString().toLowerCase().trim());
767
+ greaterThan.autoRemove = (val) => !val;
768
+ const greaterThanOrEqualTo = (row, id, filterValue) => equals(row, id, filterValue) || greaterThan(row, id, filterValue);
769
+ greaterThanOrEqualTo.autoRemove = (val) => !val;
770
+ const lessThan = (row, id, filterValue) => !isNaN(+filterValue) && !isNaN(+row.getValue(id))
771
+ ? +row.getValue(id) < +filterValue
772
+ : row.getValue(id).toString().toLowerCase().trim() <
773
+ (filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString().toLowerCase().trim());
774
+ lessThan.autoRemove = (val) => !val;
775
+ const lessThanOrEqualTo = (row, id, filterValue) => equals(row, id, filterValue) || lessThan(row, id, filterValue);
776
+ lessThanOrEqualTo.autoRemove = (val) => !val;
777
+ const between = (row, id, filterValues) => (['', undefined].includes(filterValues[0]) ||
778
+ greaterThan(row, id, filterValues[0])) &&
779
+ ((!isNaN(+filterValues[0]) &&
780
+ !isNaN(+filterValues[1]) &&
781
+ +filterValues[0] > +filterValues[1]) ||
782
+ ['', undefined].includes(filterValues[1]) ||
783
+ lessThan(row, id, filterValues[1]));
784
+ between.autoRemove = (val) => !val;
785
+ const betweenInclusive = (row, id, filterValues) => (['', undefined].includes(filterValues[0]) ||
786
+ greaterThanOrEqualTo(row, id, filterValues[0])) &&
787
+ ((!isNaN(+filterValues[0]) &&
788
+ !isNaN(+filterValues[1]) &&
789
+ +filterValues[0] > +filterValues[1]) ||
790
+ ['', undefined].includes(filterValues[1]) ||
791
+ lessThanOrEqualTo(row, id, filterValues[1]));
792
+ betweenInclusive.autoRemove = (val) => !val;
793
+ const empty = (row, id, _filterValue) => !row.getValue(id).toString().trim();
794
+ empty.autoRemove = (val) => !val;
795
+ const notEmpty = (row, id, _filterValue) => !!row.getValue(id).toString().trim();
796
+ notEmpty.autoRemove = (val) => !val;
797
+ const MRT_FilterFns = Object.assign(Object.assign({}, reactTable.filterFns), { between,
798
+ betweenInclusive,
799
+ contains,
800
+ empty,
801
+ endsWith,
802
+ equals,
803
+ fuzzy,
804
+ greaterThan,
805
+ greaterThanOrEqualTo,
806
+ lessThan,
807
+ lessThanOrEqualTo,
808
+ notEmpty,
809
+ notEquals,
810
+ startsWith });
811
+
812
+ /******************************************************************************
813
+ Copyright (c) Microsoft Corporation.
814
+
815
+ Permission to use, copy, modify, and/or distribute this software for any
816
+ purpose with or without fee is hereby granted.
817
+
818
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
819
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
820
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
821
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
822
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
823
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
824
+ PERFORMANCE OF THIS SOFTWARE.
825
+ ***************************************************************************** */
826
+
827
+ function __rest(s, e) {
828
+ var t = {};
829
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
830
+ t[p] = s[p];
831
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
832
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
833
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
834
+ t[p[i]] = s[p[i]];
835
+ }
836
+ return t;
837
+ }
838
+
839
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
840
+ var e = new Error(message);
841
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
842
+ };
843
+
844
+ const MRT_EditActionButtons = (_a) => {
845
+ var { row, table, variant = 'icon' } = _a, rest = __rest(_a, ["row", "table", "variant"]);
846
+ const { getState, options: { icons: { CancelIcon, SaveIcon }, localization, onCreatingRowCancel, onCreatingRowSave, onEditingRowCancel, onEditingRowSave, }, refs: { editInputRefs }, setCreatingRow, setEditingRow, } = table;
847
+ const { creatingRow, editingRow, isSaving } = getState();
848
+ const isCreating = (creatingRow === null || creatingRow === void 0 ? void 0 : creatingRow.id) === row.id;
849
+ const isEditing = (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) === row.id;
850
+ const handleCancel = () => {
851
+ if (isCreating) {
852
+ onCreatingRowCancel === null || onCreatingRowCancel === void 0 ? void 0 : onCreatingRowCancel({ row, table });
853
+ setCreatingRow(null);
854
+ }
855
+ else if (isEditing) {
856
+ onEditingRowCancel === null || onEditingRowCancel === void 0 ? void 0 : onEditingRowCancel({ row, table });
857
+ setEditingRow(null);
858
+ }
859
+ row._valuesCache = {}; //reset values cache
860
+ };
861
+ const handleSubmitRow = () => {
862
+ var _a;
863
+ //look for auto-filled input values
864
+ (_a = Object.values(editInputRefs === null || editInputRefs === void 0 ? void 0 : editInputRefs.current)
865
+ .filter((inputRef) => { var _a, _b; return row.id === ((_b = (_a = inputRef === null || inputRef === void 0 ? void 0 : inputRef.name) === null || _a === void 0 ? void 0 : _a.split('_')) === null || _b === void 0 ? void 0 : _b[0]); })) === null || _a === void 0 ? void 0 : _a.forEach((input) => {
866
+ if (input.value !== undefined &&
867
+ Object.hasOwn(row === null || row === void 0 ? void 0 : row._valuesCache, input.name)) {
868
+ // @ts-ignore
869
+ row._valuesCache[input.name] = input.value;
870
+ }
871
+ });
872
+ if (isCreating)
873
+ onCreatingRowSave === null || onCreatingRowSave === void 0 ? void 0 : onCreatingRowSave({
874
+ exitCreatingMode: () => setCreatingRow(null),
875
+ row,
876
+ table,
877
+ values: row._valuesCache,
878
+ });
879
+ else if (isEditing) {
880
+ onEditingRowSave === null || onEditingRowSave === void 0 ? void 0 : onEditingRowSave({
881
+ exitEditingMode: () => setEditingRow(null),
882
+ row,
883
+ table,
884
+ values: row === null || row === void 0 ? void 0 : row._valuesCache,
885
+ });
886
+ }
887
+ };
888
+ return (jsxRuntime.jsx(Box__default["default"], { onClick: (e) => e.stopPropagation(), sx: (theme) => (Object.assign({ display: 'flex', gap: '0.75rem' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: variant === 'icon' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], { title: localization.cancel, children: jsxRuntime.jsx(IconButton__default["default"], { "aria-label": localization.cancel, onClick: handleCancel, children: jsxRuntime.jsx(CancelIcon, {}) }) }), ((isCreating && onCreatingRowSave) ||
889
+ (isEditing && onEditingRowSave)) && (jsxRuntime.jsx(Tooltip__default["default"], { title: localization.save, children: jsxRuntime.jsx(IconButton__default["default"], { "aria-label": localization.save, color: "info", disabled: isSaving, onClick: handleSubmitRow, children: isSaving ? jsxRuntime.jsx(CircularProgress__default["default"], { size: 18 }) : jsxRuntime.jsx(SaveIcon, {}) }) }))] })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Button__default["default"], { onClick: handleCancel, sx: { minWidth: '100px' }, children: localization.cancel }), jsxRuntime.jsxs(Button__default["default"], { disabled: isSaving, onClick: handleSubmitRow, sx: { minWidth: '100px' }, variant: "contained", children: [isSaving && jsxRuntime.jsx(CircularProgress__default["default"], { color: "inherit", size: 18 }), localization.save] })] })) }));
890
+ };
891
+
892
+ const parseCSSVarId = (id) => id.replace(/[^a-zA-Z0-9]/g, '_');
893
+ const getMRTTheme = (mrtTheme, muiTheme) => {
894
+ var _a;
895
+ const mrtThemeOverrides = parseFromValuesOrFunc(mrtTheme, muiTheme);
896
+ const baseBackgroundColor = (_a = mrtThemeOverrides === null || mrtThemeOverrides === void 0 ? void 0 : mrtThemeOverrides.baseBackgroundColor) !== null && _a !== void 0 ? _a : (muiTheme.palette.mode === 'dark'
897
+ ? styles.lighten(muiTheme.palette.background.default, 0.05)
898
+ : muiTheme.palette.background.default);
899
+ return Object.assign({ baseBackgroundColor, draggingBorderColor: muiTheme.palette.primary.main, matchHighlightColor: muiTheme.palette.mode === 'dark'
900
+ ? styles.darken(muiTheme.palette.warning.dark, 0.25)
901
+ : styles.lighten(muiTheme.palette.warning.light, 0.5), menuBackgroundColor: styles.lighten(baseBackgroundColor, 0.07), pinnedRowBackgroundColor: styles.alpha(muiTheme.palette.primary.main, 0.1), selectedRowBackgroundColor: styles.alpha(muiTheme.palette.primary.main, 0.2) }, mrtThemeOverrides);
902
+ };
903
+ const commonCellBeforeAfterStyles = {
904
+ content: '""',
905
+ height: '100%',
906
+ left: 0,
907
+ position: 'absolute',
908
+ top: 0,
909
+ width: '100%',
910
+ zIndex: -1,
911
+ };
912
+ const getCommonPinnedCellStyles = ({ column, table, theme, }) => {
913
+ const { baseBackgroundColor } = table.options.mrtTheme;
914
+ const isPinned = column === null || column === void 0 ? void 0 : column.getIsPinned();
915
+ return {
916
+ '&[data-pinned="true"]': {
917
+ '&:before': Object.assign({ backgroundColor: styles.alpha(styles.darken(baseBackgroundColor, theme.palette.mode === 'dark' ? 0.05 : 0.01), 0.97), boxShadow: column
918
+ ? isPinned === 'left' && column.getIsLastColumn(isPinned)
919
+ ? `-4px 0 4px -4px ${styles.alpha(theme.palette.grey[700], 0.5)} inset`
920
+ : isPinned === 'right' && column.getIsFirstColumn(isPinned)
921
+ ? `4px 0 4px -4px ${styles.alpha(theme.palette.grey[700], 0.5)} inset`
922
+ : undefined
923
+ : undefined }, commonCellBeforeAfterStyles),
924
+ },
925
+ };
926
+ };
927
+ const getCommonMRTCellStyles = ({ column, header, table, tableCellProps, theme, }) => {
928
+ var _a, _b, _c, _d, _e, _f;
929
+ const { getState, options: { enableColumnVirtualization, layoutMode }, } = table;
930
+ const { draggingColumn } = getState();
931
+ const { columnDef } = column;
932
+ const { columnDefType } = columnDef;
933
+ const isColumnPinned = columnDef.columnDefType !== 'group' && column.getIsPinned();
934
+ const widthStyles = {
935
+ minWidth: `max(calc(var(--${header ? 'header' : 'col'}-${parseCSSVarId((_a = header === null || header === void 0 ? void 0 : header.id) !== null && _a !== void 0 ? _a : column.id)}-size) * 1px), ${(_b = columnDef.minSize) !== null && _b !== void 0 ? _b : 30}px)`,
936
+ width: `calc(var(--${header ? 'header' : 'col'}-${parseCSSVarId((_c = header === null || header === void 0 ? void 0 : header.id) !== null && _c !== void 0 ? _c : column.id)}-size) * 1px)`,
937
+ };
938
+ if (layoutMode === 'grid') {
939
+ widthStyles.flex = `${[0, false].includes(columnDef.grow)
940
+ ? 0
941
+ : `var(--${header ? 'header' : 'col'}-${parseCSSVarId((_d = header === null || header === void 0 ? void 0 : header.id) !== null && _d !== void 0 ? _d : column.id)}-size)`} 0 auto`;
942
+ }
943
+ else if (layoutMode === 'grid-no-grow') {
944
+ widthStyles.flex = `${+(columnDef.grow || 0)} 0 auto`;
945
+ }
946
+ const pinnedStyles = isColumnPinned
947
+ ? Object.assign(Object.assign({}, getCommonPinnedCellStyles({ column, table, theme })), { left: isColumnPinned === 'left'
948
+ ? `${column.getStart('left')}px`
949
+ : undefined, opacity: 0.97, position: 'sticky', right: isColumnPinned === 'right'
950
+ ? `${column.getAfter('right')}px`
951
+ : undefined }) : {};
952
+ return Object.assign(Object.assign(Object.assign({ backgroundColor: 'inherit', backgroundImage: 'inherit', display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'flex' : undefined, justifyContent: columnDefType === 'group'
953
+ ? 'center'
954
+ : (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid'))
955
+ ? tableCellProps.align
956
+ : undefined, opacity: ((_e = table.getState().draggingColumn) === null || _e === void 0 ? void 0 : _e.id) === column.id ||
957
+ ((_f = table.getState().hoveredColumn) === null || _f === void 0 ? void 0 : _f.id) === column.id
958
+ ? 0.5
959
+ : 1, position: 'relative', transition: enableColumnVirtualization
960
+ ? 'none'
961
+ : `padding 150ms ease-in-out`, zIndex: column.getIsResizing() || (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) === column.id
962
+ ? 2
963
+ : columnDefType !== 'group' && isColumnPinned
964
+ ? 1
965
+ : 0 }, pinnedStyles), widthStyles), parseFromValuesOrFunc(tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.sx, theme));
966
+ };
967
+ const getCommonToolbarStyles = ({ table, }) => ({
968
+ alignItems: 'flex-start',
969
+ backgroundColor: table.options.mrtTheme.baseBackgroundColor,
970
+ display: 'grid',
971
+ flexWrap: 'wrap-reverse',
972
+ minHeight: '3.5rem',
973
+ overflow: 'hidden',
974
+ position: 'relative',
975
+ transition: 'all 150ms ease-in-out',
976
+ zIndex: 1,
977
+ });
978
+ const flipIconStyles = (theme) => theme.direction === 'rtl'
979
+ ? { style: { transform: 'scaleX(-1)' } }
980
+ : undefined;
981
+ const getCommonTooltipProps = (placement) => ({
982
+ disableInteractive: true,
983
+ enterDelay: 1000,
984
+ enterNextDelay: 1000,
985
+ placement,
986
+ });
987
+
988
+ const MRT_ActionMenuItem = (_a) => {
989
+ var { icon, label, onOpenSubMenu, table } = _a, rest = __rest(_a, ["icon", "label", "onOpenSubMenu", "table"]);
990
+ const { options: { icons: { ArrowRightIcon }, }, } = table;
991
+ return (jsxRuntime.jsxs(MenuItem__default["default"], Object.assign({ sx: {
992
+ alignItems: 'center',
993
+ justifyContent: 'space-between',
994
+ minWidth: '120px',
995
+ my: 0,
996
+ py: '6px',
997
+ } }, rest, { children: [jsxRuntime.jsxs(Box__default["default"], { sx: {
998
+ alignItems: 'center',
999
+ display: 'flex',
1000
+ }, children: [jsxRuntime.jsx(ListItemIcon__default["default"], { children: icon }), label] }), onOpenSubMenu && (jsxRuntime.jsx(IconButton__default["default"], { onClick: onOpenSubMenu, onMouseEnter: onOpenSubMenu, size: "small", sx: { p: 0 }, children: jsxRuntime.jsx(ArrowRightIcon, {}) }))] })));
1001
+ };
1002
+
1003
+ const MRT_RowActionMenu = (_a) => {
1004
+ var { anchorEl, handleEdit, row, setAnchorEl, staticRowIndex, table } = _a, rest = __rest(_a, ["anchorEl", "handleEdit", "row", "setAnchorEl", "staticRowIndex", "table"]);
1005
+ const { getState, options: { editDisplayMode, enableEditing, icons: { EditIcon }, localization, mrtTheme: { menuBackgroundColor }, renderRowActionMenuItems, }, } = table;
1006
+ const { density } = getState();
1007
+ return (jsxRuntime.jsxs(Menu__default["default"], Object.assign({ MenuListProps: {
1008
+ dense: density === 'compact',
1009
+ sx: {
1010
+ backgroundColor: menuBackgroundColor,
1011
+ },
1012
+ }, anchorEl: anchorEl, disableScrollLock: true, onClick: (event) => event.stopPropagation(), onClose: () => setAnchorEl(null), open: !!anchorEl }, rest, { children: [parseFromValuesOrFunc(enableEditing, row) &&
1013
+ ['modal', 'row'].includes(editDisplayMode) && (jsxRuntime.jsx(MRT_ActionMenuItem, { icon: jsxRuntime.jsx(EditIcon, {}), label: localization.edit, onClick: handleEdit, table: table })), renderRowActionMenuItems === null || renderRowActionMenuItems === void 0 ? void 0 : renderRowActionMenuItems({
1014
+ closeMenu: () => setAnchorEl(null),
1015
+ row,
1016
+ staticRowIndex,
1017
+ table,
1018
+ })] })));
1019
+ };
1020
+
1021
+ const commonIconButtonStyles = {
1022
+ '&:hover': {
1023
+ opacity: 1,
1024
+ },
1025
+ height: '2rem',
1026
+ ml: '10px',
1027
+ opacity: 0.5,
1028
+ transition: 'opacity 150ms',
1029
+ width: '2rem',
1030
+ };
1031
+ const MRT_ToggleRowActionMenuButton = (_a) => {
1032
+ var { cell, row, staticRowIndex, table } = _a, rest = __rest(_a, ["cell", "row", "staticRowIndex", "table"]);
1033
+ const { getState, options: { createDisplayMode, editDisplayMode, enableEditing, icons: { EditIcon, MoreHorizIcon }, localization, renderRowActionMenuItems, renderRowActions, }, setEditingRow, } = table;
1034
+ const { creatingRow, editingRow } = getState();
1035
+ const isCreating = (creatingRow === null || creatingRow === void 0 ? void 0 : creatingRow.id) === row.id;
1036
+ const isEditing = (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) === row.id;
1037
+ const showEditActionButtons = (isCreating && createDisplayMode === 'row') ||
1038
+ (isEditing && editDisplayMode === 'row');
1039
+ const [anchorEl, setAnchorEl] = react.useState(null);
1040
+ const handleOpenRowActionMenu = (event) => {
1041
+ event.stopPropagation();
1042
+ event.preventDefault();
1043
+ setAnchorEl(event.currentTarget);
1044
+ };
1045
+ const handleStartEditMode = (event) => {
1046
+ event.stopPropagation();
1047
+ setEditingRow(Object.assign({}, row));
1048
+ setAnchorEl(null);
1049
+ };
1050
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: renderRowActions && !showEditActionButtons ? (renderRowActions({ cell, row, staticRowIndex, table })) : showEditActionButtons ? (jsxRuntime.jsx(MRT_EditActionButtons, { row: row, table: table })) : !renderRowActionMenuItems &&
1051
+ parseFromValuesOrFunc(enableEditing, row) &&
1052
+ ['modal', 'row'].includes(editDisplayMode) ? (jsxRuntime.jsx(Tooltip__default["default"], { placement: "right", title: localization.edit, children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.edit, onClick: handleStartEditMode, sx: commonIconButtonStyles }, rest, { children: jsxRuntime.jsx(EditIcon, {}) })) })) : renderRowActionMenuItems ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], Object.assign({}, getCommonTooltipProps(), { title: localization.rowActions, children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.rowActions, onClick: handleOpenRowActionMenu, size: "small", sx: commonIconButtonStyles }, rest, { children: jsxRuntime.jsx(MoreHorizIcon, {}) })) })), jsxRuntime.jsx(MRT_RowActionMenu, { anchorEl: anchorEl, handleEdit: handleStartEditMode, row: row, setAnchorEl: setAnchorEl, staticRowIndex: staticRowIndex, table: table })] })) : null }));
1053
+ };
1054
+
1055
+ const getMRT_RowActionsColumnDef = (tableOptions) => {
1056
+ return Object.assign({ Cell: ({ cell, row, staticRowIndex, table }) => (jsxRuntime.jsx(MRT_ToggleRowActionMenuButton, { cell: cell, row: row, staticRowIndex: staticRowIndex, table: table })) }, defaultDisplayColumnProps({
1057
+ header: 'actions',
1058
+ id: 'mrt-row-actions',
1059
+ size: 70,
1060
+ tableOptions,
1061
+ }));
1062
+ };
1063
+
1064
+ const MRT_GrabHandleButton = (_a) => {
1065
+ var _b, _c;
1066
+ var { location, table } = _a, rest = __rest(_a, ["location", "table"]);
1067
+ const { options: { icons: { DragHandleIcon }, localization, }, } = table;
1068
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({}, getCommonTooltipProps('top'), { title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.move, children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": (_c = rest.title) !== null && _c !== void 0 ? _c : localization.move, disableRipple: true, draggable: "true", size: "small" }, rest, { onClick: (e) => {
1069
+ var _a;
1070
+ e.stopPropagation();
1071
+ (_a = rest === null || rest === void 0 ? void 0 : rest.onClick) === null || _a === void 0 ? void 0 : _a.call(rest, e);
1072
+ }, sx: (theme) => (Object.assign({ '&:active': {
1073
+ cursor: 'grabbing',
1074
+ }, '&:hover': {
1075
+ backgroundColor: 'transparent',
1076
+ opacity: 1,
1077
+ }, cursor: 'grab', m: '0 -0.1rem', opacity: location === 'row' ? 1 : 0.5, p: '2px', transition: 'all 150ms ease-in-out' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), title: undefined, children: jsxRuntime.jsx(DragHandleIcon, {}) })) })));
1078
+ };
1079
+
1080
+ const MRT_TableBodyRowGrabHandle = (_a) => {
1081
+ var { row, rowRef, table } = _a, rest = __rest(_a, ["row", "rowRef", "table"]);
1082
+ const { options: { muiRowDragHandleProps }, } = table;
1083
+ const iconButtonProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiRowDragHandleProps, {
1084
+ row,
1085
+ table,
1086
+ })), rest);
1087
+ const handleDragStart = (event) => {
1088
+ var _a;
1089
+ (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onDragStart) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
1090
+ try {
1091
+ event.dataTransfer.setDragImage(rowRef.current, 0, 0);
1092
+ }
1093
+ catch (e) {
1094
+ console.error(e);
1095
+ }
1096
+ table.setDraggingRow(row);
1097
+ };
1098
+ const handleDragEnd = (event) => {
1099
+ var _a;
1100
+ (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onDragEnd) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
1101
+ table.setDraggingRow(null);
1102
+ table.setHoveredRow(null);
1103
+ };
1104
+ return (jsxRuntime.jsx(MRT_GrabHandleButton, Object.assign({}, iconButtonProps, { location: "row", onDragEnd: handleDragEnd, onDragStart: handleDragStart, table: table })));
1105
+ };
1106
+
1107
+ const getMRT_RowDragColumnDef = (tableOptions) => {
1108
+ return Object.assign({ Cell: ({ row, rowRef, table }) => (jsxRuntime.jsx(MRT_TableBodyRowGrabHandle, { row: row, rowRef: rowRef, table: table })), grow: false }, defaultDisplayColumnProps({
1109
+ header: 'move',
1110
+ id: 'mrt-row-drag',
1111
+ size: 60,
1112
+ tableOptions,
1113
+ }));
1114
+ };
1115
+
1116
+ const MRT_ExpandAllButton = (_a) => {
1117
+ var _b, _c;
1118
+ var { table } = _a, rest = __rest(_a, ["table"]);
1119
+ const { getCanSomeRowsExpand, getIsAllRowsExpanded, getIsSomeRowsExpanded, getState, options: { icons: { KeyboardDoubleArrowDownIcon }, localization, muiExpandAllButtonProps, renderDetailPanel, }, toggleAllRowsExpanded, } = table;
1120
+ const { density, isLoading } = getState();
1121
+ const iconButtonProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiExpandAllButtonProps, {
1122
+ table,
1123
+ })), rest);
1124
+ const isAllRowsExpanded = getIsAllRowsExpanded();
1125
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({}, getCommonTooltipProps(), { title: (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _b !== void 0 ? _b : (isAllRowsExpanded ? localization.collapseAll : 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', mt: density !== 'compact' ? '-0.25rem' : undefined, width: density === 'compact' ? '1.75rem' : '2.25rem' }, parseFromValuesOrFunc(iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx, theme))), title: undefined, children: (_c = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _c !== void 0 ? _c : (jsxRuntime.jsx(KeyboardDoubleArrowDownIcon, { style: {
1126
+ transform: `rotate(${isAllRowsExpanded ? -180 : getIsSomeRowsExpanded() ? -90 : 0}deg)`,
1127
+ transition: 'transform 150ms',
1128
+ } })) })) }) })));
1129
+ };
1130
+
1131
+ const MRT_ExpandButton = ({ row, staticRowIndex, table, }) => {
1132
+ var _a, _b;
1133
+ const theme = styles.useTheme();
1134
+ const { getState, options: { icons: { ExpandMoreIcon }, localization, muiExpandButtonProps, positionExpandColumn, renderDetailPanel, }, } = table;
1135
+ const { density } = getState();
1136
+ const iconButtonProps = parseFromValuesOrFunc(muiExpandButtonProps, {
1137
+ row,
1138
+ staticRowIndex,
1139
+ table,
1140
+ });
1141
+ const canExpand = row.getCanExpand();
1142
+ const isExpanded = row.getIsExpanded();
1143
+ const handleToggleExpand = (event) => {
1144
+ var _a;
1145
+ event.stopPropagation();
1146
+ row.toggleExpanded();
1147
+ (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
1148
+ };
1149
+ const detailPanel = !!(renderDetailPanel === null || renderDetailPanel === void 0 ? void 0 : renderDetailPanel({ row, table }));
1150
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({ disableHoverListener: !canExpand && !detailPanel }, getCommonTooltipProps(), { title: (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : (isExpanded ? localization.collapse : localization.expand), children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.expand, disabled: !canExpand && !detailPanel }, iconButtonProps, { onClick: handleToggleExpand, sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.25rem', opacity: !canExpand && !detailPanel ? 0.3 : 1, [theme.direction === 'rtl' || positionExpandColumn === 'last'
1151
+ ? 'mr'
1152
+ : 'ml']: `${row.depth * 16}px`, width: density === 'compact' ? '1.75rem' : '2.25rem' }, parseFromValuesOrFunc(iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx, theme))), title: undefined, children: (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _b !== void 0 ? _b : (jsxRuntime.jsx(ExpandMoreIcon, { style: {
1153
+ transform: `rotate(${!canExpand && !renderDetailPanel
1154
+ ? positionExpandColumn === 'last' ||
1155
+ theme.direction === 'rtl'
1156
+ ? 90
1157
+ : -90
1158
+ : isExpanded
1159
+ ? -180
1160
+ : 0}deg)`,
1161
+ transition: 'transform 150ms',
1162
+ } })) })) }) })));
1163
+ };
1164
+
1165
+ const getMRT_RowExpandColumnDef = (tableOptions) => {
1166
+ var _a;
1167
+ const { defaultColumn, enableExpandAll, groupedColumnMode, positionExpandColumn, renderDetailPanel, state: { grouping }, } = tableOptions;
1168
+ const alignProps = positionExpandColumn === 'last'
1169
+ ? {
1170
+ align: 'right',
1171
+ }
1172
+ : undefined;
1173
+ return Object.assign({ Cell: ({ cell, column, row, staticRowIndex, table }) => {
1174
+ var _a, _b, _c;
1175
+ const expandButtonProps = { row, staticRowIndex, table };
1176
+ const subRowsLength = (_a = row.subRows) === null || _a === void 0 ? void 0 : _a.length;
1177
+ if (groupedColumnMode === 'remove' && row.groupingColumnId) {
1178
+ return (jsxRuntime.jsxs(Stack__default["default"], { alignItems: "center", flexDirection: "row", gap: "0.25rem", children: [jsxRuntime.jsx(MRT_ExpandButton, Object.assign({}, expandButtonProps)), jsxRuntime.jsx(Tooltip__default["default"], Object.assign({}, getCommonTooltipProps('right'), { title: table.getColumn(row.groupingColumnId).columnDef.header, children: jsxRuntime.jsx("span", { children: row.groupingValue }) })), !!subRowsLength && jsxRuntime.jsxs("span", { children: ["(", subRowsLength, ")"] })] }));
1179
+ }
1180
+ else {
1181
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MRT_ExpandButton, Object.assign({}, expandButtonProps)), (_c = (_b = column.columnDef).GroupedCell) === null || _c === void 0 ? void 0 : _c.call(_b, { cell, column, row, table })] }));
1182
+ }
1183
+ }, Header: enableExpandAll
1184
+ ? ({ table }) => {
1185
+ var _a;
1186
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MRT_ExpandAllButton, { table: table }), groupedColumnMode === 'remove' &&
1187
+ ((_a = grouping === null || grouping === void 0 ? void 0 : grouping.map((groupedColumnId) => table.getColumn(groupedColumnId).columnDef.header)) === null || _a === void 0 ? void 0 : _a.join(', '))] }));
1188
+ }
1189
+ : undefined, muiTableBodyCellProps: alignProps, muiTableHeadCellProps: alignProps }, defaultDisplayColumnProps({
1190
+ header: 'expand',
1191
+ id: 'mrt-row-expand',
1192
+ size: groupedColumnMode === 'remove'
1193
+ ? ((_a = defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.size) !== null && _a !== void 0 ? _a : 180)
1194
+ : renderDetailPanel
1195
+ ? enableExpandAll
1196
+ ? 60
1197
+ : 70
1198
+ : 100,
1199
+ tableOptions,
1200
+ }));
1201
+ };
1202
+
1203
+ const getMRT_RowNumbersColumnDef = (tableOptions) => {
1204
+ const { localization, rowNumberDisplayMode } = tableOptions;
1205
+ const { pagination: { pageIndex, pageSize }, } = tableOptions.state;
1206
+ return Object.assign({ Cell: ({ row, staticRowIndex }) => {
1207
+ var _a;
1208
+ return ((_a = (rowNumberDisplayMode === 'static'
1209
+ ? (staticRowIndex || 0) + (pageSize || 0) * (pageIndex || 0)
1210
+ : row.index)) !== null && _a !== void 0 ? _a : 0) + 1;
1211
+ }, Header: () => localization.rowNumber, grow: false }, defaultDisplayColumnProps({
1212
+ header: 'rowNumbers',
1213
+ id: 'mrt-row-numbers',
1214
+ size: 50,
1215
+ tableOptions,
1216
+ }));
1217
+ };
1218
+
1219
+ const MRT_RowPinButton = (_a) => {
1220
+ var { pinningPosition, row, table } = _a, rest = __rest(_a, ["pinningPosition", "row", "table"]);
1221
+ const { options: { icons: { CloseIcon, PushPinIcon }, localization, rowPinningDisplayMode, }, } = table;
1222
+ const isPinned = row.getIsPinned();
1223
+ const [tooltipOpened, setTooltipOpened] = react.useState(false);
1224
+ const handleTogglePin = (event) => {
1225
+ setTooltipOpened(false);
1226
+ event.stopPropagation();
1227
+ row.pin(isPinned ? false : pinningPosition);
1228
+ };
1229
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({}, getCommonTooltipProps(), { open: tooltipOpened, title: isPinned ? localization.unpin : localization.pin, children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.pin, onClick: handleTogglePin, onMouseEnter: () => setTooltipOpened(true), onMouseLeave: () => setTooltipOpened(false), size: "small" }, rest, { sx: (theme) => (Object.assign({ height: '24px', width: '24px' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: isPinned ? (jsxRuntime.jsx(CloseIcon, {})) : (jsxRuntime.jsx(PushPinIcon, { fontSize: "small", style: {
1230
+ transform: `rotate(${rowPinningDisplayMode === 'sticky'
1231
+ ? 135
1232
+ : pinningPosition === 'top'
1233
+ ? 180
1234
+ : 0}deg)`,
1235
+ } })) })) })));
1236
+ };
1237
+
1238
+ const MRT_TableBodyRowPinButton = (_a) => {
1239
+ var { row, table } = _a, rest = __rest(_a, ["row", "table"]);
1240
+ const { getState, options: { enableRowPinning, rowPinningDisplayMode }, } = table;
1241
+ const { density } = getState();
1242
+ const canPin = parseFromValuesOrFunc(enableRowPinning, row);
1243
+ if (!canPin)
1244
+ return null;
1245
+ const rowPinButtonProps = Object.assign({ row,
1246
+ table }, rest);
1247
+ if (rowPinningDisplayMode === 'top-and-bottom' && !row.getIsPinned()) {
1248
+ return (jsxRuntime.jsxs(Box__default["default"], { sx: {
1249
+ display: 'flex',
1250
+ flexDirection: density === 'compact' ? 'row' : 'column',
1251
+ }, children: [jsxRuntime.jsx(MRT_RowPinButton, Object.assign({ pinningPosition: "top" }, rowPinButtonProps)), jsxRuntime.jsx(MRT_RowPinButton, Object.assign({ pinningPosition: "bottom" }, rowPinButtonProps))] }));
1252
+ }
1253
+ return (jsxRuntime.jsx(MRT_RowPinButton, Object.assign({ pinningPosition: rowPinningDisplayMode === 'bottom' ? 'bottom' : 'top' }, rowPinButtonProps)));
1254
+ };
1255
+
1256
+ const getMRT_RowPinningColumnDef = (tableOptions) => {
1257
+ return Object.assign({ Cell: ({ row, table }) => (jsxRuntime.jsx(MRT_TableBodyRowPinButton, { row: row, table: table })), grow: false }, defaultDisplayColumnProps({
1258
+ header: 'pin',
1259
+ id: 'mrt-row-pin',
1260
+ size: 60,
1261
+ tableOptions,
1262
+ }));
1263
+ };
1264
+
1265
+ const MRT_SelectCheckbox = (_a) => {
1266
+ var _b;
1267
+ var { row, staticRowIndex, table } = _a, rest = __rest(_a, ["row", "staticRowIndex", "table"]);
1268
+ const { getState, options: { enableMultiRowSelection, localization, muiSelectAllCheckboxProps, muiSelectCheckboxProps, selectAllMode, }, } = table;
1269
+ const { density, isLoading } = getState();
1270
+ const selectAll = !row;
1271
+ const allRowsSelected = selectAll
1272
+ ? selectAllMode === 'page'
1273
+ ? table.getIsAllPageRowsSelected()
1274
+ : table.getIsAllRowsSelected()
1275
+ : undefined;
1276
+ const isChecked = selectAll
1277
+ ? allRowsSelected
1278
+ : getIsRowSelected({ row, table });
1279
+ const checkboxProps = Object.assign(Object.assign({}, (selectAll
1280
+ ? parseFromValuesOrFunc(muiSelectAllCheckboxProps, { table })
1281
+ : parseFromValuesOrFunc(muiSelectCheckboxProps, {
1282
+ row,
1283
+ staticRowIndex,
1284
+ table,
1285
+ }))), rest);
1286
+ const onSelectionChange = row
1287
+ ? getMRT_RowSelectionHandler({
1288
+ row,
1289
+ staticRowIndex,
1290
+ table,
1291
+ })
1292
+ : undefined;
1293
+ const onSelectAllChange = getMRT_SelectAllHandler({ table });
1294
+ const commonProps = Object.assign(Object.assign({ 'aria-label': selectAll
1295
+ ? localization.toggleSelectAll
1296
+ : localization.toggleSelectRow, checked: isChecked, disabled: isLoading || (row && !row.getCanSelect()) || (row === null || row === void 0 ? void 0 : row.id) === 'mrt-row-create', inputProps: {
1297
+ 'aria-label': selectAll
1298
+ ? localization.toggleSelectAll
1299
+ : localization.toggleSelectRow,
1300
+ }, onChange: (event) => {
1301
+ event.stopPropagation();
1302
+ selectAll ? onSelectAllChange(event) : onSelectionChange(event);
1303
+ }, size: (density === 'compact' ? 'small' : 'medium') }, checkboxProps), { onClick: (e) => {
1304
+ var _a;
1305
+ e.stopPropagation();
1306
+ (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a === void 0 ? void 0 : _a.call(checkboxProps, e);
1307
+ }, sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.5rem', m: density !== 'compact' ? '-0.4rem' : undefined, width: density === 'compact' ? '1.75rem' : '2.5rem', zIndex: 0 }, parseFromValuesOrFunc(checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx, theme))), title: undefined });
1308
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({}, getCommonTooltipProps(), { title: (_b = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _b !== void 0 ? _b : (selectAll
1309
+ ? localization.toggleSelectAll
1310
+ : localization.toggleSelectRow), children: enableMultiRowSelection === false ? (jsxRuntime.jsx(Radio__default["default"], Object.assign({}, commonProps))) : (jsxRuntime.jsx(Checkbox__default["default"], Object.assign({ indeterminate: !isChecked && selectAll
1311
+ ? table.getIsSomeRowsSelected()
1312
+ : (row === null || row === void 0 ? void 0 : row.getIsSomeSelected()) && row.getCanSelectSubRows() }, commonProps))) })));
1313
+ };
1314
+
1315
+ const getMRT_RowSelectColumnDef = (tableOptions) => {
1316
+ const { enableMultiRowSelection, enableSelectAll } = tableOptions;
1317
+ return Object.assign({ Cell: ({ row, staticRowIndex, table }) => (jsxRuntime.jsx(MRT_SelectCheckbox, { row: row, staticRowIndex: staticRowIndex, table: table })), Header: enableSelectAll && enableMultiRowSelection
1318
+ ? ({ table }) => jsxRuntime.jsx(MRT_SelectCheckbox, { table: table })
1319
+ : undefined, grow: false }, defaultDisplayColumnProps({
1320
+ header: 'select',
1321
+ id: 'mrt-row-select',
1322
+ size: enableSelectAll ? 60 : 70,
1323
+ tableOptions,
1324
+ }));
1325
+ };
1326
+
1327
+ const MRT_Default_Icons = {
1328
+ ArrowDownwardIcon: ArrowDownwardIcon__default["default"],
1329
+ ArrowRightIcon: ArrowRightIcon__default["default"],
1330
+ CancelIcon: CancelIcon__default["default"],
1331
+ ChevronLeftIcon: ChevronLeftIcon__default["default"],
1332
+ ChevronRightIcon: ChevronRightIcon__default["default"],
1333
+ ClearAllIcon: ClearAllIcon__default["default"],
1334
+ CloseIcon: CloseIcon__default["default"],
1335
+ ContentCopy: ContentCopy__default["default"],
1336
+ DensityLargeIcon: DensityLargeIcon__default["default"],
1337
+ DensityMediumIcon: DensityMediumIcon__default["default"],
1338
+ DensitySmallIcon: DensitySmallIcon__default["default"],
1339
+ DragHandleIcon: DragHandleIcon__default["default"],
1340
+ DynamicFeedIcon: DynamicFeedIcon__default["default"],
1341
+ EditIcon: EditIcon__default["default"],
1342
+ ExpandMoreIcon: ExpandMoreIcon__default["default"],
1343
+ FilterAltIcon: FilterAltIcon__default["default"],
1344
+ FilterListIcon: FilterListIcon__default["default"],
1345
+ FilterListOffIcon: FilterListOffIcon__default["default"],
1346
+ FirstPageIcon: FirstPageIcon__default["default"],
1347
+ FullscreenExitIcon: FullscreenExitIcon__default["default"],
1348
+ FullscreenIcon: FullscreenIcon__default["default"],
1349
+ KeyboardDoubleArrowDownIcon: KeyboardDoubleArrowDownIcon__default["default"],
1350
+ LastPageIcon: LastPageIcon__default["default"],
1351
+ MoreHorizIcon: MoreHorizIcon__default["default"],
1352
+ MoreVertIcon: MoreVertIcon__default["default"],
1353
+ PushPinIcon: PushPinIcon__default["default"],
1354
+ RestartAltIcon: RestartAltIcon__default["default"],
1355
+ SaveIcon: SaveIcon__default["default"],
1356
+ SearchIcon: SearchIcon__default["default"],
1357
+ SearchOffIcon: SearchOffIcon__default["default"],
1358
+ SortIcon: SortIcon__default["default"],
1359
+ SyncAltIcon: SyncAltIcon__default["default"],
1360
+ ViewColumnIcon: ViewColumnIcon__default["default"],
1361
+ VisibilityOffIcon: VisibilityOffIcon__default["default"],
1362
+ };
1363
+
1364
+ const MRT_Localization_EN = {
1365
+ actions: 'Actions',
1366
+ and: 'and',
1367
+ cancel: 'Cancel',
1368
+ changeFilterMode: 'Change filter mode',
1369
+ changeSearchMode: 'Change search mode',
1370
+ clearFilter: 'Clear filter',
1371
+ clearSearch: 'Clear search',
1372
+ clearSelection: 'Clear selection',
1373
+ clearSort: 'Clear sort',
1374
+ clickToCopy: 'Click to copy',
1375
+ copy: 'Copy',
1376
+ collapse: 'Collapse',
1377
+ collapseAll: 'Collapse all',
1378
+ columnActions: 'Column Actions',
1379
+ copiedToClipboard: 'Copied to clipboard',
1380
+ dropToGroupBy: 'Drop to group by {column}',
1381
+ edit: 'Edit',
1382
+ expand: 'Expand',
1383
+ expandAll: 'Expand all',
1384
+ filterArrIncludes: 'Includes',
1385
+ filterArrIncludesAll: 'Includes all',
1386
+ filterArrIncludesSome: 'Includes',
1387
+ filterBetween: 'Between',
1388
+ filterBetweenInclusive: 'Between Inclusive',
1389
+ filterByColumn: 'Filter by {column}',
1390
+ filterContains: 'Contains',
1391
+ filterEmpty: 'Empty',
1392
+ filterEndsWith: 'Ends With',
1393
+ filterEquals: 'Equals',
1394
+ filterEqualsString: 'Equals',
1395
+ filterFuzzy: 'Fuzzy',
1396
+ filterGreaterThan: 'Greater Than',
1397
+ filterGreaterThanOrEqualTo: 'Greater Than Or Equal To',
1398
+ filterInNumberRange: 'Between',
1399
+ filterIncludesString: 'Contains',
1400
+ filterIncludesStringSensitive: 'Contains',
1401
+ filterLessThan: 'Less Than',
1402
+ filterLessThanOrEqualTo: 'Less Than Or Equal To',
1403
+ filterMode: 'Filter Mode: {filterType}',
1404
+ filterNotEmpty: 'Not Empty',
1405
+ filterNotEquals: 'Not Equals',
1406
+ filterStartsWith: 'Starts With',
1407
+ filterWeakEquals: 'Equals',
1408
+ filteringByColumn: 'Filtering by {column} - {filterType} {filterValue}',
1409
+ goToFirstPage: 'Go to first page',
1410
+ goToLastPage: 'Go to last page',
1411
+ goToNextPage: 'Go to next page',
1412
+ goToPreviousPage: 'Go to previous page',
1413
+ grab: 'Grab',
1414
+ groupByColumn: 'Group by {column}',
1415
+ groupedBy: 'Grouped by ',
1416
+ hideAll: 'Hide all',
1417
+ hideColumn: 'Hide {column} column',
1418
+ max: 'Max',
1419
+ min: 'Min',
1420
+ move: 'Move',
1421
+ noRecordsToDisplay: 'No records to display',
1422
+ noResultsFound: 'No results found',
1423
+ of: 'of',
1424
+ or: 'or',
1425
+ pin: 'Pin',
1426
+ pinToLeft: 'Pin to left',
1427
+ pinToRight: 'Pin to right',
1428
+ resetColumnSize: 'Reset column size',
1429
+ resetOrder: 'Reset order',
1430
+ rowActions: 'Row Actions',
1431
+ rowNumber: '#',
1432
+ rowNumbers: 'Row Numbers',
1433
+ rowsPerPage: 'Rows per page',
1434
+ save: 'Save',
1435
+ search: 'Search',
1436
+ selectedCountOfRowCountRowsSelected: '{selectedCount} of {rowCount} row(s) selected',
1437
+ select: 'Select',
1438
+ showAll: 'Show all',
1439
+ showAllColumns: 'Show all columns',
1440
+ showHideColumns: 'Show/Hide columns',
1441
+ showHideFilters: 'Show/Hide filters',
1442
+ showHideSearch: 'Show/Hide search',
1443
+ sortByColumnAsc: 'Sort by {column} ascending',
1444
+ sortByColumnDesc: 'Sort by {column} descending',
1445
+ sortedByColumnAsc: 'Sorted by {column} ascending',
1446
+ sortedByColumnDesc: 'Sorted by {column} descending',
1447
+ thenBy: ', then by ',
1448
+ toggleDensity: 'Toggle density',
1449
+ toggleFullScreen: 'Toggle full screen',
1450
+ toggleSelectAll: 'Toggle select all',
1451
+ toggleSelectRow: 'Toggle select row',
1452
+ toggleVisibility: 'Toggle visibility',
1453
+ ungroupByColumn: 'Ungroup by {column}',
1454
+ unpin: 'Unpin',
1455
+ unpinAll: 'Unpin all',
1456
+ };
1457
+
1458
+ const MRT_DefaultColumn = {
1459
+ filterVariant: 'text',
1460
+ maxSize: 1000,
1461
+ minSize: 40,
1462
+ size: 180,
1463
+ };
1464
+ const MRT_DefaultDisplayColumn = {
1465
+ columnDefType: 'display',
1466
+ enableClickToCopy: false,
1467
+ enableColumnActions: false,
1468
+ enableColumnDragging: false,
1469
+ enableColumnFilter: false,
1470
+ enableColumnOrdering: false,
1471
+ enableEditing: false,
1472
+ enableGlobalFilter: false,
1473
+ enableGrouping: false,
1474
+ enableHiding: false,
1475
+ enableResizing: false,
1476
+ enableSorting: false,
1477
+ };
1478
+ const useMRT_TableOptions = (_a) => {
1479
+ var _b;
1480
+ var { aggregationFns, autoResetExpanded = false, columnFilterDisplayMode = 'subheader', columnResizeDirection, columnResizeMode = 'onChange', createDisplayMode = 'modal', defaultColumn, defaultDisplayColumn, editDisplayMode = 'modal', enableBatchRowSelection = true, enableBottomToolbar = true, enableColumnActions = true, enableColumnFilters = true, enableColumnOrdering = false, enableColumnPinning = false, enableColumnResizing = false, enableColumnVirtualization, enableDensityToggle = true, enableExpandAll = true, enableExpanding, enableFacetedValues = false, enableFilterMatchHighlighting = true, enableFilters = true, enableFullScreenToggle = true, enableGlobalFilter = true, enableGlobalFilterRankedResults = true, enableGrouping = false, enableHiding = true, enableMultiRowSelection = true, enableKeyboardShortcuts = true, enableMultiSort = true, enablePagination = true, enableRowPinning = false, enableRowSelection = false, enableRowVirtualization, enableSelectAll = true, enableSorting = true, enableStickyHeader = false, enableTableFooter = true, enableTableHead = true, enableToolbarInternalActions = true, enableTopToolbar = true, filterFns, icons, layoutMode, localization, manualFiltering, manualGrouping, manualPagination, manualSorting, mrtTheme, paginationDisplayMode = 'default', positionActionsColumn = 'first', positionCreatingRow = 'top', positionExpandColumn = 'first', positionGlobalFilter = 'right', positionPagination = 'bottom', positionToolbarAlertBanner = 'top', positionToolbarDropZone = 'top', rowNumberDisplayMode = 'static', rowPinningDisplayMode = 'sticky', selectAllMode = 'page', sortingFns } = _a, rest = __rest(_a, ["aggregationFns", "autoResetExpanded", "columnFilterDisplayMode", "columnResizeDirection", "columnResizeMode", "createDisplayMode", "defaultColumn", "defaultDisplayColumn", "editDisplayMode", "enableBatchRowSelection", "enableBottomToolbar", "enableColumnActions", "enableColumnFilters", "enableColumnOrdering", "enableColumnPinning", "enableColumnResizing", "enableColumnVirtualization", "enableDensityToggle", "enableExpandAll", "enableExpanding", "enableFacetedValues", "enableFilterMatchHighlighting", "enableFilters", "enableFullScreenToggle", "enableGlobalFilter", "enableGlobalFilterRankedResults", "enableGrouping", "enableHiding", "enableMultiRowSelection", "enableKeyboardShortcuts", "enableMultiSort", "enablePagination", "enableRowPinning", "enableRowSelection", "enableRowVirtualization", "enableSelectAll", "enableSorting", "enableStickyHeader", "enableTableFooter", "enableTableHead", "enableToolbarInternalActions", "enableTopToolbar", "filterFns", "icons", "layoutMode", "localization", "manualFiltering", "manualGrouping", "manualPagination", "manualSorting", "mrtTheme", "paginationDisplayMode", "positionActionsColumn", "positionCreatingRow", "positionExpandColumn", "positionGlobalFilter", "positionPagination", "positionToolbarAlertBanner", "positionToolbarDropZone", "rowNumberDisplayMode", "rowPinningDisplayMode", "selectAllMode", "sortingFns"]);
1481
+ const theme = styles.useTheme();
1482
+ icons = react.useMemo(() => (Object.assign(Object.assign({}, MRT_Default_Icons), icons)), [icons]);
1483
+ localization = react.useMemo(() => (Object.assign(Object.assign({}, MRT_Localization_EN), localization)), [localization]);
1484
+ mrtTheme = react.useMemo(() => getMRTTheme(mrtTheme, theme), [mrtTheme, theme]);
1485
+ aggregationFns = react.useMemo(() => (Object.assign(Object.assign({}, MRT_AggregationFns), aggregationFns)), []);
1486
+ filterFns = react.useMemo(() => (Object.assign(Object.assign({}, MRT_FilterFns), filterFns)), []);
1487
+ sortingFns = react.useMemo(() => (Object.assign(Object.assign({}, MRT_SortingFns), sortingFns)), []);
1488
+ defaultColumn = react.useMemo(() => (Object.assign(Object.assign({}, MRT_DefaultColumn), defaultColumn)), [defaultColumn]);
1489
+ defaultDisplayColumn = react.useMemo(() => (Object.assign(Object.assign({}, MRT_DefaultDisplayColumn), defaultDisplayColumn)), [defaultDisplayColumn]);
1490
+ //cannot be changed after initialization
1491
+ [enableColumnVirtualization, enableRowVirtualization] = react.useMemo(() => [enableColumnVirtualization, enableRowVirtualization], []);
1492
+ if (!columnResizeDirection) {
1493
+ columnResizeDirection = theme.direction || 'ltr';
1494
+ }
1495
+ layoutMode =
1496
+ layoutMode || (enableColumnResizing ? 'grid-no-grow' : 'semantic');
1497
+ if (layoutMode === 'semantic' &&
1498
+ (enableRowVirtualization || enableColumnVirtualization)) {
1499
+ layoutMode = 'grid';
1500
+ }
1501
+ if (enableRowVirtualization) {
1502
+ enableStickyHeader = true;
1503
+ }
1504
+ if (enablePagination === false && manualPagination === undefined) {
1505
+ manualPagination = true;
1506
+ }
1507
+ if (!((_b = rest.data) === null || _b === void 0 ? void 0 : _b.length)) {
1508
+ manualFiltering = true;
1509
+ manualGrouping = true;
1510
+ manualPagination = true;
1511
+ manualSorting = true;
1512
+ }
1513
+ return Object.assign({ aggregationFns,
1514
+ autoResetExpanded,
1515
+ columnFilterDisplayMode,
1516
+ columnResizeDirection,
1517
+ columnResizeMode,
1518
+ createDisplayMode,
1519
+ defaultColumn,
1520
+ defaultDisplayColumn,
1521
+ editDisplayMode,
1522
+ enableBatchRowSelection,
1523
+ enableBottomToolbar,
1524
+ enableColumnActions,
1525
+ enableColumnFilters,
1526
+ enableColumnOrdering,
1527
+ enableColumnPinning,
1528
+ enableColumnResizing,
1529
+ enableColumnVirtualization,
1530
+ enableDensityToggle,
1531
+ enableExpandAll,
1532
+ enableExpanding,
1533
+ enableFacetedValues,
1534
+ enableFilterMatchHighlighting,
1535
+ enableFilters,
1536
+ enableFullScreenToggle,
1537
+ enableGlobalFilter,
1538
+ enableGlobalFilterRankedResults,
1539
+ enableGrouping,
1540
+ enableHiding,
1541
+ enableMultiRowSelection,
1542
+ enableKeyboardShortcuts,
1543
+ enableMultiSort,
1544
+ enablePagination,
1545
+ enableRowPinning,
1546
+ enableRowSelection,
1547
+ enableRowVirtualization,
1548
+ enableSelectAll,
1549
+ enableSorting,
1550
+ enableStickyHeader,
1551
+ enableTableFooter,
1552
+ enableTableHead,
1553
+ enableToolbarInternalActions,
1554
+ enableTopToolbar,
1555
+ filterFns, getCoreRowModel: reactTable.getCoreRowModel(), getExpandedRowModel: enableExpanding || enableGrouping ? reactTable.getExpandedRowModel() : undefined, getFacetedMinMaxValues: enableFacetedValues
1556
+ ? reactTable.getFacetedMinMaxValues()
1557
+ : undefined, getFacetedRowModel: enableFacetedValues ? reactTable.getFacetedRowModel() : undefined, getFacetedUniqueValues: enableFacetedValues
1558
+ ? reactTable.getFacetedUniqueValues()
1559
+ : undefined, getFilteredRowModel: (enableColumnFilters || enableGlobalFilter || enableFilters) &&
1560
+ !manualFiltering
1561
+ ? reactTable.getFilteredRowModel()
1562
+ : undefined, getGroupedRowModel: enableGrouping && !manualGrouping ? reactTable.getGroupedRowModel() : undefined, getPaginationRowModel: enablePagination && !manualPagination
1563
+ ? reactTable.getPaginationRowModel()
1564
+ : undefined, getSortedRowModel: enableSorting && !manualSorting ? reactTable.getSortedRowModel() : undefined, getSubRows: (row) => row === null || row === void 0 ? void 0 : row.subRows, icons,
1565
+ layoutMode,
1566
+ localization,
1567
+ manualFiltering,
1568
+ manualGrouping,
1569
+ manualPagination,
1570
+ manualSorting,
1571
+ mrtTheme,
1572
+ paginationDisplayMode,
1573
+ positionActionsColumn,
1574
+ positionCreatingRow,
1575
+ positionExpandColumn,
1576
+ positionGlobalFilter,
1577
+ positionPagination,
1578
+ positionToolbarAlertBanner,
1579
+ positionToolbarDropZone,
1580
+ rowNumberDisplayMode,
1581
+ rowPinningDisplayMode,
1582
+ selectAllMode,
1583
+ sortingFns }, rest);
1584
+ };
1585
+
1586
+ const blankColProps = {
1587
+ children: null,
1588
+ sx: {
1589
+ minWidth: 0,
1590
+ p: 0,
1591
+ width: 0,
1592
+ },
1593
+ };
1594
+ const getMRT_RowSpacerColumnDef = (tableOptions) => {
1595
+ return Object.assign(Object.assign(Object.assign(Object.assign({}, defaultDisplayColumnProps({
1596
+ id: 'mrt-row-spacer',
1597
+ size: 0,
1598
+ tableOptions,
1599
+ })), { grow: true }), MRT_DefaultDisplayColumn), { muiTableBodyCellProps: blankColProps, muiTableFooterCellProps: blankColProps, muiTableHeadCellProps: blankColProps });
1600
+ };
1601
+
1602
+ const useMRT_Effects = (table) => {
1603
+ const { getIsSomeRowsPinned, getPrePaginationRowModel, getState, options: { enablePagination, enableRowPinning, rowCount }, } = table;
1604
+ const { columnOrder, density, globalFilter, isFullScreen, isLoading, pagination, showSkeletons, sorting, } = getState();
1605
+ const totalColumnCount = table.options.columns.length;
1606
+ const totalRowCount = rowCount !== null && rowCount !== void 0 ? rowCount : getPrePaginationRowModel().rows.length;
1607
+ const rerender = react.useReducer(() => ({}), {})[1];
1608
+ const initialBodyHeight = react.useRef();
1609
+ const previousTop = react.useRef();
1610
+ react.useEffect(() => {
1611
+ if (typeof window !== 'undefined') {
1612
+ initialBodyHeight.current = document.body.style.height;
1613
+ }
1614
+ }, []);
1615
+ //hide scrollbars when table is in full screen mode, preserve body scroll position after full screen exit
1616
+ react.useEffect(() => {
1617
+ if (typeof window !== 'undefined') {
1618
+ if (isFullScreen) {
1619
+ previousTop.current = document.body.getBoundingClientRect().top; //save scroll position
1620
+ document.body.style.height = '100dvh'; //hide page scrollbars when table is in full screen mode
1621
+ }
1622
+ else {
1623
+ document.body.style.height = initialBodyHeight.current;
1624
+ if (!previousTop.current)
1625
+ return;
1626
+ //restore scroll position
1627
+ window.scrollTo({
1628
+ behavior: 'instant',
1629
+ top: -1 * previousTop.current,
1630
+ });
1631
+ }
1632
+ }
1633
+ }, [isFullScreen]);
1634
+ //recalculate column order when columns change or features are toggled on/off
1635
+ react.useEffect(() => {
1636
+ if (totalColumnCount !== columnOrder.length) {
1637
+ table.setColumnOrder(getDefaultColumnOrderIds(table.options));
1638
+ }
1639
+ }, [totalColumnCount]);
1640
+ //if page index is out of bounds, set it to the last page
1641
+ react.useEffect(() => {
1642
+ if (!enablePagination || isLoading || showSkeletons)
1643
+ return;
1644
+ const { pageIndex, pageSize } = pagination;
1645
+ const firstVisibleRowIndex = pageIndex * pageSize;
1646
+ if (firstVisibleRowIndex >= totalRowCount) {
1647
+ table.setPageIndex(Math.ceil(totalRowCount / pageSize) - 1);
1648
+ }
1649
+ }, [totalRowCount]);
1650
+ //turn off sort when global filter is looking for ranked results
1651
+ const appliedSort = react.useRef(sorting);
1652
+ react.useEffect(() => {
1653
+ if (sorting.length) {
1654
+ appliedSort.current = sorting;
1655
+ }
1656
+ }, [sorting]);
1657
+ react.useEffect(() => {
1658
+ if (!getCanRankRows(table))
1659
+ return;
1660
+ if (globalFilter) {
1661
+ table.setSorting([]);
1662
+ }
1663
+ else {
1664
+ table.setSorting(() => appliedSort.current || []);
1665
+ }
1666
+ }, [globalFilter]);
1667
+ //fix pinned row top style when density changes
1668
+ react.useEffect(() => {
1669
+ if (enableRowPinning && getIsSomeRowsPinned()) {
1670
+ setTimeout(() => {
1671
+ rerender();
1672
+ }, 150);
1673
+ }
1674
+ }, [density]);
1675
+ };
1676
+
1677
+ /**
1678
+ * The MRT hook that wraps the TanStack useReactTable hook and adds additional functionality
1679
+ * @param definedTableOptions - table options with proper defaults set
1680
+ * @returns the MRT table instance
1681
+ */
1682
+ const useMRT_TableInstance = (definedTableOptions) => {
1683
+ 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;
1684
+ const lastSelectedRowId = react.useRef(null);
1685
+ const actionCellRef = react.useRef(null);
1686
+ const bottomToolbarRef = react.useRef(null);
1687
+ const editInputRefs = react.useRef({});
1688
+ const filterInputRefs = react.useRef({});
1689
+ const searchInputRef = react.useRef(null);
1690
+ const tableContainerRef = react.useRef(null);
1691
+ const tableHeadCellRefs = react.useRef({});
1692
+ const tablePaperRef = react.useRef(null);
1693
+ const topToolbarRef = react.useRef(null);
1694
+ const tableHeadRef = react.useRef(null);
1695
+ const tableFooterRef = react.useRef(null);
1696
+ //transform initial state with proper column order
1697
+ const initialState = react.useMemo(() => {
1698
+ var _a, _b, _c;
1699
+ const initState = (_a = definedTableOptions.initialState) !== null && _a !== void 0 ? _a : {};
1700
+ initState.columnOrder =
1701
+ (_b = initState.columnOrder) !== null && _b !== void 0 ? _b : getDefaultColumnOrderIds(Object.assign(Object.assign({}, definedTableOptions), { state: Object.assign(Object.assign({}, definedTableOptions.initialState), definedTableOptions.state) }));
1702
+ initState.globalFilterFn = (_c = definedTableOptions.globalFilterFn) !== null && _c !== void 0 ? _c : 'fuzzy';
1703
+ return initState;
1704
+ }, []);
1705
+ definedTableOptions.initialState = initialState;
1706
+ const [actionCell, setActionCell] = react.useState((_a = initialState.actionCell) !== null && _a !== void 0 ? _a : null);
1707
+ const [creatingRow, _setCreatingRow] = react.useState((_b = initialState.creatingRow) !== null && _b !== void 0 ? _b : null);
1708
+ const [columnFilterFns, setColumnFilterFns] = react.useState(() => Object.assign({}, ...getAllLeafColumnDefs(definedTableOptions.columns).map((col) => {
1709
+ var _a, _b, _c, _d;
1710
+ return ({
1711
+ [getColumnId(col)]: col.filterFn instanceof Function
1712
+ ? ((_a = col.filterFn.name) !== null && _a !== void 0 ? _a : 'custom')
1713
+ : ((_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)),
1714
+ });
1715
+ })));
1716
+ const [columnOrder, onColumnOrderChange] = react.useState((_c = initialState.columnOrder) !== null && _c !== void 0 ? _c : []);
1717
+ const [columnSizingInfo, onColumnSizingInfoChange] = react.useState((_d = initialState.columnSizingInfo) !== null && _d !== void 0 ? _d : {});
1718
+ const [density, setDensity] = react.useState((_e = initialState === null || initialState === void 0 ? void 0 : initialState.density) !== null && _e !== void 0 ? _e : 'comfortable');
1719
+ const [draggingColumn, setDraggingColumn] = react.useState((_f = initialState.draggingColumn) !== null && _f !== void 0 ? _f : null);
1720
+ const [draggingRow, setDraggingRow] = react.useState((_g = initialState.draggingRow) !== null && _g !== void 0 ? _g : null);
1721
+ const [editingCell, setEditingCell] = react.useState((_h = initialState.editingCell) !== null && _h !== void 0 ? _h : null);
1722
+ const [editingRow, setEditingRow] = react.useState((_j = initialState.editingRow) !== null && _j !== void 0 ? _j : null);
1723
+ const [globalFilterFn, setGlobalFilterFn] = react.useState((_k = initialState.globalFilterFn) !== null && _k !== void 0 ? _k : 'fuzzy');
1724
+ const [grouping, onGroupingChange] = react.useState((_l = initialState.grouping) !== null && _l !== void 0 ? _l : []);
1725
+ const [hoveredColumn, setHoveredColumn] = react.useState((_m = initialState.hoveredColumn) !== null && _m !== void 0 ? _m : null);
1726
+ const [hoveredRow, setHoveredRow] = react.useState((_o = initialState.hoveredRow) !== null && _o !== void 0 ? _o : null);
1727
+ const [isFullScreen, setIsFullScreen] = react.useState((_p = initialState === null || initialState === void 0 ? void 0 : initialState.isFullScreen) !== null && _p !== void 0 ? _p : false);
1728
+ const [pagination, onPaginationChange] = react.useState((_q = initialState === null || initialState === void 0 ? void 0 : initialState.pagination) !== null && _q !== void 0 ? _q : { pageIndex: 0, pageSize: 10 });
1729
+ const [showAlertBanner, setShowAlertBanner] = react.useState((_r = initialState === null || initialState === void 0 ? void 0 : initialState.showAlertBanner) !== null && _r !== void 0 ? _r : false);
1730
+ const [showColumnFilters, setShowColumnFilters] = react.useState((_s = initialState === null || initialState === void 0 ? void 0 : initialState.showColumnFilters) !== null && _s !== void 0 ? _s : false);
1731
+ const [showGlobalFilter, setShowGlobalFilter] = react.useState((_t = initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) !== null && _t !== void 0 ? _t : false);
1732
+ const [showToolbarDropZone, setShowToolbarDropZone] = react.useState((_u = initialState === null || initialState === void 0 ? void 0 : initialState.showToolbarDropZone) !== null && _u !== void 0 ? _u : false);
1733
+ definedTableOptions.state = Object.assign({ actionCell,
1734
+ columnFilterFns,
1735
+ columnOrder,
1736
+ columnSizingInfo,
1737
+ creatingRow,
1738
+ density,
1739
+ draggingColumn,
1740
+ draggingRow,
1741
+ editingCell,
1742
+ editingRow,
1743
+ globalFilterFn,
1744
+ grouping,
1745
+ hoveredColumn,
1746
+ hoveredRow,
1747
+ isFullScreen,
1748
+ pagination,
1749
+ showAlertBanner,
1750
+ showColumnFilters,
1751
+ showGlobalFilter,
1752
+ showToolbarDropZone }, definedTableOptions.state);
1753
+ //The table options now include all state needed to help determine column visibility and order logic
1754
+ const statefulTableOptions = definedTableOptions;
1755
+ //don't recompute columnDefs while resizing column or dragging column/row
1756
+ const columnDefsRef = react.useRef([]);
1757
+ statefulTableOptions.columns =
1758
+ statefulTableOptions.state.columnSizingInfo.isResizingColumn ||
1759
+ statefulTableOptions.state.draggingColumn ||
1760
+ statefulTableOptions.state.draggingRow
1761
+ ? columnDefsRef.current
1762
+ : prepareColumns({
1763
+ columnDefs: [
1764
+ ...[
1765
+ showRowPinningColumn(statefulTableOptions) &&
1766
+ getMRT_RowPinningColumnDef(statefulTableOptions),
1767
+ showRowDragColumn(statefulTableOptions) &&
1768
+ getMRT_RowDragColumnDef(statefulTableOptions),
1769
+ showRowActionsColumn(statefulTableOptions) &&
1770
+ getMRT_RowActionsColumnDef(statefulTableOptions),
1771
+ showRowExpandColumn(statefulTableOptions) &&
1772
+ getMRT_RowExpandColumnDef(statefulTableOptions),
1773
+ showRowSelectionColumn(statefulTableOptions) &&
1774
+ getMRT_RowSelectColumnDef(statefulTableOptions),
1775
+ showRowNumbersColumn(statefulTableOptions) &&
1776
+ getMRT_RowNumbersColumnDef(statefulTableOptions),
1777
+ ].filter(Boolean),
1778
+ ...statefulTableOptions.columns,
1779
+ ...[
1780
+ showRowSpacerColumn(statefulTableOptions) &&
1781
+ getMRT_RowSpacerColumnDef(statefulTableOptions),
1782
+ ].filter(Boolean),
1783
+ ],
1784
+ tableOptions: statefulTableOptions,
1785
+ });
1786
+ columnDefsRef.current = statefulTableOptions.columns;
1787
+ //if loading, generate blank rows to show skeleton loaders
1788
+ statefulTableOptions.data = react.useMemo(() => (statefulTableOptions.state.isLoading ||
1789
+ statefulTableOptions.state.showSkeletons) &&
1790
+ !statefulTableOptions.data.length
1791
+ ? [
1792
+ ...Array(Math.min(statefulTableOptions.state.pagination.pageSize, 20)).fill(null),
1793
+ ].map(() => Object.assign({}, ...getAllLeafColumnDefs(statefulTableOptions.columns).map((col) => ({
1794
+ [getColumnId(col)]: null,
1795
+ }))))
1796
+ : statefulTableOptions.data, [
1797
+ statefulTableOptions.data,
1798
+ statefulTableOptions.state.isLoading,
1799
+ statefulTableOptions.state.showSkeletons,
1800
+ ]);
1801
+ //@ts-ignore
1802
+ const table = reactTable.useReactTable(Object.assign(Object.assign({ onColumnOrderChange,
1803
+ onColumnSizingInfoChange,
1804
+ onGroupingChange,
1805
+ onPaginationChange }, statefulTableOptions), { globalFilterFn: (_v = statefulTableOptions.filterFns) === null || _v === void 0 ? void 0 : _v[globalFilterFn !== null && globalFilterFn !== void 0 ? globalFilterFn : 'fuzzy'] }));
1806
+ table.refs = {
1807
+ actionCellRef,
1808
+ bottomToolbarRef,
1809
+ editInputRefs,
1810
+ filterInputRefs,
1811
+ lastSelectedRowId,
1812
+ searchInputRef,
1813
+ tableContainerRef,
1814
+ tableFooterRef,
1815
+ tableHeadCellRefs,
1816
+ tableHeadRef,
1817
+ tablePaperRef,
1818
+ topToolbarRef,
1819
+ };
1820
+ table.setActionCell =
1821
+ (_w = statefulTableOptions.onActionCellChange) !== null && _w !== void 0 ? _w : setActionCell;
1822
+ table.setCreatingRow = (row) => {
1823
+ var _a, _b;
1824
+ let _row = row;
1825
+ if (row === true) {
1826
+ _row = createRow(table);
1827
+ }
1828
+ (_b = (_a = statefulTableOptions === null || statefulTableOptions === void 0 ? void 0 : statefulTableOptions.onCreatingRowChange) === null || _a === void 0 ? void 0 : _a.call(statefulTableOptions, _row)) !== null && _b !== void 0 ? _b : _setCreatingRow(_row);
1829
+ };
1830
+ table.setColumnFilterFns =
1831
+ (_x = statefulTableOptions.onColumnFilterFnsChange) !== null && _x !== void 0 ? _x : setColumnFilterFns;
1832
+ table.setDensity = (_y = statefulTableOptions.onDensityChange) !== null && _y !== void 0 ? _y : setDensity;
1833
+ table.setDraggingColumn =
1834
+ (_z = statefulTableOptions.onDraggingColumnChange) !== null && _z !== void 0 ? _z : setDraggingColumn;
1835
+ table.setDraggingRow =
1836
+ (_0 = statefulTableOptions.onDraggingRowChange) !== null && _0 !== void 0 ? _0 : setDraggingRow;
1837
+ table.setEditingCell =
1838
+ (_1 = statefulTableOptions.onEditingCellChange) !== null && _1 !== void 0 ? _1 : setEditingCell;
1839
+ table.setEditingRow =
1840
+ (_2 = statefulTableOptions.onEditingRowChange) !== null && _2 !== void 0 ? _2 : setEditingRow;
1841
+ table.setGlobalFilterFn =
1842
+ (_3 = statefulTableOptions.onGlobalFilterFnChange) !== null && _3 !== void 0 ? _3 : setGlobalFilterFn;
1843
+ table.setHoveredColumn =
1844
+ (_4 = statefulTableOptions.onHoveredColumnChange) !== null && _4 !== void 0 ? _4 : setHoveredColumn;
1845
+ table.setHoveredRow =
1846
+ (_5 = statefulTableOptions.onHoveredRowChange) !== null && _5 !== void 0 ? _5 : setHoveredRow;
1847
+ table.setIsFullScreen =
1848
+ (_6 = statefulTableOptions.onIsFullScreenChange) !== null && _6 !== void 0 ? _6 : setIsFullScreen;
1849
+ table.setShowAlertBanner =
1850
+ (_7 = statefulTableOptions.onShowAlertBannerChange) !== null && _7 !== void 0 ? _7 : setShowAlertBanner;
1851
+ table.setShowColumnFilters =
1852
+ (_8 = statefulTableOptions.onShowColumnFiltersChange) !== null && _8 !== void 0 ? _8 : setShowColumnFilters;
1853
+ table.setShowGlobalFilter =
1854
+ (_9 = statefulTableOptions.onShowGlobalFilterChange) !== null && _9 !== void 0 ? _9 : setShowGlobalFilter;
1855
+ table.setShowToolbarDropZone =
1856
+ (_10 = statefulTableOptions.onShowToolbarDropZoneChange) !== null && _10 !== void 0 ? _10 : setShowToolbarDropZone;
1857
+ useMRT_Effects(table);
1858
+ return table;
1859
+ };
1860
+
1861
+ const useMaterialReactTable = (tableOptions) => useMRT_TableInstance(useMRT_TableOptions(tableOptions));
1862
+
1863
+ const extraIndexRangeExtractor = (range, draggingIndex) => {
1864
+ const newIndexes = reactVirtual.defaultRangeExtractor(range);
1865
+ if (draggingIndex === undefined)
1866
+ return newIndexes;
1867
+ if (draggingIndex >= 0 &&
1868
+ draggingIndex < Math.max(range.startIndex - range.overscan, 0)) {
1869
+ newIndexes.unshift(draggingIndex);
1870
+ }
1871
+ if (draggingIndex >= 0 && draggingIndex > range.endIndex + range.overscan) {
1872
+ newIndexes.push(draggingIndex);
1873
+ }
1874
+ return newIndexes;
1875
+ };
1876
+
1877
+ const useMRT_ColumnVirtualizer = (table) => {
1878
+ var _a, _b, _c, _d;
1879
+ const { getState, options: { columnVirtualizerInstanceRef, columnVirtualizerOptions, enableColumnPinning, enableColumnVirtualization, }, refs: { tableContainerRef }, } = table;
1880
+ const { columnPinning, columnVisibility, draggingColumn } = getState();
1881
+ if (!enableColumnVirtualization)
1882
+ return undefined;
1883
+ const columnVirtualizerProps = parseFromValuesOrFunc(columnVirtualizerOptions, {
1884
+ table,
1885
+ });
1886
+ const visibleColumns = table.getVisibleLeafColumns();
1887
+ const [leftPinnedIndexes, rightPinnedIndexes] = react.useMemo(() => enableColumnPinning
1888
+ ? [
1889
+ table.getLeftVisibleLeafColumns().map((c) => c.getPinnedIndex()),
1890
+ table
1891
+ .getRightVisibleLeafColumns()
1892
+ .map((column) => visibleColumns.length - column.getPinnedIndex() - 1)
1893
+ .sort((a, b) => a - b),
1894
+ ]
1895
+ : [[], []], [columnPinning, columnVisibility, enableColumnPinning]);
1896
+ const numPinnedLeft = leftPinnedIndexes.length;
1897
+ const numPinnedRight = rightPinnedIndexes.length;
1898
+ const draggingColumnIndex = react.useMemo(() => (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id)
1899
+ ? visibleColumns.findIndex((c) => c.id === (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id))
1900
+ : undefined, [draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id]);
1901
+ const columnVirtualizer = reactVirtual.useVirtualizer(Object.assign({ count: visibleColumns.length, estimateSize: (index) => visibleColumns[index].getSize(), getScrollElement: () => tableContainerRef.current, horizontal: true, overscan: 3, rangeExtractor: react.useCallback((range) => {
1902
+ const newIndexes = extraIndexRangeExtractor(range, draggingColumnIndex);
1903
+ if (!numPinnedLeft && !numPinnedRight) {
1904
+ return newIndexes;
1905
+ }
1906
+ return [
1907
+ ...new Set([
1908
+ ...leftPinnedIndexes,
1909
+ ...newIndexes,
1910
+ ...rightPinnedIndexes,
1911
+ ]),
1912
+ ];
1913
+ }, [leftPinnedIndexes, rightPinnedIndexes, draggingColumnIndex]) }, columnVirtualizerProps));
1914
+ const virtualColumns = columnVirtualizer.getVirtualItems();
1915
+ columnVirtualizer.virtualColumns = virtualColumns;
1916
+ const numColumns = virtualColumns.length;
1917
+ if (numColumns) {
1918
+ const totalSize = columnVirtualizer.getTotalSize();
1919
+ const leftNonPinnedStart = ((_a = virtualColumns[numPinnedLeft]) === null || _a === void 0 ? void 0 : _a.start) || 0;
1920
+ const leftNonPinnedEnd = ((_b = virtualColumns[leftPinnedIndexes.length - 1]) === null || _b === void 0 ? void 0 : _b.end) || 0;
1921
+ const rightNonPinnedStart = ((_c = virtualColumns[numColumns - numPinnedRight]) === null || _c === void 0 ? void 0 : _c.start) || 0;
1922
+ const rightNonPinnedEnd = ((_d = virtualColumns[numColumns - numPinnedRight - 1]) === null || _d === void 0 ? void 0 : _d.end) || 0;
1923
+ columnVirtualizer.virtualPaddingLeft =
1924
+ leftNonPinnedStart - leftNonPinnedEnd;
1925
+ columnVirtualizer.virtualPaddingRight =
1926
+ totalSize -
1927
+ rightNonPinnedEnd -
1928
+ (numPinnedRight ? totalSize - rightNonPinnedStart : 0);
1929
+ }
1930
+ if (columnVirtualizerInstanceRef) {
1931
+ //@ts-ignore
1932
+ columnVirtualizerInstanceRef.current = columnVirtualizer;
1933
+ }
1934
+ return columnVirtualizer;
1935
+ };
1936
+
1937
+ const useMRT_RowVirtualizer = (table, rows) => {
1938
+ var _a;
1939
+ const { getRowModel, getState, options: { enableRowVirtualization, renderDetailPanel, rowVirtualizerInstanceRef, rowVirtualizerOptions, }, refs: { tableContainerRef }, } = table;
1940
+ const { density, draggingRow, expanded } = getState();
1941
+ if (!enableRowVirtualization)
1942
+ return undefined;
1943
+ const rowVirtualizerProps = parseFromValuesOrFunc(rowVirtualizerOptions, {
1944
+ table,
1945
+ });
1946
+ const rowCount = (_a = rows === null || rows === void 0 ? void 0 : rows.length) !== null && _a !== void 0 ? _a : getRowModel().rows.length;
1947
+ const normalRowHeight = density === 'compact' ? 37 : density === 'comfortable' ? 58 : 73;
1948
+ const rowVirtualizer = reactVirtual.useVirtualizer(Object.assign({ count: renderDetailPanel ? rowCount * 2 : rowCount, estimateSize: (index) => renderDetailPanel && index % 2 === 1
1949
+ ? expanded === true
1950
+ ? 100
1951
+ : 0
1952
+ : normalRowHeight, getScrollElement: () => tableContainerRef.current, measureElement: typeof window !== 'undefined' &&
1953
+ navigator.userAgent.indexOf('Firefox') === -1
1954
+ ? (element) => element === null || element === void 0 ? void 0 : element.getBoundingClientRect().height
1955
+ : undefined, overscan: 4, rangeExtractor: react.useCallback((range) => {
1956
+ var _a;
1957
+ return extraIndexRangeExtractor(range, (_a = draggingRow === null || draggingRow === void 0 ? void 0 : draggingRow.index) !== null && _a !== void 0 ? _a : 0);
1958
+ }, [draggingRow]) }, rowVirtualizerProps));
1959
+ rowVirtualizer.virtualRows = rowVirtualizer.getVirtualItems();
1960
+ if (rowVirtualizerInstanceRef) {
1961
+ //@ts-ignore
1962
+ rowVirtualizerInstanceRef.current = rowVirtualizer;
1963
+ }
1964
+ return rowVirtualizer;
1965
+ };
1966
+
1967
+ const useMRT_Rows = (table) => {
1968
+ const { getRowModel, getState, options: { data, enableGlobalFilterRankedResults, positionCreatingRow }, } = table;
1969
+ const { creatingRow, expanded, globalFilter, pagination, rowPinning, sorting, } = getState();
1970
+ const rows = react.useMemo(() => getMRT_Rows(table), [
1971
+ creatingRow,
1972
+ data,
1973
+ enableGlobalFilterRankedResults,
1974
+ expanded,
1975
+ getRowModel().rows,
1976
+ globalFilter,
1977
+ pagination.pageIndex,
1978
+ pagination.pageSize,
1979
+ positionCreatingRow,
1980
+ rowPinning,
1981
+ sorting,
1982
+ ]);
1983
+ return rows;
1984
+ };
1985
+
1986
+ const allowedTypes = ['string', 'number'];
1987
+ const MRT_TableBodyCellValue = ({ cell, rowRef, staticColumnIndex, staticRowIndex, table, }) => {
1988
+ var _a, _b, _c;
1989
+ const { getState, options: { enableFilterMatchHighlighting, mrtTheme: { matchHighlightColor }, }, } = table;
1990
+ const { column, row } = cell;
1991
+ const { columnDef } = column;
1992
+ const { globalFilter, globalFilterFn } = getState();
1993
+ const filterValue = column.getFilterValue();
1994
+ let renderedCellValue = cell.getIsAggregated() && columnDef.AggregatedCell
1995
+ ? columnDef.AggregatedCell({
1996
+ cell,
1997
+ column,
1998
+ row,
1999
+ table,
2000
+ staticColumnIndex,
2001
+ staticRowIndex,
2002
+ })
2003
+ : row.getIsGrouped() && !cell.getIsGrouped()
2004
+ ? null
2005
+ : cell.getIsGrouped() && columnDef.GroupedCell
2006
+ ? columnDef.GroupedCell({
2007
+ cell,
2008
+ column,
2009
+ row,
2010
+ table,
2011
+ staticColumnIndex,
2012
+ staticRowIndex,
2013
+ })
2014
+ : undefined;
2015
+ const isGroupedValue = renderedCellValue !== undefined;
2016
+ if (!isGroupedValue) {
2017
+ renderedCellValue = cell.renderValue();
2018
+ }
2019
+ if (enableFilterMatchHighlighting &&
2020
+ columnDef.enableFilterMatchHighlighting !== false &&
2021
+ String(renderedCellValue) &&
2022
+ allowedTypes.includes(typeof renderedCellValue) &&
2023
+ ((filterValue &&
2024
+ allowedTypes.includes(typeof filterValue) &&
2025
+ ['autocomplete', 'text'].includes(columnDef.filterVariant)) ||
2026
+ (globalFilter &&
2027
+ allowedTypes.includes(typeof globalFilter) &&
2028
+ column.getCanGlobalFilter()))) {
2029
+ const chunks = highlightWords__default["default"] === null || highlightWords__default["default"] === void 0 ? void 0 : highlightWords__default["default"]({
2030
+ matchExactly: (filterValue ? columnDef._filterFn : globalFilterFn) !== 'fuzzy',
2031
+ query: ((_a = filterValue !== null && filterValue !== void 0 ? filterValue : globalFilter) !== null && _a !== void 0 ? _a : '').toString(),
2032
+ text: renderedCellValue === null || renderedCellValue === void 0 ? void 0 : renderedCellValue.toString(),
2033
+ });
2034
+ 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)) {
2035
+ renderedCellValue = (jsxRuntime.jsx("span", { "aria-label": renderedCellValue, role: "note", children: (_c = chunks === null || chunks === void 0 ? void 0 : chunks.map(({ key, match, text }) => (jsxRuntime.jsx(Box__default["default"], { "aria-hidden": "true", component: "span", sx: match
2036
+ ? {
2037
+ backgroundColor: matchHighlightColor,
2038
+ borderRadius: '2px',
2039
+ color: (theme) => theme.palette.mode === 'dark'
2040
+ ? theme.palette.common.white
2041
+ : theme.palette.common.black,
2042
+ padding: '2px 1px',
2043
+ }
2044
+ : undefined, children: text }, key)))) !== null && _c !== void 0 ? _c : renderedCellValue }));
2045
+ }
2046
+ }
2047
+ if (columnDef.Cell && !isGroupedValue) {
2048
+ renderedCellValue = columnDef.Cell({
2049
+ cell,
2050
+ column,
2051
+ renderedCellValue,
2052
+ row,
2053
+ rowRef,
2054
+ staticColumnIndex,
2055
+ staticRowIndex,
2056
+ table,
2057
+ });
2058
+ }
2059
+ return renderedCellValue;
2060
+ };
2061
+
2062
+ const MRT_CopyButton = (_a) => {
2063
+ var _b;
2064
+ var { cell, table } = _a, rest = __rest(_a, ["cell", "table"]);
2065
+ const { options: { localization, muiCopyButtonProps }, } = table;
2066
+ const { column, row } = cell;
2067
+ const { columnDef } = column;
2068
+ const [copied, setCopied] = react.useState(false);
2069
+ const handleCopy = (event, text) => {
2070
+ event.stopPropagation();
2071
+ navigator.clipboard.writeText(text);
2072
+ setCopied(true);
2073
+ setTimeout(() => setCopied(false), 4000);
2074
+ };
2075
+ const buttonProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiCopyButtonProps, {
2076
+ cell,
2077
+ column,
2078
+ row,
2079
+ table,
2080
+ })), parseFromValuesOrFunc(columnDef.muiCopyButtonProps, {
2081
+ cell,
2082
+ column,
2083
+ row,
2084
+ table,
2085
+ })), rest);
2086
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({}, getCommonTooltipProps('top'), { title: (_b = buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.title) !== null && _b !== void 0 ? _b : (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', py: 0, textAlign: 'inherit', textTransform: 'inherit' }, parseFromValuesOrFunc(buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.sx, theme))), title: undefined })) })));
2087
+ };
2088
+
2089
+ const MRT_EditCellTextField = (_a) => {
2090
+ var _b, _c;
2091
+ var { cell, table } = _a, rest = __rest(_a, ["cell", "table"]);
2092
+ const { getState, options: { createDisplayMode, editDisplayMode, muiEditTextFieldProps }, refs: { editInputRefs }, setCreatingRow, setEditingCell, setEditingRow, } = table;
2093
+ const { column, row } = cell;
2094
+ const { columnDef } = column;
2095
+ const { creatingRow, editingRow } = getState();
2096
+ const { editSelectOptions, editVariant } = columnDef;
2097
+ const isCreating = (creatingRow === null || creatingRow === void 0 ? void 0 : creatingRow.id) === row.id;
2098
+ const isEditing = (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) === row.id;
2099
+ const [value, setValue] = react.useState(() => cell.getValue());
2100
+ const [completesComposition, setCompletesComposition] = react.useState(true);
2101
+ const textFieldProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiEditTextFieldProps, {
2102
+ cell,
2103
+ column,
2104
+ row,
2105
+ table,
2106
+ })), parseFromValuesOrFunc(columnDef.muiEditTextFieldProps, {
2107
+ cell,
2108
+ column,
2109
+ row,
2110
+ table,
2111
+ })), rest);
2112
+ const selectOptions = parseFromValuesOrFunc(editSelectOptions, {
2113
+ cell,
2114
+ column,
2115
+ row,
2116
+ table,
2117
+ });
2118
+ const isSelectEdit = editVariant === 'select' || (textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.select);
2119
+ const saveInputValueToRowCache = (newValue) => {
2120
+ //@ts-ignore
2121
+ row._valuesCache[column.id] = newValue;
2122
+ if (isCreating) {
2123
+ setCreatingRow(row);
2124
+ }
2125
+ else if (isEditing) {
2126
+ setEditingRow(row);
2127
+ }
2128
+ };
2129
+ const handleChange = (event) => {
2130
+ var _a;
2131
+ (_a = textFieldProps.onChange) === null || _a === void 0 ? void 0 : _a.call(textFieldProps, event);
2132
+ setValue(event.target.value);
2133
+ if (isSelectEdit) {
2134
+ saveInputValueToRowCache(event.target.value);
2135
+ }
2136
+ };
2137
+ const handleBlur = (event) => {
2138
+ var _a;
2139
+ (_a = textFieldProps.onBlur) === null || _a === void 0 ? void 0 : _a.call(textFieldProps, event);
2140
+ saveInputValueToRowCache(value);
2141
+ setEditingCell(null);
2142
+ };
2143
+ const handleEnterKeyDown = (event) => {
2144
+ var _a, _b;
2145
+ (_a = textFieldProps.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(textFieldProps, event);
2146
+ if (event.key === 'Enter' && !event.shiftKey && completesComposition) {
2147
+ (_b = editInputRefs.current[column.id]) === null || _b === void 0 ? void 0 : _b.blur();
2148
+ }
2149
+ };
2150
+ if (columnDef.Edit) {
2151
+ return jsxRuntime.jsx(jsxRuntime.Fragment, { children: (_b = columnDef.Edit) === null || _b === void 0 ? void 0 : _b.call(columnDef, { cell, column, row, table }) });
2152
+ }
2153
+ return (jsxRuntime.jsx(TextField__default["default"], Object.assign({ disabled: parseFromValuesOrFunc(columnDef.enableEditing, row) === false, fullWidth: true, inputRef: (inputRef) => {
2154
+ if (inputRef) {
2155
+ editInputRefs.current[column.id] = inputRef;
2156
+ if (textFieldProps.inputRef) {
2157
+ textFieldProps.inputRef = inputRef;
2158
+ }
2159
+ }
2160
+ }, label: ['custom', 'modal'].includes((isCreating ? createDisplayMode : editDisplayMode))
2161
+ ? columnDef.header
2162
+ : undefined, margin: "none", name: column.id, placeholder: !['custom', 'modal'].includes((isCreating ? createDisplayMode : editDisplayMode))
2163
+ ? columnDef.header
2164
+ : undefined, select: isSelectEdit, size: "small", value: value !== null && value !== void 0 ? value : '', variant: "standard" }, textFieldProps, { InputProps: Object.assign(Object.assign(Object.assign({}, (textFieldProps.variant !== 'outlined'
2165
+ ? { disableUnderline: editDisplayMode === 'table' }
2166
+ : {})), textFieldProps.InputProps), { sx: (theme) => {
2167
+ var _a;
2168
+ return (Object.assign({ mb: 0 }, parseFromValuesOrFunc((_a = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.InputProps) === null || _a === void 0 ? void 0 : _a.sx, theme)));
2169
+ } }), SelectProps: Object.assign({ MenuProps: { disableScrollLock: true } }, textFieldProps.SelectProps), inputProps: Object.assign({ autoComplete: 'new-password' }, textFieldProps.inputProps), onBlur: handleBlur, onChange: handleChange, onClick: (e) => {
2170
+ var _a;
2171
+ e.stopPropagation();
2172
+ (_a = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.onClick) === null || _a === void 0 ? void 0 : _a.call(textFieldProps, e);
2173
+ }, onKeyDown: handleEnterKeyDown, onCompositionStart: () => setCompletesComposition(false), onCompositionEnd: () => setCompletesComposition(true), children: (_c = textFieldProps.children) !== null && _c !== void 0 ? _c : selectOptions === null || selectOptions === void 0 ? void 0 : selectOptions.map((option) => {
2174
+ const { label, value } = getValueAndLabel(option);
2175
+ return (jsxRuntime.jsx(MenuItem__default["default"], { sx: {
2176
+ alignItems: 'center',
2177
+ display: 'flex',
2178
+ gap: '0.5rem',
2179
+ m: 0,
2180
+ }, value: value, children: label }, value));
2181
+ }) })));
2182
+ };
2183
+
2184
+ const MRT_TableBodyCell = (_a) => {
2185
+ var _b, _c, _d, _e, _f;
2186
+ var { cell, numRows, rowRef, staticColumnIndex, staticRowIndex, table } = _a, rest = __rest(_a, ["cell", "numRows", "rowRef", "staticColumnIndex", "staticRowIndex", "table"]);
2187
+ const theme = styles.useTheme();
2188
+ const { getState, options: { columnResizeDirection, columnResizeMode, createDisplayMode, editDisplayMode, enableCellActions, enableClickToCopy, enableColumnOrdering, enableColumnPinning, enableGrouping, enableKeyboardShortcuts, layoutMode, mrtTheme: { draggingBorderColor }, muiSkeletonProps, muiTableBodyCellProps, }, setHoveredColumn, } = table;
2189
+ const { actionCell, columnSizingInfo, creatingRow, density, draggingColumn, draggingRow, editingCell, editingRow, hoveredColumn, hoveredRow, isLoading, showSkeletons, } = getState();
2190
+ const { column, row } = cell;
2191
+ const { columnDef } = column;
2192
+ const { columnDefType } = columnDef;
2193
+ const args = { cell, column, row, table };
2194
+ const tableCellProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableBodyCellProps, args)), parseFromValuesOrFunc(columnDef.muiTableBodyCellProps, args)), rest);
2195
+ const skeletonProps = parseFromValuesOrFunc(muiSkeletonProps, {
2196
+ cell,
2197
+ column,
2198
+ row,
2199
+ table,
2200
+ });
2201
+ const [skeletonWidth, setSkeletonWidth] = react.useState(100);
2202
+ react.useEffect(() => {
2203
+ if ((!isLoading && !showSkeletons) || skeletonWidth !== 100)
2204
+ return;
2205
+ const size = column.getSize();
2206
+ setSkeletonWidth(columnDefType === 'display'
2207
+ ? size / 2
2208
+ : Math.round(Math.random() * (size - size / 3) + size / 3));
2209
+ }, [isLoading, showSkeletons]);
2210
+ const draggingBorders = react.useMemo(() => {
2211
+ const isDraggingColumn = (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) === column.id;
2212
+ const isHoveredColumn = (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id;
2213
+ const isDraggingRow = (draggingRow === null || draggingRow === void 0 ? void 0 : draggingRow.id) === row.id;
2214
+ const isHoveredRow = (hoveredRow === null || hoveredRow === void 0 ? void 0 : hoveredRow.id) === row.id;
2215
+ const isFirstColumn = column.getIsFirstColumn();
2216
+ const isLastColumn = column.getIsLastColumn();
2217
+ const isLastRow = numRows && staticRowIndex === numRows - 1;
2218
+ const isResizingColumn = columnSizingInfo.isResizingColumn === column.id;
2219
+ const showResizeBorder = isResizingColumn && columnResizeMode === 'onChange';
2220
+ const borderStyle = showResizeBorder
2221
+ ? `2px solid ${draggingBorderColor} !important`
2222
+ : isDraggingColumn || isDraggingRow
2223
+ ? `1px dashed ${theme.palette.grey[500]} !important`
2224
+ : isHoveredColumn || isHoveredRow || isResizingColumn
2225
+ ? `2px dashed ${draggingBorderColor} !important`
2226
+ : undefined;
2227
+ if (showResizeBorder) {
2228
+ return columnResizeDirection === 'ltr'
2229
+ ? { borderRight: borderStyle }
2230
+ : { borderLeft: borderStyle };
2231
+ }
2232
+ return borderStyle
2233
+ ? {
2234
+ borderBottom: isDraggingRow || isHoveredRow || (isLastRow && !isResizingColumn)
2235
+ ? borderStyle
2236
+ : undefined,
2237
+ borderLeft: isDraggingColumn ||
2238
+ isHoveredColumn ||
2239
+ ((isDraggingRow || isHoveredRow) && isFirstColumn)
2240
+ ? borderStyle
2241
+ : undefined,
2242
+ borderRight: isDraggingColumn ||
2243
+ isHoveredColumn ||
2244
+ ((isDraggingRow || isHoveredRow) && isLastColumn)
2245
+ ? borderStyle
2246
+ : undefined,
2247
+ borderTop: isDraggingRow || isHoveredRow ? borderStyle : undefined,
2248
+ }
2249
+ : undefined;
2250
+ }, [
2251
+ columnSizingInfo.isResizingColumn,
2252
+ draggingColumn,
2253
+ draggingRow,
2254
+ hoveredColumn,
2255
+ hoveredRow,
2256
+ staticRowIndex,
2257
+ ]);
2258
+ const isColumnPinned = enableColumnPinning &&
2259
+ columnDef.columnDefType !== 'group' &&
2260
+ column.getIsPinned();
2261
+ const isEditable = isCellEditable({ cell, table });
2262
+ const isEditing = isEditable &&
2263
+ !['custom', 'modal'].includes(editDisplayMode) &&
2264
+ (editDisplayMode === 'table' ||
2265
+ (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) === row.id ||
2266
+ (editingCell === null || editingCell === void 0 ? void 0 : editingCell.id) === cell.id) &&
2267
+ !row.getIsGrouped();
2268
+ const isCreating = isEditable && createDisplayMode === 'row' && (creatingRow === null || creatingRow === void 0 ? void 0 : creatingRow.id) === row.id;
2269
+ const showClickToCopyButton = (parseFromValuesOrFunc(enableClickToCopy, cell) === true ||
2270
+ parseFromValuesOrFunc(columnDef.enableClickToCopy, cell) === true) &&
2271
+ !['context-menu', false].includes(
2272
+ // @ts-ignore
2273
+ parseFromValuesOrFunc(columnDef.enableClickToCopy, cell));
2274
+ const isRightClickable = parseFromValuesOrFunc(enableCellActions, cell);
2275
+ const cellValueProps = {
2276
+ cell,
2277
+ table,
2278
+ staticColumnIndex,
2279
+ staticRowIndex,
2280
+ };
2281
+ const handleDoubleClick = (event) => {
2282
+ var _a;
2283
+ (_a = tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.onDoubleClick) === null || _a === void 0 ? void 0 : _a.call(tableCellProps, event);
2284
+ openEditingCell({ cell, table });
2285
+ };
2286
+ const handleDragEnter = (e) => {
2287
+ var _a;
2288
+ (_a = tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.onDragEnter) === null || _a === void 0 ? void 0 : _a.call(tableCellProps, e);
2289
+ if (enableGrouping && (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === 'drop-zone') {
2290
+ setHoveredColumn(null);
2291
+ }
2292
+ if (enableColumnOrdering && draggingColumn) {
2293
+ setHoveredColumn(columnDef.enableColumnOrdering !== false ? column : null);
2294
+ }
2295
+ };
2296
+ const handleDragOver = (e) => {
2297
+ if (columnDef.enableColumnOrdering !== false) {
2298
+ e.preventDefault();
2299
+ }
2300
+ };
2301
+ const handleContextMenu = (e) => {
2302
+ var _a;
2303
+ (_a = tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.onContextMenu) === null || _a === void 0 ? void 0 : _a.call(tableCellProps, e);
2304
+ if (isRightClickable) {
2305
+ e.preventDefault();
2306
+ table.setActionCell(cell);
2307
+ table.refs.actionCellRef.current = e.currentTarget;
2308
+ }
2309
+ };
2310
+ return (jsxRuntime.jsx(TableCell__default["default"], Object.assign({ align: theme.direction === 'rtl' ? 'right' : 'left', "data-index": staticColumnIndex, "data-pinned": !!isColumnPinned || undefined, tabIndex: enableKeyboardShortcuts ? 0 : undefined }, tableCellProps, { onContextMenu: handleContextMenu, onDoubleClick: handleDoubleClick, onDragEnter: handleDragEnter, onDragOver: handleDragOver, sx: (theme) => (Object.assign(Object.assign({ '&:hover': {
2311
+ outline: (actionCell === null || actionCell === void 0 ? void 0 : actionCell.id) === cell.id ||
2312
+ (editDisplayMode === 'cell' && isEditable) ||
2313
+ (editDisplayMode === 'table' && (isCreating || isEditing))
2314
+ ? `1px solid ${theme.palette.grey[500]}`
2315
+ : undefined,
2316
+ textOverflow: 'clip',
2317
+ }, alignItems: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'center' : undefined, cursor: isRightClickable
2318
+ ? 'context-menu'
2319
+ : isEditable && editDisplayMode === 'cell'
2320
+ ? 'pointer'
2321
+ : 'inherit', outline: (actionCell === null || actionCell === void 0 ? void 0 : actionCell.id) === cell.id
2322
+ ? `1px solid ${theme.palette.grey[500]}`
2323
+ : undefined, outlineOffset: '-1px', overflow: 'hidden', p: density === 'compact'
2324
+ ? columnDefType === 'display'
2325
+ ? '0 0.5rem'
2326
+ : '0.5rem'
2327
+ : density === 'comfortable'
2328
+ ? columnDefType === 'display'
2329
+ ? '0.5rem 0.75rem'
2330
+ : '1rem'
2331
+ : columnDefType === 'display'
2332
+ ? '1rem 1.25rem'
2333
+ : '1.5rem', textOverflow: columnDefType !== 'display' ? 'ellipsis' : undefined, whiteSpace: row.getIsPinned() || density === 'compact' ? 'nowrap' : 'normal' }, getCommonMRTCellStyles({
2334
+ column,
2335
+ table,
2336
+ tableCellProps,
2337
+ theme,
2338
+ })), draggingBorders)), children: (_b = tableCellProps.children) !== null && _b !== void 0 ? _b : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [cell.getIsPlaceholder() ? (((_d = (_c = columnDef.PlaceholderCell) === null || _c === void 0 ? void 0 : _c.call(columnDef, { cell, column, row, table })) !== null && _d !== void 0 ? _d : null)) : showSkeletons !== false && (isLoading || showSkeletons) ? (jsxRuntime.jsx(Skeleton__default["default"], Object.assign({ animation: "wave", height: 20, width: skeletonWidth }, skeletonProps))) : columnDefType === 'display' &&
2339
+ (['mrt-row-expand', 'mrt-row-numbers', 'mrt-row-select'].includes(column.id) ||
2340
+ !row.getIsGrouped()) ? ((_e = columnDef.Cell) === null || _e === void 0 ? void 0 : _e.call(columnDef, {
2341
+ cell,
2342
+ column,
2343
+ renderedCellValue: cell.renderValue(),
2344
+ row,
2345
+ rowRef,
2346
+ staticColumnIndex,
2347
+ staticRowIndex,
2348
+ table,
2349
+ })) : isCreating || isEditing ? (jsxRuntime.jsx(MRT_EditCellTextField, { cell: cell, table: table })) : showClickToCopyButton && columnDef.enableClickToCopy !== false ? (jsxRuntime.jsx(MRT_CopyButton, { cell: cell, table: table, children: jsxRuntime.jsx(MRT_TableBodyCellValue, Object.assign({}, cellValueProps)) })) : (jsxRuntime.jsx(MRT_TableBodyCellValue, Object.assign({}, cellValueProps))), cell.getIsGrouped() && !columnDef.GroupedCell && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [" (", (_f = row.subRows) === null || _f === void 0 ? void 0 : _f.length, ")"] }))] })) })));
2350
+ };
2351
+ const Memo_MRT_TableBodyCell = react.memo(MRT_TableBodyCell, (prev, next) => next.cell === prev.cell);
2352
+
2353
+ const MRT_TableDetailPanel = (_a) => {
2354
+ var { parentRowRef, row, rowVirtualizer, staticRowIndex, table, virtualRow } = _a, rest = __rest(_a, ["parentRowRef", "row", "rowVirtualizer", "staticRowIndex", "table", "virtualRow"]);
2355
+ const { getState, getVisibleLeafColumns, options: { layoutMode, mrtTheme: { baseBackgroundColor }, muiDetailPanelProps, muiTableBodyRowProps, renderDetailPanel, }, } = table;
2356
+ const { isLoading } = getState();
2357
+ const tableRowProps = parseFromValuesOrFunc(muiTableBodyRowProps, {
2358
+ isDetailPanel: true,
2359
+ row,
2360
+ staticRowIndex,
2361
+ table,
2362
+ });
2363
+ const tableCellProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiDetailPanelProps, {
2364
+ row,
2365
+ table,
2366
+ })), rest);
2367
+ const DetailPanel = !isLoading && (renderDetailPanel === null || renderDetailPanel === void 0 ? void 0 : renderDetailPanel({ row, table }));
2368
+ return (jsxRuntime.jsx(TableRow__default["default"], Object.assign({ className: "Mui-TableBodyCell-DetailPanel", "data-index": renderDetailPanel ? staticRowIndex * 2 + 1 : staticRowIndex, ref: (node) => {
2369
+ var _a;
2370
+ if (node) {
2371
+ (_a = rowVirtualizer === null || rowVirtualizer === void 0 ? void 0 : rowVirtualizer.measureElement) === null || _a === void 0 ? void 0 : _a.call(rowVirtualizer, node);
2372
+ }
2373
+ } }, tableRowProps, { sx: (theme) => {
2374
+ var _a, _b;
2375
+ return (Object.assign({ display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'flex' : undefined, position: virtualRow ? 'absolute' : undefined, top: virtualRow
2376
+ ? `${(_b = (_a = parentRowRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.height}px`
2377
+ : undefined, transform: virtualRow
2378
+ ? `translateY(${virtualRow === null || virtualRow === void 0 ? void 0 : virtualRow.start}px)`
2379
+ : undefined, width: '100%' }, parseFromValuesOrFunc(tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx, theme)));
2380
+ }, children: jsxRuntime.jsx(TableCell__default["default"], Object.assign({ className: "Mui-TableBodyCell-DetailPanel", colSpan: getVisibleLeafColumns().length }, tableCellProps, { sx: (theme) => (Object.assign({ backgroundColor: virtualRow ? baseBackgroundColor : undefined, borderBottom: !row.getIsExpanded() ? 'none' : undefined, display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'flex' : undefined, py: !!DetailPanel && row.getIsExpanded() ? '1rem' : 0, transition: !virtualRow ? 'all 150ms ease-in-out' : undefined, width: `100%` }, parseFromValuesOrFunc(tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.sx, theme))), children: virtualRow ? (row.getIsExpanded() && DetailPanel) : (jsxRuntime.jsx(Collapse__default["default"], { in: row.getIsExpanded(), mountOnEnter: true, unmountOnExit: true, children: DetailPanel })) })) })));
2381
+ };
2382
+
2383
+ const MRT_TableBodyRow = (_a) => {
2384
+ var _b, _c, _d, _f;
2385
+ var { columnVirtualizer, numRows, pinnedRowIds, row, rowVirtualizer, staticRowIndex, table, virtualRow } = _a, rest = __rest(_a, ["columnVirtualizer", "numRows", "pinnedRowIds", "row", "rowVirtualizer", "staticRowIndex", "table", "virtualRow"]);
2386
+ const theme = styles.useTheme();
2387
+ const { getState, options: { enableRowOrdering, enableRowPinning, enableStickyFooter, enableStickyHeader, layoutMode, memoMode, mrtTheme: { baseBackgroundColor, pinnedRowBackgroundColor, selectedRowBackgroundColor, }, muiTableBodyRowProps, renderDetailPanel, rowPinningDisplayMode, }, refs: { tableFooterRef, tableHeadRef }, setHoveredRow, } = table;
2388
+ const { density, draggingColumn, draggingRow, editingCell, editingRow, hoveredRow, isFullScreen, rowPinning, } = getState();
2389
+ const visibleCells = row.getVisibleCells();
2390
+ const { virtualColumns, virtualPaddingLeft, virtualPaddingRight } = columnVirtualizer !== null && columnVirtualizer !== void 0 ? columnVirtualizer : {};
2391
+ const isRowSelected = getIsRowSelected({ row, table });
2392
+ const isRowPinned = enableRowPinning && row.getIsPinned();
2393
+ const isDraggingRow = (draggingRow === null || draggingRow === void 0 ? void 0 : draggingRow.id) === row.id;
2394
+ const isHoveredRow = (hoveredRow === null || hoveredRow === void 0 ? void 0 : hoveredRow.id) === row.id;
2395
+ const tableRowProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableBodyRowProps, {
2396
+ row,
2397
+ staticRowIndex,
2398
+ table,
2399
+ })), rest);
2400
+ const [bottomPinnedIndex, topPinnedIndex] = react.useMemo(() => {
2401
+ if (!enableRowPinning ||
2402
+ !(rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky')) ||
2403
+ !pinnedRowIds ||
2404
+ !row.getIsPinned())
2405
+ return [];
2406
+ return [
2407
+ [...pinnedRowIds].reverse().indexOf(row.id),
2408
+ pinnedRowIds.indexOf(row.id),
2409
+ ];
2410
+ }, [pinnedRowIds, rowPinning]);
2411
+ const tableHeadHeight = ((enableStickyHeader || isFullScreen) &&
2412
+ ((_b = tableHeadRef.current) === null || _b === void 0 ? void 0 : _b.clientHeight)) ||
2413
+ 0;
2414
+ const tableFooterHeight = (enableStickyFooter && ((_c = tableFooterRef.current) === null || _c === void 0 ? void 0 : _c.clientHeight)) || 0;
2415
+ const sx = parseFromValuesOrFunc(tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx, theme);
2416
+ const defaultRowHeight = density === 'compact' ? 37 : density === 'comfortable' ? 53 : 69;
2417
+ const customRowHeight =
2418
+ // @ts-ignore
2419
+ parseInt((_f = (_d = tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.style) === null || _d === void 0 ? void 0 : _d.height) !== null && _f !== void 0 ? _f : sx === null || sx === void 0 ? void 0 : sx.height, 10) || undefined;
2420
+ const rowHeight = customRowHeight || defaultRowHeight;
2421
+ const handleDragEnter = (_e) => {
2422
+ if (enableRowOrdering && draggingRow) {
2423
+ setHoveredRow(row);
2424
+ }
2425
+ };
2426
+ const handleDragOver = (e) => {
2427
+ e.preventDefault();
2428
+ };
2429
+ const rowRef = react.useRef(null);
2430
+ const cellHighlightColor = isRowSelected
2431
+ ? selectedRowBackgroundColor
2432
+ : isRowPinned
2433
+ ? pinnedRowBackgroundColor
2434
+ : undefined;
2435
+ const cellHighlightColorHover = (tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.hover) !== false
2436
+ ? isRowSelected
2437
+ ? cellHighlightColor
2438
+ : theme.palette.mode === 'dark'
2439
+ ? `${styles.lighten(baseBackgroundColor, 0.3)}`
2440
+ : `${styles.darken(baseBackgroundColor, 0.3)}`
2441
+ : undefined;
2442
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(TableRow__default["default"], Object.assign({ "data-index": renderDetailPanel ? staticRowIndex * 2 : staticRowIndex, "data-pinned": !!isRowPinned || undefined, "data-selected": isRowSelected || undefined, onDragEnter: handleDragEnter, onDragOver: handleDragOver, ref: (node) => {
2443
+ if (node) {
2444
+ rowRef.current = node;
2445
+ rowVirtualizer === null || rowVirtualizer === void 0 ? void 0 : rowVirtualizer.measureElement(node);
2446
+ }
2447
+ }, selected: isRowSelected }, tableRowProps, { style: Object.assign({ transform: virtualRow
2448
+ ? `translateY(${virtualRow.start}px)`
2449
+ : undefined }, tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.style), sx: (theme) => (Object.assign({ '&:hover td:after': cellHighlightColorHover
2450
+ ? Object.assign({ backgroundColor: styles.alpha(cellHighlightColorHover, 0.3) }, commonCellBeforeAfterStyles) : undefined, backgroundColor: `${baseBackgroundColor} !important`, bottom: !virtualRow && bottomPinnedIndex !== undefined && isRowPinned
2451
+ ? `${bottomPinnedIndex * rowHeight +
2452
+ (enableStickyFooter ? tableFooterHeight - 1 : 0)}px`
2453
+ : undefined, boxSizing: 'border-box', display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'flex' : undefined, opacity: isRowPinned ? 0.97 : isDraggingRow || isHoveredRow ? 0.5 : 1, position: virtualRow
2454
+ ? 'absolute'
2455
+ : (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky')) && isRowPinned
2456
+ ? 'sticky'
2457
+ : 'relative', td: Object.assign({}, getCommonPinnedCellStyles({ table, theme })), 'td:after': cellHighlightColor
2458
+ ? Object.assign({ backgroundColor: cellHighlightColor }, commonCellBeforeAfterStyles) : undefined, top: virtualRow
2459
+ ? 0
2460
+ : topPinnedIndex !== undefined && isRowPinned
2461
+ ? `${topPinnedIndex * rowHeight +
2462
+ (enableStickyHeader || isFullScreen ? tableHeadHeight - 1 : 0)}px`
2463
+ : undefined, transition: virtualRow ? 'none' : 'all 150ms ease-in-out', width: '100%', zIndex: (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky')) && isRowPinned ? 2 : 0 }, sx)), children: [virtualPaddingLeft ? (jsxRuntime.jsx("td", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : visibleCells).map((cellOrVirtualCell, staticColumnIndex) => {
2464
+ let cell = cellOrVirtualCell;
2465
+ if (columnVirtualizer) {
2466
+ staticColumnIndex = cellOrVirtualCell.index;
2467
+ cell = visibleCells[staticColumnIndex];
2468
+ }
2469
+ const props = {
2470
+ cell,
2471
+ numRows,
2472
+ rowRef,
2473
+ staticColumnIndex,
2474
+ staticRowIndex,
2475
+ table,
2476
+ };
2477
+ return cell ? (memoMode === 'cells' &&
2478
+ cell.column.columnDef.columnDefType === 'data' &&
2479
+ !draggingColumn &&
2480
+ !draggingRow &&
2481
+ (editingCell === null || editingCell === void 0 ? void 0 : editingCell.id) !== cell.id &&
2482
+ (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) !== row.id ? (jsxRuntime.jsx(Memo_MRT_TableBodyCell, Object.assign({}, props), cell.id)) : (jsxRuntime.jsx(MRT_TableBodyCell, Object.assign({}, props), cell.id))) : null;
2483
+ }), virtualPaddingRight ? (jsxRuntime.jsx("td", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })), renderDetailPanel && !row.getIsGrouped() && (jsxRuntime.jsx(MRT_TableDetailPanel, { parentRowRef: rowRef, row: row, rowVirtualizer: rowVirtualizer, staticRowIndex: staticRowIndex, table: table, virtualRow: virtualRow }))] }));
2484
+ };
2485
+ const Memo_MRT_TableBodyRow = react.memo(MRT_TableBodyRow, (prev, next) => prev.row === next.row && prev.staticRowIndex === next.staticRowIndex);
2486
+
2487
+ const MRT_TableBody = (_a) => {
2488
+ var _b, _c, _d, _e, _f, _g;
2489
+ var { columnVirtualizer, table } = _a, rest = __rest(_a, ["columnVirtualizer", "table"]);
2490
+ const { getBottomRows, getIsSomeRowsPinned, getRowModel, getState, getTopRows, options: { enableStickyFooter, enableStickyHeader, layoutMode, localization, memoMode, muiTableBodyProps, renderDetailPanel, renderEmptyRowsFallback, rowPinningDisplayMode, }, refs: { tableFooterRef, tableHeadRef, tablePaperRef }, } = table;
2491
+ const { columnFilters, globalFilter, isFullScreen, rowPinning } = getState();
2492
+ const tableBodyProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableBodyProps, { table })), rest);
2493
+ const tableHeadHeight = ((enableStickyHeader || isFullScreen) &&
2494
+ ((_b = tableHeadRef.current) === null || _b === void 0 ? void 0 : _b.clientHeight)) ||
2495
+ 0;
2496
+ const tableFooterHeight = (enableStickyFooter && ((_c = tableFooterRef.current) === null || _c === void 0 ? void 0 : _c.clientHeight)) || 0;
2497
+ const pinnedRowIds = react.useMemo(() => {
2498
+ var _a, _b;
2499
+ if (!((_a = rowPinning.bottom) === null || _a === void 0 ? void 0 : _a.length) && !((_b = rowPinning.top) === null || _b === void 0 ? void 0 : _b.length))
2500
+ return [];
2501
+ return getRowModel()
2502
+ .rows.filter((row) => row.getIsPinned())
2503
+ .map((r) => r.id);
2504
+ }, [rowPinning, getRowModel().rows]);
2505
+ const rows = useMRT_Rows(table);
2506
+ const rowVirtualizer = useMRT_RowVirtualizer(table, rows);
2507
+ const { virtualRows } = rowVirtualizer !== null && rowVirtualizer !== void 0 ? rowVirtualizer : {};
2508
+ const commonRowProps = {
2509
+ columnVirtualizer,
2510
+ numRows: rows.length,
2511
+ table,
2512
+ };
2513
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [!(rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky')) &&
2514
+ getIsSomeRowsPinned('top') && (jsxRuntime.jsx(TableBody__default["default"], Object.assign({}, tableBodyProps, { sx: (theme) => (Object.assign({ display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined, position: 'sticky', top: tableHeadHeight - 1, zIndex: 1 }, parseFromValuesOrFunc(tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.sx, theme))), children: getTopRows().map((row, staticRowIndex) => {
2515
+ const props = Object.assign(Object.assign({}, commonRowProps), { row,
2516
+ staticRowIndex });
2517
+ return memoMode === 'rows' ? (jsxRuntime.jsx(Memo_MRT_TableBodyRow, Object.assign({}, props), row.id)) : (jsxRuntime.jsx(MRT_TableBodyRow, Object.assign({}, props), row.id));
2518
+ }) }))), jsxRuntime.jsx(TableBody__default["default"], Object.assign({}, tableBodyProps, { sx: (theme) => (Object.assign({ display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined, height: rowVirtualizer
2519
+ ? `${rowVirtualizer.getTotalSize()}px`
2520
+ : undefined, minHeight: !rows.length ? '100px' : undefined, position: 'relative' }, parseFromValuesOrFunc(tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.sx, theme))), children: (_d = tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.children) !== null && _d !== void 0 ? _d : (!rows.length ? (jsxRuntime.jsx("tr", { style: {
2521
+ display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined,
2522
+ }, children: jsxRuntime.jsx("td", { colSpan: table.getVisibleLeafColumns().length, style: {
2523
+ display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined,
2524
+ }, children: (_e = renderEmptyRowsFallback === null || renderEmptyRowsFallback === void 0 ? void 0 : renderEmptyRowsFallback({ table })) !== null && _e !== void 0 ? _e : (jsxRuntime.jsx(Typography__default["default"], { sx: {
2525
+ color: 'text.secondary',
2526
+ fontStyle: 'italic',
2527
+ maxWidth: `min(100vw, ${(_g = (_f = tablePaperRef.current) === null || _f === void 0 ? void 0 : _f.clientWidth) !== null && _g !== void 0 ? _g : 360}px)`,
2528
+ py: '2rem',
2529
+ textAlign: 'center',
2530
+ width: '100%',
2531
+ }, children: globalFilter || columnFilters.length
2532
+ ? localization.noResultsFound
2533
+ : localization.noRecordsToDisplay })) }) })) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: (virtualRows !== null && virtualRows !== void 0 ? virtualRows : rows).map((rowOrVirtualRow, staticRowIndex) => {
2534
+ let row = rowOrVirtualRow;
2535
+ if (rowVirtualizer) {
2536
+ if (renderDetailPanel) {
2537
+ if (rowOrVirtualRow.index % 2 === 1) {
2538
+ return null;
2539
+ }
2540
+ else {
2541
+ staticRowIndex = rowOrVirtualRow.index / 2;
2542
+ }
2543
+ }
2544
+ else {
2545
+ staticRowIndex = rowOrVirtualRow.index;
2546
+ }
2547
+ row = rows[staticRowIndex];
2548
+ }
2549
+ const props = Object.assign(Object.assign({}, commonRowProps), { pinnedRowIds,
2550
+ row,
2551
+ rowVirtualizer,
2552
+ staticRowIndex, virtualRow: rowVirtualizer
2553
+ ? rowOrVirtualRow
2554
+ : undefined });
2555
+ const key = `${row.id}-${row.index}`;
2556
+ return memoMode === 'rows' ? (jsxRuntime.jsx(Memo_MRT_TableBodyRow, Object.assign({}, props), key)) : (jsxRuntime.jsx(MRT_TableBodyRow, Object.assign({}, props), key));
2557
+ }) }))) })), !(rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky')) &&
2558
+ getIsSomeRowsPinned('bottom') && (jsxRuntime.jsx(TableBody__default["default"], Object.assign({}, tableBodyProps, { sx: (theme) => (Object.assign({ bottom: tableFooterHeight - 1, display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined, position: 'sticky', zIndex: 1 }, parseFromValuesOrFunc(tableBodyProps === null || tableBodyProps === void 0 ? void 0 : tableBodyProps.sx, theme))), children: getBottomRows().map((row, staticRowIndex) => {
2559
+ const props = Object.assign(Object.assign({}, commonRowProps), { row,
2560
+ staticRowIndex });
2561
+ return memoMode === 'rows' ? (jsxRuntime.jsx(Memo_MRT_TableBodyRow, Object.assign({}, props), row.id)) : (jsxRuntime.jsx(MRT_TableBodyRow, Object.assign({}, props), row.id));
2562
+ }) })))] }));
2563
+ };
2564
+ const Memo_MRT_TableBody = react.memo(MRT_TableBody, (prev, next) => prev.table.options.data === next.table.options.data);
2565
+
2566
+ const MRT_TableFooterCell = (_a) => {
2567
+ var _b, _c, _d;
2568
+ var { footer, staticColumnIndex, table } = _a, rest = __rest(_a, ["footer", "staticColumnIndex", "table"]);
2569
+ const theme = styles.useTheme();
2570
+ const { getState, options: { enableColumnPinning, muiTableFooterCellProps, enableKeyboardShortcuts, }, } = table;
2571
+ const { density } = getState();
2572
+ const { column } = footer;
2573
+ const { columnDef } = column;
2574
+ const { columnDefType } = columnDef;
2575
+ const isColumnPinned = enableColumnPinning &&
2576
+ columnDef.columnDefType !== 'group' &&
2577
+ column.getIsPinned();
2578
+ const args = { column, table };
2579
+ const tableCellProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableFooterCellProps, args)), parseFromValuesOrFunc(columnDef.muiTableFooterCellProps, args)), rest);
2580
+ return (jsxRuntime.jsx(TableCell__default["default"], Object.assign({ align: columnDefType === 'group'
2581
+ ? 'center'
2582
+ : theme.direction === 'rtl'
2583
+ ? 'right'
2584
+ : 'left', colSpan: footer.colSpan, "data-index": staticColumnIndex, "data-pinned": !!isColumnPinned || undefined, tabIndex: enableKeyboardShortcuts ? 0 : undefined, variant: "footer" }, tableCellProps, { sx: (theme) => (Object.assign(Object.assign({ fontWeight: 'bold', p: density === 'compact'
2585
+ ? '0.5rem'
2586
+ : density === 'comfortable'
2587
+ ? '1rem'
2588
+ : '1.5rem', verticalAlign: 'top' }, getCommonMRTCellStyles({
2589
+ column,
2590
+ header: footer,
2591
+ table,
2592
+ tableCellProps,
2593
+ theme,
2594
+ })), parseFromValuesOrFunc(tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.sx, theme))), children: (_b = tableCellProps.children) !== null && _b !== void 0 ? _b : (footer.isPlaceholder
2595
+ ? null
2596
+ : ((_d = (_c = parseFromValuesOrFunc(columnDef.Footer, {
2597
+ column,
2598
+ footer,
2599
+ table,
2600
+ })) !== null && _c !== void 0 ? _c : columnDef.footer) !== null && _d !== void 0 ? _d : null)) })));
2601
+ };
2602
+
2603
+ const MRT_TableFooterRow = (_a) => {
2604
+ var _b;
2605
+ var { columnVirtualizer, footerGroup, table } = _a, rest = __rest(_a, ["columnVirtualizer", "footerGroup", "table"]);
2606
+ const { options: { layoutMode, mrtTheme: { baseBackgroundColor }, muiTableFooterRowProps, }, } = table;
2607
+ const { virtualColumns, virtualPaddingLeft, virtualPaddingRight } = columnVirtualizer !== null && columnVirtualizer !== void 0 ? columnVirtualizer : {};
2608
+ // if no content in row, skip row
2609
+ if (!((_b = footerGroup.headers) === null || _b === void 0 ? void 0 : _b.some((header) => (typeof header.column.columnDef.footer === 'string' &&
2610
+ !!header.column.columnDef.footer) ||
2611
+ header.column.columnDef.Footer))) {
2612
+ return null;
2613
+ }
2614
+ const tableRowProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableFooterRowProps, {
2615
+ footerGroup,
2616
+ table,
2617
+ })), rest);
2618
+ return (jsxRuntime.jsxs(TableRow__default["default"], Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: baseBackgroundColor, display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'flex' : undefined, position: 'relative', width: '100%' }, parseFromValuesOrFunc(tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx, theme))), children: [virtualPaddingLeft ? (jsxRuntime.jsx("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : footerGroup.headers).map((footerOrVirtualFooter, staticColumnIndex) => {
2619
+ let footer = footerOrVirtualFooter;
2620
+ if (columnVirtualizer) {
2621
+ staticColumnIndex = footerOrVirtualFooter
2622
+ .index;
2623
+ footer = footerGroup.headers[staticColumnIndex];
2624
+ }
2625
+ return footer ? (jsxRuntime.jsx(MRT_TableFooterCell, { footer: footer, staticColumnIndex: staticColumnIndex, table: table }, footer.id)) : null;
2626
+ }), virtualPaddingRight ? (jsxRuntime.jsx("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })));
2627
+ };
2628
+
2629
+ const MRT_TableFooter = (_a) => {
2630
+ var { columnVirtualizer, table } = _a, rest = __rest(_a, ["columnVirtualizer", "table"]);
2631
+ const { getFooterGroups, getState, options: { enableStickyFooter, layoutMode, muiTableFooterProps }, refs: { tableFooterRef }, } = table;
2632
+ const { isFullScreen } = getState();
2633
+ const tableFooterProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableFooterProps, {
2634
+ table,
2635
+ })), rest);
2636
+ const stickFooter = (isFullScreen || enableStickyFooter) && enableStickyFooter !== false;
2637
+ return (jsxRuntime.jsx(TableFooter__default["default"], Object.assign({}, tableFooterProps, { ref: (ref) => {
2638
+ tableFooterRef.current = ref;
2639
+ if (tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.ref) {
2640
+ // @ts-ignore
2641
+ tableFooterProps.ref.current = ref;
2642
+ }
2643
+ }, sx: (theme) => (Object.assign({ bottom: stickFooter ? 0 : undefined, display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined, opacity: stickFooter ? 0.97 : undefined, outline: stickFooter
2644
+ ? theme.palette.mode === 'light'
2645
+ ? `1px solid ${theme.palette.grey[300]}`
2646
+ : `1px solid ${theme.palette.grey[700]}`
2647
+ : undefined, position: stickFooter ? 'sticky' : 'relative', zIndex: stickFooter ? 1 : undefined }, parseFromValuesOrFunc(tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.sx, theme))), children: getFooterGroups().map((footerGroup) => (jsxRuntime.jsx(MRT_TableFooterRow, { columnVirtualizer: columnVirtualizer, footerGroup: footerGroup, table: table }, footerGroup.id))) })));
2648
+ };
2649
+
2650
+ const mrtFilterOptions = (localization) => [
2651
+ {
2652
+ divider: false,
2653
+ label: localization.filterFuzzy,
2654
+ option: 'fuzzy',
2655
+ symbol: '≈',
2656
+ },
2657
+ {
2658
+ divider: false,
2659
+ label: localization.filterContains,
2660
+ option: 'contains',
2661
+ symbol: '*',
2662
+ },
2663
+ {
2664
+ divider: false,
2665
+ label: localization.filterStartsWith,
2666
+ option: 'startsWith',
2667
+ symbol: 'a',
2668
+ },
2669
+ {
2670
+ divider: true,
2671
+ label: localization.filterEndsWith,
2672
+ option: 'endsWith',
2673
+ symbol: 'z',
2674
+ },
2675
+ {
2676
+ divider: false,
2677
+ label: localization.filterEquals,
2678
+ option: 'equals',
2679
+ symbol: '=',
2680
+ },
2681
+ {
2682
+ divider: true,
2683
+ label: localization.filterNotEquals,
2684
+ option: 'notEquals',
2685
+ symbol: '≠',
2686
+ },
2687
+ {
2688
+ divider: false,
2689
+ label: localization.filterBetween,
2690
+ option: 'between',
2691
+ symbol: '⇿',
2692
+ },
2693
+ {
2694
+ divider: true,
2695
+ label: localization.filterBetweenInclusive,
2696
+ option: 'betweenInclusive',
2697
+ symbol: '⬌',
2698
+ },
2699
+ {
2700
+ divider: false,
2701
+ label: localization.filterGreaterThan,
2702
+ option: 'greaterThan',
2703
+ symbol: '>',
2704
+ },
2705
+ {
2706
+ divider: false,
2707
+ label: localization.filterGreaterThanOrEqualTo,
2708
+ option: 'greaterThanOrEqualTo',
2709
+ symbol: '≥',
2710
+ },
2711
+ {
2712
+ divider: false,
2713
+ label: localization.filterLessThan,
2714
+ option: 'lessThan',
2715
+ symbol: '<',
2716
+ },
2717
+ {
2718
+ divider: true,
2719
+ label: localization.filterLessThanOrEqualTo,
2720
+ option: 'lessThanOrEqualTo',
2721
+ symbol: '≤',
2722
+ },
2723
+ {
2724
+ divider: false,
2725
+ label: localization.filterEmpty,
2726
+ option: 'empty',
2727
+ symbol: '∅',
2728
+ },
2729
+ {
2730
+ divider: false,
2731
+ label: localization.filterNotEmpty,
2732
+ option: 'notEmpty',
2733
+ symbol: '!∅',
2734
+ },
2735
+ ];
2736
+ const rangeModes = ['between', 'betweenInclusive', 'inNumberRange'];
2737
+ const emptyModes = ['empty', 'notEmpty'];
2738
+ const arrModes = ['arrIncludesSome', 'arrIncludesAll', 'arrIncludes'];
2739
+ const rangeVariants = ['range-slider', 'date-range', 'datetime-range', 'range'];
2740
+ const MRT_FilterOptionMenu = (_a) => {
2741
+ var _b, _c, _d, _e;
2742
+ var { anchorEl, header, onSelect, setAnchorEl, setFilterValue, table } = _a, rest = __rest(_a, ["anchorEl", "header", "onSelect", "setAnchorEl", "setFilterValue", "table"]);
2743
+ const { getState, options: { columnFilterModeOptions, globalFilterModeOptions, localization, mrtTheme: { menuBackgroundColor }, renderColumnFilterModeMenuItems, renderGlobalFilterModeMenuItems, }, setColumnFilterFns, setGlobalFilterFn, } = table;
2744
+ const { density, globalFilterFn } = getState();
2745
+ const { column } = header !== null && header !== void 0 ? header : {};
2746
+ const { columnDef } = column !== null && column !== void 0 ? column : {};
2747
+ const currentFilterValue = column === null || column === void 0 ? void 0 : column.getFilterValue();
2748
+ let allowedColumnFilterOptions = (_b = columnDef === null || columnDef === void 0 ? void 0 : columnDef.columnFilterModeOptions) !== null && _b !== void 0 ? _b : columnFilterModeOptions;
2749
+ if (rangeVariants.includes(columnDef === null || columnDef === void 0 ? void 0 : columnDef.filterVariant)) {
2750
+ allowedColumnFilterOptions = [
2751
+ ...rangeModes,
2752
+ ...(allowedColumnFilterOptions !== null && allowedColumnFilterOptions !== void 0 ? allowedColumnFilterOptions : []),
2753
+ ].filter((option) => rangeModes.includes(option));
2754
+ }
2755
+ const internalFilterOptions = react.useMemo(() => mrtFilterOptions(localization).filter((filterOption) => columnDef
2756
+ ? allowedColumnFilterOptions === undefined ||
2757
+ (allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.includes(filterOption.option))
2758
+ : (!globalFilterModeOptions ||
2759
+ globalFilterModeOptions.includes(filterOption.option)) &&
2760
+ ['contains', 'fuzzy', 'startsWith'].includes(filterOption.option)), []);
2761
+ const handleSelectFilterMode = (option) => {
2762
+ var _a, _b;
2763
+ const prevFilterMode = (_a = columnDef === null || columnDef === void 0 ? void 0 : columnDef._filterFn) !== null && _a !== void 0 ? _a : '';
2764
+ if (!header || !column) {
2765
+ // global filter mode
2766
+ setGlobalFilterFn(option);
2767
+ }
2768
+ else if (option !== prevFilterMode) {
2769
+ // column filter mode
2770
+ setColumnFilterFns((prev) => (Object.assign(Object.assign({}, prev), { [header.id]: option })));
2771
+ // reset filter value and/or perform new filter render
2772
+ if (emptyModes.includes(option)) {
2773
+ // will now be empty/notEmpty filter mode
2774
+ if (currentFilterValue !== ' ' &&
2775
+ !emptyModes.includes(prevFilterMode)) {
2776
+ column.setFilterValue(' ');
2777
+ }
2778
+ else if (currentFilterValue) {
2779
+ column.setFilterValue(currentFilterValue); // perform new filter render
2780
+ }
2781
+ }
2782
+ else if ((columnDef === null || columnDef === void 0 ? void 0 : columnDef.filterVariant) === 'multi-select' ||
2783
+ arrModes.includes(option)) {
2784
+ // will now be array filter mode
2785
+ if (currentFilterValue instanceof String ||
2786
+ (currentFilterValue === null || currentFilterValue === void 0 ? void 0 : currentFilterValue.length)) {
2787
+ column.setFilterValue([]);
2788
+ setFilterValue === null || setFilterValue === void 0 ? void 0 : setFilterValue([]);
2789
+ }
2790
+ else if (currentFilterValue) {
2791
+ column.setFilterValue(currentFilterValue); // perform new filter render
2792
+ }
2793
+ }
2794
+ else if (((_b = columnDef === null || columnDef === void 0 ? void 0 : columnDef.filterVariant) === null || _b === void 0 ? void 0 : _b.includes('range')) ||
2795
+ rangeModes.includes(option)) {
2796
+ // will now be range filter mode
2797
+ if (!Array.isArray(currentFilterValue) ||
2798
+ (!(currentFilterValue === null || currentFilterValue === void 0 ? void 0 : currentFilterValue.every((v) => v === '')) &&
2799
+ !rangeModes.includes(prevFilterMode))) {
2800
+ column.setFilterValue(['', '']);
2801
+ setFilterValue === null || setFilterValue === void 0 ? void 0 : setFilterValue('');
2802
+ }
2803
+ else {
2804
+ column.setFilterValue(currentFilterValue); // perform new filter render
2805
+ }
2806
+ }
2807
+ else {
2808
+ // will now be single value filter mode
2809
+ if (Array.isArray(currentFilterValue)) {
2810
+ column.setFilterValue('');
2811
+ setFilterValue === null || setFilterValue === void 0 ? void 0 : setFilterValue('');
2812
+ }
2813
+ else if (currentFilterValue === ' ' &&
2814
+ emptyModes.includes(prevFilterMode)) {
2815
+ column.setFilterValue(undefined);
2816
+ }
2817
+ else {
2818
+ column.setFilterValue(currentFilterValue); // perform new filter render
2819
+ }
2820
+ }
2821
+ }
2822
+ setAnchorEl(null);
2823
+ onSelect === null || onSelect === void 0 ? void 0 : onSelect();
2824
+ };
2825
+ const filterOption = !!header && columnDef ? columnDef._filterFn : globalFilterFn;
2826
+ return (jsxRuntime.jsx(Menu__default["default"], Object.assign({ MenuListProps: {
2827
+ dense: density === 'compact',
2828
+ sx: {
2829
+ backgroundColor: menuBackgroundColor,
2830
+ },
2831
+ }, anchorEl: anchorEl, anchorOrigin: { horizontal: 'right', vertical: 'center' }, disableScrollLock: true, onClose: () => setAnchorEl(null), open: !!anchorEl }, rest, { children: (_e = (header && column && columnDef
2832
+ ? ((_d = (_c = columnDef.renderColumnFilterModeMenuItems) === null || _c === void 0 ? void 0 : _c.call(columnDef, {
2833
+ column: column,
2834
+ internalFilterOptions,
2835
+ onSelectFilterMode: handleSelectFilterMode,
2836
+ table,
2837
+ })) !== null && _d !== void 0 ? _d : renderColumnFilterModeMenuItems === null || renderColumnFilterModeMenuItems === void 0 ? void 0 : renderColumnFilterModeMenuItems({
2838
+ column: column,
2839
+ internalFilterOptions,
2840
+ onSelectFilterMode: handleSelectFilterMode,
2841
+ table,
2842
+ }))
2843
+ : renderGlobalFilterModeMenuItems === null || renderGlobalFilterModeMenuItems === void 0 ? void 0 : renderGlobalFilterModeMenuItems({
2844
+ internalFilterOptions,
2845
+ onSelectFilterMode: handleSelectFilterMode,
2846
+ table,
2847
+ }))) !== null && _e !== void 0 ? _e : internalFilterOptions.map(({ divider, label, option, symbol }, index) => (jsxRuntime.jsx(MRT_ActionMenuItem, { divider: divider, icon: symbol, label: label, onClick: () => handleSelectFilterMode(option), selected: option === filterOption, table: table, value: option }, index))) })));
2848
+ };
2849
+
2850
+ const MRT_ColumnActionMenu = (_a) => {
2851
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
2852
+ var { anchorEl, header, setAnchorEl, table } = _a, rest = __rest(_a, ["anchorEl", "header", "setAnchorEl", "table"]);
2853
+ const { getAllLeafColumns, getState, options: { columnFilterDisplayMode, columnFilterModeOptions, enableColumnFilterModes, enableColumnFilters, enableColumnPinning, enableColumnResizing, enableGrouping, enableHiding, enableSorting, enableSortingRemoval, icons: { ClearAllIcon, DynamicFeedIcon, FilterListIcon, FilterListOffIcon, PushPinIcon, RestartAltIcon, SortIcon, ViewColumnIcon, VisibilityOffIcon, }, localization, mrtTheme: { menuBackgroundColor }, renderColumnActionsMenuItems, }, refs: { filterInputRefs }, setColumnFilterFns, setColumnOrder, setColumnSizingInfo, setShowColumnFilters, } = table;
2854
+ const { column } = header;
2855
+ const { columnDef } = column;
2856
+ const { columnSizing, columnVisibility, density, showColumnFilters } = getState();
2857
+ const columnFilterValue = column.getFilterValue();
2858
+ const [filterMenuAnchorEl, setFilterMenuAnchorEl] = react.useState(null);
2859
+ const handleClearSort = () => {
2860
+ column.clearSorting();
2861
+ setAnchorEl(null);
2862
+ };
2863
+ const handleSortAsc = () => {
2864
+ column.toggleSorting(false);
2865
+ setAnchorEl(null);
2866
+ };
2867
+ const handleSortDesc = () => {
2868
+ column.toggleSorting(true);
2869
+ setAnchorEl(null);
2870
+ };
2871
+ const handleResetColumnSize = () => {
2872
+ setColumnSizingInfo((old) => (Object.assign(Object.assign({}, old), { isResizingColumn: false })));
2873
+ column.resetSize();
2874
+ setAnchorEl(null);
2875
+ };
2876
+ const handleHideColumn = () => {
2877
+ column.toggleVisibility(false);
2878
+ setAnchorEl(null);
2879
+ };
2880
+ const handlePinColumn = (pinDirection) => {
2881
+ column.pin(pinDirection);
2882
+ setAnchorEl(null);
2883
+ };
2884
+ const handleGroupByColumn = () => {
2885
+ column.toggleGrouping();
2886
+ setColumnOrder((old) => ['mrt-row-expand', ...old]);
2887
+ setAnchorEl(null);
2888
+ };
2889
+ const handleClearFilter = () => {
2890
+ column.setFilterValue(undefined);
2891
+ setAnchorEl(null);
2892
+ if (['empty', 'notEmpty'].includes(columnDef._filterFn)) {
2893
+ setColumnFilterFns((prev) => {
2894
+ var _a;
2895
+ return (Object.assign(Object.assign({}, prev), { [header.id]: (_a = allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions[0]) !== null && _a !== void 0 ? _a : 'fuzzy' }));
2896
+ });
2897
+ }
2898
+ };
2899
+ const handleFilterByColumn = () => {
2900
+ setShowColumnFilters(true);
2901
+ queueMicrotask(() => { var _a; return (_a = filterInputRefs.current[`${column.id}-0`]) === null || _a === void 0 ? void 0 : _a.focus(); });
2902
+ setAnchorEl(null);
2903
+ };
2904
+ const handleShowAllColumns = () => {
2905
+ getAllLeafColumns()
2906
+ .filter((col) => col.columnDef.enableHiding !== false)
2907
+ .forEach((col) => col.toggleVisibility(true));
2908
+ setAnchorEl(null);
2909
+ };
2910
+ const handleOpenFilterModeMenu = (event) => {
2911
+ event.stopPropagation();
2912
+ setFilterMenuAnchorEl(event.currentTarget);
2913
+ };
2914
+ const isSelectFilter = !!columnDef.filterSelectOptions;
2915
+ const allowedColumnFilterOptions = (_b = columnDef === null || columnDef === void 0 ? void 0 : columnDef.columnFilterModeOptions) !== null && _b !== void 0 ? _b : columnFilterModeOptions;
2916
+ const showFilterModeSubMenu = enableColumnFilterModes &&
2917
+ columnDef.enableColumnFilterModes !== false &&
2918
+ !isSelectFilter &&
2919
+ (allowedColumnFilterOptions === undefined ||
2920
+ !!(allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.length));
2921
+ const internalColumnMenuItems = [
2922
+ ...(enableSorting && column.getCanSort()
2923
+ ? [
2924
+ enableSortingRemoval !== false && (jsxRuntime.jsx(MRT_ActionMenuItem, { icon: jsxRuntime.jsx(ClearAllIcon, {}), label: localization.clearSort, onClick: handleClearSort, table: table }, 0)),
2925
+ jsxRuntime.jsx(MRT_ActionMenuItem, { disabled: column.getIsSorted() === 'asc', icon: jsxRuntime.jsx(SortIcon, { style: { transform: 'rotate(180deg) scaleX(-1)' } }), label: (_c = localization.sortByColumnAsc) === null || _c === void 0 ? void 0 : _c.replace('{column}', String(columnDef.header)), onClick: handleSortAsc, table: table }, 1),
2926
+ jsxRuntime.jsx(MRT_ActionMenuItem, { disabled: column.getIsSorted() === 'desc', divider: enableColumnFilters || enableGrouping || enableHiding, icon: jsxRuntime.jsx(SortIcon, {}), label: (_d = localization.sortByColumnDesc) === null || _d === void 0 ? void 0 : _d.replace('{column}', String(columnDef.header)), onClick: handleSortDesc, table: table }, 2),
2927
+ ]
2928
+ : []),
2929
+ ...(enableColumnFilters && column.getCanFilter()
2930
+ ? [
2931
+ jsxRuntime.jsx(MRT_ActionMenuItem, { disabled: !columnFilterValue ||
2932
+ (Array.isArray(columnFilterValue) &&
2933
+ !columnFilterValue.filter((value) => value).length), icon: jsxRuntime.jsx(FilterListOffIcon, {}), label: localization.clearFilter, onClick: handleClearFilter, table: table }, 3),
2934
+ columnFilterDisplayMode === 'subheader' && (jsxRuntime.jsx(MRT_ActionMenuItem, { disabled: showColumnFilters && !enableColumnFilterModes, divider: enableGrouping || enableHiding, icon: jsxRuntime.jsx(FilterListIcon, {}), label: (_e = localization.filterByColumn) === null || _e === void 0 ? void 0 : _e.replace('{column}', String(columnDef.header)), onClick: showColumnFilters
2935
+ ? handleOpenFilterModeMenu
2936
+ : handleFilterByColumn, onOpenSubMenu: showFilterModeSubMenu ? handleOpenFilterModeMenu : undefined, table: table }, 4)),
2937
+ showFilterModeSubMenu && (jsxRuntime.jsx(MRT_FilterOptionMenu, { anchorEl: filterMenuAnchorEl, header: header, onSelect: handleFilterByColumn, setAnchorEl: setFilterMenuAnchorEl, table: table }, 5)),
2938
+ ].filter(Boolean)
2939
+ : []),
2940
+ ...(enableGrouping && column.getCanGroup()
2941
+ ? [
2942
+ jsxRuntime.jsx(MRT_ActionMenuItem, { divider: enableColumnPinning, icon: jsxRuntime.jsx(DynamicFeedIcon, {}), label: (_f = localization[column.getIsGrouped() ? 'ungroupByColumn' : 'groupByColumn']) === null || _f === void 0 ? void 0 : _f.replace('{column}', String(columnDef.header)), onClick: handleGroupByColumn, table: table }, 6),
2943
+ ]
2944
+ : []),
2945
+ ...(enableColumnPinning && column.getCanPin()
2946
+ ? [
2947
+ jsxRuntime.jsx(MRT_ActionMenuItem, { disabled: column.getIsPinned() === 'left' || !column.getCanPin(), icon: jsxRuntime.jsx(PushPinIcon, { style: { transform: 'rotate(90deg)' } }), label: localization.pinToLeft, onClick: () => handlePinColumn('left'), table: table }, 7),
2948
+ jsxRuntime.jsx(MRT_ActionMenuItem, { disabled: column.getIsPinned() === 'right' || !column.getCanPin(), icon: jsxRuntime.jsx(PushPinIcon, { style: { transform: 'rotate(-90deg)' } }), label: localization.pinToRight, onClick: () => handlePinColumn('right'), table: table }, 8),
2949
+ jsxRuntime.jsx(MRT_ActionMenuItem, { disabled: !column.getIsPinned(), divider: enableHiding, icon: jsxRuntime.jsx(PushPinIcon, {}), label: localization.unpin, onClick: () => handlePinColumn(false), table: table }, 9),
2950
+ ]
2951
+ : []),
2952
+ ...(enableColumnResizing && column.getCanResize()
2953
+ ? [
2954
+ jsxRuntime.jsx(MRT_ActionMenuItem, { disabled: !columnSizing[column.id], icon: jsxRuntime.jsx(RestartAltIcon, {}), label: localization.resetColumnSize, onClick: handleResetColumnSize, table: table }, 10),
2955
+ ]
2956
+ : []),
2957
+ ...(enableHiding
2958
+ ? [
2959
+ jsxRuntime.jsx(MRT_ActionMenuItem, { disabled: !column.getCanHide(), icon: jsxRuntime.jsx(VisibilityOffIcon, {}), label: (_g = localization.hideColumn) === null || _g === void 0 ? void 0 : _g.replace('{column}', String(columnDef.header)), onClick: handleHideColumn, table: table }, 11),
2960
+ jsxRuntime.jsx(MRT_ActionMenuItem, { disabled: !Object.values(columnVisibility).filter((visible) => !visible)
2961
+ .length, icon: jsxRuntime.jsx(ViewColumnIcon, {}), label: (_h = localization.showAllColumns) === null || _h === void 0 ? void 0 : _h.replace('{column}', String(columnDef.header)), onClick: handleShowAllColumns, table: table }, 12),
2962
+ ]
2963
+ : []),
2964
+ ].filter(Boolean);
2965
+ return (jsxRuntime.jsx(Menu__default["default"], Object.assign({ MenuListProps: {
2966
+ dense: density === 'compact',
2967
+ sx: {
2968
+ backgroundColor: menuBackgroundColor,
2969
+ },
2970
+ }, anchorEl: anchorEl, disableScrollLock: true, onClose: () => setAnchorEl(null), open: !!anchorEl }, rest, { children: (_l = (_k = (_j = columnDef.renderColumnActionsMenuItems) === null || _j === void 0 ? void 0 : _j.call(columnDef, {
2971
+ closeMenu: () => setAnchorEl(null),
2972
+ column,
2973
+ internalColumnMenuItems,
2974
+ table,
2975
+ })) !== null && _k !== void 0 ? _k : renderColumnActionsMenuItems === null || renderColumnActionsMenuItems === void 0 ? void 0 : renderColumnActionsMenuItems({
2976
+ closeMenu: () => setAnchorEl(null),
2977
+ column,
2978
+ internalColumnMenuItems,
2979
+ table,
2980
+ })) !== null && _l !== void 0 ? _l : internalColumnMenuItems })));
2981
+ };
2982
+
2983
+ const MRT_TableHeadCellColumnActionsButton = (_a) => {
2984
+ var _b, _c;
2985
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
2986
+ const { options: { icons: { MoreVertIcon }, localization, muiColumnActionsButtonProps, }, } = table;
2987
+ const { column } = header;
2988
+ const { columnDef } = column;
2989
+ const [anchorEl, setAnchorEl] = react.useState(null);
2990
+ const handleClick = (event) => {
2991
+ event.stopPropagation();
2992
+ event.preventDefault();
2993
+ setAnchorEl(event.currentTarget);
2994
+ };
2995
+ const iconButtonProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiColumnActionsButtonProps, {
2996
+ column,
2997
+ table,
2998
+ })), parseFromValuesOrFunc(columnDef.muiColumnActionsButtonProps, {
2999
+ column,
3000
+ table,
3001
+ })), rest);
3002
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], Object.assign({}, getCommonTooltipProps('top'), { title: (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _b !== void 0 ? _b : localization.columnActions, children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ "aria-label": localization.columnActions, onClick: handleClick, size: "small" }, iconButtonProps, { sx: (theme) => (Object.assign({ '&:hover': {
3003
+ opacity: 1,
3004
+ }, height: '2rem', m: '-8px -4px', opacity: 0.3, transition: 'all 150ms', width: '2rem' }, parseFromValuesOrFunc(iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx, theme))), title: undefined, children: (_c = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _c !== void 0 ? _c : (jsxRuntime.jsx(MoreVertIcon, { style: { transform: 'scale(0.9)' } })) })) })), anchorEl && (jsxRuntime.jsx(MRT_ColumnActionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table }))] }));
3005
+ };
3006
+
3007
+ const MRT_FilterCheckbox = (_a) => {
3008
+ var _b, _c, _d;
3009
+ var { column, table } = _a, rest = __rest(_a, ["column", "table"]);
3010
+ const { getState, options: { localization, muiFilterCheckboxProps }, } = table;
3011
+ const { density } = getState();
3012
+ const { columnDef } = column;
3013
+ const checkboxProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiFilterCheckboxProps, {
3014
+ column,
3015
+ table,
3016
+ })), parseFromValuesOrFunc(columnDef.muiFilterCheckboxProps, {
3017
+ column,
3018
+ table,
3019
+ })), rest);
3020
+ const filterLabel = (_b = localization.filterByColumn) === null || _b === void 0 ? void 0 : _b.replace('{column}', columnDef.header);
3021
+ return (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({}, getCommonTooltipProps(), { title: (_c = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _c !== void 0 ? _c : filterLabel, children: jsxRuntime.jsx(FormControlLabel__default["default"], { control: jsxRuntime.jsx(Checkbox__default["default"], Object.assign({ checked: column.getFilterValue() === 'true', color: column.getFilterValue() === undefined ? 'default' : 'primary', indeterminate: column.getFilterValue() === undefined, size: density === 'compact' ? 'small' : 'medium' }, checkboxProps, { onChange: (e, checked) => {
3022
+ var _a;
3023
+ column.setFilterValue(column.getFilterValue() === undefined
3024
+ ? 'true'
3025
+ : column.getFilterValue() === 'true'
3026
+ ? 'false'
3027
+ : undefined);
3028
+ (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onChange) === null || _a === void 0 ? void 0 : _a.call(checkboxProps, e, checked);
3029
+ }, onClick: (e) => {
3030
+ var _a;
3031
+ e.stopPropagation();
3032
+ (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a === void 0 ? void 0 : _a.call(checkboxProps, e);
3033
+ }, sx: (theme) => (Object.assign({ height: '2.5rem', width: '2.5rem' }, parseFromValuesOrFunc(checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx, theme))) })), disableTypography: true, label: (_d = checkboxProps.title) !== null && _d !== void 0 ? _d : filterLabel, sx: { color: 'text.secondary', fontWeight: 'normal', mt: '-4px' }, title: undefined }) })));
3034
+ };
3035
+
3036
+ const MRT_FilterTextField = (_a) => {
3037
+ var _b, _c, _d, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
3038
+ var { header, rangeFilterIndex, table } = _a, rest = __rest(_a, ["header", "rangeFilterIndex", "table"]);
3039
+ const { options: { enableColumnFilterModes, icons: { CloseIcon, FilterListIcon }, localization, manualFiltering, muiFilterAutocompleteProps, muiFilterDatePickerProps, muiFilterDateTimePickerProps, muiFilterTextFieldProps, muiFilterTimePickerProps, }, refs: { filterInputRefs }, setColumnFilterFns, } = table;
3040
+ const { column } = header;
3041
+ const { columnDef } = column;
3042
+ const { filterVariant } = columnDef;
3043
+ const args = { column, rangeFilterIndex, table };
3044
+ const textFieldProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiFilterTextFieldProps, args)), parseFromValuesOrFunc(columnDef.muiFilterTextFieldProps, args)), rest);
3045
+ const autocompleteProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiFilterAutocompleteProps, args)), parseFromValuesOrFunc(columnDef.muiFilterAutocompleteProps, args));
3046
+ const datePickerProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiFilterDatePickerProps, args)), parseFromValuesOrFunc(columnDef.muiFilterDatePickerProps, args));
3047
+ const dateTimePickerProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiFilterDateTimePickerProps, args)), parseFromValuesOrFunc(columnDef.muiFilterDateTimePickerProps, args));
3048
+ const timePickerProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiFilterTimePickerProps, args)), parseFromValuesOrFunc(columnDef.muiFilterTimePickerProps, args));
3049
+ const { allowedColumnFilterOptions, currentFilterOption, facetedUniqueValues, isAutocompleteFilter, isDateFilter, isMultiSelectFilter, isRangeFilter, isSelectFilter, isTextboxFilter, } = getColumnFilterInfo({ header, table });
3050
+ const dropdownOptions = useDropdownOptions({ header, table });
3051
+ const filterChipLabel = ['empty', 'notEmpty'].includes(currentFilterOption)
3052
+ ? //@ts-ignore
3053
+ localization[`filter${((_c = (_b = currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.charAt) === null || _b === void 0 ? void 0 : _b.call(currentFilterOption, 0)) === null || _c === void 0 ? void 0 : _c.toUpperCase()) +
3054
+ (currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.slice(1))}`]
3055
+ : '';
3056
+ const filterPlaceholder = !isRangeFilter
3057
+ ? ((_d = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.placeholder) !== null && _d !== void 0 ? _d : (_f = localization.filterByColumn) === null || _f === void 0 ? void 0 : _f.replace('{column}', String(columnDef.header)))
3058
+ : rangeFilterIndex === 0
3059
+ ? localization.min
3060
+ : rangeFilterIndex === 1
3061
+ ? localization.max
3062
+ : '';
3063
+ const showChangeModeButton = !!(enableColumnFilterModes &&
3064
+ columnDef.enableColumnFilterModes !== false &&
3065
+ !rangeFilterIndex &&
3066
+ (allowedColumnFilterOptions === undefined ||
3067
+ !!(allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.length)));
3068
+ const [anchorEl, setAnchorEl] = react.useState(null);
3069
+ const [filterValue, setFilterValue] = react.useState(() => {
3070
+ var _a, _b;
3071
+ return isMultiSelectFilter
3072
+ ? column.getFilterValue() || []
3073
+ : isRangeFilter
3074
+ ? ((_a = column.getFilterValue()) === null || _a === void 0 ? void 0 : _a[rangeFilterIndex]) || ''
3075
+ : ((_b = column.getFilterValue()) !== null && _b !== void 0 ? _b : '');
3076
+ });
3077
+ const [autocompleteValue, setAutocompleteValue] = react.useState(isAutocompleteFilter ? filterValue : null);
3078
+ const handleChangeDebounced = react.useCallback(utils.debounce((newValue) => {
3079
+ if (isRangeFilter) {
3080
+ column.setFilterValue((old) => {
3081
+ const newFilterValues = old !== null && old !== void 0 ? old : ['', ''];
3082
+ newFilterValues[rangeFilterIndex] = newValue !== null && newValue !== void 0 ? newValue : undefined;
3083
+ return newFilterValues;
3084
+ });
3085
+ }
3086
+ else {
3087
+ column.setFilterValue(newValue !== null && newValue !== void 0 ? newValue : undefined);
3088
+ }
3089
+ }, isTextboxFilter ? (manualFiltering ? 400 : 200) : 1), []);
3090
+ const handleChange = (newValue) => {
3091
+ setFilterValue(newValue !== null && newValue !== void 0 ? newValue : '');
3092
+ handleChangeDebounced(newValue);
3093
+ };
3094
+ const handleTextFieldChange = (event) => {
3095
+ var _a;
3096
+ const newValue = textFieldProps.type === 'date'
3097
+ ? event.target.valueAsDate
3098
+ : textFieldProps.type === 'number'
3099
+ ? event.target.valueAsNumber
3100
+ : event.target.value;
3101
+ handleChange(newValue);
3102
+ (_a = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.onChange) === null || _a === void 0 ? void 0 : _a.call(textFieldProps, event);
3103
+ };
3104
+ const handleAutocompleteChange = (newValue) => {
3105
+ setAutocompleteValue(newValue);
3106
+ handleChange(getValueAndLabel(newValue).value);
3107
+ };
3108
+ const handleClear = () => {
3109
+ if (isMultiSelectFilter) {
3110
+ setFilterValue([]);
3111
+ column.setFilterValue([]);
3112
+ }
3113
+ else if (isRangeFilter) {
3114
+ setFilterValue('');
3115
+ column.setFilterValue((old) => {
3116
+ const newFilterValues = (Array.isArray(old) && old) || ['', ''];
3117
+ newFilterValues[rangeFilterIndex] = undefined;
3118
+ return newFilterValues;
3119
+ });
3120
+ }
3121
+ else {
3122
+ setFilterValue('');
3123
+ column.setFilterValue(undefined);
3124
+ }
3125
+ };
3126
+ const handleClearEmptyFilterChip = () => {
3127
+ setFilterValue('');
3128
+ column.setFilterValue(undefined);
3129
+ setColumnFilterFns((prev) => {
3130
+ var _a;
3131
+ return (Object.assign(Object.assign({}, prev), { [header.id]: (_a = allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions[0]) !== null && _a !== void 0 ? _a : 'fuzzy' }));
3132
+ });
3133
+ };
3134
+ const handleFilterMenuOpen = (event) => {
3135
+ setAnchorEl(event.currentTarget);
3136
+ };
3137
+ const isMounted = react.useRef(false);
3138
+ react.useEffect(() => {
3139
+ if (isMounted.current) {
3140
+ const filterValue = column.getFilterValue();
3141
+ if (filterValue === undefined) {
3142
+ handleClear();
3143
+ }
3144
+ else if (isRangeFilter && rangeFilterIndex !== undefined) {
3145
+ setFilterValue(filterValue[rangeFilterIndex]);
3146
+ }
3147
+ else {
3148
+ setFilterValue(filterValue);
3149
+ }
3150
+ }
3151
+ isMounted.current = true;
3152
+ }, [column.getFilterValue()]);
3153
+ if (columnDef.Filter) {
3154
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: (_g = columnDef.Filter) === null || _g === void 0 ? void 0 : _g.call(columnDef, { column, header, rangeFilterIndex, table }) }));
3155
+ }
3156
+ const endAdornment = !isAutocompleteFilter && !isDateFilter && !filterChipLabel ? (jsxRuntime.jsx(InputAdornment__default["default"], { position: "end", sx: { mr: isSelectFilter || isMultiSelectFilter ? '20px' : undefined }, children: jsxRuntime.jsx(Tooltip__default["default"], { placement: "right", title: (_h = localization.clearFilter) !== null && _h !== void 0 ? _h : '', children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(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: {
3157
+ height: '2rem',
3158
+ transform: 'scale(0.9)',
3159
+ width: '2rem',
3160
+ }, children: jsxRuntime.jsx(CloseIcon, {}) }) }) }) })) : null;
3161
+ const startAdornment = showChangeModeButton ? (jsxRuntime.jsxs(InputAdornment__default["default"], { position: "start", children: [jsxRuntime.jsx(Tooltip__default["default"], { title: localization.changeFilterMode, children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], { "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"], { label: filterChipLabel, onDelete: handleClearEmptyFilterChip }))] })) : null;
3162
+ const commonTextFieldProps = Object.assign(Object.assign({ FormHelperTextProps: {
3163
+ sx: {
3164
+ fontSize: '0.75rem',
3165
+ lineHeight: '0.8rem',
3166
+ whiteSpace: 'nowrap',
3167
+ },
3168
+ }, InputProps: endAdornment //hack because mui looks for presence of endAdornment key instead of undefined
3169
+ ? { endAdornment, startAdornment }
3170
+ : { startAdornment }, fullWidth: true, helperText: showChangeModeButton ? (jsxRuntime.jsx("label", { children: localization.filterMode.replace('{filterType}',
3171
+ // @ts-ignore
3172
+ localization[`filter${((_k = currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.charAt(0)) === null || _k === void 0 ? void 0 : _k.toUpperCase()) +
3173
+ (currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.slice(1))}`]) })) : null, inputProps: {
3174
+ 'aria-label': filterPlaceholder,
3175
+ autoComplete: 'new-password', // disable autocomplete and autofill
3176
+ disabled: !!filterChipLabel,
3177
+ sx: {
3178
+ textOverflow: 'ellipsis',
3179
+ width: filterChipLabel ? 0 : undefined,
3180
+ },
3181
+ title: filterPlaceholder,
3182
+ }, inputRef: (inputRef) => {
3183
+ filterInputRefs.current[`${column.id}-${rangeFilterIndex !== null && rangeFilterIndex !== void 0 ? rangeFilterIndex : 0}`] =
3184
+ inputRef;
3185
+ if (textFieldProps.inputRef) {
3186
+ textFieldProps.inputRef = inputRef;
3187
+ }
3188
+ }, margin: 'none', placeholder: filterChipLabel || isSelectFilter || isMultiSelectFilter
3189
+ ? undefined
3190
+ : filterPlaceholder, variant: 'standard' }, textFieldProps), { sx: (theme) => (Object.assign({ minWidth: isDateFilter
3191
+ ? '160px'
3192
+ : enableColumnFilterModes && rangeFilterIndex === 0
3193
+ ? '110px'
3194
+ : isRangeFilter
3195
+ ? '100px'
3196
+ : !filterChipLabel
3197
+ ? '120px'
3198
+ : 'auto', mx: '-2px', p: 0, width: 'calc(100% + 4px)' }, parseFromValuesOrFunc(textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.sx, theme))) });
3199
+ const commonDatePickerProps = {
3200
+ onChange: (newDate) => {
3201
+ handleChange(newDate);
3202
+ },
3203
+ value: filterValue || null,
3204
+ };
3205
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [(filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.startsWith('time')) ? (jsxRuntime.jsx(TimePicker.TimePicker, Object.assign({}, commonDatePickerProps, timePickerProps, { slotProps: {
3206
+ field: Object.assign({ clearable: true, onClear: () => handleClear() }, (_l = timePickerProps === null || timePickerProps === void 0 ? void 0 : timePickerProps.slotProps) === null || _l === void 0 ? void 0 : _l.field),
3207
+ textField: Object.assign(Object.assign({}, commonTextFieldProps), (_m = timePickerProps === null || timePickerProps === void 0 ? void 0 : timePickerProps.slotProps) === null || _m === void 0 ? void 0 : _m.textField),
3208
+ } }))) : (filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.startsWith('datetime')) ? (jsxRuntime.jsx(DateTimePicker.DateTimePicker, Object.assign({}, commonDatePickerProps, dateTimePickerProps, { slotProps: {
3209
+ field: Object.assign({ clearable: true, onClear: () => handleClear() }, (_o = dateTimePickerProps === null || dateTimePickerProps === void 0 ? void 0 : dateTimePickerProps.slotProps) === null || _o === void 0 ? void 0 : _o.field),
3210
+ textField: Object.assign(Object.assign({}, commonTextFieldProps), (_p = dateTimePickerProps === null || dateTimePickerProps === void 0 ? void 0 : dateTimePickerProps.slotProps) === null || _p === void 0 ? void 0 : _p.textField),
3211
+ } }))) : (filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.startsWith('date')) ? (jsxRuntime.jsx(DatePicker.DatePicker, Object.assign({}, commonDatePickerProps, datePickerProps, { slotProps: {
3212
+ field: Object.assign({ clearable: true, onClear: () => handleClear() }, (_q = datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.slotProps) === null || _q === void 0 ? void 0 : _q.field),
3213
+ textField: Object.assign(Object.assign({}, commonTextFieldProps), (_r = datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.slotProps) === null || _r === void 0 ? void 0 : _r.textField),
3214
+ } }))) : isAutocompleteFilter ? (jsxRuntime.jsx(Autocomplete__default["default"], Object.assign({ freeSolo: true, getOptionLabel: (option) => getValueAndLabel(option).label, onChange: (_e, newValue) => handleAutocompleteChange(newValue), options: (_s = dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.map((option) => getValueAndLabel(option))) !== null && _s !== void 0 ? _s : [] }, autocompleteProps, { renderInput: (builtinTextFieldProps) => {
3215
+ var _a;
3216
+ return (jsxRuntime.jsx(TextField__default["default"], Object.assign({}, builtinTextFieldProps, commonTextFieldProps, { InputProps: Object.assign(Object.assign({}, builtinTextFieldProps.InputProps), { startAdornment: (_a = commonTextFieldProps === null || commonTextFieldProps === void 0 ? void 0 : commonTextFieldProps.InputProps) === null || _a === void 0 ? void 0 : _a.startAdornment }), inputProps: Object.assign(Object.assign({}, builtinTextFieldProps.inputProps), commonTextFieldProps === null || commonTextFieldProps === void 0 ? void 0 : commonTextFieldProps.inputProps), onChange: handleTextFieldChange, onClick: (e) => e.stopPropagation() })));
3217
+ }, value: autocompleteValue }))) : (jsxRuntime.jsx(TextField__default["default"], Object.assign({ select: isSelectFilter || isMultiSelectFilter }, commonTextFieldProps, { SelectProps: Object.assign({ MenuProps: { disableScrollLock: true }, displayEmpty: true, multiple: isMultiSelectFilter, renderValue: isMultiSelectFilter
3218
+ ? (selected) => !(selected === null || selected === void 0 ? void 0 : selected.length) ? (jsxRuntime.jsx(Box__default["default"], { sx: { opacity: 0.5 }, children: filterPlaceholder })) : (jsxRuntime.jsx(Box__default["default"], { sx: { display: 'flex', flexWrap: 'wrap', gap: '2px' }, children: selected === null || selected === void 0 ? void 0 : selected.map((value) => {
3219
+ const selectedValue = dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.find((option) => getValueAndLabel(option).value === value);
3220
+ return (jsxRuntime.jsx(Chip__default["default"], { label: getValueAndLabel(selectedValue).label }, value));
3221
+ }) }))
3222
+ : undefined }, commonTextFieldProps.SelectProps), onChange: handleTextFieldChange, onClick: (e) => e.stopPropagation(), value: filterValue !== null && filterValue !== void 0 ? filterValue : '', children: (isSelectFilter || isMultiSelectFilter) && [
3223
+ jsxRuntime.jsx(MenuItem__default["default"], { disabled: true, divider: true, hidden: true, value: "", children: jsxRuntime.jsx(Box__default["default"], { sx: { opacity: 0.5 }, children: filterPlaceholder }) }, "p"),
3224
+ ...[
3225
+ (_t = textFieldProps.children) !== null && _t !== void 0 ? _t : dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.map((option, index) => {
3226
+ var _a;
3227
+ const { label, value } = getValueAndLabel(option);
3228
+ return (jsxRuntime.jsxs(MenuItem__default["default"], { sx: {
3229
+ alignItems: 'center',
3230
+ display: 'flex',
3231
+ gap: '0.5rem',
3232
+ m: 0,
3233
+ }, value: value, children: [isMultiSelectFilter && (jsxRuntime.jsx(Checkbox__default["default"], { checked: ((_a = column.getFilterValue()) !== null && _a !== void 0 ? _a : []).includes(value), sx: { mr: '0.5rem' } })), label, ' ', !columnDef.filterSelectOptions &&
3234
+ `(${facetedUniqueValues.get(value)})`] }, `${index}-${value}`));
3235
+ }),
3236
+ ],
3237
+ ] }))), jsxRuntime.jsx(MRT_FilterOptionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, setFilterValue: setFilterValue, table: table })] }));
3238
+ };
3239
+
3240
+ const MRT_FilterRangeFields = (_a) => {
3241
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
3242
+ return (jsxRuntime.jsx(Box__default["default"], Object.assign({}, rest, { sx: (theme) => (Object.assign({ display: 'grid', gap: '1rem', gridTemplateColumns: '1fr 1fr' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: [0, 1].map((rangeFilterIndex) => (jsxRuntime.jsx(MRT_FilterTextField, { header: header, rangeFilterIndex: rangeFilterIndex, table: table }, rangeFilterIndex))) })));
3243
+ };
3244
+
3245
+ const MRT_FilterRangeSlider = (_a) => {
3246
+ var _b, _c;
3247
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
3248
+ const { options: { enableColumnFilterModes, localization, muiFilterSliderProps }, refs: { filterInputRefs }, } = table;
3249
+ const { column } = header;
3250
+ const { columnDef } = column;
3251
+ const currentFilterOption = columnDef._filterFn;
3252
+ const showChangeModeButton = enableColumnFilterModes && columnDef.enableColumnFilterModes !== false;
3253
+ const sliderProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiFilterSliderProps, { column, table })), parseFromValuesOrFunc(columnDef.muiFilterSliderProps, { column, table })), rest);
3254
+ let [min, max] = sliderProps.min !== undefined && sliderProps.max !== undefined
3255
+ ? [sliderProps.min, sliderProps.max]
3256
+ : ((_b = column.getFacetedMinMaxValues()) !== null && _b !== void 0 ? _b : [0, 1]);
3257
+ //fix potential TanStack Table bugs where min or max is an array
3258
+ if (Array.isArray(min))
3259
+ min = min[0];
3260
+ if (Array.isArray(max))
3261
+ max = max[0];
3262
+ if (min === null)
3263
+ min = 0;
3264
+ if (max === null)
3265
+ max = 1;
3266
+ const [filterValues, setFilterValues] = react.useState([min, max]);
3267
+ const columnFilterValue = column.getFilterValue();
3268
+ const isMounted = react.useRef(false);
3269
+ react.useEffect(() => {
3270
+ if (isMounted.current) {
3271
+ if (columnFilterValue === undefined) {
3272
+ setFilterValues([min, max]);
3273
+ }
3274
+ else if (Array.isArray(columnFilterValue)) {
3275
+ setFilterValues(columnFilterValue);
3276
+ }
3277
+ }
3278
+ isMounted.current = true;
3279
+ }, [columnFilterValue, min, max]);
3280
+ return (jsxRuntime.jsxs(Stack__default["default"], { children: [jsxRuntime.jsx(Slider__default["default"], Object.assign({ disableSwap: true, max: max, min: min, onChange: (_event, values) => {
3281
+ setFilterValues(values);
3282
+ }, onChangeCommitted: (_event, value) => {
3283
+ if (Array.isArray(value)) {
3284
+ if (value[0] <= min && value[1] >= max) {
3285
+ //if the user has selected the entire range, remove the filter
3286
+ column.setFilterValue(undefined);
3287
+ }
3288
+ else {
3289
+ column.setFilterValue(value);
3290
+ }
3291
+ }
3292
+ }, value: filterValues, valueLabelDisplay: "auto" }, sliderProps, { slotProps: {
3293
+ input: {
3294
+ ref: (node) => {
3295
+ var _a, _b;
3296
+ if (node) {
3297
+ filterInputRefs.current[`${column.id}-0`] = node;
3298
+ // @ts-ignore
3299
+ if ((_b = (_a = sliderProps === null || sliderProps === void 0 ? void 0 : sliderProps.slotProps) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.ref) {
3300
+ //@ts-ignore
3301
+ sliderProps.slotProps.input.ref = node;
3302
+ }
3303
+ }
3304
+ },
3305
+ },
3306
+ }, sx: (theme) => (Object.assign({ m: 'auto', minWidth: `${column.getSize() - 50}px`, mt: !showChangeModeButton ? '10px' : '6px', px: '4px', width: 'calc(100% - 8px)' }, parseFromValuesOrFunc(sliderProps === null || sliderProps === void 0 ? void 0 : sliderProps.sx, theme))) })), showChangeModeButton ? (jsxRuntime.jsx(FormHelperText__default["default"], { sx: {
3307
+ fontSize: '0.75rem',
3308
+ lineHeight: '0.8rem',
3309
+ m: '-3px -6px',
3310
+ whiteSpace: 'nowrap',
3311
+ }, children: localization.filterMode.replace('{filterType}',
3312
+ // @ts-ignore
3313
+ localization[`filter${((_c = currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.charAt(0)) === null || _c === void 0 ? void 0 : _c.toUpperCase()) +
3314
+ (currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.slice(1))}`]) })) : null] }));
3315
+ };
3316
+
3317
+ const MRT_TableHeadCellFilterContainer = (_a) => {
3318
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
3319
+ const { getState, options: { columnFilterDisplayMode }, } = table;
3320
+ const { showColumnFilters } = getState();
3321
+ const { column } = header;
3322
+ const { columnDef } = column;
3323
+ const { isRangeFilter } = getColumnFilterInfo({ header, table });
3324
+ return (jsxRuntime.jsx(Collapse__default["default"], Object.assign({ in: showColumnFilters || columnFilterDisplayMode === 'popover', mountOnEnter: true, unmountOnExit: true }, rest, { children: columnDef.filterVariant === 'checkbox' ? (jsxRuntime.jsx(MRT_FilterCheckbox, { column: column, table: table })) : columnDef.filterVariant === 'range-slider' ? (jsxRuntime.jsx(MRT_FilterRangeSlider, { header: header, table: table })) : isRangeFilter ? (jsxRuntime.jsx(MRT_FilterRangeFields, { header: header, table: table })) : (jsxRuntime.jsx(MRT_FilterTextField, { header: header, table: table })) })));
3325
+ };
3326
+
3327
+ const MRT_TableHeadCellFilterLabel = (_a) => {
3328
+ var _b, _c;
3329
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
3330
+ const { options: { columnFilterDisplayMode, icons: { FilterAltIcon }, localization, }, refs: { filterInputRefs }, setShowColumnFilters, } = table;
3331
+ const { column } = header;
3332
+ const { columnDef } = column;
3333
+ const filterValue = column.getFilterValue();
3334
+ const [anchorEl, setAnchorEl] = react.useState(null);
3335
+ const { currentFilterOption, isMultiSelectFilter, isRangeFilter, isSelectFilter, } = getColumnFilterInfo({ header, table });
3336
+ const dropdownOptions = useDropdownOptions({ header, table });
3337
+ const getSelectLabel = (index) => getValueAndLabel(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.find((option) => getValueAndLabel(option).value ===
3338
+ (index !== undefined ? filterValue[index] : filterValue))).label;
3339
+ const isFilterActive = (Array.isArray(filterValue) && filterValue.some(Boolean)) ||
3340
+ (!!filterValue && !Array.isArray(filterValue));
3341
+ const filterTooltip = columnFilterDisplayMode === 'popover' && !isFilterActive
3342
+ ? (_b = localization.filterByColumn) === null || _b === void 0 ? void 0 : _b.replace('{column}', String(columnDef.header))
3343
+ : localization.filteringByColumn
3344
+ .replace('{column}', String(columnDef.header))
3345
+ .replace('{filterType}', currentFilterOption
3346
+ ? // @ts-ignore
3347
+ localization[`filter${((_c = currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.charAt(0)) === null || _c === void 0 ? void 0 : _c.toUpperCase()) +
3348
+ (currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.slice(1))}`]
3349
+ : '')
3350
+ .replace('{filterValue}', `"${Array.isArray(filterValue)
3351
+ ? filterValue
3352
+ .map((value, index) => isMultiSelectFilter ? getSelectLabel(index) : value)
3353
+ .join(`" ${isRangeFilter ? localization.and : localization.or} "`)
3354
+ : isSelectFilter
3355
+ ? getSelectLabel()
3356
+ : filterValue}"`)
3357
+ .replace('" "', '');
3358
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Grow__default["default"], { in: columnFilterDisplayMode === 'popover' ||
3359
+ (!!filterValue && !isRangeFilter) ||
3360
+ (isRangeFilter && // @ts-ignore
3361
+ (!!(filterValue === null || filterValue === void 0 ? void 0 : filterValue[0]) || !!(filterValue === null || filterValue === void 0 ? void 0 : filterValue[1]))), unmountOnExit: true, children: jsxRuntime.jsx(Box__default["default"], { component: "span", sx: { flex: '0 0' }, children: jsxRuntime.jsx(Tooltip__default["default"], { placement: "top", title: filterTooltip, children: jsxRuntime.jsx(IconButton__default["default"], Object.assign({ disableRipple: true, onClick: (event) => {
3362
+ if (columnFilterDisplayMode === 'popover') {
3363
+ setAnchorEl(event.currentTarget);
3364
+ }
3365
+ else {
3366
+ setShowColumnFilters(true);
3367
+ }
3368
+ queueMicrotask(() => {
3369
+ var _a, _b, _c, _d;
3370
+ (_b = (_a = filterInputRefs.current[`${column.id}-0`]) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
3371
+ (_d = (_c = filterInputRefs.current[`${column.id}-0`]) === null || _c === void 0 ? void 0 : _c.select) === null || _d === void 0 ? void 0 : _d.call(_c);
3372
+ });
3373
+ event.stopPropagation();
3374
+ }, size: "small" }, rest, { sx: (theme) => (Object.assign({ height: '16px', ml: '4px', opacity: isFilterActive ? 1 : 0.3, p: '8px', transform: 'scale(0.75)', transition: 'all 150ms ease-in-out', width: '16px' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: jsxRuntime.jsx(FilterAltIcon, {}) })) }) }) }), columnFilterDisplayMode === 'popover' && (jsxRuntime.jsx(Popover__default["default"], { anchorEl: anchorEl, anchorOrigin: {
3375
+ horizontal: 'center',
3376
+ vertical: 'top',
3377
+ }, disableScrollLock: true, onClick: (event) => event.stopPropagation(), onClose: (event) => {
3378
+ //@ts-ignore
3379
+ event.stopPropagation();
3380
+ setAnchorEl(null);
3381
+ }, onKeyDown: (event) => event.key === 'Enter' && setAnchorEl(null), open: !!anchorEl, slotProps: { paper: { sx: { overflow: 'visible' } } }, transformOrigin: {
3382
+ horizontal: 'center',
3383
+ vertical: 'bottom',
3384
+ }, children: jsxRuntime.jsx(Box__default["default"], { sx: { p: '1rem' }, children: jsxRuntime.jsx(MRT_TableHeadCellFilterContainer, { header: header, table: table }) }) }))] }));
3385
+ };
3386
+
3387
+ const MRT_TableHeadCellGrabHandle = (_a) => {
3388
+ var { column, table, tableHeadCellRef } = _a, rest = __rest(_a, ["column", "table", "tableHeadCellRef"]);
3389
+ const { getState, options: { enableColumnOrdering, muiColumnDragHandleProps }, setColumnOrder, setDraggingColumn, setHoveredColumn, } = table;
3390
+ const { columnDef } = column;
3391
+ const { columnOrder, draggingColumn, hoveredColumn } = getState();
3392
+ const iconButtonProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiColumnDragHandleProps, { column, table })), parseFromValuesOrFunc(columnDef.muiColumnDragHandleProps, {
3393
+ column,
3394
+ table,
3395
+ })), rest);
3396
+ const handleDragStart = (event) => {
3397
+ var _a;
3398
+ (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onDragStart) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
3399
+ setDraggingColumn(column);
3400
+ try {
3401
+ event.dataTransfer.setDragImage(tableHeadCellRef.current, 0, 0);
3402
+ }
3403
+ catch (e) {
3404
+ console.error(e);
3405
+ }
3406
+ };
3407
+ const handleDragEnd = (event) => {
3408
+ var _a;
3409
+ (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onDragEnd) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
3410
+ if ((hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === 'drop-zone') {
3411
+ column.toggleGrouping();
3412
+ }
3413
+ else if (enableColumnOrdering &&
3414
+ hoveredColumn &&
3415
+ (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) !== (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id)) {
3416
+ setColumnOrder(reorderColumn(column, hoveredColumn, columnOrder));
3417
+ }
3418
+ setDraggingColumn(null);
3419
+ setHoveredColumn(null);
3420
+ };
3421
+ return (jsxRuntime.jsx(MRT_GrabHandleButton, Object.assign({}, iconButtonProps, { onDragEnd: handleDragEnd, onDragStart: handleDragStart, table: table })));
3422
+ };
3423
+
3424
+ const MRT_TableHeadCellResizeHandle = (_a) => {
3425
+ var _b;
3426
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
3427
+ const { getState, options: { columnResizeDirection, columnResizeMode }, setColumnSizingInfo, } = table;
3428
+ const { density } = getState();
3429
+ const { column } = header;
3430
+ const handler = header.getResizeHandler();
3431
+ const mx = density === 'compact'
3432
+ ? '-8px'
3433
+ : density === 'comfortable'
3434
+ ? '-16px'
3435
+ : '-24px';
3436
+ const lr = column.columnDef.columnDefType === 'display' ? '4px' : '0';
3437
+ return (jsxRuntime.jsx(Box__default["default"], { className: "Mui-TableHeadCell-ResizeHandle-Wrapper", onDoubleClick: () => {
3438
+ setColumnSizingInfo((old) => (Object.assign(Object.assign({}, old), { isResizingColumn: false })));
3439
+ column.resetSize();
3440
+ }, onMouseDown: handler, onTouchStart: handler, style: {
3441
+ transform: column.getIsResizing() && columnResizeMode === 'onEnd'
3442
+ ? `translateX(${(columnResizeDirection === 'rtl' ? -1 : 1) *
3443
+ ((_b = getState().columnSizingInfo.deltaOffset) !== null && _b !== void 0 ? _b : 0)}px)`
3444
+ : undefined,
3445
+ }, sx: (theme) => ({
3446
+ '&:active > hr': {
3447
+ backgroundColor: theme.palette.info.main,
3448
+ opacity: header.subHeaders.length || columnResizeMode === 'onEnd' ? 1 : 0,
3449
+ },
3450
+ cursor: 'col-resize',
3451
+ left: columnResizeDirection === 'rtl' ? lr : undefined,
3452
+ ml: columnResizeDirection === 'rtl' ? mx : undefined,
3453
+ mr: columnResizeDirection === 'ltr' ? mx : undefined,
3454
+ position: 'absolute',
3455
+ px: '4px',
3456
+ right: columnResizeDirection === 'ltr' ? lr : undefined,
3457
+ }), children: jsxRuntime.jsx(Divider__default["default"], { className: "Mui-TableHeadCell-ResizeHandle-Divider", flexItem: true, orientation: "vertical", sx: (theme) => (Object.assign({ borderRadius: '2px', borderWidth: '2px', height: '24px', touchAction: 'none', transform: 'translateX(4px)', transition: column.getIsResizing()
3458
+ ? undefined
3459
+ : 'all 150ms ease-in-out', userSelect: 'none', zIndex: 4 }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))) }) }));
3460
+ };
3461
+
3462
+ const MRT_TableHeadCellSortLabel = (_a) => {
3463
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
3464
+ const { getState, options: { icons: { ArrowDownwardIcon, SyncAltIcon }, localization, }, } = table;
3465
+ const { column } = header;
3466
+ const { columnDef } = column;
3467
+ const { isLoading, showSkeletons, sorting } = getState();
3468
+ const isSorted = !!column.getIsSorted();
3469
+ const sortTooltip = isLoading || showSkeletons
3470
+ ? ''
3471
+ : column.getIsSorted()
3472
+ ? column.getIsSorted() === 'desc'
3473
+ ? localization.sortedByColumnDesc.replace('{column}', columnDef.header)
3474
+ : localization.sortedByColumnAsc.replace('{column}', columnDef.header)
3475
+ : column.getNextSortingOrder() === 'desc'
3476
+ ? localization.sortByColumnDesc.replace('{column}', columnDef.header)
3477
+ : localization.sortByColumnAsc.replace('{column}', columnDef.header);
3478
+ const direction = isSorted
3479
+ ? column.getIsSorted()
3480
+ : undefined;
3481
+ return (jsxRuntime.jsx(Tooltip__default["default"], { placement: "top", title: sortTooltip, children: jsxRuntime.jsx(Badge__default["default"], { badgeContent: sorting.length > 1 ? column.getSortIndex() + 1 : 0, overlap: "circular", children: jsxRuntime.jsx(TableSortLabel__default["default"], Object.assign({ IconComponent: !isSorted
3482
+ ? (props) => (jsxRuntime.jsx(SyncAltIcon, Object.assign({}, props, { direction: direction, style: {
3483
+ transform: 'rotate(-90deg) scaleX(0.9) translateX(-1px)',
3484
+ } })))
3485
+ : ArrowDownwardIcon, active: true, "aria-label": sortTooltip, direction: direction, onClick: (e) => {
3486
+ var _a;
3487
+ e.stopPropagation();
3488
+ (_a = header.column.getToggleSortingHandler()) === null || _a === void 0 ? void 0 : _a(e);
3489
+ } }, rest, { sx: (theme) => (Object.assign({ '.MuiTableSortLabel-icon': {
3490
+ color: `${theme.palette.mode === 'dark'
3491
+ ? theme.palette.text.primary
3492
+ : theme.palette.text.secondary} !important`,
3493
+ }, flex: '0 0', opacity: isSorted ? 1 : 0.3, transition: 'all 150ms ease-in-out', width: '3ch' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))) })) }) }));
3494
+ };
3495
+
3496
+ const MRT_TableHeadCell = (_a) => {
3497
+ var _b, _c, _d, _f, _g, _h;
3498
+ var { columnVirtualizer, header, staticColumnIndex, table } = _a, rest = __rest(_a, ["columnVirtualizer", "header", "staticColumnIndex", "table"]);
3499
+ const theme = styles.useTheme();
3500
+ const { getState, options: { columnFilterDisplayMode, columnResizeDirection, columnResizeMode, enableColumnActions, enableColumnDragging, enableColumnOrdering, enableColumnPinning, enableKeyboardShortcuts, enableGrouping, enableMultiSort, layoutMode, mrtTheme: { draggingBorderColor }, muiTableHeadCellProps, }, refs: { tableHeadCellRefs }, setHoveredColumn, } = table;
3501
+ const { columnSizingInfo, density, draggingColumn, grouping, hoveredColumn, showColumnFilters, } = getState();
3502
+ const { column } = header;
3503
+ const { columnDef } = column;
3504
+ const { columnDefType } = columnDef;
3505
+ const tableCellProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableHeadCellProps, { column, table })), parseFromValuesOrFunc(columnDef.muiTableHeadCellProps, {
3506
+ column,
3507
+ table,
3508
+ })), rest);
3509
+ const isColumnPinned = enableColumnPinning &&
3510
+ columnDef.columnDefType !== 'group' &&
3511
+ column.getIsPinned();
3512
+ const showColumnActions = (enableColumnActions || columnDef.enableColumnActions) &&
3513
+ columnDef.enableColumnActions !== false;
3514
+ const showDragHandle = enableColumnDragging !== false &&
3515
+ columnDef.enableColumnDragging !== false &&
3516
+ (enableColumnDragging ||
3517
+ (enableColumnOrdering && columnDef.enableColumnOrdering !== false) ||
3518
+ (enableGrouping &&
3519
+ columnDef.enableGrouping !== false &&
3520
+ !grouping.includes(column.id)));
3521
+ const headerPL = react.useMemo(() => {
3522
+ let pl = 0;
3523
+ if (column.getCanSort())
3524
+ pl += 1;
3525
+ if (showColumnActions)
3526
+ pl += 1.75;
3527
+ if (showDragHandle)
3528
+ pl += 1.5;
3529
+ return pl;
3530
+ }, [showColumnActions, showDragHandle]);
3531
+ const draggingBorders = react.useMemo(() => {
3532
+ const showResizeBorder = columnSizingInfo.isResizingColumn === column.id &&
3533
+ columnResizeMode === 'onChange' &&
3534
+ !header.subHeaders.length;
3535
+ const borderStyle = showResizeBorder
3536
+ ? `2px solid ${draggingBorderColor} !important`
3537
+ : (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) === column.id
3538
+ ? `1px dashed ${theme.palette.grey[500]}`
3539
+ : (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id
3540
+ ? `2px dashed ${draggingBorderColor}`
3541
+ : undefined;
3542
+ if (showResizeBorder) {
3543
+ return columnResizeDirection === 'ltr'
3544
+ ? { borderRight: borderStyle }
3545
+ : { borderLeft: borderStyle };
3546
+ }
3547
+ const draggingBorders = borderStyle
3548
+ ? {
3549
+ borderLeft: borderStyle,
3550
+ borderRight: borderStyle,
3551
+ borderTop: borderStyle,
3552
+ }
3553
+ : undefined;
3554
+ return draggingBorders;
3555
+ }, [draggingColumn, hoveredColumn, columnSizingInfo.isResizingColumn]);
3556
+ const handleDragEnter = (_e) => {
3557
+ if (enableGrouping && (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === 'drop-zone') {
3558
+ setHoveredColumn(null);
3559
+ }
3560
+ if (enableColumnOrdering && draggingColumn && columnDefType !== 'group') {
3561
+ setHoveredColumn(columnDef.enableColumnOrdering !== false ? column : null);
3562
+ }
3563
+ };
3564
+ const handleDragOver = (e) => {
3565
+ if (columnDef.enableColumnOrdering !== false) {
3566
+ e.preventDefault();
3567
+ }
3568
+ };
3569
+ const HeaderElement = (_b = parseFromValuesOrFunc(columnDef.Header, {
3570
+ column,
3571
+ header,
3572
+ table,
3573
+ })) !== null && _b !== void 0 ? _b : columnDef.header;
3574
+ return (jsxRuntime.jsxs(TableCell__default["default"], Object.assign({ align: columnDefType === 'group'
3575
+ ? 'center'
3576
+ : theme.direction === 'rtl'
3577
+ ? 'right'
3578
+ : 'left', "aria-sort": column.getIsSorted()
3579
+ ? column.getIsSorted() === 'asc'
3580
+ ? 'ascending'
3581
+ : 'descending'
3582
+ : 'none', colSpan: header.colSpan, "data-can-sort": column.getCanSort() || undefined, "data-index": staticColumnIndex, "data-pinned": !!isColumnPinned || undefined, tabIndex: enableKeyboardShortcuts ? 0 : undefined, "data-sort": column.getIsSorted() || undefined, onDragEnter: handleDragEnter, onDragOver: handleDragOver, ref: (node) => {
3583
+ var _a;
3584
+ if (node) {
3585
+ tableHeadCellRefs.current[column.id] = node;
3586
+ if (columnDefType !== 'group') {
3587
+ (_a = columnVirtualizer === null || columnVirtualizer === void 0 ? void 0 : columnVirtualizer.measureElement) === null || _a === void 0 ? void 0 : _a.call(columnVirtualizer, node);
3588
+ }
3589
+ }
3590
+ } }, tableCellProps, { sx: (theme) => (Object.assign(Object.assign({ '& :hover': {
3591
+ '.MuiButtonBase-root': {
3592
+ opacity: 1,
3593
+ },
3594
+ }, flexDirection: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'column' : undefined, fontWeight: 'bold', overflow: 'visible', p: density === 'compact'
3595
+ ? '0.5rem'
3596
+ : density === 'comfortable'
3597
+ ? columnDefType === 'display'
3598
+ ? '0.75rem'
3599
+ : '1rem'
3600
+ : columnDefType === 'display'
3601
+ ? '1rem 1.25rem'
3602
+ : '1.5rem', pb: columnDefType === 'display'
3603
+ ? 0
3604
+ : showColumnFilters || density === 'compact'
3605
+ ? '0.4rem'
3606
+ : '0.6rem', pt: columnDefType === 'group' || density === 'compact'
3607
+ ? '0.25rem'
3608
+ : density === 'comfortable'
3609
+ ? '.75rem'
3610
+ : '1.25rem', userSelect: enableMultiSort && column.getCanSort() ? 'none' : undefined, verticalAlign: 'top' }, getCommonMRTCellStyles({
3611
+ column,
3612
+ header,
3613
+ table,
3614
+ tableCellProps,
3615
+ theme,
3616
+ })), draggingBorders)), children: [header.isPlaceholder
3617
+ ? null
3618
+ : ((_c = tableCellProps.children) !== null && _c !== void 0 ? _c : (jsxRuntime.jsxs(Box__default["default"], { className: "Mui-TableHeadCell-Content", sx: {
3619
+ alignItems: 'center',
3620
+ display: 'flex',
3621
+ flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
3622
+ justifyContent: columnDefType === 'group' ||
3623
+ (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
3624
+ ? 'center'
3625
+ : column.getCanResize()
3626
+ ? 'space-between'
3627
+ : 'flex-start',
3628
+ position: 'relative',
3629
+ width: '100%',
3630
+ }, children: [jsxRuntime.jsxs(Box__default["default"], { className: "Mui-TableHeadCell-Content-Labels", onClick: column.getToggleSortingHandler(), sx: {
3631
+ alignItems: 'center',
3632
+ cursor: column.getCanSort() && columnDefType !== 'group'
3633
+ ? 'pointer'
3634
+ : undefined,
3635
+ display: 'flex',
3636
+ flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
3637
+ overflow: columnDefType === 'data' ? 'hidden' : undefined,
3638
+ pl: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
3639
+ ? `${headerPL}rem`
3640
+ : undefined,
3641
+ }, children: [jsxRuntime.jsx(Box__default["default"], { className: "Mui-TableHeadCell-Content-Wrapper", sx: {
3642
+ '&:hover': {
3643
+ textOverflow: 'clip',
3644
+ },
3645
+ minWidth: `${Math.min((_f = (_d = columnDef.header) === null || _d === void 0 ? void 0 : _d.length) !== null && _f !== void 0 ? _f : 0, 4)}ch`,
3646
+ overflow: columnDefType === 'data' ? 'hidden' : undefined,
3647
+ textOverflow: 'ellipsis',
3648
+ whiteSpace: ((_h = (_g = columnDef.header) === null || _g === void 0 ? void 0 : _g.length) !== null && _h !== void 0 ? _h : 0) < 20
3649
+ ? 'nowrap'
3650
+ : 'normal',
3651
+ }, children: HeaderElement }), column.getCanFilter() && (jsxRuntime.jsx(MRT_TableHeadCellFilterLabel, { header: header, table: table })), column.getCanSort() && (jsxRuntime.jsx(MRT_TableHeadCellSortLabel, { header: header, table: table }))] }), columnDefType !== 'group' && (jsxRuntime.jsxs(Box__default["default"], { className: "Mui-TableHeadCell-Content-Actions", sx: {
3652
+ whiteSpace: 'nowrap',
3653
+ }, children: [showDragHandle && (jsxRuntime.jsx(MRT_TableHeadCellGrabHandle, { column: column, table: table, tableHeadCellRef: {
3654
+ current: tableHeadCellRefs.current[column.id],
3655
+ } })), showColumnActions && (jsxRuntime.jsx(MRT_TableHeadCellColumnActionsButton, { header: header, table: table }))] })), column.getCanResize() && (jsxRuntime.jsx(MRT_TableHeadCellResizeHandle, { header: header, table: table }))] }))), columnFilterDisplayMode === 'subheader' && column.getCanFilter() && (jsxRuntime.jsx(MRT_TableHeadCellFilterContainer, { header: header, table: table }))] })));
3656
+ };
3657
+
3658
+ const MRT_TableHeadRow = (_a) => {
3659
+ var { columnVirtualizer, headerGroup, table } = _a, rest = __rest(_a, ["columnVirtualizer", "headerGroup", "table"]);
3660
+ const { options: { enableStickyHeader, layoutMode, mrtTheme: { baseBackgroundColor }, muiTableHeadRowProps, }, } = table;
3661
+ const { virtualColumns, virtualPaddingLeft, virtualPaddingRight } = columnVirtualizer !== null && columnVirtualizer !== void 0 ? columnVirtualizer : {};
3662
+ const tableRowProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableHeadRowProps, {
3663
+ headerGroup,
3664
+ table,
3665
+ })), rest);
3666
+ return (jsxRuntime.jsxs(TableRow__default["default"], Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: baseBackgroundColor, boxShadow: `4px 0 8px ${styles.alpha(theme.palette.common.black, 0.1)}`, display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'flex' : undefined, position: enableStickyHeader && layoutMode === 'semantic'
3667
+ ? 'sticky'
3668
+ : 'relative', top: 0 }, parseFromValuesOrFunc(tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx, theme))), children: [virtualPaddingLeft ? (jsxRuntime.jsx("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : headerGroup.headers).map((headerOrVirtualHeader, staticColumnIndex) => {
3669
+ let header = headerOrVirtualHeader;
3670
+ if (columnVirtualizer) {
3671
+ staticColumnIndex = headerOrVirtualHeader
3672
+ .index;
3673
+ header = headerGroup.headers[staticColumnIndex];
3674
+ }
3675
+ return header ? (jsxRuntime.jsx(MRT_TableHeadCell, { columnVirtualizer: columnVirtualizer, header: header, staticColumnIndex: staticColumnIndex, table: table }, header.id)) : null;
3676
+ }), virtualPaddingRight ? (jsxRuntime.jsx("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })));
3677
+ };
3678
+
3679
+ const MRT_ToolbarAlertBanner = (_a) => {
3680
+ var _b, _c, _d;
3681
+ var { stackAlertBanner, table } = _a, rest = __rest(_a, ["stackAlertBanner", "table"]);
3682
+ const { getFilteredSelectedRowModel, getPrePaginationRowModel, getState, options: { enableRowSelection, enableSelectAll, localization, manualPagination, muiToolbarAlertBannerChipProps, muiToolbarAlertBannerProps, positionToolbarAlertBanner, renderToolbarAlertBannerContent, rowCount, }, refs: { tablePaperRef }, } = table;
3683
+ const { density, grouping, rowSelection, showAlertBanner } = getState();
3684
+ const alertProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiToolbarAlertBannerProps, {
3685
+ table,
3686
+ })), rest);
3687
+ const chipProps = parseFromValuesOrFunc(muiToolbarAlertBannerChipProps, {
3688
+ table,
3689
+ });
3690
+ const totalRowCount = rowCount !== null && rowCount !== void 0 ? rowCount : getPrePaginationRowModel().flatRows.length;
3691
+ const selectedRowCount = react.useMemo(() => manualPagination
3692
+ ? Object.values(rowSelection).filter(Boolean).length
3693
+ : getFilteredSelectedRowModel().rows.length, [rowSelection, totalRowCount, manualPagination]);
3694
+ const selectedAlert = selectedRowCount > 0 ? (jsxRuntime.jsxs(Stack__default["default"], { alignItems: "center", direction: "row", gap: "16px", children: [(_c = (_b = localization.selectedCountOfRowCountRowsSelected) === null || _b === void 0 ? void 0 : _b.replace('{selectedCount}', selectedRowCount.toLocaleString())) === null || _c === void 0 ? void 0 : _c.replace('{rowCount}', totalRowCount.toString()), jsxRuntime.jsx(Button__default["default"], { onClick: (event) => getMRT_SelectAllHandler({ table })(event, false, true), size: "small", sx: { p: '2px' }, children: localization.clearSelection })] })) : null;
3695
+ const groupedAlert = 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;
3696
+ return (jsxRuntime.jsx(Collapse__default["default"], { in: showAlertBanner || !!selectedAlert || !!groupedAlert, timeout: stackAlertBanner ? 200 : 0, children: jsxRuntime.jsx(Alert__default["default"], Object.assign({ color: "info", icon: false }, alertProps, { sx: (theme) => {
3697
+ var _a, _b;
3698
+ return (Object.assign({ '& .MuiAlert-message': {
3699
+ maxWidth: `calc(${(_b = (_a = tablePaperRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth) !== null && _b !== void 0 ? _b : 360}px - 1rem)`,
3700
+ width: '100%',
3701
+ }, borderRadius: 0, fontSize: '1rem', left: 0, mb: stackAlertBanner
3702
+ ? 0
3703
+ : positionToolbarAlertBanner === 'bottom'
3704
+ ? '-1rem'
3705
+ : undefined, p: 0, position: 'relative', right: 0, top: 0, width: '100%', zIndex: 2 }, parseFromValuesOrFunc(alertProps === null || alertProps === void 0 ? void 0 : alertProps.sx, theme)));
3706
+ }, children: (_d = renderToolbarAlertBannerContent === null || renderToolbarAlertBannerContent === void 0 ? void 0 : renderToolbarAlertBannerContent({
3707
+ groupedAlert,
3708
+ selectedAlert,
3709
+ table,
3710
+ })) !== null && _d !== void 0 ? _d : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [(alertProps === null || alertProps === void 0 ? void 0 : alertProps.title) && jsxRuntime.jsx(AlertTitle__default["default"], { children: alertProps.title }), jsxRuntime.jsxs(Stack__default["default"], { sx: {
3711
+ p: positionToolbarAlertBanner !== 'head-overlay'
3712
+ ? '0.5rem 1rem'
3713
+ : density === 'spacious'
3714
+ ? '0.75rem 1.25rem'
3715
+ : density === 'comfortable'
3716
+ ? '0.5rem 0.75rem'
3717
+ : '0.25rem 0.5rem',
3718
+ }, children: [alertProps === null || alertProps === void 0 ? void 0 : alertProps.children, (alertProps === null || alertProps === void 0 ? void 0 : alertProps.children) && (selectedAlert || groupedAlert) && (jsxRuntime.jsx("br", {})), jsxRuntime.jsxs(Box__default["default"], { sx: { display: 'flex' }, children: [enableRowSelection &&
3719
+ enableSelectAll &&
3720
+ positionToolbarAlertBanner === 'head-overlay' && (jsxRuntime.jsx(MRT_SelectCheckbox, { table: table })), ' ', selectedAlert] }), selectedAlert && groupedAlert && jsxRuntime.jsx("br", {}), groupedAlert] })] })) })) }));
3721
+ };
3722
+
3723
+ const MRT_TableHead = (_a) => {
3724
+ var { columnVirtualizer, table } = _a, rest = __rest(_a, ["columnVirtualizer", "table"]);
3725
+ const { getState, options: { enableStickyHeader, layoutMode, muiTableHeadProps, positionToolbarAlertBanner, }, refs: { tableHeadRef }, } = table;
3726
+ const { isFullScreen, showAlertBanner } = getState();
3727
+ const tableHeadProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableHeadProps, { table })), rest);
3728
+ const stickyHeader = enableStickyHeader || isFullScreen;
3729
+ return (jsxRuntime.jsx(TableHead__default["default"], Object.assign({}, tableHeadProps, { ref: (ref) => {
3730
+ tableHeadRef.current = ref;
3731
+ if (tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.ref) {
3732
+ // @ts-ignore
3733
+ tableHeadProps.ref.current = ref;
3734
+ }
3735
+ }, sx: (theme) => (Object.assign({ display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined, opacity: 0.97, position: stickyHeader ? 'sticky' : 'relative', top: stickyHeader && (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 0 : undefined, zIndex: stickyHeader ? 2 : undefined }, parseFromValuesOrFunc(tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.sx, theme))), children: positionToolbarAlertBanner === 'head-overlay' &&
3736
+ (showAlertBanner || table.getSelectedRowModel().rows.length > 0) ? (jsxRuntime.jsx("tr", { style: {
3737
+ display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined,
3738
+ }, children: jsxRuntime.jsx("th", { colSpan: table.getVisibleLeafColumns().length, style: {
3739
+ display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined,
3740
+ padding: 0,
3741
+ }, children: jsxRuntime.jsx(MRT_ToolbarAlertBanner, { table: table }) }) })) : (table
3742
+ .getHeaderGroups()
3743
+ .map((headerGroup) => (jsxRuntime.jsx(MRT_TableHeadRow, { columnVirtualizer: columnVirtualizer, headerGroup: headerGroup, table: table }, headerGroup.id)))) })));
3744
+ };
3745
+
3746
+ const MRT_Table = (_a) => {
3747
+ var { table } = _a, rest = __rest(_a, ["table"]);
3748
+ const { getFlatHeaders, getState, options: { columns, enableStickyHeader, enableTableFooter, enableTableHead, layoutMode, memoMode, muiTableProps, renderCaption, }, } = table;
3749
+ const { columnSizing, columnSizingInfo, columnVisibility, isFullScreen } = getState();
3750
+ const tableProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableProps, { table })), rest);
3751
+ const Caption = parseFromValuesOrFunc(renderCaption, { table });
3752
+ const columnSizeVars = react.useMemo(() => {
3753
+ const headers = getFlatHeaders();
3754
+ const colSizes = {};
3755
+ for (let i = 0; i < headers.length; i++) {
3756
+ const header = headers[i];
3757
+ const colSize = header.getSize();
3758
+ colSizes[`--header-${parseCSSVarId(header.id)}-size`] = colSize;
3759
+ colSizes[`--col-${parseCSSVarId(header.column.id)}-size`] = colSize;
3760
+ }
3761
+ return colSizes;
3762
+ }, [columns, columnSizing, columnSizingInfo, columnVisibility]);
3763
+ const columnVirtualizer = useMRT_ColumnVirtualizer(table);
3764
+ const commonTableGroupProps = {
3765
+ columnVirtualizer,
3766
+ table,
3767
+ };
3768
+ return (jsxRuntime.jsxs(Table__default["default"], Object.assign({ stickyHeader: enableStickyHeader || isFullScreen }, tableProps, { style: Object.assign(Object.assign({}, columnSizeVars), tableProps === null || tableProps === void 0 ? void 0 : tableProps.style), sx: (theme) => (Object.assign({ borderCollapse: 'separate', display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined, position: 'relative' }, parseFromValuesOrFunc(tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx, theme))), children: [!!Caption && jsxRuntime.jsx("caption", { children: Caption }), enableTableHead && jsxRuntime.jsx(MRT_TableHead, Object.assign({}, commonTableGroupProps)), memoMode === 'table-body' || columnSizingInfo.isResizingColumn ? (jsxRuntime.jsx(Memo_MRT_TableBody, Object.assign({}, commonTableGroupProps))) : (jsxRuntime.jsx(MRT_TableBody, Object.assign({}, commonTableGroupProps))), enableTableFooter && jsxRuntime.jsx(MRT_TableFooter, Object.assign({}, commonTableGroupProps))] })));
3769
+ };
3770
+
3771
+ const MRT_TableLoadingOverlay = (_a) => {
3772
+ var _b;
3773
+ var { table } = _a, rest = __rest(_a, ["table"]);
3774
+ const { options: { localization, mrtTheme: { baseBackgroundColor }, muiCircularProgressProps, }, } = table;
3775
+ const circularProgressProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiCircularProgressProps, { table })), rest);
3776
+ return (jsxRuntime.jsx(Box__default["default"], { sx: {
3777
+ alignItems: 'center',
3778
+ backgroundColor: styles.alpha(baseBackgroundColor, 0.5),
3779
+ bottom: 0,
3780
+ display: 'flex',
3781
+ justifyContent: 'center',
3782
+ left: 0,
3783
+ maxHeight: '100vh',
3784
+ position: 'absolute',
3785
+ right: 0,
3786
+ top: 0,
3787
+ width: '100%',
3788
+ zIndex: 3,
3789
+ }, children: (_b = circularProgressProps === null || circularProgressProps === void 0 ? void 0 : circularProgressProps.Component) !== null && _b !== void 0 ? _b : (jsxRuntime.jsx(CircularProgress__default["default"], Object.assign({ "aria-label": localization.noRecordsToDisplay, id: "mrt-progress" }, circularProgressProps))) }));
3790
+ };
3791
+
3792
+ const MRT_CellActionMenu = (_a) => {
3793
+ var _b, _c;
3794
+ var { table } = _a, rest = __rest(_a, ["table"]);
3795
+ const { getState, options: { editDisplayMode, enableClickToCopy, enableEditing, icons: { ContentCopy, EditIcon }, localization, mrtTheme: { menuBackgroundColor }, renderCellActionMenuItems, }, refs: { actionCellRef }, } = table;
3796
+ const { actionCell, density } = getState();
3797
+ const cell = actionCell;
3798
+ const { row } = cell;
3799
+ const { column } = cell;
3800
+ const { columnDef } = column;
3801
+ const handleClose = (event) => {
3802
+ event === null || event === void 0 ? void 0 : event.stopPropagation();
3803
+ table.setActionCell(null);
3804
+ actionCellRef.current = null;
3805
+ };
3806
+ const internalMenuItems = [
3807
+ (parseFromValuesOrFunc(enableClickToCopy, cell) === 'context-menu' ||
3808
+ parseFromValuesOrFunc(columnDef.enableClickToCopy, cell) ===
3809
+ 'context-menu') && (jsxRuntime.jsx(MRT_ActionMenuItem, { icon: jsxRuntime.jsx(ContentCopy, {}), label: localization.copy, onClick: (event) => {
3810
+ event.stopPropagation();
3811
+ navigator.clipboard.writeText(cell.getValue());
3812
+ handleClose();
3813
+ }, table: table }, 'mrt-copy')),
3814
+ parseFromValuesOrFunc(enableEditing, row) && editDisplayMode === 'cell' && (jsxRuntime.jsx(MRT_ActionMenuItem, { icon: jsxRuntime.jsx(EditIcon, {}), label: localization.edit, onClick: () => {
3815
+ openEditingCell({ cell, table });
3816
+ handleClose();
3817
+ }, table: table }, 'mrt-edit')),
3818
+ ].filter(Boolean);
3819
+ const renderActionProps = {
3820
+ cell,
3821
+ closeMenu: handleClose,
3822
+ column,
3823
+ internalMenuItems,
3824
+ row,
3825
+ table,
3826
+ };
3827
+ const menuItems = (_c = (_b = columnDef.renderCellActionMenuItems) === null || _b === void 0 ? void 0 : _b.call(columnDef, renderActionProps)) !== null && _c !== void 0 ? _c : renderCellActionMenuItems === null || renderCellActionMenuItems === void 0 ? void 0 : renderCellActionMenuItems(renderActionProps);
3828
+ return ((!!(menuItems === null || menuItems === void 0 ? void 0 : menuItems.length) || !!(internalMenuItems === null || internalMenuItems === void 0 ? void 0 : internalMenuItems.length)) && (jsxRuntime.jsx(Menu__default["default"], Object.assign({ MenuListProps: {
3829
+ dense: density === 'compact',
3830
+ sx: {
3831
+ backgroundColor: menuBackgroundColor,
3832
+ },
3833
+ }, anchorEl: actionCellRef.current, disableScrollLock: true, onClick: (event) => event.stopPropagation(), onClose: handleClose, open: !!cell, transformOrigin: { horizontal: -100, vertical: 8 } }, rest, { children: menuItems !== null && menuItems !== void 0 ? menuItems : internalMenuItems }))));
3834
+ };
3835
+
3836
+ const MRT_EditRowModal = (_a) => {
3837
+ var _b;
3838
+ var { open, table } = _a, rest = __rest(_a, ["open", "table"]);
3839
+ const { getState, options: { localization, muiCreateRowModalProps, muiEditRowDialogProps, onCreatingRowCancel, onEditingRowCancel, renderCreateRowDialogContent, renderEditRowDialogContent, }, setCreatingRow, setEditingRow, } = table;
3840
+ const { creatingRow, editingRow } = getState();
3841
+ const row = (creatingRow !== null && creatingRow !== void 0 ? creatingRow : editingRow);
3842
+ const dialogProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiEditRowDialogProps, { row, table })), (creatingRow &&
3843
+ parseFromValuesOrFunc(muiCreateRowModalProps, { row, table }))), rest);
3844
+ const internalEditComponents = row
3845
+ .getAllCells()
3846
+ .filter((cell) => cell.column.columnDef.columnDefType === 'data')
3847
+ .map((cell) => (jsxRuntime.jsx(MRT_EditCellTextField, { cell: cell, table: table }, cell.id)));
3848
+ return (jsxRuntime.jsx(Dialog__default["default"], Object.assign({ fullWidth: true, maxWidth: "xs", onClose: (event, reason) => {
3849
+ var _a;
3850
+ if (creatingRow) {
3851
+ onCreatingRowCancel === null || onCreatingRowCancel === void 0 ? void 0 : onCreatingRowCancel({ row, table });
3852
+ setCreatingRow(null);
3853
+ }
3854
+ else {
3855
+ onEditingRowCancel === null || onEditingRowCancel === void 0 ? void 0 : onEditingRowCancel({ row, table });
3856
+ setEditingRow(null);
3857
+ }
3858
+ row._valuesCache = {}; //reset values cache
3859
+ (_a = dialogProps.onClose) === null || _a === void 0 ? void 0 : _a.call(dialogProps, event, reason);
3860
+ }, open: open }, dialogProps, { children: (_b = ((creatingRow &&
3861
+ (renderCreateRowDialogContent === null || renderCreateRowDialogContent === void 0 ? void 0 : renderCreateRowDialogContent({
3862
+ internalEditComponents,
3863
+ row,
3864
+ table,
3865
+ }))) ||
3866
+ (renderEditRowDialogContent === null || renderEditRowDialogContent === void 0 ? void 0 : renderEditRowDialogContent({
3867
+ internalEditComponents,
3868
+ row,
3869
+ table,
3870
+ })))) !== null && _b !== void 0 ? _b : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(DialogTitle__default["default"], { sx: { textAlign: 'center' }, children: localization.edit }), jsxRuntime.jsx(DialogContent__default["default"], { children: jsxRuntime.jsx("form", { onSubmit: (e) => e.preventDefault(), children: jsxRuntime.jsx(Stack__default["default"], { sx: {
3871
+ gap: '32px',
3872
+ paddingTop: '16px',
3873
+ width: '100%',
3874
+ }, children: internalEditComponents }) }) }), jsxRuntime.jsx(DialogActions__default["default"], { sx: { p: '1.25rem' }, children: jsxRuntime.jsx(MRT_EditActionButtons, { row: row, table: table, variant: "text" }) })] })) })));
3875
+ };
3876
+
3877
+ const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? react.useLayoutEffect : react.useEffect;
3878
+ const MRT_TableContainer = (_a) => {
3879
+ var { table } = _a, rest = __rest(_a, ["table"]);
3880
+ const { getState, options: { createDisplayMode, editDisplayMode, enableCellActions, enableStickyHeader, muiTableContainerProps, }, refs: { bottomToolbarRef, tableContainerRef, topToolbarRef }, } = table;
3881
+ const { actionCell, creatingRow, editingRow, isFullScreen, isLoading, showLoadingOverlay, } = getState();
3882
+ const loading = showLoadingOverlay !== false && (isLoading || showLoadingOverlay);
3883
+ const [totalToolbarHeight, setTotalToolbarHeight] = react.useState(0);
3884
+ const tableContainerProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableContainerProps, {
3885
+ table,
3886
+ })), rest);
3887
+ useIsomorphicLayoutEffect(() => {
3888
+ var _a, _b, _c, _d;
3889
+ const topToolbarHeight = typeof document !== 'undefined'
3890
+ ? ((_b = (_a = topToolbarRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) !== null && _b !== void 0 ? _b : 0)
3891
+ : 0;
3892
+ const bottomToolbarHeight = typeof document !== 'undefined'
3893
+ ? ((_d = (_c = bottomToolbarRef === null || bottomToolbarRef === void 0 ? void 0 : bottomToolbarRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight) !== null && _d !== void 0 ? _d : 0)
3894
+ : 0;
3895
+ setTotalToolbarHeight(topToolbarHeight + bottomToolbarHeight);
3896
+ });
3897
+ const createModalOpen = createDisplayMode === 'modal' && creatingRow;
3898
+ const editModalOpen = editDisplayMode === 'modal' && editingRow;
3899
+ return (jsxRuntime.jsxs(TableContainer__default["default"], Object.assign({ "aria-busy": loading, "aria-describedby": loading ? 'mrt-progress' : undefined }, tableContainerProps, { ref: (node) => {
3900
+ if (node) {
3901
+ tableContainerRef.current = node;
3902
+ if (tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.ref) {
3903
+ //@ts-ignore
3904
+ tableContainerProps.ref.current = node;
3905
+ }
3906
+ }
3907
+ }, style: Object.assign({ maxHeight: isFullScreen
3908
+ ? `calc(100vh - ${totalToolbarHeight}px)`
3909
+ : undefined }, tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.style), sx: (theme) => (Object.assign({ maxHeight: enableStickyHeader
3910
+ ? `clamp(350px, calc(100vh - ${totalToolbarHeight}px), 9999px)`
3911
+ : undefined, maxWidth: '100%', overflow: 'auto', position: 'relative' }, parseFromValuesOrFunc(tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.sx, theme))), children: [loading ? jsxRuntime.jsx(MRT_TableLoadingOverlay, { table: table }) : null, jsxRuntime.jsx(MRT_Table, { table: table }), (createModalOpen || editModalOpen) && (jsxRuntime.jsx(MRT_EditRowModal, { open: true, table: table })), enableCellActions && actionCell && jsxRuntime.jsx(MRT_CellActionMenu, { table: table })] })));
3912
+ };
3913
+
3914
+ const MRT_LinearProgressBar = (_a) => {
3915
+ var { isTopToolbar, table } = _a, rest = __rest(_a, ["isTopToolbar", "table"]);
3916
+ const { getState, options: { muiLinearProgressProps }, } = table;
3917
+ const { isSaving, showProgressBars } = getState();
3918
+ const linearProgressProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiLinearProgressProps, {
3919
+ isTopToolbar,
3920
+ table,
3921
+ })), rest);
3922
+ return (jsxRuntime.jsx(Collapse__default["default"], { in: showProgressBars !== false && (showProgressBars || isSaving), mountOnEnter: true, sx: {
3923
+ bottom: isTopToolbar ? 0 : undefined,
3924
+ position: 'absolute',
3925
+ top: !isTopToolbar ? 0 : undefined,
3926
+ width: '100%',
3927
+ }, unmountOnExit: true, children: jsxRuntime.jsx(LinearProgress__default["default"], Object.assign({ "aria-busy": "true", "aria-label": "Loading", sx: { position: 'relative' } }, linearProgressProps)) }));
3928
+ };
3929
+
3930
+ const defaultRowsPerPage = [5, 10, 15, 20, 25, 30, 50, 100];
3931
+ const MRT_TablePagination = (_a) => {
3932
+ var { position = 'bottom', table } = _a, rest = __rest(_a, ["position", "table"]);
3933
+ const theme = styles.useTheme();
3934
+ const isMobile = useMediaQuery__default["default"]('(max-width: 720px)');
3935
+ const { getState, options: { enableToolbarInternalActions, icons: { ChevronLeftIcon, ChevronRightIcon, FirstPageIcon, LastPageIcon }, localization, muiPaginationProps, paginationDisplayMode, }, } = table;
3936
+ const { pagination: { pageIndex = 0, pageSize = 10 }, showGlobalFilter, } = getState();
3937
+ const paginationProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiPaginationProps, {
3938
+ table,
3939
+ })), rest);
3940
+ const totalRowCount = table.getRowCount();
3941
+ const numberOfPages = table.getPageCount();
3942
+ const showFirstLastPageButtons = numberOfPages > 2;
3943
+ const firstRowIndex = pageIndex * pageSize;
3944
+ const lastRowIndex = Math.min(pageIndex * pageSize + pageSize, totalRowCount);
3945
+ const _b = paginationProps !== null && paginationProps !== void 0 ? paginationProps : {}, { SelectProps = {}, disabled = false, rowsPerPageOptions = defaultRowsPerPage, showFirstButton = showFirstLastPageButtons, showLastButton = showFirstLastPageButtons, showRowsPerPage = true } = _b, restPaginationProps = __rest(_b, ["SelectProps", "disabled", "rowsPerPageOptions", "showFirstButton", "showLastButton", "showRowsPerPage"]);
3946
+ const disableBack = pageIndex <= 0 || disabled;
3947
+ const disableNext = lastRowIndex >= totalRowCount || disabled;
3948
+ if (isMobile && (SelectProps === null || SelectProps === void 0 ? void 0 : SelectProps.native) !== false) {
3949
+ SelectProps.native = true;
3950
+ }
3951
+ const tooltipProps = getCommonTooltipProps();
3952
+ return (jsxRuntime.jsxs(Box__default["default"], { className: "MuiTablePagination-root", sx: {
3953
+ alignItems: 'center',
3954
+ display: 'flex',
3955
+ flexWrap: 'wrap',
3956
+ gap: '8px',
3957
+ justifyContent: { md: 'space-between', sm: 'center' },
3958
+ justifySelf: 'flex-end',
3959
+ mt: position === 'top' &&
3960
+ enableToolbarInternalActions &&
3961
+ !showGlobalFilter
3962
+ ? '3rem'
3963
+ : undefined,
3964
+ position: 'relative',
3965
+ px: '8px',
3966
+ py: '12px',
3967
+ zIndex: 2,
3968
+ }, children: [showRowsPerPage && (jsxRuntime.jsxs(Box__default["default"], { sx: { alignItems: 'center', display: 'flex', gap: '8px' }, children: [jsxRuntime.jsx(InputLabel__default["default"], { htmlFor: "mrt-rows-per-page", sx: { mb: 0 }, children: localization.rowsPerPage }), jsxRuntime.jsx(Select__default["default"], Object.assign({ MenuProps: { disableScrollLock: true }, disableUnderline: true, disabled: disabled, inputProps: {
3969
+ 'aria-label': localization.rowsPerPage,
3970
+ id: 'mrt-rows-per-page',
3971
+ }, label: localization.rowsPerPage, onChange: (event) => table.setPageSize(+event.target.value), sx: { mb: 0 }, value: pageSize, variant: "standard" }, SelectProps, { children: rowsPerPageOptions.map((option) => {
3972
+ var _a;
3973
+ const value = typeof option !== 'number' ? option.value : option;
3974
+ const label = typeof option !== 'number' ? option.label : `${option}`;
3975
+ return ((_a = SelectProps === null || SelectProps === void 0 ? void 0 : SelectProps.children) !== null && _a !== void 0 ? _a : ((SelectProps === null || SelectProps === void 0 ? void 0 : SelectProps.native) ? (jsxRuntime.jsx("option", { value: value, children: label }, value)) : (jsxRuntime.jsx(MenuItem__default["default"], { sx: { m: 0 }, value: value, children: label }, value))));
3976
+ }) }))] })), paginationDisplayMode === 'pages' ? (jsxRuntime.jsx(Pagination__default["default"], Object.assign({ count: numberOfPages, disabled: disabled, onChange: (_e, newPageIndex) => table.setPageIndex(newPageIndex - 1), page: pageIndex + 1, renderItem: (item) => (jsxRuntime.jsx(PaginationItem__default["default"], Object.assign({ slots: {
3977
+ first: FirstPageIcon,
3978
+ last: LastPageIcon,
3979
+ next: ChevronRightIcon,
3980
+ previous: ChevronLeftIcon,
3981
+ } }, item))), showFirstButton: showFirstButton, showLastButton: showLastButton }, restPaginationProps))) : paginationDisplayMode === 'default' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Typography__default["default"], { align: "center", component: "span", sx: { m: '0 4px', minWidth: '8ch' }, variant: "body2", children: `${lastRowIndex === 0 ? 0 : (firstRowIndex + 1).toLocaleString()}-${lastRowIndex.toLocaleString()} ${localization.of} ${totalRowCount.toLocaleString()}` }), jsxRuntime.jsxs(Box__default["default"], { gap: "xs", children: [showFirstButton && (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({}, tooltipProps, { title: localization.goToFirstPage, children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], { "aria-label": localization.goToFirstPage, disabled: disableBack, onClick: () => table.firstPage(), size: "small", children: jsxRuntime.jsx(FirstPageIcon, Object.assign({}, flipIconStyles(theme))) }) }) }))), jsxRuntime.jsx(Tooltip__default["default"], Object.assign({}, tooltipProps, { title: localization.goToPreviousPage, children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], { "aria-label": localization.goToPreviousPage, disabled: disableBack, onClick: () => table.previousPage(), size: "small", children: jsxRuntime.jsx(ChevronLeftIcon, Object.assign({}, flipIconStyles(theme))) }) }) })), jsxRuntime.jsx(Tooltip__default["default"], Object.assign({}, tooltipProps, { title: localization.goToNextPage, children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], { "aria-label": localization.goToNextPage, disabled: disableNext, onClick: () => table.nextPage(), size: "small", children: jsxRuntime.jsx(ChevronRightIcon, Object.assign({}, flipIconStyles(theme))) }) }) })), showLastButton && (jsxRuntime.jsx(Tooltip__default["default"], Object.assign({}, tooltipProps, { title: localization.goToLastPage, children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], { "aria-label": localization.goToLastPage, disabled: disableNext, onClick: () => table.lastPage(), size: "small", children: jsxRuntime.jsx(LastPageIcon, Object.assign({}, flipIconStyles(theme))) }) }) })))] })] })) : null] }));
3982
+ };
3983
+
3984
+ const MRT_ToolbarDropZone = (_a) => {
3985
+ var _b, _c;
3986
+ var { table } = _a, rest = __rest(_a, ["table"]);
3987
+ const { getState, options: { enableGrouping, localization }, setHoveredColumn, setShowToolbarDropZone, } = table;
3988
+ const { draggingColumn, grouping, hoveredColumn, showToolbarDropZone } = getState();
3989
+ const handleDragEnter = (_event) => {
3990
+ setHoveredColumn({ id: 'drop-zone' });
3991
+ };
3992
+ const handleDragOver = (e) => {
3993
+ e.preventDefault();
3994
+ };
3995
+ react.useEffect(() => {
3996
+ var _a;
3997
+ if (((_a = table.options.state) === null || _a === void 0 ? void 0 : _a.showToolbarDropZone) !== undefined) {
3998
+ setShowToolbarDropZone(!!enableGrouping &&
3999
+ !!draggingColumn &&
4000
+ draggingColumn.columnDef.enableGrouping !== false &&
4001
+ !grouping.includes(draggingColumn.id));
4002
+ }
4003
+ }, [enableGrouping, draggingColumn, grouping]);
4004
+ return (jsxRuntime.jsx(Fade__default["default"], { in: showToolbarDropZone, children: jsxRuntime.jsx(Box__default["default"], Object.assign({ className: "Mui-ToolbarDropZone", onDragEnter: handleDragEnter, onDragOver: handleDragOver }, rest, { sx: (theme) => (Object.assign({ alignItems: 'center', backdropFilter: 'blur(4px)', backgroundColor: styles.alpha(theme.palette.info.main, (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === 'drop-zone' ? 0.2 : 0.1), border: `dashed ${theme.palette.info.main} 2px`, boxSizing: 'border-box', display: 'flex', height: '100%', justifyContent: 'center', position: 'absolute', width: '100%', zIndex: 4 }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: jsxRuntime.jsx(Typography__default["default"], { fontStyle: "italic", children: localization.dropToGroupBy.replace('{column}', (_c = (_b = draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.columnDef) === null || _b === void 0 ? void 0 : _b.header) !== null && _c !== void 0 ? _c : '') }) })) }));
4005
+ };
4006
+
4007
+ const MRT_BottomToolbar = (_a) => {
4008
+ var { table } = _a, rest = __rest(_a, ["table"]);
4009
+ const { getState, options: { enablePagination, muiBottomToolbarProps, positionPagination, positionToolbarAlertBanner, positionToolbarDropZone, renderBottomToolbarCustomActions, }, refs: { bottomToolbarRef }, } = table;
4010
+ const { isFullScreen } = getState();
4011
+ const isMobile = useMediaQuery__default["default"]('(max-width:720px)');
4012
+ const toolbarProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiBottomToolbarProps, { table })), rest);
4013
+ const stackAlertBanner = isMobile || !!renderBottomToolbarCustomActions;
4014
+ return (jsxRuntime.jsxs(Box__default["default"], Object.assign({}, toolbarProps, { ref: (node) => {
4015
+ if (node) {
4016
+ bottomToolbarRef.current = node;
4017
+ if (toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.ref) {
4018
+ // @ts-ignore
4019
+ toolbarProps.ref.current = node;
4020
+ }
4021
+ }
4022
+ }, sx: (theme) => (Object.assign(Object.assign(Object.assign({}, getCommonToolbarStyles({ table, theme })), { bottom: isFullScreen ? '0' : undefined, boxShadow: `0 1px 2px -1px ${styles.alpha(theme.palette.grey[700], 0.5)} inset`, left: 0, position: isFullScreen ? 'fixed' : 'relative', right: 0 }), parseFromValuesOrFunc(toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx, theme))), 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"], { sx: {
4023
+ alignItems: 'center',
4024
+ boxSizing: 'border-box',
4025
+ display: 'flex',
4026
+ justifyContent: 'space-between',
4027
+ p: '0.5rem',
4028
+ width: '100%',
4029
+ }, children: [renderBottomToolbarCustomActions ? (renderBottomToolbarCustomActions({ table })) : (jsxRuntime.jsx("span", {})), jsxRuntime.jsx(Box__default["default"], { sx: {
4030
+ display: 'flex',
4031
+ justifyContent: 'flex-end',
4032
+ position: stackAlertBanner ? 'relative' : 'absolute',
4033
+ right: 0,
4034
+ top: 0,
4035
+ }, children: enablePagination &&
4036
+ ['both', 'bottom'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (jsxRuntime.jsx(MRT_TablePagination, { position: "bottom", table: table })) })] })] })));
4037
+ };
4038
+
4039
+ const MRT_ColumnPinningButtons = (_a) => {
4040
+ var { column, table } = _a, rest = __rest(_a, ["column", "table"]);
4041
+ const { options: { icons: { PushPinIcon }, localization, }, } = table;
4042
+ const handlePinColumn = (pinDirection) => {
4043
+ column.pin(pinDirection);
4044
+ };
4045
+ return (jsxRuntime.jsx(Box__default["default"], Object.assign({}, rest, { sx: (theme) => (Object.assign({ minWidth: '70px', textAlign: 'center' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: column.getIsPinned() ? (jsxRuntime.jsx(Tooltip__default["default"], { title: localization.unpin, children: jsxRuntime.jsx(IconButton__default["default"], { onClick: () => handlePinColumn(false), size: "small", children: jsxRuntime.jsx(PushPinIcon, {}) }) })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], { title: localization.pinToLeft, children: jsxRuntime.jsx(IconButton__default["default"], { onClick: () => handlePinColumn('left'), size: "small", children: jsxRuntime.jsx(PushPinIcon, { style: {
4046
+ transform: 'rotate(90deg)',
4047
+ } }) }) }), jsxRuntime.jsx(Tooltip__default["default"], { title: localization.pinToRight, children: jsxRuntime.jsx(IconButton__default["default"], { onClick: () => handlePinColumn('right'), size: "small", children: jsxRuntime.jsx(PushPinIcon, { style: {
4048
+ transform: 'rotate(-90deg)',
4049
+ } }) }) })] })) })));
4050
+ };
4051
+
4052
+ const MRT_ShowHideColumnsMenuItems = (_a) => {
4053
+ var _b;
4054
+ var { allColumns, column, hoveredColumn, isNestedColumns, setHoveredColumn, table } = _a, rest = __rest(_a, ["allColumns", "column", "hoveredColumn", "isNestedColumns", "setHoveredColumn", "table"]);
4055
+ const { getState, options: { enableColumnOrdering, enableColumnPinning, enableHiding, localization, mrtTheme: { draggingBorderColor }, }, setColumnOrder, } = table;
4056
+ const { columnOrder } = getState();
4057
+ const { columnDef } = column;
4058
+ const { columnDefType } = columnDef;
4059
+ const switchChecked = column.getIsVisible();
4060
+ const handleToggleColumnHidden = (column) => {
4061
+ var _a, _b;
4062
+ if (columnDefType === 'group') {
4063
+ (_b = (_a = column === null || column === void 0 ? void 0 : column.columns) === null || _a === void 0 ? void 0 : _a.forEach) === null || _b === void 0 ? void 0 : _b.call(_a, (childColumn) => {
4064
+ childColumn.toggleVisibility(!switchChecked);
4065
+ });
4066
+ }
4067
+ else {
4068
+ column.toggleVisibility();
4069
+ }
4070
+ };
4071
+ const menuItemRef = react.useRef(null);
4072
+ const [isDragging, setIsDragging] = react.useState(false);
4073
+ const handleDragStart = (e) => {
4074
+ setIsDragging(true);
4075
+ try {
4076
+ e.dataTransfer.setDragImage(menuItemRef.current, 0, 0);
4077
+ }
4078
+ catch (e) {
4079
+ console.error(e);
4080
+ }
4081
+ };
4082
+ const handleDragEnd = (_e) => {
4083
+ setIsDragging(false);
4084
+ setHoveredColumn(null);
4085
+ if (hoveredColumn) {
4086
+ setColumnOrder(reorderColumn(column, hoveredColumn, columnOrder));
4087
+ }
4088
+ };
4089
+ const handleDragEnter = (_e) => {
4090
+ if (!isDragging && columnDef.enableColumnOrdering !== false) {
4091
+ setHoveredColumn(column);
4092
+ }
4093
+ };
4094
+ if (!columnDef.header || columnDef.visibleInShowHideMenu === false) {
4095
+ return null;
4096
+ }
4097
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MenuItem__default["default"], Object.assign({ disableRipple: true, onDragEnter: handleDragEnter, ref: menuItemRef }, rest, { sx: (theme) => (Object.assign({ alignItems: 'center', justifyContent: 'flex-start', my: 0, opacity: isDragging ? 0.5 : 1, outline: isDragging
4098
+ ? `2px dashed ${theme.palette.grey[500]}`
4099
+ : (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id
4100
+ ? `2px dashed ${draggingBorderColor}`
4101
+ : 'none', outlineOffset: '-2px', pl: `${(column.depth + 0.5) * 2}rem`, py: '6px' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: jsxRuntime.jsxs(Box__default["default"], { sx: {
4102
+ display: 'flex',
4103
+ flexWrap: 'nowrap',
4104
+ gap: '8px',
4105
+ }, children: [columnDefType !== 'group' &&
4106
+ enableColumnOrdering &&
4107
+ !isNestedColumns &&
4108
+ (columnDef.enableColumnOrdering !== false ? (jsxRuntime.jsx(MRT_GrabHandleButton, { onDragEnd: handleDragEnd, onDragStart: handleDragStart, table: table })) : (jsxRuntime.jsx(Box__default["default"], { sx: { width: '28px' } }))), enableColumnPinning &&
4109
+ (column.getCanPin() ? (jsxRuntime.jsx(MRT_ColumnPinningButtons, { column: column, table: table })) : (jsxRuntime.jsx(Box__default["default"], { sx: { width: '70px' } }))), enableHiding ? (jsxRuntime.jsx(FormControlLabel__default["default"], { checked: switchChecked, componentsProps: {
4110
+ typography: {
4111
+ sx: {
4112
+ mb: 0,
4113
+ opacity: columnDefType !== 'display' ? 1 : 0.5,
4114
+ },
4115
+ },
4116
+ }, control: jsxRuntime.jsx(Tooltip__default["default"], Object.assign({}, getCommonTooltipProps(), { title: localization.toggleVisibility, children: jsxRuntime.jsx(Switch__default["default"], {}) })), disabled: !column.getCanHide(), label: columnDef.header, onChange: () => handleToggleColumnHidden(column) })) : (jsxRuntime.jsx(Typography__default["default"], { sx: { alignSelf: 'center' }, children: columnDef.header }))] }) })), (_b = column.columns) === null || _b === void 0 ? void 0 : _b.map((c, i) => (jsxRuntime.jsx(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: c, hoveredColumn: hoveredColumn, isNestedColumns: isNestedColumns, setHoveredColumn: setHoveredColumn, table: table }, `${i}-${c.id}`)))] }));
4117
+ };
4118
+
4119
+ const MRT_ShowHideColumnsMenu = (_a) => {
4120
+ var { anchorEl, setAnchorEl, table } = _a, rest = __rest(_a, ["anchorEl", "setAnchorEl", "table"]);
4121
+ const { getAllColumns, getAllLeafColumns, getCenterLeafColumns, getIsAllColumnsVisible, getIsSomeColumnsPinned, getIsSomeColumnsVisible, getLeftLeafColumns, getRightLeafColumns, getState, options: { enableColumnOrdering, enableColumnPinning, enableHiding, localization, mrtTheme: { menuBackgroundColor }, }, } = table;
4122
+ const { columnOrder, columnPinning, density } = getState();
4123
+ const handleToggleAllColumns = (value) => {
4124
+ getAllLeafColumns()
4125
+ .filter((col) => col.columnDef.enableHiding !== false)
4126
+ .forEach((col) => col.toggleVisibility(value));
4127
+ };
4128
+ const allColumns = react.useMemo(() => {
4129
+ const columns = getAllColumns();
4130
+ if (columnOrder.length > 0 &&
4131
+ !columns.some((col) => col.columnDef.columnDefType === 'group')) {
4132
+ return [
4133
+ ...getLeftLeafColumns(),
4134
+ ...Array.from(new Set(columnOrder)).map((colId) => getCenterLeafColumns().find((col) => (col === null || col === void 0 ? void 0 : col.id) === colId)),
4135
+ ...getRightLeafColumns(),
4136
+ ].filter(Boolean);
4137
+ }
4138
+ return columns;
4139
+ }, [
4140
+ columnOrder,
4141
+ columnPinning,
4142
+ getAllColumns(),
4143
+ getCenterLeafColumns(),
4144
+ getLeftLeafColumns(),
4145
+ getRightLeafColumns(),
4146
+ ]);
4147
+ const isNestedColumns = allColumns.some((col) => col.columnDef.columnDefType === 'group');
4148
+ const [hoveredColumn, setHoveredColumn] = react.useState(null);
4149
+ return (jsxRuntime.jsxs(Menu__default["default"], Object.assign({ MenuListProps: {
4150
+ dense: density === 'compact',
4151
+ sx: {
4152
+ backgroundColor: menuBackgroundColor,
4153
+ },
4154
+ }, anchorEl: anchorEl, disableScrollLock: true, onClose: () => setAnchorEl(null), open: !!anchorEl }, rest, { children: [jsxRuntime.jsxs(Box__default["default"], { sx: {
4155
+ display: 'flex',
4156
+ justifyContent: 'space-between',
4157
+ p: '0.5rem',
4158
+ pt: 0,
4159
+ }, children: [enableHiding && (jsxRuntime.jsx(Button__default["default"], { disabled: !getIsSomeColumnsVisible(), onClick: () => handleToggleAllColumns(false), children: localization.hideAll })), enableColumnOrdering && (jsxRuntime.jsx(Button__default["default"], { onClick: () => table.setColumnOrder(getDefaultColumnOrderIds(table.options, true)), children: localization.resetOrder })), enableColumnPinning && (jsxRuntime.jsx(Button__default["default"], { disabled: !getIsSomeColumnsPinned(), onClick: () => table.resetColumnPinning(true), children: localization.unpinAll })), enableHiding && (jsxRuntime.jsx(Button__default["default"], { disabled: getIsAllColumnsVisible(), onClick: () => handleToggleAllColumns(true), children: localization.showAll }))] }), jsxRuntime.jsx(Divider__default["default"], {}), allColumns.map((column, index) => (jsxRuntime.jsx(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: column, hoveredColumn: hoveredColumn, isNestedColumns: isNestedColumns, setHoveredColumn: setHoveredColumn, table: table }, `${index}-${column.id}`)))] })));
4160
+ };
4161
+
4162
+ const MRT_ShowHideColumnsButton = (_a) => {
4163
+ var _b;
4164
+ var { table } = _a, rest = __rest(_a, ["table"]);
4165
+ const { options: { icons: { ViewColumnIcon }, localization, }, } = table;
4166
+ const [anchorEl, setAnchorEl] = react.useState(null);
4167
+ const handleClick = (event) => {
4168
+ setAnchorEl(event.currentTarget);
4169
+ };
4170
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip__default["default"], { 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 }))] }));
4171
+ };
4172
+
4173
+ const MRT_ToggleDensePaddingButton = (_a) => {
4174
+ var _b;
4175
+ var { table } = _a, rest = __rest(_a, ["table"]);
4176
+ const { getState, options: { icons: { DensityLargeIcon, DensityMediumIcon, DensitySmallIcon }, localization, }, setDensity, } = table;
4177
+ const { density } = getState();
4178
+ const handleToggleDensePadding = () => {
4179
+ const nextDensity = density === 'comfortable'
4180
+ ? 'compact'
4181
+ : density === 'compact'
4182
+ ? 'spacious'
4183
+ : 'comfortable';
4184
+ setDensity(nextDensity);
4185
+ };
4186
+ return (jsxRuntime.jsx(Tooltip__default["default"], { 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, {})) })) }));
4187
+ };
4188
+
4189
+ const MRT_ToggleFiltersButton = (_a) => {
4190
+ var _b;
4191
+ var { table } = _a, rest = __rest(_a, ["table"]);
4192
+ const { getState, options: { icons: { FilterListIcon, FilterListOffIcon }, localization, }, setShowColumnFilters, } = table;
4193
+ const { showColumnFilters } = getState();
4194
+ const handleToggleShowFilters = () => {
4195
+ setShowColumnFilters(!showColumnFilters);
4196
+ };
4197
+ return (jsxRuntime.jsx(Tooltip__default["default"], { 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, {}) })) }));
4198
+ };
4199
+
4200
+ const MRT_ToggleFullScreenButton = (_a) => {
4201
+ var _b;
4202
+ var { table } = _a, rest = __rest(_a, ["table"]);
4203
+ const { getState, options: { icons: { FullscreenExitIcon, FullscreenIcon }, localization, }, setIsFullScreen, } = table;
4204
+ const { isFullScreen } = getState();
4205
+ const [tooltipOpened, setTooltipOpened] = react.useState(false);
4206
+ const handleToggleFullScreen = () => {
4207
+ setTooltipOpened(false);
4208
+ setIsFullScreen(!isFullScreen);
4209
+ };
4210
+ return (jsxRuntime.jsx(Tooltip__default["default"], { open: tooltipOpened, 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.toggleFullScreen, onClick: handleToggleFullScreen, onMouseEnter: () => setTooltipOpened(true), onMouseLeave: () => setTooltipOpened(false) }, rest, { title: undefined, children: isFullScreen ? jsxRuntime.jsx(FullscreenExitIcon, {}) : jsxRuntime.jsx(FullscreenIcon, {}) })) }));
4211
+ };
4212
+
4213
+ const MRT_ToggleGlobalFilterButton = (_a) => {
4214
+ var _b, _c;
4215
+ var { table } = _a, rest = __rest(_a, ["table"]);
4216
+ const { getState, options: { icons: { SearchIcon, SearchOffIcon }, localization, }, refs: { searchInputRef }, setShowGlobalFilter, } = table;
4217
+ const { globalFilter, showGlobalFilter } = getState();
4218
+ const handleToggleSearch = () => {
4219
+ setShowGlobalFilter(!showGlobalFilter);
4220
+ queueMicrotask(() => { var _a; return (_a = searchInputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
4221
+ };
4222
+ return (jsxRuntime.jsx(Tooltip__default["default"], { 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, {}) })) }));
4223
+ };
4224
+
4225
+ const MRT_ToolbarInternalButtons = (_a) => {
4226
+ var _b;
4227
+ var { table } = _a, rest = __rest(_a, ["table"]);
4228
+ const { options: { columnFilterDisplayMode, enableColumnFilters, enableColumnOrdering, enableColumnPinning, enableDensityToggle, enableFilters, enableFullScreenToggle, enableGlobalFilter, enableHiding, initialState, renderToolbarInternalActions, }, } = table;
4229
+ return (jsxRuntime.jsx(Box__default["default"], Object.assign({}, rest, { sx: (theme) => (Object.assign({ alignItems: 'center', display: 'flex', zIndex: 3 }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: (_b = renderToolbarInternalActions === null || renderToolbarInternalActions === void 0 ? void 0 : renderToolbarInternalActions({
4230
+ table,
4231
+ })) !== null && _b !== void 0 ? _b : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [enableFilters &&
4232
+ enableGlobalFilter &&
4233
+ !(initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) && (jsxRuntime.jsx(MRT_ToggleGlobalFilterButton, { table: table })), enableFilters &&
4234
+ enableColumnFilters &&
4235
+ columnFilterDisplayMode !== 'popover' && (jsxRuntime.jsx(MRT_ToggleFiltersButton, { table: table })), (enableHiding || enableColumnOrdering || enableColumnPinning) && (jsxRuntime.jsx(MRT_ShowHideColumnsButton, { table: table })), enableDensityToggle && (jsxRuntime.jsx(MRT_ToggleDensePaddingButton, { table: table })), enableFullScreenToggle && (jsxRuntime.jsx(MRT_ToggleFullScreenButton, { table: table }))] })) })));
4236
+ };
4237
+
4238
+ const MRT_GlobalFilterTextField = (_a) => {
4239
+ var _b;
4240
+ var { table } = _a, rest = __rest(_a, ["table"]);
4241
+ const { getState, options: { enableGlobalFilterModes, icons: { CloseIcon, SearchIcon }, localization, manualFiltering, muiSearchTextFieldProps, }, refs: { searchInputRef }, setGlobalFilter, } = table;
4242
+ const { globalFilter, showGlobalFilter } = getState();
4243
+ const textFieldProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiSearchTextFieldProps, {
4244
+ table,
4245
+ })), rest);
4246
+ const isMounted = react.useRef(false);
4247
+ const [anchorEl, setAnchorEl] = react.useState(null);
4248
+ const [searchValue, setSearchValue] = react.useState(globalFilter !== null && globalFilter !== void 0 ? globalFilter : '');
4249
+ const handleChangeDebounced = react.useCallback(utils.debounce((event) => {
4250
+ var _a;
4251
+ setGlobalFilter((_a = event.target.value) !== null && _a !== void 0 ? _a : undefined);
4252
+ }, manualFiltering ? 500 : 250), []);
4253
+ const handleChange = (event) => {
4254
+ setSearchValue(event.target.value);
4255
+ handleChangeDebounced(event);
4256
+ };
4257
+ const handleGlobalFilterMenuOpen = (event) => {
4258
+ setAnchorEl(event.currentTarget);
4259
+ };
4260
+ const handleClear = () => {
4261
+ setSearchValue('');
4262
+ setGlobalFilter(undefined);
4263
+ };
4264
+ react.useEffect(() => {
4265
+ if (isMounted.current) {
4266
+ if (globalFilter === undefined) {
4267
+ handleClear();
4268
+ }
4269
+ else {
4270
+ setSearchValue(globalFilter);
4271
+ }
4272
+ }
4273
+ isMounted.current = true;
4274
+ }, [globalFilter]);
4275
+ return (jsxRuntime.jsxs(Collapse__default["default"], { in: showGlobalFilter, mountOnEnter: true, orientation: "horizontal", unmountOnExit: true, children: [jsxRuntime.jsx(TextField__default["default"], Object.assign({ inputProps: Object.assign({ autoComplete: 'new-password' }, textFieldProps.inputProps), onChange: handleChange, placeholder: localization.search, size: "small", value: searchValue !== null && searchValue !== void 0 ? searchValue : '', variant: "outlined" }, textFieldProps, { InputProps: Object.assign(Object.assign({ endAdornment: (jsxRuntime.jsx(InputAdornment__default["default"], { position: "end", children: jsxRuntime.jsx(Tooltip__default["default"], { title: (_b = localization.clearSearch) !== null && _b !== void 0 ? _b : '', children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton__default["default"], { "aria-label": localization.clearSearch, disabled: !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length), onClick: handleClear, size: "small", children: jsxRuntime.jsx(CloseIcon, {}) }) }) }) })), startAdornment: enableGlobalFilterModes ? (jsxRuntime.jsx(InputAdornment__default["default"], { position: "start", children: jsxRuntime.jsx(Tooltip__default["default"], { title: localization.changeSearchMode, children: jsxRuntime.jsx(IconButton__default["default"], { "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' } })) }, textFieldProps.InputProps), { sx: (theme) => {
4276
+ var _a;
4277
+ return (Object.assign({ mb: 0 }, parseFromValuesOrFunc((_a = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.InputProps) === null || _a === void 0 ? void 0 : _a.sx, theme)));
4278
+ } }), inputRef: (inputRef) => {
4279
+ searchInputRef.current = inputRef;
4280
+ if (textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.inputRef) {
4281
+ textFieldProps.inputRef = inputRef;
4282
+ }
4283
+ } })), jsxRuntime.jsx(MRT_FilterOptionMenu, { anchorEl: anchorEl, onSelect: handleClear, setAnchorEl: setAnchorEl, table: table })] }));
4284
+ };
4285
+
4286
+ const MRT_TopToolbar = ({ table, }) => {
4287
+ var _a;
4288
+ const { getState, options: { enableGlobalFilter, enablePagination, enableToolbarInternalActions, muiTopToolbarProps, positionGlobalFilter, positionPagination, positionToolbarAlertBanner, positionToolbarDropZone, renderTopToolbarCustomActions, }, refs: { topToolbarRef }, } = table;
4289
+ const { isFullScreen, showGlobalFilter } = getState();
4290
+ const isMobile = useMediaQuery__default["default"]('(max-width:720px)');
4291
+ const isTablet = useMediaQuery__default["default"]('(max-width:1024px)');
4292
+ const toolbarProps = parseFromValuesOrFunc(muiTopToolbarProps, { table });
4293
+ const stackAlertBanner = isMobile ||
4294
+ !!renderTopToolbarCustomActions ||
4295
+ (showGlobalFilter && isTablet);
4296
+ const globalFilterProps = {
4297
+ sx: !isTablet
4298
+ ? {
4299
+ zIndex: 2,
4300
+ }
4301
+ : undefined,
4302
+ table,
4303
+ };
4304
+ return (jsxRuntime.jsxs(Box__default["default"], Object.assign({}, toolbarProps, { ref: (ref) => {
4305
+ topToolbarRef.current = ref;
4306
+ if (toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.ref) {
4307
+ // @ts-ignore
4308
+ toolbarProps.ref.current = ref;
4309
+ }
4310
+ }, sx: (theme) => (Object.assign(Object.assign(Object.assign({}, getCommonToolbarStyles({ table, theme })), { position: isFullScreen ? 'sticky' : 'relative', top: isFullScreen ? '0' : undefined }), parseFromValuesOrFunc(toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.sx, theme))), 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"], { sx: {
4311
+ alignItems: 'flex-start',
4312
+ boxSizing: 'border-box',
4313
+ display: 'flex',
4314
+ gap: '0.5rem',
4315
+ justifyContent: 'space-between',
4316
+ p: '0.5rem',
4317
+ position: stackAlertBanner ? 'relative' : 'absolute',
4318
+ right: 0,
4319
+ top: 0,
4320
+ width: '100%',
4321
+ }, children: [enableGlobalFilter && positionGlobalFilter === 'left' && (jsxRuntime.jsx(MRT_GlobalFilterTextField, Object.assign({}, globalFilterProps))), (_a = renderTopToolbarCustomActions === null || renderTopToolbarCustomActions === void 0 ? void 0 : renderTopToolbarCustomActions({ table })) !== null && _a !== void 0 ? _a : jsxRuntime.jsx("span", {}), enableToolbarInternalActions ? (jsxRuntime.jsxs(Box__default["default"], { sx: {
4322
+ alignItems: 'center',
4323
+ display: 'flex',
4324
+ flexWrap: 'wrap-reverse',
4325
+ gap: '0.5rem',
4326
+ justifyContent: 'flex-end',
4327
+ }, children: [enableGlobalFilter && positionGlobalFilter === 'right' && (jsxRuntime.jsx(MRT_GlobalFilterTextField, Object.assign({}, globalFilterProps))), jsxRuntime.jsx(MRT_ToolbarInternalButtons, { table: table })] })) : (enableGlobalFilter &&
4328
+ positionGlobalFilter === 'right' && (jsxRuntime.jsx(MRT_GlobalFilterTextField, Object.assign({}, globalFilterProps))))] }), enablePagination &&
4329
+ ['both', 'top'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (jsxRuntime.jsx(MRT_TablePagination, { position: "top", table: table })), jsxRuntime.jsx(MRT_LinearProgressBar, { isTopToolbar: true, table: table })] })));
4330
+ };
4331
+
4332
+ const MRT_TablePaper = (_a) => {
4333
+ var _b, _c;
4334
+ var { table } = _a, rest = __rest(_a, ["table"]);
4335
+ const { getState, options: { enableBottomToolbar, enableTopToolbar, mrtTheme: { baseBackgroundColor }, muiTablePaperProps, renderBottomToolbar, renderTopToolbar, }, refs: { tablePaperRef }, } = table;
4336
+ const { isFullScreen } = getState();
4337
+ const paperProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTablePaperProps, { table })), rest);
4338
+ const theme = material.useTheme();
4339
+ return (jsxRuntime.jsxs(Paper__default["default"], Object.assign({ elevation: 2 }, paperProps, { ref: (ref) => {
4340
+ tablePaperRef.current = ref;
4341
+ if (paperProps === null || paperProps === void 0 ? void 0 : paperProps.ref) {
4342
+ //@ts-ignore
4343
+ paperProps.ref.current = ref;
4344
+ }
4345
+ }, style: Object.assign(Object.assign({}, (isFullScreen
4346
+ ? {
4347
+ bottom: 0,
4348
+ height: '100dvh',
4349
+ left: 0,
4350
+ margin: 0,
4351
+ maxHeight: '100dvh',
4352
+ maxWidth: '100dvw',
4353
+ padding: 0,
4354
+ position: 'fixed',
4355
+ right: 0,
4356
+ top: 0,
4357
+ width: '100dvw',
4358
+ zIndex: theme.zIndex.modal,
4359
+ }
4360
+ : {})), paperProps === null || paperProps === void 0 ? void 0 : paperProps.style), sx: (theme) => (Object.assign({ backgroundColor: baseBackgroundColor, backgroundImage: 'unset', overflow: 'hidden', transition: 'all 100ms ease-in-out' }, parseFromValuesOrFunc(paperProps === null || paperProps === void 0 ? void 0 : paperProps.sx, theme))), children: [enableTopToolbar &&
4361
+ ((_b = parseFromValuesOrFunc(renderTopToolbar, { table })) !== null && _b !== void 0 ? _b : (jsxRuntime.jsx(MRT_TopToolbar, { table: table }))), jsxRuntime.jsx(MRT_TableContainer, { table: table }), enableBottomToolbar &&
4362
+ ((_c = parseFromValuesOrFunc(renderBottomToolbar, { table })) !== null && _c !== void 0 ? _c : (jsxRuntime.jsx(MRT_BottomToolbar, { table: table })))] })));
4363
+ };
4364
+
4365
+ const isTableInstanceProp = (props) => props.table !== undefined;
4366
+ const MaterialReactTable = (props) => {
4367
+ let table;
4368
+ if (isTableInstanceProp(props)) {
4369
+ table = props.table;
4370
+ }
4371
+ else {
4372
+ table = useMaterialReactTable(props);
4373
+ }
4374
+ return jsxRuntime.jsx(MRT_TablePaper, { table: table });
4375
+ };
4376
+
4377
+ exports.MRT_ActionMenuItem = MRT_ActionMenuItem;
4378
+ exports.MRT_AggregationFns = MRT_AggregationFns;
4379
+ exports.MRT_BottomToolbar = MRT_BottomToolbar;
4380
+ exports.MRT_ColumnActionMenu = MRT_ColumnActionMenu;
4381
+ exports.MRT_ColumnPinningButtons = MRT_ColumnPinningButtons;
4382
+ exports.MRT_CopyButton = MRT_CopyButton;
4383
+ exports.MRT_DefaultColumn = MRT_DefaultColumn;
4384
+ exports.MRT_DefaultDisplayColumn = MRT_DefaultDisplayColumn;
4385
+ exports.MRT_EditActionButtons = MRT_EditActionButtons;
4386
+ exports.MRT_EditCellTextField = MRT_EditCellTextField;
4387
+ exports.MRT_EditRowModal = MRT_EditRowModal;
4388
+ exports.MRT_ExpandAllButton = MRT_ExpandAllButton;
4389
+ exports.MRT_ExpandButton = MRT_ExpandButton;
4390
+ exports.MRT_FilterCheckbox = MRT_FilterCheckbox;
4391
+ exports.MRT_FilterFns = MRT_FilterFns;
4392
+ exports.MRT_FilterOptionMenu = MRT_FilterOptionMenu;
4393
+ exports.MRT_FilterRangeFields = MRT_FilterRangeFields;
4394
+ exports.MRT_FilterRangeSlider = MRT_FilterRangeSlider;
4395
+ exports.MRT_FilterTextField = MRT_FilterTextField;
4396
+ exports.MRT_GlobalFilterTextField = MRT_GlobalFilterTextField;
4397
+ exports.MRT_GrabHandleButton = MRT_GrabHandleButton;
4398
+ exports.MRT_LinearProgressBar = MRT_LinearProgressBar;
4399
+ exports.MRT_RowActionMenu = MRT_RowActionMenu;
4400
+ exports.MRT_RowPinButton = MRT_RowPinButton;
4401
+ exports.MRT_SelectCheckbox = MRT_SelectCheckbox;
4402
+ exports.MRT_ShowHideColumnsButton = MRT_ShowHideColumnsButton;
4403
+ exports.MRT_ShowHideColumnsMenu = MRT_ShowHideColumnsMenu;
4404
+ exports.MRT_ShowHideColumnsMenuItems = MRT_ShowHideColumnsMenuItems;
4405
+ exports.MRT_SortingFns = MRT_SortingFns;
4406
+ exports.MRT_Table = MRT_Table;
4407
+ exports.MRT_TableBody = MRT_TableBody;
4408
+ exports.MRT_TableBodyCell = MRT_TableBodyCell;
4409
+ exports.MRT_TableBodyCellValue = MRT_TableBodyCellValue;
4410
+ exports.MRT_TableBodyRow = MRT_TableBodyRow;
4411
+ exports.MRT_TableBodyRowGrabHandle = MRT_TableBodyRowGrabHandle;
4412
+ exports.MRT_TableBodyRowPinButton = MRT_TableBodyRowPinButton;
4413
+ exports.MRT_TableContainer = MRT_TableContainer;
4414
+ exports.MRT_TableDetailPanel = MRT_TableDetailPanel;
4415
+ exports.MRT_TableFooter = MRT_TableFooter;
4416
+ exports.MRT_TableFooterCell = MRT_TableFooterCell;
4417
+ exports.MRT_TableFooterRow = MRT_TableFooterRow;
4418
+ exports.MRT_TableHead = MRT_TableHead;
4419
+ exports.MRT_TableHeadCell = MRT_TableHeadCell;
4420
+ exports.MRT_TableHeadCellColumnActionsButton = MRT_TableHeadCellColumnActionsButton;
4421
+ exports.MRT_TableHeadCellFilterContainer = MRT_TableHeadCellFilterContainer;
4422
+ exports.MRT_TableHeadCellFilterLabel = MRT_TableHeadCellFilterLabel;
4423
+ exports.MRT_TableHeadCellGrabHandle = MRT_TableHeadCellGrabHandle;
4424
+ exports.MRT_TableHeadCellResizeHandle = MRT_TableHeadCellResizeHandle;
4425
+ exports.MRT_TableHeadCellSortLabel = MRT_TableHeadCellSortLabel;
4426
+ exports.MRT_TableHeadRow = MRT_TableHeadRow;
4427
+ exports.MRT_TableLoadingOverlay = MRT_TableLoadingOverlay;
4428
+ exports.MRT_TablePagination = MRT_TablePagination;
4429
+ exports.MRT_TablePaper = MRT_TablePaper;
4430
+ exports.MRT_ToggleDensePaddingButton = MRT_ToggleDensePaddingButton;
4431
+ exports.MRT_ToggleFiltersButton = MRT_ToggleFiltersButton;
4432
+ exports.MRT_ToggleFullScreenButton = MRT_ToggleFullScreenButton;
4433
+ exports.MRT_ToggleGlobalFilterButton = MRT_ToggleGlobalFilterButton;
4434
+ exports.MRT_ToggleRowActionMenuButton = MRT_ToggleRowActionMenuButton;
4435
+ exports.MRT_ToolbarAlertBanner = MRT_ToolbarAlertBanner;
4436
+ exports.MRT_ToolbarDropZone = MRT_ToolbarDropZone;
4437
+ exports.MRT_ToolbarInternalButtons = MRT_ToolbarInternalButtons;
4438
+ exports.MRT_TopToolbar = MRT_TopToolbar;
4439
+ exports.MaterialReactTable = MaterialReactTable;
4440
+ exports.Memo_MRT_TableBody = Memo_MRT_TableBody;
4441
+ exports.Memo_MRT_TableBodyCell = Memo_MRT_TableBodyCell;
4442
+ exports.Memo_MRT_TableBodyRow = Memo_MRT_TableBodyRow;
4443
+ exports.cellKeyboardShortcuts = cellKeyboardShortcuts;
4444
+ exports.createMRTColumnHelper = createMRTColumnHelper;
4445
+ exports.createRow = createRow;
4446
+ exports.defaultDisplayColumnProps = defaultDisplayColumnProps;
4447
+ exports.flexRender = flexRender;
4448
+ exports.getAllLeafColumnDefs = getAllLeafColumnDefs;
4449
+ exports.getCanRankRows = getCanRankRows;
4450
+ exports.getColumnFilterInfo = getColumnFilterInfo;
4451
+ exports.getColumnId = getColumnId;
4452
+ exports.getDefaultColumnFilterFn = getDefaultColumnFilterFn;
4453
+ exports.getDefaultColumnOrderIds = getDefaultColumnOrderIds;
4454
+ exports.getIsRankingRows = getIsRankingRows;
4455
+ exports.getIsRowSelected = getIsRowSelected;
4456
+ exports.getLeadingDisplayColumnIds = getLeadingDisplayColumnIds;
4457
+ exports.getMRT_RowSelectionHandler = getMRT_RowSelectionHandler;
4458
+ exports.getMRT_Rows = getMRT_Rows;
4459
+ exports.getMRT_SelectAllHandler = getMRT_SelectAllHandler;
4460
+ exports.getTrailingDisplayColumnIds = getTrailingDisplayColumnIds;
4461
+ exports.isCellEditable = isCellEditable;
4462
+ exports.mrtFilterOptions = mrtFilterOptions;
4463
+ exports.openEditingCell = openEditingCell;
4464
+ exports.prepareColumns = prepareColumns;
4465
+ exports.rankGlobalFuzzy = rankGlobalFuzzy;
4466
+ exports.reorderColumn = reorderColumn;
4467
+ exports.showRowActionsColumn = showRowActionsColumn;
4468
+ exports.showRowDragColumn = showRowDragColumn;
4469
+ exports.showRowExpandColumn = showRowExpandColumn;
4470
+ exports.showRowNumbersColumn = showRowNumbersColumn;
4471
+ exports.showRowPinningColumn = showRowPinningColumn;
4472
+ exports.showRowSelectionColumn = showRowSelectionColumn;
4473
+ exports.showRowSpacerColumn = showRowSpacerColumn;
4474
+ exports.useDropdownOptions = useDropdownOptions;
4475
+ exports.useMRT_ColumnVirtualizer = useMRT_ColumnVirtualizer;
4476
+ exports.useMRT_Effects = useMRT_Effects;
4477
+ exports.useMRT_RowVirtualizer = useMRT_RowVirtualizer;
4478
+ exports.useMRT_Rows = useMRT_Rows;
4479
+ exports.useMRT_TableInstance = useMRT_TableInstance;
4480
+ exports.useMRT_TableOptions = useMRT_TableOptions;
4481
+ exports.useMaterialReactTable = useMaterialReactTable;
4482
+ //# sourceMappingURL=index.js.map