@djb25/digit-ui-module-wt 1.0.27 → 1.0.28
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +14 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -4482,8 +4482,10 @@ const reverseGeocode = async (lat, lng) => {
|
|
|
4482
4482
|
return null;
|
|
4483
4483
|
}
|
|
4484
4484
|
};
|
|
4485
|
-
const getAreaName = data => {
|
|
4486
|
-
if (!data
|
|
4485
|
+
const getAreaName = (data, useFull = false) => {
|
|
4486
|
+
if (!data) return "Unknown Address";
|
|
4487
|
+
if (useFull && data.display_name) return data.display_name;
|
|
4488
|
+
if (!data.address) return data.display_name || "Unknown Address";
|
|
4487
4489
|
const {
|
|
4488
4490
|
address
|
|
4489
4491
|
} = data;
|
|
@@ -4586,6 +4588,9 @@ const MapController = ({
|
|
|
4586
4588
|
return null;
|
|
4587
4589
|
};
|
|
4588
4590
|
const useRoute = (start, end) => {
|
|
4591
|
+
const {
|
|
4592
|
+
t
|
|
4593
|
+
} = useTranslation();
|
|
4589
4594
|
const [routeData, setRouteData] = useState(null);
|
|
4590
4595
|
const [loading, setLoading] = useState(false);
|
|
4591
4596
|
const [error, setError] = useState(null);
|
|
@@ -4628,6 +4633,9 @@ const RouteLayer = ({
|
|
|
4628
4633
|
color: _color = "#2196f3",
|
|
4629
4634
|
weight: _weight = 6
|
|
4630
4635
|
}) => {
|
|
4636
|
+
const {
|
|
4637
|
+
t
|
|
4638
|
+
} = useTranslation();
|
|
4631
4639
|
const {
|
|
4632
4640
|
routeData,
|
|
4633
4641
|
loading,
|
|
@@ -5241,6 +5249,7 @@ function LiveTrackingSystem() {
|
|
|
5241
5249
|
flexDirection: "column",
|
|
5242
5250
|
height: "100vh",
|
|
5243
5251
|
width: "100%",
|
|
5252
|
+
overflow: "hidden",
|
|
5244
5253
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
|
|
5245
5254
|
background: "#f0f2f5",
|
|
5246
5255
|
padding: "16px",
|
|
@@ -5297,7 +5306,7 @@ function LiveTrackingSystem() {
|
|
|
5297
5306
|
backgroundColor: isConnected ? "#4caf50" : "#f44336",
|
|
5298
5307
|
boxShadow: isConnected ? "0 0 8px #4caf50" : "none"
|
|
5299
5308
|
}
|
|
5300
|
-
})
|
|
5309
|
+
}))), /*#__PURE__*/React.createElement("p", {
|
|
5301
5310
|
style: {
|
|
5302
5311
|
margin: "4px 0 0 0",
|
|
5303
5312
|
fontSize: "14px",
|
|
@@ -5597,6 +5606,8 @@ function LiveTrackingSystem() {
|
|
|
5597
5606
|
})))))), /*#__PURE__*/React.createElement("div", {
|
|
5598
5607
|
style: {
|
|
5599
5608
|
flex: 1,
|
|
5609
|
+
height: "100%",
|
|
5610
|
+
minHeight: 0,
|
|
5600
5611
|
position: "relative",
|
|
5601
5612
|
background: "white",
|
|
5602
5613
|
borderRadius: "12px",
|