kwikid-agent-dashboard 0.0.8 → 0.0.9
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 +31 -16
- package/bundles/kwikid-agent-dashboard.umd.js.map +1 -1
- package/esm2015/lib/components/customer-list/customer-list.component.js +14 -4
- package/esm2015/lib/kwikid-agent-dashboard.component.js +18 -14
- package/fesm2015/kwikid-agent-dashboard.js +30 -16
- package/fesm2015/kwikid-agent-dashboard.js.map +1 -1
- package/package.json +1 -1
|
@@ -968,20 +968,31 @@
|
|
|
968
968
|
var _a;
|
|
969
969
|
return __generator(this, function (_b) {
|
|
970
970
|
switch (_b.label) {
|
|
971
|
-
case 0:
|
|
971
|
+
case 0:
|
|
972
|
+
if (!this.agentConfig.dashboardConfig.showMaps) return [3 /*break*/, 3];
|
|
973
|
+
return [4 /*yield*/, this.mapService.initMap()];
|
|
972
974
|
case 1:
|
|
973
975
|
_b.sent();
|
|
974
976
|
_a = this;
|
|
975
977
|
return [4 /*yield*/, this.plotMarkers(this.customers)];
|
|
976
978
|
case 2:
|
|
977
979
|
_a.filteredData = _b.sent();
|
|
978
|
-
return [
|
|
980
|
+
return [3 /*break*/, 4];
|
|
981
|
+
case 3:
|
|
982
|
+
this.filteredData = this.customers;
|
|
983
|
+
_b.label = 4;
|
|
984
|
+
case 4: return [2 /*return*/];
|
|
979
985
|
}
|
|
980
986
|
});
|
|
981
987
|
}); }, 1000);
|
|
982
988
|
};
|
|
983
989
|
CustomerListComponent.prototype.ngOnChanges = function () {
|
|
984
|
-
|
|
990
|
+
if (this.agentConfig.dashboardConfig.showMaps) {
|
|
991
|
+
this.filteredData = this.plotMarkers(this.customers);
|
|
992
|
+
}
|
|
993
|
+
else {
|
|
994
|
+
this.filteredData = this.customers;
|
|
995
|
+
}
|
|
985
996
|
};
|
|
986
997
|
CustomerListComponent.prototype.goToNextStep = function (e) {
|
|
987
998
|
this.nextStep.emit(e);
|
|
@@ -1056,6 +1067,7 @@
|
|
|
1056
1067
|
|
|
1057
1068
|
var KwikIDAgentDashboardComponent = /** @class */ (function () {
|
|
1058
1069
|
function KwikIDAgentDashboardComponent(mapService, httpClient, hostElement, dialogService) {
|
|
1070
|
+
var _a, _b;
|
|
1059
1071
|
this.mapService = mapService;
|
|
1060
1072
|
this.httpClient = httpClient;
|
|
1061
1073
|
this.hostElement = hostElement;
|
|
@@ -1231,11 +1243,11 @@
|
|
|
1231
1243
|
required: true
|
|
1232
1244
|
},
|
|
1233
1245
|
properties: {
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1246
|
+
countryCode: '+91',
|
|
1247
|
+
removeCountryCodeFromValue: true,
|
|
1248
|
+
phoneMaskAfterCountryCode: '##########',
|
|
1249
|
+
placeholder: 'Please enter your Mobile Number',
|
|
1250
|
+
readOnly: false
|
|
1239
1251
|
},
|
|
1240
1252
|
type: 'phone'
|
|
1241
1253
|
},
|
|
@@ -1505,18 +1517,21 @@
|
|
|
1505
1517
|
this.open = false;
|
|
1506
1518
|
this.allFormsData = {};
|
|
1507
1519
|
this.String = String;
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
.
|
|
1514
|
-
|
|
1520
|
+
if (((_b = (_a = this.agentConfig) === null || _a === void 0 ? void 0 : _a.dashboardConfig) === null || _b === void 0 ? void 0 : _b.showMaps) == true) {
|
|
1521
|
+
var DSLScript = document.createElement('script');
|
|
1522
|
+
DSLScript.src = this.agentConfig.googleMapsAPI;
|
|
1523
|
+
DSLScript.type = 'text/javascript';
|
|
1524
|
+
document.body.appendChild(DSLScript);
|
|
1525
|
+
this.apiLoaded = httpClient
|
|
1526
|
+
.jsonp('https://maps.googleapis.com/maps/api/js?key=AIzaSyA63JY0ja6ZGIR796vJqZARc0c2j8Vgpik&v=3.exp&libraries=geometry,drawing,places', 'callback')
|
|
1527
|
+
.pipe(operators.map(function () { return true; }), operators.catchError(function () { return rxjs.of(false); }));
|
|
1528
|
+
}
|
|
1515
1529
|
}
|
|
1516
1530
|
KwikIDAgentDashboardComponent.prototype.ngOnInit = function () {
|
|
1517
1531
|
var _a, _b, _c, _d, _e, _f;
|
|
1518
1532
|
this.showMapview = (_c = (_b = (_a = this.agentConfig) === null || _a === void 0 ? void 0 : _a.dashboardConfig) === null || _b === void 0 ? void 0 : _b.showMaps) !== null && _c !== void 0 ? _c : false;
|
|
1519
|
-
this.addTaskFormConfig =
|
|
1533
|
+
this.addTaskFormConfig =
|
|
1534
|
+
(_f = (_e = (_d = this.agentConfig) === null || _d === void 0 ? void 0 : _d.dashboardConfig) === null || _e === void 0 ? void 0 : _e.addTaskFormConfig) !== null && _f !== void 0 ? _f : this.addTaskFormConfig;
|
|
1520
1535
|
this.loading = false;
|
|
1521
1536
|
};
|
|
1522
1537
|
KwikIDAgentDashboardComponent.prototype.goToNextStep = function (e) {
|