@eodash/eodash 5.0.0-alpha.2.16 → 5.0.0-alpha.2.18
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/App.vue +2 -0
- package/core/client/composables/EodashMap.js +207 -103
- package/core/client/composables/index.js +13 -2
- package/core/client/eodash.js +8 -3
- package/core/client/plugins/axios.js +8 -0
- package/core/client/plugins/index.js +2 -1
- package/core/client/store/Actions.js +2 -1
- package/core/client/store/States.js +4 -0
- package/core/client/store/stac.js +11 -8
- package/core/client/utils/createLayers.js +83 -46
- package/core/client/utils/eodashSTAC.js +69 -19
- package/core/client/utils/helpers.js +108 -35
- package/core/client/vite-env.d.ts +1 -0
- package/dist/client/{DashboardLayout-CCtyOil0.js → DashboardLayout-Dk6lzKZA.js} +2 -2
- package/dist/client/{DynamicWebComponent-But2r1Sj.js → DynamicWebComponent-BkMCGU7a.js} +2 -2
- package/dist/client/EodashDatePicker-D27wn0jP.js +276 -0
- package/dist/client/EodashItemFilter-DS1mOc2p.js +7651 -0
- package/dist/client/{EodashLayerControl-BhZL4pYM.js → EodashLayerControl-BqGA6jbV.js} +5604 -5428
- package/dist/client/{EodashMap-C5tOgVOv.js → EodashMap-BnVrfBnA.js} +9083 -9032
- package/dist/client/{EodashMapBtns-CdDfVQj0.js → EodashMapBtns-rv-U1nI_.js} +2 -2
- package/dist/client/{ExportState-CKCCN_VI.js → ExportState-C3Z1ET5c.js} +138 -131
- package/dist/client/{Footer-B9yVgyzx.js → Footer-BBkNiqPm.js} +63 -63
- package/dist/client/{Header-CPIlUEOq.js → Header-BQKHLO5P.js} +70 -70
- package/dist/client/{IframeWrapper-DRw1kHJm.js → IframeWrapper-BX4e2uxq.js} +1 -1
- package/dist/client/{MobileLayout-CPxVee5U.js → MobileLayout-C2aqobN5.js} +43 -41
- package/dist/client/{PopUp-Dca-gx9a.js → PopUp-DG3zrW12.js} +15 -15
- package/dist/client/{VImg-PHLA1nP1.js → VImg-BLpHACcB.js} +33 -31
- package/dist/client/VMain-DOyRcpub.js +38 -0
- package/dist/client/VOverlay-DAiInZQP.js +973 -0
- package/dist/client/{WidgetsContainer-jxk3kw-d.js → WidgetsContainer-BqoX7R5Z.js} +3 -3
- package/dist/client/{asWebComponent-3OsFQJVx.js → asWebComponent-tNU8_fkz.js} +10199 -9314
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/{forwardRefs-BxZaq9ml.js → forwardRefs-BexjzXbg.js} +1 -1
- package/dist/client/{index-Vul961Xy.js → index-F73os72i.js} +23 -23
- package/dist/client/{lerc-B4lXefGh-BESXOHWk.js → lerc-B4lXefGh-DhdntrgS.js} +1 -1
- package/dist/client/{ssrBoot-BFMBrCqY.js → ssrBoot-C71RpKe4.js} +1 -1
- package/dist/client/style.css +2 -2
- package/dist/client/{transition-U5aFjJtV.js → transition-DNdd2Y-1.js} +1 -1
- package/dist/client/{webfontloader-D_JbBwHu.js → webfontloader-C7dpDL7m.js} +1 -1
- package/dist/node/cli.js +1 -1
- package/package.json +26 -24
- package/widgets/EodashDatePicker.vue +112 -88
- package/widgets/EodashLayerControl.vue +3 -1
- package/widgets/EodashMap.vue +62 -54
- package/widgets/ExportState.vue +4 -2
- package/dist/client/EodashDatePicker-jeYiWflv.js +0 -247
- package/dist/client/EodashItemFilter-BFlfWeE_.js +0 -10125
- package/dist/client/VMain-Ck81LJfb.js +0 -39
- package/dist/client/VOverlay-CL4hiJB8.js +0 -972
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { k as Ie, p as R, o as Pe, m as Xe, g as $, u as Ye, r as I, c as y, a as M, V as G, b as v, F as O, d as z, e as
|
|
2
|
-
import { f as ht, a as gt, s as bt, m as yt, u as St, b as wt } from "./forwardRefs-
|
|
3
|
-
import { u as xt } from "./ssrBoot-
|
|
4
|
-
import { M as kt } from "./transition-
|
|
5
|
-
import { V as ke } from "./index-
|
|
6
|
-
import { V as Tt } from "./VMain-
|
|
1
|
+
import { k as Ie, p as R, o as Pe, m as Xe, g as $, u as Ye, r as I, c as y, a as M, V as G, b as v, F as O, d as z, e as re, f as ce, h as Ge, i as De, j as pe, l as Ue, n as Be, s as E, w as Ee, q as je, t as q, v as Ne, x as de, y as ze, z as qe, A as Ke, B as ie, C as ue, D as Qe, I as fe, E as Je, G as Ze, H as et, J as me, K as tt, L as he, M as ge, N as nt, O as ot, P as st, Q as lt, R as W, S as at, T as it, _ as ut, U as rt, W as ct, X as be, Y as dt, Z as vt, $ as C, a0 as A, a1 as F, a2 as ye, a3 as X, a4 as Se, a5 as ae, a6 as Y, a7 as we, a8 as xe, a9 as ft, aa as mt } from "./asWebComponent-tNU8_fkz.js";
|
|
2
|
+
import { f as ht, a as gt, s as bt, m as yt, u as St, b as wt } from "./forwardRefs-BexjzXbg.js";
|
|
3
|
+
import { u as xt } from "./ssrBoot-C71RpKe4.js";
|
|
4
|
+
import { M as kt } from "./transition-DNdd2Y-1.js";
|
|
5
|
+
import { V as ke } from "./index-F73os72i.js";
|
|
6
|
+
import { V as Tt } from "./VMain-DOyRcpub.js";
|
|
7
7
|
const Vt = (e) => {
|
|
8
8
|
const {
|
|
9
9
|
touchstartX: n,
|
|
@@ -80,7 +80,7 @@ function Bt(e, n) {
|
|
|
80
80
|
const We = {
|
|
81
81
|
mounted: pt,
|
|
82
82
|
unmounted: Bt
|
|
83
|
-
}, Et = We,
|
|
83
|
+
}, Et = We, ve = Symbol.for("vuetify:v-tabs"), zt = R({
|
|
84
84
|
fixed: Boolean,
|
|
85
85
|
sliderColor: String,
|
|
86
86
|
hideSlider: Boolean,
|
|
@@ -125,7 +125,7 @@ const We = {
|
|
|
125
125
|
return M(() => {
|
|
126
126
|
const m = G.filterProps(e);
|
|
127
127
|
return v(G, z({
|
|
128
|
-
symbol:
|
|
128
|
+
symbol: ve,
|
|
129
129
|
ref: o,
|
|
130
130
|
class: ["v-tab", e.class],
|
|
131
131
|
style: e.style,
|
|
@@ -181,8 +181,8 @@ const We = {
|
|
|
181
181
|
type: [Boolean, String],
|
|
182
182
|
default: "force"
|
|
183
183
|
},
|
|
184
|
-
...
|
|
185
|
-
...
|
|
184
|
+
...re(),
|
|
185
|
+
...ce(),
|
|
186
186
|
...Ge()
|
|
187
187
|
}, "VWindow"), Te = $()({
|
|
188
188
|
name: "VWindow",
|
|
@@ -295,7 +295,7 @@ const We = {
|
|
|
295
295
|
let {
|
|
296
296
|
slots: s
|
|
297
297
|
} = n;
|
|
298
|
-
const t =
|
|
298
|
+
const t = de(ve, null), l = ze(e, "modelValue"), u = y({
|
|
299
299
|
get() {
|
|
300
300
|
return l.value != null || !t ? l.value : t.items.value.find((o) => t.selected.value.includes(o.id))?.value;
|
|
301
301
|
},
|
|
@@ -326,7 +326,7 @@ const We = {
|
|
|
326
326
|
type: [Boolean, String],
|
|
327
327
|
default: void 0
|
|
328
328
|
},
|
|
329
|
-
...
|
|
329
|
+
...re(),
|
|
330
330
|
...qe(),
|
|
331
331
|
...yt()
|
|
332
332
|
}, "VWindowItem"), Ve = $()({
|
|
@@ -342,7 +342,7 @@ const We = {
|
|
|
342
342
|
let {
|
|
343
343
|
slots: s
|
|
344
344
|
} = n;
|
|
345
|
-
const t =
|
|
345
|
+
const t = de($e), l = Ke(e, Me), {
|
|
346
346
|
isBooted: u
|
|
347
347
|
} = xt();
|
|
348
348
|
if (!t || !l) throw new Error("[Vuetify] VWindowItem must be used inside VWindow");
|
|
@@ -351,14 +351,14 @@ const We = {
|
|
|
351
351
|
!o.value || !t || (o.value = !1, t.transitionCount.value > 0 && (t.transitionCount.value -= 1, t.transitionCount.value === 0 && (t.transitionHeight.value = void 0)));
|
|
352
352
|
}
|
|
353
353
|
function h() {
|
|
354
|
-
o.value || !t || (o.value = !0, t.transitionCount.value === 0 && (t.transitionHeight.value =
|
|
354
|
+
o.value || !t || (o.value = !0, t.transitionCount.value === 0 && (t.transitionHeight.value = ue(t.rootRef.value?.clientHeight)), t.transitionCount.value += 1);
|
|
355
355
|
}
|
|
356
356
|
function x() {
|
|
357
357
|
r();
|
|
358
358
|
}
|
|
359
359
|
function m(d) {
|
|
360
360
|
o.value && Qe(() => {
|
|
361
|
-
!f.value || !o.value || !t || (t.transitionHeight.value =
|
|
361
|
+
!f.value || !o.value || !t || (t.transitionHeight.value = ue(d.clientHeight));
|
|
362
362
|
});
|
|
363
363
|
}
|
|
364
364
|
const a = y(() => {
|
|
@@ -383,7 +383,7 @@ const We = {
|
|
|
383
383
|
default: () => [q(v("div", {
|
|
384
384
|
class: ["v-window-item", l.selectedClass.value, e.class],
|
|
385
385
|
style: e.style
|
|
386
|
-
}, [g.value && s.default?.()]), [[
|
|
386
|
+
}, [g.value && s.default?.()]), [[ie, l.isSelected.value]])]
|
|
387
387
|
})), {
|
|
388
388
|
groupItem: l
|
|
389
389
|
};
|
|
@@ -471,11 +471,11 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
|
|
|
471
471
|
type: [Boolean, String],
|
|
472
472
|
validator: (e) => typeof e == "boolean" || ["always", "desktop", "mobile"].includes(e)
|
|
473
473
|
},
|
|
474
|
-
...
|
|
474
|
+
...re(),
|
|
475
475
|
...Je({
|
|
476
476
|
mobile: null
|
|
477
477
|
}),
|
|
478
|
-
...
|
|
478
|
+
...ce(),
|
|
479
479
|
...Ze({
|
|
480
480
|
selectedClass: "v-slide-group-item--active"
|
|
481
481
|
})
|
|
@@ -541,10 +541,10 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
|
|
|
541
541
|
Math.abs(i - w) < 16)) {
|
|
542
542
|
if (m.value && t.value && a.el) {
|
|
543
543
|
const {
|
|
544
|
-
scrollWidth:
|
|
545
|
-
offsetWidth:
|
|
544
|
+
scrollWidth: se,
|
|
545
|
+
offsetWidth: le
|
|
546
546
|
} = a.el;
|
|
547
|
-
i =
|
|
547
|
+
i = se - le - i;
|
|
548
548
|
}
|
|
549
549
|
m.value ? T.horizontal(i, V.value) : T(i, V.value);
|
|
550
550
|
}
|
|
@@ -599,15 +599,15 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
|
|
|
599
599
|
}
|
|
600
600
|
function J(i) {
|
|
601
601
|
const c = m.value && t.value ? -1 : 1, w = (i === "prev" ? -c : c) * h.value;
|
|
602
|
-
let
|
|
602
|
+
let oe = r.value + w;
|
|
603
603
|
if (m.value && t.value && a.el) {
|
|
604
604
|
const {
|
|
605
|
-
scrollWidth:
|
|
606
|
-
offsetWidth:
|
|
605
|
+
scrollWidth: se,
|
|
606
|
+
offsetWidth: le
|
|
607
607
|
} = a.el;
|
|
608
|
-
|
|
608
|
+
oe += se - le;
|
|
609
609
|
}
|
|
610
|
-
k(
|
|
610
|
+
k(oe);
|
|
611
611
|
}
|
|
612
612
|
const Z = y(() => ({
|
|
613
613
|
next: o.next,
|
|
@@ -627,7 +627,7 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
|
|
|
627
627
|
default:
|
|
628
628
|
return !u.value && (f.value || Math.abs(r.value) > 0);
|
|
629
629
|
}
|
|
630
|
-
}),
|
|
630
|
+
}), te = y(() => Math.abs(r.value) > 1), ne = y(() => {
|
|
631
631
|
if (!a.value) return !1;
|
|
632
632
|
const i = Ce(m.value, a.el), c = Ft(m.value, a.el);
|
|
633
633
|
return i - c - Math.abs(r.value) > 1;
|
|
@@ -645,10 +645,10 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
|
|
|
645
645
|
default: () => [ee.value && v("div", {
|
|
646
646
|
key: "prev",
|
|
647
647
|
class: ["v-slide-group__prev", {
|
|
648
|
-
"v-slide-group__prev--disabled": !
|
|
648
|
+
"v-slide-group__prev--disabled": !te.value
|
|
649
649
|
}],
|
|
650
650
|
onMousedown: j,
|
|
651
|
-
onClick: () =>
|
|
651
|
+
onClick: () => te.value && J("prev")
|
|
652
652
|
}, [s.prev?.(Z.value) ?? v(ke, null, {
|
|
653
653
|
default: () => [v(ge, {
|
|
654
654
|
icon: t.value ? e.nextIcon : e.prevIcon
|
|
@@ -667,10 +667,10 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
|
|
|
667
667
|
}, [s.default?.(Z.value)])]), ee.value && v("div", {
|
|
668
668
|
key: "next",
|
|
669
669
|
class: ["v-slide-group__next", {
|
|
670
|
-
"v-slide-group__next--disabled": !
|
|
670
|
+
"v-slide-group__next--disabled": !ne.value
|
|
671
671
|
}],
|
|
672
672
|
onMousedown: j,
|
|
673
|
-
onClick: () =>
|
|
673
|
+
onClick: () => ne.value && J("next")
|
|
674
674
|
}, [s.next?.(Z.value) ?? v(ke, null, {
|
|
675
675
|
default: () => [v(ge, {
|
|
676
676
|
icon: t.value ? e.prevIcon : e.nextIcon
|
|
@@ -680,7 +680,9 @@ const Ot = Symbol.for("vuetify:v-slide-group"), Le = R({
|
|
|
680
680
|
selected: o.selected,
|
|
681
681
|
scrollTo: J,
|
|
682
682
|
scrollOffset: r,
|
|
683
|
-
focus: L
|
|
683
|
+
focus: L,
|
|
684
|
+
hasPrev: te,
|
|
685
|
+
hasNext: ne
|
|
684
686
|
};
|
|
685
687
|
}
|
|
686
688
|
});
|
|
@@ -715,7 +717,7 @@ const Xt = R({
|
|
|
715
717
|
selectedClass: "v-tab-item--selected"
|
|
716
718
|
}),
|
|
717
719
|
...ot(),
|
|
718
|
-
...
|
|
720
|
+
...ce()
|
|
719
721
|
}, "VTabs"), Yt = $()({
|
|
720
722
|
name: "VTabs",
|
|
721
723
|
props: Xt(),
|
|
@@ -755,10 +757,10 @@ const Xt = R({
|
|
|
755
757
|
"v-tabs--stacked": e.stacked
|
|
756
758
|
}, o.value, f.value, e.class],
|
|
757
759
|
style: [{
|
|
758
|
-
"--v-tabs-height":
|
|
760
|
+
"--v-tabs-height": ue(e.height)
|
|
759
761
|
}, r.value, e.style],
|
|
760
762
|
role: "tablist",
|
|
761
|
-
symbol:
|
|
763
|
+
symbol: ve
|
|
762
764
|
}, h, s), {
|
|
763
765
|
default: () => [t.default?.() ?? u.value.map((a) => t.tab?.({
|
|
764
766
|
item: a
|
|
@@ -801,7 +803,7 @@ const Xt = R({
|
|
|
801
803
|
}));
|
|
802
804
|
const n = (
|
|
803
805
|
/** @type {import("@/types").Eodash} */
|
|
804
|
-
|
|
806
|
+
de(ct)
|
|
805
807
|
), s = n.template.widgets, t = be(s), [l] = be([n.template?.background]), { mainRect: u } = dt(), o = I(-1), f = I(null), r = I(""), h = I(""), x = I("");
|
|
806
808
|
return vt(() => {
|
|
807
809
|
h.value = u.value.top + "px", x.value = (u.value.bottom || 48) + "px", r.value = u.value.bottom + (f.value?.$el?.clientHeight ?? 0) + "px";
|
|
@@ -818,7 +820,7 @@ const Xt = R({
|
|
|
818
820
|
null,
|
|
819
821
|
16
|
|
820
822
|
/* FULL_PROPS */
|
|
821
|
-
)) :
|
|
823
|
+
)) : ae("v-if", !0)
|
|
822
824
|
]),
|
|
823
825
|
_: 1
|
|
824
826
|
/* STABLE */
|
|
@@ -869,7 +871,7 @@ const Xt = R({
|
|
|
869
871
|
512
|
|
870
872
|
/* NEED_PATCH */
|
|
871
873
|
), [
|
|
872
|
-
[
|
|
874
|
+
[ie, o.value === d]
|
|
873
875
|
])
|
|
874
876
|
]),
|
|
875
877
|
_: 2
|
|
@@ -882,8 +884,8 @@ const Xt = R({
|
|
|
882
884
|
512
|
|
883
885
|
/* NEED_PATCH */
|
|
884
886
|
)), [
|
|
885
|
-
[
|
|
886
|
-
]) :
|
|
887
|
+
[ie, o.value === d]
|
|
888
|
+
]) : ae("v-if", !0)
|
|
887
889
|
],
|
|
888
890
|
64
|
|
889
891
|
/* STABLE_FRAGMENT */
|
|
@@ -922,7 +924,7 @@ const Xt = R({
|
|
|
922
924
|
]),
|
|
923
925
|
_: 2
|
|
924
926
|
/* DYNAMIC */
|
|
925
|
-
}, 1032, ["value"])) :
|
|
927
|
+
}, 1032, ["value"])) : ae("v-if", !0)
|
|
926
928
|
],
|
|
927
929
|
64
|
|
928
930
|
/* STABLE_FRAGMENT */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as E, b as p, d as h, ab as w, p as V, y as R, r as O, L as
|
|
2
|
-
import { m as de, V as B } from "./VOverlay-
|
|
3
|
-
import { a as y, d as me, s as D, c as fe, g as ge, n as ve, b as pe, f as he } from "./forwardRefs-
|
|
1
|
+
import { g as E, b as p, d as h, ab as w, p as V, y as R, r as O, L as M, w as x, a as T, D as q, ak as I, N, ae as W, e as j, ac as U, af as X, b5 as Y, b6 as z, ag as H, f as Q, h as G, i as J, Q as K, R as Z, ah as _, ad as ee, ai as te, ba as ae, bb as oe, aj as se, be as ne, bf as re, X as ie, $ as b, a6 as k, a1 as S, a0 as le, a3 as P, a4 as ce, a5 as C, br as ue } from "./asWebComponent-tNU8_fkz.js";
|
|
2
|
+
import { m as de, V as B } from "./VOverlay-DAiInZQP.js";
|
|
3
|
+
import { a as y, d as me, s as D, c as fe, g as ge, n as ve, b as pe, f as he } from "./forwardRefs-BexjzXbg.js";
|
|
4
4
|
const ye = V({
|
|
5
5
|
target: [Object, Array]
|
|
6
|
-
}, "v-dialog-transition"),
|
|
6
|
+
}, "v-dialog-transition"), be = E()({
|
|
7
7
|
name: "VDialogTransition",
|
|
8
8
|
props: ye(),
|
|
9
9
|
setup(e, i) {
|
|
@@ -106,7 +106,7 @@ function L(e, i) {
|
|
|
106
106
|
speed: $
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
const
|
|
109
|
+
const Pe = V({
|
|
110
110
|
fullscreen: Boolean,
|
|
111
111
|
retainFocus: {
|
|
112
112
|
type: Boolean,
|
|
@@ -117,13 +117,13 @@ const be = V({
|
|
|
117
117
|
origin: "center center",
|
|
118
118
|
scrollStrategy: "block",
|
|
119
119
|
transition: {
|
|
120
|
-
component:
|
|
120
|
+
component: be
|
|
121
121
|
},
|
|
122
122
|
zIndex: 2400
|
|
123
123
|
})
|
|
124
124
|
}, "VDialog"), Ee = E()({
|
|
125
125
|
name: "VDialog",
|
|
126
|
-
props:
|
|
126
|
+
props: Pe(),
|
|
127
127
|
emits: {
|
|
128
128
|
"update:modelValue": (e) => !0,
|
|
129
129
|
afterLeave: () => !0
|
|
@@ -148,7 +148,7 @@ const be = V({
|
|
|
148
148
|
u === v ? g.focus() : v.focus();
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
|
|
151
|
+
M && x(() => t.value && e.retainFocus, (s) => {
|
|
152
152
|
s ? document.addEventListener("focusin", l) : document.removeEventListener("focusin", l);
|
|
153
153
|
}, {
|
|
154
154
|
immediate: !0
|
|
@@ -162,7 +162,7 @@ const be = V({
|
|
|
162
162
|
o("afterLeave");
|
|
163
163
|
}
|
|
164
164
|
return x(t, async (s) => {
|
|
165
|
-
s || (await
|
|
165
|
+
s || (await q(), a.value.activatorEl?.focus({
|
|
166
166
|
preventScroll: !0
|
|
167
167
|
}));
|
|
168
168
|
}), T(() => {
|
|
@@ -258,7 +258,7 @@ const be = V({
|
|
|
258
258
|
emits: ["update:modelValue"],
|
|
259
259
|
setup(e) {
|
|
260
260
|
const i = re(e, "modelValue"), o = e, [r] = ie([o?.widget]);
|
|
261
|
-
return (t, c) => (
|
|
261
|
+
return (t, c) => (b(), k("span", null, [
|
|
262
262
|
p(Ee, {
|
|
263
263
|
"max-width": "500px",
|
|
264
264
|
"max-height": "500px",
|
|
@@ -272,16 +272,16 @@ const be = V({
|
|
|
272
272
|
default: S(() => [
|
|
273
273
|
p(we, null, {
|
|
274
274
|
default: S(() => [
|
|
275
|
-
e.widget ? (
|
|
276
|
-
ce(
|
|
275
|
+
e.widget ? (b(), le(
|
|
276
|
+
ce(P(r).component),
|
|
277
277
|
h({
|
|
278
|
-
key:
|
|
279
|
-
},
|
|
278
|
+
key: P(r).id
|
|
279
|
+
}, P(r).props),
|
|
280
280
|
null,
|
|
281
281
|
16
|
|
282
282
|
/* FULL_PROPS */
|
|
283
283
|
)) : C("v-if", !0),
|
|
284
|
-
t.$slots.default ? (
|
|
284
|
+
t.$slots.default ? (b(), k("span", xe, [
|
|
285
285
|
ue(t.$slots, "default")
|
|
286
286
|
])) : C("v-if", !0)
|
|
287
287
|
]),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as ue, M as
|
|
1
|
+
import { bm as O, p as W, e as D, ac as G, g as $, ad as J, a as E, b as n, c as h, ag as K, Q as X, R as Y, aj as Z, bn as p, s as f, r as ee, w as C, bo as te, D as ne, an as re, t as U, v as ae, F as se, d as ie, C as le, B as oe } from "./asWebComponent-tNU8_fkz.js";
|
|
2
|
+
import { m as ue, M as y } from "./transition-DNdd2Y-1.js";
|
|
3
3
|
function ce(e, s) {
|
|
4
4
|
if (!O) return;
|
|
5
5
|
const i = s.modifiers || {}, l = s.value, {
|
|
6
|
-
handler:
|
|
6
|
+
handler: d,
|
|
7
7
|
options: R
|
|
8
8
|
} = typeof l == "object" ? l : {
|
|
9
9
|
handler: l,
|
|
@@ -12,8 +12,8 @@ function ce(e, s) {
|
|
|
12
12
|
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], _ = arguments.length > 1 ? arguments[1] : void 0;
|
|
13
13
|
const r = e._observe?.[s.instance.$.uid];
|
|
14
14
|
if (!r) return;
|
|
15
|
-
const a = c.some((
|
|
16
|
-
|
|
15
|
+
const a = c.some((v) => v.isIntersecting);
|
|
16
|
+
d && (!i.quiet || r.init) && (!i.once || a || r.init) && d(a, c, _), a && i.once ? M(e, s) : r.init = !0;
|
|
17
17
|
}, R);
|
|
18
18
|
e._observe = Object(e._observe), e._observe[s.instance.$.uid] = {
|
|
19
19
|
init: !1,
|
|
@@ -24,11 +24,11 @@ function M(e, s) {
|
|
|
24
24
|
const i = e._observe?.[s.instance.$.uid];
|
|
25
25
|
i && (i.observer.unobserve(e), delete e._observe[s.instance.$.uid]);
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const ve = {
|
|
28
28
|
mounted: ce,
|
|
29
29
|
unmounted: M
|
|
30
30
|
};
|
|
31
|
-
function
|
|
31
|
+
function de(e) {
|
|
32
32
|
return {
|
|
33
33
|
aspectStyles: h(() => {
|
|
34
34
|
const s = Number(e.aspectRatio);
|
|
@@ -53,14 +53,14 @@ const q = W({
|
|
|
53
53
|
} = s;
|
|
54
54
|
const {
|
|
55
55
|
aspectStyles: l
|
|
56
|
-
} =
|
|
57
|
-
dimensionStyles:
|
|
56
|
+
} = de(e), {
|
|
57
|
+
dimensionStyles: d
|
|
58
58
|
} = J(e);
|
|
59
59
|
return E(() => n("div", {
|
|
60
60
|
class: ["v-responsive", {
|
|
61
61
|
"v-responsive--inline": e.inline
|
|
62
62
|
}, e.class],
|
|
63
|
-
style: [
|
|
63
|
+
style: [d.value, e.style]
|
|
64
64
|
}, [n("div", {
|
|
65
65
|
class: "v-responsive__sizer",
|
|
66
66
|
style: l.value
|
|
@@ -69,6 +69,7 @@ const q = W({
|
|
|
69
69
|
}, [i.default()])])), {};
|
|
70
70
|
}
|
|
71
71
|
}), ge = W({
|
|
72
|
+
absolute: Boolean,
|
|
72
73
|
alt: String,
|
|
73
74
|
cover: Boolean,
|
|
74
75
|
color: String,
|
|
@@ -105,7 +106,7 @@ const q = W({
|
|
|
105
106
|
}, "VImg"), Se = $()({
|
|
106
107
|
name: "VImg",
|
|
107
108
|
directives: {
|
|
108
|
-
intersect:
|
|
109
|
+
intersect: ve
|
|
109
110
|
},
|
|
110
111
|
props: ge(),
|
|
111
112
|
emits: {
|
|
@@ -119,11 +120,11 @@ const q = W({
|
|
|
119
120
|
slots: l
|
|
120
121
|
} = s;
|
|
121
122
|
const {
|
|
122
|
-
backgroundColorClasses:
|
|
123
|
+
backgroundColorClasses: d,
|
|
123
124
|
backgroundColorStyles: R
|
|
124
125
|
} = X(Y(e, "color")), {
|
|
125
126
|
roundedClasses: S
|
|
126
|
-
} = Z(e), c = p("VImg"), _ = f(""), r = ee(), a = f(e.eager ? "loading" : "idle"),
|
|
127
|
+
} = Z(e), c = p("VImg"), _ = f(""), r = ee(), a = f(e.eager ? "loading" : "idle"), v = f(), b = f(), o = h(() => e.src && typeof e.src == "object" ? {
|
|
127
128
|
src: e.src.src,
|
|
128
129
|
srcset: e.srcset || e.src.srcset,
|
|
129
130
|
lazySrc: e.lazySrc || e.src.lazySrc,
|
|
@@ -133,7 +134,7 @@ const q = W({
|
|
|
133
134
|
srcset: e.srcset,
|
|
134
135
|
lazySrc: e.lazySrc,
|
|
135
136
|
aspect: Number(e.aspectRatio || 0)
|
|
136
|
-
}), g = h(() => o.value.aspect ||
|
|
137
|
+
}), g = h(() => o.value.aspect || v.value / b.value || 0);
|
|
137
138
|
C(() => e.src, () => {
|
|
138
139
|
z(a.value !== "idle");
|
|
139
140
|
}), C(g, (t, u) => {
|
|
@@ -173,23 +174,23 @@ const q = W({
|
|
|
173
174
|
});
|
|
174
175
|
function m(t) {
|
|
175
176
|
let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100;
|
|
176
|
-
const
|
|
177
|
+
const V = () => {
|
|
177
178
|
if (clearTimeout(I), c.isUnmounted) return;
|
|
178
179
|
const {
|
|
179
180
|
naturalHeight: j,
|
|
180
181
|
naturalWidth: N
|
|
181
182
|
} = t;
|
|
182
|
-
j || N ? (
|
|
183
|
+
j || N ? (v.value = N, b.value = j) : !t.complete && a.value === "loading" && u != null ? I = window.setTimeout(V, u) : (t.currentSrc.endsWith(".svg") || t.currentSrc.startsWith("data:image/svg+xml")) && (v.value = 1, b.value = 1);
|
|
183
184
|
};
|
|
184
|
-
|
|
185
|
+
V();
|
|
185
186
|
}
|
|
186
|
-
const
|
|
187
|
+
const B = h(() => ({
|
|
187
188
|
"v-img__img--cover": e.cover,
|
|
188
189
|
"v-img__img--contain": !e.cover
|
|
189
190
|
})), x = () => {
|
|
190
191
|
if (!o.value.src || a.value === "idle") return null;
|
|
191
192
|
const t = n("img", {
|
|
192
|
-
class: ["v-img__img",
|
|
193
|
+
class: ["v-img__img", B.value],
|
|
193
194
|
style: {
|
|
194
195
|
objectPosition: e.position
|
|
195
196
|
},
|
|
@@ -204,7 +205,7 @@ const q = W({
|
|
|
204
205
|
onLoad: P,
|
|
205
206
|
onError: w
|
|
206
207
|
}, null), u = l.sources?.();
|
|
207
|
-
return n(
|
|
208
|
+
return n(y, {
|
|
208
209
|
transition: e.transition,
|
|
209
210
|
appear: !0
|
|
210
211
|
}, {
|
|
@@ -212,11 +213,11 @@ const q = W({
|
|
|
212
213
|
class: "v-img__picture"
|
|
213
214
|
}, [u, t]) : t, [[oe, a.value === "loaded"]])]
|
|
214
215
|
});
|
|
215
|
-
}, A = () => n(
|
|
216
|
+
}, A = () => n(y, {
|
|
216
217
|
transition: e.transition
|
|
217
218
|
}, {
|
|
218
219
|
default: () => [o.value.lazySrc && a.value !== "loaded" && n("img", {
|
|
219
|
-
class: ["v-img__img", "v-img__img--preload",
|
|
220
|
+
class: ["v-img__img", "v-img__img--preload", B.value],
|
|
220
221
|
style: {
|
|
221
222
|
objectPosition: e.position
|
|
222
223
|
},
|
|
@@ -226,14 +227,14 @@ const q = W({
|
|
|
226
227
|
referrerpolicy: e.referrerpolicy,
|
|
227
228
|
draggable: e.draggable
|
|
228
229
|
}, null)]
|
|
229
|
-
}), H = () => l.placeholder ? n(
|
|
230
|
+
}), H = () => l.placeholder ? n(y, {
|
|
230
231
|
transition: e.transition,
|
|
231
232
|
appear: !0
|
|
232
233
|
}, {
|
|
233
234
|
default: () => [(a.value === "loading" || a.value === "error" && !l.error) && n("div", {
|
|
234
235
|
class: "v-img__placeholder"
|
|
235
236
|
}, [l.placeholder()])]
|
|
236
|
-
}) : null, L = () => l.error ? n(
|
|
237
|
+
}) : null, L = () => l.error ? n(y, {
|
|
237
238
|
transition: e.transition,
|
|
238
239
|
appear: !0
|
|
239
240
|
}, {
|
|
@@ -245,12 +246,12 @@ const q = W({
|
|
|
245
246
|
style: {
|
|
246
247
|
backgroundImage: `linear-gradient(${e.gradient})`
|
|
247
248
|
}
|
|
248
|
-
}, null) : null,
|
|
249
|
+
}, null) : null, T = f(!1);
|
|
249
250
|
{
|
|
250
251
|
const t = C(g, (u) => {
|
|
251
252
|
u && (requestAnimationFrame(() => {
|
|
252
253
|
requestAnimationFrame(() => {
|
|
253
|
-
|
|
254
|
+
T.value = !0;
|
|
254
255
|
});
|
|
255
256
|
}), t());
|
|
256
257
|
});
|
|
@@ -259,10 +260,11 @@ const q = W({
|
|
|
259
260
|
const t = F.filterProps(e);
|
|
260
261
|
return U(n(F, ie({
|
|
261
262
|
class: ["v-img", {
|
|
262
|
-
"v-img--
|
|
263
|
-
|
|
263
|
+
"v-img--absolute": e.absolute,
|
|
264
|
+
"v-img--booting": !T.value
|
|
265
|
+
}, d.value, S.value, e.class],
|
|
264
266
|
style: [{
|
|
265
|
-
width: le(e.width === "auto" ?
|
|
267
|
+
width: le(e.width === "auto" ? v.value : e.width)
|
|
266
268
|
}, R.value, e.style]
|
|
267
269
|
}, t, {
|
|
268
270
|
aspectRatio: g.value,
|
|
@@ -281,8 +283,8 @@ const q = W({
|
|
|
281
283
|
currentSrc: _,
|
|
282
284
|
image: r,
|
|
283
285
|
state: a,
|
|
284
|
-
naturalWidth:
|
|
285
|
-
naturalHeight:
|
|
286
|
+
naturalWidth: v,
|
|
287
|
+
naturalHeight: b
|
|
286
288
|
};
|
|
287
289
|
}
|
|
288
290
|
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { p as r, e as i, ac as m, f as c, g as u, ad as d, Y as v, a as y, b as e } from "./asWebComponent-tNU8_fkz.js";
|
|
2
|
+
import { u as f } from "./ssrBoot-C71RpKe4.js";
|
|
3
|
+
const V = r({
|
|
4
|
+
scrollable: Boolean,
|
|
5
|
+
...i(),
|
|
6
|
+
...m(),
|
|
7
|
+
...c({
|
|
8
|
+
tag: "main"
|
|
9
|
+
})
|
|
10
|
+
}, "VMain"), p = u()({
|
|
11
|
+
name: "VMain",
|
|
12
|
+
props: V(),
|
|
13
|
+
setup(a, o) {
|
|
14
|
+
let {
|
|
15
|
+
slots: s
|
|
16
|
+
} = o;
|
|
17
|
+
const {
|
|
18
|
+
dimensionStyles: l
|
|
19
|
+
} = d(a), {
|
|
20
|
+
mainStyles: n
|
|
21
|
+
} = v(), {
|
|
22
|
+
ssrBootStyles: t
|
|
23
|
+
} = f();
|
|
24
|
+
return y(() => e(a.tag, {
|
|
25
|
+
class: ["v-main", {
|
|
26
|
+
"v-main--scrollable": a.scrollable
|
|
27
|
+
}, a.class],
|
|
28
|
+
style: [n.value, t.value, l.value, a.style]
|
|
29
|
+
}, {
|
|
30
|
+
default: () => [a.scrollable ? e("div", {
|
|
31
|
+
class: "v-main__scroller"
|
|
32
|
+
}, [s.default?.()]) : s.default?.()]
|
|
33
|
+
})), {};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
p as V
|
|
38
|
+
};
|