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,116 +1,45 @@
|
|
|
1
1
|
import { convertId, urlJoin } from "fastapi-rtk/utils";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
const useApiActions = ({
|
|
4
|
-
api,
|
|
5
|
-
path,
|
|
6
|
-
pathRef,
|
|
7
|
-
infoRef,
|
|
8
|
-
queryParamsRef,
|
|
9
|
-
currentLanguage,
|
|
10
|
-
resetError,
|
|
11
|
-
setError,
|
|
12
|
-
throwOnError
|
|
13
|
-
}) => {
|
|
3
|
+
const useApiActions = ({ api, path, pathRef, infoRef, queryParamsRef, currentLanguage }) => {
|
|
14
4
|
const getEntry = useCallback(
|
|
15
|
-
async (id) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
headers: { "Accept-Language": currentLanguage }
|
|
20
|
-
});
|
|
21
|
-
return response;
|
|
22
|
-
} catch (error) {
|
|
23
|
-
setError({ message: "Could not fetch item with id {{id}}", data: { id }, originalError: error });
|
|
24
|
-
if (throwOnError) {
|
|
25
|
-
throw error;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
[api, currentLanguage, pathRef, resetError, setError, throwOnError]
|
|
5
|
+
async (id) => api.getItem(pathRef.current, convertId(id), {
|
|
6
|
+
headers: { "Accept-Language": currentLanguage }
|
|
7
|
+
}),
|
|
8
|
+
[api, currentLanguage, pathRef]
|
|
30
9
|
);
|
|
31
10
|
const addEntry = useCallback(
|
|
32
11
|
async (item) => {
|
|
33
12
|
var _a;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
headers: { "Accept-Language": currentLanguage }
|
|
39
|
-
});
|
|
40
|
-
return response;
|
|
41
|
-
} catch (error) {
|
|
42
|
-
setError({ message: `Could not add item`, originalError: error });
|
|
43
|
-
if (throwOnError) {
|
|
44
|
-
throw error;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
13
|
+
const func = ((_a = infoRef.current) == null ? void 0 : _a.add_type) === "form" ? api.formCreateItem : api.createItem;
|
|
14
|
+
return func(pathRef.current, item, {
|
|
15
|
+
headers: { "Accept-Language": currentLanguage }
|
|
16
|
+
});
|
|
47
17
|
},
|
|
48
|
-
[api.createItem, api.formCreateItem, currentLanguage, infoRef, pathRef
|
|
18
|
+
[api.createItem, api.formCreateItem, currentLanguage, infoRef, pathRef]
|
|
49
19
|
);
|
|
50
20
|
const updateEntry = useCallback(
|
|
51
21
|
async (id, item) => {
|
|
52
22
|
var _a;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
headers: { "Accept-Language": currentLanguage }
|
|
58
|
-
});
|
|
59
|
-
return response;
|
|
60
|
-
} catch (error) {
|
|
61
|
-
setError({ message: "Could not update item with id {{id}}", data: { id }, originalError: error });
|
|
62
|
-
if (throwOnError) {
|
|
63
|
-
throw error;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
23
|
+
const func = ((_a = infoRef.current) == null ? void 0 : _a.edit_type) === "form" ? api.formUpdateItem : api.updateItem;
|
|
24
|
+
return func(pathRef.current, convertId(id), item, {
|
|
25
|
+
headers: { "Accept-Language": currentLanguage }
|
|
26
|
+
});
|
|
66
27
|
},
|
|
67
|
-
[api.formUpdateItem, api.updateItem, currentLanguage, infoRef, pathRef
|
|
28
|
+
[api.formUpdateItem, api.updateItem, currentLanguage, infoRef, pathRef]
|
|
68
29
|
);
|
|
69
30
|
const deleteEntry = useCallback(
|
|
70
|
-
async (id) => {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
headers: { "Accept-Language": currentLanguage }
|
|
75
|
-
});
|
|
76
|
-
return response;
|
|
77
|
-
} catch (error) {
|
|
78
|
-
setError({ message: "Could not delete item with id {{id}}", data: { id }, originalError: error });
|
|
79
|
-
if (throwOnError) {
|
|
80
|
-
throw error;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
[api, currentLanguage, pathRef, resetError, setError, throwOnError]
|
|
31
|
+
async (id) => api.deleteItem(pathRef.current, convertId(id), {
|
|
32
|
+
headers: { "Accept-Language": currentLanguage }
|
|
33
|
+
}),
|
|
34
|
+
[api, currentLanguage, pathRef]
|
|
85
35
|
);
|
|
86
36
|
const download = useCallback(
|
|
87
|
-
async (label, { export_mode, delimiter, quotechar } = {}) => {
|
|
88
|
-
|
|
89
|
-
resetError();
|
|
90
|
-
await api.downloadItems(pathRef.current, queryParamsRef.current, { label, export_mode, delimiter, quotechar });
|
|
91
|
-
} catch (error) {
|
|
92
|
-
setError({ message: `Could not download`, originalError: error });
|
|
93
|
-
if (throwOnError) {
|
|
94
|
-
throw error;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
[api, pathRef, queryParamsRef, resetError, setError, throwOnError]
|
|
37
|
+
async (label, { export_mode, delimiter, quotechar } = {}) => api.downloadItems(pathRef.current, queryParamsRef.current, { label, export_mode, delimiter, quotechar }),
|
|
38
|
+
[api, pathRef, queryParamsRef]
|
|
99
39
|
);
|
|
100
40
|
const upload = useCallback(
|
|
101
|
-
async (file, { delimiter, quotechar } = {}) => {
|
|
102
|
-
|
|
103
|
-
resetError();
|
|
104
|
-
const response = await api.uploadItems(pathRef.current, file, { delimiter, quotechar });
|
|
105
|
-
return response;
|
|
106
|
-
} catch (error) {
|
|
107
|
-
setError({ message: `Could not upload`, originalError: error });
|
|
108
|
-
if (throwOnError) {
|
|
109
|
-
throw error;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
[api, pathRef, resetError, setError, throwOnError]
|
|
41
|
+
async (file, { delimiter, quotechar } = {}) => api.uploadItems(pathRef.current, file, { delimiter, quotechar }),
|
|
42
|
+
[api, pathRef]
|
|
114
43
|
);
|
|
115
44
|
const getItemURL = useCallback(
|
|
116
45
|
(type, item) => typeof item === "string" ? urlJoin(path, `_${type}`, item) : URL.createObjectURL(item),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared base for every fastapi-rtk ActionIcon. Funnels Tooltip + ActionIcon +
|
|
3
|
+
* inner icon through a single component so the Mantine theme entry
|
|
4
|
+
* `theme.components.ActionIcon.defaultProps` and `iconProps` reach every icon
|
|
5
|
+
* uniformly.
|
|
6
|
+
*
|
|
7
|
+
* When `loading` is true, swaps to ThemeIcon + Loader sized to the inner icon
|
|
8
|
+
* (matching the legacy Refresh/Download behavior) rather than ActionIcon's
|
|
9
|
+
* native `loading` slot, which would size the loader to the ActionIcon.
|
|
10
|
+
*
|
|
11
|
+
* @param {Object} props
|
|
12
|
+
* @param {React.ComponentType<any>} props.Icon - Icon component rendered inside the ActionIcon.
|
|
13
|
+
* @param {string} [props.label] - Tooltip label + aria label.
|
|
14
|
+
* @param {Object} [props.tooltipProps] - Forwarded to Mantine Tooltip; `tooltipProps.label` wins over `label`.
|
|
15
|
+
* @param {Object} [props.iconProps] - Forwarded to the rendered Icon.
|
|
16
|
+
* @param {boolean} [props.loading] - Render the icon-sized loader instead of the icon.
|
|
17
|
+
*/
|
|
18
|
+
export const BaseActionIcon: import('react').NamedExoticComponent<object>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export const ToggleGlobalFilterButton: import('react').NamedExoticComponent<object>;
|
|
2
|
+
export const ToggleFiltersButton: import('react').NamedExoticComponent<object>;
|
|
3
|
+
export const ToggleDensePaddingButton: import('react').NamedExoticComponent<object>;
|
|
4
|
+
export const ToggleFullScreenButton: import('react').NamedExoticComponent<object>;
|
|
5
|
+
export const ShowHideColumnsButton: import('react').NamedExoticComponent<object>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* @property {Record<string, any>} [infoQueryProps] - The react-query props for the info query
|
|
13
13
|
* @property {Record<string, any>} [dataQueryProps] - The react-query props for the data query
|
|
14
14
|
* @property {Record<string, any>} [streamingQueryProps] - The react-query props for the streaming (infinite) query
|
|
15
|
-
* @property {boolean} [throwOnError] - Whether to throw an error on API request failure
|
|
16
15
|
* @property {boolean} [streaming] - Whether to enable streaming for the API requests
|
|
17
16
|
* @property {ReactNode} children - The children to be rendered inside the provider
|
|
18
17
|
*/
|
|
@@ -21,7 +20,7 @@
|
|
|
21
20
|
* @param {ApiProviderProps} props
|
|
22
21
|
* @returns {React.ReactNode}
|
|
23
22
|
*/
|
|
24
|
-
export function ApiProvider({ resource_name, initialQueryParams, relation, fetchInfo, clearInfoOnRefetch, clearDataOnRefetch, refetchInfoBasedOnLang, refetchDataBasedOnLang, resetQueryParamsOnPathChange, infoQueryProps, dataQueryProps, streamingQueryProps,
|
|
23
|
+
export function ApiProvider({ resource_name, initialQueryParams, relation, fetchInfo, clearInfoOnRefetch, clearDataOnRefetch, refetchInfoBasedOnLang, refetchDataBasedOnLang, resetQueryParamsOnPathChange, infoQueryProps, dataQueryProps, streamingQueryProps, streaming, children, }: ApiProviderProps): React.ReactNode;
|
|
25
24
|
export function withApiProvider(apiProviderProps: ApiProviderProps | ((props: any) => ApiProviderProps), Component: React.ComponentType, options?: {
|
|
26
25
|
displayName?: string;
|
|
27
26
|
forwardRef?: boolean;
|
|
@@ -75,10 +74,6 @@ export type ApiProviderProps = {
|
|
|
75
74
|
* - The react-query props for the streaming (infinite) query
|
|
76
75
|
*/
|
|
77
76
|
streamingQueryProps?: Record<string, any>;
|
|
78
|
-
/**
|
|
79
|
-
* - Whether to throw an error on API request failure
|
|
80
|
-
*/
|
|
81
|
-
throwOnError?: boolean;
|
|
82
77
|
/**
|
|
83
78
|
* - Whether to enable streaming for the API requests
|
|
84
79
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function useProvideApi({ path, initialQueryParams, relation, fetchInfo, clearInfoOnRefetch, clearDataOnRefetch, refetchInfoBasedOnLang, refetchDataBasedOnLang, resetQueryParamsOnPathChange, infoQueryProps, dataQueryProps, streamingQueryProps,
|
|
1
|
+
export function useProvideApi({ path, initialQueryParams, relation, fetchInfo, clearInfoOnRefetch, clearDataOnRefetch, refetchInfoBasedOnLang, refetchDataBasedOnLang, resetQueryParamsOnPathChange, infoQueryProps, dataQueryProps, streamingQueryProps, streaming: streamingMode, }: {
|
|
2
2
|
path: any;
|
|
3
3
|
initialQueryParams: any;
|
|
4
4
|
relation: any;
|
|
@@ -11,7 +11,6 @@ export function useProvideApi({ path, initialQueryParams, relation, fetchInfo, c
|
|
|
11
11
|
infoQueryProps: any;
|
|
12
12
|
dataQueryProps: any;
|
|
13
13
|
streamingQueryProps: any;
|
|
14
|
-
throwOnError?: boolean;
|
|
15
14
|
streaming?: boolean;
|
|
16
15
|
}, api?: {
|
|
17
16
|
getItem: (path: any, id: any, options: any) => Promise<string | Record<string, any>>;
|
|
@@ -64,9 +63,10 @@ export function useProvideApi({ path, initialQueryParams, relation, fetchInfo, c
|
|
|
64
63
|
addEntry: (item: any) => Promise<any>;
|
|
65
64
|
updateEntry: (id: any, item: any) => Promise<any>;
|
|
66
65
|
deleteEntry: (id: any) => Promise<any>;
|
|
67
|
-
download: (label: any, { export_mode, delimiter, quotechar }?: {}) => Promise<
|
|
66
|
+
download: (label: any, { export_mode, delimiter, quotechar }?: {}) => Promise<any>;
|
|
68
67
|
upload: (file: any, { delimiter, quotechar }?: {}) => Promise<any>;
|
|
69
68
|
getFileURL: (item: any) => string;
|
|
70
69
|
getImageURL: (item: any) => string;
|
|
70
|
+
setError: import('react').Dispatch<(prevState: undefined) => undefined>;
|
|
71
71
|
resetError: () => void;
|
|
72
72
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
export function useApiActions({ api, path, pathRef, infoRef, queryParamsRef, currentLanguage
|
|
1
|
+
export function useApiActions({ api, path, pathRef, infoRef, queryParamsRef, currentLanguage }: {
|
|
2
2
|
api: any;
|
|
3
3
|
path: any;
|
|
4
4
|
pathRef: any;
|
|
5
5
|
infoRef: any;
|
|
6
6
|
queryParamsRef: any;
|
|
7
7
|
currentLanguage: any;
|
|
8
|
-
resetError: any;
|
|
9
|
-
setError: any;
|
|
10
|
-
throwOnError: any;
|
|
11
8
|
}): {
|
|
12
9
|
getEntry: (id: any) => Promise<any>;
|
|
13
10
|
addEntry: (item: any) => Promise<any>;
|
|
14
11
|
updateEntry: (id: any, item: any) => Promise<any>;
|
|
15
12
|
deleteEntry: (id: any) => Promise<any>;
|
|
16
|
-
download: (label: any, { export_mode, delimiter, quotechar }?: {}) => Promise<
|
|
13
|
+
download: (label: any, { export_mode, delimiter, quotechar }?: {}) => Promise<any>;
|
|
17
14
|
upload: (file: any, { delimiter, quotechar }?: {}) => Promise<any>;
|
|
18
15
|
getItemURL: (type: any, item: any) => string;
|
|
19
16
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -484,6 +484,14 @@ export type ApiContext = {
|
|
|
484
484
|
* - A function to get the URL for an image item, which can be either a string (representing the image name) or a File object.
|
|
485
485
|
*/
|
|
486
486
|
getImageURL: (item: string | File) => string;
|
|
487
|
+
/**
|
|
488
|
+
* - A function to set the error state. Useful when handling errors thrown by the action functions (`addEntry`, `updateEntry`, ...) and surfacing them through the shared `ErrorDialog`.
|
|
489
|
+
*/
|
|
490
|
+
setError: (error: {
|
|
491
|
+
message: string;
|
|
492
|
+
originalError: Error;
|
|
493
|
+
data?: Record<string, any>;
|
|
494
|
+
} | undefined) => void;
|
|
487
495
|
/**
|
|
488
496
|
* - A function to reset the error state.
|
|
489
497
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function uiWrap(ctx?: {
|
|
2
|
+
api?: object;
|
|
3
|
+
formAdd?: object;
|
|
4
|
+
formEdit?: object;
|
|
5
|
+
formView?: object;
|
|
6
|
+
formDelete?: object;
|
|
7
|
+
bulk?: object;
|
|
8
|
+
auth?: object;
|
|
9
|
+
info?: object;
|
|
10
|
+
}): ({ children }: {
|
|
11
|
+
children: any;
|
|
12
|
+
}) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -11,7 +11,7 @@ const InnerMantineFileInput = ({ contextName, componentName, children, ...props
|
|
|
11
11
|
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
12
12
|
const { path, schema, errors } = props;
|
|
13
13
|
const accept = React.useMemo(
|
|
14
|
-
() => (/* @__PURE__ */ new Set([...schema.contentMediaType ?? [], ...schema["x-file-types"] ?? []])).
|
|
14
|
+
() => Array.from(/* @__PURE__ */ new Set([...schema.contentMediaType ?? [], ...schema["x-file-types"] ?? []])).join(","),
|
|
15
15
|
[schema.contentMediaType, schema["x-file-types"]]
|
|
16
16
|
);
|
|
17
17
|
const fileProps = useFileProps.useFileProps({ value, onChange: commonProps.onChange, accept, errors });
|
|
@@ -66,7 +66,7 @@ const getValidColumnProps = (scopedSchema) => {
|
|
|
66
66
|
}
|
|
67
67
|
return [""];
|
|
68
68
|
};
|
|
69
|
-
const EmptyTable = ({ numColumns, translations }) => /* @__PURE__ */ jsxRuntime.jsx(core.Table.Tr, { children: /* @__PURE__ */ jsxRuntime.jsx(NoBorderTableCell.NoBorderTableCell, { colSpan: numColumns, children: /* @__PURE__ */ jsxRuntime.jsx(core.Text, {
|
|
69
|
+
const EmptyTable = ({ numColumns, translations }) => /* @__PURE__ */ jsxRuntime.jsx(core.Table.Tr, { children: /* @__PURE__ */ jsxRuntime.jsx(NoBorderTableCell.NoBorderTableCell, { colSpan: numColumns, children: /* @__PURE__ */ jsxRuntime.jsx(core.Text, { ta: "center", children: translations.noDataMessage }) }) });
|
|
70
70
|
const TableHeaderCell = React.memo(function TableHeaderCell2(props) {
|
|
71
71
|
const { title, rowPath, propName, index } = props;
|
|
72
72
|
const [Component, _props] = useContextProps.useContextProps(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const
|
|
4
|
+
const useContextProps = require("./useContextProps.cjs");
|
|
5
5
|
const core = require("@mantine/core");
|
|
6
6
|
const React = require("react");
|
|
7
7
|
const arrowDown = require("../_virtual/arrow-down.cjs");
|
|
@@ -11,7 +11,7 @@ const useNavigationComponent = ({ componentName, componentIdentifier, onUp, onDo
|
|
|
11
11
|
const { childPath, showSortButtons, enableUp, enableDown, disableRemove, translations } = props;
|
|
12
12
|
const defaultProps = { variant: "transparent", size: "sm", mt: "0.35rem" };
|
|
13
13
|
const iconProps = core.useProps("ActionIcon", defaultProps, {});
|
|
14
|
-
const [ComponentUp, _up_props] =
|
|
14
|
+
const [ComponentUp, _up_props] = useContextProps.useContextProps(
|
|
15
15
|
`${componentName}.${componentIdentifier}.Up`,
|
|
16
16
|
`${childPath}.${componentIdentifier}.Up`,
|
|
17
17
|
{
|
|
@@ -24,7 +24,7 @@ const useNavigationComponent = ({ componentName, componentIdentifier, onUp, onDo
|
|
|
24
24
|
props,
|
|
25
25
|
{ withAllProps: false }
|
|
26
26
|
);
|
|
27
|
-
const [ComponentDown, _down_props] =
|
|
27
|
+
const [ComponentDown, _down_props] = useContextProps.useContextProps(
|
|
28
28
|
`${componentName}.${componentIdentifier}.Down`,
|
|
29
29
|
`${childPath}.${componentIdentifier}.Down`,
|
|
30
30
|
{
|
|
@@ -37,7 +37,7 @@ const useNavigationComponent = ({ componentName, componentIdentifier, onUp, onDo
|
|
|
37
37
|
props,
|
|
38
38
|
{ withAllProps: false }
|
|
39
39
|
);
|
|
40
|
-
const [ComponentRemove, _remove_props] =
|
|
40
|
+
const [ComponentRemove, _remove_props] = useContextProps.useContextProps(
|
|
41
41
|
`${componentName}.${componentIdentifier}.Remove`,
|
|
42
42
|
`${childPath}.${componentIdentifier}.Remove`,
|
|
43
43
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const
|
|
4
|
+
const useContextProps = require("./useContextProps.cjs");
|
|
5
5
|
const core = require("@mantine/core");
|
|
6
6
|
const exclamationCircle = require("../_virtual/exclamation-circle.cjs");
|
|
7
7
|
const plus = require("../_virtual/plus.cjs");
|
|
@@ -33,21 +33,21 @@ const useToolbarComponent = ({ componentName, componentIdentifier, onAdd, ...pro
|
|
|
33
33
|
const { errors, label, description, path, translations } = props;
|
|
34
34
|
const defaultProps = { variant: "transparent", size: "sm", mt: "0.35rem" };
|
|
35
35
|
const iconProps = core.useProps("ActionIcon", defaultProps, {});
|
|
36
|
-
const [ComponentLabel, _label_props] =
|
|
36
|
+
const [ComponentLabel, _label_props] = useContextProps.useContextProps(
|
|
37
37
|
`${componentName}.${componentIdentifier}.Label`,
|
|
38
38
|
`${path}.${componentIdentifier}.Label`,
|
|
39
39
|
{ value: label },
|
|
40
40
|
props,
|
|
41
41
|
{ withAllProps: false }
|
|
42
42
|
);
|
|
43
|
-
const [ComponentDescription, _description_props] =
|
|
43
|
+
const [ComponentDescription, _description_props] = useContextProps.useContextProps(
|
|
44
44
|
`${componentName}.${componentIdentifier}.Description`,
|
|
45
45
|
`${path}.${componentIdentifier}.Description`,
|
|
46
46
|
{ value: description },
|
|
47
47
|
props,
|
|
48
48
|
{ withAllProps: false }
|
|
49
49
|
);
|
|
50
|
-
const [ComponentValidation, _validation_props] =
|
|
50
|
+
const [ComponentValidation, _validation_props] = useContextProps.useContextProps(
|
|
51
51
|
`${componentName}.${componentIdentifier}.Validation`,
|
|
52
52
|
`${path}.${componentIdentifier}.Validation`,
|
|
53
53
|
{
|
|
@@ -57,7 +57,7 @@ const useToolbarComponent = ({ componentName, componentIdentifier, onAdd, ...pro
|
|
|
57
57
|
props,
|
|
58
58
|
{ withAllProps: false }
|
|
59
59
|
);
|
|
60
|
-
const [ComponentAdd, _add_props] =
|
|
60
|
+
const [ComponentAdd, _add_props] = useContextProps.useContextProps(
|
|
61
61
|
`${componentName}.${componentIdentifier}.Add`,
|
|
62
62
|
`${path}.${componentIdentifier}.Add`,
|
|
63
63
|
{
|