kwikid-agent-dashboard 0.0.12 → 0.0.13

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.
@@ -6,12 +6,16 @@ import { TuiDialogContext, TuiDialogService } from '@taiga-ui/core';
6
6
  import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
7
7
  import { Observable } from 'rxjs';
8
8
  import { MapService } from './services/map.service';
9
+ import { UserService } from './services/user.service';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class KwikIDAgentDashboardComponent implements OnInit {
11
12
  mapService: MapService;
13
+ userService: UserService;
12
14
  httpClient: HttpClient;
13
15
  private hostElement;
14
16
  private readonly dialogService;
17
+ windowResizeWatcher(): void;
18
+ isMobileView: any;
15
19
  agentConfig: any;
16
20
  taskList: Array<any>;
17
21
  nextStep: EventEmitter<any>;
@@ -20,197 +24,15 @@ export declare class KwikIDAgentDashboardComponent implements OnInit {
20
24
  filterTaskList: EventEmitter<any>;
21
25
  loading: boolean;
22
26
  apiLoaded: Observable<boolean>;
23
- showMapview: boolean;
24
- isMobileView: boolean;
25
- listOpen: boolean;
26
27
  readonly options: Partial<TuiSheetOptions>;
27
- addTaskFormConfig: {
28
- key: string;
29
- title: string;
30
- fields: ({
31
- key: string;
32
- label: string;
33
- disabled: boolean;
34
- messages: any[];
35
- default: {
36
- value: {
37
- is_found: boolean;
38
- value: string;
39
- sources: {
40
- key: string;
41
- props: {
42
- object: {
43
- key: string;
44
- path: string;
45
- };
46
- };
47
- value: string;
48
- validation: {
49
- is_valid: boolean;
50
- triggers: string[];
51
- rules: {
52
- id: string;
53
- key: string;
54
- props: {
55
- value: {
56
- source: {
57
- key: string;
58
- props: {
59
- object: {
60
- key: string;
61
- path: string;
62
- };
63
- };
64
- };
65
- };
66
- pattern: {
67
- key: string;
68
- };
69
- };
70
- }[];
71
- actions: {
72
- id: string;
73
- key: string;
74
- condition: string;
75
- props: {
76
- fieldKey: string;
77
- value: {
78
- source: {
79
- key: string;
80
- props: {
81
- object: {
82
- key: string;
83
- path: string;
84
- };
85
- };
86
- };
87
- };
88
- };
89
- }[];
90
- };
91
- }[];
92
- };
93
- };
94
- validators: {
95
- required: boolean;
96
- };
97
- properties: {
98
- placeholder: string;
99
- readOnly: boolean;
100
- case: string;
101
- countryCode?: undefined;
102
- removeCountryCodeFromValue?: undefined;
103
- phoneMaskAfterCountryCode?: undefined;
104
- };
105
- type: string;
106
- } | {
107
- key: string;
108
- label: string;
109
- disabled: boolean;
110
- messages: any[];
111
- default: {
112
- value: {
113
- is_found: boolean;
114
- value: string;
115
- sources: {
116
- key: string;
117
- props: {
118
- object: {
119
- key: string;
120
- path: string;
121
- };
122
- };
123
- value: string;
124
- validation: {
125
- is_valid: boolean;
126
- triggers: string[];
127
- rules: {
128
- id: string;
129
- key: string;
130
- props: {
131
- value: {
132
- source: {
133
- key: string;
134
- props: {
135
- object: {
136
- key: string;
137
- path: string;
138
- };
139
- };
140
- };
141
- };
142
- pattern: {
143
- key: string;
144
- };
145
- };
146
- }[];
147
- actions: {
148
- id: string;
149
- key: string;
150
- condition: string;
151
- props: {
152
- fieldKey: string;
153
- value: {
154
- source: {
155
- key: string;
156
- props: {
157
- object: {
158
- key: string;
159
- path: string;
160
- };
161
- };
162
- };
163
- };
164
- };
165
- }[];
166
- };
167
- }[];
168
- };
169
- };
170
- validators: {
171
- required: boolean;
172
- };
173
- properties: {
174
- countryCode: string;
175
- removeCountryCodeFromValue: boolean;
176
- phoneMaskAfterCountryCode: string;
177
- placeholder: string;
178
- readOnly: boolean;
179
- case?: undefined;
180
- };
181
- type: string;
182
- })[];
183
- properties: {
184
- header: {
185
- title: {
186
- hidden: boolean;
187
- label: string;
188
- };
189
- steps: {
190
- hidden: boolean;
191
- };
192
- };
193
- footer: {
194
- viewFormsButton: {
195
- hidden: boolean;
196
- label: string;
197
- };
198
- saveButton: {
199
- hidden: boolean;
200
- label: string;
201
- };
202
- };
203
- };
204
- };
205
28
  infoWindow: MapInfoWindow;
206
- constructor(mapService: MapService, httpClient: HttpClient, hostElement: ElementRef, dialogService: TuiDialogService);
29
+ constructor(mapService: MapService, userService: UserService, httpClient: HttpClient, hostElement: ElementRef, dialogService: TuiDialogService);
207
30
  ngOnInit(): void;
208
31
  goToNextStep(e: any): void;
209
32
  handleOnClickAddTask(task: any): void;
210
33
  handleOnClickRemoveTask(task: any): void;
211
34
  handleOnFilterTaskList(filter: any): void;
212
35
  refresh(): void;
213
- toggleMapview(): void;
214
36
  open: boolean;
215
37
  onClick(): void;
216
38
  allFormsData: {};
@@ -4,18 +4,19 @@ import * as i2 from "./components/customer-list/customer-list.component";
4
4
  import * as i3 from "./components/customer-tile/customer-tile.component";
5
5
  import * as i4 from "./pipes/search-filter.pipe";
6
6
  import * as i5 from "./components/customer-tile/status-pill/status-pill.component";
7
- import * as i6 from "@angular/common";
8
- import * as i7 from "@angular/common/http";
9
- import * as i8 from "@angular/forms";
10
- import * as i9 from "kwikui";
11
- import * as i10 from "kwikid-forms";
12
- import * as i11 from "@taiga-ui/core";
13
- import * as i12 from "@taiga-ui/addon-mobile";
14
- import * as i13 from "@taiga-ui/cdk";
15
- import * as i14 from "@angular/cdk/scrolling";
16
- import * as i15 from "@angular/google-maps";
7
+ import * as i6 from "./components/customer-details/customer-details.component";
8
+ import * as i7 from "@angular/common";
9
+ import * as i8 from "@angular/common/http";
10
+ import * as i9 from "@angular/forms";
11
+ import * as i10 from "kwikui";
12
+ import * as i11 from "kwikid-forms";
13
+ import * as i12 from "@taiga-ui/core";
14
+ import * as i13 from "@taiga-ui/addon-mobile";
15
+ import * as i14 from "@taiga-ui/cdk";
16
+ import * as i15 from "@angular/cdk/scrolling";
17
+ import * as i16 from "@angular/google-maps";
17
18
  export declare class KwikIDAgentDashboardModule {
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDAgentDashboardModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDAgentDashboardModule, [typeof i1.KwikIDAgentDashboardComponent, typeof i2.CustomerListComponent, typeof i3.CustomerTileComponent, typeof i4.Ng2SearchPipe, typeof i5.StatusPillComponent], [typeof i6.CommonModule, typeof i7.HttpClientModule, typeof i8.FormsModule, typeof i8.ReactiveFormsModule, typeof i9.KwikUIButtonModule, typeof i9.KwikUIButtonIconModule, typeof i9.KwikUIInputModule, typeof i9.KwikUIInputDateModule, typeof i9.KwikUIInputDateRangeModule, typeof i9.KwikUISelectComboboxModule, typeof i9.KwikUITableModule, typeof i9.KwikUITablePaginationModule, typeof i10.KwikIDFormViewModule, typeof i11.TuiRootModule, typeof i11.TuiDialogModule, typeof i11.TuiDropdownModule, typeof i12.TuiSidebarModule, typeof i13.TuiActiveZoneModule, typeof i11.TuiGroupModule, typeof i11.TuiSvgModule, typeof i14.ScrollingModule, typeof i15.GoogleMapsModule, typeof i7.HttpClientModule, typeof i7.HttpClientJsonpModule], [typeof i1.KwikIDAgentDashboardComponent]>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDAgentDashboardModule, [typeof i1.KwikIDAgentDashboardComponent, typeof i2.CustomerListComponent, typeof i3.CustomerTileComponent, typeof i4.Ng2SearchPipe, typeof i5.StatusPillComponent, typeof i6.CustomerDetailsComponent], [typeof i7.CommonModule, typeof i8.HttpClientModule, typeof i9.FormsModule, typeof i9.ReactiveFormsModule, typeof i10.KwikUIButtonModule, typeof i10.KwikUIButtonIconModule, typeof i10.KwikUIInputModule, typeof i10.KwikUIInputDateModule, typeof i10.KwikUIInputDateRangeModule, typeof i10.KwikUISelectComboboxModule, typeof i10.KwikUITableModule, typeof i10.KwikUITablePaginationModule, typeof i11.KwikIDFormViewModule, typeof i12.TuiRootModule, typeof i12.TuiDialogModule, typeof i12.TuiDropdownModule, typeof i13.TuiSidebarModule, typeof i14.TuiActiveZoneModule, typeof i12.TuiGroupModule, typeof i12.TuiSvgModule, typeof i15.ScrollingModule, typeof i16.GoogleMapsModule, typeof i8.HttpClientModule, typeof i8.HttpClientJsonpModule], [typeof i1.KwikIDAgentDashboardComponent]>;
20
21
  static ɵinj: i0.ɵɵInjectorDeclaration<KwikIDAgentDashboardModule>;
21
22
  }
@@ -0,0 +1,192 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class UserService {
3
+ agentConfig: any;
4
+ isListOpen: boolean;
5
+ isMobileView: any;
6
+ showMapview: boolean;
7
+ showTaskDetails: number;
8
+ addTaskFormConfig: {
9
+ key: string;
10
+ title: string;
11
+ fields: ({
12
+ key: string;
13
+ label: string;
14
+ disabled: boolean;
15
+ messages: any[];
16
+ default: {
17
+ value: {
18
+ is_found: boolean;
19
+ value: string;
20
+ sources: {
21
+ key: string;
22
+ props: {
23
+ object: {
24
+ key: string;
25
+ path: string;
26
+ };
27
+ };
28
+ value: string;
29
+ validation: {
30
+ is_valid: boolean;
31
+ triggers: string[];
32
+ rules: {
33
+ id: string;
34
+ key: string;
35
+ props: {
36
+ value: {
37
+ source: {
38
+ key: string;
39
+ props: {
40
+ object: {
41
+ key: string;
42
+ path: string;
43
+ };
44
+ };
45
+ };
46
+ };
47
+ pattern: {
48
+ key: string;
49
+ };
50
+ };
51
+ }[];
52
+ actions: {
53
+ id: string;
54
+ key: string;
55
+ condition: string;
56
+ props: {
57
+ fieldKey: string;
58
+ value: {
59
+ source: {
60
+ key: string;
61
+ props: {
62
+ object: {
63
+ key: string;
64
+ path: string;
65
+ };
66
+ };
67
+ };
68
+ };
69
+ };
70
+ }[];
71
+ };
72
+ }[];
73
+ };
74
+ };
75
+ validators: {
76
+ required: boolean;
77
+ };
78
+ properties: {
79
+ placeholder: string;
80
+ readOnly: boolean;
81
+ case: string;
82
+ countryCode?: undefined;
83
+ removeCountryCodeFromValue?: undefined;
84
+ phoneMaskAfterCountryCode?: undefined;
85
+ };
86
+ type: string;
87
+ } | {
88
+ key: string;
89
+ label: string;
90
+ disabled: boolean;
91
+ messages: any[];
92
+ default: {
93
+ value: {
94
+ is_found: boolean;
95
+ value: string;
96
+ sources: {
97
+ key: string;
98
+ props: {
99
+ object: {
100
+ key: string;
101
+ path: string;
102
+ };
103
+ };
104
+ value: string;
105
+ validation: {
106
+ is_valid: boolean;
107
+ triggers: string[];
108
+ rules: {
109
+ id: string;
110
+ key: string;
111
+ props: {
112
+ value: {
113
+ source: {
114
+ key: string;
115
+ props: {
116
+ object: {
117
+ key: string;
118
+ path: string;
119
+ };
120
+ };
121
+ };
122
+ };
123
+ pattern: {
124
+ key: string;
125
+ };
126
+ };
127
+ }[];
128
+ actions: {
129
+ id: string;
130
+ key: string;
131
+ condition: string;
132
+ props: {
133
+ fieldKey: string;
134
+ value: {
135
+ source: {
136
+ key: string;
137
+ props: {
138
+ object: {
139
+ key: string;
140
+ path: string;
141
+ };
142
+ };
143
+ };
144
+ };
145
+ };
146
+ }[];
147
+ };
148
+ }[];
149
+ };
150
+ };
151
+ validators: {
152
+ required: boolean;
153
+ };
154
+ properties: {
155
+ countryCode: string;
156
+ removeCountryCodeFromValue: boolean;
157
+ phoneMaskAfterCountryCode: string;
158
+ placeholder: string;
159
+ readOnly: boolean;
160
+ case?: undefined;
161
+ };
162
+ type: string;
163
+ })[];
164
+ properties: {
165
+ header: {
166
+ title: {
167
+ hidden: boolean;
168
+ label: string;
169
+ };
170
+ steps: {
171
+ hidden: boolean;
172
+ };
173
+ };
174
+ footer: {
175
+ viewFormsButton: {
176
+ hidden: boolean;
177
+ label: string;
178
+ };
179
+ saveButton: {
180
+ hidden: boolean;
181
+ label: string;
182
+ };
183
+ };
184
+ };
185
+ };
186
+ constructor();
187
+ ngOnInit(): void;
188
+ setAgentConfig(agentConfig: any): void;
189
+ toggleMapview(): void;
190
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
191
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
192
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwikid-agent-dashboard",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "KwikID's EKYC Agent Map View Module.",
5
5
  "author": {
6
6
  "name": "Gaurang Thakker"