@eodash/eodash 5.0.0-alpha.2.19 → 5.0.0-alpha.2.21
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 +11 -1
- package/core/client/asWebComponent.js +9 -2
- package/core/client/utils/createLayers.js +1 -0
- package/core/client/views/Dashboard.vue +17 -46
- package/dist/client/DashboardLayout-DEZe5rZn.js +86 -0
- package/dist/client/DynamicWebComponent-Cp_3d3nd.js +88 -0
- package/dist/client/EodashDatePicker-BwQ9Bw9-.js +393 -0
- package/dist/client/EodashItemFilter-BtihrBap.js +194 -0
- package/dist/client/EodashLayerControl-BuZgXYop.js +111 -0
- package/dist/client/EodashMap-C9hvsdhf.js +472 -0
- package/dist/client/EodashMapBtns-BTG6oYL5.js +66 -0
- package/dist/client/ExportState-GDJ8YxS9.js +644 -0
- package/dist/client/Footer-Cul4HvW4.js +141 -0
- package/dist/client/Header-BikVMROv.js +437 -0
- package/dist/client/IframeWrapper-BgM9aU8f.js +28 -0
- package/dist/client/MobileLayout-ByPGOgnO.js +1210 -0
- package/dist/client/PopUp-AJqPEHmR.js +382 -0
- package/dist/client/VImg-CY7ndzv2.js +384 -0
- package/dist/client/VMain-BlIaUbM6.js +43 -0
- package/dist/client/VOverlay-CiMWDe2b.js +1453 -0
- package/dist/client/WidgetsContainer-DG9sQaF0.js +83 -0
- package/dist/client/asWebComponent-6g8pz2_C.js +11557 -0
- package/dist/client/eo-dash.js +2 -6
- package/dist/client/forwardRefs-DnXzPqIo.js +245 -0
- package/dist/client/index-14PHPf-A.js +199 -0
- package/dist/client/ssrBoot-BP7SYRyC.js +22 -0
- package/dist/client/style.css +2 -2
- package/dist/client/transition-CGVKXZbS.js +37 -0
- package/dist/node/cli.js +5 -5
- package/dist/node/types.d.ts +2 -0
- package/package.json +21 -19
- package/widgets/EodashDatePicker.vue +20 -9
- package/core/client/SuspensedDashboard.ce.vue +0 -105
- package/dist/client/DashboardLayout-CU4js3lr.js +0 -156
- package/dist/client/DynamicWebComponent-BsYZdIEB.js +0 -57
- package/dist/client/EodashDatePicker-DZoH_gRX.js +0 -276
- package/dist/client/EodashItemFilter-CHBfsFSm.js +0 -7666
- package/dist/client/EodashLayerControl-CuY-cAx8.js +0 -24665
- package/dist/client/EodashMap-Ch43fWNv.js +0 -88369
- package/dist/client/EodashMapBtns-CFA2uti4.js +0 -50
- package/dist/client/ExportState-C6raDjTt.js +0 -570
- package/dist/client/Footer-D8T5ROhF.js +0 -117
- package/dist/client/Header-B8B4Z5R9.js +0 -350
- package/dist/client/IframeWrapper-BK2JxzSJ.js +0 -19
- package/dist/client/MobileLayout-aZaYvF8V.js +0 -947
- package/dist/client/PopUp-DdHXoNOP.js +0 -300
- package/dist/client/VImg-yb8O1cb8.js +0 -293
- package/dist/client/VMain-Dknnyxts.js +0 -38
- package/dist/client/VOverlay-BCOn3hd6.js +0 -973
- package/dist/client/WidgetsContainer-BixUyr1e.js +0 -129
- package/dist/client/asWebComponent-CHqY8A1z.js +0 -24636
- package/dist/client/basedecoder-DHcBySSe-BmCFNFnw.js +0 -88
- package/dist/client/decoder-DJlmx386-DJlmx386.js +0 -8
- package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +0 -10
- package/dist/client/eox-stacinfo-l7ALSV90.js +0 -13969
- package/dist/client/forwardRefs-dcYA2XVU.js +0 -185
- package/dist/client/index-BVuSHaVu.js +0 -153
- package/dist/client/jpeg-BAgeD1d3-oeHbFPUL.js +0 -514
- package/dist/client/lerc-BPVtQnt3-08GHszVp.js +0 -1027
- package/dist/client/lzw-LAGDNbSC-DkP96qO9.js +0 -84
- package/dist/client/packbits-BlDR4Kj5-C66n1-zr.js +0 -24
- package/dist/client/pako.esm-CB1uQYY0-DB0PYm1P.js +0 -1081
- package/dist/client/raw-CMGvRjfu-BRi6E4i1.js +0 -9
- package/dist/client/ssrBoot-DU2S_nLc.js +0 -17
- package/dist/client/transition-C_fi1aa6.js +0 -34
- package/dist/client/webfontloader-Ofarvipf.js +0 -435
- package/dist/client/webimage-BM_pbLN3-L2cGWK5l.js +0 -19
|
@@ -1,300 +0,0 @@
|
|
|
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, a6 as k, a1 as C, $ as b, a0 as le, a3 as P, a4 as ce, a5 as S, br as ue } from "./asWebComponent-CHqY8A1z.js";
|
|
2
|
-
import { m as de, V as B } from "./VOverlay-BCOn3hd6.js";
|
|
3
|
-
import { a as y, d as fe, s as D, c as me, g as ge, n as ve, b as pe, f as he } from "./forwardRefs-dcYA2XVU.js";
|
|
4
|
-
const ye = V({
|
|
5
|
-
target: [Object, Array]
|
|
6
|
-
}, "v-dialog-transition"), be = E()({
|
|
7
|
-
name: "VDialogTransition",
|
|
8
|
-
props: ye(),
|
|
9
|
-
setup(e, i) {
|
|
10
|
-
let {
|
|
11
|
-
slots: o
|
|
12
|
-
} = i;
|
|
13
|
-
const r = {
|
|
14
|
-
onBeforeEnter(t) {
|
|
15
|
-
t.style.pointerEvents = "none", t.style.visibility = "hidden";
|
|
16
|
-
},
|
|
17
|
-
async onEnter(t, c) {
|
|
18
|
-
await new Promise((n) => requestAnimationFrame(n)), await new Promise((n) => requestAnimationFrame(n)), t.style.visibility = "";
|
|
19
|
-
const {
|
|
20
|
-
x: a,
|
|
21
|
-
y: l,
|
|
22
|
-
sx: d,
|
|
23
|
-
sy: f,
|
|
24
|
-
speed: s
|
|
25
|
-
} = L(e.target, t), u = y(t, [{
|
|
26
|
-
transform: `translate(${a}px, ${l}px) scale(${d}, ${f})`,
|
|
27
|
-
opacity: 0
|
|
28
|
-
}, {}], {
|
|
29
|
-
duration: 225 * s,
|
|
30
|
-
easing: fe
|
|
31
|
-
});
|
|
32
|
-
A(t)?.forEach((n) => {
|
|
33
|
-
y(n, [{
|
|
34
|
-
opacity: 0
|
|
35
|
-
}, {
|
|
36
|
-
opacity: 0,
|
|
37
|
-
offset: 0.33
|
|
38
|
-
}, {}], {
|
|
39
|
-
duration: 225 * 2 * s,
|
|
40
|
-
easing: D
|
|
41
|
-
});
|
|
42
|
-
}), u.finished.then(() => c());
|
|
43
|
-
},
|
|
44
|
-
onAfterEnter(t) {
|
|
45
|
-
t.style.removeProperty("pointer-events");
|
|
46
|
-
},
|
|
47
|
-
onBeforeLeave(t) {
|
|
48
|
-
t.style.pointerEvents = "none";
|
|
49
|
-
},
|
|
50
|
-
async onLeave(t, c) {
|
|
51
|
-
await new Promise((n) => requestAnimationFrame(n));
|
|
52
|
-
const {
|
|
53
|
-
x: a,
|
|
54
|
-
y: l,
|
|
55
|
-
sx: d,
|
|
56
|
-
sy: f,
|
|
57
|
-
speed: s
|
|
58
|
-
} = L(e.target, t);
|
|
59
|
-
y(t, [{}, {
|
|
60
|
-
transform: `translate(${a}px, ${l}px) scale(${d}, ${f})`,
|
|
61
|
-
opacity: 0
|
|
62
|
-
}], {
|
|
63
|
-
duration: 125 * s,
|
|
64
|
-
easing: me
|
|
65
|
-
}).finished.then(() => c()), A(t)?.forEach((n) => {
|
|
66
|
-
y(n, [{}, {
|
|
67
|
-
opacity: 0,
|
|
68
|
-
offset: 0.2
|
|
69
|
-
}, {
|
|
70
|
-
opacity: 0
|
|
71
|
-
}], {
|
|
72
|
-
duration: 125 * 2 * s,
|
|
73
|
-
easing: D
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
},
|
|
77
|
-
onAfterLeave(t) {
|
|
78
|
-
t.style.removeProperty("pointer-events");
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
return () => e.target ? p(w, h({
|
|
82
|
-
name: "dialog-transition"
|
|
83
|
-
}, r, {
|
|
84
|
-
css: !1
|
|
85
|
-
}), o) : p(w, {
|
|
86
|
-
name: "dialog-transition"
|
|
87
|
-
}, o);
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
function A(e) {
|
|
91
|
-
const i = e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list")?.children;
|
|
92
|
-
return i && [...i];
|
|
93
|
-
}
|
|
94
|
-
function L(e, i) {
|
|
95
|
-
const o = ge(e), r = ve(i), [t, c] = getComputedStyle(i).transformOrigin.split(" ").map((F) => parseFloat(F)), [a, l] = getComputedStyle(i).getPropertyValue("--v-overlay-anchor-origin").split(" ");
|
|
96
|
-
let d = o.left + o.width / 2;
|
|
97
|
-
a === "left" || l === "left" ? d -= o.width / 2 : (a === "right" || l === "right") && (d += o.width / 2);
|
|
98
|
-
let f = o.top + o.height / 2;
|
|
99
|
-
a === "top" || l === "top" ? f -= o.height / 2 : (a === "bottom" || l === "bottom") && (f += o.height / 2);
|
|
100
|
-
const s = o.width / r.width, u = o.height / r.height, n = Math.max(1, s, u), m = s / n || 0, v = u / n || 0, g = r.width * r.height / (window.innerWidth * window.innerHeight), $ = g > 0.12 ? Math.min(1.5, (g - 0.12) * 10 + 1) : 1;
|
|
101
|
-
return {
|
|
102
|
-
x: d - (t + r.left),
|
|
103
|
-
y: f - (c + r.top),
|
|
104
|
-
sx: m,
|
|
105
|
-
sy: v,
|
|
106
|
-
speed: $
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
const Pe = V({
|
|
110
|
-
fullscreen: Boolean,
|
|
111
|
-
retainFocus: {
|
|
112
|
-
type: Boolean,
|
|
113
|
-
default: !0
|
|
114
|
-
},
|
|
115
|
-
scrollable: Boolean,
|
|
116
|
-
...de({
|
|
117
|
-
origin: "center center",
|
|
118
|
-
scrollStrategy: "block",
|
|
119
|
-
transition: {
|
|
120
|
-
component: be
|
|
121
|
-
},
|
|
122
|
-
zIndex: 2400
|
|
123
|
-
})
|
|
124
|
-
}, "VDialog"), Ee = E()({
|
|
125
|
-
name: "VDialog",
|
|
126
|
-
props: Pe(),
|
|
127
|
-
emits: {
|
|
128
|
-
"update:modelValue": (e) => !0,
|
|
129
|
-
afterEnter: () => !0,
|
|
130
|
-
afterLeave: () => !0
|
|
131
|
-
},
|
|
132
|
-
setup(e, i) {
|
|
133
|
-
let {
|
|
134
|
-
emit: o,
|
|
135
|
-
slots: r
|
|
136
|
-
} = i;
|
|
137
|
-
const t = R(e, "modelValue"), {
|
|
138
|
-
scopeId: c
|
|
139
|
-
} = pe(), a = O();
|
|
140
|
-
function l(s) {
|
|
141
|
-
const u = s.relatedTarget, n = s.target;
|
|
142
|
-
if (u !== n && a.value?.contentEl && // We're the topmost dialog
|
|
143
|
-
a.value?.globalTop && // It isn't the document or the dialog body
|
|
144
|
-
![document, a.value.contentEl].includes(n) && // It isn't inside the dialog body
|
|
145
|
-
!a.value.contentEl.contains(n)) {
|
|
146
|
-
const m = N(a.value.contentEl);
|
|
147
|
-
if (!m.length) return;
|
|
148
|
-
const v = m[0], g = m[m.length - 1];
|
|
149
|
-
u === v ? g.focus() : v.focus();
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
M && x(() => t.value && e.retainFocus, (s) => {
|
|
153
|
-
s ? document.addEventListener("focusin", l) : document.removeEventListener("focusin", l);
|
|
154
|
-
}, {
|
|
155
|
-
immediate: !0
|
|
156
|
-
});
|
|
157
|
-
function d() {
|
|
158
|
-
o("afterEnter"), a.value?.contentEl && !a.value.contentEl.contains(document.activeElement) && a.value.contentEl.focus({
|
|
159
|
-
preventScroll: !0
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
function f() {
|
|
163
|
-
o("afterLeave");
|
|
164
|
-
}
|
|
165
|
-
return x(t, async (s) => {
|
|
166
|
-
s || (await q(), a.value.activatorEl?.focus({
|
|
167
|
-
preventScroll: !0
|
|
168
|
-
}));
|
|
169
|
-
}), T(() => {
|
|
170
|
-
const s = B.filterProps(e), u = h({
|
|
171
|
-
"aria-haspopup": "dialog"
|
|
172
|
-
}, e.activatorProps), n = h({
|
|
173
|
-
tabindex: -1
|
|
174
|
-
}, e.contentProps);
|
|
175
|
-
return p(B, h({
|
|
176
|
-
ref: a,
|
|
177
|
-
class: ["v-dialog", {
|
|
178
|
-
"v-dialog--fullscreen": e.fullscreen,
|
|
179
|
-
"v-dialog--scrollable": e.scrollable
|
|
180
|
-
}, e.class],
|
|
181
|
-
style: e.style
|
|
182
|
-
}, s, {
|
|
183
|
-
modelValue: t.value,
|
|
184
|
-
"onUpdate:modelValue": (m) => t.value = m,
|
|
185
|
-
"aria-modal": "true",
|
|
186
|
-
activatorProps: u,
|
|
187
|
-
contentProps: n,
|
|
188
|
-
role: "dialog",
|
|
189
|
-
onAfterEnter: d,
|
|
190
|
-
onAfterLeave: f
|
|
191
|
-
}, c), {
|
|
192
|
-
activator: r.activator,
|
|
193
|
-
default: function() {
|
|
194
|
-
for (var m = arguments.length, v = new Array(m), g = 0; g < m; g++)
|
|
195
|
-
v[g] = arguments[g];
|
|
196
|
-
return p(I, {
|
|
197
|
-
root: "VDialog"
|
|
198
|
-
}, {
|
|
199
|
-
default: () => [r.default?.(...v)]
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
}), he({}, a);
|
|
204
|
-
}
|
|
205
|
-
}), Ve = V({
|
|
206
|
-
color: String,
|
|
207
|
-
...W(),
|
|
208
|
-
...j(),
|
|
209
|
-
...U(),
|
|
210
|
-
...X(),
|
|
211
|
-
...Y(),
|
|
212
|
-
...z(),
|
|
213
|
-
...H(),
|
|
214
|
-
...Q(),
|
|
215
|
-
...G()
|
|
216
|
-
}, "VSheet"), we = E()({
|
|
217
|
-
name: "VSheet",
|
|
218
|
-
props: Ve(),
|
|
219
|
-
setup(e, i) {
|
|
220
|
-
let {
|
|
221
|
-
slots: o
|
|
222
|
-
} = i;
|
|
223
|
-
const {
|
|
224
|
-
themeClasses: r
|
|
225
|
-
} = J(e), {
|
|
226
|
-
backgroundColorClasses: t,
|
|
227
|
-
backgroundColorStyles: c
|
|
228
|
-
} = K(Z(e, "color")), {
|
|
229
|
-
borderClasses: a
|
|
230
|
-
} = _(e), {
|
|
231
|
-
dimensionStyles: l
|
|
232
|
-
} = ee(e), {
|
|
233
|
-
elevationClasses: d
|
|
234
|
-
} = te(e), {
|
|
235
|
-
locationStyles: f
|
|
236
|
-
} = ae(e), {
|
|
237
|
-
positionClasses: s
|
|
238
|
-
} = oe(e), {
|
|
239
|
-
roundedClasses: u
|
|
240
|
-
} = se(e);
|
|
241
|
-
return T(() => p(e.tag, {
|
|
242
|
-
class: ["v-sheet", r.value, t.value, a.value, d.value, s.value, u.value, e.class],
|
|
243
|
-
style: [c.value, l.value, f.value, e.style]
|
|
244
|
-
}, o)), {};
|
|
245
|
-
}
|
|
246
|
-
}), xe = { key: 1 }, Be = {
|
|
247
|
-
__name: "PopUp",
|
|
248
|
-
props: /* @__PURE__ */ ne({
|
|
249
|
-
widget: {
|
|
250
|
-
/** @type {import("vue").PropType<import("@/types").Widget>} */
|
|
251
|
-
type: Object,
|
|
252
|
-
default: void 0
|
|
253
|
-
}
|
|
254
|
-
}, {
|
|
255
|
-
modelValue: { type: Boolean, required: !0, default: !1 },
|
|
256
|
-
modelModifiers: {}
|
|
257
|
-
}),
|
|
258
|
-
emits: ["update:modelValue"],
|
|
259
|
-
setup(e) {
|
|
260
|
-
const i = re(e, "modelValue"), o = e, [r] = ie([o?.widget]);
|
|
261
|
-
return (t, c) => (b(), k("span", null, [
|
|
262
|
-
p(Ee, {
|
|
263
|
-
"max-width": "500px",
|
|
264
|
-
"max-height": "500px",
|
|
265
|
-
absolute: "",
|
|
266
|
-
scrollable: "",
|
|
267
|
-
"scroll-strategy": "block",
|
|
268
|
-
"close-on-back": "",
|
|
269
|
-
modelValue: i.value,
|
|
270
|
-
"onUpdate:modelValue": c[0] || (c[0] = (a) => i.value = a)
|
|
271
|
-
}, {
|
|
272
|
-
default: C(() => [
|
|
273
|
-
p(we, null, {
|
|
274
|
-
default: C(() => [
|
|
275
|
-
e.widget ? (b(), le(
|
|
276
|
-
ce(P(r).component),
|
|
277
|
-
h({
|
|
278
|
-
key: P(r).id
|
|
279
|
-
}, P(r).props),
|
|
280
|
-
null,
|
|
281
|
-
16
|
|
282
|
-
/* FULL_PROPS */
|
|
283
|
-
)) : S("v-if", !0),
|
|
284
|
-
t.$slots.default ? (b(), k("span", xe, [
|
|
285
|
-
ue(t.$slots, "default")
|
|
286
|
-
])) : S("v-if", !0)
|
|
287
|
-
]),
|
|
288
|
-
_: 3
|
|
289
|
-
/* FORWARDED */
|
|
290
|
-
})
|
|
291
|
-
]),
|
|
292
|
-
_: 3
|
|
293
|
-
/* FORWARDED */
|
|
294
|
-
}, 8, ["modelValue"])
|
|
295
|
-
]));
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
export {
|
|
299
|
-
Be as default
|
|
300
|
-
};
|
|
@@ -1,293 +0,0 @@
|
|
|
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-CHqY8A1z.js";
|
|
2
|
-
import { m as ue, M as y } from "./transition-C_fi1aa6.js";
|
|
3
|
-
function ce(e, s) {
|
|
4
|
-
if (!O) return;
|
|
5
|
-
const i = s.modifiers || {}, l = s.value, {
|
|
6
|
-
handler: d,
|
|
7
|
-
options: R
|
|
8
|
-
} = typeof l == "object" ? l : {
|
|
9
|
-
handler: l,
|
|
10
|
-
options: {}
|
|
11
|
-
}, S = new IntersectionObserver(function() {
|
|
12
|
-
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], _ = arguments.length > 1 ? arguments[1] : void 0;
|
|
13
|
-
const r = e._observe?.[s.instance.$.uid];
|
|
14
|
-
if (!r) return;
|
|
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
|
-
}, R);
|
|
18
|
-
e._observe = Object(e._observe), e._observe[s.instance.$.uid] = {
|
|
19
|
-
init: !1,
|
|
20
|
-
observer: S
|
|
21
|
-
}, S.observe(e);
|
|
22
|
-
}
|
|
23
|
-
function M(e, s) {
|
|
24
|
-
const i = e._observe?.[s.instance.$.uid];
|
|
25
|
-
i && (i.observer.unobserve(e), delete e._observe[s.instance.$.uid]);
|
|
26
|
-
}
|
|
27
|
-
const ve = {
|
|
28
|
-
mounted: ce,
|
|
29
|
-
unmounted: M
|
|
30
|
-
};
|
|
31
|
-
function de(e) {
|
|
32
|
-
return {
|
|
33
|
-
aspectStyles: h(() => {
|
|
34
|
-
const s = Number(e.aspectRatio);
|
|
35
|
-
return s ? {
|
|
36
|
-
paddingBottom: String(1 / s * 100) + "%"
|
|
37
|
-
} : void 0;
|
|
38
|
-
})
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
const q = W({
|
|
42
|
-
aspectRatio: [String, Number],
|
|
43
|
-
contentClass: null,
|
|
44
|
-
inline: Boolean,
|
|
45
|
-
...D(),
|
|
46
|
-
...G()
|
|
47
|
-
}, "VResponsive"), F = $()({
|
|
48
|
-
name: "VResponsive",
|
|
49
|
-
props: q(),
|
|
50
|
-
setup(e, s) {
|
|
51
|
-
let {
|
|
52
|
-
slots: i
|
|
53
|
-
} = s;
|
|
54
|
-
const {
|
|
55
|
-
aspectStyles: l
|
|
56
|
-
} = de(e), {
|
|
57
|
-
dimensionStyles: d
|
|
58
|
-
} = J(e);
|
|
59
|
-
return E(() => n("div", {
|
|
60
|
-
class: ["v-responsive", {
|
|
61
|
-
"v-responsive--inline": e.inline
|
|
62
|
-
}, e.class],
|
|
63
|
-
style: [d.value, e.style]
|
|
64
|
-
}, [n("div", {
|
|
65
|
-
class: "v-responsive__sizer",
|
|
66
|
-
style: l.value
|
|
67
|
-
}, null), i.additional?.(), i.default && n("div", {
|
|
68
|
-
class: ["v-responsive__content", e.contentClass]
|
|
69
|
-
}, [i.default()])])), {};
|
|
70
|
-
}
|
|
71
|
-
}), ge = W({
|
|
72
|
-
absolute: Boolean,
|
|
73
|
-
alt: String,
|
|
74
|
-
cover: Boolean,
|
|
75
|
-
color: String,
|
|
76
|
-
draggable: {
|
|
77
|
-
type: [Boolean, String],
|
|
78
|
-
default: void 0
|
|
79
|
-
},
|
|
80
|
-
eager: Boolean,
|
|
81
|
-
gradient: String,
|
|
82
|
-
lazySrc: String,
|
|
83
|
-
options: {
|
|
84
|
-
type: Object,
|
|
85
|
-
// For more information on types, navigate to:
|
|
86
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
|
|
87
|
-
default: () => ({
|
|
88
|
-
root: void 0,
|
|
89
|
-
rootMargin: void 0,
|
|
90
|
-
threshold: void 0
|
|
91
|
-
})
|
|
92
|
-
},
|
|
93
|
-
sizes: String,
|
|
94
|
-
src: {
|
|
95
|
-
type: [String, Object],
|
|
96
|
-
default: ""
|
|
97
|
-
},
|
|
98
|
-
crossorigin: String,
|
|
99
|
-
referrerpolicy: String,
|
|
100
|
-
srcset: String,
|
|
101
|
-
position: String,
|
|
102
|
-
...q(),
|
|
103
|
-
...D(),
|
|
104
|
-
...K(),
|
|
105
|
-
...ue()
|
|
106
|
-
}, "VImg"), Se = $()({
|
|
107
|
-
name: "VImg",
|
|
108
|
-
directives: {
|
|
109
|
-
intersect: ve
|
|
110
|
-
},
|
|
111
|
-
props: ge(),
|
|
112
|
-
emits: {
|
|
113
|
-
loadstart: (e) => !0,
|
|
114
|
-
load: (e) => !0,
|
|
115
|
-
error: (e) => !0
|
|
116
|
-
},
|
|
117
|
-
setup(e, s) {
|
|
118
|
-
let {
|
|
119
|
-
emit: i,
|
|
120
|
-
slots: l
|
|
121
|
-
} = s;
|
|
122
|
-
const {
|
|
123
|
-
backgroundColorClasses: d,
|
|
124
|
-
backgroundColorStyles: R
|
|
125
|
-
} = X(Y(e, "color")), {
|
|
126
|
-
roundedClasses: S
|
|
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" ? {
|
|
128
|
-
src: e.src.src,
|
|
129
|
-
srcset: e.srcset || e.src.srcset,
|
|
130
|
-
lazySrc: e.lazySrc || e.src.lazySrc,
|
|
131
|
-
aspect: Number(e.aspectRatio || e.src.aspect || 0)
|
|
132
|
-
} : {
|
|
133
|
-
src: e.src,
|
|
134
|
-
srcset: e.srcset,
|
|
135
|
-
lazySrc: e.lazySrc,
|
|
136
|
-
aspect: Number(e.aspectRatio || 0)
|
|
137
|
-
}), g = h(() => o.value.aspect || v.value / b.value || 0);
|
|
138
|
-
C(() => e.src, () => {
|
|
139
|
-
z(a.value !== "idle");
|
|
140
|
-
}), C(g, (t, u) => {
|
|
141
|
-
!t && u && r.value && m(r.value);
|
|
142
|
-
}), te(() => z());
|
|
143
|
-
function z(t) {
|
|
144
|
-
if (!(e.eager && t) && !(O && !t && !e.eager)) {
|
|
145
|
-
if (a.value = "loading", o.value.lazySrc) {
|
|
146
|
-
const u = new Image();
|
|
147
|
-
u.src = o.value.lazySrc, m(u, null);
|
|
148
|
-
}
|
|
149
|
-
o.value.src && ne(() => {
|
|
150
|
-
i("loadstart", r.value?.currentSrc || o.value.src), setTimeout(() => {
|
|
151
|
-
if (!c.isUnmounted)
|
|
152
|
-
if (r.value?.complete) {
|
|
153
|
-
if (r.value.naturalWidth || w(), a.value === "error") return;
|
|
154
|
-
g.value || m(r.value, null), a.value === "loading" && P();
|
|
155
|
-
} else
|
|
156
|
-
g.value || m(r.value), k();
|
|
157
|
-
});
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
function P() {
|
|
162
|
-
c.isUnmounted || (k(), m(r.value), a.value = "loaded", i("load", r.value?.currentSrc || o.value.src));
|
|
163
|
-
}
|
|
164
|
-
function w() {
|
|
165
|
-
c.isUnmounted || (a.value = "error", i("error", r.value?.currentSrc || o.value.src));
|
|
166
|
-
}
|
|
167
|
-
function k() {
|
|
168
|
-
const t = r.value;
|
|
169
|
-
t && (_.value = t.currentSrc || t.src);
|
|
170
|
-
}
|
|
171
|
-
let I = -1;
|
|
172
|
-
re(() => {
|
|
173
|
-
clearTimeout(I);
|
|
174
|
-
});
|
|
175
|
-
function m(t) {
|
|
176
|
-
let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100;
|
|
177
|
-
const V = () => {
|
|
178
|
-
if (clearTimeout(I), c.isUnmounted) return;
|
|
179
|
-
const {
|
|
180
|
-
naturalHeight: j,
|
|
181
|
-
naturalWidth: N
|
|
182
|
-
} = t;
|
|
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);
|
|
184
|
-
};
|
|
185
|
-
V();
|
|
186
|
-
}
|
|
187
|
-
const B = h(() => ({
|
|
188
|
-
"v-img__img--cover": e.cover,
|
|
189
|
-
"v-img__img--contain": !e.cover
|
|
190
|
-
})), x = () => {
|
|
191
|
-
if (!o.value.src || a.value === "idle") return null;
|
|
192
|
-
const t = n("img", {
|
|
193
|
-
class: ["v-img__img", B.value],
|
|
194
|
-
style: {
|
|
195
|
-
objectPosition: e.position
|
|
196
|
-
},
|
|
197
|
-
src: o.value.src,
|
|
198
|
-
srcset: o.value.srcset,
|
|
199
|
-
alt: e.alt,
|
|
200
|
-
crossorigin: e.crossorigin,
|
|
201
|
-
referrerpolicy: e.referrerpolicy,
|
|
202
|
-
draggable: e.draggable,
|
|
203
|
-
sizes: e.sizes,
|
|
204
|
-
ref: r,
|
|
205
|
-
onLoad: P,
|
|
206
|
-
onError: w
|
|
207
|
-
}, null), u = l.sources?.();
|
|
208
|
-
return n(y, {
|
|
209
|
-
transition: e.transition,
|
|
210
|
-
appear: !0
|
|
211
|
-
}, {
|
|
212
|
-
default: () => [U(u ? n("picture", {
|
|
213
|
-
class: "v-img__picture"
|
|
214
|
-
}, [u, t]) : t, [[oe, a.value === "loaded"]])]
|
|
215
|
-
});
|
|
216
|
-
}, A = () => n(y, {
|
|
217
|
-
transition: e.transition
|
|
218
|
-
}, {
|
|
219
|
-
default: () => [o.value.lazySrc && a.value !== "loaded" && n("img", {
|
|
220
|
-
class: ["v-img__img", "v-img__img--preload", B.value],
|
|
221
|
-
style: {
|
|
222
|
-
objectPosition: e.position
|
|
223
|
-
},
|
|
224
|
-
src: o.value.lazySrc,
|
|
225
|
-
alt: e.alt,
|
|
226
|
-
crossorigin: e.crossorigin,
|
|
227
|
-
referrerpolicy: e.referrerpolicy,
|
|
228
|
-
draggable: e.draggable
|
|
229
|
-
}, null)]
|
|
230
|
-
}), H = () => l.placeholder ? n(y, {
|
|
231
|
-
transition: e.transition,
|
|
232
|
-
appear: !0
|
|
233
|
-
}, {
|
|
234
|
-
default: () => [(a.value === "loading" || a.value === "error" && !l.error) && n("div", {
|
|
235
|
-
class: "v-img__placeholder"
|
|
236
|
-
}, [l.placeholder()])]
|
|
237
|
-
}) : null, L = () => l.error ? n(y, {
|
|
238
|
-
transition: e.transition,
|
|
239
|
-
appear: !0
|
|
240
|
-
}, {
|
|
241
|
-
default: () => [a.value === "error" && n("div", {
|
|
242
|
-
class: "v-img__error"
|
|
243
|
-
}, [l.error()])]
|
|
244
|
-
}) : null, Q = () => e.gradient ? n("div", {
|
|
245
|
-
class: "v-img__gradient",
|
|
246
|
-
style: {
|
|
247
|
-
backgroundImage: `linear-gradient(${e.gradient})`
|
|
248
|
-
}
|
|
249
|
-
}, null) : null, T = f(!1);
|
|
250
|
-
{
|
|
251
|
-
const t = C(g, (u) => {
|
|
252
|
-
u && (requestAnimationFrame(() => {
|
|
253
|
-
requestAnimationFrame(() => {
|
|
254
|
-
T.value = !0;
|
|
255
|
-
});
|
|
256
|
-
}), t());
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
return E(() => {
|
|
260
|
-
const t = F.filterProps(e);
|
|
261
|
-
return U(n(F, ie({
|
|
262
|
-
class: ["v-img", {
|
|
263
|
-
"v-img--absolute": e.absolute,
|
|
264
|
-
"v-img--booting": !T.value
|
|
265
|
-
}, d.value, S.value, e.class],
|
|
266
|
-
style: [{
|
|
267
|
-
width: le(e.width === "auto" ? v.value : e.width)
|
|
268
|
-
}, R.value, e.style]
|
|
269
|
-
}, t, {
|
|
270
|
-
aspectRatio: g.value,
|
|
271
|
-
"aria-label": e.alt,
|
|
272
|
-
role: e.alt ? "img" : void 0
|
|
273
|
-
}), {
|
|
274
|
-
additional: () => n(se, null, [n(x, null, null), n(A, null, null), n(Q, null, null), n(H, null, null), n(L, null, null)]),
|
|
275
|
-
default: l.default
|
|
276
|
-
}), [[ae("intersect"), {
|
|
277
|
-
handler: z,
|
|
278
|
-
options: e.options
|
|
279
|
-
}, null, {
|
|
280
|
-
once: !0
|
|
281
|
-
}]]);
|
|
282
|
-
}), {
|
|
283
|
-
currentSrc: _,
|
|
284
|
-
image: r,
|
|
285
|
-
state: a,
|
|
286
|
-
naturalWidth: v,
|
|
287
|
-
naturalHeight: b
|
|
288
|
-
};
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
export {
|
|
292
|
-
Se as V
|
|
293
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
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-CHqY8A1z.js";
|
|
2
|
-
import { u as f } from "./ssrBoot-DU2S_nLc.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
|
-
};
|