@heycar/heycars-map 0.2.11 → 0.3.0

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.
@@ -0,0 +1,8 @@
1
+ export declare const absoluteAddressBoxLayout: string;
2
+ export declare const absoluteAddressBox: string;
3
+ export declare const boxTextLayout: string;
4
+ export declare const boxTitle: string;
5
+ export declare const boxDescription: string;
6
+ export declare const arrowRight: string;
7
+ export declare const straightLine: string;
8
+ export declare const locatorIcon: string;
@@ -1,2 +1,8 @@
1
- import type { AddressBoxProps } from "../AddressBox";
2
- export declare const AbsoluteAddressBox: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AddressBoxProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AddressBoxProps, Required<AddressBoxProps>>, never, AddressBoxProps, {}>;
1
+ import type { MapLogProps } from "../../hooks/useMapLog";
2
+ export interface AbsoluteAddressBoxProps extends MapLogProps {
3
+ type: "box" | "locator";
4
+ title: string;
5
+ description?: string;
6
+ onClick?: () => any;
7
+ }
8
+ export declare const AbsoluteAddressBox: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AbsoluteAddressBoxProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AbsoluteAddressBoxProps, Required<AbsoluteAddressBoxProps>>, "click", AbsoluteAddressBoxProps, {}>;
@@ -1,11 +1,9 @@
1
1
  import { MapLogProps } from "../../hooks/useMapLog";
2
2
  import type { Point } from "../../types/interface";
3
- export interface AddressBoxProps extends MapLogProps {
4
- type: "box" | "locator";
3
+ import type { AbsoluteAddressBoxProps } from "../AbsoluteAddressBox";
4
+ export interface AddressBoxProps extends MapLogProps, AbsoluteAddressBoxProps {
5
5
  position: Point;
6
- title: string;
7
- description?: string;
8
6
  }
9
- export declare const AAddressBox: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AddressBoxProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AddressBoxProps, Required<AddressBoxProps>>, never, AddressBoxProps, {}>;
10
- export declare const GAddressBox: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AddressBoxProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AddressBoxProps, Required<AddressBoxProps>>, never, AddressBoxProps, {}>;
11
- export declare const AddressBox: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AddressBoxProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AddressBoxProps, Required<AddressBoxProps>>, never, AddressBoxProps, {}>;
7
+ export declare const AAddressBox: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AddressBoxProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AddressBoxProps, Required<AddressBoxProps>>, "click", AddressBoxProps, {}>;
8
+ export declare const GAddressBox: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AddressBoxProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AddressBoxProps, Required<AddressBoxProps>>, "click", AddressBoxProps, {}>;
9
+ export declare const AddressBox: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AddressBoxProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AddressBoxProps, Required<AddressBoxProps>>, "click", AddressBoxProps, {}>;
@@ -6,6 +6,7 @@ import { MapLogProps } from "../../hooks/useMapLog";
6
6
  import type { UseMapPlaceProps } from "../../hooks/useMapPlace";
7
7
  import { UseMapRecomendPlaceProps } from "../../hooks/useMapRecomendPlace";
8
8
  import type { Point } from "../../types/interface";
9
+ import { AbsoluteAddressBoxProps } from "../AbsoluteAddressBox";
9
10
  export interface CenterPlaceSource {
10
11
  source: "default" | "geo" | "drag" | "recomend" | "api";
11
12
  }
@@ -22,5 +23,6 @@ export interface BusinessRecomendPlaceMapProps extends Omit<HeycarMapProps, "cen
22
23
  onChangePlace?: UseMapPlaceProps["onChange"];
23
24
  onChangeRecomandPlace?: UseMapRecomendPlaceProps["onChange"];
24
25
  onGeoError?: UseGeoLocationProps["onError"];
26
+ onClickLocator?: AbsoluteAddressBoxProps["onClick"];
25
27
  }
26
- export declare const BusinessRecomendPlaceMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "dragEnd" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "geoError", BusinessRecomendPlaceMapProps, {}>;
28
+ export declare const BusinessRecomendPlaceMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "dragEnd" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "clickLocator", BusinessRecomendPlaceMapProps, {}>;
@@ -0,0 +1 @@
1
+ export declare const gmap: string;
@@ -1,6 +1,6 @@
1
1
  import type { Place, Point } from "../types/interface";
2
2
  export interface BusinessRecomendPlaceContext {
3
- panTo: (value: Point) => void;
3
+ panToGeoPositionByRecomend: (value: Point) => void;
4
4
  setCenterPlaceByRecomand: (value: Point) => void;
5
5
  onChangeCenterPlace: (value: Place) => void;
6
6
  onChangeRecomendPlaces: (value: Place[]) => void;
@@ -21,7 +21,7 @@ export declare const useBusinessRecomendPlaceMap: () => {
21
21
  cityName?: string | undefined;
22
22
  countryName?: string | undefined;
23
23
  }[]>;
24
- panTo: (value: Point) => void;
24
+ panToGeoPositionByRecomend: (value: Point) => void;
25
25
  setCenterPlaceByRecomand: (value: Point) => void;
26
26
  apiMapDistance: (from: Point, to: Point) => number | undefined;
27
27
  };