@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,142 @@
|
|
|
1
|
+
class d {
|
|
2
|
+
constructor(o) {
|
|
3
|
+
let {
|
|
4
|
+
x: s,
|
|
5
|
+
y: r,
|
|
6
|
+
width: e,
|
|
7
|
+
height: t
|
|
8
|
+
} = o;
|
|
9
|
+
this.x = s, this.y = r, this.width = e, this.height = t;
|
|
10
|
+
}
|
|
11
|
+
get top() {
|
|
12
|
+
return this.y;
|
|
13
|
+
}
|
|
14
|
+
get bottom() {
|
|
15
|
+
return this.y + this.height;
|
|
16
|
+
}
|
|
17
|
+
get left() {
|
|
18
|
+
return this.x;
|
|
19
|
+
}
|
|
20
|
+
get right() {
|
|
21
|
+
return this.x + this.width;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function v(f) {
|
|
25
|
+
const o = f.getBoundingClientRect(), s = getComputedStyle(f), r = s.transform;
|
|
26
|
+
if (r) {
|
|
27
|
+
let e, t, i, n, u;
|
|
28
|
+
if (r.startsWith("matrix3d("))
|
|
29
|
+
e = r.slice(9, -1).split(/, /), t = +e[0], i = +e[5], n = +e[12], u = +e[13];
|
|
30
|
+
else if (r.startsWith("matrix("))
|
|
31
|
+
e = r.slice(7, -1).split(/, /), t = +e[0], i = +e[3], n = +e[4], u = +e[5];
|
|
32
|
+
else
|
|
33
|
+
return new d(o);
|
|
34
|
+
const a = s.transformOrigin, c = o.x - n - (1 - t) * parseFloat(a), l = o.y - u - (1 - i) * parseFloat(a.slice(a.indexOf(" ") + 1)), h = t ? o.width / t : f.offsetWidth + 1, m = i ? o.height / i : f.offsetHeight + 1;
|
|
35
|
+
return new d({
|
|
36
|
+
x: c,
|
|
37
|
+
y: l,
|
|
38
|
+
width: h,
|
|
39
|
+
height: m
|
|
40
|
+
});
|
|
41
|
+
} else
|
|
42
|
+
return new d(o);
|
|
43
|
+
}
|
|
44
|
+
function w(f, o, s) {
|
|
45
|
+
if (typeof f.animate > "u")
|
|
46
|
+
return {
|
|
47
|
+
finished: Promise.resolve()
|
|
48
|
+
};
|
|
49
|
+
let r;
|
|
50
|
+
try {
|
|
51
|
+
r = f.animate(o, s);
|
|
52
|
+
} catch {
|
|
53
|
+
return {
|
|
54
|
+
finished: Promise.resolve()
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
return typeof r.finished > "u" && (r.finished = new Promise((e) => {
|
|
58
|
+
r.onfinish = () => {
|
|
59
|
+
e(r);
|
|
60
|
+
};
|
|
61
|
+
})), r;
|
|
62
|
+
}
|
|
63
|
+
const R = "cubic-bezier(0.4, 0, 0.2, 1)", p = Symbol("Forwarded refs");
|
|
64
|
+
function g(f, o) {
|
|
65
|
+
let s = f;
|
|
66
|
+
for (; s; ) {
|
|
67
|
+
const r = Reflect.getOwnPropertyDescriptor(s, o);
|
|
68
|
+
if (r)
|
|
69
|
+
return r;
|
|
70
|
+
s = Object.getPrototypeOf(s);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function x(f) {
|
|
74
|
+
for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), r = 1; r < o; r++)
|
|
75
|
+
s[r - 1] = arguments[r];
|
|
76
|
+
return f[p] = s, new Proxy(f, {
|
|
77
|
+
get(e, t) {
|
|
78
|
+
if (Reflect.has(e, t))
|
|
79
|
+
return Reflect.get(e, t);
|
|
80
|
+
if (!(typeof t == "symbol" || t.startsWith("$") || t.startsWith("__"))) {
|
|
81
|
+
for (const i of s)
|
|
82
|
+
if (i.value && Reflect.has(i.value, t)) {
|
|
83
|
+
const n = Reflect.get(i.value, t);
|
|
84
|
+
return typeof n == "function" ? n.bind(i.value) : n;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
has(e, t) {
|
|
89
|
+
if (Reflect.has(e, t))
|
|
90
|
+
return !0;
|
|
91
|
+
if (typeof t == "symbol" || t.startsWith("$") || t.startsWith("__"))
|
|
92
|
+
return !1;
|
|
93
|
+
for (const i of s)
|
|
94
|
+
if (i.value && Reflect.has(i.value, t))
|
|
95
|
+
return !0;
|
|
96
|
+
return !1;
|
|
97
|
+
},
|
|
98
|
+
set(e, t, i) {
|
|
99
|
+
if (Reflect.has(e, t))
|
|
100
|
+
return Reflect.set(e, t, i);
|
|
101
|
+
if (typeof t == "symbol" || t.startsWith("$") || t.startsWith("__"))
|
|
102
|
+
return !1;
|
|
103
|
+
for (const n of s)
|
|
104
|
+
if (n.value && Reflect.has(n.value, t))
|
|
105
|
+
return Reflect.set(n.value, t, i);
|
|
106
|
+
return !1;
|
|
107
|
+
},
|
|
108
|
+
getOwnPropertyDescriptor(e, t) {
|
|
109
|
+
const i = Reflect.getOwnPropertyDescriptor(e, t);
|
|
110
|
+
if (i)
|
|
111
|
+
return i;
|
|
112
|
+
if (!(typeof t == "symbol" || t.startsWith("$") || t.startsWith("__"))) {
|
|
113
|
+
for (const n of s) {
|
|
114
|
+
if (!n.value)
|
|
115
|
+
continue;
|
|
116
|
+
const u = g(n.value, t) ?? ("_" in n.value ? g(n.value._?.setupState, t) : void 0);
|
|
117
|
+
if (u)
|
|
118
|
+
return u;
|
|
119
|
+
}
|
|
120
|
+
for (const n of s) {
|
|
121
|
+
const u = n.value && n.value[p];
|
|
122
|
+
if (!u)
|
|
123
|
+
continue;
|
|
124
|
+
const a = u.slice();
|
|
125
|
+
for (; a.length; ) {
|
|
126
|
+
const c = a.shift(), l = g(c.value, t);
|
|
127
|
+
if (l)
|
|
128
|
+
return l;
|
|
129
|
+
const h = c.value && c.value[p];
|
|
130
|
+
h && a.push(...h);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
export {
|
|
138
|
+
w as a,
|
|
139
|
+
x as f,
|
|
140
|
+
v as n,
|
|
141
|
+
R as s
|
|
142
|
+
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { g as c, aB as x, ay as g, aa as p, p as S, a9 as b } from "./asWebComponent-BKe6Spni.js";
|
|
2
|
+
const _ = S({
|
|
3
|
+
disabled: Boolean,
|
|
4
|
+
group: Boolean,
|
|
5
|
+
hideOnLeave: Boolean,
|
|
6
|
+
leaveAbsolute: Boolean,
|
|
7
|
+
mode: String,
|
|
8
|
+
origin: String
|
|
9
|
+
}, "transition");
|
|
10
|
+
function s(o, d, i) {
|
|
11
|
+
return c()({
|
|
12
|
+
name: o,
|
|
13
|
+
props: _({
|
|
14
|
+
mode: i,
|
|
15
|
+
origin: d
|
|
16
|
+
}),
|
|
17
|
+
setup(n, r) {
|
|
18
|
+
let {
|
|
19
|
+
slots: a
|
|
20
|
+
} = r;
|
|
21
|
+
const t = {
|
|
22
|
+
onBeforeEnter(e) {
|
|
23
|
+
n.origin && (e.style.transformOrigin = n.origin);
|
|
24
|
+
},
|
|
25
|
+
onLeave(e) {
|
|
26
|
+
if (n.leaveAbsolute) {
|
|
27
|
+
const {
|
|
28
|
+
offsetTop: l,
|
|
29
|
+
offsetLeft: f,
|
|
30
|
+
offsetWidth: y,
|
|
31
|
+
offsetHeight: u
|
|
32
|
+
} = e;
|
|
33
|
+
e._transitionInitialStyles = {
|
|
34
|
+
position: e.style.position,
|
|
35
|
+
top: e.style.top,
|
|
36
|
+
left: e.style.left,
|
|
37
|
+
width: e.style.width,
|
|
38
|
+
height: e.style.height
|
|
39
|
+
}, e.style.position = "absolute", e.style.top = `${l}px`, e.style.left = `${f}px`, e.style.width = `${y}px`, e.style.height = `${u}px`;
|
|
40
|
+
}
|
|
41
|
+
n.hideOnLeave && e.style.setProperty("display", "none", "important");
|
|
42
|
+
},
|
|
43
|
+
onAfterLeave(e) {
|
|
44
|
+
if (n.leaveAbsolute && e?._transitionInitialStyles) {
|
|
45
|
+
const {
|
|
46
|
+
position: l,
|
|
47
|
+
top: f,
|
|
48
|
+
left: y,
|
|
49
|
+
width: u,
|
|
50
|
+
height: v
|
|
51
|
+
} = e._transitionInitialStyles;
|
|
52
|
+
delete e._transitionInitialStyles, e.style.position = l || "", e.style.top = f || "", e.style.left = y || "", e.style.width = u || "", e.style.height = v || "";
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
return () => {
|
|
57
|
+
const e = n.group ? x : g;
|
|
58
|
+
return p(e, {
|
|
59
|
+
name: n.disabled ? "" : o,
|
|
60
|
+
css: !n.disabled,
|
|
61
|
+
...n.group ? void 0 : {
|
|
62
|
+
mode: n.mode
|
|
63
|
+
},
|
|
64
|
+
...n.disabled ? {} : t
|
|
65
|
+
}, a.default);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function h(o, d) {
|
|
71
|
+
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "in-out";
|
|
72
|
+
return c()({
|
|
73
|
+
name: o,
|
|
74
|
+
props: {
|
|
75
|
+
mode: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: i
|
|
78
|
+
},
|
|
79
|
+
disabled: Boolean
|
|
80
|
+
},
|
|
81
|
+
setup(n, r) {
|
|
82
|
+
let {
|
|
83
|
+
slots: a
|
|
84
|
+
} = r;
|
|
85
|
+
return () => p(g, {
|
|
86
|
+
name: n.disabled ? "" : o,
|
|
87
|
+
css: !n.disabled,
|
|
88
|
+
// mode: props.mode, // TODO: vuejs/vue-next#3104
|
|
89
|
+
...n.disabled ? {} : d
|
|
90
|
+
}, a.default);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function m() {
|
|
95
|
+
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
96
|
+
const i = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1) ? "width" : "height", n = b(`offset-${i}`);
|
|
97
|
+
return {
|
|
98
|
+
onBeforeEnter(t) {
|
|
99
|
+
t._parent = t.parentNode, t._initialStyle = {
|
|
100
|
+
transition: t.style.transition,
|
|
101
|
+
overflow: t.style.overflow,
|
|
102
|
+
[i]: t.style[i]
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
onEnter(t) {
|
|
106
|
+
const e = t._initialStyle;
|
|
107
|
+
t.style.setProperty("transition", "none", "important"), t.style.overflow = "hidden";
|
|
108
|
+
const l = `${t[n]}px`;
|
|
109
|
+
t.style[i] = "0", t.offsetHeight, t.style.transition = e.transition, o && t._parent && t._parent.classList.add(o), requestAnimationFrame(() => {
|
|
110
|
+
t.style[i] = l;
|
|
111
|
+
});
|
|
112
|
+
},
|
|
113
|
+
onAfterEnter: a,
|
|
114
|
+
onEnterCancelled: a,
|
|
115
|
+
onLeave(t) {
|
|
116
|
+
t._initialStyle = {
|
|
117
|
+
transition: "",
|
|
118
|
+
overflow: t.style.overflow,
|
|
119
|
+
[i]: t.style[i]
|
|
120
|
+
}, t.style.overflow = "hidden", t.style[i] = `${t[n]}px`, t.offsetHeight, requestAnimationFrame(() => t.style[i] = "0");
|
|
121
|
+
},
|
|
122
|
+
onAfterLeave: r,
|
|
123
|
+
onLeaveCancelled: r
|
|
124
|
+
};
|
|
125
|
+
function r(t) {
|
|
126
|
+
o && t._parent && t._parent.classList.remove(o), a(t);
|
|
127
|
+
}
|
|
128
|
+
function a(t) {
|
|
129
|
+
const e = t._initialStyle[i];
|
|
130
|
+
t.style.overflow = t._initialStyle.overflow, e != null && (t.style[i] = e), delete t._initialStyle;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
s("fab-transition", "center center", "out-in");
|
|
134
|
+
s("dialog-bottom-transition");
|
|
135
|
+
s("dialog-top-transition");
|
|
136
|
+
const T = s("fade-transition");
|
|
137
|
+
s("scale-transition");
|
|
138
|
+
s("scroll-x-transition");
|
|
139
|
+
s("scroll-x-reverse-transition");
|
|
140
|
+
s("scroll-y-transition");
|
|
141
|
+
s("scroll-y-reverse-transition");
|
|
142
|
+
s("slide-x-transition");
|
|
143
|
+
s("slide-x-reverse-transition");
|
|
144
|
+
const L = s("slide-y-transition");
|
|
145
|
+
s("slide-y-reverse-transition");
|
|
146
|
+
const A = h("expand-transition", m()), B = h("expand-x-transition", m("", !0));
|
|
147
|
+
export {
|
|
148
|
+
T as V,
|
|
149
|
+
A as a,
|
|
150
|
+
L as b,
|
|
151
|
+
B as c
|
|
152
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { p as v, aa as b, m as d, aB as l, ay as g, Y as _ } from "./asWebComponent-BKe6Spni.js";
|
|
2
|
+
const j = v({
|
|
3
|
+
transition: {
|
|
4
|
+
type: [Boolean, String, Object],
|
|
5
|
+
default: "fade-transition",
|
|
6
|
+
validator: (e) => e !== !0
|
|
7
|
+
}
|
|
8
|
+
}, "transition"), I = (e, t) => {
|
|
9
|
+
let {
|
|
10
|
+
slots: s
|
|
11
|
+
} = t;
|
|
12
|
+
const {
|
|
13
|
+
transition: n,
|
|
14
|
+
disabled: r,
|
|
15
|
+
group: i,
|
|
16
|
+
...a
|
|
17
|
+
} = e, {
|
|
18
|
+
component: c = i ? l : g,
|
|
19
|
+
...f
|
|
20
|
+
} = typeof n == "object" ? n : {};
|
|
21
|
+
return b(c, d(typeof n == "string" ? {
|
|
22
|
+
name: r ? "" : n
|
|
23
|
+
} : f, typeof n == "string" ? {} : Object.fromEntries(Object.entries({
|
|
24
|
+
disabled: r,
|
|
25
|
+
group: i
|
|
26
|
+
}).filter((o) => {
|
|
27
|
+
let [u, m] = o;
|
|
28
|
+
return m !== void 0;
|
|
29
|
+
})), a), s);
|
|
30
|
+
};
|
|
31
|
+
function y(e, t) {
|
|
32
|
+
if (!_)
|
|
33
|
+
return;
|
|
34
|
+
const s = t.modifiers || {}, n = t.value, {
|
|
35
|
+
handler: r,
|
|
36
|
+
options: i
|
|
37
|
+
} = typeof n == "object" ? n : {
|
|
38
|
+
handler: n,
|
|
39
|
+
options: {}
|
|
40
|
+
}, a = new IntersectionObserver(function() {
|
|
41
|
+
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], f = arguments.length > 1 ? arguments[1] : void 0;
|
|
42
|
+
const o = e._observe?.[t.instance.$.uid];
|
|
43
|
+
if (!o)
|
|
44
|
+
return;
|
|
45
|
+
const u = c.some((m) => m.isIntersecting);
|
|
46
|
+
r && (!s.quiet || o.init) && (!s.once || u || o.init) && r(u, c, f), u && s.once ? p(e, t) : o.init = !0;
|
|
47
|
+
}, i);
|
|
48
|
+
e._observe = Object(e._observe), e._observe[t.instance.$.uid] = {
|
|
49
|
+
init: !1,
|
|
50
|
+
observer: a
|
|
51
|
+
}, a.observe(e);
|
|
52
|
+
}
|
|
53
|
+
function p(e, t) {
|
|
54
|
+
const s = e._observe?.[t.instance.$.uid];
|
|
55
|
+
s && (s.observer.unobserve(e), delete e._observe[t.instance.$.uid]);
|
|
56
|
+
}
|
|
57
|
+
const O = {
|
|
58
|
+
mounted: y,
|
|
59
|
+
unmounted: p
|
|
60
|
+
}, h = O;
|
|
61
|
+
export {
|
|
62
|
+
I as M,
|
|
63
|
+
h as i,
|
|
64
|
+
j as m
|
|
65
|
+
};
|