@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.
Files changed (55) hide show
  1. package/dist/NavigationItem.vue_vue_type_script_setup_true_lang-a6F3LQ_P.js +56 -0
  2. package/dist/ScreenSizeSelector.vue_vue_type_script_setup_true_lang-FINxrVod.js +183 -0
  3. package/dist/UiMapAll.vue_vue_type_script_setup_true_lang-DKcK0HmT.js +501 -0
  4. package/dist/charts/BaseChart.js +76 -56
  5. package/dist/charts/chartTheme.js +199 -60
  6. package/dist/charts/index.js +30 -27
  7. package/dist/components/Button.js +109 -89
  8. package/dist/composables/index.js +41 -32
  9. package/dist/composables/useMap.js +1 -1
  10. package/dist/index.js +2304 -1560
  11. package/dist/layouts/DashboardLayout.js +218 -2
  12. package/dist/layouts/NavigationItem.js +1 -1
  13. package/dist/maps/UiMap.js +167 -150
  14. package/dist/maps/UiMapAll.js +1 -1
  15. package/dist/maps/UiMapMarker.js +227 -118
  16. package/dist/maps/index.js +1 -1
  17. package/dist/src/components/UiProgressBar.d.ts +1 -1
  18. package/dist/src/components/UiRadialProgressBar.d.ts +1 -1
  19. package/dist/src/components/charts/chartTheme.d.ts +53 -0
  20. package/dist/src/components/formatters/DateFormatter.d.ts +1 -1
  21. package/dist/src/components/index.d.ts +1 -0
  22. package/dist/src/components/inputs/DatepickerInput.d.ts +3 -3
  23. package/dist/src/components/layouts/DashboardLayout.d.ts +80 -18
  24. package/dist/src/components/layouts/ShowcaseCard.d.ts +1 -0
  25. package/dist/src/components/layouts/UiDetailPanel.d.ts +65 -0
  26. package/dist/src/components/layouts/UiSplitPanelLayout.d.ts +96 -0
  27. package/dist/src/components/layouts/index.d.ts +2 -0
  28. package/dist/src/components/maps/UiMap.d.ts +13 -2
  29. package/dist/src/components/maps/UiMapAll.d.ts +13 -0
  30. package/dist/src/components/maps/UiMapMarker.d.ts +47 -10
  31. package/dist/src/components/modals/UiSlideOver.d.ts +104 -0
  32. package/dist/src/components/modals/index.d.ts +1 -0
  33. package/dist/src/components/palettes/UiCommandPalette.d.ts +166 -0
  34. package/dist/src/components/palettes/index.d.ts +1 -0
  35. package/dist/src/components/wrappers/BreakpointWrapper.d.ts +36 -0
  36. package/dist/src/components/wrappers/ResponsivePreviewWrapper.d.ts +85 -0
  37. package/dist/src/components/wrappers/ScreenSizeSelector.d.ts +74 -0
  38. package/dist/src/components/wrappers/index.d.ts +3 -0
  39. package/dist/src/composables/index.d.ts +1 -0
  40. package/dist/src/composables/useScreenSize.d.ts +131 -0
  41. package/dist/src/types/index.d.ts +1 -0
  42. package/dist/src/types/layouts.d.ts +42 -0
  43. package/dist/src/types/palettes.d.ts +134 -0
  44. package/dist/src/views/components/index.d.ts +2 -0
  45. package/dist/src/views/index.d.ts +5 -1
  46. package/dist/src/views/layouts/index.d.ts +3 -1
  47. package/dist/style.css +1 -1
  48. package/dist/useMap-CM59TKX6.js +318 -0
  49. package/dist/useScreenSize-Kr6cn5Zr.js +104 -0
  50. package/dist/wrappers/index.js +10 -6
  51. package/package.json +1 -1
  52. package/dist/DashboardLayout.vue_vue_type_script_setup_true_lang-BAx4gKqh.js +0 -239
  53. package/dist/NavigationItem.vue_vue_type_script_setup_true_lang-C8aX-84Q.js +0 -56
  54. package/dist/UiMapAll.vue_vue_type_script_setup_true_lang-11yT7mTH.js +0 -471
  55. package/dist/useMap-BGg0H582.js +0 -297
@@ -1,16 +1,21 @@
1
- import { defineComponent as fe, defineAsyncComponent as pe, ref as x, computed as u, watch as y, onMounted as he, provide as ye, createElementBlock as p, openBlock as m, normalizeStyle as T, normalizeClass as i, createCommentVNode as g, createBlock as be, renderSlot as b, unref as a, createElementVNode as c, toDisplayString as w, createVNode as v, withCtx as ve } from "vue";
2
- import { ExclamationCircleIcon as Ce, MapPinIcon as ke, PlusIcon as xe, MinusIcon as we } from "@heroicons/vue/24/outline";
3
- import { u as Me } from "../useMap-BGg0H582.js";
4
- import { useTheme as Be } from "../composables/useTheme.js";
5
- import { _ as ze } from "../_plugin-vue_export-helper-CHgC5LLL.js";
6
- const Se = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3" }, Ze = { class: "sl-flex sl-flex-col sl-items-center sl-gap-3 sl-text-center sl-max-w-md" }, Te = { class: "sl-text-center sl-p-6" }, De = /* @__PURE__ */ fe({
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: D, emit: I }) {
222
- const L = pe(
226
+ setup(l, { expose: L, emit: D }) {
227
+ const P = ye(
223
228
  () => import("vue3-google-map").then((e) => e.GoogleMap)
224
- ), s = l, r = I, { isDark: n } = Be(), {
229
+ ), o = l, r = D, { isDark: n } = ze(), {
225
230
  isApiLoading: E,
226
- isApiReady: M,
231
+ isApiReady: B,
227
232
  apiError: N,
228
- apiPromise: P,
229
- mapStyles: R,
233
+ apiPromise: R,
234
+ mapStyles: U,
230
235
  center: j,
231
236
  zoom: A,
232
- initializeApi: B,
233
- setMap: U,
234
- panTo: V,
235
- setZoom: H,
236
- fitBounds: O
237
- } = Me({
238
- apiKey: s.apiKey,
239
- theme: s.theme,
240
- autoTheme: s.autoTheme,
241
- lightTheme: s.lightTheme,
242
- darkTheme: s.darkTheme,
243
- customStyles: s.styles,
244
- defaultCenter: s.center,
245
- defaultZoom: s.zoom
246
- }), o = x(null), f = x(null), C = x(!1), $ = u(() => s.id), K = u(() => ({
247
- width: s.width,
248
- height: s.height
249
- })), W = u(() => E.value && !C.value), z = u(() => s.center || j.value), S = u(() => s.zoom ?? A.value), F = u(() => s.styles ? s.styles : R.value), G = u(() => P.value), q = u(() => {
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[s.controlsPosition] || e["bottom-left"];
264
+ return e[o.controlsPosition] || e["bottom-left"];
257
265
  });
258
- function J(e) {
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 Q(e) {
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 X(e) {
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 Y() {
278
- const e = o.value?.map;
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 = o.value?.map;
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 ee() {
295
- const e = o.value?.map;
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(), h = t.getSouthWest();
312
+ const d = t.getNorthEast(), y = t.getSouthWest();
300
313
  r("bounds-changed", {
301
314
  bounds: {
302
315
  north: d.lat(),
303
- south: h.lat(),
316
+ south: y.lat(),
304
317
  east: d.lng(),
305
- west: h.lng()
318
+ west: y.lng()
306
319
  }
307
320
  });
308
321
  }
309
322
  }
310
323
  }
311
- function te() {
312
- const e = o.value?.map;
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
- r("dragstart");
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
- const e = o.value?.map;
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 se() {
333
- const e = o.value?.map;
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 ne() {
340
- const e = o.value?.map;
352
+ function re() {
353
+ const e = s.value?.map;
341
354
  e && r("tilt-changed", { tilt: e.getTilt() || 0 });
342
355
  }
343
- function re() {
344
- const e = o.value?.map;
356
+ function ie() {
357
+ const e = s.value?.map;
345
358
  e && r("heading-changed", { heading: e.getHeading() || 0 });
346
359
  }
347
- function ie() {
348
- f.value = null, B().catch((e) => {
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 de() {
353
- const e = o.value?.map;
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, s.maxZoom));
369
+ e.setZoom(Math.min(t + 1, o.maxZoom));
357
370
  }
358
371
  }
359
- function ce() {
360
- const e = o.value?.map;
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, s.minZoom));
376
+ e.setZoom(Math.max(t - 1, o.minZoom));
364
377
  }
365
378
  }
366
- function k() {
367
- return o.value?.map || null;
368
- }
369
- function Z(e) {
370
- V(e);
379
+ function M() {
380
+ return s.value?.map || null;
371
381
  }
372
- function ue(e) {
382
+ function T(e) {
373
383
  H(e);
374
384
  }
375
- function me(e, t) {
376
- O(e, t);
385
+ function me(e) {
386
+ O(e);
377
387
  }
378
- function ge() {
379
- const e = o.value?.map;
380
- e && (e.setCenter(z.value), e.setZoom(S.value));
388
+ function ge(e, t) {
389
+ $(e, t);
381
390
  }
382
- return y(() => s.center, (e) => {
383
- e && o.value?.map && o.value.map.setCenter(e);
384
- }), y(() => s.zoom, (e) => {
385
- e !== void 0 && o.value?.map && o.value.map.setZoom(e);
386
- }), y(() => s.styles, (e) => {
387
- e && o.value?.map && o.value.map.setOptions({ styles: e });
388
- }), y(N, (e) => {
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
- }), he(async () => {
403
+ }), ve(async () => {
391
404
  try {
392
- await B();
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
- }), ye("slMapInstance", {
398
- getMap: k,
399
- isDark: n
400
- }), D({
401
- getMap: k,
402
- panTo: Z,
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 = k();
420
+ const d = M();
405
421
  d && d.panBy(e, t);
406
422
  },
407
- setZoom: ue,
408
- getZoom: () => o.value?.map?.getZoom(),
409
- setCenter: Z,
423
+ setZoom: me,
424
+ getZoom: () => s.value?.map?.getZoom(),
425
+ setCenter: T,
410
426
  getCenter: () => {
411
- const e = o.value?.map?.getCenter();
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 = o.value?.map?.getBounds();
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: me,
436
+ fitBounds: ge,
421
437
  fitToMarkers: () => {
422
438
  },
423
439
  // Implemented in UiMapAll
424
- reset: ge,
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(), p("div", {
452
+ }), (e, t) => (m(), h("div", {
437
453
  class: i(["sl-map-container sl-relative", l.containerClass]),
438
- style: T(K.value)
454
+ style: I(K.value)
439
455
  }, [
440
- W.value && !l.hideLoadingState ? (m(), p("div", {
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", Se, [
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(), p("div", {
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", Ze, [
462
- v(a(Ce), {
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(), p("button", {
488
+ l.showRetry ? (m(), h("button", {
473
489
  key: 0,
474
- onClick: ie,
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(), p("div", {
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
- b(e.$slots, "address-unavailable", {}, () => [
489
- c("div", Te, [
490
- v(a(ke), {
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(M) && !f.value ? (m(), be(a(L), {
515
+ a(B) && !f.value ? (m(), ke(a(P), {
500
516
  key: 3,
501
- id: $.value,
517
+ id: F.value,
518
+ "map-id": o.googleMapId || void 0,
502
519
  ref_key: "googleMapRef",
503
- ref: o,
504
- "api-promise": G.value ?? void 0,
520
+ ref: s,
521
+ "api-promise": q.value ?? void 0,
505
522
  center: z.value,
506
- zoom: S.value,
507
- styles: F.value,
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: T(l.mapStyle),
529
- onClick: J,
530
- onDblclick: Q,
531
- onRightclick: X,
532
- onCenter_changed: Y,
533
- onZoom_changed: _,
534
- onBounds_changed: ee,
535
- onMaptypeid_changed: te,
536
- onIdle: le,
537
- onDragstart: ae,
538
- onDrag: oe,
539
- onDragend: se,
540
- onTilt_changed: ne,
541
- onHeading_changed: re
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: ve(({ ready: d, map: h }) => [
544
- d && h ? b(e.$slots, "default", {
560
+ default: Ce(({ ready: d, map: y }) => [
561
+ d && y ? k(e.$slots, "default", {
545
562
  key: 0,
546
- map: h,
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(M) ? (m(), p("div", {
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", q.value])
572
+ class: i(["sl-map-controls sl-absolute sl-z-10", J.value])
556
573
  }, [
557
- b(e.$slots, "controls", { isDark: a(n) }, () => [
558
- l.showDefaultZoomControls ? (m(), p("div", {
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: de,
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
- v(a(xe), {
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: ce,
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
- v(a(we), {
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
- b(e.$slots, "overlay", { isDark: a(n) }, void 0, !0)
602
+ k(e.$slots, "overlay", { isDark: a(n) }, void 0, !0)
586
603
  ], 6));
587
604
  }
588
- }), Re = /* @__PURE__ */ ze(De, [["__scopeId", "data-v-995d02bd"]]);
605
+ }), je = /* @__PURE__ */ Ze(De, [["__scopeId", "data-v-83060ba6"]]);
589
606
  export {
590
- Re as default
607
+ je as default
591
608
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../UiMapAll.vue_vue_type_script_setup_true_lang-11yT7mTH.js";
1
+ import { _ as f } from "../UiMapAll.vue_vue_type_script_setup_true_lang-DKcK0HmT.js";
2
2
  export {
3
3
  f as default
4
4
  };