@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.
- package/README.md +11 -1
- package/bin/types.d.ts +1 -0
- package/bin/utils.js +1 -1
- package/core/App.vue +12 -4
- package/core/SuspensedDashboard.ce.vue +13 -5
- package/core/components/DashboardLayout.vue +14 -22
- package/core/components/ErrorAlert.vue +19 -0
- package/core/components/Loading.vue +12 -1
- package/core/components/MobileLayout.vue +19 -11
- package/core/composables/DefineWidgets.js +11 -5
- package/core/composables/index.js +16 -13
- package/core/eodash.js +0 -2
- package/core/plugins/vuetify.js +9 -3
- package/core/store/stac.js +6 -2
- package/core/types.d.ts +9 -23
- package/core/views/Dashboard.vue +13 -2
- package/dist/DashboardLayout-lzEvtalW.js +148 -0
- package/dist/{DynamicWebComponent-BrHVTesn.js → DynamicWebComponent-CgDh2csQ.js} +12 -12
- package/dist/EodashDatePicker-bIyNUYaG.js +1653 -0
- package/dist/{EodashItemFilter-BLAGx2UD.js → EodashItemFilter-CpgyrJRX.js} +2 -2
- package/dist/{EodashMap-Bxl_aqY2.js → EodashMap-CyR-Ldpk.js} +4 -4
- package/dist/Footer-C2sIHSym.js +118 -0
- package/dist/{Header-DC50S6GR.js → Header-DFz2BUnp.js} +222 -226
- package/dist/{IframeWrapper-Dd9zrX9s.js → IframeWrapper-Csep3rMg.js} +1 -1
- package/dist/MobileLayout-CXNJL_q6.js +984 -0
- package/dist/VMain-COrg6UtF.js +39 -0
- package/dist/{WidgetsContainer-DxfCu0I3.js → WidgetsContainer-XA6_dKOm.js} +16 -16
- package/dist/asWebComponent-fqvymeM-.js +13092 -0
- package/dist/{decoder-kAoyGIq9-BBR5CgzS.js → decoder-kAoyGIq9-DjQanfeo.js} +1 -1
- package/dist/eo-dash.js +2 -2
- package/dist/{index-DTkOfh2g.js → index-Cskxla5D.js} +75 -43
- package/dist/index-Zv5eTiB6.js +34 -0
- package/dist/{lerc-C9VL9kri-cIdbW0sg.js → lerc-C9VL9kri-O4muG-MO.js} +1 -1
- package/dist/{ssrBoot-D-b4-M19.js → ssrBoot-DCCAW5xY.js} +3 -3
- package/dist/style.css +2 -2
- package/package.json +3 -3
- package/widgets/EodashDatePicker.vue +1 -0
- package/widgets/WidgetsContainer.vue +7 -5
- package/dist/DashboardLayout-Dp8AnYD9.js +0 -141
- package/dist/EodashDatePicker-D_udZ26j.js +0 -1645
- package/dist/Footer-AohCH8U7.js +0 -118
- package/dist/MobileLayout-CgToA7Gp.js +0 -523
- package/dist/VBtn-Bz7ruRUg.js +0 -1106
- package/dist/VMain-BHfWJU2j.js +0 -35
- package/dist/asWebComponent-C8rb3b1D.js +0 -11323
- package/dist/color-DpYEub1f.js +0 -115
- package/dist/dimensions-CJaGeSrj.js +0 -53
- package/dist/index-Sa2Vg_gx.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 {
|
|
2
|
-
const h = { class: "d-flex flex-column fill-height overflow-auto" },
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
|
36
|
+
const s = m(), r = p(null);
|
|
37
37
|
return d(() => {
|
|
38
|
-
e.onMounted?.(r.value,
|
|
38
|
+
e.onMounted?.(r.value, s);
|
|
39
39
|
}), f(() => {
|
|
40
|
-
e.onUnmounted?.(r.value,
|
|
41
|
-
}), (n,
|
|
42
|
-
(c(),
|
|
40
|
+
e.onUnmounted?.(r.value, s);
|
|
41
|
+
}), (n, x) => (c(), g("span", h, [
|
|
42
|
+
(c(), _(
|
|
43
43
|
k(o.tagName),
|
|
44
|
-
|
|
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
|
-
|
|
56
|
+
N as default
|
|
57
57
|
};
|