@eodash/eodash 5.5.2 → 5.6.1

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 (73) hide show
  1. package/core/client/App.vue +1 -1
  2. package/core/client/eodashSTAC/EodashCollection.js +12 -5
  3. package/core/client/eodashSTAC/auth.js +19 -9
  4. package/core/client/eodashSTAC/createLayers.js +130 -24
  5. package/core/client/eodashSTAC/helpers.js +27 -60
  6. package/core/client/store/stac.js +9 -0
  7. package/core/client/types.ts +1 -0
  8. package/dist/client/{DashboardLayout-BAB1tPv0.js → DashboardLayout-CqMb7OXc.js} +3 -3
  9. package/dist/client/{DynamicWebComponent-qVeu4sqS.js → DynamicWebComponent-DqKqTf7l.js} +2 -2
  10. package/dist/client/{EodashChart-CXnNxlhk.js → EodashChart-PkUQfH0k.js} +5 -5
  11. package/dist/client/{EodashDatePicker-KyJXPgAq.js → EodashDatePicker-DLJGdTtX.js} +4 -4
  12. package/dist/client/{EodashItemFilter-CAlyUnje.js → EodashItemFilter-Dk8KjFcX.js} +2 -2
  13. package/dist/client/{EodashLayerControl-D8VobuZJ.js → EodashLayerControl-CC1Cogrn.js} +18 -4
  14. package/dist/client/{EodashLayoutSwitcher-DI6uGF_7.js → EodashLayoutSwitcher-5WZYd6rr.js} +4 -4
  15. package/dist/client/EodashMapBtns-BHrSDNoC.js +435 -0
  16. package/dist/client/{EodashStacInfo-Cb28jVEr.js → EodashStacInfo-B90wobPc.js} +42 -7
  17. package/dist/client/{EodashTimeSlider-UIpnhO4N.js → EodashTimeSlider-5vm7F3ju.js} +3 -3
  18. package/dist/client/{EodashTools-vxReGN8p.js → EodashTools-CGZtTh45.js} +5 -5
  19. package/dist/client/{ExportState-D6CBpKUU.js → ExportState-Ce0ZnrX_.js} +9 -7
  20. package/dist/client/{Footer-CUgMupXk.js → Footer-CnZqEiop.js} +2 -2
  21. package/dist/client/{Header-BZ53ACvp.js → Header-Dr5PBIm8.js} +10 -6
  22. package/dist/client/{IframeWrapper-XzQDZy0T.js → IframeWrapper-BgM9aU8f.js} +1 -1
  23. package/dist/client/MobileLayout-DyMjaeif.js +118 -0
  24. package/dist/client/{PopUp-C6HJH8wM.js → PopUp-DjvE_71e.js} +3 -3
  25. package/dist/client/{ProcessList-DQjvv7Cc.js → ProcessList-kf3olI7W.js} +5 -5
  26. package/dist/client/{VImg-CWCCg87G.js → VImg-Bj6uWt6j.js} +51 -22
  27. package/dist/client/{VMain-CAzXMN4O.js → VMain-Cm0UmKGi.js} +1 -1
  28. package/dist/client/{VTooltip-B1_FzBl_.js → VTooltip-DbBu-ky3.js} +2 -2
  29. package/dist/client/{WidgetsContainer-Bc8pGq_X.js → WidgetsContainer-CfLnd44U.js} +2 -2
  30. package/dist/client/asWebComponent-DfULAbpq.js +9387 -0
  31. package/dist/client/{async-Byq11ZKl.js → async-CIbKXEEe.js} +32 -51
  32. package/dist/client/eo-dash.js +1 -1
  33. package/dist/client/{forwardRefs-D3na5VY2.js → forwardRefs-yj3VWOK5.js} +2 -2
  34. package/dist/client/{handling-7IVxQxtQ.js → handling-s8xt2JwF.js} +390 -90
  35. package/dist/client/{helpers-Bi-qmnbZ.js → helpers-DAVGYl_f.js} +353 -320
  36. package/dist/client/{index-Ch4PgFGP.js → index-4TrjfJ32.js} +24 -11
  37. package/dist/client/{index-FQrkgCu_.js → index-Bu8BMA9q.js} +40 -32
  38. package/dist/client/{index-CJOvBxMx.js → index-CYz6dT7K.js} +2 -2
  39. package/dist/client/{index-Dk5_G7Aw.js → index-CugS__t5.js} +4 -4
  40. package/dist/client/templates.js +6 -15
  41. package/dist/client/{transition-Bp5R_Vzd.js → transition-DaOsiD4u.js} +1 -1
  42. package/dist/types/core/client/eodashSTAC/EodashCollection.d.ts +2 -5
  43. package/dist/types/core/client/eodashSTAC/auth.d.ts +6 -2
  44. package/dist/types/core/client/eodashSTAC/createLayers.d.ts +1 -4
  45. package/dist/types/core/client/eodashSTAC/helpers.d.ts +1 -2
  46. package/dist/types/core/client/store/stac.d.ts +4 -1
  47. package/dist/types/core/client/types.d.ts +1 -0
  48. package/dist/types/templates/baseConfig.d.ts +1 -0
  49. package/dist/types/widgets/EodashMap/methods/index.d.ts +1 -1
  50. package/dist/types/widgets/EodashProcess/methods/composables.d.ts +1 -2
  51. package/dist/types/widgets/EodashProcess/methods/custom-endpoints/layers/eoxhub-workspaces-endpoint.d.ts +1 -1
  52. package/dist/types/widgets/EodashProcess/methods/handling.d.ts +6 -6
  53. package/dist/types/widgets/EodashProcess/methods/outputs.d.ts +3 -1
  54. package/dist/types/widgets/EodashProcess/methods/template-helpers.d.ts +99 -0
  55. package/dist/types/widgets/EodashProcess/methods/utils.d.ts +1 -6
  56. package/dist/types/widgets/EodashProcess/types.d.ts +1 -0
  57. package/dist/types/widgets/EodashStacInfo.vue.d.ts +140 -25
  58. package/package.json +31 -31
  59. package/templates/baseConfig.js +5 -14
  60. package/widgets/EodashMap/EodashMapBtns.vue +15 -12
  61. package/widgets/EodashMap/index.vue +5 -1
  62. package/widgets/EodashMap/methods/index.js +13 -4
  63. package/widgets/EodashProcess/index.vue +16 -12
  64. package/widgets/EodashProcess/methods/composables.js +18 -15
  65. package/widgets/EodashProcess/methods/handling.js +78 -62
  66. package/widgets/EodashProcess/methods/outputs.js +74 -29
  67. package/widgets/EodashProcess/methods/template-helpers.js +246 -0
  68. package/widgets/EodashProcess/methods/utils.js +29 -48
  69. package/widgets/EodashProcess/types.ts +1 -0
  70. package/widgets/EodashStacInfo.vue +40 -5
  71. package/dist/client/EodashMapBtns-BjF8Yrpd.js +0 -433
  72. package/dist/client/MobileLayout-jnu24OJM.js +0 -118
  73. package/dist/client/asWebComponent-C-6K08Kk.js +0 -9206
@@ -1,5 +1,5 @@
1
- import { x as getCompareLayers, w as getLayers, $ as replaceLayer, b as extractLayerConfig, v as extractLayerLegend, m as mergeGeojsons, d as axios, a0 as axios$1, I as compareIndicator, G as indicator } from './helpers-Bi-qmnbZ.js';
2
- import { P as useEmitLayersUpdate } from './asWebComponent-C-6K08Kk.js';
1
+ import { t as replaceLayer, b as extractLayerConfig, x as extractLayerLegend, m as mergeGeojsons, d as axios, w as getCompareLayers, v as getLayers, $ as axios$1, I as compareIndicator, F as indicator } from './helpers-DAVGYl_f.js';
2
+ import { S as useEmitLayersUpdate } from './asWebComponent-DfULAbpq.js';
3
3
  import { isMulti } from '@eox/jsonform/src/custom-inputs/spatial/utils';
4
4
  import log from 'loglevel';
5
5
 
@@ -360,37 +360,28 @@ async function creatAsyncProcessLayerDefinitions(
360
360
  break;
361
361
  }
362
362
  case "application/vnd.flatgeobuf": {
363
- // TODO after more flatgeobuf urls are possible in EOxMap https://github.com/EOX-A/EOxElements/issues/1789
364
- // we should change this handler to only create one layer instead of many
365
- resultItem.urls.forEach((url, i) => {
366
- layers.push({
367
- type: "Vector",
368
- source: {
369
- type: "FlatGeoBuf",
370
- url,
371
- },
372
- properties: {
373
- id:
374
- endpointLink.id +
375
- "_process_" +
376
- resultItem.id +
377
- postfixId +
378
- `_${i}`,
379
- title:
380
- "Results " +
381
- (selectedStac?.id ?? "") +
382
- " " +
383
- (resultItem.id ?? ""),
384
- layerControlToolsExpand: true,
385
- ...(layerConfig && {
386
- layerConfig: {
387
- ...layerConfig,
388
- style,
389
- },
390
- }),
391
- ...extraProperties,
392
- },
393
- });
363
+ layers.push({
364
+ type: "Vector",
365
+ source: {
366
+ type: "FlatGeoBuf",
367
+ url: resultItem.urls,
368
+ },
369
+ properties: {
370
+ id: endpointLink.id + "_process_" + resultItem.id + postfixId,
371
+ title:
372
+ "Results " +
373
+ (selectedStac?.id ?? "") +
374
+ " " +
375
+ (resultItem.id ?? ""),
376
+ layerControlToolsExpand: true,
377
+ ...(layerConfig && {
378
+ layerConfig: {
379
+ ...layerConfig,
380
+ style,
381
+ },
382
+ }),
383
+ ...extraProperties,
384
+ },
394
385
  });
395
386
  break;
396
387
  }
@@ -503,13 +494,17 @@ function extractAsyncResults(resultItem) {
503
494
  return extracted;
504
495
  }
505
496
 
506
- /** @param {*} jsonformSchema */
507
- const getDrawToolsProperty = (jsonformSchema) => {
497
+ /** @param {*} jsonformSchema
498
+ * @returns { string[] }
499
+ */
500
+ const getDrawToolsProperties = (jsonformSchema) => {
501
+ const properties = [];
508
502
  for (const property in jsonformSchema.properties) {
509
503
  if (jsonformSchema.properties[property]?.options?.drawtools) {
510
- return property;
504
+ properties.push(property);
511
505
  }
512
506
  }
507
+ return properties;
513
508
  };
514
509
 
515
510
  /**
@@ -556,20 +551,6 @@ const applyProcessLayersToMap = (mapElement, processLayers) => {
556
551
  mapElement.layers = layers;
557
552
  }
558
553
  };
559
- /**
560
- * Updates the jsonform schema to target the compare map
561
- * @param {Record<string,any> | null | undefined} jsonformSchema
562
- */
563
- function updateJsonformSchemaTarget(jsonformSchema) {
564
- if (!jsonformSchema) {
565
- return jsonformSchema;
566
- }
567
- const stringified = JSON.stringify(jsonformSchema).replaceAll(
568
- "eox-map#main",
569
- "eox-map#compare",
570
- );
571
- return JSON.parse(stringified);
572
- }
573
554
 
574
555
  /**
575
556
  * Polls the process status and fetches a result item when the process is successful.
@@ -809,4 +790,4 @@ const getJobStatusUrl = (jobID, indicator) => {
809
790
  return jobUrl;
810
791
  };
811
792
 
812
- export { creatAsyncProcessLayerDefinitions as a, getBboxProperty as b, createTiffLayerDefinition as c, download as d, extractAsyncResults as e, generateTimePairs as f, getDrawToolsProperty as g, updateJsonformSchemaTarget as h, extractGeometries as i, applyProcessLayersToMap as j, getJobStatusUrl as k, loadProcess as l, downloadPreviousResults as m, deleteJob as n, pollProcessStatus as p, separateEndpointLinks as s, updateJobsStatus as u };
793
+ export { creatAsyncProcessLayerDefinitions as a, getBboxProperty as b, createTiffLayerDefinition as c, download as d, extractAsyncResults as e, generateTimePairs as f, getDrawToolsProperties as g, extractGeometries as h, applyProcessLayersToMap as i, getJobStatusUrl as j, downloadPreviousResults as k, loadProcess as l, deleteJob as m, pollProcessStatus as p, separateEndpointLinks as s, updateJobsStatus as u };
@@ -1,2 +1,2 @@
1
- export { aJ as EodashConstructor, aI as register, aK as store } from './asWebComponent-C-6K08Kk.js';
1
+ export { aI as EodashConstructor, aJ as register, aK as store } from './asWebComponent-DfULAbpq.js';
2
2
  import 'vue';
@@ -1,6 +1,6 @@
1
1
  import { computed, watch, onScopeDispose, nextTick, ref, watchEffect, effectScope, inject, mergeProps, toRef, toValue, shallowRef, onMounted, reactive, provide, toRaw, readonly, warn, onBeforeUnmount, createElementVNode, Fragment, createVNode, Teleport, withDirectives, vShow, Transition } from 'vue';
2
- import { aq as isOn, ar as eventName, p as propsFactory, as as destructComputed, at as parseAnchor, au as flipSide, av as flipAlign, aw as flipCorner, ax as CircularBuffer, ay as deepEqual, Y as consoleError, az as getAxis, o as convertToUnit, v as clamp, aA as IN_BROWSER, y as useToggleScope, aB as defer, al as getCurrentInstance, aC as templateRef, aD as matchesSelector, aE as focusableChildren, D as useDisplay, q as makeThemeProps, d as makeDimensionProps, e as makeComponentProps, g as genericComponent, $ as omit, x as useProxiedModel, k as provideTheme, l as useRtl, f as useBackgroundColor, b as useDimension, aF as useRouter, aG as useBackButton, ao as standardEasing, c as useRender } from './asWebComponent-C-6K08Kk.js';
3
- import { m as makeTransitionProps, M as MaybeTransition } from './transition-Bp5R_Vzd.js';
2
+ import { aq as isOn, ar as eventName, p as propsFactory, as as destructComputed, at as parseAnchor, au as flipSide, av as flipAlign, aw as flipCorner, ax as CircularBuffer, ay as deepEqual, a0 as consoleError, az as getAxis, q as convertToUnit, x as clamp, aA as IN_BROWSER, A as useToggleScope, aB as defer, al as getCurrentInstance, aC as templateRef, aD as matchesSelector, aE as focusableChildren, G as useDisplay, r as makeThemeProps, d as makeDimensionProps, e as makeComponentProps, g as genericComponent, z as useProxiedModel, l as provideTheme, n as useRtl, f as useBackgroundColor, b as useDimension, aF as useRouter, aG as useBackButton, ao as standardEasing, c as useRender, C as omit } from './asWebComponent-DfULAbpq.js';
3
+ import { m as makeTransitionProps, M as MaybeTransition } from './transition-DaOsiD4u.js';
4
4
 
5
5
  class Box {
6
6
  constructor(args) {