@eodash/eodash 5.0.0-alpha.1.8 → 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/app.js +1 -4
- package/bin/cli.js +26 -29
- package/bin/main.js +9 -0
- package/bin/serverConfig.js +65 -35
- package/bin/types.d.ts +52 -0
- package/bin/utils.js +91 -21
- 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 +41 -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,471 @@
|
|
|
1
|
+
import { g as Ft } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
2
|
+
var ot = { exports: {} };
|
|
3
|
+
(function(O) {
|
|
4
|
+
(function() {
|
|
5
|
+
function st(t, n, e) {
|
|
6
|
+
return t.call.apply(t.bind, arguments);
|
|
7
|
+
}
|
|
8
|
+
function rt(t, n, e) {
|
|
9
|
+
if (!t)
|
|
10
|
+
throw Error();
|
|
11
|
+
if (2 < arguments.length) {
|
|
12
|
+
var i = Array.prototype.slice.call(arguments, 2);
|
|
13
|
+
return function() {
|
|
14
|
+
var o = Array.prototype.slice.call(arguments);
|
|
15
|
+
return Array.prototype.unshift.apply(o, i), t.apply(n, o);
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
return function() {
|
|
19
|
+
return t.apply(n, arguments);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function v(t, n, e) {
|
|
23
|
+
return v = Function.prototype.bind && Function.prototype.bind.toString().indexOf("native code") != -1 ? st : rt, v.apply(null, arguments);
|
|
24
|
+
}
|
|
25
|
+
var x = Date.now || function() {
|
|
26
|
+
return +/* @__PURE__ */ new Date();
|
|
27
|
+
};
|
|
28
|
+
function at(t, n) {
|
|
29
|
+
this.a = t, this.o = n || t, this.c = this.o.document;
|
|
30
|
+
}
|
|
31
|
+
var ft = !!window.FontFace;
|
|
32
|
+
function A(t, n, e, i) {
|
|
33
|
+
if (n = t.c.createElement(n), e)
|
|
34
|
+
for (var o in e)
|
|
35
|
+
e.hasOwnProperty(o) && (o == "style" ? n.style.cssText = e[o] : n.setAttribute(o, e[o]));
|
|
36
|
+
return i && n.appendChild(t.c.createTextNode(i)), n;
|
|
37
|
+
}
|
|
38
|
+
function I(t, n, e) {
|
|
39
|
+
t = t.c.getElementsByTagName(n)[0], t || (t = document.documentElement), t.insertBefore(e, t.lastChild);
|
|
40
|
+
}
|
|
41
|
+
function j(t) {
|
|
42
|
+
t.parentNode && t.parentNode.removeChild(t);
|
|
43
|
+
}
|
|
44
|
+
function d(t, n, e) {
|
|
45
|
+
n = n || [], e = e || [];
|
|
46
|
+
for (var i = t.className.split(/\s+/), o = 0; o < n.length; o += 1) {
|
|
47
|
+
for (var s = !1, r = 0; r < i.length; r += 1)
|
|
48
|
+
if (n[o] === i[r]) {
|
|
49
|
+
s = !0;
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
s || i.push(n[o]);
|
|
53
|
+
}
|
|
54
|
+
for (n = [], o = 0; o < i.length; o += 1) {
|
|
55
|
+
for (s = !1, r = 0; r < e.length; r += 1)
|
|
56
|
+
if (i[o] === e[r]) {
|
|
57
|
+
s = !0;
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
s || n.push(i[o]);
|
|
61
|
+
}
|
|
62
|
+
t.className = n.join(" ").replace(/\s+/g, " ").replace(/^\s+|\s+$/, "");
|
|
63
|
+
}
|
|
64
|
+
function P(t, n) {
|
|
65
|
+
for (var e = t.className.split(/\s+/), i = 0, o = e.length; i < o; i++)
|
|
66
|
+
if (e[i] == n)
|
|
67
|
+
return !0;
|
|
68
|
+
return !1;
|
|
69
|
+
}
|
|
70
|
+
function ct(t) {
|
|
71
|
+
return t.o.location.hostname || t.a.location.hostname;
|
|
72
|
+
}
|
|
73
|
+
function B(t, n, e) {
|
|
74
|
+
function i() {
|
|
75
|
+
a && o && s && (a(r), a = null);
|
|
76
|
+
}
|
|
77
|
+
n = A(t, "link", { rel: "stylesheet", href: n, media: "all" });
|
|
78
|
+
var o = !1, s = !0, r = null, a = e || null;
|
|
79
|
+
ft ? (n.onload = function() {
|
|
80
|
+
o = !0, i();
|
|
81
|
+
}, n.onerror = function() {
|
|
82
|
+
o = !0, r = Error("Stylesheet failed to load"), i();
|
|
83
|
+
}) : setTimeout(function() {
|
|
84
|
+
o = !0, i();
|
|
85
|
+
}, 0), I(t, "head", n);
|
|
86
|
+
}
|
|
87
|
+
function b(t, n, e, i) {
|
|
88
|
+
var o = t.c.getElementsByTagName("head")[0];
|
|
89
|
+
if (o) {
|
|
90
|
+
var s = A(t, "script", { src: n }), r = !1;
|
|
91
|
+
return s.onload = s.onreadystatechange = function() {
|
|
92
|
+
r || this.readyState && this.readyState != "loaded" && this.readyState != "complete" || (r = !0, e && e(null), s.onload = s.onreadystatechange = null, s.parentNode.tagName == "HEAD" && o.removeChild(s));
|
|
93
|
+
}, o.appendChild(s), setTimeout(function() {
|
|
94
|
+
r || (r = !0, e && e(Error("Script load timeout")));
|
|
95
|
+
}, i || 5e3), s;
|
|
96
|
+
}
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
function k() {
|
|
100
|
+
this.a = 0, this.c = null;
|
|
101
|
+
}
|
|
102
|
+
function D(t) {
|
|
103
|
+
return t.a++, function() {
|
|
104
|
+
t.a--, $(t);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function L(t, n) {
|
|
108
|
+
t.c = n, $(t);
|
|
109
|
+
}
|
|
110
|
+
function $(t) {
|
|
111
|
+
t.a == 0 && t.c && (t.c(), t.c = null);
|
|
112
|
+
}
|
|
113
|
+
function q(t) {
|
|
114
|
+
this.a = t || "-";
|
|
115
|
+
}
|
|
116
|
+
q.prototype.c = function(t) {
|
|
117
|
+
for (var n = [], e = 0; e < arguments.length; e++)
|
|
118
|
+
n.push(arguments[e].replace(/[\W_]+/g, "").toLowerCase());
|
|
119
|
+
return n.join(this.a);
|
|
120
|
+
};
|
|
121
|
+
function p(t, n) {
|
|
122
|
+
this.c = t, this.f = 4, this.a = "n";
|
|
123
|
+
var e = (n || "n4").match(/^([nio])([1-9])$/i);
|
|
124
|
+
e && (this.a = e[1], this.f = parseInt(e[2], 10));
|
|
125
|
+
}
|
|
126
|
+
function ht(t) {
|
|
127
|
+
return H(t) + " " + (t.f + "00") + " 300px " + z(t.c);
|
|
128
|
+
}
|
|
129
|
+
function z(t) {
|
|
130
|
+
var n = [];
|
|
131
|
+
t = t.split(/,\s*/);
|
|
132
|
+
for (var e = 0; e < t.length; e++) {
|
|
133
|
+
var i = t[e].replace(/['"]/g, "");
|
|
134
|
+
i.indexOf(" ") != -1 || /^\d/.test(i) ? n.push("'" + i + "'") : n.push(i);
|
|
135
|
+
}
|
|
136
|
+
return n.join(",");
|
|
137
|
+
}
|
|
138
|
+
function l(t) {
|
|
139
|
+
return t.a + t.f;
|
|
140
|
+
}
|
|
141
|
+
function H(t) {
|
|
142
|
+
var n = "normal";
|
|
143
|
+
return t.a === "o" ? n = "oblique" : t.a === "i" && (n = "italic"), n;
|
|
144
|
+
}
|
|
145
|
+
function ut(t) {
|
|
146
|
+
var n = 4, e = "n", i = null;
|
|
147
|
+
return t && ((i = t.match(/(normal|oblique|italic)/i)) && i[1] && (e = i[1].substr(0, 1).toLowerCase()), (i = t.match(/([1-9]00|normal|bold)/i)) && i[1] && (/bold/i.test(i[1]) ? n = 7 : /[1-9]00/.test(i[1]) && (n = parseInt(i[1].substr(0, 1), 10)))), e + n;
|
|
148
|
+
}
|
|
149
|
+
function lt(t, n) {
|
|
150
|
+
this.c = t, this.f = t.o.document.documentElement, this.h = n, this.a = new q("-"), this.j = n.events !== !1, this.g = n.classes !== !1;
|
|
151
|
+
}
|
|
152
|
+
function pt(t) {
|
|
153
|
+
t.g && d(t.f, [t.a.c("wf", "loading")]), w(t, "loading");
|
|
154
|
+
}
|
|
155
|
+
function M(t) {
|
|
156
|
+
if (t.g) {
|
|
157
|
+
var n = P(t.f, t.a.c("wf", "active")), e = [], i = [t.a.c("wf", "loading")];
|
|
158
|
+
n || e.push(t.a.c("wf", "inactive")), d(t.f, e, i);
|
|
159
|
+
}
|
|
160
|
+
w(t, "inactive");
|
|
161
|
+
}
|
|
162
|
+
function w(t, n, e) {
|
|
163
|
+
t.j && t.h[n] && (e ? t.h[n](e.c, l(e)) : t.h[n]());
|
|
164
|
+
}
|
|
165
|
+
function gt() {
|
|
166
|
+
this.c = {};
|
|
167
|
+
}
|
|
168
|
+
function vt(t, n, e) {
|
|
169
|
+
var i = [], o;
|
|
170
|
+
for (o in n)
|
|
171
|
+
if (n.hasOwnProperty(o)) {
|
|
172
|
+
var s = t.c[o];
|
|
173
|
+
s && i.push(s(n[o], e));
|
|
174
|
+
}
|
|
175
|
+
return i;
|
|
176
|
+
}
|
|
177
|
+
function _(t, n) {
|
|
178
|
+
this.c = t, this.f = n, this.a = A(this.c, "span", { "aria-hidden": "true" }, this.f);
|
|
179
|
+
}
|
|
180
|
+
function T(t) {
|
|
181
|
+
I(t.c, "body", t.a);
|
|
182
|
+
}
|
|
183
|
+
function S(t) {
|
|
184
|
+
return "display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + z(t.c) + ";" + ("font-style:" + H(t) + ";font-weight:" + (t.f + "00") + ";");
|
|
185
|
+
}
|
|
186
|
+
function G(t, n, e, i, o, s) {
|
|
187
|
+
this.g = t, this.j = n, this.a = i, this.c = e, this.f = o || 3e3, this.h = s || void 0;
|
|
188
|
+
}
|
|
189
|
+
G.prototype.start = function() {
|
|
190
|
+
var t = this.c.o.document, n = this, e = x(), i = new Promise(function(r, a) {
|
|
191
|
+
function f() {
|
|
192
|
+
x() - e >= n.f ? a() : t.fonts.load(ht(n.a), n.h).then(function(c) {
|
|
193
|
+
1 <= c.length ? r() : setTimeout(f, 25);
|
|
194
|
+
}, function() {
|
|
195
|
+
a();
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
f();
|
|
199
|
+
}), o = null, s = new Promise(function(r, a) {
|
|
200
|
+
o = setTimeout(a, n.f);
|
|
201
|
+
});
|
|
202
|
+
Promise.race([s, i]).then(function() {
|
|
203
|
+
o && (clearTimeout(o), o = null), n.g(n.a);
|
|
204
|
+
}, function() {
|
|
205
|
+
n.j(n.a);
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
function K(t, n, e, i, o, s, r) {
|
|
209
|
+
this.v = t, this.B = n, this.c = e, this.a = i, this.s = r || "BESbswy", this.f = {}, this.w = o || 3e3, this.u = s || null, this.m = this.j = this.h = this.g = null, this.g = new _(this.c, this.s), this.h = new _(this.c, this.s), this.j = new _(this.c, this.s), this.m = new _(this.c, this.s), t = new p(this.a.c + ",serif", l(this.a)), t = S(t), this.g.a.style.cssText = t, t = new p(this.a.c + ",sans-serif", l(this.a)), t = S(t), this.h.a.style.cssText = t, t = new p("serif", l(this.a)), t = S(t), this.j.a.style.cssText = t, t = new p("sans-serif", l(this.a)), t = S(t), this.m.a.style.cssText = t, T(this.g), T(this.h), T(this.j), T(this.m);
|
|
210
|
+
}
|
|
211
|
+
var E = { D: "serif", C: "sans-serif" }, N = null;
|
|
212
|
+
function R() {
|
|
213
|
+
if (N === null) {
|
|
214
|
+
var t = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);
|
|
215
|
+
N = !!t && (536 > parseInt(t[1], 10) || parseInt(t[1], 10) === 536 && 11 >= parseInt(t[2], 10));
|
|
216
|
+
}
|
|
217
|
+
return N;
|
|
218
|
+
}
|
|
219
|
+
K.prototype.start = function() {
|
|
220
|
+
this.f.serif = this.j.a.offsetWidth, this.f["sans-serif"] = this.m.a.offsetWidth, this.A = x(), V(this);
|
|
221
|
+
};
|
|
222
|
+
function U(t, n, e) {
|
|
223
|
+
for (var i in E)
|
|
224
|
+
if (E.hasOwnProperty(i) && n === t.f[E[i]] && e === t.f[E[i]])
|
|
225
|
+
return !0;
|
|
226
|
+
return !1;
|
|
227
|
+
}
|
|
228
|
+
function V(t) {
|
|
229
|
+
var n = t.g.a.offsetWidth, e = t.h.a.offsetWidth, i;
|
|
230
|
+
(i = n === t.f.serif && e === t.f["sans-serif"]) || (i = R() && U(t, n, e)), i ? x() - t.A >= t.w ? R() && U(t, n, e) && (t.u === null || t.u.hasOwnProperty(t.a.c)) ? F(t, t.v) : F(t, t.B) : mt(t) : F(t, t.v);
|
|
231
|
+
}
|
|
232
|
+
function mt(t) {
|
|
233
|
+
setTimeout(v(function() {
|
|
234
|
+
V(this);
|
|
235
|
+
}, t), 50);
|
|
236
|
+
}
|
|
237
|
+
function F(t, n) {
|
|
238
|
+
setTimeout(v(function() {
|
|
239
|
+
j(this.g.a), j(this.h.a), j(this.j.a), j(this.m.a), n(this.a);
|
|
240
|
+
}, t), 0);
|
|
241
|
+
}
|
|
242
|
+
function W(t, n, e) {
|
|
243
|
+
this.c = t, this.a = n, this.f = 0, this.m = this.j = !1, this.s = e;
|
|
244
|
+
}
|
|
245
|
+
var C = null;
|
|
246
|
+
W.prototype.g = function(t) {
|
|
247
|
+
var n = this.a;
|
|
248
|
+
n.g && d(n.f, [n.a.c("wf", t.c, l(t).toString(), "active")], [n.a.c("wf", t.c, l(t).toString(), "loading"), n.a.c("wf", t.c, l(t).toString(), "inactive")]), w(n, "fontactive", t), this.m = !0, X(this);
|
|
249
|
+
}, W.prototype.h = function(t) {
|
|
250
|
+
var n = this.a;
|
|
251
|
+
if (n.g) {
|
|
252
|
+
var e = P(n.f, n.a.c("wf", t.c, l(t).toString(), "active")), i = [], o = [n.a.c("wf", t.c, l(t).toString(), "loading")];
|
|
253
|
+
e || i.push(n.a.c("wf", t.c, l(t).toString(), "inactive")), d(n.f, i, o);
|
|
254
|
+
}
|
|
255
|
+
w(n, "fontinactive", t), X(this);
|
|
256
|
+
};
|
|
257
|
+
function X(t) {
|
|
258
|
+
--t.f == 0 && t.j && (t.m ? (t = t.a, t.g && d(t.f, [t.a.c("wf", "active")], [t.a.c("wf", "loading"), t.a.c("wf", "inactive")]), w(t, "active")) : M(t.a));
|
|
259
|
+
}
|
|
260
|
+
function J(t) {
|
|
261
|
+
this.j = t, this.a = new gt(), this.h = 0, this.f = this.g = !0;
|
|
262
|
+
}
|
|
263
|
+
J.prototype.load = function(t) {
|
|
264
|
+
this.c = new at(this.j, t.context || this.j), this.g = t.events !== !1, this.f = t.classes !== !1, wt(this, new lt(this.c, t), t);
|
|
265
|
+
};
|
|
266
|
+
function dt(t, n, e, i, o) {
|
|
267
|
+
var s = --t.h == 0;
|
|
268
|
+
(t.f || t.g) && setTimeout(function() {
|
|
269
|
+
var r = o || null, a = i || null || {};
|
|
270
|
+
if (e.length === 0 && s)
|
|
271
|
+
M(n.a);
|
|
272
|
+
else {
|
|
273
|
+
n.f += e.length, s && (n.j = s);
|
|
274
|
+
var f, c = [];
|
|
275
|
+
for (f = 0; f < e.length; f++) {
|
|
276
|
+
var h = e[f], u = a[h.c], g = n.a, y = h;
|
|
277
|
+
if (g.g && d(g.f, [g.a.c("wf", y.c, l(y).toString(), "loading")]), w(g, "fontloading", y), g = null, C === null)
|
|
278
|
+
if (window.FontFace) {
|
|
279
|
+
var y = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), Nt = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
|
|
280
|
+
C = y ? 42 < parseInt(y[1], 10) : !Nt;
|
|
281
|
+
} else
|
|
282
|
+
C = !1;
|
|
283
|
+
C ? g = new G(v(n.g, n), v(n.h, n), n.c, h, n.s, u) : g = new K(v(n.g, n), v(n.h, n), n.c, h, n.s, r, u), c.push(g);
|
|
284
|
+
}
|
|
285
|
+
for (f = 0; f < c.length; f++)
|
|
286
|
+
c[f].start();
|
|
287
|
+
}
|
|
288
|
+
}, 0);
|
|
289
|
+
}
|
|
290
|
+
function wt(t, n, e) {
|
|
291
|
+
var o = [], i = e.timeout;
|
|
292
|
+
pt(n);
|
|
293
|
+
var o = vt(t.a, e, t.c), s = new W(t.c, n, i);
|
|
294
|
+
for (t.h = o.length, n = 0, e = o.length; n < e; n++)
|
|
295
|
+
o[n].load(function(r, a, f) {
|
|
296
|
+
dt(t, s, r, a, f);
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
function Q(t, n) {
|
|
300
|
+
this.c = t, this.a = n;
|
|
301
|
+
}
|
|
302
|
+
Q.prototype.load = function(t) {
|
|
303
|
+
function n() {
|
|
304
|
+
if (s["__mti_fntLst" + i]) {
|
|
305
|
+
var r = s["__mti_fntLst" + i](), a = [], f;
|
|
306
|
+
if (r)
|
|
307
|
+
for (var c = 0; c < r.length; c++) {
|
|
308
|
+
var h = r[c].fontfamily;
|
|
309
|
+
r[c].fontStyle != null && r[c].fontWeight != null ? (f = r[c].fontStyle + r[c].fontWeight, a.push(new p(h, f))) : a.push(new p(h));
|
|
310
|
+
}
|
|
311
|
+
t(a);
|
|
312
|
+
} else
|
|
313
|
+
setTimeout(function() {
|
|
314
|
+
n();
|
|
315
|
+
}, 50);
|
|
316
|
+
}
|
|
317
|
+
var e = this, i = e.a.projectId, o = e.a.version;
|
|
318
|
+
if (i) {
|
|
319
|
+
var s = e.c.o;
|
|
320
|
+
b(this.c, (e.a.api || "https://fast.fonts.net/jsapi") + "/" + i + ".js" + (o ? "?v=" + o : ""), function(r) {
|
|
321
|
+
r ? t([]) : (s["__MonotypeConfiguration__" + i] = function() {
|
|
322
|
+
return e.a;
|
|
323
|
+
}, n());
|
|
324
|
+
}).id = "__MonotypeAPIScript__" + i;
|
|
325
|
+
} else
|
|
326
|
+
t([]);
|
|
327
|
+
};
|
|
328
|
+
function Y(t, n) {
|
|
329
|
+
this.c = t, this.a = n;
|
|
330
|
+
}
|
|
331
|
+
Y.prototype.load = function(t) {
|
|
332
|
+
var n, e, i = this.a.urls || [], o = this.a.families || [], s = this.a.testStrings || {}, r = new k();
|
|
333
|
+
for (n = 0, e = i.length; n < e; n++)
|
|
334
|
+
B(this.c, i[n], D(r));
|
|
335
|
+
var a = [];
|
|
336
|
+
for (n = 0, e = o.length; n < e; n++)
|
|
337
|
+
if (i = o[n].split(":"), i[1])
|
|
338
|
+
for (var f = i[1].split(","), c = 0; c < f.length; c += 1)
|
|
339
|
+
a.push(new p(i[0], f[c]));
|
|
340
|
+
else
|
|
341
|
+
a.push(new p(i[0]));
|
|
342
|
+
L(r, function() {
|
|
343
|
+
t(a, s);
|
|
344
|
+
});
|
|
345
|
+
};
|
|
346
|
+
function yt(t, n) {
|
|
347
|
+
t ? this.c = t : this.c = xt, this.a = [], this.f = [], this.g = n || "";
|
|
348
|
+
}
|
|
349
|
+
var xt = "https://fonts.googleapis.com/css";
|
|
350
|
+
function jt(t, n) {
|
|
351
|
+
for (var e = n.length, i = 0; i < e; i++) {
|
|
352
|
+
var o = n[i].split(":");
|
|
353
|
+
o.length == 3 && t.f.push(o.pop());
|
|
354
|
+
var s = "";
|
|
355
|
+
o.length == 2 && o[1] != "" && (s = ":"), t.a.push(o.join(s));
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
function _t(t) {
|
|
359
|
+
if (t.a.length == 0)
|
|
360
|
+
throw Error("No fonts to load!");
|
|
361
|
+
if (t.c.indexOf("kit=") != -1)
|
|
362
|
+
return t.c;
|
|
363
|
+
for (var n = t.a.length, e = [], i = 0; i < n; i++)
|
|
364
|
+
e.push(t.a[i].replace(/ /g, "+"));
|
|
365
|
+
return n = t.c + "?family=" + e.join("%7C"), 0 < t.f.length && (n += "&subset=" + t.f.join(",")), 0 < t.g.length && (n += "&text=" + encodeURIComponent(t.g)), n;
|
|
366
|
+
}
|
|
367
|
+
function Tt(t) {
|
|
368
|
+
this.f = t, this.a = [], this.c = {};
|
|
369
|
+
}
|
|
370
|
+
var Z = { latin: "BESbswy", "latin-ext": "çöüğş", cyrillic: "йяЖ", greek: "αβΣ", khmer: "កខគ", Hanuman: "កខគ" }, St = { thin: "1", extralight: "2", "extra-light": "2", ultralight: "2", "ultra-light": "2", light: "3", regular: "4", book: "4", medium: "5", "semi-bold": "6", semibold: "6", "demi-bold": "6", demibold: "6", bold: "7", "extra-bold": "8", extrabold: "8", "ultra-bold": "8", ultrabold: "8", black: "9", heavy: "9", l: "3", r: "4", b: "7" }, Et = { i: "i", italic: "i", n: "n", normal: "n" }, Ct = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
|
|
371
|
+
function At(t) {
|
|
372
|
+
for (var n = t.f.length, e = 0; e < n; e++) {
|
|
373
|
+
var i = t.f[e].split(":"), o = i[0].replace(/\+/g, " "), s = ["n4"];
|
|
374
|
+
if (2 <= i.length) {
|
|
375
|
+
var r, a = i[1];
|
|
376
|
+
if (r = [], a)
|
|
377
|
+
for (var a = a.split(","), f = a.length, c = 0; c < f; c++) {
|
|
378
|
+
var h;
|
|
379
|
+
if (h = a[c], h.match(/^[\w-]+$/)) {
|
|
380
|
+
var u = Ct.exec(h.toLowerCase());
|
|
381
|
+
if (u == null)
|
|
382
|
+
h = "";
|
|
383
|
+
else {
|
|
384
|
+
if (h = u[2], h = h == null || h == "" ? "n" : Et[h], u = u[1], u == null || u == "")
|
|
385
|
+
u = "4";
|
|
386
|
+
else
|
|
387
|
+
var g = St[u], u = g || (isNaN(u) ? "4" : u.substr(0, 1));
|
|
388
|
+
h = [h, u].join("");
|
|
389
|
+
}
|
|
390
|
+
} else
|
|
391
|
+
h = "";
|
|
392
|
+
h && r.push(h);
|
|
393
|
+
}
|
|
394
|
+
0 < r.length && (s = r), i.length == 3 && (i = i[2], r = [], i = i ? i.split(",") : r, 0 < i.length && (i = Z[i[0]]) && (t.c[o] = i));
|
|
395
|
+
}
|
|
396
|
+
for (t.c[o] || (i = Z[o]) && (t.c[o] = i), i = 0; i < s.length; i += 1)
|
|
397
|
+
t.a.push(new p(o, s[i]));
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
function tt(t, n) {
|
|
401
|
+
this.c = t, this.a = n;
|
|
402
|
+
}
|
|
403
|
+
var bt = { Arimo: !0, Cousine: !0, Tinos: !0 };
|
|
404
|
+
tt.prototype.load = function(t) {
|
|
405
|
+
var n = new k(), e = this.c, i = new yt(this.a.api, this.a.text), o = this.a.families;
|
|
406
|
+
jt(i, o);
|
|
407
|
+
var s = new Tt(o);
|
|
408
|
+
At(s), B(e, _t(i), D(n)), L(n, function() {
|
|
409
|
+
t(s.a, s.c, bt);
|
|
410
|
+
});
|
|
411
|
+
};
|
|
412
|
+
function nt(t, n) {
|
|
413
|
+
this.c = t, this.a = n;
|
|
414
|
+
}
|
|
415
|
+
nt.prototype.load = function(t) {
|
|
416
|
+
var n = this.a.id, e = this.c.o;
|
|
417
|
+
n ? b(this.c, (this.a.api || "https://use.typekit.net") + "/" + n + ".js", function(i) {
|
|
418
|
+
if (i)
|
|
419
|
+
t([]);
|
|
420
|
+
else if (e.Typekit && e.Typekit.config && e.Typekit.config.fn) {
|
|
421
|
+
i = e.Typekit.config.fn;
|
|
422
|
+
for (var o = [], s = 0; s < i.length; s += 2)
|
|
423
|
+
for (var r = i[s], a = i[s + 1], f = 0; f < a.length; f++)
|
|
424
|
+
o.push(new p(r, a[f]));
|
|
425
|
+
try {
|
|
426
|
+
e.Typekit.load({ events: !1, classes: !1, async: !0 });
|
|
427
|
+
} catch {
|
|
428
|
+
}
|
|
429
|
+
t(o);
|
|
430
|
+
}
|
|
431
|
+
}, 2e3) : t([]);
|
|
432
|
+
};
|
|
433
|
+
function it(t, n) {
|
|
434
|
+
this.c = t, this.f = n, this.a = [];
|
|
435
|
+
}
|
|
436
|
+
it.prototype.load = function(t) {
|
|
437
|
+
var n = this.f.id, e = this.c.o, i = this;
|
|
438
|
+
n ? (e.__webfontfontdeckmodule__ || (e.__webfontfontdeckmodule__ = {}), e.__webfontfontdeckmodule__[n] = function(o, s) {
|
|
439
|
+
for (var r = 0, a = s.fonts.length; r < a; ++r) {
|
|
440
|
+
var f = s.fonts[r];
|
|
441
|
+
i.a.push(new p(f.name, ut("font-weight:" + f.weight + ";font-style:" + f.style)));
|
|
442
|
+
}
|
|
443
|
+
t(i.a);
|
|
444
|
+
}, b(this.c, (this.f.api || "https://f.fontdeck.com/s/css/js/") + ct(this.c) + "/" + n + ".js", function(o) {
|
|
445
|
+
o && t([]);
|
|
446
|
+
})) : t([]);
|
|
447
|
+
};
|
|
448
|
+
var m = new J(window);
|
|
449
|
+
m.a.c.custom = function(t, n) {
|
|
450
|
+
return new Y(n, t);
|
|
451
|
+
}, m.a.c.fontdeck = function(t, n) {
|
|
452
|
+
return new it(n, t);
|
|
453
|
+
}, m.a.c.monotype = function(t, n) {
|
|
454
|
+
return new Q(n, t);
|
|
455
|
+
}, m.a.c.typekit = function(t, n) {
|
|
456
|
+
return new nt(n, t);
|
|
457
|
+
}, m.a.c.google = function(t, n) {
|
|
458
|
+
return new tt(n, t);
|
|
459
|
+
};
|
|
460
|
+
var et = { load: v(m.load, m) };
|
|
461
|
+
O.exports ? O.exports = et : (window.WebFont = et, window.WebFontConfig && m.load(window.WebFontConfig));
|
|
462
|
+
})();
|
|
463
|
+
})(ot);
|
|
464
|
+
var Wt = ot.exports;
|
|
465
|
+
const Ot = /* @__PURE__ */ Ft(Wt), Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
466
|
+
__proto__: null,
|
|
467
|
+
default: Ot
|
|
468
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
469
|
+
export {
|
|
470
|
+
Pt as w
|
|
471
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { g as r } from "./basedecoder-Qm25PwVp-CHo5Pomv.js";
|
|
2
|
+
class d extends r {
|
|
3
|
+
constructor() {
|
|
4
|
+
if (super(), typeof createImageBitmap > "u")
|
|
5
|
+
throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");
|
|
6
|
+
if (typeof document > "u" && typeof OffscreenCanvas > "u")
|
|
7
|
+
throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available");
|
|
8
|
+
}
|
|
9
|
+
async decode(i, n) {
|
|
10
|
+
const o = new Blob([n]), e = await createImageBitmap(o);
|
|
11
|
+
let t;
|
|
12
|
+
typeof document < "u" ? (t = document.createElement("canvas"), t.width = e.width, t.height = e.height) : t = new OffscreenCanvas(e.width, e.height);
|
|
13
|
+
const a = t.getContext("2d");
|
|
14
|
+
return a.drawImage(e, 0, 0), a.getImageData(0, 0, e.width, e.height).data.buffer;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
d as default
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,65 +1,94 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eodash/eodash",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./core/types.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"core",
|
|
8
8
|
"bin",
|
|
9
|
-
"widgets"
|
|
9
|
+
"widgets",
|
|
10
|
+
"dist"
|
|
10
11
|
],
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
13
14
|
"types": "./core/types.d.ts",
|
|
14
15
|
"default": "./core/main.js"
|
|
15
|
-
}
|
|
16
|
+
},
|
|
17
|
+
"./config": {
|
|
18
|
+
"types": "./bin/types.d.ts",
|
|
19
|
+
"default": "./bin/main.js"
|
|
20
|
+
},
|
|
21
|
+
"./webcomponent": {
|
|
22
|
+
"types": "./core/asWebComponent.d.ts",
|
|
23
|
+
"default": "./dist/eo-dash.js"
|
|
24
|
+
},
|
|
25
|
+
"./webcomponent.css": "./dist/style.css"
|
|
16
26
|
},
|
|
17
27
|
"browser": "./core/main.js",
|
|
18
28
|
"scripts": {
|
|
19
|
-
"dev": "npx eodash dev",
|
|
20
|
-
"build": "npx eodash build",
|
|
29
|
+
"dev": "npx eodash dev --entryPoint core/eodash.js",
|
|
30
|
+
"build": "npx eodash build --entryPoint core/eodash.js",
|
|
31
|
+
"build:lib": "npx eodash build --entryPoint core/eodash.js --lib --outDir dist",
|
|
21
32
|
"check": "vue-tsc --noEmit --skipLibCheck && eslint .",
|
|
22
33
|
"check:lint": "eslint .",
|
|
23
34
|
"check:types": "vue-tsc --noEmit --skipLibCheck",
|
|
24
|
-
"preview": "
|
|
35
|
+
"preview": "npx eodash preview",
|
|
25
36
|
"lint": "eslint . --fix",
|
|
26
|
-
"
|
|
37
|
+
"cypress": "cypress open --component ",
|
|
38
|
+
"vitest": "vitest --isolate --ui",
|
|
39
|
+
"test": "npm run test:client && npm run test:cli",
|
|
40
|
+
"test:cli": "vitest run tests/cli --isolate",
|
|
41
|
+
"test:client": "cypress run --component",
|
|
42
|
+
"docs:dev": "vitepress dev docs --port 3333",
|
|
43
|
+
"docs:build": "npm run docs:generate && vitepress build docs",
|
|
44
|
+
"docs:preview": "vitepress preview docs",
|
|
45
|
+
"docs:generate": "typedoc --options typedoc.config.json"
|
|
27
46
|
},
|
|
28
47
|
"dependencies": {
|
|
48
|
+
"@eox/itemfilter": "^0.14.0",
|
|
29
49
|
"@eox/layout": "^0.1.0",
|
|
50
|
+
"@eox/map": "^1.4.0",
|
|
30
51
|
"@eox/stacinfo": "^0.3.0",
|
|
31
52
|
"@mdi/font": "7.0.96",
|
|
32
53
|
"@vitejs/plugin-vue": "^5.0.0",
|
|
33
54
|
"animated-details": "gist:2912bb049fa906671807415eb0e87188",
|
|
34
55
|
"axios": "^1.6.2",
|
|
56
|
+
"commander": "^12.0.0",
|
|
35
57
|
"core-js": "^3.29.0",
|
|
36
58
|
"pinia": "^2.0.0",
|
|
37
59
|
"sass": "^1.60.0",
|
|
60
|
+
"stac-js": "^0.0.9",
|
|
38
61
|
"stac-ts": "^1.0.3",
|
|
39
62
|
"vite": "^5.1.5",
|
|
40
|
-
"vite-plugin-virtual": "^0.3.0",
|
|
41
63
|
"vite-plugin-vuetify": "^2.0.0",
|
|
42
64
|
"vue": "^3.2.0",
|
|
43
|
-
"vue-router": "^4.0.0",
|
|
44
65
|
"vuetify": "^3.5.1",
|
|
45
66
|
"webfontloader": "^1.6.28"
|
|
46
67
|
},
|
|
47
68
|
"devDependencies": {
|
|
48
69
|
"@babel/types": "^7.21.4",
|
|
70
|
+
"@pinia/testing": "^0.1.3",
|
|
71
|
+
"@types/node": "latest",
|
|
49
72
|
"@types/openlayers": "^4.6.23",
|
|
50
73
|
"@types/webfontloader": "^1.6.38",
|
|
51
74
|
"@vue/eslint-config-typescript": "^11.0.0",
|
|
75
|
+
"cypress": "^13.6.6",
|
|
52
76
|
"eslint": "^8.56.0",
|
|
77
|
+
"eslint-plugin-cypress": "^2.15.1",
|
|
53
78
|
"eslint-plugin-vue": "^9.19.2",
|
|
79
|
+
"terminate": "^2.6.1",
|
|
54
80
|
"typedoc": "^0.25.7",
|
|
55
|
-
"typedoc-plugin-markdown": "^
|
|
81
|
+
"typedoc-plugin-markdown": "^4.0.0-next.54",
|
|
82
|
+
"typedoc-plugin-vue": "^1.1.0",
|
|
83
|
+
"typedoc-vitepress-theme": "^1.0.0-next.0",
|
|
56
84
|
"typescript": "^5.0.0",
|
|
57
85
|
"unplugin-fonts": "^1.0.3",
|
|
58
|
-
"
|
|
86
|
+
"vitepress": "^1.0.0",
|
|
87
|
+
"vitest": "^1.4.0",
|
|
59
88
|
"vue-eslint-parser": "^9.3.2",
|
|
60
89
|
"vue-tsc": "^1.2.0"
|
|
61
90
|
},
|
|
62
91
|
"bin": {
|
|
63
92
|
"eodash": "./bin/app.js"
|
|
64
93
|
}
|
|
65
|
-
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<span class="fill-height fill-width align-center justify-center">
|
|
3
|
+
<div v-if="inline" class="fill-height fill-width">
|
|
4
|
+
|
|
5
|
+
<v-text-field ref="inlineDatePicker" base-color="primary" class="fill-height fill-width pa-2 align-center"
|
|
6
|
+
type="date" bg-color="surface" color="primary" density="comfortable" label="Select Date" v-model="currentDate"
|
|
7
|
+
variant="plain" hide-details />
|
|
8
|
+
</div>
|
|
9
|
+
<v-date-picker v-else ref="datePicker" :width="width" :height="height" hide-header v-model="currentDate"
|
|
10
|
+
color="primary" bg-color="surface" location="center" class="overflow-auto fill-height fill-width"
|
|
11
|
+
position="relative" show-adjacent-months></v-date-picker>
|
|
12
|
+
</span>
|
|
13
|
+
</template>
|
|
14
|
+
<script setup>
|
|
15
|
+
import { computed, ref, onMounted } from "vue";
|
|
16
|
+
import { datetime } from "@/store/States"
|
|
17
|
+
|
|
18
|
+
const props = defineProps({
|
|
19
|
+
inline: {
|
|
20
|
+
type: Boolean
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
const currentDate = computed({
|
|
25
|
+
get() {
|
|
26
|
+
return props.inline ? datetime.value.split("T")[0] : new Date(datetime.value) ?? new Date()
|
|
27
|
+
},
|
|
28
|
+
/** @param {Date | string} updatedDate */
|
|
29
|
+
set(updatedDate) {
|
|
30
|
+
if (props.inline) {
|
|
31
|
+
updatedDate = new Date(updatedDate);
|
|
32
|
+
}
|
|
33
|
+
//@ts-expect-error
|
|
34
|
+
if (updatedDate instanceof Date && !isNaN(updatedDate)) {
|
|
35
|
+
datetime.value = new Date(updatedDate.getTime() - updatedDate.getTimezoneOffset() * 60000).toISOString()
|
|
36
|
+
} else {
|
|
37
|
+
datetime.value = new Date().toISOString()
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @type {import("vue").Ref<import("vuetify/components").VDatePicker | null>}
|
|
44
|
+
**/
|
|
45
|
+
const datePicker = ref(null)
|
|
46
|
+
/** @type {import("vue").Ref<string|undefined>} */
|
|
47
|
+
const width = ref()
|
|
48
|
+
/** @type {import("vue").Ref<string|undefined>} */
|
|
49
|
+
const height = ref()
|
|
50
|
+
onMounted(() => {
|
|
51
|
+
/** @type {HTMLElement} */
|
|
52
|
+
const parentEl = datePicker.value?.$el.parentElement?.parentElement
|
|
53
|
+
width.value = parentEl?.clientWidth ? parentEl.clientWidth + "px" : undefined
|
|
54
|
+
height.value = parentEl?.clientHeight ? parentEl.clientHeight + "px" : undefined
|
|
55
|
+
})
|
|
56
|
+
</script>
|