@eodash/eodash 5.0.0-alpha.2 → 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 (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -1
  3. package/bin/serverConfig.js +1 -1
  4. package/bin/types.d.ts +1 -0
  5. package/bin/utils.js +1 -1
  6. package/core/App.vue +12 -4
  7. package/core/SuspensedDashboard.ce.vue +21 -7
  8. package/core/components/DashboardLayout.vue +12 -30
  9. package/core/components/ErrorAlert.vue +19 -0
  10. package/core/components/Loading.vue +12 -1
  11. package/core/components/MobileLayout.vue +19 -11
  12. package/core/composables/DefineWidgets.js +11 -5
  13. package/core/composables/index.js +16 -13
  14. package/core/eodash.js +0 -2
  15. package/core/plugins/vuetify.js +9 -3
  16. package/core/store/stac.js +6 -2
  17. package/core/types.d.ts +11 -24
  18. package/core/views/Dashboard.vue +14 -3
  19. package/dist/DashboardLayout-lzEvtalW.js +148 -0
  20. package/dist/{DynamicWebComponent-BDOQsEcj.js → DynamicWebComponent-CgDh2csQ.js} +12 -12
  21. package/dist/EodashDatePicker-bIyNUYaG.js +1653 -0
  22. package/dist/{EodashItemFilter-TSp7XRGy.js → EodashItemFilter-CpgyrJRX.js} +2 -2
  23. package/dist/{EodashMap-DInb9cfS.js → EodashMap-CyR-Ldpk.js} +4 -4
  24. package/dist/Footer-C2sIHSym.js +118 -0
  25. package/dist/{Header-C5PSB8Uc.js → Header-DFz2BUnp.js} +224 -228
  26. package/dist/{IframeWrapper-DYHQQRUh.js → IframeWrapper-Csep3rMg.js} +1 -1
  27. package/dist/MobileLayout-CXNJL_q6.js +984 -0
  28. package/dist/VMain-COrg6UtF.js +39 -0
  29. package/dist/{WidgetsContainer-D_PLP1qf.js → WidgetsContainer-XA6_dKOm.js} +18 -18
  30. package/dist/asWebComponent-fqvymeM-.js +13092 -0
  31. package/dist/{decoder-kAoyGIq9-HAkjSTCt.js → decoder-kAoyGIq9-DjQanfeo.js} +1 -1
  32. package/dist/eo-dash.js +2 -2
  33. package/dist/{index-8ch8xKfa.js → index-Cskxla5D.js} +76 -44
  34. package/dist/index-Zv5eTiB6.js +34 -0
  35. package/dist/{lerc-C9VL9kri-DyVxBvsf.js → lerc-C9VL9kri-O4muG-MO.js} +1 -1
  36. package/dist/{ssrBoot-Cm5pWM14.js → ssrBoot-DCCAW5xY.js} +3 -3
  37. package/dist/style.css +2 -2
  38. package/package.json +3 -3
  39. package/widgets/EodashDatePicker.vue +1 -0
  40. package/widgets/WidgetsContainer.vue +7 -5
  41. package/dist/DashboardLayout-YLfAa8wH.js +0 -168
  42. package/dist/EodashDatePicker-DlehqSgz.js +0 -1645
  43. package/dist/Footer-CIzHgJbK.js +0 -118
  44. package/dist/MobileLayout-DZmqrpub.js +0 -523
  45. package/dist/VBtn-CFPhsIX8.js +0 -1106
  46. package/dist/VMain-deI9jyIf.js +0 -35
  47. package/dist/asWebComponent-BKe6Spni.js +0 -11323
  48. package/dist/color-D72nEBIR.js +0 -115
  49. package/dist/dimensions-BZkmIizV.js +0 -53
  50. package/dist/index-DIt8GjSR.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, T as f, Q as H, E as k, aL as C, aM as _, H as w, N as A } from "./asWebComponent-BKe6Spni.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,10 +52,10 @@ 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
- const L = {
58
+ const B = {
59
59
  __name: "WidgetsContainer",
60
60
  props: {
61
61
  widgets: {
@@ -65,20 +65,20 @@ const L = {
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 L = {
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 */
@@ -118,5 +118,5 @@ const L = {
118
118
  }
119
119
  };
120
120
  export {
121
- L as default
121
+ B as default
122
122
  };