@eodash/eodash 5.0.0 → 5.2.0
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 -0
- package/core/client/App.vue +8 -2
- package/core/client/asWebComponent.js +5 -5
- package/core/client/components/DashboardLayout.vue +43 -26
- package/core/client/components/EodashOverlay.vue +5 -6
- package/core/client/components/ErrorAlert.vue +2 -2
- package/core/client/components/Footer.vue +4 -4
- package/core/client/components/Header.vue +3 -3
- package/core/client/components/MobileLayout.vue +47 -27
- package/core/client/composables/DefineEodash.js +38 -43
- package/core/client/composables/DefineTemplate.js +4 -2
- package/core/client/composables/DefineWidgets.js +14 -8
- package/core/client/composables/index.js +273 -23
- package/core/client/eodashSTAC/EodashCollection.js +84 -62
- package/core/client/eodashSTAC/createLayers.js +30 -0
- package/core/client/eodashSTAC/helpers.js +159 -28
- package/core/client/eodashSTAC/parquet.js +145 -0
- package/core/client/eodashSTAC/triggers.js +6 -3
- package/core/client/plugins/index.js +4 -3
- package/core/client/plugins/vuetify.js +3 -0
- package/core/client/store/actions.js +21 -4
- package/core/client/store/stac.js +93 -56
- package/core/client/store/states.js +15 -5
- package/core/client/types.ts +59 -43
- package/core/client/utils/index.js +79 -0
- package/core/client/utils/keys.js +2 -2
- package/core/client/utils/states.js +30 -5
- package/core/client/views/Dashboard.vue +36 -32
- package/core/client/vite-env.d.ts +7 -0
- package/dist/client/{DashboardLayout-CkWvOMOW.js → DashboardLayout-Dq9Kfe6O.js} +24 -13
- package/dist/client/{DynamicWebComponent-DYBbpvUK.js → DynamicWebComponent-DCBMXskE.js} +1 -1
- package/dist/client/{EodashDatePicker-CALmW3SI.js → EodashDatePicker-DtngxU6s.js} +59 -32
- package/dist/client/{EodashItemFilter-DlQiE713.js → EodashItemFilter-ClQebJQt.js} +20 -10
- package/dist/client/{EodashLayerControl-DEzEbft7.js → EodashLayerControl-BLBds28C.js} +29 -16
- package/dist/client/EodashLayoutSwitcher-DQ8SfVDd.js +61 -0
- package/dist/client/EodashMapBtns-B89_YBDw.js +326 -0
- package/dist/client/{EodashStacInfo-DPPxDkF6.js → EodashStacInfo-Dt1nF06x.js} +3 -18
- package/dist/client/{EodashTools-CUaL9s4H.js → EodashTools-DV5ykmWc.js} +13 -13
- package/dist/client/{ExportState-DjyIZVhl.js → ExportState-B6zZQUmE.js} +57 -52
- package/dist/client/{Footer-DyL0JoWt.js → Footer-DNhXs8k6.js} +15 -13
- package/dist/client/{Header-B5Dgty9l.js → Header-BjhN5JY4.js} +32 -28
- package/dist/client/MobileLayout-JelB6w1G.js +118 -0
- package/dist/client/{PopUp-BfB8s_ki.js → PopUp-CgpvNr3o.js} +18 -10
- package/dist/client/ProcessList-vecpxThi.js +198 -0
- package/dist/client/{VImg-FD1WVphJ.js → VImg-CETuikH2.js} +221 -26
- package/dist/client/{VMain-DJKG4SvM.js → VMain-Ci9DyaGU.js} +7 -7
- package/dist/client/{VTooltip-CfeefrXI.js → VTooltip-J4ac48X7.js} +12 -10
- package/dist/client/{WidgetsContainer-C2TaTdb6.js → WidgetsContainer-CCML4TyV.js} +1 -1
- package/dist/client/asWebComponent-ZyEzWOOf.js +19092 -0
- package/dist/client/async-B7jIrM53.js +804 -0
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/{VOverlay-BzOdRu9h.js → forwardRefs-BQclvjMq.js} +332 -28
- package/dist/client/handling-BS24aG1q.js +1227 -0
- package/dist/client/helpers-wXK7Ywio.js +4556 -0
- package/dist/client/index-4UCzZi8B.js +376 -0
- package/dist/client/{index-4CT7Tz83.js → index-9KR-G20t.js} +2 -2
- package/dist/client/{index-CIHH_3dW.js → index-B2XpdgR6.js} +227 -86
- package/dist/client/material-symbols-outlined.woff2 +0 -0
- package/dist/client/material-symbols-rounded.woff2 +0 -0
- package/dist/client/material-symbols-sharp.woff2 +0 -0
- package/dist/client/material-symbols-subset.woff2 +0 -0
- package/dist/client/{ssrBoot-BP7SYRyC.js → ssrBoot-Zgc_Ttvi.js} +2 -2
- package/dist/client/templates.js +840 -0
- package/dist/client/transition-yBii4fu6.js +40 -0
- package/dist/node/cli.js +16 -6
- package/dist/node/types.d.ts +1 -1
- package/dist/types/core/client/App.vue.d.ts +2 -2
- package/dist/types/core/client/asWebComponent.d.ts +1 -1
- package/dist/types/core/client/components/DynamicWebComponent.vue.d.ts +1 -3
- package/dist/types/core/client/components/Footer.vue.d.ts +1 -105
- package/dist/types/core/client/components/IframeWrapper.vue.d.ts +1 -1
- package/dist/types/core/client/components/MobileLayout.vue.d.ts +1 -324
- package/dist/types/core/client/composables/DefineEodash.d.ts +2 -2
- package/dist/types/core/client/composables/DefineTemplate.d.ts +1 -1
- package/dist/types/core/client/composables/DefineWidgets.d.ts +4 -4
- package/dist/types/core/client/composables/index.d.ts +24 -2
- package/dist/types/core/client/eodashSTAC/EodashCollection.d.ts +9 -6
- package/dist/types/core/client/eodashSTAC/helpers.d.ts +25 -5
- package/dist/types/core/client/eodashSTAC/parquet.d.ts +2 -0
- package/dist/types/core/client/plugins/vuetify.d.ts +7 -4
- package/dist/types/core/client/store/actions.d.ts +3 -2
- package/dist/types/core/client/store/stac.d.ts +16 -13
- package/dist/types/core/client/store/states.d.ts +14 -4
- package/dist/types/core/client/types.d.ts +46 -31
- package/dist/types/core/client/utils/index.d.ts +2 -0
- package/dist/types/core/client/utils/keys.d.ts +4 -4
- package/dist/types/core/client/utils/states.d.ts +59 -47
- package/dist/types/core/client/views/Dashboard.vue.d.ts +2 -2
- package/dist/types/templates/baseConfig.d.ts +4 -0
- package/dist/types/templates/compare.d.ts +185 -0
- package/dist/types/templates/expert.d.ts +147 -0
- package/dist/types/templates/index.d.ts +6 -0
- package/dist/types/templates/light.d.ts +154 -0
- package/dist/types/widgets/EodashDatePicker.vue.d.ts +1 -458
- package/dist/types/widgets/EodashItemFilter.vue.d.ts +3 -3
- package/dist/types/widgets/EodashLayerControl.vue.d.ts +14 -7
- package/dist/types/widgets/EodashLayoutSwitcher.vue.d.ts +1 -3
- package/dist/types/widgets/{EodashMapBtns.vue.d.ts → EodashMap/EodashMapBtns.vue.d.ts} +12 -8
- package/dist/types/widgets/EodashMap/index.vue.d.ts +9 -4
- package/dist/types/widgets/EodashProcess/ProcessList.vue.d.ts +8 -1
- package/dist/types/widgets/EodashProcess/index.vue.d.ts +8 -4
- package/dist/types/widgets/EodashProcess/methods/async.d.ts +19 -18
- package/dist/types/widgets/EodashProcess/methods/composables.d.ts +3 -2
- package/dist/types/widgets/EodashProcess/methods/custom-endpoints/chart/index.d.ts +1 -0
- package/dist/types/widgets/EodashProcess/methods/custom-endpoints/chart/sentinelhub-endpoint.d.ts +6 -0
- package/dist/types/widgets/EodashProcess/methods/custom-endpoints/chart/veda-endpoint.d.ts +4 -0
- package/dist/types/widgets/EodashProcess/methods/custom-endpoints/layers/eoxhub-workspaces-endpoint.d.ts +5 -0
- package/dist/types/widgets/EodashProcess/methods/custom-endpoints/layers/index.d.ts +1 -0
- package/dist/types/widgets/EodashProcess/methods/handling.d.ts +12 -5
- package/dist/types/widgets/EodashProcess/methods/outputs.d.ts +72 -41
- package/dist/types/widgets/EodashProcess/methods/utils.d.ts +41 -21
- package/dist/types/widgets/EodashProcess/states.d.ts +11 -0
- package/dist/types/widgets/EodashProcess/types.d.ts +41 -0
- package/dist/types/widgets/EodashStacInfo.vue.d.ts +14 -14
- package/dist/types/widgets/EodashTools.vue.d.ts +3 -3
- package/dist/types/widgets/ExportState.vue.d.ts +1 -1
- package/dist/types/widgets/PopUp.vue.d.ts +11 -16
- package/dist/types/widgets/WidgetsContainer.vue.d.ts +3 -6
- package/package.json +55 -45
- package/templates/baseConfig.js +68 -0
- package/templates/compare.js +142 -0
- package/templates/expert.js +124 -0
- package/templates/index.js +8 -0
- package/templates/light.js +139 -0
- package/widgets/EodashDatePicker.vue +80 -31
- package/widgets/EodashItemFilter.vue +26 -11
- package/widgets/EodashLayerControl.vue +20 -11
- package/widgets/EodashLayoutSwitcher.vue +6 -3
- package/widgets/EodashMap/EodashMapBtns.vue +269 -0
- package/widgets/EodashMap/index.vue +255 -45
- package/widgets/EodashMap/methods/create-layers-config.js +4 -3
- package/widgets/EodashMap/methods/index.js +33 -23
- package/widgets/EodashProcess/ProcessList.vue +47 -11
- package/widgets/EodashProcess/index.vue +55 -20
- package/widgets/EodashProcess/methods/async.js +99 -60
- package/widgets/EodashProcess/methods/composables.js +21 -14
- package/widgets/EodashProcess/methods/custom-endpoints/chart/index.js +35 -0
- package/widgets/EodashProcess/methods/custom-endpoints/chart/sentinelhub-endpoint.js +275 -0
- package/widgets/EodashProcess/methods/custom-endpoints/chart/veda-endpoint.js +132 -0
- package/widgets/EodashProcess/methods/custom-endpoints/layers/eoxhub-workspaces-endpoint.js +94 -0
- package/widgets/EodashProcess/methods/custom-endpoints/layers/index.js +33 -0
- package/widgets/EodashProcess/methods/handling.js +127 -80
- package/widgets/EodashProcess/methods/outputs.js +376 -125
- package/widgets/EodashProcess/methods/utils.js +442 -10
- package/widgets/EodashProcess/states.js +13 -0
- package/widgets/EodashProcess/types.ts +46 -0
- package/widgets/EodashStacInfo.vue +2 -17
- package/widgets/EodashTools.vue +13 -13
- package/widgets/WidgetsContainer.vue +1 -1
- package/core/client/eodash.js +0 -454
- package/dist/client/EodashLayoutSwitcher-CDeCV8F-.js +0 -52
- package/dist/client/EodashMapBtns-CktQCfa-.js +0 -131
- package/dist/client/MobileLayout-CRsg_5Q4.js +0 -1217
- package/dist/client/ProcessList-DTefwQZx.js +0 -484
- package/dist/client/asWebComponent-CLhcT715.js +0 -12479
- package/dist/client/eo-dash.css +0 -5
- package/dist/client/forwardRefs-Bon_Kku1.js +0 -245
- package/dist/client/index-Bm9cbtx5.js +0 -201
- package/dist/client/index-DiGDvTQU.js +0 -780
- package/dist/client/transition-C5I57hn6.js +0 -37
- package/dist/types/core/client/eodash.d.ts +0 -8
- package/widgets/EodashMapBtns.vue +0 -113
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { TransitionGroup, Transition, h, mergeProps } from 'vue';
|
|
2
|
-
import { p as propsFactory } from './asWebComponent-CLhcT715.js';
|
|
3
|
-
|
|
4
|
-
// Utilities
|
|
5
|
-
const makeTransitionProps = propsFactory({
|
|
6
|
-
transition: {
|
|
7
|
-
type: [Boolean, String, Object],
|
|
8
|
-
default: 'fade-transition',
|
|
9
|
-
validator: val => val !== true
|
|
10
|
-
}
|
|
11
|
-
}, 'transition');
|
|
12
|
-
const MaybeTransition = (props, _ref) => {
|
|
13
|
-
let {
|
|
14
|
-
slots
|
|
15
|
-
} = _ref;
|
|
16
|
-
const {
|
|
17
|
-
transition,
|
|
18
|
-
disabled,
|
|
19
|
-
group,
|
|
20
|
-
...rest
|
|
21
|
-
} = props;
|
|
22
|
-
const {
|
|
23
|
-
component = group ? TransitionGroup : Transition,
|
|
24
|
-
...customProps
|
|
25
|
-
} = typeof transition === 'object' ? transition : {};
|
|
26
|
-
return h(component, mergeProps(typeof transition === 'string' ? {
|
|
27
|
-
name: disabled ? '' : transition
|
|
28
|
-
} : customProps, typeof transition === 'string' ? {} : Object.fromEntries(Object.entries({
|
|
29
|
-
disabled,
|
|
30
|
-
group
|
|
31
|
-
}).filter(_ref2 => {
|
|
32
|
-
let [_, v] = _ref2;
|
|
33
|
-
return v !== undefined;
|
|
34
|
-
})), rest), slots);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export { MaybeTransition as M, makeTransitionProps as m };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reactive Edoash Instance Object. provided globally in the app, and used as an
|
|
3
|
-
* intermediate object to make user defined instances config reactive.
|
|
4
|
-
*
|
|
5
|
-
* @type {import("./types").Eodash}
|
|
6
|
-
*/
|
|
7
|
-
export const eodash: import("./types").Eodash;
|
|
8
|
-
export default eodash;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div ref="rootRef" class="d-flex flex-column align-end justify-end my-3 pa-2">
|
|
3
|
-
<v-btn
|
|
4
|
-
v-if="exportMap"
|
|
5
|
-
class="map-btn"
|
|
6
|
-
:icon="[mdiMapPlus]"
|
|
7
|
-
@click="showMapState = !showMapState"
|
|
8
|
-
/>
|
|
9
|
-
<ExportState v-if="exportMap" v-model="showMapState" />
|
|
10
|
-
|
|
11
|
-
<v-btn
|
|
12
|
-
class="map-btn"
|
|
13
|
-
:icon="[mdiEarthBox]"
|
|
14
|
-
v-if="changeProjection && !!availableMapProjection"
|
|
15
|
-
@click="changeMapProjection(availableMapProjection)"
|
|
16
|
-
/>
|
|
17
|
-
<v-btn
|
|
18
|
-
class="map-btn"
|
|
19
|
-
:icon="[compareIcon]"
|
|
20
|
-
v-if="compareIndicators"
|
|
21
|
-
@click="onCompareClick"
|
|
22
|
-
/>
|
|
23
|
-
<PopUp
|
|
24
|
-
v-model="showCompareIndicators"
|
|
25
|
-
:maxWidth="popupWidth"
|
|
26
|
-
:maxHeight="popupHeight"
|
|
27
|
-
>
|
|
28
|
-
<EodashItemFilter
|
|
29
|
-
:enableCompare="true"
|
|
30
|
-
filters-title=""
|
|
31
|
-
results-title="Select an indicator to compare"
|
|
32
|
-
:filter-properties="[]"
|
|
33
|
-
@select="onSelectCompareIndicator"
|
|
34
|
-
/>
|
|
35
|
-
</PopUp>
|
|
36
|
-
</div>
|
|
37
|
-
</template>
|
|
38
|
-
<script setup>
|
|
39
|
-
import { makePanelTransparent } from "@/composables";
|
|
40
|
-
import { changeMapProjection, setActiveTemplate } from "@/store/actions";
|
|
41
|
-
import { availableMapProjection } from "@/store/states";
|
|
42
|
-
import { mdiCompare, mdiCompareRemove, mdiEarthBox, mdiMapPlus } from "@mdi/js";
|
|
43
|
-
import ExportState from "^/ExportState.vue";
|
|
44
|
-
import { computed, ref, triggerRef } from "vue";
|
|
45
|
-
import PopUp from "./PopUp.vue";
|
|
46
|
-
import EodashItemFilter from "./EodashItemFilter.vue";
|
|
47
|
-
import { useDisplay } from "vuetify/lib/framework.mjs";
|
|
48
|
-
import { useSTAcStore } from "@/store/stac";
|
|
49
|
-
import { storeToRefs } from "pinia";
|
|
50
|
-
import { switchToCompare } from "@/utils/states";
|
|
51
|
-
|
|
52
|
-
const { compareIndicators, changeProjection, exportMap } = defineProps({
|
|
53
|
-
exportMap: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: true,
|
|
56
|
-
},
|
|
57
|
-
changeProjection: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: true,
|
|
60
|
-
},
|
|
61
|
-
compareIndicators: {
|
|
62
|
-
/** @type {import("vue").PropType<boolean | {compareTemplate?:string;fallbackTemplate?:string}> }*/
|
|
63
|
-
type: [Boolean, Object],
|
|
64
|
-
default: true,
|
|
65
|
-
},
|
|
66
|
-
});
|
|
67
|
-
const { selectedStac, selectedCompareStac } = storeToRefs(useSTAcStore());
|
|
68
|
-
const { smAndDown } = useDisplay();
|
|
69
|
-
const popupWidth = computed(() => (smAndDown ? "70%" : "500px"));
|
|
70
|
-
const popupHeight = computed(() => (smAndDown ? "90%" : "500px"));
|
|
71
|
-
|
|
72
|
-
const showMapState = ref(false);
|
|
73
|
-
const showCompareIndicators = ref(false);
|
|
74
|
-
const compareIcon = computed(() =>
|
|
75
|
-
switchToCompare.value ? mdiCompare : mdiCompareRemove,
|
|
76
|
-
);
|
|
77
|
-
const onCompareClick = () => {
|
|
78
|
-
if (switchToCompare.value) {
|
|
79
|
-
showCompareIndicators.value = !showCompareIndicators.value;
|
|
80
|
-
} else {
|
|
81
|
-
switchToCompare.value = true;
|
|
82
|
-
const fallbackTemplate =
|
|
83
|
-
(typeof compareIndicators === "object" &&
|
|
84
|
-
compareIndicators.fallbackTemplate) ||
|
|
85
|
-
"expert";
|
|
86
|
-
selectedCompareStac.value = null;
|
|
87
|
-
setActiveTemplate(fallbackTemplate);
|
|
88
|
-
triggerRef(selectedStac);
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
/** @type {import("vue").Ref<HTMLDivElement|null>} */
|
|
93
|
-
const rootRef = ref(null);
|
|
94
|
-
|
|
95
|
-
const onSelectCompareIndicator = () => {
|
|
96
|
-
const compareTemplate =
|
|
97
|
-
(typeof compareIndicators === "object" &&
|
|
98
|
-
compareIndicators.compareTemplate) ||
|
|
99
|
-
"compare";
|
|
100
|
-
setActiveTemplate(compareTemplate);
|
|
101
|
-
showCompareIndicators.value = !showCompareIndicators.value;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
makePanelTransparent(rootRef);
|
|
105
|
-
</script>
|
|
106
|
-
<style scoped>
|
|
107
|
-
.map-btn {
|
|
108
|
-
width: 36px;
|
|
109
|
-
height: 36px;
|
|
110
|
-
border-radius: 25%;
|
|
111
|
-
margin: 4px;
|
|
112
|
-
}
|
|
113
|
-
</style>
|