@eodash/eodash 5.7.0 → 5.8.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/components/EodashOverlay.vue +27 -4
- package/core/client/composables/DefineEodash.js +0 -1
- package/core/client/composables/DefineWidgets.js +3 -1
- package/core/client/eodashSTAC/EodashCollection.js +87 -24
- package/core/client/eodashSTAC/cql.js +64 -0
- package/core/client/eodashSTAC/createLayers.js +353 -187
- package/core/client/eodashSTAC/helpers.js +694 -110
- package/core/client/eodashSTAC/mosaic.js +422 -0
- package/core/client/plugins/axios.js +31 -1
- package/core/client/store/actions.js +1 -1
- package/core/client/store/stac.js +54 -4
- package/core/client/store/states.js +20 -2
- package/core/client/types.ts +152 -28
- package/core/client/utils/bands-editor/exampleSchema.json +50 -50
- package/core/client/utils/states.js +10 -0
- package/dist/client/{DashboardLayout-kRsmsNW5.js → DashboardLayout-DEs4f_Vy.js} +2 -2
- package/dist/client/{DynamicWebComponent-CnKhYo0K.js → DynamicWebComponent-PvnV88BA.js} +1 -1
- package/dist/client/EodashChart-D-3AGKZY.js +260 -0
- package/dist/client/{EodashDatePicker-CMPDT-ce.js → EodashDatePicker-Dm_goZzs.js} +3 -3
- package/dist/client/{EodashItemFilter-BpdA8QQa.js → EodashItemFilter-CJy3zYzD.js} +2 -1
- package/dist/client/{EodashLayerControl-BHpDA4_0.js → EodashLayerControl-rL8UnpkA.js} +55 -33
- package/dist/client/{EodashLayoutSwitcher-B1fRUt7G.js → EodashLayoutSwitcher-ZRlESI9O.js} +3 -3
- package/dist/client/{EodashMapBtns-Cpned0tc.js → EodashMapBtns-CG7u2Aq8.js} +227 -112
- package/dist/client/EodashStacInfo-CJhhxthD.js +169 -0
- package/dist/client/{EodashTools-1zHz26gv.js → EodashTools-CWyK8QJT.js} +4 -4
- package/dist/client/{ExportState-DbOm8hBI.js → ExportState-BXhy5TOU.js} +20 -174
- package/dist/client/{Footer-BKg-VVkj.js → Footer-DZPvnhcT.js} +1 -1
- package/dist/client/{Header-DCrwCvmY.js → Header-CiGsDE_a.js} +2 -2
- package/dist/client/{MobileLayout-vWSHpluo.js → MobileLayout-BJHW7x5V.js} +2 -2
- package/dist/client/{PopUp-9uimfK49.js → PopUp-7_XnhvCc.js} +4 -168
- package/dist/client/{ProcessList-CTTIZa06.js → ProcessList-LL_UCbvc.js} +5 -5
- package/dist/client/VDivider-DWYM0WUr.js +168 -0
- package/dist/client/{VImg-CrmB76ZY.js → VImg-B75dgw2K.js} +2 -2
- package/dist/client/{VMain-OKZNpcEG.js → VMain-DvMmOL4f.js} +1 -1
- package/dist/client/{VTooltip-CJw2FyWk.js → VTooltip-ClWHUmWL.js} +2 -2
- package/dist/client/{WidgetsContainer-BaWOnE5R.js → WidgetsContainer-BqaWs4ch.js} +1 -1
- package/dist/client/{asWebComponent-BHWpMuE3.js → asWebComponent-IZanwL-A.js} +677 -379
- package/dist/client/{async-DSKj6g1f.js → async-CiNIOBVz.js} +31 -29
- package/dist/client/{create-layers-config-CBoYedqB.js → create-layers-config-3S3y_kZg.js} +17 -17
- package/dist/client/dialog-transition-c4ZSnzac.js +170 -0
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/{forwardRefs-DH51zPUr.js → forwardRefs-B-c1_6yo.js} +8 -87
- package/dist/client/{handling-BrcDDlgS.js → handling-NvY8Csry.js} +3 -4
- package/dist/client/{helpers-DjZVl_WF.js → helpers-BFuh19CP.js} +1094 -194
- package/dist/client/{index-1JKE68n3.js → index-1wMAyuNL.js} +219 -67
- package/dist/client/{index-CSG_JoOA.js → index-B8jGJSTA.js} +62 -56
- package/dist/client/{index-Cu3-13Xg.js → index-BKQQJkhy.js} +167 -61
- package/dist/client/index-D0jUyol8.js +3167 -0
- package/dist/client/{index-CUjl-ZsI.js → index-KGxz5Egv.js} +2 -2
- package/dist/client/mosaic-vHvSuih6.js +459 -0
- package/dist/client/templates.js +251 -121
- package/dist/client/{transition-OHcz5Qq1.js → transition-BkyUsZh_.js} +1 -1
- package/dist/node/cli.js +5 -5
- package/dist/node/types.d.ts +4 -0
- package/dist/types/core/client/composables/DefineEodash.d.ts +1 -1
- package/dist/types/core/client/eodashSTAC/EodashCollection.d.ts +57 -25
- package/dist/types/core/client/eodashSTAC/cql.d.ts +15 -0
- package/dist/types/core/client/eodashSTAC/createLayers.d.ts +42 -23
- package/dist/types/core/client/eodashSTAC/helpers.d.ts +118 -19
- package/dist/types/core/client/eodashSTAC/mosaic.d.ts +56 -0
- package/dist/types/core/client/store/stac.d.ts +38 -8
- package/dist/types/core/client/store/states.d.ts +24 -2
- package/dist/types/core/client/types.d.ts +128 -24
- package/dist/types/core/client/utils/states.d.ts +12 -0
- package/dist/types/templates/baseConfig.d.ts +1 -100
- package/dist/types/templates/compare.d.ts +32 -3
- package/dist/types/templates/expert.d.ts +18 -0
- package/dist/types/templates/explore.d.ts +10 -1
- package/dist/types/templates/lite.d.ts +11 -0
- package/dist/types/widgets/EodashChart.vue.d.ts +5 -3
- package/dist/types/widgets/EodashItemCatalog/index.vue.d.ts +129 -2
- package/dist/types/widgets/EodashItemCatalog/methods/filters.d.ts +28 -6
- package/dist/types/widgets/EodashItemCatalog/methods/handlers.d.ts +17 -4
- package/dist/types/widgets/EodashItemCatalog/methods/map.d.ts +16 -4
- package/dist/types/widgets/EodashLayerControl.vue.d.ts +35 -16
- package/dist/types/widgets/EodashMap/EodashMapBtns.vue.d.ts +14 -10
- package/dist/types/widgets/EodashMap/index.vue.d.ts +86 -37
- package/dist/types/widgets/EodashMap/methods/create-layers-config.d.ts +1 -1
- package/dist/types/widgets/EodashMap/methods/index.d.ts +5 -1
- package/dist/types/widgets/EodashMap/methods/use-map-loading.d.ts +1 -0
- package/dist/types/widgets/EodashProcess/index.vue.d.ts +5 -3
- package/dist/types/widgets/EodashProcess/methods/custom-endpoints/layers/eoxhub-workspaces-endpoint.d.ts +1 -1
- package/dist/types/widgets/EodashProcess/states.d.ts +1 -1
- package/dist/types/widgets/EodashStacInfo.vue.d.ts +20 -0
- package/dist/types/widgets/EodashTimeSlider/index.vue.d.ts +20 -0
- package/dist/types/widgets/EodashTimeSlider/methods/index.d.ts +3 -8
- package/dist/types/widgets/EodashTimeSlider/types.d.ts +6 -16
- package/dist/types/widgets/EodashTools.vue.d.ts +5 -5
- package/package.json +34 -34
- package/templates/baseConfig.js +37 -6
- package/templates/compare.js +61 -7
- package/templates/expert.js +24 -2
- package/templates/explore.js +12 -5
- package/templates/lite.js +13 -0
- package/widgets/EodashChart.vue +162 -21
- package/widgets/EodashItemCatalog/index.vue +363 -35
- package/widgets/EodashItemCatalog/methods/filters.js +134 -70
- package/widgets/EodashItemCatalog/methods/handlers.js +113 -19
- package/widgets/EodashItemCatalog/methods/map.js +141 -28
- package/widgets/EodashLayerControl.vue +51 -25
- package/widgets/EodashMap/EodashMapBtns.vue +109 -48
- package/widgets/EodashMap/index.vue +91 -105
- package/widgets/EodashMap/methods/btns.js +64 -31
- package/widgets/EodashMap/methods/create-layers-config.js +16 -16
- package/widgets/EodashMap/methods/index.js +71 -8
- package/widgets/EodashMap/methods/use-map-loading.js +58 -0
- package/widgets/EodashProcess/index.vue +136 -16
- package/widgets/EodashProcess/methods/composables.js +13 -0
- package/widgets/EodashProcess/methods/outputs.js +0 -1
- package/widgets/EodashProcess/methods/utils.js +29 -27
- package/widgets/EodashProcess/states.js +1 -1
- package/widgets/EodashStacInfo.vue +64 -2
- package/widgets/EodashTimeSlider/index.vue +58 -2
- package/widgets/EodashTimeSlider/methods/index.js +5 -48
- package/widgets/EodashTimeSlider/types.ts +7 -17
- package/widgets/ExportState.vue +13 -4
- package/dist/client/EodashChart-CLDqE93C.js +0 -144
- package/dist/client/EodashStacInfo-BQspAHKH.js +0 -107
- package/dist/client/index-5Jhsa8Xe.js +0 -570
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { ref, watch, onUnmounted, computed, openBlock, createElementBlock, createCommentVNode } from 'vue';
|
|
2
|
+
import '@eox/stacinfo';
|
|
3
|
+
import { t as isSTACItem, R as currentUrl } from './helpers-BFuh19CP.js';
|
|
4
|
+
import { storeToRefs } from 'pinia';
|
|
5
|
+
import { H as useSTAcStore } from './asWebComponent-IZanwL-A.js';
|
|
6
|
+
|
|
7
|
+
const _hoisted_1 = { class: "flex-grow-1" };
|
|
8
|
+
const _hoisted_2 = [".for", ".allowHtml", ".body", ".featured", ".footer", ".header", ".tags", ".styleOverride"];
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const _sfc_main = {
|
|
12
|
+
__name: 'EodashStacInfo',
|
|
13
|
+
props: {
|
|
14
|
+
level: {
|
|
15
|
+
type: /** @type {import("vue").PropType<"item" | "collection">} */ (String),
|
|
16
|
+
default: "collection",
|
|
17
|
+
validator: (/** @type {string} */ v) => ["collection", "item"].includes(v),
|
|
18
|
+
},
|
|
19
|
+
styleOverride: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "",
|
|
22
|
+
},
|
|
23
|
+
allowHtml: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: true,
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
header: {
|
|
29
|
+
/**
|
|
30
|
+
* @type {import("vue").PropType<
|
|
31
|
+
* (string | {
|
|
32
|
+
* key: string,
|
|
33
|
+
* filter?: (item: any) => boolean
|
|
34
|
+
* })[]
|
|
35
|
+
* >}
|
|
36
|
+
*/
|
|
37
|
+
type: Array,
|
|
38
|
+
default: () => ["title"],
|
|
39
|
+
},
|
|
40
|
+
tags: {
|
|
41
|
+
/**
|
|
42
|
+
* @type {import("vue").PropType<
|
|
43
|
+
* (string | {
|
|
44
|
+
* key: string,
|
|
45
|
+
* filter?: (item: any) => boolean
|
|
46
|
+
* })[]
|
|
47
|
+
* >}
|
|
48
|
+
*/
|
|
49
|
+
type: Array,
|
|
50
|
+
default: () => ["themes"],
|
|
51
|
+
},
|
|
52
|
+
body: {
|
|
53
|
+
/**
|
|
54
|
+
* @type {import("vue").PropType<
|
|
55
|
+
* (string | {
|
|
56
|
+
* key: string,
|
|
57
|
+
* filter?: (item: any) => boolean
|
|
58
|
+
* })[]
|
|
59
|
+
* >}
|
|
60
|
+
*/
|
|
61
|
+
type: Array,
|
|
62
|
+
default: () => [
|
|
63
|
+
"satellite",
|
|
64
|
+
"sensor",
|
|
65
|
+
"insituSources",
|
|
66
|
+
"otherSources",
|
|
67
|
+
"agency",
|
|
68
|
+
"extent",
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
featured: {
|
|
72
|
+
/**
|
|
73
|
+
* @type {import("vue").PropType<
|
|
74
|
+
* (string | {
|
|
75
|
+
* key: string,
|
|
76
|
+
* filter?: (item: any) => boolean
|
|
77
|
+
* })[]
|
|
78
|
+
* >}
|
|
79
|
+
*/
|
|
80
|
+
type: Array,
|
|
81
|
+
default: () => ["description", "providers", "assets", "links"],
|
|
82
|
+
},
|
|
83
|
+
footer: {
|
|
84
|
+
/**
|
|
85
|
+
* @type {import("vue").PropType<
|
|
86
|
+
* (string | {
|
|
87
|
+
* key: string,
|
|
88
|
+
* filter?: (item: any) => boolean
|
|
89
|
+
* })[]
|
|
90
|
+
* >}
|
|
91
|
+
*/
|
|
92
|
+
type: Array,
|
|
93
|
+
default: () => ["sci:citation", "sci:doi", "sci:publication"],
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
setup(__props) {
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
const { selectedItem } = storeToRefs(useSTAcStore());
|
|
101
|
+
|
|
102
|
+
/** @type {import("vue").Ref<string | null>} */
|
|
103
|
+
const itemUrl = ref(null);
|
|
104
|
+
/**
|
|
105
|
+
* Active object URL (only set for the blob fallback)
|
|
106
|
+
* @type {string | null}
|
|
107
|
+
*/
|
|
108
|
+
let activeItemUrl = null;
|
|
109
|
+
|
|
110
|
+
const revokeItem = () => {
|
|
111
|
+
if (activeItemUrl) {
|
|
112
|
+
URL.revokeObjectURL(activeItemUrl);
|
|
113
|
+
activeItemUrl = null;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
watch(
|
|
118
|
+
selectedItem,
|
|
119
|
+
(item) => {
|
|
120
|
+
if (__props.level !== "item" || !item) return;
|
|
121
|
+
revokeItem();
|
|
122
|
+
if (!isSTACItem(item)) {
|
|
123
|
+
itemUrl.value = item.href;
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const selfHref = item?.links?.find((l) => l.rel === "self")?.href;
|
|
127
|
+
if (selfHref) {
|
|
128
|
+
itemUrl.value = selfHref;
|
|
129
|
+
} else if (item) {
|
|
130
|
+
const blob = new Blob([JSON.stringify(item)], {
|
|
131
|
+
type: "application/json",
|
|
132
|
+
});
|
|
133
|
+
activeItemUrl = URL.createObjectURL(blob);
|
|
134
|
+
itemUrl.value = activeItemUrl;
|
|
135
|
+
} else {
|
|
136
|
+
itemUrl.value = null;
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{ immediate: true },
|
|
140
|
+
);
|
|
141
|
+
onUnmounted(revokeItem);
|
|
142
|
+
|
|
143
|
+
const stacInfoURL = computed(() =>
|
|
144
|
+
__props.level === "item" ? itemUrl.value : currentUrl.value,
|
|
145
|
+
);
|
|
146
|
+
|
|
147
|
+
return (_ctx, _cache) => {
|
|
148
|
+
return (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
149
|
+
(stacInfoURL.value)
|
|
150
|
+
? (openBlock(), createElementBlock("eox-stacinfo", {
|
|
151
|
+
key: 0,
|
|
152
|
+
".for": stacInfoURL.value,
|
|
153
|
+
".allowHtml": __props.allowHtml,
|
|
154
|
+
".body": __props.body,
|
|
155
|
+
".featured": __props.featured,
|
|
156
|
+
".footer": __props.footer,
|
|
157
|
+
".header": __props.header,
|
|
158
|
+
".tags": __props.tags,
|
|
159
|
+
style: {"--color-primary-lighter":"none"},
|
|
160
|
+
".styleOverride": __props.styleOverride
|
|
161
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_2))
|
|
162
|
+
: createCommentVNode("v-if", true)
|
|
163
|
+
]))
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
export { _sfc_main as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref, computed, openBlock, createElementBlock, createElementVNode, createBlock, unref, createCommentVNode, createVNode, withCtx, mergeProps } from 'vue';
|
|
2
|
-
import _sfc_main$2 from './PopUp-
|
|
3
|
-
import EodashItemFilter from './EodashItemFilter-
|
|
4
|
-
import _sfc_main$1 from './EodashLayoutSwitcher-
|
|
2
|
+
import _sfc_main$2 from './PopUp-7_XnhvCc.js';
|
|
3
|
+
import EodashItemFilter from './EodashItemFilter-CJy3zYzD.js';
|
|
4
|
+
import _sfc_main$1 from './EodashLayoutSwitcher-ZRlESI9O.js';
|
|
5
5
|
import { mdiViewDashboard, mdiPlusCircleOutline } from '@mdi/js';
|
|
6
|
-
import { _ as _export_sfc, G as useDisplay, I as useTransparentPanel, J as VBtn } from './asWebComponent-
|
|
6
|
+
import { _ as _export_sfc, G as useDisplay, I as useTransparentPanel, J as VBtn } from './asWebComponent-IZanwL-A.js';
|
|
7
7
|
|
|
8
8
|
const _style_0 = ".v-btn--size-default[data-v-73449028]{--v-btn-height: 30px}";
|
|
9
9
|
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { createVNode, normalizeStyle, normalizeClass, createElementVNode, Fragment, toDisplayString, shallowRef, watch, withDirectives, mergeProps,
|
|
1
|
+
import { createVNode, normalizeStyle, normalizeClass, createElementVNode, Fragment, toDisplayString, shallowRef, watch, withDirectives, mergeProps, useModel, ref, openBlock, createBlock, withCtx, createElementBlock, renderList, unref, createTextVNode, vShow, createCommentVNode, mergeModels } from 'vue';
|
|
2
2
|
import { mdiContentCopy, mdiClipboardCheckOutline } from '@mdi/js';
|
|
3
|
-
import _sfc_main$1 from './PopUp-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import _sfc_main$1 from './PopUp-7_XnhvCc.js';
|
|
4
|
+
import { R as createSimpleFunctional, g as genericComponent, o as provideDefaults, c as useRender, p as propsFactory, m as makeTagProps, e as makeComponentProps, K as VIcon, V as VDefaultsProvider, Q as IconValue, Z as makeDensityProps, S as Ripple, l as provideTheme, h as useBorder, U as useVariant, W as useDensity, b as useDimension, i as useElevation, ai as useLoader, j as useLocation, aj as usePosition, k as useRounded, T as useLink, X as makeVariantProps, r as makeThemeProps, Y as makeRouterProps, s as makeRoundedProps, ak as makePositionProps, t as makeLocationProps, al as makeLoaderProps, v as makeElevationProps, d as makeDimensionProps, w as makeBorderProps, q as convertToUnit, am as LoaderSlot, a1 as genOverlays, _ as _export_sfc, J as VBtn, an as copyToClipBoard } from './asWebComponent-IZanwL-A.js';
|
|
5
|
+
import { _ as chartSpec, al as removeUnneededProperties, a9 as layerControlFormValue, F as getLayers, O as mapPosition, ae as availableMapProjection } from './helpers-BFuh19CP.js';
|
|
6
6
|
import { base64EncodeSpec } from '@eox/chart';
|
|
7
|
-
import { V as VImg, a as VExpandTransition } from './VImg-
|
|
7
|
+
import { V as VImg, a as VExpandTransition } from './VImg-B75dgw2K.js';
|
|
8
|
+
import { V as VAvatar, a as VDivider } from './VDivider-DWYM0WUr.js';
|
|
8
9
|
|
|
9
10
|
// Styles
|
|
10
11
|
const VSpacer = createSimpleFunctional('v-spacer', 'div', 'VSpacer');
|
|
11
12
|
|
|
12
|
-
const _style_0 = ".code-block[data-v-
|
|
13
|
+
const _style_0 = ".code-block[data-v-72a96cd2]{background-color:#ddd;font-family:monospace;font-size:small;max-height:200px;overflow-y:auto}";
|
|
13
14
|
|
|
14
15
|
const makeVCardActionsProps = propsFactory({
|
|
15
16
|
...makeComponentProps(),
|
|
@@ -61,85 +62,6 @@ const VCardSubtitle = genericComponent()({
|
|
|
61
62
|
// Utilities
|
|
62
63
|
const VCardTitle = createSimpleFunctional('v-card-title');
|
|
63
64
|
|
|
64
|
-
const makeVAvatarProps = propsFactory({
|
|
65
|
-
start: Boolean,
|
|
66
|
-
end: Boolean,
|
|
67
|
-
icon: IconValue,
|
|
68
|
-
image: String,
|
|
69
|
-
text: String,
|
|
70
|
-
...makeBorderProps(),
|
|
71
|
-
...makeComponentProps(),
|
|
72
|
-
...makeDensityProps(),
|
|
73
|
-
...makeRoundedProps(),
|
|
74
|
-
...makeSizeProps(),
|
|
75
|
-
...makeTagProps(),
|
|
76
|
-
...makeThemeProps(),
|
|
77
|
-
...makeVariantProps({
|
|
78
|
-
variant: 'flat'
|
|
79
|
-
})
|
|
80
|
-
}, 'VAvatar');
|
|
81
|
-
const VAvatar = genericComponent()({
|
|
82
|
-
name: 'VAvatar',
|
|
83
|
-
props: makeVAvatarProps(),
|
|
84
|
-
setup(props, _ref) {
|
|
85
|
-
let {
|
|
86
|
-
slots
|
|
87
|
-
} = _ref;
|
|
88
|
-
const {
|
|
89
|
-
themeClasses
|
|
90
|
-
} = provideTheme(props);
|
|
91
|
-
const {
|
|
92
|
-
borderClasses
|
|
93
|
-
} = useBorder(props);
|
|
94
|
-
const {
|
|
95
|
-
colorClasses,
|
|
96
|
-
colorStyles,
|
|
97
|
-
variantClasses
|
|
98
|
-
} = useVariant(props);
|
|
99
|
-
const {
|
|
100
|
-
densityClasses
|
|
101
|
-
} = useDensity(props);
|
|
102
|
-
const {
|
|
103
|
-
roundedClasses
|
|
104
|
-
} = useRounded(props);
|
|
105
|
-
const {
|
|
106
|
-
sizeClasses,
|
|
107
|
-
sizeStyles
|
|
108
|
-
} = useSize(props);
|
|
109
|
-
useRender(() => createVNode(props.tag, {
|
|
110
|
-
"class": normalizeClass(['v-avatar', {
|
|
111
|
-
'v-avatar--start': props.start,
|
|
112
|
-
'v-avatar--end': props.end
|
|
113
|
-
}, themeClasses.value, borderClasses.value, colorClasses.value, densityClasses.value, roundedClasses.value, sizeClasses.value, variantClasses.value, props.class]),
|
|
114
|
-
"style": normalizeStyle([colorStyles.value, sizeStyles.value, props.style])
|
|
115
|
-
}, {
|
|
116
|
-
default: () => [!slots.default ? props.image ? createVNode(VImg, {
|
|
117
|
-
"key": "image",
|
|
118
|
-
"src": props.image,
|
|
119
|
-
"alt": "",
|
|
120
|
-
"cover": true
|
|
121
|
-
}, null) : props.icon ? createVNode(VIcon, {
|
|
122
|
-
"key": "icon",
|
|
123
|
-
"icon": props.icon
|
|
124
|
-
}, null) : props.text : createVNode(VDefaultsProvider, {
|
|
125
|
-
"key": "content-defaults",
|
|
126
|
-
"defaults": {
|
|
127
|
-
VImg: {
|
|
128
|
-
cover: true,
|
|
129
|
-
src: props.image
|
|
130
|
-
},
|
|
131
|
-
VIcon: {
|
|
132
|
-
icon: props.icon
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}, {
|
|
136
|
-
default: () => [slots.default()]
|
|
137
|
-
}), genOverlays(false, 'v-avatar')]
|
|
138
|
-
}));
|
|
139
|
-
return {};
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
|
|
143
65
|
const makeCardItemProps = propsFactory({
|
|
144
66
|
appendAvatar: String,
|
|
145
67
|
appendIcon: IconValue,
|
|
@@ -431,90 +353,6 @@ const VCard = genericComponent()({
|
|
|
431
353
|
}
|
|
432
354
|
});
|
|
433
355
|
|
|
434
|
-
const allowedVariants = ['dotted', 'dashed', 'solid', 'double'];
|
|
435
|
-
const makeVDividerProps = propsFactory({
|
|
436
|
-
color: String,
|
|
437
|
-
contentOffset: [Number, String, Array],
|
|
438
|
-
gradient: Boolean,
|
|
439
|
-
inset: Boolean,
|
|
440
|
-
length: [Number, String],
|
|
441
|
-
opacity: [Number, String],
|
|
442
|
-
thickness: [Number, String],
|
|
443
|
-
vertical: Boolean,
|
|
444
|
-
variant: {
|
|
445
|
-
type: String,
|
|
446
|
-
default: 'solid',
|
|
447
|
-
validator: v => allowedVariants.includes(v)
|
|
448
|
-
},
|
|
449
|
-
...makeComponentProps(),
|
|
450
|
-
...makeThemeProps()
|
|
451
|
-
}, 'VDivider');
|
|
452
|
-
const VDivider = genericComponent()({
|
|
453
|
-
name: 'VDivider',
|
|
454
|
-
props: makeVDividerProps(),
|
|
455
|
-
setup(props, _ref) {
|
|
456
|
-
let {
|
|
457
|
-
attrs,
|
|
458
|
-
slots
|
|
459
|
-
} = _ref;
|
|
460
|
-
const {
|
|
461
|
-
themeClasses
|
|
462
|
-
} = provideTheme(props);
|
|
463
|
-
const {
|
|
464
|
-
textColorClasses,
|
|
465
|
-
textColorStyles
|
|
466
|
-
} = useTextColor(() => props.color);
|
|
467
|
-
const dividerStyles = computed(() => {
|
|
468
|
-
const styles = {};
|
|
469
|
-
if (props.length) {
|
|
470
|
-
styles[props.vertical ? 'height' : 'width'] = convertToUnit(props.length);
|
|
471
|
-
}
|
|
472
|
-
if (props.thickness) {
|
|
473
|
-
styles[props.vertical ? 'borderRightWidth' : 'borderTopWidth'] = convertToUnit(props.thickness);
|
|
474
|
-
}
|
|
475
|
-
return styles;
|
|
476
|
-
});
|
|
477
|
-
const contentStyles = toRef(() => {
|
|
478
|
-
const margin = Array.isArray(props.contentOffset) ? props.contentOffset[0] : props.contentOffset;
|
|
479
|
-
const shift = Array.isArray(props.contentOffset) ? props.contentOffset[1] : 0;
|
|
480
|
-
return {
|
|
481
|
-
marginBlock: props.vertical && margin ? convertToUnit(margin) : undefined,
|
|
482
|
-
marginInline: !props.vertical && margin ? convertToUnit(margin) : undefined,
|
|
483
|
-
transform: shift ? `translate${props.vertical ? 'X' : 'Y'}(${convertToUnit(shift)})` : undefined
|
|
484
|
-
};
|
|
485
|
-
});
|
|
486
|
-
useRender(() => {
|
|
487
|
-
const divider = createElementVNode("hr", {
|
|
488
|
-
"class": normalizeClass([{
|
|
489
|
-
'v-divider': true,
|
|
490
|
-
'v-divider--gradient': props.gradient && !slots.default,
|
|
491
|
-
'v-divider--inset': props.inset,
|
|
492
|
-
'v-divider--vertical': props.vertical
|
|
493
|
-
}, themeClasses.value, textColorClasses.value, props.class]),
|
|
494
|
-
"style": normalizeStyle([dividerStyles.value, textColorStyles.value, {
|
|
495
|
-
'--v-border-opacity': props.opacity
|
|
496
|
-
}, {
|
|
497
|
-
'border-style': props.variant
|
|
498
|
-
}, props.style]),
|
|
499
|
-
"aria-orientation": !attrs.role || attrs.role === 'separator' ? props.vertical ? 'vertical' : 'horizontal' : undefined,
|
|
500
|
-
"role": `${attrs.role || 'separator'}`
|
|
501
|
-
}, null);
|
|
502
|
-
if (!slots.default) return divider;
|
|
503
|
-
return createElementVNode("div", {
|
|
504
|
-
"class": normalizeClass(['v-divider__wrapper', {
|
|
505
|
-
'v-divider__wrapper--gradient': props.gradient,
|
|
506
|
-
'v-divider__wrapper--inset': props.inset,
|
|
507
|
-
'v-divider__wrapper--vertical': props.vertical
|
|
508
|
-
}])
|
|
509
|
-
}, [divider, createElementVNode("div", {
|
|
510
|
-
"class": "v-divider__content",
|
|
511
|
-
"style": normalizeStyle(contentStyles.value)
|
|
512
|
-
}, [slots.default()]), divider]);
|
|
513
|
-
});
|
|
514
|
-
return {};
|
|
515
|
-
}
|
|
516
|
-
});
|
|
517
|
-
|
|
518
356
|
const _hoisted_1 = { class: "d-flex flex-wrap gap-2 mb-4" };
|
|
519
357
|
const _hoisted_2 = { style: {"position":"absolute","bottom":"15px"} };
|
|
520
358
|
const _hoisted_3 = {
|
|
@@ -558,7 +396,15 @@ const copyBtns = [
|
|
|
558
396
|
{
|
|
559
397
|
id: Symbol(),
|
|
560
398
|
copyFn: async () =>
|
|
561
|
-
await copyToClipBoard(
|
|
399
|
+
await copyToClipBoard(
|
|
400
|
+
JSON.stringify(
|
|
401
|
+
removeUnneededProperties(
|
|
402
|
+
props.getLayers(),
|
|
403
|
+
layerControlFormValue.value,
|
|
404
|
+
),
|
|
405
|
+
),
|
|
406
|
+
copySuccess,
|
|
407
|
+
),
|
|
562
408
|
copyAs: "layers configuration",
|
|
563
409
|
},
|
|
564
410
|
{
|
|
@@ -582,7 +428,7 @@ const getMapStepCode = () => {
|
|
|
582
428
|
#### Tour step title
|
|
583
429
|
Text describing the current step of the tour and why it is interesting what the map shows currently
|
|
584
430
|
`;
|
|
585
|
-
return `${preTag}'${JSON.stringify(removeUnneededProperties(props.getLayers()))}' ${endTag}`;
|
|
431
|
+
return `${preTag}'${JSON.stringify(removeUnneededProperties(props.getLayers(), layerControlFormValue.value))}' ${endTag}`;
|
|
586
432
|
};
|
|
587
433
|
const getMapEntryCode = () => {
|
|
588
434
|
const [x, y, z] = mapPosition.value;
|
|
@@ -590,7 +436,7 @@ const getMapEntryCode = () => {
|
|
|
590
436
|
"## Map Example <!" +
|
|
591
437
|
'--{as="eox-map" style="width: 100%; height: 500px;" layers=';
|
|
592
438
|
const endTag = `zoom="${z}" center=[${[x, y]}] projection="${availableMapProjection.value}" }-->`;
|
|
593
|
-
return `${preTag}'${JSON.stringify(removeUnneededProperties(props.getLayers()))}' ${endTag}`;
|
|
439
|
+
return `${preTag}'${JSON.stringify(removeUnneededProperties(props.getLayers(), layerControlFormValue.value))}' ${endTag}`;
|
|
594
440
|
};
|
|
595
441
|
|
|
596
442
|
const getChartExportCode = () => {
|
|
@@ -673,7 +519,7 @@ return (_ctx, _cache) => {
|
|
|
673
519
|
_cache[5] || (_cache[5] = createElementVNode("p", { class: "text-body-2 mb-2" }, [
|
|
674
520
|
createElementVNode("strong", null, "Map Layers Configuration")
|
|
675
521
|
], -1 /* CACHED */)),
|
|
676
|
-
createElementVNode("div", _hoisted_4, toDisplayString(unref(removeUnneededProperties)(__props.getLayers())), 1 /* TEXT */),
|
|
522
|
+
createElementVNode("div", _hoisted_4, toDisplayString(unref(removeUnneededProperties)(__props.getLayers(), unref(layerControlFormValue))), 1 /* TEXT */),
|
|
677
523
|
(unref(chartSpec))
|
|
678
524
|
? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
679
525
|
_cache[4] || (_cache[4] = createElementVNode("p", { class: "text-body-2 mb-2" }, [
|
|
@@ -711,6 +557,6 @@ return (_ctx, _cache) => {
|
|
|
711
557
|
}
|
|
712
558
|
|
|
713
559
|
};
|
|
714
|
-
const ExportState = /*#__PURE__*/_export_sfc(_sfc_main, [['styles',[_style_0]],['__scopeId',"data-v-
|
|
560
|
+
const ExportState = /*#__PURE__*/_export_sfc(_sfc_main, [['styles',[_style_0]],['__scopeId',"data-v-72a96cd2"]]);
|
|
715
561
|
|
|
716
562
|
export { ExportState as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, shallowRef, computed, toRef, watchEffect, createVNode, normalizeStyle, normalizeClass, inject, openBlock, createBlock, unref, withCtx, createElementVNode, toDisplayString } from 'vue';
|
|
2
|
-
import { g as genericComponent, l as provideTheme, f as useBackgroundColor, h as useBorder, i as useElevation, k as useRounded, F as useResizeObserver, A as useToggleScope, B as useLayoutItem, c as useRender, q as convertToUnit, p as propsFactory, r as makeThemeProps, m as makeTagProps, s as makeRoundedProps, D as makeLayoutItemProps, v as makeElevationProps, e as makeComponentProps, w as makeBorderProps, _ as _export_sfc, E as eodashKey, G as useDisplay } from './asWebComponent-
|
|
2
|
+
import { g as genericComponent, l as provideTheme, f as useBackgroundColor, h as useBorder, i as useElevation, k as useRounded, F as useResizeObserver, A as useToggleScope, B as useLayoutItem, c as useRender, q as convertToUnit, p as propsFactory, r as makeThemeProps, m as makeTagProps, s as makeRoundedProps, D as makeLayoutItemProps, v as makeElevationProps, e as makeComponentProps, w as makeBorderProps, _ as _export_sfc, E as eodashKey, G as useDisplay } from './asWebComponent-IZanwL-A.js';
|
|
3
3
|
|
|
4
4
|
const _style_0 = ".footer-text[data-v-f0fd061e]{font-size:.8rem}";
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode, normalizeStyle, normalizeClass, createElementVNode, shallowRef, computed, ref, watch, onMounted, onBeforeUnmount, toRef, watchEffect, mergeProps, inject, openBlock, createBlock, withCtx, createTextVNode, toDisplayString, unref } from 'vue';
|
|
2
|
-
import { g as genericComponent, c as useRender, p as propsFactory, m as makeTagProps, e as makeComponentProps, f as useBackgroundColor, h as useBorder, i as useElevation, j as useLocation, k as useRounded, l as provideTheme, n as useRtl, o as provideDefaults, V as VDefaultsProvider, q as convertToUnit, r as makeThemeProps, s as makeRoundedProps, t as makeLocationProps, v as makeElevationProps, w as makeBorderProps, x as clamp, y as consoleWarn, z as useProxiedModel, A as useToggleScope, B as useLayoutItem, C as omit, D as makeLayoutItemProps, _ as _export_sfc, E as eodashKey } from './asWebComponent-
|
|
3
|
-
import { V as VImg, a as VExpandTransition } from './VImg-
|
|
2
|
+
import { g as genericComponent, c as useRender, p as propsFactory, m as makeTagProps, e as makeComponentProps, f as useBackgroundColor, h as useBorder, i as useElevation, j as useLocation, k as useRounded, l as provideTheme, n as useRtl, o as provideDefaults, V as VDefaultsProvider, q as convertToUnit, r as makeThemeProps, s as makeRoundedProps, t as makeLocationProps, v as makeElevationProps, w as makeBorderProps, x as clamp, y as consoleWarn, z as useProxiedModel, A as useToggleScope, B as useLayoutItem, C as omit, D as makeLayoutItemProps, _ as _export_sfc, E as eodashKey } from './asWebComponent-IZanwL-A.js';
|
|
3
|
+
import { V as VImg, a as VExpandTransition } from './VImg-B75dgw2K.js';
|
|
4
4
|
import { u as useSsrBoot } from './ssrBoot-Zgc_Ttvi.js';
|
|
5
5
|
|
|
6
6
|
const _style_0 = ".logo[data-v-86c95219]{max-width:140px}";
|