ngx-smz-ui 4.9.47 → 4.9.48
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/esm2020/lib/modules/smz-documents/features/document-viewer/document-viewer.component.mjs
CHANGED
|
@@ -36,14 +36,14 @@ export class SmzDocumentViewerComponent {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
SmzDocumentViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzDocumentViewerComponent, deps: [{ token: i0.ElementRef }, { token: i1.SmzDocumentsService }, { token: i2.Location }, { token: i0.ChangeDetectorRef }, { token: i3.Store }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
39
|
-
SmzDocumentViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SmzDocumentViewerComponent, selector: "document-viewer", inputs: { state: "state" }, viewQueries: [{ propertyName: "paperElement", first: true, predicate: ["paper"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"grid grid-nogutter items-center justify-start flex-col gap-2\" [ngClass]=\"state.viewer.container.styleClass\">\n\n <div class=\"grid grid-nogutter items-start justify-start gap-2\">\n\n <ng-container *ngIf=\"state.viewer.zoom.isEnabled\">\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM -\" (click)=\"documentService.lessZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"100%\" (click)=\"documentService.restoreZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM +\" (click)=\"documentService.moreZoom()\"></button>\n </ng-container>\n <button *ngIf=\"state.viewer.open.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"OPEN\" (click)=\"documentService.generate('open')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.print.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"PRINT\" (click)=\"documentService.generate('print')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.download.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"DOWNLOAD\" (click)=\"documentService.generate('download')\" [disabled]=\"state.isDebug\"></button>\n </div>\n\n <div class=\"pager\" [ngClass]=\"state.viewer.paper.styleClass\"\n [style.transform]=\"'scale(' + documentService.zoom + ')'\"\n [style.width.pt]=\"state.viewer.paper.ptWidth\"\n [style.padding-left]=\"state.export.margin.left + 'pt !important'\"\n [style.padding-right]=\"state.export.margin.right + 'pt !important'\"\n [style.padding-top]=\"state.export.margin.top + 'pt !important'\"\n [style.padding-bottom]=\"state.export.margin.bottom + 'pt !important'\"\n >\n <div #paper [style.font-family]=\"state.globals.font.family\"
|
|
39
|
+
SmzDocumentViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SmzDocumentViewerComponent, selector: "document-viewer", inputs: { state: "state" }, viewQueries: [{ propertyName: "paperElement", first: true, predicate: ["paper"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"grid grid-nogutter items-center justify-start flex-col gap-2\" [ngClass]=\"state.viewer.container.styleClass\">\n\n <div class=\"grid grid-nogutter items-start justify-start gap-2\">\n\n <ng-container *ngIf=\"state.viewer.zoom.isEnabled\">\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM -\" (click)=\"documentService.lessZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"100%\" (click)=\"documentService.restoreZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM +\" (click)=\"documentService.moreZoom()\"></button>\n </ng-container>\n <button *ngIf=\"state.viewer.open.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"OPEN\" (click)=\"documentService.generate('open')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.print.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"PRINT\" (click)=\"documentService.generate('print')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.download.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"DOWNLOAD\" (click)=\"documentService.generate('download')\" [disabled]=\"state.isDebug\"></button>\n </div>\n\n <div class=\"pager\" [ngClass]=\"state.viewer.paper.styleClass\"\n [style.transform]=\"'scale(' + documentService.zoom + ')'\"\n [style.width.pt]=\"state.viewer.paper.ptWidth\"\n [style.padding-left]=\"state.export.margin.left + 'pt !important'\"\n [style.padding-right]=\"state.export.margin.right + 'pt !important'\"\n [style.padding-top]=\"state.export.margin.top + 'pt !important'\"\n [style.padding-bottom]=\"state.export.margin.bottom + 'pt !important'\"\n >\n <div #paper [style.font-family]=\"state.globals.font.family\" [style.padding]=\"'4px !important'\">\n <ng-content select=\"header\"></ng-content>\n <ng-content select=\"content\"></ng-content>\n </div>\n </div>\n\n</div>", styles: [".pager{transform-origin:top center;transition:transform .1s ease-in-out;margin-top:0;margin-left:auto;margin-right:auto}.footer-container{position:absolute;bottom:14.173px;right:22.6768px;font-size:\"0.8px\"}.sticky-header{position:absolute}\n"], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
40
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzDocumentViewerComponent, decorators: [{
|
|
41
41
|
type: Component,
|
|
42
|
-
args: [{ selector: 'document-viewer', changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, template: "<div class=\"grid grid-nogutter items-center justify-start flex-col gap-2\" [ngClass]=\"state.viewer.container.styleClass\">\n\n <div class=\"grid grid-nogutter items-start justify-start gap-2\">\n\n <ng-container *ngIf=\"state.viewer.zoom.isEnabled\">\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM -\" (click)=\"documentService.lessZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"100%\" (click)=\"documentService.restoreZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM +\" (click)=\"documentService.moreZoom()\"></button>\n </ng-container>\n <button *ngIf=\"state.viewer.open.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"OPEN\" (click)=\"documentService.generate('open')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.print.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"PRINT\" (click)=\"documentService.generate('print')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.download.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"DOWNLOAD\" (click)=\"documentService.generate('download')\" [disabled]=\"state.isDebug\"></button>\n </div>\n\n <div class=\"pager\" [ngClass]=\"state.viewer.paper.styleClass\"\n [style.transform]=\"'scale(' + documentService.zoom + ')'\"\n [style.width.pt]=\"state.viewer.paper.ptWidth\"\n [style.padding-left]=\"state.export.margin.left + 'pt !important'\"\n [style.padding-right]=\"state.export.margin.right + 'pt !important'\"\n [style.padding-top]=\"state.export.margin.top + 'pt !important'\"\n [style.padding-bottom]=\"state.export.margin.bottom + 'pt !important'\"\n >\n <div #paper [style.font-family]=\"state.globals.font.family\"
|
|
42
|
+
args: [{ selector: 'document-viewer', changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, template: "<div class=\"grid grid-nogutter items-center justify-start flex-col gap-2\" [ngClass]=\"state.viewer.container.styleClass\">\n\n <div class=\"grid grid-nogutter items-start justify-start gap-2\">\n\n <ng-container *ngIf=\"state.viewer.zoom.isEnabled\">\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM -\" (click)=\"documentService.lessZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"100%\" (click)=\"documentService.restoreZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM +\" (click)=\"documentService.moreZoom()\"></button>\n </ng-container>\n <button *ngIf=\"state.viewer.open.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"OPEN\" (click)=\"documentService.generate('open')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.print.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"PRINT\" (click)=\"documentService.generate('print')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.download.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"DOWNLOAD\" (click)=\"documentService.generate('download')\" [disabled]=\"state.isDebug\"></button>\n </div>\n\n <div class=\"pager\" [ngClass]=\"state.viewer.paper.styleClass\"\n [style.transform]=\"'scale(' + documentService.zoom + ')'\"\n [style.width.pt]=\"state.viewer.paper.ptWidth\"\n [style.padding-left]=\"state.export.margin.left + 'pt !important'\"\n [style.padding-right]=\"state.export.margin.right + 'pt !important'\"\n [style.padding-top]=\"state.export.margin.top + 'pt !important'\"\n [style.padding-bottom]=\"state.export.margin.bottom + 'pt !important'\"\n >\n <div #paper [style.font-family]=\"state.globals.font.family\" [style.padding]=\"'4px !important'\">\n <ng-content select=\"header\"></ng-content>\n <ng-content select=\"content\"></ng-content>\n </div>\n </div>\n\n</div>", styles: [".pager{transform-origin:top center;transition:transform .1s ease-in-out;margin-top:0;margin-left:auto;margin-right:auto}.footer-container{position:absolute;bottom:14.173px;right:22.6768px;font-size:\"0.8px\"}.sticky-header{position:absolute}\n"] }]
|
|
43
43
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.SmzDocumentsService }, { type: i2.Location }, { type: i0.ChangeDetectorRef }, { type: i3.Store }, { type: i0.Renderer2 }]; }, propDecorators: { paperElement: [{
|
|
44
44
|
type: ViewChild,
|
|
45
45
|
args: ['paper', { static: true }]
|
|
46
46
|
}], state: [{
|
|
47
47
|
type: Input
|
|
48
48
|
}] } });
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQtdmlld2VyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zbXotdWkvc3JjL2xpYi9tb2R1bGVzL3Ntei1kb2N1bWVudHMvZmVhdHVyZXMvZG9jdW1lbnQtdmlld2VyL2RvY3VtZW50LXZpZXdlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc216LXVpL3NyYy9saWIvbW9kdWxlcy9zbXotZG9jdW1lbnRzL2ZlYXR1cmVzL2RvY3VtZW50LXZpZXdlci9kb2N1bWVudC12aWV3ZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUEyRCxpQkFBaUIsRUFBdUMsTUFBTSxlQUFlLENBQUM7QUFHOU0sT0FBTyxNQUFNLE1BQU0sUUFBUSxDQUFDOzs7Ozs7QUFXNUIsTUFBTSxPQUFPLDBCQUEwQjtJQUtuQyxZQUFvQixFQUFjLEVBQVMsZUFBb0MsRUFBVSxRQUFrQixFQUFVLEdBQXNCLEVBQVUsS0FBWSxFQUFVLFFBQW1CO1FBQTFLLE9BQUUsR0FBRixFQUFFLENBQVk7UUFBUyxvQkFBZSxHQUFmLGVBQWUsQ0FBcUI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QgIWltcG9ydGFudCdcIlxuICAgICAgICA+XG4gICAgICAgIDxkaXYgI3BhcGVyIFtzdHlsZS5mb250LWZhbWlseV09XCJzdGF0ZS5nbG9iYWxzLmZvbnQuZmFtaWx5XCIgW3N0eWxlLnBhZGRpbmddPVwiJzRweCAhaW1wb3J0YW50J1wiPlxuICAgICAgICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiaGVhZGVyXCI+PC9uZy1jb250ZW50PlxuICAgICAgICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiY29udGVudFwiPjwvbmctY29udGVudD5cbiAgICAgICAgPC9kaXY+XG4gICAgPC9kaXY+XG5cbjwvZGl2PiJdfQ==
|
package/fesm2015/ngx-smz-ui.mjs
CHANGED
|
@@ -9142,10 +9142,10 @@ class SmzDocumentViewerComponent {
|
|
|
9142
9142
|
}
|
|
9143
9143
|
}
|
|
9144
9144
|
SmzDocumentViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzDocumentViewerComponent, deps: [{ token: i0.ElementRef }, { token: SmzDocumentsService }, { token: i1.Location }, { token: i0.ChangeDetectorRef }, { token: i1$4.Store }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
9145
|
-
SmzDocumentViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SmzDocumentViewerComponent, selector: "document-viewer", inputs: { state: "state" }, viewQueries: [{ propertyName: "paperElement", first: true, predicate: ["paper"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"grid grid-nogutter items-center justify-start flex-col gap-2\" [ngClass]=\"state.viewer.container.styleClass\">\n\n <div class=\"grid grid-nogutter items-start justify-start gap-2\">\n\n <ng-container *ngIf=\"state.viewer.zoom.isEnabled\">\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM -\" (click)=\"documentService.lessZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"100%\" (click)=\"documentService.restoreZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM +\" (click)=\"documentService.moreZoom()\"></button>\n </ng-container>\n <button *ngIf=\"state.viewer.open.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"OPEN\" (click)=\"documentService.generate('open')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.print.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"PRINT\" (click)=\"documentService.generate('print')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.download.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"DOWNLOAD\" (click)=\"documentService.generate('download')\" [disabled]=\"state.isDebug\"></button>\n </div>\n\n <div class=\"pager\" [ngClass]=\"state.viewer.paper.styleClass\"\n [style.transform]=\"'scale(' + documentService.zoom + ')'\"\n [style.width.pt]=\"state.viewer.paper.ptWidth\"\n [style.padding-left]=\"state.export.margin.left + 'pt !important'\"\n [style.padding-right]=\"state.export.margin.right + 'pt !important'\"\n [style.padding-top]=\"state.export.margin.top + 'pt !important'\"\n [style.padding-bottom]=\"state.export.margin.bottom + 'pt !important'\"\n >\n <div #paper [style.font-family]=\"state.globals.font.family\"
|
|
9145
|
+
SmzDocumentViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: SmzDocumentViewerComponent, selector: "document-viewer", inputs: { state: "state" }, viewQueries: [{ propertyName: "paperElement", first: true, predicate: ["paper"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"grid grid-nogutter items-center justify-start flex-col gap-2\" [ngClass]=\"state.viewer.container.styleClass\">\n\n <div class=\"grid grid-nogutter items-start justify-start gap-2\">\n\n <ng-container *ngIf=\"state.viewer.zoom.isEnabled\">\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM -\" (click)=\"documentService.lessZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"100%\" (click)=\"documentService.restoreZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM +\" (click)=\"documentService.moreZoom()\"></button>\n </ng-container>\n <button *ngIf=\"state.viewer.open.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"OPEN\" (click)=\"documentService.generate('open')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.print.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"PRINT\" (click)=\"documentService.generate('print')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.download.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"DOWNLOAD\" (click)=\"documentService.generate('download')\" [disabled]=\"state.isDebug\"></button>\n </div>\n\n <div class=\"pager\" [ngClass]=\"state.viewer.paper.styleClass\"\n [style.transform]=\"'scale(' + documentService.zoom + ')'\"\n [style.width.pt]=\"state.viewer.paper.ptWidth\"\n [style.padding-left]=\"state.export.margin.left + 'pt !important'\"\n [style.padding-right]=\"state.export.margin.right + 'pt !important'\"\n [style.padding-top]=\"state.export.margin.top + 'pt !important'\"\n [style.padding-bottom]=\"state.export.margin.bottom + 'pt !important'\"\n >\n <div #paper [style.font-family]=\"state.globals.font.family\" [style.padding]=\"'4px !important'\">\n <ng-content select=\"header\"></ng-content>\n <ng-content select=\"content\"></ng-content>\n </div>\n </div>\n\n</div>", styles: [".pager{transform-origin:top center;transition:transform .1s ease-in-out;margin-top:0;margin-left:auto;margin-right:auto}.footer-container{position:absolute;bottom:14.173px;right:22.6768px;font-size:\"0.8px\"}.sticky-header{position:absolute}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
9146
9146
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SmzDocumentViewerComponent, decorators: [{
|
|
9147
9147
|
type: Component,
|
|
9148
|
-
args: [{ selector: 'document-viewer', changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, template: "<div class=\"grid grid-nogutter items-center justify-start flex-col gap-2\" [ngClass]=\"state.viewer.container.styleClass\">\n\n <div class=\"grid grid-nogutter items-start justify-start gap-2\">\n\n <ng-container *ngIf=\"state.viewer.zoom.isEnabled\">\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM -\" (click)=\"documentService.lessZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"100%\" (click)=\"documentService.restoreZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM +\" (click)=\"documentService.moreZoom()\"></button>\n </ng-container>\n <button *ngIf=\"state.viewer.open.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"OPEN\" (click)=\"documentService.generate('open')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.print.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"PRINT\" (click)=\"documentService.generate('print')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.download.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"DOWNLOAD\" (click)=\"documentService.generate('download')\" [disabled]=\"state.isDebug\"></button>\n </div>\n\n <div class=\"pager\" [ngClass]=\"state.viewer.paper.styleClass\"\n [style.transform]=\"'scale(' + documentService.zoom + ')'\"\n [style.width.pt]=\"state.viewer.paper.ptWidth\"\n [style.padding-left]=\"state.export.margin.left + 'pt !important'\"\n [style.padding-right]=\"state.export.margin.right + 'pt !important'\"\n [style.padding-top]=\"state.export.margin.top + 'pt !important'\"\n [style.padding-bottom]=\"state.export.margin.bottom + 'pt !important'\"\n >\n <div #paper [style.font-family]=\"state.globals.font.family\"
|
|
9148
|
+
args: [{ selector: 'document-viewer', changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, template: "<div class=\"grid grid-nogutter items-center justify-start flex-col gap-2\" [ngClass]=\"state.viewer.container.styleClass\">\n\n <div class=\"grid grid-nogutter items-start justify-start gap-2\">\n\n <ng-container *ngIf=\"state.viewer.zoom.isEnabled\">\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM -\" (click)=\"documentService.lessZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"100%\" (click)=\"documentService.restoreZoom()\"></button>\n <button pButton type=\"button\" class=\"p-button p-button-outlined\" label=\"ZOOM +\" (click)=\"documentService.moreZoom()\"></button>\n </ng-container>\n <button *ngIf=\"state.viewer.open.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"OPEN\" (click)=\"documentService.generate('open')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.print.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"PRINT\" (click)=\"documentService.generate('print')\" [disabled]=\"state.isDebug\"></button>\n <button *ngIf=\"state.viewer.download.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"DOWNLOAD\" (click)=\"documentService.generate('download')\" [disabled]=\"state.isDebug\"></button>\n </div>\n\n <div class=\"pager\" [ngClass]=\"state.viewer.paper.styleClass\"\n [style.transform]=\"'scale(' + documentService.zoom + ')'\"\n [style.width.pt]=\"state.viewer.paper.ptWidth\"\n [style.padding-left]=\"state.export.margin.left + 'pt !important'\"\n [style.padding-right]=\"state.export.margin.right + 'pt !important'\"\n [style.padding-top]=\"state.export.margin.top + 'pt !important'\"\n [style.padding-bottom]=\"state.export.margin.bottom + 'pt !important'\"\n >\n <div #paper [style.font-family]=\"state.globals.font.family\" [style.padding]=\"'4px !important'\">\n <ng-content select=\"header\"></ng-content>\n <ng-content select=\"content\"></ng-content>\n </div>\n </div>\n\n</div>", styles: [".pager{transform-origin:top center;transition:transform .1s ease-in-out;margin-top:0;margin-left:auto;margin-right:auto}.footer-container{position:absolute;bottom:14.173px;right:22.6768px;font-size:\"0.8px\"}.sticky-header{position:absolute}\n"] }]
|
|
9149
9149
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: SmzDocumentsService }, { type: i1.Location }, { type: i0.ChangeDetectorRef }, { type: i1$4.Store }, { type: i0.Renderer2 }]; }, propDecorators: { paperElement: [{
|
|
9150
9150
|
type: ViewChild,
|
|
9151
9151
|
args: ['paper', { static: true }]
|