fastapi-rtk 1.1.5 → 2.0.1
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.
- package/dist/.bundled/jsonforms/cjs/_virtual/index3.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index4.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index5.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.cjs +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useIfProps.cjs +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useNavigationComponent.cjs +4 -4
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useToolbarComponent.cjs +5 -5
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/MantineArrayLayout.cjs +6 -6
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Group/variants/GroupFieldset.cjs +4 -4
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/testers/isJsonArrayControl.cjs +1 -1
- package/dist/.bundled/jsonforms/esm/_virtual/index3.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index4.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index5.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useIfProps.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useNavigationComponent.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useToolbarComponent.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/MantineArrayLayout.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Group/variants/GroupFieldset.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/testers/isJsonArrayControl.mjs +1 -1
- package/dist/.bundled/jsonforms/lib/smoke.test.d.ts +1 -0
- package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/HydrationBoundary.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/index.cjs +19 -19
- package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useBaseQuery.cjs +3 -3
- package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useInfiniteQuery.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useIsFetching.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useMutation.cjs +3 -3
- package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useMutationState.cjs +2 -2
- package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useQueries.cjs +4 -4
- package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useQuery.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs +2 -2
- package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useSuspenseQueries.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useSuspenseQuery.cjs +2 -2
- package/dist/.external/cjs/ajv@8.20.0/ajv/dist/compile/codegen/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.20.0/ajv/dist/compile/validate/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.20.0/ajv/dist/vocabularies/discriminator/index.cjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/HydrationBoundary.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/index.mjs +19 -19
- package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useBaseQuery.mjs +3 -3
- package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useInfiniteQuery.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useIsFetching.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useMutation.mjs +3 -3
- package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useMutationState.mjs +2 -2
- package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useQueries.mjs +4 -4
- package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useQuery.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.mjs +2 -2
- package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useSuspenseQueries.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/useSuspenseQuery.mjs +2 -2
- package/dist/.external/esm/ajv@8.20.0/ajv/dist/compile/codegen/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.20.0/ajv/dist/compile/validate/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.20.0/ajv/dist/vocabularies/discriminator/index.mjs +1 -1
- 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
- package/dist/constants/lib/index.test.d.ts +1 -0
- package/dist/core/cjs/ActionIcons/Add/Add.cjs +3 -5
- package/dist/core/cjs/ActionIcons/Delete/Delete.cjs +16 -13
- package/dist/core/cjs/ActionIcons/Download/Download.cjs +7 -9
- package/dist/core/cjs/ActionIcons/Edit/Edit.cjs +21 -18
- package/dist/core/cjs/ActionIcons/Refresh/Refresh.cjs +15 -13
- package/dist/core/cjs/ActionIcons/Upload/Upload.cjs +9 -10
- package/dist/core/cjs/ActionIcons/View/View.cjs +21 -18
- package/dist/core/cjs/ActionIcons/utils/BaseActionIcon.cjs +15 -0
- package/dist/core/cjs/Dialogs/AddDialog.cjs +10 -8
- package/dist/core/cjs/Dialogs/DeleteDialog.cjs +9 -4
- package/dist/core/cjs/Dialogs/EditDialog.cjs +24 -9
- package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/NextGenDataGrid.cjs +4 -4
- package/dist/core/cjs/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/getOptimizedMRT_RowSelectColumnDef.cjs +3 -3
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/AdvancedFilters.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.cjs +6 -6
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/mrtToolbars.cjs +96 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/MRT_TableContainer.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/body/MRT_TableBodyRow.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/head/MRT_TableHead.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/toolbar/MRT_ToolbarAlertBanner.cjs +37 -30
- package/dist/core/cjs/Wrappers/ApiProvider/ApiProvider.cjs +0 -2
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +5 -8
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/utils/useApiActions.cjs +23 -94
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/utils/useStreamingData.cjs +1 -1
- package/dist/core/cjs/Wrappers/Provider/Provider.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideAuth.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideInfo.cjs +1 -1
- package/dist/core/cjs/index.cjs +1 -1
- package/dist/core/esm/ActionIcons/Add/Add.mjs +3 -5
- package/dist/core/esm/ActionIcons/Delete/Delete.mjs +17 -14
- package/dist/core/esm/ActionIcons/Download/Download.mjs +8 -10
- package/dist/core/esm/ActionIcons/Edit/Edit.mjs +22 -19
- package/dist/core/esm/ActionIcons/Refresh/Refresh.mjs +15 -13
- package/dist/core/esm/ActionIcons/Upload/Upload.mjs +10 -11
- package/dist/core/esm/ActionIcons/View/View.mjs +22 -19
- package/dist/core/esm/ActionIcons/utils/BaseActionIcon.mjs +15 -0
- package/dist/core/esm/Dialogs/AddDialog.mjs +10 -8
- package/dist/core/esm/Dialogs/DeleteDialog.mjs +9 -4
- package/dist/core/esm/Dialogs/EditDialog.mjs +24 -9
- package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/NextGenDataGrid.mjs +4 -4
- package/dist/core/esm/Tables/NextGenDataGrid/components/OptimizedMRT_RowSelectColumn/getOptimizedMRT_RowSelectColumnDef.mjs +3 -3
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/AdvancedFilters.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.mjs +6 -6
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/mrtToolbars.mjs +96 -0
- package/dist/core/esm/Tables/NextGenDataGrid/patch/MRT_TableContainer.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/patch/body/MRT_TableBodyRow.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/patch/head/MRT_TableHead.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/patch/toolbar/MRT_ToolbarAlertBanner.mjs +37 -30
- package/dist/core/esm/Wrappers/ApiProvider/ApiProvider.mjs +0 -2
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +5 -8
- package/dist/core/esm/Wrappers/ApiProvider/hooks/utils/useApiActions.mjs +23 -94
- package/dist/core/esm/Wrappers/ApiProvider/hooks/utils/useStreamingData.mjs +1 -1
- package/dist/core/esm/Wrappers/Provider/Provider.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +1 -1
- package/dist/core/esm/index.mjs +1 -1
- package/dist/core/lib/ActionIcons/Actions.test.d.ts +1 -0
- package/dist/core/lib/ActionIcons/Add/Add.test.d.ts +1 -0
- package/dist/core/lib/ActionIcons/Delete/Delete.test.d.ts +1 -0
- package/dist/core/lib/ActionIcons/Download/Download.test.d.ts +1 -0
- package/dist/core/lib/ActionIcons/Edit/Edit.test.d.ts +1 -0
- package/dist/core/lib/ActionIcons/Refresh/Refresh.test.d.ts +1 -0
- package/dist/core/lib/ActionIcons/Upload/Upload.test.d.ts +1 -0
- package/dist/core/lib/ActionIcons/View/View.test.d.ts +1 -0
- package/dist/core/lib/ActionIcons/utils/BaseActionIcon.d.ts +18 -0
- package/dist/core/lib/ActionIcons/utils/BaseActionIcon.test.d.ts +1 -0
- package/dist/core/lib/Dialogs/AddDialog.test.d.ts +1 -0
- package/dist/core/lib/Dialogs/DeleteDialog.test.d.ts +1 -0
- package/dist/core/lib/Dialogs/EditDialog.test.d.ts +1 -0
- package/dist/core/lib/Dialogs/ViewDialog.test.d.ts +1 -0
- package/dist/core/lib/Inputs/DateTimePicker.test.d.ts +1 -0
- package/dist/core/lib/Inputs/TimePicker.test.d.ts +1 -0
- package/dist/core/lib/Menu/UserMenu/UserMenu.test.d.ts +1 -0
- package/dist/core/lib/Modals/CommonModal.test.d.ts +1 -0
- package/dist/core/lib/Modals/normalProps.test.d.ts +1 -0
- package/dist/core/lib/Modals/overlayProps.test.d.ts +1 -0
- package/dist/core/lib/Selectors/LanguageSelector.test.d.ts +1 -0
- package/dist/core/lib/Tables/DataGrid/DataGrid.test.d.ts +1 -0
- package/dist/core/lib/Tables/DataGrid/ErrorDialog.test.d.ts +1 -0
- package/dist/core/lib/Tables/NextGenDataGrid/FallbackWrapper.test.d.ts +1 -0
- package/dist/core/lib/Tables/NextGenDataGrid/NextGenDataGrid.test.d.ts +1 -0
- package/dist/core/lib/Tables/NextGenDataGrid/hooks/useToolbar/mrtToolbars.d.ts +5 -0
- package/dist/core/lib/Tables/NextGenDataGrid/utils.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/ApiProvider.d.ts +1 -6
- package/dist/core/lib/Wrappers/ApiProvider/ApiProvider.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideApi.d.ts +3 -3
- package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideApi.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideBulk.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideForm.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useApiActions.d.ts +2 -5
- package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useApiActions.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useLatest.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/hooks/utils/useStreamingData.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/createItem.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/deleteItem.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/downloadItems.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/formCreateItem.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/formUpdateItem.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/getInfo.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/getItem.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/getItems.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/updateItem.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/uploadItems.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/bulkActions/postBulkAction.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/convertInfo.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/createQueryParams.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/getDefaultValues.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/getValidationSchema.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/InfiniteScroll/InfiniteScroll.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/LazyLoadWrapper/LazyLoadWrapper.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/Provider/Provider.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/Provider/hooks/useProvideAuth.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/Provider/hooks/useProvideInfo.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/Provider/hooks/useProvideLang.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/Provider/utils/authFetch.test.d.ts +1 -0
- package/dist/core/lib/Wrappers/Provider/utils/userCRUD.test.d.ts +1 -0
- package/dist/core/lib/hooks/api/useApi.d.ts +8 -0
- package/dist/core/lib/hooks/api/useApi.test.d.ts +1 -0
- package/dist/core/lib/hooks/api/useBulkActions.test.d.ts +1 -0
- package/dist/core/lib/hooks/api/useForms.test.d.ts +1 -0
- package/dist/core/lib/hooks/auth/useAuth.test.d.ts +1 -0
- package/dist/core/lib/hooks/auth/useInfo.test.d.ts +1 -0
- package/dist/core/lib/hooks/lang/useLang.test.d.ts +1 -0
- package/dist/core/lib/test-helpers/uiWrap.d.ts +12 -0
- package/dist/hooks/lib/useActionIcon/useActionIcon.test.d.ts +1 -0
- package/dist/hooks/lib/useCustomFetch/useCustomFetch.test.d.ts +1 -0
- package/dist/hooks/lib/useSyncValues/useSyncValues.test.d.ts +1 -0
- package/dist/hooks/lib/useTrueOnce/useTrueOnce.test.d.ts +1 -0
- package/dist/jsonforms/cjs/MantineInputs/MantineFileInput.cjs +1 -1
- package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +1 -1
- package/dist/jsonforms/cjs/hooks/useIfProps.cjs +1 -1
- package/dist/jsonforms/cjs/hooks/useNavigationComponent.cjs +4 -4
- package/dist/jsonforms/cjs/hooks/useToolbarComponent.cjs +5 -5
- package/dist/jsonforms/cjs/layouts/Array/MantineArrayLayout.cjs +6 -6
- package/dist/jsonforms/cjs/layouts/Group/variants/GroupFieldset.cjs +4 -4
- package/dist/jsonforms/cjs/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
- package/dist/jsonforms/cjs/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
- package/dist/jsonforms/cjs/testers/isJsonArrayControl.cjs +1 -1
- package/dist/jsonforms/esm/MantineInputs/MantineFileInput.mjs +1 -1
- package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +1 -1
- package/dist/jsonforms/esm/hooks/useIfProps.mjs +1 -1
- package/dist/jsonforms/esm/hooks/useNavigationComponent.mjs +1 -1
- package/dist/jsonforms/esm/hooks/useToolbarComponent.mjs +1 -1
- package/dist/jsonforms/esm/layouts/Array/MantineArrayLayout.mjs +1 -1
- package/dist/jsonforms/esm/layouts/Group/variants/GroupFieldset.mjs +1 -1
- package/dist/jsonforms/esm/layouts/MantineHotizontalLayoutRenderer.mjs +1 -1
- package/dist/jsonforms/esm/layouts/MantineVerticalLayoutRenderer.mjs +1 -1
- package/dist/jsonforms/esm/testers/isJsonArrayControl.mjs +1 -1
- package/dist/jsonforms/lib/JsonFormsWithCustomizer/JsonFormsWithCustomizer.test.d.ts +1 -0
- package/dist/jsonforms/lib/MantineInputs/MantineBooleanInput.test.d.ts +1 -0
- package/dist/jsonforms/lib/MantineInputs/MantineDateInput.test.d.ts +1 -0
- package/dist/jsonforms/lib/MantineInputs/MantineDateTimeInput.test.d.ts +1 -0
- package/dist/jsonforms/lib/MantineInputs/MantineEnumArrayInput.test.d.ts +1 -0
- package/dist/jsonforms/lib/MantineInputs/MantineEnumInput.test.d.ts +1 -0
- package/dist/jsonforms/lib/MantineInputs/MantineFileInput.test.d.ts +1 -0
- package/dist/jsonforms/lib/MantineInputs/MantineImageInput.test.d.ts +1 -0
- package/dist/jsonforms/lib/MantineInputs/MantineIntegerInput.test.d.ts +1 -0
- package/dist/jsonforms/lib/MantineInputs/MantineJsonInput.test.d.ts +1 -0
- package/dist/jsonforms/lib/MantineInputs/MantineNumberInput.test.d.ts +1 -0
- package/dist/jsonforms/lib/MantineInputs/MantineObjectInput.test.d.ts +1 -0
- package/dist/jsonforms/lib/MantineInputs/MantineOneOfEnumInput.test.d.ts +1 -0
- package/dist/jsonforms/lib/MantineInputs/MantineTextInput.test.d.ts +1 -0
- package/dist/jsonforms/lib/MantineInputs/MantineTimeInput.test.d.ts +1 -0
- package/dist/jsonforms/lib/complex/MantineArrayControl/MantineArrayControl.dispatch.test.d.ts +1 -0
- package/dist/jsonforms/lib/complex/MantineArrayControl/MantineArrayControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/complex/MantineEnumArrayControl.dispatch.test.d.ts +1 -0
- package/dist/jsonforms/lib/complex/MantineEnumArrayControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/complex/MantineObjectControl.dispatch.test.d.ts +1 -0
- package/dist/jsonforms/lib/complex/MantineObjectControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/complex/MantineTableControl/MantineTableControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/controls/MantineBooleanControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/controls/MantineDateControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/controls/MantineDateTimeControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/controls/MantineEnumControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/controls/MantineFileControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/controls/MantineImageControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/controls/MantineIntegerControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/controls/MantineJsonControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/controls/MantineNumberControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/controls/MantineOneOfEnumControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/controls/MantineTextControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/controls/MantineTimeControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/hooks/useIfProps.test.d.ts +1 -0
- package/dist/jsonforms/lib/hooks/useThemeCustomizer.d.ts +6 -0
- package/dist/jsonforms/lib/hooks/useThemeCustomizer.test.d.ts +1 -0
- package/dist/jsonforms/lib/labels/MantineLabelRenderer.test.d.ts +1 -0
- package/dist/jsonforms/lib/layouts/Array/MantineArrayLayoutRenderer.dispatch.test.d.ts +1 -0
- package/dist/jsonforms/lib/layouts/Array/MantineArrayLayoutRenderer.test.d.ts +1 -0
- package/dist/jsonforms/lib/layouts/Categorization/MantineCategorizationLayoutRenderer.dispatch.test.d.ts +1 -0
- package/dist/jsonforms/lib/layouts/Categorization/MantineCategorizationLayoutRenderer.test.d.ts +1 -0
- package/dist/jsonforms/lib/layouts/Group/MantineGroupLayoutRenderer.dispatch.test.d.ts +1 -0
- package/dist/jsonforms/lib/layouts/Group/MantineGroupLayoutRenderer.test.d.ts +1 -0
- package/dist/jsonforms/lib/layouts/MantineHotizontalLayoutRenderer.dispatch.test.d.ts +1 -0
- package/dist/jsonforms/lib/layouts/MantineHotizontalLayoutRenderer.test.d.ts +1 -0
- package/dist/jsonforms/lib/layouts/MantineVerticalLayoutRenderer.dispatch.test.d.ts +1 -0
- package/dist/jsonforms/lib/layouts/MantineVerticalLayoutRenderer.test.d.ts +1 -0
- package/dist/jsonforms/lib/renderers/mantineCells.test.d.ts +1 -0
- package/dist/jsonforms/lib/renderers/mantineRenderers.test.d.ts +1 -0
- package/dist/jsonforms/lib/test-helpers/inputWrap.d.ts +167 -0
- package/dist/jsonforms/lib/test-helpers/jsonFormsWrap.d.ts +9 -0
- package/dist/jsonforms/lib/testers/isEnumArrayArrayControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/testers/isEnumArrayControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/testers/isFileControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/testers/isFilesControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/testers/isImageControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/testers/isImagesControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/testers/isJsonArrayControl.d.ts +6 -2
- package/dist/jsonforms/lib/testers/isJsonArrayControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/testers/isJsonControl.test.d.ts +1 -0
- package/dist/jsonforms/lib/utils/getAbsoluteValue.test.d.ts +1 -0
- package/dist/jsonforms/lib/utils/isSchemaTypeInclude.test.d.ts +1 -0
- package/dist/jsonforms/lib/utils/layout.test.d.ts +1 -0
- package/dist/jsonforms/lib/utils/utcConverter.test.d.ts +1 -0
- package/dist/jsonforms/lib/utils/withAjvProps.test.d.ts +1 -0
- package/dist/jsonforms/lib/utils/withDebounce.test.d.ts +1 -0
- package/dist/jsonforms/lib/utils/withLabelMappingProps.test.d.ts +1 -0
- package/dist/utils/lib/FastAPIRTKLogger/FastAPIRTKLogger.test.d.ts +1 -0
- package/dist/utils/lib/Memoizer/MemoWrapper.test.d.ts +1 -0
- package/dist/utils/lib/Memoizer/RenderWrapper.test.d.ts +1 -0
- package/dist/utils/lib/convertId/convertId.test.d.ts +1 -0
- package/dist/utils/lib/convertToFormData/convertToFormData.test.d.ts +1 -0
- package/dist/utils/lib/createFetchParams/createFetchParams.test.d.ts +1 -0
- package/dist/utils/lib/createSafeContext/createSafeContext.test.d.ts +1 -0
- package/dist/utils/lib/deepMerge/deepMerge.test.d.ts +1 -0
- package/dist/utils/lib/getByPath/getByPath.test.d.ts +1 -0
- package/dist/utils/lib/getItemId/getItemId.test.d.ts +1 -0
- package/dist/utils/lib/getItemName/getItemName.test.d.ts +1 -0
- package/dist/utils/lib/getValue/getValue.test.d.ts +1 -0
- package/dist/utils/lib/getValueOrDefault/getValueOrDefault.test.d.ts +1 -0
- package/dist/utils/lib/isTruthy/isTruthy.test.d.ts +1 -0
- package/dist/utils/lib/mergeProps/mergeProps.test.d.ts +1 -0
- package/dist/utils/lib/parseFromValuesOrFunc/parseFromValuesOrFunc.test.d.ts +1 -0
- package/dist/utils/lib/parseResponse/parseResponse.test.d.ts +1 -0
- package/dist/utils/lib/parseValue/parseValue.test.d.ts +1 -0
- package/dist/utils/lib/urlJoin/urlJoin.test.d.ts +1 -0
- package/dist/utils/lib/useWatchRef/useWatchRef.test.d.ts +1 -0
- package/dist/zustand/lib/useProxy/useProxy.test.d.ts +1 -0
- package/dist/zustand/lib/utils/compareStateWithStore.test.d.ts +1 -0
- package/dist/zustand/lib/utils/createProxy.test.d.ts +1 -0
- package/package.json +24 -11
- package/dist/core/lib/Tables/NextGenDataGrid/hooks/useSize.d.ts +0 -20
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/environmentManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/focusManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/hydration.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/infiniteQueryObserver.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/mutation.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/mutationCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/mutationObserver.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/notifyManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/onlineManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/queriesObserver.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/query.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/queryCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/queryClient.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/queryObserver.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/removable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/retryer.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/streamedQuery.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/subscribable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/thenable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/timeoutManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/types.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/utils.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/IsRestoringProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/QueryClientProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/mutationOptions.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/queryOptions.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/suspense.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/usePrefetchQuery.cjs +0 -0
- /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.2.0_yup@1.7.1}/mantine-form-yup-resolver/dist/esm/index.cjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/environmentManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/focusManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/hydration.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/infiniteQueryObserver.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/mutation.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/mutationCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/mutationObserver.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/notifyManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/onlineManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/queriesObserver.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/query.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/queryCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/queryClient.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/queryObserver.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/removable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/retryer.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/streamedQuery.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/subscribable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/thenable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/timeoutManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/types.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.100.9 → @tanstack_query-core@5.100.10}/@tanstack/query-core/build/modern/utils.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/IsRestoringProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/QueryClientProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/infiniteQueryOptions.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/mutationOptions.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/queryOptions.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/suspense.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.100.9_react@19.2.6 → @tanstack_react-query@5.100.10_react@19.2.6}/@tanstack/react-query/build/modern/usePrefetchQuery.mjs +0 -0
- /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.2.0_yup@1.7.1}/mantine-form-yup-resolver/dist/esm/index.mjs +0 -0
|
@@ -12,7 +12,7 @@ const useForms = require("../hooks/api/useForms.cjs");
|
|
|
12
12
|
require("../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
13
13
|
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.10.10_react-dom@19.2.6_react@19.2.6_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
14
14
|
const DeleteDialog = ({ deleteText, onSuccess, onError, ...props }) => {
|
|
15
|
-
const { refetch, refetchInfo, deleteEntry } = useApi.useApi();
|
|
15
|
+
const { refetch, refetchInfo, deleteEntry, setError, resetError } = useApi.useApi();
|
|
16
16
|
const { t } = useTranslation.useTranslation();
|
|
17
17
|
const { opened, setOpened, getItem, reset, view, setView } = useForms.useForms("delete");
|
|
18
18
|
const [loading, setLoading] = hooks.useDebouncedState(false, constants.DEBOUNCE_LOADING_DELAY);
|
|
@@ -23,16 +23,21 @@ const DeleteDialog = ({ deleteText, onSuccess, onError, ...props }) => {
|
|
|
23
23
|
(e) => {
|
|
24
24
|
e == null ? void 0 : e.preventDefault();
|
|
25
25
|
setLoading(true);
|
|
26
|
-
|
|
26
|
+
resetError();
|
|
27
|
+
const id = getItem();
|
|
28
|
+
deleteEntry(id).then((res) => {
|
|
27
29
|
onSuccess == null ? void 0 : onSuccess(res);
|
|
28
30
|
refetch();
|
|
29
31
|
refetchInfo();
|
|
30
|
-
}).catch(
|
|
32
|
+
}).catch((error) => {
|
|
33
|
+
setError({ message: "Could not delete item with id {{id}}", data: { id }, originalError: error });
|
|
34
|
+
onError == null ? void 0 : onError(error);
|
|
35
|
+
}).finally(() => {
|
|
31
36
|
setLoading(false);
|
|
32
37
|
setOpened(false);
|
|
33
38
|
});
|
|
34
39
|
},
|
|
35
|
-
[setLoading, deleteEntry, getItem, onError, onSuccess, refetch, refetchInfo, setOpened]
|
|
40
|
+
[setLoading, resetError, deleteEntry, getItem, onError, onSuccess, refetch, refetchInfo, setError, setOpened]
|
|
36
41
|
);
|
|
37
42
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38
43
|
CommonModal.CommonModal,
|
|
@@ -8,7 +8,7 @@ const core = require("@mantine/core");
|
|
|
8
8
|
const form = require("@mantine/form");
|
|
9
9
|
const hooks = require("@mantine/hooks");
|
|
10
10
|
const lodash = require("../_virtual/lodash.cjs");
|
|
11
|
-
const index = require("../../../.external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@
|
|
11
|
+
const index = require("../../../.external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@9.2.0_yup@1.7.1/mantine-form-yup-resolver/dist/esm/index.cjs");
|
|
12
12
|
const React = require("react");
|
|
13
13
|
const convertToFormInputs$1 = require("../ActionIcons/utils/convertToFormInputs.cjs");
|
|
14
14
|
const convertToFormInputs = require("../fab-react-toolkit-patch/utils/convertToFormInputs.cjs");
|
|
@@ -31,7 +31,7 @@ function EditDialog({
|
|
|
31
31
|
...props
|
|
32
32
|
}) {
|
|
33
33
|
var _a;
|
|
34
|
-
const { info, refetch, refetchInfo, updateEntry } = useApi.useApi();
|
|
34
|
+
const { info, refetch, refetchInfo, updateEntry, setError, resetError } = useApi.useApi();
|
|
35
35
|
const { t } = useTranslation.useTranslation();
|
|
36
36
|
const { opened, setOpened, item, getItem, state, getState, setState, reset, view, setView } = useForms.useForms("edit");
|
|
37
37
|
const [loading, setLoading] = hooks.useDebouncedState(false, constants.DEBOUNCE_LOADING_DELAY);
|
|
@@ -61,6 +61,7 @@ function EditDialog({
|
|
|
61
61
|
(e) => {
|
|
62
62
|
e == null ? void 0 : e.preventDefault();
|
|
63
63
|
setLoading(true);
|
|
64
|
+
resetError();
|
|
64
65
|
const new_data = Object.entries(getState().data).reduce((acc, [key, value]) => {
|
|
65
66
|
if (lodash.lodashExports.isEqual(value, initialStateRef.current.data[key])) {
|
|
66
67
|
return acc;
|
|
@@ -68,18 +69,32 @@ function EditDialog({
|
|
|
68
69
|
acc[key] = value;
|
|
69
70
|
return acc;
|
|
70
71
|
}, {});
|
|
71
|
-
|
|
72
|
+
const id = utils.getItemId(getItem());
|
|
73
|
+
updateEntry(id, new_data).then((res) => {
|
|
72
74
|
onSuccess == null ? void 0 : onSuccess(res);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
75
|
+
refetch();
|
|
76
|
+
refetchInfo();
|
|
77
|
+
}).catch((error) => {
|
|
78
|
+
setError({ message: "Could not update item with id {{id}}", data: { id }, originalError: error });
|
|
79
|
+
onError == null ? void 0 : onError(error);
|
|
80
|
+
}).finally(() => {
|
|
78
81
|
setLoading(false);
|
|
79
82
|
setOpened(false);
|
|
80
83
|
});
|
|
81
84
|
},
|
|
82
|
-
[
|
|
85
|
+
[
|
|
86
|
+
setLoading,
|
|
87
|
+
resetError,
|
|
88
|
+
getState,
|
|
89
|
+
updateEntry,
|
|
90
|
+
getItem,
|
|
91
|
+
onError,
|
|
92
|
+
onSuccess,
|
|
93
|
+
refetch,
|
|
94
|
+
refetchInfo,
|
|
95
|
+
setError,
|
|
96
|
+
setOpened
|
|
97
|
+
]
|
|
83
98
|
);
|
|
84
99
|
const form$1 = form.useForm({ initialValues: info.edit.defaultValues, validate: index.yupResolver(info.edit.schema) });
|
|
85
100
|
const onSubmitFunc = fab ? form$1.onSubmit((values, e) => {
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const core = require("@mantine/core");
|
|
5
5
|
const form = require("@mantine/form");
|
|
6
6
|
const hooks = require("@mantine/hooks");
|
|
7
|
-
const index = require("../../../../../../.external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@
|
|
7
|
+
const index = require("../../../../../../.external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@9.2.0_yup@1.7.1/mantine-form-yup-resolver/dist/esm/index.cjs");
|
|
8
8
|
const React = require("react");
|
|
9
9
|
const index_esm = require("../../../../../../.external/cjs/yup@1.7.1/yup/index.esm.cjs");
|
|
10
10
|
const plus = require("../../../../_virtual/plus.cjs");
|
|
@@ -207,10 +207,10 @@ const NextGenDataGrid = React.forwardRef((props, ref) => {
|
|
|
207
207
|
const mrtProps = React.useMemo(() => utils.deepMerge(_mrtProps, optimizationsProps), [_mrtProps, optimizationsProps]);
|
|
208
208
|
const mrtTable = index_esm.useMantineReactTable(mrtProps);
|
|
209
209
|
mrtTable.refs.selectionStoreRef = React.useRef(zustand.selectionStoreFactory());
|
|
210
|
-
mrtTable.refs.
|
|
211
|
-
mrtTable.refs.
|
|
212
|
-
mrtTable.refs.
|
|
213
|
-
mrtTable.refs.
|
|
210
|
+
mrtTable.refs.optionsRef = React.useRef(tableOptions);
|
|
211
|
+
mrtTable.refs.optionsRef.current = tableOptions;
|
|
212
|
+
mrtTable.refs.optimizationsRef = React.useRef(optimizations);
|
|
213
|
+
mrtTable.refs.optimizationsRef.current = optimizations;
|
|
214
214
|
const useOnLoadProps = React.useMemo(() => fetchOnMount, [fetchOnMount]);
|
|
215
215
|
const useViewProps = React.useMemo(() => form, [form]);
|
|
216
216
|
const useTableSelectionProps = React.useMemo(
|
|
@@ -18,10 +18,10 @@ const Cell = ({ renderedRowIndex, row, table }) => {
|
|
|
18
18
|
[storeOnChange, rowId]
|
|
19
19
|
);
|
|
20
20
|
row.getCanSelect = () => {
|
|
21
|
-
if (typeof table.refs.
|
|
22
|
-
return table.refs.
|
|
21
|
+
if (typeof table.refs.optionsRef.current.enableRowSelection === "function") {
|
|
22
|
+
return table.refs.optionsRef.current.enableRowSelection(row);
|
|
23
23
|
}
|
|
24
|
-
return table.refs.
|
|
24
|
+
return table.refs.optionsRef.current.enableRowSelection ?? true;
|
|
25
25
|
};
|
|
26
26
|
const {
|
|
27
27
|
options: { mantineSelectCheckboxProps }
|
|
@@ -64,7 +64,7 @@ function AdvancedFilters({ col }) {
|
|
|
64
64
|
index >= 0 && index + 1 < formFilters.length && /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { span: 12, py: 0, children: /* @__PURE__ */ jsxRuntime.jsx(core.Divider, { my: "sm", label: "AND", align: "center" }) })
|
|
65
65
|
] }, `${filter.col}-${index}`) : null
|
|
66
66
|
).filter(Boolean);
|
|
67
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(core.Grid, { w: fields.length ? "25rem" : "100%", gap: "
|
|
67
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(core.Grid, { w: fields.length ? "25rem" : "100%", gap: "xs", children: [
|
|
68
68
|
fields.length ? fields : /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { span: 12, children: /* @__PURE__ */ jsxRuntime.jsx(core.Text, { align: "center", c: "gray", style: { fontStyle: "italic" }, children: "No filters" }) }),
|
|
69
69
|
/* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { span: 12, children: /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
70
70
|
AdvancedFiltersMenu.AdvancedFiltersMenu,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const index_esm = require("../../../../../../.external/cjs/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.cjs");
|
|
5
4
|
const Add = require("../../../../ActionIcons/Add/Add.cjs");
|
|
6
5
|
const Download = require("../../../../ActionIcons/Download/Download.cjs");
|
|
7
6
|
const Refresh = require("../../../../ActionIcons/Refresh/Refresh.cjs");
|
|
7
|
+
const mrtToolbars = require("./mrtToolbars.cjs");
|
|
8
8
|
function getBasicToolbars(table, rules) {
|
|
9
9
|
const toolbars = {
|
|
10
|
-
toggleGlobalFilter: (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
11
|
-
filter: (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
10
|
+
toggleGlobalFilter: (props) => /* @__PURE__ */ jsxRuntime.jsx(mrtToolbars.ToggleGlobalFilterButton, { table, ...props }, "basic-toggleGlobalFilter"),
|
|
11
|
+
filter: (props) => /* @__PURE__ */ jsxRuntime.jsx(mrtToolbars.ToggleFiltersButton, { table, ...props }, "basic-filter"),
|
|
12
12
|
refresh: (props) => /* @__PURE__ */ jsxRuntime.jsx(Refresh.Refresh, { tooltipProps: { label: table.options.localization.refresh }, ...props }, "basic-refresh"),
|
|
13
13
|
add: (props) => /* @__PURE__ */ jsxRuntime.jsx(Add.Add, { tooltipProps: { label: table.options.localization.add }, ...props }, "basic-add"),
|
|
14
14
|
download: (props) => /* @__PURE__ */ jsxRuntime.jsx(Download.Download, { tooltipProps: { label: table.options.localization.download }, ...props }, "basic-download"),
|
|
15
15
|
// upload: (props) => (
|
|
16
16
|
// <Upload key="basic-upload" tooltipProps={{ label: table.options.localization.upload }} {...props} />
|
|
17
17
|
// ), //! Disabled until further notice
|
|
18
|
-
showHideColumns: (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
19
|
-
toggleDensePadding: (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
20
|
-
toggleFullScreen: (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
18
|
+
showHideColumns: (props) => /* @__PURE__ */ jsxRuntime.jsx(mrtToolbars.ShowHideColumnsButton, { table, ...props }, "basic-showHideColumns"),
|
|
19
|
+
toggleDensePadding: (props) => /* @__PURE__ */ jsxRuntime.jsx(mrtToolbars.ToggleDensePaddingButton, { table, ...props }, "basic-toggleDensePadding"),
|
|
20
|
+
toggleFullScreen: (props) => /* @__PURE__ */ jsxRuntime.jsx(mrtToolbars.ToggleFullScreenButton, { table, ...props }, "basic-toggleFullScreen")
|
|
21
21
|
};
|
|
22
22
|
Object.entries(rules).forEach(([key, value]) => {
|
|
23
23
|
if (!value) {
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const hooks = require("fastapi-rtk/hooks");
|
|
5
|
+
const core = require("@mantine/core");
|
|
6
|
+
const index_esm = require("../../../../../../.external/cjs/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.cjs");
|
|
7
|
+
const React = require("react");
|
|
8
|
+
const BaseActionIcon = require("../../../../ActionIcons/utils/BaseActionIcon.cjs");
|
|
9
|
+
const DENSITY_NEXT = { md: "xs", xl: "md", xs: "xl" };
|
|
10
|
+
const ToggleGlobalFilterButton = React.memo(({ table, ...props }) => {
|
|
11
|
+
const { globalFilter, showGlobalFilter } = table.getState();
|
|
12
|
+
const { IconSearch, IconSearchOff } = table.options.icons;
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14
|
+
BaseActionIcon.BaseActionIcon,
|
|
15
|
+
{
|
|
16
|
+
Icon: showGlobalFilter ? IconSearchOff : IconSearch,
|
|
17
|
+
label: table.options.localization.showHideSearch,
|
|
18
|
+
disabled: !!globalFilter,
|
|
19
|
+
onClick: () => {
|
|
20
|
+
table.setShowGlobalFilter(!showGlobalFilter);
|
|
21
|
+
setTimeout(() => {
|
|
22
|
+
var _a;
|
|
23
|
+
return (_a = table.refs.searchInputRef.current) == null ? void 0 : _a.focus();
|
|
24
|
+
}, 100);
|
|
25
|
+
},
|
|
26
|
+
...props
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
ToggleGlobalFilterButton.displayName = "ToggleGlobalFilterButton";
|
|
31
|
+
const ToggleFiltersButton = React.memo(({ table, ...props }) => {
|
|
32
|
+
const { showColumnFilters } = table.getState();
|
|
33
|
+
const { IconFilter, IconFilterOff } = table.options.icons;
|
|
34
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
35
|
+
BaseActionIcon.BaseActionIcon,
|
|
36
|
+
{
|
|
37
|
+
Icon: showColumnFilters ? IconFilterOff : IconFilter,
|
|
38
|
+
label: table.options.localization.showHideFilters,
|
|
39
|
+
onClick: () => table.setShowColumnFilters((current) => !current),
|
|
40
|
+
...props
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
});
|
|
44
|
+
ToggleFiltersButton.displayName = "ToggleFiltersButton";
|
|
45
|
+
const ToggleDensePaddingButton = React.memo(({ table, ...props }) => {
|
|
46
|
+
const { density } = table.getState();
|
|
47
|
+
const { IconBaselineDensityLarge, IconBaselineDensityMedium, IconBaselineDensitySmall } = table.options.icons;
|
|
48
|
+
const Icon = density === "xs" ? IconBaselineDensitySmall : density === "md" ? IconBaselineDensityMedium : IconBaselineDensityLarge;
|
|
49
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
50
|
+
BaseActionIcon.BaseActionIcon,
|
|
51
|
+
{
|
|
52
|
+
Icon,
|
|
53
|
+
label: table.options.localization.toggleDensity,
|
|
54
|
+
onClick: () => table.setDensity((current) => DENSITY_NEXT[current]),
|
|
55
|
+
...props
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
});
|
|
59
|
+
ToggleDensePaddingButton.displayName = "ToggleDensePaddingButton";
|
|
60
|
+
const ToggleFullScreenButton = React.memo(({ table, tooltipProps, ...props }) => {
|
|
61
|
+
const { isFullScreen } = table.getState();
|
|
62
|
+
const { IconMaximize, IconMinimize } = table.options.icons;
|
|
63
|
+
const [tooltipOpened, setTooltipOpened] = React.useState(false);
|
|
64
|
+
const label = table.options.localization.toggleFullScreen;
|
|
65
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
66
|
+
BaseActionIcon.BaseActionIcon,
|
|
67
|
+
{
|
|
68
|
+
Icon: isFullScreen ? IconMinimize : IconMaximize,
|
|
69
|
+
label,
|
|
70
|
+
tooltipProps: { opened: tooltipOpened, ...tooltipProps },
|
|
71
|
+
onClick: () => {
|
|
72
|
+
setTooltipOpened(false);
|
|
73
|
+
table.setIsFullScreen((current) => !current);
|
|
74
|
+
},
|
|
75
|
+
onMouseEnter: () => setTooltipOpened(true),
|
|
76
|
+
onMouseLeave: () => setTooltipOpened(false),
|
|
77
|
+
...props
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
});
|
|
81
|
+
ToggleFullScreenButton.displayName = "ToggleFullScreenButton";
|
|
82
|
+
const ShowHideColumnsButton = React.memo(({ table, tooltipProps, iconProps, ...props }) => {
|
|
83
|
+
const { IconColumns } = table.options.icons;
|
|
84
|
+
const label = table.options.localization.showHideColumns;
|
|
85
|
+
const actionIconProps = hooks.useActionIcon(props);
|
|
86
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(core.Menu, { closeOnItemClick: false, withinPortal: true, children: [
|
|
87
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { withinPortal: true, ...tooltipProps, label: (tooltipProps == null ? void 0 : tooltipProps.label) ?? label, children: /* @__PURE__ */ jsxRuntime.jsx(core.Menu.Target, { children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { "aria-label": label, ...actionIconProps, children: /* @__PURE__ */ jsxRuntime.jsx(IconColumns, { ...iconProps }) }) }) }),
|
|
88
|
+
/* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_ShowHideColumnsMenu, { table })
|
|
89
|
+
] });
|
|
90
|
+
});
|
|
91
|
+
ShowHideColumnsButton.displayName = "ShowHideColumnsButton";
|
|
92
|
+
exports.ShowHideColumnsButton = ShowHideColumnsButton;
|
|
93
|
+
exports.ToggleDensePaddingButton = ToggleDensePaddingButton;
|
|
94
|
+
exports.ToggleFiltersButton = ToggleFiltersButton;
|
|
95
|
+
exports.ToggleFullScreenButton = ToggleFullScreenButton;
|
|
96
|
+
exports.ToggleGlobalFilterButton = ToggleGlobalFilterButton;
|
|
@@ -38,7 +38,7 @@ const MRT_TableContainer = ({ table, ...rest }) => {
|
|
|
38
38
|
const createModalOpen = createDisplayMode === "modal" && creatingRow;
|
|
39
39
|
const editModalOpen = editDisplayMode === "modal" && editingRow;
|
|
40
40
|
const tableContainerWrapperProps = utils.parseFromValuesOrFunc(mantineTableContainerWrapperProps, { table });
|
|
41
|
-
const optimizations = table.refs.
|
|
41
|
+
const optimizations = table.refs.optimizationsRef.current;
|
|
42
42
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
43
43
|
core.Box,
|
|
44
44
|
{
|
|
@@ -42,7 +42,7 @@ const MRT_TableBodyRow = ({
|
|
|
42
42
|
const visibleCells = row.getVisibleCells();
|
|
43
43
|
const { virtualColumns, virtualPaddingLeft, virtualPaddingRight } = columnVirtualizer ?? {};
|
|
44
44
|
const store = table.refs.selectionStoreRef.current;
|
|
45
|
-
const optimizations = table.refs.
|
|
45
|
+
const optimizations = table.refs.optimizationsRef.current;
|
|
46
46
|
const isOptimizedRowSelected = zustand.useSelectionStore(store, (state) => state.rowSelection[row.id] ?? false);
|
|
47
47
|
const isRowSelected = index_esm.getIsRowSelected({ row, table }) || isOptimizedRowSelected;
|
|
48
48
|
const isRowPinned = enableRowPinning && row.getIsPinned();
|
|
@@ -31,7 +31,7 @@ const MRT_TableHead = ({ columnVirtualizer, table, ...rest }) => {
|
|
|
31
31
|
} = table;
|
|
32
32
|
const { rowSelection } = getState();
|
|
33
33
|
const totalRowCount = rowCount ?? getPrePaginationRowModel().flatRows.length;
|
|
34
|
-
const optimizations = table.refs.
|
|
34
|
+
const optimizations = table.refs.optimizationsRef.current;
|
|
35
35
|
const store = table.refs.selectionStoreRef.current;
|
|
36
36
|
const optimizedRowSelection = zustand.useSelectionStore(store, (state) => state.rowSelection);
|
|
37
37
|
const selectedRowCount = React.useMemo(
|
|
@@ -28,7 +28,7 @@ const MRT_ToolbarAlertBanner = ({ stackAlertBanner, table, ...rest }) => {
|
|
|
28
28
|
}
|
|
29
29
|
} = table;
|
|
30
30
|
const { density, grouping, rowSelection, showAlertBanner } = getState();
|
|
31
|
-
const optimizations = table.refs.
|
|
31
|
+
const optimizations = table.refs.optimizationsRef.current;
|
|
32
32
|
const store = table.refs.selectionStoreRef.current;
|
|
33
33
|
const optimizedRowSelection = zustand.useSelectionStore(store, (state) => state.rowSelection);
|
|
34
34
|
const optimizedSelectAllHandler = zustand.useSelectionStore(store, (state) => state.toggleAllRowsSelected);
|
|
@@ -92,41 +92,48 @@ const MRT_ToolbarAlertBanner = ({ stackAlertBanner, table, ...rest }) => {
|
|
|
92
92
|
)
|
|
93
93
|
] }, `${index}-${columnId}`))
|
|
94
94
|
] }) : null;
|
|
95
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
96
|
-
core.
|
|
95
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
96
|
+
core.Collapse,
|
|
97
97
|
{
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
MRT_ToolbarAlertBanner_module.default.alert,
|
|
103
|
-
stackAlertBanner && !positionToolbarAlertBanner && MRT_ToolbarAlertBanner_module.default["alert-stacked"],
|
|
104
|
-
!stackAlertBanner && positionToolbarAlertBanner === "bottom" && MRT_ToolbarAlertBanner_module.default["alert-bottom"],
|
|
105
|
-
alertProps == null ? void 0 : alertProps.className
|
|
106
|
-
),
|
|
107
|
-
children: (renderToolbarAlertBannerContent == null ? void 0 : renderToolbarAlertBannerContent({
|
|
108
|
-
groupedAlert,
|
|
109
|
-
selectedAlert,
|
|
110
|
-
table
|
|
111
|
-
})) ?? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
112
|
-
core.Flex,
|
|
98
|
+
expanded: showAlertBanner || !!selectedAlert || !!groupedAlert,
|
|
99
|
+
transitionDuration: stackAlertBanner ? 200 : 0,
|
|
100
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
101
|
+
core.Alert,
|
|
113
102
|
{
|
|
103
|
+
color: "blue",
|
|
104
|
+
icon: false,
|
|
105
|
+
...alertProps,
|
|
114
106
|
className: clsx.clsx(
|
|
115
|
-
MRT_ToolbarAlertBanner_module.default
|
|
116
|
-
|
|
117
|
-
|
|
107
|
+
MRT_ToolbarAlertBanner_module.default.alert,
|
|
108
|
+
stackAlertBanner && !positionToolbarAlertBanner && MRT_ToolbarAlertBanner_module.default["alert-stacked"],
|
|
109
|
+
!stackAlertBanner && positionToolbarAlertBanner === "bottom" && MRT_ToolbarAlertBanner_module.default["alert-bottom"],
|
|
110
|
+
alertProps == null ? void 0 : alertProps.className
|
|
118
111
|
),
|
|
119
|
-
children:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
112
|
+
children: (renderToolbarAlertBannerContent == null ? void 0 : renderToolbarAlertBannerContent({
|
|
113
|
+
groupedAlert,
|
|
114
|
+
selectedAlert,
|
|
115
|
+
table
|
|
116
|
+
})) ?? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
117
|
+
core.Flex,
|
|
118
|
+
{
|
|
119
|
+
className: clsx.clsx(
|
|
120
|
+
MRT_ToolbarAlertBanner_module.default["toolbar-alert"],
|
|
121
|
+
positionToolbarAlertBanner === "head-overlay" && MRT_ToolbarAlertBanner_module.default["head-overlay"],
|
|
122
|
+
density
|
|
123
|
+
),
|
|
124
|
+
children: [
|
|
125
|
+
enableRowSelection && enableSelectAll && positionToolbarAlertBanner === "head-overlay" && /* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_SelectCheckbox, { table }),
|
|
126
|
+
/* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { children: [
|
|
127
|
+
alertProps == null ? void 0 : alertProps.children,
|
|
128
|
+
selectedAlert,
|
|
129
|
+
groupedAlert
|
|
130
|
+
] })
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
)
|
|
127
134
|
}
|
|
128
135
|
)
|
|
129
136
|
}
|
|
130
|
-
)
|
|
137
|
+
);
|
|
131
138
|
};
|
|
132
139
|
exports.MRT_ToolbarAlertBanner = MRT_ToolbarAlertBanner;
|
|
@@ -26,7 +26,6 @@ function ApiProvider({
|
|
|
26
26
|
infoQueryProps,
|
|
27
27
|
dataQueryProps,
|
|
28
28
|
streamingQueryProps,
|
|
29
|
-
throwOnError,
|
|
30
29
|
streaming,
|
|
31
30
|
children
|
|
32
31
|
}) {
|
|
@@ -46,7 +45,6 @@ function ApiProvider({
|
|
|
46
45
|
infoQueryProps,
|
|
47
46
|
dataQueryProps,
|
|
48
47
|
streamingQueryProps,
|
|
49
|
-
throwOnError,
|
|
50
48
|
streaming
|
|
51
49
|
},
|
|
52
50
|
apiParams
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const utils = require("fastapi-rtk/utils");
|
|
5
5
|
const hooks = require("@mantine/hooks");
|
|
6
|
-
const utils$1 = require("../../../../../.external/cjs/@tanstack_query-core@5.100.
|
|
7
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.100.
|
|
8
|
-
const useInfiniteQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.100.
|
|
6
|
+
const utils$1 = require("../../../../../.external/cjs/@tanstack_query-core@5.100.10/@tanstack/query-core/build/modern/utils.cjs");
|
|
7
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.100.10_react@19.2.6/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
8
|
+
const useInfiniteQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.100.10_react@19.2.6/@tanstack/react-query/build/modern/useInfiniteQuery.cjs");
|
|
9
9
|
const useLang = require("../../../hooks/lang/useLang.cjs");
|
|
10
10
|
const createItem = require("../utils/api/createItem.cjs");
|
|
11
11
|
const deleteItem = require("../utils/api/deleteItem.cjs");
|
|
@@ -56,7 +56,6 @@ function useProvideApi({
|
|
|
56
56
|
infoQueryProps,
|
|
57
57
|
dataQueryProps,
|
|
58
58
|
streamingQueryProps,
|
|
59
|
-
throwOnError = false,
|
|
60
59
|
streaming: streamingMode = false
|
|
61
60
|
}, api = defaultApi) {
|
|
62
61
|
var _a;
|
|
@@ -223,10 +222,7 @@ function useProvideApi({
|
|
|
223
222
|
pathRef,
|
|
224
223
|
infoRef,
|
|
225
224
|
queryParamsRef,
|
|
226
|
-
currentLanguage
|
|
227
|
-
resetError,
|
|
228
|
-
setError,
|
|
229
|
-
throwOnError
|
|
225
|
+
currentLanguage
|
|
230
226
|
});
|
|
231
227
|
const specialKey = React.useMemo(() => {
|
|
232
228
|
var _a2, _b;
|
|
@@ -273,6 +269,7 @@ function useProvideApi({
|
|
|
273
269
|
upload,
|
|
274
270
|
getFileURL: (item) => getItemURL("file", item),
|
|
275
271
|
getImageURL: (item) => getItemURL("image", item),
|
|
272
|
+
setError,
|
|
276
273
|
resetError
|
|
277
274
|
};
|
|
278
275
|
}
|
|
@@ -2,117 +2,46 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const utils = require("fastapi-rtk/utils");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const useApiActions = ({
|
|
6
|
-
api,
|
|
7
|
-
path,
|
|
8
|
-
pathRef,
|
|
9
|
-
infoRef,
|
|
10
|
-
queryParamsRef,
|
|
11
|
-
currentLanguage,
|
|
12
|
-
resetError,
|
|
13
|
-
setError,
|
|
14
|
-
throwOnError
|
|
15
|
-
}) => {
|
|
5
|
+
const useApiActions = ({ api, path, pathRef, infoRef, queryParamsRef, currentLanguage }) => {
|
|
16
6
|
const getEntry = React.useCallback(
|
|
17
|
-
async (id) => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
headers: { "Accept-Language": currentLanguage }
|
|
22
|
-
});
|
|
23
|
-
return response;
|
|
24
|
-
} catch (error) {
|
|
25
|
-
setError({ message: "Could not fetch item with id {{id}}", data: { id }, originalError: error });
|
|
26
|
-
if (throwOnError) {
|
|
27
|
-
throw error;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
[api, currentLanguage, pathRef, resetError, setError, throwOnError]
|
|
7
|
+
async (id) => api.getItem(pathRef.current, utils.convertId(id), {
|
|
8
|
+
headers: { "Accept-Language": currentLanguage }
|
|
9
|
+
}),
|
|
10
|
+
[api, currentLanguage, pathRef]
|
|
32
11
|
);
|
|
33
12
|
const addEntry = React.useCallback(
|
|
34
13
|
async (item) => {
|
|
35
14
|
var _a;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
headers: { "Accept-Language": currentLanguage }
|
|
41
|
-
});
|
|
42
|
-
return response;
|
|
43
|
-
} catch (error) {
|
|
44
|
-
setError({ message: `Could not add item`, originalError: error });
|
|
45
|
-
if (throwOnError) {
|
|
46
|
-
throw error;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
15
|
+
const func = ((_a = infoRef.current) == null ? void 0 : _a.add_type) === "form" ? api.formCreateItem : api.createItem;
|
|
16
|
+
return func(pathRef.current, item, {
|
|
17
|
+
headers: { "Accept-Language": currentLanguage }
|
|
18
|
+
});
|
|
49
19
|
},
|
|
50
|
-
[api.createItem, api.formCreateItem, currentLanguage, infoRef, pathRef
|
|
20
|
+
[api.createItem, api.formCreateItem, currentLanguage, infoRef, pathRef]
|
|
51
21
|
);
|
|
52
22
|
const updateEntry = React.useCallback(
|
|
53
23
|
async (id, item) => {
|
|
54
24
|
var _a;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
headers: { "Accept-Language": currentLanguage }
|
|
60
|
-
});
|
|
61
|
-
return response;
|
|
62
|
-
} catch (error) {
|
|
63
|
-
setError({ message: "Could not update item with id {{id}}", data: { id }, originalError: error });
|
|
64
|
-
if (throwOnError) {
|
|
65
|
-
throw error;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
25
|
+
const func = ((_a = infoRef.current) == null ? void 0 : _a.edit_type) === "form" ? api.formUpdateItem : api.updateItem;
|
|
26
|
+
return func(pathRef.current, utils.convertId(id), item, {
|
|
27
|
+
headers: { "Accept-Language": currentLanguage }
|
|
28
|
+
});
|
|
68
29
|
},
|
|
69
|
-
[api.formUpdateItem, api.updateItem, currentLanguage, infoRef, pathRef
|
|
30
|
+
[api.formUpdateItem, api.updateItem, currentLanguage, infoRef, pathRef]
|
|
70
31
|
);
|
|
71
32
|
const deleteEntry = React.useCallback(
|
|
72
|
-
async (id) => {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
headers: { "Accept-Language": currentLanguage }
|
|
77
|
-
});
|
|
78
|
-
return response;
|
|
79
|
-
} catch (error) {
|
|
80
|
-
setError({ message: "Could not delete item with id {{id}}", data: { id }, originalError: error });
|
|
81
|
-
if (throwOnError) {
|
|
82
|
-
throw error;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
[api, currentLanguage, pathRef, resetError, setError, throwOnError]
|
|
33
|
+
async (id) => api.deleteItem(pathRef.current, utils.convertId(id), {
|
|
34
|
+
headers: { "Accept-Language": currentLanguage }
|
|
35
|
+
}),
|
|
36
|
+
[api, currentLanguage, pathRef]
|
|
87
37
|
);
|
|
88
38
|
const download = React.useCallback(
|
|
89
|
-
async (label, { export_mode, delimiter, quotechar } = {}) => {
|
|
90
|
-
|
|
91
|
-
resetError();
|
|
92
|
-
await api.downloadItems(pathRef.current, queryParamsRef.current, { label, export_mode, delimiter, quotechar });
|
|
93
|
-
} catch (error) {
|
|
94
|
-
setError({ message: `Could not download`, originalError: error });
|
|
95
|
-
if (throwOnError) {
|
|
96
|
-
throw error;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
[api, pathRef, queryParamsRef, resetError, setError, throwOnError]
|
|
39
|
+
async (label, { export_mode, delimiter, quotechar } = {}) => api.downloadItems(pathRef.current, queryParamsRef.current, { label, export_mode, delimiter, quotechar }),
|
|
40
|
+
[api, pathRef, queryParamsRef]
|
|
101
41
|
);
|
|
102
42
|
const upload = React.useCallback(
|
|
103
|
-
async (file, { delimiter, quotechar } = {}) => {
|
|
104
|
-
|
|
105
|
-
resetError();
|
|
106
|
-
const response = await api.uploadItems(pathRef.current, file, { delimiter, quotechar });
|
|
107
|
-
return response;
|
|
108
|
-
} catch (error) {
|
|
109
|
-
setError({ message: `Could not upload`, originalError: error });
|
|
110
|
-
if (throwOnError) {
|
|
111
|
-
throw error;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
[api, pathRef, resetError, setError, throwOnError]
|
|
43
|
+
async (file, { delimiter, quotechar } = {}) => api.uploadItems(pathRef.current, file, { delimiter, quotechar }),
|
|
44
|
+
[api, pathRef]
|
|
116
45
|
);
|
|
117
46
|
const getItemURL = React.useCallback(
|
|
118
47
|
(type, item) => typeof item === "string" ? utils.urlJoin(path, `_${type}`, item) : URL.createObjectURL(item),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const QueryClientProvider = require("../../../../../../.external/cjs/@tanstack_react-query@5.100.
|
|
3
|
+
const QueryClientProvider = require("../../../../../../.external/cjs/@tanstack_react-query@5.100.10_react@19.2.6/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const useStreamingData = ({ streamingMode, dataQuery, streamingQuery, streamingQueryKey }) => {
|
|
6
6
|
var _a;
|
|
@@ -4,8 +4,8 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const constants = require("fastapi-rtk/constants");
|
|
5
5
|
const utils = require("fastapi-rtk/utils");
|
|
6
6
|
const zustand = require("fastapi-rtk/zustand");
|
|
7
|
-
const queryClient = require("../../../../.external/cjs/@tanstack_query-core@5.100.
|
|
8
|
-
const QueryClientProvider = require("../../../../.external/cjs/@tanstack_react-query@5.100.
|
|
7
|
+
const queryClient = require("../../../../.external/cjs/@tanstack_query-core@5.100.10/@tanstack/query-core/build/modern/queryClient.cjs");
|
|
8
|
+
const QueryClientProvider = require("../../../../.external/cjs/@tanstack_react-query@5.100.10_react@19.2.6/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
9
9
|
const React = require("react");
|
|
10
10
|
const useProvideAuth = require("../../fab-react-toolkit-patch/auth/hooks/useProvideAuth.cjs");
|
|
11
11
|
const useProvideInfo = require("../../fab-react-toolkit-patch/auth/hooks/useProvideInfo.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.100.
|
|
4
|
-
const QueryClientProvider = require("../../../../../.external/cjs/@tanstack_react-query@5.100.
|
|
3
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.100.10_react@19.2.6/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
4
|
+
const QueryClientProvider = require("../../../../../.external/cjs/@tanstack_react-query@5.100.10_react@19.2.6/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
const authFetch = require("../utils/authFetch.cjs");
|
|
7
7
|
const userCRUD = require("../utils/userCRUD.cjs");
|