@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,44 +0,0 @@
1
- import { ReactNode } from "react";
2
- import { AssignTypeAndPropertiesModalType } from "../../Inodes/modals/AssignTypeAndPropertiesModal";
3
- import { AssignTypeModalType } from "../../Inodes/modals/AssignTypeModal";
4
- import { Inode } from "../../Inodes/types";
5
- import * as PERMISSIONS from "../../../../core/constants/permissions";
6
- type ValidateModalOptions = {
7
- title?: ReactNode;
8
- message?: ReactNode;
9
- disableCancel?: boolean;
10
- correlationId?: string;
11
- };
12
- type AssignTypeModalOptions = AssignTypeModalType;
13
- type AssignTypeAndPropertiesModalOptions = AssignTypeAndPropertiesModalType;
14
- type NameConflictModalOptions = {
15
- permissions: {
16
- [PERMISSIONS.UPDATE]: boolean;
17
- [PERMISSIONS.RENAME]: boolean;
18
- };
19
- name: string;
20
- isPlural: boolean;
21
- shouldCheckForExtensionRename: boolean;
22
- };
23
- type ForceFolderActionModalOptions = {
24
- targettedFolders: Inode[];
25
- inodesPaths: string[];
26
- itemCount: number;
27
- action: "DELETE" | "MOVE" | "DUPLICATE";
28
- args?: {
29
- inodes: Inode[];
30
- permanent?: boolean;
31
- showNotification?: boolean;
32
- };
33
- };
34
- export declare function useModal(): {
35
- showValidateModal: (options: ValidateModalOptions) => Promise<boolean>;
36
- showAssignTypeModal: (options: AssignTypeModalOptions) => Promise<any[] | null>;
37
- showAssignTypeAndPropertiesModal: (options: AssignTypeAndPropertiesModalOptions) => Promise<any[] | null>;
38
- showNameConflictModal: (options: NameConflictModalOptions) => Promise<{
39
- type: typeof PERMISSIONS.UPDATE | typeof PERMISSIONS.RENAME;
40
- newName: string;
41
- } | null>;
42
- showForceFolderActionModal: (options: ForceFolderActionModalOptions) => Promise<any>;
43
- };
44
- export {};
@@ -1,14 +0,0 @@
1
- import { ReactNode } from "react";
2
- type ComponentPluginContextType = {
3
- props: {
4
- identifier?: string;
5
- [key: string]: unknown;
6
- };
7
- };
8
- declare const ComponentPluginContext: import("react").Context<ComponentPluginContextType>;
9
- export default ComponentPluginContext;
10
- export declare function useComponentPluginContext(): ComponentPluginContextType;
11
- export declare const ComponentPluginProps: ({ children, ...props }: {
12
- children: ReactNode;
13
- [key: string]: unknown;
14
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,27 +0,0 @@
1
- import { ComponentType } from "react";
2
- /**
3
- * This component can be used to replace a component
4
- * but from the "consumer" side (i.e. the side that uses the component)
5
- */
6
- export declare const WithComponentPlugin: <P extends Record<string, unknown>>(props: {
7
- component: ComponentType<P> | keyof JSX.IntrinsicElements;
8
- /**
9
- * The identifier of the component. It must be unique.
10
- * First segment is the type of the component
11
- * Second segment is the name of the component
12
- */
13
- identifier: `${string}/${string}`;
14
- /**
15
- * Exhausive list of the props that should be forwarded to the component.
16
- * By default none are forwarded.
17
- */
18
- forwardedProps?: (keyof P)[];
19
- /**
20
- * Extra props that should be passed to the component
21
- */
22
- extraProps?: Record<string, unknown>;
23
- /**
24
- * Function to alter the props before passing them to the component
25
- */
26
- alterProps?: (propName: keyof P, propValue: P[keyof P]) => P[keyof P];
27
- } & P) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { Entity, Relation } from "../../MdmGraph/types";
2
- /**
3
- * Mutate the task data, adding the new entities and relations to it.
4
- */
5
- declare const mutateTaskData: (taskOid: string, newEntities: Entity[] | undefined, newRelations: Relation[] | undefined, action: "create" | "delete" | "edit", revalidate: boolean) => void;
6
- export default mutateTaskData;
@@ -1,32 +0,0 @@
1
- declare const baseTheme: {
2
- typography: {
3
- fontSize: number;
4
- lineHeight: number;
5
- fontFamily: string;
6
- extended: {
7
- fontFamily: string;
8
- };
9
- h4: {
10
- fontSize: number;
11
- };
12
- h5: {
13
- fontSize: number;
14
- };
15
- h6: {
16
- fontSize: number;
17
- };
18
- };
19
- palette: {
20
- ccm: {
21
- risk: {
22
- LOW: string;
23
- MEDIUM_LOW: string;
24
- MEDIUM: string;
25
- MEDIUM_HIGH: string;
26
- HIGH: string;
27
- VERY_HIGH: string;
28
- };
29
- };
30
- };
31
- };
32
- export default baseTheme;
@@ -1,206 +0,0 @@
1
- declare const imtfThemeLight: {
2
- palette: {
3
- mode: string;
4
- extended: {
5
- success: string;
6
- error: string;
7
- required: string;
8
- warning: string;
9
- search: {
10
- contrast: string;
11
- };
12
- row: {
13
- hover: string;
14
- selected: string;
15
- };
16
- drag: {
17
- border: string;
18
- main: string;
19
- };
20
- toolbar: {
21
- search: {
22
- contrast: string;
23
- };
24
- background: string;
25
- };
26
- creator: {
27
- contrast: string;
28
- select: {
29
- main: string;
30
- };
31
- };
32
- inspector: {
33
- header: string;
34
- };
35
- warnningBanner: {
36
- main: string;
37
- };
38
- task: {
39
- type: {
40
- 0: string;
41
- 1: string;
42
- 2: string;
43
- 3: string;
44
- 4: string;
45
- 5: string;
46
- 6: string;
47
- 7: string;
48
- 8: string;
49
- 9: string;
50
- 10: string;
51
- 11: string;
52
- 12: string;
53
- 13: string;
54
- 14: string;
55
- 15: string;
56
- 16: string;
57
- 17: string;
58
- };
59
- };
60
- state: {
61
- completed: {
62
- main: string;
63
- border: string;
64
- };
65
- active: {
66
- main: string;
67
- border: string;
68
- };
69
- rejected: {
70
- main: string;
71
- border: string;
72
- };
73
- pending: {
74
- main: string;
75
- border: string;
76
- };
77
- unknow: {
78
- main: string;
79
- border: string;
80
- };
81
- };
82
- permissions: {
83
- additive: string;
84
- substractive: string;
85
- adminBackground: string;
86
- permissions: string;
87
- };
88
- aml: {
89
- error: string;
90
- incomingAmount: string;
91
- outgoingAmount: string;
92
- };
93
- admin: {
94
- terms: {
95
- red: string;
96
- pink: string;
97
- purple: string;
98
- deepPurple: string;
99
- indigo: string;
100
- blue: string;
101
- lightBlue: string;
102
- cyan: string;
103
- teal: string;
104
- green: string;
105
- lightGreen: string;
106
- lime: string;
107
- yellow: string;
108
- amber: string;
109
- orange: string;
110
- deepOrange: string;
111
- brown: string;
112
- grey: string;
113
- blueGrey: string;
114
- };
115
- };
116
- backgroundSec: {
117
- active: string;
118
- };
119
- pdfTron: {
120
- icon: string;
121
- compare: {
122
- colorOne: string;
123
- colorTwo: string;
124
- };
125
- };
126
- chip: {
127
- background: {
128
- darkblue: string;
129
- };
130
- };
131
- compose: {
132
- pageNo: string;
133
- iconDelete: string;
134
- };
135
- scrollbar: {
136
- background: {
137
- main: string;
138
- hover: string;
139
- };
140
- corner: {
141
- background: string;
142
- };
143
- thumb: {
144
- border: string;
145
- background: {
146
- main: string;
147
- hover: string;
148
- };
149
- };
150
- };
151
- shadow: {
152
- light: string;
153
- main: string;
154
- };
155
- icon: {
156
- contrast: string;
157
- light: string;
158
- main: string;
159
- disabled: string;
160
- };
161
- border: {
162
- primary: string;
163
- light: string;
164
- contrast: string;
165
- };
166
- text: {
167
- contrast: string;
168
- active: string;
169
- disabled: string;
170
- };
171
- background: {
172
- primary: string;
173
- dark: string;
174
- light: string;
175
- main: string;
176
- active: string;
177
- loader: string;
178
- };
179
- avatar: {
180
- background: string;
181
- };
182
- questionnaire: {
183
- card: {
184
- background: string;
185
- };
186
- };
187
- tag: {
188
- ripple: {
189
- background: string;
190
- };
191
- moreButton: {
192
- background: string;
193
- };
194
- deleteButton: {
195
- light: string;
196
- dark: string;
197
- hover: {
198
- light: string;
199
- dark: string;
200
- };
201
- };
202
- };
203
- };
204
- };
205
- };
206
- export default imtfThemeLight;
@@ -1,11 +0,0 @@
1
- /**
2
- * Creates a new Date object set to the same date and time as UTC whatever the local timezone is.
3
- * Since we generally use UTC dates in the backend, this function is useful to avoid timezone issues.
4
- * @param isoString The ISO string to parse.
5
- * @returns The new Date object.
6
- * @example
7
- * In CEST timezone (UTC+2):
8
- * new Date("2020-01-01T23:59:59.000Z") => "2020-01-02T01:59:59.000+01:00"
9
- * parseISOWithoutTimezone("2021-09-01T23:59:59.000Z") => Wed Sep 01 2021 23:59:59 GMT+0200 (Central European Summer Time)
10
- */
11
- export default function getUTCDateInCurrentTimezone(isoString: string): Date;
@@ -1,2 +0,0 @@
1
- declare const hasValidKind: (item: unknown, kind: string) => boolean;
2
- export default hasValidKind;
@@ -1,2 +0,0 @@
1
- export const map: Map<any, any>;
2
- import { Map } from "immutable";