@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,148 @@
1
+ import { x, W as w, X as h, _ as e, $ as n, a0 as u, a9 as _, a2 as t, a5 as d, a1 as c, a3 as g, d as m, a4 as y, F as b, a6 as f } from "./asWebComponent-fqvymeM-.js";
2
+ import { V as v } from "./VMain-COrg6UtF.js";
3
+ class k extends HTMLElement {
4
+ static get observedAttributes() {
5
+ return ["gap"];
6
+ }
7
+ constructor() {
8
+ super(), this.attachShadow({ mode: "open" }), this.render();
9
+ }
10
+ render() {
11
+ this.shadowRoot.innerHTML = `
12
+ <style>
13
+ :host {
14
+ display: grid;
15
+ padding: ${this.getAttribute("gap") || 0}px;
16
+ height: 100%;
17
+ box-sizing: border-box;
18
+ gap: ${this.getAttribute("gap") || "0"}px;
19
+ grid-template-columns: repeat(12, 1fr);
20
+ grid-template-rows: repeat(12, 1fr);
21
+ }
22
+ </style>
23
+ <slot></slot>
24
+ `;
25
+ }
26
+ attributeChangedCallback(a, o, s) {
27
+ o !== s && (this[a] = s), this.render();
28
+ }
29
+ }
30
+ class A extends HTMLElement {
31
+ static get observedAttributes() {
32
+ return ["x", "y", "w", "h"];
33
+ }
34
+ constructor() {
35
+ super(), this.attachShadow({ mode: "open" }), this.render();
36
+ }
37
+ render() {
38
+ this.shadowRoot.innerHTML = `
39
+ <style>
40
+ :host {
41
+ background: lightgrey;
42
+ border: 1px solid darkgrey;
43
+ border-radius: 4px;
44
+ padding: 4px 8px;
45
+ overflow: hidden;
46
+
47
+
48
+ grid-column: ${parseInt(this.getAttribute("x")) + 1} / span ${this.getAttribute("w")};
49
+ grid-row: ${parseInt(this.getAttribute("y")) + 1} / span ${this.getAttribute("h")};
50
+ }
51
+ </style>
52
+ <slot></slot>
53
+ `;
54
+ }
55
+ attributeChangedCallback(a, o, s) {
56
+ o !== s && (this[a] = s), this.render();
57
+ }
58
+ }
59
+ customElements.define("eox-layout", k);
60
+ customElements.define("eox-layout-item", A);
61
+ const C = ["gap"], $ = {
62
+ key: 0,
63
+ style: { "z-index": "0" },
64
+ x: "0",
65
+ y: "0",
66
+ h: "12",
67
+ w: "12"
68
+ }, L = ["x", "y", "h", "w"], T = {
69
+ __name: "DashboardLayout",
70
+ setup(p) {
71
+ const a = (
72
+ /** @type {import("@/types").Eodash} */
73
+ x(w)
74
+ ), [o] = h([a.template?.background]), s = a.template?.widgets, i = h(s);
75
+ return (E, M) => (e(), n(v, null, {
76
+ default: u(() => [
77
+ _("eox-layout", {
78
+ gap: t(a).template.gap ?? 2
79
+ }, [
80
+ t(o).component ? (e(), d("eox-layout-item", $, [
81
+ (e(), n(c, { suspensible: "" }, {
82
+ default: u(() => [
83
+ (e(), n(
84
+ g(t(o).component),
85
+ m({ id: "bg-widget" }, t(o).props),
86
+ null,
87
+ 16
88
+ /* FULL_PROPS */
89
+ ))
90
+ ]),
91
+ _: 1
92
+ /* STABLE */
93
+ }))
94
+ ])) : y("v-if", !0),
95
+ (e(!0), d(
96
+ b,
97
+ null,
98
+ f(t(s), (l, r) => (e(), d(
99
+ b,
100
+ { key: r },
101
+ [
102
+ t(i)[r].value.component ? (e(), d("eox-layout-item", {
103
+ key: 0,
104
+ style: { position: "relative", overflow: "visible", "z-index": "1", "border-radius": "0px", background: "rgb(var(--v-theme-surface))" },
105
+ x: l.layout.x,
106
+ y: l.layout.y,
107
+ h: l.layout.h,
108
+ w: l.layout.w
109
+ }, [
110
+ (e(), n(
111
+ c,
112
+ { suspensible: "" },
113
+ {
114
+ default: u(() => [
115
+ (e(), n(
116
+ g(t(i)[r].value.component),
117
+ m({
118
+ key: t(i)[r].value.id
119
+ }, t(i)[r].value.props),
120
+ null,
121
+ 16
122
+ /* FULL_PROPS */
123
+ ))
124
+ ]),
125
+ _: 2
126
+ /* DYNAMIC */
127
+ },
128
+ 1024
129
+ /* DYNAMIC_SLOTS */
130
+ ))
131
+ ], 8, L)) : y("v-if", !0)
132
+ ],
133
+ 64
134
+ /* STABLE_FRAGMENT */
135
+ ))),
136
+ 128
137
+ /* KEYED_FRAGMENT */
138
+ ))
139
+ ], 8, C)
140
+ ]),
141
+ _: 1
142
+ /* STABLE */
143
+ }));
144
+ }
145
+ };
146
+ export {
147
+ T as default
148
+ };
@@ -1,5 +1,5 @@
1
- import { aN as i, aO as m, r as p, C as d, aP as f, D as c, K as g, E as y, m as _, H as k } from "./asWebComponent-BKe6Spni.js";
2
- const h = { class: "d-flex flex-column fill-height overflow-auto" }, x = {
1
+ import { a_ as i, a$ as m, r as p, Z as d, b0 as f, _ as c, a5 as g, $ as _, d as y, a3 as k } from "./asWebComponent-fqvymeM-.js";
2
+ const h = { class: "d-flex flex-column fill-height overflow-auto" }, N = {
3
3
  __name: "DynamicWebComponent",
4
4
  props: {
5
5
  link: {
@@ -19,29 +19,29 @@ const h = { class: "d-flex flex-column fill-height overflow-auto" }, x = {
19
19
  onUnmounted: Function
20
20
  },
21
21
  async setup(o) {
22
- let t, s;
22
+ let t, a;
23
23
  const e = (
24
24
  /** @type {import("@/types").WebComponentProps} */
25
25
  o
26
26
  ), u = async () => typeof e.link == "string" ? await import(
27
27
  /* @vite-ignore */
28
28
  e.link
29
- ) : await e.link(), l = customElements.get(e.tagName) ? null : ([t, s] = i(() => u().catch((n) => {
29
+ ) : await e.link(), l = customElements.get(e.tagName) ? null : ([t, a] = i(() => u().catch((n) => {
30
30
  console.error(n);
31
- })), t = await t, s(), t);
31
+ })), t = await t, a(), t);
32
32
  if (!customElements.get(e.tagName) && e.constructorProp) {
33
33
  const n = l[e.constructorProp];
34
34
  customElements.define(e.tagName, n);
35
35
  }
36
- const a = m(), r = p(null);
36
+ const s = m(), r = p(null);
37
37
  return d(() => {
38
- e.onMounted?.(r.value, a);
38
+ e.onMounted?.(r.value, s);
39
39
  }), f(() => {
40
- e.onUnmounted?.(r.value, a);
41
- }), (n, N) => (c(), g("span", h, [
42
- (c(), y(
40
+ e.onUnmounted?.(r.value, s);
41
+ }), (n, x) => (c(), g("span", h, [
42
+ (c(), _(
43
43
  k(o.tagName),
44
- _(o.properties, {
44
+ y(o.properties, {
45
45
  ref_key: "elementRef",
46
46
  ref: r
47
47
  }),
@@ -53,5 +53,5 @@ const h = { class: "d-flex flex-column fill-height overflow-auto" }, x = {
53
53
  }
54
54
  };
55
55
  export {
56
- x as default
56
+ N as default
57
57
  };