fastapi-rtk 0.2.39 → 0.2.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.bundled/jsonforms/cjs/index.cjs +2 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/Contexts/LayoutPaddingContext.cjs +8 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +6 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineBooleanInput.cjs +13 -5
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineDateInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineDateTimeInput.cjs +7 -7
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineEnumArrayInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineEnumInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineJsonInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineNumberInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineOneOfEnumInput.cjs +5 -5
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineTextInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineTimeInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useBooleanProps.cjs +4 -4
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useCommonProps.cjs +20 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useDateProps.cjs +5 -5
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useFileProps.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useJsonProps.cjs +9 -9
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useMultiSelectProps.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useNumberProps.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useSelectProps.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useTextProps.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useTimeProps.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/MantineCategorizationLayoutRenderer.cjs +74 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationCards.cjs +86 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationStepper.cjs +124 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationTabs.cjs +93 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/renderers/mantineRenderers.cjs +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/layout.cjs +5 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/withAjvProps.cjs +11 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/withDebounce.cjs +12 -0
- package/dist/.bundled/jsonforms/esm/index.mjs +3 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/Contexts/LayoutPaddingContext.mjs +8 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/JsonFormsWithCustomizer/JsonFormsWithCustomizer.mjs +6 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineBooleanInput.mjs +13 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineDateInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineDateTimeInput.mjs +7 -7
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineEnumArrayInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineEnumInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineJsonInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineNumberInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineOneOfEnumInput.mjs +5 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineTextInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineTimeInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useBooleanProps.mjs +4 -4
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useCommonProps.mjs +20 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useDateProps.mjs +5 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useFileProps.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useJsonProps.mjs +9 -9
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useMultiSelectProps.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useNumberProps.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useSelectProps.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useTextProps.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useTimeProps.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/MantineCategorizationLayoutRenderer.mjs +74 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationCards.mjs +86 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationStepper.mjs +124 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationTabs.mjs +93 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/renderers/mantineRenderers.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/layout.mjs +5 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/withAjvProps.mjs +11 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/withDebounce.mjs +12 -0
- package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.cjs +2 -2
- package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.cjs +1 -1
- package/dist/.external/esm/@jsonforms_react@3.6.0_@jsonforms_core@3.6.0_react@18.3.1/@jsonforms/react/lib/jsonforms-react.esm.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.mjs +2 -2
- package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.mjs +1 -1
- package/dist/constants/cjs/index.cjs +3 -1
- package/dist/constants/esm/index.mjs +3 -1
- package/dist/constants/lib/index.d.ts +2 -1
- package/dist/core/cjs/Dialogs/AddDialog.cjs +1 -1
- package/dist/core/cjs/Dialogs/DeleteDialog.cjs +4 -4
- package/dist/core/cjs/Dialogs/EditDialog.cjs +1 -1
- package/dist/core/cjs/Tables/DataGrid/ErrorDialog.cjs +5 -2
- package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +1 -1
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +10 -10
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideBulk.cjs +1 -1
- package/dist/core/cjs/Wrappers/Provider/Contexts/LangContext.cjs +12 -7
- package/dist/core/cjs/Wrappers/Provider/Provider.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideAuth.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideInfo.cjs +1 -1
- package/dist/core/cjs/Wrappers/Provider/utils/authFetch.cjs +2 -2
- package/dist/core/cjs/fab-react-toolkit-patch/auth/utils/authFetch.cjs +2 -2
- package/dist/core/cjs/translations/de.cjs +25 -3
- package/dist/core/esm/Dialogs/AddDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/DeleteDialog.mjs +4 -4
- package/dist/core/esm/Dialogs/EditDialog.mjs +1 -1
- package/dist/core/esm/Tables/DataGrid/ErrorDialog.mjs +5 -2
- package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +1 -1
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +10 -10
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideBulk.mjs +1 -1
- package/dist/core/esm/Wrappers/Provider/Contexts/LangContext.mjs +12 -7
- package/dist/core/esm/Wrappers/Provider/Provider.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +1 -1
- package/dist/core/esm/Wrappers/Provider/utils/authFetch.mjs +2 -2
- package/dist/core/esm/fab-react-toolkit-patch/auth/utils/authFetch.mjs +2 -2
- package/dist/core/esm/translations/de.mjs +25 -3
- package/dist/core/lib/Dialogs/DeleteDialog.d.ts +5 -1
- package/dist/core/lib/Wrappers/Provider/Provider.d.ts +4 -0
- package/dist/core/lib/translations/de.d.ts +20 -0
- package/dist/jsonforms/cjs/Contexts/LayoutPaddingContext.cjs +8 -0
- package/dist/jsonforms/cjs/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +6 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineBooleanInput.cjs +13 -5
- package/dist/jsonforms/cjs/MantineInputs/MantineDateInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineDateTimeInput.cjs +7 -7
- package/dist/jsonforms/cjs/MantineInputs/MantineEnumArrayInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineEnumInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineFileInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineJsonInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineNumberInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineOneOfEnumInput.cjs +5 -5
- package/dist/jsonforms/cjs/MantineInputs/MantineTextInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineTimeInput.cjs +3 -3
- package/dist/jsonforms/cjs/hooks/useBooleanProps.cjs +4 -4
- package/dist/jsonforms/cjs/hooks/useCommonProps.cjs +20 -1
- package/dist/jsonforms/cjs/hooks/useDateProps.cjs +5 -5
- package/dist/jsonforms/cjs/hooks/useFileProps.cjs +2 -2
- package/dist/jsonforms/cjs/hooks/useJsonProps.cjs +9 -9
- package/dist/jsonforms/cjs/hooks/useMultiSelectProps.cjs +3 -3
- package/dist/jsonforms/cjs/hooks/useNumberProps.cjs +3 -3
- package/dist/jsonforms/cjs/hooks/useSelectProps.cjs +2 -2
- package/dist/jsonforms/cjs/hooks/useTextProps.cjs +2 -2
- package/dist/jsonforms/cjs/hooks/useTimeProps.cjs +2 -2
- package/dist/jsonforms/cjs/index.cjs +2 -0
- package/dist/jsonforms/cjs/layouts/Categorization/MantineCategorizationLayoutRenderer.cjs +74 -0
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationCards.cjs +86 -0
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationStepper.cjs +124 -0
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationTabs.cjs +93 -0
- package/dist/jsonforms/cjs/renderers/mantineRenderers.cjs +1 -1
- package/dist/jsonforms/cjs/utils/layout.cjs +5 -3
- package/dist/jsonforms/cjs/utils/withAjvProps.cjs +11 -0
- package/dist/jsonforms/cjs/utils/withDebounce.cjs +12 -0
- package/dist/jsonforms/esm/Contexts/LayoutPaddingContext.mjs +8 -0
- package/dist/jsonforms/esm/JsonFormsWithCustomizer/JsonFormsWithCustomizer.mjs +6 -3
- package/dist/jsonforms/esm/MantineInputs/MantineBooleanInput.mjs +13 -5
- package/dist/jsonforms/esm/MantineInputs/MantineDateInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineDateTimeInput.mjs +7 -7
- package/dist/jsonforms/esm/MantineInputs/MantineEnumArrayInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineEnumInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineFileInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineJsonInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineNumberInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineOneOfEnumInput.mjs +5 -5
- package/dist/jsonforms/esm/MantineInputs/MantineTextInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineTimeInput.mjs +3 -3
- package/dist/jsonforms/esm/hooks/useBooleanProps.mjs +4 -4
- package/dist/jsonforms/esm/hooks/useCommonProps.mjs +20 -1
- package/dist/jsonforms/esm/hooks/useDateProps.mjs +5 -5
- package/dist/jsonforms/esm/hooks/useFileProps.mjs +2 -2
- package/dist/jsonforms/esm/hooks/useJsonProps.mjs +9 -9
- package/dist/jsonforms/esm/hooks/useMultiSelectProps.mjs +3 -3
- package/dist/jsonforms/esm/hooks/useNumberProps.mjs +3 -3
- package/dist/jsonforms/esm/hooks/useSelectProps.mjs +2 -2
- package/dist/jsonforms/esm/hooks/useTextProps.mjs +2 -2
- package/dist/jsonforms/esm/hooks/useTimeProps.mjs +2 -2
- package/dist/jsonforms/esm/index.mjs +3 -1
- package/dist/jsonforms/esm/layouts/Categorization/MantineCategorizationLayoutRenderer.mjs +74 -0
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationCards.mjs +86 -0
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationStepper.mjs +124 -0
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationTabs.mjs +93 -0
- package/dist/jsonforms/esm/renderers/mantineRenderers.mjs +1 -1
- package/dist/jsonforms/esm/utils/layout.mjs +5 -3
- package/dist/jsonforms/esm/utils/withAjvProps.mjs +11 -0
- package/dist/jsonforms/esm/utils/withDebounce.mjs +12 -0
- package/dist/jsonforms/lib/Contexts/LayoutPaddingContext.d.ts +5 -0
- package/dist/jsonforms/lib/JsonFormsWithCustomizer/JsonFormsWithCustomizer.d.ts +14 -0
- package/dist/jsonforms/lib/hooks/useBooleanProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useCommonProps.d.ts +5 -1
- package/dist/jsonforms/lib/hooks/useDateProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useFileProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useJsonProps.d.ts +5 -5
- package/dist/jsonforms/lib/hooks/useMultiSelectProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useNumberProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useSelectProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useTextProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useTimeProps.d.ts +3 -3
- package/dist/jsonforms/lib/index.d.ts +1 -0
- package/dist/jsonforms/lib/layouts/{MantineCategorizationLayoutRenderer.d.ts → Categorization/MantineCategorizationLayoutRenderer.d.ts} +1 -1
- package/dist/jsonforms/lib/layouts/Categorization/variants/CategorizationCards.d.ts +10 -0
- package/dist/jsonforms/lib/layouts/Categorization/variants/CategorizationStepper.d.ts +11 -0
- package/dist/jsonforms/lib/layouts/Categorization/variants/CategorizationTabs.d.ts +10 -0
- package/dist/jsonforms/lib/renderers/mantineRenderers.d.ts +12 -3
- package/dist/jsonforms/lib/utils/withAjvProps.d.ts +1 -0
- package/dist/jsonforms/lib/utils/withDebounce.d.ts +1 -0
- package/package.json +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineCategorizationLayoutRenderer.cjs +0 -63
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineCategorizationLayoutRenderer.mjs +0 -63
- package/dist/jsonforms/cjs/layouts/MantineCategorizationLayoutRenderer.cjs +0 -63
- package/dist/jsonforms/esm/layouts/MantineCategorizationLayoutRenderer.mjs +0 -63
- package/dist/jsonforms/lib/utils/debounce.d.ts +0 -1
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/focusManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutation.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutationCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/notifyManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/onlineManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/query.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryClient.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryObserver.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/removable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/retryer.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/subscribable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/thenable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/timeoutManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/utils.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/suspense.cjs +0 -0
- /package/dist/.external/cjs/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.8_yup@1.7.0 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.1_yup@1.7.0}/mantine-form-yup-resolver/dist/esm/index.cjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/focusManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutation.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutationCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/notifyManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/onlineManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/query.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryClient.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryObserver.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/removable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/retryer.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/subscribable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/thenable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/timeoutManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/utils.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/suspense.mjs +0 -0
- /package/dist/.external/esm/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.2.8_yup@1.7.0 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.1_yup@1.7.0}/mantine-form-yup-resolver/dist/esm/index.mjs +0 -0
|
@@ -1,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
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { rankWith, uiTypeIs, isVisible, deriveLabelForUISchemaElement } from "../../../../../../../../.external/esm/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.mjs";
|
|
3
|
+
import { withTranslateProps, withJsonFormsLayoutProps } from "../../../../../../../../.external/esm/@jsonforms_react@3.6.0_@jsonforms_core@3.6.0_react@18.3.1/@jsonforms/react/lib/jsonforms-react.esm.mjs";
|
|
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 "../../../../../../../../../.external/esm/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.mjs";
|
|
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 "../../../../../../../../../.external/esm/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.mjs";
|
|
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 "../../../../../../../../../.external/esm/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.mjs";
|
|
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 "../../../../../../../.external/esm/@jsonforms
|
|
|
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
|
));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getAjv } from "../../../../../../../.external/esm/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.mjs";
|
|
3
|
+
import { useJsonForms } from "../../../../../../../.external/esm/@jsonforms_react@3.6.0_@jsonforms_core@3.6.0_react@18.3.1/@jsonforms/react/lib/jsonforms-react.esm.mjs";
|
|
4
|
+
const withAjvProps = (Component) => function WithAjvProps(props) {
|
|
5
|
+
const ctx = useJsonForms();
|
|
6
|
+
const ajv = getAjv({ jsonforms: { ...ctx } });
|
|
7
|
+
return /* @__PURE__ */ jsx(Component, { ...props, ajv });
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
withAjvProps
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { MantineThemeProvider } from "@mantine/core";
|
|
3
|
+
import { useThemeCustomizer } from "../hooks/useThemeCustomizer.mjs";
|
|
4
|
+
const withDebounce = (Component) => {
|
|
5
|
+
return function WithDebounce(props) {
|
|
6
|
+
const customizer = useThemeCustomizer({ __: { debounce: true } });
|
|
7
|
+
return /* @__PURE__ */ jsx(MantineThemeProvider, { theme: customizer, children: /* @__PURE__ */ jsx(Component, { ...props }) });
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
withDebounce
|
|
12
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const utils = require("../../../../../@tanstack_query-core@5.87.
|
|
4
|
+
const utils = require("../../../../../@tanstack_query-core@5.87.4/@tanstack/query-core/build/modern/utils.cjs");
|
|
5
5
|
function _interopNamespaceDefault(e) {
|
|
6
6
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
7
7
|
if (e) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const notifyManager = require("../../../../../@tanstack_query-core@5.87.
|
|
5
|
-
const utils = require("../../../../../@tanstack_query-core@5.87.
|
|
4
|
+
const notifyManager = require("../../../../../@tanstack_query-core@5.87.4/@tanstack/query-core/build/modern/notifyManager.cjs");
|
|
5
|
+
const utils = require("../../../../../@tanstack_query-core@5.87.4/@tanstack/query-core/build/modern/utils.cjs");
|
|
6
6
|
const QueryClientProvider = require("./QueryClientProvider.cjs");
|
|
7
7
|
const QueryErrorResetBoundary = require("./QueryErrorResetBoundary.cjs");
|
|
8
8
|
const errorBoundaryUtils = require("./errorBoundaryUtils.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const queryObserver = require("../../../../../@tanstack_query-core@5.87.
|
|
3
|
+
const queryObserver = require("../../../../../@tanstack_query-core@5.87.4/@tanstack/query-core/build/modern/queryObserver.cjs");
|
|
4
4
|
const useBaseQuery = require("./useBaseQuery.cjs");
|
|
5
5
|
function useQuery(options, queryClient) {
|
|
6
6
|
return useBaseQuery.useBaseQuery(options, queryObserver.QueryObserver);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useMemo, Component, useContext, useRef, useState, useEffect, useReducer, useCallback } from "react";
|
|
2
2
|
import maxBy from "../../../../../../.bundled/jsonforms/esm/_virtual/maxBy.mjs";
|
|
3
|
-
import { createId, isControl, removeId, mapStateToJsonFormsRendererProps, mapStateToDispatchCellProps, mapDispatchToControlProps, mapStateToCellProps, mapStateToMultiEnumControlProps, mapDispatchToMultiEnumProps, defaultMapStateToEnumCellProps, mapStateToOneOfEnumCellProps, mapStateToArrayLayoutProps, mapDispatchToArrayControlProps, mapStateToControlWithDetailProps, mapStateToControlProps, mapStateToEnumControlProps, mapStateToOneOfEnumControlProps, mapStateToLabelProps, mapStateToLayoutProps, Generate, defaultMiddleware, Actions as index$1, coreReducer, configReducer, i18nReducer,
|
|
3
|
+
import { createId, isControl, removeId, mapStateToJsonFormsRendererProps, mapStateToDispatchCellProps, mapDispatchToControlProps, mapStateToCellProps, mapStateToMultiEnumControlProps, mapDispatchToMultiEnumProps, defaultMapStateToEnumCellProps, mapStateToOneOfEnumCellProps, mapStateToArrayLayoutProps, mapDispatchToArrayControlProps, mapStateToControlWithDetailProps, mapStateToControlProps, mapStateToEnumControlProps, mapStateToOneOfEnumControlProps, mapStateToLabelProps, defaultJsonFormsI18nState, mapStateToLayoutProps, Generate, defaultMiddleware, Actions as index$1, coreReducer, configReducer, i18nReducer, getArrayTranslations, arrayDefaultTranslations } from "../../../../@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.mjs";
|
|
4
4
|
import debounce from "../../../../../../.bundled/jsonforms/esm/_virtual/debounce.mjs";
|
|
5
5
|
class RendererComponent extends React.Component {
|
|
6
6
|
constructor(props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { shouldThrowError } from "../../../../../@tanstack_query-core@5.87.
|
|
2
|
+
import { shouldThrowError } from "../../../../../@tanstack_query-core@5.87.4/@tanstack/query-core/build/modern/utils.mjs";
|
|
3
3
|
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
|
|
4
4
|
if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
|
|
5
5
|
if (!errorResetBoundary.isReset()) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { notifyManager } from "../../../../../@tanstack_query-core@5.87.
|
|
3
|
-
import { noop, isServer } from "../../../../../@tanstack_query-core@5.87.
|
|
2
|
+
import { notifyManager } from "../../../../../@tanstack_query-core@5.87.4/@tanstack/query-core/build/modern/notifyManager.mjs";
|
|
3
|
+
import { noop, isServer } from "../../../../../@tanstack_query-core@5.87.4/@tanstack/query-core/build/modern/utils.mjs";
|
|
4
4
|
import { useQueryClient } from "./QueryClientProvider.mjs";
|
|
5
5
|
import { useQueryErrorResetBoundary } from "./QueryErrorResetBoundary.mjs";
|
|
6
6
|
import { ensurePreventErrorBoundaryRetry, useClearResetErrorBoundary, getHasError } from "./errorBoundaryUtils.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueryObserver } from "../../../../../@tanstack_query-core@5.87.
|
|
1
|
+
import { QueryObserver } from "../../../../../@tanstack_query-core@5.87.4/@tanstack/query-core/build/modern/queryObserver.mjs";
|
|
2
2
|
import { useBaseQuery } from "./useBaseQuery.mjs";
|
|
3
3
|
function useQuery(options, queryClient) {
|
|
4
4
|
return useBaseQuery(options, QueryObserver);
|
|
@@ -4,6 +4,8 @@ const DEFAULT_PAGE = 0;
|
|
|
4
4
|
const DEFAULT_PAGE_SIZE = 25;
|
|
5
5
|
const DEFAULT_PAGE_SIZE_OPTIONS = ["5", "10", "25", "50", "100"];
|
|
6
6
|
const DEBOUNCE_DELAY = 400;
|
|
7
|
+
const DEBOUNCE_LOADING_DELAY = 50;
|
|
8
|
+
const DEBOUNCE_JSONFORMS_DELAY = 100;
|
|
7
9
|
const DEFAULT_DELIMITER = ",";
|
|
8
10
|
const DELIMITER_DATA = [
|
|
9
11
|
{ value: ",", label: "Comma (,)" },
|
|
@@ -17,7 +19,6 @@ const QUOTECHAR_DATA = [
|
|
|
17
19
|
{ value: '"', label: 'Double quotes (")' },
|
|
18
20
|
{ value: "'", label: "Single quotes (')" }
|
|
19
21
|
];
|
|
20
|
-
const DEBOUNCE_LOADING_DELAY = 50;
|
|
21
22
|
const initialState = { errors: [], data: void 0 };
|
|
22
23
|
const VIEW_MODE = {
|
|
23
24
|
NORMAL: "normal",
|
|
@@ -39,6 +40,7 @@ const MRT_LOCALIZATION_IMPORT_MAP = {
|
|
|
39
40
|
};
|
|
40
41
|
exports.BASE_LANGUAGES = BASE_LANGUAGES;
|
|
41
42
|
exports.DEBOUNCE_DELAY = DEBOUNCE_DELAY;
|
|
43
|
+
exports.DEBOUNCE_JSONFORMS_DELAY = DEBOUNCE_JSONFORMS_DELAY;
|
|
42
44
|
exports.DEBOUNCE_LOADING_DELAY = DEBOUNCE_LOADING_DELAY;
|
|
43
45
|
exports.DEFAULT_DELIMITER = DEFAULT_DELIMITER;
|
|
44
46
|
exports.DEFAULT_PAGE = DEFAULT_PAGE;
|