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

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 (91) hide show
  1. package/README.md +14 -5
  2. package/core/{SuspensedDashboard.ce.vue → client/SuspensedDashboard.ce.vue} +30 -16
  3. package/core/client/components/DashboardLayout.vue +59 -0
  4. package/core/{components → client/components}/ErrorAlert.vue +6 -1
  5. package/core/{components → client/components}/Footer.vue +6 -1
  6. package/core/{components → client/components}/Header.vue +6 -1
  7. package/core/{components → client/components}/IframeWrapper.vue +1 -1
  8. package/core/{components → client/components}/MobileLayout.vue +41 -10
  9. package/core/{composables → client/composables}/DefineEodash.js +2 -1
  10. package/core/{composables → client/composables}/DefineWidgets.js +14 -8
  11. package/core/{composables → client/composables}/index.js +18 -119
  12. package/core/{eodash.js → client/eodash.js} +38 -36
  13. package/core/{plugins → client/plugins}/index.js +3 -0
  14. package/core/{plugins → client/plugins}/vuetify.js +1 -1
  15. package/core/{types.d.ts → client/types.d.ts} +42 -85
  16. package/core/{utils → client/utils}/eodashSTAC.js +29 -25
  17. package/core/client/utils/index.js +32 -0
  18. package/core/{views → client/views}/Dashboard.vue +39 -10
  19. package/dist/client/DashboardLayout-BYROtP-7.js +156 -0
  20. package/dist/{DynamicWebComponent-CgDh2csQ.js → client/DynamicWebComponent-BQhxFPM0.js} +6 -6
  21. package/dist/client/EodashDatePicker-CFltnt5d.js +1194 -0
  22. package/dist/client/EodashItemFilter-DIBDAHcc.js +65 -0
  23. package/dist/{EodashMap-CyR-Ldpk.js → client/EodashMap-C6jJ2Lb_.js} +14337 -15676
  24. package/dist/client/Footer-BVIZms1S.js +115 -0
  25. package/dist/client/Header-TsTL1d2R.js +633 -0
  26. package/dist/{IframeWrapper-Csep3rMg.js → client/IframeWrapper-XKChM78a.js} +4 -4
  27. package/dist/client/MobileLayout-BlGcMQra.js +957 -0
  28. package/dist/{VMain-COrg6UtF.js → client/VMain-C9XV5Lyg.js} +8 -8
  29. package/dist/{WidgetsContainer-XA6_dKOm.js → client/WidgetsContainer-BQXHnZpa.js} +8 -8
  30. package/dist/client/asWebComponent-CbdGxelK.js +20188 -0
  31. package/dist/{decoder-kAoyGIq9-DjQanfeo.js → client/decoder-HRvnjnEI-CHAYOWhz.js} +1 -1
  32. package/dist/client/eo-dash.js +6 -0
  33. package/dist/{eox-map-BJ9SIixs.js → client/eox-map-C3DL31fp.js} +1882 -1809
  34. package/dist/client/eox-stacinfo-l7ALSV90.js +13969 -0
  35. package/dist/client/forwardRefs-CyCJOFsz.js +192 -0
  36. package/dist/client/http-ZWiLaAeR.js +1337 -0
  37. package/dist/{index-Cskxla5D.js → client/index-CabQjjQg.js} +43 -74
  38. package/dist/{lerc-C9VL9kri-O4muG-MO.js → client/lerc-_E46UbWQ-TxBH4OeK.js} +1 -1
  39. package/dist/{ssrBoot-DCCAW5xY.js → client/ssrBoot-DWJ-z4I-.js} +3 -3
  40. package/dist/{style.css → client/style.css} +2 -2
  41. package/dist/client/transition-BlLt41wg.js +34 -0
  42. package/dist/node/cli.js +20 -0
  43. package/dist/node/main.js +2 -0
  44. package/{bin → dist/node}/types.d.ts +2 -2
  45. package/package.json +22 -21
  46. package/widgets/EodashDatePicker.vue +89 -36
  47. package/widgets/EodashItemFilter.vue +30 -14
  48. package/bin/app.js +0 -22
  49. package/bin/cli.js +0 -62
  50. package/bin/main.js +0 -9
  51. package/bin/serverConfig.js +0 -165
  52. package/bin/utils.js +0 -103
  53. package/core/components/DashboardLayout.vue +0 -36
  54. package/core/utils/index.js +0 -28
  55. package/dist/DashboardLayout-lzEvtalW.js +0 -148
  56. package/dist/EodashDatePicker-bIyNUYaG.js +0 -1653
  57. package/dist/EodashItemFilter-CpgyrJRX.js +0 -51
  58. package/dist/Footer-C2sIHSym.js +0 -118
  59. package/dist/Header-DFz2BUnp.js +0 -605
  60. package/dist/MobileLayout-CXNJL_q6.js +0 -984
  61. package/dist/asWebComponent-fqvymeM-.js +0 -13092
  62. package/dist/eo-dash.js +0 -6
  63. package/dist/eox-stacinfo-B-YrT7Ug.js +0 -13698
  64. package/dist/forwardRefs-Bxeu9Obx.js +0 -142
  65. package/dist/index-Zv5eTiB6.js +0 -34
  66. /package/core/{App.vue → client/App.vue} +0 -0
  67. /package/core/{asWebComponent.d.ts → client/asWebComponent.d.ts} +0 -0
  68. /package/core/{asWebComponent.js → client/asWebComponent.js} +0 -0
  69. /package/core/{components → client/components}/DynamicWebComponent.vue +0 -0
  70. /package/core/{components → client/components}/Loading.vue +0 -0
  71. /package/core/{main.js → client/main.js} +0 -0
  72. /package/core/{render.js → client/render.js} +0 -0
  73. /package/core/{store → client/store}/Actions.js +0 -0
  74. /package/core/{store → client/store}/States.js +0 -0
  75. /package/core/{store → client/store}/index.js +0 -0
  76. /package/core/{store → client/store}/stac.js +0 -0
  77. /package/core/{utils → client/utils}/helpers.js +0 -0
  78. /package/core/{utils → client/utils}/keys.js +0 -0
  79. /package/core/{vite-env.d.ts → client/vite-env.d.ts} +0 -0
  80. /package/dist/{.gitkeep → client/.gitkeep} +0 -0
  81. /package/dist/{_commonjsHelpers-DaMA6jEr.js → client/_commonjsHelpers-DaMA6jEr.js} +0 -0
  82. /package/dist/{basedecoder-Qm25PwVp-CHo5Pomv.js → client/basedecoder-Qm25PwVp-CHo5Pomv.js} +0 -0
  83. /package/dist/{deflate-Be2Arps5-hDqMz3RA.js → client/deflate-Be2Arps5-hDqMz3RA.js} +0 -0
  84. /package/dist/{eox-itemfilter-DcQkRD2l.js → client/eox-itemfilter-DcQkRD2l.js} +0 -0
  85. /package/dist/{jpeg-DNfUpLwy-Fjan-04T.js → client/jpeg-DNfUpLwy-Fjan-04T.js} +0 -0
  86. /package/dist/{lzw-BOMhmEDy-Dboc93VO.js → client/lzw-BOMhmEDy-Dboc93VO.js} +0 -0
  87. /package/dist/{packbits-DaUD6MLm-Bu1PoTGa.js → client/packbits-DaUD6MLm-Bu1PoTGa.js} +0 -0
  88. /package/dist/{pako.esm-C3kYPGGQ-BMki8cQY.js → client/pako.esm-C3kYPGGQ-BMki8cQY.js} +0 -0
  89. /package/dist/{raw-CcGKjn8q-DFOt-i8n.js → client/raw-CcGKjn8q-DFOt-i8n.js} +0 -0
  90. /package/dist/{webfontloader-CyOFAuFB.js → client/webfontloader-CyOFAuFB.js} +0 -0
  91. /package/dist/{webimage-D2c098k3-DLj1LQxB.js → client/webimage-D2c098k3-DLj1LQxB.js} +0 -0
@@ -0,0 +1,156 @@
1
+ import { _ as b, x as m, W as x, X as d, $ as t, a0 as r, a1 as l, a9 as _, a3 as n, a6 as u, a2 as p, a4 as c, d as h, a5 as g, F as f, a7 as v, ab as w } from "./asWebComponent-CbdGxelK.js";
2
+ import { V as k } from "./VMain-C9XV5Lyg.js";
3
+ class A 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, s, o) {
27
+ s !== o && (this[a] = o), this.render();
28
+ }
29
+ }
30
+ class C 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, s, o) {
56
+ s !== o && (this[a] = o), this.render();
57
+ }
58
+ }
59
+ customElements.define("eox-layout", A);
60
+ customElements.define("eox-layout-item", C);
61
+ const L = ["gap"], $ = {
62
+ key: 0,
63
+ class: "bg-panel",
64
+ x: "0",
65
+ y: "0",
66
+ h: "12",
67
+ w: "12"
68
+ }, E = ["h", "w", "x", "y"], M = {
69
+ __name: "DashboardLayout",
70
+ setup(i) {
71
+ const a = (
72
+ /** @type {import("@/types").Eodash} */
73
+ m(x)
74
+ ), [s] = d([a.template?.background]), o = d(a.template?.widgets);
75
+ return (T, B) => (t(), r(k, null, {
76
+ default: l(() => [
77
+ _("eox-layout", {
78
+ gap: n(a).template.gap ?? 2
79
+ }, [
80
+ n(s).component ? (t(), u("eox-layout-item", $, [
81
+ (t(), r(p, { suspensible: "" }, {
82
+ default: l(() => [
83
+ (t(), r(
84
+ c(n(s).component),
85
+ h({ id: "bg-widget" }, n(s).props),
86
+ null,
87
+ 16
88
+ /* FULL_PROPS */
89
+ ))
90
+ ]),
91
+ _: 1
92
+ /* STABLE */
93
+ }))
94
+ ])) : g("v-if", !0),
95
+ (t(!0), u(
96
+ f,
97
+ null,
98
+ v(n(o), (e, y) => (t(), r(
99
+ w,
100
+ {
101
+ key: y,
102
+ name: "fade"
103
+ },
104
+ {
105
+ default: l(() => [
106
+ e.value.component ? (t(), u("eox-layout-item", {
107
+ key: e.value.id,
108
+ class: "panel",
109
+ h: e.value.layout.h,
110
+ w: e.value.layout.w,
111
+ x: e.value.layout.x,
112
+ y: e.value.layout.y
113
+ }, [
114
+ (t(), r(
115
+ p,
116
+ { suspensible: "" },
117
+ {
118
+ default: l(() => [
119
+ (t(), r(
120
+ c(e.value.component),
121
+ h({
122
+ key: e.value.id,
123
+ ref_for: !0
124
+ }, e.value.props),
125
+ null,
126
+ 16
127
+ /* FULL_PROPS */
128
+ ))
129
+ ]),
130
+ _: 2
131
+ /* DYNAMIC */
132
+ },
133
+ 1024
134
+ /* DYNAMIC_SLOTS */
135
+ ))
136
+ ], 8, E)) : g("v-if", !0)
137
+ ]),
138
+ _: 2
139
+ /* DYNAMIC */
140
+ },
141
+ 1024
142
+ /* DYNAMIC_SLOTS */
143
+ ))),
144
+ 128
145
+ /* KEYED_FRAGMENT */
146
+ ))
147
+ ], 8, L)
148
+ ]),
149
+ _: 1
150
+ /* STABLE */
151
+ }));
152
+ }
153
+ }, V = /* @__PURE__ */ b(M, [["__scopeId", "data-v-d836e339"]]);
154
+ export {
155
+ V as default
156
+ };
@@ -1,5 +1,5 @@
1
- import { a_ as i, a$ as m, r as p, Z as d, b0 as f, _ as c, a5 as g, $ as _, d as y, a3 as k } from "./asWebComponent-fqvymeM-.js";
2
- const h = { class: "d-flex flex-column fill-height overflow-auto" }, N = {
1
+ import { b6 as i, aZ as m, r as p, Z as d, b7 as f, $ as c, a6 as g, a0 as y, d as _, a4 as k } from "./asWebComponent-CbdGxelK.js";
2
+ const h = { class: "d-flex flex-column fill-height overflow-auto" }, C = {
3
3
  __name: "DynamicWebComponent",
4
4
  props: {
5
5
  link: {
@@ -38,10 +38,10 @@ const h = { class: "d-flex flex-column fill-height overflow-auto" }, N = {
38
38
  e.onMounted?.(r.value, s);
39
39
  }), f(() => {
40
40
  e.onUnmounted?.(r.value, s);
41
- }), (n, x) => (c(), g("span", h, [
42
- (c(), _(
41
+ }), (n, w) => (c(), g("span", h, [
42
+ (c(), y(
43
43
  k(o.tagName),
44
- y(o.properties, {
44
+ _(o.properties, {
45
45
  ref_key: "elementRef",
46
46
  ref: r
47
47
  }),
@@ -53,5 +53,5 @@ const h = { class: "d-flex flex-column fill-height overflow-auto" }, N = {
53
53
  }
54
54
  };
55
55
  export {
56
- N as default
56
+ C as default
57
57
  };