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
|
@@ -5,9 +5,9 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
|
5
5
|
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
6
6
|
import { useTextProps } from "../hooks/useTextProps.mjs";
|
|
7
7
|
function MantineTextInput({ margin, ...props }) {
|
|
8
|
-
const commonProps = useCommonProps(props);
|
|
9
|
-
const { path,
|
|
10
|
-
const textProps = useTextProps({
|
|
8
|
+
const { value, ...commonProps } = useCommonProps(props);
|
|
9
|
+
const { path, schema } = props;
|
|
10
|
+
const textProps = useTextProps({ value, onChange: commonProps.onChange });
|
|
11
11
|
const componentProps = useMemo(() => ({ ...commonProps, ...textProps }), [commonProps, textProps]);
|
|
12
12
|
const [Component, _props] = useContextProps("Text", path, componentProps, props);
|
|
13
13
|
if (!props.visible) {
|
|
@@ -6,9 +6,9 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
|
6
6
|
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
7
7
|
import { useTimeProps } from "../hooks/useTimeProps.mjs";
|
|
8
8
|
function MantineTimeInput({ margin, ...props }) {
|
|
9
|
-
const commonProps = useCommonProps(props);
|
|
10
|
-
const { path
|
|
11
|
-
const textProps = useTimeProps({
|
|
9
|
+
const { value, ...commonProps } = useCommonProps(props);
|
|
10
|
+
const { path } = props;
|
|
11
|
+
const textProps = useTimeProps({ value });
|
|
12
12
|
const componentProps = useMemo(() => ({ ...commonProps, ...textProps }), [commonProps, textProps]);
|
|
13
13
|
const [Component, _props] = useContextProps("Time", path, componentProps, props);
|
|
14
14
|
if (!props.visible) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isTruthy } from "fastapi-rtk/utils";
|
|
2
|
-
function useBooleanProps(isCheckbox, {
|
|
2
|
+
function useBooleanProps(isCheckbox, { value, onChange }) {
|
|
3
3
|
return isCheckbox ? {
|
|
4
|
-
checked:
|
|
4
|
+
checked: value || false,
|
|
5
5
|
onChange: (event) => onChange(event.target.checked)
|
|
6
6
|
} : {
|
|
7
7
|
data: [
|
|
@@ -14,8 +14,8 @@ function useBooleanProps(isCheckbox, { data, onChange }) {
|
|
|
14
14
|
label: "False"
|
|
15
15
|
}
|
|
16
16
|
],
|
|
17
|
-
value: isTruthy(
|
|
18
|
-
onChange: (
|
|
17
|
+
value: isTruthy(value) ? String(value) : null,
|
|
18
|
+
onChange: (value2) => onChange(isTruthy(value2) ? value2 === String(true) : void 0)
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DEBOUNCE_JSONFORMS_DELAY } from "fastapi-rtk/core";
|
|
2
3
|
import { useProps } from "@mantine/core";
|
|
4
|
+
import { useDebouncedCallback } from "@mantine/hooks";
|
|
5
|
+
import { useState, useEffect } from "react";
|
|
3
6
|
import { isSchemaTypeInclude } from "../utils/isSchemaTypeInclude.mjs";
|
|
4
7
|
function useCommonProps(props = {}) {
|
|
5
8
|
const __ = useProps("__", {}, {});
|
|
9
|
+
const [value, setValue] = useState(props.data);
|
|
6
10
|
let valueIfNull = null;
|
|
7
11
|
if (!isSchemaTypeInclude(props.schema.type, "null")) {
|
|
8
12
|
if (isSchemaTypeInclude(props.schema.type, "array")) {
|
|
@@ -13,13 +17,28 @@ function useCommonProps(props = {}) {
|
|
|
13
17
|
valueIfNull = "";
|
|
14
18
|
}
|
|
15
19
|
}
|
|
20
|
+
const debouncedCallback = useDebouncedCallback((value2) => props.handleChange(props.path, value2), {
|
|
21
|
+
delay: DEBOUNCE_JSONFORMS_DELAY,
|
|
22
|
+
flushOnUnmount: true,
|
|
23
|
+
...__.debounceOptions
|
|
24
|
+
});
|
|
25
|
+
const onChange = (value2) => {
|
|
26
|
+
const newValue = value2 ?? (__.setNull ? valueIfNull : void 0);
|
|
27
|
+
setValue(newValue);
|
|
28
|
+
__.debounce ? debouncedCallback(newValue) : props.handleChange(props.path, newValue);
|
|
29
|
+
};
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
setValue(props.data);
|
|
32
|
+
}, [props.data]);
|
|
16
33
|
return {
|
|
17
34
|
inputWrapperOrder: ["label", "input", "description", "error"],
|
|
18
35
|
label: props.label,
|
|
19
36
|
description: props.description,
|
|
20
37
|
required: props.required,
|
|
21
38
|
disabled: !props.enabled,
|
|
22
|
-
|
|
39
|
+
value,
|
|
40
|
+
onChange,
|
|
41
|
+
onBlur: () => debouncedCallback.flush(),
|
|
23
42
|
error: props.errors ? props.errors.split("\n").map((error) => /* @__PURE__ */ jsx("span", { style: { display: "block" }, children: error }, error)) : void 0
|
|
24
43
|
};
|
|
25
44
|
}
|
|
@@ -2,17 +2,17 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Icon } from "../../../.external/esm/@iconify_react@6.0.1_react@18.3.1/@iconify/react/dist/iconify.mjs";
|
|
3
3
|
import { useMantineTheme, Group, CloseButton } from "@mantine/core";
|
|
4
4
|
import { convertUTCStringToLocalString, convertLocalStringToUTCString } from "../utils/utcConverter.mjs";
|
|
5
|
-
function useDateProps(type, isUTC, {
|
|
5
|
+
function useDateProps(type, isUTC, { value, toggle, onChange }) {
|
|
6
6
|
const theme = useMantineTheme();
|
|
7
7
|
const props = { clearable: true };
|
|
8
8
|
if (type === "date") {
|
|
9
9
|
props.valueFormat = "DD.MM.YYYY";
|
|
10
|
-
props.value =
|
|
11
|
-
props.onChange = (
|
|
10
|
+
props.value = value || null;
|
|
11
|
+
props.onChange = (value2) => onChange(value2 || void 0);
|
|
12
12
|
} else {
|
|
13
13
|
props.valueFormat = isUTC ? "DD.MM.YYYY HH:mm (UTC)" : "DD.MM.YYYY HH:mm";
|
|
14
|
-
props.value =
|
|
15
|
-
props.onChange = (
|
|
14
|
+
props.value = value ? isUTC ? convertUTCStringToLocalString(value) : value : null;
|
|
15
|
+
props.onChange = (value2) => onChange(value2 ? isUTC ? convertLocalStringToUTCString(value2) : value2 : void 0);
|
|
16
16
|
props.placeholder = isUTC ? "DD.MM.YYYY HH:mm (UTC)" : "DD.MM.YYYY HH:mm";
|
|
17
17
|
props.rightSection = /* @__PURE__ */ jsxs(Group, { gap: "0.25rem", wrap: "nowrap", children: [
|
|
18
18
|
/* @__PURE__ */ jsx(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
function useFileProps({
|
|
2
|
+
function useFileProps({ value, onChange, contentMediaType, errors }) {
|
|
3
3
|
var _a;
|
|
4
4
|
const filteredErrors = (_a = errors == null ? void 0 : errors.split("\n").filter((error) => !error.startsWith("must be string"))) == null ? void 0 : _a.join("\n");
|
|
5
|
-
|
|
5
|
+
value = value || null;
|
|
6
6
|
if (typeof value === "string") {
|
|
7
7
|
value = new File([value], value);
|
|
8
8
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useState, useMemo, useEffect } from "react";
|
|
2
|
-
function useJsonProps({
|
|
3
|
-
const [
|
|
2
|
+
function useJsonProps({ value, onChange }) {
|
|
3
|
+
const [inputValue, setInputValue] = useState("");
|
|
4
4
|
const stringifiedData = useMemo(
|
|
5
|
-
() =>
|
|
6
|
-
[
|
|
5
|
+
() => value ? typeof value === "object" ? JSON.stringify(value, null, 2) : value : "",
|
|
6
|
+
[value]
|
|
7
7
|
);
|
|
8
8
|
useEffect(() => {
|
|
9
|
-
|
|
9
|
+
setInputValue(stringifiedData);
|
|
10
10
|
}, [stringifiedData]);
|
|
11
11
|
return {
|
|
12
12
|
autosize: true,
|
|
@@ -14,19 +14,19 @@ function useJsonProps({ data, onChange }) {
|
|
|
14
14
|
maxRows: 12,
|
|
15
15
|
validationError: "Invalid JSON",
|
|
16
16
|
formatOnBlur: true,
|
|
17
|
-
value,
|
|
17
|
+
value: inputValue,
|
|
18
18
|
onBlur: () => {
|
|
19
|
-
if (!
|
|
19
|
+
if (!inputValue) {
|
|
20
20
|
onChange(void 0);
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
try {
|
|
24
|
-
const parsedValue = JSON.parse(
|
|
24
|
+
const parsedValue = JSON.parse(inputValue);
|
|
25
25
|
onChange(parsedValue);
|
|
26
26
|
} catch {
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
onChange:
|
|
29
|
+
onChange: setInputValue
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useSelectProps } from "./useSelectProps.mjs";
|
|
2
|
-
function useMultiSelectProps(
|
|
3
|
-
const props = useSelectProps(
|
|
2
|
+
function useMultiSelectProps(value, schema, { onChange }) {
|
|
3
|
+
const props = useSelectProps(value, schema);
|
|
4
4
|
return {
|
|
5
5
|
...props,
|
|
6
6
|
value: props.value || [],
|
|
7
|
-
onChange: (
|
|
7
|
+
onChange: (value2) => value2.length ? onChange(value2) : onChange(void 0)
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function useNumberProps(type, {
|
|
1
|
+
function useNumberProps(type, { value, onChange }) {
|
|
2
2
|
return {
|
|
3
|
-
value:
|
|
3
|
+
value: value || "",
|
|
4
4
|
allowDecimal: type === "number" ? true : false,
|
|
5
5
|
hideControls: true,
|
|
6
|
-
onChange: (
|
|
6
|
+
onChange: (value2) => onChange(typeof value2 === "string" ? value2 || void 0 : value2 ?? void 0)
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
function useSelectProps(
|
|
2
|
+
function useSelectProps(value, schema) {
|
|
3
3
|
const options = useMemo(
|
|
4
4
|
() => schema.oneOf ? schema.oneOf.map((option) => ({ value: option.const, label: option.title })) : schema.enum,
|
|
5
5
|
[schema.enum, schema.oneOf]
|
|
6
6
|
);
|
|
7
|
-
return { data: options, value:
|
|
7
|
+
return { data: options, value: value || null, searchable: true };
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
10
|
useSelectProps
|
|
@@ -21,6 +21,7 @@ import { isJsonArrayControl } from "./testers/isJsonArrayControl.mjs";
|
|
|
21
21
|
import { isJsonControl } from "./testers/isJsonControl.mjs";
|
|
22
22
|
import { isSchemaTypeInclude } from "./utils/isSchemaTypeInclude.mjs";
|
|
23
23
|
import { convertLocalStringToUTCString, convertUTCStringToLocalString } from "./utils/utcConverter.mjs";
|
|
24
|
+
import { withAjvProps } from "./utils/withAjvProps.mjs";
|
|
24
25
|
export {
|
|
25
26
|
JsonFormsWithCustomizer,
|
|
26
27
|
convertLocalStringToUTCString,
|
|
@@ -45,5 +46,6 @@ export {
|
|
|
45
46
|
useSelectProps,
|
|
46
47
|
useTextProps,
|
|
47
48
|
useThemeCustomizer,
|
|
48
|
-
useTimeProps
|
|
49
|
+
useTimeProps,
|
|
50
|
+
withAjvProps
|
|
49
51
|
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { rankWith, uiTypeIs, isVisible, deriveLabelForUISchemaElement } from "@jsonforms/core";
|
|
3
|
+
import { withTranslateProps, withJsonFormsLayoutProps } from "@jsonforms/react";
|
|
4
|
+
import { useMemo } from "react";
|
|
5
|
+
import { withAjvProps } from "../../utils/withAjvProps.mjs";
|
|
6
|
+
import { withDebounce } from "../../utils/withDebounce.mjs";
|
|
7
|
+
import { CategorizationCards } from "./variants/CategorizationCards.mjs";
|
|
8
|
+
import { CategorizationStepper } from "./variants/CategorizationStepper.mjs";
|
|
9
|
+
import { CategorizationTabs } from "./variants/CategorizationTabs.mjs";
|
|
10
|
+
const Component = (props) => {
|
|
11
|
+
var _a, _b, _c, _d;
|
|
12
|
+
const { schema, uischema, path, enabled, visible, renderers, cells, data, ajv, t } = props;
|
|
13
|
+
const categorization = uischema;
|
|
14
|
+
const categories = useMemo(
|
|
15
|
+
() => categorization.elements.filter((category) => isVisible(category, data, void 0, ajv)),
|
|
16
|
+
[categorization.elements, ajv, data]
|
|
17
|
+
);
|
|
18
|
+
const labels = useMemo(
|
|
19
|
+
() => categorization.elements.map((c) => deriveLabelForUISchemaElement(c, t)).join("|"),
|
|
20
|
+
[categorization.elements, t]
|
|
21
|
+
);
|
|
22
|
+
const childProps = { schema, path, enabled, visible, direction: "column" };
|
|
23
|
+
if (((_a = uischema.options) == null ? void 0 : _a.variant) === "card" || ((_b = uischema.options) == null ? void 0 : _b.variant) === "cards") {
|
|
24
|
+
return /* @__PURE__ */ jsx(
|
|
25
|
+
CategorizationCards,
|
|
26
|
+
{
|
|
27
|
+
labels,
|
|
28
|
+
categorization,
|
|
29
|
+
categories,
|
|
30
|
+
renderers,
|
|
31
|
+
cells,
|
|
32
|
+
childProps,
|
|
33
|
+
t,
|
|
34
|
+
jsonFormsProps: props
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
} else if (((_c = uischema.options) == null ? void 0 : _c.variant) === "stepper") {
|
|
38
|
+
return /* @__PURE__ */ jsx(
|
|
39
|
+
CategorizationStepper,
|
|
40
|
+
{
|
|
41
|
+
labels,
|
|
42
|
+
categorization,
|
|
43
|
+
categories,
|
|
44
|
+
renderers,
|
|
45
|
+
cells,
|
|
46
|
+
childProps,
|
|
47
|
+
t,
|
|
48
|
+
jsonFormsProps: props,
|
|
49
|
+
showNavButtons: (_d = uischema.options) == null ? void 0 : _d.showNavButtons
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
return /* @__PURE__ */ jsx(
|
|
54
|
+
CategorizationTabs,
|
|
55
|
+
{
|
|
56
|
+
labels,
|
|
57
|
+
categorization,
|
|
58
|
+
categories,
|
|
59
|
+
renderers,
|
|
60
|
+
cells,
|
|
61
|
+
childProps,
|
|
62
|
+
t,
|
|
63
|
+
jsonFormsProps: props
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
const MantineCategorizationLayoutTester = rankWith(1, uiTypeIs("Categorization"));
|
|
68
|
+
const MantineCategorizationLayoutRenderer = withAjvProps(
|
|
69
|
+
withTranslateProps(withJsonFormsLayoutProps(withDebounce(Component)))
|
|
70
|
+
);
|
|
71
|
+
export {
|
|
72
|
+
MantineCategorizationLayoutRenderer,
|
|
73
|
+
MantineCategorizationLayoutTester
|
|
74
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { deepMerge } from "fastapi-rtk/utils";
|
|
3
|
+
import { deriveLabelForUISchemaElement } from "@jsonforms/core";
|
|
4
|
+
import { Group, Card } from "@mantine/core";
|
|
5
|
+
import { useState, useMemo, useEffect } from "react";
|
|
6
|
+
import { LayoutPaddingContextProvider } from "../../../Contexts/LayoutPaddingContext.mjs";
|
|
7
|
+
import { useContextProps } from "../../../hooks/useContextProps.mjs";
|
|
8
|
+
import { MantineLayoutRenderer } from "../../../utils/layout.mjs";
|
|
9
|
+
const CategorizationCardsGroup = ({ labels, jsonFormsProps, children, ...props }) => {
|
|
10
|
+
const [, _props] = useContextProps(
|
|
11
|
+
`Categorization.Cards.Group`,
|
|
12
|
+
`Categorization.Cards.Group.[${labels}]`,
|
|
13
|
+
{ children },
|
|
14
|
+
jsonFormsProps,
|
|
15
|
+
false
|
|
16
|
+
);
|
|
17
|
+
const mergedProps = useMemo(() => deepMerge(props, _props), [props, _props]);
|
|
18
|
+
return /* @__PURE__ */ jsx(Group, { ...mergedProps, children: mergedProps.children });
|
|
19
|
+
};
|
|
20
|
+
const CategorizationCardsCard = ({ value, jsonFormsProps, children, ...props }) => {
|
|
21
|
+
const [, _props] = useContextProps(
|
|
22
|
+
`Categorization.Cards.Card`,
|
|
23
|
+
`Categorization.Cards.Card.${value}`,
|
|
24
|
+
{ value, children },
|
|
25
|
+
jsonFormsProps,
|
|
26
|
+
false
|
|
27
|
+
);
|
|
28
|
+
const mergedProps = useMemo(() => deepMerge(props, _props), [props, _props]);
|
|
29
|
+
return /* @__PURE__ */ jsx(Card, { withBorder: true, shadow: "md", p: "xs", ...mergedProps, children: mergedProps.children });
|
|
30
|
+
};
|
|
31
|
+
const CategorizationCards = ({
|
|
32
|
+
labels,
|
|
33
|
+
categorization: _categorization,
|
|
34
|
+
categories: _categories,
|
|
35
|
+
renderers,
|
|
36
|
+
cells,
|
|
37
|
+
childProps,
|
|
38
|
+
t,
|
|
39
|
+
jsonFormsProps
|
|
40
|
+
}) => {
|
|
41
|
+
const [_value, _onChange] = useState((_categories == null ? void 0 : _categories[0]) ? deriveLabelForUISchemaElement(_categories[0], t) : "");
|
|
42
|
+
const contextPath = `Categorization.Cards.[${labels}]`;
|
|
43
|
+
const [, componentProps] = useContextProps(
|
|
44
|
+
`Categorization.Cards`,
|
|
45
|
+
contextPath,
|
|
46
|
+
{
|
|
47
|
+
categorization: _categorization,
|
|
48
|
+
categories: _categories,
|
|
49
|
+
value: _value,
|
|
50
|
+
onChange: _onChange
|
|
51
|
+
},
|
|
52
|
+
jsonFormsProps,
|
|
53
|
+
false
|
|
54
|
+
);
|
|
55
|
+
const { categories, value, onChange, groupProps, cardProps } = componentProps;
|
|
56
|
+
const categoryLabels = useMemo(
|
|
57
|
+
() => categories.map((category) => deriveLabelForUISchemaElement(category, t)),
|
|
58
|
+
[categories, t]
|
|
59
|
+
);
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
if (!categoryLabels.includes(value)) {
|
|
62
|
+
onChange((categories == null ? void 0 : categories[0]) ? deriveLabelForUISchemaElement(categories[0], t) : "");
|
|
63
|
+
}
|
|
64
|
+
}, [categoryLabels]);
|
|
65
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
66
|
+
/* @__PURE__ */ jsx(CategorizationCardsGroup, { labels, jsonFormsProps, ...groupProps, children: categoryLabels.map((label) => /* @__PURE__ */ jsx(
|
|
67
|
+
CategorizationCardsCard,
|
|
68
|
+
{
|
|
69
|
+
value: label,
|
|
70
|
+
jsonFormsProps,
|
|
71
|
+
onClick: (e) => {
|
|
72
|
+
e.stopPropagation();
|
|
73
|
+
onChange(label);
|
|
74
|
+
},
|
|
75
|
+
style: { cursor: "pointer" },
|
|
76
|
+
...cardProps,
|
|
77
|
+
children: label
|
|
78
|
+
},
|
|
79
|
+
label
|
|
80
|
+
)) }),
|
|
81
|
+
categories.filter((category) => deriveLabelForUISchemaElement(category, t) === value).map((category) => /* @__PURE__ */ jsx(LayoutPaddingContextProvider, { value: true, children: /* @__PURE__ */ jsx(MantineLayoutRenderer, { ...childProps, elements: category.elements, renderers, cells }) }, deriveLabelForUISchemaElement(category, t)))
|
|
82
|
+
] });
|
|
83
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
CategorizationCards
|
|
86
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { deepMerge } from "fastapi-rtk/utils";
|
|
3
|
+
import { deriveLabelForUISchemaElement } from "@jsonforms/core";
|
|
4
|
+
import { Stepper, Group, Button } from "@mantine/core";
|
|
5
|
+
import { useState, useMemo, useEffect } from "react";
|
|
6
|
+
import { LayoutPaddingContextProvider } from "../../../Contexts/LayoutPaddingContext.mjs";
|
|
7
|
+
import { useContextProps } from "../../../hooks/useContextProps.mjs";
|
|
8
|
+
import { MantineLayoutRenderer } from "../../../utils/layout.mjs";
|
|
9
|
+
const CategorizationStepperStep = ({ label, description, jsonFormsProps, children, ...props }) => {
|
|
10
|
+
const [, _props] = useContextProps(
|
|
11
|
+
`Categorization.Stepper.Step`,
|
|
12
|
+
`Categorization.Stepper.Step.${label}`,
|
|
13
|
+
{ label, description, children },
|
|
14
|
+
jsonFormsProps,
|
|
15
|
+
false
|
|
16
|
+
);
|
|
17
|
+
const mergedProps = useMemo(() => deepMerge(props, _props), [props, _props]);
|
|
18
|
+
return /* @__PURE__ */ jsx(Stepper.Step, { label: mergedProps.label, description: mergedProps.description, ...mergedProps, children: mergedProps.children });
|
|
19
|
+
};
|
|
20
|
+
const CategorizationStepperButton = ({ labels, name, onClick, jsonFormsProps, children, ...props }) => {
|
|
21
|
+
const [, _props] = useContextProps(
|
|
22
|
+
`Categorization.Stepper.Button`,
|
|
23
|
+
`Categorization.Stepper.Button.[${labels}].${name}`,
|
|
24
|
+
{ name, onClick, children },
|
|
25
|
+
jsonFormsProps,
|
|
26
|
+
false
|
|
27
|
+
);
|
|
28
|
+
const mergedProps = useMemo(() => deepMerge(props, _props), [props, _props]);
|
|
29
|
+
return /* @__PURE__ */ jsx(Button, { ...mergedProps, children: mergedProps.children });
|
|
30
|
+
};
|
|
31
|
+
const CategorizationStepper = ({
|
|
32
|
+
labels,
|
|
33
|
+
categorization: _categorization,
|
|
34
|
+
categories: _categories,
|
|
35
|
+
renderers,
|
|
36
|
+
cells,
|
|
37
|
+
childProps,
|
|
38
|
+
t,
|
|
39
|
+
jsonFormsProps,
|
|
40
|
+
showNavButtons
|
|
41
|
+
}) => {
|
|
42
|
+
const [_value, _onChange] = useState((_categories == null ? void 0 : _categories[0]) ? deriveLabelForUISchemaElement(_categories[0], t) : "");
|
|
43
|
+
const contextPath = `Categorization.Stepper.[${labels}]`;
|
|
44
|
+
const [, componentProps] = useContextProps(
|
|
45
|
+
`Categorization.Stepper`,
|
|
46
|
+
contextPath,
|
|
47
|
+
{
|
|
48
|
+
categorization: _categorization,
|
|
49
|
+
categories: _categories,
|
|
50
|
+
value: _value,
|
|
51
|
+
onChange: _onChange
|
|
52
|
+
},
|
|
53
|
+
jsonFormsProps,
|
|
54
|
+
false
|
|
55
|
+
);
|
|
56
|
+
const { categories, value, onChange, stepProps, buttonProps, ...rest } = componentProps;
|
|
57
|
+
const categoryLabels = useMemo(
|
|
58
|
+
() => categories.map((category) => deriveLabelForUISchemaElement(category, t)),
|
|
59
|
+
[categories, t]
|
|
60
|
+
);
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
if (!categoryLabels.includes(value)) {
|
|
63
|
+
onChange((categories == null ? void 0 : categories[0]) ? deriveLabelForUISchemaElement(categories[0], t) : "");
|
|
64
|
+
}
|
|
65
|
+
}, [categoryLabels]);
|
|
66
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
67
|
+
/* @__PURE__ */ jsx(
|
|
68
|
+
Stepper,
|
|
69
|
+
{
|
|
70
|
+
active: categoryLabels.indexOf(value),
|
|
71
|
+
onStepClick: (index) => onChange(categoryLabels[index]),
|
|
72
|
+
...rest,
|
|
73
|
+
children: categories.map((category) => /* @__PURE__ */ jsx(
|
|
74
|
+
CategorizationStepperStep,
|
|
75
|
+
{
|
|
76
|
+
label: deriveLabelForUISchemaElement(category, t),
|
|
77
|
+
description: category.description,
|
|
78
|
+
jsonFormsProps,
|
|
79
|
+
...stepProps,
|
|
80
|
+
children: /* @__PURE__ */ jsx(LayoutPaddingContextProvider, { value: true, children: /* @__PURE__ */ jsx(MantineLayoutRenderer, { ...childProps, elements: category.elements, renderers, cells }) })
|
|
81
|
+
},
|
|
82
|
+
deriveLabelForUISchemaElement(category, t)
|
|
83
|
+
))
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
showNavButtons && /* @__PURE__ */ jsxs(Group, { justify: "end", children: [
|
|
87
|
+
/* @__PURE__ */ jsx(
|
|
88
|
+
CategorizationStepperButton,
|
|
89
|
+
{
|
|
90
|
+
labels,
|
|
91
|
+
name: "Previous",
|
|
92
|
+
onClick: () => {
|
|
93
|
+
const currentIndex = categoryLabels.indexOf(value);
|
|
94
|
+
if (currentIndex > 0) {
|
|
95
|
+
onChange(categoryLabels[currentIndex - 1]);
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
jsonFormsProps,
|
|
99
|
+
...buttonProps,
|
|
100
|
+
children: "Previous"
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
/* @__PURE__ */ jsx(
|
|
104
|
+
CategorizationStepperButton,
|
|
105
|
+
{
|
|
106
|
+
labels,
|
|
107
|
+
name: "Next",
|
|
108
|
+
onClick: () => {
|
|
109
|
+
const currentIndex = categoryLabels.indexOf(value);
|
|
110
|
+
if (currentIndex < categoryLabels.length - 1) {
|
|
111
|
+
onChange(categoryLabels[currentIndex + 1]);
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
jsonFormsProps,
|
|
115
|
+
...buttonProps,
|
|
116
|
+
children: "Next"
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
] })
|
|
120
|
+
] });
|
|
121
|
+
};
|
|
122
|
+
export {
|
|
123
|
+
CategorizationStepper
|
|
124
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { deepMerge } from "fastapi-rtk/utils";
|
|
3
|
+
import { deriveLabelForUISchemaElement } from "@jsonforms/core";
|
|
4
|
+
import { Tabs } from "@mantine/core";
|
|
5
|
+
import { useState, useMemo, useEffect } from "react";
|
|
6
|
+
import { LayoutPaddingContextProvider } from "../../../Contexts/LayoutPaddingContext.mjs";
|
|
7
|
+
import { useContextProps } from "../../../hooks/useContextProps.mjs";
|
|
8
|
+
import { MantineLayoutRenderer } from "../../../utils/layout.mjs";
|
|
9
|
+
const CategorizationTabsList = ({ labels, jsonFormsProps, children, ...props }) => {
|
|
10
|
+
const [, _props] = useContextProps(
|
|
11
|
+
`Categorization.Tabs.List`,
|
|
12
|
+
`Categorization.Tabs.List.[${labels}]`,
|
|
13
|
+
{ labels, children },
|
|
14
|
+
jsonFormsProps,
|
|
15
|
+
false
|
|
16
|
+
);
|
|
17
|
+
const mergedProps = useMemo(() => deepMerge(props, _props), [props, _props]);
|
|
18
|
+
return /* @__PURE__ */ jsx(Tabs.List, { ...mergedProps, children: mergedProps.children });
|
|
19
|
+
};
|
|
20
|
+
const CategorizationTabsTab = ({ value, jsonFormsProps, children, ...props }) => {
|
|
21
|
+
const [, _props] = useContextProps(
|
|
22
|
+
`Categorization.Tabs.Tab`,
|
|
23
|
+
`Categorization.Tabs.Tab.${value}`,
|
|
24
|
+
{ value, children },
|
|
25
|
+
jsonFormsProps,
|
|
26
|
+
false
|
|
27
|
+
);
|
|
28
|
+
const mergedProps = useMemo(() => deepMerge(props, _props), [props, _props]);
|
|
29
|
+
return /* @__PURE__ */ jsx(Tabs.Tab, { value, ...mergedProps, children: mergedProps == null ? void 0 : mergedProps.children });
|
|
30
|
+
};
|
|
31
|
+
const CategorizationTabsPanel = ({ value, jsonFormsProps, children, ...props }) => {
|
|
32
|
+
const [, _props] = useContextProps(
|
|
33
|
+
`Categorization.Tabs.Panel`,
|
|
34
|
+
`Categorization.Tabs.Panel.${value}`,
|
|
35
|
+
{ value, children },
|
|
36
|
+
jsonFormsProps,
|
|
37
|
+
false
|
|
38
|
+
);
|
|
39
|
+
const mergedProps = useMemo(() => deepMerge(props, _props), [props, _props]);
|
|
40
|
+
return /* @__PURE__ */ jsx(Tabs.Panel, { value, ...mergedProps, children: mergedProps == null ? void 0 : mergedProps.children });
|
|
41
|
+
};
|
|
42
|
+
const CategorizationTabs = ({
|
|
43
|
+
labels,
|
|
44
|
+
categorization: _categorization,
|
|
45
|
+
categories: _categories,
|
|
46
|
+
renderers,
|
|
47
|
+
cells,
|
|
48
|
+
childProps,
|
|
49
|
+
t,
|
|
50
|
+
jsonFormsProps
|
|
51
|
+
}) => {
|
|
52
|
+
const [_value, _onChange] = useState((_categories == null ? void 0 : _categories[0]) ? deriveLabelForUISchemaElement(_categories[0], t) : "");
|
|
53
|
+
const contextPath = `Categorization.Tabs.[${labels}]`;
|
|
54
|
+
const [, componentProps] = useContextProps(
|
|
55
|
+
`Categorization.Tabs`,
|
|
56
|
+
contextPath,
|
|
57
|
+
{
|
|
58
|
+
categorization: _categorization,
|
|
59
|
+
categories: _categories,
|
|
60
|
+
value: _value,
|
|
61
|
+
onChange: _onChange
|
|
62
|
+
},
|
|
63
|
+
jsonFormsProps,
|
|
64
|
+
false
|
|
65
|
+
);
|
|
66
|
+
const { categories, value, onChange, listProps, tabProps, panelProps, ...rest } = componentProps;
|
|
67
|
+
const categoryLabels = useMemo(
|
|
68
|
+
() => categories.map((category) => deriveLabelForUISchemaElement(category, t)),
|
|
69
|
+
[categories, t]
|
|
70
|
+
);
|
|
71
|
+
useEffect(() => {
|
|
72
|
+
if (!categoryLabels.includes(value)) {
|
|
73
|
+
onChange((categories == null ? void 0 : categories[0]) ? deriveLabelForUISchemaElement(categories[0], t) : "");
|
|
74
|
+
}
|
|
75
|
+
}, [categoryLabels]);
|
|
76
|
+
return /* @__PURE__ */ jsxs(Tabs, { value, onChange, ...rest, children: [
|
|
77
|
+
/* @__PURE__ */ jsx(CategorizationTabsList, { labels, jsonFormsProps, ...listProps, children: categoryLabels.map((label) => /* @__PURE__ */ jsx(CategorizationTabsTab, { value: label, jsonFormsProps, ...tabProps, children: label }, label)) }),
|
|
78
|
+
_categories.map((category) => /* @__PURE__ */ jsx(
|
|
79
|
+
CategorizationTabsPanel,
|
|
80
|
+
{
|
|
81
|
+
value: deriveLabelForUISchemaElement(category, t),
|
|
82
|
+
jsonFormsProps,
|
|
83
|
+
pt: "xs",
|
|
84
|
+
...panelProps,
|
|
85
|
+
children: /* @__PURE__ */ jsx(LayoutPaddingContextProvider, { value: true, children: /* @__PURE__ */ jsx(MantineLayoutRenderer, { ...childProps, elements: category.elements, renderers, cells }) })
|
|
86
|
+
},
|
|
87
|
+
deriveLabelForUISchemaElement(category, t)
|
|
88
|
+
))
|
|
89
|
+
] });
|
|
90
|
+
};
|
|
91
|
+
export {
|
|
92
|
+
CategorizationTabs
|
|
93
|
+
};
|
|
@@ -14,7 +14,7 @@ import { MantineOneOfEnumControl, mantineOneOfEnumControlTester } from "../contr
|
|
|
14
14
|
import { MantineTextControl, mantineTextControlTester } from "../controls/MantineTextControl.mjs";
|
|
15
15
|
import { MantineTimeControl, mantineTimeControlTester } from "../controls/MantineTimeControl.mjs";
|
|
16
16
|
import { MantineLabelRenderer, MantineLabelTester } from "../labels/MantineLabelRenderer.mjs";
|
|
17
|
-
import { MantineCategorizationLayoutRenderer, MantineCategorizationLayoutTester } from "../layouts/MantineCategorizationLayoutRenderer.mjs";
|
|
17
|
+
import { MantineCategorizationLayoutRenderer, MantineCategorizationLayoutTester } from "../layouts/Categorization/MantineCategorizationLayoutRenderer.mjs";
|
|
18
18
|
import { MantineGroupLayoutRenderer, MantineGroupLayoutTester } from "../layouts/MantineGroupLayoutRenderer.mjs";
|
|
19
19
|
import { MantineHorizontalLayoutRenderer, mantineHorizontalLayoutTester } from "../layouts/MantineHotizontalLayoutRenderer.mjs";
|
|
20
20
|
import { MantineVerticalLayoutRenderer, mantineVerticalLayoutTester } from "../layouts/MantineVerticalLayoutRenderer.mjs";
|
|
@@ -3,14 +3,16 @@ import { JsonFormsDispatch } from "@jsonforms/react";
|
|
|
3
3
|
import { Grid } from "@mantine/core";
|
|
4
4
|
import isEmpty from "../_virtual/isEmpty.mjs";
|
|
5
5
|
import React from "react";
|
|
6
|
+
import { useLayoutPadding, LayoutPaddingContextProvider } from "../Contexts/LayoutPaddingContext.mjs";
|
|
6
7
|
const renderLayoutElements = (elements, schema, path, enabled, direction, renderers, cells) => {
|
|
8
|
+
const withPadding = useLayoutPadding({ throwOnError: false, defaultValue: false });
|
|
7
9
|
return elements.map((child, index) => /* @__PURE__ */ jsx(
|
|
8
10
|
Grid.Col,
|
|
9
11
|
{
|
|
10
12
|
span: direction === "row" ? 12 / elements.length : 12,
|
|
11
13
|
style: { alignContent: "start" },
|
|
12
|
-
p: 0,
|
|
13
|
-
children: /* @__PURE__ */ jsx(
|
|
14
|
+
p: withPadding && child.elements ? void 0 : 0,
|
|
15
|
+
children: /* @__PURE__ */ jsx(LayoutPaddingContextProvider, { value: false, children: /* @__PURE__ */ jsx(
|
|
14
16
|
JsonFormsDispatch,
|
|
15
17
|
{
|
|
16
18
|
uischema: child,
|
|
@@ -20,7 +22,7 @@ const renderLayoutElements = (elements, schema, path, enabled, direction, render
|
|
|
20
22
|
renderers,
|
|
21
23
|
cells
|
|
22
24
|
}
|
|
23
|
-
)
|
|
25
|
+
) })
|
|
24
26
|
},
|
|
25
27
|
`${path}-${index}`
|
|
26
28
|
));
|