@eodash/eodash 5.0.0-alpha.2.6 → 5.0.0-alpha.2.8

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 (44) hide show
  1. package/core/client/components/DashboardLayout.vue +1 -2
  2. package/core/client/components/MobileLayout.vue +1 -2
  3. package/core/client/composables/DefineWidgets.js +1 -1
  4. package/core/client/composables/index.js +12 -0
  5. package/core/client/eodash.js +15 -2
  6. package/core/client/store/Actions.js +14 -0
  7. package/core/client/types.d.ts +6 -1
  8. package/core/client/utils/index.js +12 -0
  9. package/dist/client/{DashboardLayout-BuDcv6LM.js → DashboardLayout-CKOExc7r.js} +4 -4
  10. package/dist/client/{DynamicWebComponent-BEP4rVce.js → DynamicWebComponent-m1Zbbw6n.js} +4 -4
  11. package/dist/client/EodashDatePicker-CGdJRGZJ.js +252 -0
  12. package/dist/client/{EodashItemFilter-BElmgrST.js → EodashItemFilter-BjM_LHaE.js} +2 -2
  13. package/dist/client/EodashMap-61UMC8sv.js +86917 -0
  14. package/dist/client/EodashMapBtns-DVITfAFx.js +36 -0
  15. package/dist/client/ExportState-DhpK09GR.js +558 -0
  16. package/dist/client/{Footer-CoPx6UXQ.js → Footer-CIwjaddz.js} +11 -11
  17. package/dist/client/Header-BcM-pZFi.js +350 -0
  18. package/dist/client/{IframeWrapper-2w2ye0zM.js → IframeWrapper-CAe6HPqe.js} +1 -1
  19. package/dist/client/{MobileLayout-C9OVcP12.js → MobileLayout-DcZOQX8r.js} +11 -11
  20. package/dist/client/PopUp-DCaITceG.js +300 -0
  21. package/dist/client/VImg-C-I_7puM.js +291 -0
  22. package/dist/client/{VMain-Dm43jd43.js → VMain-Cd3P0YTG.js} +2 -2
  23. package/dist/client/VOverlay-AcvFgk39.js +967 -0
  24. package/dist/client/{WidgetsContainer-BS87sLqk.js → WidgetsContainer-B0-q0EMO.js} +1 -1
  25. package/dist/client/{asWebComponent-CpQUVi2N.js → asWebComponent-zuKR9I1w.js} +5939 -5713
  26. package/dist/client/{decoder-CP4lv0Kb-BHrv68IA.js → decoder-CP4lv0Kb-DdKalImK.js} +1 -1
  27. package/dist/client/eo-dash.js +4 -4
  28. package/dist/client/{eodashSTAC-Q7kbX1Gy.js → eodashSTAC-DGB50vNk.js} +1 -1
  29. package/dist/client/{forwardRefs-BVFQ82G4.js → forwardRefs-BnxE4iKQ.js} +35 -33
  30. package/dist/client/{index-dOzyv_xR.js → index-hSIi5Ygk.js} +8 -8
  31. package/dist/client/{lerc-DzVumYtB-rm1Xco54.js → lerc-DzVumYtB-cTUap6k_.js} +1 -1
  32. package/dist/client/{ssrBoot-L9KejErM.js → ssrBoot-D3KF5Thc.js} +1 -1
  33. package/dist/client/style.css +2 -2
  34. package/dist/client/{transition-DCePIwYR.js → transition-D3a4tiJv.js} +6 -6
  35. package/dist/node/cli.js +2 -2
  36. package/package.json +2 -2
  37. package/widgets/EodashMap.vue +33 -29
  38. package/widgets/EodashMapBtns.vue +33 -0
  39. package/widgets/ExportState.vue +112 -0
  40. package/widgets/PopUp.vue +40 -0
  41. package/dist/client/EodashDatePicker-oFb1zt5E.js +0 -1211
  42. package/dist/client/EodashMap-DXyOgcEd.js +0 -50707
  43. package/dist/client/Header-C-zX31Ys.js +0 -635
  44. package/dist/client/eox-map-L7abwKTR.js +0 -36260
@@ -0,0 +1,350 @@
1
+ import { p as V, e as I, f as N, g as _, a as p, b as o, ae as $, af as q, ag as z, h as F, Q as K, R as k, ah as O, ai as Q, aj as Y, i as Z, j as G, s as y, c as n, S as J, ak as B, C as x, r as R, al as X, w as T, Z as ee, am as te, an as ae, ao as le, y as oe, ap as se, aq as ne, ar as re, d as E, _ as ue, x as ie, W as ce, $ as de, a0 as ve, a1 as P, a8 as me, aa as ge, a3 as w } from "./asWebComponent-zuKR9I1w.js";
2
+ import { V as A } from "./VImg-C-I_7puM.js";
3
+ import { a as fe } from "./index-hSIi5Ygk.js";
4
+ import { u as he } from "./ssrBoot-D3KF5Thc.js";
5
+ const L = V({
6
+ text: String,
7
+ ...I(),
8
+ ...N()
9
+ }, "VToolbarTitle"), U = _()({
10
+ name: "VToolbarTitle",
11
+ props: L(),
12
+ setup(e, r) {
13
+ let {
14
+ slots: t
15
+ } = r;
16
+ return p(() => {
17
+ const d = !!(t.default || t.text || e.text);
18
+ return o(e.tag, {
19
+ class: ["v-toolbar-title", e.class],
20
+ style: e.style
21
+ }, {
22
+ default: () => [d && o("div", {
23
+ class: "v-toolbar-title__placeholder"
24
+ }, [t.text ? t.text() : e.text, t.default?.()])]
25
+ });
26
+ }), {};
27
+ }
28
+ }), be = [null, "prominent", "default", "comfortable", "compact"], D = V({
29
+ absolute: Boolean,
30
+ collapse: Boolean,
31
+ color: String,
32
+ density: {
33
+ type: String,
34
+ default: "default",
35
+ validator: (e) => be.includes(e)
36
+ },
37
+ extended: Boolean,
38
+ extensionHeight: {
39
+ type: [Number, String],
40
+ default: 48
41
+ },
42
+ flat: Boolean,
43
+ floating: Boolean,
44
+ height: {
45
+ type: [Number, String],
46
+ default: 64
47
+ },
48
+ image: String,
49
+ title: String,
50
+ ...$(),
51
+ ...I(),
52
+ ...q(),
53
+ ...z(),
54
+ ...N({
55
+ tag: "header"
56
+ }),
57
+ ...F()
58
+ }, "VToolbar"), C = _()({
59
+ name: "VToolbar",
60
+ props: D(),
61
+ setup(e, r) {
62
+ let {
63
+ slots: t
64
+ } = r;
65
+ const {
66
+ backgroundColorClasses: d,
67
+ backgroundColorStyles: u
68
+ } = K(k(e, "color")), {
69
+ borderClasses: a
70
+ } = O(e), {
71
+ elevationClasses: v
72
+ } = Q(e), {
73
+ roundedClasses: i
74
+ } = Y(e), {
75
+ themeClasses: f
76
+ } = Z(e), {
77
+ rtlClasses: S
78
+ } = G(), c = y(!!(e.extended || t.extension?.())), m = n(() => parseInt(Number(e.height) + (e.density === "prominent" ? Number(e.height) : 0) - (e.density === "comfortable" ? 8 : 0) - (e.density === "compact" ? 16 : 0), 10)), b = n(() => c.value ? parseInt(Number(e.extensionHeight) + (e.density === "prominent" ? Number(e.extensionHeight) : 0) - (e.density === "comfortable" ? 4 : 0) - (e.density === "compact" ? 8 : 0), 10) : 0);
79
+ return J({
80
+ VBtn: {
81
+ variant: "text"
82
+ }
83
+ }), p(() => {
84
+ const h = !!(e.title || t.title), s = !!(t.image || e.image), g = t.extension?.();
85
+ return c.value = !!(e.extended || g), o(e.tag, {
86
+ class: ["v-toolbar", {
87
+ "v-toolbar--absolute": e.absolute,
88
+ "v-toolbar--collapse": e.collapse,
89
+ "v-toolbar--flat": e.flat,
90
+ "v-toolbar--floating": e.floating,
91
+ [`v-toolbar--density-${e.density}`]: !0
92
+ }, d.value, a.value, v.value, i.value, f.value, S.value, e.class],
93
+ style: [u.value, e.style]
94
+ }, {
95
+ default: () => [s && o("div", {
96
+ key: "image",
97
+ class: "v-toolbar__image"
98
+ }, [t.image ? o(B, {
99
+ key: "image-defaults",
100
+ disabled: !e.image,
101
+ defaults: {
102
+ VImg: {
103
+ cover: !0,
104
+ src: e.image
105
+ }
106
+ }
107
+ }, t.image) : o(A, {
108
+ key: "image-img",
109
+ cover: !0,
110
+ src: e.image
111
+ }, null)]), o(B, {
112
+ defaults: {
113
+ VTabs: {
114
+ height: x(m.value)
115
+ }
116
+ }
117
+ }, {
118
+ default: () => [o("div", {
119
+ class: "v-toolbar__content",
120
+ style: {
121
+ height: x(m.value)
122
+ }
123
+ }, [t.prepend && o("div", {
124
+ class: "v-toolbar__prepend"
125
+ }, [t.prepend?.()]), h && o(U, {
126
+ key: "title",
127
+ text: e.title
128
+ }, {
129
+ text: t.title
130
+ }), t.default?.(), t.append && o("div", {
131
+ class: "v-toolbar__append"
132
+ }, [t.append?.()])])]
133
+ }), o(B, {
134
+ defaults: {
135
+ VTabs: {
136
+ height: x(b.value)
137
+ }
138
+ }
139
+ }, {
140
+ default: () => [o(fe, null, {
141
+ default: () => [c.value && o("div", {
142
+ class: "v-toolbar__extension",
143
+ style: {
144
+ height: x(b.value)
145
+ }
146
+ }, [g])]
147
+ })]
148
+ })]
149
+ });
150
+ }), {
151
+ contentHeight: m,
152
+ extensionHeight: b
153
+ };
154
+ }
155
+ }), ye = V({
156
+ scrollTarget: {
157
+ type: String
158
+ },
159
+ scrollThreshold: {
160
+ type: [String, Number],
161
+ default: 300
162
+ }
163
+ }, "scroll");
164
+ function Se(e) {
165
+ let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
166
+ const {
167
+ canScroll: t
168
+ } = r;
169
+ let d = 0, u = 0;
170
+ const a = R(null), v = y(0), i = y(0), f = y(0), S = y(!1), c = y(!1), m = n(() => Number(e.scrollThreshold)), b = n(() => X((m.value - v.value) / m.value || 0)), h = () => {
171
+ const s = a.value;
172
+ if (!s || t && !t.value) return;
173
+ d = v.value, v.value = "window" in s ? s.pageYOffset : s.scrollTop;
174
+ const g = s instanceof Window ? document.documentElement.scrollHeight : s.scrollHeight;
175
+ if (u !== g) {
176
+ u = g;
177
+ return;
178
+ }
179
+ c.value = v.value < d, f.value = Math.abs(v.value - m.value);
180
+ };
181
+ return T(c, () => {
182
+ i.value = i.value || v.value;
183
+ }), T(S, () => {
184
+ i.value = 0;
185
+ }), ee(() => {
186
+ T(() => e.scrollTarget, (s) => {
187
+ const g = s ? document.querySelector(s) : window;
188
+ if (!g) {
189
+ te(`Unable to locate element with identifier ${s}`);
190
+ return;
191
+ }
192
+ g !== a.value && (a.value?.removeEventListener("scroll", h), a.value = g, a.value.addEventListener("scroll", h, {
193
+ passive: !0
194
+ }));
195
+ }, {
196
+ immediate: !0
197
+ });
198
+ }), ae(() => {
199
+ a.value?.removeEventListener("scroll", h);
200
+ }), t && T(t, h, {
201
+ immediate: !0
202
+ }), {
203
+ scrollThreshold: m,
204
+ currentScroll: v,
205
+ currentThreshold: f,
206
+ isScrollActive: S,
207
+ scrollRatio: b,
208
+ // required only for testing
209
+ // probably can be removed
210
+ // later (2 chars chlng)
211
+ isScrollingUp: c,
212
+ savedScroll: i
213
+ };
214
+ }
215
+ const xe = V({
216
+ scrollBehavior: String,
217
+ modelValue: {
218
+ type: Boolean,
219
+ default: !0
220
+ },
221
+ location: {
222
+ type: String,
223
+ default: "top",
224
+ validator: (e) => ["top", "bottom"].includes(e)
225
+ },
226
+ ...D(),
227
+ ...le(),
228
+ ...ye(),
229
+ height: {
230
+ type: [Number, String],
231
+ default: 64
232
+ }
233
+ }, "VAppBar"), Te = _()({
234
+ name: "VAppBar",
235
+ props: xe(),
236
+ emits: {
237
+ "update:modelValue": (e) => !0
238
+ },
239
+ setup(e, r) {
240
+ let {
241
+ slots: t
242
+ } = r;
243
+ const d = R(), u = oe(e, "modelValue"), a = n(() => {
244
+ const l = new Set(e.scrollBehavior?.split(" ") ?? []);
245
+ return {
246
+ hide: l.has("hide"),
247
+ fullyHide: l.has("fully-hide"),
248
+ inverted: l.has("inverted"),
249
+ collapse: l.has("collapse"),
250
+ elevate: l.has("elevate"),
251
+ fadeImage: l.has("fade-image")
252
+ // shrink: behavior.has('shrink'),
253
+ };
254
+ }), v = n(() => {
255
+ const l = a.value;
256
+ return l.hide || l.fullyHide || l.inverted || l.collapse || l.elevate || l.fadeImage || // behavior.shrink ||
257
+ !u.value;
258
+ }), {
259
+ currentScroll: i,
260
+ scrollThreshold: f,
261
+ isScrollingUp: S,
262
+ scrollRatio: c
263
+ } = Se(e, {
264
+ canScroll: v
265
+ }), m = n(() => a.value.hide || a.value.fullyHide), b = n(() => e.collapse || a.value.collapse && (a.value.inverted ? c.value > 0 : c.value === 0)), h = n(() => e.flat || a.value.fullyHide && !u.value || a.value.elevate && (a.value.inverted ? i.value > 0 : i.value === 0)), s = n(() => a.value.fadeImage ? a.value.inverted ? 1 - c.value : c.value : void 0), g = n(() => {
266
+ const l = Number(d.value?.contentHeight ?? e.height), H = Number(d.value?.extensionHeight ?? 0);
267
+ return m.value ? i.value < f.value || a.value.fullyHide ? l + H : l : l + H;
268
+ });
269
+ se(n(() => !!e.scrollBehavior), () => {
270
+ ne(() => {
271
+ m.value ? a.value.inverted ? u.value = i.value > f.value : u.value = S.value || i.value < f.value : u.value = !0;
272
+ });
273
+ });
274
+ const {
275
+ ssrBootStyles: j
276
+ } = he(), {
277
+ layoutItemStyles: M,
278
+ layoutIsReady: W
279
+ } = re({
280
+ id: e.name,
281
+ order: n(() => parseInt(e.order, 10)),
282
+ position: k(e, "location"),
283
+ layoutSize: g,
284
+ elementSize: y(void 0),
285
+ active: u,
286
+ absolute: k(e, "absolute")
287
+ });
288
+ return p(() => {
289
+ const l = C.filterProps(e);
290
+ return o(C, E({
291
+ ref: d,
292
+ class: ["v-app-bar", {
293
+ "v-app-bar--bottom": e.location === "bottom"
294
+ }, e.class],
295
+ style: [{
296
+ ...M.value,
297
+ "--v-toolbar-image-opacity": s.value,
298
+ height: void 0,
299
+ ...j.value
300
+ }, e.style]
301
+ }, l, {
302
+ collapse: b.value,
303
+ flat: h.value
304
+ }), t);
305
+ }), W;
306
+ }
307
+ }), Ve = _()({
308
+ name: "VAppBarTitle",
309
+ props: L(),
310
+ setup(e, r) {
311
+ let {
312
+ slots: t
313
+ } = r;
314
+ return p(() => o(U, E(e, {
315
+ class: "v-app-bar-title"
316
+ }), t)), {};
317
+ }
318
+ }), _e = {
319
+ __name: "Header",
320
+ setup(e) {
321
+ const r = (
322
+ /** @type {import("@/types").Eodash} */
323
+ ie(ce)
324
+ ), t = r.brand?.name;
325
+ return (d, u) => (de(), ve(Te, { color: "primary" }, {
326
+ default: P(() => [
327
+ o(Ve, null, {
328
+ default: P(() => [
329
+ me(
330
+ ge(w(t)),
331
+ 1
332
+ /* TEXT */
333
+ )
334
+ ]),
335
+ _: 1
336
+ /* STABLE */
337
+ }),
338
+ o(A, {
339
+ class: "mx-12 logo",
340
+ src: w(r).brand?.logo
341
+ }, null, 8, ["src"])
342
+ ]),
343
+ _: 1
344
+ /* STABLE */
345
+ }));
346
+ }
347
+ }, Pe = /* @__PURE__ */ ue(_e, [["__scopeId", "data-v-d3a5e05e"]]);
348
+ export {
349
+ Pe as default
350
+ };
@@ -1,4 +1,4 @@
1
- import { $ as r, a6 as t } from "./asWebComponent-CpQUVi2N.js";
1
+ import { $ as r, a6 as t } from "./asWebComponent-zuKR9I1w.js";
2
2
  const s = ["src"], i = {
3
3
  __name: "IframeWrapper",
4
4
  props: {
@@ -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 ie, f as ue, 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 re, y as ze, z as qe, A as Ke, B as le, C as ae, 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 se, a6 as Y, a7 as we, a8 as xe, a9 as ft, aa as mt } from "./asWebComponent-CpQUVi2N.js";
2
- import { f as ht, a as gt, s as bt, m as yt, u as St, b as wt } from "./forwardRefs-BVFQ82G4.js";
3
- import { u as xt } from "./ssrBoot-L9KejErM.js";
4
- import { M as kt } from "./transition-DCePIwYR.js";
5
- import { V as ke } from "./index-dOzyv_xR.js";
6
- import { V as Tt } from "./VMain-Dm43jd43.js";
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 ie, f as ue, 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 re, y as ze, z as qe, A as Ke, B as le, C as ae, 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 se, a6 as Y, a7 as we, a8 as xe, a9 as ft, aa as mt } from "./asWebComponent-zuKR9I1w.js";
2
+ import { f as ht, a as gt, s as bt, m as yt, u as St, b as wt } from "./forwardRefs-BnxE4iKQ.js";
3
+ import { u as xt } from "./ssrBoot-D3KF5Thc.js";
4
+ import { M as kt } from "./transition-D3a4tiJv.js";
5
+ import { V as ke } from "./index-hSIi5Ygk.js";
6
+ import { V as Tt } from "./VMain-Cd3P0YTG.js";
7
7
  const Vt = (e) => {
8
8
  const {
9
9
  touchstartX: n,
@@ -790,14 +790,14 @@ const Xt = R({
790
790
  }), Gt = {
791
791
  key: 0,
792
792
  id: "overlay",
793
- class: "pa-2 panel"
793
+ class: "pa-2 panel bg-surface"
794
794
  }, Dt = { class: "component-container" }, Ut = {
795
795
  __name: "MobileLayout",
796
796
  setup(e) {
797
797
  rt((m) => ({
798
- a5e6ca1c: h.value,
799
- "369f1584": r.value,
800
- a7dda310: x.value
798
+ fbf7b91a: h.value,
799
+ "2c845582": r.value,
800
+ fdee920e: x.value
801
801
  }));
802
802
  const n = (
803
803
  /** @type {import("@/types").Eodash} */
@@ -939,7 +939,7 @@ const Xt = R({
939
939
  /* STABLE */
940
940
  }));
941
941
  }
942
- }, Zt = /* @__PURE__ */ ut(Ut, [["__scopeId", "data-v-a197a171"]]);
942
+ }, Zt = /* @__PURE__ */ ut(Ut, [["__scopeId", "data-v-e69b9875"]]);
943
943
  export {
944
944
  Zt as default
945
945
  };
@@ -0,0 +1,300 @@
1
+ import { g as E, b as p, d as h, ab as w, p as b, y as R, r as O, L as M, w as x, a as T, D as q, ak as I, N, ae as U, e as W, ac as j, af as X, aU as Y, aV as z, ag as H, f as Q, h as Z, i as G, Q as J, R as K, ah as _, ad as ee, ai as te, aZ as ae, a_ as oe, aj as se, b1 as ne, b2 as re, X as ie, $ as P, a6 as k, a1 as S, a0 as le, a3 as V, a4 as ce, a5 as C, bd as ue } from "./asWebComponent-zuKR9I1w.js";
2
+ import { m as de, V as B } from "./VOverlay-AcvFgk39.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-BnxE4iKQ.js";
4
+ const ye = b({
5
+ target: [Object, Array]
6
+ }, "v-dialog-transition"), Pe = E()({
7
+ name: "VDialogTransition",
8
+ props: ye(),
9
+ setup(e, i) {
10
+ let {
11
+ slots: o
12
+ } = i;
13
+ const r = {
14
+ onBeforeEnter(t) {
15
+ t.style.pointerEvents = "none", t.style.visibility = "hidden";
16
+ },
17
+ async onEnter(t, c) {
18
+ await new Promise((n) => requestAnimationFrame(n)), await new Promise((n) => requestAnimationFrame(n)), t.style.visibility = "";
19
+ const {
20
+ x: a,
21
+ y: l,
22
+ sx: d,
23
+ sy: m,
24
+ speed: s
25
+ } = L(e.target, t), u = y(t, [{
26
+ transform: `translate(${a}px, ${l}px) scale(${d}, ${m})`,
27
+ opacity: 0
28
+ }, {}], {
29
+ duration: 225 * s,
30
+ easing: me
31
+ });
32
+ A(t)?.forEach((n) => {
33
+ y(n, [{
34
+ opacity: 0
35
+ }, {
36
+ opacity: 0,
37
+ offset: 0.33
38
+ }, {}], {
39
+ duration: 225 * 2 * s,
40
+ easing: D
41
+ });
42
+ }), u.finished.then(() => c());
43
+ },
44
+ onAfterEnter(t) {
45
+ t.style.removeProperty("pointer-events");
46
+ },
47
+ onBeforeLeave(t) {
48
+ t.style.pointerEvents = "none";
49
+ },
50
+ async onLeave(t, c) {
51
+ await new Promise((n) => requestAnimationFrame(n));
52
+ const {
53
+ x: a,
54
+ y: l,
55
+ sx: d,
56
+ sy: m,
57
+ speed: s
58
+ } = L(e.target, t);
59
+ y(t, [{}, {
60
+ transform: `translate(${a}px, ${l}px) scale(${d}, ${m})`,
61
+ opacity: 0
62
+ }], {
63
+ duration: 125 * s,
64
+ easing: fe
65
+ }).finished.then(() => c()), A(t)?.forEach((n) => {
66
+ y(n, [{}, {
67
+ opacity: 0,
68
+ offset: 0.2
69
+ }, {
70
+ opacity: 0
71
+ }], {
72
+ duration: 125 * 2 * s,
73
+ easing: D
74
+ });
75
+ });
76
+ },
77
+ onAfterLeave(t) {
78
+ t.style.removeProperty("pointer-events");
79
+ }
80
+ };
81
+ return () => e.target ? p(w, h({
82
+ name: "dialog-transition"
83
+ }, r, {
84
+ css: !1
85
+ }), o) : p(w, {
86
+ name: "dialog-transition"
87
+ }, o);
88
+ }
89
+ });
90
+ function A(e) {
91
+ const i = e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list")?.children;
92
+ return i && [...i];
93
+ }
94
+ function L(e, i) {
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
+ let d = o.left + o.width / 2;
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;
101
+ return {
102
+ x: d - (t + r.left),
103
+ y: m - (c + r.top),
104
+ sx: f,
105
+ sy: v,
106
+ speed: $
107
+ };
108
+ }
109
+ const Ve = b({
110
+ fullscreen: Boolean,
111
+ retainFocus: {
112
+ type: Boolean,
113
+ default: !0
114
+ },
115
+ scrollable: Boolean,
116
+ ...de({
117
+ origin: "center center",
118
+ scrollStrategy: "block",
119
+ transition: {
120
+ component: Pe
121
+ },
122
+ zIndex: 2400
123
+ })
124
+ }, "VDialog"), Ee = E()({
125
+ name: "VDialog",
126
+ props: Ve(),
127
+ emits: {
128
+ "update:modelValue": (e) => !0,
129
+ afterLeave: () => !0
130
+ },
131
+ setup(e, i) {
132
+ let {
133
+ emit: o,
134
+ slots: r
135
+ } = i;
136
+ const t = R(e, "modelValue"), {
137
+ scopeId: c
138
+ } = pe(), a = O();
139
+ function l(s) {
140
+ const u = s.relatedTarget, n = s.target;
141
+ if (u !== n && a.value?.contentEl && // We're the topmost dialog
142
+ a.value?.globalTop && // It isn't the document or the dialog body
143
+ ![document, a.value.contentEl].includes(n) && // It isn't inside the dialog body
144
+ !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];
148
+ u === v ? g.focus() : v.focus();
149
+ }
150
+ }
151
+ M && x(() => t.value && e.retainFocus, (s) => {
152
+ s ? document.addEventListener("focusin", l) : document.removeEventListener("focusin", l);
153
+ }, {
154
+ immediate: !0
155
+ });
156
+ function d() {
157
+ a.value?.contentEl && !a.value.contentEl.contains(document.activeElement) && a.value.contentEl.focus({
158
+ preventScroll: !0
159
+ });
160
+ }
161
+ function m() {
162
+ o("afterLeave");
163
+ }
164
+ return x(t, async (s) => {
165
+ s || (await q(), a.value.activatorEl?.focus({
166
+ preventScroll: !0
167
+ }));
168
+ }), T(() => {
169
+ const s = B.filterProps(e), u = h({
170
+ "aria-haspopup": "dialog",
171
+ "aria-expanded": String(t.value)
172
+ }, e.activatorProps), n = h({
173
+ tabindex: -1
174
+ }, e.contentProps);
175
+ return p(B, h({
176
+ ref: a,
177
+ class: ["v-dialog", {
178
+ "v-dialog--fullscreen": e.fullscreen,
179
+ "v-dialog--scrollable": e.scrollable
180
+ }, e.class],
181
+ style: e.style
182
+ }, s, {
183
+ modelValue: t.value,
184
+ "onUpdate:modelValue": (f) => t.value = f,
185
+ "aria-modal": "true",
186
+ activatorProps: u,
187
+ contentProps: n,
188
+ role: "dialog",
189
+ onAfterEnter: d,
190
+ onAfterLeave: m
191
+ }, c), {
192
+ activator: r.activator,
193
+ default: function() {
194
+ for (var f = arguments.length, v = new Array(f), g = 0; g < f; g++)
195
+ v[g] = arguments[g];
196
+ return p(I, {
197
+ root: "VDialog"
198
+ }, {
199
+ default: () => [r.default?.(...v)]
200
+ });
201
+ }
202
+ });
203
+ }), he({}, a);
204
+ }
205
+ }), be = b({
206
+ color: String,
207
+ ...U(),
208
+ ...W(),
209
+ ...j(),
210
+ ...X(),
211
+ ...Y(),
212
+ ...z(),
213
+ ...H(),
214
+ ...Q(),
215
+ ...Z()
216
+ }, "VSheet"), we = E()({
217
+ name: "VSheet",
218
+ props: be(),
219
+ setup(e, i) {
220
+ let {
221
+ slots: o
222
+ } = i;
223
+ const {
224
+ themeClasses: r
225
+ } = G(e), {
226
+ backgroundColorClasses: t,
227
+ backgroundColorStyles: c
228
+ } = J(K(e, "color")), {
229
+ borderClasses: a
230
+ } = _(e), {
231
+ dimensionStyles: l
232
+ } = ee(e), {
233
+ elevationClasses: d
234
+ } = te(e), {
235
+ locationStyles: m
236
+ } = ae(e), {
237
+ positionClasses: s
238
+ } = oe(e), {
239
+ roundedClasses: u
240
+ } = se(e);
241
+ return T(() => p(e.tag, {
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]
244
+ }, o)), {};
245
+ }
246
+ }), xe = { key: 1 }, Be = {
247
+ __name: "PopUp",
248
+ props: /* @__PURE__ */ ne({
249
+ widget: {
250
+ /** @type {import("vue").PropType<import("@/types").Widget>} */
251
+ type: Object,
252
+ default: void 0
253
+ }
254
+ }, {
255
+ modelValue: { type: Boolean, required: !0, default: !1 },
256
+ modelModifiers: {}
257
+ }),
258
+ emits: ["update:modelValue"],
259
+ setup(e) {
260
+ const i = re(e, "modelValue"), o = e, [r] = ie([o?.widget]);
261
+ return (t, c) => (P(), k("span", null, [
262
+ p(Ee, {
263
+ "max-width": "500px",
264
+ "max-height": "500px",
265
+ absolute: "",
266
+ scrollable: "",
267
+ "scroll-strategy": "block",
268
+ "close-on-back": "",
269
+ modelValue: i.value,
270
+ "onUpdate:modelValue": c[0] || (c[0] = (a) => i.value = a)
271
+ }, {
272
+ default: S(() => [
273
+ p(we, null, {
274
+ default: S(() => [
275
+ e.widget ? (P(), le(
276
+ ce(V(r).component),
277
+ h({
278
+ key: V(r).id
279
+ }, V(r).props),
280
+ null,
281
+ 16
282
+ /* FULL_PROPS */
283
+ )) : C("v-if", !0),
284
+ t.$slots.default ? (P(), k("span", xe, [
285
+ ue(t.$slots, "default")
286
+ ])) : C("v-if", !0)
287
+ ]),
288
+ _: 3
289
+ /* FORWARDED */
290
+ })
291
+ ]),
292
+ _: 3
293
+ /* FORWARDED */
294
+ }, 8, ["modelValue"])
295
+ ]));
296
+ }
297
+ };
298
+ export {
299
+ Be as default
300
+ };