@imtf/dms-core 1.0.0-beta.1
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/apps/folder-manager/routes/InodeCollection/hooks/useRemoveInodesFromUrl.d.ts +3 -0
- package/core/components/CountryFlag/CountryFlag.d.ts +5 -0
- package/core/components/CountryFlag/Loadable.d.ts +2 -0
- package/core/components/JsonForm/widgets/widgetHOC.d.ts +33 -0
- package/core/components/TreeView/types.d.ts +17 -0
- package/core/components/TreeViewCell/constants.d.ts +25 -0
- package/core/components/dms-ui/constants.d.ts +15 -0
- package/core/constants/apps.d.ts +60 -0
- package/core/constants/kinds.d.ts +80 -0
- package/core/constants/permissions.d.ts +32 -0
- package/core/containers/DropZone/selectors.d.ts +125 -0
- package/core/containers/NotificationCenter/slice.d.ts +25 -0
- package/core/containers/NotificationCenter/types.d.ts +5 -0
- package/core/containers/PDFComposer/actions.d.ts +93 -0
- package/core/containers/PDFComposer/constants.d.ts +31 -0
- package/core/containers/PDFComposer/reducer.d.ts +21 -0
- package/core/containers/PDFComposer/type.d.ts +47 -0
- package/core/containers/PDFTronViewer/components/LightViewer/config.d.ts +10 -0
- package/core/containers/PDFTronViewer/components/LightViewer/index.d.ts +6 -0
- package/core/containers/PDFTronViewer/components/LightViewer/utils.d.ts +5 -0
- package/core/containers/PDFTronViewer/components/Viewer/types.d.ts +7 -0
- package/core/containers/PDFTronViewer/constants.d.ts +22 -0
- package/core/containers/PDFTronViewer/messages.d.ts +123 -0
- package/core/containers/PDFTronViewer/slice.d.ts +9 -0
- package/core/containers/SearchView/utils.d.ts +8 -0
- package/core/containers/TreeView/actions.d.ts +197 -0
- package/core/containers/TreeView/constants.d.ts +36 -0
- package/core/containers/TreeView/types.d.ts +46 -0
- package/core/providers/Actions/Context.d.ts +3 -0
- package/core/providers/Actions/constants.d.ts +74 -0
- package/core/providers/Actions/index.d.ts +8 -0
- package/core/providers/Actions/messages.d.ts +39 -0
- package/core/providers/Actions/types.d.ts +85 -0
- package/core/providers/Actions/utils.d.ts +4 -0
- package/core/providers/App/actions.d.ts +163 -0
- package/core/providers/App/constants.d.ts +34 -0
- package/core/providers/App/hooks/useAppCapabilities.d.ts +6 -0
- package/core/providers/App/hooks/useApplicationSettings.d.ts +57 -0
- package/core/providers/App/hooks/useEnvironment.d.ts +9 -0
- package/core/providers/App/hooks/useSettings.d.ts +16 -0
- package/core/providers/App/hooks/useUserSetting.d.ts +6 -0
- package/core/providers/App/hooks/useUserStorage.d.ts +7 -0
- package/core/providers/App/messages.d.ts +71 -0
- package/core/providers/App/modals/TextFieldModal.d.ts +12 -0
- package/core/providers/App/reducer.d.ts +1 -0
- package/core/providers/App/saga.d.ts +1 -0
- package/core/providers/App/selectors.d.ts +84 -0
- package/core/providers/App/service.d.ts +35 -0
- package/core/providers/App/types.d.ts +197 -0
- package/core/providers/App/utils/convertOldUserSettings.d.ts +11 -0
- package/core/providers/App/utils/createFileUploadFormData.d.ts +2 -0
- package/core/providers/App/utils/isSupportedItem.d.ts +2 -0
- package/core/providers/Authentication/Context.d.ts +10 -0
- package/core/providers/Authentication/constants.d.ts +2 -0
- package/core/providers/Authentication/hooks/useAuth.d.ts +2 -0
- package/core/providers/Authentication/service.d.ts +29 -0
- package/core/providers/Authentication/types.d.ts +38 -0
- package/core/providers/Cases/actions.d.ts +239 -0
- package/core/providers/Cases/constants.d.ts +54 -0
- package/core/providers/Cases/hooks/useCaseDocumentTypes.d.ts +10 -0
- package/core/providers/Cases/reducer.d.ts +18 -0
- package/core/providers/Cases/selectors.d.ts +64 -0
- package/core/providers/Cases/service.d.ts +92 -0
- package/core/providers/Cases/types.d.ts +143 -0
- package/core/providers/Cases/utils/can.d.ts +14 -0
- package/core/providers/Cases/utils/common.d.ts +10 -0
- package/core/providers/Cases/utils/isCase.d.ts +5 -0
- package/core/providers/Ccm/constants.d.ts +50 -0
- package/core/providers/Ccm/types.d.ts +137 -0
- package/core/providers/Ccm/utils/isAccount.d.ts +4 -0
- package/core/providers/Ccm/utils/isClient.d.ts +4 -0
- package/core/providers/Ccm/utils/isClientGroup.d.ts +4 -0
- package/core/providers/Ccm/utils/isHouseholdEntity.d.ts +4 -0
- package/core/providers/Definitions/service.d.ts +30 -0
- package/core/providers/Definitions/types.d.ts +248 -0
- package/core/providers/Inodes/actions.d.ts +612 -0
- package/core/providers/Inodes/constants.d.ts +152 -0
- package/core/providers/Inodes/hooks/useDelete.d.ts +12 -0
- package/core/providers/Inodes/messages.d.ts +475 -0
- package/core/providers/Inodes/selectors.d.ts +55 -0
- package/core/providers/Inodes/service.d.ts +149 -0
- package/core/providers/Inodes/types.d.ts +411 -0
- package/core/providers/Inodes/utils/can.d.ts +16 -0
- package/core/providers/Inodes/utils/getUrl.d.ts +1 -0
- package/core/providers/Inodes/utils/hasPermission.d.ts +2 -0
- package/core/providers/Inodes/utils/is.d.ts +39 -0
- package/core/providers/Inodes/utils/isImmutable.d.ts +15 -0
- package/core/providers/Inodes/utils/resolveUnauthorizedInodes.d.ts +11 -0
- package/core/providers/Inodes/utils/saveProperties.d.ts +2 -0
- package/core/providers/Inodes/utils/sortByOrderingWeight.d.ts +6 -0
- package/core/providers/Inspectors/Context.d.ts +11 -0
- package/core/providers/Inspectors/index.d.ts +6 -0
- package/core/providers/Inspectors/types.d.ts +40 -0
- package/core/providers/Inspectors/utils.d.ts +2 -0
- package/core/providers/Localization/constants.d.ts +3 -0
- package/core/providers/Localization/intl.d.ts +3 -0
- package/core/providers/Localization/types.d.ts +6 -0
- package/core/providers/MdmGraph/actions.d.ts +145 -0
- package/core/providers/MdmGraph/constants.d.ts +28 -0
- package/core/providers/MdmGraph/containers/MdmEntitiesEditor/utils/createHighlightsSchema.d.ts +13 -0
- package/core/providers/MdmGraph/service.d.ts +76 -0
- package/core/providers/MdmGraph/types.d.ts +151 -0
- package/core/providers/MdmGraph/utils/isEntity.d.ts +3 -0
- package/core/providers/MdmGraph/utils/misc.d.ts +13 -0
- package/core/providers/Modal/slice.d.ts +45 -0
- package/core/providers/Modal/types.d.ts +24 -0
- package/core/providers/Plugins/Context.d.ts +8 -0
- package/core/providers/Plugins/components/JsonFormPlugin.d.ts +6 -0
- package/core/providers/Plugins/components/QuestionnairePart.d.ts +11 -0
- package/core/providers/Plugins/components/index.d.ts +2 -0
- package/core/providers/Plugins/constants.d.ts +15 -0
- package/core/providers/Plugins/hooks/app/useActions.d.ts +4 -0
- package/core/providers/Plugins/hooks/app/useCodetype.d.ts +5 -0
- package/core/providers/Plugins/hooks/app/useParameter.d.ts +4 -0
- package/core/providers/Plugins/hooks/app/useSystemNotification.d.ts +6 -0
- package/core/providers/Plugins/hooks/app/useUserDetails.d.ts +2 -0
- package/core/providers/Plugins/hooks/cases/useActions.d.ts +7 -0
- package/core/providers/Plugins/hooks/cases/useCase.d.ts +3 -0
- package/core/providers/Plugins/hooks/cases/useCaseDocumentTypes.d.ts +5 -0
- package/core/providers/Plugins/hooks/cases/useCaseDocuments.d.ts +2 -0
- package/core/providers/Plugins/hooks/cases/useData.d.ts +14 -0
- package/core/providers/Plugins/hooks/cases/usePayload.d.ts +6 -0
- package/core/providers/Plugins/hooks/inodes/useActions.d.ts +12 -0
- package/core/providers/Plugins/hooks/inodes/useInodesByOids.d.ts +6 -0
- package/core/providers/Plugins/hooks/mdm/useEntity.d.ts +6 -0
- package/core/providers/Plugins/hooks/tasks/useActions.d.ts +17 -0
- package/core/providers/Plugins/hooks/tasks/useData.d.ts +2 -0
- package/core/providers/Plugins/hooks/tasks/useEntitiesMutate.d.ts +1 -0
- package/core/providers/Plugins/hooks/tasks/useTask.d.ts +2 -0
- package/core/providers/Plugins/hooks/usePlugin.d.ts +3 -0
- package/core/providers/Plugins/pluginRegistry.d.ts +323 -0
- package/core/providers/Plugins/types/ccm.d.ts +4 -0
- package/core/providers/Plugins/types/componentPlugins.d.ts +61 -0
- package/core/providers/Search/actions.d.ts +62 -0
- package/core/providers/Search/constants.d.ts +9 -0
- package/core/providers/Search/hooks/useReloader.d.ts +14 -0
- package/core/providers/Search/messages.d.ts +7 -0
- package/core/providers/Search/reducer.d.ts +32 -0
- package/core/providers/Search/saga.d.ts +1 -0
- package/core/providers/Search/selectors.d.ts +541 -0
- package/core/providers/Search/service.d.ts +9 -0
- package/core/providers/Search/types.d.ts +100 -0
- package/core/providers/Search/utils/common.d.ts +7 -0
- package/core/providers/Search/utils/createQuery.d.ts +26 -0
- package/core/providers/Search/utils/sanitizeUrlSearchParams.d.ts +1 -0
- package/core/providers/SystemNotification/constants.d.ts +3 -0
- package/core/providers/SystemNotification/slice.d.ts +9 -0
- package/core/providers/SystemNotification/useSystemNotification.d.ts +6 -0
- package/core/providers/Tasks/Context.d.ts +10 -0
- package/core/providers/Tasks/constants.d.ts +70 -0
- package/core/providers/Tasks/hooks/useEntitiesMutate.d.ts +15 -0
- package/core/providers/Tasks/hooks/useEntityDelete.d.ts +17 -0
- package/core/providers/Tasks/hooks/useEntityMutate.d.ts +31 -0
- package/core/providers/Tasks/hooks/useQuestionnaire.d.ts +4 -0
- package/core/providers/Tasks/hooks/useTask.d.ts +3 -0
- package/core/providers/Tasks/hooks/useTaskData.d.ts +5 -0
- package/core/providers/Tasks/service.d.ts +71 -0
- package/core/providers/Tasks/types.d.ts +133 -0
- package/core/providers/Tasks/utils/can.d.ts +21 -0
- package/core/providers/Tasks/utils/isTask.d.ts +5 -0
- package/core/providers/Uploader/Context.d.ts +47 -0
- package/core/providers/User/action.d.ts +19 -0
- package/core/providers/User/constants.d.ts +7 -0
- package/core/providers/User/reducer.d.ts +9 -0
- package/core/providers/User/saga.d.ts +2 -0
- package/core/providers/User/selectors.d.ts +76 -0
- package/core/providers/User/service.d.ts +11 -0
- package/core/providers/User/types.d.ts +31 -0
- package/core/routes/navigate.d.ts +9 -0
- package/core/services/client.d.ts +11 -0
- package/core/services/constants.d.ts +1 -0
- package/core/services/index.d.ts +18 -0
- package/core/services/localStorage.d.ts +21 -0
- package/core/services/settings.d.ts +7 -0
- package/core/services/silentErrorURLs.d.ts +2 -0
- package/core/services/utils/generatePaths.d.ts +11 -0
- package/core/utils/action.d.ts +17 -0
- package/core/utils/base64.d.ts +1 -0
- package/core/utils/checkStore.d.ts +4 -0
- package/core/utils/constants.d.ts +3 -0
- package/core/utils/everyIn.d.ts +5 -0
- package/core/utils/getItemLocation.d.ts +1 -0
- package/core/utils/getItemsLocation.d.ts +2 -0
- package/core/utils/htmlElements.d.ts +1 -0
- package/core/utils/isDocumentActive.d.ts +4 -0
- package/core/utils/isObject.d.ts +1 -0
- package/core/utils/lazyComponent.d.ts +4 -0
- package/core/utils/misc.d.ts +5 -0
- package/core/utils/promise.d.ts +4 -0
- package/core/utils/requestMiddleware.d.ts +1 -0
- package/core/utils/sagaInjectors.d.ts +4 -0
- package/core/utils/selectors.d.ts +8 -0
- package/core/utils/string.d.ts +24 -0
- package/core/utils/uuid.d.ts +1 -0
- package/index.d.ts +13 -0
- package/package.json +6 -0
- package/reducers.d.ts +22 -0
- package/store.d.ts +158 -0
- package/types/utils.d.ts +22 -0
- package/vendor/@imtf/react-components/components/ActivityDetail/ActivityDetail.d.ts +34 -0
- package/vendor/@imtf/react-components/components/ActivityDetail/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ActivityDetail/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/BasicNotification/BasicNotification.d.ts +52 -0
- package/vendor/@imtf/react-components/components/BasicNotification/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/BasicNotification/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Breadcrumb/Breadcrumb.d.ts +36 -0
- package/vendor/@imtf/react-components/components/Breadcrumb/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Breadcrumb/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Chip/Chip.d.ts +41 -0
- package/vendor/@imtf/react-components/components/Chip/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Chip/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Chip/messages.d.ts +7 -0
- package/vendor/@imtf/react-components/components/Chip/utils.d.ts +14 -0
- package/vendor/@imtf/react-components/components/CounterStackedBar/CounterStackedBar.d.ts +33 -0
- package/vendor/@imtf/react-components/components/CounterStackedBar/ids.d.ts +3 -0
- package/vendor/@imtf/react-components/components/CounterStackedBar/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/DebounceField/DebounceField.d.ts +35 -0
- package/vendor/@imtf/react-components/components/DebounceField/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/DebounceField/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/DetailList/DetailList.d.ts +24 -0
- package/vendor/@imtf/react-components/components/DetailList/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/DetailList/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/DetailTree/DetailTree.d.ts +30 -0
- package/vendor/@imtf/react-components/components/DetailTree/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/DetailTree/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Error/Error.d.ts +59 -0
- package/vendor/@imtf/react-components/components/Error/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Error/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Error/messages.d.ts +15 -0
- package/vendor/@imtf/react-components/components/ErrorCatcher/ErrorCatcher.d.ts +40 -0
- package/vendor/@imtf/react-components/components/ErrorCatcher/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ErrorCatcher/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/InfiniteScroll/InfiniteScroll.d.ts +114 -0
- package/vendor/@imtf/react-components/components/InfiniteScroll/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/InfoCard/InfoCard.d.ts +64 -0
- package/vendor/@imtf/react-components/components/InfoCard/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Inline/Inline.d.ts +19 -0
- package/vendor/@imtf/react-components/components/Inline/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Inline/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Internal/FormattedMessage.d.ts +11 -0
- package/vendor/@imtf/react-components/components/Line/Line.d.ts +44 -0
- package/vendor/@imtf/react-components/components/Line/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Line/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Loader/Loader.d.ts +28 -0
- package/vendor/@imtf/react-components/components/Loader/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Loader/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Menu/Menu.d.ts +16 -0
- package/vendor/@imtf/react-components/components/Menu/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Menu/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/MenuSelect/MenuSelect.d.ts +43 -0
- package/vendor/@imtf/react-components/components/MenuSelect/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/MenuSelect/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Navipath/Navipath.d.ts +52 -0
- package/vendor/@imtf/react-components/components/Navipath/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Navipath/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/NoContent/NoContent.d.ts +16 -0
- package/vendor/@imtf/react-components/components/NoContent/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/NoContent/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/NoContent/messages.d.ts +7 -0
- package/vendor/@imtf/react-components/components/Notification/Notification.d.ts +56 -0
- package/vendor/@imtf/react-components/components/Notification/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Notification/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ProgressCircleBar/ProgressCircleBar.d.ts +47 -0
- package/vendor/@imtf/react-components/components/ProgressCircleBar/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ProgressCircleBar/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/RippleEffect/RippleEffect.d.ts +33 -0
- package/vendor/@imtf/react-components/components/RippleEffect/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/RippleEffect/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Scroller/Scroller.d.ts +25 -0
- package/vendor/@imtf/react-components/components/Scroller/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Scroller/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/SearchBar/SearchBar.d.ts +61 -0
- package/vendor/@imtf/react-components/components/SearchBar/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/SearchBar/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/SearchBar/messages.d.ts +7 -0
- package/vendor/@imtf/react-components/components/Stats/Stats.d.ts +39 -0
- package/vendor/@imtf/react-components/components/Stats/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Stats/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Timeline/FormattedDate.d.ts +8 -0
- package/vendor/@imtf/react-components/components/Timeline/Timeline.d.ts +20 -0
- package/vendor/@imtf/react-components/components/Timeline/TimelineItem.d.ts +51 -0
- package/vendor/@imtf/react-components/components/Timeline/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Timeline/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Timeline/messages.d.ts +11 -0
- package/vendor/@imtf/react-components/components/TitleContent/TitleContent.d.ts +25 -0
- package/vendor/@imtf/react-components/components/TitleContent/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/TitleContent/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ViewMore/ViewMore.d.ts +30 -0
- package/vendor/@imtf/react-components/components/ViewMore/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ViewMore/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ViewMoreCard/ViewMoreCard.d.ts +77 -0
- package/vendor/@imtf/react-components/components/ViewMoreCard/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ViewMoreCard/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ViewMoreCard/utils.d.ts +5 -0
- package/vendor/@imtf/react-components/components/index.d.ts +30 -0
- package/vendor/@imtf/react-components/hooks/index.d.ts +1 -0
- package/vendor/@imtf/react-components/hooks/useResponsiveBreakpoints.d.ts +13 -0
- package/vendor/@imtf/react-components/index.d.ts +3 -0
- package/vendor/@imtf/react-components/utils/common.d.ts +13 -0
- package/vendor/@imtf/react-components/utils/constants.d.ts +82 -0
- package/vendor/@imtf/react-components/utils/index.d.ts +2 -0
- package/vendor/@imtf/react-components/utils/resizeObserver.d.ts +1 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { InspectorModuleDefinition } from "./types";
|
|
3
|
+
export declare const registerInspectors: (inspectors: InspectorModuleDefinition[]) => void;
|
|
4
|
+
export default function InspectorsProvider({ children, }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComponentType } from "react";
|
|
2
|
+
import { MessageDescriptor } from "react-intl";
|
|
3
|
+
import inspectors from "@/core/constants/inspectors.json";
|
|
4
|
+
import { SupportedItem } from "../App/types";
|
|
5
|
+
import { SidePanelInspectorDefinition } from "../Definitions/types";
|
|
6
|
+
import { SearchResultRow } from "../Search/types";
|
|
7
|
+
type ValueOf<T> = T[keyof T];
|
|
8
|
+
type NestedValues<T> = ValueOf<{
|
|
9
|
+
[K in keyof T]: ValueOf<T[K]>;
|
|
10
|
+
}>;
|
|
11
|
+
type InspectorName = NestedValues<typeof inspectors>;
|
|
12
|
+
export interface InspectorProps<Item = SupportedItem> {
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
sticky: boolean;
|
|
15
|
+
item: Item;
|
|
16
|
+
rawItems?: SearchResultRow[];
|
|
17
|
+
module?: InspectorModule;
|
|
18
|
+
definition: SidePanelInspectorDefinition;
|
|
19
|
+
}
|
|
20
|
+
export type InspectorModuleDefinition<T = SupportedItem> = {
|
|
21
|
+
name: InspectorName;
|
|
22
|
+
label: string | MessageDescriptor;
|
|
23
|
+
component: ComponentType<InspectorProps<T>>;
|
|
24
|
+
condition: (item: SupportedItem, rawItems?: any) => boolean | Promise<boolean>;
|
|
25
|
+
adminInspector?: boolean;
|
|
26
|
+
renderActions?: (item: T, params: {
|
|
27
|
+
expanded: boolean;
|
|
28
|
+
definition: SidePanelInspectorDefinition;
|
|
29
|
+
}) => JSX.Element;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Returned by the getModules function of the InspectorsContext
|
|
33
|
+
*/
|
|
34
|
+
export type InspectorModule = Omit<InspectorModuleDefinition, "condition" | "renderAction"> & {
|
|
35
|
+
condition: boolean | Promise<boolean>;
|
|
36
|
+
key: string;
|
|
37
|
+
definition: SidePanelInspectorDefinition;
|
|
38
|
+
renderActions?: (expanded: boolean) => JSX.Element;
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export function editEntityModal(taskOid: any, props: any): {
|
|
2
|
+
payload: {
|
|
3
|
+
type: string;
|
|
4
|
+
props: Partial<{
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
disableEscapeKeyDown: boolean;
|
|
7
|
+
disableBackdropClick: boolean;
|
|
8
|
+
correlationId: string;
|
|
9
|
+
fullWidth: boolean;
|
|
10
|
+
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
11
|
+
blocker: boolean;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
}> | undefined;
|
|
14
|
+
};
|
|
15
|
+
type: "modal/showModal";
|
|
16
|
+
};
|
|
17
|
+
export function upload({ caseOid, taskOid, entityOid, files, fileInodes, fileProps, serviceConfig, }: {
|
|
18
|
+
caseOid: any;
|
|
19
|
+
taskOid: any;
|
|
20
|
+
entityOid: any;
|
|
21
|
+
files: any;
|
|
22
|
+
fileInodes: any;
|
|
23
|
+
fileProps: any;
|
|
24
|
+
serviceConfig: any;
|
|
25
|
+
}): {
|
|
26
|
+
type: string;
|
|
27
|
+
payload: {
|
|
28
|
+
caseOid: any;
|
|
29
|
+
taskOid: any;
|
|
30
|
+
entityOid: any;
|
|
31
|
+
files: any;
|
|
32
|
+
fileInodes: any;
|
|
33
|
+
fileProps: any;
|
|
34
|
+
serviceConfig: any;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export function uploadSuccess(caseOid: any, taskOid: any, entityOid: any, inodes: any): {
|
|
38
|
+
type: string;
|
|
39
|
+
payload: {
|
|
40
|
+
caseOid: any;
|
|
41
|
+
taskOid: any;
|
|
42
|
+
entityOid: any;
|
|
43
|
+
inodes: any;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export function uploadError(error: any, payload: any): {
|
|
47
|
+
type: string;
|
|
48
|
+
payload: any;
|
|
49
|
+
error: any;
|
|
50
|
+
};
|
|
51
|
+
export function createFiles(caseOid: any, taskOid: any, entityOid: any, inodes: any): {
|
|
52
|
+
type: string;
|
|
53
|
+
payload: {
|
|
54
|
+
caseOid: any;
|
|
55
|
+
taskOid: any;
|
|
56
|
+
entityOid: any;
|
|
57
|
+
inodes: any;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export function createFilesSuccess(caseOid: any, taskOid: any, entityOid: any, inodes: any): {
|
|
61
|
+
type: string;
|
|
62
|
+
payload: {
|
|
63
|
+
caseOid: any;
|
|
64
|
+
taskOid: any;
|
|
65
|
+
entityOid: any;
|
|
66
|
+
inodes: any;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export function createFilesError(error: any, payload: any): {
|
|
70
|
+
type: string;
|
|
71
|
+
payload: any;
|
|
72
|
+
error: any;
|
|
73
|
+
};
|
|
74
|
+
export function attachFiles(caseOid: any, taskOid: any, entityOid: any, inodes: any, types: any): {
|
|
75
|
+
type: string;
|
|
76
|
+
payload: {
|
|
77
|
+
caseOid: any;
|
|
78
|
+
taskOid: any;
|
|
79
|
+
entityOid: any;
|
|
80
|
+
inodes: any;
|
|
81
|
+
types: any;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export function attachFilesSuccess(caseOid: any, taskOid: any, entityOid: any, inodes: any): {
|
|
85
|
+
type: string;
|
|
86
|
+
payload: {
|
|
87
|
+
caseOid: any;
|
|
88
|
+
taskOid: any;
|
|
89
|
+
entityOid: any;
|
|
90
|
+
inodes: any;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export function attachFilesError(error: any, payload: any): {
|
|
94
|
+
type: string;
|
|
95
|
+
payload: any;
|
|
96
|
+
error: any;
|
|
97
|
+
};
|
|
98
|
+
export function showFieldHistory(fieldHistory: any, fieldLabel: any, entity: any, updateHighlights: any): {
|
|
99
|
+
payload: {
|
|
100
|
+
type: string;
|
|
101
|
+
props: Partial<{
|
|
102
|
+
[key: string]: unknown;
|
|
103
|
+
disableEscapeKeyDown: boolean;
|
|
104
|
+
disableBackdropClick: boolean;
|
|
105
|
+
correlationId: string;
|
|
106
|
+
fullWidth: boolean;
|
|
107
|
+
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
108
|
+
blocker: boolean;
|
|
109
|
+
onClose: () => void;
|
|
110
|
+
}> | undefined;
|
|
111
|
+
};
|
|
112
|
+
type: "modal/showModal";
|
|
113
|
+
};
|
|
114
|
+
export function showFieldComments(taskOid: any, entityOid: any, fieldName: any, disabled: any): {
|
|
115
|
+
payload: {
|
|
116
|
+
type: string;
|
|
117
|
+
props: Partial<{
|
|
118
|
+
[key: string]: unknown;
|
|
119
|
+
disableEscapeKeyDown: boolean;
|
|
120
|
+
disableBackdropClick: boolean;
|
|
121
|
+
correlationId: string;
|
|
122
|
+
fullWidth: boolean;
|
|
123
|
+
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
124
|
+
blocker: boolean;
|
|
125
|
+
onClose: () => void;
|
|
126
|
+
}> | undefined;
|
|
127
|
+
};
|
|
128
|
+
type: "modal/showModal";
|
|
129
|
+
};
|
|
130
|
+
export function generateEntityReportModal(entity: any): {
|
|
131
|
+
payload: {
|
|
132
|
+
type: string;
|
|
133
|
+
props: Partial<{
|
|
134
|
+
[key: string]: unknown;
|
|
135
|
+
disableEscapeKeyDown: boolean;
|
|
136
|
+
disableBackdropClick: boolean;
|
|
137
|
+
correlationId: string;
|
|
138
|
+
fullWidth: boolean;
|
|
139
|
+
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
140
|
+
blocker: boolean;
|
|
141
|
+
onClose: () => void;
|
|
142
|
+
}> | undefined;
|
|
143
|
+
};
|
|
144
|
+
type: "modal/showModal";
|
|
145
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const UPLOAD = "imtf/MdmGraph/UPLOAD";
|
|
2
|
+
export declare const UPLOAD_SUCCESS = "imtf/MdmGraph/UPLOAD_SUCCESS";
|
|
3
|
+
export declare const UPLOAD_ERROR = "imtf/MdmGraph/UPLOAD_ERROR";
|
|
4
|
+
export declare const CREATE_FILES = "imtf/MdmGraph/CREATE_FILES";
|
|
5
|
+
export declare const CREATE_FILES_SUCCESS = "imtf/MdmGraph/CREATE_FILES_SUCCESS";
|
|
6
|
+
export declare const CREATE_FILES_ERROR = "imtf/MdmGraph/CREATE_FILES_ERROR";
|
|
7
|
+
export declare const ATTACH_FILES = "imtf/MdmGraph/ATTACH_FILES";
|
|
8
|
+
export declare const ATTACH_FILES_SUCCESS = "imtf/MdmGraph/ATTACH_FILES_SUCCESS";
|
|
9
|
+
export declare const ATTACH_FILES_ERROR = "imtf/MdmGraph/ATTACH_FILES_ERROR";
|
|
10
|
+
export declare const MODAL_TYPES: {
|
|
11
|
+
EDIT_ENTITY: string;
|
|
12
|
+
FIELD_HISTORY: string;
|
|
13
|
+
FIELD_COMMENTS: string;
|
|
14
|
+
GENERATE_ENTITY_REPORT: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const NEW_ENTITY_KEY = "__NEW__";
|
|
17
|
+
export declare const RELATION_DIRECTIONS: {
|
|
18
|
+
IN: string;
|
|
19
|
+
OUT: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const INSPECTORS: {
|
|
22
|
+
ENTITY_RELATED_CASES: string;
|
|
23
|
+
ENTITY_RELATED_ENTITIES: string;
|
|
24
|
+
ENTITY_DATA: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const ACTIONS: {
|
|
27
|
+
readonly GENERATE_ENTITY_REPORT: "GENERATE_ENTITY_REPORT";
|
|
28
|
+
};
|
package/core/providers/MdmGraph/containers/MdmEntitiesEditor/utils/createHighlightsSchema.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { QuestionnaireFormHighlights } from "../../../../Tasks/types";
|
|
2
|
+
type Keys = QuestionnaireFormHighlights["highlights"][number]["type"];
|
|
3
|
+
export type HighlightsSchema = {
|
|
4
|
+
[key in `has${Capitalize<Keys>}`]?: boolean;
|
|
5
|
+
} & {
|
|
6
|
+
schema: {
|
|
7
|
+
[key: string]: {
|
|
8
|
+
[key in Keys]?: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare function createHighlightsSchema(entityOid: string, highlights?: QuestionnaireFormHighlights[]): HighlightsSchema;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { FileInode } from "../Inodes/types";
|
|
2
|
+
export declare const paths: Readonly<{
|
|
3
|
+
readonly caseData: (params?: {
|
|
4
|
+
caseOid: string | null;
|
|
5
|
+
} | undefined) => string;
|
|
6
|
+
readonly taskData: (params?: {
|
|
7
|
+
taskOid: string | null;
|
|
8
|
+
} | undefined) => string;
|
|
9
|
+
readonly entityRelatedMasterData: (params?: {
|
|
10
|
+
entityOid: string | null;
|
|
11
|
+
} | undefined) => string;
|
|
12
|
+
readonly entityRelatedCase: (params?: {
|
|
13
|
+
entityOid: string | null;
|
|
14
|
+
} | undefined) => string;
|
|
15
|
+
readonly linkEntity: (params?: {
|
|
16
|
+
taskOid: string | null;
|
|
17
|
+
entityOid: string | null;
|
|
18
|
+
} | undefined) => string;
|
|
19
|
+
readonly importData: (params?: {
|
|
20
|
+
taskOid: string | null;
|
|
21
|
+
} | undefined) => string;
|
|
22
|
+
readonly createEntity: (params?: {
|
|
23
|
+
taskOid: string | null;
|
|
24
|
+
} | undefined) => string;
|
|
25
|
+
readonly entities: (params?: {
|
|
26
|
+
taskOid: string | null;
|
|
27
|
+
} | undefined) => string;
|
|
28
|
+
readonly caseEntity: (params?: {
|
|
29
|
+
caseOid: string | null;
|
|
30
|
+
entityOid: string | null;
|
|
31
|
+
} | undefined) => string;
|
|
32
|
+
readonly taskEntity: (params?: {
|
|
33
|
+
taskOid: string | null;
|
|
34
|
+
entityOid: string | null;
|
|
35
|
+
} | undefined) => string;
|
|
36
|
+
readonly createRelation: (params?: {
|
|
37
|
+
taskOid: string | null;
|
|
38
|
+
} | undefined) => string;
|
|
39
|
+
readonly relation: (params?: {
|
|
40
|
+
taskOid: string | null;
|
|
41
|
+
relationOid: string | null;
|
|
42
|
+
} | undefined) => string;
|
|
43
|
+
readonly relationDefinitions: (params?: {
|
|
44
|
+
entityType: string | null;
|
|
45
|
+
} | undefined) => string;
|
|
46
|
+
readonly taskEntityFiles: (params?: {
|
|
47
|
+
taskOid: string | null;
|
|
48
|
+
entityOid: string | null;
|
|
49
|
+
} | undefined) => string;
|
|
50
|
+
readonly taskEntityAttachFiles: (params?: {
|
|
51
|
+
taskOid: string | null;
|
|
52
|
+
entityOid: string | null;
|
|
53
|
+
} | undefined) => string;
|
|
54
|
+
readonly caseEntityFiles: (params?: {
|
|
55
|
+
caseOid: string | null;
|
|
56
|
+
entityOid: string | null;
|
|
57
|
+
} | undefined) => string;
|
|
58
|
+
readonly caseEntityAttachFiles: (params?: {
|
|
59
|
+
caseOid: string | null;
|
|
60
|
+
entityOid: string | null;
|
|
61
|
+
} | undefined) => string;
|
|
62
|
+
readonly entityHistory: (params?: {
|
|
63
|
+
entityOid: string | null;
|
|
64
|
+
} | undefined) => string;
|
|
65
|
+
readonly entityComments: (params?: {
|
|
66
|
+
entityOid: string | null;
|
|
67
|
+
} | undefined) => string;
|
|
68
|
+
readonly fieldComment: (params?: {} | undefined) => string;
|
|
69
|
+
readonly entityReports: (params?: {} | undefined) => string;
|
|
70
|
+
readonly generateEntity: (params?: {} | undefined) => string;
|
|
71
|
+
}>;
|
|
72
|
+
export declare function createFiles(taskOid: string, entityOid: string, inodes: FileInode[]): Promise<any[]>;
|
|
73
|
+
export declare function uploadFiles(taskOid: string, entityOid: string, files: File[], inodes: FileInode[], params: Record<string, unknown>): Promise<any[]>;
|
|
74
|
+
export declare function uploadCaseFiles(caseOid: string, entityOid: string, files: File[], inodes: FileInode[], params: Record<string, unknown>): Promise<any[]>;
|
|
75
|
+
export declare function attachFiles(taskOid: string, entityOid: string, inodes: FileInode[], params: Record<string, unknown>): Promise<any[]>;
|
|
76
|
+
export declare function attachCaseFiles(caseOid: string, entityOid: string, inodes: FileInode[], params: Record<string, unknown>): Promise<any[]>;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { Map } from "immutable";
|
|
2
|
+
import { ACM_DATA, MDM_ENTITIES_LIST, MDM_ENTITY, MDM_ENTITY_CAPABILITIES, MDM_ENTITY_REF, MDM_FIELD, MDM_RELATIONSHIP } from "../../../core/constants/kinds";
|
|
3
|
+
import type { Capabilities } from "../App/types";
|
|
4
|
+
import type { Case } from "../Cases/types";
|
|
5
|
+
import type { Inode } from "../Inodes/types";
|
|
6
|
+
export type ImmutableEntity = Map<string, any>;
|
|
7
|
+
export type ImmutableRelation = Map<string, any>;
|
|
8
|
+
export type Field = {
|
|
9
|
+
kind: typeof MDM_FIELD;
|
|
10
|
+
name: string;
|
|
11
|
+
isObfuscated: boolean;
|
|
12
|
+
capabilities: Capabilities & {
|
|
13
|
+
kind: "mdm.FieldCapabilities";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type MdmValue = string | number | boolean | null | MdmValue[] | {
|
|
17
|
+
[key: string]: MdmValue;
|
|
18
|
+
} | undefined;
|
|
19
|
+
export type EntityData = Record<string, MdmValue>;
|
|
20
|
+
export type Entity<Type extends string = string, Data extends EntityData = EntityData> = {
|
|
21
|
+
kind: typeof MDM_ENTITY;
|
|
22
|
+
type: Type;
|
|
23
|
+
oid: string;
|
|
24
|
+
uri: string;
|
|
25
|
+
revision: number;
|
|
26
|
+
data: Data;
|
|
27
|
+
displayData: Data;
|
|
28
|
+
capabilities: {
|
|
29
|
+
kind: typeof MDM_ENTITY_CAPABILITIES;
|
|
30
|
+
canDelete: boolean;
|
|
31
|
+
canEdit: boolean;
|
|
32
|
+
canCommentEntityField: boolean;
|
|
33
|
+
} & Capabilities;
|
|
34
|
+
creationDate: string;
|
|
35
|
+
modificationDate: string;
|
|
36
|
+
fields: {
|
|
37
|
+
kind: "mdm.Fields";
|
|
38
|
+
fields: {
|
|
39
|
+
[key: string]: Field;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
label: string;
|
|
43
|
+
};
|
|
44
|
+
export interface ClientRisk {
|
|
45
|
+
type: "CcmRisk";
|
|
46
|
+
oid: string;
|
|
47
|
+
uri: string;
|
|
48
|
+
revision: number;
|
|
49
|
+
modificationDate: string;
|
|
50
|
+
data: {
|
|
51
|
+
manualRiskLevel?: string;
|
|
52
|
+
riskLevel: string;
|
|
53
|
+
riskScore: number;
|
|
54
|
+
lastCalculationDate?: string;
|
|
55
|
+
};
|
|
56
|
+
displayData: {
|
|
57
|
+
manualRiskLevel?: string;
|
|
58
|
+
riskLevel: string;
|
|
59
|
+
riskScore: number;
|
|
60
|
+
lastCalculationDate?: string;
|
|
61
|
+
};
|
|
62
|
+
capabilities: {
|
|
63
|
+
kind: typeof MDM_ENTITY_CAPABILITIES;
|
|
64
|
+
canDelete: boolean;
|
|
65
|
+
canEdit: boolean;
|
|
66
|
+
canCommentEntityField: boolean;
|
|
67
|
+
} & Capabilities;
|
|
68
|
+
creationDate: string;
|
|
69
|
+
fields: {
|
|
70
|
+
kind: "mdm.Fields";
|
|
71
|
+
fields: {
|
|
72
|
+
[key: string]: Field;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
label: string;
|
|
76
|
+
}
|
|
77
|
+
export type EntityRef = {
|
|
78
|
+
kind: typeof MDM_ENTITY_REF;
|
|
79
|
+
oid: string;
|
|
80
|
+
label?: string;
|
|
81
|
+
type?: string;
|
|
82
|
+
uri?: string;
|
|
83
|
+
};
|
|
84
|
+
export type EntityList = {
|
|
85
|
+
kind: typeof MDM_ENTITIES_LIST;
|
|
86
|
+
entities: Entity[];
|
|
87
|
+
};
|
|
88
|
+
export type Relation = {
|
|
89
|
+
kind: typeof MDM_RELATIONSHIP;
|
|
90
|
+
oid: string;
|
|
91
|
+
uri: string;
|
|
92
|
+
revision: number;
|
|
93
|
+
creationDate: string;
|
|
94
|
+
modificationDate: string;
|
|
95
|
+
fields: {
|
|
96
|
+
kind: "mdm.Fields";
|
|
97
|
+
fields: {
|
|
98
|
+
[key: string]: Field;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
data: Record<string, string>;
|
|
102
|
+
displayData?: Record<string, string>;
|
|
103
|
+
"ui:label": string;
|
|
104
|
+
name: string;
|
|
105
|
+
startEntityOid: string;
|
|
106
|
+
startEntityBusinessId: string | null;
|
|
107
|
+
endEntityOid: string;
|
|
108
|
+
endEntityBusinessId: string | null;
|
|
109
|
+
};
|
|
110
|
+
export type EntitiesList<E = Entity> = {
|
|
111
|
+
kind: typeof MDM_ENTITIES_LIST;
|
|
112
|
+
items: E[];
|
|
113
|
+
paginationCount?: number | null;
|
|
114
|
+
};
|
|
115
|
+
export type MembersList<E = Entity> = {
|
|
116
|
+
entity: E;
|
|
117
|
+
extras: {
|
|
118
|
+
clientRisk?: ClientRisk;
|
|
119
|
+
accountRisk?: ClientRisk;
|
|
120
|
+
clientRiskUsed?: boolean;
|
|
121
|
+
};
|
|
122
|
+
}[];
|
|
123
|
+
export interface MdmGraphData {
|
|
124
|
+
kind: typeof ACM_DATA;
|
|
125
|
+
contextObjectOid: string | null;
|
|
126
|
+
entitiesList: EntitiesList;
|
|
127
|
+
relationsList: {
|
|
128
|
+
kind: "mdm.RelationshipList";
|
|
129
|
+
items: Relation[];
|
|
130
|
+
};
|
|
131
|
+
mdmScopeLock: {
|
|
132
|
+
lockedBy: string;
|
|
133
|
+
} | null;
|
|
134
|
+
inodeResource: Inode<"dms-core.File"> | null;
|
|
135
|
+
}
|
|
136
|
+
export type CaseList = {
|
|
137
|
+
kind: "acm.CaseList";
|
|
138
|
+
items: Case[];
|
|
139
|
+
};
|
|
140
|
+
export type EntityReport = {
|
|
141
|
+
reportName: string;
|
|
142
|
+
templateFilename: string;
|
|
143
|
+
language: string;
|
|
144
|
+
kind: null;
|
|
145
|
+
entityType: string;
|
|
146
|
+
};
|
|
147
|
+
export type EntityReportsList = {
|
|
148
|
+
contentType: "ReportConfigList";
|
|
149
|
+
kind: null;
|
|
150
|
+
items: EntityReport[];
|
|
151
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Entity, MdmValue } from "../types";
|
|
2
|
+
export declare function isVirtualEntity(entity: unknown): boolean;
|
|
3
|
+
export declare function getValueFormatted(formatter: (data: MdmValue, displayData: MdmValue, extra: Record<string, unknown>) => string, mapWithDisplayData: {
|
|
4
|
+
data: Entity["data"];
|
|
5
|
+
displayData: Entity["displayData"];
|
|
6
|
+
}, property: string): string;
|
|
7
|
+
export declare const can: Readonly<{
|
|
8
|
+
edit(entity: unknown): boolean;
|
|
9
|
+
delete(entity: unknown): boolean;
|
|
10
|
+
commentOnFields(entity: unknown): boolean;
|
|
11
|
+
editField(entityField: unknown): boolean;
|
|
12
|
+
generateReport(entity: unknown): boolean;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ModalProps } from "./types";
|
|
2
|
+
type ModalData = {
|
|
3
|
+
type: string;
|
|
4
|
+
props?: ModalProps;
|
|
5
|
+
};
|
|
6
|
+
export type ModalState = {
|
|
7
|
+
stack: ModalData[];
|
|
8
|
+
};
|
|
9
|
+
export declare const showModal: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[type: string, ModalProps?: Partial<{
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
disableEscapeKeyDown: boolean;
|
|
12
|
+
disableBackdropClick: boolean;
|
|
13
|
+
correlationId: string;
|
|
14
|
+
fullWidth: boolean;
|
|
15
|
+
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
16
|
+
blocker: boolean;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
}> | undefined], {
|
|
19
|
+
type: string;
|
|
20
|
+
props: Partial<{
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
disableEscapeKeyDown: boolean;
|
|
23
|
+
disableBackdropClick: boolean;
|
|
24
|
+
correlationId: string;
|
|
25
|
+
fullWidth: boolean;
|
|
26
|
+
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
27
|
+
blocker: boolean;
|
|
28
|
+
onClose: () => void;
|
|
29
|
+
}> | undefined;
|
|
30
|
+
}, "modal/showModal", never, never>, updateModalProps: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<Partial<{
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
disableEscapeKeyDown: boolean;
|
|
33
|
+
disableBackdropClick: boolean;
|
|
34
|
+
correlationId: string;
|
|
35
|
+
fullWidth: boolean;
|
|
36
|
+
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
37
|
+
blocker: boolean;
|
|
38
|
+
onClose: () => void;
|
|
39
|
+
}> | undefined, "modal/updateModalProps">, closeModal: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
40
|
+
type?: string;
|
|
41
|
+
closeAllModals?: boolean;
|
|
42
|
+
correlationId?: string;
|
|
43
|
+
}, "modal/closeModal">;
|
|
44
|
+
declare const _default: import("redux").Reducer<ModalState>;
|
|
45
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DialogProps } from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export type ModalType = {
|
|
4
|
+
type: string;
|
|
5
|
+
component: React.ComponentType<ModalComponentProps>;
|
|
6
|
+
};
|
|
7
|
+
export type ModalComponentProps<T = unknown> = {
|
|
8
|
+
modalProps: ModalProps & T;
|
|
9
|
+
closeModal: () => void;
|
|
10
|
+
closeCurrentModal: () => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Extra props (aka the modalProps property) for the modal component
|
|
14
|
+
*/
|
|
15
|
+
export type ModalProps = Partial<{
|
|
16
|
+
disableEscapeKeyDown: boolean;
|
|
17
|
+
disableBackdropClick: boolean;
|
|
18
|
+
correlationId: string;
|
|
19
|
+
fullWidth: boolean;
|
|
20
|
+
maxWidth: DialogProps["maxWidth"];
|
|
21
|
+
blocker: boolean;
|
|
22
|
+
onClose: () => void;
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as components from "./components";
|
|
2
|
+
import PluginRegistry from "./pluginRegistry";
|
|
3
|
+
type PluginRegistryContextType = {
|
|
4
|
+
pluginRegistry: Partial<PluginRegistry> & Pick<PluginRegistry, "TYPES" | "get" | "getAll">;
|
|
5
|
+
components: typeof components;
|
|
6
|
+
};
|
|
7
|
+
declare const PluginRegistryContext: import("react").Context<PluginRegistryContextType>;
|
|
8
|
+
export default PluginRegistryContext;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QuestionnaireForm } from "../../Tasks/types";
|
|
2
|
+
export type QuestionnairePluginProps = {
|
|
3
|
+
contextObjectOid?: string;
|
|
4
|
+
definition: QuestionnaireForm;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
errors?: any;
|
|
7
|
+
sectionName: string;
|
|
8
|
+
taskOid: string;
|
|
9
|
+
sectionLabel?: string;
|
|
10
|
+
};
|
|
11
|
+
export default function QuestionnairePart(props: QuestionnairePluginProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const TYPES: Readonly<{
|
|
2
|
+
QUESTIONNAIRE_PART: "QUESTIONNAIRE_PART";
|
|
3
|
+
FORM_WIDGET: "FORM_WIDGET";
|
|
4
|
+
FORM_FIELD: "FORM_FIELD";
|
|
5
|
+
FORM_ACTION: "FORM_ACTION";
|
|
6
|
+
FORM_OPERATOR: "FORM_OPERATOR";
|
|
7
|
+
FORMATTER: "FORMATTER";
|
|
8
|
+
RENDERER: "RENDERER";
|
|
9
|
+
INSPECTOR: "INSPECTOR";
|
|
10
|
+
UNSAFE_SAGA: "UNSAFE_SAGA";
|
|
11
|
+
CONTEXT_MENU_ACTION: "CONTEXT_MENU_ACTION";
|
|
12
|
+
EXTERNAL_MODULE: "EXTERNAL_MODULE";
|
|
13
|
+
PROVIDER: "PROVIDER";
|
|
14
|
+
COMPONENT: "COMPONENT";
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Id, ToastContent, ToastOptions, UpdateOptions } from "react-toastify";
|
|
2
|
+
declare const useSystemNotification: () => {
|
|
3
|
+
notify: (message: ToastContent, options: ToastOptions) => Id;
|
|
4
|
+
updateNotification: (tastId: Id, options: UpdateOptions) => void;
|
|
5
|
+
};
|
|
6
|
+
export default useSystemNotification;
|