@vgroup/dialbox 0.0.13 → 0.0.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.
- package/esm2020/lib/dialbox.component.mjs +11 -26
- package/esm2020/lib/dialbox.module.mjs +8 -7
- package/fesm2015/vgroup-dialbox.mjs +17 -23
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +17 -29
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/dialbox.module.d.ts +1 -1
- package/package.json +3 -2
|
@@ -10,7 +10,7 @@ import { catchError, switchMap, map } from 'rxjs/operators';
|
|
|
10
10
|
import * as i3$2 from '@angular/material/dialog';
|
|
11
11
|
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
12
12
|
import * as i5 from '@angular/router';
|
|
13
|
-
import { RouterLink } from '@angular/router';
|
|
13
|
+
import { RouterLink, RouterModule } from '@angular/router';
|
|
14
14
|
import * as i3 from '@angular/common';
|
|
15
15
|
import { CommonModule } from '@angular/common';
|
|
16
16
|
import * as i3$1 from '@angular/forms';
|
|
@@ -2159,25 +2159,16 @@ class DialboxComponent {
|
|
|
2159
2159
|
}
|
|
2160
2160
|
}
|
|
2161
2161
|
});
|
|
2162
|
-
//
|
|
2163
|
-
const sub2 = this.twilioService.currentCall.subscribe(
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
const callSid = incomingCallData.parameters.CallSid;
|
|
2173
|
-
const existingCall = this.incomingCallsList.find((call) => call.parameters.CallSid === callSid);
|
|
2174
|
-
if (!existingCall) {
|
|
2175
|
-
this.incomingCallsList.push(incomingCallData);
|
|
2176
|
-
this.incomingCallsNewInfoEvent.emit(this.incomingCallsList);
|
|
2177
|
-
}
|
|
2178
|
-
// Notify parent component about the incoming call
|
|
2179
|
-
this.incomingCallInitiated.emit();
|
|
2180
|
-
}
|
|
2162
|
+
// handle incoming call
|
|
2163
|
+
const sub2 = this.twilioService.currentCall.subscribe(incomingCallData => {
|
|
2164
|
+
// if (incomingCallData) {
|
|
2165
|
+
// this.isCallInProgress = true;
|
|
2166
|
+
// this.isDialpadHidden = false;
|
|
2167
|
+
// this.callData.phone = incomingCallData.parameters.From;
|
|
2168
|
+
// this.callData.name = incomingCallData.customParameters.get('name');
|
|
2169
|
+
// this.callData.img = incomingCallData.customParameters.get('image');
|
|
2170
|
+
// this.callData.isIncomingCall = true;
|
|
2171
|
+
// }
|
|
2181
2172
|
if (incomingCallData) {
|
|
2182
2173
|
if (this.isCallInProgress) {
|
|
2183
2174
|
this.newIncomingCalls.push(incomingCallData);
|
|
@@ -3079,14 +3070,16 @@ DialboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
3079
3070
|
FormsModule,
|
|
3080
3071
|
ReactiveFormsModule,
|
|
3081
3072
|
HttpClientModule,
|
|
3082
|
-
RouterLink
|
|
3073
|
+
RouterLink,
|
|
3074
|
+
RouterModule], exports: [DialboxComponent,
|
|
3083
3075
|
CallProgressComponent,
|
|
3084
3076
|
CallerIdDialogComponent,
|
|
3085
3077
|
IncomingCallComponent] });
|
|
3086
3078
|
DialboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialboxModule, imports: [CommonModule,
|
|
3087
3079
|
FormsModule,
|
|
3088
3080
|
ReactiveFormsModule,
|
|
3089
|
-
HttpClientModule
|
|
3081
|
+
HttpClientModule,
|
|
3082
|
+
RouterModule] });
|
|
3090
3083
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DialboxModule, decorators: [{
|
|
3091
3084
|
type: NgModule,
|
|
3092
3085
|
args: [{
|
|
@@ -3101,7 +3094,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3101
3094
|
FormsModule,
|
|
3102
3095
|
ReactiveFormsModule,
|
|
3103
3096
|
HttpClientModule,
|
|
3104
|
-
RouterLink
|
|
3097
|
+
RouterLink,
|
|
3098
|
+
RouterModule
|
|
3105
3099
|
],
|
|
3106
3100
|
exports: [
|
|
3107
3101
|
DialboxComponent,
|