@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.
- package/core/client/App.vue +1 -1
- package/core/client/eodashSTAC/EodashCollection.js +12 -5
- package/core/client/eodashSTAC/auth.js +19 -9
- package/core/client/eodashSTAC/createLayers.js +130 -24
- package/core/client/eodashSTAC/helpers.js +27 -60
- package/core/client/store/stac.js +9 -0
- package/core/client/types.ts +1 -0
- package/dist/client/{DashboardLayout-BAB1tPv0.js → DashboardLayout-CqMb7OXc.js} +3 -3
- package/dist/client/{DynamicWebComponent-qVeu4sqS.js → DynamicWebComponent-DqKqTf7l.js} +2 -2
- package/dist/client/{EodashChart-CXnNxlhk.js → EodashChart-PkUQfH0k.js} +5 -5
- package/dist/client/{EodashDatePicker-KyJXPgAq.js → EodashDatePicker-DLJGdTtX.js} +4 -4
- package/dist/client/{EodashItemFilter-CAlyUnje.js → EodashItemFilter-Dk8KjFcX.js} +2 -2
- package/dist/client/{EodashLayerControl-D8VobuZJ.js → EodashLayerControl-CC1Cogrn.js} +18 -4
- package/dist/client/{EodashLayoutSwitcher-DI6uGF_7.js → EodashLayoutSwitcher-5WZYd6rr.js} +4 -4
- package/dist/client/EodashMapBtns-BHrSDNoC.js +435 -0
- package/dist/client/{EodashStacInfo-Cb28jVEr.js → EodashStacInfo-B90wobPc.js} +42 -7
- package/dist/client/{EodashTimeSlider-UIpnhO4N.js → EodashTimeSlider-5vm7F3ju.js} +3 -3
- package/dist/client/{EodashTools-vxReGN8p.js → EodashTools-CGZtTh45.js} +5 -5
- package/dist/client/{ExportState-D6CBpKUU.js → ExportState-Ce0ZnrX_.js} +9 -7
- package/dist/client/{Footer-CUgMupXk.js → Footer-CnZqEiop.js} +2 -2
- package/dist/client/{Header-BZ53ACvp.js → Header-Dr5PBIm8.js} +10 -6
- package/dist/client/{IframeWrapper-XzQDZy0T.js → IframeWrapper-BgM9aU8f.js} +1 -1
- package/dist/client/MobileLayout-DyMjaeif.js +118 -0
- package/dist/client/{PopUp-C6HJH8wM.js → PopUp-DjvE_71e.js} +3 -3
- package/dist/client/{ProcessList-DQjvv7Cc.js → ProcessList-kf3olI7W.js} +5 -5
- package/dist/client/{VImg-CWCCg87G.js → VImg-Bj6uWt6j.js} +51 -22
- package/dist/client/{VMain-CAzXMN4O.js → VMain-Cm0UmKGi.js} +1 -1
- package/dist/client/{VTooltip-B1_FzBl_.js → VTooltip-DbBu-ky3.js} +2 -2
- package/dist/client/{WidgetsContainer-Bc8pGq_X.js → WidgetsContainer-CfLnd44U.js} +2 -2
- package/dist/client/asWebComponent-DfULAbpq.js +9387 -0
- package/dist/client/{async-Byq11ZKl.js → async-CIbKXEEe.js} +32 -51
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/{forwardRefs-D3na5VY2.js → forwardRefs-yj3VWOK5.js} +2 -2
- package/dist/client/{handling-7IVxQxtQ.js → handling-s8xt2JwF.js} +390 -90
- package/dist/client/{helpers-Bi-qmnbZ.js → helpers-DAVGYl_f.js} +353 -320
- package/dist/client/{index-Ch4PgFGP.js → index-4TrjfJ32.js} +24 -11
- package/dist/client/{index-FQrkgCu_.js → index-Bu8BMA9q.js} +40 -32
- package/dist/client/{index-CJOvBxMx.js → index-CYz6dT7K.js} +2 -2
- package/dist/client/{index-Dk5_G7Aw.js → index-CugS__t5.js} +4 -4
- package/dist/client/templates.js +6 -15
- package/dist/client/{transition-Bp5R_Vzd.js → transition-DaOsiD4u.js} +1 -1
- package/dist/types/core/client/eodashSTAC/EodashCollection.d.ts +2 -5
- package/dist/types/core/client/eodashSTAC/auth.d.ts +6 -2
- package/dist/types/core/client/eodashSTAC/createLayers.d.ts +1 -4
- package/dist/types/core/client/eodashSTAC/helpers.d.ts +1 -2
- package/dist/types/core/client/store/stac.d.ts +4 -1
- package/dist/types/core/client/types.d.ts +1 -0
- package/dist/types/templates/baseConfig.d.ts +1 -0
- package/dist/types/widgets/EodashMap/methods/index.d.ts +1 -1
- package/dist/types/widgets/EodashProcess/methods/composables.d.ts +1 -2
- package/dist/types/widgets/EodashProcess/methods/custom-endpoints/layers/eoxhub-workspaces-endpoint.d.ts +1 -1
- package/dist/types/widgets/EodashProcess/methods/handling.d.ts +6 -6
- package/dist/types/widgets/EodashProcess/methods/outputs.d.ts +3 -1
- package/dist/types/widgets/EodashProcess/methods/template-helpers.d.ts +99 -0
- package/dist/types/widgets/EodashProcess/methods/utils.d.ts +1 -6
- package/dist/types/widgets/EodashProcess/types.d.ts +1 -0
- package/dist/types/widgets/EodashStacInfo.vue.d.ts +140 -25
- package/package.json +31 -31
- package/templates/baseConfig.js +5 -14
- package/widgets/EodashMap/EodashMapBtns.vue +15 -12
- package/widgets/EodashMap/index.vue +5 -1
- package/widgets/EodashMap/methods/index.js +13 -4
- package/widgets/EodashProcess/index.vue +16 -12
- package/widgets/EodashProcess/methods/composables.js +18 -15
- package/widgets/EodashProcess/methods/handling.js +78 -62
- package/widgets/EodashProcess/methods/outputs.js +74 -29
- package/widgets/EodashProcess/methods/template-helpers.js +246 -0
- package/widgets/EodashProcess/methods/utils.js +29 -48
- package/widgets/EodashProcess/types.ts +1 -0
- package/widgets/EodashStacInfo.vue +40 -5
- package/dist/client/EodashMapBtns-BjF8Yrpd.js +0 -433
- package/dist/client/MobileLayout-jnu24OJM.js +0 -118
- 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
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
id
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
}
|
|
@@ -25,17 +25,38 @@ const { allowHtml, featured, footer, header, body, tags } = defineProps({
|
|
|
25
25
|
},
|
|
26
26
|
|
|
27
27
|
header: {
|
|
28
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
},
|