kwikid-agent-dashboard 0.0.39 → 0.0.41

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.
Files changed (23) hide show
  1. package/bundles/kwikid-agent-dashboard.umd.js +224 -187
  2. package/bundles/kwikid-agent-dashboard.umd.js.map +1 -1
  3. package/esm2015/lib/kwikid-agent-dashboard.component.js +2 -2
  4. package/esm2015/lib/v1/components/customer-details/customer-details.component.js +30 -28
  5. package/esm2015/lib/v1/components/customer-list/customer-list.component.js +16 -15
  6. package/esm2015/lib/v1/components/customer-tile/customer-tile.component.js +26 -24
  7. package/esm2015/lib/v1/components/customer-tile/status-pill/status-pill.component.js +31 -26
  8. package/esm2015/lib/v1/components/customer-tile/status-pill/status-pill.constants.js +33 -0
  9. package/esm2015/lib/v1/kwikid-agent-dashboard.component.js +13 -10
  10. package/esm2015/lib/v1/services/agent.service.js +3 -11
  11. package/esm2015/lib/v1/services/google-maps.service.js +20 -14
  12. package/esm2015/lib/v1/services/open-street-maps.service.js +5 -5
  13. package/esm2015/lib/v2/kwikid-agent-dashboard.component.js +2 -11
  14. package/fesm2015/kwikid-agent-dashboard.js +166 -134
  15. package/fesm2015/kwikid-agent-dashboard.js.map +1 -1
  16. package/lib/v1/components/customer-details/customer-details.component.d.ts +1 -0
  17. package/lib/v1/components/customer-tile/customer-tile.component.d.ts +1 -0
  18. package/lib/v1/components/customer-tile/status-pill/status-pill.component.d.ts +8 -9
  19. package/lib/v1/components/customer-tile/status-pill/status-pill.constants.d.ts +32 -0
  20. package/lib/v1/kwikid-agent-dashboard.component.d.ts +3 -2
  21. package/lib/v1/services/agent.service.d.ts +0 -1
  22. package/lib/v1/services/google-maps.service.d.ts +1 -1
  23. package/package.json +3 -3
@@ -21,6 +21,7 @@ export declare class CustomerDetailsComponent implements OnInit, OnChanges {
21
21
  constructor(agentService: AgentService, googleMapsService: GoogleMapsService, openStreetMapsService: OpenStreetMapsService, cdr: ChangeDetectorRef);
22
22
  ngOnInit(): void;
23
23
  ngOnChanges(changes: SimpleChanges): void;
24
+ getValueFromArray(paths: any): string;
24
25
  parseData(): void;
25
26
  getTaskCreationTime(task: any): string;
26
27
  convertEpochToDate(epochTime: any): string;
@@ -23,6 +23,7 @@ export declare class CustomerTileComponent implements OnInit {
23
23
  constructor(googleMapsService: GoogleMapsService, openStreetMapsService: OpenStreetMapsService, agentService: AgentService, hostElement: ElementRef);
24
24
  ngOnInit(): void;
25
25
  ngOnChanges(changes: SimpleChanges): void;
26
+ getValueFromArray(paths: any): string;
26
27
  parseData(): void;
27
28
  openDetails(): void;
28
29
  goToMaps(location: any): void;
@@ -1,15 +1,14 @@
1
1
  import { OnInit, SimpleChanges } from "@angular/core";
2
- import { TStatus } from "./status-pill.definitions";
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class StatusPillComponent implements OnInit {
5
- status: TStatus;
6
- statusText: string;
7
- statusClass: {};
8
- ngOnInit(): void;
4
+ config: any;
5
+ status: any;
6
+ styles: {};
7
+ value: string;
8
+ constructor();
9
+ ngOnInit(): Promise<void>;
9
10
  ngOnChanges(changes: SimpleChanges): void;
10
- parseStatus(status: any): void;
11
- getStatusPillClass(status: any): string;
12
- getStatusLabel(status: any): any;
11
+ setupStatus(): void;
13
12
  static ɵfac: i0.ɵɵFactoryDeclaration<StatusPillComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<StatusPillComponent, "status-pill", never, { "status": "status"; }, {}, never, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<StatusPillComponent, "status-pill", never, { "config": "config"; "status": "status"; }, {}, never, never>;
15
14
  }
@@ -0,0 +1,32 @@
1
+ export declare const STATUS: {
2
+ kyc_result_rejected: {
3
+ color: string;
4
+ label: string;
5
+ background: string;
6
+ hint: string;
7
+ };
8
+ kyc_result_approved: {
9
+ color: string;
10
+ label: string;
11
+ background: string;
12
+ hint: string;
13
+ };
14
+ kyc_result_partial_update: {
15
+ color: string;
16
+ label: string;
17
+ background: string;
18
+ hint: string;
19
+ };
20
+ waiting: {
21
+ color: string;
22
+ label: string;
23
+ background: string;
24
+ hint: string;
25
+ };
26
+ };
27
+ export declare const DEFAULT_STYLES: {
28
+ color: string;
29
+ label: string;
30
+ background: string;
31
+ hint: string;
32
+ };
@@ -15,7 +15,9 @@ export declare class KwikIDAgentDashboardComponentV1 implements OnInit {
15
15
  private readonly dialogService;
16
16
  windowResizeWatcher(): void;
17
17
  isMobileView: any;
18
+ agentInfo: any;
18
19
  config: any;
20
+ userConfig: any;
19
21
  taskList: Array<any>;
20
22
  nextStep: EventEmitter<any>;
21
23
  addTask: EventEmitter<any>;
@@ -27,7 +29,6 @@ export declare class KwikIDAgentDashboardComponentV1 implements OnInit {
27
29
  infoWindow: MapInfoWindow;
28
30
  mapElement: ElementRef;
29
31
  mapsLoaded: boolean;
30
- console: Console;
31
32
  dialogSubscription: any;
32
33
  constructor(googleMapsService: GoogleMapsService, agentService: AgentService, httpClient: HttpClient, hostElement: ElementRef, dialogService: TuiDialogService);
33
34
  ngOnInit(): Promise<void>;
@@ -50,5 +51,5 @@ export declare class KwikIDAgentDashboardComponentV1 implements OnInit {
50
51
  handleOnClickLogout(): void;
51
52
  handleOnClickPerformAction(event: any): void;
52
53
  static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDAgentDashboardComponentV1, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<KwikIDAgentDashboardComponentV1, "kwikid-agent-dashboard-v1", never, { "config": "config"; "taskList": "taskList"; }, { "nextStep": "nextStep"; "addTask": "addTask"; "removeTask": "removeTask"; "filterTaskList": "filterTaskList"; "onClickPerformAction": "onClickPerformAction"; }, never, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<KwikIDAgentDashboardComponentV1, "kwikid-agent-dashboard-v1", never, { "agentInfo": "agentInfo"; "config": "config"; "userConfig": "userConfig"; "taskList": "taskList"; }, { "nextStep": "nextStep"; "addTask": "addTask"; "removeTask": "removeTask"; "filterTaskList": "filterTaskList"; "onClickPerformAction": "onClickPerformAction"; }, never, never>;
54
55
  }
@@ -70,7 +70,6 @@ export declare class AgentService {
70
70
  ngOnInit(): void;
71
71
  setAgentConfig(config: any): void;
72
72
  toggleMapview(): void;
73
- canStartJourney(status: any): boolean;
74
73
  canPlotMarkers(status: any): boolean;
75
74
  static ɵfac: i0.ɵɵFactoryDeclaration<AgentService, never>;
76
75
  static ɵprov: i0.ɵɵInjectableDeclaration<AgentService>;
@@ -18,7 +18,7 @@ export declare class GoogleMapsService {
18
18
  directionsRenders: QueryList<ElementRef<google.maps.DirectionsRenderer>>;
19
19
  constructor(agentService: AgentService, mapDirectionsService: MapDirectionsService, httpClient: HttpClient);
20
20
  getPosition(): Promise<any>;
21
- initializeMap(): Promise<void>;
21
+ initializeMap(): Promise<unknown>;
22
22
  getLocation(task: any): Promise<unknown>;
23
23
  getMarkersLocation(myMarker: any, tasks: any): Promise<unknown>;
24
24
  plotAllMarkers(tasks: any): Promise<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwikid-agent-dashboard",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "description": "KwikID's EKYC Agent Map View Module.",
5
5
  "author": {
6
6
  "name": "Gaurang Thakker"
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@angular/google-maps": "^12.2.13",
36
- "kwikid-forms": "^0.6.27",
37
- "kwikid-toolkit": "^0.2.7",
36
+ "kwikid-forms": "^0.6.44",
37
+ "kwikid-toolkit": "^0.2.15",
38
38
  "kwikui": "^0.3.23",
39
39
  "leaflet": "^1.9.4",
40
40
  "leaflet-routing-machine": "^3.2.12",