@vgroup/dialbox 0.2.73 → 0.2.76
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.
- package/esm2020/lib/components/call-progress/call-progress.component.mjs +21 -9
- package/esm2020/lib/dialbox.component.mjs +2 -2
- package/fesm2015/vgroup-dialbox.mjs +22 -10
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +21 -9
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2028,14 +2028,15 @@ class CallProgressComponent {
|
|
|
2028
2028
|
}
|
|
2029
2029
|
}
|
|
2030
2030
|
ngOnChanges(changes) {
|
|
2031
|
-
var _a;
|
|
2031
|
+
var _a, _b, _c;
|
|
2032
2032
|
console.log('Call Progress Component ngOnChanges');
|
|
2033
2033
|
if (changes['callData']) {
|
|
2034
2034
|
if ((_a = changes['callData'].currentValue) === null || _a === void 0 ? void 0 : _a.isIncomingCall) {
|
|
2035
2035
|
this.incomingCallDiv = true;
|
|
2036
2036
|
this.cdr.detectChanges();
|
|
2037
2037
|
}
|
|
2038
|
-
else {
|
|
2038
|
+
else if (((_b = changes['callData'].currentValue) === null || _b === void 0 ? void 0 : _b.displayNum) || ((_c = changes['callData'].currentValue) === null || _c === void 0 ? void 0 : _c.from)) {
|
|
2039
|
+
console.log('test-startCall123');
|
|
2039
2040
|
this.startCall(changes['callData'].currentValue);
|
|
2040
2041
|
}
|
|
2041
2042
|
}
|
|
@@ -2222,6 +2223,7 @@ class CallProgressComponent {
|
|
|
2222
2223
|
this.stopTimer();
|
|
2223
2224
|
});
|
|
2224
2225
|
(_c = this.call) === null || _c === void 0 ? void 0 : _c.on('disconnect', (item) => {
|
|
2226
|
+
console.log('test-disconnect');
|
|
2225
2227
|
// this.endCall();
|
|
2226
2228
|
});
|
|
2227
2229
|
(_d = this.call) === null || _d === void 0 ? void 0 : _d.on('ringing', () => {
|
|
@@ -2319,13 +2321,18 @@ class CallProgressComponent {
|
|
|
2319
2321
|
console.log('Held call exists:', !!this.heldCall);
|
|
2320
2322
|
// Leaving conference state when ending current call action
|
|
2321
2323
|
this.isConference = false;
|
|
2322
|
-
if (this.call) {
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2324
|
+
// if (this.call) {
|
|
2325
|
+
// this.call.disconnect();
|
|
2326
|
+
// this.call.reject();
|
|
2327
|
+
// this.call = undefined;
|
|
2328
|
+
// }
|
|
2326
2329
|
this.showRingAnimation = false;
|
|
2327
2330
|
this.stopTimer();
|
|
2328
2331
|
if (this.heldCall) {
|
|
2332
|
+
if (this.call) {
|
|
2333
|
+
this.call.disconnect();
|
|
2334
|
+
this.call = undefined;
|
|
2335
|
+
}
|
|
2329
2336
|
console.log('Resuming held call:', this.heldCall.parameters['From']);
|
|
2330
2337
|
// Promote held call
|
|
2331
2338
|
this.call = this.heldCall;
|
|
@@ -2353,6 +2360,10 @@ class CallProgressComponent {
|
|
|
2353
2360
|
console.log('No held call, ending completely');
|
|
2354
2361
|
console.log('test6');
|
|
2355
2362
|
this.endCallEvent.emit();
|
|
2363
|
+
if (this.call) {
|
|
2364
|
+
this.call.disconnect();
|
|
2365
|
+
// this.call = undefined;
|
|
2366
|
+
}
|
|
2356
2367
|
this.maximiseDialpad();
|
|
2357
2368
|
}
|
|
2358
2369
|
}
|
|
@@ -2397,9 +2408,9 @@ class CallProgressComponent {
|
|
|
2397
2408
|
hold: true
|
|
2398
2409
|
});
|
|
2399
2410
|
// Put current call on hold
|
|
2400
|
-
this.heldCall = this.call;
|
|
2401
|
-
this.isCallOnHold = true;
|
|
2402
|
-
this.heldCall.mute(true);
|
|
2411
|
+
// this.heldCall = this.call;
|
|
2412
|
+
// this.isCallOnHold = true;
|
|
2413
|
+
// this.heldCall.mute(true);
|
|
2403
2414
|
// Close contacts panel and show ring animation
|
|
2404
2415
|
this.showContactsPanel = false;
|
|
2405
2416
|
this.showRingAnimation = true;
|
|
@@ -2426,6 +2437,7 @@ class CallProgressComponent {
|
|
|
2426
2437
|
});
|
|
2427
2438
|
console.log("Participant added to conference:", phoneNumber);
|
|
2428
2439
|
this.showRingAnimation = false;
|
|
2440
|
+
this.isConference = true;
|
|
2429
2441
|
}
|
|
2430
2442
|
catch (error) {
|
|
2431
2443
|
console.error('Error adding participant:', error);
|
|
@@ -3404,7 +3416,7 @@ class DialboxComponent {
|
|
|
3404
3416
|
try {
|
|
3405
3417
|
console.log('Ending call');
|
|
3406
3418
|
console.log('dd8');
|
|
3407
|
-
|
|
3419
|
+
this.isCallInProgress = false;
|
|
3408
3420
|
this.filteredContactList = [];
|
|
3409
3421
|
// Reset call data
|
|
3410
3422
|
this.callData = {
|