@eodash/eodash 5.0.0-alpha.2.9 → 5.0.0-processing

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.
Files changed (137) hide show
  1. package/README.md +1 -1
  2. package/core/client/App.vue +13 -1
  3. package/core/client/asWebComponent.js +13 -3
  4. package/core/client/components/DashboardLayout.vue +6 -2
  5. package/core/client/composables/DefineEodash.js +1 -1
  6. package/core/client/composables/EodashMap.js +349 -0
  7. package/core/client/composables/EodashProcess.js +575 -0
  8. package/core/client/composables/index.js +107 -24
  9. package/core/client/eodash.js +83 -10
  10. package/core/client/plugins/axios.js +8 -0
  11. package/core/client/plugins/index.js +2 -1
  12. package/core/client/store/Actions.js +63 -12
  13. package/core/client/store/States.js +19 -0
  14. package/core/client/store/stac.js +98 -8
  15. package/core/client/types.d.ts +25 -18
  16. package/core/client/utils/createLayers.js +313 -0
  17. package/core/client/utils/eodashSTAC.js +320 -170
  18. package/core/client/utils/helpers.js +369 -9
  19. package/core/client/utils/keys.js +2 -0
  20. package/core/client/utils/states.js +17 -0
  21. package/core/client/views/Dashboard.vue +17 -46
  22. package/core/client/vite-env.d.ts +1 -9
  23. package/dist/client/DashboardLayout-CVMJ4l8M.js +87 -0
  24. package/dist/client/DynamicWebComponent-Cv8n457T.js +88 -0
  25. package/dist/client/EodashDatePicker-VVkiPmpc.js +394 -0
  26. package/dist/client/EodashItemFilter-CugWNQ86.js +194 -0
  27. package/dist/client/EodashLayerControl-53WghA8G.js +110 -0
  28. package/dist/client/EodashMap-CQnOePpy.js +486 -0
  29. package/dist/client/EodashMapBtns-uaRwFtfB.js +66 -0
  30. package/dist/client/EodashProcess-cF0unIy8.js +1477 -0
  31. package/dist/client/ExportState-BT8MLAW7.js +644 -0
  32. package/dist/client/Footer-C6GUG84G.js +141 -0
  33. package/dist/client/Header-D2dtCWp8.js +437 -0
  34. package/dist/client/IframeWrapper-BgM9aU8f.js +28 -0
  35. package/dist/client/MobileLayout-BAo8Wr8T.js +1210 -0
  36. package/dist/client/PopUp-Bm01q7Ko.js +389 -0
  37. package/dist/client/VImg-B8AbetCE.js +384 -0
  38. package/dist/client/VMain-DnGlQUyr.js +43 -0
  39. package/dist/client/VOverlay-B8Qj7LRG.js +1453 -0
  40. package/dist/client/WidgetsContainer-CwXRRLS1.js +83 -0
  41. package/dist/client/asWebComponent-DUUoR7MZ.js +11621 -0
  42. package/dist/client/eo-dash.js +2 -6
  43. package/dist/client/forwardRefs-CZJhEAKW.js +245 -0
  44. package/dist/client/index-DlIO7sJ3.js +199 -0
  45. package/dist/client/ssrBoot-BP7SYRyC.js +22 -0
  46. package/dist/client/style.css +2 -2
  47. package/dist/client/transition-BiR8wMn1.js +37 -0
  48. package/dist/node/cli.js +4 -4
  49. package/dist/node/types.d.ts +2 -0
  50. package/dist/types/core/client/App.vue.d.ts +7 -0
  51. package/dist/types/core/client/asWebComponent.d.ts +9 -0
  52. package/dist/types/core/client/components/DashboardLayout.vue.d.ts +2 -0
  53. package/dist/types/core/client/components/DynamicWebComponent.vue.d.ts +18 -0
  54. package/dist/types/core/client/components/ErrorAlert.vue.d.ts +2 -0
  55. package/dist/types/core/client/components/Footer.vue.d.ts +2 -0
  56. package/dist/types/core/client/components/Header.vue.d.ts +2 -0
  57. package/dist/types/core/client/components/IframeWrapper.vue.d.ts +7 -0
  58. package/dist/types/core/client/components/Loading.vue.d.ts +2 -0
  59. package/dist/types/core/client/components/MobileLayout.vue.d.ts +2 -0
  60. package/dist/types/core/client/composables/DefineEodash.d.ts +2 -0
  61. package/dist/types/core/client/composables/DefineTemplate.d.ts +15 -0
  62. package/dist/types/core/client/composables/DefineWidgets.d.ts +14 -0
  63. package/dist/types/core/client/composables/EodashMap.d.ts +5 -0
  64. package/dist/types/core/client/composables/index.d.ts +30 -0
  65. package/dist/types/core/client/eodash.d.ts +8 -0
  66. package/dist/types/core/client/main.d.ts +2 -0
  67. package/dist/types/core/client/plugins/axios.d.ts +2 -0
  68. package/dist/types/core/client/plugins/index.d.ts +3 -0
  69. package/dist/types/core/client/plugins/vuetify.d.ts +82 -0
  70. package/dist/types/core/client/render.d.ts +1 -0
  71. package/dist/types/core/client/store/Actions.d.ts +12 -0
  72. package/dist/types/core/client/store/States.d.ts +22 -0
  73. package/dist/types/core/client/store/index.d.ts +2 -0
  74. package/dist/types/core/client/store/stac.d.ts +25 -0
  75. package/dist/types/core/client/types.d.ts +279 -0
  76. package/dist/types/core/client/utils/createLayers.d.ts +45 -0
  77. package/dist/types/core/client/utils/eodashSTAC.d.ts +82 -0
  78. package/dist/types/core/client/utils/helpers.d.ts +84 -0
  79. package/dist/types/core/client/utils/index.d.ts +2 -0
  80. package/dist/types/core/client/utils/keys.d.ts +6 -0
  81. package/dist/types/core/client/utils/states.d.ts +14 -0
  82. package/dist/types/core/client/views/Dashboard.vue.d.ts +9 -0
  83. package/dist/types/widgets/EodashDatePicker.vue.d.ts +7 -0
  84. package/dist/types/widgets/EodashItemFilter.vue.d.ts +42 -0
  85. package/dist/types/widgets/EodashLayerControl.vue.d.ts +11 -0
  86. package/dist/types/widgets/EodashLayoutSwitcher.vue.d.ts +9 -0
  87. package/dist/types/widgets/EodashMap.vue.d.ts +7 -0
  88. package/dist/types/widgets/EodashMapBtns.vue.d.ts +11 -0
  89. package/dist/types/widgets/EodashStacInfo.vue.d.ts +21 -0
  90. package/dist/types/widgets/EodashTools.vue.d.ts +15 -0
  91. package/dist/types/widgets/ExportState.vue.d.ts +7 -0
  92. package/dist/types/widgets/PopUp.vue.d.ts +22 -0
  93. package/dist/types/widgets/WidgetsContainer.vue.d.ts +7 -0
  94. package/package.json +58 -37
  95. package/widgets/EodashDatePicker.vue +128 -100
  96. package/widgets/EodashItemFilter.vue +100 -14
  97. package/widgets/EodashLayerControl.vue +98 -0
  98. package/widgets/EodashMap.vue +98 -122
  99. package/widgets/EodashMapBtns.vue +24 -7
  100. package/widgets/EodashProcess.vue +151 -0
  101. package/widgets/ExportState.vue +15 -11
  102. package/core/client/SuspensedDashboard.ce.vue +0 -105
  103. package/dist/client/DashboardLayout-D0ZF6V2S.js +0 -156
  104. package/dist/client/DynamicWebComponent-CPsMSBHi.js +0 -57
  105. package/dist/client/EodashDatePicker-CBQP7u2X.js +0 -252
  106. package/dist/client/EodashItemFilter-DL2ScI-5.js +0 -7671
  107. package/dist/client/EodashMap-CkKoQlmR.js +0 -86917
  108. package/dist/client/EodashMapBtns-yuO2QmiR.js +0 -36
  109. package/dist/client/ExportState-CCzOhppU.js +0 -558
  110. package/dist/client/Footer-BPAND0yG.js +0 -115
  111. package/dist/client/Header-DLhebNvG.js +0 -350
  112. package/dist/client/IframeWrapper-1GEMHlsW.js +0 -19
  113. package/dist/client/MobileLayout-mGkOYRhu.js +0 -945
  114. package/dist/client/PopUp-1d2bBFjw.js +0 -300
  115. package/dist/client/VImg-DxHcztfM.js +0 -291
  116. package/dist/client/VMain-BLX5vRRn.js +0 -39
  117. package/dist/client/VOverlay-CvrYEmLu.js +0 -967
  118. package/dist/client/WidgetsContainer-CmYjvGm7.js +0 -129
  119. package/dist/client/_commonjsHelpers-DaMA6jEr.js +0 -8
  120. package/dist/client/asWebComponent-B91uK0U7.js +0 -20361
  121. package/dist/client/basedecoder-DHcBySSe-BmCFNFnw.js +0 -88
  122. package/dist/client/decoder-CP4lv0Kb-B6yqkcfC.js +0 -10
  123. package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +0 -10
  124. package/dist/client/eodashSTAC-DBjqe_Ho.js +0 -2788
  125. package/dist/client/eox-stacinfo-l7ALSV90.js +0 -13969
  126. package/dist/client/forwardRefs-BJJiadQP.js +0 -185
  127. package/dist/client/index-Q-bHLjxx.js +0 -153
  128. package/dist/client/jpeg-BAgeD1d3-oeHbFPUL.js +0 -514
  129. package/dist/client/lerc-DzVumYtB-P-KXC0TO.js +0 -1027
  130. package/dist/client/lzw-LAGDNbSC-DkP96qO9.js +0 -84
  131. package/dist/client/packbits-BlDR4Kj5-C66n1-zr.js +0 -24
  132. package/dist/client/pako.esm-CB1uQYY0-DB0PYm1P.js +0 -1081
  133. package/dist/client/raw-CMGvRjfu-BRi6E4i1.js +0 -9
  134. package/dist/client/ssrBoot-yo11mybw.js +0 -17
  135. package/dist/client/transition-CSJhuYGK.js +0 -34
  136. package/dist/client/webfontloader-qotgY98I.js +0 -435
  137. package/dist/client/webimage-BM_pbLN3-L2cGWK5l.js +0 -19
@@ -1,350 +0,0 @@
1
- import { p as V, e as I, f as N, g as _, a as p, b as o, ae as $, af as q, ag as z, h as F, Q as K, R as k, ah as O, ai as Q, aj as Y, i as Z, j as G, s as y, c as n, S as J, ak as B, C as x, r as R, al as X, w as T, Z as ee, am as te, an as ae, ao as le, y as oe, ap as se, aq as ne, ar as re, d as E, _ as ue, x as ie, W as ce, $ as de, a0 as ve, a1 as P, a8 as me, aa as ge, a3 as w } from "./asWebComponent-B91uK0U7.js";
2
- import { V as A } from "./VImg-DxHcztfM.js";
3
- import { a as fe } from "./index-Q-bHLjxx.js";
4
- import { u as he } from "./ssrBoot-yo11mybw.js";
5
- const L = V({
6
- text: String,
7
- ...I(),
8
- ...N()
9
- }, "VToolbarTitle"), U = _()({
10
- name: "VToolbarTitle",
11
- props: L(),
12
- setup(e, r) {
13
- let {
14
- slots: t
15
- } = r;
16
- return p(() => {
17
- const d = !!(t.default || t.text || e.text);
18
- return o(e.tag, {
19
- class: ["v-toolbar-title", e.class],
20
- style: e.style
21
- }, {
22
- default: () => [d && o("div", {
23
- class: "v-toolbar-title__placeholder"
24
- }, [t.text ? t.text() : e.text, t.default?.()])]
25
- });
26
- }), {};
27
- }
28
- }), be = [null, "prominent", "default", "comfortable", "compact"], D = V({
29
- absolute: Boolean,
30
- collapse: Boolean,
31
- color: String,
32
- density: {
33
- type: String,
34
- default: "default",
35
- validator: (e) => be.includes(e)
36
- },
37
- extended: Boolean,
38
- extensionHeight: {
39
- type: [Number, String],
40
- default: 48
41
- },
42
- flat: Boolean,
43
- floating: Boolean,
44
- height: {
45
- type: [Number, String],
46
- default: 64
47
- },
48
- image: String,
49
- title: String,
50
- ...$(),
51
- ...I(),
52
- ...q(),
53
- ...z(),
54
- ...N({
55
- tag: "header"
56
- }),
57
- ...F()
58
- }, "VToolbar"), C = _()({
59
- name: "VToolbar",
60
- props: D(),
61
- setup(e, r) {
62
- let {
63
- slots: t
64
- } = r;
65
- const {
66
- backgroundColorClasses: d,
67
- backgroundColorStyles: u
68
- } = K(k(e, "color")), {
69
- borderClasses: a
70
- } = O(e), {
71
- elevationClasses: v
72
- } = Q(e), {
73
- roundedClasses: i
74
- } = Y(e), {
75
- themeClasses: f
76
- } = Z(e), {
77
- rtlClasses: S
78
- } = G(), c = y(!!(e.extended || t.extension?.())), m = n(() => parseInt(Number(e.height) + (e.density === "prominent" ? Number(e.height) : 0) - (e.density === "comfortable" ? 8 : 0) - (e.density === "compact" ? 16 : 0), 10)), b = n(() => c.value ? parseInt(Number(e.extensionHeight) + (e.density === "prominent" ? Number(e.extensionHeight) : 0) - (e.density === "comfortable" ? 4 : 0) - (e.density === "compact" ? 8 : 0), 10) : 0);
79
- return J({
80
- VBtn: {
81
- variant: "text"
82
- }
83
- }), p(() => {
84
- const h = !!(e.title || t.title), s = !!(t.image || e.image), g = t.extension?.();
85
- return c.value = !!(e.extended || g), o(e.tag, {
86
- class: ["v-toolbar", {
87
- "v-toolbar--absolute": e.absolute,
88
- "v-toolbar--collapse": e.collapse,
89
- "v-toolbar--flat": e.flat,
90
- "v-toolbar--floating": e.floating,
91
- [`v-toolbar--density-${e.density}`]: !0
92
- }, d.value, a.value, v.value, i.value, f.value, S.value, e.class],
93
- style: [u.value, e.style]
94
- }, {
95
- default: () => [s && o("div", {
96
- key: "image",
97
- class: "v-toolbar__image"
98
- }, [t.image ? o(B, {
99
- key: "image-defaults",
100
- disabled: !e.image,
101
- defaults: {
102
- VImg: {
103
- cover: !0,
104
- src: e.image
105
- }
106
- }
107
- }, t.image) : o(A, {
108
- key: "image-img",
109
- cover: !0,
110
- src: e.image
111
- }, null)]), o(B, {
112
- defaults: {
113
- VTabs: {
114
- height: x(m.value)
115
- }
116
- }
117
- }, {
118
- default: () => [o("div", {
119
- class: "v-toolbar__content",
120
- style: {
121
- height: x(m.value)
122
- }
123
- }, [t.prepend && o("div", {
124
- class: "v-toolbar__prepend"
125
- }, [t.prepend?.()]), h && o(U, {
126
- key: "title",
127
- text: e.title
128
- }, {
129
- text: t.title
130
- }), t.default?.(), t.append && o("div", {
131
- class: "v-toolbar__append"
132
- }, [t.append?.()])])]
133
- }), o(B, {
134
- defaults: {
135
- VTabs: {
136
- height: x(b.value)
137
- }
138
- }
139
- }, {
140
- default: () => [o(fe, null, {
141
- default: () => [c.value && o("div", {
142
- class: "v-toolbar__extension",
143
- style: {
144
- height: x(b.value)
145
- }
146
- }, [g])]
147
- })]
148
- })]
149
- });
150
- }), {
151
- contentHeight: m,
152
- extensionHeight: b
153
- };
154
- }
155
- }), ye = V({
156
- scrollTarget: {
157
- type: String
158
- },
159
- scrollThreshold: {
160
- type: [String, Number],
161
- default: 300
162
- }
163
- }, "scroll");
164
- function Se(e) {
165
- let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
166
- const {
167
- canScroll: t
168
- } = r;
169
- let d = 0, u = 0;
170
- const a = R(null), v = y(0), i = y(0), f = y(0), S = y(!1), c = y(!1), m = n(() => Number(e.scrollThreshold)), b = n(() => X((m.value - v.value) / m.value || 0)), h = () => {
171
- const s = a.value;
172
- if (!s || t && !t.value) return;
173
- d = v.value, v.value = "window" in s ? s.pageYOffset : s.scrollTop;
174
- const g = s instanceof Window ? document.documentElement.scrollHeight : s.scrollHeight;
175
- if (u !== g) {
176
- u = g;
177
- return;
178
- }
179
- c.value = v.value < d, f.value = Math.abs(v.value - m.value);
180
- };
181
- return T(c, () => {
182
- i.value = i.value || v.value;
183
- }), T(S, () => {
184
- i.value = 0;
185
- }), ee(() => {
186
- T(() => e.scrollTarget, (s) => {
187
- const g = s ? document.querySelector(s) : window;
188
- if (!g) {
189
- te(`Unable to locate element with identifier ${s}`);
190
- return;
191
- }
192
- g !== a.value && (a.value?.removeEventListener("scroll", h), a.value = g, a.value.addEventListener("scroll", h, {
193
- passive: !0
194
- }));
195
- }, {
196
- immediate: !0
197
- });
198
- }), ae(() => {
199
- a.value?.removeEventListener("scroll", h);
200
- }), t && T(t, h, {
201
- immediate: !0
202
- }), {
203
- scrollThreshold: m,
204
- currentScroll: v,
205
- currentThreshold: f,
206
- isScrollActive: S,
207
- scrollRatio: b,
208
- // required only for testing
209
- // probably can be removed
210
- // later (2 chars chlng)
211
- isScrollingUp: c,
212
- savedScroll: i
213
- };
214
- }
215
- const xe = V({
216
- scrollBehavior: String,
217
- modelValue: {
218
- type: Boolean,
219
- default: !0
220
- },
221
- location: {
222
- type: String,
223
- default: "top",
224
- validator: (e) => ["top", "bottom"].includes(e)
225
- },
226
- ...D(),
227
- ...le(),
228
- ...ye(),
229
- height: {
230
- type: [Number, String],
231
- default: 64
232
- }
233
- }, "VAppBar"), Te = _()({
234
- name: "VAppBar",
235
- props: xe(),
236
- emits: {
237
- "update:modelValue": (e) => !0
238
- },
239
- setup(e, r) {
240
- let {
241
- slots: t
242
- } = r;
243
- const d = R(), u = oe(e, "modelValue"), a = n(() => {
244
- const l = new Set(e.scrollBehavior?.split(" ") ?? []);
245
- return {
246
- hide: l.has("hide"),
247
- fullyHide: l.has("fully-hide"),
248
- inverted: l.has("inverted"),
249
- collapse: l.has("collapse"),
250
- elevate: l.has("elevate"),
251
- fadeImage: l.has("fade-image")
252
- // shrink: behavior.has('shrink'),
253
- };
254
- }), v = n(() => {
255
- const l = a.value;
256
- return l.hide || l.fullyHide || l.inverted || l.collapse || l.elevate || l.fadeImage || // behavior.shrink ||
257
- !u.value;
258
- }), {
259
- currentScroll: i,
260
- scrollThreshold: f,
261
- isScrollingUp: S,
262
- scrollRatio: c
263
- } = Se(e, {
264
- canScroll: v
265
- }), m = n(() => a.value.hide || a.value.fullyHide), b = n(() => e.collapse || a.value.collapse && (a.value.inverted ? c.value > 0 : c.value === 0)), h = n(() => e.flat || a.value.fullyHide && !u.value || a.value.elevate && (a.value.inverted ? i.value > 0 : i.value === 0)), s = n(() => a.value.fadeImage ? a.value.inverted ? 1 - c.value : c.value : void 0), g = n(() => {
266
- const l = Number(d.value?.contentHeight ?? e.height), H = Number(d.value?.extensionHeight ?? 0);
267
- return m.value ? i.value < f.value || a.value.fullyHide ? l + H : l : l + H;
268
- });
269
- se(n(() => !!e.scrollBehavior), () => {
270
- ne(() => {
271
- m.value ? a.value.inverted ? u.value = i.value > f.value : u.value = S.value || i.value < f.value : u.value = !0;
272
- });
273
- });
274
- const {
275
- ssrBootStyles: j
276
- } = he(), {
277
- layoutItemStyles: M,
278
- layoutIsReady: W
279
- } = re({
280
- id: e.name,
281
- order: n(() => parseInt(e.order, 10)),
282
- position: k(e, "location"),
283
- layoutSize: g,
284
- elementSize: y(void 0),
285
- active: u,
286
- absolute: k(e, "absolute")
287
- });
288
- return p(() => {
289
- const l = C.filterProps(e);
290
- return o(C, E({
291
- ref: d,
292
- class: ["v-app-bar", {
293
- "v-app-bar--bottom": e.location === "bottom"
294
- }, e.class],
295
- style: [{
296
- ...M.value,
297
- "--v-toolbar-image-opacity": s.value,
298
- height: void 0,
299
- ...j.value
300
- }, e.style]
301
- }, l, {
302
- collapse: b.value,
303
- flat: h.value
304
- }), t);
305
- }), W;
306
- }
307
- }), Ve = _()({
308
- name: "VAppBarTitle",
309
- props: L(),
310
- setup(e, r) {
311
- let {
312
- slots: t
313
- } = r;
314
- return p(() => o(U, E(e, {
315
- class: "v-app-bar-title"
316
- }), t)), {};
317
- }
318
- }), _e = {
319
- __name: "Header",
320
- setup(e) {
321
- const r = (
322
- /** @type {import("@/types").Eodash} */
323
- ie(ce)
324
- ), t = r.brand?.name;
325
- return (d, u) => (de(), ve(Te, { color: "primary" }, {
326
- default: P(() => [
327
- o(Ve, null, {
328
- default: P(() => [
329
- me(
330
- ge(w(t)),
331
- 1
332
- /* TEXT */
333
- )
334
- ]),
335
- _: 1
336
- /* STABLE */
337
- }),
338
- o(A, {
339
- class: "mx-12 logo",
340
- src: w(r).brand?.logo
341
- }, null, 8, ["src"])
342
- ]),
343
- _: 1
344
- /* STABLE */
345
- }));
346
- }
347
- }, Pe = /* @__PURE__ */ ue(_e, [["__scopeId", "data-v-d3a5e05e"]]);
348
- export {
349
- Pe as default
350
- };
@@ -1,19 +0,0 @@
1
- import { $ as r, a6 as t } from "./asWebComponent-B91uK0U7.js";
2
- const s = ["src"], i = {
3
- __name: "IframeWrapper",
4
- props: {
5
- src: {
6
- type: String,
7
- required: !0
8
- }
9
- },
10
- setup(e) {
11
- return (c, a) => (r(), t("iframe", {
12
- src: e.src,
13
- class: "fill-height fill-width"
14
- }, null, 8, s));
15
- }
16
- };
17
- export {
18
- i as default
19
- };