@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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { q as getCompareLayers, p as getLayers, t as replaceLayer, a as extractLayerConfig, v as extractLayerLegend, m as mergeGeojsons, j as axios, U as axios$1, G as compareIndicator, E as indicator } from './helpers-CtE0W7iu.js';
|
|
2
|
+
import { P as useEmitLayersUpdate } from './asWebComponent-CWbNRdf9.js';
|
|
3
3
|
import { isMulti } from '@eox/jsonform/src/custom-inputs/spatial/utils';
|
|
4
4
|
import log from 'loglevel';
|
|
5
5
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module ol/easing
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Start slow and speed up.
|
|
7
|
+
* @param {number} t Input between 0 and 1.
|
|
8
|
+
* @return {number} Output between 0 and 1.
|
|
9
|
+
* @api
|
|
10
|
+
*/
|
|
11
|
+
function easeIn(t) {
|
|
12
|
+
return Math.pow(t, 3);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Start fast and slow down.
|
|
17
|
+
* @param {number} t Input between 0 and 1.
|
|
18
|
+
* @return {number} Output between 0 and 1.
|
|
19
|
+
* @api
|
|
20
|
+
*/
|
|
21
|
+
function easeOut(t) {
|
|
22
|
+
return 1 - easeIn(1 - t);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Start slow, speed up, and then slow down again.
|
|
27
|
+
* @param {number} t Input between 0 and 1.
|
|
28
|
+
* @return {number} Output between 0 and 1.
|
|
29
|
+
* @api
|
|
30
|
+
*/
|
|
31
|
+
function inAndOut(t) {
|
|
32
|
+
return 3 * t * t - 2 * t * t * t;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { easeOut as e, inAndOut as i };
|
package/dist/client/eo-dash.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aI as EodashConstructor, aH as register, aJ as store } from './asWebComponent-CWbNRdf9.js';
|
|
2
2
|
import 'vue';
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { computed, watch, onScopeDispose, nextTick, ref, watchEffect, effectScope, inject, mergeProps, shallowRef, onMounted, toRef, reactive, provide, toValue, toRaw, readonly, warn, onBeforeUnmount, createElementVNode, Fragment, createVNode, Teleport, withDirectives, vShow, Transition } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
import { m as makeTransitionProps, M as MaybeTransition } from './transition-
|
|
2
|
+
import { ar as isOn, as as eventName, p as propsFactory, at as destructComputed, au as parseAnchor, av as flipSide, aw as flipAlign, ax as flipCorner, ay as CircularBuffer, az as deepEqual, X as consoleError, aA as getAxis, o as convertToUnit, v as clamp, ao as IN_BROWSER, y as useToggleScope, aB as defer, ak as getCurrentInstance, aC as templateRef, aD as matchesSelector, D as useDisplay, q as makeThemeProps, d as makeDimensionProps, e as makeComponentProps, g as genericComponent, x as useProxiedModel, k as provideTheme, l as useRtl, f as useBackgroundColor, b as useDimension, aE as useRouter, aF as useBackButton, an as standardEasing, c as useRender } from './asWebComponent-CWbNRdf9.js';
|
|
3
|
+
import { m as makeTransitionProps, M as MaybeTransition } from './transition-Byvp3L6Y.js';
|
|
4
4
|
|
|
5
5
|
class Box {
|
|
6
|
-
constructor(
|
|
7
|
-
|
|
6
|
+
constructor(args) {
|
|
7
|
+
const pageScale = document.body.currentCSSZoom ?? 1;
|
|
8
|
+
const factor = args instanceof DOMRect ? 1 + (1 - pageScale) / pageScale : 1;
|
|
9
|
+
const {
|
|
8
10
|
x,
|
|
9
11
|
y,
|
|
10
12
|
width,
|
|
11
13
|
height
|
|
12
|
-
} =
|
|
13
|
-
this.x = x;
|
|
14
|
-
this.y = y;
|
|
15
|
-
this.width = width;
|
|
16
|
-
this.height = height;
|
|
14
|
+
} = args;
|
|
15
|
+
this.x = x * factor;
|
|
16
|
+
this.y = y * factor;
|
|
17
|
+
this.width = width * factor;
|
|
18
|
+
this.height = height * factor;
|
|
17
19
|
}
|
|
18
20
|
get top() {
|
|
19
21
|
return this.y;
|
|
@@ -42,14 +44,16 @@ function getOverflow(a, b) {
|
|
|
42
44
|
}
|
|
43
45
|
function getTargetBox(target) {
|
|
44
46
|
if (Array.isArray(target)) {
|
|
47
|
+
const pageScale = document.body.currentCSSZoom ?? 1;
|
|
48
|
+
const factor = 1 + (1 - pageScale) / pageScale;
|
|
45
49
|
return new Box({
|
|
46
|
-
x: target[0],
|
|
47
|
-
y: target[1],
|
|
48
|
-
width: 0,
|
|
49
|
-
height: 0
|
|
50
|
+
x: target[0] * factor,
|
|
51
|
+
y: target[1] * factor,
|
|
52
|
+
width: 0 * factor,
|
|
53
|
+
height: 0 * factor
|
|
50
54
|
});
|
|
51
55
|
} else {
|
|
52
|
-
return target.getBoundingClientRect();
|
|
56
|
+
return new Box(target.getBoundingClientRect());
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
function getElementBox(el) {
|
|
@@ -62,11 +66,12 @@ function getElementBox(el) {
|
|
|
62
66
|
height: document.documentElement.clientHeight
|
|
63
67
|
});
|
|
64
68
|
} else {
|
|
69
|
+
const pageScale = document.body.currentCSSZoom ?? 1;
|
|
65
70
|
return new Box({
|
|
66
71
|
x: visualViewport.scale > 1 ? 0 : visualViewport.offsetLeft,
|
|
67
72
|
y: visualViewport.scale > 1 ? 0 : visualViewport.offsetTop,
|
|
68
|
-
width: visualViewport.width * visualViewport.scale,
|
|
69
|
-
height: visualViewport.height * visualViewport.scale
|
|
73
|
+
width: visualViewport.width * visualViewport.scale / pageScale,
|
|
74
|
+
height: visualViewport.height * visualViewport.scale / pageScale
|
|
70
75
|
});
|
|
71
76
|
}
|
|
72
77
|
} else {
|
|
@@ -83,7 +88,7 @@ function getElementBox(el) {
|
|
|
83
88
|
// Utilities
|
|
84
89
|
/** @see https://stackoverflow.com/a/57876601/2074736 */
|
|
85
90
|
function nullifyTransforms(el) {
|
|
86
|
-
const rect = el.getBoundingClientRect();
|
|
91
|
+
const rect = new Box(el.getBoundingClientRect());
|
|
87
92
|
const style = getComputedStyle(el);
|
|
88
93
|
const tx = style.transform;
|
|
89
94
|
if (tx) {
|
|
@@ -212,10 +217,6 @@ function attachedRoot(node) {
|
|
|
212
217
|
return root;
|
|
213
218
|
}
|
|
214
219
|
|
|
215
|
-
const standardEasing = 'cubic-bezier(0.4, 0, 0.2, 1)';
|
|
216
|
-
const deceleratedEasing = 'cubic-bezier(0.0, 0, 0.2, 1)'; // Entering
|
|
217
|
-
const acceleratedEasing = 'cubic-bezier(0.4, 0, 1, 1)'; // Leaving
|
|
218
|
-
|
|
219
220
|
function getScrollParent(el) {
|
|
220
221
|
let includeHidden = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
221
222
|
while (el) {
|
|
@@ -237,7 +238,9 @@ function getScrollParents(el, stopAt) {
|
|
|
237
238
|
function hasScrollbar(el) {
|
|
238
239
|
if (!el || el.nodeType !== Node.ELEMENT_NODE) return false;
|
|
239
240
|
const style = window.getComputedStyle(el);
|
|
240
|
-
|
|
241
|
+
const hasVerticalScrollbar = style.overflowY === 'scroll' || style.overflowY === 'auto' && el.scrollHeight > el.clientHeight;
|
|
242
|
+
const hasHorizontalScrollbar = style.overflowX === 'scroll' || style.overflowX === 'auto' && el.scrollWidth > el.clientWidth;
|
|
243
|
+
return hasVerticalScrollbar || hasHorizontalScrollbar;
|
|
241
244
|
}
|
|
242
245
|
function isPotentiallyScrollable(el) {
|
|
243
246
|
if (!el || el.nodeType !== Node.ELEMENT_NODE) return false;
|
|
@@ -414,7 +417,8 @@ const makeLocationStrategyProps = propsFactory({
|
|
|
414
417
|
type: String,
|
|
415
418
|
default: 'auto'
|
|
416
419
|
},
|
|
417
|
-
offset: [Number, String, Array]
|
|
420
|
+
offset: [Number, String, Array],
|
|
421
|
+
stickToTarget: Boolean
|
|
418
422
|
}, 'VOverlay-location-strategies');
|
|
419
423
|
function useLocationStrategies(props, data) {
|
|
420
424
|
const contentStyles = ref({});
|
|
@@ -564,11 +568,23 @@ function connectedLocationStrategy(data, props, contentStyles) {
|
|
|
564
568
|
const result = updateLocation();
|
|
565
569
|
if (result) flipped.push(result.flipped);
|
|
566
570
|
});
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
571
|
+
let targetBox = new Box({
|
|
572
|
+
x: 0,
|
|
573
|
+
y: 0,
|
|
574
|
+
width: 0,
|
|
575
|
+
height: 0
|
|
576
|
+
});
|
|
577
|
+
watch(data.target, (newTarget, oldTarget) => {
|
|
570
578
|
if (oldTarget && !Array.isArray(oldTarget)) observer.unobserve(oldTarget);
|
|
571
|
-
if (
|
|
579
|
+
if (!Array.isArray(newTarget)) {
|
|
580
|
+
if (newTarget) observer.observe(newTarget);
|
|
581
|
+
} else if (!deepEqual(newTarget, oldTarget)) {
|
|
582
|
+
updateLocation();
|
|
583
|
+
}
|
|
584
|
+
}, {
|
|
585
|
+
immediate: true
|
|
586
|
+
});
|
|
587
|
+
watch(data.contentEl, (newContentEl, oldContentEl) => {
|
|
572
588
|
if (oldContentEl) observer.unobserve(oldContentEl);
|
|
573
589
|
if (newContentEl) observer.observe(newContentEl);
|
|
574
590
|
}, {
|
|
@@ -577,12 +593,6 @@ function connectedLocationStrategy(data, props, contentStyles) {
|
|
|
577
593
|
onScopeDispose(() => {
|
|
578
594
|
observer.disconnect();
|
|
579
595
|
});
|
|
580
|
-
let targetBox = new Box({
|
|
581
|
-
x: 0,
|
|
582
|
-
y: 0,
|
|
583
|
-
width: 0,
|
|
584
|
-
height: 0
|
|
585
|
-
});
|
|
586
596
|
|
|
587
597
|
// eslint-disable-next-line max-statements
|
|
588
598
|
function updateLocation() {
|
|
@@ -729,19 +739,19 @@ function connectedLocationStrategy(data, props, contentStyles) {
|
|
|
729
739
|
|
|
730
740
|
// shift
|
|
731
741
|
if (overflows.x.before) {
|
|
732
|
-
x += overflows.x.before;
|
|
742
|
+
if (!props.stickToTarget) x += overflows.x.before;
|
|
733
743
|
contentBox.x += overflows.x.before;
|
|
734
744
|
}
|
|
735
745
|
if (overflows.x.after) {
|
|
736
|
-
x -= overflows.x.after;
|
|
746
|
+
if (!props.stickToTarget) x -= overflows.x.after;
|
|
737
747
|
contentBox.x -= overflows.x.after;
|
|
738
748
|
}
|
|
739
749
|
if (overflows.y.before) {
|
|
740
|
-
y += overflows.y.before;
|
|
750
|
+
if (!props.stickToTarget) y += overflows.y.before;
|
|
741
751
|
contentBox.y += overflows.y.before;
|
|
742
752
|
}
|
|
743
753
|
if (overflows.y.after) {
|
|
744
|
-
y -= overflows.y.after;
|
|
754
|
+
if (!props.stickToTarget) y -= overflows.y.after;
|
|
745
755
|
contentBox.y -= overflows.y.after;
|
|
746
756
|
}
|
|
747
757
|
|
|
@@ -750,9 +760,9 @@ function connectedLocationStrategy(data, props, contentStyles) {
|
|
|
750
760
|
const overflows = getOverflow(contentBox, viewport);
|
|
751
761
|
available.x = viewport.width - overflows.x.before - overflows.x.after;
|
|
752
762
|
available.y = viewport.height - overflows.y.before - overflows.y.after;
|
|
753
|
-
x += overflows.x.before;
|
|
763
|
+
if (!props.stickToTarget) x += overflows.x.before;
|
|
754
764
|
contentBox.x += overflows.x.before;
|
|
755
|
-
y += overflows.y.before;
|
|
765
|
+
if (!props.stickToTarget) y += overflows.y.before;
|
|
756
766
|
contentBox.y += overflows.y.before;
|
|
757
767
|
}
|
|
758
768
|
break;
|
|
@@ -871,11 +881,12 @@ function closeScrollStrategy(data) {
|
|
|
871
881
|
function onScroll(e) {
|
|
872
882
|
data.isActive.value = false;
|
|
873
883
|
}
|
|
874
|
-
bindScroll(data.
|
|
884
|
+
bindScroll(getTargetEl(data.target.value, data.contentEl.value), onScroll);
|
|
875
885
|
}
|
|
876
886
|
function blockScrollStrategy(data, props) {
|
|
877
887
|
const offsetParent = data.root.value?.offsetParent;
|
|
878
|
-
const
|
|
888
|
+
const target = getTargetEl(data.target.value, data.contentEl.value);
|
|
889
|
+
const scrollElements = [...new Set([...getScrollParents(target, props.contained ? offsetParent : undefined), ...getScrollParents(data.contentEl.value, props.contained ? offsetParent : undefined)])].filter(el => !el.classList.contains('v-overlay-scroll-blocked'));
|
|
879
890
|
const scrollbarWidth = window.innerWidth - document.documentElement.offsetWidth;
|
|
880
891
|
const scrollableParent = (el => hasScrollbar(el) && el)(offsetParent || document.documentElement);
|
|
881
892
|
if (scrollableParent) {
|
|
@@ -922,7 +933,7 @@ function repositionScrollStrategy(data, props, scope) {
|
|
|
922
933
|
}
|
|
923
934
|
ric = (typeof requestIdleCallback === 'undefined' ? cb => cb() : requestIdleCallback)(() => {
|
|
924
935
|
scope.run(() => {
|
|
925
|
-
bindScroll(data.
|
|
936
|
+
bindScroll(getTargetEl(data.target.value, data.contentEl.value), e => {
|
|
926
937
|
if (slow) {
|
|
927
938
|
// If the position calculation is slow,
|
|
928
939
|
// defer updates until scrolling is finished.
|
|
@@ -945,8 +956,9 @@ function repositionScrollStrategy(data, props, scope) {
|
|
|
945
956
|
cancelAnimationFrame(raf);
|
|
946
957
|
});
|
|
947
958
|
}
|
|
948
|
-
|
|
949
|
-
|
|
959
|
+
function getTargetEl(target, contentEl) {
|
|
960
|
+
return Array.isArray(target) ? document.elementsFromPoint(...target).find(el => !contentEl?.contains(el)) : target ?? contentEl;
|
|
961
|
+
}
|
|
950
962
|
function bindScroll(el, onScroll) {
|
|
951
963
|
const scrollElements = [document, ...getScrollParents(el)];
|
|
952
964
|
scrollElements.forEach(el => {
|
|
@@ -1522,6 +1534,7 @@ const VOverlay = genericComponent()({
|
|
|
1522
1534
|
root,
|
|
1523
1535
|
contentEl,
|
|
1524
1536
|
targetEl,
|
|
1537
|
+
target,
|
|
1525
1538
|
isActive,
|
|
1526
1539
|
updateLocation
|
|
1527
1540
|
});
|
|
@@ -1763,4 +1776,4 @@ function forwardRefs(target) {
|
|
|
1763
1776
|
});
|
|
1764
1777
|
}
|
|
1765
1778
|
|
|
1766
|
-
export { VOverlay as V, animate as a,
|
|
1779
|
+
export { VOverlay as V, animate as a, forwardRefs as f, getTargetBox as g, makeVOverlayProps as m, nullifyTransforms as n, useScopeId as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import log from 'loglevel';
|
|
2
|
-
import { s as separateEndpointLinks, c as createTiffLayerDefinition, p as pollProcessStatus, e as extractAsyncResults, u as updateJobsStatus, a as creatAsyncProcessLayerDefinitions, g as getBboxProperty, b as generateTimePairs, f as updateJsonformSchemaTarget, h as extractGeometries, i as applyProcessLayersToMap } from './async-
|
|
3
|
-
import {
|
|
2
|
+
import { s as separateEndpointLinks, c as createTiffLayerDefinition, p as pollProcessStatus, e as extractAsyncResults, u as updateJobsStatus, a as creatAsyncProcessLayerDefinitions, g as getBboxProperty, b as generateTimePairs, f as updateJsonformSchemaTarget, h as extractGeometries, i as applyProcessLayersToMap } from './async-BA7oWCMX.js';
|
|
3
|
+
import { j as axios, a as extractLayerConfig, G as compareIndicator, E as indicator, w as extractCollectionUrls, F as currentCompareUrl, z as currentUrl, x as generateLinksFromItems, n as getDatetimeProperty, A as datetime, H as comparePoi, B as poi } from './helpers-CtE0W7iu.js';
|
|
4
4
|
import mustache from 'mustache';
|
|
5
|
-
import {
|
|
5
|
+
import { Q as isFirstLoad, E as useSTAcStore, S as readParquetItems, T as useGetSubCodeId } from './asWebComponent-CWbNRdf9.js';
|
|
6
6
|
import { toAbsolute } from 'stac-js/src/http.js';
|
|
7
7
|
|
|
8
8
|
////// --- CHARTS --- //////
|
|
@@ -227,7 +227,7 @@ async function processGeoTiff({
|
|
|
227
227
|
}) {
|
|
228
228
|
if (!links) return;
|
|
229
229
|
|
|
230
|
-
const [geotiffLinks
|
|
230
|
+
const [geotiffLinks] = separateEndpointLinks(
|
|
231
231
|
links,
|
|
232
232
|
"service",
|
|
233
233
|
"image/tiff",
|
|
@@ -323,6 +323,7 @@ async function processVector(links, jsonformValue, layerId) {
|
|
|
323
323
|
type: "Vector",
|
|
324
324
|
source: {
|
|
325
325
|
type: "Vector",
|
|
326
|
+
//@ts-expect-error TODO
|
|
326
327
|
url: mustache.render(link.href, {
|
|
327
328
|
...(jsonformValue ?? {}),
|
|
328
329
|
}),
|
|
@@ -862,10 +863,13 @@ async function fetchVedaCOGsConfig(selectedStac, absoluteUrl) {
|
|
|
862
863
|
const parquetAsset = Object.values(collection.assets ?? {}).find(
|
|
863
864
|
(asset) =>
|
|
864
865
|
asset.type === "application/vnd.apache.parquet" &&
|
|
865
|
-
|
|
866
|
+
asset.roles?.includes("collection-mirror"),
|
|
866
867
|
);
|
|
867
868
|
if (parquetAsset) {
|
|
868
|
-
const parquetAbsoluteUrl = toAbsolute(
|
|
869
|
+
const parquetAbsoluteUrl = toAbsolute(
|
|
870
|
+
parquetAsset.href,
|
|
871
|
+
toAbsolute(link.href, absoluteUrl),
|
|
872
|
+
);
|
|
869
873
|
await readParquetItems(parquetAbsoluteUrl).then((items) => {
|
|
870
874
|
collection.links.push(...generateLinksFromItems(items));
|
|
871
875
|
});
|
|
@@ -1105,7 +1109,9 @@ async function handleProcesses({
|
|
|
1105
1109
|
for (const layer of newLayers) {
|
|
1106
1110
|
if (layer.type === "WebGLTile" && layer.source?.type === "GeoTIFF") {
|
|
1107
1111
|
processResults.value.push(...(layer.source.sources ?? []));
|
|
1112
|
+
//@ts-expect-error TODO
|
|
1108
1113
|
} else if (layer.source && "url" in layer.source) {
|
|
1114
|
+
//@ts-expect-error TODO
|
|
1109
1115
|
processResults.value.push(layer.source.url);
|
|
1110
1116
|
}
|
|
1111
1117
|
}
|