cat-documents-ng 0.3.34 → 0.3.35

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.
@@ -62,6 +62,10 @@ export declare class DocumentHistoryComponent {
62
62
  * Download document using the service
63
63
  */
64
64
  downloadDocument(documentUrl: string, docName?: string): void;
65
+ /**
66
+ * Test method to verify download functionality
67
+ */
68
+ testDownload(): void;
65
69
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentHistoryComponent, never>;
66
70
  static ɵcmp: i0.ɵɵComponentDeclaration<DocumentHistoryComponent, "document-history", never, { "historyData": { "alias": "historyData"; "required": false; }; "showHistory": { "alias": "showHistory"; "required": false; }; }, {}, never, never, false, never>;
67
71
  }
@@ -36,6 +36,18 @@ export declare class DocumentHistoryService {
36
36
  * @param docName - The name of the document
37
37
  */
38
38
  downloadDocument(documentUrl: string, docName?: string): void;
39
+ /**
40
+ * Downloads PDF files directly using a more reliable method
41
+ */
42
+ private downloadPdfDirectly;
43
+ /**
44
+ * Downloads other file types using a robust blob approach
45
+ */
46
+ private downloadWithBlob;
47
+ /**
48
+ * Fallback download method when other methods fail
49
+ */
50
+ private fallbackDownload;
39
51
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentHistoryService, never>;
40
52
  static ɵprov: i0.ɵɵInjectableDeclaration<DocumentHistoryService>;
41
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.3.34",
3
+ "version": "0.3.35",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"