@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.
Files changed (119) hide show
  1. package/core/client/components/EodashOverlay.vue +27 -4
  2. package/core/client/composables/DefineEodash.js +0 -1
  3. package/core/client/composables/DefineWidgets.js +3 -1
  4. package/core/client/eodashSTAC/EodashCollection.js +87 -24
  5. package/core/client/eodashSTAC/cql.js +64 -0
  6. package/core/client/eodashSTAC/createLayers.js +353 -187
  7. package/core/client/eodashSTAC/helpers.js +694 -110
  8. package/core/client/eodashSTAC/mosaic.js +422 -0
  9. package/core/client/plugins/axios.js +31 -1
  10. package/core/client/store/actions.js +1 -1
  11. package/core/client/store/stac.js +54 -4
  12. package/core/client/store/states.js +20 -2
  13. package/core/client/types.ts +152 -28
  14. package/core/client/utils/bands-editor/exampleSchema.json +50 -50
  15. package/core/client/utils/states.js +10 -0
  16. package/dist/client/{DashboardLayout-kRsmsNW5.js → DashboardLayout-DEs4f_Vy.js} +2 -2
  17. package/dist/client/{DynamicWebComponent-CnKhYo0K.js → DynamicWebComponent-PvnV88BA.js} +1 -1
  18. package/dist/client/EodashChart-D-3AGKZY.js +260 -0
  19. package/dist/client/{EodashDatePicker-CMPDT-ce.js → EodashDatePicker-Dm_goZzs.js} +3 -3
  20. package/dist/client/{EodashItemFilter-BpdA8QQa.js → EodashItemFilter-CJy3zYzD.js} +2 -1
  21. package/dist/client/{EodashLayerControl-BHpDA4_0.js → EodashLayerControl-rL8UnpkA.js} +55 -33
  22. package/dist/client/{EodashLayoutSwitcher-B1fRUt7G.js → EodashLayoutSwitcher-ZRlESI9O.js} +3 -3
  23. package/dist/client/{EodashMapBtns-Cpned0tc.js → EodashMapBtns-CG7u2Aq8.js} +227 -112
  24. package/dist/client/EodashStacInfo-CJhhxthD.js +169 -0
  25. package/dist/client/{EodashTools-1zHz26gv.js → EodashTools-CWyK8QJT.js} +4 -4
  26. package/dist/client/{ExportState-DbOm8hBI.js → ExportState-BXhy5TOU.js} +20 -174
  27. package/dist/client/{Footer-BKg-VVkj.js → Footer-DZPvnhcT.js} +1 -1
  28. package/dist/client/{Header-DCrwCvmY.js → Header-CiGsDE_a.js} +2 -2
  29. package/dist/client/{MobileLayout-vWSHpluo.js → MobileLayout-BJHW7x5V.js} +2 -2
  30. package/dist/client/{PopUp-9uimfK49.js → PopUp-7_XnhvCc.js} +4 -168
  31. package/dist/client/{ProcessList-CTTIZa06.js → ProcessList-LL_UCbvc.js} +5 -5
  32. package/dist/client/VDivider-DWYM0WUr.js +168 -0
  33. package/dist/client/{VImg-CrmB76ZY.js → VImg-B75dgw2K.js} +2 -2
  34. package/dist/client/{VMain-OKZNpcEG.js → VMain-DvMmOL4f.js} +1 -1
  35. package/dist/client/{VTooltip-CJw2FyWk.js → VTooltip-ClWHUmWL.js} +2 -2
  36. package/dist/client/{WidgetsContainer-BaWOnE5R.js → WidgetsContainer-BqaWs4ch.js} +1 -1
  37. package/dist/client/{asWebComponent-BHWpMuE3.js → asWebComponent-IZanwL-A.js} +677 -379
  38. package/dist/client/{async-DSKj6g1f.js → async-CiNIOBVz.js} +31 -29
  39. package/dist/client/{create-layers-config-CBoYedqB.js → create-layers-config-3S3y_kZg.js} +17 -17
  40. package/dist/client/dialog-transition-c4ZSnzac.js +170 -0
  41. package/dist/client/eo-dash.js +1 -1
  42. package/dist/client/{forwardRefs-DH51zPUr.js → forwardRefs-B-c1_6yo.js} +8 -87
  43. package/dist/client/{handling-BrcDDlgS.js → handling-NvY8Csry.js} +3 -4
  44. package/dist/client/{helpers-DjZVl_WF.js → helpers-BFuh19CP.js} +1094 -194
  45. package/dist/client/{index-1JKE68n3.js → index-1wMAyuNL.js} +219 -67
  46. package/dist/client/{index-CSG_JoOA.js → index-B8jGJSTA.js} +62 -56
  47. package/dist/client/{index-Cu3-13Xg.js → index-BKQQJkhy.js} +167 -61
  48. package/dist/client/index-D0jUyol8.js +3167 -0
  49. package/dist/client/{index-CUjl-ZsI.js → index-KGxz5Egv.js} +2 -2
  50. package/dist/client/mosaic-vHvSuih6.js +459 -0
  51. package/dist/client/templates.js +251 -121
  52. package/dist/client/{transition-OHcz5Qq1.js → transition-BkyUsZh_.js} +1 -1
  53. package/dist/node/cli.js +5 -5
  54. package/dist/node/types.d.ts +4 -0
  55. package/dist/types/core/client/composables/DefineEodash.d.ts +1 -1
  56. package/dist/types/core/client/eodashSTAC/EodashCollection.d.ts +57 -25
  57. package/dist/types/core/client/eodashSTAC/cql.d.ts +15 -0
  58. package/dist/types/core/client/eodashSTAC/createLayers.d.ts +42 -23
  59. package/dist/types/core/client/eodashSTAC/helpers.d.ts +118 -19
  60. package/dist/types/core/client/eodashSTAC/mosaic.d.ts +56 -0
  61. package/dist/types/core/client/store/stac.d.ts +38 -8
  62. package/dist/types/core/client/store/states.d.ts +24 -2
  63. package/dist/types/core/client/types.d.ts +128 -24
  64. package/dist/types/core/client/utils/states.d.ts +12 -0
  65. package/dist/types/templates/baseConfig.d.ts +1 -100
  66. package/dist/types/templates/compare.d.ts +32 -3
  67. package/dist/types/templates/expert.d.ts +18 -0
  68. package/dist/types/templates/explore.d.ts +10 -1
  69. package/dist/types/templates/lite.d.ts +11 -0
  70. package/dist/types/widgets/EodashChart.vue.d.ts +5 -3
  71. package/dist/types/widgets/EodashItemCatalog/index.vue.d.ts +129 -2
  72. package/dist/types/widgets/EodashItemCatalog/methods/filters.d.ts +28 -6
  73. package/dist/types/widgets/EodashItemCatalog/methods/handlers.d.ts +17 -4
  74. package/dist/types/widgets/EodashItemCatalog/methods/map.d.ts +16 -4
  75. package/dist/types/widgets/EodashLayerControl.vue.d.ts +35 -16
  76. package/dist/types/widgets/EodashMap/EodashMapBtns.vue.d.ts +14 -10
  77. package/dist/types/widgets/EodashMap/index.vue.d.ts +86 -37
  78. package/dist/types/widgets/EodashMap/methods/create-layers-config.d.ts +1 -1
  79. package/dist/types/widgets/EodashMap/methods/index.d.ts +5 -1
  80. package/dist/types/widgets/EodashMap/methods/use-map-loading.d.ts +1 -0
  81. package/dist/types/widgets/EodashProcess/index.vue.d.ts +5 -3
  82. package/dist/types/widgets/EodashProcess/methods/custom-endpoints/layers/eoxhub-workspaces-endpoint.d.ts +1 -1
  83. package/dist/types/widgets/EodashProcess/states.d.ts +1 -1
  84. package/dist/types/widgets/EodashStacInfo.vue.d.ts +20 -0
  85. package/dist/types/widgets/EodashTimeSlider/index.vue.d.ts +20 -0
  86. package/dist/types/widgets/EodashTimeSlider/methods/index.d.ts +3 -8
  87. package/dist/types/widgets/EodashTimeSlider/types.d.ts +6 -16
  88. package/dist/types/widgets/EodashTools.vue.d.ts +5 -5
  89. package/package.json +34 -34
  90. package/templates/baseConfig.js +37 -6
  91. package/templates/compare.js +61 -7
  92. package/templates/expert.js +24 -2
  93. package/templates/explore.js +12 -5
  94. package/templates/lite.js +13 -0
  95. package/widgets/EodashChart.vue +162 -21
  96. package/widgets/EodashItemCatalog/index.vue +363 -35
  97. package/widgets/EodashItemCatalog/methods/filters.js +134 -70
  98. package/widgets/EodashItemCatalog/methods/handlers.js +113 -19
  99. package/widgets/EodashItemCatalog/methods/map.js +141 -28
  100. package/widgets/EodashLayerControl.vue +51 -25
  101. package/widgets/EodashMap/EodashMapBtns.vue +109 -48
  102. package/widgets/EodashMap/index.vue +91 -105
  103. package/widgets/EodashMap/methods/btns.js +64 -31
  104. package/widgets/EodashMap/methods/create-layers-config.js +16 -16
  105. package/widgets/EodashMap/methods/index.js +71 -8
  106. package/widgets/EodashMap/methods/use-map-loading.js +58 -0
  107. package/widgets/EodashProcess/index.vue +136 -16
  108. package/widgets/EodashProcess/methods/composables.js +13 -0
  109. package/widgets/EodashProcess/methods/outputs.js +0 -1
  110. package/widgets/EodashProcess/methods/utils.js +29 -27
  111. package/widgets/EodashProcess/states.js +1 -1
  112. package/widgets/EodashStacInfo.vue +64 -2
  113. package/widgets/EodashTimeSlider/index.vue +58 -2
  114. package/widgets/EodashTimeSlider/methods/index.js +5 -48
  115. package/widgets/EodashTimeSlider/types.ts +7 -17
  116. package/widgets/ExportState.vue +13 -4
  117. package/dist/client/EodashChart-CLDqE93C.js +0 -144
  118. package/dist/client/EodashStacInfo-BQspAHKH.js +0 -107
  119. 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-9uimfK49.js';
3
- import EodashItemFilter from './EodashItemFilter-BpdA8QQa.js';
4
- import _sfc_main$1 from './EodashLayoutSwitcher-B1fRUt7G.js';
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-BHWpMuE3.js';
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, computed, toRef, useModel, ref, openBlock, createBlock, withCtx, createElementBlock, renderList, unref, createTextVNode, vShow, createCommentVNode, mergeModels } from 'vue';
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-9uimfK49.js';
4
- import { a2 as createSimpleFunctional, g as genericComponent, o as provideDefaults, c as useRender, p as propsFactory, m as makeTagProps, e as makeComponentProps, l as provideTheme, h as useBorder, a3 as useVariant, Y as useDensity, k as useRounded, a4 as useSize, K as VIcon, V as VDefaultsProvider, a5 as genOverlays, a6 as IconValue, a7 as makeVariantProps, r as makeThemeProps, a8 as makeSizeProps, s as makeRoundedProps, Z as makeDensityProps, w as makeBorderProps, a9 as Ripple, b as useDimension, i as useElevation, aa as useLoader, j as useLocation, ab as usePosition, ac as useLink, ad as makeRouterProps, ae as makePositionProps, t as makeLocationProps, af as makeLoaderProps, v as makeElevationProps, d as makeDimensionProps, q as convertToUnit, ag as LoaderSlot, ah as useTextColor, _ as _export_sfc, J as VBtn, ai as copyToClipBoard } from './asWebComponent-BHWpMuE3.js';
5
- import { M as chartSpec, a1 as removeUnneededProperties, v as getLayers, D as mapPosition, W as availableMapProjection } from './helpers-DjZVl_WF.js';
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-CrmB76ZY.js';
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-b7d44f9a]{background-color:#ddd;font-family:monospace;font-size:small;max-height:200px;overflow-y:auto}";
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(JSON.stringify(props.getLayers()), copySuccess),
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-b7d44f9a"]]);
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-BHWpMuE3.js';
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-BHWpMuE3.js';
3
- import { V as VImg, a as VExpandTransition } from './VImg-CrmB76ZY.js';
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}";