@vgroup/dialbox 0.7.12 → 0.7.14

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.
@@ -1926,7 +1926,7 @@ class CallProgressComponent {
1926
1926
  this.deviceNumberList = this.callerIdList.map((res) => res.number);
1927
1927
  }
1928
1928
  ngOnChanges(changes) {
1929
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11;
1929
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13;
1930
1930
  if (this.userId) {
1931
1931
  this.extensionService.userId = this.userId;
1932
1932
  }
@@ -2242,10 +2242,13 @@ class CallProgressComponent {
2242
2242
  }
2243
2243
  if (((_8 = changes['callAction']) === null || _8 === void 0 ? void 0 : _8.currentValue) && ((_9 = this.callAction) === null || _9 === void 0 ? void 0 : _9.type) == 'reJoin') {
2244
2244
  this.deviceNumberList = this.callerIdList.map((res) => res.number);
2245
- this.rejoinHost(this.callAction);
2245
+ let data = (_10 = this.newIncomingCallsList.find((item) => { var _a; return (item === null || item === void 0 ? void 0 : item.conferenceId) == ((_a = this.callAction) === null || _a === void 0 ? void 0 : _a.conferenceId); })) === null || _10 === void 0 ? void 0 : _10.participants.find((resData) => resData === null || resData === void 0 ? void 0 : resData.host);
2246
+ if ((data === null || data === void 0 ? void 0 : data.isLeft) || !((_11 = this.newIncomingCallsList) === null || _11 === void 0 ? void 0 : _11.length)) {
2247
+ this.rejoinHost(this.callAction);
2248
+ }
2246
2249
  }
2247
- if ((_10 = changes['newCallConference']) === null || _10 === void 0 ? void 0 : _10.currentValue) {
2248
- this.CallToUnsavedNumber((_11 = this.newCallConference) === null || _11 === void 0 ? void 0 : _11.number, true);
2250
+ if ((_12 = changes['newCallConference']) === null || _12 === void 0 ? void 0 : _12.currentValue) {
2251
+ this.CallToUnsavedNumber((_13 = this.newCallConference) === null || _13 === void 0 ? void 0 : _13.number, true);
2249
2252
  }
2250
2253
  }
2251
2254
  rejoinHost(callInfo) {
@@ -4080,8 +4083,9 @@ class DialboxComponent {
4080
4083
  this.incomingCallsList = [];
4081
4084
  this.isCallInProgress = false;
4082
4085
  setTimeout(() => {
4086
+ var _a;
4083
4087
  console.log('244');
4084
- // this.twilioService.device?.disconnectAll();
4088
+ (_a = this.twilioService.device) === null || _a === void 0 ? void 0 : _a.disconnectAll();
4085
4089
  }, 2000);
4086
4090
  }
4087
4091
  }
@@ -5485,10 +5489,10 @@ class CallerIdDialogComponent {
5485
5489
  }
5486
5490
  }
5487
5491
  CallerIdDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CallerIdDialogComponent, deps: [{ token: i4.Router }, { token: TwilioService }, { token: i3.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
5488
- CallerIdDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CallerIdDialogComponent, selector: "lib-caller-id-dialog", ngImport: i0, template: "<div class=\"main-theme {{storedTheme}}\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title\"> Caller ID Not Set</h5>\n <button class=\"close\" (click)=\"closeModal()\">\n <span>x</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <p class=\"mb-1\"><strong>There is no caller ID set in your account</strong> <br /></p>\n <p>The receiver will not be able to identify your call or call you back</p>\n <div class=\"d-flex align-items-center justify-content-center\">\n <input type=\"checkbox\" checked (change)=\"hideMessage($event)\" [(ngModel)]=\"alertToggle\" class=\"mr-2\">\n <label for=\"\" class=\"mb-0 text-muted\">I do not want to see this message again</label>\n </div>\n <button class=\"btn btn-black-outline\" (click)=\"doNotShowAgain()\">Do not show this message again</button>\n </div>\n <div class=\"modal-footer border-top d-flex justify-content-between\">\n <button class=\"btn btn-black-outline\" (click)=\"redirectToCallingPreference()\">Click to set caller ID</button>\n \n <button class=\"btn btn-blue ms-2\" (click)=\"proceed()\">Proceed without Caller ID</button>\n </div>\n</div>", styles: ["::ng-deep .mat-dialog-container{padding:0!important;border-radius:8px;box-shadow:0 4px 10px #0003;text-align:center}::ng-deep .cus-dialog{z-index:111111!important}.btn-black-outline{border:1px solid #000000;border-radius:10px}.btn-blue{background-color:#234de8;color:#fff!important;margin-left:8px}::ng-deep .cdk-overlay-container{z-index:111111}\n"], dependencies: [{ kind: "directive", type: i6.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
5492
+ CallerIdDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CallerIdDialogComponent, selector: "lib-caller-id-dialog", ngImport: i0, template: "<div class=\"main-theme {{storedTheme}}\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\"> Caller ID Not Set</h5>\r\n <button class=\"close\" (click)=\"closeModal()\">\r\n <span>x</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <p class=\"mb-1\"><strong>There is no caller ID set in your account</strong> <br /></p>\r\n <p>The receiver will not be able to identify your call or call you back</p>\r\n <div class=\"d-flex align-items-center justify-content-center\">\r\n <input type=\"checkbox\" checked (change)=\"hideMessage($event)\" [(ngModel)]=\"alertToggle\" class=\"mr-2\">\r\n <label for=\"\" class=\"mb-0 text-muted\">I do not want to see this message again</label>\r\n </div>\r\n <button class=\"btn btn-black-outline\" (click)=\"doNotShowAgain()\">Do not show this message again</button>\r\n </div>\r\n <div class=\"modal-footer border-top d-flex justify-content-between\">\r\n <button class=\"btn btn-black-outline\" (click)=\"redirectToCallingPreference()\">Click to set caller ID</button>\r\n \r\n <button class=\"btn btn-blue ms-2\" (click)=\"proceed()\">Proceed without Caller ID</button>\r\n </div>\r\n</div>", styles: ["::ng-deep .mat-dialog-container{padding:0!important;border-radius:8px;box-shadow:0 4px 10px #0003;text-align:center}::ng-deep .cus-dialog{z-index:111111!important}.btn-black-outline{border:1px solid #000000;border-radius:10px}.btn-blue{background-color:#234de8;color:#fff!important;margin-left:8px}::ng-deep .cdk-overlay-container{z-index:111111}\n"], dependencies: [{ kind: "directive", type: i6.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
5489
5493
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CallerIdDialogComponent, decorators: [{
5490
5494
  type: Component,
5491
- args: [{ selector: 'lib-caller-id-dialog', template: "<div class=\"main-theme {{storedTheme}}\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title\"> Caller ID Not Set</h5>\n <button class=\"close\" (click)=\"closeModal()\">\n <span>x</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <p class=\"mb-1\"><strong>There is no caller ID set in your account</strong> <br /></p>\n <p>The receiver will not be able to identify your call or call you back</p>\n <div class=\"d-flex align-items-center justify-content-center\">\n <input type=\"checkbox\" checked (change)=\"hideMessage($event)\" [(ngModel)]=\"alertToggle\" class=\"mr-2\">\n <label for=\"\" class=\"mb-0 text-muted\">I do not want to see this message again</label>\n </div>\n <button class=\"btn btn-black-outline\" (click)=\"doNotShowAgain()\">Do not show this message again</button>\n </div>\n <div class=\"modal-footer border-top d-flex justify-content-between\">\n <button class=\"btn btn-black-outline\" (click)=\"redirectToCallingPreference()\">Click to set caller ID</button>\n \n <button class=\"btn btn-blue ms-2\" (click)=\"proceed()\">Proceed without Caller ID</button>\n </div>\n</div>", styles: ["::ng-deep .mat-dialog-container{padding:0!important;border-radius:8px;box-shadow:0 4px 10px #0003;text-align:center}::ng-deep .cus-dialog{z-index:111111!important}.btn-black-outline{border:1px solid #000000;border-radius:10px}.btn-blue{background-color:#234de8;color:#fff!important;margin-left:8px}::ng-deep .cdk-overlay-container{z-index:111111}\n"] }]
5495
+ args: [{ selector: 'lib-caller-id-dialog', template: "<div class=\"main-theme {{storedTheme}}\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\"> Caller ID Not Set</h5>\r\n <button class=\"close\" (click)=\"closeModal()\">\r\n <span>x</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <p class=\"mb-1\"><strong>There is no caller ID set in your account</strong> <br /></p>\r\n <p>The receiver will not be able to identify your call or call you back</p>\r\n <div class=\"d-flex align-items-center justify-content-center\">\r\n <input type=\"checkbox\" checked (change)=\"hideMessage($event)\" [(ngModel)]=\"alertToggle\" class=\"mr-2\">\r\n <label for=\"\" class=\"mb-0 text-muted\">I do not want to see this message again</label>\r\n </div>\r\n <button class=\"btn btn-black-outline\" (click)=\"doNotShowAgain()\">Do not show this message again</button>\r\n </div>\r\n <div class=\"modal-footer border-top d-flex justify-content-between\">\r\n <button class=\"btn btn-black-outline\" (click)=\"redirectToCallingPreference()\">Click to set caller ID</button>\r\n \r\n <button class=\"btn btn-blue ms-2\" (click)=\"proceed()\">Proceed without Caller ID</button>\r\n </div>\r\n</div>", styles: ["::ng-deep .mat-dialog-container{padding:0!important;border-radius:8px;box-shadow:0 4px 10px #0003;text-align:center}::ng-deep .cus-dialog{z-index:111111!important}.btn-black-outline{border:1px solid #000000;border-radius:10px}.btn-blue{background-color:#234de8;color:#fff!important;margin-left:8px}::ng-deep .cdk-overlay-container{z-index:111111}\n"] }]
5492
5496
  }], ctorParameters: function () {
5493
5497
  return [{ type: i4.Router }, { type: TwilioService }, { type: i3.MatDialogRef }, { type: undefined, decorators: [{
5494
5498
  type: Inject,