@imtf/dms-core 1.0.0-beta.2 → 1.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/folder-manager/routes/InodeCollection/hooks/useRemoveInodesFromUrl.d.ts +4 -0
- package/core/components/Chip/Chip.d.ts +8 -0
- package/core/components/Chip/index.d.ts +1 -0
- package/core/components/CloseModalButton/CloseModalButton.d.ts +10 -0
- package/core/components/CloseModalButton/index.d.ts +1 -0
- package/core/components/DatePicker/DatePicker.d.ts +6 -0
- package/core/components/DatePicker/index.d.ts +1 -0
- package/core/components/Error/index.d.ts +7 -0
- package/core/components/FormattedNumberTextfield/FormattedNumberTextfield.d.ts +3 -0
- package/core/components/FormattedNumberTextfield/index.d.ts +1 -0
- package/core/components/ItemIcon/TaskIcon.d.ts +5 -0
- package/core/components/ItemIcon/index.d.ts +19 -0
- package/core/components/JsonForm/types.d.ts +15 -0
- package/core/components/Select/ListboxComponent.d.ts +5 -0
- package/core/components/Select/Select.d.ts +20 -0
- package/core/components/Select/index.d.ts +1 -0
- package/core/components/dms-ui/DatasourceAutocomplete.d.ts +14 -0
- package/core/components/dms-ui/ImmutableComposer.d.ts +15 -0
- package/core/components/dms-ui/immutableDefault/DatasourceAutocomplete.d.ts +19 -0
- package/core/components/dms-ui/immutableDefault/DatePicker.d.ts +15 -0
- package/core/components/dms-ui/immutableDefault/Group.d.ts +16 -0
- package/core/components/dms-ui/immutableDefault/NumberFormattedTexfield.d.ts +14 -0
- package/core/components/dms-ui/immutableDefault/NumberTextfield.d.ts +2 -0
- package/core/components/dms-ui/immutableDefault/RadioButton.d.ts +19 -0
- package/core/components/dms-ui/immutableDefault/Select.d.ts +19 -0
- package/core/components/dms-ui/immutableDefault/Switch.d.ts +19 -0
- package/core/components/dms-ui/immutableDefault/Textfield.d.ts +21 -0
- package/core/components/dms-ui/immutableDefault/index.d.ts +10 -0
- package/core/components/dms-ui/immutableFacet/DatasourceAutocomplete.d.ts +13 -0
- package/core/components/dms-ui/immutableFacet/DateRangeSearcher.d.ts +14 -0
- package/core/components/dms-ui/immutableFacet/Facet.d.ts +23 -0
- package/core/components/dms-ui/immutableFacet/NumericRangePicker.d.ts +14 -0
- package/core/components/dms-ui/immutableFacet/Select.d.ts +13 -0
- package/core/components/dms-ui/immutableFacet/Textfield.d.ts +13 -0
- package/core/components/dms-ui/immutableFacet/TypePicker.d.ts +13 -0
- package/core/components/dms-ui/immutableFacet/index.d.ts +7 -0
- package/core/components/dms-ui/immutableFacet/styles.d.ts +5 -0
- package/core/components/dms-ui/messages.d.ts +27 -0
- package/core/components/dms-ui/types.d.ts +49 -0
- package/core/components/dms-ui/utils/getImmutableComponent.d.ts +19 -0
- package/core/components/dms-ui/utils/removeLabelFromValues.d.ts +1 -0
- package/core/components/dms-ui/utils/utils.d.ts +3 -0
- package/core/constants/apps.d.ts +0 -5
- package/core/constants/kinds.d.ts +1 -0
- package/core/containers/DataGrid/constants.d.ts +26 -0
- package/core/containers/DataGrid/types.d.ts +36 -0
- package/core/containers/DataGrid/utils/handleWidth.d.ts +18 -0
- package/core/containers/DropZone/actions.d.ts +25 -0
- package/core/containers/DropZone/constants.d.ts +5 -0
- package/core/containers/DropZone/selectors.d.ts +8 -70
- package/core/containers/PDFTronViewer/components/LightViewer/config.d.ts +1 -0
- package/core/containers/PDFTronViewer/constants.d.ts +0 -1
- package/core/containers/SearchDataGrid/types.d.ts +16 -0
- package/core/hooks/useCollator.d.ts +2 -0
- package/core/providers/Actions/types.d.ts +2 -4
- package/core/providers/App/actions.d.ts +8 -6
- package/core/providers/App/constants.d.ts +0 -1
- package/core/providers/App/hooks/useApplicationSettings.d.ts +3 -2
- package/core/providers/App/hooks/useDownload.d.ts +23 -0
- package/core/providers/App/hooks/useSettings.d.ts +4 -8
- package/core/providers/App/hooks/useTriggerItems.d.ts +11 -0
- package/core/providers/App/messages.d.ts +8 -0
- package/core/providers/App/types.d.ts +8 -2
- package/core/providers/App/utils/convertOldUserSettings.d.ts +1 -1
- package/core/providers/App/utils/convertTreeviewFields.d.ts +69 -0
- package/core/providers/App/utils/sortListByWeightAndName.d.ts +8 -0
- package/core/providers/Cases/actions.d.ts +16 -3
- package/core/providers/Cases/hooks/useCaseFiles.d.ts +4 -0
- package/core/providers/Cases/utils/common.d.ts +37 -9
- package/core/providers/Ccm/types.d.ts +5 -0
- package/core/providers/DataGrid/Context.d.ts +47 -0
- package/core/providers/Definitions/hooks/useTaskDefinition.d.ts +1 -0
- package/core/providers/Definitions/hooks/useTaskDefinitions.d.ts +4 -0
- package/core/providers/Definitions/types.d.ts +14 -11
- package/core/providers/Definitions/utils/typesToTypeRefs.d.ts +5 -0
- package/core/providers/Inodes/actions.d.ts +13 -441
- package/core/providers/Inodes/constants.d.ts +1 -44
- package/core/providers/Inodes/hooks/useDelete.d.ts +5 -2
- package/core/providers/Inodes/hooks/useInodeByOid.d.ts +5 -0
- package/core/providers/Inodes/hooks/useInodeTypeAssignment.d.ts +4 -0
- package/core/providers/Inodes/hooks/useInodesByOids.d.ts +7 -0
- package/core/providers/Inodes/hooks/usePropertiesType.d.ts +14 -0
- package/core/providers/Inodes/hooks/usePropertyComponents.d.ts +11 -0
- package/core/providers/Inodes/hooks/useRestore.d.ts +22 -0
- package/core/providers/Inodes/hooks/useSortedTypes.d.ts +5 -0
- package/core/providers/Inodes/hooks/useTypes.d.ts +10 -0
- package/core/providers/Inodes/hooks/useUpdateInodes.d.ts +35 -0
- package/core/providers/Inodes/messages.d.ts +8 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/AccordionItem.d.ts +29 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/BarcodeLoading.d.ts +5 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/ModalContent.d.ts +35 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/index.d.ts +12 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/messages.d.ts +59 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/types.d.ts +43 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/addInodeOidToName.d.ts +22 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/createBarcodeProcessingFormData.d.ts +5 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/findMostUsedValue.d.ts +18 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/getInodesRequiredFieldNames.d.ts +10 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/getInvalidInodeOids.d.ts +10 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/replaceComponentsWithConfig.d.ts +10 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/resolveStatusIconAndColor.d.ts +5 -0
- package/core/providers/Inodes/modals/AssignTypeModal.d.ts +9 -0
- package/core/providers/Inodes/service.d.ts +7 -6
- package/core/providers/Inodes/types.d.ts +19 -49
- package/core/providers/Inodes/utils/getAssignableTypesFromInode.d.ts +2 -0
- package/core/providers/Inodes/utils/getBulkUrl.d.ts +1 -0
- package/core/providers/Inodes/utils/getDataFromForbiddenError.d.ts +18 -0
- package/core/providers/Inodes/utils/is.d.ts +1 -1
- package/core/providers/Inodes/utils/isImmutable.d.ts +1 -0
- package/core/providers/Inodes/utils/isInodeType.d.ts +3 -0
- package/core/providers/Inodes/utils/isInodeTypeRef.d.ts +3 -0
- package/core/providers/Inodes/utils/mutateInodes.d.ts +7 -0
- package/core/providers/Inodes/utils/replacePropertiesWithConfig.d.ts +10 -0
- package/core/providers/Inodes/utils/resolveInodeTypes.d.ts +183 -0
- package/core/providers/Inspectors/Context.d.ts +2 -0
- package/core/providers/Localization/Context.d.ts +7 -0
- package/core/providers/Localization/hooks/useLocale.d.ts +3 -0
- package/core/providers/MdmGraph/actions.d.ts +8 -0
- package/core/providers/MdmGraph/types.d.ts +11 -0
- package/core/providers/Modal/hooks/useModal.d.ts +44 -0
- package/core/providers/Modal/slice.d.ts +6 -0
- package/core/providers/Modal/types.d.ts +2 -0
- package/core/providers/Plugins/hooks/cases/useCaseDocuments.d.ts +6 -1
- package/core/providers/Plugins/hooks/inodes/useActions.d.ts +13 -2
- package/core/providers/Plugins/hooks/tasks/useTaskCompletionDisabling.d.ts +9 -0
- package/core/providers/Plugins/pluginRegistry.d.ts +60 -22
- package/core/providers/Search/hooks/useReloader.d.ts +1 -1
- package/core/providers/Search/reducer.d.ts +7 -4
- package/core/providers/Search/selectors.d.ts +48 -262
- package/core/providers/Search/types.d.ts +26 -28
- package/core/providers/Search/utils/createQuery.d.ts +5 -5
- package/core/providers/SystemNotification/slice.d.ts +1 -1
- package/core/providers/Tasks/Context.d.ts +10 -0
- 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/useTaskStatus.d.ts +8 -0
- package/core/providers/Uploader/Context.d.ts +4 -4
- package/core/routes/navigate.d.ts +1 -1
- package/core/services/utils/generatePaths.d.ts +1 -1
- package/core/theme/theme.base.d.ts +32 -0
- package/core/theme/theme.lightMode.d.ts +206 -0
- package/core/utils/action.d.ts +2 -2
- package/core/utils/date/getUTCDateInCurrentTimezone.d.ts +11 -0
- package/core/utils/hasValidKind.d.ts +2 -0
- package/core/utils/immutable.d.ts +2 -0
- package/core/utils/string.d.ts +5 -5
- package/index.d.ts +5 -0
- package/package.json +1 -1
- package/store.d.ts +15 -10
- package/vendor/@imtf/react-components/components/Chip/utils.d.ts +2 -2
- package/vendor/@imtf/react-components/utils/constants.d.ts +0 -20
- package/core/components/JsonForm/widgets/widgetHOC.d.ts +0 -33
- package/core/components/TreeView/types.d.ts +0 -17
- package/core/components/TreeViewCell/constants.d.ts +0 -25
- package/core/containers/TreeView/actions.d.ts +0 -197
- package/core/containers/TreeView/constants.d.ts +0 -36
- package/core/containers/TreeView/types.d.ts +0 -46
- package/core/providers/App/utils/isSupportedItem.d.ts +0 -2
- package/core/providers/Cases/reducer.d.ts +0 -18
- package/core/providers/Cases/selectors.d.ts +0 -64
- package/core/providers/Inodes/selectors.d.ts +0 -55
- package/core/providers/MdmGraph/containers/MdmEntitiesEditor/utils/createHighlightsSchema.d.ts +0 -13
- package/core/providers/MdmGraph/utils/misc.d.ts +0 -13
- package/core/providers/Plugins/hooks/inodes/useInodesByOids.d.ts +0 -6
- package/core/providers/Tasks/hooks/useQuestionnaire.d.ts +0 -4
- package/core/utils/requestMiddleware.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentType } from "react";
|
|
2
2
|
import { Inode, InodeType } from "../Inodes/types";
|
|
3
3
|
export type UploadContextType = {
|
|
4
|
-
upload: (files: File[],
|
|
4
|
+
upload: (files: File[], targetInode: Inode, fileProps: Record<string, any>) => Promise<null>;
|
|
5
5
|
icosUpload: (params: {
|
|
6
6
|
files: File[];
|
|
7
7
|
caseOid?: string;
|
|
@@ -11,7 +11,7 @@ export type UploadContextType = {
|
|
|
11
11
|
fileInodes?: Inode[];
|
|
12
12
|
types: InodeType[];
|
|
13
13
|
}) => Promise<null>;
|
|
14
|
-
updateBinary: (inodeOid: string, file: File,
|
|
14
|
+
updateBinary: (inodeOid: string, file: File, updateInodeName?: boolean) => Promise<null>;
|
|
15
15
|
promptGetFiles: (params: {
|
|
16
16
|
accept?: string;
|
|
17
17
|
multiple?: boolean;
|
|
@@ -19,7 +19,7 @@ export type UploadContextType = {
|
|
|
19
19
|
promptUpload: (params: {
|
|
20
20
|
multiple?: boolean;
|
|
21
21
|
accept?: string;
|
|
22
|
-
|
|
22
|
+
targetInode: Inode;
|
|
23
23
|
expandItem?: boolean;
|
|
24
24
|
type?: InodeType;
|
|
25
25
|
properties?: any;
|
|
@@ -27,7 +27,7 @@ export type UploadContextType = {
|
|
|
27
27
|
promptUpdateBinary: (params: {
|
|
28
28
|
accept?: string;
|
|
29
29
|
target: string;
|
|
30
|
-
|
|
30
|
+
updateInodeName?: boolean;
|
|
31
31
|
}) => Promise<null>;
|
|
32
32
|
promptIcosUpload: (params: {
|
|
33
33
|
multiple?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NavigateFunction, NavigateOptions, To } from "react-router
|
|
1
|
+
import { NavigateFunction, NavigateOptions, To } from "react-router";
|
|
2
2
|
export declare const setNavigate: (navigate: NavigateFunction) => void;
|
|
3
3
|
/**
|
|
4
4
|
* This function is used to navigate to a specific path, and has to be used
|
|
@@ -0,0 +1,32 @@
|
|
|
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;
|
|
@@ -0,0 +1,206 @@
|
|
|
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;
|
package/core/utils/action.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Action wrapper to merge provided meta with initial action
|
|
3
3
|
* @param {Action<any>} action Initial action
|
|
4
|
-
* @param {
|
|
4
|
+
* @param {Record<string, unknown>} meta Meta to inject
|
|
5
5
|
* @return {Action<any>} Action augmented with provided meta
|
|
6
6
|
*/
|
|
7
|
-
export function withMeta(action: Action<any>, meta?:
|
|
7
|
+
export function withMeta(action: Action<any>, meta?: Record<string, unknown>): Action<any>;
|
|
8
8
|
/**
|
|
9
9
|
* Return the action wrapped in a promise
|
|
10
10
|
* @param {function} dispatch The redux dispatcher
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
package/core/utils/string.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Replace every
|
|
3
|
-
* @param
|
|
4
|
-
* @param
|
|
5
|
-
* @param
|
|
2
|
+
* Replace every matches by text or react node
|
|
3
|
+
* @param string The string to match and replace
|
|
4
|
+
* @param matcher The RegExp to match. MUST contain a capture group.
|
|
5
|
+
* @param replacer Params : match, index. It needs to return a string or jsx to replace the match.
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
export declare function matchAndReplace(string: string, matcher:
|
|
8
|
+
export declare function matchAndReplace(string: string, matcher: RegExp, replacer: (match: string, index: number) => string | JSX.Element): (string | JSX.Element)[];
|
|
9
9
|
/**
|
|
10
10
|
* Returns a hash code for a string.
|
|
11
11
|
* (Compatible to Java's String.hashCode())
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is used to build the typescript declaration file for the IMTF plugins.
|
|
3
|
+
* It is not used in the application itself.
|
|
4
|
+
* All dms-core types that are used in the plugins should be exported here.
|
|
5
|
+
*/
|
|
1
6
|
import PluginRegistry from "./core/providers/Plugins/pluginRegistry";
|
|
2
7
|
export type { InspectorProps } from "./core/providers/Inspectors/types";
|
|
3
8
|
export type * from "./core/providers/Plugins/types/componentPlugins";
|
package/package.json
CHANGED
package/store.d.ts
CHANGED
|
@@ -13,12 +13,13 @@ declare const getRootReducer: (asyncReducers?: {
|
|
|
13
13
|
results: {
|
|
14
14
|
contextName: string | undefined;
|
|
15
15
|
count: number | null;
|
|
16
|
-
head: import("./core/containers/
|
|
16
|
+
head: import("./core/containers/DataGrid/types").ColumnDefinition[];
|
|
17
17
|
mask: import("./core/providers/Definitions/types").SearchMask | null;
|
|
18
|
-
rows: import("./core/containers/
|
|
18
|
+
rows: import("./core/containers/SearchDataGrid/types").TableRow[];
|
|
19
19
|
hasUnknowCount: boolean;
|
|
20
20
|
timestamp: number | undefined;
|
|
21
21
|
capabilities: import("./core/providers/Search/types").SearchResultCapabilities;
|
|
22
|
+
alerts?: import("./core/providers/Search/types").SearchResultAlert[];
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
25
|
notificationCenter: import("./core/containers/NotificationCenter/slice").NotificationCenterState;
|
|
@@ -60,12 +61,13 @@ export declare const setupStore: (preloadedState?: RootState, injectedReducers?:
|
|
|
60
61
|
results: {
|
|
61
62
|
contextName: string | undefined;
|
|
62
63
|
count: number | null;
|
|
63
|
-
head: import("./core/containers/
|
|
64
|
+
head: import("./core/containers/DataGrid/types").ColumnDefinition[];
|
|
64
65
|
mask: import("./core/providers/Definitions/types").SearchMask | null;
|
|
65
|
-
rows: import("./core/containers/
|
|
66
|
+
rows: import("./core/containers/SearchDataGrid/types").TableRow[];
|
|
66
67
|
hasUnknowCount: boolean;
|
|
67
68
|
timestamp: number | undefined;
|
|
68
69
|
capabilities: import("./core/providers/Search/types").SearchResultCapabilities;
|
|
70
|
+
alerts?: import("./core/providers/Search/types").SearchResultAlert[];
|
|
69
71
|
};
|
|
70
72
|
};
|
|
71
73
|
notificationCenter: import("./core/containers/NotificationCenter/slice").NotificationCenterState;
|
|
@@ -84,12 +86,13 @@ export declare const setupStore: (preloadedState?: RootState, injectedReducers?:
|
|
|
84
86
|
results: {
|
|
85
87
|
contextName: string | undefined;
|
|
86
88
|
count: number | null;
|
|
87
|
-
head: import("./core/containers/
|
|
89
|
+
head: import("./core/containers/DataGrid/types").ColumnDefinition[];
|
|
88
90
|
mask: import("./core/providers/Definitions/types").SearchMask | null;
|
|
89
|
-
rows: import("./core/containers/
|
|
91
|
+
rows: import("./core/containers/SearchDataGrid/types").TableRow[];
|
|
90
92
|
hasUnknowCount: boolean;
|
|
91
93
|
timestamp: number | undefined;
|
|
92
94
|
capabilities: import("./core/providers/Search/types").SearchResultCapabilities;
|
|
95
|
+
alerts?: import("./core/providers/Search/types").SearchResultAlert[];
|
|
93
96
|
};
|
|
94
97
|
};
|
|
95
98
|
notificationCenter: import("./core/containers/NotificationCenter/slice").NotificationCenterState;
|
|
@@ -113,12 +116,13 @@ declare const _default: {
|
|
|
113
116
|
results: {
|
|
114
117
|
contextName: string | undefined;
|
|
115
118
|
count: number | null;
|
|
116
|
-
head: import("./core/containers/
|
|
119
|
+
head: import("./core/containers/DataGrid/types").ColumnDefinition[];
|
|
117
120
|
mask: import("./core/providers/Definitions/types").SearchMask | null;
|
|
118
|
-
rows: import("./core/containers/
|
|
121
|
+
rows: import("./core/containers/SearchDataGrid/types").TableRow[];
|
|
119
122
|
hasUnknowCount: boolean;
|
|
120
123
|
timestamp: number | undefined;
|
|
121
124
|
capabilities: import("./core/providers/Search/types").SearchResultCapabilities;
|
|
125
|
+
alerts?: import("./core/providers/Search/types").SearchResultAlert[];
|
|
122
126
|
};
|
|
123
127
|
};
|
|
124
128
|
notificationCenter: import("./core/containers/NotificationCenter/slice").NotificationCenterState;
|
|
@@ -137,12 +141,13 @@ declare const _default: {
|
|
|
137
141
|
results: {
|
|
138
142
|
contextName: string | undefined;
|
|
139
143
|
count: number | null;
|
|
140
|
-
head: import("./core/containers/
|
|
144
|
+
head: import("./core/containers/DataGrid/types").ColumnDefinition[];
|
|
141
145
|
mask: import("./core/providers/Definitions/types").SearchMask | null;
|
|
142
|
-
rows: import("./core/containers/
|
|
146
|
+
rows: import("./core/containers/SearchDataGrid/types").TableRow[];
|
|
143
147
|
hasUnknowCount: boolean;
|
|
144
148
|
timestamp: number | undefined;
|
|
145
149
|
capabilities: import("./core/providers/Search/types").SearchResultCapabilities;
|
|
150
|
+
alerts?: import("./core/providers/Search/types").SearchResultAlert[];
|
|
146
151
|
};
|
|
147
152
|
};
|
|
148
153
|
notificationCenter: import("./core/containers/NotificationCenter/slice").NotificationCenterState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export function getMargin(margin: any): 4 |
|
|
2
|
-
export function getRadius(radius: any): 0 | 3 |
|
|
1
|
+
export function getMargin(margin: any): 4 | 8 | 16;
|
|
2
|
+
export function getRadius(radius: any): 0 | 3 | 5 | 2 | 22;
|
|
3
3
|
export function getBorderColor(props: any, theme: any): any;
|
|
4
4
|
export function getColor(props: any, theme: any): any;
|
|
5
5
|
export function getBackgroundColor(props: any, theme: any): any;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/** Local */
|
|
2
|
-
export declare const APP_LOCALES: {
|
|
3
|
-
locale: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}[];
|
|
6
|
-
export declare const DEFAULT_LOCALE = "en";
|
|
7
1
|
/** components and story stuff */
|
|
8
2
|
export declare const MATERIAL_COLOR_TYPES: {
|
|
9
3
|
readonly PRIMARY: "primary";
|
|
@@ -16,13 +10,6 @@ export declare const MATERIAL_COLOR_TYPES: {
|
|
|
16
10
|
};
|
|
17
11
|
export declare const MATERIAL_COLOR_TYPES_ARRAY: readonly ["primary", "secondary", "info", "warning", "error", "success", "inherit"];
|
|
18
12
|
export declare const DEFAULT_MATERIAL_COLOR_TYPE = "primary";
|
|
19
|
-
export declare const NUMBER_OPTIONS_DEFAULT: {
|
|
20
|
-
readonly range: true;
|
|
21
|
-
readonly min: 10;
|
|
22
|
-
readonly max: 100;
|
|
23
|
-
readonly step: 1;
|
|
24
|
-
};
|
|
25
|
-
export declare const DEFAULT_COLOR = "#000000";
|
|
26
13
|
export declare const WHITE_SPACE_TYPES: {
|
|
27
14
|
readonly NORMAL: "normal";
|
|
28
15
|
readonly NOWRAP: "nowrap";
|
|
@@ -33,13 +20,6 @@ export declare const WHITE_SPACE_TYPES: {
|
|
|
33
20
|
readonly INHERIT: "inherit";
|
|
34
21
|
};
|
|
35
22
|
export declare const WHITE_SPACE_TYPES_ARRAY: readonly ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "initial", "inherit"];
|
|
36
|
-
export declare const DEFAULT_WHITE_SPACE = "nowrap";
|
|
37
|
-
export declare const CARD_TYPES: {
|
|
38
|
-
readonly NORMAL: "normal";
|
|
39
|
-
readonly GREY: "grey";
|
|
40
|
-
readonly FULL_GREY: "fullGrey";
|
|
41
|
-
};
|
|
42
|
-
export declare const DEFAULT_CARD_TYPE = "grey";
|
|
43
23
|
export declare const DEFAULT_DATE_TITLE_FORMAT = "iii, dd MMM yyyy";
|
|
44
24
|
export declare const DEFAULT_IMAGE_URL = "https://placekitten.com/200/286";
|
|
45
25
|
export declare const COLOR_TYPES: {
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AcmComment } from "../../../providers/App/types";
|
|
3
|
-
import { HighlightsSchema } from "../../../providers/MdmGraph/containers/MdmEntitiesEditor/utils/createHighlightsSchema";
|
|
4
|
-
import { Entity } from "../../../providers/MdmGraph/types";
|
|
5
|
-
import { UpdateHighlightMode } from "../../../providers/Tasks/types";
|
|
6
|
-
export type WrappedCompomentExtraProps = {
|
|
7
|
-
formContext: {
|
|
8
|
-
taskOid: string;
|
|
9
|
-
fieldHistory: unknown[];
|
|
10
|
-
fieldComments: AcmComment[] | undefined;
|
|
11
|
-
fieldHighlights?: HighlightsSchema["schema"][string];
|
|
12
|
-
taskDataHistoryFrom: {
|
|
13
|
-
mode: UpdateHighlightMode;
|
|
14
|
-
fromDate: string | null;
|
|
15
|
-
};
|
|
16
|
-
create: boolean;
|
|
17
|
-
entity: Entity | undefined;
|
|
18
|
-
setSubmitParams: (params: Record<string, unknown>) => void;
|
|
19
|
-
};
|
|
20
|
-
onChange: (...params: unknown[]) => void;
|
|
21
|
-
options?: {
|
|
22
|
-
triggerQuestionnaireReload?: boolean;
|
|
23
|
-
triggerTaskDataReload?: boolean;
|
|
24
|
-
};
|
|
25
|
-
rawErrors: unknown[];
|
|
26
|
-
label: string;
|
|
27
|
-
name: string;
|
|
28
|
-
uiSchema: {
|
|
29
|
-
"ui:widget": string;
|
|
30
|
-
};
|
|
31
|
-
disabled: boolean;
|
|
32
|
-
};
|
|
33
|
-
export default function widgetHOC<P>(WrappedComponent: React.ComponentType<P>): (props: P & WrappedCompomentExtraProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
};
|