@tactics/lokaal-loket 0.0.273 → 0.0.275

Sign up to get free protection for your applications and to get access to all the features.
package/build/index.d.cts CHANGED
@@ -959,7 +959,8 @@ interface RouteHandle<T, D> {
959
959
  setSelected: (origin: T, destination: D) => void;
960
960
  setSelectedOrigin: (origin: T) => void;
961
961
  setSelectedDestination: (destination: D) => void;
962
- focus: () => void;
962
+ focusOrigin: () => void;
963
+ focusDestination: () => void;
963
964
  blur: () => void;
964
965
  }
965
966
  declare const Route: <T, D>(props: RouteI<T, D> & {
@@ -1404,7 +1405,7 @@ interface IFooter {
1404
1405
 
1405
1406
  declare const Footer: ({ top, left, right, bottom }: IFooter) => react_jsx_runtime.JSX.Element;
1406
1407
 
1407
- type TerminalType = "ORIGIN" | "DESTINATION";
1408
+ type TerminalType = "ORIGIN" | "DESTINATION" | "VIEW_ONLY";
1408
1409
  type PointType = "DAYCARE" | "CHILDMINDER" | "COOPERATIVE" | "OUT_OF_RANGE" | "VIEW_ONLY";
1409
1410
  interface ITerminal {
1410
1411
  key: string;
@@ -1464,6 +1465,7 @@ interface ILocationBasedMap {
1464
1465
  }
1465
1466
  interface IDirectionBasedMapBase {
1466
1467
  routes?: IRoutes;
1468
+ viewOnly?: boolean;
1467
1469
  activeRoute: IRoute | null;
1468
1470
  points?: IPoints;
1469
1471
  showLoader: boolean;
@@ -1476,7 +1478,7 @@ interface IDirectionBasedMapBase {
1476
1478
  legendToggle?: React$1.ReactElement<IMapLegendLabel>;
1477
1479
  onRouteChange?: (route: IRoute, travelMode: google.maps.TravelMode, deviation: number) => void;
1478
1480
  onTravelModeChange?: (travelMode: google.maps.TravelMode, deviation: number) => void;
1479
- onAreaChange?: (center: google.maps.LatLng, bounds: google.maps.LatLngBounds, zoomLevel: number) => void;
1481
+ onAreaChange?: (origin: google.maps.LatLng, destination: google.maps.LatLng, center: google.maps.LatLng, bounds: google.maps.LatLngBounds, zoomLevel: number) => void;
1480
1482
  }
1481
1483
  interface IMap extends PropsWithChildren {
1482
1484
  mapId: string;
@@ -1496,7 +1498,7 @@ declare const Map: {
1496
1498
  Location: (props: ILocationBasedMap & {
1497
1499
  ref?: React$1.Ref<LocationMapHandle>;
1498
1500
  }) => JSX.Element;
1499
- Direction: ({ routes, activeRoute, origin, destination, deviation, activeTravelMode, points, showLoader, loader, onRouteChange, onAreaChange, onTravelModeChange, legend, legendToggle, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1501
+ Direction: ({ viewOnly, routes, activeRoute, origin, destination, deviation, activeTravelMode, points, showLoader, loader, onRouteChange, onAreaChange, onTravelModeChange, legend, legendToggle, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1500
1502
  Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
1501
1503
  Loading: ({ loader }: {
1502
1504
  loader: React$1.ReactNode;
package/build/index.d.ts CHANGED
@@ -959,7 +959,8 @@ interface RouteHandle<T, D> {
959
959
  setSelected: (origin: T, destination: D) => void;
960
960
  setSelectedOrigin: (origin: T) => void;
961
961
  setSelectedDestination: (destination: D) => void;
962
- focus: () => void;
962
+ focusOrigin: () => void;
963
+ focusDestination: () => void;
963
964
  blur: () => void;
964
965
  }
965
966
  declare const Route: <T, D>(props: RouteI<T, D> & {
@@ -1404,7 +1405,7 @@ interface IFooter {
1404
1405
 
1405
1406
  declare const Footer: ({ top, left, right, bottom }: IFooter) => react_jsx_runtime.JSX.Element;
1406
1407
 
1407
- type TerminalType = "ORIGIN" | "DESTINATION";
1408
+ type TerminalType = "ORIGIN" | "DESTINATION" | "VIEW_ONLY";
1408
1409
  type PointType = "DAYCARE" | "CHILDMINDER" | "COOPERATIVE" | "OUT_OF_RANGE" | "VIEW_ONLY";
1409
1410
  interface ITerminal {
1410
1411
  key: string;
@@ -1464,6 +1465,7 @@ interface ILocationBasedMap {
1464
1465
  }
1465
1466
  interface IDirectionBasedMapBase {
1466
1467
  routes?: IRoutes;
1468
+ viewOnly?: boolean;
1467
1469
  activeRoute: IRoute | null;
1468
1470
  points?: IPoints;
1469
1471
  showLoader: boolean;
@@ -1476,7 +1478,7 @@ interface IDirectionBasedMapBase {
1476
1478
  legendToggle?: React$1.ReactElement<IMapLegendLabel>;
1477
1479
  onRouteChange?: (route: IRoute, travelMode: google.maps.TravelMode, deviation: number) => void;
1478
1480
  onTravelModeChange?: (travelMode: google.maps.TravelMode, deviation: number) => void;
1479
- onAreaChange?: (center: google.maps.LatLng, bounds: google.maps.LatLngBounds, zoomLevel: number) => void;
1481
+ onAreaChange?: (origin: google.maps.LatLng, destination: google.maps.LatLng, center: google.maps.LatLng, bounds: google.maps.LatLngBounds, zoomLevel: number) => void;
1480
1482
  }
1481
1483
  interface IMap extends PropsWithChildren {
1482
1484
  mapId: string;
@@ -1496,7 +1498,7 @@ declare const Map: {
1496
1498
  Location: (props: ILocationBasedMap & {
1497
1499
  ref?: React$1.Ref<LocationMapHandle>;
1498
1500
  }) => JSX.Element;
1499
- Direction: ({ routes, activeRoute, origin, destination, deviation, activeTravelMode, points, showLoader, loader, onRouteChange, onAreaChange, onTravelModeChange, legend, legendToggle, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1501
+ Direction: ({ viewOnly, routes, activeRoute, origin, destination, deviation, activeTravelMode, points, showLoader, loader, onRouteChange, onAreaChange, onTravelModeChange, legend, legendToggle, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1500
1502
  Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
1501
1503
  Loading: ({ loader }: {
1502
1504
  loader: React$1.ReactNode;