@imtf/dms-core 1.1.0-beta.6 → 6.5.7-natwest.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/apps/folder-manager/routes/InodeCollection/hooks/useRemoveInodesFromUrl.d.ts +0 -4
- package/core/components/JsonForm/widgets/widgetHOC.d.ts +29 -0
- package/core/components/TreeView/types.d.ts +17 -0
- package/core/components/TreeViewCell/constants.d.ts +25 -0
- package/core/constants/apps.d.ts +5 -0
- package/core/containers/DropZone/selectors.d.ts +125 -0
- package/core/containers/PDFComposer/actions.d.ts +2 -2
- 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/types.d.ts +7 -1
- package/core/providers/App/actions.d.ts +17 -8
- package/core/providers/App/constants.d.ts +3 -0
- package/core/providers/App/hooks/useApplicationSettings.d.ts +2 -3
- package/core/providers/App/hooks/useSettings.d.ts +8 -4
- package/core/providers/App/hooks/useUserSetting.d.ts +1 -9
- package/core/providers/App/hooks/useUserStorage.d.ts +2 -2
- package/core/providers/App/messages.d.ts +0 -8
- package/core/providers/App/reducer.d.ts +1 -1
- package/core/providers/App/types.d.ts +2 -8
- package/core/providers/App/utils/convertOldUserSettings.d.ts +1 -1
- package/core/providers/App/utils/isSupportedItem.d.ts +2 -0
- package/core/providers/Authentication/types.d.ts +1 -1
- package/core/providers/Cases/actions.d.ts +3 -15
- package/core/providers/Cases/reducer.d.ts +18 -0
- package/core/providers/Cases/selectors.d.ts +64 -0
- package/core/providers/Cases/utils/common.d.ts +0 -2
- package/core/providers/Ccm/types.d.ts +0 -1
- package/core/providers/Definitions/types.d.ts +1 -1
- package/core/providers/Inodes/actions.d.ts +442 -13
- package/core/providers/Inodes/constants.d.ts +44 -0
- package/core/providers/Inodes/messages.d.ts +0 -8
- package/core/providers/Inodes/selectors.d.ts +55 -0
- package/core/providers/Inodes/service.d.ts +3 -4
- package/core/providers/Inodes/types.d.ts +8 -20
- package/core/providers/Inodes/utils/is.d.ts +3 -2
- package/core/providers/Inspectors/Context.d.ts +0 -2
- package/core/providers/MdmGraph/actions.d.ts +0 -8
- package/core/providers/MdmGraph/constants.d.ts +4 -4
- package/core/providers/MdmGraph/types.d.ts +0 -2
- package/core/providers/MdmGraph/utils/misc.d.ts +13 -0
- package/core/providers/Modal/slice.d.ts +0 -6
- package/core/providers/Modal/types.d.ts +0 -2
- package/core/providers/Plugins/hooks/inodes/useActions.d.ts +2 -10
- package/core/providers/Plugins/hooks/inodes/useInodesByOids.d.ts +6 -0
- package/core/providers/Plugins/hooks/tasks/useActions.d.ts +1 -1
- package/core/providers/Plugins/pluginRegistry.d.ts +43 -61
- package/core/providers/Plugins/types/componentPlugins.d.ts +6 -16
- package/core/providers/Search/reducer.d.ts +4 -7
- package/core/providers/Search/selectors.d.ts +262 -48
- package/core/providers/Search/types.d.ts +5 -26
- package/core/providers/Search/utils/createQuery.d.ts +5 -5
- package/core/providers/SystemNotification/slice.d.ts +1 -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 +0 -3
- package/core/providers/Tasks/types.d.ts +1 -1
- package/core/providers/Uploader/Context.d.ts +9 -9
- package/core/utils/action.d.ts +2 -2
- package/core/utils/htmlElements.d.ts +1 -0
- package/core/utils/requestMiddleware.d.ts +1 -0
- package/package.json +1 -1
- package/store.d.ts +16 -21
- package/vendor/@imtf/react-components/components/Chip/utils.d.ts +2 -2
- package/vendor/@imtf/react-components/components/ViewMoreCard/ViewMoreCard.d.ts +2 -1
- package/vendor/@imtf/react-components/utils/constants.d.ts +20 -0
- package/core/components/ActionMenu/Menu.d.ts +0 -19
- package/core/components/ActionMenu/Trigger.d.ts +0 -8
- package/core/components/ActionMenu/index.d.ts +0 -1
- package/core/components/ActionMenu/styles.d.ts +0 -4
- package/core/components/Chip/Chip.d.ts +0 -8
- package/core/components/Chip/index.d.ts +0 -1
- package/core/components/CloseModalButton/CloseModalButton.d.ts +0 -10
- package/core/components/CloseModalButton/index.d.ts +0 -1
- package/core/components/DatePicker/DatePicker.d.ts +0 -6
- package/core/components/DatePicker/index.d.ts +0 -1
- package/core/components/Error/index.d.ts +0 -7
- package/core/components/FormattedNumberTextfield/FormattedNumberTextfield.d.ts +0 -3
- package/core/components/FormattedNumberTextfield/index.d.ts +0 -1
- package/core/components/ItemIcon/TaskIcon.d.ts +0 -5
- package/core/components/ItemIcon/index.d.ts +0 -19
- package/core/components/Select/ListboxComponent.d.ts +0 -5
- package/core/components/Select/Select.d.ts +0 -20
- package/core/components/Select/index.d.ts +0 -1
- package/core/components/dms-ui/DatasourceAutocomplete.d.ts +0 -14
- package/core/components/dms-ui/ImmutableComposer.d.ts +0 -15
- package/core/components/dms-ui/immutableDefault/DatasourceAutocomplete.d.ts +0 -19
- package/core/components/dms-ui/immutableDefault/DatePicker.d.ts +0 -15
- package/core/components/dms-ui/immutableDefault/Group.d.ts +0 -16
- package/core/components/dms-ui/immutableDefault/NumberFormattedTexfield.d.ts +0 -14
- package/core/components/dms-ui/immutableDefault/NumberTextfield.d.ts +0 -2
- package/core/components/dms-ui/immutableDefault/RadioButton.d.ts +0 -19
- package/core/components/dms-ui/immutableDefault/Select.d.ts +0 -19
- package/core/components/dms-ui/immutableDefault/Switch.d.ts +0 -19
- package/core/components/dms-ui/immutableDefault/Textfield.d.ts +0 -21
- package/core/components/dms-ui/immutableDefault/index.d.ts +0 -10
- package/core/components/dms-ui/immutableFacet/DatasourceAutocomplete.d.ts +0 -13
- package/core/components/dms-ui/immutableFacet/DateRangeSearcher.d.ts +0 -14
- package/core/components/dms-ui/immutableFacet/Facet.d.ts +0 -23
- package/core/components/dms-ui/immutableFacet/NumericRangePicker.d.ts +0 -14
- package/core/components/dms-ui/immutableFacet/Select.d.ts +0 -13
- package/core/components/dms-ui/immutableFacet/Textfield.d.ts +0 -13
- package/core/components/dms-ui/immutableFacet/TypePicker.d.ts +0 -13
- package/core/components/dms-ui/immutableFacet/index.d.ts +0 -7
- package/core/components/dms-ui/immutableFacet/styles.d.ts +0 -5
- package/core/components/dms-ui/messages.d.ts +0 -27
- package/core/components/dms-ui/utils/getImmutableComponent.d.ts +0 -19
- package/core/components/dms-ui/utils/removeLabelFromValues.d.ts +0 -1
- package/core/components/dms-ui/utils/utils.d.ts +0 -3
- package/core/constants/dragTypes.d.ts +0 -2
- package/core/containers/DataGrid/constants.d.ts +0 -26
- package/core/containers/DataGrid/types.d.ts +0 -38
- package/core/containers/DataGrid/utils/handleWidth.d.ts +0 -18
- package/core/containers/EntityDocuments/EntityDocumentsComponent.d.ts +0 -30
- package/core/containers/EntityDocuments/components/Accordion.d.ts +0 -12
- package/core/containers/EntityDocuments/components/Document.d.ts +0 -11
- package/core/containers/EntityDocuments/components/DocumentLabel.d.ts +0 -7
- package/core/containers/EntityDocuments/components/DocumentList.d.ts +0 -19
- package/core/containers/EntityDocuments/components/DocumentListTitle.d.ts +0 -9
- package/core/containers/EntityDocuments/constants.d.ts +0 -1
- package/core/containers/EntityDocuments/styles.d.ts +0 -10
- package/core/containers/EntityDocuments/types.d.ts +0 -7
- package/core/containers/SearchDataGrid/types.d.ts +0 -16
- package/core/hooks/useCollator.d.ts +0 -2
- package/core/providers/App/hooks/useDownload.d.ts +0 -23
- package/core/providers/App/hooks/useTriggerItems.d.ts +0 -11
- package/core/providers/App/utils/convertTreeviewFields.d.ts +0 -70
- package/core/providers/App/utils/sortListByWeightAndName.d.ts +0 -8
- package/core/providers/DataGrid/Context.d.ts +0 -47
- package/core/providers/Definitions/hooks/useTaskDefinition.d.ts +0 -1
- package/core/providers/Definitions/hooks/useTaskDefinitions.d.ts +0 -4
- package/core/providers/Definitions/utils/typesToTypeRefs.d.ts +0 -5
- package/core/providers/DropZone/Context.d.ts +0 -12
- package/core/providers/Inodes/hooks/useInodeByOid.d.ts +0 -5
- package/core/providers/Inodes/hooks/useInodeTypeAssignment.d.ts +0 -4
- package/core/providers/Inodes/hooks/useInodesByOids.d.ts +0 -7
- package/core/providers/Inodes/hooks/usePropertiesType.d.ts +0 -14
- package/core/providers/Inodes/hooks/usePropertyComponents.d.ts +0 -11
- package/core/providers/Inodes/hooks/useRestore.d.ts +0 -22
- package/core/providers/Inodes/hooks/useSortedTypes.d.ts +0 -5
- package/core/providers/Inodes/hooks/useTypes.d.ts +0 -10
- package/core/providers/Inodes/hooks/useUpdateInodes.d.ts +0 -35
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/AccordionItem.d.ts +0 -29
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/BarcodeLoading.d.ts +0 -5
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/ModalContent.d.ts +0 -35
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/index.d.ts +0 -12
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/messages.d.ts +0 -59
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/types.d.ts +0 -43
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/addInodeOidToName.d.ts +0 -22
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/createBarcodeProcessingFormData.d.ts +0 -5
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/findMostUsedValue.d.ts +0 -18
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/getInodesRequiredFieldNames.d.ts +0 -10
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/getInvalidInodeOids.d.ts +0 -10
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/replaceComponentsWithConfig.d.ts +0 -10
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/resolveStatusIconAndColor.d.ts +0 -5
- package/core/providers/Inodes/modals/AssignTypeModal.d.ts +0 -9
- package/core/providers/Inodes/utils/getAssignableTypesFromInode.d.ts +0 -2
- package/core/providers/Inodes/utils/getBulkUrl.d.ts +0 -1
- package/core/providers/Inodes/utils/isInodeType.d.ts +0 -3
- package/core/providers/Inodes/utils/isInodeTypeRef.d.ts +0 -3
- package/core/providers/Inodes/utils/mutateInodes.d.ts +0 -7
- package/core/providers/Inodes/utils/replacePropertiesWithConfig.d.ts +0 -10
- package/core/providers/Inodes/utils/resolveInodeTypes.d.ts +0 -183
- package/core/providers/Localization/Context.d.ts +0 -7
- package/core/providers/Localization/hooks/useLocale.d.ts +0 -3
- package/core/providers/Modal/hooks/useModal.d.ts +0 -44
- package/core/providers/Plugins/ComponentPluginContext.d.ts +0 -14
- package/core/providers/Plugins/withComponentPlugin.d.ts +0 -27
- package/core/providers/Tasks/utils/mutateTaskData.d.ts +0 -6
- package/core/theme/theme.base.d.ts +0 -32
- package/core/theme/theme.lightMode.d.ts +0 -206
- package/core/utils/date/getUTCDateInCurrentTimezone.d.ts +0 -11
- package/core/utils/hasValidKind.d.ts +0 -2
- package/core/utils/immutable.d.ts +0 -2
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Inode, InodeType, InodeTypeRef, TemplateRef } from "../types";
|
|
2
|
-
export declare function useInodeTypeAssignment(): {
|
|
3
|
-
checkAndGetInodesWithType: (sourceInodes: Inode[], targetTypes: (InodeType | InodeTypeRef)[], targetTemplates?: TemplateRef[], forceChildrenWithType?: boolean, forceChildrenWithTemplate?: boolean, files?: File[], enablePropertiesUpload?: boolean) => Promise<Inode[] | null>;
|
|
4
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Inode } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* Fetch inodes by oids
|
|
4
|
-
*/
|
|
5
|
-
export declare function useInodesByOids(oids?: Inode["oid"][]): import("swr").SWRResponse<Inode<"dms-core.Folder" | "dms-core.File" | "dms-core.Template" | "dms-core.Dossier" | "dms-core.DeniedInode">[], any, {
|
|
6
|
-
keepPreviousData: true;
|
|
7
|
-
}>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PropertiesComponent } from "../../../../core/components/dms-ui/types";
|
|
2
|
-
import { InodeType } from "../types";
|
|
3
|
-
/**
|
|
4
|
-
* Get property groups given type oids
|
|
5
|
-
* We can also override the properties given a propertyPanelOverrides parameter
|
|
6
|
-
* https://imtf.atlassian.net/wiki/spaces/DEV/pages/7045794/param#param-propertyPanelOverrides
|
|
7
|
-
*/
|
|
8
|
-
export default function usePropertiesType(typeOids: InodeType["oid"][]): {
|
|
9
|
-
propertiesType: {
|
|
10
|
-
[typeName: string]: PropertiesComponent[];
|
|
11
|
-
} | undefined;
|
|
12
|
-
error: any;
|
|
13
|
-
isLoading: boolean;
|
|
14
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PropertiesGroupList } from "../../../../core/components/dms-ui/types";
|
|
2
|
-
import { Inode } from "../types";
|
|
3
|
-
/**
|
|
4
|
-
* Fetches property groups for a given inode
|
|
5
|
-
*/
|
|
6
|
-
export default function usePropertyComponents(inodeOid?: Inode["oid"]): {
|
|
7
|
-
data: import("../../../../core/components/dms-ui/types").UIPropertiesGroup[] | null;
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
isValidating: boolean;
|
|
10
|
-
mutate: import("swr").KeyedMutator<PropertiesGroupList>;
|
|
11
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
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;
|
|
@@ -1,5 +0,0 @@
|
|
|
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)[];
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
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;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { PropertiesComponent } from "../../../../../core/components/dms-ui/types";
|
|
2
|
-
import { Inode, InodeType } from "../../types";
|
|
3
|
-
type AccordionItemProps = {
|
|
4
|
-
inode: Inode;
|
|
5
|
-
options: (InodeType | {
|
|
6
|
-
name: InodeType["name"];
|
|
7
|
-
label: InodeType["label"];
|
|
8
|
-
})[];
|
|
9
|
-
currentType: InodeType | {
|
|
10
|
-
name: InodeType["name"];
|
|
11
|
-
label: InodeType["label"];
|
|
12
|
-
} | null;
|
|
13
|
-
dossierInode?: Inode;
|
|
14
|
-
parentInode?: Inode;
|
|
15
|
-
isDisabled: boolean;
|
|
16
|
-
isInvalid: boolean;
|
|
17
|
-
isDefaultExpanded: boolean;
|
|
18
|
-
isPropertiesTypeLoading: boolean;
|
|
19
|
-
properties?: PropertiesComponent[];
|
|
20
|
-
warningMessage?: string;
|
|
21
|
-
errorMessages?: string[];
|
|
22
|
-
onChange: (inode: Inode, type: InodeType | {
|
|
23
|
-
name: InodeType["name"];
|
|
24
|
-
label: InodeType["label"];
|
|
25
|
-
} | null) => void;
|
|
26
|
-
onDelete: (inodeOid: Inode["oid"]) => void;
|
|
27
|
-
};
|
|
28
|
-
declare const AccordionItem: ({ inode, options, currentType, dossierInode, parentInode, properties, isDisabled, isInvalid, isDefaultExpanded, isPropertiesTypeLoading, warningMessage, errorMessages, onChange, onDelete, }: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export default AccordionItem;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { FormikProps, FormikValues } from "formik";
|
|
2
|
-
import { PropertiesComponent } from "../../../../../core/components/dms-ui/types";
|
|
3
|
-
import { Inode, InodeType } from "../../types";
|
|
4
|
-
import { BarcodeProcessing, Forms, Options, Types } from "./types";
|
|
5
|
-
import type { AssignTypeAndPropertiesModalType } from "./index";
|
|
6
|
-
type ModalContentType = {
|
|
7
|
-
barcodeProcessing: BarcodeProcessing;
|
|
8
|
-
sourceInodes: AssignTypeAndPropertiesModalType["sourceInodes"];
|
|
9
|
-
forms: Forms;
|
|
10
|
-
types: Types;
|
|
11
|
-
propertiesType?: {
|
|
12
|
-
[typeName: string]: PropertiesComponent[];
|
|
13
|
-
};
|
|
14
|
-
options: Options;
|
|
15
|
-
dossierInode?: Inode;
|
|
16
|
-
parentInode?: Inode;
|
|
17
|
-
invalidInodes: Inode["oid"][];
|
|
18
|
-
dialogTitle: JSX.Element;
|
|
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?: FormikValues) => void;
|
|
33
|
-
};
|
|
34
|
-
declare const ModalContent: import("react").ForwardRefExoticComponent<ModalContentType & import("react").RefAttributes<FormikProps<FormikValues>>>;
|
|
35
|
-
export default ModalContent;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ModalComponentProps } from "../../../../../core/providers/Modal/types";
|
|
2
|
-
import { Inode, InodeTypeRef } from "../../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;
|
|
@@ -1,59 +0,0 @@
|
|
|
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
|
-
processWithoutMandatoryFields: {
|
|
15
|
-
id: string;
|
|
16
|
-
defaultMessage: string;
|
|
17
|
-
};
|
|
18
|
-
actionCancel: {
|
|
19
|
-
id: string;
|
|
20
|
-
defaultMessage: string;
|
|
21
|
-
};
|
|
22
|
-
actionConfirm: {
|
|
23
|
-
id: string;
|
|
24
|
-
defaultMessage: string;
|
|
25
|
-
};
|
|
26
|
-
labelNone: {
|
|
27
|
-
id: string;
|
|
28
|
-
defaultMessage: string;
|
|
29
|
-
};
|
|
30
|
-
selectType: {
|
|
31
|
-
id: string;
|
|
32
|
-
defaultMessage: string;
|
|
33
|
-
};
|
|
34
|
-
dossierName: {
|
|
35
|
-
id: string;
|
|
36
|
-
defaultMessage: string;
|
|
37
|
-
};
|
|
38
|
-
folderName: {
|
|
39
|
-
id: string;
|
|
40
|
-
defaultMessage: string;
|
|
41
|
-
};
|
|
42
|
-
success: {
|
|
43
|
-
id: string;
|
|
44
|
-
defaultMessage: string;
|
|
45
|
-
};
|
|
46
|
-
warnings: {
|
|
47
|
-
id: string;
|
|
48
|
-
defaultMessage: string;
|
|
49
|
-
};
|
|
50
|
-
errors: {
|
|
51
|
-
id: string;
|
|
52
|
-
defaultMessage: string;
|
|
53
|
-
};
|
|
54
|
-
typeNotAllowed: {
|
|
55
|
-
id: string;
|
|
56
|
-
defaultMessage: string;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
export default _default;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { PropertiesComponent } from "../../../../../core/components/dms-ui/types";
|
|
2
|
-
import { ErrorResource, Inode, InodeType, InodeTypeRef, ValidationResult } from "../../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
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PropertiesComponent } from "../../../../../../core/components/dms-ui/types";
|
|
2
|
-
import { Inode } from "../../../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"]): {
|
|
9
|
-
name: string;
|
|
10
|
-
kind: Exclude<typeof import("../../../../../components/dms-ui/constants").UI[keyof typeof import("../../../../../components/dms-ui/constants").UI], "dms-core.ui.component.Group">;
|
|
11
|
-
label: string;
|
|
12
|
-
width?: number;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
hidden?: boolean;
|
|
15
|
-
required?: boolean;
|
|
16
|
-
value?: string | number;
|
|
17
|
-
orderingWeight?: number;
|
|
18
|
-
datasourceName?: string;
|
|
19
|
-
options?: import("../../../../../../core/components/dms-ui/types").Option[];
|
|
20
|
-
multiple?: boolean;
|
|
21
|
-
valueFormat?: string;
|
|
22
|
-
}[];
|
package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/findMostUsedValue.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Inode } from "../../../../Inodes/types";
|
|
2
|
-
import { PropertiesComponent } from "../../../../../../core/components/dms-ui/types";
|
|
3
|
-
import { Types } from "../types";
|
|
4
|
-
declare const getInodesRequiredFieldNames: (inodes: Inode[], types: Types, propertiesType: {
|
|
5
|
-
[typeName: string]: PropertiesComponent[];
|
|
6
|
-
} | undefined) => {
|
|
7
|
-
oid: string;
|
|
8
|
-
requiredFieldNames: string[];
|
|
9
|
-
}[];
|
|
10
|
-
export default getInodesRequiredFieldNames;
|
package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/getInvalidInodeOids.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FormikValues } from "formik";
|
|
2
|
-
import { Inode } from "../../../types";
|
|
3
|
-
/**
|
|
4
|
-
* Get all invalid inodes oids given a list of required field names per inode
|
|
5
|
-
*/
|
|
6
|
-
declare const getInvalidInodeOids: (forms: FormikValues[string], requiredFieldNamesPerInode: {
|
|
7
|
-
oid: Inode["oid"];
|
|
8
|
-
requiredFieldNames: string[];
|
|
9
|
-
}[]) => string[];
|
|
10
|
-
export default getInvalidInodeOids;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PropertiesPanelOverrides } from "../../../../App/types";
|
|
2
|
-
import { PropertiesComponent } from "../../../../../../core/components/dms-ui/types";
|
|
3
|
-
import { InodeType } from "../../../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[];
|
|
@@ -1,5 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function getBulkUrl(token: any): string;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Inode } from "../../Inodes/types";
|
|
2
|
-
/**
|
|
3
|
-
* Mutate the inodes and the inodes updated key.
|
|
4
|
-
* Mutating the INODES_UPDATED is important to refetch the data for tasks and cases.
|
|
5
|
-
*/
|
|
6
|
-
declare const mutateInodes: (inodes: (Inode | Inode["oid"])[]) => void;
|
|
7
|
-
export default mutateInodes;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PropertiesPanelOverrides } from "../../App/types";
|
|
2
|
-
import { UIPropertiesGroup } from "../../../../core/components/dms-ui/types";
|
|
3
|
-
import { Inode } from "../types";
|
|
4
|
-
/**
|
|
5
|
-
* Replace the property values with the propertyPanelOverrides params configuration
|
|
6
|
-
* @param properties The properties of the inode
|
|
7
|
-
* @param propertyPanelOverrides The propertyPanelOverrides params (from params.json)
|
|
8
|
-
* @param inodeOid Oid of the current inode
|
|
9
|
-
*/
|
|
10
|
-
export declare function replacePropertiesWithConfig(properties: UIPropertiesGroup[], propertyPanelOverrides: PropertiesPanelOverrides, inodeOid: Inode["oid"]): UIPropertiesGroup[];
|
|
@@ -1,183 +0,0 @@
|
|
|
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";
|
|
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
|
-
}[] | {
|
|
105
|
-
type: InodeType | InodeTypeRef;
|
|
106
|
-
allowedTypes: InodeTypeRef[];
|
|
107
|
-
ancestors?: {
|
|
108
|
-
kind: typeof import("../../../constants/kinds").INODE_REF;
|
|
109
|
-
name: Inode["name"];
|
|
110
|
-
label: Inode["label"];
|
|
111
|
-
oid: Inode["oid"];
|
|
112
|
-
}[];
|
|
113
|
-
capabilities?: {
|
|
114
|
-
kind: "dms.core.Capabilities";
|
|
115
|
-
canAddFolderOfTypes: InodeType["name"][];
|
|
116
|
-
canViewPanels: string[];
|
|
117
|
-
canAddFile: boolean;
|
|
118
|
-
canSendLinkByEmail: boolean;
|
|
119
|
-
canAddFileOfTypes: InodeType["name"][];
|
|
120
|
-
canAssignTypes: InodeType["name"][];
|
|
121
|
-
canCreateCase: boolean;
|
|
122
|
-
canAddFileWithoutBinary: boolean;
|
|
123
|
-
canAddFileWithoutBinaryOfTypes: InodeType["name"][];
|
|
124
|
-
};
|
|
125
|
-
childrenAllowedTemplates?: TemplateRef[];
|
|
126
|
-
childrenAllowedTypes?: InodeTypeRef[];
|
|
127
|
-
creationDate: string;
|
|
128
|
-
deleted?: boolean;
|
|
129
|
-
deleteInfo?: {
|
|
130
|
-
kind: "dms-core.DeleteInfo";
|
|
131
|
-
timestamp: string;
|
|
132
|
-
user: import("../../User/types").User;
|
|
133
|
-
};
|
|
134
|
-
shared?: boolean;
|
|
135
|
-
downloadId: string;
|
|
136
|
-
favorite?: boolean;
|
|
137
|
-
forceChildrenWithTemplate?: boolean;
|
|
138
|
-
forceChildrenWithType?: boolean;
|
|
139
|
-
forceWithType?: boolean;
|
|
140
|
-
kind: "dms-core.Folder" | "dms-core.File" | "dms-core.Template" | "dms-core.Dossier" | "dms-core.DeniedInode";
|
|
141
|
-
commentsCount?: number;
|
|
142
|
-
label: string;
|
|
143
|
-
mimeType: keyof typeof import("../../../containers/PDFTronViewer/constants").SUPPORTED_MIME_TYPES | string;
|
|
144
|
-
modificationDate: string;
|
|
145
|
-
name: string;
|
|
146
|
-
oid: string;
|
|
147
|
-
orderingWeight: number;
|
|
148
|
-
parentOid?: string;
|
|
149
|
-
watched?: boolean;
|
|
150
|
-
template?: TemplateRef;
|
|
151
|
-
permissions: {
|
|
152
|
-
[key: string]: boolean | undefined;
|
|
153
|
-
} | null;
|
|
154
|
-
fields: {
|
|
155
|
-
[key: string]: string;
|
|
156
|
-
};
|
|
157
|
-
caseRefs?: {
|
|
158
|
-
items: import("../../Cases/types").CaseRef[];
|
|
159
|
-
};
|
|
160
|
-
mdmEntityRefs?: {
|
|
161
|
-
kind: "dms-core.MdmEntityRefList";
|
|
162
|
-
items: Array<{
|
|
163
|
-
kind: "dms-core.MdmEntityRef";
|
|
164
|
-
oid: string;
|
|
165
|
-
uri: string;
|
|
166
|
-
}>;
|
|
167
|
-
};
|
|
168
|
-
referredUnfile?: {
|
|
169
|
-
referrers: import("../types").InodeRef[];
|
|
170
|
-
};
|
|
171
|
-
tags?: import("../types").TagList;
|
|
172
|
-
properties: {
|
|
173
|
-
kind: typeof import("../../../constants/kinds").PROPERTY_LIST;
|
|
174
|
-
items: import("../types").Property[];
|
|
175
|
-
};
|
|
176
|
-
size: number;
|
|
177
|
-
stateMachines?: import("../types").StateMachine[];
|
|
178
|
-
uri: string;
|
|
179
|
-
version: number;
|
|
180
|
-
transientFileId?: string;
|
|
181
|
-
}[] | null | undefined;
|
|
182
|
-
};
|
|
183
|
-
export default resolveInodeTypes;
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|