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
@@ -0,0 +1,4288 @@
1
+ import { flexRender as flexRender$1, createRow as createRow$1, sortingFns, aggregationFns, filterFns, getCoreRowModel, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';
2
+ import { useMemo, useState, useReducer, useRef, useEffect, useCallback, memo, Fragment as Fragment$1, useLayoutEffect } from 'react';
3
+ import { compareItems, rankItem, rankings } from '@tanstack/match-sorter-utils';
4
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
+ import IconButton from '@mui/material/IconButton';
6
+ import Tooltip from '@mui/material/Tooltip';
7
+ import Box from '@mui/material/Box';
8
+ import Button from '@mui/material/Button';
9
+ import CircularProgress from '@mui/material/CircularProgress';
10
+ import { lighten, darken, alpha, useTheme } from '@mui/material/styles';
11
+ import Menu from '@mui/material/Menu';
12
+ import ListItemIcon from '@mui/material/ListItemIcon';
13
+ import MenuItem from '@mui/material/MenuItem';
14
+ import Stack from '@mui/material/Stack';
15
+ import Checkbox from '@mui/material/Checkbox';
16
+ import Radio from '@mui/material/Radio';
17
+ import ArrowDownwardIcon from '@mui/icons-material/ArrowDownward';
18
+ import ArrowRightIcon from '@mui/icons-material/ArrowRight';
19
+ import CancelIcon from '@mui/icons-material/Cancel';
20
+ import ChevronLeftIcon from '@mui/icons-material/ChevronLeft';
21
+ import ChevronRightIcon from '@mui/icons-material/ChevronRight';
22
+ import ClearAllIcon from '@mui/icons-material/ClearAll';
23
+ import CloseIcon from '@mui/icons-material/Close';
24
+ import ContentCopy from '@mui/icons-material/ContentCopy';
25
+ import DensityLargeIcon from '@mui/icons-material/DensityLarge';
26
+ import DensityMediumIcon from '@mui/icons-material/DensityMedium';
27
+ import DensitySmallIcon from '@mui/icons-material/DensitySmall';
28
+ import DragHandleIcon from '@mui/icons-material/DragHandle';
29
+ import DynamicFeedIcon from '@mui/icons-material/DynamicFeed';
30
+ import EditIcon from '@mui/icons-material/Edit';
31
+ import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
32
+ import FilterAltIcon from '@mui/icons-material/FilterAlt';
33
+ import FilterListIcon from '@mui/icons-material/FilterList';
34
+ import FilterListOffIcon from '@mui/icons-material/FilterListOff';
35
+ import FirstPageIcon from '@mui/icons-material/FirstPage';
36
+ import FullscreenIcon from '@mui/icons-material/Fullscreen';
37
+ import FullscreenExitIcon from '@mui/icons-material/FullscreenExit';
38
+ import KeyboardDoubleArrowDownIcon from '@mui/icons-material/KeyboardDoubleArrowDown';
39
+ import LastPageIcon from '@mui/icons-material/LastPage';
40
+ import MoreHorizIcon from '@mui/icons-material/MoreHoriz';
41
+ import MoreVertIcon from '@mui/icons-material/MoreVert';
42
+ import PushPinIcon from '@mui/icons-material/PushPin';
43
+ import RestartAltIcon from '@mui/icons-material/RestartAlt';
44
+ import SaveIcon from '@mui/icons-material/Save';
45
+ import SearchIcon from '@mui/icons-material/Search';
46
+ import SearchOffIcon from '@mui/icons-material/SearchOff';
47
+ import SortIcon from '@mui/icons-material/Sort';
48
+ import SyncAltIcon from '@mui/icons-material/SyncAlt';
49
+ import ViewColumnIcon from '@mui/icons-material/ViewColumn';
50
+ import VisibilityOffIcon from '@mui/icons-material/VisibilityOff';
51
+ import { defaultRangeExtractor, useVirtualizer } from '@tanstack/react-virtual';
52
+ import Paper from '@mui/material/Paper';
53
+ import { useTheme as useTheme$1 } from '@mui/material';
54
+ import TableContainer from '@mui/material/TableContainer';
55
+ import Table from '@mui/material/Table';
56
+ import TableBody from '@mui/material/TableBody';
57
+ import Typography from '@mui/material/Typography';
58
+ import TableRow from '@mui/material/TableRow';
59
+ import Skeleton from '@mui/material/Skeleton';
60
+ import TableCell from '@mui/material/TableCell';
61
+ import highlightWords from 'highlight-words';
62
+ import TextField from '@mui/material/TextField';
63
+ import Collapse from '@mui/material/Collapse';
64
+ import TableFooter from '@mui/material/TableFooter';
65
+ import TableHead from '@mui/material/TableHead';
66
+ import FormControlLabel from '@mui/material/FormControlLabel';
67
+ import Autocomplete from '@mui/material/Autocomplete';
68
+ import Chip from '@mui/material/Chip';
69
+ import InputAdornment from '@mui/material/InputAdornment';
70
+ import { debounce } from '@mui/material/utils';
71
+ import { DatePicker } from '@mui/x-date-pickers/DatePicker';
72
+ import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker';
73
+ import { TimePicker } from '@mui/x-date-pickers/TimePicker';
74
+ import FormHelperText from '@mui/material/FormHelperText';
75
+ import Slider from '@mui/material/Slider';
76
+ import Grow from '@mui/material/Grow';
77
+ import Popover from '@mui/material/Popover';
78
+ import Divider from '@mui/material/Divider';
79
+ import Badge from '@mui/material/Badge';
80
+ import TableSortLabel from '@mui/material/TableSortLabel';
81
+ import Alert from '@mui/material/Alert';
82
+ import AlertTitle from '@mui/material/AlertTitle';
83
+ import Dialog from '@mui/material/Dialog';
84
+ import DialogActions from '@mui/material/DialogActions';
85
+ import DialogContent from '@mui/material/DialogContent';
86
+ import DialogTitle from '@mui/material/DialogTitle';
87
+ import useMediaQuery from '@mui/material/useMediaQuery';
88
+ import LinearProgress from '@mui/material/LinearProgress';
89
+ import InputLabel from '@mui/material/InputLabel';
90
+ import Pagination from '@mui/material/Pagination';
91
+ import PaginationItem from '@mui/material/PaginationItem';
92
+ import Select from '@mui/material/Select';
93
+ import Fade from '@mui/material/Fade';
94
+ import Switch from '@mui/material/Switch';
95
+
96
+ 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; };
97
+ const getAllLeafColumnDefs = (columns) => {
98
+ const allLeafColumnDefs = [];
99
+ const getLeafColumns = (cols) => {
100
+ cols.forEach((col) => {
101
+ if (col.columns) {
102
+ getLeafColumns(col.columns);
103
+ }
104
+ else {
105
+ allLeafColumnDefs.push(col);
106
+ }
107
+ });
108
+ };
109
+ getLeafColumns(columns);
110
+ return allLeafColumnDefs;
111
+ };
112
+ const prepareColumns = ({ columnDefs, tableOptions, }) => {
113
+ const { aggregationFns = {}, defaultDisplayColumn, filterFns = {}, sortingFns = {}, state: { columnFilterFns = {} } = {}, } = tableOptions;
114
+ return columnDefs.map((columnDef) => {
115
+ var _a, _b;
116
+ //assign columnId
117
+ if (!columnDef.id)
118
+ columnDef.id = getColumnId(columnDef);
119
+ //assign columnDefType
120
+ if (!columnDef.columnDefType)
121
+ columnDef.columnDefType = 'data';
122
+ if ((_a = columnDef.columns) === null || _a === void 0 ? void 0 : _a.length) {
123
+ columnDef.columnDefType = 'group';
124
+ //recursively prepare columns if this is a group column
125
+ columnDef.columns = prepareColumns({
126
+ columnDefs: columnDef.columns,
127
+ tableOptions,
128
+ });
129
+ }
130
+ else if (columnDef.columnDefType === 'data') {
131
+ //assign aggregationFns if multiple aggregationFns are provided
132
+ if (Array.isArray(columnDef.aggregationFn)) {
133
+ const aggFns = columnDef.aggregationFn;
134
+ 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); });
135
+ }
136
+ //assign filterFns
137
+ if (Object.keys(filterFns).includes(columnFilterFns[columnDef.id])) {
138
+ columnDef.filterFn =
139
+ (_b = filterFns[columnFilterFns[columnDef.id]]) !== null && _b !== void 0 ? _b : filterFns.fuzzy;
140
+ columnDef._filterFn =
141
+ columnFilterFns[columnDef.id];
142
+ }
143
+ //assign sortingFns
144
+ if (Object.keys(sortingFns).includes(columnDef.sortingFn)) {
145
+ // @ts-ignore
146
+ columnDef.sortingFn = sortingFns[columnDef.sortingFn];
147
+ }
148
+ }
149
+ else if (columnDef.columnDefType === 'display') {
150
+ columnDef = Object.assign(Object.assign({}, defaultDisplayColumn), columnDef);
151
+ }
152
+ return columnDef;
153
+ });
154
+ };
155
+ const reorderColumn = (draggedColumn, targetColumn, columnOrder) => {
156
+ if (draggedColumn.getCanPin()) {
157
+ draggedColumn.pin(targetColumn.getIsPinned());
158
+ }
159
+ const newColumnOrder = [...columnOrder];
160
+ newColumnOrder.splice(newColumnOrder.indexOf(targetColumn.id), 0, newColumnOrder.splice(newColumnOrder.indexOf(draggedColumn.id), 1)[0]);
161
+ return newColumnOrder;
162
+ };
163
+ const getDefaultColumnFilterFn = (columnDef) => {
164
+ const { filterVariant } = columnDef;
165
+ if (filterVariant === 'multi-select')
166
+ return 'arrIncludesSome';
167
+ if (filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.includes('range'))
168
+ return 'betweenInclusive';
169
+ if (filterVariant === 'select' || filterVariant === 'checkbox')
170
+ return 'equals';
171
+ return 'fuzzy';
172
+ };
173
+ const getColumnFilterInfo = ({ header, table, }) => {
174
+ var _a;
175
+ const { options: { columnFilterModeOptions }, } = table;
176
+ const { column } = header;
177
+ const { columnDef } = column;
178
+ const { filterVariant } = columnDef;
179
+ const isDateFilter = !!((filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.startsWith('date')) || (filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.startsWith('time')));
180
+ const isAutocompleteFilter = filterVariant === 'autocomplete';
181
+ const isRangeFilter = (filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.includes('range')) ||
182
+ ['between', 'betweenInclusive', 'inNumberRange'].includes(columnDef._filterFn);
183
+ const isSelectFilter = filterVariant === 'select';
184
+ const isMultiSelectFilter = filterVariant === 'multi-select';
185
+ const isTextboxFilter = ['autocomplete', 'text'].includes(filterVariant) ||
186
+ (!isSelectFilter && !isMultiSelectFilter);
187
+ const currentFilterOption = columnDef._filterFn;
188
+ const allowedColumnFilterOptions = (_a = columnDef === null || columnDef === void 0 ? void 0 : columnDef.columnFilterModeOptions) !== null && _a !== void 0 ? _a : columnFilterModeOptions;
189
+ const facetedUniqueValues = column.getFacetedUniqueValues();
190
+ return {
191
+ allowedColumnFilterOptions,
192
+ currentFilterOption,
193
+ facetedUniqueValues,
194
+ isAutocompleteFilter,
195
+ isDateFilter,
196
+ isMultiSelectFilter,
197
+ isRangeFilter,
198
+ isSelectFilter,
199
+ isTextboxFilter,
200
+ };
201
+ };
202
+ const useDropdownOptions = ({ header, table, }) => {
203
+ const { column } = header;
204
+ const { columnDef } = column;
205
+ const { facetedUniqueValues, isAutocompleteFilter, isMultiSelectFilter, isSelectFilter, } = getColumnFilterInfo({ header, table });
206
+ return useMemo(() => {
207
+ var _a;
208
+ return (_a = columnDef.filterSelectOptions) !== null && _a !== void 0 ? _a : ((isSelectFilter || isMultiSelectFilter || isAutocompleteFilter) &&
209
+ facetedUniqueValues
210
+ ? Array.from(facetedUniqueValues.keys())
211
+ .filter((value) => value !== null && value !== undefined)
212
+ .sort((a, b) => a.localeCompare(b))
213
+ : undefined);
214
+ }, [
215
+ columnDef.filterSelectOptions,
216
+ facetedUniqueValues,
217
+ isMultiSelectFilter,
218
+ isSelectFilter,
219
+ ]);
220
+ };
221
+
222
+ const flexRender = flexRender$1;
223
+ function createMRTColumnHelper() {
224
+ return {
225
+ accessor: (accessor, column) => {
226
+ return typeof accessor === 'function'
227
+ ? Object.assign(Object.assign({}, column), { accessorFn: accessor })
228
+ : Object.assign(Object.assign({}, column), { accessorKey: accessor });
229
+ },
230
+ display: (column) => column,
231
+ group: (column) => column,
232
+ };
233
+ }
234
+ const createRow = (table, originalRow, rowIndex = -1, depth = 0, subRows, parentId) => createRow$1(table, 'mrt-row-create', originalRow !== null && originalRow !== void 0 ? originalRow : Object.assign({}, ...getAllLeafColumnDefs(table.options.columns).map((col) => ({
235
+ [getColumnId(col)]: '',
236
+ }))), rowIndex, depth, subRows, parentId);
237
+
238
+ const fuzzy$1 = (rowA, rowB, columnId) => {
239
+ let dir = 0;
240
+ if (rowA.columnFiltersMeta[columnId]) {
241
+ dir = compareItems(rowA.columnFiltersMeta[columnId], rowB.columnFiltersMeta[columnId]);
242
+ }
243
+ // Provide a fallback for when the item ranks are equal
244
+ return dir === 0
245
+ ? sortingFns.alphanumeric(rowA, rowB, columnId)
246
+ : dir;
247
+ };
248
+ const MRT_SortingFns = Object.assign(Object.assign({}, sortingFns), { fuzzy: fuzzy$1 });
249
+ const rankGlobalFuzzy = (rowA, rowB) => Math.max(...Object.values(rowB.columnFiltersMeta).map((v) => v.rank)) -
250
+ Math.max(...Object.values(rowA.columnFiltersMeta).map((v) => v.rank));
251
+
252
+ const parseFromValuesOrFunc = (fn, arg) => (fn instanceof Function ? fn(arg) : fn);
253
+ const getValueAndLabel = (option) => {
254
+ var _a, _b, _c;
255
+ let label = '';
256
+ let value = '';
257
+ if (option) {
258
+ if (typeof option !== 'object') {
259
+ label = option;
260
+ value = option;
261
+ }
262
+ else {
263
+ label = (_b = (_a = option.label) !== null && _a !== void 0 ? _a : option.text) !== null && _b !== void 0 ? _b : option.value;
264
+ value = (_c = option.value) !== null && _c !== void 0 ? _c : label;
265
+ }
266
+ }
267
+ return { label, value };
268
+ };
269
+
270
+ const getMRT_Rows = (table, all) => {
271
+ const { getCenterRows, getPrePaginationRowModel, getRowModel, getState, getTopRows, options: { createDisplayMode, enablePagination, enableRowPinning, manualPagination, positionCreatingRow, rowPinningDisplayMode, }, } = table;
272
+ const { creatingRow, pagination } = getState();
273
+ const isRankingRows = getIsRankingRows(table);
274
+ let rows = [];
275
+ if (!isRankingRows) {
276
+ rows =
277
+ !enableRowPinning || (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky'))
278
+ ? all
279
+ ? getPrePaginationRowModel().rows
280
+ : getRowModel().rows
281
+ : getCenterRows();
282
+ }
283
+ else {
284
+ // fuzzy ranking adjustments
285
+ rows = getPrePaginationRowModel().rows.sort((a, b) => rankGlobalFuzzy(a, b));
286
+ if (enablePagination && !manualPagination && !all) {
287
+ const start = pagination.pageIndex * pagination.pageSize;
288
+ rows = rows.slice(start, start + pagination.pageSize);
289
+ }
290
+ if (enableRowPinning && !(rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky'))) {
291
+ // "re-center-ize" the rows (no top or bottom pinned rows unless sticky)
292
+ rows = rows.filter((row) => !row.getIsPinned());
293
+ }
294
+ }
295
+ // row pinning adjustments
296
+ if (enableRowPinning && (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky'))) {
297
+ const centerPinnedRowIds = rows
298
+ .filter((row) => row.getIsPinned())
299
+ .map((r) => r.id);
300
+ rows = [
301
+ ...getTopRows().filter((row) => !centerPinnedRowIds.includes(row.id)),
302
+ ...rows,
303
+ ];
304
+ }
305
+ // blank inserted creating row adjustments
306
+ if (positionCreatingRow !== undefined &&
307
+ creatingRow &&
308
+ createDisplayMode === 'row') {
309
+ const creatingRowIndex = !isNaN(+positionCreatingRow)
310
+ ? +positionCreatingRow
311
+ : positionCreatingRow === 'top'
312
+ ? 0
313
+ : rows.length;
314
+ rows = [
315
+ ...rows.slice(0, creatingRowIndex),
316
+ creatingRow,
317
+ ...rows.slice(creatingRowIndex),
318
+ ];
319
+ }
320
+ return rows;
321
+ };
322
+ const getCanRankRows = (table) => {
323
+ const { getState, options: { enableGlobalFilterRankedResults, manualExpanding, manualFiltering, manualGrouping, manualSorting, }, } = table;
324
+ const { expanded, globalFilterFn } = getState();
325
+ return (!manualExpanding &&
326
+ !manualFiltering &&
327
+ !manualGrouping &&
328
+ !manualSorting &&
329
+ enableGlobalFilterRankedResults &&
330
+ globalFilterFn === 'fuzzy' &&
331
+ expanded !== true &&
332
+ !Object.values(expanded).some(Boolean));
333
+ };
334
+ const getIsRankingRows = (table) => {
335
+ const { globalFilter, sorting } = table.getState();
336
+ return (getCanRankRows(table) &&
337
+ globalFilter &&
338
+ !Object.values(sorting).some(Boolean));
339
+ };
340
+ const getIsRowSelected = ({ row, table, }) => {
341
+ const { options: { enableRowSelection }, } = table;
342
+ return (row.getIsSelected() ||
343
+ (parseFromValuesOrFunc(enableRowSelection, row) &&
344
+ row.getCanSelectSubRows() &&
345
+ row.getIsAllSubRowsSelected()));
346
+ };
347
+ const getMRT_RowSelectionHandler = ({ row, staticRowIndex = 0, table, }) => (event, value) => {
348
+ var _a;
349
+ const { getState, options: { enableBatchRowSelection, enableMultiRowSelection, enableRowPinning, manualPagination, rowPinningDisplayMode, }, refs: { lastSelectedRowId: lastSelectedRowId }, } = table;
350
+ const { pagination: { pageIndex, pageSize }, } = getState();
351
+ const paginationOffset = manualPagination ? 0 : pageSize * pageIndex;
352
+ const wasCurrentRowChecked = getIsRowSelected({ row, table });
353
+ // toggle selection of this row
354
+ row.toggleSelected(value !== null && value !== void 0 ? value : !wasCurrentRowChecked);
355
+ const changedRowIds = new Set([row.id]);
356
+ // if shift key is pressed, select all rows between last selected and this one
357
+ if (enableBatchRowSelection &&
358
+ enableMultiRowSelection &&
359
+ event.nativeEvent.shiftKey &&
360
+ lastSelectedRowId.current !== null) {
361
+ const rows = getMRT_Rows(table, true);
362
+ const lastIndex = rows.findIndex((r) => r.id === lastSelectedRowId.current);
363
+ if (lastIndex !== -1) {
364
+ const isLastIndexChecked = getIsRowSelected({
365
+ row: rows === null || rows === void 0 ? void 0 : rows[lastIndex],
366
+ table,
367
+ });
368
+ const currentIndex = staticRowIndex + paginationOffset;
369
+ const [start, end] = lastIndex < currentIndex
370
+ ? [lastIndex, currentIndex]
371
+ : [currentIndex, lastIndex];
372
+ // toggle selection of all rows between last selected and this one
373
+ // but only if the last selected row is not the same as the current one
374
+ if (wasCurrentRowChecked !== isLastIndexChecked) {
375
+ for (let i = start; i <= end; i++) {
376
+ rows[i].toggleSelected(!wasCurrentRowChecked);
377
+ changedRowIds.add(rows[i].id);
378
+ }
379
+ }
380
+ }
381
+ }
382
+ // record the last selected row id
383
+ lastSelectedRowId.current = row.id;
384
+ // if all sub rows were selected, unselect them
385
+ if (row.getCanSelectSubRows() && row.getIsAllSubRowsSelected()) {
386
+ (_a = row.subRows) === null || _a === void 0 ? void 0 : _a.forEach((r) => r.toggleSelected(false));
387
+ }
388
+ if (enableRowPinning && (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('select'))) {
389
+ changedRowIds.forEach((rowId) => {
390
+ const rowToTogglePin = table.getRow(rowId);
391
+ rowToTogglePin.pin(!wasCurrentRowChecked //was not previously pinned or selected
392
+ ? (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('bottom'))
393
+ ? 'bottom'
394
+ : 'top'
395
+ : false);
396
+ });
397
+ }
398
+ };
399
+ const getMRT_SelectAllHandler = ({ table }) => (event, value, forceAll) => {
400
+ const { options: { enableRowPinning, rowPinningDisplayMode, selectAllMode }, refs: { lastSelectedRowId }, } = table;
401
+ selectAllMode === 'all' || forceAll
402
+ ? table.toggleAllRowsSelected(value !== null && value !== void 0 ? value : event.target.checked)
403
+ : table.toggleAllPageRowsSelected(value !== null && value !== void 0 ? value : event.target.checked);
404
+ if (enableRowPinning && (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('select'))) {
405
+ table.setRowPinning({ bottom: [], top: [] });
406
+ }
407
+ lastSelectedRowId.current = null;
408
+ };
409
+
410
+ const isWinCtrlMacMeta = (event) => {
411
+ return ((event.ctrlKey && navigator.platform.toLowerCase().includes('win')) ||
412
+ (event.metaKey && navigator.platform.toLowerCase().includes('mac')));
413
+ };
414
+ const isCellEditable = ({ cell, table, }) => {
415
+ const { enableEditing } = table.options;
416
+ const { column: { columnDef }, row, } = cell;
417
+ return (!cell.getIsPlaceholder() &&
418
+ parseFromValuesOrFunc(enableEditing, row) &&
419
+ parseFromValuesOrFunc(columnDef.enableEditing, row) !== false);
420
+ };
421
+ const openEditingCell = ({ cell, table, }) => {
422
+ const { options: { editDisplayMode }, refs: { editInputRefs }, } = table;
423
+ const { column } = cell;
424
+ if (isCellEditable({ cell, table }) && editDisplayMode === 'cell') {
425
+ table.setEditingCell(cell);
426
+ queueMicrotask(() => {
427
+ var _a;
428
+ const textField = editInputRefs.current[column.id];
429
+ if (textField) {
430
+ textField.focus();
431
+ (_a = textField.select) === null || _a === void 0 ? void 0 : _a.call(textField);
432
+ }
433
+ });
434
+ }
435
+ };
436
+ const cellKeyboardShortcuts = ({ cell, cellElements, cellValue, containerElement, event, header, parentElement, table, }) => {
437
+ var _a, _b, _c, _d, _e, _f, _g, _h;
438
+ if (!table.options.enableKeyboardShortcuts)
439
+ return;
440
+ if (event.isPropagationStopped())
441
+ return;
442
+ const currentCell = event.currentTarget;
443
+ if (cellValue && isWinCtrlMacMeta(event) && event.key === 'c') {
444
+ navigator.clipboard.writeText(cellValue);
445
+ }
446
+ else if (['Enter', ' '].includes(event.key)) {
447
+ if (((_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.id) === 'mrt-row-select') {
448
+ event.preventDefault();
449
+ getMRT_RowSelectionHandler({
450
+ row: cell.row,
451
+ table,
452
+ //@ts-ignore
453
+ staticRowIndex: +event.target.getAttribute('data-index'),
454
+ })(event);
455
+ }
456
+ else if (((_b = header === null || header === void 0 ? void 0 : header.column) === null || _b === void 0 ? void 0 : _b.id) === 'mrt-row-select' &&
457
+ table.options.enableSelectAll) {
458
+ event.preventDefault();
459
+ getMRT_SelectAllHandler({
460
+ table,
461
+ })(event);
462
+ }
463
+ else if (((_c = cell === null || cell === void 0 ? void 0 : cell.column) === null || _c === void 0 ? void 0 : _c.id) === 'mrt-row-expand' &&
464
+ (cell.row.getCanExpand() ||
465
+ ((_e = (_d = table.options).renderDetailPanel) === null || _e === void 0 ? void 0 : _e.call(_d, { row: cell.row, table })))) {
466
+ event.preventDefault();
467
+ cell.row.toggleExpanded();
468
+ }
469
+ else if (((_f = header === null || header === void 0 ? void 0 : header.column) === null || _f === void 0 ? void 0 : _f.id) === 'mrt-row-expand' &&
470
+ table.options.enableExpandAll) {
471
+ event.preventDefault();
472
+ table.toggleAllRowsExpanded();
473
+ }
474
+ else if ((cell === null || cell === void 0 ? void 0 : cell.column.id) === 'mrt-row-pin') {
475
+ event.preventDefault();
476
+ cell.row.getIsPinned()
477
+ ? cell.row.pin(false)
478
+ : cell.row.pin(((_g = table.options.rowPinningDisplayMode) === null || _g === void 0 ? void 0 : _g.includes('bottom'))
479
+ ? 'bottom'
480
+ : 'top');
481
+ }
482
+ else if (header && isWinCtrlMacMeta(event)) {
483
+ const actionsButton = currentCell.querySelector(`button[aria-label="${table.options.localization.columnActions}"]`);
484
+ if (actionsButton) {
485
+ actionsButton.click();
486
+ }
487
+ }
488
+ else if ((_h = header === null || header === void 0 ? void 0 : header.column) === null || _h === void 0 ? void 0 : _h.getCanSort()) {
489
+ event.preventDefault();
490
+ header.column.toggleSorting();
491
+ }
492
+ }
493
+ else if ([
494
+ 'ArrowRight',
495
+ 'ArrowLeft',
496
+ 'ArrowUp',
497
+ 'ArrowDown',
498
+ 'Home',
499
+ 'End',
500
+ 'PageUp',
501
+ 'PageDown',
502
+ ].includes(event.key)) {
503
+ event.preventDefault();
504
+ const currentRow = parentElement || currentCell.closest('tr');
505
+ const tableElement = containerElement || currentCell.closest('table');
506
+ const allCells = cellElements ||
507
+ Array.from((tableElement === null || tableElement === void 0 ? void 0 : tableElement.querySelectorAll('th, td')) || []);
508
+ const currentCellIndex = allCells.indexOf(currentCell);
509
+ const currentIndex = parseInt(currentCell.getAttribute('data-index') || '0');
510
+ let nextCell = undefined;
511
+ //home/end first or last cell in row
512
+ const findEdgeCell = (rowIndex, edge) => {
513
+ var _a;
514
+ const row = rowIndex === 'c'
515
+ ? currentRow
516
+ : rowIndex === 'f'
517
+ ? tableElement === null || tableElement === void 0 ? void 0 : tableElement.querySelector('tr')
518
+ : (_a = tableElement === null || tableElement === void 0 ? void 0 : tableElement.lastElementChild) === null || _a === void 0 ? void 0 : _a.lastElementChild;
519
+ const rowCells = Array.from((row === null || row === void 0 ? void 0 : row.children) || []);
520
+ const targetCell = edge === 'f' ? rowCells[0] : rowCells[rowCells.length - 1];
521
+ return targetCell;
522
+ };
523
+ //page up/down first or last cell in column
524
+ const findBottomTopCell = (columnIndex, edge) => {
525
+ var _a;
526
+ const row = edge === 't'
527
+ ? tableElement === null || tableElement === void 0 ? void 0 : tableElement.querySelector('tr')
528
+ : (_a = tableElement === null || tableElement === void 0 ? void 0 : tableElement.lastElementChild) === null || _a === void 0 ? void 0 : _a.lastElementChild;
529
+ const rowCells = Array.from((row === null || row === void 0 ? void 0 : row.children) || []);
530
+ const targetCell = rowCells[columnIndex];
531
+ return targetCell;
532
+ };
533
+ const findAdjacentCell = (columnIndex, searchDirection) => {
534
+ const searchArray = searchDirection === 'f'
535
+ ? allCells.slice(currentCellIndex + 1)
536
+ : allCells.slice(0, currentCellIndex).reverse();
537
+ return searchArray.find((cell) => cell.matches(`[data-index="${columnIndex}"]`));
538
+ };
539
+ switch (event.key) {
540
+ case 'ArrowRight':
541
+ nextCell = findAdjacentCell(currentIndex + 1, 'f');
542
+ break;
543
+ case 'ArrowLeft':
544
+ nextCell = findAdjacentCell(currentIndex - 1, 'b');
545
+ break;
546
+ case 'ArrowUp':
547
+ nextCell = findAdjacentCell(currentIndex, 'b');
548
+ break;
549
+ case 'ArrowDown':
550
+ nextCell = findAdjacentCell(currentIndex, 'f');
551
+ break;
552
+ case 'Home':
553
+ nextCell = findEdgeCell(isWinCtrlMacMeta(event) ? 'f' : 'c', 'f');
554
+ break;
555
+ case 'End':
556
+ nextCell = findEdgeCell(isWinCtrlMacMeta(event) ? 'l' : 'c', 'l');
557
+ break;
558
+ case 'PageUp':
559
+ nextCell = findBottomTopCell(currentIndex, 't');
560
+ break;
561
+ case 'PageDown':
562
+ nextCell = findBottomTopCell(currentIndex, 'b');
563
+ break;
564
+ }
565
+ if (nextCell) {
566
+ nextCell.focus();
567
+ }
568
+ }
569
+ };
570
+
571
+ function defaultDisplayColumnProps({ header, id, size, tableOptions, }) {
572
+ const { defaultDisplayColumn, displayColumnDefOptions, localization } = tableOptions;
573
+ 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 });
574
+ }
575
+ const showRowPinningColumn = (tableOptions) => {
576
+ const { enableRowPinning, rowPinningDisplayMode } = tableOptions;
577
+ return !!(enableRowPinning && !(rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.startsWith('select')));
578
+ };
579
+ const showRowDragColumn = (tableOptions) => {
580
+ const { enableRowDragging, enableRowOrdering } = tableOptions;
581
+ return !!(enableRowDragging || enableRowOrdering);
582
+ };
583
+ const showRowExpandColumn = (tableOptions) => {
584
+ const { enableExpanding, enableGrouping, renderDetailPanel, state: { grouping }, } = tableOptions;
585
+ return !!(enableExpanding ||
586
+ (enableGrouping && (grouping === null || grouping === void 0 ? void 0 : grouping.length)) ||
587
+ renderDetailPanel);
588
+ };
589
+ const showRowActionsColumn = (tableOptions) => {
590
+ const { createDisplayMode, editDisplayMode, enableEditing, enableRowActions, state: { creatingRow }, } = tableOptions;
591
+ return !!(enableRowActions ||
592
+ (creatingRow && createDisplayMode === 'row') ||
593
+ (enableEditing && ['modal', 'row'].includes(editDisplayMode !== null && editDisplayMode !== void 0 ? editDisplayMode : '')));
594
+ };
595
+ const showRowSelectionColumn = (tableOptions) => !!tableOptions.enableRowSelection;
596
+ const showRowNumbersColumn = (tableOptions) => !!tableOptions.enableRowNumbers;
597
+ const showRowSpacerColumn = (tableOptions) => tableOptions.layoutMode === 'grid-no-grow';
598
+ const getLeadingDisplayColumnIds = (tableOptions) => [
599
+ showRowPinningColumn(tableOptions) && 'mrt-row-pin',
600
+ showRowDragColumn(tableOptions) && 'mrt-row-drag',
601
+ tableOptions.positionActionsColumn === 'first' &&
602
+ showRowActionsColumn(tableOptions) &&
603
+ 'mrt-row-actions',
604
+ tableOptions.positionExpandColumn === 'first' &&
605
+ showRowExpandColumn(tableOptions) &&
606
+ 'mrt-row-expand',
607
+ showRowSelectionColumn(tableOptions) && 'mrt-row-select',
608
+ showRowNumbersColumn(tableOptions) && 'mrt-row-numbers',
609
+ ].filter(Boolean);
610
+ const getTrailingDisplayColumnIds = (tableOptions) => [
611
+ tableOptions.positionActionsColumn === 'last' &&
612
+ showRowActionsColumn(tableOptions) &&
613
+ 'mrt-row-actions',
614
+ tableOptions.positionExpandColumn === 'last' &&
615
+ showRowExpandColumn(tableOptions) &&
616
+ 'mrt-row-expand',
617
+ showRowSpacerColumn(tableOptions) && 'mrt-row-spacer',
618
+ ].filter(Boolean);
619
+ const getDefaultColumnOrderIds = (tableOptions, reset = false) => {
620
+ const { state: { columnOrder: currentColumnOrderIds = [] }, } = tableOptions;
621
+ const leadingDisplayColIds = getLeadingDisplayColumnIds(tableOptions);
622
+ const trailingDisplayColIds = getTrailingDisplayColumnIds(tableOptions);
623
+ const defaultColumnDefIds = getAllLeafColumnDefs(tableOptions.columns).map((columnDef) => getColumnId(columnDef));
624
+ let allLeafColumnDefIds = reset
625
+ ? defaultColumnDefIds
626
+ : Array.from(new Set([...currentColumnOrderIds, ...defaultColumnDefIds]));
627
+ allLeafColumnDefIds = allLeafColumnDefIds.filter((colId) => !leadingDisplayColIds.includes(colId) &&
628
+ !trailingDisplayColIds.includes(colId));
629
+ return [
630
+ ...leadingDisplayColIds,
631
+ ...allLeafColumnDefIds,
632
+ ...trailingDisplayColIds,
633
+ ];
634
+ };
635
+
636
+ const MRT_AggregationFns = Object.assign({}, aggregationFns);
637
+
638
+ const fuzzy = (row, columnId, filterValue, addMeta) => {
639
+ const itemRank = rankItem(row.getValue(columnId), filterValue, {
640
+ threshold: rankings.MATCHES,
641
+ });
642
+ addMeta(itemRank);
643
+ return itemRank.passed;
644
+ };
645
+ fuzzy.autoRemove = (val) => !val;
646
+ const contains = (row, id, filterValue) => row
647
+ .getValue(id)
648
+ .toString()
649
+ .toLowerCase()
650
+ .trim()
651
+ .includes(filterValue.toString().toLowerCase().trim());
652
+ contains.autoRemove = (val) => !val;
653
+ const startsWith = (row, id, filterValue) => row
654
+ .getValue(id)
655
+ .toString()
656
+ .toLowerCase()
657
+ .trim()
658
+ .startsWith(filterValue.toString().toLowerCase().trim());
659
+ startsWith.autoRemove = (val) => !val;
660
+ const endsWith = (row, id, filterValue) => row
661
+ .getValue(id)
662
+ .toString()
663
+ .toLowerCase()
664
+ .trim()
665
+ .endsWith(filterValue.toString().toLowerCase().trim());
666
+ endsWith.autoRemove = (val) => !val;
667
+ const equals = (row, id, filterValue) => row.getValue(id).toString().toLowerCase().trim() ===
668
+ (filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString().toLowerCase().trim());
669
+ equals.autoRemove = (val) => !val;
670
+ const notEquals = (row, id, filterValue) => row.getValue(id).toString().toLowerCase().trim() !==
671
+ filterValue.toString().toLowerCase().trim();
672
+ notEquals.autoRemove = (val) => !val;
673
+ const greaterThan = (row, id, filterValue) => !isNaN(+filterValue) && !isNaN(+row.getValue(id))
674
+ ? +row.getValue(id) > +filterValue
675
+ : row.getValue(id).toString().toLowerCase().trim() >
676
+ (filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString().toLowerCase().trim());
677
+ greaterThan.autoRemove = (val) => !val;
678
+ const greaterThanOrEqualTo = (row, id, filterValue) => equals(row, id, filterValue) || greaterThan(row, id, filterValue);
679
+ greaterThanOrEqualTo.autoRemove = (val) => !val;
680
+ const lessThan = (row, id, filterValue) => !isNaN(+filterValue) && !isNaN(+row.getValue(id))
681
+ ? +row.getValue(id) < +filterValue
682
+ : row.getValue(id).toString().toLowerCase().trim() <
683
+ (filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString().toLowerCase().trim());
684
+ lessThan.autoRemove = (val) => !val;
685
+ const lessThanOrEqualTo = (row, id, filterValue) => equals(row, id, filterValue) || lessThan(row, id, filterValue);
686
+ lessThanOrEqualTo.autoRemove = (val) => !val;
687
+ const between = (row, id, filterValues) => (['', undefined].includes(filterValues[0]) ||
688
+ greaterThan(row, id, filterValues[0])) &&
689
+ ((!isNaN(+filterValues[0]) &&
690
+ !isNaN(+filterValues[1]) &&
691
+ +filterValues[0] > +filterValues[1]) ||
692
+ ['', undefined].includes(filterValues[1]) ||
693
+ lessThan(row, id, filterValues[1]));
694
+ between.autoRemove = (val) => !val;
695
+ const betweenInclusive = (row, id, filterValues) => (['', undefined].includes(filterValues[0]) ||
696
+ greaterThanOrEqualTo(row, id, filterValues[0])) &&
697
+ ((!isNaN(+filterValues[0]) &&
698
+ !isNaN(+filterValues[1]) &&
699
+ +filterValues[0] > +filterValues[1]) ||
700
+ ['', undefined].includes(filterValues[1]) ||
701
+ lessThanOrEqualTo(row, id, filterValues[1]));
702
+ betweenInclusive.autoRemove = (val) => !val;
703
+ const empty = (row, id, _filterValue) => !row.getValue(id).toString().trim();
704
+ empty.autoRemove = (val) => !val;
705
+ const notEmpty = (row, id, _filterValue) => !!row.getValue(id).toString().trim();
706
+ notEmpty.autoRemove = (val) => !val;
707
+ const MRT_FilterFns = Object.assign(Object.assign({}, filterFns), { between,
708
+ betweenInclusive,
709
+ contains,
710
+ empty,
711
+ endsWith,
712
+ equals,
713
+ fuzzy,
714
+ greaterThan,
715
+ greaterThanOrEqualTo,
716
+ lessThan,
717
+ lessThanOrEqualTo,
718
+ notEmpty,
719
+ notEquals,
720
+ startsWith });
721
+
722
+ /******************************************************************************
723
+ Copyright (c) Microsoft Corporation.
724
+
725
+ Permission to use, copy, modify, and/or distribute this software for any
726
+ purpose with or without fee is hereby granted.
727
+
728
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
729
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
730
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
731
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
732
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
733
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
734
+ PERFORMANCE OF THIS SOFTWARE.
735
+ ***************************************************************************** */
736
+
737
+ function __rest(s, e) {
738
+ var t = {};
739
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
740
+ t[p] = s[p];
741
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
742
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
743
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
744
+ t[p[i]] = s[p[i]];
745
+ }
746
+ return t;
747
+ }
748
+
749
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
750
+ var e = new Error(message);
751
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
752
+ };
753
+
754
+ const MRT_EditActionButtons = (_a) => {
755
+ var { row, table, variant = 'icon' } = _a, rest = __rest(_a, ["row", "table", "variant"]);
756
+ const { getState, options: { icons: { CancelIcon, SaveIcon }, localization, onCreatingRowCancel, onCreatingRowSave, onEditingRowCancel, onEditingRowSave, }, refs: { editInputRefs }, setCreatingRow, setEditingRow, } = table;
757
+ const { creatingRow, editingRow, isSaving } = getState();
758
+ const isCreating = (creatingRow === null || creatingRow === void 0 ? void 0 : creatingRow.id) === row.id;
759
+ const isEditing = (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) === row.id;
760
+ const handleCancel = () => {
761
+ if (isCreating) {
762
+ onCreatingRowCancel === null || onCreatingRowCancel === void 0 ? void 0 : onCreatingRowCancel({ row, table });
763
+ setCreatingRow(null);
764
+ }
765
+ else if (isEditing) {
766
+ onEditingRowCancel === null || onEditingRowCancel === void 0 ? void 0 : onEditingRowCancel({ row, table });
767
+ setEditingRow(null);
768
+ }
769
+ row._valuesCache = {}; //reset values cache
770
+ };
771
+ const handleSubmitRow = () => {
772
+ var _a;
773
+ //look for auto-filled input values
774
+ (_a = Object.values(editInputRefs === null || editInputRefs === void 0 ? void 0 : editInputRefs.current)
775
+ .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) => {
776
+ if (input.value !== undefined &&
777
+ Object.hasOwn(row === null || row === void 0 ? void 0 : row._valuesCache, input.name)) {
778
+ // @ts-ignore
779
+ row._valuesCache[input.name] = input.value;
780
+ }
781
+ });
782
+ if (isCreating)
783
+ onCreatingRowSave === null || onCreatingRowSave === void 0 ? void 0 : onCreatingRowSave({
784
+ exitCreatingMode: () => setCreatingRow(null),
785
+ row,
786
+ table,
787
+ values: row._valuesCache,
788
+ });
789
+ else if (isEditing) {
790
+ onEditingRowSave === null || onEditingRowSave === void 0 ? void 0 : onEditingRowSave({
791
+ exitEditingMode: () => setEditingRow(null),
792
+ row,
793
+ table,
794
+ values: row === null || row === void 0 ? void 0 : row._valuesCache,
795
+ });
796
+ }
797
+ };
798
+ return (jsx(Box, { 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' ? (jsxs(Fragment, { children: [jsx(Tooltip, { title: localization.cancel, children: jsx(IconButton, { "aria-label": localization.cancel, onClick: handleCancel, children: jsx(CancelIcon, {}) }) }), ((isCreating && onCreatingRowSave) ||
799
+ (isEditing && onEditingRowSave)) && (jsx(Tooltip, { title: localization.save, children: jsx(IconButton, { "aria-label": localization.save, color: "info", disabled: isSaving, onClick: handleSubmitRow, children: isSaving ? jsx(CircularProgress, { size: 18 }) : jsx(SaveIcon, {}) }) }))] })) : (jsxs(Fragment, { children: [jsx(Button, { onClick: handleCancel, sx: { minWidth: '100px' }, children: localization.cancel }), jsxs(Button, { disabled: isSaving, onClick: handleSubmitRow, sx: { minWidth: '100px' }, variant: "contained", children: [isSaving && jsx(CircularProgress, { color: "inherit", size: 18 }), localization.save] })] })) }));
800
+ };
801
+
802
+ const parseCSSVarId = (id) => id.replace(/[^a-zA-Z0-9]/g, '_');
803
+ const getMRTTheme = (mrtTheme, muiTheme) => {
804
+ var _a;
805
+ const mrtThemeOverrides = parseFromValuesOrFunc(mrtTheme, muiTheme);
806
+ const baseBackgroundColor = (_a = mrtThemeOverrides === null || mrtThemeOverrides === void 0 ? void 0 : mrtThemeOverrides.baseBackgroundColor) !== null && _a !== void 0 ? _a : (muiTheme.palette.mode === 'dark'
807
+ ? lighten(muiTheme.palette.background.default, 0.05)
808
+ : muiTheme.palette.background.default);
809
+ return Object.assign({ baseBackgroundColor, draggingBorderColor: muiTheme.palette.primary.main, matchHighlightColor: muiTheme.palette.mode === 'dark'
810
+ ? darken(muiTheme.palette.warning.dark, 0.25)
811
+ : lighten(muiTheme.palette.warning.light, 0.5), menuBackgroundColor: lighten(baseBackgroundColor, 0.07), pinnedRowBackgroundColor: alpha(muiTheme.palette.primary.main, 0.1), selectedRowBackgroundColor: alpha(muiTheme.palette.primary.main, 0.2) }, mrtThemeOverrides);
812
+ };
813
+ const commonCellBeforeAfterStyles = {
814
+ content: '""',
815
+ height: '100%',
816
+ left: 0,
817
+ position: 'absolute',
818
+ top: 0,
819
+ width: '100%',
820
+ zIndex: -1,
821
+ };
822
+ const getCommonPinnedCellStyles = ({ column, table, theme, }) => {
823
+ const { baseBackgroundColor } = table.options.mrtTheme;
824
+ const isPinned = column === null || column === void 0 ? void 0 : column.getIsPinned();
825
+ return {
826
+ '&[data-pinned="true"]': {
827
+ '&:before': Object.assign({ backgroundColor: alpha(darken(baseBackgroundColor, theme.palette.mode === 'dark' ? 0.05 : 0.01), 0.97), boxShadow: column
828
+ ? isPinned === 'left' && column.getIsLastColumn(isPinned)
829
+ ? `-4px 0 4px -4px ${alpha(theme.palette.grey[700], 0.5)} inset`
830
+ : isPinned === 'right' && column.getIsFirstColumn(isPinned)
831
+ ? `4px 0 4px -4px ${alpha(theme.palette.grey[700], 0.5)} inset`
832
+ : undefined
833
+ : undefined }, commonCellBeforeAfterStyles),
834
+ },
835
+ };
836
+ };
837
+ const getCommonMRTCellStyles = ({ column, header, table, tableCellProps, theme, }) => {
838
+ var _a, _b, _c, _d, _e, _f;
839
+ const { getState, options: { enableColumnVirtualization, layoutMode }, } = table;
840
+ const { draggingColumn } = getState();
841
+ const { columnDef } = column;
842
+ const { columnDefType } = columnDef;
843
+ const isColumnPinned = columnDef.columnDefType !== 'group' && column.getIsPinned();
844
+ const widthStyles = {
845
+ 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)`,
846
+ 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)`,
847
+ };
848
+ if (layoutMode === 'grid') {
849
+ widthStyles.flex = `${[0, false].includes(columnDef.grow)
850
+ ? 0
851
+ : `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`;
852
+ }
853
+ else if (layoutMode === 'grid-no-grow') {
854
+ widthStyles.flex = `${+(columnDef.grow || 0)} 0 auto`;
855
+ }
856
+ const pinnedStyles = isColumnPinned
857
+ ? Object.assign(Object.assign({}, getCommonPinnedCellStyles({ column, table, theme })), { left: isColumnPinned === 'left'
858
+ ? `${column.getStart('left')}px`
859
+ : undefined, opacity: 0.97, position: 'sticky', right: isColumnPinned === 'right'
860
+ ? `${column.getAfter('right')}px`
861
+ : undefined }) : {};
862
+ 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'
863
+ ? 'center'
864
+ : (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid'))
865
+ ? tableCellProps.align
866
+ : undefined, opacity: ((_e = table.getState().draggingColumn) === null || _e === void 0 ? void 0 : _e.id) === column.id ||
867
+ ((_f = table.getState().hoveredColumn) === null || _f === void 0 ? void 0 : _f.id) === column.id
868
+ ? 0.5
869
+ : 1, position: 'relative', transition: enableColumnVirtualization
870
+ ? 'none'
871
+ : `padding 150ms ease-in-out`, zIndex: column.getIsResizing() || (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) === column.id
872
+ ? 2
873
+ : columnDefType !== 'group' && isColumnPinned
874
+ ? 1
875
+ : 0 }, pinnedStyles), widthStyles), parseFromValuesOrFunc(tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.sx, theme));
876
+ };
877
+ const getCommonToolbarStyles = ({ table, }) => ({
878
+ alignItems: 'flex-start',
879
+ backgroundColor: table.options.mrtTheme.baseBackgroundColor,
880
+ display: 'grid',
881
+ flexWrap: 'wrap-reverse',
882
+ minHeight: '3.5rem',
883
+ overflow: 'hidden',
884
+ position: 'relative',
885
+ transition: 'all 150ms ease-in-out',
886
+ zIndex: 1,
887
+ });
888
+ const flipIconStyles = (theme) => theme.direction === 'rtl'
889
+ ? { style: { transform: 'scaleX(-1)' } }
890
+ : undefined;
891
+ const getCommonTooltipProps = (placement) => ({
892
+ disableInteractive: true,
893
+ enterDelay: 1000,
894
+ enterNextDelay: 1000,
895
+ placement,
896
+ });
897
+
898
+ const MRT_ActionMenuItem = (_a) => {
899
+ var { icon, label, onOpenSubMenu, table } = _a, rest = __rest(_a, ["icon", "label", "onOpenSubMenu", "table"]);
900
+ const { options: { icons: { ArrowRightIcon }, }, } = table;
901
+ return (jsxs(MenuItem, Object.assign({ sx: {
902
+ alignItems: 'center',
903
+ justifyContent: 'space-between',
904
+ minWidth: '120px',
905
+ my: 0,
906
+ py: '6px',
907
+ } }, rest, { children: [jsxs(Box, { sx: {
908
+ alignItems: 'center',
909
+ display: 'flex',
910
+ }, children: [jsx(ListItemIcon, { children: icon }), label] }), onOpenSubMenu && (jsx(IconButton, { onClick: onOpenSubMenu, onMouseEnter: onOpenSubMenu, size: "small", sx: { p: 0 }, children: jsx(ArrowRightIcon, {}) }))] })));
911
+ };
912
+
913
+ const MRT_RowActionMenu = (_a) => {
914
+ var { anchorEl, handleEdit, row, setAnchorEl, staticRowIndex, table } = _a, rest = __rest(_a, ["anchorEl", "handleEdit", "row", "setAnchorEl", "staticRowIndex", "table"]);
915
+ const { getState, options: { editDisplayMode, enableEditing, icons: { EditIcon }, localization, mrtTheme: { menuBackgroundColor }, renderRowActionMenuItems, }, } = table;
916
+ const { density } = getState();
917
+ return (jsxs(Menu, Object.assign({ MenuListProps: {
918
+ dense: density === 'compact',
919
+ sx: {
920
+ backgroundColor: menuBackgroundColor,
921
+ },
922
+ }, anchorEl: anchorEl, disableScrollLock: true, onClick: (event) => event.stopPropagation(), onClose: () => setAnchorEl(null), open: !!anchorEl }, rest, { children: [parseFromValuesOrFunc(enableEditing, row) &&
923
+ ['modal', 'row'].includes(editDisplayMode) && (jsx(MRT_ActionMenuItem, { icon: jsx(EditIcon, {}), label: localization.edit, onClick: handleEdit, table: table })), renderRowActionMenuItems === null || renderRowActionMenuItems === void 0 ? void 0 : renderRowActionMenuItems({
924
+ closeMenu: () => setAnchorEl(null),
925
+ row,
926
+ staticRowIndex,
927
+ table,
928
+ })] })));
929
+ };
930
+
931
+ const commonIconButtonStyles = {
932
+ '&:hover': {
933
+ opacity: 1,
934
+ },
935
+ height: '2rem',
936
+ ml: '10px',
937
+ opacity: 0.5,
938
+ transition: 'opacity 150ms',
939
+ width: '2rem',
940
+ };
941
+ const MRT_ToggleRowActionMenuButton = (_a) => {
942
+ var { cell, row, staticRowIndex, table } = _a, rest = __rest(_a, ["cell", "row", "staticRowIndex", "table"]);
943
+ const { getState, options: { createDisplayMode, editDisplayMode, enableEditing, icons: { EditIcon, MoreHorizIcon }, localization, renderRowActionMenuItems, renderRowActions, }, setEditingRow, } = table;
944
+ const { creatingRow, editingRow } = getState();
945
+ const isCreating = (creatingRow === null || creatingRow === void 0 ? void 0 : creatingRow.id) === row.id;
946
+ const isEditing = (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) === row.id;
947
+ const showEditActionButtons = (isCreating && createDisplayMode === 'row') ||
948
+ (isEditing && editDisplayMode === 'row');
949
+ const [anchorEl, setAnchorEl] = useState(null);
950
+ const handleOpenRowActionMenu = (event) => {
951
+ event.stopPropagation();
952
+ event.preventDefault();
953
+ setAnchorEl(event.currentTarget);
954
+ };
955
+ const handleStartEditMode = (event) => {
956
+ event.stopPropagation();
957
+ setEditingRow(Object.assign({}, row));
958
+ setAnchorEl(null);
959
+ };
960
+ return (jsx(Fragment, { children: renderRowActions && !showEditActionButtons ? (renderRowActions({ cell, row, staticRowIndex, table })) : showEditActionButtons ? (jsx(MRT_EditActionButtons, { row: row, table: table })) : !renderRowActionMenuItems &&
961
+ parseFromValuesOrFunc(enableEditing, row) &&
962
+ ['modal', 'row'].includes(editDisplayMode) ? (jsx(Tooltip, { placement: "right", title: localization.edit, children: jsx(IconButton, Object.assign({ "aria-label": localization.edit, onClick: handleStartEditMode, sx: commonIconButtonStyles }, rest, { children: jsx(EditIcon, {}) })) })) : renderRowActionMenuItems ? (jsxs(Fragment, { children: [jsx(Tooltip, Object.assign({}, getCommonTooltipProps(), { title: localization.rowActions, children: jsx(IconButton, Object.assign({ "aria-label": localization.rowActions, onClick: handleOpenRowActionMenu, size: "small", sx: commonIconButtonStyles }, rest, { children: jsx(MoreHorizIcon, {}) })) })), jsx(MRT_RowActionMenu, { anchorEl: anchorEl, handleEdit: handleStartEditMode, row: row, setAnchorEl: setAnchorEl, staticRowIndex: staticRowIndex, table: table })] })) : null }));
963
+ };
964
+
965
+ const getMRT_RowActionsColumnDef = (tableOptions) => {
966
+ return Object.assign({ Cell: ({ cell, row, staticRowIndex, table }) => (jsx(MRT_ToggleRowActionMenuButton, { cell: cell, row: row, staticRowIndex: staticRowIndex, table: table })) }, defaultDisplayColumnProps({
967
+ header: 'actions',
968
+ id: 'mrt-row-actions',
969
+ size: 70,
970
+ tableOptions,
971
+ }));
972
+ };
973
+
974
+ const MRT_GrabHandleButton = (_a) => {
975
+ var _b, _c;
976
+ var { location, table } = _a, rest = __rest(_a, ["location", "table"]);
977
+ const { options: { icons: { DragHandleIcon }, localization, }, } = table;
978
+ return (jsx(Tooltip, Object.assign({}, getCommonTooltipProps('top'), { title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.move, children: jsx(IconButton, Object.assign({ "aria-label": (_c = rest.title) !== null && _c !== void 0 ? _c : localization.move, disableRipple: true, draggable: "true", size: "small" }, rest, { onClick: (e) => {
979
+ var _a;
980
+ e.stopPropagation();
981
+ (_a = rest === null || rest === void 0 ? void 0 : rest.onClick) === null || _a === void 0 ? void 0 : _a.call(rest, e);
982
+ }, sx: (theme) => (Object.assign({ '&:active': {
983
+ cursor: 'grabbing',
984
+ }, '&:hover': {
985
+ backgroundColor: 'transparent',
986
+ opacity: 1,
987
+ }, 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: jsx(DragHandleIcon, {}) })) })));
988
+ };
989
+
990
+ const MRT_TableBodyRowGrabHandle = (_a) => {
991
+ var { row, rowRef, table } = _a, rest = __rest(_a, ["row", "rowRef", "table"]);
992
+ const { options: { muiRowDragHandleProps }, } = table;
993
+ const iconButtonProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiRowDragHandleProps, {
994
+ row,
995
+ table,
996
+ })), rest);
997
+ const handleDragStart = (event) => {
998
+ var _a;
999
+ (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onDragStart) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
1000
+ try {
1001
+ event.dataTransfer.setDragImage(rowRef.current, 0, 0);
1002
+ }
1003
+ catch (e) {
1004
+ console.error(e);
1005
+ }
1006
+ table.setDraggingRow(row);
1007
+ };
1008
+ const handleDragEnd = (event) => {
1009
+ var _a;
1010
+ (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onDragEnd) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
1011
+ table.setDraggingRow(null);
1012
+ table.setHoveredRow(null);
1013
+ };
1014
+ return (jsx(MRT_GrabHandleButton, Object.assign({}, iconButtonProps, { location: "row", onDragEnd: handleDragEnd, onDragStart: handleDragStart, table: table })));
1015
+ };
1016
+
1017
+ const getMRT_RowDragColumnDef = (tableOptions) => {
1018
+ return Object.assign({ Cell: ({ row, rowRef, table }) => (jsx(MRT_TableBodyRowGrabHandle, { row: row, rowRef: rowRef, table: table })), grow: false }, defaultDisplayColumnProps({
1019
+ header: 'move',
1020
+ id: 'mrt-row-drag',
1021
+ size: 60,
1022
+ tableOptions,
1023
+ }));
1024
+ };
1025
+
1026
+ const MRT_ExpandAllButton = (_a) => {
1027
+ var _b, _c;
1028
+ var { table } = _a, rest = __rest(_a, ["table"]);
1029
+ const { getCanSomeRowsExpand, getIsAllRowsExpanded, getIsSomeRowsExpanded, getState, options: { icons: { KeyboardDoubleArrowDownIcon }, localization, muiExpandAllButtonProps, renderDetailPanel, }, toggleAllRowsExpanded, } = table;
1030
+ const { density, isLoading } = getState();
1031
+ const iconButtonProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiExpandAllButtonProps, {
1032
+ table,
1033
+ })), rest);
1034
+ const isAllRowsExpanded = getIsAllRowsExpanded();
1035
+ return (jsx(Tooltip, 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: jsx("span", { children: jsx(IconButton, Object.assign({ "aria-label": localization.expandAll, disabled: isLoading || (!renderDetailPanel && !getCanSomeRowsExpand()), onClick: () => toggleAllRowsExpanded(!isAllRowsExpanded) }, iconButtonProps, { sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.25rem', 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 : (jsx(KeyboardDoubleArrowDownIcon, { style: {
1036
+ transform: `rotate(${isAllRowsExpanded ? -180 : getIsSomeRowsExpanded() ? -90 : 0}deg)`,
1037
+ transition: 'transform 150ms',
1038
+ } })) })) }) })));
1039
+ };
1040
+
1041
+ const MRT_ExpandButton = ({ row, staticRowIndex, table, }) => {
1042
+ var _a, _b;
1043
+ const theme = useTheme();
1044
+ const { getState, options: { icons: { ExpandMoreIcon }, localization, muiExpandButtonProps, positionExpandColumn, renderDetailPanel, }, } = table;
1045
+ const { density } = getState();
1046
+ const iconButtonProps = parseFromValuesOrFunc(muiExpandButtonProps, {
1047
+ row,
1048
+ staticRowIndex,
1049
+ table,
1050
+ });
1051
+ const canExpand = row.getCanExpand();
1052
+ const isExpanded = row.getIsExpanded();
1053
+ const handleToggleExpand = (event) => {
1054
+ var _a;
1055
+ event.stopPropagation();
1056
+ row.toggleExpanded();
1057
+ (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
1058
+ };
1059
+ const detailPanel = !!(renderDetailPanel === null || renderDetailPanel === void 0 ? void 0 : renderDetailPanel({ row, table }));
1060
+ return (jsx(Tooltip, 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: jsx("span", { children: jsx(IconButton, 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'
1061
+ ? 'mr'
1062
+ : '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 : (jsx(ExpandMoreIcon, { style: {
1063
+ transform: `rotate(${!canExpand && !renderDetailPanel
1064
+ ? positionExpandColumn === 'last' ||
1065
+ theme.direction === 'rtl'
1066
+ ? 90
1067
+ : -90
1068
+ : isExpanded
1069
+ ? -180
1070
+ : 0}deg)`,
1071
+ transition: 'transform 150ms',
1072
+ } })) })) }) })));
1073
+ };
1074
+
1075
+ const getMRT_RowExpandColumnDef = (tableOptions) => {
1076
+ var _a;
1077
+ const { defaultColumn, enableExpandAll, groupedColumnMode, positionExpandColumn, renderDetailPanel, state: { grouping }, } = tableOptions;
1078
+ const alignProps = positionExpandColumn === 'last'
1079
+ ? {
1080
+ align: 'right',
1081
+ }
1082
+ : undefined;
1083
+ return Object.assign({ Cell: ({ cell, column, row, staticRowIndex, table }) => {
1084
+ var _a, _b, _c;
1085
+ const expandButtonProps = { row, staticRowIndex, table };
1086
+ const subRowsLength = (_a = row.subRows) === null || _a === void 0 ? void 0 : _a.length;
1087
+ if (groupedColumnMode === 'remove' && row.groupingColumnId) {
1088
+ return (jsxs(Stack, { alignItems: "center", flexDirection: "row", gap: "0.25rem", children: [jsx(MRT_ExpandButton, Object.assign({}, expandButtonProps)), jsx(Tooltip, Object.assign({}, getCommonTooltipProps('right'), { title: table.getColumn(row.groupingColumnId).columnDef.header, children: jsx("span", { children: row.groupingValue }) })), !!subRowsLength && jsxs("span", { children: ["(", subRowsLength, ")"] })] }));
1089
+ }
1090
+ else {
1091
+ return (jsxs(Fragment, { children: [jsx(MRT_ExpandButton, Object.assign({}, expandButtonProps)), (_c = (_b = column.columnDef).GroupedCell) === null || _c === void 0 ? void 0 : _c.call(_b, { cell, column, row, table })] }));
1092
+ }
1093
+ }, Header: enableExpandAll
1094
+ ? ({ table }) => {
1095
+ var _a;
1096
+ return (jsxs(Fragment, { children: [jsx(MRT_ExpandAllButton, { table: table }), groupedColumnMode === 'remove' &&
1097
+ ((_a = grouping === null || grouping === void 0 ? void 0 : grouping.map((groupedColumnId) => table.getColumn(groupedColumnId).columnDef.header)) === null || _a === void 0 ? void 0 : _a.join(', '))] }));
1098
+ }
1099
+ : undefined, muiTableBodyCellProps: alignProps, muiTableHeadCellProps: alignProps }, defaultDisplayColumnProps({
1100
+ header: 'expand',
1101
+ id: 'mrt-row-expand',
1102
+ size: groupedColumnMode === 'remove'
1103
+ ? ((_a = defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.size) !== null && _a !== void 0 ? _a : 180)
1104
+ : renderDetailPanel
1105
+ ? enableExpandAll
1106
+ ? 60
1107
+ : 70
1108
+ : 100,
1109
+ tableOptions,
1110
+ }));
1111
+ };
1112
+
1113
+ const getMRT_RowNumbersColumnDef = (tableOptions) => {
1114
+ const { localization, rowNumberDisplayMode } = tableOptions;
1115
+ const { pagination: { pageIndex, pageSize }, } = tableOptions.state;
1116
+ return Object.assign({ Cell: ({ row, staticRowIndex }) => {
1117
+ var _a;
1118
+ return ((_a = (rowNumberDisplayMode === 'static'
1119
+ ? (staticRowIndex || 0) + (pageSize || 0) * (pageIndex || 0)
1120
+ : row.index)) !== null && _a !== void 0 ? _a : 0) + 1;
1121
+ }, Header: () => localization.rowNumber, grow: false }, defaultDisplayColumnProps({
1122
+ header: 'rowNumbers',
1123
+ id: 'mrt-row-numbers',
1124
+ size: 50,
1125
+ tableOptions,
1126
+ }));
1127
+ };
1128
+
1129
+ const MRT_RowPinButton = (_a) => {
1130
+ var { pinningPosition, row, table } = _a, rest = __rest(_a, ["pinningPosition", "row", "table"]);
1131
+ const { options: { icons: { CloseIcon, PushPinIcon }, localization, rowPinningDisplayMode, }, } = table;
1132
+ const isPinned = row.getIsPinned();
1133
+ const [tooltipOpened, setTooltipOpened] = useState(false);
1134
+ const handleTogglePin = (event) => {
1135
+ setTooltipOpened(false);
1136
+ event.stopPropagation();
1137
+ row.pin(isPinned ? false : pinningPosition);
1138
+ };
1139
+ return (jsx(Tooltip, Object.assign({}, getCommonTooltipProps(), { open: tooltipOpened, title: isPinned ? localization.unpin : localization.pin, children: jsx(IconButton, 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 ? (jsx(CloseIcon, {})) : (jsx(PushPinIcon, { fontSize: "small", style: {
1140
+ transform: `rotate(${rowPinningDisplayMode === 'sticky'
1141
+ ? 135
1142
+ : pinningPosition === 'top'
1143
+ ? 180
1144
+ : 0}deg)`,
1145
+ } })) })) })));
1146
+ };
1147
+
1148
+ const MRT_TableBodyRowPinButton = (_a) => {
1149
+ var { row, table } = _a, rest = __rest(_a, ["row", "table"]);
1150
+ const { getState, options: { enableRowPinning, rowPinningDisplayMode }, } = table;
1151
+ const { density } = getState();
1152
+ const canPin = parseFromValuesOrFunc(enableRowPinning, row);
1153
+ if (!canPin)
1154
+ return null;
1155
+ const rowPinButtonProps = Object.assign({ row,
1156
+ table }, rest);
1157
+ if (rowPinningDisplayMode === 'top-and-bottom' && !row.getIsPinned()) {
1158
+ return (jsxs(Box, { sx: {
1159
+ display: 'flex',
1160
+ flexDirection: density === 'compact' ? 'row' : 'column',
1161
+ }, children: [jsx(MRT_RowPinButton, Object.assign({ pinningPosition: "top" }, rowPinButtonProps)), jsx(MRT_RowPinButton, Object.assign({ pinningPosition: "bottom" }, rowPinButtonProps))] }));
1162
+ }
1163
+ return (jsx(MRT_RowPinButton, Object.assign({ pinningPosition: rowPinningDisplayMode === 'bottom' ? 'bottom' : 'top' }, rowPinButtonProps)));
1164
+ };
1165
+
1166
+ const getMRT_RowPinningColumnDef = (tableOptions) => {
1167
+ return Object.assign({ Cell: ({ row, table }) => (jsx(MRT_TableBodyRowPinButton, { row: row, table: table })), grow: false }, defaultDisplayColumnProps({
1168
+ header: 'pin',
1169
+ id: 'mrt-row-pin',
1170
+ size: 60,
1171
+ tableOptions,
1172
+ }));
1173
+ };
1174
+
1175
+ const MRT_SelectCheckbox = (_a) => {
1176
+ var _b;
1177
+ var { row, staticRowIndex, table } = _a, rest = __rest(_a, ["row", "staticRowIndex", "table"]);
1178
+ const { getState, options: { enableMultiRowSelection, localization, muiSelectAllCheckboxProps, muiSelectCheckboxProps, selectAllMode, }, } = table;
1179
+ const { density, isLoading } = getState();
1180
+ const selectAll = !row;
1181
+ const allRowsSelected = selectAll
1182
+ ? selectAllMode === 'page'
1183
+ ? table.getIsAllPageRowsSelected()
1184
+ : table.getIsAllRowsSelected()
1185
+ : undefined;
1186
+ const isChecked = selectAll
1187
+ ? allRowsSelected
1188
+ : getIsRowSelected({ row, table });
1189
+ const checkboxProps = Object.assign(Object.assign({}, (selectAll
1190
+ ? parseFromValuesOrFunc(muiSelectAllCheckboxProps, { table })
1191
+ : parseFromValuesOrFunc(muiSelectCheckboxProps, {
1192
+ row,
1193
+ staticRowIndex,
1194
+ table,
1195
+ }))), rest);
1196
+ const onSelectionChange = row
1197
+ ? getMRT_RowSelectionHandler({
1198
+ row,
1199
+ staticRowIndex,
1200
+ table,
1201
+ })
1202
+ : undefined;
1203
+ const onSelectAllChange = getMRT_SelectAllHandler({ table });
1204
+ const commonProps = Object.assign(Object.assign({ 'aria-label': selectAll
1205
+ ? localization.toggleSelectAll
1206
+ : localization.toggleSelectRow, checked: isChecked, disabled: isLoading || (row && !row.getCanSelect()) || (row === null || row === void 0 ? void 0 : row.id) === 'mrt-row-create', inputProps: {
1207
+ 'aria-label': selectAll
1208
+ ? localization.toggleSelectAll
1209
+ : localization.toggleSelectRow,
1210
+ }, onChange: (event) => {
1211
+ event.stopPropagation();
1212
+ selectAll ? onSelectAllChange(event) : onSelectionChange(event);
1213
+ }, size: (density === 'compact' ? 'small' : 'medium') }, checkboxProps), { onClick: (e) => {
1214
+ var _a;
1215
+ e.stopPropagation();
1216
+ (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a === void 0 ? void 0 : _a.call(checkboxProps, e);
1217
+ }, 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 });
1218
+ return (jsx(Tooltip, Object.assign({}, getCommonTooltipProps(), { title: (_b = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _b !== void 0 ? _b : (selectAll
1219
+ ? localization.toggleSelectAll
1220
+ : localization.toggleSelectRow), children: enableMultiRowSelection === false ? (jsx(Radio, Object.assign({}, commonProps))) : (jsx(Checkbox, Object.assign({ indeterminate: !isChecked && selectAll
1221
+ ? table.getIsSomeRowsSelected()
1222
+ : (row === null || row === void 0 ? void 0 : row.getIsSomeSelected()) && row.getCanSelectSubRows() }, commonProps))) })));
1223
+ };
1224
+
1225
+ const getMRT_RowSelectColumnDef = (tableOptions) => {
1226
+ const { enableMultiRowSelection, enableSelectAll } = tableOptions;
1227
+ return Object.assign({ Cell: ({ row, staticRowIndex, table }) => (jsx(MRT_SelectCheckbox, { row: row, staticRowIndex: staticRowIndex, table: table })), Header: enableSelectAll && enableMultiRowSelection
1228
+ ? ({ table }) => jsx(MRT_SelectCheckbox, { table: table })
1229
+ : undefined, grow: false }, defaultDisplayColumnProps({
1230
+ header: 'select',
1231
+ id: 'mrt-row-select',
1232
+ size: enableSelectAll ? 60 : 70,
1233
+ tableOptions,
1234
+ }));
1235
+ };
1236
+
1237
+ const MRT_Default_Icons = {
1238
+ ArrowDownwardIcon,
1239
+ ArrowRightIcon,
1240
+ CancelIcon,
1241
+ ChevronLeftIcon,
1242
+ ChevronRightIcon,
1243
+ ClearAllIcon,
1244
+ CloseIcon,
1245
+ ContentCopy,
1246
+ DensityLargeIcon,
1247
+ DensityMediumIcon,
1248
+ DensitySmallIcon,
1249
+ DragHandleIcon,
1250
+ DynamicFeedIcon,
1251
+ EditIcon,
1252
+ ExpandMoreIcon,
1253
+ FilterAltIcon,
1254
+ FilterListIcon,
1255
+ FilterListOffIcon,
1256
+ FirstPageIcon,
1257
+ FullscreenExitIcon,
1258
+ FullscreenIcon,
1259
+ KeyboardDoubleArrowDownIcon,
1260
+ LastPageIcon,
1261
+ MoreHorizIcon,
1262
+ MoreVertIcon,
1263
+ PushPinIcon,
1264
+ RestartAltIcon,
1265
+ SaveIcon,
1266
+ SearchIcon,
1267
+ SearchOffIcon,
1268
+ SortIcon,
1269
+ SyncAltIcon,
1270
+ ViewColumnIcon,
1271
+ VisibilityOffIcon,
1272
+ };
1273
+
1274
+ const MRT_Localization_EN = {
1275
+ actions: 'Actions',
1276
+ and: 'and',
1277
+ cancel: 'Cancel',
1278
+ changeFilterMode: 'Change filter mode',
1279
+ changeSearchMode: 'Change search mode',
1280
+ clearFilter: 'Clear filter',
1281
+ clearSearch: 'Clear search',
1282
+ clearSelection: 'Clear selection',
1283
+ clearSort: 'Clear sort',
1284
+ clickToCopy: 'Click to copy',
1285
+ copy: 'Copy',
1286
+ collapse: 'Collapse',
1287
+ collapseAll: 'Collapse all',
1288
+ columnActions: 'Column Actions',
1289
+ copiedToClipboard: 'Copied to clipboard',
1290
+ dropToGroupBy: 'Drop to group by {column}',
1291
+ edit: 'Edit',
1292
+ expand: 'Expand',
1293
+ expandAll: 'Expand all',
1294
+ filterArrIncludes: 'Includes',
1295
+ filterArrIncludesAll: 'Includes all',
1296
+ filterArrIncludesSome: 'Includes',
1297
+ filterBetween: 'Between',
1298
+ filterBetweenInclusive: 'Between Inclusive',
1299
+ filterByColumn: 'Filter by {column}',
1300
+ filterContains: 'Contains',
1301
+ filterEmpty: 'Empty',
1302
+ filterEndsWith: 'Ends With',
1303
+ filterEquals: 'Equals',
1304
+ filterEqualsString: 'Equals',
1305
+ filterFuzzy: 'Fuzzy',
1306
+ filterGreaterThan: 'Greater Than',
1307
+ filterGreaterThanOrEqualTo: 'Greater Than Or Equal To',
1308
+ filterInNumberRange: 'Between',
1309
+ filterIncludesString: 'Contains',
1310
+ filterIncludesStringSensitive: 'Contains',
1311
+ filterLessThan: 'Less Than',
1312
+ filterLessThanOrEqualTo: 'Less Than Or Equal To',
1313
+ filterMode: 'Filter Mode: {filterType}',
1314
+ filterNotEmpty: 'Not Empty',
1315
+ filterNotEquals: 'Not Equals',
1316
+ filterStartsWith: 'Starts With',
1317
+ filterWeakEquals: 'Equals',
1318
+ filteringByColumn: 'Filtering by {column} - {filterType} {filterValue}',
1319
+ goToFirstPage: 'Go to first page',
1320
+ goToLastPage: 'Go to last page',
1321
+ goToNextPage: 'Go to next page',
1322
+ goToPreviousPage: 'Go to previous page',
1323
+ grab: 'Grab',
1324
+ groupByColumn: 'Group by {column}',
1325
+ groupedBy: 'Grouped by ',
1326
+ hideAll: 'Hide all',
1327
+ hideColumn: 'Hide {column} column',
1328
+ max: 'Max',
1329
+ min: 'Min',
1330
+ move: 'Move',
1331
+ noRecordsToDisplay: 'No records to display',
1332
+ noResultsFound: 'No results found',
1333
+ of: 'of',
1334
+ or: 'or',
1335
+ pin: 'Pin',
1336
+ pinToLeft: 'Pin to left',
1337
+ pinToRight: 'Pin to right',
1338
+ resetColumnSize: 'Reset column size',
1339
+ resetOrder: 'Reset order',
1340
+ rowActions: 'Row Actions',
1341
+ rowNumber: '#',
1342
+ rowNumbers: 'Row Numbers',
1343
+ rowsPerPage: 'Rows per page',
1344
+ save: 'Save',
1345
+ search: 'Search',
1346
+ selectedCountOfRowCountRowsSelected: '{selectedCount} of {rowCount} row(s) selected',
1347
+ select: 'Select',
1348
+ showAll: 'Show all',
1349
+ showAllColumns: 'Show all columns',
1350
+ showHideColumns: 'Show/Hide columns',
1351
+ showHideFilters: 'Show/Hide filters',
1352
+ showHideSearch: 'Show/Hide search',
1353
+ sortByColumnAsc: 'Sort by {column} ascending',
1354
+ sortByColumnDesc: 'Sort by {column} descending',
1355
+ sortedByColumnAsc: 'Sorted by {column} ascending',
1356
+ sortedByColumnDesc: 'Sorted by {column} descending',
1357
+ thenBy: ', then by ',
1358
+ toggleDensity: 'Toggle density',
1359
+ toggleFullScreen: 'Toggle full screen',
1360
+ toggleSelectAll: 'Toggle select all',
1361
+ toggleSelectRow: 'Toggle select row',
1362
+ toggleVisibility: 'Toggle visibility',
1363
+ ungroupByColumn: 'Ungroup by {column}',
1364
+ unpin: 'Unpin',
1365
+ unpinAll: 'Unpin all',
1366
+ };
1367
+
1368
+ const MRT_DefaultColumn = {
1369
+ filterVariant: 'text',
1370
+ maxSize: 1000,
1371
+ minSize: 40,
1372
+ size: 180,
1373
+ };
1374
+ const MRT_DefaultDisplayColumn = {
1375
+ columnDefType: 'display',
1376
+ enableClickToCopy: false,
1377
+ enableColumnActions: false,
1378
+ enableColumnDragging: false,
1379
+ enableColumnFilter: false,
1380
+ enableColumnOrdering: false,
1381
+ enableEditing: false,
1382
+ enableGlobalFilter: false,
1383
+ enableGrouping: false,
1384
+ enableHiding: false,
1385
+ enableResizing: false,
1386
+ enableSorting: false,
1387
+ };
1388
+ const useMRT_TableOptions = (_a) => {
1389
+ var _b;
1390
+ 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"]);
1391
+ const theme = useTheme();
1392
+ icons = useMemo(() => (Object.assign(Object.assign({}, MRT_Default_Icons), icons)), [icons]);
1393
+ localization = useMemo(() => (Object.assign(Object.assign({}, MRT_Localization_EN), localization)), [localization]);
1394
+ mrtTheme = useMemo(() => getMRTTheme(mrtTheme, theme), [mrtTheme, theme]);
1395
+ aggregationFns = useMemo(() => (Object.assign(Object.assign({}, MRT_AggregationFns), aggregationFns)), []);
1396
+ filterFns = useMemo(() => (Object.assign(Object.assign({}, MRT_FilterFns), filterFns)), []);
1397
+ sortingFns = useMemo(() => (Object.assign(Object.assign({}, MRT_SortingFns), sortingFns)), []);
1398
+ defaultColumn = useMemo(() => (Object.assign(Object.assign({}, MRT_DefaultColumn), defaultColumn)), [defaultColumn]);
1399
+ defaultDisplayColumn = useMemo(() => (Object.assign(Object.assign({}, MRT_DefaultDisplayColumn), defaultDisplayColumn)), [defaultDisplayColumn]);
1400
+ //cannot be changed after initialization
1401
+ [enableColumnVirtualization, enableRowVirtualization] = useMemo(() => [enableColumnVirtualization, enableRowVirtualization], []);
1402
+ if (!columnResizeDirection) {
1403
+ columnResizeDirection = theme.direction || 'ltr';
1404
+ }
1405
+ layoutMode =
1406
+ layoutMode || (enableColumnResizing ? 'grid-no-grow' : 'semantic');
1407
+ if (layoutMode === 'semantic' &&
1408
+ (enableRowVirtualization || enableColumnVirtualization)) {
1409
+ layoutMode = 'grid';
1410
+ }
1411
+ if (enableRowVirtualization) {
1412
+ enableStickyHeader = true;
1413
+ }
1414
+ if (enablePagination === false && manualPagination === undefined) {
1415
+ manualPagination = true;
1416
+ }
1417
+ if (!((_b = rest.data) === null || _b === void 0 ? void 0 : _b.length)) {
1418
+ manualFiltering = true;
1419
+ manualGrouping = true;
1420
+ manualPagination = true;
1421
+ manualSorting = true;
1422
+ }
1423
+ return Object.assign({ aggregationFns,
1424
+ autoResetExpanded,
1425
+ columnFilterDisplayMode,
1426
+ columnResizeDirection,
1427
+ columnResizeMode,
1428
+ createDisplayMode,
1429
+ defaultColumn,
1430
+ defaultDisplayColumn,
1431
+ editDisplayMode,
1432
+ enableBatchRowSelection,
1433
+ enableBottomToolbar,
1434
+ enableColumnActions,
1435
+ enableColumnFilters,
1436
+ enableColumnOrdering,
1437
+ enableColumnPinning,
1438
+ enableColumnResizing,
1439
+ enableColumnVirtualization,
1440
+ enableDensityToggle,
1441
+ enableExpandAll,
1442
+ enableExpanding,
1443
+ enableFacetedValues,
1444
+ enableFilterMatchHighlighting,
1445
+ enableFilters,
1446
+ enableFullScreenToggle,
1447
+ enableGlobalFilter,
1448
+ enableGlobalFilterRankedResults,
1449
+ enableGrouping,
1450
+ enableHiding,
1451
+ enableMultiRowSelection,
1452
+ enableKeyboardShortcuts,
1453
+ enableMultiSort,
1454
+ enablePagination,
1455
+ enableRowPinning,
1456
+ enableRowSelection,
1457
+ enableRowVirtualization,
1458
+ enableSelectAll,
1459
+ enableSorting,
1460
+ enableStickyHeader,
1461
+ enableTableFooter,
1462
+ enableTableHead,
1463
+ enableToolbarInternalActions,
1464
+ enableTopToolbar,
1465
+ filterFns, getCoreRowModel: getCoreRowModel(), getExpandedRowModel: enableExpanding || enableGrouping ? getExpandedRowModel() : undefined, getFacetedMinMaxValues: enableFacetedValues
1466
+ ? getFacetedMinMaxValues()
1467
+ : undefined, getFacetedRowModel: enableFacetedValues ? getFacetedRowModel() : undefined, getFacetedUniqueValues: enableFacetedValues
1468
+ ? getFacetedUniqueValues()
1469
+ : undefined, getFilteredRowModel: (enableColumnFilters || enableGlobalFilter || enableFilters) &&
1470
+ !manualFiltering
1471
+ ? getFilteredRowModel()
1472
+ : undefined, getGroupedRowModel: enableGrouping && !manualGrouping ? getGroupedRowModel() : undefined, getPaginationRowModel: enablePagination && !manualPagination
1473
+ ? getPaginationRowModel()
1474
+ : undefined, getSortedRowModel: enableSorting && !manualSorting ? getSortedRowModel() : undefined, getSubRows: (row) => row === null || row === void 0 ? void 0 : row.subRows, icons,
1475
+ layoutMode,
1476
+ localization,
1477
+ manualFiltering,
1478
+ manualGrouping,
1479
+ manualPagination,
1480
+ manualSorting,
1481
+ mrtTheme,
1482
+ paginationDisplayMode,
1483
+ positionActionsColumn,
1484
+ positionCreatingRow,
1485
+ positionExpandColumn,
1486
+ positionGlobalFilter,
1487
+ positionPagination,
1488
+ positionToolbarAlertBanner,
1489
+ positionToolbarDropZone,
1490
+ rowNumberDisplayMode,
1491
+ rowPinningDisplayMode,
1492
+ selectAllMode,
1493
+ sortingFns }, rest);
1494
+ };
1495
+
1496
+ const blankColProps = {
1497
+ children: null,
1498
+ sx: {
1499
+ minWidth: 0,
1500
+ p: 0,
1501
+ width: 0,
1502
+ },
1503
+ };
1504
+ const getMRT_RowSpacerColumnDef = (tableOptions) => {
1505
+ return Object.assign(Object.assign(Object.assign(Object.assign({}, defaultDisplayColumnProps({
1506
+ id: 'mrt-row-spacer',
1507
+ size: 0,
1508
+ tableOptions,
1509
+ })), { grow: true }), MRT_DefaultDisplayColumn), { muiTableBodyCellProps: blankColProps, muiTableFooterCellProps: blankColProps, muiTableHeadCellProps: blankColProps });
1510
+ };
1511
+
1512
+ const useMRT_Effects = (table) => {
1513
+ const { getIsSomeRowsPinned, getPrePaginationRowModel, getState, options: { enablePagination, enableRowPinning, rowCount }, } = table;
1514
+ const { columnOrder, density, globalFilter, isFullScreen, isLoading, pagination, showSkeletons, sorting, } = getState();
1515
+ const totalColumnCount = table.options.columns.length;
1516
+ const totalRowCount = rowCount !== null && rowCount !== void 0 ? rowCount : getPrePaginationRowModel().rows.length;
1517
+ const rerender = useReducer(() => ({}), {})[1];
1518
+ const initialBodyHeight = useRef();
1519
+ const previousTop = useRef();
1520
+ useEffect(() => {
1521
+ if (typeof window !== 'undefined') {
1522
+ initialBodyHeight.current = document.body.style.height;
1523
+ }
1524
+ }, []);
1525
+ //hide scrollbars when table is in full screen mode, preserve body scroll position after full screen exit
1526
+ useEffect(() => {
1527
+ if (typeof window !== 'undefined') {
1528
+ if (isFullScreen) {
1529
+ previousTop.current = document.body.getBoundingClientRect().top; //save scroll position
1530
+ document.body.style.height = '100dvh'; //hide page scrollbars when table is in full screen mode
1531
+ }
1532
+ else {
1533
+ document.body.style.height = initialBodyHeight.current;
1534
+ if (!previousTop.current)
1535
+ return;
1536
+ //restore scroll position
1537
+ window.scrollTo({
1538
+ behavior: 'instant',
1539
+ top: -1 * previousTop.current,
1540
+ });
1541
+ }
1542
+ }
1543
+ }, [isFullScreen]);
1544
+ //recalculate column order when columns change or features are toggled on/off
1545
+ useEffect(() => {
1546
+ if (totalColumnCount !== columnOrder.length) {
1547
+ table.setColumnOrder(getDefaultColumnOrderIds(table.options));
1548
+ }
1549
+ }, [totalColumnCount]);
1550
+ //if page index is out of bounds, set it to the last page
1551
+ useEffect(() => {
1552
+ if (!enablePagination || isLoading || showSkeletons)
1553
+ return;
1554
+ const { pageIndex, pageSize } = pagination;
1555
+ const firstVisibleRowIndex = pageIndex * pageSize;
1556
+ if (firstVisibleRowIndex >= totalRowCount) {
1557
+ table.setPageIndex(Math.ceil(totalRowCount / pageSize) - 1);
1558
+ }
1559
+ }, [totalRowCount]);
1560
+ //turn off sort when global filter is looking for ranked results
1561
+ const appliedSort = useRef(sorting);
1562
+ useEffect(() => {
1563
+ if (sorting.length) {
1564
+ appliedSort.current = sorting;
1565
+ }
1566
+ }, [sorting]);
1567
+ useEffect(() => {
1568
+ if (!getCanRankRows(table))
1569
+ return;
1570
+ if (globalFilter) {
1571
+ table.setSorting([]);
1572
+ }
1573
+ else {
1574
+ table.setSorting(() => appliedSort.current || []);
1575
+ }
1576
+ }, [globalFilter]);
1577
+ //fix pinned row top style when density changes
1578
+ useEffect(() => {
1579
+ if (enableRowPinning && getIsSomeRowsPinned()) {
1580
+ setTimeout(() => {
1581
+ rerender();
1582
+ }, 150);
1583
+ }
1584
+ }, [density]);
1585
+ };
1586
+
1587
+ /**
1588
+ * The MRT hook that wraps the TanStack useReactTable hook and adds additional functionality
1589
+ * @param definedTableOptions - table options with proper defaults set
1590
+ * @returns the MRT table instance
1591
+ */
1592
+ const useMRT_TableInstance = (definedTableOptions) => {
1593
+ 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;
1594
+ const lastSelectedRowId = useRef(null);
1595
+ const actionCellRef = useRef(null);
1596
+ const bottomToolbarRef = useRef(null);
1597
+ const editInputRefs = useRef({});
1598
+ const filterInputRefs = useRef({});
1599
+ const searchInputRef = useRef(null);
1600
+ const tableContainerRef = useRef(null);
1601
+ const tableHeadCellRefs = useRef({});
1602
+ const tablePaperRef = useRef(null);
1603
+ const topToolbarRef = useRef(null);
1604
+ const tableHeadRef = useRef(null);
1605
+ const tableFooterRef = useRef(null);
1606
+ //transform initial state with proper column order
1607
+ const initialState = useMemo(() => {
1608
+ var _a, _b, _c;
1609
+ const initState = (_a = definedTableOptions.initialState) !== null && _a !== void 0 ? _a : {};
1610
+ initState.columnOrder =
1611
+ (_b = initState.columnOrder) !== null && _b !== void 0 ? _b : getDefaultColumnOrderIds(Object.assign(Object.assign({}, definedTableOptions), { state: Object.assign(Object.assign({}, definedTableOptions.initialState), definedTableOptions.state) }));
1612
+ initState.globalFilterFn = (_c = definedTableOptions.globalFilterFn) !== null && _c !== void 0 ? _c : 'fuzzy';
1613
+ return initState;
1614
+ }, []);
1615
+ definedTableOptions.initialState = initialState;
1616
+ const [actionCell, setActionCell] = useState((_a = initialState.actionCell) !== null && _a !== void 0 ? _a : null);
1617
+ const [creatingRow, _setCreatingRow] = useState((_b = initialState.creatingRow) !== null && _b !== void 0 ? _b : null);
1618
+ const [columnFilterFns, setColumnFilterFns] = useState(() => Object.assign({}, ...getAllLeafColumnDefs(definedTableOptions.columns).map((col) => {
1619
+ var _a, _b, _c, _d;
1620
+ return ({
1621
+ [getColumnId(col)]: col.filterFn instanceof Function
1622
+ ? ((_a = col.filterFn.name) !== null && _a !== void 0 ? _a : 'custom')
1623
+ : ((_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)),
1624
+ });
1625
+ })));
1626
+ const [columnOrder, onColumnOrderChange] = useState((_c = initialState.columnOrder) !== null && _c !== void 0 ? _c : []);
1627
+ const [columnSizingInfo, onColumnSizingInfoChange] = useState((_d = initialState.columnSizingInfo) !== null && _d !== void 0 ? _d : {});
1628
+ const [density, setDensity] = useState((_e = initialState === null || initialState === void 0 ? void 0 : initialState.density) !== null && _e !== void 0 ? _e : 'comfortable');
1629
+ const [draggingColumn, setDraggingColumn] = useState((_f = initialState.draggingColumn) !== null && _f !== void 0 ? _f : null);
1630
+ const [draggingRow, setDraggingRow] = useState((_g = initialState.draggingRow) !== null && _g !== void 0 ? _g : null);
1631
+ const [editingCell, setEditingCell] = useState((_h = initialState.editingCell) !== null && _h !== void 0 ? _h : null);
1632
+ const [editingRow, setEditingRow] = useState((_j = initialState.editingRow) !== null && _j !== void 0 ? _j : null);
1633
+ const [globalFilterFn, setGlobalFilterFn] = useState((_k = initialState.globalFilterFn) !== null && _k !== void 0 ? _k : 'fuzzy');
1634
+ const [grouping, onGroupingChange] = useState((_l = initialState.grouping) !== null && _l !== void 0 ? _l : []);
1635
+ const [hoveredColumn, setHoveredColumn] = useState((_m = initialState.hoveredColumn) !== null && _m !== void 0 ? _m : null);
1636
+ const [hoveredRow, setHoveredRow] = useState((_o = initialState.hoveredRow) !== null && _o !== void 0 ? _o : null);
1637
+ const [isFullScreen, setIsFullScreen] = useState((_p = initialState === null || initialState === void 0 ? void 0 : initialState.isFullScreen) !== null && _p !== void 0 ? _p : false);
1638
+ const [pagination, onPaginationChange] = useState((_q = initialState === null || initialState === void 0 ? void 0 : initialState.pagination) !== null && _q !== void 0 ? _q : { pageIndex: 0, pageSize: 10 });
1639
+ const [showAlertBanner, setShowAlertBanner] = useState((_r = initialState === null || initialState === void 0 ? void 0 : initialState.showAlertBanner) !== null && _r !== void 0 ? _r : false);
1640
+ const [showColumnFilters, setShowColumnFilters] = useState((_s = initialState === null || initialState === void 0 ? void 0 : initialState.showColumnFilters) !== null && _s !== void 0 ? _s : false);
1641
+ const [showGlobalFilter, setShowGlobalFilter] = useState((_t = initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) !== null && _t !== void 0 ? _t : false);
1642
+ const [showToolbarDropZone, setShowToolbarDropZone] = useState((_u = initialState === null || initialState === void 0 ? void 0 : initialState.showToolbarDropZone) !== null && _u !== void 0 ? _u : false);
1643
+ definedTableOptions.state = Object.assign({ actionCell,
1644
+ columnFilterFns,
1645
+ columnOrder,
1646
+ columnSizingInfo,
1647
+ creatingRow,
1648
+ density,
1649
+ draggingColumn,
1650
+ draggingRow,
1651
+ editingCell,
1652
+ editingRow,
1653
+ globalFilterFn,
1654
+ grouping,
1655
+ hoveredColumn,
1656
+ hoveredRow,
1657
+ isFullScreen,
1658
+ pagination,
1659
+ showAlertBanner,
1660
+ showColumnFilters,
1661
+ showGlobalFilter,
1662
+ showToolbarDropZone }, definedTableOptions.state);
1663
+ //The table options now include all state needed to help determine column visibility and order logic
1664
+ const statefulTableOptions = definedTableOptions;
1665
+ //don't recompute columnDefs while resizing column or dragging column/row
1666
+ const columnDefsRef = useRef([]);
1667
+ statefulTableOptions.columns =
1668
+ statefulTableOptions.state.columnSizingInfo.isResizingColumn ||
1669
+ statefulTableOptions.state.draggingColumn ||
1670
+ statefulTableOptions.state.draggingRow
1671
+ ? columnDefsRef.current
1672
+ : prepareColumns({
1673
+ columnDefs: [
1674
+ ...[
1675
+ showRowPinningColumn(statefulTableOptions) &&
1676
+ getMRT_RowPinningColumnDef(statefulTableOptions),
1677
+ showRowDragColumn(statefulTableOptions) &&
1678
+ getMRT_RowDragColumnDef(statefulTableOptions),
1679
+ showRowActionsColumn(statefulTableOptions) &&
1680
+ getMRT_RowActionsColumnDef(statefulTableOptions),
1681
+ showRowExpandColumn(statefulTableOptions) &&
1682
+ getMRT_RowExpandColumnDef(statefulTableOptions),
1683
+ showRowSelectionColumn(statefulTableOptions) &&
1684
+ getMRT_RowSelectColumnDef(statefulTableOptions),
1685
+ showRowNumbersColumn(statefulTableOptions) &&
1686
+ getMRT_RowNumbersColumnDef(statefulTableOptions),
1687
+ ].filter(Boolean),
1688
+ ...statefulTableOptions.columns,
1689
+ ...[
1690
+ showRowSpacerColumn(statefulTableOptions) &&
1691
+ getMRT_RowSpacerColumnDef(statefulTableOptions),
1692
+ ].filter(Boolean),
1693
+ ],
1694
+ tableOptions: statefulTableOptions,
1695
+ });
1696
+ columnDefsRef.current = statefulTableOptions.columns;
1697
+ //if loading, generate blank rows to show skeleton loaders
1698
+ statefulTableOptions.data = useMemo(() => (statefulTableOptions.state.isLoading ||
1699
+ statefulTableOptions.state.showSkeletons) &&
1700
+ !statefulTableOptions.data.length
1701
+ ? [
1702
+ ...Array(Math.min(statefulTableOptions.state.pagination.pageSize, 20)).fill(null),
1703
+ ].map(() => Object.assign({}, ...getAllLeafColumnDefs(statefulTableOptions.columns).map((col) => ({
1704
+ [getColumnId(col)]: null,
1705
+ }))))
1706
+ : statefulTableOptions.data, [
1707
+ statefulTableOptions.data,
1708
+ statefulTableOptions.state.isLoading,
1709
+ statefulTableOptions.state.showSkeletons,
1710
+ ]);
1711
+ //@ts-ignore
1712
+ const table = useReactTable(Object.assign(Object.assign({ onColumnOrderChange,
1713
+ onColumnSizingInfoChange,
1714
+ onGroupingChange,
1715
+ onPaginationChange }, statefulTableOptions), { globalFilterFn: (_v = statefulTableOptions.filterFns) === null || _v === void 0 ? void 0 : _v[globalFilterFn !== null && globalFilterFn !== void 0 ? globalFilterFn : 'fuzzy'] }));
1716
+ table.refs = {
1717
+ actionCellRef,
1718
+ bottomToolbarRef,
1719
+ editInputRefs,
1720
+ filterInputRefs,
1721
+ lastSelectedRowId,
1722
+ searchInputRef,
1723
+ tableContainerRef,
1724
+ tableFooterRef,
1725
+ tableHeadCellRefs,
1726
+ tableHeadRef,
1727
+ tablePaperRef,
1728
+ topToolbarRef,
1729
+ };
1730
+ table.setActionCell =
1731
+ (_w = statefulTableOptions.onActionCellChange) !== null && _w !== void 0 ? _w : setActionCell;
1732
+ table.setCreatingRow = (row) => {
1733
+ var _a, _b;
1734
+ let _row = row;
1735
+ if (row === true) {
1736
+ _row = createRow(table);
1737
+ }
1738
+ (_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);
1739
+ };
1740
+ table.setColumnFilterFns =
1741
+ (_x = statefulTableOptions.onColumnFilterFnsChange) !== null && _x !== void 0 ? _x : setColumnFilterFns;
1742
+ table.setDensity = (_y = statefulTableOptions.onDensityChange) !== null && _y !== void 0 ? _y : setDensity;
1743
+ table.setDraggingColumn =
1744
+ (_z = statefulTableOptions.onDraggingColumnChange) !== null && _z !== void 0 ? _z : setDraggingColumn;
1745
+ table.setDraggingRow =
1746
+ (_0 = statefulTableOptions.onDraggingRowChange) !== null && _0 !== void 0 ? _0 : setDraggingRow;
1747
+ table.setEditingCell =
1748
+ (_1 = statefulTableOptions.onEditingCellChange) !== null && _1 !== void 0 ? _1 : setEditingCell;
1749
+ table.setEditingRow =
1750
+ (_2 = statefulTableOptions.onEditingRowChange) !== null && _2 !== void 0 ? _2 : setEditingRow;
1751
+ table.setGlobalFilterFn =
1752
+ (_3 = statefulTableOptions.onGlobalFilterFnChange) !== null && _3 !== void 0 ? _3 : setGlobalFilterFn;
1753
+ table.setHoveredColumn =
1754
+ (_4 = statefulTableOptions.onHoveredColumnChange) !== null && _4 !== void 0 ? _4 : setHoveredColumn;
1755
+ table.setHoveredRow =
1756
+ (_5 = statefulTableOptions.onHoveredRowChange) !== null && _5 !== void 0 ? _5 : setHoveredRow;
1757
+ table.setIsFullScreen =
1758
+ (_6 = statefulTableOptions.onIsFullScreenChange) !== null && _6 !== void 0 ? _6 : setIsFullScreen;
1759
+ table.setShowAlertBanner =
1760
+ (_7 = statefulTableOptions.onShowAlertBannerChange) !== null && _7 !== void 0 ? _7 : setShowAlertBanner;
1761
+ table.setShowColumnFilters =
1762
+ (_8 = statefulTableOptions.onShowColumnFiltersChange) !== null && _8 !== void 0 ? _8 : setShowColumnFilters;
1763
+ table.setShowGlobalFilter =
1764
+ (_9 = statefulTableOptions.onShowGlobalFilterChange) !== null && _9 !== void 0 ? _9 : setShowGlobalFilter;
1765
+ table.setShowToolbarDropZone =
1766
+ (_10 = statefulTableOptions.onShowToolbarDropZoneChange) !== null && _10 !== void 0 ? _10 : setShowToolbarDropZone;
1767
+ useMRT_Effects(table);
1768
+ return table;
1769
+ };
1770
+
1771
+ const useMaterialReactTable = (tableOptions) => useMRT_TableInstance(useMRT_TableOptions(tableOptions));
1772
+
1773
+ const extraIndexRangeExtractor = (range, draggingIndex) => {
1774
+ const newIndexes = defaultRangeExtractor(range);
1775
+ if (draggingIndex === undefined)
1776
+ return newIndexes;
1777
+ if (draggingIndex >= 0 &&
1778
+ draggingIndex < Math.max(range.startIndex - range.overscan, 0)) {
1779
+ newIndexes.unshift(draggingIndex);
1780
+ }
1781
+ if (draggingIndex >= 0 && draggingIndex > range.endIndex + range.overscan) {
1782
+ newIndexes.push(draggingIndex);
1783
+ }
1784
+ return newIndexes;
1785
+ };
1786
+
1787
+ const useMRT_ColumnVirtualizer = (table) => {
1788
+ var _a, _b, _c, _d;
1789
+ const { getState, options: { columnVirtualizerInstanceRef, columnVirtualizerOptions, enableColumnPinning, enableColumnVirtualization, }, refs: { tableContainerRef }, } = table;
1790
+ const { columnPinning, columnVisibility, draggingColumn } = getState();
1791
+ if (!enableColumnVirtualization)
1792
+ return undefined;
1793
+ const columnVirtualizerProps = parseFromValuesOrFunc(columnVirtualizerOptions, {
1794
+ table,
1795
+ });
1796
+ const visibleColumns = table.getVisibleLeafColumns();
1797
+ const [leftPinnedIndexes, rightPinnedIndexes] = useMemo(() => enableColumnPinning
1798
+ ? [
1799
+ table.getLeftVisibleLeafColumns().map((c) => c.getPinnedIndex()),
1800
+ table
1801
+ .getRightVisibleLeafColumns()
1802
+ .map((column) => visibleColumns.length - column.getPinnedIndex() - 1)
1803
+ .sort((a, b) => a - b),
1804
+ ]
1805
+ : [[], []], [columnPinning, columnVisibility, enableColumnPinning]);
1806
+ const numPinnedLeft = leftPinnedIndexes.length;
1807
+ const numPinnedRight = rightPinnedIndexes.length;
1808
+ const draggingColumnIndex = useMemo(() => (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id)
1809
+ ? visibleColumns.findIndex((c) => c.id === (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id))
1810
+ : undefined, [draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id]);
1811
+ const columnVirtualizer = useVirtualizer(Object.assign({ count: visibleColumns.length, estimateSize: (index) => visibleColumns[index].getSize(), getScrollElement: () => tableContainerRef.current, horizontal: true, overscan: 3, rangeExtractor: useCallback((range) => {
1812
+ const newIndexes = extraIndexRangeExtractor(range, draggingColumnIndex);
1813
+ if (!numPinnedLeft && !numPinnedRight) {
1814
+ return newIndexes;
1815
+ }
1816
+ return [
1817
+ ...new Set([
1818
+ ...leftPinnedIndexes,
1819
+ ...newIndexes,
1820
+ ...rightPinnedIndexes,
1821
+ ]),
1822
+ ];
1823
+ }, [leftPinnedIndexes, rightPinnedIndexes, draggingColumnIndex]) }, columnVirtualizerProps));
1824
+ const virtualColumns = columnVirtualizer.getVirtualItems();
1825
+ columnVirtualizer.virtualColumns = virtualColumns;
1826
+ const numColumns = virtualColumns.length;
1827
+ if (numColumns) {
1828
+ const totalSize = columnVirtualizer.getTotalSize();
1829
+ const leftNonPinnedStart = ((_a = virtualColumns[numPinnedLeft]) === null || _a === void 0 ? void 0 : _a.start) || 0;
1830
+ const leftNonPinnedEnd = ((_b = virtualColumns[leftPinnedIndexes.length - 1]) === null || _b === void 0 ? void 0 : _b.end) || 0;
1831
+ const rightNonPinnedStart = ((_c = virtualColumns[numColumns - numPinnedRight]) === null || _c === void 0 ? void 0 : _c.start) || 0;
1832
+ const rightNonPinnedEnd = ((_d = virtualColumns[numColumns - numPinnedRight - 1]) === null || _d === void 0 ? void 0 : _d.end) || 0;
1833
+ columnVirtualizer.virtualPaddingLeft =
1834
+ leftNonPinnedStart - leftNonPinnedEnd;
1835
+ columnVirtualizer.virtualPaddingRight =
1836
+ totalSize -
1837
+ rightNonPinnedEnd -
1838
+ (numPinnedRight ? totalSize - rightNonPinnedStart : 0);
1839
+ }
1840
+ if (columnVirtualizerInstanceRef) {
1841
+ //@ts-ignore
1842
+ columnVirtualizerInstanceRef.current = columnVirtualizer;
1843
+ }
1844
+ return columnVirtualizer;
1845
+ };
1846
+
1847
+ const useMRT_RowVirtualizer = (table, rows) => {
1848
+ var _a;
1849
+ const { getRowModel, getState, options: { enableRowVirtualization, renderDetailPanel, rowVirtualizerInstanceRef, rowVirtualizerOptions, }, refs: { tableContainerRef }, } = table;
1850
+ const { density, draggingRow, expanded } = getState();
1851
+ if (!enableRowVirtualization)
1852
+ return undefined;
1853
+ const rowVirtualizerProps = parseFromValuesOrFunc(rowVirtualizerOptions, {
1854
+ table,
1855
+ });
1856
+ const rowCount = (_a = rows === null || rows === void 0 ? void 0 : rows.length) !== null && _a !== void 0 ? _a : getRowModel().rows.length;
1857
+ const normalRowHeight = density === 'compact' ? 37 : density === 'comfortable' ? 58 : 73;
1858
+ const rowVirtualizer = useVirtualizer(Object.assign({ count: renderDetailPanel ? rowCount * 2 : rowCount, estimateSize: (index) => renderDetailPanel && index % 2 === 1
1859
+ ? expanded === true
1860
+ ? 100
1861
+ : 0
1862
+ : normalRowHeight, getScrollElement: () => tableContainerRef.current, measureElement: typeof window !== 'undefined' &&
1863
+ navigator.userAgent.indexOf('Firefox') === -1
1864
+ ? (element) => element === null || element === void 0 ? void 0 : element.getBoundingClientRect().height
1865
+ : undefined, overscan: 4, rangeExtractor: useCallback((range) => {
1866
+ var _a;
1867
+ return extraIndexRangeExtractor(range, (_a = draggingRow === null || draggingRow === void 0 ? void 0 : draggingRow.index) !== null && _a !== void 0 ? _a : 0);
1868
+ }, [draggingRow]) }, rowVirtualizerProps));
1869
+ rowVirtualizer.virtualRows = rowVirtualizer.getVirtualItems();
1870
+ if (rowVirtualizerInstanceRef) {
1871
+ //@ts-ignore
1872
+ rowVirtualizerInstanceRef.current = rowVirtualizer;
1873
+ }
1874
+ return rowVirtualizer;
1875
+ };
1876
+
1877
+ const useMRT_Rows = (table) => {
1878
+ const { getRowModel, getState, options: { data, enableGlobalFilterRankedResults, positionCreatingRow }, } = table;
1879
+ const { creatingRow, expanded, globalFilter, pagination, rowPinning, sorting, } = getState();
1880
+ const rows = useMemo(() => getMRT_Rows(table), [
1881
+ creatingRow,
1882
+ data,
1883
+ enableGlobalFilterRankedResults,
1884
+ expanded,
1885
+ getRowModel().rows,
1886
+ globalFilter,
1887
+ pagination.pageIndex,
1888
+ pagination.pageSize,
1889
+ positionCreatingRow,
1890
+ rowPinning,
1891
+ sorting,
1892
+ ]);
1893
+ return rows;
1894
+ };
1895
+
1896
+ const allowedTypes = ['string', 'number'];
1897
+ const MRT_TableBodyCellValue = ({ cell, rowRef, staticColumnIndex, staticRowIndex, table, }) => {
1898
+ var _a, _b, _c;
1899
+ const { getState, options: { enableFilterMatchHighlighting, mrtTheme: { matchHighlightColor }, }, } = table;
1900
+ const { column, row } = cell;
1901
+ const { columnDef } = column;
1902
+ const { globalFilter, globalFilterFn } = getState();
1903
+ const filterValue = column.getFilterValue();
1904
+ let renderedCellValue = cell.getIsAggregated() && columnDef.AggregatedCell
1905
+ ? columnDef.AggregatedCell({
1906
+ cell,
1907
+ column,
1908
+ row,
1909
+ table,
1910
+ staticColumnIndex,
1911
+ staticRowIndex,
1912
+ })
1913
+ : row.getIsGrouped() && !cell.getIsGrouped()
1914
+ ? null
1915
+ : cell.getIsGrouped() && columnDef.GroupedCell
1916
+ ? columnDef.GroupedCell({
1917
+ cell,
1918
+ column,
1919
+ row,
1920
+ table,
1921
+ staticColumnIndex,
1922
+ staticRowIndex,
1923
+ })
1924
+ : undefined;
1925
+ const isGroupedValue = renderedCellValue !== undefined;
1926
+ if (!isGroupedValue) {
1927
+ renderedCellValue = cell.renderValue();
1928
+ }
1929
+ if (enableFilterMatchHighlighting &&
1930
+ columnDef.enableFilterMatchHighlighting !== false &&
1931
+ String(renderedCellValue) &&
1932
+ allowedTypes.includes(typeof renderedCellValue) &&
1933
+ ((filterValue &&
1934
+ allowedTypes.includes(typeof filterValue) &&
1935
+ ['autocomplete', 'text'].includes(columnDef.filterVariant)) ||
1936
+ (globalFilter &&
1937
+ allowedTypes.includes(typeof globalFilter) &&
1938
+ column.getCanGlobalFilter()))) {
1939
+ const chunks = highlightWords === null || highlightWords === void 0 ? void 0 : highlightWords({
1940
+ matchExactly: (filterValue ? columnDef._filterFn : globalFilterFn) !== 'fuzzy',
1941
+ query: ((_a = filterValue !== null && filterValue !== void 0 ? filterValue : globalFilter) !== null && _a !== void 0 ? _a : '').toString(),
1942
+ text: renderedCellValue === null || renderedCellValue === void 0 ? void 0 : renderedCellValue.toString(),
1943
+ });
1944
+ 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)) {
1945
+ renderedCellValue = (jsx("span", { "aria-label": renderedCellValue, role: "note", children: (_c = chunks === null || chunks === void 0 ? void 0 : chunks.map(({ key, match, text }) => (jsx(Box, { "aria-hidden": "true", component: "span", sx: match
1946
+ ? {
1947
+ backgroundColor: matchHighlightColor,
1948
+ borderRadius: '2px',
1949
+ color: (theme) => theme.palette.mode === 'dark'
1950
+ ? theme.palette.common.white
1951
+ : theme.palette.common.black,
1952
+ padding: '2px 1px',
1953
+ }
1954
+ : undefined, children: text }, key)))) !== null && _c !== void 0 ? _c : renderedCellValue }));
1955
+ }
1956
+ }
1957
+ if (columnDef.Cell && !isGroupedValue) {
1958
+ renderedCellValue = columnDef.Cell({
1959
+ cell,
1960
+ column,
1961
+ renderedCellValue,
1962
+ row,
1963
+ rowRef,
1964
+ staticColumnIndex,
1965
+ staticRowIndex,
1966
+ table,
1967
+ });
1968
+ }
1969
+ return renderedCellValue;
1970
+ };
1971
+
1972
+ const MRT_CopyButton = (_a) => {
1973
+ var _b;
1974
+ var { cell, table } = _a, rest = __rest(_a, ["cell", "table"]);
1975
+ const { options: { localization, muiCopyButtonProps }, } = table;
1976
+ const { column, row } = cell;
1977
+ const { columnDef } = column;
1978
+ const [copied, setCopied] = useState(false);
1979
+ const handleCopy = (event, text) => {
1980
+ event.stopPropagation();
1981
+ navigator.clipboard.writeText(text);
1982
+ setCopied(true);
1983
+ setTimeout(() => setCopied(false), 4000);
1984
+ };
1985
+ const buttonProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiCopyButtonProps, {
1986
+ cell,
1987
+ column,
1988
+ row,
1989
+ table,
1990
+ })), parseFromValuesOrFunc(columnDef.muiCopyButtonProps, {
1991
+ cell,
1992
+ column,
1993
+ row,
1994
+ table,
1995
+ })), rest);
1996
+ return (jsx(Tooltip, 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: jsx(Button, Object.assign({ onClick: (e) => handleCopy(e, cell.getValue()), size: "small", type: "button", variant: "text" }, buttonProps, { sx: (theme) => (Object.assign({ backgroundColor: 'transparent', border: 'none', color: 'inherit', cursor: 'copy', fontFamily: 'inherit', fontSize: 'inherit', letterSpacing: 'inherit', m: '-0.25rem', minWidth: 'unset', py: 0, textAlign: 'inherit', textTransform: 'inherit' }, parseFromValuesOrFunc(buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.sx, theme))), title: undefined })) })));
1997
+ };
1998
+
1999
+ const MRT_EditCellTextField = (_a) => {
2000
+ var _b, _c;
2001
+ var { cell, table } = _a, rest = __rest(_a, ["cell", "table"]);
2002
+ const { getState, options: { createDisplayMode, editDisplayMode, muiEditTextFieldProps }, refs: { editInputRefs }, setCreatingRow, setEditingCell, setEditingRow, } = table;
2003
+ const { column, row } = cell;
2004
+ const { columnDef } = column;
2005
+ const { creatingRow, editingRow } = getState();
2006
+ const { editSelectOptions, editVariant } = columnDef;
2007
+ const isCreating = (creatingRow === null || creatingRow === void 0 ? void 0 : creatingRow.id) === row.id;
2008
+ const isEditing = (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) === row.id;
2009
+ const [value, setValue] = useState(() => cell.getValue());
2010
+ const [completesComposition, setCompletesComposition] = useState(true);
2011
+ const textFieldProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiEditTextFieldProps, {
2012
+ cell,
2013
+ column,
2014
+ row,
2015
+ table,
2016
+ })), parseFromValuesOrFunc(columnDef.muiEditTextFieldProps, {
2017
+ cell,
2018
+ column,
2019
+ row,
2020
+ table,
2021
+ })), rest);
2022
+ const selectOptions = parseFromValuesOrFunc(editSelectOptions, {
2023
+ cell,
2024
+ column,
2025
+ row,
2026
+ table,
2027
+ });
2028
+ const isSelectEdit = editVariant === 'select' || (textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.select);
2029
+ const saveInputValueToRowCache = (newValue) => {
2030
+ //@ts-ignore
2031
+ row._valuesCache[column.id] = newValue;
2032
+ if (isCreating) {
2033
+ setCreatingRow(row);
2034
+ }
2035
+ else if (isEditing) {
2036
+ setEditingRow(row);
2037
+ }
2038
+ };
2039
+ const handleChange = (event) => {
2040
+ var _a;
2041
+ (_a = textFieldProps.onChange) === null || _a === void 0 ? void 0 : _a.call(textFieldProps, event);
2042
+ setValue(event.target.value);
2043
+ if (isSelectEdit) {
2044
+ saveInputValueToRowCache(event.target.value);
2045
+ }
2046
+ };
2047
+ const handleBlur = (event) => {
2048
+ var _a;
2049
+ (_a = textFieldProps.onBlur) === null || _a === void 0 ? void 0 : _a.call(textFieldProps, event);
2050
+ saveInputValueToRowCache(value);
2051
+ setEditingCell(null);
2052
+ };
2053
+ const handleEnterKeyDown = (event) => {
2054
+ var _a, _b;
2055
+ (_a = textFieldProps.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(textFieldProps, event);
2056
+ if (event.key === 'Enter' && !event.shiftKey && completesComposition) {
2057
+ (_b = editInputRefs.current[column.id]) === null || _b === void 0 ? void 0 : _b.blur();
2058
+ }
2059
+ };
2060
+ if (columnDef.Edit) {
2061
+ return jsx(Fragment, { children: (_b = columnDef.Edit) === null || _b === void 0 ? void 0 : _b.call(columnDef, { cell, column, row, table }) });
2062
+ }
2063
+ return (jsx(TextField, Object.assign({ disabled: parseFromValuesOrFunc(columnDef.enableEditing, row) === false, fullWidth: true, inputRef: (inputRef) => {
2064
+ if (inputRef) {
2065
+ editInputRefs.current[column.id] = inputRef;
2066
+ if (textFieldProps.inputRef) {
2067
+ textFieldProps.inputRef = inputRef;
2068
+ }
2069
+ }
2070
+ }, label: ['custom', 'modal'].includes((isCreating ? createDisplayMode : editDisplayMode))
2071
+ ? columnDef.header
2072
+ : undefined, margin: "none", name: column.id, placeholder: !['custom', 'modal'].includes((isCreating ? createDisplayMode : editDisplayMode))
2073
+ ? columnDef.header
2074
+ : 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'
2075
+ ? { disableUnderline: editDisplayMode === 'table' }
2076
+ : {})), textFieldProps.InputProps), { sx: (theme) => {
2077
+ var _a;
2078
+ 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)));
2079
+ } }), SelectProps: Object.assign({ MenuProps: { disableScrollLock: true } }, textFieldProps.SelectProps), inputProps: Object.assign({ autoComplete: 'new-password' }, textFieldProps.inputProps), onBlur: handleBlur, onChange: handleChange, onClick: (e) => {
2080
+ var _a;
2081
+ e.stopPropagation();
2082
+ (_a = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.onClick) === null || _a === void 0 ? void 0 : _a.call(textFieldProps, e);
2083
+ }, 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) => {
2084
+ const { label, value } = getValueAndLabel(option);
2085
+ return (jsx(MenuItem, { sx: {
2086
+ alignItems: 'center',
2087
+ display: 'flex',
2088
+ gap: '0.5rem',
2089
+ m: 0,
2090
+ }, value: value, children: label }, value));
2091
+ }) })));
2092
+ };
2093
+
2094
+ const MRT_TableBodyCell = (_a) => {
2095
+ var _b, _c, _d, _e, _f;
2096
+ var { cell, numRows, rowRef, staticColumnIndex, staticRowIndex, table } = _a, rest = __rest(_a, ["cell", "numRows", "rowRef", "staticColumnIndex", "staticRowIndex", "table"]);
2097
+ const theme = useTheme();
2098
+ const { getState, options: { columnResizeDirection, columnResizeMode, createDisplayMode, editDisplayMode, enableCellActions, enableClickToCopy, enableColumnOrdering, enableColumnPinning, enableGrouping, enableKeyboardShortcuts, layoutMode, mrtTheme: { draggingBorderColor }, muiSkeletonProps, muiTableBodyCellProps, }, setHoveredColumn, } = table;
2099
+ const { actionCell, columnSizingInfo, creatingRow, density, draggingColumn, draggingRow, editingCell, editingRow, hoveredColumn, hoveredRow, isLoading, showSkeletons, } = getState();
2100
+ const { column, row } = cell;
2101
+ const { columnDef } = column;
2102
+ const { columnDefType } = columnDef;
2103
+ const args = { cell, column, row, table };
2104
+ const tableCellProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableBodyCellProps, args)), parseFromValuesOrFunc(columnDef.muiTableBodyCellProps, args)), rest);
2105
+ const skeletonProps = parseFromValuesOrFunc(muiSkeletonProps, {
2106
+ cell,
2107
+ column,
2108
+ row,
2109
+ table,
2110
+ });
2111
+ const [skeletonWidth, setSkeletonWidth] = useState(100);
2112
+ useEffect(() => {
2113
+ if ((!isLoading && !showSkeletons) || skeletonWidth !== 100)
2114
+ return;
2115
+ const size = column.getSize();
2116
+ setSkeletonWidth(columnDefType === 'display'
2117
+ ? size / 2
2118
+ : Math.round(Math.random() * (size - size / 3) + size / 3));
2119
+ }, [isLoading, showSkeletons]);
2120
+ const draggingBorders = useMemo(() => {
2121
+ const isDraggingColumn = (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) === column.id;
2122
+ const isHoveredColumn = (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id;
2123
+ const isDraggingRow = (draggingRow === null || draggingRow === void 0 ? void 0 : draggingRow.id) === row.id;
2124
+ const isHoveredRow = (hoveredRow === null || hoveredRow === void 0 ? void 0 : hoveredRow.id) === row.id;
2125
+ const isFirstColumn = column.getIsFirstColumn();
2126
+ const isLastColumn = column.getIsLastColumn();
2127
+ const isLastRow = numRows && staticRowIndex === numRows - 1;
2128
+ const isResizingColumn = columnSizingInfo.isResizingColumn === column.id;
2129
+ const showResizeBorder = isResizingColumn && columnResizeMode === 'onChange';
2130
+ const borderStyle = showResizeBorder
2131
+ ? `2px solid ${draggingBorderColor} !important`
2132
+ : isDraggingColumn || isDraggingRow
2133
+ ? `1px dashed ${theme.palette.grey[500]} !important`
2134
+ : isHoveredColumn || isHoveredRow || isResizingColumn
2135
+ ? `2px dashed ${draggingBorderColor} !important`
2136
+ : undefined;
2137
+ if (showResizeBorder) {
2138
+ return columnResizeDirection === 'ltr'
2139
+ ? { borderRight: borderStyle }
2140
+ : { borderLeft: borderStyle };
2141
+ }
2142
+ return borderStyle
2143
+ ? {
2144
+ borderBottom: isDraggingRow || isHoveredRow || (isLastRow && !isResizingColumn)
2145
+ ? borderStyle
2146
+ : undefined,
2147
+ borderLeft: isDraggingColumn ||
2148
+ isHoveredColumn ||
2149
+ ((isDraggingRow || isHoveredRow) && isFirstColumn)
2150
+ ? borderStyle
2151
+ : undefined,
2152
+ borderRight: isDraggingColumn ||
2153
+ isHoveredColumn ||
2154
+ ((isDraggingRow || isHoveredRow) && isLastColumn)
2155
+ ? borderStyle
2156
+ : undefined,
2157
+ borderTop: isDraggingRow || isHoveredRow ? borderStyle : undefined,
2158
+ }
2159
+ : undefined;
2160
+ }, [
2161
+ columnSizingInfo.isResizingColumn,
2162
+ draggingColumn,
2163
+ draggingRow,
2164
+ hoveredColumn,
2165
+ hoveredRow,
2166
+ staticRowIndex,
2167
+ ]);
2168
+ const isColumnPinned = enableColumnPinning &&
2169
+ columnDef.columnDefType !== 'group' &&
2170
+ column.getIsPinned();
2171
+ const isEditable = isCellEditable({ cell, table });
2172
+ const isEditing = isEditable &&
2173
+ !['custom', 'modal'].includes(editDisplayMode) &&
2174
+ (editDisplayMode === 'table' ||
2175
+ (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) === row.id ||
2176
+ (editingCell === null || editingCell === void 0 ? void 0 : editingCell.id) === cell.id) &&
2177
+ !row.getIsGrouped();
2178
+ const isCreating = isEditable && createDisplayMode === 'row' && (creatingRow === null || creatingRow === void 0 ? void 0 : creatingRow.id) === row.id;
2179
+ const showClickToCopyButton = (parseFromValuesOrFunc(enableClickToCopy, cell) === true ||
2180
+ parseFromValuesOrFunc(columnDef.enableClickToCopy, cell) === true) &&
2181
+ !['context-menu', false].includes(
2182
+ // @ts-ignore
2183
+ parseFromValuesOrFunc(columnDef.enableClickToCopy, cell));
2184
+ const isRightClickable = parseFromValuesOrFunc(enableCellActions, cell);
2185
+ const cellValueProps = {
2186
+ cell,
2187
+ table,
2188
+ staticColumnIndex,
2189
+ staticRowIndex,
2190
+ };
2191
+ const handleDoubleClick = (event) => {
2192
+ var _a;
2193
+ (_a = tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.onDoubleClick) === null || _a === void 0 ? void 0 : _a.call(tableCellProps, event);
2194
+ openEditingCell({ cell, table });
2195
+ };
2196
+ const handleDragEnter = (e) => {
2197
+ var _a;
2198
+ (_a = tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.onDragEnter) === null || _a === void 0 ? void 0 : _a.call(tableCellProps, e);
2199
+ if (enableGrouping && (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === 'drop-zone') {
2200
+ setHoveredColumn(null);
2201
+ }
2202
+ if (enableColumnOrdering && draggingColumn) {
2203
+ setHoveredColumn(columnDef.enableColumnOrdering !== false ? column : null);
2204
+ }
2205
+ };
2206
+ const handleDragOver = (e) => {
2207
+ if (columnDef.enableColumnOrdering !== false) {
2208
+ e.preventDefault();
2209
+ }
2210
+ };
2211
+ const handleContextMenu = (e) => {
2212
+ var _a;
2213
+ (_a = tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.onContextMenu) === null || _a === void 0 ? void 0 : _a.call(tableCellProps, e);
2214
+ if (isRightClickable) {
2215
+ e.preventDefault();
2216
+ table.setActionCell(cell);
2217
+ table.refs.actionCellRef.current = e.currentTarget;
2218
+ }
2219
+ };
2220
+ return (jsx(TableCell, 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': {
2221
+ outline: (actionCell === null || actionCell === void 0 ? void 0 : actionCell.id) === cell.id ||
2222
+ (editDisplayMode === 'cell' && isEditable) ||
2223
+ (editDisplayMode === 'table' && (isCreating || isEditing))
2224
+ ? `1px solid ${theme.palette.grey[500]}`
2225
+ : undefined,
2226
+ textOverflow: 'clip',
2227
+ }, alignItems: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'center' : undefined, cursor: isRightClickable
2228
+ ? 'context-menu'
2229
+ : isEditable && editDisplayMode === 'cell'
2230
+ ? 'pointer'
2231
+ : 'inherit', outline: (actionCell === null || actionCell === void 0 ? void 0 : actionCell.id) === cell.id
2232
+ ? `1px solid ${theme.palette.grey[500]}`
2233
+ : undefined, outlineOffset: '-1px', overflow: 'hidden', p: density === 'compact'
2234
+ ? columnDefType === 'display'
2235
+ ? '0 0.5rem'
2236
+ : '0.5rem'
2237
+ : density === 'comfortable'
2238
+ ? columnDefType === 'display'
2239
+ ? '0.5rem 0.75rem'
2240
+ : '1rem'
2241
+ : columnDefType === 'display'
2242
+ ? '1rem 1.25rem'
2243
+ : '1.5rem', textOverflow: columnDefType !== 'display' ? 'ellipsis' : undefined, whiteSpace: row.getIsPinned() || density === 'compact' ? 'nowrap' : 'normal' }, getCommonMRTCellStyles({
2244
+ column,
2245
+ table,
2246
+ tableCellProps,
2247
+ theme,
2248
+ })), draggingBorders)), children: (_b = tableCellProps.children) !== null && _b !== void 0 ? _b : (jsxs(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) ? (jsx(Skeleton, Object.assign({ animation: "wave", height: 20, width: skeletonWidth }, skeletonProps))) : columnDefType === 'display' &&
2249
+ (['mrt-row-expand', 'mrt-row-numbers', 'mrt-row-select'].includes(column.id) ||
2250
+ !row.getIsGrouped()) ? ((_e = columnDef.Cell) === null || _e === void 0 ? void 0 : _e.call(columnDef, {
2251
+ cell,
2252
+ column,
2253
+ renderedCellValue: cell.renderValue(),
2254
+ row,
2255
+ rowRef,
2256
+ staticColumnIndex,
2257
+ staticRowIndex,
2258
+ table,
2259
+ })) : isCreating || isEditing ? (jsx(MRT_EditCellTextField, { cell: cell, table: table })) : showClickToCopyButton && columnDef.enableClickToCopy !== false ? (jsx(MRT_CopyButton, { cell: cell, table: table, children: jsx(MRT_TableBodyCellValue, Object.assign({}, cellValueProps)) })) : (jsx(MRT_TableBodyCellValue, Object.assign({}, cellValueProps))), cell.getIsGrouped() && !columnDef.GroupedCell && (jsxs(Fragment, { children: [" (", (_f = row.subRows) === null || _f === void 0 ? void 0 : _f.length, ")"] }))] })) })));
2260
+ };
2261
+ const Memo_MRT_TableBodyCell = memo(MRT_TableBodyCell, (prev, next) => next.cell === prev.cell);
2262
+
2263
+ const MRT_TableDetailPanel = (_a) => {
2264
+ var { parentRowRef, row, rowVirtualizer, staticRowIndex, table, virtualRow } = _a, rest = __rest(_a, ["parentRowRef", "row", "rowVirtualizer", "staticRowIndex", "table", "virtualRow"]);
2265
+ const { getState, getVisibleLeafColumns, options: { layoutMode, mrtTheme: { baseBackgroundColor }, muiDetailPanelProps, muiTableBodyRowProps, renderDetailPanel, }, } = table;
2266
+ const { isLoading } = getState();
2267
+ const tableRowProps = parseFromValuesOrFunc(muiTableBodyRowProps, {
2268
+ isDetailPanel: true,
2269
+ row,
2270
+ staticRowIndex,
2271
+ table,
2272
+ });
2273
+ const tableCellProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiDetailPanelProps, {
2274
+ row,
2275
+ table,
2276
+ })), rest);
2277
+ const DetailPanel = !isLoading && (renderDetailPanel === null || renderDetailPanel === void 0 ? void 0 : renderDetailPanel({ row, table }));
2278
+ return (jsx(TableRow, Object.assign({ className: "Mui-TableBodyCell-DetailPanel", "data-index": renderDetailPanel ? staticRowIndex * 2 + 1 : staticRowIndex, ref: (node) => {
2279
+ var _a;
2280
+ if (node) {
2281
+ (_a = rowVirtualizer === null || rowVirtualizer === void 0 ? void 0 : rowVirtualizer.measureElement) === null || _a === void 0 ? void 0 : _a.call(rowVirtualizer, node);
2282
+ }
2283
+ } }, tableRowProps, { sx: (theme) => {
2284
+ var _a, _b;
2285
+ return (Object.assign({ display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'flex' : undefined, position: virtualRow ? 'absolute' : undefined, top: virtualRow
2286
+ ? `${(_b = (_a = parentRowRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.height}px`
2287
+ : undefined, transform: virtualRow
2288
+ ? `translateY(${virtualRow === null || virtualRow === void 0 ? void 0 : virtualRow.start}px)`
2289
+ : undefined, width: '100%' }, parseFromValuesOrFunc(tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx, theme)));
2290
+ }, children: jsx(TableCell, 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) : (jsx(Collapse, { in: row.getIsExpanded(), mountOnEnter: true, unmountOnExit: true, children: DetailPanel })) })) })));
2291
+ };
2292
+
2293
+ const MRT_TableBodyRow = (_a) => {
2294
+ var _b, _c, _d, _f;
2295
+ var { columnVirtualizer, numRows, pinnedRowIds, row, rowVirtualizer, staticRowIndex, table, virtualRow } = _a, rest = __rest(_a, ["columnVirtualizer", "numRows", "pinnedRowIds", "row", "rowVirtualizer", "staticRowIndex", "table", "virtualRow"]);
2296
+ const theme = useTheme();
2297
+ const { getState, options: { enableRowOrdering, enableRowPinning, enableStickyFooter, enableStickyHeader, layoutMode, memoMode, mrtTheme: { baseBackgroundColor, pinnedRowBackgroundColor, selectedRowBackgroundColor, }, muiTableBodyRowProps, renderDetailPanel, rowPinningDisplayMode, }, refs: { tableFooterRef, tableHeadRef }, setHoveredRow, } = table;
2298
+ const { density, draggingColumn, draggingRow, editingCell, editingRow, hoveredRow, isFullScreen, rowPinning, } = getState();
2299
+ const visibleCells = row.getVisibleCells();
2300
+ const { virtualColumns, virtualPaddingLeft, virtualPaddingRight } = columnVirtualizer !== null && columnVirtualizer !== void 0 ? columnVirtualizer : {};
2301
+ const isRowSelected = getIsRowSelected({ row, table });
2302
+ const isRowPinned = enableRowPinning && row.getIsPinned();
2303
+ const isDraggingRow = (draggingRow === null || draggingRow === void 0 ? void 0 : draggingRow.id) === row.id;
2304
+ const isHoveredRow = (hoveredRow === null || hoveredRow === void 0 ? void 0 : hoveredRow.id) === row.id;
2305
+ const tableRowProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableBodyRowProps, {
2306
+ row,
2307
+ staticRowIndex,
2308
+ table,
2309
+ })), rest);
2310
+ const [bottomPinnedIndex, topPinnedIndex] = useMemo(() => {
2311
+ if (!enableRowPinning ||
2312
+ !(rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky')) ||
2313
+ !pinnedRowIds ||
2314
+ !row.getIsPinned())
2315
+ return [];
2316
+ return [
2317
+ [...pinnedRowIds].reverse().indexOf(row.id),
2318
+ pinnedRowIds.indexOf(row.id),
2319
+ ];
2320
+ }, [pinnedRowIds, rowPinning]);
2321
+ const tableHeadHeight = ((enableStickyHeader || isFullScreen) &&
2322
+ ((_b = tableHeadRef.current) === null || _b === void 0 ? void 0 : _b.clientHeight)) ||
2323
+ 0;
2324
+ const tableFooterHeight = (enableStickyFooter && ((_c = tableFooterRef.current) === null || _c === void 0 ? void 0 : _c.clientHeight)) || 0;
2325
+ const sx = parseFromValuesOrFunc(tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx, theme);
2326
+ const defaultRowHeight = density === 'compact' ? 37 : density === 'comfortable' ? 53 : 69;
2327
+ const customRowHeight =
2328
+ // @ts-ignore
2329
+ 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;
2330
+ const rowHeight = customRowHeight || defaultRowHeight;
2331
+ const handleDragEnter = (_e) => {
2332
+ if (enableRowOrdering && draggingRow) {
2333
+ setHoveredRow(row);
2334
+ }
2335
+ };
2336
+ const handleDragOver = (e) => {
2337
+ e.preventDefault();
2338
+ };
2339
+ const rowRef = useRef(null);
2340
+ const cellHighlightColor = isRowSelected
2341
+ ? selectedRowBackgroundColor
2342
+ : isRowPinned
2343
+ ? pinnedRowBackgroundColor
2344
+ : undefined;
2345
+ const cellHighlightColorHover = (tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.hover) !== false
2346
+ ? isRowSelected
2347
+ ? cellHighlightColor
2348
+ : theme.palette.mode === 'dark'
2349
+ ? `${lighten(baseBackgroundColor, 0.3)}`
2350
+ : `${darken(baseBackgroundColor, 0.3)}`
2351
+ : undefined;
2352
+ return (jsxs(Fragment, { children: [jsxs(TableRow, Object.assign({ "data-index": renderDetailPanel ? staticRowIndex * 2 : staticRowIndex, "data-pinned": !!isRowPinned || undefined, "data-selected": isRowSelected || undefined, onDragEnter: handleDragEnter, onDragOver: handleDragOver, ref: (node) => {
2353
+ if (node) {
2354
+ rowRef.current = node;
2355
+ rowVirtualizer === null || rowVirtualizer === void 0 ? void 0 : rowVirtualizer.measureElement(node);
2356
+ }
2357
+ }, selected: isRowSelected }, tableRowProps, { style: Object.assign({ transform: virtualRow
2358
+ ? `translateY(${virtualRow.start}px)`
2359
+ : undefined }, tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.style), sx: (theme) => (Object.assign({ '&:hover td:after': cellHighlightColorHover
2360
+ ? Object.assign({ backgroundColor: alpha(cellHighlightColorHover, 0.3) }, commonCellBeforeAfterStyles) : undefined, backgroundColor: `${baseBackgroundColor} !important`, bottom: !virtualRow && bottomPinnedIndex !== undefined && isRowPinned
2361
+ ? `${bottomPinnedIndex * rowHeight +
2362
+ (enableStickyFooter ? tableFooterHeight - 1 : 0)}px`
2363
+ : 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
2364
+ ? 'absolute'
2365
+ : (rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky')) && isRowPinned
2366
+ ? 'sticky'
2367
+ : 'relative', td: Object.assign({}, getCommonPinnedCellStyles({ table, theme })), 'td:after': cellHighlightColor
2368
+ ? Object.assign({ backgroundColor: cellHighlightColor }, commonCellBeforeAfterStyles) : undefined, top: virtualRow
2369
+ ? 0
2370
+ : topPinnedIndex !== undefined && isRowPinned
2371
+ ? `${topPinnedIndex * rowHeight +
2372
+ (enableStickyHeader || isFullScreen ? tableHeadHeight - 1 : 0)}px`
2373
+ : 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 ? (jsx("td", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : visibleCells).map((cellOrVirtualCell, staticColumnIndex) => {
2374
+ let cell = cellOrVirtualCell;
2375
+ if (columnVirtualizer) {
2376
+ staticColumnIndex = cellOrVirtualCell.index;
2377
+ cell = visibleCells[staticColumnIndex];
2378
+ }
2379
+ const props = {
2380
+ cell,
2381
+ numRows,
2382
+ rowRef,
2383
+ staticColumnIndex,
2384
+ staticRowIndex,
2385
+ table,
2386
+ };
2387
+ return cell ? (memoMode === 'cells' &&
2388
+ cell.column.columnDef.columnDefType === 'data' &&
2389
+ !draggingColumn &&
2390
+ !draggingRow &&
2391
+ (editingCell === null || editingCell === void 0 ? void 0 : editingCell.id) !== cell.id &&
2392
+ (editingRow === null || editingRow === void 0 ? void 0 : editingRow.id) !== row.id ? (jsx(Memo_MRT_TableBodyCell, Object.assign({}, props), cell.id)) : (jsx(MRT_TableBodyCell, Object.assign({}, props), cell.id))) : null;
2393
+ }), virtualPaddingRight ? (jsx("td", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })), renderDetailPanel && !row.getIsGrouped() && (jsx(MRT_TableDetailPanel, { parentRowRef: rowRef, row: row, rowVirtualizer: rowVirtualizer, staticRowIndex: staticRowIndex, table: table, virtualRow: virtualRow }))] }));
2394
+ };
2395
+ const Memo_MRT_TableBodyRow = memo(MRT_TableBodyRow, (prev, next) => prev.row === next.row && prev.staticRowIndex === next.staticRowIndex);
2396
+
2397
+ const MRT_TableBody = (_a) => {
2398
+ var _b, _c, _d, _e, _f, _g;
2399
+ var { columnVirtualizer, table } = _a, rest = __rest(_a, ["columnVirtualizer", "table"]);
2400
+ const { getBottomRows, getIsSomeRowsPinned, getRowModel, getState, getTopRows, options: { enableStickyFooter, enableStickyHeader, layoutMode, localization, memoMode, muiTableBodyProps, renderDetailPanel, renderEmptyRowsFallback, rowPinningDisplayMode, }, refs: { tableFooterRef, tableHeadRef, tablePaperRef }, } = table;
2401
+ const { columnFilters, globalFilter, isFullScreen, rowPinning } = getState();
2402
+ const tableBodyProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableBodyProps, { table })), rest);
2403
+ const tableHeadHeight = ((enableStickyHeader || isFullScreen) &&
2404
+ ((_b = tableHeadRef.current) === null || _b === void 0 ? void 0 : _b.clientHeight)) ||
2405
+ 0;
2406
+ const tableFooterHeight = (enableStickyFooter && ((_c = tableFooterRef.current) === null || _c === void 0 ? void 0 : _c.clientHeight)) || 0;
2407
+ const pinnedRowIds = useMemo(() => {
2408
+ var _a, _b;
2409
+ if (!((_a = rowPinning.bottom) === null || _a === void 0 ? void 0 : _a.length) && !((_b = rowPinning.top) === null || _b === void 0 ? void 0 : _b.length))
2410
+ return [];
2411
+ return getRowModel()
2412
+ .rows.filter((row) => row.getIsPinned())
2413
+ .map((r) => r.id);
2414
+ }, [rowPinning, getRowModel().rows]);
2415
+ const rows = useMRT_Rows(table);
2416
+ const rowVirtualizer = useMRT_RowVirtualizer(table, rows);
2417
+ const { virtualRows } = rowVirtualizer !== null && rowVirtualizer !== void 0 ? rowVirtualizer : {};
2418
+ const commonRowProps = {
2419
+ columnVirtualizer,
2420
+ numRows: rows.length,
2421
+ table,
2422
+ };
2423
+ return (jsxs(Fragment, { children: [!(rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky')) &&
2424
+ getIsSomeRowsPinned('top') && (jsx(TableBody, 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) => {
2425
+ const props = Object.assign(Object.assign({}, commonRowProps), { row,
2426
+ staticRowIndex });
2427
+ return memoMode === 'rows' ? (jsx(Memo_MRT_TableBodyRow, Object.assign({}, props), row.id)) : (jsx(MRT_TableBodyRow, Object.assign({}, props), row.id));
2428
+ }) }))), jsx(TableBody, Object.assign({}, tableBodyProps, { sx: (theme) => (Object.assign({ display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined, height: rowVirtualizer
2429
+ ? `${rowVirtualizer.getTotalSize()}px`
2430
+ : 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 ? (jsx("tr", { style: {
2431
+ display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined,
2432
+ }, children: jsx("td", { colSpan: table.getVisibleLeafColumns().length, style: {
2433
+ display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined,
2434
+ }, children: (_e = renderEmptyRowsFallback === null || renderEmptyRowsFallback === void 0 ? void 0 : renderEmptyRowsFallback({ table })) !== null && _e !== void 0 ? _e : (jsx(Typography, { sx: {
2435
+ color: 'text.secondary',
2436
+ fontStyle: 'italic',
2437
+ maxWidth: `min(100vw, ${(_g = (_f = tablePaperRef.current) === null || _f === void 0 ? void 0 : _f.clientWidth) !== null && _g !== void 0 ? _g : 360}px)`,
2438
+ py: '2rem',
2439
+ textAlign: 'center',
2440
+ width: '100%',
2441
+ }, children: globalFilter || columnFilters.length
2442
+ ? localization.noResultsFound
2443
+ : localization.noRecordsToDisplay })) }) })) : (jsx(Fragment, { children: (virtualRows !== null && virtualRows !== void 0 ? virtualRows : rows).map((rowOrVirtualRow, staticRowIndex) => {
2444
+ let row = rowOrVirtualRow;
2445
+ if (rowVirtualizer) {
2446
+ if (renderDetailPanel) {
2447
+ if (rowOrVirtualRow.index % 2 === 1) {
2448
+ return null;
2449
+ }
2450
+ else {
2451
+ staticRowIndex = rowOrVirtualRow.index / 2;
2452
+ }
2453
+ }
2454
+ else {
2455
+ staticRowIndex = rowOrVirtualRow.index;
2456
+ }
2457
+ row = rows[staticRowIndex];
2458
+ }
2459
+ const props = Object.assign(Object.assign({}, commonRowProps), { pinnedRowIds,
2460
+ row,
2461
+ rowVirtualizer,
2462
+ staticRowIndex, virtualRow: rowVirtualizer
2463
+ ? rowOrVirtualRow
2464
+ : undefined });
2465
+ const key = `${row.id}-${row.index}`;
2466
+ return memoMode === 'rows' ? (jsx(Memo_MRT_TableBodyRow, Object.assign({}, props), key)) : (jsx(MRT_TableBodyRow, Object.assign({}, props), key));
2467
+ }) }))) })), !(rowPinningDisplayMode === null || rowPinningDisplayMode === void 0 ? void 0 : rowPinningDisplayMode.includes('sticky')) &&
2468
+ getIsSomeRowsPinned('bottom') && (jsx(TableBody, 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) => {
2469
+ const props = Object.assign(Object.assign({}, commonRowProps), { row,
2470
+ staticRowIndex });
2471
+ return memoMode === 'rows' ? (jsx(Memo_MRT_TableBodyRow, Object.assign({}, props), row.id)) : (jsx(MRT_TableBodyRow, Object.assign({}, props), row.id));
2472
+ }) })))] }));
2473
+ };
2474
+ const Memo_MRT_TableBody = memo(MRT_TableBody, (prev, next) => prev.table.options.data === next.table.options.data);
2475
+
2476
+ const MRT_TableFooterCell = (_a) => {
2477
+ var _b, _c, _d;
2478
+ var { footer, staticColumnIndex, table } = _a, rest = __rest(_a, ["footer", "staticColumnIndex", "table"]);
2479
+ const theme = useTheme();
2480
+ const { getState, options: { enableColumnPinning, muiTableFooterCellProps, enableKeyboardShortcuts, }, } = table;
2481
+ const { density } = getState();
2482
+ const { column } = footer;
2483
+ const { columnDef } = column;
2484
+ const { columnDefType } = columnDef;
2485
+ const isColumnPinned = enableColumnPinning &&
2486
+ columnDef.columnDefType !== 'group' &&
2487
+ column.getIsPinned();
2488
+ const args = { column, table };
2489
+ const tableCellProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableFooterCellProps, args)), parseFromValuesOrFunc(columnDef.muiTableFooterCellProps, args)), rest);
2490
+ return (jsx(TableCell, Object.assign({ align: columnDefType === 'group'
2491
+ ? 'center'
2492
+ : theme.direction === 'rtl'
2493
+ ? 'right'
2494
+ : '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'
2495
+ ? '0.5rem'
2496
+ : density === 'comfortable'
2497
+ ? '1rem'
2498
+ : '1.5rem', verticalAlign: 'top' }, getCommonMRTCellStyles({
2499
+ column,
2500
+ header: footer,
2501
+ table,
2502
+ tableCellProps,
2503
+ theme,
2504
+ })), parseFromValuesOrFunc(tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.sx, theme))), children: (_b = tableCellProps.children) !== null && _b !== void 0 ? _b : (footer.isPlaceholder
2505
+ ? null
2506
+ : ((_d = (_c = parseFromValuesOrFunc(columnDef.Footer, {
2507
+ column,
2508
+ footer,
2509
+ table,
2510
+ })) !== null && _c !== void 0 ? _c : columnDef.footer) !== null && _d !== void 0 ? _d : null)) })));
2511
+ };
2512
+
2513
+ const MRT_TableFooterRow = (_a) => {
2514
+ var _b;
2515
+ var { columnVirtualizer, footerGroup, table } = _a, rest = __rest(_a, ["columnVirtualizer", "footerGroup", "table"]);
2516
+ const { options: { layoutMode, mrtTheme: { baseBackgroundColor }, muiTableFooterRowProps, }, } = table;
2517
+ const { virtualColumns, virtualPaddingLeft, virtualPaddingRight } = columnVirtualizer !== null && columnVirtualizer !== void 0 ? columnVirtualizer : {};
2518
+ // if no content in row, skip row
2519
+ if (!((_b = footerGroup.headers) === null || _b === void 0 ? void 0 : _b.some((header) => (typeof header.column.columnDef.footer === 'string' &&
2520
+ !!header.column.columnDef.footer) ||
2521
+ header.column.columnDef.Footer))) {
2522
+ return null;
2523
+ }
2524
+ const tableRowProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableFooterRowProps, {
2525
+ footerGroup,
2526
+ table,
2527
+ })), rest);
2528
+ return (jsxs(TableRow, 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 ? (jsx("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : footerGroup.headers).map((footerOrVirtualFooter, staticColumnIndex) => {
2529
+ let footer = footerOrVirtualFooter;
2530
+ if (columnVirtualizer) {
2531
+ staticColumnIndex = footerOrVirtualFooter
2532
+ .index;
2533
+ footer = footerGroup.headers[staticColumnIndex];
2534
+ }
2535
+ return footer ? (jsx(MRT_TableFooterCell, { footer: footer, staticColumnIndex: staticColumnIndex, table: table }, footer.id)) : null;
2536
+ }), virtualPaddingRight ? (jsx("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })));
2537
+ };
2538
+
2539
+ const MRT_TableFooter = (_a) => {
2540
+ var { columnVirtualizer, table } = _a, rest = __rest(_a, ["columnVirtualizer", "table"]);
2541
+ const { getFooterGroups, getState, options: { enableStickyFooter, layoutMode, muiTableFooterProps }, refs: { tableFooterRef }, } = table;
2542
+ const { isFullScreen } = getState();
2543
+ const tableFooterProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableFooterProps, {
2544
+ table,
2545
+ })), rest);
2546
+ const stickFooter = (isFullScreen || enableStickyFooter) && enableStickyFooter !== false;
2547
+ return (jsx(TableFooter, Object.assign({}, tableFooterProps, { ref: (ref) => {
2548
+ tableFooterRef.current = ref;
2549
+ if (tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.ref) {
2550
+ // @ts-ignore
2551
+ tableFooterProps.ref.current = ref;
2552
+ }
2553
+ }, 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
2554
+ ? theme.palette.mode === 'light'
2555
+ ? `1px solid ${theme.palette.grey[300]}`
2556
+ : `1px solid ${theme.palette.grey[700]}`
2557
+ : undefined, position: stickFooter ? 'sticky' : 'relative', zIndex: stickFooter ? 1 : undefined }, parseFromValuesOrFunc(tableFooterProps === null || tableFooterProps === void 0 ? void 0 : tableFooterProps.sx, theme))), children: getFooterGroups().map((footerGroup) => (jsx(MRT_TableFooterRow, { columnVirtualizer: columnVirtualizer, footerGroup: footerGroup, table: table }, footerGroup.id))) })));
2558
+ };
2559
+
2560
+ const mrtFilterOptions = (localization) => [
2561
+ {
2562
+ divider: false,
2563
+ label: localization.filterFuzzy,
2564
+ option: 'fuzzy',
2565
+ symbol: '≈',
2566
+ },
2567
+ {
2568
+ divider: false,
2569
+ label: localization.filterContains,
2570
+ option: 'contains',
2571
+ symbol: '*',
2572
+ },
2573
+ {
2574
+ divider: false,
2575
+ label: localization.filterStartsWith,
2576
+ option: 'startsWith',
2577
+ symbol: 'a',
2578
+ },
2579
+ {
2580
+ divider: true,
2581
+ label: localization.filterEndsWith,
2582
+ option: 'endsWith',
2583
+ symbol: 'z',
2584
+ },
2585
+ {
2586
+ divider: false,
2587
+ label: localization.filterEquals,
2588
+ option: 'equals',
2589
+ symbol: '=',
2590
+ },
2591
+ {
2592
+ divider: true,
2593
+ label: localization.filterNotEquals,
2594
+ option: 'notEquals',
2595
+ symbol: '≠',
2596
+ },
2597
+ {
2598
+ divider: false,
2599
+ label: localization.filterBetween,
2600
+ option: 'between',
2601
+ symbol: '⇿',
2602
+ },
2603
+ {
2604
+ divider: true,
2605
+ label: localization.filterBetweenInclusive,
2606
+ option: 'betweenInclusive',
2607
+ symbol: '⬌',
2608
+ },
2609
+ {
2610
+ divider: false,
2611
+ label: localization.filterGreaterThan,
2612
+ option: 'greaterThan',
2613
+ symbol: '>',
2614
+ },
2615
+ {
2616
+ divider: false,
2617
+ label: localization.filterGreaterThanOrEqualTo,
2618
+ option: 'greaterThanOrEqualTo',
2619
+ symbol: '≥',
2620
+ },
2621
+ {
2622
+ divider: false,
2623
+ label: localization.filterLessThan,
2624
+ option: 'lessThan',
2625
+ symbol: '<',
2626
+ },
2627
+ {
2628
+ divider: true,
2629
+ label: localization.filterLessThanOrEqualTo,
2630
+ option: 'lessThanOrEqualTo',
2631
+ symbol: '≤',
2632
+ },
2633
+ {
2634
+ divider: false,
2635
+ label: localization.filterEmpty,
2636
+ option: 'empty',
2637
+ symbol: '∅',
2638
+ },
2639
+ {
2640
+ divider: false,
2641
+ label: localization.filterNotEmpty,
2642
+ option: 'notEmpty',
2643
+ symbol: '!∅',
2644
+ },
2645
+ ];
2646
+ const rangeModes = ['between', 'betweenInclusive', 'inNumberRange'];
2647
+ const emptyModes = ['empty', 'notEmpty'];
2648
+ const arrModes = ['arrIncludesSome', 'arrIncludesAll', 'arrIncludes'];
2649
+ const rangeVariants = ['range-slider', 'date-range', 'datetime-range', 'range'];
2650
+ const MRT_FilterOptionMenu = (_a) => {
2651
+ var _b, _c, _d, _e;
2652
+ var { anchorEl, header, onSelect, setAnchorEl, setFilterValue, table } = _a, rest = __rest(_a, ["anchorEl", "header", "onSelect", "setAnchorEl", "setFilterValue", "table"]);
2653
+ const { getState, options: { columnFilterModeOptions, globalFilterModeOptions, localization, mrtTheme: { menuBackgroundColor }, renderColumnFilterModeMenuItems, renderGlobalFilterModeMenuItems, }, setColumnFilterFns, setGlobalFilterFn, } = table;
2654
+ const { density, globalFilterFn } = getState();
2655
+ const { column } = header !== null && header !== void 0 ? header : {};
2656
+ const { columnDef } = column !== null && column !== void 0 ? column : {};
2657
+ const currentFilterValue = column === null || column === void 0 ? void 0 : column.getFilterValue();
2658
+ let allowedColumnFilterOptions = (_b = columnDef === null || columnDef === void 0 ? void 0 : columnDef.columnFilterModeOptions) !== null && _b !== void 0 ? _b : columnFilterModeOptions;
2659
+ if (rangeVariants.includes(columnDef === null || columnDef === void 0 ? void 0 : columnDef.filterVariant)) {
2660
+ allowedColumnFilterOptions = [
2661
+ ...rangeModes,
2662
+ ...(allowedColumnFilterOptions !== null && allowedColumnFilterOptions !== void 0 ? allowedColumnFilterOptions : []),
2663
+ ].filter((option) => rangeModes.includes(option));
2664
+ }
2665
+ const internalFilterOptions = useMemo(() => mrtFilterOptions(localization).filter((filterOption) => columnDef
2666
+ ? allowedColumnFilterOptions === undefined ||
2667
+ (allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.includes(filterOption.option))
2668
+ : (!globalFilterModeOptions ||
2669
+ globalFilterModeOptions.includes(filterOption.option)) &&
2670
+ ['contains', 'fuzzy', 'startsWith'].includes(filterOption.option)), []);
2671
+ const handleSelectFilterMode = (option) => {
2672
+ var _a, _b;
2673
+ const prevFilterMode = (_a = columnDef === null || columnDef === void 0 ? void 0 : columnDef._filterFn) !== null && _a !== void 0 ? _a : '';
2674
+ if (!header || !column) {
2675
+ // global filter mode
2676
+ setGlobalFilterFn(option);
2677
+ }
2678
+ else if (option !== prevFilterMode) {
2679
+ // column filter mode
2680
+ setColumnFilterFns((prev) => (Object.assign(Object.assign({}, prev), { [header.id]: option })));
2681
+ // reset filter value and/or perform new filter render
2682
+ if (emptyModes.includes(option)) {
2683
+ // will now be empty/notEmpty filter mode
2684
+ if (currentFilterValue !== ' ' &&
2685
+ !emptyModes.includes(prevFilterMode)) {
2686
+ column.setFilterValue(' ');
2687
+ }
2688
+ else if (currentFilterValue) {
2689
+ column.setFilterValue(currentFilterValue); // perform new filter render
2690
+ }
2691
+ }
2692
+ else if ((columnDef === null || columnDef === void 0 ? void 0 : columnDef.filterVariant) === 'multi-select' ||
2693
+ arrModes.includes(option)) {
2694
+ // will now be array filter mode
2695
+ if (currentFilterValue instanceof String ||
2696
+ (currentFilterValue === null || currentFilterValue === void 0 ? void 0 : currentFilterValue.length)) {
2697
+ column.setFilterValue([]);
2698
+ setFilterValue === null || setFilterValue === void 0 ? void 0 : setFilterValue([]);
2699
+ }
2700
+ else if (currentFilterValue) {
2701
+ column.setFilterValue(currentFilterValue); // perform new filter render
2702
+ }
2703
+ }
2704
+ else if (((_b = columnDef === null || columnDef === void 0 ? void 0 : columnDef.filterVariant) === null || _b === void 0 ? void 0 : _b.includes('range')) ||
2705
+ rangeModes.includes(option)) {
2706
+ // will now be range filter mode
2707
+ if (!Array.isArray(currentFilterValue) ||
2708
+ (!(currentFilterValue === null || currentFilterValue === void 0 ? void 0 : currentFilterValue.every((v) => v === '')) &&
2709
+ !rangeModes.includes(prevFilterMode))) {
2710
+ column.setFilterValue(['', '']);
2711
+ setFilterValue === null || setFilterValue === void 0 ? void 0 : setFilterValue('');
2712
+ }
2713
+ else {
2714
+ column.setFilterValue(currentFilterValue); // perform new filter render
2715
+ }
2716
+ }
2717
+ else {
2718
+ // will now be single value filter mode
2719
+ if (Array.isArray(currentFilterValue)) {
2720
+ column.setFilterValue('');
2721
+ setFilterValue === null || setFilterValue === void 0 ? void 0 : setFilterValue('');
2722
+ }
2723
+ else if (currentFilterValue === ' ' &&
2724
+ emptyModes.includes(prevFilterMode)) {
2725
+ column.setFilterValue(undefined);
2726
+ }
2727
+ else {
2728
+ column.setFilterValue(currentFilterValue); // perform new filter render
2729
+ }
2730
+ }
2731
+ }
2732
+ setAnchorEl(null);
2733
+ onSelect === null || onSelect === void 0 ? void 0 : onSelect();
2734
+ };
2735
+ const filterOption = !!header && columnDef ? columnDef._filterFn : globalFilterFn;
2736
+ return (jsx(Menu, Object.assign({ MenuListProps: {
2737
+ dense: density === 'compact',
2738
+ sx: {
2739
+ backgroundColor: menuBackgroundColor,
2740
+ },
2741
+ }, anchorEl: anchorEl, anchorOrigin: { horizontal: 'right', vertical: 'center' }, disableScrollLock: true, onClose: () => setAnchorEl(null), open: !!anchorEl }, rest, { children: (_e = (header && column && columnDef
2742
+ ? ((_d = (_c = columnDef.renderColumnFilterModeMenuItems) === null || _c === void 0 ? void 0 : _c.call(columnDef, {
2743
+ column: column,
2744
+ internalFilterOptions,
2745
+ onSelectFilterMode: handleSelectFilterMode,
2746
+ table,
2747
+ })) !== null && _d !== void 0 ? _d : renderColumnFilterModeMenuItems === null || renderColumnFilterModeMenuItems === void 0 ? void 0 : renderColumnFilterModeMenuItems({
2748
+ column: column,
2749
+ internalFilterOptions,
2750
+ onSelectFilterMode: handleSelectFilterMode,
2751
+ table,
2752
+ }))
2753
+ : renderGlobalFilterModeMenuItems === null || renderGlobalFilterModeMenuItems === void 0 ? void 0 : renderGlobalFilterModeMenuItems({
2754
+ internalFilterOptions,
2755
+ onSelectFilterMode: handleSelectFilterMode,
2756
+ table,
2757
+ }))) !== null && _e !== void 0 ? _e : internalFilterOptions.map(({ divider, label, option, symbol }, index) => (jsx(MRT_ActionMenuItem, { divider: divider, icon: symbol, label: label, onClick: () => handleSelectFilterMode(option), selected: option === filterOption, table: table, value: option }, index))) })));
2758
+ };
2759
+
2760
+ const MRT_ColumnActionMenu = (_a) => {
2761
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
2762
+ var { anchorEl, header, setAnchorEl, table } = _a, rest = __rest(_a, ["anchorEl", "header", "setAnchorEl", "table"]);
2763
+ 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;
2764
+ const { column } = header;
2765
+ const { columnDef } = column;
2766
+ const { columnSizing, columnVisibility, density, showColumnFilters } = getState();
2767
+ const columnFilterValue = column.getFilterValue();
2768
+ const [filterMenuAnchorEl, setFilterMenuAnchorEl] = useState(null);
2769
+ const handleClearSort = () => {
2770
+ column.clearSorting();
2771
+ setAnchorEl(null);
2772
+ };
2773
+ const handleSortAsc = () => {
2774
+ column.toggleSorting(false);
2775
+ setAnchorEl(null);
2776
+ };
2777
+ const handleSortDesc = () => {
2778
+ column.toggleSorting(true);
2779
+ setAnchorEl(null);
2780
+ };
2781
+ const handleResetColumnSize = () => {
2782
+ setColumnSizingInfo((old) => (Object.assign(Object.assign({}, old), { isResizingColumn: false })));
2783
+ column.resetSize();
2784
+ setAnchorEl(null);
2785
+ };
2786
+ const handleHideColumn = () => {
2787
+ column.toggleVisibility(false);
2788
+ setAnchorEl(null);
2789
+ };
2790
+ const handlePinColumn = (pinDirection) => {
2791
+ column.pin(pinDirection);
2792
+ setAnchorEl(null);
2793
+ };
2794
+ const handleGroupByColumn = () => {
2795
+ column.toggleGrouping();
2796
+ setColumnOrder((old) => ['mrt-row-expand', ...old]);
2797
+ setAnchorEl(null);
2798
+ };
2799
+ const handleClearFilter = () => {
2800
+ column.setFilterValue(undefined);
2801
+ setAnchorEl(null);
2802
+ if (['empty', 'notEmpty'].includes(columnDef._filterFn)) {
2803
+ setColumnFilterFns((prev) => {
2804
+ var _a;
2805
+ return (Object.assign(Object.assign({}, prev), { [header.id]: (_a = allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions[0]) !== null && _a !== void 0 ? _a : 'fuzzy' }));
2806
+ });
2807
+ }
2808
+ };
2809
+ const handleFilterByColumn = () => {
2810
+ setShowColumnFilters(true);
2811
+ queueMicrotask(() => { var _a; return (_a = filterInputRefs.current[`${column.id}-0`]) === null || _a === void 0 ? void 0 : _a.focus(); });
2812
+ setAnchorEl(null);
2813
+ };
2814
+ const handleShowAllColumns = () => {
2815
+ getAllLeafColumns()
2816
+ .filter((col) => col.columnDef.enableHiding !== false)
2817
+ .forEach((col) => col.toggleVisibility(true));
2818
+ setAnchorEl(null);
2819
+ };
2820
+ const handleOpenFilterModeMenu = (event) => {
2821
+ event.stopPropagation();
2822
+ setFilterMenuAnchorEl(event.currentTarget);
2823
+ };
2824
+ const isSelectFilter = !!columnDef.filterSelectOptions;
2825
+ const allowedColumnFilterOptions = (_b = columnDef === null || columnDef === void 0 ? void 0 : columnDef.columnFilterModeOptions) !== null && _b !== void 0 ? _b : columnFilterModeOptions;
2826
+ const showFilterModeSubMenu = enableColumnFilterModes &&
2827
+ columnDef.enableColumnFilterModes !== false &&
2828
+ !isSelectFilter &&
2829
+ (allowedColumnFilterOptions === undefined ||
2830
+ !!(allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.length));
2831
+ const internalColumnMenuItems = [
2832
+ ...(enableSorting && column.getCanSort()
2833
+ ? [
2834
+ enableSortingRemoval !== false && (jsx(MRT_ActionMenuItem, { icon: jsx(ClearAllIcon, {}), label: localization.clearSort, onClick: handleClearSort, table: table }, 0)),
2835
+ jsx(MRT_ActionMenuItem, { disabled: column.getIsSorted() === 'asc', icon: 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),
2836
+ jsx(MRT_ActionMenuItem, { disabled: column.getIsSorted() === 'desc', divider: enableColumnFilters || enableGrouping || enableHiding, icon: jsx(SortIcon, {}), label: (_d = localization.sortByColumnDesc) === null || _d === void 0 ? void 0 : _d.replace('{column}', String(columnDef.header)), onClick: handleSortDesc, table: table }, 2),
2837
+ ]
2838
+ : []),
2839
+ ...(enableColumnFilters && column.getCanFilter()
2840
+ ? [
2841
+ jsx(MRT_ActionMenuItem, { disabled: !columnFilterValue ||
2842
+ (Array.isArray(columnFilterValue) &&
2843
+ !columnFilterValue.filter((value) => value).length), icon: jsx(FilterListOffIcon, {}), label: localization.clearFilter, onClick: handleClearFilter, table: table }, 3),
2844
+ columnFilterDisplayMode === 'subheader' && (jsx(MRT_ActionMenuItem, { disabled: showColumnFilters && !enableColumnFilterModes, divider: enableGrouping || enableHiding, icon: jsx(FilterListIcon, {}), label: (_e = localization.filterByColumn) === null || _e === void 0 ? void 0 : _e.replace('{column}', String(columnDef.header)), onClick: showColumnFilters
2845
+ ? handleOpenFilterModeMenu
2846
+ : handleFilterByColumn, onOpenSubMenu: showFilterModeSubMenu ? handleOpenFilterModeMenu : undefined, table: table }, 4)),
2847
+ showFilterModeSubMenu && (jsx(MRT_FilterOptionMenu, { anchorEl: filterMenuAnchorEl, header: header, onSelect: handleFilterByColumn, setAnchorEl: setFilterMenuAnchorEl, table: table }, 5)),
2848
+ ].filter(Boolean)
2849
+ : []),
2850
+ ...(enableGrouping && column.getCanGroup()
2851
+ ? [
2852
+ jsx(MRT_ActionMenuItem, { divider: enableColumnPinning, icon: 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),
2853
+ ]
2854
+ : []),
2855
+ ...(enableColumnPinning && column.getCanPin()
2856
+ ? [
2857
+ jsx(MRT_ActionMenuItem, { disabled: column.getIsPinned() === 'left' || !column.getCanPin(), icon: jsx(PushPinIcon, { style: { transform: 'rotate(90deg)' } }), label: localization.pinToLeft, onClick: () => handlePinColumn('left'), table: table }, 7),
2858
+ jsx(MRT_ActionMenuItem, { disabled: column.getIsPinned() === 'right' || !column.getCanPin(), icon: jsx(PushPinIcon, { style: { transform: 'rotate(-90deg)' } }), label: localization.pinToRight, onClick: () => handlePinColumn('right'), table: table }, 8),
2859
+ jsx(MRT_ActionMenuItem, { disabled: !column.getIsPinned(), divider: enableHiding, icon: jsx(PushPinIcon, {}), label: localization.unpin, onClick: () => handlePinColumn(false), table: table }, 9),
2860
+ ]
2861
+ : []),
2862
+ ...(enableColumnResizing && column.getCanResize()
2863
+ ? [
2864
+ jsx(MRT_ActionMenuItem, { disabled: !columnSizing[column.id], icon: jsx(RestartAltIcon, {}), label: localization.resetColumnSize, onClick: handleResetColumnSize, table: table }, 10),
2865
+ ]
2866
+ : []),
2867
+ ...(enableHiding
2868
+ ? [
2869
+ jsx(MRT_ActionMenuItem, { disabled: !column.getCanHide(), icon: jsx(VisibilityOffIcon, {}), label: (_g = localization.hideColumn) === null || _g === void 0 ? void 0 : _g.replace('{column}', String(columnDef.header)), onClick: handleHideColumn, table: table }, 11),
2870
+ jsx(MRT_ActionMenuItem, { disabled: !Object.values(columnVisibility).filter((visible) => !visible)
2871
+ .length, icon: jsx(ViewColumnIcon, {}), label: (_h = localization.showAllColumns) === null || _h === void 0 ? void 0 : _h.replace('{column}', String(columnDef.header)), onClick: handleShowAllColumns, table: table }, 12),
2872
+ ]
2873
+ : []),
2874
+ ].filter(Boolean);
2875
+ return (jsx(Menu, Object.assign({ MenuListProps: {
2876
+ dense: density === 'compact',
2877
+ sx: {
2878
+ backgroundColor: menuBackgroundColor,
2879
+ },
2880
+ }, 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, {
2881
+ closeMenu: () => setAnchorEl(null),
2882
+ column,
2883
+ internalColumnMenuItems,
2884
+ table,
2885
+ })) !== null && _k !== void 0 ? _k : renderColumnActionsMenuItems === null || renderColumnActionsMenuItems === void 0 ? void 0 : renderColumnActionsMenuItems({
2886
+ closeMenu: () => setAnchorEl(null),
2887
+ column,
2888
+ internalColumnMenuItems,
2889
+ table,
2890
+ })) !== null && _l !== void 0 ? _l : internalColumnMenuItems })));
2891
+ };
2892
+
2893
+ const MRT_TableHeadCellColumnActionsButton = (_a) => {
2894
+ var _b, _c;
2895
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
2896
+ const { options: { icons: { MoreVertIcon }, localization, muiColumnActionsButtonProps, }, } = table;
2897
+ const { column } = header;
2898
+ const { columnDef } = column;
2899
+ const [anchorEl, setAnchorEl] = useState(null);
2900
+ const handleClick = (event) => {
2901
+ event.stopPropagation();
2902
+ event.preventDefault();
2903
+ setAnchorEl(event.currentTarget);
2904
+ };
2905
+ const iconButtonProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiColumnActionsButtonProps, {
2906
+ column,
2907
+ table,
2908
+ })), parseFromValuesOrFunc(columnDef.muiColumnActionsButtonProps, {
2909
+ column,
2910
+ table,
2911
+ })), rest);
2912
+ return (jsxs(Fragment, { children: [jsx(Tooltip, Object.assign({}, getCommonTooltipProps('top'), { title: (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _b !== void 0 ? _b : localization.columnActions, children: jsx(IconButton, Object.assign({ "aria-label": localization.columnActions, onClick: handleClick, size: "small" }, iconButtonProps, { sx: (theme) => (Object.assign({ '&:hover': {
2913
+ opacity: 1,
2914
+ }, 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 : (jsx(MoreVertIcon, { style: { transform: 'scale(0.9)' } })) })) })), anchorEl && (jsx(MRT_ColumnActionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table }))] }));
2915
+ };
2916
+
2917
+ const MRT_FilterCheckbox = (_a) => {
2918
+ var _b, _c, _d;
2919
+ var { column, table } = _a, rest = __rest(_a, ["column", "table"]);
2920
+ const { getState, options: { localization, muiFilterCheckboxProps }, } = table;
2921
+ const { density } = getState();
2922
+ const { columnDef } = column;
2923
+ const checkboxProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiFilterCheckboxProps, {
2924
+ column,
2925
+ table,
2926
+ })), parseFromValuesOrFunc(columnDef.muiFilterCheckboxProps, {
2927
+ column,
2928
+ table,
2929
+ })), rest);
2930
+ const filterLabel = (_b = localization.filterByColumn) === null || _b === void 0 ? void 0 : _b.replace('{column}', columnDef.header);
2931
+ return (jsx(Tooltip, Object.assign({}, getCommonTooltipProps(), { title: (_c = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _c !== void 0 ? _c : filterLabel, children: jsx(FormControlLabel, { control: jsx(Checkbox, 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) => {
2932
+ var _a;
2933
+ column.setFilterValue(column.getFilterValue() === undefined
2934
+ ? 'true'
2935
+ : column.getFilterValue() === 'true'
2936
+ ? 'false'
2937
+ : undefined);
2938
+ (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onChange) === null || _a === void 0 ? void 0 : _a.call(checkboxProps, e, checked);
2939
+ }, onClick: (e) => {
2940
+ var _a;
2941
+ e.stopPropagation();
2942
+ (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a === void 0 ? void 0 : _a.call(checkboxProps, e);
2943
+ }, 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 }) })));
2944
+ };
2945
+
2946
+ const MRT_FilterTextField = (_a) => {
2947
+ var _b, _c, _d, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
2948
+ var { header, rangeFilterIndex, table } = _a, rest = __rest(_a, ["header", "rangeFilterIndex", "table"]);
2949
+ const { options: { enableColumnFilterModes, icons: { CloseIcon, FilterListIcon }, localization, manualFiltering, muiFilterAutocompleteProps, muiFilterDatePickerProps, muiFilterDateTimePickerProps, muiFilterTextFieldProps, muiFilterTimePickerProps, }, refs: { filterInputRefs }, setColumnFilterFns, } = table;
2950
+ const { column } = header;
2951
+ const { columnDef } = column;
2952
+ const { filterVariant } = columnDef;
2953
+ const args = { column, rangeFilterIndex, table };
2954
+ const textFieldProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiFilterTextFieldProps, args)), parseFromValuesOrFunc(columnDef.muiFilterTextFieldProps, args)), rest);
2955
+ const autocompleteProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiFilterAutocompleteProps, args)), parseFromValuesOrFunc(columnDef.muiFilterAutocompleteProps, args));
2956
+ const datePickerProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiFilterDatePickerProps, args)), parseFromValuesOrFunc(columnDef.muiFilterDatePickerProps, args));
2957
+ const dateTimePickerProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiFilterDateTimePickerProps, args)), parseFromValuesOrFunc(columnDef.muiFilterDateTimePickerProps, args));
2958
+ const timePickerProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiFilterTimePickerProps, args)), parseFromValuesOrFunc(columnDef.muiFilterTimePickerProps, args));
2959
+ const { allowedColumnFilterOptions, currentFilterOption, facetedUniqueValues, isAutocompleteFilter, isDateFilter, isMultiSelectFilter, isRangeFilter, isSelectFilter, isTextboxFilter, } = getColumnFilterInfo({ header, table });
2960
+ const dropdownOptions = useDropdownOptions({ header, table });
2961
+ const filterChipLabel = ['empty', 'notEmpty'].includes(currentFilterOption)
2962
+ ? //@ts-ignore
2963
+ 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()) +
2964
+ (currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.slice(1))}`]
2965
+ : '';
2966
+ const filterPlaceholder = !isRangeFilter
2967
+ ? ((_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)))
2968
+ : rangeFilterIndex === 0
2969
+ ? localization.min
2970
+ : rangeFilterIndex === 1
2971
+ ? localization.max
2972
+ : '';
2973
+ const showChangeModeButton = !!(enableColumnFilterModes &&
2974
+ columnDef.enableColumnFilterModes !== false &&
2975
+ !rangeFilterIndex &&
2976
+ (allowedColumnFilterOptions === undefined ||
2977
+ !!(allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions.length)));
2978
+ const [anchorEl, setAnchorEl] = useState(null);
2979
+ const [filterValue, setFilterValue] = useState(() => {
2980
+ var _a, _b;
2981
+ return isMultiSelectFilter
2982
+ ? column.getFilterValue() || []
2983
+ : isRangeFilter
2984
+ ? ((_a = column.getFilterValue()) === null || _a === void 0 ? void 0 : _a[rangeFilterIndex]) || ''
2985
+ : ((_b = column.getFilterValue()) !== null && _b !== void 0 ? _b : '');
2986
+ });
2987
+ const [autocompleteValue, setAutocompleteValue] = useState(isAutocompleteFilter ? filterValue : null);
2988
+ const handleChangeDebounced = useCallback(debounce((newValue) => {
2989
+ if (isRangeFilter) {
2990
+ column.setFilterValue((old) => {
2991
+ const newFilterValues = old !== null && old !== void 0 ? old : ['', ''];
2992
+ newFilterValues[rangeFilterIndex] = newValue !== null && newValue !== void 0 ? newValue : undefined;
2993
+ return newFilterValues;
2994
+ });
2995
+ }
2996
+ else {
2997
+ column.setFilterValue(newValue !== null && newValue !== void 0 ? newValue : undefined);
2998
+ }
2999
+ }, isTextboxFilter ? (manualFiltering ? 400 : 200) : 1), []);
3000
+ const handleChange = (newValue) => {
3001
+ setFilterValue(newValue !== null && newValue !== void 0 ? newValue : '');
3002
+ handleChangeDebounced(newValue);
3003
+ };
3004
+ const handleTextFieldChange = (event) => {
3005
+ var _a;
3006
+ const newValue = textFieldProps.type === 'date'
3007
+ ? event.target.valueAsDate
3008
+ : textFieldProps.type === 'number'
3009
+ ? event.target.valueAsNumber
3010
+ : event.target.value;
3011
+ handleChange(newValue);
3012
+ (_a = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.onChange) === null || _a === void 0 ? void 0 : _a.call(textFieldProps, event);
3013
+ };
3014
+ const handleAutocompleteChange = (newValue) => {
3015
+ setAutocompleteValue(newValue);
3016
+ handleChange(getValueAndLabel(newValue).value);
3017
+ };
3018
+ const handleClear = () => {
3019
+ if (isMultiSelectFilter) {
3020
+ setFilterValue([]);
3021
+ column.setFilterValue([]);
3022
+ }
3023
+ else if (isRangeFilter) {
3024
+ setFilterValue('');
3025
+ column.setFilterValue((old) => {
3026
+ const newFilterValues = (Array.isArray(old) && old) || ['', ''];
3027
+ newFilterValues[rangeFilterIndex] = undefined;
3028
+ return newFilterValues;
3029
+ });
3030
+ }
3031
+ else {
3032
+ setFilterValue('');
3033
+ column.setFilterValue(undefined);
3034
+ }
3035
+ };
3036
+ const handleClearEmptyFilterChip = () => {
3037
+ setFilterValue('');
3038
+ column.setFilterValue(undefined);
3039
+ setColumnFilterFns((prev) => {
3040
+ var _a;
3041
+ return (Object.assign(Object.assign({}, prev), { [header.id]: (_a = allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions[0]) !== null && _a !== void 0 ? _a : 'fuzzy' }));
3042
+ });
3043
+ };
3044
+ const handleFilterMenuOpen = (event) => {
3045
+ setAnchorEl(event.currentTarget);
3046
+ };
3047
+ const isMounted = useRef(false);
3048
+ useEffect(() => {
3049
+ if (isMounted.current) {
3050
+ const filterValue = column.getFilterValue();
3051
+ if (filterValue === undefined) {
3052
+ handleClear();
3053
+ }
3054
+ else if (isRangeFilter && rangeFilterIndex !== undefined) {
3055
+ setFilterValue(filterValue[rangeFilterIndex]);
3056
+ }
3057
+ else {
3058
+ setFilterValue(filterValue);
3059
+ }
3060
+ }
3061
+ isMounted.current = true;
3062
+ }, [column.getFilterValue()]);
3063
+ if (columnDef.Filter) {
3064
+ return (jsx(Fragment, { children: (_g = columnDef.Filter) === null || _g === void 0 ? void 0 : _g.call(columnDef, { column, header, rangeFilterIndex, table }) }));
3065
+ }
3066
+ const endAdornment = !isAutocompleteFilter && !isDateFilter && !filterChipLabel ? (jsx(InputAdornment, { position: "end", sx: { mr: isSelectFilter || isMultiSelectFilter ? '20px' : undefined }, children: jsx(Tooltip, { placement: "right", title: (_h = localization.clearFilter) !== null && _h !== void 0 ? _h : '', children: jsx("span", { children: jsx(IconButton, { "aria-label": localization.clearFilter, disabled: !((_j = filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString()) === null || _j === void 0 ? void 0 : _j.length), onClick: handleClear, size: "small", sx: {
3067
+ height: '2rem',
3068
+ transform: 'scale(0.9)',
3069
+ width: '2rem',
3070
+ }, children: jsx(CloseIcon, {}) }) }) }) })) : null;
3071
+ const startAdornment = showChangeModeButton ? (jsxs(InputAdornment, { position: "start", children: [jsx(Tooltip, { title: localization.changeFilterMode, children: jsx("span", { children: jsx(IconButton, { "aria-label": localization.changeFilterMode, onClick: handleFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' }, children: jsx(FilterListIcon, {}) }) }) }), filterChipLabel && (jsx(Chip, { label: filterChipLabel, onDelete: handleClearEmptyFilterChip }))] })) : null;
3072
+ const commonTextFieldProps = Object.assign(Object.assign({ FormHelperTextProps: {
3073
+ sx: {
3074
+ fontSize: '0.75rem',
3075
+ lineHeight: '0.8rem',
3076
+ whiteSpace: 'nowrap',
3077
+ },
3078
+ }, InputProps: endAdornment //hack because mui looks for presence of endAdornment key instead of undefined
3079
+ ? { endAdornment, startAdornment }
3080
+ : { startAdornment }, fullWidth: true, helperText: showChangeModeButton ? (jsx("label", { children: localization.filterMode.replace('{filterType}',
3081
+ // @ts-ignore
3082
+ localization[`filter${((_k = currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.charAt(0)) === null || _k === void 0 ? void 0 : _k.toUpperCase()) +
3083
+ (currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.slice(1))}`]) })) : null, inputProps: {
3084
+ 'aria-label': filterPlaceholder,
3085
+ autoComplete: 'new-password', // disable autocomplete and autofill
3086
+ disabled: !!filterChipLabel,
3087
+ sx: {
3088
+ textOverflow: 'ellipsis',
3089
+ width: filterChipLabel ? 0 : undefined,
3090
+ },
3091
+ title: filterPlaceholder,
3092
+ }, inputRef: (inputRef) => {
3093
+ filterInputRefs.current[`${column.id}-${rangeFilterIndex !== null && rangeFilterIndex !== void 0 ? rangeFilterIndex : 0}`] =
3094
+ inputRef;
3095
+ if (textFieldProps.inputRef) {
3096
+ textFieldProps.inputRef = inputRef;
3097
+ }
3098
+ }, margin: 'none', placeholder: filterChipLabel || isSelectFilter || isMultiSelectFilter
3099
+ ? undefined
3100
+ : filterPlaceholder, variant: 'standard' }, textFieldProps), { sx: (theme) => (Object.assign({ minWidth: isDateFilter
3101
+ ? '160px'
3102
+ : enableColumnFilterModes && rangeFilterIndex === 0
3103
+ ? '110px'
3104
+ : isRangeFilter
3105
+ ? '100px'
3106
+ : !filterChipLabel
3107
+ ? '120px'
3108
+ : 'auto', mx: '-2px', p: 0, width: 'calc(100% + 4px)' }, parseFromValuesOrFunc(textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.sx, theme))) });
3109
+ const commonDatePickerProps = {
3110
+ onChange: (newDate) => {
3111
+ handleChange(newDate);
3112
+ },
3113
+ value: filterValue || null,
3114
+ };
3115
+ return (jsxs(Fragment, { children: [(filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.startsWith('time')) ? (jsx(TimePicker, Object.assign({}, commonDatePickerProps, timePickerProps, { slotProps: {
3116
+ 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),
3117
+ textField: Object.assign(Object.assign({}, commonTextFieldProps), (_m = timePickerProps === null || timePickerProps === void 0 ? void 0 : timePickerProps.slotProps) === null || _m === void 0 ? void 0 : _m.textField),
3118
+ } }))) : (filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.startsWith('datetime')) ? (jsx(DateTimePicker, Object.assign({}, commonDatePickerProps, dateTimePickerProps, { slotProps: {
3119
+ 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),
3120
+ textField: Object.assign(Object.assign({}, commonTextFieldProps), (_p = dateTimePickerProps === null || dateTimePickerProps === void 0 ? void 0 : dateTimePickerProps.slotProps) === null || _p === void 0 ? void 0 : _p.textField),
3121
+ } }))) : (filterVariant === null || filterVariant === void 0 ? void 0 : filterVariant.startsWith('date')) ? (jsx(DatePicker, Object.assign({}, commonDatePickerProps, datePickerProps, { slotProps: {
3122
+ 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),
3123
+ textField: Object.assign(Object.assign({}, commonTextFieldProps), (_r = datePickerProps === null || datePickerProps === void 0 ? void 0 : datePickerProps.slotProps) === null || _r === void 0 ? void 0 : _r.textField),
3124
+ } }))) : isAutocompleteFilter ? (jsx(Autocomplete, 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) => {
3125
+ var _a;
3126
+ return (jsx(TextField, 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() })));
3127
+ }, value: autocompleteValue }))) : (jsx(TextField, Object.assign({ select: isSelectFilter || isMultiSelectFilter }, commonTextFieldProps, { SelectProps: Object.assign({ MenuProps: { disableScrollLock: true }, displayEmpty: true, multiple: isMultiSelectFilter, renderValue: isMultiSelectFilter
3128
+ ? (selected) => !(selected === null || selected === void 0 ? void 0 : selected.length) ? (jsx(Box, { sx: { opacity: 0.5 }, children: filterPlaceholder })) : (jsx(Box, { sx: { display: 'flex', flexWrap: 'wrap', gap: '2px' }, children: selected === null || selected === void 0 ? void 0 : selected.map((value) => {
3129
+ const selectedValue = dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.find((option) => getValueAndLabel(option).value === value);
3130
+ return (jsx(Chip, { label: getValueAndLabel(selectedValue).label }, value));
3131
+ }) }))
3132
+ : undefined }, commonTextFieldProps.SelectProps), onChange: handleTextFieldChange, onClick: (e) => e.stopPropagation(), value: filterValue !== null && filterValue !== void 0 ? filterValue : '', children: (isSelectFilter || isMultiSelectFilter) && [
3133
+ jsx(MenuItem, { disabled: true, divider: true, hidden: true, value: "", children: jsx(Box, { sx: { opacity: 0.5 }, children: filterPlaceholder }) }, "p"),
3134
+ ...[
3135
+ (_t = textFieldProps.children) !== null && _t !== void 0 ? _t : dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.map((option, index) => {
3136
+ var _a;
3137
+ const { label, value } = getValueAndLabel(option);
3138
+ return (jsxs(MenuItem, { sx: {
3139
+ alignItems: 'center',
3140
+ display: 'flex',
3141
+ gap: '0.5rem',
3142
+ m: 0,
3143
+ }, value: value, children: [isMultiSelectFilter && (jsx(Checkbox, { checked: ((_a = column.getFilterValue()) !== null && _a !== void 0 ? _a : []).includes(value), sx: { mr: '0.5rem' } })), label, ' ', !columnDef.filterSelectOptions &&
3144
+ `(${facetedUniqueValues.get(value)})`] }, `${index}-${value}`));
3145
+ }),
3146
+ ],
3147
+ ] }))), jsx(MRT_FilterOptionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, setFilterValue: setFilterValue, table: table })] }));
3148
+ };
3149
+
3150
+ const MRT_FilterRangeFields = (_a) => {
3151
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
3152
+ return (jsx(Box, 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) => (jsx(MRT_FilterTextField, { header: header, rangeFilterIndex: rangeFilterIndex, table: table }, rangeFilterIndex))) })));
3153
+ };
3154
+
3155
+ const MRT_FilterRangeSlider = (_a) => {
3156
+ var _b, _c;
3157
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
3158
+ const { options: { enableColumnFilterModes, localization, muiFilterSliderProps }, refs: { filterInputRefs }, } = table;
3159
+ const { column } = header;
3160
+ const { columnDef } = column;
3161
+ const currentFilterOption = columnDef._filterFn;
3162
+ const showChangeModeButton = enableColumnFilterModes && columnDef.enableColumnFilterModes !== false;
3163
+ const sliderProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiFilterSliderProps, { column, table })), parseFromValuesOrFunc(columnDef.muiFilterSliderProps, { column, table })), rest);
3164
+ let [min, max] = sliderProps.min !== undefined && sliderProps.max !== undefined
3165
+ ? [sliderProps.min, sliderProps.max]
3166
+ : ((_b = column.getFacetedMinMaxValues()) !== null && _b !== void 0 ? _b : [0, 1]);
3167
+ //fix potential TanStack Table bugs where min or max is an array
3168
+ if (Array.isArray(min))
3169
+ min = min[0];
3170
+ if (Array.isArray(max))
3171
+ max = max[0];
3172
+ if (min === null)
3173
+ min = 0;
3174
+ if (max === null)
3175
+ max = 1;
3176
+ const [filterValues, setFilterValues] = useState([min, max]);
3177
+ const columnFilterValue = column.getFilterValue();
3178
+ const isMounted = useRef(false);
3179
+ useEffect(() => {
3180
+ if (isMounted.current) {
3181
+ if (columnFilterValue === undefined) {
3182
+ setFilterValues([min, max]);
3183
+ }
3184
+ else if (Array.isArray(columnFilterValue)) {
3185
+ setFilterValues(columnFilterValue);
3186
+ }
3187
+ }
3188
+ isMounted.current = true;
3189
+ }, [columnFilterValue, min, max]);
3190
+ return (jsxs(Stack, { children: [jsx(Slider, Object.assign({ disableSwap: true, max: max, min: min, onChange: (_event, values) => {
3191
+ setFilterValues(values);
3192
+ }, onChangeCommitted: (_event, value) => {
3193
+ if (Array.isArray(value)) {
3194
+ if (value[0] <= min && value[1] >= max) {
3195
+ //if the user has selected the entire range, remove the filter
3196
+ column.setFilterValue(undefined);
3197
+ }
3198
+ else {
3199
+ column.setFilterValue(value);
3200
+ }
3201
+ }
3202
+ }, value: filterValues, valueLabelDisplay: "auto" }, sliderProps, { slotProps: {
3203
+ input: {
3204
+ ref: (node) => {
3205
+ var _a, _b;
3206
+ if (node) {
3207
+ filterInputRefs.current[`${column.id}-0`] = node;
3208
+ // @ts-ignore
3209
+ 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) {
3210
+ //@ts-ignore
3211
+ sliderProps.slotProps.input.ref = node;
3212
+ }
3213
+ }
3214
+ },
3215
+ },
3216
+ }, 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 ? (jsx(FormHelperText, { sx: {
3217
+ fontSize: '0.75rem',
3218
+ lineHeight: '0.8rem',
3219
+ m: '-3px -6px',
3220
+ whiteSpace: 'nowrap',
3221
+ }, children: localization.filterMode.replace('{filterType}',
3222
+ // @ts-ignore
3223
+ localization[`filter${((_c = currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.charAt(0)) === null || _c === void 0 ? void 0 : _c.toUpperCase()) +
3224
+ (currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.slice(1))}`]) })) : null] }));
3225
+ };
3226
+
3227
+ const MRT_TableHeadCellFilterContainer = (_a) => {
3228
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
3229
+ const { getState, options: { columnFilterDisplayMode }, } = table;
3230
+ const { showColumnFilters } = getState();
3231
+ const { column } = header;
3232
+ const { columnDef } = column;
3233
+ const { isRangeFilter } = getColumnFilterInfo({ header, table });
3234
+ return (jsx(Collapse, Object.assign({ in: showColumnFilters || columnFilterDisplayMode === 'popover', mountOnEnter: true, unmountOnExit: true }, rest, { children: columnDef.filterVariant === 'checkbox' ? (jsx(MRT_FilterCheckbox, { column: column, table: table })) : columnDef.filterVariant === 'range-slider' ? (jsx(MRT_FilterRangeSlider, { header: header, table: table })) : isRangeFilter ? (jsx(MRT_FilterRangeFields, { header: header, table: table })) : (jsx(MRT_FilterTextField, { header: header, table: table })) })));
3235
+ };
3236
+
3237
+ const MRT_TableHeadCellFilterLabel = (_a) => {
3238
+ var _b, _c;
3239
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
3240
+ const { options: { columnFilterDisplayMode, icons: { FilterAltIcon }, localization, }, refs: { filterInputRefs }, setShowColumnFilters, } = table;
3241
+ const { column } = header;
3242
+ const { columnDef } = column;
3243
+ const filterValue = column.getFilterValue();
3244
+ const [anchorEl, setAnchorEl] = useState(null);
3245
+ const { currentFilterOption, isMultiSelectFilter, isRangeFilter, isSelectFilter, } = getColumnFilterInfo({ header, table });
3246
+ const dropdownOptions = useDropdownOptions({ header, table });
3247
+ const getSelectLabel = (index) => getValueAndLabel(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.find((option) => getValueAndLabel(option).value ===
3248
+ (index !== undefined ? filterValue[index] : filterValue))).label;
3249
+ const isFilterActive = (Array.isArray(filterValue) && filterValue.some(Boolean)) ||
3250
+ (!!filterValue && !Array.isArray(filterValue));
3251
+ const filterTooltip = columnFilterDisplayMode === 'popover' && !isFilterActive
3252
+ ? (_b = localization.filterByColumn) === null || _b === void 0 ? void 0 : _b.replace('{column}', String(columnDef.header))
3253
+ : localization.filteringByColumn
3254
+ .replace('{column}', String(columnDef.header))
3255
+ .replace('{filterType}', currentFilterOption
3256
+ ? // @ts-ignore
3257
+ localization[`filter${((_c = currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.charAt(0)) === null || _c === void 0 ? void 0 : _c.toUpperCase()) +
3258
+ (currentFilterOption === null || currentFilterOption === void 0 ? void 0 : currentFilterOption.slice(1))}`]
3259
+ : '')
3260
+ .replace('{filterValue}', `"${Array.isArray(filterValue)
3261
+ ? filterValue
3262
+ .map((value, index) => isMultiSelectFilter ? getSelectLabel(index) : value)
3263
+ .join(`" ${isRangeFilter ? localization.and : localization.or} "`)
3264
+ : isSelectFilter
3265
+ ? getSelectLabel()
3266
+ : filterValue}"`)
3267
+ .replace('" "', '');
3268
+ return (jsxs(Fragment, { children: [jsx(Grow, { in: columnFilterDisplayMode === 'popover' ||
3269
+ (!!filterValue && !isRangeFilter) ||
3270
+ (isRangeFilter && // @ts-ignore
3271
+ (!!(filterValue === null || filterValue === void 0 ? void 0 : filterValue[0]) || !!(filterValue === null || filterValue === void 0 ? void 0 : filterValue[1]))), unmountOnExit: true, children: jsx(Box, { component: "span", sx: { flex: '0 0' }, children: jsx(Tooltip, { placement: "top", title: filterTooltip, children: jsx(IconButton, Object.assign({ disableRipple: true, onClick: (event) => {
3272
+ if (columnFilterDisplayMode === 'popover') {
3273
+ setAnchorEl(event.currentTarget);
3274
+ }
3275
+ else {
3276
+ setShowColumnFilters(true);
3277
+ }
3278
+ queueMicrotask(() => {
3279
+ var _a, _b, _c, _d;
3280
+ (_b = (_a = filterInputRefs.current[`${column.id}-0`]) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
3281
+ (_d = (_c = filterInputRefs.current[`${column.id}-0`]) === null || _c === void 0 ? void 0 : _c.select) === null || _d === void 0 ? void 0 : _d.call(_c);
3282
+ });
3283
+ event.stopPropagation();
3284
+ }, 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: jsx(FilterAltIcon, {}) })) }) }) }), columnFilterDisplayMode === 'popover' && (jsx(Popover, { anchorEl: anchorEl, anchorOrigin: {
3285
+ horizontal: 'center',
3286
+ vertical: 'top',
3287
+ }, disableScrollLock: true, onClick: (event) => event.stopPropagation(), onClose: (event) => {
3288
+ //@ts-ignore
3289
+ event.stopPropagation();
3290
+ setAnchorEl(null);
3291
+ }, onKeyDown: (event) => event.key === 'Enter' && setAnchorEl(null), open: !!anchorEl, slotProps: { paper: { sx: { overflow: 'visible' } } }, transformOrigin: {
3292
+ horizontal: 'center',
3293
+ vertical: 'bottom',
3294
+ }, children: jsx(Box, { sx: { p: '1rem' }, children: jsx(MRT_TableHeadCellFilterContainer, { header: header, table: table }) }) }))] }));
3295
+ };
3296
+
3297
+ const MRT_TableHeadCellGrabHandle = (_a) => {
3298
+ var { column, table, tableHeadCellRef } = _a, rest = __rest(_a, ["column", "table", "tableHeadCellRef"]);
3299
+ const { getState, options: { enableColumnOrdering, muiColumnDragHandleProps }, setColumnOrder, setDraggingColumn, setHoveredColumn, } = table;
3300
+ const { columnDef } = column;
3301
+ const { columnOrder, draggingColumn, hoveredColumn } = getState();
3302
+ const iconButtonProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiColumnDragHandleProps, { column, table })), parseFromValuesOrFunc(columnDef.muiColumnDragHandleProps, {
3303
+ column,
3304
+ table,
3305
+ })), rest);
3306
+ const handleDragStart = (event) => {
3307
+ var _a;
3308
+ (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onDragStart) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
3309
+ setDraggingColumn(column);
3310
+ try {
3311
+ event.dataTransfer.setDragImage(tableHeadCellRef.current, 0, 0);
3312
+ }
3313
+ catch (e) {
3314
+ console.error(e);
3315
+ }
3316
+ };
3317
+ const handleDragEnd = (event) => {
3318
+ var _a;
3319
+ (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onDragEnd) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
3320
+ if ((hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === 'drop-zone') {
3321
+ column.toggleGrouping();
3322
+ }
3323
+ else if (enableColumnOrdering &&
3324
+ hoveredColumn &&
3325
+ (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) !== (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id)) {
3326
+ setColumnOrder(reorderColumn(column, hoveredColumn, columnOrder));
3327
+ }
3328
+ setDraggingColumn(null);
3329
+ setHoveredColumn(null);
3330
+ };
3331
+ return (jsx(MRT_GrabHandleButton, Object.assign({}, iconButtonProps, { onDragEnd: handleDragEnd, onDragStart: handleDragStart, table: table })));
3332
+ };
3333
+
3334
+ const MRT_TableHeadCellResizeHandle = (_a) => {
3335
+ var _b;
3336
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
3337
+ const { getState, options: { columnResizeDirection, columnResizeMode }, setColumnSizingInfo, } = table;
3338
+ const { density } = getState();
3339
+ const { column } = header;
3340
+ const handler = header.getResizeHandler();
3341
+ const mx = density === 'compact'
3342
+ ? '-8px'
3343
+ : density === 'comfortable'
3344
+ ? '-16px'
3345
+ : '-24px';
3346
+ const lr = column.columnDef.columnDefType === 'display' ? '4px' : '0';
3347
+ return (jsx(Box, { className: "Mui-TableHeadCell-ResizeHandle-Wrapper", onDoubleClick: () => {
3348
+ setColumnSizingInfo((old) => (Object.assign(Object.assign({}, old), { isResizingColumn: false })));
3349
+ column.resetSize();
3350
+ }, onMouseDown: handler, onTouchStart: handler, style: {
3351
+ transform: column.getIsResizing() && columnResizeMode === 'onEnd'
3352
+ ? `translateX(${(columnResizeDirection === 'rtl' ? -1 : 1) *
3353
+ ((_b = getState().columnSizingInfo.deltaOffset) !== null && _b !== void 0 ? _b : 0)}px)`
3354
+ : undefined,
3355
+ }, sx: (theme) => ({
3356
+ '&:active > hr': {
3357
+ backgroundColor: theme.palette.info.main,
3358
+ opacity: header.subHeaders.length || columnResizeMode === 'onEnd' ? 1 : 0,
3359
+ },
3360
+ cursor: 'col-resize',
3361
+ left: columnResizeDirection === 'rtl' ? lr : undefined,
3362
+ ml: columnResizeDirection === 'rtl' ? mx : undefined,
3363
+ mr: columnResizeDirection === 'ltr' ? mx : undefined,
3364
+ position: 'absolute',
3365
+ px: '4px',
3366
+ right: columnResizeDirection === 'ltr' ? lr : undefined,
3367
+ }), children: jsx(Divider, { 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()
3368
+ ? undefined
3369
+ : 'all 150ms ease-in-out', userSelect: 'none', zIndex: 4 }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))) }) }));
3370
+ };
3371
+
3372
+ const MRT_TableHeadCellSortLabel = (_a) => {
3373
+ var { header, table } = _a, rest = __rest(_a, ["header", "table"]);
3374
+ const { getState, options: { icons: { ArrowDownwardIcon, SyncAltIcon }, localization, }, } = table;
3375
+ const { column } = header;
3376
+ const { columnDef } = column;
3377
+ const { isLoading, showSkeletons, sorting } = getState();
3378
+ const isSorted = !!column.getIsSorted();
3379
+ const sortTooltip = isLoading || showSkeletons
3380
+ ? ''
3381
+ : column.getIsSorted()
3382
+ ? column.getIsSorted() === 'desc'
3383
+ ? localization.sortedByColumnDesc.replace('{column}', columnDef.header)
3384
+ : localization.sortedByColumnAsc.replace('{column}', columnDef.header)
3385
+ : column.getNextSortingOrder() === 'desc'
3386
+ ? localization.sortByColumnDesc.replace('{column}', columnDef.header)
3387
+ : localization.sortByColumnAsc.replace('{column}', columnDef.header);
3388
+ const direction = isSorted
3389
+ ? column.getIsSorted()
3390
+ : undefined;
3391
+ return (jsx(Tooltip, { placement: "top", title: sortTooltip, children: jsx(Badge, { badgeContent: sorting.length > 1 ? column.getSortIndex() + 1 : 0, overlap: "circular", children: jsx(TableSortLabel, Object.assign({ IconComponent: !isSorted
3392
+ ? (props) => (jsx(SyncAltIcon, Object.assign({}, props, { direction: direction, style: {
3393
+ transform: 'rotate(-90deg) scaleX(0.9) translateX(-1px)',
3394
+ } })))
3395
+ : ArrowDownwardIcon, active: true, "aria-label": sortTooltip, direction: direction, onClick: (e) => {
3396
+ var _a;
3397
+ e.stopPropagation();
3398
+ (_a = header.column.getToggleSortingHandler()) === null || _a === void 0 ? void 0 : _a(e);
3399
+ } }, rest, { sx: (theme) => (Object.assign({ '.MuiTableSortLabel-icon': {
3400
+ color: `${theme.palette.mode === 'dark'
3401
+ ? theme.palette.text.primary
3402
+ : theme.palette.text.secondary} !important`,
3403
+ }, 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))) })) }) }));
3404
+ };
3405
+
3406
+ const MRT_TableHeadCell = (_a) => {
3407
+ var _b, _c, _d, _f, _g, _h;
3408
+ var { columnVirtualizer, header, staticColumnIndex, table } = _a, rest = __rest(_a, ["columnVirtualizer", "header", "staticColumnIndex", "table"]);
3409
+ const theme = useTheme();
3410
+ const { getState, options: { columnFilterDisplayMode, columnResizeDirection, columnResizeMode, enableColumnActions, enableColumnDragging, enableColumnOrdering, enableColumnPinning, enableKeyboardShortcuts, enableGrouping, enableMultiSort, layoutMode, mrtTheme: { draggingBorderColor }, muiTableHeadCellProps, }, refs: { tableHeadCellRefs }, setHoveredColumn, } = table;
3411
+ const { columnSizingInfo, density, draggingColumn, grouping, hoveredColumn, showColumnFilters, } = getState();
3412
+ const { column } = header;
3413
+ const { columnDef } = column;
3414
+ const { columnDefType } = columnDef;
3415
+ const tableCellProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableHeadCellProps, { column, table })), parseFromValuesOrFunc(columnDef.muiTableHeadCellProps, {
3416
+ column,
3417
+ table,
3418
+ })), rest);
3419
+ const isColumnPinned = enableColumnPinning &&
3420
+ columnDef.columnDefType !== 'group' &&
3421
+ column.getIsPinned();
3422
+ const showColumnActions = (enableColumnActions || columnDef.enableColumnActions) &&
3423
+ columnDef.enableColumnActions !== false;
3424
+ const showDragHandle = enableColumnDragging !== false &&
3425
+ columnDef.enableColumnDragging !== false &&
3426
+ (enableColumnDragging ||
3427
+ (enableColumnOrdering && columnDef.enableColumnOrdering !== false) ||
3428
+ (enableGrouping &&
3429
+ columnDef.enableGrouping !== false &&
3430
+ !grouping.includes(column.id)));
3431
+ const headerPL = useMemo(() => {
3432
+ let pl = 0;
3433
+ if (column.getCanSort())
3434
+ pl += 1;
3435
+ if (showColumnActions)
3436
+ pl += 1.75;
3437
+ if (showDragHandle)
3438
+ pl += 1.5;
3439
+ return pl;
3440
+ }, [showColumnActions, showDragHandle]);
3441
+ const draggingBorders = useMemo(() => {
3442
+ const showResizeBorder = columnSizingInfo.isResizingColumn === column.id &&
3443
+ columnResizeMode === 'onChange' &&
3444
+ !header.subHeaders.length;
3445
+ const borderStyle = showResizeBorder
3446
+ ? `2px solid ${draggingBorderColor} !important`
3447
+ : (draggingColumn === null || draggingColumn === void 0 ? void 0 : draggingColumn.id) === column.id
3448
+ ? `1px dashed ${theme.palette.grey[500]}`
3449
+ : (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id
3450
+ ? `2px dashed ${draggingBorderColor}`
3451
+ : undefined;
3452
+ if (showResizeBorder) {
3453
+ return columnResizeDirection === 'ltr'
3454
+ ? { borderRight: borderStyle }
3455
+ : { borderLeft: borderStyle };
3456
+ }
3457
+ const draggingBorders = borderStyle
3458
+ ? {
3459
+ borderLeft: borderStyle,
3460
+ borderRight: borderStyle,
3461
+ borderTop: borderStyle,
3462
+ }
3463
+ : undefined;
3464
+ return draggingBorders;
3465
+ }, [draggingColumn, hoveredColumn, columnSizingInfo.isResizingColumn]);
3466
+ const handleDragEnter = (_e) => {
3467
+ if (enableGrouping && (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === 'drop-zone') {
3468
+ setHoveredColumn(null);
3469
+ }
3470
+ if (enableColumnOrdering && draggingColumn && columnDefType !== 'group') {
3471
+ setHoveredColumn(columnDef.enableColumnOrdering !== false ? column : null);
3472
+ }
3473
+ };
3474
+ const handleDragOver = (e) => {
3475
+ if (columnDef.enableColumnOrdering !== false) {
3476
+ e.preventDefault();
3477
+ }
3478
+ };
3479
+ const HeaderElement = (_b = parseFromValuesOrFunc(columnDef.Header, {
3480
+ column,
3481
+ header,
3482
+ table,
3483
+ })) !== null && _b !== void 0 ? _b : columnDef.header;
3484
+ return (jsxs(TableCell, Object.assign({ align: columnDefType === 'group'
3485
+ ? 'center'
3486
+ : theme.direction === 'rtl'
3487
+ ? 'right'
3488
+ : 'left', "aria-sort": column.getIsSorted()
3489
+ ? column.getIsSorted() === 'asc'
3490
+ ? 'ascending'
3491
+ : 'descending'
3492
+ : '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) => {
3493
+ var _a;
3494
+ if (node) {
3495
+ tableHeadCellRefs.current[column.id] = node;
3496
+ if (columnDefType !== 'group') {
3497
+ (_a = columnVirtualizer === null || columnVirtualizer === void 0 ? void 0 : columnVirtualizer.measureElement) === null || _a === void 0 ? void 0 : _a.call(columnVirtualizer, node);
3498
+ }
3499
+ }
3500
+ } }, tableCellProps, { sx: (theme) => (Object.assign(Object.assign({ '& :hover': {
3501
+ '.MuiButtonBase-root': {
3502
+ opacity: 1,
3503
+ },
3504
+ }, flexDirection: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'column' : undefined, fontWeight: 'bold', overflow: 'visible', p: density === 'compact'
3505
+ ? '0.5rem'
3506
+ : density === 'comfortable'
3507
+ ? columnDefType === 'display'
3508
+ ? '0.75rem'
3509
+ : '1rem'
3510
+ : columnDefType === 'display'
3511
+ ? '1rem 1.25rem'
3512
+ : '1.5rem', pb: columnDefType === 'display'
3513
+ ? 0
3514
+ : showColumnFilters || density === 'compact'
3515
+ ? '0.4rem'
3516
+ : '0.6rem', pt: columnDefType === 'group' || density === 'compact'
3517
+ ? '0.25rem'
3518
+ : density === 'comfortable'
3519
+ ? '.75rem'
3520
+ : '1.25rem', userSelect: enableMultiSort && column.getCanSort() ? 'none' : undefined, verticalAlign: 'top' }, getCommonMRTCellStyles({
3521
+ column,
3522
+ header,
3523
+ table,
3524
+ tableCellProps,
3525
+ theme,
3526
+ })), draggingBorders)), children: [header.isPlaceholder
3527
+ ? null
3528
+ : ((_c = tableCellProps.children) !== null && _c !== void 0 ? _c : (jsxs(Box, { className: "Mui-TableHeadCell-Content", sx: {
3529
+ alignItems: 'center',
3530
+ display: 'flex',
3531
+ flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
3532
+ justifyContent: columnDefType === 'group' ||
3533
+ (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
3534
+ ? 'center'
3535
+ : column.getCanResize()
3536
+ ? 'space-between'
3537
+ : 'flex-start',
3538
+ position: 'relative',
3539
+ width: '100%',
3540
+ }, children: [jsxs(Box, { className: "Mui-TableHeadCell-Content-Labels", onClick: column.getToggleSortingHandler(), sx: {
3541
+ alignItems: 'center',
3542
+ cursor: column.getCanSort() && columnDefType !== 'group'
3543
+ ? 'pointer'
3544
+ : undefined,
3545
+ display: 'flex',
3546
+ flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
3547
+ overflow: columnDefType === 'data' ? 'hidden' : undefined,
3548
+ pl: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'center'
3549
+ ? `${headerPL}rem`
3550
+ : undefined,
3551
+ }, children: [jsx(Box, { className: "Mui-TableHeadCell-Content-Wrapper", sx: {
3552
+ '&:hover': {
3553
+ textOverflow: 'clip',
3554
+ },
3555
+ minWidth: `${Math.min((_f = (_d = columnDef.header) === null || _d === void 0 ? void 0 : _d.length) !== null && _f !== void 0 ? _f : 0, 4)}ch`,
3556
+ overflow: columnDefType === 'data' ? 'hidden' : undefined,
3557
+ textOverflow: 'ellipsis',
3558
+ whiteSpace: ((_h = (_g = columnDef.header) === null || _g === void 0 ? void 0 : _g.length) !== null && _h !== void 0 ? _h : 0) < 20
3559
+ ? 'nowrap'
3560
+ : 'normal',
3561
+ }, children: HeaderElement }), column.getCanFilter() && (jsx(MRT_TableHeadCellFilterLabel, { header: header, table: table })), column.getCanSort() && (jsx(MRT_TableHeadCellSortLabel, { header: header, table: table }))] }), columnDefType !== 'group' && (jsxs(Box, { className: "Mui-TableHeadCell-Content-Actions", sx: {
3562
+ whiteSpace: 'nowrap',
3563
+ }, children: [showDragHandle && (jsx(MRT_TableHeadCellGrabHandle, { column: column, table: table, tableHeadCellRef: {
3564
+ current: tableHeadCellRefs.current[column.id],
3565
+ } })), showColumnActions && (jsx(MRT_TableHeadCellColumnActionsButton, { header: header, table: table }))] })), column.getCanResize() && (jsx(MRT_TableHeadCellResizeHandle, { header: header, table: table }))] }))), columnFilterDisplayMode === 'subheader' && column.getCanFilter() && (jsx(MRT_TableHeadCellFilterContainer, { header: header, table: table }))] })));
3566
+ };
3567
+
3568
+ const MRT_TableHeadRow = (_a) => {
3569
+ var { columnVirtualizer, headerGroup, table } = _a, rest = __rest(_a, ["columnVirtualizer", "headerGroup", "table"]);
3570
+ const { options: { enableStickyHeader, layoutMode, mrtTheme: { baseBackgroundColor }, muiTableHeadRowProps, }, } = table;
3571
+ const { virtualColumns, virtualPaddingLeft, virtualPaddingRight } = columnVirtualizer !== null && columnVirtualizer !== void 0 ? columnVirtualizer : {};
3572
+ const tableRowProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableHeadRowProps, {
3573
+ headerGroup,
3574
+ table,
3575
+ })), rest);
3576
+ return (jsxs(TableRow, Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: baseBackgroundColor, boxShadow: `4px 0 8px ${alpha(theme.palette.common.black, 0.1)}`, display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'flex' : undefined, position: enableStickyHeader && layoutMode === 'semantic'
3577
+ ? 'sticky'
3578
+ : 'relative', top: 0 }, parseFromValuesOrFunc(tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx, theme))), children: [virtualPaddingLeft ? (jsx("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null, (virtualColumns !== null && virtualColumns !== void 0 ? virtualColumns : headerGroup.headers).map((headerOrVirtualHeader, staticColumnIndex) => {
3579
+ let header = headerOrVirtualHeader;
3580
+ if (columnVirtualizer) {
3581
+ staticColumnIndex = headerOrVirtualHeader
3582
+ .index;
3583
+ header = headerGroup.headers[staticColumnIndex];
3584
+ }
3585
+ return header ? (jsx(MRT_TableHeadCell, { columnVirtualizer: columnVirtualizer, header: header, staticColumnIndex: staticColumnIndex, table: table }, header.id)) : null;
3586
+ }), virtualPaddingRight ? (jsx("th", { style: { display: 'flex', width: virtualPaddingRight } })) : null] })));
3587
+ };
3588
+
3589
+ const MRT_ToolbarAlertBanner = (_a) => {
3590
+ var _b, _c, _d;
3591
+ var { stackAlertBanner, table } = _a, rest = __rest(_a, ["stackAlertBanner", "table"]);
3592
+ const { getFilteredSelectedRowModel, getPrePaginationRowModel, getState, options: { enableRowSelection, enableSelectAll, localization, manualPagination, muiToolbarAlertBannerChipProps, muiToolbarAlertBannerProps, positionToolbarAlertBanner, renderToolbarAlertBannerContent, rowCount, }, refs: { tablePaperRef }, } = table;
3593
+ const { density, grouping, rowSelection, showAlertBanner } = getState();
3594
+ const alertProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiToolbarAlertBannerProps, {
3595
+ table,
3596
+ })), rest);
3597
+ const chipProps = parseFromValuesOrFunc(muiToolbarAlertBannerChipProps, {
3598
+ table,
3599
+ });
3600
+ const totalRowCount = rowCount !== null && rowCount !== void 0 ? rowCount : getPrePaginationRowModel().flatRows.length;
3601
+ const selectedRowCount = useMemo(() => manualPagination
3602
+ ? Object.values(rowSelection).filter(Boolean).length
3603
+ : getFilteredSelectedRowModel().rows.length, [rowSelection, totalRowCount, manualPagination]);
3604
+ const selectedAlert = selectedRowCount > 0 ? (jsxs(Stack, { 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()), jsx(Button, { onClick: (event) => getMRT_SelectAllHandler({ table })(event, false, true), size: "small", sx: { p: '2px' }, children: localization.clearSelection })] })) : null;
3605
+ const groupedAlert = grouping.length > 0 ? (jsxs("span", { children: [localization.groupedBy, ' ', grouping.map((columnId, index) => (jsxs(Fragment$1, { children: [index > 0 ? localization.thenBy : '', jsx(Chip, Object.assign({ label: table.getColumn(columnId).columnDef.header, onDelete: () => table.getColumn(columnId).toggleGrouping() }, chipProps))] }, `${index}-${columnId}`)))] })) : null;
3606
+ return (jsx(Collapse, { in: showAlertBanner || !!selectedAlert || !!groupedAlert, timeout: stackAlertBanner ? 200 : 0, children: jsx(Alert, Object.assign({ color: "info", icon: false }, alertProps, { sx: (theme) => {
3607
+ var _a, _b;
3608
+ return (Object.assign({ '& .MuiAlert-message': {
3609
+ maxWidth: `calc(${(_b = (_a = tablePaperRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth) !== null && _b !== void 0 ? _b : 360}px - 1rem)`,
3610
+ width: '100%',
3611
+ }, borderRadius: 0, fontSize: '1rem', left: 0, mb: stackAlertBanner
3612
+ ? 0
3613
+ : positionToolbarAlertBanner === 'bottom'
3614
+ ? '-1rem'
3615
+ : undefined, p: 0, position: 'relative', right: 0, top: 0, width: '100%', zIndex: 2 }, parseFromValuesOrFunc(alertProps === null || alertProps === void 0 ? void 0 : alertProps.sx, theme)));
3616
+ }, children: (_d = renderToolbarAlertBannerContent === null || renderToolbarAlertBannerContent === void 0 ? void 0 : renderToolbarAlertBannerContent({
3617
+ groupedAlert,
3618
+ selectedAlert,
3619
+ table,
3620
+ })) !== null && _d !== void 0 ? _d : (jsxs(Fragment, { children: [(alertProps === null || alertProps === void 0 ? void 0 : alertProps.title) && jsx(AlertTitle, { children: alertProps.title }), jsxs(Stack, { sx: {
3621
+ p: positionToolbarAlertBanner !== 'head-overlay'
3622
+ ? '0.5rem 1rem'
3623
+ : density === 'spacious'
3624
+ ? '0.75rem 1.25rem'
3625
+ : density === 'comfortable'
3626
+ ? '0.5rem 0.75rem'
3627
+ : '0.25rem 0.5rem',
3628
+ }, children: [alertProps === null || alertProps === void 0 ? void 0 : alertProps.children, (alertProps === null || alertProps === void 0 ? void 0 : alertProps.children) && (selectedAlert || groupedAlert) && (jsx("br", {})), jsxs(Box, { sx: { display: 'flex' }, children: [enableRowSelection &&
3629
+ enableSelectAll &&
3630
+ positionToolbarAlertBanner === 'head-overlay' && (jsx(MRT_SelectCheckbox, { table: table })), ' ', selectedAlert] }), selectedAlert && groupedAlert && jsx("br", {}), groupedAlert] })] })) })) }));
3631
+ };
3632
+
3633
+ const MRT_TableHead = (_a) => {
3634
+ var { columnVirtualizer, table } = _a, rest = __rest(_a, ["columnVirtualizer", "table"]);
3635
+ const { getState, options: { enableStickyHeader, layoutMode, muiTableHeadProps, positionToolbarAlertBanner, }, refs: { tableHeadRef }, } = table;
3636
+ const { isFullScreen, showAlertBanner } = getState();
3637
+ const tableHeadProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableHeadProps, { table })), rest);
3638
+ const stickyHeader = enableStickyHeader || isFullScreen;
3639
+ return (jsx(TableHead, Object.assign({}, tableHeadProps, { ref: (ref) => {
3640
+ tableHeadRef.current = ref;
3641
+ if (tableHeadProps === null || tableHeadProps === void 0 ? void 0 : tableHeadProps.ref) {
3642
+ // @ts-ignore
3643
+ tableHeadProps.ref.current = ref;
3644
+ }
3645
+ }, 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' &&
3646
+ (showAlertBanner || table.getSelectedRowModel().rows.length > 0) ? (jsx("tr", { style: {
3647
+ display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined,
3648
+ }, children: jsx("th", { colSpan: table.getVisibleLeafColumns().length, style: {
3649
+ display: (layoutMode === null || layoutMode === void 0 ? void 0 : layoutMode.startsWith('grid')) ? 'grid' : undefined,
3650
+ padding: 0,
3651
+ }, children: jsx(MRT_ToolbarAlertBanner, { table: table }) }) })) : (table
3652
+ .getHeaderGroups()
3653
+ .map((headerGroup) => (jsx(MRT_TableHeadRow, { columnVirtualizer: columnVirtualizer, headerGroup: headerGroup, table: table }, headerGroup.id)))) })));
3654
+ };
3655
+
3656
+ const MRT_Table = (_a) => {
3657
+ var { table } = _a, rest = __rest(_a, ["table"]);
3658
+ const { getFlatHeaders, getState, options: { columns, enableStickyHeader, enableTableFooter, enableTableHead, layoutMode, memoMode, muiTableProps, renderCaption, }, } = table;
3659
+ const { columnSizing, columnSizingInfo, columnVisibility, isFullScreen } = getState();
3660
+ const tableProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableProps, { table })), rest);
3661
+ const Caption = parseFromValuesOrFunc(renderCaption, { table });
3662
+ const columnSizeVars = useMemo(() => {
3663
+ const headers = getFlatHeaders();
3664
+ const colSizes = {};
3665
+ for (let i = 0; i < headers.length; i++) {
3666
+ const header = headers[i];
3667
+ const colSize = header.getSize();
3668
+ colSizes[`--header-${parseCSSVarId(header.id)}-size`] = colSize;
3669
+ colSizes[`--col-${parseCSSVarId(header.column.id)}-size`] = colSize;
3670
+ }
3671
+ return colSizes;
3672
+ }, [columns, columnSizing, columnSizingInfo, columnVisibility]);
3673
+ const columnVirtualizer = useMRT_ColumnVirtualizer(table);
3674
+ const commonTableGroupProps = {
3675
+ columnVirtualizer,
3676
+ table,
3677
+ };
3678
+ return (jsxs(Table, 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 && jsx("caption", { children: Caption }), enableTableHead && jsx(MRT_TableHead, Object.assign({}, commonTableGroupProps)), memoMode === 'table-body' || columnSizingInfo.isResizingColumn ? (jsx(Memo_MRT_TableBody, Object.assign({}, commonTableGroupProps))) : (jsx(MRT_TableBody, Object.assign({}, commonTableGroupProps))), enableTableFooter && jsx(MRT_TableFooter, Object.assign({}, commonTableGroupProps))] })));
3679
+ };
3680
+
3681
+ const MRT_TableLoadingOverlay = (_a) => {
3682
+ var _b;
3683
+ var { table } = _a, rest = __rest(_a, ["table"]);
3684
+ const { options: { localization, mrtTheme: { baseBackgroundColor }, muiCircularProgressProps, }, } = table;
3685
+ const circularProgressProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiCircularProgressProps, { table })), rest);
3686
+ return (jsx(Box, { sx: {
3687
+ alignItems: 'center',
3688
+ backgroundColor: alpha(baseBackgroundColor, 0.5),
3689
+ bottom: 0,
3690
+ display: 'flex',
3691
+ justifyContent: 'center',
3692
+ left: 0,
3693
+ maxHeight: '100vh',
3694
+ position: 'absolute',
3695
+ right: 0,
3696
+ top: 0,
3697
+ width: '100%',
3698
+ zIndex: 3,
3699
+ }, children: (_b = circularProgressProps === null || circularProgressProps === void 0 ? void 0 : circularProgressProps.Component) !== null && _b !== void 0 ? _b : (jsx(CircularProgress, Object.assign({ "aria-label": localization.noRecordsToDisplay, id: "mrt-progress" }, circularProgressProps))) }));
3700
+ };
3701
+
3702
+ const MRT_CellActionMenu = (_a) => {
3703
+ var _b, _c;
3704
+ var { table } = _a, rest = __rest(_a, ["table"]);
3705
+ const { getState, options: { editDisplayMode, enableClickToCopy, enableEditing, icons: { ContentCopy, EditIcon }, localization, mrtTheme: { menuBackgroundColor }, renderCellActionMenuItems, }, refs: { actionCellRef }, } = table;
3706
+ const { actionCell, density } = getState();
3707
+ const cell = actionCell;
3708
+ const { row } = cell;
3709
+ const { column } = cell;
3710
+ const { columnDef } = column;
3711
+ const handleClose = (event) => {
3712
+ event === null || event === void 0 ? void 0 : event.stopPropagation();
3713
+ table.setActionCell(null);
3714
+ actionCellRef.current = null;
3715
+ };
3716
+ const internalMenuItems = [
3717
+ (parseFromValuesOrFunc(enableClickToCopy, cell) === 'context-menu' ||
3718
+ parseFromValuesOrFunc(columnDef.enableClickToCopy, cell) ===
3719
+ 'context-menu') && (jsx(MRT_ActionMenuItem, { icon: jsx(ContentCopy, {}), label: localization.copy, onClick: (event) => {
3720
+ event.stopPropagation();
3721
+ navigator.clipboard.writeText(cell.getValue());
3722
+ handleClose();
3723
+ }, table: table }, 'mrt-copy')),
3724
+ parseFromValuesOrFunc(enableEditing, row) && editDisplayMode === 'cell' && (jsx(MRT_ActionMenuItem, { icon: jsx(EditIcon, {}), label: localization.edit, onClick: () => {
3725
+ openEditingCell({ cell, table });
3726
+ handleClose();
3727
+ }, table: table }, 'mrt-edit')),
3728
+ ].filter(Boolean);
3729
+ const renderActionProps = {
3730
+ cell,
3731
+ closeMenu: handleClose,
3732
+ column,
3733
+ internalMenuItems,
3734
+ row,
3735
+ table,
3736
+ };
3737
+ 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);
3738
+ return ((!!(menuItems === null || menuItems === void 0 ? void 0 : menuItems.length) || !!(internalMenuItems === null || internalMenuItems === void 0 ? void 0 : internalMenuItems.length)) && (jsx(Menu, Object.assign({ MenuListProps: {
3739
+ dense: density === 'compact',
3740
+ sx: {
3741
+ backgroundColor: menuBackgroundColor,
3742
+ },
3743
+ }, 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 }))));
3744
+ };
3745
+
3746
+ const MRT_EditRowModal = (_a) => {
3747
+ var _b;
3748
+ var { open, table } = _a, rest = __rest(_a, ["open", "table"]);
3749
+ const { getState, options: { localization, muiCreateRowModalProps, muiEditRowDialogProps, onCreatingRowCancel, onEditingRowCancel, renderCreateRowDialogContent, renderEditRowDialogContent, }, setCreatingRow, setEditingRow, } = table;
3750
+ const { creatingRow, editingRow } = getState();
3751
+ const row = (creatingRow !== null && creatingRow !== void 0 ? creatingRow : editingRow);
3752
+ const dialogProps = Object.assign(Object.assign(Object.assign({}, parseFromValuesOrFunc(muiEditRowDialogProps, { row, table })), (creatingRow &&
3753
+ parseFromValuesOrFunc(muiCreateRowModalProps, { row, table }))), rest);
3754
+ const internalEditComponents = row
3755
+ .getAllCells()
3756
+ .filter((cell) => cell.column.columnDef.columnDefType === 'data')
3757
+ .map((cell) => (jsx(MRT_EditCellTextField, { cell: cell, table: table }, cell.id)));
3758
+ return (jsx(Dialog, Object.assign({ fullWidth: true, maxWidth: "xs", onClose: (event, reason) => {
3759
+ var _a;
3760
+ if (creatingRow) {
3761
+ onCreatingRowCancel === null || onCreatingRowCancel === void 0 ? void 0 : onCreatingRowCancel({ row, table });
3762
+ setCreatingRow(null);
3763
+ }
3764
+ else {
3765
+ onEditingRowCancel === null || onEditingRowCancel === void 0 ? void 0 : onEditingRowCancel({ row, table });
3766
+ setEditingRow(null);
3767
+ }
3768
+ row._valuesCache = {}; //reset values cache
3769
+ (_a = dialogProps.onClose) === null || _a === void 0 ? void 0 : _a.call(dialogProps, event, reason);
3770
+ }, open: open }, dialogProps, { children: (_b = ((creatingRow &&
3771
+ (renderCreateRowDialogContent === null || renderCreateRowDialogContent === void 0 ? void 0 : renderCreateRowDialogContent({
3772
+ internalEditComponents,
3773
+ row,
3774
+ table,
3775
+ }))) ||
3776
+ (renderEditRowDialogContent === null || renderEditRowDialogContent === void 0 ? void 0 : renderEditRowDialogContent({
3777
+ internalEditComponents,
3778
+ row,
3779
+ table,
3780
+ })))) !== null && _b !== void 0 ? _b : (jsxs(Fragment, { children: [jsx(DialogTitle, { sx: { textAlign: 'center' }, children: localization.edit }), jsx(DialogContent, { children: jsx("form", { onSubmit: (e) => e.preventDefault(), children: jsx(Stack, { sx: {
3781
+ gap: '32px',
3782
+ paddingTop: '16px',
3783
+ width: '100%',
3784
+ }, children: internalEditComponents }) }) }), jsx(DialogActions, { sx: { p: '1.25rem' }, children: jsx(MRT_EditActionButtons, { row: row, table: table, variant: "text" }) })] })) })));
3785
+ };
3786
+
3787
+ const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
3788
+ const MRT_TableContainer = (_a) => {
3789
+ var { table } = _a, rest = __rest(_a, ["table"]);
3790
+ const { getState, options: { createDisplayMode, editDisplayMode, enableCellActions, enableStickyHeader, muiTableContainerProps, }, refs: { bottomToolbarRef, tableContainerRef, topToolbarRef }, } = table;
3791
+ const { actionCell, creatingRow, editingRow, isFullScreen, isLoading, showLoadingOverlay, } = getState();
3792
+ const loading = showLoadingOverlay !== false && (isLoading || showLoadingOverlay);
3793
+ const [totalToolbarHeight, setTotalToolbarHeight] = useState(0);
3794
+ const tableContainerProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTableContainerProps, {
3795
+ table,
3796
+ })), rest);
3797
+ useIsomorphicLayoutEffect(() => {
3798
+ var _a, _b, _c, _d;
3799
+ const topToolbarHeight = typeof document !== 'undefined'
3800
+ ? ((_b = (_a = topToolbarRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) !== null && _b !== void 0 ? _b : 0)
3801
+ : 0;
3802
+ const bottomToolbarHeight = typeof document !== 'undefined'
3803
+ ? ((_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)
3804
+ : 0;
3805
+ setTotalToolbarHeight(topToolbarHeight + bottomToolbarHeight);
3806
+ });
3807
+ const createModalOpen = createDisplayMode === 'modal' && creatingRow;
3808
+ const editModalOpen = editDisplayMode === 'modal' && editingRow;
3809
+ return (jsxs(TableContainer, Object.assign({ "aria-busy": loading, "aria-describedby": loading ? 'mrt-progress' : undefined }, tableContainerProps, { ref: (node) => {
3810
+ if (node) {
3811
+ tableContainerRef.current = node;
3812
+ if (tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.ref) {
3813
+ //@ts-ignore
3814
+ tableContainerProps.ref.current = node;
3815
+ }
3816
+ }
3817
+ }, style: Object.assign({ maxHeight: isFullScreen
3818
+ ? `calc(100vh - ${totalToolbarHeight}px)`
3819
+ : undefined }, tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.style), sx: (theme) => (Object.assign({ maxHeight: enableStickyHeader
3820
+ ? `clamp(350px, calc(100vh - ${totalToolbarHeight}px), 9999px)`
3821
+ : undefined, maxWidth: '100%', overflow: 'auto', position: 'relative' }, parseFromValuesOrFunc(tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.sx, theme))), children: [loading ? jsx(MRT_TableLoadingOverlay, { table: table }) : null, jsx(MRT_Table, { table: table }), (createModalOpen || editModalOpen) && (jsx(MRT_EditRowModal, { open: true, table: table })), enableCellActions && actionCell && jsx(MRT_CellActionMenu, { table: table })] })));
3822
+ };
3823
+
3824
+ const MRT_LinearProgressBar = (_a) => {
3825
+ var { isTopToolbar, table } = _a, rest = __rest(_a, ["isTopToolbar", "table"]);
3826
+ const { getState, options: { muiLinearProgressProps }, } = table;
3827
+ const { isSaving, showProgressBars } = getState();
3828
+ const linearProgressProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiLinearProgressProps, {
3829
+ isTopToolbar,
3830
+ table,
3831
+ })), rest);
3832
+ return (jsx(Collapse, { in: showProgressBars !== false && (showProgressBars || isSaving), mountOnEnter: true, sx: {
3833
+ bottom: isTopToolbar ? 0 : undefined,
3834
+ position: 'absolute',
3835
+ top: !isTopToolbar ? 0 : undefined,
3836
+ width: '100%',
3837
+ }, unmountOnExit: true, children: jsx(LinearProgress, Object.assign({ "aria-busy": "true", "aria-label": "Loading", sx: { position: 'relative' } }, linearProgressProps)) }));
3838
+ };
3839
+
3840
+ const defaultRowsPerPage = [5, 10, 15, 20, 25, 30, 50, 100];
3841
+ const MRT_TablePagination = (_a) => {
3842
+ var { position = 'bottom', table } = _a, rest = __rest(_a, ["position", "table"]);
3843
+ const theme = useTheme();
3844
+ const isMobile = useMediaQuery('(max-width: 720px)');
3845
+ const { getState, options: { enableToolbarInternalActions, icons: { ChevronLeftIcon, ChevronRightIcon, FirstPageIcon, LastPageIcon }, localization, muiPaginationProps, paginationDisplayMode, }, } = table;
3846
+ const { pagination: { pageIndex = 0, pageSize = 10 }, showGlobalFilter, } = getState();
3847
+ const paginationProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiPaginationProps, {
3848
+ table,
3849
+ })), rest);
3850
+ const totalRowCount = table.getRowCount();
3851
+ const numberOfPages = table.getPageCount();
3852
+ const showFirstLastPageButtons = numberOfPages > 2;
3853
+ const firstRowIndex = pageIndex * pageSize;
3854
+ const lastRowIndex = Math.min(pageIndex * pageSize + pageSize, totalRowCount);
3855
+ 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"]);
3856
+ const disableBack = pageIndex <= 0 || disabled;
3857
+ const disableNext = lastRowIndex >= totalRowCount || disabled;
3858
+ if (isMobile && (SelectProps === null || SelectProps === void 0 ? void 0 : SelectProps.native) !== false) {
3859
+ SelectProps.native = true;
3860
+ }
3861
+ const tooltipProps = getCommonTooltipProps();
3862
+ return (jsxs(Box, { className: "MuiTablePagination-root", sx: {
3863
+ alignItems: 'center',
3864
+ display: 'flex',
3865
+ flexWrap: 'wrap',
3866
+ gap: '8px',
3867
+ justifyContent: { md: 'space-between', sm: 'center' },
3868
+ justifySelf: 'flex-end',
3869
+ mt: position === 'top' &&
3870
+ enableToolbarInternalActions &&
3871
+ !showGlobalFilter
3872
+ ? '3rem'
3873
+ : undefined,
3874
+ position: 'relative',
3875
+ px: '8px',
3876
+ py: '12px',
3877
+ zIndex: 2,
3878
+ }, children: [showRowsPerPage && (jsxs(Box, { sx: { alignItems: 'center', display: 'flex', gap: '8px' }, children: [jsx(InputLabel, { htmlFor: "mrt-rows-per-page", sx: { mb: 0 }, children: localization.rowsPerPage }), jsx(Select, Object.assign({ MenuProps: { disableScrollLock: true }, disableUnderline: true, disabled: disabled, inputProps: {
3879
+ 'aria-label': localization.rowsPerPage,
3880
+ id: 'mrt-rows-per-page',
3881
+ }, label: localization.rowsPerPage, onChange: (event) => table.setPageSize(+event.target.value), sx: { mb: 0 }, value: pageSize, variant: "standard" }, SelectProps, { children: rowsPerPageOptions.map((option) => {
3882
+ var _a;
3883
+ const value = typeof option !== 'number' ? option.value : option;
3884
+ const label = typeof option !== 'number' ? option.label : `${option}`;
3885
+ 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) ? (jsx("option", { value: value, children: label }, value)) : (jsx(MenuItem, { sx: { m: 0 }, value: value, children: label }, value))));
3886
+ }) }))] })), paginationDisplayMode === 'pages' ? (jsx(Pagination, Object.assign({ count: numberOfPages, disabled: disabled, onChange: (_e, newPageIndex) => table.setPageIndex(newPageIndex - 1), page: pageIndex + 1, renderItem: (item) => (jsx(PaginationItem, Object.assign({ slots: {
3887
+ first: FirstPageIcon,
3888
+ last: LastPageIcon,
3889
+ next: ChevronRightIcon,
3890
+ previous: ChevronLeftIcon,
3891
+ } }, item))), showFirstButton: showFirstButton, showLastButton: showLastButton }, restPaginationProps))) : paginationDisplayMode === 'default' ? (jsxs(Fragment, { children: [jsx(Typography, { 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()}` }), jsxs(Box, { gap: "xs", children: [showFirstButton && (jsx(Tooltip, Object.assign({}, tooltipProps, { title: localization.goToFirstPage, children: jsx("span", { children: jsx(IconButton, { "aria-label": localization.goToFirstPage, disabled: disableBack, onClick: () => table.firstPage(), size: "small", children: jsx(FirstPageIcon, Object.assign({}, flipIconStyles(theme))) }) }) }))), jsx(Tooltip, Object.assign({}, tooltipProps, { title: localization.goToPreviousPage, children: jsx("span", { children: jsx(IconButton, { "aria-label": localization.goToPreviousPage, disabled: disableBack, onClick: () => table.previousPage(), size: "small", children: jsx(ChevronLeftIcon, Object.assign({}, flipIconStyles(theme))) }) }) })), jsx(Tooltip, Object.assign({}, tooltipProps, { title: localization.goToNextPage, children: jsx("span", { children: jsx(IconButton, { "aria-label": localization.goToNextPage, disabled: disableNext, onClick: () => table.nextPage(), size: "small", children: jsx(ChevronRightIcon, Object.assign({}, flipIconStyles(theme))) }) }) })), showLastButton && (jsx(Tooltip, Object.assign({}, tooltipProps, { title: localization.goToLastPage, children: jsx("span", { children: jsx(IconButton, { "aria-label": localization.goToLastPage, disabled: disableNext, onClick: () => table.lastPage(), size: "small", children: jsx(LastPageIcon, Object.assign({}, flipIconStyles(theme))) }) }) })))] })] })) : null] }));
3892
+ };
3893
+
3894
+ const MRT_ToolbarDropZone = (_a) => {
3895
+ var _b, _c;
3896
+ var { table } = _a, rest = __rest(_a, ["table"]);
3897
+ const { getState, options: { enableGrouping, localization }, setHoveredColumn, setShowToolbarDropZone, } = table;
3898
+ const { draggingColumn, grouping, hoveredColumn, showToolbarDropZone } = getState();
3899
+ const handleDragEnter = (_event) => {
3900
+ setHoveredColumn({ id: 'drop-zone' });
3901
+ };
3902
+ const handleDragOver = (e) => {
3903
+ e.preventDefault();
3904
+ };
3905
+ useEffect(() => {
3906
+ var _a;
3907
+ if (((_a = table.options.state) === null || _a === void 0 ? void 0 : _a.showToolbarDropZone) !== undefined) {
3908
+ setShowToolbarDropZone(!!enableGrouping &&
3909
+ !!draggingColumn &&
3910
+ draggingColumn.columnDef.enableGrouping !== false &&
3911
+ !grouping.includes(draggingColumn.id));
3912
+ }
3913
+ }, [enableGrouping, draggingColumn, grouping]);
3914
+ return (jsx(Fade, { in: showToolbarDropZone, children: jsx(Box, Object.assign({ className: "Mui-ToolbarDropZone", onDragEnter: handleDragEnter, onDragOver: handleDragOver }, rest, { sx: (theme) => (Object.assign({ alignItems: 'center', backdropFilter: 'blur(4px)', backgroundColor: 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: jsx(Typography, { 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 : '') }) })) }));
3915
+ };
3916
+
3917
+ const MRT_BottomToolbar = (_a) => {
3918
+ var { table } = _a, rest = __rest(_a, ["table"]);
3919
+ const { getState, options: { enablePagination, muiBottomToolbarProps, positionPagination, positionToolbarAlertBanner, positionToolbarDropZone, renderBottomToolbarCustomActions, }, refs: { bottomToolbarRef }, } = table;
3920
+ const { isFullScreen } = getState();
3921
+ const isMobile = useMediaQuery('(max-width:720px)');
3922
+ const toolbarProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiBottomToolbarProps, { table })), rest);
3923
+ const stackAlertBanner = isMobile || !!renderBottomToolbarCustomActions;
3924
+ return (jsxs(Box, Object.assign({}, toolbarProps, { ref: (node) => {
3925
+ if (node) {
3926
+ bottomToolbarRef.current = node;
3927
+ if (toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.ref) {
3928
+ // @ts-ignore
3929
+ toolbarProps.ref.current = node;
3930
+ }
3931
+ }
3932
+ }, sx: (theme) => (Object.assign(Object.assign(Object.assign({}, getCommonToolbarStyles({ table, theme })), { bottom: isFullScreen ? '0' : undefined, boxShadow: `0 1px 2px -1px ${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: [jsx(MRT_LinearProgressBar, { isTopToolbar: false, table: table }), positionToolbarAlertBanner === 'bottom' && (jsx(MRT_ToolbarAlertBanner, { stackAlertBanner: stackAlertBanner, table: table })), ['both', 'bottom'].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : '') && (jsx(MRT_ToolbarDropZone, { table: table })), jsxs(Box, { sx: {
3933
+ alignItems: 'center',
3934
+ boxSizing: 'border-box',
3935
+ display: 'flex',
3936
+ justifyContent: 'space-between',
3937
+ p: '0.5rem',
3938
+ width: '100%',
3939
+ }, children: [renderBottomToolbarCustomActions ? (renderBottomToolbarCustomActions({ table })) : (jsx("span", {})), jsx(Box, { sx: {
3940
+ display: 'flex',
3941
+ justifyContent: 'flex-end',
3942
+ position: stackAlertBanner ? 'relative' : 'absolute',
3943
+ right: 0,
3944
+ top: 0,
3945
+ }, children: enablePagination &&
3946
+ ['both', 'bottom'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (jsx(MRT_TablePagination, { position: "bottom", table: table })) })] })] })));
3947
+ };
3948
+
3949
+ const MRT_ColumnPinningButtons = (_a) => {
3950
+ var { column, table } = _a, rest = __rest(_a, ["column", "table"]);
3951
+ const { options: { icons: { PushPinIcon }, localization, }, } = table;
3952
+ const handlePinColumn = (pinDirection) => {
3953
+ column.pin(pinDirection);
3954
+ };
3955
+ return (jsx(Box, 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() ? (jsx(Tooltip, { title: localization.unpin, children: jsx(IconButton, { onClick: () => handlePinColumn(false), size: "small", children: jsx(PushPinIcon, {}) }) })) : (jsxs(Fragment, { children: [jsx(Tooltip, { title: localization.pinToLeft, children: jsx(IconButton, { onClick: () => handlePinColumn('left'), size: "small", children: jsx(PushPinIcon, { style: {
3956
+ transform: 'rotate(90deg)',
3957
+ } }) }) }), jsx(Tooltip, { title: localization.pinToRight, children: jsx(IconButton, { onClick: () => handlePinColumn('right'), size: "small", children: jsx(PushPinIcon, { style: {
3958
+ transform: 'rotate(-90deg)',
3959
+ } }) }) })] })) })));
3960
+ };
3961
+
3962
+ const MRT_ShowHideColumnsMenuItems = (_a) => {
3963
+ var _b;
3964
+ var { allColumns, column, hoveredColumn, isNestedColumns, setHoveredColumn, table } = _a, rest = __rest(_a, ["allColumns", "column", "hoveredColumn", "isNestedColumns", "setHoveredColumn", "table"]);
3965
+ const { getState, options: { enableColumnOrdering, enableColumnPinning, enableHiding, localization, mrtTheme: { draggingBorderColor }, }, setColumnOrder, } = table;
3966
+ const { columnOrder } = getState();
3967
+ const { columnDef } = column;
3968
+ const { columnDefType } = columnDef;
3969
+ const switchChecked = column.getIsVisible();
3970
+ const handleToggleColumnHidden = (column) => {
3971
+ var _a, _b;
3972
+ if (columnDefType === 'group') {
3973
+ (_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) => {
3974
+ childColumn.toggleVisibility(!switchChecked);
3975
+ });
3976
+ }
3977
+ else {
3978
+ column.toggleVisibility();
3979
+ }
3980
+ };
3981
+ const menuItemRef = useRef(null);
3982
+ const [isDragging, setIsDragging] = useState(false);
3983
+ const handleDragStart = (e) => {
3984
+ setIsDragging(true);
3985
+ try {
3986
+ e.dataTransfer.setDragImage(menuItemRef.current, 0, 0);
3987
+ }
3988
+ catch (e) {
3989
+ console.error(e);
3990
+ }
3991
+ };
3992
+ const handleDragEnd = (_e) => {
3993
+ setIsDragging(false);
3994
+ setHoveredColumn(null);
3995
+ if (hoveredColumn) {
3996
+ setColumnOrder(reorderColumn(column, hoveredColumn, columnOrder));
3997
+ }
3998
+ };
3999
+ const handleDragEnter = (_e) => {
4000
+ if (!isDragging && columnDef.enableColumnOrdering !== false) {
4001
+ setHoveredColumn(column);
4002
+ }
4003
+ };
4004
+ if (!columnDef.header || columnDef.visibleInShowHideMenu === false) {
4005
+ return null;
4006
+ }
4007
+ return (jsxs(Fragment, { children: [jsx(MenuItem, 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
4008
+ ? `2px dashed ${theme.palette.grey[500]}`
4009
+ : (hoveredColumn === null || hoveredColumn === void 0 ? void 0 : hoveredColumn.id) === column.id
4010
+ ? `2px dashed ${draggingBorderColor}`
4011
+ : 'none', outlineOffset: '-2px', pl: `${(column.depth + 0.5) * 2}rem`, py: '6px' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: jsxs(Box, { sx: {
4012
+ display: 'flex',
4013
+ flexWrap: 'nowrap',
4014
+ gap: '8px',
4015
+ }, children: [columnDefType !== 'group' &&
4016
+ enableColumnOrdering &&
4017
+ !isNestedColumns &&
4018
+ (columnDef.enableColumnOrdering !== false ? (jsx(MRT_GrabHandleButton, { onDragEnd: handleDragEnd, onDragStart: handleDragStart, table: table })) : (jsx(Box, { sx: { width: '28px' } }))), enableColumnPinning &&
4019
+ (column.getCanPin() ? (jsx(MRT_ColumnPinningButtons, { column: column, table: table })) : (jsx(Box, { sx: { width: '70px' } }))), enableHiding ? (jsx(FormControlLabel, { checked: switchChecked, componentsProps: {
4020
+ typography: {
4021
+ sx: {
4022
+ mb: 0,
4023
+ opacity: columnDefType !== 'display' ? 1 : 0.5,
4024
+ },
4025
+ },
4026
+ }, control: jsx(Tooltip, Object.assign({}, getCommonTooltipProps(), { title: localization.toggleVisibility, children: jsx(Switch, {}) })), disabled: !column.getCanHide(), label: columnDef.header, onChange: () => handleToggleColumnHidden(column) })) : (jsx(Typography, { sx: { alignSelf: 'center' }, children: columnDef.header }))] }) })), (_b = column.columns) === null || _b === void 0 ? void 0 : _b.map((c, i) => (jsx(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: c, hoveredColumn: hoveredColumn, isNestedColumns: isNestedColumns, setHoveredColumn: setHoveredColumn, table: table }, `${i}-${c.id}`)))] }));
4027
+ };
4028
+
4029
+ const MRT_ShowHideColumnsMenu = (_a) => {
4030
+ var { anchorEl, setAnchorEl, table } = _a, rest = __rest(_a, ["anchorEl", "setAnchorEl", "table"]);
4031
+ const { getAllColumns, getAllLeafColumns, getCenterLeafColumns, getIsAllColumnsVisible, getIsSomeColumnsPinned, getIsSomeColumnsVisible, getLeftLeafColumns, getRightLeafColumns, getState, options: { enableColumnOrdering, enableColumnPinning, enableHiding, localization, mrtTheme: { menuBackgroundColor }, }, } = table;
4032
+ const { columnOrder, columnPinning, density } = getState();
4033
+ const handleToggleAllColumns = (value) => {
4034
+ getAllLeafColumns()
4035
+ .filter((col) => col.columnDef.enableHiding !== false)
4036
+ .forEach((col) => col.toggleVisibility(value));
4037
+ };
4038
+ const allColumns = useMemo(() => {
4039
+ const columns = getAllColumns();
4040
+ if (columnOrder.length > 0 &&
4041
+ !columns.some((col) => col.columnDef.columnDefType === 'group')) {
4042
+ return [
4043
+ ...getLeftLeafColumns(),
4044
+ ...Array.from(new Set(columnOrder)).map((colId) => getCenterLeafColumns().find((col) => (col === null || col === void 0 ? void 0 : col.id) === colId)),
4045
+ ...getRightLeafColumns(),
4046
+ ].filter(Boolean);
4047
+ }
4048
+ return columns;
4049
+ }, [
4050
+ columnOrder,
4051
+ columnPinning,
4052
+ getAllColumns(),
4053
+ getCenterLeafColumns(),
4054
+ getLeftLeafColumns(),
4055
+ getRightLeafColumns(),
4056
+ ]);
4057
+ const isNestedColumns = allColumns.some((col) => col.columnDef.columnDefType === 'group');
4058
+ const [hoveredColumn, setHoveredColumn] = useState(null);
4059
+ return (jsxs(Menu, Object.assign({ MenuListProps: {
4060
+ dense: density === 'compact',
4061
+ sx: {
4062
+ backgroundColor: menuBackgroundColor,
4063
+ },
4064
+ }, anchorEl: anchorEl, disableScrollLock: true, onClose: () => setAnchorEl(null), open: !!anchorEl }, rest, { children: [jsxs(Box, { sx: {
4065
+ display: 'flex',
4066
+ justifyContent: 'space-between',
4067
+ p: '0.5rem',
4068
+ pt: 0,
4069
+ }, children: [enableHiding && (jsx(Button, { disabled: !getIsSomeColumnsVisible(), onClick: () => handleToggleAllColumns(false), children: localization.hideAll })), enableColumnOrdering && (jsx(Button, { onClick: () => table.setColumnOrder(getDefaultColumnOrderIds(table.options, true)), children: localization.resetOrder })), enableColumnPinning && (jsx(Button, { disabled: !getIsSomeColumnsPinned(), onClick: () => table.resetColumnPinning(true), children: localization.unpinAll })), enableHiding && (jsx(Button, { disabled: getIsAllColumnsVisible(), onClick: () => handleToggleAllColumns(true), children: localization.showAll }))] }), jsx(Divider, {}), allColumns.map((column, index) => (jsx(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: column, hoveredColumn: hoveredColumn, isNestedColumns: isNestedColumns, setHoveredColumn: setHoveredColumn, table: table }, `${index}-${column.id}`)))] })));
4070
+ };
4071
+
4072
+ const MRT_ShowHideColumnsButton = (_a) => {
4073
+ var _b;
4074
+ var { table } = _a, rest = __rest(_a, ["table"]);
4075
+ const { options: { icons: { ViewColumnIcon }, localization, }, } = table;
4076
+ const [anchorEl, setAnchorEl] = useState(null);
4077
+ const handleClick = (event) => {
4078
+ setAnchorEl(event.currentTarget);
4079
+ };
4080
+ return (jsxs(Fragment, { children: [jsx(Tooltip, { title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideColumns, children: jsx(IconButton, Object.assign({ "aria-label": localization.showHideColumns, onClick: handleClick }, rest, { title: undefined, children: jsx(ViewColumnIcon, {}) })) }), anchorEl && (jsx(MRT_ShowHideColumnsMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table }))] }));
4081
+ };
4082
+
4083
+ const MRT_ToggleDensePaddingButton = (_a) => {
4084
+ var _b;
4085
+ var { table } = _a, rest = __rest(_a, ["table"]);
4086
+ const { getState, options: { icons: { DensityLargeIcon, DensityMediumIcon, DensitySmallIcon }, localization, }, setDensity, } = table;
4087
+ const { density } = getState();
4088
+ const handleToggleDensePadding = () => {
4089
+ const nextDensity = density === 'comfortable'
4090
+ ? 'compact'
4091
+ : density === 'compact'
4092
+ ? 'spacious'
4093
+ : 'comfortable';
4094
+ setDensity(nextDensity);
4095
+ };
4096
+ return (jsx(Tooltip, { title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleDensity, children: jsx(IconButton, Object.assign({ "aria-label": localization.toggleDensity, onClick: handleToggleDensePadding }, rest, { title: undefined, children: density === 'compact' ? (jsx(DensitySmallIcon, {})) : density === 'comfortable' ? (jsx(DensityMediumIcon, {})) : (jsx(DensityLargeIcon, {})) })) }));
4097
+ };
4098
+
4099
+ const MRT_ToggleFiltersButton = (_a) => {
4100
+ var _b;
4101
+ var { table } = _a, rest = __rest(_a, ["table"]);
4102
+ const { getState, options: { icons: { FilterListIcon, FilterListOffIcon }, localization, }, setShowColumnFilters, } = table;
4103
+ const { showColumnFilters } = getState();
4104
+ const handleToggleShowFilters = () => {
4105
+ setShowColumnFilters(!showColumnFilters);
4106
+ };
4107
+ return (jsx(Tooltip, { title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideFilters, children: jsx(IconButton, Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleShowFilters }, rest, { title: undefined, children: showColumnFilters ? jsx(FilterListOffIcon, {}) : jsx(FilterListIcon, {}) })) }));
4108
+ };
4109
+
4110
+ const MRT_ToggleFullScreenButton = (_a) => {
4111
+ var _b;
4112
+ var { table } = _a, rest = __rest(_a, ["table"]);
4113
+ const { getState, options: { icons: { FullscreenExitIcon, FullscreenIcon }, localization, }, setIsFullScreen, } = table;
4114
+ const { isFullScreen } = getState();
4115
+ const [tooltipOpened, setTooltipOpened] = useState(false);
4116
+ const handleToggleFullScreen = () => {
4117
+ setTooltipOpened(false);
4118
+ setIsFullScreen(!isFullScreen);
4119
+ };
4120
+ return (jsx(Tooltip, { open: tooltipOpened, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleFullScreen, children: jsx(IconButton, Object.assign({ "aria-label": localization.toggleFullScreen, onClick: handleToggleFullScreen, onMouseEnter: () => setTooltipOpened(true), onMouseLeave: () => setTooltipOpened(false) }, rest, { title: undefined, children: isFullScreen ? jsx(FullscreenExitIcon, {}) : jsx(FullscreenIcon, {}) })) }));
4121
+ };
4122
+
4123
+ const MRT_ToggleGlobalFilterButton = (_a) => {
4124
+ var _b, _c;
4125
+ var { table } = _a, rest = __rest(_a, ["table"]);
4126
+ const { getState, options: { icons: { SearchIcon, SearchOffIcon }, localization, }, refs: { searchInputRef }, setShowGlobalFilter, } = table;
4127
+ const { globalFilter, showGlobalFilter } = getState();
4128
+ const handleToggleSearch = () => {
4129
+ setShowGlobalFilter(!showGlobalFilter);
4130
+ queueMicrotask(() => { var _a; return (_a = searchInputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
4131
+ };
4132
+ return (jsx(Tooltip, { title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideSearch, children: jsx(IconButton, Object.assign({ "aria-label": (_c = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _c !== void 0 ? _c : localization.showHideSearch, disabled: !!globalFilter, onClick: handleToggleSearch }, rest, { title: undefined, children: showGlobalFilter ? jsx(SearchOffIcon, {}) : jsx(SearchIcon, {}) })) }));
4133
+ };
4134
+
4135
+ const MRT_ToolbarInternalButtons = (_a) => {
4136
+ var _b;
4137
+ var { table } = _a, rest = __rest(_a, ["table"]);
4138
+ const { options: { columnFilterDisplayMode, enableColumnFilters, enableColumnOrdering, enableColumnPinning, enableDensityToggle, enableFilters, enableFullScreenToggle, enableGlobalFilter, enableHiding, initialState, renderToolbarInternalActions, }, } = table;
4139
+ return (jsx(Box, 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({
4140
+ table,
4141
+ })) !== null && _b !== void 0 ? _b : (jsxs(Fragment, { children: [enableFilters &&
4142
+ enableGlobalFilter &&
4143
+ !(initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) && (jsx(MRT_ToggleGlobalFilterButton, { table: table })), enableFilters &&
4144
+ enableColumnFilters &&
4145
+ columnFilterDisplayMode !== 'popover' && (jsx(MRT_ToggleFiltersButton, { table: table })), (enableHiding || enableColumnOrdering || enableColumnPinning) && (jsx(MRT_ShowHideColumnsButton, { table: table })), enableDensityToggle && (jsx(MRT_ToggleDensePaddingButton, { table: table })), enableFullScreenToggle && (jsx(MRT_ToggleFullScreenButton, { table: table }))] })) })));
4146
+ };
4147
+
4148
+ const MRT_GlobalFilterTextField = (_a) => {
4149
+ var _b;
4150
+ var { table } = _a, rest = __rest(_a, ["table"]);
4151
+ const { getState, options: { enableGlobalFilterModes, icons: { CloseIcon, SearchIcon }, localization, manualFiltering, muiSearchTextFieldProps, }, refs: { searchInputRef }, setGlobalFilter, } = table;
4152
+ const { globalFilter, showGlobalFilter } = getState();
4153
+ const textFieldProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiSearchTextFieldProps, {
4154
+ table,
4155
+ })), rest);
4156
+ const isMounted = useRef(false);
4157
+ const [anchorEl, setAnchorEl] = useState(null);
4158
+ const [searchValue, setSearchValue] = useState(globalFilter !== null && globalFilter !== void 0 ? globalFilter : '');
4159
+ const handleChangeDebounced = useCallback(debounce((event) => {
4160
+ var _a;
4161
+ setGlobalFilter((_a = event.target.value) !== null && _a !== void 0 ? _a : undefined);
4162
+ }, manualFiltering ? 500 : 250), []);
4163
+ const handleChange = (event) => {
4164
+ setSearchValue(event.target.value);
4165
+ handleChangeDebounced(event);
4166
+ };
4167
+ const handleGlobalFilterMenuOpen = (event) => {
4168
+ setAnchorEl(event.currentTarget);
4169
+ };
4170
+ const handleClear = () => {
4171
+ setSearchValue('');
4172
+ setGlobalFilter(undefined);
4173
+ };
4174
+ useEffect(() => {
4175
+ if (isMounted.current) {
4176
+ if (globalFilter === undefined) {
4177
+ handleClear();
4178
+ }
4179
+ else {
4180
+ setSearchValue(globalFilter);
4181
+ }
4182
+ }
4183
+ isMounted.current = true;
4184
+ }, [globalFilter]);
4185
+ return (jsxs(Collapse, { in: showGlobalFilter, mountOnEnter: true, orientation: "horizontal", unmountOnExit: true, children: [jsx(TextField, 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: (jsx(InputAdornment, { position: "end", children: jsx(Tooltip, { title: (_b = localization.clearSearch) !== null && _b !== void 0 ? _b : '', children: jsx("span", { children: jsx(IconButton, { "aria-label": localization.clearSearch, disabled: !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length), onClick: handleClear, size: "small", children: jsx(CloseIcon, {}) }) }) }) })), startAdornment: enableGlobalFilterModes ? (jsx(InputAdornment, { position: "start", children: jsx(Tooltip, { title: localization.changeSearchMode, children: jsx(IconButton, { "aria-label": localization.changeSearchMode, onClick: handleGlobalFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' }, children: jsx(SearchIcon, {}) }) }) })) : (jsx(SearchIcon, { style: { marginRight: '4px' } })) }, textFieldProps.InputProps), { sx: (theme) => {
4186
+ var _a;
4187
+ 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)));
4188
+ } }), inputRef: (inputRef) => {
4189
+ searchInputRef.current = inputRef;
4190
+ if (textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.inputRef) {
4191
+ textFieldProps.inputRef = inputRef;
4192
+ }
4193
+ } })), jsx(MRT_FilterOptionMenu, { anchorEl: anchorEl, onSelect: handleClear, setAnchorEl: setAnchorEl, table: table })] }));
4194
+ };
4195
+
4196
+ const MRT_TopToolbar = ({ table, }) => {
4197
+ var _a;
4198
+ const { getState, options: { enableGlobalFilter, enablePagination, enableToolbarInternalActions, muiTopToolbarProps, positionGlobalFilter, positionPagination, positionToolbarAlertBanner, positionToolbarDropZone, renderTopToolbarCustomActions, }, refs: { topToolbarRef }, } = table;
4199
+ const { isFullScreen, showGlobalFilter } = getState();
4200
+ const isMobile = useMediaQuery('(max-width:720px)');
4201
+ const isTablet = useMediaQuery('(max-width:1024px)');
4202
+ const toolbarProps = parseFromValuesOrFunc(muiTopToolbarProps, { table });
4203
+ const stackAlertBanner = isMobile ||
4204
+ !!renderTopToolbarCustomActions ||
4205
+ (showGlobalFilter && isTablet);
4206
+ const globalFilterProps = {
4207
+ sx: !isTablet
4208
+ ? {
4209
+ zIndex: 2,
4210
+ }
4211
+ : undefined,
4212
+ table,
4213
+ };
4214
+ return (jsxs(Box, Object.assign({}, toolbarProps, { ref: (ref) => {
4215
+ topToolbarRef.current = ref;
4216
+ if (toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.ref) {
4217
+ // @ts-ignore
4218
+ toolbarProps.ref.current = ref;
4219
+ }
4220
+ }, 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' && (jsx(MRT_ToolbarAlertBanner, { stackAlertBanner: stackAlertBanner, table: table })), ['both', 'top'].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : '') && (jsx(MRT_ToolbarDropZone, { table: table })), jsxs(Box, { sx: {
4221
+ alignItems: 'flex-start',
4222
+ boxSizing: 'border-box',
4223
+ display: 'flex',
4224
+ gap: '0.5rem',
4225
+ justifyContent: 'space-between',
4226
+ p: '0.5rem',
4227
+ position: stackAlertBanner ? 'relative' : 'absolute',
4228
+ right: 0,
4229
+ top: 0,
4230
+ width: '100%',
4231
+ }, children: [enableGlobalFilter && positionGlobalFilter === 'left' && (jsx(MRT_GlobalFilterTextField, Object.assign({}, globalFilterProps))), (_a = renderTopToolbarCustomActions === null || renderTopToolbarCustomActions === void 0 ? void 0 : renderTopToolbarCustomActions({ table })) !== null && _a !== void 0 ? _a : jsx("span", {}), enableToolbarInternalActions ? (jsxs(Box, { sx: {
4232
+ alignItems: 'center',
4233
+ display: 'flex',
4234
+ flexWrap: 'wrap-reverse',
4235
+ gap: '0.5rem',
4236
+ justifyContent: 'flex-end',
4237
+ }, children: [enableGlobalFilter && positionGlobalFilter === 'right' && (jsx(MRT_GlobalFilterTextField, Object.assign({}, globalFilterProps))), jsx(MRT_ToolbarInternalButtons, { table: table })] })) : (enableGlobalFilter &&
4238
+ positionGlobalFilter === 'right' && (jsx(MRT_GlobalFilterTextField, Object.assign({}, globalFilterProps))))] }), enablePagination &&
4239
+ ['both', 'top'].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : '') && (jsx(MRT_TablePagination, { position: "top", table: table })), jsx(MRT_LinearProgressBar, { isTopToolbar: true, table: table })] })));
4240
+ };
4241
+
4242
+ const MRT_TablePaper = (_a) => {
4243
+ var _b, _c;
4244
+ var { table } = _a, rest = __rest(_a, ["table"]);
4245
+ const { getState, options: { enableBottomToolbar, enableTopToolbar, mrtTheme: { baseBackgroundColor }, muiTablePaperProps, renderBottomToolbar, renderTopToolbar, }, refs: { tablePaperRef }, } = table;
4246
+ const { isFullScreen } = getState();
4247
+ const paperProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTablePaperProps, { table })), rest);
4248
+ const theme = useTheme$1();
4249
+ return (jsxs(Paper, Object.assign({ elevation: 2 }, paperProps, { ref: (ref) => {
4250
+ tablePaperRef.current = ref;
4251
+ if (paperProps === null || paperProps === void 0 ? void 0 : paperProps.ref) {
4252
+ //@ts-ignore
4253
+ paperProps.ref.current = ref;
4254
+ }
4255
+ }, style: Object.assign(Object.assign({}, (isFullScreen
4256
+ ? {
4257
+ bottom: 0,
4258
+ height: '100dvh',
4259
+ left: 0,
4260
+ margin: 0,
4261
+ maxHeight: '100dvh',
4262
+ maxWidth: '100dvw',
4263
+ padding: 0,
4264
+ position: 'fixed',
4265
+ right: 0,
4266
+ top: 0,
4267
+ width: '100dvw',
4268
+ zIndex: theme.zIndex.modal,
4269
+ }
4270
+ : {})), 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 &&
4271
+ ((_b = parseFromValuesOrFunc(renderTopToolbar, { table })) !== null && _b !== void 0 ? _b : (jsx(MRT_TopToolbar, { table: table }))), jsx(MRT_TableContainer, { table: table }), enableBottomToolbar &&
4272
+ ((_c = parseFromValuesOrFunc(renderBottomToolbar, { table })) !== null && _c !== void 0 ? _c : (jsx(MRT_BottomToolbar, { table: table })))] })));
4273
+ };
4274
+
4275
+ const isTableInstanceProp = (props) => props.table !== undefined;
4276
+ const MaterialReactTable = (props) => {
4277
+ let table;
4278
+ if (isTableInstanceProp(props)) {
4279
+ table = props.table;
4280
+ }
4281
+ else {
4282
+ table = useMaterialReactTable(props);
4283
+ }
4284
+ return jsx(MRT_TablePaper, { table: table });
4285
+ };
4286
+
4287
+ export { MRT_ActionMenuItem, MRT_AggregationFns, MRT_BottomToolbar, MRT_ColumnActionMenu, MRT_ColumnPinningButtons, MRT_CopyButton, MRT_DefaultColumn, MRT_DefaultDisplayColumn, MRT_EditActionButtons, MRT_EditCellTextField, MRT_EditRowModal, MRT_ExpandAllButton, MRT_ExpandButton, MRT_FilterCheckbox, MRT_FilterFns, MRT_FilterOptionMenu, MRT_FilterRangeFields, MRT_FilterRangeSlider, MRT_FilterTextField, MRT_GlobalFilterTextField, MRT_GrabHandleButton, MRT_LinearProgressBar, MRT_RowActionMenu, MRT_RowPinButton, MRT_SelectCheckbox, MRT_ShowHideColumnsButton, MRT_ShowHideColumnsMenu, MRT_ShowHideColumnsMenuItems, MRT_SortingFns, MRT_Table, MRT_TableBody, MRT_TableBodyCell, MRT_TableBodyCellValue, MRT_TableBodyRow, MRT_TableBodyRowGrabHandle, MRT_TableBodyRowPinButton, MRT_TableContainer, MRT_TableDetailPanel, MRT_TableFooter, MRT_TableFooterCell, MRT_TableFooterRow, MRT_TableHead, MRT_TableHeadCell, MRT_TableHeadCellColumnActionsButton, MRT_TableHeadCellFilterContainer, MRT_TableHeadCellFilterLabel, MRT_TableHeadCellGrabHandle, MRT_TableHeadCellResizeHandle, MRT_TableHeadCellSortLabel, MRT_TableHeadRow, MRT_TableLoadingOverlay, MRT_TablePagination, MRT_TablePaper, MRT_ToggleDensePaddingButton, MRT_ToggleFiltersButton, MRT_ToggleFullScreenButton, MRT_ToggleGlobalFilterButton, MRT_ToggleRowActionMenuButton, MRT_ToolbarAlertBanner, MRT_ToolbarDropZone, MRT_ToolbarInternalButtons, MRT_TopToolbar, MaterialReactTable, Memo_MRT_TableBody, Memo_MRT_TableBodyCell, Memo_MRT_TableBodyRow, cellKeyboardShortcuts, createMRTColumnHelper, createRow, defaultDisplayColumnProps, flexRender, getAllLeafColumnDefs, getCanRankRows, getColumnFilterInfo, getColumnId, getDefaultColumnFilterFn, getDefaultColumnOrderIds, getIsRankingRows, getIsRowSelected, getLeadingDisplayColumnIds, getMRT_RowSelectionHandler, getMRT_Rows, getMRT_SelectAllHandler, getTrailingDisplayColumnIds, isCellEditable, mrtFilterOptions, openEditingCell, prepareColumns, rankGlobalFuzzy, reorderColumn, showRowActionsColumn, showRowDragColumn, showRowExpandColumn, showRowNumbersColumn, showRowPinningColumn, showRowSelectionColumn, showRowSpacerColumn, useDropdownOptions, useMRT_ColumnVirtualizer, useMRT_Effects, useMRT_RowVirtualizer, useMRT_Rows, useMRT_TableInstance, useMRT_TableOptions, useMaterialReactTable };
4288
+ //# sourceMappingURL=index.esm.js.map