@eodash/eodash 5.3.3 → 5.5.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/asWebComponent.js +1 -1
- package/core/client/composables/DefineEodash.js +3 -1
- package/core/client/composables/DefineWidgets.js +12 -2
- package/core/client/eodashSTAC/EodashCollection.js +20 -37
- package/core/client/eodashSTAC/createLayers.js +306 -136
- package/core/client/eodashSTAC/helpers.js +60 -40
- package/core/client/eodashSTAC/parquet.js +2 -0
- package/core/client/eodashSTAC/triggers.js +5 -5
- package/core/client/store/actions.js +17 -17
- package/core/client/store/states.js +26 -4
- package/core/client/types.ts +12 -1
- package/core/client/utils/index.js +18 -1
- package/dist/client/{DashboardLayout-Cp8Rv3Ef.js → DashboardLayout-CkSgvaFF.js} +2 -2
- package/dist/client/{DynamicWebComponent-CBsxC82P.js → DynamicWebComponent-Ncsg6fb9.js} +1 -1
- package/dist/client/EodashChart-5v7adDpG.js +144 -0
- package/dist/client/{EodashDatePicker-Dewym-cx.js → EodashDatePicker-RoQJe6ss.js} +4 -4
- package/dist/client/{EodashItemFilter-CAsZpOoQ.js → EodashItemFilter-CCoVC5BE.js} +2 -2
- package/dist/client/{EodashLayerControl-fn-rt8Ac.js → EodashLayerControl-weVj7aQA.js} +2 -2
- package/dist/client/{EodashLayoutSwitcher-B9XqQXCS.js → EodashLayoutSwitcher-CL-Z9d5_.js} +3 -3
- package/dist/client/EodashMapBtns-CXU8IuPO.js +433 -0
- package/dist/client/{EodashStacInfo-lxBKoav9.js → EodashStacInfo-BbMnjf-n.js} +11 -15
- package/dist/client/{EodashTimeSlider-DI97QkNT.js → EodashTimeSlider-BZXnqfax.js} +2 -2
- package/dist/client/{EodashTools-D5ShUT1g.js → EodashTools-DUJlkkgx.js} +4 -4
- package/dist/client/{ExportState-ruNyRS2E.js → ExportState-CT3FQOHW.js} +46 -21
- package/dist/client/{Footer-IQNyfd78.js → Footer-D_iqP-1K.js} +1 -1
- package/dist/client/{Header-BBdi_-Lp.js → Header-Dzhnvsy-.js} +127 -17
- package/dist/client/MobileLayout-6Rg_PSO8.js +118 -0
- package/dist/client/{PopUp-DRgOmD7-.js → PopUp-DPPv_GSA.js} +8 -59
- package/dist/client/{ProcessList-DxyCFQdz.js → ProcessList-BIN_Mb27.js} +9 -13
- package/dist/client/{VImg-hwmwzSwG.js → VImg-DhbuvNrA.js} +2 -2
- package/dist/client/{VMain-vk4-rkw-.js → VMain-CVabY_NY.js} +1 -1
- package/dist/client/{VTooltip-BYUZeia1.js → VTooltip-Cc6au3Sn.js} +3 -4
- package/dist/client/{WidgetsContainer-DXD_8rqh.js → WidgetsContainer-ChqTJS4h.js} +1 -1
- package/dist/client/asWebComponent-DaIxULaA.js +9207 -0
- package/dist/client/{async-D1MvO_Z_.js → async-D6Lvv-fT.js} +15 -5
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/{forwardRefs-DM-E2MfG.js → forwardRefs--IccUBdR.js} +196 -37
- package/dist/client/{handling-CbgeKrqT.js → handling-DSA67d6E.js} +160 -37
- package/dist/client/{helpers-CtUlAW0N.js → helpers-BBSdbOmv.js} +239 -126
- package/dist/client/{index-DBo0F4Fv.js → index-6LlXNkke.js} +5 -3
- package/dist/client/{index-BJvLt3Xf.js → index-BS-8Y5FE.js} +34 -77
- package/dist/client/{index-BkW06-Lg.js → index-CQihL_c6.js} +55 -15
- package/dist/client/{index-BxDh5v-H.js → index-qsZhYR_6.js} +15 -16
- package/dist/client/templates.js +52 -2
- package/dist/client/{transition-BdzATvPB.js → transition-DFr4cXu8.js} +1 -1
- package/dist/node/cli.js +1 -1
- package/dist/types/core/client/App.vue.d.ts +16 -6
- package/dist/types/core/client/asWebComponent.d.ts +2 -2
- package/dist/types/core/client/components/DashboardLayout.vue.d.ts +2 -1
- package/dist/types/core/client/components/DynamicWebComponent.vue.d.ts +36 -16
- package/dist/types/core/client/components/EodashOverlay.vue.d.ts +2 -1
- package/dist/types/core/client/components/ErrorAlert.vue.d.ts +9 -1
- package/dist/types/core/client/components/Footer.vue.d.ts +2 -1
- package/dist/types/core/client/components/Header.vue.d.ts +2 -1
- package/dist/types/core/client/components/IframeWrapper.vue.d.ts +12 -6
- package/dist/types/core/client/components/Loading.vue.d.ts +2 -1
- package/dist/types/core/client/components/MobileLayout.vue.d.ts +2 -1
- package/dist/types/core/client/composables/DefineEodash.d.ts +1 -1
- package/dist/types/core/client/eodashSTAC/EodashCollection.d.ts +27 -11
- package/dist/types/core/client/eodashSTAC/createLayers.d.ts +30 -23
- package/dist/types/core/client/eodashSTAC/helpers.d.ts +11 -4
- package/dist/types/core/client/store/actions.d.ts +1 -2
- package/dist/types/core/client/store/states.d.ts +22 -4
- package/dist/types/core/client/types.d.ts +7 -2
- package/dist/types/core/client/utils/index.d.ts +1 -0
- package/dist/types/core/client/views/Dashboard.vue.d.ts +20 -8
- package/dist/types/templates/compare.d.ts +20 -0
- package/dist/types/templates/expert.d.ts +30 -1
- package/dist/types/widgets/EodashChart.vue.d.ts +28 -0
- package/dist/types/widgets/EodashDatePicker.vue.d.ts +38 -9
- package/dist/types/widgets/EodashItemCatalog/index.vue.d.ts +88 -13
- package/dist/types/widgets/EodashItemCatalog/methods/map.d.ts +1 -1
- package/dist/types/widgets/EodashItemFilter.vue.d.ts +169 -26
- package/dist/types/widgets/EodashLayerControl.vue.d.ts +38 -10
- package/dist/types/widgets/EodashLayoutSwitcher.vue.d.ts +22 -7
- package/dist/types/widgets/EodashMap/EodashMapBtns.vue.d.ts +94 -19
- package/dist/types/widgets/EodashMap/index.vue.d.ts +647 -92
- package/dist/types/widgets/EodashMap/methods/btns.d.ts +14 -0
- package/dist/types/widgets/EodashProcess/ProcessList.vue.d.ts +24 -7
- package/dist/types/widgets/EodashProcess/index.vue.d.ts +26 -7
- package/dist/types/widgets/EodashProcess/methods/composables.d.ts +1 -2
- package/dist/types/widgets/EodashProcess/methods/handling.d.ts +18 -11
- package/dist/types/widgets/EodashProcess/methods/outputs.d.ts +2 -2
- package/dist/types/widgets/EodashProcess/methods/utils.d.ts +1 -0
- package/dist/types/widgets/EodashStacInfo.vue.d.ts +67 -18
- package/dist/types/widgets/EodashTimeSlider.vue.d.ts +14 -6
- package/dist/types/widgets/EodashTools.vue.d.ts +437 -47
- package/dist/types/widgets/ExportState.vue.d.ts +26 -8
- package/dist/types/widgets/PopUp.vue.d.ts +61 -11
- package/dist/types/widgets/WidgetsContainer.vue.d.ts +22 -6
- package/package.json +33 -34
- package/templates/baseConfig.js +2 -1
- package/templates/compare.js +28 -1
- package/templates/expert.js +23 -1
- package/widgets/EodashChart.vue +139 -0
- package/widgets/EodashItemCatalog/index.vue +2 -2
- package/widgets/EodashItemCatalog/methods/map.js +9 -10
- package/widgets/EodashMap/EodashMapBtns.vue +73 -93
- package/widgets/EodashMap/index.vue +14 -2
- package/widgets/EodashMap/methods/btns.js +155 -0
- package/widgets/EodashMap/methods/create-layers-config.js +26 -3
- package/widgets/EodashMap/methods/index.js +2 -1
- package/widgets/EodashProcess/ProcessList.vue +2 -3
- package/widgets/EodashProcess/index.vue +19 -70
- package/widgets/EodashProcess/methods/async.js +1 -1
- package/widgets/EodashProcess/methods/composables.js +13 -6
- package/widgets/EodashProcess/methods/custom-endpoints/chart/veda-endpoint.js +20 -7
- package/widgets/EodashProcess/methods/handling.js +100 -22
- package/widgets/EodashProcess/methods/outputs.js +44 -4
- package/widgets/EodashProcess/methods/utils.js +11 -1
- package/widgets/EodashStacInfo.vue +10 -23
- package/widgets/ExportState.vue +9 -15
- package/dist/client/EodashMapBtns-nFY6MIAX.js +0 -301
- package/dist/client/MobileLayout-BfBeF-JF.js +0 -118
- package/dist/client/asWebComponent-DdguWGDI.js +0 -8967
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
.body="body"
|
|
7
7
|
.featured="featured"
|
|
8
8
|
.footer="footer"
|
|
9
|
-
.styleOverride="styleOverride"
|
|
10
9
|
.header="header"
|
|
11
|
-
.subheader="subheader"
|
|
12
10
|
.tags="tags"
|
|
13
11
|
style="--color-primary-lighter: none"
|
|
14
12
|
>
|
|
@@ -20,25 +18,12 @@
|
|
|
20
18
|
import "@eox/stacinfo";
|
|
21
19
|
import { currentUrl } from "@/store/states";
|
|
22
20
|
|
|
23
|
-
const {
|
|
24
|
-
allowHtml,
|
|
25
|
-
featured,
|
|
26
|
-
footer,
|
|
27
|
-
header,
|
|
28
|
-
body,
|
|
29
|
-
styleOverride,
|
|
30
|
-
subheader,
|
|
31
|
-
tags,
|
|
32
|
-
} = defineProps({
|
|
21
|
+
const { allowHtml, featured, footer, header, body, tags } = defineProps({
|
|
33
22
|
allowHtml: {
|
|
34
23
|
type: Boolean,
|
|
35
24
|
default: true,
|
|
36
25
|
},
|
|
37
26
|
|
|
38
|
-
styleOverride: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: "",
|
|
41
|
-
},
|
|
42
27
|
header: {
|
|
43
28
|
/** @type {import("vue").PropType<string[]>} */
|
|
44
29
|
type: Array,
|
|
@@ -49,15 +34,17 @@ const {
|
|
|
49
34
|
type: Array,
|
|
50
35
|
default: () => ["themes"],
|
|
51
36
|
},
|
|
52
|
-
subheader: {
|
|
53
|
-
/** @type {import("vue").PropType<string[]>} */
|
|
54
|
-
type: Array,
|
|
55
|
-
default: () => [],
|
|
56
|
-
},
|
|
57
37
|
body: {
|
|
58
38
|
/** @type {import("vue").PropType<string[]>} */
|
|
59
39
|
type: Array,
|
|
60
|
-
default: () => [
|
|
40
|
+
default: () => [
|
|
41
|
+
"satellite",
|
|
42
|
+
"sensor",
|
|
43
|
+
"insituSources",
|
|
44
|
+
"otherSources",
|
|
45
|
+
"agency",
|
|
46
|
+
"extent",
|
|
47
|
+
],
|
|
61
48
|
},
|
|
62
49
|
featured: {
|
|
63
50
|
/** @type {import("vue").PropType<string[]>} */
|
|
@@ -67,7 +54,7 @@ const {
|
|
|
67
54
|
footer: {
|
|
68
55
|
/** @type {import("vue").PropType<string[]>} */
|
|
69
56
|
type: Array,
|
|
70
|
-
default: () => ["sci:citation"],
|
|
57
|
+
default: () => ["sci:citation", "sci:doi", "sci:publication"],
|
|
71
58
|
},
|
|
72
59
|
});
|
|
73
60
|
</script>
|
package/widgets/ExportState.vue
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
{{ removeUnneededProperties(getLayers()) }}
|
|
38
38
|
</div>
|
|
39
39
|
|
|
40
|
-
<div v-if="
|
|
40
|
+
<div v-if="chartSpec" class="mb-4">
|
|
41
41
|
<p class="text-body-2 mb-2">
|
|
42
42
|
<strong>Chart Spec (for export)</strong>
|
|
43
43
|
</p>
|
|
@@ -61,12 +61,10 @@ import { mdiClipboardCheckOutline, mdiContentCopy } from "@mdi/js";
|
|
|
61
61
|
import PopUp from "./PopUp.vue";
|
|
62
62
|
import { copyToClipBoard } from "@/utils";
|
|
63
63
|
import { ref } from "vue";
|
|
64
|
-
import {
|
|
65
|
-
|
|
66
|
-
getChartSpec as getChartSpecAction,
|
|
67
|
-
} from "@/store/actions";
|
|
68
|
-
import { mapPosition, availableMapProjection } from "@/store/states";
|
|
64
|
+
import { getLayers as getLayerAction } from "@/store/actions";
|
|
65
|
+
import { mapPosition, availableMapProjection, chartSpec } from "@/store/states";
|
|
69
66
|
import { removeUnneededProperties } from "@/eodashSTAC/helpers";
|
|
67
|
+
import { base64EncodeSpec } from "@eox/chart";
|
|
70
68
|
|
|
71
69
|
const dialog = defineModel({ type: Boolean, required: true, default: false });
|
|
72
70
|
|
|
@@ -75,10 +73,6 @@ const props = defineProps({
|
|
|
75
73
|
type: Function,
|
|
76
74
|
default: getLayerAction,
|
|
77
75
|
},
|
|
78
|
-
getChartSpec: {
|
|
79
|
-
type: Function,
|
|
80
|
-
default: getChartSpecAction,
|
|
81
|
-
},
|
|
82
76
|
});
|
|
83
77
|
|
|
84
78
|
const copySuccess = ref(false);
|
|
@@ -105,7 +99,7 @@ const copyBtns = [
|
|
|
105
99
|
copyFn: async () =>
|
|
106
100
|
await copyToClipBoard(getChartExportCode(), copySuccess),
|
|
107
101
|
copyAs: "chart",
|
|
108
|
-
showIf: () =>
|
|
102
|
+
showIf: () => chartSpec.value,
|
|
109
103
|
},
|
|
110
104
|
];
|
|
111
105
|
|
|
@@ -128,12 +122,12 @@ const getMapEntryCode = () => {
|
|
|
128
122
|
};
|
|
129
123
|
|
|
130
124
|
const getChartExportCode = () => {
|
|
131
|
-
|
|
132
|
-
if (!chartSpec) return "";
|
|
125
|
+
if (!chartSpec.value) return "";
|
|
133
126
|
const preTag =
|
|
134
|
-
"## Chart Example <!" + '--{as="eox-chart" style="height:
|
|
127
|
+
"## Chart Example <!" + '--{as="eox-chart" style="height: 400px;" spec=';
|
|
135
128
|
const endTag = " }-->";
|
|
136
|
-
|
|
129
|
+
const escapedSpec = base64EncodeSpec(chartSpec.value);
|
|
130
|
+
return `${preTag}'${escapedSpec}'${endTag}`;
|
|
137
131
|
};
|
|
138
132
|
</script>
|
|
139
133
|
<style scoped>
|