fastapi-rtk 1.1.5 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/dist/.bundled/jsonforms/cjs/_virtual/index10.cjs +2 -2
  2. package/dist/.bundled/jsonforms/cjs/_virtual/index3.cjs +2 -2
  3. package/dist/.bundled/jsonforms/cjs/_virtual/index4.cjs +2 -2
  4. package/dist/.bundled/jsonforms/cjs/_virtual/index5.cjs +2 -2
  5. package/dist/.bundled/jsonforms/cjs/_virtual/index6.cjs +2 -2
  6. package/dist/.bundled/jsonforms/cjs/_virtual/index7.cjs +2 -2
  7. package/dist/.bundled/jsonforms/cjs/_virtual/index8.cjs +2 -2
  8. package/dist/.bundled/jsonforms/cjs/_virtual/index9.cjs +2 -2
  9. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs +1 -1
  10. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.cjs +1 -1
  11. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useNavigationComponent.cjs +4 -4
  12. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useToolbarComponent.cjs +5 -5
  13. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/MantineArrayLayout.cjs +6 -6
  14. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Group/variants/GroupFieldset.cjs +4 -4
  15. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
  16. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
  17. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/testers/isJsonArrayControl.cjs +1 -1
  18. package/dist/.bundled/jsonforms/esm/_virtual/index10.mjs +2 -2
  19. package/dist/.bundled/jsonforms/esm/_virtual/index3.mjs +2 -2
  20. package/dist/.bundled/jsonforms/esm/_virtual/index4.mjs +2 -2
  21. package/dist/.bundled/jsonforms/esm/_virtual/index5.mjs +2 -2
  22. package/dist/.bundled/jsonforms/esm/_virtual/index6.mjs +2 -2
  23. package/dist/.bundled/jsonforms/esm/_virtual/index7.mjs +2 -2
  24. package/dist/.bundled/jsonforms/esm/_virtual/index8.mjs +2 -2
  25. package/dist/.bundled/jsonforms/esm/_virtual/index9.mjs +2 -2
  26. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs +1 -1
  27. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.mjs +1 -1
  28. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useNavigationComponent.mjs +1 -1
  29. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useToolbarComponent.mjs +1 -1
  30. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/MantineArrayLayout.mjs +1 -1
  31. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Group/variants/GroupFieldset.mjs +1 -1
  32. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.mjs +1 -1
  33. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.mjs +1 -1
  34. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/testers/isJsonArrayControl.mjs +1 -1
  35. package/dist/.bundled/jsonforms/lib/smoke.test.d.ts +1 -0
  36. package/dist/.external/cjs/ajv@8.20.0/ajv/dist/compile/codegen/index.cjs +1 -1
  37. package/dist/.external/cjs/ajv@8.20.0/ajv/dist/compile/index.cjs +1 -1
  38. package/dist/.external/cjs/ajv@8.20.0/ajv/dist/compile/validate/index.cjs +1 -1
  39. package/dist/.external/cjs/ajv@8.20.0/ajv/dist/vocabularies/applicator/index.cjs +1 -1
  40. package/dist/.external/cjs/ajv@8.20.0/ajv/dist/vocabularies/core/index.cjs +1 -1
  41. package/dist/.external/cjs/ajv@8.20.0/ajv/dist/vocabularies/discriminator/index.cjs +1 -1
  42. package/dist/.external/cjs/ajv@8.20.0/ajv/dist/vocabularies/format/index.cjs +1 -1
  43. package/dist/.external/cjs/ajv@8.20.0/ajv/dist/vocabularies/validation/index.cjs +1 -1
  44. package/dist/.external/esm/ajv@8.20.0/ajv/dist/compile/codegen/index.mjs +1 -1
  45. package/dist/.external/esm/ajv@8.20.0/ajv/dist/compile/index.mjs +1 -1
  46. package/dist/.external/esm/ajv@8.20.0/ajv/dist/compile/validate/index.mjs +1 -1
  47. package/dist/.external/esm/ajv@8.20.0/ajv/dist/vocabularies/applicator/index.mjs +1 -1
  48. package/dist/.external/esm/ajv@8.20.0/ajv/dist/vocabularies/core/index.mjs +1 -1
  49. package/dist/.external/esm/ajv@8.20.0/ajv/dist/vocabularies/discriminator/index.mjs +1 -1
  50. package/dist/.external/esm/ajv@8.20.0/ajv/dist/vocabularies/format/index.mjs +1 -1
  51. package/dist/.external/esm/ajv@8.20.0/ajv/dist/vocabularies/validation/index.mjs +1 -1
  52. package/dist/.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._2zjbhqlotlhjxtgwdmcgs6toey/mantine-react-table/dist/index.esm.mjs +3 -3
  53. package/dist/constants/lib/index.test.d.ts +1 -0
  54. package/dist/core/cjs/ActionIcons/Add/Add.cjs +3 -5
  55. package/dist/core/cjs/ActionIcons/Delete/Delete.cjs +16 -13
  56. package/dist/core/cjs/ActionIcons/Download/Download.cjs +7 -9
  57. package/dist/core/cjs/ActionIcons/Edit/Edit.cjs +21 -18
  58. package/dist/core/cjs/ActionIcons/Refresh/Refresh.cjs +15 -13
  59. package/dist/core/cjs/ActionIcons/Upload/Upload.cjs +9 -10
  60. package/dist/core/cjs/ActionIcons/View/View.cjs +21 -18
  61. package/dist/core/cjs/ActionIcons/utils/BaseActionIcon.cjs +15 -0
  62. package/dist/core/cjs/Dialogs/AddDialog.cjs +10 -8
  63. package/dist/core/cjs/Dialogs/DeleteDialog.cjs +9 -4
  64. package/dist/core/cjs/Dialogs/EditDialog.cjs +24 -9
  65. package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +1 -1
  66. package/dist/core/cjs/Tables/NextGenDataGrid/NextGenDataGrid.cjs +4 -4
  67. package/dist/core/cjs/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/getOptimizedMRT_RowSelectColumnDef.cjs +3 -3
  68. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/AdvancedFilters.cjs +1 -1
  69. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.cjs +6 -6
  70. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/mrtToolbars.cjs +96 -0
  71. package/dist/core/cjs/Tables/NextGenDataGrid/patch/MRT_TableContainer.cjs +1 -1
  72. package/dist/core/cjs/Tables/NextGenDataGrid/patch/body/MRT_TableBodyRow.cjs +1 -1
  73. package/dist/core/cjs/Tables/NextGenDataGrid/patch/head/MRT_TableHead.cjs +1 -1
  74. package/dist/core/cjs/Tables/NextGenDataGrid/patch/toolbar/MRT_ToolbarAlertBanner.cjs +37 -30
  75. package/dist/core/cjs/Wrappers/ApiProvider/ApiProvider.cjs +0 -2
  76. package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +2 -5
  77. package/dist/core/cjs/Wrappers/ApiProvider/hooks/utils/useApiActions.cjs +23 -94
  78. package/dist/core/esm/ActionIcons/Add/Add.mjs +3 -5
  79. package/dist/core/esm/ActionIcons/Delete/Delete.mjs +17 -14
  80. package/dist/core/esm/ActionIcons/Download/Download.mjs +8 -10
  81. package/dist/core/esm/ActionIcons/Edit/Edit.mjs +22 -19
  82. package/dist/core/esm/ActionIcons/Refresh/Refresh.mjs +15 -13
  83. package/dist/core/esm/ActionIcons/Upload/Upload.mjs +10 -11
  84. package/dist/core/esm/ActionIcons/View/View.mjs +22 -19
  85. package/dist/core/esm/ActionIcons/utils/BaseActionIcon.mjs +15 -0
  86. package/dist/core/esm/Dialogs/AddDialog.mjs +10 -8
  87. package/dist/core/esm/Dialogs/DeleteDialog.mjs +9 -4
  88. package/dist/core/esm/Dialogs/EditDialog.mjs +24 -9
  89. package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +1 -1
  90. package/dist/core/esm/Tables/NextGenDataGrid/NextGenDataGrid.mjs +4 -4
  91. package/dist/core/esm/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/getOptimizedMRT_RowSelectColumnDef.mjs +3 -3
  92. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/AdvancedFilters.mjs +1 -1
  93. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.mjs +6 -6
  94. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/mrtToolbars.mjs +96 -0
  95. package/dist/core/esm/Tables/NextGenDataGrid/patch/MRT_TableContainer.mjs +1 -1
  96. package/dist/core/esm/Tables/NextGenDataGrid/patch/body/MRT_TableBodyRow.mjs +1 -1
  97. package/dist/core/esm/Tables/NextGenDataGrid/patch/head/MRT_TableHead.mjs +1 -1
  98. package/dist/core/esm/Tables/NextGenDataGrid/patch/toolbar/MRT_ToolbarAlertBanner.mjs +37 -30
  99. package/dist/core/esm/Wrappers/ApiProvider/ApiProvider.mjs +0 -2
  100. package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +2 -5
  101. package/dist/core/esm/Wrappers/ApiProvider/hooks/utils/useApiActions.mjs +23 -94
  102. package/dist/core/lib/ActionIcons/Actions.test.d.ts +1 -0
  103. package/dist/core/lib/ActionIcons/Add/Add.test.d.ts +1 -0
  104. package/dist/core/lib/ActionIcons/Delete/Delete.test.d.ts +1 -0
  105. package/dist/core/lib/ActionIcons/Download/Download.test.d.ts +1 -0
  106. package/dist/core/lib/ActionIcons/Edit/Edit.test.d.ts +1 -0
  107. package/dist/core/lib/ActionIcons/Refresh/Refresh.test.d.ts +1 -0
  108. package/dist/core/lib/ActionIcons/Upload/Upload.test.d.ts +1 -0
  109. package/dist/core/lib/ActionIcons/View/View.test.d.ts +1 -0
  110. package/dist/core/lib/ActionIcons/utils/BaseActionIcon.d.ts +18 -0
  111. package/dist/core/lib/ActionIcons/utils/BaseActionIcon.test.d.ts +1 -0
  112. package/dist/core/lib/Dialogs/AddDialog.test.d.ts +1 -0
  113. package/dist/core/lib/Dialogs/DeleteDialog.test.d.ts +1 -0
  114. package/dist/core/lib/Dialogs/EditDialog.test.d.ts +1 -0
  115. package/dist/core/lib/Dialogs/ViewDialog.test.d.ts +1 -0
  116. package/dist/core/lib/Inputs/DateTimePicker.test.d.ts +1 -0
  117. package/dist/core/lib/Inputs/TimePicker.test.d.ts +1 -0
  118. package/dist/core/lib/Menu/UserMenu/UserMenu.test.d.ts +1 -0
  119. package/dist/core/lib/Modals/CommonModal.test.d.ts +1 -0
  120. package/dist/core/lib/Modals/normalProps.test.d.ts +1 -0
  121. package/dist/core/lib/Modals/overlayProps.test.d.ts +1 -0
  122. package/dist/core/lib/Selectors/LanguageSelector.test.d.ts +1 -0
  123. package/dist/core/lib/Tables/DataGrid/DataGrid.test.d.ts +1 -0
  124. package/dist/core/lib/Tables/DataGrid/ErrorDialog.test.d.ts +1 -0
  125. package/dist/core/lib/Tables/NextGenDataGrid/FallbackWrapper.test.d.ts +1 -0
  126. package/dist/core/lib/Tables/NextGenDataGrid/NextGenDataGrid.test.d.ts +1 -0
  127. package/dist/core/lib/Tables/NextGenDataGrid/hooks/useToolbar/mrtToolbars.d.ts +5 -0
  128. package/dist/core/lib/Tables/NextGenDataGrid/utils.test.d.ts +1 -0
  129. package/dist/core/lib/Wrappers/ApiProvider/ApiProvider.d.ts +1 -6
  130. package/dist/core/lib/Wrappers/ApiProvider/ApiProvider.test.d.ts +1 -0
  131. package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideApi.d.ts +3 -3
  132. package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideApi.test.d.ts +1 -0
  133. package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideBulk.test.d.ts +1 -0
  134. package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideForm.test.d.ts +1 -0
  135. package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useApiActions.d.ts +2 -5
  136. package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useApiActions.test.d.ts +1 -0
  137. package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useLatest.test.d.ts +1 -0
  138. package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useStreamingData.test.d.ts +1 -0
  139. package/dist/core/lib/Wrappers/ApiProvider/utils/api/createItem.test.d.ts +1 -0
  140. package/dist/core/lib/Wrappers/ApiProvider/utils/api/deleteItem.test.d.ts +1 -0
  141. package/dist/core/lib/Wrappers/ApiProvider/utils/api/downloadItems.test.d.ts +1 -0
  142. package/dist/core/lib/Wrappers/ApiProvider/utils/api/formCreateItem.test.d.ts +1 -0
  143. package/dist/core/lib/Wrappers/ApiProvider/utils/api/formUpdateItem.test.d.ts +1 -0
  144. package/dist/core/lib/Wrappers/ApiProvider/utils/api/getInfo.test.d.ts +1 -0
  145. package/dist/core/lib/Wrappers/ApiProvider/utils/api/getItem.test.d.ts +1 -0
  146. package/dist/core/lib/Wrappers/ApiProvider/utils/api/getItems.test.d.ts +1 -0
  147. package/dist/core/lib/Wrappers/ApiProvider/utils/api/updateItem.test.d.ts +1 -0
  148. package/dist/core/lib/Wrappers/ApiProvider/utils/api/uploadItems.test.d.ts +1 -0
  149. package/dist/core/lib/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.test.d.ts +1 -0
  150. package/dist/core/lib/Wrappers/ApiProvider/utils/convertInfo.test.d.ts +1 -0
  151. package/dist/core/lib/Wrappers/ApiProvider/utils/createQueryParams.test.d.ts +1 -0
  152. package/dist/core/lib/Wrappers/ApiProvider/utils/getDefaultValues.test.d.ts +1 -0
  153. package/dist/core/lib/Wrappers/ApiProvider/utils/getValidationSchema.test.d.ts +1 -0
  154. package/dist/core/lib/Wrappers/InfiniteScroll/InfiniteScroll.test.d.ts +1 -0
  155. package/dist/core/lib/Wrappers/LazyLoadWrapper/LazyLoadWrapper.test.d.ts +1 -0
  156. package/dist/core/lib/Wrappers/Provider/Provider.test.d.ts +1 -0
  157. package/dist/core/lib/Wrappers/Provider/hooks/useProvideAuth.test.d.ts +1 -0
  158. package/dist/core/lib/Wrappers/Provider/hooks/useProvideInfo.test.d.ts +1 -0
  159. package/dist/core/lib/Wrappers/Provider/hooks/useProvideLang.test.d.ts +1 -0
  160. package/dist/core/lib/Wrappers/Provider/utils/authFetch.test.d.ts +1 -0
  161. package/dist/core/lib/Wrappers/Provider/utils/userCRUD.test.d.ts +1 -0
  162. package/dist/core/lib/hooks/api/useApi.d.ts +8 -0
  163. package/dist/core/lib/hooks/api/useApi.test.d.ts +1 -0
  164. package/dist/core/lib/hooks/api/useBulkActions.test.d.ts +1 -0
  165. package/dist/core/lib/hooks/api/useForms.test.d.ts +1 -0
  166. package/dist/core/lib/hooks/auth/useAuth.test.d.ts +1 -0
  167. package/dist/core/lib/hooks/auth/useInfo.test.d.ts +1 -0
  168. package/dist/core/lib/hooks/lang/useLang.test.d.ts +1 -0
  169. package/dist/core/lib/test-helpers/uiWrap.d.ts +12 -0
  170. package/dist/hooks/lib/useActionIcon/useActionIcon.test.d.ts +1 -0
  171. package/dist/hooks/lib/useCustomFetch/useCustomFetch.test.d.ts +1 -0
  172. package/dist/hooks/lib/useSyncValues/useSyncValues.test.d.ts +1 -0
  173. package/dist/hooks/lib/useTrueOnce/useTrueOnce.test.d.ts +1 -0
  174. package/dist/jsonforms/cjs/MantineInputs/MantineFileInput.cjs +1 -1
  175. package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +1 -1
  176. package/dist/jsonforms/cjs/hooks/useNavigationComponent.cjs +4 -4
  177. package/dist/jsonforms/cjs/hooks/useToolbarComponent.cjs +5 -5
  178. package/dist/jsonforms/cjs/layouts/Array/MantineArrayLayout.cjs +6 -6
  179. package/dist/jsonforms/cjs/layouts/Group/variants/GroupFieldset.cjs +4 -4
  180. package/dist/jsonforms/cjs/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
  181. package/dist/jsonforms/cjs/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
  182. package/dist/jsonforms/cjs/testers/isJsonArrayControl.cjs +1 -1
  183. package/dist/jsonforms/esm/MantineInputs/MantineFileInput.mjs +1 -1
  184. package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +1 -1
  185. package/dist/jsonforms/esm/hooks/useNavigationComponent.mjs +1 -1
  186. package/dist/jsonforms/esm/hooks/useToolbarComponent.mjs +1 -1
  187. package/dist/jsonforms/esm/layouts/Array/MantineArrayLayout.mjs +1 -1
  188. package/dist/jsonforms/esm/layouts/Group/variants/GroupFieldset.mjs +1 -1
  189. package/dist/jsonforms/esm/layouts/MantineHotizontalLayoutRenderer.mjs +1 -1
  190. package/dist/jsonforms/esm/layouts/MantineVerticalLayoutRenderer.mjs +1 -1
  191. package/dist/jsonforms/esm/testers/isJsonArrayControl.mjs +1 -1
  192. package/dist/jsonforms/lib/JsonFormsWithCustomizer/JsonFormsWithCustomizer.test.d.ts +1 -0
  193. package/dist/jsonforms/lib/MantineInputs/MantineBooleanInput.test.d.ts +1 -0
  194. package/dist/jsonforms/lib/MantineInputs/MantineDateInput.test.d.ts +1 -0
  195. package/dist/jsonforms/lib/MantineInputs/MantineDateTimeInput.test.d.ts +1 -0
  196. package/dist/jsonforms/lib/MantineInputs/MantineEnumArrayInput.test.d.ts +1 -0
  197. package/dist/jsonforms/lib/MantineInputs/MantineEnumInput.test.d.ts +1 -0
  198. package/dist/jsonforms/lib/MantineInputs/MantineFileInput.test.d.ts +1 -0
  199. package/dist/jsonforms/lib/MantineInputs/MantineImageInput.test.d.ts +1 -0
  200. package/dist/jsonforms/lib/MantineInputs/MantineIntegerInput.test.d.ts +1 -0
  201. package/dist/jsonforms/lib/MantineInputs/MantineJsonInput.test.d.ts +1 -0
  202. package/dist/jsonforms/lib/MantineInputs/MantineNumberInput.test.d.ts +1 -0
  203. package/dist/jsonforms/lib/MantineInputs/MantineObjectInput.test.d.ts +1 -0
  204. package/dist/jsonforms/lib/MantineInputs/MantineOneOfEnumInput.test.d.ts +1 -0
  205. package/dist/jsonforms/lib/MantineInputs/MantineTextInput.test.d.ts +1 -0
  206. package/dist/jsonforms/lib/MantineInputs/MantineTimeInput.test.d.ts +1 -0
  207. package/dist/jsonforms/lib/complex/MantineArrayControl/MantineArrayControl.dispatch.test.d.ts +1 -0
  208. package/dist/jsonforms/lib/complex/MantineArrayControl/MantineArrayControl.test.d.ts +1 -0
  209. package/dist/jsonforms/lib/complex/MantineEnumArrayControl.dispatch.test.d.ts +1 -0
  210. package/dist/jsonforms/lib/complex/MantineEnumArrayControl.test.d.ts +1 -0
  211. package/dist/jsonforms/lib/complex/MantineObjectControl.dispatch.test.d.ts +1 -0
  212. package/dist/jsonforms/lib/complex/MantineObjectControl.test.d.ts +1 -0
  213. package/dist/jsonforms/lib/complex/MantineTableControl/MantineTableControl.test.d.ts +1 -0
  214. package/dist/jsonforms/lib/controls/MantineBooleanControl.test.d.ts +1 -0
  215. package/dist/jsonforms/lib/controls/MantineDateControl.test.d.ts +1 -0
  216. package/dist/jsonforms/lib/controls/MantineDateTimeControl.test.d.ts +1 -0
  217. package/dist/jsonforms/lib/controls/MantineEnumControl.test.d.ts +1 -0
  218. package/dist/jsonforms/lib/controls/MantineFileControl.test.d.ts +1 -0
  219. package/dist/jsonforms/lib/controls/MantineImageControl.test.d.ts +1 -0
  220. package/dist/jsonforms/lib/controls/MantineIntegerControl.test.d.ts +1 -0
  221. package/dist/jsonforms/lib/controls/MantineJsonControl.test.d.ts +1 -0
  222. package/dist/jsonforms/lib/controls/MantineNumberControl.test.d.ts +1 -0
  223. package/dist/jsonforms/lib/controls/MantineOneOfEnumControl.test.d.ts +1 -0
  224. package/dist/jsonforms/lib/controls/MantineTextControl.test.d.ts +1 -0
  225. package/dist/jsonforms/lib/controls/MantineTimeControl.test.d.ts +1 -0
  226. package/dist/jsonforms/lib/hooks/useThemeCustomizer.d.ts +6 -0
  227. package/dist/jsonforms/lib/hooks/useThemeCustomizer.test.d.ts +1 -0
  228. package/dist/jsonforms/lib/labels/MantineLabelRenderer.test.d.ts +1 -0
  229. package/dist/jsonforms/lib/layouts/Array/MantineArrayLayoutRenderer.dispatch.test.d.ts +1 -0
  230. package/dist/jsonforms/lib/layouts/Array/MantineArrayLayoutRenderer.test.d.ts +1 -0
  231. package/dist/jsonforms/lib/layouts/Categorization/MantineCategorizationLayoutRenderer.dispatch.test.d.ts +1 -0
  232. package/dist/jsonforms/lib/layouts/Categorization/MantineCategorizationLayoutRenderer.test.d.ts +1 -0
  233. package/dist/jsonforms/lib/layouts/Group/MantineGroupLayoutRenderer.dispatch.test.d.ts +1 -0
  234. package/dist/jsonforms/lib/layouts/Group/MantineGroupLayoutRenderer.test.d.ts +1 -0
  235. package/dist/jsonforms/lib/layouts/MantineHotizontalLayoutRenderer.dispatch.test.d.ts +1 -0
  236. package/dist/jsonforms/lib/layouts/MantineHotizontalLayoutRenderer.test.d.ts +1 -0
  237. package/dist/jsonforms/lib/layouts/MantineVerticalLayoutRenderer.dispatch.test.d.ts +1 -0
  238. package/dist/jsonforms/lib/layouts/MantineVerticalLayoutRenderer.test.d.ts +1 -0
  239. package/dist/jsonforms/lib/renderers/mantineCells.test.d.ts +1 -0
  240. package/dist/jsonforms/lib/renderers/mantineRenderers.test.d.ts +1 -0
  241. package/dist/jsonforms/lib/test-helpers/inputWrap.d.ts +167 -0
  242. package/dist/jsonforms/lib/test-helpers/jsonFormsWrap.d.ts +9 -0
  243. package/dist/jsonforms/lib/testers/isEnumArrayArrayControl.test.d.ts +1 -0
  244. package/dist/jsonforms/lib/testers/isEnumArrayControl.test.d.ts +1 -0
  245. package/dist/jsonforms/lib/testers/isFileControl.test.d.ts +1 -0
  246. package/dist/jsonforms/lib/testers/isFilesControl.test.d.ts +1 -0
  247. package/dist/jsonforms/lib/testers/isImageControl.test.d.ts +1 -0
  248. package/dist/jsonforms/lib/testers/isImagesControl.test.d.ts +1 -0
  249. package/dist/jsonforms/lib/testers/isJsonArrayControl.d.ts +6 -2
  250. package/dist/jsonforms/lib/testers/isJsonArrayControl.test.d.ts +1 -0
  251. package/dist/jsonforms/lib/testers/isJsonControl.test.d.ts +1 -0
  252. package/dist/jsonforms/lib/utils/getAbsoluteValue.test.d.ts +1 -0
  253. package/dist/jsonforms/lib/utils/isSchemaTypeInclude.test.d.ts +1 -0
  254. package/dist/jsonforms/lib/utils/layout.test.d.ts +1 -0
  255. package/dist/jsonforms/lib/utils/utcConverter.test.d.ts +1 -0
  256. package/dist/jsonforms/lib/utils/withAjvProps.test.d.ts +1 -0
  257. package/dist/jsonforms/lib/utils/withDebounce.test.d.ts +1 -0
  258. package/dist/jsonforms/lib/utils/withLabelMappingProps.test.d.ts +1 -0
  259. package/dist/utils/lib/FastAPIRTKLogger/FastAPIRTKLogger.test.d.ts +1 -0
  260. package/dist/utils/lib/Memoizer/MemoWrapper.test.d.ts +1 -0
  261. package/dist/utils/lib/Memoizer/RenderWrapper.test.d.ts +1 -0
  262. package/dist/utils/lib/convertId/convertId.test.d.ts +1 -0
  263. package/dist/utils/lib/convertToFormData/convertToFormData.test.d.ts +1 -0
  264. package/dist/utils/lib/createFetchParams/createFetchParams.test.d.ts +1 -0
  265. package/dist/utils/lib/createSafeContext/createSafeContext.test.d.ts +1 -0
  266. package/dist/utils/lib/deepMerge/deepMerge.test.d.ts +1 -0
  267. package/dist/utils/lib/getByPath/getByPath.test.d.ts +1 -0
  268. package/dist/utils/lib/getItemId/getItemId.test.d.ts +1 -0
  269. package/dist/utils/lib/getItemName/getItemName.test.d.ts +1 -0
  270. package/dist/utils/lib/getValue/getValue.test.d.ts +1 -0
  271. package/dist/utils/lib/getValueOrDefault/getValueOrDefault.test.d.ts +1 -0
  272. package/dist/utils/lib/isTruthy/isTruthy.test.d.ts +1 -0
  273. package/dist/utils/lib/mergeProps/mergeProps.test.d.ts +1 -0
  274. package/dist/utils/lib/parseFromValuesOrFunc/parseFromValuesOrFunc.test.d.ts +1 -0
  275. package/dist/utils/lib/parseResponse/parseResponse.test.d.ts +1 -0
  276. package/dist/utils/lib/parseValue/parseValue.test.d.ts +1 -0
  277. package/dist/utils/lib/urlJoin/urlJoin.test.d.ts +1 -0
  278. package/dist/utils/lib/useWatchRef/useWatchRef.test.d.ts +1 -0
  279. package/dist/zustand/lib/useProxy/useProxy.test.d.ts +1 -0
  280. package/dist/zustand/lib/utils/compareStateWithStore.test.d.ts +1 -0
  281. package/dist/zustand/lib/utils/createProxy.test.d.ts +1 -0
  282. package/package.json +24 -11
  283. package/dist/core/lib/Tables/NextGenDataGrid/hooks/useSize.d.ts +0 -20
  284. /package/dist/.external/cjs/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.18_yup@1.7.1 → mantine-form-yup-resolver@2.0.0_@mantine_form@9.1.1_yup@1.7.1}/mantine-form-yup-resolver/dist/esm/index.cjs +0 -0
  285. /package/dist/.external/esm/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.18_yup@1.7.1 → mantine-form-yup-resolver@2.0.0_@mantine_form@9.1.1_yup@1.7.1}/mantine-form-yup-resolver/dist/esm/index.mjs +0 -0
@@ -1,116 +1,45 @@
1
1
  import { convertId, urlJoin } from "fastapi-rtk/utils";
2
2
  import { useCallback } from "react";
3
- const useApiActions = ({
4
- api,
5
- path,
6
- pathRef,
7
- infoRef,
8
- queryParamsRef,
9
- currentLanguage,
10
- resetError,
11
- setError,
12
- throwOnError
13
- }) => {
3
+ const useApiActions = ({ api, path, pathRef, infoRef, queryParamsRef, currentLanguage }) => {
14
4
  const getEntry = useCallback(
15
- async (id) => {
16
- try {
17
- resetError();
18
- const response = await api.getItem(pathRef.current, convertId(id), {
19
- headers: { "Accept-Language": currentLanguage }
20
- });
21
- return response;
22
- } catch (error) {
23
- setError({ message: "Could not fetch item with id {{id}}", data: { id }, originalError: error });
24
- if (throwOnError) {
25
- throw error;
26
- }
27
- }
28
- },
29
- [api, currentLanguage, pathRef, resetError, setError, throwOnError]
5
+ async (id) => api.getItem(pathRef.current, convertId(id), {
6
+ headers: { "Accept-Language": currentLanguage }
7
+ }),
8
+ [api, currentLanguage, pathRef]
30
9
  );
31
10
  const addEntry = useCallback(
32
11
  async (item) => {
33
12
  var _a;
34
- try {
35
- resetError();
36
- const func = ((_a = infoRef.current) == null ? void 0 : _a.add_type) === "form" ? api.formCreateItem : api.createItem;
37
- const response = await func(pathRef.current, item, {
38
- headers: { "Accept-Language": currentLanguage }
39
- });
40
- return response;
41
- } catch (error) {
42
- setError({ message: `Could not add item`, originalError: error });
43
- if (throwOnError) {
44
- throw error;
45
- }
46
- }
13
+ const func = ((_a = infoRef.current) == null ? void 0 : _a.add_type) === "form" ? api.formCreateItem : api.createItem;
14
+ return func(pathRef.current, item, {
15
+ headers: { "Accept-Language": currentLanguage }
16
+ });
47
17
  },
48
- [api.createItem, api.formCreateItem, currentLanguage, infoRef, pathRef, resetError, setError, throwOnError]
18
+ [api.createItem, api.formCreateItem, currentLanguage, infoRef, pathRef]
49
19
  );
50
20
  const updateEntry = useCallback(
51
21
  async (id, item) => {
52
22
  var _a;
53
- try {
54
- resetError();
55
- const func = ((_a = infoRef.current) == null ? void 0 : _a.edit_type) === "form" ? api.formUpdateItem : api.updateItem;
56
- const response = await func(pathRef.current, convertId(id), item, {
57
- headers: { "Accept-Language": currentLanguage }
58
- });
59
- return response;
60
- } catch (error) {
61
- setError({ message: "Could not update item with id {{id}}", data: { id }, originalError: error });
62
- if (throwOnError) {
63
- throw error;
64
- }
65
- }
23
+ const func = ((_a = infoRef.current) == null ? void 0 : _a.edit_type) === "form" ? api.formUpdateItem : api.updateItem;
24
+ return func(pathRef.current, convertId(id), item, {
25
+ headers: { "Accept-Language": currentLanguage }
26
+ });
66
27
  },
67
- [api.formUpdateItem, api.updateItem, currentLanguage, infoRef, pathRef, resetError, setError, throwOnError]
28
+ [api.formUpdateItem, api.updateItem, currentLanguage, infoRef, pathRef]
68
29
  );
69
30
  const deleteEntry = useCallback(
70
- async (id) => {
71
- try {
72
- resetError();
73
- const response = await api.deleteItem(pathRef.current, convertId(id), {
74
- headers: { "Accept-Language": currentLanguage }
75
- });
76
- return response;
77
- } catch (error) {
78
- setError({ message: "Could not delete item with id {{id}}", data: { id }, originalError: error });
79
- if (throwOnError) {
80
- throw error;
81
- }
82
- }
83
- },
84
- [api, currentLanguage, pathRef, resetError, setError, throwOnError]
31
+ async (id) => api.deleteItem(pathRef.current, convertId(id), {
32
+ headers: { "Accept-Language": currentLanguage }
33
+ }),
34
+ [api, currentLanguage, pathRef]
85
35
  );
86
36
  const download = useCallback(
87
- async (label, { export_mode, delimiter, quotechar } = {}) => {
88
- try {
89
- resetError();
90
- await api.downloadItems(pathRef.current, queryParamsRef.current, { label, export_mode, delimiter, quotechar });
91
- } catch (error) {
92
- setError({ message: `Could not download`, originalError: error });
93
- if (throwOnError) {
94
- throw error;
95
- }
96
- }
97
- },
98
- [api, pathRef, queryParamsRef, resetError, setError, throwOnError]
37
+ async (label, { export_mode, delimiter, quotechar } = {}) => api.downloadItems(pathRef.current, queryParamsRef.current, { label, export_mode, delimiter, quotechar }),
38
+ [api, pathRef, queryParamsRef]
99
39
  );
100
40
  const upload = useCallback(
101
- async (file, { delimiter, quotechar } = {}) => {
102
- try {
103
- resetError();
104
- const response = await api.uploadItems(pathRef.current, file, { delimiter, quotechar });
105
- return response;
106
- } catch (error) {
107
- setError({ message: `Could not upload`, originalError: error });
108
- if (throwOnError) {
109
- throw error;
110
- }
111
- }
112
- },
113
- [api, pathRef, resetError, setError, throwOnError]
41
+ async (file, { delimiter, quotechar } = {}) => api.uploadItems(pathRef.current, file, { delimiter, quotechar }),
42
+ [api, pathRef]
114
43
  );
115
44
  const getItemURL = useCallback(
116
45
  (type, item) => typeof item === "string" ? urlJoin(path, `_${type}`, item) : URL.createObjectURL(item),
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Shared base for every fastapi-rtk ActionIcon. Funnels Tooltip + ActionIcon +
3
+ * inner icon through a single component so the Mantine theme entry
4
+ * `theme.components.ActionIcon.defaultProps` and `iconProps` reach every icon
5
+ * uniformly.
6
+ *
7
+ * When `loading` is true, swaps to ThemeIcon + Loader sized to the inner icon
8
+ * (matching the legacy Refresh/Download behavior) rather than ActionIcon's
9
+ * native `loading` slot, which would size the loader to the ActionIcon.
10
+ *
11
+ * @param {Object} props
12
+ * @param {React.ComponentType<any>} props.Icon - Icon component rendered inside the ActionIcon.
13
+ * @param {string} [props.label] - Tooltip label + aria label.
14
+ * @param {Object} [props.tooltipProps] - Forwarded to Mantine Tooltip; `tooltipProps.label` wins over `label`.
15
+ * @param {Object} [props.iconProps] - Forwarded to the rendered Icon.
16
+ * @param {boolean} [props.loading] - Render the icon-sized loader instead of the icon.
17
+ */
18
+ export const BaseActionIcon: import('react').NamedExoticComponent<object>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export const ToggleGlobalFilterButton: import('react').NamedExoticComponent<object>;
2
+ export const ToggleFiltersButton: import('react').NamedExoticComponent<object>;
3
+ export const ToggleDensePaddingButton: import('react').NamedExoticComponent<object>;
4
+ export const ToggleFullScreenButton: import('react').NamedExoticComponent<object>;
5
+ export const ShowHideColumnsButton: import('react').NamedExoticComponent<object>;
@@ -12,7 +12,6 @@
12
12
  * @property {Record<string, any>} [infoQueryProps] - The react-query props for the info query
13
13
  * @property {Record<string, any>} [dataQueryProps] - The react-query props for the data query
14
14
  * @property {Record<string, any>} [streamingQueryProps] - The react-query props for the streaming (infinite) query
15
- * @property {boolean} [throwOnError] - Whether to throw an error on API request failure
16
15
  * @property {boolean} [streaming] - Whether to enable streaming for the API requests
17
16
  * @property {ReactNode} children - The children to be rendered inside the provider
18
17
  */
@@ -21,7 +20,7 @@
21
20
  * @param {ApiProviderProps} props
22
21
  * @returns {React.ReactNode}
23
22
  */
24
- export function ApiProvider({ resource_name, initialQueryParams, relation, fetchInfo, clearInfoOnRefetch, clearDataOnRefetch, refetchInfoBasedOnLang, refetchDataBasedOnLang, resetQueryParamsOnPathChange, infoQueryProps, dataQueryProps, streamingQueryProps, throwOnError, streaming, children, }: ApiProviderProps): React.ReactNode;
23
+ export function ApiProvider({ resource_name, initialQueryParams, relation, fetchInfo, clearInfoOnRefetch, clearDataOnRefetch, refetchInfoBasedOnLang, refetchDataBasedOnLang, resetQueryParamsOnPathChange, infoQueryProps, dataQueryProps, streamingQueryProps, streaming, children, }: ApiProviderProps): React.ReactNode;
25
24
  export function withApiProvider(apiProviderProps: ApiProviderProps | ((props: any) => ApiProviderProps), Component: React.ComponentType, options?: {
26
25
  displayName?: string;
27
26
  forwardRef?: boolean;
@@ -75,10 +74,6 @@ export type ApiProviderProps = {
75
74
  * - The react-query props for the streaming (infinite) query
76
75
  */
77
76
  streamingQueryProps?: Record<string, any>;
78
- /**
79
- * - Whether to throw an error on API request failure
80
- */
81
- throwOnError?: boolean;
82
77
  /**
83
78
  * - Whether to enable streaming for the API requests
84
79
  */
@@ -1,4 +1,4 @@
1
- export function useProvideApi({ path, initialQueryParams, relation, fetchInfo, clearInfoOnRefetch, clearDataOnRefetch, refetchInfoBasedOnLang, refetchDataBasedOnLang, resetQueryParamsOnPathChange, infoQueryProps, dataQueryProps, streamingQueryProps, throwOnError, streaming: streamingMode, }: {
1
+ export function useProvideApi({ path, initialQueryParams, relation, fetchInfo, clearInfoOnRefetch, clearDataOnRefetch, refetchInfoBasedOnLang, refetchDataBasedOnLang, resetQueryParamsOnPathChange, infoQueryProps, dataQueryProps, streamingQueryProps, streaming: streamingMode, }: {
2
2
  path: any;
3
3
  initialQueryParams: any;
4
4
  relation: any;
@@ -11,7 +11,6 @@ export function useProvideApi({ path, initialQueryParams, relation, fetchInfo, c
11
11
  infoQueryProps: any;
12
12
  dataQueryProps: any;
13
13
  streamingQueryProps: any;
14
- throwOnError?: boolean;
15
14
  streaming?: boolean;
16
15
  }, api?: {
17
16
  getItem: (path: any, id: any, options: any) => Promise<string | Record<string, any>>;
@@ -64,9 +63,10 @@ export function useProvideApi({ path, initialQueryParams, relation, fetchInfo, c
64
63
  addEntry: (item: any) => Promise<any>;
65
64
  updateEntry: (id: any, item: any) => Promise<any>;
66
65
  deleteEntry: (id: any) => Promise<any>;
67
- download: (label: any, { export_mode, delimiter, quotechar }?: {}) => Promise<void>;
66
+ download: (label: any, { export_mode, delimiter, quotechar }?: {}) => Promise<any>;
68
67
  upload: (file: any, { delimiter, quotechar }?: {}) => Promise<any>;
69
68
  getFileURL: (item: any) => string;
70
69
  getImageURL: (item: any) => string;
70
+ setError: import('react').Dispatch<(prevState: undefined) => undefined>;
71
71
  resetError: () => void;
72
72
  };
@@ -1,19 +1,16 @@
1
- export function useApiActions({ api, path, pathRef, infoRef, queryParamsRef, currentLanguage, resetError, setError, throwOnError, }: {
1
+ export function useApiActions({ api, path, pathRef, infoRef, queryParamsRef, currentLanguage }: {
2
2
  api: any;
3
3
  path: any;
4
4
  pathRef: any;
5
5
  infoRef: any;
6
6
  queryParamsRef: any;
7
7
  currentLanguage: any;
8
- resetError: any;
9
- setError: any;
10
- throwOnError: any;
11
8
  }): {
12
9
  getEntry: (id: any) => Promise<any>;
13
10
  addEntry: (item: any) => Promise<any>;
14
11
  updateEntry: (id: any, item: any) => Promise<any>;
15
12
  deleteEntry: (id: any) => Promise<any>;
16
- download: (label: any, { export_mode, delimiter, quotechar }?: {}) => Promise<void>;
13
+ download: (label: any, { export_mode, delimiter, quotechar }?: {}) => Promise<any>;
17
14
  upload: (file: any, { delimiter, quotechar }?: {}) => Promise<any>;
18
15
  getItemURL: (type: any, item: any) => string;
19
16
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -484,6 +484,14 @@ export type ApiContext = {
484
484
  * - A function to get the URL for an image item, which can be either a string (representing the image name) or a File object.
485
485
  */
486
486
  getImageURL: (item: string | File) => string;
487
+ /**
488
+ * - A function to set the error state. Useful when handling errors thrown by the action functions (`addEntry`, `updateEntry`, ...) and surfacing them through the shared `ErrorDialog`.
489
+ */
490
+ setError: (error: {
491
+ message: string;
492
+ originalError: Error;
493
+ data?: Record<string, any>;
494
+ } | undefined) => void;
487
495
  /**
488
496
  * - A function to reset the error state.
489
497
  */
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ export function uiWrap(ctx?: {
2
+ api?: object;
3
+ formAdd?: object;
4
+ formEdit?: object;
5
+ formView?: object;
6
+ formDelete?: object;
7
+ bulk?: object;
8
+ auth?: object;
9
+ info?: object;
10
+ }): ({ children }: {
11
+ children: any;
12
+ }) => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -11,7 +11,7 @@ const InnerMantineFileInput = ({ contextName, componentName, children, ...props
11
11
  const { value, ...commonProps } = useCommonProps.useCommonProps(props);
12
12
  const { path, schema, errors } = props;
13
13
  const accept = React.useMemo(
14
- () => (/* @__PURE__ */ new Set([...schema.contentMediaType ?? [], ...schema["x-file-types"] ?? []])).values().toArray().join(","),
14
+ () => Array.from(/* @__PURE__ */ new Set([...schema.contentMediaType ?? [], ...schema["x-file-types"] ?? []])).join(","),
15
15
  [schema.contentMediaType, schema["x-file-types"]]
16
16
  );
17
17
  const fileProps = useFileProps.useFileProps({ value, onChange: commonProps.onChange, accept, errors });
@@ -66,7 +66,7 @@ const getValidColumnProps = (scopedSchema) => {
66
66
  }
67
67
  return [""];
68
68
  };
69
- const EmptyTable = ({ numColumns, translations }) => /* @__PURE__ */ jsxRuntime.jsx(core.Table.Tr, { children: /* @__PURE__ */ jsxRuntime.jsx(NoBorderTableCell.NoBorderTableCell, { colSpan: numColumns, children: /* @__PURE__ */ jsxRuntime.jsx(core.Text, { align: "center", children: translations.noDataMessage }) }) });
69
+ const EmptyTable = ({ numColumns, translations }) => /* @__PURE__ */ jsxRuntime.jsx(core.Table.Tr, { children: /* @__PURE__ */ jsxRuntime.jsx(NoBorderTableCell.NoBorderTableCell, { colSpan: numColumns, children: /* @__PURE__ */ jsxRuntime.jsx(core.Text, { ta: "center", children: translations.noDataMessage }) }) });
70
70
  const TableHeaderCell = React.memo(function TableHeaderCell2(props) {
71
71
  const { title, rowPath, propName, index } = props;
72
72
  const [Component, _props] = useContextProps.useContextProps(
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const core$1 = require("fastapi-rtk/core");
4
+ const useContextProps = require("./useContextProps.cjs");
5
5
  const core = require("@mantine/core");
6
6
  const React = require("react");
7
7
  const arrowDown = require("../_virtual/arrow-down.cjs");
@@ -11,7 +11,7 @@ const useNavigationComponent = ({ componentName, componentIdentifier, onUp, onDo
11
11
  const { childPath, showSortButtons, enableUp, enableDown, disableRemove, translations } = props;
12
12
  const defaultProps = { variant: "transparent", size: "sm", mt: "0.35rem" };
13
13
  const iconProps = core.useProps("ActionIcon", defaultProps, {});
14
- const [ComponentUp, _up_props] = core$1.useContextProps(
14
+ const [ComponentUp, _up_props] = useContextProps.useContextProps(
15
15
  `${componentName}.${componentIdentifier}.Up`,
16
16
  `${childPath}.${componentIdentifier}.Up`,
17
17
  {
@@ -24,7 +24,7 @@ const useNavigationComponent = ({ componentName, componentIdentifier, onUp, onDo
24
24
  props,
25
25
  { withAllProps: false }
26
26
  );
27
- const [ComponentDown, _down_props] = core$1.useContextProps(
27
+ const [ComponentDown, _down_props] = useContextProps.useContextProps(
28
28
  `${componentName}.${componentIdentifier}.Down`,
29
29
  `${childPath}.${componentIdentifier}.Down`,
30
30
  {
@@ -37,7 +37,7 @@ const useNavigationComponent = ({ componentName, componentIdentifier, onUp, onDo
37
37
  props,
38
38
  { withAllProps: false }
39
39
  );
40
- const [ComponentRemove, _remove_props] = core$1.useContextProps(
40
+ const [ComponentRemove, _remove_props] = useContextProps.useContextProps(
41
41
  `${componentName}.${componentIdentifier}.Remove`,
42
42
  `${childPath}.${componentIdentifier}.Remove`,
43
43
  {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const core$1 = require("fastapi-rtk/core");
4
+ const useContextProps = require("./useContextProps.cjs");
5
5
  const core = require("@mantine/core");
6
6
  const exclamationCircle = require("../_virtual/exclamation-circle.cjs");
7
7
  const plus = require("../_virtual/plus.cjs");
@@ -33,21 +33,21 @@ const useToolbarComponent = ({ componentName, componentIdentifier, onAdd, ...pro
33
33
  const { errors, label, description, path, translations } = props;
34
34
  const defaultProps = { variant: "transparent", size: "sm", mt: "0.35rem" };
35
35
  const iconProps = core.useProps("ActionIcon", defaultProps, {});
36
- const [ComponentLabel, _label_props] = core$1.useContextProps(
36
+ const [ComponentLabel, _label_props] = useContextProps.useContextProps(
37
37
  `${componentName}.${componentIdentifier}.Label`,
38
38
  `${path}.${componentIdentifier}.Label`,
39
39
  { value: label },
40
40
  props,
41
41
  { withAllProps: false }
42
42
  );
43
- const [ComponentDescription, _description_props] = core$1.useContextProps(
43
+ const [ComponentDescription, _description_props] = useContextProps.useContextProps(
44
44
  `${componentName}.${componentIdentifier}.Description`,
45
45
  `${path}.${componentIdentifier}.Description`,
46
46
  { value: description },
47
47
  props,
48
48
  { withAllProps: false }
49
49
  );
50
- const [ComponentValidation, _validation_props] = core$1.useContextProps(
50
+ const [ComponentValidation, _validation_props] = useContextProps.useContextProps(
51
51
  `${componentName}.${componentIdentifier}.Validation`,
52
52
  `${path}.${componentIdentifier}.Validation`,
53
53
  {
@@ -57,7 +57,7 @@ const useToolbarComponent = ({ componentName, componentIdentifier, onAdd, ...pro
57
57
  props,
58
58
  { withAllProps: false }
59
59
  );
60
- const [ComponentAdd, _add_props] = core$1.useContextProps(
60
+ const [ComponentAdd, _add_props] = useContextProps.useContextProps(
61
61
  `${componentName}.${componentIdentifier}.Add`,
62
62
  `${path}.${componentIdentifier}.Add`,
63
63
  {