kwikid-agent-dashboard 0.0.15 → 0.0.16
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/bundles/kwikid-agent-dashboard.umd.js +1859 -1862
- package/bundles/kwikid-agent-dashboard.umd.js.map +1 -1
- package/esm2015/lib/components/customer-details/customer-details.component.js +2 -2
- package/esm2015/lib/components/customer-tile/customer-tile.component.js +2 -2
- package/esm2015/lib/kwikid-agent-dashboard.component.js +2 -2
- package/esm2015/lib/kwikid-agent-dashboard.module.js +5 -8
- package/fesm2015/kwikid-agent-dashboard.js +7 -10
- package/fesm2015/kwikid-agent-dashboard.js.map +1 -1
- package/lib/kwikid-agent-dashboard.module.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,1197 +1,1197 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/google-maps'), require('@taiga-ui/core'), require('rxjs'), require('rxjs/operators'), require('@angular/common/http'), require('kwikui'), require('kwikid-toolkit'), require('@angular/common'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@angular/cdk/scrolling'), require('kwikid-forms'), require('@taiga-ui/addon-mobile')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('kwikid-agent-dashboard', ['exports', '@angular/core', '@angular/google-maps', '@taiga-ui/core', 'rxjs', 'rxjs/operators', '@angular/common/http', 'kwikui', 'kwikid-toolkit', '@angular/common', '@angular/forms', '@taiga-ui/cdk', '@angular/cdk/scrolling', 'kwikid-forms', '@taiga-ui/addon-mobile'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["kwikid-agent-dashboard"] = {}, global.ng.core, global.ng.googleMaps, global["@taiga-ui/core"], global.rxjs, global.rxjs.operators, global.ng.common.http, global.i2, global.kwikidToolkit, global.ng.common, global.ng.forms, global["@taiga-ui/cdk"], global.ng.cdk.scrolling, global.i8, global["@taiga-ui/addon-mobile"]));
|
|
5
5
|
})(this, (function (exports, i0, i5, i11, rxjs, operators, i3$1, i2, kwikidToolkit, i6, i5$1, i10, i3, i8, addonMobile) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
});
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
20
18
|
}
|
|
21
|
-
|
|
22
|
-
return Object.freeze(n);
|
|
19
|
+
});
|
|
23
20
|
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
27
|
+
var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
|
|
28
|
+
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
29
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
30
|
+
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
31
|
+
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
32
|
+
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
33
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
34
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
/******************************************************************************
|
|
37
|
+
Copyright (c) Microsoft Corporation.
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
40
|
+
purpose with or without fee is hereby granted.
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
42
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
43
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
44
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
45
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
46
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
47
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
48
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
49
|
+
***************************************************************************** */
|
|
50
|
+
/* global Reflect, Promise */
|
|
51
|
+
var extendStatics = function (d, b) {
|
|
52
|
+
extendStatics = Object.setPrototypeOf ||
|
|
53
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
54
|
+
function (d, b) { for (var p in b)
|
|
55
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
56
|
+
d[p] = b[p]; };
|
|
57
|
+
return extendStatics(d, b);
|
|
58
|
+
};
|
|
59
|
+
function __extends(d, b) {
|
|
60
|
+
if (typeof b !== "function" && b !== null)
|
|
61
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
62
|
+
extendStatics(d, b);
|
|
63
|
+
function __() { this.constructor = d; }
|
|
64
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
65
|
+
}
|
|
66
|
+
var __assign = function () {
|
|
67
|
+
__assign = Object.assign || function __assign(t) {
|
|
68
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
69
|
+
s = arguments[i];
|
|
70
|
+
for (var p in s)
|
|
71
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
72
|
+
t[p] = s[p];
|
|
73
|
+
}
|
|
74
|
+
return t;
|
|
75
|
+
};
|
|
76
|
+
return __assign.apply(this, arguments);
|
|
77
|
+
};
|
|
78
|
+
function __rest(s, e) {
|
|
79
|
+
var t = {};
|
|
80
|
+
for (var p in s)
|
|
81
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
82
|
+
t[p] = s[p];
|
|
83
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
84
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
85
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
86
|
+
t[p[i]] = s[p[i]];
|
|
87
|
+
}
|
|
88
|
+
return t;
|
|
89
|
+
}
|
|
90
|
+
function __decorate(decorators, target, key, desc) {
|
|
91
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
92
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
93
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
94
|
+
else
|
|
95
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
96
|
+
if (d = decorators[i])
|
|
97
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
98
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
99
|
+
}
|
|
100
|
+
function __param(paramIndex, decorator) {
|
|
101
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
102
|
+
}
|
|
103
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
104
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
105
|
+
throw new TypeError("Function expected"); return f; }
|
|
106
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
107
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
108
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
109
|
+
var _, done = false;
|
|
110
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
111
|
+
var context = {};
|
|
112
|
+
for (var p in contextIn)
|
|
113
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
114
|
+
for (var p in contextIn.access)
|
|
115
|
+
context.access[p] = contextIn.access[p];
|
|
116
|
+
context.addInitializer = function (f) { if (done)
|
|
117
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
118
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
119
|
+
if (kind === "accessor") {
|
|
120
|
+
if (result === void 0)
|
|
121
|
+
continue;
|
|
122
|
+
if (result === null || typeof result !== "object")
|
|
123
|
+
throw new TypeError("Object expected");
|
|
124
|
+
if (_ = accept(result.get))
|
|
125
|
+
descriptor.get = _;
|
|
126
|
+
if (_ = accept(result.set))
|
|
127
|
+
descriptor.set = _;
|
|
128
|
+
if (_ = accept(result.init))
|
|
129
|
+
initializers.unshift(_);
|
|
130
|
+
}
|
|
131
|
+
else if (_ = accept(result)) {
|
|
132
|
+
if (kind === "field")
|
|
133
|
+
initializers.unshift(_);
|
|
134
|
+
else
|
|
135
|
+
descriptor[key] = _;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
if (target)
|
|
139
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
140
|
+
done = true;
|
|
141
|
+
}
|
|
142
|
+
;
|
|
143
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
144
|
+
var useValue = arguments.length > 2;
|
|
145
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
146
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
147
|
+
}
|
|
148
|
+
return useValue ? value : void 0;
|
|
149
|
+
}
|
|
150
|
+
;
|
|
151
|
+
function __propKey(x) {
|
|
152
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
153
|
+
}
|
|
154
|
+
;
|
|
155
|
+
function __setFunctionName(f, name, prefix) {
|
|
156
|
+
if (typeof name === "symbol")
|
|
157
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
158
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
159
|
+
}
|
|
160
|
+
;
|
|
161
|
+
function __metadata(metadataKey, metadataValue) {
|
|
162
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
163
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
164
|
+
}
|
|
165
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
166
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
167
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
168
|
+
function fulfilled(value) { try {
|
|
169
|
+
step(generator.next(value));
|
|
170
|
+
}
|
|
171
|
+
catch (e) {
|
|
172
|
+
reject(e);
|
|
173
|
+
} }
|
|
174
|
+
function rejected(value) { try {
|
|
175
|
+
step(generator["throw"](value));
|
|
176
|
+
}
|
|
177
|
+
catch (e) {
|
|
178
|
+
reject(e);
|
|
179
|
+
} }
|
|
180
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
181
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
function __generator(thisArg, body) {
|
|
185
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
186
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
187
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
188
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
189
|
+
function step(op) {
|
|
190
|
+
if (f)
|
|
191
|
+
throw new TypeError("Generator is already executing.");
|
|
192
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
193
|
+
try {
|
|
194
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
195
|
+
return t;
|
|
196
|
+
if (y = 0, t)
|
|
197
|
+
op = [op[0] & 2, t.value];
|
|
198
|
+
switch (op[0]) {
|
|
199
|
+
case 0:
|
|
200
|
+
case 1:
|
|
201
|
+
t = op;
|
|
202
|
+
break;
|
|
203
|
+
case 4:
|
|
204
|
+
_.label++;
|
|
205
|
+
return { value: op[1], done: false };
|
|
206
|
+
case 5:
|
|
207
|
+
_.label++;
|
|
208
|
+
y = op[1];
|
|
209
|
+
op = [0];
|
|
210
|
+
continue;
|
|
211
|
+
case 7:
|
|
212
|
+
op = _.ops.pop();
|
|
213
|
+
_.trys.pop();
|
|
214
|
+
continue;
|
|
215
|
+
default:
|
|
216
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
217
|
+
_ = 0;
|
|
218
|
+
continue;
|
|
219
|
+
}
|
|
220
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
221
|
+
_.label = op[1];
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
225
|
+
_.label = t[1];
|
|
226
|
+
t = op;
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
if (t && _.label < t[2]) {
|
|
230
|
+
_.label = t[2];
|
|
231
|
+
_.ops.push(op);
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
if (t[2])
|
|
235
|
+
_.ops.pop();
|
|
236
|
+
_.trys.pop();
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
op = body.call(thisArg, _);
|
|
240
|
+
}
|
|
241
|
+
catch (e) {
|
|
242
|
+
op = [6, e];
|
|
243
|
+
y = 0;
|
|
244
|
+
}
|
|
245
|
+
finally {
|
|
246
|
+
f = t = 0;
|
|
247
|
+
}
|
|
248
|
+
if (op[0] & 5)
|
|
249
|
+
throw op[1];
|
|
250
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
254
|
+
if (k2 === undefined)
|
|
255
|
+
k2 = k;
|
|
256
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
257
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
258
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
259
|
+
}
|
|
260
|
+
Object.defineProperty(o, k2, desc);
|
|
261
|
+
}) : (function (o, m, k, k2) {
|
|
262
|
+
if (k2 === undefined)
|
|
263
|
+
k2 = k;
|
|
264
|
+
o[k2] = m[k];
|
|
265
|
+
});
|
|
266
|
+
function __exportStar(m, o) {
|
|
267
|
+
for (var p in m)
|
|
268
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
269
|
+
__createBinding(o, m, p);
|
|
270
|
+
}
|
|
271
|
+
function __values(o) {
|
|
272
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
273
|
+
if (m)
|
|
274
|
+
return m.call(o);
|
|
275
|
+
if (o && typeof o.length === "number")
|
|
276
|
+
return {
|
|
277
|
+
next: function () {
|
|
278
|
+
if (o && i >= o.length)
|
|
279
|
+
o = void 0;
|
|
280
|
+
return { value: o && o[i++], done: !o };
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
284
|
+
}
|
|
285
|
+
function __read(o, n) {
|
|
286
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
287
|
+
if (!m)
|
|
288
|
+
return o;
|
|
289
|
+
var i = m.call(o), r, ar = [], e;
|
|
290
|
+
try {
|
|
291
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
292
|
+
ar.push(r.value);
|
|
293
|
+
}
|
|
294
|
+
catch (error) {
|
|
295
|
+
e = { error: error };
|
|
296
|
+
}
|
|
297
|
+
finally {
|
|
298
|
+
try {
|
|
299
|
+
if (r && !r.done && (m = i["return"]))
|
|
300
|
+
m.call(i);
|
|
301
|
+
}
|
|
302
|
+
finally {
|
|
303
|
+
if (e)
|
|
304
|
+
throw e.error;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
return ar;
|
|
308
|
+
}
|
|
309
|
+
/** @deprecated */
|
|
310
|
+
function __spread() {
|
|
311
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
312
|
+
ar = ar.concat(__read(arguments[i]));
|
|
313
|
+
return ar;
|
|
314
|
+
}
|
|
315
|
+
/** @deprecated */
|
|
316
|
+
function __spreadArrays() {
|
|
317
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
318
|
+
s += arguments[i].length;
|
|
319
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
320
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
321
|
+
r[k] = a[j];
|
|
322
|
+
return r;
|
|
323
|
+
}
|
|
324
|
+
function __spreadArray(to, from, pack) {
|
|
325
|
+
if (pack || arguments.length === 2)
|
|
326
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
327
|
+
if (ar || !(i in from)) {
|
|
328
|
+
if (!ar)
|
|
329
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
330
|
+
ar[i] = from[i];
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
334
|
+
}
|
|
335
|
+
function __await(v) {
|
|
336
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
337
|
+
}
|
|
338
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
339
|
+
if (!Symbol.asyncIterator)
|
|
340
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
341
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
342
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
343
|
+
function verb(n) { if (g[n])
|
|
344
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
345
|
+
function resume(n, v) { try {
|
|
346
|
+
step(g[n](v));
|
|
347
|
+
}
|
|
348
|
+
catch (e) {
|
|
349
|
+
settle(q[0][3], e);
|
|
350
|
+
} }
|
|
351
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
352
|
+
function fulfill(value) { resume("next", value); }
|
|
353
|
+
function reject(value) { resume("throw", value); }
|
|
354
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
355
|
+
resume(q[0][0], q[0][1]); }
|
|
356
|
+
}
|
|
357
|
+
function __asyncDelegator(o) {
|
|
358
|
+
var i, p;
|
|
359
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
360
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
361
|
+
}
|
|
362
|
+
function __asyncValues(o) {
|
|
363
|
+
if (!Symbol.asyncIterator)
|
|
364
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
365
|
+
var m = o[Symbol.asyncIterator], i;
|
|
366
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
367
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
368
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
369
|
+
}
|
|
370
|
+
function __makeTemplateObject(cooked, raw) {
|
|
371
|
+
if (Object.defineProperty) {
|
|
372
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
cooked.raw = raw;
|
|
376
|
+
}
|
|
377
|
+
return cooked;
|
|
378
|
+
}
|
|
379
|
+
;
|
|
380
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
381
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
382
|
+
}) : function (o, v) {
|
|
383
|
+
o["default"] = v;
|
|
384
|
+
};
|
|
385
|
+
function __importStar(mod) {
|
|
386
|
+
if (mod && mod.__esModule)
|
|
387
|
+
return mod;
|
|
388
|
+
var result = {};
|
|
389
|
+
if (mod != null)
|
|
390
|
+
for (var k in mod)
|
|
391
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
392
|
+
__createBinding(result, mod, k);
|
|
393
|
+
__setModuleDefault(result, mod);
|
|
394
|
+
return result;
|
|
395
|
+
}
|
|
396
|
+
function __importDefault(mod) {
|
|
397
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
398
|
+
}
|
|
399
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
400
|
+
if (kind === "a" && !f)
|
|
401
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
402
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
403
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
404
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
405
|
+
}
|
|
406
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
407
|
+
if (kind === "m")
|
|
408
|
+
throw new TypeError("Private method is not writable");
|
|
409
|
+
if (kind === "a" && !f)
|
|
410
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
411
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
412
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
413
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
414
|
+
}
|
|
415
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
416
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
417
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
418
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
419
|
+
}
|
|
420
|
+
var tslib_es6 = {
|
|
421
|
+
__extends: __extends,
|
|
422
|
+
__assign: __assign,
|
|
423
|
+
__rest: __rest,
|
|
424
|
+
__decorate: __decorate,
|
|
425
|
+
__param: __param,
|
|
426
|
+
__metadata: __metadata,
|
|
427
|
+
__awaiter: __awaiter,
|
|
428
|
+
__generator: __generator,
|
|
429
|
+
__createBinding: __createBinding,
|
|
430
|
+
__exportStar: __exportStar,
|
|
431
|
+
__values: __values,
|
|
432
|
+
__read: __read,
|
|
433
|
+
__spread: __spread,
|
|
434
|
+
__spreadArrays: __spreadArrays,
|
|
435
|
+
__spreadArray: __spreadArray,
|
|
436
|
+
__await: __await,
|
|
437
|
+
__asyncGenerator: __asyncGenerator,
|
|
438
|
+
__asyncDelegator: __asyncDelegator,
|
|
439
|
+
__asyncValues: __asyncValues,
|
|
440
|
+
__makeTemplateObject: __makeTemplateObject,
|
|
441
|
+
__importStar: __importStar,
|
|
442
|
+
__importDefault: __importDefault,
|
|
443
|
+
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
444
|
+
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
445
|
+
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
446
|
+
};
|
|
447
447
|
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
448
|
+
var MapService = /** @class */ (function () {
|
|
449
|
+
function MapService(mapDirectionsService) {
|
|
450
|
+
this.mapDirectionsService = mapDirectionsService;
|
|
451
|
+
this.markers = [];
|
|
452
|
+
this.directionsRenderOption = {};
|
|
453
|
+
}
|
|
454
|
+
MapService.prototype.getMarkers = function () {
|
|
455
|
+
return this.markers;
|
|
456
|
+
};
|
|
457
|
+
MapService.prototype.setMarkers = function (markers) {
|
|
458
|
+
this.markers = markers;
|
|
459
|
+
};
|
|
460
|
+
MapService.prototype.initMap = function () {
|
|
461
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
462
|
+
var _a;
|
|
463
|
+
return __generator(this, function (_b) {
|
|
464
|
+
switch (_b.label) {
|
|
465
|
+
case 0:
|
|
466
|
+
_a = this;
|
|
467
|
+
return [4 /*yield*/, this.getPosition()];
|
|
468
|
+
case 1:
|
|
469
|
+
_a.myPosition = _b.sent();
|
|
470
|
+
this.map = {
|
|
471
|
+
zoom: 10,
|
|
472
|
+
center: this.myPosition,
|
|
473
|
+
streetViewControl: false,
|
|
474
|
+
mapTypeControl: false,
|
|
475
|
+
fullscreenControl: false,
|
|
476
|
+
zoomControl: false
|
|
477
|
+
};
|
|
478
|
+
return [2 /*return*/];
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
});
|
|
482
|
+
};
|
|
483
|
+
MapService.prototype.plotMarkers = function (customers) {
|
|
484
|
+
var _this = this;
|
|
485
|
+
this.markers = [];
|
|
486
|
+
var path = [];
|
|
487
|
+
this.markers.push(this.myPosition);
|
|
488
|
+
customers.map(function (customer) {
|
|
489
|
+
path.push({
|
|
490
|
+
location: _this.getLatLng(customer.task_details.customer_details.location),
|
|
491
|
+
stopover: true
|
|
492
|
+
});
|
|
493
|
+
});
|
|
494
|
+
var request = {
|
|
495
|
+
origin: this.myPosition,
|
|
496
|
+
destination: this.myPosition,
|
|
497
|
+
waypoints: path,
|
|
498
|
+
optimizeWaypoints: true,
|
|
499
|
+
travelMode: google.maps.TravelMode.DRIVING
|
|
500
|
+
};
|
|
501
|
+
this.directionsRenderOption = {
|
|
502
|
+
suppressMarkers: true
|
|
503
|
+
};
|
|
504
|
+
this.directionsResults$ = this.mapDirectionsService
|
|
505
|
+
.route(request)
|
|
506
|
+
.pipe(operators.map(function (response) { return response.result; }));
|
|
507
|
+
this.directionsResults$.subscribe(function (val) {
|
|
508
|
+
customers = _this.sortList(val.routes[0].waypoint_order, customers);
|
|
509
|
+
customers.map(function (customer) {
|
|
510
|
+
_this.markers.push(_this.getLatLng(customer.task_details.customer_details.location));
|
|
511
|
+
});
|
|
512
|
+
});
|
|
513
|
+
return this.directionsResults$;
|
|
514
|
+
};
|
|
515
|
+
MapService.prototype.getPosition = function () {
|
|
516
|
+
return new Promise(function (resolve, reject) {
|
|
517
|
+
navigator.geolocation.watchPosition(function (resp) {
|
|
518
|
+
resolve({
|
|
519
|
+
lng: resp.coords.longitude,
|
|
520
|
+
lat: resp.coords.latitude
|
|
521
|
+
});
|
|
522
|
+
}, function (err) {
|
|
523
|
+
reject(err);
|
|
524
|
+
});
|
|
525
|
+
});
|
|
526
|
+
};
|
|
527
|
+
MapService.prototype.getLatLng = function (data) {
|
|
528
|
+
var url = data.split('@');
|
|
529
|
+
var lat_long_match = url[1].split(',');
|
|
530
|
+
var lat = Number(lat_long_match[0]);
|
|
531
|
+
var long = Number(lat_long_match[1]);
|
|
532
|
+
return { lat: lat, lng: long };
|
|
533
|
+
};
|
|
534
|
+
MapService.prototype.sortList = function (order, customersData) {
|
|
535
|
+
var c = [];
|
|
536
|
+
for (var i = 0; i < customersData.length; i++) {
|
|
537
|
+
var customer = customersData[order[i]];
|
|
538
|
+
c.push(customer);
|
|
539
|
+
}
|
|
540
|
+
return c;
|
|
541
|
+
};
|
|
542
|
+
return MapService;
|
|
543
|
+
}());
|
|
544
|
+
/** @nocollapse */ MapService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapService, deps: [{ token: i5__namespace.MapDirectionsService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
545
|
+
/** @nocollapse */ MapService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapService, providedIn: 'root' });
|
|
546
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapService, decorators: [{
|
|
547
|
+
type: i0.Injectable,
|
|
548
|
+
args: [{
|
|
549
|
+
providedIn: 'root'
|
|
550
|
+
}]
|
|
551
|
+
}], ctorParameters: function () { return [{ type: i5__namespace.MapDirectionsService }]; }, propDecorators: { directionsRenders: [{
|
|
552
|
+
type: i0.ViewChildren,
|
|
553
|
+
args: ['directionsRender']
|
|
554
|
+
}] } });
|
|
555
555
|
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
556
|
+
var UserService = /** @class */ (function () {
|
|
557
|
+
function UserService() {
|
|
558
|
+
this.isListOpen = true;
|
|
559
|
+
this.showMapview = false;
|
|
560
|
+
this.addTaskFormConfig = {
|
|
561
|
+
key: 'ADD_TASK',
|
|
562
|
+
title: 'Add Task',
|
|
563
|
+
fields: [
|
|
564
|
+
{
|
|
565
|
+
key: 'name',
|
|
566
|
+
label: 'Customer Name',
|
|
567
|
+
disabled: false,
|
|
568
|
+
messages: [],
|
|
569
|
+
default: {
|
|
570
|
+
value: {
|
|
571
|
+
is_found: false,
|
|
572
|
+
value: '',
|
|
573
|
+
sources: [
|
|
574
|
+
{
|
|
575
|
+
key: 'OBJECT',
|
|
576
|
+
props: {
|
|
577
|
+
object: {
|
|
578
|
+
key: 'ALL_FORMS_DATA',
|
|
579
|
+
path: '$.ADD_TASK.name'
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
value: '',
|
|
583
|
+
validation: {
|
|
584
|
+
is_valid: false,
|
|
585
|
+
triggers: ['ON_INIT'],
|
|
586
|
+
rules: [
|
|
587
|
+
{
|
|
588
|
+
id: '1',
|
|
589
|
+
key: 'VALUE_CHECK',
|
|
590
|
+
props: {
|
|
591
|
+
value: {
|
|
592
|
+
source: {
|
|
593
|
+
key: 'OBJECT',
|
|
594
|
+
props: {
|
|
595
|
+
object: {
|
|
596
|
+
key: 'ALL_FORMS_DATA',
|
|
597
|
+
path: '$.ADD_TASK.name'
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
pattern: {
|
|
603
|
+
key: 'IS_NOT_EMPTY'
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
],
|
|
608
|
+
actions: [
|
|
609
|
+
{
|
|
610
|
+
id: '1',
|
|
611
|
+
key: 'SET_FIELD_DEFAULT_VALUE',
|
|
612
|
+
condition: '1',
|
|
613
|
+
props: {
|
|
614
|
+
fieldKey: 'name',
|
|
615
|
+
value: {
|
|
616
|
+
source: {
|
|
617
|
+
key: 'OBJECT',
|
|
618
|
+
props: {
|
|
619
|
+
object: {
|
|
620
|
+
key: 'ALL_FORMS_DATA',
|
|
621
|
+
path: '$.ADD_TASK.name'
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
]
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
]
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
validators: {
|
|
635
|
+
required: true
|
|
636
|
+
},
|
|
637
|
+
properties: {
|
|
638
|
+
placeholder: 'Please enter the Customer Name',
|
|
639
|
+
readOnly: false,
|
|
640
|
+
case: 'default'
|
|
641
|
+
},
|
|
642
|
+
type: 'text'
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
key: 'phone',
|
|
646
|
+
label: 'Phone Number',
|
|
647
|
+
disabled: false,
|
|
648
|
+
messages: [],
|
|
649
|
+
default: {
|
|
650
|
+
value: {
|
|
651
|
+
is_found: false,
|
|
652
|
+
value: '',
|
|
653
|
+
sources: [
|
|
654
|
+
{
|
|
655
|
+
key: 'OBJECT',
|
|
656
|
+
props: {
|
|
657
|
+
object: {
|
|
658
|
+
key: 'ALL_FORMS_DATA',
|
|
659
|
+
path: '$.ADD_TASK.phone'
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
value: '',
|
|
663
|
+
validation: {
|
|
664
|
+
is_valid: false,
|
|
665
|
+
triggers: ['ON_INIT'],
|
|
666
|
+
rules: [
|
|
667
|
+
{
|
|
668
|
+
id: '1',
|
|
669
|
+
key: 'VALUE_CHECK',
|
|
670
|
+
props: {
|
|
671
|
+
value: {
|
|
672
|
+
source: {
|
|
673
|
+
key: 'OBJECT',
|
|
674
|
+
props: {
|
|
675
|
+
object: {
|
|
676
|
+
key: 'ALL_FORMS_DATA',
|
|
677
|
+
path: '$.ADD_TASK.phone'
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
pattern: {
|
|
683
|
+
key: 'IS_NOT_EMPTY'
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
],
|
|
688
|
+
actions: [
|
|
689
|
+
{
|
|
690
|
+
id: '1',
|
|
691
|
+
key: 'SET_FIELD_DEFAULT_VALUE',
|
|
692
|
+
condition: '1',
|
|
693
|
+
props: {
|
|
694
|
+
fieldKey: 'phone',
|
|
695
|
+
value: {
|
|
696
|
+
source: {
|
|
697
|
+
key: 'OBJECT',
|
|
698
|
+
props: {
|
|
699
|
+
object: {
|
|
700
|
+
key: 'ALL_FORMS_DATA',
|
|
701
|
+
path: '$.ADD_TASK.phone'
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
]
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
]
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
validators: {
|
|
715
|
+
required: true
|
|
716
|
+
},
|
|
717
|
+
properties: {
|
|
718
|
+
countryCode: '+91',
|
|
719
|
+
removeCountryCodeFromValue: true,
|
|
720
|
+
phoneMaskAfterCountryCode: '##########',
|
|
721
|
+
placeholder: 'Please enter your Mobile Number',
|
|
722
|
+
readOnly: false
|
|
723
|
+
},
|
|
724
|
+
type: 'phone'
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
key: 'address',
|
|
728
|
+
label: 'Address',
|
|
729
|
+
disabled: false,
|
|
730
|
+
messages: [],
|
|
731
|
+
default: {
|
|
732
|
+
value: {
|
|
733
|
+
is_found: false,
|
|
734
|
+
value: '',
|
|
735
|
+
sources: [
|
|
736
|
+
{
|
|
737
|
+
key: 'OBJECT',
|
|
738
|
+
props: {
|
|
739
|
+
object: {
|
|
740
|
+
key: 'ALL_FORMS_DATA',
|
|
741
|
+
path: '$.ADD_TASK.address'
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
value: '',
|
|
745
|
+
validation: {
|
|
746
|
+
is_valid: false,
|
|
747
|
+
triggers: ['ON_INIT'],
|
|
748
|
+
rules: [
|
|
749
|
+
{
|
|
750
|
+
id: '1',
|
|
751
|
+
key: 'VALUE_CHECK',
|
|
752
|
+
props: {
|
|
753
|
+
value: {
|
|
754
|
+
source: {
|
|
755
|
+
key: 'OBJECT',
|
|
756
|
+
props: {
|
|
757
|
+
object: {
|
|
758
|
+
key: 'ALL_FORMS_DATA',
|
|
759
|
+
path: '$.ADD_TASK.address'
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
pattern: {
|
|
765
|
+
key: 'IS_NOT_EMPTY'
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
],
|
|
770
|
+
actions: [
|
|
771
|
+
{
|
|
772
|
+
id: '1',
|
|
773
|
+
key: 'SET_FIELD_DEFAULT_VALUE',
|
|
774
|
+
condition: '1',
|
|
775
|
+
props: {
|
|
776
|
+
fieldKey: 'address',
|
|
777
|
+
value: {
|
|
778
|
+
source: {
|
|
779
|
+
key: 'OBJECT',
|
|
780
|
+
props: {
|
|
781
|
+
object: {
|
|
782
|
+
key: 'ALL_FORMS_DATA',
|
|
783
|
+
path: '$.ADD_TASK.address'
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
]
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
]
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
validators: {
|
|
797
|
+
required: true
|
|
798
|
+
},
|
|
799
|
+
properties: {
|
|
800
|
+
placeholder: 'Please enter the Address',
|
|
801
|
+
readOnly: false,
|
|
802
|
+
case: 'default'
|
|
803
|
+
},
|
|
804
|
+
type: 'text'
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
key: 'city',
|
|
808
|
+
label: 'City',
|
|
809
|
+
disabled: false,
|
|
810
|
+
messages: [],
|
|
811
|
+
default: {
|
|
812
|
+
value: {
|
|
813
|
+
is_found: false,
|
|
814
|
+
value: '',
|
|
815
|
+
sources: [
|
|
816
|
+
{
|
|
817
|
+
key: 'OBJECT',
|
|
818
|
+
props: {
|
|
819
|
+
object: {
|
|
820
|
+
key: 'ALL_FORMS_DATA',
|
|
821
|
+
path: '$.ADD_TASK.city'
|
|
822
|
+
}
|
|
823
|
+
},
|
|
824
|
+
value: '',
|
|
825
|
+
validation: {
|
|
826
|
+
is_valid: false,
|
|
827
|
+
triggers: ['ON_INIT'],
|
|
828
|
+
rules: [
|
|
829
|
+
{
|
|
830
|
+
id: '1',
|
|
831
|
+
key: 'VALUE_CHECK',
|
|
832
|
+
props: {
|
|
833
|
+
value: {
|
|
834
|
+
source: {
|
|
835
|
+
key: 'OBJECT',
|
|
836
|
+
props: {
|
|
837
|
+
object: {
|
|
838
|
+
key: 'ALL_FORMS_DATA',
|
|
839
|
+
path: '$.ADD_TASK.city'
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
pattern: {
|
|
845
|
+
key: 'IS_NOT_EMPTY'
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
],
|
|
850
|
+
actions: [
|
|
851
|
+
{
|
|
852
|
+
id: '1',
|
|
853
|
+
key: 'SET_FIELD_DEFAULT_VALUE',
|
|
854
|
+
condition: '1',
|
|
855
|
+
props: {
|
|
856
|
+
fieldKey: 'city',
|
|
857
|
+
value: {
|
|
858
|
+
source: {
|
|
859
|
+
key: 'OBJECT',
|
|
860
|
+
props: {
|
|
861
|
+
object: {
|
|
862
|
+
key: 'ALL_FORMS_DATA',
|
|
863
|
+
path: '$.ADD_TASK.city'
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
]
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
]
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
validators: {
|
|
877
|
+
required: true
|
|
878
|
+
},
|
|
879
|
+
properties: {
|
|
880
|
+
placeholder: 'Please enter the City',
|
|
881
|
+
readOnly: false,
|
|
882
|
+
case: 'default'
|
|
883
|
+
},
|
|
884
|
+
type: 'text'
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
key: 'location',
|
|
888
|
+
label: 'Location URL',
|
|
889
|
+
disabled: false,
|
|
890
|
+
messages: [],
|
|
891
|
+
default: {
|
|
892
|
+
value: {
|
|
893
|
+
is_found: false,
|
|
894
|
+
value: '',
|
|
895
|
+
sources: [
|
|
896
|
+
{
|
|
897
|
+
key: 'OBJECT',
|
|
898
|
+
props: {
|
|
899
|
+
object: {
|
|
900
|
+
key: 'ALL_FORMS_DATA',
|
|
901
|
+
path: '$.ADD_TASK.location'
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
value: '',
|
|
905
|
+
validation: {
|
|
906
|
+
is_valid: false,
|
|
907
|
+
triggers: ['ON_INIT'],
|
|
908
|
+
rules: [
|
|
909
|
+
{
|
|
910
|
+
id: '1',
|
|
911
|
+
key: 'VALUE_CHECK',
|
|
912
|
+
props: {
|
|
913
|
+
value: {
|
|
914
|
+
source: {
|
|
915
|
+
key: 'OBJECT',
|
|
916
|
+
props: {
|
|
917
|
+
object: {
|
|
918
|
+
key: 'ALL_FORMS_DATA',
|
|
919
|
+
path: '$.ADD_TASK.location'
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
pattern: {
|
|
925
|
+
key: 'IS_NOT_EMPTY'
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
],
|
|
930
|
+
actions: [
|
|
931
|
+
{
|
|
932
|
+
id: '1',
|
|
933
|
+
key: 'SET_FIELD_DEFAULT_VALUE',
|
|
934
|
+
condition: '1',
|
|
935
|
+
props: {
|
|
936
|
+
fieldKey: 'location',
|
|
937
|
+
value: {
|
|
938
|
+
source: {
|
|
939
|
+
key: 'OBJECT',
|
|
940
|
+
props: {
|
|
941
|
+
object: {
|
|
942
|
+
key: 'ALL_FORMS_DATA',
|
|
943
|
+
path: '$.ADD_TASK.location'
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
]
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
]
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
validators: {
|
|
957
|
+
required: true
|
|
958
|
+
},
|
|
959
|
+
properties: {
|
|
960
|
+
placeholder: 'Please enter the Location URL',
|
|
961
|
+
readOnly: false,
|
|
962
|
+
case: 'default'
|
|
963
|
+
},
|
|
964
|
+
type: 'text'
|
|
965
|
+
}
|
|
966
|
+
],
|
|
967
|
+
properties: {
|
|
968
|
+
header: {
|
|
969
|
+
title: {
|
|
970
|
+
hidden: true,
|
|
971
|
+
label: 'Add Task'
|
|
972
|
+
},
|
|
973
|
+
steps: {
|
|
974
|
+
hidden: true
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
footer: {
|
|
978
|
+
viewFormsButton: {
|
|
979
|
+
hidden: true,
|
|
980
|
+
label: 'View Forms'
|
|
981
|
+
},
|
|
982
|
+
saveButton: {
|
|
983
|
+
hidden: false,
|
|
984
|
+
label: 'Submit'
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
};
|
|
989
|
+
}
|
|
990
|
+
UserService.prototype.ngOnInit = function () { };
|
|
991
|
+
UserService.prototype.setAgentConfig = function (agentConfig) {
|
|
992
|
+
this.agentConfig = agentConfig;
|
|
993
|
+
};
|
|
994
|
+
UserService.prototype.toggleMapview = function () {
|
|
995
|
+
this.showMapview = !this.showMapview;
|
|
996
|
+
};
|
|
997
|
+
return UserService;
|
|
998
|
+
}());
|
|
999
|
+
/** @nocollapse */ UserService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: UserService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1000
|
+
/** @nocollapse */ UserService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: UserService, providedIn: 'root' });
|
|
1001
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: UserService, decorators: [{
|
|
1002
|
+
type: i0.Injectable,
|
|
1003
|
+
args: [{
|
|
1004
|
+
providedIn: 'root'
|
|
1005
|
+
}]
|
|
1006
|
+
}], ctorParameters: function () { return []; } });
|
|
1007
1007
|
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1008
|
+
var CustomerDetailsComponent = /** @class */ (function () {
|
|
1009
|
+
function CustomerDetailsComponent(userService) {
|
|
1010
|
+
this.userService = userService;
|
|
1011
|
+
this.customer = {
|
|
1012
|
+
agent_id: 'sparkcpaital_dev_agent_1',
|
|
1013
|
+
client_name: 'sparkcpaital_dev',
|
|
1014
|
+
extras: {},
|
|
1015
|
+
session_status: '',
|
|
1016
|
+
task_completed_time: '',
|
|
1017
|
+
task_creation_time: '1679469532.340057',
|
|
1018
|
+
task_details: {
|
|
1019
|
+
customer_details: {
|
|
1020
|
+
email: 'gaurang.thakkar1997@gmail.com',
|
|
1021
|
+
phone: '9930607033',
|
|
1022
|
+
lc_lg_code: 'LC123456',
|
|
1023
|
+
branch_code: 'HDFC56475H',
|
|
1024
|
+
business_code: 'ABCD12345H'
|
|
1025
|
+
},
|
|
1026
|
+
link_details: {
|
|
1027
|
+
queryParams: {
|
|
1028
|
+
autoSendMobileOtp: true,
|
|
1029
|
+
client_id: 'sparkcpaital_dev',
|
|
1030
|
+
mobileOtpVerification: true,
|
|
1031
|
+
mobile_number: '9930607033',
|
|
1032
|
+
user_id: '9930607033'
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
task_id: 'sparkcpaital_dev_4632c291-1b4c-4f5b-bb95-f9acaab45e27',
|
|
1037
|
+
task_schedule_time: '1679469532.340057',
|
|
1038
|
+
user_id: '9930607033'
|
|
1039
|
+
};
|
|
1040
|
+
this.viewTaskDetails = [];
|
|
1041
|
+
this.nextStep = new i0.EventEmitter();
|
|
1042
|
+
this.removeTask = new i0.EventEmitter();
|
|
1043
|
+
}
|
|
1044
|
+
CustomerDetailsComponent.prototype.ngOnInit = function () {
|
|
1045
|
+
var _a, _b, _c;
|
|
1046
|
+
this.viewTaskDetails =
|
|
1047
|
+
(_c = (_b = (_a = this.agentConfig) === null || _a === void 0 ? void 0 : _a.dashboardConfig) === null || _b === void 0 ? void 0 : _b.viewTaskDetails) !== null && _c !== void 0 ? _c : this.viewTaskDetails;
|
|
1048
|
+
};
|
|
1049
|
+
CustomerDetailsComponent.prototype.convertToTitleCase = function (inputString) {
|
|
1050
|
+
inputString = inputString.replace('$.task_details.customer_details.', '');
|
|
1051
|
+
var words = inputString.split('_');
|
|
1052
|
+
var capitalizedWords = words.map(function (word) { return word.charAt(0).toUpperCase() + word.slice(1); });
|
|
1053
|
+
var titleCaseString = capitalizedWords.join(' ');
|
|
1054
|
+
return titleCaseString;
|
|
1055
|
+
};
|
|
1056
|
+
CustomerDetailsComponent.prototype.convertEpochToDate = function (epochTime) {
|
|
1057
|
+
if (typeof epochTime == 'string')
|
|
1058
|
+
epochTime = Number(epochTime);
|
|
1059
|
+
var date = new Date(epochTime * 1000); // Convert to milliseconds
|
|
1060
|
+
var day = date.getDate().toString().padStart(2, '0');
|
|
1061
|
+
var month = (date.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based
|
|
1062
|
+
var year = date.getFullYear().toString();
|
|
1063
|
+
return day + "-" + month + "-" + year;
|
|
1064
|
+
};
|
|
1065
|
+
CustomerDetailsComponent.prototype.getTaskDetails = function (taskData) {
|
|
1066
|
+
return kwikidToolkit.getObjectValueFromPath(this.customer, taskData);
|
|
1067
|
+
};
|
|
1068
|
+
CustomerDetailsComponent.prototype.goToMaps = function (location) {
|
|
1069
|
+
window.open("" + location, '_blank');
|
|
1070
|
+
};
|
|
1071
|
+
CustomerDetailsComponent.prototype.goToNextStep = function (e) {
|
|
1072
|
+
this.nextStep.emit(e);
|
|
1073
|
+
};
|
|
1074
|
+
CustomerDetailsComponent.prototype.close = function () {
|
|
1075
|
+
this.userService.showTaskDetails = undefined;
|
|
1076
|
+
};
|
|
1077
|
+
CustomerDetailsComponent.prototype.handleOnClickRemoveTask = function (task) {
|
|
1078
|
+
this.removeTask.emit(task);
|
|
1079
|
+
};
|
|
1080
|
+
return CustomerDetailsComponent;
|
|
1081
|
+
}());
|
|
1082
|
+
/** @nocollapse */ CustomerDetailsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerDetailsComponent, deps: [{ token: UserService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1083
|
+
/** @nocollapse */ CustomerDetailsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CustomerDetailsComponent, selector: "customer-details", inputs: { customer: "customer", agentConfig: "agentConfig" }, outputs: { nextStep: "nextStep", removeTask: "removeTask" }, ngImport: i0__namespace, template: "<div class=\"customer-details-wrapper\">\n <div class=\"customer-details-heading\">Task Details</div>\n <div class=\"customer-details-body\">\n <div class=\"customer-details-user-id\">\n {{\n agentConfig?.dashboardConfig?.taskIdentifier\n ? getTaskDetails(agentConfig?.dashboardConfig?.taskIdentifier)\n : customer.user_id\n }}\n </div>\n\n <div class=\"customer-details-table\">\n <div\n class=\"customer-details-table-data\"\n *ngFor=\"let taskData of viewTaskDetails\"\n >\n <div class=\"customer-details-table-detail-value\">\n {{ getTaskDetails(taskData) }}\n </div>\n </div>\n </div>\n\n <div class=\"customer-details-date\">\n Task Created on: {{ convertEpochToDate(customer.task_creation_time) }}\n </div>\n\n <div class=\"customer-details-actions\">\n <div class=\"customer-details-task-buttons\">\n <kwikui-button\n *ngIf=\"agentConfig.dashboardConfig?.allowRemoveTask\"\n [icon]=\"'tuiIconTrash2'\"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"handleOnClickRemoveTask(customer)\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"agentConfig.dashboardConfig?.showCopyLink\"\n icon=\"tuiIconCopy\"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"\n goToNextStep({ customer: customer, stepType: 'SHARE_JOURNEY_LINK' })\n \"\n ></kwikui-button>\n </div>\n <div class=\"customer-details-journey-buttons\">\n <kwikui-button\n *ngIf=\"\n agentConfig.dashboardConfig?.showMaps &&\n customer?.task_details?.customer_details?.location\n \"\n label=\"Show Directions\"\n appearance=\"flat\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"\n goToMaps(customer?.task_details?.customer_details?.location)\n \"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"\n agentConfig.dashboardConfig?.showStartJourneyButton &&\n customer.session_status !== 'complete' &&\n customer.session_status !== ''\n \"\n label=\"Edit Journey\"\n appearance=\"primary\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"\n goToNextStep({ customer: customer, stepType: 'EDIT_JOURNEY' })\n \"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"\n agentConfig.dashboardConfig?.showStartJourneyButton &&\n customer.session_status == ''\n \"\n label=\"Start Journey\"\n appearance=\"primary\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"\n goToNextStep({ customer: customer, stepType: 'START_JOURNEY' })\n \"\n ></kwikui-button>\n </div>\n </div>\n </div>\n</div>\n", styles: [".customer-details-wrapper{display:flex;flex-direction:column;align-items:stretch;overflow:hidden;grid-gap:.5rem;gap:.5rem;padding:1.5rem;height:100%;width:100%}.customer-details-wrapper .customer-details-heading{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:1rem 0;font-size:1.5rem;font-weight:600}.customer-details-wrapper .customer-details-body{display:flex;flex-direction:column;grid-gap:1.25rem;gap:1.25rem}.customer-details-wrapper .customer-details-body .customer-details-user-id{font-size:1.25rem;font-weight:500;padding:.5rem 0}.customer-details-wrapper .customer-details-body .customer-details-table{display:flex;grid-gap:.5rem;gap:.5rem;flex-direction:column}.customer-details-wrapper .customer-details-body .customer-details-table .customer-details-table-data .customer-details-table-detail-name{font-weight:500}.customer-details-wrapper .customer-details-body .customer-details-table .customer-details-table-data .customer-details-table-detail-value{word-wrap:break-word}.customer-details-wrapper .customer-details-body .customer-details-date{padding-top:1rem}.customer-details-wrapper .customer-details-body .customer-details-actions{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.customer-details-wrapper .customer-details-body .customer-details-actions .customer-details-task-buttons{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:1rem 0}.customer-details-wrapper .customer-details-body .customer-details-actions .customer-details-journey-buttons{padding-right:.2rem;display:flex;flex-direction:row;grid-gap:.2rem;gap:.2rem;align-items:center;justify-content:flex-end}.customer-details-wrapper .customer-details-body .customer-details-actions .customer-details-journey-buttons .customer-share-link{font-size:.7rem}\n"], components: [{ type: i2__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }], directives: [{ type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1084
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerDetailsComponent, decorators: [{
|
|
1085
|
+
type: i0.Component,
|
|
1086
|
+
args: [{
|
|
1087
|
+
selector: 'customer-details',
|
|
1088
|
+
templateUrl: './customer-details.component.html',
|
|
1089
|
+
styleUrls: ['./customer-details.component.scss']
|
|
1090
|
+
}]
|
|
1091
|
+
}], ctorParameters: function () { return [{ type: UserService }]; }, propDecorators: { customer: [{
|
|
1092
|
+
type: i0.Input
|
|
1093
|
+
}], agentConfig: [{
|
|
1094
|
+
type: i0.Input
|
|
1095
|
+
}], nextStep: [{
|
|
1096
|
+
type: i0.Output
|
|
1097
|
+
}], removeTask: [{
|
|
1098
|
+
type: i0.Output
|
|
1099
|
+
}] } });
|
|
1100
1100
|
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1101
|
+
var InfoWindowService = /** @class */ (function () {
|
|
1102
|
+
function InfoWindowService(mapService) {
|
|
1103
|
+
this.mapService = mapService;
|
|
1104
|
+
this.config = {
|
|
1105
|
+
fields: {
|
|
1106
|
+
name: {
|
|
1107
|
+
label: 'Name',
|
|
1108
|
+
value: 'name',
|
|
1109
|
+
display: 'value',
|
|
1110
|
+
style: {
|
|
1111
|
+
fontSize: '1rem',
|
|
1112
|
+
fontWeight: 600
|
|
1113
|
+
}
|
|
1114
|
+
},
|
|
1115
|
+
phone: {
|
|
1116
|
+
label: 'Call',
|
|
1117
|
+
value: 'phone',
|
|
1118
|
+
display: 'label',
|
|
1119
|
+
style: {
|
|
1120
|
+
fontSize: '0.8rem',
|
|
1121
|
+
padding: '0.1rem 0',
|
|
1122
|
+
textAlign: 'justify'
|
|
1123
|
+
},
|
|
1124
|
+
icon: 'https://cdn-icons-png.flaticon.com/512/60/60720.png'
|
|
1125
|
+
},
|
|
1126
|
+
address: {
|
|
1127
|
+
label: 'Directions',
|
|
1128
|
+
value: 'address',
|
|
1129
|
+
display: 'label',
|
|
1130
|
+
style: {
|
|
1131
|
+
fontSize: '0.8rem',
|
|
1132
|
+
padding: '0.1rem 0'
|
|
1133
|
+
},
|
|
1134
|
+
icon: 'https://cdn-icons-png.flaticon.com/512/62/62516.png'
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
};
|
|
1138
|
+
this.mainInfoWindowStyle = {
|
|
1139
|
+
display: 'flex',
|
|
1140
|
+
'flex-direction': 'column',
|
|
1141
|
+
'justify-content': 'center',
|
|
1142
|
+
'align-items': 'stretch',
|
|
1143
|
+
gap: '0.5rem',
|
|
1144
|
+
padding: '0.5rem'
|
|
1145
|
+
};
|
|
1146
|
+
this.fieldDivStyle = {
|
|
1147
|
+
gap: ' 0.5rem',
|
|
1148
|
+
display: 'flex',
|
|
1149
|
+
'flex-direction': 'row'
|
|
1150
|
+
};
|
|
1151
|
+
}
|
|
1152
|
+
InfoWindowService.prototype.getOpenMarker = function () {
|
|
1153
|
+
return this.openMarker;
|
|
1154
|
+
};
|
|
1155
|
+
InfoWindowService.prototype.setOpenMarker = function (value) {
|
|
1156
|
+
this.openMarker = value;
|
|
1157
|
+
};
|
|
1158
|
+
/**
|
|
1159
|
+
* @description
|
|
1160
|
+
* Wrapper method to show Customer Info Window
|
|
1161
|
+
*
|
|
1162
|
+
* @function showInfo
|
|
1163
|
+
* @func showInfo
|
|
1164
|
+
* @method showInfo
|
|
1165
|
+
*/
|
|
1166
|
+
InfoWindowService.prototype.showCustomerInformation = function (customer, marker) {
|
|
1167
|
+
var map = this.mapService.map;
|
|
1168
|
+
var contentString = this.createInfoContent(customer);
|
|
1169
|
+
var infowindow = new google.maps.InfoWindow({
|
|
1170
|
+
content: contentString
|
|
1171
|
+
});
|
|
1172
|
+
this.addEventListeners(customer, infowindow);
|
|
1173
|
+
this.closeLastOpenedInfoWindow();
|
|
1174
|
+
infowindow.open(map, marker);
|
|
1175
|
+
this.lastInfoWindowOpened = infowindow;
|
|
1176
|
+
this.mapService.map = Object.assign(Object.assign({}, this.mapService.map), { center: marker.getPosition });
|
|
1177
|
+
// map.setCenter(marker.getPosition());
|
|
1178
|
+
return { infowindow: infowindow };
|
|
1179
|
+
};
|
|
1180
|
+
InfoWindowService.prototype.addEventListeners = function (customer, infowindow) {
|
|
1181
|
+
// chnage -
|
|
1182
|
+
var addressLink = "http://maps.google.com/?q=" + customer.extras.loc[0] + ", " + customer.extras.loc[1];
|
|
1183
|
+
google.maps.event.addListener(infowindow, 'domready', function () {
|
|
1184
|
+
document.getElementById('Call').addEventListener('click', function (e) {
|
|
1185
|
+
window.open("tel:" + customer.extras.phone, '_self');
|
|
1186
|
+
});
|
|
1187
|
+
document
|
|
1188
|
+
.getElementById('Directions')
|
|
1189
|
+
.addEventListener('click', function (e) {
|
|
1190
|
+
window.open("" + addressLink, '_blank');
|
|
1191
|
+
});
|
|
1192
|
+
document
|
|
1193
|
+
.getElementsByClassName('gm-ui-hover-effect')[0]
|
|
1194
|
+
.setAttribute('style', ' background: none;\
|
|
1195
1195
|
display: block; \
|
|
1196
1196
|
border: 0px; \
|
|
1197
1197
|
margin: 0px; \
|
|
@@ -1206,698 +1206,695 @@
|
|
|
1206
1206
|
width: 30px; \
|
|
1207
1207
|
height: 30px; \
|
|
1208
1208
|
');
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1209
|
+
});
|
|
1210
|
+
};
|
|
1211
|
+
/**
|
|
1212
|
+
* @description
|
|
1213
|
+
* Wrapper method to close Last Info Window
|
|
1214
|
+
*
|
|
1215
|
+
* @function closeLastOpenedInfoWindow
|
|
1216
|
+
* @func closeLastOpenedInfoWindow
|
|
1217
|
+
* @method closeLastOpenedInfoWindow
|
|
1218
|
+
*/
|
|
1219
|
+
InfoWindowService.prototype.closeLastOpenedInfoWindow = function () {
|
|
1220
|
+
if (this.lastInfoWindowOpened) {
|
|
1221
|
+
this.lastInfoWindowOpened.close();
|
|
1222
|
+
}
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1225
|
+
* @description
|
|
1226
|
+
* Closes the previously opened info window.
|
|
1227
|
+
*
|
|
1228
|
+
* @function infoData
|
|
1229
|
+
* @func infoData
|
|
1230
|
+
* @method infoData
|
|
1231
|
+
*/
|
|
1232
|
+
InfoWindowService.prototype.createInfoContent = function (customer) {
|
|
1233
|
+
var content = "<div style='padding:4px; font-family: Manrope;' >";
|
|
1234
|
+
content += this.createFields(customer, this.config.fields);
|
|
1235
|
+
content += '</div>';
|
|
1236
|
+
return content;
|
|
1237
|
+
};
|
|
1238
|
+
/**
|
|
1239
|
+
* @description
|
|
1240
|
+
* Wrapper method to create Fields Container
|
|
1241
|
+
*
|
|
1242
|
+
* @function createFields
|
|
1243
|
+
* @func createFields
|
|
1244
|
+
* @method createFields
|
|
1245
|
+
*/
|
|
1246
|
+
InfoWindowService.prototype.createFields = function (customer, fields) {
|
|
1247
|
+
var e_1, _a;
|
|
1248
|
+
var _div = document.createElement('div');
|
|
1249
|
+
for (var property in this.mainInfoWindowStyle)
|
|
1250
|
+
_div.style[property] = this.mainInfoWindowStyle[property];
|
|
1251
|
+
try {
|
|
1252
|
+
for (var _b = __values(Object.keys(fields)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1253
|
+
var key = _c.value;
|
|
1254
|
+
var field = fields[key];
|
|
1255
|
+
var _fieldDiv = document.createElement('div');
|
|
1256
|
+
_fieldDiv.setAttribute('id', field.label);
|
|
1257
|
+
for (var property in this.fieldDivStyle)
|
|
1258
|
+
_fieldDiv.style[property] = this.fieldDivStyle[property];
|
|
1259
|
+
for (var property in field.style)
|
|
1260
|
+
_fieldDiv.style[property] = field.style[property];
|
|
1261
|
+
var string = field.display == 'label' ? field.label : customer.extras[field.value];
|
|
1262
|
+
if (field.icon) {
|
|
1263
|
+
var _icon = document.createElement('img');
|
|
1264
|
+
_icon.src = field.icon;
|
|
1265
|
+
_icon.style.width = field.style.fontSize;
|
|
1266
|
+
_icon.style.height = field.style.fontSize;
|
|
1267
|
+
_fieldDiv.appendChild(_icon);
|
|
1268
|
+
}
|
|
1269
|
+
var _fieldText = document.createElement('div');
|
|
1270
|
+
_fieldText.innerHTML = string;
|
|
1271
|
+
_fieldDiv.appendChild(_fieldText);
|
|
1272
|
+
_div.appendChild(_fieldDiv);
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1276
|
+
finally {
|
|
1277
|
+
try {
|
|
1278
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1279
|
+
}
|
|
1280
|
+
finally { if (e_1) throw e_1.error; }
|
|
1281
|
+
}
|
|
1282
|
+
return _div.outerHTML;
|
|
1283
|
+
};
|
|
1284
|
+
return InfoWindowService;
|
|
1285
|
+
}());
|
|
1286
|
+
/** @nocollapse */ InfoWindowService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: InfoWindowService, deps: [{ token: MapService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1287
|
+
/** @nocollapse */ InfoWindowService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: InfoWindowService, providedIn: 'root' });
|
|
1288
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: InfoWindowService, decorators: [{
|
|
1289
|
+
type: i0.Injectable,
|
|
1290
|
+
args: [{
|
|
1291
|
+
providedIn: 'root'
|
|
1292
|
+
}]
|
|
1293
|
+
}], ctorParameters: function () { return [{ type: MapService }]; } });
|
|
1294
1294
|
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1295
|
+
var EStatus;
|
|
1296
|
+
(function (EStatus) {
|
|
1297
|
+
EStatus["NOT_STARTED"] = "not started";
|
|
1298
|
+
EStatus["ON_GOING"] = "on going";
|
|
1299
|
+
EStatus["AUDITING"] = "auditing";
|
|
1300
|
+
EStatus["REJECTED"] = "rejected";
|
|
1301
|
+
EStatus["AFTER_AUDIT"] = "after audit";
|
|
1302
|
+
EStatus["COMPLETE"] = "complete";
|
|
1303
|
+
})(EStatus || (EStatus = {}));
|
|
1304
|
+
var VStatus = [
|
|
1305
|
+
EStatus.NOT_STARTED,
|
|
1306
|
+
EStatus.ON_GOING,
|
|
1307
|
+
EStatus.AUDITING,
|
|
1308
|
+
EStatus.REJECTED,
|
|
1309
|
+
EStatus.AFTER_AUDIT,
|
|
1310
|
+
EStatus.COMPLETE
|
|
1311
|
+
];
|
|
1312
1312
|
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1313
|
+
var StatusPillComponent = /** @class */ (function () {
|
|
1314
|
+
function StatusPillComponent() {
|
|
1315
|
+
}
|
|
1316
|
+
StatusPillComponent.prototype.ngOnInit = function () {
|
|
1317
|
+
if (kwikidToolkit.isEmptyValue(this.status)) {
|
|
1318
|
+
this.status = EStatus.NOT_STARTED;
|
|
1319
|
+
}
|
|
1320
|
+
};
|
|
1321
|
+
StatusPillComponent.prototype.getStatusPillClass = function (status) {
|
|
1322
|
+
var newStatus = status.replace(' ', '-');
|
|
1323
|
+
return "status-pill " + newStatus;
|
|
1324
|
+
};
|
|
1325
|
+
return StatusPillComponent;
|
|
1326
|
+
}());
|
|
1327
|
+
/** @nocollapse */ StatusPillComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StatusPillComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1328
|
+
/** @nocollapse */ StatusPillComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: StatusPillComponent, selector: "status-pill", inputs: { status: "status" }, ngImport: i0__namespace, template: "<div [ngClass]=\"getStatusPillClass(status)\">{{status}}</div>\n", styles: [".status-pill{background-color:#555;padding:.1rem .5rem;border-radius:1rem;font-size:.7rem;color:#fff}.complete{background-color:var(--tui-positive)}.rejected{background-color:var(--tui-negative)}.auditing{background-color:var(--tui-primary)}.on-going{background-color:var(--tui-primary)}.after-audit{background-color:var(--tui-warning-fill);color:#222}\n"], directives: [{ type: i6__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
1329
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StatusPillComponent, decorators: [{
|
|
1330
|
+
type: i0.Component,
|
|
1331
|
+
args: [{
|
|
1332
|
+
selector: 'status-pill',
|
|
1333
|
+
templateUrl: './status-pill.component.html',
|
|
1334
|
+
styleUrls: ['./status-pill.component.css']
|
|
1335
|
+
}]
|
|
1336
|
+
}], propDecorators: { status: [{
|
|
1337
|
+
type: i0.Input
|
|
1338
|
+
}] } });
|
|
1339
1339
|
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1340
|
+
var CustomerTileComponent = /** @class */ (function () {
|
|
1341
|
+
/**
|
|
1342
|
+
* @description
|
|
1343
|
+
*
|
|
1344
|
+
* @constructor
|
|
1345
|
+
*/
|
|
1346
|
+
function CustomerTileComponent(mapService, infoWindowService, userService, hostElement) {
|
|
1347
|
+
this.mapService = mapService;
|
|
1348
|
+
this.infoWindowService = infoWindowService;
|
|
1349
|
+
this.userService = userService;
|
|
1350
|
+
this.hostElement = hostElement;
|
|
1351
|
+
/**
|
|
1352
|
+
* @description
|
|
1353
|
+
* Determines Customer Data
|
|
1354
|
+
*
|
|
1355
|
+
* @default
|
|
1356
|
+
* `{}`
|
|
1357
|
+
*/
|
|
1358
|
+
this.customer = {};
|
|
1359
|
+
/**
|
|
1360
|
+
* @description
|
|
1361
|
+
* Determines Index of Customer Data in Customer List
|
|
1362
|
+
*
|
|
1363
|
+
* @default
|
|
1364
|
+
*
|
|
1365
|
+
*/
|
|
1366
|
+
this.index = undefined;
|
|
1367
|
+
this.isMobileView = false;
|
|
1368
|
+
this.viewTaskDetails = [];
|
|
1369
|
+
/**
|
|
1370
|
+
* @description
|
|
1371
|
+
* Emitter to emit next Step
|
|
1372
|
+
*
|
|
1373
|
+
* @emits KwikIDAgentDashboardComponent#nextStep
|
|
1374
|
+
* @fires KwikIDAgentDashboardComponent#nextStep
|
|
1375
|
+
*/
|
|
1376
|
+
this.nextStep = new i0.EventEmitter();
|
|
1377
|
+
this.removeTask = new i0.EventEmitter();
|
|
1378
|
+
}
|
|
1379
|
+
CustomerTileComponent.prototype.windowResizeWatcher = function () {
|
|
1380
|
+
if (this.hostElement.nativeElement.offsetWidth < 600) {
|
|
1381
|
+
this.isMobileView = true;
|
|
1382
|
+
}
|
|
1383
|
+
else {
|
|
1384
|
+
this.isMobileView = false;
|
|
1385
|
+
}
|
|
1386
|
+
};
|
|
1387
|
+
/**
|
|
1388
|
+
* @description
|
|
1389
|
+
* To set Google Maps API on script
|
|
1390
|
+
*
|
|
1391
|
+
* @ngOnInit
|
|
1392
|
+
*/
|
|
1393
|
+
CustomerTileComponent.prototype.ngOnInit = function () {
|
|
1394
|
+
var _a, _b, _c;
|
|
1395
|
+
this.viewTaskDetails =
|
|
1396
|
+
(_c = (_b = (_a = this.agentConfig) === null || _a === void 0 ? void 0 : _a.dashboardConfig) === null || _b === void 0 ? void 0 : _b.viewTaskDetails) !== null && _c !== void 0 ? _c : this.viewTaskDetails;
|
|
1397
|
+
};
|
|
1398
|
+
CustomerTileComponent.prototype.getTaskDetails = function (taskData) {
|
|
1399
|
+
return kwikidToolkit.getObjectValueFromPath(this.customer, taskData);
|
|
1400
|
+
};
|
|
1401
|
+
CustomerTileComponent.prototype.openDetails = function () {
|
|
1402
|
+
if (this.userService.showTaskDetails !== this.index) {
|
|
1403
|
+
this.userService.showTaskDetails = this.index;
|
|
1404
|
+
}
|
|
1405
|
+
else {
|
|
1406
|
+
this.userService.showTaskDetails = undefined;
|
|
1407
|
+
}
|
|
1408
|
+
};
|
|
1409
|
+
CustomerTileComponent.prototype.tileClick = function () {
|
|
1410
|
+
this.openDetails();
|
|
1411
|
+
if (this.index == this.infoWindowService.getOpenMarker()) {
|
|
1412
|
+
this.infoWindowService.setOpenMarker(null);
|
|
1413
|
+
//this.infoWindowService.lastInfoWindowOpened.close();
|
|
1414
|
+
}
|
|
1415
|
+
else {
|
|
1416
|
+
this.showDetails(this.customer, this.index);
|
|
1417
|
+
}
|
|
1418
|
+
};
|
|
1419
|
+
/**
|
|
1420
|
+
* @description
|
|
1421
|
+
* Wrapper method to show Customer Info Window
|
|
1422
|
+
*
|
|
1423
|
+
* @function showDetails
|
|
1424
|
+
* @func showDetails
|
|
1425
|
+
* @method showDetails
|
|
1426
|
+
*/
|
|
1427
|
+
CustomerTileComponent.prototype.showDetails = function (customer, index) {
|
|
1428
|
+
var markers = this.mapService.getMarkers();
|
|
1429
|
+
var marker = markers[index + 1];
|
|
1430
|
+
// let { infowindow } = this.infoWindowService.showCustomerInformation(
|
|
1431
|
+
// customer,
|
|
1432
|
+
// marker
|
|
1433
|
+
// );
|
|
1434
|
+
this.infoWindowService.setOpenMarker(index);
|
|
1435
|
+
};
|
|
1436
|
+
CustomerTileComponent.prototype.getClass = function () {
|
|
1437
|
+
var string = "customer-tile-wrapper";
|
|
1438
|
+
if (this.userService.showTaskDetails == this.index) {
|
|
1439
|
+
string += " customer-tile-active";
|
|
1440
|
+
}
|
|
1441
|
+
return string;
|
|
1442
|
+
};
|
|
1443
|
+
CustomerTileComponent.prototype.goToMaps = function (location) {
|
|
1444
|
+
window.open("" + location, '_blank');
|
|
1445
|
+
};
|
|
1446
|
+
CustomerTileComponent.prototype.goToNextStep = function (e) {
|
|
1447
|
+
this.nextStep.emit(e);
|
|
1448
|
+
};
|
|
1449
|
+
CustomerTileComponent.prototype.handleOnClickRemoveTask = function (task) {
|
|
1450
|
+
this.removeTask.emit(task);
|
|
1451
|
+
};
|
|
1452
|
+
return CustomerTileComponent;
|
|
1453
|
+
}());
|
|
1454
|
+
/** @nocollapse */ CustomerTileComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerTileComponent, deps: [{ token: MapService }, { token: InfoWindowService }, { token: UserService }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1455
|
+
/** @nocollapse */ CustomerTileComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CustomerTileComponent, selector: "customer-tile", inputs: { customer: "customer", index: "index", agentConfig: "agentConfig" }, outputs: { nextStep: "nextStep", removeTask: "removeTask" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, viewQueries: [{ propertyName: "infoWindow", first: true, predicate: i5.MapInfoWindow, descendants: true }], ngImport: i0__namespace, template: "<div [ngClass]=\"getClass()\">\n <div class=\"customer-tile-primary-container\">\n <div class=\"customer-tile-primary-container-data\">\n <div class=\"customer-tile-primary-container-userid\">\n {{\n agentConfig?.dashboardConfig?.taskIdentifier\n ? getTaskDetails(agentConfig?.dashboardConfig?.taskIdentifier)\n : customer.user_id\n }}\n </div>\n <status-pill\n *ngIf=\"agentConfig?.dashboardConfig?.showTaskStatus\"\n [status]=\"customer.session_status\"\n ></status-pill>\n </div>\n <kwikui-button\n *ngIf=\"!userService.isMobileView && !userService.showMapview\"\n [icon]=\"\n userService.showTaskDetails == index\n ? 'tuiIconChevronLeftLarge'\n : 'tuiIconChevronRightLarge'\n \"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"openDetails()\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"userService.isMobileView || userService.showMapview\"\n [icon]=\"\n userService.showTaskDetails == index\n ? 'tuiIconChevronUpLarge'\n : 'tuiIconChevronDownLarge'\n \"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"openDetails()\"\n ></kwikui-button>\n </div>\n <div\n [ngClass]=\"\n index == userService.showTaskDetails &&\n (userService.isMobileView || userService.showMapview)\n ? 'customer-tile-secondary-container'\n : 'data-collasped'\n \"\n >\n <div class=\"customer-tile-secondary-container-data\">\n <div\n *ngFor=\"let taskData of viewTaskDetails\"\n class=\"customer-tile-secondary-container-custom-details\"\n >\n {{ getTaskDetails(taskData) }}\n </div>\n </div>\n <div class=\"customer-tile-secondary-container-actions\">\n <div class=\"customer-tile-secondary-container-task-buttons\">\n <kwikui-button\n *ngIf=\"agentConfig.dashboardConfig?.allowRemoveTask\"\n [icon]=\"'tuiIconTrash2'\"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"handleOnClickRemoveTask(customer)\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"agentConfig.dashboardConfig?.showCopyLink\"\n icon=\"tuiIconCopy\"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"\n goToNextStep({ customer: customer, stepType: 'SHARE_JOURNEY_LINK' })\n \"\n ></kwikui-button>\n </div>\n <div class=\"customer-tile-secondary-container-journey-buttons\">\n <kwikui-button\n *ngIf=\"\n agentConfig.dashboardConfig?.showMaps &&\n customer?.task_details?.customer_details?.location\n \"\n label=\"Show Directions\"\n appearance=\"flat\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"goToMaps(customer.task_details.customer_details.location)\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"\n agentConfig.dashboardConfig?.showStartJourneyButton &&\n customer.session_status !== 'complete' &&\n customer.session_status !== ''\n \"\n label=\"Edit Journey\"\n appearance=\"primary\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"\n goToNextStep({ customer: customer, stepType: 'EDIT_JOURNEY' })\n \"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"\n agentConfig.dashboardConfig?.showStartJourneyButton &&\n customer.session_status == ''\n \"\n label=\"Start Journey\"\n appearance=\"primary\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"\n goToNextStep({ customer: customer, stepType: 'START_JOURNEY' })\n \"\n ></kwikui-button>\n </div>\n </div>\n </div>\n</div>\n", styles: [".customer-tile-wrapper{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:stretch;flex:1;overflow:auto;grid-gap:.5rem;gap:.5rem;padding:1rem;border-bottom:.5px solid #ddd}.customer-tile-wrapper .customer-tile-primary-container{display:flex;grid-gap:.5rem;gap:.5rem;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;width:100%;height:100%}.customer-tile-wrapper .customer-tile-primary-container .customer-tile-primary-container-data{padding-left:.2rem;grid-gap:.6rem;gap:.6rem;display:flex;flex-direction:row;flex-wrap:wrap;align-content:stretch;justify-content:space-evenly;align-items:center}.customer-tile-wrapper .customer-tile-primary-container .customer-tile-primary-container-data .customer-tile-primary-container-userid{font-weight:500;font-size:1.1rem;line-height:1rem}.customer-tile-wrapper .customer-tile-secondary-container{width:100%;height:100%;display:flex;flex-direction:column;overflow:auto;grid-gap:.5rem;gap:.5rem}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-data{padding:.4rem .2rem;display:flex;flex-direction:column;font-size:.7rem;grid-gap:.3rem;gap:.3rem}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-data .customer-tile-secondary-container-custom-details{width:100%;height:100%;line-height:.9rem;word-wrap:break-word}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-actions{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-actions .customer-tile-secondary-container-task-buttons{display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-actions .customer-tile-secondary-container-journey-buttons{padding-right:.2rem;display:flex;flex-direction:row;grid-gap:.2rem;gap:.2rem;align-items:center;justify-content:flex-end}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-actions .customer-tile-secondary-container-journey-buttons .customer-share-link{font-size:.7rem}.customer-tile-wrapper .data-collasped{display:none}.customer-tile-active{background-color:#dcedfd}\n"], components: [{ type: StatusPillComponent, selector: "status-pill", inputs: ["status"] }, { type: i2__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }], directives: [{ type: i6__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1456
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerTileComponent, decorators: [{
|
|
1457
|
+
type: i0.Component,
|
|
1458
|
+
args: [{
|
|
1459
|
+
selector: 'customer-tile',
|
|
1460
|
+
templateUrl: './customer-tile.component.html',
|
|
1461
|
+
styleUrls: ['./customer-tile.component.scss']
|
|
1462
|
+
}]
|
|
1463
|
+
}], ctorParameters: function () { return [{ type: MapService }, { type: InfoWindowService }, { type: UserService }, { type: i0__namespace.ElementRef }]; }, propDecorators: { windowResizeWatcher: [{
|
|
1464
|
+
type: i0.HostListener,
|
|
1465
|
+
args: ['window:resize', ['$event']]
|
|
1466
|
+
}], customer: [{
|
|
1467
|
+
type: i0.Input
|
|
1468
|
+
}], index: [{
|
|
1469
|
+
type: i0.Input
|
|
1470
|
+
}], agentConfig: [{
|
|
1471
|
+
type: i0.Input
|
|
1472
|
+
}], nextStep: [{
|
|
1473
|
+
type: i0.Output
|
|
1474
|
+
}], removeTask: [{
|
|
1475
|
+
type: i0.Output
|
|
1476
|
+
}], infoWindow: [{
|
|
1477
|
+
type: i0.ViewChild,
|
|
1478
|
+
args: [i5.MapInfoWindow]
|
|
1479
|
+
}] } });
|
|
1480
1480
|
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1481
|
+
var Ng2SearchPipe = /** @class */ (function () {
|
|
1482
|
+
function Ng2SearchPipe() {
|
|
1483
|
+
}
|
|
1484
|
+
/**
|
|
1485
|
+
* @param items object from array
|
|
1486
|
+
* @param term term's search
|
|
1487
|
+
* @param excludes array of strings which will ignored during search
|
|
1488
|
+
*/
|
|
1489
|
+
Ng2SearchPipe.prototype.transform = function (items, term, excludes) {
|
|
1490
|
+
if (excludes === void 0) { excludes = []; }
|
|
1491
|
+
if (!term || !items)
|
|
1492
|
+
return items;
|
|
1493
|
+
return Ng2SearchPipe.filter(items, term, excludes);
|
|
1494
|
+
};
|
|
1495
|
+
/**
|
|
1496
|
+
*
|
|
1497
|
+
* @param items List of items to filter
|
|
1498
|
+
* @param term a string term to compare with every property of the list
|
|
1499
|
+
* @param excludes List of keys which will be ignored during search
|
|
1500
|
+
*
|
|
1501
|
+
*/
|
|
1502
|
+
Ng2SearchPipe.filter = function (items, term, excludes) {
|
|
1503
|
+
var toCompare = term.toLowerCase();
|
|
1504
|
+
function checkInside(item, term) {
|
|
1505
|
+
if (typeof item === 'string' &&
|
|
1506
|
+
item.toString().toLowerCase().includes(toCompare)) {
|
|
1507
|
+
return true;
|
|
1508
|
+
}
|
|
1509
|
+
for (var property in item) {
|
|
1510
|
+
if (item[property] === null ||
|
|
1511
|
+
item[property] == undefined ||
|
|
1512
|
+
excludes.includes(property)) {
|
|
1513
|
+
continue;
|
|
1514
|
+
}
|
|
1515
|
+
if (typeof item[property] === 'object') {
|
|
1516
|
+
if (checkInside(item[property], term)) {
|
|
1517
|
+
return true;
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
else if (item[property].toString().toLowerCase().includes(toCompare)) {
|
|
1521
|
+
return true;
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
return false;
|
|
1525
|
+
}
|
|
1526
|
+
return items.filter(function (item) {
|
|
1527
|
+
return checkInside(item, term);
|
|
1528
|
+
});
|
|
1529
|
+
};
|
|
1530
|
+
return Ng2SearchPipe;
|
|
1531
|
+
}());
|
|
1532
|
+
/** @nocollapse */ Ng2SearchPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1533
|
+
/** @nocollapse */ Ng2SearchPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe, name: "filter", pure: false });
|
|
1534
|
+
/** @nocollapse */ Ng2SearchPipe.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe });
|
|
1535
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe, decorators: [{
|
|
1536
|
+
type: i0.Pipe,
|
|
1537
|
+
args: [{
|
|
1538
|
+
name: 'filter',
|
|
1539
|
+
pure: false
|
|
1540
|
+
}]
|
|
1541
|
+
}, {
|
|
1542
|
+
type: i0.Injectable
|
|
1543
|
+
}] });
|
|
1544
1544
|
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1545
|
+
var CustomerListComponent = /** @class */ (function () {
|
|
1546
|
+
function CustomerListComponent(mapService) {
|
|
1547
|
+
this.mapService = mapService;
|
|
1548
|
+
this.nextStep = new i0.EventEmitter();
|
|
1549
|
+
this.removeTask = new i0.EventEmitter();
|
|
1550
|
+
this.filterTaskList = new i0.EventEmitter();
|
|
1551
|
+
this.filteredData = [];
|
|
1552
|
+
this.formGroup = new i5$1.FormGroup({});
|
|
1553
|
+
this.maxLength = { month: 1 };
|
|
1554
|
+
this.fromDate = this.getDate(null);
|
|
1555
|
+
this.toDate = this.getDate(null);
|
|
1556
|
+
this.dateRangeFormControl = new i5$1.FormControl({
|
|
1557
|
+
value: new i10.TuiDayRange(new i10.TuiDay(new Date().getFullYear(), new Date().getMonth(), new Date().getDate()), new i10.TuiDay(new Date().getFullYear(), new Date().getMonth(), new Date().getDate())),
|
|
1558
|
+
disabled: false
|
|
1559
|
+
});
|
|
1560
|
+
this.formGroup.addControl('dateRange', this.dateRangeFormControl);
|
|
1561
|
+
this.searchFormControl = new i5$1.FormControl('');
|
|
1562
|
+
this.formGroup.addControl('search', this.searchFormControl);
|
|
1563
|
+
}
|
|
1564
|
+
CustomerListComponent.prototype.ngOnInit = function () { };
|
|
1565
|
+
CustomerListComponent.prototype.ngAfterViewInit = function () {
|
|
1566
|
+
var _this = this;
|
|
1567
|
+
setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
1568
|
+
var _a;
|
|
1569
|
+
return __generator(this, function (_b) {
|
|
1570
|
+
switch (_b.label) {
|
|
1571
|
+
case 0:
|
|
1572
|
+
if (!this.agentConfig.dashboardConfig.showMaps) return [3 /*break*/, 3];
|
|
1573
|
+
return [4 /*yield*/, this.mapService.initMap()];
|
|
1574
|
+
case 1:
|
|
1575
|
+
_b.sent();
|
|
1576
|
+
_a = this;
|
|
1577
|
+
return [4 /*yield*/, this.plotMarkers(this.customers)];
|
|
1578
|
+
case 2:
|
|
1579
|
+
_a.filteredData = _b.sent();
|
|
1580
|
+
return [3 /*break*/, 4];
|
|
1581
|
+
case 3:
|
|
1582
|
+
this.filteredData = this.customers;
|
|
1583
|
+
_b.label = 4;
|
|
1584
|
+
case 4: return [2 /*return*/];
|
|
1585
|
+
}
|
|
1586
|
+
});
|
|
1587
|
+
}); }, 1000);
|
|
1588
|
+
};
|
|
1589
|
+
CustomerListComponent.prototype.ngOnChanges = function () {
|
|
1590
|
+
if (this.agentConfig.dashboardConfig.showMaps) {
|
|
1591
|
+
this.filteredData = this.plotMarkers(this.customers);
|
|
1592
|
+
}
|
|
1593
|
+
else {
|
|
1594
|
+
this.filteredData = this.customers;
|
|
1595
|
+
}
|
|
1596
|
+
};
|
|
1597
|
+
CustomerListComponent.prototype.goToNextStep = function (e) {
|
|
1598
|
+
this.nextStep.emit(e);
|
|
1599
|
+
};
|
|
1600
|
+
CustomerListComponent.prototype.getDate = function (d) {
|
|
1601
|
+
var date = d ? new Date(d) : new Date();
|
|
1602
|
+
var year = date.getFullYear();
|
|
1603
|
+
var month = date.getMonth() + 1;
|
|
1604
|
+
var day = date.getDate();
|
|
1605
|
+
if (month < 10)
|
|
1606
|
+
month = '0' + month;
|
|
1607
|
+
if (day < 10)
|
|
1608
|
+
day = '0' + day;
|
|
1609
|
+
var today = year + "-" + month + "-" + day;
|
|
1610
|
+
return today;
|
|
1611
|
+
};
|
|
1612
|
+
CustomerListComponent.prototype.plotMarkers = function (customers) {
|
|
1613
|
+
var _this = this;
|
|
1614
|
+
var directionsResults$ = this.mapService.plotMarkers(customers);
|
|
1615
|
+
directionsResults$.subscribe(function (val) {
|
|
1616
|
+
_this.filteredData = _this.mapService.sortList(val.routes[0].waypoint_order, customers);
|
|
1617
|
+
});
|
|
1618
|
+
return customers;
|
|
1619
|
+
};
|
|
1620
|
+
CustomerListComponent.prototype.getTuiDate = function (event) {
|
|
1621
|
+
var year = event.year;
|
|
1622
|
+
var month = event.month + 1;
|
|
1623
|
+
var date = event.day;
|
|
1624
|
+
month = month < 10 ? '0' + month : month;
|
|
1625
|
+
date = date < 10 ? '0' + date : date;
|
|
1626
|
+
return year + "-" + month + "-" + date;
|
|
1627
|
+
};
|
|
1628
|
+
CustomerListComponent.prototype.onDateRangeChange = function (event) {
|
|
1629
|
+
this.fromDate = this.getTuiDate(event.value.from);
|
|
1630
|
+
this.toDate = this.getTuiDate(event.value.to);
|
|
1631
|
+
this.handleOnFilterTaskList({
|
|
1632
|
+
from_date: this.fromDate,
|
|
1633
|
+
to_date: this.toDate
|
|
1634
|
+
});
|
|
1635
|
+
};
|
|
1636
|
+
CustomerListComponent.prototype.onSearchFilter = function (event) {
|
|
1637
|
+
this.searchText = event.value;
|
|
1638
|
+
};
|
|
1639
|
+
CustomerListComponent.prototype.handleOnClickRemoveTask = function (task) {
|
|
1640
|
+
this.removeTask.emit(task);
|
|
1641
|
+
};
|
|
1642
|
+
CustomerListComponent.prototype.handleOnFilterTaskList = function (filter) {
|
|
1643
|
+
this.filterTaskList.emit(filter);
|
|
1644
|
+
};
|
|
1645
|
+
return CustomerListComponent;
|
|
1646
|
+
}());
|
|
1647
|
+
/** @nocollapse */ CustomerListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerListComponent, deps: [{ token: MapService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1648
|
+
/** @nocollapse */ CustomerListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CustomerListComponent, selector: "customer-list", inputs: { customers: "customers", agentConfig: "agentConfig" }, outputs: { nextStep: "nextStep", removeTask: "removeTask", filterTaskList: "filterTaskList" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"customer-list-wrapper\">\n <div class=\"customer-list-filter\" [formGroup]=\"formGroup\">\n <kwikui-input-date-range\n *ngIf=\"agentConfig?.dashboardConfig?.showDateFilter\"\n [label]=\"'Date Range'\"\n [id]=\"'dateRange'\"\n [size]=\"'m'\"\n [maxLength]=\"maxLength\"\n [formControlName]=\"'dateRange'\"\n [formControl]=\"dateRangeFormControl\"\n (getKeyValue)=\"onDateRangeChange($event)\"\n ></kwikui-input-date-range>\n <kwikui-input\n *ngIf=\"agentConfig?.dashboardConfig?.showSearchFilter\"\n [label]=\"'Search'\"\n [id]=\"'search'\"\n icon=\"tuiIconSearch\"\n size=\"m\"\n placeholder=\"Search Any Task\"\n [formControlName]=\"'search'\"\n [formControl]=\"searchFormControl\"\n (getKeyValue)=\"onSearchFilter($event)\"\n ></kwikui-input>\n </div>\n\n <div class=\"customer-task-list\">\n <cdk-virtual-scroll-viewport itemSize=\"1\" class=\"customer-task-list-scroll\">\n <div\n *cdkVirtualFor=\"\n let customer of filteredData | filter: searchText;\n index as index\n \"\n >\n <customer-tile\n class=\"example-item\"\n [customer]=\"customer\"\n [agentConfig]=\"agentConfig\"\n [index]=\"index\"\n (nextStep)=\"goToNextStep($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n ></customer-tile>\n </div>\n </cdk-virtual-scroll-viewport>\n </div>\n\n <div class=\"customer-list-empty\" *ngIf=\"filteredData.length === 0\">\n {{agentConfig?.dashboardConfig?.emptyTaskListMessage ?? '0 Tasks for the given Date.'}}\n </div>\n</div>\n", styles: [".customer-list-wrapper{width:100%;height:100%;display:flex;flex-direction:column}.customer-list-filter{height:-moz-fit-content;height:fit-content;width:100%;display:flex;flex-direction:column;padding:1rem;grid-gap:.8rem;gap:.8rem;border-bottom:.5px solid #ddd}.customer-list-empty{height:100%;width:100%;margin-top:.5rem;font-size:1rem;text-align:center}.customer-task-list{height:100%}.customer-task-list-scroll{height:100%;width:100%}.cdk-virtual-scroll-spacer{height:0!important}.example-item{height:50px}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}\n"], components: [{ type: i2__namespace.KwikUIInputDateRangeComponent, selector: "kwikui-input-date-range", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "min", "minLength", "max", "maxLength", "size", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputComponent, selector: "kwikui-input", inputs: ["label", "id", "type", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "validators", "case", "size", "icon", "properties"], outputs: ["getKeyValue"] }, { type: i3__namespace.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { type: CustomerTileComponent, selector: "customer-tile", inputs: ["customer", "index", "agentConfig"], outputs: ["nextStep", "removeTask"] }], directives: [{ type: i5__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i5__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i5__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3__namespace.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: i3__namespace.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }], pipes: { "filter": Ng2SearchPipe } });
|
|
1649
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerListComponent, decorators: [{
|
|
1650
|
+
type: i0.Component,
|
|
1651
|
+
args: [{
|
|
1652
|
+
selector: 'customer-list',
|
|
1653
|
+
templateUrl: './customer-list.component.html',
|
|
1654
|
+
styleUrls: ['./customer-list.component.css']
|
|
1655
|
+
}]
|
|
1656
|
+
}], ctorParameters: function () { return [{ type: MapService }]; }, propDecorators: { customers: [{
|
|
1657
|
+
type: i0.Input
|
|
1658
|
+
}], agentConfig: [{
|
|
1659
|
+
type: i0.Input
|
|
1660
|
+
}], nextStep: [{
|
|
1661
|
+
type: i0.Output
|
|
1662
|
+
}], removeTask: [{
|
|
1663
|
+
type: i0.Output
|
|
1664
|
+
}], filterTaskList: [{
|
|
1665
|
+
type: i0.Output
|
|
1666
|
+
}] } });
|
|
1667
1667
|
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
/** @nocollapse */ KwikIDAgentDashboardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDAgentDashboardComponent, selector: "kwikid-agent-dashboard", inputs: { agentConfig: "agentConfig", taskList: "taskList" }, outputs: { nextStep: "nextStep", addTask: "addTask", removeTask: "removeTask", filterTaskList: "filterTaskList" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, viewQueries: [{ propertyName: "infoWindow", first: true, predicate: i5.MapInfoWindow, descendants: true }], ngImport: i0__namespace, template: "<div class=\"kwikid-agent-dashboard\" *ngIf=\"!loading\">\n <div class=\"wrapper\">\n <div class=\"dashboard-header\">\n <img\n *ngIf=\"\n userService.agentConfig.clientLogo &&\n userService.agentConfig?.dashboardConfig?.showClientLogo\n \"\n [src]=\"userService.agentConfig.clientLogo\"\n class=\"dashboard-header-client-logo\"\n />\n <div\n *ngIf=\"\n !userService.agentConfig.clientLogo ||\n !userService.agentConfig?.dashboardConfig?.showClientLogo\n \"\n class=\"dashboard-header-client-name\"\n >\n <kwikui-button-icon\n [icon]=\"'tuiIconLink'\"\n appearance=\"mono\"\n size=\"m\"\n ></kwikui-button-icon>\n\n {{ userService.agentConfig.clientName }}\n </div>\n <div>\n <kwikui-button-icon\n *ngIf=\"userService.agentConfig?.dashboardConfig?.allowAddTask\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"mono\"\n [icon]=\"'tuiIconAddRowLarge'\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"showDialog(template)\"\n ></kwikui-button-icon>\n <span (tuiActiveZoneChange)=\"onActiveZone($event)\">\n <kwikui-button-icon\n [icon]=\"'tuiIconSettingsLarge'\"\n (onClick)=\"onClick()\"\n appearance=\"mono\"\n size=\"m\"\n [tuiDropdown]=\"dropdownContent\"\n [tuiDropdownManual]=\"open\"\n (tuiObscured)=\"onObscured($event)\"\n ></kwikui-button-icon>\n <ng-template #dropdownContent>\n <div class=\"menu-dropdown\">\n <div class=\"menu-dropdown-header\">\n <div class=\"menu-dropdown-header-agent-name\">\n {{ userService.agentConfig.agentName }}\n </div>\n <div class=\"menu-dropdown-header-agent-id\">\n Agent ID: {{ userService.agentConfig.agentId }}\n </div>\n </div>\n <hr />\n <div\n class=\"menu-dropdown-body\"\n tuiGroup\n [collapsed]=\"true\"\n [rounded]=\"false\"\n [orientation]=\"'vertical'\"\n [size]=\"'m'\"\n >\n <kwikui-button\n *ngIf=\"this.agentConfig.dashboardConfig.showMaps\"\n id=\"\"\n label=\"{{\n userService.showMapview ? 'Hide Maps' : 'Show Maps'\n }}\"\n styles=\"\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"mono\"\n icon=\"{{\n userService.showMapview ? 'tuiIconEyeOff' : 'tuiIconEye'\n }}\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n styles=\"padding: 0rem !important\"\n (onClick)=\"userService.toggleMapview()\"\n ></kwikui-button>\n <kwikui-button\n id=\"\"\n label=\"Refresh\"\n styles=\"\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"mono\"\n [icon]=\"'tuiIconRefreshCw'\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"refresh()\"\n ></kwikui-button>\n </div>\n <div class=\"menu-dropdown-footer\">\n <kwikui-button\n id=\"\"\n label=\"Logout\"\n styles=\"\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"mono\"\n [icon]=\"'tuiIconLogOut'\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"goToNextStep({ stepType: 'LOGOUT' })\"\n ></kwikui-button>\n </div>\n </div>\n </ng-template>\n </span>\n </div>\n </div>\n\n <div class=\"dashboard-body\">\n <div\n *ngIf=\"apiLoaded | async\"\n [class]=\"userService.showMapview ? 'map' : 'map-hidden'\"\n >\n <google-map height=\"100%\" width=\"100%\" [options]=\"this.mapService.map\">\n <map-marker\n #marker=\"mapMarker\"\n *ngFor=\"\n let markerPosition of this.mapService.markers;\n let index = index\n \"\n [position]=\"markerPosition\"\n [label]=\"{ text: String(index), color: '#FFF' }\"\n (mapClick)=\"openInfoWindow(marker)\"\n ></map-marker>\n <map-directions-renderer\n *ngIf=\"\n this.mapService.directionsResults$ | async as directionsResults\n \"\n [directions]=\"directionsResults\"\n [options]=\"this.mapService.directionsRenderOption\"\n ></map-directions-renderer>\n <map-info-window>Info Window content</map-info-window>\n </google-map>\n </div>\n <div\n class=\"task-details\"\n *ngIf=\"\n !userService.isMobileView && userService.showTaskDetails != undefined && !userService.showMapview\n \"\n >\n <customer-details\n [customer]=\"taskList[userService.showTaskDetails]\"\n [agentConfig]=\"agentConfig\"\n (nextStep)=\"goToNextStep($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n ></customer-details>\n </div>\n <div\n class=\"no-task-details\"\n *ngIf=\"\n !userService.isMobileView &&\n userService.showTaskDetails == undefined &&\n !userService.showMapview\n \"\n >\n <img src=\"assets/No-Results.jpg\" class=\"no-task-img\" alt=\"No Task\"/>\n <div class=\"\">Select a Task to view it's details.</div>\n </div>\n <div class=\"customer-list\">\n <customer-list\n [customers]=\"taskList\"\n [agentConfig]=\"agentConfig\"\n (nextStep)=\"goToNextStep($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n (filterTaskList)=\"handleOnFilterTaskList($event)\"\n ></customer-list>\n </div>\n </div>\n </div>\n</div>\n<div class=\"kwikid-agent-dashboard-loader\" *ngIf=\"loading\">\n <span class=\"loader\"></span>\n</div>\n\n<ng-template #template let-observer>\n <div class=\"add-task-header\">\n <h2>Add Task</h2>\n <kwikui-button-icon\n icon=\"tuiIconX\"\n id=\"\"\n label=\"Close\"\n styles=\"\"\n type=\"button\"\n appearance=\"mono\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"observer.complete()\"\n ></kwikui-button-icon>\n </div>\n <kwikid-form-view\n [formConfig]=\"userService.addTaskFormConfig\"\n [allFormsData]=\"allFormsData\"\n [isMobileView]=\"true\"\n (onClickViewForms)=\"this.handleOnClickViewForms($event)\"\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event)\"\n ></kwikid-form-view>\n</ng-template>\n", styles: [".kwikid-agent-dashboard{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;width:100%;height:100%;position:relative}.kwikid-agent-dashboard .wrapper{width:100%;height:100%;display:flex;flex-direction:column;align-content:center;justify-content:space-between;align-items:stretch}.kwikid-agent-dashboard .wrapper .dashboard-header{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-column-gap:1rem;column-gap:1rem;padding:.2rem;max-height:max-content;border:1px solid #fafafa;box-shadow:0 2px 10px -6px #000}.kwikid-agent-dashboard .wrapper .dashboard-header .dashboard-header-client-logo{max-height:50px;padding-left:1rem}.kwikid-agent-dashboard .wrapper .dashboard-header .dashboard-header-client-name{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;font-size:1rem;font-weight:600}.kwikid-agent-dashboard .wrapper .dashboard-body{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:stretch;flex:1;overflow:auto}.kwikid-agent-dashboard .wrapper .dashboard-body .map{width:100%;height:100%;position:relative;overflow:hidden}.kwikid-agent-dashboard .wrapper .dashboard-body .map-hidden{visibility:collapse}.kwikid-agent-dashboard .wrapper .dashboard-body .customer-list{width:100%;height:100%;background-color:#fafafa;overflow:hidden}@media screen and (min-width: 600px){.kwikid-agent-dashboard{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;width:100%;height:100%}.kwikid-agent-dashboard .wrapper{width:100%;height:100%;display:flex;flex-direction:column;align-content:center;justify-content:space-between;align-items:stretch}.kwikid-agent-dashboard .wrapper .dashboard-header{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-column-gap:1rem;column-gap:1rem;padding:.2rem;max-height:max-content;border:1px solid #fafafa;box-shadow:0 2px 10px -6px #000}.kwikid-agent-dashboard .wrapper .dashboard-header .dashboard-header-client-name{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;font-size:1rem;font-weight:600}.kwikid-agent-dashboard .wrapper .dashboard-body{display:flex;flex-direction:row-reverse;align-content:center;justify-content:flex-end;align-items:stretch;padding:1.5rem;grid-gap:1.5rem;gap:1.5rem;overflow:auto;background-color:#fafafa}.kwikid-agent-dashboard .wrapper .dashboard-body .map{width:100%;height:100%;position:relative;overflow:hidden;box-shadow:#0000001a 0 4px 6px -1px,#0000000f 0 2px 4px -1px;border-radius:.5rem}.kwikid-agent-dashboard .wrapper .dashboard-body .map-hidden{visibility:collapse}.kwikid-agent-dashboard .wrapper .dashboard-body .task-details{width:100%;height:100%;position:relative;overflow:hidden;box-shadow:#0000001a 0 4px 6px -1px,#0000000f 0 2px 4px -1px;border-radius:.5rem}.kwikid-agent-dashboard .wrapper .dashboard-body .no-task-details{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;grid-gap:.5rem;gap:.5rem;overflow:hidden;color:#555}.kwikid-agent-dashboard .wrapper .dashboard-body .no-task-details .no-task-img{height:100px;width:100px}.kwikid-agent-dashboard .wrapper .dashboard-body .customer-list{min-width:300px;max-width:400px;width:100%;height:100%;overflow:hidden;box-shadow:#0000001a 0 4px 6px -1px,#0000000f 0 2px 4px -1px;border-radius:.5rem}}.menu{position:absolute;transition:\"0.15s linear 0s\"}.kwikid-agent-dashboard-loader{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.75);display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;z-index:100}.kwikid-agent-dashboard-loader .loader{width:48px;height:48px;border-radius:50%;display:inline-block;position:relative;border:3px solid;border-color:#fff #fff transparent;box-sizing:border-box;animation:rotation 1s linear infinite}.kwikid-agent-dashboard-loader .loader:after{content:\"\";box-sizing:border-box;position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;border:3px solid;border-color:transparent var(--tui-primary) var(--tui-primary);width:24px;height:24px;border-radius:50%;animation:rotationBack .5s linear infinite;transform-origin:center center}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotationBack{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}.kwikid-agent-dashboard-loader .t-loader{display:none!important}.add-task-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:.5rem 0 1rem 1rem}:host{width:100%;height:100%}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}.menu-dropdown{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;grid-gap:.5rem;gap:.5rem;padding:1rem 1.5rem}.menu-dropdown .menu-dropdown-header{display:flex;flex-direction:column;align-content:flex-start;justify-content:space-between;align-items:flex-start;grid-gap:1rem;gap:1rem}.menu-dropdown .menu-dropdown-header .menu-dropdown-header-agent-name{font-size:1.2rem;font-weight:600}.menu-dropdown .menu-dropdown-header .menu-dropdown-header-agent-id{font-size:.8rem;font-weight:600}.menu-dropdown .menu-dropdown-buttons ::ng-deep .t-wrapper{padding:0!important}\n"], components: [{ type: i2__namespace.KwikUIButtonIconComponent, selector: "kwikui-button-icon", inputs: ["disabled", "id", "showLoader", "styles", "class", "type", "appearance", "icon", "shape", "size"], outputs: ["onClick"] }, { type: i2__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }, { type: i5__namespace.GoogleMap, selector: "google-map", inputs: ["height", "width", "center", "zoom", "options", "mapTypeId"], outputs: ["authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }, { type: CustomerDetailsComponent, selector: "customer-details", inputs: ["customer", "agentConfig"], outputs: ["nextStep", "removeTask"] }, { type: CustomerListComponent, selector: "customer-list", inputs: ["customers", "agentConfig"], outputs: ["nextStep", "removeTask", "filterTaskList"] }, { type: i8__namespace.KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: ["formConfig", "formData", "isMobileView", "allFormsData", "userConfig", "popupFormCallback"], outputs: ["onClickGoBack", "onClickViewForms", "onClickSaveForm", "onClickApiCall", "onActionShowPopupForm"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i11__namespace.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { type: i11__namespace.TuiDropdownDriverDirective, selector: "[tuiDropdown]" }, { type: i11__namespace.TuiDropdownPositionDirective, selector: "[tuiDropdown]:not([tuiDropdownCustomPosition]):not([tuiDropdownSided])" }, { type: i11__namespace.TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: ["tuiDropdownManual"] }, { type: i11__namespace.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace.MapMarker, selector: "map-marker", inputs: ["title", "position", "label", "clickable", "options", "icon", "visible"], outputs: ["animationChanged", "mapClick", "clickableChanged", "cursorChanged", "mapDblclick", "mapDrag", "mapDragend", "draggableChanged", "mapDragstart", "flatChanged", "iconChanged", "mapMousedown", "mapMouseout", "mapMouseover", "mapMouseup", "positionChanged", "mapRightclick", "shapeChanged", "titleChanged", "visibleChanged", "zindexChanged"], exportAs: ["mapMarker"] }, { type: i5__namespace.MapDirectionsRenderer, selector: "map-directions-renderer", inputs: ["directions", "options"], outputs: ["directionsChanged"], exportAs: ["mapDirectionsRenderer"] }, { type: i5__namespace.MapInfoWindow, selector: "map-info-window", inputs: ["options", "position"], outputs: ["closeclick", "contentChanged", "domready", "positionChanged", "zindexChanged"], exportAs: ["mapInfoWindow"] }], pipes: { "async": i6__namespace.AsyncPipe } });
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1668
|
+
var KwikIDAgentDashboardComponent = /** @class */ (function () {
|
|
1669
|
+
function KwikIDAgentDashboardComponent(mapService, userService, httpClient, hostElement, dialogService) {
|
|
1670
|
+
this.mapService = mapService;
|
|
1671
|
+
this.userService = userService;
|
|
1672
|
+
this.httpClient = httpClient;
|
|
1673
|
+
this.hostElement = hostElement;
|
|
1674
|
+
this.dialogService = dialogService;
|
|
1675
|
+
this.agentConfig = {};
|
|
1676
|
+
this.taskList = [];
|
|
1677
|
+
this.nextStep = new i0.EventEmitter();
|
|
1678
|
+
this.addTask = new i0.EventEmitter();
|
|
1679
|
+
this.removeTask = new i0.EventEmitter();
|
|
1680
|
+
this.filterTaskList = new i0.EventEmitter();
|
|
1681
|
+
this.loading = true;
|
|
1682
|
+
this.options = {
|
|
1683
|
+
stops: ['calc(5rem + 74vw)', 'calc(9rem + 74vw)']
|
|
1684
|
+
};
|
|
1685
|
+
this.open = false;
|
|
1686
|
+
this.allFormsData = {};
|
|
1687
|
+
this.String = String;
|
|
1688
|
+
this.apiLoaded = httpClient
|
|
1689
|
+
.jsonp('https://maps.googleapis.com/maps/api/js?key=AIzaSyA63JY0ja6ZGIR796vJqZARc0c2j8Vgpik&v=3.exp&libraries=geometry,drawing,places', 'callback')
|
|
1690
|
+
.pipe(operators.map(function () { return true; }), operators.catchError(function () { return rxjs.of(false); }));
|
|
1691
|
+
}
|
|
1692
|
+
KwikIDAgentDashboardComponent.prototype.windowResizeWatcher = function () {
|
|
1693
|
+
if (this.hostElement.nativeElement.offsetWidth < 600) {
|
|
1694
|
+
this.isMobileView = true;
|
|
1695
|
+
this.userService.isMobileView = true;
|
|
1696
|
+
}
|
|
1697
|
+
else {
|
|
1698
|
+
this.isMobileView = false;
|
|
1699
|
+
this.userService.isMobileView = false;
|
|
1700
|
+
}
|
|
1701
|
+
};
|
|
1702
|
+
KwikIDAgentDashboardComponent.prototype.ngOnInit = function () {
|
|
1703
|
+
var _this = this;
|
|
1704
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1705
|
+
this.userService.agentConfig = this.agentConfig;
|
|
1706
|
+
this.userService.showMapview =
|
|
1707
|
+
(_c = (_b = (_a = this.agentConfig) === null || _a === void 0 ? void 0 : _a.dashboardConfig) === null || _b === void 0 ? void 0 : _b.showMaps) !== null && _c !== void 0 ? _c : false;
|
|
1708
|
+
this.userService.addTaskFormConfig =
|
|
1709
|
+
(_f = (_e = (_d = this.agentConfig) === null || _d === void 0 ? void 0 : _d.dashboardConfig) === null || _e === void 0 ? void 0 : _e.addTaskFormConfig) !== null && _f !== void 0 ? _f : this.userService.addTaskFormConfig;
|
|
1710
|
+
this.loading = false;
|
|
1711
|
+
setTimeout(function () {
|
|
1712
|
+
_this.windowResizeWatcher();
|
|
1713
|
+
}, 1000);
|
|
1714
|
+
};
|
|
1715
|
+
KwikIDAgentDashboardComponent.prototype.goToNextStep = function (e) {
|
|
1716
|
+
this.nextStep.emit(e);
|
|
1717
|
+
};
|
|
1718
|
+
KwikIDAgentDashboardComponent.prototype.handleOnClickAddTask = function (task) {
|
|
1719
|
+
this.addTask.emit(task);
|
|
1720
|
+
};
|
|
1721
|
+
KwikIDAgentDashboardComponent.prototype.handleOnClickRemoveTask = function (task) {
|
|
1722
|
+
this.removeTask.emit(task);
|
|
1723
|
+
};
|
|
1724
|
+
KwikIDAgentDashboardComponent.prototype.handleOnFilterTaskList = function (filter) {
|
|
1725
|
+
this.filterTaskList.emit(filter);
|
|
1726
|
+
};
|
|
1727
|
+
KwikIDAgentDashboardComponent.prototype.refresh = function () {
|
|
1728
|
+
window.location.reload();
|
|
1729
|
+
};
|
|
1730
|
+
KwikIDAgentDashboardComponent.prototype.onClick = function () {
|
|
1731
|
+
this.open = !this.open;
|
|
1732
|
+
};
|
|
1733
|
+
KwikIDAgentDashboardComponent.prototype.onObscured = function (obscured) {
|
|
1734
|
+
if (obscured) {
|
|
1735
|
+
this.open = false;
|
|
1736
|
+
}
|
|
1737
|
+
};
|
|
1738
|
+
KwikIDAgentDashboardComponent.prototype.onActiveZone = function (active) {
|
|
1739
|
+
this.open = active && this.open;
|
|
1740
|
+
};
|
|
1741
|
+
KwikIDAgentDashboardComponent.prototype.showDialog = function (content) {
|
|
1742
|
+
this.dialogService
|
|
1743
|
+
.open(content, { closeable: false, dismissible: false })
|
|
1744
|
+
.subscribe();
|
|
1745
|
+
};
|
|
1746
|
+
KwikIDAgentDashboardComponent.prototype.openInfoWindow = function (marker) {
|
|
1747
|
+
this.infoWindow.open(marker);
|
|
1748
|
+
};
|
|
1749
|
+
KwikIDAgentDashboardComponent.prototype.handleOnClickSaveForm = function (e) {
|
|
1750
|
+
this.handleOnClickAddTask(e.data);
|
|
1751
|
+
};
|
|
1752
|
+
KwikIDAgentDashboardComponent.prototype.handleOnClickViewForms = function (e) { };
|
|
1753
|
+
return KwikIDAgentDashboardComponent;
|
|
1754
|
+
}());
|
|
1755
|
+
/** @nocollapse */ KwikIDAgentDashboardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponent, deps: [{ token: MapService }, { token: UserService }, { token: i3__namespace$1.HttpClient }, { token: i0__namespace.ElementRef }, { token: i11.TuiDialogService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1756
|
+
/** @nocollapse */ KwikIDAgentDashboardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDAgentDashboardComponent, selector: "kwikid-agent-dashboard", inputs: { agentConfig: "agentConfig", taskList: "taskList" }, outputs: { nextStep: "nextStep", addTask: "addTask", removeTask: "removeTask", filterTaskList: "filterTaskList" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, viewQueries: [{ propertyName: "infoWindow", first: true, predicate: i5.MapInfoWindow, descendants: true }], ngImport: i0__namespace, template: "<div class=\"kwikid-agent-dashboard\" *ngIf=\"!loading\">\n <div class=\"wrapper\">\n <div class=\"dashboard-header\">\n <img\n *ngIf=\"\n userService.agentConfig.clientLogo &&\n userService.agentConfig?.dashboardConfig?.showClientLogo\n \"\n [src]=\"userService.agentConfig.clientLogo\"\n class=\"dashboard-header-client-logo\"\n />\n <div\n *ngIf=\"\n !userService.agentConfig.clientLogo ||\n !userService.agentConfig?.dashboardConfig?.showClientLogo\n \"\n class=\"dashboard-header-client-name\"\n >\n <kwikui-button\n [icon]=\"'tuiIconLink'\"\n appearance=\"mono\"\n size=\"m\"\n ></kwikui-button>\n\n {{ userService.agentConfig.clientName }}\n </div>\n <div>\n <kwikui-button\n *ngIf=\"userService.agentConfig?.dashboardConfig?.allowAddTask\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"mono\"\n [icon]=\"'tuiIconAddRowLarge'\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"showDialog(template)\"\n ></kwikui-button>\n <span (tuiActiveZoneChange)=\"onActiveZone($event)\">\n <kwikui-button\n [icon]=\"'tuiIconSettingsLarge'\"\n (onClick)=\"onClick()\"\n appearance=\"mono\"\n size=\"m\"\n [tuiDropdown]=\"dropdownContent\"\n [tuiDropdownManual]=\"open\"\n (tuiObscured)=\"onObscured($event)\"\n ></kwikui-button>\n <ng-template #dropdownContent>\n <div class=\"menu-dropdown\">\n <div class=\"menu-dropdown-header\">\n <div class=\"menu-dropdown-header-agent-name\">\n {{ userService.agentConfig.agentName }}\n </div>\n <div class=\"menu-dropdown-header-agent-id\">\n Agent ID: {{ userService.agentConfig.agentId }}\n </div>\n </div>\n <hr />\n <div\n class=\"menu-dropdown-body\"\n tuiGroup\n [collapsed]=\"true\"\n [rounded]=\"false\"\n [orientation]=\"'vertical'\"\n [size]=\"'m'\"\n >\n <kwikui-button\n *ngIf=\"this.agentConfig.dashboardConfig.showMaps\"\n id=\"\"\n label=\"{{\n userService.showMapview ? 'Hide Maps' : 'Show Maps'\n }}\"\n styles=\"\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"mono\"\n icon=\"{{\n userService.showMapview ? 'tuiIconEyeOff' : 'tuiIconEye'\n }}\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n styles=\"padding: 0rem !important\"\n (onClick)=\"userService.toggleMapview()\"\n ></kwikui-button>\n <kwikui-button\n id=\"\"\n label=\"Refresh\"\n styles=\"\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"mono\"\n [icon]=\"'tuiIconRefreshCw'\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"refresh()\"\n ></kwikui-button>\n </div>\n <div class=\"menu-dropdown-footer\">\n <kwikui-button\n id=\"\"\n label=\"Logout\"\n styles=\"\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"mono\"\n [icon]=\"'tuiIconLogOut'\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"goToNextStep({ stepType: 'LOGOUT' })\"\n ></kwikui-button>\n </div>\n </div>\n </ng-template>\n </span>\n </div>\n </div>\n\n <div class=\"dashboard-body\">\n <div\n *ngIf=\"apiLoaded | async\"\n [class]=\"userService.showMapview ? 'map' : 'map-hidden'\"\n >\n <google-map height=\"100%\" width=\"100%\" [options]=\"this.mapService.map\">\n <map-marker\n #marker=\"mapMarker\"\n *ngFor=\"\n let markerPosition of this.mapService.markers;\n let index = index\n \"\n [position]=\"markerPosition\"\n [label]=\"{ text: String(index), color: '#FFF' }\"\n (mapClick)=\"openInfoWindow(marker)\"\n ></map-marker>\n <map-directions-renderer\n *ngIf=\"\n this.mapService.directionsResults$ | async as directionsResults\n \"\n [directions]=\"directionsResults\"\n [options]=\"this.mapService.directionsRenderOption\"\n ></map-directions-renderer>\n <map-info-window>Info Window content</map-info-window>\n </google-map>\n </div>\n <div\n class=\"task-details\"\n *ngIf=\"\n !userService.isMobileView && userService.showTaskDetails != undefined && !userService.showMapview\n \"\n >\n <customer-details\n [customer]=\"taskList[userService.showTaskDetails]\"\n [agentConfig]=\"agentConfig\"\n (nextStep)=\"goToNextStep($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n ></customer-details>\n </div>\n <div\n class=\"no-task-details\"\n *ngIf=\"\n !userService.isMobileView &&\n userService.showTaskDetails == undefined &&\n !userService.showMapview\n \"\n >\n <img src=\"assets/No-Results.jpg\" class=\"no-task-img\" alt=\"No Task\"/>\n <div class=\"\">Select a Task to view it's details.</div>\n </div>\n <div class=\"customer-list\">\n <customer-list\n [customers]=\"taskList\"\n [agentConfig]=\"agentConfig\"\n (nextStep)=\"goToNextStep($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n (filterTaskList)=\"handleOnFilterTaskList($event)\"\n ></customer-list>\n </div>\n </div>\n </div>\n</div>\n<div class=\"kwikid-agent-dashboard-loader\" *ngIf=\"loading\">\n <span class=\"loader\"></span>\n</div>\n\n<ng-template #template let-observer>\n <div class=\"add-task-header\">\n <h2>Add Task</h2>\n <kwikui-button\n icon=\"tuiIconX\"\n id=\"\"\n styles=\"\"\n type=\"button\"\n appearance=\"mono\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"observer.complete()\"\n ></kwikui-button>\n </div>\n <kwikid-form-view\n [formConfig]=\"userService.addTaskFormConfig\"\n [allFormsData]=\"allFormsData\"\n [isMobileView]=\"true\"\n (onClickViewForms)=\"this.handleOnClickViewForms($event)\"\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event)\"\n ></kwikid-form-view>\n</ng-template>\n", styles: [".kwikid-agent-dashboard{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;width:100%;height:100%;position:relative}.kwikid-agent-dashboard .wrapper{width:100%;height:100%;display:flex;flex-direction:column;align-content:center;justify-content:space-between;align-items:stretch}.kwikid-agent-dashboard .wrapper .dashboard-header{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-column-gap:1rem;column-gap:1rem;padding:.2rem;max-height:max-content;border:1px solid #fafafa;box-shadow:0 2px 10px -6px #000}.kwikid-agent-dashboard .wrapper .dashboard-header .dashboard-header-client-logo{max-height:50px;padding-left:1rem}.kwikid-agent-dashboard .wrapper .dashboard-header .dashboard-header-client-name{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;font-size:1rem;font-weight:600}.kwikid-agent-dashboard .wrapper .dashboard-body{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:stretch;flex:1;overflow:auto}.kwikid-agent-dashboard .wrapper .dashboard-body .map{width:100%;height:100%;position:relative;overflow:hidden}.kwikid-agent-dashboard .wrapper .dashboard-body .map-hidden{visibility:collapse}.kwikid-agent-dashboard .wrapper .dashboard-body .customer-list{width:100%;height:100%;background-color:#fafafa;overflow:hidden}@media screen and (min-width: 600px){.kwikid-agent-dashboard{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;width:100%;height:100%}.kwikid-agent-dashboard .wrapper{width:100%;height:100%;display:flex;flex-direction:column;align-content:center;justify-content:space-between;align-items:stretch}.kwikid-agent-dashboard .wrapper .dashboard-header{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-column-gap:1rem;column-gap:1rem;padding:.2rem;max-height:max-content;border:1px solid #fafafa;box-shadow:0 2px 10px -6px #000}.kwikid-agent-dashboard .wrapper .dashboard-header .dashboard-header-client-name{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;font-size:1rem;font-weight:600}.kwikid-agent-dashboard .wrapper .dashboard-body{display:flex;flex-direction:row-reverse;align-content:center;justify-content:flex-end;align-items:stretch;padding:1.5rem;grid-gap:1.5rem;gap:1.5rem;overflow:auto;background-color:#fafafa}.kwikid-agent-dashboard .wrapper .dashboard-body .map{width:100%;height:100%;position:relative;overflow:hidden;box-shadow:#0000001a 0 4px 6px -1px,#0000000f 0 2px 4px -1px;border-radius:.5rem}.kwikid-agent-dashboard .wrapper .dashboard-body .map-hidden{visibility:collapse}.kwikid-agent-dashboard .wrapper .dashboard-body .task-details{width:100%;height:100%;position:relative;overflow:hidden;box-shadow:#0000001a 0 4px 6px -1px,#0000000f 0 2px 4px -1px;border-radius:.5rem}.kwikid-agent-dashboard .wrapper .dashboard-body .no-task-details{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;grid-gap:.5rem;gap:.5rem;overflow:hidden;color:#555}.kwikid-agent-dashboard .wrapper .dashboard-body .no-task-details .no-task-img{height:100px;width:100px}.kwikid-agent-dashboard .wrapper .dashboard-body .customer-list{min-width:300px;max-width:400px;width:100%;height:100%;overflow:hidden;box-shadow:#0000001a 0 4px 6px -1px,#0000000f 0 2px 4px -1px;border-radius:.5rem}}.menu{position:absolute;transition:\"0.15s linear 0s\"}.kwikid-agent-dashboard-loader{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.75);display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;z-index:100}.kwikid-agent-dashboard-loader .loader{width:48px;height:48px;border-radius:50%;display:inline-block;position:relative;border:3px solid;border-color:#fff #fff transparent;box-sizing:border-box;animation:rotation 1s linear infinite}.kwikid-agent-dashboard-loader .loader:after{content:\"\";box-sizing:border-box;position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;border:3px solid;border-color:transparent var(--tui-primary) var(--tui-primary);width:24px;height:24px;border-radius:50%;animation:rotationBack .5s linear infinite;transform-origin:center center}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotationBack{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}.kwikid-agent-dashboard-loader .t-loader{display:none!important}.add-task-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:.5rem 0 1rem 1rem}:host{width:100%;height:100%}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}.menu-dropdown{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;grid-gap:.5rem;gap:.5rem;padding:1rem 1.5rem}.menu-dropdown .menu-dropdown-header{display:flex;flex-direction:column;align-content:flex-start;justify-content:space-between;align-items:flex-start;grid-gap:1rem;gap:1rem}.menu-dropdown .menu-dropdown-header .menu-dropdown-header-agent-name{font-size:1.2rem;font-weight:600}.menu-dropdown .menu-dropdown-header .menu-dropdown-header-agent-id{font-size:.8rem;font-weight:600}.menu-dropdown .menu-dropdown-buttons ::ng-deep .t-wrapper{padding:0!important}\n"], components: [{ type: i2__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }, { type: i5__namespace.GoogleMap, selector: "google-map", inputs: ["height", "width", "center", "zoom", "options", "mapTypeId"], outputs: ["authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }, { type: CustomerDetailsComponent, selector: "customer-details", inputs: ["customer", "agentConfig"], outputs: ["nextStep", "removeTask"] }, { type: CustomerListComponent, selector: "customer-list", inputs: ["customers", "agentConfig"], outputs: ["nextStep", "removeTask", "filterTaskList"] }, { type: i8__namespace.KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: ["formConfig", "formData", "isMobileView", "allFormsData", "userConfig", "apiCallResponse", "popupFormCallback"], outputs: ["onClickGoBack", "onClickViewForms", "onClickSaveForm", "onClickApiCall", "onActionShowPopupForm"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i11__namespace.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { type: i11__namespace.TuiDropdownDriverDirective, selector: "[tuiDropdown]" }, { type: i11__namespace.TuiDropdownPositionDirective, selector: "[tuiDropdown]:not([tuiDropdownCustomPosition]):not([tuiDropdownSided])" }, { type: i11__namespace.TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: ["tuiDropdownManual"] }, { type: i11__namespace.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace.MapMarker, selector: "map-marker", inputs: ["title", "position", "label", "clickable", "options", "icon", "visible"], outputs: ["animationChanged", "mapClick", "clickableChanged", "cursorChanged", "mapDblclick", "mapDrag", "mapDragend", "draggableChanged", "mapDragstart", "flatChanged", "iconChanged", "mapMousedown", "mapMouseout", "mapMouseover", "mapMouseup", "positionChanged", "mapRightclick", "shapeChanged", "titleChanged", "visibleChanged", "zindexChanged"], exportAs: ["mapMarker"] }, { type: i5__namespace.MapDirectionsRenderer, selector: "map-directions-renderer", inputs: ["directions", "options"], outputs: ["directionsChanged"], exportAs: ["mapDirectionsRenderer"] }, { type: i5__namespace.MapInfoWindow, selector: "map-info-window", inputs: ["options", "position"], outputs: ["closeclick", "contentChanged", "domready", "positionChanged", "zindexChanged"], exportAs: ["mapInfoWindow"] }], pipes: { "async": i6__namespace.AsyncPipe } });
|
|
1757
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponent, decorators: [{
|
|
1758
|
+
type: i0.Component,
|
|
1759
|
+
args: [{
|
|
1760
|
+
selector: 'kwikid-agent-dashboard',
|
|
1761
|
+
templateUrl: './kwikid-agent-dashboard.component.html',
|
|
1762
|
+
styleUrls: ['./kwikid-agent-dashboard.component.scss']
|
|
1763
|
+
}]
|
|
1764
|
+
}], ctorParameters: function () {
|
|
1765
|
+
return [{ type: MapService }, { type: UserService }, { type: i3__namespace$1.HttpClient }, { type: i0__namespace.ElementRef }, { type: i11__namespace.TuiDialogService, decorators: [{
|
|
1766
|
+
type: i0.Inject,
|
|
1767
|
+
args: [i11.TuiDialogService]
|
|
1768
|
+
}] }];
|
|
1769
|
+
}, propDecorators: { windowResizeWatcher: [{
|
|
1770
|
+
type: i0.HostListener,
|
|
1771
|
+
args: ['window:resize', ['$event']]
|
|
1772
|
+
}], agentConfig: [{
|
|
1773
|
+
type: i0.Input
|
|
1774
|
+
}], taskList: [{
|
|
1775
|
+
type: i0.Input
|
|
1776
|
+
}], nextStep: [{
|
|
1777
|
+
type: i0.Output
|
|
1778
|
+
}], addTask: [{
|
|
1779
|
+
type: i0.Output
|
|
1780
|
+
}], removeTask: [{
|
|
1781
|
+
type: i0.Output
|
|
1782
|
+
}], filterTaskList: [{
|
|
1783
|
+
type: i0.Output
|
|
1784
|
+
}], infoWindow: [{
|
|
1785
|
+
type: i0.ViewChild,
|
|
1786
|
+
args: [i5.MapInfoWindow, { static: false }]
|
|
1787
|
+
}] } });
|
|
1788
1788
|
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
exports: [KwikIDAgentDashboardComponent]
|
|
1888
|
-
}]
|
|
1889
|
-
}] });
|
|
1789
|
+
var KwikIDAgentDashboardModule = /** @class */ (function () {
|
|
1790
|
+
function KwikIDAgentDashboardModule() {
|
|
1791
|
+
}
|
|
1792
|
+
return KwikIDAgentDashboardModule;
|
|
1793
|
+
}());
|
|
1794
|
+
/** @nocollapse */ KwikIDAgentDashboardModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1795
|
+
/** @nocollapse */ KwikIDAgentDashboardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, declarations: [KwikIDAgentDashboardComponent,
|
|
1796
|
+
CustomerListComponent,
|
|
1797
|
+
CustomerTileComponent,
|
|
1798
|
+
Ng2SearchPipe,
|
|
1799
|
+
StatusPillComponent,
|
|
1800
|
+
CustomerDetailsComponent], imports: [i6.CommonModule,
|
|
1801
|
+
i3$1.HttpClientModule,
|
|
1802
|
+
i5$1.FormsModule,
|
|
1803
|
+
i5$1.ReactiveFormsModule,
|
|
1804
|
+
i2.KwikUIButtonModule,
|
|
1805
|
+
i2.KwikUIInputModule,
|
|
1806
|
+
i2.KwikUIInputDateModule,
|
|
1807
|
+
i2.KwikUIInputDateRangeModule,
|
|
1808
|
+
i2.KwikUIInputSelectModule,
|
|
1809
|
+
i2.KwikUITableModule,
|
|
1810
|
+
i2.KwikUITablePaginationModule,
|
|
1811
|
+
i8.KwikIDFormViewModule,
|
|
1812
|
+
i11.TuiRootModule,
|
|
1813
|
+
i11.TuiDialogModule,
|
|
1814
|
+
i11.TuiDropdownModule,
|
|
1815
|
+
addonMobile.TuiSidebarModule,
|
|
1816
|
+
i10.TuiActiveZoneModule,
|
|
1817
|
+
i11.TuiGroupModule,
|
|
1818
|
+
i11.TuiSvgModule,
|
|
1819
|
+
i3.ScrollingModule,
|
|
1820
|
+
i5.GoogleMapsModule,
|
|
1821
|
+
i3$1.HttpClientModule,
|
|
1822
|
+
i3$1.HttpClientJsonpModule], exports: [KwikIDAgentDashboardComponent] });
|
|
1823
|
+
/** @nocollapse */ KwikIDAgentDashboardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, imports: [[
|
|
1824
|
+
i6.CommonModule,
|
|
1825
|
+
i3$1.HttpClientModule,
|
|
1826
|
+
i5$1.FormsModule,
|
|
1827
|
+
i5$1.ReactiveFormsModule,
|
|
1828
|
+
i2.KwikUIButtonModule,
|
|
1829
|
+
i2.KwikUIInputModule,
|
|
1830
|
+
i2.KwikUIInputDateModule,
|
|
1831
|
+
i2.KwikUIInputDateRangeModule,
|
|
1832
|
+
i2.KwikUIInputSelectModule,
|
|
1833
|
+
i2.KwikUITableModule,
|
|
1834
|
+
i2.KwikUITablePaginationModule,
|
|
1835
|
+
i8.KwikIDFormViewModule,
|
|
1836
|
+
i11.TuiRootModule,
|
|
1837
|
+
i11.TuiDialogModule,
|
|
1838
|
+
i11.TuiDropdownModule,
|
|
1839
|
+
addonMobile.TuiSidebarModule,
|
|
1840
|
+
i10.TuiActiveZoneModule,
|
|
1841
|
+
i11.TuiGroupModule,
|
|
1842
|
+
i11.TuiSvgModule,
|
|
1843
|
+
i3.ScrollingModule,
|
|
1844
|
+
i5.GoogleMapsModule,
|
|
1845
|
+
i3$1.HttpClientModule,
|
|
1846
|
+
i3$1.HttpClientJsonpModule
|
|
1847
|
+
]] });
|
|
1848
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, decorators: [{
|
|
1849
|
+
type: i0.NgModule,
|
|
1850
|
+
args: [{
|
|
1851
|
+
declarations: [
|
|
1852
|
+
KwikIDAgentDashboardComponent,
|
|
1853
|
+
CustomerListComponent,
|
|
1854
|
+
CustomerTileComponent,
|
|
1855
|
+
Ng2SearchPipe,
|
|
1856
|
+
StatusPillComponent,
|
|
1857
|
+
CustomerDetailsComponent
|
|
1858
|
+
],
|
|
1859
|
+
imports: [
|
|
1860
|
+
i6.CommonModule,
|
|
1861
|
+
i3$1.HttpClientModule,
|
|
1862
|
+
i5$1.FormsModule,
|
|
1863
|
+
i5$1.ReactiveFormsModule,
|
|
1864
|
+
i2.KwikUIButtonModule,
|
|
1865
|
+
i2.KwikUIInputModule,
|
|
1866
|
+
i2.KwikUIInputDateModule,
|
|
1867
|
+
i2.KwikUIInputDateRangeModule,
|
|
1868
|
+
i2.KwikUIInputSelectModule,
|
|
1869
|
+
i2.KwikUITableModule,
|
|
1870
|
+
i2.KwikUITablePaginationModule,
|
|
1871
|
+
i8.KwikIDFormViewModule,
|
|
1872
|
+
i11.TuiRootModule,
|
|
1873
|
+
i11.TuiDialogModule,
|
|
1874
|
+
i11.TuiDropdownModule,
|
|
1875
|
+
addonMobile.TuiSidebarModule,
|
|
1876
|
+
i10.TuiActiveZoneModule,
|
|
1877
|
+
i11.TuiGroupModule,
|
|
1878
|
+
i11.TuiSvgModule,
|
|
1879
|
+
i3.ScrollingModule,
|
|
1880
|
+
i5.GoogleMapsModule,
|
|
1881
|
+
i3$1.HttpClientModule,
|
|
1882
|
+
i3$1.HttpClientJsonpModule
|
|
1883
|
+
],
|
|
1884
|
+
exports: [KwikIDAgentDashboardComponent]
|
|
1885
|
+
}]
|
|
1886
|
+
}] });
|
|
1890
1887
|
|
|
1891
|
-
|
|
1888
|
+
/* kwikid-agent-dashboard */
|
|
1892
1889
|
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1890
|
+
/**
|
|
1891
|
+
* Generated bundle index. Do not edit.
|
|
1892
|
+
*/
|
|
1896
1893
|
|
|
1897
|
-
|
|
1898
|
-
|
|
1894
|
+
exports.KwikIDAgentDashboardComponent = KwikIDAgentDashboardComponent;
|
|
1895
|
+
exports.KwikIDAgentDashboardModule = KwikIDAgentDashboardModule;
|
|
1899
1896
|
|
|
1900
|
-
|
|
1897
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1901
1898
|
|
|
1902
1899
|
}));
|
|
1903
1900
|
//# sourceMappingURL=kwikid-agent-dashboard.umd.js.map
|