@vgroup/dialbox 0.1.59 → 0.1.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Component, EventEmitter, Input, Output, NgModule } from '@angular/core';
2
+ import { Injectable, EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
3
3
  import * as i4 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
- import * as i3 from '@angular/forms';
6
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
7
- import * as i1 from '@angular/common/http';
8
- import { HttpHeaders, HttpParams, HttpClientModule } from '@angular/common/http';
9
5
  import { Device } from '@twilio/voice-sdk';
10
6
  import swal from 'sweetalert2';
11
7
  import { throwError, BehaviorSubject, of, interval } from 'rxjs';
8
+ import * as i1 from '@angular/common/http';
9
+ import { HttpHeaders, HttpParams, HttpClientModule } from '@angular/common/http';
12
10
  import { catchError, switchMap, map, tap, shareReplay } from 'rxjs/operators';
11
+ import * as i3 from '@angular/forms';
12
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
13
13
  import * as i1$1 from '@angular/router';
14
14
 
15
15
  class DialboxService {
@@ -24,23 +24,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
24
24
  }]
25
25
  }], ctorParameters: function () { return []; } });
26
26
 
27
- class DialboxComponent {
28
- }
29
- DialboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
30
- DialboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DialboxComponent, selector: "lib-dialbox", ngImport: i0, template: `
31
- <p>
32
- dialbox works!
33
- </p>
34
- `, isInline: true });
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialboxComponent, decorators: [{
36
- type: Component,
37
- args: [{ selector: 'lib-dialbox', template: `
38
- <p>
39
- dialbox works!
40
- </p>
41
- ` }]
42
- }] });
43
-
44
27
  const environment = {
45
28
  abb: "d",
46
29
  production: false,
@@ -1264,6 +1247,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1264
1247
  type: Output
1265
1248
  }] } });
1266
1249
 
1250
+ class DialboxComponent {
1251
+ constructor() {
1252
+ this.isDialpadHidden = false;
1253
+ this.closeDialpadEvent = new EventEmitter();
1254
+ this.minimiseEvent = new EventEmitter();
1255
+ }
1256
+ onEndCall() {
1257
+ this.closeDialpadEvent.emit();
1258
+ }
1259
+ onMinimise(val) {
1260
+ this.minimiseEvent.emit(val);
1261
+ }
1262
+ }
1263
+ DialboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1264
+ DialboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DialboxComponent, selector: "lib-dialbox", inputs: { isDialpadHidden: "isDialpadHidden", contactInfo: "contactInfo", deviceId: "deviceId" }, outputs: { closeDialpadEvent: "closeDialpadEvent", minimiseEvent: "minimiseEvent" }, ngImport: i0, template: `
1265
+ <div *ngIf="!isDialpadHidden">
1266
+ <lib-call-progress
1267
+ [callData]="contactInfo"
1268
+ [deviceId]="deviceId"
1269
+ (endCallEvent)="onEndCall()"
1270
+ (minimiseEvent)="onMinimise($event)">
1271
+ </lib-call-progress>
1272
+ </div>
1273
+ `, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CallProgressComponent, selector: "lib-call-progress", inputs: ["callData", "newIncomingCallData", "newIncomingCallsList", "deviceId"], outputs: ["endCallEvent", "incomingCallsNewInfo", "minimiseEvent", "incomingCallInitiated"] }] });
1274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialboxComponent, decorators: [{
1275
+ type: Component,
1276
+ args: [{ selector: 'lib-dialbox', template: `
1277
+ <div *ngIf="!isDialpadHidden">
1278
+ <lib-call-progress
1279
+ [callData]="contactInfo"
1280
+ [deviceId]="deviceId"
1281
+ (endCallEvent)="onEndCall()"
1282
+ (minimiseEvent)="onMinimise($event)">
1283
+ </lib-call-progress>
1284
+ </div>
1285
+ ` }]
1286
+ }], propDecorators: { isDialpadHidden: [{
1287
+ type: Input
1288
+ }], contactInfo: [{
1289
+ type: Input
1290
+ }], deviceId: [{
1291
+ type: Input
1292
+ }], closeDialpadEvent: [{
1293
+ type: Output
1294
+ }], minimiseEvent: [{
1295
+ type: Output
1296
+ }] } });
1297
+
1267
1298
  class CallerIdDialogComponent {
1268
1299
  constructor(router, twilServ) {
1269
1300
  this.router = router;