@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
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-main>
|
|
3
|
-
<eox-layout :gap="eodash.template.gap ?? 2">
|
|
4
|
-
<eox-layout-item style="z-index: 0;" x="0" y="0" h="12" w="12">
|
|
5
|
-
<component id="bg-widget" :is="bgWidget.component" v-bind="bgWidget.props" />
|
|
6
|
-
</eox-layout-item>
|
|
7
|
-
<eox-layout-item v-for="(config, idx) in widgetsConfig" ref="itemEls" :key="idx"
|
|
8
|
-
style="position: relative; overflow: visible; z-index: 1; border-radius: 0px; background: rgb(var(--v-theme-surface))"
|
|
9
|
-
:x="config.layout.x" :y="config.layout.y" :h="config.layout.h" :w="config.layout.w">
|
|
10
|
-
|
|
11
|
-
<v-btn v-if="slideBtns[idx].enabled" position="absolute" variant="tonal" :style="slideBtns[idx].style"
|
|
12
|
-
class="slide-btn" @click="slideInOut(idx)">
|
|
13
|
-
<v-icon :icon="slideBtns[idx].active ? slideBtns[idx].icon.in : slideBtns[idx].icon.out" />
|
|
14
|
-
</v-btn>
|
|
15
|
-
<component :key="importedWidgets[idx].value.id" :is="importedWidgets[idx].value.component"
|
|
16
|
-
v-bind="importedWidgets[idx].value.props" />
|
|
17
|
-
|
|
18
|
-
</eox-layout-item>
|
|
19
|
-
</eox-layout>
|
|
20
|
-
</v-main>
|
|
21
|
-
</template>
|
|
22
|
-
<script setup>
|
|
23
|
-
import { eodashKey } from '@/utils/keys';
|
|
24
|
-
import { inject } from 'vue';
|
|
25
|
-
import { useDefineWidgets } from '@/composables/DefineWidgets'
|
|
26
|
-
import { useSlidePanels } from '@/composables'
|
|
27
|
-
import { ref } from 'vue';
|
|
28
|
-
import '@eox/layout'
|
|
29
|
-
|
|
30
|
-
const eodash = /** @type {import("@/types").Eodash} */ (inject(eodashKey))
|
|
31
|
-
|
|
32
|
-
const [bgWidget] = useDefineWidgets([eodash.template?.background])
|
|
33
|
-
|
|
34
|
-
const widgetsConfig = eodash.template?.widgets
|
|
35
|
-
|
|
36
|
-
const importedWidgets = useDefineWidgets(widgetsConfig)
|
|
37
|
-
/**
|
|
38
|
-
* Layout items template ref
|
|
39
|
-
* @type {import('vue').Ref<HTMLElement[]>}
|
|
40
|
-
*/
|
|
41
|
-
const itemEls = ref([])
|
|
42
|
-
|
|
43
|
-
const { slideBtns, slideInOut } = useSlidePanels(itemEls, widgetsConfig)
|
|
44
|
-
</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
|
-
};
|