@eodash/eodash 5.0.0-alpha.2.17 → 5.0.0-alpha.2.19

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 (40) hide show
  1. package/core/client/App.vue +2 -0
  2. package/core/client/composables/EodashMap.js +139 -100
  3. package/core/client/eodash.js +32 -12
  4. package/core/client/plugins/index.js +2 -1
  5. package/core/client/store/Actions.js +6 -0
  6. package/core/client/utils/createLayers.js +32 -11
  7. package/core/client/utils/eodashSTAC.js +22 -5
  8. package/core/client/utils/helpers.js +19 -14
  9. package/core/client/vite-env.d.ts +1 -0
  10. package/dist/client/{DashboardLayout-BR1lU9ER.js → DashboardLayout-CU4js3lr.js} +2 -2
  11. package/dist/client/{DynamicWebComponent-7z8VFsrZ.js → DynamicWebComponent-BsYZdIEB.js} +2 -2
  12. package/dist/client/EodashDatePicker-DZoH_gRX.js +276 -0
  13. package/dist/client/{EodashItemFilter-lNjVkidr.js → EodashItemFilter-CHBfsFSm.js} +1362 -1347
  14. package/dist/client/{EodashLayerControl-B0N8_XmX.js → EodashLayerControl-CuY-cAx8.js} +4773 -4593
  15. package/dist/client/{EodashMap-DFT2R2Rk.js → EodashMap-Ch43fWNv.js} +21032 -20669
  16. package/dist/client/{EodashMapBtns-CoGjVl8Y.js → EodashMapBtns-CFA2uti4.js} +2 -2
  17. package/dist/client/{ExportState-Dwv37MRw.js → ExportState-C6raDjTt.js} +68 -69
  18. package/dist/client/{Footer-DuScuHSx.js → Footer-D8T5ROhF.js} +1 -1
  19. package/dist/client/{Header-C4Y0u0E5.js → Header-B8B4Z5R9.js} +4 -4
  20. package/dist/client/{IframeWrapper-D1TfK4xH.js → IframeWrapper-BK2JxzSJ.js} +1 -1
  21. package/dist/client/{MobileLayout-C-b8DIFO.js → MobileLayout-aZaYvF8V.js} +51 -51
  22. package/dist/client/{PopUp-DBMZX3l3.js → PopUp-DdHXoNOP.js} +42 -42
  23. package/dist/client/{VImg-bAMQHnMM.js → VImg-yb8O1cb8.js} +2 -2
  24. package/dist/client/{VMain-Df5VMG9r.js → VMain-Dknnyxts.js} +2 -2
  25. package/dist/client/{VOverlay-D5GzAYRY.js → VOverlay-BCOn3hd6.js} +64 -64
  26. package/dist/client/{WidgetsContainer-yZDmY6_u.js → WidgetsContainer-BixUyr1e.js} +3 -3
  27. package/dist/client/{asWebComponent-DhR2_xlP.js → asWebComponent-CHqY8A1z.js} +7231 -7087
  28. package/dist/client/eo-dash.js +1 -1
  29. package/dist/client/{forwardRefs-C0MQxvur.js → forwardRefs-dcYA2XVU.js} +1 -1
  30. package/dist/client/{index-qNWeBhRh.js → index-BVuSHaVu.js} +23 -23
  31. package/dist/client/{lerc-B4lXefGh-CsL-d8wY.js → lerc-BPVtQnt3-08GHszVp.js} +1 -1
  32. package/dist/client/{ssrBoot-Xmkz8T49.js → ssrBoot-DU2S_nLc.js} +1 -1
  33. package/dist/client/style.css +1 -1
  34. package/dist/client/{transition-DRzZPWIN.js → transition-C_fi1aa6.js} +1 -1
  35. package/dist/client/{webfontloader-CqD-lAx-.js → webfontloader-Ofarvipf.js} +1 -1
  36. package/package.json +6 -7
  37. package/widgets/EodashDatePicker.vue +24 -12
  38. package/widgets/EodashLayerControl.vue +23 -4
  39. package/widgets/EodashMap.vue +43 -25
  40. package/dist/client/EodashDatePicker-o7ZOYIHL.js +0 -259
@@ -1,9 +1,9 @@
1
- import { k as Ie, p as R, o as Pe, m as Xe, g as $, u as Ye, r as I, c as y, a as M, V as G, b as v, F as O, d as z, e as re, f as ce, h as Ge, i as De, j as pe, l as Ue, n as Be, s as E, w as Ee, q as je, t as q, v as Ne, x as de, y as ze, z as qe, A as Ke, B as ie, C as ue, D as Qe, I as fe, E as Je, G as Ze, H as et, J as me, K as tt, L as he, M as ge, N as nt, O as ot, P as st, Q as lt, R as W, S as at, T as it, _ as ut, U as rt, W as ct, X as be, Y as dt, Z as vt, $ as C, a0 as A, a1 as F, a2 as ye, a3 as X, a4 as Se, a5 as ae, a6 as Y, a7 as we, a8 as xe, a9 as ft, aa as mt } from "./asWebComponent-DhR2_xlP.js";
2
- import { f as ht, a as gt, s as bt, m as yt, u as St, b as wt } from "./forwardRefs-C0MQxvur.js";
3
- import { u as xt } from "./ssrBoot-Xmkz8T49.js";
4
- import { M as kt } from "./transition-DRzZPWIN.js";
5
- import { V as ke } from "./index-qNWeBhRh.js";
6
- import { V as Tt } from "./VMain-Df5VMG9r.js";
1
+ import { k as Ie, p as R, o as Pe, m as Xe, g as M, u as Ye, r as I, c as y, a as $, V as G, b as v, F as O, d as z, e as re, f as ce, h as Ge, i as De, j as pe, l as Ue, n as Be, s as E, w as Ee, q as je, t as q, v as Ne, x as de, y as ze, z as qe, A as Ke, B as ie, C as ue, D as Qe, I as fe, E as Je, G as Ze, H as et, J as me, K as tt, L as he, M as ge, N as nt, O as ot, P as st, Q as lt, R as W, S as at, T as it, _ as ut, U as rt, W as ct, X as be, Y as dt, Z as vt, $ as C, a0 as A, a1 as F, a2 as ye, a3 as X, a4 as Se, a5 as ae, a6 as Y, a7 as we, a8 as xe, a9 as ft, aa as mt } from "./asWebComponent-CHqY8A1z.js";
2
+ import { f as ht, a as gt, s as bt, m as yt, u as St, b as wt } from "./forwardRefs-dcYA2XVU.js";
3
+ import { u as xt } from "./ssrBoot-DU2S_nLc.js";
4
+ import { M as kt } from "./transition-C_fi1aa6.js";
5
+ import { V as ke } from "./index-BVuSHaVu.js";
6
+ import { V as Tt } from "./VMain-Dknnyxts.js";
7
7
  const Vt = (e) => {
8
8
  const {
9
9
  touchstartX: n,
@@ -80,7 +80,7 @@ function Bt(e, n) {
80
80
  const We = {
81
81
  mounted: pt,
82
82
  unmounted: Bt
83
- }, Et = We, ve = Symbol.for("vuetify:v-tabs"), zt = R({
83
+ }, ve = Symbol.for("vuetify:v-tabs"), Et = R({
84
84
  fixed: Boolean,
85
85
  sliderColor: String,
86
86
  hideSlider: Boolean,
@@ -92,9 +92,9 @@ const We = {
92
92
  selectedClass: "v-tab--selected",
93
93
  variant: "text"
94
94
  }), ["active", "block", "flat", "location", "position", "symbol"])
95
- }, "VTab"), Re = $()({
95
+ }, "VTab"), Re = M()({
96
96
  name: "VTab",
97
- props: zt(),
97
+ props: Et(),
98
98
  setup(e, n) {
99
99
  let {
100
100
  slots: s,
@@ -122,7 +122,7 @@ const We = {
122
122
  });
123
123
  }
124
124
  }
125
- return M(() => {
125
+ return $(() => {
126
126
  const m = G.filterProps(e);
127
127
  return v(G, z({
128
128
  symbol: ve,
@@ -147,7 +147,7 @@ const We = {
147
147
  });
148
148
  }), ht({}, o);
149
149
  }
150
- }), $e = Symbol.for("vuetify:v-window"), Me = Symbol.for("vuetify:v-window-group"), He = R({
150
+ }), Me = Symbol.for("vuetify:v-window"), $e = Symbol.for("vuetify:v-window-group"), He = R({
151
151
  continuous: Boolean,
152
152
  nextIcon: {
153
153
  type: [Boolean, String, Function, Object],
@@ -184,7 +184,7 @@ const We = {
184
184
  ...re(),
185
185
  ...ce(),
186
186
  ...Ge()
187
- }, "VWindow"), Te = $()({
187
+ }, "VWindow"), Te = M()({
188
188
  name: "VWindow",
189
189
  directives: {
190
190
  Touch: We
@@ -203,14 +203,14 @@ const We = {
203
203
  isRtl: l
204
204
  } = pe(), {
205
205
  t: u
206
- } = Ue(), o = Be(e, Me), f = I(), r = y(() => l.value ? !e.reverse : e.reverse), h = E(!1), x = y(() => {
206
+ } = Ue(), o = Be(e, $e), f = I(), r = y(() => l.value ? !e.reverse : e.reverse), h = E(!1), x = y(() => {
207
207
  const b = e.direction === "vertical" ? "y" : "x", k = (r.value ? !h.value : h.value) ? "-reverse" : "";
208
208
  return `v-window-${b}${k}-transition`;
209
209
  }), m = E(0), a = I(void 0), g = y(() => o.items.value.findIndex((b) => o.selected.value.includes(b.id)));
210
210
  Ee(g, (b, S) => {
211
211
  const k = o.items.value.length, H = k - 1;
212
212
  k <= 2 ? h.value = b < S : b === H && S === 0 ? h.value = !0 : b === 0 && S === H ? h.value = !1 : h.value = b < S;
213
- }), je($e, {
213
+ }), je(Me, {
214
214
  transition: x,
215
215
  isReversed: h,
216
216
  transitionCount: m,
@@ -260,7 +260,7 @@ const We = {
260
260
  },
261
261
  ...e.touch === !0 ? {} : e.touch
262
262
  });
263
- return M(() => q(v(e.tag, {
263
+ return $(() => q(v(e.tag, {
264
264
  ref: f,
265
265
  class: ["v-window", {
266
266
  "v-window--show-arrows-on-hover": e.showArrows === "hover"
@@ -283,11 +283,11 @@ const We = {
283
283
  group: o
284
284
  };
285
285
  }
286
- }), Wt = R({
286
+ }), zt = R({
287
287
  ...Pe(He(), ["continuous", "nextIcon", "prevIcon", "showArrows", "touch", "mandatory"])
288
- }, "VTabsWindow"), Rt = $()({
288
+ }, "VTabsWindow"), Wt = M()({
289
289
  name: "VTabsWindow",
290
- props: Wt(),
290
+ props: zt(),
291
291
  emits: {
292
292
  "update:modelValue": (e) => !0
293
293
  },
@@ -303,7 +303,7 @@ const We = {
303
303
  l.value = o;
304
304
  }
305
305
  });
306
- return M(() => {
306
+ return $(() => {
307
307
  const o = Te.filterProps(e);
308
308
  return v(Te, z({
309
309
  _as: "VTabsWindow"
@@ -329,10 +329,10 @@ const We = {
329
329
  ...re(),
330
330
  ...qe(),
331
331
  ...yt()
332
- }, "VWindowItem"), Ve = $()({
332
+ }, "VWindowItem"), Ve = M()({
333
333
  name: "VWindowItem",
334
334
  directives: {
335
- Touch: Et
335
+ Touch: We
336
336
  },
337
337
  props: Ae(),
338
338
  emits: {
@@ -342,7 +342,7 @@ const We = {
342
342
  let {
343
343
  slots: s
344
344
  } = n;
345
- const t = de($e), l = Ke(e, Me), {
345
+ const t = de(Me), l = Ke(e, $e), {
346
346
  isBooted: u
347
347
  } = xt();
348
348
  if (!t || !l) throw new Error("[Vuetify] VWindowItem must be used inside VWindow");
@@ -376,7 +376,7 @@ const We = {
376
376
  }), {
377
377
  hasContent: g
378
378
  } = St(e, l.isSelected);
379
- return M(() => v(kt, {
379
+ return $(() => v(kt, {
380
380
  transition: a.value,
381
381
  disabled: !u.value
382
382
  }, {
@@ -388,16 +388,16 @@ const We = {
388
388
  groupItem: l
389
389
  };
390
390
  }
391
- }), $t = R({
391
+ }), Rt = R({
392
392
  ...Ae()
393
- }, "VTabsWindowItem"), Mt = $()({
393
+ }, "VTabsWindowItem"), Mt = M()({
394
394
  name: "VTabsWindowItem",
395
- props: $t(),
395
+ props: Rt(),
396
396
  setup(e, n) {
397
397
  let {
398
398
  slots: s
399
399
  } = n;
400
- return M(() => {
400
+ return $(() => {
401
401
  const t = Ve.filterProps(e);
402
402
  return v(Ve, z({
403
403
  _as: "VTabsWindowItem"
@@ -408,7 +408,7 @@ const We = {
408
408
  }), {};
409
409
  }
410
410
  });
411
- function Ht(e) {
411
+ function $t(e) {
412
412
  let {
413
413
  selectedElement: n,
414
414
  containerElement: s,
@@ -418,7 +418,7 @@ function Ht(e) {
418
418
  const u = D(l, s), o = Fe(l, t, s), f = D(l, n), r = Oe(l, n), h = f * 0.4;
419
419
  return o > r ? r - h : o + u < r + f ? r - u + f + h : o;
420
420
  }
421
- function At(e) {
421
+ function Ht(e) {
422
422
  let {
423
423
  selectedElement: n,
424
424
  containerElement: s,
@@ -430,7 +430,7 @@ function At(e) {
430
430
  function Ce(e, n) {
431
431
  return n?.[e ? "scrollWidth" : "scrollHeight"] || 0;
432
432
  }
433
- function Ft(e, n) {
433
+ function At(e, n) {
434
434
  return n?.[e ? "clientWidth" : "clientHeight"] || 0;
435
435
  }
436
436
  function Fe(e, n, s) {
@@ -449,7 +449,7 @@ function D(e, n) {
449
449
  function Oe(e, n) {
450
450
  return n?.[e ? "offsetLeft" : "offsetTop"] || 0;
451
451
  }
452
- const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
452
+ const Ft = Symbol.for("vuetify:v-slide-group"), Le = R({
453
453
  centerActive: Boolean,
454
454
  direction: {
455
455
  type: String,
@@ -457,7 +457,7 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
457
457
  },
458
458
  symbol: {
459
459
  type: null,
460
- default: Ot
460
+ default: Ft
461
461
  },
462
462
  nextIcon: {
463
463
  type: fe,
@@ -479,7 +479,7 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
479
479
  ...Ze({
480
480
  selectedClass: "v-slide-group-item--active"
481
481
  })
482
- }, "VSlideGroup"), _e = $()({
482
+ }, "VSlideGroup"), _e = M()({
483
483
  name: "VSlideGroup",
484
484
  props: Le(),
485
485
  emits: {
@@ -523,11 +523,11 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
523
523
  const b = E(!1);
524
524
  function S(i, c) {
525
525
  let w = 0;
526
- c ? w = At({
526
+ c ? w = Ht({
527
527
  containerElement: a.el,
528
528
  isHorizontal: m.value,
529
529
  selectedElement: i
530
- }) : w = Ht({
530
+ }) : w = $t({
531
531
  containerElement: a.el,
532
532
  isHorizontal: m.value,
533
533
  isRtl: t.value,
@@ -629,10 +629,10 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
629
629
  }
630
630
  }), te = y(() => Math.abs(r.value) > 1), ne = y(() => {
631
631
  if (!a.value) return !1;
632
- const i = Ce(m.value, a.el), c = Ft(m.value, a.el);
632
+ const i = Ce(m.value, a.el), c = At(m.value, a.el);
633
633
  return i - c - Math.abs(r.value) > 1;
634
634
  });
635
- return M(() => v(e.tag, {
635
+ return $(() => v(e.tag, {
636
636
  class: ["v-slide-group", {
637
637
  "v-slide-group--vertical": !m.value,
638
638
  "v-slide-group--has-affixes": ee.value,
@@ -686,13 +686,13 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
686
686
  };
687
687
  }
688
688
  });
689
- function Lt(e) {
689
+ function Ot(e) {
690
690
  return e ? e.map((n) => it(n) ? n : {
691
691
  text: n,
692
692
  value: n
693
693
  }) : [];
694
694
  }
695
- const Xt = R({
695
+ const Lt = R({
696
696
  alignTabs: {
697
697
  type: String,
698
698
  default: "start"
@@ -718,9 +718,9 @@ const Xt = R({
718
718
  }),
719
719
  ...ot(),
720
720
  ...ce()
721
- }, "VTabs"), Yt = $()({
721
+ }, "VTabs"), Xt = M()({
722
722
  name: "VTabs",
723
- props: Xt(),
723
+ props: Lt(),
724
724
  emits: {
725
725
  "update:modelValue": (e) => !0
726
726
  },
@@ -729,7 +729,7 @@ const Xt = R({
729
729
  attrs: s,
730
730
  slots: t
731
731
  } = n;
732
- const l = ze(e, "modelValue"), u = y(() => Lt(e.items)), {
732
+ const l = ze(e, "modelValue"), u = y(() => Ot(e.items)), {
733
733
  densityClasses: o
734
734
  } = st(e), {
735
735
  backgroundColorClasses: f,
@@ -746,7 +746,7 @@ const Xt = R({
746
746
  sliderColor: W(e, "sliderColor"),
747
747
  hideSlider: W(e, "hideSlider")
748
748
  }
749
- }), M(() => {
749
+ }), $(() => {
750
750
  const x = _e.filterProps(e), m = !!(t.window || e.items.length > 0);
751
751
  return v(O, null, [v(_e, z(x, {
752
752
  modelValue: l.value,
@@ -772,7 +772,7 @@ const Xt = R({
772
772
  item: a
773
773
  }) : void 0
774
774
  }))]
775
- }), m && v(Rt, z({
775
+ }), m && v(Wt, z({
776
776
  modelValue: l.value,
777
777
  "onUpdate:modelValue": (a) => l.value = a,
778
778
  key: "tabs-window"
@@ -789,11 +789,11 @@ const Xt = R({
789
789
  })]);
790
790
  }), {};
791
791
  }
792
- }), Gt = {
792
+ }), Yt = {
793
793
  key: 0,
794
794
  id: "overlay",
795
795
  class: "pa-2 panel bg-surface"
796
- }, Dt = { class: "component-container" }, Ut = {
796
+ }, Gt = { class: "component-container" }, Dt = {
797
797
  __name: "MobileLayout",
798
798
  setup(e) {
799
799
  rt((m) => ({
@@ -834,7 +834,7 @@ const Xt = R({
834
834
  [
835
835
  g.value.component ? q((C(), Y(
836
836
  "div",
837
- Gt,
837
+ Yt,
838
838
  [
839
839
  v(G, {
840
840
  icon: "",
@@ -855,7 +855,7 @@ const Xt = R({
855
855
  default: F(() => [
856
856
  q(ft(
857
857
  "div",
858
- Dt,
858
+ Gt,
859
859
  [
860
860
  (C(), A(
861
861
  Se(g.value.component),
@@ -893,7 +893,7 @@ const Xt = R({
893
893
  128
894
894
  /* KEYED_FRAGMENT */
895
895
  )),
896
- v(Yt, {
896
+ v(Xt, {
897
897
  ref_key: "tabs",
898
898
  ref: f,
899
899
  "align-tabs": "center",
@@ -941,7 +941,7 @@ const Xt = R({
941
941
  /* STABLE */
942
942
  }));
943
943
  }
944
- }, Zt = /* @__PURE__ */ ut(Ut, [["__scopeId", "data-v-e69b9875"]]);
944
+ }, Jt = /* @__PURE__ */ ut(Dt, [["__scopeId", "data-v-e69b9875"]]);
945
945
  export {
946
- Zt as default
946
+ Jt as default
947
947
  };
@@ -1,9 +1,9 @@
1
- import { g as E, b as p, d as h, ab as w, p as V, y as R, r as O, L as q, w as x, a as T, D as M, ak as I, N, ae as W, e as j, ac as U, af as X, b4 as Y, b5 as z, ag as H, f as Q, h as G, i as J, Q as K, R as Z, ah as _, ad as ee, ai as te, b9 as ae, ba as oe, aj as se, bd as ne, be as re, X as ie, $ as P, a6 as k, a1 as S, a0 as le, a3 as b, a4 as ce, a5 as C, bq as ue } from "./asWebComponent-DhR2_xlP.js";
2
- import { m as de, V as B } from "./VOverlay-D5GzAYRY.js";
3
- import { a as y, d as me, s as D, c as fe, g as ge, n as ve, b as pe, f as he } from "./forwardRefs-C0MQxvur.js";
1
+ import { g as E, b as p, d as h, ab as w, p as V, y as R, r as O, L as M, w as x, a as T, D as q, ak as I, N, ae as W, e as j, ac as U, af as X, b5 as Y, b6 as z, ag as H, f as Q, h as G, i as J, Q as K, R as Z, ah as _, ad as ee, ai as te, ba as ae, bb as oe, aj as se, be as ne, bf as re, X as ie, a6 as k, a1 as C, $ as b, a0 as le, a3 as P, a4 as ce, a5 as S, br as ue } from "./asWebComponent-CHqY8A1z.js";
2
+ import { m as de, V as B } from "./VOverlay-BCOn3hd6.js";
3
+ import { a as y, d as fe, s as D, c as me, g as ge, n as ve, b as pe, f as he } from "./forwardRefs-dcYA2XVU.js";
4
4
  const ye = V({
5
5
  target: [Object, Array]
6
- }, "v-dialog-transition"), Pe = E()({
6
+ }, "v-dialog-transition"), be = E()({
7
7
  name: "VDialogTransition",
8
8
  props: ye(),
9
9
  setup(e, i) {
@@ -20,14 +20,14 @@ const ye = V({
20
20
  x: a,
21
21
  y: l,
22
22
  sx: d,
23
- sy: m,
23
+ sy: f,
24
24
  speed: s
25
25
  } = L(e.target, t), u = y(t, [{
26
- transform: `translate(${a}px, ${l}px) scale(${d}, ${m})`,
26
+ transform: `translate(${a}px, ${l}px) scale(${d}, ${f})`,
27
27
  opacity: 0
28
28
  }, {}], {
29
29
  duration: 225 * s,
30
- easing: me
30
+ easing: fe
31
31
  });
32
32
  A(t)?.forEach((n) => {
33
33
  y(n, [{
@@ -53,15 +53,15 @@ const ye = V({
53
53
  x: a,
54
54
  y: l,
55
55
  sx: d,
56
- sy: m,
56
+ sy: f,
57
57
  speed: s
58
58
  } = L(e.target, t);
59
59
  y(t, [{}, {
60
- transform: `translate(${a}px, ${l}px) scale(${d}, ${m})`,
60
+ transform: `translate(${a}px, ${l}px) scale(${d}, ${f})`,
61
61
  opacity: 0
62
62
  }], {
63
63
  duration: 125 * s,
64
- easing: fe
64
+ easing: me
65
65
  }).finished.then(() => c()), A(t)?.forEach((n) => {
66
66
  y(n, [{}, {
67
67
  opacity: 0,
@@ -95,18 +95,18 @@ function L(e, i) {
95
95
  const o = ge(e), r = ve(i), [t, c] = getComputedStyle(i).transformOrigin.split(" ").map((F) => parseFloat(F)), [a, l] = getComputedStyle(i).getPropertyValue("--v-overlay-anchor-origin").split(" ");
96
96
  let d = o.left + o.width / 2;
97
97
  a === "left" || l === "left" ? d -= o.width / 2 : (a === "right" || l === "right") && (d += o.width / 2);
98
- let m = o.top + o.height / 2;
99
- a === "top" || l === "top" ? m -= o.height / 2 : (a === "bottom" || l === "bottom") && (m += o.height / 2);
100
- const s = o.width / r.width, u = o.height / r.height, n = Math.max(1, s, u), f = s / n || 0, v = u / n || 0, g = r.width * r.height / (window.innerWidth * window.innerHeight), $ = g > 0.12 ? Math.min(1.5, (g - 0.12) * 10 + 1) : 1;
98
+ let f = o.top + o.height / 2;
99
+ a === "top" || l === "top" ? f -= o.height / 2 : (a === "bottom" || l === "bottom") && (f += o.height / 2);
100
+ const s = o.width / r.width, u = o.height / r.height, n = Math.max(1, s, u), m = s / n || 0, v = u / n || 0, g = r.width * r.height / (window.innerWidth * window.innerHeight), $ = g > 0.12 ? Math.min(1.5, (g - 0.12) * 10 + 1) : 1;
101
101
  return {
102
102
  x: d - (t + r.left),
103
- y: m - (c + r.top),
104
- sx: f,
103
+ y: f - (c + r.top),
104
+ sx: m,
105
105
  sy: v,
106
106
  speed: $
107
107
  };
108
108
  }
109
- const be = V({
109
+ const Pe = V({
110
110
  fullscreen: Boolean,
111
111
  retainFocus: {
112
112
  type: Boolean,
@@ -117,15 +117,16 @@ const be = V({
117
117
  origin: "center center",
118
118
  scrollStrategy: "block",
119
119
  transition: {
120
- component: Pe
120
+ component: be
121
121
  },
122
122
  zIndex: 2400
123
123
  })
124
124
  }, "VDialog"), Ee = E()({
125
125
  name: "VDialog",
126
- props: be(),
126
+ props: Pe(),
127
127
  emits: {
128
128
  "update:modelValue": (e) => !0,
129
+ afterEnter: () => !0,
129
130
  afterLeave: () => !0
130
131
  },
131
132
  setup(e, i) {
@@ -142,33 +143,32 @@ const be = V({
142
143
  a.value?.globalTop && // It isn't the document or the dialog body
143
144
  ![document, a.value.contentEl].includes(n) && // It isn't inside the dialog body
144
145
  !a.value.contentEl.contains(n)) {
145
- const f = N(a.value.contentEl);
146
- if (!f.length) return;
147
- const v = f[0], g = f[f.length - 1];
146
+ const m = N(a.value.contentEl);
147
+ if (!m.length) return;
148
+ const v = m[0], g = m[m.length - 1];
148
149
  u === v ? g.focus() : v.focus();
149
150
  }
150
151
  }
151
- q && x(() => t.value && e.retainFocus, (s) => {
152
+ M && x(() => t.value && e.retainFocus, (s) => {
152
153
  s ? document.addEventListener("focusin", l) : document.removeEventListener("focusin", l);
153
154
  }, {
154
155
  immediate: !0
155
156
  });
156
157
  function d() {
157
- a.value?.contentEl && !a.value.contentEl.contains(document.activeElement) && a.value.contentEl.focus({
158
+ o("afterEnter"), a.value?.contentEl && !a.value.contentEl.contains(document.activeElement) && a.value.contentEl.focus({
158
159
  preventScroll: !0
159
160
  });
160
161
  }
161
- function m() {
162
+ function f() {
162
163
  o("afterLeave");
163
164
  }
164
165
  return x(t, async (s) => {
165
- s || (await M(), a.value.activatorEl?.focus({
166
+ s || (await q(), a.value.activatorEl?.focus({
166
167
  preventScroll: !0
167
168
  }));
168
169
  }), T(() => {
169
170
  const s = B.filterProps(e), u = h({
170
- "aria-haspopup": "dialog",
171
- "aria-expanded": String(t.value)
171
+ "aria-haspopup": "dialog"
172
172
  }, e.activatorProps), n = h({
173
173
  tabindex: -1
174
174
  }, e.contentProps);
@@ -181,17 +181,17 @@ const be = V({
181
181
  style: e.style
182
182
  }, s, {
183
183
  modelValue: t.value,
184
- "onUpdate:modelValue": (f) => t.value = f,
184
+ "onUpdate:modelValue": (m) => t.value = m,
185
185
  "aria-modal": "true",
186
186
  activatorProps: u,
187
187
  contentProps: n,
188
188
  role: "dialog",
189
189
  onAfterEnter: d,
190
- onAfterLeave: m
190
+ onAfterLeave: f
191
191
  }, c), {
192
192
  activator: r.activator,
193
193
  default: function() {
194
- for (var f = arguments.length, v = new Array(f), g = 0; g < f; g++)
194
+ for (var m = arguments.length, v = new Array(m), g = 0; g < m; g++)
195
195
  v[g] = arguments[g];
196
196
  return p(I, {
197
197
  root: "VDialog"
@@ -232,7 +232,7 @@ const be = V({
232
232
  } = ee(e), {
233
233
  elevationClasses: d
234
234
  } = te(e), {
235
- locationStyles: m
235
+ locationStyles: f
236
236
  } = ae(e), {
237
237
  positionClasses: s
238
238
  } = oe(e), {
@@ -240,7 +240,7 @@ const be = V({
240
240
  } = se(e);
241
241
  return T(() => p(e.tag, {
242
242
  class: ["v-sheet", r.value, t.value, a.value, d.value, s.value, u.value, e.class],
243
- style: [c.value, l.value, m.value, e.style]
243
+ style: [c.value, l.value, f.value, e.style]
244
244
  }, o)), {};
245
245
  }
246
246
  }), xe = { key: 1 }, Be = {
@@ -258,7 +258,7 @@ const be = V({
258
258
  emits: ["update:modelValue"],
259
259
  setup(e) {
260
260
  const i = re(e, "modelValue"), o = e, [r] = ie([o?.widget]);
261
- return (t, c) => (P(), k("span", null, [
261
+ return (t, c) => (b(), k("span", null, [
262
262
  p(Ee, {
263
263
  "max-width": "500px",
264
264
  "max-height": "500px",
@@ -269,21 +269,21 @@ const be = V({
269
269
  modelValue: i.value,
270
270
  "onUpdate:modelValue": c[0] || (c[0] = (a) => i.value = a)
271
271
  }, {
272
- default: S(() => [
272
+ default: C(() => [
273
273
  p(we, null, {
274
- default: S(() => [
275
- e.widget ? (P(), le(
276
- ce(b(r).component),
274
+ default: C(() => [
275
+ e.widget ? (b(), le(
276
+ ce(P(r).component),
277
277
  h({
278
- key: b(r).id
279
- }, b(r).props),
278
+ key: P(r).id
279
+ }, P(r).props),
280
280
  null,
281
281
  16
282
282
  /* FULL_PROPS */
283
- )) : C("v-if", !0),
284
- t.$slots.default ? (P(), k("span", xe, [
283
+ )) : S("v-if", !0),
284
+ t.$slots.default ? (b(), k("span", xe, [
285
285
  ue(t.$slots, "default")
286
- ])) : C("v-if", !0)
286
+ ])) : S("v-if", !0)
287
287
  ]),
288
288
  _: 3
289
289
  /* FORWARDED */
@@ -1,5 +1,5 @@
1
- import { bl as O, p as W, e as D, ac as G, g as $, ad as J, a as E, b as n, c as h, ag as K, Q as X, R as Y, aj as Z, bm as p, s as f, r as ee, w as C, bn as te, D as ne, an as re, t as U, v as ae, F as se, d as ie, C as le, B as oe } from "./asWebComponent-DhR2_xlP.js";
2
- import { m as ue, M as y } from "./transition-DRzZPWIN.js";
1
+ import { bm as O, p as W, e as D, ac as G, g as $, ad as J, a as E, b as n, c as h, ag as K, Q as X, R as Y, aj as Z, bn as p, s as f, r as ee, w as C, bo as te, D as ne, an as re, t as U, v as ae, F as se, d as ie, C as le, B as oe } from "./asWebComponent-CHqY8A1z.js";
2
+ import { m as ue, M as y } from "./transition-C_fi1aa6.js";
3
3
  function ce(e, s) {
4
4
  if (!O) return;
5
5
  const i = s.modifiers || {}, l = s.value, {
@@ -1,5 +1,5 @@
1
- import { p as r, e as i, ac as m, f as c, g as u, ad as d, Y as v, a as y, b as e } from "./asWebComponent-DhR2_xlP.js";
2
- import { u as f } from "./ssrBoot-Xmkz8T49.js";
1
+ import { p as r, e as i, ac as m, f as c, g as u, ad as d, Y as v, a as y, b as e } from "./asWebComponent-CHqY8A1z.js";
2
+ import { u as f } from "./ssrBoot-DU2S_nLc.js";
3
3
  const V = r({
4
4
  scrollable: Boolean,
5
5
  ...i(),