cat-documents-ng 1.0.61 → 1.0.63
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/README.md +322 -322
- package/Shared/services/session.service.d.ts +0 -19
- package/fesm2022/cat-documents-ng.mjs +1515 -1524
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-actions/document-actions.component.d.ts +0 -5
- package/lib/document/components/document-container/document-container.component.d.ts +9 -2
- package/lib/document/components/document-history/document-history.component.d.ts +1 -1
- package/lib/document/components/document-search/document-search.component.d.ts +1 -7
- package/lib/document/models/document-list-response.model.d.ts +0 -1
- package/lib/document/services/document-viewer.service.d.ts +16 -1
- package/package.json +1 -1
- package/Shared/constant/PERMISSIONS.d.ts +0 -17
|
@@ -28,11 +28,6 @@ export declare class DocumentActionsComponent implements OnChanges {
|
|
|
28
28
|
showApproveRejectActions: boolean;
|
|
29
29
|
showNoActions: boolean;
|
|
30
30
|
constructor(documentActionsService: DocumentActionsService, sessionService: SessionService);
|
|
31
|
-
/**
|
|
32
|
-
* Trait-based permission for approve/reject/delete style operations.
|
|
33
|
-
* Requirement: enable actions only when user has Documents-PUT or Documents-POST.
|
|
34
|
-
*/
|
|
35
|
-
get canUpdateDocuments(): boolean;
|
|
36
31
|
get rejectNote(): string;
|
|
37
32
|
set rejectNote(value: string);
|
|
38
33
|
/**
|
|
@@ -9,6 +9,7 @@ import { StatusDataModel } from '../../models/status-data.model';
|
|
|
9
9
|
import { DocumentListResponse } from '../../models/document-list-response.model';
|
|
10
10
|
import { DocumentHelperService } from '../../services/document.service';
|
|
11
11
|
import { DocumentMenuService } from '../../services/document-menu.service';
|
|
12
|
+
import { DocumentViewerService } from '../../services/document-viewer.service';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
/**
|
|
14
15
|
*This component is responsible for managing and displaying a list of documents.
|
|
@@ -21,6 +22,7 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy, On
|
|
|
21
22
|
private documentQuery;
|
|
22
23
|
private documentStore;
|
|
23
24
|
private documentMenuService;
|
|
25
|
+
private documentViewerService;
|
|
24
26
|
/**
|
|
25
27
|
* The document list response data
|
|
26
28
|
* @type {DocumentListResponse[] | null}
|
|
@@ -55,6 +57,10 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy, On
|
|
|
55
57
|
contentScrollContainer: ElementRef;
|
|
56
58
|
selectedDocument: EventEmitter<any>;
|
|
57
59
|
selectedDocumentInNewTab: EventEmitter<any>;
|
|
60
|
+
documentStatusUpdated: EventEmitter<{
|
|
61
|
+
contextId: string;
|
|
62
|
+
status: string;
|
|
63
|
+
}>;
|
|
58
64
|
/**
|
|
59
65
|
* Subscription to track selected menu item changes
|
|
60
66
|
*/
|
|
@@ -66,8 +72,9 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy, On
|
|
|
66
72
|
* @param {DocumentQuery} documentQuery - Query service for document state
|
|
67
73
|
* @param {DocumentStore} documentStore - Store service for document state
|
|
68
74
|
* @param {DocumentMenuService} documentMenuService - Service for menu operations
|
|
75
|
+
* @param {DocumentViewerService} documentViewerService - Service for document viewer state and actions
|
|
69
76
|
*/
|
|
70
|
-
constructor(documentHttpService: DocumentHttpService, documentHelperService: DocumentHelperService, documentQuery: DocumentQuery, documentStore: DocumentStore, documentMenuService: DocumentMenuService);
|
|
77
|
+
constructor(documentHttpService: DocumentHttpService, documentHelperService: DocumentHelperService, documentQuery: DocumentQuery, documentStore: DocumentStore, documentMenuService: DocumentMenuService, documentViewerService: DocumentViewerService);
|
|
71
78
|
/**
|
|
72
79
|
* Get contextId in input.
|
|
73
80
|
* @type {string}
|
|
@@ -163,5 +170,5 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy, On
|
|
|
163
170
|
*/
|
|
164
171
|
ngOnDestroy(): void;
|
|
165
172
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentContainerComponent, never>;
|
|
166
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentContainerComponent, "lib-document-container", never, { "onOpenInNewTab": { "alias": "onOpenInNewTab"; "required": false; }; "contextId": { "alias": "contextId"; "required": false; }; }, { "selectedDocument": "selectedDocument"; "selectedDocumentInNewTab": "selectedDocumentInNewTab"; }, never, ["*"], false, never>;
|
|
173
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentContainerComponent, "lib-document-container", never, { "onOpenInNewTab": { "alias": "onOpenInNewTab"; "required": false; }; "contextId": { "alias": "contextId"; "required": false; }; }, { "selectedDocument": "selectedDocument"; "selectedDocumentInNewTab": "selectedDocumentInNewTab"; "documentStatusUpdated": "documentStatusUpdated"; }, never, ["*"], false, never>;
|
|
167
174
|
}
|
|
@@ -223,5 +223,5 @@ export declare class DocumentHistoryComponent implements OnChanges, OnInit, OnDe
|
|
|
223
223
|
*/
|
|
224
224
|
ngOnDestroy(): void;
|
|
225
225
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentHistoryComponent, never>;
|
|
226
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentHistoryComponent, "document-history", never, { "historyData": { "alias": "historyData"; "required": false; }; "showHistory": { "alias": "showHistory"; "required": false; }; "contextId": { "alias": "contextId"; "required": false; }; "selectedDocument": { "alias": "selectedDocument"; "required": false; }; "isDocumentIntelligence": { "alias": "isDocumentIntelligence"; "required": false; }; }, { "deleteTaskRequested": "deleteTaskRequested"; "documentSelected": "documentSelected"; }, never, ["[actions-component]"], false, never>;
|
|
226
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentHistoryComponent, "document-history", never, { "historyData": { "alias": "historyData"; "required": false; }; "showHistory": { "alias": "showHistory"; "required": false; }; "contextId": { "alias": "contextId"; "required": false; }; "selectedDocument": { "alias": "selectedDocument"; "required": false; }; "isDocumentIntelligence": { "alias": "isDocumentIntelligence"; "required": false; }; }, { "deleteTaskRequested": "deleteTaskRequested"; "documentSelected": "documentSelected"; }, never, ["*", "[actions-component]"], false, never>;
|
|
227
227
|
}
|
|
@@ -2,12 +2,10 @@ import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { SHARED } from '../../../../Shared/constant/SHARED';
|
|
3
3
|
import { DocumentHelperService } from '../../services/document.service';
|
|
4
4
|
import { DocumentQuery } from '../../state/document.query';
|
|
5
|
-
import { SessionService } from '../../../../Shared/services/session.service';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class DocumentSearchComponent implements OnInit, OnDestroy {
|
|
8
7
|
private documentHelperService;
|
|
9
8
|
private documentQuery;
|
|
10
|
-
private sessionService;
|
|
11
9
|
readonly SHARED: typeof SHARED;
|
|
12
10
|
contextId: string;
|
|
13
11
|
onActionClick: EventEmitter<void>;
|
|
@@ -17,7 +15,7 @@ export declare class DocumentSearchComponent implements OnInit, OnDestroy {
|
|
|
17
15
|
private destroy$;
|
|
18
16
|
private searchSubject;
|
|
19
17
|
private hasActiveFilters;
|
|
20
|
-
constructor(documentHelperService: DocumentHelperService, documentQuery: DocumentQuery
|
|
18
|
+
constructor(documentHelperService: DocumentHelperService, documentQuery: DocumentQuery);
|
|
21
19
|
ngOnInit(): void;
|
|
22
20
|
ngOnDestroy(): void;
|
|
23
21
|
/**
|
|
@@ -50,10 +48,6 @@ export declare class DocumentSearchComponent implements OnInit, OnDestroy {
|
|
|
50
48
|
* Determines if the Clear All button should be visible
|
|
51
49
|
*/
|
|
52
50
|
get shouldShowClearAll(): boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Determines if the Actions button should be visible
|
|
55
|
-
*/
|
|
56
|
-
get shouldShowActionButton(): boolean;
|
|
57
51
|
/**
|
|
58
52
|
* Toggles the actions dropdown menu
|
|
59
53
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import { Observable, Subject } from 'rxjs';
|
|
2
2
|
import { DocumentHttpService } from './document-http.service';
|
|
3
3
|
import { DocumentHelperService } from './document.service';
|
|
4
4
|
import { DocumentListItem } from '../models/document-list-response.model';
|
|
@@ -19,12 +19,22 @@ export interface DocumentViewerState {
|
|
|
19
19
|
deleteError: any;
|
|
20
20
|
deleteSuccess: boolean;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Service managing document viewer state, actions, and SLA recalculation notifications.
|
|
24
|
+
*/
|
|
22
25
|
export declare class DocumentViewerService {
|
|
23
26
|
private documentHttpService;
|
|
24
27
|
private documentService;
|
|
25
28
|
private messageService;
|
|
26
29
|
private documentStore;
|
|
27
30
|
private documentQuery;
|
|
31
|
+
/**
|
|
32
|
+
* Emits when a document status update succeeds, carrying the contextId and new status.
|
|
33
|
+
*/
|
|
34
|
+
readonly documentStatusUpdated$: Subject<{
|
|
35
|
+
contextId: string;
|
|
36
|
+
status: string;
|
|
37
|
+
}>;
|
|
28
38
|
constructor(documentHttpService: DocumentHttpService, documentService: DocumentHelperService, messageService: MessageService, documentStore: DocumentStore, documentQuery: DocumentQuery);
|
|
29
39
|
/**
|
|
30
40
|
* Gets the current document viewer state as an observable
|
|
@@ -44,6 +54,11 @@ export declare class DocumentViewerService {
|
|
|
44
54
|
* @param documentId The document ID
|
|
45
55
|
*/
|
|
46
56
|
loadDocumentHistory(documentId: string): void;
|
|
57
|
+
/**
|
|
58
|
+
* Ensures async history responses only apply to the currently selected document.
|
|
59
|
+
* @param documentId The document ID the history request was made for
|
|
60
|
+
*/
|
|
61
|
+
private isHistoryResponseForCurrentDocument;
|
|
47
62
|
/**
|
|
48
63
|
* Determines if the given content type is an image
|
|
49
64
|
* @param contentType The MIME type of the content
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Storing all permission properties.
|
|
3
|
-
* @export
|
|
4
|
-
* @class PERMISSIONS
|
|
5
|
-
* @typedef {PERMISSIONS}
|
|
6
|
-
*/
|
|
7
|
-
export declare class PERMISSIONS {
|
|
8
|
-
/**
|
|
9
|
-
* Access permission.
|
|
10
|
-
* @static
|
|
11
|
-
* @type {string}
|
|
12
|
-
*/
|
|
13
|
-
static DOCUMENT_POST: string;
|
|
14
|
-
static DOCUMENT_DELETE: string;
|
|
15
|
-
static DOCUMENTS_REQUEST_DOCUMENT: string;
|
|
16
|
-
static DOCUMENTS_PUT: string;
|
|
17
|
-
}
|