@eodash/eodash 5.0.0-alpha.1.9 → 5.0.0-alpha.2
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 +1 -1
- package/bin/cli.js +15 -8
- package/bin/main.js +9 -0
- package/bin/serverConfig.js +58 -29
- package/bin/types.d.ts +52 -0
- package/bin/utils.js +70 -20
- package/core/App.vue +10 -12
- package/core/SuspensedDashboard.ce.vue +59 -0
- package/core/asWebComponent.d.ts +18 -0
- package/core/asWebComponent.js +12 -0
- package/core/components/DashboardLayout.vue +23 -27
- package/core/components/DynamicWebComponent.vue +6 -6
- package/core/components/Footer.vue +11 -12
- package/core/components/Header.vue +5 -29
- package/core/components/Loading.vue +27 -0
- package/core/components/MobileLayout.vue +34 -63
- package/core/composables/DefineEodash.js +57 -0
- package/core/composables/DefineWidgets.js +26 -15
- package/core/composables/index.js +139 -67
- package/core/eodash.js +100 -0
- package/core/main.js +2 -4
- package/core/plugins/index.js +3 -12
- package/core/plugins/vuetify.js +5 -2
- package/core/store/Actions.js +0 -28
- package/core/store/States.js +12 -3
- package/core/store/stac.js +7 -5
- package/core/types.d.ts +148 -124
- package/core/utils/eodashSTAC.js +164 -0
- package/core/utils/helpers.js +40 -0
- package/core/utils/index.js +28 -0
- package/core/utils/keys.js +6 -0
- package/core/views/Dashboard.vue +33 -23
- package/core/vite-env.d.ts +16 -2
- package/dist/.gitkeep +0 -0
- package/dist/DashboardLayout-YLfAa8wH.js +168 -0
- package/dist/DynamicWebComponent-BDOQsEcj.js +57 -0
- package/dist/EodashDatePicker-DlehqSgz.js +1645 -0
- package/dist/EodashItemFilter-TSp7XRGy.js +51 -0
- package/dist/EodashMap-DInb9cfS.js +53405 -0
- package/dist/Footer-CIzHgJbK.js +118 -0
- package/dist/Header-C5PSB8Uc.js +609 -0
- package/dist/IframeWrapper-DYHQQRUh.js +19 -0
- package/dist/MobileLayout-DZmqrpub.js +523 -0
- package/dist/VBtn-CFPhsIX8.js +1106 -0
- package/dist/VMain-deI9jyIf.js +35 -0
- package/dist/WidgetsContainer-D_PLP1qf.js +122 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/asWebComponent-BKe6Spni.js +11323 -0
- package/dist/basedecoder-Qm25PwVp-CHo5Pomv.js +89 -0
- package/dist/color-D72nEBIR.js +115 -0
- package/dist/decoder-kAoyGIq9-HAkjSTCt.js +10 -0
- package/dist/deflate-Be2Arps5-hDqMz3RA.js +10 -0
- package/dist/dimensions-BZkmIizV.js +53 -0
- package/dist/eo-dash.js +6 -0
- package/dist/eox-itemfilter-DcQkRD2l.js +7537 -0
- package/dist/eox-map-BJ9SIixs.js +36205 -0
- package/dist/eox-stacinfo-B-YrT7Ug.js +13698 -0
- package/dist/forwardRefs-Bxeu9Obx.js +142 -0
- package/dist/index-8ch8xKfa.js +152 -0
- package/dist/index-DIt8GjSR.js +65 -0
- package/dist/jpeg-DNfUpLwy-Fjan-04T.js +515 -0
- package/dist/lerc-C9VL9kri-DyVxBvsf.js +1029 -0
- package/dist/lzw-BOMhmEDy-Dboc93VO.js +84 -0
- package/dist/packbits-DaUD6MLm-Bu1PoTGa.js +24 -0
- package/dist/pako.esm-C3kYPGGQ-BMki8cQY.js +1087 -0
- package/dist/raw-CcGKjn8q-DFOt-i8n.js +9 -0
- package/dist/ssrBoot-Cm5pWM14.js +17 -0
- package/dist/style.css +5 -0
- package/dist/webfontloader-CyOFAuFB.js +471 -0
- package/dist/webimage-D2c098k3-DLj1LQxB.js +19 -0
- package/package.json +40 -12
- package/widgets/EodashDatePicker.vue +56 -0
- package/widgets/EodashItemFilter.vue +60 -0
- package/widgets/EodashMap.vue +82 -0
- package/widgets/WidgetsContainer.vue +1 -1
- package/core/composables/DefineConfig.js +0 -45
- package/core/eodashConfig.js +0 -136
- package/core/plugins/router.js +0 -20
- package/core/store/Keys.js +0 -6
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { p as n, b as r, e as c, g as m, B as i, u, a as e } from "./asWebComponent-BKe6Spni.js";
|
|
2
|
+
import { u as d } from "./ssrBoot-Cm5pWM14.js";
|
|
3
|
+
const p = n({
|
|
4
|
+
scrollable: Boolean,
|
|
5
|
+
...r(),
|
|
6
|
+
...c({
|
|
7
|
+
tag: "main"
|
|
8
|
+
})
|
|
9
|
+
}, "VMain"), V = m()({
|
|
10
|
+
name: "VMain",
|
|
11
|
+
props: p(),
|
|
12
|
+
setup(a, l) {
|
|
13
|
+
let {
|
|
14
|
+
slots: s
|
|
15
|
+
} = l;
|
|
16
|
+
const {
|
|
17
|
+
mainStyles: o
|
|
18
|
+
} = i(), {
|
|
19
|
+
ssrBootStyles: t
|
|
20
|
+
} = d();
|
|
21
|
+
return u(() => e(a.tag, {
|
|
22
|
+
class: ["v-main", {
|
|
23
|
+
"v-main--scrollable": a.scrollable
|
|
24
|
+
}, a.class],
|
|
25
|
+
style: [o.value, t.value, a.style]
|
|
26
|
+
}, {
|
|
27
|
+
default: () => [a.scrollable ? e("div", {
|
|
28
|
+
class: "v-main__scroller"
|
|
29
|
+
}, [s.default?.()]) : s.default?.()]
|
|
30
|
+
})), {};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
V
|
|
35
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { A as p, r as s, C as g, B as y, D as n, K as m, L as x, J as v, F as E, T as f, Q as H, E as k, aL as C, aM as _, H as w, N as A } from "./asWebComponent-BKe6Spni.js";
|
|
2
|
+
class D extends HTMLDetailsElement {
|
|
3
|
+
// this is an adaptation of // https://css-tricks.com/how-to-animate-the-details-element-using-waapi/
|
|
4
|
+
// which turns the class into a custom element
|
|
5
|
+
// additionally, the "exclusive" attribute has been introduced
|
|
6
|
+
// for accordion-style exclusiv eopening/closing
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
}
|
|
10
|
+
connectedCallback() {
|
|
11
|
+
this.el = this, this.summary = this.querySelector("summary"), this.content = this.lastElementChild, this.animation = null, this.isClosing = !1, this.isExpanding = !1, this.summary.addEventListener("click", (e) => this.onClick(e));
|
|
12
|
+
}
|
|
13
|
+
onClick(e) {
|
|
14
|
+
e?.preventDefault(), this.el.style.overflow = "hidden", this.isClosing || !this.el.open ? this.doOpen() : (this.isExpanding || this.el.open) && this.shrink();
|
|
15
|
+
}
|
|
16
|
+
shrink() {
|
|
17
|
+
this.isClosing = !0;
|
|
18
|
+
const e = `${this.el.offsetHeight}px`, t = `${this.summary.offsetHeight}px`;
|
|
19
|
+
this.animation && this.animation.cancel(), this.animation = this.el.animate(
|
|
20
|
+
{
|
|
21
|
+
// Set the keyframes from the startHeight to endHeight
|
|
22
|
+
height: [e, t]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
duration: 300,
|
|
26
|
+
easing: "ease-out"
|
|
27
|
+
}
|
|
28
|
+
), this.animation.onfinish = () => this.onAnimationFinish(!1), this.animation.oncancel = () => this.isClosing = !1;
|
|
29
|
+
}
|
|
30
|
+
doOpen() {
|
|
31
|
+
this.el.style.height = `${this.el.offsetHeight}px`, this.el.open = !0, window.requestAnimationFrame(() => this.expand()), this.parentElement.querySelectorAll(
|
|
32
|
+
"details[open][exclusive]"
|
|
33
|
+
).forEach((t) => {
|
|
34
|
+
t !== this && t.onClick();
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
expand() {
|
|
38
|
+
this.isExpanding = !0;
|
|
39
|
+
const e = `${this.el.offsetHeight}px`, t = `${this.summary.offsetHeight + this.content.offsetHeight}px`;
|
|
40
|
+
this.animation && this.animation.cancel(), this.animation = this.el.animate(
|
|
41
|
+
{
|
|
42
|
+
// Set the keyframes from the startHeight to endHeight
|
|
43
|
+
height: [e, t]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
duration: 300,
|
|
47
|
+
easing: "ease-out"
|
|
48
|
+
}
|
|
49
|
+
), this.animation.onfinish = () => this.onAnimationFinish(!0), this.animation.oncancel = () => this.isExpanding = !1;
|
|
50
|
+
}
|
|
51
|
+
onAnimationFinish(e) {
|
|
52
|
+
this.el.open = e, this.animation = null, this.isClosing = !1, this.isExpanding = !1, this.el.style.height = this.el.style.overflow = "";
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
customElements.define("animated-details", D, {
|
|
56
|
+
extends: "details"
|
|
57
|
+
});
|
|
58
|
+
const L = {
|
|
59
|
+
__name: "WidgetsContainer",
|
|
60
|
+
props: {
|
|
61
|
+
widgets: {
|
|
62
|
+
/** @type {import('vue').PropType<Omit<import("@/types").Widget,'layout'>[]>} */
|
|
63
|
+
type: Array,
|
|
64
|
+
required: !0
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
setup(a) {
|
|
68
|
+
const t = p(a.widgets), l = s([]), o = s([]), h = s(""), r = s(0);
|
|
69
|
+
return g(() => {
|
|
70
|
+
r.value = o.value.reduce((u, i) => u += i.clientHeight, 0);
|
|
71
|
+
const { mainRect: c } = y();
|
|
72
|
+
h.value = (l.value[0].parentElement?.scrollHeight ?? 0) - r.value - c.value.top + "px";
|
|
73
|
+
}), (c, u) => (n(!0), m(
|
|
74
|
+
E,
|
|
75
|
+
null,
|
|
76
|
+
x(v(t), (i, d) => (n(), m("details", {
|
|
77
|
+
is: "animated-details",
|
|
78
|
+
ref_for: !0,
|
|
79
|
+
ref_key: "detailsEls",
|
|
80
|
+
ref: l,
|
|
81
|
+
key: d,
|
|
82
|
+
class: "overflow-auto",
|
|
83
|
+
exclusive: ""
|
|
84
|
+
}, [
|
|
85
|
+
f(
|
|
86
|
+
"summary",
|
|
87
|
+
{
|
|
88
|
+
ref_for: !0,
|
|
89
|
+
ref_key: "summaryEls",
|
|
90
|
+
ref: o
|
|
91
|
+
},
|
|
92
|
+
H(i.value.title),
|
|
93
|
+
513
|
|
94
|
+
/* TEXT, NEED_PATCH */
|
|
95
|
+
),
|
|
96
|
+
f(
|
|
97
|
+
"span",
|
|
98
|
+
{
|
|
99
|
+
style: A({ height: h.value }),
|
|
100
|
+
class: "d-flex flex-column"
|
|
101
|
+
},
|
|
102
|
+
[
|
|
103
|
+
(n(), k(
|
|
104
|
+
w(i.value.component),
|
|
105
|
+
C(_(i.value.props)),
|
|
106
|
+
null,
|
|
107
|
+
16
|
|
108
|
+
/* FULL_PROPS */
|
|
109
|
+
))
|
|
110
|
+
],
|
|
111
|
+
4
|
|
112
|
+
/* STYLE */
|
|
113
|
+
)
|
|
114
|
+
]))),
|
|
115
|
+
128
|
|
116
|
+
/* KEYED_FRAGMENT */
|
|
117
|
+
));
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
L as default
|
|
122
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function l(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
o as c,
|
|
7
|
+
l as g
|
|
8
|
+
};
|