@eodash/eodash 5.0.0-alpha.2.1 → 5.0.0-alpha.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/core/client/App.vue +27 -0
- package/core/client/SuspensedDashboard.ce.vue +91 -0
- package/core/client/components/DashboardLayout.vue +36 -0
- package/core/client/components/ErrorAlert.vue +19 -0
- package/core/{components → client/components}/Loading.vue +12 -1
- package/core/{components → client/components}/MobileLayout.vue +19 -11
- package/core/{composables → client/composables}/DefineWidgets.js +11 -5
- package/core/{composables → client/composables}/index.js +16 -13
- package/core/{eodash.js → client/eodash.js} +0 -2
- package/core/{plugins → client/plugins}/vuetify.js +9 -3
- package/core/{store → client/store}/stac.js +6 -2
- package/core/{types.d.ts → client/types.d.ts} +11 -25
- package/core/{views → client/views}/Dashboard.vue +35 -6
- package/dist/client/DashboardLayout-ZaSRMD1M.js +149 -0
- package/dist/{DynamicWebComponent-BrHVTesn.js → client/DynamicWebComponent-C4Hotc4H.js} +12 -12
- package/dist/client/EodashDatePicker-C4kKjxKy.js +1653 -0
- package/dist/{EodashItemFilter-BLAGx2UD.js → client/EodashItemFilter-cBHC0YEM.js} +2 -2
- package/dist/{EodashMap-Bxl_aqY2.js → client/EodashMap-CGrQjZ1P.js} +2490 -2496
- package/dist/client/Footer-pS636dEP.js +118 -0
- package/dist/{Header-DC50S6GR.js → client/Header-DQuaLdjl.js} +225 -229
- package/dist/{IframeWrapper-Dd9zrX9s.js → client/IframeWrapper-Cg3GMmfW.js} +1 -1
- package/dist/client/MobileLayout-BLXFBWI_.js +987 -0
- package/dist/client/VMain-BHYlmRic.js +39 -0
- package/dist/{WidgetsContainer-DxfCu0I3.js → client/WidgetsContainer-dje9QSk0.js} +18 -18
- package/dist/client/asWebComponent-Bvb3xkxI.js +13311 -0
- package/dist/{decoder-kAoyGIq9-BBR5CgzS.js → client/decoder-HRvnjnEI-BQ2rajuJ.js} +1 -1
- package/dist/client/eo-dash.js +6 -0
- package/dist/{eox-map-BJ9SIixs.js → client/eox-map-C3DL31fp.js} +1882 -1809
- package/dist/client/eox-stacinfo-l7ALSV90.js +13969 -0
- package/dist/{index-DTkOfh2g.js → client/index-CaDDfJYE.js} +75 -43
- package/dist/client/index-DlNICb3T.js +34 -0
- package/dist/{lerc-C9VL9kri-cIdbW0sg.js → client/lerc-_E46UbWQ-Beu35ovS.js} +1 -1
- package/dist/{ssrBoot-D-b4-M19.js → client/ssrBoot-Dd7m-btU.js} +3 -3
- package/dist/client/style.css +5 -0
- package/dist/node/cli.js +20 -0
- package/dist/node/main.js +2 -0
- package/{bin → dist/node}/types.d.ts +3 -2
- package/package.json +22 -20
- package/widgets/EodashDatePicker.vue +1 -0
- package/widgets/EodashItemFilter.vue +1 -1
- package/widgets/WidgetsContainer.vue +7 -5
- package/bin/app.js +0 -22
- package/bin/cli.js +0 -62
- package/bin/main.js +0 -9
- package/bin/serverConfig.js +0 -165
- package/bin/utils.js +0 -103
- package/core/App.vue +0 -19
- package/core/SuspensedDashboard.ce.vue +0 -65
- package/core/components/DashboardLayout.vue +0 -44
- package/dist/DashboardLayout-Dp8AnYD9.js +0 -141
- package/dist/EodashDatePicker-D_udZ26j.js +0 -1645
- package/dist/Footer-AohCH8U7.js +0 -118
- package/dist/MobileLayout-CgToA7Gp.js +0 -523
- package/dist/VBtn-Bz7ruRUg.js +0 -1106
- package/dist/VMain-BHfWJU2j.js +0 -35
- package/dist/asWebComponent-C8rb3b1D.js +0 -11323
- package/dist/color-DpYEub1f.js +0 -115
- package/dist/dimensions-CJaGeSrj.js +0 -53
- package/dist/eo-dash.js +0 -6
- package/dist/eox-stacinfo-B-YrT7Ug.js +0 -13698
- package/dist/index-Sa2Vg_gx.js +0 -65
- package/dist/style.css +0 -5
- /package/core/{asWebComponent.d.ts → client/asWebComponent.d.ts} +0 -0
- /package/core/{asWebComponent.js → client/asWebComponent.js} +0 -0
- /package/core/{components → client/components}/DynamicWebComponent.vue +0 -0
- /package/core/{components → client/components}/Footer.vue +0 -0
- /package/core/{components → client/components}/Header.vue +0 -0
- /package/core/{components → client/components}/IframeWrapper.vue +0 -0
- /package/core/{composables → client/composables}/DefineEodash.js +0 -0
- /package/core/{main.js → client/main.js} +0 -0
- /package/core/{plugins → client/plugins}/index.js +0 -0
- /package/core/{render.js → client/render.js} +0 -0
- /package/core/{store → client/store}/Actions.js +0 -0
- /package/core/{store → client/store}/States.js +0 -0
- /package/core/{store → client/store}/index.js +0 -0
- /package/core/{utils → client/utils}/eodashSTAC.js +0 -0
- /package/core/{utils → client/utils}/helpers.js +0 -0
- /package/core/{utils → client/utils}/index.js +0 -0
- /package/core/{utils → client/utils}/keys.js +0 -0
- /package/core/{vite-env.d.ts → client/vite-env.d.ts} +0 -0
- /package/dist/{.gitkeep → client/.gitkeep} +0 -0
- /package/dist/{_commonjsHelpers-DaMA6jEr.js → client/_commonjsHelpers-DaMA6jEr.js} +0 -0
- /package/dist/{basedecoder-Qm25PwVp-CHo5Pomv.js → client/basedecoder-Qm25PwVp-CHo5Pomv.js} +0 -0
- /package/dist/{deflate-Be2Arps5-hDqMz3RA.js → client/deflate-Be2Arps5-hDqMz3RA.js} +0 -0
- /package/dist/{eox-itemfilter-DcQkRD2l.js → client/eox-itemfilter-DcQkRD2l.js} +0 -0
- /package/dist/{forwardRefs-Bxeu9Obx.js → client/forwardRefs-Bxeu9Obx.js} +0 -0
- /package/dist/{jpeg-DNfUpLwy-Fjan-04T.js → client/jpeg-DNfUpLwy-Fjan-04T.js} +0 -0
- /package/dist/{lzw-BOMhmEDy-Dboc93VO.js → client/lzw-BOMhmEDy-Dboc93VO.js} +0 -0
- /package/dist/{packbits-DaUD6MLm-Bu1PoTGa.js → client/packbits-DaUD6MLm-Bu1PoTGa.js} +0 -0
- /package/dist/{pako.esm-C3kYPGGQ-BMki8cQY.js → client/pako.esm-C3kYPGGQ-BMki8cQY.js} +0 -0
- /package/dist/{raw-CcGKjn8q-DFOt-i8n.js → client/raw-CcGKjn8q-DFOt-i8n.js} +0 -0
- /package/dist/{webfontloader-CyOFAuFB.js → client/webfontloader-CyOFAuFB.js} +0 -0
- /package/dist/{webimage-D2c098k3-DLj1LQxB.js → client/webimage-D2c098k3-DLj1LQxB.js} +0 -0
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import { m as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { u as je } from "./ssrBoot-D-b4-M19.js";
|
|
7
|
-
const Z = x({
|
|
1
|
+
import { p as B, e as H, f as Y, g as k, a as P, b as t, ab as ie, ac as ue, c as v, ad as Z, R as G, S as z, ae as J, O as ce, s as b, r as A, w as V, af as de, ag as ve, D as me, ah as Q, t as M, v as ge, F as fe, d as U, C as I, B as he, ai as ye, aj as be, h as Se, ak as _e, al as Te, i as xe, j as Ve, T as Be, am as E, an as ke, Z as Pe, ao as Ie, ap as Ce, y as Re, aq as we, ar as Ne, as as ze, x as He, W as Ee, _ as Ae, $ as Ue, a0 as O, a8 as De, aa as je, a2 as q } from "./asWebComponent-Bvb3xkxI.js";
|
|
2
|
+
import { m as We, M as N, a as Fe } from "./index-CaDDfJYE.js";
|
|
3
|
+
import { I as Le } from "./index-DlNICb3T.js";
|
|
4
|
+
import { u as Me } from "./ssrBoot-Dd7m-btU.js";
|
|
5
|
+
const X = B({
|
|
8
6
|
text: String,
|
|
9
|
-
...
|
|
10
|
-
...
|
|
11
|
-
}, "VToolbarTitle"), p =
|
|
7
|
+
...H(),
|
|
8
|
+
...Y()
|
|
9
|
+
}, "VToolbarTitle"), p = k()({
|
|
12
10
|
name: "VToolbarTitle",
|
|
13
|
-
props:
|
|
14
|
-
setup(e,
|
|
11
|
+
props: X(),
|
|
12
|
+
setup(e, d) {
|
|
15
13
|
let {
|
|
16
14
|
slots: a
|
|
17
|
-
} =
|
|
18
|
-
return
|
|
19
|
-
const
|
|
15
|
+
} = d;
|
|
16
|
+
return P(() => {
|
|
17
|
+
const o = !!(a.default || a.text || e.text);
|
|
20
18
|
return t(e.tag, {
|
|
21
19
|
class: ["v-toolbar-title", e.class],
|
|
22
20
|
style: e.style
|
|
23
21
|
}, {
|
|
24
|
-
default: () => [
|
|
22
|
+
default: () => [o && t("div", {
|
|
25
23
|
class: "v-toolbar-title__placeholder"
|
|
26
24
|
}, [a.text ? a.text() : e.text, a.default?.()])]
|
|
27
25
|
});
|
|
@@ -31,44 +29,44 @@ const Z = x({
|
|
|
31
29
|
function Oe(e) {
|
|
32
30
|
return {
|
|
33
31
|
aspectStyles: v(() => {
|
|
34
|
-
const
|
|
35
|
-
return
|
|
36
|
-
paddingBottom: String(1 /
|
|
32
|
+
const d = Number(e.aspectRatio);
|
|
33
|
+
return d ? {
|
|
34
|
+
paddingBottom: String(1 / d * 100) + "%"
|
|
37
35
|
} : void 0;
|
|
38
36
|
})
|
|
39
37
|
};
|
|
40
38
|
}
|
|
41
|
-
const ee =
|
|
39
|
+
const ee = B({
|
|
42
40
|
aspectRatio: [String, Number],
|
|
43
|
-
contentClass:
|
|
41
|
+
contentClass: null,
|
|
44
42
|
inline: Boolean,
|
|
45
|
-
...
|
|
46
|
-
...
|
|
47
|
-
}, "VResponsive"), $ =
|
|
43
|
+
...H(),
|
|
44
|
+
...ie()
|
|
45
|
+
}, "VResponsive"), $ = k()({
|
|
48
46
|
name: "VResponsive",
|
|
49
47
|
props: ee(),
|
|
50
|
-
setup(e,
|
|
48
|
+
setup(e, d) {
|
|
51
49
|
let {
|
|
52
50
|
slots: a
|
|
53
|
-
} =
|
|
51
|
+
} = d;
|
|
54
52
|
const {
|
|
55
|
-
aspectStyles:
|
|
53
|
+
aspectStyles: o
|
|
56
54
|
} = Oe(e), {
|
|
57
|
-
dimensionStyles:
|
|
58
|
-
} =
|
|
59
|
-
return
|
|
55
|
+
dimensionStyles: u
|
|
56
|
+
} = ue(e);
|
|
57
|
+
return P(() => t("div", {
|
|
60
58
|
class: ["v-responsive", {
|
|
61
59
|
"v-responsive--inline": e.inline
|
|
62
60
|
}, e.class],
|
|
63
|
-
style: [
|
|
61
|
+
style: [u.value, e.style]
|
|
64
62
|
}, [t("div", {
|
|
65
63
|
class: "v-responsive__sizer",
|
|
66
|
-
style:
|
|
64
|
+
style: o.value
|
|
67
65
|
}, null), a.additional?.(), a.default && t("div", {
|
|
68
66
|
class: ["v-responsive__content", e.contentClass]
|
|
69
67
|
}, [a.default()])])), {};
|
|
70
68
|
}
|
|
71
|
-
}), qe =
|
|
69
|
+
}), qe = B({
|
|
72
70
|
alt: String,
|
|
73
71
|
cover: Boolean,
|
|
74
72
|
color: String,
|
|
@@ -99,13 +97,13 @@ const ee = x({
|
|
|
99
97
|
srcset: String,
|
|
100
98
|
position: String,
|
|
101
99
|
...ee(),
|
|
102
|
-
...
|
|
103
|
-
...
|
|
100
|
+
...H(),
|
|
101
|
+
...Z(),
|
|
104
102
|
...We()
|
|
105
|
-
}, "VImg"), te =
|
|
103
|
+
}, "VImg"), te = k()({
|
|
106
104
|
name: "VImg",
|
|
107
105
|
directives: {
|
|
108
|
-
intersect:
|
|
106
|
+
intersect: Le
|
|
109
107
|
},
|
|
110
108
|
props: qe(),
|
|
111
109
|
emits: {
|
|
@@ -113,17 +111,17 @@ const ee = x({
|
|
|
113
111
|
load: (e) => !0,
|
|
114
112
|
error: (e) => !0
|
|
115
113
|
},
|
|
116
|
-
setup(e,
|
|
114
|
+
setup(e, d) {
|
|
117
115
|
let {
|
|
118
116
|
emit: a,
|
|
119
|
-
slots:
|
|
120
|
-
} =
|
|
117
|
+
slots: o
|
|
118
|
+
} = d;
|
|
121
119
|
const {
|
|
122
|
-
backgroundColorClasses:
|
|
120
|
+
backgroundColorClasses: u,
|
|
123
121
|
backgroundColorStyles: r
|
|
124
|
-
} =
|
|
125
|
-
roundedClasses:
|
|
126
|
-
} =
|
|
122
|
+
} = G(z(e, "color")), {
|
|
123
|
+
roundedClasses: _
|
|
124
|
+
} = J(e), m = ce("VImg"), S = b(""), i = A(), l = b(e.eager ? "loading" : "idle"), f = b(), g = b(), n = v(() => e.src && typeof e.src == "object" ? {
|
|
127
125
|
src: e.src.src,
|
|
128
126
|
srcset: e.srcset || e.src.srcset,
|
|
129
127
|
lazySrc: e.lazySrc || e.src.lazySrc,
|
|
@@ -133,55 +131,55 @@ const ee = x({
|
|
|
133
131
|
srcset: e.srcset,
|
|
134
132
|
lazySrc: e.lazySrc,
|
|
135
133
|
aspect: Number(e.aspectRatio || 0)
|
|
136
|
-
}), h = v(() => n.value.aspect || f.value /
|
|
134
|
+
}), h = v(() => n.value.aspect || f.value / g.value || 0);
|
|
137
135
|
V(() => e.src, () => {
|
|
138
136
|
T(l.value !== "idle");
|
|
139
|
-
}), V(h, (
|
|
140
|
-
!
|
|
141
|
-
}),
|
|
142
|
-
function T(
|
|
143
|
-
if (!(e.eager &&
|
|
137
|
+
}), V(h, (c, y) => {
|
|
138
|
+
!c && y && i.value && x(i.value);
|
|
139
|
+
}), de(() => T());
|
|
140
|
+
function T(c) {
|
|
141
|
+
if (!(e.eager && c) && !(ve && !c && !e.eager)) {
|
|
144
142
|
if (l.value = "loading", n.value.lazySrc) {
|
|
145
|
-
const
|
|
146
|
-
|
|
143
|
+
const y = new Image();
|
|
144
|
+
y.src = n.value.lazySrc, x(y, null);
|
|
147
145
|
}
|
|
148
|
-
n.value.src &&
|
|
149
|
-
a("loadstart",
|
|
150
|
-
if (!
|
|
151
|
-
if (
|
|
152
|
-
if (
|
|
146
|
+
n.value.src && me(() => {
|
|
147
|
+
a("loadstart", i.value?.currentSrc || n.value.src), setTimeout(() => {
|
|
148
|
+
if (!m.isUnmounted)
|
|
149
|
+
if (i.value?.complete) {
|
|
150
|
+
if (i.value.naturalWidth || R(), l.value === "error")
|
|
153
151
|
return;
|
|
154
|
-
h.value ||
|
|
152
|
+
h.value || x(i.value, null), l.value === "loading" && C();
|
|
155
153
|
} else
|
|
156
|
-
h.value ||
|
|
154
|
+
h.value || x(i.value), w();
|
|
157
155
|
});
|
|
158
156
|
});
|
|
159
157
|
}
|
|
160
158
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
159
|
+
function C() {
|
|
160
|
+
m.isUnmounted || (w(), x(i.value), l.value = "loaded", a("load", i.value?.currentSrc || n.value.src));
|
|
163
161
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
162
|
+
function R() {
|
|
163
|
+
m.isUnmounted || (l.value = "error", a("error", i.value?.currentSrc || n.value.src));
|
|
166
164
|
}
|
|
167
|
-
function
|
|
168
|
-
const
|
|
169
|
-
|
|
165
|
+
function w() {
|
|
166
|
+
const c = i.value;
|
|
167
|
+
c && (S.value = c.currentSrc || c.src);
|
|
170
168
|
}
|
|
171
|
-
let
|
|
172
|
-
|
|
173
|
-
clearTimeout(
|
|
169
|
+
let s = -1;
|
|
170
|
+
Q(() => {
|
|
171
|
+
clearTimeout(s);
|
|
174
172
|
});
|
|
175
|
-
function
|
|
176
|
-
let
|
|
173
|
+
function x(c) {
|
|
174
|
+
let y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100;
|
|
177
175
|
const W = () => {
|
|
178
|
-
if (clearTimeout(
|
|
176
|
+
if (clearTimeout(s), m.isUnmounted)
|
|
179
177
|
return;
|
|
180
178
|
const {
|
|
181
179
|
naturalHeight: F,
|
|
182
180
|
naturalWidth: L
|
|
183
|
-
} =
|
|
184
|
-
F || L ? (f.value = L,
|
|
181
|
+
} = c;
|
|
182
|
+
F || L ? (f.value = L, g.value = F) : !c.complete && l.value === "loading" && y != null ? s = window.setTimeout(W, y) : (c.currentSrc.endsWith(".svg") || c.currentSrc.startsWith("data:image/svg+xml")) && (f.value = 1, g.value = 1);
|
|
185
183
|
};
|
|
186
184
|
W();
|
|
187
185
|
}
|
|
@@ -191,7 +189,7 @@ const ee = x({
|
|
|
191
189
|
})), le = () => {
|
|
192
190
|
if (!n.value.src || l.value === "idle")
|
|
193
191
|
return null;
|
|
194
|
-
const
|
|
192
|
+
const c = t("img", {
|
|
195
193
|
class: ["v-img__img", D.value],
|
|
196
194
|
style: {
|
|
197
195
|
objectPosition: e.position
|
|
@@ -203,19 +201,19 @@ const ee = x({
|
|
|
203
201
|
referrerpolicy: e.referrerpolicy,
|
|
204
202
|
draggable: e.draggable,
|
|
205
203
|
sizes: e.sizes,
|
|
206
|
-
ref:
|
|
207
|
-
onLoad:
|
|
208
|
-
onError:
|
|
209
|
-
}, null),
|
|
210
|
-
return t(
|
|
204
|
+
ref: i,
|
|
205
|
+
onLoad: C,
|
|
206
|
+
onError: R
|
|
207
|
+
}, null), y = o.sources?.();
|
|
208
|
+
return t(N, {
|
|
211
209
|
transition: e.transition,
|
|
212
210
|
appear: !0
|
|
213
211
|
}, {
|
|
214
|
-
default: () => [
|
|
212
|
+
default: () => [M(y ? t("picture", {
|
|
215
213
|
class: "v-img__picture"
|
|
216
|
-
}, [
|
|
214
|
+
}, [y, c]) : c, [[he, l.value === "loaded"]])]
|
|
217
215
|
});
|
|
218
|
-
}, ne = () => t(
|
|
216
|
+
}, ne = () => t(N, {
|
|
219
217
|
transition: e.transition
|
|
220
218
|
}, {
|
|
221
219
|
default: () => [n.value.lazySrc && l.value !== "loaded" && t("img", {
|
|
@@ -229,66 +227,66 @@ const ee = x({
|
|
|
229
227
|
referrerpolicy: e.referrerpolicy,
|
|
230
228
|
draggable: e.draggable
|
|
231
229
|
}, null)]
|
|
232
|
-
}), re = () =>
|
|
230
|
+
}), re = () => o.placeholder ? t(N, {
|
|
233
231
|
transition: e.transition,
|
|
234
232
|
appear: !0
|
|
235
233
|
}, {
|
|
236
|
-
default: () => [(l.value === "loading" || l.value === "error" && !
|
|
234
|
+
default: () => [(l.value === "loading" || l.value === "error" && !o.error) && t("div", {
|
|
237
235
|
class: "v-img__placeholder"
|
|
238
|
-
}, [
|
|
239
|
-
}) : null, se = () =>
|
|
236
|
+
}, [o.placeholder()])]
|
|
237
|
+
}) : null, se = () => o.error ? t(N, {
|
|
240
238
|
transition: e.transition,
|
|
241
239
|
appear: !0
|
|
242
240
|
}, {
|
|
243
241
|
default: () => [l.value === "error" && t("div", {
|
|
244
242
|
class: "v-img__error"
|
|
245
|
-
}, [
|
|
243
|
+
}, [o.error()])]
|
|
246
244
|
}) : null, oe = () => e.gradient ? t("div", {
|
|
247
245
|
class: "v-img__gradient",
|
|
248
246
|
style: {
|
|
249
247
|
backgroundImage: `linear-gradient(${e.gradient})`
|
|
250
248
|
}
|
|
251
|
-
}, null) : null,
|
|
249
|
+
}, null) : null, j = b(!1);
|
|
252
250
|
{
|
|
253
|
-
const
|
|
254
|
-
|
|
251
|
+
const c = V(h, (y) => {
|
|
252
|
+
y && (requestAnimationFrame(() => {
|
|
255
253
|
requestAnimationFrame(() => {
|
|
256
|
-
|
|
254
|
+
j.value = !0;
|
|
257
255
|
});
|
|
258
|
-
}),
|
|
256
|
+
}), c());
|
|
259
257
|
});
|
|
260
258
|
}
|
|
261
|
-
return
|
|
262
|
-
const
|
|
263
|
-
return
|
|
259
|
+
return P(() => {
|
|
260
|
+
const c = $.filterProps(e);
|
|
261
|
+
return M(t($, U({
|
|
264
262
|
class: ["v-img", {
|
|
265
|
-
"v-img--booting": !
|
|
266
|
-
},
|
|
263
|
+
"v-img--booting": !j.value
|
|
264
|
+
}, u.value, _.value, e.class],
|
|
267
265
|
style: [{
|
|
268
|
-
width:
|
|
266
|
+
width: I(e.width === "auto" ? f.value : e.width)
|
|
269
267
|
}, r.value, e.style]
|
|
270
|
-
},
|
|
268
|
+
}, c, {
|
|
271
269
|
aspectRatio: h.value,
|
|
272
270
|
"aria-label": e.alt,
|
|
273
271
|
role: e.alt ? "img" : void 0
|
|
274
272
|
}), {
|
|
275
|
-
additional: () => t(
|
|
276
|
-
default:
|
|
277
|
-
}), [[
|
|
273
|
+
additional: () => t(fe, null, [t(le, null, null), t(ne, null, null), t(oe, null, null), t(re, null, null), t(se, null, null)]),
|
|
274
|
+
default: o.default
|
|
275
|
+
}), [[ge("intersect"), {
|
|
278
276
|
handler: T,
|
|
279
277
|
options: e.options
|
|
280
278
|
}, null, {
|
|
281
279
|
once: !0
|
|
282
280
|
}]]);
|
|
283
281
|
}), {
|
|
284
|
-
currentSrc:
|
|
285
|
-
image:
|
|
282
|
+
currentSrc: S,
|
|
283
|
+
image: i,
|
|
286
284
|
state: l,
|
|
287
285
|
naturalWidth: f,
|
|
288
|
-
naturalHeight:
|
|
286
|
+
naturalHeight: g
|
|
289
287
|
};
|
|
290
288
|
}
|
|
291
|
-
}), $e = [null, "prominent", "default", "comfortable", "compact"], ae =
|
|
289
|
+
}), $e = [null, "prominent", "default", "comfortable", "compact"], ae = B({
|
|
292
290
|
absolute: Boolean,
|
|
293
291
|
collapse: Boolean,
|
|
294
292
|
color: String,
|
|
@@ -310,40 +308,40 @@ const ee = x({
|
|
|
310
308
|
},
|
|
311
309
|
image: String,
|
|
312
310
|
title: String,
|
|
313
|
-
...
|
|
314
|
-
...
|
|
315
|
-
...
|
|
316
|
-
...
|
|
317
|
-
...
|
|
311
|
+
...ye(),
|
|
312
|
+
...H(),
|
|
313
|
+
...be(),
|
|
314
|
+
...Z(),
|
|
315
|
+
...Y({
|
|
318
316
|
tag: "header"
|
|
319
317
|
}),
|
|
320
|
-
...
|
|
321
|
-
}, "VToolbar"),
|
|
318
|
+
...Se()
|
|
319
|
+
}, "VToolbar"), K = k()({
|
|
322
320
|
name: "VToolbar",
|
|
323
321
|
props: ae(),
|
|
324
|
-
setup(e,
|
|
322
|
+
setup(e, d) {
|
|
325
323
|
let {
|
|
326
324
|
slots: a
|
|
327
|
-
} =
|
|
325
|
+
} = d;
|
|
328
326
|
const {
|
|
329
|
-
backgroundColorClasses:
|
|
330
|
-
backgroundColorStyles:
|
|
331
|
-
} =
|
|
327
|
+
backgroundColorClasses: o,
|
|
328
|
+
backgroundColorStyles: u
|
|
329
|
+
} = G(z(e, "color")), {
|
|
332
330
|
borderClasses: r
|
|
333
|
-
} =
|
|
334
|
-
elevationClasses:
|
|
335
|
-
} =
|
|
336
|
-
roundedClasses:
|
|
337
|
-
} =
|
|
338
|
-
themeClasses:
|
|
339
|
-
} =
|
|
340
|
-
rtlClasses:
|
|
341
|
-
} =
|
|
342
|
-
return
|
|
331
|
+
} = _e(e), {
|
|
332
|
+
elevationClasses: _
|
|
333
|
+
} = Te(e), {
|
|
334
|
+
roundedClasses: m
|
|
335
|
+
} = J(e), {
|
|
336
|
+
themeClasses: S
|
|
337
|
+
} = xe(e), {
|
|
338
|
+
rtlClasses: i
|
|
339
|
+
} = Ve(), l = b(!!(e.extended || a.extension?.())), f = v(() => parseInt(Number(e.height) + (e.density === "prominent" ? Number(e.height) : 0) - (e.density === "comfortable" ? 8 : 0) - (e.density === "compact" ? 16 : 0), 10)), g = v(() => l.value ? parseInt(Number(e.extensionHeight) + (e.density === "prominent" ? Number(e.extensionHeight) : 0) - (e.density === "comfortable" ? 4 : 0) - (e.density === "compact" ? 8 : 0), 10) : 0);
|
|
340
|
+
return Be({
|
|
343
341
|
VBtn: {
|
|
344
342
|
variant: "text"
|
|
345
343
|
}
|
|
346
|
-
}),
|
|
344
|
+
}), P(() => {
|
|
347
345
|
const n = !!(e.title || a.title), h = !!(a.image || e.image), T = a.extension?.();
|
|
348
346
|
return l.value = !!(e.extended || T), t(e.tag, {
|
|
349
347
|
class: ["v-toolbar", {
|
|
@@ -352,13 +350,13 @@ const ee = x({
|
|
|
352
350
|
"v-toolbar--flat": e.flat,
|
|
353
351
|
"v-toolbar--floating": e.floating,
|
|
354
352
|
[`v-toolbar--density-${e.density}`]: !0
|
|
355
|
-
},
|
|
356
|
-
style: [
|
|
353
|
+
}, o.value, r.value, _.value, m.value, S.value, i.value, e.class],
|
|
354
|
+
style: [u.value, e.style]
|
|
357
355
|
}, {
|
|
358
356
|
default: () => [h && t("div", {
|
|
359
357
|
key: "image",
|
|
360
358
|
class: "v-toolbar__image"
|
|
361
|
-
}, [a.image ? t(
|
|
359
|
+
}, [a.image ? t(E, {
|
|
362
360
|
key: "image-defaults",
|
|
363
361
|
disabled: !e.image,
|
|
364
362
|
defaults: {
|
|
@@ -371,17 +369,17 @@ const ee = x({
|
|
|
371
369
|
key: "image-img",
|
|
372
370
|
cover: !0,
|
|
373
371
|
src: e.image
|
|
374
|
-
}, null)]), t(
|
|
372
|
+
}, null)]), t(E, {
|
|
375
373
|
defaults: {
|
|
376
374
|
VTabs: {
|
|
377
|
-
height:
|
|
375
|
+
height: I(f.value)
|
|
378
376
|
}
|
|
379
377
|
}
|
|
380
378
|
}, {
|
|
381
379
|
default: () => [t("div", {
|
|
382
380
|
class: "v-toolbar__content",
|
|
383
381
|
style: {
|
|
384
|
-
height:
|
|
382
|
+
height: I(f.value)
|
|
385
383
|
}
|
|
386
384
|
}, [a.prepend && t("div", {
|
|
387
385
|
class: "v-toolbar__prepend"
|
|
@@ -393,18 +391,18 @@ const ee = x({
|
|
|
393
391
|
}), a.default?.(), a.append && t("div", {
|
|
394
392
|
class: "v-toolbar__append"
|
|
395
393
|
}, [a.append?.()])])]
|
|
396
|
-
}), t(
|
|
394
|
+
}), t(E, {
|
|
397
395
|
defaults: {
|
|
398
396
|
VTabs: {
|
|
399
|
-
height:
|
|
397
|
+
height: I(g.value)
|
|
400
398
|
}
|
|
401
399
|
}
|
|
402
400
|
}, {
|
|
403
|
-
default: () => [t(
|
|
401
|
+
default: () => [t(Fe, null, {
|
|
404
402
|
default: () => [l.value && t("div", {
|
|
405
403
|
class: "v-toolbar__extension",
|
|
406
404
|
style: {
|
|
407
|
-
height:
|
|
405
|
+
height: I(g.value)
|
|
408
406
|
}
|
|
409
407
|
}, [T])]
|
|
410
408
|
})]
|
|
@@ -412,10 +410,10 @@ const ee = x({
|
|
|
412
410
|
});
|
|
413
411
|
}), {
|
|
414
412
|
contentHeight: f,
|
|
415
|
-
extensionHeight:
|
|
413
|
+
extensionHeight: g
|
|
416
414
|
};
|
|
417
415
|
}
|
|
418
|
-
}),
|
|
416
|
+
}), Ke = B({
|
|
419
417
|
scrollTarget: {
|
|
420
418
|
type: String
|
|
421
419
|
},
|
|
@@ -424,51 +422,51 @@ const ee = x({
|
|
|
424
422
|
default: 300
|
|
425
423
|
}
|
|
426
424
|
}, "scroll");
|
|
427
|
-
function
|
|
428
|
-
let
|
|
425
|
+
function Ye(e) {
|
|
426
|
+
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
429
427
|
const {
|
|
430
428
|
canScroll: a
|
|
431
|
-
} =
|
|
432
|
-
let
|
|
433
|
-
const
|
|
434
|
-
const n =
|
|
435
|
-
!n || a && !a.value || (
|
|
429
|
+
} = d;
|
|
430
|
+
let o = 0;
|
|
431
|
+
const u = A(null), r = b(0), _ = b(0), m = b(0), S = b(!1), i = b(!1), l = v(() => Number(e.scrollThreshold)), f = v(() => ke((l.value - r.value) / l.value || 0)), g = () => {
|
|
432
|
+
const n = u.value;
|
|
433
|
+
!n || a && !a.value || (o = r.value, r.value = "window" in n ? n.pageYOffset : n.scrollTop, i.value = r.value < o, m.value = Math.abs(r.value - l.value));
|
|
436
434
|
};
|
|
437
|
-
return V(
|
|
438
|
-
|
|
439
|
-
}), V(
|
|
440
|
-
|
|
441
|
-
}),
|
|
435
|
+
return V(i, () => {
|
|
436
|
+
_.value = _.value || r.value;
|
|
437
|
+
}), V(S, () => {
|
|
438
|
+
_.value = 0;
|
|
439
|
+
}), Pe(() => {
|
|
442
440
|
V(() => e.scrollTarget, (n) => {
|
|
443
441
|
const h = n ? document.querySelector(n) : window;
|
|
444
442
|
if (!h) {
|
|
445
|
-
|
|
443
|
+
Ie(`Unable to locate element with identifier ${n}`);
|
|
446
444
|
return;
|
|
447
445
|
}
|
|
448
|
-
h !==
|
|
446
|
+
h !== u.value && (u.value?.removeEventListener("scroll", g), u.value = h, u.value.addEventListener("scroll", g, {
|
|
449
447
|
passive: !0
|
|
450
448
|
}));
|
|
451
449
|
}, {
|
|
452
450
|
immediate: !0
|
|
453
451
|
});
|
|
454
|
-
}),
|
|
455
|
-
|
|
456
|
-
}), a && V(a,
|
|
452
|
+
}), Q(() => {
|
|
453
|
+
u.value?.removeEventListener("scroll", g);
|
|
454
|
+
}), a && V(a, g, {
|
|
457
455
|
immediate: !0
|
|
458
456
|
}), {
|
|
459
457
|
scrollThreshold: l,
|
|
460
458
|
currentScroll: r,
|
|
461
|
-
currentThreshold:
|
|
462
|
-
isScrollActive:
|
|
459
|
+
currentThreshold: m,
|
|
460
|
+
isScrollActive: S,
|
|
463
461
|
scrollRatio: f,
|
|
464
462
|
// required only for testing
|
|
465
463
|
// probably can be removed
|
|
466
464
|
// later (2 chars chlng)
|
|
467
|
-
isScrollingUp:
|
|
468
|
-
savedScroll:
|
|
465
|
+
isScrollingUp: i,
|
|
466
|
+
savedScroll: _
|
|
469
467
|
};
|
|
470
468
|
}
|
|
471
|
-
const
|
|
469
|
+
const Ze = B({
|
|
472
470
|
scrollBehavior: String,
|
|
473
471
|
modelValue: {
|
|
474
472
|
type: Boolean,
|
|
@@ -480,112 +478,110 @@ const Je = x({
|
|
|
480
478
|
validator: (e) => ["top", "bottom"].includes(e)
|
|
481
479
|
},
|
|
482
480
|
...ae(),
|
|
483
|
-
...
|
|
484
|
-
...
|
|
481
|
+
...Ce(),
|
|
482
|
+
...Ke(),
|
|
485
483
|
height: {
|
|
486
484
|
type: [Number, String],
|
|
487
485
|
default: 64
|
|
488
486
|
}
|
|
489
|
-
}, "VAppBar"),
|
|
487
|
+
}, "VAppBar"), Ge = k()({
|
|
490
488
|
name: "VAppBar",
|
|
491
|
-
props:
|
|
489
|
+
props: Ze(),
|
|
492
490
|
emits: {
|
|
493
491
|
"update:modelValue": (e) => !0
|
|
494
492
|
},
|
|
495
|
-
setup(e,
|
|
493
|
+
setup(e, d) {
|
|
496
494
|
let {
|
|
497
495
|
slots: a
|
|
498
|
-
} =
|
|
499
|
-
const
|
|
500
|
-
const
|
|
496
|
+
} = d;
|
|
497
|
+
const o = A(), u = Re(e, "modelValue"), r = v(() => {
|
|
498
|
+
const s = new Set(e.scrollBehavior?.split(" ") ?? []);
|
|
501
499
|
return {
|
|
502
|
-
hide:
|
|
503
|
-
|
|
504
|
-
inverted:
|
|
505
|
-
collapse:
|
|
506
|
-
elevate:
|
|
507
|
-
fadeImage:
|
|
500
|
+
hide: s.has("hide"),
|
|
501
|
+
fullyHide: s.has("fully-hide"),
|
|
502
|
+
inverted: s.has("inverted"),
|
|
503
|
+
collapse: s.has("collapse"),
|
|
504
|
+
elevate: s.has("elevate"),
|
|
505
|
+
fadeImage: s.has("fade-image")
|
|
508
506
|
// shrink: behavior.has('shrink'),
|
|
509
507
|
};
|
|
510
|
-
}),
|
|
511
|
-
const
|
|
512
|
-
return
|
|
513
|
-
|
|
514
|
-
!c.value;
|
|
508
|
+
}), _ = v(() => {
|
|
509
|
+
const s = r.value;
|
|
510
|
+
return s.hide || s.fullyHide || s.inverted || s.collapse || s.elevate || s.fadeImage || // behavior.shrink ||
|
|
511
|
+
!u.value;
|
|
515
512
|
}), {
|
|
516
|
-
currentScroll:
|
|
517
|
-
scrollThreshold:
|
|
518
|
-
isScrollingUp:
|
|
513
|
+
currentScroll: m,
|
|
514
|
+
scrollThreshold: S,
|
|
515
|
+
isScrollingUp: i,
|
|
519
516
|
scrollRatio: l
|
|
520
|
-
} =
|
|
521
|
-
canScroll:
|
|
522
|
-
}), f = v(() => e.collapse || r.value.collapse && (r.value.inverted ? l.value > 0 : l.value === 0)),
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
const d = s.value?.contentHeight ?? 0, I = s.value?.extensionHeight ?? 0;
|
|
526
|
-
return d + I;
|
|
517
|
+
} = Ye(e, {
|
|
518
|
+
canScroll: _
|
|
519
|
+
}), f = v(() => r.value.hide || r.value.fullyHide), g = v(() => e.collapse || r.value.collapse && (r.value.inverted ? l.value > 0 : l.value === 0)), n = v(() => e.flat || r.value.fullyHide && !u.value || r.value.elevate && (r.value.inverted ? m.value > 0 : m.value === 0)), h = v(() => r.value.fadeImage ? r.value.inverted ? 1 - l.value : l.value : void 0), T = v(() => {
|
|
520
|
+
const s = Number(o.value?.contentHeight ?? e.height), x = Number(o.value?.extensionHeight ?? 0);
|
|
521
|
+
return f.value ? m.value < S.value || r.value.fullyHide ? s + x : s : s + x;
|
|
527
522
|
});
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
523
|
+
we(v(() => !!e.scrollBehavior), () => {
|
|
524
|
+
Ne(() => {
|
|
525
|
+
f.value ? r.value.inverted ? u.value = m.value > S.value : u.value = i.value || m.value < S.value : u.value = !0;
|
|
531
526
|
});
|
|
532
527
|
});
|
|
533
528
|
const {
|
|
534
|
-
ssrBootStyles:
|
|
535
|
-
} =
|
|
536
|
-
layoutItemStyles:
|
|
537
|
-
|
|
529
|
+
ssrBootStyles: C
|
|
530
|
+
} = Me(), {
|
|
531
|
+
layoutItemStyles: R,
|
|
532
|
+
layoutIsReady: w
|
|
533
|
+
} = ze({
|
|
538
534
|
id: e.name,
|
|
539
535
|
order: v(() => parseInt(e.order, 10)),
|
|
540
536
|
position: z(e, "location"),
|
|
541
|
-
layoutSize:
|
|
542
|
-
elementSize:
|
|
543
|
-
active:
|
|
537
|
+
layoutSize: T,
|
|
538
|
+
elementSize: b(void 0),
|
|
539
|
+
active: u,
|
|
544
540
|
absolute: z(e, "absolute")
|
|
545
541
|
});
|
|
546
|
-
return
|
|
547
|
-
const
|
|
548
|
-
return t(
|
|
549
|
-
ref:
|
|
542
|
+
return P(() => {
|
|
543
|
+
const s = K.filterProps(e);
|
|
544
|
+
return t(K, U({
|
|
545
|
+
ref: o,
|
|
550
546
|
class: ["v-app-bar", {
|
|
551
547
|
"v-app-bar--bottom": e.location === "bottom"
|
|
552
548
|
}, e.class],
|
|
553
549
|
style: [{
|
|
554
|
-
...
|
|
555
|
-
"--v-toolbar-image-opacity":
|
|
550
|
+
...R.value,
|
|
551
|
+
"--v-toolbar-image-opacity": h.value,
|
|
556
552
|
height: void 0,
|
|
557
|
-
...
|
|
553
|
+
...C.value
|
|
558
554
|
}, e.style]
|
|
559
|
-
},
|
|
560
|
-
collapse:
|
|
561
|
-
flat:
|
|
555
|
+
}, s, {
|
|
556
|
+
collapse: g.value,
|
|
557
|
+
flat: n.value
|
|
562
558
|
}), a);
|
|
563
|
-
}),
|
|
559
|
+
}), w;
|
|
564
560
|
}
|
|
565
|
-
}),
|
|
561
|
+
}), Je = k()({
|
|
566
562
|
name: "VAppBarTitle",
|
|
567
|
-
props:
|
|
568
|
-
setup(e,
|
|
563
|
+
props: X(),
|
|
564
|
+
setup(e, d) {
|
|
569
565
|
let {
|
|
570
566
|
slots: a
|
|
571
|
-
} =
|
|
572
|
-
return
|
|
567
|
+
} = d;
|
|
568
|
+
return P(() => t(p, U(e, {
|
|
573
569
|
class: "v-app-bar-title"
|
|
574
570
|
}), a)), {};
|
|
575
571
|
}
|
|
576
|
-
}),
|
|
572
|
+
}), tt = {
|
|
577
573
|
__name: "Header",
|
|
578
574
|
setup(e) {
|
|
579
|
-
const
|
|
575
|
+
const d = (
|
|
580
576
|
/** @type {import("@/types").Eodash} */
|
|
581
|
-
|
|
582
|
-
), a =
|
|
583
|
-
return (
|
|
577
|
+
He(Ee)
|
|
578
|
+
), a = d.brand?.name;
|
|
579
|
+
return (o, u) => (Ae(), Ue(Ge, { color: "primary" }, {
|
|
584
580
|
default: O(() => [
|
|
585
|
-
t(
|
|
581
|
+
t(Je, null, {
|
|
586
582
|
default: O(() => [
|
|
587
|
-
|
|
588
|
-
|
|
583
|
+
De(
|
|
584
|
+
je(q(a)),
|
|
589
585
|
1
|
|
590
586
|
/* TEXT */
|
|
591
587
|
)
|
|
@@ -596,7 +592,7 @@ const Je = x({
|
|
|
596
592
|
t(te, {
|
|
597
593
|
class: "mx-12",
|
|
598
594
|
style: { "max-width": "140px" },
|
|
599
|
-
src: q(
|
|
595
|
+
src: q(d).brand?.logo
|
|
600
596
|
}, null, 8, ["src"])
|
|
601
597
|
]),
|
|
602
598
|
_: 1
|
|
@@ -605,5 +601,5 @@ const Je = x({
|
|
|
605
601
|
}
|
|
606
602
|
};
|
|
607
603
|
export {
|
|
608
|
-
|
|
604
|
+
tt as default
|
|
609
605
|
};
|