cat-documents-ng 1.0.60 → 1.0.62
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 -5
- package/fesm2022/cat-documents-ng.mjs +1901 -1888
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- 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/models/document-list-response.model.d.ts +0 -1
- package/lib/document/services/document-http.service.d.ts +2 -2
- package/lib/document/services/document-viewer.service.d.ts +11 -1
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -84,14 +84,14 @@ export declare class DocumentHttpService {
|
|
|
84
84
|
* Fetches a document by its path name and transforms the response for dropdown options.
|
|
85
85
|
* @param {string} documentId - The document ID to fetch the document.
|
|
86
86
|
* @returns {Observable<any>} Observable that emits the transformed data for dropdown options.
|
|
87
|
-
|
|
87
|
+
*/
|
|
88
88
|
getAlertsByDocumentID(documentId: string): Observable<DocumentAlertModel>;
|
|
89
89
|
/**
|
|
90
90
|
* Fetches a document by its folder ID and transforms the response for dropdown options.
|
|
91
91
|
* @param {string} folderId - The folder ID to fetch the document.
|
|
92
92
|
* @param {string} contextId - The context ID to fetch the document.
|
|
93
93
|
* @returns {Observable<any>} Observable that emits the transformed data for dropdown options.
|
|
94
|
-
|
|
94
|
+
*/
|
|
95
95
|
getDocumentByFolderID(folderId: string, contextId: string): Observable<DocumentModel[]>;
|
|
96
96
|
/**
|
|
97
97
|
* Updates the name of a document.
|
|
@@ -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
|