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.
- package/Shared/components/table-primary/table-primary.component.d.ts +6 -1
- package/fesm2022/cat-documents-ng.mjs +116 -30
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-history/document-history.component.d.ts +4 -0
- package/lib/document/services/document-history.service.d.ts +12 -0
- package/package.json +1 -1
|
@@ -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
|
}
|