ngx-chat
Version:
Chat for getting contacts
3 lines (2 loc) • 2.48 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/animations"),require("@angular/common"),require("@angular/platform-browser/animations")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/animations","@angular/common","@angular/platform-browser/animations"],e):e(t["chat-site"]={},t.ng.core,t.ng.animations,t.ng.common,t.ng.platformBrowser.animations)}(this,function(t,e,n,a,o){"use strict";var i=function(){return function(){}}();i.decorators=[{type:e.Injectable}],i.ctorParameters=function(){return[]};var r=function(){function t(t){var e=this;this.zone=t,this.chatState="inactive",this.timeoutSize=2e3,"inactive"===this.chatState&&setTimeout(function(){return e.showNotification()},this.timeoutSize)}return t.prototype.ngOnInit=function(){},t.prototype.showNotification=function(){this.chatState="active"},t}();r.decorators=[{type:e.Component,args:[{selector:"ngx-chat",template:'<div class="ngx-chat" [@moveInLeft]="chatState">\n <app-chat-notification></app-chat-notification>\n</div>',animations:[n.trigger("moveInLeft",[n.state("inactive",n.style({opacity:0,transform:"translateX(100%)"})),n.state("active",n.style({opacity:1,transform:"translateX(0)"})),n.transition("inactive => active",n.animate("300ms ease-in")),n.transition("active => inactive",n.animate("300ms ease-out"))])],host:{"[@moveInLeft]":""}}]}],r.ctorParameters=function(){return[{type:e.NgZone}]};var s=function(){function t(){this.userProfile={photo:"./assets/images/steve.png",name:"Steve Jobs",status:"entrepreneur, business magnate, inventor..."}}return t.prototype.ngOnInit=function(){},t}();s.decorators=[{type:e.Component,args:[{selector:"app-chat-notification",template:'<div class="ngx-notification">\n <div class="user-avatar" [ngStyle]="{\'background-image\': \'url(\' + userProfile.photo + \')\'}"></div>\n <div class="user-profile">\n <div class="user-profile__name">{{userProfile.name}}</div>\n <div class="user-profile__status">{{userProfile.status}}</div>\n </div>\n</div>'}]}],s.ctorParameters=function(){return[]};var c=function(){return function(){}}();c.decorators=[{type:e.NgModule,args:[{imports:[a.CommonModule,o.BrowserAnimationsModule],providers:[i],declarations:[r,s],exports:[r]}]}],c.ctorParameters=function(){return[]},t.NgxChatModule=c,t.ɵc=s,t.ɵb=r,t.ɵa=i,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=chat-site.umd.min.js.map