@imtf/dms-core 6.5.7-natwest.0 → 7.4.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -0
- package/apps/folder-manager/routes/InodeCollection/hooks/useRemoveInodesFromUrl.d.ts +4 -0
- package/core/components/ActionMenu/Menu.d.ts +19 -0
- package/core/components/ActionMenu/Trigger.d.ts +8 -0
- package/core/components/ActionMenu/index.d.ts +1 -0
- package/core/components/ActionMenu/styles.d.ts +2 -0
- package/core/components/Chip/Chip.d.ts +8 -0
- package/core/components/CloseModalButton/CloseModalButton.d.ts +14 -0
- package/core/components/CloseModalButton/index.d.ts +1 -0
- package/core/components/DatePicker/DatePicker.d.ts +7 -0
- package/core/components/DatePicker/index.d.ts +1 -0
- package/core/components/Error/index.d.ts +7 -0
- package/core/components/FormattedMessage/index.d.ts +11 -0
- package/core/components/FormattedNumberTextfield/FormattedNumberTextfield.d.ts +3 -0
- package/core/components/FormattedNumberTextfield/index.d.ts +1 -0
- package/core/components/Inline/index.d.ts +8 -0
- package/core/components/ItemIcon/TaskIcon.d.ts +5 -0
- package/core/components/ItemIcon/index.d.ts +19 -0
- package/core/components/NotFound/index.d.ts +4 -0
- package/core/components/Select/Select.d.ts +20 -0
- package/core/components/Select/index.d.ts +1 -0
- package/core/components/Tooltip/TooltipError.d.ts +4 -0
- package/core/components/dms-ui/Composer.d.ts +57 -0
- package/core/components/dms-ui/NewDatasourceAutocomplete.d.ts +18 -0
- package/core/components/dms-ui/constants.d.ts +1 -0
- package/core/components/dms-ui/default/DatasourceAutocomplete.d.ts +18 -0
- package/core/components/dms-ui/default/DatePicker.d.ts +17 -0
- package/core/components/dms-ui/default/Group.d.ts +19 -0
- package/core/components/dms-ui/default/NestedGroup.d.ts +7 -0
- package/core/components/dms-ui/default/NumberFormattedTexfield.d.ts +17 -0
- package/core/components/dms-ui/default/NumberTextfield.d.ts +3 -0
- package/core/components/dms-ui/default/RadioButton.d.ts +16 -0
- package/core/components/dms-ui/default/Select.d.ts +20 -0
- package/core/components/dms-ui/default/Textfield.d.ts +17 -0
- package/core/components/dms-ui/default/TwoDigitNumberFormattedTextfield.d.ts +3 -0
- package/core/components/dms-ui/default/index.d.ts +10 -0
- package/core/components/dms-ui/facet/DatasourceAutocomplete.d.ts +13 -0
- package/core/components/dms-ui/facet/DateRangeSearcher.d.ts +18 -0
- package/core/components/dms-ui/facet/Facet.d.ts +11 -0
- package/core/components/dms-ui/facet/NumericRangePicker.d.ts +20 -0
- package/core/components/dms-ui/facet/Select.d.ts +13 -0
- package/core/components/dms-ui/facet/Textfield.d.ts +11 -0
- package/core/components/dms-ui/facet/TypePicker.d.ts +12 -0
- package/core/components/dms-ui/facet/index.d.ts +7 -0
- package/core/components/dms-ui/facet/styles.d.ts +9 -0
- package/core/components/dms-ui/messages.d.ts +39 -0
- package/core/components/dms-ui/types.d.ts +9 -1
- package/core/components/dms-ui/utils/getComponent.d.ts +20 -0
- package/core/components/dms-ui/utils/removeLabelFromValues.d.ts +1 -0
- package/core/components/dms-ui/utils/type-guards.d.ts +4 -0
- package/core/components/dms-ui/utils/utils.d.ts +3 -0
- package/core/constants/apps.d.ts +0 -10
- package/core/constants/dragTypes.d.ts +2 -0
- package/core/containers/DataGrid/constants.d.ts +28 -0
- package/core/containers/DataGrid/types.d.ts +50 -0
- package/core/containers/DataGrid/utils/crossTabSync.d.ts +13 -0
- package/core/containers/DataGrid/utils/handleWidth.d.ts +18 -0
- package/core/containers/EntityDocuments/EntityDocumentsComponent.d.ts +30 -0
- package/core/containers/EntityDocuments/components/Accordion.d.ts +12 -0
- package/core/containers/EntityDocuments/components/Document.d.ts +11 -0
- package/core/containers/EntityDocuments/components/DocumentLabel.d.ts +9 -0
- package/core/containers/EntityDocuments/components/DocumentList.d.ts +19 -0
- package/core/containers/EntityDocuments/components/DocumentListTitle.d.ts +9 -0
- package/core/containers/EntityDocuments/constants.d.ts +1 -0
- package/core/containers/EntityDocuments/types.d.ts +7 -0
- package/core/containers/NotificationCenter/slice.d.ts +1 -1
- package/core/containers/PDFComposer/actions.d.ts +2 -2
- package/core/containers/PDFTronViewer/components/LightViewer/config.d.ts +0 -4
- package/core/containers/PDFTronViewer/messages.d.ts +8 -0
- package/core/containers/SearchDataGrid/types.d.ts +11 -0
- package/core/hooks/useCollator.d.ts +2 -0
- package/core/providers/Actions/types.d.ts +1 -7
- package/core/providers/App/actions.d.ts +12 -27
- package/core/providers/App/constants.d.ts +1 -4
- package/core/providers/App/hooks/useApplicationSettings.d.ts +19 -3
- package/core/providers/App/hooks/useDownload.d.ts +29 -0
- package/core/providers/App/hooks/useSettings.d.ts +5 -9
- package/core/providers/App/hooks/useTriggerItems.d.ts +13 -0
- package/core/providers/App/hooks/useUserSetting.d.ts +9 -1
- package/core/providers/App/hooks/useUserStorage.d.ts +2 -2
- package/core/providers/App/messages.d.ts +12 -0
- package/core/providers/App/reducer.d.ts +1 -1
- package/core/providers/App/service.d.ts +48 -17
- package/core/providers/App/types.d.ts +12 -2
- package/core/providers/App/utils/convertOldUserSettings.d.ts +1 -1
- package/core/providers/App/utils/convertTreeviewFields.d.ts +89 -0
- package/core/providers/App/utils/sortListByWeightAndName.d.ts +8 -0
- package/core/providers/Authentication/hooks/useAuth.d.ts +1 -1
- package/core/providers/Authentication/service.d.ts +11 -3
- package/core/providers/Authentication/types.d.ts +6 -8
- package/core/providers/Cases/actions.d.ts +21 -3
- package/core/providers/Cases/service.d.ts +70 -33
- package/core/providers/Cases/types.d.ts +3 -0
- package/core/providers/Cases/utils/common.d.ts +4 -0
- package/core/providers/Cases/utils/mutateDocumentGuidance.d.ts +17 -0
- package/core/providers/Ccm/constants.d.ts +6 -0
- package/core/providers/Ccm/types.d.ts +2 -1
- package/core/providers/Ccm/utils/isAccount.d.ts +1 -1
- package/core/providers/Ccm/utils/isClient.d.ts +1 -1
- package/core/providers/Ccm/utils/isClientGroup.d.ts +1 -1
- package/core/providers/Ccm/utils/isHouseholdEntity.d.ts +1 -1
- package/core/providers/DataGrid/Context.d.ts +51 -0
- package/core/providers/Definitions/hooks/useTaskDefinition.d.ts +1 -0
- package/core/providers/Definitions/hooks/useTaskDefinitions.d.ts +4 -0
- package/core/providers/Definitions/service.d.ts +48 -19
- package/core/providers/Definitions/types.d.ts +26 -2
- package/core/providers/Definitions/utils/typesToTypeRefs.d.ts +5 -0
- package/core/providers/DropZone/Context.d.ts +12 -0
- package/core/providers/Inodes/actions.d.ts +26 -430
- package/core/providers/Inodes/constants.d.ts +8 -46
- package/core/providers/Inodes/hooks/useInodeByOid.d.ts +5 -0
- package/core/providers/Inodes/hooks/useInodeTypeAssignment.d.ts +4 -0
- package/core/providers/Inodes/hooks/useInodesByOids.d.ts +7 -0
- package/core/providers/Inodes/hooks/usePropertiesType.d.ts +14 -0
- package/core/providers/Inodes/hooks/usePropertyComponents.d.ts +11 -0
- package/core/providers/Inodes/hooks/useRestore.d.ts +22 -0
- package/core/providers/Inodes/hooks/useSortedTypes.d.ts +5 -0
- package/core/providers/Inodes/hooks/useTypes.d.ts +10 -0
- package/core/providers/Inodes/hooks/useUpdateInodes.d.ts +35 -0
- package/core/providers/Inodes/messages.d.ts +25 -1
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/AccordionItem.d.ts +31 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/BarcodeLoading.d.ts +5 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/ModalContent.d.ts +35 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/index.d.ts +12 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/messages.d.ts +63 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/types.d.ts +43 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/addInodeOidToName.d.ts +8 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/convertToUIPropertiesGroup.d.ts +3 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/createBarcodeProcessingFormData.d.ts +5 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/findMostUsedValue.d.ts +18 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/getDefaultValuesFromProperties.d.ts +7 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/replaceComponentsWithConfig.d.ts +10 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/resolveProperties.d.ts +8 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/resolveStatusIconAndColor.d.ts +5 -0
- package/core/providers/Inodes/modals/AssignTypeModal.d.ts +9 -0
- package/core/providers/Inodes/service.d.ts +138 -66
- package/core/providers/Inodes/type-guards.d.ts +2 -0
- package/core/providers/Inodes/types.d.ts +27 -12
- package/core/providers/Inodes/utils/can.d.ts +1 -0
- package/core/providers/Inodes/utils/getAssignableTypesFromInode.d.ts +2 -0
- package/core/providers/Inodes/utils/getBulkUrl.d.ts +1 -0
- package/core/providers/Inodes/utils/getUrl.d.ts +2 -1
- package/core/providers/Inodes/utils/is.d.ts +2 -3
- package/core/providers/Inodes/utils/isInodeType.d.ts +3 -0
- package/core/providers/Inodes/utils/isInodeTypeRef.d.ts +3 -0
- package/core/providers/Inodes/utils/mutateInodes.d.ts +28 -0
- package/core/providers/Inodes/utils/replacePropertiesWithConfig.d.ts +10 -0
- package/core/providers/Inodes/utils/resolveInodeTypes.d.ts +185 -0
- package/core/providers/Inodes/utils/validatePropertiesForm.d.ts +2 -0
- package/core/providers/Inspectors/Context.d.ts +5 -0
- package/core/providers/Inspectors/types.d.ts +5 -5
- package/core/providers/Localization/Context.d.ts +7 -0
- package/core/providers/Localization/hooks/useLocale.d.ts +3 -0
- package/core/providers/MdmGraph/actions.d.ts +13 -1
- package/core/providers/MdmGraph/constants.d.ts +10 -4
- package/core/providers/MdmGraph/service.d.ts +56 -31
- package/core/providers/MdmGraph/types.d.ts +12 -0
- package/core/providers/Modal/hooks/useModal.d.ts +45 -0
- package/core/providers/Modal/slice.d.ts +9 -0
- package/core/providers/Modal/types.d.ts +3 -0
- package/core/providers/Plugins/ComponentPluginContext.d.ts +14 -0
- package/core/providers/Plugins/hooks/app/useSystemNotification.d.ts +8 -3
- package/core/providers/Plugins/hooks/inodes/useActions.d.ts +10 -2
- package/core/providers/Plugins/hooks/tasks/useActions.d.ts +2 -2
- package/core/providers/Plugins/hooks/tasks/useTaskProcessing.d.ts +8 -0
- package/core/providers/Plugins/pluginRegistry.d.ts +80 -53
- package/core/providers/Plugins/types/componentPlugins.d.ts +18 -8
- package/core/providers/Plugins/withComponentPlugin.d.ts +27 -0
- package/core/providers/Search/reducer.d.ts +7 -4
- package/core/providers/Search/selectors.d.ts +48 -262
- package/core/providers/Search/service.d.ts +10 -4
- package/core/providers/Search/types.d.ts +11 -28
- package/core/providers/Search/utils/createQuery.d.ts +5 -5
- package/core/providers/Tasks/Context.d.ts +8 -5
- package/core/providers/Tasks/constants.d.ts +2 -1
- package/core/providers/Tasks/hooks/useEntityDelete.d.ts +1 -1
- package/core/providers/Tasks/hooks/useEntityMutate.d.ts +1 -1
- package/core/providers/Tasks/hooks/useTaskData.d.ts +2 -2
- package/core/providers/Tasks/service.d.ts +45 -22
- package/core/providers/Tasks/types.d.ts +8 -1
- package/core/providers/Tasks/utils/isDocumentTask.d.ts +2 -0
- package/core/providers/Tasks/utils/mutateTaskData.d.ts +6 -0
- package/core/providers/Uploader/Context.d.ts +9 -9
- package/core/providers/User/hooks/useAgencies.d.ts +15 -0
- package/core/providers/User/hooks/useIsAgencyEnabled.d.ts +5 -0
- package/core/providers/User/saga.d.ts +1 -2
- package/core/providers/User/service.d.ts +18 -0
- package/core/providers/User/types.d.ts +21 -0
- package/core/services/index.d.ts +6 -6
- package/core/services/localStorage.d.ts +1 -0
- package/core/theme/theme.base.d.ts +312 -0
- package/core/theme/theme.lightMode.d.ts +70 -0
- package/core/utils/action.d.ts +2 -2
- package/core/utils/common.d.ts +15 -0
- package/core/utils/date/getUTCDateInCurrentTimezone.d.ts +11 -0
- package/core/utils/hasValidKind.d.ts +2 -0
- package/core/utils/string.d.ts +2 -1
- package/package.json +1 -1
- package/reducers.d.ts +2 -3
- package/store.d.ts +27 -28
- package/vendor/@imtf/react-components/components/ActivityDetail/ActivityDetail.d.ts +2 -30
- package/vendor/@imtf/react-components/components/CounterStackedBar/CounterStackedBar.d.ts +1 -27
- package/vendor/@imtf/react-components/components/Error/Error.d.ts +2 -55
- package/vendor/@imtf/react-components/components/InfiniteScroll/InfiniteScroll.d.ts +0 -4
- package/vendor/@imtf/react-components/components/Line/Line.d.ts +1 -38
- package/vendor/@imtf/react-components/components/Loader/Loader.d.ts +1 -22
- package/vendor/@imtf/react-components/components/Menu/Menu.d.ts +1 -9
- package/vendor/@imtf/react-components/components/NoContent/NoContent.d.ts +1 -10
- package/vendor/@imtf/react-components/components/Notification/Notification.d.ts +2 -55
- package/vendor/@imtf/react-components/components/ProgressCircleBar/ProgressCircleBar.d.ts +2 -43
- package/vendor/@imtf/react-components/components/Scroller/Scroller.d.ts +1 -19
- package/vendor/@imtf/react-components/components/SearchBar/SearchBar.d.ts +2 -57
- package/vendor/@imtf/react-components/components/Timeline/Timeline.d.ts +1 -14
- package/vendor/@imtf/react-components/components/Timeline/TimelineItem.d.ts +2 -46
- package/vendor/@imtf/react-components/components/ViewMore/ViewMore.d.ts +1 -24
- package/vendor/@imtf/react-components/components/ViewMoreCard/ViewMoreCard.d.ts +2 -74
- package/vendor/@imtf/react-components/components/ViewMoreCard/utils.d.ts +2 -2
- package/vendor/@imtf/react-components/components/index.d.ts +0 -14
- package/vendor/@imtf/react-components/index.d.ts +0 -1
- package/vendor/@imtf/react-components/utils/common.d.ts +1 -4
- package/vendor/@imtf/react-components/utils/constants.d.ts +0 -21
- package/core/components/JsonForm/widgets/widgetHOC.d.ts +0 -29
- package/core/components/TreeView/types.d.ts +0 -17
- package/core/components/TreeViewCell/constants.d.ts +0 -25
- package/core/containers/DropZone/selectors.d.ts +0 -125
- package/core/containers/TreeView/actions.d.ts +0 -197
- package/core/containers/TreeView/constants.d.ts +0 -36
- package/core/containers/TreeView/types.d.ts +0 -46
- package/core/providers/App/utils/isSupportedItem.d.ts +0 -2
- package/core/providers/Cases/reducer.d.ts +0 -18
- package/core/providers/Cases/selectors.d.ts +0 -64
- package/core/providers/Inodes/selectors.d.ts +0 -55
- package/core/providers/MdmGraph/utils/misc.d.ts +0 -13
- package/core/providers/Plugins/hooks/inodes/useInodesByOids.d.ts +0 -6
- package/core/providers/SystemNotification/constants.d.ts +0 -3
- package/core/providers/SystemNotification/slice.d.ts +0 -9
- package/core/providers/SystemNotification/useSystemNotification.d.ts +0 -6
- package/core/utils/htmlElements.d.ts +0 -1
- package/core/utils/requestMiddleware.d.ts +0 -1
- package/vendor/@imtf/react-components/components/BasicNotification/BasicNotification.d.ts +0 -52
- package/vendor/@imtf/react-components/components/BasicNotification/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/BasicNotification/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Breadcrumb/Breadcrumb.d.ts +0 -36
- package/vendor/@imtf/react-components/components/Breadcrumb/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Breadcrumb/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Chip/Chip.d.ts +0 -41
- package/vendor/@imtf/react-components/components/Chip/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Chip/messages.d.ts +0 -7
- package/vendor/@imtf/react-components/components/Chip/utils.d.ts +0 -14
- package/vendor/@imtf/react-components/components/DebounceField/DebounceField.d.ts +0 -35
- package/vendor/@imtf/react-components/components/DebounceField/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/DebounceField/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/DetailList/DetailList.d.ts +0 -24
- package/vendor/@imtf/react-components/components/DetailList/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/DetailList/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/DetailTree/DetailTree.d.ts +0 -30
- package/vendor/@imtf/react-components/components/DetailTree/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/DetailTree/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/ErrorCatcher/ErrorCatcher.d.ts +0 -40
- package/vendor/@imtf/react-components/components/ErrorCatcher/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/ErrorCatcher/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/InfoCard/InfoCard.d.ts +0 -64
- package/vendor/@imtf/react-components/components/InfoCard/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Inline/Inline.d.ts +0 -19
- package/vendor/@imtf/react-components/components/Inline/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Inline/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Internal/FormattedMessage.d.ts +0 -11
- package/vendor/@imtf/react-components/components/MenuSelect/MenuSelect.d.ts +0 -43
- package/vendor/@imtf/react-components/components/MenuSelect/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/MenuSelect/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Navipath/Navipath.d.ts +0 -52
- package/vendor/@imtf/react-components/components/Navipath/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Navipath/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/RippleEffect/RippleEffect.d.ts +0 -33
- package/vendor/@imtf/react-components/components/RippleEffect/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/RippleEffect/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Stats/Stats.d.ts +0 -39
- package/vendor/@imtf/react-components/components/Stats/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Stats/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/TitleContent/TitleContent.d.ts +0 -25
- package/vendor/@imtf/react-components/components/TitleContent/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/TitleContent/index.d.ts +0 -1
- package/vendor/@imtf/react-components/hooks/index.d.ts +0 -1
- package/vendor/@imtf/react-components/hooks/useResponsiveBreakpoints.d.ts +0 -13
- package/vendor/@imtf/react-components/utils/resizeObserver.d.ts +0 -1
- /package/{vendor/@imtf/react-components → core}/components/Chip/index.d.ts +0 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { Inode, InodeChangeStatus, InodeType, InodeTypeRef, TemplateRef } from "../types";
|
|
2
|
+
/** Documentation : https://imtf.atlassian.net/wiki/spaces/FM/pages/530186290 */
|
|
3
|
+
/**
|
|
4
|
+
* Identify the proper RESOLVE_INODE_TYPES_STATUS to use
|
|
5
|
+
*/
|
|
6
|
+
export declare const identifyStatus: (inodes: Inode[], { types, templates, forceType, forceTemplate, enablePropertiesUpload, }: {
|
|
7
|
+
types: InodeType[] | InodeTypeRef[];
|
|
8
|
+
templates: TemplateRef[];
|
|
9
|
+
forceType: boolean;
|
|
10
|
+
forceTemplate: boolean;
|
|
11
|
+
enablePropertiesUpload?: boolean;
|
|
12
|
+
}) => InodeChangeStatus;
|
|
13
|
+
/**
|
|
14
|
+
* Resolve the types of inodes when uploading, moving or copying files into a targetted inode.
|
|
15
|
+
* @param inodes The inodes to resolve the types for.
|
|
16
|
+
* @param targetInode The targetted folder inode.
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
declare const resolveInodeTypes: (inodes: Inode[], { types, templates, forceType, forceTemplate, enablePropertiesUpload, }: {
|
|
20
|
+
types: InodeType[] | InodeTypeRef[];
|
|
21
|
+
templates: TemplateRef[];
|
|
22
|
+
forceType: boolean;
|
|
23
|
+
forceTemplate: boolean;
|
|
24
|
+
enablePropertiesUpload?: boolean;
|
|
25
|
+
}, files?: File[]) => {
|
|
26
|
+
status: InodeChangeStatus;
|
|
27
|
+
resolvedInodes: Inode[] | {
|
|
28
|
+
type: null;
|
|
29
|
+
allowedTypes: InodeTypeRef[];
|
|
30
|
+
ancestors?: {
|
|
31
|
+
kind: typeof import("../../../constants/kinds").INODE_REF;
|
|
32
|
+
name: Inode["name"];
|
|
33
|
+
label: Inode["label"];
|
|
34
|
+
oid: Inode["oid"];
|
|
35
|
+
}[];
|
|
36
|
+
capabilities?: {
|
|
37
|
+
kind: "dms.core.Capabilities";
|
|
38
|
+
canAddFolderOfTypes: InodeType["name"][];
|
|
39
|
+
canViewPanels: string[];
|
|
40
|
+
canAddFile: boolean;
|
|
41
|
+
canSendLinkByEmail: boolean;
|
|
42
|
+
canAddFileOfTypes: InodeType["name"][];
|
|
43
|
+
canAssignTypes: InodeType["name"][];
|
|
44
|
+
canCreateCase: boolean;
|
|
45
|
+
canAddFileWithoutBinary: boolean;
|
|
46
|
+
canAddFileWithoutBinaryOfTypes: InodeType["name"][];
|
|
47
|
+
};
|
|
48
|
+
childrenAllowedTemplates?: TemplateRef[];
|
|
49
|
+
childrenAllowedTypes?: InodeTypeRef[];
|
|
50
|
+
creationDate: string;
|
|
51
|
+
deleted?: boolean;
|
|
52
|
+
deleteInfo?: {
|
|
53
|
+
kind: "dms-core.DeleteInfo";
|
|
54
|
+
timestamp: string;
|
|
55
|
+
user: import("../../User/types").User;
|
|
56
|
+
};
|
|
57
|
+
shared?: boolean;
|
|
58
|
+
downloadId: string;
|
|
59
|
+
favorite?: boolean;
|
|
60
|
+
forceChildrenWithTemplate?: boolean;
|
|
61
|
+
forceChildrenWithType?: boolean;
|
|
62
|
+
forceWithType?: boolean;
|
|
63
|
+
kind: "dms-core.Folder" | "dms-core.File" | "dms-core.Template" | "dms-core.Dossier" | "dms-core.DeniedInode" | "DeniedInodeResource";
|
|
64
|
+
commentsCount?: number;
|
|
65
|
+
label: string;
|
|
66
|
+
mimeType: keyof typeof import("../../../containers/PDFTronViewer/constants").SUPPORTED_MIME_TYPES | string;
|
|
67
|
+
modificationDate: string;
|
|
68
|
+
name: string;
|
|
69
|
+
oid: string;
|
|
70
|
+
orderingWeight: number;
|
|
71
|
+
parentOid?: string;
|
|
72
|
+
watched?: boolean;
|
|
73
|
+
template?: TemplateRef;
|
|
74
|
+
permissions: {
|
|
75
|
+
[key: string]: boolean | undefined;
|
|
76
|
+
} | null;
|
|
77
|
+
fields: {
|
|
78
|
+
[key: string]: string;
|
|
79
|
+
};
|
|
80
|
+
caseRefs?: {
|
|
81
|
+
items: import("../../Cases/types").CaseRef[];
|
|
82
|
+
};
|
|
83
|
+
mdmEntityRefs?: {
|
|
84
|
+
kind: "dms-core.MdmEntityRefList";
|
|
85
|
+
items: Array<{
|
|
86
|
+
kind: "dms-core.MdmEntityRef";
|
|
87
|
+
oid: string;
|
|
88
|
+
uri: string;
|
|
89
|
+
}>;
|
|
90
|
+
};
|
|
91
|
+
referredUnfile?: {
|
|
92
|
+
referrers: import("../types").InodeRef[];
|
|
93
|
+
};
|
|
94
|
+
tags?: import("../types").TagList;
|
|
95
|
+
properties: {
|
|
96
|
+
kind: typeof import("../../../constants/kinds").PROPERTY_LIST;
|
|
97
|
+
items: import("../types").Property[];
|
|
98
|
+
};
|
|
99
|
+
size: number;
|
|
100
|
+
stateMachines?: import("../types").StateMachine[];
|
|
101
|
+
uri: string;
|
|
102
|
+
version: number;
|
|
103
|
+
transientFileId?: string;
|
|
104
|
+
storageURI: string;
|
|
105
|
+
}[] | {
|
|
106
|
+
type: InodeType | InodeTypeRef;
|
|
107
|
+
allowedTypes: InodeTypeRef[];
|
|
108
|
+
ancestors?: {
|
|
109
|
+
kind: typeof import("../../../constants/kinds").INODE_REF;
|
|
110
|
+
name: Inode["name"];
|
|
111
|
+
label: Inode["label"];
|
|
112
|
+
oid: Inode["oid"];
|
|
113
|
+
}[];
|
|
114
|
+
capabilities?: {
|
|
115
|
+
kind: "dms.core.Capabilities";
|
|
116
|
+
canAddFolderOfTypes: InodeType["name"][];
|
|
117
|
+
canViewPanels: string[];
|
|
118
|
+
canAddFile: boolean;
|
|
119
|
+
canSendLinkByEmail: boolean;
|
|
120
|
+
canAddFileOfTypes: InodeType["name"][];
|
|
121
|
+
canAssignTypes: InodeType["name"][];
|
|
122
|
+
canCreateCase: boolean;
|
|
123
|
+
canAddFileWithoutBinary: boolean;
|
|
124
|
+
canAddFileWithoutBinaryOfTypes: InodeType["name"][];
|
|
125
|
+
};
|
|
126
|
+
childrenAllowedTemplates?: TemplateRef[];
|
|
127
|
+
childrenAllowedTypes?: InodeTypeRef[];
|
|
128
|
+
creationDate: string;
|
|
129
|
+
deleted?: boolean;
|
|
130
|
+
deleteInfo?: {
|
|
131
|
+
kind: "dms-core.DeleteInfo";
|
|
132
|
+
timestamp: string;
|
|
133
|
+
user: import("../../User/types").User;
|
|
134
|
+
};
|
|
135
|
+
shared?: boolean;
|
|
136
|
+
downloadId: string;
|
|
137
|
+
favorite?: boolean;
|
|
138
|
+
forceChildrenWithTemplate?: boolean;
|
|
139
|
+
forceChildrenWithType?: boolean;
|
|
140
|
+
forceWithType?: boolean;
|
|
141
|
+
kind: "dms-core.Folder" | "dms-core.File" | "dms-core.Template" | "dms-core.Dossier" | "dms-core.DeniedInode" | "DeniedInodeResource";
|
|
142
|
+
commentsCount?: number;
|
|
143
|
+
label: string;
|
|
144
|
+
mimeType: keyof typeof import("../../../containers/PDFTronViewer/constants").SUPPORTED_MIME_TYPES | string;
|
|
145
|
+
modificationDate: string;
|
|
146
|
+
name: string;
|
|
147
|
+
oid: string;
|
|
148
|
+
orderingWeight: number;
|
|
149
|
+
parentOid?: string;
|
|
150
|
+
watched?: boolean;
|
|
151
|
+
template?: TemplateRef;
|
|
152
|
+
permissions: {
|
|
153
|
+
[key: string]: boolean | undefined;
|
|
154
|
+
} | null;
|
|
155
|
+
fields: {
|
|
156
|
+
[key: string]: string;
|
|
157
|
+
};
|
|
158
|
+
caseRefs?: {
|
|
159
|
+
items: import("../../Cases/types").CaseRef[];
|
|
160
|
+
};
|
|
161
|
+
mdmEntityRefs?: {
|
|
162
|
+
kind: "dms-core.MdmEntityRefList";
|
|
163
|
+
items: Array<{
|
|
164
|
+
kind: "dms-core.MdmEntityRef";
|
|
165
|
+
oid: string;
|
|
166
|
+
uri: string;
|
|
167
|
+
}>;
|
|
168
|
+
};
|
|
169
|
+
referredUnfile?: {
|
|
170
|
+
referrers: import("../types").InodeRef[];
|
|
171
|
+
};
|
|
172
|
+
tags?: import("../types").TagList;
|
|
173
|
+
properties: {
|
|
174
|
+
kind: typeof import("../../../constants/kinds").PROPERTY_LIST;
|
|
175
|
+
items: import("../types").Property[];
|
|
176
|
+
};
|
|
177
|
+
size: number;
|
|
178
|
+
stateMachines?: import("../types").StateMachine[];
|
|
179
|
+
uri: string;
|
|
180
|
+
version: number;
|
|
181
|
+
transientFileId?: string;
|
|
182
|
+
storageURI: string;
|
|
183
|
+
}[] | null | undefined;
|
|
184
|
+
};
|
|
185
|
+
export default resolveInodeTypes;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Row } from "../../../core/containers/DataGrid/types";
|
|
1
2
|
import { SupportedItem } from "../App/types";
|
|
2
3
|
import { SidePanelInspectorDefinition } from "../Definitions/types";
|
|
3
4
|
import { InspectorModule, InspectorModuleDefinition, InspectorProps } from "./types";
|
|
@@ -6,6 +7,10 @@ type InspectorContextType = {
|
|
|
6
7
|
registerInspectors: (inspectors: InspectorModuleDefinition[]) => void;
|
|
7
8
|
activeTabName: string | undefined;
|
|
8
9
|
setActiveTabName: (name: string | undefined) => void;
|
|
10
|
+
items: SupportedItem[] | undefined;
|
|
11
|
+
setItems: (items: SupportedItem[] | undefined) => void;
|
|
12
|
+
rows: Row[] | undefined;
|
|
13
|
+
setRows: (items: Row[] | undefined) => void;
|
|
9
14
|
};
|
|
10
15
|
declare const InspectorsContext: import("react").Context<InspectorContextType>;
|
|
11
16
|
export default InspectorsContext;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ComponentType } from "react";
|
|
1
|
+
import { ComponentType, ReactElement } from "react";
|
|
2
2
|
import { MessageDescriptor } from "react-intl";
|
|
3
3
|
import inspectors from "@/core/constants/inspectors.json";
|
|
4
|
+
import { Row } from "../../../core/containers/DataGrid/types";
|
|
4
5
|
import { SupportedItem } from "../App/types";
|
|
5
6
|
import { SidePanelInspectorDefinition } from "../Definitions/types";
|
|
6
|
-
import { SearchResultRow } from "../Search/types";
|
|
7
7
|
type ValueOf<T> = T[keyof T];
|
|
8
8
|
type NestedValues<T> = ValueOf<{
|
|
9
9
|
[K in keyof T]: ValueOf<T[K]>;
|
|
@@ -13,7 +13,7 @@ export interface InspectorProps<Item = SupportedItem> {
|
|
|
13
13
|
loading?: boolean;
|
|
14
14
|
sticky: boolean;
|
|
15
15
|
item: Item;
|
|
16
|
-
rawItems?:
|
|
16
|
+
rawItems?: Row[];
|
|
17
17
|
module?: InspectorModule;
|
|
18
18
|
definition: SidePanelInspectorDefinition;
|
|
19
19
|
}
|
|
@@ -26,7 +26,7 @@ export type InspectorModuleDefinition<T = SupportedItem> = {
|
|
|
26
26
|
renderActions?: (item: T, params: {
|
|
27
27
|
expanded: boolean;
|
|
28
28
|
definition: SidePanelInspectorDefinition;
|
|
29
|
-
}) =>
|
|
29
|
+
}) => ReactElement;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* Returned by the getModules function of the InspectorsContext
|
|
@@ -35,6 +35,6 @@ export type InspectorModule = Omit<InspectorModuleDefinition, "condition" | "ren
|
|
|
35
35
|
condition: boolean | Promise<boolean>;
|
|
36
36
|
key: string;
|
|
37
37
|
definition: SidePanelInspectorDefinition;
|
|
38
|
-
renderActions?: (expanded: boolean) =>
|
|
38
|
+
renderActions?: (expanded: boolean) => ReactElement;
|
|
39
39
|
};
|
|
40
40
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Locale } from "./types";
|
|
2
|
+
export type LocalizationContextValue = {
|
|
3
|
+
locale: Locale;
|
|
4
|
+
setLocale: (locale: Locale) => Promise<void>;
|
|
5
|
+
};
|
|
6
|
+
declare const LocalizationContext: import("react").Context<LocalizationContextValue>;
|
|
7
|
+
export default LocalizationContext;
|
|
@@ -8,7 +8,10 @@ export function editEntityModal(taskOid: any, props: any): {
|
|
|
8
8
|
correlationId: string;
|
|
9
9
|
fullWidth: boolean;
|
|
10
10
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
11
|
+
minHeight: number | string;
|
|
11
12
|
blocker: boolean;
|
|
13
|
+
onConfirm: (...args: any[]) => void;
|
|
14
|
+
onCancel: () => void;
|
|
12
15
|
onClose: () => void;
|
|
13
16
|
}> | undefined;
|
|
14
17
|
};
|
|
@@ -95,7 +98,7 @@ export function attachFilesError(error: any, payload: any): {
|
|
|
95
98
|
payload: any;
|
|
96
99
|
error: any;
|
|
97
100
|
};
|
|
98
|
-
export function showFieldHistory(fieldHistory: any, fieldLabel: any, entity: any, updateHighlights: any): {
|
|
101
|
+
export function showFieldHistory(fieldHistory: any, fieldLabel: any, entity: any, updateHighlights: any, uiWidget: any): {
|
|
99
102
|
payload: {
|
|
100
103
|
type: string;
|
|
101
104
|
props: Partial<{
|
|
@@ -105,7 +108,10 @@ export function showFieldHistory(fieldHistory: any, fieldLabel: any, entity: any
|
|
|
105
108
|
correlationId: string;
|
|
106
109
|
fullWidth: boolean;
|
|
107
110
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
111
|
+
minHeight: number | string;
|
|
108
112
|
blocker: boolean;
|
|
113
|
+
onConfirm: (...args: any[]) => void;
|
|
114
|
+
onCancel: () => void;
|
|
109
115
|
onClose: () => void;
|
|
110
116
|
}> | undefined;
|
|
111
117
|
};
|
|
@@ -121,7 +127,10 @@ export function showFieldComments(taskOid: any, entityOid: any, fieldName: any,
|
|
|
121
127
|
correlationId: string;
|
|
122
128
|
fullWidth: boolean;
|
|
123
129
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
130
|
+
minHeight: number | string;
|
|
124
131
|
blocker: boolean;
|
|
132
|
+
onConfirm: (...args: any[]) => void;
|
|
133
|
+
onCancel: () => void;
|
|
125
134
|
onClose: () => void;
|
|
126
135
|
}> | undefined;
|
|
127
136
|
};
|
|
@@ -137,7 +146,10 @@ export function generateEntityReportModal(entity: any): {
|
|
|
137
146
|
correlationId: string;
|
|
138
147
|
fullWidth: boolean;
|
|
139
148
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
149
|
+
minHeight: number | string;
|
|
140
150
|
blocker: boolean;
|
|
151
|
+
onConfirm: (...args: any[]) => void;
|
|
152
|
+
onCancel: () => void;
|
|
141
153
|
onClose: () => void;
|
|
142
154
|
}> | undefined;
|
|
143
155
|
};
|
|
@@ -8,10 +8,10 @@ export declare const ATTACH_FILES = "imtf/MdmGraph/ATTACH_FILES";
|
|
|
8
8
|
export declare const ATTACH_FILES_SUCCESS = "imtf/MdmGraph/ATTACH_FILES_SUCCESS";
|
|
9
9
|
export declare const ATTACH_FILES_ERROR = "imtf/MdmGraph/ATTACH_FILES_ERROR";
|
|
10
10
|
export declare const MODAL_TYPES: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
EDIT_ENTITY: string;
|
|
12
|
+
FIELD_HISTORY: string;
|
|
13
|
+
FIELD_COMMENTS: string;
|
|
14
|
+
GENERATE_ENTITY_REPORT: string;
|
|
15
15
|
};
|
|
16
16
|
export declare const NEW_ENTITY_KEY = "__NEW__";
|
|
17
17
|
export declare const RELATION_DIRECTIONS: {
|
|
@@ -26,3 +26,9 @@ export declare const INSPECTORS: {
|
|
|
26
26
|
export declare const ACTIONS: {
|
|
27
27
|
readonly GENERATE_ENTITY_REPORT: "GENERATE_ENTITY_REPORT";
|
|
28
28
|
};
|
|
29
|
+
export declare const MDM_ENTITY_CREATED: string;
|
|
30
|
+
export declare const MDM_ENTITY_UPDATED: string;
|
|
31
|
+
export declare const EVENT_CONTEXT: {
|
|
32
|
+
readonly COPIED: "COPIED";
|
|
33
|
+
};
|
|
34
|
+
export declare const AUDIT_EMPTY_VALUE = "--";
|
|
@@ -1,73 +1,98 @@
|
|
|
1
|
-
import { FileInode } from "
|
|
1
|
+
import { FileInode } from "../../../core/providers/Inodes/types";
|
|
2
2
|
export declare const paths: Readonly<{
|
|
3
3
|
readonly caseData: (params?: {
|
|
4
|
-
|
|
4
|
+
[x: string]: string | null | undefined;
|
|
5
|
+
caseOid: string;
|
|
5
6
|
} | undefined) => string;
|
|
6
7
|
readonly taskData: (params?: {
|
|
7
|
-
|
|
8
|
+
[x: string]: string | null | undefined;
|
|
9
|
+
taskOid: string;
|
|
8
10
|
} | undefined) => string;
|
|
9
11
|
readonly entityRelatedMasterData: (params?: {
|
|
10
|
-
|
|
12
|
+
[x: string]: string | null | undefined;
|
|
13
|
+
entityOid: string;
|
|
11
14
|
} | undefined) => string;
|
|
12
15
|
readonly entityRelatedCase: (params?: {
|
|
13
|
-
|
|
16
|
+
[x: string]: string | null | undefined;
|
|
17
|
+
entityOid: string;
|
|
14
18
|
} | undefined) => string;
|
|
15
19
|
readonly linkEntity: (params?: {
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
[x: string]: string | null | undefined;
|
|
21
|
+
taskOid: string;
|
|
22
|
+
entityOid: string;
|
|
18
23
|
} | undefined) => string;
|
|
19
24
|
readonly importData: (params?: {
|
|
20
|
-
|
|
25
|
+
[x: string]: string | null | undefined;
|
|
26
|
+
taskOid: string;
|
|
21
27
|
} | undefined) => string;
|
|
22
28
|
readonly createEntity: (params?: {
|
|
23
|
-
|
|
29
|
+
[x: string]: string | null | undefined;
|
|
30
|
+
taskOid: string;
|
|
24
31
|
} | undefined) => string;
|
|
25
32
|
readonly entities: (params?: {
|
|
26
|
-
|
|
33
|
+
[x: string]: string | null | undefined;
|
|
34
|
+
taskOid: string;
|
|
27
35
|
} | undefined) => string;
|
|
28
36
|
readonly caseEntity: (params?: {
|
|
29
|
-
|
|
30
|
-
|
|
37
|
+
[x: string]: string | null | undefined;
|
|
38
|
+
caseOid: string;
|
|
39
|
+
entityOid: string;
|
|
31
40
|
} | undefined) => string;
|
|
32
41
|
readonly taskEntity: (params?: {
|
|
33
|
-
|
|
34
|
-
|
|
42
|
+
[x: string]: string | null | undefined;
|
|
43
|
+
taskOid: string;
|
|
44
|
+
entityOid: string;
|
|
35
45
|
} | undefined) => string;
|
|
36
46
|
readonly createRelation: (params?: {
|
|
37
|
-
|
|
47
|
+
[x: string]: string | null | undefined;
|
|
48
|
+
taskOid: string;
|
|
38
49
|
} | undefined) => string;
|
|
39
50
|
readonly relation: (params?: {
|
|
40
|
-
|
|
41
|
-
|
|
51
|
+
[x: string]: string | null | undefined;
|
|
52
|
+
taskOid: string;
|
|
53
|
+
relationOid: string;
|
|
42
54
|
} | undefined) => string;
|
|
43
55
|
readonly relationDefinitions: (params?: {
|
|
44
|
-
|
|
56
|
+
[x: string]: string | null | undefined;
|
|
57
|
+
entityType: string;
|
|
45
58
|
} | undefined) => string;
|
|
46
59
|
readonly taskEntityFiles: (params?: {
|
|
47
|
-
|
|
48
|
-
|
|
60
|
+
[x: string]: string | null | undefined;
|
|
61
|
+
taskOid: string;
|
|
62
|
+
entityOid: string;
|
|
49
63
|
} | undefined) => string;
|
|
50
64
|
readonly taskEntityAttachFiles: (params?: {
|
|
51
|
-
|
|
52
|
-
|
|
65
|
+
[x: string]: string | null | undefined;
|
|
66
|
+
taskOid: string;
|
|
67
|
+
entityOid: string;
|
|
53
68
|
} | undefined) => string;
|
|
54
69
|
readonly caseEntityFiles: (params?: {
|
|
55
|
-
|
|
56
|
-
|
|
70
|
+
[x: string]: string | null | undefined;
|
|
71
|
+
caseOid: string;
|
|
72
|
+
entityOid: string;
|
|
57
73
|
} | undefined) => string;
|
|
58
74
|
readonly caseEntityAttachFiles: (params?: {
|
|
59
|
-
|
|
60
|
-
|
|
75
|
+
[x: string]: string | null | undefined;
|
|
76
|
+
caseOid: string;
|
|
77
|
+
entityOid: string;
|
|
61
78
|
} | undefined) => string;
|
|
62
79
|
readonly entityHistory: (params?: {
|
|
63
|
-
|
|
80
|
+
[x: string]: string | null | undefined;
|
|
81
|
+
entityOid: string;
|
|
64
82
|
} | undefined) => string;
|
|
65
83
|
readonly entityComments: (params?: {
|
|
66
|
-
|
|
84
|
+
[x: string]: string | null | undefined;
|
|
85
|
+
entityOid: string;
|
|
86
|
+
} | undefined) => string;
|
|
87
|
+
readonly fieldComment: (params?: {
|
|
88
|
+
[x: string]: string | null | undefined;
|
|
89
|
+
} | undefined) => string;
|
|
90
|
+
readonly entityReports: (params?: {
|
|
91
|
+
[x: string]: string | null | undefined;
|
|
92
|
+
} | undefined) => string;
|
|
93
|
+
readonly generateEntity: (params?: {
|
|
94
|
+
[x: string]: string | null | undefined;
|
|
67
95
|
} | undefined) => string;
|
|
68
|
-
readonly fieldComment: (params?: {} | undefined) => string;
|
|
69
|
-
readonly entityReports: (params?: {} | undefined) => string;
|
|
70
|
-
readonly generateEntity: (params?: {} | undefined) => string;
|
|
71
96
|
}>;
|
|
72
97
|
export declare function createFiles(taskOid: string, entityOid: string, inodes: FileInode[]): Promise<any[]>;
|
|
73
98
|
export declare function uploadFiles(taskOid: string, entityOid: string, files: File[], inodes: FileInode[], params: Record<string, unknown>): Promise<any[]>;
|
|
@@ -16,6 +16,11 @@ export type Field = {
|
|
|
16
16
|
export type MdmValue = string | number | boolean | null | MdmValue[] | {
|
|
17
17
|
[key: string]: MdmValue;
|
|
18
18
|
} | undefined;
|
|
19
|
+
export type EventChips = {
|
|
20
|
+
caseType?: string;
|
|
21
|
+
casePresentableId?: string;
|
|
22
|
+
lastUpdatedBy?: string;
|
|
23
|
+
};
|
|
19
24
|
export type EntityData = Record<string, MdmValue>;
|
|
20
25
|
export type Entity<Type extends string = string, Data extends EntityData = EntityData> = {
|
|
21
26
|
kind: typeof MDM_ENTITY;
|
|
@@ -30,6 +35,8 @@ export type Entity<Type extends string = string, Data extends EntityData = Entit
|
|
|
30
35
|
canDelete: boolean;
|
|
31
36
|
canEdit: boolean;
|
|
32
37
|
canCommentEntityField: boolean;
|
|
38
|
+
canGenerateReport: boolean;
|
|
39
|
+
canImportSearchResult?: boolean;
|
|
33
40
|
} & Capabilities;
|
|
34
41
|
creationDate: string;
|
|
35
42
|
modificationDate: string;
|
|
@@ -154,6 +161,11 @@ export type History = {
|
|
|
154
161
|
previousValue: any;
|
|
155
162
|
timestamp: string;
|
|
156
163
|
username: string;
|
|
164
|
+
type?: string;
|
|
165
|
+
context?: string;
|
|
166
|
+
scope?: string;
|
|
167
|
+
casePresentableId?: string;
|
|
168
|
+
lastUpdatedBy?: string;
|
|
157
169
|
};
|
|
158
170
|
export type FieldHistory = {
|
|
159
171
|
[field: string]: History[] | FieldHistory;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { AssignTypeAndPropertiesModalType } from "../../Inodes/modals/AssignTypeAndPropertiesModal";
|
|
3
|
+
import { AssignTypeModalType } from "../../Inodes/modals/AssignTypeModal";
|
|
4
|
+
import { Inode } from "../../Inodes/types";
|
|
5
|
+
import * as PERMISSIONS from "../../../../core/constants/permissions";
|
|
6
|
+
type ValidateModalOptions = {
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
message?: ReactNode;
|
|
9
|
+
disableCancel?: boolean;
|
|
10
|
+
correlationId?: string;
|
|
11
|
+
disableBackdropClick?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type AssignTypeModalOptions = AssignTypeModalType;
|
|
14
|
+
type AssignTypeAndPropertiesModalOptions = AssignTypeAndPropertiesModalType;
|
|
15
|
+
type NameConflictModalOptions = {
|
|
16
|
+
permissions: {
|
|
17
|
+
[PERMISSIONS.UPDATE]: boolean;
|
|
18
|
+
[PERMISSIONS.RENAME]: boolean;
|
|
19
|
+
};
|
|
20
|
+
name: string;
|
|
21
|
+
isPlural: boolean;
|
|
22
|
+
shouldCheckForExtensionRename: boolean;
|
|
23
|
+
};
|
|
24
|
+
type ForceFolderActionModalOptions = {
|
|
25
|
+
targettedFolders: Inode[];
|
|
26
|
+
inodesPaths: string[];
|
|
27
|
+
itemCount: number;
|
|
28
|
+
action: "DELETE" | "MOVE" | "DUPLICATE";
|
|
29
|
+
args?: {
|
|
30
|
+
inodes: Inode[];
|
|
31
|
+
permanent?: boolean;
|
|
32
|
+
showNotification?: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare function useModal(): {
|
|
36
|
+
showValidateModal: (options: ValidateModalOptions) => Promise<boolean>;
|
|
37
|
+
showAssignTypeModal: (options: AssignTypeModalOptions) => Promise<any[] | null>;
|
|
38
|
+
showAssignTypeAndPropertiesModal: (options: AssignTypeAndPropertiesModalOptions) => Promise<any[] | null>;
|
|
39
|
+
showNameConflictModal: (options: NameConflictModalOptions) => Promise<{
|
|
40
|
+
type: typeof PERMISSIONS.UPDATE | typeof PERMISSIONS.RENAME;
|
|
41
|
+
newName: string;
|
|
42
|
+
} | null>;
|
|
43
|
+
showForceFolderActionModal: (options: ForceFolderActionModalOptions) => Promise<any>;
|
|
44
|
+
};
|
|
45
|
+
export {};
|
|
@@ -13,7 +13,10 @@ export declare const showModal: import("@reduxjs/toolkit").ActionCreatorWithPrep
|
|
|
13
13
|
correlationId: string;
|
|
14
14
|
fullWidth: boolean;
|
|
15
15
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
16
|
+
minHeight: number | string;
|
|
16
17
|
blocker: boolean;
|
|
18
|
+
onConfirm: (...args: any[]) => void;
|
|
19
|
+
onCancel: () => void;
|
|
17
20
|
onClose: () => void;
|
|
18
21
|
}> | undefined], {
|
|
19
22
|
type: string;
|
|
@@ -24,7 +27,10 @@ export declare const showModal: import("@reduxjs/toolkit").ActionCreatorWithPrep
|
|
|
24
27
|
correlationId: string;
|
|
25
28
|
fullWidth: boolean;
|
|
26
29
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
30
|
+
minHeight: number | string;
|
|
27
31
|
blocker: boolean;
|
|
32
|
+
onConfirm: (...args: any[]) => void;
|
|
33
|
+
onCancel: () => void;
|
|
28
34
|
onClose: () => void;
|
|
29
35
|
}> | undefined;
|
|
30
36
|
}, "modal/showModal", never, never>, updateModalProps: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<Partial<{
|
|
@@ -34,7 +40,10 @@ export declare const showModal: import("@reduxjs/toolkit").ActionCreatorWithPrep
|
|
|
34
40
|
correlationId: string;
|
|
35
41
|
fullWidth: boolean;
|
|
36
42
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
43
|
+
minHeight: number | string;
|
|
37
44
|
blocker: boolean;
|
|
45
|
+
onConfirm: (...args: any[]) => void;
|
|
46
|
+
onCancel: () => void;
|
|
38
47
|
onClose: () => void;
|
|
39
48
|
}> | undefined, "modal/updateModalProps">, closeModal: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
40
49
|
type?: string;
|
|
@@ -18,7 +18,10 @@ export type ModalProps = Partial<{
|
|
|
18
18
|
correlationId: string;
|
|
19
19
|
fullWidth: boolean;
|
|
20
20
|
maxWidth: DialogProps["maxWidth"];
|
|
21
|
+
minHeight: number | string;
|
|
21
22
|
blocker: boolean;
|
|
23
|
+
onConfirm: (...args: any[]) => void;
|
|
24
|
+
onCancel: () => void;
|
|
22
25
|
onClose: () => void;
|
|
23
26
|
[key: string]: unknown;
|
|
24
27
|
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
type ComponentPluginContextType = {
|
|
3
|
+
props: {
|
|
4
|
+
identifier?: string;
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
declare const ComponentPluginContext: import("react").Context<ComponentPluginContextType>;
|
|
9
|
+
export default ComponentPluginContext;
|
|
10
|
+
export declare function useComponentPluginContext(): ComponentPluginContextType;
|
|
11
|
+
export declare const ComponentPluginProps: ({ children, ...props }: {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ToasterProps as PanacheToasterProps } from "@imtf/panache";
|
|
2
|
+
type ToasterProps = PanacheToasterProps & {
|
|
3
|
+
type: "normal" | "action" | "success" | "info" | "warning" | "error" | "loading" | "default";
|
|
4
|
+
};
|
|
2
5
|
declare const useSystemNotification: () => {
|
|
3
|
-
notify: (message:
|
|
4
|
-
updateNotification: (
|
|
6
|
+
notify: (message: (() => React.ReactNode) | React.ReactNode, options: ToasterProps) => string | number;
|
|
7
|
+
updateNotification: (toastId: string, options: ToasterProps & {
|
|
8
|
+
message: (() => React.ReactNode) | React.ReactNode;
|
|
9
|
+
}) => string | number;
|
|
5
10
|
};
|
|
6
11
|
export default useSystemNotification;
|
|
@@ -8,8 +8,16 @@ declare function useInodeActions(): {
|
|
|
8
8
|
} & {
|
|
9
9
|
result: import("../../../Inodes/types").InodeList | undefined;
|
|
10
10
|
}>;
|
|
11
|
-
update: (inodes: any) =>
|
|
11
|
+
update: (inodes: any) => Promise<({
|
|
12
|
+
inodes: import("../../../Inodes/types").Inode[];
|
|
13
|
+
targetInode?: import("../../../Inodes/types").Inode;
|
|
14
|
+
originalInodes?: import("../../../Inodes/types").Inode[];
|
|
15
|
+
mergeOnNameConflict?: boolean;
|
|
16
|
+
moveMode?: "FORCE_MOVE";
|
|
17
|
+
} & {
|
|
18
|
+
newInodes: import("../../../Inodes/types").Inode[];
|
|
19
|
+
}) | undefined>;
|
|
20
|
+
checkAndGetWithType: (inodes: any, targetTypes: any, forceChildrenWithType: any) => Promise<import("../../../Inodes/types").Inode[] | null>;
|
|
12
21
|
stateAction: (inodes: any, action: any) => void;
|
|
13
22
|
updateProperties: (newProperties: any, oid: any) => void;
|
|
14
|
-
checkAndGetWithType: (inodes: any, targetTypes: any, forceChildrenWithType: any, sort: any) => Promise<any>;
|
|
15
23
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exposes the task's processing status (eg., an outcome is being
|
|
3
|
+
* submitted) to profile plugins, so their controls can disable
|
|
4
|
+
* themselves while the task is busy and stay editable otherwise.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useTaskProcessing(): {
|
|
7
|
+
isBusy: boolean;
|
|
8
|
+
};
|