@vgroup/dialbox 0.6.2 → 0.6.3-0.2

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.
@@ -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,13 +73,24 @@ export declare class CallProgressComponent implements OnInit, OnChanges {
70
73
  filteredParticipentList: any;
71
74
  showButton: boolean;
72
75
  isRinging: boolean;
73
- constructor(extensionService: ExtensionService, cdr: ChangeDetectorRef, twilioService: TwilioService, incomeingCallSocketService: IncomeingCallSocketService);
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
+ constructor(extensionService: ExtensionService, cdr: ChangeDetectorRef, twilioService: TwilioService, ipService: IpAddressService, incomeingCallSocketService: IncomeingCallSocketService);
74
87
  ngOnInit(): void;
75
88
  ngOnChanges(changes: SimpleChanges): void;
76
89
  getStatus(res: any): any;
77
90
  GetContactsList(): void;
78
91
  addRes: any;
79
- startCall(callData: any): Promise<any>;
92
+ startCall(callData: any, isNewConference?: boolean): Promise<any>;
93
+ onMuteUser(c: any): Promise<void>;
80
94
  onHoldCall(c: any): void;
81
95
  onEndIncomingCall(): Promise<void>;
82
96
  onEndCall(c: any, isAllCallEnd?: boolean, isContect?: boolean): Promise<boolean>;
@@ -101,10 +115,14 @@ export declare class CallProgressComponent implements OnInit, OnChanges {
101
115
  micOn: boolean;
102
116
  toggleMic(): Promise<void>;
103
117
  toggleKeypad(): void;
104
- toggleContactsPanel(isRemove?: boolean): void;
118
+ toggleContactsPanel(callInfo?: any, isClose?: boolean): any;
105
119
  addRemoveParticipant(): void;
106
120
  add(data?: any): Promise<void>;
107
- callContact(contact: any): Promise<any>;
121
+ callContact(contact: any, isUnsavedNumber?: boolean): Promise<any>;
122
+ CallToUnsavedNumber(number: string, isNewConference?: boolean): Promise<boolean>;
123
+ getToNumber(dialedNumber: string): Promise<any>;
124
+ isInvalidNumber(number: string): Promise<boolean>;
125
+ showDialAlert(message: string): void;
108
126
  getAllParticipants(conferenceSid: string): void;
109
127
  acceptConcurrentCall(incomingCall: any): void;
110
128
  swapCalls(callInfo: any, isConferenceCall?: boolean): Promise<void>;
@@ -140,5 +158,5 @@ export declare class CallProgressComponent implements OnInit, OnChanges {
140
158
  toggleText(): void;
141
159
  ngOnDestroy(): void;
142
160
  static ɵfac: i0.ɵɵFactoryDeclaration<CallProgressComponent, never>;
143
- 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>;
161
+ 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>;
144
162
  }
@@ -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 "@angular/common";
7
- import * as i6 from "@angular/forms";
8
- import * as i7 from "@angular/common/http";
9
- import * as i8 from "@angular/router";
10
- import * as i9 from "@angular/platform-browser";
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 i5.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.HttpClientModule, typeof i8.RouterLink, typeof i8.RouterModule, typeof i9.BrowserModule], [typeof i1.DialboxComponent, typeof i4.IncomingCallComponent, typeof i2.CallProgressComponent, typeof i3.CallerIdDialogComponent]>;
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
  }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vgroup/dialbox",
3
- "version": "0.6.2",
3
+ "version": "0.6.30.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",
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';