@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eodash/eodash",
3
- "version": "5.0.0-alpha.2",
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,168 +0,0 @@
1
- import { y as k, z as v, A as m, r as C, R as A, S as L, D as o, E as n, G as l, T as y, J as e, U as b, a as c, H as f, m as _, K as w, F as V, L as E, N as $, V as B } from "./asWebComponent-BKe6Spni.js";
2
- import { V as S, b as z } from "./VBtn-CFPhsIX8.js";
3
- import { V as H } from "./VMain-deI9jyIf.js";
4
- class M 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(a, r, s) {
28
- r !== s && (this[a] = s), this.render();
29
- }
30
- }
31
- class T 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(a, r, s) {
57
- r !== s && (this[a] = s), this.render();
58
- }
59
- }
60
- customElements.define("eox-layout", M);
61
- customElements.define("eox-layout-item", T);
62
- const D = ["gap"], I = {
63
- style: { "z-index": "0" },
64
- x: "0",
65
- y: "0",
66
- h: "12",
67
- w: "12"
68
- }, N = ["x", "y", "h", "w"], G = {
69
- __name: "DashboardLayout",
70
- setup(p) {
71
- const a = (
72
- /** @type {import("@/types").Eodash} */
73
- k(v)
74
- ), [r] = m([a.template?.background]), s = a.template?.widgets, u = m(s), h = C([]), { slideBtns: i, slideInOut: x } = A(h, s);
75
- return (R, W) => {
76
- const g = L("Loading");
77
- return o(), n(H, null, {
78
- default: l(() => [
79
- y("eox-layout", {
80
- gap: e(a).template.gap ?? 2
81
- }, [
82
- y("eox-layout-item", I, [
83
- (o(), n(b, null, {
84
- fallback: l(() => [
85
- c(g)
86
- ]),
87
- default: l(() => [
88
- (o(), n(
89
- f(e(r).component),
90
- _({ id: "bg-widget" }, e(r).props),
91
- null,
92
- 16
93
- /* FULL_PROPS */
94
- ))
95
- ]),
96
- _: 1
97
- /* STABLE */
98
- }))
99
- ]),
100
- (o(!0), w(
101
- V,
102
- null,
103
- E(e(s), (d, t) => (o(), w("eox-layout-item", {
104
- ref_for: !0,
105
- ref_key: "itemEls",
106
- ref: h,
107
- key: t,
108
- style: { position: "relative", overflow: "visible", "z-index": "1", "border-radius": "0px", background: "rgb(var(--v-theme-surface))" },
109
- x: d.layout.x,
110
- y: d.layout.y,
111
- h: d.layout.h,
112
- w: d.layout.w
113
- }, [
114
- e(i)[t].enabled ? (o(), n(S, {
115
- key: 0,
116
- position: "absolute",
117
- variant: "tonal",
118
- style: $(e(i)[t].style),
119
- class: "slide-btn",
120
- onClick: (F) => e(x)(t)
121
- }, {
122
- default: l(() => [
123
- c(z, {
124
- icon: e(i)[t].active ? e(i)[t].icon.in : e(i)[t].icon.out
125
- }, null, 8, ["icon"])
126
- ]),
127
- _: 2
128
- /* DYNAMIC */
129
- }, 1032, ["style", "onClick"])) : B("v-if", !0),
130
- (o(), n(
131
- b,
132
- null,
133
- {
134
- fallback: l(() => [
135
- c(g)
136
- ]),
137
- default: l(() => [
138
- (o(), n(
139
- f(e(u)[t].value.component),
140
- _({
141
- key: e(u)[t].value.id
142
- }, e(u)[t].value.props),
143
- null,
144
- 16
145
- /* FULL_PROPS */
146
- ))
147
- ]),
148
- _: 2
149
- /* DYNAMIC */
150
- },
151
- 1024
152
- /* DYNAMIC_SLOTS */
153
- ))
154
- ], 8, N))),
155
- 128
156
- /* KEYED_FRAGMENT */
157
- ))
158
- ], 8, D)
159
- ]),
160
- _: 1
161
- /* STABLE */
162
- });
163
- };
164
- }
165
- };
166
- export {
167
- G as default
168
- };