@heycar/heycars-map 0.2.5 → 0.2.6
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/README.md +1 -0
- package/dist/business-components/BusinessQuotingMap/BusinessQuotingMap.d.ts +13 -0
- package/dist/business-components/BusinessQuotingMap/index.d.ts +1 -0
- package/dist/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +5 -3
- package/dist/business-components/PassengerCircle/PassengerCircle.d.ts +18309 -4
- package/dist/business-components/TaxiCar/TaxiCar.d.ts +18309 -4
- package/dist/components/Demo/DemoBusinessQuoting.d.ts +1 -0
- package/dist/hooks/useMap.d.ts +4 -0
- package/dist/hooks/useMapAutoComplete.d.ts +3 -0
- package/dist/hooks/useMapPlace.d.ts +3 -0
- package/dist/hooks/useMapRecomendPlace.d.ts +6 -0
- package/dist/hooks/useOverlay.d.ts +1 -0
- package/dist/hooks-business/useBusinessMapAutoComplete.d.ts +1 -0
- package/dist/hooks-business/useBusinessMapRecomendPlace.d.ts +2 -0
- package/dist/hooks-business/useBusinessQuotingMap.d.ts +2049 -0
- package/dist/hooks-business/useBusinessTaxiServiceMap.d.ts +2049 -0
- package/dist/index.cjs +51 -51
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1423 -1329
- package/dist/types/interface.d.ts +1 -0
- package/package.json +1 -1
- package/src/App.tsx +3 -2
- package/src/business-components/BusinessQuotingMap/BusinessQuotingMap.tsx +49 -0
- package/src/business-components/BusinessQuotingMap/index.ts +1 -0
- package/src/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.tsx +213 -140
- package/src/business-components/PassengerCircle/PassengerCircle.tsx +26 -8
- package/src/business-components/TaxiCar/TaxiCar.tsx +18 -6
- package/src/components/Demo/DemoBusinessQuoting.tsx +39 -0
- package/src/components/Demo/DemoBusinessTaxiService.tsx +6 -1
- package/src/hooks/useGeoLocation.ts +3 -3
- package/src/hooks/useMap.ts +15 -1
- package/src/hooks/useOverlay.ts +1 -0
- package/src/hooks/useWalkingRoute.ts +0 -1
- package/src/hooks-business/useBusinessMapRecomendPlace.ts +1 -0
- package/src/hooks-business/useBusinessQuotingMap.ts +11 -0
- package/src/hooks-business/useBusinessTaxiServiceMap.ts +12 -0
- package/src/index.ts +1 -1
- package/src/types/interface.ts +1 -0
- package/dist/hooks-business/useBusinessMapFitView.d.ts +0 -2291
- package/src/hooks-business/useBusinessMapFitView.ts +0 -6
package/README.md
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HeycarMapProps } from "../../components/MapProvider";
|
|
2
|
+
import type { MapMountedProps } from "../../hooks/useMap";
|
|
3
|
+
import type { MROP } from "../../hooks/useOverlay";
|
|
4
|
+
import type { Place } from "../../types/interface";
|
|
5
|
+
export type BusinessQuotingMapProps = Omit<HeycarMapProps, "center" | "zoom"> & MROP & MapMountedProps & {
|
|
6
|
+
from: Place;
|
|
7
|
+
to: Place;
|
|
8
|
+
renderDescription: (titleProps: {
|
|
9
|
+
distance: number;
|
|
10
|
+
duration: number;
|
|
11
|
+
}) => string;
|
|
12
|
+
};
|
|
13
|
+
export declare const BusinessQuotingMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessQuotingMapProps>, 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<BusinessQuotingMapProps, Required<BusinessQuotingMapProps>>, "dragEnd" | "mapMounted", BusinessQuotingMapProps, {} | {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BusinessQuotingMap";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { HeycarMapProps } from "../../components/MapProvider";
|
|
2
|
+
import { MapMountedProps } from "../../hooks/useMap";
|
|
3
|
+
import type { MROP } from "../../hooks/useOverlay";
|
|
2
4
|
import type { DriverStatus, Place, Point } from "../../types/interface";
|
|
3
|
-
export
|
|
5
|
+
export type BusinessTaxiServiceMapProps = Omit<HeycarMapProps, "center" | "zoom"> & MROP & MapMountedProps & {
|
|
4
6
|
from: Place;
|
|
5
7
|
to: Place;
|
|
6
8
|
dispatchingTitle: string;
|
|
@@ -18,5 +20,5 @@ export interface BusinessTaxiServiceMapProps extends Omit<HeycarMapProps, "cente
|
|
|
18
20
|
duration: number;
|
|
19
21
|
}) => string;
|
|
20
22
|
getDriverPosition: () => Promise<Point>;
|
|
21
|
-
}
|
|
22
|
-
export declare const BusinessTaxiServiceMap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, 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<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "dragEnd", BusinessTaxiServiceMapProps, {}>;
|
|
23
|
+
};
|
|
24
|
+
export declare const BusinessTaxiServiceMap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, 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<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "dragEnd" | "mapMounted", BusinessTaxiServiceMapProps, {} | {}>;
|