fastapi-rtk 0.2.40 → 0.2.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.bundled/jsonforms/cjs/index.cjs +2 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/Contexts/LayoutPaddingContext.cjs +8 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +6 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineBooleanInput.cjs +13 -5
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineDateInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineDateTimeInput.cjs +7 -7
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineEnumArrayInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineEnumInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineJsonInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineNumberInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineOneOfEnumInput.cjs +5 -5
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineTextInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineTimeInput.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useBooleanProps.cjs +4 -4
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useCommonProps.cjs +20 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useDateProps.cjs +5 -5
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useFileProps.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useJsonProps.cjs +9 -9
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useMultiSelectProps.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useNumberProps.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useSelectProps.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useTextProps.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useTimeProps.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/MantineCategorizationLayoutRenderer.cjs +74 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationCards.cjs +86 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationStepper.cjs +124 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Categorization/variants/CategorizationTabs.cjs +93 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/renderers/mantineRenderers.cjs +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/layout.cjs +5 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/withAjvProps.cjs +11 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/withDebounce.cjs +12 -0
- package/dist/.bundled/jsonforms/esm/index.mjs +3 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/Contexts/LayoutPaddingContext.mjs +8 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/JsonFormsWithCustomizer/JsonFormsWithCustomizer.mjs +6 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineBooleanInput.mjs +13 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineDateInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineDateTimeInput.mjs +7 -7
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineEnumArrayInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineEnumInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineJsonInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineNumberInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineOneOfEnumInput.mjs +5 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineTextInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineTimeInput.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useBooleanProps.mjs +4 -4
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useCommonProps.mjs +20 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useDateProps.mjs +5 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useFileProps.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useJsonProps.mjs +9 -9
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useMultiSelectProps.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useNumberProps.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useSelectProps.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useTextProps.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useTimeProps.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/MantineCategorizationLayoutRenderer.mjs +74 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationCards.mjs +86 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationStepper.mjs +124 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Categorization/variants/CategorizationTabs.mjs +93 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/renderers/mantineRenderers.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/layout.mjs +5 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/withAjvProps.mjs +11 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/withDebounce.mjs +12 -0
- package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.cjs +2 -2
- package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.cjs +1 -1
- package/dist/.external/esm/@jsonforms_react@3.6.0_@jsonforms_core@3.6.0_react@18.3.1/@jsonforms/react/lib/jsonforms-react.esm.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.mjs +2 -2
- package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.mjs +1 -1
- package/dist/constants/cjs/index.cjs +3 -1
- package/dist/constants/esm/index.mjs +3 -1
- package/dist/constants/lib/index.d.ts +2 -1
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +2 -2
- 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/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +2 -2
- 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/lib/Wrappers/Provider/Provider.d.ts +4 -0
- package/dist/jsonforms/cjs/Contexts/LayoutPaddingContext.cjs +8 -0
- package/dist/jsonforms/cjs/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +6 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineBooleanInput.cjs +13 -5
- package/dist/jsonforms/cjs/MantineInputs/MantineDateInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineDateTimeInput.cjs +7 -7
- package/dist/jsonforms/cjs/MantineInputs/MantineEnumArrayInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineEnumInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineFileInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineJsonInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineNumberInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineOneOfEnumInput.cjs +5 -5
- package/dist/jsonforms/cjs/MantineInputs/MantineTextInput.cjs +3 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineTimeInput.cjs +3 -3
- package/dist/jsonforms/cjs/hooks/useBooleanProps.cjs +4 -4
- package/dist/jsonforms/cjs/hooks/useCommonProps.cjs +20 -1
- package/dist/jsonforms/cjs/hooks/useDateProps.cjs +5 -5
- package/dist/jsonforms/cjs/hooks/useFileProps.cjs +2 -2
- package/dist/jsonforms/cjs/hooks/useJsonProps.cjs +9 -9
- package/dist/jsonforms/cjs/hooks/useMultiSelectProps.cjs +3 -3
- package/dist/jsonforms/cjs/hooks/useNumberProps.cjs +3 -3
- package/dist/jsonforms/cjs/hooks/useSelectProps.cjs +2 -2
- package/dist/jsonforms/cjs/hooks/useTextProps.cjs +2 -2
- package/dist/jsonforms/cjs/hooks/useTimeProps.cjs +2 -2
- package/dist/jsonforms/cjs/index.cjs +2 -0
- package/dist/jsonforms/cjs/layouts/Categorization/MantineCategorizationLayoutRenderer.cjs +74 -0
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationCards.cjs +86 -0
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationStepper.cjs +124 -0
- package/dist/jsonforms/cjs/layouts/Categorization/variants/CategorizationTabs.cjs +93 -0
- package/dist/jsonforms/cjs/renderers/mantineRenderers.cjs +1 -1
- package/dist/jsonforms/cjs/utils/layout.cjs +5 -3
- package/dist/jsonforms/cjs/utils/withAjvProps.cjs +11 -0
- package/dist/jsonforms/cjs/utils/withDebounce.cjs +12 -0
- package/dist/jsonforms/esm/Contexts/LayoutPaddingContext.mjs +8 -0
- package/dist/jsonforms/esm/JsonFormsWithCustomizer/JsonFormsWithCustomizer.mjs +6 -3
- package/dist/jsonforms/esm/MantineInputs/MantineBooleanInput.mjs +13 -5
- package/dist/jsonforms/esm/MantineInputs/MantineDateInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineDateTimeInput.mjs +7 -7
- package/dist/jsonforms/esm/MantineInputs/MantineEnumArrayInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineEnumInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineFileInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineJsonInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineNumberInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineOneOfEnumInput.mjs +5 -5
- package/dist/jsonforms/esm/MantineInputs/MantineTextInput.mjs +3 -3
- package/dist/jsonforms/esm/MantineInputs/MantineTimeInput.mjs +3 -3
- package/dist/jsonforms/esm/hooks/useBooleanProps.mjs +4 -4
- package/dist/jsonforms/esm/hooks/useCommonProps.mjs +20 -1
- package/dist/jsonforms/esm/hooks/useDateProps.mjs +5 -5
- package/dist/jsonforms/esm/hooks/useFileProps.mjs +2 -2
- package/dist/jsonforms/esm/hooks/useJsonProps.mjs +9 -9
- package/dist/jsonforms/esm/hooks/useMultiSelectProps.mjs +3 -3
- package/dist/jsonforms/esm/hooks/useNumberProps.mjs +3 -3
- package/dist/jsonforms/esm/hooks/useSelectProps.mjs +2 -2
- package/dist/jsonforms/esm/hooks/useTextProps.mjs +2 -2
- package/dist/jsonforms/esm/hooks/useTimeProps.mjs +2 -2
- package/dist/jsonforms/esm/index.mjs +3 -1
- package/dist/jsonforms/esm/layouts/Categorization/MantineCategorizationLayoutRenderer.mjs +74 -0
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationCards.mjs +86 -0
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationStepper.mjs +124 -0
- package/dist/jsonforms/esm/layouts/Categorization/variants/CategorizationTabs.mjs +93 -0
- package/dist/jsonforms/esm/renderers/mantineRenderers.mjs +1 -1
- package/dist/jsonforms/esm/utils/layout.mjs +5 -3
- package/dist/jsonforms/esm/utils/withAjvProps.mjs +11 -0
- package/dist/jsonforms/esm/utils/withDebounce.mjs +12 -0
- package/dist/jsonforms/lib/Contexts/LayoutPaddingContext.d.ts +5 -0
- package/dist/jsonforms/lib/JsonFormsWithCustomizer/JsonFormsWithCustomizer.d.ts +14 -0
- package/dist/jsonforms/lib/hooks/useBooleanProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useCommonProps.d.ts +5 -1
- package/dist/jsonforms/lib/hooks/useDateProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useFileProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useJsonProps.d.ts +5 -5
- package/dist/jsonforms/lib/hooks/useMultiSelectProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useNumberProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useSelectProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useTextProps.d.ts +3 -3
- package/dist/jsonforms/lib/hooks/useTimeProps.d.ts +3 -3
- package/dist/jsonforms/lib/index.d.ts +1 -0
- package/dist/jsonforms/lib/layouts/{MantineCategorizationLayoutRenderer.d.ts → Categorization/MantineCategorizationLayoutRenderer.d.ts} +1 -1
- package/dist/jsonforms/lib/layouts/Categorization/variants/CategorizationCards.d.ts +10 -0
- package/dist/jsonforms/lib/layouts/Categorization/variants/CategorizationStepper.d.ts +11 -0
- package/dist/jsonforms/lib/layouts/Categorization/variants/CategorizationTabs.d.ts +10 -0
- package/dist/jsonforms/lib/renderers/mantineRenderers.d.ts +12 -3
- package/dist/jsonforms/lib/utils/withAjvProps.d.ts +1 -0
- package/dist/jsonforms/lib/utils/withDebounce.d.ts +1 -0
- package/package.json +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineCategorizationLayoutRenderer.cjs +0 -63
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineCategorizationLayoutRenderer.mjs +0 -63
- package/dist/jsonforms/cjs/layouts/MantineCategorizationLayoutRenderer.cjs +0 -63
- package/dist/jsonforms/esm/layouts/MantineCategorizationLayoutRenderer.mjs +0 -63
- package/dist/jsonforms/lib/utils/debounce.d.ts +0 -1
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/focusManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutation.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutationCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/notifyManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/onlineManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/query.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryClient.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryObserver.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/removable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/retryer.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/subscribable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/thenable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/timeoutManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/utils.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/suspense.cjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/focusManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutation.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/mutationCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/notifyManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/onlineManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/query.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryClient.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/queryObserver.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/removable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/retryer.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/subscribable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/thenable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/timeoutManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.87.1 → @tanstack_query-core@5.87.4}/@tanstack/query-core/build/modern/utils.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.87.1_react@18.3.1 → @tanstack_react-query@5.87.4_react@18.3.1}/@tanstack/react-query/build/modern/suspense.mjs +0 -0
|
@@ -2,6 +2,8 @@ const DEFAULT_PAGE = 0;
|
|
|
2
2
|
const DEFAULT_PAGE_SIZE = 25;
|
|
3
3
|
const DEFAULT_PAGE_SIZE_OPTIONS = ["5", "10", "25", "50", "100"];
|
|
4
4
|
const DEBOUNCE_DELAY = 400;
|
|
5
|
+
const DEBOUNCE_LOADING_DELAY = 50;
|
|
6
|
+
const DEBOUNCE_JSONFORMS_DELAY = 100;
|
|
5
7
|
const DEFAULT_DELIMITER = ",";
|
|
6
8
|
const DELIMITER_DATA = [
|
|
7
9
|
{ value: ",", label: "Comma (,)" },
|
|
@@ -15,7 +17,6 @@ const QUOTECHAR_DATA = [
|
|
|
15
17
|
{ value: '"', label: 'Double quotes (")' },
|
|
16
18
|
{ value: "'", label: "Single quotes (')" }
|
|
17
19
|
];
|
|
18
|
-
const DEBOUNCE_LOADING_DELAY = 50;
|
|
19
20
|
const initialState = { errors: [], data: void 0 };
|
|
20
21
|
const VIEW_MODE = {
|
|
21
22
|
NORMAL: "normal",
|
|
@@ -38,6 +39,7 @@ const MRT_LOCALIZATION_IMPORT_MAP = {
|
|
|
38
39
|
export {
|
|
39
40
|
BASE_LANGUAGES,
|
|
40
41
|
DEBOUNCE_DELAY,
|
|
42
|
+
DEBOUNCE_JSONFORMS_DELAY,
|
|
41
43
|
DEBOUNCE_LOADING_DELAY,
|
|
42
44
|
DEFAULT_DELIMITER,
|
|
43
45
|
DEFAULT_PAGE,
|
|
@@ -2,6 +2,8 @@ export const DEFAULT_PAGE: 0;
|
|
|
2
2
|
export const DEFAULT_PAGE_SIZE: 25;
|
|
3
3
|
export const DEFAULT_PAGE_SIZE_OPTIONS: string[];
|
|
4
4
|
export const DEBOUNCE_DELAY: 400;
|
|
5
|
+
export const DEBOUNCE_LOADING_DELAY: 50;
|
|
6
|
+
export const DEBOUNCE_JSONFORMS_DELAY: 100;
|
|
5
7
|
export const DEFAULT_DELIMITER: ",";
|
|
6
8
|
export const DELIMITER_DATA: {
|
|
7
9
|
value: string;
|
|
@@ -12,7 +14,6 @@ export const QUOTECHAR_DATA: {
|
|
|
12
14
|
value: string;
|
|
13
15
|
label: string;
|
|
14
16
|
}[];
|
|
15
|
-
export const DEBOUNCE_LOADING_DELAY: 50;
|
|
16
17
|
export namespace initialState {
|
|
17
18
|
let errors: any[];
|
|
18
19
|
let data: any;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const utils = require("fastapi-rtk/utils");
|
|
5
5
|
const hooks = require("@mantine/hooks");
|
|
6
|
-
const utils$1 = require("../../../../../.external/cjs/@tanstack_query-core@5.87.
|
|
7
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.87.
|
|
6
|
+
const utils$1 = require("../../../../../.external/cjs/@tanstack_query-core@5.87.4/@tanstack/query-core/build/modern/utils.cjs");
|
|
7
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.87.4_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
8
8
|
const useLang = require("../../../hooks/lang/useLang.cjs");
|
|
9
9
|
const createItem = require("../utils/api/createItem.cjs");
|
|
10
10
|
const deleteItem = require("../utils/api/deleteItem.cjs");
|
|
@@ -11,29 +11,34 @@ const de = require("../../../translations/de.cjs");
|
|
|
11
11
|
const useProvideLang = require("../hooks/useProvideLang.cjs");
|
|
12
12
|
const I18nextProvider = require("../../../../../.external/cjs/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/I18nextProvider.cjs");
|
|
13
13
|
const initReactI18next = require("../../../../../.external/cjs/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/initReactI18next.cjs");
|
|
14
|
-
const getI18n = ({ initProps, callback } = {}) => {
|
|
15
|
-
var _a, _b, _c, _d, _e, _f;
|
|
14
|
+
const getI18n = ({ initProps, callback, translations } = {}) => {
|
|
15
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
16
16
|
const i18n = i18next.createInstance();
|
|
17
|
+
const parsedTranslations = Object.entries(translations ?? {}).reduce((acc, [key, value]) => {
|
|
18
|
+
acc[key] = { translation: value };
|
|
19
|
+
return acc;
|
|
20
|
+
}, {});
|
|
17
21
|
i18n.use(initReactI18next.initReactI18next).init({
|
|
18
22
|
...initProps,
|
|
19
23
|
// the translations
|
|
20
24
|
// (tip move them in a JSON file and import them,
|
|
21
25
|
// or even better, manage them via a UI: https://react.i18next.com/guides/multiple-translation-files#manage-your-translations-with-a-management-gui)
|
|
22
26
|
resources: {
|
|
27
|
+
...parsedTranslations,
|
|
23
28
|
...initProps == null ? void 0 : initProps.resources,
|
|
24
29
|
en: {
|
|
25
30
|
...(_a = initProps == null ? void 0 : initProps.resources) == null ? void 0 : _a.en,
|
|
26
31
|
translation: {
|
|
27
|
-
|
|
28
|
-
...(
|
|
32
|
+
...(_b = parsedTranslations == null ? void 0 : parsedTranslations.en) == null ? void 0 : _b.translation,
|
|
33
|
+
...(_d = (_c = initProps == null ? void 0 : initProps.resources) == null ? void 0 : _c.en) == null ? void 0 : _d.translation
|
|
29
34
|
}
|
|
30
35
|
},
|
|
31
36
|
de: {
|
|
32
|
-
...(
|
|
37
|
+
...(_e = initProps == null ? void 0 : initProps.resources) == null ? void 0 : _e.de,
|
|
33
38
|
translation: {
|
|
34
|
-
"Welcome to React": "Willkommen bei React und react-i18next",
|
|
35
39
|
...de,
|
|
36
|
-
...(_f =
|
|
40
|
+
...(_f = parsedTranslations == null ? void 0 : parsedTranslations.de) == null ? void 0 : _f.translation,
|
|
41
|
+
...(_h = (_g = initProps == null ? void 0 : initProps.resources) == null ? void 0 : _g.de) == null ? void 0 : _h.translation
|
|
37
42
|
}
|
|
38
43
|
}
|
|
39
44
|
},
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const zustand = require("fastapi-rtk/zustand");
|
|
5
|
-
const queryClient = require("../../../../.external/cjs/@tanstack_query-core@5.87.
|
|
6
|
-
const QueryClientProvider = require("../../../../.external/cjs/@tanstack_react-query@5.87.
|
|
5
|
+
const queryClient = require("../../../../.external/cjs/@tanstack_query-core@5.87.4/@tanstack/query-core/build/modern/queryClient.cjs");
|
|
6
|
+
const QueryClientProvider = require("../../../../.external/cjs/@tanstack_react-query@5.87.4_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
7
7
|
const React = require("react");
|
|
8
8
|
const useProvideAuth = require("../../fab-react-toolkit-patch/auth/hooks/useProvideAuth.cjs");
|
|
9
9
|
const useProvideInfo = require("../../fab-react-toolkit-patch/auth/hooks/useProvideInfo.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.87.
|
|
4
|
-
const QueryClientProvider = require("../../../../../.external/cjs/@tanstack_react-query@5.87.
|
|
3
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.87.4_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
4
|
+
const QueryClientProvider = require("../../../../../.external/cjs/@tanstack_react-query@5.87.4_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
const authFetch = require("../utils/authFetch.cjs");
|
|
7
7
|
const userCRUD = require("../utils/userCRUD.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.87.
|
|
3
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.87.4_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const authFetch = require("../utils/authFetch.cjs");
|
|
6
6
|
const defaultInfo = { getInfo: authFetch.authInfo };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useMemo, useCallback } from "react";
|
|
2
2
|
import { convertId, getItemId, urlJoin } from "fastapi-rtk/utils";
|
|
3
3
|
import { useDidUpdate, useSetState } from "@mantine/hooks";
|
|
4
|
-
import { keepPreviousData } from "../../../../../.external/esm/@tanstack_query-core@5.87.
|
|
5
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.87.
|
|
4
|
+
import { keepPreviousData } from "../../../../../.external/esm/@tanstack_query-core@5.87.4/@tanstack/query-core/build/modern/utils.mjs";
|
|
5
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.87.4_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
6
6
|
import { useLang } from "../../../hooks/lang/useLang.mjs";
|
|
7
7
|
import { createItem } from "../utils/api/createItem.mjs";
|
|
8
8
|
import { deleteItem } from "../utils/api/deleteItem.mjs";
|
|
@@ -9,29 +9,34 @@ import de from "../../../translations/de.mjs";
|
|
|
9
9
|
import { useProvideLang } from "../hooks/useProvideLang.mjs";
|
|
10
10
|
import { I18nextProvider } from "../../../../../.external/esm/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/I18nextProvider.mjs";
|
|
11
11
|
import { initReactI18next } from "../../../../../.external/esm/react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2/react-i18next/dist/es/initReactI18next.mjs";
|
|
12
|
-
const getI18n = ({ initProps, callback } = {}) => {
|
|
13
|
-
var _a, _b, _c, _d, _e, _f;
|
|
12
|
+
const getI18n = ({ initProps, callback, translations } = {}) => {
|
|
13
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
14
14
|
const i18n = createInstance();
|
|
15
|
+
const parsedTranslations = Object.entries(translations ?? {}).reduce((acc, [key, value]) => {
|
|
16
|
+
acc[key] = { translation: value };
|
|
17
|
+
return acc;
|
|
18
|
+
}, {});
|
|
15
19
|
i18n.use(initReactI18next).init({
|
|
16
20
|
...initProps,
|
|
17
21
|
// the translations
|
|
18
22
|
// (tip move them in a JSON file and import them,
|
|
19
23
|
// or even better, manage them via a UI: https://react.i18next.com/guides/multiple-translation-files#manage-your-translations-with-a-management-gui)
|
|
20
24
|
resources: {
|
|
25
|
+
...parsedTranslations,
|
|
21
26
|
...initProps == null ? void 0 : initProps.resources,
|
|
22
27
|
en: {
|
|
23
28
|
...(_a = initProps == null ? void 0 : initProps.resources) == null ? void 0 : _a.en,
|
|
24
29
|
translation: {
|
|
25
|
-
|
|
26
|
-
...(
|
|
30
|
+
...(_b = parsedTranslations == null ? void 0 : parsedTranslations.en) == null ? void 0 : _b.translation,
|
|
31
|
+
...(_d = (_c = initProps == null ? void 0 : initProps.resources) == null ? void 0 : _c.en) == null ? void 0 : _d.translation
|
|
27
32
|
}
|
|
28
33
|
},
|
|
29
34
|
de: {
|
|
30
|
-
...(
|
|
35
|
+
...(_e = initProps == null ? void 0 : initProps.resources) == null ? void 0 : _e.de,
|
|
31
36
|
translation: {
|
|
32
|
-
"Welcome to React": "Willkommen bei React und react-i18next",
|
|
33
37
|
...de,
|
|
34
|
-
...(_f =
|
|
38
|
+
...(_f = parsedTranslations == null ? void 0 : parsedTranslations.de) == null ? void 0 : _f.translation,
|
|
39
|
+
...(_h = (_g = initProps == null ? void 0 : initProps.resources) == null ? void 0 : _g.de) == null ? void 0 : _h.translation
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useProxy } from "fastapi-rtk/zustand";
|
|
3
|
-
import { QueryClient } from "../../../../.external/esm/@tanstack_query-core@5.87.
|
|
4
|
-
import { QueryClientProvider } from "../../../../.external/esm/@tanstack_react-query@5.87.
|
|
3
|
+
import { QueryClient } from "../../../../.external/esm/@tanstack_query-core@5.87.4/@tanstack/query-core/build/modern/queryClient.mjs";
|
|
4
|
+
import { QueryClientProvider } from "../../../../.external/esm/@tanstack_react-query@5.87.4_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
5
5
|
import { useState, useMemo } from "react";
|
|
6
6
|
import { defaultAuth } from "../../fab-react-toolkit-patch/auth/hooks/useProvideAuth.mjs";
|
|
7
7
|
import { defaultInfo } from "../../fab-react-toolkit-patch/auth/hooks/useProvideInfo.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.87.
|
|
2
|
-
import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.87.
|
|
1
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.87.4_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
2
|
+
import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.87.4_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
3
3
|
import { useState, useCallback, useMemo } from "react";
|
|
4
4
|
import { authOAuthSignin, authResetPassword, authSignout, authSignin } from "../utils/authFetch.mjs";
|
|
5
5
|
import { updateUser, getUser } from "../utils/userCRUD.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.87.
|
|
1
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.87.4_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { authInfo } from "../utils/authFetch.mjs";
|
|
4
4
|
const defaultInfo = { getInfo: authInfo };
|
|
@@ -8,6 +8,10 @@ export type GetI18nProps = {
|
|
|
8
8
|
* - A function that takes the i18n instance and returns back a i18n instance
|
|
9
9
|
*/
|
|
10
10
|
callback?: (i18n: Record<string, any>) => Record<string, any>;
|
|
11
|
+
/**
|
|
12
|
+
* - The translations to be used. E.g. `{ en: { key: 'value' }, de: { key: 'wert' } }`
|
|
13
|
+
*/
|
|
14
|
+
translations?: Record<string, Record<string, string>>;
|
|
11
15
|
};
|
|
12
16
|
export type LangProps = {
|
|
13
17
|
/**
|
|
@@ -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;
|
|
@@ -12,9 +12,11 @@ const JsonFormsWithCustomizer = React.memo(function JsonFormsWithCustomizer2({
|
|
|
12
12
|
uischema,
|
|
13
13
|
data,
|
|
14
14
|
onChange,
|
|
15
|
-
customizer
|
|
15
|
+
customizer,
|
|
16
|
+
debounce = false,
|
|
17
|
+
...props
|
|
16
18
|
}) {
|
|
17
|
-
const theme = useThemeCustomizer.useThemeCustomizer(customizer);
|
|
19
|
+
const theme = useThemeCustomizer.useThemeCustomizer({ ...customizer, __: { debounce } });
|
|
18
20
|
return /* @__PURE__ */ jsxRuntime.jsx(core.MantineThemeProvider, { theme, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19
21
|
react.JsonForms,
|
|
20
22
|
{
|
|
@@ -23,7 +25,8 @@ const JsonFormsWithCustomizer = React.memo(function JsonFormsWithCustomizer2({
|
|
|
23
25
|
renderers: mantineRenderers.mantineRenderers,
|
|
24
26
|
cells: mantineCells.mantineCells,
|
|
25
27
|
data,
|
|
26
|
-
onChange
|
|
28
|
+
onChange,
|
|
29
|
+
...props
|
|
27
30
|
}
|
|
28
31
|
) });
|
|
29
32
|
});
|
|
@@ -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;
|
|
@@ -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) {
|
|
@@ -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) {
|
|
@@ -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) {
|
|
@@ -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) {
|
|
@@ -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
|
|
@@ -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) {
|
|
@@ -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) {
|
|
@@ -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]
|
|
@@ -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) {
|
|
@@ -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
|
}
|
|
@@ -4,17 +4,17 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const iconify = require("../../../.external/cjs/@iconify_react@6.0.1_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;
|