@alfresco/adf-core 8.1.0-14618390551 → 8.1.0-14642948129
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, InjectionToken, OnChanges, OnDestroy, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
-
import { PDFViewer } from 'pdfjs-dist/web/pdf_viewer.mjs';
|
|
2
|
+
import { PDFViewer } from 'pdfjs-dist/legacy/web/pdf_viewer.mjs';
|
|
3
3
|
import { PDFDocumentLoadingTask, PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export type PdfScaleMode = 'init' | 'page-actual' | 'page-width' | 'page-height' | 'page-fit' | 'auto';
|
|
@@ -22,6 +22,8 @@ export declare class PdfViewerComponent implements OnChanges, OnDestroy {
|
|
|
22
22
|
totalPages: number;
|
|
23
23
|
loadingPercent: number;
|
|
24
24
|
pdfViewer: any;
|
|
25
|
+
pdfJsWorkerUrl: string;
|
|
26
|
+
pdfJsWorkerInstance: Worker;
|
|
25
27
|
currentScaleMode: PdfScaleMode;
|
|
26
28
|
MAX_AUTO_SCALE: number;
|
|
27
29
|
DEFAULT_SCALE_DELTA: number;
|
|
@@ -47,11 +49,13 @@ export declare class PdfViewerComponent implements OnChanges, OnDestroy {
|
|
|
47
49
|
constructor();
|
|
48
50
|
getUserScaling(): number;
|
|
49
51
|
checkLimits(scaleConfig: number): number;
|
|
50
|
-
ngOnChanges(changes: SimpleChanges): void
|
|
51
|
-
executePdf(pdfOptions: any): void
|
|
52
|
+
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
53
|
+
executePdf(pdfOptions: any): Promise<void>;
|
|
54
|
+
private getPdfJsWorker;
|
|
52
55
|
initPDFViewer(pdfDocument: PDFDocumentProxy): void;
|
|
53
56
|
ngOnDestroy(): void;
|
|
54
|
-
private
|
|
57
|
+
private destroyPfdJsWorker;
|
|
58
|
+
private revokePdfJsWorkerUrl;
|
|
55
59
|
toggleThumbnails(): void;
|
|
56
60
|
/**
|
|
57
61
|
* Method to scale the page current support implementation
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfresco/adf-core",
|
|
3
3
|
"description": "Alfresco ADF core",
|
|
4
|
-
"version": "8.1.0-
|
|
4
|
+
"version": "8.1.0-14642948129",
|
|
5
5
|
"author": "Hyland Software, Inc. and its affiliates",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"@angular/router": ">=16.0.0",
|
|
76
76
|
"@mat-datetimepicker/core": ">=12.0.1",
|
|
77
77
|
"@ngx-translate/core": ">=14.0.0",
|
|
78
|
-
"@alfresco/js-api": ">=9.1.0-
|
|
79
|
-
"@alfresco/adf-extensions": ">=8.1.0-
|
|
78
|
+
"@alfresco/js-api": ">=9.1.0-14642948129",
|
|
79
|
+
"@alfresco/adf-extensions": ">=8.1.0-14642948129",
|
|
80
80
|
"minimatch": ">=10.0.0",
|
|
81
81
|
"pdfjs-dist": ">=3.3.122",
|
|
82
82
|
"ts-morph": ">=20.0.0"
|