@eodash/eodash 5.0.0-alpha.2.18 → 5.0.0-alpha.2.20

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 (73) hide show
  1. package/core/client/App.vue +11 -1
  2. package/core/client/asWebComponent.js +9 -2
  3. package/core/client/composables/EodashMap.js +83 -97
  4. package/core/client/eodash.js +25 -4
  5. package/core/client/store/Actions.js +6 -0
  6. package/core/client/utils/createLayers.js +25 -10
  7. package/core/client/utils/eodashSTAC.js +13 -5
  8. package/core/client/utils/helpers.js +3 -3
  9. package/core/client/views/Dashboard.vue +17 -46
  10. package/dist/client/DashboardLayout-CPIA_V5h.js +86 -0
  11. package/dist/client/DynamicWebComponent-Bm2S0izi.js +88 -0
  12. package/dist/client/EodashDatePicker-Tdk5Xx9F.js +393 -0
  13. package/dist/client/EodashItemFilter-BUyqlf5G.js +194 -0
  14. package/dist/client/EodashLayerControl-DRYy-Air.js +111 -0
  15. package/dist/client/EodashMap-B_F51bLD.js +472 -0
  16. package/dist/client/EodashMapBtns-COBF3RhH.js +66 -0
  17. package/dist/client/ExportState-DkDHsbWL.js +644 -0
  18. package/dist/client/Footer-D8rQVlJH.js +141 -0
  19. package/dist/client/Header-CasZzQOl.js +437 -0
  20. package/dist/client/IframeWrapper-BgM9aU8f.js +28 -0
  21. package/dist/client/MobileLayout-CukFMuL9.js +1210 -0
  22. package/dist/client/PopUp-BXrxWSQ4.js +382 -0
  23. package/dist/client/VImg-DB_1xaqP.js +384 -0
  24. package/dist/client/VMain-nLmJhfgS.js +43 -0
  25. package/dist/client/VOverlay-naLhQSyZ.js +1453 -0
  26. package/dist/client/WidgetsContainer-CQY2xBg1.js +83 -0
  27. package/dist/client/asWebComponent-CIm1IGNl.js +11556 -0
  28. package/dist/client/eo-dash.js +2 -6
  29. package/dist/client/forwardRefs-q4ZkKtOv.js +245 -0
  30. package/dist/client/index-D-kMSCQA.js +199 -0
  31. package/dist/client/ssrBoot-BP7SYRyC.js +22 -0
  32. package/dist/client/style.css +2 -2
  33. package/dist/client/transition-DKGepKqs.js +37 -0
  34. package/dist/node/cli.js +5 -5
  35. package/dist/node/types.d.ts +2 -0
  36. package/package.json +25 -23
  37. package/widgets/EodashDatePicker.vue +20 -9
  38. package/widgets/EodashLayerControl.vue +21 -4
  39. package/core/client/SuspensedDashboard.ce.vue +0 -105
  40. package/dist/client/DashboardLayout-Dk6lzKZA.js +0 -156
  41. package/dist/client/DynamicWebComponent-BkMCGU7a.js +0 -57
  42. package/dist/client/EodashDatePicker-D27wn0jP.js +0 -276
  43. package/dist/client/EodashItemFilter-DS1mOc2p.js +0 -7651
  44. package/dist/client/EodashLayerControl-BqGA6jbV.js +0 -24534
  45. package/dist/client/EodashMap-BnVrfBnA.js +0 -88027
  46. package/dist/client/EodashMapBtns-rv-U1nI_.js +0 -50
  47. package/dist/client/ExportState-C3Z1ET5c.js +0 -571
  48. package/dist/client/Footer-BBkNiqPm.js +0 -117
  49. package/dist/client/Header-BQKHLO5P.js +0 -350
  50. package/dist/client/IframeWrapper-BX4e2uxq.js +0 -19
  51. package/dist/client/MobileLayout-C2aqobN5.js +0 -947
  52. package/dist/client/PopUp-DG3zrW12.js +0 -300
  53. package/dist/client/VImg-BLpHACcB.js +0 -293
  54. package/dist/client/VMain-DOyRcpub.js +0 -38
  55. package/dist/client/VOverlay-DAiInZQP.js +0 -973
  56. package/dist/client/WidgetsContainer-BqoX7R5Z.js +0 -129
  57. package/dist/client/asWebComponent-tNU8_fkz.js +0 -24518
  58. package/dist/client/basedecoder-DHcBySSe-BmCFNFnw.js +0 -88
  59. package/dist/client/decoder-DJlmx386-DJlmx386.js +0 -8
  60. package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +0 -10
  61. package/dist/client/eox-stacinfo-l7ALSV90.js +0 -13969
  62. package/dist/client/forwardRefs-BexjzXbg.js +0 -185
  63. package/dist/client/index-F73os72i.js +0 -153
  64. package/dist/client/jpeg-BAgeD1d3-oeHbFPUL.js +0 -514
  65. package/dist/client/lerc-B4lXefGh-DhdntrgS.js +0 -1027
  66. package/dist/client/lzw-LAGDNbSC-DkP96qO9.js +0 -84
  67. package/dist/client/packbits-BlDR4Kj5-C66n1-zr.js +0 -24
  68. package/dist/client/pako.esm-CB1uQYY0-DB0PYm1P.js +0 -1081
  69. package/dist/client/raw-CMGvRjfu-BRi6E4i1.js +0 -9
  70. package/dist/client/ssrBoot-C71RpKe4.js +0 -17
  71. package/dist/client/transition-DNdd2Y-1.js +0 -34
  72. package/dist/client/webfontloader-C7dpDL7m.js +0 -435
  73. package/dist/client/webimage-BM_pbLN3-L2cGWK5l.js +0 -19
@@ -0,0 +1,83 @@
1
+ import { ref, onMounted, nextTick, openBlock, createElementBlock, Fragment, renderList, unref, createElementVNode, toDisplayString, normalizeStyle, createBlock, resolveDynamicComponent, mergeProps } from 'vue';
2
+ import { G as useDefineWidgets, H as useLayout } from './asWebComponent-CIm1IGNl.js';
3
+ import 'animated-details';
4
+
5
+ const _sfc_main = {
6
+ __name: 'WidgetsContainer',
7
+ props: {
8
+ widgets: {
9
+ /**
10
+ * @type {import("vue").PropType<
11
+ * Omit<import("@/types").Widget, "layout">[]
12
+ * >}
13
+ */
14
+ type: Array,
15
+ required: true,
16
+ },
17
+ },
18
+ setup(__props) {
19
+
20
+ const props = __props;
21
+
22
+ const importedWidgets = useDefineWidgets(props.widgets);
23
+
24
+ /**
25
+ * Details elements template ref
26
+ *
27
+ * @type {import("vue").Ref<HTMLDetailsElement[]>}
28
+ */
29
+ const detailsEls = ref([]);
30
+ /**
31
+ * Summary elements template ref
32
+ *
33
+ * @type {import("vue").Ref<HTMLDetailsElement[]>}
34
+ */
35
+ const summaryEls = ref([]);
36
+ const widgetHeight = ref("");
37
+ const summariesHeights = ref(0);
38
+
39
+ const { mainRect } = useLayout();
40
+ onMounted(async () => {
41
+ await nextTick(() => {
42
+ summariesHeights.value = summaryEls.value.reduce(
43
+ (acc, el) => (acc += el.clientHeight),
44
+ 0,
45
+ );
46
+ widgetHeight.value =
47
+ (detailsEls.value[0].parentElement?.scrollHeight ?? 0) -
48
+ summariesHeights.value -
49
+ mainRect.value["top"] +
50
+ "px";
51
+ });
52
+ });
53
+
54
+ return (_ctx, _cache) => {
55
+ return (openBlock(true), createElementBlock(Fragment, null, renderList(unref(importedWidgets), (mod, idx) => {
56
+ return (openBlock(), createElementBlock("details", {
57
+ is: "animated-details",
58
+ ref_for: true,
59
+ ref_key: "detailsEls",
60
+ ref: detailsEls,
61
+ key: idx,
62
+ class: "overflow-auto",
63
+ exclusive: ""
64
+ }, [
65
+ createElementVNode("summary", {
66
+ ref_for: true,
67
+ ref_key: "summaryEls",
68
+ ref: summaryEls
69
+ }, toDisplayString(mod.value.title), 513 /* TEXT, NEED_PATCH */),
70
+ createElementVNode("span", {
71
+ style: normalizeStyle({ height: widgetHeight.value }),
72
+ class: "d-flex flex-column"
73
+ }, [
74
+ (openBlock(), createBlock(resolveDynamicComponent(mod.value.component), mergeProps({ ref_for: true }, mod.value.props), null, 16 /* FULL_PROPS */))
75
+ ], 4 /* STYLE */)
76
+ ]))
77
+ }), 128 /* KEYED_FRAGMENT */))
78
+ }
79
+ }
80
+
81
+ };
82
+
83
+ export { _sfc_main as default };