fastapi-rtk 0.1.36 → 0.2.0
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 +10 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineDateTimeInput.cjs +8 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs +33 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineImageInput.cjs +21 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineJsonInput.cjs +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineTimeInput.cjs +21 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/cells/MantineFileCell.cjs +11 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/cells/MantineImageCell.cjs +11 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/cells/MantineTimeCell.cjs +10 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/controls/MantineDateControl.cjs +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/controls/MantineDateTimeControl.cjs +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/controls/MantineFileControl.cjs +12 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/controls/MantineImageControl.cjs +12 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/controls/MantineTimeControl.cjs +11 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useDateProps.cjs +12 -21
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useFileProps.cjs +19 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useTimeProps.cjs +6 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/renderers/mantineCells.cjs +13 -5
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/renderers/mantineRenderers.cjs +11 -5
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/testers/isFileControl.cjs +20 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/testers/isImageControl.cjs +16 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/utils/utcConverter.cjs +4 -9
- package/dist/.bundled/jsonforms/esm/index.mjs +12 -4
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineDateTimeInput.mjs +9 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs +33 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineImageInput.mjs +21 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineJsonInput.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineTimeInput.mjs +21 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/cells/MantineFileCell.mjs +11 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/cells/MantineImageCell.mjs +11 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/cells/MantineTimeCell.mjs +10 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/controls/MantineDateControl.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/controls/MantineDateTimeControl.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/controls/MantineFileControl.mjs +12 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/controls/MantineImageControl.mjs +12 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/controls/MantineTimeControl.mjs +11 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useDateProps.mjs +13 -22
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useFileProps.mjs +19 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useTimeProps.mjs +6 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/renderers/mantineCells.mjs +13 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/renderers/mantineRenderers.mjs +11 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/testers/isFileControl.mjs +20 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/testers/isImageControl.mjs +16 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/utils/utcConverter.mjs +4 -9
- package/dist/.external/cjs/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.cjs +2 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.81.2_react@18.3.1 → @tanstack_react-query@5.81.5_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.81.2_react@18.3.1 → @tanstack_react-query@5.81.5_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.cjs +2 -2
- package/dist/.external/cjs/{@tanstack_react-query@5.81.2_react@18.3.1 → @tanstack_react-query@5.81.5_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.cjs +1 -1
- package/dist/.external/esm/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.mjs +2 -1
- package/dist/.external/esm/{@tanstack_react-query@5.81.2_react@18.3.1 → @tanstack_react-query@5.81.5_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.81.2_react@18.3.1 → @tanstack_react-query@5.81.5_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.mjs +2 -2
- package/dist/.external/esm/{@tanstack_react-query@5.81.2_react@18.3.1 → @tanstack_react-query@5.81.5_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.mjs +1 -1
- package/dist/core/cjs/ActionIcons/utils/convertToFormInputs.cjs +6 -8
- package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormDatePicker.cjs +1 -14
- package/dist/core/cjs/Tables/DataGrid/FormField/Inputs/FormDateTimePicker.cjs +1 -14
- package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderDateInput.cjs +1 -1
- package/dist/core/cjs/Wrappers/ApiProvider/Contexts/ApiContext.cjs +1 -1
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +14 -4
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideForm.cjs +1 -1
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/formCreateItem.cjs +19 -0
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/formUpdateItem.cjs +19 -0
- package/dist/core/cjs/Wrappers/ApiProvider/utils/api/utils/convertToFormData.cjs +32 -0
- 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/fab-react-toolkit-patch/api/hooks/useProvideApi.cjs +2 -2
- package/dist/core/cjs/fab-react-toolkit-patch/auth/hooks/useProvideAuth.cjs +2 -2
- package/dist/core/cjs/fab-react-toolkit-patch/auth/hooks/useProvideInfo.cjs +1 -1
- package/dist/core/cjs/index.cjs +8 -0
- package/dist/core/esm/ActionIcons/utils/convertToFormInputs.mjs +6 -8
- package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormDatePicker.mjs +1 -14
- package/dist/core/esm/Tables/DataGrid/FormField/Inputs/FormDateTimePicker.mjs +1 -14
- package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderDateInput.mjs +1 -1
- package/dist/core/esm/Wrappers/ApiProvider/Contexts/ApiContext.mjs +1 -1
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +14 -4
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideForm.mjs +1 -1
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/formCreateItem.mjs +19 -0
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/formUpdateItem.mjs +19 -0
- package/dist/core/esm/Wrappers/ApiProvider/utils/api/utils/convertToFormData.mjs +32 -0
- 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/fab-react-toolkit-patch/api/hooks/useProvideApi.mjs +2 -2
- package/dist/core/esm/fab-react-toolkit-patch/auth/hooks/useProvideAuth.mjs +2 -2
- package/dist/core/esm/fab-react-toolkit-patch/auth/hooks/useProvideInfo.mjs +1 -1
- package/dist/core/esm/index.mjs +8 -0
- package/dist/core/lib/Wrappers/ApiProvider/Contexts/ApiContext.d.ts +3 -3
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/formCreateItem.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/formUpdateItem.d.ts +1 -0
- package/dist/core/lib/Wrappers/ApiProvider/utils/api/utils/convertToFormData.d.ts +1 -0
- package/dist/core/lib/hooks/api/useApi.d.ts +2 -2
- package/dist/core/lib/index.d.ts +4 -0
- package/dist/jsonforms/cjs/MantineInputs/MantineDateTimeInput.cjs +8 -2
- package/dist/jsonforms/cjs/MantineInputs/MantineFileInput.cjs +33 -0
- package/dist/jsonforms/cjs/MantineInputs/MantineImageInput.cjs +21 -0
- package/dist/jsonforms/cjs/MantineInputs/MantineJsonInput.cjs +1 -1
- package/dist/jsonforms/cjs/MantineInputs/MantineTimeInput.cjs +21 -0
- package/dist/jsonforms/cjs/cells/MantineFileCell.cjs +11 -0
- package/dist/jsonforms/cjs/cells/MantineImageCell.cjs +11 -0
- package/dist/jsonforms/cjs/cells/MantineTimeCell.cjs +10 -0
- package/dist/jsonforms/cjs/controls/MantineDateControl.cjs +1 -1
- package/dist/jsonforms/cjs/controls/MantineDateTimeControl.cjs +1 -1
- package/dist/jsonforms/cjs/controls/MantineFileControl.cjs +12 -0
- package/dist/jsonforms/cjs/controls/MantineImageControl.cjs +12 -0
- package/dist/jsonforms/cjs/controls/MantineTimeControl.cjs +11 -0
- package/dist/jsonforms/cjs/hooks/useDateProps.cjs +12 -21
- package/dist/jsonforms/cjs/hooks/useFileProps.cjs +19 -0
- package/dist/jsonforms/cjs/hooks/useTimeProps.cjs +6 -0
- package/dist/jsonforms/cjs/index.cjs +10 -2
- package/dist/jsonforms/cjs/renderers/mantineCells.cjs +13 -5
- package/dist/jsonforms/cjs/renderers/mantineRenderers.cjs +11 -5
- package/dist/jsonforms/cjs/testers/isFileControl.cjs +20 -0
- package/dist/jsonforms/cjs/testers/isImageControl.cjs +16 -0
- package/dist/jsonforms/cjs/utils/utcConverter.cjs +4 -9
- package/dist/jsonforms/esm/MantineInputs/MantineDateTimeInput.mjs +9 -3
- package/dist/jsonforms/esm/MantineInputs/MantineFileInput.mjs +33 -0
- package/dist/jsonforms/esm/MantineInputs/MantineImageInput.mjs +21 -0
- package/dist/jsonforms/esm/MantineInputs/MantineJsonInput.mjs +1 -1
- package/dist/jsonforms/esm/MantineInputs/MantineTimeInput.mjs +21 -0
- package/dist/jsonforms/esm/cells/MantineFileCell.mjs +11 -0
- package/dist/jsonforms/esm/cells/MantineImageCell.mjs +11 -0
- package/dist/jsonforms/esm/cells/MantineTimeCell.mjs +10 -0
- package/dist/jsonforms/esm/controls/MantineDateControl.mjs +1 -1
- package/dist/jsonforms/esm/controls/MantineDateTimeControl.mjs +1 -1
- package/dist/jsonforms/esm/controls/MantineFileControl.mjs +12 -0
- package/dist/jsonforms/esm/controls/MantineImageControl.mjs +12 -0
- package/dist/jsonforms/esm/controls/MantineTimeControl.mjs +11 -0
- package/dist/jsonforms/esm/hooks/useDateProps.mjs +13 -22
- package/dist/jsonforms/esm/hooks/useFileProps.mjs +19 -0
- package/dist/jsonforms/esm/hooks/useTimeProps.mjs +6 -0
- package/dist/jsonforms/esm/index.mjs +12 -4
- package/dist/jsonforms/esm/renderers/mantineCells.mjs +13 -5
- package/dist/jsonforms/esm/renderers/mantineRenderers.mjs +11 -5
- package/dist/jsonforms/esm/testers/isFileControl.mjs +20 -0
- package/dist/jsonforms/esm/testers/isImageControl.mjs +16 -0
- package/dist/jsonforms/esm/utils/utcConverter.mjs +4 -9
- package/dist/jsonforms/lib/MantineInputs/MantineFileInput.d.ts +10 -0
- package/dist/jsonforms/lib/MantineInputs/MantineImageInput.d.ts +4 -0
- package/dist/jsonforms/lib/MantineInputs/MantineTimeInput.d.ts +4 -0
- package/dist/jsonforms/lib/cells/MantineFileCell.d.ts +2 -0
- package/dist/jsonforms/lib/cells/MantineImageCell.d.ts +2 -0
- package/dist/jsonforms/lib/cells/MantineTimeCell.d.ts +2 -0
- package/dist/jsonforms/lib/controls/MantineFileControl.d.ts +2 -0
- package/dist/jsonforms/lib/controls/MantineImageControl.d.ts +2 -0
- package/dist/jsonforms/lib/controls/MantineTimeControl.d.ts +2 -0
- package/dist/jsonforms/lib/hooks/useDateProps.d.ts +2 -5
- package/dist/jsonforms/lib/hooks/useFileProps.d.ts +22 -0
- package/dist/jsonforms/lib/hooks/useTimeProps.d.ts +14 -0
- package/dist/jsonforms/lib/index.d.ts +5 -1
- package/dist/jsonforms/lib/testers/isFileControl.d.ts +14 -0
- package/dist/jsonforms/lib/testers/isImageControl.d.ts +13 -0
- package/dist/jsonforms/lib/utils/utcConverter.d.ts +2 -25
- package/dist/zustand/cjs/useProxy/useProxy.cjs +1 -1
- package/dist/zustand/esm/useProxy/useProxy.mjs +1 -1
- package/package.json +9 -9
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/focusManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/mutation.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/mutationCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/notifyManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/onlineManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/query.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/queryCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/queryClient.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/queryObserver.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/removable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/retryer.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/subscribable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/thenable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/utils.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.81.2_react@18.3.1 → @tanstack_react-query@5.81.5_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.81.2_react@18.3.1 → @tanstack_react-query@5.81.5_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.81.2_react@18.3.1 → @tanstack_react-query@5.81.5_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.81.2_react@18.3.1 → @tanstack_react-query@5.81.5_react@18.3.1}/@tanstack/react-query/build/modern/suspense.cjs +0 -0
- /package/dist/.external/cjs/{mantine-form-yup-resolver@2.0.0_@mantine_form@7.17.8_yup@1.6.1 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.1.3_yup@1.6.1}/mantine-form-yup-resolver/dist/esm/index.cjs +0 -0
- /package/dist/.external/cjs/{zustand@5.0.5_@types_react@18.3.23_react@18.3.1 → zustand@5.0.6_@types_react@18.3.23_react@18.3.1}/zustand/esm/react.cjs +0 -0
- /package/dist/.external/cjs/{zustand@5.0.5_@types_react@18.3.23_react@18.3.1 → zustand@5.0.6_@types_react@18.3.23_react@18.3.1}/zustand/esm/vanilla.cjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/focusManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/mutation.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/mutationCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/notifyManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/onlineManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/query.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/queryCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/queryClient.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/queryObserver.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/removable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/retryer.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/subscribable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/thenable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.2 → @tanstack_query-core@5.81.5}/@tanstack/query-core/build/modern/utils.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.81.2_react@18.3.1 → @tanstack_react-query@5.81.5_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.81.2_react@18.3.1 → @tanstack_react-query@5.81.5_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.81.2_react@18.3.1 → @tanstack_react-query@5.81.5_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.81.2_react@18.3.1 → @tanstack_react-query@5.81.5_react@18.3.1}/@tanstack/react-query/build/modern/suspense.mjs +0 -0
- /package/dist/.external/esm/{mantine-form-yup-resolver@2.0.0_@mantine_form@7.17.8_yup@1.6.1 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.1.3_yup@1.6.1}/mantine-form-yup-resolver/dist/esm/index.mjs +0 -0
- /package/dist/.external/esm/{zustand@5.0.5_@types_react@18.3.23_react@18.3.1 → zustand@5.0.6_@types_react@18.3.23_react@18.3.1}/zustand/esm/react.mjs +0 -0
- /package/dist/.external/esm/{zustand@5.0.5_@types_react@18.3.23_react@18.3.1 → zustand@5.0.6_@types_react@18.3.23_react@18.3.1}/zustand/esm/vanilla.mjs +0 -0
|
@@ -3,7 +3,7 @@ import { rankWith, isDateTimeControl } from "@jsonforms/core";
|
|
|
3
3
|
import { withJsonFormsControlProps } from "@jsonforms/react";
|
|
4
4
|
import { MantineDateTimeInput } from "../MantineInputs/MantineDateTimeInput.mjs";
|
|
5
5
|
import { DEFAULT_MARGIN } from "../utils/constants.mjs";
|
|
6
|
-
const mantineDateTimeControlTester = rankWith(
|
|
6
|
+
const mantineDateTimeControlTester = rankWith(2, isDateTimeControl);
|
|
7
7
|
const MantineDateTimeControl = withJsonFormsControlProps((props) => /* @__PURE__ */ jsx(MantineDateTimeInput, { margin: DEFAULT_MARGIN, ...props }));
|
|
8
8
|
export {
|
|
9
9
|
MantineDateTimeControl,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { rankWith } from "@jsonforms/core";
|
|
3
|
+
import { withJsonFormsControlProps } from "@jsonforms/react";
|
|
4
|
+
import { MantineFileInput } from "../MantineInputs/MantineFileInput.mjs";
|
|
5
|
+
import { isFileControl } from "../testers/isFileControl.mjs";
|
|
6
|
+
import { DEFAULT_MARGIN } from "../utils/constants.mjs";
|
|
7
|
+
const mantineFileControlTester = rankWith(3, isFileControl);
|
|
8
|
+
const MantineFileControl = withJsonFormsControlProps((props) => /* @__PURE__ */ jsx(MantineFileInput, { margin: DEFAULT_MARGIN, ...props }));
|
|
9
|
+
export {
|
|
10
|
+
MantineFileControl,
|
|
11
|
+
mantineFileControlTester
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { rankWith } from "@jsonforms/core";
|
|
3
|
+
import { withJsonFormsControlProps } from "@jsonforms/react";
|
|
4
|
+
import { MantineImageInput } from "../MantineInputs/MantineImageInput.mjs";
|
|
5
|
+
import { isImageControl } from "../testers/isImageControl.mjs";
|
|
6
|
+
import { DEFAULT_MARGIN } from "../utils/constants.mjs";
|
|
7
|
+
const mantineImageControlTester = rankWith(4, isImageControl);
|
|
8
|
+
const MantineImageControl = withJsonFormsControlProps((props) => /* @__PURE__ */ jsx(MantineImageInput, { margin: DEFAULT_MARGIN, ...props }));
|
|
9
|
+
export {
|
|
10
|
+
MantineImageControl,
|
|
11
|
+
mantineImageControlTester
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { rankWith, isTimeControl } from "@jsonforms/core";
|
|
3
|
+
import { withJsonFormsControlProps } from "@jsonforms/react";
|
|
4
|
+
import { MantineTimeInput } from "../MantineInputs/MantineTimeInput.mjs";
|
|
5
|
+
import { DEFAULT_MARGIN } from "../utils/constants.mjs";
|
|
6
|
+
const mantineTimeControlTester = rankWith(2, isTimeControl);
|
|
7
|
+
const MantineTimeControl = withJsonFormsControlProps((props) => /* @__PURE__ */ jsx(MantineTimeInput, { margin: DEFAULT_MARGIN, ...props }));
|
|
8
|
+
export {
|
|
9
|
+
MantineTimeControl,
|
|
10
|
+
mantineTimeControlTester
|
|
11
|
+
};
|
|
@@ -1,27 +1,18 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Icon } from "../../../.external/esm/@iconify_react@6.0.0_react@18.3.1/@iconify/react/dist/iconify.mjs";
|
|
3
3
|
import { useMantineTheme, Group, CloseButton } from "@mantine/core";
|
|
4
|
-
import {
|
|
4
|
+
import { convertUTCStringToLocalString, convertLocalStringToUTCString } from "../utils/utcConverter.mjs";
|
|
5
5
|
function useDateProps(type, isUTC, { data, toggle, onChange }) {
|
|
6
6
|
const theme = useMantineTheme();
|
|
7
|
-
const props = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
onChange
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
data2 = convertLocalToUTCISOString(data2);
|
|
17
|
-
} else {
|
|
18
|
-
data2 = data2.toISOString();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
onChange(data2 || void 0);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
if (type !== "date") {
|
|
7
|
+
const props = { clearable: true };
|
|
8
|
+
if (type === "date") {
|
|
9
|
+
props.valueFormat = "DD.MM.YYYY";
|
|
10
|
+
props.value = data || null;
|
|
11
|
+
props.onChange = (data2) => onChange(data2 || void 0);
|
|
12
|
+
} else {
|
|
13
|
+
props.valueFormat = isUTC ? "DD.MM.YYYY HH:mm (UTC)" : "DD.MM.YYYY HH:mm";
|
|
14
|
+
props.value = data ? isUTC ? convertUTCStringToLocalString(data) : data : null;
|
|
15
|
+
props.onChange = (data2) => onChange(data2 ? isUTC ? convertLocalStringToUTCString(data2) : data2 : void 0);
|
|
25
16
|
props.placeholder = isUTC ? "DD.MM.YYYY HH:mm (UTC)" : "DD.MM.YYYY HH:mm";
|
|
26
17
|
props.rightSection = /* @__PURE__ */ jsxs(Group, { gap: "0.25rem", wrap: "nowrap", children: [
|
|
27
18
|
/* @__PURE__ */ jsx(
|
|
@@ -30,7 +21,7 @@ function useDateProps(type, isUTC, { data, toggle, onChange }) {
|
|
|
30
21
|
variant: "transparent",
|
|
31
22
|
size: "sm",
|
|
32
23
|
onClick: () => onChange(void 0),
|
|
33
|
-
style: { visibility:
|
|
24
|
+
style: { visibility: props.value ? void 0 : "hidden" }
|
|
34
25
|
}
|
|
35
26
|
),
|
|
36
27
|
/* @__PURE__ */ jsx(
|
|
@@ -41,8 +32,8 @@ function useDateProps(type, isUTC, { data, toggle, onChange }) {
|
|
|
41
32
|
size: "sm",
|
|
42
33
|
onClick: () => {
|
|
43
34
|
toggle();
|
|
44
|
-
if (
|
|
45
|
-
onChange(
|
|
35
|
+
if (props.value) {
|
|
36
|
+
onChange(isUTC ? convertUTCStringToLocalString(props.value) : convertLocalStringToUTCString(props.value));
|
|
46
37
|
}
|
|
47
38
|
},
|
|
48
39
|
icon: /* @__PURE__ */ jsx(Icon, { icon: "tabler:timezone", color: isUTC ? theme.primaryColor : "gray" })
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
function useFileProps({ data, onChange, contentMediaType, errors }) {
|
|
3
|
+
var _a;
|
|
4
|
+
const filteredErrors = (_a = errors == null ? void 0 : errors.split("\n").filter((error) => !error.startsWith("must be string"))) == null ? void 0 : _a.join("\n");
|
|
5
|
+
let value = data || null;
|
|
6
|
+
if (typeof value === "string") {
|
|
7
|
+
value = new File([value], value);
|
|
8
|
+
}
|
|
9
|
+
return {
|
|
10
|
+
value,
|
|
11
|
+
onChange: (value2) => onChange(value2 || void 0),
|
|
12
|
+
accept: contentMediaType || void 0,
|
|
13
|
+
error: filteredErrors ? filteredErrors.split("\n").map((error) => /* @__PURE__ */ jsx("span", { style: { display: "block" }, children: error }, error)) : void 0,
|
|
14
|
+
clearable: true
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
useFileProps
|
|
19
|
+
};
|
|
@@ -5,24 +5,30 @@ import { useBooleanProps } from "./hooks/useBooleanProps.mjs";
|
|
|
5
5
|
import { useCommonProps } from "./hooks/useCommonProps.mjs";
|
|
6
6
|
import { useContextProps } from "./hooks/useContextProps.mjs";
|
|
7
7
|
import { useDateProps } from "./hooks/useDateProps.mjs";
|
|
8
|
+
import { useFileProps } from "./hooks/useFileProps.mjs";
|
|
8
9
|
import { useJsonProps } from "./hooks/useJsonProps.mjs";
|
|
9
10
|
import { useMultiSelectProps } from "./hooks/useMultiSelectProps.mjs";
|
|
10
11
|
import { useNumberProps } from "./hooks/useNumberProps.mjs";
|
|
11
12
|
import { useSelectProps } from "./hooks/useSelectProps.mjs";
|
|
12
13
|
import { useTextProps } from "./hooks/useTextProps.mjs";
|
|
13
14
|
import { useThemeCustomizer } from "./hooks/useThemeCustomizer.mjs";
|
|
15
|
+
import { useTimeProps } from "./hooks/useTimeProps.mjs";
|
|
14
16
|
import { isEnumArrayArrayControl } from "./testers/isEnumArrayArrayControl.mjs";
|
|
15
17
|
import { isEnumArrayControl } from "./testers/isEnumArrayControl.mjs";
|
|
18
|
+
import { isFileControl } from "./testers/isFileControl.mjs";
|
|
19
|
+
import { isImageControl } from "./testers/isImageControl.mjs";
|
|
16
20
|
import { isJsonArrayControl } from "./testers/isJsonArrayControl.mjs";
|
|
17
21
|
import { isJsonControl } from "./testers/isJsonControl.mjs";
|
|
18
22
|
import { isSchemaTypeInclude } from "./utils/isSchemaTypeInclude.mjs";
|
|
19
|
-
import {
|
|
23
|
+
import { convertLocalStringToUTCString, convertUTCStringToLocalString } from "./utils/utcConverter.mjs";
|
|
20
24
|
export {
|
|
21
25
|
JsonFormsWithCustomizer,
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
convertLocalStringToUTCString,
|
|
27
|
+
convertUTCStringToLocalString,
|
|
24
28
|
isEnumArrayArrayControl,
|
|
25
29
|
isEnumArrayControl,
|
|
30
|
+
isFileControl,
|
|
31
|
+
isImageControl,
|
|
26
32
|
isJsonArrayControl,
|
|
27
33
|
isJsonControl,
|
|
28
34
|
isSchemaTypeInclude,
|
|
@@ -32,10 +38,12 @@ export {
|
|
|
32
38
|
useCommonProps,
|
|
33
39
|
useContextProps,
|
|
34
40
|
useDateProps,
|
|
41
|
+
useFileProps,
|
|
35
42
|
useJsonProps,
|
|
36
43
|
useMultiSelectProps,
|
|
37
44
|
useNumberProps,
|
|
38
45
|
useSelectProps,
|
|
39
46
|
useTextProps,
|
|
40
|
-
useThemeCustomizer
|
|
47
|
+
useThemeCustomizer,
|
|
48
|
+
useTimeProps
|
|
41
49
|
};
|
|
@@ -3,21 +3,29 @@ import { MantineDateCell, mantineDateCellTester } from "../cells/MantineDateCell
|
|
|
3
3
|
import { MantineDateTimeCell, mantineDateTimeCellTester } from "../cells/MantineDateTimeCell.mjs";
|
|
4
4
|
import { MantineEnumArrayCell, mantineEnumArrayCellTester } from "../cells/MantineEnumArrayCell.mjs";
|
|
5
5
|
import { MantineEnumCell, mantineEnumCellTester } from "../cells/MantineEnumCell.mjs";
|
|
6
|
+
import { MantineFileCell, mantineFileCellTester } from "../cells/MantineFileCell.mjs";
|
|
7
|
+
import { MantineImageCell, mantineImageCellTester } from "../cells/MantineImageCell.mjs";
|
|
6
8
|
import { MantineIntegerCell, mantineIntegerCellTester } from "../cells/MantineIntegerCell.mjs";
|
|
7
9
|
import { MantineJsonCell, mantineJsonCellTester } from "../cells/MantineJsonCell.mjs";
|
|
8
10
|
import { MantineNumberCell, mantineNumberCellTester } from "../cells/MantineNumberCell.mjs";
|
|
9
11
|
import { MantineOneOfEnumCell, mantineOneOfEnumCellTester } from "../cells/MantineOneOfEnumCell.mjs";
|
|
10
12
|
import { MantineTextCell, mantineTextCellTester } from "../cells/MantineTextCell.mjs";
|
|
13
|
+
import { MantineTimeCell, mantineTimeCellTester } from "../cells/MantineTimeCell.mjs";
|
|
11
14
|
const mantineCells = [
|
|
15
|
+
// Cells
|
|
12
16
|
{ tester: mantineTextCellTester, cell: MantineTextCell },
|
|
13
|
-
{ tester: mantineNumberCellTester, cell: MantineNumberCell },
|
|
14
|
-
{ tester: mantineIntegerCellTester, cell: MantineIntegerCell },
|
|
15
|
-
{ tester: mantineBooleanCellTester, cell: MantineBooleanCell },
|
|
16
|
-
{ tester: mantineDateCellTester, cell: MantineDateCell },
|
|
17
|
-
{ tester: mantineDateTimeCellTester, cell: MantineDateTimeCell },
|
|
18
17
|
{ tester: mantineEnumCellTester, cell: MantineEnumCell },
|
|
19
18
|
{ tester: mantineOneOfEnumCellTester, cell: MantineOneOfEnumCell },
|
|
19
|
+
{ tester: mantineDateCellTester, cell: MantineDateCell },
|
|
20
|
+
{ tester: mantineTimeCellTester, cell: MantineTimeCell },
|
|
21
|
+
{ tester: mantineDateTimeCellTester, cell: MantineDateTimeCell },
|
|
20
22
|
{ tester: mantineJsonCellTester, cell: MantineJsonCell },
|
|
23
|
+
{ tester: mantineFileCellTester, cell: MantineFileCell },
|
|
24
|
+
{ tester: mantineImageCellTester, cell: MantineImageCell },
|
|
25
|
+
{ tester: mantineNumberCellTester, cell: MantineNumberCell },
|
|
26
|
+
{ tester: mantineIntegerCellTester, cell: MantineIntegerCell },
|
|
27
|
+
{ tester: mantineBooleanCellTester, cell: MantineBooleanCell },
|
|
28
|
+
// Complex Cells
|
|
21
29
|
{ tester: mantineEnumArrayCellTester, cell: MantineEnumArrayCell }
|
|
22
30
|
];
|
|
23
31
|
export {
|
|
@@ -5,30 +5,36 @@ import { MantineBooleanControl, mantineBooleanControlTester } from "../controls/
|
|
|
5
5
|
import { MantineDateControl, mantineDateControlTester } from "../controls/MantineDateControl.mjs";
|
|
6
6
|
import { MantineDateTimeControl, mantineDateTimeControlTester } from "../controls/MantineDateTimeControl.mjs";
|
|
7
7
|
import { MantineEnumControl, mantineEnumControlTester } from "../controls/MantineEnumControl.mjs";
|
|
8
|
+
import { MantineFileControl, mantineFileControlTester } from "../controls/MantineFileControl.mjs";
|
|
9
|
+
import { MantineImageControl, mantineImageControlTester } from "../controls/MantineImageControl.mjs";
|
|
8
10
|
import { MantineIntegerControl, mantineIntegerControlTester } from "../controls/MantineIntegerControl.mjs";
|
|
9
11
|
import { MantineJsonControl, mantineJsonControlTester } from "../controls/MantineJsonControl.mjs";
|
|
10
12
|
import { MantineNumberControl, mantineNumberControlTester } from "../controls/MantineNumberControl.mjs";
|
|
11
13
|
import { MantineOneOfEnumControl, mantineOneOfEnumControlTester } from "../controls/MantineOneOfEnumControl.mjs";
|
|
12
14
|
import { MantineTextControl, mantineTextControlTester } from "../controls/MantineTextControl.mjs";
|
|
15
|
+
import { MantineTimeControl, mantineTimeControlTester } from "../controls/MantineTimeControl.mjs";
|
|
13
16
|
import { MantineLabelRenderer, MantineLabelTester } from "../labels/MantineLabelRenderer.mjs";
|
|
14
17
|
import { MantineGroupLayoutRenderer, MantineGroupLayoutTester } from "../layouts/MantineGroupLayoutRenderer.mjs";
|
|
15
18
|
import { MantineHorizontalLayoutRenderer, mantineHorizontalLayoutTester } from "../layouts/MantineHotizontalLayoutRenderer.mjs";
|
|
16
19
|
import { MantineVerticalLayoutRenderer, mantineVerticalLayoutTester } from "../layouts/MantineVerticalLayoutRenderer.mjs";
|
|
17
20
|
const mantineRenderers = [
|
|
18
21
|
// Controls
|
|
22
|
+
{ tester: mantineTextControlTester, renderer: MantineTextControl },
|
|
23
|
+
{ tester: mantineEnumControlTester, renderer: MantineEnumControl },
|
|
24
|
+
{ tester: mantineOneOfEnumControlTester, renderer: MantineOneOfEnumControl },
|
|
19
25
|
{ tester: mantineDateControlTester, renderer: MantineDateControl },
|
|
26
|
+
{ tester: mantineTimeControlTester, renderer: MantineTimeControl },
|
|
20
27
|
{ tester: mantineDateTimeControlTester, renderer: MantineDateTimeControl },
|
|
28
|
+
{ tester: mantineJsonControlTester, renderer: MantineJsonControl },
|
|
29
|
+
{ tester: mantineFileControlTester, renderer: MantineFileControl },
|
|
30
|
+
{ tester: mantineImageControlTester, renderer: MantineImageControl },
|
|
21
31
|
{ tester: mantineNumberControlTester, renderer: MantineNumberControl },
|
|
22
32
|
{ tester: mantineIntegerControlTester, renderer: MantineIntegerControl },
|
|
23
|
-
{ tester: mantineTextControlTester, renderer: MantineTextControl },
|
|
24
33
|
{ tester: mantineBooleanControlTester, renderer: MantineBooleanControl },
|
|
25
|
-
{ tester: mantineEnumControlTester, renderer: MantineEnumControl },
|
|
26
|
-
{ tester: mantineOneOfEnumControlTester, renderer: MantineOneOfEnumControl },
|
|
27
|
-
{ tester: mantineJsonControlTester, renderer: MantineJsonControl },
|
|
28
34
|
// Complex
|
|
35
|
+
{ tester: MantineObjectControlTester, renderer: MantineObjectControl },
|
|
29
36
|
{ tester: mantineArrayControlTester, renderer: MantineArrayControlRenderer },
|
|
30
37
|
{ tester: mantineEnumArrayRendererTester, renderer: MantineEnumArrayRenderer },
|
|
31
|
-
{ tester: MantineObjectControlTester, renderer: MantineObjectControl },
|
|
32
38
|
// Layouts
|
|
33
39
|
{ tester: mantineHorizontalLayoutTester, renderer: MantineHorizontalLayoutRenderer },
|
|
34
40
|
{ tester: mantineVerticalLayoutTester, renderer: MantineVerticalLayoutRenderer },
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { resolveSchema } from "@jsonforms/core";
|
|
2
|
+
import { isSchemaTypeInclude } from "../utils/isSchemaTypeInclude.mjs";
|
|
3
|
+
const isFileSchema = (schema) => {
|
|
4
|
+
return isSchemaTypeInclude(schema.type, "string") && "contentMediaType" in schema;
|
|
5
|
+
};
|
|
6
|
+
function isFileControl(uischema, schema) {
|
|
7
|
+
if (!uischema.scope || uischema.type !== "Control") {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
const resolvedSchema = resolveSchema(schema, uischema.scope);
|
|
11
|
+
try {
|
|
12
|
+
return isFileSchema(resolvedSchema);
|
|
13
|
+
} catch {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
isFileControl,
|
|
19
|
+
isFileSchema
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { resolveSchema } from "@jsonforms/core";
|
|
2
|
+
import { isFileSchema } from "./isFileControl.mjs";
|
|
3
|
+
function isImageControl(uischema, schema) {
|
|
4
|
+
if (!uischema.scope || uischema.type !== "Control") {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
const resolvedSchema = resolveSchema(schema, uischema.scope);
|
|
8
|
+
try {
|
|
9
|
+
return isFileSchema(resolvedSchema) && resolvedSchema.contentMediaType.startsWith("image/");
|
|
10
|
+
} catch {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
isImageControl
|
|
16
|
+
};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
function convertUTCISOStringToLocal(dateString) {
|
|
5
|
-
const date = new Date(dateString);
|
|
6
|
-
return new Date(date.getTime() + date.getTimezoneOffset() * 6e4);
|
|
7
|
-
}
|
|
1
|
+
const convertLocalStringToUTCString = (dateString) => (/* @__PURE__ */ new Date(dateString.replace(" ", "T") + "Z")).toISOString();
|
|
2
|
+
const convertUTCStringToLocalString = (dateString) => dateString.replace("T", " ").replace("Z", "");
|
|
8
3
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
convertLocalStringToUTCString,
|
|
5
|
+
convertUTCStringToLocalString
|
|
11
6
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function MantineFileInput({ margin, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
margin: any;
|
|
4
|
+
}): import("react").JSX.Element;
|
|
5
|
+
export function InnerMantineFileInput({ contextName, margin, children, ...props }: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
contextName: any;
|
|
8
|
+
margin: any;
|
|
9
|
+
children: any;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const mantineFileCellTester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
2
|
+
export const MantineFileCell: import('react').ComponentType<import('@jsonforms/core').OwnPropsOfCell>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const mantineImageCellTester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
2
|
+
export const MantineImageCell: import('react').ComponentType<import('@jsonforms/core').OwnPropsOfCell>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const mantineTimeCellTester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
2
|
+
export const MantineTimeCell: import('react').ComponentType<import('@jsonforms/core').OwnPropsOfCell>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const mantineFileControlTester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
2
|
+
export const MantineFileControl: import('react').ComponentType<import('@jsonforms/core').OwnPropsOfControl>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const mantineImageControlTester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
2
|
+
export const MantineImageControl: import('react').ComponentType<import('@jsonforms/core').OwnPropsOfControl>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const mantineTimeControlTester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
2
|
+
export const MantineTimeControl: import('react').ComponentType<import('@jsonforms/core').OwnPropsOfControl>;
|
|
@@ -4,18 +4,15 @@
|
|
|
4
4
|
* @param {'date' | 'date-time'} type - The type of date input, e.g., 'date'.
|
|
5
5
|
* @param {boolean} isUTC - Boolean indicating whether to handle the date as UTC.
|
|
6
6
|
* @param {Object} options - The options object.
|
|
7
|
-
* @param {string|
|
|
7
|
+
* @param {string|undefined} options.data - The date data to be processed.
|
|
8
8
|
* @param {function} options.toggle - The toggle function to switch between UTC and local time.
|
|
9
9
|
* @param {function} options.onChange - The callback function to handle date changes.
|
|
10
10
|
* @returns An object containing the processed date value and an onChange handler.
|
|
11
11
|
*/
|
|
12
12
|
export function useDateProps(type: "date" | "date-time", isUTC: boolean, { data, toggle, onChange }: {
|
|
13
|
-
data: string |
|
|
13
|
+
data: string | undefined;
|
|
14
14
|
toggle: Function;
|
|
15
15
|
onChange: Function;
|
|
16
16
|
}): {
|
|
17
|
-
valueFormat: string;
|
|
18
|
-
value: Date;
|
|
19
17
|
clearable: boolean;
|
|
20
|
-
onChange: (data: any) => void;
|
|
21
18
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom hook to handle file input properties.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} params - The parameters object.
|
|
5
|
+
* @param {string | File} params.data - The initial value of the file input.
|
|
6
|
+
* @param {Function} params.onChange - The callback function to handle changes in the file input.
|
|
7
|
+
* @param {string} params.contentMediaType - The accepted media type for the file input.
|
|
8
|
+
* @param {string} params.errors - The error messages associated with the file input.
|
|
9
|
+
* @returns - An object containing properties for the file input component.
|
|
10
|
+
*/
|
|
11
|
+
export function useFileProps({ data, onChange, contentMediaType, errors }: {
|
|
12
|
+
data: string | File;
|
|
13
|
+
onChange: Function;
|
|
14
|
+
contentMediaType: string;
|
|
15
|
+
errors: string;
|
|
16
|
+
}): {
|
|
17
|
+
value: File;
|
|
18
|
+
onChange: (value: any) => any;
|
|
19
|
+
accept: string;
|
|
20
|
+
error: import("react").JSX.Element[];
|
|
21
|
+
clearable: boolean;
|
|
22
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom hook to handle time input properties.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} params - The parameters object.
|
|
5
|
+
* @param {string} params.data - The initial value of the time input.
|
|
6
|
+
* @param {Function} params.onChange - The callback function to handle changes in the time input.
|
|
7
|
+
* @returns An object containing the value for the time input.
|
|
8
|
+
*/
|
|
9
|
+
export function useTimeProps({ data }: {
|
|
10
|
+
data: string;
|
|
11
|
+
onChange: Function;
|
|
12
|
+
}): {
|
|
13
|
+
value: string;
|
|
14
|
+
};
|
|
@@ -5,15 +5,19 @@ export { useBooleanProps } from './hooks/useBooleanProps';
|
|
|
5
5
|
export { useCommonProps } from './hooks/useCommonProps';
|
|
6
6
|
export { useContextProps } from './hooks/useContextProps';
|
|
7
7
|
export { useDateProps } from './hooks/useDateProps';
|
|
8
|
+
export { useFileProps } from './hooks/useFileProps';
|
|
8
9
|
export { useJsonProps } from './hooks/useJsonProps';
|
|
9
10
|
export { useMultiSelectProps } from './hooks/useMultiSelectProps';
|
|
10
11
|
export { useNumberProps } from './hooks/useNumberProps';
|
|
11
12
|
export { useSelectProps } from './hooks/useSelectProps';
|
|
12
13
|
export { useTextProps } from './hooks/useTextProps';
|
|
13
14
|
export { useThemeCustomizer } from './hooks/useThemeCustomizer';
|
|
15
|
+
export { useTimeProps } from './hooks/useTimeProps';
|
|
14
16
|
export { isEnumArrayArrayControl } from './testers/isEnumArrayArrayControl';
|
|
15
17
|
export { isEnumArrayControl } from './testers/isEnumArrayControl';
|
|
18
|
+
export { isFileControl } from './testers/isFileControl';
|
|
19
|
+
export { isImageControl } from './testers/isImageControl';
|
|
16
20
|
export { isJsonArrayControl } from './testers/isJsonArrayControl';
|
|
17
21
|
export { isJsonControl } from './testers/isJsonControl';
|
|
18
22
|
export { isSchemaTypeInclude } from './utils/isSchemaTypeInclude';
|
|
19
|
-
export {
|
|
23
|
+
export { convertLocalStringToUTCString, convertUTCStringToLocalString } from './utils/utcConverter';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Determines if the given UI schema control is a file control.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} uischema - The UI schema to evaluate.
|
|
5
|
+
* @param {string} uischema.scope - The scope of the UI schema.
|
|
6
|
+
* @param {string} uischema.type - The type of the UI schema.
|
|
7
|
+
* @param {Object} schema - The JSON schema to resolve against.
|
|
8
|
+
* @returns {boolean} - Returns true if the control is a file control, otherwise false.
|
|
9
|
+
*/
|
|
10
|
+
export function isFileControl(uischema: {
|
|
11
|
+
scope: string;
|
|
12
|
+
type: string;
|
|
13
|
+
}, schema: any): boolean;
|
|
14
|
+
export function isFileSchema(schema: any): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Determines if the given UI schema control is an image control.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} uischema - The UI schema to evaluate.
|
|
5
|
+
* @param {string} uischema.scope - The scope of the UI schema.
|
|
6
|
+
* @param {string} uischema.type - The type of the UI schema.
|
|
7
|
+
* @param {Object} schema - The JSON schema to resolve against.
|
|
8
|
+
* @returns {boolean} - Returns true if the control is an image control, otherwise false.
|
|
9
|
+
*/
|
|
10
|
+
export function isImageControl(uischema: {
|
|
11
|
+
scope: string;
|
|
12
|
+
type: string;
|
|
13
|
+
}, schema: any): boolean;
|
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* This means that the local date will be the same in the UTC timezone.
|
|
4
|
-
*
|
|
5
|
-
* @param {Date} date - The local date to be converted.
|
|
6
|
-
* @returns {string} The UTC string representation of the given date.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* const date = new Date('2021-01-01T00:00:00');
|
|
10
|
-
* const dateString = convertLocalToUTCISOString(date);
|
|
11
|
-
* console.log(dateString); // '2021-01-01T00:00:00.000Z'
|
|
12
|
-
*/
|
|
13
|
-
export function convertLocalToUTCISOString(date: Date): string;
|
|
14
|
-
/**
|
|
15
|
-
* Converts a UTC ISO string to a local date object. This converts a UTC date 1-to-1 to a local date.
|
|
16
|
-
*
|
|
17
|
-
* @param {string} dateString - The UTC date object to be converted.
|
|
18
|
-
* @returns {Date} - The local date object.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* const date = new Date('2021-01-01T00:00:00.000Z');
|
|
22
|
-
* const localDate = convertUTCIsoStringToLocal(date);
|
|
23
|
-
* console.log(localDate); // Date object representing the local date, but with the same time as the UTC date
|
|
24
|
-
*/
|
|
25
|
-
export function convertUTCISOStringToLocal(dateString: string): Date;
|
|
1
|
+
export function convertLocalStringToUTCString(dateString: string): string;
|
|
2
|
+
export function convertUTCStringToLocalString(dateString: string): string;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const compareStateWithStore = require("../utils/compareStateWithStore.cjs");
|
|
5
5
|
const createProxy = require("../utils/createProxy.cjs");
|
|
6
|
-
const react = require("../../../.external/cjs/zustand@5.0.
|
|
6
|
+
const react = require("../../../.external/cjs/zustand@5.0.6_@types_react@18.3.23_react@18.3.1/zustand/esm/react.cjs");
|
|
7
7
|
function useProxy(obj) {
|
|
8
8
|
const [store] = React.useState(() => react.create(() => ({ ...obj })));
|
|
9
9
|
const [proxy] = React.useState(() => createProxy.createProxy(store, ["getState", "setState"]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
2
|
import { compareStateWithStore } from "../utils/compareStateWithStore.mjs";
|
|
3
3
|
import { createProxy } from "../utils/createProxy.mjs";
|
|
4
|
-
import { create } from "../../../.external/esm/zustand@5.0.
|
|
4
|
+
import { create } from "../../../.external/esm/zustand@5.0.6_@types_react@18.3.23_react@18.3.1/zustand/esm/react.mjs";
|
|
5
5
|
function useProxy(obj) {
|
|
6
6
|
const [store] = useState(() => create(() => ({ ...obj })));
|
|
7
7
|
const [proxy] = useState(() => createProxy(store, ["getState", "setState"]));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fastapi-rtk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A React component library for FastAPI in combination with FastAPI React Toolkit backend, built with Mantine, JsonForms, and Zustand.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -80,10 +80,10 @@
|
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@eslint/js": "^9.25.1",
|
|
83
|
-
"@mantine/core": "^
|
|
84
|
-
"@mantine/dates": "^
|
|
85
|
-
"@mantine/form": "^
|
|
86
|
-
"@mantine/hooks": "^
|
|
83
|
+
"@mantine/core": "^8.1.2",
|
|
84
|
+
"@mantine/dates": "^8.1.2",
|
|
85
|
+
"@mantine/form": "^8.1.2",
|
|
86
|
+
"@mantine/hooks": "^8.1.2",
|
|
87
87
|
"@storybook/addon-docs": "^8.6.12",
|
|
88
88
|
"@storybook/addon-essentials": "^8.6.12",
|
|
89
89
|
"@storybook/blocks": "^8.6.12",
|
|
@@ -111,10 +111,10 @@
|
|
|
111
111
|
"vite-plugin-dts": "^4.5.3"
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
|
-
"@mantine/core": "^
|
|
115
|
-
"@mantine/dates": "^
|
|
116
|
-
"@mantine/form": "^
|
|
117
|
-
"@mantine/hooks": "^
|
|
114
|
+
"@mantine/core": "^8.1.2",
|
|
115
|
+
"@mantine/dates": "^8.1.2",
|
|
116
|
+
"@mantine/form": "^8.1.2",
|
|
117
|
+
"@mantine/hooks": "^8.1.2",
|
|
118
118
|
"react": "^18.3.1",
|
|
119
119
|
"react-dom": "^18.3.1"
|
|
120
120
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|