fastapi-rtk 0.2.39 → 0.2.41
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/index.cjs +2 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/Contexts/LayoutPaddingContext.cjs +8 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +6 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineBooleanInput.cjs +13 -5
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineDateInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineDateTimeInput.cjs +7 -7
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineEnumArrayInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineEnumInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineJsonInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineNumberInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineOneOfEnumInput.cjs +5 -5
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineTextInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineTimeInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useBooleanProps.cjs +4 -4
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useCommonProps.cjs +20 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useDateProps.cjs +5 -5
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useFileProps.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useJsonProps.cjs +9 -9
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useMultiSelectProps.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useNumberProps.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useSelectProps.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useTextProps.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useTimeProps.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/MantineCategorizationLayoutRenderer.cjs +74 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationCards.cjs +86 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationStepper.cjs +124 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationTabs.cjs +93 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/renderers/mantineRenderers.cjs +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/layout.cjs +5 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/withAjvProps.cjs +11 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/withDebounce.cjs +12 -0
- package/dist/.bundled/jsonforms/esm/index.mjs +3 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/Contexts/LayoutPaddingContext.mjs +8 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/JsonFormsWithCustomizer/JsonFormsWithCustomizer.mjs +6 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineBooleanInput.mjs +13 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineDateInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineDateTimeInput.mjs +7 -7
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineEnumArrayInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineEnumInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineJsonInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineNumberInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineOneOfEnumInput.mjs +5 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineTextInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineTimeInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useBooleanProps.mjs +4 -4
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useCommonProps.mjs +20 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useDateProps.mjs +5 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useFileProps.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useJsonProps.mjs +9 -9
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useMultiSelectProps.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useNumberProps.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useSelectProps.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useTextProps.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useTimeProps.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/MantineCategorizationLayoutRenderer.mjs +74 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationCards.mjs +86 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationStepper.mjs +124 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationTabs.mjs +93 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/renderers/mantineRenderers.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/layout.mjs +5 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/withAjvProps.mjs +11 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/withDebounce.mjs +12 -0
- package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.cjs +2 -2
- package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.cjs +1 -1
- package/dist/.external/esm/@jsonforms_react@3.6.0_@jsonforms_core@3.6.0_react@18.3.1/@jsonforms/react/lib/jsonforms-react.esm.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.mjs +2 -2
- package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.mjs +1 -1
- package/dist/constants/cjs/index.cjs +3 -1
- package/dist/constants/esm/index.mjs +3 -1
- package/dist/constants/lib/index.d.ts +2 -1
- package/dist/core/cjs/Dialogs/AddDialog.cjs +1 -1
- package/dist/core/cjs/Dialogs/DeleteDialog.cjs +4 -4
- package/dist/core/cjs/Dialogs/EditDialog.cjs +1 -1
- package/dist/core/cjs/Tables/DataGrid/ErrorDialog.cjs +5 -2
- package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +1 -1
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +10 -10
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideBulk.cjs +1 -1
- package/dist/core/cjs/Wrappers/Provider/Contexts/LangContext.cjs +12 -7
- package/dist/core/cjs/Wrappers/Provider/Provider.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideAuth.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideInfo.cjs +1 -1
- package/dist/core/cjs/Wrappers/Provider/utils/authFetch.cjs +2 -2
- package/dist/core/cjs/fab-react-toolkit-patch/auth/utils/authFetch.cjs +2 -2
- package/dist/core/cjs/translations/de.cjs +25 -3
- package/dist/core/esm/Dialogs/AddDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/DeleteDialog.mjs +4 -4
- package/dist/core/esm/Dialogs/EditDialog.mjs +1 -1
- package/dist/core/esm/Tables/DataGrid/ErrorDialog.mjs +5 -2
- package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +1 -1
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +10 -10
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideBulk.mjs +1 -1
- package/dist/core/esm/Wrappers/Provider/Contexts/LangContext.mjs +12 -7
- package/dist/core/esm/Wrappers/Provider/Provider.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +1 -1
- package/dist/core/esm/Wrappers/Provider/utils/authFetch.mjs +2 -2
- package/dist/core/esm/fab-react-toolkit-patch/auth/utils/authFetch.mjs +2 -2
- package/dist/core/esm/translations/de.mjs +25 -3
- package/dist/core/lib/Dialogs/DeleteDialog.d.ts +5 -1
- package/dist/core/lib/Wrappers/Provider/Provider.d.ts +4 -0
- package/dist/core/lib/translations/de.d.ts +20 -0
- package/dist/jsonforms/cjs/Contexts/LayoutPaddingContext.cjs +8 -0
- package/dist/jsonforms/cjs/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +6 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineBooleanInput.cjs +13 -5
- package/dist/jsonforms/cjs/MantineInputs/MantineDateInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineDateTimeInput.cjs +7 -7
- package/dist/jsonforms/cjs/MantineInputs/MantineEnumArrayInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineEnumInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineFileInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineJsonInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineNumberInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineOneOfEnumInput.cjs +5 -5
- package/dist/jsonforms/cjs/MantineInputs/MantineTextInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineTimeInput.cjs +3 -3
- package/dist/jsonforms/cjs/hooks/useBooleanProps.cjs +4 -4
- package/dist/jsonforms/cjs/hooks/useCommonProps.cjs +20 -1
- package/dist/jsonforms/cjs/hooks/useDateProps.cjs +5 -5
- package/dist/jsonforms/cjs/hooks/useFileProps.cjs +2 -2
- package/dist/jsonforms/cjs/hooks/useJsonProps.cjs +9 -9
- package/dist/jsonforms/cjs/hooks/useMultiSelectProps.cjs +3 -3
- package/dist/jsonforms/cjs/hooks/useNumberProps.cjs +3 -3
- package/dist/jsonforms/cjs/hooks/useSelectProps.cjs +2 -2
- package/dist/jsonforms/cjs/hooks/useTextProps.cjs +2 -2
- package/dist/jsonforms/cjs/hooks/useTimeProps.cjs +2 -2
- package/dist/jsonforms/cjs/index.cjs +2 -0
- package/dist/jsonforms/cjs/layouts/Categorization/MantineCategorizationLayoutRenderer.cjs +74 -0
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationCards.cjs +86 -0
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationStepper.cjs +124 -0
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationTabs.cjs +93 -0
- package/dist/jsonforms/cjs/renderers/mantineRenderers.cjs +1 -1
- package/dist/jsonforms/cjs/utils/layout.cjs +5 -3
- package/dist/jsonforms/cjs/utils/withAjvProps.cjs +11 -0
- package/dist/jsonforms/cjs/utils/withDebounce.cjs +12 -0
- package/dist/jsonforms/esm/Contexts/LayoutPaddingContext.mjs +8 -0
- package/dist/jsonforms/esm/JsonFormsWithCustomizer/JsonFormsWithCustomizer.mjs +6 -3
- package/dist/jsonforms/esm/MantineInputs/MantineBooleanInput.mjs +13 -5
- package/dist/jsonforms/esm/MantineInputs/MantineDateInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineDateTimeInput.mjs +7 -7
- package/dist/jsonforms/esm/MantineInputs/MantineEnumArrayInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineEnumInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineFileInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineJsonInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineNumberInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineOneOfEnumInput.mjs +5 -5
- package/dist/jsonforms/esm/MantineInputs/MantineTextInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineTimeInput.mjs +3 -3
- package/dist/jsonforms/esm/hooks/useBooleanProps.mjs +4 -4
- package/dist/jsonforms/esm/hooks/useCommonProps.mjs +20 -1
- package/dist/jsonforms/esm/hooks/useDateProps.mjs +5 -5
- package/dist/jsonforms/esm/hooks/useFileProps.mjs +2 -2
- package/dist/jsonforms/esm/hooks/useJsonProps.mjs +9 -9
- package/dist/jsonforms/esm/hooks/useMultiSelectProps.mjs +3 -3
- package/dist/jsonforms/esm/hooks/useNumberProps.mjs +3 -3
- package/dist/jsonforms/esm/hooks/useSelectProps.mjs +2 -2
- package/dist/jsonforms/esm/hooks/useTextProps.mjs +2 -2
- package/dist/jsonforms/esm/hooks/useTimeProps.mjs +2 -2
- package/dist/jsonforms/esm/index.mjs +3 -1
- package/dist/jsonforms/esm/layouts/Categorization/MantineCategorizationLayoutRenderer.mjs +74 -0
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationCards.mjs +86 -0
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationStepper.mjs +124 -0
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationTabs.mjs +93 -0
- package/dist/jsonforms/esm/renderers/mantineRenderers.mjs +1 -1
- package/dist/jsonforms/esm/utils/layout.mjs +5 -3
- package/dist/jsonforms/esm/utils/withAjvProps.mjs +11 -0
- package/dist/jsonforms/esm/utils/withDebounce.mjs +12 -0
- package/dist/jsonforms/lib/Contexts/LayoutPaddingContext.d.ts +5 -0
- package/dist/jsonforms/lib/JsonFormsWithCustomizer/JsonFormsWithCustomizer.d.ts +14 -0
- package/dist/jsonforms/lib/hooks/useBooleanProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useCommonProps.d.ts +5 -1
- package/dist/jsonforms/lib/hooks/useDateProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useFileProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useJsonProps.d.ts +5 -5
- package/dist/jsonforms/lib/hooks/useMultiSelectProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useNumberProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useSelectProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useTextProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useTimeProps.d.ts +3 -3
- package/dist/jsonforms/lib/index.d.ts +1 -0
- package/dist/jsonforms/lib/layouts/{MantineCategorizationLayoutRenderer.d.ts → Categorization/MantineCategorizationLayoutRenderer.d.ts} +1 -1
- package/dist/jsonforms/lib/layouts/Categorization/variants/CategorizationCards.d.ts +10 -0
- package/dist/jsonforms/lib/layouts/Categorization/variants/CategorizationStepper.d.ts +11 -0
- package/dist/jsonforms/lib/layouts/Categorization/variants/CategorizationTabs.d.ts +10 -0
- package/dist/jsonforms/lib/renderers/mantineRenderers.d.ts +12 -3
- package/dist/jsonforms/lib/utils/withAjvProps.d.ts +1 -0
- package/dist/jsonforms/lib/utils/withDebounce.d.ts +1 -0
- package/package.json +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineCategorizationLayoutRenderer.cjs +0 -63
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineCategorizationLayoutRenderer.mjs +0 -63
- package/dist/jsonforms/cjs/layouts/MantineCategorizationLayoutRenderer.cjs +0 -63
- package/dist/jsonforms/esm/layouts/MantineCategorizationLayoutRenderer.mjs +0 -63
- package/dist/jsonforms/lib/utils/debounce.d.ts +0 -1
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/focusManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutation.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutationCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/notifyManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/onlineManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/query.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryClient.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryObserver.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/removable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/retryer.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/subscribable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/thenable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/timeoutManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/utils.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/suspense.cjs +0 -0
- /package/dist/.external/cjs/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.8_yup@1.7.0 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.1_yup@1.7.0}/mantine-form-yup-resolver/dist/esm/index.cjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/focusManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutation.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutationCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/notifyManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/onlineManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/query.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryClient.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryObserver.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/removable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/retryer.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/subscribable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/thenable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/timeoutManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/utils.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/suspense.mjs +0 -0
- /package/dist/.external/esm/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.8_yup@1.7.0 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.1_yup@1.7.0}/mantine-form-yup-resolver/dist/esm/index.mjs +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.87.
|
|
1
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.87.4_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { authInfo } from "../utils/authFetch.mjs";
|
|
4
4
|
const defaultInfo = { getInfo: authInfo };
|
|
@@ -40,7 +40,7 @@ async function authResetPassword(baseUrl, newPassword, { email }) {
|
|
|
40
40
|
});
|
|
41
41
|
const forgotPasswordRes = await fetch(fetchPath, options);
|
|
42
42
|
if (!forgotPasswordRes.ok) {
|
|
43
|
-
throw new Error("
|
|
43
|
+
throw new Error("Could not request token to reset password");
|
|
44
44
|
}
|
|
45
45
|
const jsonResponse = await forgotPasswordRes.json();
|
|
46
46
|
const { token } = jsonResponse;
|
|
@@ -51,7 +51,7 @@ async function authResetPassword(baseUrl, newPassword, { email }) {
|
|
|
51
51
|
});
|
|
52
52
|
const resetPasswordRes = await fetch(fetchPath2, options2);
|
|
53
53
|
if (!resetPasswordRes.ok) {
|
|
54
|
-
throw new Error("
|
|
54
|
+
throw new Error("Could not reset password");
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
function authOAuthSignin(baseUrl, provider, popup, afterSigninPopup) {
|
|
@@ -32,7 +32,7 @@ async function authResetPassword(baseUrl, newPassword, { email }) {
|
|
|
32
32
|
});
|
|
33
33
|
const forgotPasswordRes = await fetch(fetchPath, options);
|
|
34
34
|
if (!forgotPasswordRes.ok) {
|
|
35
|
-
throw new Error("
|
|
35
|
+
throw new Error("Could not request token to reset password");
|
|
36
36
|
}
|
|
37
37
|
const jsonResponse = await forgotPasswordRes.json();
|
|
38
38
|
const { token } = jsonResponse;
|
|
@@ -43,7 +43,7 @@ async function authResetPassword(baseUrl, newPassword, { email }) {
|
|
|
43
43
|
});
|
|
44
44
|
const resetPasswordRes = await fetch(fetchPath2, options2);
|
|
45
45
|
if (!resetPasswordRes.ok) {
|
|
46
|
-
throw new Error("
|
|
46
|
+
throw new Error("Could not reset password");
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
function authOAuthSignin(baseUrl, provider, popup, afterSigninPopup) {
|
|
@@ -2,9 +2,10 @@ const de = {
|
|
|
2
2
|
// Actions
|
|
3
3
|
View: "Ansehen",
|
|
4
4
|
Add: "Hinzufügen",
|
|
5
|
-
"Add Item": "
|
|
5
|
+
"Add Item": "Item hinzufügen",
|
|
6
6
|
Edit: "Bearbeiten",
|
|
7
7
|
Delete: "Löschen",
|
|
8
|
+
"Delete Item?": "Item löschen?",
|
|
8
9
|
Refresh: "Aktualisieren",
|
|
9
10
|
Download: "Herunterladen",
|
|
10
11
|
Cancel: "Abbrechen",
|
|
@@ -12,10 +13,31 @@ const de = {
|
|
|
12
13
|
"Exit overlay": "Overlay verlassen",
|
|
13
14
|
"Full screen": "Vollbild",
|
|
14
15
|
"Exit full screen": "Vollbild verlassen",
|
|
15
|
-
// Dialogs
|
|
16
|
+
// Dialogs
|
|
16
17
|
"Are you sure you want to delete this item?": "Sind Sie Sicher, dass Sie das Item löschen wollen?",
|
|
17
18
|
"No filters": "Keine Filter",
|
|
18
|
-
"Advanced Filters": "Erweiterte Filter"
|
|
19
|
+
"Advanced Filters": "Erweiterte Filter",
|
|
20
|
+
// Error titles
|
|
21
|
+
Error: "Fehler",
|
|
22
|
+
"Could not fetch info": "Informationen konnten nicht abgerufen werden",
|
|
23
|
+
"Could not fetch list": "Liste konnte nicht abgerufen werden",
|
|
24
|
+
"Could not fetch item with id {{id}}": "Item mit der ID {{id}} konnte nicht abgerufen werden",
|
|
25
|
+
"Could not add item": "Item konnte nicht hinzugefügt werden",
|
|
26
|
+
"Could not update item with id {{id}}": "Item mit der ID {{id}} konnte nicht aktualisiert werden",
|
|
27
|
+
"Could not delete item with id {{id}}": "Item mit der ID {{id}} konnte nicht gelöscht werden",
|
|
28
|
+
"Could not download": "Download konnte nicht durchgeführt werden",
|
|
29
|
+
"Could not upload": "Upload konnte nicht durchgeführt werden",
|
|
30
|
+
"Could not perform bulk action": "Massenaktion konnte nicht durchgeführt werden",
|
|
31
|
+
"Could not sign in": "Anmeldung fehlgeschlagen",
|
|
32
|
+
"Could not sign out": "Abmeldung fehlgeschlagen",
|
|
33
|
+
"Could not update user": "Benutzer konnte nicht aktualisiert werden",
|
|
34
|
+
"Could not reset password": "Passwort konnte nicht zurückgesetzt werden",
|
|
35
|
+
// Error messages
|
|
36
|
+
"Failed to fetch": "Abrufen fehlgeschlagen",
|
|
37
|
+
"Username or password wrong.": "Benutzername oder Passwort falsch.",
|
|
38
|
+
"Failed to sign in.": "Anmeldung fehlgeschlagen.",
|
|
39
|
+
"Failed to sign out.": "Abmeldung fehlgeschlagen.",
|
|
40
|
+
"Could not request token to reset password": "Token zum Zurücksetzen des Passworts konnte nicht angefordert werden"
|
|
19
41
|
};
|
|
20
42
|
export {
|
|
21
43
|
de as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function DeleteDialog({ onSuccess, onError, ...props }: DeleteDialogProps & CommonModalProps): JSX.Element;
|
|
1
|
+
export function DeleteDialog({ deleteText, onSuccess, onError, ...props }: DeleteDialogProps & CommonModalProps): JSX.Element;
|
|
2
2
|
export type CommonModalTitleOptionsProps = {
|
|
3
3
|
/**
|
|
4
4
|
* - Content or function to render on the left side of the title.
|
|
@@ -118,6 +118,10 @@ export type CommonModalProps = {
|
|
|
118
118
|
rest: Record<string, any>;
|
|
119
119
|
};
|
|
120
120
|
export type DeleteDialogProps = {
|
|
121
|
+
/**
|
|
122
|
+
* - Custom text or component to display in the delete confirmation dialog.
|
|
123
|
+
*/
|
|
124
|
+
deleteText?: React.ReactNode;
|
|
121
125
|
/**
|
|
122
126
|
* - Callback function triggered on successful form submission.
|
|
123
127
|
*/
|
|
@@ -8,6 +8,10 @@ export type GetI18nProps = {
|
|
|
8
8
|
* - A function that takes the i18n instance and returns back a i18n instance
|
|
9
9
|
*/
|
|
10
10
|
callback?: (i18n: Record<string, any>) => Record<string, any>;
|
|
11
|
+
/**
|
|
12
|
+
* - The translations to be used. E.g. `{ en: { key: 'value' }, de: { key: 'wert' } }`
|
|
13
|
+
*/
|
|
14
|
+
translations?: Record<string, Record<string, string>>;
|
|
11
15
|
};
|
|
12
16
|
export type LangProps = {
|
|
13
17
|
/**
|
|
@@ -4,6 +4,7 @@ declare const _default: {
|
|
|
4
4
|
'Add Item': string;
|
|
5
5
|
Edit: string;
|
|
6
6
|
Delete: string;
|
|
7
|
+
'Delete Item?': string;
|
|
7
8
|
Refresh: string;
|
|
8
9
|
Download: string;
|
|
9
10
|
Cancel: string;
|
|
@@ -14,5 +15,24 @@ declare const _default: {
|
|
|
14
15
|
'Are you sure you want to delete this item?': string;
|
|
15
16
|
'No filters': string;
|
|
16
17
|
'Advanced Filters': string;
|
|
18
|
+
Error: string;
|
|
19
|
+
'Could not fetch info': string;
|
|
20
|
+
'Could not fetch list': string;
|
|
21
|
+
'Could not fetch item with id {{id}}': string;
|
|
22
|
+
'Could not add item': string;
|
|
23
|
+
'Could not update item with id {{id}}': string;
|
|
24
|
+
'Could not delete item with id {{id}}': string;
|
|
25
|
+
'Could not download': string;
|
|
26
|
+
'Could not upload': string;
|
|
27
|
+
'Could not perform bulk action': string;
|
|
28
|
+
'Could not sign in': string;
|
|
29
|
+
'Could not sign out': string;
|
|
30
|
+
'Could not update user': string;
|
|
31
|
+
'Could not reset password': string;
|
|
32
|
+
'Failed to fetch': string;
|
|
33
|
+
'Username or password wrong.': string;
|
|
34
|
+
'Failed to sign in.': string;
|
|
35
|
+
'Failed to sign out.': string;
|
|
36
|
+
'Could not request token to reset password': string;
|
|
17
37
|
};
|
|
18
38
|
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const utils = require("fastapi-rtk/utils");
|
|
4
|
+
const [LayoutPaddingContextProvider, useLayoutPadding] = utils.createSafeContext(
|
|
5
|
+
"useLayoutPadding must be used within a LayoutPaddingContextProvider"
|
|
6
|
+
);
|
|
7
|
+
exports.LayoutPaddingContextProvider = LayoutPaddingContextProvider;
|
|
8
|
+
exports.useLayoutPadding = useLayoutPadding;
|
|
@@ -12,9 +12,11 @@ const JsonFormsWithCustomizer = React.memo(function JsonFormsWithCustomizer2({
|
|
|
12
12
|
uischema,
|
|
13
13
|
data,
|
|
14
14
|
onChange,
|
|
15
|
-
customizer
|
|
15
|
+
customizer,
|
|
16
|
+
debounce = false,
|
|
17
|
+
...props
|
|
16
18
|
}) {
|
|
17
|
-
const theme = useThemeCustomizer.useThemeCustomizer(customizer);
|
|
19
|
+
const theme = useThemeCustomizer.useThemeCustomizer({ ...customizer, __: { debounce } });
|
|
18
20
|
return /* @__PURE__ */ jsxRuntime.jsx(core.MantineThemeProvider, { theme, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19
21
|
react.JsonForms,
|
|
20
22
|
{
|
|
@@ -23,7 +25,8 @@ const JsonFormsWithCustomizer = React.memo(function JsonFormsWithCustomizer2({
|
|
|
23
25
|
renderers: mantineRenderers.mantineRenderers,
|
|
24
26
|
cells: mantineCells.mantineCells,
|
|
25
27
|
data,
|
|
26
|
-
onChange
|
|
28
|
+
onChange,
|
|
29
|
+
...props
|
|
27
30
|
}
|
|
28
31
|
) });
|
|
29
32
|
});
|
|
@@ -7,15 +7,23 @@ const useBooleanProps = require("../hooks/useBooleanProps.cjs");
|
|
|
7
7
|
const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
8
8
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
9
9
|
function MantineBooleanInput({ margin, ...props }) {
|
|
10
|
-
|
|
11
|
-
const {
|
|
12
|
-
const
|
|
13
|
-
const
|
|
10
|
+
var _a;
|
|
11
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
12
|
+
const { path, schema, uischema } = props;
|
|
13
|
+
const isCheckbox = React.useMemo(
|
|
14
|
+
() => {
|
|
15
|
+
var _a2;
|
|
16
|
+
return (((_a2 = uischema.options) == null ? void 0 : _a2.variant) ?? schema.format) === "checkbox";
|
|
17
|
+
},
|
|
18
|
+
[schema.format, (_a = uischema.options) == null ? void 0 : _a.variant]
|
|
19
|
+
);
|
|
20
|
+
const booleanProps = useBooleanProps.useBooleanProps(isCheckbox, { value, onChange: commonProps.onChange });
|
|
14
21
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...booleanProps }), [booleanProps, commonProps]);
|
|
15
22
|
const [Component, _props] = useContextProps.useContextProps("Boolean", path, componentProps, props);
|
|
16
23
|
if (!props.visible) {
|
|
17
24
|
return null;
|
|
18
25
|
}
|
|
19
|
-
|
|
26
|
+
const { inputWrapperOrder, ...__props } = _props;
|
|
27
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core.Box, { m: Component === null ? void 0 : margin, children: Component === void 0 ? isCheckbox ? /* @__PURE__ */ jsxRuntime.jsx(core.Checkbox, { ...__props }) : /* @__PURE__ */ jsxRuntime.jsx(core.Select, { inputWrapperOrder, ...__props }) : Component });
|
|
20
28
|
}
|
|
21
29
|
exports.MantineBooleanInput = MantineBooleanInput;
|
|
@@ -8,9 +8,9 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
8
8
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
9
9
|
const useDateProps = require("../hooks/useDateProps.cjs");
|
|
10
10
|
function MantineDateInput({ margin, ...props }) {
|
|
11
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
12
|
-
const { path
|
|
13
|
-
const dateProps = useDateProps.useDateProps("date", true, {
|
|
11
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
12
|
+
const { path } = props;
|
|
13
|
+
const dateProps = useDateProps.useDateProps("date", true, { value, onChange: commonProps.onChange });
|
|
14
14
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...dateProps }), [commonProps, dateProps]);
|
|
15
15
|
const [Component, _props] = useContextProps.useContextProps("Date", path, componentProps, props);
|
|
16
16
|
if (!props.visible) {
|
|
@@ -9,22 +9,22 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
9
9
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
10
10
|
const useDateProps = require("../hooks/useDateProps.cjs");
|
|
11
11
|
function MantineDateTimeInput({ margin, ...props }) {
|
|
12
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
13
|
-
const { path,
|
|
12
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
13
|
+
const { path, uischema } = props;
|
|
14
14
|
const { initialUTC: __initialUTC } = uischema.options || {};
|
|
15
|
-
const _dateProps = useDateProps.useDateProps("date-time", false, {
|
|
15
|
+
const _dateProps = useDateProps.useDateProps("date-time", false, { value, toggle: () => null, onChange: commonProps.onChange });
|
|
16
16
|
const [, { initialUTC }] = useContextProps.useContextProps("DateTime", path, { ...commonProps, ..._dateProps }, props);
|
|
17
17
|
const [isUTC, { open: setToUTC, close: setToLocal, toggle }] = hooks.useDisclosure(initialUTC ?? __initialUTC);
|
|
18
18
|
const { initialUTC: _initialUTC, ...dateProps } = useDateProps.useDateProps("date-time", isUTC, {
|
|
19
|
-
|
|
19
|
+
value,
|
|
20
20
|
toggle,
|
|
21
21
|
onChange: commonProps.onChange
|
|
22
22
|
});
|
|
23
23
|
React.useEffect(() => {
|
|
24
|
-
if (
|
|
25
|
-
|
|
24
|
+
if (value) {
|
|
25
|
+
value.endsWith("Z") ? setToUTC() : setToLocal();
|
|
26
26
|
}
|
|
27
|
-
}, [
|
|
27
|
+
}, [value, setToLocal, setToUTC]);
|
|
28
28
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...dateProps }), [commonProps, dateProps]);
|
|
29
29
|
const [Component, { initialUTC: _, ..._props }] = useContextProps.useContextProps("DateTime", path, componentProps, props);
|
|
30
30
|
if (!props.visible) {
|
|
@@ -7,9 +7,9 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useMultiSelectProps = require("../hooks/useMultiSelectProps.cjs");
|
|
9
9
|
function MantineEnumArrayInput({ margin, ...props }) {
|
|
10
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
11
|
-
const { path
|
|
12
|
-
const multiSelectProps = useMultiSelectProps.useMultiSelectProps(
|
|
10
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
11
|
+
const { path } = props;
|
|
12
|
+
const multiSelectProps = useMultiSelectProps.useMultiSelectProps(value, props.schema.items, { onChange: commonProps.onChange });
|
|
13
13
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...multiSelectProps }), [commonProps, multiSelectProps]);
|
|
14
14
|
const [Component, _props] = useContextProps.useContextProps("EnumArray", path, componentProps, props);
|
|
15
15
|
if (!props.visible) {
|
|
@@ -7,9 +7,9 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useSelectProps = require("../hooks/useSelectProps.cjs");
|
|
9
9
|
function MantineEnumInput({ margin, ...props }) {
|
|
10
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
11
|
-
const { path
|
|
12
|
-
const selectProps = useSelectProps.useSelectProps(
|
|
10
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
11
|
+
const { path } = props;
|
|
12
|
+
const selectProps = useSelectProps.useSelectProps(value, props.schema);
|
|
13
13
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...selectProps }), [commonProps, selectProps]);
|
|
14
14
|
const [Component, _props] = useContextProps.useContextProps("Enum", path, componentProps, props);
|
|
15
15
|
if (!props.visible) {
|
|
@@ -8,10 +8,10 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
8
8
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
9
9
|
const useFileProps = require("../hooks/useFileProps.cjs");
|
|
10
10
|
const InnerMantineFileInput = ({ contextName, margin, children, ...props }) => {
|
|
11
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
12
|
-
const { path,
|
|
11
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
12
|
+
const { path, schema, errors } = props;
|
|
13
13
|
const fileProps = useFileProps.useFileProps({
|
|
14
|
-
|
|
14
|
+
value,
|
|
15
15
|
onChange: commonProps.onChange,
|
|
16
16
|
contentMediaType: schema.contentMediaType,
|
|
17
17
|
errors
|
|
@@ -7,9 +7,9 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useJsonProps = require("../hooks/useJsonProps.cjs");
|
|
9
9
|
function MantineJsonInput({ margin, ...props }) {
|
|
10
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
11
|
-
const { path
|
|
12
|
-
const jsonProps = useJsonProps.useJsonProps({
|
|
10
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
11
|
+
const { path } = props;
|
|
12
|
+
const jsonProps = useJsonProps.useJsonProps({ value, onChange: commonProps.onChange });
|
|
13
13
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...jsonProps }), [commonProps, jsonProps]);
|
|
14
14
|
const [Component, _props] = useContextProps.useContextProps("Json", path, componentProps, props);
|
|
15
15
|
if (!props.visible) {
|
|
@@ -7,9 +7,9 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useNumberProps = require("../hooks/useNumberProps.cjs");
|
|
9
9
|
const InnerMantineNumberInput = ({ contextName, margin, ...props }) => {
|
|
10
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
11
|
-
const { path
|
|
12
|
-
const numberProps = useNumberProps.useNumberProps(contextName.toLowerCase(), {
|
|
10
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
11
|
+
const { path } = props;
|
|
12
|
+
const numberProps = useNumberProps.useNumberProps(contextName.toLowerCase(), { value, onChange: commonProps.onChange });
|
|
13
13
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...numberProps }), [commonProps, numberProps]);
|
|
14
14
|
const [Component, _props] = useContextProps.useContextProps(contextName, path, componentProps, props);
|
|
15
15
|
if (!props.visible) {
|
|
@@ -7,17 +7,17 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useSelectProps = require("../hooks/useSelectProps.cjs");
|
|
9
9
|
function MantineOneOfEnumInput({ margin, ...props }) {
|
|
10
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
11
|
-
const { path,
|
|
12
|
-
const selectProps = useSelectProps.useSelectProps(
|
|
10
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
11
|
+
const { path, schema } = props;
|
|
12
|
+
const selectProps = useSelectProps.useSelectProps(value, schema);
|
|
13
13
|
const errorProps = React.useMemo(() => {
|
|
14
14
|
var _a;
|
|
15
|
-
const isNull =
|
|
15
|
+
const isNull = value === null;
|
|
16
16
|
const error = (_a = commonProps.error) == null ? void 0 : _a.filter(
|
|
17
17
|
(error2) => error2.key === "is a required property" || !isNull ? error2 : false
|
|
18
18
|
);
|
|
19
19
|
return (error == null ? void 0 : error.length) ? { error } : { error: isNull && commonProps.required ? "is a required property" : void 0 };
|
|
20
|
-
}, [commonProps.error, commonProps.required,
|
|
20
|
+
}, [commonProps.error, commonProps.required, value]);
|
|
21
21
|
const componentProps = React.useMemo(
|
|
22
22
|
() => ({ ...commonProps, ...selectProps, ...errorProps }),
|
|
23
23
|
[commonProps, errorProps, selectProps]
|
|
@@ -7,9 +7,9 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useTextProps = require("../hooks/useTextProps.cjs");
|
|
9
9
|
function MantineTextInput({ margin, ...props }) {
|
|
10
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
11
|
-
const { path,
|
|
12
|
-
const textProps = useTextProps.useTextProps({
|
|
10
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
11
|
+
const { path, schema } = props;
|
|
12
|
+
const textProps = useTextProps.useTextProps({ value, onChange: commonProps.onChange });
|
|
13
13
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...textProps }), [commonProps, textProps]);
|
|
14
14
|
const [Component, _props] = useContextProps.useContextProps("Text", path, componentProps, props);
|
|
15
15
|
if (!props.visible) {
|
|
@@ -8,9 +8,9 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
8
8
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
9
9
|
const useTimeProps = require("../hooks/useTimeProps.cjs");
|
|
10
10
|
function MantineTimeInput({ margin, ...props }) {
|
|
11
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
12
|
-
const { path
|
|
13
|
-
const textProps = useTimeProps.useTimeProps({
|
|
11
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
12
|
+
const { path } = props;
|
|
13
|
+
const textProps = useTimeProps.useTimeProps({ value });
|
|
14
14
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...textProps }), [commonProps, textProps]);
|
|
15
15
|
const [Component, _props] = useContextProps.useContextProps("Time", path, componentProps, props);
|
|
16
16
|
if (!props.visible) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const utils = require("fastapi-rtk/utils");
|
|
4
|
-
function useBooleanProps(isCheckbox, {
|
|
4
|
+
function useBooleanProps(isCheckbox, { value, onChange }) {
|
|
5
5
|
return isCheckbox ? {
|
|
6
|
-
checked:
|
|
6
|
+
checked: value || false,
|
|
7
7
|
onChange: (event) => onChange(event.target.checked)
|
|
8
8
|
} : {
|
|
9
9
|
data: [
|
|
@@ -16,8 +16,8 @@ function useBooleanProps(isCheckbox, { data, onChange }) {
|
|
|
16
16
|
label: "False"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
|
-
value: utils.isTruthy(
|
|
20
|
-
onChange: (
|
|
19
|
+
value: utils.isTruthy(value) ? String(value) : null,
|
|
20
|
+
onChange: (value2) => onChange(utils.isTruthy(value2) ? value2 === String(true) : void 0)
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
exports.useBooleanProps = useBooleanProps;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const core$1 = require("fastapi-rtk/core");
|
|
4
5
|
const core = require("@mantine/core");
|
|
6
|
+
const hooks = require("@mantine/hooks");
|
|
7
|
+
const React = require("react");
|
|
5
8
|
const isSchemaTypeInclude = require("../utils/isSchemaTypeInclude.cjs");
|
|
6
9
|
function useCommonProps(props = {}) {
|
|
7
10
|
const __ = core.useProps("__", {}, {});
|
|
11
|
+
const [value, setValue] = React.useState(props.data);
|
|
8
12
|
let valueIfNull = null;
|
|
9
13
|
if (!isSchemaTypeInclude.isSchemaTypeInclude(props.schema.type, "null")) {
|
|
10
14
|
if (isSchemaTypeInclude.isSchemaTypeInclude(props.schema.type, "array")) {
|
|
@@ -15,13 +19,28 @@ function useCommonProps(props = {}) {
|
|
|
15
19
|
valueIfNull = "";
|
|
16
20
|
}
|
|
17
21
|
}
|
|
22
|
+
const debouncedCallback = hooks.useDebouncedCallback((value2) => props.handleChange(props.path, value2), {
|
|
23
|
+
delay: core$1.DEBOUNCE_JSONFORMS_DELAY,
|
|
24
|
+
flushOnUnmount: true,
|
|
25
|
+
...__.debounceOptions
|
|
26
|
+
});
|
|
27
|
+
const onChange = (value2) => {
|
|
28
|
+
const newValue = value2 ?? (__.setNull ? valueIfNull : void 0);
|
|
29
|
+
setValue(newValue);
|
|
30
|
+
__.debounce ? debouncedCallback(newValue) : props.handleChange(props.path, newValue);
|
|
31
|
+
};
|
|
32
|
+
React.useEffect(() => {
|
|
33
|
+
setValue(props.data);
|
|
34
|
+
}, [props.data]);
|
|
18
35
|
return {
|
|
19
36
|
inputWrapperOrder: ["label", "input", "description", "error"],
|
|
20
37
|
label: props.label,
|
|
21
38
|
description: props.description,
|
|
22
39
|
required: props.required,
|
|
23
40
|
disabled: !props.enabled,
|
|
24
|
-
|
|
41
|
+
value,
|
|
42
|
+
onChange,
|
|
43
|
+
onBlur: () => debouncedCallback.flush(),
|
|
25
44
|
error: props.errors ? props.errors.split("\n").map((error) => /* @__PURE__ */ jsxRuntime.jsx("span", { style: { display: "block" }, children: error }, error)) : void 0
|
|
26
45
|
};
|
|
27
46
|
}
|
|
@@ -4,17 +4,17 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const iconify = require("../../../.external/cjs/@iconify_react@6.0.1_react@18.3.1/@iconify/react/dist/iconify.cjs");
|
|
5
5
|
const core = require("@mantine/core");
|
|
6
6
|
const utcConverter = require("../utils/utcConverter.cjs");
|
|
7
|
-
function useDateProps(type, isUTC, {
|
|
7
|
+
function useDateProps(type, isUTC, { value, toggle, onChange }) {
|
|
8
8
|
const theme = core.useMantineTheme();
|
|
9
9
|
const props = { clearable: true };
|
|
10
10
|
if (type === "date") {
|
|
11
11
|
props.valueFormat = "DD.MM.YYYY";
|
|
12
|
-
props.value =
|
|
13
|
-
props.onChange = (
|
|
12
|
+
props.value = value || null;
|
|
13
|
+
props.onChange = (value2) => onChange(value2 || void 0);
|
|
14
14
|
} else {
|
|
15
15
|
props.valueFormat = isUTC ? "DD.MM.YYYY HH:mm (UTC)" : "DD.MM.YYYY HH:mm";
|
|
16
|
-
props.value =
|
|
17
|
-
props.onChange = (
|
|
16
|
+
props.value = value ? isUTC ? utcConverter.convertUTCStringToLocalString(value) : value : null;
|
|
17
|
+
props.onChange = (value2) => onChange(value2 ? isUTC ? utcConverter.convertLocalStringToUTCString(value2) : value2 : void 0);
|
|
18
18
|
props.placeholder = isUTC ? "DD.MM.YYYY HH:mm (UTC)" : "DD.MM.YYYY HH:mm";
|
|
19
19
|
props.rightSection = /* @__PURE__ */ jsxRuntime.jsxs(core.Group, { gap: "0.25rem", wrap: "nowrap", children: [
|
|
20
20
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
function useFileProps({
|
|
4
|
+
function useFileProps({ value, onChange, contentMediaType, errors }) {
|
|
5
5
|
var _a;
|
|
6
6
|
const filteredErrors = (_a = errors == null ? void 0 : errors.split("\n").filter((error) => !error.startsWith("must be string"))) == null ? void 0 : _a.join("\n");
|
|
7
|
-
|
|
7
|
+
value = value || null;
|
|
8
8
|
if (typeof value === "string") {
|
|
9
9
|
value = new File([value], value);
|
|
10
10
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
function useJsonProps({
|
|
5
|
-
const [
|
|
4
|
+
function useJsonProps({ value, onChange }) {
|
|
5
|
+
const [inputValue, setInputValue] = React.useState("");
|
|
6
6
|
const stringifiedData = React.useMemo(
|
|
7
|
-
() =>
|
|
8
|
-
[
|
|
7
|
+
() => value ? typeof value === "object" ? JSON.stringify(value, null, 2) : value : "",
|
|
8
|
+
[value]
|
|
9
9
|
);
|
|
10
10
|
React.useEffect(() => {
|
|
11
|
-
|
|
11
|
+
setInputValue(stringifiedData);
|
|
12
12
|
}, [stringifiedData]);
|
|
13
13
|
return {
|
|
14
14
|
autosize: true,
|
|
@@ -16,19 +16,19 @@ function useJsonProps({ data, onChange }) {
|
|
|
16
16
|
maxRows: 12,
|
|
17
17
|
validationError: "Invalid JSON",
|
|
18
18
|
formatOnBlur: true,
|
|
19
|
-
value,
|
|
19
|
+
value: inputValue,
|
|
20
20
|
onBlur: () => {
|
|
21
|
-
if (!
|
|
21
|
+
if (!inputValue) {
|
|
22
22
|
onChange(void 0);
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
25
|
try {
|
|
26
|
-
const parsedValue = JSON.parse(
|
|
26
|
+
const parsedValue = JSON.parse(inputValue);
|
|
27
27
|
onChange(parsedValue);
|
|
28
28
|
} catch {
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
onChange:
|
|
31
|
+
onChange: setInputValue
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
exports.useJsonProps = useJsonProps;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const useSelectProps = require("./useSelectProps.cjs");
|
|
4
|
-
function useMultiSelectProps(
|
|
5
|
-
const props = useSelectProps.useSelectProps(
|
|
4
|
+
function useMultiSelectProps(value, schema, { onChange }) {
|
|
5
|
+
const props = useSelectProps.useSelectProps(value, schema);
|
|
6
6
|
return {
|
|
7
7
|
...props,
|
|
8
8
|
value: props.value || [],
|
|
9
|
-
onChange: (
|
|
9
|
+
onChange: (value2) => value2.length ? onChange(value2) : onChange(void 0)
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
exports.useMultiSelectProps = useMultiSelectProps;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
function useNumberProps(type, {
|
|
3
|
+
function useNumberProps(type, { value, onChange }) {
|
|
4
4
|
return {
|
|
5
|
-
value:
|
|
5
|
+
value: value || "",
|
|
6
6
|
allowDecimal: type === "number" ? true : false,
|
|
7
7
|
hideControls: true,
|
|
8
|
-
onChange: (
|
|
8
|
+
onChange: (value2) => onChange(typeof value2 === "string" ? value2 || void 0 : value2 ?? void 0)
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
exports.useNumberProps = useNumberProps;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
function useSelectProps(
|
|
4
|
+
function useSelectProps(value, schema) {
|
|
5
5
|
const options = React.useMemo(
|
|
6
6
|
() => schema.oneOf ? schema.oneOf.map((option) => ({ value: option.const, label: option.title })) : schema.enum,
|
|
7
7
|
[schema.enum, schema.oneOf]
|
|
8
8
|
);
|
|
9
|
-
return { data: options, value:
|
|
9
|
+
return { data: options, value: value || null, searchable: true };
|
|
10
10
|
}
|
|
11
11
|
exports.useSelectProps = useSelectProps;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
function useTextProps({
|
|
3
|
+
function useTextProps({ value, onChange }) {
|
|
4
4
|
return {
|
|
5
|
-
value:
|
|
5
|
+
value: value || "",
|
|
6
6
|
onChange: (event) => onChange(event.target.value || void 0)
|
|
7
7
|
};
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
function useTimeProps({
|
|
4
|
-
return { value:
|
|
3
|
+
function useTimeProps({ value }) {
|
|
4
|
+
return { value: value || "" };
|
|
5
5
|
}
|
|
6
6
|
exports.useTimeProps = useTimeProps;
|
|
@@ -23,6 +23,7 @@ const isJsonArrayControl = require("./testers/isJsonArrayControl.cjs");
|
|
|
23
23
|
const isJsonControl = require("./testers/isJsonControl.cjs");
|
|
24
24
|
const isSchemaTypeInclude = require("./utils/isSchemaTypeInclude.cjs");
|
|
25
25
|
const utcConverter = require("./utils/utcConverter.cjs");
|
|
26
|
+
const withAjvProps = require("./utils/withAjvProps.cjs");
|
|
26
27
|
exports.JsonFormsWithCustomizer = JsonFormsWithCustomizer.JsonFormsWithCustomizer;
|
|
27
28
|
exports.mantineCells = mantineCells.mantineCells;
|
|
28
29
|
exports.mantineRenderers = mantineRenderers.mantineRenderers;
|
|
@@ -47,3 +48,4 @@ exports.isJsonControl = isJsonControl.isJsonControl;
|
|
|
47
48
|
exports.isSchemaTypeInclude = isSchemaTypeInclude.isSchemaTypeInclude;
|
|
48
49
|
exports.convertLocalStringToUTCString = utcConverter.convertLocalStringToUTCString;
|
|
49
50
|
exports.convertUTCStringToLocalString = utcConverter.convertUTCStringToLocalString;
|
|
51
|
+
exports.withAjvProps = withAjvProps.withAjvProps;
|