@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
@@ -366,37 +366,28 @@ export async function creatAsyncProcessLayerDefinitions(
366
366
  break;
367
367
  }
368
368
  case "application/vnd.flatgeobuf": {
369
- // TODO after more flatgeobuf urls are possible in EOxMap https://github.com/EOX-A/EOxElements/issues/1789
370
- // we should change this handler to only create one layer instead of many
371
- resultItem.urls.forEach((url, i) => {
372
- layers.push({
373
- type: "Vector",
374
- source: {
375
- type: "FlatGeoBuf",
376
- url,
377
- },
378
- properties: {
379
- id:
380
- endpointLink.id +
381
- "_process_" +
382
- resultItem.id +
383
- postfixId +
384
- `_${i}`,
385
- title:
386
- "Results " +
387
- (selectedStac?.id ?? "") +
388
- " " +
389
- (resultItem.id ?? ""),
390
- layerControlToolsExpand: true,
391
- ...(layerConfig && {
392
- layerConfig: {
393
- ...layerConfig,
394
- style,
395
- },
396
- }),
397
- ...extraProperties,
398
- },
399
- });
369
+ layers.push({
370
+ type: "Vector",
371
+ source: {
372
+ type: "FlatGeoBuf",
373
+ url: resultItem.urls,
374
+ },
375
+ properties: {
376
+ id: endpointLink.id + "_process_" + resultItem.id + postfixId,
377
+ title:
378
+ "Results " +
379
+ (selectedStac?.id ?? "") +
380
+ " " +
381
+ (resultItem.id ?? ""),
382
+ layerControlToolsExpand: true,
383
+ ...(layerConfig && {
384
+ layerConfig: {
385
+ ...layerConfig,
386
+ style,
387
+ },
388
+ }),
389
+ ...extraProperties,
390
+ },
400
391
  });
401
392
  break;
402
393
  }
@@ -509,13 +500,17 @@ export function extractAsyncResults(resultItem) {
509
500
  return extracted;
510
501
  }
511
502
 
512
- /** @param {*} jsonformSchema */
513
- export const getDrawToolsProperty = (jsonformSchema) => {
503
+ /** @param {*} jsonformSchema
504
+ * @returns { string[] }
505
+ */
506
+ export const getDrawToolsProperties = (jsonformSchema) => {
507
+ const properties = [];
514
508
  for (const property in jsonformSchema.properties) {
515
509
  if (jsonformSchema.properties[property]?.options?.drawtools) {
516
- return property;
510
+ properties.push(property);
517
511
  }
518
512
  }
513
+ return properties;
519
514
  };
520
515
 
521
516
  /**
@@ -562,17 +557,3 @@ export const applyProcessLayersToMap = (mapElement, processLayers) => {
562
557
  mapElement.layers = layers;
563
558
  }
564
559
  };
565
- /**
566
- * Updates the jsonform schema to target the compare map
567
- * @param {Record<string,any> | null | undefined} jsonformSchema
568
- */
569
- export function updateJsonformSchemaTarget(jsonformSchema) {
570
- if (!jsonformSchema) {
571
- return jsonformSchema;
572
- }
573
- const stringified = JSON.stringify(jsonformSchema).replaceAll(
574
- "eox-map#main",
575
- "eox-map#compare",
576
- );
577
- return JSON.parse(stringified);
578
- }
@@ -5,6 +5,7 @@ export interface CustomEnpointInput {
5
5
  links: StacLink[];
6
6
  jsonformSchema: Record<string, any>;
7
7
  jsonformValue: Record<string, any>;
8
+ rawJsonformValue?: Record<string, any>;
8
9
  selectedStac: StacCollection;
9
10
  isPolling?: Ref<boolean>;
10
11
  enableCompare?: boolean;
@@ -25,17 +25,38 @@ const { allowHtml, featured, footer, header, body, tags } = defineProps({
25
25
  },
26
26
 
27
27
  header: {
28
- /** @type {import("vue").PropType<string[]>} */
28
+ /**
29
+ * @type {import("vue").PropType<
30
+ * (string | {
31
+ * key: string,
32
+ * filter?: (item: any) => boolean
33
+ * })[]
34
+ * >}
35
+ */
29
36
  type: Array,
30
37
  default: () => ["title"],
31
38
  },
32
39
  tags: {
33
- /** @type {import("vue").PropType<string[]>} */
40
+ /**
41
+ * @type {import("vue").PropType<
42
+ * (string | {
43
+ * key: string,
44
+ * filter?: (item: any) => boolean
45
+ * })[]
46
+ * >}
47
+ */
34
48
  type: Array,
35
49
  default: () => ["themes"],
36
50
  },
37
51
  body: {
38
- /** @type {import("vue").PropType<string[]>} */
52
+ /**
53
+ * @type {import("vue").PropType<
54
+ * (string | {
55
+ * key: string,
56
+ * filter?: (item: any) => boolean
57
+ * })[]
58
+ * >}
59
+ */
39
60
  type: Array,
40
61
  default: () => [
41
62
  "satellite",
@@ -47,12 +68,26 @@ const { allowHtml, featured, footer, header, body, tags } = defineProps({
47
68
  ],
48
69
  },
49
70
  featured: {
50
- /** @type {import("vue").PropType<string[]>} */
71
+ /**
72
+ * @type {import("vue").PropType<
73
+ * (string | {
74
+ * key: string,
75
+ * filter?: (item: any) => boolean
76
+ * })[]
77
+ * >}
78
+ */
51
79
  type: Array,
52
80
  default: () => ["description", "providers", "assets", "links"],
53
81
  },
54
82
  footer: {
55
- /** @type {import("vue").PropType<string[]>} */
83
+ /**
84
+ * @type {import("vue").PropType<
85
+ * (string | {
86
+ * key: string,
87
+ * filter?: (item: any) => boolean
88
+ * })[]
89
+ * >}
90
+ */
56
91
  type: Array,
57
92
  default: () => ["sci:citation", "sci:doi", "sci:publication"],
58
93
  },