@eodash/eodash 5.0.0-alpha.2.5 → 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 +19 -5
- package/core/client/App.vue +6 -7
- package/core/client/SuspensedDashboard.ce.vue +58 -40
- package/core/client/asWebComponent.d.ts +10 -5
- package/core/client/asWebComponent.js +6 -6
- package/core/client/components/DashboardLayout.vue +35 -16
- package/core/client/components/DynamicWebComponent.vue +44 -44
- package/core/client/components/ErrorAlert.vue +19 -7
- package/core/client/components/Footer.vue +28 -14
- package/core/client/components/Header.vue +4 -4
- package/core/client/components/IframeWrapper.vue +3 -3
- package/core/client/components/Loading.vue +17 -18
- package/core/client/components/MobileLayout.vue +48 -26
- package/core/client/composables/DefineEodash.js +38 -29
- package/core/client/composables/DefineWidgets.js +101 -81
- package/core/client/composables/index.js +32 -29
- package/core/client/eodash.js +44 -39
- package/core/client/main.js +2 -2
- package/core/client/plugins/index.js +9 -10
- 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 +169 -201
- package/core/client/utils/eodashSTAC.js +130 -49
- package/core/client/utils/helpers.js +18 -20
- package/core/client/utils/index.js +17 -10
- package/core/client/utils/keys.js +2 -2
- package/core/client/views/Dashboard.vue +53 -36
- package/core/client/vite-env.d.ts +19 -17
- package/dist/client/{DashboardLayout-BYROtP-7.js → DashboardLayout-BuDcv6LM.js} +9 -9
- package/dist/client/{DynamicWebComponent-BQhxFPM0.js → DynamicWebComponent-BEP4rVce.js} +2 -2
- package/dist/client/EodashDatePicker-oFb1zt5E.js +1211 -0
- package/dist/client/{EodashItemFilter-DIBDAHcc.js → EodashItemFilter-BElmgrST.js} +4 -6
- package/dist/client/{EodashMap-C6jJ2Lb_.js → EodashMap-DXyOgcEd.js} +13131 -14490
- package/dist/client/{Footer-BVIZms1S.js → Footer-CoPx6UXQ.js} +3 -3
- package/dist/client/{Header-TsTL1d2R.js → Header-C-zX31Ys.js} +169 -167
- package/dist/client/{IframeWrapper-XKChM78a.js → IframeWrapper-2w2ye0zM.js} +1 -1
- package/dist/client/{MobileLayout-BlGcMQra.js → MobileLayout-C9OVcP12.js} +45 -57
- package/dist/client/{VMain-C9XV5Lyg.js → VMain-Dm43jd43.js} +2 -2
- package/dist/client/{WidgetsContainer-BQXHnZpa.js → WidgetsContainer-BS87sLqk.js} +10 -3
- package/dist/client/{asWebComponent-CbdGxelK.js → asWebComponent-CpQUVi2N.js} +5508 -5561
- package/dist/client/{basedecoder-Qm25PwVp-CHo5Pomv.js → basedecoder-DHcBySSe-BmCFNFnw.js} +5 -6
- package/dist/client/{decoder-HRvnjnEI-CHAYOWhz.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-CyCJOFsz.js → forwardRefs-BVFQ82G4.js} +12 -21
- package/dist/client/{index-CabQjjQg.js → index-dOzyv_xR.js} +1 -1
- package/dist/client/{jpeg-DNfUpLwy-Fjan-04T.js → jpeg-BAgeD1d3-oeHbFPUL.js} +5 -6
- package/dist/client/{lerc-_E46UbWQ-TxBH4OeK.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-DWJ-z4I-.js → ssrBoot-L9KejErM.js} +1 -1
- package/dist/client/style.css +2 -2
- package/dist/client/{transition-BlLt41wg.js → transition-DCePIwYR.js} +1 -1
- 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 +1 -1
- package/dist/node/types.d.ts +32 -38
- package/package.json +11 -11
- package/widgets/EodashDatePicker.vue +94 -43
- package/widgets/EodashItemFilter.vue +13 -10
- package/widgets/EodashMap.vue +87 -20
- package/widgets/WidgetsContainer.vue +45 -27
- package/dist/client/EodashDatePicker-CFltnt5d.js +0 -1194
- package/dist/client/deflate-Be2Arps5-hDqMz3RA.js +0 -10
- package/dist/client/http-ZWiLaAeR.js +0 -1337
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as y, ak as x, e as k, al as w, ar as b, af as C, f as I, h as S, g as R, i as z, Q as B, R as f, am as P, an as F, ag as M, s as V, J as T, c as e, au as X, a as Z, b as L, C as N, _ as j, r as D, x as H, W as A, H as E, $, a0 as J, a1 as K, a9 as t, aa as O, a3 as n, a8 as Q, az as U, aA as W } from "./asWebComponent-
|
|
1
|
+
import { p as y, ak as x, e as k, al as w, ar as b, af as C, f as I, h as S, g as R, i as z, Q as B, R as f, am as P, an as F, ag as M, s as V, J as T, c as e, au as X, a as Z, b as L, C as N, _ as j, r as D, x as H, W as A, H as E, $, a0 as J, a1 as K, a9 as t, aa as O, a3 as n, a8 as Q, az as U, aA as W } from "./asWebComponent-CpQUVi2N.js";
|
|
2
2
|
const q = y({
|
|
3
3
|
app: Boolean,
|
|
4
4
|
color: String,
|
|
@@ -57,7 +57,7 @@ const q = y({
|
|
|
57
57
|
}, l.style]
|
|
58
58
|
}, o)), l.app ? _ : {};
|
|
59
59
|
}
|
|
60
|
-
}), Y = (l) => (U("data-v-
|
|
60
|
+
}), Y = (l) => (U("data-v-7ea19f1b"), l = l(), W(), l), l0 = { class: "pt-0 footer-text" }, e0 = /* @__PURE__ */ Y(() => /* @__PURE__ */ t(
|
|
61
61
|
"a",
|
|
62
62
|
{
|
|
63
63
|
href: "https://github.com/eodash/eodash",
|
|
@@ -109,7 +109,7 @@ const q = y({
|
|
|
109
109
|
/* STABLE */
|
|
110
110
|
}, 8, ["height"]));
|
|
111
111
|
}
|
|
112
|
-
}, n0 = /* @__PURE__ */ j(s0, [["__scopeId", "data-v-
|
|
112
|
+
}, n0 = /* @__PURE__ */ j(s0, [["__scopeId", "data-v-7ea19f1b"]]);
|
|
113
113
|
export {
|
|
114
114
|
n0 as default
|
|
115
115
|
};
|
|
@@ -1,23 +1,21 @@
|
|
|
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
|
|
2
|
-
import { m as Fe, M as
|
|
3
|
-
import { a as Le } from "./index-
|
|
4
|
-
import { u as Me } from "./ssrBoot-
|
|
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
5
|
function Oe(e, n) {
|
|
6
|
-
if (!Q)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
handler: u,
|
|
6
|
+
if (!Q) return;
|
|
7
|
+
const t = n.modifiers || {}, r = n.value, {
|
|
8
|
+
handler: m,
|
|
10
9
|
options: s
|
|
11
|
-
} = typeof
|
|
12
|
-
handler:
|
|
10
|
+
} = typeof r == "object" ? r : {
|
|
11
|
+
handler: r,
|
|
13
12
|
options: {}
|
|
14
13
|
}, h = new IntersectionObserver(function() {
|
|
15
|
-
let
|
|
16
|
-
const
|
|
17
|
-
if (!
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
u && (!t.quiet || r.init) && (!t.once || l || r.init) && u(l, d, b), l && t.once ? p(e, n) : r.init = !0;
|
|
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;
|
|
21
19
|
}, s);
|
|
22
20
|
e._observe = Object(e._observe), e._observe[n.instance.$.uid] = {
|
|
23
21
|
init: !1,
|
|
@@ -43,12 +41,12 @@ const qe = {
|
|
|
43
41
|
slots: t
|
|
44
42
|
} = n;
|
|
45
43
|
return I(() => {
|
|
46
|
-
const
|
|
44
|
+
const r = !!(t.default || t.text || e.text);
|
|
47
45
|
return a(e.tag, {
|
|
48
46
|
class: ["v-toolbar-title", e.class],
|
|
49
47
|
style: e.style
|
|
50
48
|
}, {
|
|
51
|
-
default: () => [
|
|
49
|
+
default: () => [r && a("div", {
|
|
52
50
|
class: "v-toolbar-title__placeholder"
|
|
53
51
|
}, [t.text ? t.text() : e.text, t.default?.()])]
|
|
54
52
|
});
|
|
@@ -57,7 +55,7 @@ const qe = {
|
|
|
57
55
|
});
|
|
58
56
|
function Ke(e) {
|
|
59
57
|
return {
|
|
60
|
-
aspectStyles:
|
|
58
|
+
aspectStyles: f(() => {
|
|
61
59
|
const n = Number(e.aspectRatio);
|
|
62
60
|
return n ? {
|
|
63
61
|
paddingBottom: String(1 / n * 100) + "%"
|
|
@@ -79,18 +77,18 @@ const ae = B({
|
|
|
79
77
|
slots: t
|
|
80
78
|
} = n;
|
|
81
79
|
const {
|
|
82
|
-
aspectStyles:
|
|
80
|
+
aspectStyles: r
|
|
83
81
|
} = Ke(e), {
|
|
84
|
-
dimensionStyles:
|
|
85
|
-
} =
|
|
82
|
+
dimensionStyles: m
|
|
83
|
+
} = de(e);
|
|
86
84
|
return I(() => a("div", {
|
|
87
85
|
class: ["v-responsive", {
|
|
88
86
|
"v-responsive--inline": e.inline
|
|
89
87
|
}, e.class],
|
|
90
|
-
style: [
|
|
88
|
+
style: [m.value, e.style]
|
|
91
89
|
}, [a("div", {
|
|
92
90
|
class: "v-responsive__sizer",
|
|
93
|
-
style:
|
|
91
|
+
style: r.value
|
|
94
92
|
}, null), t.additional?.(), t.default && a("div", {
|
|
95
93
|
class: ["v-responsive__content", e.contentClass]
|
|
96
94
|
}, [t.default()])])), {};
|
|
@@ -143,14 +141,14 @@ const ae = B({
|
|
|
143
141
|
setup(e, n) {
|
|
144
142
|
let {
|
|
145
143
|
emit: t,
|
|
146
|
-
slots:
|
|
144
|
+
slots: r
|
|
147
145
|
} = n;
|
|
148
146
|
const {
|
|
149
|
-
backgroundColorClasses:
|
|
147
|
+
backgroundColorClasses: m,
|
|
150
148
|
backgroundColorStyles: s
|
|
151
149
|
} = G(N(e, "color")), {
|
|
152
150
|
roundedClasses: h
|
|
153
|
-
} = J(e),
|
|
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" ? {
|
|
154
152
|
src: e.src.src,
|
|
155
153
|
srcset: e.srcset || e.src.srcset,
|
|
156
154
|
lazySrc: e.lazySrc || e.src.lazySrc,
|
|
@@ -160,125 +158,122 @@ const ae = B({
|
|
|
160
158
|
srcset: e.srcset,
|
|
161
159
|
lazySrc: e.lazySrc,
|
|
162
160
|
aspect: Number(e.aspectRatio || 0)
|
|
163
|
-
}),
|
|
161
|
+
}), d = f(() => u.value.aspect || g.value / S.value || 0);
|
|
164
162
|
V(() => e.src, () => {
|
|
165
|
-
|
|
166
|
-
}), V(
|
|
167
|
-
!v &&
|
|
168
|
-
}), me(() =>
|
|
169
|
-
function
|
|
163
|
+
b(l.value !== "idle");
|
|
164
|
+
}), V(d, (v, _) => {
|
|
165
|
+
!v && _ && o.value && x(o.value);
|
|
166
|
+
}), me(() => b());
|
|
167
|
+
function b(v) {
|
|
170
168
|
if (!(e.eager && v) && !(Q && !v && !e.eager)) {
|
|
171
|
-
if (l.value = "loading",
|
|
172
|
-
const
|
|
173
|
-
|
|
169
|
+
if (l.value = "loading", u.value.lazySrc) {
|
|
170
|
+
const _ = new Image();
|
|
171
|
+
_.src = u.value.lazySrc, x(_, null);
|
|
174
172
|
}
|
|
175
|
-
|
|
176
|
-
t("loadstart",
|
|
177
|
-
if (!
|
|
178
|
-
if (
|
|
179
|
-
if (
|
|
180
|
-
|
|
181
|
-
y.value || x(r.value, null), l.value === "loading" && C();
|
|
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();
|
|
182
179
|
} else
|
|
183
|
-
|
|
180
|
+
d.value || x(o.value), H();
|
|
184
181
|
});
|
|
185
182
|
});
|
|
186
183
|
}
|
|
187
184
|
}
|
|
188
|
-
function
|
|
189
|
-
|
|
185
|
+
function w() {
|
|
186
|
+
c.isUnmounted || (H(), x(o.value), l.value = "loaded", t("load", o.value?.currentSrc || u.value.src));
|
|
190
187
|
}
|
|
191
|
-
function
|
|
192
|
-
|
|
188
|
+
function C() {
|
|
189
|
+
c.isUnmounted || (l.value = "error", t("error", o.value?.currentSrc || u.value.src));
|
|
193
190
|
}
|
|
194
|
-
function
|
|
195
|
-
const v =
|
|
196
|
-
v && (
|
|
191
|
+
function H() {
|
|
192
|
+
const v = o.value;
|
|
193
|
+
v && (y.value = v.currentSrc || v.src);
|
|
197
194
|
}
|
|
198
|
-
let
|
|
195
|
+
let i = -1;
|
|
199
196
|
X(() => {
|
|
200
|
-
clearTimeout(
|
|
197
|
+
clearTimeout(i);
|
|
201
198
|
});
|
|
202
199
|
function x(v) {
|
|
203
|
-
let
|
|
200
|
+
let _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100;
|
|
204
201
|
const W = () => {
|
|
205
|
-
if (clearTimeout(
|
|
206
|
-
return;
|
|
202
|
+
if (clearTimeout(i), c.isUnmounted) return;
|
|
207
203
|
const {
|
|
208
204
|
naturalHeight: $,
|
|
209
205
|
naturalWidth: F
|
|
210
206
|
} = v;
|
|
211
|
-
$ || F ? (g.value = F,
|
|
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);
|
|
212
208
|
};
|
|
213
209
|
W();
|
|
214
210
|
}
|
|
215
|
-
const U =
|
|
211
|
+
const U = f(() => ({
|
|
216
212
|
"v-img__img--cover": e.cover,
|
|
217
213
|
"v-img__img--contain": !e.cover
|
|
218
|
-
})),
|
|
219
|
-
if (!
|
|
220
|
-
return null;
|
|
214
|
+
})), re = () => {
|
|
215
|
+
if (!u.value.src || l.value === "idle") return null;
|
|
221
216
|
const v = a("img", {
|
|
222
217
|
class: ["v-img__img", U.value],
|
|
223
218
|
style: {
|
|
224
219
|
objectPosition: e.position
|
|
225
220
|
},
|
|
226
|
-
src:
|
|
227
|
-
srcset:
|
|
221
|
+
src: u.value.src,
|
|
222
|
+
srcset: u.value.srcset,
|
|
228
223
|
alt: e.alt,
|
|
229
224
|
crossorigin: e.crossorigin,
|
|
230
225
|
referrerpolicy: e.referrerpolicy,
|
|
231
226
|
draggable: e.draggable,
|
|
232
227
|
sizes: e.sizes,
|
|
233
|
-
ref:
|
|
234
|
-
onLoad:
|
|
235
|
-
onError:
|
|
236
|
-
}, null),
|
|
237
|
-
return a(
|
|
228
|
+
ref: o,
|
|
229
|
+
onLoad: w,
|
|
230
|
+
onError: C
|
|
231
|
+
}, null), _ = r.sources?.();
|
|
232
|
+
return a(R, {
|
|
238
233
|
transition: e.transition,
|
|
239
234
|
appear: !0
|
|
240
235
|
}, {
|
|
241
|
-
default: () => [L(
|
|
236
|
+
default: () => [L(_ ? a("picture", {
|
|
242
237
|
class: "v-img__picture"
|
|
243
|
-
}, [
|
|
238
|
+
}, [_, v]) : v, [[be, l.value === "loaded"]])]
|
|
244
239
|
});
|
|
245
|
-
},
|
|
240
|
+
}, se = () => a(R, {
|
|
246
241
|
transition: e.transition
|
|
247
242
|
}, {
|
|
248
|
-
default: () => [
|
|
243
|
+
default: () => [u.value.lazySrc && l.value !== "loaded" && a("img", {
|
|
249
244
|
class: ["v-img__img", "v-img__img--preload", U.value],
|
|
250
245
|
style: {
|
|
251
246
|
objectPosition: e.position
|
|
252
247
|
},
|
|
253
|
-
src:
|
|
248
|
+
src: u.value.lazySrc,
|
|
254
249
|
alt: e.alt,
|
|
255
250
|
crossorigin: e.crossorigin,
|
|
256
251
|
referrerpolicy: e.referrerpolicy,
|
|
257
252
|
draggable: e.draggable
|
|
258
253
|
}, null)]
|
|
259
|
-
}), oe = () =>
|
|
254
|
+
}), oe = () => r.placeholder ? a(R, {
|
|
260
255
|
transition: e.transition,
|
|
261
256
|
appear: !0
|
|
262
257
|
}, {
|
|
263
|
-
default: () => [(l.value === "loading" || l.value === "error" && !
|
|
258
|
+
default: () => [(l.value === "loading" || l.value === "error" && !r.error) && a("div", {
|
|
264
259
|
class: "v-img__placeholder"
|
|
265
|
-
}, [
|
|
266
|
-
}) : null, ie = () =>
|
|
260
|
+
}, [r.placeholder()])]
|
|
261
|
+
}) : null, ie = () => r.error ? a(R, {
|
|
267
262
|
transition: e.transition,
|
|
268
263
|
appear: !0
|
|
269
264
|
}, {
|
|
270
265
|
default: () => [l.value === "error" && a("div", {
|
|
271
266
|
class: "v-img__error"
|
|
272
|
-
}, [
|
|
267
|
+
}, [r.error()])]
|
|
273
268
|
}) : null, ue = () => e.gradient ? a("div", {
|
|
274
269
|
class: "v-img__gradient",
|
|
275
270
|
style: {
|
|
276
271
|
backgroundImage: `linear-gradient(${e.gradient})`
|
|
277
272
|
}
|
|
278
|
-
}, null) : null, D =
|
|
273
|
+
}, null) : null, D = T(!1);
|
|
279
274
|
{
|
|
280
|
-
const v = V(
|
|
281
|
-
|
|
275
|
+
const v = V(d, (_) => {
|
|
276
|
+
_ && (requestAnimationFrame(() => {
|
|
282
277
|
requestAnimationFrame(() => {
|
|
283
278
|
D.value = !0;
|
|
284
279
|
});
|
|
@@ -290,29 +285,29 @@ const ae = B({
|
|
|
290
285
|
return L(a(q, j({
|
|
291
286
|
class: ["v-img", {
|
|
292
287
|
"v-img--booting": !D.value
|
|
293
|
-
},
|
|
288
|
+
}, m.value, h.value, e.class],
|
|
294
289
|
style: [{
|
|
295
290
|
width: P(e.width === "auto" ? g.value : e.width)
|
|
296
291
|
}, s.value, e.style]
|
|
297
292
|
}, v, {
|
|
298
|
-
aspectRatio:
|
|
293
|
+
aspectRatio: d.value,
|
|
299
294
|
"aria-label": e.alt,
|
|
300
295
|
role: e.alt ? "img" : void 0
|
|
301
296
|
}), {
|
|
302
|
-
additional: () => a(he, null, [a(
|
|
303
|
-
default:
|
|
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
|
|
304
299
|
}), [[fe("intersect"), {
|
|
305
|
-
handler:
|
|
300
|
+
handler: b,
|
|
306
301
|
options: e.options
|
|
307
302
|
}, null, {
|
|
308
303
|
once: !0
|
|
309
304
|
}]]);
|
|
310
305
|
}), {
|
|
311
|
-
currentSrc:
|
|
312
|
-
image:
|
|
306
|
+
currentSrc: y,
|
|
307
|
+
image: o,
|
|
313
308
|
state: l,
|
|
314
309
|
naturalWidth: g,
|
|
315
|
-
naturalHeight:
|
|
310
|
+
naturalHeight: S
|
|
316
311
|
};
|
|
317
312
|
}
|
|
318
313
|
}), Ye = [null, "prominent", "default", "comfortable", "compact"], ne = B({
|
|
@@ -353,36 +348,36 @@ const ae = B({
|
|
|
353
348
|
slots: t
|
|
354
349
|
} = n;
|
|
355
350
|
const {
|
|
356
|
-
backgroundColorClasses:
|
|
357
|
-
backgroundColorStyles:
|
|
351
|
+
backgroundColorClasses: r,
|
|
352
|
+
backgroundColorStyles: m
|
|
358
353
|
} = G(N(e, "color")), {
|
|
359
354
|
borderClasses: s
|
|
360
355
|
} = Te(e), {
|
|
361
356
|
elevationClasses: h
|
|
362
357
|
} = xe(e), {
|
|
363
|
-
roundedClasses:
|
|
358
|
+
roundedClasses: c
|
|
364
359
|
} = J(e), {
|
|
365
|
-
themeClasses:
|
|
360
|
+
themeClasses: y
|
|
366
361
|
} = Ve(e), {
|
|
367
|
-
rtlClasses:
|
|
368
|
-
} = Be(), l =
|
|
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);
|
|
369
364
|
return ke({
|
|
370
365
|
VBtn: {
|
|
371
366
|
variant: "text"
|
|
372
367
|
}
|
|
373
368
|
}), I(() => {
|
|
374
|
-
const
|
|
375
|
-
return l.value = !!(e.extended ||
|
|
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, {
|
|
376
371
|
class: ["v-toolbar", {
|
|
377
372
|
"v-toolbar--absolute": e.absolute,
|
|
378
373
|
"v-toolbar--collapse": e.collapse,
|
|
379
374
|
"v-toolbar--flat": e.flat,
|
|
380
375
|
"v-toolbar--floating": e.floating,
|
|
381
376
|
[`v-toolbar--density-${e.density}`]: !0
|
|
382
|
-
},
|
|
383
|
-
style: [
|
|
377
|
+
}, r.value, s.value, h.value, c.value, y.value, o.value, e.class],
|
|
378
|
+
style: [m.value, e.style]
|
|
384
379
|
}, {
|
|
385
|
-
default: () => [
|
|
380
|
+
default: () => [d && a("div", {
|
|
386
381
|
key: "image",
|
|
387
382
|
class: "v-toolbar__image"
|
|
388
383
|
}, [t.image ? a(E, {
|
|
@@ -412,7 +407,7 @@ const ae = B({
|
|
|
412
407
|
}
|
|
413
408
|
}, [t.prepend && a("div", {
|
|
414
409
|
class: "v-toolbar__prepend"
|
|
415
|
-
}, [t.prepend?.()]),
|
|
410
|
+
}, [t.prepend?.()]), u && a(te, {
|
|
416
411
|
key: "title",
|
|
417
412
|
text: e.title
|
|
418
413
|
}, {
|
|
@@ -423,7 +418,7 @@ const ae = B({
|
|
|
423
418
|
}), a(E, {
|
|
424
419
|
defaults: {
|
|
425
420
|
VTabs: {
|
|
426
|
-
height: P(
|
|
421
|
+
height: P(S.value)
|
|
427
422
|
}
|
|
428
423
|
}
|
|
429
424
|
}, {
|
|
@@ -431,15 +426,15 @@ const ae = B({
|
|
|
431
426
|
default: () => [l.value && a("div", {
|
|
432
427
|
class: "v-toolbar__extension",
|
|
433
428
|
style: {
|
|
434
|
-
height: P(
|
|
429
|
+
height: P(S.value)
|
|
435
430
|
}
|
|
436
|
-
}, [
|
|
431
|
+
}, [b])]
|
|
437
432
|
})]
|
|
438
433
|
})]
|
|
439
434
|
});
|
|
440
435
|
}), {
|
|
441
436
|
contentHeight: g,
|
|
442
|
-
extensionHeight:
|
|
437
|
+
extensionHeight: S
|
|
443
438
|
};
|
|
444
439
|
}
|
|
445
440
|
}), Ze = B({
|
|
@@ -456,43 +451,50 @@ function Ge(e) {
|
|
|
456
451
|
const {
|
|
457
452
|
canScroll: t
|
|
458
453
|
} = n;
|
|
459
|
-
let
|
|
460
|
-
const
|
|
461
|
-
const
|
|
462
|
-
!
|
|
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);
|
|
463
465
|
};
|
|
464
|
-
return V(
|
|
465
|
-
|
|
466
|
-
}), V(
|
|
467
|
-
|
|
466
|
+
return V(l, () => {
|
|
467
|
+
c.value = c.value || h.value;
|
|
468
|
+
}), V(o, () => {
|
|
469
|
+
c.value = 0;
|
|
468
470
|
}), Pe(() => {
|
|
469
|
-
V(() => e.scrollTarget, (
|
|
470
|
-
const
|
|
471
|
-
if (!
|
|
472
|
-
|
|
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}`);
|
|
473
475
|
return;
|
|
474
476
|
}
|
|
475
|
-
|
|
477
|
+
b !== s.value && (s.value?.removeEventListener("scroll", u), s.value = b, s.value.addEventListener("scroll", u, {
|
|
476
478
|
passive: !0
|
|
477
479
|
}));
|
|
478
480
|
}, {
|
|
479
481
|
immediate: !0
|
|
480
482
|
});
|
|
481
483
|
}), X(() => {
|
|
482
|
-
|
|
483
|
-
}), t && V(t,
|
|
484
|
+
s.value?.removeEventListener("scroll", u);
|
|
485
|
+
}), t && V(t, u, {
|
|
484
486
|
immediate: !0
|
|
485
487
|
}), {
|
|
486
|
-
scrollThreshold:
|
|
487
|
-
currentScroll:
|
|
488
|
-
currentThreshold:
|
|
489
|
-
isScrollActive:
|
|
490
|
-
scrollRatio:
|
|
488
|
+
scrollThreshold: g,
|
|
489
|
+
currentScroll: h,
|
|
490
|
+
currentThreshold: y,
|
|
491
|
+
isScrollActive: o,
|
|
492
|
+
scrollRatio: S,
|
|
491
493
|
// required only for testing
|
|
492
494
|
// probably can be removed
|
|
493
495
|
// later (2 chars chlng)
|
|
494
|
-
isScrollingUp:
|
|
495
|
-
savedScroll:
|
|
496
|
+
isScrollingUp: l,
|
|
497
|
+
savedScroll: c
|
|
496
498
|
};
|
|
497
499
|
}
|
|
498
500
|
const Je = B({
|
|
@@ -507,7 +509,7 @@ const Je = B({
|
|
|
507
509
|
validator: (e) => ["top", "bottom"].includes(e)
|
|
508
510
|
},
|
|
509
511
|
...ne(),
|
|
510
|
-
...
|
|
512
|
+
...Ce(),
|
|
511
513
|
...Ze(),
|
|
512
514
|
height: {
|
|
513
515
|
type: [Number, String],
|
|
@@ -523,69 +525,69 @@ const Je = B({
|
|
|
523
525
|
let {
|
|
524
526
|
slots: t
|
|
525
527
|
} = n;
|
|
526
|
-
const
|
|
527
|
-
const
|
|
528
|
+
const r = A(), m = He(e, "modelValue"), s = f(() => {
|
|
529
|
+
const i = new Set(e.scrollBehavior?.split(" ") ?? []);
|
|
528
530
|
return {
|
|
529
|
-
hide:
|
|
530
|
-
fullyHide:
|
|
531
|
-
inverted:
|
|
532
|
-
collapse:
|
|
533
|
-
elevate:
|
|
534
|
-
fadeImage:
|
|
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")
|
|
535
537
|
// shrink: behavior.has('shrink'),
|
|
536
538
|
};
|
|
537
|
-
}), h =
|
|
538
|
-
const
|
|
539
|
-
return
|
|
540
|
-
!
|
|
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;
|
|
541
543
|
}), {
|
|
542
|
-
currentScroll:
|
|
543
|
-
scrollThreshold:
|
|
544
|
-
isScrollingUp:
|
|
544
|
+
currentScroll: c,
|
|
545
|
+
scrollThreshold: y,
|
|
546
|
+
isScrollingUp: o,
|
|
545
547
|
scrollRatio: l
|
|
546
548
|
} = Ge(e, {
|
|
547
549
|
canScroll: h
|
|
548
|
-
}), g =
|
|
549
|
-
const
|
|
550
|
-
return g.value ?
|
|
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;
|
|
551
553
|
});
|
|
552
|
-
|
|
554
|
+
Re(f(() => !!e.scrollBehavior), () => {
|
|
553
555
|
Ne(() => {
|
|
554
|
-
g.value ? s.value.inverted ?
|
|
556
|
+
g.value ? s.value.inverted ? m.value = c.value > y.value : m.value = o.value || c.value < y.value : m.value = !0;
|
|
555
557
|
});
|
|
556
558
|
});
|
|
557
559
|
const {
|
|
558
|
-
ssrBootStyles:
|
|
560
|
+
ssrBootStyles: w
|
|
559
561
|
} = Me(), {
|
|
560
|
-
layoutItemStyles:
|
|
561
|
-
layoutIsReady:
|
|
562
|
+
layoutItemStyles: C,
|
|
563
|
+
layoutIsReady: H
|
|
562
564
|
} = ze({
|
|
563
565
|
id: e.name,
|
|
564
|
-
order:
|
|
566
|
+
order: f(() => parseInt(e.order, 10)),
|
|
565
567
|
position: N(e, "location"),
|
|
566
|
-
layoutSize:
|
|
567
|
-
elementSize:
|
|
568
|
-
active:
|
|
568
|
+
layoutSize: b,
|
|
569
|
+
elementSize: T(void 0),
|
|
570
|
+
active: m,
|
|
569
571
|
absolute: N(e, "absolute")
|
|
570
572
|
});
|
|
571
573
|
return I(() => {
|
|
572
|
-
const
|
|
574
|
+
const i = K.filterProps(e);
|
|
573
575
|
return a(K, j({
|
|
574
|
-
ref:
|
|
576
|
+
ref: r,
|
|
575
577
|
class: ["v-app-bar", {
|
|
576
578
|
"v-app-bar--bottom": e.location === "bottom"
|
|
577
579
|
}, e.class],
|
|
578
580
|
style: [{
|
|
579
|
-
...
|
|
580
|
-
"--v-toolbar-image-opacity":
|
|
581
|
+
...C.value,
|
|
582
|
+
"--v-toolbar-image-opacity": d.value,
|
|
581
583
|
height: void 0,
|
|
582
|
-
...
|
|
584
|
+
...w.value
|
|
583
585
|
}, e.style]
|
|
584
|
-
},
|
|
585
|
-
collapse:
|
|
586
|
-
flat:
|
|
586
|
+
}, i, {
|
|
587
|
+
collapse: S.value,
|
|
588
|
+
flat: u.value
|
|
587
589
|
}), t);
|
|
588
|
-
}),
|
|
590
|
+
}), H;
|
|
589
591
|
}
|
|
590
592
|
}), pe = k()({
|
|
591
593
|
name: "VAppBarTitle",
|
|
@@ -605,7 +607,7 @@ const Je = B({
|
|
|
605
607
|
/** @type {import("@/types").Eodash} */
|
|
606
608
|
Ae(je)
|
|
607
609
|
), t = n.brand?.name;
|
|
608
|
-
return (
|
|
610
|
+
return (r, m) => (Ue(), De(Xe, { color: "primary" }, {
|
|
609
611
|
default: M(() => [
|
|
610
612
|
a(pe, null, {
|
|
611
613
|
default: M(() => [
|
|
@@ -627,7 +629,7 @@ const Je = B({
|
|
|
627
629
|
/* STABLE */
|
|
628
630
|
}));
|
|
629
631
|
}
|
|
630
|
-
},
|
|
632
|
+
}, rt = /* @__PURE__ */ Ee(et, [["__scopeId", "data-v-d3a5e05e"]]);
|
|
631
633
|
export {
|
|
632
|
-
|
|
634
|
+
rt as default
|
|
633
635
|
};
|