ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
2 lines • 1.75 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/platform"),require("@angular/core")):"function"==typeof define&&define.amd?define("ng-zorro-antd/core/transition-patch",["exports","@angular/cdk/platform","@angular/core"],t):t(((e=e||self)["ng-zorro-antd"]=e["ng-zorro-antd"]||{},e["ng-zorro-antd"].core=e["ng-zorro-antd"].core||{},e["ng-zorro-antd"].core["transition-patch"]={}),e.ng.cdk.platform,e.ng.core)}(this,(function(e,t,n){"use strict";var r=function(){function e(e,t){this.elementRef=e,this.renderer=t,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}return e.prototype.setHiddenAttribute=function(){!0===this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden",""):!1===this.hidden||null===this.hidden?this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden"):"string"==typeof this.hidden&&this.renderer.setAttribute(this.elementRef.nativeElement,"hidden",this.hidden)},e.prototype.ngOnChanges=function(){this.setHiddenAttribute()},e.prototype.ngAfterViewInit=function(){this.setHiddenAttribute()},e.decorators=[{type:n.Directive,args:[{selector:"[nz-button],nz-button-group,[nz-icon],[nz-menu-item],[nz-submenu],nz-select-top-control,nz-select-placeholder"}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:n.Renderer2}]},e.propDecorators={hidden:[{type:n.Input}]},e}();var i=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[t.PlatformModule],exports:[r],declarations:[r]}]}],e}();e.ɵNzTransitionPatchDirective=r,e.ɵNzTransitionPatchModule=i,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ng-zorro-antd-core-transition-patch.umd.min.js.map