fastapi-rtk 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (936) hide show
  1. package/dist/constants/cjs/index.cjs +37 -0
  2. package/dist/constants/esm/index.mjs +37 -0
  3. package/dist/core/cjs/ActionIcons/Actions.cjs +28 -0
  4. package/dist/core/cjs/ActionIcons/Add/Add.cjs +15 -0
  5. package/dist/core/cjs/ActionIcons/Add/AddDialog.cjs +60 -0
  6. package/dist/core/cjs/ActionIcons/Delete/Delete.cjs +28 -0
  7. package/dist/core/cjs/ActionIcons/Download/Download.cjs +125 -0
  8. package/dist/core/cjs/ActionIcons/Edit/Edit.cjs +34 -0
  9. package/dist/core/cjs/ActionIcons/Edit/EditDialog.cjs +71 -0
  10. package/dist/core/cjs/ActionIcons/Modals/CommonModal.cjs +96 -0
  11. package/dist/core/cjs/ActionIcons/Modals/normalProps.cjs +17 -0
  12. package/dist/core/cjs/ActionIcons/Modals/overlayProps.cjs +25 -0
  13. package/dist/core/cjs/ActionIcons/Refresh/Refresh.cjs +24 -0
  14. package/dist/core/cjs/ActionIcons/Upload/Upload.cjs +95 -0
  15. package/dist/core/cjs/ActionIcons/View/RelationPanel.cjs +17 -0
  16. package/dist/core/cjs/ActionIcons/View/View.cjs +38 -0
  17. package/dist/core/cjs/ActionIcons/View/ViewDialog.cjs +55 -0
  18. package/dist/core/cjs/ActionIcons/utils/convertToFormInputs.cjs +27 -0
  19. package/dist/core/cjs/Dialogs/AlertDialog/AlertDialog.cjs +25 -0
  20. package/dist/core/cjs/Menu/UserMenu/UserMenu.cjs +71 -0
  21. package/dist/core/cjs/Menu/UserMenu/user.module.css.cjs +11 -0
  22. package/dist/core/cjs/Tables/DataGrid/DataGrid.cjs +94 -0
  23. package/dist/core/cjs/Tables/DataGrid/ErrorDialog.cjs +23 -0
  24. package/dist/core/cjs/Tables/DataGrid/FormField/FormField.cjs +90 -0
  25. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormDatePicker.cjs +21 -0
  26. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormDateTimePicker.cjs +21 -0
  27. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormGeometryField.cjs +18 -0
  28. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormJsonField.cjs +45 -0
  29. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormRelatedListSelect.cjs +11 -0
  30. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormRelatedSelect.cjs +31 -0
  31. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormSelect.cjs +17 -0
  32. package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormTextField.cjs +14 -0
  33. package/dist/core/cjs/Tables/DataGrid/Main/Body/Body.cjs +95 -0
  34. package/dist/core/cjs/Tables/DataGrid/Main/Body/Field/Field.cjs +37 -0
  35. package/dist/core/cjs/Tables/DataGrid/Main/Body/Field/Field.module.css.cjs +14 -0
  36. package/dist/core/cjs/Tables/DataGrid/Main/Body/Row/Row.cjs +21 -0
  37. package/dist/core/cjs/Tables/DataGrid/Main/Body/Row/Row.module.css.cjs +11 -0
  38. package/dist/core/cjs/Tables/DataGrid/Main/Header/FieldTitle/FieldTitle.cjs +74 -0
  39. package/dist/core/cjs/Tables/DataGrid/Main/Header/FieldTitle/FieldTitle.module.css.cjs +14 -0
  40. package/dist/core/cjs/Tables/DataGrid/Main/Header/Header.cjs +37 -0
  41. package/dist/core/cjs/Tables/DataGrid/Main/Main.cjs +88 -0
  42. package/dist/core/cjs/Tables/DataGrid/Main/Main.module.css.cjs +8 -0
  43. package/dist/core/cjs/Tables/DataGrid/Pagination/Pagination.cjs +104 -0
  44. package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/Filter.cjs +33 -0
  45. package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +138 -0
  46. package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FormFilterField.cjs +16 -0
  47. package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FormFilterIn.cjs +63 -0
  48. package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FormOperatorField.cjs +16 -0
  49. package/dist/core/cjs/Tables/DataGrid/Toolbar/Toolbar.cjs +30 -0
  50. package/dist/core/cjs/Tables/NextGenDataGrid/FallbackWrapper.cjs +14 -0
  51. package/dist/core/cjs/Tables/NextGenDataGrid/NextGenDataGrid.cjs +216 -0
  52. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useActions.cjs +30 -0
  53. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useCheckbox.cjs +6 -0
  54. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/AdvancedFilters.cjs +80 -0
  55. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/AdvancedFiltersMenu.cjs +18 -0
  56. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/BasicFilters.cjs +23 -0
  57. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/ColumnHeaderFilter.cjs +273 -0
  58. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInput.cjs +16 -0
  59. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderBetweenInput.cjs +71 -0
  60. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderBooleanInput.cjs +28 -0
  61. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderDateInput.cjs +44 -0
  62. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderMultiSelectInput.cjs +28 -0
  63. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderSelectInput.cjs +8 -0
  64. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderTagsInput.cjs +21 -0
  65. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderTagsNumberInput.cjs +29 -0
  66. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderTextInput.cjs +8 -0
  67. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/headerinput.module.css.cjs +9 -0
  68. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/FilterMenu.cjs +17 -0
  69. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/MultiLineHighlight.cjs +13 -0
  70. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/useColumns.cjs +134 -0
  71. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/utils.cjs +73 -0
  72. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useData.cjs +12 -0
  73. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useEvent.cjs +19 -0
  74. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useFilters.cjs +18 -0
  75. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useGlobalFilter.cjs +30 -0
  76. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/usePagination.cjs +44 -0
  77. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useQueryParams.cjs +43 -0
  78. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useSize.cjs +33 -0
  79. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useSorting.cjs +35 -0
  80. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.cjs +22 -0
  81. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.cjs +101 -0
  82. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/FASTAPI_RTK_ToolbarAlertBanner.cjs +113 -0
  83. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/FASTAPI_RTK_ToolbarAlertBanner.module.css.cjs +6 -0
  84. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/useToolbarAlertBanner.cjs +11 -0
  85. package/dist/core/cjs/Tables/NextGenDataGrid/utils.cjs +23 -0
  86. package/dist/core/cjs/Wrappers/ApiProvider/ApiProvider.cjs +51 -0
  87. package/dist/core/cjs/Wrappers/ApiProvider/Contexts/ApiContext.cjs +42 -0
  88. package/dist/core/cjs/Wrappers/ApiProvider/Contexts/BulkActionsContext.cjs +13 -0
  89. package/dist/core/cjs/Wrappers/ApiProvider/Contexts/FormContext.cjs +28 -0
  90. package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +307 -0
  91. package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideBulk.cjs +30 -0
  92. package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideForm.cjs +22 -0
  93. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/createItem.cjs +14 -0
  94. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/deleteItem.cjs +10 -0
  95. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/downloadItems.cjs +40 -0
  96. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getInfo.cjs +13 -0
  97. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getItem.cjs +10 -0
  98. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/getItems.cjs +10 -0
  99. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/updateItem.cjs +10 -0
  100. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/uploadItems.cjs +27 -0
  101. package/dist/core/cjs/Wrappers/ApiProvider/utils/api/utils/parseResponse.cjs +19 -0
  102. package/dist/core/cjs/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.cjs +26 -0
  103. package/dist/core/cjs/Wrappers/ApiProvider/utils/convertId.cjs +12 -0
  104. package/dist/core/cjs/Wrappers/ApiProvider/utils/convertInfo.cjs +20 -0
  105. package/dist/core/cjs/Wrappers/ApiProvider/utils/createQueryParams.cjs +18 -0
  106. package/dist/core/cjs/Wrappers/ApiProvider/utils/getDefaultValues.cjs +28 -0
  107. package/dist/core/cjs/Wrappers/ApiProvider/utils/getValidationSchema.cjs +38 -0
  108. package/dist/core/cjs/Wrappers/InfiniteScroll/InfiniteScroll.cjs +32 -0
  109. package/dist/core/cjs/Wrappers/LazyLoadWrapper/LazyLoadWrapper.cjs +8 -0
  110. package/dist/core/cjs/Wrappers/Provider/Contexts/AuthContext.cjs +21 -0
  111. package/dist/core/cjs/Wrappers/Provider/Contexts/InfoContext.cjs +16 -0
  112. package/dist/core/cjs/Wrappers/Provider/Provider.cjs +25 -0
  113. package/dist/core/cjs/Wrappers/Provider/hooks/useProvideAuth.cjs +58 -0
  114. package/dist/core/cjs/Wrappers/Provider/hooks/useProvideInfo.cjs +19 -0
  115. package/dist/core/cjs/Wrappers/Provider/utils/authFetch.cjs +98 -0
  116. package/dist/core/cjs/Wrappers/Provider/utils/userCRUD.cjs +32 -0
  117. package/dist/core/cjs/_virtual/_commonjsHelpers.cjs +6 -0
  118. package/dist/core/cjs/_virtual/index.cjs +5 -0
  119. package/dist/core/cjs/_virtual/index2.cjs +5 -0
  120. package/dist/core/cjs/_virtual/index3.cjs +6 -0
  121. package/dist/core/cjs/_virtual/index4.cjs +4 -0
  122. package/dist/core/cjs/hooks/api/useApi.cjs +12 -0
  123. package/dist/core/cjs/hooks/api/useBulkActions.cjs +12 -0
  124. package/dist/core/cjs/hooks/api/useForms.cjs +12 -0
  125. package/dist/core/cjs/hooks/auth/useAuth.cjs +8 -0
  126. package/dist/core/cjs/hooks/auth/useInfo.cjs +8 -0
  127. package/dist/core/cjs/index.cjs +42 -0
  128. package/dist/core/esm/ActionIcons/Actions.mjs +28 -0
  129. package/dist/core/esm/ActionIcons/Add/Add.mjs +15 -0
  130. package/dist/core/esm/ActionIcons/Add/AddDialog.mjs +60 -0
  131. package/dist/core/esm/ActionIcons/Delete/Delete.mjs +28 -0
  132. package/dist/core/esm/ActionIcons/Download/Download.mjs +125 -0
  133. package/dist/core/esm/ActionIcons/Edit/Edit.mjs +34 -0
  134. package/dist/core/esm/ActionIcons/Edit/EditDialog.mjs +71 -0
  135. package/dist/core/esm/ActionIcons/Modals/CommonModal.mjs +96 -0
  136. package/dist/core/esm/ActionIcons/Modals/normalProps.mjs +17 -0
  137. package/dist/core/esm/ActionIcons/Modals/overlayProps.mjs +25 -0
  138. package/dist/core/esm/ActionIcons/Refresh/Refresh.mjs +24 -0
  139. package/dist/core/esm/ActionIcons/Upload/Upload.mjs +95 -0
  140. package/dist/core/esm/ActionIcons/View/RelationPanel.mjs +18 -0
  141. package/dist/core/esm/ActionIcons/View/View.mjs +38 -0
  142. package/dist/core/esm/ActionIcons/View/ViewDialog.mjs +55 -0
  143. package/dist/core/esm/ActionIcons/utils/convertToFormInputs.mjs +27 -0
  144. package/dist/core/esm/Dialogs/AlertDialog/AlertDialog.mjs +25 -0
  145. package/dist/core/esm/Menu/UserMenu/UserMenu.mjs +71 -0
  146. package/dist/core/esm/Menu/UserMenu/user.module.css.mjs +11 -0
  147. package/dist/core/esm/Tables/DataGrid/DataGrid.mjs +94 -0
  148. package/dist/core/esm/Tables/DataGrid/ErrorDialog.mjs +23 -0
  149. package/dist/core/esm/Tables/DataGrid/FormField/FormField.mjs +90 -0
  150. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormDatePicker.mjs +21 -0
  151. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormDateTimePicker.mjs +21 -0
  152. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormGeometryField.mjs +18 -0
  153. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormJsonField.mjs +45 -0
  154. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormRelatedListSelect.mjs +11 -0
  155. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormRelatedSelect.mjs +31 -0
  156. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormSelect.mjs +17 -0
  157. package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormTextField.mjs +14 -0
  158. package/dist/core/esm/Tables/DataGrid/Main/Body/Body.mjs +95 -0
  159. package/dist/core/esm/Tables/DataGrid/Main/Body/Field/Field.mjs +37 -0
  160. package/dist/core/esm/Tables/DataGrid/Main/Body/Field/Field.module.css.mjs +14 -0
  161. package/dist/core/esm/Tables/DataGrid/Main/Body/Row/Row.mjs +21 -0
  162. package/dist/core/esm/Tables/DataGrid/Main/Body/Row/Row.module.css.mjs +11 -0
  163. package/dist/core/esm/Tables/DataGrid/Main/Header/FieldTitle/FieldTitle.mjs +74 -0
  164. package/dist/core/esm/Tables/DataGrid/Main/Header/FieldTitle/FieldTitle.module.css.mjs +14 -0
  165. package/dist/core/esm/Tables/DataGrid/Main/Header/Header.mjs +37 -0
  166. package/dist/core/esm/Tables/DataGrid/Main/Main.mjs +88 -0
  167. package/dist/core/esm/Tables/DataGrid/Main/Main.module.css.mjs +8 -0
  168. package/dist/core/esm/Tables/DataGrid/Pagination/Pagination.mjs +104 -0
  169. package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/Filter.mjs +33 -0
  170. package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +138 -0
  171. package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FormFilterField.mjs +17 -0
  172. package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FormFilterIn.mjs +63 -0
  173. package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FormOperatorField.mjs +17 -0
  174. package/dist/core/esm/Tables/DataGrid/Toolbar/Toolbar.mjs +30 -0
  175. package/dist/core/esm/Tables/NextGenDataGrid/FallbackWrapper.mjs +14 -0
  176. package/dist/core/esm/Tables/NextGenDataGrid/NextGenDataGrid.mjs +216 -0
  177. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useActions.mjs +30 -0
  178. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useCheckbox.mjs +6 -0
  179. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/AdvancedFilters.mjs +80 -0
  180. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/AdvancedFiltersMenu.mjs +18 -0
  181. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/BasicFilters.mjs +23 -0
  182. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/ColumnHeaderFilter.mjs +273 -0
  183. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInput.mjs +16 -0
  184. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderBetweenInput.mjs +71 -0
  185. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderBooleanInput.mjs +28 -0
  186. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderDateInput.mjs +44 -0
  187. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderMultiSelectInput.mjs +28 -0
  188. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderSelectInput.mjs +8 -0
  189. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderTagsInput.mjs +21 -0
  190. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderTagsNumberInput.mjs +29 -0
  191. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/HeaderInputs/HeaderTextInput.mjs +8 -0
  192. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilter/headerinput.module.css.mjs +9 -0
  193. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/FilterMenu.mjs +17 -0
  194. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/MultiLineHighlight.mjs +13 -0
  195. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/useColumns.mjs +134 -0
  196. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/utils.mjs +73 -0
  197. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useData.mjs +12 -0
  198. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useEvent.mjs +19 -0
  199. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useFilters.mjs +18 -0
  200. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useGlobalFilter.mjs +30 -0
  201. package/dist/core/esm/Tables/NextGenDataGrid/hooks/usePagination.mjs +44 -0
  202. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useQueryParams.mjs +43 -0
  203. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useSize.mjs +33 -0
  204. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useSorting.mjs +35 -0
  205. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.mjs +22 -0
  206. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.mjs +101 -0
  207. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/FASTAPI_RTK_ToolbarAlertBanner.mjs +113 -0
  208. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/FASTAPI_RTK_ToolbarAlertBanner.module.css.mjs +7 -0
  209. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbarAlertBanner/useToolbarAlertBanner.mjs +11 -0
  210. package/dist/core/esm/Tables/NextGenDataGrid/utils.mjs +23 -0
  211. package/dist/core/esm/Wrappers/ApiProvider/ApiProvider.mjs +51 -0
  212. package/dist/core/esm/Wrappers/ApiProvider/Contexts/ApiContext.mjs +42 -0
  213. package/dist/core/esm/Wrappers/ApiProvider/Contexts/BulkActionsContext.mjs +13 -0
  214. package/dist/core/esm/Wrappers/ApiProvider/Contexts/FormContext.mjs +28 -0
  215. package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +307 -0
  216. package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideBulk.mjs +30 -0
  217. package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideForm.mjs +22 -0
  218. package/dist/core/esm/Wrappers/ApiProvider/utils/api/createItem.mjs +14 -0
  219. package/dist/core/esm/Wrappers/ApiProvider/utils/api/deleteItem.mjs +10 -0
  220. package/dist/core/esm/Wrappers/ApiProvider/utils/api/downloadItems.mjs +40 -0
  221. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getInfo.mjs +13 -0
  222. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItem.mjs +10 -0
  223. package/dist/core/esm/Wrappers/ApiProvider/utils/api/getItems.mjs +10 -0
  224. package/dist/core/esm/Wrappers/ApiProvider/utils/api/updateItem.mjs +10 -0
  225. package/dist/core/esm/Wrappers/ApiProvider/utils/api/uploadItems.mjs +27 -0
  226. package/dist/core/esm/Wrappers/ApiProvider/utils/api/utils/parseResponse.mjs +19 -0
  227. package/dist/core/esm/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.mjs +26 -0
  228. package/dist/core/esm/Wrappers/ApiProvider/utils/convertId.mjs +12 -0
  229. package/dist/core/esm/Wrappers/ApiProvider/utils/convertInfo.mjs +20 -0
  230. package/dist/core/esm/Wrappers/ApiProvider/utils/createQueryParams.mjs +18 -0
  231. package/dist/core/esm/Wrappers/ApiProvider/utils/getDefaultValues.mjs +28 -0
  232. package/dist/core/esm/Wrappers/ApiProvider/utils/getValidationSchema.mjs +39 -0
  233. package/dist/core/esm/Wrappers/InfiniteScroll/InfiniteScroll.mjs +32 -0
  234. package/dist/core/esm/Wrappers/LazyLoadWrapper/LazyLoadWrapper.mjs +8 -0
  235. package/dist/core/esm/Wrappers/Provider/Contexts/AuthContext.mjs +21 -0
  236. package/dist/core/esm/Wrappers/Provider/Contexts/InfoContext.mjs +16 -0
  237. package/dist/core/esm/Wrappers/Provider/Provider.mjs +25 -0
  238. package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +58 -0
  239. package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +19 -0
  240. package/dist/core/esm/Wrappers/Provider/utils/authFetch.mjs +98 -0
  241. package/dist/core/esm/Wrappers/Provider/utils/userCRUD.mjs +32 -0
  242. package/dist/core/esm/_virtual/_commonjsHelpers.mjs +6 -0
  243. package/dist/core/esm/_virtual/index.mjs +5 -0
  244. package/dist/core/esm/_virtual/index2.mjs +5 -0
  245. package/dist/core/esm/_virtual/index3.mjs +7 -0
  246. package/dist/core/esm/_virtual/index4.mjs +4 -0
  247. package/dist/core/esm/hooks/api/useApi.mjs +12 -0
  248. package/dist/core/esm/hooks/api/useBulkActions.mjs +12 -0
  249. package/dist/core/esm/hooks/api/useForms.mjs +12 -0
  250. package/dist/core/esm/hooks/auth/useAuth.mjs +8 -0
  251. package/dist/core/esm/hooks/auth/useInfo.mjs +8 -0
  252. package/dist/core/esm/index.mjs +42 -0
  253. package/dist/core/style.css +1511 -0
  254. package/dist/external/cjs/@iconify_react@6.0.0_react@18.3.1/node_modules/@iconify/react/dist/iconify.cjs +1690 -0
  255. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/createReactComponent.cjs +36 -0
  256. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.cjs +29 -0
  257. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.cjs +10 -0
  258. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAppWindow.cjs +10 -0
  259. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowAutofitContent.cjs +10 -0
  260. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDown.cjs +10 -0
  261. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowUp.cjs +10 -0
  262. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsSort.cjs +10 -0
  263. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensityLarge.cjs +10 -0
  264. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensityMedium.cjs +10 -0
  265. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensitySmall.cjs +10 -0
  266. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.cjs +10 -0
  267. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.cjs +10 -0
  268. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.cjs +10 -0
  269. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeftPipe.cjs +10 -0
  270. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.cjs +10 -0
  271. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRightPipe.cjs +10 -0
  272. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronUp.cjs +10 -0
  273. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronsDown.cjs +10 -0
  274. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.cjs +10 -0
  275. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconClearAll.cjs +10 -0
  276. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconColumns.cjs +10 -0
  277. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceFloppy.cjs +10 -0
  278. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.cjs +10 -0
  279. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDotsVertical.cjs +10 -0
  280. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDownload.cjs +10 -0
  281. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.cjs +10 -0
  282. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconExclamationCircle.cjs +10 -0
  283. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconEye.cjs +10 -0
  284. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconEyeOff.cjs +10 -0
  285. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFileTypeCsv.cjs +10 -0
  286. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilter.cjs +10 -0
  287. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilterCog.cjs +10 -0
  288. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilterOff.cjs +10 -0
  289. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconGripHorizontal.cjs +10 -0
  290. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconIdBadge2.cjs +10 -0
  291. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.cjs +10 -0
  292. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.cjs +10 -0
  293. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLogout.cjs +10 -0
  294. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconMaximize.cjs +10 -0
  295. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconMinimize.cjs +10 -0
  296. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPencil.cjs +10 -0
  297. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPinned.cjs +10 -0
  298. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPinnedOff.cjs +10 -0
  299. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.cjs +10 -0
  300. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconQuote.cjs +10 -0
  301. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconRefresh.cjs +10 -0
  302. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.cjs +10 -0
  303. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearchOff.cjs +10 -0
  304. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSeparatorVertical.cjs +10 -0
  305. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSortAscending.cjs +10 -0
  306. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSortDescending.cjs +10 -0
  307. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.cjs +10 -0
  308. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconUpload.cjs +10 -0
  309. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconUsers.cjs +10 -0
  310. package/dist/external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconX.cjs +10 -0
  311. package/dist/external/cjs/@tanstack_match-sorter-utils@8.19.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.cjs +617 -0
  312. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/focusManager.cjs +77 -0
  313. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +113 -0
  314. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/mutation.cjs +254 -0
  315. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/mutationCache.cjs +139 -0
  316. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/notifyManager.cjs +83 -0
  317. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/onlineManager.cjs +66 -0
  318. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/query.cjs +397 -0
  319. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/queryCache.cjs +103 -0
  320. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/queryClient.cjs +314 -0
  321. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/queryObserver.cjs +454 -0
  322. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/removable.cjs +40 -0
  323. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/retryer.cjs +139 -0
  324. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/subscribable.cjs +24 -0
  325. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/thenable.cjs +34 -0
  326. package/dist/external/cjs/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/utils.cjs +244 -0
  327. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs +46 -0
  328. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +38 -0
  329. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +45 -0
  330. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/isRestoring.cjs +24 -0
  331. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/suspense.cjs +20 -0
  332. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs +112 -0
  333. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/useQuery.cjs +8 -0
  334. package/dist/external/cjs/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/utils.cjs +12 -0
  335. package/dist/external/cjs/@tanstack_react-table@8.20.5_react-dom@18.3.1_react@18.3.1/node_modules/@tanstack/react-table/build/lib/index.cjs +111 -0
  336. package/dist/external/cjs/@tanstack_react-virtual@3.11.2_react-dom@18.3.1_react@18.3.1/node_modules/@tanstack/react-virtual/dist/esm/index.cjs +65 -0
  337. package/dist/external/cjs/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.cjs +3155 -0
  338. package/dist/external/cjs/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/index.cjs +688 -0
  339. package/dist/external/cjs/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/utils.cjs +64 -0
  340. package/dist/external/cjs/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs +17 -0
  341. package/dist/external/cjs/dompurify@3.2.5/node_modules/dompurify/dist/purify.es.cjs +967 -0
  342. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_DataView.cjs +15 -0
  343. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_Hash.cjs +30 -0
  344. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_ListCache.cjs +30 -0
  345. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_Map.cjs +15 -0
  346. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_MapCache.cjs +30 -0
  347. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_Promise.cjs +15 -0
  348. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_Set.cjs +15 -0
  349. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_SetCache.cjs +24 -0
  350. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_Stack.cjs +27 -0
  351. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_Symbol.cjs +14 -0
  352. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_Uint8Array.cjs +14 -0
  353. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_WeakMap.cjs +15 -0
  354. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_apply.cjs +24 -0
  355. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_arrayIncludes.cjs +17 -0
  356. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.cjs +20 -0
  357. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.cjs +33 -0
  358. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_arrayMap.cjs +18 -0
  359. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_arrayPush.cjs +18 -0
  360. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_arrayReduce.cjs +21 -0
  361. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_asciiToArray.cjs +14 -0
  362. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_asciiWords.cjs +15 -0
  363. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_assignMergeValue.cjs +19 -0
  364. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_assignValue.cjs +22 -0
  365. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_assocIndexOf.cjs +22 -0
  366. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseAssignValue.cjs +25 -0
  367. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseCreate.cjs +30 -0
  368. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseFindIndex.cjs +20 -0
  369. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseFlatten.cjs +32 -0
  370. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseFor.cjs +14 -0
  371. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseGetTag.cjs +23 -0
  372. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseIndexOf.cjs +18 -0
  373. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseIsArguments.cjs +18 -0
  374. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseIsNaN.cjs +14 -0
  375. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseIsNative.cjs +31 -0
  376. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.cjs +23 -0
  377. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseKeys.cjs +28 -0
  378. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseKeysIn.cjs +29 -0
  379. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseMerge.cjs +36 -0
  380. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.cjs +70 -0
  381. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_basePropertyOf.cjs +16 -0
  382. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseRange.cjs +20 -0
  383. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseRest.cjs +18 -0
  384. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseSetToString.cjs +23 -0
  385. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseSlice.cjs +28 -0
  386. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseTimes.cjs +18 -0
  387. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseToString.cjs +30 -0
  388. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseTrim.cjs +17 -0
  389. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseUnary.cjs +16 -0
  390. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_baseUniq.cjs +59 -0
  391. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_cacheHas.cjs +14 -0
  392. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_castSlice.cjs +18 -0
  393. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.cjs +18 -0
  394. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_cloneBuffer.cjs +28 -0
  395. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.cjs +17 -0
  396. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_copyArray.cjs +19 -0
  397. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_copyObject.cjs +32 -0
  398. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_coreJsData.cjs +14 -0
  399. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_createAssigner.cjs +32 -0
  400. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_createBaseFor.cjs +23 -0
  401. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_createCaseFirst.cjs +25 -0
  402. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_createCompounder.cjs +22 -0
  403. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_createRange.cjs +31 -0
  404. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_createSet.cjs +19 -0
  405. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_deburrLetter.cjs +208 -0
  406. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_defineProperty.cjs +21 -0
  407. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_freeGlobal.cjs +13 -0
  408. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_getMapData.cjs +17 -0
  409. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_getNative.cjs +18 -0
  410. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_getPrototype.cjs +14 -0
  411. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_getRawTag.cjs +34 -0
  412. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_getTag.cjs +43 -0
  413. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_getValue.cjs +14 -0
  414. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_hasUnicode.cjs +17 -0
  415. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_hasUnicodeWord.cjs +15 -0
  416. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_hashClear.cjs +17 -0
  417. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_hashDelete.cjs +16 -0
  418. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_hashGet.cjs +24 -0
  419. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_hashHas.cjs +19 -0
  420. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_hashSet.cjs +20 -0
  421. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_initCloneObject.cjs +18 -0
  422. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_isFlattenable.cjs +19 -0
  423. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_isIndex.cjs +18 -0
  424. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_isIterateeCall.cjs +26 -0
  425. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_isKeyable.cjs +15 -0
  426. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_isMasked.cjs +20 -0
  427. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_isPrototype.cjs +16 -0
  428. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_listCacheClear.cjs +15 -0
  429. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_listCacheDelete.cjs +29 -0
  430. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_listCacheGet.cjs +17 -0
  431. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_listCacheHas.cjs +16 -0
  432. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_listCacheSet.cjs +23 -0
  433. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_mapCacheClear.cjs +23 -0
  434. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.cjs +18 -0
  435. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_mapCacheGet.cjs +16 -0
  436. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_mapCacheHas.cjs +16 -0
  437. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_mapCacheSet.cjs +19 -0
  438. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_nativeCreate.cjs +14 -0
  439. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_nativeKeys.cjs +14 -0
  440. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.cjs +20 -0
  441. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_nodeUtil.cjs +30 -0
  442. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_objectToString.cjs +16 -0
  443. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_overArg.cjs +16 -0
  444. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_overRest.cjs +30 -0
  445. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_root.cjs +15 -0
  446. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_safeGet.cjs +20 -0
  447. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_setCacheAdd.cjs +16 -0
  448. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_setCacheHas.cjs +14 -0
  449. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_setToArray.cjs +18 -0
  450. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_setToString.cjs +15 -0
  451. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_shortOut.cjs +28 -0
  452. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_stackClear.cjs +17 -0
  453. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_stackDelete.cjs +16 -0
  454. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_stackGet.cjs +14 -0
  455. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_stackHas.cjs +14 -0
  456. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_stackSet.cjs +31 -0
  457. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_strictIndexOf.cjs +20 -0
  458. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_stringToArray.cjs +18 -0
  459. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_toSource.cjs +26 -0
  460. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.cjs +18 -0
  461. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_unicodeToArray.cjs +18 -0
  462. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/_unicodeWords.cjs +27 -0
  463. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/constant.cjs +16 -0
  464. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/deburr.cjs +22 -0
  465. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/eq.cjs +14 -0
  466. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/identity.cjs +14 -0
  467. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isArguments.cjs +22 -0
  468. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isArray.cjs +12 -0
  469. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isArrayLike.cjs +17 -0
  470. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.cjs +17 -0
  471. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isBuffer.cjs +23 -0
  472. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isEmpty.cjs +44 -0
  473. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isFunction.cjs +22 -0
  474. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isLength.cjs +15 -0
  475. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isObject.cjs +15 -0
  476. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isObjectLike.cjs +14 -0
  477. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isPlainObject.cjs +31 -0
  478. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isSymbol.cjs +18 -0
  479. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/isTypedArray.cjs +17 -0
  480. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/keysIn.cjs +18 -0
  481. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/lodash.cjs +5491 -0
  482. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/merge.cjs +17 -0
  483. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/noop.cjs +13 -0
  484. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/range.cjs +14 -0
  485. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/startCase.cjs +17 -0
  486. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/stubFalse.cjs +14 -0
  487. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/toFinite.cjs +25 -0
  488. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/toNumber.cjs +38 -0
  489. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/toPlainObject.cjs +17 -0
  490. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/toString.cjs +16 -0
  491. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/union.cjs +19 -0
  492. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/upperFirst.cjs +14 -0
  493. package/dist/external/cjs/lodash@4.17.21/node_modules/lodash/words.cjs +24 -0
  494. package/dist/external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@7.17.7_yup@1.6.1/node_modules/mantine-form-yup-resolver/dist/esm/index.cjs +20 -0
  495. package/dist/external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.7_@mantine_dates@7.17.7_@mantine_hooks@7._dm3meh6s7t7wwl37at3cedg6gm/node_modules/mantine-react-table/dist/index.esm.cjs +2950 -0
  496. package/dist/external/cjs/property-expr@2.0.6/node_modules/property-expr/index.cjs +105 -0
  497. package/dist/external/cjs/tiny-case@1.0.3/node_modules/tiny-case/index.cjs +33 -0
  498. package/dist/external/cjs/toposort@2.0.2/node_modules/toposort/index.cjs +79 -0
  499. package/dist/external/cjs/yup@1.6.1/node_modules/yup/index.esm.cjs +2331 -0
  500. package/dist/external/cjs/zustand@5.0.4_@types_react@18.3.20_react@18.3.1/node_modules/zustand/esm/react.cjs +23 -0
  501. package/dist/external/cjs/zustand@5.0.4_@types_react@18.3.20_react@18.3.1/node_modules/zustand/esm/vanilla.cjs +25 -0
  502. package/dist/external/esm/@iconify_react@6.0.0_react@18.3.1/node_modules/@iconify/react/dist/iconify.mjs +1690 -0
  503. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs +37 -0
  504. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs +30 -0
  505. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs +11 -0
  506. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAppWindow.mjs +11 -0
  507. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowAutofitContent.mjs +11 -0
  508. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDown.mjs +11 -0
  509. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowUp.mjs +11 -0
  510. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowsSort.mjs +11 -0
  511. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensityLarge.mjs +11 -0
  512. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensityMedium.mjs +11 -0
  513. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBaselineDensitySmall.mjs +11 -0
  514. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.mjs +11 -0
  515. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs +11 -0
  516. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.mjs +11 -0
  517. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeftPipe.mjs +11 -0
  518. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.mjs +11 -0
  519. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRightPipe.mjs +11 -0
  520. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronUp.mjs +11 -0
  521. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronsDown.mjs +11 -0
  522. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.mjs +11 -0
  523. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconClearAll.mjs +11 -0
  524. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconColumns.mjs +11 -0
  525. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceFloppy.mjs +11 -0
  526. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.mjs +11 -0
  527. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDotsVertical.mjs +11 -0
  528. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDownload.mjs +11 -0
  529. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.mjs +11 -0
  530. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconExclamationCircle.mjs +11 -0
  531. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconEye.mjs +11 -0
  532. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconEyeOff.mjs +11 -0
  533. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFileTypeCsv.mjs +11 -0
  534. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilter.mjs +11 -0
  535. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilterCog.mjs +11 -0
  536. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFilterOff.mjs +11 -0
  537. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconGripHorizontal.mjs +11 -0
  538. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconIdBadge2.mjs +11 -0
  539. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs +11 -0
  540. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.mjs +11 -0
  541. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLogout.mjs +11 -0
  542. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconMaximize.mjs +11 -0
  543. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconMinimize.mjs +11 -0
  544. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPencil.mjs +11 -0
  545. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPinned.mjs +11 -0
  546. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPinnedOff.mjs +11 -0
  547. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.mjs +11 -0
  548. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconQuote.mjs +11 -0
  549. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconRefresh.mjs +11 -0
  550. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs +11 -0
  551. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearchOff.mjs +11 -0
  552. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSeparatorVertical.mjs +11 -0
  553. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSortAscending.mjs +11 -0
  554. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSortDescending.mjs +11 -0
  555. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs +11 -0
  556. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconUpload.mjs +11 -0
  557. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconUsers.mjs +11 -0
  558. package/dist/external/esm/@tabler_icons-react@3.18.0_react@18.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs +11 -0
  559. package/dist/external/esm/@tanstack_match-sorter-utils@8.19.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs +617 -0
  560. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/focusManager.mjs +77 -0
  561. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +113 -0
  562. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/mutation.mjs +254 -0
  563. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/mutationCache.mjs +139 -0
  564. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/notifyManager.mjs +83 -0
  565. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/onlineManager.mjs +66 -0
  566. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/query.mjs +397 -0
  567. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/queryCache.mjs +103 -0
  568. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/queryClient.mjs +314 -0
  569. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/queryObserver.mjs +454 -0
  570. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/removable.mjs +40 -0
  571. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/retryer.mjs +139 -0
  572. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/subscribable.mjs +24 -0
  573. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/thenable.mjs +34 -0
  574. package/dist/external/esm/@tanstack_query-core@5.75.0/node_modules/@tanstack/query-core/build/modern/utils.mjs +244 -0
  575. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.mjs +29 -0
  576. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +21 -0
  577. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +28 -0
  578. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/isRestoring.mjs +7 -0
  579. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/suspense.mjs +20 -0
  580. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/useBaseQuery.mjs +95 -0
  581. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/useQuery.mjs +8 -0
  582. package/dist/external/esm/@tanstack_react-query@5.75.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/utils.mjs +12 -0
  583. package/dist/external/esm/@tanstack_react-table@8.20.5_react-dom@18.3.1_react@18.3.1/node_modules/@tanstack/react-table/build/lib/index.mjs +95 -0
  584. package/dist/external/esm/@tanstack_react-virtual@3.11.2_react-dom@18.3.1_react@18.3.1/node_modules/@tanstack/react-virtual/dist/esm/index.mjs +49 -0
  585. package/dist/external/esm/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.mjs +3155 -0
  586. package/dist/external/esm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/index.mjs +688 -0
  587. package/dist/external/esm/@tanstack_virtual-core@3.11.2/node_modules/@tanstack/virtual-core/dist/esm/utils.mjs +64 -0
  588. package/dist/external/esm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs +17 -0
  589. package/dist/external/esm/dompurify@3.2.5/node_modules/dompurify/dist/purify.es.mjs +968 -0
  590. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_DataView.mjs +15 -0
  591. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_Hash.mjs +30 -0
  592. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_ListCache.mjs +30 -0
  593. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_Map.mjs +15 -0
  594. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_MapCache.mjs +30 -0
  595. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_Promise.mjs +15 -0
  596. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_Set.mjs +15 -0
  597. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_SetCache.mjs +24 -0
  598. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_Stack.mjs +27 -0
  599. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_Symbol.mjs +14 -0
  600. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_Uint8Array.mjs +14 -0
  601. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_WeakMap.mjs +15 -0
  602. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_apply.mjs +24 -0
  603. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_arrayIncludes.mjs +17 -0
  604. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.mjs +20 -0
  605. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.mjs +33 -0
  606. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_arrayMap.mjs +18 -0
  607. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_arrayPush.mjs +18 -0
  608. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_arrayReduce.mjs +21 -0
  609. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_asciiToArray.mjs +14 -0
  610. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_asciiWords.mjs +15 -0
  611. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.mjs +19 -0
  612. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_assignValue.mjs +22 -0
  613. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.mjs +22 -0
  614. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.mjs +25 -0
  615. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseCreate.mjs +30 -0
  616. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseFindIndex.mjs +20 -0
  617. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseFlatten.mjs +32 -0
  618. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseFor.mjs +14 -0
  619. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseGetTag.mjs +23 -0
  620. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseIndexOf.mjs +18 -0
  621. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.mjs +18 -0
  622. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseIsNaN.mjs +14 -0
  623. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseIsNative.mjs +31 -0
  624. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.mjs +23 -0
  625. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseKeys.mjs +28 -0
  626. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.mjs +29 -0
  627. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseMerge.mjs +36 -0
  628. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.mjs +70 -0
  629. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_basePropertyOf.mjs +16 -0
  630. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseRange.mjs +20 -0
  631. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseRest.mjs +18 -0
  632. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseSetToString.mjs +23 -0
  633. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseSlice.mjs +28 -0
  634. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseTimes.mjs +18 -0
  635. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseToString.mjs +30 -0
  636. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseTrim.mjs +17 -0
  637. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseUnary.mjs +16 -0
  638. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_baseUniq.mjs +59 -0
  639. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_cacheHas.mjs +14 -0
  640. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_castSlice.mjs +18 -0
  641. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.mjs +18 -0
  642. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.mjs +28 -0
  643. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.mjs +17 -0
  644. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_copyArray.mjs +19 -0
  645. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_copyObject.mjs +32 -0
  646. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_coreJsData.mjs +14 -0
  647. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_createAssigner.mjs +32 -0
  648. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_createBaseFor.mjs +23 -0
  649. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_createCaseFirst.mjs +25 -0
  650. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_createCompounder.mjs +22 -0
  651. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_createRange.mjs +31 -0
  652. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_createSet.mjs +19 -0
  653. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_deburrLetter.mjs +208 -0
  654. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_defineProperty.mjs +21 -0
  655. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_freeGlobal.mjs +13 -0
  656. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_getMapData.mjs +17 -0
  657. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_getNative.mjs +18 -0
  658. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_getPrototype.mjs +14 -0
  659. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_getRawTag.mjs +34 -0
  660. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_getTag.mjs +43 -0
  661. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_getValue.mjs +14 -0
  662. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_hasUnicode.mjs +17 -0
  663. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_hasUnicodeWord.mjs +15 -0
  664. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_hashClear.mjs +17 -0
  665. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_hashDelete.mjs +16 -0
  666. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_hashGet.mjs +24 -0
  667. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_hashHas.mjs +19 -0
  668. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_hashSet.mjs +20 -0
  669. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_initCloneObject.mjs +18 -0
  670. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_isFlattenable.mjs +19 -0
  671. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_isIndex.mjs +18 -0
  672. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.mjs +26 -0
  673. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_isKeyable.mjs +15 -0
  674. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_isMasked.mjs +20 -0
  675. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_isPrototype.mjs +16 -0
  676. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_listCacheClear.mjs +15 -0
  677. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.mjs +29 -0
  678. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_listCacheGet.mjs +17 -0
  679. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_listCacheHas.mjs +16 -0
  680. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_listCacheSet.mjs +23 -0
  681. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.mjs +23 -0
  682. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.mjs +18 -0
  683. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.mjs +16 -0
  684. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.mjs +16 -0
  685. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.mjs +19 -0
  686. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_nativeCreate.mjs +14 -0
  687. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_nativeKeys.mjs +14 -0
  688. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.mjs +20 -0
  689. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_nodeUtil.mjs +30 -0
  690. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_objectToString.mjs +16 -0
  691. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_overArg.mjs +16 -0
  692. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_overRest.mjs +30 -0
  693. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_root.mjs +15 -0
  694. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_safeGet.mjs +20 -0
  695. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.mjs +16 -0
  696. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_setCacheHas.mjs +14 -0
  697. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_setToArray.mjs +18 -0
  698. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_setToString.mjs +15 -0
  699. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_shortOut.mjs +28 -0
  700. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_stackClear.mjs +17 -0
  701. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_stackDelete.mjs +16 -0
  702. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_stackGet.mjs +14 -0
  703. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_stackHas.mjs +14 -0
  704. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_stackSet.mjs +31 -0
  705. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_strictIndexOf.mjs +20 -0
  706. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_stringToArray.mjs +18 -0
  707. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_toSource.mjs +26 -0
  708. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.mjs +18 -0
  709. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_unicodeToArray.mjs +18 -0
  710. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/_unicodeWords.mjs +27 -0
  711. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/constant.mjs +16 -0
  712. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/deburr.mjs +22 -0
  713. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/eq.mjs +14 -0
  714. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/identity.mjs +14 -0
  715. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isArguments.mjs +22 -0
  716. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isArray.mjs +12 -0
  717. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isArrayLike.mjs +17 -0
  718. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.mjs +17 -0
  719. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isBuffer.mjs +23 -0
  720. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isEmpty.mjs +44 -0
  721. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isFunction.mjs +22 -0
  722. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isLength.mjs +15 -0
  723. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isObject.mjs +15 -0
  724. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isObjectLike.mjs +14 -0
  725. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isPlainObject.mjs +31 -0
  726. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isSymbol.mjs +18 -0
  727. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/isTypedArray.mjs +17 -0
  728. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/keysIn.mjs +18 -0
  729. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/lodash.mjs +5491 -0
  730. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/merge.mjs +17 -0
  731. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/noop.mjs +13 -0
  732. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/range.mjs +14 -0
  733. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/startCase.mjs +17 -0
  734. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/stubFalse.mjs +14 -0
  735. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/toFinite.mjs +25 -0
  736. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/toNumber.mjs +38 -0
  737. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/toPlainObject.mjs +17 -0
  738. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/toString.mjs +16 -0
  739. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/union.mjs +19 -0
  740. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/upperFirst.mjs +14 -0
  741. package/dist/external/esm/lodash@4.17.21/node_modules/lodash/words.mjs +24 -0
  742. package/dist/external/esm/mantine-form-yup-resolver@2.0.0_@mantine_form@7.17.7_yup@1.6.1/node_modules/mantine-form-yup-resolver/dist/esm/index.mjs +20 -0
  743. package/dist/external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.7_@mantine_dates@7.17.7_@mantine_hooks@7._dm3meh6s7t7wwl37at3cedg6gm/node_modules/mantine-react-table/dist/index.esm.mjs +2950 -0
  744. package/dist/external/esm/property-expr@2.0.6/node_modules/property-expr/index.mjs +105 -0
  745. package/dist/external/esm/tiny-case@1.0.3/node_modules/tiny-case/index.mjs +33 -0
  746. package/dist/external/esm/toposort@2.0.2/node_modules/toposort/index.mjs +79 -0
  747. package/dist/external/esm/yup@1.6.1/node_modules/yup/index.esm.mjs +2331 -0
  748. package/dist/external/esm/zustand@5.0.4_@types_react@18.3.20_react@18.3.1/node_modules/zustand/esm/react.mjs +23 -0
  749. package/dist/external/esm/zustand@5.0.4_@types_react@18.3.20_react@18.3.1/node_modules/zustand/esm/vanilla.mjs +25 -0
  750. package/dist/hooks/cjs/index.cjs +8 -0
  751. package/dist/hooks/cjs/useActionIcon/useActionIcon.cjs +16 -0
  752. package/dist/hooks/cjs/useActionIcon/useActionIcon.module.css.cjs +8 -0
  753. package/dist/hooks/cjs/useCustomFetch/useCustomFetch.cjs +58 -0
  754. package/dist/hooks/cjs/useTrueOnce/useTrueOnce.cjs +15 -0
  755. package/dist/hooks/esm/index.mjs +8 -0
  756. package/dist/hooks/esm/useActionIcon/useActionIcon.mjs +16 -0
  757. package/dist/hooks/esm/useActionIcon/useActionIcon.module.css.mjs +8 -0
  758. package/dist/hooks/esm/useCustomFetch/useCustomFetch.mjs +58 -0
  759. package/dist/hooks/esm/useTrueOnce/useTrueOnce.mjs +15 -0
  760. package/dist/hooks/style.css +3 -0
  761. package/dist/jsonforms/cjs/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +30 -0
  762. package/dist/jsonforms/cjs/MantineInputs/MantineBooleanInput.cjs +21 -0
  763. package/dist/jsonforms/cjs/MantineInputs/MantineDateInput.cjs +20 -0
  764. package/dist/jsonforms/cjs/MantineInputs/MantineDateTimeInput.cjs +28 -0
  765. package/dist/jsonforms/cjs/MantineInputs/MantineEnumArrayInput.cjs +20 -0
  766. package/dist/jsonforms/cjs/MantineInputs/MantineEnumInput.cjs +20 -0
  767. package/dist/jsonforms/cjs/MantineInputs/MantineJsonInput.cjs +20 -0
  768. package/dist/jsonforms/cjs/MantineInputs/MantineNumberInput.cjs +20 -0
  769. package/dist/jsonforms/cjs/MantineInputs/MantineObjectInput.cjs +41 -0
  770. package/dist/jsonforms/cjs/MantineInputs/MantineOneOfEnumInput.cjs +31 -0
  771. package/dist/jsonforms/cjs/MantineInputs/MantineTextInput.cjs +23 -0
  772. package/dist/jsonforms/cjs/_virtual/_cloneBuffer.cjs +4 -0
  773. package/dist/jsonforms/cjs/_virtual/_commonjsHelpers.cjs +8 -0
  774. package/dist/jsonforms/cjs/_virtual/_nodeUtil.cjs +4 -0
  775. package/dist/jsonforms/cjs/_virtual/isBuffer.cjs +4 -0
  776. package/dist/jsonforms/cjs/_virtual/isEmpty.cjs +6 -0
  777. package/dist/jsonforms/cjs/_virtual/lodash.cjs +5 -0
  778. package/dist/jsonforms/cjs/_virtual/lodash2.cjs +4 -0
  779. package/dist/jsonforms/cjs/_virtual/merge.cjs +6 -0
  780. package/dist/jsonforms/cjs/_virtual/range.cjs +6 -0
  781. package/dist/jsonforms/cjs/_virtual/startCase.cjs +6 -0
  782. package/dist/jsonforms/cjs/_virtual/union.cjs +6 -0
  783. package/dist/jsonforms/cjs/cells/MantineBooleanCell.cjs +10 -0
  784. package/dist/jsonforms/cjs/cells/MantineDateCell.cjs +10 -0
  785. package/dist/jsonforms/cjs/cells/MantineDateTimeCell.cjs +10 -0
  786. package/dist/jsonforms/cjs/cells/MantineEnumArrayCell.cjs +11 -0
  787. package/dist/jsonforms/cjs/cells/MantineEnumCell.cjs +13 -0
  788. package/dist/jsonforms/cjs/cells/MantineIntegerCell.cjs +10 -0
  789. package/dist/jsonforms/cjs/cells/MantineJsonCell.cjs +11 -0
  790. package/dist/jsonforms/cjs/cells/MantineNumberCell.cjs +10 -0
  791. package/dist/jsonforms/cjs/cells/MantineOneOfEnumCell.cjs +13 -0
  792. package/dist/jsonforms/cjs/cells/MantineTextCell.cjs +10 -0
  793. package/dist/jsonforms/cjs/complex/MantineArrayControl/DeleteDialog.cjs +24 -0
  794. package/dist/jsonforms/cjs/complex/MantineArrayControl/MantineArrayControl.cjs +59 -0
  795. package/dist/jsonforms/cjs/complex/MantineEnumArrayControl.cjs +11 -0
  796. package/dist/jsonforms/cjs/complex/MantineObjectControl.cjs +10 -0
  797. package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +358 -0
  798. package/dist/jsonforms/cjs/complex/MantineTableControl/NoBorderTableCell.cjs +7 -0
  799. package/dist/jsonforms/cjs/complex/MantineTableControl/TableToolbar.cjs +70 -0
  800. package/dist/jsonforms/cjs/complex/MantineTableControl/ValidationIcon.cjs +19 -0
  801. package/dist/jsonforms/cjs/controls/MantineBooleanControl.cjs +10 -0
  802. package/dist/jsonforms/cjs/controls/MantineDateControl.cjs +10 -0
  803. package/dist/jsonforms/cjs/controls/MantineDateTimeControl.cjs +10 -0
  804. package/dist/jsonforms/cjs/controls/MantineEnumControl.cjs +13 -0
  805. package/dist/jsonforms/cjs/controls/MantineIntegerControl.cjs +10 -0
  806. package/dist/jsonforms/cjs/controls/MantineJsonControl.cjs +11 -0
  807. package/dist/jsonforms/cjs/controls/MantineNumberControl.cjs +10 -0
  808. package/dist/jsonforms/cjs/controls/MantineOneOfEnumControl.cjs +13 -0
  809. package/dist/jsonforms/cjs/controls/MantineTextControl.cjs +10 -0
  810. package/dist/jsonforms/cjs/hooks/useBooleanProps.cjs +23 -0
  811. package/dist/jsonforms/cjs/hooks/useCommonProps.cjs +28 -0
  812. package/dist/jsonforms/cjs/hooks/useContextProps.cjs +21 -0
  813. package/dist/jsonforms/cjs/hooks/useDateProps.cjs +58 -0
  814. package/dist/jsonforms/cjs/hooks/useJsonProps.cjs +34 -0
  815. package/dist/jsonforms/cjs/hooks/useMultiSelectProps.cjs +12 -0
  816. package/dist/jsonforms/cjs/hooks/useNumberProps.cjs +11 -0
  817. package/dist/jsonforms/cjs/hooks/useSelectProps.cjs +11 -0
  818. package/dist/jsonforms/cjs/hooks/useTextProps.cjs +9 -0
  819. package/dist/jsonforms/cjs/hooks/useThemeCustomizer.cjs +19 -0
  820. package/dist/jsonforms/cjs/index.cjs +41 -0
  821. package/dist/jsonforms/cjs/labels/MantineLabelRenderer.cjs +17 -0
  822. package/dist/jsonforms/cjs/layouts/MantineGroupLayoutRenderer.cjs +22 -0
  823. package/dist/jsonforms/cjs/layouts/MantineHotizontalLayoutRenderer.cjs +21 -0
  824. package/dist/jsonforms/cjs/layouts/MantineVerticalLayoutRenderer.cjs +21 -0
  825. package/dist/jsonforms/cjs/renderers/mantineCells.cjs +25 -0
  826. package/dist/jsonforms/cjs/renderers/mantineRenderers.cjs +41 -0
  827. package/dist/jsonforms/cjs/testers/isEnumArrayArrayControl.cjs +24 -0
  828. package/dist/jsonforms/cjs/testers/isEnumArrayControl.cjs +23 -0
  829. package/dist/jsonforms/cjs/testers/isJsonArrayControl.cjs +19 -0
  830. package/dist/jsonforms/cjs/testers/isJsonControl.cjs +19 -0
  831. package/dist/jsonforms/cjs/utils/isSchemaTypeInclude.cjs +6 -0
  832. package/dist/jsonforms/cjs/utils/layout.cjs +37 -0
  833. package/dist/jsonforms/cjs/utils/utcConverter.cjs +11 -0
  834. package/dist/jsonforms/esm/JsonFormsWithCustomizer/JsonFormsWithCustomizer.mjs +30 -0
  835. package/dist/jsonforms/esm/MantineInputs/MantineBooleanInput.mjs +21 -0
  836. package/dist/jsonforms/esm/MantineInputs/MantineDateInput.mjs +20 -0
  837. package/dist/jsonforms/esm/MantineInputs/MantineDateTimeInput.mjs +28 -0
  838. package/dist/jsonforms/esm/MantineInputs/MantineEnumArrayInput.mjs +20 -0
  839. package/dist/jsonforms/esm/MantineInputs/MantineEnumInput.mjs +20 -0
  840. package/dist/jsonforms/esm/MantineInputs/MantineJsonInput.mjs +20 -0
  841. package/dist/jsonforms/esm/MantineInputs/MantineNumberInput.mjs +20 -0
  842. package/dist/jsonforms/esm/MantineInputs/MantineObjectInput.mjs +41 -0
  843. package/dist/jsonforms/esm/MantineInputs/MantineOneOfEnumInput.mjs +31 -0
  844. package/dist/jsonforms/esm/MantineInputs/MantineTextInput.mjs +23 -0
  845. package/dist/jsonforms/esm/_virtual/_cloneBuffer.mjs +4 -0
  846. package/dist/jsonforms/esm/_virtual/_commonjsHelpers.mjs +8 -0
  847. package/dist/jsonforms/esm/_virtual/_nodeUtil.mjs +4 -0
  848. package/dist/jsonforms/esm/_virtual/isBuffer.mjs +4 -0
  849. package/dist/jsonforms/esm/_virtual/isEmpty.mjs +7 -0
  850. package/dist/jsonforms/esm/_virtual/lodash.mjs +5 -0
  851. package/dist/jsonforms/esm/_virtual/lodash2.mjs +4 -0
  852. package/dist/jsonforms/esm/_virtual/merge.mjs +7 -0
  853. package/dist/jsonforms/esm/_virtual/range.mjs +7 -0
  854. package/dist/jsonforms/esm/_virtual/startCase.mjs +7 -0
  855. package/dist/jsonforms/esm/_virtual/union.mjs +7 -0
  856. package/dist/jsonforms/esm/cells/MantineBooleanCell.mjs +10 -0
  857. package/dist/jsonforms/esm/cells/MantineDateCell.mjs +10 -0
  858. package/dist/jsonforms/esm/cells/MantineDateTimeCell.mjs +10 -0
  859. package/dist/jsonforms/esm/cells/MantineEnumArrayCell.mjs +11 -0
  860. package/dist/jsonforms/esm/cells/MantineEnumCell.mjs +13 -0
  861. package/dist/jsonforms/esm/cells/MantineIntegerCell.mjs +10 -0
  862. package/dist/jsonforms/esm/cells/MantineJsonCell.mjs +11 -0
  863. package/dist/jsonforms/esm/cells/MantineNumberCell.mjs +10 -0
  864. package/dist/jsonforms/esm/cells/MantineOneOfEnumCell.mjs +13 -0
  865. package/dist/jsonforms/esm/cells/MantineTextCell.mjs +10 -0
  866. package/dist/jsonforms/esm/complex/MantineArrayControl/DeleteDialog.mjs +24 -0
  867. package/dist/jsonforms/esm/complex/MantineArrayControl/MantineArrayControl.mjs +59 -0
  868. package/dist/jsonforms/esm/complex/MantineEnumArrayControl.mjs +11 -0
  869. package/dist/jsonforms/esm/complex/MantineObjectControl.mjs +10 -0
  870. package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +358 -0
  871. package/dist/jsonforms/esm/complex/MantineTableControl/NoBorderTableCell.mjs +7 -0
  872. package/dist/jsonforms/esm/complex/MantineTableControl/TableToolbar.mjs +70 -0
  873. package/dist/jsonforms/esm/complex/MantineTableControl/ValidationIcon.mjs +19 -0
  874. package/dist/jsonforms/esm/controls/MantineBooleanControl.mjs +10 -0
  875. package/dist/jsonforms/esm/controls/MantineDateControl.mjs +10 -0
  876. package/dist/jsonforms/esm/controls/MantineDateTimeControl.mjs +10 -0
  877. package/dist/jsonforms/esm/controls/MantineEnumControl.mjs +13 -0
  878. package/dist/jsonforms/esm/controls/MantineIntegerControl.mjs +10 -0
  879. package/dist/jsonforms/esm/controls/MantineJsonControl.mjs +11 -0
  880. package/dist/jsonforms/esm/controls/MantineNumberControl.mjs +10 -0
  881. package/dist/jsonforms/esm/controls/MantineOneOfEnumControl.mjs +13 -0
  882. package/dist/jsonforms/esm/controls/MantineTextControl.mjs +10 -0
  883. package/dist/jsonforms/esm/hooks/useBooleanProps.mjs +23 -0
  884. package/dist/jsonforms/esm/hooks/useCommonProps.mjs +28 -0
  885. package/dist/jsonforms/esm/hooks/useContextProps.mjs +21 -0
  886. package/dist/jsonforms/esm/hooks/useDateProps.mjs +58 -0
  887. package/dist/jsonforms/esm/hooks/useJsonProps.mjs +34 -0
  888. package/dist/jsonforms/esm/hooks/useMultiSelectProps.mjs +12 -0
  889. package/dist/jsonforms/esm/hooks/useNumberProps.mjs +11 -0
  890. package/dist/jsonforms/esm/hooks/useSelectProps.mjs +11 -0
  891. package/dist/jsonforms/esm/hooks/useTextProps.mjs +9 -0
  892. package/dist/jsonforms/esm/hooks/useThemeCustomizer.mjs +19 -0
  893. package/dist/jsonforms/esm/index.mjs +41 -0
  894. package/dist/jsonforms/esm/labels/MantineLabelRenderer.mjs +17 -0
  895. package/dist/jsonforms/esm/layouts/MantineGroupLayoutRenderer.mjs +22 -0
  896. package/dist/jsonforms/esm/layouts/MantineHotizontalLayoutRenderer.mjs +21 -0
  897. package/dist/jsonforms/esm/layouts/MantineVerticalLayoutRenderer.mjs +21 -0
  898. package/dist/jsonforms/esm/renderers/mantineCells.mjs +25 -0
  899. package/dist/jsonforms/esm/renderers/mantineRenderers.mjs +41 -0
  900. package/dist/jsonforms/esm/testers/isEnumArrayArrayControl.mjs +24 -0
  901. package/dist/jsonforms/esm/testers/isEnumArrayControl.mjs +23 -0
  902. package/dist/jsonforms/esm/testers/isJsonArrayControl.mjs +19 -0
  903. package/dist/jsonforms/esm/testers/isJsonControl.mjs +19 -0
  904. package/dist/jsonforms/esm/utils/isSchemaTypeInclude.mjs +6 -0
  905. package/dist/jsonforms/esm/utils/layout.mjs +37 -0
  906. package/dist/jsonforms/esm/utils/utcConverter.mjs +11 -0
  907. package/dist/utils/cjs/createFetchParams/createFetchParams.cjs +27 -0
  908. package/dist/utils/cjs/deepMerge/deepMerge.cjs +26 -0
  909. package/dist/utils/cjs/getValue/getValue.cjs +19 -0
  910. package/dist/utils/cjs/getValueOrDefault/getValueOrDefault.cjs +4 -0
  911. package/dist/utils/cjs/index.cjs +18 -0
  912. package/dist/utils/cjs/isTruthy/isTruthy.cjs +6 -0
  913. package/dist/utils/cjs/parseFromValuesOrFunc/parseFromValuesOrFunc.cjs +4 -0
  914. package/dist/utils/cjs/parseValue/parseValue.cjs +18 -0
  915. package/dist/utils/cjs/urlJoin/urlJoin.cjs +48 -0
  916. package/dist/utils/esm/createFetchParams/createFetchParams.mjs +27 -0
  917. package/dist/utils/esm/deepMerge/deepMerge.mjs +26 -0
  918. package/dist/utils/esm/getValue/getValue.mjs +19 -0
  919. package/dist/utils/esm/getValueOrDefault/getValueOrDefault.mjs +4 -0
  920. package/dist/utils/esm/index.mjs +18 -0
  921. package/dist/utils/esm/isTruthy/isTruthy.mjs +6 -0
  922. package/dist/utils/esm/parseFromValuesOrFunc/parseFromValuesOrFunc.mjs +4 -0
  923. package/dist/utils/esm/parseValue/parseValue.mjs +18 -0
  924. package/dist/utils/esm/urlJoin/urlJoin.mjs +48 -0
  925. package/dist/zustand/cjs/index.cjs +8 -0
  926. package/dist/zustand/cjs/useProxy/useProxy.cjs +15 -0
  927. package/dist/zustand/cjs/utils/compareStateWithStore.cjs +14 -0
  928. package/dist/zustand/cjs/utils/createProxy.cjs +8 -0
  929. package/dist/zustand/esm/index.mjs +8 -0
  930. package/dist/zustand/esm/useProxy/useProxy.mjs +15 -0
  931. package/dist/zustand/esm/utils/compareStateWithStore.mjs +14 -0
  932. package/dist/zustand/esm/utils/createProxy.mjs +8 -0
  933. package/package.json +59 -44
  934. package/dist/fastapi-rtk.es.js +0 -19007
  935. package/dist/fastapi-rtk.umd.js +0 -352
  936. package/dist/style.css +0 -1
@@ -0,0 +1,3155 @@
1
+ /**
2
+ * table-core
3
+ *
4
+ * Copyright (c) TanStack
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */
11
+ function functionalUpdate(updater, input) {
12
+ return typeof updater === "function" ? updater(input) : updater;
13
+ }
14
+ function makeStateUpdater(key, instance) {
15
+ return (updater) => {
16
+ instance.setState((old) => {
17
+ return {
18
+ ...old,
19
+ [key]: functionalUpdate(updater, old[key])
20
+ };
21
+ });
22
+ };
23
+ }
24
+ function isFunction(d) {
25
+ return d instanceof Function;
26
+ }
27
+ function isNumberArray(d) {
28
+ return Array.isArray(d) && d.every((val) => typeof val === "number");
29
+ }
30
+ function flattenBy(arr, getChildren) {
31
+ const flat = [];
32
+ const recurse = (subArr) => {
33
+ subArr.forEach((item) => {
34
+ flat.push(item);
35
+ const children = getChildren(item);
36
+ if (children != null && children.length) {
37
+ recurse(children);
38
+ }
39
+ });
40
+ };
41
+ recurse(arr);
42
+ return flat;
43
+ }
44
+ function memo(getDeps, fn, opts) {
45
+ let deps = [];
46
+ let result;
47
+ return (depArgs) => {
48
+ let depTime;
49
+ if (opts.key && opts.debug) depTime = Date.now();
50
+ const newDeps = getDeps(depArgs);
51
+ const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep);
52
+ if (!depsChanged) {
53
+ return result;
54
+ }
55
+ deps = newDeps;
56
+ let resultTime;
57
+ if (opts.key && opts.debug) resultTime = Date.now();
58
+ result = fn(...newDeps);
59
+ opts == null || opts.onChange == null || opts.onChange(result);
60
+ if (opts.key && opts.debug) {
61
+ if (opts != null && opts.debug()) {
62
+ const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;
63
+ const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;
64
+ const resultFpsPercentage = resultEndTime / 16;
65
+ const pad = (str, num) => {
66
+ str = String(str);
67
+ while (str.length < num) {
68
+ str = " " + str;
69
+ }
70
+ return str;
71
+ };
72
+ console.info(`%c⏱ ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`, `
73
+ font-size: .6rem;
74
+ font-weight: bold;
75
+ color: hsl(${Math.max(0, Math.min(120 - 120 * resultFpsPercentage, 120))}deg 100% 31%);`, opts == null ? void 0 : opts.key);
76
+ }
77
+ }
78
+ return result;
79
+ };
80
+ }
81
+ function getMemoOptions(tableOptions, debugLevel, key, onChange) {
82
+ return {
83
+ debug: () => {
84
+ var _tableOptions$debugAl;
85
+ return (_tableOptions$debugAl = tableOptions == null ? void 0 : tableOptions.debugAll) != null ? _tableOptions$debugAl : tableOptions[debugLevel];
86
+ },
87
+ key: process.env.NODE_ENV === "development" && key,
88
+ onChange
89
+ };
90
+ }
91
+ function createCell(table, row, column, columnId) {
92
+ const getRenderValue = () => {
93
+ var _cell$getValue;
94
+ return (_cell$getValue = cell.getValue()) != null ? _cell$getValue : table.options.renderFallbackValue;
95
+ };
96
+ const cell = {
97
+ id: `${row.id}_${column.id}`,
98
+ row,
99
+ column,
100
+ getValue: () => row.getValue(columnId),
101
+ renderValue: getRenderValue,
102
+ getContext: memo(() => [table, column, row, cell], (table2, column2, row2, cell2) => ({
103
+ table: table2,
104
+ column: column2,
105
+ row: row2,
106
+ cell: cell2,
107
+ getValue: cell2.getValue,
108
+ renderValue: cell2.renderValue
109
+ }), getMemoOptions(table.options, "debugCells", "cell.getContext"))
110
+ };
111
+ table._features.forEach((feature) => {
112
+ feature.createCell == null || feature.createCell(cell, column, row, table);
113
+ }, {});
114
+ return cell;
115
+ }
116
+ function createColumn(table, columnDef, depth, parent) {
117
+ var _ref, _resolvedColumnDef$id;
118
+ const defaultColumn = table._getDefaultColumnDef();
119
+ const resolvedColumnDef = {
120
+ ...defaultColumn,
121
+ ...columnDef
122
+ };
123
+ const accessorKey = resolvedColumnDef.accessorKey;
124
+ let id = (_ref = (_resolvedColumnDef$id = resolvedColumnDef.id) != null ? _resolvedColumnDef$id : accessorKey ? typeof String.prototype.replaceAll === "function" ? accessorKey.replaceAll(".", "_") : accessorKey.replace(/\./g, "_") : void 0) != null ? _ref : typeof resolvedColumnDef.header === "string" ? resolvedColumnDef.header : void 0;
125
+ let accessorFn;
126
+ if (resolvedColumnDef.accessorFn) {
127
+ accessorFn = resolvedColumnDef.accessorFn;
128
+ } else if (accessorKey) {
129
+ if (accessorKey.includes(".")) {
130
+ accessorFn = (originalRow) => {
131
+ let result = originalRow;
132
+ for (const key of accessorKey.split(".")) {
133
+ var _result;
134
+ result = (_result = result) == null ? void 0 : _result[key];
135
+ if (process.env.NODE_ENV !== "production" && result === void 0) {
136
+ console.warn(`"${key}" in deeply nested key "${accessorKey}" returned undefined.`);
137
+ }
138
+ }
139
+ return result;
140
+ };
141
+ } else {
142
+ accessorFn = (originalRow) => originalRow[resolvedColumnDef.accessorKey];
143
+ }
144
+ }
145
+ if (!id) {
146
+ if (process.env.NODE_ENV !== "production") {
147
+ throw new Error(resolvedColumnDef.accessorFn ? `Columns require an id when using an accessorFn` : `Columns require an id when using a non-string header`);
148
+ }
149
+ throw new Error();
150
+ }
151
+ let column = {
152
+ id: `${String(id)}`,
153
+ accessorFn,
154
+ parent,
155
+ depth,
156
+ columnDef: resolvedColumnDef,
157
+ columns: [],
158
+ getFlatColumns: memo(() => [true], () => {
159
+ var _column$columns;
160
+ return [column, ...(_column$columns = column.columns) == null ? void 0 : _column$columns.flatMap((d) => d.getFlatColumns())];
161
+ }, getMemoOptions(table.options, "debugColumns", "column.getFlatColumns")),
162
+ getLeafColumns: memo(() => [table._getOrderColumnsFn()], (orderColumns2) => {
163
+ var _column$columns2;
164
+ if ((_column$columns2 = column.columns) != null && _column$columns2.length) {
165
+ let leafColumns = column.columns.flatMap((column2) => column2.getLeafColumns());
166
+ return orderColumns2(leafColumns);
167
+ }
168
+ return [column];
169
+ }, getMemoOptions(table.options, "debugColumns", "column.getLeafColumns"))
170
+ };
171
+ for (const feature of table._features) {
172
+ feature.createColumn == null || feature.createColumn(column, table);
173
+ }
174
+ return column;
175
+ }
176
+ const debug = "debugHeaders";
177
+ function createHeader(table, column, options) {
178
+ var _options$id;
179
+ const id = (_options$id = options.id) != null ? _options$id : column.id;
180
+ let header = {
181
+ id,
182
+ column,
183
+ index: options.index,
184
+ isPlaceholder: !!options.isPlaceholder,
185
+ placeholderId: options.placeholderId,
186
+ depth: options.depth,
187
+ subHeaders: [],
188
+ colSpan: 0,
189
+ rowSpan: 0,
190
+ headerGroup: null,
191
+ getLeafHeaders: () => {
192
+ const leafHeaders = [];
193
+ const recurseHeader = (h) => {
194
+ if (h.subHeaders && h.subHeaders.length) {
195
+ h.subHeaders.map(recurseHeader);
196
+ }
197
+ leafHeaders.push(h);
198
+ };
199
+ recurseHeader(header);
200
+ return leafHeaders;
201
+ },
202
+ getContext: () => ({
203
+ table,
204
+ header,
205
+ column
206
+ })
207
+ };
208
+ table._features.forEach((feature) => {
209
+ feature.createHeader == null || feature.createHeader(header, table);
210
+ });
211
+ return header;
212
+ }
213
+ const Headers = {
214
+ createTable: (table) => {
215
+ table.getHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, leafColumns, left, right) => {
216
+ var _left$map$filter, _right$map$filter;
217
+ const leftColumns = (_left$map$filter = left == null ? void 0 : left.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter : [];
218
+ const rightColumns = (_right$map$filter = right == null ? void 0 : right.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter : [];
219
+ const centerColumns = leafColumns.filter((column) => !(left != null && left.includes(column.id)) && !(right != null && right.includes(column.id)));
220
+ const headerGroups = buildHeaderGroups(allColumns, [...leftColumns, ...centerColumns, ...rightColumns], table);
221
+ return headerGroups;
222
+ }, getMemoOptions(table.options, debug, "getHeaderGroups"));
223
+ table.getCenterHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, leafColumns, left, right) => {
224
+ leafColumns = leafColumns.filter((column) => !(left != null && left.includes(column.id)) && !(right != null && right.includes(column.id)));
225
+ return buildHeaderGroups(allColumns, leafColumns, table, "center");
226
+ }, getMemoOptions(table.options, debug, "getCenterHeaderGroups"));
227
+ table.getLeftHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left], (allColumns, leafColumns, left) => {
228
+ var _left$map$filter2;
229
+ const orderedLeafColumns = (_left$map$filter2 = left == null ? void 0 : left.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter2 : [];
230
+ return buildHeaderGroups(allColumns, orderedLeafColumns, table, "left");
231
+ }, getMemoOptions(table.options, debug, "getLeftHeaderGroups"));
232
+ table.getRightHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.right], (allColumns, leafColumns, right) => {
233
+ var _right$map$filter2;
234
+ const orderedLeafColumns = (_right$map$filter2 = right == null ? void 0 : right.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter2 : [];
235
+ return buildHeaderGroups(allColumns, orderedLeafColumns, table, "right");
236
+ }, getMemoOptions(table.options, debug, "getRightHeaderGroups"));
237
+ table.getFooterGroups = memo(() => [table.getHeaderGroups()], (headerGroups) => {
238
+ return [...headerGroups].reverse();
239
+ }, getMemoOptions(table.options, debug, "getFooterGroups"));
240
+ table.getLeftFooterGroups = memo(() => [table.getLeftHeaderGroups()], (headerGroups) => {
241
+ return [...headerGroups].reverse();
242
+ }, getMemoOptions(table.options, debug, "getLeftFooterGroups"));
243
+ table.getCenterFooterGroups = memo(() => [table.getCenterHeaderGroups()], (headerGroups) => {
244
+ return [...headerGroups].reverse();
245
+ }, getMemoOptions(table.options, debug, "getCenterFooterGroups"));
246
+ table.getRightFooterGroups = memo(() => [table.getRightHeaderGroups()], (headerGroups) => {
247
+ return [...headerGroups].reverse();
248
+ }, getMemoOptions(table.options, debug, "getRightFooterGroups"));
249
+ table.getFlatHeaders = memo(() => [table.getHeaderGroups()], (headerGroups) => {
250
+ return headerGroups.map((headerGroup) => {
251
+ return headerGroup.headers;
252
+ }).flat();
253
+ }, getMemoOptions(table.options, debug, "getFlatHeaders"));
254
+ table.getLeftFlatHeaders = memo(() => [table.getLeftHeaderGroups()], (left) => {
255
+ return left.map((headerGroup) => {
256
+ return headerGroup.headers;
257
+ }).flat();
258
+ }, getMemoOptions(table.options, debug, "getLeftFlatHeaders"));
259
+ table.getCenterFlatHeaders = memo(() => [table.getCenterHeaderGroups()], (left) => {
260
+ return left.map((headerGroup) => {
261
+ return headerGroup.headers;
262
+ }).flat();
263
+ }, getMemoOptions(table.options, debug, "getCenterFlatHeaders"));
264
+ table.getRightFlatHeaders = memo(() => [table.getRightHeaderGroups()], (left) => {
265
+ return left.map((headerGroup) => {
266
+ return headerGroup.headers;
267
+ }).flat();
268
+ }, getMemoOptions(table.options, debug, "getRightFlatHeaders"));
269
+ table.getCenterLeafHeaders = memo(() => [table.getCenterFlatHeaders()], (flatHeaders) => {
270
+ return flatHeaders.filter((header) => {
271
+ var _header$subHeaders;
272
+ return !((_header$subHeaders = header.subHeaders) != null && _header$subHeaders.length);
273
+ });
274
+ }, getMemoOptions(table.options, debug, "getCenterLeafHeaders"));
275
+ table.getLeftLeafHeaders = memo(() => [table.getLeftFlatHeaders()], (flatHeaders) => {
276
+ return flatHeaders.filter((header) => {
277
+ var _header$subHeaders2;
278
+ return !((_header$subHeaders2 = header.subHeaders) != null && _header$subHeaders2.length);
279
+ });
280
+ }, getMemoOptions(table.options, debug, "getLeftLeafHeaders"));
281
+ table.getRightLeafHeaders = memo(() => [table.getRightFlatHeaders()], (flatHeaders) => {
282
+ return flatHeaders.filter((header) => {
283
+ var _header$subHeaders3;
284
+ return !((_header$subHeaders3 = header.subHeaders) != null && _header$subHeaders3.length);
285
+ });
286
+ }, getMemoOptions(table.options, debug, "getRightLeafHeaders"));
287
+ table.getLeafHeaders = memo(() => [table.getLeftHeaderGroups(), table.getCenterHeaderGroups(), table.getRightHeaderGroups()], (left, center, right) => {
288
+ var _left$0$headers, _left$, _center$0$headers, _center$, _right$0$headers, _right$;
289
+ return [...(_left$0$headers = (_left$ = left[0]) == null ? void 0 : _left$.headers) != null ? _left$0$headers : [], ...(_center$0$headers = (_center$ = center[0]) == null ? void 0 : _center$.headers) != null ? _center$0$headers : [], ...(_right$0$headers = (_right$ = right[0]) == null ? void 0 : _right$.headers) != null ? _right$0$headers : []].map((header) => {
290
+ return header.getLeafHeaders();
291
+ }).flat();
292
+ }, getMemoOptions(table.options, debug, "getLeafHeaders"));
293
+ }
294
+ };
295
+ function buildHeaderGroups(allColumns, columnsToGroup, table, headerFamily) {
296
+ var _headerGroups$0$heade, _headerGroups$;
297
+ let maxDepth = 0;
298
+ const findMaxDepth = function(columns, depth) {
299
+ if (depth === void 0) {
300
+ depth = 1;
301
+ }
302
+ maxDepth = Math.max(maxDepth, depth);
303
+ columns.filter((column) => column.getIsVisible()).forEach((column) => {
304
+ var _column$columns;
305
+ if ((_column$columns = column.columns) != null && _column$columns.length) {
306
+ findMaxDepth(column.columns, depth + 1);
307
+ }
308
+ }, 0);
309
+ };
310
+ findMaxDepth(allColumns);
311
+ let headerGroups = [];
312
+ const createHeaderGroup = (headersToGroup, depth) => {
313
+ const headerGroup = {
314
+ depth,
315
+ id: [headerFamily, `${depth}`].filter(Boolean).join("_"),
316
+ headers: []
317
+ };
318
+ const pendingParentHeaders = [];
319
+ headersToGroup.forEach((headerToGroup) => {
320
+ const latestPendingParentHeader = [...pendingParentHeaders].reverse()[0];
321
+ const isLeafHeader = headerToGroup.column.depth === headerGroup.depth;
322
+ let column;
323
+ let isPlaceholder = false;
324
+ if (isLeafHeader && headerToGroup.column.parent) {
325
+ column = headerToGroup.column.parent;
326
+ } else {
327
+ column = headerToGroup.column;
328
+ isPlaceholder = true;
329
+ }
330
+ if (latestPendingParentHeader && (latestPendingParentHeader == null ? void 0 : latestPendingParentHeader.column) === column) {
331
+ latestPendingParentHeader.subHeaders.push(headerToGroup);
332
+ } else {
333
+ const header = createHeader(table, column, {
334
+ id: [headerFamily, depth, column.id, headerToGroup == null ? void 0 : headerToGroup.id].filter(Boolean).join("_"),
335
+ isPlaceholder,
336
+ placeholderId: isPlaceholder ? `${pendingParentHeaders.filter((d) => d.column === column).length}` : void 0,
337
+ depth,
338
+ index: pendingParentHeaders.length
339
+ });
340
+ header.subHeaders.push(headerToGroup);
341
+ pendingParentHeaders.push(header);
342
+ }
343
+ headerGroup.headers.push(headerToGroup);
344
+ headerToGroup.headerGroup = headerGroup;
345
+ });
346
+ headerGroups.push(headerGroup);
347
+ if (depth > 0) {
348
+ createHeaderGroup(pendingParentHeaders, depth - 1);
349
+ }
350
+ };
351
+ const bottomHeaders = columnsToGroup.map((column, index) => createHeader(table, column, {
352
+ depth: maxDepth,
353
+ index
354
+ }));
355
+ createHeaderGroup(bottomHeaders, maxDepth - 1);
356
+ headerGroups.reverse();
357
+ const recurseHeadersForSpans = (headers) => {
358
+ const filteredHeaders = headers.filter((header) => header.column.getIsVisible());
359
+ return filteredHeaders.map((header) => {
360
+ let colSpan = 0;
361
+ let rowSpan = 0;
362
+ let childRowSpans = [0];
363
+ if (header.subHeaders && header.subHeaders.length) {
364
+ childRowSpans = [];
365
+ recurseHeadersForSpans(header.subHeaders).forEach((_ref) => {
366
+ let {
367
+ colSpan: childColSpan,
368
+ rowSpan: childRowSpan
369
+ } = _ref;
370
+ colSpan += childColSpan;
371
+ childRowSpans.push(childRowSpan);
372
+ });
373
+ } else {
374
+ colSpan = 1;
375
+ }
376
+ const minChildRowSpan = Math.min(...childRowSpans);
377
+ rowSpan = rowSpan + minChildRowSpan;
378
+ header.colSpan = colSpan;
379
+ header.rowSpan = rowSpan;
380
+ return {
381
+ colSpan,
382
+ rowSpan
383
+ };
384
+ });
385
+ };
386
+ recurseHeadersForSpans((_headerGroups$0$heade = (_headerGroups$ = headerGroups[0]) == null ? void 0 : _headerGroups$.headers) != null ? _headerGroups$0$heade : []);
387
+ return headerGroups;
388
+ }
389
+ const createRow = (table, id, original, rowIndex, depth, subRows, parentId) => {
390
+ let row = {
391
+ id,
392
+ index: rowIndex,
393
+ original,
394
+ depth,
395
+ parentId,
396
+ _valuesCache: {},
397
+ _uniqueValuesCache: {},
398
+ getValue: (columnId) => {
399
+ if (row._valuesCache.hasOwnProperty(columnId)) {
400
+ return row._valuesCache[columnId];
401
+ }
402
+ const column = table.getColumn(columnId);
403
+ if (!(column != null && column.accessorFn)) {
404
+ return void 0;
405
+ }
406
+ row._valuesCache[columnId] = column.accessorFn(row.original, rowIndex);
407
+ return row._valuesCache[columnId];
408
+ },
409
+ getUniqueValues: (columnId) => {
410
+ if (row._uniqueValuesCache.hasOwnProperty(columnId)) {
411
+ return row._uniqueValuesCache[columnId];
412
+ }
413
+ const column = table.getColumn(columnId);
414
+ if (!(column != null && column.accessorFn)) {
415
+ return void 0;
416
+ }
417
+ if (!column.columnDef.getUniqueValues) {
418
+ row._uniqueValuesCache[columnId] = [row.getValue(columnId)];
419
+ return row._uniqueValuesCache[columnId];
420
+ }
421
+ row._uniqueValuesCache[columnId] = column.columnDef.getUniqueValues(row.original, rowIndex);
422
+ return row._uniqueValuesCache[columnId];
423
+ },
424
+ renderValue: (columnId) => {
425
+ var _row$getValue;
426
+ return (_row$getValue = row.getValue(columnId)) != null ? _row$getValue : table.options.renderFallbackValue;
427
+ },
428
+ subRows: subRows != null ? subRows : [],
429
+ getLeafRows: () => flattenBy(row.subRows, (d) => d.subRows),
430
+ getParentRow: () => row.parentId ? table.getRow(row.parentId, true) : void 0,
431
+ getParentRows: () => {
432
+ let parentRows = [];
433
+ let currentRow = row;
434
+ while (true) {
435
+ const parentRow = currentRow.getParentRow();
436
+ if (!parentRow) break;
437
+ parentRows.push(parentRow);
438
+ currentRow = parentRow;
439
+ }
440
+ return parentRows.reverse();
441
+ },
442
+ getAllCells: memo(() => [table.getAllLeafColumns()], (leafColumns) => {
443
+ return leafColumns.map((column) => {
444
+ return createCell(table, row, column, column.id);
445
+ });
446
+ }, getMemoOptions(table.options, "debugRows", "getAllCells")),
447
+ _getAllCellsByColumnId: memo(() => [row.getAllCells()], (allCells) => {
448
+ return allCells.reduce((acc, cell) => {
449
+ acc[cell.column.id] = cell;
450
+ return acc;
451
+ }, {});
452
+ }, getMemoOptions(table.options, "debugRows", "getAllCellsByColumnId"))
453
+ };
454
+ for (let i = 0; i < table._features.length; i++) {
455
+ const feature = table._features[i];
456
+ feature == null || feature.createRow == null || feature.createRow(row, table);
457
+ }
458
+ return row;
459
+ };
460
+ const ColumnFaceting = {
461
+ createColumn: (column, table) => {
462
+ column._getFacetedRowModel = table.options.getFacetedRowModel && table.options.getFacetedRowModel(table, column.id);
463
+ column.getFacetedRowModel = () => {
464
+ if (!column._getFacetedRowModel) {
465
+ return table.getPreFilteredRowModel();
466
+ }
467
+ return column._getFacetedRowModel();
468
+ };
469
+ column._getFacetedUniqueValues = table.options.getFacetedUniqueValues && table.options.getFacetedUniqueValues(table, column.id);
470
+ column.getFacetedUniqueValues = () => {
471
+ if (!column._getFacetedUniqueValues) {
472
+ return /* @__PURE__ */ new Map();
473
+ }
474
+ return column._getFacetedUniqueValues();
475
+ };
476
+ column._getFacetedMinMaxValues = table.options.getFacetedMinMaxValues && table.options.getFacetedMinMaxValues(table, column.id);
477
+ column.getFacetedMinMaxValues = () => {
478
+ if (!column._getFacetedMinMaxValues) {
479
+ return void 0;
480
+ }
481
+ return column._getFacetedMinMaxValues();
482
+ };
483
+ }
484
+ };
485
+ const includesString = (row, columnId, filterValue) => {
486
+ var _filterValue$toString, _row$getValue;
487
+ const search = filterValue == null || (_filterValue$toString = filterValue.toString()) == null ? void 0 : _filterValue$toString.toLowerCase();
488
+ return Boolean((_row$getValue = row.getValue(columnId)) == null || (_row$getValue = _row$getValue.toString()) == null || (_row$getValue = _row$getValue.toLowerCase()) == null ? void 0 : _row$getValue.includes(search));
489
+ };
490
+ includesString.autoRemove = (val) => testFalsey(val);
491
+ const includesStringSensitive = (row, columnId, filterValue) => {
492
+ var _row$getValue2;
493
+ return Boolean((_row$getValue2 = row.getValue(columnId)) == null || (_row$getValue2 = _row$getValue2.toString()) == null ? void 0 : _row$getValue2.includes(filterValue));
494
+ };
495
+ includesStringSensitive.autoRemove = (val) => testFalsey(val);
496
+ const equalsString = (row, columnId, filterValue) => {
497
+ var _row$getValue3;
498
+ return ((_row$getValue3 = row.getValue(columnId)) == null || (_row$getValue3 = _row$getValue3.toString()) == null ? void 0 : _row$getValue3.toLowerCase()) === (filterValue == null ? void 0 : filterValue.toLowerCase());
499
+ };
500
+ equalsString.autoRemove = (val) => testFalsey(val);
501
+ const arrIncludes = (row, columnId, filterValue) => {
502
+ var _row$getValue4;
503
+ return (_row$getValue4 = row.getValue(columnId)) == null ? void 0 : _row$getValue4.includes(filterValue);
504
+ };
505
+ arrIncludes.autoRemove = (val) => testFalsey(val) || !(val != null && val.length);
506
+ const arrIncludesAll = (row, columnId, filterValue) => {
507
+ return !filterValue.some((val) => {
508
+ var _row$getValue5;
509
+ return !((_row$getValue5 = row.getValue(columnId)) != null && _row$getValue5.includes(val));
510
+ });
511
+ };
512
+ arrIncludesAll.autoRemove = (val) => testFalsey(val) || !(val != null && val.length);
513
+ const arrIncludesSome = (row, columnId, filterValue) => {
514
+ return filterValue.some((val) => {
515
+ var _row$getValue6;
516
+ return (_row$getValue6 = row.getValue(columnId)) == null ? void 0 : _row$getValue6.includes(val);
517
+ });
518
+ };
519
+ arrIncludesSome.autoRemove = (val) => testFalsey(val) || !(val != null && val.length);
520
+ const equals = (row, columnId, filterValue) => {
521
+ return row.getValue(columnId) === filterValue;
522
+ };
523
+ equals.autoRemove = (val) => testFalsey(val);
524
+ const weakEquals = (row, columnId, filterValue) => {
525
+ return row.getValue(columnId) == filterValue;
526
+ };
527
+ weakEquals.autoRemove = (val) => testFalsey(val);
528
+ const inNumberRange = (row, columnId, filterValue) => {
529
+ let [min2, max2] = filterValue;
530
+ const rowValue = row.getValue(columnId);
531
+ return rowValue >= min2 && rowValue <= max2;
532
+ };
533
+ inNumberRange.resolveFilterValue = (val) => {
534
+ let [unsafeMin, unsafeMax] = val;
535
+ let parsedMin = typeof unsafeMin !== "number" ? parseFloat(unsafeMin) : unsafeMin;
536
+ let parsedMax = typeof unsafeMax !== "number" ? parseFloat(unsafeMax) : unsafeMax;
537
+ let min2 = unsafeMin === null || Number.isNaN(parsedMin) ? -Infinity : parsedMin;
538
+ let max2 = unsafeMax === null || Number.isNaN(parsedMax) ? Infinity : parsedMax;
539
+ if (min2 > max2) {
540
+ const temp = min2;
541
+ min2 = max2;
542
+ max2 = temp;
543
+ }
544
+ return [min2, max2];
545
+ };
546
+ inNumberRange.autoRemove = (val) => testFalsey(val) || testFalsey(val[0]) && testFalsey(val[1]);
547
+ const filterFns = {
548
+ includesString,
549
+ includesStringSensitive,
550
+ equalsString,
551
+ arrIncludes,
552
+ arrIncludesAll,
553
+ arrIncludesSome,
554
+ equals,
555
+ weakEquals,
556
+ inNumberRange
557
+ };
558
+ function testFalsey(val) {
559
+ return val === void 0 || val === null || val === "";
560
+ }
561
+ const ColumnFiltering = {
562
+ getDefaultColumnDef: () => {
563
+ return {
564
+ filterFn: "auto"
565
+ };
566
+ },
567
+ getInitialState: (state) => {
568
+ return {
569
+ columnFilters: [],
570
+ ...state
571
+ };
572
+ },
573
+ getDefaultOptions: (table) => {
574
+ return {
575
+ onColumnFiltersChange: makeStateUpdater("columnFilters", table),
576
+ filterFromLeafRows: false,
577
+ maxLeafRowFilterDepth: 100
578
+ };
579
+ },
580
+ createColumn: (column, table) => {
581
+ column.getAutoFilterFn = () => {
582
+ const firstRow = table.getCoreRowModel().flatRows[0];
583
+ const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
584
+ if (typeof value === "string") {
585
+ return filterFns.includesString;
586
+ }
587
+ if (typeof value === "number") {
588
+ return filterFns.inNumberRange;
589
+ }
590
+ if (typeof value === "boolean") {
591
+ return filterFns.equals;
592
+ }
593
+ if (value !== null && typeof value === "object") {
594
+ return filterFns.equals;
595
+ }
596
+ if (Array.isArray(value)) {
597
+ return filterFns.arrIncludes;
598
+ }
599
+ return filterFns.weakEquals;
600
+ };
601
+ column.getFilterFn = () => {
602
+ var _table$options$filter, _table$options$filter2;
603
+ return isFunction(column.columnDef.filterFn) ? column.columnDef.filterFn : column.columnDef.filterFn === "auto" ? column.getAutoFilterFn() : (
604
+ // @ts-ignore
605
+ (_table$options$filter = (_table$options$filter2 = table.options.filterFns) == null ? void 0 : _table$options$filter2[column.columnDef.filterFn]) != null ? _table$options$filter : filterFns[column.columnDef.filterFn]
606
+ );
607
+ };
608
+ column.getCanFilter = () => {
609
+ var _column$columnDef$ena, _table$options$enable, _table$options$enable2;
610
+ return ((_column$columnDef$ena = column.columnDef.enableColumnFilter) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableColumnFilters) != null ? _table$options$enable : true) && ((_table$options$enable2 = table.options.enableFilters) != null ? _table$options$enable2 : true) && !!column.accessorFn;
611
+ };
612
+ column.getIsFiltered = () => column.getFilterIndex() > -1;
613
+ column.getFilterValue = () => {
614
+ var _table$getState$colum;
615
+ return (_table$getState$colum = table.getState().columnFilters) == null || (_table$getState$colum = _table$getState$colum.find((d) => d.id === column.id)) == null ? void 0 : _table$getState$colum.value;
616
+ };
617
+ column.getFilterIndex = () => {
618
+ var _table$getState$colum2, _table$getState$colum3;
619
+ return (_table$getState$colum2 = (_table$getState$colum3 = table.getState().columnFilters) == null ? void 0 : _table$getState$colum3.findIndex((d) => d.id === column.id)) != null ? _table$getState$colum2 : -1;
620
+ };
621
+ column.setFilterValue = (value) => {
622
+ table.setColumnFilters((old) => {
623
+ const filterFn = column.getFilterFn();
624
+ const previousFilter = old == null ? void 0 : old.find((d) => d.id === column.id);
625
+ const newFilter = functionalUpdate(value, previousFilter ? previousFilter.value : void 0);
626
+ if (shouldAutoRemoveFilter(filterFn, newFilter, column)) {
627
+ var _old$filter;
628
+ return (_old$filter = old == null ? void 0 : old.filter((d) => d.id !== column.id)) != null ? _old$filter : [];
629
+ }
630
+ const newFilterObj = {
631
+ id: column.id,
632
+ value: newFilter
633
+ };
634
+ if (previousFilter) {
635
+ var _old$map;
636
+ return (_old$map = old == null ? void 0 : old.map((d) => {
637
+ if (d.id === column.id) {
638
+ return newFilterObj;
639
+ }
640
+ return d;
641
+ })) != null ? _old$map : [];
642
+ }
643
+ if (old != null && old.length) {
644
+ return [...old, newFilterObj];
645
+ }
646
+ return [newFilterObj];
647
+ });
648
+ };
649
+ },
650
+ createRow: (row, _table) => {
651
+ row.columnFilters = {};
652
+ row.columnFiltersMeta = {};
653
+ },
654
+ createTable: (table) => {
655
+ table.setColumnFilters = (updater) => {
656
+ const leafColumns = table.getAllLeafColumns();
657
+ const updateFn = (old) => {
658
+ var _functionalUpdate;
659
+ return (_functionalUpdate = functionalUpdate(updater, old)) == null ? void 0 : _functionalUpdate.filter((filter) => {
660
+ const column = leafColumns.find((d) => d.id === filter.id);
661
+ if (column) {
662
+ const filterFn = column.getFilterFn();
663
+ if (shouldAutoRemoveFilter(filterFn, filter.value, column)) {
664
+ return false;
665
+ }
666
+ }
667
+ return true;
668
+ });
669
+ };
670
+ table.options.onColumnFiltersChange == null || table.options.onColumnFiltersChange(updateFn);
671
+ };
672
+ table.resetColumnFilters = (defaultState) => {
673
+ var _table$initialState$c, _table$initialState;
674
+ table.setColumnFilters(defaultState ? [] : (_table$initialState$c = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.columnFilters) != null ? _table$initialState$c : []);
675
+ };
676
+ table.getPreFilteredRowModel = () => table.getCoreRowModel();
677
+ table.getFilteredRowModel = () => {
678
+ if (!table._getFilteredRowModel && table.options.getFilteredRowModel) {
679
+ table._getFilteredRowModel = table.options.getFilteredRowModel(table);
680
+ }
681
+ if (table.options.manualFiltering || !table._getFilteredRowModel) {
682
+ return table.getPreFilteredRowModel();
683
+ }
684
+ return table._getFilteredRowModel();
685
+ };
686
+ }
687
+ };
688
+ function shouldAutoRemoveFilter(filterFn, value, column) {
689
+ return (filterFn && filterFn.autoRemove ? filterFn.autoRemove(value, column) : false) || typeof value === "undefined" || typeof value === "string" && !value;
690
+ }
691
+ const sum = (columnId, _leafRows, childRows) => {
692
+ return childRows.reduce((sum2, next) => {
693
+ const nextValue = next.getValue(columnId);
694
+ return sum2 + (typeof nextValue === "number" ? nextValue : 0);
695
+ }, 0);
696
+ };
697
+ const min = (columnId, _leafRows, childRows) => {
698
+ let min2;
699
+ childRows.forEach((row) => {
700
+ const value = row.getValue(columnId);
701
+ if (value != null && (min2 > value || min2 === void 0 && value >= value)) {
702
+ min2 = value;
703
+ }
704
+ });
705
+ return min2;
706
+ };
707
+ const max = (columnId, _leafRows, childRows) => {
708
+ let max2;
709
+ childRows.forEach((row) => {
710
+ const value = row.getValue(columnId);
711
+ if (value != null && (max2 < value || max2 === void 0 && value >= value)) {
712
+ max2 = value;
713
+ }
714
+ });
715
+ return max2;
716
+ };
717
+ const extent = (columnId, _leafRows, childRows) => {
718
+ let min2;
719
+ let max2;
720
+ childRows.forEach((row) => {
721
+ const value = row.getValue(columnId);
722
+ if (value != null) {
723
+ if (min2 === void 0) {
724
+ if (value >= value) min2 = max2 = value;
725
+ } else {
726
+ if (min2 > value) min2 = value;
727
+ if (max2 < value) max2 = value;
728
+ }
729
+ }
730
+ });
731
+ return [min2, max2];
732
+ };
733
+ const mean = (columnId, leafRows) => {
734
+ let count2 = 0;
735
+ let sum2 = 0;
736
+ leafRows.forEach((row) => {
737
+ let value = row.getValue(columnId);
738
+ if (value != null && (value = +value) >= value) {
739
+ ++count2, sum2 += value;
740
+ }
741
+ });
742
+ if (count2) return sum2 / count2;
743
+ return;
744
+ };
745
+ const median = (columnId, leafRows) => {
746
+ if (!leafRows.length) {
747
+ return;
748
+ }
749
+ const values = leafRows.map((row) => row.getValue(columnId));
750
+ if (!isNumberArray(values)) {
751
+ return;
752
+ }
753
+ if (values.length === 1) {
754
+ return values[0];
755
+ }
756
+ const mid = Math.floor(values.length / 2);
757
+ const nums = values.sort((a, b) => a - b);
758
+ return values.length % 2 !== 0 ? nums[mid] : (nums[mid - 1] + nums[mid]) / 2;
759
+ };
760
+ const unique = (columnId, leafRows) => {
761
+ return Array.from(new Set(leafRows.map((d) => d.getValue(columnId))).values());
762
+ };
763
+ const uniqueCount = (columnId, leafRows) => {
764
+ return new Set(leafRows.map((d) => d.getValue(columnId))).size;
765
+ };
766
+ const count = (_columnId, leafRows) => {
767
+ return leafRows.length;
768
+ };
769
+ const aggregationFns = {
770
+ sum,
771
+ min,
772
+ max,
773
+ extent,
774
+ mean,
775
+ median,
776
+ unique,
777
+ uniqueCount,
778
+ count
779
+ };
780
+ const ColumnGrouping = {
781
+ getDefaultColumnDef: () => {
782
+ return {
783
+ aggregatedCell: (props) => {
784
+ var _toString, _props$getValue;
785
+ return (_toString = (_props$getValue = props.getValue()) == null || _props$getValue.toString == null ? void 0 : _props$getValue.toString()) != null ? _toString : null;
786
+ },
787
+ aggregationFn: "auto"
788
+ };
789
+ },
790
+ getInitialState: (state) => {
791
+ return {
792
+ grouping: [],
793
+ ...state
794
+ };
795
+ },
796
+ getDefaultOptions: (table) => {
797
+ return {
798
+ onGroupingChange: makeStateUpdater("grouping", table),
799
+ groupedColumnMode: "reorder"
800
+ };
801
+ },
802
+ createColumn: (column, table) => {
803
+ column.toggleGrouping = () => {
804
+ table.setGrouping((old) => {
805
+ if (old != null && old.includes(column.id)) {
806
+ return old.filter((d) => d !== column.id);
807
+ }
808
+ return [...old != null ? old : [], column.id];
809
+ });
810
+ };
811
+ column.getCanGroup = () => {
812
+ var _column$columnDef$ena, _table$options$enable;
813
+ return ((_column$columnDef$ena = column.columnDef.enableGrouping) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableGrouping) != null ? _table$options$enable : true) && (!!column.accessorFn || !!column.columnDef.getGroupingValue);
814
+ };
815
+ column.getIsGrouped = () => {
816
+ var _table$getState$group;
817
+ return (_table$getState$group = table.getState().grouping) == null ? void 0 : _table$getState$group.includes(column.id);
818
+ };
819
+ column.getGroupedIndex = () => {
820
+ var _table$getState$group2;
821
+ return (_table$getState$group2 = table.getState().grouping) == null ? void 0 : _table$getState$group2.indexOf(column.id);
822
+ };
823
+ column.getToggleGroupingHandler = () => {
824
+ const canGroup = column.getCanGroup();
825
+ return () => {
826
+ if (!canGroup) return;
827
+ column.toggleGrouping();
828
+ };
829
+ };
830
+ column.getAutoAggregationFn = () => {
831
+ const firstRow = table.getCoreRowModel().flatRows[0];
832
+ const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
833
+ if (typeof value === "number") {
834
+ return aggregationFns.sum;
835
+ }
836
+ if (Object.prototype.toString.call(value) === "[object Date]") {
837
+ return aggregationFns.extent;
838
+ }
839
+ };
840
+ column.getAggregationFn = () => {
841
+ var _table$options$aggreg, _table$options$aggreg2;
842
+ if (!column) {
843
+ throw new Error();
844
+ }
845
+ return isFunction(column.columnDef.aggregationFn) ? column.columnDef.aggregationFn : column.columnDef.aggregationFn === "auto" ? column.getAutoAggregationFn() : (_table$options$aggreg = (_table$options$aggreg2 = table.options.aggregationFns) == null ? void 0 : _table$options$aggreg2[column.columnDef.aggregationFn]) != null ? _table$options$aggreg : aggregationFns[column.columnDef.aggregationFn];
846
+ };
847
+ },
848
+ createTable: (table) => {
849
+ table.setGrouping = (updater) => table.options.onGroupingChange == null ? void 0 : table.options.onGroupingChange(updater);
850
+ table.resetGrouping = (defaultState) => {
851
+ var _table$initialState$g, _table$initialState;
852
+ table.setGrouping(defaultState ? [] : (_table$initialState$g = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.grouping) != null ? _table$initialState$g : []);
853
+ };
854
+ table.getPreGroupedRowModel = () => table.getFilteredRowModel();
855
+ table.getGroupedRowModel = () => {
856
+ if (!table._getGroupedRowModel && table.options.getGroupedRowModel) {
857
+ table._getGroupedRowModel = table.options.getGroupedRowModel(table);
858
+ }
859
+ if (table.options.manualGrouping || !table._getGroupedRowModel) {
860
+ return table.getPreGroupedRowModel();
861
+ }
862
+ return table._getGroupedRowModel();
863
+ };
864
+ },
865
+ createRow: (row, table) => {
866
+ row.getIsGrouped = () => !!row.groupingColumnId;
867
+ row.getGroupingValue = (columnId) => {
868
+ if (row._groupingValuesCache.hasOwnProperty(columnId)) {
869
+ return row._groupingValuesCache[columnId];
870
+ }
871
+ const column = table.getColumn(columnId);
872
+ if (!(column != null && column.columnDef.getGroupingValue)) {
873
+ return row.getValue(columnId);
874
+ }
875
+ row._groupingValuesCache[columnId] = column.columnDef.getGroupingValue(row.original);
876
+ return row._groupingValuesCache[columnId];
877
+ };
878
+ row._groupingValuesCache = {};
879
+ },
880
+ createCell: (cell, column, row, table) => {
881
+ cell.getIsGrouped = () => column.getIsGrouped() && column.id === row.groupingColumnId;
882
+ cell.getIsPlaceholder = () => !cell.getIsGrouped() && column.getIsGrouped();
883
+ cell.getIsAggregated = () => {
884
+ var _row$subRows;
885
+ return !cell.getIsGrouped() && !cell.getIsPlaceholder() && !!((_row$subRows = row.subRows) != null && _row$subRows.length);
886
+ };
887
+ }
888
+ };
889
+ function orderColumns(leafColumns, grouping, groupedColumnMode) {
890
+ if (!(grouping != null && grouping.length) || !groupedColumnMode) {
891
+ return leafColumns;
892
+ }
893
+ const nonGroupingColumns = leafColumns.filter((col) => !grouping.includes(col.id));
894
+ if (groupedColumnMode === "remove") {
895
+ return nonGroupingColumns;
896
+ }
897
+ const groupingColumns = grouping.map((g) => leafColumns.find((col) => col.id === g)).filter(Boolean);
898
+ return [...groupingColumns, ...nonGroupingColumns];
899
+ }
900
+ const ColumnOrdering = {
901
+ getInitialState: (state) => {
902
+ return {
903
+ columnOrder: [],
904
+ ...state
905
+ };
906
+ },
907
+ getDefaultOptions: (table) => {
908
+ return {
909
+ onColumnOrderChange: makeStateUpdater("columnOrder", table)
910
+ };
911
+ },
912
+ createColumn: (column, table) => {
913
+ column.getIndex = memo((position) => [_getVisibleLeafColumns(table, position)], (columns) => columns.findIndex((d) => d.id === column.id), getMemoOptions(table.options, "debugColumns", "getIndex"));
914
+ column.getIsFirstColumn = (position) => {
915
+ var _columns$;
916
+ const columns = _getVisibleLeafColumns(table, position);
917
+ return ((_columns$ = columns[0]) == null ? void 0 : _columns$.id) === column.id;
918
+ };
919
+ column.getIsLastColumn = (position) => {
920
+ var _columns;
921
+ const columns = _getVisibleLeafColumns(table, position);
922
+ return ((_columns = columns[columns.length - 1]) == null ? void 0 : _columns.id) === column.id;
923
+ };
924
+ },
925
+ createTable: (table) => {
926
+ table.setColumnOrder = (updater) => table.options.onColumnOrderChange == null ? void 0 : table.options.onColumnOrderChange(updater);
927
+ table.resetColumnOrder = (defaultState) => {
928
+ var _table$initialState$c;
929
+ table.setColumnOrder(defaultState ? [] : (_table$initialState$c = table.initialState.columnOrder) != null ? _table$initialState$c : []);
930
+ };
931
+ table._getOrderColumnsFn = memo(() => [table.getState().columnOrder, table.getState().grouping, table.options.groupedColumnMode], (columnOrder, grouping, groupedColumnMode) => (columns) => {
932
+ let orderedColumns = [];
933
+ if (!(columnOrder != null && columnOrder.length)) {
934
+ orderedColumns = columns;
935
+ } else {
936
+ const columnOrderCopy = [...columnOrder];
937
+ const columnsCopy = [...columns];
938
+ while (columnsCopy.length && columnOrderCopy.length) {
939
+ const targetColumnId = columnOrderCopy.shift();
940
+ const foundIndex = columnsCopy.findIndex((d) => d.id === targetColumnId);
941
+ if (foundIndex > -1) {
942
+ orderedColumns.push(columnsCopy.splice(foundIndex, 1)[0]);
943
+ }
944
+ }
945
+ orderedColumns = [...orderedColumns, ...columnsCopy];
946
+ }
947
+ return orderColumns(orderedColumns, grouping, groupedColumnMode);
948
+ }, getMemoOptions(table.options, "debugTable", "_getOrderColumnsFn"));
949
+ }
950
+ };
951
+ const getDefaultColumnPinningState = () => ({
952
+ left: [],
953
+ right: []
954
+ });
955
+ const ColumnPinning = {
956
+ getInitialState: (state) => {
957
+ return {
958
+ columnPinning: getDefaultColumnPinningState(),
959
+ ...state
960
+ };
961
+ },
962
+ getDefaultOptions: (table) => {
963
+ return {
964
+ onColumnPinningChange: makeStateUpdater("columnPinning", table)
965
+ };
966
+ },
967
+ createColumn: (column, table) => {
968
+ column.pin = (position) => {
969
+ const columnIds = column.getLeafColumns().map((d) => d.id).filter(Boolean);
970
+ table.setColumnPinning((old) => {
971
+ var _old$left3, _old$right3;
972
+ if (position === "right") {
973
+ var _old$left, _old$right;
974
+ return {
975
+ left: ((_old$left = old == null ? void 0 : old.left) != null ? _old$left : []).filter((d) => !(columnIds != null && columnIds.includes(d))),
976
+ right: [...((_old$right = old == null ? void 0 : old.right) != null ? _old$right : []).filter((d) => !(columnIds != null && columnIds.includes(d))), ...columnIds]
977
+ };
978
+ }
979
+ if (position === "left") {
980
+ var _old$left2, _old$right2;
981
+ return {
982
+ left: [...((_old$left2 = old == null ? void 0 : old.left) != null ? _old$left2 : []).filter((d) => !(columnIds != null && columnIds.includes(d))), ...columnIds],
983
+ right: ((_old$right2 = old == null ? void 0 : old.right) != null ? _old$right2 : []).filter((d) => !(columnIds != null && columnIds.includes(d)))
984
+ };
985
+ }
986
+ return {
987
+ left: ((_old$left3 = old == null ? void 0 : old.left) != null ? _old$left3 : []).filter((d) => !(columnIds != null && columnIds.includes(d))),
988
+ right: ((_old$right3 = old == null ? void 0 : old.right) != null ? _old$right3 : []).filter((d) => !(columnIds != null && columnIds.includes(d)))
989
+ };
990
+ });
991
+ };
992
+ column.getCanPin = () => {
993
+ const leafColumns = column.getLeafColumns();
994
+ return leafColumns.some((d) => {
995
+ var _d$columnDef$enablePi, _ref, _table$options$enable;
996
+ return ((_d$columnDef$enablePi = d.columnDef.enablePinning) != null ? _d$columnDef$enablePi : true) && ((_ref = (_table$options$enable = table.options.enableColumnPinning) != null ? _table$options$enable : table.options.enablePinning) != null ? _ref : true);
997
+ });
998
+ };
999
+ column.getIsPinned = () => {
1000
+ const leafColumnIds = column.getLeafColumns().map((d) => d.id);
1001
+ const {
1002
+ left,
1003
+ right
1004
+ } = table.getState().columnPinning;
1005
+ const isLeft = leafColumnIds.some((d) => left == null ? void 0 : left.includes(d));
1006
+ const isRight = leafColumnIds.some((d) => right == null ? void 0 : right.includes(d));
1007
+ return isLeft ? "left" : isRight ? "right" : false;
1008
+ };
1009
+ column.getPinnedIndex = () => {
1010
+ var _table$getState$colum, _table$getState$colum2;
1011
+ const position = column.getIsPinned();
1012
+ return position ? (_table$getState$colum = (_table$getState$colum2 = table.getState().columnPinning) == null || (_table$getState$colum2 = _table$getState$colum2[position]) == null ? void 0 : _table$getState$colum2.indexOf(column.id)) != null ? _table$getState$colum : -1 : 0;
1013
+ };
1014
+ },
1015
+ createRow: (row, table) => {
1016
+ row.getCenterVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allCells, left, right) => {
1017
+ const leftAndRight = [...left != null ? left : [], ...right != null ? right : []];
1018
+ return allCells.filter((d) => !leftAndRight.includes(d.column.id));
1019
+ }, getMemoOptions(table.options, "debugRows", "getCenterVisibleCells"));
1020
+ row.getLeftVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.left], (allCells, left) => {
1021
+ const cells = (left != null ? left : []).map((columnId) => allCells.find((cell) => cell.column.id === columnId)).filter(Boolean).map((d) => ({
1022
+ ...d,
1023
+ position: "left"
1024
+ }));
1025
+ return cells;
1026
+ }, getMemoOptions(table.options, "debugRows", "getLeftVisibleCells"));
1027
+ row.getRightVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.right], (allCells, right) => {
1028
+ const cells = (right != null ? right : []).map((columnId) => allCells.find((cell) => cell.column.id === columnId)).filter(Boolean).map((d) => ({
1029
+ ...d,
1030
+ position: "right"
1031
+ }));
1032
+ return cells;
1033
+ }, getMemoOptions(table.options, "debugRows", "getRightVisibleCells"));
1034
+ },
1035
+ createTable: (table) => {
1036
+ table.setColumnPinning = (updater) => table.options.onColumnPinningChange == null ? void 0 : table.options.onColumnPinningChange(updater);
1037
+ table.resetColumnPinning = (defaultState) => {
1038
+ var _table$initialState$c, _table$initialState;
1039
+ return table.setColumnPinning(defaultState ? getDefaultColumnPinningState() : (_table$initialState$c = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.columnPinning) != null ? _table$initialState$c : getDefaultColumnPinningState());
1040
+ };
1041
+ table.getIsSomeColumnsPinned = (position) => {
1042
+ var _pinningState$positio;
1043
+ const pinningState = table.getState().columnPinning;
1044
+ if (!position) {
1045
+ var _pinningState$left, _pinningState$right;
1046
+ return Boolean(((_pinningState$left = pinningState.left) == null ? void 0 : _pinningState$left.length) || ((_pinningState$right = pinningState.right) == null ? void 0 : _pinningState$right.length));
1047
+ }
1048
+ return Boolean((_pinningState$positio = pinningState[position]) == null ? void 0 : _pinningState$positio.length);
1049
+ };
1050
+ table.getLeftLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.left], (allColumns, left) => {
1051
+ return (left != null ? left : []).map((columnId) => allColumns.find((column) => column.id === columnId)).filter(Boolean);
1052
+ }, getMemoOptions(table.options, "debugColumns", "getLeftLeafColumns"));
1053
+ table.getRightLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.right], (allColumns, right) => {
1054
+ return (right != null ? right : []).map((columnId) => allColumns.find((column) => column.id === columnId)).filter(Boolean);
1055
+ }, getMemoOptions(table.options, "debugColumns", "getRightLeafColumns"));
1056
+ table.getCenterLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, left, right) => {
1057
+ const leftAndRight = [...left != null ? left : [], ...right != null ? right : []];
1058
+ return allColumns.filter((d) => !leftAndRight.includes(d.id));
1059
+ }, getMemoOptions(table.options, "debugColumns", "getCenterLeafColumns"));
1060
+ }
1061
+ };
1062
+ const defaultColumnSizing = {
1063
+ size: 150,
1064
+ minSize: 20,
1065
+ maxSize: Number.MAX_SAFE_INTEGER
1066
+ };
1067
+ const getDefaultColumnSizingInfoState = () => ({
1068
+ startOffset: null,
1069
+ startSize: null,
1070
+ deltaOffset: null,
1071
+ deltaPercentage: null,
1072
+ isResizingColumn: false,
1073
+ columnSizingStart: []
1074
+ });
1075
+ const ColumnSizing = {
1076
+ getDefaultColumnDef: () => {
1077
+ return defaultColumnSizing;
1078
+ },
1079
+ getInitialState: (state) => {
1080
+ return {
1081
+ columnSizing: {},
1082
+ columnSizingInfo: getDefaultColumnSizingInfoState(),
1083
+ ...state
1084
+ };
1085
+ },
1086
+ getDefaultOptions: (table) => {
1087
+ return {
1088
+ columnResizeMode: "onEnd",
1089
+ columnResizeDirection: "ltr",
1090
+ onColumnSizingChange: makeStateUpdater("columnSizing", table),
1091
+ onColumnSizingInfoChange: makeStateUpdater("columnSizingInfo", table)
1092
+ };
1093
+ },
1094
+ createColumn: (column, table) => {
1095
+ column.getSize = () => {
1096
+ var _column$columnDef$min, _ref, _column$columnDef$max;
1097
+ const columnSize = table.getState().columnSizing[column.id];
1098
+ return Math.min(Math.max((_column$columnDef$min = column.columnDef.minSize) != null ? _column$columnDef$min : defaultColumnSizing.minSize, (_ref = columnSize != null ? columnSize : column.columnDef.size) != null ? _ref : defaultColumnSizing.size), (_column$columnDef$max = column.columnDef.maxSize) != null ? _column$columnDef$max : defaultColumnSizing.maxSize);
1099
+ };
1100
+ column.getStart = memo((position) => [position, _getVisibleLeafColumns(table, position), table.getState().columnSizing], (position, columns) => columns.slice(0, column.getIndex(position)).reduce((sum2, column2) => sum2 + column2.getSize(), 0), getMemoOptions(table.options, "debugColumns", "getStart"));
1101
+ column.getAfter = memo((position) => [position, _getVisibleLeafColumns(table, position), table.getState().columnSizing], (position, columns) => columns.slice(column.getIndex(position) + 1).reduce((sum2, column2) => sum2 + column2.getSize(), 0), getMemoOptions(table.options, "debugColumns", "getAfter"));
1102
+ column.resetSize = () => {
1103
+ table.setColumnSizing((_ref2) => {
1104
+ let {
1105
+ [column.id]: _,
1106
+ ...rest
1107
+ } = _ref2;
1108
+ return rest;
1109
+ });
1110
+ };
1111
+ column.getCanResize = () => {
1112
+ var _column$columnDef$ena, _table$options$enable;
1113
+ return ((_column$columnDef$ena = column.columnDef.enableResizing) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableColumnResizing) != null ? _table$options$enable : true);
1114
+ };
1115
+ column.getIsResizing = () => {
1116
+ return table.getState().columnSizingInfo.isResizingColumn === column.id;
1117
+ };
1118
+ },
1119
+ createHeader: (header, table) => {
1120
+ header.getSize = () => {
1121
+ let sum2 = 0;
1122
+ const recurse = (header2) => {
1123
+ if (header2.subHeaders.length) {
1124
+ header2.subHeaders.forEach(recurse);
1125
+ } else {
1126
+ var _header$column$getSiz;
1127
+ sum2 += (_header$column$getSiz = header2.column.getSize()) != null ? _header$column$getSiz : 0;
1128
+ }
1129
+ };
1130
+ recurse(header);
1131
+ return sum2;
1132
+ };
1133
+ header.getStart = () => {
1134
+ if (header.index > 0) {
1135
+ const prevSiblingHeader = header.headerGroup.headers[header.index - 1];
1136
+ return prevSiblingHeader.getStart() + prevSiblingHeader.getSize();
1137
+ }
1138
+ return 0;
1139
+ };
1140
+ header.getResizeHandler = (_contextDocument) => {
1141
+ const column = table.getColumn(header.column.id);
1142
+ const canResize = column == null ? void 0 : column.getCanResize();
1143
+ return (e) => {
1144
+ if (!column || !canResize) {
1145
+ return;
1146
+ }
1147
+ e.persist == null || e.persist();
1148
+ if (isTouchStartEvent(e)) {
1149
+ if (e.touches && e.touches.length > 1) {
1150
+ return;
1151
+ }
1152
+ }
1153
+ const startSize = header.getSize();
1154
+ const columnSizingStart = header ? header.getLeafHeaders().map((d) => [d.column.id, d.column.getSize()]) : [[column.id, column.getSize()]];
1155
+ const clientX = isTouchStartEvent(e) ? Math.round(e.touches[0].clientX) : e.clientX;
1156
+ const newColumnSizing = {};
1157
+ const updateOffset = (eventType, clientXPos) => {
1158
+ if (typeof clientXPos !== "number") {
1159
+ return;
1160
+ }
1161
+ table.setColumnSizingInfo((old) => {
1162
+ var _old$startOffset, _old$startSize;
1163
+ const deltaDirection = table.options.columnResizeDirection === "rtl" ? -1 : 1;
1164
+ const deltaOffset = (clientXPos - ((_old$startOffset = old == null ? void 0 : old.startOffset) != null ? _old$startOffset : 0)) * deltaDirection;
1165
+ const deltaPercentage = Math.max(deltaOffset / ((_old$startSize = old == null ? void 0 : old.startSize) != null ? _old$startSize : 0), -0.999999);
1166
+ old.columnSizingStart.forEach((_ref3) => {
1167
+ let [columnId, headerSize] = _ref3;
1168
+ newColumnSizing[columnId] = Math.round(Math.max(headerSize + headerSize * deltaPercentage, 0) * 100) / 100;
1169
+ });
1170
+ return {
1171
+ ...old,
1172
+ deltaOffset,
1173
+ deltaPercentage
1174
+ };
1175
+ });
1176
+ if (table.options.columnResizeMode === "onChange" || eventType === "end") {
1177
+ table.setColumnSizing((old) => ({
1178
+ ...old,
1179
+ ...newColumnSizing
1180
+ }));
1181
+ }
1182
+ };
1183
+ const onMove = (clientXPos) => updateOffset("move", clientXPos);
1184
+ const onEnd = (clientXPos) => {
1185
+ updateOffset("end", clientXPos);
1186
+ table.setColumnSizingInfo((old) => ({
1187
+ ...old,
1188
+ isResizingColumn: false,
1189
+ startOffset: null,
1190
+ startSize: null,
1191
+ deltaOffset: null,
1192
+ deltaPercentage: null,
1193
+ columnSizingStart: []
1194
+ }));
1195
+ };
1196
+ const contextDocument = _contextDocument || typeof document !== "undefined" ? document : null;
1197
+ const mouseEvents = {
1198
+ moveHandler: (e2) => onMove(e2.clientX),
1199
+ upHandler: (e2) => {
1200
+ contextDocument == null || contextDocument.removeEventListener("mousemove", mouseEvents.moveHandler);
1201
+ contextDocument == null || contextDocument.removeEventListener("mouseup", mouseEvents.upHandler);
1202
+ onEnd(e2.clientX);
1203
+ }
1204
+ };
1205
+ const touchEvents = {
1206
+ moveHandler: (e2) => {
1207
+ if (e2.cancelable) {
1208
+ e2.preventDefault();
1209
+ e2.stopPropagation();
1210
+ }
1211
+ onMove(e2.touches[0].clientX);
1212
+ return false;
1213
+ },
1214
+ upHandler: (e2) => {
1215
+ var _e$touches$;
1216
+ contextDocument == null || contextDocument.removeEventListener("touchmove", touchEvents.moveHandler);
1217
+ contextDocument == null || contextDocument.removeEventListener("touchend", touchEvents.upHandler);
1218
+ if (e2.cancelable) {
1219
+ e2.preventDefault();
1220
+ e2.stopPropagation();
1221
+ }
1222
+ onEnd((_e$touches$ = e2.touches[0]) == null ? void 0 : _e$touches$.clientX);
1223
+ }
1224
+ };
1225
+ const passiveIfSupported = passiveEventSupported() ? {
1226
+ passive: false
1227
+ } : false;
1228
+ if (isTouchStartEvent(e)) {
1229
+ contextDocument == null || contextDocument.addEventListener("touchmove", touchEvents.moveHandler, passiveIfSupported);
1230
+ contextDocument == null || contextDocument.addEventListener("touchend", touchEvents.upHandler, passiveIfSupported);
1231
+ } else {
1232
+ contextDocument == null || contextDocument.addEventListener("mousemove", mouseEvents.moveHandler, passiveIfSupported);
1233
+ contextDocument == null || contextDocument.addEventListener("mouseup", mouseEvents.upHandler, passiveIfSupported);
1234
+ }
1235
+ table.setColumnSizingInfo((old) => ({
1236
+ ...old,
1237
+ startOffset: clientX,
1238
+ startSize,
1239
+ deltaOffset: 0,
1240
+ deltaPercentage: 0,
1241
+ columnSizingStart,
1242
+ isResizingColumn: column.id
1243
+ }));
1244
+ };
1245
+ };
1246
+ },
1247
+ createTable: (table) => {
1248
+ table.setColumnSizing = (updater) => table.options.onColumnSizingChange == null ? void 0 : table.options.onColumnSizingChange(updater);
1249
+ table.setColumnSizingInfo = (updater) => table.options.onColumnSizingInfoChange == null ? void 0 : table.options.onColumnSizingInfoChange(updater);
1250
+ table.resetColumnSizing = (defaultState) => {
1251
+ var _table$initialState$c;
1252
+ table.setColumnSizing(defaultState ? {} : (_table$initialState$c = table.initialState.columnSizing) != null ? _table$initialState$c : {});
1253
+ };
1254
+ table.resetHeaderSizeInfo = (defaultState) => {
1255
+ var _table$initialState$c2;
1256
+ table.setColumnSizingInfo(defaultState ? getDefaultColumnSizingInfoState() : (_table$initialState$c2 = table.initialState.columnSizingInfo) != null ? _table$initialState$c2 : getDefaultColumnSizingInfoState());
1257
+ };
1258
+ table.getTotalSize = () => {
1259
+ var _table$getHeaderGroup, _table$getHeaderGroup2;
1260
+ return (_table$getHeaderGroup = (_table$getHeaderGroup2 = table.getHeaderGroups()[0]) == null ? void 0 : _table$getHeaderGroup2.headers.reduce((sum2, header) => {
1261
+ return sum2 + header.getSize();
1262
+ }, 0)) != null ? _table$getHeaderGroup : 0;
1263
+ };
1264
+ table.getLeftTotalSize = () => {
1265
+ var _table$getLeftHeaderG, _table$getLeftHeaderG2;
1266
+ return (_table$getLeftHeaderG = (_table$getLeftHeaderG2 = table.getLeftHeaderGroups()[0]) == null ? void 0 : _table$getLeftHeaderG2.headers.reduce((sum2, header) => {
1267
+ return sum2 + header.getSize();
1268
+ }, 0)) != null ? _table$getLeftHeaderG : 0;
1269
+ };
1270
+ table.getCenterTotalSize = () => {
1271
+ var _table$getCenterHeade, _table$getCenterHeade2;
1272
+ return (_table$getCenterHeade = (_table$getCenterHeade2 = table.getCenterHeaderGroups()[0]) == null ? void 0 : _table$getCenterHeade2.headers.reduce((sum2, header) => {
1273
+ return sum2 + header.getSize();
1274
+ }, 0)) != null ? _table$getCenterHeade : 0;
1275
+ };
1276
+ table.getRightTotalSize = () => {
1277
+ var _table$getRightHeader, _table$getRightHeader2;
1278
+ return (_table$getRightHeader = (_table$getRightHeader2 = table.getRightHeaderGroups()[0]) == null ? void 0 : _table$getRightHeader2.headers.reduce((sum2, header) => {
1279
+ return sum2 + header.getSize();
1280
+ }, 0)) != null ? _table$getRightHeader : 0;
1281
+ };
1282
+ }
1283
+ };
1284
+ let passiveSupported = null;
1285
+ function passiveEventSupported() {
1286
+ if (typeof passiveSupported === "boolean") return passiveSupported;
1287
+ let supported = false;
1288
+ try {
1289
+ const options = {
1290
+ get passive() {
1291
+ supported = true;
1292
+ return false;
1293
+ }
1294
+ };
1295
+ const noop = () => {
1296
+ };
1297
+ window.addEventListener("test", noop, options);
1298
+ window.removeEventListener("test", noop);
1299
+ } catch (err) {
1300
+ supported = false;
1301
+ }
1302
+ passiveSupported = supported;
1303
+ return passiveSupported;
1304
+ }
1305
+ function isTouchStartEvent(e) {
1306
+ return e.type === "touchstart";
1307
+ }
1308
+ const ColumnVisibility = {
1309
+ getInitialState: (state) => {
1310
+ return {
1311
+ columnVisibility: {},
1312
+ ...state
1313
+ };
1314
+ },
1315
+ getDefaultOptions: (table) => {
1316
+ return {
1317
+ onColumnVisibilityChange: makeStateUpdater("columnVisibility", table)
1318
+ };
1319
+ },
1320
+ createColumn: (column, table) => {
1321
+ column.toggleVisibility = (value) => {
1322
+ if (column.getCanHide()) {
1323
+ table.setColumnVisibility((old) => ({
1324
+ ...old,
1325
+ [column.id]: value != null ? value : !column.getIsVisible()
1326
+ }));
1327
+ }
1328
+ };
1329
+ column.getIsVisible = () => {
1330
+ var _ref, _table$getState$colum;
1331
+ const childColumns = column.columns;
1332
+ return (_ref = childColumns.length ? childColumns.some((c) => c.getIsVisible()) : (_table$getState$colum = table.getState().columnVisibility) == null ? void 0 : _table$getState$colum[column.id]) != null ? _ref : true;
1333
+ };
1334
+ column.getCanHide = () => {
1335
+ var _column$columnDef$ena, _table$options$enable;
1336
+ return ((_column$columnDef$ena = column.columnDef.enableHiding) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableHiding) != null ? _table$options$enable : true);
1337
+ };
1338
+ column.getToggleVisibilityHandler = () => {
1339
+ return (e) => {
1340
+ column.toggleVisibility == null || column.toggleVisibility(e.target.checked);
1341
+ };
1342
+ };
1343
+ },
1344
+ createRow: (row, table) => {
1345
+ row._getAllVisibleCells = memo(() => [row.getAllCells(), table.getState().columnVisibility], (cells) => {
1346
+ return cells.filter((cell) => cell.column.getIsVisible());
1347
+ }, getMemoOptions(table.options, "debugRows", "_getAllVisibleCells"));
1348
+ row.getVisibleCells = memo(() => [row.getLeftVisibleCells(), row.getCenterVisibleCells(), row.getRightVisibleCells()], (left, center, right) => [...left, ...center, ...right], getMemoOptions(table.options, "debugRows", "getVisibleCells"));
1349
+ },
1350
+ createTable: (table) => {
1351
+ const makeVisibleColumnsMethod = (key, getColumns) => {
1352
+ return memo(() => [getColumns(), getColumns().filter((d) => d.getIsVisible()).map((d) => d.id).join("_")], (columns) => {
1353
+ return columns.filter((d) => d.getIsVisible == null ? void 0 : d.getIsVisible());
1354
+ }, getMemoOptions(table.options, "debugColumns", key));
1355
+ };
1356
+ table.getVisibleFlatColumns = makeVisibleColumnsMethod("getVisibleFlatColumns", () => table.getAllFlatColumns());
1357
+ table.getVisibleLeafColumns = makeVisibleColumnsMethod("getVisibleLeafColumns", () => table.getAllLeafColumns());
1358
+ table.getLeftVisibleLeafColumns = makeVisibleColumnsMethod("getLeftVisibleLeafColumns", () => table.getLeftLeafColumns());
1359
+ table.getRightVisibleLeafColumns = makeVisibleColumnsMethod("getRightVisibleLeafColumns", () => table.getRightLeafColumns());
1360
+ table.getCenterVisibleLeafColumns = makeVisibleColumnsMethod("getCenterVisibleLeafColumns", () => table.getCenterLeafColumns());
1361
+ table.setColumnVisibility = (updater) => table.options.onColumnVisibilityChange == null ? void 0 : table.options.onColumnVisibilityChange(updater);
1362
+ table.resetColumnVisibility = (defaultState) => {
1363
+ var _table$initialState$c;
1364
+ table.setColumnVisibility(defaultState ? {} : (_table$initialState$c = table.initialState.columnVisibility) != null ? _table$initialState$c : {});
1365
+ };
1366
+ table.toggleAllColumnsVisible = (value) => {
1367
+ var _value;
1368
+ value = (_value = value) != null ? _value : !table.getIsAllColumnsVisible();
1369
+ table.setColumnVisibility(table.getAllLeafColumns().reduce((obj, column) => ({
1370
+ ...obj,
1371
+ [column.id]: !value ? !(column.getCanHide != null && column.getCanHide()) : value
1372
+ }), {}));
1373
+ };
1374
+ table.getIsAllColumnsVisible = () => !table.getAllLeafColumns().some((column) => !(column.getIsVisible != null && column.getIsVisible()));
1375
+ table.getIsSomeColumnsVisible = () => table.getAllLeafColumns().some((column) => column.getIsVisible == null ? void 0 : column.getIsVisible());
1376
+ table.getToggleAllColumnsVisibilityHandler = () => {
1377
+ return (e) => {
1378
+ var _target;
1379
+ table.toggleAllColumnsVisible((_target = e.target) == null ? void 0 : _target.checked);
1380
+ };
1381
+ };
1382
+ }
1383
+ };
1384
+ function _getVisibleLeafColumns(table, position) {
1385
+ return !position ? table.getVisibleLeafColumns() : position === "center" ? table.getCenterVisibleLeafColumns() : position === "left" ? table.getLeftVisibleLeafColumns() : table.getRightVisibleLeafColumns();
1386
+ }
1387
+ const GlobalFaceting = {
1388
+ createTable: (table) => {
1389
+ table._getGlobalFacetedRowModel = table.options.getFacetedRowModel && table.options.getFacetedRowModel(table, "__global__");
1390
+ table.getGlobalFacetedRowModel = () => {
1391
+ if (table.options.manualFiltering || !table._getGlobalFacetedRowModel) {
1392
+ return table.getPreFilteredRowModel();
1393
+ }
1394
+ return table._getGlobalFacetedRowModel();
1395
+ };
1396
+ table._getGlobalFacetedUniqueValues = table.options.getFacetedUniqueValues && table.options.getFacetedUniqueValues(table, "__global__");
1397
+ table.getGlobalFacetedUniqueValues = () => {
1398
+ if (!table._getGlobalFacetedUniqueValues) {
1399
+ return /* @__PURE__ */ new Map();
1400
+ }
1401
+ return table._getGlobalFacetedUniqueValues();
1402
+ };
1403
+ table._getGlobalFacetedMinMaxValues = table.options.getFacetedMinMaxValues && table.options.getFacetedMinMaxValues(table, "__global__");
1404
+ table.getGlobalFacetedMinMaxValues = () => {
1405
+ if (!table._getGlobalFacetedMinMaxValues) {
1406
+ return;
1407
+ }
1408
+ return table._getGlobalFacetedMinMaxValues();
1409
+ };
1410
+ }
1411
+ };
1412
+ const GlobalFiltering = {
1413
+ getInitialState: (state) => {
1414
+ return {
1415
+ globalFilter: void 0,
1416
+ ...state
1417
+ };
1418
+ },
1419
+ getDefaultOptions: (table) => {
1420
+ return {
1421
+ onGlobalFilterChange: makeStateUpdater("globalFilter", table),
1422
+ globalFilterFn: "auto",
1423
+ getColumnCanGlobalFilter: (column) => {
1424
+ var _table$getCoreRowMode;
1425
+ const value = (_table$getCoreRowMode = table.getCoreRowModel().flatRows[0]) == null || (_table$getCoreRowMode = _table$getCoreRowMode._getAllCellsByColumnId()[column.id]) == null ? void 0 : _table$getCoreRowMode.getValue();
1426
+ return typeof value === "string" || typeof value === "number";
1427
+ }
1428
+ };
1429
+ },
1430
+ createColumn: (column, table) => {
1431
+ column.getCanGlobalFilter = () => {
1432
+ var _column$columnDef$ena, _table$options$enable, _table$options$enable2, _table$options$getCol;
1433
+ return ((_column$columnDef$ena = column.columnDef.enableGlobalFilter) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableGlobalFilter) != null ? _table$options$enable : true) && ((_table$options$enable2 = table.options.enableFilters) != null ? _table$options$enable2 : true) && ((_table$options$getCol = table.options.getColumnCanGlobalFilter == null ? void 0 : table.options.getColumnCanGlobalFilter(column)) != null ? _table$options$getCol : true) && !!column.accessorFn;
1434
+ };
1435
+ },
1436
+ createTable: (table) => {
1437
+ table.getGlobalAutoFilterFn = () => {
1438
+ return filterFns.includesString;
1439
+ };
1440
+ table.getGlobalFilterFn = () => {
1441
+ var _table$options$filter, _table$options$filter2;
1442
+ const {
1443
+ globalFilterFn
1444
+ } = table.options;
1445
+ return isFunction(globalFilterFn) ? globalFilterFn : globalFilterFn === "auto" ? table.getGlobalAutoFilterFn() : (_table$options$filter = (_table$options$filter2 = table.options.filterFns) == null ? void 0 : _table$options$filter2[globalFilterFn]) != null ? _table$options$filter : filterFns[globalFilterFn];
1446
+ };
1447
+ table.setGlobalFilter = (updater) => {
1448
+ table.options.onGlobalFilterChange == null || table.options.onGlobalFilterChange(updater);
1449
+ };
1450
+ table.resetGlobalFilter = (defaultState) => {
1451
+ table.setGlobalFilter(defaultState ? void 0 : table.initialState.globalFilter);
1452
+ };
1453
+ }
1454
+ };
1455
+ const RowExpanding = {
1456
+ getInitialState: (state) => {
1457
+ return {
1458
+ expanded: {},
1459
+ ...state
1460
+ };
1461
+ },
1462
+ getDefaultOptions: (table) => {
1463
+ return {
1464
+ onExpandedChange: makeStateUpdater("expanded", table),
1465
+ paginateExpandedRows: true
1466
+ };
1467
+ },
1468
+ createTable: (table) => {
1469
+ let registered = false;
1470
+ let queued = false;
1471
+ table._autoResetExpanded = () => {
1472
+ var _ref, _table$options$autoRe;
1473
+ if (!registered) {
1474
+ table._queue(() => {
1475
+ registered = true;
1476
+ });
1477
+ return;
1478
+ }
1479
+ if ((_ref = (_table$options$autoRe = table.options.autoResetAll) != null ? _table$options$autoRe : table.options.autoResetExpanded) != null ? _ref : !table.options.manualExpanding) {
1480
+ if (queued) return;
1481
+ queued = true;
1482
+ table._queue(() => {
1483
+ table.resetExpanded();
1484
+ queued = false;
1485
+ });
1486
+ }
1487
+ };
1488
+ table.setExpanded = (updater) => table.options.onExpandedChange == null ? void 0 : table.options.onExpandedChange(updater);
1489
+ table.toggleAllRowsExpanded = (expanded) => {
1490
+ if (expanded != null ? expanded : !table.getIsAllRowsExpanded()) {
1491
+ table.setExpanded(true);
1492
+ } else {
1493
+ table.setExpanded({});
1494
+ }
1495
+ };
1496
+ table.resetExpanded = (defaultState) => {
1497
+ var _table$initialState$e, _table$initialState;
1498
+ table.setExpanded(defaultState ? {} : (_table$initialState$e = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.expanded) != null ? _table$initialState$e : {});
1499
+ };
1500
+ table.getCanSomeRowsExpand = () => {
1501
+ return table.getPrePaginationRowModel().flatRows.some((row) => row.getCanExpand());
1502
+ };
1503
+ table.getToggleAllRowsExpandedHandler = () => {
1504
+ return (e) => {
1505
+ e.persist == null || e.persist();
1506
+ table.toggleAllRowsExpanded();
1507
+ };
1508
+ };
1509
+ table.getIsSomeRowsExpanded = () => {
1510
+ const expanded = table.getState().expanded;
1511
+ return expanded === true || Object.values(expanded).some(Boolean);
1512
+ };
1513
+ table.getIsAllRowsExpanded = () => {
1514
+ const expanded = table.getState().expanded;
1515
+ if (typeof expanded === "boolean") {
1516
+ return expanded === true;
1517
+ }
1518
+ if (!Object.keys(expanded).length) {
1519
+ return false;
1520
+ }
1521
+ if (table.getRowModel().flatRows.some((row) => !row.getIsExpanded())) {
1522
+ return false;
1523
+ }
1524
+ return true;
1525
+ };
1526
+ table.getExpandedDepth = () => {
1527
+ let maxDepth = 0;
1528
+ const rowIds = table.getState().expanded === true ? Object.keys(table.getRowModel().rowsById) : Object.keys(table.getState().expanded);
1529
+ rowIds.forEach((id) => {
1530
+ const splitId = id.split(".");
1531
+ maxDepth = Math.max(maxDepth, splitId.length);
1532
+ });
1533
+ return maxDepth;
1534
+ };
1535
+ table.getPreExpandedRowModel = () => table.getSortedRowModel();
1536
+ table.getExpandedRowModel = () => {
1537
+ if (!table._getExpandedRowModel && table.options.getExpandedRowModel) {
1538
+ table._getExpandedRowModel = table.options.getExpandedRowModel(table);
1539
+ }
1540
+ if (table.options.manualExpanding || !table._getExpandedRowModel) {
1541
+ return table.getPreExpandedRowModel();
1542
+ }
1543
+ return table._getExpandedRowModel();
1544
+ };
1545
+ },
1546
+ createRow: (row, table) => {
1547
+ row.toggleExpanded = (expanded) => {
1548
+ table.setExpanded((old) => {
1549
+ var _expanded;
1550
+ const exists = old === true ? true : !!(old != null && old[row.id]);
1551
+ let oldExpanded = {};
1552
+ if (old === true) {
1553
+ Object.keys(table.getRowModel().rowsById).forEach((rowId) => {
1554
+ oldExpanded[rowId] = true;
1555
+ });
1556
+ } else {
1557
+ oldExpanded = old;
1558
+ }
1559
+ expanded = (_expanded = expanded) != null ? _expanded : !exists;
1560
+ if (!exists && expanded) {
1561
+ return {
1562
+ ...oldExpanded,
1563
+ [row.id]: true
1564
+ };
1565
+ }
1566
+ if (exists && !expanded) {
1567
+ const {
1568
+ [row.id]: _,
1569
+ ...rest
1570
+ } = oldExpanded;
1571
+ return rest;
1572
+ }
1573
+ return old;
1574
+ });
1575
+ };
1576
+ row.getIsExpanded = () => {
1577
+ var _table$options$getIsR;
1578
+ const expanded = table.getState().expanded;
1579
+ return !!((_table$options$getIsR = table.options.getIsRowExpanded == null ? void 0 : table.options.getIsRowExpanded(row)) != null ? _table$options$getIsR : expanded === true || (expanded == null ? void 0 : expanded[row.id]));
1580
+ };
1581
+ row.getCanExpand = () => {
1582
+ var _table$options$getRow, _table$options$enable, _row$subRows;
1583
+ return (_table$options$getRow = table.options.getRowCanExpand == null ? void 0 : table.options.getRowCanExpand(row)) != null ? _table$options$getRow : ((_table$options$enable = table.options.enableExpanding) != null ? _table$options$enable : true) && !!((_row$subRows = row.subRows) != null && _row$subRows.length);
1584
+ };
1585
+ row.getIsAllParentsExpanded = () => {
1586
+ let isFullyExpanded = true;
1587
+ let currentRow = row;
1588
+ while (isFullyExpanded && currentRow.parentId) {
1589
+ currentRow = table.getRow(currentRow.parentId, true);
1590
+ isFullyExpanded = currentRow.getIsExpanded();
1591
+ }
1592
+ return isFullyExpanded;
1593
+ };
1594
+ row.getToggleExpandedHandler = () => {
1595
+ const canExpand = row.getCanExpand();
1596
+ return () => {
1597
+ if (!canExpand) return;
1598
+ row.toggleExpanded();
1599
+ };
1600
+ };
1601
+ }
1602
+ };
1603
+ const defaultPageIndex = 0;
1604
+ const defaultPageSize = 10;
1605
+ const getDefaultPaginationState = () => ({
1606
+ pageIndex: defaultPageIndex,
1607
+ pageSize: defaultPageSize
1608
+ });
1609
+ const RowPagination = {
1610
+ getInitialState: (state) => {
1611
+ return {
1612
+ ...state,
1613
+ pagination: {
1614
+ ...getDefaultPaginationState(),
1615
+ ...state == null ? void 0 : state.pagination
1616
+ }
1617
+ };
1618
+ },
1619
+ getDefaultOptions: (table) => {
1620
+ return {
1621
+ onPaginationChange: makeStateUpdater("pagination", table)
1622
+ };
1623
+ },
1624
+ createTable: (table) => {
1625
+ let registered = false;
1626
+ let queued = false;
1627
+ table._autoResetPageIndex = () => {
1628
+ var _ref, _table$options$autoRe;
1629
+ if (!registered) {
1630
+ table._queue(() => {
1631
+ registered = true;
1632
+ });
1633
+ return;
1634
+ }
1635
+ if ((_ref = (_table$options$autoRe = table.options.autoResetAll) != null ? _table$options$autoRe : table.options.autoResetPageIndex) != null ? _ref : !table.options.manualPagination) {
1636
+ if (queued) return;
1637
+ queued = true;
1638
+ table._queue(() => {
1639
+ table.resetPageIndex();
1640
+ queued = false;
1641
+ });
1642
+ }
1643
+ };
1644
+ table.setPagination = (updater) => {
1645
+ const safeUpdater = (old) => {
1646
+ let newState = functionalUpdate(updater, old);
1647
+ return newState;
1648
+ };
1649
+ return table.options.onPaginationChange == null ? void 0 : table.options.onPaginationChange(safeUpdater);
1650
+ };
1651
+ table.resetPagination = (defaultState) => {
1652
+ var _table$initialState$p;
1653
+ table.setPagination(defaultState ? getDefaultPaginationState() : (_table$initialState$p = table.initialState.pagination) != null ? _table$initialState$p : getDefaultPaginationState());
1654
+ };
1655
+ table.setPageIndex = (updater) => {
1656
+ table.setPagination((old) => {
1657
+ let pageIndex = functionalUpdate(updater, old.pageIndex);
1658
+ const maxPageIndex = typeof table.options.pageCount === "undefined" || table.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : table.options.pageCount - 1;
1659
+ pageIndex = Math.max(0, Math.min(pageIndex, maxPageIndex));
1660
+ return {
1661
+ ...old,
1662
+ pageIndex
1663
+ };
1664
+ });
1665
+ };
1666
+ table.resetPageIndex = (defaultState) => {
1667
+ var _table$initialState$p2, _table$initialState;
1668
+ table.setPageIndex(defaultState ? defaultPageIndex : (_table$initialState$p2 = (_table$initialState = table.initialState) == null || (_table$initialState = _table$initialState.pagination) == null ? void 0 : _table$initialState.pageIndex) != null ? _table$initialState$p2 : defaultPageIndex);
1669
+ };
1670
+ table.resetPageSize = (defaultState) => {
1671
+ var _table$initialState$p3, _table$initialState2;
1672
+ table.setPageSize(defaultState ? defaultPageSize : (_table$initialState$p3 = (_table$initialState2 = table.initialState) == null || (_table$initialState2 = _table$initialState2.pagination) == null ? void 0 : _table$initialState2.pageSize) != null ? _table$initialState$p3 : defaultPageSize);
1673
+ };
1674
+ table.setPageSize = (updater) => {
1675
+ table.setPagination((old) => {
1676
+ const pageSize = Math.max(1, functionalUpdate(updater, old.pageSize));
1677
+ const topRowIndex = old.pageSize * old.pageIndex;
1678
+ const pageIndex = Math.floor(topRowIndex / pageSize);
1679
+ return {
1680
+ ...old,
1681
+ pageIndex,
1682
+ pageSize
1683
+ };
1684
+ });
1685
+ };
1686
+ table.setPageCount = (updater) => table.setPagination((old) => {
1687
+ var _table$options$pageCo;
1688
+ let newPageCount = functionalUpdate(updater, (_table$options$pageCo = table.options.pageCount) != null ? _table$options$pageCo : -1);
1689
+ if (typeof newPageCount === "number") {
1690
+ newPageCount = Math.max(-1, newPageCount);
1691
+ }
1692
+ return {
1693
+ ...old,
1694
+ pageCount: newPageCount
1695
+ };
1696
+ });
1697
+ table.getPageOptions = memo(() => [table.getPageCount()], (pageCount) => {
1698
+ let pageOptions = [];
1699
+ if (pageCount && pageCount > 0) {
1700
+ pageOptions = [...new Array(pageCount)].fill(null).map((_, i) => i);
1701
+ }
1702
+ return pageOptions;
1703
+ }, getMemoOptions(table.options, "debugTable", "getPageOptions"));
1704
+ table.getCanPreviousPage = () => table.getState().pagination.pageIndex > 0;
1705
+ table.getCanNextPage = () => {
1706
+ const {
1707
+ pageIndex
1708
+ } = table.getState().pagination;
1709
+ const pageCount = table.getPageCount();
1710
+ if (pageCount === -1) {
1711
+ return true;
1712
+ }
1713
+ if (pageCount === 0) {
1714
+ return false;
1715
+ }
1716
+ return pageIndex < pageCount - 1;
1717
+ };
1718
+ table.previousPage = () => {
1719
+ return table.setPageIndex((old) => old - 1);
1720
+ };
1721
+ table.nextPage = () => {
1722
+ return table.setPageIndex((old) => {
1723
+ return old + 1;
1724
+ });
1725
+ };
1726
+ table.firstPage = () => {
1727
+ return table.setPageIndex(0);
1728
+ };
1729
+ table.lastPage = () => {
1730
+ return table.setPageIndex(table.getPageCount() - 1);
1731
+ };
1732
+ table.getPrePaginationRowModel = () => table.getExpandedRowModel();
1733
+ table.getPaginationRowModel = () => {
1734
+ if (!table._getPaginationRowModel && table.options.getPaginationRowModel) {
1735
+ table._getPaginationRowModel = table.options.getPaginationRowModel(table);
1736
+ }
1737
+ if (table.options.manualPagination || !table._getPaginationRowModel) {
1738
+ return table.getPrePaginationRowModel();
1739
+ }
1740
+ return table._getPaginationRowModel();
1741
+ };
1742
+ table.getPageCount = () => {
1743
+ var _table$options$pageCo2;
1744
+ return (_table$options$pageCo2 = table.options.pageCount) != null ? _table$options$pageCo2 : Math.ceil(table.getRowCount() / table.getState().pagination.pageSize);
1745
+ };
1746
+ table.getRowCount = () => {
1747
+ var _table$options$rowCou;
1748
+ return (_table$options$rowCou = table.options.rowCount) != null ? _table$options$rowCou : table.getPrePaginationRowModel().rows.length;
1749
+ };
1750
+ }
1751
+ };
1752
+ const getDefaultRowPinningState = () => ({
1753
+ top: [],
1754
+ bottom: []
1755
+ });
1756
+ const RowPinning = {
1757
+ getInitialState: (state) => {
1758
+ return {
1759
+ rowPinning: getDefaultRowPinningState(),
1760
+ ...state
1761
+ };
1762
+ },
1763
+ getDefaultOptions: (table) => {
1764
+ return {
1765
+ onRowPinningChange: makeStateUpdater("rowPinning", table)
1766
+ };
1767
+ },
1768
+ createRow: (row, table) => {
1769
+ row.pin = (position, includeLeafRows, includeParentRows) => {
1770
+ const leafRowIds = includeLeafRows ? row.getLeafRows().map((_ref) => {
1771
+ let {
1772
+ id
1773
+ } = _ref;
1774
+ return id;
1775
+ }) : [];
1776
+ const parentRowIds = includeParentRows ? row.getParentRows().map((_ref2) => {
1777
+ let {
1778
+ id
1779
+ } = _ref2;
1780
+ return id;
1781
+ }) : [];
1782
+ const rowIds = /* @__PURE__ */ new Set([...parentRowIds, row.id, ...leafRowIds]);
1783
+ table.setRowPinning((old) => {
1784
+ var _old$top3, _old$bottom3;
1785
+ if (position === "bottom") {
1786
+ var _old$top, _old$bottom;
1787
+ return {
1788
+ top: ((_old$top = old == null ? void 0 : old.top) != null ? _old$top : []).filter((d) => !(rowIds != null && rowIds.has(d))),
1789
+ bottom: [...((_old$bottom = old == null ? void 0 : old.bottom) != null ? _old$bottom : []).filter((d) => !(rowIds != null && rowIds.has(d))), ...Array.from(rowIds)]
1790
+ };
1791
+ }
1792
+ if (position === "top") {
1793
+ var _old$top2, _old$bottom2;
1794
+ return {
1795
+ top: [...((_old$top2 = old == null ? void 0 : old.top) != null ? _old$top2 : []).filter((d) => !(rowIds != null && rowIds.has(d))), ...Array.from(rowIds)],
1796
+ bottom: ((_old$bottom2 = old == null ? void 0 : old.bottom) != null ? _old$bottom2 : []).filter((d) => !(rowIds != null && rowIds.has(d)))
1797
+ };
1798
+ }
1799
+ return {
1800
+ top: ((_old$top3 = old == null ? void 0 : old.top) != null ? _old$top3 : []).filter((d) => !(rowIds != null && rowIds.has(d))),
1801
+ bottom: ((_old$bottom3 = old == null ? void 0 : old.bottom) != null ? _old$bottom3 : []).filter((d) => !(rowIds != null && rowIds.has(d)))
1802
+ };
1803
+ });
1804
+ };
1805
+ row.getCanPin = () => {
1806
+ var _ref3;
1807
+ const {
1808
+ enableRowPinning,
1809
+ enablePinning
1810
+ } = table.options;
1811
+ if (typeof enableRowPinning === "function") {
1812
+ return enableRowPinning(row);
1813
+ }
1814
+ return (_ref3 = enableRowPinning != null ? enableRowPinning : enablePinning) != null ? _ref3 : true;
1815
+ };
1816
+ row.getIsPinned = () => {
1817
+ const rowIds = [row.id];
1818
+ const {
1819
+ top,
1820
+ bottom
1821
+ } = table.getState().rowPinning;
1822
+ const isTop = rowIds.some((d) => top == null ? void 0 : top.includes(d));
1823
+ const isBottom = rowIds.some((d) => bottom == null ? void 0 : bottom.includes(d));
1824
+ return isTop ? "top" : isBottom ? "bottom" : false;
1825
+ };
1826
+ row.getPinnedIndex = () => {
1827
+ var _ref4, _visiblePinnedRowIds$;
1828
+ const position = row.getIsPinned();
1829
+ if (!position) return -1;
1830
+ const visiblePinnedRowIds = (_ref4 = position === "top" ? table.getTopRows() : table.getBottomRows()) == null ? void 0 : _ref4.map((_ref5) => {
1831
+ let {
1832
+ id
1833
+ } = _ref5;
1834
+ return id;
1835
+ });
1836
+ return (_visiblePinnedRowIds$ = visiblePinnedRowIds == null ? void 0 : visiblePinnedRowIds.indexOf(row.id)) != null ? _visiblePinnedRowIds$ : -1;
1837
+ };
1838
+ },
1839
+ createTable: (table) => {
1840
+ table.setRowPinning = (updater) => table.options.onRowPinningChange == null ? void 0 : table.options.onRowPinningChange(updater);
1841
+ table.resetRowPinning = (defaultState) => {
1842
+ var _table$initialState$r, _table$initialState;
1843
+ return table.setRowPinning(defaultState ? getDefaultRowPinningState() : (_table$initialState$r = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.rowPinning) != null ? _table$initialState$r : getDefaultRowPinningState());
1844
+ };
1845
+ table.getIsSomeRowsPinned = (position) => {
1846
+ var _pinningState$positio;
1847
+ const pinningState = table.getState().rowPinning;
1848
+ if (!position) {
1849
+ var _pinningState$top, _pinningState$bottom;
1850
+ return Boolean(((_pinningState$top = pinningState.top) == null ? void 0 : _pinningState$top.length) || ((_pinningState$bottom = pinningState.bottom) == null ? void 0 : _pinningState$bottom.length));
1851
+ }
1852
+ return Boolean((_pinningState$positio = pinningState[position]) == null ? void 0 : _pinningState$positio.length);
1853
+ };
1854
+ table._getPinnedRows = (visibleRows, pinnedRowIds, position) => {
1855
+ var _table$options$keepPi;
1856
+ const rows = ((_table$options$keepPi = table.options.keepPinnedRows) != null ? _table$options$keepPi : true) ? (
1857
+ //get all rows that are pinned even if they would not be otherwise visible
1858
+ //account for expanded parent rows, but not pagination or filtering
1859
+ (pinnedRowIds != null ? pinnedRowIds : []).map((rowId) => {
1860
+ const row = table.getRow(rowId, true);
1861
+ return row.getIsAllParentsExpanded() ? row : null;
1862
+ })
1863
+ ) : (
1864
+ //else get only visible rows that are pinned
1865
+ (pinnedRowIds != null ? pinnedRowIds : []).map((rowId) => visibleRows.find((row) => row.id === rowId))
1866
+ );
1867
+ return rows.filter(Boolean).map((d) => ({
1868
+ ...d,
1869
+ position
1870
+ }));
1871
+ };
1872
+ table.getTopRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.top], (allRows, topPinnedRowIds) => table._getPinnedRows(allRows, topPinnedRowIds, "top"), getMemoOptions(table.options, "debugRows", "getTopRows"));
1873
+ table.getBottomRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.bottom], (allRows, bottomPinnedRowIds) => table._getPinnedRows(allRows, bottomPinnedRowIds, "bottom"), getMemoOptions(table.options, "debugRows", "getBottomRows"));
1874
+ table.getCenterRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.top, table.getState().rowPinning.bottom], (allRows, top, bottom) => {
1875
+ const topAndBottom = /* @__PURE__ */ new Set([...top != null ? top : [], ...bottom != null ? bottom : []]);
1876
+ return allRows.filter((d) => !topAndBottom.has(d.id));
1877
+ }, getMemoOptions(table.options, "debugRows", "getCenterRows"));
1878
+ }
1879
+ };
1880
+ const RowSelection = {
1881
+ getInitialState: (state) => {
1882
+ return {
1883
+ rowSelection: {},
1884
+ ...state
1885
+ };
1886
+ },
1887
+ getDefaultOptions: (table) => {
1888
+ return {
1889
+ onRowSelectionChange: makeStateUpdater("rowSelection", table),
1890
+ enableRowSelection: true,
1891
+ enableMultiRowSelection: true,
1892
+ enableSubRowSelection: true
1893
+ // enableGroupingRowSelection: false,
1894
+ // isAdditiveSelectEvent: (e: unknown) => !!e.metaKey,
1895
+ // isInclusiveSelectEvent: (e: unknown) => !!e.shiftKey,
1896
+ };
1897
+ },
1898
+ createTable: (table) => {
1899
+ table.setRowSelection = (updater) => table.options.onRowSelectionChange == null ? void 0 : table.options.onRowSelectionChange(updater);
1900
+ table.resetRowSelection = (defaultState) => {
1901
+ var _table$initialState$r;
1902
+ return table.setRowSelection(defaultState ? {} : (_table$initialState$r = table.initialState.rowSelection) != null ? _table$initialState$r : {});
1903
+ };
1904
+ table.toggleAllRowsSelected = (value) => {
1905
+ table.setRowSelection((old) => {
1906
+ value = typeof value !== "undefined" ? value : !table.getIsAllRowsSelected();
1907
+ const rowSelection = {
1908
+ ...old
1909
+ };
1910
+ const preGroupedFlatRows = table.getPreGroupedRowModel().flatRows;
1911
+ if (value) {
1912
+ preGroupedFlatRows.forEach((row) => {
1913
+ if (!row.getCanSelect()) {
1914
+ return;
1915
+ }
1916
+ rowSelection[row.id] = true;
1917
+ });
1918
+ } else {
1919
+ preGroupedFlatRows.forEach((row) => {
1920
+ delete rowSelection[row.id];
1921
+ });
1922
+ }
1923
+ return rowSelection;
1924
+ });
1925
+ };
1926
+ table.toggleAllPageRowsSelected = (value) => table.setRowSelection((old) => {
1927
+ const resolvedValue = typeof value !== "undefined" ? value : !table.getIsAllPageRowsSelected();
1928
+ const rowSelection = {
1929
+ ...old
1930
+ };
1931
+ table.getRowModel().rows.forEach((row) => {
1932
+ mutateRowIsSelected(rowSelection, row.id, resolvedValue, true, table);
1933
+ });
1934
+ return rowSelection;
1935
+ });
1936
+ table.getPreSelectedRowModel = () => table.getCoreRowModel();
1937
+ table.getSelectedRowModel = memo(() => [table.getState().rowSelection, table.getCoreRowModel()], (rowSelection, rowModel) => {
1938
+ if (!Object.keys(rowSelection).length) {
1939
+ return {
1940
+ rows: [],
1941
+ flatRows: [],
1942
+ rowsById: {}
1943
+ };
1944
+ }
1945
+ return selectRowsFn(table, rowModel);
1946
+ }, getMemoOptions(table.options, "debugTable", "getSelectedRowModel"));
1947
+ table.getFilteredSelectedRowModel = memo(() => [table.getState().rowSelection, table.getFilteredRowModel()], (rowSelection, rowModel) => {
1948
+ if (!Object.keys(rowSelection).length) {
1949
+ return {
1950
+ rows: [],
1951
+ flatRows: [],
1952
+ rowsById: {}
1953
+ };
1954
+ }
1955
+ return selectRowsFn(table, rowModel);
1956
+ }, getMemoOptions(table.options, "debugTable", "getFilteredSelectedRowModel"));
1957
+ table.getGroupedSelectedRowModel = memo(() => [table.getState().rowSelection, table.getSortedRowModel()], (rowSelection, rowModel) => {
1958
+ if (!Object.keys(rowSelection).length) {
1959
+ return {
1960
+ rows: [],
1961
+ flatRows: [],
1962
+ rowsById: {}
1963
+ };
1964
+ }
1965
+ return selectRowsFn(table, rowModel);
1966
+ }, getMemoOptions(table.options, "debugTable", "getGroupedSelectedRowModel"));
1967
+ table.getIsAllRowsSelected = () => {
1968
+ const preGroupedFlatRows = table.getFilteredRowModel().flatRows;
1969
+ const {
1970
+ rowSelection
1971
+ } = table.getState();
1972
+ let isAllRowsSelected = Boolean(preGroupedFlatRows.length && Object.keys(rowSelection).length);
1973
+ if (isAllRowsSelected) {
1974
+ if (preGroupedFlatRows.some((row) => row.getCanSelect() && !rowSelection[row.id])) {
1975
+ isAllRowsSelected = false;
1976
+ }
1977
+ }
1978
+ return isAllRowsSelected;
1979
+ };
1980
+ table.getIsAllPageRowsSelected = () => {
1981
+ const paginationFlatRows = table.getPaginationRowModel().flatRows.filter((row) => row.getCanSelect());
1982
+ const {
1983
+ rowSelection
1984
+ } = table.getState();
1985
+ let isAllPageRowsSelected = !!paginationFlatRows.length;
1986
+ if (isAllPageRowsSelected && paginationFlatRows.some((row) => !rowSelection[row.id])) {
1987
+ isAllPageRowsSelected = false;
1988
+ }
1989
+ return isAllPageRowsSelected;
1990
+ };
1991
+ table.getIsSomeRowsSelected = () => {
1992
+ var _table$getState$rowSe;
1993
+ const totalSelected = Object.keys((_table$getState$rowSe = table.getState().rowSelection) != null ? _table$getState$rowSe : {}).length;
1994
+ return totalSelected > 0 && totalSelected < table.getFilteredRowModel().flatRows.length;
1995
+ };
1996
+ table.getIsSomePageRowsSelected = () => {
1997
+ const paginationFlatRows = table.getPaginationRowModel().flatRows;
1998
+ return table.getIsAllPageRowsSelected() ? false : paginationFlatRows.filter((row) => row.getCanSelect()).some((d) => d.getIsSelected() || d.getIsSomeSelected());
1999
+ };
2000
+ table.getToggleAllRowsSelectedHandler = () => {
2001
+ return (e) => {
2002
+ table.toggleAllRowsSelected(e.target.checked);
2003
+ };
2004
+ };
2005
+ table.getToggleAllPageRowsSelectedHandler = () => {
2006
+ return (e) => {
2007
+ table.toggleAllPageRowsSelected(e.target.checked);
2008
+ };
2009
+ };
2010
+ },
2011
+ createRow: (row, table) => {
2012
+ row.toggleSelected = (value, opts) => {
2013
+ const isSelected = row.getIsSelected();
2014
+ table.setRowSelection((old) => {
2015
+ var _opts$selectChildren;
2016
+ value = typeof value !== "undefined" ? value : !isSelected;
2017
+ if (row.getCanSelect() && isSelected === value) {
2018
+ return old;
2019
+ }
2020
+ const selectedRowIds = {
2021
+ ...old
2022
+ };
2023
+ mutateRowIsSelected(selectedRowIds, row.id, value, (_opts$selectChildren = opts == null ? void 0 : opts.selectChildren) != null ? _opts$selectChildren : true, table);
2024
+ return selectedRowIds;
2025
+ });
2026
+ };
2027
+ row.getIsSelected = () => {
2028
+ const {
2029
+ rowSelection
2030
+ } = table.getState();
2031
+ return isRowSelected(row, rowSelection);
2032
+ };
2033
+ row.getIsSomeSelected = () => {
2034
+ const {
2035
+ rowSelection
2036
+ } = table.getState();
2037
+ return isSubRowSelected(row, rowSelection) === "some";
2038
+ };
2039
+ row.getIsAllSubRowsSelected = () => {
2040
+ const {
2041
+ rowSelection
2042
+ } = table.getState();
2043
+ return isSubRowSelected(row, rowSelection) === "all";
2044
+ };
2045
+ row.getCanSelect = () => {
2046
+ var _table$options$enable;
2047
+ if (typeof table.options.enableRowSelection === "function") {
2048
+ return table.options.enableRowSelection(row);
2049
+ }
2050
+ return (_table$options$enable = table.options.enableRowSelection) != null ? _table$options$enable : true;
2051
+ };
2052
+ row.getCanSelectSubRows = () => {
2053
+ var _table$options$enable2;
2054
+ if (typeof table.options.enableSubRowSelection === "function") {
2055
+ return table.options.enableSubRowSelection(row);
2056
+ }
2057
+ return (_table$options$enable2 = table.options.enableSubRowSelection) != null ? _table$options$enable2 : true;
2058
+ };
2059
+ row.getCanMultiSelect = () => {
2060
+ var _table$options$enable3;
2061
+ if (typeof table.options.enableMultiRowSelection === "function") {
2062
+ return table.options.enableMultiRowSelection(row);
2063
+ }
2064
+ return (_table$options$enable3 = table.options.enableMultiRowSelection) != null ? _table$options$enable3 : true;
2065
+ };
2066
+ row.getToggleSelectedHandler = () => {
2067
+ const canSelect = row.getCanSelect();
2068
+ return (e) => {
2069
+ var _target;
2070
+ if (!canSelect) return;
2071
+ row.toggleSelected((_target = e.target) == null ? void 0 : _target.checked);
2072
+ };
2073
+ };
2074
+ }
2075
+ };
2076
+ const mutateRowIsSelected = (selectedRowIds, id, value, includeChildren, table) => {
2077
+ var _row$subRows;
2078
+ const row = table.getRow(id, true);
2079
+ if (value) {
2080
+ if (!row.getCanMultiSelect()) {
2081
+ Object.keys(selectedRowIds).forEach((key) => delete selectedRowIds[key]);
2082
+ }
2083
+ if (row.getCanSelect()) {
2084
+ selectedRowIds[id] = true;
2085
+ }
2086
+ } else {
2087
+ delete selectedRowIds[id];
2088
+ }
2089
+ if (includeChildren && (_row$subRows = row.subRows) != null && _row$subRows.length && row.getCanSelectSubRows()) {
2090
+ row.subRows.forEach((row2) => mutateRowIsSelected(selectedRowIds, row2.id, value, includeChildren, table));
2091
+ }
2092
+ };
2093
+ function selectRowsFn(table, rowModel) {
2094
+ const rowSelection = table.getState().rowSelection;
2095
+ const newSelectedFlatRows = [];
2096
+ const newSelectedRowsById = {};
2097
+ const recurseRows = function(rows, depth) {
2098
+ return rows.map((row) => {
2099
+ var _row$subRows2;
2100
+ const isSelected = isRowSelected(row, rowSelection);
2101
+ if (isSelected) {
2102
+ newSelectedFlatRows.push(row);
2103
+ newSelectedRowsById[row.id] = row;
2104
+ }
2105
+ if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length) {
2106
+ row = {
2107
+ ...row,
2108
+ subRows: recurseRows(row.subRows)
2109
+ };
2110
+ }
2111
+ if (isSelected) {
2112
+ return row;
2113
+ }
2114
+ }).filter(Boolean);
2115
+ };
2116
+ return {
2117
+ rows: recurseRows(rowModel.rows),
2118
+ flatRows: newSelectedFlatRows,
2119
+ rowsById: newSelectedRowsById
2120
+ };
2121
+ }
2122
+ function isRowSelected(row, selection) {
2123
+ var _selection$row$id;
2124
+ return (_selection$row$id = selection[row.id]) != null ? _selection$row$id : false;
2125
+ }
2126
+ function isSubRowSelected(row, selection, table) {
2127
+ var _row$subRows3;
2128
+ if (!((_row$subRows3 = row.subRows) != null && _row$subRows3.length)) return false;
2129
+ let allChildrenSelected = true;
2130
+ let someSelected = false;
2131
+ row.subRows.forEach((subRow) => {
2132
+ if (someSelected && !allChildrenSelected) {
2133
+ return;
2134
+ }
2135
+ if (subRow.getCanSelect()) {
2136
+ if (isRowSelected(subRow, selection)) {
2137
+ someSelected = true;
2138
+ } else {
2139
+ allChildrenSelected = false;
2140
+ }
2141
+ }
2142
+ if (subRow.subRows && subRow.subRows.length) {
2143
+ const subRowChildrenSelected = isSubRowSelected(subRow, selection);
2144
+ if (subRowChildrenSelected === "all") {
2145
+ someSelected = true;
2146
+ } else if (subRowChildrenSelected === "some") {
2147
+ someSelected = true;
2148
+ allChildrenSelected = false;
2149
+ } else {
2150
+ allChildrenSelected = false;
2151
+ }
2152
+ }
2153
+ });
2154
+ return allChildrenSelected ? "all" : someSelected ? "some" : false;
2155
+ }
2156
+ const reSplitAlphaNumeric = /([0-9]+)/gm;
2157
+ const alphanumeric = (rowA, rowB, columnId) => {
2158
+ return compareAlphanumeric(toString(rowA.getValue(columnId)).toLowerCase(), toString(rowB.getValue(columnId)).toLowerCase());
2159
+ };
2160
+ const alphanumericCaseSensitive = (rowA, rowB, columnId) => {
2161
+ return compareAlphanumeric(toString(rowA.getValue(columnId)), toString(rowB.getValue(columnId)));
2162
+ };
2163
+ const text = (rowA, rowB, columnId) => {
2164
+ return compareBasic(toString(rowA.getValue(columnId)).toLowerCase(), toString(rowB.getValue(columnId)).toLowerCase());
2165
+ };
2166
+ const textCaseSensitive = (rowA, rowB, columnId) => {
2167
+ return compareBasic(toString(rowA.getValue(columnId)), toString(rowB.getValue(columnId)));
2168
+ };
2169
+ const datetime = (rowA, rowB, columnId) => {
2170
+ const a = rowA.getValue(columnId);
2171
+ const b = rowB.getValue(columnId);
2172
+ return a > b ? 1 : a < b ? -1 : 0;
2173
+ };
2174
+ const basic = (rowA, rowB, columnId) => {
2175
+ return compareBasic(rowA.getValue(columnId), rowB.getValue(columnId));
2176
+ };
2177
+ function compareBasic(a, b) {
2178
+ return a === b ? 0 : a > b ? 1 : -1;
2179
+ }
2180
+ function toString(a) {
2181
+ if (typeof a === "number") {
2182
+ if (isNaN(a) || a === Infinity || a === -Infinity) {
2183
+ return "";
2184
+ }
2185
+ return String(a);
2186
+ }
2187
+ if (typeof a === "string") {
2188
+ return a;
2189
+ }
2190
+ return "";
2191
+ }
2192
+ function compareAlphanumeric(aStr, bStr) {
2193
+ const a = aStr.split(reSplitAlphaNumeric).filter(Boolean);
2194
+ const b = bStr.split(reSplitAlphaNumeric).filter(Boolean);
2195
+ while (a.length && b.length) {
2196
+ const aa = a.shift();
2197
+ const bb = b.shift();
2198
+ const an = parseInt(aa, 10);
2199
+ const bn = parseInt(bb, 10);
2200
+ const combo = [an, bn].sort();
2201
+ if (isNaN(combo[0])) {
2202
+ if (aa > bb) {
2203
+ return 1;
2204
+ }
2205
+ if (bb > aa) {
2206
+ return -1;
2207
+ }
2208
+ continue;
2209
+ }
2210
+ if (isNaN(combo[1])) {
2211
+ return isNaN(an) ? -1 : 1;
2212
+ }
2213
+ if (an > bn) {
2214
+ return 1;
2215
+ }
2216
+ if (bn > an) {
2217
+ return -1;
2218
+ }
2219
+ }
2220
+ return a.length - b.length;
2221
+ }
2222
+ const sortingFns = {
2223
+ alphanumeric,
2224
+ alphanumericCaseSensitive,
2225
+ text,
2226
+ textCaseSensitive,
2227
+ datetime,
2228
+ basic
2229
+ };
2230
+ const RowSorting = {
2231
+ getInitialState: (state) => {
2232
+ return {
2233
+ sorting: [],
2234
+ ...state
2235
+ };
2236
+ },
2237
+ getDefaultColumnDef: () => {
2238
+ return {
2239
+ sortingFn: "auto",
2240
+ sortUndefined: 1
2241
+ };
2242
+ },
2243
+ getDefaultOptions: (table) => {
2244
+ return {
2245
+ onSortingChange: makeStateUpdater("sorting", table),
2246
+ isMultiSortEvent: (e) => {
2247
+ return e.shiftKey;
2248
+ }
2249
+ };
2250
+ },
2251
+ createColumn: (column, table) => {
2252
+ column.getAutoSortingFn = () => {
2253
+ const firstRows = table.getFilteredRowModel().flatRows.slice(10);
2254
+ let isString = false;
2255
+ for (const row of firstRows) {
2256
+ const value = row == null ? void 0 : row.getValue(column.id);
2257
+ if (Object.prototype.toString.call(value) === "[object Date]") {
2258
+ return sortingFns.datetime;
2259
+ }
2260
+ if (typeof value === "string") {
2261
+ isString = true;
2262
+ if (value.split(reSplitAlphaNumeric).length > 1) {
2263
+ return sortingFns.alphanumeric;
2264
+ }
2265
+ }
2266
+ }
2267
+ if (isString) {
2268
+ return sortingFns.text;
2269
+ }
2270
+ return sortingFns.basic;
2271
+ };
2272
+ column.getAutoSortDir = () => {
2273
+ const firstRow = table.getFilteredRowModel().flatRows[0];
2274
+ const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
2275
+ if (typeof value === "string") {
2276
+ return "asc";
2277
+ }
2278
+ return "desc";
2279
+ };
2280
+ column.getSortingFn = () => {
2281
+ var _table$options$sortin, _table$options$sortin2;
2282
+ if (!column) {
2283
+ throw new Error();
2284
+ }
2285
+ return isFunction(column.columnDef.sortingFn) ? column.columnDef.sortingFn : column.columnDef.sortingFn === "auto" ? column.getAutoSortingFn() : (_table$options$sortin = (_table$options$sortin2 = table.options.sortingFns) == null ? void 0 : _table$options$sortin2[column.columnDef.sortingFn]) != null ? _table$options$sortin : sortingFns[column.columnDef.sortingFn];
2286
+ };
2287
+ column.toggleSorting = (desc, multi) => {
2288
+ const nextSortingOrder = column.getNextSortingOrder();
2289
+ const hasManualValue = typeof desc !== "undefined" && desc !== null;
2290
+ table.setSorting((old) => {
2291
+ const existingSorting = old == null ? void 0 : old.find((d) => d.id === column.id);
2292
+ const existingIndex = old == null ? void 0 : old.findIndex((d) => d.id === column.id);
2293
+ let newSorting = [];
2294
+ let sortAction;
2295
+ let nextDesc = hasManualValue ? desc : nextSortingOrder === "desc";
2296
+ if (old != null && old.length && column.getCanMultiSort() && multi) {
2297
+ if (existingSorting) {
2298
+ sortAction = "toggle";
2299
+ } else {
2300
+ sortAction = "add";
2301
+ }
2302
+ } else {
2303
+ if (old != null && old.length && existingIndex !== old.length - 1) {
2304
+ sortAction = "replace";
2305
+ } else if (existingSorting) {
2306
+ sortAction = "toggle";
2307
+ } else {
2308
+ sortAction = "replace";
2309
+ }
2310
+ }
2311
+ if (sortAction === "toggle") {
2312
+ if (!hasManualValue) {
2313
+ if (!nextSortingOrder) {
2314
+ sortAction = "remove";
2315
+ }
2316
+ }
2317
+ }
2318
+ if (sortAction === "add") {
2319
+ var _table$options$maxMul;
2320
+ newSorting = [...old, {
2321
+ id: column.id,
2322
+ desc: nextDesc
2323
+ }];
2324
+ newSorting.splice(0, newSorting.length - ((_table$options$maxMul = table.options.maxMultiSortColCount) != null ? _table$options$maxMul : Number.MAX_SAFE_INTEGER));
2325
+ } else if (sortAction === "toggle") {
2326
+ newSorting = old.map((d) => {
2327
+ if (d.id === column.id) {
2328
+ return {
2329
+ ...d,
2330
+ desc: nextDesc
2331
+ };
2332
+ }
2333
+ return d;
2334
+ });
2335
+ } else if (sortAction === "remove") {
2336
+ newSorting = old.filter((d) => d.id !== column.id);
2337
+ } else {
2338
+ newSorting = [{
2339
+ id: column.id,
2340
+ desc: nextDesc
2341
+ }];
2342
+ }
2343
+ return newSorting;
2344
+ });
2345
+ };
2346
+ column.getFirstSortDir = () => {
2347
+ var _ref, _column$columnDef$sor;
2348
+ const sortDescFirst = (_ref = (_column$columnDef$sor = column.columnDef.sortDescFirst) != null ? _column$columnDef$sor : table.options.sortDescFirst) != null ? _ref : column.getAutoSortDir() === "desc";
2349
+ return sortDescFirst ? "desc" : "asc";
2350
+ };
2351
+ column.getNextSortingOrder = (multi) => {
2352
+ var _table$options$enable, _table$options$enable2;
2353
+ const firstSortDirection = column.getFirstSortDir();
2354
+ const isSorted = column.getIsSorted();
2355
+ if (!isSorted) {
2356
+ return firstSortDirection;
2357
+ }
2358
+ if (isSorted !== firstSortDirection && ((_table$options$enable = table.options.enableSortingRemoval) != null ? _table$options$enable : true) && // If enableSortRemove, enable in general
2359
+ (multi ? (_table$options$enable2 = table.options.enableMultiRemove) != null ? _table$options$enable2 : true : true)) {
2360
+ return false;
2361
+ }
2362
+ return isSorted === "desc" ? "asc" : "desc";
2363
+ };
2364
+ column.getCanSort = () => {
2365
+ var _column$columnDef$ena, _table$options$enable3;
2366
+ return ((_column$columnDef$ena = column.columnDef.enableSorting) != null ? _column$columnDef$ena : true) && ((_table$options$enable3 = table.options.enableSorting) != null ? _table$options$enable3 : true) && !!column.accessorFn;
2367
+ };
2368
+ column.getCanMultiSort = () => {
2369
+ var _ref2, _column$columnDef$ena2;
2370
+ return (_ref2 = (_column$columnDef$ena2 = column.columnDef.enableMultiSort) != null ? _column$columnDef$ena2 : table.options.enableMultiSort) != null ? _ref2 : !!column.accessorFn;
2371
+ };
2372
+ column.getIsSorted = () => {
2373
+ var _table$getState$sorti;
2374
+ const columnSort = (_table$getState$sorti = table.getState().sorting) == null ? void 0 : _table$getState$sorti.find((d) => d.id === column.id);
2375
+ return !columnSort ? false : columnSort.desc ? "desc" : "asc";
2376
+ };
2377
+ column.getSortIndex = () => {
2378
+ var _table$getState$sorti2, _table$getState$sorti3;
2379
+ return (_table$getState$sorti2 = (_table$getState$sorti3 = table.getState().sorting) == null ? void 0 : _table$getState$sorti3.findIndex((d) => d.id === column.id)) != null ? _table$getState$sorti2 : -1;
2380
+ };
2381
+ column.clearSorting = () => {
2382
+ table.setSorting((old) => old != null && old.length ? old.filter((d) => d.id !== column.id) : []);
2383
+ };
2384
+ column.getToggleSortingHandler = () => {
2385
+ const canSort = column.getCanSort();
2386
+ return (e) => {
2387
+ if (!canSort) return;
2388
+ e.persist == null || e.persist();
2389
+ column.toggleSorting == null || column.toggleSorting(void 0, column.getCanMultiSort() ? table.options.isMultiSortEvent == null ? void 0 : table.options.isMultiSortEvent(e) : false);
2390
+ };
2391
+ };
2392
+ },
2393
+ createTable: (table) => {
2394
+ table.setSorting = (updater) => table.options.onSortingChange == null ? void 0 : table.options.onSortingChange(updater);
2395
+ table.resetSorting = (defaultState) => {
2396
+ var _table$initialState$s, _table$initialState;
2397
+ table.setSorting(defaultState ? [] : (_table$initialState$s = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.sorting) != null ? _table$initialState$s : []);
2398
+ };
2399
+ table.getPreSortedRowModel = () => table.getGroupedRowModel();
2400
+ table.getSortedRowModel = () => {
2401
+ if (!table._getSortedRowModel && table.options.getSortedRowModel) {
2402
+ table._getSortedRowModel = table.options.getSortedRowModel(table);
2403
+ }
2404
+ if (table.options.manualSorting || !table._getSortedRowModel) {
2405
+ return table.getPreSortedRowModel();
2406
+ }
2407
+ return table._getSortedRowModel();
2408
+ };
2409
+ }
2410
+ };
2411
+ const builtInFeatures = [
2412
+ Headers,
2413
+ ColumnVisibility,
2414
+ ColumnOrdering,
2415
+ ColumnPinning,
2416
+ ColumnFaceting,
2417
+ ColumnFiltering,
2418
+ GlobalFaceting,
2419
+ //depends on ColumnFaceting
2420
+ GlobalFiltering,
2421
+ //depends on ColumnFiltering
2422
+ RowSorting,
2423
+ ColumnGrouping,
2424
+ //depends on RowSorting
2425
+ RowExpanding,
2426
+ RowPagination,
2427
+ RowPinning,
2428
+ RowSelection,
2429
+ ColumnSizing
2430
+ ];
2431
+ function createTable(options) {
2432
+ var _options$_features, _options$initialState;
2433
+ if (process.env.NODE_ENV !== "production" && (options.debugAll || options.debugTable)) {
2434
+ console.info("Creating Table Instance...");
2435
+ }
2436
+ const _features = [...builtInFeatures, ...(_options$_features = options._features) != null ? _options$_features : []];
2437
+ let table = {
2438
+ _features
2439
+ };
2440
+ const defaultOptions = table._features.reduce((obj, feature) => {
2441
+ return Object.assign(obj, feature.getDefaultOptions == null ? void 0 : feature.getDefaultOptions(table));
2442
+ }, {});
2443
+ const mergeOptions = (options2) => {
2444
+ if (table.options.mergeOptions) {
2445
+ return table.options.mergeOptions(defaultOptions, options2);
2446
+ }
2447
+ return {
2448
+ ...defaultOptions,
2449
+ ...options2
2450
+ };
2451
+ };
2452
+ const coreInitialState = {};
2453
+ let initialState = {
2454
+ ...coreInitialState,
2455
+ ...(_options$initialState = options.initialState) != null ? _options$initialState : {}
2456
+ };
2457
+ table._features.forEach((feature) => {
2458
+ var _feature$getInitialSt;
2459
+ initialState = (_feature$getInitialSt = feature.getInitialState == null ? void 0 : feature.getInitialState(initialState)) != null ? _feature$getInitialSt : initialState;
2460
+ });
2461
+ const queued = [];
2462
+ let queuedTimeout = false;
2463
+ const coreInstance = {
2464
+ _features,
2465
+ options: {
2466
+ ...defaultOptions,
2467
+ ...options
2468
+ },
2469
+ initialState,
2470
+ _queue: (cb) => {
2471
+ queued.push(cb);
2472
+ if (!queuedTimeout) {
2473
+ queuedTimeout = true;
2474
+ Promise.resolve().then(() => {
2475
+ while (queued.length) {
2476
+ queued.shift()();
2477
+ }
2478
+ queuedTimeout = false;
2479
+ }).catch((error) => setTimeout(() => {
2480
+ throw error;
2481
+ }));
2482
+ }
2483
+ },
2484
+ reset: () => {
2485
+ table.setState(table.initialState);
2486
+ },
2487
+ setOptions: (updater) => {
2488
+ const newOptions = functionalUpdate(updater, table.options);
2489
+ table.options = mergeOptions(newOptions);
2490
+ },
2491
+ getState: () => {
2492
+ return table.options.state;
2493
+ },
2494
+ setState: (updater) => {
2495
+ table.options.onStateChange == null || table.options.onStateChange(updater);
2496
+ },
2497
+ _getRowId: (row, index, parent) => {
2498
+ var _table$options$getRow;
2499
+ return (_table$options$getRow = table.options.getRowId == null ? void 0 : table.options.getRowId(row, index, parent)) != null ? _table$options$getRow : `${parent ? [parent.id, index].join(".") : index}`;
2500
+ },
2501
+ getCoreRowModel: () => {
2502
+ if (!table._getCoreRowModel) {
2503
+ table._getCoreRowModel = table.options.getCoreRowModel(table);
2504
+ }
2505
+ return table._getCoreRowModel();
2506
+ },
2507
+ // The final calls start at the bottom of the model,
2508
+ // expanded rows, which then work their way up
2509
+ getRowModel: () => {
2510
+ return table.getPaginationRowModel();
2511
+ },
2512
+ //in next version, we should just pass in the row model as the optional 2nd arg
2513
+ getRow: (id, searchAll) => {
2514
+ let row = (searchAll ? table.getPrePaginationRowModel() : table.getRowModel()).rowsById[id];
2515
+ if (!row) {
2516
+ row = table.getCoreRowModel().rowsById[id];
2517
+ if (!row) {
2518
+ if (process.env.NODE_ENV !== "production") {
2519
+ throw new Error(`getRow could not find row with ID: ${id}`);
2520
+ }
2521
+ throw new Error();
2522
+ }
2523
+ }
2524
+ return row;
2525
+ },
2526
+ _getDefaultColumnDef: memo(() => [table.options.defaultColumn], (defaultColumn) => {
2527
+ var _defaultColumn;
2528
+ defaultColumn = (_defaultColumn = defaultColumn) != null ? _defaultColumn : {};
2529
+ return {
2530
+ header: (props) => {
2531
+ const resolvedColumnDef = props.header.column.columnDef;
2532
+ if (resolvedColumnDef.accessorKey) {
2533
+ return resolvedColumnDef.accessorKey;
2534
+ }
2535
+ if (resolvedColumnDef.accessorFn) {
2536
+ return resolvedColumnDef.id;
2537
+ }
2538
+ return null;
2539
+ },
2540
+ // footer: props => props.header.column.id,
2541
+ cell: (props) => {
2542
+ var _props$renderValue$to, _props$renderValue;
2543
+ return (_props$renderValue$to = (_props$renderValue = props.renderValue()) == null || _props$renderValue.toString == null ? void 0 : _props$renderValue.toString()) != null ? _props$renderValue$to : null;
2544
+ },
2545
+ ...table._features.reduce((obj, feature) => {
2546
+ return Object.assign(obj, feature.getDefaultColumnDef == null ? void 0 : feature.getDefaultColumnDef());
2547
+ }, {}),
2548
+ ...defaultColumn
2549
+ };
2550
+ }, getMemoOptions(options, "debugColumns", "_getDefaultColumnDef")),
2551
+ _getColumnDefs: () => table.options.columns,
2552
+ getAllColumns: memo(() => [table._getColumnDefs()], (columnDefs) => {
2553
+ const recurseColumns = function(columnDefs2, parent, depth) {
2554
+ if (depth === void 0) {
2555
+ depth = 0;
2556
+ }
2557
+ return columnDefs2.map((columnDef) => {
2558
+ const column = createColumn(table, columnDef, depth, parent);
2559
+ const groupingColumnDef = columnDef;
2560
+ column.columns = groupingColumnDef.columns ? recurseColumns(groupingColumnDef.columns, column, depth + 1) : [];
2561
+ return column;
2562
+ });
2563
+ };
2564
+ return recurseColumns(columnDefs);
2565
+ }, getMemoOptions(options, "debugColumns", "getAllColumns")),
2566
+ getAllFlatColumns: memo(() => [table.getAllColumns()], (allColumns) => {
2567
+ return allColumns.flatMap((column) => {
2568
+ return column.getFlatColumns();
2569
+ });
2570
+ }, getMemoOptions(options, "debugColumns", "getAllFlatColumns")),
2571
+ _getAllFlatColumnsById: memo(() => [table.getAllFlatColumns()], (flatColumns) => {
2572
+ return flatColumns.reduce((acc, column) => {
2573
+ acc[column.id] = column;
2574
+ return acc;
2575
+ }, {});
2576
+ }, getMemoOptions(options, "debugColumns", "getAllFlatColumnsById")),
2577
+ getAllLeafColumns: memo(() => [table.getAllColumns(), table._getOrderColumnsFn()], (allColumns, orderColumns2) => {
2578
+ let leafColumns = allColumns.flatMap((column) => column.getLeafColumns());
2579
+ return orderColumns2(leafColumns);
2580
+ }, getMemoOptions(options, "debugColumns", "getAllLeafColumns")),
2581
+ getColumn: (columnId) => {
2582
+ const column = table._getAllFlatColumnsById()[columnId];
2583
+ if (process.env.NODE_ENV !== "production" && !column) {
2584
+ console.error(`[Table] Column with id '${columnId}' does not exist.`);
2585
+ }
2586
+ return column;
2587
+ }
2588
+ };
2589
+ Object.assign(table, coreInstance);
2590
+ for (let index = 0; index < table._features.length; index++) {
2591
+ const feature = table._features[index];
2592
+ feature == null || feature.createTable == null || feature.createTable(table);
2593
+ }
2594
+ return table;
2595
+ }
2596
+ function getCoreRowModel() {
2597
+ return (table) => memo(() => [table.options.data], (data) => {
2598
+ const rowModel = {
2599
+ rows: [],
2600
+ flatRows: [],
2601
+ rowsById: {}
2602
+ };
2603
+ const accessRows = function(originalRows, depth, parentRow) {
2604
+ if (depth === void 0) {
2605
+ depth = 0;
2606
+ }
2607
+ const rows = [];
2608
+ for (let i = 0; i < originalRows.length; i++) {
2609
+ const row = createRow(table, table._getRowId(originalRows[i], i, parentRow), originalRows[i], i, depth, void 0, parentRow == null ? void 0 : parentRow.id);
2610
+ rowModel.flatRows.push(row);
2611
+ rowModel.rowsById[row.id] = row;
2612
+ rows.push(row);
2613
+ if (table.options.getSubRows) {
2614
+ var _row$originalSubRows;
2615
+ row.originalSubRows = table.options.getSubRows(originalRows[i], i);
2616
+ if ((_row$originalSubRows = row.originalSubRows) != null && _row$originalSubRows.length) {
2617
+ row.subRows = accessRows(row.originalSubRows, depth + 1, row);
2618
+ }
2619
+ }
2620
+ }
2621
+ return rows;
2622
+ };
2623
+ rowModel.rows = accessRows(data);
2624
+ return rowModel;
2625
+ }, getMemoOptions(table.options, "debugTable", "getRowModel", () => table._autoResetPageIndex()));
2626
+ }
2627
+ function getExpandedRowModel() {
2628
+ return (table) => memo(() => [table.getState().expanded, table.getPreExpandedRowModel(), table.options.paginateExpandedRows], (expanded, rowModel, paginateExpandedRows) => {
2629
+ if (!rowModel.rows.length || expanded !== true && !Object.keys(expanded != null ? expanded : {}).length) {
2630
+ return rowModel;
2631
+ }
2632
+ if (!paginateExpandedRows) {
2633
+ return rowModel;
2634
+ }
2635
+ return expandRows(rowModel);
2636
+ }, getMemoOptions(table.options, "debugTable", "getExpandedRowModel"));
2637
+ }
2638
+ function expandRows(rowModel) {
2639
+ const expandedRows = [];
2640
+ const handleRow = (row) => {
2641
+ var _row$subRows;
2642
+ expandedRows.push(row);
2643
+ if ((_row$subRows = row.subRows) != null && _row$subRows.length && row.getIsExpanded()) {
2644
+ row.subRows.forEach(handleRow);
2645
+ }
2646
+ };
2647
+ rowModel.rows.forEach(handleRow);
2648
+ return {
2649
+ rows: expandedRows,
2650
+ flatRows: rowModel.flatRows,
2651
+ rowsById: rowModel.rowsById
2652
+ };
2653
+ }
2654
+ function getFacetedMinMaxValues() {
2655
+ return (table, columnId) => memo(() => {
2656
+ var _table$getColumn;
2657
+ return [(_table$getColumn = table.getColumn(columnId)) == null ? void 0 : _table$getColumn.getFacetedRowModel()];
2658
+ }, (facetedRowModel) => {
2659
+ if (!facetedRowModel) return void 0;
2660
+ const uniqueValues = facetedRowModel.flatRows.flatMap((flatRow) => {
2661
+ var _flatRow$getUniqueVal;
2662
+ return (_flatRow$getUniqueVal = flatRow.getUniqueValues(columnId)) != null ? _flatRow$getUniqueVal : [];
2663
+ }).map(Number).filter((value) => !Number.isNaN(value));
2664
+ if (!uniqueValues.length) return;
2665
+ let facetedMinValue = uniqueValues[0];
2666
+ let facetedMaxValue = uniqueValues[uniqueValues.length - 1];
2667
+ for (const value of uniqueValues) {
2668
+ if (value < facetedMinValue) facetedMinValue = value;
2669
+ else if (value > facetedMaxValue) facetedMaxValue = value;
2670
+ }
2671
+ return [facetedMinValue, facetedMaxValue];
2672
+ }, getMemoOptions(table.options, "debugTable", "getFacetedMinMaxValues"));
2673
+ }
2674
+ function filterRows(rows, filterRowImpl, table) {
2675
+ if (table.options.filterFromLeafRows) {
2676
+ return filterRowModelFromLeafs(rows, filterRowImpl, table);
2677
+ }
2678
+ return filterRowModelFromRoot(rows, filterRowImpl, table);
2679
+ }
2680
+ function filterRowModelFromLeafs(rowsToFilter, filterRow, table) {
2681
+ var _table$options$maxLea;
2682
+ const newFilteredFlatRows = [];
2683
+ const newFilteredRowsById = {};
2684
+ const maxDepth = (_table$options$maxLea = table.options.maxLeafRowFilterDepth) != null ? _table$options$maxLea : 100;
2685
+ const recurseFilterRows = function(rowsToFilter2, depth) {
2686
+ if (depth === void 0) {
2687
+ depth = 0;
2688
+ }
2689
+ const rows = [];
2690
+ for (let i = 0; i < rowsToFilter2.length; i++) {
2691
+ var _row$subRows;
2692
+ let row = rowsToFilter2[i];
2693
+ const newRow = createRow(table, row.id, row.original, row.index, row.depth, void 0, row.parentId);
2694
+ newRow.columnFilters = row.columnFilters;
2695
+ if ((_row$subRows = row.subRows) != null && _row$subRows.length && depth < maxDepth) {
2696
+ newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
2697
+ row = newRow;
2698
+ if (filterRow(row) && !newRow.subRows.length) {
2699
+ rows.push(row);
2700
+ newFilteredRowsById[row.id] = row;
2701
+ newFilteredFlatRows.push(row);
2702
+ continue;
2703
+ }
2704
+ if (filterRow(row) || newRow.subRows.length) {
2705
+ rows.push(row);
2706
+ newFilteredRowsById[row.id] = row;
2707
+ newFilteredFlatRows.push(row);
2708
+ continue;
2709
+ }
2710
+ } else {
2711
+ row = newRow;
2712
+ if (filterRow(row)) {
2713
+ rows.push(row);
2714
+ newFilteredRowsById[row.id] = row;
2715
+ newFilteredFlatRows.push(row);
2716
+ }
2717
+ }
2718
+ }
2719
+ return rows;
2720
+ };
2721
+ return {
2722
+ rows: recurseFilterRows(rowsToFilter),
2723
+ flatRows: newFilteredFlatRows,
2724
+ rowsById: newFilteredRowsById
2725
+ };
2726
+ }
2727
+ function filterRowModelFromRoot(rowsToFilter, filterRow, table) {
2728
+ var _table$options$maxLea2;
2729
+ const newFilteredFlatRows = [];
2730
+ const newFilteredRowsById = {};
2731
+ const maxDepth = (_table$options$maxLea2 = table.options.maxLeafRowFilterDepth) != null ? _table$options$maxLea2 : 100;
2732
+ const recurseFilterRows = function(rowsToFilter2, depth) {
2733
+ if (depth === void 0) {
2734
+ depth = 0;
2735
+ }
2736
+ const rows = [];
2737
+ for (let i = 0; i < rowsToFilter2.length; i++) {
2738
+ let row = rowsToFilter2[i];
2739
+ const pass = filterRow(row);
2740
+ if (pass) {
2741
+ var _row$subRows2;
2742
+ if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length && depth < maxDepth) {
2743
+ const newRow = createRow(table, row.id, row.original, row.index, row.depth, void 0, row.parentId);
2744
+ newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
2745
+ row = newRow;
2746
+ }
2747
+ rows.push(row);
2748
+ newFilteredFlatRows.push(row);
2749
+ newFilteredRowsById[row.id] = row;
2750
+ }
2751
+ }
2752
+ return rows;
2753
+ };
2754
+ return {
2755
+ rows: recurseFilterRows(rowsToFilter),
2756
+ flatRows: newFilteredFlatRows,
2757
+ rowsById: newFilteredRowsById
2758
+ };
2759
+ }
2760
+ function getFacetedRowModel() {
2761
+ return (table, columnId) => memo(() => [table.getPreFilteredRowModel(), table.getState().columnFilters, table.getState().globalFilter, table.getFilteredRowModel()], (preRowModel, columnFilters, globalFilter) => {
2762
+ if (!preRowModel.rows.length || !(columnFilters != null && columnFilters.length) && !globalFilter) {
2763
+ return preRowModel;
2764
+ }
2765
+ const filterableIds = [...columnFilters.map((d) => d.id).filter((d) => d !== columnId), globalFilter ? "__global__" : void 0].filter(Boolean);
2766
+ const filterRowsImpl = (row) => {
2767
+ for (let i = 0; i < filterableIds.length; i++) {
2768
+ if (row.columnFilters[filterableIds[i]] === false) {
2769
+ return false;
2770
+ }
2771
+ }
2772
+ return true;
2773
+ };
2774
+ return filterRows(preRowModel.rows, filterRowsImpl, table);
2775
+ }, getMemoOptions(table.options, "debugTable", "getFacetedRowModel"));
2776
+ }
2777
+ function getFacetedUniqueValues() {
2778
+ return (table, columnId) => memo(() => {
2779
+ var _table$getColumn;
2780
+ return [(_table$getColumn = table.getColumn(columnId)) == null ? void 0 : _table$getColumn.getFacetedRowModel()];
2781
+ }, (facetedRowModel) => {
2782
+ if (!facetedRowModel) return /* @__PURE__ */ new Map();
2783
+ let facetedUniqueValues = /* @__PURE__ */ new Map();
2784
+ for (let i = 0; i < facetedRowModel.flatRows.length; i++) {
2785
+ const values = facetedRowModel.flatRows[i].getUniqueValues(columnId);
2786
+ for (let j = 0; j < values.length; j++) {
2787
+ const value = values[j];
2788
+ if (facetedUniqueValues.has(value)) {
2789
+ var _facetedUniqueValues$;
2790
+ facetedUniqueValues.set(value, ((_facetedUniqueValues$ = facetedUniqueValues.get(value)) != null ? _facetedUniqueValues$ : 0) + 1);
2791
+ } else {
2792
+ facetedUniqueValues.set(value, 1);
2793
+ }
2794
+ }
2795
+ }
2796
+ return facetedUniqueValues;
2797
+ }, getMemoOptions(table.options, "debugTable", `getFacetedUniqueValues_${columnId}`));
2798
+ }
2799
+ function getFilteredRowModel() {
2800
+ return (table) => memo(() => [table.getPreFilteredRowModel(), table.getState().columnFilters, table.getState().globalFilter], (rowModel, columnFilters, globalFilter) => {
2801
+ if (!rowModel.rows.length || !(columnFilters != null && columnFilters.length) && !globalFilter) {
2802
+ for (let i = 0; i < rowModel.flatRows.length; i++) {
2803
+ rowModel.flatRows[i].columnFilters = {};
2804
+ rowModel.flatRows[i].columnFiltersMeta = {};
2805
+ }
2806
+ return rowModel;
2807
+ }
2808
+ const resolvedColumnFilters = [];
2809
+ const resolvedGlobalFilters = [];
2810
+ (columnFilters != null ? columnFilters : []).forEach((d) => {
2811
+ var _filterFn$resolveFilt;
2812
+ const column = table.getColumn(d.id);
2813
+ if (!column) {
2814
+ return;
2815
+ }
2816
+ const filterFn = column.getFilterFn();
2817
+ if (!filterFn) {
2818
+ if (process.env.NODE_ENV !== "production") {
2819
+ console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${column.id}.`);
2820
+ }
2821
+ return;
2822
+ }
2823
+ resolvedColumnFilters.push({
2824
+ id: d.id,
2825
+ filterFn,
2826
+ resolvedValue: (_filterFn$resolveFilt = filterFn.resolveFilterValue == null ? void 0 : filterFn.resolveFilterValue(d.value)) != null ? _filterFn$resolveFilt : d.value
2827
+ });
2828
+ });
2829
+ const filterableIds = (columnFilters != null ? columnFilters : []).map((d) => d.id);
2830
+ const globalFilterFn = table.getGlobalFilterFn();
2831
+ const globallyFilterableColumns = table.getAllLeafColumns().filter((column) => column.getCanGlobalFilter());
2832
+ if (globalFilter && globalFilterFn && globallyFilterableColumns.length) {
2833
+ filterableIds.push("__global__");
2834
+ globallyFilterableColumns.forEach((column) => {
2835
+ var _globalFilterFn$resol;
2836
+ resolvedGlobalFilters.push({
2837
+ id: column.id,
2838
+ filterFn: globalFilterFn,
2839
+ resolvedValue: (_globalFilterFn$resol = globalFilterFn.resolveFilterValue == null ? void 0 : globalFilterFn.resolveFilterValue(globalFilter)) != null ? _globalFilterFn$resol : globalFilter
2840
+ });
2841
+ });
2842
+ }
2843
+ let currentColumnFilter;
2844
+ let currentGlobalFilter;
2845
+ for (let j = 0; j < rowModel.flatRows.length; j++) {
2846
+ const row = rowModel.flatRows[j];
2847
+ row.columnFilters = {};
2848
+ if (resolvedColumnFilters.length) {
2849
+ for (let i = 0; i < resolvedColumnFilters.length; i++) {
2850
+ currentColumnFilter = resolvedColumnFilters[i];
2851
+ const id = currentColumnFilter.id;
2852
+ row.columnFilters[id] = currentColumnFilter.filterFn(row, id, currentColumnFilter.resolvedValue, (filterMeta) => {
2853
+ row.columnFiltersMeta[id] = filterMeta;
2854
+ });
2855
+ }
2856
+ }
2857
+ if (resolvedGlobalFilters.length) {
2858
+ for (let i = 0; i < resolvedGlobalFilters.length; i++) {
2859
+ currentGlobalFilter = resolvedGlobalFilters[i];
2860
+ const id = currentGlobalFilter.id;
2861
+ if (currentGlobalFilter.filterFn(row, id, currentGlobalFilter.resolvedValue, (filterMeta) => {
2862
+ row.columnFiltersMeta[id] = filterMeta;
2863
+ })) {
2864
+ row.columnFilters.__global__ = true;
2865
+ break;
2866
+ }
2867
+ }
2868
+ if (row.columnFilters.__global__ !== true) {
2869
+ row.columnFilters.__global__ = false;
2870
+ }
2871
+ }
2872
+ }
2873
+ const filterRowsImpl = (row) => {
2874
+ for (let i = 0; i < filterableIds.length; i++) {
2875
+ if (row.columnFilters[filterableIds[i]] === false) {
2876
+ return false;
2877
+ }
2878
+ }
2879
+ return true;
2880
+ };
2881
+ return filterRows(rowModel.rows, filterRowsImpl, table);
2882
+ }, getMemoOptions(table.options, "debugTable", "getFilteredRowModel", () => table._autoResetPageIndex()));
2883
+ }
2884
+ function getGroupedRowModel() {
2885
+ return (table) => memo(() => [table.getState().grouping, table.getPreGroupedRowModel()], (grouping, rowModel) => {
2886
+ if (!rowModel.rows.length || !grouping.length) {
2887
+ rowModel.rows.forEach((row) => {
2888
+ row.depth = 0;
2889
+ row.parentId = void 0;
2890
+ });
2891
+ return rowModel;
2892
+ }
2893
+ const existingGrouping = grouping.filter((columnId) => table.getColumn(columnId));
2894
+ const groupedFlatRows = [];
2895
+ const groupedRowsById = {};
2896
+ const groupUpRecursively = function(rows, depth, parentId) {
2897
+ if (depth === void 0) {
2898
+ depth = 0;
2899
+ }
2900
+ if (depth >= existingGrouping.length) {
2901
+ return rows.map((row) => {
2902
+ row.depth = depth;
2903
+ groupedFlatRows.push(row);
2904
+ groupedRowsById[row.id] = row;
2905
+ if (row.subRows) {
2906
+ row.subRows = groupUpRecursively(row.subRows, depth + 1, row.id);
2907
+ }
2908
+ return row;
2909
+ });
2910
+ }
2911
+ const columnId = existingGrouping[depth];
2912
+ const rowGroupsMap = groupBy(rows, columnId);
2913
+ const aggregatedGroupedRows = Array.from(rowGroupsMap.entries()).map((_ref, index) => {
2914
+ let [groupingValue, groupedRows2] = _ref;
2915
+ let id = `${columnId}:${groupingValue}`;
2916
+ id = parentId ? `${parentId}>${id}` : id;
2917
+ const subRows = groupUpRecursively(groupedRows2, depth + 1, id);
2918
+ subRows.forEach((subRow) => {
2919
+ subRow.parentId = id;
2920
+ });
2921
+ const leafRows = depth ? flattenBy(groupedRows2, (row2) => row2.subRows) : groupedRows2;
2922
+ const row = createRow(table, id, leafRows[0].original, index, depth, void 0, parentId);
2923
+ Object.assign(row, {
2924
+ groupingColumnId: columnId,
2925
+ groupingValue,
2926
+ subRows,
2927
+ leafRows,
2928
+ getValue: (columnId2) => {
2929
+ if (existingGrouping.includes(columnId2)) {
2930
+ if (row._valuesCache.hasOwnProperty(columnId2)) {
2931
+ return row._valuesCache[columnId2];
2932
+ }
2933
+ if (groupedRows2[0]) {
2934
+ var _groupedRows$0$getVal;
2935
+ row._valuesCache[columnId2] = (_groupedRows$0$getVal = groupedRows2[0].getValue(columnId2)) != null ? _groupedRows$0$getVal : void 0;
2936
+ }
2937
+ return row._valuesCache[columnId2];
2938
+ }
2939
+ if (row._groupingValuesCache.hasOwnProperty(columnId2)) {
2940
+ return row._groupingValuesCache[columnId2];
2941
+ }
2942
+ const column = table.getColumn(columnId2);
2943
+ const aggregateFn = column == null ? void 0 : column.getAggregationFn();
2944
+ if (aggregateFn) {
2945
+ row._groupingValuesCache[columnId2] = aggregateFn(columnId2, leafRows, groupedRows2);
2946
+ return row._groupingValuesCache[columnId2];
2947
+ }
2948
+ }
2949
+ });
2950
+ subRows.forEach((subRow) => {
2951
+ groupedFlatRows.push(subRow);
2952
+ groupedRowsById[subRow.id] = subRow;
2953
+ });
2954
+ return row;
2955
+ });
2956
+ return aggregatedGroupedRows;
2957
+ };
2958
+ const groupedRows = groupUpRecursively(rowModel.rows, 0);
2959
+ groupedRows.forEach((subRow) => {
2960
+ groupedFlatRows.push(subRow);
2961
+ groupedRowsById[subRow.id] = subRow;
2962
+ });
2963
+ return {
2964
+ rows: groupedRows,
2965
+ flatRows: groupedFlatRows,
2966
+ rowsById: groupedRowsById
2967
+ };
2968
+ }, getMemoOptions(table.options, "debugTable", "getGroupedRowModel", () => {
2969
+ table._queue(() => {
2970
+ table._autoResetExpanded();
2971
+ table._autoResetPageIndex();
2972
+ });
2973
+ }));
2974
+ }
2975
+ function groupBy(rows, columnId) {
2976
+ const groupMap = /* @__PURE__ */ new Map();
2977
+ return rows.reduce((map, row) => {
2978
+ const resKey = `${row.getGroupingValue(columnId)}`;
2979
+ const previous = map.get(resKey);
2980
+ if (!previous) {
2981
+ map.set(resKey, [row]);
2982
+ } else {
2983
+ previous.push(row);
2984
+ }
2985
+ return map;
2986
+ }, groupMap);
2987
+ }
2988
+ function getPaginationRowModel(opts) {
2989
+ return (table) => memo(() => [table.getState().pagination, table.getPrePaginationRowModel(), table.options.paginateExpandedRows ? void 0 : table.getState().expanded], (pagination, rowModel) => {
2990
+ if (!rowModel.rows.length) {
2991
+ return rowModel;
2992
+ }
2993
+ const {
2994
+ pageSize,
2995
+ pageIndex
2996
+ } = pagination;
2997
+ let {
2998
+ rows,
2999
+ flatRows,
3000
+ rowsById
3001
+ } = rowModel;
3002
+ const pageStart = pageSize * pageIndex;
3003
+ const pageEnd = pageStart + pageSize;
3004
+ rows = rows.slice(pageStart, pageEnd);
3005
+ let paginatedRowModel;
3006
+ if (!table.options.paginateExpandedRows) {
3007
+ paginatedRowModel = expandRows({
3008
+ rows,
3009
+ flatRows,
3010
+ rowsById
3011
+ });
3012
+ } else {
3013
+ paginatedRowModel = {
3014
+ rows,
3015
+ flatRows,
3016
+ rowsById
3017
+ };
3018
+ }
3019
+ paginatedRowModel.flatRows = [];
3020
+ const handleRow = (row) => {
3021
+ paginatedRowModel.flatRows.push(row);
3022
+ if (row.subRows.length) {
3023
+ row.subRows.forEach(handleRow);
3024
+ }
3025
+ };
3026
+ paginatedRowModel.rows.forEach(handleRow);
3027
+ return paginatedRowModel;
3028
+ }, getMemoOptions(table.options, "debugTable", "getPaginationRowModel"));
3029
+ }
3030
+ function getSortedRowModel() {
3031
+ return (table) => memo(() => [table.getState().sorting, table.getPreSortedRowModel()], (sorting, rowModel) => {
3032
+ if (!rowModel.rows.length || !(sorting != null && sorting.length)) {
3033
+ return rowModel;
3034
+ }
3035
+ const sortingState = table.getState().sorting;
3036
+ const sortedFlatRows = [];
3037
+ const availableSorting = sortingState.filter((sort) => {
3038
+ var _table$getColumn;
3039
+ return (_table$getColumn = table.getColumn(sort.id)) == null ? void 0 : _table$getColumn.getCanSort();
3040
+ });
3041
+ const columnInfoById = {};
3042
+ availableSorting.forEach((sortEntry) => {
3043
+ const column = table.getColumn(sortEntry.id);
3044
+ if (!column) return;
3045
+ columnInfoById[sortEntry.id] = {
3046
+ sortUndefined: column.columnDef.sortUndefined,
3047
+ invertSorting: column.columnDef.invertSorting,
3048
+ sortingFn: column.getSortingFn()
3049
+ };
3050
+ });
3051
+ const sortData = (rows) => {
3052
+ const sortedData = rows.map((row) => ({
3053
+ ...row
3054
+ }));
3055
+ sortedData.sort((rowA, rowB) => {
3056
+ for (let i = 0; i < availableSorting.length; i += 1) {
3057
+ var _sortEntry$desc;
3058
+ const sortEntry = availableSorting[i];
3059
+ const columnInfo = columnInfoById[sortEntry.id];
3060
+ const sortUndefined = columnInfo.sortUndefined;
3061
+ const isDesc = (_sortEntry$desc = sortEntry == null ? void 0 : sortEntry.desc) != null ? _sortEntry$desc : false;
3062
+ let sortInt = 0;
3063
+ if (sortUndefined) {
3064
+ const aValue = rowA.getValue(sortEntry.id);
3065
+ const bValue = rowB.getValue(sortEntry.id);
3066
+ const aUndefined = aValue === void 0;
3067
+ const bUndefined = bValue === void 0;
3068
+ if (aUndefined || bUndefined) {
3069
+ if (sortUndefined === "first") return aUndefined ? -1 : 1;
3070
+ if (sortUndefined === "last") return aUndefined ? 1 : -1;
3071
+ sortInt = aUndefined && bUndefined ? 0 : aUndefined ? sortUndefined : -sortUndefined;
3072
+ }
3073
+ }
3074
+ if (sortInt === 0) {
3075
+ sortInt = columnInfo.sortingFn(rowA, rowB, sortEntry.id);
3076
+ }
3077
+ if (sortInt !== 0) {
3078
+ if (isDesc) {
3079
+ sortInt *= -1;
3080
+ }
3081
+ if (columnInfo.invertSorting) {
3082
+ sortInt *= -1;
3083
+ }
3084
+ return sortInt;
3085
+ }
3086
+ }
3087
+ return rowA.index - rowB.index;
3088
+ });
3089
+ sortedData.forEach((row) => {
3090
+ var _row$subRows;
3091
+ sortedFlatRows.push(row);
3092
+ if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
3093
+ row.subRows = sortData(row.subRows);
3094
+ }
3095
+ });
3096
+ return sortedData;
3097
+ };
3098
+ return {
3099
+ rows: sortData(rowModel.rows),
3100
+ flatRows: sortedFlatRows,
3101
+ rowsById: rowModel.rowsById
3102
+ };
3103
+ }, getMemoOptions(table.options, "debugTable", "getSortedRowModel", () => table._autoResetPageIndex()));
3104
+ }
3105
+ export {
3106
+ ColumnFaceting,
3107
+ ColumnFiltering,
3108
+ ColumnGrouping,
3109
+ ColumnOrdering,
3110
+ ColumnPinning,
3111
+ ColumnSizing,
3112
+ ColumnVisibility,
3113
+ GlobalFaceting,
3114
+ GlobalFiltering,
3115
+ Headers,
3116
+ RowExpanding,
3117
+ RowPagination,
3118
+ RowPinning,
3119
+ RowSelection,
3120
+ RowSorting,
3121
+ _getVisibleLeafColumns,
3122
+ aggregationFns,
3123
+ buildHeaderGroups,
3124
+ createCell,
3125
+ createColumn,
3126
+ createRow,
3127
+ createTable,
3128
+ defaultColumnSizing,
3129
+ expandRows,
3130
+ filterFns,
3131
+ flattenBy,
3132
+ functionalUpdate,
3133
+ getCoreRowModel,
3134
+ getExpandedRowModel,
3135
+ getFacetedMinMaxValues,
3136
+ getFacetedRowModel,
3137
+ getFacetedUniqueValues,
3138
+ getFilteredRowModel,
3139
+ getGroupedRowModel,
3140
+ getMemoOptions,
3141
+ getPaginationRowModel,
3142
+ getSortedRowModel,
3143
+ isFunction,
3144
+ isNumberArray,
3145
+ isRowSelected,
3146
+ isSubRowSelected,
3147
+ makeStateUpdater,
3148
+ memo,
3149
+ orderColumns,
3150
+ passiveEventSupported,
3151
+ reSplitAlphaNumeric,
3152
+ selectRowsFn,
3153
+ shouldAutoRemoveFilter,
3154
+ sortingFns
3155
+ };