@vgroup/dialbox 0.5.1 → 0.5.3
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 +9 -7
- package/esm2020/lib/dialbox.component.mjs +63 -61
- package/fesm2015/vgroup-dialbox.mjs +70 -66
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +70 -66
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1833,7 +1833,7 @@ class CallProgressComponent {
|
|
|
1833
1833
|
if (index == -1 && !res.isLeft) {
|
|
1834
1834
|
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()) }));
|
|
1835
1835
|
if (this.showContactsPanel) {
|
|
1836
|
-
this.getAllParticipants(this.
|
|
1836
|
+
this.getAllParticipants(this.currentCall.conferenceSid);
|
|
1837
1837
|
this.applyFilter();
|
|
1838
1838
|
}
|
|
1839
1839
|
}
|
|
@@ -1869,7 +1869,7 @@ class CallProgressComponent {
|
|
|
1869
1869
|
this.currentCallList.splice(index, 1);
|
|
1870
1870
|
}
|
|
1871
1871
|
if (this.showContactsPanel) {
|
|
1872
|
-
this.getAllParticipants(this.
|
|
1872
|
+
this.getAllParticipants(this.currentCall.conferenceSid);
|
|
1873
1873
|
this.applyFilter();
|
|
1874
1874
|
}
|
|
1875
1875
|
}
|
|
@@ -2156,7 +2156,7 @@ class CallProgressComponent {
|
|
|
2156
2156
|
// this.currentCall = this.currentCallList.length > 0 ? this.currentCallList[0] : null;
|
|
2157
2157
|
this.cdr.detectChanges();
|
|
2158
2158
|
}
|
|
2159
|
-
yield this.getAllParticipants(this.
|
|
2159
|
+
yield this.getAllParticipants(this.currentCall.conferenceSid);
|
|
2160
2160
|
return false;
|
|
2161
2161
|
});
|
|
2162
2162
|
}
|
|
@@ -2434,7 +2434,7 @@ class CallProgressComponent {
|
|
|
2434
2434
|
this.isAddRemoveParticipant = false;
|
|
2435
2435
|
this.showContactsPanel = !this.showContactsPanel;
|
|
2436
2436
|
// this.GetContactsList();
|
|
2437
|
-
this.getAllParticipants(this.
|
|
2437
|
+
this.getAllParticipants(this.currentCall.conferenceSid);
|
|
2438
2438
|
this.filteredList = this.contacts;
|
|
2439
2439
|
this.filteredParticipentList = this.allParticipentList;
|
|
2440
2440
|
// }
|
|
@@ -2445,7 +2445,7 @@ class CallProgressComponent {
|
|
|
2445
2445
|
addRemoveParticipant() {
|
|
2446
2446
|
// const conferenceSId = this.addRes?.conferenceSid;
|
|
2447
2447
|
this.isAddRemoveParticipant = !this.isAddRemoveParticipant;
|
|
2448
|
-
this.allParticipentList = this.getAllParticipants(this.
|
|
2448
|
+
this.allParticipentList = this.getAllParticipants(this.currentCall.conferenceSid);
|
|
2449
2449
|
this.filteredParticipentList = this.allParticipentList;
|
|
2450
2450
|
}
|
|
2451
2451
|
add(data) {
|
|
@@ -2843,7 +2843,9 @@ class CallProgressComponent {
|
|
|
2843
2843
|
});
|
|
2844
2844
|
}
|
|
2845
2845
|
isMergeCallAllowed() {
|
|
2846
|
-
|
|
2846
|
+
let mergeCallList = this.currentCallList.filter((res) => res.conferenceId == this.currentCall.conferenceId);
|
|
2847
|
+
console.log('mergeCallList', mergeCallList);
|
|
2848
|
+
return mergeCallList.length > 1;
|
|
2847
2849
|
}
|
|
2848
2850
|
mergeCalls() {
|
|
2849
2851
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3838,7 +3840,7 @@ class DialboxComponent {
|
|
|
3838
3840
|
this.twilioService.deviceId = changes['deviceId'].currentValue;
|
|
3839
3841
|
console.log('Set deviceId in localStorage:', changes['deviceId'].currentValue);
|
|
3840
3842
|
}
|
|
3841
|
-
if (this.userId) {
|
|
3843
|
+
if (changes['userId'].currentValue && this.userId) {
|
|
3842
3844
|
this.extensionService.userId = this.userId;
|
|
3843
3845
|
}
|
|
3844
3846
|
if (changes['isDialpadHidden'] && !this.isDialpadHidden) {
|
|
@@ -3847,6 +3849,66 @@ class DialboxComponent {
|
|
|
3847
3849
|
setTimeout(() => {
|
|
3848
3850
|
this.dialInputElement.nativeElement.focus();
|
|
3849
3851
|
}, 0);
|
|
3852
|
+
if (changes['contactInfo'] && this.contactInfo) {
|
|
3853
|
+
let contact = this.contactInfo;
|
|
3854
|
+
console.log('contactInfo', contact);
|
|
3855
|
+
if (contact.number) {
|
|
3856
|
+
this.isSmartDialCall = false;
|
|
3857
|
+
this.dialedNumber = contact.number;
|
|
3858
|
+
if (contact.isDialFromHistory) {
|
|
3859
|
+
//handle dialing from history page
|
|
3860
|
+
if (contact.callerId == 'smartDialing') {
|
|
3861
|
+
this.selectedCallerId = { number: contact.from };
|
|
3862
|
+
this.isSmartDialCall = true;
|
|
3863
|
+
setTimeout(() => {
|
|
3864
|
+
this.isDialpadHidden = false;
|
|
3865
|
+
}, 2000);
|
|
3866
|
+
this.callData.phone = contact.number;
|
|
3867
|
+
this.callData.name = contact.name;
|
|
3868
|
+
this.callData.img = contact.img;
|
|
3869
|
+
this.callData.from = contact.from;
|
|
3870
|
+
this.sanitizedNum = contact.number;
|
|
3871
|
+
console.log('274', contact);
|
|
3872
|
+
this.getUserInformation(contact);
|
|
3873
|
+
console.log('454', contact);
|
|
3874
|
+
// this.incomingCallsList.push(contact)
|
|
3875
|
+
this.initiateCall();
|
|
3876
|
+
}
|
|
3877
|
+
else {
|
|
3878
|
+
this.getUserCallSetting();
|
|
3879
|
+
setTimeout(() => {
|
|
3880
|
+
this.isDialpadHidden = false;
|
|
3881
|
+
}, 1000);
|
|
3882
|
+
console.log('282', contact);
|
|
3883
|
+
this.getUserInformation(contact);
|
|
3884
|
+
console.log('464', contact);
|
|
3885
|
+
// this.incomingCallsList.push(contact)
|
|
3886
|
+
this.dialedNumber = contact.number;
|
|
3887
|
+
this.sanitizedNum = contact.number;
|
|
3888
|
+
}
|
|
3889
|
+
}
|
|
3890
|
+
else {
|
|
3891
|
+
if (contact.callerId == 'alwaysAsk' || contact.callerId == 'smartDialing') {
|
|
3892
|
+
this.getUserCallSetting();
|
|
3893
|
+
setTimeout(() => {
|
|
3894
|
+
this.isDialpadHidden = false;
|
|
3895
|
+
}, 1000);
|
|
3896
|
+
this.dialedNumber = contact.number;
|
|
3897
|
+
this.sanitizedNum = contact.number;
|
|
3898
|
+
}
|
|
3899
|
+
else {
|
|
3900
|
+
setTimeout(() => {
|
|
3901
|
+
this.isDialpadHidden = false;
|
|
3902
|
+
}, 2000);
|
|
3903
|
+
this.callData.phone = contact.number;
|
|
3904
|
+
this.callData.name = contact.name;
|
|
3905
|
+
this.callData.img = contact.img;
|
|
3906
|
+
this.sanitizedNum = contact.number;
|
|
3907
|
+
this.initiateCall();
|
|
3908
|
+
}
|
|
3909
|
+
}
|
|
3910
|
+
}
|
|
3911
|
+
}
|
|
3850
3912
|
if (this.incomingCallData) {
|
|
3851
3913
|
if (this.isCallInProgress) {
|
|
3852
3914
|
this.newIncomingCalls.push(this.incomingCallData);
|
|
@@ -3882,65 +3944,6 @@ class DialboxComponent {
|
|
|
3882
3944
|
});
|
|
3883
3945
|
}
|
|
3884
3946
|
}
|
|
3885
|
-
if (changes['contactInfo'] && this.contactInfo) {
|
|
3886
|
-
let contact = this.contactInfo;
|
|
3887
|
-
if (contact.number) {
|
|
3888
|
-
this.isSmartDialCall = false;
|
|
3889
|
-
this.dialedNumber = contact.number;
|
|
3890
|
-
if (contact.isDialFromHistory) {
|
|
3891
|
-
//handle dialing from history page
|
|
3892
|
-
if (contact.callerId == 'smartDialing') {
|
|
3893
|
-
this.selectedCallerId = { number: contact.from };
|
|
3894
|
-
this.isSmartDialCall = true;
|
|
3895
|
-
setTimeout(() => {
|
|
3896
|
-
this.isDialpadHidden = false;
|
|
3897
|
-
}, 2000);
|
|
3898
|
-
this.callData.phone = contact.number;
|
|
3899
|
-
this.callData.name = contact.name;
|
|
3900
|
-
this.callData.img = contact.img;
|
|
3901
|
-
this.callData.from = contact.from;
|
|
3902
|
-
this.sanitizedNum = contact.number;
|
|
3903
|
-
console.log('274', contact);
|
|
3904
|
-
this.getUserInformation(contact);
|
|
3905
|
-
console.log('454', contact);
|
|
3906
|
-
// this.incomingCallsList.push(contact)
|
|
3907
|
-
this.initiateCall();
|
|
3908
|
-
}
|
|
3909
|
-
else {
|
|
3910
|
-
this.getUserCallSetting();
|
|
3911
|
-
setTimeout(() => {
|
|
3912
|
-
this.isDialpadHidden = false;
|
|
3913
|
-
}, 1000);
|
|
3914
|
-
console.log('282', contact);
|
|
3915
|
-
this.getUserInformation(contact);
|
|
3916
|
-
console.log('464', contact);
|
|
3917
|
-
// this.incomingCallsList.push(contact)
|
|
3918
|
-
this.dialedNumber = contact.number;
|
|
3919
|
-
this.sanitizedNum = contact.number;
|
|
3920
|
-
}
|
|
3921
|
-
}
|
|
3922
|
-
else {
|
|
3923
|
-
if (contact.callerId == 'alwaysAsk' || contact.callerId == 'smartDialing') {
|
|
3924
|
-
this.getUserCallSetting();
|
|
3925
|
-
setTimeout(() => {
|
|
3926
|
-
this.isDialpadHidden = false;
|
|
3927
|
-
}, 1000);
|
|
3928
|
-
this.dialedNumber = contact.number;
|
|
3929
|
-
this.sanitizedNum = contact.number;
|
|
3930
|
-
}
|
|
3931
|
-
else {
|
|
3932
|
-
setTimeout(() => {
|
|
3933
|
-
this.isDialpadHidden = false;
|
|
3934
|
-
}, 2000);
|
|
3935
|
-
this.callData.phone = contact.number;
|
|
3936
|
-
this.callData.name = contact.name;
|
|
3937
|
-
this.callData.img = contact.img;
|
|
3938
|
-
this.sanitizedNum = contact.number;
|
|
3939
|
-
this.initiateCall();
|
|
3940
|
-
}
|
|
3941
|
-
}
|
|
3942
|
-
}
|
|
3943
|
-
}
|
|
3944
3947
|
}
|
|
3945
3948
|
registerDragElement() {
|
|
3946
3949
|
try {
|
|
@@ -4017,6 +4020,7 @@ class DialboxComponent {
|
|
|
4017
4020
|
this.notificationCallList.push(incomingCall);
|
|
4018
4021
|
if ((_f = this.incomingCallnotification.data.data) === null || _f === void 0 ? void 0 : _f.participantId) {
|
|
4019
4022
|
this.isCallInProgress = true;
|
|
4023
|
+
this.isDialpadHidden = false;
|
|
4020
4024
|
}
|
|
4021
4025
|
}
|
|
4022
4026
|
addNumber(num) {
|