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