kwikid-agent-dashboard 0.0.3 → 0.0.4
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 +805 -578
- package/bundles/kwikid-agent-dashboard.umd.js.map +1 -1
- package/esm2015/lib/components/customer-list/customer-list.component.js +56 -68
- package/esm2015/lib/components/customer-tile/customer-tile.component.js +30 -24
- package/esm2015/lib/components/customer-tile/status-pill/status-pill.component.js +29 -0
- package/esm2015/lib/components/customer-tile/status-pill/status-pill.definitions.js +18 -0
- package/esm2015/lib/kwikid-agent-dashboard.component.js +507 -124
- package/esm2015/lib/kwikid-agent-dashboard.module.js +54 -27
- package/esm2015/lib/pipes/search-filter.pipe.js +62 -0
- package/esm2015/lib/services/info-window.service.js +5 -3
- package/esm2015/lib/services/map.service.js +50 -124
- package/fesm2015/kwikid-agent-dashboard.js +764 -513
- package/fesm2015/kwikid-agent-dashboard.js.map +1 -1
- package/lib/components/customer-list/customer-list.component.d.ts +19 -58
- package/lib/components/customer-tile/customer-tile.component.d.ts +7 -10
- package/lib/components/customer-tile/status-pill/status-pill.component.d.ts +10 -0
- package/lib/components/customer-tile/status-pill/status-pill.definitions.d.ts +10 -0
- package/lib/kwikid-agent-dashboard.component.d.ts +132 -95
- package/lib/kwikid-agent-dashboard.module.d.ts +13 -12
- package/lib/pipes/search-filter.pipe.d.ts +25 -0
- package/lib/services/map.service.d.ts +15 -16
- package/package.json +4 -2
- package/esm2015/lib/components/add-customer/add-customer.component.js +0 -66
- package/esm2015/lib/components/menu/menu.component.js +0 -34
- package/esm2015/lib/services/agent.service.js +0 -47
- package/esm2015/lib/services/customer.service.js +0 -20
- package/esm2015/lib/shared/interfaces/customer.js +0 -2
- package/esm2015/lib/svgs/kyc-pending/kyc-pending.component.js +0 -18
- package/esm2015/lib/svgs/kyc-success/kyc-success.component.js +0 -18
- package/lib/components/add-customer/add-customer.component.d.ts +0 -16
- package/lib/components/menu/menu.component.d.ts +0 -18
- package/lib/services/agent.service.d.ts +0 -18
- package/lib/services/customer.service.d.ts +0 -9
- package/lib/shared/interfaces/customer.d.ts +0 -16
- package/lib/svgs/kyc-pending/kyc-pending.component.d.ts +0 -8
- package/lib/svgs/kyc-success/kyc-success.component.d.ts +0 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('kwikui'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@angular/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('kwikid-agent-dashboard', ['exports', '@angular/core', 'kwikui', '@angular/forms', '@taiga-ui/cdk', '@angular/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["kwikid-agent-dashboard"] = {}, global.ng.core, global.
|
|
5
|
-
})(this, (function (exports, i0,
|
|
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('@angular/forms'), require('@taiga-ui/cdk'), require('@angular/cdk/scrolling'), require('kwikid-toolkit'), require('@angular/common'), 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', '@angular/forms', '@taiga-ui/cdk', '@angular/cdk/scrolling', 'kwikid-toolkit', '@angular/common', '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.i4$1, global.ng.forms, global["@taiga-ui/cdk"], global.ng.cdk.scrolling, global.kwikidToolkit, global.ng.common, global.i6, global["@taiga-ui/addon-mobile"]));
|
|
5
|
+
})(this, (function (exports, i0, i4, i9, rxjs, operators, i2, i4$1, i5$1, i8, i3, kwikidToolkit, i5, i6, addonMobile) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -23,8 +23,14 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
var
|
|
26
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
27
|
+
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
28
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
29
|
+
var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
|
|
27
30
|
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
31
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
32
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
33
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
28
34
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
29
35
|
|
|
30
36
|
/******************************************************************************
|
|
@@ -412,174 +418,72 @@
|
|
|
412
418
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
413
419
|
}
|
|
414
420
|
|
|
415
|
-
var AgentService = /** @class */ (function () {
|
|
416
|
-
function AgentService() {
|
|
417
|
-
this.agentConfig = {};
|
|
418
|
-
this.showMenu = false;
|
|
419
|
-
this.showMapview = true;
|
|
420
|
-
this.addTask = false;
|
|
421
|
-
}
|
|
422
|
-
AgentService.prototype.getAgentConfig = function () {
|
|
423
|
-
return this.agentConfig;
|
|
424
|
-
};
|
|
425
|
-
AgentService.prototype.setAgentConfig = function (agentConfig) {
|
|
426
|
-
this.agentConfig = agentConfig;
|
|
427
|
-
};
|
|
428
|
-
AgentService.prototype.setMapview = function (value) {
|
|
429
|
-
this.showMapview = value;
|
|
430
|
-
};
|
|
431
|
-
AgentService.prototype.getAddTask = function () {
|
|
432
|
-
return this.addTask;
|
|
433
|
-
};
|
|
434
|
-
AgentService.prototype.setAddTask = function (value) {
|
|
435
|
-
this.addTask = value;
|
|
436
|
-
this.setMenu(false);
|
|
437
|
-
};
|
|
438
|
-
AgentService.prototype.toggleMapview = function () {
|
|
439
|
-
this.showMapview = !this.showMapview;
|
|
440
|
-
};
|
|
441
|
-
AgentService.prototype.getMenu = function () {
|
|
442
|
-
return this.showMenu;
|
|
443
|
-
};
|
|
444
|
-
AgentService.prototype.setMenu = function (value) {
|
|
445
|
-
this.showMenu = value;
|
|
446
|
-
};
|
|
447
|
-
AgentService.prototype.toggleMenu = function () {
|
|
448
|
-
this.showMenu = !this.showMenu;
|
|
449
|
-
};
|
|
450
|
-
return AgentService;
|
|
451
|
-
}());
|
|
452
|
-
/** @nocollapse */ AgentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
453
|
-
/** @nocollapse */ AgentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentService, providedIn: 'root' });
|
|
454
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentService, decorators: [{
|
|
455
|
-
type: i0.Injectable,
|
|
456
|
-
args: [{
|
|
457
|
-
providedIn: 'root'
|
|
458
|
-
}]
|
|
459
|
-
}] });
|
|
460
|
-
|
|
461
421
|
var MapService = /** @class */ (function () {
|
|
462
|
-
function MapService(
|
|
463
|
-
this.
|
|
464
|
-
this.
|
|
422
|
+
function MapService(mapDirectionsService) {
|
|
423
|
+
this.mapDirectionsService = mapDirectionsService;
|
|
424
|
+
this.markers = [];
|
|
425
|
+
this.directionsRenderOption = {};
|
|
465
426
|
}
|
|
466
|
-
MapService.prototype.getMyPosition = function () {
|
|
467
|
-
return this.myPosition;
|
|
468
|
-
};
|
|
469
|
-
MapService.prototype.getMap = function () {
|
|
470
|
-
return this.map;
|
|
471
|
-
};
|
|
472
|
-
MapService.prototype.setMap = function (map) {
|
|
473
|
-
this.map = map;
|
|
474
|
-
};
|
|
475
427
|
MapService.prototype.getMarkers = function () {
|
|
476
|
-
return this.
|
|
428
|
+
return this.markers;
|
|
477
429
|
};
|
|
478
430
|
MapService.prototype.setMarkers = function (markers) {
|
|
479
|
-
this.
|
|
431
|
+
this.markers = markers;
|
|
480
432
|
};
|
|
481
|
-
MapService.prototype.initMap = function (
|
|
433
|
+
MapService.prototype.initMap = function () {
|
|
482
434
|
return __awaiter(this, void 0, void 0, function () {
|
|
483
435
|
var _a;
|
|
484
436
|
return __generator(this, function (_b) {
|
|
485
437
|
switch (_b.label) {
|
|
486
438
|
case 0:
|
|
487
439
|
_a = this;
|
|
488
|
-
return [4 /*yield*/, this.getPosition()
|
|
489
|
-
return {
|
|
490
|
-
lat: pos.lat,
|
|
491
|
-
lng: pos.lng
|
|
492
|
-
};
|
|
493
|
-
})];
|
|
440
|
+
return [4 /*yield*/, this.getPosition()];
|
|
494
441
|
case 1:
|
|
495
442
|
_a.myPosition = _b.sent();
|
|
496
|
-
this.map =
|
|
443
|
+
this.map = {
|
|
497
444
|
zoom: 10,
|
|
498
445
|
center: this.myPosition,
|
|
499
446
|
streetViewControl: false,
|
|
500
447
|
mapTypeControl: false,
|
|
501
448
|
fullscreenControl: false,
|
|
502
|
-
zoomControl: false
|
|
503
|
-
}
|
|
449
|
+
zoomControl: false
|
|
450
|
+
};
|
|
504
451
|
return [2 /*return*/];
|
|
505
452
|
}
|
|
506
453
|
});
|
|
507
454
|
});
|
|
508
455
|
};
|
|
509
456
|
MapService.prototype.plotMarkers = function (customers) {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
position: this.myPosition,
|
|
519
|
-
map: this.map,
|
|
520
|
-
animation: google.maps.Animation.DROP
|
|
521
|
-
});
|
|
522
|
-
origin = marker.getPosition();
|
|
523
|
-
customers.map(function (customer) {
|
|
524
|
-
path.push({
|
|
525
|
-
location: _this.getLatLng(customer.extras.loc),
|
|
526
|
-
stopover: true
|
|
527
|
-
});
|
|
528
|
-
});
|
|
529
|
-
return [4 /*yield*/, this.calcRoute(customers, origin, path)];
|
|
530
|
-
case 1:
|
|
531
|
-
customers = _a.sent();
|
|
532
|
-
customers.map(function (customer, index) {
|
|
533
|
-
var marker = new google.maps.Marker({
|
|
534
|
-
position: _this.getLatLng(customer.extras.loc),
|
|
535
|
-
map: _this.map,
|
|
536
|
-
animation: google.maps.Animation.DROP,
|
|
537
|
-
label: {
|
|
538
|
-
text: String(index + 1),
|
|
539
|
-
color: '#FFF'
|
|
540
|
-
}
|
|
541
|
-
});
|
|
542
|
-
_this.allCustomersMarkers.push(marker);
|
|
543
|
-
});
|
|
544
|
-
return [2 /*return*/, customers];
|
|
545
|
-
}
|
|
457
|
+
var _this = this;
|
|
458
|
+
this.markers = [];
|
|
459
|
+
var path = [];
|
|
460
|
+
this.markers.push(this.myPosition);
|
|
461
|
+
customers.map(function (customer) {
|
|
462
|
+
path.push({
|
|
463
|
+
location: _this.getLatLng(customer.task_details.customer_details.location),
|
|
464
|
+
stopover: true
|
|
546
465
|
});
|
|
547
466
|
});
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
optimizeWaypoints: true,
|
|
566
|
-
travelMode: 'DRIVING'
|
|
567
|
-
};
|
|
568
|
-
sortList = this.sortList;
|
|
569
|
-
customersData = customers;
|
|
570
|
-
return [4 /*yield*/, directionsService.route(request, function (result, status) {
|
|
571
|
-
if (status == 'OK') {
|
|
572
|
-
directionsRenderer.setDirections(result);
|
|
573
|
-
customersData = sortList(result.routes[0].waypoint_order, customersData);
|
|
574
|
-
}
|
|
575
|
-
})];
|
|
576
|
-
case 1:
|
|
577
|
-
_a.sent();
|
|
578
|
-
this.allCustomersDirections = directionsRenderer;
|
|
579
|
-
return [2 /*return*/, customersData];
|
|
580
|
-
}
|
|
467
|
+
var request = {
|
|
468
|
+
origin: this.myPosition,
|
|
469
|
+
destination: this.myPosition,
|
|
470
|
+
waypoints: path,
|
|
471
|
+
optimizeWaypoints: true,
|
|
472
|
+
travelMode: google.maps.TravelMode.DRIVING
|
|
473
|
+
};
|
|
474
|
+
this.directionsRenderOption = {
|
|
475
|
+
suppressMarkers: true
|
|
476
|
+
};
|
|
477
|
+
this.directionsResults$ = this.mapDirectionsService
|
|
478
|
+
.route(request)
|
|
479
|
+
.pipe(operators.map(function (response) { return response.result; }));
|
|
480
|
+
this.directionsResults$.subscribe(function (val) {
|
|
481
|
+
customers = _this.sortList(val.routes[0].waypoint_order, customers);
|
|
482
|
+
customers.map(function (customer) {
|
|
483
|
+
_this.markers.push(_this.getLatLng(customer.task_details.customer_details.location));
|
|
581
484
|
});
|
|
582
485
|
});
|
|
486
|
+
return this.directionsResults$;
|
|
583
487
|
};
|
|
584
488
|
MapService.prototype.getPosition = function () {
|
|
585
489
|
return new Promise(function (resolve, reject) {
|
|
@@ -594,7 +498,11 @@
|
|
|
594
498
|
});
|
|
595
499
|
};
|
|
596
500
|
MapService.prototype.getLatLng = function (data) {
|
|
597
|
-
|
|
501
|
+
var url = data.split('@');
|
|
502
|
+
var lat_long_match = url[1].split(',');
|
|
503
|
+
var lat = Number(lat_long_match[0]);
|
|
504
|
+
var long = Number(lat_long_match[1]);
|
|
505
|
+
return { lat: lat, lng: long };
|
|
598
506
|
};
|
|
599
507
|
MapService.prototype.sortList = function (order, customersData) {
|
|
600
508
|
var c = [];
|
|
@@ -604,109 +512,18 @@
|
|
|
604
512
|
}
|
|
605
513
|
return c;
|
|
606
514
|
};
|
|
607
|
-
MapService.prototype.plotHistoryCustomer = function (customer) {
|
|
608
|
-
if (this.historyCustomerMarker)
|
|
609
|
-
this.setMarkersMap(null, null);
|
|
610
|
-
this.agentService.toggleMenu();
|
|
611
|
-
var marker = new google.maps.Marker({
|
|
612
|
-
position: this.getLatLng(customer.loc),
|
|
613
|
-
map: this.map,
|
|
614
|
-
animation: google.maps.Animation.DROP,
|
|
615
|
-
label: {
|
|
616
|
-
text: 'C',
|
|
617
|
-
color: '#FFF'
|
|
618
|
-
}
|
|
619
|
-
});
|
|
620
|
-
this.historyCustomerMarker = marker;
|
|
621
|
-
var directionsService = new google.maps.DirectionsService();
|
|
622
|
-
var directionsRenderer = new google.maps.DirectionsRenderer({
|
|
623
|
-
suppressMarkers: true
|
|
624
|
-
});
|
|
625
|
-
directionsRenderer.setMap(this.map);
|
|
626
|
-
var request = {
|
|
627
|
-
origin: this.myPosition,
|
|
628
|
-
destination: marker.getPosition(),
|
|
629
|
-
optimizeWaypoints: true,
|
|
630
|
-
travelMode: 'DRIVING'
|
|
631
|
-
};
|
|
632
|
-
directionsService.route(request, function (result, status) {
|
|
633
|
-
if (status == 'OK') {
|
|
634
|
-
directionsRenderer.setDirections(result);
|
|
635
|
-
}
|
|
636
|
-
});
|
|
637
|
-
this.historyCustomerDirections = directionsRenderer;
|
|
638
|
-
this.setMarkersMap(null, this.map);
|
|
639
|
-
return marker;
|
|
640
|
-
};
|
|
641
|
-
MapService.prototype.setMarkersMap = function (all, history) {
|
|
642
|
-
this.allCustomersMarkers.map(function (marker) {
|
|
643
|
-
marker.setMap(all);
|
|
644
|
-
});
|
|
645
|
-
this.allCustomersDirections.setMap(all);
|
|
646
|
-
this.historyCustomerMarker.setMap(history);
|
|
647
|
-
this.historyCustomerDirections.setMap(history);
|
|
648
|
-
};
|
|
649
515
|
return MapService;
|
|
650
516
|
}());
|
|
651
|
-
/** @nocollapse */ MapService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapService, deps: [{ token:
|
|
517
|
+
/** @nocollapse */ MapService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapService, deps: [{ token: i4__namespace.MapDirectionsService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
652
518
|
/** @nocollapse */ MapService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapService, providedIn: 'root' });
|
|
653
519
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapService, decorators: [{
|
|
654
520
|
type: i0.Injectable,
|
|
655
521
|
args: [{
|
|
656
522
|
providedIn: 'root'
|
|
657
523
|
}]
|
|
658
|
-
}], ctorParameters: function () { return [{ type:
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
function CustomerService() {
|
|
662
|
-
}
|
|
663
|
-
CustomerService.prototype.getCustomers = function () {
|
|
664
|
-
return this.customersData;
|
|
665
|
-
};
|
|
666
|
-
CustomerService.prototype.setCustomers = function (customers) {
|
|
667
|
-
this.customersData = customers;
|
|
668
|
-
};
|
|
669
|
-
return CustomerService;
|
|
670
|
-
}());
|
|
671
|
-
/** @nocollapse */ CustomerService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
672
|
-
/** @nocollapse */ CustomerService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerService, providedIn: 'root' });
|
|
673
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerService, decorators: [{
|
|
674
|
-
type: i0.Injectable,
|
|
675
|
-
args: [{
|
|
676
|
-
providedIn: 'root'
|
|
677
|
-
}]
|
|
678
|
-
}], ctorParameters: function () { return []; } });
|
|
679
|
-
|
|
680
|
-
var MenuComponent = /** @class */ (function () {
|
|
681
|
-
/**
|
|
682
|
-
* @description
|
|
683
|
-
*
|
|
684
|
-
* @constructor
|
|
685
|
-
*/
|
|
686
|
-
function MenuComponent(agentService) {
|
|
687
|
-
this.agentService = agentService;
|
|
688
|
-
this.nextStep = new i0.EventEmitter();
|
|
689
|
-
}
|
|
690
|
-
MenuComponent.prototype.ngOnInit = function () { };
|
|
691
|
-
MenuComponent.prototype.goToNextStep = function (e) {
|
|
692
|
-
this.nextStep.emit(e);
|
|
693
|
-
};
|
|
694
|
-
MenuComponent.prototype.refresh = function () {
|
|
695
|
-
window.location.reload();
|
|
696
|
-
};
|
|
697
|
-
return MenuComponent;
|
|
698
|
-
}());
|
|
699
|
-
/** @nocollapse */ MenuComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MenuComponent, deps: [{ token: AgentService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
700
|
-
/** @nocollapse */ MenuComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MenuComponent, selector: "menu", outputs: { nextStep: "nextStep" }, ngImport: i0__namespace, template: "<div class=\"menu-container\">\n <div class=\"menu-option\">\n <div class=\"agent-name\">Agent Name</div>\n <div class=\"agent-id\">1234-5678-9012</div>\n </div>\n <hr />\n <div class=\"menu-option\" (click)=\"agentService.toggleMapview()\">\n {{ agentService.showMapview ? 'Hide Maps' : 'Show Maps' }}\n </div>\n <div class=\"menu-option\" (click)=\"agentService.setAddTask(true)\">\n Add Task\n </div>\n <div class=\"menu-option\" (click)=\"refresh()\">Refresh</div>\n <hr />\n <div class=\"menu-option\" (onClick)=\"goToNextStep('logout')\">Logout</div>\n</div>\n", styles: [".menu-container{position:absolute;top:8%;right:0;background-color:#fafafa;width:-moz-fit-content;width:fit-content;border-radius:1rem;z-index:1001;box-shadow:0 4px 8px #0000001a;transition:\"0.15s linear 0s\"}.t-wrapper{padding:1.25rem!important}.agent-name{font-size:.9rem;font-weight:600}.agent-id{font-size:.7rem}.menu-option{padding:.25rem 1.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center}hr{border:none!important;background-color:#ddd}\n"] });
|
|
701
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MenuComponent, decorators: [{
|
|
702
|
-
type: i0.Component,
|
|
703
|
-
args: [{
|
|
704
|
-
selector: 'menu',
|
|
705
|
-
templateUrl: './menu.component.html',
|
|
706
|
-
styleUrls: ['./menu.component.css']
|
|
707
|
-
}]
|
|
708
|
-
}], ctorParameters: function () { return [{ type: AgentService }]; }, propDecorators: { nextStep: [{
|
|
709
|
-
type: i0.Output
|
|
524
|
+
}], ctorParameters: function () { return [{ type: i4__namespace.MapDirectionsService }]; }, propDecorators: { directionsRenders: [{
|
|
525
|
+
type: i0.ViewChildren,
|
|
526
|
+
args: ['directionsRender']
|
|
710
527
|
}] } });
|
|
711
528
|
|
|
712
529
|
var InfoWindowService = /** @class */ (function () {
|
|
@@ -775,7 +592,7 @@
|
|
|
775
592
|
* @method showInfo
|
|
776
593
|
*/
|
|
777
594
|
InfoWindowService.prototype.showCustomerInformation = function (customer, marker) {
|
|
778
|
-
var map = this.mapService.
|
|
595
|
+
var map = this.mapService.map;
|
|
779
596
|
var contentString = this.createInfoContent(customer);
|
|
780
597
|
var infowindow = new google.maps.InfoWindow({
|
|
781
598
|
content: contentString
|
|
@@ -784,10 +601,12 @@
|
|
|
784
601
|
this.closeLastOpenedInfoWindow();
|
|
785
602
|
infowindow.open(map, marker);
|
|
786
603
|
this.lastInfoWindowOpened = infowindow;
|
|
787
|
-
map.
|
|
604
|
+
this.mapService.map = Object.assign(Object.assign({}, this.mapService.map), { center: marker.getPosition });
|
|
605
|
+
// map.setCenter(marker.getPosition());
|
|
788
606
|
return { infowindow: infowindow };
|
|
789
607
|
};
|
|
790
608
|
InfoWindowService.prototype.addEventListeners = function (customer, infowindow) {
|
|
609
|
+
// chnage -
|
|
791
610
|
var addressLink = "http://maps.google.com/?q=" + customer.extras.loc[0] + ", " + customer.extras.loc[1];
|
|
792
611
|
google.maps.event.addListener(infowindow, 'domready', function () {
|
|
793
612
|
document.getElementById('Call').addEventListener('click', function (e) {
|
|
@@ -901,43 +720,57 @@
|
|
|
901
720
|
}]
|
|
902
721
|
}], ctorParameters: function () { return [{ type: MapService }]; } });
|
|
903
722
|
|
|
904
|
-
var
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
723
|
+
var EStatus;
|
|
724
|
+
(function (EStatus) {
|
|
725
|
+
EStatus["NOT_STARTED"] = "not started";
|
|
726
|
+
EStatus["ON_GOING"] = "on going";
|
|
727
|
+
EStatus["AUDITING"] = "auditing";
|
|
728
|
+
EStatus["REJECTED"] = "rejected";
|
|
729
|
+
EStatus["AFTER_AUDIT"] = "after audit";
|
|
730
|
+
EStatus["COMPLETE"] = "complete";
|
|
731
|
+
})(EStatus || (EStatus = {}));
|
|
732
|
+
var VStatus = [
|
|
733
|
+
EStatus.NOT_STARTED,
|
|
734
|
+
EStatus.ON_GOING,
|
|
735
|
+
EStatus.AUDITING,
|
|
736
|
+
EStatus.REJECTED,
|
|
737
|
+
EStatus.AFTER_AUDIT,
|
|
738
|
+
EStatus.COMPLETE
|
|
739
|
+
];
|
|
921
740
|
|
|
922
|
-
var
|
|
923
|
-
function
|
|
741
|
+
var StatusPillComponent = /** @class */ (function () {
|
|
742
|
+
function StatusPillComponent() {
|
|
924
743
|
}
|
|
925
|
-
|
|
744
|
+
StatusPillComponent.prototype.ngOnInit = function () {
|
|
745
|
+
if (kwikidToolkit.isEmptyValue(this.status)) {
|
|
746
|
+
this.status = EStatus.NOT_STARTED;
|
|
747
|
+
}
|
|
748
|
+
};
|
|
749
|
+
StatusPillComponent.prototype.getStatusPillClass = function (status) {
|
|
750
|
+
var newStatus = status.replace(' ', '-');
|
|
751
|
+
return "status-pill " + newStatus;
|
|
926
752
|
};
|
|
927
|
-
return
|
|
753
|
+
return StatusPillComponent;
|
|
928
754
|
}());
|
|
929
|
-
/** @nocollapse */
|
|
930
|
-
/** @nocollapse */
|
|
931
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type:
|
|
755
|
+
/** @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 });
|
|
756
|
+
/** @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: i5__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
757
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StatusPillComponent, decorators: [{
|
|
932
758
|
type: i0.Component,
|
|
933
759
|
args: [{
|
|
934
|
-
selector: '
|
|
935
|
-
templateUrl: './
|
|
936
|
-
styleUrls: ['./
|
|
760
|
+
selector: 'status-pill',
|
|
761
|
+
templateUrl: './status-pill.component.html',
|
|
762
|
+
styleUrls: ['./status-pill.component.css']
|
|
937
763
|
}]
|
|
938
|
-
}],
|
|
764
|
+
}], propDecorators: { status: [{
|
|
765
|
+
type: i0.Input
|
|
766
|
+
}] } });
|
|
939
767
|
|
|
940
768
|
var CustomerTileComponent = /** @class */ (function () {
|
|
769
|
+
/**
|
|
770
|
+
* @description
|
|
771
|
+
*
|
|
772
|
+
* @constructor
|
|
773
|
+
*/
|
|
941
774
|
function CustomerTileComponent(mapService, infoWindowService) {
|
|
942
775
|
this.mapService = mapService;
|
|
943
776
|
this.infoWindowService = infoWindowService;
|
|
@@ -965,11 +798,7 @@
|
|
|
965
798
|
* @fires KwikIDAgentDashboardComponent#nextStep
|
|
966
799
|
*/
|
|
967
800
|
this.nextStep = new i0.EventEmitter();
|
|
968
|
-
this.removeTask = new i0.EventEmitter();
|
|
969
|
-
* @description
|
|
970
|
-
*
|
|
971
|
-
* @constructor
|
|
972
|
-
*/
|
|
801
|
+
this.removeTask = new i0.EventEmitter();
|
|
973
802
|
}
|
|
974
803
|
/**
|
|
975
804
|
* @description
|
|
@@ -978,11 +807,14 @@
|
|
|
978
807
|
* @ngOnInit
|
|
979
808
|
*/
|
|
980
809
|
CustomerTileComponent.prototype.ngOnInit = function () { };
|
|
810
|
+
CustomerTileComponent.prototype.getTaskDetails = function (taskData) {
|
|
811
|
+
return kwikidToolkit.getObjectValueFromPath(this.customer, taskData);
|
|
812
|
+
};
|
|
981
813
|
CustomerTileComponent.prototype.tileClick = function () {
|
|
982
|
-
console.log(
|
|
814
|
+
console.log('Tile Click', this.index);
|
|
983
815
|
if (this.index == this.infoWindowService.getOpenMarker()) {
|
|
984
816
|
this.infoWindowService.setOpenMarker(null);
|
|
985
|
-
this.infoWindowService.lastInfoWindowOpened.close();
|
|
817
|
+
//this.infoWindowService.lastInfoWindowOpened.close();
|
|
986
818
|
}
|
|
987
819
|
else {
|
|
988
820
|
this.showDetails(this.customer, this.index);
|
|
@@ -998,18 +830,14 @@
|
|
|
998
830
|
*/
|
|
999
831
|
CustomerTileComponent.prototype.showDetails = function (customer, index) {
|
|
1000
832
|
var markers = this.mapService.getMarkers();
|
|
1001
|
-
|
|
1002
|
-
var
|
|
833
|
+
console.log('Markers', markers);
|
|
834
|
+
var marker = markers[index + 1];
|
|
835
|
+
// let { infowindow } = this.infoWindowService.showCustomerInformation(
|
|
836
|
+
// customer,
|
|
837
|
+
// marker
|
|
838
|
+
// );
|
|
1003
839
|
this.infoWindowService.setOpenMarker(index);
|
|
1004
840
|
};
|
|
1005
|
-
/**
|
|
1006
|
-
* @description
|
|
1007
|
-
* Wrapper method to fire click event for next step.
|
|
1008
|
-
*
|
|
1009
|
-
* @function goToNextStep
|
|
1010
|
-
* @func goToNextStep
|
|
1011
|
-
* @method goToNextStep
|
|
1012
|
-
*/
|
|
1013
841
|
CustomerTileComponent.prototype.goToNextStep = function (e) {
|
|
1014
842
|
this.nextStep.emit(e);
|
|
1015
843
|
};
|
|
@@ -1019,7 +847,7 @@
|
|
|
1019
847
|
return CustomerTileComponent;
|
|
1020
848
|
}());
|
|
1021
849
|
/** @nocollapse */ CustomerTileComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerTileComponent, deps: [{ token: MapService }, { token: InfoWindowService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1022
|
-
/** @nocollapse */ CustomerTileComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CustomerTileComponent, selector: "customer-tile", inputs: { customer: "customer", index: "index" }, outputs: { nextStep: "nextStep", removeTask: "removeTask" }, ngImport: i0__namespace, template: "<div class=\"customer-tile-wrapper\">\n <div class=\"customer-tile-primary-container\">\n <div class=\"customer-tile-primary-container-data\">\n <
|
|
850
|
+
/** @nocollapse */ CustomerTileComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CustomerTileComponent, selector: "customer-tile", inputs: { customer: "customer", index: "index", taskDetails: "taskDetails" }, outputs: { nextStep: "nextStep", removeTask: "removeTask" }, viewQueries: [{ propertyName: "infoWindow", first: true, predicate: i4.MapInfoWindow, descendants: true }], ngImport: i0__namespace, template: "<div class=\"customer-tile-wrapper\">\n <div class=\"customer-tile-primary-container\">\n <div class=\"customer-tile-primary-container-data\">\n <div class=\"customer-tile-primary-container-userid\">\n {{ customer.user_id }}\n </div>\n <status-pill [status]=\"customer.session_status\"></status-pill>\n </div>\n <kwikui-button-icon\n [icon]=\"\n index == infoWindowService.getOpenMarker()\n ? 'tuiIconChevronUpLarge'\n : 'tuiIconChevronDownLarge'\n \"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"tileClick()\"\n ></kwikui-button-icon>\n </div>\n <div\n [ngClass]=\"\n index == infoWindowService.getOpenMarker()\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 this.taskDetails\"\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 <kwikui-button-icon\n [icon]=\"'tuiIconTrash2'\"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"handleOnClickRemoveTask(customer)\"\n ></kwikui-button-icon>\n <div class=\"customer-tile-secondary-container-journey-buttons\">\n <kwikui-button\n label=\"Share Link\"\n appearance=\"flat\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"goToNextStep({ customer: customer, process: 'share' })\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"customer.session_status !== 'complete'\"\n label=\"Edit Journey\"\n appearance=\"primary\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"goToNextStep({ customer: customer, process: 'edit' })\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"customer.session_status == ''\"\n label=\"Start Journey\"\n appearance=\"primary\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"goToNextStep({ customer: customer, process: 'kyc' })\"\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}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-actions{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center}.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:.8rem;gap:.8rem;align-items:center}.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}\n"], components: [{ type: StatusPillComponent, selector: "status-pill", inputs: ["status"] }, { type: i4__namespace$1.KwikUIButtonIconComponent, selector: "kwikui-button-icon", inputs: ["disabled", "id", "showLoader", "styles", "class", "type", "appearance", "icon", "shape", "size"], outputs: ["onClick"] }, { type: i4__namespace$1.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }], directives: [{ type: i5__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1023
851
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerTileComponent, decorators: [{
|
|
1024
852
|
type: i0.Component,
|
|
1025
853
|
args: [{
|
|
@@ -1031,67 +859,126 @@
|
|
|
1031
859
|
type: i0.Input
|
|
1032
860
|
}], index: [{
|
|
1033
861
|
type: i0.Input
|
|
862
|
+
}], taskDetails: [{
|
|
863
|
+
type: i0.Input
|
|
1034
864
|
}], nextStep: [{
|
|
1035
865
|
type: i0.Output
|
|
1036
866
|
}], removeTask: [{
|
|
1037
867
|
type: i0.Output
|
|
868
|
+
}], infoWindow: [{
|
|
869
|
+
type: i0.ViewChild,
|
|
870
|
+
args: [i4.MapInfoWindow]
|
|
1038
871
|
}] } });
|
|
1039
872
|
|
|
1040
|
-
var
|
|
873
|
+
var Ng2SearchPipe = /** @class */ (function () {
|
|
874
|
+
function Ng2SearchPipe() {
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* @param items object from array
|
|
878
|
+
* @param term term's search
|
|
879
|
+
* @param excludes array of strings which will ignored during search
|
|
880
|
+
*/
|
|
881
|
+
Ng2SearchPipe.prototype.transform = function (items, term, excludes) {
|
|
882
|
+
if (excludes === void 0) { excludes = []; }
|
|
883
|
+
if (!term || !items)
|
|
884
|
+
return items;
|
|
885
|
+
return Ng2SearchPipe.filter(items, term, excludes);
|
|
886
|
+
};
|
|
1041
887
|
/**
|
|
1042
|
-
* @description
|
|
1043
888
|
*
|
|
1044
|
-
* @
|
|
889
|
+
* @param items List of items to filter
|
|
890
|
+
* @param term a string term to compare with every property of the list
|
|
891
|
+
* @param excludes List of keys which will be ignored during search
|
|
892
|
+
*
|
|
1045
893
|
*/
|
|
1046
|
-
function
|
|
894
|
+
Ng2SearchPipe.filter = function (items, term, excludes) {
|
|
895
|
+
var toCompare = term.toLowerCase();
|
|
896
|
+
function checkInside(item, term) {
|
|
897
|
+
if (typeof item === 'string' &&
|
|
898
|
+
item.toString().toLowerCase().includes(toCompare)) {
|
|
899
|
+
return true;
|
|
900
|
+
}
|
|
901
|
+
for (var property in item) {
|
|
902
|
+
if (item[property] === null ||
|
|
903
|
+
item[property] == undefined ||
|
|
904
|
+
excludes.includes(property)) {
|
|
905
|
+
continue;
|
|
906
|
+
}
|
|
907
|
+
if (typeof item[property] === 'object') {
|
|
908
|
+
if (checkInside(item[property], term)) {
|
|
909
|
+
return true;
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
else if (item[property].toString().toLowerCase().includes(toCompare)) {
|
|
913
|
+
return true;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
return false;
|
|
917
|
+
}
|
|
918
|
+
return items.filter(function (item) {
|
|
919
|
+
return checkInside(item, term);
|
|
920
|
+
});
|
|
921
|
+
};
|
|
922
|
+
return Ng2SearchPipe;
|
|
923
|
+
}());
|
|
924
|
+
/** @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 });
|
|
925
|
+
/** @nocollapse */ Ng2SearchPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe, name: "filter", pure: false });
|
|
926
|
+
/** @nocollapse */ Ng2SearchPipe.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe });
|
|
927
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe, decorators: [{
|
|
928
|
+
type: i0.Pipe,
|
|
929
|
+
args: [{
|
|
930
|
+
name: 'filter',
|
|
931
|
+
pure: false
|
|
932
|
+
}]
|
|
933
|
+
}, {
|
|
934
|
+
type: i0.Injectable
|
|
935
|
+
}] });
|
|
936
|
+
|
|
937
|
+
var CustomerListComponent = /** @class */ (function () {
|
|
938
|
+
function CustomerListComponent(mapService) {
|
|
1047
939
|
this.mapService = mapService;
|
|
1048
|
-
this.infoWindowService = infoWindowService;
|
|
1049
|
-
/**
|
|
1050
|
-
* @description
|
|
1051
|
-
* Emitter to emit next Step
|
|
1052
|
-
*
|
|
1053
|
-
* @emits KwikIDAgentDashboardComponent#nextStep
|
|
1054
|
-
* @fires KwikIDAgentDashboardComponent#nextStep
|
|
1055
|
-
*/
|
|
1056
940
|
this.nextStep = new i0.EventEmitter();
|
|
1057
941
|
this.removeTask = new i0.EventEmitter();
|
|
942
|
+
this.filterTaskList = new i0.EventEmitter();
|
|
1058
943
|
this.filteredData = [];
|
|
1059
944
|
this.formGroup = new i5$1.FormGroup({});
|
|
1060
|
-
this.fromDate = this.getDate();
|
|
1061
|
-
this.toDate = this.getDate();
|
|
1062
|
-
this.
|
|
1063
|
-
value: new
|
|
1064
|
-
disabled: false
|
|
1065
|
-
});
|
|
1066
|
-
this.formGroup.addControl('fromDate', this.fromDateFormControl);
|
|
1067
|
-
this.toDateFormControl = new i5$1.FormControl({
|
|
1068
|
-
value: new cdk.TuiDay(new Date().getFullYear(), new Date().getMonth(), new Date().getDate()),
|
|
945
|
+
this.fromDate = this.getDate(null);
|
|
946
|
+
this.toDate = this.getDate(null);
|
|
947
|
+
this.dateRangeFormControl = new i5$1.FormControl({
|
|
948
|
+
value: new i8.TuiDayRange(new i8.TuiDay(new Date().getFullYear(), new Date().getMonth(), new Date().getDate()), new i8.TuiDay(new Date().getFullYear(), new Date().getMonth(), new Date().getDate())),
|
|
1069
949
|
disabled: false
|
|
1070
950
|
});
|
|
1071
|
-
this.formGroup.addControl('
|
|
951
|
+
this.formGroup.addControl('dateRange', this.dateRangeFormControl);
|
|
952
|
+
this.searchFormControl = new i5$1.FormControl('');
|
|
953
|
+
this.formGroup.addControl('search', this.searchFormControl);
|
|
1072
954
|
}
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
955
|
+
CustomerListComponent.prototype.ngOnInit = function () { };
|
|
956
|
+
CustomerListComponent.prototype.ngAfterViewInit = function () {
|
|
957
|
+
var _this = this;
|
|
958
|
+
setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
959
|
+
var _a;
|
|
960
|
+
return __generator(this, function (_b) {
|
|
961
|
+
switch (_b.label) {
|
|
962
|
+
case 0: return [4 /*yield*/, this.mapService.initMap()];
|
|
963
|
+
case 1:
|
|
964
|
+
_b.sent();
|
|
965
|
+
_a = this;
|
|
966
|
+
return [4 /*yield*/, this.plotMarkers(this.customers)];
|
|
967
|
+
case 2:
|
|
968
|
+
_a.filteredData = _b.sent();
|
|
969
|
+
return [2 /*return*/];
|
|
970
|
+
}
|
|
971
|
+
});
|
|
972
|
+
}); }, 1000);
|
|
973
|
+
};
|
|
974
|
+
CustomerListComponent.prototype.ngOnChanges = function () {
|
|
975
|
+
this.filteredData = this.plotMarkers(this.customers);
|
|
1081
976
|
};
|
|
1082
|
-
/**
|
|
1083
|
-
* @description
|
|
1084
|
-
* Wrapper method to fire click event for next step.
|
|
1085
|
-
*
|
|
1086
|
-
* @function goToNextStep
|
|
1087
|
-
* @func goToNextStep
|
|
1088
|
-
* @method goToNextStep
|
|
1089
|
-
*/
|
|
1090
977
|
CustomerListComponent.prototype.goToNextStep = function (e) {
|
|
1091
978
|
this.nextStep.emit(e);
|
|
1092
979
|
};
|
|
1093
|
-
CustomerListComponent.prototype.getDate = function () {
|
|
1094
|
-
var date = new Date();
|
|
980
|
+
CustomerListComponent.prototype.getDate = function (d) {
|
|
981
|
+
var date = d ? new Date(d) : new Date();
|
|
1095
982
|
var year = date.getFullYear();
|
|
1096
983
|
var month = date.getMonth() + 1;
|
|
1097
984
|
var day = date.getDate();
|
|
@@ -1102,39 +989,43 @@
|
|
|
1102
989
|
var today = year + "-" + month + "-" + day;
|
|
1103
990
|
return today;
|
|
1104
991
|
};
|
|
1105
|
-
CustomerListComponent.prototype.
|
|
992
|
+
CustomerListComponent.prototype.plotMarkers = function (customers) {
|
|
1106
993
|
var _this = this;
|
|
1107
|
-
var
|
|
1108
|
-
|
|
1109
|
-
|
|
994
|
+
var directionsResults$ = this.mapService.plotMarkers(customers);
|
|
995
|
+
directionsResults$.subscribe(function (val) {
|
|
996
|
+
_this.filteredData = _this.mapService.sortList(val.routes[0].waypoint_order, customers);
|
|
1110
997
|
});
|
|
1111
|
-
return
|
|
998
|
+
return customers;
|
|
1112
999
|
};
|
|
1113
|
-
CustomerListComponent.prototype.
|
|
1114
|
-
var year = event.
|
|
1115
|
-
var month = event.
|
|
1116
|
-
var date = event.
|
|
1000
|
+
CustomerListComponent.prototype.getTuiDate = function (event) {
|
|
1001
|
+
var year = event.year;
|
|
1002
|
+
var month = event.month + 1;
|
|
1003
|
+
var date = event.day;
|
|
1117
1004
|
month = month < 10 ? '0' + month : month;
|
|
1118
1005
|
date = date < 10 ? '0' + date : date;
|
|
1119
|
-
|
|
1120
|
-
this.filteredData = this.getCustomers(this.customers);
|
|
1006
|
+
return year + "-" + month + "-" + date;
|
|
1121
1007
|
};
|
|
1122
|
-
CustomerListComponent.prototype.
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1008
|
+
CustomerListComponent.prototype.onDateRangeChange = function (event) {
|
|
1009
|
+
this.fromDate = this.getTuiDate(event.value.from);
|
|
1010
|
+
this.toDate = this.getTuiDate(event.value.to);
|
|
1011
|
+
this.handleOnFilterTaskList({
|
|
1012
|
+
from_date: this.fromDate,
|
|
1013
|
+
to_date: this.toDate
|
|
1014
|
+
});
|
|
1015
|
+
};
|
|
1016
|
+
CustomerListComponent.prototype.onSearchFilter = function (event) {
|
|
1017
|
+
this.searchText = event.value;
|
|
1130
1018
|
};
|
|
1131
1019
|
CustomerListComponent.prototype.handleOnClickRemoveTask = function (task) {
|
|
1132
1020
|
this.removeTask.emit(task);
|
|
1133
1021
|
};
|
|
1022
|
+
CustomerListComponent.prototype.handleOnFilterTaskList = function (filter) {
|
|
1023
|
+
this.filterTaskList.emit(filter);
|
|
1024
|
+
};
|
|
1134
1025
|
return CustomerListComponent;
|
|
1135
1026
|
}());
|
|
1136
|
-
/** @nocollapse */ CustomerListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerListComponent, deps: [{ token: MapService }
|
|
1137
|
-
/** @nocollapse */ CustomerListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CustomerListComponent, selector: "customer-list", inputs: { customers: "customers" }, outputs: { nextStep: "nextStep", removeTask: "removeTask" }, ngImport: i0__namespace, template: "<div class=\"customer-list-wrapper\">\n <div class=\"customer-list-filter\" [formGroup]=\"formGroup\">\n <kwikui-input-date\n [label]=\"'
|
|
1027
|
+
/** @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 });
|
|
1028
|
+
/** @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 [label]=\"'Date Range'\"\n [id]=\"'dateRange'\"\n size=\"m\"\n [formControlName]=\"'dateRange'\"\n [formControl]=\"dateRangeFormControl\"\n (getKeyValue)=\"onDateRangeChange($event)\"\n ></kwikui-input-date-range>\n\n <kwikui-input\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 [taskDetails]=\"agentConfig?.taskDetails\"\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 No 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: i4__namespace$1.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: i4__namespace$1.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", "taskDetails"], 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: 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"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "filter": Ng2SearchPipe } });
|
|
1138
1029
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerListComponent, decorators: [{
|
|
1139
1030
|
type: i0.Component,
|
|
1140
1031
|
args: [{
|
|
@@ -1142,221 +1033,526 @@
|
|
|
1142
1033
|
templateUrl: './customer-list.component.html',
|
|
1143
1034
|
styleUrls: ['./customer-list.component.css']
|
|
1144
1035
|
}]
|
|
1145
|
-
}], ctorParameters: function () { return [{ type: MapService }
|
|
1036
|
+
}], ctorParameters: function () { return [{ type: MapService }]; }, propDecorators: { customers: [{
|
|
1037
|
+
type: i0.Input
|
|
1038
|
+
}], agentConfig: [{
|
|
1146
1039
|
type: i0.Input
|
|
1147
1040
|
}], nextStep: [{
|
|
1148
1041
|
type: i0.Output
|
|
1149
1042
|
}], removeTask: [{
|
|
1150
1043
|
type: i0.Output
|
|
1151
|
-
}]
|
|
1152
|
-
|
|
1153
|
-
var AddCustomerComponent = /** @class */ (function () {
|
|
1154
|
-
function AddCustomerComponent(agentService) {
|
|
1155
|
-
this.agentService = agentService;
|
|
1156
|
-
this.newCustomerFormGroup = undefined;
|
|
1157
|
-
this.addTask = new i0.EventEmitter();
|
|
1158
|
-
this.newCustomerFormGroup = new i5$1.FormGroup({
|
|
1159
|
-
name: new i5$1.FormControl(''),
|
|
1160
|
-
phone: new i5$1.FormControl(''),
|
|
1161
|
-
address: new i5$1.FormControl('')
|
|
1162
|
-
});
|
|
1163
|
-
}
|
|
1164
|
-
AddCustomerComponent.prototype.ngOnInit = function () { };
|
|
1165
|
-
AddCustomerComponent.prototype.handleGetKeyValue = function (e) {
|
|
1166
|
-
var _a;
|
|
1167
|
-
this.newCustomerFormGroup.patchValue((_a = {},
|
|
1168
|
-
_a[e.key] = e.value,
|
|
1169
|
-
_a), { emitEvent: false });
|
|
1170
|
-
};
|
|
1171
|
-
AddCustomerComponent.prototype.handleOnClickAddTask = function (e) {
|
|
1172
|
-
var newTask = {};
|
|
1173
|
-
newTask = {
|
|
1174
|
-
user_id: String(Math.floor(1000 + Math.random() * 9000)),
|
|
1175
|
-
date: this.getDate(),
|
|
1176
|
-
extras: {
|
|
1177
|
-
name: this.newCustomerFormGroup.controls.name.value,
|
|
1178
|
-
phone: this.newCustomerFormGroup.controls.phone.value,
|
|
1179
|
-
address: this.newCustomerFormGroup.controls.address.value,
|
|
1180
|
-
map: 'https: //www.google.com/maps/place/Westside+-+Borivali,+Mumbai/@19.2288067,72.853972,17z/data=!3m1!5s0x3be7b0d65d0d02dd:0x2bf11ace42a9dad8!4m12!1m6!3m5!1s0x3be7b0d6db21ad03:0xa31af1578987d699!2sBorivali+Station+West!8m2!3d19.2288016!4d72.8561607!3m4!1s0x3be7b12a0f616a41:0x1f4e031b07f5726c!8m2!3d19.2291309!4d72.8523105',
|
|
1181
|
-
loc: ['19.2288067', '72.853972']
|
|
1182
|
-
},
|
|
1183
|
-
kycComplete: false
|
|
1184
|
-
};
|
|
1185
|
-
this.addTask.emit(newTask);
|
|
1186
|
-
this.agentService.setAddTask(false);
|
|
1187
|
-
};
|
|
1188
|
-
AddCustomerComponent.prototype.getDate = function () {
|
|
1189
|
-
var date = new Date();
|
|
1190
|
-
var year = date.getFullYear();
|
|
1191
|
-
var month = date.getMonth() + 1;
|
|
1192
|
-
var day = date.getDate();
|
|
1193
|
-
if (month < 10)
|
|
1194
|
-
month = '0' + month;
|
|
1195
|
-
if (day < 10)
|
|
1196
|
-
day = '0' + day;
|
|
1197
|
-
var today = year + "-" + month + "-" + day;
|
|
1198
|
-
return today;
|
|
1199
|
-
};
|
|
1200
|
-
return AddCustomerComponent;
|
|
1201
|
-
}());
|
|
1202
|
-
/** @nocollapse */ AddCustomerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AddCustomerComponent, deps: [{ token: AgentService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1203
|
-
/** @nocollapse */ AddCustomerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: AddCustomerComponent, selector: "add-customer", outputs: { addTask: "addTask" }, ngImport: i0__namespace, template: "<div class=\"add-customer-container\">\n <div class=\"add-customer-form\">\n <div class=\"add-customer-form-content\" [formGroup]=\"newCustomerFormGroup\">\n <div class=\"add-customer-heading\">Add Task</div>\n <kwikui-input\n type=\"text\"\n label=\"Name\"\n id=\"name\"\n size=\"m\"\n [formControlName]=\"'name'\"\n [formControl]=\"newCustomerFormGroup.controls['name']\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input>\n <kwikui-input\n type=\"text\"\n label=\"Phone\"\n id=\"phone\"\n size=\"m\"\n [formControlName]=\"'phone'\"\n [formControl]=\"newCustomerFormGroup.controls['phone']\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input>\n <kwikui-input\n type=\"text\"\n label=\"Address\"\n id=\"address\"\n size=\"m\"\n [formControlName]=\"'address'\"\n [formControl]=\"newCustomerFormGroup.controls['address']\"\n (getKeyValue)=\"handleGetKeyValue($event)\"\n ></kwikui-input>\n <div class=\"add-customer-form-actions\">\n <kwikui-button\n label=\"Cancel\"\n appearance=\"flat\"\n size=\"m\"\n (onClick)=\"agentService.setAddTask(false)\"\n ></kwikui-button>\n <kwikui-button\n label=\"Submit\"\n appearance=\"primary\"\n size=\"m\"\n (onClick)=\"handleOnClickAddTask($event)\"\n ></kwikui-button>\n </div>\n </div>\n </div>\n</div>\n", styles: [".add-customer-container{position:absolute;background-color:#0000004d;width:100%;height:100%;display:flex;top:0;right:0;justify-content:center;align-items:center}.add-customer-form{width:75%;height:75%;margin:auto;background-color:#fff;border:1px solid lightgray;box-shadow:0 2px 10px -6px #000}.add-customer-form-content{display:flex;flex-direction:column;width:100%;height:100%;align-items:stretch;grid-gap:2rem;gap:2rem;padding:2rem}.add-customer-heading{font-size:1.3rem;font-weight:600;padding:1rem 0;border-bottom:1px solid #ddd}.add-customer-form-actions{display:flex;flex-direction:row;align-content:stretch;justify-content:flex-end}\n"], components: [{ type: i5__namespace.KwikUIInputComponent, selector: "kwikui-input", inputs: ["label", "id", "type", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "validators", "case", "properties"], outputs: ["getKeyValue"] }, { type: i5__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }], 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: 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"] }] });
|
|
1204
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AddCustomerComponent, decorators: [{
|
|
1205
|
-
type: i0.Component,
|
|
1206
|
-
args: [{
|
|
1207
|
-
selector: 'add-customer',
|
|
1208
|
-
templateUrl: './add-customer.component.html',
|
|
1209
|
-
styleUrls: ['./add-customer.component.css']
|
|
1210
|
-
}]
|
|
1211
|
-
}], ctorParameters: function () { return [{ type: AgentService }]; }, propDecorators: { addTask: [{
|
|
1044
|
+
}], filterTaskList: [{
|
|
1212
1045
|
type: i0.Output
|
|
1213
1046
|
}] } });
|
|
1214
1047
|
|
|
1215
1048
|
var KwikIDAgentDashboardComponent = /** @class */ (function () {
|
|
1216
|
-
|
|
1217
|
-
* @description
|
|
1218
|
-
*
|
|
1219
|
-
* @constructor
|
|
1220
|
-
*/
|
|
1221
|
-
function KwikIDAgentDashboardComponent(agentService, mapService, customerService) {
|
|
1222
|
-
this.agentService = agentService;
|
|
1049
|
+
function KwikIDAgentDashboardComponent(mapService, httpClient, hostElement, dialogService) {
|
|
1223
1050
|
this.mapService = mapService;
|
|
1224
|
-
this.
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
* Stores agent Config
|
|
1228
|
-
*
|
|
1229
|
-
* @default
|
|
1230
|
-
* `{}`
|
|
1231
|
-
*/
|
|
1051
|
+
this.httpClient = httpClient;
|
|
1052
|
+
this.hostElement = hostElement;
|
|
1053
|
+
this.dialogService = dialogService;
|
|
1232
1054
|
this.agentConfig = {};
|
|
1233
|
-
|
|
1234
|
-
* @description
|
|
1235
|
-
* Stores list of customers
|
|
1236
|
-
*
|
|
1237
|
-
* @default
|
|
1238
|
-
* `[]`
|
|
1239
|
-
*/
|
|
1240
|
-
this.customers = [];
|
|
1241
|
-
/**
|
|
1242
|
-
* @description
|
|
1243
|
-
* Stores list of customers
|
|
1244
|
-
*
|
|
1245
|
-
* @default
|
|
1246
|
-
* `[]`
|
|
1247
|
-
*/
|
|
1248
|
-
this.todaysCustomers = [];
|
|
1249
|
-
/**
|
|
1250
|
-
* @description
|
|
1251
|
-
* Emitter to emit next Step
|
|
1252
|
-
*
|
|
1253
|
-
* @emits KwikIDAgentDashboardComponent#nextStep
|
|
1254
|
-
* @fires KwikIDAgentDashboardComponent#nextStep
|
|
1255
|
-
*/
|
|
1055
|
+
this.taskList = [];
|
|
1256
1056
|
this.nextStep = new i0.EventEmitter();
|
|
1257
1057
|
this.addTask = new i0.EventEmitter();
|
|
1258
1058
|
this.removeTask = new i0.EventEmitter();
|
|
1259
|
-
|
|
1260
|
-
* @description
|
|
1261
|
-
* Describes whether API Call is in progress or not
|
|
1262
|
-
*
|
|
1263
|
-
* @default
|
|
1264
|
-
* `true`
|
|
1265
|
-
*/
|
|
1059
|
+
this.filterTaskList = new i0.EventEmitter();
|
|
1266
1060
|
this.loading = true;
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
this.
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1061
|
+
this.showMapview = true;
|
|
1062
|
+
this.isMobileView = false;
|
|
1063
|
+
this.listOpen = true;
|
|
1064
|
+
this.options = {
|
|
1065
|
+
stops: ['calc(5rem + 74vw)', 'calc(9rem + 74vw)']
|
|
1066
|
+
};
|
|
1067
|
+
this.open = false;
|
|
1068
|
+
this.formConfig = {
|
|
1069
|
+
key: 'ADD_TASK',
|
|
1070
|
+
title: 'Add Task',
|
|
1071
|
+
fields: [
|
|
1072
|
+
{
|
|
1073
|
+
key: 'name',
|
|
1074
|
+
label: 'Customer Name',
|
|
1075
|
+
disabled: false,
|
|
1076
|
+
messages: [],
|
|
1077
|
+
default: {
|
|
1078
|
+
value: {
|
|
1079
|
+
is_found: false,
|
|
1080
|
+
value: '',
|
|
1081
|
+
sources: [
|
|
1082
|
+
{
|
|
1083
|
+
key: 'OBJECT',
|
|
1084
|
+
props: {
|
|
1085
|
+
object: {
|
|
1086
|
+
key: 'ALL_FORMS_DATA',
|
|
1087
|
+
path: '$.ADD_TASK.name'
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
value: '',
|
|
1091
|
+
validation: {
|
|
1092
|
+
is_valid: false,
|
|
1093
|
+
triggers: ['ON_INIT'],
|
|
1094
|
+
rules: [
|
|
1095
|
+
{
|
|
1096
|
+
id: '1',
|
|
1097
|
+
key: 'VALUE_CHECK',
|
|
1098
|
+
props: {
|
|
1099
|
+
value: {
|
|
1100
|
+
source: {
|
|
1101
|
+
key: 'OBJECT',
|
|
1102
|
+
props: {
|
|
1103
|
+
object: {
|
|
1104
|
+
key: 'ALL_FORMS_DATA',
|
|
1105
|
+
path: '$.ADD_TASK.name'
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
},
|
|
1110
|
+
pattern: {
|
|
1111
|
+
key: 'IS_NOT_EMPTY'
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
],
|
|
1116
|
+
actions: [
|
|
1117
|
+
{
|
|
1118
|
+
id: '1',
|
|
1119
|
+
key: 'SET_FIELD_DEFAULT_VALUE',
|
|
1120
|
+
condition: '1',
|
|
1121
|
+
props: {
|
|
1122
|
+
fieldKey: 'name',
|
|
1123
|
+
value: {
|
|
1124
|
+
source: {
|
|
1125
|
+
key: 'OBJECT',
|
|
1126
|
+
props: {
|
|
1127
|
+
object: {
|
|
1128
|
+
key: 'ALL_FORMS_DATA',
|
|
1129
|
+
path: '$.ADD_TASK.name'
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
]
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
]
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
validators: {
|
|
1143
|
+
required: true
|
|
1144
|
+
},
|
|
1145
|
+
properties: {
|
|
1146
|
+
placeholder: 'Please enter the Customer Name',
|
|
1147
|
+
readOnly: false,
|
|
1148
|
+
case: 'default'
|
|
1149
|
+
},
|
|
1150
|
+
type: 'text'
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
key: 'phone',
|
|
1154
|
+
label: 'Phone Number',
|
|
1155
|
+
disabled: false,
|
|
1156
|
+
messages: [],
|
|
1157
|
+
default: {
|
|
1158
|
+
value: {
|
|
1159
|
+
is_found: false,
|
|
1160
|
+
value: '',
|
|
1161
|
+
sources: [
|
|
1162
|
+
{
|
|
1163
|
+
key: 'OBJECT',
|
|
1164
|
+
props: {
|
|
1165
|
+
object: {
|
|
1166
|
+
key: 'ALL_FORMS_DATA',
|
|
1167
|
+
path: '$.ADD_TASK.phone'
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
value: '',
|
|
1171
|
+
validation: {
|
|
1172
|
+
is_valid: false,
|
|
1173
|
+
triggers: ['ON_INIT'],
|
|
1174
|
+
rules: [
|
|
1175
|
+
{
|
|
1176
|
+
id: '1',
|
|
1177
|
+
key: 'VALUE_CHECK',
|
|
1178
|
+
props: {
|
|
1179
|
+
value: {
|
|
1180
|
+
source: {
|
|
1181
|
+
key: 'OBJECT',
|
|
1182
|
+
props: {
|
|
1183
|
+
object: {
|
|
1184
|
+
key: 'ALL_FORMS_DATA',
|
|
1185
|
+
path: '$.ADD_TASK.phone'
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
},
|
|
1190
|
+
pattern: {
|
|
1191
|
+
key: 'IS_NOT_EMPTY'
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
],
|
|
1196
|
+
actions: [
|
|
1197
|
+
{
|
|
1198
|
+
id: '1',
|
|
1199
|
+
key: 'SET_FIELD_DEFAULT_VALUE',
|
|
1200
|
+
condition: '1',
|
|
1201
|
+
props: {
|
|
1202
|
+
fieldKey: 'phone',
|
|
1203
|
+
value: {
|
|
1204
|
+
source: {
|
|
1205
|
+
key: 'OBJECT',
|
|
1206
|
+
props: {
|
|
1207
|
+
object: {
|
|
1208
|
+
key: 'ALL_FORMS_DATA',
|
|
1209
|
+
path: '$.ADD_TASK.phone'
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
]
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
]
|
|
1220
|
+
}
|
|
1221
|
+
},
|
|
1222
|
+
validators: {
|
|
1223
|
+
required: true
|
|
1224
|
+
},
|
|
1225
|
+
properties: {
|
|
1226
|
+
placeholder: 'Please enter the Phone Number',
|
|
1227
|
+
readOnly: false,
|
|
1228
|
+
case: 'default'
|
|
1229
|
+
},
|
|
1230
|
+
type: 'number'
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
key: 'address',
|
|
1234
|
+
label: 'Address',
|
|
1235
|
+
disabled: false,
|
|
1236
|
+
messages: [],
|
|
1237
|
+
default: {
|
|
1238
|
+
value: {
|
|
1239
|
+
is_found: false,
|
|
1240
|
+
value: '',
|
|
1241
|
+
sources: [
|
|
1242
|
+
{
|
|
1243
|
+
key: 'OBJECT',
|
|
1244
|
+
props: {
|
|
1245
|
+
object: {
|
|
1246
|
+
key: 'ALL_FORMS_DATA',
|
|
1247
|
+
path: '$.ADD_TASK.address'
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1250
|
+
value: '',
|
|
1251
|
+
validation: {
|
|
1252
|
+
is_valid: false,
|
|
1253
|
+
triggers: ['ON_INIT'],
|
|
1254
|
+
rules: [
|
|
1255
|
+
{
|
|
1256
|
+
id: '1',
|
|
1257
|
+
key: 'VALUE_CHECK',
|
|
1258
|
+
props: {
|
|
1259
|
+
value: {
|
|
1260
|
+
source: {
|
|
1261
|
+
key: 'OBJECT',
|
|
1262
|
+
props: {
|
|
1263
|
+
object: {
|
|
1264
|
+
key: 'ALL_FORMS_DATA',
|
|
1265
|
+
path: '$.ADD_TASK.address'
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
},
|
|
1270
|
+
pattern: {
|
|
1271
|
+
key: 'IS_NOT_EMPTY'
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
],
|
|
1276
|
+
actions: [
|
|
1277
|
+
{
|
|
1278
|
+
id: '1',
|
|
1279
|
+
key: 'SET_FIELD_DEFAULT_VALUE',
|
|
1280
|
+
condition: '1',
|
|
1281
|
+
props: {
|
|
1282
|
+
fieldKey: 'address',
|
|
1283
|
+
value: {
|
|
1284
|
+
source: {
|
|
1285
|
+
key: 'OBJECT',
|
|
1286
|
+
props: {
|
|
1287
|
+
object: {
|
|
1288
|
+
key: 'ALL_FORMS_DATA',
|
|
1289
|
+
path: '$.ADD_TASK.address'
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
]
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
]
|
|
1300
|
+
}
|
|
1301
|
+
},
|
|
1302
|
+
validators: {
|
|
1303
|
+
required: true
|
|
1304
|
+
},
|
|
1305
|
+
properties: {
|
|
1306
|
+
placeholder: 'Please enter the Address',
|
|
1307
|
+
readOnly: false,
|
|
1308
|
+
case: 'default'
|
|
1309
|
+
},
|
|
1310
|
+
type: 'text'
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
key: 'city',
|
|
1314
|
+
label: 'City',
|
|
1315
|
+
disabled: false,
|
|
1316
|
+
messages: [],
|
|
1317
|
+
default: {
|
|
1318
|
+
value: {
|
|
1319
|
+
is_found: false,
|
|
1320
|
+
value: '',
|
|
1321
|
+
sources: [
|
|
1322
|
+
{
|
|
1323
|
+
key: 'OBJECT',
|
|
1324
|
+
props: {
|
|
1325
|
+
object: {
|
|
1326
|
+
key: 'ALL_FORMS_DATA',
|
|
1327
|
+
path: '$.ADD_TASK.city'
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
value: '',
|
|
1331
|
+
validation: {
|
|
1332
|
+
is_valid: false,
|
|
1333
|
+
triggers: ['ON_INIT'],
|
|
1334
|
+
rules: [
|
|
1335
|
+
{
|
|
1336
|
+
id: '1',
|
|
1337
|
+
key: 'VALUE_CHECK',
|
|
1338
|
+
props: {
|
|
1339
|
+
value: {
|
|
1340
|
+
source: {
|
|
1341
|
+
key: 'OBJECT',
|
|
1342
|
+
props: {
|
|
1343
|
+
object: {
|
|
1344
|
+
key: 'ALL_FORMS_DATA',
|
|
1345
|
+
path: '$.ADD_TASK.city'
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
},
|
|
1350
|
+
pattern: {
|
|
1351
|
+
key: 'IS_NOT_EMPTY'
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
],
|
|
1356
|
+
actions: [
|
|
1357
|
+
{
|
|
1358
|
+
id: '1',
|
|
1359
|
+
key: 'SET_FIELD_DEFAULT_VALUE',
|
|
1360
|
+
condition: '1',
|
|
1361
|
+
props: {
|
|
1362
|
+
fieldKey: 'city',
|
|
1363
|
+
value: {
|
|
1364
|
+
source: {
|
|
1365
|
+
key: 'OBJECT',
|
|
1366
|
+
props: {
|
|
1367
|
+
object: {
|
|
1368
|
+
key: 'ALL_FORMS_DATA',
|
|
1369
|
+
path: '$.ADD_TASK.city'
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
]
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
]
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
validators: {
|
|
1383
|
+
required: true
|
|
1384
|
+
},
|
|
1385
|
+
properties: {
|
|
1386
|
+
placeholder: 'Please enter the City',
|
|
1387
|
+
readOnly: false,
|
|
1388
|
+
case: 'default'
|
|
1389
|
+
},
|
|
1390
|
+
type: 'text'
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
key: 'location',
|
|
1394
|
+
label: 'Location URL',
|
|
1395
|
+
disabled: false,
|
|
1396
|
+
messages: [],
|
|
1397
|
+
default: {
|
|
1398
|
+
value: {
|
|
1399
|
+
is_found: false,
|
|
1400
|
+
value: '',
|
|
1401
|
+
sources: [
|
|
1402
|
+
{
|
|
1403
|
+
key: 'OBJECT',
|
|
1404
|
+
props: {
|
|
1405
|
+
object: {
|
|
1406
|
+
key: 'ALL_FORMS_DATA',
|
|
1407
|
+
path: '$.ADD_TASK.location'
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
value: '',
|
|
1411
|
+
validation: {
|
|
1412
|
+
is_valid: false,
|
|
1413
|
+
triggers: ['ON_INIT'],
|
|
1414
|
+
rules: [
|
|
1415
|
+
{
|
|
1416
|
+
id: '1',
|
|
1417
|
+
key: 'VALUE_CHECK',
|
|
1418
|
+
props: {
|
|
1419
|
+
value: {
|
|
1420
|
+
source: {
|
|
1421
|
+
key: 'OBJECT',
|
|
1422
|
+
props: {
|
|
1423
|
+
object: {
|
|
1424
|
+
key: 'ALL_FORMS_DATA',
|
|
1425
|
+
path: '$.ADD_TASK.location'
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
},
|
|
1430
|
+
pattern: {
|
|
1431
|
+
key: 'IS_NOT_EMPTY'
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
],
|
|
1436
|
+
actions: [
|
|
1437
|
+
{
|
|
1438
|
+
id: '1',
|
|
1439
|
+
key: 'SET_FIELD_DEFAULT_VALUE',
|
|
1440
|
+
condition: '1',
|
|
1441
|
+
props: {
|
|
1442
|
+
fieldKey: 'location',
|
|
1443
|
+
value: {
|
|
1444
|
+
source: {
|
|
1445
|
+
key: 'OBJECT',
|
|
1446
|
+
props: {
|
|
1447
|
+
object: {
|
|
1448
|
+
key: 'ALL_FORMS_DATA',
|
|
1449
|
+
path: '$.ADD_TASK.location'
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
]
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
]
|
|
1460
|
+
}
|
|
1461
|
+
},
|
|
1462
|
+
validators: {
|
|
1463
|
+
required: true
|
|
1464
|
+
},
|
|
1465
|
+
properties: {
|
|
1466
|
+
placeholder: 'Please enter the Location URL',
|
|
1467
|
+
readOnly: false,
|
|
1468
|
+
case: 'default'
|
|
1469
|
+
},
|
|
1470
|
+
type: 'text'
|
|
1471
|
+
}
|
|
1472
|
+
],
|
|
1473
|
+
properties: {
|
|
1474
|
+
header: {
|
|
1475
|
+
title: {
|
|
1476
|
+
hidden: true,
|
|
1477
|
+
label: 'Add Task'
|
|
1478
|
+
},
|
|
1479
|
+
steps: {
|
|
1480
|
+
hidden: true
|
|
1481
|
+
}
|
|
1482
|
+
},
|
|
1483
|
+
footer: {
|
|
1484
|
+
viewFormsButton: {
|
|
1485
|
+
hidden: true,
|
|
1486
|
+
label: 'View Forms'
|
|
1487
|
+
},
|
|
1488
|
+
saveButton: {
|
|
1489
|
+
hidden: false,
|
|
1490
|
+
label: 'Submit'
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
};
|
|
1495
|
+
this.allFormsData = {};
|
|
1496
|
+
this.String = String;
|
|
1284
1497
|
var DSLScript = document.createElement('script');
|
|
1285
1498
|
DSLScript.src = this.agentConfig.googleMapsAPI;
|
|
1286
1499
|
DSLScript.type = 'text/javascript';
|
|
1287
1500
|
document.body.appendChild(DSLScript);
|
|
1288
|
-
this.
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1501
|
+
this.apiLoaded = httpClient
|
|
1502
|
+
.jsonp('https://maps.googleapis.com/maps/api/js?key=AIzaSyA63JY0ja6ZGIR796vJqZARc0c2j8Vgpik&v=3.exp&libraries=geometry,drawing,places', 'callback')
|
|
1503
|
+
.pipe(operators.map(function () { return true; }), operators.catchError(function () { return rxjs.of(false); }));
|
|
1504
|
+
}
|
|
1505
|
+
KwikIDAgentDashboardComponent.prototype.ngOnInit = function () {
|
|
1292
1506
|
this.agentConfig.showMaps == true || this.agentConfig.showMaps == false
|
|
1293
|
-
? this.
|
|
1507
|
+
? (this.showMapview = this.agentConfig.showMaps)
|
|
1294
1508
|
: null;
|
|
1509
|
+
this.loading = false;
|
|
1295
1510
|
};
|
|
1296
|
-
/**
|
|
1297
|
-
* @description
|
|
1298
|
-
*
|
|
1299
|
-
* @ngAfterViewInit
|
|
1300
|
-
*/
|
|
1301
|
-
KwikIDAgentDashboardComponent.prototype.ngAfterViewInit = function () {
|
|
1302
|
-
var _this = this;
|
|
1303
|
-
setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
1304
|
-
var _a;
|
|
1305
|
-
return __generator(this, function (_b) {
|
|
1306
|
-
switch (_b.label) {
|
|
1307
|
-
case 0: return [4 /*yield*/, this.mapService.initMap(this.mapElement)];
|
|
1308
|
-
case 1:
|
|
1309
|
-
_b.sent();
|
|
1310
|
-
_a = this;
|
|
1311
|
-
return [4 /*yield*/, this.mapService.plotMarkers(this.todaysCustomers)];
|
|
1312
|
-
case 2:
|
|
1313
|
-
_a.todaysCustomers = _b.sent();
|
|
1314
|
-
return [2 /*return*/];
|
|
1315
|
-
}
|
|
1316
|
-
});
|
|
1317
|
-
}); }, 1000);
|
|
1318
|
-
};
|
|
1319
|
-
/**
|
|
1320
|
-
* @description
|
|
1321
|
-
* Wrapper method to fire click event for next step.
|
|
1322
|
-
*
|
|
1323
|
-
* @function goToNextStep
|
|
1324
|
-
* @func goToNextStep
|
|
1325
|
-
* @method goToNextStep
|
|
1326
|
-
*/
|
|
1327
1511
|
KwikIDAgentDashboardComponent.prototype.goToNextStep = function (e) {
|
|
1328
1512
|
this.nextStep.emit(e);
|
|
1329
1513
|
};
|
|
1330
|
-
/**
|
|
1331
|
-
* @description
|
|
1332
|
-
* Wrapper method to fire click event for next step.
|
|
1333
|
-
*
|
|
1334
|
-
* @function getDate
|
|
1335
|
-
* @func getDate
|
|
1336
|
-
* @method getDate
|
|
1337
|
-
*/
|
|
1338
|
-
KwikIDAgentDashboardComponent.prototype.getDate = function () {
|
|
1339
|
-
var date = new Date();
|
|
1340
|
-
var year = date.getFullYear();
|
|
1341
|
-
var month = date.getMonth() + 1;
|
|
1342
|
-
var day = date.getDate();
|
|
1343
|
-
if (month < 10)
|
|
1344
|
-
month = '0' + month;
|
|
1345
|
-
if (day < 10)
|
|
1346
|
-
day = '0' + day;
|
|
1347
|
-
var today = year + "-" + month + "-" + day;
|
|
1348
|
-
return today;
|
|
1349
|
-
};
|
|
1350
1514
|
KwikIDAgentDashboardComponent.prototype.handleOnClickAddTask = function (task) {
|
|
1351
1515
|
this.addTask.emit(task);
|
|
1352
1516
|
};
|
|
1353
1517
|
KwikIDAgentDashboardComponent.prototype.handleOnClickRemoveTask = function (task) {
|
|
1354
1518
|
this.removeTask.emit(task);
|
|
1355
1519
|
};
|
|
1520
|
+
KwikIDAgentDashboardComponent.prototype.handleOnFilterTaskList = function (filter) {
|
|
1521
|
+
this.filterTaskList.emit(filter);
|
|
1522
|
+
};
|
|
1523
|
+
KwikIDAgentDashboardComponent.prototype.refresh = function () {
|
|
1524
|
+
window.location.reload();
|
|
1525
|
+
};
|
|
1526
|
+
KwikIDAgentDashboardComponent.prototype.toggleMapview = function () {
|
|
1527
|
+
this.showMapview = !this.showMapview;
|
|
1528
|
+
};
|
|
1529
|
+
KwikIDAgentDashboardComponent.prototype.onClick = function () {
|
|
1530
|
+
this.open = !this.open;
|
|
1531
|
+
};
|
|
1532
|
+
KwikIDAgentDashboardComponent.prototype.onObscured = function (obscured) {
|
|
1533
|
+
if (obscured) {
|
|
1534
|
+
this.open = false;
|
|
1535
|
+
}
|
|
1536
|
+
};
|
|
1537
|
+
KwikIDAgentDashboardComponent.prototype.onActiveZone = function (active) {
|
|
1538
|
+
this.open = active && this.open;
|
|
1539
|
+
};
|
|
1540
|
+
KwikIDAgentDashboardComponent.prototype.showDialog = function (content) {
|
|
1541
|
+
this.dialogService
|
|
1542
|
+
.open(content, { closeable: false, dismissible: false })
|
|
1543
|
+
.subscribe();
|
|
1544
|
+
};
|
|
1545
|
+
KwikIDAgentDashboardComponent.prototype.openInfoWindow = function (marker) {
|
|
1546
|
+
this.infoWindow.open(marker);
|
|
1547
|
+
};
|
|
1548
|
+
KwikIDAgentDashboardComponent.prototype.handleOnClickSaveForm = function (e) {
|
|
1549
|
+
this.handleOnClickAddTask(e.data);
|
|
1550
|
+
};
|
|
1551
|
+
KwikIDAgentDashboardComponent.prototype.handleOnClickViewForms = function (e) { };
|
|
1356
1552
|
return KwikIDAgentDashboardComponent;
|
|
1357
1553
|
}());
|
|
1358
|
-
/** @nocollapse */ KwikIDAgentDashboardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponent, deps: [{ token:
|
|
1359
|
-
/** @nocollapse */ KwikIDAgentDashboardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDAgentDashboardComponent, selector: "kwikid-agent-dashboard", inputs: { agentConfig: "agentConfig", customers: "customers", todaysCustomers: "todaysCustomers" }, outputs: { nextStep: "nextStep", addTask: "addTask", removeTask: "removeTask" }, viewQueries: [{ propertyName: "mapElement", first: true, predicate: ["mapElement"], descendants: true }], ngImport: i0__namespace, template: "<div class=\"kwikid-agent-dashboard\">\n <div ngClass=\"page-loader\" *ngIf=\"loading\">\n <span class=\"loader\"></span>\n </div>\n <div class=\"wrapper\">\n <div class=\"dashboard-header\">\n <div class=\"dashboard-header-client-name\">\n <kwikui-button-icon\n [icon]=\"'tuiIconLink'\"\n appearance=\"mono\"\n size=\"m\"\n ></kwikui-button-icon>\n\n {{ agentConfig.clientName }}\n </div>\n <div *ngIf=\"agentService.getMenu()\">\n <menu\n (close)=\"agentService.setMenu(false)\"\n (nextStep)=\"goToNextStep($event)\"\n ></menu>\n </div>\n <kwikui-button-icon\n [icon]=\"'tuiIconMoreVertical'\"\n (onClick)=\"agentService.toggleMenu()\"\n appearance=\"mono\"\n size=\"m\"\n ></kwikui-button-icon>\n </div>\n\n <div class=\"dashboard-body\">\n <div\n [class]=\"agentService.showMapview ? 'map' : 'map-hidden'\"\n #mapElement\n ></div>\n <div class=\"customer-list\">\n <customer-list\n [customers]=\"customers\"\n (nextStep)=\"goToNextStep($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n ></customer-list>\n </div>\n </div>\n </div>\n <div *ngIf=\"agentService.getAddTask()\">\n <add-customer (addTask)=\"handleOnClickAddTask($event)\"></add-customer>\n </div>\n</div>\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 lightgray;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: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 lightgray;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:center;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 .customer-list{min-width:300px;max-width:300px;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\"}.page-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}.page-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}.page-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)}}.page-loader .t-loader{display:none!important}::-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: i5__namespace.KwikUIButtonIconComponent, selector: "kwikui-button-icon", inputs: ["disabled", "id", "showLoader", "styles", "class", "type", "appearance", "icon", "shape", "size"], outputs: ["onClick"] }, { type: MenuComponent, selector: "menu", outputs: ["nextStep"] }, { type: CustomerListComponent, selector: "customer-list", inputs: ["customers"], outputs: ["nextStep", "removeTask"] }, { type: AddCustomerComponent, selector: "add-customer", outputs: ["addTask"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
1554
|
+
/** @nocollapse */ KwikIDAgentDashboardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponent, deps: [{ token: MapService }, { token: i2__namespace.HttpClient }, { token: i0__namespace.ElementRef }, { token: i9.TuiDialogService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1555
|
+
/** @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" }, viewQueries: [{ propertyName: "infoWindow", first: true, predicate: i4.MapInfoWindow, descendants: true }], ngImport: i0__namespace, template: "<div class=\"kwikid-agent-dashboard\" *ngIf=\"!loading\">\n <div class=\"wrapper\">\n <div class=\"dashboard-header\">\n <div class=\"dashboard-header-client-name\">\n <kwikui-button-icon\n [icon]=\"'tuiIconLink'\"\n appearance=\"mono\"\n size=\"m\"\n ></kwikui-button-icon>\n\n {{ agentConfig.clientName }}\n </div>\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 <h2>{{ agentConfig.agentName }}</h2>\n <h4>Agent ID:{{ agentConfig.agentId }}</h4>\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.showMaps\"\n id=\"\"\n label=\"{{ showMapview ? 'Hide Maps' : 'Show Maps' }}\"\n styles=\"\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"mono\"\n icon=\"{{ showMapview ? 'tuiIconEyeOff' : 'tuiIconEye' }}\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n styles=\"padding: 0rem !important\"\n (onClick)=\"toggleMapview()\"\n ></kwikui-button>\n <kwikui-button\n id=\"\"\n label=\"Add Task\"\n styles=\"\"\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 <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 <hr />\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('logout')\"\n ></kwikui-button>\n </div>\n </div>\n </ng-template>\n </span>\n </div>\n\n <div class=\"dashboard-body\">\n <div\n *ngIf=\"apiLoaded | async\"\n [class]=\"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 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]=\"formConfig\"\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-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:center;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 .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-buttons ::ng-deep .t-wrapper{padding:0!important}\n"], components: [{ type: i4__namespace$1.KwikUIButtonIconComponent, selector: "kwikui-button-icon", inputs: ["disabled", "id", "showLoader", "styles", "class", "type", "appearance", "icon", "shape", "size"], outputs: ["onClick"] }, { type: i4__namespace$1.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }, { type: i4__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: CustomerListComponent, selector: "customer-list", inputs: ["customers", "agentConfig"], outputs: ["nextStep", "removeTask", "filterTaskList"] }, { type: i6__namespace.KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: ["formConfig", "formData", "isMobileView", "allFormsData"], outputs: ["onClickViewForms", "onClickSaveForm", "onClickApiCall"] }], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i9__namespace.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { type: i9__namespace.TuiDropdownDriverDirective, selector: "[tuiDropdown]" }, { type: i9__namespace.TuiDropdownPositionDirective, selector: "[tuiDropdown]:not([tuiDropdownCustomPosition]):not([tuiDropdownSided])" }, { type: i9__namespace.TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: ["tuiDropdownManual"] }, { type: i9__namespace.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__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: i4__namespace.MapDirectionsRenderer, selector: "map-directions-renderer", inputs: ["directions", "options"], outputs: ["directionsChanged"], exportAs: ["mapDirectionsRenderer"] }, { type: i4__namespace.MapInfoWindow, selector: "map-info-window", inputs: ["options", "position"], outputs: ["closeclick", "contentChanged", "domready", "positionChanged", "zindexChanged"], exportAs: ["mapInfoWindow"] }], pipes: { "async": i5__namespace.AsyncPipe } });
|
|
1360
1556
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponent, decorators: [{
|
|
1361
1557
|
type: i0.Component,
|
|
1362
1558
|
args: [{
|
|
@@ -1364,11 +1560,14 @@
|
|
|
1364
1560
|
templateUrl: './kwikid-agent-dashboard.component.html',
|
|
1365
1561
|
styleUrls: ['./kwikid-agent-dashboard.component.scss']
|
|
1366
1562
|
}]
|
|
1367
|
-
}], ctorParameters: function () {
|
|
1563
|
+
}], ctorParameters: function () {
|
|
1564
|
+
return [{ type: MapService }, { type: i2__namespace.HttpClient }, { type: i0__namespace.ElementRef }, { type: i9__namespace.TuiDialogService, decorators: [{
|
|
1565
|
+
type: i0.Inject,
|
|
1566
|
+
args: [i9.TuiDialogService]
|
|
1567
|
+
}] }];
|
|
1568
|
+
}, propDecorators: { agentConfig: [{
|
|
1368
1569
|
type: i0.Input
|
|
1369
|
-
}],
|
|
1370
|
-
type: i0.Input
|
|
1371
|
-
}], todaysCustomers: [{
|
|
1570
|
+
}], taskList: [{
|
|
1372
1571
|
type: i0.Input
|
|
1373
1572
|
}], nextStep: [{
|
|
1374
1573
|
type: i0.Output
|
|
@@ -1376,9 +1575,11 @@
|
|
|
1376
1575
|
type: i0.Output
|
|
1377
1576
|
}], removeTask: [{
|
|
1378
1577
|
type: i0.Output
|
|
1379
|
-
}],
|
|
1578
|
+
}], filterTaskList: [{
|
|
1579
|
+
type: i0.Output
|
|
1580
|
+
}], infoWindow: [{
|
|
1380
1581
|
type: i0.ViewChild,
|
|
1381
|
-
args: [
|
|
1582
|
+
args: [i4.MapInfoWindow, { static: false }]
|
|
1382
1583
|
}] } });
|
|
1383
1584
|
|
|
1384
1585
|
var KwikIDAgentDashboardModule = /** @class */ (function () {
|
|
@@ -1390,38 +1591,56 @@
|
|
|
1390
1591
|
/** @nocollapse */ KwikIDAgentDashboardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, declarations: [KwikIDAgentDashboardComponent,
|
|
1391
1592
|
CustomerListComponent,
|
|
1392
1593
|
CustomerTileComponent,
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
AddCustomerComponent], imports: [i6.CommonModule,
|
|
1397
|
-
http.HttpClientModule,
|
|
1594
|
+
Ng2SearchPipe,
|
|
1595
|
+
StatusPillComponent], imports: [i5.CommonModule,
|
|
1596
|
+
i2.HttpClientModule,
|
|
1398
1597
|
i5$1.FormsModule,
|
|
1399
1598
|
i5$1.ReactiveFormsModule,
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1599
|
+
i4$1.KwikUIButtonModule,
|
|
1600
|
+
i4$1.KwikUIButtonIconModule,
|
|
1601
|
+
i4$1.KwikUIInputModule,
|
|
1602
|
+
i4$1.KwikUIInputDateModule,
|
|
1603
|
+
i4$1.KwikUIInputDateRangeModule,
|
|
1604
|
+
i4$1.KwikUISelectComboboxModule,
|
|
1605
|
+
i4$1.KwikUITableModule,
|
|
1606
|
+
i4$1.KwikUITablePaginationModule,
|
|
1607
|
+
i6.KwikIDFormViewModule,
|
|
1608
|
+
i9.TuiRootModule,
|
|
1609
|
+
i9.TuiDialogModule,
|
|
1610
|
+
i9.TuiDropdownModule,
|
|
1408
1611
|
addonMobile.TuiSidebarModule,
|
|
1409
|
-
|
|
1612
|
+
i8.TuiActiveZoneModule,
|
|
1613
|
+
i9.TuiGroupModule,
|
|
1614
|
+
i9.TuiSvgModule,
|
|
1615
|
+
i3.ScrollingModule,
|
|
1616
|
+
i4.GoogleMapsModule,
|
|
1617
|
+
i2.HttpClientModule,
|
|
1618
|
+
i2.HttpClientJsonpModule], exports: [KwikIDAgentDashboardComponent] });
|
|
1410
1619
|
/** @nocollapse */ KwikIDAgentDashboardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, imports: [[
|
|
1411
|
-
|
|
1412
|
-
|
|
1620
|
+
i5.CommonModule,
|
|
1621
|
+
i2.HttpClientModule,
|
|
1413
1622
|
i5$1.FormsModule,
|
|
1414
1623
|
i5$1.ReactiveFormsModule,
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1624
|
+
i4$1.KwikUIButtonModule,
|
|
1625
|
+
i4$1.KwikUIButtonIconModule,
|
|
1626
|
+
i4$1.KwikUIInputModule,
|
|
1627
|
+
i4$1.KwikUIInputDateModule,
|
|
1628
|
+
i4$1.KwikUIInputDateRangeModule,
|
|
1629
|
+
i4$1.KwikUISelectComboboxModule,
|
|
1630
|
+
i4$1.KwikUITableModule,
|
|
1631
|
+
i4$1.KwikUITablePaginationModule,
|
|
1632
|
+
i6.KwikIDFormViewModule,
|
|
1633
|
+
i9.TuiRootModule,
|
|
1634
|
+
i9.TuiDialogModule,
|
|
1635
|
+
i9.TuiDropdownModule,
|
|
1423
1636
|
addonMobile.TuiSidebarModule,
|
|
1424
|
-
|
|
1637
|
+
i8.TuiActiveZoneModule,
|
|
1638
|
+
i9.TuiGroupModule,
|
|
1639
|
+
i9.TuiSvgModule,
|
|
1640
|
+
i3.ScrollingModule,
|
|
1641
|
+
i4.GoogleMapsModule,
|
|
1642
|
+
i2.HttpClientModule,
|
|
1643
|
+
i2.HttpClientJsonpModule
|
|
1425
1644
|
]] });
|
|
1426
1645
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, decorators: [{
|
|
1427
1646
|
type: i0.NgModule,
|
|
@@ -1430,28 +1649,36 @@
|
|
|
1430
1649
|
KwikIDAgentDashboardComponent,
|
|
1431
1650
|
CustomerListComponent,
|
|
1432
1651
|
CustomerTileComponent,
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
KycPendingComponent,
|
|
1436
|
-
AddCustomerComponent,
|
|
1652
|
+
Ng2SearchPipe,
|
|
1653
|
+
StatusPillComponent
|
|
1437
1654
|
],
|
|
1438
1655
|
imports: [
|
|
1439
|
-
|
|
1440
|
-
|
|
1656
|
+
i5.CommonModule,
|
|
1657
|
+
i2.HttpClientModule,
|
|
1441
1658
|
i5$1.FormsModule,
|
|
1442
1659
|
i5$1.ReactiveFormsModule,
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1660
|
+
i4$1.KwikUIButtonModule,
|
|
1661
|
+
i4$1.KwikUIButtonIconModule,
|
|
1662
|
+
i4$1.KwikUIInputModule,
|
|
1663
|
+
i4$1.KwikUIInputDateModule,
|
|
1664
|
+
i4$1.KwikUIInputDateRangeModule,
|
|
1665
|
+
i4$1.KwikUISelectComboboxModule,
|
|
1666
|
+
i4$1.KwikUITableModule,
|
|
1667
|
+
i4$1.KwikUITablePaginationModule,
|
|
1668
|
+
i6.KwikIDFormViewModule,
|
|
1669
|
+
i9.TuiRootModule,
|
|
1670
|
+
i9.TuiDialogModule,
|
|
1671
|
+
i9.TuiDropdownModule,
|
|
1451
1672
|
addonMobile.TuiSidebarModule,
|
|
1452
|
-
|
|
1673
|
+
i8.TuiActiveZoneModule,
|
|
1674
|
+
i9.TuiGroupModule,
|
|
1675
|
+
i9.TuiSvgModule,
|
|
1676
|
+
i3.ScrollingModule,
|
|
1677
|
+
i4.GoogleMapsModule,
|
|
1678
|
+
i2.HttpClientModule,
|
|
1679
|
+
i2.HttpClientJsonpModule
|
|
1453
1680
|
],
|
|
1454
|
-
exports: [KwikIDAgentDashboardComponent]
|
|
1681
|
+
exports: [KwikIDAgentDashboardComponent]
|
|
1455
1682
|
}]
|
|
1456
1683
|
}] });
|
|
1457
1684
|
|