@nuxt/scripts 1.0.0-beta.3 → 1.0.0-beta.30
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 +3 -3
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/{Ds2G8aQM.js → AwAKM0sG.js} +1 -1
- package/dist/client/_nuxt/Bl23o3st.js +162 -0
- package/dist/client/_nuxt/{DdVDSbUA.js → CYlYSSNW.js} +1 -1
- package/dist/client/_nuxt/{CD5B-xvT.js → D5FIkDae.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/f0b4dd20-8496-4003-b7a3-05cbae515923.json +1 -0
- package/dist/client/_nuxt/entry.C5SUNdim.css +1 -0
- package/dist/client/_nuxt/error-404.1K8v8Su2.css +1 -0
- package/dist/client/_nuxt/error-500.B9qvKpQm.css +1 -0
- package/dist/client/index.html +1 -1
- package/dist/module.d.mts +7 -19
- package/dist/module.d.ts +164 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +935 -645
- package/dist/registry.d.ts +6 -0
- package/dist/registry.mjs +235 -69
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.d.vue.ts +16 -9
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.vue +57 -30
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.vue.d.ts +16 -9
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.d.vue.ts +22 -39
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue +69 -72
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue.d.ts +22 -39
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsCircle.d.vue.ts +5 -1
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsCircle.vue +25 -38
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsCircle.vue.d.ts +5 -1
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsGeoJson.d.vue.ts +43 -0
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsGeoJson.vue +61 -0
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsGeoJson.vue.d.ts +43 -0
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsHeatmapLayer.d.vue.ts +4 -0
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsHeatmapLayer.vue +22 -26
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsHeatmapLayer.vue.d.ts +4 -0
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsInfoWindow.d.vue.ts +9 -5
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsInfoWindow.vue +62 -53
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsInfoWindow.vue.d.ts +9 -5
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarker.d.vue.ts +26 -11
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarker.vue +48 -45
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarker.vue.d.ts +26 -11
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.d.vue.ts +10 -2
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.vue +38 -37
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.vue.d.ts +10 -2
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.d.vue.ts +63 -0
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue +160 -0
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue.d.ts +63 -0
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPinElement.d.vue.ts +4 -0
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPinElement.vue +23 -32
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPinElement.vue.d.ts +4 -0
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolygon.d.vue.ts +7 -3
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolygon.vue +24 -38
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolygon.vue.d.ts +7 -3
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolyline.d.vue.ts +7 -3
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolyline.vue +24 -38
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsPolyline.vue.d.ts +7 -3
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsRectangle.d.vue.ts +7 -3
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsRectangle.vue +25 -38
- package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsRectangle.vue.d.ts +7 -3
- package/dist/runtime/components/GoogleMaps/bindGoogleMapsEvents.d.ts +13 -0
- package/dist/runtime/components/GoogleMaps/bindGoogleMapsEvents.js +8 -0
- package/dist/runtime/components/GoogleMaps/injectionKeys.d.ts +13 -0
- package/dist/runtime/components/GoogleMaps/injectionKeys.js +3 -0
- package/dist/runtime/components/GoogleMaps/useGoogleMapsResource.d.ts +26 -0
- package/dist/runtime/components/GoogleMaps/useGoogleMapsResource.js +42 -0
- package/dist/runtime/components/ScriptBlueskyEmbed.d.vue.ts +87 -0
- package/dist/runtime/components/ScriptBlueskyEmbed.vue +85 -0
- package/dist/runtime/components/ScriptBlueskyEmbed.vue.d.ts +87 -0
- package/dist/runtime/components/ScriptCrisp.vue +1 -1
- package/dist/runtime/components/ScriptGoogleAdsense.vue +1 -1
- package/dist/runtime/components/ScriptGravatar.d.vue.ts +22 -0
- package/dist/runtime/components/ScriptGravatar.vue +46 -0
- package/dist/runtime/components/ScriptGravatar.vue.d.ts +22 -0
- package/dist/runtime/components/ScriptInstagramEmbed.d.vue.ts +2 -2
- package/dist/runtime/components/ScriptInstagramEmbed.vue +5 -2
- package/dist/runtime/components/ScriptInstagramEmbed.vue.d.ts +2 -2
- package/dist/runtime/components/ScriptIntercom.vue +4 -3
- package/dist/runtime/components/ScriptPayPalButtons.d.vue.ts +43 -32
- package/dist/runtime/components/ScriptPayPalButtons.vue +48 -79
- package/dist/runtime/components/ScriptPayPalButtons.vue.d.ts +43 -32
- package/dist/runtime/components/ScriptPayPalMessages.d.vue.ts +37 -23
- package/dist/runtime/components/ScriptPayPalMessages.vue +46 -50
- package/dist/runtime/components/ScriptPayPalMessages.vue.d.ts +37 -23
- package/dist/runtime/components/ScriptStripePricingTable.vue +2 -2
- package/dist/runtime/components/ScriptVimeoPlayer.d.vue.ts +9 -0
- package/dist/runtime/components/ScriptVimeoPlayer.vue +13 -10
- package/dist/runtime/components/ScriptVimeoPlayer.vue.d.ts +9 -0
- package/dist/runtime/components/ScriptXEmbed.d.vue.ts +2 -2
- package/dist/runtime/components/ScriptXEmbed.vue +6 -3
- package/dist/runtime/components/ScriptXEmbed.vue.d.ts +2 -2
- package/dist/runtime/components/ScriptYouTubePlayer.d.vue.ts +2 -2
- package/dist/runtime/components/ScriptYouTubePlayer.vue +11 -5
- package/dist/runtime/components/ScriptYouTubePlayer.vue.d.ts +2 -2
- package/dist/runtime/composables/useScript.js +13 -6
- package/dist/runtime/composables/useScriptEventPage.js +2 -2
- package/dist/runtime/composables/useScriptTriggerConsent.d.ts +10 -0
- package/dist/runtime/composables/useScriptTriggerConsent.js +33 -20
- package/dist/runtime/composables/useScriptTriggerElement.js +1 -1
- package/dist/runtime/composables/useScriptTriggerIdleTimeout.js +1 -1
- package/dist/runtime/registry/bing-uet.d.ts +20 -0
- package/dist/runtime/registry/bing-uet.js +29 -0
- package/dist/runtime/registry/bluesky-embed.d.ts +116 -0
- package/dist/runtime/registry/bluesky-embed.js +72 -0
- package/dist/runtime/registry/clarity.d.ts +10 -15
- package/dist/runtime/registry/clarity.js +22 -31
- package/dist/runtime/registry/cloudflare-web-analytics.d.ts +2 -13
- package/dist/runtime/registry/cloudflare-web-analytics.js +2 -14
- package/dist/runtime/registry/crisp.d.ts +10 -40
- package/dist/runtime/registry/crisp.js +2 -33
- package/dist/runtime/registry/databuddy-analytics.d.ts +2 -35
- package/dist/runtime/registry/databuddy-analytics.js +20 -45
- package/dist/runtime/registry/fathom-analytics.d.ts +7 -26
- package/dist/runtime/registry/fathom-analytics.js +2 -24
- package/dist/runtime/registry/google-adsense.d.ts +3 -11
- package/dist/runtime/registry/google-adsense.js +2 -11
- package/dist/runtime/registry/google-analytics.d.ts +3 -5
- package/dist/runtime/registry/google-analytics.js +3 -8
- package/dist/runtime/registry/google-maps.d.ts +3 -9
- package/dist/runtime/registry/google-maps.js +2 -8
- package/dist/runtime/registry/google-recaptcha.d.ts +2 -6
- package/dist/runtime/registry/google-recaptcha.js +4 -12
- package/dist/runtime/registry/google-sign-in.d.ts +2 -13
- package/dist/runtime/registry/google-sign-in.js +2 -22
- package/dist/runtime/registry/google-tag-manager.d.ts +3 -28
- package/dist/runtime/registry/google-tag-manager.js +4 -27
- package/dist/runtime/registry/gravatar.d.ts +26 -0
- package/dist/runtime/registry/gravatar.js +33 -0
- package/dist/runtime/registry/hotjar.d.ts +4 -6
- package/dist/runtime/registry/hotjar.js +2 -5
- package/dist/runtime/registry/instagram-embed.d.ts +3 -18
- package/dist/runtime/registry/instagram-embed.js +4 -19
- package/dist/runtime/registry/intercom.d.ts +4 -12
- package/dist/runtime/registry/intercom.js +2 -12
- package/dist/runtime/registry/matomo-analytics.d.ts +3 -12
- package/dist/runtime/registry/matomo-analytics.js +3 -12
- package/dist/runtime/registry/meta-pixel.d.ts +4 -6
- package/dist/runtime/registry/meta-pixel.js +2 -4
- package/dist/runtime/registry/mixpanel-analytics.d.ts +22 -0
- package/dist/runtime/registry/mixpanel-analytics.js +46 -0
- package/dist/runtime/registry/npm.d.ts +3 -7
- package/dist/runtime/registry/npm.js +2 -9
- package/dist/runtime/registry/paypal.d.ts +4 -25
- package/dist/runtime/registry/paypal.js +3 -66
- package/dist/runtime/registry/plausible-analytics.js +18 -13
- package/dist/runtime/registry/posthog.d.ts +10 -12
- package/dist/runtime/registry/posthog.js +7 -14
- package/dist/runtime/registry/reddit-pixel.d.ts +5 -6
- package/dist/runtime/registry/reddit-pixel.js +2 -4
- package/dist/runtime/registry/rybbit-analytics.d.ts +2 -14
- package/dist/runtime/registry/rybbit-analytics.js +10 -20
- package/dist/runtime/registry/schemas.d.ts +982 -0
- package/dist/runtime/registry/schemas.js +937 -0
- package/dist/runtime/registry/segment.d.ts +2 -5
- package/dist/runtime/registry/segment.js +2 -5
- package/dist/runtime/registry/snapchat-pixel.d.ts +4 -33
- package/dist/runtime/registry/snapchat-pixel.js +2 -20
- package/dist/runtime/registry/stripe.d.ts +3 -4
- package/dist/runtime/registry/stripe.js +2 -4
- package/dist/runtime/registry/tiktok-pixel.d.ts +4 -7
- package/dist/runtime/registry/tiktok-pixel.js +2 -6
- package/dist/runtime/registry/umami-analytics.d.ts +2 -31
- package/dist/runtime/registry/umami-analytics.js +2 -36
- package/dist/runtime/registry/vercel-analytics.d.ts +29 -0
- package/dist/runtime/registry/vercel-analytics.js +84 -0
- package/dist/runtime/registry/vimeo-player.d.ts +2 -2
- package/dist/runtime/registry/vimeo-player.js +1 -1
- package/dist/runtime/registry/x-embed.d.ts +3 -17
- package/dist/runtime/registry/x-embed.js +3 -18
- package/dist/runtime/registry/x-pixel.d.ts +4 -7
- package/dist/runtime/registry/x-pixel.js +2 -5
- package/dist/runtime/registry/youtube-player.d.ts +7 -7
- package/dist/runtime/registry/youtube-player.js +1 -1
- package/dist/runtime/server/{sw-handler.d.ts → bluesky-embed-image.d.ts} +1 -1
- package/dist/runtime/server/bluesky-embed-image.js +7 -0
- package/dist/runtime/server/bluesky-embed.d.ts +16 -0
- package/dist/runtime/server/bluesky-embed.js +59 -0
- package/dist/runtime/server/google-maps-geocode-proxy.d.ts +2 -0
- package/dist/runtime/server/google-maps-geocode-proxy.js +34 -0
- package/dist/runtime/server/google-static-maps-proxy.js +2 -13
- package/dist/runtime/server/gravatar-proxy.d.ts +2 -0
- package/dist/runtime/server/gravatar-proxy.js +46 -0
- package/dist/runtime/server/instagram-embed-asset.js +8 -41
- package/dist/runtime/server/instagram-embed-image.js +6 -53
- package/dist/runtime/server/instagram-embed.d.ts +16 -0
- package/dist/runtime/server/instagram-embed.js +173 -35
- package/dist/runtime/server/proxy-handler.js +134 -93
- package/dist/runtime/server/utils/image-proxy.d.ts +12 -0
- package/dist/runtime/server/utils/image-proxy.js +70 -0
- package/dist/runtime/server/utils/privacy.d.ts +1 -2
- package/dist/runtime/server/utils/privacy.js +54 -34
- package/dist/runtime/server/x-embed-image.js +5 -49
- package/dist/runtime/server/x-embed.js +3 -2
- package/dist/runtime/types.d.ts +74 -40
- package/dist/runtime/utils/pure.d.ts +1 -5
- package/dist/runtime/utils/pure.js +0 -67
- package/dist/runtime/utils.d.ts +4 -3
- package/dist/runtime/utils.js +24 -10
- package/dist/shared/scripts.ViOoYQXH.mjs +381 -0
- package/dist/stats.d.mts +202 -0
- package/dist/stats.d.ts +202 -0
- package/dist/stats.mjs +3868 -0
- package/dist/types-source.d.mts +17 -0
- package/dist/types-source.d.ts +17 -0
- package/dist/types-source.mjs +3600 -0
- package/package.json +52 -38
- package/dist/client/_nuxt/D-kOnTuH.js +0 -162
- package/dist/client/_nuxt/builds/meta/f1474569-6922-450d-bc3f-4fd5f3e1391a.json +0 -1
- package/dist/client/_nuxt/entry.D45OuV0w.css +0 -1
- package/dist/client/_nuxt/error-404.B57D-jUQ.css +0 -1
- package/dist/client/_nuxt/error-500.DTHUW7BI.css +0 -1
- package/dist/runtime/components/ScriptPayPalMarks.d.vue.ts +0 -52
- package/dist/runtime/components/ScriptPayPalMarks.vue +0 -69
- package/dist/runtime/components/ScriptPayPalMarks.vue.d.ts +0 -52
- package/dist/runtime/plugins/sw-register.client.d.ts +0 -2
- package/dist/runtime/plugins/sw-register.client.js +0 -12
- package/dist/runtime/server/sw-handler.js +0 -25
- package/dist/runtime/sw/proxy-sw.template.d.ts +0 -1
- package/dist/runtime/sw/proxy-sw.template.js +0 -54
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Configuration options for the circle overlay.
|
|
4
|
+
* @see https://developers.google.com/maps/documentation/javascript/reference/polygon#CircleOptions
|
|
5
|
+
*/
|
|
2
6
|
options?: Omit<google.maps.CircleOptions, 'map'>;
|
|
3
7
|
};
|
|
4
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
9
|
click: (payload: google.maps.MapMouseEvent) => any;
|
|
6
10
|
dblclick: (payload: google.maps.MapMouseEvent) => any;
|
|
7
11
|
drag: (payload: google.maps.MapMouseEvent) => any;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
1
|
<script setup>
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { watch } from "vue";
|
|
3
|
+
import { bindGoogleMapsEvents } from "./bindGoogleMapsEvents";
|
|
4
|
+
import { useGoogleMapsResource } from "./useGoogleMapsResource";
|
|
9
5
|
const props = defineProps({
|
|
10
6
|
options: { type: Object, required: false }
|
|
11
7
|
});
|
|
8
|
+
const emit = defineEmits(["center_changed", "radius_changed", "click", "dblclick", "drag", "dragend", "dragstart", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "rightclick"]);
|
|
12
9
|
const eventsWithoutPayload = [
|
|
13
10
|
"center_changed",
|
|
14
11
|
"radius_changed"
|
|
@@ -26,37 +23,27 @@ const eventsWithMapMouseEventPayload = [
|
|
|
26
23
|
"mouseup",
|
|
27
24
|
"rightclick"
|
|
28
25
|
];
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
deep: true
|
|
42
|
-
});
|
|
43
|
-
}, {
|
|
44
|
-
immediate: true,
|
|
45
|
-
once: true
|
|
46
|
-
});
|
|
47
|
-
onUnmounted(() => {
|
|
48
|
-
if (!circle || !mapContext?.mapsApi.value) {
|
|
49
|
-
return;
|
|
26
|
+
const circle = useGoogleMapsResource({
|
|
27
|
+
create({ mapsApi, map }) {
|
|
28
|
+
const c = new mapsApi.Circle({ map, ...props.options });
|
|
29
|
+
bindGoogleMapsEvents(c, emit, {
|
|
30
|
+
noPayload: eventsWithoutPayload,
|
|
31
|
+
withPayload: eventsWithMapMouseEventPayload
|
|
32
|
+
});
|
|
33
|
+
return c;
|
|
34
|
+
},
|
|
35
|
+
cleanup(c, { mapsApi }) {
|
|
36
|
+
mapsApi.event.clearInstanceListeners(c);
|
|
37
|
+
c.setMap(null);
|
|
50
38
|
}
|
|
51
|
-
mapContext.mapsApi.value.event.clearInstanceListeners(circle);
|
|
52
|
-
circle.setMap(null);
|
|
53
39
|
});
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
circle2.addListener(event, (payload) => emit(event, payload));
|
|
60
|
-
});
|
|
61
|
-
}
|
|
40
|
+
watch(() => props.options, (options) => {
|
|
41
|
+
if (circle.value && options) {
|
|
42
|
+
circle.value.setOptions(options);
|
|
43
|
+
}
|
|
44
|
+
}, { deep: true });
|
|
62
45
|
</script>
|
|
46
|
+
|
|
47
|
+
<template>
|
|
48
|
+
|
|
49
|
+
</template>
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Configuration options for the circle overlay.
|
|
4
|
+
* @see https://developers.google.com/maps/documentation/javascript/reference/polygon#CircleOptions
|
|
5
|
+
*/
|
|
2
6
|
options?: Omit<google.maps.CircleOptions, 'map'>;
|
|
3
7
|
};
|
|
4
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
9
|
click: (payload: google.maps.MapMouseEvent) => any;
|
|
6
10
|
dblclick: (payload: google.maps.MapMouseEvent) => any;
|
|
7
11
|
drag: (payload: google.maps.MapMouseEvent) => any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* The GeoJSON source. Can be a URL string or a GeoJSON object.
|
|
4
|
+
* @see https://developers.google.com/maps/documentation/javascript/datalayer#load_geojson
|
|
5
|
+
*/
|
|
6
|
+
src: string | object;
|
|
7
|
+
/**
|
|
8
|
+
* Styling options or a function that computes styles per feature.
|
|
9
|
+
* @see https://developers.google.com/maps/documentation/javascript/datalayer#style_geojson_data
|
|
10
|
+
*/
|
|
11
|
+
style?: google.maps.Data.StylingFunction | google.maps.Data.StyleOptions;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
contextmenu: (payload: google.maps.Data.MouseEvent) => any;
|
|
15
|
+
click: (payload: google.maps.Data.MouseEvent) => any;
|
|
16
|
+
dblclick: (payload: google.maps.Data.MouseEvent) => any;
|
|
17
|
+
mousedown: (payload: google.maps.Data.MouseEvent) => any;
|
|
18
|
+
mousemove: (payload: google.maps.Data.MouseEvent) => any;
|
|
19
|
+
mouseout: (payload: google.maps.Data.MouseEvent) => any;
|
|
20
|
+
mouseover: (payload: google.maps.Data.MouseEvent) => any;
|
|
21
|
+
mouseup: (payload: google.maps.Data.MouseEvent) => any;
|
|
22
|
+
addfeature: (payload: google.maps.Data.AddFeatureEvent) => any;
|
|
23
|
+
removefeature: (payload: google.maps.Data.RemoveFeatureEvent) => any;
|
|
24
|
+
setgeometry: (payload: google.maps.Data.SetGeometryEvent) => any;
|
|
25
|
+
setproperty: (payload: google.maps.Data.SetPropertyEvent) => any;
|
|
26
|
+
removeproperty: (payload: google.maps.Data.RemovePropertyEvent) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
onContextmenu?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
29
|
+
onClick?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
30
|
+
onDblclick?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
31
|
+
onMousedown?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
32
|
+
onMousemove?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
33
|
+
onMouseout?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
34
|
+
onMouseover?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
35
|
+
onMouseup?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
36
|
+
onAddfeature?: ((payload: google.maps.Data.AddFeatureEvent) => any) | undefined;
|
|
37
|
+
onRemovefeature?: ((payload: google.maps.Data.RemoveFeatureEvent) => any) | undefined;
|
|
38
|
+
onSetgeometry?: ((payload: google.maps.Data.SetGeometryEvent) => any) | undefined;
|
|
39
|
+
onSetproperty?: ((payload: google.maps.Data.SetPropertyEvent) => any) | undefined;
|
|
40
|
+
onRemoveproperty?: ((payload: google.maps.Data.RemovePropertyEvent) => any) | undefined;
|
|
41
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const _default: typeof __VLS_export;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { watch } from "vue";
|
|
3
|
+
import { bindGoogleMapsEvents } from "./bindGoogleMapsEvents";
|
|
4
|
+
import { useGoogleMapsResource } from "./useGoogleMapsResource";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
src: { type: [String, Object], required: true },
|
|
7
|
+
style: { type: null, required: false }
|
|
8
|
+
});
|
|
9
|
+
const emit = defineEmits(["click", "contextmenu", "dblclick", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "addfeature", "removefeature", "setgeometry", "setproperty", "removeproperty"]);
|
|
10
|
+
const dataEvents = [
|
|
11
|
+
"click",
|
|
12
|
+
"contextmenu",
|
|
13
|
+
"dblclick",
|
|
14
|
+
"mousedown",
|
|
15
|
+
"mousemove",
|
|
16
|
+
"mouseout",
|
|
17
|
+
"mouseover",
|
|
18
|
+
"mouseup"
|
|
19
|
+
];
|
|
20
|
+
const featureEvents = [
|
|
21
|
+
"addfeature",
|
|
22
|
+
"removefeature",
|
|
23
|
+
"setgeometry",
|
|
24
|
+
"setproperty",
|
|
25
|
+
"removeproperty"
|
|
26
|
+
];
|
|
27
|
+
function loadGeoJson(src, layer) {
|
|
28
|
+
if (typeof src === "string")
|
|
29
|
+
layer.loadGeoJson(src);
|
|
30
|
+
else
|
|
31
|
+
layer.addGeoJson(src);
|
|
32
|
+
}
|
|
33
|
+
const dataLayer = useGoogleMapsResource({
|
|
34
|
+
create({ mapsApi, map }) {
|
|
35
|
+
const layer = new mapsApi.Data({ map });
|
|
36
|
+
if (props.style)
|
|
37
|
+
layer.setStyle(props.style);
|
|
38
|
+
loadGeoJson(props.src, layer);
|
|
39
|
+
bindGoogleMapsEvents(layer, emit, { withPayload: [...dataEvents, ...featureEvents] });
|
|
40
|
+
return layer;
|
|
41
|
+
},
|
|
42
|
+
cleanup(layer, { mapsApi }) {
|
|
43
|
+
mapsApi.event.clearInstanceListeners(layer);
|
|
44
|
+
layer.setMap(null);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
watch(() => props.src, (src) => {
|
|
48
|
+
if (!dataLayer.value)
|
|
49
|
+
return;
|
|
50
|
+
dataLayer.value.forEach((feature) => dataLayer.value.remove(feature));
|
|
51
|
+
loadGeoJson(src, dataLayer.value);
|
|
52
|
+
});
|
|
53
|
+
watch(() => props.style, (style) => {
|
|
54
|
+
if (dataLayer.value)
|
|
55
|
+
dataLayer.value.setStyle(style ?? {});
|
|
56
|
+
}, { deep: true });
|
|
57
|
+
</script>
|
|
58
|
+
|
|
59
|
+
<template>
|
|
60
|
+
|
|
61
|
+
</template>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* The GeoJSON source. Can be a URL string or a GeoJSON object.
|
|
4
|
+
* @see https://developers.google.com/maps/documentation/javascript/datalayer#load_geojson
|
|
5
|
+
*/
|
|
6
|
+
src: string | object;
|
|
7
|
+
/**
|
|
8
|
+
* Styling options or a function that computes styles per feature.
|
|
9
|
+
* @see https://developers.google.com/maps/documentation/javascript/datalayer#style_geojson_data
|
|
10
|
+
*/
|
|
11
|
+
style?: google.maps.Data.StylingFunction | google.maps.Data.StyleOptions;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
contextmenu: (payload: google.maps.Data.MouseEvent) => any;
|
|
15
|
+
click: (payload: google.maps.Data.MouseEvent) => any;
|
|
16
|
+
dblclick: (payload: google.maps.Data.MouseEvent) => any;
|
|
17
|
+
mousedown: (payload: google.maps.Data.MouseEvent) => any;
|
|
18
|
+
mousemove: (payload: google.maps.Data.MouseEvent) => any;
|
|
19
|
+
mouseout: (payload: google.maps.Data.MouseEvent) => any;
|
|
20
|
+
mouseover: (payload: google.maps.Data.MouseEvent) => any;
|
|
21
|
+
mouseup: (payload: google.maps.Data.MouseEvent) => any;
|
|
22
|
+
addfeature: (payload: google.maps.Data.AddFeatureEvent) => any;
|
|
23
|
+
removefeature: (payload: google.maps.Data.RemoveFeatureEvent) => any;
|
|
24
|
+
setgeometry: (payload: google.maps.Data.SetGeometryEvent) => any;
|
|
25
|
+
setproperty: (payload: google.maps.Data.SetPropertyEvent) => any;
|
|
26
|
+
removeproperty: (payload: google.maps.Data.RemovePropertyEvent) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
onContextmenu?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
29
|
+
onClick?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
30
|
+
onDblclick?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
31
|
+
onMousedown?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
32
|
+
onMousemove?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
33
|
+
onMouseout?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
34
|
+
onMouseover?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
35
|
+
onMouseup?: ((payload: google.maps.Data.MouseEvent) => any) | undefined;
|
|
36
|
+
onAddfeature?: ((payload: google.maps.Data.AddFeatureEvent) => any) | undefined;
|
|
37
|
+
onRemovefeature?: ((payload: google.maps.Data.RemoveFeatureEvent) => any) | undefined;
|
|
38
|
+
onSetgeometry?: ((payload: google.maps.Data.SetGeometryEvent) => any) | undefined;
|
|
39
|
+
onSetproperty?: ((payload: google.maps.Data.SetPropertyEvent) => any) | undefined;
|
|
40
|
+
onRemoveproperty?: ((payload: google.maps.Data.RemovePropertyEvent) => any) | undefined;
|
|
41
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const _default: typeof __VLS_export;
|
|
43
|
+
export default _default;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Configuration options for the heatmap layer visualization.
|
|
4
|
+
* @see https://developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayerOptions
|
|
5
|
+
*/
|
|
2
6
|
options?: Omit<google.maps.visualization.HeatmapLayerOptions, 'map'>;
|
|
3
7
|
};
|
|
4
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,32 +1,28 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
1
|
<script setup>
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { MAP_INJECTION_KEY } from "./ScriptGoogleMaps.vue";
|
|
2
|
+
import { watch } from "vue";
|
|
3
|
+
import { useGoogleMapsResource } from "./useGoogleMapsResource";
|
|
9
4
|
const props = defineProps({
|
|
10
5
|
options: { type: Object, required: false }
|
|
11
6
|
});
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
deep: true
|
|
24
|
-
});
|
|
25
|
-
}, {
|
|
26
|
-
immediate: true,
|
|
27
|
-
once: true
|
|
28
|
-
});
|
|
29
|
-
onUnmounted(() => {
|
|
30
|
-
heatmapLayer?.setMap(null);
|
|
7
|
+
const heatmapLayer = useGoogleMapsResource({
|
|
8
|
+
async create({ mapsApi, map }) {
|
|
9
|
+
await mapsApi.importLibrary("visualization");
|
|
10
|
+
return new mapsApi.visualization.HeatmapLayer({
|
|
11
|
+
map,
|
|
12
|
+
...props.options
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
cleanup(layer) {
|
|
16
|
+
layer.setMap(null);
|
|
17
|
+
}
|
|
31
18
|
});
|
|
19
|
+
watch(() => props.options, (options) => {
|
|
20
|
+
if (heatmapLayer.value && options) {
|
|
21
|
+
heatmapLayer.value.setOptions(options);
|
|
22
|
+
}
|
|
23
|
+
}, { deep: true });
|
|
32
24
|
</script>
|
|
25
|
+
|
|
26
|
+
<template>
|
|
27
|
+
|
|
28
|
+
</template>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Configuration options for the heatmap layer visualization.
|
|
4
|
+
* @see https://developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayerOptions
|
|
5
|
+
*/
|
|
2
6
|
options?: Omit<google.maps.visualization.HeatmapLayerOptions, 'map'>;
|
|
3
7
|
};
|
|
4
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Configuration options for the info window.
|
|
4
|
+
* @see https://developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindowOptions
|
|
5
|
+
*/
|
|
2
6
|
options?: google.maps.InfoWindowOptions;
|
|
3
7
|
};
|
|
4
8
|
declare var __VLS_1: {};
|
|
5
9
|
type __VLS_Slots = {} & {
|
|
6
10
|
default?: (props: typeof __VLS_1) => any;
|
|
7
11
|
};
|
|
8
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
13
|
close: () => any;
|
|
10
14
|
visible: () => any;
|
|
11
|
-
position_changed: () => any;
|
|
12
|
-
zindex_changed: () => any;
|
|
13
15
|
closeclick: () => any;
|
|
14
16
|
content_changed: () => any;
|
|
15
17
|
domready: () => any;
|
|
16
18
|
headercontent_changed: () => any;
|
|
17
19
|
headerdisabled_changed: () => any;
|
|
20
|
+
position_changed: () => any;
|
|
21
|
+
zindex_changed: () => any;
|
|
18
22
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
23
|
onClose?: (() => any) | undefined;
|
|
20
24
|
onVisible?: (() => any) | undefined;
|
|
21
|
-
onPosition_changed?: (() => any) | undefined;
|
|
22
|
-
onZindex_changed?: (() => any) | undefined;
|
|
23
25
|
onCloseclick?: (() => any) | undefined;
|
|
24
26
|
onContent_changed?: (() => any) | undefined;
|
|
25
27
|
onDomready?: (() => any) | undefined;
|
|
26
28
|
onHeadercontent_changed?: (() => any) | undefined;
|
|
27
29
|
onHeaderdisabled_changed?: (() => any) | undefined;
|
|
30
|
+
onPosition_changed?: (() => any) | undefined;
|
|
31
|
+
onZindex_changed?: (() => any) | undefined;
|
|
28
32
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
33
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
34
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="info-window-container">
|
|
3
|
-
<div ref="info-window-container">
|
|
4
|
-
<slot />
|
|
5
|
-
</div>
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
1
|
<script setup>
|
|
10
|
-
import { inject,
|
|
11
|
-
import {
|
|
12
|
-
import { MARKER_INJECTION_KEY } from "./
|
|
13
|
-
import {
|
|
14
|
-
import { ADVANCED_MARKER_ELEMENT_INJECTION_KEY } from "./ScriptGoogleMapsAdvancedMarkerElement.vue";
|
|
2
|
+
import { inject, useTemplateRef, watch } from "vue";
|
|
3
|
+
import { bindGoogleMapsEvents } from "./bindGoogleMapsEvents";
|
|
4
|
+
import { ADVANCED_MARKER_ELEMENT_INJECTION_KEY, MAP_INJECTION_KEY, MARKER_INJECTION_KEY } from "./injectionKeys";
|
|
5
|
+
import { useGoogleMapsResource } from "./useGoogleMapsResource";
|
|
15
6
|
const props = defineProps({
|
|
16
7
|
options: { type: null, required: false }
|
|
17
8
|
});
|
|
9
|
+
const emit = defineEmits(["close", "closeclick", "content_changed", "domready", "headercontent_changed", "headerdisabled_changed", "position_changed", "visible", "zindex_changed"]);
|
|
18
10
|
const infoWindowEvents = [
|
|
19
11
|
"close",
|
|
20
12
|
"closeclick",
|
|
@@ -26,63 +18,80 @@ const infoWindowEvents = [
|
|
|
26
18
|
"visible",
|
|
27
19
|
"zindex_changed"
|
|
28
20
|
];
|
|
29
|
-
const emit = defineEmits([]);
|
|
30
21
|
const mapContext = inject(MAP_INJECTION_KEY, void 0);
|
|
31
22
|
const markerContext = inject(MARKER_INJECTION_KEY, void 0);
|
|
32
23
|
const advancedMarkerElementContext = inject(ADVANCED_MARKER_ELEMENT_INJECTION_KEY, void 0);
|
|
33
24
|
const infoWindowContainer = useTemplateRef("info-window-container");
|
|
34
|
-
let
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
25
|
+
let markerClickListener;
|
|
26
|
+
let gmpClickHandler;
|
|
27
|
+
let isOpen = false;
|
|
28
|
+
const infoWindow = useGoogleMapsResource({
|
|
29
|
+
ready: () => !!infoWindowContainer.value,
|
|
30
|
+
create({ mapsApi, map }) {
|
|
31
|
+
const iw = new mapsApi.InfoWindow({
|
|
39
32
|
content: infoWindowContainer.value,
|
|
40
33
|
...props.options
|
|
41
34
|
});
|
|
42
|
-
|
|
35
|
+
iw.addListener("closeclick", () => {
|
|
36
|
+
isOpen = false;
|
|
37
|
+
});
|
|
38
|
+
iw.addListener("close", () => {
|
|
39
|
+
isOpen = false;
|
|
40
|
+
});
|
|
41
|
+
bindGoogleMapsEvents(iw, emit, { noPayload: infoWindowEvents });
|
|
42
|
+
const toggleOpen = (anchor) => {
|
|
43
|
+
if (isOpen) {
|
|
44
|
+
iw.close();
|
|
45
|
+
isOpen = false;
|
|
46
|
+
} else {
|
|
47
|
+
mapContext?.activateInfoWindow(iw);
|
|
48
|
+
iw.open({ anchor, map });
|
|
49
|
+
isOpen = true;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
43
52
|
if (markerContext?.marker.value) {
|
|
44
|
-
markerContext.marker.value.addListener("click", () => {
|
|
45
|
-
|
|
46
|
-
anchor: markerContext.marker.value,
|
|
47
|
-
map: mapContext.map.value
|
|
48
|
-
});
|
|
53
|
+
markerClickListener = markerContext.marker.value.addListener("click", () => {
|
|
54
|
+
toggleOpen(markerContext.marker.value);
|
|
49
55
|
});
|
|
50
56
|
} else if (advancedMarkerElementContext?.advancedMarkerElement.value) {
|
|
51
|
-
advancedMarkerElementContext.advancedMarkerElement.value
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
+
const ame = advancedMarkerElementContext.advancedMarkerElement.value;
|
|
58
|
+
ame.gmpClickable = true;
|
|
59
|
+
gmpClickHandler = () => toggleOpen(ame);
|
|
60
|
+
ame.addEventListener("gmp-click", gmpClickHandler);
|
|
57
61
|
} else {
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
iw.setPosition(props.options?.position);
|
|
63
|
+
iw.open(map);
|
|
64
|
+
isOpen = true;
|
|
60
65
|
}
|
|
61
|
-
|
|
62
|
-
infoWindow?.setOptions(options);
|
|
63
|
-
}, {
|
|
64
|
-
deep: true
|
|
65
|
-
});
|
|
66
|
+
return iw;
|
|
66
67
|
},
|
|
67
|
-
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
);
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
cleanup(iw, { mapsApi }) {
|
|
69
|
+
markerClickListener?.remove();
|
|
70
|
+
markerClickListener = void 0;
|
|
71
|
+
if (gmpClickHandler && advancedMarkerElementContext?.advancedMarkerElement.value) {
|
|
72
|
+
advancedMarkerElementContext.advancedMarkerElement.value.removeEventListener("gmp-click", gmpClickHandler);
|
|
73
|
+
gmpClickHandler = void 0;
|
|
74
|
+
}
|
|
75
|
+
mapsApi.event.clearInstanceListeners(iw);
|
|
76
|
+
iw.close();
|
|
77
|
+
isOpen = false;
|
|
75
78
|
}
|
|
76
|
-
mapContext.mapsApi.value.event.clearInstanceListeners(infoWindow);
|
|
77
|
-
infoWindow.close();
|
|
78
79
|
});
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
}
|
|
80
|
+
watch(() => props.options, (options) => {
|
|
81
|
+
if (infoWindow.value && options) {
|
|
82
|
+
infoWindow.value.setOptions(options);
|
|
83
|
+
}
|
|
84
|
+
}, { deep: true });
|
|
84
85
|
</script>
|
|
85
86
|
|
|
87
|
+
<template>
|
|
88
|
+
<div class="info-window-container">
|
|
89
|
+
<div ref="info-window-container">
|
|
90
|
+
<slot />
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</template>
|
|
94
|
+
|
|
86
95
|
<style scoped>
|
|
87
96
|
.info-window-container{display:none}
|
|
88
97
|
</style>
|
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Configuration options for the info window.
|
|
4
|
+
* @see https://developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindowOptions
|
|
5
|
+
*/
|
|
2
6
|
options?: google.maps.InfoWindowOptions;
|
|
3
7
|
};
|
|
4
8
|
declare var __VLS_1: {};
|
|
5
9
|
type __VLS_Slots = {} & {
|
|
6
10
|
default?: (props: typeof __VLS_1) => any;
|
|
7
11
|
};
|
|
8
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
13
|
close: () => any;
|
|
10
14
|
visible: () => any;
|
|
11
|
-
position_changed: () => any;
|
|
12
|
-
zindex_changed: () => any;
|
|
13
15
|
closeclick: () => any;
|
|
14
16
|
content_changed: () => any;
|
|
15
17
|
domready: () => any;
|
|
16
18
|
headercontent_changed: () => any;
|
|
17
19
|
headerdisabled_changed: () => any;
|
|
20
|
+
position_changed: () => any;
|
|
21
|
+
zindex_changed: () => any;
|
|
18
22
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
23
|
onClose?: (() => any) | undefined;
|
|
20
24
|
onVisible?: (() => any) | undefined;
|
|
21
|
-
onPosition_changed?: (() => any) | undefined;
|
|
22
|
-
onZindex_changed?: (() => any) | undefined;
|
|
23
25
|
onCloseclick?: (() => any) | undefined;
|
|
24
26
|
onContent_changed?: (() => any) | undefined;
|
|
25
27
|
onDomready?: (() => any) | undefined;
|
|
26
28
|
onHeadercontent_changed?: (() => any) | undefined;
|
|
27
29
|
onHeaderdisabled_changed?: (() => any) | undefined;
|
|
30
|
+
onPosition_changed?: (() => any) | undefined;
|
|
31
|
+
onZindex_changed?: (() => any) | undefined;
|
|
28
32
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
33
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
34
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const MARKER_INJECTION_KEY: InjectionKey<{
|
|
3
|
-
marker: ShallowRef<google.maps.Marker | undefined>;
|
|
4
|
-
}>;
|
|
1
|
+
export { MARKER_INJECTION_KEY } from './injectionKeys.js';
|
|
5
2
|
declare const _default: typeof __VLS_export;
|
|
6
3
|
export default _default;
|
|
7
4
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
5
|
+
/**
|
|
6
|
+
* The position of the marker on the map.
|
|
7
|
+
* @see https://developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.position
|
|
8
|
+
*/
|
|
9
|
+
position?: google.maps.LatLngLiteral | google.maps.LatLng;
|
|
10
|
+
/**
|
|
11
|
+
* Configuration options for the legacy marker. Deprecated: use ScriptGoogleMapsAdvancedMarkerElement instead.
|
|
12
|
+
* @see https://developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions
|
|
13
|
+
*/
|
|
8
14
|
options?: Omit<google.maps.MarkerOptions, "map">;
|
|
9
|
-
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
click: (payload: google.maps.MapMouseEvent) => any;
|
|
15
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
16
|
contextmenu: (payload: google.maps.MapMouseEvent) => any;
|
|
17
|
+
click: (payload: google.maps.MapMouseEvent) => any;
|
|
12
18
|
dblclick: (payload: google.maps.MapMouseEvent) => any;
|
|
13
19
|
drag: (payload: google.maps.MapMouseEvent) => any;
|
|
14
20
|
dragend: (payload: google.maps.MapMouseEvent) => any;
|
|
@@ -17,22 +23,31 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
17
23
|
mouseout: (payload: google.maps.MapMouseEvent) => any;
|
|
18
24
|
mouseover: (payload: google.maps.MapMouseEvent) => any;
|
|
19
25
|
mouseup: (payload: google.maps.MapMouseEvent) => any;
|
|
26
|
+
position_changed: () => any;
|
|
27
|
+
zindex_changed: () => any;
|
|
20
28
|
animation_changed: () => any;
|
|
21
29
|
clickable_changed: () => any;
|
|
22
30
|
cursor_changed: () => any;
|
|
23
31
|
draggable_changed: () => any;
|
|
24
32
|
flat_changed: () => any;
|
|
25
33
|
icon_changed: () => any;
|
|
26
|
-
position_changed: () => any;
|
|
27
34
|
shape_changed: () => any;
|
|
28
35
|
title_changed: () => any;
|
|
29
36
|
visible_changed: () => any;
|
|
30
|
-
zindex_changed: () => any;
|
|
31
37
|
}, string, import("vue").PublicProps, Readonly<{
|
|
38
|
+
/**
|
|
39
|
+
* The position of the marker on the map.
|
|
40
|
+
* @see https://developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.position
|
|
41
|
+
*/
|
|
42
|
+
position?: google.maps.LatLngLiteral | google.maps.LatLng;
|
|
43
|
+
/**
|
|
44
|
+
* Configuration options for the legacy marker. Deprecated: use ScriptGoogleMapsAdvancedMarkerElement instead.
|
|
45
|
+
* @see https://developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions
|
|
46
|
+
*/
|
|
32
47
|
options?: Omit<google.maps.MarkerOptions, "map">;
|
|
33
48
|
}> & Readonly<{
|
|
34
|
-
onClick?: ((payload: google.maps.MapMouseEvent) => any) | undefined;
|
|
35
49
|
onContextmenu?: ((payload: google.maps.MapMouseEvent) => any) | undefined;
|
|
50
|
+
onClick?: ((payload: google.maps.MapMouseEvent) => any) | undefined;
|
|
36
51
|
onDblclick?: ((payload: google.maps.MapMouseEvent) => any) | undefined;
|
|
37
52
|
onDrag?: ((payload: google.maps.MapMouseEvent) => any) | undefined;
|
|
38
53
|
onDragend?: ((payload: google.maps.MapMouseEvent) => any) | undefined;
|
|
@@ -41,17 +56,17 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
41
56
|
onMouseout?: ((payload: google.maps.MapMouseEvent) => any) | undefined;
|
|
42
57
|
onMouseover?: ((payload: google.maps.MapMouseEvent) => any) | undefined;
|
|
43
58
|
onMouseup?: ((payload: google.maps.MapMouseEvent) => any) | undefined;
|
|
59
|
+
onPosition_changed?: (() => any) | undefined;
|
|
60
|
+
onZindex_changed?: (() => any) | undefined;
|
|
44
61
|
onAnimation_changed?: (() => any) | undefined;
|
|
45
62
|
onClickable_changed?: (() => any) | undefined;
|
|
46
63
|
onCursor_changed?: (() => any) | undefined;
|
|
47
64
|
onDraggable_changed?: (() => any) | undefined;
|
|
48
65
|
onFlat_changed?: (() => any) | undefined;
|
|
49
66
|
onIcon_changed?: (() => any) | undefined;
|
|
50
|
-
onPosition_changed?: (() => any) | undefined;
|
|
51
67
|
onShape_changed?: (() => any) | undefined;
|
|
52
68
|
onTitle_changed?: (() => any) | undefined;
|
|
53
69
|
onVisible_changed?: (() => any) | undefined;
|
|
54
|
-
onZindex_changed?: (() => any) | undefined;
|
|
55
70
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
56
71
|
default?: (props: {}) => any;
|
|
57
72
|
}>;
|