@eodash/eodash 5.5.2 → 5.6.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 (61) hide show
  1. package/core/client/App.vue +1 -1
  2. package/core/client/eodashSTAC/EodashCollection.js +7 -4
  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 +23 -56
  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-DkKDhfgH.js} +3 -3
  9. package/dist/client/{DynamicWebComponent-qVeu4sqS.js → DynamicWebComponent-BrpkA-e3.js} +2 -2
  10. package/dist/client/{EodashChart-CXnNxlhk.js → EodashChart-p7_1FRlF.js} +5 -5
  11. package/dist/client/{EodashDatePicker-KyJXPgAq.js → EodashDatePicker-HK0Jl7wQ.js} +4 -4
  12. package/dist/client/{EodashItemFilter-CAlyUnje.js → EodashItemFilter-BYQDA78B.js} +2 -2
  13. package/dist/client/{EodashLayerControl-D8VobuZJ.js → EodashLayerControl-NcrNncGn.js} +18 -4
  14. package/dist/client/{EodashLayoutSwitcher-DI6uGF_7.js → EodashLayoutSwitcher-CC2Znd0I.js} +4 -4
  15. package/dist/client/EodashMapBtns-BJSh7qT-.js +435 -0
  16. package/dist/client/{EodashStacInfo-Cb28jVEr.js → EodashStacInfo-BA-0UjvT.js} +42 -7
  17. package/dist/client/{EodashTimeSlider-UIpnhO4N.js → EodashTimeSlider-GDv1hbw7.js} +3 -3
  18. package/dist/client/{EodashTools-vxReGN8p.js → EodashTools-CWmoH0g_.js} +5 -5
  19. package/dist/client/{ExportState-D6CBpKUU.js → ExportState-CfAfX4RN.js} +9 -7
  20. package/dist/client/{Footer-CUgMupXk.js → Footer-DLGxQTZt.js} +2 -2
  21. package/dist/client/{Header-BZ53ACvp.js → Header-eyEyyzD6.js} +10 -6
  22. package/dist/client/{IframeWrapper-XzQDZy0T.js → IframeWrapper-BgM9aU8f.js} +1 -1
  23. package/dist/client/MobileLayout-RzLOyXwL.js +118 -0
  24. package/dist/client/{PopUp-C6HJH8wM.js → PopUp-WNs6Io2N.js} +3 -3
  25. package/dist/client/{ProcessList-DQjvv7Cc.js → ProcessList-RzVqbd5E.js} +5 -5
  26. package/dist/client/{VImg-CWCCg87G.js → VImg-GKUTFoV-.js} +51 -22
  27. package/dist/client/{VMain-CAzXMN4O.js → VMain-D7_72mHr.js} +1 -1
  28. package/dist/client/{VTooltip-B1_FzBl_.js → VTooltip-BbmvtvYw.js} +2 -2
  29. package/dist/client/{WidgetsContainer-Bc8pGq_X.js → WidgetsContainer-Dw5d7SOW.js} +2 -2
  30. package/dist/client/asWebComponent-DDt7V3Bl.js +9383 -0
  31. package/dist/client/{async-Byq11ZKl.js → async-CT3KEV52.js} +24 -33
  32. package/dist/client/eo-dash.js +1 -1
  33. package/dist/client/{forwardRefs-D3na5VY2.js → forwardRefs-CVzxyoSq.js} +2 -2
  34. package/dist/client/{handling-7IVxQxtQ.js → handling-C285F_Mq.js} +3 -3
  35. package/dist/client/{helpers-Bi-qmnbZ.js → helpers-CZFH0EVN.js} +349 -316
  36. package/dist/client/{index-Ch4PgFGP.js → index-B-m7V3Kb.js} +24 -11
  37. package/dist/client/{index-FQrkgCu_.js → index-B_6H-N14.js} +7 -7
  38. package/dist/client/{index-Dk5_G7Aw.js → index-CF3ZMzTz.js} +4 -4
  39. package/dist/client/{index-CJOvBxMx.js → index-DgOXD7wd.js} +2 -2
  40. package/dist/client/templates.js +6 -15
  41. package/dist/client/{transition-Bp5R_Vzd.js → transition-C2gnrWg0.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/custom-endpoints/layers/eoxhub-workspaces-endpoint.d.ts +1 -1
  51. package/dist/types/widgets/EodashStacInfo.vue.d.ts +140 -25
  52. package/package.json +31 -31
  53. package/templates/baseConfig.js +5 -14
  54. package/widgets/EodashMap/EodashMapBtns.vue +15 -12
  55. package/widgets/EodashMap/index.vue +5 -1
  56. package/widgets/EodashMap/methods/index.js +13 -4
  57. package/widgets/EodashProcess/methods/utils.js +22 -31
  58. package/widgets/EodashStacInfo.vue +40 -5
  59. package/dist/client/EodashMapBtns-BjF8Yrpd.js +0 -433
  60. package/dist/client/MobileLayout-jnu24OJM.js +0 -118
  61. package/dist/client/asWebComponent-C-6K08Kk.js +0 -9206
@@ -1,6 +1,6 @@
1
- import { createElementBlock, openBlock, createElementVNode, unref } from 'vue';
1
+ import { openBlock, createElementBlock, createElementVNode, unref } from 'vue';
2
2
  import '@eox/stacinfo';
3
- import { B as currentUrl } from './helpers-Bi-qmnbZ.js';
3
+ import { G as currentUrl } from './helpers-CZFH0EVN.js';
4
4
 
5
5
  const _hoisted_1 = { class: "flex-grow-1" };
6
6
  const _hoisted_2 = [".for", ".allowHtml", ".body", ".featured", ".footer", ".header", ".tags"];
@@ -15,17 +15,38 @@ const _sfc_main = {
15
15
  },
16
16
 
17
17
  header: {
18
- /** @type {import("vue").PropType<string[]>} */
18
+ /**
19
+ * @type {import("vue").PropType<
20
+ * (string | {
21
+ * key: string,
22
+ * filter?: (item: any) => boolean
23
+ * })[]
24
+ * >}
25
+ */
19
26
  type: Array,
20
27
  default: () => ["title"],
21
28
  },
22
29
  tags: {
23
- /** @type {import("vue").PropType<string[]>} */
30
+ /**
31
+ * @type {import("vue").PropType<
32
+ * (string | {
33
+ * key: string,
34
+ * filter?: (item: any) => boolean
35
+ * })[]
36
+ * >}
37
+ */
24
38
  type: Array,
25
39
  default: () => ["themes"],
26
40
  },
27
41
  body: {
28
- /** @type {import("vue").PropType<string[]>} */
42
+ /**
43
+ * @type {import("vue").PropType<
44
+ * (string | {
45
+ * key: string,
46
+ * filter?: (item: any) => boolean
47
+ * })[]
48
+ * >}
49
+ */
29
50
  type: Array,
30
51
  default: () => [
31
52
  "satellite",
@@ -37,12 +58,26 @@ const _sfc_main = {
37
58
  ],
38
59
  },
39
60
  featured: {
40
- /** @type {import("vue").PropType<string[]>} */
61
+ /**
62
+ * @type {import("vue").PropType<
63
+ * (string | {
64
+ * key: string,
65
+ * filter?: (item: any) => boolean
66
+ * })[]
67
+ * >}
68
+ */
41
69
  type: Array,
42
70
  default: () => ["description", "providers", "assets", "links"],
43
71
  },
44
72
  footer: {
45
- /** @type {import("vue").PropType<string[]>} */
73
+ /**
74
+ * @type {import("vue").PropType<
75
+ * (string | {
76
+ * key: string,
77
+ * filter?: (item: any) => boolean
78
+ * })[]
79
+ * >}
80
+ */
46
81
  type: Array,
47
82
  default: () => ["sci:citation", "sci:doi", "sci:publication"],
48
83
  },
@@ -1,6 +1,6 @@
1
- import { computed, createElementBlock, createCommentVNode, openBlock, unref } from 'vue';
2
- import { j as mapEl, C as datetime } from './helpers-Bi-qmnbZ.js';
3
- import { I as eodashCollections } from './asWebComponent-C-6K08Kk.js';
1
+ import { computed, openBlock, createElementBlock, unref, createCommentVNode } from 'vue';
2
+ import { i as mapEl, B as datetime } from './helpers-CZFH0EVN.js';
3
+ import { L as eodashCollections } from './asWebComponent-DDt7V3Bl.js';
4
4
  import '@eox/timeslider';
5
5
 
6
6
  const _hoisted_1 = [".filters"];
@@ -1,9 +1,9 @@
1
- import { ref, computed, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, unref, withCtx, mergeProps } from 'vue';
2
- import _sfc_main$2 from './PopUp-C6HJH8wM.js';
3
- import EodashItemFilter from './EodashItemFilter-CAlyUnje.js';
4
- import _sfc_main$1 from './EodashLayoutSwitcher-DI6uGF_7.js';
1
+ import { ref, computed, openBlock, createElementBlock, createElementVNode, createBlock, unref, createCommentVNode, createVNode, withCtx, mergeProps } from 'vue';
2
+ import _sfc_main$2 from './PopUp-WNs6Io2N.js';
3
+ import EodashItemFilter from './EodashItemFilter-BYQDA78B.js';
4
+ import _sfc_main$1 from './EodashLayoutSwitcher-CC2Znd0I.js';
5
5
  import { mdiViewDashboard, mdiPlusCircleOutline } from '@mdi/js';
6
- import { _ as _export_sfc, D as useDisplay, F as useTransparentPanel, G as VBtn } from './asWebComponent-C-6K08Kk.js';
6
+ import { _ as _export_sfc, G as useDisplay, I as useTransparentPanel, J as VBtn } from './asWebComponent-DDt7V3Bl.js';
7
7
 
8
8
  const _style_0 = ".v-btn--size-default[data-v-73449028]{--v-btn-height: 30px}";
9
9
 
@@ -1,10 +1,10 @@
1
- import { createVNode, normalizeStyle, normalizeClass, createElementVNode, Fragment, toDisplayString, shallowRef, watch, withDirectives, mergeProps, computed, toRef, mergeModels, useModel, ref, createBlock, openBlock, withCtx, createElementBlock, createCommentVNode, renderList, unref, createTextVNode, vShow } from 'vue';
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';
2
2
  import { mdiContentCopy, mdiClipboardCheckOutline } from '@mdi/js';
3
- import _sfc_main$1 from './PopUp-C6HJH8wM.js';
4
- import { a0 as createSimpleFunctional, g as genericComponent, p as propsFactory, n as provideDefaults, c as useRender, m as makeTagProps, e as makeComponentProps, k as provideTheme, h as useBorder, a1 as useVariant, W as useDensity, j as useRounded, a2 as useSize, a3 as genOverlays, H as VIcon, V as VDefaultsProvider, a4 as makeVariantProps, q as makeThemeProps, a5 as makeSizeProps, r as makeRoundedProps, X as makeDensityProps, t as makeBorderProps, a6 as IconValue, a7 as Ripple, b as useDimension, i as useElevation, a8 as useLoader, a9 as useLocation, aa as usePosition, ab as useLink, ac as makeRouterProps, ad as makePositionProps, ae as makeLocationProps, af as makeLoaderProps, s as makeElevationProps, d as makeDimensionProps, ag as LoaderSlot, ah as useTextColor, o as convertToUnit, _ as _export_sfc, ai as copyToClipBoard, G as VBtn } from './asWebComponent-C-6K08Kk.js';
5
- import { N as chartSpec, a1 as removeUnneededProperties, w as getLayers, F as mapPosition, X as availableMapProjection } from './helpers-Bi-qmnbZ.js';
3
+ import _sfc_main$1 from './PopUp-WNs6Io2N.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, Z 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, $ 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-DDt7V3Bl.js';
5
+ import { N as chartSpec, a0 as removeUnneededProperties, v as getLayers, E as mapPosition, X as availableMapProjection } from './helpers-CZFH0EVN.js';
6
6
  import { base64EncodeSpec } from '@eox/chart';
7
- import { V as VImg, a as VExpandTransition } from './VImg-CWCCg87G.js';
7
+ import { V as VImg, a as VExpandTransition } from './VImg-GKUTFoV-.js';
8
8
 
9
9
  // Styles
10
10
  const VSpacer = createSimpleFunctional('v-spacer', 'div', 'VSpacer');
@@ -376,8 +376,10 @@ const VCard = genericComponent()({
376
376
  'v-card--hover': props.hover && !(props.disabled || props.flat),
377
377
  'v-card--link': isClickable
378
378
  }, themeClasses.value, borderClasses.value, colorClasses.value, densityClasses.value, elevationClasses.value, loaderClasses.value, positionClasses.value, roundedClasses.value, variantClasses.value, props.class],
379
- "style": [colorStyles.value, dimensionStyles.value, locationStyles.value, props.style],
380
- "onClick": isClickable && link.navigate,
379
+ "style": [colorStyles.value, dimensionStyles.value, locationStyles.value, {
380
+ '--v-card-height': convertToUnit(props.height)
381
+ }, props.style],
382
+ "onClick": isClickable && link.navigate.value,
381
383
  "tabindex": props.disabled ? -1 : undefined
382
384
  }), {
383
385
  default: () => [hasImage && createElementVNode("div", {
@@ -1,5 +1,5 @@
1
- import { ref, shallowRef, computed, toRef, watchEffect, createVNode, normalizeStyle, normalizeClass, inject, createBlock, openBlock, unref, withCtx, createElementVNode, toDisplayString } from 'vue';
2
- import { g as genericComponent, p as propsFactory, k as provideTheme, f as useBackgroundColor, h as useBorder, i as useElevation, j as useRounded, C as useResizeObserver, y as useToggleScope, z as useLayoutItem, c as useRender, o as convertToUnit, q as makeThemeProps, m as makeTagProps, r as makeRoundedProps, A as makeLayoutItemProps, s as makeElevationProps, e as makeComponentProps, t as makeBorderProps, _ as _export_sfc, B as eodashKey, D as useDisplay } from './asWebComponent-C-6K08Kk.js';
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-DDt7V3Bl.js';
3
3
 
4
4
  const _style_0 = ".footer-text[data-v-f0fd061e]{font-size:.8rem}";
5
5
 
@@ -1,6 +1,6 @@
1
- import { createVNode, normalizeStyle, normalizeClass, createElementVNode, shallowRef, computed, ref, watch, onMounted, onBeforeUnmount, toRef, watchEffect, mergeProps, inject, createBlock, openBlock, withCtx, createTextVNode, toDisplayString, unref } from 'vue';
2
- import { p as propsFactory, g as genericComponent, m as makeTagProps, e as makeComponentProps, c as useRender, f as useBackgroundColor, h as useBorder, i as useElevation, j as useRounded, k as provideTheme, l as useRtl, n as provideDefaults, V as VDefaultsProvider, o as convertToUnit, q as makeThemeProps, r as makeRoundedProps, s as makeElevationProps, t as makeBorderProps, v as clamp, w as consoleWarn, x as useProxiedModel, y as useToggleScope, z as useLayoutItem, A as makeLayoutItemProps, _ as _export_sfc, B as eodashKey } from './asWebComponent-C-6K08Kk.js';
3
- import { V as VImg, a as VExpandTransition } from './VImg-CWCCg87G.js';
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-DDt7V3Bl.js';
3
+ import { V as VImg, a as VExpandTransition } from './VImg-GKUTFoV-.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}";
@@ -65,6 +65,7 @@ const makeVToolbarProps = propsFactory({
65
65
  ...makeBorderProps(),
66
66
  ...makeComponentProps(),
67
67
  ...makeElevationProps(),
68
+ ...makeLocationProps(),
68
69
  ...makeRoundedProps(),
69
70
  ...makeTagProps({
70
71
  tag: 'header'
@@ -88,6 +89,9 @@ const VToolbar = genericComponent()({
88
89
  const {
89
90
  elevationClasses
90
91
  } = useElevation(props);
92
+ const {
93
+ locationStyles
94
+ } = useLocation(props);
91
95
  const {
92
96
  roundedClasses
93
97
  } = useRounded(props);
@@ -118,7 +122,7 @@ const VToolbar = genericComponent()({
118
122
  'v-toolbar--floating': props.floating,
119
123
  [`v-toolbar--density-${props.density}`]: true
120
124
  }, backgroundColorClasses.value, borderClasses.value, elevationClasses.value, roundedClasses.value, themeClasses.value, rtlClasses.value, props.class]),
121
- "style": normalizeStyle([backgroundColorStyles.value, props.style])
125
+ "style": normalizeStyle([backgroundColorStyles.value, locationStyles.value, props.style])
122
126
  }, {
123
127
  default: () => [hasImage && createElementVNode("div", {
124
128
  "key": "image",
@@ -369,7 +373,7 @@ const makeVAppBarProps = propsFactory({
369
373
  default: 'top',
370
374
  validator: value => ['top', 'bottom'].includes(value)
371
375
  },
372
- ...makeVToolbarProps(),
376
+ ...omit(makeVToolbarProps(), ['location']),
373
377
  ...makeLayoutItemProps(),
374
378
  ...makeScrollProps(),
375
379
  height: {
@@ -479,7 +483,7 @@ const VAppBar = genericComponent()({
479
483
  absolute: toRef(() => props.absolute)
480
484
  });
481
485
  useRender(() => {
482
- const toolbarProps = VToolbar.filterProps(props);
486
+ const toolbarProps = omit(VToolbar.filterProps(props), ['location']);
483
487
  return createVNode(VToolbar, mergeProps({
484
488
  "ref": vToolbarRef,
485
489
  "class": ['v-app-bar', {
@@ -1,4 +1,4 @@
1
- import { createElementBlock, openBlock } from 'vue';
1
+ import { openBlock, createElementBlock } from 'vue';
2
2
 
3
3
  const _hoisted_1 = ["src"];
4
4