@eodash/eodash 5.0.0-alpha.2.1 → 5.0.0-alpha.2.4
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 +10 -1
- package/core/client/App.vue +27 -0
- package/core/client/SuspensedDashboard.ce.vue +91 -0
- package/core/client/components/DashboardLayout.vue +36 -0
- package/core/client/components/ErrorAlert.vue +19 -0
- package/core/{components → client/components}/Loading.vue +12 -1
- package/core/{components → client/components}/MobileLayout.vue +19 -11
- package/core/{composables → client/composables}/DefineWidgets.js +11 -5
- package/core/{composables → client/composables}/index.js +16 -13
- package/core/{eodash.js → client/eodash.js} +0 -2
- package/core/{plugins → client/plugins}/vuetify.js +9 -3
- package/core/{store → client/store}/stac.js +6 -2
- package/core/{types.d.ts → client/types.d.ts} +11 -25
- package/core/{views → client/views}/Dashboard.vue +35 -6
- package/dist/client/DashboardLayout-ZaSRMD1M.js +149 -0
- package/dist/{DynamicWebComponent-BrHVTesn.js → client/DynamicWebComponent-C4Hotc4H.js} +12 -12
- package/dist/client/EodashDatePicker-C4kKjxKy.js +1653 -0
- package/dist/{EodashItemFilter-BLAGx2UD.js → client/EodashItemFilter-cBHC0YEM.js} +2 -2
- package/dist/{EodashMap-Bxl_aqY2.js → client/EodashMap-CGrQjZ1P.js} +2490 -2496
- package/dist/client/Footer-pS636dEP.js +118 -0
- package/dist/{Header-DC50S6GR.js → client/Header-DQuaLdjl.js} +225 -229
- package/dist/{IframeWrapper-Dd9zrX9s.js → client/IframeWrapper-Cg3GMmfW.js} +1 -1
- package/dist/client/MobileLayout-BLXFBWI_.js +987 -0
- package/dist/client/VMain-BHYlmRic.js +39 -0
- package/dist/{WidgetsContainer-DxfCu0I3.js → client/WidgetsContainer-dje9QSk0.js} +18 -18
- package/dist/client/asWebComponent-Bvb3xkxI.js +13311 -0
- package/dist/{decoder-kAoyGIq9-BBR5CgzS.js → client/decoder-HRvnjnEI-BQ2rajuJ.js} +1 -1
- package/dist/client/eo-dash.js +6 -0
- package/dist/{eox-map-BJ9SIixs.js → client/eox-map-C3DL31fp.js} +1882 -1809
- package/dist/client/eox-stacinfo-l7ALSV90.js +13969 -0
- package/dist/{index-DTkOfh2g.js → client/index-CaDDfJYE.js} +75 -43
- package/dist/client/index-DlNICb3T.js +34 -0
- package/dist/{lerc-C9VL9kri-cIdbW0sg.js → client/lerc-_E46UbWQ-Beu35ovS.js} +1 -1
- package/dist/{ssrBoot-D-b4-M19.js → client/ssrBoot-Dd7m-btU.js} +3 -3
- package/dist/client/style.css +5 -0
- package/dist/node/cli.js +20 -0
- package/dist/node/main.js +2 -0
- package/{bin → dist/node}/types.d.ts +3 -2
- package/package.json +22 -20
- package/widgets/EodashDatePicker.vue +1 -0
- package/widgets/EodashItemFilter.vue +1 -1
- package/widgets/WidgetsContainer.vue +7 -5
- package/bin/app.js +0 -22
- package/bin/cli.js +0 -62
- package/bin/main.js +0 -9
- package/bin/serverConfig.js +0 -165
- package/bin/utils.js +0 -103
- package/core/App.vue +0 -19
- package/core/SuspensedDashboard.ce.vue +0 -65
- package/core/components/DashboardLayout.vue +0 -44
- 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/eo-dash.js +0 -6
- package/dist/eox-stacinfo-B-YrT7Ug.js +0 -13698
- package/dist/index-Sa2Vg_gx.js +0 -65
- package/dist/style.css +0 -5
- /package/core/{asWebComponent.d.ts → client/asWebComponent.d.ts} +0 -0
- /package/core/{asWebComponent.js → client/asWebComponent.js} +0 -0
- /package/core/{components → client/components}/DynamicWebComponent.vue +0 -0
- /package/core/{components → client/components}/Footer.vue +0 -0
- /package/core/{components → client/components}/Header.vue +0 -0
- /package/core/{components → client/components}/IframeWrapper.vue +0 -0
- /package/core/{composables → client/composables}/DefineEodash.js +0 -0
- /package/core/{main.js → client/main.js} +0 -0
- /package/core/{plugins → client/plugins}/index.js +0 -0
- /package/core/{render.js → client/render.js} +0 -0
- /package/core/{store → client/store}/Actions.js +0 -0
- /package/core/{store → client/store}/States.js +0 -0
- /package/core/{store → client/store}/index.js +0 -0
- /package/core/{utils → client/utils}/eodashSTAC.js +0 -0
- /package/core/{utils → client/utils}/helpers.js +0 -0
- /package/core/{utils → client/utils}/index.js +0 -0
- /package/core/{utils → client/utils}/keys.js +0 -0
- /package/core/{vite-env.d.ts → client/vite-env.d.ts} +0 -0
- /package/dist/{.gitkeep → client/.gitkeep} +0 -0
- /package/dist/{_commonjsHelpers-DaMA6jEr.js → client/_commonjsHelpers-DaMA6jEr.js} +0 -0
- /package/dist/{basedecoder-Qm25PwVp-CHo5Pomv.js → client/basedecoder-Qm25PwVp-CHo5Pomv.js} +0 -0
- /package/dist/{deflate-Be2Arps5-hDqMz3RA.js → client/deflate-Be2Arps5-hDqMz3RA.js} +0 -0
- /package/dist/{eox-itemfilter-DcQkRD2l.js → client/eox-itemfilter-DcQkRD2l.js} +0 -0
- /package/dist/{forwardRefs-Bxeu9Obx.js → client/forwardRefs-Bxeu9Obx.js} +0 -0
- /package/dist/{jpeg-DNfUpLwy-Fjan-04T.js → client/jpeg-DNfUpLwy-Fjan-04T.js} +0 -0
- /package/dist/{lzw-BOMhmEDy-Dboc93VO.js → client/lzw-BOMhmEDy-Dboc93VO.js} +0 -0
- /package/dist/{packbits-DaUD6MLm-Bu1PoTGa.js → client/packbits-DaUD6MLm-Bu1PoTGa.js} +0 -0
- /package/dist/{pako.esm-C3kYPGGQ-BMki8cQY.js → client/pako.esm-C3kYPGGQ-BMki8cQY.js} +0 -0
- /package/dist/{raw-CcGKjn8q-DFOt-i8n.js → client/raw-CcGKjn8q-DFOt-i8n.js} +0 -0
- /package/dist/{webfontloader-CyOFAuFB.js → client/webfontloader-CyOFAuFB.js} +0 -0
- /package/dist/{webimage-D2c098k3-DLj1LQxB.js → client/webimage-D2c098k3-DLj1LQxB.js} +0 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { x, W as _, X as h, _ as e, $ as n, a0 as u, a9 as f, a2 as t, a5 as d, a1 as c, a3 as g, d as m, a4 as y, F as b, a6 as w } from "./asWebComponent-Bvb3xkxI.js";
|
|
2
|
+
import { V as v } from "./VMain-BHYlmRic.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, r, s) {
|
|
27
|
+
r !== 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, r, s) {
|
|
56
|
+
r !== 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(_)
|
|
74
|
+
), [r] = h([a.template?.background]), s = a.template?.widgets, i = h(s);
|
|
75
|
+
return (E, M) => (e(), n(v, null, {
|
|
76
|
+
default: u(() => [
|
|
77
|
+
f("eox-layout", {
|
|
78
|
+
gap: t(a).template.gap ?? 2
|
|
79
|
+
}, [
|
|
80
|
+
t(r).component ? (e(), d("eox-layout-item", $, [
|
|
81
|
+
(e(), n(c, { suspensible: "" }, {
|
|
82
|
+
default: u(() => [
|
|
83
|
+
(e(), n(
|
|
84
|
+
g(t(r).component),
|
|
85
|
+
m({ id: "bg-widget" }, t(r).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
|
+
w(t(s), (l, o) => (e(), d(
|
|
99
|
+
b,
|
|
100
|
+
{ key: o },
|
|
101
|
+
[
|
|
102
|
+
t(i)[o].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)[o].value.component),
|
|
117
|
+
m({
|
|
118
|
+
key: t(i)[o].value.id,
|
|
119
|
+
ref_for: !0
|
|
120
|
+
}, t(i)[o].value.props),
|
|
121
|
+
null,
|
|
122
|
+
16
|
|
123
|
+
/* FULL_PROPS */
|
|
124
|
+
))
|
|
125
|
+
]),
|
|
126
|
+
_: 2
|
|
127
|
+
/* DYNAMIC */
|
|
128
|
+
},
|
|
129
|
+
1024
|
|
130
|
+
/* DYNAMIC_SLOTS */
|
|
131
|
+
))
|
|
132
|
+
], 8, L)) : y("v-if", !0)
|
|
133
|
+
],
|
|
134
|
+
64
|
|
135
|
+
/* STABLE_FRAGMENT */
|
|
136
|
+
))),
|
|
137
|
+
128
|
|
138
|
+
/* KEYED_FRAGMENT */
|
|
139
|
+
))
|
|
140
|
+
], 8, C)
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
/* STABLE */
|
|
144
|
+
}));
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
export {
|
|
148
|
+
T as default
|
|
149
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const h = { class: "d-flex flex-column fill-height overflow-auto" },
|
|
1
|
+
import { aY as i, aZ as m, r as p, Z as d, a_ as f, _ as c, a5 as g, $ as _, d as y, a3 as k } from "./asWebComponent-Bvb3xkxI.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
|
};
|