@eodash/eodash 5.0.0-alpha.2.1 → 5.0.0-alpha.2.11
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 +36 -3
- package/core/client/App.vue +26 -0
- package/core/client/SuspensedDashboard.ce.vue +105 -0
- package/core/client/asWebComponent.d.ts +23 -0
- package/core/client/asWebComponent.js +12 -0
- package/core/client/components/DashboardLayout.vue +77 -0
- package/core/client/components/DynamicWebComponent.vue +68 -0
- package/core/client/components/ErrorAlert.vue +36 -0
- package/core/{components → client/components}/Footer.vue +34 -15
- package/core/client/components/Header.vue +19 -0
- package/core/client/components/IframeWrapper.vue +11 -0
- package/core/client/components/Loading.vue +37 -0
- package/core/client/components/MobileLayout.vue +109 -0
- package/core/client/composables/DefineEodash.js +67 -0
- package/core/client/composables/DefineWidgets.js +161 -0
- package/core/client/composables/index.js +155 -0
- package/core/client/eodash.js +129 -0
- package/core/client/main.js +2 -0
- package/core/client/plugins/index.js +20 -0
- package/core/client/plugins/vuetify.js +35 -0
- package/core/client/render.js +12 -0
- package/core/client/store/Actions.js +38 -0
- package/core/client/store/States.js +24 -0
- package/core/client/store/index.js +20 -0
- package/core/client/store/stac.js +81 -0
- package/core/client/types.d.ts +287 -0
- package/core/client/utils/createLayers.js +131 -0
- package/core/client/utils/eodashSTAC.js +259 -0
- package/core/client/utils/helpers.js +152 -0
- package/core/client/utils/index.js +51 -0
- package/core/{utils → client/utils}/keys.js +2 -2
- package/core/client/views/Dashboard.vue +116 -0
- package/core/client/vite-env.d.ts +39 -0
- package/dist/client/DashboardLayout-D5c2wAGC.js +156 -0
- package/dist/{DynamicWebComponent-BrHVTesn.js → client/DynamicWebComponent-CBuMCUIj.js} +11 -11
- package/dist/client/EodashDatePicker-D0qdMMTE.js +252 -0
- package/dist/client/EodashItemFilter-CTRnGRRS.js +10067 -0
- package/dist/client/EodashLayerControl-Bpm0BwcW.js +31499 -0
- package/dist/client/EodashMap-DaMtQefq.js +114367 -0
- package/dist/client/EodashMapBtns-B5z8h8mr.js +50 -0
- package/dist/client/ExportState-Bp3n6gba.js +558 -0
- package/dist/client/Footer-BROOTKhV.js +115 -0
- package/dist/client/Header-C_fKVTsg.js +350 -0
- package/dist/{IframeWrapper-Dd9zrX9s.js → client/IframeWrapper-32Q3DBYr.js} +4 -4
- package/dist/client/MobileLayout-TVGrYpNT.js +945 -0
- package/dist/client/PopUp-BJzmeeKG.js +300 -0
- package/dist/client/VImg-BT4Vb0UT.js +291 -0
- package/dist/client/VMain-BDVUXNEk.js +39 -0
- package/dist/client/VOverlay-Ck_4Lxcb.js +972 -0
- package/dist/{WidgetsContainer-DxfCu0I3.js → client/WidgetsContainer-DjjX_n1U.js} +25 -18
- package/dist/client/asWebComponent-wn9bbgx9.js +20404 -0
- package/dist/{basedecoder-Qm25PwVp-CHo5Pomv.js → client/basedecoder-DHcBySSe-BmCFNFnw.js} +5 -6
- package/dist/{decoder-kAoyGIq9-BBR5CgzS.js → client/decoder-Cth6J7EK-CLlwAswr.js} +1 -1
- package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +10 -0
- package/dist/client/eo-dash.js +6 -0
- package/dist/client/eox-stacinfo-l7ALSV90.js +13969 -0
- package/dist/client/forwardRefs--PLRH8zp.js +185 -0
- package/dist/client/helpers-CoqJPYdE.js +1391 -0
- package/dist/{index-DTkOfh2g.js → client/index-Dt0NRXIq.js} +21 -20
- package/dist/{jpeg-DNfUpLwy-Fjan-04T.js → client/jpeg-BAgeD1d3-oeHbFPUL.js} +5 -6
- package/dist/{lerc-C9VL9kri-cIdbW0sg.js → client/lerc-BgbQqdFI-CCpDWUne.js} +37 -39
- package/dist/{lzw-BOMhmEDy-Dboc93VO.js → client/lzw-LAGDNbSC-DkP96qO9.js} +1 -1
- package/dist/{packbits-DaUD6MLm-Bu1PoTGa.js → client/packbits-BlDR4Kj5-C66n1-zr.js} +1 -1
- package/dist/{pako.esm-C3kYPGGQ-BMki8cQY.js → client/pako.esm-CB1uQYY0-DB0PYm1P.js} +6 -12
- package/dist/{raw-CcGKjn8q-DFOt-i8n.js → client/raw-CMGvRjfu-BRi6E4i1.js} +1 -1
- package/dist/{ssrBoot-D-b4-M19.js → client/ssrBoot-DjZDIkG_.js} +1 -1
- package/dist/client/style.css +5 -0
- package/dist/client/transition-C8OQt_kp.js +34 -0
- package/dist/{webfontloader-CyOFAuFB.js → client/webfontloader-qotgY98I.js} +56 -92
- package/dist/{webimage-D2c098k3-DLj1LQxB.js → client/webimage-BM_pbLN3-L2cGWK5l.js} +1 -1
- package/dist/node/cli.js +20 -0
- package/dist/node/main.js +2 -0
- package/dist/node/types.d.ts +47 -0
- package/package.json +57 -51
- package/widgets/EodashDatePicker.vue +146 -40
- package/widgets/EodashItemFilter.vue +81 -41
- package/widgets/EodashLayerControl.vue +16 -0
- package/widgets/EodashMap.vue +186 -42
- package/widgets/EodashMapBtns.vue +50 -0
- package/widgets/ExportState.vue +112 -0
- package/widgets/PopUp.vue +40 -0
- package/widgets/WidgetsContainer.vue +47 -27
- 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/types.d.ts +0 -52
- package/bin/utils.js +0 -103
- package/core/App.vue +0 -19
- package/core/SuspensedDashboard.ce.vue +0 -65
- package/core/asWebComponent.d.ts +0 -18
- package/core/asWebComponent.js +0 -12
- package/core/components/DashboardLayout.vue +0 -44
- package/core/components/DynamicWebComponent.vue +0 -68
- package/core/components/Header.vue +0 -14
- package/core/components/IframeWrapper.vue +0 -11
- package/core/components/Loading.vue +0 -27
- package/core/components/MobileLayout.vue +0 -49
- package/core/composables/DefineEodash.js +0 -57
- package/core/composables/DefineWidgets.js +0 -129
- package/core/composables/index.js +0 -219
- package/core/eodash.js +0 -100
- package/core/main.js +0 -2
- package/core/plugins/index.js +0 -18
- package/core/plugins/vuetify.js +0 -30
- package/core/render.js +0 -13
- package/core/store/Actions.js +0 -0
- package/core/store/States.js +0 -21
- package/core/store/index.js +0 -17
- package/core/store/stac.js +0 -63
- package/core/types.d.ts +0 -356
- package/core/utils/eodashSTAC.js +0 -164
- package/core/utils/helpers.js +0 -40
- package/core/utils/index.js +0 -28
- package/core/views/Dashboard.vue +0 -59
- package/core/vite-env.d.ts +0 -31
- package/dist/DashboardLayout-Dp8AnYD9.js +0 -141
- package/dist/EodashDatePicker-D_udZ26j.js +0 -1645
- package/dist/EodashItemFilter-BLAGx2UD.js +0 -51
- package/dist/EodashMap-Bxl_aqY2.js +0 -53405
- package/dist/Footer-AohCH8U7.js +0 -118
- package/dist/Header-DC50S6GR.js +0 -609
- 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/deflate-Be2Arps5-hDqMz3RA.js +0 -10
- package/dist/dimensions-CJaGeSrj.js +0 -53
- package/dist/eo-dash.js +0 -6
- package/dist/eox-itemfilter-DcQkRD2l.js +0 -7537
- package/dist/eox-map-BJ9SIixs.js +0 -36205
- package/dist/eox-stacinfo-B-YrT7Ug.js +0 -13698
- package/dist/forwardRefs-Bxeu9Obx.js +0 -142
- package/dist/index-Sa2Vg_gx.js +0 -65
- package/dist/style.css +0 -5
- /package/dist/{.gitkeep → client/.gitkeep} +0 -0
- /package/dist/{_commonjsHelpers-DaMA6jEr.js → client/_commonjsHelpers-DaMA6jEr.js} +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { p as m, ay as b, d, bh as l, ab as u } from "./asWebComponent-wn9bbgx9.js";
|
|
2
|
+
const j = m({
|
|
3
|
+
transition: {
|
|
4
|
+
type: [Boolean, String, Object],
|
|
5
|
+
default: "fade-transition",
|
|
6
|
+
validator: (o) => o !== !0
|
|
7
|
+
}
|
|
8
|
+
}, "transition"), T = (o, s) => {
|
|
9
|
+
let {
|
|
10
|
+
slots: e
|
|
11
|
+
} = s;
|
|
12
|
+
const {
|
|
13
|
+
transition: t,
|
|
14
|
+
disabled: n,
|
|
15
|
+
group: r,
|
|
16
|
+
...a
|
|
17
|
+
} = o, {
|
|
18
|
+
component: i = r ? l : u,
|
|
19
|
+
...p
|
|
20
|
+
} = typeof t == "object" ? t : {};
|
|
21
|
+
return b(i, d(typeof t == "string" ? {
|
|
22
|
+
name: n ? "" : t
|
|
23
|
+
} : p, typeof t == "string" ? {} : Object.fromEntries(Object.entries({
|
|
24
|
+
disabled: n,
|
|
25
|
+
group: r
|
|
26
|
+
}).filter((c) => {
|
|
27
|
+
let [y, f] = c;
|
|
28
|
+
return f !== void 0;
|
|
29
|
+
})), a), e);
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
T as M,
|
|
33
|
+
j as m
|
|
34
|
+
};
|
|
@@ -6,8 +6,7 @@ var ot = { exports: {} };
|
|
|
6
6
|
return t.call.apply(t.bind, arguments);
|
|
7
7
|
}
|
|
8
8
|
function rt(t, n, e) {
|
|
9
|
-
if (!t)
|
|
10
|
-
throw Error();
|
|
9
|
+
if (!t) throw Error();
|
|
11
10
|
if (2 < arguments.length) {
|
|
12
11
|
var i = Array.prototype.slice.call(arguments, 2);
|
|
13
12
|
return function() {
|
|
@@ -30,9 +29,7 @@ var ot = { exports: {} };
|
|
|
30
29
|
}
|
|
31
30
|
var ft = !!window.FontFace;
|
|
32
31
|
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]));
|
|
32
|
+
if (n = t.c.createElement(n), e) for (var o in e) e.hasOwnProperty(o) && (o == "style" ? n.style.cssText = e[o] : n.setAttribute(o, e[o]));
|
|
36
33
|
return i && n.appendChild(t.c.createTextNode(i)), n;
|
|
37
34
|
}
|
|
38
35
|
function I(t, n, e) {
|
|
@@ -44,27 +41,23 @@ var ot = { exports: {} };
|
|
|
44
41
|
function d(t, n, e) {
|
|
45
42
|
n = n || [], e = e || [];
|
|
46
43
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
44
|
+
for (var s = !1, r = 0; r < i.length; r += 1) if (n[o] === i[r]) {
|
|
45
|
+
s = !0;
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
52
48
|
s || i.push(n[o]);
|
|
53
49
|
}
|
|
54
50
|
for (n = [], o = 0; o < i.length; o += 1) {
|
|
55
|
-
for (s = !1, r = 0; r < e.length; r += 1)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
51
|
+
for (s = !1, r = 0; r < e.length; r += 1) if (i[o] === e[r]) {
|
|
52
|
+
s = !0;
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
60
55
|
s || n.push(i[o]);
|
|
61
56
|
}
|
|
62
57
|
t.className = n.join(" ").replace(/\s+/g, " ").replace(/^\s+|\s+$/, "");
|
|
63
58
|
}
|
|
64
59
|
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;
|
|
60
|
+
for (var e = t.className.split(/\s+/), i = 0, o = e.length; i < o; i++) if (e[i] == n) return !0;
|
|
68
61
|
return !1;
|
|
69
62
|
}
|
|
70
63
|
function ct(t) {
|
|
@@ -114,8 +107,7 @@ var ot = { exports: {} };
|
|
|
114
107
|
this.a = t || "-";
|
|
115
108
|
}
|
|
116
109
|
q.prototype.c = function(t) {
|
|
117
|
-
for (var n = [], e = 0; e < arguments.length; e++)
|
|
118
|
-
n.push(arguments[e].replace(/[\W_]+/g, "").toLowerCase());
|
|
110
|
+
for (var n = [], e = 0; e < arguments.length; e++) n.push(arguments[e].replace(/[\W_]+/g, "").toLowerCase());
|
|
119
111
|
return n.join(this.a);
|
|
120
112
|
};
|
|
121
113
|
function p(t, n) {
|
|
@@ -167,11 +159,10 @@ var ot = { exports: {} };
|
|
|
167
159
|
}
|
|
168
160
|
function vt(t, n, e) {
|
|
169
161
|
var i = [], o;
|
|
170
|
-
for (o in n)
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
162
|
+
for (o in n) if (n.hasOwnProperty(o)) {
|
|
163
|
+
var s = t.c[o];
|
|
164
|
+
s && i.push(s(n[o], e));
|
|
165
|
+
}
|
|
175
166
|
return i;
|
|
176
167
|
}
|
|
177
168
|
function _(t, n) {
|
|
@@ -220,9 +211,7 @@ var ot = { exports: {} };
|
|
|
220
211
|
this.f.serif = this.j.a.offsetWidth, this.f["sans-serif"] = this.m.a.offsetWidth, this.A = x(), V(this);
|
|
221
212
|
};
|
|
222
213
|
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;
|
|
214
|
+
for (var i in E) if (E.hasOwnProperty(i) && n === t.f[E[i]] && e === t.f[E[i]]) return !0;
|
|
226
215
|
return !1;
|
|
227
216
|
}
|
|
228
217
|
function V(t) {
|
|
@@ -267,23 +256,19 @@ var ot = { exports: {} };
|
|
|
267
256
|
var s = --t.h == 0;
|
|
268
257
|
(t.f || t.g) && setTimeout(function() {
|
|
269
258
|
var r = o || null, a = i || null || {};
|
|
270
|
-
if (e.length === 0 && s)
|
|
271
|
-
M(n.a);
|
|
259
|
+
if (e.length === 0 && s) M(n.a);
|
|
272
260
|
else {
|
|
273
261
|
n.f += e.length, s && (n.j = s);
|
|
274
262
|
var f, c = [];
|
|
275
263
|
for (f = 0; f < e.length; f++) {
|
|
276
264
|
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
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
} else
|
|
282
|
-
C = !1;
|
|
265
|
+
if (g.g && d(g.f, [g.a.c("wf", y.c, l(y).toString(), "loading")]), w(g, "fontloading", y), g = null, C === null) if (window.FontFace) {
|
|
266
|
+
var y = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), Nt = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
|
|
267
|
+
C = y ? 42 < parseInt(y[1], 10) : !Nt;
|
|
268
|
+
} else C = !1;
|
|
283
269
|
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
270
|
}
|
|
285
|
-
for (f = 0; f < c.length; f++)
|
|
286
|
-
c[f].start();
|
|
271
|
+
for (f = 0; f < c.length; f++) c[f].start();
|
|
287
272
|
}
|
|
288
273
|
}, 0);
|
|
289
274
|
}
|
|
@@ -291,10 +276,9 @@ var ot = { exports: {} };
|
|
|
291
276
|
var o = [], i = e.timeout;
|
|
292
277
|
pt(n);
|
|
293
278
|
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
|
-
|
|
296
|
-
|
|
297
|
-
});
|
|
279
|
+
for (t.h = o.length, n = 0, e = o.length; n < e; n++) o[n].load(function(r, a, f) {
|
|
280
|
+
dt(t, s, r, a, f);
|
|
281
|
+
});
|
|
298
282
|
}
|
|
299
283
|
function Q(t, n) {
|
|
300
284
|
this.c = t, this.a = n;
|
|
@@ -303,16 +287,14 @@ var ot = { exports: {} };
|
|
|
303
287
|
function n() {
|
|
304
288
|
if (s["__mti_fntLst" + i]) {
|
|
305
289
|
var r = s["__mti_fntLst" + i](), a = [], f;
|
|
306
|
-
if (r)
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}
|
|
290
|
+
if (r) for (var c = 0; c < r.length; c++) {
|
|
291
|
+
var h = r[c].fontfamily;
|
|
292
|
+
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));
|
|
293
|
+
}
|
|
311
294
|
t(a);
|
|
312
|
-
} else
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
}, 50);
|
|
295
|
+
} else setTimeout(function() {
|
|
296
|
+
n();
|
|
297
|
+
}, 50);
|
|
316
298
|
}
|
|
317
299
|
var e = this, i = e.a.projectId, o = e.a.version;
|
|
318
300
|
if (i) {
|
|
@@ -322,23 +304,17 @@ var ot = { exports: {} };
|
|
|
322
304
|
return e.a;
|
|
323
305
|
}, n());
|
|
324
306
|
}).id = "__MonotypeAPIScript__" + i;
|
|
325
|
-
} else
|
|
326
|
-
t([]);
|
|
307
|
+
} else t([]);
|
|
327
308
|
};
|
|
328
309
|
function Y(t, n) {
|
|
329
310
|
this.c = t, this.a = n;
|
|
330
311
|
}
|
|
331
312
|
Y.prototype.load = function(t) {
|
|
332
313
|
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));
|
|
314
|
+
for (n = 0, e = i.length; n < e; n++) B(this.c, i[n], D(r));
|
|
335
315
|
var a = [];
|
|
336
|
-
for (n = 0, e = o.length; n < e; n++)
|
|
337
|
-
|
|
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]));
|
|
316
|
+
for (n = 0, e = o.length; n < e; n++) if (i = o[n].split(":"), i[1]) for (var f = i[1].split(","), c = 0; c < f.length; c += 1) a.push(new p(i[0], f[c]));
|
|
317
|
+
else a.push(new p(i[0]));
|
|
342
318
|
L(r, function() {
|
|
343
319
|
t(a, s);
|
|
344
320
|
});
|
|
@@ -356,12 +332,9 @@ var ot = { exports: {} };
|
|
|
356
332
|
}
|
|
357
333
|
}
|
|
358
334
|
function _t(t) {
|
|
359
|
-
if (t.a.length == 0)
|
|
360
|
-
|
|
361
|
-
|
|
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, "+"));
|
|
335
|
+
if (t.a.length == 0) throw Error("No fonts to load!");
|
|
336
|
+
if (t.c.indexOf("kit=") != -1) return t.c;
|
|
337
|
+
for (var n = t.a.length, e = [], i = 0; i < n; i++) e.push(t.a[i].replace(/ /g, "+"));
|
|
365
338
|
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
339
|
}
|
|
367
340
|
function Tt(t) {
|
|
@@ -373,28 +346,22 @@ var ot = { exports: {} };
|
|
|
373
346
|
var i = t.f[e].split(":"), o = i[0].replace(/\+/g, " "), s = ["n4"];
|
|
374
347
|
if (2 <= i.length) {
|
|
375
348
|
var r, a = i[1];
|
|
376
|
-
if (r = [], a)
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
else
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
}
|
|
390
|
-
} else
|
|
391
|
-
h = "";
|
|
392
|
-
h && r.push(h);
|
|
393
|
-
}
|
|
349
|
+
if (r = [], a) for (var a = a.split(","), f = a.length, c = 0; c < f; c++) {
|
|
350
|
+
var h;
|
|
351
|
+
if (h = a[c], h.match(/^[\w-]+$/)) {
|
|
352
|
+
var u = Ct.exec(h.toLowerCase());
|
|
353
|
+
if (u == null) h = "";
|
|
354
|
+
else {
|
|
355
|
+
if (h = u[2], h = h == null || h == "" ? "n" : Et[h], u = u[1], u == null || u == "") u = "4";
|
|
356
|
+
else var g = St[u], u = g || (isNaN(u) ? "4" : u.substr(0, 1));
|
|
357
|
+
h = [h, u].join("");
|
|
358
|
+
}
|
|
359
|
+
} else h = "";
|
|
360
|
+
h && r.push(h);
|
|
361
|
+
}
|
|
394
362
|
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
363
|
}
|
|
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]));
|
|
364
|
+
for (t.c[o] || (i = Z[o]) && (t.c[o] = i), i = 0; i < s.length; i += 1) t.a.push(new p(o, s[i]));
|
|
398
365
|
}
|
|
399
366
|
}
|
|
400
367
|
function tt(t, n) {
|
|
@@ -415,13 +382,10 @@ var ot = { exports: {} };
|
|
|
415
382
|
nt.prototype.load = function(t) {
|
|
416
383
|
var n = this.a.id, e = this.c.o;
|
|
417
384
|
n ? b(this.c, (this.a.api || "https://use.typekit.net") + "/" + n + ".js", function(i) {
|
|
418
|
-
if (i)
|
|
419
|
-
t([]);
|
|
385
|
+
if (i) t([]);
|
|
420
386
|
else if (e.Typekit && e.Typekit.config && e.Typekit.config.fn) {
|
|
421
387
|
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]));
|
|
388
|
+
for (var o = [], s = 0; s < i.length; s += 2) for (var r = i[s], a = i[s + 1], f = 0; f < a.length; f++) o.push(new p(r, a[f]));
|
|
425
389
|
try {
|
|
426
390
|
e.Typekit.load({ events: !1, classes: !1, async: !0 });
|
|
427
391
|
} catch {
|
package/dist/node/cli.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{createLogger as P,defineConfig as C,searchForWorkspaceRoot as x,createServer as k,preview as S,build as F}from"vite";import{readFileSync as U,existsSync as u}from"fs";import t from"path";import{Command as E}from"commander";import{fileURLToPath as W}from"url";import{readFile as I,writeFile as T,rm as $,cp as L}from"fs/promises";import N from"@vitejs/plugin-vue";import O,{transformAssetUrls as A}from"vite-plugin-vuetify";const s=b(process.cwd()),h=new E("eodash"),H=JSON.parse(U(t.join(s,"package.json"),"utf-8"));h.version(H.version,"-v, --version","output the current version"),h.option("--publicDir <path>","path to statically served assets folder").option("--no-publicDir","stop serving static assets").option("--outDir <path>","minified output folder").option("-e, --entryPoint <path>","file exporting `createEodash`").option("-w, --widgets <path>","folder that contains vue components as internal widgets").option("--cacheDir <path>","cache folder").option("-r, --runtime <path>","file exporting eodash client runtime config").option("-b, --base <path>","base public path").option("-p, --port <port>","serving port").option("-o, --open","open default browser when the server starts").option("-c, --config <path>","path to eodash server and build configuration file").option("--host [IP address]","specify which IP addresses the server should listen on").option("-l, --lib","builds eodash as a web component library").option("--no-lib","builds eodash as an SPA").option("--no-host","do not expose server to the network").parse(process.argv);const i=await J(h.opts(),process.argv?.[2]),c=b(),R=i.publicDir?t.resolve(s,i.publicDir):t.join(s,"./public"),m=t.join(s,"/src"),l=i.runtime?t.resolve(s,i.runtime):t.join(m,"./runtime.js"),g=i.entryPoint?t.resolve(s,i.entryPoint):t.join(m,"/main.js"),w=i.widgets?t.resolve(s,i.widgets):t.join(m,"widgets"),j=t.join(s,"/.eodash"),f=i.outDir?t.resolve(s,i.outDir):t.join(j,"/dist"),z=i.cacheDir?t.resolve(s,i.cacheDir):t.join(j,"cache"),v=P(void 0,{prefix:"[eodash]"});async function J(e,n){let a=e.config?t.resolve(s,e.config):t.join(s,"eodash.config.js"),o={};return u(a)?o=await import(a).then(r=>r.default instanceof Function?r.default():r.default).catch(r=>{console.error(r)}):a=null,{base:e.base??o?.base,port:Number(e.port??o?.[n]?.port),host:e.host??o?.[n]?.host,open:e.open??o?.[n]?.open,cacheDir:e.cacheDir??o?.cacheDir,entryPoint:e.entryPoint??o?.entryPoint,outDir:e.outDir??o?.outDir,publicDir:e.publicDir??o?.publicDir,runtime:e.runtime??o?.runtime,widgets:e.widgets??o?.widgets,lib:e.lib??o?.lib}}function b(e=import.meta.dirname??t.dirname(W(import.meta.url))){if(e?.split("/").length)return u(t.resolve(e,"package.json"))?e:b(t.resolve(e,".."));throw new Error("no package root found from "+e)}const y=`
|
|
3
|
+
<!DOCTYPE html>
|
|
4
|
+
<html lang="en">
|
|
5
|
+
|
|
6
|
+
<head>
|
|
7
|
+
<meta charset="UTF-8" />
|
|
8
|
+
<link rel="icon" href="/favicon.ico" />
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
10
|
+
<title>Welcome to Eodash v5</title>
|
|
11
|
+
</head>
|
|
12
|
+
|
|
13
|
+
<body>
|
|
14
|
+
${i.lib?`<eo-dash style="height:100dvh;"/>
|
|
15
|
+
<script type="module" src="${t.resolve(`/@fs/${c}`,"core/client/asWebComponent.js")}"><\/script>
|
|
16
|
+
`:` <div id="app"/>
|
|
17
|
+
<script type="module" src="${t.resolve(`/@fs/${c}`,"core/client/render.js")}"><\/script>
|
|
18
|
+
`}
|
|
19
|
+
</body>
|
|
20
|
+
</html>`,D=C(({mode:e,command:n})=>({base:i.base??"",cacheDir:z,plugins:[N({customElement:!1,template:{transformAssetUrls:A,compilerOptions:{isCustomElement:a=>!a.includes("v-")&&a.includes("-")}}}),O({autoImport:!0}),e==="development"&&{name:"inject-html",configureServer:M}],customLogger:v,define:{"process.env":{}},resolve:{alias:{"@":t.join(c,"core/client"),"^":t.join(c,"widgets"),"user:config":g,"user:widgets":w},extensions:[".js",".json",".jsx",".mjs",".ts",".tsx",".vue"]},server:{warmup:{clientFiles:[t.join(c,"core/client/**")]},port:i.port??3e3,open:i.open,fs:{allow:[x(process.cwd())]},host:i.host},root:c,optimizeDeps:e==="development"?{include:["webfontloader","vuetify","vue","pinia","stac-js","urijs"],noDiscovery:!0}:{},publicDir:i.publicDir===!1?!1:R,build:{lib:i.lib&&n==="build"&&{entry:t.join(c,"core/client/asWebComponent.js"),fileName:"eo-dash",formats:["es"],name:"@eodash/eodash"},outDir:f,emptyOutDir:!0,rollupOptions:i.lib&&n==="build"?{input:t.join(c,"core/client/asWebComponent.js")}:void 0,target:"esnext"}}));async function M(e){e.watcher.add([g,l,t.join(w,"**/*.vue")]);let n="";const a=v.info;return v.info=(o,r)=>{if(o.includes("core")){const d=o.split("/")[0].split(" ");d.pop();const p=d.join(" ")+" "+n.replace(s,"");return a(p,r)}return a(o,r)},e.watcher.on("change",async o=>{n=o,o===l&&e.hot.send({type:"full-reload",path:o})}),()=>{e.middlewares.use(async(o,r,d)=>{if(o.originalUrl==="/@fs/config.js"||o.originalUrl==="/config.js"){r.statusCode=200,r.setHeader("Content-Type","text/javascript"),u(l)&&await I(l).then(p=>{r.write(p)}),r.end();return}if(o.url?.endsWith(".html")){r.statusCode=200,r.setHeader("Content-Type","text/html");const p=await e.transformIndexHtml(o.url,y,o.originalUrl);r.end(p);return}d()})}}const Y=async()=>{const e=await k(await D({mode:"development",command:"serve"}));await e.listen(),e.printUrls(),e.bindCLIShortcuts({print:!0})},B=async()=>{const e=async()=>{const n=await D({mode:"production",command:"build"});await F(n),u(l)&&await L(l,t.join(f,"config.js"),{recursive:!0}).catch(a=>{console.error(a)})};if(i.lib)await e();else{const n=t.join(c,"/index.html");await T(n,y).then(async()=>{await e(),await $(n).catch(()=>{console.error("failed to remove index.html")})})}};async function G(){(await S({root:s,base:i.base??"",preview:{port:isNaN(i.port)?8080:i.port,open:i.open,host:i.host},build:{outDir:f}})).printUrls()}const K=process.argv?.[2];(async()=>{switch(K){case"dev":await Y();break;case"build":await B();break;case"preview":await G();break;default:console.error("command not found");break}})();
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Eodash CLI configuration
|
|
3
|
+
*
|
|
4
|
+
* @group CLI
|
|
5
|
+
*/
|
|
6
|
+
export interface EodashConfig {
|
|
7
|
+
dev?: {
|
|
8
|
+
/** Serving port */
|
|
9
|
+
port?: string | number;
|
|
10
|
+
host?: string | boolean;
|
|
11
|
+
/** Open default browser when the server starts */
|
|
12
|
+
open?: boolean;
|
|
13
|
+
};
|
|
14
|
+
preview?: {
|
|
15
|
+
/** Serving port */
|
|
16
|
+
port?: string | number;
|
|
17
|
+
host?: string | boolean;
|
|
18
|
+
/** Open default browser when the server starts */
|
|
19
|
+
open?: boolean;
|
|
20
|
+
};
|
|
21
|
+
/** Base public path */
|
|
22
|
+
base?: string;
|
|
23
|
+
/** Build target folder path */
|
|
24
|
+
outDir?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Path to statically served assets folder, can be set to `false` to disable
|
|
27
|
+
* serving assets statically
|
|
28
|
+
*/
|
|
29
|
+
publicDir?: string | false;
|
|
30
|
+
/** Cache folder */
|
|
31
|
+
cacheDir?: string;
|
|
32
|
+
/** Specifies main entry file, exporting `createEodash` */
|
|
33
|
+
entryPoint?: string;
|
|
34
|
+
/** File exporting eodash client runtime config */
|
|
35
|
+
runtime?: string;
|
|
36
|
+
/** Set a custom path for importing user defined internal widgets */
|
|
37
|
+
widgets?: string;
|
|
38
|
+
/** Builds eodash as a web component library */
|
|
39
|
+
lib?: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Helper function that provides intellisense without the need for JSDOC for
|
|
43
|
+
* `eodash.config.js`:
|
|
44
|
+
*
|
|
45
|
+
* @group CLI
|
|
46
|
+
*/
|
|
47
|
+
export declare const defineConfig: (config: EodashConfig) => EodashConfig;
|
package/package.json
CHANGED
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eodash/eodash",
|
|
3
|
-
"version": "5.0.0-alpha.2.
|
|
3
|
+
"version": "5.0.0-alpha.2.11",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"types": "./core/types.d.ts",
|
|
5
|
+
"types": "./core/client/types.d.ts",
|
|
6
6
|
"files": [
|
|
7
|
-
"core",
|
|
8
|
-
"bin",
|
|
7
|
+
"core/client",
|
|
9
8
|
"widgets",
|
|
10
9
|
"dist"
|
|
11
10
|
],
|
|
12
11
|
"exports": {
|
|
13
12
|
".": {
|
|
14
|
-
"types": "./core/types.d.ts",
|
|
15
|
-
"default": "./core/main.js"
|
|
16
|
-
},
|
|
17
|
-
"./config": {
|
|
18
|
-
"types": "./bin/types.d.ts",
|
|
19
|
-
"default": "./bin/main.js"
|
|
13
|
+
"types": "./core/client/types.d.ts",
|
|
14
|
+
"default": "./core/client/main.js"
|
|
20
15
|
},
|
|
21
16
|
"./webcomponent": {
|
|
22
|
-
"types": "./core/asWebComponent.d.ts",
|
|
23
|
-
"default": "./dist/eo-dash.js"
|
|
17
|
+
"types": "./core/client/asWebComponent.d.ts",
|
|
18
|
+
"default": "./dist/client/eo-dash.js"
|
|
24
19
|
},
|
|
25
|
-
"./webcomponent.css": "./dist/style.css"
|
|
20
|
+
"./webcomponent.css": "./dist/client/style.css",
|
|
21
|
+
"./config": {
|
|
22
|
+
"types": "./dist/node/types.d.ts",
|
|
23
|
+
"default": "./dist/node/main.js"
|
|
24
|
+
}
|
|
26
25
|
},
|
|
27
|
-
"browser": "./core/main.js",
|
|
26
|
+
"browser": "./core/client/main.js",
|
|
28
27
|
"scripts": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
28
|
+
"prepare": "rollup -c",
|
|
29
|
+
"prepack": "npm run build:lib",
|
|
30
|
+
"dev": "npx eodash dev --entryPoint core/client/eodash.js",
|
|
31
|
+
"build": "npx eodash build --entryPoint core/client/eodash.js",
|
|
32
|
+
"build:lib": "npx eodash build --entryPoint core/client/eodash.js --lib --outDir dist/client",
|
|
33
|
+
"build:cli": "rollup -c",
|
|
32
34
|
"check": "vue-tsc --noEmit --skipLibCheck && eslint .",
|
|
33
|
-
"
|
|
34
|
-
"check:types": "vue-tsc --noEmit --skipLibCheck",
|
|
35
|
+
"format": "prettier . --write --ignore-unknown",
|
|
35
36
|
"preview": "npx eodash preview",
|
|
36
37
|
"lint": "eslint . --fix",
|
|
37
38
|
"cypress": "cypress open --component ",
|
|
@@ -45,50 +46,55 @@
|
|
|
45
46
|
"docs:generate": "typedoc --options typedoc.config.json"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"@eox/itemfilter": "^0.
|
|
49
|
+
"@eox/itemfilter": "^1.0.0",
|
|
50
|
+
"@eox/jsonform": "^0.8.1",
|
|
51
|
+
"@eox/layercontrol": "^0.18.1-dev.1721833788.0",
|
|
49
52
|
"@eox/layout": "^0.1.0",
|
|
50
|
-
"@eox/map": "
|
|
51
|
-
"@eox/stacinfo": "^0.3.
|
|
52
|
-
"@mdi/
|
|
53
|
-
"@vitejs/plugin-vue": "^5.0.
|
|
53
|
+
"@eox/map": "1.9.3-ol-9.2.5-dev.1719634408469.0",
|
|
54
|
+
"@eox/stacinfo": "^0.3.3",
|
|
55
|
+
"@mdi/js": "^7.4.47",
|
|
56
|
+
"@vitejs/plugin-vue": "^5.0.5",
|
|
54
57
|
"animated-details": "gist:2912bb049fa906671807415eb0e87188",
|
|
55
|
-
"axios": "^1.
|
|
56
|
-
"commander": "^12.
|
|
57
|
-
"core-js": "^3.
|
|
58
|
-
"pinia": "^2.
|
|
59
|
-
"sass": "^1.
|
|
58
|
+
"axios": "^1.7.2",
|
|
59
|
+
"commander": "^12.1.0",
|
|
60
|
+
"core-js": "^3.37.1",
|
|
61
|
+
"pinia": "^2.1.7",
|
|
62
|
+
"sass": "^1.77.7",
|
|
60
63
|
"stac-js": "^0.0.9",
|
|
61
64
|
"stac-ts": "^1.0.3",
|
|
62
|
-
"
|
|
63
|
-
"vite
|
|
65
|
+
"v-calendar": "^3.1.2",
|
|
66
|
+
"vite": "^5.3.3",
|
|
67
|
+
"vite-plugin-vuetify": "^2.0.3",
|
|
64
68
|
"vue": "^3.2.0",
|
|
65
|
-
"vuetify": "^3.
|
|
69
|
+
"vuetify": "^3.6.12",
|
|
66
70
|
"webfontloader": "^1.6.28"
|
|
67
71
|
},
|
|
68
72
|
"devDependencies": {
|
|
69
|
-
"@babel/types": "^7.
|
|
73
|
+
"@babel/types": "^7.24.7",
|
|
74
|
+
"@eox/eslint-config": "^2.0.0",
|
|
70
75
|
"@pinia/testing": "^0.1.3",
|
|
71
76
|
"@types/node": "latest",
|
|
72
77
|
"@types/openlayers": "^4.6.23",
|
|
73
78
|
"@types/webfontloader": "^1.6.38",
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"eslint": "^
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"typedoc": "^
|
|
81
|
-
"typedoc-plugin-
|
|
82
|
-
"typedoc-
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
79
|
+
"cypress": "^13.13.0",
|
|
80
|
+
"eslint": "^9.6.0",
|
|
81
|
+
"eslint-plugin-vue": "^9.27.0",
|
|
82
|
+
"prettier": "^3.3.2",
|
|
83
|
+
"terminate": "^2.8.0",
|
|
84
|
+
"typedoc": "^0.26.4",
|
|
85
|
+
"typedoc-plugin-markdown": "^4.2.0",
|
|
86
|
+
"typedoc-plugin-vue": "^1.2.0",
|
|
87
|
+
"typedoc-vitepress-theme": "^1.0.1",
|
|
88
|
+
"typescript": "^5.5.3",
|
|
89
|
+
"unplugin-fonts": "^1.1.1",
|
|
90
|
+
"vitepress": "^1.3.0",
|
|
91
|
+
"vitest": "^1.6.0",
|
|
92
|
+
"vue-tsc": "2.0.22"
|
|
93
|
+
},
|
|
94
|
+
"engines": {
|
|
95
|
+
"node": ">=20.15.1"
|
|
90
96
|
},
|
|
91
97
|
"bin": {
|
|
92
|
-
"eodash": "./
|
|
98
|
+
"eodash": "./dist/node/cli.js"
|
|
93
99
|
}
|
|
94
|
-
}
|
|
100
|
+
}
|