@vgroup/dialbox 0.0.5 → 0.0.6
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 +433 -0
- package/esm2020/lib/components/call-progress/incoming-call/incoming-call.component.mjs +191 -0
- package/esm2020/lib/components/caller-id-dialog/caller-id-dialog.component.mjs +52 -0
- package/esm2020/lib/dialbox.module.mjs +18 -3
- package/esm2020/lib/shared/global-constant.mjs +6 -0
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/vgroup-dialbox.mjs +699 -6
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +682 -6
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +79 -0
- package/lib/components/call-progress/incoming-call/incoming-call.component.d.ts +41 -0
- package/lib/components/caller-id-dialog/caller-id-dialog.component.d.ts +24 -0
- package/lib/dialbox.module.d.ts +8 -5
- package/lib/shared/global-constant.d.ts +5 -0
- package/package.json +3 -2
- package/public-api.d.ts +3 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Call, Device } from '@twilio/voice-sdk';
|
|
3
|
+
import { ExtensionService } from '../../service/extension.service';
|
|
4
|
+
import { Subscription } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CallProgressComponent implements OnInit, OnChanges, AfterViewInit {
|
|
7
|
+
private extensionService;
|
|
8
|
+
private cdr;
|
|
9
|
+
callData: any;
|
|
10
|
+
newIncomingCallData?: Call;
|
|
11
|
+
newIncomingCallsList?: Call;
|
|
12
|
+
endCallEvent: EventEmitter<void>;
|
|
13
|
+
incomingCallsNewInfo: EventEmitter<any>;
|
|
14
|
+
minimiseEvent: EventEmitter<boolean>;
|
|
15
|
+
device?: Device;
|
|
16
|
+
call?: Call;
|
|
17
|
+
showRingAnimation: boolean;
|
|
18
|
+
timer: string;
|
|
19
|
+
intervalId: any;
|
|
20
|
+
showKeypad: boolean;
|
|
21
|
+
keypadVal: any[];
|
|
22
|
+
callInput: string;
|
|
23
|
+
isMute: boolean;
|
|
24
|
+
disbaleEndCallBtn: boolean;
|
|
25
|
+
showClearBtn: boolean;
|
|
26
|
+
isCollops: boolean;
|
|
27
|
+
incomingCallDiv: boolean;
|
|
28
|
+
incomingCallInitiated: EventEmitter<void>;
|
|
29
|
+
callSid: any;
|
|
30
|
+
isRecording: boolean;
|
|
31
|
+
isPaused: boolean;
|
|
32
|
+
timerSubscription?: Subscription;
|
|
33
|
+
timeElapsed: number;
|
|
34
|
+
recordCall: boolean;
|
|
35
|
+
incomingCallSid: any;
|
|
36
|
+
callStatus: string;
|
|
37
|
+
incomingRecordCall: any;
|
|
38
|
+
selectedIncomingCall: any;
|
|
39
|
+
constructor(extensionService: ExtensionService, cdr: ChangeDetectorRef);
|
|
40
|
+
ngOnInit(): void;
|
|
41
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
42
|
+
ngAfterViewInit(): void;
|
|
43
|
+
startCall(callData: any): Promise<void>;
|
|
44
|
+
private initiateCall;
|
|
45
|
+
private getCallAuthId;
|
|
46
|
+
private getOutgoingCallToken;
|
|
47
|
+
private connectToDevice;
|
|
48
|
+
private setupEventListeners;
|
|
49
|
+
private startTimer;
|
|
50
|
+
private stopTimer;
|
|
51
|
+
private formatTime;
|
|
52
|
+
private pad;
|
|
53
|
+
private handleError;
|
|
54
|
+
endCall(): void;
|
|
55
|
+
toggleMute(): void;
|
|
56
|
+
toggleKeypad(): void;
|
|
57
|
+
onCallInputs(num: any): void;
|
|
58
|
+
onCallInputEnter(ev: any): void;
|
|
59
|
+
closeIncomingCall(data: any): void;
|
|
60
|
+
clearInputs(): void;
|
|
61
|
+
isMinimised: boolean;
|
|
62
|
+
minimiseDialpad(): void;
|
|
63
|
+
maximiseDialpad(): void;
|
|
64
|
+
toggleRecording(): void;
|
|
65
|
+
startRecording(): void;
|
|
66
|
+
stopRecording(): void;
|
|
67
|
+
pauseRecording(): void;
|
|
68
|
+
resumeRecording(): void;
|
|
69
|
+
startTimer1(): void;
|
|
70
|
+
stopRecordingTimer(): void;
|
|
71
|
+
getFormattedTime(): string;
|
|
72
|
+
pollCallStatus(callAuthId: string): void;
|
|
73
|
+
getUserInformation(id: any): void;
|
|
74
|
+
incomingCallsNewList(data: any): void;
|
|
75
|
+
selectedIncomingCallInfo(data: any): void;
|
|
76
|
+
ngOnDestroy(): void;
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CallProgressComponent, never>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CallProgressComponent, "lib-call-progress", never, { "callData": "callData"; "newIncomingCallData": "newIncomingCallData"; "newIncomingCallsList": "newIncomingCallsList"; }, { "endCallEvent": "endCallEvent"; "incomingCallsNewInfo": "incomingCallsNewInfo"; "minimiseEvent": "minimiseEvent"; "incomingCallInitiated": "incomingCallInitiated"; }, never, never, false, never>;
|
|
79
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Call } from '@twilio/voice-sdk';
|
|
3
|
+
import { ExtensionService } from '../../../service/extension.service';
|
|
4
|
+
import { TwilioService } from '../../../service/twilio.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class IncomingCallComponent implements OnInit {
|
|
7
|
+
private extensionService;
|
|
8
|
+
private twilioService;
|
|
9
|
+
incomingCallData: any;
|
|
10
|
+
newIncomingCallsList: any;
|
|
11
|
+
showRingAnimation: boolean;
|
|
12
|
+
selectedIncomingCall: any;
|
|
13
|
+
twilioCallData?: Call;
|
|
14
|
+
twilioAuthId: string;
|
|
15
|
+
dedicatedNum: string;
|
|
16
|
+
CallSid: any;
|
|
17
|
+
recordCall: boolean;
|
|
18
|
+
shouldRecordCall: boolean;
|
|
19
|
+
isClickExpand: boolean;
|
|
20
|
+
disbaleEndCallBtn: boolean;
|
|
21
|
+
closeIncomingCallDiv: EventEmitter<{
|
|
22
|
+
show: number;
|
|
23
|
+
call: any;
|
|
24
|
+
}>;
|
|
25
|
+
incomingCallsNewList: EventEmitter<any>;
|
|
26
|
+
selectedIncomingCallInfo: EventEmitter<any>;
|
|
27
|
+
isMute: boolean;
|
|
28
|
+
constructor(extensionService: ExtensionService, twilioService: TwilioService);
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
acceptCallFromList(data?: any): void;
|
|
31
|
+
rejectCallFromList(data?: any): void;
|
|
32
|
+
closeIncomingCallWrapper(val: any): void;
|
|
33
|
+
toggleMute(data?: any): void;
|
|
34
|
+
sendIPforIncomingCall(recordId: any, callstatus: any): Promise<void>;
|
|
35
|
+
onUserInfoByCallSid(): boolean;
|
|
36
|
+
onClickExpand(data?: any): void;
|
|
37
|
+
getUserInformation(incomingCallData: any): void;
|
|
38
|
+
fromEntries(entries: [string, any][]): Record<string, any>;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IncomingCallComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IncomingCallComponent, "lib-incoming-call", never, { "incomingCallData": "incomingCallData"; "newIncomingCallsList": "newIncomingCallsList"; }, { "closeIncomingCallDiv": "closeIncomingCallDiv"; "incomingCallsNewList": "incomingCallsNewList"; "selectedIncomingCallInfo": "selectedIncomingCallInfo"; }, never, never, false, never>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { TwilioService } from '../../service/twilio.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CallerIdDialogComponent implements OnInit {
|
|
7
|
+
private router;
|
|
8
|
+
private twilServ;
|
|
9
|
+
dialogRef: MatDialogRef<CallerIdDialogComponent>;
|
|
10
|
+
data: any;
|
|
11
|
+
storedTheme: string;
|
|
12
|
+
alertToggle: boolean;
|
|
13
|
+
constructor(router: Router, twilServ: TwilioService, dialogRef: MatDialogRef<CallerIdDialogComponent>, data: any);
|
|
14
|
+
token: string;
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
onConfirm(): void;
|
|
17
|
+
onCancel(): void;
|
|
18
|
+
redirectToCallingPreference(): void;
|
|
19
|
+
proceed(): void;
|
|
20
|
+
closeModal(): void;
|
|
21
|
+
hideMessage(ev: any): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CallerIdDialogComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CallerIdDialogComponent, "lib-caller-id-dialog", never, {}, {}, never, never, false, never>;
|
|
24
|
+
}
|
package/lib/dialbox.module.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./dialbox.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "@angular/
|
|
3
|
+
import * as i2 from "./components/call-progress/call-progress.component";
|
|
4
|
+
import * as i3 from "./components/caller-id-dialog/caller-id-dialog.component";
|
|
5
|
+
import * as i4 from "./components/call-progress/incoming-call/incoming-call.component";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
|
+
import * as i6 from "@angular/forms";
|
|
8
|
+
import * as i7 from "@angular/common/http";
|
|
9
|
+
import * as i8 from "@angular/router";
|
|
7
10
|
export declare class DialboxModule {
|
|
8
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialboxModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DialboxModule, [typeof i1.DialboxComponent], [typeof
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DialboxModule, [typeof i1.DialboxComponent, typeof i2.CallProgressComponent, typeof i3.CallerIdDialogComponent, typeof i4.IncomingCallComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.HttpClientModule, typeof i8.RouterLink], [typeof i1.DialboxComponent, typeof i2.CallProgressComponent, typeof i3.CallerIdDialogComponent, typeof i4.IncomingCallComponent]>;
|
|
10
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<DialboxModule>;
|
|
11
14
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vgroup/dialbox",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^15.2.0",
|
|
6
|
-
"@angular/core": "^15.2.0"
|
|
6
|
+
"@angular/core": "^15.2.0",
|
|
7
|
+
"sweetalert2": "^7.1.2"
|
|
7
8
|
},
|
|
8
9
|
"dependencies": {
|
|
9
10
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export * from './lib/dialbox.component';
|
|
2
2
|
export * from './lib/dialbox.module';
|
|
3
|
+
export * from './lib/components/call-progress/call-progress.component';
|
|
4
|
+
export * from './lib/components/call-progress/incoming-call/incoming-call.component';
|
|
5
|
+
export * from './lib/components/caller-id-dialog/caller-id-dialog.component';
|