@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,22 @@
|
|
|
1
|
+
import { AxiosError } from "axios";
|
|
2
|
+
import { Inode } from "../types";
|
|
3
|
+
type Arg = {
|
|
4
|
+
/**
|
|
5
|
+
* Updated inodes
|
|
6
|
+
*/
|
|
7
|
+
inodes: Inode[];
|
|
8
|
+
/**
|
|
9
|
+
* Target inode to move the inodes to
|
|
10
|
+
*/
|
|
11
|
+
targetInode?: Inode;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Updates an array of inodes
|
|
15
|
+
* Can be used to move inodes to a new parent or rename them.
|
|
16
|
+
*/
|
|
17
|
+
declare const useRestore: () => {
|
|
18
|
+
trigger: import("swr/mutation").TriggerWithArgs<(Arg & {
|
|
19
|
+
newInodes: Inode[];
|
|
20
|
+
}) | undefined, AxiosError<unknown, any>, string, Arg>;
|
|
21
|
+
};
|
|
22
|
+
export default useRestore;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DossierType, InodeType, InodeTypeRef } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Sorts a list of type objects by 'orderingWeight' and 'name'.
|
|
4
|
+
*/
|
|
5
|
+
export default function useSortedTypes(types?: (InodeType | InodeTypeRef | DossierType)[]): (InodeType | InodeTypeRef | DossierType)[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DossierType, InodeType } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Retrieve the list of available Inode types, excluding by default the dossier types
|
|
4
|
+
* @param includeDossierTypes When true, all types (including dossier ones) are returned
|
|
5
|
+
*/
|
|
6
|
+
export default function useTypes<T extends boolean = false>(includeDossierTypes?: T): {
|
|
7
|
+
types: (T extends true ? (InodeType | DossierType)[] : InodeType[]) | undefined;
|
|
8
|
+
error: any;
|
|
9
|
+
isValidating: boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AxiosError } from "axios";
|
|
2
|
+
import { Inode } from "../types";
|
|
3
|
+
type Arg = {
|
|
4
|
+
/**
|
|
5
|
+
* Updated inodes
|
|
6
|
+
*/
|
|
7
|
+
inodes: Inode[];
|
|
8
|
+
/**
|
|
9
|
+
* Target inode to move the inodes to
|
|
10
|
+
*/
|
|
11
|
+
targetInode?: Inode;
|
|
12
|
+
/**
|
|
13
|
+
* Original inodes before the update
|
|
14
|
+
*/
|
|
15
|
+
originalInodes?: Inode[];
|
|
16
|
+
/**
|
|
17
|
+
* Whether we should force the merge when a name conflict is detected
|
|
18
|
+
*/
|
|
19
|
+
mergeOnNameConflict?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Whether we should force the move when the user lacks MOVE permissions
|
|
22
|
+
* This is used in ForceActionModal component
|
|
23
|
+
*/
|
|
24
|
+
moveMode?: "FORCE_MOVE";
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Updates an array of inodes
|
|
28
|
+
* Can be used to move inodes to a new parent or rename them.
|
|
29
|
+
*/
|
|
30
|
+
declare const useUpdateInodes: () => {
|
|
31
|
+
trigger: import("swr/mutation").TriggerWithArgs<(Arg & {
|
|
32
|
+
newInodes: Inode[];
|
|
33
|
+
}) | undefined, AxiosError<unknown, any>, string, Arg>;
|
|
34
|
+
};
|
|
35
|
+
export default useUpdateInodes;
|
|
@@ -187,6 +187,10 @@ declare const _default: {
|
|
|
187
187
|
id: string;
|
|
188
188
|
defaultMessage: string;
|
|
189
189
|
};
|
|
190
|
+
itemCopyDropzone: {
|
|
191
|
+
id: string;
|
|
192
|
+
defaultMessage: string;
|
|
193
|
+
};
|
|
190
194
|
itemCopy: {
|
|
191
195
|
id: string;
|
|
192
196
|
defaultMessage: string;
|
|
@@ -195,6 +199,10 @@ declare const _default: {
|
|
|
195
199
|
id: string;
|
|
196
200
|
defaultMessage: string;
|
|
197
201
|
};
|
|
202
|
+
itemsCopyDropzone: {
|
|
203
|
+
id: string;
|
|
204
|
+
defaultMessage: string;
|
|
205
|
+
};
|
|
198
206
|
itemsCopy: {
|
|
199
207
|
id: string;
|
|
200
208
|
defaultMessage: string;
|
|
@@ -423,7 +431,7 @@ declare const _default: {
|
|
|
423
431
|
id: string;
|
|
424
432
|
defaultMessage: string;
|
|
425
433
|
};
|
|
426
|
-
|
|
434
|
+
createTaskOrCase: {
|
|
427
435
|
id: string;
|
|
428
436
|
defaultMessage: string;
|
|
429
437
|
};
|
|
@@ -439,6 +447,10 @@ declare const _default: {
|
|
|
439
447
|
id: string;
|
|
440
448
|
defaultMessage: string;
|
|
441
449
|
};
|
|
450
|
+
viewInodeComments: {
|
|
451
|
+
id: string;
|
|
452
|
+
defaultMessage: string;
|
|
453
|
+
};
|
|
442
454
|
addCommentSuccess: {
|
|
443
455
|
id: string;
|
|
444
456
|
defaultMessage: string;
|
|
@@ -471,5 +483,17 @@ declare const _default: {
|
|
|
471
483
|
id: string;
|
|
472
484
|
defaultMessage: string;
|
|
473
485
|
};
|
|
486
|
+
dateError: {
|
|
487
|
+
id: string;
|
|
488
|
+
defaultMessage: string;
|
|
489
|
+
};
|
|
490
|
+
dateMaxError: {
|
|
491
|
+
id: string;
|
|
492
|
+
defaultMessage: string;
|
|
493
|
+
};
|
|
494
|
+
dateMinError: {
|
|
495
|
+
id: string;
|
|
496
|
+
defaultMessage: string;
|
|
497
|
+
};
|
|
474
498
|
};
|
|
475
499
|
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Control } from "react-hook-form";
|
|
2
|
+
import type { Inode, InodeType } from "../../../Inodes/types";
|
|
3
|
+
import { PropertiesComponent } from "../../../../../core/components/dms-ui/types";
|
|
4
|
+
type AccordionItemProps = {
|
|
5
|
+
inode: Inode;
|
|
6
|
+
options: (InodeType | {
|
|
7
|
+
name: InodeType["name"];
|
|
8
|
+
label: InodeType["label"];
|
|
9
|
+
})[];
|
|
10
|
+
currentType: InodeType | {
|
|
11
|
+
name: InodeType["name"];
|
|
12
|
+
label: InodeType["label"];
|
|
13
|
+
} | null;
|
|
14
|
+
dossierInode?: Inode;
|
|
15
|
+
parentInode?: Inode;
|
|
16
|
+
isDisabled: boolean;
|
|
17
|
+
isInvalid: boolean;
|
|
18
|
+
isDefaultExpanded: boolean;
|
|
19
|
+
isPropertiesTypeLoading: boolean;
|
|
20
|
+
properties?: PropertiesComponent[];
|
|
21
|
+
warningMessage?: string;
|
|
22
|
+
errorMessages?: string[];
|
|
23
|
+
control?: Control;
|
|
24
|
+
onChange: (inode: Inode, type: InodeType | {
|
|
25
|
+
name: InodeType["name"];
|
|
26
|
+
label: InodeType["label"];
|
|
27
|
+
} | null) => void;
|
|
28
|
+
onDelete: (inodeOid: Inode["oid"]) => void;
|
|
29
|
+
};
|
|
30
|
+
declare const AccordionItem: ({ inode, options, currentType, dossierInode, parentInode, properties, isDisabled, isInvalid, isDefaultExpanded, isPropertiesTypeLoading, warningMessage, errorMessages, control, onChange, onDelete, }: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export default AccordionItem;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FieldValues } from "react-hook-form";
|
|
3
|
+
import { PropertiesComponent } from "../../../../../core/components/dms-ui/types";
|
|
4
|
+
import { Inode, InodeType } from "../../../../../core/providers/Inodes/types";
|
|
5
|
+
import { BarcodeProcessing, Forms, Options, Types } from "./types";
|
|
6
|
+
import type { AssignTypeAndPropertiesModalType } from "./index";
|
|
7
|
+
type ModalContentType = {
|
|
8
|
+
barcodeProcessing: BarcodeProcessing;
|
|
9
|
+
sourceInodes: AssignTypeAndPropertiesModalType["sourceInodes"];
|
|
10
|
+
forms: Forms;
|
|
11
|
+
types: Types;
|
|
12
|
+
propertiesType?: {
|
|
13
|
+
[typeName: string]: PropertiesComponent[];
|
|
14
|
+
};
|
|
15
|
+
options: Options;
|
|
16
|
+
dossierInode?: Inode;
|
|
17
|
+
parentInode?: Inode;
|
|
18
|
+
dialogTitle: React.ReactNode;
|
|
19
|
+
isConfirmDisabled: boolean;
|
|
20
|
+
isFormDisabled: boolean;
|
|
21
|
+
isPropertiesTypeLoading: boolean;
|
|
22
|
+
shouldAssignTypeToAll: boolean;
|
|
23
|
+
shouldProcessWithoutMandatoryFields: boolean;
|
|
24
|
+
handleTypeChange: (inode: Inode, value: InodeType | {
|
|
25
|
+
name: InodeType["name"];
|
|
26
|
+
label: InodeType["label"];
|
|
27
|
+
} | null) => void;
|
|
28
|
+
closeModal: () => void;
|
|
29
|
+
handleDeleteInode: (oid: Inode["oid"]) => void;
|
|
30
|
+
handleShouldAssignTypeToAll: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
31
|
+
handleShouldProcessWithoutMandatoryFields: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
32
|
+
onSubmit: (values?: FieldValues, validationErrorInodes?: Inode["oid"][]) => void;
|
|
33
|
+
};
|
|
34
|
+
declare const ModalContent: ({ barcodeProcessing, sourceInodes, forms, types, propertiesType, options, dossierInode, parentInode, dialogTitle, isConfirmDisabled, isFormDisabled, isPropertiesTypeLoading, handleTypeChange, handleDeleteInode, shouldAssignTypeToAll, handleShouldAssignTypeToAll, handleShouldProcessWithoutMandatoryFields, closeModal, onSubmit, shouldProcessWithoutMandatoryFields, }: ModalContentType) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export default ModalContent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Inode, InodeTypeRef } from "../../../../../core/providers/Inodes/types";
|
|
2
|
+
import { ModalComponentProps } from "../../../../../core/providers/Modal/types";
|
|
3
|
+
export type AssignTypeAndPropertiesModalType = {
|
|
4
|
+
sourceInodes: (Inode & {
|
|
5
|
+
file: File;
|
|
6
|
+
hasErrors?: boolean;
|
|
7
|
+
})[];
|
|
8
|
+
childrenAllowedTypes: InodeTypeRef[];
|
|
9
|
+
forceChildrenWithType: boolean;
|
|
10
|
+
correlationId: string;
|
|
11
|
+
};
|
|
12
|
+
export default function AssignTypeAndPropertiesModal({ closeModal, modalProps, }: ModalComponentProps<AssignTypeAndPropertiesModalType>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
};
|
|
6
|
+
infoAlert: {
|
|
7
|
+
id: string;
|
|
8
|
+
defaultMessage: string;
|
|
9
|
+
};
|
|
10
|
+
assignTypeToAll: {
|
|
11
|
+
id: string;
|
|
12
|
+
defaultMessage: string;
|
|
13
|
+
};
|
|
14
|
+
hideDisabledProperties: {
|
|
15
|
+
id: string;
|
|
16
|
+
defaultMessage: string;
|
|
17
|
+
};
|
|
18
|
+
processWithoutMandatoryFields: {
|
|
19
|
+
id: string;
|
|
20
|
+
defaultMessage: string;
|
|
21
|
+
};
|
|
22
|
+
actionCancel: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
};
|
|
26
|
+
actionConfirm: {
|
|
27
|
+
id: string;
|
|
28
|
+
defaultMessage: string;
|
|
29
|
+
};
|
|
30
|
+
labelNone: {
|
|
31
|
+
id: string;
|
|
32
|
+
defaultMessage: string;
|
|
33
|
+
};
|
|
34
|
+
selectType: {
|
|
35
|
+
id: string;
|
|
36
|
+
defaultMessage: string;
|
|
37
|
+
};
|
|
38
|
+
dossierName: {
|
|
39
|
+
id: string;
|
|
40
|
+
defaultMessage: string;
|
|
41
|
+
};
|
|
42
|
+
folderName: {
|
|
43
|
+
id: string;
|
|
44
|
+
defaultMessage: string;
|
|
45
|
+
};
|
|
46
|
+
success: {
|
|
47
|
+
id: string;
|
|
48
|
+
defaultMessage: string;
|
|
49
|
+
};
|
|
50
|
+
warnings: {
|
|
51
|
+
id: string;
|
|
52
|
+
defaultMessage: string;
|
|
53
|
+
};
|
|
54
|
+
errors: {
|
|
55
|
+
id: string;
|
|
56
|
+
defaultMessage: string;
|
|
57
|
+
};
|
|
58
|
+
typeNotAllowed: {
|
|
59
|
+
id: string;
|
|
60
|
+
defaultMessage: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PropertiesComponent } from "../../../../../core/components/dms-ui/types";
|
|
2
|
+
import { ErrorResource, Inode, InodeType, InodeTypeRef, ValidationResult } from "../../../../../core/providers/Inodes/types";
|
|
3
|
+
export type BarcodeProcessingResult = {
|
|
4
|
+
kind: "dms-core.FileCandidateResult";
|
|
5
|
+
oid: Inode["oid"];
|
|
6
|
+
status: number;
|
|
7
|
+
fileCandidate: {
|
|
8
|
+
kind: "dms-core.FileCandidate";
|
|
9
|
+
storageId: string;
|
|
10
|
+
detectedTypes: InodeTypeRef[];
|
|
11
|
+
};
|
|
12
|
+
temporaryOid: Inode["oid"];
|
|
13
|
+
errorResource?: ErrorResource;
|
|
14
|
+
warning: string;
|
|
15
|
+
validationResults: ValidationResult[];
|
|
16
|
+
};
|
|
17
|
+
export type BarcodeProcessingResultList = {
|
|
18
|
+
items: BarcodeProcessingResult[];
|
|
19
|
+
};
|
|
20
|
+
export type BarcodeProcessing = {
|
|
21
|
+
data: {
|
|
22
|
+
[key in ProcessStatus]?: BarcodeProcessingResult[];
|
|
23
|
+
} | null;
|
|
24
|
+
isLoading: boolean;
|
|
25
|
+
hasError: boolean;
|
|
26
|
+
hasBeenCanceled: boolean;
|
|
27
|
+
};
|
|
28
|
+
export type Forms = {
|
|
29
|
+
[inodeOid: Inode["oid"]]: {
|
|
30
|
+
[propertyName: PropertiesComponent["name"]]: PropertiesComponent["value"];
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export type ProcessStatus = "success" | "warnings" | "errors";
|
|
34
|
+
export type Types = {
|
|
35
|
+
[oid: Inode["oid"]]: InodeType | {
|
|
36
|
+
name: InodeType["name"];
|
|
37
|
+
label: InodeType["label"];
|
|
38
|
+
} | null;
|
|
39
|
+
};
|
|
40
|
+
export type Options = (InodeType | {
|
|
41
|
+
name: InodeType["name"];
|
|
42
|
+
label: InodeType["label"];
|
|
43
|
+
})[];
|
package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/addInodeOidToName.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropertiesComponent } from "../../../../../../core/components/dms-ui/types";
|
|
2
|
+
import { Inode } from "../../../../../../core/providers/Inodes/types";
|
|
3
|
+
/**
|
|
4
|
+
* Temporary solution to be removed when Composer will stop using Formik
|
|
5
|
+
* This function gives a name given an inode oid when multiple inputs
|
|
6
|
+
* with the same name are present in the same form
|
|
7
|
+
*/
|
|
8
|
+
export default function addInodeOidToName(components: PropertiesComponent[], inodeOid: Inode["oid"]): PropertiesComponent[];
|
package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/findMostUsedValue.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Finds the most used value in an object.
|
|
3
|
+
* @param obj The object to search.
|
|
4
|
+
* @param path The path to the value to search for.
|
|
5
|
+
* @returns The most used value in the object, or null if there are no values.
|
|
6
|
+
* @example
|
|
7
|
+
* // Returns "b"
|
|
8
|
+
* findMostUsedValue({ a: "b", c: "b", d: "e" });
|
|
9
|
+
* @example
|
|
10
|
+
* // Returns "c"
|
|
11
|
+
* findMostUsedValue({ a: { b: "c" }, d: { b: "c" } }, "b");
|
|
12
|
+
* @example
|
|
13
|
+
* // Returns null
|
|
14
|
+
* findMostUsedValue({});
|
|
15
|
+
*/
|
|
16
|
+
export default function findMostUsedValue(obj: {
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}, path?: string): string | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropertiesComponent } from "../../../../../../core/components/dms-ui/types";
|
|
2
|
+
import { Inode } from "../../../../../../core/providers/Inodes/types";
|
|
3
|
+
import { Forms, Types } from "../types";
|
|
4
|
+
declare const getDefaultValuesFromProperties: (sourceInodes: Inode[], types: Types, propertiesType?: {
|
|
5
|
+
[typeName: string]: PropertiesComponent[];
|
|
6
|
+
}) => Forms;
|
|
7
|
+
export default getDefaultValuesFromProperties;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PropertiesPanelOverrides } from "../../../../App/types";
|
|
2
|
+
import { PropertiesComponent } from "../../../../../../core/components/dms-ui/types";
|
|
3
|
+
import { InodeType } from "../../../../../../core/providers/Inodes/types";
|
|
4
|
+
/**
|
|
5
|
+
* Replace the component values with the propertyPanelOverrides params configuration
|
|
6
|
+
* @param components The components
|
|
7
|
+
* @param propertyPanelOverrides The propertyPanelOverrides params (from params.json)
|
|
8
|
+
* @param typeName Type name to replace properties from
|
|
9
|
+
*/
|
|
10
|
+
export default function replaceComponentsWithConfig(components: PropertiesComponent[], propertyPanelOverrides: PropertiesPanelOverrides, typeName?: InodeType["name"]): PropertiesComponent[];
|
package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/resolveProperties.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FieldValues } from "react-hook-form";
|
|
2
|
+
import { PropertiesComponent } from "../../../../../../core/components/dms-ui/types";
|
|
3
|
+
declare const resolveProperties: (properties?: PropertiesComponent[], values?: FieldValues) => Array<{
|
|
4
|
+
kind: string;
|
|
5
|
+
name: string;
|
|
6
|
+
value: any;
|
|
7
|
+
}>;
|
|
8
|
+
export default resolveProperties;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ProcessStatus } from "../types";
|
|
2
|
+
export default function resolveStatusIconAndColor(status: ProcessStatus): {
|
|
3
|
+
color: string;
|
|
4
|
+
Icon: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement> & import("@imtf/icons").IconProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ModalComponentProps } from "../../Modal/types";
|
|
2
|
+
import { Inode, InodeTypeRef } from "../types";
|
|
3
|
+
export type AssignTypeModalType = {
|
|
4
|
+
sourceInodes: Inode[];
|
|
5
|
+
childrenAllowedTypes: InodeTypeRef[];
|
|
6
|
+
forceChildrenWithType: boolean;
|
|
7
|
+
correlationId: string;
|
|
8
|
+
};
|
|
9
|
+
export default function AssignTypeModal({ closeModal, modalProps, }: ModalComponentProps<AssignTypeModalType>): import("react/jsx-runtime").JSX.Element;
|