@vgroup/dialbox 0.5.51 → 0.5.58
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 +447 -596
- package/esm2020/lib/dialbox.component.mjs +54 -81
- package/esm2020/lib/dialbox.module.mjs +13 -3
- package/esm2020/lib/service/extension.service.mjs +3 -1
- package/esm2020/lib/service/twilio.service.mjs +1 -1
- package/esm2020/lib/shared/long-press.directive.mjs +36 -0
- package/esm2020/lib/shared/short-press.directive.mjs +41 -0
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/vgroup-dialbox.mjs +591 -635
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +584 -680
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +31 -9
- package/lib/dialbox.component.d.ts +1 -0
- package/lib/dialbox.module.d.ts +8 -6
- package/lib/service/twilio.service.d.ts +1 -1
- package/lib/shared/long-press.directive.d.ts +11 -0
- package/lib/shared/short-press.directive.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -4,16 +4,19 @@ import { ExtensionService } from '../../service/extension.service';
|
|
|
4
4
|
import { TwilioService } from '../../service/twilio.service';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
import { IncomeingCallSocketService } from '../../service/incomeing-call-socket.service';
|
|
7
|
+
import { IpAddressService } from '../../service/ip-address.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class CallProgressComponent implements OnInit, OnChanges {
|
|
9
10
|
private extensionService;
|
|
10
11
|
private cdr;
|
|
11
12
|
private twilioService;
|
|
13
|
+
private ipService;
|
|
12
14
|
private incomeingCallSocketService;
|
|
13
15
|
callData: any;
|
|
14
16
|
selectedCallerId: any;
|
|
15
17
|
newIncomingCallData?: Call;
|
|
16
18
|
newIncomingCallsList: any;
|
|
19
|
+
callerIdList: any;
|
|
17
20
|
deviceId: any;
|
|
18
21
|
conferenceCallInfo: any;
|
|
19
22
|
userId: any;
|
|
@@ -70,14 +73,26 @@ export declare class CallProgressComponent implements OnInit, OnChanges {
|
|
|
70
73
|
filteredParticipentList: any;
|
|
71
74
|
showButton: boolean;
|
|
72
75
|
isRinging: boolean;
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
isDirectCallOptionShow: boolean;
|
|
77
|
+
dialAlert: {
|
|
78
|
+
msg: string;
|
|
79
|
+
show: boolean;
|
|
80
|
+
};
|
|
81
|
+
leftParticipent: any;
|
|
82
|
+
conferenceCallList: any[];
|
|
83
|
+
isIncomingCallBtnDisable: boolean;
|
|
84
|
+
hostnumber: any;
|
|
85
|
+
isNewAddedCall: boolean;
|
|
86
|
+
deviceNumberList: any;
|
|
87
|
+
ourNumberInfo: any;
|
|
88
|
+
constructor(extensionService: ExtensionService, cdr: ChangeDetectorRef, twilioService: TwilioService, ipService: IpAddressService, incomeingCallSocketService: IncomeingCallSocketService);
|
|
75
89
|
ngOnInit(): void;
|
|
76
90
|
ngOnChanges(changes: SimpleChanges): void;
|
|
77
91
|
getStatus(res: any): any;
|
|
78
92
|
GetContactsList(): void;
|
|
79
93
|
addRes: any;
|
|
80
|
-
startCall(callData: any): Promise<any>;
|
|
94
|
+
startCall(callData: any, isNewConference?: boolean): Promise<any>;
|
|
95
|
+
onMuteUser(c: any): Promise<void>;
|
|
81
96
|
onHoldCall(c: any): void;
|
|
82
97
|
onEndIncomingCall(): Promise<void>;
|
|
83
98
|
onEndCall(c: any, isAllCallEnd?: boolean, isContect?: boolean): Promise<boolean>;
|
|
@@ -96,22 +111,25 @@ export declare class CallProgressComponent implements OnInit, OnChanges {
|
|
|
96
111
|
private formatTime;
|
|
97
112
|
private pad;
|
|
98
113
|
private handleError;
|
|
114
|
+
endConfereneceCall(): void;
|
|
99
115
|
endCall(isAllCallEnd?: boolean): Promise<void>;
|
|
100
116
|
toggleMute(isConference?: boolean): Promise<void>;
|
|
101
117
|
audioStream?: MediaStream;
|
|
102
118
|
micOn: boolean;
|
|
103
119
|
toggleMic(): Promise<void>;
|
|
104
120
|
toggleKeypad(): void;
|
|
105
|
-
toggleContactsPanel(
|
|
106
|
-
addRemoveParticipant(): void
|
|
121
|
+
toggleContactsPanel(callInfo?: any, isClose?: boolean): any;
|
|
122
|
+
addRemoveParticipant(): Promise<void>;
|
|
107
123
|
add(data?: any): Promise<void>;
|
|
108
|
-
callContact(contact: any): Promise<any>;
|
|
124
|
+
callContact(contact: any, isUnsavedNumber?: boolean): Promise<any>;
|
|
125
|
+
CallToUnsavedNumber(number: string, isNewConference?: boolean): Promise<boolean>;
|
|
126
|
+
getToNumber(dialedNumber: string): Promise<any>;
|
|
127
|
+
isInvalidNumber(number: string): Promise<boolean>;
|
|
128
|
+
showDialAlert(message: string): void;
|
|
109
129
|
getAllParticipants(conferenceSid: string): void;
|
|
110
|
-
acceptConcurrentCall(incomingCall: any): void;
|
|
111
130
|
swapCalls(callInfo: any, isConferenceCall?: boolean): Promise<void>;
|
|
112
131
|
isMergeCallAllowed(): boolean;
|
|
113
132
|
mergeCalls(): Promise<void>;
|
|
114
|
-
endHeldCall(): void;
|
|
115
133
|
hasDetailedInfo(callData: any): boolean;
|
|
116
134
|
onCallInputs(num: any): void;
|
|
117
135
|
onCallInputEnter(ev: any): void;
|
|
@@ -139,7 +157,11 @@ export declare class CallProgressComponent implements OnInit, OnChanges {
|
|
|
139
157
|
applyFilter(): void;
|
|
140
158
|
checkTextHeight(): void;
|
|
141
159
|
toggleText(): void;
|
|
160
|
+
showDisconnectModal: boolean;
|
|
161
|
+
onCallDisconnected(): void;
|
|
162
|
+
endConference(): void;
|
|
163
|
+
leaveConference(): void;
|
|
142
164
|
ngOnDestroy(): void;
|
|
143
165
|
static ɵfac: i0.ɵɵFactoryDeclaration<CallProgressComponent, never>;
|
|
144
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CallProgressComponent, "lib-call-progress", never, { "callData": "callData"; "selectedCallerId": "selectedCallerId"; "newIncomingCallData": "newIncomingCallData"; "newIncomingCallsList": "newIncomingCallsList"; "deviceId": "deviceId"; "conferenceCallInfo": "conferenceCallInfo"; }, { "endCallEvent": "endCallEvent"; "incomingCallsNewInfo": "incomingCallsNewInfo"; "minimiseEvent": "minimiseEvent"; "incomingCallInitiated": "incomingCallInitiated"; "isLoadershow": "isLoadershow"; "endIncomingCallEvent": "endIncomingCallEvent"; }, never, never, false, never>;
|
|
166
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CallProgressComponent, "lib-call-progress", never, { "callData": "callData"; "selectedCallerId": "selectedCallerId"; "newIncomingCallData": "newIncomingCallData"; "newIncomingCallsList": "newIncomingCallsList"; "callerIdList": "callerIdList"; "deviceId": "deviceId"; "conferenceCallInfo": "conferenceCallInfo"; }, { "endCallEvent": "endCallEvent"; "incomingCallsNewInfo": "incomingCallsNewInfo"; "minimiseEvent": "minimiseEvent"; "incomingCallInitiated": "incomingCallInitiated"; "isLoadershow": "isLoadershow"; "endIncomingCallEvent": "endIncomingCallEvent"; }, never, never, false, never>;
|
|
145
167
|
}
|
|
@@ -24,6 +24,7 @@ export declare class DialboxComponent implements OnInit, AfterViewInit, OnChange
|
|
|
24
24
|
isLoadershow: boolean;
|
|
25
25
|
isIncomingCallnotification: any;
|
|
26
26
|
notificationCallList: any;
|
|
27
|
+
deviceNumberList: any[];
|
|
27
28
|
set isDialpadHidden(value: boolean);
|
|
28
29
|
incomingCallData: any;
|
|
29
30
|
incomingCallnotification: any;
|
package/lib/dialbox.module.d.ts
CHANGED
|
@@ -3,13 +3,15 @@ import * as i1 from "./dialbox.component";
|
|
|
3
3
|
import * as i2 from "./components/call-progress/call-progress.component";
|
|
4
4
|
import * as i3 from "./components/caller-id-dialog/caller-id-dialog.component";
|
|
5
5
|
import * as i4 from "./components/call-progress/incoming-call/incoming-call.component";
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "@angular/common
|
|
9
|
-
import * as i8 from "@angular/
|
|
10
|
-
import * as i9 from "@angular/
|
|
6
|
+
import * as i5 from "./shared/short-press.directive";
|
|
7
|
+
import * as i6 from "./shared/long-press.directive";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
import * as i8 from "@angular/forms";
|
|
10
|
+
import * as i9 from "@angular/common/http";
|
|
11
|
+
import * as i10 from "@angular/router";
|
|
12
|
+
import * as i11 from "@angular/platform-browser";
|
|
11
13
|
export declare class DialboxModule {
|
|
12
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialboxModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DialboxModule, [typeof i1.DialboxComponent, typeof i2.CallProgressComponent, typeof i3.CallerIdDialogComponent, typeof i4.IncomingCallComponent], [typeof
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DialboxModule, [typeof i1.DialboxComponent, typeof i2.CallProgressComponent, typeof i3.CallerIdDialogComponent, typeof i4.IncomingCallComponent, typeof i5.ShortPressDirective, typeof i6.LongPressDirective], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i8.ReactiveFormsModule, typeof i9.HttpClientModule, typeof i10.RouterLink, typeof i10.RouterModule, typeof i11.BrowserModule], [typeof i1.DialboxComponent, typeof i4.IncomingCallComponent, typeof i2.CallProgressComponent, typeof i3.CallerIdDialogComponent, typeof i5.ShortPressDirective, typeof i6.LongPressDirective]>;
|
|
14
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<DialboxModule>;
|
|
15
17
|
}
|
|
@@ -41,7 +41,7 @@ export declare class TwilioService {
|
|
|
41
41
|
conferenceCallInfo: any;
|
|
42
42
|
constructor(http: HttpClient, extensionService: ExtensionService);
|
|
43
43
|
private initializeToken;
|
|
44
|
-
initializeTwilioDevice(deviceId
|
|
44
|
+
initializeTwilioDevice(deviceId: any): void;
|
|
45
45
|
private initializeDevice;
|
|
46
46
|
saveContact(payload: any): Observable<[]>;
|
|
47
47
|
updateContact(payload: any): Observable<[]>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LongPressDirective {
|
|
4
|
+
longPress: EventEmitter<any>;
|
|
5
|
+
private _timeout;
|
|
6
|
+
onMouseDown(e: any): void;
|
|
7
|
+
onMouseUp(): void;
|
|
8
|
+
onMouseLeave(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LongPressDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LongPressDirective, "[longPress]", never, {}, { "longPress": "longPress"; }, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ShortPressDirective {
|
|
4
|
+
shortPress: EventEmitter<any>;
|
|
5
|
+
private _timeout;
|
|
6
|
+
private _isShort;
|
|
7
|
+
onMouseDown(e: any): void;
|
|
8
|
+
onMouseUp(e: any): void;
|
|
9
|
+
onMouseLeave(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShortPressDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ShortPressDirective, "[shortPress]", never, {}, { "shortPress": "shortPress"; }, never, never, false, never>;
|
|
12
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -3,3 +3,5 @@ export * from './lib/dialbox.module';
|
|
|
3
3
|
export * from './lib/components/call-progress/call-progress.component';
|
|
4
4
|
export * from './lib/components/call-progress/incoming-call/incoming-call.component';
|
|
5
5
|
export * from './lib/components/caller-id-dialog/caller-id-dialog.component';
|
|
6
|
+
export * from './lib/shared/long-press.directive';
|
|
7
|
+
export * from './lib/shared/short-press.directive';
|