UNPKG

soft-phone

Version:
35 lines 2.76 kB
import { Component, Output, EventEmitter } from '@angular/core'; var ButtonsComponent = /** @class */ (function () { // @Output("action") OutgoinEmitter = new EventEmitter<boolean>(); function ButtonsComponent() { //@Input() name: string; this.OutCallPickEmitter = new EventEmitter(); this.IncomPickEmitter = new EventEmitter(); } ButtonsComponent.prototype.ngOnInit = function () { }; ButtonsComponent.prototype.outClick = function () { this.OutCallPickEmitter.emit(false); this.IncomPickEmitter.emit(true); }; ButtonsComponent.prototype.pickClick = function () { this.OutCallPickEmitter.emit(true); this.IncomPickEmitter.emit(false); }; ButtonsComponent.decorators = [ { type: Component, args: [{ selector: 'sphone-buttons', template: "\n\n <div>\n <!-- <button pButton type=\"button\" (click)=\"inClick()\" label=\"incoming\" id=\"btn\" ></button> -->\n <button pButton type=\"button\" (click)=\"outClick()\" label=\"outgoin\" id=\"btn\" ></button>\n <button pButton type=\"button\" (click)=\"restClick()\" label=\"rest\" id=\"btn\" ></button>\n <button pButton type=\"button\" (click)=\"pickClick()\" label=\"IncomPick\" id=\"btn\" ></button>\n <button pButton type=\"button\" (click)=\"transClick()\" label=\"transfer\" id=\"btn\" ></button>\n <!-- <button pButton type=\"button\" (click)=\"keypadClick()\" label=\"keypad\" id=\"btn\" ></button> -->\n \n </div>\n ", styles: ["\n #panel{width:450px;margin:0 auto}#panel-heada{text-align:center}.Caller-details{text-align:center}.Call-button{text-align:center}#btn{width:250px}.fone{text-align:center}body #kpp .ui-button{width:280px;height:40px}body #kp .ui-button{width:80px;height:80px;float:none}.butgrp{padding-bottom:0px}.nopad{padding:0px}.short{height:184px;max-height:184px;overflow-y:auto;overflow-x:hidden;width:280px}.phone-width{width:290px}.expand{min-height:184px;max-height:395px;overflow-x:hidden;overflow-y:auto}.full-width{width:100%}body .md-inputfield{margin-bottom:5px}.c-input span input{width:100% !important}.recip{width:280px;height:60px;margin:0px}\n "] },] }, ]; /** @nocollapse */ ButtonsComponent.ctorParameters = function () { return []; }; ButtonsComponent.propDecorators = { 'OutCallPickEmitter': [{ type: Output, args: ["action",] },], 'IncomPickEmitter': [{ type: Output, args: ["action2",] },], }; return ButtonsComponent; }()); export { ButtonsComponent }; //# sourceMappingURL=buttons.component.js.map