UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

16 lines (14 loc) 3.21 kB
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/common"),require("@angular/core"),require("@angular/cdk/coercion"),require("@angular/platform-browser/animations"),require("ng-zorro-antd/core/util")):"function"==typeof define&&define.amd?define("ng-zorro-antd/core/no-animation",["exports","@angular/common","@angular/core","@angular/cdk/coercion","@angular/platform-browser/animations","ng-zorro-antd/core/util"],n):n(((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["no-animation"]={}),e.ng.common,e.ng.core,e.ng.cdk.coercion,e.ng.platformBrowser.animations,e["ng-zorro-antd"].core.util)}(this,(function(e,n,o,t,r,a){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */function i(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}var c=function(){function e(e,n,o){this.element=e,this.renderer=n,this.animationType=o,this.nzNoAnimation=!1}return e.prototype.ngOnChanges=function(){this.updateClass()},e.prototype.ngAfterViewInit=function(){this.updateClass()},e.prototype.updateClass=function(){var e=t.coerceElement(this.element);e&&(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(e,"nz-animate-disabled"):this.renderer.removeClass(e,"nz-animate-disabled"))},e.decorators=[{type:o.Directive,args:[{selector:"[nzNoAnimation]",exportAs:"nzNoAnimation"}]}],e.ctorParameters=function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:String,decorators:[{type:o.Optional},{type:o.Inject,args:[r.ANIMATION_MODULE_TYPE]}]}]},e.propDecorators={nzNoAnimation:[{type:o.Input}]},function(e,n,o,t){var r,a=arguments.length,i=a<3?n:null===t?t=Object.getOwnPropertyDescriptor(n,o):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,n,o,t);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(i=(a<3?r(i):a>3?r(n,o,i):r(n,o))||i);a>3&&i&&Object.defineProperty(n,o,i)}([a.InputBoolean(),i("design:type",Boolean)],e.prototype,"nzNoAnimation",void 0),e}();var s=function(){function e(){}return e.decorators=[{type:o.NgModule,args:[{declarations:[c],exports:[c],imports:[n.CommonModule]}]}],e}();e.NzNoAnimationDirective=c,e.NzNoAnimationModule=s,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=ng-zorro-antd-core-no-animation.umd.min.js.map