primeng
Version:
[](https://opensource.org/licenses/MIT) [](https://badge.fury.io/js/primeng) [{"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("primeng/dom"),require("primeng/api")):"function"==typeof define&&define.amd?define("primeng/blockui",["exports","@angular/core","@angular/common","primeng/dom","primeng/api"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).primeng=e.primeng||{},e.primeng.blockui={}),e.ng.core,e.ng.common,e.primeng.dom,e.primeng.api)}(this,(function(e,t,n,o,i){"use strict";var a=function(){function e(e,t){this.el=e,this.cd=t,this.autoZIndex=!0,this.baseZIndex=0}return Object.defineProperty(e.prototype,"blocked",{get:function(){return this._blocked},set:function(e){this._blocked=e,this.mask&&this.mask.nativeElement&&(this._blocked?this.block():this.unblock())},enumerable:!1,configurable:!0}),e.prototype.ngAfterViewInit=function(){if(this.target&&!this.target.getBlockableElement)throw"Target of BlockUI must implement BlockableUI interface"},e.prototype.ngAfterContentInit=function(){var e=this;this.templates.forEach((function(t){switch(t.getType()){case"content":default:e.contentTemplate=t.template}}))},e.prototype.block=function(){this.target?(this.target.getBlockableElement().appendChild(this.mask.nativeElement),this.target.getBlockableElement().style.position="relative"):document.body.appendChild(this.mask.nativeElement),this.autoZIndex&&(this.mask.nativeElement.style.zIndex=String(this.baseZIndex+ ++o.DomHandler.zindex))},e.prototype.unblock=function(){this.el.nativeElement.appendChild(this.mask.nativeElement)},e.prototype.ngOnDestroy=function(){this.unblock()},e}();a.decorators=[{type:t.Component,args:[{selector:"p-blockUI",template:"\n <div #mask [class]=\"styleClass\" [ngClass]=\"{'p-blockui-document':!target, 'p-blockui p-component-overlay': true}\" [ngStyle]=\"{display: blocked ? 'flex' : 'none'}\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n ",changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,styles:[".p-blockui{align-items:center;background-color:transparent;display:flex;height:100%;justify-content:center;left:0;top:0;transition-property:background-color;width:100%}.p-blockui,.p-blockui.p-component-overlay{position:absolute}.p-blockui-document.p-component-overlay{position:fixed}.p-blockui-leave.p-component-overlay{background-color:transparent}"]}]}],a.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},a.propDecorators={target:[{type:t.Input}],autoZIndex:[{type:t.Input}],baseZIndex:[{type:t.Input}],styleClass:[{type:t.Input}],templates:[{type:t.ContentChildren,args:[i.PrimeTemplate]}],mask:[{type:t.ViewChild,args:["mask"]}],blocked:[{type:t.Input}]};var r=function(){};r.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule],exports:[a],declarations:[a]}]}],e.BlockUI=a,e.BlockUIModule=r,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=primeng-blockui.umd.min.js.map