@eodash/eodash 5.0.0-alpha.2.8 → 5.0.0-processing
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/README.md +1 -1
- package/core/client/App.vue +13 -1
- package/core/client/asWebComponent.js +13 -3
- package/core/client/components/DashboardLayout.vue +6 -2
- package/core/client/composables/DefineEodash.js +1 -1
- package/core/client/composables/EodashMap.js +349 -0
- package/core/client/composables/EodashProcess.js +575 -0
- package/core/client/composables/index.js +107 -24
- package/core/client/eodash.js +83 -10
- package/core/client/plugins/axios.js +8 -0
- package/core/client/plugins/index.js +2 -1
- package/core/client/store/Actions.js +63 -12
- package/core/client/store/States.js +19 -0
- package/core/client/store/stac.js +98 -8
- package/core/client/types.d.ts +25 -18
- package/core/client/utils/createLayers.js +313 -0
- package/core/client/utils/eodashSTAC.js +320 -170
- package/core/client/utils/helpers.js +369 -9
- package/core/client/utils/keys.js +2 -0
- package/core/client/utils/states.js +17 -0
- package/core/client/views/Dashboard.vue +17 -46
- package/core/client/vite-env.d.ts +1 -9
- package/dist/client/DashboardLayout-CVMJ4l8M.js +87 -0
- package/dist/client/DynamicWebComponent-Cv8n457T.js +88 -0
- package/dist/client/EodashDatePicker-VVkiPmpc.js +394 -0
- package/dist/client/EodashItemFilter-CugWNQ86.js +194 -0
- package/dist/client/EodashLayerControl-53WghA8G.js +110 -0
- package/dist/client/EodashMap-CQnOePpy.js +486 -0
- package/dist/client/EodashMapBtns-uaRwFtfB.js +66 -0
- package/dist/client/EodashProcess-cF0unIy8.js +1477 -0
- package/dist/client/ExportState-BT8MLAW7.js +644 -0
- package/dist/client/Footer-C6GUG84G.js +141 -0
- package/dist/client/Header-D2dtCWp8.js +437 -0
- package/dist/client/IframeWrapper-BgM9aU8f.js +28 -0
- package/dist/client/MobileLayout-BAo8Wr8T.js +1210 -0
- package/dist/client/PopUp-Bm01q7Ko.js +389 -0
- package/dist/client/VImg-B8AbetCE.js +384 -0
- package/dist/client/VMain-DnGlQUyr.js +43 -0
- package/dist/client/VOverlay-B8Qj7LRG.js +1453 -0
- package/dist/client/WidgetsContainer-CwXRRLS1.js +83 -0
- package/dist/client/asWebComponent-DUUoR7MZ.js +11621 -0
- package/dist/client/eo-dash.js +2 -6
- package/dist/client/forwardRefs-CZJhEAKW.js +245 -0
- package/dist/client/index-DlIO7sJ3.js +199 -0
- package/dist/client/ssrBoot-BP7SYRyC.js +22 -0
- package/dist/client/style.css +2 -2
- package/dist/client/transition-BiR8wMn1.js +37 -0
- package/dist/node/cli.js +4 -4
- package/dist/node/types.d.ts +2 -0
- package/dist/types/core/client/App.vue.d.ts +7 -0
- package/dist/types/core/client/asWebComponent.d.ts +9 -0
- package/dist/types/core/client/components/DashboardLayout.vue.d.ts +2 -0
- package/dist/types/core/client/components/DynamicWebComponent.vue.d.ts +18 -0
- package/dist/types/core/client/components/ErrorAlert.vue.d.ts +2 -0
- package/dist/types/core/client/components/Footer.vue.d.ts +2 -0
- package/dist/types/core/client/components/Header.vue.d.ts +2 -0
- package/dist/types/core/client/components/IframeWrapper.vue.d.ts +7 -0
- package/dist/types/core/client/components/Loading.vue.d.ts +2 -0
- package/dist/types/core/client/components/MobileLayout.vue.d.ts +2 -0
- package/dist/types/core/client/composables/DefineEodash.d.ts +2 -0
- package/dist/types/core/client/composables/DefineTemplate.d.ts +15 -0
- package/dist/types/core/client/composables/DefineWidgets.d.ts +14 -0
- package/dist/types/core/client/composables/EodashMap.d.ts +5 -0
- package/dist/types/core/client/composables/index.d.ts +30 -0
- package/dist/types/core/client/eodash.d.ts +8 -0
- package/dist/types/core/client/main.d.ts +2 -0
- package/dist/types/core/client/plugins/axios.d.ts +2 -0
- package/dist/types/core/client/plugins/index.d.ts +3 -0
- package/dist/types/core/client/plugins/vuetify.d.ts +82 -0
- package/dist/types/core/client/render.d.ts +1 -0
- package/dist/types/core/client/store/Actions.d.ts +12 -0
- package/dist/types/core/client/store/States.d.ts +22 -0
- package/dist/types/core/client/store/index.d.ts +2 -0
- package/dist/types/core/client/store/stac.d.ts +25 -0
- package/dist/types/core/client/types.d.ts +279 -0
- package/dist/types/core/client/utils/createLayers.d.ts +45 -0
- package/dist/types/core/client/utils/eodashSTAC.d.ts +82 -0
- package/dist/types/core/client/utils/helpers.d.ts +84 -0
- package/dist/types/core/client/utils/index.d.ts +2 -0
- package/dist/types/core/client/utils/keys.d.ts +6 -0
- package/dist/types/core/client/utils/states.d.ts +14 -0
- package/dist/types/core/client/views/Dashboard.vue.d.ts +9 -0
- package/dist/types/widgets/EodashDatePicker.vue.d.ts +7 -0
- package/dist/types/widgets/EodashItemFilter.vue.d.ts +42 -0
- package/dist/types/widgets/EodashLayerControl.vue.d.ts +11 -0
- package/dist/types/widgets/EodashLayoutSwitcher.vue.d.ts +9 -0
- package/dist/types/widgets/EodashMap.vue.d.ts +7 -0
- package/dist/types/widgets/EodashMapBtns.vue.d.ts +11 -0
- package/dist/types/widgets/EodashStacInfo.vue.d.ts +21 -0
- package/dist/types/widgets/EodashTools.vue.d.ts +15 -0
- package/dist/types/widgets/ExportState.vue.d.ts +7 -0
- package/dist/types/widgets/PopUp.vue.d.ts +22 -0
- package/dist/types/widgets/WidgetsContainer.vue.d.ts +7 -0
- package/package.json +58 -37
- package/widgets/EodashDatePicker.vue +128 -100
- package/widgets/EodashItemFilter.vue +149 -47
- package/widgets/EodashLayerControl.vue +98 -0
- package/widgets/EodashMap.vue +98 -122
- package/widgets/EodashMapBtns.vue +24 -7
- package/widgets/EodashProcess.vue +151 -0
- package/widgets/ExportState.vue +15 -11
- package/core/client/SuspensedDashboard.ce.vue +0 -105
- package/dist/client/DashboardLayout-CKOExc7r.js +0 -156
- package/dist/client/DynamicWebComponent-m1Zbbw6n.js +0 -57
- package/dist/client/EodashDatePicker-CGdJRGZJ.js +0 -252
- package/dist/client/EodashItemFilter-BjM_LHaE.js +0 -63
- package/dist/client/EodashMap-61UMC8sv.js +0 -86917
- package/dist/client/EodashMapBtns-DVITfAFx.js +0 -36
- package/dist/client/ExportState-DhpK09GR.js +0 -558
- package/dist/client/Footer-CIwjaddz.js +0 -115
- package/dist/client/Header-BcM-pZFi.js +0 -350
- package/dist/client/IframeWrapper-CAe6HPqe.js +0 -19
- package/dist/client/MobileLayout-DcZOQX8r.js +0 -945
- package/dist/client/PopUp-DCaITceG.js +0 -300
- package/dist/client/VImg-C-I_7puM.js +0 -291
- package/dist/client/VMain-Cd3P0YTG.js +0 -39
- package/dist/client/VOverlay-AcvFgk39.js +0 -967
- package/dist/client/WidgetsContainer-B0-q0EMO.js +0 -129
- package/dist/client/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/client/asWebComponent-zuKR9I1w.js +0 -20361
- package/dist/client/basedecoder-DHcBySSe-BmCFNFnw.js +0 -88
- package/dist/client/decoder-CP4lv0Kb-DdKalImK.js +0 -10
- package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +0 -10
- package/dist/client/eodashSTAC-DGB50vNk.js +0 -2788
- package/dist/client/eox-itemfilter-TaBxgqq_.js +0 -7565
- package/dist/client/eox-stacinfo-l7ALSV90.js +0 -13969
- package/dist/client/forwardRefs-BnxE4iKQ.js +0 -185
- package/dist/client/index-hSIi5Ygk.js +0 -153
- package/dist/client/jpeg-BAgeD1d3-oeHbFPUL.js +0 -514
- package/dist/client/lerc-DzVumYtB-cTUap6k_.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-D3KF5Thc.js +0 -17
- package/dist/client/transition-D3a4tiJv.js +0 -34
- package/dist/client/webfontloader-qotgY98I.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-DUUoR7MZ.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 };
|