@eodash/eodash 5.0.0-alpha.2.10 → 5.0.0-alpha.2.12

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.
Files changed (44) hide show
  1. package/core/client/composables/index.js +37 -18
  2. package/core/client/eodash.js +3 -10
  3. package/core/client/store/Actions.js +9 -33
  4. package/core/client/store/States.js +3 -0
  5. package/core/client/utils/createLayers.js +131 -0
  6. package/core/client/utils/eodashSTAC.js +149 -227
  7. package/core/client/utils/helpers.js +49 -69
  8. package/dist/client/{DashboardLayout-C_3q8Y10.js → DashboardLayout-g4rqjeWc.js} +2 -2
  9. package/dist/client/{DynamicWebComponent-IiTTLBt-.js → DynamicWebComponent-BKV7nbud.js} +4 -4
  10. package/dist/client/{EodashDatePicker-DgC1lccp.js → EodashDatePicker-D4zsy9eq.js} +43 -43
  11. package/dist/client/EodashItemFilter-CRA5Ksjy.js +10067 -0
  12. package/dist/client/EodashLayerControl-CcFkORFA.js +31500 -0
  13. package/dist/client/{EodashMap-C96D3LLv.js → EodashMap-Bq6kJxfa.js} +8326 -8311
  14. package/dist/client/{EodashMapBtns-DDtzV94u.js → EodashMapBtns-Tzefzyf2.js} +5 -5
  15. package/dist/client/{ExportState-CduS2mFs.js → ExportState-CbK0FtDG.js} +37 -37
  16. package/dist/client/{Footer-DHQcutCv.js → Footer-BrNqLnRu.js} +1 -1
  17. package/dist/client/{Header-DC0y7rLK.js → Header-CbTE-BoI.js} +4 -4
  18. package/dist/client/{IframeWrapper-BK-10FbS.js → IframeWrapper-Ph5bZpJZ.js} +1 -1
  19. package/dist/client/{MobileLayout-BpLoMY4i.js → MobileLayout-kdgmpNhM.js} +6 -6
  20. package/dist/client/{PopUp-CNMCWL0z.js → PopUp-BWbFe1C1.js} +9 -9
  21. package/dist/client/{VImg-DT7eb8V-.js → VImg-CzQmrZjo.js} +2 -2
  22. package/dist/client/{VMain-OenWyy46.js → VMain-DfQqCpW9.js} +2 -2
  23. package/dist/client/{VOverlay-x3UXpKhr.js → VOverlay-sx4v7gXf.js} +71 -71
  24. package/dist/client/{WidgetsContainer-qMUwtN0W.js → WidgetsContainer-BrWo2pW8.js} +5 -5
  25. package/dist/client/{asWebComponent-DQrnLsI2.js → asWebComponent-CVFLR8Hh.js} +4117 -4117
  26. package/dist/client/{decoder-Cth6J7EK-CtUoHA6r.js → decoder-Cth6J7EK-DlG9ScOz.js} +1 -1
  27. package/dist/client/eo-dash.js +1 -1
  28. package/dist/client/{forwardRefs-CpNjL95t.js → forwardRefs-BOAfCdT0.js} +1 -1
  29. package/dist/client/{helpers-KCSgmfim.js → helpers-BjdrMtvO.js} +206 -232
  30. package/dist/client/{index-DopVrUzM.js → index-Ct9AYlRj.js} +5 -5
  31. package/dist/client/{lerc-BgbQqdFI-D986ErVw.js → lerc-BgbQqdFI-B1NkI4BO.js} +1 -1
  32. package/dist/client/{ssrBoot-DkjdOWvj.js → ssrBoot-BfIptj2L.js} +1 -1
  33. package/dist/client/style.css +1 -1
  34. package/dist/client/{transition-BtJHh7JK.js → transition-YJj28Lgx.js} +1 -1
  35. package/dist/node/cli.js +2 -2
  36. package/package.json +6 -3
  37. package/widgets/EodashDatePicker.vue +4 -3
  38. package/widgets/EodashItemFilter.vue +17 -12
  39. package/widgets/EodashLayerControl.vue +18 -0
  40. package/widgets/EodashMap.vue +46 -75
  41. package/widgets/ExportState.vue +3 -2
  42. package/dist/client/EodashItemFilter-DoWZGe6r.js +0 -7671
  43. package/dist/client/eox-jsonform-DCErgjhw.js +0 -17515
  44. package/dist/client/eox-layercontrol-D0Ht7Mag.js +0 -21298
@@ -1,11 +1,11 @@
1
- import { p as B, o as $, g as j, y as _, av as I, c as v, r as V, d as w, a as M, b as p, aw as R, ax as O, T as U, ay as F, x as N, Z as Y, az as H, aA as z, w as G, $ as h, 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 } from "./asWebComponent-DQrnLsI2.js";
2
- import { t as tt, e as et } from "./helpers-KCSgmfim.js";
3
- import { m as at, V as E } from "./VOverlay-x3UXpKhr.js";
4
- import { b as ot, f as nt } from "./forwardRefs-CpNjL95t.js";
5
- const st = B({
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-CVFLR8Hh.js";
2
+ import { t as et, e as at } from "./helpers-BjdrMtvO.js";
3
+ import { m as ot, V as E } from "./VOverlay-sx4v7gXf.js";
4
+ import { b as nt, f as st } from "./forwardRefs-BOAfCdT0.js";
5
+ const rt = B({
6
6
  id: String,
7
7
  text: String,
8
- ...$(at({
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"), rt = j()({
22
+ }, "VTooltip"), it = _()({
23
23
  name: "VTooltip",
24
- props: st(),
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 = _(t, "modelValue"), {
32
+ const o = j(t, "modelValue"), {
33
33
  scopeId: n
34
- } = ot(), 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"), u = v(() => t.transition ? t.transition : o.value ? "scale-transition" : "fade-transition"), f = v(() => w({
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, w({
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: u.value,
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, d = new Array(m), g = 0; g < m; g++)
59
- d[g] = arguments[g];
60
- return i.default?.(...d) ?? t.text;
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
- }), nt({}, a);
63
+ }), st({}, a);
64
64
  }
65
65
  });
66
- function it(t, r) {
67
- const i = typeof t == "string" ? R(t) : t, o = lt(i, r);
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 lt(t, r) {
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.$ ? ct(n, o.instance.$)?.provides : n.ctx?.provides) ?? o.instance.$.provides, u = F(t, w(l, a), s);
79
- u.appContext = Object.assign(/* @__PURE__ */ Object.create(null), o.instance.$.appContext, {
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(u, i);
81
+ }), O(d, i);
82
82
  };
83
83
  }
84
- function ct(t, r) {
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(rt, (t) => ({
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
- })), ut = {
110
+ })), dt = {
111
111
  class: "flex rounded-lg border border-gray-300 dark:border-gray-600",
112
112
  style: { margin: "2px" }
113
- }, dt = ["value"], gt = {
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
- N(Z)
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 Y(() => {
143
- const { selectedStac: e } = H(z());
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 = tt(
148
+ const s = et(
149
149
  `./${a.id}/collection.json`,
150
150
  i.stacEndpoint
151
- ), c = et(
151
+ ), c = at(
152
152
  e.value,
153
153
  s
154
- ), u = [
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 (await fetch(c[f])).json()).links.filter(
164
- (d) => d.rel === "item" && "datetime" in d
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
- (d) => new Date(d.datetime)
166
+ (u) => new Date(u.datetime)
167
167
  );
168
168
  n.value = [
169
169
  {
170
170
  bar: {
171
171
  style: {
172
- backgroundColor: u[f % u.length]
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) => (h(), W(
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", ut, [
195
- k("input", w({ value: s }, q(c, !0), {
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, dt)
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((h(), T(P, {
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((h(), T(P, {
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
- gt as default
251
+ yt as default
252
252
  };