ngx-smz-ui 3.5.1 → 3.5.2
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/bundles/ngx-smz-ui.umd.js +8 -3
- package/bundles/ngx-smz-ui.umd.js.map +1 -1
- package/esm2015/lib/modules/smz-documents/features/document-viewer/document-viewer.component.js +4 -2
- package/esm2015/lib/modules/smz-documents/services/smz-documents.service.js +6 -3
- package/fesm2015/ngx-smz-ui.js +8 -3
- package/fesm2015/ngx-smz-ui.js.map +1 -1
- package/lib/modules/smz-documents/services/smz-documents.service.d.ts +3 -1
- package/package.json +1 -1
|
@@ -9282,11 +9282,14 @@
|
|
|
9282
9282
|
SmzDocumentsService.prototype.setState = function (state) {
|
|
9283
9283
|
this.state = state;
|
|
9284
9284
|
};
|
|
9285
|
-
SmzDocumentsService.prototype.
|
|
9285
|
+
SmzDocumentsService.prototype.setPaperElement = function (paperElement) {
|
|
9286
|
+
this.paperElement = paperElement;
|
|
9287
|
+
};
|
|
9288
|
+
SmzDocumentsService.prototype.generate = function (action) {
|
|
9286
9289
|
var _this = this;
|
|
9287
9290
|
this.store.dispatch(new exports.ApplicationActions.StartGlobalLoading());
|
|
9288
9291
|
setTimeout(function () {
|
|
9289
|
-
_this.generatePdf(action,
|
|
9292
|
+
_this.generatePdf(action, _this.paperElement, _this.state).then(function () {
|
|
9290
9293
|
_this.store.dispatch(new exports.ApplicationActions.StopGlobalLoading());
|
|
9291
9294
|
});
|
|
9292
9295
|
}, 0);
|
|
@@ -9377,17 +9380,19 @@
|
|
|
9377
9380
|
this.documentService.setState(this.state);
|
|
9378
9381
|
};
|
|
9379
9382
|
SmzDocumentViewerComponent.prototype.ngAfterViewInit = function () {
|
|
9383
|
+
this.documentService.setPaperElement(this.paperElement);
|
|
9380
9384
|
};
|
|
9381
9385
|
SmzDocumentViewerComponent.prototype.goBack = function () {
|
|
9382
9386
|
this.location.back();
|
|
9383
9387
|
};
|
|
9384
9388
|
SmzDocumentViewerComponent.prototype.ngOnDestroy = function () {
|
|
9385
9389
|
this.documentService.setState(null);
|
|
9390
|
+
this.documentService.setPaperElement(null);
|
|
9386
9391
|
};
|
|
9387
9392
|
return SmzDocumentViewerComponent;
|
|
9388
9393
|
}());
|
|
9389
9394
|
SmzDocumentViewerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDocumentViewerComponent, deps: [{ token: i0__namespace.ElementRef }, { token: SmzDocumentsService }, { token: i1__namespace.Location }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$4.Store }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9390
|
-
SmzDocumentViewerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SmzDocumentViewerComponent, selector: "document-viewer", inputs: { state: "state" }, viewQueries: [{ propertyName: "paperElement", first: true, predicate: ["paper"], descendants: true, static: true }], ngImport: i0__namespace, template: "<div class=\"p-grid p-nogutter p-align-center p-justify-start p-flex-column gap-2\" [ngClass]=\"state.viewer.container.styleClass\">\n\n <div class=\"p-grid p-nogutter p-align-start p-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\n <button *ngIf=\"state.viewer.open.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"OPEN\" (click)=\"documentService.generate('open'
|
|
9395
|
+
SmzDocumentViewerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SmzDocumentViewerComponent, selector: "document-viewer", inputs: { state: "state" }, viewQueries: [{ propertyName: "paperElement", first: true, predicate: ["paper"], descendants: true, static: true }], ngImport: i0__namespace, template: "<div class=\"p-grid p-nogutter p-align-center p-justify-start p-flex-column gap-2\" [ngClass]=\"state.viewer.container.styleClass\">\n\n <div class=\"p-grid p-nogutter p-align-start p-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\n <button *ngIf=\"state.viewer.open.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"OPEN\" (click)=\"documentService.generate('open')\"></button>\n <button *ngIf=\"state.viewer.print.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"PRINT\" (click)=\"documentService.generate('print')\"></button>\n <button *ngIf=\"state.viewer.download.isEnabled\" pButton type=\"button\" class=\"p-button p-button-success\" label=\"DOWNLOAD\" (click)=\"documentService.generate('download')\"></button>\n </div>\n\n <div class=\"pager\" [ngClass]=\"state.viewer.paper.styleClass\"[ngStyle]=\"{ 'transform': 'scale(' + documentService.zoom + ')' }\">\n <div #paper [ngStyle]=\"{ 'font-family': state.globals.font.family }\">\n <ng-content select=\"header\"></ng-content>\n <ng-content select=\"content\"></ng-content>\n </div>\n </div>\n\n</div>", styles: [".pager{width:595.276pt;transform-origin:top center;transition:transform .1s ease-in-out;margin-top:0;margin-left:auto;margin-right:auto}.footer-container{position:absolute;bottom:calc(.5 * 28.346px);right:calc(.8 * 28.346px);font-size:\"0.8px\"}.sticky-header{position:absolute}\n"], directives: [{ type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.Default, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
9391
9396
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDocumentViewerComponent, decorators: [{
|
|
9392
9397
|
type: i0.Component,
|
|
9393
9398
|
args: [{
|