@imtf/dms-core 1.1.0-beta.5 → 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.
Files changed (176) hide show
  1. package/apps/folder-manager/routes/InodeCollection/hooks/useRemoveInodesFromUrl.d.ts +0 -4
  2. package/core/components/JsonForm/widgets/widgetHOC.d.ts +29 -0
  3. package/core/components/TreeView/types.d.ts +17 -0
  4. package/core/components/TreeViewCell/constants.d.ts +25 -0
  5. package/core/constants/apps.d.ts +5 -0
  6. package/core/containers/DropZone/selectors.d.ts +125 -0
  7. package/core/containers/PDFComposer/actions.d.ts +2 -2
  8. package/core/containers/TreeView/actions.d.ts +197 -0
  9. package/core/containers/TreeView/constants.d.ts +36 -0
  10. package/core/containers/TreeView/types.d.ts +46 -0
  11. package/core/providers/Actions/types.d.ts +7 -1
  12. package/core/providers/App/actions.d.ts +17 -8
  13. package/core/providers/App/constants.d.ts +3 -0
  14. package/core/providers/App/hooks/useApplicationSettings.d.ts +2 -3
  15. package/core/providers/App/hooks/useSettings.d.ts +8 -4
  16. package/core/providers/App/hooks/useUserSetting.d.ts +1 -9
  17. package/core/providers/App/hooks/useUserStorage.d.ts +2 -2
  18. package/core/providers/App/messages.d.ts +0 -8
  19. package/core/providers/App/reducer.d.ts +1 -1
  20. package/core/providers/App/types.d.ts +2 -8
  21. package/core/providers/App/utils/convertOldUserSettings.d.ts +1 -1
  22. package/core/providers/App/utils/isSupportedItem.d.ts +2 -0
  23. package/core/providers/Authentication/types.d.ts +1 -1
  24. package/core/providers/Cases/actions.d.ts +3 -15
  25. package/core/providers/Cases/hooks/useCaseDocumentTypes.d.ts +3 -3
  26. package/core/providers/Cases/reducer.d.ts +18 -0
  27. package/core/providers/Cases/selectors.d.ts +64 -0
  28. package/core/providers/Cases/utils/common.d.ts +0 -2
  29. package/core/providers/Ccm/types.d.ts +0 -1
  30. package/core/providers/Definitions/types.d.ts +1 -1
  31. package/core/providers/Inodes/actions.d.ts +442 -13
  32. package/core/providers/Inodes/constants.d.ts +44 -0
  33. package/core/providers/Inodes/messages.d.ts +0 -8
  34. package/core/providers/Inodes/selectors.d.ts +55 -0
  35. package/core/providers/Inodes/service.d.ts +3 -4
  36. package/core/providers/Inodes/types.d.ts +8 -20
  37. package/core/providers/Inodes/utils/is.d.ts +3 -2
  38. package/core/providers/Inspectors/Context.d.ts +0 -2
  39. package/core/providers/MdmGraph/actions.d.ts +0 -8
  40. package/core/providers/MdmGraph/constants.d.ts +4 -4
  41. package/core/providers/MdmGraph/types.d.ts +0 -2
  42. package/core/providers/MdmGraph/utils/misc.d.ts +13 -0
  43. package/core/providers/Modal/slice.d.ts +0 -6
  44. package/core/providers/Modal/types.d.ts +0 -2
  45. package/core/providers/Plugins/hooks/inodes/useActions.d.ts +2 -10
  46. package/core/providers/Plugins/hooks/inodes/useInodesByOids.d.ts +6 -0
  47. package/core/providers/Plugins/hooks/tasks/useActions.d.ts +1 -1
  48. package/core/providers/Plugins/pluginRegistry.d.ts +43 -61
  49. package/core/providers/Plugins/types/componentPlugins.d.ts +0 -9
  50. package/core/providers/Search/reducer.d.ts +4 -7
  51. package/core/providers/Search/selectors.d.ts +262 -48
  52. package/core/providers/Search/types.d.ts +5 -26
  53. package/core/providers/Search/utils/createQuery.d.ts +5 -5
  54. package/core/providers/SystemNotification/slice.d.ts +1 -1
  55. package/core/providers/Tasks/hooks/useEntityDelete.d.ts +1 -1
  56. package/core/providers/Tasks/hooks/useEntityMutate.d.ts +1 -1
  57. package/core/providers/Tasks/hooks/useTaskData.d.ts +2 -2
  58. package/core/providers/Tasks/service.d.ts +0 -3
  59. package/core/providers/Tasks/types.d.ts +1 -1
  60. package/core/providers/Uploader/Context.d.ts +9 -9
  61. package/core/utils/action.d.ts +2 -2
  62. package/core/utils/htmlElements.d.ts +1 -0
  63. package/core/utils/requestMiddleware.d.ts +1 -0
  64. package/package.json +1 -1
  65. package/store.d.ts +16 -21
  66. package/vendor/@imtf/react-components/components/Chip/utils.d.ts +2 -2
  67. package/vendor/@imtf/react-components/components/ViewMoreCard/ViewMoreCard.d.ts +2 -1
  68. package/vendor/@imtf/react-components/utils/constants.d.ts +20 -0
  69. package/core/components/ActionMenu/Menu.d.ts +0 -19
  70. package/core/components/ActionMenu/Trigger.d.ts +0 -8
  71. package/core/components/ActionMenu/index.d.ts +0 -1
  72. package/core/components/ActionMenu/styles.d.ts +0 -4
  73. package/core/components/Chip/Chip.d.ts +0 -8
  74. package/core/components/Chip/index.d.ts +0 -1
  75. package/core/components/CloseModalButton/CloseModalButton.d.ts +0 -10
  76. package/core/components/CloseModalButton/index.d.ts +0 -1
  77. package/core/components/DatePicker/DatePicker.d.ts +0 -6
  78. package/core/components/DatePicker/index.d.ts +0 -1
  79. package/core/components/Error/index.d.ts +0 -7
  80. package/core/components/FormattedNumberTextfield/FormattedNumberTextfield.d.ts +0 -3
  81. package/core/components/FormattedNumberTextfield/index.d.ts +0 -1
  82. package/core/components/ItemIcon/TaskIcon.d.ts +0 -5
  83. package/core/components/ItemIcon/index.d.ts +0 -19
  84. package/core/components/Select/ListboxComponent.d.ts +0 -5
  85. package/core/components/Select/Select.d.ts +0 -20
  86. package/core/components/Select/index.d.ts +0 -1
  87. package/core/components/dms-ui/DatasourceAutocomplete.d.ts +0 -14
  88. package/core/components/dms-ui/ImmutableComposer.d.ts +0 -15
  89. package/core/components/dms-ui/immutableDefault/DatasourceAutocomplete.d.ts +0 -19
  90. package/core/components/dms-ui/immutableDefault/DatePicker.d.ts +0 -15
  91. package/core/components/dms-ui/immutableDefault/Group.d.ts +0 -16
  92. package/core/components/dms-ui/immutableDefault/NumberFormattedTexfield.d.ts +0 -14
  93. package/core/components/dms-ui/immutableDefault/NumberTextfield.d.ts +0 -2
  94. package/core/components/dms-ui/immutableDefault/RadioButton.d.ts +0 -19
  95. package/core/components/dms-ui/immutableDefault/Select.d.ts +0 -19
  96. package/core/components/dms-ui/immutableDefault/Switch.d.ts +0 -19
  97. package/core/components/dms-ui/immutableDefault/Textfield.d.ts +0 -21
  98. package/core/components/dms-ui/immutableDefault/index.d.ts +0 -10
  99. package/core/components/dms-ui/immutableFacet/DatasourceAutocomplete.d.ts +0 -13
  100. package/core/components/dms-ui/immutableFacet/DateRangeSearcher.d.ts +0 -14
  101. package/core/components/dms-ui/immutableFacet/Facet.d.ts +0 -23
  102. package/core/components/dms-ui/immutableFacet/NumericRangePicker.d.ts +0 -14
  103. package/core/components/dms-ui/immutableFacet/Select.d.ts +0 -13
  104. package/core/components/dms-ui/immutableFacet/Textfield.d.ts +0 -13
  105. package/core/components/dms-ui/immutableFacet/TypePicker.d.ts +0 -13
  106. package/core/components/dms-ui/immutableFacet/index.d.ts +0 -7
  107. package/core/components/dms-ui/immutableFacet/styles.d.ts +0 -5
  108. package/core/components/dms-ui/messages.d.ts +0 -27
  109. package/core/components/dms-ui/utils/getImmutableComponent.d.ts +0 -19
  110. package/core/components/dms-ui/utils/removeLabelFromValues.d.ts +0 -1
  111. package/core/components/dms-ui/utils/utils.d.ts +0 -3
  112. package/core/constants/dragTypes.d.ts +0 -2
  113. package/core/containers/DataGrid/constants.d.ts +0 -26
  114. package/core/containers/DataGrid/types.d.ts +0 -38
  115. package/core/containers/DataGrid/utils/handleWidth.d.ts +0 -18
  116. package/core/containers/EntityDocuments/EntityDocumentsComponent.d.ts +0 -30
  117. package/core/containers/EntityDocuments/components/Accordion.d.ts +0 -12
  118. package/core/containers/EntityDocuments/components/Document.d.ts +0 -11
  119. package/core/containers/EntityDocuments/components/DocumentLabel.d.ts +0 -7
  120. package/core/containers/EntityDocuments/components/DocumentList.d.ts +0 -19
  121. package/core/containers/EntityDocuments/components/DocumentListTitle.d.ts +0 -7
  122. package/core/containers/EntityDocuments/constants.d.ts +0 -1
  123. package/core/containers/EntityDocuments/styles.d.ts +0 -10
  124. package/core/containers/EntityDocuments/types.d.ts +0 -7
  125. package/core/containers/SearchDataGrid/types.d.ts +0 -16
  126. package/core/hooks/useCollator.d.ts +0 -2
  127. package/core/providers/App/hooks/useDownload.d.ts +0 -23
  128. package/core/providers/App/hooks/useTriggerItems.d.ts +0 -11
  129. package/core/providers/App/utils/convertTreeviewFields.d.ts +0 -70
  130. package/core/providers/App/utils/sortListByWeightAndName.d.ts +0 -8
  131. package/core/providers/DataGrid/Context.d.ts +0 -47
  132. package/core/providers/Definitions/hooks/useTaskDefinition.d.ts +0 -1
  133. package/core/providers/Definitions/hooks/useTaskDefinitions.d.ts +0 -4
  134. package/core/providers/Definitions/utils/typesToTypeRefs.d.ts +0 -5
  135. package/core/providers/DropZone/Context.d.ts +0 -12
  136. package/core/providers/Inodes/hooks/useInodeByOid.d.ts +0 -5
  137. package/core/providers/Inodes/hooks/useInodeTypeAssignment.d.ts +0 -4
  138. package/core/providers/Inodes/hooks/useInodesByOids.d.ts +0 -7
  139. package/core/providers/Inodes/hooks/usePropertiesType.d.ts +0 -14
  140. package/core/providers/Inodes/hooks/usePropertyComponents.d.ts +0 -11
  141. package/core/providers/Inodes/hooks/useRestore.d.ts +0 -22
  142. package/core/providers/Inodes/hooks/useSortedTypes.d.ts +0 -5
  143. package/core/providers/Inodes/hooks/useTypes.d.ts +0 -10
  144. package/core/providers/Inodes/hooks/useUpdateInodes.d.ts +0 -35
  145. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/AccordionItem.d.ts +0 -29
  146. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/BarcodeLoading.d.ts +0 -5
  147. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/ModalContent.d.ts +0 -35
  148. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/index.d.ts +0 -12
  149. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/messages.d.ts +0 -59
  150. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/types.d.ts +0 -43
  151. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/addInodeOidToName.d.ts +0 -22
  152. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/createBarcodeProcessingFormData.d.ts +0 -5
  153. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/findMostUsedValue.d.ts +0 -18
  154. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/getInodesRequiredFieldNames.d.ts +0 -10
  155. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/getInvalidInodeOids.d.ts +0 -10
  156. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/replaceComponentsWithConfig.d.ts +0 -10
  157. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/resolveStatusIconAndColor.d.ts +0 -5
  158. package/core/providers/Inodes/modals/AssignTypeModal.d.ts +0 -9
  159. package/core/providers/Inodes/utils/getAssignableTypesFromInode.d.ts +0 -2
  160. package/core/providers/Inodes/utils/getBulkUrl.d.ts +0 -1
  161. package/core/providers/Inodes/utils/isInodeType.d.ts +0 -3
  162. package/core/providers/Inodes/utils/isInodeTypeRef.d.ts +0 -3
  163. package/core/providers/Inodes/utils/mutateInodes.d.ts +0 -7
  164. package/core/providers/Inodes/utils/replacePropertiesWithConfig.d.ts +0 -10
  165. package/core/providers/Inodes/utils/resolveInodeTypes.d.ts +0 -183
  166. package/core/providers/Localization/Context.d.ts +0 -7
  167. package/core/providers/Localization/hooks/useLocale.d.ts +0 -3
  168. package/core/providers/Modal/hooks/useModal.d.ts +0 -44
  169. package/core/providers/Plugins/ComponentPluginContext.d.ts +0 -14
  170. package/core/providers/Plugins/withComponentPlugin.d.ts +0 -27
  171. package/core/providers/Tasks/utils/mutateTaskData.d.ts +0 -6
  172. package/core/theme/theme.base.d.ts +0 -32
  173. package/core/theme/theme.lightMode.d.ts +0 -206
  174. package/core/utils/date/getUTCDateInCurrentTimezone.d.ts +0 -11
  175. package/core/utils/hasValidKind.d.ts +0 -2
  176. package/core/utils/immutable.d.ts +0 -2
@@ -1,7 +1,3 @@
1
1
  import { Inode } from "../../../../../core/providers/Inodes/types";
2
- /**
3
- * Remove inodes from the url when in the InodeCollection component (opening various inodes)
4
- * This will remove the inode oids from the url when they are deleted
5
- */
6
2
  declare const useRemoveInodesFromUrl: () => (oids: Inode["oid"][]) => void;
7
3
  export default useRemoveInodesFromUrl;
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { AcmComment } from "../../../providers/App/types";
3
+ import { Entity } from "../../../providers/MdmGraph/types";
4
+ export type WrappedCompomentExtraProps = {
5
+ formContext: Partial<{
6
+ taskOid: string;
7
+ fieldHistory: unknown[];
8
+ fieldComments: AcmComment[] | undefined;
9
+ create: boolean;
10
+ entity: Entity | undefined;
11
+ setSubmitParams: (params: Record<string, unknown>) => void;
12
+ }>;
13
+ onChange: (...params: unknown[]) => void;
14
+ options?: {
15
+ triggerQuestionnaireReload?: boolean;
16
+ triggerTaskDataReload?: boolean;
17
+ };
18
+ rawErrors?: unknown[];
19
+ value: unknown;
20
+ label: string;
21
+ name: string;
22
+ schema: unknown;
23
+ multiple?: boolean;
24
+ readonly?: boolean;
25
+ required?: boolean;
26
+ uiSchema: unknown;
27
+ disabled?: boolean;
28
+ };
29
+ export default function widgetHOC<P>(WrappedComponent: React.ComponentType<P>): (props: P & WrappedCompomentExtraProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { List, Map } from "immutable";
2
+ import type { SupportedItem } from "../../providers/App/types";
3
+ export type ImmutableRows = List<Map<string, unknown>>;
4
+ type LoadMoreItem = {
5
+ kind: "dms-core.ui.LoadMoreButton";
6
+ oid: string;
7
+ parentOid: string;
8
+ offset: number;
9
+ };
10
+ export type Row<I = SupportedItem | LoadMoreItem> = {
11
+ item: I;
12
+ status?: string;
13
+ depth?: number;
14
+ isExpandable?: boolean;
15
+ expanded?: boolean;
16
+ };
17
+ export {};
@@ -0,0 +1,25 @@
1
+ export declare const COLUMN_TYPES: {
2
+ STRING: string;
3
+ DATE: string;
4
+ LONG: string;
5
+ DOUBLE: string;
6
+ BOOLEAN: string;
7
+ CHECKBOX: string;
8
+ INDEX: string;
9
+ ICON: string;
10
+ ITEM: string;
11
+ TAG: string;
12
+ TYPE: string;
13
+ PATH: string;
14
+ PROCESS_STATE: string;
15
+ DATE_TIME: string;
16
+ FORMATTED_NUMBER: string;
17
+ FORMATTED_LONG: string;
18
+ FORMATTED_DOUBLE: string;
19
+ TWO_DIGITS_NUMBER: string;
20
+ TASK_TYPE: string;
21
+ STATUS: string;
22
+ INODE_NAME: string;
23
+ INODE_NAME_RAW: string;
24
+ BUSINESS_PROCESS_STATUS: string;
25
+ };
@@ -23,6 +23,11 @@ export declare const SEARCH: {
23
23
  readonly path: "/folder-manager/search";
24
24
  readonly capability: "canAccessFMSearch";
25
25
  };
26
+ export declare const BROWSE: {
27
+ readonly id: "browse";
28
+ readonly path: "/folder-manager/browse";
29
+ readonly capability: "canAccessFMBrowse";
30
+ };
26
31
  export declare const TRASH: {
27
32
  readonly id: "trash";
28
33
  readonly path: "/folder-manager/trash";
@@ -0,0 +1,125 @@
1
+ export const isDropZoneOpenSelector: ((state: any) => boolean) & {
2
+ clearCache: () => void;
3
+ resultsCount: () => number;
4
+ resetResultsCount: () => void;
5
+ } & {
6
+ resultFunc: (resultFuncArgs_0: any) => boolean;
7
+ memoizedResultFunc: ((resultFuncArgs_0: any) => boolean) & {
8
+ clearCache: () => void;
9
+ resultsCount: () => number;
10
+ resetResultsCount: () => void;
11
+ };
12
+ lastResult: () => boolean;
13
+ dependencies: [(state: any) => any];
14
+ recomputations: () => number;
15
+ resetRecomputations: () => void;
16
+ dependencyRecomputations: () => number;
17
+ resetDependencyRecomputations: () => void;
18
+ } & {
19
+ memoize: typeof import("reselect").lruMemoize;
20
+ argsMemoize: typeof import("reselect").weakMapMemoize;
21
+ };
22
+ export const itemOidsSelector: ((state: any) => any) & {
23
+ clearCache: () => void;
24
+ resultsCount: () => number;
25
+ resetResultsCount: () => void;
26
+ } & {
27
+ resultFunc: (resultFuncArgs_0: any) => any;
28
+ memoizedResultFunc: ((resultFuncArgs_0: any) => any) & {
29
+ clearCache: () => void;
30
+ resultsCount: () => number;
31
+ resetResultsCount: () => void;
32
+ };
33
+ lastResult: () => any;
34
+ dependencies: [(state: any) => any];
35
+ recomputations: () => number;
36
+ resetRecomputations: () => void;
37
+ dependencyRecomputations: () => number;
38
+ resetDependencyRecomputations: () => void;
39
+ } & {
40
+ memoize: typeof import("reselect").lruMemoize;
41
+ argsMemoize: typeof import("reselect").weakMapMemoize;
42
+ };
43
+ export const itemsSelector: ((state: any) => any) & {
44
+ clearCache: () => void;
45
+ resultsCount: () => number;
46
+ resetResultsCount: () => void;
47
+ } & {
48
+ resultFunc: (resultFuncArgs_0: import("../../providers/Inodes/types").InodeState, resultFuncArgs_1: any) => any;
49
+ memoizedResultFunc: ((resultFuncArgs_0: import("../../providers/Inodes/types").InodeState, resultFuncArgs_1: any) => any) & {
50
+ clearCache: () => void;
51
+ resultsCount: () => number;
52
+ resetResultsCount: () => void;
53
+ };
54
+ lastResult: () => any;
55
+ dependencies: [(state: any) => import("../../providers/Inodes/types").InodeState, (state: any) => any];
56
+ recomputations: () => number;
57
+ resetRecomputations: () => void;
58
+ dependencyRecomputations: () => number;
59
+ resetDependencyRecomputations: () => void;
60
+ } & {
61
+ memoize: typeof import("reselect").lruMemoize;
62
+ argsMemoize: typeof import("reselect").weakMapMemoize;
63
+ };
64
+ export const itemsFlatSelector: ((state: any) => any) & {
65
+ clearCache: () => void;
66
+ resultsCount: () => number;
67
+ resetResultsCount: () => void;
68
+ } & {
69
+ resultFunc: (resultFuncArgs_0: import("../../providers/Inodes/types").InodeState, resultFuncArgs_1: any) => any;
70
+ memoizedResultFunc: ((resultFuncArgs_0: import("../../providers/Inodes/types").InodeState, resultFuncArgs_1: any) => any) & {
71
+ clearCache: () => void;
72
+ resultsCount: () => number;
73
+ resetResultsCount: () => void;
74
+ };
75
+ lastResult: () => any;
76
+ dependencies: [(state: any) => import("../../providers/Inodes/types").InodeState, (state: any) => any];
77
+ recomputations: () => number;
78
+ resetRecomputations: () => void;
79
+ dependencyRecomputations: () => number;
80
+ resetDependencyRecomputations: () => void;
81
+ } & {
82
+ memoize: typeof import("reselect").lruMemoize;
83
+ argsMemoize: typeof import("reselect").weakMapMemoize;
84
+ };
85
+ export const stackOidsSelector: ((state: any) => any) & {
86
+ clearCache: () => void;
87
+ resultsCount: () => number;
88
+ resetResultsCount: () => void;
89
+ } & {
90
+ resultFunc: (resultFuncArgs_0: any) => any;
91
+ memoizedResultFunc: ((resultFuncArgs_0: any) => any) & {
92
+ clearCache: () => void;
93
+ resultsCount: () => number;
94
+ resetResultsCount: () => void;
95
+ };
96
+ lastResult: () => any;
97
+ dependencies: [((state: any) => any) & {
98
+ clearCache: () => void;
99
+ resultsCount: () => number;
100
+ resetResultsCount: () => void;
101
+ } & {
102
+ resultFunc: (resultFuncArgs_0: import("../../providers/Inodes/types").InodeState, resultFuncArgs_1: any) => any;
103
+ memoizedResultFunc: ((resultFuncArgs_0: import("../../providers/Inodes/types").InodeState, resultFuncArgs_1: any) => any) & {
104
+ clearCache: () => void;
105
+ resultsCount: () => number;
106
+ resetResultsCount: () => void;
107
+ };
108
+ lastResult: () => any;
109
+ dependencies: [(state: any) => import("../../providers/Inodes/types").InodeState, (state: any) => any];
110
+ recomputations: () => number;
111
+ resetRecomputations: () => void;
112
+ dependencyRecomputations: () => number;
113
+ resetDependencyRecomputations: () => void;
114
+ } & {
115
+ memoize: typeof import("reselect").lruMemoize;
116
+ argsMemoize: typeof import("reselect").weakMapMemoize;
117
+ }];
118
+ recomputations: () => number;
119
+ resetRecomputations: () => void;
120
+ dependencyRecomputations: () => number;
121
+ resetDependencyRecomputations: () => void;
122
+ } & {
123
+ memoize: typeof import("reselect").lruMemoize;
124
+ argsMemoize: typeof import("reselect").weakMapMemoize;
125
+ };
@@ -46,9 +46,9 @@ export declare const setDocumentType: import("@reduxjs/toolkit").ActionCreatorWi
46
46
  documentIndex: number;
47
47
  type: import("../../providers/Inodes/types").InodeTypeRef | undefined;
48
48
  }, "imtf/PDFComposer/SET_DOCUMENT_TYPE", never, never>;
49
- export declare const setDocumentFolder: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[documentIndex: number, data: Pick<Inode, "allowedTypes" | "ancestors" | "forceWithType" | "parentOid">], {
49
+ export declare const setDocumentFolder: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[documentIndex: number, data: Pick<Inode, "ancestors" | "allowedTypes" | "forceWithType" | "parentOid">], {
50
50
  documentIndex: number;
51
- data: Pick<Inode, "allowedTypes" | "ancestors" | "forceWithType" | "parentOid">;
51
+ data: Pick<Inode, "ancestors" | "allowedTypes" | "forceWithType" | "parentOid">;
52
52
  }, "imtf/PDFComposer/SET_DOCUMENT_FOLDER", never, never>;
53
53
  export declare const removeDocument: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[documentIndex: number], {
54
54
  documentIndex: number;
@@ -0,0 +1,197 @@
1
+ import { MouseEvent } from "react";
2
+ import { SupportedItem } from "../../providers/App/types";
3
+ import { CLEAR } from "./constants";
4
+ export type ExtraParams = {
5
+ /**
6
+ * Injected items are pagined, so it corresponds to a part of some items's children.
7
+ * If length of items equal the pagination limit, we will assume that there is a next page.
8
+ */
9
+ pagined?: boolean;
10
+ /**
11
+ * An iterable list of items oid that will be displayed directly as expanded
12
+ * (can be usefull if we have to load and display a tree sctructure at once)
13
+ */
14
+ expandedItems?: string[];
15
+ /**
16
+ * Parent Oid of the items to add (if not provided, items will be added to the root)
17
+ */
18
+ oid?: "root" | string;
19
+ /**
20
+ * Set / change the root oid of the treeView
21
+ */
22
+ rootOid?: string;
23
+ /**
24
+ * Set / change the limit of the treeView
25
+ */
26
+ limit?: number;
27
+ /**
28
+ * Clear the existing items before or after getting the new ones
29
+ */
30
+ clear?: (typeof CLEAR)[keyof typeof CLEAR];
31
+ };
32
+ export declare function initialize(params: Record<string, any>): {
33
+ type: string;
34
+ payload: {
35
+ params: Record<string, any>;
36
+ };
37
+ };
38
+ /**
39
+ * Add provided items to the treeView according to treeView configuration.
40
+ */
41
+ export declare function addItems(items: SupportedItem[], extraParams: ExtraParams): {
42
+ type: string;
43
+ payload: {
44
+ /**
45
+ * Injected items are pagined, so it corresponds to a part of some items's children.
46
+ * If length of items equal the pagination limit, we will assume that there is a next page.
47
+ */
48
+ pagined?: boolean;
49
+ /**
50
+ * An iterable list of items oid that will be displayed directly as expanded
51
+ * (can be usefull if we have to load and display a tree sctructure at once)
52
+ */
53
+ expandedItems?: string[];
54
+ /**
55
+ * Parent Oid of the items to add (if not provided, items will be added to the root)
56
+ */
57
+ oid?: "root" | string;
58
+ /**
59
+ * Set / change the root oid of the treeView
60
+ */
61
+ rootOid?: string;
62
+ /**
63
+ * Set / change the limit of the treeView
64
+ */
65
+ limit?: number;
66
+ /**
67
+ * Clear the existing items before or after getting the new ones
68
+ */
69
+ clear?: (typeof CLEAR)[keyof typeof CLEAR];
70
+ items: SupportedItem[];
71
+ };
72
+ };
73
+ /**
74
+ * Add provided item collections to the treeView according to treeView configuration.
75
+ * Please refer to addItems for settings
76
+ */
77
+ export declare function addItemCollections(itemCollections: {
78
+ [oid: string]: {
79
+ [oid: string]: SupportedItem;
80
+ };
81
+ }, extraParams?: Record<string, any>): {
82
+ type: string;
83
+ payload: {
84
+ itemCollections: {
85
+ [oid: string]: {
86
+ [oid: string]: SupportedItem;
87
+ };
88
+ };
89
+ };
90
+ };
91
+ /**
92
+ * Remove a list of items
93
+ */
94
+ export declare function removeItems(items: SupportedItem[]): {
95
+ type: string;
96
+ payload: {
97
+ items: SupportedItem[];
98
+ };
99
+ };
100
+ /**
101
+ * Check if provided items list should be removed or added to the treeView
102
+ * e.g. check if a moved items (thus with new parentOid) are still present in the treeView
103
+ */
104
+ export declare function checkItems(items: SupportedItem[], previousItems?: SupportedItem[], mergeOnNameConflict?: boolean): {
105
+ type: string;
106
+ payload: {
107
+ items: SupportedItem[];
108
+ previousItems: SupportedItem[] | undefined;
109
+ mergeOnNameConflict: boolean;
110
+ };
111
+ };
112
+ export declare function alterSelection(item: SupportedItem, orderedItemList: {
113
+ item: SupportedItem;
114
+ }[], event?: MouseEvent<HTMLElement>): {
115
+ type: string;
116
+ payload: {
117
+ item: SupportedItem;
118
+ orderedItemList: {
119
+ item: SupportedItem;
120
+ }[];
121
+ keys: {
122
+ altKey: boolean | undefined;
123
+ metaKey: boolean | undefined;
124
+ ctrlKey: boolean | undefined;
125
+ shiftKey: boolean | undefined;
126
+ };
127
+ type: any;
128
+ };
129
+ };
130
+ export declare function setSelection(oids: string[]): {
131
+ type: string;
132
+ payload: {
133
+ oids: string[];
134
+ };
135
+ };
136
+ export declare function setLoading(loading?: boolean): {
137
+ type: string;
138
+ payload: {
139
+ loading: boolean;
140
+ };
141
+ };
142
+ export declare function expandItem(itemOid: string): {
143
+ type: string;
144
+ payload: {
145
+ itemOid: string;
146
+ };
147
+ };
148
+ export declare function setFields(fields: any): {
149
+ type: string;
150
+ payload: {
151
+ fields: any;
152
+ };
153
+ };
154
+ export declare function collapseItem(itemOid: string, orderedItemList: SupportedItem[]): {
155
+ type: string;
156
+ payload: {
157
+ itemOid: string;
158
+ orderedItemList: SupportedItem[];
159
+ };
160
+ };
161
+ export declare function clean(): {
162
+ type: string;
163
+ };
164
+ export declare function empty(params?: {}): {
165
+ type: string;
166
+ payload: {};
167
+ };
168
+ export declare function setOrder(order: any): {
169
+ type: string;
170
+ payload: {
171
+ order: any;
172
+ };
173
+ };
174
+ export declare function showSelectColumnsModal(originalFields: any,
175
+ /** The treeview fields key for settings purposes. */
176
+ treeviewFieldsKey: string, identifier: string): {
177
+ payload: {
178
+ type: string;
179
+ props: Partial<{
180
+ [key: string]: unknown;
181
+ disableEscapeKeyDown: boolean;
182
+ disableBackdropClick: boolean;
183
+ correlationId: string;
184
+ fullWidth: boolean;
185
+ maxWidth: import("@mui/material").DialogProps["maxWidth"];
186
+ blocker: boolean;
187
+ onClose: () => void;
188
+ }> | undefined;
189
+ };
190
+ type: "modal/showModal";
191
+ };
192
+ export declare function expandAllChildren(itemOid: string): {
193
+ type: string;
194
+ payload: {
195
+ itemOid: string;
196
+ };
197
+ };
@@ -0,0 +1,36 @@
1
+ export declare const INITIALIZE = "imtf/TreeView/INITIALIZE";
2
+ export declare const ADD_ITEMS = "imtf/TreeView/ADD_ITEMS";
3
+ export declare const ADD_ITEM_COLLECTIONS = "imtf/TreeView/ADD_ITEM_COLLECTIONS";
4
+ export declare const REMOVE_ITEMS = "imtf/TreeView/REMOVE_ITEMS";
5
+ export declare const CHECK_ITEMS = "imtf/TreeView/CHECK_ITEMS";
6
+ export declare const ALTER_SELECTION = "imtf/TreeView/ALTER_SELECTION";
7
+ export declare const SET_SELECTION = "imtf/TreeView/SET_SELECTION";
8
+ export declare const SET_LOADING = "imtf/TreeView/SET_LOADING";
9
+ export declare const COLLAPSE_ITEM = "imtf/TreeView/COLLAPSE_ITEM";
10
+ export declare const EXPAND_ITEM = "imtf/TreeView/EXPAND_ITEM";
11
+ export declare const EXPAND_ALL_CHILDREN = "imtf/TreeView/EXPAND_ALL_CHILDREN";
12
+ export declare const CLEAN = "imtf/TreeView/CLEAN";
13
+ export declare const EMPTY = "imtf/TreeView/EMPTY";
14
+ export declare const SET_FIELDS = "imtf/TreeView/SET_FIELDS";
15
+ export declare const SET_ORDER = "imtf/TreeView/SET_ORDER";
16
+ export declare const IDENTIFIER: {
17
+ readonly MAIN: "MAIN";
18
+ readonly FAVORITES: "FAVORITES";
19
+ readonly SEARCH: "SEARCH";
20
+ readonly INSPECTOR_DOCUMENT_LIST: "INSPECTOR_DOCUMENT_LIST";
21
+ readonly SEARCH_FILING: "SEARCH_FILING";
22
+ readonly TRASH: "TRASH";
23
+ };
24
+ export declare const CLEAR: {
25
+ readonly LEADING: "LEADING";
26
+ readonly TRAILING: "TRAILING";
27
+ };
28
+ export declare const MODAL_TYPES: {
29
+ readonly SELECT_COLUMNS: "imtf/TreeView/modal/SELECT_COLUMNS";
30
+ };
31
+ export declare const MIN_COLUMN_WIDTH = 60;
32
+ export declare const HORIZONTAL_MARGINS = 10;
33
+ export declare const SCROLLBAR_WIDTH = 17;
34
+ export declare const HEADER_HEIGHT = 48;
35
+ export declare const PAGINATION_SIZE_DEFAULT = 50;
36
+ export declare const DEFAULT_ROW_HEIGHT = 48;
@@ -0,0 +1,46 @@
1
+ import { Map, MapOf, Set } from "immutable";
2
+ import type { SupportedItem } from "../../providers/App/types";
3
+ import { SearchMask } from "../../providers/Definitions/types";
4
+ import { COLUMN_TYPES } from "../../../core/components/TreeViewCell/constants";
5
+ import { LOAD_MORE } from "../../../core/constants/kinds";
6
+ export type TreeViewState = MapOf<{
7
+ loading: boolean;
8
+ items: Set<string>;
9
+ rootOid: string | null;
10
+ limit: number;
11
+ offsets: Map<string, number>;
12
+ selectedItems: string[];
13
+ expandedItems: string[];
14
+ fields: TreeViewField[] | undefined;
15
+ fieldsHash: string | undefined;
16
+ order: string[] | undefined;
17
+ }>;
18
+ export type TreeViewFieldKey = "DOSSIER" | "FOLDER" | "HOME" | "FAVORITES" | "TRASH" | "ACCOUNT_PROFILES" | `SEARCH_MASK_${SearchMask["name"]}`;
19
+ export type TreeViewField<T = keyof typeof COLUMN_TYPES> = {
20
+ align?: "left" | "right" | "center";
21
+ kind?: "dms-core.ui.TableHeaderCell";
22
+ hidden?: boolean;
23
+ label: string;
24
+ message?: string;
25
+ margin?: number;
26
+ maxWidth?: number | `${string}%` | `${string}px`;
27
+ minWidth?: number | `${string}%` | `${string}px`;
28
+ name: string;
29
+ origin?: string;
30
+ resizable?: boolean;
31
+ type: T;
32
+ width?: number | `${string}%` | `${string}px`;
33
+ };
34
+ export type TableRow = {
35
+ kind: "dms-core.ui.TableRow";
36
+ cells: {
37
+ kind: "dms-core.ui.ItemTableCell";
38
+ value: string;
39
+ }[];
40
+ item: SupportedItem | {
41
+ kind: typeof LOAD_MORE;
42
+ oid: string;
43
+ [key: string]: any;
44
+ };
45
+ status: string;
46
+ };
@@ -1,3 +1,4 @@
1
+ import { Set } from "immutable";
1
2
  import { ContextType, ReactNode } from "react";
2
3
  import { IntlShape, MessageDescriptor } from "react-intl";
3
4
  import { Location } from "react-router";
@@ -20,8 +21,9 @@ export type ActionParams = {
20
21
  dirty?: boolean;
21
22
  formatMessage: IntlShape["formatMessage"];
22
23
  dropZoneItems: Items;
24
+ dropZoneStackOids: Set<string>;
23
25
  environment: ReturnType<typeof useEnvironment>;
24
- meta?: Record<string, unknown>;
26
+ meta?: string;
25
27
  openEachInodeInNewTabOrWindow: (inodes: Items, shouldOpenInNewWindow: boolean) => void;
26
28
  promptUpdateBinary: ContextType<typeof UploadContext>["promptUpdateBinary"];
27
29
  promptUpload: ContextType<typeof UploadContext>["promptUpload"];
@@ -30,6 +32,10 @@ export type ActionParams = {
30
32
  auditMessage?: string;
31
33
  location: Location;
32
34
  accessToken: string | undefined;
35
+ /**
36
+ * is a DropZone stack
37
+ */
38
+ isStack?: boolean;
33
39
  companionScanDPIResolution: number;
34
40
  };
35
41
  export type ActionDefinitionCreator = ActionDefinition | (((items: Items, params: Partial<ActionParams>) => ActionDefinition) & {
@@ -3,6 +3,12 @@ import { ReactElement, ReactNode } from "react";
3
3
  import { Inode } from "../Inodes/types";
4
4
  import { ModalProps } from "../Modal/types";
5
5
  import { TextFieldModalParams } from "./modals/TextFieldModal";
6
+ export declare function download(url: string): {
7
+ type: string;
8
+ payload: {
9
+ url: string;
10
+ };
11
+ };
6
12
  export declare function email({ subject, body }: {
7
13
  subject?: string | undefined;
8
14
  body?: string | undefined;
@@ -36,6 +42,17 @@ export declare function openContextMenu(coord: {
36
42
  export declare function closeContextMenu(): {
37
43
  type: string;
38
44
  };
45
+ export declare function dragStart(props?: {
46
+ [key: string]: unknown;
47
+ }): {
48
+ type: string;
49
+ payload: {
50
+ [key: string]: unknown;
51
+ };
52
+ };
53
+ export declare function dragEnd(): {
54
+ type: string;
55
+ };
39
56
  export declare function showGlobalModal(type: string, props: ModalProps): {
40
57
  payload: {
41
58
  type: string;
@@ -47,8 +64,6 @@ export declare function showGlobalModal(type: string, props: ModalProps): {
47
64
  fullWidth: boolean;
48
65
  maxWidth: DialogProps["maxWidth"];
49
66
  blocker: boolean;
50
- onConfirm: (...args: any[]) => void;
51
- onCancel: () => void;
52
67
  onClose: () => void;
53
68
  }> | undefined;
54
69
  };
@@ -68,8 +83,6 @@ export declare function showValidatemodal(callback: () => void, title?: ReactEle
68
83
  fullWidth: boolean;
69
84
  maxWidth: DialogProps["maxWidth"];
70
85
  blocker: boolean;
71
- onConfirm: (...args: any[]) => void;
72
- onCancel: () => void;
73
86
  onClose: () => void;
74
87
  }> | undefined;
75
88
  };
@@ -124,8 +137,6 @@ export declare function showAddCommentModal(modalProps: {
124
137
  fullWidth: boolean;
125
138
  maxWidth: DialogProps["maxWidth"];
126
139
  blocker: boolean;
127
- onConfirm: (...args: any[]) => void;
128
- onCancel: () => void;
129
140
  onClose: () => void;
130
141
  }> | undefined;
131
142
  };
@@ -145,8 +156,6 @@ export declare function showTextFieldModal(modalParams: TextFieldModalParams): {
145
156
  fullWidth: boolean;
146
157
  maxWidth: DialogProps["maxWidth"];
147
158
  blocker: boolean;
148
- onConfirm: (...args: any[]) => void;
149
- onCancel: () => void;
150
159
  onClose: () => void;
151
160
  }> | undefined;
152
161
  };
@@ -1,8 +1,11 @@
1
1
  export declare const GET_APP_AUTH_PARAMETERS = "imtf/App/GET_APP_AUTH_PARAMETERS";
2
+ export declare const DOWNLOAD = "imtf/App/DOWNLOAD";
2
3
  export declare const EMAIL = "imtf/App/EMAIL";
3
4
  export declare const OPEN_IN_NEW_WINDOW = "imtf/App/OPEN_IN_NEW_WINDOW";
4
5
  export declare const OPEN_CONTEXT_MENU = "imtf/App/OPEN_CONTEXT_MENU";
5
6
  export declare const CLOSE_CONTEXT_MENU = "imtf/App/CLOSE_CONTEXT_MENU";
7
+ export declare const DRAG_START = "imtf/App/DRAG_START";
8
+ export declare const DRAG_END = "imtf/App/DRAG_END";
6
9
  export declare const VALIDATION_OK = "imtf/App/MODAL_VALIDATION_OK";
7
10
  export declare const VALIDATION_NOT_OK = "imtf/App/MODAL_VALIDATION_NOT_OK";
8
11
  export declare const PREVIEW_DOCUMENT = "imtf/App/PREVIEW_DOCUMENT";
@@ -2,7 +2,6 @@ declare const useApplicationSettings: () => {
2
2
  data: {
3
3
  translations?: unknown;
4
4
  language?: unknown;
5
- navigateOnTaskCompletion?: unknown;
6
5
  contentType?: unknown;
7
6
  locales?: unknown;
8
7
  enableCaseCreation?: unknown;
@@ -30,6 +29,7 @@ declare const useApplicationSettings: () => {
30
29
  enableBarcodeProcessing?: unknown;
31
30
  enablePropertiesUpload?: unknown;
32
31
  navigateOnCaseCreation?: unknown;
32
+ navigateOnTaskCompletion?: unknown;
33
33
  authenticationWorkflow?: unknown;
34
34
  hitListLimit?: unknown;
35
35
  inodeListLimit?: unknown;
@@ -43,7 +43,7 @@ declare const useApplicationSettings: () => {
43
43
  applicationSortOrder?: string | undefined;
44
44
  capabilities?: import("../types").AppCapabilities | undefined;
45
45
  commentMaxLength?: number | undefined;
46
- defaultDossierViewMode?: "SEARCH" | "TREE" | undefined;
46
+ defaultDossierViewMode?: "TREE" | "SEARCH" | undefined;
47
47
  defaultModule?: string | undefined;
48
48
  externalApplications?: {
49
49
  name: string;
@@ -51,7 +51,6 @@ declare const useApplicationSettings: () => {
51
51
  }[] | undefined;
52
52
  inodeNameMaxLength?: number | undefined;
53
53
  kind?: "dms-core.ApplicationSettings" | undefined;
54
- useNewArchive?: boolean;
55
54
  };
56
55
  isLoading: boolean;
57
56
  };