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.
- package/dist/.bundled/jsonforms/cjs/_virtual/index10.cjs +2 -2
- 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/_virtual/index6.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index7.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index8.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index9.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/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/index10.mjs +2 -2
- 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/_virtual/index6.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index7.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index8.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index9.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/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/ajv@8.20.0/ajv/dist/compile/codegen/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.20.0/ajv/dist/compile/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/applicator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.20.0/ajv/dist/vocabularies/core/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.20.0/ajv/dist/vocabularies/discriminator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.20.0/ajv/dist/vocabularies/format/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.20.0/ajv/dist/vocabularies/validation/index.cjs +1 -1
- 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/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/applicator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.20.0/ajv/dist/vocabularies/core/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.20.0/ajv/dist/vocabularies/discriminator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.20.0/ajv/dist/vocabularies/format/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.20.0/ajv/dist/vocabularies/validation/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 +2 -5
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/utils/useApiActions.cjs +23 -94
- 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 +2 -5
- package/dist/core/esm/Wrappers/ApiProvider/hooks/utils/useApiActions.mjs +23 -94
- 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/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/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/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/{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
- /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,18 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const hooks = require("fastapi-rtk/hooks");
|
|
5
|
-
const core = require("@mantine/core");
|
|
6
4
|
const React = require("react");
|
|
7
5
|
const plus = require("../../_virtual/plus.cjs");
|
|
8
6
|
const useForms = require("../../hooks/api/useForms.cjs");
|
|
9
7
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
8
|
+
const BaseActionIcon = require("../utils/BaseActionIcon.cjs");
|
|
10
9
|
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");
|
|
11
|
-
const Add = React.memo((
|
|
10
|
+
const Add = React.memo((props) => {
|
|
12
11
|
const { t } = useTranslation.useTranslation();
|
|
13
12
|
const { setOpened } = useForms.useForms("add");
|
|
14
|
-
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { ...tooltipProps, label: (tooltipProps == null ? void 0 : tooltipProps.label) ?? t("Add Item"), children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ...actionIconProps, children: /* @__PURE__ */ jsxRuntime.jsx(plus, { ...iconProps }) }) });
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BaseActionIcon.BaseActionIcon, { Icon: plus, label: t("Add Item"), onClick: () => setOpened(true), ...props });
|
|
16
14
|
});
|
|
17
15
|
Add.displayName = "Add";
|
|
18
16
|
exports.Add = Add;
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const hooks = require("fastapi-rtk/hooks");
|
|
5
|
-
const core = require("@mantine/core");
|
|
6
4
|
const React = require("react");
|
|
7
5
|
const trash = require("../../_virtual/trash.cjs");
|
|
8
6
|
const useForms = require("../../hooks/api/useForms.cjs");
|
|
9
7
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
8
|
+
const BaseActionIcon = require("../utils/BaseActionIcon.cjs");
|
|
10
9
|
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");
|
|
11
|
-
const Delete = React.memo(({ id,
|
|
10
|
+
const Delete = React.memo(({ id, ...props }) => {
|
|
12
11
|
const { t } = useTranslation.useTranslation();
|
|
13
12
|
const { setOpened, setItem } = useForms.useForms("delete");
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14
|
+
BaseActionIcon.BaseActionIcon,
|
|
15
|
+
{
|
|
16
|
+
Icon: trash,
|
|
17
|
+
label: t("Delete"),
|
|
18
|
+
size: "sm",
|
|
19
|
+
onClick: (e) => {
|
|
20
|
+
e == null ? void 0 : e.stopPropagation();
|
|
21
|
+
setItem(id);
|
|
22
|
+
setOpened(true);
|
|
23
|
+
},
|
|
24
|
+
...props
|
|
25
|
+
}
|
|
26
|
+
);
|
|
24
27
|
});
|
|
25
28
|
Delete.displayName = "Delete";
|
|
26
29
|
exports.Delete = Delete;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const constants = require("fastapi-rtk/constants");
|
|
5
|
-
const hooks$1 = require("fastapi-rtk/hooks");
|
|
6
5
|
const core = require("@mantine/core");
|
|
7
6
|
const hooks = require("@mantine/hooks");
|
|
8
7
|
const React = require("react");
|
|
@@ -10,20 +9,19 @@ const download = require("../../_virtual/download.cjs");
|
|
|
10
9
|
const separatorVertical = require("../../_virtual/separator-vertical.cjs");
|
|
11
10
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
12
11
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
12
|
+
const BaseActionIcon = require("../utils/BaseActionIcon.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
|
-
const Download = React.memo((
|
|
15
|
-
const { download: download$1 } = useApi.useApi();
|
|
14
|
+
const Download = React.memo((props) => {
|
|
15
|
+
const { download: download$1, setError, resetError } = useApi.useApi();
|
|
16
16
|
const { t } = useTranslation.useTranslation();
|
|
17
17
|
const [opened, { toggle, close }] = hooks.useDisclosure();
|
|
18
18
|
const [loading, setLoading] = hooks.useDebouncedState(false, constants.DEBOUNCE_LOADING_DELAY);
|
|
19
19
|
const [delimiter, setDelimiter] = React.useState(constants.DEFAULT_DELIMITER);
|
|
20
|
-
const actionIconProps = hooks$1.useActionIcon({
|
|
21
|
-
onClick: toggle,
|
|
22
|
-
...props
|
|
23
|
-
});
|
|
24
20
|
const onDownload = () => {
|
|
25
21
|
setLoading(true);
|
|
26
|
-
|
|
22
|
+
resetError();
|
|
23
|
+
download$1(void 0, { delimiter }).catch((error) => {
|
|
24
|
+
setError({ message: "Could not download", originalError: error });
|
|
27
25
|
}).finally(() => {
|
|
28
26
|
setLoading(false);
|
|
29
27
|
close();
|
|
@@ -46,7 +44,7 @@ const Download = React.memo(({ tooltipProps, iconProps, ...props }) => {
|
|
|
46
44
|
),
|
|
47
45
|
/* @__PURE__ */ jsxRuntime.jsx(core.Group, { justify: "end", children: /* @__PURE__ */ jsxRuntime.jsx(core.Button, { mt: "md", onClick: onDownload, loading, children: "Download" }) })
|
|
48
46
|
] }) }),
|
|
49
|
-
|
|
47
|
+
/* @__PURE__ */ jsxRuntime.jsx(BaseActionIcon.BaseActionIcon, { Icon: download, label: t("Download"), loading, onClick: toggle, ...props })
|
|
50
48
|
] });
|
|
51
49
|
});
|
|
52
50
|
Download.displayName = "Download";
|
|
@@ -2,36 +2,39 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const constants = require("fastapi-rtk/constants");
|
|
5
|
-
const hooks$1 = require("fastapi-rtk/hooks");
|
|
6
|
-
const core = require("@mantine/core");
|
|
7
5
|
const hooks = require("@mantine/hooks");
|
|
8
6
|
const React = require("react");
|
|
9
7
|
const pencil = require("../../_virtual/pencil.cjs");
|
|
10
8
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
11
9
|
const useForms = require("../../hooks/api/useForms.cjs");
|
|
12
10
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
11
|
+
const BaseActionIcon = require("../utils/BaseActionIcon.cjs");
|
|
13
12
|
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
|
-
const Edit = React.memo(({ id,
|
|
15
|
-
const { getEntry } = useApi.useApi();
|
|
13
|
+
const Edit = React.memo(({ id, ...props }) => {
|
|
14
|
+
const { getEntry, setError, resetError } = useApi.useApi();
|
|
16
15
|
const { t } = useTranslation.useTranslation();
|
|
17
16
|
const { setOpened, setItem } = useForms.useForms("edit");
|
|
18
17
|
const [loading, setLoading] = hooks.useDebouncedState(false, constants.DEBOUNCE_LOADING_DELAY);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19
|
+
BaseActionIcon.BaseActionIcon,
|
|
20
|
+
{
|
|
21
|
+
Icon: pencil,
|
|
22
|
+
label: t("Edit"),
|
|
23
|
+
size: "sm",
|
|
24
|
+
loading,
|
|
25
|
+
onClick: () => {
|
|
26
|
+
setLoading(true);
|
|
27
|
+
resetError();
|
|
28
|
+
getEntry(id).then((entry) => {
|
|
24
29
|
setItem(entry);
|
|
25
30
|
setOpened(true);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
});
|
|
34
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { label: t("Edit"), children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ...actionIconProps, children: /* @__PURE__ */ jsxRuntime.jsx(pencil, { ...iconProps }) }) }) });
|
|
31
|
+
}).catch((error) => {
|
|
32
|
+
setError({ message: "Could not fetch item with id {{id}}", data: { id }, originalError: error });
|
|
33
|
+
}).finally(() => setLoading(false));
|
|
34
|
+
},
|
|
35
|
+
...props
|
|
36
|
+
}
|
|
37
|
+
);
|
|
35
38
|
});
|
|
36
39
|
Edit.displayName = "Edit";
|
|
37
40
|
exports.Edit = Edit;
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const hooks = require("fastapi-rtk/hooks");
|
|
5
|
-
const core = require("@mantine/core");
|
|
6
4
|
const React = require("react");
|
|
7
5
|
const refresh = require("../../_virtual/refresh.cjs");
|
|
8
6
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
9
7
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
8
|
+
const BaseActionIcon = require("../utils/BaseActionIcon.cjs");
|
|
10
9
|
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");
|
|
11
|
-
const Refresh = React.memo((
|
|
10
|
+
const Refresh = React.memo((props) => {
|
|
12
11
|
const { t } = useTranslation.useTranslation();
|
|
13
12
|
const [loading, setLoading] = React.useState(false);
|
|
14
13
|
const { refetch } = useApi.useApi();
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15
|
+
BaseActionIcon.BaseActionIcon,
|
|
16
|
+
{
|
|
17
|
+
Icon: refresh,
|
|
18
|
+
label: t("Refresh"),
|
|
19
|
+
loading,
|
|
20
|
+
onClick: () => {
|
|
21
|
+
setLoading(true);
|
|
22
|
+
refetch().finally(() => setLoading(false));
|
|
23
|
+
},
|
|
24
|
+
...props
|
|
25
|
+
}
|
|
26
|
+
);
|
|
25
27
|
});
|
|
26
28
|
Refresh.displayName = "Refresh";
|
|
27
29
|
exports.Refresh = Refresh;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const constants = require("fastapi-rtk/constants");
|
|
5
|
-
const hooks$1 = require("fastapi-rtk/hooks");
|
|
6
5
|
const core = require("@mantine/core");
|
|
7
6
|
const hooks = require("@mantine/hooks");
|
|
8
7
|
const React = require("react");
|
|
@@ -11,21 +10,21 @@ const quote = require("../../_virtual/quote.cjs");
|
|
|
11
10
|
const separatorVertical = require("../../_virtual/separator-vertical.cjs");
|
|
12
11
|
const upload = require("../../_virtual/upload.cjs");
|
|
13
12
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
14
|
-
const
|
|
15
|
-
|
|
13
|
+
const BaseActionIcon = require("../utils/BaseActionIcon.cjs");
|
|
14
|
+
const Upload = React.memo((props) => {
|
|
15
|
+
const { upload: upload$1, refetch, setError, resetError } = useApi.useApi();
|
|
16
16
|
const [opened, { toggle, close }] = hooks.useDisclosure();
|
|
17
17
|
const [loading, setLoading] = hooks.useDebouncedState(false, constants.DEBOUNCE_LOADING_DELAY);
|
|
18
18
|
const [file, setFile] = React.useState();
|
|
19
19
|
const [delimiter, setDelimiter] = React.useState(constants.DEFAULT_DELIMITER);
|
|
20
20
|
const [quotechar, setQuotechar] = React.useState(constants.DEFAULT_QUOTECHAR);
|
|
21
|
-
const actionIconProps = hooks$1.useActionIcon({ onClick: toggle, ...props });
|
|
22
21
|
const onUpload = () => {
|
|
23
22
|
setLoading(true);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
resetError();
|
|
24
|
+
upload$1(file, { delimiter, quotechar }).then(() => {
|
|
25
|
+
refetch();
|
|
26
|
+
}).catch((error) => {
|
|
27
|
+
setError({ message: "Could not upload", originalError: error });
|
|
29
28
|
}).finally(() => {
|
|
30
29
|
setLoading(false);
|
|
31
30
|
close();
|
|
@@ -88,7 +87,7 @@ const Upload = React.memo(({ tooltipProps, iconProps, ...props }) => {
|
|
|
88
87
|
] })
|
|
89
88
|
}
|
|
90
89
|
),
|
|
91
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
90
|
+
/* @__PURE__ */ jsxRuntime.jsx(BaseActionIcon.BaseActionIcon, { Icon: upload, label: "Upload CSV", loading, onClick: toggle, ...props })
|
|
92
91
|
] });
|
|
93
92
|
});
|
|
94
93
|
Upload.displayName = "Upload";
|
|
@@ -2,36 +2,39 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const constants = require("fastapi-rtk/constants");
|
|
5
|
-
const hooks$1 = require("fastapi-rtk/hooks");
|
|
6
|
-
const core = require("@mantine/core");
|
|
7
5
|
const hooks = require("@mantine/hooks");
|
|
8
6
|
const React = require("react");
|
|
9
7
|
const eye = require("../../_virtual/eye.cjs");
|
|
10
8
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
11
9
|
const useForms = require("../../hooks/api/useForms.cjs");
|
|
12
10
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
11
|
+
const BaseActionIcon = require("../utils/BaseActionIcon.cjs");
|
|
13
12
|
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
|
-
const View = React.memo(({ id,
|
|
15
|
-
const { getEntry } = useApi.useApi();
|
|
13
|
+
const View = React.memo(({ id, ...props }) => {
|
|
14
|
+
const { getEntry, setError, resetError } = useApi.useApi();
|
|
16
15
|
const { t } = useTranslation.useTranslation();
|
|
17
16
|
const { setOpened, setItem } = useForms.useForms("view");
|
|
18
17
|
const [loading, setLoading] = hooks.useDebouncedState(false, constants.DEBOUNCE_LOADING_DELAY);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19
|
+
BaseActionIcon.BaseActionIcon,
|
|
20
|
+
{
|
|
21
|
+
Icon: eye,
|
|
22
|
+
label: t("View"),
|
|
23
|
+
size: "sm",
|
|
24
|
+
loading,
|
|
25
|
+
onClick: () => {
|
|
26
|
+
setLoading(true);
|
|
27
|
+
resetError();
|
|
28
|
+
getEntry(id).then((entry) => {
|
|
24
29
|
setItem(entry);
|
|
25
30
|
setOpened(true);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
});
|
|
34
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { label: t("View"), children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ...actionIconProps, children: /* @__PURE__ */ jsxRuntime.jsx(eye, { ...iconProps }) }) }) });
|
|
31
|
+
}).catch((error) => {
|
|
32
|
+
setError({ message: "Could not fetch item with id {{id}}", data: { id }, originalError: error });
|
|
33
|
+
}).finally(() => setLoading(false));
|
|
34
|
+
},
|
|
35
|
+
...props
|
|
36
|
+
}
|
|
37
|
+
);
|
|
35
38
|
});
|
|
36
39
|
View.displayName = "View";
|
|
37
40
|
exports.View = View;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 React = require("react");
|
|
7
|
+
const BaseActionIcon = React.memo(({ Icon, label, tooltipProps, iconProps, loading, ...props }) => {
|
|
8
|
+
const actionIconProps = hooks.useActionIcon(props);
|
|
9
|
+
if (loading) {
|
|
10
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core.ThemeIcon, { variant: "transparent", size: actionIconProps.size, c: actionIconProps.c, children: /* @__PURE__ */ jsxRuntime.jsx(core.Loader, { size: "100%", color: actionIconProps.c }) });
|
|
11
|
+
}
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { withinPortal: true, ...tooltipProps, label: (tooltipProps == null ? void 0 : tooltipProps.label) ?? label, children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { "aria-label": label, ...actionIconProps, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { ...iconProps }) }) });
|
|
13
|
+
});
|
|
14
|
+
BaseActionIcon.displayName = "BaseActionIcon";
|
|
15
|
+
exports.BaseActionIcon = BaseActionIcon;
|
|
@@ -7,7 +7,7 @@ const utils = require("fastapi-rtk/utils");
|
|
|
7
7
|
const core = require("@mantine/core");
|
|
8
8
|
const form = require("@mantine/form");
|
|
9
9
|
const hooks = require("@mantine/hooks");
|
|
10
|
-
const index = require("../../../.external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@
|
|
10
|
+
const index = require("../../../.external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@9.1.1_yup@1.7.1/mantine-form-yup-resolver/dist/esm/index.cjs");
|
|
11
11
|
const React = require("react");
|
|
12
12
|
const useApi = require("../hooks/api/useApi.cjs");
|
|
13
13
|
const useForms = require("../hooks/api/useForms.cjs");
|
|
@@ -28,7 +28,7 @@ function AddDialog({
|
|
|
28
28
|
...props
|
|
29
29
|
}) {
|
|
30
30
|
var _a;
|
|
31
|
-
const { info, refetch, refetchInfo, addEntry } = useApi.useApi();
|
|
31
|
+
const { info, refetch, refetchInfo, addEntry, setError, resetError } = useApi.useApi();
|
|
32
32
|
const { t } = useTranslation.useTranslation();
|
|
33
33
|
const { opened, setOpened, state, getState, setState, reset, view, setView } = useForms.useForms("add");
|
|
34
34
|
const [loading, setLoading] = hooks.useDebouncedState(false, constants.DEBOUNCE_LOADING_DELAY);
|
|
@@ -42,18 +42,20 @@ function AddDialog({
|
|
|
42
42
|
(e) => {
|
|
43
43
|
e == null ? void 0 : e.preventDefault();
|
|
44
44
|
setLoading(true);
|
|
45
|
+
resetError();
|
|
45
46
|
addEntry(getState().data).then((res) => {
|
|
46
47
|
onSuccess == null ? void 0 : onSuccess(res);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
48
|
+
refetch();
|
|
49
|
+
refetchInfo();
|
|
50
|
+
}).catch((error) => {
|
|
51
|
+
setError({ message: "Could not add item", originalError: error });
|
|
52
|
+
onError == null ? void 0 : onError(error);
|
|
53
|
+
}).finally(() => {
|
|
52
54
|
setLoading(false);
|
|
53
55
|
setOpened(false);
|
|
54
56
|
});
|
|
55
57
|
},
|
|
56
|
-
[addEntry, getState, onError, onSuccess, refetch, refetchInfo, setLoading, setOpened]
|
|
58
|
+
[addEntry, getState, onError, onSuccess, refetch, refetchInfo, resetError, setError, setLoading, setOpened]
|
|
57
59
|
);
|
|
58
60
|
const { fab } = useInfo.useInfo();
|
|
59
61
|
const form$1 = form.useForm({ initialValues: info.add.defaultValues, validate: index.yupResolver(info.add.schema) });
|
|
@@ -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.1.1_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.1.1_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) {
|