@eodash/eodash 5.0.0-alpha.2.10 → 5.0.0-alpha.2.11
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/composables/index.js +37 -18
- package/core/client/eodash.js +3 -10
- package/core/client/store/Actions.js +9 -33
- package/core/client/store/States.js +3 -0
- package/core/client/utils/createLayers.js +131 -0
- package/core/client/utils/eodashSTAC.js +149 -227
- package/core/client/utils/helpers.js +49 -69
- package/dist/client/{DashboardLayout-C_3q8Y10.js → DashboardLayout-D5c2wAGC.js} +2 -2
- package/dist/client/{DynamicWebComponent-IiTTLBt-.js → DynamicWebComponent-CBuMCUIj.js} +4 -4
- package/dist/client/{EodashDatePicker-DgC1lccp.js → EodashDatePicker-D0qdMMTE.js} +43 -43
- package/dist/client/EodashItemFilter-CTRnGRRS.js +10067 -0
- package/dist/client/EodashLayerControl-Bpm0BwcW.js +31499 -0
- package/dist/client/{EodashMap-C96D3LLv.js → EodashMap-DaMtQefq.js} +8326 -8311
- package/dist/client/{EodashMapBtns-DDtzV94u.js → EodashMapBtns-B5z8h8mr.js} +5 -5
- package/dist/client/{ExportState-CduS2mFs.js → ExportState-Bp3n6gba.js} +36 -36
- package/dist/client/{Footer-DHQcutCv.js → Footer-BROOTKhV.js} +1 -1
- package/dist/client/{Header-DC0y7rLK.js → Header-C_fKVTsg.js} +4 -4
- package/dist/client/{IframeWrapper-BK-10FbS.js → IframeWrapper-32Q3DBYr.js} +1 -1
- package/dist/client/{MobileLayout-BpLoMY4i.js → MobileLayout-TVGrYpNT.js} +6 -6
- package/dist/client/{PopUp-CNMCWL0z.js → PopUp-BJzmeeKG.js} +9 -9
- package/dist/client/{VImg-DT7eb8V-.js → VImg-BT4Vb0UT.js} +2 -2
- package/dist/client/{VMain-OenWyy46.js → VMain-BDVUXNEk.js} +2 -2
- package/dist/client/{VOverlay-x3UXpKhr.js → VOverlay-Ck_4Lxcb.js} +71 -71
- package/dist/client/{WidgetsContainer-qMUwtN0W.js → WidgetsContainer-DjjX_n1U.js} +5 -5
- package/dist/client/{asWebComponent-DQrnLsI2.js → asWebComponent-wn9bbgx9.js} +4117 -4117
- package/dist/client/{decoder-Cth6J7EK-CtUoHA6r.js → decoder-Cth6J7EK-CLlwAswr.js} +1 -1
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/{forwardRefs-CpNjL95t.js → forwardRefs--PLRH8zp.js} +1 -1
- package/dist/client/{helpers-KCSgmfim.js → helpers-CoqJPYdE.js} +206 -232
- package/dist/client/{index-DopVrUzM.js → index-Dt0NRXIq.js} +5 -5
- package/dist/client/{lerc-BgbQqdFI-D986ErVw.js → lerc-BgbQqdFI-CCpDWUne.js} +1 -1
- package/dist/client/{ssrBoot-DkjdOWvj.js → ssrBoot-DjZDIkG_.js} +1 -1
- package/dist/client/{transition-BtJHh7JK.js → transition-C8OQt_kp.js} +1 -1
- package/dist/node/cli.js +2 -2
- package/package.json +6 -3
- package/widgets/EodashDatePicker.vue +4 -3
- package/widgets/EodashItemFilter.vue +17 -12
- package/widgets/EodashLayerControl.vue +16 -0
- package/widgets/EodashMap.vue +46 -75
- package/dist/client/EodashItemFilter-DoWZGe6r.js +0 -7671
- package/dist/client/eox-jsonform-DCErgjhw.js +0 -17515
- package/dist/client/eox-layercontrol-D0Ht7Mag.js +0 -21298
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { p as B, o as $, g as
|
|
2
|
-
import { t as
|
|
3
|
-
import { m as
|
|
4
|
-
import { b as
|
|
5
|
-
const
|
|
1
|
+
import { p as B, o as $, g as _, y as j, av as I, c as v, r as V, d as h, a as M, b as p, aw as R, ax as O, T as U, ay as F, x as H, Z as N, az as Y, aA as z, w as G, $ as w, a6 as W, a1 as y, a3 as C, aB as K, F as L, W as Z, a9 as k, aC as q, aD as J, t as S, a0 as T, M as D, aE as Q, V as P, aF as X, aG as x, aH as tt } from "./asWebComponent-wn9bbgx9.js";
|
|
2
|
+
import { t as et, e as at } from "./helpers-CoqJPYdE.js";
|
|
3
|
+
import { m as ot, V as E } from "./VOverlay-Ck_4Lxcb.js";
|
|
4
|
+
import { b as nt, f as st } from "./forwardRefs--PLRH8zp.js";
|
|
5
|
+
const rt = B({
|
|
6
6
|
id: String,
|
|
7
7
|
text: String,
|
|
8
|
-
...$(
|
|
8
|
+
...$(ot({
|
|
9
9
|
closeOnBack: !1,
|
|
10
10
|
location: "end",
|
|
11
11
|
locationStrategy: "connected",
|
|
@@ -19,9 +19,9 @@ const st = B({
|
|
|
19
19
|
scrollStrategy: "reposition",
|
|
20
20
|
transition: !1
|
|
21
21
|
}), ["absolute", "persistent"])
|
|
22
|
-
}, "VTooltip"),
|
|
22
|
+
}, "VTooltip"), it = _()({
|
|
23
23
|
name: "VTooltip",
|
|
24
|
-
props:
|
|
24
|
+
props: rt(),
|
|
25
25
|
emits: {
|
|
26
26
|
"update:modelValue": (t) => !0
|
|
27
27
|
},
|
|
@@ -29,14 +29,14 @@ const st = B({
|
|
|
29
29
|
let {
|
|
30
30
|
slots: i
|
|
31
31
|
} = r;
|
|
32
|
-
const o =
|
|
32
|
+
const o = j(t, "modelValue"), {
|
|
33
33
|
scopeId: n
|
|
34
|
-
} =
|
|
34
|
+
} = nt(), l = I(), e = v(() => t.id || `v-tooltip-${l}`), a = V(), s = v(() => t.location.split(" ").length > 1 ? t.location : t.location + " center"), c = v(() => t.origin === "auto" || t.origin === "overlap" || t.origin.split(" ").length > 1 || t.location.split(" ").length > 1 ? t.origin : t.origin + " center"), d = v(() => t.transition ? t.transition : o.value ? "scale-transition" : "fade-transition"), f = v(() => h({
|
|
35
35
|
"aria-describedby": e.value
|
|
36
36
|
}, t.activatorProps));
|
|
37
37
|
return M(() => {
|
|
38
38
|
const b = E.filterProps(t);
|
|
39
|
-
return p(E,
|
|
39
|
+
return p(E, h({
|
|
40
40
|
ref: a,
|
|
41
41
|
class: ["v-tooltip", t.class],
|
|
42
42
|
style: t.style,
|
|
@@ -44,7 +44,7 @@ const st = B({
|
|
|
44
44
|
}, b, {
|
|
45
45
|
modelValue: o.value,
|
|
46
46
|
"onUpdate:modelValue": (m) => o.value = m,
|
|
47
|
-
transition:
|
|
47
|
+
transition: d.value,
|
|
48
48
|
absolute: !0,
|
|
49
49
|
location: s.value,
|
|
50
50
|
origin: c.value,
|
|
@@ -55,16 +55,16 @@ const st = B({
|
|
|
55
55
|
}, n), {
|
|
56
56
|
activator: i.activator,
|
|
57
57
|
default: function() {
|
|
58
|
-
for (var m = arguments.length,
|
|
59
|
-
|
|
60
|
-
return i.default?.(...
|
|
58
|
+
for (var m = arguments.length, u = new Array(m), g = 0; g < m; g++)
|
|
59
|
+
u[g] = arguments[g];
|
|
60
|
+
return i.default?.(...u) ?? t.text;
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
|
-
}),
|
|
63
|
+
}), st({}, a);
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
-
function
|
|
67
|
-
const i = typeof t == "string" ? R(t) : t, o =
|
|
66
|
+
function lt(t, r) {
|
|
67
|
+
const i = typeof t == "string" ? R(t) : t, o = ct(i, r);
|
|
68
68
|
return {
|
|
69
69
|
mounted: o,
|
|
70
70
|
updated: o,
|
|
@@ -73,15 +73,15 @@ function it(t, r) {
|
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function ct(t, r) {
|
|
77
77
|
return function(i, o, n) {
|
|
78
|
-
const l = typeof r == "function" ? r(o) : r, e = o.value?.text ?? o.value ?? l?.text, a = U(o.value) ? o.value : {}, s = () => e ?? i.innerHTML, c = (n.ctx === o.instance.$ ?
|
|
79
|
-
|
|
78
|
+
const l = typeof r == "function" ? r(o) : r, e = o.value?.text ?? o.value ?? l?.text, a = U(o.value) ? o.value : {}, s = () => e ?? i.innerHTML, c = (n.ctx === o.instance.$ ? ut(n, o.instance.$)?.provides : n.ctx?.provides) ?? o.instance.$.provides, d = F(t, h(l, a), s);
|
|
79
|
+
d.appContext = Object.assign(/* @__PURE__ */ Object.create(null), o.instance.$.appContext, {
|
|
80
80
|
provides: c
|
|
81
|
-
}), O(
|
|
81
|
+
}), O(d, i);
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ut(t, r) {
|
|
85
85
|
const i = /* @__PURE__ */ new Set(), o = (l) => {
|
|
86
86
|
for (const e of l) {
|
|
87
87
|
if (!e) continue;
|
|
@@ -103,14 +103,14 @@ function ct(t, r) {
|
|
|
103
103
|
return l.component;
|
|
104
104
|
return r;
|
|
105
105
|
}
|
|
106
|
-
const A = it
|
|
106
|
+
const A = lt(it, (t) => ({
|
|
107
107
|
activator: "parent",
|
|
108
108
|
location: t.arg?.replace("-", " ") ?? "top",
|
|
109
109
|
text: typeof t.value == "boolean" ? void 0 : t.value
|
|
110
|
-
})),
|
|
110
|
+
})), dt = {
|
|
111
111
|
class: "flex rounded-lg border border-gray-300 dark:border-gray-600",
|
|
112
112
|
style: { margin: "2px" }
|
|
113
|
-
},
|
|
113
|
+
}, ft = ["value"], yt = {
|
|
114
114
|
__name: "EodashDatePicker",
|
|
115
115
|
setup(t) {
|
|
116
116
|
function r(e) {
|
|
@@ -125,7 +125,7 @@ const A = it(rt, (t) => ({
|
|
|
125
125
|
}
|
|
126
126
|
const i = (
|
|
127
127
|
/** @type {import("@/types").Eodash} */
|
|
128
|
-
|
|
128
|
+
H(Z)
|
|
129
129
|
), o = V({
|
|
130
130
|
input: "YYYY-MM-DD"
|
|
131
131
|
}), n = V([]), l = v({
|
|
@@ -139,19 +139,19 @@ const A = it(rt, (t) => ({
|
|
|
139
139
|
).toISOString() : x.value = (/* @__PURE__ */ new Date()).toISOString();
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
|
-
return
|
|
143
|
-
const { selectedStac: e } =
|
|
142
|
+
return N(() => {
|
|
143
|
+
const { selectedStac: e } = Y(z());
|
|
144
144
|
G(
|
|
145
145
|
[e],
|
|
146
146
|
async ([a]) => {
|
|
147
147
|
if (a) {
|
|
148
|
-
const s =
|
|
148
|
+
const s = et(
|
|
149
149
|
`./${a.id}/collection.json`,
|
|
150
150
|
i.stacEndpoint
|
|
151
|
-
), c =
|
|
151
|
+
), c = at(
|
|
152
152
|
e.value,
|
|
153
153
|
s
|
|
154
|
-
),
|
|
154
|
+
), d = [
|
|
155
155
|
"#009E73",
|
|
156
156
|
"#0072B2",
|
|
157
157
|
"#E69F00",
|
|
@@ -160,16 +160,16 @@ const A = it(rt, (t) => ({
|
|
|
160
160
|
"#D55E00"
|
|
161
161
|
];
|
|
162
162
|
for (let f = 0; f < c.length; f++) {
|
|
163
|
-
const m = (await (
|
|
164
|
-
(
|
|
163
|
+
const m = (await tt.get(c[f]).then((u) => u.data)).links.filter(
|
|
164
|
+
(u) => u.rel === "item" && "datetime" in u
|
|
165
165
|
).map(
|
|
166
|
-
(
|
|
166
|
+
(u) => new Date(u.datetime)
|
|
167
167
|
);
|
|
168
168
|
n.value = [
|
|
169
169
|
{
|
|
170
170
|
bar: {
|
|
171
171
|
style: {
|
|
172
|
-
backgroundColor:
|
|
172
|
+
backgroundColor: d[f % d.length]
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
175
|
dates: m
|
|
@@ -180,7 +180,7 @@ const A = it(rt, (t) => ({
|
|
|
180
180
|
},
|
|
181
181
|
{ immediate: !0 }
|
|
182
182
|
);
|
|
183
|
-
}), (e, a) => (
|
|
183
|
+
}), (e, a) => (w(), W(
|
|
184
184
|
L,
|
|
185
185
|
null,
|
|
186
186
|
[
|
|
@@ -191,11 +191,11 @@ const A = it(rt, (t) => ({
|
|
|
191
191
|
attributes: n.value
|
|
192
192
|
}, {
|
|
193
193
|
default: y(({ inputValue: s, inputEvents: c }) => [
|
|
194
|
-
k("div",
|
|
195
|
-
k("input",
|
|
194
|
+
k("div", dt, [
|
|
195
|
+
k("input", h({ value: s }, q(c, !0), {
|
|
196
196
|
style: { margin: "1px" },
|
|
197
197
|
class: "flex-grow px-1 py-1 bg-white dark:bg-gray-700"
|
|
198
|
-
}), null, 16,
|
|
198
|
+
}), null, 16, ft)
|
|
199
199
|
])
|
|
200
200
|
]),
|
|
201
201
|
_: 1
|
|
@@ -207,7 +207,7 @@ const A = it(rt, (t) => ({
|
|
|
207
207
|
style: { "margin-top": "6px" }
|
|
208
208
|
}, {
|
|
209
209
|
default: y(() => [
|
|
210
|
-
S((
|
|
210
|
+
S((w(), T(P, {
|
|
211
211
|
style: { padding: "0px", "margin-right": "4px" },
|
|
212
212
|
density: "compact",
|
|
213
213
|
onClick: a[1] || (a[1] = (s) => r(!0))
|
|
@@ -222,7 +222,7 @@ const A = it(rt, (t) => ({
|
|
|
222
222
|
})), [
|
|
223
223
|
[A, "Set date to oldest available dataset", "bottom"]
|
|
224
224
|
]),
|
|
225
|
-
S((
|
|
225
|
+
S((w(), T(P, {
|
|
226
226
|
style: { padding: "0px", "margin-left": "4px" },
|
|
227
227
|
density: "compact",
|
|
228
228
|
onClick: a[2] || (a[2] = (s) => r(!1))
|
|
@@ -248,5 +248,5 @@ const A = it(rt, (t) => ({
|
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
250
|
export {
|
|
251
|
-
|
|
251
|
+
yt as default
|
|
252
252
|
};
|