@eodash/eodash 5.0.0-alpha.2.4 → 5.0.0-alpha.2.6
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 +31 -7
- package/core/client/App.vue +6 -7
- package/core/client/SuspensedDashboard.ce.vue +59 -45
- package/core/client/asWebComponent.d.ts +10 -5
- package/core/client/asWebComponent.js +6 -6
- package/core/client/components/DashboardLayout.vue +63 -21
- package/core/client/components/DynamicWebComponent.vue +44 -44
- package/core/client/components/ErrorAlert.vue +24 -7
- package/core/client/components/Footer.vue +34 -15
- package/core/client/components/Header.vue +10 -5
- package/core/client/components/IframeWrapper.vue +4 -4
- package/core/client/components/Loading.vue +17 -18
- package/core/client/components/MobileLayout.vue +82 -29
- package/core/client/composables/DefineEodash.js +38 -28
- package/core/client/composables/DefineWidgets.js +105 -79
- package/core/client/composables/index.js +43 -141
- package/core/client/eodash.js +46 -39
- package/core/client/main.js +2 -2
- package/core/client/plugins/index.js +11 -9
- package/core/client/plugins/vuetify.js +9 -10
- package/core/client/render.js +4 -5
- package/core/client/store/States.js +8 -13
- package/core/client/store/index.js +14 -11
- package/core/client/store/stac.js +51 -37
- package/core/client/types.d.ts +173 -248
- package/core/client/utils/eodashSTAC.js +151 -66
- package/core/client/utils/helpers.js +18 -20
- package/core/client/utils/index.js +25 -14
- package/core/client/utils/keys.js +2 -2
- package/core/client/views/Dashboard.vue +70 -42
- package/core/client/vite-env.d.ts +19 -17
- package/dist/client/DashboardLayout-BuDcv6LM.js +156 -0
- package/dist/client/{DynamicWebComponent-C4Hotc4H.js → DynamicWebComponent-BEP4rVce.js} +7 -7
- package/dist/client/EodashDatePicker-oFb1zt5E.js +1211 -0
- package/dist/client/EodashItemFilter-BElmgrST.js +63 -0
- package/dist/client/{EodashMap-CGrQjZ1P.js → EodashMap-DXyOgcEd.js} +11333 -14025
- package/dist/client/Footer-CoPx6UXQ.js +115 -0
- package/dist/client/Header-C-zX31Ys.js +635 -0
- package/dist/client/{IframeWrapper-Cg3GMmfW.js → IframeWrapper-2w2ye0zM.js} +4 -4
- package/dist/client/MobileLayout-C9OVcP12.js +945 -0
- package/dist/client/{VMain-BHYlmRic.js → VMain-Dm43jd43.js} +8 -8
- package/dist/client/{WidgetsContainer-dje9QSk0.js → WidgetsContainer-BS87sLqk.js} +12 -5
- package/dist/client/asWebComponent-CpQUVi2N.js +20135 -0
- package/dist/client/{basedecoder-Qm25PwVp-CHo5Pomv.js → basedecoder-DHcBySSe-BmCFNFnw.js} +5 -6
- package/dist/client/{decoder-HRvnjnEI-BQ2rajuJ.js → decoder-CP4lv0Kb-BHrv68IA.js} +1 -1
- package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +10 -0
- package/dist/client/eo-dash.js +3 -3
- package/dist/client/eodashSTAC-Q7kbX1Gy.js +2788 -0
- package/dist/client/{eox-itemfilter-DcQkRD2l.js → eox-itemfilter-TaBxgqq_.js} +1002 -974
- package/dist/client/{eox-map-C3DL31fp.js → eox-map-L7abwKTR.js} +5677 -5695
- package/dist/client/forwardRefs-BVFQ82G4.js +183 -0
- package/dist/client/{index-CaDDfJYE.js → index-dOzyv_xR.js} +43 -74
- package/dist/client/{jpeg-DNfUpLwy-Fjan-04T.js → jpeg-BAgeD1d3-oeHbFPUL.js} +5 -6
- package/dist/client/{lerc-_E46UbWQ-Beu35ovS.js → lerc-DzVumYtB-rm1Xco54.js} +5 -7
- package/dist/client/{lzw-BOMhmEDy-Dboc93VO.js → lzw-LAGDNbSC-DkP96qO9.js} +1 -1
- package/dist/client/{packbits-DaUD6MLm-Bu1PoTGa.js → packbits-BlDR4Kj5-C66n1-zr.js} +1 -1
- package/dist/client/{pako.esm-C3kYPGGQ-BMki8cQY.js → pako.esm-CB1uQYY0-DB0PYm1P.js} +6 -12
- package/dist/client/{raw-CcGKjn8q-DFOt-i8n.js → raw-CMGvRjfu-BRi6E4i1.js} +1 -1
- package/dist/client/{ssrBoot-Dd7m-btU.js → ssrBoot-L9KejErM.js} +3 -3
- package/dist/client/style.css +2 -2
- package/dist/client/transition-DCePIwYR.js +34 -0
- package/dist/client/{webfontloader-CyOFAuFB.js → webfontloader-qotgY98I.js} +56 -92
- package/dist/client/{webimage-D2c098k3-DLj1LQxB.js → webimage-BM_pbLN3-L2cGWK5l.js} +1 -1
- package/dist/node/cli.js +3 -3
- package/dist/node/types.d.ts +32 -38
- package/package.json +13 -14
- package/widgets/EodashDatePicker.vue +145 -41
- package/widgets/EodashItemFilter.vue +41 -22
- package/widgets/EodashMap.vue +87 -20
- package/widgets/WidgetsContainer.vue +45 -27
- package/dist/client/DashboardLayout-ZaSRMD1M.js +0 -149
- package/dist/client/EodashDatePicker-C4kKjxKy.js +0 -1653
- package/dist/client/EodashItemFilter-cBHC0YEM.js +0 -51
- package/dist/client/Footer-pS636dEP.js +0 -118
- package/dist/client/Header-DQuaLdjl.js +0 -605
- package/dist/client/MobileLayout-BLXFBWI_.js +0 -987
- package/dist/client/asWebComponent-Bvb3xkxI.js +0 -13311
- package/dist/client/deflate-Be2Arps5-hDqMz3RA.js +0 -10
- package/dist/client/forwardRefs-Bxeu9Obx.js +0 -142
- package/dist/client/index-DlNICb3T.js +0 -34
|
@@ -1,605 +0,0 @@
|
|
|
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({
|
|
6
|
-
text: String,
|
|
7
|
-
...H(),
|
|
8
|
-
...Y()
|
|
9
|
-
}, "VToolbarTitle"), p = k()({
|
|
10
|
-
name: "VToolbarTitle",
|
|
11
|
-
props: X(),
|
|
12
|
-
setup(e, d) {
|
|
13
|
-
let {
|
|
14
|
-
slots: a
|
|
15
|
-
} = d;
|
|
16
|
-
return P(() => {
|
|
17
|
-
const o = !!(a.default || a.text || e.text);
|
|
18
|
-
return t(e.tag, {
|
|
19
|
-
class: ["v-toolbar-title", e.class],
|
|
20
|
-
style: e.style
|
|
21
|
-
}, {
|
|
22
|
-
default: () => [o && t("div", {
|
|
23
|
-
class: "v-toolbar-title__placeholder"
|
|
24
|
-
}, [a.text ? a.text() : e.text, a.default?.()])]
|
|
25
|
-
});
|
|
26
|
-
}), {};
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
function Oe(e) {
|
|
30
|
-
return {
|
|
31
|
-
aspectStyles: v(() => {
|
|
32
|
-
const d = Number(e.aspectRatio);
|
|
33
|
-
return d ? {
|
|
34
|
-
paddingBottom: String(1 / d * 100) + "%"
|
|
35
|
-
} : void 0;
|
|
36
|
-
})
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
const ee = B({
|
|
40
|
-
aspectRatio: [String, Number],
|
|
41
|
-
contentClass: null,
|
|
42
|
-
inline: Boolean,
|
|
43
|
-
...H(),
|
|
44
|
-
...ie()
|
|
45
|
-
}, "VResponsive"), $ = k()({
|
|
46
|
-
name: "VResponsive",
|
|
47
|
-
props: ee(),
|
|
48
|
-
setup(e, d) {
|
|
49
|
-
let {
|
|
50
|
-
slots: a
|
|
51
|
-
} = d;
|
|
52
|
-
const {
|
|
53
|
-
aspectStyles: o
|
|
54
|
-
} = Oe(e), {
|
|
55
|
-
dimensionStyles: u
|
|
56
|
-
} = ue(e);
|
|
57
|
-
return P(() => t("div", {
|
|
58
|
-
class: ["v-responsive", {
|
|
59
|
-
"v-responsive--inline": e.inline
|
|
60
|
-
}, e.class],
|
|
61
|
-
style: [u.value, e.style]
|
|
62
|
-
}, [t("div", {
|
|
63
|
-
class: "v-responsive__sizer",
|
|
64
|
-
style: o.value
|
|
65
|
-
}, null), a.additional?.(), a.default && t("div", {
|
|
66
|
-
class: ["v-responsive__content", e.contentClass]
|
|
67
|
-
}, [a.default()])])), {};
|
|
68
|
-
}
|
|
69
|
-
}), qe = B({
|
|
70
|
-
alt: String,
|
|
71
|
-
cover: Boolean,
|
|
72
|
-
color: String,
|
|
73
|
-
draggable: {
|
|
74
|
-
type: [Boolean, String],
|
|
75
|
-
default: void 0
|
|
76
|
-
},
|
|
77
|
-
eager: Boolean,
|
|
78
|
-
gradient: String,
|
|
79
|
-
lazySrc: String,
|
|
80
|
-
options: {
|
|
81
|
-
type: Object,
|
|
82
|
-
// For more information on types, navigate to:
|
|
83
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
|
|
84
|
-
default: () => ({
|
|
85
|
-
root: void 0,
|
|
86
|
-
rootMargin: void 0,
|
|
87
|
-
threshold: void 0
|
|
88
|
-
})
|
|
89
|
-
},
|
|
90
|
-
sizes: String,
|
|
91
|
-
src: {
|
|
92
|
-
type: [String, Object],
|
|
93
|
-
default: ""
|
|
94
|
-
},
|
|
95
|
-
crossorigin: String,
|
|
96
|
-
referrerpolicy: String,
|
|
97
|
-
srcset: String,
|
|
98
|
-
position: String,
|
|
99
|
-
...ee(),
|
|
100
|
-
...H(),
|
|
101
|
-
...Z(),
|
|
102
|
-
...We()
|
|
103
|
-
}, "VImg"), te = k()({
|
|
104
|
-
name: "VImg",
|
|
105
|
-
directives: {
|
|
106
|
-
intersect: Le
|
|
107
|
-
},
|
|
108
|
-
props: qe(),
|
|
109
|
-
emits: {
|
|
110
|
-
loadstart: (e) => !0,
|
|
111
|
-
load: (e) => !0,
|
|
112
|
-
error: (e) => !0
|
|
113
|
-
},
|
|
114
|
-
setup(e, d) {
|
|
115
|
-
let {
|
|
116
|
-
emit: a,
|
|
117
|
-
slots: o
|
|
118
|
-
} = d;
|
|
119
|
-
const {
|
|
120
|
-
backgroundColorClasses: u,
|
|
121
|
-
backgroundColorStyles: r
|
|
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" ? {
|
|
125
|
-
src: e.src.src,
|
|
126
|
-
srcset: e.srcset || e.src.srcset,
|
|
127
|
-
lazySrc: e.lazySrc || e.src.lazySrc,
|
|
128
|
-
aspect: Number(e.aspectRatio || e.src.aspect || 0)
|
|
129
|
-
} : {
|
|
130
|
-
src: e.src,
|
|
131
|
-
srcset: e.srcset,
|
|
132
|
-
lazySrc: e.lazySrc,
|
|
133
|
-
aspect: Number(e.aspectRatio || 0)
|
|
134
|
-
}), h = v(() => n.value.aspect || f.value / g.value || 0);
|
|
135
|
-
V(() => e.src, () => {
|
|
136
|
-
T(l.value !== "idle");
|
|
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)) {
|
|
142
|
-
if (l.value = "loading", n.value.lazySrc) {
|
|
143
|
-
const y = new Image();
|
|
144
|
-
y.src = n.value.lazySrc, x(y, null);
|
|
145
|
-
}
|
|
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")
|
|
151
|
-
return;
|
|
152
|
-
h.value || x(i.value, null), l.value === "loading" && C();
|
|
153
|
-
} else
|
|
154
|
-
h.value || x(i.value), w();
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
function C() {
|
|
160
|
-
m.isUnmounted || (w(), x(i.value), l.value = "loaded", a("load", i.value?.currentSrc || n.value.src));
|
|
161
|
-
}
|
|
162
|
-
function R() {
|
|
163
|
-
m.isUnmounted || (l.value = "error", a("error", i.value?.currentSrc || n.value.src));
|
|
164
|
-
}
|
|
165
|
-
function w() {
|
|
166
|
-
const c = i.value;
|
|
167
|
-
c && (S.value = c.currentSrc || c.src);
|
|
168
|
-
}
|
|
169
|
-
let s = -1;
|
|
170
|
-
Q(() => {
|
|
171
|
-
clearTimeout(s);
|
|
172
|
-
});
|
|
173
|
-
function x(c) {
|
|
174
|
-
let y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100;
|
|
175
|
-
const W = () => {
|
|
176
|
-
if (clearTimeout(s), m.isUnmounted)
|
|
177
|
-
return;
|
|
178
|
-
const {
|
|
179
|
-
naturalHeight: F,
|
|
180
|
-
naturalWidth: 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);
|
|
183
|
-
};
|
|
184
|
-
W();
|
|
185
|
-
}
|
|
186
|
-
const D = v(() => ({
|
|
187
|
-
"v-img__img--cover": e.cover,
|
|
188
|
-
"v-img__img--contain": !e.cover
|
|
189
|
-
})), le = () => {
|
|
190
|
-
if (!n.value.src || l.value === "idle")
|
|
191
|
-
return null;
|
|
192
|
-
const c = t("img", {
|
|
193
|
-
class: ["v-img__img", D.value],
|
|
194
|
-
style: {
|
|
195
|
-
objectPosition: e.position
|
|
196
|
-
},
|
|
197
|
-
src: n.value.src,
|
|
198
|
-
srcset: n.value.srcset,
|
|
199
|
-
alt: e.alt,
|
|
200
|
-
crossorigin: e.crossorigin,
|
|
201
|
-
referrerpolicy: e.referrerpolicy,
|
|
202
|
-
draggable: e.draggable,
|
|
203
|
-
sizes: e.sizes,
|
|
204
|
-
ref: i,
|
|
205
|
-
onLoad: C,
|
|
206
|
-
onError: R
|
|
207
|
-
}, null), y = o.sources?.();
|
|
208
|
-
return t(N, {
|
|
209
|
-
transition: e.transition,
|
|
210
|
-
appear: !0
|
|
211
|
-
}, {
|
|
212
|
-
default: () => [M(y ? t("picture", {
|
|
213
|
-
class: "v-img__picture"
|
|
214
|
-
}, [y, c]) : c, [[he, l.value === "loaded"]])]
|
|
215
|
-
});
|
|
216
|
-
}, ne = () => t(N, {
|
|
217
|
-
transition: e.transition
|
|
218
|
-
}, {
|
|
219
|
-
default: () => [n.value.lazySrc && l.value !== "loaded" && t("img", {
|
|
220
|
-
class: ["v-img__img", "v-img__img--preload", D.value],
|
|
221
|
-
style: {
|
|
222
|
-
objectPosition: e.position
|
|
223
|
-
},
|
|
224
|
-
src: n.value.lazySrc,
|
|
225
|
-
alt: e.alt,
|
|
226
|
-
crossorigin: e.crossorigin,
|
|
227
|
-
referrerpolicy: e.referrerpolicy,
|
|
228
|
-
draggable: e.draggable
|
|
229
|
-
}, null)]
|
|
230
|
-
}), re = () => o.placeholder ? t(N, {
|
|
231
|
-
transition: e.transition,
|
|
232
|
-
appear: !0
|
|
233
|
-
}, {
|
|
234
|
-
default: () => [(l.value === "loading" || l.value === "error" && !o.error) && t("div", {
|
|
235
|
-
class: "v-img__placeholder"
|
|
236
|
-
}, [o.placeholder()])]
|
|
237
|
-
}) : null, se = () => o.error ? t(N, {
|
|
238
|
-
transition: e.transition,
|
|
239
|
-
appear: !0
|
|
240
|
-
}, {
|
|
241
|
-
default: () => [l.value === "error" && t("div", {
|
|
242
|
-
class: "v-img__error"
|
|
243
|
-
}, [o.error()])]
|
|
244
|
-
}) : null, oe = () => e.gradient ? t("div", {
|
|
245
|
-
class: "v-img__gradient",
|
|
246
|
-
style: {
|
|
247
|
-
backgroundImage: `linear-gradient(${e.gradient})`
|
|
248
|
-
}
|
|
249
|
-
}, null) : null, j = b(!1);
|
|
250
|
-
{
|
|
251
|
-
const c = V(h, (y) => {
|
|
252
|
-
y && (requestAnimationFrame(() => {
|
|
253
|
-
requestAnimationFrame(() => {
|
|
254
|
-
j.value = !0;
|
|
255
|
-
});
|
|
256
|
-
}), c());
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
return P(() => {
|
|
260
|
-
const c = $.filterProps(e);
|
|
261
|
-
return M(t($, U({
|
|
262
|
-
class: ["v-img", {
|
|
263
|
-
"v-img--booting": !j.value
|
|
264
|
-
}, u.value, _.value, e.class],
|
|
265
|
-
style: [{
|
|
266
|
-
width: I(e.width === "auto" ? f.value : e.width)
|
|
267
|
-
}, r.value, e.style]
|
|
268
|
-
}, c, {
|
|
269
|
-
aspectRatio: h.value,
|
|
270
|
-
"aria-label": e.alt,
|
|
271
|
-
role: e.alt ? "img" : void 0
|
|
272
|
-
}), {
|
|
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"), {
|
|
276
|
-
handler: T,
|
|
277
|
-
options: e.options
|
|
278
|
-
}, null, {
|
|
279
|
-
once: !0
|
|
280
|
-
}]]);
|
|
281
|
-
}), {
|
|
282
|
-
currentSrc: S,
|
|
283
|
-
image: i,
|
|
284
|
-
state: l,
|
|
285
|
-
naturalWidth: f,
|
|
286
|
-
naturalHeight: g
|
|
287
|
-
};
|
|
288
|
-
}
|
|
289
|
-
}), $e = [null, "prominent", "default", "comfortable", "compact"], ae = B({
|
|
290
|
-
absolute: Boolean,
|
|
291
|
-
collapse: Boolean,
|
|
292
|
-
color: String,
|
|
293
|
-
density: {
|
|
294
|
-
type: String,
|
|
295
|
-
default: "default",
|
|
296
|
-
validator: (e) => $e.includes(e)
|
|
297
|
-
},
|
|
298
|
-
extended: Boolean,
|
|
299
|
-
extensionHeight: {
|
|
300
|
-
type: [Number, String],
|
|
301
|
-
default: 48
|
|
302
|
-
},
|
|
303
|
-
flat: Boolean,
|
|
304
|
-
floating: Boolean,
|
|
305
|
-
height: {
|
|
306
|
-
type: [Number, String],
|
|
307
|
-
default: 64
|
|
308
|
-
},
|
|
309
|
-
image: String,
|
|
310
|
-
title: String,
|
|
311
|
-
...ye(),
|
|
312
|
-
...H(),
|
|
313
|
-
...be(),
|
|
314
|
-
...Z(),
|
|
315
|
-
...Y({
|
|
316
|
-
tag: "header"
|
|
317
|
-
}),
|
|
318
|
-
...Se()
|
|
319
|
-
}, "VToolbar"), K = k()({
|
|
320
|
-
name: "VToolbar",
|
|
321
|
-
props: ae(),
|
|
322
|
-
setup(e, d) {
|
|
323
|
-
let {
|
|
324
|
-
slots: a
|
|
325
|
-
} = d;
|
|
326
|
-
const {
|
|
327
|
-
backgroundColorClasses: o,
|
|
328
|
-
backgroundColorStyles: u
|
|
329
|
-
} = G(z(e, "color")), {
|
|
330
|
-
borderClasses: r
|
|
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({
|
|
341
|
-
VBtn: {
|
|
342
|
-
variant: "text"
|
|
343
|
-
}
|
|
344
|
-
}), P(() => {
|
|
345
|
-
const n = !!(e.title || a.title), h = !!(a.image || e.image), T = a.extension?.();
|
|
346
|
-
return l.value = !!(e.extended || T), t(e.tag, {
|
|
347
|
-
class: ["v-toolbar", {
|
|
348
|
-
"v-toolbar--absolute": e.absolute,
|
|
349
|
-
"v-toolbar--collapse": e.collapse,
|
|
350
|
-
"v-toolbar--flat": e.flat,
|
|
351
|
-
"v-toolbar--floating": e.floating,
|
|
352
|
-
[`v-toolbar--density-${e.density}`]: !0
|
|
353
|
-
}, o.value, r.value, _.value, m.value, S.value, i.value, e.class],
|
|
354
|
-
style: [u.value, e.style]
|
|
355
|
-
}, {
|
|
356
|
-
default: () => [h && t("div", {
|
|
357
|
-
key: "image",
|
|
358
|
-
class: "v-toolbar__image"
|
|
359
|
-
}, [a.image ? t(E, {
|
|
360
|
-
key: "image-defaults",
|
|
361
|
-
disabled: !e.image,
|
|
362
|
-
defaults: {
|
|
363
|
-
VImg: {
|
|
364
|
-
cover: !0,
|
|
365
|
-
src: e.image
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}, a.image) : t(te, {
|
|
369
|
-
key: "image-img",
|
|
370
|
-
cover: !0,
|
|
371
|
-
src: e.image
|
|
372
|
-
}, null)]), t(E, {
|
|
373
|
-
defaults: {
|
|
374
|
-
VTabs: {
|
|
375
|
-
height: I(f.value)
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}, {
|
|
379
|
-
default: () => [t("div", {
|
|
380
|
-
class: "v-toolbar__content",
|
|
381
|
-
style: {
|
|
382
|
-
height: I(f.value)
|
|
383
|
-
}
|
|
384
|
-
}, [a.prepend && t("div", {
|
|
385
|
-
class: "v-toolbar__prepend"
|
|
386
|
-
}, [a.prepend?.()]), n && t(p, {
|
|
387
|
-
key: "title",
|
|
388
|
-
text: e.title
|
|
389
|
-
}, {
|
|
390
|
-
text: a.title
|
|
391
|
-
}), a.default?.(), a.append && t("div", {
|
|
392
|
-
class: "v-toolbar__append"
|
|
393
|
-
}, [a.append?.()])])]
|
|
394
|
-
}), t(E, {
|
|
395
|
-
defaults: {
|
|
396
|
-
VTabs: {
|
|
397
|
-
height: I(g.value)
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}, {
|
|
401
|
-
default: () => [t(Fe, null, {
|
|
402
|
-
default: () => [l.value && t("div", {
|
|
403
|
-
class: "v-toolbar__extension",
|
|
404
|
-
style: {
|
|
405
|
-
height: I(g.value)
|
|
406
|
-
}
|
|
407
|
-
}, [T])]
|
|
408
|
-
})]
|
|
409
|
-
})]
|
|
410
|
-
});
|
|
411
|
-
}), {
|
|
412
|
-
contentHeight: f,
|
|
413
|
-
extensionHeight: g
|
|
414
|
-
};
|
|
415
|
-
}
|
|
416
|
-
}), Ke = B({
|
|
417
|
-
scrollTarget: {
|
|
418
|
-
type: String
|
|
419
|
-
},
|
|
420
|
-
scrollThreshold: {
|
|
421
|
-
type: [String, Number],
|
|
422
|
-
default: 300
|
|
423
|
-
}
|
|
424
|
-
}, "scroll");
|
|
425
|
-
function Ye(e) {
|
|
426
|
-
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
427
|
-
const {
|
|
428
|
-
canScroll: a
|
|
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));
|
|
434
|
-
};
|
|
435
|
-
return V(i, () => {
|
|
436
|
-
_.value = _.value || r.value;
|
|
437
|
-
}), V(S, () => {
|
|
438
|
-
_.value = 0;
|
|
439
|
-
}), Pe(() => {
|
|
440
|
-
V(() => e.scrollTarget, (n) => {
|
|
441
|
-
const h = n ? document.querySelector(n) : window;
|
|
442
|
-
if (!h) {
|
|
443
|
-
Ie(`Unable to locate element with identifier ${n}`);
|
|
444
|
-
return;
|
|
445
|
-
}
|
|
446
|
-
h !== u.value && (u.value?.removeEventListener("scroll", g), u.value = h, u.value.addEventListener("scroll", g, {
|
|
447
|
-
passive: !0
|
|
448
|
-
}));
|
|
449
|
-
}, {
|
|
450
|
-
immediate: !0
|
|
451
|
-
});
|
|
452
|
-
}), Q(() => {
|
|
453
|
-
u.value?.removeEventListener("scroll", g);
|
|
454
|
-
}), a && V(a, g, {
|
|
455
|
-
immediate: !0
|
|
456
|
-
}), {
|
|
457
|
-
scrollThreshold: l,
|
|
458
|
-
currentScroll: r,
|
|
459
|
-
currentThreshold: m,
|
|
460
|
-
isScrollActive: S,
|
|
461
|
-
scrollRatio: f,
|
|
462
|
-
// required only for testing
|
|
463
|
-
// probably can be removed
|
|
464
|
-
// later (2 chars chlng)
|
|
465
|
-
isScrollingUp: i,
|
|
466
|
-
savedScroll: _
|
|
467
|
-
};
|
|
468
|
-
}
|
|
469
|
-
const Ze = B({
|
|
470
|
-
scrollBehavior: String,
|
|
471
|
-
modelValue: {
|
|
472
|
-
type: Boolean,
|
|
473
|
-
default: !0
|
|
474
|
-
},
|
|
475
|
-
location: {
|
|
476
|
-
type: String,
|
|
477
|
-
default: "top",
|
|
478
|
-
validator: (e) => ["top", "bottom"].includes(e)
|
|
479
|
-
},
|
|
480
|
-
...ae(),
|
|
481
|
-
...Ce(),
|
|
482
|
-
...Ke(),
|
|
483
|
-
height: {
|
|
484
|
-
type: [Number, String],
|
|
485
|
-
default: 64
|
|
486
|
-
}
|
|
487
|
-
}, "VAppBar"), Ge = k()({
|
|
488
|
-
name: "VAppBar",
|
|
489
|
-
props: Ze(),
|
|
490
|
-
emits: {
|
|
491
|
-
"update:modelValue": (e) => !0
|
|
492
|
-
},
|
|
493
|
-
setup(e, d) {
|
|
494
|
-
let {
|
|
495
|
-
slots: a
|
|
496
|
-
} = d;
|
|
497
|
-
const o = A(), u = Re(e, "modelValue"), r = v(() => {
|
|
498
|
-
const s = new Set(e.scrollBehavior?.split(" ") ?? []);
|
|
499
|
-
return {
|
|
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")
|
|
506
|
-
// shrink: behavior.has('shrink'),
|
|
507
|
-
};
|
|
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;
|
|
512
|
-
}), {
|
|
513
|
-
currentScroll: m,
|
|
514
|
-
scrollThreshold: S,
|
|
515
|
-
isScrollingUp: i,
|
|
516
|
-
scrollRatio: l
|
|
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;
|
|
522
|
-
});
|
|
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;
|
|
526
|
-
});
|
|
527
|
-
});
|
|
528
|
-
const {
|
|
529
|
-
ssrBootStyles: C
|
|
530
|
-
} = Me(), {
|
|
531
|
-
layoutItemStyles: R,
|
|
532
|
-
layoutIsReady: w
|
|
533
|
-
} = ze({
|
|
534
|
-
id: e.name,
|
|
535
|
-
order: v(() => parseInt(e.order, 10)),
|
|
536
|
-
position: z(e, "location"),
|
|
537
|
-
layoutSize: T,
|
|
538
|
-
elementSize: b(void 0),
|
|
539
|
-
active: u,
|
|
540
|
-
absolute: z(e, "absolute")
|
|
541
|
-
});
|
|
542
|
-
return P(() => {
|
|
543
|
-
const s = K.filterProps(e);
|
|
544
|
-
return t(K, U({
|
|
545
|
-
ref: o,
|
|
546
|
-
class: ["v-app-bar", {
|
|
547
|
-
"v-app-bar--bottom": e.location === "bottom"
|
|
548
|
-
}, e.class],
|
|
549
|
-
style: [{
|
|
550
|
-
...R.value,
|
|
551
|
-
"--v-toolbar-image-opacity": h.value,
|
|
552
|
-
height: void 0,
|
|
553
|
-
...C.value
|
|
554
|
-
}, e.style]
|
|
555
|
-
}, s, {
|
|
556
|
-
collapse: g.value,
|
|
557
|
-
flat: n.value
|
|
558
|
-
}), a);
|
|
559
|
-
}), w;
|
|
560
|
-
}
|
|
561
|
-
}), Je = k()({
|
|
562
|
-
name: "VAppBarTitle",
|
|
563
|
-
props: X(),
|
|
564
|
-
setup(e, d) {
|
|
565
|
-
let {
|
|
566
|
-
slots: a
|
|
567
|
-
} = d;
|
|
568
|
-
return P(() => t(p, U(e, {
|
|
569
|
-
class: "v-app-bar-title"
|
|
570
|
-
}), a)), {};
|
|
571
|
-
}
|
|
572
|
-
}), tt = {
|
|
573
|
-
__name: "Header",
|
|
574
|
-
setup(e) {
|
|
575
|
-
const d = (
|
|
576
|
-
/** @type {import("@/types").Eodash} */
|
|
577
|
-
He(Ee)
|
|
578
|
-
), a = d.brand?.name;
|
|
579
|
-
return (o, u) => (Ae(), Ue(Ge, { color: "primary" }, {
|
|
580
|
-
default: O(() => [
|
|
581
|
-
t(Je, null, {
|
|
582
|
-
default: O(() => [
|
|
583
|
-
De(
|
|
584
|
-
je(q(a)),
|
|
585
|
-
1
|
|
586
|
-
/* TEXT */
|
|
587
|
-
)
|
|
588
|
-
]),
|
|
589
|
-
_: 1
|
|
590
|
-
/* STABLE */
|
|
591
|
-
}),
|
|
592
|
-
t(te, {
|
|
593
|
-
class: "mx-12",
|
|
594
|
-
style: { "max-width": "140px" },
|
|
595
|
-
src: q(d).brand?.logo
|
|
596
|
-
}, null, 8, ["src"])
|
|
597
|
-
]),
|
|
598
|
-
_: 1
|
|
599
|
-
/* STABLE */
|
|
600
|
-
}));
|
|
601
|
-
}
|
|
602
|
-
};
|
|
603
|
-
export {
|
|
604
|
-
tt as default
|
|
605
|
-
};
|