@eodash/eodash 5.2.0 → 5.3.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/core/client/components/DashboardLayout.vue +0 -1
- package/core/client/composables/index.js +53 -59
- package/core/client/eodashSTAC/EodashCollection.js +196 -94
- package/core/client/eodashSTAC/auth.js +86 -0
- package/core/client/eodashSTAC/createLayers.js +204 -4
- package/core/client/eodashSTAC/helpers.js +258 -58
- package/core/client/eodashSTAC/parquet.js +0 -13
- package/core/client/eodashSTAC/triggers.js +1 -1
- package/core/client/store/actions.js +14 -0
- package/core/client/store/stac.js +46 -8
- package/core/client/store/states.js +6 -0
- package/core/client/types.ts +206 -3
- package/core/client/utils/bands-editor/arithmetic.js +144 -0
- package/core/client/utils/bands-editor/colors.js +36 -0
- package/core/client/utils/bands-editor/dom.js +196 -0
- package/core/client/utils/bands-editor/exampleSchema.json +1320 -0
- package/core/client/utils/bands-editor/index.js +68 -0
- package/core/client/utils/bands-editor/rgb.js +102 -0
- package/core/client/utils/index.js +5 -2
- package/core/client/views/Dashboard.vue +1 -1
- package/core/client/vite-env.d.ts +122 -0
- package/dist/client/{DashboardLayout-Dq9Kfe6O.js → DashboardLayout-Cq15p4TH.js} +4 -5
- package/dist/client/{DynamicWebComponent-DCBMXskE.js → DynamicWebComponent-Cv-fPRG1.js} +1 -1
- package/dist/client/{EodashDatePicker-DtngxU6s.js → EodashDatePicker-CPlJwEIO.js} +20 -22
- package/dist/client/{EodashItemFilter-ClQebJQt.js → EodashItemFilter-Ydebgbjj.js} +46 -31
- package/dist/client/EodashLayerControl-COhrkNEs.js +1517 -0
- package/dist/client/{EodashLayoutSwitcher-DQ8SfVDd.js → EodashLayoutSwitcher-pnKhTRZV.js} +4 -4
- package/dist/client/EodashMapBtns-Cj0Fx119.js +301 -0
- package/dist/client/{EodashStacInfo-Dt1nF06x.js → EodashStacInfo-Dadkg_Nj.js} +1 -1
- package/dist/client/EodashTimeSlider-CpoHX0S7.js +53 -0
- package/dist/client/{EodashTools-DV5ykmWc.js → EodashTools-UGBG7KC9.js} +10 -7
- package/dist/client/{ExportState-B6zZQUmE.js → ExportState-GtJkAqeZ.js} +145 -120
- package/dist/client/{Footer-DNhXs8k6.js → Footer-D3ZPG5c4.js} +1 -1
- package/dist/client/{Header-BjhN5JY4.js → Header-z6AK-wpN.js} +2 -2
- package/dist/client/MobileLayout-BXNsNftb.js +118 -0
- package/dist/client/{PopUp-CgpvNr3o.js → PopUp-BbQdjENV.js} +79 -43
- package/dist/client/{ProcessList-vecpxThi.js → ProcessList-C6VsdsYI.js} +5 -6
- package/dist/client/{VImg-CETuikH2.js → VImg-CxaMSB99.js} +6 -3
- package/dist/client/{VMain-Ci9DyaGU.js → VMain-Ds7yw0wj.js} +1 -1
- package/dist/client/{VTooltip-J4ac48X7.js → VTooltip-Cze6CEVh.js} +2 -2
- package/dist/client/{WidgetsContainer-CCML4TyV.js → WidgetsContainer-D66bj-JJ.js} +1 -1
- package/dist/client/asWebComponent-CWbNRdf9.js +8895 -0
- package/dist/client/{async-B7jIrM53.js → async-BA7oWCMX.js} +2 -2
- package/dist/client/easing-CH0-9wR8.js +35 -0
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/{forwardRefs-BQclvjMq.js → forwardRefs-BUfxOIo-.js} +58 -45
- package/dist/client/{handling-BS24aG1q.js → handling-DlNTtKB-.js} +12 -6
- package/dist/client/{helpers-wXK7Ywio.js → helpers-CtE0W7iu.js} +572 -277
- package/dist/client/{index-4UCzZi8B.js → index-CeEZIjO6.js} +26 -13
- package/dist/client/{index-B2XpdgR6.js → index-CsKbRDeN.js} +63 -36
- package/dist/client/{index-9KR-G20t.js → index-D4_NRKrf.js} +2 -2
- package/dist/client/index-DeECc3lV.js +571 -0
- package/dist/client/templates.js +82 -15
- package/dist/client/{transition-yBii4fu6.js → transition-Byvp3L6Y.js} +1 -1
- package/dist/node/cli.js +6 -6
- package/dist/types/core/client/eodashSTAC/EodashCollection.d.ts +24 -10
- package/dist/types/core/client/eodashSTAC/auth.d.ts +7 -0
- package/dist/types/core/client/eodashSTAC/createLayers.d.ts +15 -3
- package/dist/types/core/client/eodashSTAC/helpers.d.ts +46 -15
- package/dist/types/core/client/plugins/vuetify.d.ts +14 -14
- package/dist/types/core/client/store/actions.d.ts +2 -0
- package/dist/types/core/client/store/stac.d.ts +16 -7
- package/dist/types/core/client/store/states.d.ts +4 -0
- package/dist/types/core/client/types.d.ts +170 -2
- package/dist/types/core/client/utils/bands-editor/arithmetic.d.ts +8 -0
- package/dist/types/core/client/utils/bands-editor/colors.d.ts +15 -0
- package/dist/types/core/client/utils/bands-editor/dom.d.ts +42 -0
- package/dist/types/core/client/utils/bands-editor/index.d.ts +20 -0
- package/dist/types/core/client/utils/bands-editor/rgb.d.ts +15 -0
- package/dist/types/core/client/utils/index.d.ts +1 -1
- package/dist/types/templates/baseConfig.d.ts +87 -1
- package/dist/types/templates/expert.d.ts +6 -6
- package/dist/types/templates/explore.d.ts +67 -0
- package/dist/types/templates/index.d.ts +1 -1
- package/dist/types/templates/{light.d.ts → lite.d.ts} +5 -5
- package/dist/types/widgets/EodashItemCatalog/index.vue.d.ts +21 -0
- package/dist/types/widgets/EodashItemCatalog/methods/filters.d.ts +49 -0
- package/dist/types/widgets/EodashItemCatalog/methods/handlers.d.ts +4 -0
- package/dist/types/widgets/EodashItemCatalog/methods/map.d.ts +12 -0
- package/dist/types/widgets/EodashItemCatalog/types.d.ts +14 -0
- package/dist/types/widgets/EodashMap/EodashMapBtns.vue.d.ts +2 -0
- package/dist/types/widgets/EodashMap/index.vue.d.ts +108 -2
- package/dist/types/widgets/EodashMap/methods/create-layers-config.d.ts +1 -1
- package/dist/types/widgets/EodashMap/methods/index.d.ts +1 -1
- package/dist/types/widgets/EodashProcess/methods/custom-endpoints/layers/eoxhub-workspaces-endpoint.d.ts +1 -1
- package/dist/types/widgets/EodashTimeSlider.vue.d.ts +7 -0
- package/dist/types/widgets/EodashTools.vue.d.ts +10 -10
- package/dist/types/widgets/ExportState.vue.d.ts +2 -0
- package/package.json +28 -27
- package/templates/baseConfig.js +10 -5
- package/templates/compare.js +2 -2
- package/templates/expert.js +5 -5
- package/templates/explore.js +62 -0
- package/templates/index.js +1 -1
- package/templates/{light.js → lite.js} +1 -1
- package/widgets/EodashDatePicker.vue +15 -18
- package/widgets/EodashItemCatalog/index.vue +161 -0
- package/widgets/EodashItemCatalog/methods/filters.js +216 -0
- package/widgets/EodashItemCatalog/methods/handlers.js +50 -0
- package/widgets/EodashItemCatalog/methods/map.js +144 -0
- package/widgets/EodashItemCatalog/types.ts +15 -0
- package/widgets/EodashItemFilter.vue +35 -28
- package/widgets/EodashLayerControl.vue +10 -6
- package/widgets/EodashLayoutSwitcher.vue +1 -1
- package/widgets/EodashMap/EodashMapBtns.vue +18 -9
- package/widgets/EodashMap/index.vue +22 -12
- package/widgets/EodashMap/methods/create-layers-config.js +9 -6
- package/widgets/EodashMap/methods/index.js +27 -13
- package/widgets/EodashProcess/index.vue +17 -1
- package/widgets/EodashProcess/methods/custom-endpoints/chart/veda-endpoint.js +9 -3
- package/widgets/EodashProcess/methods/handling.js +2 -0
- package/widgets/EodashProcess/methods/outputs.js +1 -0
- package/widgets/EodashTimeSlider.vue +40 -0
- package/widgets/EodashTools.vue +7 -3
- package/widgets/ExportState.vue +53 -22
- package/dist/client/EodashLayerControl-BLBds28C.js +0 -154
- package/dist/client/EodashMapBtns-B89_YBDw.js +0 -326
- package/dist/client/MobileLayout-JelB6w1G.js +0 -118
- package/dist/client/asWebComponent-ZyEzWOOf.js +0 -19092
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { computed, ref, createElementBlock, openBlock, createCommentVNode, mergeProps, unref, renderSlot, createElementVNode, toDisplayString } from 'vue';
|
|
2
|
-
import '@eox/layercontrol';
|
|
3
|
-
import '@eox/jsonform';
|
|
4
|
-
import '@eox/timecontrol';
|
|
5
|
-
import 'color-legend-element';
|
|
6
|
-
import { I as mapCompareEl, d as mapEl, J as getColFromLayer } from './helpers-wXK7Ywio.js';
|
|
7
|
-
import { _ as _export_sfc, E as useSTAcStore, K as layerControlFormValueCompare, L as layerControlFormValue, J as eodashCompareCollections, I as eodashCollections } from './asWebComponent-ZyEzWOOf.js';
|
|
8
|
-
import { storeToRefs } from 'pinia';
|
|
9
|
-
|
|
10
|
-
const _style_0 = "eox-layercontrol[data-v-88d02d9c]{overflow:auto}";
|
|
11
|
-
|
|
12
|
-
const _hoisted_1 = { class: "d-flex flex-column" };
|
|
13
|
-
const _hoisted_2 = ["for"];
|
|
14
|
-
const _hoisted_3 = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "mt-2 mb-2"
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const _sfc_main = {
|
|
21
|
-
__name: 'EodashLayerControl',
|
|
22
|
-
props: {
|
|
23
|
-
map: {
|
|
24
|
-
/** @type {import("vue").PropType<"first" | "second">} */
|
|
25
|
-
//@ts-expect-error todo
|
|
26
|
-
type: String,
|
|
27
|
-
default: "first",
|
|
28
|
-
},
|
|
29
|
-
tools: {
|
|
30
|
-
type: Array,
|
|
31
|
-
default: () => ["datetime", "info", "config", "legend", "opacity"],
|
|
32
|
-
},
|
|
33
|
-
title: {
|
|
34
|
-
type: String || Boolean,
|
|
35
|
-
default: "Layers",
|
|
36
|
-
},
|
|
37
|
-
cssVars: {
|
|
38
|
-
type: Object,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
setup(__props) {
|
|
42
|
-
|
|
43
|
-
const props = __props;
|
|
44
|
-
|
|
45
|
-
const config = {
|
|
46
|
-
tools: props.tools,
|
|
47
|
-
style: props.cssVars,
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const { selectedCompareStac, selectedStac } = storeToRefs(useSTAcStore());
|
|
51
|
-
const showControls = computed(() => {
|
|
52
|
-
if (props.map === "second") {
|
|
53
|
-
return mapCompareEl.value !== null && selectedCompareStac.value !== null;
|
|
54
|
-
}
|
|
55
|
-
return mapEl.value !== null && selectedStac.value !== null;
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
const eodashCols =
|
|
59
|
-
props.map === "second" ? eodashCompareCollections : eodashCollections;
|
|
60
|
-
const mapElement = props.map === "second" ? mapCompareEl : mapEl;
|
|
61
|
-
|
|
62
|
-
/** @type { import("vue").Ref<HTMLElement & Record<string,any> | null>} */
|
|
63
|
-
const eoxLayercontrol = ref(null);
|
|
64
|
-
|
|
65
|
-
/** @param {CustomEvent<{layer:import('ol/layer').Layer; datetime:string;}>} evt */
|
|
66
|
-
const handleDatetimeUpdate = async (evt) => {
|
|
67
|
-
const { layer, datetime } = evt.detail;
|
|
68
|
-
|
|
69
|
-
const ec = await getColFromLayer(eodashCols, layer);
|
|
70
|
-
|
|
71
|
-
/** @type {Record<string,any>[] | undefined} */
|
|
72
|
-
let updatedLayers = [];
|
|
73
|
-
|
|
74
|
-
if (ec) {
|
|
75
|
-
updatedLayers = await ec.updateLayerJson(
|
|
76
|
-
datetime,
|
|
77
|
-
layer.get("id"),
|
|
78
|
-
props.map,
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
/** @type {Record<String,any>[] | undefined} */
|
|
82
|
-
const dataLayers = updatedLayers?.find(
|
|
83
|
-
(l) => l?.properties?.id === "AnalysisGroup",
|
|
84
|
-
)?.layers;
|
|
85
|
-
|
|
86
|
-
if (dataLayers?.length) {
|
|
87
|
-
// Add expand to all analysis layers
|
|
88
|
-
dataLayers?.forEach((dl) => {
|
|
89
|
-
dl.properties.layerControlExpand = true;
|
|
90
|
-
dl.properties.layerControlToolsExpand = true;
|
|
91
|
-
});
|
|
92
|
-
// assign layers to the map
|
|
93
|
-
/** @type {HTMLElement & Record<string,any>} */
|
|
94
|
-
(mapElement.value).layers = updatedLayers;
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
// ----- debounce logic
|
|
99
|
-
/** @type {NodeJS.Timeout | undefined} */
|
|
100
|
-
let timeout;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @param {CustomEvent<{layer:import('ol/layer').Layer; datetime:string;}>} evt
|
|
104
|
-
**/
|
|
105
|
-
const debouncedHandleDateTime = (evt) => {
|
|
106
|
-
clearTimeout(timeout);
|
|
107
|
-
timeout = setTimeout(() => {
|
|
108
|
-
handleDatetimeUpdate(evt);
|
|
109
|
-
}, 500);
|
|
110
|
-
};
|
|
111
|
-
// ------
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* @param {Event & {detail:{layer:import("ol/layer").Layer;jsonformValue:Record<string,any>}}} evt
|
|
115
|
-
*/
|
|
116
|
-
const onLayerConfigChange = (evt) => {
|
|
117
|
-
if (props.map === "second") {
|
|
118
|
-
layerControlFormValueCompare.value = evt.detail.jsonformValue;
|
|
119
|
-
} else {
|
|
120
|
-
layerControlFormValue.value = evt.detail.jsonformValue;
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
return (_ctx, _cache) => {
|
|
125
|
-
return (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
126
|
-
(showControls.value)
|
|
127
|
-
? (openBlock(), createElementBlock("eox-layercontrol", mergeProps({ key: unref(mapElement) }, config, {
|
|
128
|
-
for: unref(mapElement),
|
|
129
|
-
"onDatetime:updated": debouncedHandleDateTime,
|
|
130
|
-
toolsAsList: "true",
|
|
131
|
-
style: {"--eox-background-color":"transparent"},
|
|
132
|
-
ref_key: "eoxLayercontrol",
|
|
133
|
-
ref: eoxLayercontrol,
|
|
134
|
-
"on:layerConfig:change": onLayerConfigChange
|
|
135
|
-
}), [
|
|
136
|
-
renderSlot(_ctx.$slots, "layerstitle", {}, () => [
|
|
137
|
-
createElementVNode("div", null, [
|
|
138
|
-
(__props.title)
|
|
139
|
-
? (openBlock(), createElementBlock("p", _hoisted_3, [
|
|
140
|
-
createElementVNode("strong", null, toDisplayString(__props.title), 1 /* TEXT */)
|
|
141
|
-
]))
|
|
142
|
-
: createCommentVNode("v-if", true)
|
|
143
|
-
])
|
|
144
|
-
], true)
|
|
145
|
-
], 16 /* FULL_PROPS */, _hoisted_2))
|
|
146
|
-
: createCommentVNode("v-if", true)
|
|
147
|
-
]))
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
};
|
|
152
|
-
const EodashLayerControl = /*#__PURE__*/_export_sfc(_sfc_main, [['styles',[_style_0]],['__scopeId',"data-v-88d02d9c"]]);
|
|
153
|
-
|
|
154
|
-
export { EodashLayerControl as default };
|