@eodash/eodash 5.0.0-alpha.2 → 5.0.0-alpha.2.3

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 (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -1
  3. package/bin/serverConfig.js +1 -1
  4. package/bin/types.d.ts +1 -0
  5. package/bin/utils.js +1 -1
  6. package/core/App.vue +12 -4
  7. package/core/SuspensedDashboard.ce.vue +21 -7
  8. package/core/components/DashboardLayout.vue +12 -30
  9. package/core/components/ErrorAlert.vue +19 -0
  10. package/core/components/Loading.vue +12 -1
  11. package/core/components/MobileLayout.vue +19 -11
  12. package/core/composables/DefineWidgets.js +11 -5
  13. package/core/composables/index.js +16 -13
  14. package/core/eodash.js +0 -2
  15. package/core/plugins/vuetify.js +9 -3
  16. package/core/store/stac.js +6 -2
  17. package/core/types.d.ts +11 -24
  18. package/core/views/Dashboard.vue +14 -3
  19. package/dist/DashboardLayout-lzEvtalW.js +148 -0
  20. package/dist/{DynamicWebComponent-BDOQsEcj.js → DynamicWebComponent-CgDh2csQ.js} +12 -12
  21. package/dist/EodashDatePicker-bIyNUYaG.js +1653 -0
  22. package/dist/{EodashItemFilter-TSp7XRGy.js → EodashItemFilter-CpgyrJRX.js} +2 -2
  23. package/dist/{EodashMap-DInb9cfS.js → EodashMap-CyR-Ldpk.js} +4 -4
  24. package/dist/Footer-C2sIHSym.js +118 -0
  25. package/dist/{Header-C5PSB8Uc.js → Header-DFz2BUnp.js} +224 -228
  26. package/dist/{IframeWrapper-DYHQQRUh.js → IframeWrapper-Csep3rMg.js} +1 -1
  27. package/dist/MobileLayout-CXNJL_q6.js +984 -0
  28. package/dist/VMain-COrg6UtF.js +39 -0
  29. package/dist/{WidgetsContainer-D_PLP1qf.js → WidgetsContainer-XA6_dKOm.js} +18 -18
  30. package/dist/asWebComponent-fqvymeM-.js +13092 -0
  31. package/dist/{decoder-kAoyGIq9-HAkjSTCt.js → decoder-kAoyGIq9-DjQanfeo.js} +1 -1
  32. package/dist/eo-dash.js +2 -2
  33. package/dist/{index-8ch8xKfa.js → index-Cskxla5D.js} +76 -44
  34. package/dist/index-Zv5eTiB6.js +34 -0
  35. package/dist/{lerc-C9VL9kri-DyVxBvsf.js → lerc-C9VL9kri-O4muG-MO.js} +1 -1
  36. package/dist/{ssrBoot-Cm5pWM14.js → ssrBoot-DCCAW5xY.js} +3 -3
  37. package/dist/style.css +2 -2
  38. package/package.json +3 -3
  39. package/widgets/EodashDatePicker.vue +1 -0
  40. package/widgets/WidgetsContainer.vue +7 -5
  41. package/dist/DashboardLayout-YLfAa8wH.js +0 -168
  42. package/dist/EodashDatePicker-DlehqSgz.js +0 -1645
  43. package/dist/Footer-CIzHgJbK.js +0 -118
  44. package/dist/MobileLayout-DZmqrpub.js +0 -523
  45. package/dist/VBtn-CFPhsIX8.js +0 -1106
  46. package/dist/VMain-deI9jyIf.js +0 -35
  47. package/dist/asWebComponent-BKe6Spni.js +0 -11323
  48. package/dist/color-D72nEBIR.js +0 -115
  49. package/dist/dimensions-BZkmIizV.js +0 -53
  50. package/dist/index-DIt8GjSR.js +0 -65
@@ -1,118 +0,0 @@
1
- import { p as y, b as _, a3 as k, e as w, a0 as x, g as b, a1 as C, t as f, s as z, i as B, c as e, a6 as P, u as M, a as R, v as S, r as T, y as V, z as F, h as X, D as Z, E as I, G as D, T as t, Q as L, J as n, O as N } from "./asWebComponent-BKe6Spni.js";
2
- import { c as j, d as E, m as H, a as O, e as A, f as G, b as J } from "./color-D72nEBIR.js";
3
- const K = y({
4
- app: Boolean,
5
- color: String,
6
- height: {
7
- type: [Number, String],
8
- default: "auto"
9
- },
10
- ...j(),
11
- ..._(),
12
- ...E(),
13
- ...k(),
14
- ...H(),
15
- ...w({
16
- tag: "footer"
17
- }),
18
- ...x()
19
- }, "VFooter"), Q = b()({
20
- name: "VFooter",
21
- props: K(),
22
- setup(l, a) {
23
- let {
24
- slots: s
25
- } = a;
26
- const {
27
- themeClasses: o
28
- } = C(l), {
29
- backgroundColorClasses: c,
30
- backgroundColorStyles: r
31
- } = O(f(l, "color")), {
32
- borderClasses: i
33
- } = A(l), {
34
- elevationClasses: m
35
- } = G(l), {
36
- roundedClasses: g
37
- } = J(l), h = z(32), {
38
- resizeRef: p
39
- } = B((u) => {
40
- u.length && (h.value = u[0].target.clientHeight);
41
- }), d = e(() => l.height === "auto" ? h.value : parseInt(l.height, 10)), {
42
- layoutItemStyles: v
43
- } = P({
44
- id: l.name,
45
- order: e(() => parseInt(l.order, 10)),
46
- position: e(() => "bottom"),
47
- layoutSize: d,
48
- elementSize: e(() => l.height === "auto" ? void 0 : d.value),
49
- active: e(() => l.app),
50
- absolute: f(l, "absolute")
51
- });
52
- return M(() => R(l.tag, {
53
- ref: p,
54
- class: ["v-footer", o.value, c.value, i.value, m.value, g.value, l.class],
55
- style: [r.value, l.app ? v.value : {
56
- height: S(l.height)
57
- }, l.style]
58
- }, s)), {};
59
- }
60
- }), U = {
61
- class: "pt-0",
62
- style: { "font-size": "0.8rem" }
63
- }, $ = /* @__PURE__ */ t(
64
- "a",
65
- {
66
- href: "https://github.com/eodash/eodash",
67
- class: "text-white",
68
- target: "_blank"
69
- },
70
- "eodash",
71
- -1
72
- /* HOISTED */
73
- ), q = {
74
- href: "https://eox.at",
75
- target: "_blank",
76
- class: "text-white"
77
- }, W = ["src"], Y = '<svg width="100%" height="100%" viewBox="0 0 355 85" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"><g id="ink_ext_XXXXXX"><path id="path5076" d="M152.986,40.52l-0.75,-0.019l-0.737,-0.056l-0.725,-0.093l-0.713,-0.127l-0.7,-0.162l-0.7,-0.196l-0.675,-0.228l-0.65,-0.261l-0.65,-0.292l-0.625,-0.319l-0.612,-0.352l-0.588,-0.377l-0.562,-0.407l-0.55,-0.431l-0.538,-0.457l-0.5,-0.481l-0.487,-0.505l-0.45,-0.528l-0.438,-0.55l-0.4,-0.57l-0.375,-0.59l-0.35,-0.609l-0.325,-0.627l-0.287,-0.645l-0.263,-0.66l-0.225,-0.676l-0.2,-0.69l-0.162,-0.704l-0.125,-0.717l-0.1,-0.728l-0.05,-0.739l-0.025,-0.748c0,-8.023 6.512,-14.532 14.537,-14.532c8.038,0 14.538,6.509 14.538,14.532c0,8.036 -6.5,14.544 -14.538,14.544Z" style="fill:none;"/><path id="path5078" d="M165.748,-0.002c-42.009,0 -76.06,18.985 -76.06,42.402c0,13.268 10.921,25.102 28.021,32.875c-8.081,-5.487 -13.403,-12.973 -14.584,-21.859c-2.685,-20.186 16.83,-40.82 45.148,-49.615c-14.687,6.665 -24.923,21.427 -24.923,38.599c0,23.218 18.648,42.046 41.773,42.383c-0.037,0.005 -0.087,0.015 -0.137,0.02c0.263,0 0.512,0.009 0.762,0.009c42.013,0 76.076,-18.984 76.076,-42.412c0,-13.261 -10.937,-25.097 -28.037,-32.871l0.75,0.522l0.736,0.531l0.713,0.543l0.7,0.555l0.687,0.566l0.664,0.578l0.649,0.588l0.625,0.6l0.613,0.609l0.588,0.621l0.574,0.631l0.562,0.643l0.538,0.652l0.513,0.662l0.5,0.672l0.475,0.684l0.449,0.693l0.438,0.703l0.425,0.713l0.387,0.723l0.375,0.73l0.352,0.74l0.336,0.75l0.3,0.76l0.287,0.77l0.264,0.777l0.25,0.787l0.211,0.795l0.188,0.805l0.175,0.812l0.151,0.82l0.125,0.831c2.675,20.19 -16.838,40.825 -45.151,49.619c14.688,-6.665 24.926,-21.426 24.926,-38.614c0,-23.202 -18.65,-42.026 -41.775,-42.367c0.05,-0.005 0.1,-0.015 0.15,-0.025c-0.262,0 -0.526,-0.01 -0.789,-0.01Zm-13.248,11.314c7.817,0 14.25,6.433 14.25,14.25c0,0.001 0,0.001 0,0.001c0,7.817 -6.433,14.249 -14.25,14.249c-7.817,0 -14.25,-6.432 -14.25,-14.249c0,-0.001 0,-0.001 0,-0.001c0,-7.817 6.433,-14.25 14.25,-14.25Z" style="fill:#fff;fill-rule:nonzero;"/><path id="path5080" d="M213.786,9.529l0.75,0.521l0.738,0.532l0.712,0.544l0.7,0.555l0.688,0.566l0.662,0.577l0.65,0.588l0.625,0.6l0.613,0.61l0.587,0.62l0.575,0.631l0.563,0.643l0.537,0.652l0.513,0.663l0.5,0.672l0.475,0.684l0.45,0.692l0.437,0.703l0.425,0.712l0.388,0.723l0.375,0.731l0.35,0.741l0.337,0.75l0.3,0.76l0.288,0.769l0.262,0.777l0.25,0.786l0.213,0.797l0.187,0.804l0.175,0.812l0.15,0.821l0.125,0.83c2.675,20.19 -16.837,40.825 -45.15,49.619c14.688,-6.665 24.925,-21.426 24.925,-38.614c0,-23.202 -18.65,-42.025 -41.775,-42.367c0.05,-0.005 0.1,-0.015 0.15,-0.025c-0.262,0 -0.525,-0.01 -0.787,-0.01c-42.01,0 -76.062,18.985 -76.062,42.402c0,13.268 10.922,25.103 28.022,32.876c-8.081,-5.487 -13.403,-12.973 -14.584,-21.859c-2.685,-20.187 16.831,-40.82 45.149,-49.615c-14.688,6.665 -24.925,21.426 -24.925,38.598c0,23.218 18.65,42.046 41.775,42.383c-0.038,0.005 -0.088,0.015 -0.138,0.02c0.263,0 0.513,0.01 0.763,0.01c42.012,-0.001 76.075,-18.985 76.075,-42.413c0,-13.261 -10.938,-25.097 -28.038,-32.871Z" style="fill:none;"/><path id="path5082" d="M354.323,82.586l-41.999,-42.002l38.524,-38.515l-29.913,0l-23.562,23.559l-23.563,-23.559l-29.924,0l38.525,38.515l-42,42.002l29.913,0l27.049,-27.046l27.05,27.046l29.9,0" style="fill:#fff;fill-rule:nonzero;"/><path id="path5084" d="M354.323,82.586l-41.999,-42.002l38.524,-38.515l-29.913,0l-23.562,23.559l-23.563,-23.559l-29.924,0l38.525,38.515l-42,42.002l29.913,0l27.049,-27.046l27.05,27.046l29.9,0Z" style="fill:none;"/><path id="path5086" d="M0,2.069l75.033,0l0,16.489l-51.629,0l0,14.931l40.258,0l0,16.495l-40.258,0l0,16.05l53.124,0l0,16.488l-76.528,0l0,-80.453" style="fill:#fff;fill-rule:nonzero;"/><path id="path5088" d="M0,2.069l75.033,0l0,16.489l-51.629,0l0,14.931l40.258,0l0,16.495l-40.258,0l0,16.05l53.124,0l0,16.488l-76.528,0l0,-80.453Z" style="fill:none;"/></g></svg>', t0 = {
78
- __name: "Footer",
79
- setup(l) {
80
- const a = T(null), s = (
81
- /** @type {import("@/types").Eodash} */
82
- V(F)
83
- ), { mdAndDown: o } = X(), c = window.btoa(Y);
84
- return (r, i) => (Z(), I(Q, {
85
- ref_key: "footer",
86
- ref: a,
87
- height: n(o) ? "48px" : "auto",
88
- color: "secondary",
89
- app: "",
90
- class: "d-flex justify-space-between"
91
- }, {
92
- default: D(() => [
93
- t(
94
- "p",
95
- U,
96
- L(n(s).brand.footerText ?? ""),
97
- 1
98
- /* TEXT */
99
- ),
100
- t("div", null, [
101
- $,
102
- N(" by "),
103
- t("a", q, [
104
- t("img", {
105
- src: `data:image/svg+xml;base64,${n(c)}`,
106
- height: "11px"
107
- }, null, 8, W)
108
- ])
109
- ])
110
- ]),
111
- _: 1
112
- /* STABLE */
113
- }, 8, ["height"]));
114
- }
115
- };
116
- export {
117
- t0 as default
118
- };
@@ -1,523 +0,0 @@
1
- import { p as j, o as pe, g as K, r as E, c as h, u as J, a as m, F as X, m as O, I as te, b as xe, d as ke, e as ge, f as Ce, h as we, s as _, i as le, j as ze, w as Te, k as Ve, l as Pe, n as _e, t as T, q as Re, v as Be, x as Me, y as Ie, z as Ee, A as ae, B as Oe, C as $e, D as V, E as A, G as F, H as se, J as R, K as W, L as oe, M as ne, N as ie, O as ue, P as re, Q as Ae } from "./asWebComponent-BKe6Spni.js";
2
- import { m as Fe, V as Y, a as He, u as De, b as ce, c as Ge, d as Le } from "./VBtn-CFPhsIX8.js";
3
- import { u as Ne, a as qe } from "./color-D72nEBIR.js";
4
- import { f as Ue, a as We, s as Xe } from "./forwardRefs-Bxeu9Obx.js";
5
- import { V as ve } from "./index-8ch8xKfa.js";
6
- import { V as Ye } from "./VMain-deI9jyIf.js";
7
- const be = Symbol.for("vuetify:v-tabs"), je = j({
8
- fixed: Boolean,
9
- sliderColor: String,
10
- hideSlider: Boolean,
11
- direction: {
12
- type: String,
13
- default: "horizontal"
14
- },
15
- ...pe(Fe({
16
- selectedClass: "v-tab--selected",
17
- variant: "text"
18
- }), ["active", "block", "flat", "location", "position", "symbol"])
19
- }, "VTab"), he = K()({
20
- name: "VTab",
21
- props: je(),
22
- setup(e, u) {
23
- let {
24
- slots: v,
25
- attrs: r
26
- } = u;
27
- const {
28
- textColorClasses: b,
29
- textColorStyles: c
30
- } = Ne(e, "sliderColor"), a = E(), o = E(), t = h(() => e.direction === "horizontal"), n = h(() => a.value?.group?.isSelected.value ?? !1);
31
- function d(s) {
32
- let {
33
- value: g
34
- } = s;
35
- if (g) {
36
- const x = a.value?.$el.parentElement?.querySelector(".v-tab--selected .v-tab__slider"), f = o.value;
37
- if (!x || !f)
38
- return;
39
- const B = getComputedStyle(x).color, S = x.getBoundingClientRect(), k = f.getBoundingClientRect(), p = t.value ? "x" : "y", z = t.value ? "X" : "Y", M = t.value ? "right" : "bottom", C = t.value ? "width" : "height", H = S[p], D = k[p], w = H > D ? S[M] - k[M] : S[p] - k[p], P = Math.sign(w) > 0 ? t.value ? "right" : "bottom" : Math.sign(w) < 0 ? t.value ? "left" : "top" : "center", G = (Math.abs(w) + (Math.sign(w) < 0 ? S[C] : k[C])) / Math.max(S[C], k[C]) || 0, L = S[C] / k[C] || 0, $ = 1.5;
40
- We(f, {
41
- backgroundColor: [B, "currentcolor"],
42
- transform: [`translate${z}(${w}px) scale${z}(${L})`, `translate${z}(${w / $}px) scale${z}(${(G - 1) / $ + 1})`, "none"],
43
- transformOrigin: Array(3).fill(P)
44
- }, {
45
- duration: 225,
46
- easing: Xe
47
- });
48
- }
49
- }
50
- return J(() => {
51
- const s = Y.filterProps(e);
52
- return m(Y, O({
53
- symbol: be,
54
- ref: a,
55
- class: ["v-tab", e.class],
56
- style: e.style,
57
- tabindex: n.value ? 0 : -1,
58
- role: "tab",
59
- "aria-selected": String(n.value),
60
- active: !1
61
- }, s, r, {
62
- block: e.fixed,
63
- maxWidth: e.fixed ? 300 : void 0,
64
- "onGroup:selected": d
65
- }), {
66
- ...v,
67
- default: () => m(X, null, [v.default?.() ?? e.text, !e.hideSlider && m("div", {
68
- ref: o,
69
- class: ["v-tab__slider", b.value],
70
- style: c.value
71
- }, null)])
72
- });
73
- }), Ue({}, a);
74
- }
75
- });
76
- function de(e) {
77
- const v = Math.abs(e);
78
- return Math.sign(e) * (v / ((1 / 0.501 - 2) * (1 - v) + 1));
79
- }
80
- function fe(e) {
81
- let {
82
- selectedElement: u,
83
- containerSize: v,
84
- contentSize: r,
85
- isRtl: b,
86
- currentScrollOffset: c,
87
- isHorizontal: a
88
- } = e;
89
- const o = a ? u.clientWidth : u.clientHeight, t = a ? u.offsetLeft : u.offsetTop, n = b && a ? r - t - o : t, d = v + c, s = o + n, g = o * 0.4;
90
- return n <= c ? c = Math.max(n - g, 0) : d <= s && (c = Math.min(c - (d - s - g), r - v)), c;
91
- }
92
- function Ke(e) {
93
- let {
94
- selectedElement: u,
95
- containerSize: v,
96
- contentSize: r,
97
- isRtl: b,
98
- isHorizontal: c
99
- } = e;
100
- const a = c ? u.clientWidth : u.clientHeight, o = c ? u.offsetLeft : u.offsetTop, t = b && c ? r - o - a / 2 - v / 2 : o + a / 2 - v / 2;
101
- return Math.min(r - v, Math.max(0, t));
102
- }
103
- const Je = Symbol.for("vuetify:v-slide-group"), ye = j({
104
- centerActive: Boolean,
105
- direction: {
106
- type: String,
107
- default: "horizontal"
108
- },
109
- symbol: {
110
- type: null,
111
- default: Je
112
- },
113
- nextIcon: {
114
- type: te,
115
- default: "$next"
116
- },
117
- prevIcon: {
118
- type: te,
119
- default: "$prev"
120
- },
121
- showArrows: {
122
- type: [Boolean, String],
123
- validator: (e) => typeof e == "boolean" || ["always", "desktop", "mobile"].includes(e)
124
- },
125
- ...xe(),
126
- ...ke(),
127
- ...ge(),
128
- ...He({
129
- selectedClass: "v-slide-group-item--active"
130
- })
131
- }, "VSlideGroup"), me = K()({
132
- name: "VSlideGroup",
133
- props: ye(),
134
- emits: {
135
- "update:modelValue": (e) => !0
136
- },
137
- setup(e, u) {
138
- let {
139
- slots: v
140
- } = u;
141
- const {
142
- isRtl: r
143
- } = Ce(), {
144
- displayClasses: b,
145
- mobile: c
146
- } = we(e), a = De(e, e.symbol), o = _(!1), t = _(0), n = _(0), d = _(0), s = h(() => e.direction === "horizontal"), {
147
- resizeRef: g,
148
- contentRect: x
149
- } = le(), {
150
- resizeRef: f,
151
- contentRect: B
152
- } = le(), S = h(() => a.selected.value.length ? a.items.value.findIndex((l) => l.id === a.selected.value[0]) : -1), k = h(() => a.selected.value.length ? a.items.value.findIndex((l) => l.id === a.selected.value[a.selected.value.length - 1]) : -1);
153
- if (ze) {
154
- let l = -1;
155
- Te(() => [a.selected.value, x.value, B.value, s.value], () => {
156
- cancelAnimationFrame(l), l = requestAnimationFrame(() => {
157
- if (x.value && B.value) {
158
- const i = s.value ? "width" : "height";
159
- n.value = x.value[i], d.value = B.value[i], o.value = n.value + 1 < d.value;
160
- }
161
- if (S.value >= 0 && f.value) {
162
- const i = f.value.children[k.value];
163
- S.value === 0 || !o.value ? t.value = 0 : e.centerActive ? t.value = Ke({
164
- selectedElement: i,
165
- containerSize: n.value,
166
- contentSize: d.value,
167
- isRtl: r.value,
168
- isHorizontal: s.value
169
- }) : o.value && (t.value = fe({
170
- selectedElement: i,
171
- containerSize: n.value,
172
- contentSize: d.value,
173
- isRtl: r.value,
174
- currentScrollOffset: t.value,
175
- isHorizontal: s.value
176
- }));
177
- }
178
- });
179
- });
180
- }
181
- const p = _(!1);
182
- let z = 0, M = 0;
183
- function C(l) {
184
- const i = s.value ? "clientX" : "clientY";
185
- M = (r.value && s.value ? -1 : 1) * t.value, z = l.touches[0][i], p.value = !0;
186
- }
187
- function H(l) {
188
- if (!o.value)
189
- return;
190
- const i = s.value ? "clientX" : "clientY", I = r.value && s.value ? -1 : 1;
191
- t.value = I * (M + z - l.touches[0][i]);
192
- }
193
- function D(l) {
194
- const i = d.value - n.value;
195
- t.value < 0 || !o.value ? t.value = 0 : t.value >= i && (t.value = i), p.value = !1;
196
- }
197
- function w() {
198
- g.value && (g.value[s.value ? "scrollLeft" : "scrollTop"] = 0);
199
- }
200
- const P = _(!1);
201
- function Q(l) {
202
- if (P.value = !0, !(!o.value || !f.value)) {
203
- for (const i of l.composedPath())
204
- for (const I of f.value.children)
205
- if (I === i) {
206
- t.value = fe({
207
- selectedElement: I,
208
- containerSize: n.value,
209
- contentSize: d.value,
210
- isRtl: r.value,
211
- currentScrollOffset: t.value,
212
- isHorizontal: s.value
213
- });
214
- return;
215
- }
216
- }
217
- }
218
- function G(l) {
219
- P.value = !1;
220
- }
221
- function L(l) {
222
- !P.value && !(l.relatedTarget && f.value?.contains(l.relatedTarget)) && y();
223
- }
224
- function $(l) {
225
- f.value && (s.value ? l.key === "ArrowRight" ? y(r.value ? "prev" : "next") : l.key === "ArrowLeft" && y(r.value ? "next" : "prev") : l.key === "ArrowDown" ? y("next") : l.key === "ArrowUp" && y("prev"), l.key === "Home" ? y("first") : l.key === "End" && y("last"));
226
- }
227
- function y(l) {
228
- if (f.value)
229
- if (!l)
230
- Ve(f.value)[0]?.focus();
231
- else if (l === "next") {
232
- const i = f.value.querySelector(":focus")?.nextElementSibling;
233
- i ? i.focus() : y("first");
234
- } else if (l === "prev") {
235
- const i = f.value.querySelector(":focus")?.previousElementSibling;
236
- i ? i.focus() : y("last");
237
- } else
238
- l === "first" ? f.value.firstElementChild?.focus() : l === "last" && f.value.lastElementChild?.focus();
239
- }
240
- function N(l) {
241
- const i = t.value + (l === "prev" ? -1 : 1) * n.value;
242
- t.value = Pe(i, 0, d.value - n.value);
243
- }
244
- const Se = h(() => {
245
- let l = t.value > d.value - n.value ? -(d.value - n.value) + de(d.value - n.value - t.value) : -t.value;
246
- t.value <= 0 && (l = de(-t.value));
247
- const i = r.value && s.value ? -1 : 1;
248
- return {
249
- transform: `translate${s.value ? "X" : "Y"}(${i * l}px)`,
250
- transition: p.value ? "none" : "",
251
- willChange: p.value ? "transform" : ""
252
- };
253
- }), q = h(() => ({
254
- next: a.next,
255
- prev: a.prev,
256
- select: a.select,
257
- isSelected: a.isSelected
258
- })), U = h(() => {
259
- switch (e.showArrows) {
260
- case "always":
261
- return !0;
262
- case "desktop":
263
- return !c.value;
264
- case !0:
265
- return o.value || Math.abs(t.value) > 0;
266
- case "mobile":
267
- return c.value || o.value || Math.abs(t.value) > 0;
268
- default:
269
- return !c.value && (o.value || Math.abs(t.value) > 0);
270
- }
271
- }), Z = h(() => Math.abs(t.value) > 0), ee = h(() => d.value > Math.abs(t.value) + n.value);
272
- return J(() => m(e.tag, {
273
- class: ["v-slide-group", {
274
- "v-slide-group--vertical": !s.value,
275
- "v-slide-group--has-affixes": U.value,
276
- "v-slide-group--is-overflowing": o.value
277
- }, b.value, e.class],
278
- style: e.style,
279
- tabindex: P.value || a.selected.value.length ? -1 : 0,
280
- onFocus: L
281
- }, {
282
- default: () => [U.value && m("div", {
283
- key: "prev",
284
- class: ["v-slide-group__prev", {
285
- "v-slide-group__prev--disabled": !Z.value
286
- }],
287
- onClick: () => Z.value && N("prev")
288
- }, [v.prev?.(q.value) ?? m(ve, null, {
289
- default: () => [m(ce, {
290
- icon: r.value ? e.nextIcon : e.prevIcon
291
- }, null)]
292
- })]), m("div", {
293
- key: "container",
294
- ref: g,
295
- class: "v-slide-group__container",
296
- onScroll: w
297
- }, [m("div", {
298
- ref: f,
299
- class: "v-slide-group__content",
300
- style: Se.value,
301
- onTouchstartPassive: C,
302
- onTouchmovePassive: H,
303
- onTouchendPassive: D,
304
- onFocusin: Q,
305
- onFocusout: G,
306
- onKeydown: $
307
- }, [v.default?.(q.value)])]), U.value && m("div", {
308
- key: "next",
309
- class: ["v-slide-group__next", {
310
- "v-slide-group__next--disabled": !ee.value
311
- }],
312
- onClick: () => ee.value && N("next")
313
- }, [v.next?.(q.value) ?? m(ve, null, {
314
- default: () => [m(ce, {
315
- icon: r.value ? e.prevIcon : e.nextIcon
316
- }, null)]
317
- })])]
318
- })), {
319
- selected: a.selected,
320
- scrollTo: N,
321
- scrollOffset: t,
322
- focus: y
323
- };
324
- }
325
- });
326
- function Qe(e) {
327
- return e ? e.map((u) => Me(u) ? u : {
328
- text: u,
329
- value: u
330
- }) : [];
331
- }
332
- const Ze = j({
333
- alignTabs: {
334
- type: String,
335
- default: "start"
336
- },
337
- color: String,
338
- fixedTabs: Boolean,
339
- items: {
340
- type: Array,
341
- default: () => []
342
- },
343
- stacked: Boolean,
344
- bgColor: String,
345
- grow: Boolean,
346
- height: {
347
- type: [Number, String],
348
- default: void 0
349
- },
350
- hideSlider: Boolean,
351
- sliderColor: String,
352
- ...ye({
353
- mandatory: "force"
354
- }),
355
- ...Ge(),
356
- ...ge()
357
- }, "VTabs"), et = K()({
358
- name: "VTabs",
359
- props: Ze(),
360
- emits: {
361
- "update:modelValue": (e) => !0
362
- },
363
- setup(e, u) {
364
- let {
365
- slots: v
366
- } = u;
367
- const r = _e(e, "modelValue"), b = h(() => Qe(e.items)), {
368
- densityClasses: c
369
- } = Le(e), {
370
- backgroundColorClasses: a,
371
- backgroundColorStyles: o
372
- } = qe(T(e, "bgColor"));
373
- return Re({
374
- VTab: {
375
- color: T(e, "color"),
376
- direction: T(e, "direction"),
377
- stacked: T(e, "stacked"),
378
- fixed: T(e, "fixedTabs"),
379
- sliderColor: T(e, "sliderColor"),
380
- hideSlider: T(e, "hideSlider")
381
- }
382
- }), J(() => {
383
- const t = me.filterProps(e);
384
- return m(me, O(t, {
385
- modelValue: r.value,
386
- "onUpdate:modelValue": (n) => r.value = n,
387
- class: ["v-tabs", `v-tabs--${e.direction}`, `v-tabs--align-tabs-${e.alignTabs}`, {
388
- "v-tabs--fixed-tabs": e.fixedTabs,
389
- "v-tabs--grow": e.grow,
390
- "v-tabs--stacked": e.stacked
391
- }, c.value, a.value, e.class],
392
- style: [{
393
- "--v-tabs-height": Be(e.height)
394
- }, o.value, e.style],
395
- role: "tablist",
396
- symbol: be
397
- }), {
398
- default: () => [v.default ? v.default() : b.value.map((n) => m(he, O(n, {
399
- key: n.text
400
- }), null))]
401
- });
402
- }), {};
403
- }
404
- }), it = {
405
- __name: "MobileLayout",
406
- setup(e) {
407
- const u = (
408
- /** @type {import("@/types").Eodash} */
409
- Ie(Ee)
410
- ), v = u.template.widgets, r = ae(v), [b] = ae([u.template?.background]), { mainRect: c } = Oe(), a = E(-1), o = E(null), t = E("");
411
- return $e(() => {
412
- t.value = c.value.bottom + /** @type {HTMLElement} */
413
- (o.value?.$el?.clientHeight ?? 0) + "px";
414
- }), (n, d) => (V(), A(Ye, {
415
- class: "overflow-hidden",
416
- style: { height: "91dvh" }
417
- }, {
418
- default: F(() => [
419
- (V(), A(
420
- se(R(b).component),
421
- O({ id: "bg-widget" }, R(b).props),
422
- null,
423
- 16
424
- /* FULL_PROPS */
425
- )),
426
- (V(!0), W(
427
- X,
428
- null,
429
- oe(R(r), (s, g) => ne((V(), W(
430
- "div",
431
- {
432
- id: "overlay",
433
- class: "pa-2",
434
- key: g,
435
- style: ie({
436
- bottom: t.value,
437
- position: "absolute",
438
- overflow: "hidden",
439
- width: "100%",
440
- left: 0,
441
- top: R(c).top + "px",
442
- zIndex: 1,
443
- background: "rgb(var(--v-theme-surface))"
444
- })
445
- },
446
- [
447
- m(Y, {
448
- icon: "",
449
- variant: "text",
450
- style: { height: "5%", position: "relative" },
451
- onClick: d[0] || (d[0] = (x) => a.value = -1)
452
- }, {
453
- default: F(() => [
454
- ue("✕")
455
- ]),
456
- _: 1
457
- /* STABLE */
458
- }),
459
- ne((V(), A(
460
- se(s.value.component),
461
- O({
462
- style: { height: "94% !important" },
463
- key: s.value.id
464
- }, s.value.props),
465
- null,
466
- 16
467
- /* FULL_PROPS */
468
- )), [
469
- [re, a.value === g]
470
- ])
471
- ],
472
- 4
473
- /* STYLE */
474
- )), [
475
- [re, a.value === g]
476
- ])),
477
- 128
478
- /* KEYED_FRAGMENT */
479
- )),
480
- m(et, {
481
- ref_key: "tabs",
482
- ref: o,
483
- "align-tabs": "center",
484
- "bg-color": "surface",
485
- style: ie({ position: "relative", bottom: (R(c).bottom || 48) + "px", zIndex: 10 }),
486
- "show-arrows": "",
487
- modelValue: a.value,
488
- "onUpdate:modelValue": d[1] || (d[1] = (s) => a.value = s)
489
- }, {
490
- default: F(() => [
491
- (V(!0), W(
492
- X,
493
- null,
494
- oe(R(r), (s, g) => (V(), A(he, {
495
- key: g,
496
- value: g
497
- }, {
498
- default: F(() => [
499
- ue(
500
- Ae(s.value.title),
501
- 1
502
- /* TEXT */
503
- )
504
- ]),
505
- _: 2
506
- /* DYNAMIC */
507
- }, 1032, ["value"]))),
508
- 128
509
- /* KEYED_FRAGMENT */
510
- ))
511
- ]),
512
- _: 1
513
- /* STABLE */
514
- }, 8, ["style", "modelValue"])
515
- ]),
516
- _: 1
517
- /* STABLE */
518
- }));
519
- }
520
- };
521
- export {
522
- it as default
523
- };