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
|
@@ -23,6 +23,7 @@ const isJsonArrayControl = require("./packages/jsonforms/src/testers/isJsonArray
|
|
|
23
23
|
const isJsonControl = require("./packages/jsonforms/src/testers/isJsonControl.cjs");
|
|
24
24
|
const isSchemaTypeInclude = require("./packages/jsonforms/src/utils/isSchemaTypeInclude.cjs");
|
|
25
25
|
const utcConverter = require("./packages/jsonforms/src/utils/utcConverter.cjs");
|
|
26
|
+
const withAjvProps = require("./packages/jsonforms/src/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,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const utils = require("fastapi-rtk/utils");
|
|
4
|
+
const [LayoutPaddingContextProvider, useLayoutPadding] = utils.createSafeContext(
|
|
5
|
+
"useLayoutPadding must be used within a LayoutPaddingContextProvider"
|
|
6
|
+
);
|
|
7
|
+
exports.LayoutPaddingContextProvider = LayoutPaddingContextProvider;
|
|
8
|
+
exports.useLayoutPadding = useLayoutPadding;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const core = require("fastapi-rtk/core");
|
|
4
5
|
const jsonformsReact_esm = require("../../../../../../../.external/cjs/@jsonforms_react@3.6.0_@jsonforms_core@3.6.0_react@18.3.1/@jsonforms/react/lib/jsonforms-react.esm.cjs");
|
|
5
|
-
const core = require("@mantine/core");
|
|
6
|
+
const core$1 = require("@mantine/core");
|
|
6
7
|
const React = require("react");
|
|
7
8
|
const useThemeCustomizer = require("../hooks/useThemeCustomizer.cjs");
|
|
8
9
|
const mantineCells = require("../renderers/mantineCells.cjs");
|
|
@@ -12,10 +13,24 @@ const JsonFormsWithCustomizer = React.memo(function JsonFormsWithCustomizer2({
|
|
|
12
13
|
uischema,
|
|
13
14
|
data,
|
|
14
15
|
onChange,
|
|
15
|
-
customizer
|
|
16
|
+
customizer,
|
|
17
|
+
debounce = false,
|
|
18
|
+
translations,
|
|
19
|
+
createTranslator = (locale, translations2 = {}) => (key, defaultMessage) => {
|
|
20
|
+
if (!(key in translations2)) {
|
|
21
|
+
core.FastAPIRTKLogger.warn(`${locale}: Missing translation for key: ${key}`);
|
|
22
|
+
}
|
|
23
|
+
return (translations2 == null ? void 0 : translations2[key]) ?? defaultMessage;
|
|
24
|
+
},
|
|
25
|
+
...props
|
|
16
26
|
}) {
|
|
17
|
-
const theme = useThemeCustomizer.useThemeCustomizer(customizer);
|
|
18
|
-
|
|
27
|
+
const theme = useThemeCustomizer.useThemeCustomizer({ ...customizer, __: { debounce } });
|
|
28
|
+
const { currentLanguage } = core.useLang({ throwOnError: false });
|
|
29
|
+
const i18n = React.useMemo(
|
|
30
|
+
() => currentLanguage && translations ? { locale: currentLanguage, translate: createTranslator(currentLanguage, translations == null ? void 0 : translations[currentLanguage]) } : void 0,
|
|
31
|
+
[createTranslator, currentLanguage, translations]
|
|
32
|
+
);
|
|
33
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core$1.MantineThemeProvider, { theme, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19
34
|
jsonformsReact_esm.JsonForms,
|
|
20
35
|
{
|
|
21
36
|
schema,
|
|
@@ -23,7 +38,9 @@ const JsonFormsWithCustomizer = React.memo(function JsonFormsWithCustomizer2({
|
|
|
23
38
|
renderers: mantineRenderers.mantineRenderers,
|
|
24
39
|
cells: mantineCells.mantineCells,
|
|
25
40
|
data,
|
|
26
|
-
onChange
|
|
41
|
+
onChange,
|
|
42
|
+
i18n,
|
|
43
|
+
...props
|
|
27
44
|
}
|
|
28
45
|
) });
|
|
29
46
|
});
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineBooleanInput.cjs
CHANGED
|
@@ -7,15 +7,23 @@ const useBooleanProps = require("../hooks/useBooleanProps.cjs");
|
|
|
7
7
|
const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
8
8
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
9
9
|
function MantineBooleanInput({ margin, ...props }) {
|
|
10
|
-
|
|
11
|
-
const {
|
|
12
|
-
const
|
|
13
|
-
const
|
|
10
|
+
var _a;
|
|
11
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
12
|
+
const { path, schema, uischema } = props;
|
|
13
|
+
const isCheckbox = React.useMemo(
|
|
14
|
+
() => {
|
|
15
|
+
var _a2;
|
|
16
|
+
return (((_a2 = uischema.options) == null ? void 0 : _a2.variant) ?? schema.format) === "checkbox";
|
|
17
|
+
},
|
|
18
|
+
[schema.format, (_a = uischema.options) == null ? void 0 : _a.variant]
|
|
19
|
+
);
|
|
20
|
+
const booleanProps = useBooleanProps.useBooleanProps(isCheckbox, { value, onChange: commonProps.onChange });
|
|
14
21
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...booleanProps }), [booleanProps, commonProps]);
|
|
15
22
|
const [Component, _props] = useContextProps.useContextProps("Boolean", path, componentProps, props);
|
|
16
23
|
if (!props.visible) {
|
|
17
24
|
return null;
|
|
18
25
|
}
|
|
19
|
-
|
|
26
|
+
const { inputWrapperOrder, ...__props } = _props;
|
|
27
|
+
return /* @__PURE__ */ jsxRuntime.jsx(core.Box, { m: Component === null ? void 0 : margin, children: Component === void 0 ? isCheckbox ? /* @__PURE__ */ jsxRuntime.jsx(core.Checkbox, { ...__props }) : /* @__PURE__ */ jsxRuntime.jsx(core.Select, { inputWrapperOrder, ...__props }) : Component });
|
|
20
28
|
}
|
|
21
29
|
exports.MantineBooleanInput = MantineBooleanInput;
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineDateInput.cjs
CHANGED
|
@@ -8,9 +8,9 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
8
8
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
9
9
|
const useDateProps = require("../hooks/useDateProps.cjs");
|
|
10
10
|
function MantineDateInput({ margin, ...props }) {
|
|
11
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
12
|
-
const { path
|
|
13
|
-
const dateProps = useDateProps.useDateProps("date", true, {
|
|
11
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
12
|
+
const { path } = props;
|
|
13
|
+
const dateProps = useDateProps.useDateProps("date", true, { value, onChange: commonProps.onChange });
|
|
14
14
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...dateProps }), [commonProps, dateProps]);
|
|
15
15
|
const [Component, _props] = useContextProps.useContextProps("Date", path, componentProps, props);
|
|
16
16
|
if (!props.visible) {
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineDateTimeInput.cjs
CHANGED
|
@@ -9,22 +9,22 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
9
9
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
10
10
|
const useDateProps = require("../hooks/useDateProps.cjs");
|
|
11
11
|
function MantineDateTimeInput({ margin, ...props }) {
|
|
12
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
13
|
-
const { path,
|
|
12
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
13
|
+
const { path, uischema } = props;
|
|
14
14
|
const { initialUTC: __initialUTC } = uischema.options || {};
|
|
15
|
-
const _dateProps = useDateProps.useDateProps("date-time", false, {
|
|
15
|
+
const _dateProps = useDateProps.useDateProps("date-time", false, { value, toggle: () => null, onChange: commonProps.onChange });
|
|
16
16
|
const [, { initialUTC }] = useContextProps.useContextProps("DateTime", path, { ...commonProps, ..._dateProps }, props);
|
|
17
17
|
const [isUTC, { open: setToUTC, close: setToLocal, toggle }] = hooks.useDisclosure(initialUTC ?? __initialUTC);
|
|
18
18
|
const { initialUTC: _initialUTC, ...dateProps } = useDateProps.useDateProps("date-time", isUTC, {
|
|
19
|
-
|
|
19
|
+
value,
|
|
20
20
|
toggle,
|
|
21
21
|
onChange: commonProps.onChange
|
|
22
22
|
});
|
|
23
23
|
React.useEffect(() => {
|
|
24
|
-
if (
|
|
25
|
-
|
|
24
|
+
if (value) {
|
|
25
|
+
value.endsWith("Z") ? setToUTC() : setToLocal();
|
|
26
26
|
}
|
|
27
|
-
}, [
|
|
27
|
+
}, [value, setToLocal, setToUTC]);
|
|
28
28
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...dateProps }), [commonProps, dateProps]);
|
|
29
29
|
const [Component, { initialUTC: _, ..._props }] = useContextProps.useContextProps("DateTime", path, componentProps, props);
|
|
30
30
|
if (!props.visible) {
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineEnumArrayInput.cjs
CHANGED
|
@@ -7,9 +7,9 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useMultiSelectProps = require("../hooks/useMultiSelectProps.cjs");
|
|
9
9
|
function MantineEnumArrayInput({ margin, ...props }) {
|
|
10
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
11
|
-
const { path
|
|
12
|
-
const multiSelectProps = useMultiSelectProps.useMultiSelectProps(
|
|
10
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
11
|
+
const { path } = props;
|
|
12
|
+
const multiSelectProps = useMultiSelectProps.useMultiSelectProps(value, props.schema.items, { onChange: commonProps.onChange });
|
|
13
13
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...multiSelectProps }), [commonProps, multiSelectProps]);
|
|
14
14
|
const [Component, _props] = useContextProps.useContextProps("EnumArray", path, componentProps, props);
|
|
15
15
|
if (!props.visible) {
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineEnumInput.cjs
CHANGED
|
@@ -7,9 +7,9 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useSelectProps = require("../hooks/useSelectProps.cjs");
|
|
9
9
|
function MantineEnumInput({ margin, ...props }) {
|
|
10
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
11
|
-
const { path
|
|
12
|
-
const selectProps = useSelectProps.useSelectProps(
|
|
10
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
11
|
+
const { path } = props;
|
|
12
|
+
const selectProps = useSelectProps.useSelectProps(value, props.schema);
|
|
13
13
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...selectProps }), [commonProps, selectProps]);
|
|
14
14
|
const [Component, _props] = useContextProps.useContextProps("Enum", path, componentProps, props);
|
|
15
15
|
if (!props.visible) {
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs
CHANGED
|
@@ -8,10 +8,10 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
8
8
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
9
9
|
const useFileProps = require("../hooks/useFileProps.cjs");
|
|
10
10
|
const InnerMantineFileInput = ({ contextName, margin, children, ...props }) => {
|
|
11
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
12
|
-
const { path,
|
|
11
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
12
|
+
const { path, schema, errors } = props;
|
|
13
13
|
const fileProps = useFileProps.useFileProps({
|
|
14
|
-
|
|
14
|
+
value,
|
|
15
15
|
onChange: commonProps.onChange,
|
|
16
16
|
contentMediaType: schema.contentMediaType,
|
|
17
17
|
errors
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineJsonInput.cjs
CHANGED
|
@@ -7,9 +7,9 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useJsonProps = require("../hooks/useJsonProps.cjs");
|
|
9
9
|
function MantineJsonInput({ margin, ...props }) {
|
|
10
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
11
|
-
const { path
|
|
12
|
-
const jsonProps = useJsonProps.useJsonProps({
|
|
10
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
11
|
+
const { path } = props;
|
|
12
|
+
const jsonProps = useJsonProps.useJsonProps({ value, onChange: commonProps.onChange });
|
|
13
13
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...jsonProps }), [commonProps, jsonProps]);
|
|
14
14
|
const [Component, _props] = useContextProps.useContextProps("Json", path, componentProps, props);
|
|
15
15
|
if (!props.visible) {
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineNumberInput.cjs
CHANGED
|
@@ -7,9 +7,9 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useNumberProps = require("../hooks/useNumberProps.cjs");
|
|
9
9
|
const InnerMantineNumberInput = ({ contextName, margin, ...props }) => {
|
|
10
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
11
|
-
const { path
|
|
12
|
-
const numberProps = useNumberProps.useNumberProps(contextName.toLowerCase(), {
|
|
10
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
11
|
+
const { path } = props;
|
|
12
|
+
const numberProps = useNumberProps.useNumberProps(contextName.toLowerCase(), { value, onChange: commonProps.onChange });
|
|
13
13
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...numberProps }), [commonProps, numberProps]);
|
|
14
14
|
const [Component, _props] = useContextProps.useContextProps(contextName, path, componentProps, props);
|
|
15
15
|
if (!props.visible) {
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineOneOfEnumInput.cjs
CHANGED
|
@@ -7,17 +7,17 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useSelectProps = require("../hooks/useSelectProps.cjs");
|
|
9
9
|
function MantineOneOfEnumInput({ margin, ...props }) {
|
|
10
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
11
|
-
const { path,
|
|
12
|
-
const selectProps = useSelectProps.useSelectProps(
|
|
10
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
11
|
+
const { path, schema } = props;
|
|
12
|
+
const selectProps = useSelectProps.useSelectProps(value, schema);
|
|
13
13
|
const errorProps = React.useMemo(() => {
|
|
14
14
|
var _a;
|
|
15
|
-
const isNull =
|
|
15
|
+
const isNull = value === null;
|
|
16
16
|
const error = (_a = commonProps.error) == null ? void 0 : _a.filter(
|
|
17
17
|
(error2) => error2.key === "is a required property" || !isNull ? error2 : false
|
|
18
18
|
);
|
|
19
19
|
return (error == null ? void 0 : error.length) ? { error } : { error: isNull && commonProps.required ? "is a required property" : void 0 };
|
|
20
|
-
}, [commonProps.error, commonProps.required,
|
|
20
|
+
}, [commonProps.error, commonProps.required, value]);
|
|
21
21
|
const componentProps = React.useMemo(
|
|
22
22
|
() => ({ ...commonProps, ...selectProps, ...errorProps }),
|
|
23
23
|
[commonProps, errorProps, selectProps]
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineTextInput.cjs
CHANGED
|
@@ -7,9 +7,9 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useTextProps = require("../hooks/useTextProps.cjs");
|
|
9
9
|
function MantineTextInput({ margin, ...props }) {
|
|
10
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
11
|
-
const { path,
|
|
12
|
-
const textProps = useTextProps.useTextProps({
|
|
10
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
11
|
+
const { path, schema } = props;
|
|
12
|
+
const textProps = useTextProps.useTextProps({ value, onChange: commonProps.onChange });
|
|
13
13
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...textProps }), [commonProps, textProps]);
|
|
14
14
|
const [Component, _props] = useContextProps.useContextProps("Text", path, componentProps, props);
|
|
15
15
|
if (!props.visible) {
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineTimeInput.cjs
CHANGED
|
@@ -8,9 +8,9 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
8
8
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
9
9
|
const useTimeProps = require("../hooks/useTimeProps.cjs");
|
|
10
10
|
function MantineTimeInput({ margin, ...props }) {
|
|
11
|
-
const commonProps = useCommonProps.useCommonProps(props);
|
|
12
|
-
const { path
|
|
13
|
-
const textProps = useTimeProps.useTimeProps({
|
|
11
|
+
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
12
|
+
const { path } = props;
|
|
13
|
+
const textProps = useTimeProps.useTimeProps({ value });
|
|
14
14
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...textProps }), [commonProps, textProps]);
|
|
15
15
|
const [Component, _props] = useContextProps.useContextProps("Time", path, componentProps, props);
|
|
16
16
|
if (!props.visible) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const utils = require("fastapi-rtk/utils");
|
|
4
|
-
function useBooleanProps(isCheckbox, {
|
|
4
|
+
function useBooleanProps(isCheckbox, { value, onChange }) {
|
|
5
5
|
return isCheckbox ? {
|
|
6
|
-
checked:
|
|
6
|
+
checked: value || false,
|
|
7
7
|
onChange: (event) => onChange(event.target.checked)
|
|
8
8
|
} : {
|
|
9
9
|
data: [
|
|
@@ -16,8 +16,8 @@ function useBooleanProps(isCheckbox, { data, onChange }) {
|
|
|
16
16
|
label: "False"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
|
-
value: utils.isTruthy(
|
|
20
|
-
onChange: (
|
|
19
|
+
value: utils.isTruthy(value) ? String(value) : null,
|
|
20
|
+
onChange: (value2) => onChange(utils.isTruthy(value2) ? value2 === String(true) : void 0)
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
exports.useBooleanProps = useBooleanProps;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const core$1 = require("fastapi-rtk/core");
|
|
4
5
|
const core = require("@mantine/core");
|
|
6
|
+
const hooks = require("@mantine/hooks");
|
|
7
|
+
const React = require("react");
|
|
5
8
|
const isSchemaTypeInclude = require("../utils/isSchemaTypeInclude.cjs");
|
|
6
9
|
function useCommonProps(props = {}) {
|
|
7
10
|
const __ = core.useProps("__", {}, {});
|
|
11
|
+
const [value, setValue] = React.useState(props.data);
|
|
8
12
|
let valueIfNull = null;
|
|
9
13
|
if (!isSchemaTypeInclude.isSchemaTypeInclude(props.schema.type, "null")) {
|
|
10
14
|
if (isSchemaTypeInclude.isSchemaTypeInclude(props.schema.type, "array")) {
|
|
@@ -15,13 +19,28 @@ function useCommonProps(props = {}) {
|
|
|
15
19
|
valueIfNull = "";
|
|
16
20
|
}
|
|
17
21
|
}
|
|
22
|
+
const debouncedCallback = hooks.useDebouncedCallback((value2) => props.handleChange(props.path, value2), {
|
|
23
|
+
delay: core$1.DEBOUNCE_JSONFORMS_DELAY,
|
|
24
|
+
flushOnUnmount: true,
|
|
25
|
+
...__.debounceOptions
|
|
26
|
+
});
|
|
27
|
+
const onChange = (value2) => {
|
|
28
|
+
const newValue = value2 ?? (__.setNull ? valueIfNull : void 0);
|
|
29
|
+
setValue(newValue);
|
|
30
|
+
__.debounce ? debouncedCallback(newValue) : props.handleChange(props.path, newValue);
|
|
31
|
+
};
|
|
32
|
+
React.useEffect(() => {
|
|
33
|
+
setValue(props.data);
|
|
34
|
+
}, [props.data]);
|
|
18
35
|
return {
|
|
19
36
|
inputWrapperOrder: ["label", "input", "description", "error"],
|
|
20
37
|
label: props.label,
|
|
21
38
|
description: props.description,
|
|
22
39
|
required: props.required,
|
|
23
40
|
disabled: !props.enabled,
|
|
24
|
-
|
|
41
|
+
value,
|
|
42
|
+
onChange,
|
|
43
|
+
onBlur: () => debouncedCallback.flush(),
|
|
25
44
|
error: props.errors ? props.errors.split("\n").map((error) => /* @__PURE__ */ jsxRuntime.jsx("span", { style: { display: "block" }, children: error }, error)) : void 0
|
|
26
45
|
};
|
|
27
46
|
}
|
|
@@ -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;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const jsonformsCore_esm = require("../../../../../../../../.external/cjs/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.cjs");
|
|
5
|
+
const jsonformsReact_esm = require("../../../../../../../../.external/cjs/@jsonforms_react@3.6.0_@jsonforms_core@3.6.0_react@18.3.1/@jsonforms/react/lib/jsonforms-react.esm.cjs");
|
|
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) => jsonformsCore_esm.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 = jsonformsCore_esm.rankWith(1, jsonformsCore_esm.uiTypeIs("Categorization"));
|
|
71
|
+
const MantineCategorizationLayoutRenderer = withAjvProps.withAjvProps(
|
|
72
|
+
jsonformsReact_esm.withTranslateProps(jsonformsReact_esm.withJsonFormsLayoutProps(withDebounce.withDebounce(Component)))
|
|
73
|
+
);
|
|
74
|
+
exports.MantineCategorizationLayoutRenderer = MantineCategorizationLayoutRenderer;
|
|
75
|
+
exports.MantineCategorizationLayoutTester = MantineCategorizationLayoutTester;
|