cat-documents-ng 0.3.90 → 0.3.99

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.
@@ -6,7 +6,7 @@ import { DocumentStore } from '../../state/document.store';
6
6
  import { DocumentCategory } from '../../models/document-category.model';
7
7
  import { UserListModel } from '../../models/user-list.model';
8
8
  import { StatusDataModel } from '../../models/status-data.model';
9
- import { DocumentListResponse } from '../../models/document-list-response.model';
9
+ import { DocumentListResponse, DocumentListItem } from '../../models/document-list-response.model';
10
10
  import { DocumentHelperService } from '../../services/document.service';
11
11
  import { DocumentMenuService } from '../../services/document-menu.service';
12
12
  import * as i0 from "@angular/core";
@@ -49,6 +49,11 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy, On
49
49
  */
50
50
  contentScrollContainer: ElementRef;
51
51
  selectedDocument: EventEmitter<any>;
52
+ documentOpenedInNewTab: EventEmitter<{
53
+ selectedDocument: DocumentListItem;
54
+ contextId: string;
55
+ documentList: DocumentListItem[];
56
+ }>;
52
57
  /**
53
58
  * Subscription to track selected menu item changes
54
59
  */
@@ -147,10 +152,15 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy, On
147
152
  */
148
153
  setupFilteredDocumentSubscription(): void;
149
154
  onDocumentSelected(document: any): void;
155
+ onDocumentOpenedInNewTab(data: {
156
+ selectedDocument: DocumentListItem;
157
+ contextId: string;
158
+ documentList: DocumentListItem[];
159
+ }): void;
150
160
  /**
151
161
  * Unsubscribe subscription on destroy of component and clean up state.
152
162
  */
153
163
  ngOnDestroy(): void;
154
164
  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>;
165
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentContainerComponent, "lib-document-container", never, { "contextId": { "alias": "contextId"; "required": false; }; }, { "selectedDocument": "selectedDocument"; "documentOpenedInNewTab": "documentOpenedInNewTab"; }, never, ["*"], false, never>;
156
166
  }
@@ -127,6 +127,11 @@ export declare class DocumentListComponent implements OnInit, OnDestroy, OnChang
127
127
  */
128
128
  deleteMessage: Message[];
129
129
  handleSelectedDocument: EventEmitter<DocumentListItem>;
130
+ handleSelectedDocumentInNewTab: EventEmitter<{
131
+ selectedDocument: DocumentListItem;
132
+ contextId: string;
133
+ documentList: DocumentListItem[];
134
+ }>;
130
135
  /**
131
136
  * Getter to return category labels as they come from the API
132
137
  */
@@ -171,6 +176,14 @@ export declare class DocumentListComponent implements OnInit, OnDestroy, OnChang
171
176
  * Handles table row click event
172
177
  */
173
178
  handleTableRowClick(rowData: any): void;
179
+ /**
180
+ * Handles table row Ctrl+Click event to open document in new tab
181
+ */
182
+ handleTableRowCtrlClick(rowData: any): void;
183
+ /**
184
+ * Opens the document viewer in a new browser tab
185
+ */
186
+ private openDocumentInNewTab;
174
187
  /**
175
188
  * Handles the delete action from the table component
176
189
  * @param {any} rowData - The row data containing the document to delete
@@ -289,5 +302,5 @@ export declare class DocumentListComponent implements OnInit, OnDestroy, OnChang
289
302
  */
290
303
  ngOnDestroy(): void;
291
304
  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>;
305
+ 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"; "handleSelectedDocumentInNewTab": "handleSelectedDocumentInNewTab"; }, never, ["*"], false, never>;
293
306
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.3.90",
3
+ "version": "0.3.99",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"