import { Component, EventEmitter, Input, Output } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "../pdf-book-mode/pdf-book-mode.component";
import * as i3 from "../pdf-document-properties/pdf-document-properties.component";
import * as i4 from "../pdf-download/pdf-download.component";
import * as i5 from "../pdf-editor/pdf-editor.component";
import * as i6 from "../pdf-even-spread/pdf-even-spread.component";
import * as i7 from "../pdf-find-button/pdf-find-button.component";
import * as i8 from "../pdf-hand-tool/pdf-hand-tool.component";
import * as i9 from "../pdf-horizontal-scroll/pdf-horizontal-scroll.component";
import * as i10 from "../pdf-infinite-scroll/pdf-infinite-scroll.component";
import * as i11 from "../pdf-no-spread/pdf-no-spread.component";
import * as i12 from "../pdf-odd-spread/pdf-odd-spread.component";
import * as i13 from "../pdf-open-file/pdf-open-file.component";
import * as i14 from "../pdf-paging-area/pdf-paging-area.component";
import * as i15 from "../pdf-presentation-mode/pdf-presentation-mode.component";
import * as i16 from "../pdf-print/pdf-print.component";
import * as i17 from "../pdf-rotate-page-cw/pdf-rotate-page-cw.component";
import * as i18 from "../pdf-rotate-page-ccw/pdf-rotate-page-ccw.component";
import * as i19 from "../pdf-select-tool/pdf-select-tool.component";
import * as i20 from "../pdf-single-page-mode/pdf-single-page-mode.component";
import * as i21 from "../pdf-toggle-secondary-toolbar/pdf-toggle-secondary-toolbar.component";
import * as i22 from "../pdf-toggle-sidebar/pdf-toggle-sidebar.component";
import * as i23 from "../pdf-vertical-scroll-button/pdf-vertical-scroll-mode.component";
import * as i24 from "../pdf-wrapped-scroll-mode/pdf-wrapped-scroll-mode.component";
import * as i25 from "../pdf-zoom-toolbar/pdf-zoom-toolbar.component";
export class PdfToolbarComponent {
    elementRef;
    customToolbar;
    mobileFriendlyZoomScale = 1;
    primaryMenuVisible = true;
    showDownloadButton = true;
    showDrawEditor = false;
    showHighlightEditor = true;
    showTextEditor = false;
    showStampEditor = false;
    showFindButton = undefined;
    showHandToolButton = true;
    showOpenFileButton = true;
    showPrintButton = true;
    showPagingButtons = true;
    showPresentationModeButton = false;
    showRotateCwButton = true;
    showRotateCcwButton = true;
    showSecondaryToolbarButton = true;
    showSidebarButton = true;
    sidebarVisible = false;
    showZoomButtons = true;
    textLayer = undefined;
    toolbarMarginTop = '0px';
    toolbarWidth = '100%';
    zoomLevels = ['auto', 'page-actual', 'page-fit', 'page-width', 0.5, 0.75, 1, 1.25, 1.5, 2, 3, 4];
    pageViewMode;
    pageViewModeChange = new EventEmitter();
    spread;
    scrollMode;
    showPropertiesButton = true;
    showSpreadButton = true;
    showSinglePageModeButton = true;
    showVerticalScrollButton = true;
    showHorizontalScrollButton = true;
    showWrappedScrollButton = true;
    showInfiniteScrollButton = true;
    showBookModeButton = true;
    onToolbarLoaded = new EventEmitter();
    findbarVisible = false;
    constructor(elementRef) {
        this.elementRef = elementRef;
    }
    ngAfterViewInit() {
        this.onToolbarLoaded.emit(this.elementRef.nativeElement.getElementsByClassName('toolbar')[0]);
    }
    updatePageViewMode(pageViewMode) {
        if (pageViewMode) {
            this.pageViewModeChange.emit(pageViewMode);
            this.pageViewMode = pageViewMode;
        }
    }
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.6", ngImport: i0, type: PdfToolbarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.6", type: PdfToolbarComponent, selector: "pdf-toolbar", inputs: { customToolbar: "customToolbar", mobileFriendlyZoomScale: "mobileFriendlyZoomScale", primaryMenuVisible: "primaryMenuVisible", showDownloadButton: "showDownloadButton", showDrawEditor: "showDrawEditor", showHighlightEditor: "showHighlightEditor", showTextEditor: "showTextEditor", showStampEditor: "showStampEditor", showFindButton: "showFindButton", showHandToolButton: "showHandToolButton", showOpenFileButton: "showOpenFileButton", showPrintButton: "showPrintButton", showPagingButtons: "showPagingButtons", showPresentationModeButton: "showPresentationModeButton", showRotateCwButton: "showRotateCwButton", showRotateCcwButton: "showRotateCcwButton", showSecondaryToolbarButton: "showSecondaryToolbarButton", showSidebarButton: "showSidebarButton", sidebarVisible: "sidebarVisible", showZoomButtons: "showZoomButtons", textLayer: "textLayer", toolbarMarginTop: "toolbarMarginTop", toolbarWidth: "toolbarWidth", zoomLevels: "zoomLevels", pageViewMode: "pageViewMode", spread: "spread", scrollMode: "scrollMode", showPropertiesButton: "showPropertiesButton", showSpreadButton: "showSpreadButton", showSinglePageModeButton: "showSinglePageModeButton", showVerticalScrollButton: "showVerticalScrollButton", showHorizontalScrollButton: "showHorizontalScrollButton", showWrappedScrollButton: "showWrappedScrollButton", showInfiniteScrollButton: "showInfiniteScrollButton", showBookModeButton: "showBookModeButton", findbarVisible: "findbarVisible" }, outputs: { pageViewModeChange: "pageViewModeChange", onToolbarLoaded: "onToolbarLoaded" }, ngImport: i0, template: "<div\n  class=\"toolbar\"\n  [class.invisible]=\"!primaryMenuVisible\"\n  [style.transform]=\"'scale(' + mobileFriendlyZoomScale + ')'\"\n  [style.transformOrigin]=\"'left center'\"\n  [style.width]=\"toolbarWidth\"\n  [style.marginTop]=\"toolbarMarginTop\"\n>\n  <div id=\"toolbarContainer\">\n    <ng-content *ngTemplateOutlet=\"customToolbar ? customToolbar : defaultToolbar\"></ng-content>\n    <div id=\"loadingBar\">\n      <div class=\"progress\">\n        <div class=\"glimmer\"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<ng-template #defaultToolbar>\n  <div id=\"toolbarViewer\">\n    <div id=\"toolbarViewerLeft\">\n      <pdf-toggle-sidebar [show]=\"showSidebarButton\" [sidebarVisible]=\"sidebarVisible\"></pdf-toggle-sidebar>\n      <pdf-find-button [showFindButton]=\"showFindButton\" [textLayer]=\"textLayer\" [findbarVisible]=\"findbarVisible\"></pdf-find-button>\n      <pdf-paging-area [showPagingButtons]=\"showPagingButtons\"></pdf-paging-area>\n    </div>\n    <pdf-zoom-toolbar [showZoomButtons]=\"showZoomButtons\" [zoomLevels]=\"zoomLevels\"></pdf-zoom-toolbar>\n    <div id=\"toolbarViewerRight\">\n      <pdf-document-properties [show]=\"showPropertiesButton\"></pdf-document-properties>\n      <pdf-no-spread [scrollMode]=\"scrollMode\" [show]=\"showSpreadButton\"></pdf-no-spread>\n      <pdf-odd-spread [scrollMode]=\"scrollMode\" [show]=\"showSpreadButton\"></pdf-odd-spread>\n      <pdf-even-spread [scrollMode]=\"scrollMode\" [show]=\"showSpreadButton\"></pdf-even-spread>\n      <pdf-single-page-mode\n        [show]=\"showSinglePageModeButton\"\n        [pageViewMode]=\"pageViewMode\"\n        (pageViewModeChange)=\"updatePageViewMode($event)\"\n        [scrollMode]=\"scrollMode\"\n      ></pdf-single-page-mode>\n      <pdf-vertical-scroll-mode\n        [show]=\"showVerticalScrollButton\"\n        [pageViewMode]=\"pageViewMode\"\n        (pageViewModeChange)=\"updatePageViewMode($event)\"\n        [scrollMode]=\"scrollMode\"\n      ></pdf-vertical-scroll-mode>\n      <pdf-horizontal-scroll\n        [show]=\"showHorizontalScrollButton\"\n        [pageViewMode]=\"pageViewMode\"\n        (pageViewModeChange)=\"updatePageViewMode($event)\"\n        [scrollMode]=\"scrollMode\"\n      ></pdf-horizontal-scroll>\n      <pdf-wrapped-scroll-mode\n        [show]=\"showWrappedScrollButton\"\n        [pageViewMode]=\"pageViewMode\"\n        (pageViewModeChange)=\"updatePageViewMode($event)\"\n        [scrollMode]=\"scrollMode\"\n      ></pdf-wrapped-scroll-mode>\n      <pdf-infinite-scroll\n        [show]=\"showInfiniteScrollButton\"\n        [pageViewMode]=\"pageViewMode\"\n        (pageViewModeChange)=\"updatePageViewMode($event)\"\n        [scrollMode]=\"scrollMode\"\n      ></pdf-infinite-scroll>\n      <pdf-book-mode\n        [show]=\"showBookModeButton\"\n        [pageViewMode]=\"pageViewMode\"\n        (pageViewModeChange)=\"updatePageViewMode($event)\"\n        [scrollMode]=\"scrollMode\"\n      ></pdf-book-mode>\n      <pdf-hand-tool [showHandToolButton]=\"showHandToolButton\"></pdf-hand-tool>\n      <pdf-select-tool [showSelectToolButton]=\"showHandToolButton\"></pdf-select-tool>\n      <pdf-rotate-page-cw [showRotateCwButton]=\"showRotateCwButton\"> </pdf-rotate-page-cw>\n      <pdf-rotate-page-ccw [showRotateCcwButton]=\"showRotateCcwButton\"> </pdf-rotate-page-ccw>\n      <pdf-presentation-mode [showPresentationModeButton]=\"showPresentationModeButton\"></pdf-presentation-mode>\n      <pdf-open-file [showOpenFileButton]=\"showOpenFileButton\"></pdf-open-file>\n      <pdf-print [showPrintButton]=\"showPrintButton\"></pdf-print>\n      <pdf-download [showDownloadButton]=\"showDownloadButton\"></pdf-download>\n\n      <pdf-editor\n        [showDrawEditor]=\"showDrawEditor\"\n        [showHighlightEditor]=\"showHighlightEditor\"\n        [showTextEditor]=\"showTextEditor\"\n        [showStampEditor]=\"showStampEditor\"\n      ></pdf-editor>\n      <pdf-toggle-secondary-toolbar [showSecondaryToolbarButton]=\"showSecondaryToolbarButton\"> </pdf-toggle-secondary-toolbar>\n    </div>\n  </div>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.PdfBookModeComponent, selector: "pdf-book-mode", inputs: ["show", "pageViewMode", "scrollMode"], outputs: ["pageViewModeChange"] }, { kind: "component", type: i3.PdfDocumentPropertiesComponent, selector: "pdf-document-properties", inputs: ["show"] }, { kind: "component", type: i4.PdfDownloadComponent, selector: "pdf-download", inputs: ["showDownloadButton"] }, { kind: "component", type: i5.PdfEditorComponent, selector: "pdf-editor", inputs: ["showDrawEditor", "showHighlightEditor", "showTextEditor", "showStampEditor"] }, { kind: "component", type: i6.PdfEvenSpreadComponent, selector: "pdf-even-spread", inputs: ["show", "scrollMode"] }, { kind: "component", type: i7.PdfFindButtonComponent, selector: "pdf-find-button", inputs: ["showFindButton", "textLayer", "findbarVisible"] }, { kind: "component", type: i8.PdfHandToolComponent, selector: "pdf-hand-tool", inputs: ["showHandToolButton"] }, { kind: "component", type: i9.PdfHorizontalScrollComponent, selector: "pdf-horizontal-scroll", inputs: ["show", "scrollMode", "pageViewMode"], outputs: ["pageViewModeChange"] }, { kind: "component", type: i10.PdfInfiniteScrollComponent, selector: "pdf-infinite-scroll", inputs: ["show", "pageViewMode", "scrollMode"], outputs: ["pageViewModeChange"] }, { kind: "component", type: i11.PdfNoSpreadComponent, selector: "pdf-no-spread", inputs: ["show", "scrollMode"] }, { kind: "component", type: i12.PdfOddSpreadComponent, selector: "pdf-odd-spread", inputs: ["show", "scrollMode"] }, { kind: "component", type: i13.PdfOpenFileComponent, selector: "pdf-open-file", inputs: ["showOpenFileButton"] }, { kind: "component", type: i14.PdfPagingAreaComponent, selector: "pdf-paging-area", inputs: ["showPagingButtons"] }, { kind: "component", type: i15.PdfPresentationModeComponent, selector: "pdf-presentation-mode", inputs: ["showPresentationModeButton"] }, { kind: "component", type: i16.PdfPrintComponent, selector: "pdf-print", inputs: ["showPrintButton"] }, { kind: "component", type: i17.PdfRotatePageCwComponent, selector: "pdf-rotate-page-cw", inputs: ["showRotateCwButton", "clockwise", "counterClockwise"] }, { kind: "component", type: i18.PdfRotatePageCcwComponent, selector: "pdf-rotate-page-ccw", inputs: ["showRotateCcwButton", "counterClockwise"] }, { kind: "component", type: i19.PdfSelectToolComponent, selector: "pdf-select-tool", inputs: ["showSelectToolButton"] }, { kind: "component", type: i20.PdfSinglePageModeComponent, selector: "pdf-single-page-mode", inputs: ["show", "scrollMode", "pageViewMode"], outputs: ["pageViewModeChange"] }, { kind: "component", type: i21.PdfToggleSecondaryToolbarComponent, selector: "pdf-toggle-secondary-toolbar", inputs: ["showSecondaryToolbarButton"] }, { kind: "component", type: i22.PdfToggleSidebarComponent, selector: "pdf-toggle-sidebar", inputs: ["show", "sidebarVisible"], outputs: ["showChange"] }, { kind: "component", type: i23.PdfVerticalScrollModeComponent, selector: "pdf-vertical-scroll-mode", inputs: ["show", "scrollMode", "pageViewMode"], outputs: ["pageViewModeChange"] }, { kind: "component", type: i24.PdfWrappedScrollModeComponent, selector: "pdf-wrapped-scroll-mode", inputs: ["show", "scrollMode", "pageViewMode"], outputs: ["pageViewModeChange"] }, { kind: "component", type: i25.PdfZoomToolbarComponent, selector: "pdf-zoom-toolbar", inputs: ["showZoomButtons", "zoomLevels"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.6", ngImport: i0, type: PdfToolbarComponent, decorators: [{
            type: Component,
            args: [{ selector: 'pdf-toolbar', template: "<div\n  class=\"toolbar\"\n  [class.invisible]=\"!primaryMenuVisible\"\n  [style.transform]=\"'scale(' + mobileFriendlyZoomScale + ')'\"\n  [style.transformOrigin]=\"'left center'\"\n  [style.width]=\"toolbarWidth\"\n  [style.marginTop]=\"toolbarMarginTop\"\n>\n  <div id=\"toolbarContainer\">\n    <ng-content *ngTemplateOutlet=\"customToolbar ? customToolbar : defaultToolbar\"></ng-content>\n    <div id=\"loadingBar\">\n      <div class=\"progress\">\n        <div class=\"glimmer\"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<ng-template #defaultToolbar>\n  <div id=\"toolbarViewer\">\n    <div id=\"toolbarViewerLeft\">\n      <pdf-toggle-sidebar [show]=\"showSidebarButton\" [sidebarVisible]=\"sidebarVisible\"></pdf-toggle-sidebar>\n      <pdf-find-button [showFindButton]=\"showFindButton\" [textLayer]=\"textLayer\" [findbarVisible]=\"findbarVisible\"></pdf-find-button>\n      <pdf-paging-area [showPagingButtons]=\"showPagingButtons\"></pdf-paging-area>\n    </div>\n    <pdf-zoom-toolbar [showZoomButtons]=\"showZoomButtons\" [zoomLevels]=\"zoomLevels\"></pdf-zoom-toolbar>\n    <div id=\"toolbarViewerRight\">\n      <pdf-document-properties [show]=\"showPropertiesButton\"></pdf-document-properties>\n      <pdf-no-spread [scrollMode]=\"scrollMode\" [show]=\"showSpreadButton\"></pdf-no-spread>\n      <pdf-odd-spread [scrollMode]=\"scrollMode\" [show]=\"showSpreadButton\"></pdf-odd-spread>\n      <pdf-even-spread [scrollMode]=\"scrollMode\" [show]=\"showSpreadButton\"></pdf-even-spread>\n      <pdf-single-page-mode\n        [show]=\"showSinglePageModeButton\"\n        [pageViewMode]=\"pageViewMode\"\n        (pageViewModeChange)=\"updatePageViewMode($event)\"\n        [scrollMode]=\"scrollMode\"\n      ></pdf-single-page-mode>\n      <pdf-vertical-scroll-mode\n        [show]=\"showVerticalScrollButton\"\n        [pageViewMode]=\"pageViewMode\"\n        (pageViewModeChange)=\"updatePageViewMode($event)\"\n        [scrollMode]=\"scrollMode\"\n      ></pdf-vertical-scroll-mode>\n      <pdf-horizontal-scroll\n        [show]=\"showHorizontalScrollButton\"\n        [pageViewMode]=\"pageViewMode\"\n        (pageViewModeChange)=\"updatePageViewMode($event)\"\n        [scrollMode]=\"scrollMode\"\n      ></pdf-horizontal-scroll>\n      <pdf-wrapped-scroll-mode\n        [show]=\"showWrappedScrollButton\"\n        [pageViewMode]=\"pageViewMode\"\n        (pageViewModeChange)=\"updatePageViewMode($event)\"\n        [scrollMode]=\"scrollMode\"\n      ></pdf-wrapped-scroll-mode>\n      <pdf-infinite-scroll\n        [show]=\"showInfiniteScrollButton\"\n        [pageViewMode]=\"pageViewMode\"\n        (pageViewModeChange)=\"updatePageViewMode($event)\"\n        [scrollMode]=\"scrollMode\"\n      ></pdf-infinite-scroll>\n      <pdf-book-mode\n        [show]=\"showBookModeButton\"\n        [pageViewMode]=\"pageViewMode\"\n        (pageViewModeChange)=\"updatePageViewMode($event)\"\n        [scrollMode]=\"scrollMode\"\n      ></pdf-book-mode>\n      <pdf-hand-tool [showHandToolButton]=\"showHandToolButton\"></pdf-hand-tool>\n      <pdf-select-tool [showSelectToolButton]=\"showHandToolButton\"></pdf-select-tool>\n      <pdf-rotate-page-cw [showRotateCwButton]=\"showRotateCwButton\"> </pdf-rotate-page-cw>\n      <pdf-rotate-page-ccw [showRotateCcwButton]=\"showRotateCcwButton\"> </pdf-rotate-page-ccw>\n      <pdf-presentation-mode [showPresentationModeButton]=\"showPresentationModeButton\"></pdf-presentation-mode>\n      <pdf-open-file [showOpenFileButton]=\"showOpenFileButton\"></pdf-open-file>\n      <pdf-print [showPrintButton]=\"showPrintButton\"></pdf-print>\n      <pdf-download [showDownloadButton]=\"showDownloadButton\"></pdf-download>\n\n      <pdf-editor\n        [showDrawEditor]=\"showDrawEditor\"\n        [showHighlightEditor]=\"showHighlightEditor\"\n        [showTextEditor]=\"showTextEditor\"\n        [showStampEditor]=\"showStampEditor\"\n      ></pdf-editor>\n      <pdf-toggle-secondary-toolbar [showSecondaryToolbarButton]=\"showSecondaryToolbarButton\"> </pdf-toggle-secondary-toolbar>\n    </div>\n  </div>\n</ng-template>\n" }]
        }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { customToolbar: [{
                type: Input
            }], mobileFriendlyZoomScale: [{
                type: Input
            }], primaryMenuVisible: [{
                type: Input
            }], showDownloadButton: [{
                type: Input
            }], showDrawEditor: [{
                type: Input
            }], showHighlightEditor: [{
                type: Input
            }], showTextEditor: [{
                type: Input
            }], showStampEditor: [{
                type: Input
            }], showFindButton: [{
                type: Input
            }], showHandToolButton: [{
                type: Input
            }], showOpenFileButton: [{
                type: Input
            }], showPrintButton: [{
                type: Input
            }], showPagingButtons: [{
                type: Input
            }], showPresentationModeButton: [{
                type: Input
            }], showRotateCwButton: [{
                type: Input
            }], showRotateCcwButton: [{
                type: Input
            }], showSecondaryToolbarButton: [{
                type: Input
            }], showSidebarButton: [{
                type: Input
            }], sidebarVisible: [{
                type: Input
            }], showZoomButtons: [{
                type: Input
            }], textLayer: [{
                type: Input
            }], toolbarMarginTop: [{
                type: Input
            }], toolbarWidth: [{
                type: Input
            }], zoomLevels: [{
                type: Input
            }], pageViewMode: [{
                type: Input
            }], pageViewModeChange: [{
                type: Output
            }], spread: [{
                type: Input
            }], scrollMode: [{
                type: Input
            }], showPropertiesButton: [{
                type: Input
            }], showSpreadButton: [{
                type: Input
            }], showSinglePageModeButton: [{
                type: Input
            }], showVerticalScrollButton: [{
                type: Input
            }], showHorizontalScrollButton: [{
                type: Input
            }], showWrappedScrollButton: [{
                type: Input
            }], showInfiniteScrollButton: [{
                type: Input
            }], showBookModeButton: [{
                type: Input
            }], onToolbarLoaded: [{
                type: Output
            }], findbarVisible: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64, 