fastapi-rtk 0.2.40 → 0.2.42
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 +22 -5
- 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 +6 -6
- 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 +75 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationCards.cjs +94 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationStepper.cjs +128 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationTabs.cjs +106 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/renderers/mantineRenderers.cjs +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/getAbsoluteValue.cjs +4 -0
- 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 +21 -4
- 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 +6 -6
- 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 +75 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationCards.mjs +94 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationStepper.mjs +128 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationTabs.mjs +106 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/renderers/mantineRenderers.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/getAbsoluteValue.mjs +4 -0
- 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_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/mutation.cjs +44 -13
- package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/mutationCache.cjs +1 -0
- package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.89.0_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.89.0_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.89.0_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_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/mutation.mjs +44 -13
- package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/mutationCache.mjs +1 -0
- package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.89.0_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.89.0_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.89.0_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/Modals/CommonModal.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.cjs +7 -2
- package/dist/core/cjs/Wrappers/ApiProvider/ApiProvider.cjs +4 -0
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +11 -4
- 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/translations/de.cjs +6 -1
- package/dist/core/esm/Modals/CommonModal.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.mjs +7 -2
- package/dist/core/esm/Wrappers/ApiProvider/ApiProvider.mjs +4 -0
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +11 -4
- 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/translations/de.mjs +6 -1
- package/dist/core/lib/Wrappers/ApiProvider/ApiProvider.d.ts +11 -1
- package/dist/core/lib/Wrappers/ApiProvider/hooks/useProvideApi.d.ts +3 -1
- package/dist/core/lib/Wrappers/Provider/Provider.d.ts +4 -0
- package/dist/core/lib/translations/de.d.ts +4 -0
- package/dist/jsonforms/cjs/Contexts/LayoutPaddingContext.cjs +8 -0
- package/dist/jsonforms/cjs/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +22 -5
- 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 +6 -6
- 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 +75 -0
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationCards.cjs +94 -0
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationStepper.cjs +128 -0
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationTabs.cjs +106 -0
- package/dist/jsonforms/cjs/renderers/mantineRenderers.cjs +1 -1
- package/dist/jsonforms/cjs/utils/getAbsoluteValue.cjs +4 -0
- 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 +21 -4
- 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 +6 -6
- 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 +75 -0
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationCards.mjs +94 -0
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationStepper.mjs +128 -0
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationTabs.mjs +106 -0
- package/dist/jsonforms/esm/renderers/mantineRenderers.mjs +1 -1
- package/dist/jsonforms/esm/utils/getAbsoluteValue.mjs +4 -0
- 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 +16 -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/getAbsoluteValue.d.ts +4 -0
- 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/{@iconify_react@6.0.1_react@18.3.1 → @iconify_react@6.0.2_react@18.3.1}/@iconify/react/dist/iconify.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/focusManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/notifyManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/onlineManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/query.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/queryCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/queryClient.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/queryObserver.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/removable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/retryer.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/subscribable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/thenable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/timeoutManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@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.89.0_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.89.0_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.89.0_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.89.0_react@18.3.1}/@tanstack/react-query/build/modern/suspense.cjs +0 -0
- /package/dist/.external/esm/{@iconify_react@6.0.1_react@18.3.1 → @iconify_react@6.0.2_react@18.3.1}/@iconify/react/dist/iconify.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/focusManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/notifyManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/onlineManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/query.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/queryCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/queryClient.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/queryObserver.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/removable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/retryer.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/subscribable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/thenable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@tanstack/query-core/build/modern/timeoutManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.89.0}/@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.89.0_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.89.0_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.89.0_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.89.0_react@18.3.1}/@tanstack/react-query/build/modern/suspense.mjs +0 -0
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const core$1 = require("fastapi-rtk/core");
|
|
4
5
|
const core = require("@mantine/core");
|
|
6
|
+
const hooks = require("@mantine/hooks");
|
|
7
|
+
const React = require("react");
|
|
5
8
|
const isSchemaTypeInclude = require("../utils/isSchemaTypeInclude.cjs");
|
|
6
9
|
function useCommonProps(props = {}) {
|
|
7
10
|
const __ = core.useProps("__", {}, {});
|
|
11
|
+
const [value, setValue] = React.useState(props.data);
|
|
8
12
|
let valueIfNull = null;
|
|
9
13
|
if (!isSchemaTypeInclude.isSchemaTypeInclude(props.schema.type, "null")) {
|
|
10
14
|
if (isSchemaTypeInclude.isSchemaTypeInclude(props.schema.type, "array")) {
|
|
@@ -15,13 +19,28 @@ function useCommonProps(props = {}) {
|
|
|
15
19
|
valueIfNull = "";
|
|
16
20
|
}
|
|
17
21
|
}
|
|
22
|
+
const debouncedCallback = hooks.useDebouncedCallback((value2) => props.handleChange(props.path, value2), {
|
|
23
|
+
delay: core$1.DEBOUNCE_JSONFORMS_DELAY,
|
|
24
|
+
flushOnUnmount: true,
|
|
25
|
+
...__.debounceOptions
|
|
26
|
+
});
|
|
27
|
+
const onChange = (value2) => {
|
|
28
|
+
const newValue = value2 ?? (__.setNull ? valueIfNull : void 0);
|
|
29
|
+
setValue(newValue);
|
|
30
|
+
__.debounce ? debouncedCallback(newValue) : props.handleChange(props.path, newValue);
|
|
31
|
+
};
|
|
32
|
+
React.useEffect(() => {
|
|
33
|
+
setValue(props.data);
|
|
34
|
+
}, [props.data]);
|
|
18
35
|
return {
|
|
19
36
|
inputWrapperOrder: ["label", "input", "description", "error"],
|
|
20
37
|
label: props.label,
|
|
21
38
|
description: props.description,
|
|
22
39
|
required: props.required,
|
|
23
40
|
disabled: !props.enabled,
|
|
24
|
-
|
|
41
|
+
value,
|
|
42
|
+
onChange,
|
|
43
|
+
onBlur: () => debouncedCallback.flush(),
|
|
25
44
|
error: props.errors ? props.errors.split("\n").map((error) => /* @__PURE__ */ jsxRuntime.jsx("span", { style: { display: "block" }, children: error }, error)) : void 0
|
|
26
45
|
};
|
|
27
46
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const iconify = require("../../../.external/cjs/@iconify_react@6.0.
|
|
4
|
+
const iconify = require("../../../.external/cjs/@iconify_react@6.0.2_react@18.3.1/@iconify/react/dist/iconify.cjs");
|
|
5
5
|
const core = require("@mantine/core");
|
|
6
6
|
const utcConverter = require("../utils/utcConverter.cjs");
|
|
7
|
-
function useDateProps(type, isUTC, {
|
|
7
|
+
function useDateProps(type, isUTC, { value, toggle, onChange }) {
|
|
8
8
|
const theme = core.useMantineTheme();
|
|
9
9
|
const props = { clearable: true };
|
|
10
10
|
if (type === "date") {
|
|
11
11
|
props.valueFormat = "DD.MM.YYYY";
|
|
12
|
-
props.value =
|
|
13
|
-
props.onChange = (
|
|
12
|
+
props.value = value || null;
|
|
13
|
+
props.onChange = (value2) => onChange(value2 || void 0);
|
|
14
14
|
} else {
|
|
15
15
|
props.valueFormat = isUTC ? "DD.MM.YYYY HH:mm (UTC)" : "DD.MM.YYYY HH:mm";
|
|
16
|
-
props.value =
|
|
17
|
-
props.onChange = (
|
|
16
|
+
props.value = value ? isUTC ? utcConverter.convertUTCStringToLocalString(value) : value : null;
|
|
17
|
+
props.onChange = (value2) => onChange(value2 ? isUTC ? utcConverter.convertLocalStringToUTCString(value2) : value2 : void 0);
|
|
18
18
|
props.placeholder = isUTC ? "DD.MM.YYYY HH:mm (UTC)" : "DD.MM.YYYY HH:mm";
|
|
19
19
|
props.rightSection = /* @__PURE__ */ jsxRuntime.jsxs(core.Group, { gap: "0.25rem", wrap: "nowrap", children: [
|
|
20
20
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
function useFileProps({
|
|
4
|
+
function useFileProps({ value, onChange, contentMediaType, errors }) {
|
|
5
5
|
var _a;
|
|
6
6
|
const filteredErrors = (_a = errors == null ? void 0 : errors.split("\n").filter((error) => !error.startsWith("must be string"))) == null ? void 0 : _a.join("\n");
|
|
7
|
-
|
|
7
|
+
value = value || null;
|
|
8
8
|
if (typeof value === "string") {
|
|
9
9
|
value = new File([value], value);
|
|
10
10
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
function useJsonProps({
|
|
5
|
-
const [
|
|
4
|
+
function useJsonProps({ value, onChange }) {
|
|
5
|
+
const [inputValue, setInputValue] = React.useState("");
|
|
6
6
|
const stringifiedData = React.useMemo(
|
|
7
|
-
() =>
|
|
8
|
-
[
|
|
7
|
+
() => value ? typeof value === "object" ? JSON.stringify(value, null, 2) : value : "",
|
|
8
|
+
[value]
|
|
9
9
|
);
|
|
10
10
|
React.useEffect(() => {
|
|
11
|
-
|
|
11
|
+
setInputValue(stringifiedData);
|
|
12
12
|
}, [stringifiedData]);
|
|
13
13
|
return {
|
|
14
14
|
autosize: true,
|
|
@@ -16,19 +16,19 @@ function useJsonProps({ data, onChange }) {
|
|
|
16
16
|
maxRows: 12,
|
|
17
17
|
validationError: "Invalid JSON",
|
|
18
18
|
formatOnBlur: true,
|
|
19
|
-
value,
|
|
19
|
+
value: inputValue,
|
|
20
20
|
onBlur: () => {
|
|
21
|
-
if (!
|
|
21
|
+
if (!inputValue) {
|
|
22
22
|
onChange(void 0);
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
25
|
try {
|
|
26
|
-
const parsedValue = JSON.parse(
|
|
26
|
+
const parsedValue = JSON.parse(inputValue);
|
|
27
27
|
onChange(parsedValue);
|
|
28
28
|
} catch {
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
onChange:
|
|
31
|
+
onChange: setInputValue
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
exports.useJsonProps = useJsonProps;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const useSelectProps = require("./useSelectProps.cjs");
|
|
4
|
-
function useMultiSelectProps(
|
|
5
|
-
const props = useSelectProps.useSelectProps(
|
|
4
|
+
function useMultiSelectProps(value, schema, { onChange }) {
|
|
5
|
+
const props = useSelectProps.useSelectProps(value, schema);
|
|
6
6
|
return {
|
|
7
7
|
...props,
|
|
8
8
|
value: props.value || [],
|
|
9
|
-
onChange: (
|
|
9
|
+
onChange: (value2) => value2.length ? onChange(value2) : onChange(void 0)
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
exports.useMultiSelectProps = useMultiSelectProps;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
function useNumberProps(type, {
|
|
3
|
+
function useNumberProps(type, { value, onChange }) {
|
|
4
4
|
return {
|
|
5
|
-
value:
|
|
5
|
+
value: value || "",
|
|
6
6
|
allowDecimal: type === "number" ? true : false,
|
|
7
7
|
hideControls: true,
|
|
8
|
-
onChange: (
|
|
8
|
+
onChange: (value2) => onChange(typeof value2 === "string" ? value2 || void 0 : value2 ?? void 0)
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
exports.useNumberProps = useNumberProps;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
function useSelectProps(
|
|
4
|
+
function useSelectProps(value, schema) {
|
|
5
5
|
const options = React.useMemo(
|
|
6
6
|
() => schema.oneOf ? schema.oneOf.map((option) => ({ value: option.const, label: option.title })) : schema.enum,
|
|
7
7
|
[schema.enum, schema.oneOf]
|
|
8
8
|
);
|
|
9
|
-
return { data: options, value:
|
|
9
|
+
return { data: options, value: value || null, searchable: true };
|
|
10
10
|
}
|
|
11
11
|
exports.useSelectProps = useSelectProps;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
function useTextProps({
|
|
3
|
+
function useTextProps({ value, onChange }) {
|
|
4
4
|
return {
|
|
5
|
-
value:
|
|
5
|
+
value: value || "",
|
|
6
6
|
onChange: (event) => onChange(event.target.value || void 0)
|
|
7
7
|
};
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
function useTimeProps({
|
|
4
|
-
return { value:
|
|
3
|
+
function useTimeProps({ value }) {
|
|
4
|
+
return { value: value || "" };
|
|
5
5
|
}
|
|
6
6
|
exports.useTimeProps = useTimeProps;
|
|
@@ -23,6 +23,7 @@ const isJsonArrayControl = require("./testers/isJsonArrayControl.cjs");
|
|
|
23
23
|
const isJsonControl = require("./testers/isJsonControl.cjs");
|
|
24
24
|
const isSchemaTypeInclude = require("./utils/isSchemaTypeInclude.cjs");
|
|
25
25
|
const utcConverter = require("./utils/utcConverter.cjs");
|
|
26
|
+
const withAjvProps = require("./utils/withAjvProps.cjs");
|
|
26
27
|
exports.JsonFormsWithCustomizer = JsonFormsWithCustomizer.JsonFormsWithCustomizer;
|
|
27
28
|
exports.mantineCells = mantineCells.mantineCells;
|
|
28
29
|
exports.mantineRenderers = mantineRenderers.mantineRenderers;
|
|
@@ -47,3 +48,4 @@ exports.isJsonControl = isJsonControl.isJsonControl;
|
|
|
47
48
|
exports.isSchemaTypeInclude = isSchemaTypeInclude.isSchemaTypeInclude;
|
|
48
49
|
exports.convertLocalStringToUTCString = utcConverter.convertLocalStringToUTCString;
|
|
49
50
|
exports.convertUTCStringToLocalString = utcConverter.convertUTCStringToLocalString;
|
|
51
|
+
exports.withAjvProps = withAjvProps.withAjvProps;
|
|
@@ -0,0 +1,75 @@
|
|
|
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 getAbsoluteValue = require("../../utils/getAbsoluteValue.cjs");
|
|
8
|
+
const withAjvProps = require("../../utils/withAjvProps.cjs");
|
|
9
|
+
const withDebounce = require("../../utils/withDebounce.cjs");
|
|
10
|
+
const CategorizationCards = require("./variants/CategorizationCards.cjs");
|
|
11
|
+
const CategorizationStepper = require("./variants/CategorizationStepper.cjs");
|
|
12
|
+
const CategorizationTabs = require("./variants/CategorizationTabs.cjs");
|
|
13
|
+
const Component = (props) => {
|
|
14
|
+
var _a, _b, _c, _d;
|
|
15
|
+
const { schema, uischema, path, enabled, visible, renderers, cells, data, ajv, t } = props;
|
|
16
|
+
const categorization = uischema;
|
|
17
|
+
const categories = React.useMemo(
|
|
18
|
+
() => categorization.elements.filter((category) => core.isVisible(category, data, void 0, ajv)),
|
|
19
|
+
[categorization.elements, ajv, data]
|
|
20
|
+
);
|
|
21
|
+
const labels = React.useMemo(
|
|
22
|
+
() => categorization.elements.map((c) => getAbsoluteValue.getAbsoluteLabel(c)).join("|"),
|
|
23
|
+
[categorization.elements]
|
|
24
|
+
);
|
|
25
|
+
const childProps = { schema, path, enabled, visible, direction: "column" };
|
|
26
|
+
if (((_a = uischema.options) == null ? void 0 : _a.variant) === "card" || ((_b = uischema.options) == null ? void 0 : _b.variant) === "cards") {
|
|
27
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
28
|
+
CategorizationCards.CategorizationCards,
|
|
29
|
+
{
|
|
30
|
+
labels,
|
|
31
|
+
categorization,
|
|
32
|
+
categories,
|
|
33
|
+
renderers,
|
|
34
|
+
cells,
|
|
35
|
+
childProps,
|
|
36
|
+
t,
|
|
37
|
+
jsonFormsProps: props
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
} else if (((_c = uischema.options) == null ? void 0 : _c.variant) === "stepper") {
|
|
41
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42
|
+
CategorizationStepper.CategorizationStepper,
|
|
43
|
+
{
|
|
44
|
+
labels,
|
|
45
|
+
categorization,
|
|
46
|
+
categories,
|
|
47
|
+
renderers,
|
|
48
|
+
cells,
|
|
49
|
+
childProps,
|
|
50
|
+
t,
|
|
51
|
+
jsonFormsProps: props,
|
|
52
|
+
showNavButtons: (_d = uischema.options) == null ? void 0 : _d.showNavButtons
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
57
|
+
CategorizationTabs.CategorizationTabs,
|
|
58
|
+
{
|
|
59
|
+
labels,
|
|
60
|
+
categorization,
|
|
61
|
+
categories,
|
|
62
|
+
renderers,
|
|
63
|
+
cells,
|
|
64
|
+
childProps,
|
|
65
|
+
t,
|
|
66
|
+
jsonFormsProps: props
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
};
|
|
70
|
+
const MantineCategorizationLayoutTester = core.rankWith(1, core.uiTypeIs("Categorization"));
|
|
71
|
+
const MantineCategorizationLayoutRenderer = withAjvProps.withAjvProps(
|
|
72
|
+
react.withTranslateProps(react.withJsonFormsLayoutProps(withDebounce.withDebounce(Component)))
|
|
73
|
+
);
|
|
74
|
+
exports.MantineCategorizationLayoutRenderer = MantineCategorizationLayoutRenderer;
|
|
75
|
+
exports.MantineCategorizationLayoutTester = MantineCategorizationLayoutTester;
|
|
@@ -0,0 +1,94 @@
|
|
|
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$1 = require("@jsonforms/core");
|
|
6
|
+
const core = require("@mantine/core");
|
|
7
|
+
const React = require("react");
|
|
8
|
+
const LayoutPaddingContext = require("../../../Contexts/LayoutPaddingContext.cjs");
|
|
9
|
+
const useContextProps = require("../../../hooks/useContextProps.cjs");
|
|
10
|
+
const getAbsoluteValue = require("../../../utils/getAbsoluteValue.cjs");
|
|
11
|
+
const layout = require("../../../utils/layout.cjs");
|
|
12
|
+
const CategorizationCardsGroup = ({ labels, jsonFormsProps, children, ...props }) => {
|
|
13
|
+
const [, _props] = useContextProps.useContextProps(
|
|
14
|
+
`Categorization.Cards.Group`,
|
|
15
|
+
`Categorization.Cards.Group.[${labels}]`,
|
|
16
|
+
{ children },
|
|
17
|
+
jsonFormsProps,
|
|
18
|
+
false
|
|
19
|
+
);
|
|
20
|
+
const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core.Group, { ...mergedProps, children: mergedProps.children });
|
|
22
|
+
};
|
|
23
|
+
const CategorizationCardsCard = ({ value, jsonFormsProps, children, ...props }) => {
|
|
24
|
+
const [, _props] = useContextProps.useContextProps(
|
|
25
|
+
`Categorization.Cards.Card`,
|
|
26
|
+
`Categorization.Cards.Card.${value}`,
|
|
27
|
+
{ value, children },
|
|
28
|
+
jsonFormsProps,
|
|
29
|
+
false
|
|
30
|
+
);
|
|
31
|
+
const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
|
|
32
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core.Card, { withBorder: true, shadow: "md", p: "xs", radius: "sm", ...mergedProps, children: mergedProps.children });
|
|
33
|
+
};
|
|
34
|
+
const CategorizationCards = ({
|
|
35
|
+
labels,
|
|
36
|
+
categorization: _categorization,
|
|
37
|
+
categories: _categories,
|
|
38
|
+
renderers,
|
|
39
|
+
cells,
|
|
40
|
+
childProps,
|
|
41
|
+
t,
|
|
42
|
+
jsonFormsProps
|
|
43
|
+
}) => {
|
|
44
|
+
const theme = core.useMantineTheme();
|
|
45
|
+
const [_value, _onChange] = React.useState((_categories == null ? void 0 : _categories[0]) ? getAbsoluteValue.getAbsoluteLabel(_categories[0]) : "");
|
|
46
|
+
const contextPath = `Categorization.Cards.[${labels}]`;
|
|
47
|
+
const [, componentProps] = useContextProps.useContextProps(
|
|
48
|
+
`Categorization.Cards`,
|
|
49
|
+
contextPath,
|
|
50
|
+
{
|
|
51
|
+
categorization: _categorization,
|
|
52
|
+
categories: _categories,
|
|
53
|
+
value: _value,
|
|
54
|
+
onChange: _onChange
|
|
55
|
+
},
|
|
56
|
+
jsonFormsProps,
|
|
57
|
+
false
|
|
58
|
+
);
|
|
59
|
+
const { categories, value, onChange, groupProps, cardProps } = componentProps;
|
|
60
|
+
const categoryLabels = React.useMemo(
|
|
61
|
+
() => categories.map((category) => ({
|
|
62
|
+
value: getAbsoluteValue.getAbsoluteLabel(category),
|
|
63
|
+
label: core$1.deriveLabelForUISchemaElement(category, t)
|
|
64
|
+
})),
|
|
65
|
+
[categories, t]
|
|
66
|
+
);
|
|
67
|
+
React.useEffect(() => {
|
|
68
|
+
if (!categoryLabels.map((c) => c.value).includes(value)) {
|
|
69
|
+
onChange((categories == null ? void 0 : categories[0]) ? categories[0].value : "");
|
|
70
|
+
}
|
|
71
|
+
}, [categoryLabels]);
|
|
72
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
73
|
+
/* @__PURE__ */ jsxRuntime.jsx(CategorizationCardsGroup, { labels, jsonFormsProps, ...groupProps, children: categoryLabels.map((cl) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
74
|
+
CategorizationCardsCard,
|
|
75
|
+
{
|
|
76
|
+
value: cl.value,
|
|
77
|
+
jsonFormsProps,
|
|
78
|
+
onClick: (e) => {
|
|
79
|
+
e.stopPropagation();
|
|
80
|
+
onChange(cl.value);
|
|
81
|
+
},
|
|
82
|
+
style: {
|
|
83
|
+
cursor: "pointer",
|
|
84
|
+
border: cl.value === value ? `2px solid ${theme.colors[theme.primaryColor][6]}` : void 0
|
|
85
|
+
},
|
|
86
|
+
...cardProps,
|
|
87
|
+
children: cl.label
|
|
88
|
+
},
|
|
89
|
+
cl.value
|
|
90
|
+
)) }),
|
|
91
|
+
categories.filter((category) => getAbsoluteValue.getAbsoluteLabel(category) === value).map((category) => /* @__PURE__ */ jsxRuntime.jsx(LayoutPaddingContext.LayoutPaddingContextProvider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(layout.MantineLayoutRenderer, { ...childProps, elements: category.elements, renderers, cells }) }, getAbsoluteValue.getAbsoluteLabel(category)))
|
|
92
|
+
] });
|
|
93
|
+
};
|
|
94
|
+
exports.CategorizationCards = CategorizationCards;
|
|
@@ -0,0 +1,128 @@
|
|
|
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 getAbsoluteValue = require("../../../utils/getAbsoluteValue.cjs");
|
|
11
|
+
const layout = require("../../../utils/layout.cjs");
|
|
12
|
+
const CategorizationStepperStep = ({ label, description, jsonFormsProps, children, ...props }) => {
|
|
13
|
+
const [, _props] = useContextProps.useContextProps(
|
|
14
|
+
`Categorization.Stepper.Step`,
|
|
15
|
+
`Categorization.Stepper.Step.${label}`,
|
|
16
|
+
{ label, description, children },
|
|
17
|
+
jsonFormsProps,
|
|
18
|
+
false
|
|
19
|
+
);
|
|
20
|
+
const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core$1.Stepper.Step, { label: mergedProps.label, description: mergedProps.description, ...mergedProps, children: mergedProps.children });
|
|
22
|
+
};
|
|
23
|
+
const CategorizationStepperButton = ({ labels, name, onClick, jsonFormsProps, children, ...props }) => {
|
|
24
|
+
const [, _props] = useContextProps.useContextProps(
|
|
25
|
+
`Categorization.Stepper.Button`,
|
|
26
|
+
`Categorization.Stepper.Button.[${labels}].${name}`,
|
|
27
|
+
{ name, onClick, children },
|
|
28
|
+
jsonFormsProps,
|
|
29
|
+
false
|
|
30
|
+
);
|
|
31
|
+
const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
|
|
32
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core$1.Button, { ...mergedProps, children: mergedProps.children });
|
|
33
|
+
};
|
|
34
|
+
const CategorizationStepper = ({
|
|
35
|
+
labels,
|
|
36
|
+
categorization: _categorization,
|
|
37
|
+
categories: _categories,
|
|
38
|
+
renderers,
|
|
39
|
+
cells,
|
|
40
|
+
childProps,
|
|
41
|
+
t,
|
|
42
|
+
jsonFormsProps,
|
|
43
|
+
showNavButtons
|
|
44
|
+
}) => {
|
|
45
|
+
const [_value, _onChange] = React.useState((_categories == null ? void 0 : _categories[0]) ? getAbsoluteValue.getAbsoluteLabel(_categories[0]) : "");
|
|
46
|
+
const contextPath = `Categorization.Stepper.[${labels}]`;
|
|
47
|
+
const [, componentProps] = useContextProps.useContextProps(
|
|
48
|
+
`Categorization.Stepper`,
|
|
49
|
+
contextPath,
|
|
50
|
+
{
|
|
51
|
+
categorization: _categorization,
|
|
52
|
+
categories: _categories,
|
|
53
|
+
value: _value,
|
|
54
|
+
onChange: _onChange
|
|
55
|
+
},
|
|
56
|
+
jsonFormsProps,
|
|
57
|
+
false
|
|
58
|
+
);
|
|
59
|
+
const { categories, value, onChange, stepProps, buttonProps, ...rest } = componentProps;
|
|
60
|
+
const categoryLabels = React.useMemo(
|
|
61
|
+
() => categories.map((category) => ({
|
|
62
|
+
value: getAbsoluteValue.getAbsoluteLabel(category),
|
|
63
|
+
label: core.deriveLabelForUISchemaElement(category, t)
|
|
64
|
+
})),
|
|
65
|
+
[categories, t]
|
|
66
|
+
);
|
|
67
|
+
React.useEffect(() => {
|
|
68
|
+
if (!categoryLabels.map((c) => c.value).includes(value)) {
|
|
69
|
+
onChange((categories == null ? void 0 : categories[0]) ? categories[0].value : "");
|
|
70
|
+
}
|
|
71
|
+
}, [categoryLabels]);
|
|
72
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
73
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
74
|
+
core$1.Stepper,
|
|
75
|
+
{
|
|
76
|
+
active: categoryLabels.findIndex((cl) => cl.value === value),
|
|
77
|
+
onStepClick: (index) => onChange(categoryLabels[index].value),
|
|
78
|
+
...rest,
|
|
79
|
+
children: categories.map((category) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
80
|
+
CategorizationStepperStep,
|
|
81
|
+
{
|
|
82
|
+
label: getAbsoluteValue.getAbsoluteLabel(category),
|
|
83
|
+
description: category.description,
|
|
84
|
+
jsonFormsProps,
|
|
85
|
+
...stepProps,
|
|
86
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LayoutPaddingContext.LayoutPaddingContextProvider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(layout.MantineLayoutRenderer, { ...childProps, elements: category.elements, renderers, cells }) })
|
|
87
|
+
},
|
|
88
|
+
getAbsoluteValue.getAbsoluteLabel(category)
|
|
89
|
+
))
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
showNavButtons && /* @__PURE__ */ jsxRuntime.jsxs(core$1.Group, { justify: "end", children: [
|
|
93
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
94
|
+
CategorizationStepperButton,
|
|
95
|
+
{
|
|
96
|
+
labels,
|
|
97
|
+
name: "Previous",
|
|
98
|
+
onClick: () => {
|
|
99
|
+
const currentIndex = categoryLabels.findIndex((cl) => cl.value === value);
|
|
100
|
+
if (currentIndex > 0) {
|
|
101
|
+
onChange(categoryLabels[currentIndex - 1].value);
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
jsonFormsProps,
|
|
105
|
+
...buttonProps,
|
|
106
|
+
children: "Previous"
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
110
|
+
CategorizationStepperButton,
|
|
111
|
+
{
|
|
112
|
+
labels,
|
|
113
|
+
name: "Next",
|
|
114
|
+
onClick: () => {
|
|
115
|
+
const currentIndex = categoryLabels.findIndex((cl) => cl.value === value);
|
|
116
|
+
if (currentIndex < categoryLabels.length - 1) {
|
|
117
|
+
onChange(categoryLabels[currentIndex + 1].value);
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
jsonFormsProps,
|
|
121
|
+
...buttonProps,
|
|
122
|
+
children: "Next"
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
] })
|
|
126
|
+
] });
|
|
127
|
+
};
|
|
128
|
+
exports.CategorizationStepper = CategorizationStepper;
|
|
@@ -0,0 +1,106 @@
|
|
|
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 getAbsoluteValue = require("../../../utils/getAbsoluteValue.cjs");
|
|
11
|
+
const layout = require("../../../utils/layout.cjs");
|
|
12
|
+
const CategorizationTabsList = ({ labels, jsonFormsProps, children, ...props }) => {
|
|
13
|
+
const [, _props] = useContextProps.useContextProps(
|
|
14
|
+
`Categorization.Tabs.List`,
|
|
15
|
+
`Categorization.Tabs.List.[${labels}]`,
|
|
16
|
+
{ labels, children },
|
|
17
|
+
jsonFormsProps,
|
|
18
|
+
false
|
|
19
|
+
);
|
|
20
|
+
const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core$1.Tabs.List, { ...mergedProps, children: mergedProps.children });
|
|
22
|
+
};
|
|
23
|
+
const CategorizationTabsTab = ({ value, jsonFormsProps, children, ...props }) => {
|
|
24
|
+
const [, _props] = useContextProps.useContextProps(
|
|
25
|
+
`Categorization.Tabs.Tab`,
|
|
26
|
+
`Categorization.Tabs.Tab.${value}`,
|
|
27
|
+
{ value, children },
|
|
28
|
+
jsonFormsProps,
|
|
29
|
+
false
|
|
30
|
+
);
|
|
31
|
+
const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
|
|
32
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core$1.Tabs.Tab, { value, ...mergedProps, children: mergedProps == null ? void 0 : mergedProps.children });
|
|
33
|
+
};
|
|
34
|
+
const CategorizationTabsPanel = ({ value, jsonFormsProps, children, ...props }) => {
|
|
35
|
+
const [, _props] = useContextProps.useContextProps(
|
|
36
|
+
`Categorization.Tabs.Panel`,
|
|
37
|
+
`Categorization.Tabs.Panel.${value}`,
|
|
38
|
+
{ value, children },
|
|
39
|
+
jsonFormsProps,
|
|
40
|
+
false
|
|
41
|
+
);
|
|
42
|
+
const mergedProps = React.useMemo(() => utils.deepMerge(props, _props), [props, _props]);
|
|
43
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core$1.Tabs.Panel, { value, ...mergedProps, children: mergedProps == null ? void 0 : mergedProps.children });
|
|
44
|
+
};
|
|
45
|
+
const CategorizationTabs = ({
|
|
46
|
+
labels,
|
|
47
|
+
categorization: _categorization,
|
|
48
|
+
categories: _categories,
|
|
49
|
+
renderers,
|
|
50
|
+
cells,
|
|
51
|
+
childProps,
|
|
52
|
+
t,
|
|
53
|
+
jsonFormsProps
|
|
54
|
+
}) => {
|
|
55
|
+
const [_value, _onChange] = React.useState((_categories == null ? void 0 : _categories[0]) ? getAbsoluteValue.getAbsoluteLabel(_categories[0]) : "");
|
|
56
|
+
const contextPath = `Categorization.Tabs.[${labels}]`;
|
|
57
|
+
const [, componentProps] = useContextProps.useContextProps(
|
|
58
|
+
`Categorization.Tabs`,
|
|
59
|
+
contextPath,
|
|
60
|
+
{
|
|
61
|
+
categorization: _categorization,
|
|
62
|
+
categories: _categories,
|
|
63
|
+
value: _value,
|
|
64
|
+
onChange: _onChange
|
|
65
|
+
},
|
|
66
|
+
jsonFormsProps,
|
|
67
|
+
false
|
|
68
|
+
);
|
|
69
|
+
const { categories, value, onChange, listProps, tabProps, panelProps, ...rest } = componentProps;
|
|
70
|
+
const categoryLabels = React.useMemo(
|
|
71
|
+
() => categories.map((category) => ({
|
|
72
|
+
value: getAbsoluteValue.getAbsoluteLabel(category),
|
|
73
|
+
label: core.deriveLabelForUISchemaElement(category, t)
|
|
74
|
+
})),
|
|
75
|
+
[categories, t]
|
|
76
|
+
);
|
|
77
|
+
React.useEffect(() => {
|
|
78
|
+
if (!categoryLabels.map((c) => c.value).includes(value)) {
|
|
79
|
+
onChange((categories == null ? void 0 : categories[0]) ? categories[0].value : "");
|
|
80
|
+
}
|
|
81
|
+
}, [categoryLabels]);
|
|
82
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(core$1.Tabs, { value, onChange, ...rest, children: [
|
|
83
|
+
/* @__PURE__ */ jsxRuntime.jsx(CategorizationTabsList, { labels, jsonFormsProps, ...listProps, children: categoryLabels.map((category) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
84
|
+
CategorizationTabsTab,
|
|
85
|
+
{
|
|
86
|
+
value: category.value,
|
|
87
|
+
jsonFormsProps,
|
|
88
|
+
...tabProps,
|
|
89
|
+
children: category.label
|
|
90
|
+
},
|
|
91
|
+
category.value
|
|
92
|
+
)) }),
|
|
93
|
+
_categories.map((category) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
94
|
+
CategorizationTabsPanel,
|
|
95
|
+
{
|
|
96
|
+
value: getAbsoluteValue.getAbsoluteLabel(category),
|
|
97
|
+
jsonFormsProps,
|
|
98
|
+
pt: "xs",
|
|
99
|
+
...panelProps,
|
|
100
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LayoutPaddingContext.LayoutPaddingContextProvider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(layout.MantineLayoutRenderer, { ...childProps, elements: category.elements, renderers, cells }) })
|
|
101
|
+
},
|
|
102
|
+
getAbsoluteValue.getAbsoluteLabel(category)
|
|
103
|
+
))
|
|
104
|
+
] });
|
|
105
|
+
};
|
|
106
|
+
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
|
));
|