@eodash/eodash 5.0.0-alpha.2.19 → 5.0.0-alpha.2.20
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/views/Dashboard.vue +17 -46
- package/dist/client/DashboardLayout-CPIA_V5h.js +86 -0
- package/dist/client/DynamicWebComponent-Bm2S0izi.js +88 -0
- package/dist/client/EodashDatePicker-Tdk5Xx9F.js +393 -0
- package/dist/client/EodashItemFilter-BUyqlf5G.js +194 -0
- package/dist/client/EodashLayerControl-DRYy-Air.js +111 -0
- package/dist/client/EodashMap-B_F51bLD.js +472 -0
- package/dist/client/EodashMapBtns-COBF3RhH.js +66 -0
- package/dist/client/ExportState-DkDHsbWL.js +644 -0
- package/dist/client/Footer-D8rQVlJH.js +141 -0
- package/dist/client/Header-CasZzQOl.js +437 -0
- package/dist/client/IframeWrapper-BgM9aU8f.js +28 -0
- package/dist/client/MobileLayout-CukFMuL9.js +1210 -0
- package/dist/client/PopUp-BXrxWSQ4.js +382 -0
- package/dist/client/VImg-DB_1xaqP.js +384 -0
- package/dist/client/VMain-nLmJhfgS.js +43 -0
- package/dist/client/VOverlay-naLhQSyZ.js +1453 -0
- package/dist/client/WidgetsContainer-CQY2xBg1.js +83 -0
- package/dist/client/asWebComponent-CIm1IGNl.js +11556 -0
- package/dist/client/eo-dash.js +2 -6
- package/dist/client/forwardRefs-q4ZkKtOv.js +245 -0
- package/dist/client/index-D-kMSCQA.js +199 -0
- package/dist/client/ssrBoot-BP7SYRyC.js +22 -0
- package/dist/client/style.css +2 -2
- package/dist/client/transition-DKGepKqs.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,276 +0,0 @@
|
|
|
1
|
-
import { p as O, o as R, g as _, y as $, aw as F, c as f, r as I, d as x, a as j, b as p, ax as H, ay as B, T as Y, az as L, aA as U, aB as z, aC as G, w as N, a6 as J, aD as K, a1 as m, a3 as b, aE as W, F as q, aF as Q, $ as k, a9 as y, aG as X, aH as Z, t as V, a0 as T, M as P, aI as tt, V as A, aJ as et, aK as C, aL as S, aM as h } from "./asWebComponent-CHqY8A1z.js";
|
|
2
|
-
import { m as at, V as E } from "./VOverlay-BCOn3hd6.js";
|
|
3
|
-
import { b as nt, f as ot } from "./forwardRefs-dcYA2XVU.js";
|
|
4
|
-
const st = O({
|
|
5
|
-
id: String,
|
|
6
|
-
text: String,
|
|
7
|
-
...R(at({
|
|
8
|
-
closeOnBack: !1,
|
|
9
|
-
location: "end",
|
|
10
|
-
locationStrategy: "connected",
|
|
11
|
-
eager: !0,
|
|
12
|
-
minWidth: 0,
|
|
13
|
-
offset: 10,
|
|
14
|
-
openOnClick: !1,
|
|
15
|
-
openOnHover: !0,
|
|
16
|
-
origin: "auto",
|
|
17
|
-
scrim: !1,
|
|
18
|
-
scrollStrategy: "reposition",
|
|
19
|
-
transition: !1
|
|
20
|
-
}), ["absolute", "persistent"])
|
|
21
|
-
}, "VTooltip"), rt = _()({
|
|
22
|
-
name: "VTooltip",
|
|
23
|
-
props: st(),
|
|
24
|
-
emits: {
|
|
25
|
-
"update:modelValue": (t) => !0
|
|
26
|
-
},
|
|
27
|
-
setup(t, r) {
|
|
28
|
-
let {
|
|
29
|
-
slots: i
|
|
30
|
-
} = r;
|
|
31
|
-
const e = $(t, "modelValue"), {
|
|
32
|
-
scopeId: c
|
|
33
|
-
} = nt(), l = F(), n = f(() => t.id || `v-tooltip-${l}`), a = I(), o = f(() => t.location.split(" ").length > 1 ? t.location : t.location + " center"), s = f(() => t.origin === "auto" || t.origin === "overlap" || t.origin.split(" ").length > 1 || t.location.split(" ").length > 1 ? t.origin : t.origin + " center"), u = f(() => t.transition ? t.transition : e.value ? "scale-transition" : "fade-transition"), g = f(() => x({
|
|
34
|
-
"aria-describedby": n.value
|
|
35
|
-
}, t.activatorProps));
|
|
36
|
-
return j(() => {
|
|
37
|
-
const w = E.filterProps(t);
|
|
38
|
-
return p(E, x({
|
|
39
|
-
ref: a,
|
|
40
|
-
class: ["v-tooltip", t.class],
|
|
41
|
-
style: t.style,
|
|
42
|
-
id: n.value
|
|
43
|
-
}, w, {
|
|
44
|
-
modelValue: e.value,
|
|
45
|
-
"onUpdate:modelValue": (d) => e.value = d,
|
|
46
|
-
transition: u.value,
|
|
47
|
-
absolute: !0,
|
|
48
|
-
location: o.value,
|
|
49
|
-
origin: s.value,
|
|
50
|
-
persistent: !0,
|
|
51
|
-
role: "tooltip",
|
|
52
|
-
activatorProps: g.value,
|
|
53
|
-
_disableGlobalStack: !0
|
|
54
|
-
}, c), {
|
|
55
|
-
activator: i.activator,
|
|
56
|
-
default: function() {
|
|
57
|
-
for (var d = arguments.length, D = new Array(d), v = 0; v < d; v++)
|
|
58
|
-
D[v] = arguments[v];
|
|
59
|
-
return i.default?.(...D) ?? t.text;
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}), ot({}, a);
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
function it(t, r) {
|
|
66
|
-
const i = typeof t == "string" ? H(t) : t, e = lt(i, r);
|
|
67
|
-
return {
|
|
68
|
-
mounted: e,
|
|
69
|
-
updated: e,
|
|
70
|
-
unmounted(c) {
|
|
71
|
-
B(null, c);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
function lt(t, r) {
|
|
76
|
-
return function(i, e, c) {
|
|
77
|
-
const l = typeof r == "function" ? r(e) : r, n = e.value?.text ?? e.value ?? l?.text, a = Y(e.value) ? e.value : {}, o = () => n ?? i.textContent, s = (c.ctx === e.instance.$ ? ct(c, e.instance.$)?.provides : c.ctx?.provides) ?? e.instance.$.provides, u = L(t, x(l, a), o);
|
|
78
|
-
u.appContext = Object.assign(/* @__PURE__ */ Object.create(null), e.instance.$.appContext, {
|
|
79
|
-
provides: s
|
|
80
|
-
}), B(u, i);
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
function ct(t, r) {
|
|
84
|
-
const i = /* @__PURE__ */ new Set(), e = (l) => {
|
|
85
|
-
for (const n of l) {
|
|
86
|
-
if (!n) continue;
|
|
87
|
-
if (n === t)
|
|
88
|
-
return !0;
|
|
89
|
-
i.add(n);
|
|
90
|
-
let a;
|
|
91
|
-
if (n.suspense ? a = e([n.ssContent]) : Array.isArray(n.children) ? a = e(n.children) : n.component?.vnode && (a = e([n.component?.subTree])), a)
|
|
92
|
-
return a;
|
|
93
|
-
i.delete(n);
|
|
94
|
-
}
|
|
95
|
-
return !1;
|
|
96
|
-
};
|
|
97
|
-
if (!e([r.subTree]))
|
|
98
|
-
throw new Error("Could not find original vnode");
|
|
99
|
-
const c = Array.from(i).reverse();
|
|
100
|
-
for (const l of c)
|
|
101
|
-
if (l.component)
|
|
102
|
-
return l.component;
|
|
103
|
-
return r;
|
|
104
|
-
}
|
|
105
|
-
const M = it(rt, (t) => ({
|
|
106
|
-
activator: "parent",
|
|
107
|
-
location: t.arg?.replace("-", " "),
|
|
108
|
-
text: typeof t.value == "boolean" ? void 0 : t.value
|
|
109
|
-
})), ut = {
|
|
110
|
-
class: "flex rounded-lg border border-gray-300 dark:border-gray-600",
|
|
111
|
-
style: { margin: "2px" }
|
|
112
|
-
}, dt = ["value"], ft = {
|
|
113
|
-
class: "w-full px-4 pb-3",
|
|
114
|
-
style: { "font-size": "12px" }
|
|
115
|
-
}, mt = ["innerHTML"], yt = {
|
|
116
|
-
__name: "EodashDatePicker",
|
|
117
|
-
props: {
|
|
118
|
-
hintText: {
|
|
119
|
-
type: String,
|
|
120
|
-
default: null
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
setup(t) {
|
|
124
|
-
const r = Q((n, a) => ({
|
|
125
|
-
get() {
|
|
126
|
-
return n(), new Date(C.value).getTime();
|
|
127
|
-
},
|
|
128
|
-
/** @param {number} num */
|
|
129
|
-
set(o) {
|
|
130
|
-
a(), S.debug("Datepicker setting currentDate", C.value), C.value = new Date(o).toISOString();
|
|
131
|
-
}
|
|
132
|
-
})), i = I({
|
|
133
|
-
input: "YYYY-MM-DD"
|
|
134
|
-
}), e = U([]), { selectedStac: c } = z(G());
|
|
135
|
-
N(
|
|
136
|
-
c,
|
|
137
|
-
async (n, a) => {
|
|
138
|
-
if (n && a?.id !== n.id) {
|
|
139
|
-
S.debug("Datepicker selected STAC change triggered");
|
|
140
|
-
const o = [
|
|
141
|
-
"#009E73",
|
|
142
|
-
"#0072B2",
|
|
143
|
-
"#E69F00",
|
|
144
|
-
"#CC79A7",
|
|
145
|
-
"#56B4E9",
|
|
146
|
-
"#D55E00"
|
|
147
|
-
];
|
|
148
|
-
e.splice(0, e.length);
|
|
149
|
-
for (let s = 0; s < h.length; s++) {
|
|
150
|
-
S.debug("Retrieving dates", h[s]), await h[s].fetchCollection();
|
|
151
|
-
const u = [
|
|
152
|
-
...new Set(
|
|
153
|
-
h[s].getItems()?.reduce(
|
|
154
|
-
(g, w) => {
|
|
155
|
-
const d = Date.parse(
|
|
156
|
-
/** @type {string} */
|
|
157
|
-
w.datetime
|
|
158
|
-
);
|
|
159
|
-
return d && g.push(new Date(d)), g;
|
|
160
|
-
},
|
|
161
|
-
/** @type {Date[]} */
|
|
162
|
-
[]
|
|
163
|
-
)
|
|
164
|
-
)
|
|
165
|
-
];
|
|
166
|
-
e.push({
|
|
167
|
-
key: "id-" + s.toString() + Math.random().toString(16).slice(2),
|
|
168
|
-
bar: {
|
|
169
|
-
style: {
|
|
170
|
-
backgroundColor: o[s % o.length]
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
dates: u,
|
|
174
|
-
content: {
|
|
175
|
-
style: {
|
|
176
|
-
color: "#000000",
|
|
177
|
-
"font-weight": "bold"
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
{ immediate: !0 }
|
|
185
|
-
);
|
|
186
|
-
function l(n) {
|
|
187
|
-
if (e.length) {
|
|
188
|
-
let a = n ? 1 / 0 : -1 / 0;
|
|
189
|
-
e.forEach((o) => {
|
|
190
|
-
o?.dates && o.dates.forEach((s) => {
|
|
191
|
-
s instanceof Date && (a = Math[n ? "min" : "max"](a, s.getTime()));
|
|
192
|
-
});
|
|
193
|
-
}), r.value = a === -1 / 0 ? Date.now() : a === 1 / 0 ? 0 : a;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
return (n, a) => (k(), J(
|
|
197
|
-
q,
|
|
198
|
-
null,
|
|
199
|
-
[
|
|
200
|
-
p(b(Z), {
|
|
201
|
-
modelValue: r.value,
|
|
202
|
-
"onUpdate:modelValue": a[0] || (a[0] = (o) => r.value = o),
|
|
203
|
-
modelModifiers: { number: !0 },
|
|
204
|
-
masks: i.value,
|
|
205
|
-
attributes: e
|
|
206
|
-
}, K({
|
|
207
|
-
default: m(({ inputValue: o, inputEvents: s }) => [
|
|
208
|
-
y("div", ut, [
|
|
209
|
-
y("input", x({ value: o }, X(s, !0), {
|
|
210
|
-
style: { margin: "1px" },
|
|
211
|
-
class: "flex-grow px-1 py-1 bg-white dark:bg-gray-700"
|
|
212
|
-
}), null, 16, dt)
|
|
213
|
-
])
|
|
214
|
-
]),
|
|
215
|
-
_: 2
|
|
216
|
-
/* DYNAMIC */
|
|
217
|
-
}, [
|
|
218
|
-
t.hintText ? {
|
|
219
|
-
name: "footer",
|
|
220
|
-
fn: m(() => [
|
|
221
|
-
y("div", ft, [
|
|
222
|
-
y("span", { innerHTML: t.hintText }, null, 8, mt)
|
|
223
|
-
])
|
|
224
|
-
]),
|
|
225
|
-
key: "0"
|
|
226
|
-
} : void 0
|
|
227
|
-
]), 1032, ["modelValue", "masks", "attributes"]),
|
|
228
|
-
p(W, {
|
|
229
|
-
align: "center",
|
|
230
|
-
justify: "center",
|
|
231
|
-
style: { "margin-top": "6px" }
|
|
232
|
-
}, {
|
|
233
|
-
default: m(() => [
|
|
234
|
-
V((k(), T(A, {
|
|
235
|
-
style: { padding: "0px", "margin-right": "4px" },
|
|
236
|
-
density: "compact",
|
|
237
|
-
onClick: a[1] || (a[1] = (o) => l(!0))
|
|
238
|
-
}, {
|
|
239
|
-
default: m(() => [
|
|
240
|
-
p(P, {
|
|
241
|
-
icon: [b(tt)]
|
|
242
|
-
}, null, 8, ["icon"])
|
|
243
|
-
]),
|
|
244
|
-
_: 1
|
|
245
|
-
/* STABLE */
|
|
246
|
-
})), [
|
|
247
|
-
[M, "Set date to oldest available dataset", "bottom"]
|
|
248
|
-
]),
|
|
249
|
-
V((k(), T(A, {
|
|
250
|
-
style: { padding: "0px", "margin-left": "4px" },
|
|
251
|
-
density: "compact",
|
|
252
|
-
onClick: a[2] || (a[2] = (o) => l(!1))
|
|
253
|
-
}, {
|
|
254
|
-
default: m(() => [
|
|
255
|
-
p(P, {
|
|
256
|
-
icon: [b(et)]
|
|
257
|
-
}, null, 8, ["icon"])
|
|
258
|
-
]),
|
|
259
|
-
_: 1
|
|
260
|
-
/* STABLE */
|
|
261
|
-
})), [
|
|
262
|
-
[M, "Set date to latest available dataset", "bottom"]
|
|
263
|
-
])
|
|
264
|
-
]),
|
|
265
|
-
_: 1
|
|
266
|
-
/* STABLE */
|
|
267
|
-
})
|
|
268
|
-
],
|
|
269
|
-
64
|
|
270
|
-
/* STABLE_FRAGMENT */
|
|
271
|
-
));
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
export {
|
|
275
|
-
yt as default
|
|
276
|
-
};
|