@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.
- package/core/client/components/DashboardLayout.vue +1 -2
- package/core/client/components/MobileLayout.vue +1 -2
- package/core/client/composables/DefineWidgets.js +1 -1
- package/core/client/composables/index.js +12 -0
- package/core/client/eodash.js +15 -2
- package/core/client/store/Actions.js +14 -0
- package/core/client/types.d.ts +6 -1
- package/core/client/utils/index.js +12 -0
- package/dist/client/{DashboardLayout-BuDcv6LM.js → DashboardLayout-CKOExc7r.js} +4 -4
- package/dist/client/{DynamicWebComponent-BEP4rVce.js → DynamicWebComponent-m1Zbbw6n.js} +4 -4
- package/dist/client/EodashDatePicker-CGdJRGZJ.js +252 -0
- package/dist/client/{EodashItemFilter-BElmgrST.js → EodashItemFilter-BjM_LHaE.js} +2 -2
- package/dist/client/EodashMap-61UMC8sv.js +86917 -0
- package/dist/client/EodashMapBtns-DVITfAFx.js +36 -0
- package/dist/client/ExportState-DhpK09GR.js +558 -0
- package/dist/client/{Footer-CoPx6UXQ.js → Footer-CIwjaddz.js} +11 -11
- package/dist/client/Header-BcM-pZFi.js +350 -0
- package/dist/client/{IframeWrapper-2w2ye0zM.js → IframeWrapper-CAe6HPqe.js} +1 -1
- package/dist/client/{MobileLayout-C9OVcP12.js → MobileLayout-DcZOQX8r.js} +11 -11
- package/dist/client/PopUp-DCaITceG.js +300 -0
- package/dist/client/VImg-C-I_7puM.js +291 -0
- package/dist/client/{VMain-Dm43jd43.js → VMain-Cd3P0YTG.js} +2 -2
- package/dist/client/VOverlay-AcvFgk39.js +967 -0
- package/dist/client/{WidgetsContainer-BS87sLqk.js → WidgetsContainer-B0-q0EMO.js} +1 -1
- package/dist/client/{asWebComponent-CpQUVi2N.js → asWebComponent-zuKR9I1w.js} +5939 -5713
- package/dist/client/{decoder-CP4lv0Kb-BHrv68IA.js → decoder-CP4lv0Kb-DdKalImK.js} +1 -1
- package/dist/client/eo-dash.js +4 -4
- package/dist/client/{eodashSTAC-Q7kbX1Gy.js → eodashSTAC-DGB50vNk.js} +1 -1
- package/dist/client/{forwardRefs-BVFQ82G4.js → forwardRefs-BnxE4iKQ.js} +35 -33
- package/dist/client/{index-dOzyv_xR.js → index-hSIi5Ygk.js} +8 -8
- package/dist/client/{lerc-DzVumYtB-rm1Xco54.js → lerc-DzVumYtB-cTUap6k_.js} +1 -1
- package/dist/client/{ssrBoot-L9KejErM.js → ssrBoot-D3KF5Thc.js} +1 -1
- package/dist/client/style.css +2 -2
- package/dist/client/{transition-DCePIwYR.js → transition-D3a4tiJv.js} +6 -6
- package/dist/node/cli.js +2 -2
- package/package.json +2 -2
- package/widgets/EodashMap.vue +33 -29
- package/widgets/EodashMapBtns.vue +33 -0
- package/widgets/ExportState.vue +112 -0
- package/widgets/PopUp.vue +40 -0
- package/dist/client/EodashDatePicker-oFb1zt5E.js +0 -1211
- package/dist/client/EodashMap-DXyOgcEd.js +0 -50707
- package/dist/client/Header-C-zX31Ys.js +0 -635
- package/dist/client/eox-map-L7abwKTR.js +0 -36260
|
@@ -1,635 +0,0 @@
|
|
|
1
|
-
import { ae as Q, p as B, e as z, f as Y, g as k, a as I, b as a, ac as ce, ad as de, c as f, af as Z, Q as G, R as N, ag as J, ah as ve, s as T, r as A, w as V, ai as me, D as ge, aj as X, t as L, v as fe, F as he, d as j, C as P, B as be, ak as ye, al as Se, h as _e, am as Te, an as xe, i as Ve, j as Be, S as ke, ao as E, ap as Ie, Z as Pe, aq as we, ar as Ce, y as He, as as Re, at as Ne, au as ze, _ as Ee, x as Ae, W as je, $ as Ue, a0 as De, a1 as M, a8 as We, aa as $e, a3 as O } from "./asWebComponent-CpQUVi2N.js";
|
|
2
|
-
import { m as Fe, M as R } from "./transition-DCePIwYR.js";
|
|
3
|
-
import { a as Le } from "./index-dOzyv_xR.js";
|
|
4
|
-
import { u as Me } from "./ssrBoot-L9KejErM.js";
|
|
5
|
-
function Oe(e, n) {
|
|
6
|
-
if (!Q) return;
|
|
7
|
-
const t = n.modifiers || {}, r = n.value, {
|
|
8
|
-
handler: m,
|
|
9
|
-
options: s
|
|
10
|
-
} = typeof r == "object" ? r : {
|
|
11
|
-
handler: r,
|
|
12
|
-
options: {}
|
|
13
|
-
}, h = new IntersectionObserver(function() {
|
|
14
|
-
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], y = arguments.length > 1 ? arguments[1] : void 0;
|
|
15
|
-
const o = e._observe?.[n.instance.$.uid];
|
|
16
|
-
if (!o) return;
|
|
17
|
-
const l = c.some((g) => g.isIntersecting);
|
|
18
|
-
m && (!t.quiet || o.init) && (!t.once || l || o.init) && m(l, c, y), l && t.once ? p(e, n) : o.init = !0;
|
|
19
|
-
}, s);
|
|
20
|
-
e._observe = Object(e._observe), e._observe[n.instance.$.uid] = {
|
|
21
|
-
init: !1,
|
|
22
|
-
observer: h
|
|
23
|
-
}, h.observe(e);
|
|
24
|
-
}
|
|
25
|
-
function p(e, n) {
|
|
26
|
-
const t = e._observe?.[n.instance.$.uid];
|
|
27
|
-
t && (t.observer.unobserve(e), delete e._observe[n.instance.$.uid]);
|
|
28
|
-
}
|
|
29
|
-
const qe = {
|
|
30
|
-
mounted: Oe,
|
|
31
|
-
unmounted: p
|
|
32
|
-
}, ee = B({
|
|
33
|
-
text: String,
|
|
34
|
-
...z(),
|
|
35
|
-
...Y()
|
|
36
|
-
}, "VToolbarTitle"), te = k()({
|
|
37
|
-
name: "VToolbarTitle",
|
|
38
|
-
props: ee(),
|
|
39
|
-
setup(e, n) {
|
|
40
|
-
let {
|
|
41
|
-
slots: t
|
|
42
|
-
} = n;
|
|
43
|
-
return I(() => {
|
|
44
|
-
const r = !!(t.default || t.text || e.text);
|
|
45
|
-
return a(e.tag, {
|
|
46
|
-
class: ["v-toolbar-title", e.class],
|
|
47
|
-
style: e.style
|
|
48
|
-
}, {
|
|
49
|
-
default: () => [r && a("div", {
|
|
50
|
-
class: "v-toolbar-title__placeholder"
|
|
51
|
-
}, [t.text ? t.text() : e.text, t.default?.()])]
|
|
52
|
-
});
|
|
53
|
-
}), {};
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
function Ke(e) {
|
|
57
|
-
return {
|
|
58
|
-
aspectStyles: f(() => {
|
|
59
|
-
const n = Number(e.aspectRatio);
|
|
60
|
-
return n ? {
|
|
61
|
-
paddingBottom: String(1 / n * 100) + "%"
|
|
62
|
-
} : void 0;
|
|
63
|
-
})
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
const ae = B({
|
|
67
|
-
aspectRatio: [String, Number],
|
|
68
|
-
contentClass: null,
|
|
69
|
-
inline: Boolean,
|
|
70
|
-
...z(),
|
|
71
|
-
...ce()
|
|
72
|
-
}, "VResponsive"), q = k()({
|
|
73
|
-
name: "VResponsive",
|
|
74
|
-
props: ae(),
|
|
75
|
-
setup(e, n) {
|
|
76
|
-
let {
|
|
77
|
-
slots: t
|
|
78
|
-
} = n;
|
|
79
|
-
const {
|
|
80
|
-
aspectStyles: r
|
|
81
|
-
} = Ke(e), {
|
|
82
|
-
dimensionStyles: m
|
|
83
|
-
} = de(e);
|
|
84
|
-
return I(() => a("div", {
|
|
85
|
-
class: ["v-responsive", {
|
|
86
|
-
"v-responsive--inline": e.inline
|
|
87
|
-
}, e.class],
|
|
88
|
-
style: [m.value, e.style]
|
|
89
|
-
}, [a("div", {
|
|
90
|
-
class: "v-responsive__sizer",
|
|
91
|
-
style: r.value
|
|
92
|
-
}, null), t.additional?.(), t.default && a("div", {
|
|
93
|
-
class: ["v-responsive__content", e.contentClass]
|
|
94
|
-
}, [t.default()])])), {};
|
|
95
|
-
}
|
|
96
|
-
}), Qe = B({
|
|
97
|
-
alt: String,
|
|
98
|
-
cover: Boolean,
|
|
99
|
-
color: String,
|
|
100
|
-
draggable: {
|
|
101
|
-
type: [Boolean, String],
|
|
102
|
-
default: void 0
|
|
103
|
-
},
|
|
104
|
-
eager: Boolean,
|
|
105
|
-
gradient: String,
|
|
106
|
-
lazySrc: String,
|
|
107
|
-
options: {
|
|
108
|
-
type: Object,
|
|
109
|
-
// For more information on types, navigate to:
|
|
110
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
|
|
111
|
-
default: () => ({
|
|
112
|
-
root: void 0,
|
|
113
|
-
rootMargin: void 0,
|
|
114
|
-
threshold: void 0
|
|
115
|
-
})
|
|
116
|
-
},
|
|
117
|
-
sizes: String,
|
|
118
|
-
src: {
|
|
119
|
-
type: [String, Object],
|
|
120
|
-
default: ""
|
|
121
|
-
},
|
|
122
|
-
crossorigin: String,
|
|
123
|
-
referrerpolicy: String,
|
|
124
|
-
srcset: String,
|
|
125
|
-
position: String,
|
|
126
|
-
...ae(),
|
|
127
|
-
...z(),
|
|
128
|
-
...Z(),
|
|
129
|
-
...Fe()
|
|
130
|
-
}, "VImg"), le = k()({
|
|
131
|
-
name: "VImg",
|
|
132
|
-
directives: {
|
|
133
|
-
intersect: qe
|
|
134
|
-
},
|
|
135
|
-
props: Qe(),
|
|
136
|
-
emits: {
|
|
137
|
-
loadstart: (e) => !0,
|
|
138
|
-
load: (e) => !0,
|
|
139
|
-
error: (e) => !0
|
|
140
|
-
},
|
|
141
|
-
setup(e, n) {
|
|
142
|
-
let {
|
|
143
|
-
emit: t,
|
|
144
|
-
slots: r
|
|
145
|
-
} = n;
|
|
146
|
-
const {
|
|
147
|
-
backgroundColorClasses: m,
|
|
148
|
-
backgroundColorStyles: s
|
|
149
|
-
} = G(N(e, "color")), {
|
|
150
|
-
roundedClasses: h
|
|
151
|
-
} = J(e), c = ve("VImg"), y = T(""), o = A(), l = T(e.eager ? "loading" : "idle"), g = T(), S = T(), u = f(() => e.src && typeof e.src == "object" ? {
|
|
152
|
-
src: e.src.src,
|
|
153
|
-
srcset: e.srcset || e.src.srcset,
|
|
154
|
-
lazySrc: e.lazySrc || e.src.lazySrc,
|
|
155
|
-
aspect: Number(e.aspectRatio || e.src.aspect || 0)
|
|
156
|
-
} : {
|
|
157
|
-
src: e.src,
|
|
158
|
-
srcset: e.srcset,
|
|
159
|
-
lazySrc: e.lazySrc,
|
|
160
|
-
aspect: Number(e.aspectRatio || 0)
|
|
161
|
-
}), d = f(() => u.value.aspect || g.value / S.value || 0);
|
|
162
|
-
V(() => e.src, () => {
|
|
163
|
-
b(l.value !== "idle");
|
|
164
|
-
}), V(d, (v, _) => {
|
|
165
|
-
!v && _ && o.value && x(o.value);
|
|
166
|
-
}), me(() => b());
|
|
167
|
-
function b(v) {
|
|
168
|
-
if (!(e.eager && v) && !(Q && !v && !e.eager)) {
|
|
169
|
-
if (l.value = "loading", u.value.lazySrc) {
|
|
170
|
-
const _ = new Image();
|
|
171
|
-
_.src = u.value.lazySrc, x(_, null);
|
|
172
|
-
}
|
|
173
|
-
u.value.src && ge(() => {
|
|
174
|
-
t("loadstart", o.value?.currentSrc || u.value.src), setTimeout(() => {
|
|
175
|
-
if (!c.isUnmounted)
|
|
176
|
-
if (o.value?.complete) {
|
|
177
|
-
if (o.value.naturalWidth || C(), l.value === "error") return;
|
|
178
|
-
d.value || x(o.value, null), l.value === "loading" && w();
|
|
179
|
-
} else
|
|
180
|
-
d.value || x(o.value), H();
|
|
181
|
-
});
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
function w() {
|
|
186
|
-
c.isUnmounted || (H(), x(o.value), l.value = "loaded", t("load", o.value?.currentSrc || u.value.src));
|
|
187
|
-
}
|
|
188
|
-
function C() {
|
|
189
|
-
c.isUnmounted || (l.value = "error", t("error", o.value?.currentSrc || u.value.src));
|
|
190
|
-
}
|
|
191
|
-
function H() {
|
|
192
|
-
const v = o.value;
|
|
193
|
-
v && (y.value = v.currentSrc || v.src);
|
|
194
|
-
}
|
|
195
|
-
let i = -1;
|
|
196
|
-
X(() => {
|
|
197
|
-
clearTimeout(i);
|
|
198
|
-
});
|
|
199
|
-
function x(v) {
|
|
200
|
-
let _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100;
|
|
201
|
-
const W = () => {
|
|
202
|
-
if (clearTimeout(i), c.isUnmounted) return;
|
|
203
|
-
const {
|
|
204
|
-
naturalHeight: $,
|
|
205
|
-
naturalWidth: F
|
|
206
|
-
} = v;
|
|
207
|
-
$ || F ? (g.value = F, S.value = $) : !v.complete && l.value === "loading" && _ != null ? i = window.setTimeout(W, _) : (v.currentSrc.endsWith(".svg") || v.currentSrc.startsWith("data:image/svg+xml")) && (g.value = 1, S.value = 1);
|
|
208
|
-
};
|
|
209
|
-
W();
|
|
210
|
-
}
|
|
211
|
-
const U = f(() => ({
|
|
212
|
-
"v-img__img--cover": e.cover,
|
|
213
|
-
"v-img__img--contain": !e.cover
|
|
214
|
-
})), re = () => {
|
|
215
|
-
if (!u.value.src || l.value === "idle") return null;
|
|
216
|
-
const v = a("img", {
|
|
217
|
-
class: ["v-img__img", U.value],
|
|
218
|
-
style: {
|
|
219
|
-
objectPosition: e.position
|
|
220
|
-
},
|
|
221
|
-
src: u.value.src,
|
|
222
|
-
srcset: u.value.srcset,
|
|
223
|
-
alt: e.alt,
|
|
224
|
-
crossorigin: e.crossorigin,
|
|
225
|
-
referrerpolicy: e.referrerpolicy,
|
|
226
|
-
draggable: e.draggable,
|
|
227
|
-
sizes: e.sizes,
|
|
228
|
-
ref: o,
|
|
229
|
-
onLoad: w,
|
|
230
|
-
onError: C
|
|
231
|
-
}, null), _ = r.sources?.();
|
|
232
|
-
return a(R, {
|
|
233
|
-
transition: e.transition,
|
|
234
|
-
appear: !0
|
|
235
|
-
}, {
|
|
236
|
-
default: () => [L(_ ? a("picture", {
|
|
237
|
-
class: "v-img__picture"
|
|
238
|
-
}, [_, v]) : v, [[be, l.value === "loaded"]])]
|
|
239
|
-
});
|
|
240
|
-
}, se = () => a(R, {
|
|
241
|
-
transition: e.transition
|
|
242
|
-
}, {
|
|
243
|
-
default: () => [u.value.lazySrc && l.value !== "loaded" && a("img", {
|
|
244
|
-
class: ["v-img__img", "v-img__img--preload", U.value],
|
|
245
|
-
style: {
|
|
246
|
-
objectPosition: e.position
|
|
247
|
-
},
|
|
248
|
-
src: u.value.lazySrc,
|
|
249
|
-
alt: e.alt,
|
|
250
|
-
crossorigin: e.crossorigin,
|
|
251
|
-
referrerpolicy: e.referrerpolicy,
|
|
252
|
-
draggable: e.draggable
|
|
253
|
-
}, null)]
|
|
254
|
-
}), oe = () => r.placeholder ? a(R, {
|
|
255
|
-
transition: e.transition,
|
|
256
|
-
appear: !0
|
|
257
|
-
}, {
|
|
258
|
-
default: () => [(l.value === "loading" || l.value === "error" && !r.error) && a("div", {
|
|
259
|
-
class: "v-img__placeholder"
|
|
260
|
-
}, [r.placeholder()])]
|
|
261
|
-
}) : null, ie = () => r.error ? a(R, {
|
|
262
|
-
transition: e.transition,
|
|
263
|
-
appear: !0
|
|
264
|
-
}, {
|
|
265
|
-
default: () => [l.value === "error" && a("div", {
|
|
266
|
-
class: "v-img__error"
|
|
267
|
-
}, [r.error()])]
|
|
268
|
-
}) : null, ue = () => e.gradient ? a("div", {
|
|
269
|
-
class: "v-img__gradient",
|
|
270
|
-
style: {
|
|
271
|
-
backgroundImage: `linear-gradient(${e.gradient})`
|
|
272
|
-
}
|
|
273
|
-
}, null) : null, D = T(!1);
|
|
274
|
-
{
|
|
275
|
-
const v = V(d, (_) => {
|
|
276
|
-
_ && (requestAnimationFrame(() => {
|
|
277
|
-
requestAnimationFrame(() => {
|
|
278
|
-
D.value = !0;
|
|
279
|
-
});
|
|
280
|
-
}), v());
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
|
-
return I(() => {
|
|
284
|
-
const v = q.filterProps(e);
|
|
285
|
-
return L(a(q, j({
|
|
286
|
-
class: ["v-img", {
|
|
287
|
-
"v-img--booting": !D.value
|
|
288
|
-
}, m.value, h.value, e.class],
|
|
289
|
-
style: [{
|
|
290
|
-
width: P(e.width === "auto" ? g.value : e.width)
|
|
291
|
-
}, s.value, e.style]
|
|
292
|
-
}, v, {
|
|
293
|
-
aspectRatio: d.value,
|
|
294
|
-
"aria-label": e.alt,
|
|
295
|
-
role: e.alt ? "img" : void 0
|
|
296
|
-
}), {
|
|
297
|
-
additional: () => a(he, null, [a(re, null, null), a(se, null, null), a(ue, null, null), a(oe, null, null), a(ie, null, null)]),
|
|
298
|
-
default: r.default
|
|
299
|
-
}), [[fe("intersect"), {
|
|
300
|
-
handler: b,
|
|
301
|
-
options: e.options
|
|
302
|
-
}, null, {
|
|
303
|
-
once: !0
|
|
304
|
-
}]]);
|
|
305
|
-
}), {
|
|
306
|
-
currentSrc: y,
|
|
307
|
-
image: o,
|
|
308
|
-
state: l,
|
|
309
|
-
naturalWidth: g,
|
|
310
|
-
naturalHeight: S
|
|
311
|
-
};
|
|
312
|
-
}
|
|
313
|
-
}), Ye = [null, "prominent", "default", "comfortable", "compact"], ne = B({
|
|
314
|
-
absolute: Boolean,
|
|
315
|
-
collapse: Boolean,
|
|
316
|
-
color: String,
|
|
317
|
-
density: {
|
|
318
|
-
type: String,
|
|
319
|
-
default: "default",
|
|
320
|
-
validator: (e) => Ye.includes(e)
|
|
321
|
-
},
|
|
322
|
-
extended: Boolean,
|
|
323
|
-
extensionHeight: {
|
|
324
|
-
type: [Number, String],
|
|
325
|
-
default: 48
|
|
326
|
-
},
|
|
327
|
-
flat: Boolean,
|
|
328
|
-
floating: Boolean,
|
|
329
|
-
height: {
|
|
330
|
-
type: [Number, String],
|
|
331
|
-
default: 64
|
|
332
|
-
},
|
|
333
|
-
image: String,
|
|
334
|
-
title: String,
|
|
335
|
-
...ye(),
|
|
336
|
-
...z(),
|
|
337
|
-
...Se(),
|
|
338
|
-
...Z(),
|
|
339
|
-
...Y({
|
|
340
|
-
tag: "header"
|
|
341
|
-
}),
|
|
342
|
-
..._e()
|
|
343
|
-
}, "VToolbar"), K = k()({
|
|
344
|
-
name: "VToolbar",
|
|
345
|
-
props: ne(),
|
|
346
|
-
setup(e, n) {
|
|
347
|
-
let {
|
|
348
|
-
slots: t
|
|
349
|
-
} = n;
|
|
350
|
-
const {
|
|
351
|
-
backgroundColorClasses: r,
|
|
352
|
-
backgroundColorStyles: m
|
|
353
|
-
} = G(N(e, "color")), {
|
|
354
|
-
borderClasses: s
|
|
355
|
-
} = Te(e), {
|
|
356
|
-
elevationClasses: h
|
|
357
|
-
} = xe(e), {
|
|
358
|
-
roundedClasses: c
|
|
359
|
-
} = J(e), {
|
|
360
|
-
themeClasses: y
|
|
361
|
-
} = Ve(e), {
|
|
362
|
-
rtlClasses: o
|
|
363
|
-
} = Be(), l = T(!!(e.extended || t.extension?.())), g = f(() => parseInt(Number(e.height) + (e.density === "prominent" ? Number(e.height) : 0) - (e.density === "comfortable" ? 8 : 0) - (e.density === "compact" ? 16 : 0), 10)), S = f(() => 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);
|
|
364
|
-
return ke({
|
|
365
|
-
VBtn: {
|
|
366
|
-
variant: "text"
|
|
367
|
-
}
|
|
368
|
-
}), I(() => {
|
|
369
|
-
const u = !!(e.title || t.title), d = !!(t.image || e.image), b = t.extension?.();
|
|
370
|
-
return l.value = !!(e.extended || b), a(e.tag, {
|
|
371
|
-
class: ["v-toolbar", {
|
|
372
|
-
"v-toolbar--absolute": e.absolute,
|
|
373
|
-
"v-toolbar--collapse": e.collapse,
|
|
374
|
-
"v-toolbar--flat": e.flat,
|
|
375
|
-
"v-toolbar--floating": e.floating,
|
|
376
|
-
[`v-toolbar--density-${e.density}`]: !0
|
|
377
|
-
}, r.value, s.value, h.value, c.value, y.value, o.value, e.class],
|
|
378
|
-
style: [m.value, e.style]
|
|
379
|
-
}, {
|
|
380
|
-
default: () => [d && a("div", {
|
|
381
|
-
key: "image",
|
|
382
|
-
class: "v-toolbar__image"
|
|
383
|
-
}, [t.image ? a(E, {
|
|
384
|
-
key: "image-defaults",
|
|
385
|
-
disabled: !e.image,
|
|
386
|
-
defaults: {
|
|
387
|
-
VImg: {
|
|
388
|
-
cover: !0,
|
|
389
|
-
src: e.image
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
}, t.image) : a(le, {
|
|
393
|
-
key: "image-img",
|
|
394
|
-
cover: !0,
|
|
395
|
-
src: e.image
|
|
396
|
-
}, null)]), a(E, {
|
|
397
|
-
defaults: {
|
|
398
|
-
VTabs: {
|
|
399
|
-
height: P(g.value)
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}, {
|
|
403
|
-
default: () => [a("div", {
|
|
404
|
-
class: "v-toolbar__content",
|
|
405
|
-
style: {
|
|
406
|
-
height: P(g.value)
|
|
407
|
-
}
|
|
408
|
-
}, [t.prepend && a("div", {
|
|
409
|
-
class: "v-toolbar__prepend"
|
|
410
|
-
}, [t.prepend?.()]), u && a(te, {
|
|
411
|
-
key: "title",
|
|
412
|
-
text: e.title
|
|
413
|
-
}, {
|
|
414
|
-
text: t.title
|
|
415
|
-
}), t.default?.(), t.append && a("div", {
|
|
416
|
-
class: "v-toolbar__append"
|
|
417
|
-
}, [t.append?.()])])]
|
|
418
|
-
}), a(E, {
|
|
419
|
-
defaults: {
|
|
420
|
-
VTabs: {
|
|
421
|
-
height: P(S.value)
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}, {
|
|
425
|
-
default: () => [a(Le, null, {
|
|
426
|
-
default: () => [l.value && a("div", {
|
|
427
|
-
class: "v-toolbar__extension",
|
|
428
|
-
style: {
|
|
429
|
-
height: P(S.value)
|
|
430
|
-
}
|
|
431
|
-
}, [b])]
|
|
432
|
-
})]
|
|
433
|
-
})]
|
|
434
|
-
});
|
|
435
|
-
}), {
|
|
436
|
-
contentHeight: g,
|
|
437
|
-
extensionHeight: S
|
|
438
|
-
};
|
|
439
|
-
}
|
|
440
|
-
}), Ze = B({
|
|
441
|
-
scrollTarget: {
|
|
442
|
-
type: String
|
|
443
|
-
},
|
|
444
|
-
scrollThreshold: {
|
|
445
|
-
type: [String, Number],
|
|
446
|
-
default: 300
|
|
447
|
-
}
|
|
448
|
-
}, "scroll");
|
|
449
|
-
function Ge(e) {
|
|
450
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
451
|
-
const {
|
|
452
|
-
canScroll: t
|
|
453
|
-
} = n;
|
|
454
|
-
let r = 0, m = 0;
|
|
455
|
-
const s = A(null), h = T(0), c = T(0), y = T(0), o = T(!1), l = T(!1), g = f(() => Number(e.scrollThreshold)), S = f(() => Ie((g.value - h.value) / g.value || 0)), u = () => {
|
|
456
|
-
const d = s.value;
|
|
457
|
-
if (!d || t && !t.value) return;
|
|
458
|
-
r = h.value, h.value = "window" in d ? d.pageYOffset : d.scrollTop;
|
|
459
|
-
const b = d instanceof Window ? document.documentElement.scrollHeight : d.scrollHeight;
|
|
460
|
-
if (m !== b) {
|
|
461
|
-
m = b;
|
|
462
|
-
return;
|
|
463
|
-
}
|
|
464
|
-
l.value = h.value < r, y.value = Math.abs(h.value - g.value);
|
|
465
|
-
};
|
|
466
|
-
return V(l, () => {
|
|
467
|
-
c.value = c.value || h.value;
|
|
468
|
-
}), V(o, () => {
|
|
469
|
-
c.value = 0;
|
|
470
|
-
}), Pe(() => {
|
|
471
|
-
V(() => e.scrollTarget, (d) => {
|
|
472
|
-
const b = d ? document.querySelector(d) : window;
|
|
473
|
-
if (!b) {
|
|
474
|
-
we(`Unable to locate element with identifier ${d}`);
|
|
475
|
-
return;
|
|
476
|
-
}
|
|
477
|
-
b !== s.value && (s.value?.removeEventListener("scroll", u), s.value = b, s.value.addEventListener("scroll", u, {
|
|
478
|
-
passive: !0
|
|
479
|
-
}));
|
|
480
|
-
}, {
|
|
481
|
-
immediate: !0
|
|
482
|
-
});
|
|
483
|
-
}), X(() => {
|
|
484
|
-
s.value?.removeEventListener("scroll", u);
|
|
485
|
-
}), t && V(t, u, {
|
|
486
|
-
immediate: !0
|
|
487
|
-
}), {
|
|
488
|
-
scrollThreshold: g,
|
|
489
|
-
currentScroll: h,
|
|
490
|
-
currentThreshold: y,
|
|
491
|
-
isScrollActive: o,
|
|
492
|
-
scrollRatio: S,
|
|
493
|
-
// required only for testing
|
|
494
|
-
// probably can be removed
|
|
495
|
-
// later (2 chars chlng)
|
|
496
|
-
isScrollingUp: l,
|
|
497
|
-
savedScroll: c
|
|
498
|
-
};
|
|
499
|
-
}
|
|
500
|
-
const Je = B({
|
|
501
|
-
scrollBehavior: String,
|
|
502
|
-
modelValue: {
|
|
503
|
-
type: Boolean,
|
|
504
|
-
default: !0
|
|
505
|
-
},
|
|
506
|
-
location: {
|
|
507
|
-
type: String,
|
|
508
|
-
default: "top",
|
|
509
|
-
validator: (e) => ["top", "bottom"].includes(e)
|
|
510
|
-
},
|
|
511
|
-
...ne(),
|
|
512
|
-
...Ce(),
|
|
513
|
-
...Ze(),
|
|
514
|
-
height: {
|
|
515
|
-
type: [Number, String],
|
|
516
|
-
default: 64
|
|
517
|
-
}
|
|
518
|
-
}, "VAppBar"), Xe = k()({
|
|
519
|
-
name: "VAppBar",
|
|
520
|
-
props: Je(),
|
|
521
|
-
emits: {
|
|
522
|
-
"update:modelValue": (e) => !0
|
|
523
|
-
},
|
|
524
|
-
setup(e, n) {
|
|
525
|
-
let {
|
|
526
|
-
slots: t
|
|
527
|
-
} = n;
|
|
528
|
-
const r = A(), m = He(e, "modelValue"), s = f(() => {
|
|
529
|
-
const i = new Set(e.scrollBehavior?.split(" ") ?? []);
|
|
530
|
-
return {
|
|
531
|
-
hide: i.has("hide"),
|
|
532
|
-
fullyHide: i.has("fully-hide"),
|
|
533
|
-
inverted: i.has("inverted"),
|
|
534
|
-
collapse: i.has("collapse"),
|
|
535
|
-
elevate: i.has("elevate"),
|
|
536
|
-
fadeImage: i.has("fade-image")
|
|
537
|
-
// shrink: behavior.has('shrink'),
|
|
538
|
-
};
|
|
539
|
-
}), h = f(() => {
|
|
540
|
-
const i = s.value;
|
|
541
|
-
return i.hide || i.fullyHide || i.inverted || i.collapse || i.elevate || i.fadeImage || // behavior.shrink ||
|
|
542
|
-
!m.value;
|
|
543
|
-
}), {
|
|
544
|
-
currentScroll: c,
|
|
545
|
-
scrollThreshold: y,
|
|
546
|
-
isScrollingUp: o,
|
|
547
|
-
scrollRatio: l
|
|
548
|
-
} = Ge(e, {
|
|
549
|
-
canScroll: h
|
|
550
|
-
}), g = f(() => s.value.hide || s.value.fullyHide), S = f(() => e.collapse || s.value.collapse && (s.value.inverted ? l.value > 0 : l.value === 0)), u = f(() => e.flat || s.value.fullyHide && !m.value || s.value.elevate && (s.value.inverted ? c.value > 0 : c.value === 0)), d = f(() => s.value.fadeImage ? s.value.inverted ? 1 - l.value : l.value : void 0), b = f(() => {
|
|
551
|
-
const i = Number(r.value?.contentHeight ?? e.height), x = Number(r.value?.extensionHeight ?? 0);
|
|
552
|
-
return g.value ? c.value < y.value || s.value.fullyHide ? i + x : i : i + x;
|
|
553
|
-
});
|
|
554
|
-
Re(f(() => !!e.scrollBehavior), () => {
|
|
555
|
-
Ne(() => {
|
|
556
|
-
g.value ? s.value.inverted ? m.value = c.value > y.value : m.value = o.value || c.value < y.value : m.value = !0;
|
|
557
|
-
});
|
|
558
|
-
});
|
|
559
|
-
const {
|
|
560
|
-
ssrBootStyles: w
|
|
561
|
-
} = Me(), {
|
|
562
|
-
layoutItemStyles: C,
|
|
563
|
-
layoutIsReady: H
|
|
564
|
-
} = ze({
|
|
565
|
-
id: e.name,
|
|
566
|
-
order: f(() => parseInt(e.order, 10)),
|
|
567
|
-
position: N(e, "location"),
|
|
568
|
-
layoutSize: b,
|
|
569
|
-
elementSize: T(void 0),
|
|
570
|
-
active: m,
|
|
571
|
-
absolute: N(e, "absolute")
|
|
572
|
-
});
|
|
573
|
-
return I(() => {
|
|
574
|
-
const i = K.filterProps(e);
|
|
575
|
-
return a(K, j({
|
|
576
|
-
ref: r,
|
|
577
|
-
class: ["v-app-bar", {
|
|
578
|
-
"v-app-bar--bottom": e.location === "bottom"
|
|
579
|
-
}, e.class],
|
|
580
|
-
style: [{
|
|
581
|
-
...C.value,
|
|
582
|
-
"--v-toolbar-image-opacity": d.value,
|
|
583
|
-
height: void 0,
|
|
584
|
-
...w.value
|
|
585
|
-
}, e.style]
|
|
586
|
-
}, i, {
|
|
587
|
-
collapse: S.value,
|
|
588
|
-
flat: u.value
|
|
589
|
-
}), t);
|
|
590
|
-
}), H;
|
|
591
|
-
}
|
|
592
|
-
}), pe = k()({
|
|
593
|
-
name: "VAppBarTitle",
|
|
594
|
-
props: ee(),
|
|
595
|
-
setup(e, n) {
|
|
596
|
-
let {
|
|
597
|
-
slots: t
|
|
598
|
-
} = n;
|
|
599
|
-
return I(() => a(te, j(e, {
|
|
600
|
-
class: "v-app-bar-title"
|
|
601
|
-
}), t)), {};
|
|
602
|
-
}
|
|
603
|
-
}), et = {
|
|
604
|
-
__name: "Header",
|
|
605
|
-
setup(e) {
|
|
606
|
-
const n = (
|
|
607
|
-
/** @type {import("@/types").Eodash} */
|
|
608
|
-
Ae(je)
|
|
609
|
-
), t = n.brand?.name;
|
|
610
|
-
return (r, m) => (Ue(), De(Xe, { color: "primary" }, {
|
|
611
|
-
default: M(() => [
|
|
612
|
-
a(pe, null, {
|
|
613
|
-
default: M(() => [
|
|
614
|
-
We(
|
|
615
|
-
$e(O(t)),
|
|
616
|
-
1
|
|
617
|
-
/* TEXT */
|
|
618
|
-
)
|
|
619
|
-
]),
|
|
620
|
-
_: 1
|
|
621
|
-
/* STABLE */
|
|
622
|
-
}),
|
|
623
|
-
a(le, {
|
|
624
|
-
class: "mx-12 logo",
|
|
625
|
-
src: O(n).brand?.logo
|
|
626
|
-
}, null, 8, ["src"])
|
|
627
|
-
]),
|
|
628
|
-
_: 1
|
|
629
|
-
/* STABLE */
|
|
630
|
-
}));
|
|
631
|
-
}
|
|
632
|
-
}, rt = /* @__PURE__ */ Ee(et, [["__scopeId", "data-v-d3a5e05e"]]);
|
|
633
|
-
export {
|
|
634
|
-
rt as default
|
|
635
|
-
};
|