@topconsultnpm/sdkui-react 6.20.0 → 6.21.0-dev1.3
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/lib/components/NewComponents/FloatingMenuBar/TMFloatingMenuBar.js +7 -1
- package/lib/components/base/TMTreeView.d.ts +2 -1
- package/lib/components/base/TMTreeView.js +8 -3
- package/lib/components/base/TMWaitPanel.js +6 -5
- package/lib/components/features/archive/TMArchive.d.ts +1 -1
- package/lib/components/features/archive/TMArchive.js +2 -2
- package/lib/components/features/documents/TMDcmtBlog.d.ts +1 -0
- package/lib/components/features/documents/TMDcmtBlog.js +2 -1
- package/lib/components/features/documents/TMDcmtForm.d.ts +42 -34
- package/lib/components/features/documents/TMDcmtForm.js +280 -639
- package/lib/components/features/documents/TMDcmtFormActionButtons.d.ts +34 -0
- package/lib/components/features/documents/TMDcmtFormActionButtons.js +124 -0
- package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +27 -2
- package/lib/components/features/documents/TMMasterDetailDcmts.js +160 -18
- package/lib/components/features/documents/TMRelationViewer.d.ts +6 -0
- package/lib/components/features/documents/TMRelationViewer.js +7 -5
- package/lib/components/features/search/TMSearch.d.ts +2 -2
- package/lib/components/features/search/TMSearch.js +3 -3
- package/lib/components/features/search/TMSearchResult.d.ts +27 -26
- package/lib/components/features/search/TMSearchResult.js +349 -486
- package/lib/components/features/tasks/TMTaskForm.d.ts +2 -1
- package/lib/components/features/tasks/TMTaskForm.js +2 -2
- package/lib/helper/checkinCheckoutManager.js +6 -2
- package/lib/hooks/useCheckInOutOperations.d.ts +7 -6
- package/lib/hooks/useCheckInOutOperations.js +9 -16
- package/lib/hooks/useDcmtOperations.d.ts +3 -2
- package/lib/hooks/useDcmtOperations.js +2 -2
- package/lib/hooks/useDocumentOperations.d.ts +139 -0
- package/lib/hooks/useDocumentOperations.js +1309 -0
- package/lib/hooks/useRelatedDocuments.d.ts +1 -1
- package/lib/ts/types.d.ts +2 -1
- package/lib/ts/types.js +1 -0
- package/package.json +55 -55
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +0 -11
- package/lib/components/features/search/TMSearchResultsMenuItems.js +0 -758
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DcmtTypeDescriptor, HomeBlogPost, ObjectRef, SearchResultDescriptor, TaskDescriptor, WorkingGroupDescriptor } from '@topconsultnpm/sdk-ts';
|
|
3
3
|
import { DcmtInfo, SearchResultContext, TaskContext } from '../../../ts';
|
|
4
4
|
import { TMSearchResultFloatingActionConfig } from './TMSearchResultFloatingActionButton';
|
|
5
5
|
export declare const getSearchResultCountersSingleCategory: (searchResults: SearchResultDescriptor[]) => string;
|
|
6
6
|
interface ITMSearchResultProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
deleteTaskByIdsCallback?: (deletedTaskIds: Array<number>) => Promise<void>;
|
|
10
|
-
addTaskCallback?: (task: TaskDescriptor) => Promise<void>;
|
|
11
|
-
editTaskCallback?: (task: TaskDescriptor) => Promise<void>;
|
|
12
|
-
handleNavigateToWGs?: (value: HomeBlogPost | number) => Promise<void>;
|
|
13
|
-
handleNavigateToDossiers?: (value: HomeBlogPost | number) => Promise<void>;
|
|
7
|
+
groupId?: string;
|
|
8
|
+
searchResults: SearchResultDescriptor[] | undefined;
|
|
14
9
|
context?: SearchResultContext;
|
|
15
10
|
title?: string;
|
|
16
|
-
|
|
11
|
+
selectedSearchResultTID?: number;
|
|
12
|
+
floatingActionConfig?: TMSearchResultFloatingActionConfig;
|
|
13
|
+
workingGroupContext?: WorkingGroupDescriptor;
|
|
17
14
|
allowFloatingBar?: boolean;
|
|
18
15
|
allowRelations?: boolean;
|
|
19
16
|
isClosable?: boolean;
|
|
@@ -24,35 +21,39 @@ interface ITMSearchResultProps {
|
|
|
24
21
|
showSelector?: boolean;
|
|
25
22
|
showToolbarHeader?: boolean;
|
|
26
23
|
showBackButton?: boolean;
|
|
27
|
-
groupId?: string;
|
|
28
|
-
selectedSearchResultTID?: number;
|
|
29
|
-
workingGroupContext?: WorkingGroupDescriptor;
|
|
30
24
|
disableAccordionIfSingleCategory?: boolean;
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
enablePinIcons?: boolean;
|
|
26
|
+
editPdfForm?: boolean;
|
|
27
|
+
openS4TViewer?: boolean;
|
|
28
|
+
showTodoDcmtForm?: boolean;
|
|
29
|
+
showToppyDraggableHelpCenter?: boolean;
|
|
30
|
+
toppyHelpCenterUsePortal?: boolean;
|
|
31
|
+
showNoDcmtFoundMessage?: boolean;
|
|
33
32
|
onClose?: () => void;
|
|
33
|
+
openInOffice?: (selectedDcmtsOrFocused: Array<DcmtInfo>) => Promise<void>;
|
|
34
34
|
onWFOperationCompleted?: () => Promise<void>;
|
|
35
35
|
onSelectedTIDChanged?: (TID: number) => void;
|
|
36
|
-
|
|
36
|
+
onRefreshSearchAsyncDatagrid?: () => Promise<void>;
|
|
37
37
|
onRefreshAfterAddDcmtToFavs?: () => void;
|
|
38
38
|
onFileOpened?: (blob: File | undefined) => void;
|
|
39
39
|
onTaskCreateRequest?: (taskContext: TaskContext, onTaskCreated?: (task?: TaskDescriptor) => void) => void;
|
|
40
40
|
openWGsCopyMoveForm?: (mode: "copyToWgDraft" | "copyToWgArchivedDoc", dcmtTypeDescriptor: DcmtTypeDescriptor, documents: Array<DcmtInfo>) => void;
|
|
41
|
-
|
|
42
|
-
openEditPdf?: (documents: Array<DcmtInfo>) => void;
|
|
43
|
-
openCommentFormCallback?: (documents: Array<DcmtInfo>) => void;
|
|
44
|
-
openAddDocumentForm?: () => void;
|
|
45
|
-
openS4TViewer?: boolean;
|
|
46
|
-
onOpenS4TViewerRequest?: (dcmtInfo: Array<DcmtInfo>, onRefreshSearchAsync?: (() => Promise<void>)) => void;
|
|
41
|
+
onReferenceClick?: (ref: ObjectRef) => void;
|
|
47
42
|
passToArchiveCallback?: (outputMids: Array<{
|
|
48
43
|
mid: number;
|
|
49
44
|
value: string;
|
|
50
45
|
}>, tid?: number) => void;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
onOpenS4TViewerRequest?: (dcmtInfo: Array<DcmtInfo>, refreshDocumentPreview?: () => Promise<void>) => void;
|
|
47
|
+
onOpenPdfEditorRequest?: (dcmtInfo: Array<DcmtInfo>, refreshDocumentPreview?: () => Promise<void>) => void;
|
|
48
|
+
openCommentFormCallback?: (documents: Array<DcmtInfo>) => void;
|
|
49
|
+
openAddDocumentForm?: () => void;
|
|
50
|
+
allTasks?: Array<TaskDescriptor>;
|
|
51
|
+
getAllTasks?: () => Promise<void>;
|
|
52
|
+
deleteTaskByIdsCallback?: (deletedTaskIds: Array<number>) => Promise<void>;
|
|
53
|
+
addTaskCallback?: (task: TaskDescriptor) => Promise<void>;
|
|
54
|
+
editTaskCallback?: (task: TaskDescriptor) => Promise<void>;
|
|
55
|
+
handleNavigateToWGs?: (value: HomeBlogPost | number) => Promise<void>;
|
|
56
|
+
handleNavigateToDossiers?: (value: HomeBlogPost | number) => Promise<void>;
|
|
56
57
|
}
|
|
57
58
|
declare const TMSearchResult: React.FC<ITMSearchResultProps>;
|
|
58
59
|
export default TMSearchResult;
|