@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eodash/eodash",
3
- "version": "5.0.0-alpha.2.1",
3
+ "version": "5.0.0-alpha.2.3",
4
4
  "type": "module",
5
5
  "types": "./core/types.d.ts",
6
6
  "files": [
@@ -49,7 +49,7 @@
49
49
  "@eox/layout": "^0.1.0",
50
50
  "@eox/map": "^1.4.0",
51
51
  "@eox/stacinfo": "^0.3.0",
52
- "@mdi/font": "7.0.96",
52
+ "@mdi/js": "^7.4.47",
53
53
  "@vitejs/plugin-vue": "^5.0.0",
54
54
  "animated-details": "gist:2912bb049fa906671807415eb0e87188",
55
55
  "axios": "^1.6.2",
@@ -62,7 +62,7 @@
62
62
  "vite": "^5.1.5",
63
63
  "vite-plugin-vuetify": "^2.0.0",
64
64
  "vue": "^3.2.0",
65
- "vuetify": "^3.5.1",
65
+ "vuetify": "^3.6.5",
66
66
  "webfontloader": "^1.6.28"
67
67
  },
68
68
  "devDependencies": {
@@ -6,6 +6,7 @@
6
6
  type="date" bg-color="surface" color="primary" density="comfortable" label="Select Date" v-model="currentDate"
7
7
  variant="plain" hide-details />
8
8
  </div>
9
+
9
10
  <v-date-picker v-else ref="datePicker" :width="width" :height="height" hide-header v-model="currentDate"
10
11
  color="primary" bg-color="surface" location="center" class="overflow-auto fill-height fill-width"
11
12
  position="relative" show-adjacent-months></v-date-picker>
@@ -9,7 +9,7 @@
9
9
  </template>
10
10
  <script setup>
11
11
  import { useDefineWidgets } from '@/composables/DefineWidgets';
12
- import { onMounted } from 'vue';
12
+ import { nextTick, onMounted } from 'vue';
13
13
  import { ref } from 'vue';
14
14
  import { useLayout } from 'vuetify/lib/framework.mjs';
15
15
  import 'animated-details'
@@ -38,9 +38,11 @@ const widgetHeight = ref('')
38
38
  const summariesHeights = ref(0)
39
39
 
40
40
 
41
- onMounted(() => {
42
- summariesHeights.value = summaryEls.value.reduce((acc, el) => acc += el.clientHeight, 0)
43
- const { mainRect } = useLayout()
44
- widgetHeight.value = ((detailsEls.value[0].parentElement?.scrollHeight ?? 0) - summariesHeights.value - mainRect.value['top']) + 'px'
41
+ const { mainRect } = useLayout()
42
+ onMounted(async () => {
43
+ await nextTick(() => {
44
+ summariesHeights.value = summaryEls.value.reduce((acc, el) => acc += el.clientHeight, 0)
45
+ widgetHeight.value = ((detailsEls.value[0].parentElement?.scrollHeight ?? 0) - summariesHeights.value - mainRect.value['top']) + 'px'
46
+ })
45
47
  })
46
48
  </script>
@@ -1,141 +0,0 @@
1
- import { y as w, z as x, A as p, r as _, R as v, D as r, E as l, G as h, S as g, J as e, H as m, m as y, K as b, F as k, L as C, N as A, a as E, T as V } from "./asWebComponent-C8rb3b1D.js";
2
- import { V as L, b as $ } from "./VBtn-Bz7ruRUg.js";
3
- import { V as B } from "./VMain-BHfWJU2j.js";
4
- class z extends HTMLElement {
5
- static get observedAttributes() {
6
- return ["gap"];
7
- }
8
- constructor() {
9
- super(), this.attachShadow({ mode: "open" }), this.render();
10
- }
11
- render() {
12
- this.shadowRoot.innerHTML = `
13
- <style>
14
- :host {
15
- display: grid;
16
- padding: ${this.getAttribute("gap") || 0}px;
17
- height: 100%;
18
- box-sizing: border-box;
19
- gap: ${this.getAttribute("gap") || "0"}px;
20
- grid-template-columns: repeat(12, 1fr);
21
- grid-template-rows: repeat(12, 1fr);
22
- }
23
- </style>
24
- <slot></slot>
25
- `;
26
- }
27
- attributeChangedCallback(o, a, s) {
28
- a !== s && (this[o] = s), this.render();
29
- }
30
- }
31
- class H extends HTMLElement {
32
- static get observedAttributes() {
33
- return ["x", "y", "w", "h"];
34
- }
35
- constructor() {
36
- super(), this.attachShadow({ mode: "open" }), this.render();
37
- }
38
- render() {
39
- this.shadowRoot.innerHTML = `
40
- <style>
41
- :host {
42
- background: lightgrey;
43
- border: 1px solid darkgrey;
44
- border-radius: 4px;
45
- padding: 4px 8px;
46
- overflow: hidden;
47
-
48
-
49
- grid-column: ${parseInt(this.getAttribute("x")) + 1} / span ${this.getAttribute("w")};
50
- grid-row: ${parseInt(this.getAttribute("y")) + 1} / span ${this.getAttribute("h")};
51
- }
52
- </style>
53
- <slot></slot>
54
- `;
55
- }
56
- attributeChangedCallback(o, a, s) {
57
- a !== s && (this[o] = s), this.render();
58
- }
59
- }
60
- customElements.define("eox-layout", z);
61
- customElements.define("eox-layout-item", H);
62
- const M = ["gap"], S = {
63
- style: { "z-index": "0" },
64
- x: "0",
65
- y: "0",
66
- h: "12",
67
- w: "12"
68
- }, T = ["x", "y", "h", "w"], K = {
69
- __name: "DashboardLayout",
70
- setup(u) {
71
- const o = (
72
- /** @type {import("@/types").Eodash} */
73
- w(x)
74
- ), [a] = p([o.template?.background]), s = o.template?.widgets, d = p(s), c = _([]), { slideBtns: n, slideInOut: f } = v(c, s);
75
- return (D, I) => (r(), l(B, null, {
76
- default: h(() => [
77
- g("eox-layout", {
78
- gap: e(o).template.gap ?? 2
79
- }, [
80
- g("eox-layout-item", S, [
81
- (r(), l(
82
- m(e(a).component),
83
- y({ id: "bg-widget" }, e(a).props),
84
- null,
85
- 16
86
- /* FULL_PROPS */
87
- ))
88
- ]),
89
- (r(!0), b(
90
- k,
91
- null,
92
- C(e(s), (i, t) => (r(), b("eox-layout-item", {
93
- ref_for: !0,
94
- ref_key: "itemEls",
95
- ref: c,
96
- key: t,
97
- style: { position: "relative", overflow: "visible", "z-index": "1", "border-radius": "0px", background: "rgb(var(--v-theme-surface))" },
98
- x: i.layout.x,
99
- y: i.layout.y,
100
- h: i.layout.h,
101
- w: i.layout.w
102
- }, [
103
- e(n)[t].enabled ? (r(), l(L, {
104
- key: 0,
105
- position: "absolute",
106
- variant: "tonal",
107
- style: A(e(n)[t].style),
108
- class: "slide-btn",
109
- onClick: (N) => e(f)(t)
110
- }, {
111
- default: h(() => [
112
- E($, {
113
- icon: e(n)[t].active ? e(n)[t].icon.in : e(n)[t].icon.out
114
- }, null, 8, ["icon"])
115
- ]),
116
- _: 2
117
- /* DYNAMIC */
118
- }, 1032, ["style", "onClick"])) : V("v-if", !0),
119
- (r(), l(
120
- m(e(d)[t].value.component),
121
- y({
122
- key: e(d)[t].value.id
123
- }, e(d)[t].value.props),
124
- null,
125
- 16
126
- /* FULL_PROPS */
127
- ))
128
- ], 8, T))),
129
- 128
130
- /* KEYED_FRAGMENT */
131
- ))
132
- ], 8, M)
133
- ]),
134
- _: 1
135
- /* STABLE */
136
- }));
137
- }
138
- };
139
- export {
140
- K as default
141
- };