cat-documents-ng 0.4.3 → 0.4.4

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.
@@ -49,6 +49,7 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy, On
49
49
  */
50
50
  contentScrollContainer: ElementRef;
51
51
  selectedDocument: EventEmitter<any>;
52
+ selectedDocumentInNewTab: EventEmitter<any>;
52
53
  /**
53
54
  * Subscription to track selected menu item changes
54
55
  */
@@ -126,6 +127,11 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy, On
126
127
  * to trigger status data fetching and user list refreshing
127
128
  */
128
129
  setupStatusDataSubscriptions(): void;
130
+ onDocumentSelectedInNewTab(event: {
131
+ selectedDocument: any;
132
+ contextId: string;
133
+ documentList: any[];
134
+ }): void;
129
135
  /**
130
136
  * Fetches status data based on current selections
131
137
  */
@@ -152,5 +158,5 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy, On
152
158
  */
153
159
  ngOnDestroy(): void;
154
160
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentContainerComponent, never>;
155
- static ɵcmp: i0.ɵɵComponentDeclaration<DocumentContainerComponent, "lib-document-container", never, { "contextId": { "alias": "contextId"; "required": false; }; }, { "selectedDocument": "selectedDocument"; }, never, ["*"], false, never>;
161
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentContainerComponent, "lib-document-container", never, { "contextId": { "alias": "contextId"; "required": false; }; }, { "selectedDocument": "selectedDocument"; "selectedDocumentInNewTab": "selectedDocumentInNewTab"; }, never, ["*"], false, never>;
156
162
  }
@@ -5,7 +5,7 @@ import { EmlParserService, ParsedEmailData } from '../../services/eml-parser.ser
5
5
  import { DocumentHttpService } from '../../services/document-http.service';
6
6
  import { DocumentZoomService } from '../../services/document-zoom.service';
7
7
  import { DocumentListItem } from '../../models/document-list-response.model';
8
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
8
+ import { DomSanitizer } from '@angular/platform-browser';
9
9
  import * as i0 from "@angular/core";
10
10
  /**
11
11
  * Component for viewing different types of document content.
@@ -286,11 +286,6 @@ export declare class DocumentContentViewerComponent implements OnChanges, OnInit
286
286
  * Resets Email data to initial state
287
287
  */
288
288
  private resetEmailData;
289
- /**
290
- * Gets sanitized HTML for email body
291
- * @returns {SafeHtml} Sanitized HTML
292
- */
293
- getSafeEmailHtml(): SafeHtml;
294
289
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentContentViewerComponent, never>;
295
290
  static ɵcmp: i0.ɵɵComponentDeclaration<DocumentContentViewerComponent, "document-content-viewer", never, { "documentUrl": { "alias": "documentUrl"; "required": false; }; "contentType": { "alias": "contentType"; "required": false; }; "documentName": { "alias": "documentName"; "required": false; }; "selectedDocument": { "alias": "selectedDocument"; "required": false; }; "contextId": { "alias": "contextId"; "required": false; }; "isFormHide": { "alias": "isFormHide"; "required": false; }; }, {}, never, never, false, never>;
296
291
  }
@@ -57,6 +57,11 @@ export declare class DocumentListComponent implements OnInit, OnDestroy, OnChang
57
57
  * Subscription to document list response from store
58
58
  */
59
59
  private documentListSubscription;
60
+ handleSelectedDocumentInNewTab: EventEmitter<{
61
+ selectedDocument: DocumentListItem;
62
+ contextId: string;
63
+ documentList: DocumentListItem[];
64
+ }>;
60
65
  /**
61
66
  * The currently selected document.
62
67
  * @type {DocumentModel}
@@ -185,6 +190,7 @@ export declare class DocumentListComponent implements OnInit, OnDestroy, OnChang
185
190
  * @param {boolean} isDeleteAction - Optional flag indicating if this refresh is due to a delete action
186
191
  */
187
192
  refreshDocumentList(isDeleteAction?: boolean): void;
193
+ handleTableRowCtrlClick(rowData: any): void;
188
194
  /**
189
195
  * Handles document status update events from viewer
190
196
  * @param event - The status update event
@@ -289,5 +295,5 @@ export declare class DocumentListComponent implements OnInit, OnDestroy, OnChang
289
295
  */
290
296
  ngOnDestroy(): void;
291
297
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentListComponent, never>;
292
- static ɵcmp: i0.ɵɵComponentDeclaration<DocumentListComponent, "lib-document-list", never, { "contextId": { "alias": "contextId"; "required": false; }; "documentListResponse": { "alias": "documentListResponse"; "required": false; }; "selectedMenuItemId": { "alias": "selectedMenuItemId"; "required": false; }; "navigationInfo": { "alias": "navigationInfo"; "required": false; }; "documentList": { "alias": "documentList"; "required": false; }; }, { "handleSelectedDocument": "handleSelectedDocument"; }, never, ["*"], false, never>;
298
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentListComponent, "lib-document-list", never, { "contextId": { "alias": "contextId"; "required": false; }; "documentListResponse": { "alias": "documentListResponse"; "required": false; }; "selectedMenuItemId": { "alias": "selectedMenuItemId"; "required": false; }; "navigationInfo": { "alias": "navigationInfo"; "required": false; }; "documentList": { "alias": "documentList"; "required": false; }; }, { "handleSelectedDocumentInNewTab": "handleSelectedDocumentInNewTab"; "handleSelectedDocument": "handleSelectedDocument"; }, never, ["*"], false, never>;
293
299
  }
@@ -84,8 +84,8 @@ export declare class DocumentHttpService {
84
84
  /**
85
85
  * Fetches document status count data by application ID with optional context ID and category parameters.
86
86
  * @param {string} applicationId - The application ID to fetch status data.
87
- * @param {string | null} contextId - The context ID (applicant ID) to filter by. If null, uses applicationId.
88
- * @param {string | null} categoryId - The category ID to filter by.
87
+ * @param {string | null} contextId - The context ID (applicant ID) to filter by. If null, omitted from query.
88
+ * @param {string | null} categoryId - The category ID to filter by. If null, omitted from query.
89
89
  * @returns {Observable<StatusDataModel[]>} Observable that emits the status data.
90
90
  */
91
91
  getStatusDocumentCount(applicationId: string, contextId?: string | null, categoryId?: string | null): Observable<StatusDataModel[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.4.03",
3
+ "version": "0.4.04",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"