@vgroup/dialbox 0.5.38 → 0.5.40
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 +5 -4
- package/esm2020/lib/dialbox.component.mjs +2 -2
- package/fesm2015/vgroup-dialbox.mjs +8 -7
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +5 -4
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1827,10 +1827,11 @@ class CallProgressComponent {
|
|
|
1827
1827
|
this.conferenceId = i == 0 ? this.newIncomingCallsList[i].conferenceId : this.conferenceId;
|
|
1828
1828
|
this.newIncomingCallsList[i].participants.forEach((res) => __awaiter(this, void 0, void 0, function* () {
|
|
1829
1829
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1830
|
+
let contact = this.contacts.find((resData) => { var _a; return ((_a = resData === null || resData === void 0 ? void 0 : resData.numbersList[0]) === null || _a === void 0 ? void 0 : _a.number) == (res.direction == "incoming-call" ? res === null || res === void 0 ? void 0 : res.from : res === null || res === void 0 ? void 0 : res.to); });
|
|
1830
1831
|
if (this.currentCallList.length > 0) {
|
|
1831
1832
|
let index = this.currentCallList.findIndex((item) => item.id == res.id);
|
|
1832
1833
|
if (index == -1 && !res.isLeft) {
|
|
1833
|
-
this.currentCallList.push(Object.assign(Object.assign({}, res), { img: 'assets/images/user.jpg', isIncomingCall: res.direction == "incoming-call", isHold: res.isHold, isMute: false, isConference: res.isConference, isAcceptCall: res.direction == "incoming-call" ? this.getStatus(res) : true, dial: true, phone: res.direction == "incoming-call" ? res === null || res === void 0 ? void 0 : res.from : res === null || res === void 0 ? void 0 : res.to, participantId: res.id, conferenceSid: callInfo.conferenceSid, name: res.name || (res === null || res === void 0 ? void 0 : res.fromName) || (res === null || res === void 0 ? void 0 : res.toName), time: this.getTimeDifference(res.joinedAt || new Date().toUTCString()) }));
|
|
1834
|
+
this.currentCallList.push(Object.assign(Object.assign({}, res), { img: (res === null || res === void 0 ? void 0 : res.image) || (contact === null || contact === void 0 ? void 0 : contact.image) || 'assets/images/user.jpg', isIncomingCall: res.direction == "incoming-call", isHold: res.isHold, isMute: false, isConference: res.isConference, isAcceptCall: res.direction == "incoming-call" ? this.getStatus(res) : true, dial: true, phone: res.direction == "incoming-call" ? res === null || res === void 0 ? void 0 : res.from : res === null || res === void 0 ? void 0 : res.to, participantId: res.id, conferenceSid: callInfo.conferenceSid, name: res.name || (res === null || res === void 0 ? void 0 : res.fromName) || (res === null || res === void 0 ? void 0 : res.toName), time: this.getTimeDifference(res.joinedAt || new Date().toUTCString()) }));
|
|
1834
1835
|
if (this.showContactsPanel) {
|
|
1835
1836
|
this.getAllParticipants(this.currentCall.conferenceSid);
|
|
1836
1837
|
this.applyFilter();
|
|
@@ -1872,11 +1873,11 @@ class CallProgressComponent {
|
|
|
1872
1873
|
}
|
|
1873
1874
|
}
|
|
1874
1875
|
else if (index != -1) {
|
|
1875
|
-
this.currentCallList[index] = Object.assign(Object.assign({}, res), { img: 'assets/images/user.jpg', isIncomingCall: res.direction == "incoming-call", isHold: res.isHold, isMute: false, isConference: res.isConference, isAcceptCall: res.direction == "incoming-call" ? this.getStatus(res) : true, dial: true, phone: res.direction == "incoming-call" ? res === null || res === void 0 ? void 0 : res.from : res === null || res === void 0 ? void 0 : res.to, participantId: res.id, conferenceSid: callInfo.conferenceSid, name: res.name || (res === null || res === void 0 ? void 0 : res.fromName) || (res === null || res === void 0 ? void 0 : res.toName), time: this.getTimeDifference(res.joinedAt || new Date().toUTCString()) });
|
|
1876
|
+
this.currentCallList[index] = Object.assign(Object.assign({}, res), { img: (res === null || res === void 0 ? void 0 : res.image) || (contact === null || contact === void 0 ? void 0 : contact.image) || 'assets/images/user.jpg', isIncomingCall: res.direction == "incoming-call", isHold: res.isHold, isMute: false, isConference: res.isConference, isAcceptCall: res.direction == "incoming-call" ? this.getStatus(res) : true, dial: true, phone: res.direction == "incoming-call" ? res === null || res === void 0 ? void 0 : res.from : res === null || res === void 0 ? void 0 : res.to, participantId: res.id, conferenceSid: callInfo.conferenceSid, name: res.name || (res === null || res === void 0 ? void 0 : res.fromName) || (res === null || res === void 0 ? void 0 : res.toName), time: this.getTimeDifference(res.joinedAt || new Date().toUTCString()) });
|
|
1876
1877
|
}
|
|
1877
1878
|
}
|
|
1878
1879
|
else if (!res.isLeft) {
|
|
1879
|
-
this.currentCallList.push(Object.assign(Object.assign({}, res), { img: 'assets/images/user.jpg', isIncomingCall: res.direction == "incoming-call", isHold: res.isHold, isMute: false, isConference: res.isConference, isAcceptCall: res.direction == "incoming-call" ? this.getStatus(res) : true, dial: true, phone: res.direction == "incoming-call" ? res === null || res === void 0 ? void 0 : res.from : res === null || res === void 0 ? void 0 : res.to, participantId: res.id, conferenceSid: callInfo.conferenceSid, name: res.name || (res === null || res === void 0 ? void 0 : res.fromName) || (res === null || res === void 0 ? void 0 : res.toName), time: this.getTimeDifference(res.joinedAt || new Date().toUTCString()) }));
|
|
1880
|
+
this.currentCallList.push(Object.assign(Object.assign({}, res), { img: (res === null || res === void 0 ? void 0 : res.image) || (contact === null || contact === void 0 ? void 0 : contact.image) || 'assets/images/user.jpg', isIncomingCall: res.direction == "incoming-call", isHold: res.isHold, isMute: false, isConference: res.isConference, isAcceptCall: res.direction == "incoming-call" ? this.getStatus(res) : true, dial: true, phone: res.direction == "incoming-call" ? res === null || res === void 0 ? void 0 : res.from : res === null || res === void 0 ? void 0 : res.to, participantId: res.id, conferenceSid: callInfo.conferenceSid, name: res.name || (res === null || res === void 0 ? void 0 : res.fromName) || (res === null || res === void 0 ? void 0 : res.toName), time: this.getTimeDifference(res.joinedAt || new Date().toUTCString()) }));
|
|
1880
1881
|
this.timer = '00:00';
|
|
1881
1882
|
this.startTimer();
|
|
1882
1883
|
}
|
|
@@ -3965,15 +3966,15 @@ class DialboxComponent {
|
|
|
3965
3966
|
}
|
|
3966
3967
|
}
|
|
3967
3968
|
incomingCallNotification(callerInfo) {
|
|
3968
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3969
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3969
3970
|
let incomingCall = {
|
|
3970
3971
|
conferenceId: 'no',
|
|
3971
3972
|
isActive: true,
|
|
3972
3973
|
isIncomingCall: true,
|
|
3973
3974
|
participantId: (_a = this.incomingCallnotification.data.data) === null || _a === void 0 ? void 0 : _a.participantId,
|
|
3974
3975
|
participants: [
|
|
3975
|
-
{ direction: "incoming-call", img: 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: (
|
|
3976
|
-
from: (
|
|
3976
|
+
{ direction: "incoming-call", img: ((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.image) || 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: (_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.fromNumber, to: (_d = this.incomingCallnotification.data.data) === null || _d === void 0 ? void 0 : _d.toNumber,
|
|
3977
|
+
from: (_e = this.incomingCallnotification.data.data) === null || _e === void 0 ? void 0 : _e.fromNumber, fromName: (_f = this.incomingCallnotification.data.data) === null || _f === void 0 ? void 0 : _f.fromName, participantId: (_g = this.incomingCallnotification.data.data) === null || _g === void 0 ? void 0 : _g.participantId, name: (_h = this.incomingCallnotification.data.data) === null || _h === void 0 ? void 0 : _h.fromName, time: '', id: (_j = this.incomingCallnotification.data.data) === null || _j === void 0 ? void 0 : _j.participantId }
|
|
3977
3978
|
],
|
|
3978
3979
|
};
|
|
3979
3980
|
if (callerInfo) {
|
|
@@ -3996,7 +3997,7 @@ class DialboxComponent {
|
|
|
3996
3997
|
this.notificationCallList = this.notificationCallList.filter((res) => (res === null || res === void 0 ? void 0 : res.endTime) >= now);
|
|
3997
3998
|
this.incomingCallsList = [...this.incomingCallsList, ...this.notificationCallList];
|
|
3998
3999
|
this.cdk.detectChanges();
|
|
3999
|
-
if ((
|
|
4000
|
+
if ((_k = this.incomingCallnotification.data.data) === null || _k === void 0 ? void 0 : _k.participantId) {
|
|
4000
4001
|
this.isCallInProgress = true;
|
|
4001
4002
|
this.cdk.detectChanges();
|
|
4002
4003
|
this.isDialpadHidden = false;
|