@aggdirect/coolmap 2.0.3 → 2.0.5
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/esm2020/lib/component/add-route/add-route.component.mjs +3 -3
- package/esm2020/lib/component/job-code/job-code.component.mjs +6 -2
- package/fesm2015/aggdirect-coolmap.mjs +7 -3
- package/fesm2015/aggdirect-coolmap.mjs.map +1 -1
- package/fesm2020/aggdirect-coolmap.mjs +7 -3
- package/fesm2020/aggdirect-coolmap.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -794,7 +794,11 @@ class JobCodeComponent {
|
|
|
794
794
|
}
|
|
795
795
|
});
|
|
796
796
|
}
|
|
797
|
-
toggleSidemenu() {
|
|
797
|
+
toggleSidemenu() {
|
|
798
|
+
this.isVisible = !this.isVisible;
|
|
799
|
+
this.detailsCardEnable = false;
|
|
800
|
+
this.preventMouseout = false;
|
|
801
|
+
}
|
|
798
802
|
clearJob() { this.clearJobDetails.emit(true); this.utils.preVentJobdetailclose.next(false); }
|
|
799
803
|
selectRoute(event) {
|
|
800
804
|
const i = this.selectedRoute.selected.findIndex(ele => ele['order_number'] === event['order_number']);
|
|
@@ -929,7 +933,8 @@ class AddRouteComponent {
|
|
|
929
933
|
else {
|
|
930
934
|
this.popupDetails = res['route'];
|
|
931
935
|
}
|
|
932
|
-
|
|
936
|
+
if (this.enablePopUp)
|
|
937
|
+
this.popupDetails['created_at'] = this.utils.getDateFormat(new Date(this.popupDetails['created_at']), '/');
|
|
933
938
|
}
|
|
934
939
|
});
|
|
935
940
|
}
|
|
@@ -1077,7 +1082,6 @@ class AddRouteComponent {
|
|
|
1077
1082
|
checkAndFetchRouteInformation(isinitial) {
|
|
1078
1083
|
if (this.addRouteForm.value?.delivery_lat_lng?.length > 0 && this.addRouteForm.value?.pickup_lat_lng?.length > 0 && this.addRouteForm.value.unit_id) {
|
|
1079
1084
|
let unit = this.unitsList.find((x) => x.id === this.addRouteForm.value.unit_id);
|
|
1080
|
-
console.log(this.unitsList, unit);
|
|
1081
1085
|
const param = {
|
|
1082
1086
|
delivery_lat_lng: this.addRouteForm.value.delivery_lat_lng,
|
|
1083
1087
|
pickup_lat_lng: this.addRouteForm.value.pickup_lat_lng,
|