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
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const core = require("@jsonforms/core");
|
|
5
|
+
const react = require("@jsonforms/react");
|
|
6
|
+
const React = require("react");
|
|
7
|
+
const withAjvProps = require("../../utils/withAjvProps.cjs");
|
|
8
|
+
const withDebounce = require("../../utils/withDebounce.cjs");
|
|
9
|
+
const CategorizationCards = require("./variants/CategorizationCards.cjs");
|
|
10
|
+
const CategorizationStepper = require("./variants/CategorizationStepper.cjs");
|
|
11
|
+
const CategorizationTabs = require("./variants/CategorizationTabs.cjs");
|
|
12
|
+
const Component = (props) => {
|
|
13
|
+
var _a, _b, _c, _d;
|
|
14
|
+
const { schema, uischema, path, enabled, visible, renderers, cells, data, ajv, t } = props;
|
|
15
|
+
const categorization = uischema;
|
|
16
|
+
const categories = React.useMemo(
|
|
17
|
+
() => categorization.elements.filter((category) => core.isVisible(category, data, void 0, ajv)),
|
|
18
|
+
[categorization.elements, ajv, data]
|
|
19
|
+
);
|
|
20
|
+
const labels = React.useMemo(
|
|
21
|
+
() => categorization.elements.map((c) => core.deriveLabelForUISchemaElement(c, t)).join("|"),
|
|
22
|
+
[categorization.elements, t]
|
|
23
|
+
);
|
|
24
|
+
const childProps = { schema, path, enabled, visible, direction: "column" };
|
|
25
|
+
if (((_a = uischema.options) == null ? void 0 : _a.variant) === "card" || ((_b = uischema.options) == null ? void 0 : _b.variant) === "cards") {
|
|
26
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
27
|
+
CategorizationCards.CategorizationCards,
|
|
28
|
+
{
|
|
29
|
+
labels,
|
|
30
|
+
categorization,
|
|
31
|
+
categories,
|
|
32
|
+
renderers,
|
|
33
|
+
cells,
|
|
34
|
+
childProps,
|
|
35
|
+
t,
|
|
36
|
+
jsonFormsProps: props
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
} else if (((_c = uischema.options) == null ? void 0 : _c.variant) === "stepper") {
|
|
40
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
41
|
+
CategorizationStepper.CategorizationStepper,
|
|
42
|
+
{
|
|
43
|
+
labels,
|
|
44
|
+
categorization,
|
|
45
|
+
categories,
|
|
46
|
+
renderers,
|
|
47
|
+
cells,
|
|
48
|
+
childProps,
|
|
49
|
+
t,
|
|
50
|
+
jsonFormsProps: props,
|
|
51
|
+
showNavButtons: (_d = uischema.options) == null ? void 0 : _d.showNavButtons
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56
|
+
CategorizationTabs.CategorizationTabs,
|
|
57
|
+
{
|
|
58
|
+
labels,
|
|
59
|
+
categorization,
|
|
60
|
+
categories,
|
|
61
|
+
renderers,
|
|
62
|
+
cells,
|
|
63
|
+
childProps,
|
|
64
|
+
t,
|
|
65
|
+
jsonFormsProps: props
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
};
|
|
69
|
+
const MantineCategorizationLayoutTester = core.rankWith(1, core.uiTypeIs("Categorization"));
|
|
70
|
+
const MantineCategorizationLayoutRenderer = withAjvProps.withAjvProps(
|
|
71
|
+
react.withTranslateProps(react.withJsonFormsLayoutProps(withDebounce.withDebounce(Component)))
|
|
72
|
+
);
|
|
73
|
+
exports.MantineCategorizationLayoutRenderer = MantineCategorizationLayoutRenderer;
|
|
74
|
+
exports.MantineCategorizationLayoutTester = MantineCategorizationLayoutTester;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const utils = require("fastapi-rtk/utils");
|
|
5
|
+
const core = require("@jsonforms/core");
|
|
6
|
+
const core$1 = require("@mantine/core");
|
|
7
|
+
const React = require("react");
|
|
8
|
+
const LayoutPaddingContext = require("../../../Contexts/LayoutPaddingContext.cjs");
|
|
9
|
+
const useContextProps = require("../../../hooks/useContextProps.cjs");
|
|
10
|
+
const layout = require("../../../utils/layout.cjs");
|
|
11
|
+
const CategorizationCardsGroup = ({ labels, jsonFormsProps, children, ...props }) => {
|
|
12
|
+
const [, _props] = useContextProps.useContextProps(
|
|
13
|
+
`Categorization.Cards.Group`,
|
|
14
|
+
`Categorization.Cards.Group.[${labels}]`,
|
|
15
|
+
{ children },
|
|
16
|
+
jsonFormsProps,
|
|
17
|
+
false
|
|
18
|
+
);
|
|
19
|
+
const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
|
|
20
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core$1.Group, { ...mergedProps, children: mergedProps.children });
|
|
21
|
+
};
|
|
22
|
+
const CategorizationCardsCard = ({ value, jsonFormsProps, children, ...props }) => {
|
|
23
|
+
const [, _props] = useContextProps.useContextProps(
|
|
24
|
+
`Categorization.Cards.Card`,
|
|
25
|
+
`Categorization.Cards.Card.${value}`,
|
|
26
|
+
{ value, children },
|
|
27
|
+
jsonFormsProps,
|
|
28
|
+
false
|
|
29
|
+
);
|
|
30
|
+
const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core$1.Card, { withBorder: true, shadow: "md", p: "xs", ...mergedProps, children: mergedProps.children });
|
|
32
|
+
};
|
|
33
|
+
const CategorizationCards = ({
|
|
34
|
+
labels,
|
|
35
|
+
categorization: _categorization,
|
|
36
|
+
categories: _categories,
|
|
37
|
+
renderers,
|
|
38
|
+
cells,
|
|
39
|
+
childProps,
|
|
40
|
+
t,
|
|
41
|
+
jsonFormsProps
|
|
42
|
+
}) => {
|
|
43
|
+
const [_value, _onChange] = React.useState((_categories == null ? void 0 : _categories[0]) ? core.deriveLabelForUISchemaElement(_categories[0], t) : "");
|
|
44
|
+
const contextPath = `Categorization.Cards.[${labels}]`;
|
|
45
|
+
const [, componentProps] = useContextProps.useContextProps(
|
|
46
|
+
`Categorization.Cards`,
|
|
47
|
+
contextPath,
|
|
48
|
+
{
|
|
49
|
+
categorization: _categorization,
|
|
50
|
+
categories: _categories,
|
|
51
|
+
value: _value,
|
|
52
|
+
onChange: _onChange
|
|
53
|
+
},
|
|
54
|
+
jsonFormsProps,
|
|
55
|
+
false
|
|
56
|
+
);
|
|
57
|
+
const { categories, value, onChange, groupProps, cardProps } = componentProps;
|
|
58
|
+
const categoryLabels = React.useMemo(
|
|
59
|
+
() => categories.map((category) => core.deriveLabelForUISchemaElement(category, t)),
|
|
60
|
+
[categories, t]
|
|
61
|
+
);
|
|
62
|
+
React.useEffect(() => {
|
|
63
|
+
if (!categoryLabels.includes(value)) {
|
|
64
|
+
onChange((categories == null ? void 0 : categories[0]) ? core.deriveLabelForUISchemaElement(categories[0], t) : "");
|
|
65
|
+
}
|
|
66
|
+
}, [categoryLabels]);
|
|
67
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
68
|
+
/* @__PURE__ */ jsxRuntime.jsx(CategorizationCardsGroup, { labels, jsonFormsProps, ...groupProps, children: categoryLabels.map((label) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
69
|
+
CategorizationCardsCard,
|
|
70
|
+
{
|
|
71
|
+
value: label,
|
|
72
|
+
jsonFormsProps,
|
|
73
|
+
onClick: (e) => {
|
|
74
|
+
e.stopPropagation();
|
|
75
|
+
onChange(label);
|
|
76
|
+
},
|
|
77
|
+
style: { cursor: "pointer" },
|
|
78
|
+
...cardProps,
|
|
79
|
+
children: label
|
|
80
|
+
},
|
|
81
|
+
label
|
|
82
|
+
)) }),
|
|
83
|
+
categories.filter((category) => core.deriveLabelForUISchemaElement(category, t) === value).map((category) => /* @__PURE__ */ jsxRuntime.jsx(LayoutPaddingContext.LayoutPaddingContextProvider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(layout.MantineLayoutRenderer, { ...childProps, elements: category.elements, renderers, cells }) }, core.deriveLabelForUISchemaElement(category, t)))
|
|
84
|
+
] });
|
|
85
|
+
};
|
|
86
|
+
exports.CategorizationCards = CategorizationCards;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const utils = require("fastapi-rtk/utils");
|
|
5
|
+
const core = require("@jsonforms/core");
|
|
6
|
+
const core$1 = require("@mantine/core");
|
|
7
|
+
const React = require("react");
|
|
8
|
+
const LayoutPaddingContext = require("../../../Contexts/LayoutPaddingContext.cjs");
|
|
9
|
+
const useContextProps = require("../../../hooks/useContextProps.cjs");
|
|
10
|
+
const layout = require("../../../utils/layout.cjs");
|
|
11
|
+
const CategorizationStepperStep = ({ label, description, jsonFormsProps, children, ...props }) => {
|
|
12
|
+
const [, _props] = useContextProps.useContextProps(
|
|
13
|
+
`Categorization.Stepper.Step`,
|
|
14
|
+
`Categorization.Stepper.Step.${label}`,
|
|
15
|
+
{ label, description, children },
|
|
16
|
+
jsonFormsProps,
|
|
17
|
+
false
|
|
18
|
+
);
|
|
19
|
+
const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
|
|
20
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core$1.Stepper.Step, { label: mergedProps.label, description: mergedProps.description, ...mergedProps, children: mergedProps.children });
|
|
21
|
+
};
|
|
22
|
+
const CategorizationStepperButton = ({ labels, name, onClick, jsonFormsProps, children, ...props }) => {
|
|
23
|
+
const [, _props] = useContextProps.useContextProps(
|
|
24
|
+
`Categorization.Stepper.Button`,
|
|
25
|
+
`Categorization.Stepper.Button.[${labels}].${name}`,
|
|
26
|
+
{ name, onClick, children },
|
|
27
|
+
jsonFormsProps,
|
|
28
|
+
false
|
|
29
|
+
);
|
|
30
|
+
const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core$1.Button, { ...mergedProps, children: mergedProps.children });
|
|
32
|
+
};
|
|
33
|
+
const CategorizationStepper = ({
|
|
34
|
+
labels,
|
|
35
|
+
categorization: _categorization,
|
|
36
|
+
categories: _categories,
|
|
37
|
+
renderers,
|
|
38
|
+
cells,
|
|
39
|
+
childProps,
|
|
40
|
+
t,
|
|
41
|
+
jsonFormsProps,
|
|
42
|
+
showNavButtons
|
|
43
|
+
}) => {
|
|
44
|
+
const [_value, _onChange] = React.useState((_categories == null ? void 0 : _categories[0]) ? core.deriveLabelForUISchemaElement(_categories[0], t) : "");
|
|
45
|
+
const contextPath = `Categorization.Stepper.[${labels}]`;
|
|
46
|
+
const [, componentProps] = useContextProps.useContextProps(
|
|
47
|
+
`Categorization.Stepper`,
|
|
48
|
+
contextPath,
|
|
49
|
+
{
|
|
50
|
+
categorization: _categorization,
|
|
51
|
+
categories: _categories,
|
|
52
|
+
value: _value,
|
|
53
|
+
onChange: _onChange
|
|
54
|
+
},
|
|
55
|
+
jsonFormsProps,
|
|
56
|
+
false
|
|
57
|
+
);
|
|
58
|
+
const { categories, value, onChange, stepProps, buttonProps, ...rest } = componentProps;
|
|
59
|
+
const categoryLabels = React.useMemo(
|
|
60
|
+
() => categories.map((category) => core.deriveLabelForUISchemaElement(category, t)),
|
|
61
|
+
[categories, t]
|
|
62
|
+
);
|
|
63
|
+
React.useEffect(() => {
|
|
64
|
+
if (!categoryLabels.includes(value)) {
|
|
65
|
+
onChange((categories == null ? void 0 : categories[0]) ? core.deriveLabelForUISchemaElement(categories[0], t) : "");
|
|
66
|
+
}
|
|
67
|
+
}, [categoryLabels]);
|
|
68
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
69
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
70
|
+
core$1.Stepper,
|
|
71
|
+
{
|
|
72
|
+
active: categoryLabels.indexOf(value),
|
|
73
|
+
onStepClick: (index) => onChange(categoryLabels[index]),
|
|
74
|
+
...rest,
|
|
75
|
+
children: categories.map((category) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
76
|
+
CategorizationStepperStep,
|
|
77
|
+
{
|
|
78
|
+
label: core.deriveLabelForUISchemaElement(category, t),
|
|
79
|
+
description: category.description,
|
|
80
|
+
jsonFormsProps,
|
|
81
|
+
...stepProps,
|
|
82
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LayoutPaddingContext.LayoutPaddingContextProvider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(layout.MantineLayoutRenderer, { ...childProps, elements: category.elements, renderers, cells }) })
|
|
83
|
+
},
|
|
84
|
+
core.deriveLabelForUISchemaElement(category, t)
|
|
85
|
+
))
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
showNavButtons && /* @__PURE__ */ jsxRuntime.jsxs(core$1.Group, { justify: "end", children: [
|
|
89
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
90
|
+
CategorizationStepperButton,
|
|
91
|
+
{
|
|
92
|
+
labels,
|
|
93
|
+
name: "Previous",
|
|
94
|
+
onClick: () => {
|
|
95
|
+
const currentIndex = categoryLabels.indexOf(value);
|
|
96
|
+
if (currentIndex > 0) {
|
|
97
|
+
onChange(categoryLabels[currentIndex - 1]);
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
jsonFormsProps,
|
|
101
|
+
...buttonProps,
|
|
102
|
+
children: "Previous"
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
106
|
+
CategorizationStepperButton,
|
|
107
|
+
{
|
|
108
|
+
labels,
|
|
109
|
+
name: "Next",
|
|
110
|
+
onClick: () => {
|
|
111
|
+
const currentIndex = categoryLabels.indexOf(value);
|
|
112
|
+
if (currentIndex < categoryLabels.length - 1) {
|
|
113
|
+
onChange(categoryLabels[currentIndex + 1]);
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
jsonFormsProps,
|
|
117
|
+
...buttonProps,
|
|
118
|
+
children: "Next"
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
] })
|
|
122
|
+
] });
|
|
123
|
+
};
|
|
124
|
+
exports.CategorizationStepper = CategorizationStepper;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const utils = require("fastapi-rtk/utils");
|
|
5
|
+
const core = require("@jsonforms/core");
|
|
6
|
+
const core$1 = require("@mantine/core");
|
|
7
|
+
const React = require("react");
|
|
8
|
+
const LayoutPaddingContext = require("../../../Contexts/LayoutPaddingContext.cjs");
|
|
9
|
+
const useContextProps = require("../../../hooks/useContextProps.cjs");
|
|
10
|
+
const layout = require("../../../utils/layout.cjs");
|
|
11
|
+
const CategorizationTabsList = ({ labels, jsonFormsProps, children, ...props }) => {
|
|
12
|
+
const [, _props] = useContextProps.useContextProps(
|
|
13
|
+
`Categorization.Tabs.List`,
|
|
14
|
+
`Categorization.Tabs.List.[${labels}]`,
|
|
15
|
+
{ labels, children },
|
|
16
|
+
jsonFormsProps,
|
|
17
|
+
false
|
|
18
|
+
);
|
|
19
|
+
const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
|
|
20
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core$1.Tabs.List, { ...mergedProps, children: mergedProps.children });
|
|
21
|
+
};
|
|
22
|
+
const CategorizationTabsTab = ({ value, jsonFormsProps, children, ...props }) => {
|
|
23
|
+
const [, _props] = useContextProps.useContextProps(
|
|
24
|
+
`Categorization.Tabs.Tab`,
|
|
25
|
+
`Categorization.Tabs.Tab.${value}`,
|
|
26
|
+
{ value, children },
|
|
27
|
+
jsonFormsProps,
|
|
28
|
+
false
|
|
29
|
+
);
|
|
30
|
+
const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core$1.Tabs.Tab, { value, ...mergedProps, children: mergedProps == null ? void 0 : mergedProps.children });
|
|
32
|
+
};
|
|
33
|
+
const CategorizationTabsPanel = ({ value, jsonFormsProps, children, ...props }) => {
|
|
34
|
+
const [, _props] = useContextProps.useContextProps(
|
|
35
|
+
`Categorization.Tabs.Panel`,
|
|
36
|
+
`Categorization.Tabs.Panel.${value}`,
|
|
37
|
+
{ value, children },
|
|
38
|
+
jsonFormsProps,
|
|
39
|
+
false
|
|
40
|
+
);
|
|
41
|
+
const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
|
|
42
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core$1.Tabs.Panel, { value, ...mergedProps, children: mergedProps == null ? void 0 : mergedProps.children });
|
|
43
|
+
};
|
|
44
|
+
const CategorizationTabs = ({
|
|
45
|
+
labels,
|
|
46
|
+
categorization: _categorization,
|
|
47
|
+
categories: _categories,
|
|
48
|
+
renderers,
|
|
49
|
+
cells,
|
|
50
|
+
childProps,
|
|
51
|
+
t,
|
|
52
|
+
jsonFormsProps
|
|
53
|
+
}) => {
|
|
54
|
+
const [_value, _onChange] = React.useState((_categories == null ? void 0 : _categories[0]) ? core.deriveLabelForUISchemaElement(_categories[0], t) : "");
|
|
55
|
+
const contextPath = `Categorization.Tabs.[${labels}]`;
|
|
56
|
+
const [, componentProps] = useContextProps.useContextProps(
|
|
57
|
+
`Categorization.Tabs`,
|
|
58
|
+
contextPath,
|
|
59
|
+
{
|
|
60
|
+
categorization: _categorization,
|
|
61
|
+
categories: _categories,
|
|
62
|
+
value: _value,
|
|
63
|
+
onChange: _onChange
|
|
64
|
+
},
|
|
65
|
+
jsonFormsProps,
|
|
66
|
+
false
|
|
67
|
+
);
|
|
68
|
+
const { categories, value, onChange, listProps, tabProps, panelProps, ...rest } = componentProps;
|
|
69
|
+
const categoryLabels = React.useMemo(
|
|
70
|
+
() => categories.map((category) => core.deriveLabelForUISchemaElement(category, t)),
|
|
71
|
+
[categories, t]
|
|
72
|
+
);
|
|
73
|
+
React.useEffect(() => {
|
|
74
|
+
if (!categoryLabels.includes(value)) {
|
|
75
|
+
onChange((categories == null ? void 0 : categories[0]) ? core.deriveLabelForUISchemaElement(categories[0], t) : "");
|
|
76
|
+
}
|
|
77
|
+
}, [categoryLabels]);
|
|
78
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(core$1.Tabs, { value, onChange, ...rest, children: [
|
|
79
|
+
/* @__PURE__ */ jsxRuntime.jsx(CategorizationTabsList, { labels, jsonFormsProps, ...listProps, children: categoryLabels.map((label) => /* @__PURE__ */ jsxRuntime.jsx(CategorizationTabsTab, { value: label, jsonFormsProps, ...tabProps, children: label }, label)) }),
|
|
80
|
+
_categories.map((category) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
81
|
+
CategorizationTabsPanel,
|
|
82
|
+
{
|
|
83
|
+
value: core.deriveLabelForUISchemaElement(category, t),
|
|
84
|
+
jsonFormsProps,
|
|
85
|
+
pt: "xs",
|
|
86
|
+
...panelProps,
|
|
87
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LayoutPaddingContext.LayoutPaddingContextProvider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(layout.MantineLayoutRenderer, { ...childProps, elements: category.elements, renderers, cells }) })
|
|
88
|
+
},
|
|
89
|
+
core.deriveLabelForUISchemaElement(category, t)
|
|
90
|
+
))
|
|
91
|
+
] });
|
|
92
|
+
};
|
|
93
|
+
exports.CategorizationTabs = CategorizationTabs;
|
|
@@ -16,7 +16,7 @@ const MantineOneOfEnumControl = require("../controls/MantineOneOfEnumControl.cjs
|
|
|
16
16
|
const MantineTextControl = require("../controls/MantineTextControl.cjs");
|
|
17
17
|
const MantineTimeControl = require("../controls/MantineTimeControl.cjs");
|
|
18
18
|
const MantineLabelRenderer = require("../labels/MantineLabelRenderer.cjs");
|
|
19
|
-
const MantineCategorizationLayoutRenderer = require("../layouts/MantineCategorizationLayoutRenderer.cjs");
|
|
19
|
+
const MantineCategorizationLayoutRenderer = require("../layouts/Categorization/MantineCategorizationLayoutRenderer.cjs");
|
|
20
20
|
const MantineGroupLayoutRenderer = require("../layouts/MantineGroupLayoutRenderer.cjs");
|
|
21
21
|
const MantineHotizontalLayoutRenderer = require("../layouts/MantineHotizontalLayoutRenderer.cjs");
|
|
22
22
|
const MantineVerticalLayoutRenderer = require("../layouts/MantineVerticalLayoutRenderer.cjs");
|
|
@@ -5,14 +5,16 @@ const react = require("@jsonforms/react");
|
|
|
5
5
|
const core = require("@mantine/core");
|
|
6
6
|
const isEmpty = require("../_virtual/isEmpty.cjs");
|
|
7
7
|
const React = require("react");
|
|
8
|
+
const LayoutPaddingContext = require("../Contexts/LayoutPaddingContext.cjs");
|
|
8
9
|
const renderLayoutElements = (elements, schema, path, enabled, direction, renderers, cells) => {
|
|
10
|
+
const withPadding = LayoutPaddingContext.useLayoutPadding({ throwOnError: false, defaultValue: false });
|
|
9
11
|
return elements.map((child, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
10
12
|
core.Grid.Col,
|
|
11
13
|
{
|
|
12
14
|
span: direction === "row" ? 12 / elements.length : 12,
|
|
13
15
|
style: { alignContent: "start" },
|
|
14
|
-
p: 0,
|
|
15
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16
|
+
p: withPadding && child.elements ? void 0 : 0,
|
|
17
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LayoutPaddingContext.LayoutPaddingContextProvider, { value: false, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16
18
|
react.JsonFormsDispatch,
|
|
17
19
|
{
|
|
18
20
|
uischema: child,
|
|
@@ -22,7 +24,7 @@ const renderLayoutElements = (elements, schema, path, enabled, direction, render
|
|
|
22
24
|
renderers,
|
|
23
25
|
cells
|
|
24
26
|
}
|
|
25
|
-
)
|
|
27
|
+
) })
|
|
26
28
|
},
|
|
27
29
|
`${path}-${index}`
|
|
28
30
|
));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const core = require("@jsonforms/core");
|
|
5
|
+
const react = require("@jsonforms/react");
|
|
6
|
+
const withAjvProps = (Component) => function WithAjvProps(props) {
|
|
7
|
+
const ctx = react.useJsonForms();
|
|
8
|
+
const ajv = core.getAjv({ jsonforms: { ...ctx } });
|
|
9
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Component, { ...props, ajv });
|
|
10
|
+
};
|
|
11
|
+
exports.withAjvProps = withAjvProps;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const core = require("@mantine/core");
|
|
5
|
+
const useThemeCustomizer = require("../hooks/useThemeCustomizer.cjs");
|
|
6
|
+
const withDebounce = (Component) => {
|
|
7
|
+
return function WithDebounce(props) {
|
|
8
|
+
const customizer = useThemeCustomizer.useThemeCustomizer({ __: { debounce: true } });
|
|
9
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core.MantineThemeProvider, { theme: customizer, children: /* @__PURE__ */ jsxRuntime.jsx(Component, { ...props }) });
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
exports.withDebounce = withDebounce;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createSafeContext } from "fastapi-rtk/utils";
|
|
2
|
+
const [LayoutPaddingContextProvider, useLayoutPadding] = createSafeContext(
|
|
3
|
+
"useLayoutPadding must be used within a LayoutPaddingContextProvider"
|
|
4
|
+
);
|
|
5
|
+
export {
|
|
6
|
+
LayoutPaddingContextProvider,
|
|
7
|
+
useLayoutPadding
|
|
8
|
+
};
|
|
@@ -10,9 +10,11 @@ const JsonFormsWithCustomizer = memo(function JsonFormsWithCustomizer2({
|
|
|
10
10
|
uischema,
|
|
11
11
|
data,
|
|
12
12
|
onChange,
|
|
13
|
-
customizer
|
|
13
|
+
customizer,
|
|
14
|
+
debounce = false,
|
|
15
|
+
...props
|
|
14
16
|
}) {
|
|
15
|
-
const theme = useThemeCustomizer(customizer);
|
|
17
|
+
const theme = useThemeCustomizer({ ...customizer, __: { debounce } });
|
|
16
18
|
return /* @__PURE__ */ jsx(MantineThemeProvider, { theme, children: /* @__PURE__ */ jsx(
|
|
17
19
|
JsonForms,
|
|
18
20
|
{
|
|
@@ -21,7 +23,8 @@ const JsonFormsWithCustomizer = memo(function JsonFormsWithCustomizer2({
|
|
|
21
23
|
renderers: mantineRenderers,
|
|
22
24
|
cells: mantineCells,
|
|
23
25
|
data,
|
|
24
|
-
onChange
|
|
26
|
+
onChange,
|
|
27
|
+
...props
|
|
25
28
|
}
|
|
26
29
|
) });
|
|
27
30
|
});
|
|
@@ -5,16 +5,24 @@ import { useBooleanProps } from "../hooks/useBooleanProps.mjs";
|
|
|
5
5
|
import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
6
6
|
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
7
7
|
function MantineBooleanInput({ margin, ...props }) {
|
|
8
|
-
|
|
9
|
-
const {
|
|
10
|
-
const
|
|
11
|
-
const
|
|
8
|
+
var _a;
|
|
9
|
+
const { value, ...commonProps } = useCommonProps(props);
|
|
10
|
+
const { path, schema, uischema } = props;
|
|
11
|
+
const isCheckbox = useMemo(
|
|
12
|
+
() => {
|
|
13
|
+
var _a2;
|
|
14
|
+
return (((_a2 = uischema.options) == null ? void 0 : _a2.variant) ?? schema.format) === "checkbox";
|
|
15
|
+
},
|
|
16
|
+
[schema.format, (_a = uischema.options) == null ? void 0 : _a.variant]
|
|
17
|
+
);
|
|
18
|
+
const booleanProps = useBooleanProps(isCheckbox, { value, onChange: commonProps.onChange });
|
|
12
19
|
const componentProps = useMemo(() => ({ ...commonProps, ...booleanProps }), [booleanProps, commonProps]);
|
|
13
20
|
const [Component, _props] = useContextProps("Boolean", path, componentProps, props);
|
|
14
21
|
if (!props.visible) {
|
|
15
22
|
return null;
|
|
16
23
|
}
|
|
17
|
-
|
|
24
|
+
const { inputWrapperOrder, ...__props } = _props;
|
|
25
|
+
return /* @__PURE__ */ jsx(Box, { m: Component === null ? void 0 : margin, children: Component === void 0 ? isCheckbox ? /* @__PURE__ */ jsx(Checkbox, { ...__props }) : /* @__PURE__ */ jsx(Select, { inputWrapperOrder, ...__props }) : Component });
|
|
18
26
|
}
|
|
19
27
|
export {
|
|
20
28
|
MantineBooleanInput
|
|
@@ -6,9 +6,9 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
|
6
6
|
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
7
7
|
import { useDateProps } from "../hooks/useDateProps.mjs";
|
|
8
8
|
function MantineDateInput({ margin, ...props }) {
|
|
9
|
-
const commonProps = useCommonProps(props);
|
|
10
|
-
const { path
|
|
11
|
-
const dateProps = useDateProps("date", true, {
|
|
9
|
+
const { value, ...commonProps } = useCommonProps(props);
|
|
10
|
+
const { path } = props;
|
|
11
|
+
const dateProps = useDateProps("date", true, { value, onChange: commonProps.onChange });
|
|
12
12
|
const componentProps = useMemo(() => ({ ...commonProps, ...dateProps }), [commonProps, dateProps]);
|
|
13
13
|
const [Component, _props] = useContextProps("Date", path, componentProps, props);
|
|
14
14
|
if (!props.visible) {
|
|
@@ -7,22 +7,22 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
|
7
7
|
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
8
8
|
import { useDateProps } from "../hooks/useDateProps.mjs";
|
|
9
9
|
function MantineDateTimeInput({ margin, ...props }) {
|
|
10
|
-
const commonProps = useCommonProps(props);
|
|
11
|
-
const { path,
|
|
10
|
+
const { value, ...commonProps } = useCommonProps(props);
|
|
11
|
+
const { path, uischema } = props;
|
|
12
12
|
const { initialUTC: __initialUTC } = uischema.options || {};
|
|
13
|
-
const _dateProps = useDateProps("date-time", false, {
|
|
13
|
+
const _dateProps = useDateProps("date-time", false, { value, toggle: () => null, onChange: commonProps.onChange });
|
|
14
14
|
const [, { initialUTC }] = useContextProps("DateTime", path, { ...commonProps, ..._dateProps }, props);
|
|
15
15
|
const [isUTC, { open: setToUTC, close: setToLocal, toggle }] = useDisclosure(initialUTC ?? __initialUTC);
|
|
16
16
|
const { initialUTC: _initialUTC, ...dateProps } = useDateProps("date-time", isUTC, {
|
|
17
|
-
|
|
17
|
+
value,
|
|
18
18
|
toggle,
|
|
19
19
|
onChange: commonProps.onChange
|
|
20
20
|
});
|
|
21
21
|
useEffect(() => {
|
|
22
|
-
if (
|
|
23
|
-
|
|
22
|
+
if (value) {
|
|
23
|
+
value.endsWith("Z") ? setToUTC() : setToLocal();
|
|
24
24
|
}
|
|
25
|
-
}, [
|
|
25
|
+
}, [value, setToLocal, setToUTC]);
|
|
26
26
|
const componentProps = useMemo(() => ({ ...commonProps, ...dateProps }), [commonProps, dateProps]);
|
|
27
27
|
const [Component, { initialUTC: _, ..._props }] = useContextProps("DateTime", path, componentProps, props);
|
|
28
28
|
if (!props.visible) {
|
|
@@ -5,9 +5,9 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
|
5
5
|
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
6
6
|
import { useMultiSelectProps } from "../hooks/useMultiSelectProps.mjs";
|
|
7
7
|
function MantineEnumArrayInput({ margin, ...props }) {
|
|
8
|
-
const commonProps = useCommonProps(props);
|
|
9
|
-
const { path
|
|
10
|
-
const multiSelectProps = useMultiSelectProps(
|
|
8
|
+
const { value, ...commonProps } = useCommonProps(props);
|
|
9
|
+
const { path } = props;
|
|
10
|
+
const multiSelectProps = useMultiSelectProps(value, props.schema.items, { onChange: commonProps.onChange });
|
|
11
11
|
const componentProps = useMemo(() => ({ ...commonProps, ...multiSelectProps }), [commonProps, multiSelectProps]);
|
|
12
12
|
const [Component, _props] = useContextProps("EnumArray", path, componentProps, props);
|
|
13
13
|
if (!props.visible) {
|
|
@@ -5,9 +5,9 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
|
5
5
|
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
6
6
|
import { useSelectProps } from "../hooks/useSelectProps.mjs";
|
|
7
7
|
function MantineEnumInput({ margin, ...props }) {
|
|
8
|
-
const commonProps = useCommonProps(props);
|
|
9
|
-
const { path
|
|
10
|
-
const selectProps = useSelectProps(
|
|
8
|
+
const { value, ...commonProps } = useCommonProps(props);
|
|
9
|
+
const { path } = props;
|
|
10
|
+
const selectProps = useSelectProps(value, props.schema);
|
|
11
11
|
const componentProps = useMemo(() => ({ ...commonProps, ...selectProps }), [commonProps, selectProps]);
|
|
12
12
|
const [Component, _props] = useContextProps("Enum", path, componentProps, props);
|
|
13
13
|
if (!props.visible) {
|
|
@@ -6,10 +6,10 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
|
6
6
|
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
7
7
|
import { useFileProps } from "../hooks/useFileProps.mjs";
|
|
8
8
|
const InnerMantineFileInput = ({ contextName, margin, children, ...props }) => {
|
|
9
|
-
const commonProps = useCommonProps(props);
|
|
10
|
-
const { path,
|
|
9
|
+
const { value, ...commonProps } = useCommonProps(props);
|
|
10
|
+
const { path, schema, errors } = props;
|
|
11
11
|
const fileProps = useFileProps({
|
|
12
|
-
|
|
12
|
+
value,
|
|
13
13
|
onChange: commonProps.onChange,
|
|
14
14
|
contentMediaType: schema.contentMediaType,
|
|
15
15
|
errors
|
|
@@ -5,9 +5,9 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
|
5
5
|
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
6
6
|
import { useJsonProps } from "../hooks/useJsonProps.mjs";
|
|
7
7
|
function MantineJsonInput({ margin, ...props }) {
|
|
8
|
-
const commonProps = useCommonProps(props);
|
|
9
|
-
const { path
|
|
10
|
-
const jsonProps = useJsonProps({
|
|
8
|
+
const { value, ...commonProps } = useCommonProps(props);
|
|
9
|
+
const { path } = props;
|
|
10
|
+
const jsonProps = useJsonProps({ value, onChange: commonProps.onChange });
|
|
11
11
|
const componentProps = useMemo(() => ({ ...commonProps, ...jsonProps }), [commonProps, jsonProps]);
|
|
12
12
|
const [Component, _props] = useContextProps("Json", path, componentProps, props);
|
|
13
13
|
if (!props.visible) {
|
|
@@ -5,9 +5,9 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
|
5
5
|
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
6
6
|
import { useNumberProps } from "../hooks/useNumberProps.mjs";
|
|
7
7
|
const InnerMantineNumberInput = ({ contextName, margin, ...props }) => {
|
|
8
|
-
const commonProps = useCommonProps(props);
|
|
9
|
-
const { path
|
|
10
|
-
const numberProps = useNumberProps(contextName.toLowerCase(), {
|
|
8
|
+
const { value, ...commonProps } = useCommonProps(props);
|
|
9
|
+
const { path } = props;
|
|
10
|
+
const numberProps = useNumberProps(contextName.toLowerCase(), { value, onChange: commonProps.onChange });
|
|
11
11
|
const componentProps = useMemo(() => ({ ...commonProps, ...numberProps }), [commonProps, numberProps]);
|
|
12
12
|
const [Component, _props] = useContextProps(contextName, path, componentProps, props);
|
|
13
13
|
if (!props.visible) {
|
|
@@ -5,17 +5,17 @@ import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
|
5
5
|
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
6
6
|
import { useSelectProps } from "../hooks/useSelectProps.mjs";
|
|
7
7
|
function MantineOneOfEnumInput({ margin, ...props }) {
|
|
8
|
-
const commonProps = useCommonProps(props);
|
|
9
|
-
const { path,
|
|
10
|
-
const selectProps = useSelectProps(
|
|
8
|
+
const { value, ...commonProps } = useCommonProps(props);
|
|
9
|
+
const { path, schema } = props;
|
|
10
|
+
const selectProps = useSelectProps(value, schema);
|
|
11
11
|
const errorProps = useMemo(() => {
|
|
12
12
|
var _a;
|
|
13
|
-
const isNull =
|
|
13
|
+
const isNull = value === null;
|
|
14
14
|
const error = (_a = commonProps.error) == null ? void 0 : _a.filter(
|
|
15
15
|
(error2) => error2.key === "is a required property" || !isNull ? error2 : false
|
|
16
16
|
);
|
|
17
17
|
return (error == null ? void 0 : error.length) ? { error } : { error: isNull && commonProps.required ? "is a required property" : void 0 };
|
|
18
|
-
}, [commonProps.error, commonProps.required,
|
|
18
|
+
}, [commonProps.error, commonProps.required, value]);
|
|
19
19
|
const componentProps = useMemo(
|
|
20
20
|
() => ({ ...commonProps, ...selectProps, ...errorProps }),
|
|
21
21
|
[commonProps, errorProps, selectProps]
|