@eodash/eodash 5.0.0-alpha.2.6 → 5.0.0-alpha.2.8

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 (44) hide show
  1. package/core/client/components/DashboardLayout.vue +1 -2
  2. package/core/client/components/MobileLayout.vue +1 -2
  3. package/core/client/composables/DefineWidgets.js +1 -1
  4. package/core/client/composables/index.js +12 -0
  5. package/core/client/eodash.js +15 -2
  6. package/core/client/store/Actions.js +14 -0
  7. package/core/client/types.d.ts +6 -1
  8. package/core/client/utils/index.js +12 -0
  9. package/dist/client/{DashboardLayout-BuDcv6LM.js → DashboardLayout-CKOExc7r.js} +4 -4
  10. package/dist/client/{DynamicWebComponent-BEP4rVce.js → DynamicWebComponent-m1Zbbw6n.js} +4 -4
  11. package/dist/client/EodashDatePicker-CGdJRGZJ.js +252 -0
  12. package/dist/client/{EodashItemFilter-BElmgrST.js → EodashItemFilter-BjM_LHaE.js} +2 -2
  13. package/dist/client/EodashMap-61UMC8sv.js +86917 -0
  14. package/dist/client/EodashMapBtns-DVITfAFx.js +36 -0
  15. package/dist/client/ExportState-DhpK09GR.js +558 -0
  16. package/dist/client/{Footer-CoPx6UXQ.js → Footer-CIwjaddz.js} +11 -11
  17. package/dist/client/Header-BcM-pZFi.js +350 -0
  18. package/dist/client/{IframeWrapper-2w2ye0zM.js → IframeWrapper-CAe6HPqe.js} +1 -1
  19. package/dist/client/{MobileLayout-C9OVcP12.js → MobileLayout-DcZOQX8r.js} +11 -11
  20. package/dist/client/PopUp-DCaITceG.js +300 -0
  21. package/dist/client/VImg-C-I_7puM.js +291 -0
  22. package/dist/client/{VMain-Dm43jd43.js → VMain-Cd3P0YTG.js} +2 -2
  23. package/dist/client/VOverlay-AcvFgk39.js +967 -0
  24. package/dist/client/{WidgetsContainer-BS87sLqk.js → WidgetsContainer-B0-q0EMO.js} +1 -1
  25. package/dist/client/{asWebComponent-CpQUVi2N.js → asWebComponent-zuKR9I1w.js} +5939 -5713
  26. package/dist/client/{decoder-CP4lv0Kb-BHrv68IA.js → decoder-CP4lv0Kb-DdKalImK.js} +1 -1
  27. package/dist/client/eo-dash.js +4 -4
  28. package/dist/client/{eodashSTAC-Q7kbX1Gy.js → eodashSTAC-DGB50vNk.js} +1 -1
  29. package/dist/client/{forwardRefs-BVFQ82G4.js → forwardRefs-BnxE4iKQ.js} +35 -33
  30. package/dist/client/{index-dOzyv_xR.js → index-hSIi5Ygk.js} +8 -8
  31. package/dist/client/{lerc-DzVumYtB-rm1Xco54.js → lerc-DzVumYtB-cTUap6k_.js} +1 -1
  32. package/dist/client/{ssrBoot-L9KejErM.js → ssrBoot-D3KF5Thc.js} +1 -1
  33. package/dist/client/style.css +2 -2
  34. package/dist/client/{transition-DCePIwYR.js → transition-D3a4tiJv.js} +6 -6
  35. package/dist/node/cli.js +2 -2
  36. package/package.json +2 -2
  37. package/widgets/EodashMap.vue +33 -29
  38. package/widgets/EodashMapBtns.vue +33 -0
  39. package/widgets/ExportState.vue +112 -0
  40. package/widgets/PopUp.vue +40 -0
  41. package/dist/client/EodashDatePicker-oFb1zt5E.js +0 -1211
  42. package/dist/client/EodashMap-DXyOgcEd.js +0 -50707
  43. package/dist/client/Header-C-zX31Ys.js +0 -635
  44. package/dist/client/eox-map-L7abwKTR.js +0 -36260
@@ -0,0 +1,291 @@
1
+ import { b8 as O, p as W, e as D, ac as G, g as $, ad as J, a as E, b as n, c as h, ag as K, Q as X, R as Y, aj as Z, b9 as p, s as f, r as ee, w as C, ba as te, D as ne, an as re, t as U, v as ae, F as se, d as ie, C as le, B as oe } from "./asWebComponent-zuKR9I1w.js";
2
+ import { m as ue, M as b } from "./transition-D3a4tiJv.js";
3
+ function ce(e, s) {
4
+ if (!O) return;
5
+ const i = s.modifiers || {}, l = s.value, {
6
+ handler: v,
7
+ options: R
8
+ } = typeof l == "object" ? l : {
9
+ handler: l,
10
+ options: {}
11
+ }, S = new IntersectionObserver(function() {
12
+ let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], _ = arguments.length > 1 ? arguments[1] : void 0;
13
+ const r = e._observe?.[s.instance.$.uid];
14
+ if (!r) return;
15
+ const a = c.some((d) => d.isIntersecting);
16
+ v && (!i.quiet || r.init) && (!i.once || a || r.init) && v(a, c, _), a && i.once ? M(e, s) : r.init = !0;
17
+ }, R);
18
+ e._observe = Object(e._observe), e._observe[s.instance.$.uid] = {
19
+ init: !1,
20
+ observer: S
21
+ }, S.observe(e);
22
+ }
23
+ function M(e, s) {
24
+ const i = e._observe?.[s.instance.$.uid];
25
+ i && (i.observer.unobserve(e), delete e._observe[s.instance.$.uid]);
26
+ }
27
+ const de = {
28
+ mounted: ce,
29
+ unmounted: M
30
+ };
31
+ function ve(e) {
32
+ return {
33
+ aspectStyles: h(() => {
34
+ const s = Number(e.aspectRatio);
35
+ return s ? {
36
+ paddingBottom: String(1 / s * 100) + "%"
37
+ } : void 0;
38
+ })
39
+ };
40
+ }
41
+ const q = W({
42
+ aspectRatio: [String, Number],
43
+ contentClass: null,
44
+ inline: Boolean,
45
+ ...D(),
46
+ ...G()
47
+ }, "VResponsive"), F = $()({
48
+ name: "VResponsive",
49
+ props: q(),
50
+ setup(e, s) {
51
+ let {
52
+ slots: i
53
+ } = s;
54
+ const {
55
+ aspectStyles: l
56
+ } = ve(e), {
57
+ dimensionStyles: v
58
+ } = J(e);
59
+ return E(() => n("div", {
60
+ class: ["v-responsive", {
61
+ "v-responsive--inline": e.inline
62
+ }, e.class],
63
+ style: [v.value, e.style]
64
+ }, [n("div", {
65
+ class: "v-responsive__sizer",
66
+ style: l.value
67
+ }, null), i.additional?.(), i.default && n("div", {
68
+ class: ["v-responsive__content", e.contentClass]
69
+ }, [i.default()])])), {};
70
+ }
71
+ }), ge = W({
72
+ alt: String,
73
+ cover: Boolean,
74
+ color: String,
75
+ draggable: {
76
+ type: [Boolean, String],
77
+ default: void 0
78
+ },
79
+ eager: Boolean,
80
+ gradient: String,
81
+ lazySrc: String,
82
+ options: {
83
+ type: Object,
84
+ // For more information on types, navigate to:
85
+ // https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
86
+ default: () => ({
87
+ root: void 0,
88
+ rootMargin: void 0,
89
+ threshold: void 0
90
+ })
91
+ },
92
+ sizes: String,
93
+ src: {
94
+ type: [String, Object],
95
+ default: ""
96
+ },
97
+ crossorigin: String,
98
+ referrerpolicy: String,
99
+ srcset: String,
100
+ position: String,
101
+ ...q(),
102
+ ...D(),
103
+ ...K(),
104
+ ...ue()
105
+ }, "VImg"), Se = $()({
106
+ name: "VImg",
107
+ directives: {
108
+ intersect: de
109
+ },
110
+ props: ge(),
111
+ emits: {
112
+ loadstart: (e) => !0,
113
+ load: (e) => !0,
114
+ error: (e) => !0
115
+ },
116
+ setup(e, s) {
117
+ let {
118
+ emit: i,
119
+ slots: l
120
+ } = s;
121
+ const {
122
+ backgroundColorClasses: v,
123
+ backgroundColorStyles: R
124
+ } = X(Y(e, "color")), {
125
+ roundedClasses: S
126
+ } = Z(e), c = p("VImg"), _ = f(""), r = ee(), a = f(e.eager ? "loading" : "idle"), d = f(), y = f(), o = h(() => e.src && typeof e.src == "object" ? {
127
+ src: e.src.src,
128
+ srcset: e.srcset || e.src.srcset,
129
+ lazySrc: e.lazySrc || e.src.lazySrc,
130
+ aspect: Number(e.aspectRatio || e.src.aspect || 0)
131
+ } : {
132
+ src: e.src,
133
+ srcset: e.srcset,
134
+ lazySrc: e.lazySrc,
135
+ aspect: Number(e.aspectRatio || 0)
136
+ }), g = h(() => o.value.aspect || d.value / y.value || 0);
137
+ C(() => e.src, () => {
138
+ z(a.value !== "idle");
139
+ }), C(g, (t, u) => {
140
+ !t && u && r.value && m(r.value);
141
+ }), te(() => z());
142
+ function z(t) {
143
+ if (!(e.eager && t) && !(O && !t && !e.eager)) {
144
+ if (a.value = "loading", o.value.lazySrc) {
145
+ const u = new Image();
146
+ u.src = o.value.lazySrc, m(u, null);
147
+ }
148
+ o.value.src && ne(() => {
149
+ i("loadstart", r.value?.currentSrc || o.value.src), setTimeout(() => {
150
+ if (!c.isUnmounted)
151
+ if (r.value?.complete) {
152
+ if (r.value.naturalWidth || w(), a.value === "error") return;
153
+ g.value || m(r.value, null), a.value === "loading" && P();
154
+ } else
155
+ g.value || m(r.value), k();
156
+ });
157
+ });
158
+ }
159
+ }
160
+ function P() {
161
+ c.isUnmounted || (k(), m(r.value), a.value = "loaded", i("load", r.value?.currentSrc || o.value.src));
162
+ }
163
+ function w() {
164
+ c.isUnmounted || (a.value = "error", i("error", r.value?.currentSrc || o.value.src));
165
+ }
166
+ function k() {
167
+ const t = r.value;
168
+ t && (_.value = t.currentSrc || t.src);
169
+ }
170
+ let I = -1;
171
+ re(() => {
172
+ clearTimeout(I);
173
+ });
174
+ function m(t) {
175
+ let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100;
176
+ const B = () => {
177
+ if (clearTimeout(I), c.isUnmounted) return;
178
+ const {
179
+ naturalHeight: j,
180
+ naturalWidth: N
181
+ } = t;
182
+ j || N ? (d.value = N, y.value = j) : !t.complete && a.value === "loading" && u != null ? I = window.setTimeout(B, u) : (t.currentSrc.endsWith(".svg") || t.currentSrc.startsWith("data:image/svg+xml")) && (d.value = 1, y.value = 1);
183
+ };
184
+ B();
185
+ }
186
+ const T = h(() => ({
187
+ "v-img__img--cover": e.cover,
188
+ "v-img__img--contain": !e.cover
189
+ })), x = () => {
190
+ if (!o.value.src || a.value === "idle") return null;
191
+ const t = n("img", {
192
+ class: ["v-img__img", T.value],
193
+ style: {
194
+ objectPosition: e.position
195
+ },
196
+ src: o.value.src,
197
+ srcset: o.value.srcset,
198
+ alt: e.alt,
199
+ crossorigin: e.crossorigin,
200
+ referrerpolicy: e.referrerpolicy,
201
+ draggable: e.draggable,
202
+ sizes: e.sizes,
203
+ ref: r,
204
+ onLoad: P,
205
+ onError: w
206
+ }, null), u = l.sources?.();
207
+ return n(b, {
208
+ transition: e.transition,
209
+ appear: !0
210
+ }, {
211
+ default: () => [U(u ? n("picture", {
212
+ class: "v-img__picture"
213
+ }, [u, t]) : t, [[oe, a.value === "loaded"]])]
214
+ });
215
+ }, A = () => n(b, {
216
+ transition: e.transition
217
+ }, {
218
+ default: () => [o.value.lazySrc && a.value !== "loaded" && n("img", {
219
+ class: ["v-img__img", "v-img__img--preload", T.value],
220
+ style: {
221
+ objectPosition: e.position
222
+ },
223
+ src: o.value.lazySrc,
224
+ alt: e.alt,
225
+ crossorigin: e.crossorigin,
226
+ referrerpolicy: e.referrerpolicy,
227
+ draggable: e.draggable
228
+ }, null)]
229
+ }), H = () => l.placeholder ? n(b, {
230
+ transition: e.transition,
231
+ appear: !0
232
+ }, {
233
+ default: () => [(a.value === "loading" || a.value === "error" && !l.error) && n("div", {
234
+ class: "v-img__placeholder"
235
+ }, [l.placeholder()])]
236
+ }) : null, L = () => l.error ? n(b, {
237
+ transition: e.transition,
238
+ appear: !0
239
+ }, {
240
+ default: () => [a.value === "error" && n("div", {
241
+ class: "v-img__error"
242
+ }, [l.error()])]
243
+ }) : null, Q = () => e.gradient ? n("div", {
244
+ class: "v-img__gradient",
245
+ style: {
246
+ backgroundImage: `linear-gradient(${e.gradient})`
247
+ }
248
+ }, null) : null, V = f(!1);
249
+ {
250
+ const t = C(g, (u) => {
251
+ u && (requestAnimationFrame(() => {
252
+ requestAnimationFrame(() => {
253
+ V.value = !0;
254
+ });
255
+ }), t());
256
+ });
257
+ }
258
+ return E(() => {
259
+ const t = F.filterProps(e);
260
+ return U(n(F, ie({
261
+ class: ["v-img", {
262
+ "v-img--booting": !V.value
263
+ }, v.value, S.value, e.class],
264
+ style: [{
265
+ width: le(e.width === "auto" ? d.value : e.width)
266
+ }, R.value, e.style]
267
+ }, t, {
268
+ aspectRatio: g.value,
269
+ "aria-label": e.alt,
270
+ role: e.alt ? "img" : void 0
271
+ }), {
272
+ additional: () => n(se, null, [n(x, null, null), n(A, null, null), n(Q, null, null), n(H, null, null), n(L, null, null)]),
273
+ default: l.default
274
+ }), [[ae("intersect"), {
275
+ handler: z,
276
+ options: e.options
277
+ }, null, {
278
+ once: !0
279
+ }]]);
280
+ }), {
281
+ currentSrc: _,
282
+ image: r,
283
+ state: a,
284
+ naturalWidth: d,
285
+ naturalHeight: y
286
+ };
287
+ }
288
+ });
289
+ export {
290
+ Se as V
291
+ };
@@ -1,5 +1,5 @@
1
- import { p as i, e as m, ac as c, f as u, g as d, ad as y, Y as v, a as f, b as e } from "./asWebComponent-CpQUVi2N.js";
2
- import { u as V } from "./ssrBoot-L9KejErM.js";
1
+ import { p as i, e as m, ac as c, f as u, g as d, ad as y, Y as v, a as f, b as e } from "./asWebComponent-zuKR9I1w.js";
2
+ import { u as V } from "./ssrBoot-D3KF5Thc.js";
3
3
  const b = i({
4
4
  scrollable: Boolean,
5
5
  ...m(),