kwikid-agent-dashboard 0.0.38 → 0.0.39

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 (129) hide show
  1. package/bundles/kwikid-agent-dashboard.umd.js +2269 -351
  2. package/bundles/kwikid-agent-dashboard.umd.js.map +1 -1
  3. package/esm2015/lib/kwikid-agent-dashboard.component.js +43 -23
  4. package/esm2015/lib/kwikid-agent-dashboard.module.js +84 -21
  5. package/esm2015/lib/v1/components/action-button/action-button.component.js +91 -0
  6. package/esm2015/lib/v1/components/customer-details/customer-details.component.js +139 -0
  7. package/esm2015/lib/v1/components/customer-list/customer-list.component.js +201 -0
  8. package/esm2015/lib/v1/components/customer-tile/customer-tile.component.js +137 -0
  9. package/esm2015/lib/v1/components/customer-tile/status-pill/status-pill.component.js +54 -0
  10. package/esm2015/lib/v1/components/customer-tile/status-pill/status-pill.definitions.js +36 -0
  11. package/esm2015/lib/v1/helpers/maps.helpers.js +46 -0
  12. package/esm2015/lib/v1/kwikid-agent-dashboard.component.js +177 -0
  13. package/esm2015/lib/v1/kwikid-agent-dashboard.module.js +120 -0
  14. package/esm2015/lib/v1/pipes/search-filter.pipe.js +62 -0
  15. package/esm2015/lib/v1/services/agent.service.js +149 -0
  16. package/esm2015/lib/v1/services/google-maps.service.js +201 -0
  17. package/esm2015/lib/v1/services/open-street-maps.service.js +252 -0
  18. package/esm2015/lib/v2/components/agent-info/agent-info.component.js +20 -0
  19. package/esm2015/lib/v2/components/agent-info/agent-info.module.js +37 -0
  20. package/esm2015/lib/v2/components/bottom-sheet/bottom-sheet.component.js +111 -0
  21. package/esm2015/lib/v2/components/bottom-sheet/bottom-sheet.module.js +41 -0
  22. package/esm2015/lib/v2/components/components.module.js +79 -0
  23. package/esm2015/lib/v2/components/map-view/map-view.component.js +39 -0
  24. package/esm2015/lib/v2/components/map-view/map-view.module.js +37 -0
  25. package/esm2015/lib/v2/components/primary-actions/primary-actions.component.js +65 -0
  26. package/esm2015/lib/v2/components/primary-actions/primary-actions.module.js +54 -0
  27. package/esm2015/lib/v2/components/task-detail/task-detail.component.js +82 -0
  28. package/esm2015/lib/v2/components/task-detail/task-detail.module.js +41 -0
  29. package/esm2015/lib/v2/components/task-item/task-item.component.js +107 -0
  30. package/esm2015/lib/v2/components/task-item/task-item.constant.js +12 -0
  31. package/esm2015/lib/v2/components/task-item/task-item.module.js +45 -0
  32. package/esm2015/lib/v2/components/task-item-status/task-item-status.component.js +51 -0
  33. package/esm2015/lib/v2/components/task-item-status/task-item-status.module.js +19 -0
  34. package/esm2015/lib/v2/components/task-list/task-list.component.js +186 -0
  35. package/esm2015/lib/v2/components/task-list/task-list.module.js +57 -0
  36. package/esm2015/lib/v2/components/task-list-search/task-list-search.component.js +118 -0
  37. package/esm2015/lib/v2/components/task-list-search/task-list-search.module.js +41 -0
  38. package/esm2015/lib/v2/components/task-preview/task-preview.component.js +30 -0
  39. package/esm2015/lib/v2/components/task-preview/task-preview.module.js +37 -0
  40. package/esm2015/lib/v2/helpers/array.helper.js +10 -0
  41. package/esm2015/lib/v2/helpers/date.helplers.js +17 -0
  42. package/esm2015/lib/v2/kwikid-agent-dashboard.component.js +61 -0
  43. package/esm2015/lib/v2/kwikid-agent-dashboard.module.js +45 -0
  44. package/esm2015/lib/v2/layout/layout-body/layout-body.component.js +274 -0
  45. package/esm2015/lib/v2/layout/layout-body/layout-body.module.js +55 -0
  46. package/esm2015/lib/v2/layout/layout-header/layout-header.component.js +60 -0
  47. package/esm2015/lib/v2/layout/layout-header/layout-header.module.js +48 -0
  48. package/esm2015/lib/v2/layout/layout.module.js +18 -0
  49. package/esm2015/lib/v2/pipes/search-filter.pipe.js +62 -0
  50. package/fesm2015/kwikid-agent-dashboard.js +2049 -324
  51. package/fesm2015/kwikid-agent-dashboard.js.map +1 -1
  52. package/lib/kwikid-agent-dashboard.component.d.ts +11 -3
  53. package/lib/kwikid-agent-dashboard.module.d.ts +12 -6
  54. package/lib/v1/components/action-button/action-button.component.d.ts +18 -0
  55. package/lib/v1/components/customer-details/customer-details.component.d.ts +35 -0
  56. package/lib/v1/components/customer-list/customer-list.component.d.ts +55 -0
  57. package/lib/v1/components/customer-tile/customer-tile.component.d.ts +34 -0
  58. package/lib/v1/components/customer-tile/status-pill/status-pill.component.d.ts +15 -0
  59. package/lib/v1/components/customer-tile/status-pill/status-pill.definitions.d.ts +19 -0
  60. package/lib/v1/helpers/maps.helpers.d.ts +3 -0
  61. package/lib/v1/kwikid-agent-dashboard.component.d.ts +54 -0
  62. package/lib/v1/kwikid-agent-dashboard.module.d.ts +23 -0
  63. package/lib/{pipes → v1/pipes}/search-filter.pipe.d.ts +1 -1
  64. package/lib/v1/services/agent.service.d.ts +77 -0
  65. package/lib/v1/services/google-maps.service.d.ts +29 -0
  66. package/lib/v1/services/open-street-maps.service.d.ts +39 -0
  67. package/lib/{components → v2/components}/agent-info/agent-info.component.d.ts +1 -1
  68. package/lib/{components → v2/components}/bottom-sheet/bottom-sheet.component.d.ts +2 -2
  69. package/lib/{components → v2/components}/map-view/map-view.component.d.ts +1 -1
  70. package/lib/{components → v2/components}/primary-actions/primary-actions.component.d.ts +1 -1
  71. package/lib/{components → v2/components}/task-detail/task-detail.component.d.ts +1 -1
  72. package/lib/{components → v2/components}/task-item/task-item.component.d.ts +1 -1
  73. package/lib/{components → v2/components}/task-item-status/task-item-status.component.d.ts +1 -1
  74. package/lib/{components → v2/components}/task-list/task-list.component.d.ts +4 -4
  75. package/lib/{components → v2/components}/task-list-search/task-list-search.component.d.ts +3 -3
  76. package/lib/{components → v2/components}/task-preview/task-preview.component.d.ts +1 -1
  77. package/lib/v2/kwikid-agent-dashboard.component.d.ts +17 -0
  78. package/lib/v2/kwikid-agent-dashboard.module.d.ts +13 -0
  79. package/lib/{layout → v2/layout}/layout-body/layout-body.component.d.ts +3 -3
  80. package/lib/{layout → v2/layout}/layout-header/layout-header.component.d.ts +1 -1
  81. package/lib/v2/pipes/search-filter.pipe.d.ts +25 -0
  82. package/package.json +1 -1
  83. package/esm2015/lib/components/agent-info/agent-info.component.js +0 -20
  84. package/esm2015/lib/components/agent-info/agent-info.module.js +0 -37
  85. package/esm2015/lib/components/bottom-sheet/bottom-sheet.component.js +0 -111
  86. package/esm2015/lib/components/bottom-sheet/bottom-sheet.module.js +0 -41
  87. package/esm2015/lib/components/components.module.js +0 -79
  88. package/esm2015/lib/components/map-view/map-view.component.js +0 -39
  89. package/esm2015/lib/components/map-view/map-view.module.js +0 -37
  90. package/esm2015/lib/components/primary-actions/primary-actions.component.js +0 -65
  91. package/esm2015/lib/components/primary-actions/primary-actions.module.js +0 -54
  92. package/esm2015/lib/components/task-detail/task-detail.component.js +0 -82
  93. package/esm2015/lib/components/task-detail/task-detail.module.js +0 -41
  94. package/esm2015/lib/components/task-item/task-item.component.js +0 -109
  95. package/esm2015/lib/components/task-item/task-item.constant.js +0 -12
  96. package/esm2015/lib/components/task-item/task-item.module.js +0 -45
  97. package/esm2015/lib/components/task-item-status/task-item-status.component.js +0 -51
  98. package/esm2015/lib/components/task-item-status/task-item-status.module.js +0 -19
  99. package/esm2015/lib/components/task-list/task-list.component.js +0 -186
  100. package/esm2015/lib/components/task-list/task-list.module.js +0 -57
  101. package/esm2015/lib/components/task-list-search/task-list-search.component.js +0 -117
  102. package/esm2015/lib/components/task-list-search/task-list-search.module.js +0 -41
  103. package/esm2015/lib/components/task-preview/task-preview.component.js +0 -30
  104. package/esm2015/lib/components/task-preview/task-preview.module.js +0 -37
  105. package/esm2015/lib/helpers/array.helper.js +0 -10
  106. package/esm2015/lib/helpers/date.helplers.js +0 -17
  107. package/esm2015/lib/layout/layout-body/layout-body.component.js +0 -274
  108. package/esm2015/lib/layout/layout-body/layout-body.module.js +0 -55
  109. package/esm2015/lib/layout/layout-header/layout-header.component.js +0 -60
  110. package/esm2015/lib/layout/layout-header/layout-header.module.js +0 -48
  111. package/esm2015/lib/layout/layout.module.js +0 -18
  112. package/esm2015/lib/pipes/search-filter.pipe.js +0 -62
  113. package/lib/{components → v2/components}/agent-info/agent-info.module.d.ts +0 -0
  114. package/lib/{components → v2/components}/bottom-sheet/bottom-sheet.module.d.ts +0 -0
  115. package/lib/{components → v2/components}/components.module.d.ts +0 -0
  116. package/lib/{components → v2/components}/map-view/map-view.module.d.ts +0 -0
  117. package/lib/{components → v2/components}/primary-actions/primary-actions.module.d.ts +0 -0
  118. package/lib/{components → v2/components}/task-detail/task-detail.module.d.ts +0 -0
  119. package/lib/{components → v2/components}/task-item/task-item.constant.d.ts +0 -0
  120. package/lib/{components → v2/components}/task-item/task-item.module.d.ts +0 -0
  121. package/lib/{components → v2/components}/task-item-status/task-item-status.module.d.ts +0 -0
  122. package/lib/{components → v2/components}/task-list/task-list.module.d.ts +0 -0
  123. package/lib/{components → v2/components}/task-list-search/task-list-search.module.d.ts +0 -0
  124. package/lib/{components → v2/components}/task-preview/task-preview.module.d.ts +0 -0
  125. package/lib/{helpers → v2/helpers}/array.helper.d.ts +0 -0
  126. package/lib/{helpers → v2/helpers}/date.helplers.d.ts +1 -1
  127. /package/lib/{layout → v2/layout}/layout-body/layout-body.module.d.ts +0 -0
  128. /package/lib/{layout → v2/layout}/layout-header/layout-header.module.d.ts +0 -0
  129. /package/lib/{layout → v2/layout}/layout.module.d.ts +0 -0
@@ -1,17 +1,25 @@
1
- import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
1
+ import { EventEmitter, OnInit, SimpleChanges } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class KwikIDAgentDashboardComponent implements OnInit {
4
+ agentInfo: any;
4
5
  config: any;
5
6
  userConfig: any;
6
- agentInfo: any;
7
7
  taskList: Array<any>;
8
+ nextStep: EventEmitter<any>;
9
+ addTask: EventEmitter<any>;
10
+ removeTask: EventEmitter<any>;
11
+ filterTaskList: EventEmitter<any>;
8
12
  onGetTaskList: EventEmitter<any>;
9
13
  onClickPerformAction: EventEmitter<any>;
10
14
  constructor();
11
15
  ngOnInit(): void;
12
16
  ngOnChanges(changes: SimpleChanges): void;
17
+ handleOnClickNext(e: any): void;
18
+ handleOnClickAddTask(task: any): void;
19
+ handleOnClickRemoveTask(task: any): void;
20
+ handleOnFilterTaskList(filter: any): void;
13
21
  handleOnGetTaskList(event: any): void;
14
22
  handleOnClickPerformAction(event: any): void;
15
23
  static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDAgentDashboardComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<KwikIDAgentDashboardComponent, "kwikid-agent-dashboard", never, { "config": "config"; "userConfig": "userConfig"; "agentInfo": "agentInfo"; "taskList": "taskList"; }, { "onGetTaskList": "onGetTaskList"; "onClickPerformAction": "onClickPerformAction"; }, never, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<KwikIDAgentDashboardComponent, "kwikid-agent-dashboard", never, { "agentInfo": "agentInfo"; "config": "config"; "userConfig": "userConfig"; "taskList": "taskList"; }, { "nextStep": "nextStep"; "addTask": "addTask"; "removeTask": "removeTask"; "filterTaskList": "filterTaskList"; "onGetTaskList": "onGetTaskList"; "onClickPerformAction": "onClickPerformAction"; }, never, never>;
17
25
  }
@@ -1,13 +1,19 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./kwikid-agent-dashboard.component";
3
3
  import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "kwikui";
6
- import * as i5 from "kwikid-forms";
7
- import * as i6 from "./layout/layout.module";
8
- import * as i7 from "./components/components.module";
4
+ import * as i3 from "@angular/common/http";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "kwikui";
7
+ import * as i6 from "kwikid-forms";
8
+ import * as i7 from "@taiga-ui/core";
9
+ import * as i8 from "@taiga-ui/addon-mobile";
10
+ import * as i9 from "@taiga-ui/cdk";
11
+ import * as i10 from "@angular/cdk/scrolling";
12
+ import * as i11 from "@angular/google-maps";
13
+ import * as i12 from "./v1/kwikid-agent-dashboard.module";
14
+ import * as i13 from "./v2/kwikid-agent-dashboard.module";
9
15
  export declare class KwikIDAgentDashboardModule {
10
16
  static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDAgentDashboardModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDAgentDashboardModule, [typeof i1.KwikIDAgentDashboardComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.KwikUIModule, typeof i5.KwikIDFormsModule, typeof i6.LayoutModule, typeof i7.ComponentModule], [typeof i1.KwikIDAgentDashboardComponent]>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDAgentDashboardModule, [typeof i1.KwikIDAgentDashboardComponent], [typeof i2.CommonModule, typeof i3.HttpClientModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.KwikUIButtonModule, typeof i5.KwikUIInputModule, typeof i5.KwikUIInputDateModule, typeof i5.KwikUIInputDateRangeModule, typeof i5.KwikUIInputSelectModule, typeof i5.KwikUILabelValuePairModule, typeof i5.KwikUITableModule, typeof i5.KwikUITablePaginationModule, typeof i6.KwikIDFormViewModule, typeof i7.TuiRootModule, typeof i7.TuiDialogModule, typeof i7.TuiDropdownModule, typeof i8.TuiSidebarModule, typeof i9.TuiActiveZoneModule, typeof i7.TuiGroupModule, typeof i7.TuiSvgModule, typeof i10.ScrollingModule, typeof i11.GoogleMapsModule, typeof i3.HttpClientModule, typeof i3.HttpClientJsonpModule, typeof i12.KwikIDAgentDashboardModuleV1, typeof i13.KwikIDAgentDashboardModuleV2], [typeof i1.KwikIDAgentDashboardComponent]>;
12
18
  static ɵinj: i0.ɵɵInjectorDeclaration<KwikIDAgentDashboardModule>;
13
19
  }
@@ -0,0 +1,18 @@
1
+ import { EventEmitter, OnInit, SimpleChanges } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class ActionButtonComponent implements OnInit {
4
+ action: any;
5
+ config: any;
6
+ customer: any;
7
+ disabled: boolean;
8
+ hidden: boolean;
9
+ onClickPerformAction: EventEmitter<any>;
10
+ constructor();
11
+ ngOnInit(): void;
12
+ ngOnChanges(changes: SimpleChanges): void;
13
+ runValidations(): Promise<void>;
14
+ takeAction: (action: any) => void;
15
+ handleOnClickPerformAction(action: any, customer: any): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionButtonComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionButtonComponent, "kwikid-action-button", never, { "action": "action"; "config": "config"; "customer": "customer"; }, { "onClickPerformAction": "onClickPerformAction"; }, never, never>;
18
+ }
@@ -0,0 +1,35 @@
1
+ import { EventEmitter, OnChanges, OnInit, ChangeDetectorRef, SimpleChanges } from "@angular/core";
2
+ import { AgentService } from "../../services/agent.service";
3
+ import { GoogleMapsService } from "../../services/google-maps.service";
4
+ import { OpenStreetMapsService } from "../../services/open-street-maps.service";
5
+ import * as i0 from "@angular/core";
6
+ export declare class CustomerDetailsComponent implements OnInit, OnChanges {
7
+ agentService: AgentService;
8
+ googleMapsService: GoogleMapsService;
9
+ openStreetMapsService: OpenStreetMapsService;
10
+ private cdr;
11
+ customer: any;
12
+ config: any;
13
+ title: string;
14
+ viewTaskDetails: Array<string>;
15
+ taskId: any;
16
+ labelValuePairConfig: any;
17
+ labelValuePairData: any;
18
+ nextStep: EventEmitter<any>;
19
+ removeTask: EventEmitter<any>;
20
+ onClickPerformAction: EventEmitter<any>;
21
+ constructor(agentService: AgentService, googleMapsService: GoogleMapsService, openStreetMapsService: OpenStreetMapsService, cdr: ChangeDetectorRef);
22
+ ngOnInit(): void;
23
+ ngOnChanges(changes: SimpleChanges): void;
24
+ parseData(): void;
25
+ getTaskCreationTime(task: any): string;
26
+ convertEpochToDate(epochTime: any): string;
27
+ getTaskDetails(taskData: any): any;
28
+ goToMaps(location: any): void;
29
+ handleOnClickNext(e: any): void;
30
+ close(): void;
31
+ handleOnClickRemoveTask(task: any): void;
32
+ handleOnClickPerformAction(event: any): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomerDetailsComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomerDetailsComponent, "customer-details", never, { "customer": "customer"; "config": "config"; }, { "nextStep": "nextStep"; "removeTask": "removeTask"; "onClickPerformAction": "onClickPerformAction"; }, never, never>;
35
+ }
@@ -0,0 +1,55 @@
1
+ import { EventEmitter, OnInit } from "@angular/core";
2
+ import { FormControl, FormGroup } from "@angular/forms";
3
+ import { TuiDay } from "@taiga-ui/cdk";
4
+ import { GoogleMapsService } from "../../services/google-maps.service";
5
+ import { AgentService } from "../../services/agent.service";
6
+ import { OpenStreetMapsService } from "../../services/open-street-maps.service";
7
+ import * as i0 from "@angular/core";
8
+ export declare class CustomerListComponent implements OnInit {
9
+ googleMapsService: GoogleMapsService;
10
+ openStreetMapsService: OpenStreetMapsService;
11
+ agentService: AgentService;
12
+ customers: any;
13
+ config: any;
14
+ nextStep: EventEmitter<any>;
15
+ removeTask: EventEmitter<any>;
16
+ filterTaskList: EventEmitter<any>;
17
+ searchText: any;
18
+ lastInfoWindowOpened: any;
19
+ filteredData: any[];
20
+ formGroup: FormGroup;
21
+ searchTextFormControl: FormControl;
22
+ searchDateFormControl: FormControl;
23
+ sortFilterKeyFormControl: FormControl;
24
+ sortInAscendingOrder: boolean;
25
+ fromDate: string | Date;
26
+ toDate: string | Date;
27
+ max: TuiDay;
28
+ maxLength: any;
29
+ sortFilterKey: string;
30
+ sortFilterOptions: string[];
31
+ activeSearchAction: string;
32
+ onClickPerformAction: EventEmitter<any>;
33
+ constructor(googleMapsService: GoogleMapsService, openStreetMapsService: OpenStreetMapsService, agentService: AgentService);
34
+ ngOnInit(): Promise<void>;
35
+ handleOnClickSearchType(type: any): void;
36
+ handleInitialDateRange(): void;
37
+ handleSearchAndSortFormControls(): void;
38
+ setUpMaps(): Promise<void>;
39
+ setCustomersList(): Promise<void>;
40
+ ngAfterViewInit(): void;
41
+ ngOnChanges(): Promise<void>;
42
+ handleOnClickNext(e: any): void;
43
+ plotMarkers(customers: any): Promise<any>;
44
+ handleOnChangeDateRange(event: any): void;
45
+ handleOnClickChangeSortOrder(): void;
46
+ handleOnChangeSortFilter(event: any): void;
47
+ handleOnSortTaskItems(key: any, order: any): void;
48
+ handleChangeDateRangeFormat(event: any): void;
49
+ handleOnChangeSearchText(event: any): void;
50
+ handleOnClickRemoveTask(task: any): void;
51
+ handleOnFilterTaskList(filter: any): void;
52
+ handleOnClickPerformAction(event: any): void;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomerListComponent, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomerListComponent, "customer-list", never, { "customers": "customers"; "config": "config"; }, { "nextStep": "nextStep"; "removeTask": "removeTask"; "filterTaskList": "filterTaskList"; "onClickPerformAction": "onClickPerformAction"; }, never, never>;
55
+ }
@@ -0,0 +1,34 @@
1
+ import { ElementRef, EventEmitter, OnInit, SimpleChanges } from "@angular/core";
2
+ import { GoogleMapsService } from "../../services/google-maps.service";
3
+ import { AgentService } from "../../services/agent.service";
4
+ import { OpenStreetMapsService } from "../../services/open-street-maps.service";
5
+ import * as i0 from "@angular/core";
6
+ export declare class CustomerTileComponent implements OnInit {
7
+ googleMapsService: GoogleMapsService;
8
+ openStreetMapsService: OpenStreetMapsService;
9
+ agentService: AgentService;
10
+ private hostElement;
11
+ windowResizeWatcher(): void;
12
+ customer: any;
13
+ index: number;
14
+ config: any;
15
+ isMobileView: boolean;
16
+ viewTaskDetails: Array<string>;
17
+ taskId: any;
18
+ labelValuePairConfig: any;
19
+ labelValuePairData: any;
20
+ onClickPerformAction: EventEmitter<any>;
21
+ nextStep: EventEmitter<any>;
22
+ removeTask: EventEmitter<any>;
23
+ constructor(googleMapsService: GoogleMapsService, openStreetMapsService: OpenStreetMapsService, agentService: AgentService, hostElement: ElementRef);
24
+ ngOnInit(): void;
25
+ ngOnChanges(changes: SimpleChanges): void;
26
+ parseData(): void;
27
+ openDetails(): void;
28
+ goToMaps(location: any): void;
29
+ handleOnClickPerformAction(event: any): void;
30
+ handleOnClickNext(e: any): void;
31
+ handleOnClickRemoveTask(task: any): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomerTileComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomerTileComponent, "customer-tile", never, { "customer": "customer"; "index": "index"; "config": "config"; }, { "onClickPerformAction": "onClickPerformAction"; "nextStep": "nextStep"; "removeTask": "removeTask"; }, never, never>;
34
+ }
@@ -0,0 +1,15 @@
1
+ import { OnInit, SimpleChanges } from "@angular/core";
2
+ import { TStatus } from "./status-pill.definitions";
3
+ import * as i0 from "@angular/core";
4
+ export declare class StatusPillComponent implements OnInit {
5
+ status: TStatus;
6
+ statusText: string;
7
+ statusClass: {};
8
+ ngOnInit(): void;
9
+ ngOnChanges(changes: SimpleChanges): void;
10
+ parseStatus(status: any): void;
11
+ getStatusPillClass(status: any): string;
12
+ getStatusLabel(status: any): any;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<StatusPillComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<StatusPillComponent, "status-pill", never, { "status": "status"; }, {}, never, never>;
15
+ }
@@ -0,0 +1,19 @@
1
+ export declare enum EStatus {
2
+ NOT_STARTED = "not_started",
3
+ ON_GOING = "on_going",
4
+ AUDITING = "auditing",
5
+ REJECTED = "rejected",
6
+ AFTER_AUDIT = "after_audit",
7
+ COMPLETE = "complete",
8
+ WAITING = "waiting",
9
+ SESSION_EXPIRED = "session_expired",
10
+ KYC_REJECTED = "kyc_rejected",
11
+ KYC_REQUEST_REJECTED = "kyc_request_rejected",
12
+ KYC_REQUEST_ACCEPTED = "kyc_request_accepted",
13
+ KYC_RESULT_REJECTED = "kyc_result_rejected",
14
+ KYC_RESULT_APPROVED = "kyc_result_approved",
15
+ KYC_RESULT_PARTIAL_UPDATE = "kyc_result_partial_update",
16
+ KYC_RESULT_UNDER_REVIEW = "kyc_result_under_review"
17
+ }
18
+ export declare const VStatus: readonly [EStatus.NOT_STARTED, EStatus.ON_GOING, EStatus.AUDITING, EStatus.REJECTED, EStatus.AFTER_AUDIT, EStatus.COMPLETE, EStatus.WAITING, EStatus.SESSION_EXPIRED, EStatus.KYC_REJECTED, EStatus.KYC_REQUEST_REJECTED, EStatus.KYC_REQUEST_ACCEPTED, EStatus.KYC_RESULT_REJECTED, EStatus.KYC_RESULT_APPROVED, EStatus.KYC_RESULT_PARTIAL_UPDATE, EStatus.KYC_RESULT_UNDER_REVIEW];
19
+ export declare type TStatus = (typeof VStatus)[number];
@@ -0,0 +1,3 @@
1
+ export declare const calculateDistance: (point1: any, point2: any) => number;
2
+ export declare const nearestNeighborAlgorithm: (startingPoint: any, unvisitedPoints: any[]) => any[];
3
+ export declare const addressConcator: (data: any, config: any) => string;
@@ -0,0 +1,54 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { ElementRef, EventEmitter, OnInit } from "@angular/core";
3
+ import { MapInfoWindow, MapMarker } from "@angular/google-maps";
4
+ import { TuiDialogContext, TuiDialogService } from "@taiga-ui/core";
5
+ import { PolymorpheusContent } from "@tinkoff/ng-polymorpheus";
6
+ import { Observable } from "rxjs";
7
+ import { AgentService } from "./services/agent.service";
8
+ import { GoogleMapsService } from "./services/google-maps.service";
9
+ import * as i0 from "@angular/core";
10
+ export declare class KwikIDAgentDashboardComponentV1 implements OnInit {
11
+ googleMapsService: GoogleMapsService;
12
+ agentService: AgentService;
13
+ httpClient: HttpClient;
14
+ private hostElement;
15
+ private readonly dialogService;
16
+ windowResizeWatcher(): void;
17
+ isMobileView: any;
18
+ config: any;
19
+ taskList: Array<any>;
20
+ nextStep: EventEmitter<any>;
21
+ addTask: EventEmitter<any>;
22
+ removeTask: EventEmitter<any>;
23
+ filterTaskList: EventEmitter<any>;
24
+ onClickPerformAction: EventEmitter<any>;
25
+ loading: boolean;
26
+ map: any;
27
+ infoWindow: MapInfoWindow;
28
+ mapElement: ElementRef;
29
+ mapsLoaded: boolean;
30
+ console: Console;
31
+ dialogSubscription: any;
32
+ constructor(googleMapsService: GoogleMapsService, agentService: AgentService, httpClient: HttpClient, hostElement: ElementRef, dialogService: TuiDialogService);
33
+ ngOnInit(): Promise<void>;
34
+ loadMaps(apiKey: any): Observable<boolean>;
35
+ handleOnClickNext(e: any): void;
36
+ handleOnClickAddTask(task: any): void;
37
+ handleOnClickRemoveTask(task: any): void;
38
+ handleOnFilterTaskList(filter: any): void;
39
+ refresh(): void;
40
+ open: boolean;
41
+ onClick(): void;
42
+ allFormsData: {};
43
+ String: StringConstructor;
44
+ onObscured(obscured: boolean): void;
45
+ onActiveZone(active: boolean): void;
46
+ close(): void;
47
+ showDialog(content: PolymorpheusContent<TuiDialogContext>): void;
48
+ openInfoWindow(marker: MapMarker): void;
49
+ handleOnClickSaveForm(e: any): void;
50
+ handleOnClickLogout(): void;
51
+ handleOnClickPerformAction(event: any): void;
52
+ 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
+ }
@@ -0,0 +1,23 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./kwikid-agent-dashboard.component";
3
+ import * as i2 from "./components/customer-list/customer-list.component";
4
+ import * as i3 from "./components/customer-tile/customer-tile.component";
5
+ import * as i4 from "./pipes/search-filter.pipe";
6
+ import * as i5 from "./components/customer-tile/status-pill/status-pill.component";
7
+ import * as i6 from "./components/customer-details/customer-details.component";
8
+ import * as i7 from "./components/action-button/action-button.component";
9
+ import * as i8 from "@angular/common";
10
+ import * as i9 from "@angular/common/http";
11
+ import * as i10 from "@angular/forms";
12
+ import * as i11 from "kwikui";
13
+ import * as i12 from "kwikid-forms";
14
+ import * as i13 from "@taiga-ui/core";
15
+ import * as i14 from "@taiga-ui/addon-mobile";
16
+ import * as i15 from "@taiga-ui/cdk";
17
+ import * as i16 from "@angular/cdk/scrolling";
18
+ import * as i17 from "@angular/google-maps";
19
+ export declare class KwikIDAgentDashboardModuleV1 {
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDAgentDashboardModuleV1, never>;
21
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDAgentDashboardModuleV1, [typeof i1.KwikIDAgentDashboardComponentV1, typeof i2.CustomerListComponent, typeof i3.CustomerTileComponent, typeof i4.Ng2SearchPipe, typeof i5.StatusPillComponent, typeof i6.CustomerDetailsComponent, typeof i7.ActionButtonComponent], [typeof i8.CommonModule, typeof i9.HttpClientModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.KwikUIButtonModule, typeof i11.KwikUIInputModule, typeof i11.KwikUIInputDateModule, typeof i11.KwikUIInputDateRangeModule, typeof i11.KwikUIInputSelectModule, typeof i11.KwikUILabelValuePairModule, typeof i11.KwikUITableModule, typeof i11.KwikUITablePaginationModule, typeof i12.KwikIDFormViewModule, typeof i13.TuiRootModule, typeof i13.TuiDialogModule, typeof i13.TuiDropdownModule, typeof i14.TuiSidebarModule, typeof i15.TuiActiveZoneModule, typeof i13.TuiGroupModule, typeof i13.TuiSvgModule, typeof i16.ScrollingModule, typeof i17.GoogleMapsModule, typeof i9.HttpClientModule, typeof i9.HttpClientJsonpModule], [typeof i1.KwikIDAgentDashboardComponentV1]>;
22
+ static ɵinj: i0.ɵɵInjectorDeclaration<KwikIDAgentDashboardModuleV1>;
23
+ }
@@ -1,4 +1,4 @@
1
- import { PipeTransform } from '@angular/core';
1
+ import { PipeTransform } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class Ng2SearchPipe implements PipeTransform {
4
4
  /**
@@ -0,0 +1,77 @@
1
+ import { EStatus } from "../components/customer-tile/status-pill/status-pill.definitions";
2
+ import * as i0 from "@angular/core";
3
+ export declare class AgentService {
4
+ config: any;
5
+ isListOpen: boolean;
6
+ isMobileView: any;
7
+ showMapview: boolean;
8
+ currentTaskDetails: any;
9
+ addTaskForm: {
10
+ key: string;
11
+ title: string;
12
+ fields: ({
13
+ key: string;
14
+ label: string;
15
+ validators: {
16
+ required: boolean;
17
+ };
18
+ properties: {
19
+ placeholder: string;
20
+ readOnly: boolean;
21
+ case: string;
22
+ countryCode?: undefined;
23
+ removeCountryCodeFromValue?: undefined;
24
+ phoneMaskAfterCountryCode?: undefined;
25
+ };
26
+ type: string;
27
+ } | {
28
+ key: string;
29
+ label: string;
30
+ validators: {
31
+ required: boolean;
32
+ };
33
+ properties: {
34
+ countryCode: string;
35
+ removeCountryCodeFromValue: boolean;
36
+ phoneMaskAfterCountryCode: string;
37
+ placeholder: string;
38
+ readOnly: boolean;
39
+ case?: undefined;
40
+ };
41
+ type: string;
42
+ })[];
43
+ properties: {
44
+ header: {
45
+ title: {
46
+ hidden: boolean;
47
+ label: string;
48
+ };
49
+ steps: {
50
+ hidden: boolean;
51
+ };
52
+ logo: {
53
+ hidden: boolean;
54
+ };
55
+ };
56
+ footer: {
57
+ viewFormsButton: {
58
+ hidden: boolean;
59
+ label: string;
60
+ };
61
+ saveButton: {
62
+ hidden: boolean;
63
+ label: string;
64
+ };
65
+ };
66
+ };
67
+ };
68
+ notRequiredStatus: EStatus[];
69
+ constructor();
70
+ ngOnInit(): void;
71
+ setAgentConfig(config: any): void;
72
+ toggleMapview(): void;
73
+ canStartJourney(status: any): boolean;
74
+ canPlotMarkers(status: any): boolean;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgentService, never>;
76
+ static ɵprov: i0.ɵɵInjectableDeclaration<AgentService>;
77
+ }
@@ -0,0 +1,29 @@
1
+ /// <reference types="googlemaps" />
2
+ import { ElementRef, QueryList } from "@angular/core";
3
+ import { MapDirectionsService } from "@angular/google-maps";
4
+ import { HttpClient } from "@angular/common/http";
5
+ import { AgentService } from "./agent.service";
6
+ import * as i0 from "@angular/core";
7
+ export declare class GoogleMapsService {
8
+ private agentService;
9
+ mapDirectionsService: MapDirectionsService;
10
+ httpClient: HttpClient;
11
+ myPosition: any;
12
+ map: any;
13
+ apiKey: any;
14
+ allMarkers: any;
15
+ directionsRenderOption: any;
16
+ directionsResults$: any;
17
+ allDirectionsResults$: any;
18
+ directionsRenders: QueryList<ElementRef<google.maps.DirectionsRenderer>>;
19
+ constructor(agentService: AgentService, mapDirectionsService: MapDirectionsService, httpClient: HttpClient);
20
+ getPosition(): Promise<any>;
21
+ initializeMap(): Promise<void>;
22
+ getLocation(task: any): Promise<unknown>;
23
+ getMarkersLocation(myMarker: any, tasks: any): Promise<unknown>;
24
+ plotAllMarkers(tasks: any): Promise<unknown>;
25
+ plotDirectionsForAllTasks(tasks: any): Promise<any>;
26
+ plotDirectionsForSelectedTask(task: any): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<GoogleMapsService, never>;
28
+ static ɵprov: i0.ɵɵInjectableDeclaration<GoogleMapsService>;
29
+ }
@@ -0,0 +1,39 @@
1
+ /// <reference types="googlemaps" />
2
+ import { ElementRef, QueryList } from "@angular/core";
3
+ import "leaflet-routing-machine";
4
+ import { MapDirectionsService } from "@angular/google-maps";
5
+ import { HttpClient } from "@angular/common/http";
6
+ import { AgentService } from "./agent.service";
7
+ import * as i0 from "@angular/core";
8
+ export declare class OpenStreetMapsService {
9
+ private agentService;
10
+ mapDirectionsService: MapDirectionsService;
11
+ httpClient: HttpClient;
12
+ myPosition: any;
13
+ map: any;
14
+ allMarkers: any;
15
+ allTasksRoutes: any;
16
+ selectedTaskRoutes: any;
17
+ selectedTaskDistanceAndTime: any;
18
+ directionsRenders: QueryList<ElementRef<google.maps.DirectionsRenderer>>;
19
+ constructor(agentService: AgentService, mapDirectionsService: MapDirectionsService, httpClient: HttpClient);
20
+ getPosition(): Promise<any>;
21
+ getLocation(task: any): Promise<unknown>;
22
+ getMarkersLocation(myMarker: any, tasks: any): Promise<unknown>;
23
+ initializeMap(): Promise<void>;
24
+ addMarker({ lat, lng, title, color }: {
25
+ lat: any;
26
+ lng: any;
27
+ title: any;
28
+ color: any;
29
+ }): void;
30
+ plotDirectionsForAllTasks(tasks: any): Promise<any>;
31
+ plotDirectionsForSelectedTask(task: any): void;
32
+ getSelectedTaskDistanceAndTime(): any;
33
+ setSelectedTaskDistanceAndTime(): void;
34
+ sortTasksAsPerDistance(order: any, tasks: any, isMarker: any): any[];
35
+ setRoutes(markers: any, styles: any): any;
36
+ fitMapBounds(): void;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpenStreetMapsService, never>;
38
+ static ɵprov: i0.ɵɵInjectableDeclaration<OpenStreetMapsService>;
39
+ }
@@ -1,4 +1,4 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnInit } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class AgentInfoComponent implements OnInit {
4
4
  constructor();
@@ -1,11 +1,11 @@
1
- import { ElementRef, OnInit } from '@angular/core';
1
+ import { ElementRef, OnInit } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class BottomSheetComponent implements OnInit {
4
4
  parentElement: ElementRef<HTMLVideoElement>;
5
5
  constructor();
6
6
  ngOnInit(): Promise<void>;
7
7
  isSwipeActive: boolean;
8
- swipeDirection: 'UP' | 'DOWN';
8
+ swipeDirection: "UP" | "DOWN";
9
9
  startY: number;
10
10
  startHeight: number;
11
11
  height: number;
@@ -1,4 +1,4 @@
1
- import { OnInit, SimpleChanges } from '@angular/core';
1
+ import { OnInit, SimpleChanges } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class MapViewComponent implements OnInit {
4
4
  mapConfig: any;
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class PrimaryActionsComponent implements OnInit, OnChanges {
4
4
  primaryActionsConfig: any;
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
1
+ import { EventEmitter, OnInit, SimpleChanges } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TaskDetailComponent implements OnInit {
4
4
  config: any;
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TaskItemComponent implements OnInit {
4
4
  config: any;
@@ -1,4 +1,4 @@
1
- import { OnInit, SimpleChanges } from '@angular/core';
1
+ import { OnInit, SimpleChanges } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TaskItemStatusComponent implements OnInit {
4
4
  config: any;
@@ -1,7 +1,7 @@
1
- import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
2
- import { FormControl, FormGroup } from '@angular/forms';
3
- import { TuiDay } from '@taiga-ui/cdk';
4
- import { KwikUILoaderService } from 'kwikui';
1
+ import { EventEmitter, OnInit, SimpleChanges } from "@angular/core";
2
+ import { FormControl, FormGroup } from "@angular/forms";
3
+ import { TuiDay } from "@taiga-ui/cdk";
4
+ import { KwikUILoaderService } from "kwikui";
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class TaskListComponent implements OnInit {
7
7
  private loaderService;
@@ -1,6 +1,6 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { FormControl, FormGroup } from '@angular/forms';
3
- import { TuiDay } from '@taiga-ui/cdk';
1
+ import { EventEmitter, OnInit } from "@angular/core";
2
+ import { FormControl, FormGroup } from "@angular/forms";
3
+ import { TuiDay } from "@taiga-ui/cdk";
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class TaskListSearchComponent implements OnInit {
6
6
  config: any;
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TaskPreviewComponent implements OnInit {
4
4
  config: any;
@@ -0,0 +1,17 @@
1
+ import { EventEmitter, OnInit, SimpleChanges } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class KwikIDAgentDashboardComponentV2 implements OnInit {
4
+ config: any;
5
+ userConfig: any;
6
+ agentInfo: any;
7
+ taskList: Array<any>;
8
+ onGetTaskList: EventEmitter<any>;
9
+ onClickPerformAction: EventEmitter<any>;
10
+ constructor();
11
+ ngOnInit(): void;
12
+ ngOnChanges(changes: SimpleChanges): void;
13
+ handleOnGetTaskList(event: any): void;
14
+ handleOnClickPerformAction(event: any): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDAgentDashboardComponentV2, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<KwikIDAgentDashboardComponentV2, "kwikid-agent-dashboard-v2", never, { "config": "config"; "userConfig": "userConfig"; "agentInfo": "agentInfo"; "taskList": "taskList"; }, { "onGetTaskList": "onGetTaskList"; "onClickPerformAction": "onClickPerformAction"; }, never, never>;
17
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./kwikid-agent-dashboard.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "kwikui";
6
+ import * as i5 from "kwikid-forms";
7
+ import * as i6 from "./layout/layout.module";
8
+ import * as i7 from "./components/components.module";
9
+ export declare class KwikIDAgentDashboardModuleV2 {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDAgentDashboardModuleV2, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDAgentDashboardModuleV2, [typeof i1.KwikIDAgentDashboardComponentV2], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.KwikUIModule, typeof i5.KwikIDFormsModule, typeof i6.LayoutModule, typeof i7.ComponentModule], [typeof i1.KwikIDAgentDashboardComponentV2]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<KwikIDAgentDashboardModuleV2>;
13
+ }
@@ -1,6 +1,6 @@
1
- import { ElementRef, EventEmitter, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
2
- import { TuiPreviewDialogService } from '@taiga-ui/addon-preview';
3
- import { TuiDialogContext, TuiDialogService } from '@taiga-ui/core';
1
+ import { ElementRef, EventEmitter, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
2
+ import { TuiPreviewDialogService } from "@taiga-ui/addon-preview";
3
+ import { TuiDialogContext, TuiDialogService } from "@taiga-ui/core";
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class LayoutBodyComponent implements OnInit {
6
6
  private hostElement;
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class LayoutHeaderComponent implements OnInit {
4
4
  config: any;