ngx-bootstrap-fix-datepicker
Version:
Native Angular Bootstrap Components
16 lines (14 loc) • 3.82 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("ngx-bootstrap/utils"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-bootstrap/alert",["exports","@angular/core","ngx-bootstrap/utils","@angular/common"],t):t(((e=e||self)["ngx-bootstrap"]=e["ngx-bootstrap"]||{},e["ngx-bootstrap"].alert={}),e.ng.core,e.utils,e.ng.common)}(this,(function(e,t,n,s){"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 o(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}var i=function(){function e(){this.type="warning",this.dismissible=!1,this.dismissOnTimeout=void 0}return e.decorators=[{type:t.Injectable}],e}();var r=function(){function e(e,n){var s=this;this.changeDetection=n,this.type="warning",this.dismissible=!1,this.isOpen=!0,this.onClose=new t.EventEmitter,this.onClosed=new t.EventEmitter,this.classes="",this.dismissibleChange=new t.EventEmitter,Object.assign(this,e),this.dismissibleChange.subscribe((function(e){s.classes=s.dismissible?"alert-dismissible":"",s.changeDetection.markForCheck()}))}return e.prototype.ngOnInit=function(){var e=this;this.dismissOnTimeout&&setTimeout((function(){return e.close()}),parseInt(this.dismissOnTimeout,10))},e.prototype.close=function(){this.isOpen&&(this.onClose.emit(this),this.isOpen=!1,this.changeDetection.markForCheck(),this.onClosed.emit(this))},e.decorators=[{type:t.Component,args:[{selector:"alert,bs-alert",template:'<ng-template [ngIf]="isOpen">\n <div [class]="\'alert alert-\' + type" role="alert" [ngClass]="classes">\n <ng-template [ngIf]="dismissible">\n <button type="button" class="close" aria-label="Close" (click)="close()">\n <span aria-hidden="true">×</span>\n <span class="sr-only">Close</span>\n </button>\n </ng-template>\n <ng-content></ng-content>\n </div>\n</ng-template>\n',changeDetection:t.ChangeDetectionStrategy.OnPush}]}],e.ctorParameters=function(){return[{type:i},{type:t.ChangeDetectorRef}]},e.propDecorators={type:[{type:t.Input}],dismissible:[{type:t.Input}],dismissOnTimeout:[{type:t.Input}],isOpen:[{type:t.Input}],onClose:[{type:t.Output}],onClosed:[{type:t.Output}]},function(e,t,n,s){var o,i=arguments.length,r=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(i<3?o(r):i>3?o(t,n,r):o(t,n))||r);i>3&&r&&Object.defineProperty(t,n,r)}([n.OnChange(),o("design:type",Object)],e.prototype,"dismissible",void 0),e}();var a=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[i]}},e.decorators=[{type:t.NgModule,args:[{imports:[s.CommonModule],declarations:[r],exports:[r],entryComponents:[r]}]}],e}();e.AlertComponent=r,e.AlertConfig=i,e.AlertModule=a,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-bootstrap-alert.umd.min.js.map