@eodash/eodash 5.3.2 → 5.4.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.
Files changed (67) hide show
  1. package/core/client/composables/DefineEodash.js +3 -1
  2. package/core/client/eodashSTAC/EodashCollection.js +29 -43
  3. package/core/client/eodashSTAC/auth.js +19 -15
  4. package/core/client/eodashSTAC/createLayers.js +318 -163
  5. package/core/client/eodashSTAC/helpers.js +64 -42
  6. package/core/client/eodashSTAC/parquet.js +1 -0
  7. package/core/client/eodashSTAC/triggers.js +7 -6
  8. package/core/client/store/states.js +1 -1
  9. package/core/client/types.ts +15 -9
  10. package/core/client/utils/states.js +32 -0
  11. package/dist/client/{DashboardLayout-BHQnHqWW.js → DashboardLayout-CQOGHPW_.js} +2 -2
  12. package/dist/client/{DynamicWebComponent-B4PdeZ9P.js → DynamicWebComponent-CoLO8FEf.js} +1 -1
  13. package/dist/client/{EodashDatePicker-Ch_AXVas.js → EodashDatePicker-BZeQ6bcu.js} +3 -3
  14. package/dist/client/{EodashItemFilter-lTuzCl08.js → EodashItemFilter-CmZkk7GK.js} +1 -1
  15. package/dist/client/{EodashLayerControl-CBSGRlIi.js → EodashLayerControl-D54fY-bX.js} +2 -2
  16. package/dist/client/{EodashLayoutSwitcher-DdwQYoI4.js → EodashLayoutSwitcher-BCP3FvDb.js} +3 -3
  17. package/dist/client/{EodashMapBtns-B910ylV6.js → EodashMapBtns-D-HulIl1.js} +14 -9
  18. package/dist/client/{EodashStacInfo-CeHGMZ8x.js → EodashStacInfo-BZbmT8vT.js} +1 -1
  19. package/dist/client/{EodashTimeSlider-BApJJK0u.js → EodashTimeSlider-DIcAJr6D.js} +2 -2
  20. package/dist/client/{EodashTools-CJVm0k-Q.js → EodashTools-Cz6X6hsF.js} +4 -4
  21. package/dist/client/{ExportState-NXzNGWYq.js → ExportState-DFVFAgKz.js} +4 -4
  22. package/dist/client/{Footer-DfXUC8IK.js → Footer-DLzQcjkI.js} +1 -1
  23. package/dist/client/{Header-BHgaNMEH.js → Header-_D9Z-zFJ.js} +2 -2
  24. package/dist/client/{MobileLayout-B77RzrNe.js → MobileLayout-3Ko9XSfO.js} +2 -2
  25. package/dist/client/{PopUp-BJwqRDNq.js → PopUp-DwI8V2gW.js} +2 -2
  26. package/dist/client/{ProcessList-BFvV4RvS.js → ProcessList-C9eAg2Sb.js} +20 -8
  27. package/dist/client/{VImg-RGGIQ_yA.js → VImg-COXTnCWE.js} +2 -2
  28. package/dist/client/{VMain-CniQR94B.js → VMain-C74l1bv-.js} +1 -1
  29. package/dist/client/{VTooltip-D5dnTfem.js → VTooltip-BLS-cQ9N.js} +2 -2
  30. package/dist/client/{WidgetsContainer-CvnR4J1T.js → WidgetsContainer-D-VfMRxE.js} +1 -1
  31. package/dist/client/{asWebComponent-Dptqds6-.js → asWebComponent-Bw03Jutr.js} +390 -220
  32. package/dist/client/{async-C1hb39Tc.js → async-D4G-FOIc.js} +13 -3
  33. package/dist/client/eo-dash.js +1 -1
  34. package/dist/client/{forwardRefs-CiSZZEn2.js → forwardRefs-CRMFoNYN.js} +2 -2
  35. package/dist/client/{handling-CZ537GCL.js → handling-DTAhQuPh.js} +94 -10
  36. package/dist/client/{helpers-DoQGyrvY.js → helpers-CsjKHAcK.js} +72 -50
  37. package/dist/client/{index-4sC2BIcK.js → index-BHilH1qx.js} +17 -13
  38. package/dist/client/{index-wcTqj0PZ.js → index-BIcmbjr0.js} +55 -16
  39. package/dist/client/{index--uKz-mt4.js → index-BoCcZ0l4.js} +3 -3
  40. package/dist/client/{index-DTxo2ysK.js → index-DEmHaCL3.js} +2 -2
  41. package/dist/client/templates.js +6 -2
  42. package/dist/client/{transition-CFfv5MCB.js → transition-6MJLK-_H.js} +1 -1
  43. package/dist/types/core/client/composables/DefineEodash.d.ts +1 -1
  44. package/dist/types/core/client/eodashSTAC/EodashCollection.d.ts +28 -11
  45. package/dist/types/core/client/eodashSTAC/auth.d.ts +5 -5
  46. package/dist/types/core/client/eodashSTAC/createLayers.d.ts +30 -23
  47. package/dist/types/core/client/eodashSTAC/helpers.d.ts +19 -4
  48. package/dist/types/core/client/types.d.ts +2 -1
  49. package/dist/types/core/client/utils/states.d.ts +28 -0
  50. package/dist/types/templates/index.d.ts +1 -0
  51. package/dist/types/widgets/EodashMap/EodashMapBtns.vue.d.ts +2 -0
  52. package/dist/types/widgets/EodashMap/index.vue.d.ts +2 -0
  53. package/dist/types/widgets/EodashProcess/methods/handling.d.ts +13 -0
  54. package/dist/types/widgets/EodashProcess/methods/utils.d.ts +1 -0
  55. package/package.json +2 -2
  56. package/templates/expert.js +4 -0
  57. package/templates/index.js +2 -0
  58. package/widgets/EodashMap/EodashMapBtns.vue +15 -0
  59. package/widgets/EodashMap/index.vue +17 -4
  60. package/widgets/EodashMap/methods/create-layers-config.js +23 -0
  61. package/widgets/EodashMap/methods/index.js +9 -7
  62. package/widgets/EodashProcess/ProcessList.vue +10 -2
  63. package/widgets/EodashProcess/index.vue +1 -9
  64. package/widgets/EodashProcess/methods/composables.js +13 -1
  65. package/widgets/EodashProcess/methods/custom-endpoints/chart/veda-endpoint.js +15 -6
  66. package/widgets/EodashProcess/methods/handling.js +77 -0
  67. package/widgets/EodashProcess/methods/utils.js +10 -0
@@ -1,13 +1,13 @@
1
1
  import { onMounted, onUnmounted, watch, computed, useTemplateRef, ref, toRaw, createElementBlock, openBlock, createElementVNode, createCommentVNode, unref, normalizeStyle, createVNode } from 'vue';
2
2
  import '@eox/map';
3
3
  import '@eox/map/src/plugins/advancedLayersAndSources';
4
- import { P as setMapProjFromCol, E as mapPosition, M as sanitizeBbox, h as mapEl, N as mapCompareEl, F as indicator, H as compareIndicator, C as poi, B as datetime } from './helpers-DoQGyrvY.js';
4
+ import { Q as setMapProjFromCol, F as mapPosition, N as sanitizeBbox, j as mapEl, O as mapCompareEl, G as indicator, I as compareIndicator, D as poi, C as datetime } from './helpers-CsjKHAcK.js';
5
5
  import { storeToRefs } from 'pinia';
6
- import { O as EodashCollection, E as useSTAcStore, P as useEmitLayersUpdate, Q as isFirstLoad, K as useOnLayersUpdate, _ as _export_sfc, D as useDisplay, N as layerControlFormValue, M as layerControlFormValueCompare, J as eodashCompareCollections, I as eodashCollections } from './asWebComponent-Dptqds6-.js';
6
+ import { O as EodashCollection, E as useSTAcStore, P as useEmitLayersUpdate, Q as isFirstLoad, K as useOnLayersUpdate, _ as _export_sfc, D as useDisplay, a as useLayout, N as layerControlFormValue, M as layerControlFormValueCompare, J as eodashCompareCollections, I as eodashCollections } from './asWebComponent-Bw03Jutr.js';
7
7
  import log from 'loglevel';
8
8
  import { i as inAndOut } from './easing-CH0-9wR8.js';
9
9
  import mustache from 'mustache';
10
- import EodashMapBtns from './EodashMapBtns-B910ylV6.js';
10
+ import EodashMapBtns from './EodashMapBtns-D-HulIl1.js';
11
11
 
12
12
  /**
13
13
  * Creates full layer configuration from indicator and time information
@@ -60,6 +60,29 @@ const createLayersConfig = async (
60
60
  dataLayers.layers.push(...layers);
61
61
  }
62
62
 
63
+ /* check for roles in indicator links to assign visibility property for the data layers */
64
+ if (selectedIndicator?.links) {
65
+ const visibilityLinks = selectedIndicator.links.filter(
66
+ (link) =>
67
+ Array.isArray(link.roles) &&
68
+ (link.roles.includes("disable") || link.roles.includes("hidden")),
69
+ );
70
+ if (visibilityLinks.length > 0) {
71
+ visibilityLinks.forEach((vl) => {
72
+ const targetLayerId = vl.id;
73
+ const targetLayer = dataLayers.layers.find(
74
+ (dl) => dl.properties.id.split(";:;")[0] === targetLayerId,
75
+ );
76
+ if (targetLayer) {
77
+ if (Array.isArray(vl.roles) && vl.roles.includes("disable")) {
78
+ targetLayer.properties.visible = false;
79
+ } else if (Array.isArray(vl.roles) && vl.roles.includes("hidden")) {
80
+ targetLayer.properties.layerControlHide = true;
81
+ }
82
+ }
83
+ });
84
+ }
85
+ }
63
86
  layersCollection.push(dataLayers);
64
87
  const indicatorLayers =
65
88
  //@ts-expect-error indicator is collection
@@ -309,13 +332,6 @@ const useInitMap = (
309
332
  return;
310
333
  }
311
334
 
312
- /** @type {Record<string,any>[]} */
313
- layersCollection = await createLayersConfig(
314
- updatedStac,
315
- eodashCols,
316
- selectedItem ? updatedItem : updatedTime,
317
- );
318
-
319
335
  // We try to set the current time selection to latest extent date
320
336
  let endInterval = null;
321
337
  const interval = updatedStac?.extent?.temporal?.interval;
@@ -334,8 +350,17 @@ const useInitMap = (
334
350
  !isFirstLoad.value
335
351
  ) {
336
352
  datetime.value = endInterval.toISOString();
353
+ } else if (isFirstLoad.value && !datetime.value && endInterval) {
354
+ datetime.value = endInterval.toISOString();
337
355
  }
338
356
 
357
+ /** @type {Record<string,any>[]} */
358
+ layersCollection = await createLayersConfig(
359
+ updatedStac,
360
+ eodashCols,
361
+ updatedItem ?? updatedTime,
362
+ );
363
+
339
364
  if (zoomToExtent) {
340
365
  // Try to move map view to extent only when main
341
366
  // indicator and map changes
@@ -407,7 +432,7 @@ const useUpdateTooltipProperties = (eodashCols, tooltipProperties) => {
407
432
  });
408
433
  };
409
434
 
410
- const _style_0 = "#cursor-coordinates[data-v-fc8f0071]{position:fixed;left:24px;bottom:54px;color:#000000e6;font-size:11px;font-family:var(--eox-body-font-family);background:#fffe;border-radius:4px;border:none;padding:0 3px;max-height:24px}@media (max-width: 959px){#cursor-coordinates[data-v-fc8f0071]{display:none}}#scale-line[data-v-fc8f0071]{position:fixed;left:24px;bottom:28px;color:#fff}@media (max-width: 959px){#scale-line[data-v-fc8f0071]{bottom:102px}}[data-v-fc8f0071] .ol-scale-line{background:#fffe!important;border-radius:4px!important;border:none!important;padding:0 3px 3px!important;font-size:10px!important;font-family:var(--eox-body-font-family);max-height:20px}[data-v-fc8f0071] .ol-scale-line-inner{display:flex;justify-content:center;border:1px solid rgba(0,0,0,.5)!important;border-top:none!important;color:#333!important;font-weight:500!important;transform:translateY(1px)}.map-buttons-container[data-v-fc8f0071]{position:fixed;top:0;left:0;width:100%;height:100%;display:grid;grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(12,1fr);pointer-events:none;z-index:1}.map-buttons-container[data-v-fc8f0071]>*{pointer-events:auto}";
435
+ const _style_0 = "#cursor-coordinates[data-v-5143a869]{position:fixed;left:24px;bottom:54px;color:#000000e6;font-size:11px;font-family:var(--eox-body-font-family);background:#fffe;border-radius:4px;border:none;padding:0 3px;max-height:24px}@media (max-width: 959px){#cursor-coordinates[data-v-5143a869]{display:none}}#scale-line[data-v-5143a869]{position:fixed;left:24px;bottom:28px;color:#fff}@media (max-width: 959px){#scale-line[data-v-5143a869]{bottom:102px}}[data-v-5143a869] .ol-scale-line{background:#fffe!important;border-radius:4px!important;border:none!important;padding:0 3px 3px!important;font-size:10px!important;font-family:var(--eox-body-font-family);max-height:20px}[data-v-5143a869] .ol-scale-line-inner{display:flex;justify-content:center;border:1px solid rgba(0,0,0,.5)!important;border-top:none!important;color:#333!important;font-weight:500!important;transform:translateY(1px)}.map-buttons-container[data-v-5143a869]{position:fixed;left:0;width:100%;height:100%;display:grid;grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(12,1fr);pointer-events:none;z-index:1}.map-buttons-container[data-v-5143a869]>*{pointer-events:auto}";
411
436
 
412
437
  const _hoisted_1 = [".enabled"];
413
438
  const _hoisted_2 = [".center", ".zoom", ".layers", ".controls"];
@@ -469,6 +494,7 @@ const _sfc_main = {
469
494
  * enableChangeProjection?: boolean;
470
495
  * enableBackToPOIs?: boolean;
471
496
  * enableSearch?: boolean;
497
+ * searchParams?: object;
472
498
  * enableZoom?: boolean;
473
499
  * enableCompareIndicators?: boolean | {
474
500
  * compareTemplate?:string;
@@ -484,6 +510,7 @@ const _sfc_main = {
484
510
  enableBackToPOIs: true,
485
511
  enableSearch: true,
486
512
  enableZoom: true,
513
+ searchParams: {},
487
514
  }),
488
515
  },
489
516
  },
@@ -528,6 +555,7 @@ const btnsProps = computed(() => ({
528
555
  backToPOIs: props.btns.enableBackToPOIs ?? true,
529
556
  enableSearch: props.btns.enableSearch ?? true,
530
557
  enableZoom: props.btns.enableZoom ?? true,
558
+ searchParams: props.btns.searchParams,
531
559
  }));
532
560
 
533
561
  // Prepare containers for scale line and cursor coordinates
@@ -691,7 +719,10 @@ const tooltipPropertyTransform = (map) => {
691
719
  param.value = JSON.stringify(param.value);
692
720
  }
693
721
  if (!isNaN(Number(param.value))) {
694
- param.value = Number(param.value).toFixed(4).toString();
722
+ const decimals = !isNaN(Number(tooltipProp.decimals))
723
+ ? Number(tooltipProp.decimals)
724
+ : 4;
725
+ param.value = Number(param.value).toFixed(decimals).toString();
695
726
  }
696
727
 
697
728
  return {
@@ -700,6 +731,13 @@ const tooltipPropertyTransform = (map) => {
700
731
  };
701
732
  };
702
733
  };
734
+ const { mainRect } = useLayout();
735
+ const btnsTop = ref(0);
736
+ onMounted(() => {
737
+ const eoDash = document.querySelector("eo-dash");
738
+ btnsTop.value =
739
+ (mainRect.value.top || eoDash?.getBoundingClientRect().top) ?? 0;
740
+ });
703
741
 
704
742
  return (_ctx, _cache) => {
705
743
  return (openBlock(), createElementBlock("span", null, [
@@ -746,7 +784,7 @@ return (_ctx, _cache) => {
746
784
  : createCommentVNode("v-if", true),
747
785
  createElementVNode("div", {
748
786
  class: "map-buttons-container",
749
- style: normalizeStyle(`margin: ${__props.btnsPosition.gap}px 0 ${__props.btnsPosition.gap}px 0`)
787
+ style: normalizeStyle(`margin: ${__props.btnsPosition.gap}px 0 ${__props.btnsPosition.gap}px 0; top: ${btnsTop.value}px;`)
750
788
  }, [
751
789
  createCommentVNode(" prettier-ignore "),
752
790
  createVNode(EodashMapBtns, {
@@ -764,14 +802,15 @@ return (_ctx, _cache) => {
764
802
  enableSearch: (unref(indicator) || unref(compareIndicator) || unref(poi)) ? btnsProps.value.enableSearch : false
765
803
  ,
766
804
  enableZoom: (unref(indicator) || unref(compareIndicator) || unref(poi)) ? btnsProps.value.enableZoom : false
767
-
768
- }, null, 8 /* PROPS */, ["style", "exportMap", "changeProjection", "compareIndicators", "backToPOIs", "enableSearch", "enableZoom"])
805
+ ,
806
+ searchParams: btnsProps.value.searchParams
807
+ }, null, 8 /* PROPS */, ["style", "exportMap", "changeProjection", "compareIndicators", "backToPOIs", "enableSearch", "enableZoom", "searchParams"])
769
808
  ], 4 /* STYLE */)
770
809
  ]))
771
810
  }
772
811
  }
773
812
 
774
813
  };
775
- const index = /*#__PURE__*/_export_sfc(_sfc_main, [['styles',[_style_0]],['__scopeId',"data-v-fc8f0071"]]);
814
+ const index = /*#__PURE__*/_export_sfc(_sfc_main, [['styles',[_style_0]],['__scopeId',"data-v-5143a869"]]);
776
815
 
777
816
  export { index as default };
@@ -1,9 +1,9 @@
1
1
  import { onMounted, onUnmounted, withAsyncContext, useTemplateRef, ref, createElementBlock, openBlock, createVNode, createElementVNode, withCtx, unref, toDisplayString } from 'vue';
2
- import { E as useSTAcStore, K as useOnLayersUpdate, _ as _export_sfc, L as VRow } from './asWebComponent-Dptqds6-.js';
3
- import { F as indicator, h as mapEl, M as sanitizeBbox, j as axios } from './helpers-DoQGyrvY.js';
2
+ import { E as useSTAcStore, K as useOnLayersUpdate, _ as _export_sfc, L as VRow } from './asWebComponent-Bw03Jutr.js';
3
+ import { G as indicator, j as mapEl, N as sanitizeBbox, d as axios } from './helpers-CsjKHAcK.js';
4
4
  import { i as inAndOut } from './easing-CH0-9wR8.js';
5
5
  import { mdiViewDashboard } from '@mdi/js';
6
- import _sfc_main$1 from './EodashLayoutSwitcher-DdwQYoI4.js';
6
+ import _sfc_main$1 from './EodashLayoutSwitcher-BCP3FvDb.js';
7
7
 
8
8
  /**
9
9
  *
@@ -1,6 +1,6 @@
1
1
  import { resolveComponent, render, h, mergeProps } from 'vue';
2
- import { X as consoleError, Y as isObject } from './asWebComponent-Dptqds6-.js';
3
- import { V as VTooltip } from './VTooltip-D5dnTfem.js';
2
+ import { X as consoleError, Y as isObject } from './asWebComponent-Bw03Jutr.js';
3
+ import { V as VTooltip } from './VTooltip-BLS-cQ9N.js';
4
4
 
5
5
  // Utilities
6
6
  function useDirectiveComponent(component, props) {
@@ -1,5 +1,5 @@
1
1
  import { mdiViewDashboardVariant, mdiViewDashboard } from '@mdi/js';
2
- import { L as includesProcess } from './helpers-DoQGyrvY.js';
2
+ import { M as includesProcess } from './helpers-CsjKHAcK.js';
3
3
 
4
4
  /**
5
5
  * Special values that tell deepmerge to perform a certain action.
@@ -546,6 +546,10 @@ const expert = {
546
546
  },
547
547
  enableBackToPOIs: true,
548
548
  enableSearch: true,
549
+ // searchParams: {
550
+ // countrycode: "gb,ie,fr"
551
+ // bounds: "-84.26514,41.58998,-77.54150,46.14246"
552
+ // },
549
553
  },
550
554
  btnsPosition: {
551
555
  x: "12/9/9",
@@ -904,4 +908,4 @@ const getBaseConfig = (config) => {
904
908
  return merged;
905
909
  };
906
910
 
907
- export { compare, getBaseConfig as default, expert, getBaseConfig, lite };
911
+ export { compare, getBaseConfig as default, expert, explore, getBaseConfig, lite };
@@ -1,5 +1,5 @@
1
1
  import { mergeProps, h, TransitionGroup, Transition } from 'vue';
2
- import { p as propsFactory, Y as isObject, aG as onlyDefinedProps } from './asWebComponent-Dptqds6-.js';
2
+ import { p as propsFactory, Y as isObject, aG as onlyDefinedProps } from './asWebComponent-Bw03Jutr.js';
3
3
 
4
4
  // Utilities
5
5
  const makeTransitionProps = propsFactory({
@@ -1,2 +1,2 @@
1
- export function useEodashRuntime(runtimeConfig: string | undefined | (() => Promise<import("../types").Eodash>) | Function): Promise<import("../types").Eodash | null | undefined>;
1
+ export function useEodashRuntime(runtimeConfig?: string | undefined | (() => Promise<import("../types").Eodash>) | Function): Promise<import("../types").Eodash | null | undefined>;
2
2
  export function createEodash<T extends import("../types").Eodash>(config: T | ((store: typeof import("../store").default) => Promise<T>)): Promise<T>;
@@ -9,13 +9,21 @@ export class EodashCollection {
9
9
  type: string;
10
10
  source: {
11
11
  type: string;
12
- url: string;
13
- projection: string;
12
+ url: string | undefined;
13
+ format: {
14
+ type: string;
15
+ dataProjection: string;
16
+ };
14
17
  attributions: unknown;
15
18
  };
16
19
  properties: {
17
20
  layerConfig?: {
18
21
  style: import("../types").EodashStyleJson | undefined;
22
+ } | {
23
+ style: import("../types").EodashStyleJson | undefined;
24
+ schema: any;
25
+ legend: any;
26
+ type: string;
19
27
  } | undefined;
20
28
  id: string;
21
29
  title: string;
@@ -27,16 +35,18 @@ export class EodashCollection {
27
35
  type: string;
28
36
  source: {
29
37
  type: string;
30
- url: string | undefined;
31
- format: {
32
- type: string;
33
- dataProjection: string | undefined;
34
- };
35
- attributions: {}[];
38
+ projection: string;
39
+ attributions: unknown;
40
+ url: string;
36
41
  };
37
42
  properties: {
38
43
  layerConfig?: {
39
44
  style: import("../types").EodashStyleJson | undefined;
45
+ } | {
46
+ style: import("../types").EodashStyleJson | undefined;
47
+ schema: any;
48
+ legend: any;
49
+ type: string;
40
50
  } | undefined;
41
51
  id: string;
42
52
  title: string;
@@ -51,12 +61,19 @@ export class EodashCollection {
51
61
  sources: {
52
62
  url: string;
53
63
  attributions: unknown;
64
+ } | {
65
+ url: string;
66
+ attributions: unknown;
54
67
  }[];
55
68
  };
56
69
  properties: {
57
70
  id: string;
58
71
  title: string;
59
- layerConfig: Record<string, unknown> | undefined;
72
+ layerConfig: Record<string, unknown> | {
73
+ schema: any;
74
+ legend: any;
75
+ type: string;
76
+ } | undefined;
60
77
  layerDatetime: Record<string, unknown> | undefined;
61
78
  };
62
79
  style: import("../types").EodashStyleJson | undefined;
@@ -122,13 +139,12 @@ export class EodashCollection {
122
139
  createLayersJson: (itemOrDate?: import("stac-ts").StacItem | import("stac-ts").StacLink | Date) => Promise<Record<string, any>[]>;
123
140
  /**
124
141
  * @param {import("stac-ts").StacItem} item
125
- * @param {string} itemUrl
126
142
  * @param {string} title
127
143
  * @param {boolean} isObservationPoint
128
144
  * @param {string} [itemDatetime]
129
145
  * @returns {Promise<Record<string,any>[]>} layers
130
146
  * */
131
- buildJsonArray(item: import("stac-ts").StacItem, itemUrl: string, title: string, isObservationPoint: boolean, itemDatetime?: string): Promise<Record<string, any>[]>;
147
+ buildJsonArray(item: import("stac-ts").StacItem, title: string, isObservationPoint: boolean, itemDatetime?: string): Promise<Record<string, any>[]>;
132
148
  fetchCollection(): Promise<import("stac-ts").StacCollection>;
133
149
  /**
134
150
  * Returns all item links sorted by datetime ascendingly
@@ -150,6 +166,7 @@ export class EodashCollection {
150
166
  id: string;
151
167
  title?: string;
152
168
  appendix?: string;
169
+ decimals?: number;
153
170
  }[]>;
154
171
  /**
155
172
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Generic handler for possible authentications schemes as defined in STAC authentication extension.
3
- * @param {import("../types").StacAuthItem } item
4
- * @param {import("../types").StacAuthLink | import("../types").StacAuthAsset} linkOrAsset
5
- * @returns {string}
6
- */
2
+ * Generic handler for possible authentications schemes as defined in STAC authentication extension.
3
+ * @param {import("../types").StacAuthItem } item
4
+ * @param {import("../types").StacAuthLink | import("../types").StacAuthAsset} linkOrAsset
5
+ * @returns {string}
6
+ */
7
7
  export function handleAuthenticationOfLink(item: import("../types").StacAuthItem, linkOrAsset: import("../types").StacAuthLink | import("../types").StacAuthAsset): string;
@@ -2,25 +2,31 @@
2
2
  * @param {string} collectionId
3
3
  * @param {string} title
4
4
  * @param {Record<string,import("stac-ts").StacAsset>} assets
5
- * @param {import("stac-ts").StacItem } item
6
- * @param {import("../types").EodashStyleJson} [style]
7
- * @param {Record<string, unknown>} [layerConfig]
5
+ * @param {import("stac-ts").StacItem | import("stac-ts").StacCollection } stacObject
8
6
  * @param {Record<string, unknown>} [layerDatetime]
9
7
  * @param {object | null} [extraProperties]
10
8
  **/
11
- export function createLayersFromAssets(collectionId: string, title: string, assets: Record<string, import("stac-ts").StacAsset>, item: import("stac-ts").StacItem, style?: import("../types").EodashStyleJson, layerConfig?: Record<string, unknown>, layerDatetime?: Record<string, unknown>, extraProperties?: object | null): Promise<({
9
+ export function createLayersFromAssets(collectionId: string, title: string, assets: Record<string, import("stac-ts").StacAsset>, stacObject: import("stac-ts").StacItem | import("stac-ts").StacCollection, layerDatetime?: Record<string, unknown>, extraProperties?: object | null): Promise<({
12
10
  interactions: never[];
13
11
  style?: import("../types").EodashStyleJson | undefined;
14
12
  type: string;
15
13
  source: {
16
14
  type: string;
17
- url: string;
18
- projection: string;
15
+ url: string | undefined;
16
+ format: {
17
+ type: string;
18
+ dataProjection: string;
19
+ };
19
20
  attributions: unknown;
20
21
  };
21
22
  properties: {
22
23
  layerConfig?: {
23
24
  style: import("../types").EodashStyleJson | undefined;
25
+ } | {
26
+ style: import("../types").EodashStyleJson | undefined;
27
+ schema: any;
28
+ legend: any;
29
+ type: string;
24
30
  } | undefined;
25
31
  id: string;
26
32
  title: string;
@@ -32,16 +38,18 @@ export function createLayersFromAssets(collectionId: string, title: string, asse
32
38
  type: string;
33
39
  source: {
34
40
  type: string;
35
- url: string | undefined;
36
- format: {
37
- type: string;
38
- dataProjection: string | undefined;
39
- };
40
- attributions: {}[];
41
+ projection: string;
42
+ attributions: unknown;
43
+ url: string;
41
44
  };
42
45
  properties: {
43
46
  layerConfig?: {
44
47
  style: import("../types").EodashStyleJson | undefined;
48
+ } | {
49
+ style: import("../types").EodashStyleJson | undefined;
50
+ schema: any;
51
+ legend: any;
52
+ type: string;
45
53
  } | undefined;
46
54
  id: string;
47
55
  title: string;
@@ -56,23 +64,22 @@ export function createLayersFromAssets(collectionId: string, title: string, asse
56
64
  sources: {
57
65
  url: string;
58
66
  attributions: unknown;
67
+ } | {
68
+ url: string;
69
+ attributions: unknown;
59
70
  }[];
60
71
  };
61
72
  properties: {
62
73
  id: string;
63
74
  title: string;
64
- layerConfig: Record<string, unknown> | undefined;
75
+ layerConfig: Record<string, unknown> | {
76
+ schema: any;
77
+ legend: any;
78
+ type: string;
79
+ } | undefined;
65
80
  layerDatetime: Record<string, unknown> | undefined;
66
81
  };
67
82
  style: import("../types").EodashStyleJson | undefined;
68
83
  })[]>;
69
- /**
70
- * Implementation of a function that creates a layer from the render extention
71
- * @param {import("stac-ts").StacCollection | undefined | null} collection
72
- * @param {import("stac-ts").StacItem | undefined | null} item
73
- * @param {string} rasterURL
74
- * @param {Record<string, any>} [extraProperties]
75
- * @returns {import("@eox/map/src/layers").EOxLayerType<"Tile","XYZ">[]}
76
- */
77
- export function createLayerFromRender(rasterURL: string, collection: import("stac-ts").StacCollection | undefined | null, item: import("stac-ts").StacItem | undefined | null, extraProperties?: Record<string, any>): import("@eox/map/src/layers").EOxLayerType<"Tile", "XYZ">[];
78
- export function createLayersFromLinks(collectionId: string, title: string, item: import("stac-ts").StacItem, itemUrl: string, layerDatetime?: Record<string, any>, extraProperties?: object | null): Promise<Record<string, any>[]>;
84
+ export function createLayersFromLinks(collectionId: string, title: string, item: import("stac-ts").StacItem, layerDatetime?: Record<string, any>, extraProperties?: object | null, collection?: import("stac-ts").StacCollection): Promise<Record<string, any>[]>;
85
+ export function createLayerFromRender(rasterURL: string, collection: import("stac-ts").StacCollection | undefined | null, item: import("stac-ts").StacItem | undefined | null, extraProperties?: Record<string, any>): Promise<import("@eox/map/src/layers").EOxLayerType<"Tile", "XYZ">[]>;
@@ -14,13 +14,14 @@ export function generateFeatures(links?: import("stac-ts").StacLink[], extraProp
14
14
  features: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>[];
15
15
  };
16
16
  /**
17
- * Sperates and extracts layerConfig (jsonform schema & legend) from a style json
17
+ * Spearates and extracts layerConfig (jsonform schema & legend) from a style json
18
18
  *
19
19
  * @param {string} collectionId
20
20
  * @param { import("../types").EodashStyleJson} [style]
21
21
  * @param {Record<string,any>} [rasterJsonform]
22
+ * @param {string} [layerConfigType]
22
23
  * */
23
- export function extractLayerConfig(collectionId: string, style?: import("../types").EodashStyleJson, rasterJsonform?: Record<string, any>): {
24
+ export function extractLayerConfig(collectionId: string, style?: import("../types").EodashStyleJson, rasterJsonform?: Record<string, any>, layerConfigType?: string): {
24
25
  layerConfig: {
25
26
  schema: any;
26
27
  legend: any;
@@ -92,9 +93,14 @@ export function fetchApiItems(itemsUrl: string, query?: string, limit?: number,
92
93
  * @returns {object}
93
94
  */
94
95
  export function extractLayerLegend(collection: import("stac-ts").StacCollection | undefined | null): object;
96
+ /**
97
+ * @param { import ("stac-ts").StacLink } link
98
+ * @returns {object}
99
+ */
100
+ export function extractEoxLegendLink(link: import("stac-ts").StacLink): object;
95
101
  export function sanitizeBbox(bbox: number[]): number[];
96
102
  export function extractRoles(properties: Record<string, any>, linkOrAsset: import("stac-ts").StacLink | import("stac-ts").StacAsset): Record<string, any>;
97
- export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string, key?: string | undefined): Promise<{
103
+ export function fetchStyle(stacObject: import("stac-ts").StacItem | import("stac-ts").StacCollection, linkKey?: string | undefined, assetKey?: string | undefined): Promise<{
98
104
  "fill-color"?: import("ol/style/flat.js").ColorExpression | undefined;
99
105
  "fill-pattern-src"?: import("ol/style/flat.js").StringExpression | undefined;
100
106
  "fill-pattern-size"?: import("ol/style/flat.js").SizeExpression | undefined;
@@ -204,6 +210,7 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string, ke
204
210
  id: string;
205
211
  title?: string;
206
212
  appendix?: string;
213
+ decimals?: number;
207
214
  }[];
208
215
  } | {
209
216
  [n: number]: import("ol/style/flat.js").FlatStyle;
@@ -227,6 +234,7 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string, ke
227
234
  id: string;
228
235
  title?: string;
229
236
  appendix?: string;
237
+ decimals?: number;
230
238
  }[];
231
239
  };
232
240
  splice(start: number, deleteCount?: number): import("ol/style/flat.js").FlatStyle[];
@@ -258,6 +266,7 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string, ke
258
266
  id: string;
259
267
  title?: string;
260
268
  appendix?: string;
269
+ decimals?: number;
261
270
  }[];
262
271
  };
263
272
  copyWithin(target: number, start: number, end?: number): import("ol/style/flat.js").FlatStyle[] & {
@@ -268,6 +277,7 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string, ke
268
277
  id: string;
269
278
  title?: string;
270
279
  appendix?: string;
280
+ decimals?: number;
271
281
  }[];
272
282
  };
273
283
  entries(): ArrayIterator<[number, import("ol/style/flat.js").FlatStyle]>;
@@ -337,6 +347,7 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string, ke
337
347
  id: string;
338
348
  title?: string;
339
349
  appendix?: string;
350
+ decimals?: number;
340
351
  }[];
341
352
  } | {
342
353
  [n: number]: import("ol/style/flat.js").Rule;
@@ -360,6 +371,7 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string, ke
360
371
  id: string;
361
372
  title?: string;
362
373
  appendix?: string;
374
+ decimals?: number;
363
375
  }[];
364
376
  };
365
377
  splice(start: number, deleteCount?: number): import("ol/style/flat.js").Rule[];
@@ -391,6 +403,7 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string, ke
391
403
  id: string;
392
404
  title?: string;
393
405
  appendix?: string;
406
+ decimals?: number;
394
407
  }[];
395
408
  };
396
409
  copyWithin(target: number, start: number, end?: number): import("ol/style/flat.js").Rule[] & {
@@ -401,6 +414,7 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string, ke
401
414
  id: string;
402
415
  title?: string;
403
416
  appendix?: string;
417
+ decimals?: number;
404
418
  }[];
405
419
  };
406
420
  entries(): ArrayIterator<[number, import("ol/style/flat.js").Rule]>;
@@ -470,9 +484,10 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string, ke
470
484
  id: string;
471
485
  title?: string;
472
486
  appendix?: string;
487
+ decimals?: number;
473
488
  }[];
474
489
  } | undefined>;
475
- export function fetchAllStyles(item: import("stac-ts").StacItem, itemUrl: string): Promise<Array<import("../types").EodashStyleJson>>;
490
+ export function fetchAllStyles(stacObject: import("stac-ts").StacItem | import("stac-ts").StacCollection): Promise<Array<import("../types").EodashStyleJson>>;
476
491
  export function getProjectionCode(projection?: string | number | {
477
492
  name: string;
478
493
  def: string;
@@ -375,6 +375,7 @@ export type EodashStyleJson = import("ol/style/flat").FlatStyleLike & {
375
375
  id: string;
376
376
  title?: string;
377
377
  appendix?: string;
378
+ decimals?: number;
378
379
  }[];
379
380
  };
380
381
  export type EodashRasterJSONForm = {
@@ -382,7 +383,7 @@ export type EodashRasterJSONForm = {
382
383
  legend?: import("@eox/layercontrol/src/components/layer-config.js").EOxLayerControlLayerConfig["layerConfig"]["legend"];
383
384
  };
384
385
  /** @ignore */
385
- export type LayersEventBusKeys = "layers:updated" | "time:updated" | "process:updated" | "compareLayers:updated" | "compareTime:updated" | "compareProcess:updated";
386
+ export type LayersEventBusKeys = "layers:updated" | "time:updated" | "process:updated" | "layertime:updated" | "compareLayers:updated" | "compareTime:updated" | "compareProcess:updated" | "compareLayertime:updated";
386
387
  /** @ignore */
387
388
  export interface SearchParams {
388
389
  /** Collection IDs to search within */
@@ -70,10 +70,22 @@ export const dataThemesBrands: {
70
70
  icon: string;
71
71
  color: string;
72
72
  };
73
+ climate: {
74
+ icon: string;
75
+ color: string;
76
+ };
73
77
  economy: {
74
78
  icon: string;
75
79
  color: string;
76
80
  };
81
+ commerce: {
82
+ icon: string;
83
+ color: string;
84
+ };
85
+ society: {
86
+ icon: string;
87
+ color: string;
88
+ };
77
89
  biomass: {
78
90
  icon: string;
79
91
  color: string;
@@ -82,8 +94,24 @@ export const dataThemesBrands: {
82
94
  icon: string;
83
95
  color: string;
84
96
  };
97
+ energy: {
98
+ icon: string;
99
+ color: string;
100
+ };
101
+ tourism: {
102
+ icon: string;
103
+ color: string;
104
+ };
105
+ sport: {
106
+ icon: string;
107
+ color: string;
108
+ };
85
109
  cryosphere: {
86
110
  icon: string;
87
111
  color: string;
88
112
  };
113
+ industry: {
114
+ icon: string;
115
+ color: string;
116
+ };
89
117
  };
@@ -1,6 +1,7 @@
1
1
  export { default as lite } from "./lite";
2
2
  export { default as expert } from "./expert";
3
3
  export { default as compare } from "./compare";
4
+ export { default as explore } from "./explore";
4
5
  export { getBaseConfig };
5
6
  export default getBaseConfig;
6
7
  import { getBaseConfig } from "./baseConfig";
@@ -9,6 +9,7 @@ declare const _default: import("vue").DefineComponent<{}, {
9
9
  backToPOIs: boolean;
10
10
  enableSearch: boolean;
11
11
  enableZoom: boolean;
12
+ searchParams: boolean | Record<string, any>;
12
13
  $props: {
13
14
  compareIndicators?: boolean | {
14
15
  compareTemplate?: string;
@@ -20,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{}, {
20
21
  backToPOIs?: boolean | undefined;
21
22
  enableSearch?: boolean | undefined;
22
23
  enableZoom?: boolean | undefined;
24
+ searchParams?: boolean | Record<string, any> | undefined;
23
25
  };
24
26
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
25
27
  export default _default;
@@ -10,6 +10,7 @@ declare const _default: import("vue").DefineComponent<{}, {
10
10
  enableChangeProjection?: boolean;
11
11
  enableBackToPOIs?: boolean;
12
12
  enableSearch?: boolean;
13
+ searchParams?: object;
13
14
  enableZoom?: boolean;
14
15
  enableCompareIndicators?: boolean | {
15
16
  compareTemplate?: string;
@@ -72,6 +73,7 @@ declare const _default: import("vue").DefineComponent<{}, {
72
73
  enableChangeProjection?: boolean;
73
74
  enableBackToPOIs?: boolean;
74
75
  enableSearch?: boolean;
76
+ searchParams?: object;
75
77
  enableZoom?: boolean;
76
78
  enableCompareIndicators?: boolean | {
77
79
  compareTemplate?: string;