@tactics/lokaal-loket 0.0.268 → 0.0.270
Sign up to get free protection for your applications and to get access to all the features.
- package/build/index.cjs +751 -751
- package/build/index.d.cts +9 -2
- package/build/index.d.ts +9 -2
- package/build/index.js +571 -571
- package/package.json +1 -1
package/build/index.d.cts
CHANGED
@@ -1451,6 +1451,7 @@ interface IMapLegendItem {
|
|
1451
1451
|
label: string;
|
1452
1452
|
}
|
1453
1453
|
interface ILocationBasedMap {
|
1454
|
+
updateOriginOnAreaChange: boolean;
|
1454
1455
|
viewOnly?: boolean;
|
1455
1456
|
points?: IPoints;
|
1456
1457
|
showLoader: boolean;
|
@@ -1458,7 +1459,7 @@ interface ILocationBasedMap {
|
|
1458
1459
|
origin: IOrigin;
|
1459
1460
|
legend?: React$1.ReactElement<IMapLegendItem>[];
|
1460
1461
|
legendToggle?: React$1.ReactElement<IMapLegendLabel>;
|
1461
|
-
onAreaChange?: (center: google.maps.LatLng, bounds: google.maps.LatLngBounds, radius: number, zoomLevel: number) => void;
|
1462
|
+
onAreaChange?: (origin: google.maps.LatLng, center: google.maps.LatLng, bounds: google.maps.LatLngBounds, radius: number, zoomLevel: number) => void;
|
1462
1463
|
}
|
1463
1464
|
interface IDirectionBasedMapBase {
|
1464
1465
|
routes?: IRoutes;
|
@@ -1482,12 +1483,18 @@ interface IMap extends PropsWithChildren {
|
|
1482
1483
|
zoom?: number;
|
1483
1484
|
}
|
1484
1485
|
|
1486
|
+
interface LocationMapHandle {
|
1487
|
+
panTo: (lat: number, lng: number) => void;
|
1488
|
+
}
|
1489
|
+
|
1485
1490
|
declare const MapLegendLabel: ({ figure, label }: IMapLegendLabel) => react_jsx_runtime.JSX.Element;
|
1486
1491
|
declare const MapLegendItem: ({ pin, label }: IMapLegendItem) => react_jsx_runtime.JSX.Element;
|
1487
1492
|
|
1488
1493
|
declare const Map: {
|
1489
1494
|
(props: IMap): react_jsx_runtime.JSX.Element;
|
1490
|
-
Location: (
|
1495
|
+
Location: (props: ILocationBasedMap & {
|
1496
|
+
ref?: React$1.Ref<LocationMapHandle>;
|
1497
|
+
}) => JSX.Element;
|
1491
1498
|
Direction: ({ routes, activeRoute, origin, destination, deviation, activeTravelMode, points, showLoader, loader, onRouteChange, onAreaChange, onTravelModeChange, legend, legendToggle, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
|
1492
1499
|
Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
|
1493
1500
|
Loading: ({ loader }: {
|
package/build/index.d.ts
CHANGED
@@ -1451,6 +1451,7 @@ interface IMapLegendItem {
|
|
1451
1451
|
label: string;
|
1452
1452
|
}
|
1453
1453
|
interface ILocationBasedMap {
|
1454
|
+
updateOriginOnAreaChange: boolean;
|
1454
1455
|
viewOnly?: boolean;
|
1455
1456
|
points?: IPoints;
|
1456
1457
|
showLoader: boolean;
|
@@ -1458,7 +1459,7 @@ interface ILocationBasedMap {
|
|
1458
1459
|
origin: IOrigin;
|
1459
1460
|
legend?: React$1.ReactElement<IMapLegendItem>[];
|
1460
1461
|
legendToggle?: React$1.ReactElement<IMapLegendLabel>;
|
1461
|
-
onAreaChange?: (center: google.maps.LatLng, bounds: google.maps.LatLngBounds, radius: number, zoomLevel: number) => void;
|
1462
|
+
onAreaChange?: (origin: google.maps.LatLng, center: google.maps.LatLng, bounds: google.maps.LatLngBounds, radius: number, zoomLevel: number) => void;
|
1462
1463
|
}
|
1463
1464
|
interface IDirectionBasedMapBase {
|
1464
1465
|
routes?: IRoutes;
|
@@ -1482,12 +1483,18 @@ interface IMap extends PropsWithChildren {
|
|
1482
1483
|
zoom?: number;
|
1483
1484
|
}
|
1484
1485
|
|
1486
|
+
interface LocationMapHandle {
|
1487
|
+
panTo: (lat: number, lng: number) => void;
|
1488
|
+
}
|
1489
|
+
|
1485
1490
|
declare const MapLegendLabel: ({ figure, label }: IMapLegendLabel) => react_jsx_runtime.JSX.Element;
|
1486
1491
|
declare const MapLegendItem: ({ pin, label }: IMapLegendItem) => react_jsx_runtime.JSX.Element;
|
1487
1492
|
|
1488
1493
|
declare const Map: {
|
1489
1494
|
(props: IMap): react_jsx_runtime.JSX.Element;
|
1490
|
-
Location: (
|
1495
|
+
Location: (props: ILocationBasedMap & {
|
1496
|
+
ref?: React$1.Ref<LocationMapHandle>;
|
1497
|
+
}) => JSX.Element;
|
1491
1498
|
Direction: ({ routes, activeRoute, origin, destination, deviation, activeTravelMode, points, showLoader, loader, onRouteChange, onAreaChange, onTravelModeChange, legend, legendToggle, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
|
1492
1499
|
Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
|
1493
1500
|
Loading: ({ loader }: {
|