@eodash/eodash 5.0.0-alpha.2.1 → 5.0.0-alpha.2.3

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 (48) hide show
  1. package/README.md +11 -1
  2. package/bin/types.d.ts +1 -0
  3. package/bin/utils.js +1 -1
  4. package/core/App.vue +12 -4
  5. package/core/SuspensedDashboard.ce.vue +13 -5
  6. package/core/components/DashboardLayout.vue +14 -22
  7. package/core/components/ErrorAlert.vue +19 -0
  8. package/core/components/Loading.vue +12 -1
  9. package/core/components/MobileLayout.vue +19 -11
  10. package/core/composables/DefineWidgets.js +11 -5
  11. package/core/composables/index.js +16 -13
  12. package/core/eodash.js +0 -2
  13. package/core/plugins/vuetify.js +9 -3
  14. package/core/store/stac.js +6 -2
  15. package/core/types.d.ts +9 -23
  16. package/core/views/Dashboard.vue +13 -2
  17. package/dist/DashboardLayout-lzEvtalW.js +148 -0
  18. package/dist/{DynamicWebComponent-BrHVTesn.js → DynamicWebComponent-CgDh2csQ.js} +12 -12
  19. package/dist/EodashDatePicker-bIyNUYaG.js +1653 -0
  20. package/dist/{EodashItemFilter-BLAGx2UD.js → EodashItemFilter-CpgyrJRX.js} +2 -2
  21. package/dist/{EodashMap-Bxl_aqY2.js → EodashMap-CyR-Ldpk.js} +4 -4
  22. package/dist/Footer-C2sIHSym.js +118 -0
  23. package/dist/{Header-DC50S6GR.js → Header-DFz2BUnp.js} +222 -226
  24. package/dist/{IframeWrapper-Dd9zrX9s.js → IframeWrapper-Csep3rMg.js} +1 -1
  25. package/dist/MobileLayout-CXNJL_q6.js +984 -0
  26. package/dist/VMain-COrg6UtF.js +39 -0
  27. package/dist/{WidgetsContainer-DxfCu0I3.js → WidgetsContainer-XA6_dKOm.js} +16 -16
  28. package/dist/asWebComponent-fqvymeM-.js +13092 -0
  29. package/dist/{decoder-kAoyGIq9-BBR5CgzS.js → decoder-kAoyGIq9-DjQanfeo.js} +1 -1
  30. package/dist/eo-dash.js +2 -2
  31. package/dist/{index-DTkOfh2g.js → index-Cskxla5D.js} +75 -43
  32. package/dist/index-Zv5eTiB6.js +34 -0
  33. package/dist/{lerc-C9VL9kri-cIdbW0sg.js → lerc-C9VL9kri-O4muG-MO.js} +1 -1
  34. package/dist/{ssrBoot-D-b4-M19.js → ssrBoot-DCCAW5xY.js} +3 -3
  35. package/dist/style.css +2 -2
  36. package/package.json +3 -3
  37. package/widgets/EodashDatePicker.vue +1 -0
  38. package/widgets/WidgetsContainer.vue +7 -5
  39. package/dist/DashboardLayout-Dp8AnYD9.js +0 -141
  40. package/dist/EodashDatePicker-D_udZ26j.js +0 -1645
  41. package/dist/Footer-AohCH8U7.js +0 -118
  42. package/dist/MobileLayout-CgToA7Gp.js +0 -523
  43. package/dist/VBtn-Bz7ruRUg.js +0 -1106
  44. package/dist/VMain-BHfWJU2j.js +0 -35
  45. package/dist/asWebComponent-C8rb3b1D.js +0 -11323
  46. package/dist/color-DpYEub1f.js +0 -115
  47. package/dist/dimensions-CJaGeSrj.js +0 -53
  48. package/dist/index-Sa2Vg_gx.js +0 -65
@@ -1,115 +0,0 @@
1
- import { p as l, af as c, c as u, aB as r, as as g, aC as d, aD as v, aE as C, aF as b } from "./asWebComponent-C8rb3b1D.js";
2
- const k = l({
3
- border: [Boolean, Number, String]
4
- }, "border");
5
- function x(e) {
6
- let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : c();
7
- return {
8
- borderClasses: u(() => {
9
- const t = r(e) ? e.value : e.border, o = [];
10
- if (t === !0 || t === "")
11
- o.push(`${s}--border`);
12
- else if (typeof t == "string" || t === 0)
13
- for (const a of String(t).split(" "))
14
- o.push(`border-${a}`);
15
- return o;
16
- })
17
- };
18
- }
19
- const y = l({
20
- elevation: {
21
- type: [Number, String],
22
- validator(e) {
23
- const s = parseInt(e);
24
- return !isNaN(s) && s >= 0 && // Material Design has a maximum elevation of 24
25
- // https://material.io/design/environment/elevation.html#default-elevations
26
- s <= 24;
27
- }
28
- }
29
- }, "elevation");
30
- function h(e) {
31
- return {
32
- elevationClasses: u(() => {
33
- const n = r(e) ? e.value : e.elevation, t = [];
34
- return n == null || t.push(`elevation-${n}`), t;
35
- })
36
- };
37
- }
38
- const S = l({
39
- rounded: {
40
- type: [Boolean, Number, String],
41
- default: void 0
42
- },
43
- tile: Boolean
44
- }, "rounded");
45
- function B(e) {
46
- let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : c();
47
- return {
48
- roundedClasses: u(() => {
49
- const t = r(e) ? e.value : e.rounded, o = r(e) ? e.value : e.tile, a = [];
50
- if (t === !0 || t === "")
51
- a.push(`${s}--rounded`);
52
- else if (typeof t == "string" || t === 0)
53
- for (const f of String(t).split(" "))
54
- a.push(`rounded-${f}`);
55
- else
56
- o && a.push("rounded-0");
57
- return a;
58
- })
59
- };
60
- }
61
- function i(e) {
62
- return g(() => {
63
- const s = [], n = {};
64
- if (e.value.background)
65
- if (d(e.value.background)) {
66
- if (n.backgroundColor = e.value.background, !e.value.text && v(e.value.background)) {
67
- const t = C(e.value.background);
68
- if (t.a == null || t.a === 1) {
69
- const o = b(t);
70
- n.color = o, n.caretColor = o;
71
- }
72
- }
73
- } else
74
- s.push(`bg-${e.value.background}`);
75
- return e.value.text && (d(e.value.text) ? (n.color = e.value.text, n.caretColor = e.value.text) : s.push(`text-${e.value.text}`)), {
76
- colorClasses: s,
77
- colorStyles: n
78
- };
79
- });
80
- }
81
- function $(e, s) {
82
- const n = u(() => ({
83
- text: r(e) ? e.value : s ? e[s] : null
84
- })), {
85
- colorClasses: t,
86
- colorStyles: o
87
- } = i(n);
88
- return {
89
- textColorClasses: t,
90
- textColorStyles: o
91
- };
92
- }
93
- function N(e, s) {
94
- const n = u(() => ({
95
- background: r(e) ? e.value : s ? e[s] : null
96
- })), {
97
- colorClasses: t,
98
- colorStyles: o
99
- } = i(n);
100
- return {
101
- backgroundColorClasses: t,
102
- backgroundColorStyles: o
103
- };
104
- }
105
- export {
106
- N as a,
107
- B as b,
108
- k as c,
109
- y as d,
110
- x as e,
111
- h as f,
112
- i as g,
113
- S as m,
114
- $ as u
115
- };
@@ -1,53 +0,0 @@
1
- import { g as u, aA as h, q as g, p as n, c as l, v as t } from "./asWebComponent-C8rb3b1D.js";
2
- const c = n({
3
- defaults: Object,
4
- disabled: Boolean,
5
- reset: [Number, String],
6
- root: [Boolean, String],
7
- scoped: Boolean
8
- }, "VDefaultsProvider"), b = u(!1)({
9
- name: "VDefaultsProvider",
10
- props: c(),
11
- setup(e, i) {
12
- let {
13
- slots: s
14
- } = i;
15
- const {
16
- defaults: o,
17
- disabled: r,
18
- reset: a,
19
- root: m,
20
- scoped: d
21
- } = h(e);
22
- return g(o, {
23
- reset: a,
24
- root: m,
25
- scoped: d,
26
- disabled: r
27
- }), () => s.default?.();
28
- }
29
- }), S = n({
30
- height: [Number, String],
31
- maxHeight: [Number, String],
32
- maxWidth: [Number, String],
33
- minHeight: [Number, String],
34
- minWidth: [Number, String],
35
- width: [Number, String]
36
- }, "dimension");
37
- function v(e) {
38
- return {
39
- dimensionStyles: l(() => ({
40
- height: t(e.height),
41
- maxHeight: t(e.maxHeight),
42
- maxWidth: t(e.maxWidth),
43
- minHeight: t(e.minHeight),
44
- minWidth: t(e.minWidth),
45
- width: t(e.width)
46
- }))
47
- };
48
- }
49
- export {
50
- b as V,
51
- S as m,
52
- v as u
53
- };
@@ -1,65 +0,0 @@
1
- import { p as v, a8 as b, m as d, az as l, aw as g, W as _ } from "./asWebComponent-C8rb3b1D.js";
2
- const j = v({
3
- transition: {
4
- type: [Boolean, String, Object],
5
- default: "fade-transition",
6
- validator: (e) => e !== !0
7
- }
8
- }, "transition"), I = (e, t) => {
9
- let {
10
- slots: s
11
- } = t;
12
- const {
13
- transition: n,
14
- disabled: r,
15
- group: i,
16
- ...a
17
- } = e, {
18
- component: c = i ? l : g,
19
- ...f
20
- } = typeof n == "object" ? n : {};
21
- return b(c, d(typeof n == "string" ? {
22
- name: r ? "" : n
23
- } : f, typeof n == "string" ? {} : Object.fromEntries(Object.entries({
24
- disabled: r,
25
- group: i
26
- }).filter((o) => {
27
- let [u, m] = o;
28
- return m !== void 0;
29
- })), a), s);
30
- };
31
- function y(e, t) {
32
- if (!_)
33
- return;
34
- const s = t.modifiers || {}, n = t.value, {
35
- handler: r,
36
- options: i
37
- } = typeof n == "object" ? n : {
38
- handler: n,
39
- options: {}
40
- }, a = new IntersectionObserver(function() {
41
- let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], f = arguments.length > 1 ? arguments[1] : void 0;
42
- const o = e._observe?.[t.instance.$.uid];
43
- if (!o)
44
- return;
45
- const u = c.some((m) => m.isIntersecting);
46
- r && (!s.quiet || o.init) && (!s.once || u || o.init) && r(u, c, f), u && s.once ? p(e, t) : o.init = !0;
47
- }, i);
48
- e._observe = Object(e._observe), e._observe[t.instance.$.uid] = {
49
- init: !1,
50
- observer: a
51
- }, a.observe(e);
52
- }
53
- function p(e, t) {
54
- const s = e._observe?.[t.instance.$.uid];
55
- s && (s.observer.unobserve(e), delete e._observe[t.instance.$.uid]);
56
- }
57
- const O = {
58
- mounted: y,
59
- unmounted: p
60
- }, h = O;
61
- export {
62
- I as M,
63
- h as i,
64
- j as m
65
- };