@eodash/eodash 5.0.0-alpha.2.19 → 5.0.0-alpha.2.21
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.
- package/core/client/App.vue +11 -1
- package/core/client/asWebComponent.js +9 -2
- package/core/client/utils/createLayers.js +1 -0
- package/core/client/views/Dashboard.vue +17 -46
- package/dist/client/DashboardLayout-DEZe5rZn.js +86 -0
- package/dist/client/DynamicWebComponent-Cp_3d3nd.js +88 -0
- package/dist/client/EodashDatePicker-BwQ9Bw9-.js +393 -0
- package/dist/client/EodashItemFilter-BtihrBap.js +194 -0
- package/dist/client/EodashLayerControl-BuZgXYop.js +111 -0
- package/dist/client/EodashMap-C9hvsdhf.js +472 -0
- package/dist/client/EodashMapBtns-BTG6oYL5.js +66 -0
- package/dist/client/ExportState-GDJ8YxS9.js +644 -0
- package/dist/client/Footer-Cul4HvW4.js +141 -0
- package/dist/client/Header-BikVMROv.js +437 -0
- package/dist/client/IframeWrapper-BgM9aU8f.js +28 -0
- package/dist/client/MobileLayout-ByPGOgnO.js +1210 -0
- package/dist/client/PopUp-AJqPEHmR.js +382 -0
- package/dist/client/VImg-CY7ndzv2.js +384 -0
- package/dist/client/VMain-BlIaUbM6.js +43 -0
- package/dist/client/VOverlay-CiMWDe2b.js +1453 -0
- package/dist/client/WidgetsContainer-DG9sQaF0.js +83 -0
- package/dist/client/asWebComponent-6g8pz2_C.js +11557 -0
- package/dist/client/eo-dash.js +2 -6
- package/dist/client/forwardRefs-DnXzPqIo.js +245 -0
- package/dist/client/index-14PHPf-A.js +199 -0
- package/dist/client/ssrBoot-BP7SYRyC.js +22 -0
- package/dist/client/style.css +2 -2
- package/dist/client/transition-CGVKXZbS.js +37 -0
- package/dist/node/cli.js +5 -5
- package/dist/node/types.d.ts +2 -0
- package/package.json +21 -19
- package/widgets/EodashDatePicker.vue +20 -9
- package/core/client/SuspensedDashboard.ce.vue +0 -105
- package/dist/client/DashboardLayout-CU4js3lr.js +0 -156
- package/dist/client/DynamicWebComponent-BsYZdIEB.js +0 -57
- package/dist/client/EodashDatePicker-DZoH_gRX.js +0 -276
- package/dist/client/EodashItemFilter-CHBfsFSm.js +0 -7666
- package/dist/client/EodashLayerControl-CuY-cAx8.js +0 -24665
- package/dist/client/EodashMap-Ch43fWNv.js +0 -88369
- package/dist/client/EodashMapBtns-CFA2uti4.js +0 -50
- package/dist/client/ExportState-C6raDjTt.js +0 -570
- package/dist/client/Footer-D8T5ROhF.js +0 -117
- package/dist/client/Header-B8B4Z5R9.js +0 -350
- package/dist/client/IframeWrapper-BK2JxzSJ.js +0 -19
- package/dist/client/MobileLayout-aZaYvF8V.js +0 -947
- package/dist/client/PopUp-DdHXoNOP.js +0 -300
- package/dist/client/VImg-yb8O1cb8.js +0 -293
- package/dist/client/VMain-Dknnyxts.js +0 -38
- package/dist/client/VOverlay-BCOn3hd6.js +0 -973
- package/dist/client/WidgetsContainer-BixUyr1e.js +0 -129
- package/dist/client/asWebComponent-CHqY8A1z.js +0 -24636
- package/dist/client/basedecoder-DHcBySSe-BmCFNFnw.js +0 -88
- package/dist/client/decoder-DJlmx386-DJlmx386.js +0 -8
- package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +0 -10
- package/dist/client/eox-stacinfo-l7ALSV90.js +0 -13969
- package/dist/client/forwardRefs-dcYA2XVU.js +0 -185
- package/dist/client/index-BVuSHaVu.js +0 -153
- package/dist/client/jpeg-BAgeD1d3-oeHbFPUL.js +0 -514
- package/dist/client/lerc-BPVtQnt3-08GHszVp.js +0 -1027
- package/dist/client/lzw-LAGDNbSC-DkP96qO9.js +0 -84
- package/dist/client/packbits-BlDR4Kj5-C66n1-zr.js +0 -24
- package/dist/client/pako.esm-CB1uQYY0-DB0PYm1P.js +0 -1081
- package/dist/client/raw-CMGvRjfu-BRi6E4i1.js +0 -9
- package/dist/client/ssrBoot-DU2S_nLc.js +0 -17
- package/dist/client/transition-C_fi1aa6.js +0 -34
- package/dist/client/webfontloader-Ofarvipf.js +0 -435
- 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-6g8pz2_C.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 };
|