fastapi-rtk 1.0.29 → 1.0.31
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/_virtual/endsWith.cjs +5 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index10.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index6.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index7.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index8.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index9.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/isUndefined.cjs +6 -0
- package/dist/.bundled/jsonforms/cjs/_virtual/last.cjs +5 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/remove.cjs +5 -2
- package/dist/.bundled/jsonforms/cjs/index.cjs +4 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.cjs +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useCommonProps.cjs +5 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useTimeProps.cjs +1 -2
- package/dist/.bundled/jsonforms/esm/_virtual/endsWith.mjs +6 -1
- package/dist/.bundled/jsonforms/esm/_virtual/index10.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index6.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index7.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index8.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index9.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/isUndefined.mjs +7 -0
- package/dist/.bundled/jsonforms/esm/_virtual/last.mjs +6 -1
- package/dist/.bundled/jsonforms/esm/_virtual/remove.mjs +6 -1
- package/dist/.bundled/jsonforms/esm/index.mjs +4 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useCommonProps.mjs +5 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useTimeProps.mjs +1 -2
- package/dist/.external/cjs/@jsonforms_core@3.7.0/@jsonforms/core/lib/jsonforms-core.esm.cjs +546 -12
- package/dist/.external/cjs/@jsonforms_react@3.7.0_@jsonforms_core@3.7.0_react@19.2.4/@jsonforms/react/lib/jsonforms-react.esm.cjs +88 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useQueries.cjs +2 -6
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/core/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/format/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/validation/index.cjs +1 -1
- package/dist/.external/cjs/lodash@4.17.23/lodash/isUndefined.cjs +14 -0
- package/dist/.external/esm/@jsonforms_core@3.7.0/@jsonforms/core/lib/jsonforms-core.esm.mjs +548 -14
- package/dist/.external/esm/@jsonforms_react@3.7.0_@jsonforms_core@3.7.0_react@19.2.4/@jsonforms/react/lib/jsonforms-react.esm.mjs +89 -2
- package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useQueries.mjs +3 -7
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/core/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/format/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/validation/index.mjs +1 -1
- package/dist/.external/esm/lodash@4.17.23/lodash/isUndefined.mjs +14 -0
- package/dist/core/cjs/ActionIcons/Add/Add.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Delete/Delete.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Download/Download.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Edit/Edit.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Refresh/Refresh.cjs +1 -1
- package/dist/core/cjs/ActionIcons/View/View.cjs +1 -1
- package/dist/core/cjs/Dialogs/AddDialog.cjs +1 -1
- package/dist/core/cjs/Dialogs/DeleteDialog.cjs +1 -1
- package/dist/core/cjs/Dialogs/EditDialog.cjs +1 -1
- package/dist/core/cjs/Modals/CommonModal.cjs +1 -1
- package/dist/core/cjs/Tables/DataGrid/ErrorDialog.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderNumberInput.cjs +11 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.cjs +12 -10
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.cjs +7 -2
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +1 -1
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideForm.cjs +1 -1
- package/dist/core/cjs/Wrappers/Provider/Contexts/LangContext.cjs +3 -3
- package/dist/core/cjs/Wrappers/Provider/Provider.cjs +1 -1
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideAuth.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideInfo.cjs +1 -1
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideLang.cjs +1 -1
- package/dist/core/cjs/index.cjs +6 -4
- package/dist/core/esm/ActionIcons/Add/Add.mjs +1 -1
- package/dist/core/esm/ActionIcons/Delete/Delete.mjs +1 -1
- package/dist/core/esm/ActionIcons/Download/Download.mjs +1 -1
- package/dist/core/esm/ActionIcons/Edit/Edit.mjs +1 -1
- package/dist/core/esm/ActionIcons/Refresh/Refresh.mjs +1 -1
- package/dist/core/esm/ActionIcons/View/View.mjs +1 -1
- package/dist/core/esm/Dialogs/AddDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/DeleteDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/EditDialog.mjs +1 -1
- package/dist/core/esm/Modals/CommonModal.mjs +1 -1
- package/dist/core/esm/Tables/DataGrid/ErrorDialog.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderNumberInput.mjs +11 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.mjs +12 -10
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.mjs +8 -3
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +1 -1
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideForm.mjs +1 -1
- package/dist/core/esm/Wrappers/Provider/Contexts/LangContext.mjs +3 -3
- package/dist/core/esm/Wrappers/Provider/Provider.mjs +1 -1
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +1 -1
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideLang.mjs +1 -1
- package/dist/core/esm/index.mjs +5 -3
- package/dist/core/lib/Tables/NextGenDataGrid/hooks/useToolbar/basicToolbars.d.ts +8 -8
- package/dist/core/lib/index.d.ts +3 -1
- package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +1 -1
- package/dist/jsonforms/cjs/hooks/useCommonProps.cjs +5 -0
- package/dist/jsonforms/cjs/hooks/useTimeProps.cjs +1 -2
- package/dist/jsonforms/cjs/index.cjs +22 -0
- package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +1 -1
- package/dist/jsonforms/esm/hooks/useCommonProps.mjs +5 -0
- package/dist/jsonforms/esm/hooks/useTimeProps.mjs +1 -2
- package/dist/jsonforms/esm/index.mjs +4 -0
- package/dist/jsonforms/lib/index.d.ts +2 -0
- package/dist/zustand/cjs/useProxy/useProxy.cjs +1 -1
- package/dist/zustand/esm/useProxy/useProxy.mjs +1 -1
- package/package.json +1 -1
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/HydrationBoundary.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/IsRestoringProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/QueryClientProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/index.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/infiniteQueryOptions.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/mutationOptions.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/queryOptions.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/suspense.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useBaseQuery.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useInfiniteQuery.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useIsFetching.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useMutation.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useMutationState.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/usePrefetchQuery.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useQuery.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useSuspenseQueries.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useSuspenseQuery.cjs +0 -0
- /package/dist/.external/cjs/{i18next@25.8.4_typescript@5.9.3 → i18next@25.8.5_typescript@5.9.3}/i18next/dist/esm/i18next.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/context.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/defaults.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/unescape.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/useTranslation.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.cjs +0 -0
- /package/dist/.external/cjs/{zustand@5.0.11_@types_react@19.2.13_react@19.2.4 → zustand@5.0.11_@types_react@19.2.14_react@19.2.4}/zustand/esm/react.cjs +0 -0
- /package/dist/.external/cjs/{zustand@5.0.11_@types_react@19.2.13_react@19.2.4 → zustand@5.0.11_@types_react@19.2.14_react@19.2.4}/zustand/esm/vanilla.cjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/HydrationBoundary.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/IsRestoringProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/QueryClientProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/index.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/infiniteQueryOptions.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/mutationOptions.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/queryOptions.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/suspense.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useBaseQuery.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useInfiniteQuery.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useIsFetching.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useMutation.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useMutationState.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/usePrefetchQuery.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useQuery.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useSuspenseQueries.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.90.20_react@19.2.4 → @tanstack_react-query@5.90.21_react@19.2.4}/@tanstack/react-query/build/modern/useSuspenseQuery.mjs +0 -0
- /package/dist/.external/esm/{i18next@25.8.4_typescript@5.9.3 → i18next@25.8.5_typescript@5.9.3}/i18next/dist/esm/i18next.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/context.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/defaults.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/unescape.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/useTranslation.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.4_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.5_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.mjs +0 -0
- /package/dist/.external/esm/{zustand@5.0.11_@types_react@19.2.13_react@19.2.4 → zustand@5.0.11_@types_react@19.2.14_react@19.2.4}/zustand/esm/react.mjs +0 -0
- /package/dist/.external/esm/{zustand@5.0.11_@types_react@19.2.13_react@19.2.4 → zustand@5.0.11_@types_react@19.2.14_react@19.2.4}/zustand/esm/vanilla.mjs +0 -0
|
@@ -17,11 +17,12 @@ import setFp from "../../../../../../.bundled/jsonforms/esm/_virtual/set.mjs";
|
|
|
17
17
|
import unsetFp from "../../../../../../.bundled/jsonforms/esm/_virtual/unset.mjs";
|
|
18
18
|
import isFunction from "../../../../../../.bundled/jsonforms/esm/_virtual/isFunction.mjs";
|
|
19
19
|
import maxBy from "../../../../../../.bundled/jsonforms/esm/_virtual/maxBy.mjs";
|
|
20
|
-
import "../../../../../../.bundled/jsonforms/esm/_virtual/remove.mjs";
|
|
21
|
-
import "../../../../../../.bundled/jsonforms/esm/_virtual/endsWith.mjs";
|
|
22
|
-
import "../../../../../../.bundled/jsonforms/esm/_virtual/last.mjs";
|
|
20
|
+
import remove from "../../../../../../.bundled/jsonforms/esm/_virtual/remove.mjs";
|
|
21
|
+
import endsWith from "../../../../../../.bundled/jsonforms/esm/_virtual/endsWith.mjs";
|
|
22
|
+
import last from "../../../../../../.bundled/jsonforms/esm/_virtual/last.mjs";
|
|
23
23
|
import reduce from "../../../../../../.bundled/jsonforms/esm/_virtual/reduce.mjs";
|
|
24
24
|
import toPairs from "../../../../../../.bundled/jsonforms/esm/_virtual/toPairs.mjs";
|
|
25
|
+
import isUndefined from "../../../../../../.bundled/jsonforms/esm/_virtual/isUndefined.mjs";
|
|
25
26
|
const ADDITIONAL_PROPERTIES = "additionalProperties";
|
|
26
27
|
const REQUIRED_PROPERTIES = "required";
|
|
27
28
|
const distinct = (properties, discriminator) => {
|
|
@@ -151,6 +152,7 @@ const createId = (proposedId) => {
|
|
|
151
152
|
return newID;
|
|
152
153
|
};
|
|
153
154
|
const removeId = (id) => usedIds.delete(id);
|
|
155
|
+
const clearAllIds = () => usedIds.clear();
|
|
154
156
|
const compose = (path1, path2) => {
|
|
155
157
|
let p1 = path1;
|
|
156
158
|
if (!isEmpty(path1) && !isEmpty(path2) && !path2.startsWith("[")) {
|
|
@@ -172,6 +174,9 @@ const toDataPathSegments = (schemaPath) => {
|
|
|
172
174
|
const startIndex = startFromRoot ? 2 : 1;
|
|
173
175
|
return range(startIndex, decodedSegments.length, 2).map((idx) => decodedSegments[idx]);
|
|
174
176
|
};
|
|
177
|
+
const toDataPath = (schemaPath) => {
|
|
178
|
+
return toDataPathSegments(schemaPath).join(".");
|
|
179
|
+
};
|
|
175
180
|
const encode = (segment) => segment == null ? void 0 : segment.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
176
181
|
const decode = (pointerSegment) => pointerSegment == null ? void 0 : pointerSegment.replace(/~1/g, "/").replace(/~0/, "~");
|
|
177
182
|
const getPropPath = (path) => {
|
|
@@ -188,6 +193,9 @@ const deriveLabel = (controlElement, schemaElement) => {
|
|
|
188
193
|
}
|
|
189
194
|
return "";
|
|
190
195
|
};
|
|
196
|
+
const createCleanLabel = (label) => {
|
|
197
|
+
return startCase(label.replace("_", " "));
|
|
198
|
+
};
|
|
191
199
|
const createLabelDescriptionFrom = (withLabel, schema) => {
|
|
192
200
|
const labelProperty = withLabel.label;
|
|
193
201
|
if (typeof labelProperty === "boolean") {
|
|
@@ -207,6 +215,12 @@ const labelDescription = (text, show) => ({
|
|
|
207
215
|
text,
|
|
208
216
|
show
|
|
209
217
|
});
|
|
218
|
+
const isObjectSchema$1 = (schema) => {
|
|
219
|
+
return schema.properties !== void 0;
|
|
220
|
+
};
|
|
221
|
+
const isArraySchema = (schema) => {
|
|
222
|
+
return schema.type === "array" && schema.items !== void 0;
|
|
223
|
+
};
|
|
210
224
|
const resolveData = (instance, dataPath) => {
|
|
211
225
|
if (isEmpty(dataPath)) {
|
|
212
226
|
return instance;
|
|
@@ -219,6 +233,29 @@ const resolveData = (instance, dataPath) => {
|
|
|
219
233
|
return curInstance[decodedSegment];
|
|
220
234
|
}, instance);
|
|
221
235
|
};
|
|
236
|
+
const findAllRefs = (schema, result = {}, resolveTuples = false) => {
|
|
237
|
+
if (isObjectSchema$1(schema)) {
|
|
238
|
+
Object.keys(schema.properties).forEach((key) => findAllRefs(schema.properties[key], result));
|
|
239
|
+
}
|
|
240
|
+
if (isArraySchema(schema)) {
|
|
241
|
+
if (Array.isArray(schema.items)) {
|
|
242
|
+
if (resolveTuples) {
|
|
243
|
+
const items = schema.items;
|
|
244
|
+
items.forEach((child) => findAllRefs(child, result));
|
|
245
|
+
}
|
|
246
|
+
} else {
|
|
247
|
+
findAllRefs(schema.items, result);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
if (Array.isArray(schema.anyOf)) {
|
|
251
|
+
const anyOf = schema.anyOf;
|
|
252
|
+
anyOf.forEach((child) => findAllRefs(child, result));
|
|
253
|
+
}
|
|
254
|
+
if (schema.$ref !== void 0) {
|
|
255
|
+
result[schema.$ref] = schema;
|
|
256
|
+
}
|
|
257
|
+
return result;
|
|
258
|
+
};
|
|
222
259
|
const invalidSegment = (pathSegment) => pathSegment === "#" || pathSegment === void 0 || pathSegment === "";
|
|
223
260
|
const resolveSchema = (schema, schemaPath, rootSchema) => {
|
|
224
261
|
const result = doResolveSchema(schema, schemaPath, {
|
|
@@ -312,6 +349,152 @@ const resolveSingleStep = (schema, pathSegments) => {
|
|
|
312
349
|
resolvedSegment: segment
|
|
313
350
|
};
|
|
314
351
|
};
|
|
352
|
+
const Draft4 = {
|
|
353
|
+
id: "http://json-schema.org/draft-04/schema#",
|
|
354
|
+
$schema: "http://json-schema.org/draft-04/schema#",
|
|
355
|
+
description: "Core schema meta-schema",
|
|
356
|
+
definitions: {
|
|
357
|
+
schemaArray: {
|
|
358
|
+
type: "array",
|
|
359
|
+
minItems: 1,
|
|
360
|
+
items: { $ref: "#" }
|
|
361
|
+
},
|
|
362
|
+
positiveInteger: {
|
|
363
|
+
type: "integer",
|
|
364
|
+
minimum: 0
|
|
365
|
+
},
|
|
366
|
+
positiveIntegerDefault0: {
|
|
367
|
+
allOf: [{ $ref: "#/definitions/positiveInteger" }, { default: 0 }]
|
|
368
|
+
},
|
|
369
|
+
simpleTypes: {
|
|
370
|
+
enum: [
|
|
371
|
+
"array",
|
|
372
|
+
"boolean",
|
|
373
|
+
"integer",
|
|
374
|
+
"null",
|
|
375
|
+
"number",
|
|
376
|
+
"object",
|
|
377
|
+
"string"
|
|
378
|
+
]
|
|
379
|
+
},
|
|
380
|
+
stringArray: {
|
|
381
|
+
type: "array",
|
|
382
|
+
items: { type: "string" },
|
|
383
|
+
minItems: 1,
|
|
384
|
+
uniqueItems: true
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
type: "object",
|
|
388
|
+
properties: {
|
|
389
|
+
id: {
|
|
390
|
+
type: "string",
|
|
391
|
+
format: "uri"
|
|
392
|
+
},
|
|
393
|
+
$schema: {
|
|
394
|
+
type: "string",
|
|
395
|
+
format: "uri"
|
|
396
|
+
},
|
|
397
|
+
title: {
|
|
398
|
+
type: "string"
|
|
399
|
+
},
|
|
400
|
+
description: {
|
|
401
|
+
type: "string"
|
|
402
|
+
},
|
|
403
|
+
default: {},
|
|
404
|
+
multipleOf: {
|
|
405
|
+
type: "number",
|
|
406
|
+
minimum: 0,
|
|
407
|
+
exclusiveMinimum: true
|
|
408
|
+
},
|
|
409
|
+
maximum: {
|
|
410
|
+
type: "number"
|
|
411
|
+
},
|
|
412
|
+
exclusiveMaximum: {
|
|
413
|
+
type: "boolean",
|
|
414
|
+
default: false
|
|
415
|
+
},
|
|
416
|
+
minimum: {
|
|
417
|
+
type: "number"
|
|
418
|
+
},
|
|
419
|
+
exclusiveMinimum: {
|
|
420
|
+
type: "boolean",
|
|
421
|
+
default: false
|
|
422
|
+
},
|
|
423
|
+
maxLength: { $ref: "#/definitions/positiveInteger" },
|
|
424
|
+
minLength: { $ref: "#/definitions/positiveIntegerDefault0" },
|
|
425
|
+
pattern: {
|
|
426
|
+
type: "string",
|
|
427
|
+
format: "regex"
|
|
428
|
+
},
|
|
429
|
+
additionalItems: {
|
|
430
|
+
anyOf: [{ type: "boolean" }, { $ref: "#" }],
|
|
431
|
+
default: {}
|
|
432
|
+
},
|
|
433
|
+
items: {
|
|
434
|
+
anyOf: [{ $ref: "#" }, { $ref: "#/definitions/schemaArray" }],
|
|
435
|
+
default: {}
|
|
436
|
+
},
|
|
437
|
+
maxItems: { $ref: "#/definitions/positiveInteger" },
|
|
438
|
+
minItems: { $ref: "#/definitions/positiveIntegerDefault0" },
|
|
439
|
+
uniqueItems: {
|
|
440
|
+
type: "boolean",
|
|
441
|
+
default: false
|
|
442
|
+
},
|
|
443
|
+
maxProperties: { $ref: "#/definitions/positiveInteger" },
|
|
444
|
+
minProperties: { $ref: "#/definitions/positiveIntegerDefault0" },
|
|
445
|
+
required: { $ref: "#/definitions/stringArray" },
|
|
446
|
+
additionalProperties: {
|
|
447
|
+
anyOf: [{ type: "boolean" }, { $ref: "#" }],
|
|
448
|
+
default: {}
|
|
449
|
+
},
|
|
450
|
+
definitions: {
|
|
451
|
+
type: "object",
|
|
452
|
+
additionalProperties: { $ref: "#" },
|
|
453
|
+
default: {}
|
|
454
|
+
},
|
|
455
|
+
properties: {
|
|
456
|
+
type: "object",
|
|
457
|
+
additionalProperties: { $ref: "#" },
|
|
458
|
+
default: {}
|
|
459
|
+
},
|
|
460
|
+
patternProperties: {
|
|
461
|
+
type: "object",
|
|
462
|
+
additionalProperties: { $ref: "#" },
|
|
463
|
+
default: {}
|
|
464
|
+
},
|
|
465
|
+
dependencies: {
|
|
466
|
+
type: "object",
|
|
467
|
+
additionalProperties: {
|
|
468
|
+
anyOf: [{ $ref: "#" }, { $ref: "#/definitions/stringArray" }]
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
enum: {
|
|
472
|
+
type: "array",
|
|
473
|
+
minItems: 1,
|
|
474
|
+
uniqueItems: true
|
|
475
|
+
},
|
|
476
|
+
type: {
|
|
477
|
+
anyOf: [
|
|
478
|
+
{ $ref: "#/definitions/simpleTypes" },
|
|
479
|
+
{
|
|
480
|
+
type: "array",
|
|
481
|
+
items: { $ref: "#/definitions/simpleTypes" },
|
|
482
|
+
minItems: 1,
|
|
483
|
+
uniqueItems: true
|
|
484
|
+
}
|
|
485
|
+
]
|
|
486
|
+
},
|
|
487
|
+
allOf: { $ref: "#/definitions/schemaArray" },
|
|
488
|
+
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
489
|
+
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
490
|
+
not: { $ref: "#" }
|
|
491
|
+
},
|
|
492
|
+
dependencies: {
|
|
493
|
+
exclusiveMaximum: ["maximum"],
|
|
494
|
+
exclusiveMinimum: ["minimum"]
|
|
495
|
+
},
|
|
496
|
+
default: {}
|
|
497
|
+
};
|
|
315
498
|
var RuleEffect;
|
|
316
499
|
(function(RuleEffect2) {
|
|
317
500
|
RuleEffect2["HIDE"] = "HIDE";
|
|
@@ -319,6 +502,28 @@ var RuleEffect;
|
|
|
319
502
|
RuleEffect2["ENABLE"] = "ENABLE";
|
|
320
503
|
RuleEffect2["DISABLE"] = "DISABLE";
|
|
321
504
|
})(RuleEffect || (RuleEffect = {}));
|
|
505
|
+
const setReadonlyPropertyValue = (value) => (child) => {
|
|
506
|
+
if (!child.options) {
|
|
507
|
+
child.options = {};
|
|
508
|
+
}
|
|
509
|
+
child.options.readonly = value;
|
|
510
|
+
};
|
|
511
|
+
const setReadonly = (uischema) => {
|
|
512
|
+
iterateSchema(uischema, setReadonlyPropertyValue(true));
|
|
513
|
+
};
|
|
514
|
+
const unsetReadonly = (uischema) => {
|
|
515
|
+
iterateSchema(uischema, setReadonlyPropertyValue(false));
|
|
516
|
+
};
|
|
517
|
+
const iterateSchema = (uischema, toApply) => {
|
|
518
|
+
if (isEmpty(uischema)) {
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
if (isLayout(uischema)) {
|
|
522
|
+
uischema.elements.forEach((child) => iterateSchema(child, toApply));
|
|
523
|
+
return;
|
|
524
|
+
}
|
|
525
|
+
toApply(uischema);
|
|
526
|
+
};
|
|
322
527
|
const findUiControl = (uiSchema, path) => {
|
|
323
528
|
var _a;
|
|
324
529
|
if (isControlElement(uiSchema)) {
|
|
@@ -353,6 +558,7 @@ const isLayout = (uischema) => uischema.elements !== void 0;
|
|
|
353
558
|
const isScopable = (obj) => !!obj && typeof obj === "object";
|
|
354
559
|
const isScoped = (obj) => isScopable(obj) && typeof obj.scope === "string";
|
|
355
560
|
const isLabelable = (obj) => !!obj && typeof obj === "object";
|
|
561
|
+
const isLabeled = (obj) => isLabelable(obj) && ["string", "boolean"].includes(typeof obj.label);
|
|
356
562
|
const isControlElement = (uiSchema) => uiSchema.type === "Control";
|
|
357
563
|
const isOrCondition = (condition) => condition.type === "OR";
|
|
358
564
|
const isAndCondition = (condition) => condition.type === "AND";
|
|
@@ -462,6 +668,7 @@ const convertDateToString = (date, format) => {
|
|
|
462
668
|
}
|
|
463
669
|
return dateString;
|
|
464
670
|
};
|
|
671
|
+
const convertToValidClassName = (s) => s.replace("#", "root").replace(new RegExp("/", "g"), "_");
|
|
465
672
|
const hasType = (jsonSchema, expected) => {
|
|
466
673
|
return includes(deriveTypes(jsonSchema), expected);
|
|
467
674
|
};
|
|
@@ -509,6 +716,14 @@ const Paths = {
|
|
|
509
716
|
compose,
|
|
510
717
|
fromScoped
|
|
511
718
|
};
|
|
719
|
+
const Runtime = {
|
|
720
|
+
isEnabled(uischema, data, ajv, config) {
|
|
721
|
+
return isEnabled(uischema, data, void 0, ajv, config);
|
|
722
|
+
},
|
|
723
|
+
isVisible(uischema, data, ajv, config) {
|
|
724
|
+
return isVisible(uischema, data, void 0, ajv, config);
|
|
725
|
+
}
|
|
726
|
+
};
|
|
512
727
|
const createAjv = (options) => {
|
|
513
728
|
const ajv = new Ajv({
|
|
514
729
|
allErrors: true,
|
|
@@ -530,6 +745,9 @@ const validate = (validator, data) => {
|
|
|
530
745
|
}
|
|
531
746
|
return validator.errors;
|
|
532
747
|
};
|
|
748
|
+
const defaultDateFormat = "YYYY-MM-DD";
|
|
749
|
+
const defaultTimeFormat = "HH:mm:ss";
|
|
750
|
+
const defaultDateTimeFormat = "YYYY-MM-DDTHH:mm:ss.sssZ";
|
|
533
751
|
const getInvalidProperty = (error) => {
|
|
534
752
|
switch (error.keyword) {
|
|
535
753
|
case "required":
|
|
@@ -582,6 +800,10 @@ const formatErrorMessage = (errors) => {
|
|
|
582
800
|
}
|
|
583
801
|
return errors.join("\n");
|
|
584
802
|
};
|
|
803
|
+
const Helpers = {
|
|
804
|
+
createLabelDescriptionFrom,
|
|
805
|
+
convertToValidClassName
|
|
806
|
+
};
|
|
585
807
|
const createLayout = (layoutType) => ({
|
|
586
808
|
type: layoutType,
|
|
587
809
|
elements: []
|
|
@@ -862,6 +1084,16 @@ var index$1 = /* @__PURE__ */ Object.freeze({
|
|
|
862
1084
|
updateI18n,
|
|
863
1085
|
setUISchema
|
|
864
1086
|
});
|
|
1087
|
+
const cellReducer = (state = [], { type, tester, cell }) => {
|
|
1088
|
+
switch (type) {
|
|
1089
|
+
case ADD_CELL:
|
|
1090
|
+
return state.concat([{ tester, cell }]);
|
|
1091
|
+
case REMOVE_CELL:
|
|
1092
|
+
return state.filter((t) => t.tester !== tester);
|
|
1093
|
+
default:
|
|
1094
|
+
return state;
|
|
1095
|
+
}
|
|
1096
|
+
};
|
|
865
1097
|
const configDefault = {
|
|
866
1098
|
restrict: false,
|
|
867
1099
|
trim: false,
|
|
@@ -1066,6 +1298,20 @@ const coreReducer = (state = initState, action) => {
|
|
|
1066
1298
|
return state;
|
|
1067
1299
|
}
|
|
1068
1300
|
};
|
|
1301
|
+
const defaultDataReducer = (state = [], action) => {
|
|
1302
|
+
switch (action.type) {
|
|
1303
|
+
case ADD_DEFAULT_DATA:
|
|
1304
|
+
return state.concat([
|
|
1305
|
+
{ schemaPath: action.schemaPath, data: action.data }
|
|
1306
|
+
]);
|
|
1307
|
+
case REMOVE_DEFAULT_DATA:
|
|
1308
|
+
return state.filter((t) => t.schemaPath !== action.schemaPath);
|
|
1309
|
+
default:
|
|
1310
|
+
return state;
|
|
1311
|
+
}
|
|
1312
|
+
};
|
|
1313
|
+
const getDefaultData = (state) => extractDefaultData(get(state, "jsonforms.defaultData"));
|
|
1314
|
+
const extractDefaultData = (state) => state;
|
|
1069
1315
|
var ArrayTranslationEnum;
|
|
1070
1316
|
(function(ArrayTranslationEnum2) {
|
|
1071
1317
|
ArrayTranslationEnum2["addTooltip"] = "addTooltip";
|
|
@@ -1118,7 +1364,7 @@ var CombinatorTranslationEnum;
|
|
|
1118
1364
|
CombinatorTranslationEnum2["clearDialogAccept"] = "clearDialogAccept";
|
|
1119
1365
|
CombinatorTranslationEnum2["clearDialogDecline"] = "clearDialogDecline";
|
|
1120
1366
|
})(CombinatorTranslationEnum || (CombinatorTranslationEnum = {}));
|
|
1121
|
-
[
|
|
1367
|
+
const combinatorDefaultTranslations = [
|
|
1122
1368
|
{
|
|
1123
1369
|
key: CombinatorTranslationEnum.clearDialogTitle,
|
|
1124
1370
|
default: () => "Clear form?"
|
|
@@ -1206,6 +1452,20 @@ const getArrayTranslations = (t, defaultTranslations, i18nKeyPrefix, label) => {
|
|
|
1206
1452
|
});
|
|
1207
1453
|
return translations;
|
|
1208
1454
|
};
|
|
1455
|
+
const getCombinatorTranslations = (t, defaultTranslations, i18nKeyPrefix, label) => {
|
|
1456
|
+
const translations = {};
|
|
1457
|
+
defaultTranslations.forEach((controlElement) => {
|
|
1458
|
+
const key = addI18nKeyToPrefix(i18nKeyPrefix, controlElement.key);
|
|
1459
|
+
translations[controlElement.key] = t(key, controlElement.default(label));
|
|
1460
|
+
});
|
|
1461
|
+
return translations;
|
|
1462
|
+
};
|
|
1463
|
+
const fetchLocale = (state) => {
|
|
1464
|
+
if (state === void 0) {
|
|
1465
|
+
return void 0;
|
|
1466
|
+
}
|
|
1467
|
+
return state.locale;
|
|
1468
|
+
};
|
|
1209
1469
|
const fetchTranslator = (state) => {
|
|
1210
1470
|
if (state === void 0) {
|
|
1211
1471
|
return defaultTranslator;
|
|
@@ -1218,6 +1478,7 @@ const fetchErrorTranslator = (state) => {
|
|
|
1218
1478
|
}
|
|
1219
1479
|
return state.translateError;
|
|
1220
1480
|
};
|
|
1481
|
+
const getLocale = (state) => fetchLocale(get(state, "jsonforms.i18n"));
|
|
1221
1482
|
const getTranslator = () => (state) => fetchTranslator(get(state, "jsonforms.i18n"));
|
|
1222
1483
|
const getErrorTranslator = () => (state) => fetchErrorTranslator(get(state, "jsonforms.i18n"));
|
|
1223
1484
|
const defaultJsonFormsI18nState = {
|
|
@@ -1256,6 +1517,18 @@ const i18nReducer = (state = defaultJsonFormsI18nState, action) => {
|
|
|
1256
1517
|
return state;
|
|
1257
1518
|
}
|
|
1258
1519
|
};
|
|
1520
|
+
const rendererReducer = (state = [], action) => {
|
|
1521
|
+
switch (action.type) {
|
|
1522
|
+
case ADD_RENDERER:
|
|
1523
|
+
return state.concat([
|
|
1524
|
+
{ tester: action.tester, renderer: action.renderer }
|
|
1525
|
+
]);
|
|
1526
|
+
case REMOVE_RENDERER:
|
|
1527
|
+
return state.filter((t) => t.tester !== action.tester);
|
|
1528
|
+
default:
|
|
1529
|
+
return state;
|
|
1530
|
+
}
|
|
1531
|
+
};
|
|
1259
1532
|
const NOT_APPLICABLE = -1;
|
|
1260
1533
|
const isControl = (uischema) => !isEmpty(uischema) && uischema.scope !== void 0;
|
|
1261
1534
|
const schemaMatches = (predicate) => (uischema, schema, context) => {
|
|
@@ -1303,6 +1576,26 @@ const optionIs = (optionName, optionValue) => (uischema) => {
|
|
|
1303
1576
|
const options = uischema.options;
|
|
1304
1577
|
return !isEmpty(options) && options[optionName] === optionValue;
|
|
1305
1578
|
};
|
|
1579
|
+
const hasOption = (optionName) => (uischema) => {
|
|
1580
|
+
if (isEmpty(uischema)) {
|
|
1581
|
+
return false;
|
|
1582
|
+
}
|
|
1583
|
+
const options = uischema.options;
|
|
1584
|
+
return !isEmpty(options) && !isUndefined(options[optionName]);
|
|
1585
|
+
};
|
|
1586
|
+
const scopeEndsWith = (expected) => (uischema) => {
|
|
1587
|
+
if (isEmpty(expected) || !isControl(uischema)) {
|
|
1588
|
+
return false;
|
|
1589
|
+
}
|
|
1590
|
+
return endsWith(uischema.scope, expected);
|
|
1591
|
+
};
|
|
1592
|
+
const scopeEndIs = (expected) => (uischema) => {
|
|
1593
|
+
if (isEmpty(expected) || !isControl(uischema)) {
|
|
1594
|
+
return false;
|
|
1595
|
+
}
|
|
1596
|
+
const schemaPath = uischema.scope;
|
|
1597
|
+
return !isEmpty(schemaPath) && last(schemaPath.split("/")) === expected;
|
|
1598
|
+
};
|
|
1306
1599
|
const and = (...testers) => (uischema, schema, context) => testers.reduce((acc, tester) => acc && tester(uischema, schema, context), true);
|
|
1307
1600
|
const or = (...testers) => (uischema, schema, context) => testers.reduce((acc, tester) => acc || tester(uischema, schema, context), false);
|
|
1308
1601
|
const rankWith = (rank, tester) => (uischema, schema, context) => {
|
|
@@ -1311,17 +1604,24 @@ const rankWith = (rank, tester) => (uischema, schema, context) => {
|
|
|
1311
1604
|
}
|
|
1312
1605
|
return NOT_APPLICABLE;
|
|
1313
1606
|
};
|
|
1607
|
+
const withIncreasedRank = (by, rankedTester) => (uischema, schema, context) => {
|
|
1608
|
+
const rank = rankedTester(uischema, schema, context);
|
|
1609
|
+
if (rank === NOT_APPLICABLE) {
|
|
1610
|
+
return NOT_APPLICABLE;
|
|
1611
|
+
}
|
|
1612
|
+
return rank + by;
|
|
1613
|
+
};
|
|
1314
1614
|
const isBooleanControl = and(uiTypeIs("Control"), schemaTypeIs("boolean"));
|
|
1315
1615
|
const isObjectControl = and(uiTypeIs("Control"), schemaTypeIs("object"));
|
|
1316
|
-
and(uiTypeIs("Control"), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, "allOf")));
|
|
1317
|
-
and(uiTypeIs("Control"), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, "anyOf")));
|
|
1616
|
+
const isAllOfControl = and(uiTypeIs("Control"), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, "allOf")));
|
|
1617
|
+
const isAnyOfControl = and(uiTypeIs("Control"), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, "anyOf")));
|
|
1318
1618
|
const isOneOfControl = and(uiTypeIs("Control"), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, "oneOf")));
|
|
1319
1619
|
const isEnumControl = and(uiTypeIs("Control"), schemaMatches((schema) => isEnumSchema(schema)));
|
|
1320
|
-
and(uiTypeIs("Control"), schemaMatches((schema) => isOneOfEnumSchema(schema)));
|
|
1620
|
+
const isOneOfEnumControl = and(uiTypeIs("Control"), schemaMatches((schema) => isOneOfEnumSchema(schema)));
|
|
1321
1621
|
const isIntegerControl = and(uiTypeIs("Control"), schemaTypeIs("integer"));
|
|
1322
1622
|
const isNumberControl = and(uiTypeIs("Control"), schemaTypeIs("number"));
|
|
1323
1623
|
const isStringControl = and(uiTypeIs("Control"), schemaTypeIs("string"));
|
|
1324
|
-
and(uiTypeIs("Control"), optionIs("multi", true));
|
|
1624
|
+
const isMultiLineControl = and(uiTypeIs("Control"), optionIs("multi", true));
|
|
1325
1625
|
const isDateControl = and(uiTypeIs("Control"), or(formatIs("date"), optionIs("format", "date")));
|
|
1326
1626
|
const isTimeControl = and(uiTypeIs("Control"), or(formatIs("time"), optionIs("format", "time")));
|
|
1327
1627
|
const isDateTimeControl = and(uiTypeIs("Control"), or(formatIs("date-time"), optionIs("format", "date-time")));
|
|
@@ -1397,6 +1697,7 @@ const isObjectArrayWithNesting = (uischema, schema, context) => {
|
|
|
1397
1697
|
}
|
|
1398
1698
|
return false;
|
|
1399
1699
|
};
|
|
1700
|
+
const isArrayObjectControl = isObjectArrayControl;
|
|
1400
1701
|
const isPrimitiveArrayControl = and(uiTypeIs("Control"), schemaMatches(
|
|
1401
1702
|
(schema, rootSchema) => deriveTypes(schema).length !== 0 && !Array.isArray(resolveSchema(schema, "items", rootSchema))
|
|
1402
1703
|
), schemaSubPathMatches("items", (schema, rootSchema) => {
|
|
@@ -1404,8 +1705,75 @@ const isPrimitiveArrayControl = and(uiTypeIs("Control"), schemaMatches(
|
|
|
1404
1705
|
const types = deriveTypes(resolvedSchema);
|
|
1405
1706
|
return types.length === 1 && includes(["integer", "number", "boolean", "string"], types[0]);
|
|
1406
1707
|
}));
|
|
1407
|
-
and(uiTypeIs("Control"), or(schemaTypeIs("number"), schemaTypeIs("integer")), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, "maximum") && Object.prototype.hasOwnProperty.call(schema, "minimum") && Object.prototype.hasOwnProperty.call(schema, "default")), optionIs("slider", true));
|
|
1408
|
-
and(uiTypeIs("Control"), schemaTypeIs("integer"), optionIs("format", true));
|
|
1708
|
+
const isRangeControl = and(uiTypeIs("Control"), or(schemaTypeIs("number"), schemaTypeIs("integer")), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, "maximum") && Object.prototype.hasOwnProperty.call(schema, "minimum") && Object.prototype.hasOwnProperty.call(schema, "default")), optionIs("slider", true));
|
|
1709
|
+
const isNumberFormatControl = and(uiTypeIs("Control"), schemaTypeIs("integer"), optionIs("format", true));
|
|
1710
|
+
const isCategorization = (category) => category.type === "Categorization";
|
|
1711
|
+
const isCategory = (uischema) => uischema.type === "Category";
|
|
1712
|
+
const hasCategory = (categorization) => {
|
|
1713
|
+
if (isEmpty(categorization.elements)) {
|
|
1714
|
+
return false;
|
|
1715
|
+
}
|
|
1716
|
+
return categorization.elements.map((elem) => isCategorization(elem) ? hasCategory(elem) : isCategory(elem)).reduce((prev, curr) => prev && curr, true);
|
|
1717
|
+
};
|
|
1718
|
+
const categorizationHasCategory = (uischema) => hasCategory(uischema);
|
|
1719
|
+
const not = (tester) => (uischema, schema, context) => !tester(uischema, schema, context);
|
|
1720
|
+
var index = /* @__PURE__ */ Object.freeze({
|
|
1721
|
+
__proto__: null,
|
|
1722
|
+
NOT_APPLICABLE,
|
|
1723
|
+
isControl,
|
|
1724
|
+
schemaMatches,
|
|
1725
|
+
schemaSubPathMatches,
|
|
1726
|
+
schemaTypeIs,
|
|
1727
|
+
formatIs,
|
|
1728
|
+
uiTypeIs,
|
|
1729
|
+
optionIs,
|
|
1730
|
+
hasOption,
|
|
1731
|
+
scopeEndsWith,
|
|
1732
|
+
scopeEndIs,
|
|
1733
|
+
and,
|
|
1734
|
+
or,
|
|
1735
|
+
rankWith,
|
|
1736
|
+
withIncreasedRank,
|
|
1737
|
+
isBooleanControl,
|
|
1738
|
+
isObjectControl,
|
|
1739
|
+
isAllOfControl,
|
|
1740
|
+
isAnyOfControl,
|
|
1741
|
+
isOneOfControl,
|
|
1742
|
+
isEnumControl,
|
|
1743
|
+
isOneOfEnumControl,
|
|
1744
|
+
isIntegerControl,
|
|
1745
|
+
isNumberControl,
|
|
1746
|
+
isStringControl,
|
|
1747
|
+
isMultiLineControl,
|
|
1748
|
+
isDateControl,
|
|
1749
|
+
isTimeControl,
|
|
1750
|
+
isDateTimeControl,
|
|
1751
|
+
isObjectArray,
|
|
1752
|
+
isObjectArrayControl,
|
|
1753
|
+
isObjectArrayWithNesting,
|
|
1754
|
+
isArrayObjectControl,
|
|
1755
|
+
isPrimitiveArrayControl,
|
|
1756
|
+
isRangeControl,
|
|
1757
|
+
isNumberFormatControl,
|
|
1758
|
+
isCategorization,
|
|
1759
|
+
isCategory,
|
|
1760
|
+
hasCategory,
|
|
1761
|
+
categorizationHasCategory,
|
|
1762
|
+
not
|
|
1763
|
+
});
|
|
1764
|
+
const uischemaRegistryReducer = (state = [], action) => {
|
|
1765
|
+
switch (action.type) {
|
|
1766
|
+
case ADD_UI_SCHEMA:
|
|
1767
|
+
return state.slice().concat({ tester: action.tester, uischema: action.uischema });
|
|
1768
|
+
case REMOVE_UI_SCHEMA: {
|
|
1769
|
+
const copy = state.slice();
|
|
1770
|
+
remove(copy, (entry) => entry.tester === action.tester);
|
|
1771
|
+
return copy;
|
|
1772
|
+
}
|
|
1773
|
+
default:
|
|
1774
|
+
return state;
|
|
1775
|
+
}
|
|
1776
|
+
};
|
|
1409
1777
|
const findMatchingUISchema = (state) => (jsonSchema, schemaPath, path) => {
|
|
1410
1778
|
const match = maxBy(state, (entry) => entry.tester(jsonSchema, schemaPath, path));
|
|
1411
1779
|
if (match !== void 0 && match.tester(jsonSchema, schemaPath, path) !== NOT_APPLICABLE) {
|
|
@@ -1413,6 +1781,15 @@ const findMatchingUISchema = (state) => (jsonSchema, schemaPath, path) => {
|
|
|
1413
1781
|
}
|
|
1414
1782
|
return void 0;
|
|
1415
1783
|
};
|
|
1784
|
+
const jsonFormsReducerConfig = {
|
|
1785
|
+
core: coreReducer,
|
|
1786
|
+
renderers: rendererReducer,
|
|
1787
|
+
cells: cellReducer,
|
|
1788
|
+
config: configReducer,
|
|
1789
|
+
uischemas: uischemaRegistryReducer,
|
|
1790
|
+
defaultData: defaultDataReducer,
|
|
1791
|
+
i18n: i18nReducer
|
|
1792
|
+
};
|
|
1416
1793
|
const findUISchema = (uischemas, schema, schemaPath, path, fallback = "VerticalLayout", control, rootSchema) => {
|
|
1417
1794
|
if (control && control.options && control.options.detail) {
|
|
1418
1795
|
if (typeof control.options.detail === "string") {
|
|
@@ -1455,6 +1832,7 @@ const getUiSchema = (state) => extractUiSchema(get(state, "jsonforms.core"));
|
|
|
1455
1832
|
const getAjv = (state) => extractAjv(get(state, "jsonforms.core"));
|
|
1456
1833
|
const getRenderers = (state) => get(state, "jsonforms.renderers");
|
|
1457
1834
|
const getCells = (state) => get(state, "jsonforms.cells");
|
|
1835
|
+
const getUISchemas = (state) => get(state, "jsonforms.uischemas");
|
|
1458
1836
|
const extractData = (state) => get(state, "data");
|
|
1459
1837
|
const extractSchema = (state) => get(state, "schema");
|
|
1460
1838
|
const extractUiSchema = (state) => get(state, "uischema");
|
|
@@ -1488,12 +1866,12 @@ const isInherentlyEnabled = (state, ownProps, uischema, schema, rootData, config
|
|
|
1488
1866
|
}
|
|
1489
1867
|
return true;
|
|
1490
1868
|
};
|
|
1491
|
-
const move = (array,
|
|
1492
|
-
const newIndex =
|
|
1869
|
+
const move = (array, index2, delta) => {
|
|
1870
|
+
const newIndex = index2 + delta;
|
|
1493
1871
|
if (newIndex < 0 || newIndex >= array.length) {
|
|
1494
1872
|
return;
|
|
1495
1873
|
}
|
|
1496
|
-
const indexes = [
|
|
1874
|
+
const indexes = [index2, newIndex].sort((a, b) => a - b);
|
|
1497
1875
|
array.splice(indexes[0], 2, array[indexes[1]], array[indexes[0]]);
|
|
1498
1876
|
};
|
|
1499
1877
|
const moveUp = (array, toMove) => {
|
|
@@ -1513,6 +1891,9 @@ const isRequired = (schema, schemaPath, rootSchema) => {
|
|
|
1513
1891
|
const computeLabel = (label, required, hideRequiredAsterisk) => {
|
|
1514
1892
|
return `${label ?? ""}${required && !hideRequiredAsterisk ? "*" : ""}`;
|
|
1515
1893
|
};
|
|
1894
|
+
const showAsRequired = (required, hideRequiredAsterisk) => {
|
|
1895
|
+
return required && !hideRequiredAsterisk;
|
|
1896
|
+
};
|
|
1516
1897
|
const createDefaultValue = (schema, rootSchema) => {
|
|
1517
1898
|
const defaultValue = doCreateDefaultValue(schema, rootSchema);
|
|
1518
1899
|
return defaultValue === void 0 ? {} : defaultValue;
|
|
@@ -1592,6 +1973,9 @@ const extractDefaults = (schema, rootSchema) => {
|
|
|
1592
1973
|
}
|
|
1593
1974
|
return cloneDeep(schema.default);
|
|
1594
1975
|
};
|
|
1976
|
+
const isDescriptionHidden = (visible, description, isFocused, showUnfocusedDescription) => {
|
|
1977
|
+
return description === void 0 || description !== void 0 && !visible || !showUnfocusedDescription && !isFocused;
|
|
1978
|
+
};
|
|
1595
1979
|
const enumToEnumOptionMapper = (e, t, i18nKey) => {
|
|
1596
1980
|
let label = typeof e === "string" ? e : JSON.stringify(e);
|
|
1597
1981
|
if (t) {
|
|
@@ -1708,6 +2092,15 @@ const mapStateToMultiEnumControlProps = (state, ownProps) => {
|
|
|
1708
2092
|
options
|
|
1709
2093
|
};
|
|
1710
2094
|
};
|
|
2095
|
+
const mapStateToMasterListItemProps = (state, ownProps) => {
|
|
2096
|
+
const { schema, path, uischema, childLabelProp, index: index2 } = ownProps;
|
|
2097
|
+
const childPath = compose(path, `${index2}`);
|
|
2098
|
+
const childLabel = computeChildLabel(getData(state), childPath, childLabelProp, schema, getSchema(state), state.jsonforms.i18n.translate, uischema);
|
|
2099
|
+
return {
|
|
2100
|
+
...ownProps,
|
|
2101
|
+
childLabel
|
|
2102
|
+
};
|
|
2103
|
+
};
|
|
1711
2104
|
const mapStateToControlWithDetailProps = (state, ownProps) => {
|
|
1712
2105
|
const { ...props } = mapStateToControlProps(state, ownProps);
|
|
1713
2106
|
return {
|
|
@@ -1715,6 +2108,22 @@ const mapStateToControlWithDetailProps = (state, ownProps) => {
|
|
|
1715
2108
|
uischemas: state.jsonforms.uischemas
|
|
1716
2109
|
};
|
|
1717
2110
|
};
|
|
2111
|
+
const mapStateToArrayControlProps = (state, ownProps) => {
|
|
2112
|
+
const { path, schema, uischema, label, ...props } = mapStateToControlWithDetailProps(state, ownProps);
|
|
2113
|
+
const resolvedSchema = Resolve.schema(schema, "items", props.rootSchema);
|
|
2114
|
+
const childErrors = getSubErrorsAt(path, resolvedSchema)(state);
|
|
2115
|
+
return {
|
|
2116
|
+
...props,
|
|
2117
|
+
label,
|
|
2118
|
+
path,
|
|
2119
|
+
uischema,
|
|
2120
|
+
schema: resolvedSchema,
|
|
2121
|
+
arraySchema: schema,
|
|
2122
|
+
childErrors,
|
|
2123
|
+
renderers: ownProps.renderers || getRenderers(state),
|
|
2124
|
+
cells: ownProps.cells || getCells(state)
|
|
2125
|
+
};
|
|
2126
|
+
};
|
|
1718
2127
|
const mapDispatchToArrayControlProps = (dispatch) => ({
|
|
1719
2128
|
addItem: (path, value) => () => {
|
|
1720
2129
|
dispatch(update(path, (array) => {
|
|
@@ -1826,6 +2235,59 @@ const mapStateToJsonFormsRendererProps = (state, ownProps) => {
|
|
|
1826
2235
|
config: getConfig(state)
|
|
1827
2236
|
};
|
|
1828
2237
|
};
|
|
2238
|
+
const controlDefaultProps = {
|
|
2239
|
+
...layoutDefaultProps,
|
|
2240
|
+
errors: []
|
|
2241
|
+
};
|
|
2242
|
+
const mapStateToCombinatorRendererProps = (state, ownProps, keyword) => {
|
|
2243
|
+
var _a;
|
|
2244
|
+
const { data, schema, rootSchema, i18nKeyPrefix, label, ...props } = mapStateToControlProps(state, ownProps);
|
|
2245
|
+
const ajv = state.jsonforms.core.ajv;
|
|
2246
|
+
const structuralKeywords = [
|
|
2247
|
+
"required",
|
|
2248
|
+
"additionalProperties",
|
|
2249
|
+
"type",
|
|
2250
|
+
"enum",
|
|
2251
|
+
"const"
|
|
2252
|
+
];
|
|
2253
|
+
const dataIsValid = (errors) => {
|
|
2254
|
+
return !errors || errors.length === 0 || !errors.find((e) => structuralKeywords.indexOf(e.keyword) !== -1);
|
|
2255
|
+
};
|
|
2256
|
+
let indexOfFittingSchema;
|
|
2257
|
+
for (let i = 0; i < ((_a = schema[keyword]) == null ? void 0 : _a.length); i++) {
|
|
2258
|
+
try {
|
|
2259
|
+
let _schema = schema[keyword][i];
|
|
2260
|
+
if (_schema.$ref) {
|
|
2261
|
+
_schema = Resolve.schema(rootSchema, _schema.$ref, rootSchema);
|
|
2262
|
+
}
|
|
2263
|
+
const valFn = ajv.compile(_schema);
|
|
2264
|
+
valFn(data);
|
|
2265
|
+
if (dataIsValid(valFn.errors)) {
|
|
2266
|
+
indexOfFittingSchema = i;
|
|
2267
|
+
break;
|
|
2268
|
+
}
|
|
2269
|
+
} catch (error) {
|
|
2270
|
+
console.debug("Combinator subschema is not self contained, can't hand it over to AJV");
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
return {
|
|
2274
|
+
data,
|
|
2275
|
+
schema,
|
|
2276
|
+
rootSchema,
|
|
2277
|
+
...props,
|
|
2278
|
+
i18nKeyPrefix,
|
|
2279
|
+
label,
|
|
2280
|
+
indexOfFittingSchema,
|
|
2281
|
+
uischemas: getUISchemas(state)
|
|
2282
|
+
};
|
|
2283
|
+
};
|
|
2284
|
+
const mapStateToAllOfProps = (state, ownProps) => mapStateToCombinatorRendererProps(state, ownProps, "allOf");
|
|
2285
|
+
const mapStateToAnyOfProps = (state, ownProps) => {
|
|
2286
|
+
return mapStateToCombinatorRendererProps(state, ownProps, "anyOf");
|
|
2287
|
+
};
|
|
2288
|
+
const mapStateToOneOfProps = (state, ownProps) => {
|
|
2289
|
+
return mapStateToCombinatorRendererProps(state, ownProps, "oneOf");
|
|
2290
|
+
};
|
|
1829
2291
|
const mapStateToArrayLayoutProps = (state, ownProps) => {
|
|
1830
2292
|
const { path, schema, uischema, errors, label, ...props } = mapStateToControlWithDetailProps(state, ownProps);
|
|
1831
2293
|
const resolvedSchema = Resolve.schema(schema, "items", props.rootSchema);
|
|
@@ -1949,6 +2411,22 @@ const mapStateToOneOfEnumCellProps = (state, ownProps) => {
|
|
|
1949
2411
|
options
|
|
1950
2412
|
};
|
|
1951
2413
|
};
|
|
2414
|
+
const mapDispatchToCellProps = mapDispatchToControlProps;
|
|
2415
|
+
const defaultMapDispatchToControlProps = (dispatch, ownProps) => {
|
|
2416
|
+
const { handleChange } = mapDispatchToCellProps(dispatch);
|
|
2417
|
+
return {
|
|
2418
|
+
handleChange: ownProps.handleChange || handleChange
|
|
2419
|
+
};
|
|
2420
|
+
};
|
|
2421
|
+
const createCombinatorRenderInfos = (combinatorSubSchemas, rootSchema, keyword, control, path, uischemas) => combinatorSubSchemas.map((subSchema, subSchemaIndex) => {
|
|
2422
|
+
const resolvedSubSchema = subSchema.$ref && Resolve.schema(rootSchema, subSchema.$ref, rootSchema);
|
|
2423
|
+
const schema = resolvedSubSchema ?? subSchema;
|
|
2424
|
+
return {
|
|
2425
|
+
schema,
|
|
2426
|
+
uischema: findUISchema(uischemas, schema, control.scope, path, void 0, control, rootSchema),
|
|
2427
|
+
label: subSchema.title ?? (resolvedSubSchema == null ? void 0 : resolvedSubSchema.title) ?? `${keyword}-${subSchemaIndex}`
|
|
2428
|
+
};
|
|
2429
|
+
});
|
|
1952
2430
|
export {
|
|
1953
2431
|
ADD_CELL,
|
|
1954
2432
|
ADD_DEFAULT_DATA,
|
|
@@ -1957,7 +2435,9 @@ export {
|
|
|
1957
2435
|
index$1 as Actions,
|
|
1958
2436
|
ArrayTranslationEnum,
|
|
1959
2437
|
CombinatorTranslationEnum,
|
|
2438
|
+
Draft4,
|
|
1960
2439
|
Generate,
|
|
2440
|
+
Helpers,
|
|
1961
2441
|
INIT,
|
|
1962
2442
|
NOT_APPLICABLE,
|
|
1963
2443
|
Paths,
|
|
@@ -1967,6 +2447,7 @@ export {
|
|
|
1967
2447
|
REMOVE_UI_SCHEMA,
|
|
1968
2448
|
Resolve,
|
|
1969
2449
|
RuleEffect,
|
|
2450
|
+
Runtime,
|
|
1970
2451
|
SET_AJV,
|
|
1971
2452
|
SET_CONFIG,
|
|
1972
2453
|
SET_LOCALE,
|
|
@@ -1974,6 +2455,7 @@ export {
|
|
|
1974
2455
|
SET_TRANSLATOR,
|
|
1975
2456
|
SET_UISCHEMA,
|
|
1976
2457
|
SET_VALIDATION_MODE,
|
|
2458
|
+
index as Test,
|
|
1977
2459
|
UPDATE_CORE,
|
|
1978
2460
|
UPDATE_DATA,
|
|
1979
2461
|
UPDATE_ERRORS,
|
|
@@ -1982,24 +2464,37 @@ export {
|
|
|
1982
2464
|
addI18nKeyToPrefix,
|
|
1983
2465
|
and,
|
|
1984
2466
|
arrayDefaultTranslations,
|
|
2467
|
+
categorizationHasCategory,
|
|
2468
|
+
cellReducer,
|
|
2469
|
+
clearAllIds,
|
|
2470
|
+
combinatorDefaultTranslations,
|
|
1985
2471
|
compose,
|
|
1986
2472
|
compose as composePaths,
|
|
1987
2473
|
composeWithUi,
|
|
1988
2474
|
computeChildLabel,
|
|
1989
2475
|
computeLabel,
|
|
1990
2476
|
configReducer,
|
|
2477
|
+
controlDefaultProps,
|
|
1991
2478
|
convertDateToString,
|
|
2479
|
+
convertToValidClassName,
|
|
1992
2480
|
coreReducer,
|
|
1993
2481
|
createAjv,
|
|
2482
|
+
createCleanLabel,
|
|
2483
|
+
createCombinatorRenderInfos,
|
|
1994
2484
|
createControlElement,
|
|
1995
2485
|
createDefaultValue,
|
|
1996
2486
|
createId,
|
|
1997
2487
|
createLabelDescriptionFrom,
|
|
1998
2488
|
decode,
|
|
2489
|
+
defaultDataReducer,
|
|
2490
|
+
defaultDateFormat,
|
|
2491
|
+
defaultDateTimeFormat,
|
|
1999
2492
|
defaultErrorTranslator,
|
|
2000
2493
|
defaultJsonFormsI18nState,
|
|
2494
|
+
defaultMapDispatchToControlProps,
|
|
2001
2495
|
defaultMapStateToEnumCellProps,
|
|
2002
2496
|
defaultMiddleware,
|
|
2497
|
+
defaultTimeFormat,
|
|
2003
2498
|
defaultTranslator,
|
|
2004
2499
|
deriveLabelForUISchemaElement,
|
|
2005
2500
|
deriveTypes,
|
|
@@ -2012,11 +2507,14 @@ export {
|
|
|
2012
2507
|
evalVisibility,
|
|
2013
2508
|
extractAjv,
|
|
2014
2509
|
extractData,
|
|
2510
|
+
extractDefaultData,
|
|
2015
2511
|
extractDefaults,
|
|
2016
2512
|
extractSchema,
|
|
2017
2513
|
extractUiSchema,
|
|
2018
2514
|
fetchErrorTranslator,
|
|
2515
|
+
fetchLocale,
|
|
2019
2516
|
fetchTranslator,
|
|
2517
|
+
findAllRefs,
|
|
2020
2518
|
findMatchingUISchema,
|
|
2021
2519
|
findUISchema,
|
|
2022
2520
|
findUiControl,
|
|
@@ -2028,35 +2526,47 @@ export {
|
|
|
2028
2526
|
getAjv,
|
|
2029
2527
|
getArrayTranslations,
|
|
2030
2528
|
getCells,
|
|
2529
|
+
getCombinatorTranslations,
|
|
2031
2530
|
getCombinedErrorMessage,
|
|
2032
2531
|
getConfig,
|
|
2033
2532
|
getControlPath,
|
|
2034
2533
|
getData,
|
|
2534
|
+
getDefaultData,
|
|
2035
2535
|
getErrorAt,
|
|
2036
2536
|
getErrorTranslator,
|
|
2037
2537
|
getFirstPrimitiveProp,
|
|
2038
2538
|
getI18nKey,
|
|
2039
2539
|
getI18nKeyPrefix,
|
|
2040
2540
|
getI18nKeyPrefixBySchema,
|
|
2541
|
+
getLocale,
|
|
2041
2542
|
getOrCreateAjv,
|
|
2042
2543
|
getPropPath,
|
|
2043
2544
|
getRenderers,
|
|
2044
2545
|
getSchema,
|
|
2045
2546
|
getSubErrorsAt,
|
|
2046
2547
|
getTranslator,
|
|
2548
|
+
getUISchemas,
|
|
2047
2549
|
getUiSchema,
|
|
2048
2550
|
getValidationMode,
|
|
2551
|
+
hasCategory,
|
|
2049
2552
|
hasEnableRule,
|
|
2553
|
+
hasOption,
|
|
2050
2554
|
hasShowRule,
|
|
2051
2555
|
hasType,
|
|
2052
2556
|
i18nReducer,
|
|
2053
2557
|
init,
|
|
2054
2558
|
initState,
|
|
2559
|
+
isAllOfControl,
|
|
2560
|
+
isAnyOfControl,
|
|
2561
|
+
isArrayObjectControl,
|
|
2055
2562
|
isBooleanControl,
|
|
2563
|
+
isCategorization,
|
|
2564
|
+
isCategory,
|
|
2056
2565
|
isControl,
|
|
2057
2566
|
isControlElement,
|
|
2058
2567
|
isDateControl,
|
|
2059
2568
|
isDateTimeControl,
|
|
2569
|
+
isDescriptionHidden,
|
|
2060
2570
|
isEnabled,
|
|
2061
2571
|
isEnumControl,
|
|
2062
2572
|
isEnumSchema,
|
|
@@ -2065,27 +2575,39 @@ export {
|
|
|
2065
2575
|
isIntegerControl,
|
|
2066
2576
|
isInternationalized,
|
|
2067
2577
|
isLabelable,
|
|
2578
|
+
isLabeled,
|
|
2068
2579
|
isLayout,
|
|
2580
|
+
isMultiLineControl,
|
|
2069
2581
|
isNumberControl,
|
|
2582
|
+
isNumberFormatControl,
|
|
2070
2583
|
isObjectArray,
|
|
2071
2584
|
isObjectArrayControl,
|
|
2072
2585
|
isObjectArrayWithNesting,
|
|
2073
2586
|
isObjectControl,
|
|
2074
2587
|
isOneOfControl,
|
|
2588
|
+
isOneOfEnumControl,
|
|
2075
2589
|
isOneOfEnumSchema,
|
|
2076
2590
|
isPrimitiveArrayControl,
|
|
2591
|
+
isRangeControl,
|
|
2077
2592
|
isScopable,
|
|
2078
2593
|
isScoped,
|
|
2079
2594
|
isStringControl,
|
|
2080
2595
|
isTimeControl,
|
|
2081
2596
|
isUpdateArrayContext,
|
|
2082
2597
|
isVisible,
|
|
2598
|
+
iterateSchema,
|
|
2599
|
+
jsonFormsReducerConfig,
|
|
2083
2600
|
layoutDefaultProps,
|
|
2084
2601
|
mapDispatchToArrayControlProps,
|
|
2602
|
+
mapDispatchToCellProps,
|
|
2085
2603
|
mapDispatchToControlProps,
|
|
2086
2604
|
mapDispatchToMultiEnumProps,
|
|
2605
|
+
mapStateToAllOfProps,
|
|
2606
|
+
mapStateToAnyOfProps,
|
|
2607
|
+
mapStateToArrayControlProps,
|
|
2087
2608
|
mapStateToArrayLayoutProps,
|
|
2088
2609
|
mapStateToCellProps,
|
|
2610
|
+
mapStateToCombinatorRendererProps,
|
|
2089
2611
|
mapStateToControlProps,
|
|
2090
2612
|
mapStateToControlWithDetailProps,
|
|
2091
2613
|
mapStateToDispatchCellProps,
|
|
@@ -2093,11 +2615,14 @@ export {
|
|
|
2093
2615
|
mapStateToJsonFormsRendererProps,
|
|
2094
2616
|
mapStateToLabelProps,
|
|
2095
2617
|
mapStateToLayoutProps,
|
|
2618
|
+
mapStateToMasterListItemProps,
|
|
2096
2619
|
mapStateToMultiEnumControlProps,
|
|
2097
2620
|
mapStateToOneOfEnumCellProps,
|
|
2098
2621
|
mapStateToOneOfEnumControlProps,
|
|
2622
|
+
mapStateToOneOfProps,
|
|
2099
2623
|
moveDown,
|
|
2100
2624
|
moveUp,
|
|
2625
|
+
not,
|
|
2101
2626
|
oneOfToEnumOptionMapper,
|
|
2102
2627
|
optionIs,
|
|
2103
2628
|
or,
|
|
@@ -2107,29 +2632,38 @@ export {
|
|
|
2107
2632
|
registerRenderer,
|
|
2108
2633
|
registerUISchema,
|
|
2109
2634
|
removeId,
|
|
2635
|
+
rendererReducer,
|
|
2110
2636
|
resolveData,
|
|
2111
2637
|
resolveSchema,
|
|
2112
2638
|
schemaMatches,
|
|
2113
2639
|
schemaSubPathMatches,
|
|
2114
2640
|
schemaTypeIs,
|
|
2641
|
+
scopeEndIs,
|
|
2642
|
+
scopeEndsWith,
|
|
2115
2643
|
setAjv,
|
|
2116
2644
|
setConfig,
|
|
2117
2645
|
setLocale,
|
|
2646
|
+
setReadonly,
|
|
2118
2647
|
setSchema,
|
|
2119
2648
|
setTranslator,
|
|
2120
2649
|
setUISchema,
|
|
2121
2650
|
setValidationMode,
|
|
2651
|
+
showAsRequired,
|
|
2122
2652
|
subErrorsAt,
|
|
2653
|
+
toDataPath,
|
|
2123
2654
|
toDataPathSegments,
|
|
2124
2655
|
transformPathToI18nPrefix,
|
|
2125
2656
|
uiTypeIs,
|
|
2657
|
+
uischemaRegistryReducer,
|
|
2126
2658
|
unregisterCell,
|
|
2127
2659
|
unregisterDefaultData,
|
|
2128
2660
|
unregisterRenderer,
|
|
2129
2661
|
unregisterUISchema,
|
|
2662
|
+
unsetReadonly,
|
|
2130
2663
|
update,
|
|
2131
2664
|
updateCore,
|
|
2132
2665
|
updateErrors,
|
|
2133
2666
|
updateI18n,
|
|
2134
|
-
validate
|
|
2667
|
+
validate,
|
|
2668
|
+
withIncreasedRank
|
|
2135
2669
|
};
|