ngx-extended-pdf-viewer 16.2.13 → 16.2.14
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/changelog.md +1 -0
- package/esm2020/lib/ngx-extended-pdf-viewer.component.mjs +2 -2
- package/fesm2015/ngx-extended-pdf-viewer.mjs +2 -2
- package/fesm2015/ngx-extended-pdf-viewer.mjs.map +1 -1
- package/fesm2020/ngx-extended-pdf-viewer.mjs +2 -2
- package/fesm2020/ngx-extended-pdf-viewer.mjs.map +1 -1
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -442,3 +442,4 @@
|
|
|
442
442
|
- 16.2.11 #1622 improved compatibility to server-side rendering (don't use this version for production)
|
|
443
443
|
- 16.2.12 #1622 improved compatibility to server-side rendering
|
|
444
444
|
- 16.2.13 #1622 hide the toolbars and the menus when rendering on the server
|
|
445
|
+
- 16.2.14 #1622 hide the toolbars and the menus when rendering on the server
|
|
@@ -1952,10 +1952,10 @@ export class NgxExtendedPdfViewerComponent {
|
|
|
1952
1952
|
NgxExtendedPdfViewerComponent.originalPrint = typeof window !== 'undefined' ? window.print : undefined;
|
|
1953
1953
|
NgxExtendedPdfViewerComponent.ngxExtendedPdfViewerInitialized = false;
|
|
1954
1954
|
NgxExtendedPdfViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NgxExtendedPdfViewerComponent, deps: [{ token: i0.NgZone }, { token: PLATFORM_ID }, { token: i1.PDFNotificationService }, { token: i2.Location }, { token: i0.ElementRef }, { token: i2.PlatformLocation }, { token: i0.ChangeDetectorRef }, { token: i3.NgxExtendedPdfViewerService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
1955
|
-
NgxExtendedPdfViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NgxExtendedPdfViewerComponent, selector: "ngx-extended-pdf-viewer", inputs: { customFindbarInputArea: "customFindbarInputArea", customToolbar: "customToolbar", customFindbar: "customFindbar", customFindbarButtons: "customFindbarButtons", customPdfViewer: "customPdfViewer", customSecondaryToolbar: "customSecondaryToolbar", customSidebar: "customSidebar", customThumbnail: "customThumbnail", customFreeFloatingBar: "customFreeFloatingBar", showFreeFloatingBar: "showFreeFloatingBar", enableDragAndDrop: "enableDragAndDrop", formData: "formData", pageViewMode: "pageViewMode", scrollMode: "scrollMode", authorization: "authorization", httpHeaders: "httpHeaders", contextMenuAllowed: "contextMenuAllowed", enablePrint: "enablePrint", delayFirstView: "delayFirstView", showEditor: "showEditor", showTextEditor: "showTextEditor", showDrawEditor: "showDrawEditor", logLevel: "logLevel", relativeCoordsOptions: "relativeCoordsOptions", minifiedJSLibraries: "minifiedJSLibraries", printResolution: "printResolution", rotation: "rotation", src: "src", base64Src: "base64Src", minHeight: "minHeight", height: "height", useBrowserLocale: "useBrowserLocale", forceUsingLegacyES5: "forceUsingLegacyES5", backgroundColor: "backgroundColor", pdfBackground: "pdfBackground", pdfBackgroundColorToReplace: "pdfBackgroundColorToReplace", filenameForDownload: "filenameForDownload", ignoreKeyboard: "ignoreKeyboard", ignoreKeys: "ignoreKeys", acceptKeys: "acceptKeys", imageResourcesPath: "imageResourcesPath", localeFolderPath: "localeFolderPath", language: "language", listenToURL: "listenToURL", nameddest: "nameddest", password: "password", replaceBrowserPrint: "replaceBrowserPrint", showUnverifiedSignatures: "showUnverifiedSignatures", startTabindex: "startTabindex", showSidebarButton: "showSidebarButton", sidebarVisible: "sidebarVisible", activeSidebarView: "activeSidebarView", showFindButton: "showFindButton", showFindHighlightAll: "showFindHighlightAll", showFindMatchCase: "showFindMatchCase", showFindCurrentPageOnly: "showFindCurrentPageOnly", showFindPageRange: "showFindPageRange", showFindEntireWord: "showFindEntireWord", showFindEntirePhrase: "showFindEntirePhrase", showFindIgnoreAccents: "showFindIgnoreAccents", showFindFuzzySearch: "showFindFuzzySearch", showFindResultsCount: "showFindResultsCount", showFindMessages: "showFindMessages", showPagingButtons: "showPagingButtons", showZoomButtons: "showZoomButtons", showPresentationModeButton: "showPresentationModeButton", showOpenFileButton: "showOpenFileButton", showPrintButton: "showPrintButton", showDownloadButton: "showDownloadButton", theme: "theme", formTheme: "formTheme", showToolbar: "showToolbar", showSecondaryToolbarButton: "showSecondaryToolbarButton", showRotateButton: "showRotateButton", handTool: "handTool", showHandToolButton: "showHandToolButton", showScrollingButton: "showScrollingButton", showSpreadButton: "showSpreadButton", showPropertiesButton: "showPropertiesButton", showBorders: "showBorders", spread: "spread", page: "page", pageLabel: "pageLabel", textLayer: "textLayer", zoom: "zoom", zoomLevels: "zoomLevels", maxZoom: "maxZoom", minZoom: "minZoom", wheelAction: "wheelAction", mobileFriendlyZoom: "mobileFriendlyZoom" }, outputs: { formDataChange: "formDataChange", progress: "progress", srcChange: "srcChange", scrollModeChange: "scrollModeChange", afterPrint: "afterPrint", beforePrint: "beforePrint", currentZoomFactor: "currentZoomFactor", rotationChange: "rotationChange", annotationLayerRendered: "annotationLayerRendered", annotationEditorLayerRendered: "annotationEditorLayerRendered", xfaLayerRendered: "xfaLayerRendered", outlineLoaded: "outlineLoaded", attachmentsloaded: "attachmentsloaded", layersloaded: "layersloaded", sidebarVisibleChange: "sidebarVisibleChange", activeSidebarViewChange: "activeSidebarViewChange", handToolChange: "handToolChange", spreadChange: "spreadChange", thumbnailDrawn: "thumbnailDrawn", pageChange: "pageChange", pageLabelChange: "pageLabelChange", pagesLoaded: "pagesLoaded", pageRender: "pageRender", pageRendered: "pageRendered", pdfDownloaded: "pdfDownloaded", pdfLoaded: "pdfLoaded", pdfLoadingStarts: "pdfLoadingStarts", pdfLoadingFailed: "pdfLoadingFailed", textLayerRendered: "textLayerRendered", updateFindMatchesCount: "updateFindMatchesCount", updateFindState: "updateFindState", zoomChange: "zoomChange" }, host: { listeners: { "contextmenu": "onContextMenu()" } }, viewQueries: [{ propertyName: "dummyComponents", first: true, predicate: PdfDummyComponentsComponent, descendants: true }, { propertyName: "root", first: true, predicate: ["root"], descendants: true }, { propertyName: "secondaryToolbarComponent", first: true, predicate: ["pdfSecondaryToolbarComponent"], descendants: true }, { propertyName: "sidebarComponent", first: true, predicate: ["pdfsidebar"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<pdf-dark-theme *ngIf=\"theme === 'dark'\"></pdf-dark-theme>\n<pdf-light-theme *ngIf=\"theme === 'light'\"></pdf-light-theme>\n<pdf-acroform-dark-theme *ngIf=\"formTheme === 'dark'\"></pdf-acroform-dark-theme>\n<pdf-acroform-default-theme *ngIf=\"formTheme === 'light'\"></pdf-acroform-default-theme>\n\n<pdf-dynamic-css [zoom]=\"mobileFriendlyZoomScale\" [width]=\"toolbarWidthInPixels\"></pdf-dynamic-css>\n<ng-content *ngTemplateOutlet=\"customPdfViewer ? customPdfViewer : defaultPdfViewer\"></ng-content>\n\n<ng-template #defaultPdfViewer>\n <div class=\"zoom\" [style.height]=\"minHeight ? minHeight : height\" #root>\n <div class=\"html\">\n <div class=\"body\" [style.backgroundColor]=\"backgroundColor\">\n <div id=\"outerContainer\" (window:resize)=\"onResize()\">\n <div class=\"free-floating-bar\" *ngIf=\"showFreeFloatingBar\">\n <ng-content *ngTemplateOutlet=\"customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar\"> </ng-content>\n </div>\n <pdf-sidebar\n #pdfsidebar\n [sidebarVisible]=\"sidebarVisible || false\"\n [showSidebarButton]=\"showSidebarButton\"\n [customSidebar]=\"customSidebar\"\n [customThumbnail]=\"customThumbnail\"\n (thumbnailDrawn)=\"thumbnailDrawn.emit($event)\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [sidebarPositionTop]=\"sidebarPositionTop\"\n >\n </pdf-sidebar>\n <div id=\"mainContainer\" [class.toolbar-hidden]=\"!primaryMenuVisible\">\n <pdf-dummy-components></pdf-dummy-components>\n\n <pdf-toolbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [customToolbar]=\"customToolbar\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [primaryMenuVisible]=\"primaryMenuVisible\"\n [showDownloadButton]=\"showDownloadButton\"\n [showDrawEditor]=\"showDrawEditor\"\n [showTextEditor]=\"showTextEditor\"\n [showFindButton]=\"showFindButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showPagingButtons]=\"showPagingButtons\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showRotateButton]=\"showRotateButton\"\n [showSecondaryToolbarButton]=\"showSecondaryToolbarButton && !hideKebabMenuForSecondaryToolbar\"\n [showSidebarButton]=\"showSidebarButton\"\n [showZoomButtons]=\"showZoomButtons\"\n [textLayer]=\"textLayer\"\n [toolbarMarginTop]=\"toolbarMarginTop\"\n [toolbarWidth]=\"toolbarWidth\"\n (onToolbarLoaded)=\"onToolbarLoaded($event)\"\n [zoomLevels]=\"zoomLevels\"\n ></pdf-toolbar>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorFreeTextParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_color\">Font Color</label>\n <input type=\"color\" id=\"editorFreeTextColor\" class=\"editorParamsColor\" tabindex=\"100\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextFontSize\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_size\">Font Size</label>\n <input type=\"range\" id=\"editorFreeTextFontSize\" class=\"editorParamsSlider\" value=\"10\" min=\"5\" max=\"100\" step=\"1\" tabindex=\"101\" />\n </div>\n </div>\n </div>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorInkParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_color\">Color</label>\n <input type=\"color\" id=\"editorInkColor\" class=\"editorParamsColor\" tabindex=\"102\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkThickness\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_thickness\">Thickness</label>\n <input type=\"range\" id=\"editorInkThickness\" class=\"editorParamsSlider\" value=\"1\" min=\"1\" max=\"20\" step=\"1\" tabindex=\"103\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkOpacity\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_opacity\">Opacity</label>\n <input type=\"range\" id=\"editorInkOpacity\" class=\"editorParamsSlider\" value=\"100\" min=\"1\" max=\"100\" step=\"1\" tabindex=\"104\" />\n </div>\n </div>\n </div>\n\n <pdf-secondary-toolbar\n #pdfSecondaryToolbarComponent\n [class.server-side-rendering]=\"serverSideRendering\"\n [customSecondaryToolbar]=\"customSecondaryToolbar\"\n [secondaryToolbarTop]=\"secondaryToolbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showDownloadButton]=\"showDownloadButton\"\n [showPagingButtons]=\"showPagingButtons\"\n [showRotateButton]=\"showRotateButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showScrollingButton]=\"showScrollingButton\"\n [showSpreadButton]=\"showSpreadButton\"\n [showPropertiesButton]=\"showPropertiesButton\"\n (spreadChange)=\"onSpreadChange($event)\"\n (secondaryMenuIsEmpty)=\"onSecondaryMenuIsEmpty($event)\"\n >\n </pdf-secondary-toolbar>\n\n <pdf-findbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [findbarLeft]=\"findbarLeft\"\n [findbarTop]=\"findbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showFindButton]=\"showFindButton || false\"\n [customFindbarInputArea]=\"customFindbarInputArea\"\n [customFindbarButtons]=\"customFindbarButtons\"\n [showFindCurrentPageOnly]=\"showFindCurrentPageOnly\"\n [showFindEntirePhrase]=\"showFindEntirePhrase\"\n [showFindEntireWord]=\"showFindEntireWord\"\n [showFindFuzzySearch]=\"showFindFuzzySearch\"\n [showFindHighlightAll]=\"showFindHighlightAll\"\n [showFindIgnoreAccents]=\"showFindIgnoreAccents\"\n [showFindMatchCase]=\"showFindMatchCase\"\n [showFindMessages]=\"showFindMessages\"\n [showFindPageRange]=\"showFindPageRange\"\n [showFindResultsCount]=\"showFindResultsCount\"\n >\n </pdf-findbar>\n\n <pdf-context-menu></pdf-context-menu>\n\n <div id=\"viewerContainer\" [style.top]=\"viewerPositionTop\" [style.backgroundColor]=\"backgroundColor\" tabindex=\"0\">\n <div class=\"unverified-signature-warning\" *ngIf=\"hasSignature && showUnverifiedSignatures\">\n {{\n 'unverified_signature_warning'\n | translate\n : \"This PDF file contains a digital signature. The PDF viewer can't verify if the signature is valid.\n Please download the file and open it in Acrobat Reader to verify the signature is valid.\"\n | async\n }}\n </div>\n <div class=\"modified-background-warning\" *ngIf=\"pdfBackground\">\n {{\n 'modified_background_warning'\n | translate\n : 'This PDF is rendered with a custom background. It does not look the way its author\n intended it to look.'\n | async\n }}\n </div>\n <div id=\"viewer\" class=\"pdfViewer\" (dblclick)=\"zoomToPageWidth($event)\"></div>\n </div>\n <pdf-error-message></pdf-error-message>\n </div>\n <!-- mainContainer -->\n\n <div id=\"dialogContainer\">\n <pdf-password-dialog></pdf-password-dialog>\n <pdf-document-properties-dialog></pdf-document-properties-dialog>\n <pdf-prepare-printing-dialog></pdf-prepare-printing-dialog>\n </div>\n <!-- dialogContainer -->\n </div>\n <!-- outerContainer -->\n <input type=\"file\" id=\"fileInput\" class=\"hidden\" [class.server-side-rendering]=\"serverSideRendering\" />\n <div id=\"printContainer\"></div>\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #defaultFreeFloatingBar> </ng-template>\n", styles: ["#mainContainer.toolbar-hidden{margin-top:-30px}.server-side-rendering{display:none}\n"], components: [{ type: i4.PdfDarkThemeComponent, selector: "pdf-dark-theme" }, { type: i5.PdfLightThemeComponent, selector: "pdf-light-theme" }, { type: i6.PdfAcroformDarkThemeComponent, selector: "pdf-acroform-dark-theme" }, { type: i7.PdfAcroformDefaultThemeComponent, selector: "pdf-acroform-default-theme" }, { type: i8.DynamicCssComponent, selector: "pdf-dynamic-css", inputs: ["zoom", "width"] }, { type: i9.PdfSidebarComponent, selector: "pdf-sidebar", inputs: ["sidebarPositionTop", "sidebarVisible", "mobileFriendlyZoomScale", "showSidebarButton", "customSidebar", "customThumbnail"], outputs: ["thumbnailDrawn"] }, { type: i10.PdfDummyComponentsComponent, selector: "pdf-dummy-components" }, { type: i11.PdfToolbarComponent, selector: "pdf-toolbar", inputs: ["customToolbar", "mobileFriendlyZoomScale", "primaryMenuVisible", "showBookmarkButton", "showDownloadButton", "showDrawEditor", "showTextEditor", "showFindButton", "showHandToolButton", "showOpenFileButton", "showPrintButton", "showPagingButtons", "showPresentationModeButton", "showRotateButton", "showSecondaryToolbarButton", "showSidebarButton", "showZoomButtons", "textLayer", "toolbarMarginTop", "toolbarWidth", "zoomLevels"], outputs: ["onToolbarLoaded"] }, { type: i12.PdfSecondaryToolbarComponent, selector: "pdf-secondary-toolbar", inputs: ["customSecondaryToolbar", "secondaryToolbarTop", "mobileFriendlyZoomScale", "showPresentationModeButton", "showOpenFileButton", "showPrintButton", "showDownloadButton", "showPagingButtons", "showRotateButton", "showHandToolButton", "showScrollingButton", "showSpreadButton", "showPropertiesButton"], outputs: ["spreadChange", "secondaryMenuIsEmpty"] }, { type: i13.PdfFindbarComponent, selector: "pdf-findbar", inputs: ["showFindButton", "mobileFriendlyZoomScale", "findbarLeft", "findbarTop", "customFindbarInputArea", "customFindbar", "customFindbarButtons", "showFindHighlightAll", "showFindMatchCase", "showFindCurrentPageOnly", "showFindPageRange", "showFindEntireWord", "showFindEntirePhrase", "showFindIgnoreAccents", "showFindFuzzySearch", "showFindResultsCount", "showFindMessages"] }, { type: i14.PdfContextMenuComponent, selector: "pdf-context-menu" }, { type: i15.PdfErrorMessageComponent, selector: "pdf-error-message" }, { type: i16.PdfPasswordDialogComponent, selector: "pdf-password-dialog" }, { type: i17.PdfDocumentPropertiesDialogComponent, selector: "pdf-document-properties-dialog" }, { type: i18.PdfPreparePrintingDialogComponent, selector: "pdf-prepare-printing-dialog" }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "async": i2.AsyncPipe, "translate": i19.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1955
|
+
NgxExtendedPdfViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NgxExtendedPdfViewerComponent, selector: "ngx-extended-pdf-viewer", inputs: { customFindbarInputArea: "customFindbarInputArea", customToolbar: "customToolbar", customFindbar: "customFindbar", customFindbarButtons: "customFindbarButtons", customPdfViewer: "customPdfViewer", customSecondaryToolbar: "customSecondaryToolbar", customSidebar: "customSidebar", customThumbnail: "customThumbnail", customFreeFloatingBar: "customFreeFloatingBar", showFreeFloatingBar: "showFreeFloatingBar", enableDragAndDrop: "enableDragAndDrop", formData: "formData", pageViewMode: "pageViewMode", scrollMode: "scrollMode", authorization: "authorization", httpHeaders: "httpHeaders", contextMenuAllowed: "contextMenuAllowed", enablePrint: "enablePrint", delayFirstView: "delayFirstView", showEditor: "showEditor", showTextEditor: "showTextEditor", showDrawEditor: "showDrawEditor", logLevel: "logLevel", relativeCoordsOptions: "relativeCoordsOptions", minifiedJSLibraries: "minifiedJSLibraries", printResolution: "printResolution", rotation: "rotation", src: "src", base64Src: "base64Src", minHeight: "minHeight", height: "height", useBrowserLocale: "useBrowserLocale", forceUsingLegacyES5: "forceUsingLegacyES5", backgroundColor: "backgroundColor", pdfBackground: "pdfBackground", pdfBackgroundColorToReplace: "pdfBackgroundColorToReplace", filenameForDownload: "filenameForDownload", ignoreKeyboard: "ignoreKeyboard", ignoreKeys: "ignoreKeys", acceptKeys: "acceptKeys", imageResourcesPath: "imageResourcesPath", localeFolderPath: "localeFolderPath", language: "language", listenToURL: "listenToURL", nameddest: "nameddest", password: "password", replaceBrowserPrint: "replaceBrowserPrint", showUnverifiedSignatures: "showUnverifiedSignatures", startTabindex: "startTabindex", showSidebarButton: "showSidebarButton", sidebarVisible: "sidebarVisible", activeSidebarView: "activeSidebarView", showFindButton: "showFindButton", showFindHighlightAll: "showFindHighlightAll", showFindMatchCase: "showFindMatchCase", showFindCurrentPageOnly: "showFindCurrentPageOnly", showFindPageRange: "showFindPageRange", showFindEntireWord: "showFindEntireWord", showFindEntirePhrase: "showFindEntirePhrase", showFindIgnoreAccents: "showFindIgnoreAccents", showFindFuzzySearch: "showFindFuzzySearch", showFindResultsCount: "showFindResultsCount", showFindMessages: "showFindMessages", showPagingButtons: "showPagingButtons", showZoomButtons: "showZoomButtons", showPresentationModeButton: "showPresentationModeButton", showOpenFileButton: "showOpenFileButton", showPrintButton: "showPrintButton", showDownloadButton: "showDownloadButton", theme: "theme", formTheme: "formTheme", showToolbar: "showToolbar", showSecondaryToolbarButton: "showSecondaryToolbarButton", showRotateButton: "showRotateButton", handTool: "handTool", showHandToolButton: "showHandToolButton", showScrollingButton: "showScrollingButton", showSpreadButton: "showSpreadButton", showPropertiesButton: "showPropertiesButton", showBorders: "showBorders", spread: "spread", page: "page", pageLabel: "pageLabel", textLayer: "textLayer", zoom: "zoom", zoomLevels: "zoomLevels", maxZoom: "maxZoom", minZoom: "minZoom", wheelAction: "wheelAction", mobileFriendlyZoom: "mobileFriendlyZoom" }, outputs: { formDataChange: "formDataChange", progress: "progress", srcChange: "srcChange", scrollModeChange: "scrollModeChange", afterPrint: "afterPrint", beforePrint: "beforePrint", currentZoomFactor: "currentZoomFactor", rotationChange: "rotationChange", annotationLayerRendered: "annotationLayerRendered", annotationEditorLayerRendered: "annotationEditorLayerRendered", xfaLayerRendered: "xfaLayerRendered", outlineLoaded: "outlineLoaded", attachmentsloaded: "attachmentsloaded", layersloaded: "layersloaded", sidebarVisibleChange: "sidebarVisibleChange", activeSidebarViewChange: "activeSidebarViewChange", handToolChange: "handToolChange", spreadChange: "spreadChange", thumbnailDrawn: "thumbnailDrawn", pageChange: "pageChange", pageLabelChange: "pageLabelChange", pagesLoaded: "pagesLoaded", pageRender: "pageRender", pageRendered: "pageRendered", pdfDownloaded: "pdfDownloaded", pdfLoaded: "pdfLoaded", pdfLoadingStarts: "pdfLoadingStarts", pdfLoadingFailed: "pdfLoadingFailed", textLayerRendered: "textLayerRendered", updateFindMatchesCount: "updateFindMatchesCount", updateFindState: "updateFindState", zoomChange: "zoomChange" }, host: { listeners: { "contextmenu": "onContextMenu()" } }, viewQueries: [{ propertyName: "dummyComponents", first: true, predicate: PdfDummyComponentsComponent, descendants: true }, { propertyName: "root", first: true, predicate: ["root"], descendants: true }, { propertyName: "secondaryToolbarComponent", first: true, predicate: ["pdfSecondaryToolbarComponent"], descendants: true }, { propertyName: "sidebarComponent", first: true, predicate: ["pdfsidebar"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<pdf-dark-theme *ngIf=\"theme === 'dark'\"></pdf-dark-theme>\n<pdf-light-theme *ngIf=\"theme === 'light'\"></pdf-light-theme>\n<pdf-acroform-dark-theme *ngIf=\"formTheme === 'dark'\"></pdf-acroform-dark-theme>\n<pdf-acroform-default-theme *ngIf=\"formTheme === 'light'\"></pdf-acroform-default-theme>\n\n<pdf-dynamic-css [zoom]=\"mobileFriendlyZoomScale\" [width]=\"toolbarWidthInPixels\"></pdf-dynamic-css>\n<ng-content *ngTemplateOutlet=\"customPdfViewer ? customPdfViewer : defaultPdfViewer\"></ng-content>\n\n<ng-template #defaultPdfViewer>\n <div class=\"zoom\" [style.height]=\"minHeight ? minHeight : height\" #root>\n <div class=\"html\">\n <div class=\"body\" [style.backgroundColor]=\"backgroundColor\">\n <div id=\"outerContainer\" (window:resize)=\"onResize()\">\n <div class=\"free-floating-bar\" *ngIf=\"showFreeFloatingBar\">\n <ng-content *ngTemplateOutlet=\"customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar\"> </ng-content>\n </div>\n <pdf-sidebar\n #pdfsidebar\n [sidebarVisible]=\"sidebarVisible || false\"\n [showSidebarButton]=\"showSidebarButton\"\n [customSidebar]=\"customSidebar\"\n [customThumbnail]=\"customThumbnail\"\n (thumbnailDrawn)=\"thumbnailDrawn.emit($event)\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [sidebarPositionTop]=\"sidebarPositionTop\"\n >\n </pdf-sidebar>\n <div id=\"mainContainer\" [class.toolbar-hidden]=\"!primaryMenuVisible\">\n <pdf-dummy-components></pdf-dummy-components>\n\n <pdf-toolbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [customToolbar]=\"customToolbar\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [primaryMenuVisible]=\"primaryMenuVisible\"\n [showDownloadButton]=\"showDownloadButton\"\n [showDrawEditor]=\"showDrawEditor\"\n [showTextEditor]=\"showTextEditor\"\n [showFindButton]=\"showFindButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showPagingButtons]=\"showPagingButtons\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showRotateButton]=\"showRotateButton\"\n [showSecondaryToolbarButton]=\"showSecondaryToolbarButton && !hideKebabMenuForSecondaryToolbar\"\n [showSidebarButton]=\"showSidebarButton\"\n [showZoomButtons]=\"showZoomButtons\"\n [textLayer]=\"textLayer\"\n [toolbarMarginTop]=\"toolbarMarginTop\"\n [toolbarWidth]=\"toolbarWidth\"\n (onToolbarLoaded)=\"onToolbarLoaded($event)\"\n [zoomLevels]=\"zoomLevels\"\n ></pdf-toolbar>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorFreeTextParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_color\">Font Color</label>\n <input type=\"color\" id=\"editorFreeTextColor\" class=\"editorParamsColor\" tabindex=\"100\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextFontSize\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_size\">Font Size</label>\n <input type=\"range\" id=\"editorFreeTextFontSize\" class=\"editorParamsSlider\" value=\"10\" min=\"5\" max=\"100\" step=\"1\" tabindex=\"101\" />\n </div>\n </div>\n </div>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorInkParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_color\">Color</label>\n <input type=\"color\" id=\"editorInkColor\" class=\"editorParamsColor\" tabindex=\"102\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkThickness\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_thickness\">Thickness</label>\n <input type=\"range\" id=\"editorInkThickness\" class=\"editorParamsSlider\" value=\"1\" min=\"1\" max=\"20\" step=\"1\" tabindex=\"103\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkOpacity\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_opacity\">Opacity</label>\n <input type=\"range\" id=\"editorInkOpacity\" class=\"editorParamsSlider\" value=\"100\" min=\"1\" max=\"100\" step=\"1\" tabindex=\"104\" />\n </div>\n </div>\n </div>\n\n <pdf-secondary-toolbar\n #pdfSecondaryToolbarComponent\n [class.server-side-rendering]=\"serverSideRendering\"\n [customSecondaryToolbar]=\"customSecondaryToolbar\"\n [secondaryToolbarTop]=\"secondaryToolbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showDownloadButton]=\"showDownloadButton\"\n [showPagingButtons]=\"showPagingButtons\"\n [showRotateButton]=\"showRotateButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showScrollingButton]=\"showScrollingButton\"\n [showSpreadButton]=\"showSpreadButton\"\n [showPropertiesButton]=\"showPropertiesButton\"\n (spreadChange)=\"onSpreadChange($event)\"\n (secondaryMenuIsEmpty)=\"onSecondaryMenuIsEmpty($event)\"\n >\n </pdf-secondary-toolbar>\n\n <pdf-findbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [findbarLeft]=\"findbarLeft\"\n [findbarTop]=\"findbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showFindButton]=\"showFindButton || false\"\n [customFindbarInputArea]=\"customFindbarInputArea\"\n [customFindbarButtons]=\"customFindbarButtons\"\n [showFindCurrentPageOnly]=\"showFindCurrentPageOnly\"\n [showFindEntirePhrase]=\"showFindEntirePhrase\"\n [showFindEntireWord]=\"showFindEntireWord\"\n [showFindFuzzySearch]=\"showFindFuzzySearch\"\n [showFindHighlightAll]=\"showFindHighlightAll\"\n [showFindIgnoreAccents]=\"showFindIgnoreAccents\"\n [showFindMatchCase]=\"showFindMatchCase\"\n [showFindMessages]=\"showFindMessages\"\n [showFindPageRange]=\"showFindPageRange\"\n [showFindResultsCount]=\"showFindResultsCount\"\n >\n </pdf-findbar>\n\n <pdf-context-menu></pdf-context-menu>\n\n <div id=\"viewerContainer\" [style.top]=\"viewerPositionTop\" [style.backgroundColor]=\"backgroundColor\" tabindex=\"0\">\n <div class=\"unverified-signature-warning\" *ngIf=\"hasSignature && showUnverifiedSignatures\">\n {{\n 'unverified_signature_warning'\n | translate\n : \"This PDF file contains a digital signature. The PDF viewer can't verify if the signature is valid.\n Please download the file and open it in Acrobat Reader to verify the signature is valid.\"\n | async\n }}\n </div>\n <div class=\"modified-background-warning\" *ngIf=\"pdfBackground\">\n {{\n 'modified_background_warning'\n | translate\n : 'This PDF is rendered with a custom background. It does not look the way its author\n intended it to look.'\n | async\n }}\n </div>\n <div id=\"viewer\" class=\"pdfViewer\" (dblclick)=\"zoomToPageWidth($event)\"></div>\n </div>\n <pdf-error-message></pdf-error-message>\n </div>\n <!-- mainContainer -->\n\n <div id=\"dialogContainer\">\n <pdf-password-dialog></pdf-password-dialog>\n <pdf-document-properties-dialog></pdf-document-properties-dialog>\n <pdf-prepare-printing-dialog></pdf-prepare-printing-dialog>\n </div>\n <!-- dialogContainer -->\n </div>\n <!-- outerContainer -->\n <input type=\"file\" id=\"fileInput\" class=\"hidden\" [class.server-side-rendering]=\"serverSideRendering\" />\n <div id=\"printContainer\"></div>\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #defaultFreeFloatingBar> </ng-template>\n", styles: ["#mainContainer.toolbar-hidden{margin-top:-30px}.server-side-rendering,.hidden{display:none}\n"], components: [{ type: i4.PdfDarkThemeComponent, selector: "pdf-dark-theme" }, { type: i5.PdfLightThemeComponent, selector: "pdf-light-theme" }, { type: i6.PdfAcroformDarkThemeComponent, selector: "pdf-acroform-dark-theme" }, { type: i7.PdfAcroformDefaultThemeComponent, selector: "pdf-acroform-default-theme" }, { type: i8.DynamicCssComponent, selector: "pdf-dynamic-css", inputs: ["zoom", "width"] }, { type: i9.PdfSidebarComponent, selector: "pdf-sidebar", inputs: ["sidebarPositionTop", "sidebarVisible", "mobileFriendlyZoomScale", "showSidebarButton", "customSidebar", "customThumbnail"], outputs: ["thumbnailDrawn"] }, { type: i10.PdfDummyComponentsComponent, selector: "pdf-dummy-components" }, { type: i11.PdfToolbarComponent, selector: "pdf-toolbar", inputs: ["customToolbar", "mobileFriendlyZoomScale", "primaryMenuVisible", "showBookmarkButton", "showDownloadButton", "showDrawEditor", "showTextEditor", "showFindButton", "showHandToolButton", "showOpenFileButton", "showPrintButton", "showPagingButtons", "showPresentationModeButton", "showRotateButton", "showSecondaryToolbarButton", "showSidebarButton", "showZoomButtons", "textLayer", "toolbarMarginTop", "toolbarWidth", "zoomLevels"], outputs: ["onToolbarLoaded"] }, { type: i12.PdfSecondaryToolbarComponent, selector: "pdf-secondary-toolbar", inputs: ["customSecondaryToolbar", "secondaryToolbarTop", "mobileFriendlyZoomScale", "showPresentationModeButton", "showOpenFileButton", "showPrintButton", "showDownloadButton", "showPagingButtons", "showRotateButton", "showHandToolButton", "showScrollingButton", "showSpreadButton", "showPropertiesButton"], outputs: ["spreadChange", "secondaryMenuIsEmpty"] }, { type: i13.PdfFindbarComponent, selector: "pdf-findbar", inputs: ["showFindButton", "mobileFriendlyZoomScale", "findbarLeft", "findbarTop", "customFindbarInputArea", "customFindbar", "customFindbarButtons", "showFindHighlightAll", "showFindMatchCase", "showFindCurrentPageOnly", "showFindPageRange", "showFindEntireWord", "showFindEntirePhrase", "showFindIgnoreAccents", "showFindFuzzySearch", "showFindResultsCount", "showFindMessages"] }, { type: i14.PdfContextMenuComponent, selector: "pdf-context-menu" }, { type: i15.PdfErrorMessageComponent, selector: "pdf-error-message" }, { type: i16.PdfPasswordDialogComponent, selector: "pdf-password-dialog" }, { type: i17.PdfDocumentPropertiesDialogComponent, selector: "pdf-document-properties-dialog" }, { type: i18.PdfPreparePrintingDialogComponent, selector: "pdf-prepare-printing-dialog" }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "async": i2.AsyncPipe, "translate": i19.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1956
1956
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NgxExtendedPdfViewerComponent, decorators: [{
|
|
1957
1957
|
type: Component,
|
|
1958
|
-
args: [{ selector: 'ngx-extended-pdf-viewer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<pdf-dark-theme *ngIf=\"theme === 'dark'\"></pdf-dark-theme>\n<pdf-light-theme *ngIf=\"theme === 'light'\"></pdf-light-theme>\n<pdf-acroform-dark-theme *ngIf=\"formTheme === 'dark'\"></pdf-acroform-dark-theme>\n<pdf-acroform-default-theme *ngIf=\"formTheme === 'light'\"></pdf-acroform-default-theme>\n\n<pdf-dynamic-css [zoom]=\"mobileFriendlyZoomScale\" [width]=\"toolbarWidthInPixels\"></pdf-dynamic-css>\n<ng-content *ngTemplateOutlet=\"customPdfViewer ? customPdfViewer : defaultPdfViewer\"></ng-content>\n\n<ng-template #defaultPdfViewer>\n <div class=\"zoom\" [style.height]=\"minHeight ? minHeight : height\" #root>\n <div class=\"html\">\n <div class=\"body\" [style.backgroundColor]=\"backgroundColor\">\n <div id=\"outerContainer\" (window:resize)=\"onResize()\">\n <div class=\"free-floating-bar\" *ngIf=\"showFreeFloatingBar\">\n <ng-content *ngTemplateOutlet=\"customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar\"> </ng-content>\n </div>\n <pdf-sidebar\n #pdfsidebar\n [sidebarVisible]=\"sidebarVisible || false\"\n [showSidebarButton]=\"showSidebarButton\"\n [customSidebar]=\"customSidebar\"\n [customThumbnail]=\"customThumbnail\"\n (thumbnailDrawn)=\"thumbnailDrawn.emit($event)\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [sidebarPositionTop]=\"sidebarPositionTop\"\n >\n </pdf-sidebar>\n <div id=\"mainContainer\" [class.toolbar-hidden]=\"!primaryMenuVisible\">\n <pdf-dummy-components></pdf-dummy-components>\n\n <pdf-toolbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [customToolbar]=\"customToolbar\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [primaryMenuVisible]=\"primaryMenuVisible\"\n [showDownloadButton]=\"showDownloadButton\"\n [showDrawEditor]=\"showDrawEditor\"\n [showTextEditor]=\"showTextEditor\"\n [showFindButton]=\"showFindButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showPagingButtons]=\"showPagingButtons\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showRotateButton]=\"showRotateButton\"\n [showSecondaryToolbarButton]=\"showSecondaryToolbarButton && !hideKebabMenuForSecondaryToolbar\"\n [showSidebarButton]=\"showSidebarButton\"\n [showZoomButtons]=\"showZoomButtons\"\n [textLayer]=\"textLayer\"\n [toolbarMarginTop]=\"toolbarMarginTop\"\n [toolbarWidth]=\"toolbarWidth\"\n (onToolbarLoaded)=\"onToolbarLoaded($event)\"\n [zoomLevels]=\"zoomLevels\"\n ></pdf-toolbar>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorFreeTextParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_color\">Font Color</label>\n <input type=\"color\" id=\"editorFreeTextColor\" class=\"editorParamsColor\" tabindex=\"100\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextFontSize\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_size\">Font Size</label>\n <input type=\"range\" id=\"editorFreeTextFontSize\" class=\"editorParamsSlider\" value=\"10\" min=\"5\" max=\"100\" step=\"1\" tabindex=\"101\" />\n </div>\n </div>\n </div>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorInkParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_color\">Color</label>\n <input type=\"color\" id=\"editorInkColor\" class=\"editorParamsColor\" tabindex=\"102\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkThickness\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_thickness\">Thickness</label>\n <input type=\"range\" id=\"editorInkThickness\" class=\"editorParamsSlider\" value=\"1\" min=\"1\" max=\"20\" step=\"1\" tabindex=\"103\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkOpacity\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_opacity\">Opacity</label>\n <input type=\"range\" id=\"editorInkOpacity\" class=\"editorParamsSlider\" value=\"100\" min=\"1\" max=\"100\" step=\"1\" tabindex=\"104\" />\n </div>\n </div>\n </div>\n\n <pdf-secondary-toolbar\n #pdfSecondaryToolbarComponent\n [class.server-side-rendering]=\"serverSideRendering\"\n [customSecondaryToolbar]=\"customSecondaryToolbar\"\n [secondaryToolbarTop]=\"secondaryToolbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showDownloadButton]=\"showDownloadButton\"\n [showPagingButtons]=\"showPagingButtons\"\n [showRotateButton]=\"showRotateButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showScrollingButton]=\"showScrollingButton\"\n [showSpreadButton]=\"showSpreadButton\"\n [showPropertiesButton]=\"showPropertiesButton\"\n (spreadChange)=\"onSpreadChange($event)\"\n (secondaryMenuIsEmpty)=\"onSecondaryMenuIsEmpty($event)\"\n >\n </pdf-secondary-toolbar>\n\n <pdf-findbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [findbarLeft]=\"findbarLeft\"\n [findbarTop]=\"findbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showFindButton]=\"showFindButton || false\"\n [customFindbarInputArea]=\"customFindbarInputArea\"\n [customFindbarButtons]=\"customFindbarButtons\"\n [showFindCurrentPageOnly]=\"showFindCurrentPageOnly\"\n [showFindEntirePhrase]=\"showFindEntirePhrase\"\n [showFindEntireWord]=\"showFindEntireWord\"\n [showFindFuzzySearch]=\"showFindFuzzySearch\"\n [showFindHighlightAll]=\"showFindHighlightAll\"\n [showFindIgnoreAccents]=\"showFindIgnoreAccents\"\n [showFindMatchCase]=\"showFindMatchCase\"\n [showFindMessages]=\"showFindMessages\"\n [showFindPageRange]=\"showFindPageRange\"\n [showFindResultsCount]=\"showFindResultsCount\"\n >\n </pdf-findbar>\n\n <pdf-context-menu></pdf-context-menu>\n\n <div id=\"viewerContainer\" [style.top]=\"viewerPositionTop\" [style.backgroundColor]=\"backgroundColor\" tabindex=\"0\">\n <div class=\"unverified-signature-warning\" *ngIf=\"hasSignature && showUnverifiedSignatures\">\n {{\n 'unverified_signature_warning'\n | translate\n : \"This PDF file contains a digital signature. The PDF viewer can't verify if the signature is valid.\n Please download the file and open it in Acrobat Reader to verify the signature is valid.\"\n | async\n }}\n </div>\n <div class=\"modified-background-warning\" *ngIf=\"pdfBackground\">\n {{\n 'modified_background_warning'\n | translate\n : 'This PDF is rendered with a custom background. It does not look the way its author\n intended it to look.'\n | async\n }}\n </div>\n <div id=\"viewer\" class=\"pdfViewer\" (dblclick)=\"zoomToPageWidth($event)\"></div>\n </div>\n <pdf-error-message></pdf-error-message>\n </div>\n <!-- mainContainer -->\n\n <div id=\"dialogContainer\">\n <pdf-password-dialog></pdf-password-dialog>\n <pdf-document-properties-dialog></pdf-document-properties-dialog>\n <pdf-prepare-printing-dialog></pdf-prepare-printing-dialog>\n </div>\n <!-- dialogContainer -->\n </div>\n <!-- outerContainer -->\n <input type=\"file\" id=\"fileInput\" class=\"hidden\" [class.server-side-rendering]=\"serverSideRendering\" />\n <div id=\"printContainer\"></div>\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #defaultFreeFloatingBar> </ng-template>\n", styles: ["#mainContainer.toolbar-hidden{margin-top:-30px}.server-side-rendering{display:none}\n"] }]
|
|
1958
|
+
args: [{ selector: 'ngx-extended-pdf-viewer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<pdf-dark-theme *ngIf=\"theme === 'dark'\"></pdf-dark-theme>\n<pdf-light-theme *ngIf=\"theme === 'light'\"></pdf-light-theme>\n<pdf-acroform-dark-theme *ngIf=\"formTheme === 'dark'\"></pdf-acroform-dark-theme>\n<pdf-acroform-default-theme *ngIf=\"formTheme === 'light'\"></pdf-acroform-default-theme>\n\n<pdf-dynamic-css [zoom]=\"mobileFriendlyZoomScale\" [width]=\"toolbarWidthInPixels\"></pdf-dynamic-css>\n<ng-content *ngTemplateOutlet=\"customPdfViewer ? customPdfViewer : defaultPdfViewer\"></ng-content>\n\n<ng-template #defaultPdfViewer>\n <div class=\"zoom\" [style.height]=\"minHeight ? minHeight : height\" #root>\n <div class=\"html\">\n <div class=\"body\" [style.backgroundColor]=\"backgroundColor\">\n <div id=\"outerContainer\" (window:resize)=\"onResize()\">\n <div class=\"free-floating-bar\" *ngIf=\"showFreeFloatingBar\">\n <ng-content *ngTemplateOutlet=\"customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar\"> </ng-content>\n </div>\n <pdf-sidebar\n #pdfsidebar\n [sidebarVisible]=\"sidebarVisible || false\"\n [showSidebarButton]=\"showSidebarButton\"\n [customSidebar]=\"customSidebar\"\n [customThumbnail]=\"customThumbnail\"\n (thumbnailDrawn)=\"thumbnailDrawn.emit($event)\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [sidebarPositionTop]=\"sidebarPositionTop\"\n >\n </pdf-sidebar>\n <div id=\"mainContainer\" [class.toolbar-hidden]=\"!primaryMenuVisible\">\n <pdf-dummy-components></pdf-dummy-components>\n\n <pdf-toolbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [customToolbar]=\"customToolbar\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [primaryMenuVisible]=\"primaryMenuVisible\"\n [showDownloadButton]=\"showDownloadButton\"\n [showDrawEditor]=\"showDrawEditor\"\n [showTextEditor]=\"showTextEditor\"\n [showFindButton]=\"showFindButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showPagingButtons]=\"showPagingButtons\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showRotateButton]=\"showRotateButton\"\n [showSecondaryToolbarButton]=\"showSecondaryToolbarButton && !hideKebabMenuForSecondaryToolbar\"\n [showSidebarButton]=\"showSidebarButton\"\n [showZoomButtons]=\"showZoomButtons\"\n [textLayer]=\"textLayer\"\n [toolbarMarginTop]=\"toolbarMarginTop\"\n [toolbarWidth]=\"toolbarWidth\"\n (onToolbarLoaded)=\"onToolbarLoaded($event)\"\n [zoomLevels]=\"zoomLevels\"\n ></pdf-toolbar>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorFreeTextParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_color\">Font Color</label>\n <input type=\"color\" id=\"editorFreeTextColor\" class=\"editorParamsColor\" tabindex=\"100\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextFontSize\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_size\">Font Size</label>\n <input type=\"range\" id=\"editorFreeTextFontSize\" class=\"editorParamsSlider\" value=\"10\" min=\"5\" max=\"100\" step=\"1\" tabindex=\"101\" />\n </div>\n </div>\n </div>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorInkParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_color\">Color</label>\n <input type=\"color\" id=\"editorInkColor\" class=\"editorParamsColor\" tabindex=\"102\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkThickness\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_thickness\">Thickness</label>\n <input type=\"range\" id=\"editorInkThickness\" class=\"editorParamsSlider\" value=\"1\" min=\"1\" max=\"20\" step=\"1\" tabindex=\"103\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkOpacity\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_opacity\">Opacity</label>\n <input type=\"range\" id=\"editorInkOpacity\" class=\"editorParamsSlider\" value=\"100\" min=\"1\" max=\"100\" step=\"1\" tabindex=\"104\" />\n </div>\n </div>\n </div>\n\n <pdf-secondary-toolbar\n #pdfSecondaryToolbarComponent\n [class.server-side-rendering]=\"serverSideRendering\"\n [customSecondaryToolbar]=\"customSecondaryToolbar\"\n [secondaryToolbarTop]=\"secondaryToolbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showDownloadButton]=\"showDownloadButton\"\n [showPagingButtons]=\"showPagingButtons\"\n [showRotateButton]=\"showRotateButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showScrollingButton]=\"showScrollingButton\"\n [showSpreadButton]=\"showSpreadButton\"\n [showPropertiesButton]=\"showPropertiesButton\"\n (spreadChange)=\"onSpreadChange($event)\"\n (secondaryMenuIsEmpty)=\"onSecondaryMenuIsEmpty($event)\"\n >\n </pdf-secondary-toolbar>\n\n <pdf-findbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [findbarLeft]=\"findbarLeft\"\n [findbarTop]=\"findbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showFindButton]=\"showFindButton || false\"\n [customFindbarInputArea]=\"customFindbarInputArea\"\n [customFindbarButtons]=\"customFindbarButtons\"\n [showFindCurrentPageOnly]=\"showFindCurrentPageOnly\"\n [showFindEntirePhrase]=\"showFindEntirePhrase\"\n [showFindEntireWord]=\"showFindEntireWord\"\n [showFindFuzzySearch]=\"showFindFuzzySearch\"\n [showFindHighlightAll]=\"showFindHighlightAll\"\n [showFindIgnoreAccents]=\"showFindIgnoreAccents\"\n [showFindMatchCase]=\"showFindMatchCase\"\n [showFindMessages]=\"showFindMessages\"\n [showFindPageRange]=\"showFindPageRange\"\n [showFindResultsCount]=\"showFindResultsCount\"\n >\n </pdf-findbar>\n\n <pdf-context-menu></pdf-context-menu>\n\n <div id=\"viewerContainer\" [style.top]=\"viewerPositionTop\" [style.backgroundColor]=\"backgroundColor\" tabindex=\"0\">\n <div class=\"unverified-signature-warning\" *ngIf=\"hasSignature && showUnverifiedSignatures\">\n {{\n 'unverified_signature_warning'\n | translate\n : \"This PDF file contains a digital signature. The PDF viewer can't verify if the signature is valid.\n Please download the file and open it in Acrobat Reader to verify the signature is valid.\"\n | async\n }}\n </div>\n <div class=\"modified-background-warning\" *ngIf=\"pdfBackground\">\n {{\n 'modified_background_warning'\n | translate\n : 'This PDF is rendered with a custom background. It does not look the way its author\n intended it to look.'\n | async\n }}\n </div>\n <div id=\"viewer\" class=\"pdfViewer\" (dblclick)=\"zoomToPageWidth($event)\"></div>\n </div>\n <pdf-error-message></pdf-error-message>\n </div>\n <!-- mainContainer -->\n\n <div id=\"dialogContainer\">\n <pdf-password-dialog></pdf-password-dialog>\n <pdf-document-properties-dialog></pdf-document-properties-dialog>\n <pdf-prepare-printing-dialog></pdf-prepare-printing-dialog>\n </div>\n <!-- dialogContainer -->\n </div>\n <!-- outerContainer -->\n <input type=\"file\" id=\"fileInput\" class=\"hidden\" [class.server-side-rendering]=\"serverSideRendering\" />\n <div id=\"printContainer\"></div>\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #defaultFreeFloatingBar> </ng-template>\n", styles: ["#mainContainer.toolbar-hidden{margin-top:-30px}.server-side-rendering,.hidden{display:none}\n"] }]
|
|
1959
1959
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: undefined, decorators: [{
|
|
1960
1960
|
type: Inject,
|
|
1961
1961
|
args: [PLATFORM_ID]
|
|
@@ -5309,10 +5309,10 @@ class NgxExtendedPdfViewerComponent {
|
|
|
5309
5309
|
NgxExtendedPdfViewerComponent.originalPrint = typeof window !== 'undefined' ? window.print : undefined;
|
|
5310
5310
|
NgxExtendedPdfViewerComponent.ngxExtendedPdfViewerInitialized = false;
|
|
5311
5311
|
NgxExtendedPdfViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NgxExtendedPdfViewerComponent, deps: [{ token: i0.NgZone }, { token: PLATFORM_ID }, { token: PDFNotificationService }, { token: i2.Location }, { token: i0.ElementRef }, { token: i2.PlatformLocation }, { token: i0.ChangeDetectorRef }, { token: NgxExtendedPdfViewerService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
5312
|
-
NgxExtendedPdfViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NgxExtendedPdfViewerComponent, selector: "ngx-extended-pdf-viewer", inputs: { customFindbarInputArea: "customFindbarInputArea", customToolbar: "customToolbar", customFindbar: "customFindbar", customFindbarButtons: "customFindbarButtons", customPdfViewer: "customPdfViewer", customSecondaryToolbar: "customSecondaryToolbar", customSidebar: "customSidebar", customThumbnail: "customThumbnail", customFreeFloatingBar: "customFreeFloatingBar", showFreeFloatingBar: "showFreeFloatingBar", enableDragAndDrop: "enableDragAndDrop", formData: "formData", pageViewMode: "pageViewMode", scrollMode: "scrollMode", authorization: "authorization", httpHeaders: "httpHeaders", contextMenuAllowed: "contextMenuAllowed", enablePrint: "enablePrint", delayFirstView: "delayFirstView", showEditor: "showEditor", showTextEditor: "showTextEditor", showDrawEditor: "showDrawEditor", logLevel: "logLevel", relativeCoordsOptions: "relativeCoordsOptions", minifiedJSLibraries: "minifiedJSLibraries", printResolution: "printResolution", rotation: "rotation", src: "src", base64Src: "base64Src", minHeight: "minHeight", height: "height", useBrowserLocale: "useBrowserLocale", forceUsingLegacyES5: "forceUsingLegacyES5", backgroundColor: "backgroundColor", pdfBackground: "pdfBackground", pdfBackgroundColorToReplace: "pdfBackgroundColorToReplace", filenameForDownload: "filenameForDownload", ignoreKeyboard: "ignoreKeyboard", ignoreKeys: "ignoreKeys", acceptKeys: "acceptKeys", imageResourcesPath: "imageResourcesPath", localeFolderPath: "localeFolderPath", language: "language", listenToURL: "listenToURL", nameddest: "nameddest", password: "password", replaceBrowserPrint: "replaceBrowserPrint", showUnverifiedSignatures: "showUnverifiedSignatures", startTabindex: "startTabindex", showSidebarButton: "showSidebarButton", sidebarVisible: "sidebarVisible", activeSidebarView: "activeSidebarView", showFindButton: "showFindButton", showFindHighlightAll: "showFindHighlightAll", showFindMatchCase: "showFindMatchCase", showFindCurrentPageOnly: "showFindCurrentPageOnly", showFindPageRange: "showFindPageRange", showFindEntireWord: "showFindEntireWord", showFindEntirePhrase: "showFindEntirePhrase", showFindIgnoreAccents: "showFindIgnoreAccents", showFindFuzzySearch: "showFindFuzzySearch", showFindResultsCount: "showFindResultsCount", showFindMessages: "showFindMessages", showPagingButtons: "showPagingButtons", showZoomButtons: "showZoomButtons", showPresentationModeButton: "showPresentationModeButton", showOpenFileButton: "showOpenFileButton", showPrintButton: "showPrintButton", showDownloadButton: "showDownloadButton", theme: "theme", formTheme: "formTheme", showToolbar: "showToolbar", showSecondaryToolbarButton: "showSecondaryToolbarButton", showRotateButton: "showRotateButton", handTool: "handTool", showHandToolButton: "showHandToolButton", showScrollingButton: "showScrollingButton", showSpreadButton: "showSpreadButton", showPropertiesButton: "showPropertiesButton", showBorders: "showBorders", spread: "spread", page: "page", pageLabel: "pageLabel", textLayer: "textLayer", zoom: "zoom", zoomLevels: "zoomLevels", maxZoom: "maxZoom", minZoom: "minZoom", wheelAction: "wheelAction", mobileFriendlyZoom: "mobileFriendlyZoom" }, outputs: { formDataChange: "formDataChange", progress: "progress", srcChange: "srcChange", scrollModeChange: "scrollModeChange", afterPrint: "afterPrint", beforePrint: "beforePrint", currentZoomFactor: "currentZoomFactor", rotationChange: "rotationChange", annotationLayerRendered: "annotationLayerRendered", annotationEditorLayerRendered: "annotationEditorLayerRendered", xfaLayerRendered: "xfaLayerRendered", outlineLoaded: "outlineLoaded", attachmentsloaded: "attachmentsloaded", layersloaded: "layersloaded", sidebarVisibleChange: "sidebarVisibleChange", activeSidebarViewChange: "activeSidebarViewChange", handToolChange: "handToolChange", spreadChange: "spreadChange", thumbnailDrawn: "thumbnailDrawn", pageChange: "pageChange", pageLabelChange: "pageLabelChange", pagesLoaded: "pagesLoaded", pageRender: "pageRender", pageRendered: "pageRendered", pdfDownloaded: "pdfDownloaded", pdfLoaded: "pdfLoaded", pdfLoadingStarts: "pdfLoadingStarts", pdfLoadingFailed: "pdfLoadingFailed", textLayerRendered: "textLayerRendered", updateFindMatchesCount: "updateFindMatchesCount", updateFindState: "updateFindState", zoomChange: "zoomChange" }, host: { listeners: { "contextmenu": "onContextMenu()" } }, viewQueries: [{ propertyName: "dummyComponents", first: true, predicate: PdfDummyComponentsComponent, descendants: true }, { propertyName: "root", first: true, predicate: ["root"], descendants: true }, { propertyName: "secondaryToolbarComponent", first: true, predicate: ["pdfSecondaryToolbarComponent"], descendants: true }, { propertyName: "sidebarComponent", first: true, predicate: ["pdfsidebar"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<pdf-dark-theme *ngIf=\"theme === 'dark'\"></pdf-dark-theme>\n<pdf-light-theme *ngIf=\"theme === 'light'\"></pdf-light-theme>\n<pdf-acroform-dark-theme *ngIf=\"formTheme === 'dark'\"></pdf-acroform-dark-theme>\n<pdf-acroform-default-theme *ngIf=\"formTheme === 'light'\"></pdf-acroform-default-theme>\n\n<pdf-dynamic-css [zoom]=\"mobileFriendlyZoomScale\" [width]=\"toolbarWidthInPixels\"></pdf-dynamic-css>\n<ng-content *ngTemplateOutlet=\"customPdfViewer ? customPdfViewer : defaultPdfViewer\"></ng-content>\n\n<ng-template #defaultPdfViewer>\n <div class=\"zoom\" [style.height]=\"minHeight ? minHeight : height\" #root>\n <div class=\"html\">\n <div class=\"body\" [style.backgroundColor]=\"backgroundColor\">\n <div id=\"outerContainer\" (window:resize)=\"onResize()\">\n <div class=\"free-floating-bar\" *ngIf=\"showFreeFloatingBar\">\n <ng-content *ngTemplateOutlet=\"customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar\"> </ng-content>\n </div>\n <pdf-sidebar\n #pdfsidebar\n [sidebarVisible]=\"sidebarVisible || false\"\n [showSidebarButton]=\"showSidebarButton\"\n [customSidebar]=\"customSidebar\"\n [customThumbnail]=\"customThumbnail\"\n (thumbnailDrawn)=\"thumbnailDrawn.emit($event)\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [sidebarPositionTop]=\"sidebarPositionTop\"\n >\n </pdf-sidebar>\n <div id=\"mainContainer\" [class.toolbar-hidden]=\"!primaryMenuVisible\">\n <pdf-dummy-components></pdf-dummy-components>\n\n <pdf-toolbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [customToolbar]=\"customToolbar\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [primaryMenuVisible]=\"primaryMenuVisible\"\n [showDownloadButton]=\"showDownloadButton\"\n [showDrawEditor]=\"showDrawEditor\"\n [showTextEditor]=\"showTextEditor\"\n [showFindButton]=\"showFindButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showPagingButtons]=\"showPagingButtons\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showRotateButton]=\"showRotateButton\"\n [showSecondaryToolbarButton]=\"showSecondaryToolbarButton && !hideKebabMenuForSecondaryToolbar\"\n [showSidebarButton]=\"showSidebarButton\"\n [showZoomButtons]=\"showZoomButtons\"\n [textLayer]=\"textLayer\"\n [toolbarMarginTop]=\"toolbarMarginTop\"\n [toolbarWidth]=\"toolbarWidth\"\n (onToolbarLoaded)=\"onToolbarLoaded($event)\"\n [zoomLevels]=\"zoomLevels\"\n ></pdf-toolbar>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorFreeTextParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_color\">Font Color</label>\n <input type=\"color\" id=\"editorFreeTextColor\" class=\"editorParamsColor\" tabindex=\"100\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextFontSize\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_size\">Font Size</label>\n <input type=\"range\" id=\"editorFreeTextFontSize\" class=\"editorParamsSlider\" value=\"10\" min=\"5\" max=\"100\" step=\"1\" tabindex=\"101\" />\n </div>\n </div>\n </div>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorInkParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_color\">Color</label>\n <input type=\"color\" id=\"editorInkColor\" class=\"editorParamsColor\" tabindex=\"102\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkThickness\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_thickness\">Thickness</label>\n <input type=\"range\" id=\"editorInkThickness\" class=\"editorParamsSlider\" value=\"1\" min=\"1\" max=\"20\" step=\"1\" tabindex=\"103\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkOpacity\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_opacity\">Opacity</label>\n <input type=\"range\" id=\"editorInkOpacity\" class=\"editorParamsSlider\" value=\"100\" min=\"1\" max=\"100\" step=\"1\" tabindex=\"104\" />\n </div>\n </div>\n </div>\n\n <pdf-secondary-toolbar\n #pdfSecondaryToolbarComponent\n [class.server-side-rendering]=\"serverSideRendering\"\n [customSecondaryToolbar]=\"customSecondaryToolbar\"\n [secondaryToolbarTop]=\"secondaryToolbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showDownloadButton]=\"showDownloadButton\"\n [showPagingButtons]=\"showPagingButtons\"\n [showRotateButton]=\"showRotateButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showScrollingButton]=\"showScrollingButton\"\n [showSpreadButton]=\"showSpreadButton\"\n [showPropertiesButton]=\"showPropertiesButton\"\n (spreadChange)=\"onSpreadChange($event)\"\n (secondaryMenuIsEmpty)=\"onSecondaryMenuIsEmpty($event)\"\n >\n </pdf-secondary-toolbar>\n\n <pdf-findbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [findbarLeft]=\"findbarLeft\"\n [findbarTop]=\"findbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showFindButton]=\"showFindButton || false\"\n [customFindbarInputArea]=\"customFindbarInputArea\"\n [customFindbarButtons]=\"customFindbarButtons\"\n [showFindCurrentPageOnly]=\"showFindCurrentPageOnly\"\n [showFindEntirePhrase]=\"showFindEntirePhrase\"\n [showFindEntireWord]=\"showFindEntireWord\"\n [showFindFuzzySearch]=\"showFindFuzzySearch\"\n [showFindHighlightAll]=\"showFindHighlightAll\"\n [showFindIgnoreAccents]=\"showFindIgnoreAccents\"\n [showFindMatchCase]=\"showFindMatchCase\"\n [showFindMessages]=\"showFindMessages\"\n [showFindPageRange]=\"showFindPageRange\"\n [showFindResultsCount]=\"showFindResultsCount\"\n >\n </pdf-findbar>\n\n <pdf-context-menu></pdf-context-menu>\n\n <div id=\"viewerContainer\" [style.top]=\"viewerPositionTop\" [style.backgroundColor]=\"backgroundColor\" tabindex=\"0\">\n <div class=\"unverified-signature-warning\" *ngIf=\"hasSignature && showUnverifiedSignatures\">\n {{\n 'unverified_signature_warning'\n | translate\n : \"This PDF file contains a digital signature. The PDF viewer can't verify if the signature is valid.\n Please download the file and open it in Acrobat Reader to verify the signature is valid.\"\n | async\n }}\n </div>\n <div class=\"modified-background-warning\" *ngIf=\"pdfBackground\">\n {{\n 'modified_background_warning'\n | translate\n : 'This PDF is rendered with a custom background. It does not look the way its author\n intended it to look.'\n | async\n }}\n </div>\n <div id=\"viewer\" class=\"pdfViewer\" (dblclick)=\"zoomToPageWidth($event)\"></div>\n </div>\n <pdf-error-message></pdf-error-message>\n </div>\n <!-- mainContainer -->\n\n <div id=\"dialogContainer\">\n <pdf-password-dialog></pdf-password-dialog>\n <pdf-document-properties-dialog></pdf-document-properties-dialog>\n <pdf-prepare-printing-dialog></pdf-prepare-printing-dialog>\n </div>\n <!-- dialogContainer -->\n </div>\n <!-- outerContainer -->\n <input type=\"file\" id=\"fileInput\" class=\"hidden\" [class.server-side-rendering]=\"serverSideRendering\" />\n <div id=\"printContainer\"></div>\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #defaultFreeFloatingBar> </ng-template>\n", styles: ["#mainContainer.toolbar-hidden{margin-top:-30px}.server-side-rendering{display:none}\n"], components: [{ type: PdfDarkThemeComponent, selector: "pdf-dark-theme" }, { type: PdfLightThemeComponent, selector: "pdf-light-theme" }, { type: PdfAcroformDarkThemeComponent, selector: "pdf-acroform-dark-theme" }, { type: PdfAcroformDefaultThemeComponent, selector: "pdf-acroform-default-theme" }, { type: DynamicCssComponent, selector: "pdf-dynamic-css", inputs: ["zoom", "width"] }, { type: PdfSidebarComponent, selector: "pdf-sidebar", inputs: ["sidebarPositionTop", "sidebarVisible", "mobileFriendlyZoomScale", "showSidebarButton", "customSidebar", "customThumbnail"], outputs: ["thumbnailDrawn"] }, { type: PdfDummyComponentsComponent, selector: "pdf-dummy-components" }, { type: PdfToolbarComponent, selector: "pdf-toolbar", inputs: ["customToolbar", "mobileFriendlyZoomScale", "primaryMenuVisible", "showBookmarkButton", "showDownloadButton", "showDrawEditor", "showTextEditor", "showFindButton", "showHandToolButton", "showOpenFileButton", "showPrintButton", "showPagingButtons", "showPresentationModeButton", "showRotateButton", "showSecondaryToolbarButton", "showSidebarButton", "showZoomButtons", "textLayer", "toolbarMarginTop", "toolbarWidth", "zoomLevels"], outputs: ["onToolbarLoaded"] }, { type: PdfSecondaryToolbarComponent, selector: "pdf-secondary-toolbar", inputs: ["customSecondaryToolbar", "secondaryToolbarTop", "mobileFriendlyZoomScale", "showPresentationModeButton", "showOpenFileButton", "showPrintButton", "showDownloadButton", "showPagingButtons", "showRotateButton", "showHandToolButton", "showScrollingButton", "showSpreadButton", "showPropertiesButton"], outputs: ["spreadChange", "secondaryMenuIsEmpty"] }, { type: PdfFindbarComponent, selector: "pdf-findbar", inputs: ["showFindButton", "mobileFriendlyZoomScale", "findbarLeft", "findbarTop", "customFindbarInputArea", "customFindbar", "customFindbarButtons", "showFindHighlightAll", "showFindMatchCase", "showFindCurrentPageOnly", "showFindPageRange", "showFindEntireWord", "showFindEntirePhrase", "showFindIgnoreAccents", "showFindFuzzySearch", "showFindResultsCount", "showFindMessages"] }, { type: PdfContextMenuComponent, selector: "pdf-context-menu" }, { type: PdfErrorMessageComponent, selector: "pdf-error-message" }, { type: PdfPasswordDialogComponent, selector: "pdf-password-dialog" }, { type: PdfDocumentPropertiesDialogComponent, selector: "pdf-document-properties-dialog" }, { type: PdfPreparePrintingDialogComponent, selector: "pdf-prepare-printing-dialog" }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "async": i2.AsyncPipe, "translate": TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5312
|
+
NgxExtendedPdfViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NgxExtendedPdfViewerComponent, selector: "ngx-extended-pdf-viewer", inputs: { customFindbarInputArea: "customFindbarInputArea", customToolbar: "customToolbar", customFindbar: "customFindbar", customFindbarButtons: "customFindbarButtons", customPdfViewer: "customPdfViewer", customSecondaryToolbar: "customSecondaryToolbar", customSidebar: "customSidebar", customThumbnail: "customThumbnail", customFreeFloatingBar: "customFreeFloatingBar", showFreeFloatingBar: "showFreeFloatingBar", enableDragAndDrop: "enableDragAndDrop", formData: "formData", pageViewMode: "pageViewMode", scrollMode: "scrollMode", authorization: "authorization", httpHeaders: "httpHeaders", contextMenuAllowed: "contextMenuAllowed", enablePrint: "enablePrint", delayFirstView: "delayFirstView", showEditor: "showEditor", showTextEditor: "showTextEditor", showDrawEditor: "showDrawEditor", logLevel: "logLevel", relativeCoordsOptions: "relativeCoordsOptions", minifiedJSLibraries: "minifiedJSLibraries", printResolution: "printResolution", rotation: "rotation", src: "src", base64Src: "base64Src", minHeight: "minHeight", height: "height", useBrowserLocale: "useBrowserLocale", forceUsingLegacyES5: "forceUsingLegacyES5", backgroundColor: "backgroundColor", pdfBackground: "pdfBackground", pdfBackgroundColorToReplace: "pdfBackgroundColorToReplace", filenameForDownload: "filenameForDownload", ignoreKeyboard: "ignoreKeyboard", ignoreKeys: "ignoreKeys", acceptKeys: "acceptKeys", imageResourcesPath: "imageResourcesPath", localeFolderPath: "localeFolderPath", language: "language", listenToURL: "listenToURL", nameddest: "nameddest", password: "password", replaceBrowserPrint: "replaceBrowserPrint", showUnverifiedSignatures: "showUnverifiedSignatures", startTabindex: "startTabindex", showSidebarButton: "showSidebarButton", sidebarVisible: "sidebarVisible", activeSidebarView: "activeSidebarView", showFindButton: "showFindButton", showFindHighlightAll: "showFindHighlightAll", showFindMatchCase: "showFindMatchCase", showFindCurrentPageOnly: "showFindCurrentPageOnly", showFindPageRange: "showFindPageRange", showFindEntireWord: "showFindEntireWord", showFindEntirePhrase: "showFindEntirePhrase", showFindIgnoreAccents: "showFindIgnoreAccents", showFindFuzzySearch: "showFindFuzzySearch", showFindResultsCount: "showFindResultsCount", showFindMessages: "showFindMessages", showPagingButtons: "showPagingButtons", showZoomButtons: "showZoomButtons", showPresentationModeButton: "showPresentationModeButton", showOpenFileButton: "showOpenFileButton", showPrintButton: "showPrintButton", showDownloadButton: "showDownloadButton", theme: "theme", formTheme: "formTheme", showToolbar: "showToolbar", showSecondaryToolbarButton: "showSecondaryToolbarButton", showRotateButton: "showRotateButton", handTool: "handTool", showHandToolButton: "showHandToolButton", showScrollingButton: "showScrollingButton", showSpreadButton: "showSpreadButton", showPropertiesButton: "showPropertiesButton", showBorders: "showBorders", spread: "spread", page: "page", pageLabel: "pageLabel", textLayer: "textLayer", zoom: "zoom", zoomLevels: "zoomLevels", maxZoom: "maxZoom", minZoom: "minZoom", wheelAction: "wheelAction", mobileFriendlyZoom: "mobileFriendlyZoom" }, outputs: { formDataChange: "formDataChange", progress: "progress", srcChange: "srcChange", scrollModeChange: "scrollModeChange", afterPrint: "afterPrint", beforePrint: "beforePrint", currentZoomFactor: "currentZoomFactor", rotationChange: "rotationChange", annotationLayerRendered: "annotationLayerRendered", annotationEditorLayerRendered: "annotationEditorLayerRendered", xfaLayerRendered: "xfaLayerRendered", outlineLoaded: "outlineLoaded", attachmentsloaded: "attachmentsloaded", layersloaded: "layersloaded", sidebarVisibleChange: "sidebarVisibleChange", activeSidebarViewChange: "activeSidebarViewChange", handToolChange: "handToolChange", spreadChange: "spreadChange", thumbnailDrawn: "thumbnailDrawn", pageChange: "pageChange", pageLabelChange: "pageLabelChange", pagesLoaded: "pagesLoaded", pageRender: "pageRender", pageRendered: "pageRendered", pdfDownloaded: "pdfDownloaded", pdfLoaded: "pdfLoaded", pdfLoadingStarts: "pdfLoadingStarts", pdfLoadingFailed: "pdfLoadingFailed", textLayerRendered: "textLayerRendered", updateFindMatchesCount: "updateFindMatchesCount", updateFindState: "updateFindState", zoomChange: "zoomChange" }, host: { listeners: { "contextmenu": "onContextMenu()" } }, viewQueries: [{ propertyName: "dummyComponents", first: true, predicate: PdfDummyComponentsComponent, descendants: true }, { propertyName: "root", first: true, predicate: ["root"], descendants: true }, { propertyName: "secondaryToolbarComponent", first: true, predicate: ["pdfSecondaryToolbarComponent"], descendants: true }, { propertyName: "sidebarComponent", first: true, predicate: ["pdfsidebar"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<pdf-dark-theme *ngIf=\"theme === 'dark'\"></pdf-dark-theme>\n<pdf-light-theme *ngIf=\"theme === 'light'\"></pdf-light-theme>\n<pdf-acroform-dark-theme *ngIf=\"formTheme === 'dark'\"></pdf-acroform-dark-theme>\n<pdf-acroform-default-theme *ngIf=\"formTheme === 'light'\"></pdf-acroform-default-theme>\n\n<pdf-dynamic-css [zoom]=\"mobileFriendlyZoomScale\" [width]=\"toolbarWidthInPixels\"></pdf-dynamic-css>\n<ng-content *ngTemplateOutlet=\"customPdfViewer ? customPdfViewer : defaultPdfViewer\"></ng-content>\n\n<ng-template #defaultPdfViewer>\n <div class=\"zoom\" [style.height]=\"minHeight ? minHeight : height\" #root>\n <div class=\"html\">\n <div class=\"body\" [style.backgroundColor]=\"backgroundColor\">\n <div id=\"outerContainer\" (window:resize)=\"onResize()\">\n <div class=\"free-floating-bar\" *ngIf=\"showFreeFloatingBar\">\n <ng-content *ngTemplateOutlet=\"customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar\"> </ng-content>\n </div>\n <pdf-sidebar\n #pdfsidebar\n [sidebarVisible]=\"sidebarVisible || false\"\n [showSidebarButton]=\"showSidebarButton\"\n [customSidebar]=\"customSidebar\"\n [customThumbnail]=\"customThumbnail\"\n (thumbnailDrawn)=\"thumbnailDrawn.emit($event)\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [sidebarPositionTop]=\"sidebarPositionTop\"\n >\n </pdf-sidebar>\n <div id=\"mainContainer\" [class.toolbar-hidden]=\"!primaryMenuVisible\">\n <pdf-dummy-components></pdf-dummy-components>\n\n <pdf-toolbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [customToolbar]=\"customToolbar\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [primaryMenuVisible]=\"primaryMenuVisible\"\n [showDownloadButton]=\"showDownloadButton\"\n [showDrawEditor]=\"showDrawEditor\"\n [showTextEditor]=\"showTextEditor\"\n [showFindButton]=\"showFindButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showPagingButtons]=\"showPagingButtons\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showRotateButton]=\"showRotateButton\"\n [showSecondaryToolbarButton]=\"showSecondaryToolbarButton && !hideKebabMenuForSecondaryToolbar\"\n [showSidebarButton]=\"showSidebarButton\"\n [showZoomButtons]=\"showZoomButtons\"\n [textLayer]=\"textLayer\"\n [toolbarMarginTop]=\"toolbarMarginTop\"\n [toolbarWidth]=\"toolbarWidth\"\n (onToolbarLoaded)=\"onToolbarLoaded($event)\"\n [zoomLevels]=\"zoomLevels\"\n ></pdf-toolbar>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorFreeTextParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_color\">Font Color</label>\n <input type=\"color\" id=\"editorFreeTextColor\" class=\"editorParamsColor\" tabindex=\"100\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextFontSize\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_size\">Font Size</label>\n <input type=\"range\" id=\"editorFreeTextFontSize\" class=\"editorParamsSlider\" value=\"10\" min=\"5\" max=\"100\" step=\"1\" tabindex=\"101\" />\n </div>\n </div>\n </div>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorInkParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_color\">Color</label>\n <input type=\"color\" id=\"editorInkColor\" class=\"editorParamsColor\" tabindex=\"102\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkThickness\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_thickness\">Thickness</label>\n <input type=\"range\" id=\"editorInkThickness\" class=\"editorParamsSlider\" value=\"1\" min=\"1\" max=\"20\" step=\"1\" tabindex=\"103\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkOpacity\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_opacity\">Opacity</label>\n <input type=\"range\" id=\"editorInkOpacity\" class=\"editorParamsSlider\" value=\"100\" min=\"1\" max=\"100\" step=\"1\" tabindex=\"104\" />\n </div>\n </div>\n </div>\n\n <pdf-secondary-toolbar\n #pdfSecondaryToolbarComponent\n [class.server-side-rendering]=\"serverSideRendering\"\n [customSecondaryToolbar]=\"customSecondaryToolbar\"\n [secondaryToolbarTop]=\"secondaryToolbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showDownloadButton]=\"showDownloadButton\"\n [showPagingButtons]=\"showPagingButtons\"\n [showRotateButton]=\"showRotateButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showScrollingButton]=\"showScrollingButton\"\n [showSpreadButton]=\"showSpreadButton\"\n [showPropertiesButton]=\"showPropertiesButton\"\n (spreadChange)=\"onSpreadChange($event)\"\n (secondaryMenuIsEmpty)=\"onSecondaryMenuIsEmpty($event)\"\n >\n </pdf-secondary-toolbar>\n\n <pdf-findbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [findbarLeft]=\"findbarLeft\"\n [findbarTop]=\"findbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showFindButton]=\"showFindButton || false\"\n [customFindbarInputArea]=\"customFindbarInputArea\"\n [customFindbarButtons]=\"customFindbarButtons\"\n [showFindCurrentPageOnly]=\"showFindCurrentPageOnly\"\n [showFindEntirePhrase]=\"showFindEntirePhrase\"\n [showFindEntireWord]=\"showFindEntireWord\"\n [showFindFuzzySearch]=\"showFindFuzzySearch\"\n [showFindHighlightAll]=\"showFindHighlightAll\"\n [showFindIgnoreAccents]=\"showFindIgnoreAccents\"\n [showFindMatchCase]=\"showFindMatchCase\"\n [showFindMessages]=\"showFindMessages\"\n [showFindPageRange]=\"showFindPageRange\"\n [showFindResultsCount]=\"showFindResultsCount\"\n >\n </pdf-findbar>\n\n <pdf-context-menu></pdf-context-menu>\n\n <div id=\"viewerContainer\" [style.top]=\"viewerPositionTop\" [style.backgroundColor]=\"backgroundColor\" tabindex=\"0\">\n <div class=\"unverified-signature-warning\" *ngIf=\"hasSignature && showUnverifiedSignatures\">\n {{\n 'unverified_signature_warning'\n | translate\n : \"This PDF file contains a digital signature. The PDF viewer can't verify if the signature is valid.\n Please download the file and open it in Acrobat Reader to verify the signature is valid.\"\n | async\n }}\n </div>\n <div class=\"modified-background-warning\" *ngIf=\"pdfBackground\">\n {{\n 'modified_background_warning'\n | translate\n : 'This PDF is rendered with a custom background. It does not look the way its author\n intended it to look.'\n | async\n }}\n </div>\n <div id=\"viewer\" class=\"pdfViewer\" (dblclick)=\"zoomToPageWidth($event)\"></div>\n </div>\n <pdf-error-message></pdf-error-message>\n </div>\n <!-- mainContainer -->\n\n <div id=\"dialogContainer\">\n <pdf-password-dialog></pdf-password-dialog>\n <pdf-document-properties-dialog></pdf-document-properties-dialog>\n <pdf-prepare-printing-dialog></pdf-prepare-printing-dialog>\n </div>\n <!-- dialogContainer -->\n </div>\n <!-- outerContainer -->\n <input type=\"file\" id=\"fileInput\" class=\"hidden\" [class.server-side-rendering]=\"serverSideRendering\" />\n <div id=\"printContainer\"></div>\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #defaultFreeFloatingBar> </ng-template>\n", styles: ["#mainContainer.toolbar-hidden{margin-top:-30px}.server-side-rendering,.hidden{display:none}\n"], components: [{ type: PdfDarkThemeComponent, selector: "pdf-dark-theme" }, { type: PdfLightThemeComponent, selector: "pdf-light-theme" }, { type: PdfAcroformDarkThemeComponent, selector: "pdf-acroform-dark-theme" }, { type: PdfAcroformDefaultThemeComponent, selector: "pdf-acroform-default-theme" }, { type: DynamicCssComponent, selector: "pdf-dynamic-css", inputs: ["zoom", "width"] }, { type: PdfSidebarComponent, selector: "pdf-sidebar", inputs: ["sidebarPositionTop", "sidebarVisible", "mobileFriendlyZoomScale", "showSidebarButton", "customSidebar", "customThumbnail"], outputs: ["thumbnailDrawn"] }, { type: PdfDummyComponentsComponent, selector: "pdf-dummy-components" }, { type: PdfToolbarComponent, selector: "pdf-toolbar", inputs: ["customToolbar", "mobileFriendlyZoomScale", "primaryMenuVisible", "showBookmarkButton", "showDownloadButton", "showDrawEditor", "showTextEditor", "showFindButton", "showHandToolButton", "showOpenFileButton", "showPrintButton", "showPagingButtons", "showPresentationModeButton", "showRotateButton", "showSecondaryToolbarButton", "showSidebarButton", "showZoomButtons", "textLayer", "toolbarMarginTop", "toolbarWidth", "zoomLevels"], outputs: ["onToolbarLoaded"] }, { type: PdfSecondaryToolbarComponent, selector: "pdf-secondary-toolbar", inputs: ["customSecondaryToolbar", "secondaryToolbarTop", "mobileFriendlyZoomScale", "showPresentationModeButton", "showOpenFileButton", "showPrintButton", "showDownloadButton", "showPagingButtons", "showRotateButton", "showHandToolButton", "showScrollingButton", "showSpreadButton", "showPropertiesButton"], outputs: ["spreadChange", "secondaryMenuIsEmpty"] }, { type: PdfFindbarComponent, selector: "pdf-findbar", inputs: ["showFindButton", "mobileFriendlyZoomScale", "findbarLeft", "findbarTop", "customFindbarInputArea", "customFindbar", "customFindbarButtons", "showFindHighlightAll", "showFindMatchCase", "showFindCurrentPageOnly", "showFindPageRange", "showFindEntireWord", "showFindEntirePhrase", "showFindIgnoreAccents", "showFindFuzzySearch", "showFindResultsCount", "showFindMessages"] }, { type: PdfContextMenuComponent, selector: "pdf-context-menu" }, { type: PdfErrorMessageComponent, selector: "pdf-error-message" }, { type: PdfPasswordDialogComponent, selector: "pdf-password-dialog" }, { type: PdfDocumentPropertiesDialogComponent, selector: "pdf-document-properties-dialog" }, { type: PdfPreparePrintingDialogComponent, selector: "pdf-prepare-printing-dialog" }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "async": i2.AsyncPipe, "translate": TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5313
5313
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NgxExtendedPdfViewerComponent, decorators: [{
|
|
5314
5314
|
type: Component,
|
|
5315
|
-
args: [{ selector: 'ngx-extended-pdf-viewer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<pdf-dark-theme *ngIf=\"theme === 'dark'\"></pdf-dark-theme>\n<pdf-light-theme *ngIf=\"theme === 'light'\"></pdf-light-theme>\n<pdf-acroform-dark-theme *ngIf=\"formTheme === 'dark'\"></pdf-acroform-dark-theme>\n<pdf-acroform-default-theme *ngIf=\"formTheme === 'light'\"></pdf-acroform-default-theme>\n\n<pdf-dynamic-css [zoom]=\"mobileFriendlyZoomScale\" [width]=\"toolbarWidthInPixels\"></pdf-dynamic-css>\n<ng-content *ngTemplateOutlet=\"customPdfViewer ? customPdfViewer : defaultPdfViewer\"></ng-content>\n\n<ng-template #defaultPdfViewer>\n <div class=\"zoom\" [style.height]=\"minHeight ? minHeight : height\" #root>\n <div class=\"html\">\n <div class=\"body\" [style.backgroundColor]=\"backgroundColor\">\n <div id=\"outerContainer\" (window:resize)=\"onResize()\">\n <div class=\"free-floating-bar\" *ngIf=\"showFreeFloatingBar\">\n <ng-content *ngTemplateOutlet=\"customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar\"> </ng-content>\n </div>\n <pdf-sidebar\n #pdfsidebar\n [sidebarVisible]=\"sidebarVisible || false\"\n [showSidebarButton]=\"showSidebarButton\"\n [customSidebar]=\"customSidebar\"\n [customThumbnail]=\"customThumbnail\"\n (thumbnailDrawn)=\"thumbnailDrawn.emit($event)\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [sidebarPositionTop]=\"sidebarPositionTop\"\n >\n </pdf-sidebar>\n <div id=\"mainContainer\" [class.toolbar-hidden]=\"!primaryMenuVisible\">\n <pdf-dummy-components></pdf-dummy-components>\n\n <pdf-toolbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [customToolbar]=\"customToolbar\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [primaryMenuVisible]=\"primaryMenuVisible\"\n [showDownloadButton]=\"showDownloadButton\"\n [showDrawEditor]=\"showDrawEditor\"\n [showTextEditor]=\"showTextEditor\"\n [showFindButton]=\"showFindButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showPagingButtons]=\"showPagingButtons\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showRotateButton]=\"showRotateButton\"\n [showSecondaryToolbarButton]=\"showSecondaryToolbarButton && !hideKebabMenuForSecondaryToolbar\"\n [showSidebarButton]=\"showSidebarButton\"\n [showZoomButtons]=\"showZoomButtons\"\n [textLayer]=\"textLayer\"\n [toolbarMarginTop]=\"toolbarMarginTop\"\n [toolbarWidth]=\"toolbarWidth\"\n (onToolbarLoaded)=\"onToolbarLoaded($event)\"\n [zoomLevels]=\"zoomLevels\"\n ></pdf-toolbar>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorFreeTextParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_color\">Font Color</label>\n <input type=\"color\" id=\"editorFreeTextColor\" class=\"editorParamsColor\" tabindex=\"100\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextFontSize\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_size\">Font Size</label>\n <input type=\"range\" id=\"editorFreeTextFontSize\" class=\"editorParamsSlider\" value=\"10\" min=\"5\" max=\"100\" step=\"1\" tabindex=\"101\" />\n </div>\n </div>\n </div>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorInkParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_color\">Color</label>\n <input type=\"color\" id=\"editorInkColor\" class=\"editorParamsColor\" tabindex=\"102\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkThickness\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_thickness\">Thickness</label>\n <input type=\"range\" id=\"editorInkThickness\" class=\"editorParamsSlider\" value=\"1\" min=\"1\" max=\"20\" step=\"1\" tabindex=\"103\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkOpacity\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_opacity\">Opacity</label>\n <input type=\"range\" id=\"editorInkOpacity\" class=\"editorParamsSlider\" value=\"100\" min=\"1\" max=\"100\" step=\"1\" tabindex=\"104\" />\n </div>\n </div>\n </div>\n\n <pdf-secondary-toolbar\n #pdfSecondaryToolbarComponent\n [class.server-side-rendering]=\"serverSideRendering\"\n [customSecondaryToolbar]=\"customSecondaryToolbar\"\n [secondaryToolbarTop]=\"secondaryToolbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showDownloadButton]=\"showDownloadButton\"\n [showPagingButtons]=\"showPagingButtons\"\n [showRotateButton]=\"showRotateButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showScrollingButton]=\"showScrollingButton\"\n [showSpreadButton]=\"showSpreadButton\"\n [showPropertiesButton]=\"showPropertiesButton\"\n (spreadChange)=\"onSpreadChange($event)\"\n (secondaryMenuIsEmpty)=\"onSecondaryMenuIsEmpty($event)\"\n >\n </pdf-secondary-toolbar>\n\n <pdf-findbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [findbarLeft]=\"findbarLeft\"\n [findbarTop]=\"findbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showFindButton]=\"showFindButton || false\"\n [customFindbarInputArea]=\"customFindbarInputArea\"\n [customFindbarButtons]=\"customFindbarButtons\"\n [showFindCurrentPageOnly]=\"showFindCurrentPageOnly\"\n [showFindEntirePhrase]=\"showFindEntirePhrase\"\n [showFindEntireWord]=\"showFindEntireWord\"\n [showFindFuzzySearch]=\"showFindFuzzySearch\"\n [showFindHighlightAll]=\"showFindHighlightAll\"\n [showFindIgnoreAccents]=\"showFindIgnoreAccents\"\n [showFindMatchCase]=\"showFindMatchCase\"\n [showFindMessages]=\"showFindMessages\"\n [showFindPageRange]=\"showFindPageRange\"\n [showFindResultsCount]=\"showFindResultsCount\"\n >\n </pdf-findbar>\n\n <pdf-context-menu></pdf-context-menu>\n\n <div id=\"viewerContainer\" [style.top]=\"viewerPositionTop\" [style.backgroundColor]=\"backgroundColor\" tabindex=\"0\">\n <div class=\"unverified-signature-warning\" *ngIf=\"hasSignature && showUnverifiedSignatures\">\n {{\n 'unverified_signature_warning'\n | translate\n : \"This PDF file contains a digital signature. The PDF viewer can't verify if the signature is valid.\n Please download the file and open it in Acrobat Reader to verify the signature is valid.\"\n | async\n }}\n </div>\n <div class=\"modified-background-warning\" *ngIf=\"pdfBackground\">\n {{\n 'modified_background_warning'\n | translate\n : 'This PDF is rendered with a custom background. It does not look the way its author\n intended it to look.'\n | async\n }}\n </div>\n <div id=\"viewer\" class=\"pdfViewer\" (dblclick)=\"zoomToPageWidth($event)\"></div>\n </div>\n <pdf-error-message></pdf-error-message>\n </div>\n <!-- mainContainer -->\n\n <div id=\"dialogContainer\">\n <pdf-password-dialog></pdf-password-dialog>\n <pdf-document-properties-dialog></pdf-document-properties-dialog>\n <pdf-prepare-printing-dialog></pdf-prepare-printing-dialog>\n </div>\n <!-- dialogContainer -->\n </div>\n <!-- outerContainer -->\n <input type=\"file\" id=\"fileInput\" class=\"hidden\" [class.server-side-rendering]=\"serverSideRendering\" />\n <div id=\"printContainer\"></div>\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #defaultFreeFloatingBar> </ng-template>\n", styles: ["#mainContainer.toolbar-hidden{margin-top:-30px}.server-side-rendering{display:none}\n"] }]
|
|
5315
|
+
args: [{ selector: 'ngx-extended-pdf-viewer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<pdf-dark-theme *ngIf=\"theme === 'dark'\"></pdf-dark-theme>\n<pdf-light-theme *ngIf=\"theme === 'light'\"></pdf-light-theme>\n<pdf-acroform-dark-theme *ngIf=\"formTheme === 'dark'\"></pdf-acroform-dark-theme>\n<pdf-acroform-default-theme *ngIf=\"formTheme === 'light'\"></pdf-acroform-default-theme>\n\n<pdf-dynamic-css [zoom]=\"mobileFriendlyZoomScale\" [width]=\"toolbarWidthInPixels\"></pdf-dynamic-css>\n<ng-content *ngTemplateOutlet=\"customPdfViewer ? customPdfViewer : defaultPdfViewer\"></ng-content>\n\n<ng-template #defaultPdfViewer>\n <div class=\"zoom\" [style.height]=\"minHeight ? minHeight : height\" #root>\n <div class=\"html\">\n <div class=\"body\" [style.backgroundColor]=\"backgroundColor\">\n <div id=\"outerContainer\" (window:resize)=\"onResize()\">\n <div class=\"free-floating-bar\" *ngIf=\"showFreeFloatingBar\">\n <ng-content *ngTemplateOutlet=\"customFreeFloatingBar ? customFreeFloatingBar : defaultFreeFloatingBar\"> </ng-content>\n </div>\n <pdf-sidebar\n #pdfsidebar\n [sidebarVisible]=\"sidebarVisible || false\"\n [showSidebarButton]=\"showSidebarButton\"\n [customSidebar]=\"customSidebar\"\n [customThumbnail]=\"customThumbnail\"\n (thumbnailDrawn)=\"thumbnailDrawn.emit($event)\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [sidebarPositionTop]=\"sidebarPositionTop\"\n >\n </pdf-sidebar>\n <div id=\"mainContainer\" [class.toolbar-hidden]=\"!primaryMenuVisible\">\n <pdf-dummy-components></pdf-dummy-components>\n\n <pdf-toolbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [customToolbar]=\"customToolbar\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [primaryMenuVisible]=\"primaryMenuVisible\"\n [showDownloadButton]=\"showDownloadButton\"\n [showDrawEditor]=\"showDrawEditor\"\n [showTextEditor]=\"showTextEditor\"\n [showFindButton]=\"showFindButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showPagingButtons]=\"showPagingButtons\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showRotateButton]=\"showRotateButton\"\n [showSecondaryToolbarButton]=\"showSecondaryToolbarButton && !hideKebabMenuForSecondaryToolbar\"\n [showSidebarButton]=\"showSidebarButton\"\n [showZoomButtons]=\"showZoomButtons\"\n [textLayer]=\"textLayer\"\n [toolbarMarginTop]=\"toolbarMarginTop\"\n [toolbarWidth]=\"toolbarWidth\"\n (onToolbarLoaded)=\"onToolbarLoaded($event)\"\n [zoomLevels]=\"zoomLevels\"\n ></pdf-toolbar>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorFreeTextParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_color\">Font Color</label>\n <input type=\"color\" id=\"editorFreeTextColor\" class=\"editorParamsColor\" tabindex=\"100\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorFreeTextFontSize\" class=\"editorParamsLabel\" data-l10n-id=\"editor_free_text_size\">Font Size</label>\n <input type=\"range\" id=\"editorFreeTextFontSize\" class=\"editorParamsSlider\" value=\"10\" min=\"5\" max=\"100\" step=\"1\" tabindex=\"101\" />\n </div>\n </div>\n </div>\n\n <div class=\"editorParamsToolbar hidden doorHangerRight\" id=\"editorInkParamsToolbar\" [class.server-side-rendering]=\"serverSideRendering\">\n <div class=\"editorParamsToolbarContainer\">\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkColor\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_color\">Color</label>\n <input type=\"color\" id=\"editorInkColor\" class=\"editorParamsColor\" tabindex=\"102\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkThickness\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_thickness\">Thickness</label>\n <input type=\"range\" id=\"editorInkThickness\" class=\"editorParamsSlider\" value=\"1\" min=\"1\" max=\"20\" step=\"1\" tabindex=\"103\" />\n </div>\n <div class=\"editorParamsSetter\">\n <label for=\"editorInkOpacity\" class=\"editorParamsLabel\" data-l10n-id=\"editor_ink_opacity\">Opacity</label>\n <input type=\"range\" id=\"editorInkOpacity\" class=\"editorParamsSlider\" value=\"100\" min=\"1\" max=\"100\" step=\"1\" tabindex=\"104\" />\n </div>\n </div>\n </div>\n\n <pdf-secondary-toolbar\n #pdfSecondaryToolbarComponent\n [class.server-side-rendering]=\"serverSideRendering\"\n [customSecondaryToolbar]=\"customSecondaryToolbar\"\n [secondaryToolbarTop]=\"secondaryToolbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showPresentationModeButton]=\"showPresentationModeButton\"\n [showOpenFileButton]=\"showOpenFileButton\"\n [showPrintButton]=\"showPrintButton && enablePrint\"\n [showDownloadButton]=\"showDownloadButton\"\n [showPagingButtons]=\"showPagingButtons\"\n [showRotateButton]=\"showRotateButton\"\n [showHandToolButton]=\"showHandToolButton\"\n [showScrollingButton]=\"showScrollingButton\"\n [showSpreadButton]=\"showSpreadButton\"\n [showPropertiesButton]=\"showPropertiesButton\"\n (spreadChange)=\"onSpreadChange($event)\"\n (secondaryMenuIsEmpty)=\"onSecondaryMenuIsEmpty($event)\"\n >\n </pdf-secondary-toolbar>\n\n <pdf-findbar\n [class.server-side-rendering]=\"serverSideRendering\"\n [findbarLeft]=\"findbarLeft\"\n [findbarTop]=\"findbarTop\"\n [mobileFriendlyZoomScale]=\"mobileFriendlyZoomScale\"\n [showFindButton]=\"showFindButton || false\"\n [customFindbarInputArea]=\"customFindbarInputArea\"\n [customFindbarButtons]=\"customFindbarButtons\"\n [showFindCurrentPageOnly]=\"showFindCurrentPageOnly\"\n [showFindEntirePhrase]=\"showFindEntirePhrase\"\n [showFindEntireWord]=\"showFindEntireWord\"\n [showFindFuzzySearch]=\"showFindFuzzySearch\"\n [showFindHighlightAll]=\"showFindHighlightAll\"\n [showFindIgnoreAccents]=\"showFindIgnoreAccents\"\n [showFindMatchCase]=\"showFindMatchCase\"\n [showFindMessages]=\"showFindMessages\"\n [showFindPageRange]=\"showFindPageRange\"\n [showFindResultsCount]=\"showFindResultsCount\"\n >\n </pdf-findbar>\n\n <pdf-context-menu></pdf-context-menu>\n\n <div id=\"viewerContainer\" [style.top]=\"viewerPositionTop\" [style.backgroundColor]=\"backgroundColor\" tabindex=\"0\">\n <div class=\"unverified-signature-warning\" *ngIf=\"hasSignature && showUnverifiedSignatures\">\n {{\n 'unverified_signature_warning'\n | translate\n : \"This PDF file contains a digital signature. The PDF viewer can't verify if the signature is valid.\n Please download the file and open it in Acrobat Reader to verify the signature is valid.\"\n | async\n }}\n </div>\n <div class=\"modified-background-warning\" *ngIf=\"pdfBackground\">\n {{\n 'modified_background_warning'\n | translate\n : 'This PDF is rendered with a custom background. It does not look the way its author\n intended it to look.'\n | async\n }}\n </div>\n <div id=\"viewer\" class=\"pdfViewer\" (dblclick)=\"zoomToPageWidth($event)\"></div>\n </div>\n <pdf-error-message></pdf-error-message>\n </div>\n <!-- mainContainer -->\n\n <div id=\"dialogContainer\">\n <pdf-password-dialog></pdf-password-dialog>\n <pdf-document-properties-dialog></pdf-document-properties-dialog>\n <pdf-prepare-printing-dialog></pdf-prepare-printing-dialog>\n </div>\n <!-- dialogContainer -->\n </div>\n <!-- outerContainer -->\n <input type=\"file\" id=\"fileInput\" class=\"hidden\" [class.server-side-rendering]=\"serverSideRendering\" />\n <div id=\"printContainer\"></div>\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #defaultFreeFloatingBar> </ng-template>\n", styles: ["#mainContainer.toolbar-hidden{margin-top:-30px}.server-side-rendering,.hidden{display:none}\n"] }]
|
|
5316
5316
|
}], ctorParameters: function () {
|
|
5317
5317
|
return [{ type: i0.NgZone }, { type: undefined, decorators: [{
|
|
5318
5318
|
type: Inject,
|