@eodash/eodash 5.0.0-alpha.2 → 5.0.0-alpha.2.10

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/LICENSE +21 -0
  2. package/README.md +36 -3
  3. package/core/client/App.vue +26 -0
  4. package/core/client/SuspensedDashboard.ce.vue +105 -0
  5. package/core/client/asWebComponent.d.ts +23 -0
  6. package/core/client/asWebComponent.js +12 -0
  7. package/core/client/components/DashboardLayout.vue +77 -0
  8. package/core/client/components/DynamicWebComponent.vue +68 -0
  9. package/core/client/components/ErrorAlert.vue +36 -0
  10. package/core/{components → client/components}/Footer.vue +34 -15
  11. package/core/client/components/Header.vue +19 -0
  12. package/core/client/components/IframeWrapper.vue +11 -0
  13. package/core/client/components/Loading.vue +37 -0
  14. package/core/client/components/MobileLayout.vue +109 -0
  15. package/core/client/composables/DefineEodash.js +67 -0
  16. package/core/client/composables/DefineWidgets.js +161 -0
  17. package/core/client/composables/index.js +136 -0
  18. package/core/client/eodash.js +136 -0
  19. package/core/client/main.js +2 -0
  20. package/core/client/plugins/index.js +20 -0
  21. package/core/client/plugins/vuetify.js +35 -0
  22. package/core/client/render.js +12 -0
  23. package/core/client/store/Actions.js +62 -0
  24. package/core/client/store/States.js +21 -0
  25. package/core/client/store/index.js +20 -0
  26. package/core/client/store/stac.js +81 -0
  27. package/core/client/types.d.ts +287 -0
  28. package/core/client/utils/eodashSTAC.js +337 -0
  29. package/core/client/utils/helpers.js +172 -0
  30. package/core/client/utils/index.js +51 -0
  31. package/core/{utils → client/utils}/keys.js +2 -2
  32. package/core/client/views/Dashboard.vue +116 -0
  33. package/core/client/vite-env.d.ts +39 -0
  34. package/dist/client/DashboardLayout-C_3q8Y10.js +156 -0
  35. package/dist/{DynamicWebComponent-BDOQsEcj.js → client/DynamicWebComponent-IiTTLBt-.js} +11 -11
  36. package/dist/client/EodashDatePicker-DgC1lccp.js +252 -0
  37. package/dist/{eox-itemfilter-DcQkRD2l.js → client/EodashItemFilter-DoWZGe6r.js} +1515 -1381
  38. package/dist/client/EodashMap-C96D3LLv.js +114352 -0
  39. package/dist/client/EodashMapBtns-DDtzV94u.js +50 -0
  40. package/dist/client/ExportState-CduS2mFs.js +558 -0
  41. package/dist/client/Footer-DHQcutCv.js +115 -0
  42. package/dist/client/Header-DC0y7rLK.js +350 -0
  43. package/dist/{IframeWrapper-DYHQQRUh.js → client/IframeWrapper-BK-10FbS.js} +4 -4
  44. package/dist/client/MobileLayout-BpLoMY4i.js +945 -0
  45. package/dist/client/PopUp-CNMCWL0z.js +300 -0
  46. package/dist/client/VImg-DT7eb8V-.js +291 -0
  47. package/dist/client/VMain-OenWyy46.js +39 -0
  48. package/dist/client/VOverlay-x3UXpKhr.js +972 -0
  49. package/dist/{WidgetsContainer-D_PLP1qf.js → client/WidgetsContainer-qMUwtN0W.js} +26 -19
  50. package/dist/client/asWebComponent-DQrnLsI2.js +20404 -0
  51. package/dist/{basedecoder-Qm25PwVp-CHo5Pomv.js → client/basedecoder-DHcBySSe-BmCFNFnw.js} +5 -6
  52. package/dist/{decoder-kAoyGIq9-HAkjSTCt.js → client/decoder-Cth6J7EK-CtUoHA6r.js} +1 -1
  53. package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +10 -0
  54. package/dist/client/eo-dash.js +6 -0
  55. package/dist/client/eox-jsonform-DCErgjhw.js +17515 -0
  56. package/dist/client/eox-layercontrol-D0Ht7Mag.js +21298 -0
  57. package/dist/client/eox-stacinfo-l7ALSV90.js +13969 -0
  58. package/dist/client/forwardRefs-CpNjL95t.js +185 -0
  59. package/dist/client/helpers-KCSgmfim.js +1417 -0
  60. package/dist/{index-8ch8xKfa.js → client/index-DopVrUzM.js} +21 -20
  61. package/dist/{jpeg-DNfUpLwy-Fjan-04T.js → client/jpeg-BAgeD1d3-oeHbFPUL.js} +5 -6
  62. package/dist/{lerc-C9VL9kri-DyVxBvsf.js → client/lerc-BgbQqdFI-D986ErVw.js} +37 -39
  63. package/dist/{lzw-BOMhmEDy-Dboc93VO.js → client/lzw-LAGDNbSC-DkP96qO9.js} +1 -1
  64. package/dist/{packbits-DaUD6MLm-Bu1PoTGa.js → client/packbits-BlDR4Kj5-C66n1-zr.js} +1 -1
  65. package/dist/{pako.esm-C3kYPGGQ-BMki8cQY.js → client/pako.esm-CB1uQYY0-DB0PYm1P.js} +6 -12
  66. package/dist/{raw-CcGKjn8q-DFOt-i8n.js → client/raw-CMGvRjfu-BRi6E4i1.js} +1 -1
  67. package/dist/{ssrBoot-Cm5pWM14.js → client/ssrBoot-DkjdOWvj.js} +1 -1
  68. package/dist/client/style.css +5 -0
  69. package/dist/client/transition-BtJHh7JK.js +34 -0
  70. package/dist/{webfontloader-CyOFAuFB.js → client/webfontloader-qotgY98I.js} +56 -92
  71. package/dist/{webimage-D2c098k3-DLj1LQxB.js → client/webimage-BM_pbLN3-L2cGWK5l.js} +1 -1
  72. package/dist/node/cli.js +20 -0
  73. package/dist/node/main.js +2 -0
  74. package/dist/node/types.d.ts +47 -0
  75. package/package.json +54 -51
  76. package/widgets/EodashDatePicker.vue +145 -40
  77. package/widgets/EodashItemFilter.vue +73 -38
  78. package/widgets/EodashMap.vue +210 -37
  79. package/widgets/EodashMapBtns.vue +50 -0
  80. package/widgets/ExportState.vue +112 -0
  81. package/widgets/PopUp.vue +40 -0
  82. package/widgets/WidgetsContainer.vue +47 -27
  83. package/bin/app.js +0 -22
  84. package/bin/cli.js +0 -62
  85. package/bin/main.js +0 -9
  86. package/bin/serverConfig.js +0 -165
  87. package/bin/types.d.ts +0 -52
  88. package/bin/utils.js +0 -103
  89. package/core/App.vue +0 -19
  90. package/core/SuspensedDashboard.ce.vue +0 -59
  91. package/core/asWebComponent.d.ts +0 -18
  92. package/core/asWebComponent.js +0 -12
  93. package/core/components/DashboardLayout.vue +0 -54
  94. package/core/components/DynamicWebComponent.vue +0 -68
  95. package/core/components/Header.vue +0 -14
  96. package/core/components/IframeWrapper.vue +0 -11
  97. package/core/components/Loading.vue +0 -27
  98. package/core/components/MobileLayout.vue +0 -49
  99. package/core/composables/DefineEodash.js +0 -57
  100. package/core/composables/DefineWidgets.js +0 -129
  101. package/core/composables/index.js +0 -219
  102. package/core/eodash.js +0 -100
  103. package/core/main.js +0 -2
  104. package/core/plugins/index.js +0 -18
  105. package/core/plugins/vuetify.js +0 -30
  106. package/core/render.js +0 -13
  107. package/core/store/Actions.js +0 -0
  108. package/core/store/States.js +0 -21
  109. package/core/store/index.js +0 -17
  110. package/core/store/stac.js +0 -63
  111. package/core/types.d.ts +0 -355
  112. package/core/utils/eodashSTAC.js +0 -164
  113. package/core/utils/helpers.js +0 -40
  114. package/core/utils/index.js +0 -28
  115. package/core/views/Dashboard.vue +0 -59
  116. package/core/vite-env.d.ts +0 -31
  117. package/dist/DashboardLayout-YLfAa8wH.js +0 -168
  118. package/dist/EodashDatePicker-DlehqSgz.js +0 -1645
  119. package/dist/EodashItemFilter-TSp7XRGy.js +0 -51
  120. package/dist/EodashMap-DInb9cfS.js +0 -53405
  121. package/dist/Footer-CIzHgJbK.js +0 -118
  122. package/dist/Header-C5PSB8Uc.js +0 -609
  123. package/dist/MobileLayout-DZmqrpub.js +0 -523
  124. package/dist/VBtn-CFPhsIX8.js +0 -1106
  125. package/dist/VMain-deI9jyIf.js +0 -35
  126. package/dist/asWebComponent-BKe6Spni.js +0 -11323
  127. package/dist/color-D72nEBIR.js +0 -115
  128. package/dist/deflate-Be2Arps5-hDqMz3RA.js +0 -10
  129. package/dist/dimensions-BZkmIizV.js +0 -53
  130. package/dist/eo-dash.js +0 -6
  131. package/dist/eox-map-BJ9SIixs.js +0 -36205
  132. package/dist/eox-stacinfo-B-YrT7Ug.js +0 -13698
  133. package/dist/forwardRefs-Bxeu9Obx.js +0 -142
  134. package/dist/index-DIt8GjSR.js +0 -65
  135. package/dist/style.css +0 -5
  136. /package/dist/{.gitkeep → client/.gitkeep} +0 -0
  137. /package/dist/{_commonjsHelpers-DaMA6jEr.js → client/_commonjsHelpers-DaMA6jEr.js} +0 -0
@@ -1,168 +0,0 @@
1
- import { y as k, z as v, A as m, r as C, R as A, S as L, D as o, E as n, G as l, T as y, J as e, U as b, a as c, H as f, m as _, K as w, F as V, L as E, N as $, V as B } from "./asWebComponent-BKe6Spni.js";
2
- import { V as S, b as z } from "./VBtn-CFPhsIX8.js";
3
- import { V as H } from "./VMain-deI9jyIf.js";
4
- class M extends HTMLElement {
5
- static get observedAttributes() {
6
- return ["gap"];
7
- }
8
- constructor() {
9
- super(), this.attachShadow({ mode: "open" }), this.render();
10
- }
11
- render() {
12
- this.shadowRoot.innerHTML = `
13
- <style>
14
- :host {
15
- display: grid;
16
- padding: ${this.getAttribute("gap") || 0}px;
17
- height: 100%;
18
- box-sizing: border-box;
19
- gap: ${this.getAttribute("gap") || "0"}px;
20
- grid-template-columns: repeat(12, 1fr);
21
- grid-template-rows: repeat(12, 1fr);
22
- }
23
- </style>
24
- <slot></slot>
25
- `;
26
- }
27
- attributeChangedCallback(a, r, s) {
28
- r !== s && (this[a] = s), this.render();
29
- }
30
- }
31
- class T extends HTMLElement {
32
- static get observedAttributes() {
33
- return ["x", "y", "w", "h"];
34
- }
35
- constructor() {
36
- super(), this.attachShadow({ mode: "open" }), this.render();
37
- }
38
- render() {
39
- this.shadowRoot.innerHTML = `
40
- <style>
41
- :host {
42
- background: lightgrey;
43
- border: 1px solid darkgrey;
44
- border-radius: 4px;
45
- padding: 4px 8px;
46
- overflow: hidden;
47
-
48
-
49
- grid-column: ${parseInt(this.getAttribute("x")) + 1} / span ${this.getAttribute("w")};
50
- grid-row: ${parseInt(this.getAttribute("y")) + 1} / span ${this.getAttribute("h")};
51
- }
52
- </style>
53
- <slot></slot>
54
- `;
55
- }
56
- attributeChangedCallback(a, r, s) {
57
- r !== s && (this[a] = s), this.render();
58
- }
59
- }
60
- customElements.define("eox-layout", M);
61
- customElements.define("eox-layout-item", T);
62
- const D = ["gap"], I = {
63
- style: { "z-index": "0" },
64
- x: "0",
65
- y: "0",
66
- h: "12",
67
- w: "12"
68
- }, N = ["x", "y", "h", "w"], G = {
69
- __name: "DashboardLayout",
70
- setup(p) {
71
- const a = (
72
- /** @type {import("@/types").Eodash} */
73
- k(v)
74
- ), [r] = m([a.template?.background]), s = a.template?.widgets, u = m(s), h = C([]), { slideBtns: i, slideInOut: x } = A(h, s);
75
- return (R, W) => {
76
- const g = L("Loading");
77
- return o(), n(H, null, {
78
- default: l(() => [
79
- y("eox-layout", {
80
- gap: e(a).template.gap ?? 2
81
- }, [
82
- y("eox-layout-item", I, [
83
- (o(), n(b, null, {
84
- fallback: l(() => [
85
- c(g)
86
- ]),
87
- default: l(() => [
88
- (o(), n(
89
- f(e(r).component),
90
- _({ id: "bg-widget" }, e(r).props),
91
- null,
92
- 16
93
- /* FULL_PROPS */
94
- ))
95
- ]),
96
- _: 1
97
- /* STABLE */
98
- }))
99
- ]),
100
- (o(!0), w(
101
- V,
102
- null,
103
- E(e(s), (d, t) => (o(), w("eox-layout-item", {
104
- ref_for: !0,
105
- ref_key: "itemEls",
106
- ref: h,
107
- key: t,
108
- style: { position: "relative", overflow: "visible", "z-index": "1", "border-radius": "0px", background: "rgb(var(--v-theme-surface))" },
109
- x: d.layout.x,
110
- y: d.layout.y,
111
- h: d.layout.h,
112
- w: d.layout.w
113
- }, [
114
- e(i)[t].enabled ? (o(), n(S, {
115
- key: 0,
116
- position: "absolute",
117
- variant: "tonal",
118
- style: $(e(i)[t].style),
119
- class: "slide-btn",
120
- onClick: (F) => e(x)(t)
121
- }, {
122
- default: l(() => [
123
- c(z, {
124
- icon: e(i)[t].active ? e(i)[t].icon.in : e(i)[t].icon.out
125
- }, null, 8, ["icon"])
126
- ]),
127
- _: 2
128
- /* DYNAMIC */
129
- }, 1032, ["style", "onClick"])) : B("v-if", !0),
130
- (o(), n(
131
- b,
132
- null,
133
- {
134
- fallback: l(() => [
135
- c(g)
136
- ]),
137
- default: l(() => [
138
- (o(), n(
139
- f(e(u)[t].value.component),
140
- _({
141
- key: e(u)[t].value.id
142
- }, e(u)[t].value.props),
143
- null,
144
- 16
145
- /* FULL_PROPS */
146
- ))
147
- ]),
148
- _: 2
149
- /* DYNAMIC */
150
- },
151
- 1024
152
- /* DYNAMIC_SLOTS */
153
- ))
154
- ], 8, N))),
155
- 128
156
- /* KEYED_FRAGMENT */
157
- ))
158
- ], 8, D)
159
- ]),
160
- _: 1
161
- /* STABLE */
162
- });
163
- };
164
- }
165
- };
166
- export {
167
- G as default
168
- };