vue3-google-map 0.22.0 → 0.23.1
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 +81 -9
- package/dist/index.cjs +3 -29
- package/dist/index.mjs +1071 -789
- package/dist/index.umd.js +6 -29
- package/dist/types/@types/index.d.ts +0 -1
- package/dist/types/components/AdvancedMarker.vue.d.ts +12 -9
- package/dist/types/components/Circle.d.ts +7 -7
- package/dist/types/components/CustomControl.vue.d.ts +10 -9
- package/dist/types/components/CustomMarker.vue.d.ts +9 -7
- package/dist/types/components/GoogleMap.vue.d.ts +34 -33
- package/dist/types/components/HeatmapLayer.d.ts +11 -7
- package/dist/types/components/InfoWindow.vue.d.ts +9 -9
- package/dist/types/components/Marker.d.ts +16 -7
- package/dist/types/components/MarkerCluster.d.ts +13 -8
- package/dist/types/components/Polygon.d.ts +6 -7
- package/dist/types/components/Polyline.d.ts +6 -7
- package/dist/types/components/Rectangle.d.ts +7 -7
- package/dist/types/composables/useSetupMapComponent.d.ts +0 -1
- package/dist/types/shared/index.d.ts +0 -1
- package/dist/types/shims-google-maps.d.ts +0 -1
- package/dist/types/themes/aubergine.d.ts +0 -1
- package/dist/types/themes/dark.d.ts +0 -1
- package/dist/types/themes/grey.d.ts +0 -1
- package/dist/types/themes/minimal.d.ts +0 -1
- package/dist/types/themes/retro.d.ts +0 -1
- package/dist/types/themes/roadways.d.ts +0 -1
- package/dist/types/themes/roadwaysMinimal.d.ts +0 -1
- package/dist/types/themes/ultraLight.d.ts +0 -1
- package/dist/types/utils/index.d.ts +0 -1
- package/package.json +17 -6
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/// <reference types="google.maps" />
|
|
2
1
|
import { PropType } from "vue";
|
|
3
2
|
import { Library } from "@googlemaps/js-api-loader";
|
|
4
|
-
|
|
3
|
+
import { IControlPosition } from "../@types/index";
|
|
4
|
+
export declare const mapEvents: string[];
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
6
|
apiPromise: {
|
|
6
7
|
type: PropType<Promise<typeof google>>;
|
|
7
8
|
};
|
|
@@ -42,7 +43,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
43
|
default: undefined;
|
|
43
44
|
};
|
|
44
45
|
colorScheme: {
|
|
45
|
-
type: PropType<
|
|
46
|
+
type: PropType<keyof typeof google.maps.ColorScheme>;
|
|
46
47
|
required: false;
|
|
47
48
|
};
|
|
48
49
|
controlSize: {
|
|
@@ -78,11 +79,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
78
79
|
default: undefined;
|
|
79
80
|
};
|
|
80
81
|
fullscreenControlPosition: {
|
|
81
|
-
type: PropType<
|
|
82
|
+
type: PropType<IControlPosition>;
|
|
82
83
|
required: false;
|
|
83
84
|
};
|
|
84
85
|
gestureHandling: {
|
|
85
|
-
type: PropType<"
|
|
86
|
+
type: PropType<"cooperative" | "greedy" | "none" | "auto">;
|
|
86
87
|
required: false;
|
|
87
88
|
};
|
|
88
89
|
heading: {
|
|
@@ -109,7 +110,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
110
|
required: false;
|
|
110
111
|
};
|
|
111
112
|
mapTypeId: {
|
|
112
|
-
type: PropType<string>;
|
|
113
|
+
type: PropType<google.maps.MapTypeId | string>;
|
|
113
114
|
required: false;
|
|
114
115
|
};
|
|
115
116
|
mapId: {
|
|
@@ -135,7 +136,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
135
136
|
default: undefined;
|
|
136
137
|
};
|
|
137
138
|
panControlPosition: {
|
|
138
|
-
type: PropType<
|
|
139
|
+
type: PropType<IControlPosition>;
|
|
139
140
|
required: false;
|
|
140
141
|
};
|
|
141
142
|
restriction: {
|
|
@@ -148,7 +149,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
148
149
|
default: undefined;
|
|
149
150
|
};
|
|
150
151
|
rotateControlPosition: {
|
|
151
|
-
type: PropType<
|
|
152
|
+
type: PropType<IControlPosition>;
|
|
152
153
|
required: false;
|
|
153
154
|
};
|
|
154
155
|
scaleControl: {
|
|
@@ -175,7 +176,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
175
176
|
default: undefined;
|
|
176
177
|
};
|
|
177
178
|
streetViewControlPosition: {
|
|
178
|
-
type: PropType<
|
|
179
|
+
type: PropType<IControlPosition>;
|
|
179
180
|
required: false;
|
|
180
181
|
};
|
|
181
182
|
styles: {
|
|
@@ -196,7 +197,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
197
|
default: undefined;
|
|
197
198
|
};
|
|
198
199
|
zoomControlPosition: {
|
|
199
|
-
type: PropType<
|
|
200
|
+
type: PropType<IControlPosition>;
|
|
200
201
|
required: false;
|
|
201
202
|
};
|
|
202
203
|
cameraControl: {
|
|
@@ -205,20 +206,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
205
206
|
default: undefined;
|
|
206
207
|
};
|
|
207
208
|
cameraControlPosition: {
|
|
208
|
-
type: PropType<
|
|
209
|
+
type: PropType<IControlPosition>;
|
|
209
210
|
required: false;
|
|
210
211
|
};
|
|
211
212
|
nonce: {
|
|
212
213
|
type: StringConstructor;
|
|
213
214
|
default: string;
|
|
214
215
|
};
|
|
215
|
-
}
|
|
216
|
-
mapRef: import("vue").Ref<HTMLElement | undefined>;
|
|
217
|
-
ready: import("vue").Ref<boolean>;
|
|
218
|
-
map: import("vue").Ref<google.maps.Map | undefined>;
|
|
219
|
-
api: import("vue").Ref<typeof google.maps | undefined>;
|
|
220
|
-
mapTilesLoaded: import("vue").Ref<boolean>;
|
|
221
|
-
},
|
|
216
|
+
}>, {
|
|
217
|
+
mapRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
218
|
+
ready: import("vue").Ref<boolean, boolean>;
|
|
219
|
+
map: import("vue").Ref<google.maps.Map | undefined, google.maps.Map | undefined>;
|
|
220
|
+
api: import("vue").Ref<typeof google.maps | undefined, typeof google.maps | undefined>;
|
|
221
|
+
mapTilesLoaded: import("vue").Ref<boolean, boolean>;
|
|
222
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
222
223
|
apiPromise: {
|
|
223
224
|
type: PropType<Promise<typeof google>>;
|
|
224
225
|
};
|
|
@@ -259,7 +260,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
259
260
|
default: undefined;
|
|
260
261
|
};
|
|
261
262
|
colorScheme: {
|
|
262
|
-
type: PropType<
|
|
263
|
+
type: PropType<keyof typeof google.maps.ColorScheme>;
|
|
263
264
|
required: false;
|
|
264
265
|
};
|
|
265
266
|
controlSize: {
|
|
@@ -295,11 +296,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
295
296
|
default: undefined;
|
|
296
297
|
};
|
|
297
298
|
fullscreenControlPosition: {
|
|
298
|
-
type: PropType<
|
|
299
|
+
type: PropType<IControlPosition>;
|
|
299
300
|
required: false;
|
|
300
301
|
};
|
|
301
302
|
gestureHandling: {
|
|
302
|
-
type: PropType<"
|
|
303
|
+
type: PropType<"cooperative" | "greedy" | "none" | "auto">;
|
|
303
304
|
required: false;
|
|
304
305
|
};
|
|
305
306
|
heading: {
|
|
@@ -326,7 +327,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
326
327
|
required: false;
|
|
327
328
|
};
|
|
328
329
|
mapTypeId: {
|
|
329
|
-
type: PropType<string>;
|
|
330
|
+
type: PropType<google.maps.MapTypeId | string>;
|
|
330
331
|
required: false;
|
|
331
332
|
};
|
|
332
333
|
mapId: {
|
|
@@ -352,7 +353,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
352
353
|
default: undefined;
|
|
353
354
|
};
|
|
354
355
|
panControlPosition: {
|
|
355
|
-
type: PropType<
|
|
356
|
+
type: PropType<IControlPosition>;
|
|
356
357
|
required: false;
|
|
357
358
|
};
|
|
358
359
|
restriction: {
|
|
@@ -365,7 +366,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
365
366
|
default: undefined;
|
|
366
367
|
};
|
|
367
368
|
rotateControlPosition: {
|
|
368
|
-
type: PropType<
|
|
369
|
+
type: PropType<IControlPosition>;
|
|
369
370
|
required: false;
|
|
370
371
|
};
|
|
371
372
|
scaleControl: {
|
|
@@ -392,7 +393,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
392
393
|
default: undefined;
|
|
393
394
|
};
|
|
394
395
|
streetViewControlPosition: {
|
|
395
|
-
type: PropType<
|
|
396
|
+
type: PropType<IControlPosition>;
|
|
396
397
|
required: false;
|
|
397
398
|
};
|
|
398
399
|
styles: {
|
|
@@ -413,7 +414,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
413
414
|
default: undefined;
|
|
414
415
|
};
|
|
415
416
|
zoomControlPosition: {
|
|
416
|
-
type: PropType<
|
|
417
|
+
type: PropType<IControlPosition>;
|
|
417
418
|
required: false;
|
|
418
419
|
};
|
|
419
420
|
cameraControl: {
|
|
@@ -422,24 +423,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
422
423
|
default: undefined;
|
|
423
424
|
};
|
|
424
425
|
cameraControlPosition: {
|
|
425
|
-
type: PropType<
|
|
426
|
+
type: PropType<IControlPosition>;
|
|
426
427
|
required: false;
|
|
427
428
|
};
|
|
428
429
|
nonce: {
|
|
429
430
|
type: StringConstructor;
|
|
430
431
|
default: string;
|
|
431
432
|
};
|
|
432
|
-
}>> & {
|
|
433
|
+
}>> & Readonly<{
|
|
433
434
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
434
|
-
}
|
|
435
|
-
draggable: boolean;
|
|
436
|
-
version: string;
|
|
437
|
-
center: google.maps.LatLng | google.maps.LatLngLiteral;
|
|
435
|
+
}>, {
|
|
438
436
|
apiKey: string;
|
|
437
|
+
version: string;
|
|
439
438
|
libraries: Library[];
|
|
439
|
+
center: google.maps.LatLng | google.maps.LatLngLiteral;
|
|
440
440
|
clickableIcons: boolean;
|
|
441
441
|
disableDefaultUi: boolean;
|
|
442
442
|
disableDoubleClickZoom: boolean;
|
|
443
|
+
draggable: boolean;
|
|
443
444
|
fullscreenControl: boolean;
|
|
444
445
|
isFractionalZoomEnabled: boolean;
|
|
445
446
|
keyboardShortcuts: boolean;
|
|
@@ -453,5 +454,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
453
454
|
zoomControl: boolean;
|
|
454
455
|
cameraControl: boolean;
|
|
455
456
|
nonce: string;
|
|
456
|
-
}, {}>;
|
|
457
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
457
458
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="google.maps" />
|
|
2
1
|
import { PropType } from "vue";
|
|
3
2
|
type HeatmapLayerOptions = google.maps.visualization.HeatmapLayerOptions;
|
|
4
3
|
interface ExtendedHeatmapLayerOptions extends Omit<HeatmapLayerOptions, "data"> {
|
|
@@ -6,19 +5,24 @@ interface ExtendedHeatmapLayerOptions extends Omit<HeatmapLayerOptions, "data">
|
|
|
6
5
|
location: google.maps.LatLngLiteral;
|
|
7
6
|
})[];
|
|
8
7
|
}
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated The HeatmapLayer component was deprecated on May 27, 2025 and will be sunset in May 2026.
|
|
10
|
+
* Google recommends migrating to third-party library integrations like deck.gl, which offers a HeatmapLayer implementation.
|
|
11
|
+
* @see {@link https://developers.google.com/maps/deprecations} for more information.
|
|
12
|
+
*/
|
|
13
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
14
|
options: {
|
|
11
15
|
type: PropType<ExtendedHeatmapLayerOptions>;
|
|
12
16
|
default: () => {};
|
|
13
17
|
};
|
|
14
|
-
}
|
|
15
|
-
heatmapLayer: import("vue").Ref<google.maps.visualization.HeatmapLayer | undefined>;
|
|
16
|
-
},
|
|
18
|
+
}>, {
|
|
19
|
+
heatmapLayer: import("vue").Ref<google.maps.visualization.HeatmapLayer | undefined, google.maps.visualization.HeatmapLayer | undefined>;
|
|
20
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
21
|
options: {
|
|
18
22
|
type: PropType<ExtendedHeatmapLayerOptions>;
|
|
19
23
|
default: () => {};
|
|
20
24
|
};
|
|
21
|
-
}
|
|
25
|
+
}>> & Readonly<{}>, {
|
|
22
26
|
options: ExtendedHeatmapLayerOptions;
|
|
23
|
-
}, {}>;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
24
28
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="google.maps" />
|
|
2
1
|
import { PropType } from "vue";
|
|
3
|
-
declare const
|
|
2
|
+
export declare const infoWindowEvents: string[];
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
options: {
|
|
5
5
|
type: PropType<google.maps.InfoWindowOptions>;
|
|
6
6
|
default: () => {};
|
|
@@ -8,13 +8,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
modelValue: {
|
|
9
9
|
type: BooleanConstructor;
|
|
10
10
|
};
|
|
11
|
-
}
|
|
12
|
-
infoWindow: import("vue").Ref<google.maps.InfoWindow | undefined>;
|
|
13
|
-
infoWindowRef: import("vue").Ref<HTMLElement | undefined>;
|
|
11
|
+
}>, {
|
|
12
|
+
infoWindow: import("vue").Ref<google.maps.InfoWindow | undefined, google.maps.InfoWindow | undefined>;
|
|
13
|
+
infoWindowRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
14
14
|
hasSlotContent: import("vue").ComputedRef<boolean | undefined>;
|
|
15
15
|
open: (opts?: google.maps.InfoWindowOpenOptions) => void;
|
|
16
16
|
close: () => void;
|
|
17
|
-
},
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
18
|
options: {
|
|
19
19
|
type: PropType<google.maps.InfoWindowOptions>;
|
|
20
20
|
default: () => {};
|
|
@@ -22,10 +22,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
modelValue: {
|
|
23
23
|
type: BooleanConstructor;
|
|
24
24
|
};
|
|
25
|
-
}>> & {
|
|
25
|
+
}>> & Readonly<{
|
|
26
26
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
27
|
-
}
|
|
27
|
+
}>, {
|
|
28
28
|
options: google.maps.InfoWindowOptions;
|
|
29
29
|
modelValue: boolean;
|
|
30
|
-
}, {}>;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
31
31
|
export default _default;
|
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { PropType, Ref } from "vue";
|
|
2
|
+
export interface IMarkerExposed {
|
|
3
|
+
marker: Ref<google.maps.Marker | undefined>;
|
|
4
|
+
}
|
|
5
|
+
export declare const markerEvents: string[];
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated The Marker component is deprecated as of February 2024. Use AdvancedMarker instead.
|
|
8
|
+
* The google.maps.Marker API is deprecated and will be removed in a future version.
|
|
9
|
+
* Migrate to AdvancedMarker for the latest features and better performance.
|
|
10
|
+
* @see {@link https://developers.google.com/maps/deprecations} for more information.
|
|
11
|
+
*/
|
|
12
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
13
|
options: {
|
|
5
14
|
type: PropType<google.maps.MarkerOptions>;
|
|
6
15
|
required: true;
|
|
7
16
|
};
|
|
8
|
-
}
|
|
17
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
18
|
[key: string]: any;
|
|
10
|
-
}>[] | undefined,
|
|
19
|
+
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
20
|
options: {
|
|
12
21
|
type: PropType<google.maps.MarkerOptions>;
|
|
13
22
|
required: true;
|
|
14
23
|
};
|
|
15
|
-
}>> & {
|
|
24
|
+
}>> & Readonly<{
|
|
16
25
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
17
|
-
}, {}, {}>;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
27
|
export default _default;
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import { PropType } from "vue";
|
|
2
|
-
import { MarkerClustererOptions, MarkerClustererEvents } from "@googlemaps/markerclusterer";
|
|
3
|
-
|
|
1
|
+
import { PropType, type Ref } from "vue";
|
|
2
|
+
import { MarkerClusterer, MarkerClustererOptions, MarkerClustererEvents } from "@googlemaps/markerclusterer";
|
|
3
|
+
export interface IMarkerClusterExposed {
|
|
4
|
+
markerCluster: Ref<MarkerClusterer | undefined>;
|
|
5
|
+
}
|
|
6
|
+
export declare const markerClusterEvents: MarkerClustererEvents[];
|
|
7
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
8
|
options: {
|
|
5
9
|
type: PropType<MarkerClustererOptions>;
|
|
6
10
|
default: () => {};
|
|
7
11
|
};
|
|
8
|
-
}
|
|
12
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
13
|
[key: string]: any;
|
|
10
|
-
}>[] | undefined,
|
|
14
|
+
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, MarkerClustererEvents[], MarkerClustererEvents, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
15
|
options: {
|
|
12
16
|
type: PropType<MarkerClustererOptions>;
|
|
13
17
|
default: () => {};
|
|
14
18
|
};
|
|
15
|
-
}>> & {
|
|
19
|
+
}>> & Readonly<{
|
|
16
20
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
17
21
|
onClusteringbegin?: ((...args: any[]) => any) | undefined;
|
|
18
22
|
onClusteringend?: ((...args: any[]) => any) | undefined;
|
|
19
|
-
|
|
23
|
+
"onGmp-click"?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}>, {
|
|
20
25
|
options: MarkerClustererOptions;
|
|
21
|
-
}, {}>;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
27
|
export default _default;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
/// <reference types="google.maps" />
|
|
2
1
|
import { PropType } from "vue";
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
3
|
options: {
|
|
5
4
|
type: PropType<google.maps.PolygonOptions>;
|
|
6
5
|
required: true;
|
|
7
6
|
};
|
|
8
|
-
}
|
|
9
|
-
polygon: import("vue").Ref<google.maps.Polygon | undefined>;
|
|
10
|
-
},
|
|
7
|
+
}>, {
|
|
8
|
+
polygon: import("vue").Ref<google.maps.Polygon | undefined, google.maps.Polygon | undefined>;
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
10
|
options: {
|
|
12
11
|
type: PropType<google.maps.PolygonOptions>;
|
|
13
12
|
required: true;
|
|
14
13
|
};
|
|
15
|
-
}>> & {
|
|
14
|
+
}>> & Readonly<{
|
|
16
15
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
17
|
-
}, {}, {}>;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
17
|
export default _default;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
/// <reference types="google.maps" />
|
|
2
1
|
import { PropType } from "vue";
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
3
|
options: {
|
|
5
4
|
type: PropType<google.maps.PolylineOptions>;
|
|
6
5
|
required: true;
|
|
7
6
|
};
|
|
8
|
-
}
|
|
9
|
-
polyline: import("vue").Ref<google.maps.Polyline | undefined>;
|
|
10
|
-
},
|
|
7
|
+
}>, {
|
|
8
|
+
polyline: import("vue").Ref<google.maps.Polyline | undefined, google.maps.Polyline | undefined>;
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
10
|
options: {
|
|
12
11
|
type: PropType<google.maps.PolylineOptions>;
|
|
13
12
|
required: true;
|
|
14
13
|
};
|
|
15
|
-
}>> & {
|
|
14
|
+
}>> & Readonly<{
|
|
16
15
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
17
|
-
}, {}, {}>;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
17
|
export default _default;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/// <reference types="google.maps" />
|
|
2
1
|
import { PropType } from "vue";
|
|
3
|
-
declare const
|
|
2
|
+
export declare const rectangleEvents: string[];
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
options: {
|
|
5
5
|
type: PropType<google.maps.RectangleOptions>;
|
|
6
6
|
required: true;
|
|
7
7
|
};
|
|
8
|
-
}
|
|
9
|
-
rectangle: import("vue").Ref<google.maps.Rectangle | undefined>;
|
|
10
|
-
},
|
|
8
|
+
}>, {
|
|
9
|
+
rectangle: import("vue").Ref<google.maps.Rectangle | undefined, google.maps.Rectangle | undefined>;
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
options: {
|
|
12
12
|
type: PropType<google.maps.RectangleOptions>;
|
|
13
13
|
required: true;
|
|
14
14
|
};
|
|
15
|
-
}>> & {
|
|
15
|
+
}>> & Readonly<{
|
|
16
16
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
17
|
-
}, {}, {}>;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
18
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue3-google-map",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,14 +41,18 @@
|
|
|
41
41
|
"dev": "vite",
|
|
42
42
|
"prepare": "pnpm run build",
|
|
43
43
|
"clean": "rimraf dist/**/*",
|
|
44
|
-
"lint": "npx eslint --ext .ts,.vue src
|
|
44
|
+
"lint": "npx eslint --ext .ts,.vue src playground --fix",
|
|
45
|
+
"lint:check": "npx eslint --ext .ts,.vue src playground",
|
|
45
46
|
"build:umd": "node ./scripts/build-umd.js",
|
|
46
47
|
"build": "pnpm clean && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json && vite build && pnpm build:umd",
|
|
47
48
|
"docs": "vitepress dev docs",
|
|
48
49
|
"docs:dev": "vitepress dev docs",
|
|
49
50
|
"docs:build": "vitepress build docs",
|
|
50
51
|
"docs:serve": "vitepress serve docs",
|
|
51
|
-
"release": "standard-version"
|
|
52
|
+
"release": "standard-version",
|
|
53
|
+
"test": "jest",
|
|
54
|
+
"test:watch": "jest --watch",
|
|
55
|
+
"test:coverage": "jest --coverage"
|
|
52
56
|
},
|
|
53
57
|
"dependencies": {
|
|
54
58
|
"@googlemaps/js-api-loader": "^1.16.2",
|
|
@@ -56,31 +60,38 @@
|
|
|
56
60
|
"fast-deep-equal": "^3.1.3"
|
|
57
61
|
},
|
|
58
62
|
"devDependencies": {
|
|
59
|
-
"
|
|
63
|
+
"@googlemaps/jest-mocks": "^2.22.6",
|
|
60
64
|
"@types/google.maps": "^3.58.1",
|
|
65
|
+
"@types/jest": "^30.0.0",
|
|
61
66
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
62
67
|
"@typescript-eslint/parser": "^4.33.0",
|
|
63
68
|
"@vitejs/plugin-vue": "^4.3.1",
|
|
64
69
|
"@vue/eslint-config-prettier": "^6.0.0",
|
|
65
70
|
"@vue/eslint-config-typescript": "^7.0.0",
|
|
71
|
+
"@vue/test-utils": "^2.4.6",
|
|
72
|
+
"@vue/vue3-jest": "^29.2.6",
|
|
66
73
|
"eslint": "^7.32.0",
|
|
67
74
|
"eslint-config-prettier": "^8.10.0",
|
|
68
75
|
"eslint-plugin-prettier": "^3.4.1",
|
|
69
76
|
"eslint-plugin-vue": "^7.20.0",
|
|
77
|
+
"jest": "^30.0.4",
|
|
78
|
+
"jest-environment-jsdom": "^30.0.4",
|
|
79
|
+
"pnpm": "^10.13.1",
|
|
70
80
|
"prettier": "^2.8.8",
|
|
71
81
|
"rimraf": "^5.0.1",
|
|
72
82
|
"standard-version": "^9.5.0",
|
|
83
|
+
"ts-jest": "^29.4.0",
|
|
73
84
|
"typescript": "^5.1.6",
|
|
74
85
|
"vite": "^4.5.3",
|
|
75
86
|
"vite-plugin-css-injected-by-js": "^3.2.1",
|
|
76
87
|
"vitepress": "^1.0.0-rc.40",
|
|
77
88
|
"vue": "^3.3.4",
|
|
78
|
-
"vue-tsc": "^
|
|
89
|
+
"vue-tsc": "^3.0.3"
|
|
79
90
|
},
|
|
80
91
|
"peerDependencies": {
|
|
81
92
|
"vue": "^3"
|
|
82
93
|
},
|
|
83
94
|
"engines": {
|
|
84
|
-
"node": ">=
|
|
95
|
+
"node": ">=18.12.0"
|
|
85
96
|
}
|
|
86
97
|
}
|