@eodash/eodash 5.0.0-alpha.2.4 → 5.0.0-alpha.2.6
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 +31 -7
- package/core/client/App.vue +6 -7
- package/core/client/SuspensedDashboard.ce.vue +59 -45
- package/core/client/asWebComponent.d.ts +10 -5
- package/core/client/asWebComponent.js +6 -6
- package/core/client/components/DashboardLayout.vue +63 -21
- package/core/client/components/DynamicWebComponent.vue +44 -44
- package/core/client/components/ErrorAlert.vue +24 -7
- package/core/client/components/Footer.vue +34 -15
- package/core/client/components/Header.vue +10 -5
- package/core/client/components/IframeWrapper.vue +4 -4
- package/core/client/components/Loading.vue +17 -18
- package/core/client/components/MobileLayout.vue +82 -29
- package/core/client/composables/DefineEodash.js +38 -28
- package/core/client/composables/DefineWidgets.js +105 -79
- package/core/client/composables/index.js +43 -141
- package/core/client/eodash.js +46 -39
- package/core/client/main.js +2 -2
- package/core/client/plugins/index.js +11 -9
- package/core/client/plugins/vuetify.js +9 -10
- package/core/client/render.js +4 -5
- package/core/client/store/States.js +8 -13
- package/core/client/store/index.js +14 -11
- package/core/client/store/stac.js +51 -37
- package/core/client/types.d.ts +173 -248
- package/core/client/utils/eodashSTAC.js +151 -66
- package/core/client/utils/helpers.js +18 -20
- package/core/client/utils/index.js +25 -14
- package/core/client/utils/keys.js +2 -2
- package/core/client/views/Dashboard.vue +70 -42
- package/core/client/vite-env.d.ts +19 -17
- package/dist/client/DashboardLayout-BuDcv6LM.js +156 -0
- package/dist/client/{DynamicWebComponent-C4Hotc4H.js → DynamicWebComponent-BEP4rVce.js} +7 -7
- package/dist/client/EodashDatePicker-oFb1zt5E.js +1211 -0
- package/dist/client/EodashItemFilter-BElmgrST.js +63 -0
- package/dist/client/{EodashMap-CGrQjZ1P.js → EodashMap-DXyOgcEd.js} +11333 -14025
- package/dist/client/Footer-CoPx6UXQ.js +115 -0
- package/dist/client/Header-C-zX31Ys.js +635 -0
- package/dist/client/{IframeWrapper-Cg3GMmfW.js → IframeWrapper-2w2ye0zM.js} +4 -4
- package/dist/client/MobileLayout-C9OVcP12.js +945 -0
- package/dist/client/{VMain-BHYlmRic.js → VMain-Dm43jd43.js} +8 -8
- package/dist/client/{WidgetsContainer-dje9QSk0.js → WidgetsContainer-BS87sLqk.js} +12 -5
- package/dist/client/asWebComponent-CpQUVi2N.js +20135 -0
- package/dist/client/{basedecoder-Qm25PwVp-CHo5Pomv.js → basedecoder-DHcBySSe-BmCFNFnw.js} +5 -6
- package/dist/client/{decoder-HRvnjnEI-BQ2rajuJ.js → decoder-CP4lv0Kb-BHrv68IA.js} +1 -1
- package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +10 -0
- package/dist/client/eo-dash.js +3 -3
- package/dist/client/eodashSTAC-Q7kbX1Gy.js +2788 -0
- package/dist/client/{eox-itemfilter-DcQkRD2l.js → eox-itemfilter-TaBxgqq_.js} +1002 -974
- package/dist/client/{eox-map-C3DL31fp.js → eox-map-L7abwKTR.js} +5677 -5695
- package/dist/client/forwardRefs-BVFQ82G4.js +183 -0
- package/dist/client/{index-CaDDfJYE.js → index-dOzyv_xR.js} +43 -74
- package/dist/client/{jpeg-DNfUpLwy-Fjan-04T.js → jpeg-BAgeD1d3-oeHbFPUL.js} +5 -6
- package/dist/client/{lerc-_E46UbWQ-Beu35ovS.js → lerc-DzVumYtB-rm1Xco54.js} +5 -7
- package/dist/client/{lzw-BOMhmEDy-Dboc93VO.js → lzw-LAGDNbSC-DkP96qO9.js} +1 -1
- package/dist/client/{packbits-DaUD6MLm-Bu1PoTGa.js → packbits-BlDR4Kj5-C66n1-zr.js} +1 -1
- package/dist/client/{pako.esm-C3kYPGGQ-BMki8cQY.js → pako.esm-CB1uQYY0-DB0PYm1P.js} +6 -12
- package/dist/client/{raw-CcGKjn8q-DFOt-i8n.js → raw-CMGvRjfu-BRi6E4i1.js} +1 -1
- package/dist/client/{ssrBoot-Dd7m-btU.js → ssrBoot-L9KejErM.js} +3 -3
- package/dist/client/style.css +2 -2
- package/dist/client/transition-DCePIwYR.js +34 -0
- package/dist/client/{webfontloader-CyOFAuFB.js → webfontloader-qotgY98I.js} +56 -92
- package/dist/client/{webimage-D2c098k3-DLj1LQxB.js → webimage-BM_pbLN3-L2cGWK5l.js} +1 -1
- package/dist/node/cli.js +3 -3
- package/dist/node/types.d.ts +32 -38
- package/package.json +13 -14
- package/widgets/EodashDatePicker.vue +145 -41
- package/widgets/EodashItemFilter.vue +41 -22
- package/widgets/EodashMap.vue +87 -20
- package/widgets/WidgetsContainer.vue +45 -27
- package/dist/client/DashboardLayout-ZaSRMD1M.js +0 -149
- package/dist/client/EodashDatePicker-C4kKjxKy.js +0 -1653
- package/dist/client/EodashItemFilter-cBHC0YEM.js +0 -51
- package/dist/client/Footer-pS636dEP.js +0 -118
- package/dist/client/Header-DQuaLdjl.js +0 -605
- package/dist/client/MobileLayout-BLXFBWI_.js +0 -987
- package/dist/client/asWebComponent-Bvb3xkxI.js +0 -13311
- package/dist/client/deflate-Be2Arps5-hDqMz3RA.js +0 -10
- package/dist/client/forwardRefs-Bxeu9Obx.js +0 -142
- package/dist/client/index-DlNICb3T.js +0 -34
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { _ as y, x as m, W as x, X as d, $ as t, a0 as r, a1 as l, a9 as _, a3 as n, a6 as u, a2 as c, a4 as p, d as h, a5 as g, F as f, a7 as v, ab as w } from "./asWebComponent-CpQUVi2N.js";
|
|
2
|
+
import { V as k } from "./VMain-Dm43jd43.js";
|
|
3
|
+
class A 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, s, o) {
|
|
27
|
+
s !== o && (this[a] = o), this.render();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
class C 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, s, o) {
|
|
56
|
+
s !== o && (this[a] = o), this.render();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
customElements.define("eox-layout", A);
|
|
60
|
+
customElements.define("eox-layout-item", C);
|
|
61
|
+
const L = ["gap"], $ = {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: "bg-panel",
|
|
64
|
+
x: "0",
|
|
65
|
+
y: "0",
|
|
66
|
+
h: "12",
|
|
67
|
+
w: "12"
|
|
68
|
+
}, E = ["h", "w", "x", "y"], M = {
|
|
69
|
+
__name: "DashboardLayout",
|
|
70
|
+
setup(i) {
|
|
71
|
+
const a = (
|
|
72
|
+
/** @type {import("@/types").Eodash} */
|
|
73
|
+
m(x)
|
|
74
|
+
), [s] = d([a.template?.background]), o = d(a.template?.widgets);
|
|
75
|
+
return (T, B) => (t(), r(k, null, {
|
|
76
|
+
default: l(() => [
|
|
77
|
+
_("eox-layout", {
|
|
78
|
+
gap: n(a).template.gap ?? 2
|
|
79
|
+
}, [
|
|
80
|
+
n(s).component ? (t(), u("eox-layout-item", $, [
|
|
81
|
+
(t(), r(c, { suspensible: "" }, {
|
|
82
|
+
default: l(() => [
|
|
83
|
+
(t(), r(
|
|
84
|
+
p(n(s).component),
|
|
85
|
+
h({ id: "bg-widget" }, n(s).props),
|
|
86
|
+
null,
|
|
87
|
+
16
|
|
88
|
+
/* FULL_PROPS */
|
|
89
|
+
))
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
/* STABLE */
|
|
93
|
+
}))
|
|
94
|
+
])) : g("v-if", !0),
|
|
95
|
+
(t(!0), u(
|
|
96
|
+
f,
|
|
97
|
+
null,
|
|
98
|
+
v(n(o), (e, b) => (t(), r(
|
|
99
|
+
w,
|
|
100
|
+
{
|
|
101
|
+
key: b,
|
|
102
|
+
name: "fade"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
default: l(() => [
|
|
106
|
+
e.value.component ? (t(), u("eox-layout-item", {
|
|
107
|
+
key: e.value.id,
|
|
108
|
+
class: "panel",
|
|
109
|
+
h: e.value.layout.h,
|
|
110
|
+
w: e.value.layout.w,
|
|
111
|
+
x: e.value.layout.x,
|
|
112
|
+
y: e.value.layout.y
|
|
113
|
+
}, [
|
|
114
|
+
(t(), r(
|
|
115
|
+
c,
|
|
116
|
+
{ suspensible: "" },
|
|
117
|
+
{
|
|
118
|
+
default: l(() => [
|
|
119
|
+
(t(), r(
|
|
120
|
+
p(e.value.component),
|
|
121
|
+
h({
|
|
122
|
+
key: e.value.id,
|
|
123
|
+
ref_for: !0
|
|
124
|
+
}, e.value.props),
|
|
125
|
+
null,
|
|
126
|
+
16
|
|
127
|
+
/* FULL_PROPS */
|
|
128
|
+
))
|
|
129
|
+
]),
|
|
130
|
+
_: 2
|
|
131
|
+
/* DYNAMIC */
|
|
132
|
+
},
|
|
133
|
+
1024
|
|
134
|
+
/* DYNAMIC_SLOTS */
|
|
135
|
+
))
|
|
136
|
+
], 8, E)) : g("v-if", !0)
|
|
137
|
+
]),
|
|
138
|
+
_: 2
|
|
139
|
+
/* DYNAMIC */
|
|
140
|
+
},
|
|
141
|
+
1024
|
|
142
|
+
/* DYNAMIC_SLOTS */
|
|
143
|
+
))),
|
|
144
|
+
128
|
|
145
|
+
/* KEYED_FRAGMENT */
|
|
146
|
+
))
|
|
147
|
+
], 8, L)
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
/* STABLE */
|
|
151
|
+
}));
|
|
152
|
+
}
|
|
153
|
+
}, V = /* @__PURE__ */ y(M, [["__scopeId", "data-v-34c69bd3"]]);
|
|
154
|
+
export {
|
|
155
|
+
V as default
|
|
156
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const h = { class: "d-flex flex-column fill-height overflow-auto" },
|
|
1
|
+
import { b7 as i, aZ as m, r as p, Z as d, b8 as f, $ as c, a6 as g, a0 as y, d as _, a4 as k } from "./asWebComponent-CpQUVi2N.js";
|
|
2
|
+
const h = { class: "d-flex flex-column fill-height overflow-auto" }, C = {
|
|
3
3
|
__name: "DynamicWebComponent",
|
|
4
4
|
props: {
|
|
5
5
|
link: {
|
|
@@ -21,7 +21,7 @@ const h = { class: "d-flex flex-column fill-height overflow-auto" }, N = {
|
|
|
21
21
|
async setup(o) {
|
|
22
22
|
let t, a;
|
|
23
23
|
const e = (
|
|
24
|
-
/** @type {import("@/types").WebComponentProps}
|
|
24
|
+
/** @type {import("@/types").WebComponentProps} */
|
|
25
25
|
o
|
|
26
26
|
), u = async () => typeof e.link == "string" ? await import(
|
|
27
27
|
/* @vite-ignore */
|
|
@@ -38,10 +38,10 @@ const h = { class: "d-flex flex-column fill-height overflow-auto" }, N = {
|
|
|
38
38
|
e.onMounted?.(r.value, s);
|
|
39
39
|
}), f(() => {
|
|
40
40
|
e.onUnmounted?.(r.value, s);
|
|
41
|
-
}), (n,
|
|
42
|
-
(c(),
|
|
41
|
+
}), (n, w) => (c(), g("span", h, [
|
|
42
|
+
(c(), y(
|
|
43
43
|
k(o.tagName),
|
|
44
|
-
|
|
44
|
+
_(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" }, N = {
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
C as default
|
|
57
57
|
};
|