@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,5 +1,3 @@
|
|
|
1
|
-
import { TreeViewState } from "../../../core/containers/TreeView/types";
|
|
2
|
-
import { SupportedItem } from "../App/types";
|
|
3
1
|
import { SearchState } from "./reducer";
|
|
4
2
|
export declare const loadingSelector: ((state: any) => boolean) & {
|
|
5
3
|
clearCache: () => void;
|
|
@@ -46,12 +44,13 @@ export declare const errorSelector: ((state: any) => any) & {
|
|
|
46
44
|
export declare const resultsSelector: ((state: any) => {
|
|
47
45
|
contextName: string | undefined;
|
|
48
46
|
count: number | null;
|
|
49
|
-
head: import("
|
|
47
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
50
48
|
mask: import("../Definitions/types").SearchMask | null;
|
|
51
|
-
rows: import("
|
|
49
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
52
50
|
hasUnknowCount: boolean;
|
|
53
51
|
timestamp: number | undefined;
|
|
54
52
|
capabilities: import("./types").SearchResultCapabilities;
|
|
53
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
55
54
|
}) & {
|
|
56
55
|
clearCache: () => void;
|
|
57
56
|
resultsCount: () => number;
|
|
@@ -60,22 +59,24 @@ export declare const resultsSelector: ((state: any) => {
|
|
|
60
59
|
resultFunc: (resultFuncArgs_0: SearchState) => {
|
|
61
60
|
contextName: string | undefined;
|
|
62
61
|
count: number | null;
|
|
63
|
-
head: import("
|
|
62
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
64
63
|
mask: import("../Definitions/types").SearchMask | null;
|
|
65
|
-
rows: import("
|
|
64
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
66
65
|
hasUnknowCount: boolean;
|
|
67
66
|
timestamp: number | undefined;
|
|
68
67
|
capabilities: import("./types").SearchResultCapabilities;
|
|
68
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
69
69
|
};
|
|
70
70
|
memoizedResultFunc: ((resultFuncArgs_0: SearchState) => {
|
|
71
71
|
contextName: string | undefined;
|
|
72
72
|
count: number | null;
|
|
73
|
-
head: import("
|
|
73
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
74
74
|
mask: import("../Definitions/types").SearchMask | null;
|
|
75
|
-
rows: import("
|
|
75
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
76
76
|
hasUnknowCount: boolean;
|
|
77
77
|
timestamp: number | undefined;
|
|
78
78
|
capabilities: import("./types").SearchResultCapabilities;
|
|
79
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
79
80
|
}) & {
|
|
80
81
|
clearCache: () => void;
|
|
81
82
|
resultsCount: () => number;
|
|
@@ -84,12 +85,13 @@ export declare const resultsSelector: ((state: any) => {
|
|
|
84
85
|
lastResult: () => {
|
|
85
86
|
contextName: string | undefined;
|
|
86
87
|
count: number | null;
|
|
87
|
-
head: import("
|
|
88
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
88
89
|
mask: import("../Definitions/types").SearchMask | null;
|
|
89
|
-
rows: import("
|
|
90
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
90
91
|
hasUnknowCount: boolean;
|
|
91
92
|
timestamp: number | undefined;
|
|
92
93
|
capabilities: import("./types").SearchResultCapabilities;
|
|
94
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
93
95
|
};
|
|
94
96
|
dependencies: [(state: any) => SearchState];
|
|
95
97
|
recomputations: () => number;
|
|
@@ -121,139 +123,6 @@ export declare const searchTriggeredSelector: ((state: any) => boolean) & {
|
|
|
121
123
|
memoize: typeof import("reselect").lruMemoize;
|
|
122
124
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
123
125
|
};
|
|
124
|
-
export declare const createSearchResultsSelector: (identifier: string) => {
|
|
125
|
-
resultsWithMoreButtonSelector: ((state: any) => {
|
|
126
|
-
contextName: string | undefined;
|
|
127
|
-
count: number | null;
|
|
128
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
129
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
130
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
131
|
-
hasUnknowCount: boolean;
|
|
132
|
-
timestamp: number | undefined;
|
|
133
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
134
|
-
}) & {
|
|
135
|
-
clearCache: () => void;
|
|
136
|
-
resultsCount: () => number;
|
|
137
|
-
resetResultsCount: () => void;
|
|
138
|
-
} & {
|
|
139
|
-
resultFunc: (resultFuncArgs_0: TreeViewState | undefined, resultFuncArgs_1: {
|
|
140
|
-
contextName: string | undefined;
|
|
141
|
-
count: number | null;
|
|
142
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
143
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
144
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
145
|
-
hasUnknowCount: boolean;
|
|
146
|
-
timestamp: number | undefined;
|
|
147
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
148
|
-
}) => {
|
|
149
|
-
contextName: string | undefined;
|
|
150
|
-
count: number | null;
|
|
151
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
152
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
153
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
154
|
-
hasUnknowCount: boolean;
|
|
155
|
-
timestamp: number | undefined;
|
|
156
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
157
|
-
};
|
|
158
|
-
memoizedResultFunc: ((resultFuncArgs_0: TreeViewState | undefined, resultFuncArgs_1: {
|
|
159
|
-
contextName: string | undefined;
|
|
160
|
-
count: number | null;
|
|
161
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
162
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
163
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
164
|
-
hasUnknowCount: boolean;
|
|
165
|
-
timestamp: number | undefined;
|
|
166
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
167
|
-
}) => {
|
|
168
|
-
contextName: string | undefined;
|
|
169
|
-
count: number | null;
|
|
170
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
171
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
172
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
173
|
-
hasUnknowCount: boolean;
|
|
174
|
-
timestamp: number | undefined;
|
|
175
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
176
|
-
}) & {
|
|
177
|
-
clearCache: () => void;
|
|
178
|
-
resultsCount: () => number;
|
|
179
|
-
resetResultsCount: () => void;
|
|
180
|
-
};
|
|
181
|
-
lastResult: () => {
|
|
182
|
-
contextName: string | undefined;
|
|
183
|
-
count: number | null;
|
|
184
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
185
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
186
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
187
|
-
hasUnknowCount: boolean;
|
|
188
|
-
timestamp: number | undefined;
|
|
189
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
190
|
-
};
|
|
191
|
-
dependencies: [(state: any) => TreeViewState | undefined, ((state: any) => {
|
|
192
|
-
contextName: string | undefined;
|
|
193
|
-
count: number | null;
|
|
194
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
195
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
196
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
197
|
-
hasUnknowCount: boolean;
|
|
198
|
-
timestamp: number | undefined;
|
|
199
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
200
|
-
}) & {
|
|
201
|
-
clearCache: () => void;
|
|
202
|
-
resultsCount: () => number;
|
|
203
|
-
resetResultsCount: () => void;
|
|
204
|
-
} & {
|
|
205
|
-
resultFunc: (resultFuncArgs_0: SearchState) => {
|
|
206
|
-
contextName: string | undefined;
|
|
207
|
-
count: number | null;
|
|
208
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
209
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
210
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
211
|
-
hasUnknowCount: boolean;
|
|
212
|
-
timestamp: number | undefined;
|
|
213
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
214
|
-
};
|
|
215
|
-
memoizedResultFunc: ((resultFuncArgs_0: SearchState) => {
|
|
216
|
-
contextName: string | undefined;
|
|
217
|
-
count: number | null;
|
|
218
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
219
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
220
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
221
|
-
hasUnknowCount: boolean;
|
|
222
|
-
timestamp: number | undefined;
|
|
223
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
224
|
-
}) & {
|
|
225
|
-
clearCache: () => void;
|
|
226
|
-
resultsCount: () => number;
|
|
227
|
-
resetResultsCount: () => void;
|
|
228
|
-
};
|
|
229
|
-
lastResult: () => {
|
|
230
|
-
contextName: string | undefined;
|
|
231
|
-
count: number | null;
|
|
232
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
233
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
234
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
235
|
-
hasUnknowCount: boolean;
|
|
236
|
-
timestamp: number | undefined;
|
|
237
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
238
|
-
};
|
|
239
|
-
dependencies: [(state: any) => SearchState];
|
|
240
|
-
recomputations: () => number;
|
|
241
|
-
resetRecomputations: () => void;
|
|
242
|
-
dependencyRecomputations: () => number;
|
|
243
|
-
resetDependencyRecomputations: () => void;
|
|
244
|
-
} & {
|
|
245
|
-
memoize: typeof import("reselect").lruMemoize;
|
|
246
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
247
|
-
}];
|
|
248
|
-
recomputations: () => number;
|
|
249
|
-
resetRecomputations: () => void;
|
|
250
|
-
dependencyRecomputations: () => number;
|
|
251
|
-
resetDependencyRecomputations: () => void;
|
|
252
|
-
} & {
|
|
253
|
-
memoize: typeof import("reselect").lruMemoize;
|
|
254
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
255
|
-
};
|
|
256
|
-
};
|
|
257
126
|
export declare const resultsSearchMaskSelector: ((state: any) => import("../Definitions/types").SearchMask | null) & {
|
|
258
127
|
clearCache: () => void;
|
|
259
128
|
resultsCount: () => number;
|
|
@@ -262,22 +131,24 @@ export declare const resultsSearchMaskSelector: ((state: any) => import("../Defi
|
|
|
262
131
|
resultFunc: (resultFuncArgs_0: {
|
|
263
132
|
contextName: string | undefined;
|
|
264
133
|
count: number | null;
|
|
265
|
-
head: import("
|
|
134
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
266
135
|
mask: import("../Definitions/types").SearchMask | null;
|
|
267
|
-
rows: import("
|
|
136
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
268
137
|
hasUnknowCount: boolean;
|
|
269
138
|
timestamp: number | undefined;
|
|
270
139
|
capabilities: import("./types").SearchResultCapabilities;
|
|
140
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
271
141
|
}) => import("../Definitions/types").SearchMask | null;
|
|
272
142
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
273
143
|
contextName: string | undefined;
|
|
274
144
|
count: number | null;
|
|
275
|
-
head: import("
|
|
145
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
276
146
|
mask: import("../Definitions/types").SearchMask | null;
|
|
277
|
-
rows: import("
|
|
147
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
278
148
|
hasUnknowCount: boolean;
|
|
279
149
|
timestamp: number | undefined;
|
|
280
150
|
capabilities: import("./types").SearchResultCapabilities;
|
|
151
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
281
152
|
}) => import("../Definitions/types").SearchMask | null) & {
|
|
282
153
|
clearCache: () => void;
|
|
283
154
|
resultsCount: () => number;
|
|
@@ -287,12 +158,13 @@ export declare const resultsSearchMaskSelector: ((state: any) => import("../Defi
|
|
|
287
158
|
dependencies: [((state: any) => {
|
|
288
159
|
contextName: string | undefined;
|
|
289
160
|
count: number | null;
|
|
290
|
-
head: import("
|
|
161
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
291
162
|
mask: import("../Definitions/types").SearchMask | null;
|
|
292
|
-
rows: import("
|
|
163
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
293
164
|
hasUnknowCount: boolean;
|
|
294
165
|
timestamp: number | undefined;
|
|
295
166
|
capabilities: import("./types").SearchResultCapabilities;
|
|
167
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
296
168
|
}) & {
|
|
297
169
|
clearCache: () => void;
|
|
298
170
|
resultsCount: () => number;
|
|
@@ -301,22 +173,24 @@ export declare const resultsSearchMaskSelector: ((state: any) => import("../Defi
|
|
|
301
173
|
resultFunc: (resultFuncArgs_0: SearchState) => {
|
|
302
174
|
contextName: string | undefined;
|
|
303
175
|
count: number | null;
|
|
304
|
-
head: import("
|
|
176
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
305
177
|
mask: import("../Definitions/types").SearchMask | null;
|
|
306
|
-
rows: import("
|
|
178
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
307
179
|
hasUnknowCount: boolean;
|
|
308
180
|
timestamp: number | undefined;
|
|
309
181
|
capabilities: import("./types").SearchResultCapabilities;
|
|
182
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
310
183
|
};
|
|
311
184
|
memoizedResultFunc: ((resultFuncArgs_0: SearchState) => {
|
|
312
185
|
contextName: string | undefined;
|
|
313
186
|
count: number | null;
|
|
314
|
-
head: import("
|
|
187
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
315
188
|
mask: import("../Definitions/types").SearchMask | null;
|
|
316
|
-
rows: import("
|
|
189
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
317
190
|
hasUnknowCount: boolean;
|
|
318
191
|
timestamp: number | undefined;
|
|
319
192
|
capabilities: import("./types").SearchResultCapabilities;
|
|
193
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
320
194
|
}) & {
|
|
321
195
|
clearCache: () => void;
|
|
322
196
|
resultsCount: () => number;
|
|
@@ -325,12 +199,13 @@ export declare const resultsSearchMaskSelector: ((state: any) => import("../Defi
|
|
|
325
199
|
lastResult: () => {
|
|
326
200
|
contextName: string | undefined;
|
|
327
201
|
count: number | null;
|
|
328
|
-
head: import("
|
|
202
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
329
203
|
mask: import("../Definitions/types").SearchMask | null;
|
|
330
|
-
rows: import("
|
|
204
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
331
205
|
hasUnknowCount: boolean;
|
|
332
206
|
timestamp: number | undefined;
|
|
333
207
|
capabilities: import("./types").SearchResultCapabilities;
|
|
208
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
334
209
|
};
|
|
335
210
|
dependencies: [(state: any) => SearchState];
|
|
336
211
|
recomputations: () => number;
|
|
@@ -357,22 +232,24 @@ export declare const resultsSearchHasUnknowCountSelector: ((state: any) => boole
|
|
|
357
232
|
resultFunc: (resultFuncArgs_0: {
|
|
358
233
|
contextName: string | undefined;
|
|
359
234
|
count: number | null;
|
|
360
|
-
head: import("
|
|
235
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
361
236
|
mask: import("../Definitions/types").SearchMask | null;
|
|
362
|
-
rows: import("
|
|
237
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
363
238
|
hasUnknowCount: boolean;
|
|
364
239
|
timestamp: number | undefined;
|
|
365
240
|
capabilities: import("./types").SearchResultCapabilities;
|
|
241
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
366
242
|
}) => boolean;
|
|
367
243
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
368
244
|
contextName: string | undefined;
|
|
369
245
|
count: number | null;
|
|
370
|
-
head: import("
|
|
246
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
371
247
|
mask: import("../Definitions/types").SearchMask | null;
|
|
372
|
-
rows: import("
|
|
248
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
373
249
|
hasUnknowCount: boolean;
|
|
374
250
|
timestamp: number | undefined;
|
|
375
251
|
capabilities: import("./types").SearchResultCapabilities;
|
|
252
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
376
253
|
}) => boolean) & {
|
|
377
254
|
clearCache: () => void;
|
|
378
255
|
resultsCount: () => number;
|
|
@@ -382,107 +259,13 @@ export declare const resultsSearchHasUnknowCountSelector: ((state: any) => boole
|
|
|
382
259
|
dependencies: [((state: any) => {
|
|
383
260
|
contextName: string | undefined;
|
|
384
261
|
count: number | null;
|
|
385
|
-
head: import("
|
|
386
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
387
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
388
|
-
hasUnknowCount: boolean;
|
|
389
|
-
timestamp: number | undefined;
|
|
390
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
391
|
-
}) & {
|
|
392
|
-
clearCache: () => void;
|
|
393
|
-
resultsCount: () => number;
|
|
394
|
-
resetResultsCount: () => void;
|
|
395
|
-
} & {
|
|
396
|
-
resultFunc: (resultFuncArgs_0: SearchState) => {
|
|
397
|
-
contextName: string | undefined;
|
|
398
|
-
count: number | null;
|
|
399
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
400
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
401
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
402
|
-
hasUnknowCount: boolean;
|
|
403
|
-
timestamp: number | undefined;
|
|
404
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
405
|
-
};
|
|
406
|
-
memoizedResultFunc: ((resultFuncArgs_0: SearchState) => {
|
|
407
|
-
contextName: string | undefined;
|
|
408
|
-
count: number | null;
|
|
409
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
410
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
411
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
412
|
-
hasUnknowCount: boolean;
|
|
413
|
-
timestamp: number | undefined;
|
|
414
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
415
|
-
}) & {
|
|
416
|
-
clearCache: () => void;
|
|
417
|
-
resultsCount: () => number;
|
|
418
|
-
resetResultsCount: () => void;
|
|
419
|
-
};
|
|
420
|
-
lastResult: () => {
|
|
421
|
-
contextName: string | undefined;
|
|
422
|
-
count: number | null;
|
|
423
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
424
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
425
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
426
|
-
hasUnknowCount: boolean;
|
|
427
|
-
timestamp: number | undefined;
|
|
428
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
429
|
-
};
|
|
430
|
-
dependencies: [(state: any) => SearchState];
|
|
431
|
-
recomputations: () => number;
|
|
432
|
-
resetRecomputations: () => void;
|
|
433
|
-
dependencyRecomputations: () => number;
|
|
434
|
-
resetDependencyRecomputations: () => void;
|
|
435
|
-
} & {
|
|
436
|
-
memoize: typeof import("reselect").lruMemoize;
|
|
437
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
438
|
-
}];
|
|
439
|
-
recomputations: () => number;
|
|
440
|
-
resetRecomputations: () => void;
|
|
441
|
-
dependencyRecomputations: () => number;
|
|
442
|
-
resetDependencyRecomputations: () => void;
|
|
443
|
-
} & {
|
|
444
|
-
memoize: typeof import("reselect").lruMemoize;
|
|
445
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
446
|
-
};
|
|
447
|
-
export declare const createSelectedItemsSelector: (identifier: string) => ((state: any) => SupportedItem[]) & {
|
|
448
|
-
clearCache: () => void;
|
|
449
|
-
resultsCount: () => number;
|
|
450
|
-
resetResultsCount: () => void;
|
|
451
|
-
} & {
|
|
452
|
-
resultFunc: (resultFuncArgs_0: TreeViewState | undefined, resultFuncArgs_1: {
|
|
453
|
-
contextName: string | undefined;
|
|
454
|
-
count: number | null;
|
|
455
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
456
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
457
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
458
|
-
hasUnknowCount: boolean;
|
|
459
|
-
timestamp: number | undefined;
|
|
460
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
461
|
-
}) => SupportedItem[];
|
|
462
|
-
memoizedResultFunc: ((resultFuncArgs_0: TreeViewState | undefined, resultFuncArgs_1: {
|
|
463
|
-
contextName: string | undefined;
|
|
464
|
-
count: number | null;
|
|
465
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
466
|
-
mask: import("../Definitions/types").SearchMask | null;
|
|
467
|
-
rows: import("../../../core/containers/TreeView/types").TableRow[];
|
|
468
|
-
hasUnknowCount: boolean;
|
|
469
|
-
timestamp: number | undefined;
|
|
470
|
-
capabilities: import("./types").SearchResultCapabilities;
|
|
471
|
-
}) => SupportedItem[]) & {
|
|
472
|
-
clearCache: () => void;
|
|
473
|
-
resultsCount: () => number;
|
|
474
|
-
resetResultsCount: () => void;
|
|
475
|
-
};
|
|
476
|
-
lastResult: () => SupportedItem[];
|
|
477
|
-
dependencies: [(state: any) => TreeViewState | undefined, ((state: any) => {
|
|
478
|
-
contextName: string | undefined;
|
|
479
|
-
count: number | null;
|
|
480
|
-
head: import("../../../core/containers/TreeView/types").TreeViewField[];
|
|
262
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
481
263
|
mask: import("../Definitions/types").SearchMask | null;
|
|
482
|
-
rows: import("
|
|
264
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
483
265
|
hasUnknowCount: boolean;
|
|
484
266
|
timestamp: number | undefined;
|
|
485
267
|
capabilities: import("./types").SearchResultCapabilities;
|
|
268
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
486
269
|
}) & {
|
|
487
270
|
clearCache: () => void;
|
|
488
271
|
resultsCount: () => number;
|
|
@@ -491,22 +274,24 @@ export declare const createSelectedItemsSelector: (identifier: string) => ((stat
|
|
|
491
274
|
resultFunc: (resultFuncArgs_0: SearchState) => {
|
|
492
275
|
contextName: string | undefined;
|
|
493
276
|
count: number | null;
|
|
494
|
-
head: import("
|
|
277
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
495
278
|
mask: import("../Definitions/types").SearchMask | null;
|
|
496
|
-
rows: import("
|
|
279
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
497
280
|
hasUnknowCount: boolean;
|
|
498
281
|
timestamp: number | undefined;
|
|
499
282
|
capabilities: import("./types").SearchResultCapabilities;
|
|
283
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
500
284
|
};
|
|
501
285
|
memoizedResultFunc: ((resultFuncArgs_0: SearchState) => {
|
|
502
286
|
contextName: string | undefined;
|
|
503
287
|
count: number | null;
|
|
504
|
-
head: import("
|
|
288
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
505
289
|
mask: import("../Definitions/types").SearchMask | null;
|
|
506
|
-
rows: import("
|
|
290
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
507
291
|
hasUnknowCount: boolean;
|
|
508
292
|
timestamp: number | undefined;
|
|
509
293
|
capabilities: import("./types").SearchResultCapabilities;
|
|
294
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
510
295
|
}) & {
|
|
511
296
|
clearCache: () => void;
|
|
512
297
|
resultsCount: () => number;
|
|
@@ -515,12 +300,13 @@ export declare const createSelectedItemsSelector: (identifier: string) => ((stat
|
|
|
515
300
|
lastResult: () => {
|
|
516
301
|
contextName: string | undefined;
|
|
517
302
|
count: number | null;
|
|
518
|
-
head: import("
|
|
303
|
+
head: import("../../containers/DataGrid/types").ColumnDefinition[];
|
|
519
304
|
mask: import("../Definitions/types").SearchMask | null;
|
|
520
|
-
rows: import("
|
|
305
|
+
rows: import("../../containers/SearchDataGrid/types").TableRow[];
|
|
521
306
|
hasUnknowCount: boolean;
|
|
522
307
|
timestamp: number | undefined;
|
|
523
308
|
capabilities: import("./types").SearchResultCapabilities;
|
|
309
|
+
alerts?: import("./types").SearchResultAlert[];
|
|
524
310
|
};
|
|
525
311
|
dependencies: [(state: any) => SearchState];
|
|
526
312
|
recomputations: () => number;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { AlertProps } from "@mui/material";
|
|
2
|
+
import { ColumnDefinition } from "../../../core/containers/DataGrid/types";
|
|
3
|
+
import { TableRow } from "../../../core/containers/SearchDataGrid/types";
|
|
4
|
+
import { SupportedItem } from "../App/types";
|
|
3
5
|
import { SearchMask } from "../Definitions/types";
|
|
4
6
|
import { InodeRefList, InodeType, ProcessState } from "../Inodes/types";
|
|
5
7
|
export type ValueField = {
|
|
@@ -33,6 +35,10 @@ export type Field = {
|
|
|
33
35
|
export type SearchResultCapabilities = {
|
|
34
36
|
canDownloadSearchResult: boolean;
|
|
35
37
|
};
|
|
38
|
+
export type SearchResultAlert = {
|
|
39
|
+
severity: AlertProps["severity"];
|
|
40
|
+
message: string;
|
|
41
|
+
};
|
|
36
42
|
export type SearchResult = {
|
|
37
43
|
kind: "dms-core.ui.Search";
|
|
38
44
|
count: number;
|
|
@@ -40,39 +46,17 @@ export type SearchResult = {
|
|
|
40
46
|
tableResource: {
|
|
41
47
|
kind: "dms-core.ui.Table";
|
|
42
48
|
rows: TableRow[];
|
|
43
|
-
head:
|
|
49
|
+
head: ColumnDefinition[];
|
|
44
50
|
};
|
|
51
|
+
alerts: SearchResultAlert[];
|
|
45
52
|
capabilities: SearchResultCapabilities;
|
|
46
53
|
};
|
|
47
|
-
export type Option = {
|
|
48
|
-
value: string;
|
|
49
|
-
label: string;
|
|
50
|
-
count: number;
|
|
51
|
-
};
|
|
52
|
-
export type Component = {
|
|
53
|
-
kind: string;
|
|
54
|
-
name: string;
|
|
55
|
-
label: string;
|
|
56
|
-
disabled: boolean;
|
|
57
|
-
required: boolean;
|
|
58
|
-
hidden: boolean;
|
|
59
|
-
width: number;
|
|
60
|
-
tooltipText: string;
|
|
61
|
-
multiple: boolean;
|
|
62
|
-
show_undefined: boolean;
|
|
63
|
-
options: Option[];
|
|
64
|
-
customOption: boolean;
|
|
65
|
-
key?: string;
|
|
66
|
-
valueFormat?: string;
|
|
67
|
-
components?: Component[];
|
|
68
|
-
datasourceName?: string;
|
|
69
|
-
};
|
|
70
54
|
export type QueryParams = {
|
|
71
55
|
searchContextName: string;
|
|
72
56
|
searchParams?: URLSearchParams;
|
|
73
57
|
queryResource?: Record<string, any>;
|
|
74
|
-
limit
|
|
75
|
-
offset
|
|
58
|
+
limit?: number;
|
|
59
|
+
offset?: number;
|
|
76
60
|
rootOid?: string;
|
|
77
61
|
highlight?: SearchMask["defaultHighlight"];
|
|
78
62
|
};
|
|
@@ -92,9 +76,23 @@ export type SearchResultRowCell = {
|
|
|
92
76
|
kind: "dms-core.ui.ProcessStateTableCell";
|
|
93
77
|
value: ProcessState;
|
|
94
78
|
};
|
|
79
|
+
type LoadMoreItem = {
|
|
80
|
+
kind: "dms-core.ui.LoadMoreButton";
|
|
81
|
+
oid: string;
|
|
82
|
+
parentOid: string;
|
|
83
|
+
offset: number;
|
|
84
|
+
};
|
|
85
|
+
export type Row<I = SupportedItem | LoadMoreItem> = {
|
|
86
|
+
item: I;
|
|
87
|
+
status?: string;
|
|
88
|
+
depth?: number;
|
|
89
|
+
isExpandable?: boolean;
|
|
90
|
+
expanded?: boolean;
|
|
91
|
+
};
|
|
95
92
|
export type SearchResultRow = {
|
|
96
93
|
cells: SearchResultRowCell[];
|
|
97
94
|
highlights: string[];
|
|
98
95
|
kind: "dms-core.ui.TableRow";
|
|
99
96
|
status: "valid" | string;
|
|
100
97
|
} & Row;
|
|
98
|
+
export {};
|
|
@@ -15,12 +15,12 @@ export default function createQuery({ searchContextName, searchParams, queryReso
|
|
|
15
15
|
}[] | undefined;
|
|
16
16
|
pagination: {
|
|
17
17
|
kind: string;
|
|
18
|
-
offset: number;
|
|
19
|
-
limit: number;
|
|
18
|
+
offset: number | undefined;
|
|
19
|
+
limit: number | undefined;
|
|
20
20
|
};
|
|
21
21
|
highlight: {
|
|
22
|
-
kind:
|
|
23
|
-
snippets: number;
|
|
24
|
-
field: string;
|
|
22
|
+
readonly kind: "dms-indexation.search.Highlight";
|
|
23
|
+
readonly snippets: number;
|
|
24
|
+
readonly field: string;
|
|
25
25
|
} | undefined;
|
|
26
26
|
};
|
|
@@ -2,7 +2,7 @@ import { SystemNotification } from "./type";
|
|
|
2
2
|
export type SystemNotificationState = {
|
|
3
3
|
snackBar: SystemNotification | undefined;
|
|
4
4
|
};
|
|
5
|
-
export declare const notify: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[message: import("react").ReactNode, type?: "
|
|
5
|
+
export declare const notify: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[message: import("react").ReactNode, type?: "info" | "success" | "warning" | "error" | undefined, params?: Omit<SystemNotification, "type" | "message" | "oid"> | undefined], {
|
|
6
6
|
notification: SystemNotification;
|
|
7
7
|
}, "systemNotification/notify", never, never>;
|
|
8
8
|
declare const _default: import("redux").Reducer<SystemNotificationState>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
1
2
|
import { UpdateHighlightMode } from "./types";
|
|
2
3
|
export type TasksContext = {
|
|
3
4
|
taskDataHistoryFrom: {
|
|
@@ -5,6 +6,15 @@ export type TasksContext = {
|
|
|
5
6
|
fromDate: string | null;
|
|
6
7
|
} | undefined;
|
|
7
8
|
setTaskDataHistoryFrom: (mode: UpdateHighlightMode, fromDate: string | null) => void;
|
|
9
|
+
/**
|
|
10
|
+
* - idle: The task is not being processed.
|
|
11
|
+
* - busy: Some action is being performed on the task.
|
|
12
|
+
* - processing: The task is being processed (outcome triggered).
|
|
13
|
+
*/
|
|
14
|
+
status: "idle" | "busy" | "processing";
|
|
15
|
+
setStatus: Dispatch<SetStateAction<TasksContext["status"]>>;
|
|
16
|
+
taskCompletionDisabled: boolean;
|
|
17
|
+
setTaskCompletionDisabled: Dispatch<SetStateAction<boolean>>;
|
|
8
18
|
};
|
|
9
19
|
declare const TasksContext: import("react").Context<TasksContext>;
|
|
10
20
|
export default TasksContext;
|
|
@@ -11,7 +11,7 @@ declare const useEntityDelete: (taskOid: string) => {
|
|
|
11
11
|
isMutating: boolean;
|
|
12
12
|
trigger: import("swr/mutation").TriggerWithArgs<string, AxiosError<unknown, any>, Key, Params>;
|
|
13
13
|
reset: () => void;
|
|
14
|
-
error: AxiosError<unknown, any> | undefined;
|
|
15
14
|
data: string | undefined;
|
|
15
|
+
error: AxiosError<unknown, any> | undefined;
|
|
16
16
|
};
|
|
17
17
|
export default useEntityDelete;
|
|
@@ -21,11 +21,11 @@ declare const useEntityMutate: (taskOid: string) => {
|
|
|
21
21
|
trigger: (entity: Entity, patchData?: EntityData, params?: Params) => Promise<void>;
|
|
22
22
|
isMutating: boolean;
|
|
23
23
|
reset: () => void;
|
|
24
|
-
error: AxiosError<unknown, any> | undefined;
|
|
25
24
|
data: {
|
|
26
25
|
entity?: TriggerParams["entity"];
|
|
27
26
|
relation?: Relation;
|
|
28
27
|
params?: TriggerParams["params"];
|
|
29
28
|
} | undefined;
|
|
29
|
+
error: AxiosError<unknown, any> | undefined;
|
|
30
30
|
};
|
|
31
31
|
export default useEntityMutate;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default function useTaskStatus(): {
|
|
2
|
+
status: "idle" | "processing" | "busy";
|
|
3
|
+
setStatus: import("react").Dispatch<import("react").SetStateAction<"idle" | "processing" | "busy">>;
|
|
4
|
+
/**
|
|
5
|
+
* The task is currently being processed or is busy.
|
|
6
|
+
*/
|
|
7
|
+
isBusy: boolean;
|
|
8
|
+
};
|