kwikid-agent-dashboard 0.0.8 → 0.0.10
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 +21 -13
- 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 +8 -11
- package/fesm2015/kwikid-agent-dashboard.js +20 -13
- 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);
|
|
@@ -1231,11 +1242,11 @@
|
|
|
1231
1242
|
required: true
|
|
1232
1243
|
},
|
|
1233
1244
|
properties: {
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1245
|
+
countryCode: '+91',
|
|
1246
|
+
removeCountryCodeFromValue: true,
|
|
1247
|
+
phoneMaskAfterCountryCode: '##########',
|
|
1248
|
+
placeholder: 'Please enter your Mobile Number',
|
|
1249
|
+
readOnly: false
|
|
1239
1250
|
},
|
|
1240
1251
|
type: 'phone'
|
|
1241
1252
|
},
|
|
@@ -1505,10 +1516,6 @@
|
|
|
1505
1516
|
this.open = false;
|
|
1506
1517
|
this.allFormsData = {};
|
|
1507
1518
|
this.String = String;
|
|
1508
|
-
var DSLScript = document.createElement('script');
|
|
1509
|
-
DSLScript.src = this.agentConfig.googleMapsAPI;
|
|
1510
|
-
DSLScript.type = 'text/javascript';
|
|
1511
|
-
document.body.appendChild(DSLScript);
|
|
1512
1519
|
this.apiLoaded = httpClient
|
|
1513
1520
|
.jsonp('https://maps.googleapis.com/maps/api/js?key=AIzaSyA63JY0ja6ZGIR796vJqZARc0c2j8Vgpik&v=3.exp&libraries=geometry,drawing,places', 'callback')
|
|
1514
1521
|
.pipe(operators.map(function () { return true; }), operators.catchError(function () { return rxjs.of(false); }));
|
|
@@ -1516,7 +1523,8 @@
|
|
|
1516
1523
|
KwikIDAgentDashboardComponent.prototype.ngOnInit = function () {
|
|
1517
1524
|
var _a, _b, _c, _d, _e, _f;
|
|
1518
1525
|
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 =
|
|
1526
|
+
this.addTaskFormConfig =
|
|
1527
|
+
(_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
1528
|
this.loading = false;
|
|
1521
1529
|
};
|
|
1522
1530
|
KwikIDAgentDashboardComponent.prototype.goToNextStep = function (e) {
|