@vgroup/dialbox 0.4.123 → 0.4.125
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 +8 -14
- package/esm2020/lib/dialbox.component.mjs +2 -2
- package/fesm2015/vgroup-dialbox.mjs +11 -17
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +8 -14
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1929,10 +1929,10 @@ class CallProgressComponent {
|
|
|
1929
1929
|
if (((_l = changes['conferenceCallInfo']) === null || _l === void 0 ? void 0 : _l.currentValue) && this.conferenceCallInfo && ((_o = (_m = changes['conferenceCallInfo']) === null || _m === void 0 ? void 0 : _m.previousValue) === null || _o === void 0 ? void 0 : _o.conferenceSid) != ((_q = (_p = changes['conferenceCallInfo']) === null || _p === void 0 ? void 0 : _p.currentValue) === null || _q === void 0 ? void 0 : _q.conferenceSid)) {
|
|
1930
1930
|
this.isConference = true;
|
|
1931
1931
|
console.log(this.conferenceCallInfo, '222222222222222');
|
|
1932
|
-
this.conferenceCallInfo.participants.forEach((item, index) => {
|
|
1933
|
-
var
|
|
1932
|
+
this.conferenceCallInfo.participants.forEach((item, index) => __awaiter(this, void 0, void 0, function* () {
|
|
1933
|
+
var _0;
|
|
1934
1934
|
let callInfo = {
|
|
1935
|
-
from: (
|
|
1935
|
+
from: (_0 = this.selectedCallerId) === null || _0 === void 0 ? void 0 : _0.number,
|
|
1936
1936
|
phone: item.direction == "outgoing-call" ? item.to : item.from,
|
|
1937
1937
|
img: '',
|
|
1938
1938
|
name: item.direction == "outgoing-call" ? (item.toName || item.to) : (item.fromName || item.from),
|
|
@@ -1941,13 +1941,14 @@ class CallProgressComponent {
|
|
|
1941
1941
|
status: ''
|
|
1942
1942
|
};
|
|
1943
1943
|
console.log(callInfo, 'callInfo33333333333');
|
|
1944
|
+
this.currentCallList.push(callInfo);
|
|
1944
1945
|
if (index == 0) {
|
|
1945
|
-
this.startCall(callInfo);
|
|
1946
|
+
yield this.startCall(callInfo);
|
|
1946
1947
|
}
|
|
1947
1948
|
else {
|
|
1948
|
-
this.callContact(callInfo);
|
|
1949
|
+
yield this.callContact(callInfo);
|
|
1949
1950
|
}
|
|
1950
|
-
});
|
|
1951
|
+
}));
|
|
1951
1952
|
}
|
|
1952
1953
|
}
|
|
1953
1954
|
getStatus(res) {
|
|
@@ -2072,16 +2073,6 @@ class CallProgressComponent {
|
|
|
2072
2073
|
participantNumber: callData === null || callData === void 0 ? void 0 : callData.phone,
|
|
2073
2074
|
conferenceId: this.conferenceId
|
|
2074
2075
|
});
|
|
2075
|
-
// this.callData = { ...callData, participantId: this.addRes?.participantId, isHold: false, isLeft: false, isIncomingCall: false, isConference: false, isAcceptCall: true };
|
|
2076
|
-
// this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
2077
|
-
console.log('test111111');
|
|
2078
|
-
// this.currentCall = {...this.callData, img: callData.img ||'assets/images/user.jpg'};
|
|
2079
|
-
// Initialize isAcceptCall based on current call state to ensure UI renders if already connected
|
|
2080
|
-
// this.currentCallList.push({
|
|
2081
|
-
// ...this.callData,
|
|
2082
|
-
// img: callData.img || 'assets/images/user.jpg',
|
|
2083
|
-
// isAcceptCall: true
|
|
2084
|
-
// });
|
|
2085
2076
|
console.log('Initial participantId:', (_b = this.addRes) === null || _b === void 0 ? void 0 : _b.participantId);
|
|
2086
2077
|
}
|
|
2087
2078
|
catch (e) {
|
|
@@ -2095,12 +2086,14 @@ class CallProgressComponent {
|
|
|
2095
2086
|
console.log('test2');
|
|
2096
2087
|
this.endCall();
|
|
2097
2088
|
}
|
|
2089
|
+
return true;
|
|
2098
2090
|
}
|
|
2099
2091
|
catch (error) {
|
|
2100
2092
|
this.showRingAnimation = false;
|
|
2101
2093
|
this.handleError(error);
|
|
2102
2094
|
console.log('test3');
|
|
2103
2095
|
this.endCall();
|
|
2096
|
+
return false;
|
|
2104
2097
|
}
|
|
2105
2098
|
});
|
|
2106
2099
|
}
|
|
@@ -2523,6 +2516,7 @@ class CallProgressComponent {
|
|
|
2523
2516
|
// this.currentCallList.push({...this.callData});
|
|
2524
2517
|
console.log("Participant added to conference:", phoneNumber);
|
|
2525
2518
|
this.showRingAnimation = false;
|
|
2519
|
+
return true;
|
|
2526
2520
|
}
|
|
2527
2521
|
else {
|
|
2528
2522
|
this.currentCallList.forEach((c) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3314,7 +3308,7 @@ class DialboxComponent {
|
|
|
3314
3308
|
"toName": "Test ",
|
|
3315
3309
|
"fromName": "Test ",
|
|
3316
3310
|
"from": "+12252519886",
|
|
3317
|
-
"to": "+
|
|
3311
|
+
"to": "+916354564733",
|
|
3318
3312
|
"status": "completed",
|
|
3319
3313
|
"direction": "outgoing-call"
|
|
3320
3314
|
},
|