@eodash/eodash 5.0.0-alpha.2.1 → 5.0.0-alpha.2.3

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 (48) hide show
  1. package/README.md +11 -1
  2. package/bin/types.d.ts +1 -0
  3. package/bin/utils.js +1 -1
  4. package/core/App.vue +12 -4
  5. package/core/SuspensedDashboard.ce.vue +13 -5
  6. package/core/components/DashboardLayout.vue +14 -22
  7. package/core/components/ErrorAlert.vue +19 -0
  8. package/core/components/Loading.vue +12 -1
  9. package/core/components/MobileLayout.vue +19 -11
  10. package/core/composables/DefineWidgets.js +11 -5
  11. package/core/composables/index.js +16 -13
  12. package/core/eodash.js +0 -2
  13. package/core/plugins/vuetify.js +9 -3
  14. package/core/store/stac.js +6 -2
  15. package/core/types.d.ts +9 -23
  16. package/core/views/Dashboard.vue +13 -2
  17. package/dist/DashboardLayout-lzEvtalW.js +148 -0
  18. package/dist/{DynamicWebComponent-BrHVTesn.js → DynamicWebComponent-CgDh2csQ.js} +12 -12
  19. package/dist/EodashDatePicker-bIyNUYaG.js +1653 -0
  20. package/dist/{EodashItemFilter-BLAGx2UD.js → EodashItemFilter-CpgyrJRX.js} +2 -2
  21. package/dist/{EodashMap-Bxl_aqY2.js → EodashMap-CyR-Ldpk.js} +4 -4
  22. package/dist/Footer-C2sIHSym.js +118 -0
  23. package/dist/{Header-DC50S6GR.js → Header-DFz2BUnp.js} +222 -226
  24. package/dist/{IframeWrapper-Dd9zrX9s.js → IframeWrapper-Csep3rMg.js} +1 -1
  25. package/dist/MobileLayout-CXNJL_q6.js +984 -0
  26. package/dist/VMain-COrg6UtF.js +39 -0
  27. package/dist/{WidgetsContainer-DxfCu0I3.js → WidgetsContainer-XA6_dKOm.js} +16 -16
  28. package/dist/asWebComponent-fqvymeM-.js +13092 -0
  29. package/dist/{decoder-kAoyGIq9-BBR5CgzS.js → decoder-kAoyGIq9-DjQanfeo.js} +1 -1
  30. package/dist/eo-dash.js +2 -2
  31. package/dist/{index-DTkOfh2g.js → index-Cskxla5D.js} +75 -43
  32. package/dist/index-Zv5eTiB6.js +34 -0
  33. package/dist/{lerc-C9VL9kri-cIdbW0sg.js → lerc-C9VL9kri-O4muG-MO.js} +1 -1
  34. package/dist/{ssrBoot-D-b4-M19.js → ssrBoot-DCCAW5xY.js} +3 -3
  35. package/dist/style.css +2 -2
  36. package/package.json +3 -3
  37. package/widgets/EodashDatePicker.vue +1 -0
  38. package/widgets/WidgetsContainer.vue +7 -5
  39. package/dist/DashboardLayout-Dp8AnYD9.js +0 -141
  40. package/dist/EodashDatePicker-D_udZ26j.js +0 -1645
  41. package/dist/Footer-AohCH8U7.js +0 -118
  42. package/dist/MobileLayout-CgToA7Gp.js +0 -523
  43. package/dist/VBtn-Bz7ruRUg.js +0 -1106
  44. package/dist/VMain-BHfWJU2j.js +0 -35
  45. package/dist/asWebComponent-C8rb3b1D.js +0 -11323
  46. package/dist/color-DpYEub1f.js +0 -115
  47. package/dist/dimensions-CJaGeSrj.js +0 -53
  48. package/dist/index-Sa2Vg_gx.js +0 -65
@@ -0,0 +1,39 @@
1
+ import { p as i, e as m, ab as c, f as u, g as y, ac as d, Y as v, a as b, b as e } from "./asWebComponent-fqvymeM-.js";
2
+ import { u as f } from "./ssrBoot-DCCAW5xY.js";
3
+ const V = i({
4
+ scrollable: Boolean,
5
+ ...m(),
6
+ ...c(),
7
+ ...u({
8
+ tag: "main"
9
+ })
10
+ }, "VMain"), k = y()({
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: t,
21
+ layoutIsReady: n
22
+ } = v(), {
23
+ ssrBootStyles: r
24
+ } = f();
25
+ return b(() => e(a.tag, {
26
+ class: ["v-main", {
27
+ "v-main--scrollable": a.scrollable
28
+ }, a.class],
29
+ style: [t.value, r.value, l.value, a.style]
30
+ }, {
31
+ default: () => [a.scrollable ? e("div", {
32
+ class: "v-main__scroller"
33
+ }, [s.default?.()]) : s.default?.()]
34
+ })), n;
35
+ }
36
+ });
37
+ export {
38
+ k as V
39
+ };
@@ -1,5 +1,5 @@
1
- import { A as p, r as s, C as g, B as y, D as n, K as m, L as x, J as v, F as E, S as f, Q as H, E as k, aJ as C, aK as _, H as w, N as A } from "./asWebComponent-C8rb3b1D.js";
2
- class D extends HTMLDetailsElement {
1
+ import { X as g, r as i, Y as y, Z as x, D as v, _ as n, a5 as m, a6 as E, a2 as H, F as k, a9 as f, aa as C, $ as _, aY as w, aZ as A, a3 as D, a7 as F } from "./asWebComponent-fqvymeM-.js";
2
+ class $ extends HTMLDetailsElement {
3
3
  // this is an adaptation of // https://css-tricks.com/how-to-animate-the-details-element-using-waapi/
4
4
  // which turns the class into a custom element
5
5
  // additionally, the "exclusive" attribute has been introduced
@@ -52,7 +52,7 @@ class D extends HTMLDetailsElement {
52
52
  this.el.open = e, this.animation = null, this.isClosing = !1, this.isExpanding = !1, this.el.style.height = this.el.style.overflow = "";
53
53
  }
54
54
  }
55
- customElements.define("animated-details", D, {
55
+ customElements.define("animated-details", $, {
56
56
  extends: "details"
57
57
  });
58
58
  const B = {
@@ -65,20 +65,20 @@ const B = {
65
65
  }
66
66
  },
67
67
  setup(a) {
68
- const t = p(a.widgets), l = s([]), o = s([]), h = s(""), r = s(0);
69
- return g(() => {
70
- r.value = o.value.reduce((u, i) => u += i.clientHeight, 0);
71
- const { mainRect: c } = y();
72
- h.value = (l.value[0].parentElement?.scrollHeight ?? 0) - r.value - c.value.top + "px";
68
+ const t = g(a.widgets), l = i([]), o = i([]), h = i(""), r = i(0), { mainRect: d } = y();
69
+ return x(async () => {
70
+ await v(() => {
71
+ r.value = o.value.reduce((c, u) => c += u.clientHeight, 0), h.value = (l.value[0].parentElement?.scrollHeight ?? 0) - r.value - d.value.top + "px";
72
+ });
73
73
  }), (c, u) => (n(!0), m(
74
- E,
74
+ k,
75
75
  null,
76
- x(v(t), (i, d) => (n(), m("details", {
76
+ E(H(t), (s, p) => (n(), m("details", {
77
77
  is: "animated-details",
78
78
  ref_for: !0,
79
79
  ref_key: "detailsEls",
80
80
  ref: l,
81
- key: d,
81
+ key: p,
82
82
  class: "overflow-auto",
83
83
  exclusive: ""
84
84
  }, [
@@ -89,20 +89,20 @@ const B = {
89
89
  ref_key: "summaryEls",
90
90
  ref: o
91
91
  },
92
- H(i.value.title),
92
+ C(s.value.title),
93
93
  513
94
94
  /* TEXT, NEED_PATCH */
95
95
  ),
96
96
  f(
97
97
  "span",
98
98
  {
99
- style: A({ height: h.value }),
99
+ style: F({ height: h.value }),
100
100
  class: "d-flex flex-column"
101
101
  },
102
102
  [
103
- (n(), k(
104
- w(i.value.component),
105
- C(_(i.value.props)),
103
+ (n(), _(
104
+ D(s.value.component),
105
+ w(A(s.value.props)),
106
106
  null,
107
107
  16
108
108
  /* FULL_PROPS */