cat-documents-ng 0.3.99 → 0.4.2

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, DocumentListItem } from '../../models/document-list-response.model';
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
12
  import * as i0 from "@angular/core";
@@ -49,10 +49,10 @@ 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;
52
+ emitSelectedDocumentInNewTab: EventEmitter<{
53
+ selectedDocument: any;
54
54
  contextId: string;
55
- documentList: DocumentListItem[];
55
+ documentList: any[];
56
56
  }>;
57
57
  /**
58
58
  * Subscription to track selected menu item changes
@@ -151,16 +151,24 @@ export declare class DocumentContainerComponent implements OnInit, OnDestroy, On
151
151
  * Sets up subscription to listen for filtered document responses
152
152
  */
153
153
  setupFilteredDocumentSubscription(): void;
154
+ /**
155
+ * Handles the selected document event
156
+ * @param document - The document to be selected
157
+ */
154
158
  onDocumentSelected(document: any): void;
155
- onDocumentOpenedInNewTab(data: {
156
- selectedDocument: DocumentListItem;
159
+ /**
160
+ * Handles the selected document in new tab event
161
+ * @param data - The data containing the selected document, contextId, and document list
162
+ */
163
+ handleSelectedDocumentInNewTab(data: {
164
+ selectedDocument: any;
157
165
  contextId: string;
158
- documentList: DocumentListItem[];
166
+ documentList: any[];
159
167
  }): void;
160
168
  /**
161
169
  * Unsubscribe subscription on destroy of component and clean up state.
162
170
  */
163
171
  ngOnDestroy(): void;
164
172
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentContainerComponent, never>;
165
- static ɵcmp: i0.ɵɵComponentDeclaration<DocumentContainerComponent, "lib-document-container", never, { "contextId": { "alias": "contextId"; "required": false; }; }, { "selectedDocument": "selectedDocument"; "documentOpenedInNewTab": "documentOpenedInNewTab"; }, never, ["*"], false, never>;
173
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentContainerComponent, "lib-document-container", never, { "contextId": { "alias": "contextId"; "required": false; }; }, { "selectedDocument": "selectedDocument"; "emitSelectedDocumentInNewTab": "emitSelectedDocumentInNewTab"; }, never, ["*"], false, never>;
166
174
  }
@@ -126,12 +126,12 @@ export declare class DocumentListComponent implements OnInit, OnDestroy, OnChang
126
126
  * Message to display for document deletion
127
127
  */
128
128
  deleteMessage: Message[];
129
- handleSelectedDocument: EventEmitter<DocumentListItem>;
130
129
  handleSelectedDocumentInNewTab: EventEmitter<{
131
130
  selectedDocument: DocumentListItem;
132
131
  contextId: string;
133
132
  documentList: DocumentListItem[];
134
133
  }>;
134
+ handleSelectedDocument: EventEmitter<DocumentListItem>;
135
135
  /**
136
136
  * Getter to return category labels as they come from the API
137
137
  */
@@ -176,19 +176,16 @@ export declare class DocumentListComponent implements OnInit, OnDestroy, OnChang
176
176
  * Handles table row click event
177
177
  */
178
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;
187
179
  /**
188
180
  * Handles the delete action from the table component
189
181
  * @param {any} rowData - The row data containing the document to delete
190
182
  */
191
183
  handleDeleteAction(rowData: any): void;
184
+ /**
185
+ * Handles table row ctrl click event
186
+ * @param {any} rowData - The row data containing the document to open in a new tab
187
+ */
188
+ handleTableRowCtrlClick(rowData: any): void;
192
189
  /**
193
190
  * Closes the document viewer dialog and resets the selected document
194
191
  */
@@ -302,5 +299,5 @@ export declare class DocumentListComponent implements OnInit, OnDestroy, OnChang
302
299
  */
303
300
  ngOnDestroy(): void;
304
301
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentListComponent, 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>;
302
+ 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>;
306
303
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.3.99",
3
+ "version": "0.4.02",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"