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

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 (80) hide show
  1. package/README.md +31 -7
  2. package/core/client/App.vue +6 -7
  3. package/core/client/SuspensedDashboard.ce.vue +59 -45
  4. package/core/client/asWebComponent.d.ts +10 -5
  5. package/core/client/asWebComponent.js +6 -6
  6. package/core/client/components/DashboardLayout.vue +63 -21
  7. package/core/client/components/DynamicWebComponent.vue +44 -44
  8. package/core/client/components/ErrorAlert.vue +24 -7
  9. package/core/client/components/Footer.vue +34 -15
  10. package/core/client/components/Header.vue +10 -5
  11. package/core/client/components/IframeWrapper.vue +4 -4
  12. package/core/client/components/Loading.vue +17 -18
  13. package/core/client/components/MobileLayout.vue +82 -29
  14. package/core/client/composables/DefineEodash.js +38 -28
  15. package/core/client/composables/DefineWidgets.js +105 -79
  16. package/core/client/composables/index.js +43 -141
  17. package/core/client/eodash.js +46 -39
  18. package/core/client/main.js +2 -2
  19. package/core/client/plugins/index.js +11 -9
  20. package/core/client/plugins/vuetify.js +9 -10
  21. package/core/client/render.js +4 -5
  22. package/core/client/store/States.js +8 -13
  23. package/core/client/store/index.js +14 -11
  24. package/core/client/store/stac.js +51 -37
  25. package/core/client/types.d.ts +173 -248
  26. package/core/client/utils/eodashSTAC.js +151 -66
  27. package/core/client/utils/helpers.js +18 -20
  28. package/core/client/utils/index.js +25 -14
  29. package/core/client/utils/keys.js +2 -2
  30. package/core/client/views/Dashboard.vue +70 -42
  31. package/core/client/vite-env.d.ts +19 -17
  32. package/dist/client/DashboardLayout-BuDcv6LM.js +156 -0
  33. package/dist/client/{DynamicWebComponent-C4Hotc4H.js → DynamicWebComponent-BEP4rVce.js} +7 -7
  34. package/dist/client/EodashDatePicker-oFb1zt5E.js +1211 -0
  35. package/dist/client/EodashItemFilter-BElmgrST.js +63 -0
  36. package/dist/client/{EodashMap-CGrQjZ1P.js → EodashMap-DXyOgcEd.js} +11333 -14025
  37. package/dist/client/Footer-CoPx6UXQ.js +115 -0
  38. package/dist/client/Header-C-zX31Ys.js +635 -0
  39. package/dist/client/{IframeWrapper-Cg3GMmfW.js → IframeWrapper-2w2ye0zM.js} +4 -4
  40. package/dist/client/MobileLayout-C9OVcP12.js +945 -0
  41. package/dist/client/{VMain-BHYlmRic.js → VMain-Dm43jd43.js} +8 -8
  42. package/dist/client/{WidgetsContainer-dje9QSk0.js → WidgetsContainer-BS87sLqk.js} +12 -5
  43. package/dist/client/asWebComponent-CpQUVi2N.js +20135 -0
  44. package/dist/client/{basedecoder-Qm25PwVp-CHo5Pomv.js → basedecoder-DHcBySSe-BmCFNFnw.js} +5 -6
  45. package/dist/client/{decoder-HRvnjnEI-BQ2rajuJ.js → decoder-CP4lv0Kb-BHrv68IA.js} +1 -1
  46. package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +10 -0
  47. package/dist/client/eo-dash.js +3 -3
  48. package/dist/client/eodashSTAC-Q7kbX1Gy.js +2788 -0
  49. package/dist/client/{eox-itemfilter-DcQkRD2l.js → eox-itemfilter-TaBxgqq_.js} +1002 -974
  50. package/dist/client/{eox-map-C3DL31fp.js → eox-map-L7abwKTR.js} +5677 -5695
  51. package/dist/client/forwardRefs-BVFQ82G4.js +183 -0
  52. package/dist/client/{index-CaDDfJYE.js → index-dOzyv_xR.js} +43 -74
  53. package/dist/client/{jpeg-DNfUpLwy-Fjan-04T.js → jpeg-BAgeD1d3-oeHbFPUL.js} +5 -6
  54. package/dist/client/{lerc-_E46UbWQ-Beu35ovS.js → lerc-DzVumYtB-rm1Xco54.js} +5 -7
  55. package/dist/client/{lzw-BOMhmEDy-Dboc93VO.js → lzw-LAGDNbSC-DkP96qO9.js} +1 -1
  56. package/dist/client/{packbits-DaUD6MLm-Bu1PoTGa.js → packbits-BlDR4Kj5-C66n1-zr.js} +1 -1
  57. package/dist/client/{pako.esm-C3kYPGGQ-BMki8cQY.js → pako.esm-CB1uQYY0-DB0PYm1P.js} +6 -12
  58. package/dist/client/{raw-CcGKjn8q-DFOt-i8n.js → raw-CMGvRjfu-BRi6E4i1.js} +1 -1
  59. package/dist/client/{ssrBoot-Dd7m-btU.js → ssrBoot-L9KejErM.js} +3 -3
  60. package/dist/client/style.css +2 -2
  61. package/dist/client/transition-DCePIwYR.js +34 -0
  62. package/dist/client/{webfontloader-CyOFAuFB.js → webfontloader-qotgY98I.js} +56 -92
  63. package/dist/client/{webimage-D2c098k3-DLj1LQxB.js → webimage-BM_pbLN3-L2cGWK5l.js} +1 -1
  64. package/dist/node/cli.js +3 -3
  65. package/dist/node/types.d.ts +32 -38
  66. package/package.json +13 -14
  67. package/widgets/EodashDatePicker.vue +145 -41
  68. package/widgets/EodashItemFilter.vue +41 -22
  69. package/widgets/EodashMap.vue +87 -20
  70. package/widgets/WidgetsContainer.vue +45 -27
  71. package/dist/client/DashboardLayout-ZaSRMD1M.js +0 -149
  72. package/dist/client/EodashDatePicker-C4kKjxKy.js +0 -1653
  73. package/dist/client/EodashItemFilter-cBHC0YEM.js +0 -51
  74. package/dist/client/Footer-pS636dEP.js +0 -118
  75. package/dist/client/Header-DQuaLdjl.js +0 -605
  76. package/dist/client/MobileLayout-BLXFBWI_.js +0 -987
  77. package/dist/client/asWebComponent-Bvb3xkxI.js +0 -13311
  78. package/dist/client/deflate-Be2Arps5-hDqMz3RA.js +0 -10
  79. package/dist/client/forwardRefs-Bxeu9Obx.js +0 -142
  80. package/dist/client/index-DlNICb3T.js +0 -34
@@ -1,149 +0,0 @@
1
- import { x, W as _, X as h, _ as e, $ as n, a0 as u, a9 as f, a2 as t, a5 as d, a1 as c, a3 as g, d as m, a4 as y, F as b, a6 as w } from "./asWebComponent-Bvb3xkxI.js";
2
- import { V as v } from "./VMain-BHYlmRic.js";
3
- class k extends HTMLElement {
4
- static get observedAttributes() {
5
- return ["gap"];
6
- }
7
- constructor() {
8
- super(), this.attachShadow({ mode: "open" }), this.render();
9
- }
10
- render() {
11
- this.shadowRoot.innerHTML = `
12
- <style>
13
- :host {
14
- display: grid;
15
- padding: ${this.getAttribute("gap") || 0}px;
16
- height: 100%;
17
- box-sizing: border-box;
18
- gap: ${this.getAttribute("gap") || "0"}px;
19
- grid-template-columns: repeat(12, 1fr);
20
- grid-template-rows: repeat(12, 1fr);
21
- }
22
- </style>
23
- <slot></slot>
24
- `;
25
- }
26
- attributeChangedCallback(a, r, s) {
27
- r !== s && (this[a] = s), this.render();
28
- }
29
- }
30
- class A extends HTMLElement {
31
- static get observedAttributes() {
32
- return ["x", "y", "w", "h"];
33
- }
34
- constructor() {
35
- super(), this.attachShadow({ mode: "open" }), this.render();
36
- }
37
- render() {
38
- this.shadowRoot.innerHTML = `
39
- <style>
40
- :host {
41
- background: lightgrey;
42
- border: 1px solid darkgrey;
43
- border-radius: 4px;
44
- padding: 4px 8px;
45
- overflow: hidden;
46
-
47
-
48
- grid-column: ${parseInt(this.getAttribute("x")) + 1} / span ${this.getAttribute("w")};
49
- grid-row: ${parseInt(this.getAttribute("y")) + 1} / span ${this.getAttribute("h")};
50
- }
51
- </style>
52
- <slot></slot>
53
- `;
54
- }
55
- attributeChangedCallback(a, r, s) {
56
- r !== s && (this[a] = s), this.render();
57
- }
58
- }
59
- customElements.define("eox-layout", k);
60
- customElements.define("eox-layout-item", A);
61
- const C = ["gap"], $ = {
62
- key: 0,
63
- style: { "z-index": "0" },
64
- x: "0",
65
- y: "0",
66
- h: "12",
67
- w: "12"
68
- }, L = ["x", "y", "h", "w"], T = {
69
- __name: "DashboardLayout",
70
- setup(p) {
71
- const a = (
72
- /** @type {import("@/types").Eodash} */
73
- x(_)
74
- ), [r] = h([a.template?.background]), s = a.template?.widgets, i = h(s);
75
- return (E, M) => (e(), n(v, null, {
76
- default: u(() => [
77
- f("eox-layout", {
78
- gap: t(a).template.gap ?? 2
79
- }, [
80
- t(r).component ? (e(), d("eox-layout-item", $, [
81
- (e(), n(c, { suspensible: "" }, {
82
- default: u(() => [
83
- (e(), n(
84
- g(t(r).component),
85
- m({ id: "bg-widget" }, t(r).props),
86
- null,
87
- 16
88
- /* FULL_PROPS */
89
- ))
90
- ]),
91
- _: 1
92
- /* STABLE */
93
- }))
94
- ])) : y("v-if", !0),
95
- (e(!0), d(
96
- b,
97
- null,
98
- w(t(s), (l, o) => (e(), d(
99
- b,
100
- { key: o },
101
- [
102
- t(i)[o].value.component ? (e(), d("eox-layout-item", {
103
- key: 0,
104
- style: { position: "relative", overflow: "visible", "z-index": "1", "border-radius": "0px", background: "rgb(var(--v-theme-surface))" },
105
- x: l.layout.x,
106
- y: l.layout.y,
107
- h: l.layout.h,
108
- w: l.layout.w
109
- }, [
110
- (e(), n(
111
- c,
112
- { suspensible: "" },
113
- {
114
- default: u(() => [
115
- (e(), n(
116
- g(t(i)[o].value.component),
117
- m({
118
- key: t(i)[o].value.id,
119
- ref_for: !0
120
- }, t(i)[o].value.props),
121
- null,
122
- 16
123
- /* FULL_PROPS */
124
- ))
125
- ]),
126
- _: 2
127
- /* DYNAMIC */
128
- },
129
- 1024
130
- /* DYNAMIC_SLOTS */
131
- ))
132
- ], 8, L)) : y("v-if", !0)
133
- ],
134
- 64
135
- /* STABLE_FRAGMENT */
136
- ))),
137
- 128
138
- /* KEYED_FRAGMENT */
139
- ))
140
- ], 8, C)
141
- ]),
142
- _: 1
143
- /* STABLE */
144
- }));
145
- }
146
- };
147
- export {
148
- T as default
149
- };