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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +14 -5
  2. package/core/{SuspensedDashboard.ce.vue → client/SuspensedDashboard.ce.vue} +30 -16
  3. package/core/client/components/DashboardLayout.vue +59 -0
  4. package/core/{components → client/components}/ErrorAlert.vue +6 -1
  5. package/core/{components → client/components}/Footer.vue +6 -1
  6. package/core/{components → client/components}/Header.vue +6 -1
  7. package/core/{components → client/components}/IframeWrapper.vue +1 -1
  8. package/core/{components → client/components}/MobileLayout.vue +41 -10
  9. package/core/{composables → client/composables}/DefineEodash.js +2 -1
  10. package/core/{composables → client/composables}/DefineWidgets.js +14 -8
  11. package/core/{composables → client/composables}/index.js +18 -119
  12. package/core/{eodash.js → client/eodash.js} +38 -36
  13. package/core/{plugins → client/plugins}/index.js +3 -0
  14. package/core/{plugins → client/plugins}/vuetify.js +1 -1
  15. package/core/{types.d.ts → client/types.d.ts} +42 -85
  16. package/core/{utils → client/utils}/eodashSTAC.js +29 -25
  17. package/core/client/utils/index.js +32 -0
  18. package/core/{views → client/views}/Dashboard.vue +39 -10
  19. package/dist/client/DashboardLayout-BYROtP-7.js +156 -0
  20. package/dist/{DynamicWebComponent-CgDh2csQ.js → client/DynamicWebComponent-BQhxFPM0.js} +6 -6
  21. package/dist/client/EodashDatePicker-CFltnt5d.js +1194 -0
  22. package/dist/client/EodashItemFilter-DIBDAHcc.js +65 -0
  23. package/dist/{EodashMap-CyR-Ldpk.js → client/EodashMap-C6jJ2Lb_.js} +14337 -15676
  24. package/dist/client/Footer-BVIZms1S.js +115 -0
  25. package/dist/client/Header-TsTL1d2R.js +633 -0
  26. package/dist/{IframeWrapper-Csep3rMg.js → client/IframeWrapper-XKChM78a.js} +4 -4
  27. package/dist/client/MobileLayout-BlGcMQra.js +957 -0
  28. package/dist/{VMain-COrg6UtF.js → client/VMain-C9XV5Lyg.js} +8 -8
  29. package/dist/{WidgetsContainer-XA6_dKOm.js → client/WidgetsContainer-BQXHnZpa.js} +8 -8
  30. package/dist/client/asWebComponent-CbdGxelK.js +20188 -0
  31. package/dist/{decoder-kAoyGIq9-DjQanfeo.js → client/decoder-HRvnjnEI-CHAYOWhz.js} +1 -1
  32. package/dist/client/eo-dash.js +6 -0
  33. package/dist/{eox-map-BJ9SIixs.js → client/eox-map-C3DL31fp.js} +1882 -1809
  34. package/dist/client/eox-stacinfo-l7ALSV90.js +13969 -0
  35. package/dist/client/forwardRefs-CyCJOFsz.js +192 -0
  36. package/dist/client/http-ZWiLaAeR.js +1337 -0
  37. package/dist/{index-Cskxla5D.js → client/index-CabQjjQg.js} +43 -74
  38. package/dist/{lerc-C9VL9kri-O4muG-MO.js → client/lerc-_E46UbWQ-TxBH4OeK.js} +1 -1
  39. package/dist/{ssrBoot-DCCAW5xY.js → client/ssrBoot-DWJ-z4I-.js} +3 -3
  40. package/dist/{style.css → client/style.css} +2 -2
  41. package/dist/client/transition-BlLt41wg.js +34 -0
  42. package/dist/node/cli.js +20 -0
  43. package/dist/node/main.js +2 -0
  44. package/{bin → dist/node}/types.d.ts +2 -2
  45. package/package.json +22 -21
  46. package/widgets/EodashDatePicker.vue +89 -36
  47. package/widgets/EodashItemFilter.vue +30 -14
  48. package/bin/app.js +0 -22
  49. package/bin/cli.js +0 -62
  50. package/bin/main.js +0 -9
  51. package/bin/serverConfig.js +0 -165
  52. package/bin/utils.js +0 -103
  53. package/core/components/DashboardLayout.vue +0 -36
  54. package/core/utils/index.js +0 -28
  55. package/dist/DashboardLayout-lzEvtalW.js +0 -148
  56. package/dist/EodashDatePicker-bIyNUYaG.js +0 -1653
  57. package/dist/EodashItemFilter-CpgyrJRX.js +0 -51
  58. package/dist/Footer-C2sIHSym.js +0 -118
  59. package/dist/Header-DFz2BUnp.js +0 -605
  60. package/dist/MobileLayout-CXNJL_q6.js +0 -984
  61. package/dist/asWebComponent-fqvymeM-.js +0 -13092
  62. package/dist/eo-dash.js +0 -6
  63. package/dist/eox-stacinfo-B-YrT7Ug.js +0 -13698
  64. package/dist/forwardRefs-Bxeu9Obx.js +0 -142
  65. package/dist/index-Zv5eTiB6.js +0 -34
  66. /package/core/{App.vue → client/App.vue} +0 -0
  67. /package/core/{asWebComponent.d.ts → client/asWebComponent.d.ts} +0 -0
  68. /package/core/{asWebComponent.js → client/asWebComponent.js} +0 -0
  69. /package/core/{components → client/components}/DynamicWebComponent.vue +0 -0
  70. /package/core/{components → client/components}/Loading.vue +0 -0
  71. /package/core/{main.js → client/main.js} +0 -0
  72. /package/core/{render.js → client/render.js} +0 -0
  73. /package/core/{store → client/store}/Actions.js +0 -0
  74. /package/core/{store → client/store}/States.js +0 -0
  75. /package/core/{store → client/store}/index.js +0 -0
  76. /package/core/{store → client/store}/stac.js +0 -0
  77. /package/core/{utils → client/utils}/helpers.js +0 -0
  78. /package/core/{utils → client/utils}/keys.js +0 -0
  79. /package/core/{vite-env.d.ts → client/vite-env.d.ts} +0 -0
  80. /package/dist/{.gitkeep → client/.gitkeep} +0 -0
  81. /package/dist/{_commonjsHelpers-DaMA6jEr.js → client/_commonjsHelpers-DaMA6jEr.js} +0 -0
  82. /package/dist/{basedecoder-Qm25PwVp-CHo5Pomv.js → client/basedecoder-Qm25PwVp-CHo5Pomv.js} +0 -0
  83. /package/dist/{deflate-Be2Arps5-hDqMz3RA.js → client/deflate-Be2Arps5-hDqMz3RA.js} +0 -0
  84. /package/dist/{eox-itemfilter-DcQkRD2l.js → client/eox-itemfilter-DcQkRD2l.js} +0 -0
  85. /package/dist/{jpeg-DNfUpLwy-Fjan-04T.js → client/jpeg-DNfUpLwy-Fjan-04T.js} +0 -0
  86. /package/dist/{lzw-BOMhmEDy-Dboc93VO.js → client/lzw-BOMhmEDy-Dboc93VO.js} +0 -0
  87. /package/dist/{packbits-DaUD6MLm-Bu1PoTGa.js → client/packbits-DaUD6MLm-Bu1PoTGa.js} +0 -0
  88. /package/dist/{pako.esm-C3kYPGGQ-BMki8cQY.js → client/pako.esm-C3kYPGGQ-BMki8cQY.js} +0 -0
  89. /package/dist/{raw-CcGKjn8q-DFOt-i8n.js → client/raw-CcGKjn8q-DFOt-i8n.js} +0 -0
  90. /package/dist/{webfontloader-CyOFAuFB.js → client/webfontloader-CyOFAuFB.js} +0 -0
  91. /package/dist/{webimage-D2c098k3-DLj1LQxB.js → client/webimage-D2c098k3-DLj1LQxB.js} +0 -0
@@ -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, 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 Ce, ap as Ie, 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-fqvymeM-.js";
2
- import { m as We, M as N, a as Fe } from "./index-Cskxla5D.js";
3
- import { i as Le } from "./index-Zv5eTiB6.js";
4
- import { u as Me } from "./ssrBoot-DCCAW5xY.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" && I();
153
- } else
154
- h.value || x(i.value), w();
155
- });
156
- });
157
- }
158
- }
159
- function I() {
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: I,
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: C(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: C(f.value)
376
- }
377
- }
378
- }, {
379
- default: () => [t("div", {
380
- class: "v-toolbar__content",
381
- style: {
382
- height: C(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: C(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: C(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
- Ce(`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
- ...Ie(),
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: I
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
- ...I.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
- };