@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 { createVNode, Transition, mergeProps, ref, watch, nextTick, normalizeStyle, normalizeClass, mergeModels, useModel, createElementBlock, openBlock, withCtx, createBlock, createCommentVNode, resolveDynamicComponent, unref, renderSlot } from 'vue';
2
- import { g as genericComponent, p as propsFactory, ak as PREFERS_REDUCED_MOTION, am as acceleratedEasing, an as deceleratedEasing, ao as standardEasing, x as useProxiedModel, c as useRender, $ as omit, V as VDefaultsProvider, k as provideTheme, f as useBackgroundColor, h as useBorder, b as useDimension, i as useElevation, a9 as useLocation, aa as usePosition, j as useRounded, q as makeThemeProps, m as makeTagProps, r as makeRoundedProps, ad as makePositionProps, ae as makeLocationProps, s as makeElevationProps, d as makeDimensionProps, e as makeComponentProps, t as makeBorderProps, ap as useDefineWidgets } from './asWebComponent-C-6K08Kk.js';
3
- import { a as animate, g as getTargetBox, n as nullifyTransforms, u as useScopeId, f as forwardRefs, m as makeVOverlayProps, V as VOverlay } from './forwardRefs-D3na5VY2.js';
1
+ import { createVNode, Transition, mergeProps, ref, watch, nextTick, normalizeStyle, normalizeClass, useModel, openBlock, createElementBlock, withCtx, createBlock, resolveDynamicComponent, unref, createCommentVNode, renderSlot, mergeModels } from 'vue';
2
+ import { g as genericComponent, ak as PREFERS_REDUCED_MOTION, p as propsFactory, am as acceleratedEasing, an as deceleratedEasing, ao as standardEasing, z as useProxiedModel, c as useRender, C as omit, V as VDefaultsProvider, l as provideTheme, f as useBackgroundColor, h as useBorder, b as useDimension, i as useElevation, j as useLocation, ab as usePosition, k as useRounded, r as makeThemeProps, m as makeTagProps, s as makeRoundedProps, ae as makePositionProps, t as makeLocationProps, v as makeElevationProps, d as makeDimensionProps, e as makeComponentProps, w as makeBorderProps, ap as useDefineWidgets } from './asWebComponent-DDt7V3Bl.js';
3
+ import { a as animate, g as getTargetBox, n as nullifyTransforms, u as useScopeId, f as forwardRefs, m as makeVOverlayProps, V as VOverlay } from './forwardRefs-CVzxyoSq.js';
4
4
 
5
5
  // Utilities
6
6
  const makeVDialogTransitionProps = propsFactory({
@@ -1,9 +1,9 @@
1
- import { ref, createVNode, normalizeStyle, normalizeClass, createElementVNode, toRefs, onMounted, createElementBlock, openBlock, createBlock, createCommentVNode, unref, withCtx, Fragment, renderList, withDirectives, createTextVNode, toDisplayString, toRef } from 'vue';
1
+ import { ref, createVNode, normalizeStyle, normalizeClass, createElementVNode, toRefs, onMounted, openBlock, createElementBlock, unref, createBlock, withCtx, Fragment, renderList, withDirectives, createTextVNode, toDisplayString, toRef, createCommentVNode } from 'vue';
2
2
  import { mdiOpenInNew, mdiUploadBox, mdiDownloadBox, mdiTrashCanOutline } from '@mdi/js';
3
- import { g as genericComponent, p as propsFactory, k as provideTheme, W as useDensity, c as useRender, q as makeThemeProps, m as makeTagProps, X as makeDensityProps, e as makeComponentProps, o as convertToUnit, _ as _export_sfc, E as useSTAcStore, K as useOnLayersUpdate, H as VIcon, G as VBtn } from './asWebComponent-C-6K08Kk.js';
4
- import { I as compareIndicator, G as indicator } from './helpers-Bi-qmnbZ.js';
5
- import { u as updateJobsStatus, k as getJobStatusUrl, l as loadProcess, m as downloadPreviousResults, n as deleteJob } from './async-Byq11ZKl.js';
6
- import { T as Tooltip } from './index-CJOvBxMx.js';
3
+ import { g as genericComponent, l as provideTheme, Z as useDensity, c as useRender, p as propsFactory, r as makeThemeProps, m as makeTagProps, $ as makeDensityProps, e as makeComponentProps, q as convertToUnit, _ as _export_sfc, H as useSTAcStore, N as useOnLayersUpdate, K as VIcon, J as VBtn } from './asWebComponent-DDt7V3Bl.js';
4
+ import { I as compareIndicator, F as indicator } from './helpers-CZFH0EVN.js';
5
+ import { u as updateJobsStatus, k as getJobStatusUrl, l as loadProcess, m as downloadPreviousResults, n as deleteJob } from './async-CT3KEV52.js';
6
+ import { T as Tooltip } from './index-DgOXD7wd.js';
7
7
 
8
8
  /**
9
9
  * The list of job result from the server
@@ -1,6 +1,6 @@
1
- import { h, TransitionGroup, Transition, camelize, createElementVNode, normalizeStyle, normalizeClass, computed, shallowRef, ref, watch, onBeforeMount, nextTick, onBeforeUnmount, toRef, withDirectives, createVNode, mergeProps, Fragment, vShow } from 'vue';
2
- import { aj as SUPPORTS_INTERSECTION, g as genericComponent, ak as PREFERS_REDUCED_MOTION, p as propsFactory, b as useDimension, c as useRender, d as makeDimensionProps, e as makeComponentProps, f as useBackgroundColor, j as useRounded, al as getCurrentInstance, o as convertToUnit, r as makeRoundedProps } from './asWebComponent-C-6K08Kk.js';
3
- import { m as makeTransitionProps$1, M as MaybeTransition } from './transition-Bp5R_Vzd.js';
1
+ import { h, TransitionGroup, Transition, createElementVNode, normalizeStyle, normalizeClass, computed, shallowRef, ref, watch, onBeforeMount, nextTick, onBeforeUnmount, toRef, withDirectives, createVNode, mergeProps, Fragment, vShow } from 'vue';
2
+ import { aj as SUPPORTS_INTERSECTION, g as genericComponent, ak as PREFERS_REDUCED_MOTION, p as propsFactory, b as useDimension, c as useRender, d as makeDimensionProps, e as makeComponentProps, f as useBackgroundColor, k as useRounded, al as getCurrentInstance, q as convertToUnit, s as makeRoundedProps } from './asWebComponent-DDt7V3Bl.js';
3
+ import { M as MaybeTransition, m as makeTransitionProps$1 } from './transition-C2gnrWg0.js';
4
4
 
5
5
  // Utilities
6
6
  function mounted(el, binding) {
@@ -44,7 +44,13 @@ function unmounted(el, binding) {
44
44
  }
45
45
  const Intersect = {
46
46
  mounted,
47
- unmounted
47
+ unmounted,
48
+ updated: (el, binding) => {
49
+ if (el._observe?.[binding.instance.$.uid]) {
50
+ unmounted(el, binding);
51
+ mounted(el, binding);
52
+ }
53
+ }
48
54
  };
49
55
 
50
56
  // Utilities
@@ -143,7 +149,8 @@ function createJavascriptTransition(name, functions) {
143
149
  type: Boolean,
144
150
  default: PREFERS_REDUCED_MOTION()
145
151
  },
146
- group: Boolean
152
+ group: Boolean,
153
+ hideOnLeave: Boolean
147
154
  },
148
155
  setup(props, _ref2) {
149
156
  let {
@@ -155,26 +162,33 @@ function createJavascriptTransition(name, functions) {
155
162
  name: props.disabled ? '' : name,
156
163
  css: !props.disabled,
157
164
  // mode: props.mode, // TODO: vuejs/vue-next#3104
158
- ...(props.disabled ? {} : functions)
165
+ ...(props.disabled ? {} : {
166
+ ...functions,
167
+ onLeave: el => {
168
+ if (props.hideOnLeave) {
169
+ el.style.setProperty('display', 'none', 'important');
170
+ } else {
171
+ functions.onLeave?.(el);
172
+ }
173
+ }
174
+ })
159
175
  }, slots.default);
160
176
  };
161
177
  }
162
178
  });
163
179
  }
164
180
 
165
- // Utilities
166
181
  function ExpandTransitionGenerator () {
167
182
  let expandedParentClass = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
168
- let x = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
169
- const sizeProperty = x ? 'width' : 'height';
170
- const offsetProperty = camelize(`offset-${sizeProperty}`);
183
+ let type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'y';
171
184
  return {
172
185
  onBeforeEnter(el) {
173
186
  el._parent = el.parentNode;
174
187
  el._initialStyle = {
175
188
  transition: el.style.transition,
176
189
  overflow: el.style.overflow,
177
- [sizeProperty]: el.style[sizeProperty]
190
+ width: el.style.width,
191
+ height: el.style.height
178
192
  };
179
193
  },
180
194
  onEnter(el) {
@@ -183,15 +197,18 @@ function ExpandTransitionGenerator () {
183
197
  el.style.setProperty('transition', 'none', 'important');
184
198
  // Hide overflow to account for collapsed margins in the calculated height
185
199
  el.style.overflow = 'hidden';
186
- const offset = `${el[offsetProperty]}px`;
187
- el.style[sizeProperty] = '0';
200
+ const offsetWidth = `${el.offsetWidth}px`;
201
+ const offsetHeight = `${el.offsetHeight}px`;
202
+ if (['x', 'both'].includes(type)) el.style.width = '0';
203
+ if (['y', 'both'].includes(type)) el.style.height = '0';
188
204
 
189
205
  el.style.transition = initialStyle.transition;
190
206
  if (expandedParentClass && el._parent) {
191
207
  el._parent.classList.add(expandedParentClass);
192
208
  }
193
209
  requestAnimationFrame(() => {
194
- el.style[sizeProperty] = offset;
210
+ if (['x', 'both'].includes(type)) el.style.width = offsetWidth;
211
+ if (['y', 'both'].includes(type)) el.style.height = offsetHeight;
195
212
  });
196
213
  },
197
214
  onAfterEnter: resetStyles,
@@ -200,12 +217,17 @@ function ExpandTransitionGenerator () {
200
217
  el._initialStyle = {
201
218
  transition: '',
202
219
  overflow: el.style.overflow,
203
- [sizeProperty]: el.style[sizeProperty]
220
+ width: el.style.width,
221
+ height: el.style.height
204
222
  };
205
223
  el.style.overflow = 'hidden';
206
- el.style[sizeProperty] = `${el[offsetProperty]}px`;
224
+ if (['x', 'both'].includes(type)) el.style.width = `${el.offsetWidth}px`;
225
+ if (['y', 'both'].includes(type)) el.style.height = `${el.offsetHeight}px`;
207
226
 
208
- requestAnimationFrame(() => el.style[sizeProperty] = '0');
227
+ requestAnimationFrame(() => {
228
+ if (['x', 'both'].includes(type)) el.style.width = '0';
229
+ if (['y', 'both'].includes(type)) el.style.height = '0';
230
+ });
209
231
  },
210
232
  onAfterLeave,
211
233
  onLeaveCancelled: onAfterLeave
@@ -218,9 +240,13 @@ function ExpandTransitionGenerator () {
218
240
  }
219
241
  function resetStyles(el) {
220
242
  if (!el._initialStyle) return;
221
- const size = el._initialStyle[sizeProperty];
243
+ const {
244
+ width: w,
245
+ height: h
246
+ } = el._initialStyle;
222
247
  el.style.overflow = el._initialStyle.overflow;
223
- if (size != null) el.style[sizeProperty] = size;
248
+ if (w != null && ['x', 'both'].includes(type)) el.style.width = w;
249
+ if (h != null && ['y', 'both'].includes(type)) el.style.height = h;
224
250
  delete el._initialStyle;
225
251
  }
226
252
  }
@@ -243,7 +269,8 @@ createCssTransition('slide-y-reverse-transition');
243
269
 
244
270
  // Javascript transitions
245
271
  const VExpandTransition = createJavascriptTransition('expand-transition', ExpandTransitionGenerator());
246
- createJavascriptTransition('expand-x-transition', ExpandTransitionGenerator('', true));
272
+ createJavascriptTransition('expand-x-transition', ExpandTransitionGenerator('', 'x'));
273
+ createJavascriptTransition('expand-both-transition', ExpandTransitionGenerator('', 'both'));
247
274
 
248
275
  function useAspectStyles(props) {
249
276
  return {
@@ -302,6 +329,7 @@ const makeVImgProps = propsFactory({
302
329
  },
303
330
  eager: Boolean,
304
331
  gradient: String,
332
+ imageClass: null,
305
333
  lazySrc: String,
306
334
  options: {
307
335
  type: Object,
@@ -460,7 +488,7 @@ const VImg = genericComponent()({
460
488
  const __image = () => {
461
489
  if (!normalisedSrc.value.src || state.value === 'idle') return null;
462
490
  const img = createElementVNode("img", {
463
- "class": normalizeClass(['v-img__img', containClasses.value]),
491
+ "class": normalizeClass(['v-img__img', containClasses.value, props.imageClass]),
464
492
  "style": {
465
493
  objectPosition: props.position
466
494
  },
@@ -550,7 +578,8 @@ const VImg = genericComponent()({
550
578
  return withDirectives(createVNode(VResponsive, mergeProps({
551
579
  "class": ['v-img', {
552
580
  'v-img--absolute': props.absolute,
553
- 'v-img--booting': !isBooted.value
581
+ 'v-img--booting': !isBooted.value,
582
+ 'v-img--fit-content': props.width === 'fit-content'
554
583
  }, backgroundColorClasses.value, roundedClasses.value, props.class],
555
584
  "style": [{
556
585
  width: convertToUnit(props.width === 'auto' ? naturalWidth.value : props.width)
@@ -1,5 +1,5 @@
1
1
  import { createVNode, normalizeStyle, normalizeClass, createElementVNode } from 'vue';
2
- import { g as genericComponent, p as propsFactory, b as useDimension, a as useLayout, c as useRender, m as makeTagProps, d as makeDimensionProps, e as makeComponentProps } from './asWebComponent-C-6K08Kk.js';
2
+ import { g as genericComponent, b as useDimension, a as useLayout, c as useRender, p as propsFactory, m as makeTagProps, d as makeDimensionProps, e as makeComponentProps } from './asWebComponent-DDt7V3Bl.js';
3
3
  import { u as useSsrBoot } from './ssrBoot-Zgc_Ttvi.js';
4
4
 
5
5
  const makeVMainProps = propsFactory({
@@ -1,6 +1,6 @@
1
1
  import { useId, toRef, ref, computed, mergeProps, createVNode } from 'vue';
2
- import { u as useScopeId, f as forwardRefs, m as makeVOverlayProps, V as VOverlay } from './forwardRefs-D3na5VY2.js';
3
- import { g as genericComponent, p as propsFactory, x as useProxiedModel, c as useRender, $ as omit } from './asWebComponent-C-6K08Kk.js';
2
+ import { u as useScopeId, f as forwardRefs, m as makeVOverlayProps, V as VOverlay } from './forwardRefs-CVzxyoSq.js';
3
+ import { g as genericComponent, z as useProxiedModel, c as useRender, p as propsFactory, C as omit } from './asWebComponent-DDt7V3Bl.js';
4
4
 
5
5
  const makeVTooltipProps = propsFactory({
6
6
  id: String,
@@ -1,5 +1,5 @@
1
- import { ref, onMounted, nextTick, createElementBlock, openBlock, Fragment, renderList, unref, createElementVNode, toDisplayString, normalizeStyle, createBlock, resolveDynamicComponent, mergeProps } from 'vue';
2
- import { ap as useDefineWidgets, a as useLayout } from './asWebComponent-C-6K08Kk.js';
1
+ import { ref, onMounted, nextTick, openBlock, createElementBlock, Fragment, renderList, unref, createElementVNode, toDisplayString, normalizeStyle, createBlock, resolveDynamicComponent, mergeProps } from 'vue';
2
+ import { ap as useDefineWidgets, a as useLayout } from './asWebComponent-DDt7V3Bl.js';
3
3
  import 'animated-details';
4
4
 
5
5
  const _sfc_main = {