@stachelock/ui 0.6.15 → 0.6.16
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/dist/NavigationItem.vue_vue_type_script_setup_true_lang-a6F3LQ_P.js +56 -0
- package/dist/ScreenSizeSelector.vue_vue_type_script_setup_true_lang-FINxrVod.js +183 -0
- package/dist/UiMapAll.vue_vue_type_script_setup_true_lang-DKcK0HmT.js +501 -0
- package/dist/charts/BaseChart.js +76 -56
- package/dist/charts/chartTheme.js +199 -60
- package/dist/charts/index.js +30 -27
- package/dist/components/Button.js +109 -89
- package/dist/composables/index.js +41 -32
- package/dist/composables/useMap.js +1 -1
- package/dist/index.js +2304 -1560
- package/dist/layouts/DashboardLayout.js +218 -2
- package/dist/layouts/NavigationItem.js +1 -1
- package/dist/maps/UiMap.js +167 -150
- package/dist/maps/UiMapAll.js +1 -1
- package/dist/maps/UiMapMarker.js +227 -118
- package/dist/maps/index.js +1 -1
- package/dist/src/components/UiProgressBar.d.ts +1 -1
- package/dist/src/components/UiRadialProgressBar.d.ts +1 -1
- package/dist/src/components/charts/chartTheme.d.ts +53 -0
- package/dist/src/components/formatters/DateFormatter.d.ts +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/inputs/DatepickerInput.d.ts +3 -3
- package/dist/src/components/layouts/DashboardLayout.d.ts +80 -18
- package/dist/src/components/layouts/ShowcaseCard.d.ts +1 -0
- package/dist/src/components/layouts/UiDetailPanel.d.ts +65 -0
- package/dist/src/components/layouts/UiSplitPanelLayout.d.ts +96 -0
- package/dist/src/components/layouts/index.d.ts +2 -0
- package/dist/src/components/maps/UiMap.d.ts +13 -2
- package/dist/src/components/maps/UiMapAll.d.ts +13 -0
- package/dist/src/components/maps/UiMapMarker.d.ts +47 -10
- package/dist/src/components/modals/UiSlideOver.d.ts +104 -0
- package/dist/src/components/modals/index.d.ts +1 -0
- package/dist/src/components/palettes/UiCommandPalette.d.ts +166 -0
- package/dist/src/components/palettes/index.d.ts +1 -0
- package/dist/src/components/wrappers/BreakpointWrapper.d.ts +36 -0
- package/dist/src/components/wrappers/ResponsivePreviewWrapper.d.ts +85 -0
- package/dist/src/components/wrappers/ScreenSizeSelector.d.ts +74 -0
- package/dist/src/components/wrappers/index.d.ts +3 -0
- package/dist/src/composables/index.d.ts +1 -0
- package/dist/src/composables/useScreenSize.d.ts +131 -0
- package/dist/src/types/index.d.ts +1 -0
- package/dist/src/types/layouts.d.ts +42 -0
- package/dist/src/types/palettes.d.ts +134 -0
- package/dist/src/views/components/index.d.ts +2 -0
- package/dist/src/views/index.d.ts +5 -1
- package/dist/src/views/layouts/index.d.ts +3 -1
- package/dist/style.css +1 -1
- package/dist/useMap-CM59TKX6.js +318 -0
- package/dist/useScreenSize-Kr6cn5Zr.js +104 -0
- package/dist/wrappers/index.js +10 -6
- package/package.json +1 -1
- package/dist/DashboardLayout.vue_vue_type_script_setup_true_lang-BAx4gKqh.js +0 -239
- package/dist/NavigationItem.vue_vue_type_script_setup_true_lang-C8aX-84Q.js +0 -56
- package/dist/UiMapAll.vue_vue_type_script_setup_true_lang-11yT7mTH.js +0 -471
- package/dist/useMap-BGg0H582.js +0 -297
package/dist/maps/UiMap.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ExclamationCircleIcon as
|
|
3
|
-
import { u as
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as he, defineAsyncComponent as ye, ref as v, computed as u, watch as b, onMounted as ve, provide as be, createElementBlock as h, openBlock as m, normalizeStyle as I, normalizeClass as i, createCommentVNode as g, createBlock as ke, renderSlot as k, unref as a, createElementVNode as c, toDisplayString as w, createVNode as C, withCtx as Ce } from "vue";
|
|
2
|
+
import { ExclamationCircleIcon as xe, MapPinIcon as Me, PlusIcon as we, MinusIcon as Be } from "@heroicons/vue/24/outline";
|
|
3
|
+
import { u as Se } from "../useMap-CM59TKX6.js";
|
|
4
|
+
import { useTheme as ze } from "../composables/useTheme.js";
|
|
5
|
+
import { _ as Ze } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const Te = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3" }, Ie = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3 sl-text-center sl-max-w-md" }, Le = { class: "sl-text-center sl-p-6" }, De = /* @__PURE__ */ he({
|
|
7
7
|
__name: "UiMap",
|
|
8
8
|
props: {
|
|
9
|
-
/** Unique map ID */
|
|
9
|
+
/** Unique map ID (HTML element ID) */
|
|
10
10
|
id: {
|
|
11
11
|
type: String,
|
|
12
12
|
default: () => `sl-map-${Date.now()}`
|
|
13
13
|
},
|
|
14
|
+
/** Google Cloud Map ID (required for Advanced Markers) */
|
|
15
|
+
googleMapId: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ""
|
|
18
|
+
},
|
|
14
19
|
/** Google Maps API key (optional if provided via plugin) */
|
|
15
20
|
apiKey: {
|
|
16
21
|
type: String,
|
|
@@ -218,44 +223,47 @@ const Se = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3" }, Ze = { cla
|
|
|
218
223
|
}
|
|
219
224
|
},
|
|
220
225
|
emits: ["click", "dblclick", "rightclick", "center-changed", "zoom-changed", "bounds-changed", "map-type-changed", "idle", "dragstart", "drag", "dragend", "tilt-changed", "heading-changed", "ready", "error", "update:center", "update:zoom"],
|
|
221
|
-
setup(l, { expose:
|
|
222
|
-
const
|
|
226
|
+
setup(l, { expose: L, emit: D }) {
|
|
227
|
+
const P = ye(
|
|
223
228
|
() => import("vue3-google-map").then((e) => e.GoogleMap)
|
|
224
|
-
),
|
|
229
|
+
), o = l, r = D, { isDark: n } = ze(), {
|
|
225
230
|
isApiLoading: E,
|
|
226
|
-
isApiReady:
|
|
231
|
+
isApiReady: B,
|
|
227
232
|
apiError: N,
|
|
228
|
-
apiPromise:
|
|
229
|
-
mapStyles:
|
|
233
|
+
apiPromise: R,
|
|
234
|
+
mapStyles: U,
|
|
230
235
|
center: j,
|
|
231
236
|
zoom: A,
|
|
232
|
-
initializeApi:
|
|
233
|
-
setMap:
|
|
234
|
-
panTo:
|
|
235
|
-
setZoom:
|
|
236
|
-
fitBounds:
|
|
237
|
-
} =
|
|
238
|
-
apiKey:
|
|
239
|
-
theme:
|
|
240
|
-
autoTheme:
|
|
241
|
-
lightTheme:
|
|
242
|
-
darkTheme:
|
|
243
|
-
customStyles:
|
|
244
|
-
defaultCenter:
|
|
245
|
-
defaultZoom:
|
|
246
|
-
}),
|
|
247
|
-
width:
|
|
248
|
-
height:
|
|
249
|
-
})), W = u(() => E.value && !
|
|
237
|
+
initializeApi: S,
|
|
238
|
+
setMap: V,
|
|
239
|
+
panTo: H,
|
|
240
|
+
setZoom: O,
|
|
241
|
+
fitBounds: $
|
|
242
|
+
} = Se({
|
|
243
|
+
apiKey: o.apiKey,
|
|
244
|
+
theme: o.theme,
|
|
245
|
+
autoTheme: o.autoTheme,
|
|
246
|
+
lightTheme: o.lightTheme,
|
|
247
|
+
darkTheme: o.darkTheme,
|
|
248
|
+
customStyles: o.styles,
|
|
249
|
+
defaultCenter: o.center,
|
|
250
|
+
defaultZoom: o.zoom
|
|
251
|
+
}), s = v(null), f = v(null), x = v(!1), p = v(!1), F = u(() => o.id), K = u(() => ({
|
|
252
|
+
width: o.width,
|
|
253
|
+
height: o.height
|
|
254
|
+
})), W = u(() => E.value && !x.value), z = u(() => o.center || j.value), Z = u(() => o.zoom ?? A.value), G = u(() => {
|
|
255
|
+
if (!o.googleMapId)
|
|
256
|
+
return o.styles ? o.styles : U.value;
|
|
257
|
+
}), q = u(() => R.value), J = u(() => {
|
|
250
258
|
const e = {
|
|
251
259
|
"top-left": "sl-top-4 sl-left-4",
|
|
252
260
|
"top-right": "sl-top-4 sl-right-4",
|
|
253
261
|
"bottom-left": "sl-bottom-4 sl-left-4",
|
|
254
262
|
"bottom-right": "sl-bottom-4 sl-right-4"
|
|
255
263
|
};
|
|
256
|
-
return e[
|
|
264
|
+
return e[o.controlsPosition] || e["bottom-left"];
|
|
257
265
|
});
|
|
258
|
-
function
|
|
266
|
+
function Q(e) {
|
|
259
267
|
if (e.latLng) {
|
|
260
268
|
const t = e;
|
|
261
269
|
r("click", {
|
|
@@ -264,164 +272,172 @@ const Se = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3" }, Ze = { cla
|
|
|
264
272
|
});
|
|
265
273
|
}
|
|
266
274
|
}
|
|
267
|
-
function
|
|
275
|
+
function X(e) {
|
|
268
276
|
e.latLng && r("dblclick", {
|
|
269
277
|
position: { lat: e.latLng.lat(), lng: e.latLng.lng() }
|
|
270
278
|
});
|
|
271
279
|
}
|
|
272
|
-
function
|
|
280
|
+
function Y(e) {
|
|
273
281
|
e.latLng && r("rightclick", {
|
|
274
282
|
position: { lat: e.latLng.lat(), lng: e.latLng.lng() }
|
|
275
283
|
});
|
|
276
284
|
}
|
|
277
|
-
function
|
|
278
|
-
const e =
|
|
285
|
+
function _() {
|
|
286
|
+
const e = s.value?.map;
|
|
279
287
|
if (e) {
|
|
280
288
|
const t = e.getCenter();
|
|
281
289
|
if (t) {
|
|
282
290
|
const d = { lat: t.lat(), lng: t.lng() };
|
|
283
|
-
r("center-changed", { center: d }), r("update:center", d)
|
|
291
|
+
p.value = !0, r("center-changed", { center: d }), r("update:center", d), Promise.resolve().then(() => {
|
|
292
|
+
p.value = !1;
|
|
293
|
+
});
|
|
284
294
|
}
|
|
285
295
|
}
|
|
286
296
|
}
|
|
287
|
-
function
|
|
288
|
-
const e =
|
|
297
|
+
function ee() {
|
|
298
|
+
const e = s.value?.map;
|
|
289
299
|
if (e) {
|
|
290
300
|
const t = e.getZoom();
|
|
291
|
-
t !== void 0 && (r("zoom-changed", { zoom: t }), r("update:zoom", t))
|
|
301
|
+
t !== void 0 && (p.value = !0, r("zoom-changed", { zoom: t }), r("update:zoom", t), Promise.resolve().then(() => {
|
|
302
|
+
p.value = !1;
|
|
303
|
+
}));
|
|
292
304
|
}
|
|
293
305
|
}
|
|
294
|
-
function
|
|
295
|
-
|
|
306
|
+
function te() {
|
|
307
|
+
if (p.value) return;
|
|
308
|
+
const e = s.value?.map;
|
|
296
309
|
if (e) {
|
|
297
310
|
const t = e.getBounds();
|
|
298
311
|
if (t) {
|
|
299
|
-
const d = t.getNorthEast(),
|
|
312
|
+
const d = t.getNorthEast(), y = t.getSouthWest();
|
|
300
313
|
r("bounds-changed", {
|
|
301
314
|
bounds: {
|
|
302
315
|
north: d.lat(),
|
|
303
|
-
south:
|
|
316
|
+
south: y.lat(),
|
|
304
317
|
east: d.lng(),
|
|
305
|
-
west:
|
|
318
|
+
west: y.lng()
|
|
306
319
|
}
|
|
307
320
|
});
|
|
308
321
|
}
|
|
309
322
|
}
|
|
310
323
|
}
|
|
311
|
-
function
|
|
312
|
-
const e =
|
|
324
|
+
function le() {
|
|
325
|
+
const e = s.value?.map;
|
|
313
326
|
if (e) {
|
|
314
327
|
const t = e.getMapTypeId();
|
|
315
328
|
r("map-type-changed", { mapTypeId: t });
|
|
316
329
|
}
|
|
317
330
|
}
|
|
318
|
-
function le() {
|
|
319
|
-
const e = o.value?.map;
|
|
320
|
-
e && !C.value && (C.value = !0, U(e), r("ready", { map: e })), r("idle");
|
|
321
|
-
}
|
|
322
331
|
function ae() {
|
|
323
|
-
|
|
332
|
+
const e = s.value?.map;
|
|
333
|
+
e && !x.value && (x.value = !0, V(e), r("ready", { map: e })), r("idle");
|
|
324
334
|
}
|
|
325
335
|
function oe() {
|
|
326
|
-
|
|
336
|
+
r("dragstart");
|
|
337
|
+
}
|
|
338
|
+
function se() {
|
|
339
|
+
const e = s.value?.map;
|
|
327
340
|
if (e) {
|
|
328
341
|
const t = e.getCenter();
|
|
329
342
|
t && r("drag", { center: { lat: t.lat(), lng: t.lng() } });
|
|
330
343
|
}
|
|
331
344
|
}
|
|
332
|
-
function
|
|
333
|
-
const e =
|
|
345
|
+
function ne() {
|
|
346
|
+
const e = s.value?.map;
|
|
334
347
|
if (e) {
|
|
335
348
|
const t = e.getCenter();
|
|
336
349
|
t && r("dragend", { center: { lat: t.lat(), lng: t.lng() } });
|
|
337
350
|
}
|
|
338
351
|
}
|
|
339
|
-
function
|
|
340
|
-
const e =
|
|
352
|
+
function re() {
|
|
353
|
+
const e = s.value?.map;
|
|
341
354
|
e && r("tilt-changed", { tilt: e.getTilt() || 0 });
|
|
342
355
|
}
|
|
343
|
-
function
|
|
344
|
-
const e =
|
|
356
|
+
function ie() {
|
|
357
|
+
const e = s.value?.map;
|
|
345
358
|
e && r("heading-changed", { heading: e.getHeading() || 0 });
|
|
346
359
|
}
|
|
347
|
-
function
|
|
348
|
-
f.value = null,
|
|
360
|
+
function de() {
|
|
361
|
+
f.value = null, S().catch((e) => {
|
|
349
362
|
f.value = e.message, r("error", { message: e.message, error: e });
|
|
350
363
|
});
|
|
351
364
|
}
|
|
352
|
-
function
|
|
353
|
-
const e =
|
|
365
|
+
function ce() {
|
|
366
|
+
const e = s.value?.map;
|
|
354
367
|
if (e) {
|
|
355
368
|
const t = e.getZoom() || 10;
|
|
356
|
-
e.setZoom(Math.min(t + 1,
|
|
369
|
+
e.setZoom(Math.min(t + 1, o.maxZoom));
|
|
357
370
|
}
|
|
358
371
|
}
|
|
359
|
-
function
|
|
360
|
-
const e =
|
|
372
|
+
function ue() {
|
|
373
|
+
const e = s.value?.map;
|
|
361
374
|
if (e) {
|
|
362
375
|
const t = e.getZoom() || 10;
|
|
363
|
-
e.setZoom(Math.max(t - 1,
|
|
376
|
+
e.setZoom(Math.max(t - 1, o.minZoom));
|
|
364
377
|
}
|
|
365
378
|
}
|
|
366
|
-
function
|
|
367
|
-
return
|
|
368
|
-
}
|
|
369
|
-
function Z(e) {
|
|
370
|
-
V(e);
|
|
379
|
+
function M() {
|
|
380
|
+
return s.value?.map || null;
|
|
371
381
|
}
|
|
372
|
-
function
|
|
382
|
+
function T(e) {
|
|
373
383
|
H(e);
|
|
374
384
|
}
|
|
375
|
-
function me(e
|
|
376
|
-
O(e
|
|
385
|
+
function me(e) {
|
|
386
|
+
O(e);
|
|
377
387
|
}
|
|
378
|
-
function ge() {
|
|
379
|
-
|
|
380
|
-
e && (e.setCenter(z.value), e.setZoom(S.value));
|
|
388
|
+
function ge(e, t) {
|
|
389
|
+
$(e, t);
|
|
381
390
|
}
|
|
382
|
-
|
|
383
|
-
e
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
e &&
|
|
388
|
-
}),
|
|
391
|
+
function fe() {
|
|
392
|
+
const e = s.value?.map;
|
|
393
|
+
e && (e.setCenter(z.value), e.setZoom(Z.value));
|
|
394
|
+
}
|
|
395
|
+
b(() => o.center, (e, t) => {
|
|
396
|
+
p.value || e && t && Math.abs(e.lat - t.lat) < 1e-5 && Math.abs(e.lng - t.lng) < 1e-5 || e && s.value?.map && s.value.map.setCenter(e);
|
|
397
|
+
}), b(() => o.zoom, (e, t) => {
|
|
398
|
+
p.value || e !== t && e !== void 0 && s.value?.map && s.value.map.setZoom(e);
|
|
399
|
+
}), b(() => o.styles, (e) => {
|
|
400
|
+
e && s.value?.map && s.value.map.setOptions({ styles: e });
|
|
401
|
+
}), b(N, (e) => {
|
|
389
402
|
e && (f.value = e, r("error", { message: e }));
|
|
390
|
-
}),
|
|
403
|
+
}), ve(async () => {
|
|
391
404
|
try {
|
|
392
|
-
await
|
|
405
|
+
await S();
|
|
393
406
|
} catch (e) {
|
|
394
407
|
const t = e instanceof Error ? e.message : "Failed to initialize map";
|
|
395
408
|
f.value = t, r("error", { message: t, error: e instanceof Error ? e : void 0 });
|
|
396
409
|
}
|
|
397
|
-
})
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
410
|
+
});
|
|
411
|
+
const pe = u(() => !o.googleMapId);
|
|
412
|
+
return be("slMapInstance", {
|
|
413
|
+
getMap: M,
|
|
414
|
+
isDark: n,
|
|
415
|
+
useLegacyMarkers: pe
|
|
416
|
+
}), L({
|
|
417
|
+
getMap: M,
|
|
418
|
+
panTo: T,
|
|
403
419
|
panBy: (e, t) => {
|
|
404
|
-
const d =
|
|
420
|
+
const d = M();
|
|
405
421
|
d && d.panBy(e, t);
|
|
406
422
|
},
|
|
407
|
-
setZoom:
|
|
408
|
-
getZoom: () =>
|
|
409
|
-
setCenter:
|
|
423
|
+
setZoom: me,
|
|
424
|
+
getZoom: () => s.value?.map?.getZoom(),
|
|
425
|
+
setCenter: T,
|
|
410
426
|
getCenter: () => {
|
|
411
|
-
const e =
|
|
427
|
+
const e = s.value?.map?.getCenter();
|
|
412
428
|
return e ? { lat: e.lat(), lng: e.lng() } : void 0;
|
|
413
429
|
},
|
|
414
430
|
getBounds: () => {
|
|
415
|
-
const e =
|
|
431
|
+
const e = s.value?.map?.getBounds();
|
|
416
432
|
if (!e) return;
|
|
417
433
|
const t = e.getNorthEast(), d = e.getSouthWest();
|
|
418
434
|
return { north: t.lat(), south: d.lat(), east: t.lng(), west: d.lng() };
|
|
419
435
|
},
|
|
420
|
-
fitBounds:
|
|
436
|
+
fitBounds: ge,
|
|
421
437
|
fitToMarkers: () => {
|
|
422
438
|
},
|
|
423
439
|
// Implemented in UiMapAll
|
|
424
|
-
reset:
|
|
440
|
+
reset: fe,
|
|
425
441
|
addMarker: () => {
|
|
426
442
|
},
|
|
427
443
|
// Implemented in UiMapAll
|
|
@@ -433,17 +449,17 @@ const Se = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3" }, Ze = { cla
|
|
|
433
449
|
},
|
|
434
450
|
getMarkers: () => [],
|
|
435
451
|
getVisibleMarkers: () => []
|
|
436
|
-
}), (e, t) => (m(),
|
|
452
|
+
}), (e, t) => (m(), h("div", {
|
|
437
453
|
class: i(["sl-map-container sl-relative", l.containerClass]),
|
|
438
|
-
style:
|
|
454
|
+
style: I(K.value)
|
|
439
455
|
}, [
|
|
440
|
-
W.value && !l.hideLoadingState ? (m(),
|
|
456
|
+
W.value && !l.hideLoadingState ? (m(), h("div", {
|
|
441
457
|
key: 0,
|
|
442
458
|
class: i(["sl-map-loading sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-z-10", [
|
|
443
459
|
a(n) ? "sl-bg-gray-900/90" : "sl-bg-gray-100/90"
|
|
444
460
|
]])
|
|
445
461
|
}, [
|
|
446
|
-
c("div",
|
|
462
|
+
c("div", Te, [
|
|
447
463
|
c("div", {
|
|
448
464
|
class: i(["sl-animate-spin sl-rounded-full sl-h-10 sl-w-10 sl-border-3 sl-border-t-transparent", a(n) ? "sl-border-primary-400" : "sl-border-primary-600"])
|
|
449
465
|
}, null, 2),
|
|
@@ -452,14 +468,14 @@ const Se = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3" }, Ze = { cla
|
|
|
452
468
|
}, w(l.loadingText), 3)
|
|
453
469
|
])
|
|
454
470
|
], 2)) : g("", !0),
|
|
455
|
-
f.value && !l.hideErrorState ? (m(),
|
|
471
|
+
f.value && !l.hideErrorState ? (m(), h("div", {
|
|
456
472
|
key: 1,
|
|
457
473
|
class: i(["sl-map-error sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-z-20 sl-p-4", [
|
|
458
474
|
a(n) ? "sl-bg-red-900/20" : "sl-bg-red-50"
|
|
459
475
|
]])
|
|
460
476
|
}, [
|
|
461
|
-
c("div",
|
|
462
|
-
|
|
477
|
+
c("div", Ie, [
|
|
478
|
+
C(a(xe), {
|
|
463
479
|
class: i(["sl-h-12 sl-w-12", a(n) ? "sl-text-red-400" : "sl-text-red-500"])
|
|
464
480
|
}, null, 8, ["class"]),
|
|
465
481
|
c("div", null, [
|
|
@@ -469,9 +485,9 @@ const Se = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3" }, Ze = { cla
|
|
|
469
485
|
c("p", {
|
|
470
486
|
class: i(["sl-text-sm sl-mb-4", a(n) ? "sl-text-red-400" : "sl-text-red-600"])
|
|
471
487
|
}, w(f.value), 3),
|
|
472
|
-
l.showRetry ? (m(),
|
|
488
|
+
l.showRetry ? (m(), h("button", {
|
|
473
489
|
key: 0,
|
|
474
|
-
onClick:
|
|
490
|
+
onClick: de,
|
|
475
491
|
class: i(["sl-px-4 sl-py-2 sl-text-sm sl-font-medium sl-rounded-lg sl-transition-colors", [
|
|
476
492
|
a(n) ? "sl-bg-red-600 sl-text-white hover:sl-bg-red-500" : "sl-bg-red-600 sl-text-white hover:sl-bg-red-700"
|
|
477
493
|
]])
|
|
@@ -479,15 +495,15 @@ const Se = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3" }, Ze = { cla
|
|
|
479
495
|
])
|
|
480
496
|
])
|
|
481
497
|
], 2)) : g("", !0),
|
|
482
|
-
l.showAddressUnavailable ? (m(),
|
|
498
|
+
l.showAddressUnavailable ? (m(), h("div", {
|
|
483
499
|
key: 2,
|
|
484
500
|
class: i(["sl-map-unavailable sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-z-10", [
|
|
485
501
|
a(n) ? "sl-bg-gray-800" : "sl-bg-gray-100"
|
|
486
502
|
]])
|
|
487
503
|
}, [
|
|
488
|
-
|
|
489
|
-
c("div",
|
|
490
|
-
|
|
504
|
+
k(e.$slots, "address-unavailable", {}, () => [
|
|
505
|
+
c("div", Le, [
|
|
506
|
+
C(a(Me), {
|
|
491
507
|
class: i(["sl-h-12 sl-w-12 sl-mx-auto sl-mb-3", a(n) ? "sl-text-gray-600" : "sl-text-gray-400"])
|
|
492
508
|
}, null, 8, ["class"]),
|
|
493
509
|
c("p", {
|
|
@@ -496,15 +512,16 @@ const Se = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3" }, Ze = { cla
|
|
|
496
512
|
])
|
|
497
513
|
], !0)
|
|
498
514
|
], 2)) : g("", !0),
|
|
499
|
-
a(
|
|
515
|
+
a(B) && !f.value ? (m(), ke(a(P), {
|
|
500
516
|
key: 3,
|
|
501
|
-
id:
|
|
517
|
+
id: F.value,
|
|
518
|
+
"map-id": o.googleMapId || void 0,
|
|
502
519
|
ref_key: "googleMapRef",
|
|
503
|
-
ref:
|
|
504
|
-
"api-promise":
|
|
520
|
+
ref: s,
|
|
521
|
+
"api-promise": q.value ?? void 0,
|
|
505
522
|
center: z.value,
|
|
506
|
-
zoom:
|
|
507
|
-
styles:
|
|
523
|
+
zoom: Z.value,
|
|
524
|
+
styles: G.value,
|
|
508
525
|
"map-type-id": l.mapTypeId,
|
|
509
526
|
"disable-default-ui": l.disableDefaultUi,
|
|
510
527
|
"zoom-control": l.zoomControl,
|
|
@@ -525,67 +542,67 @@ const Se = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3" }, Ze = { cla
|
|
|
525
542
|
heading: l.heading,
|
|
526
543
|
restriction: l.restriction,
|
|
527
544
|
class: i(["sl-w-full sl-h-full", l.mapClass]),
|
|
528
|
-
style:
|
|
529
|
-
onClick:
|
|
530
|
-
onDblclick:
|
|
531
|
-
onRightclick:
|
|
532
|
-
onCenter_changed:
|
|
533
|
-
onZoom_changed:
|
|
534
|
-
onBounds_changed:
|
|
535
|
-
onMaptypeid_changed:
|
|
536
|
-
onIdle:
|
|
537
|
-
onDragstart:
|
|
538
|
-
onDrag:
|
|
539
|
-
onDragend:
|
|
540
|
-
onTilt_changed:
|
|
541
|
-
onHeading_changed:
|
|
545
|
+
style: I(l.mapStyle),
|
|
546
|
+
onClick: Q,
|
|
547
|
+
onDblclick: X,
|
|
548
|
+
onRightclick: Y,
|
|
549
|
+
onCenter_changed: _,
|
|
550
|
+
onZoom_changed: ee,
|
|
551
|
+
onBounds_changed: te,
|
|
552
|
+
onMaptypeid_changed: le,
|
|
553
|
+
onIdle: ae,
|
|
554
|
+
onDragstart: oe,
|
|
555
|
+
onDrag: se,
|
|
556
|
+
onDragend: ne,
|
|
557
|
+
onTilt_changed: re,
|
|
558
|
+
onHeading_changed: ie
|
|
542
559
|
}, {
|
|
543
|
-
default:
|
|
544
|
-
d &&
|
|
560
|
+
default: Ce(({ ready: d, map: y }) => [
|
|
561
|
+
d && y ? k(e.$slots, "default", {
|
|
545
562
|
key: 0,
|
|
546
|
-
map:
|
|
563
|
+
map: y,
|
|
547
564
|
ready: d,
|
|
548
565
|
isDark: a(n)
|
|
549
566
|
}, void 0, !0) : g("", !0)
|
|
550
567
|
]),
|
|
551
568
|
_: 3
|
|
552
|
-
}, 8, ["id", "api-promise", "center", "zoom", "styles", "map-type-id", "disable-default-ui", "zoom-control", "map-type-control", "street-view-control", "fullscreen-control", "scale-control", "rotate-control", "clickable-icons", "gesture-handling", "keyboard-shortcuts", "scrollwheel", "disable-double-click-zoom", "draggable", "min-zoom", "max-zoom", "tilt", "heading", "restriction", "class", "style"])) : g("", !0),
|
|
553
|
-
l.showCustomControls && a(
|
|
569
|
+
}, 8, ["id", "map-id", "api-promise", "center", "zoom", "styles", "map-type-id", "disable-default-ui", "zoom-control", "map-type-control", "street-view-control", "fullscreen-control", "scale-control", "rotate-control", "clickable-icons", "gesture-handling", "keyboard-shortcuts", "scrollwheel", "disable-double-click-zoom", "draggable", "min-zoom", "max-zoom", "tilt", "heading", "restriction", "class", "style"])) : g("", !0),
|
|
570
|
+
l.showCustomControls && a(B) ? (m(), h("div", {
|
|
554
571
|
key: 4,
|
|
555
|
-
class: i(["sl-map-controls sl-absolute sl-z-10",
|
|
572
|
+
class: i(["sl-map-controls sl-absolute sl-z-10", J.value])
|
|
556
573
|
}, [
|
|
557
|
-
|
|
558
|
-
l.showDefaultZoomControls ? (m(),
|
|
574
|
+
k(e.$slots, "controls", { isDark: a(n) }, () => [
|
|
575
|
+
l.showDefaultZoomControls ? (m(), h("div", {
|
|
559
576
|
key: 0,
|
|
560
577
|
class: i(["sl-flex sl-flex-col sl-rounded-lg sl-shadow-md sl-overflow-hidden", a(n) ? "sl-bg-gray-800" : "sl-bg-white"])
|
|
561
578
|
}, [
|
|
562
579
|
c("button", {
|
|
563
|
-
onClick:
|
|
580
|
+
onClick: ce,
|
|
564
581
|
class: i(["sl-w-8 sl-h-8 sl-flex sl-items-center sl-justify-center sl-border-b sl-transition-colors", [
|
|
565
582
|
a(n) ? "sl-border-gray-700 hover:sl-bg-gray-700" : "sl-border-gray-200 hover:sl-bg-gray-50"
|
|
566
583
|
]]),
|
|
567
584
|
title: "Zoom in"
|
|
568
585
|
}, [
|
|
569
|
-
|
|
586
|
+
C(a(we), {
|
|
570
587
|
class: i(["sl-w-4 sl-h-4", a(n) ? "sl-text-gray-300" : "sl-text-gray-600"])
|
|
571
588
|
}, null, 8, ["class"])
|
|
572
589
|
], 2),
|
|
573
590
|
c("button", {
|
|
574
|
-
onClick:
|
|
591
|
+
onClick: ue,
|
|
575
592
|
class: i(["sl-w-8 sl-h-8 sl-flex sl-items-center sl-justify-center sl-transition-colors", a(n) ? "hover:sl-bg-gray-700" : "hover:sl-bg-gray-50"]),
|
|
576
593
|
title: "Zoom out"
|
|
577
594
|
}, [
|
|
578
|
-
|
|
595
|
+
C(a(Be), {
|
|
579
596
|
class: i(["sl-w-4 sl-h-4", a(n) ? "sl-text-gray-300" : "sl-text-gray-600"])
|
|
580
597
|
}, null, 8, ["class"])
|
|
581
598
|
], 2)
|
|
582
599
|
], 2)) : g("", !0)
|
|
583
600
|
], !0)
|
|
584
601
|
], 2)) : g("", !0),
|
|
585
|
-
|
|
602
|
+
k(e.$slots, "overlay", { isDark: a(n) }, void 0, !0)
|
|
586
603
|
], 6));
|
|
587
604
|
}
|
|
588
|
-
}),
|
|
605
|
+
}), je = /* @__PURE__ */ Ze(De, [["__scopeId", "data-v-83060ba6"]]);
|
|
589
606
|
export {
|
|
590
|
-
|
|
607
|
+
je as default
|
|
591
608
|
};
|
package/dist/maps/UiMapAll.js
CHANGED