cat-documents-ng 0.3.32 → 0.3.34

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.
@@ -174,11 +174,11 @@ export declare class DocumentContentViewerComponent implements OnChanges, OnInit
174
174
  */
175
175
  ngOnInit(): void;
176
176
  /**
177
- * Downloads the document
177
+ * Downloads the document using a robust approach that bypasses Angular Router interception
178
178
  */
179
179
  downloadDocument(): void;
180
180
  /**
181
- * Opens the document in a new tab
181
+ * Opens the document in a new tab using a robust approach that bypasses Angular Router interception
182
182
  */
183
183
  openInNewTab(): void;
184
184
  /**
@@ -55,9 +55,13 @@ export declare class DocumentHistoryComponent {
55
55
  */
56
56
  toggleAccordion(): void;
57
57
  /**
58
- * Process history data to add computed properties
59
- */
58
+ * Process history data to add computed properties
59
+ */
60
60
  get processedHistoryData(): ProcessedDocumentHistorySection[];
61
+ /**
62
+ * Download document using the service
63
+ */
64
+ downloadDocument(documentUrl: string, docName?: string): void;
61
65
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentHistoryComponent, never>;
62
66
  static ɵcmp: i0.ɵɵComponentDeclaration<DocumentHistoryComponent, "document-history", never, { "historyData": { "alias": "historyData"; "required": false; }; "showHistory": { "alias": "showHistory"; "required": false; }; }, {}, never, never, false, never>;
63
67
  }
@@ -259,6 +259,16 @@ export declare class DocumentListComponent implements OnInit, OnDestroy, OnChang
259
259
  * Resets the document list to the top when menu item is deselected
260
260
  */
261
261
  private resetToTop;
262
+ /**
263
+ * Handles changes in document list due to filtering
264
+ * Checks if the selected menu item's section is still visible and deselects if not
265
+ */
266
+ private handleDocumentListFilteringChange;
267
+ /**
268
+ * Checks if the currently selected menu item's section is visible in the filtered document list
269
+ * @returns True if the section is visible, false otherwise
270
+ */
271
+ private isSelectedMenuItemSectionVisible;
262
272
  onDocumentNameChange(event: Event): void;
263
273
  handleSaveClick(): void;
264
274
  /**
@@ -31,7 +31,7 @@ export declare class DocumentHistoryService {
31
31
  */
32
32
  processHistoryData(historyData: DocumentHistorySection[]): ProcessedDocumentHistorySection[];
33
33
  /**
34
- * Downloads a document when clicked
34
+ * Downloads a document when clicked using a robust approach that bypasses Angular Router interception
35
35
  * @param documentUrl - The URL of the document to download
36
36
  * @param docName - The name of the document
37
37
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.3.32",
3
+ "version": "0.3.34",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"