@eodash/eodash 5.4.0 → 5.5.1

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 (114) hide show
  1. package/core/client/App.vue +1 -1
  2. package/core/client/asWebComponent.js +1 -1
  3. package/core/client/composables/DefineWidgets.js +12 -2
  4. package/core/client/eodashSTAC/EodashCollection.js +12 -13
  5. package/core/client/eodashSTAC/createLayers.js +45 -18
  6. package/core/client/eodashSTAC/helpers.js +13 -5
  7. package/core/client/eodashSTAC/parquet.js +2 -1
  8. package/core/client/eodashSTAC/triggers.js +1 -2
  9. package/core/client/store/actions.js +17 -17
  10. package/core/client/store/states.js +26 -4
  11. package/core/client/types.ts +9 -0
  12. package/core/client/utils/index.js +18 -1
  13. package/dist/client/{DashboardLayout-CQOGHPW_.js → DashboardLayout-D_590Zle.js} +2 -2
  14. package/dist/client/{DynamicWebComponent-CoLO8FEf.js → DynamicWebComponent-67cfzL4o.js} +1 -1
  15. package/dist/client/EodashChart-BsW18Em1.js +144 -0
  16. package/dist/client/{EodashDatePicker-BZeQ6bcu.js → EodashDatePicker-BwyFIBlK.js} +10 -7
  17. package/dist/client/{EodashItemFilter-CmZkk7GK.js → EodashItemFilter-CgdrG-pX.js} +2 -2
  18. package/dist/client/{EodashLayerControl-D54fY-bX.js → EodashLayerControl-V98fahVJ.js} +2 -2
  19. package/dist/client/{EodashLayoutSwitcher-BCP3FvDb.js → EodashLayoutSwitcher-B4oI5PAx.js} +3 -3
  20. package/dist/client/EodashMapBtns-Ce2tFjJK.js +433 -0
  21. package/dist/client/{EodashStacInfo-BZbmT8vT.js → EodashStacInfo-Cb28jVEr.js} +11 -15
  22. package/dist/client/{EodashTimeSlider-DIcAJr6D.js → EodashTimeSlider-B5boxpCK.js} +2 -2
  23. package/dist/client/{EodashTools-Cz6X6hsF.js → EodashTools-RwiXxELa.js} +4 -4
  24. package/dist/client/{ExportState-DFVFAgKz.js → ExportState-Cp4ftu4f.js} +46 -21
  25. package/dist/client/{Footer-DLzQcjkI.js → Footer-xGfh2LUv.js} +1 -1
  26. package/dist/client/{Header-_D9Z-zFJ.js → Header-BggV8BVC.js} +127 -17
  27. package/dist/client/MobileLayout-BwXCBKFL.js +118 -0
  28. package/dist/client/{PopUp-DwI8V2gW.js → PopUp-C6x6Rpv0.js} +8 -59
  29. package/dist/client/{ProcessList-C9eAg2Sb.js → ProcessList-DDwo71cD.js} +9 -13
  30. package/dist/client/{VImg-COXTnCWE.js → VImg-DN23k6uX.js} +2 -2
  31. package/dist/client/{VMain-C74l1bv-.js → VMain-BT2ZxPLy.js} +1 -1
  32. package/dist/client/{VTooltip-BLS-cQ9N.js → VTooltip-CAkym6KY.js} +3 -4
  33. package/dist/client/{WidgetsContainer-D-VfMRxE.js → WidgetsContainer-CLYZgRgc.js} +1 -1
  34. package/dist/client/asWebComponent-C5YMrXyg.js +9206 -0
  35. package/dist/client/{async-D4G-FOIc.js → async-DHmiD7O-.js} +6 -8
  36. package/dist/client/eo-dash.js +1 -1
  37. package/dist/client/{forwardRefs-CRMFoNYN.js → forwardRefs-YqjFe8WZ.js} +196 -37
  38. package/dist/client/{handling-DTAhQuPh.js → handling-DRaAJMSG.js} +93 -53
  39. package/dist/client/{helpers-CsjKHAcK.js → helpers-Bi-qmnbZ.js} +188 -87
  40. package/dist/client/{index-BoCcZ0l4.js → index-BtY2y1sL.js} +15 -16
  41. package/dist/client/{index-DEmHaCL3.js → index-D4GBjamF.js} +5 -3
  42. package/dist/client/{index-BIcmbjr0.js → index-DYLTaaU8.js} +27 -14
  43. package/dist/client/{index-BHilH1qx.js → index-bSHJLUNu.js} +30 -73
  44. package/dist/client/templates.js +64 -5
  45. package/dist/client/{transition-6MJLK-_H.js → transition-C4YbXuIb.js} +1 -1
  46. package/dist/node/cli.js +1 -1
  47. package/dist/types/core/client/App.vue.d.ts +16 -6
  48. package/dist/types/core/client/asWebComponent.d.ts +2 -2
  49. package/dist/types/core/client/components/DashboardLayout.vue.d.ts +2 -1
  50. package/dist/types/core/client/components/DynamicWebComponent.vue.d.ts +36 -16
  51. package/dist/types/core/client/components/EodashOverlay.vue.d.ts +2 -1
  52. package/dist/types/core/client/components/ErrorAlert.vue.d.ts +9 -1
  53. package/dist/types/core/client/components/Footer.vue.d.ts +2 -1
  54. package/dist/types/core/client/components/Header.vue.d.ts +2 -1
  55. package/dist/types/core/client/components/IframeWrapper.vue.d.ts +12 -6
  56. package/dist/types/core/client/components/Loading.vue.d.ts +2 -1
  57. package/dist/types/core/client/components/MobileLayout.vue.d.ts +2 -1
  58. package/dist/types/core/client/eodashSTAC/helpers.d.ts +2 -0
  59. package/dist/types/core/client/store/actions.d.ts +1 -2
  60. package/dist/types/core/client/store/states.d.ts +22 -4
  61. package/dist/types/core/client/types.d.ts +6 -1
  62. package/dist/types/core/client/utils/index.d.ts +1 -0
  63. package/dist/types/core/client/views/Dashboard.vue.d.ts +20 -8
  64. package/dist/types/templates/compare.d.ts +20 -0
  65. package/dist/types/templates/expert.d.ts +30 -1
  66. package/dist/types/widgets/EodashChart.vue.d.ts +28 -0
  67. package/dist/types/widgets/EodashDatePicker.vue.d.ts +38 -9
  68. package/dist/types/widgets/EodashItemCatalog/index.vue.d.ts +88 -13
  69. package/dist/types/widgets/EodashItemCatalog/methods/map.d.ts +1 -1
  70. package/dist/types/widgets/EodashItemFilter.vue.d.ts +169 -26
  71. package/dist/types/widgets/EodashLayerControl.vue.d.ts +38 -10
  72. package/dist/types/widgets/EodashLayoutSwitcher.vue.d.ts +22 -7
  73. package/dist/types/widgets/EodashMap/EodashMapBtns.vue.d.ts +94 -21
  74. package/dist/types/widgets/EodashMap/index.vue.d.ts +646 -93
  75. package/dist/types/widgets/EodashMap/methods/btns.d.ts +14 -0
  76. package/dist/types/widgets/EodashProcess/ProcessList.vue.d.ts +24 -7
  77. package/dist/types/widgets/EodashProcess/index.vue.d.ts +26 -7
  78. package/dist/types/widgets/EodashProcess/methods/composables.d.ts +1 -2
  79. package/dist/types/widgets/EodashProcess/methods/handling.d.ts +9 -14
  80. package/dist/types/widgets/EodashProcess/methods/outputs.d.ts +2 -2
  81. package/dist/types/widgets/EodashProcess/methods/utils.d.ts +2 -2
  82. package/dist/types/widgets/EodashStacInfo.vue.d.ts +67 -18
  83. package/dist/types/widgets/EodashTimeSlider.vue.d.ts +14 -6
  84. package/dist/types/widgets/EodashTools.vue.d.ts +437 -47
  85. package/dist/types/widgets/ExportState.vue.d.ts +26 -8
  86. package/dist/types/widgets/PopUp.vue.d.ts +61 -11
  87. package/dist/types/widgets/WidgetsContainer.vue.d.ts +22 -6
  88. package/package.json +33 -34
  89. package/templates/baseConfig.js +14 -0
  90. package/templates/compare.js +30 -3
  91. package/templates/expert.js +20 -2
  92. package/templates/lite.js +1 -1
  93. package/widgets/EodashChart.vue +139 -0
  94. package/widgets/EodashDatePicker.vue +5 -2
  95. package/widgets/EodashItemCatalog/index.vue +2 -2
  96. package/widgets/EodashItemCatalog/methods/map.js +9 -10
  97. package/widgets/EodashMap/EodashMapBtns.vue +58 -93
  98. package/widgets/EodashMap/index.vue +10 -2
  99. package/widgets/EodashMap/methods/btns.js +155 -0
  100. package/widgets/EodashMap/methods/create-layers-config.js +3 -3
  101. package/widgets/EodashMap/methods/index.js +2 -1
  102. package/widgets/EodashProcess/ProcessList.vue +2 -3
  103. package/widgets/EodashProcess/index.vue +24 -63
  104. package/widgets/EodashProcess/methods/async.js +1 -1
  105. package/widgets/EodashProcess/methods/composables.js +1 -6
  106. package/widgets/EodashProcess/methods/custom-endpoints/chart/veda-endpoint.js +10 -6
  107. package/widgets/EodashProcess/methods/handling.js +42 -40
  108. package/widgets/EodashProcess/methods/outputs.js +44 -4
  109. package/widgets/EodashProcess/methods/utils.js +3 -5
  110. package/widgets/EodashStacInfo.vue +10 -23
  111. package/widgets/ExportState.vue +9 -15
  112. package/dist/client/EodashMapBtns-D-HulIl1.js +0 -306
  113. package/dist/client/MobileLayout-3Ko9XSfO.js +0 -118
  114. package/dist/client/asWebComponent-Bw03Jutr.js +0 -9090
@@ -1,6 +1,6 @@
1
- import { createVNode, Transition, mergeProps, ref, onBeforeUnmount, watch, nextTick, normalizeStyle, normalizeClass, mergeModels, useModel, createElementBlock, openBlock, withCtx, createBlock, createCommentVNode, resolveDynamicComponent, unref, renderSlot } from 'vue';
2
- import { g as genericComponent, p as propsFactory, aj as PREFERS_REDUCED_MOTION, al as acceleratedEasing, am as deceleratedEasing, an as standardEasing, x as useProxiedModel, ao as IN_BROWSER, c as useRender, ap as focusableChildren, V as VDefaultsProvider, k as provideTheme, f as useBackgroundColor, h as useBorder, b as useDimension, i as useElevation, a8 as useLocation, a9 as usePosition, j as useRounded, q as makeThemeProps, m as makeTagProps, r as makeRoundedProps, ac as makePositionProps, ad as makeLocationProps, s as makeElevationProps, d as makeDimensionProps, e as makeComponentProps, t as makeBorderProps, aq as useDefineWidgets } from './asWebComponent-Bw03Jutr.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-CRMFoNYN.js';
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-C5YMrXyg.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-YqjFe8WZ.js';
4
4
 
5
5
  // Utilities
6
6
  const makeVDialogTransitionProps = propsFactory({
@@ -169,19 +169,17 @@ function getDimensions(target, el) {
169
169
 
170
170
  const makeVDialogProps = propsFactory({
171
171
  fullscreen: Boolean,
172
- retainFocus: {
173
- type: Boolean,
174
- default: true
175
- },
176
172
  scrollable: Boolean,
177
- ...makeVOverlayProps({
173
+ ...omit(makeVOverlayProps({
174
+ captureFocus: true,
178
175
  origin: 'center center',
179
176
  scrollStrategy: 'block',
180
177
  transition: {
181
178
  component: VDialogTransition
182
179
  },
183
- zIndex: 2400
184
- })
180
+ zIndex: 2400,
181
+ retainFocus: true
182
+ }), ['disableInitialFocus'])
185
183
  }, 'VDialog');
186
184
  const VDialog = genericComponent()({
187
185
  name: 'VDialog',
@@ -201,55 +199,6 @@ const VDialog = genericComponent()({
201
199
  scopeId
202
200
  } = useScopeId();
203
201
  const overlay = ref();
204
- async function onFocusin(e) {
205
- const before = e.relatedTarget;
206
- const after = e.target;
207
- await nextTick();
208
- if (isActive.value && before !== after && overlay.value?.contentEl &&
209
- // We're the topmost dialog
210
- overlay.value?.globalTop &&
211
- // It isn't the document or the dialog body
212
- ![document, overlay.value.contentEl].includes(after) &&
213
- // It isn't inside the dialog body
214
- !overlay.value.contentEl.contains(after)) {
215
- const focusable = focusableChildren(overlay.value.contentEl);
216
- focusable[0]?.focus();
217
- }
218
- }
219
- function onKeydown(e) {
220
- if (e.key !== 'Tab' || !overlay.value?.contentEl) return;
221
- const focusable = focusableChildren(overlay.value.contentEl);
222
- if (!focusable.length) return;
223
- const firstElement = focusable[0];
224
- const lastElement = focusable[focusable.length - 1];
225
- const active = document.activeElement;
226
- if (e.shiftKey && active === firstElement) {
227
- e.preventDefault();
228
- lastElement.focus();
229
- } else if (!e.shiftKey && active === lastElement) {
230
- e.preventDefault();
231
- firstElement.focus();
232
- }
233
- }
234
- onBeforeUnmount(() => {
235
- document.removeEventListener('focusin', onFocusin);
236
- document.removeEventListener('keydown', onKeydown);
237
- });
238
- if (IN_BROWSER) {
239
- watch(() => isActive.value && props.retainFocus, val => {
240
- if (val) {
241
- document.addEventListener('focusin', onFocusin, {
242
- once: true
243
- });
244
- document.addEventListener('keydown', onKeydown);
245
- } else {
246
- document.removeEventListener('focusin', onFocusin);
247
- document.removeEventListener('keydown', onKeydown);
248
- }
249
- }, {
250
- immediate: true
251
- });
252
- }
253
202
  function onAfterEnter() {
254
203
  emit('afterEnter');
255
204
  if ((props.scrim || props.retainFocus) && overlay.value?.contentEl && !overlay.value.contentEl.contains(document.activeElement)) {
@@ -1,9 +1,9 @@
1
1
  import { ref, createVNode, normalizeStyle, normalizeClass, createElementVNode, toRefs, onMounted, createElementBlock, openBlock, createBlock, createCommentVNode, unref, withCtx, Fragment, renderList, withDirectives, createTextVNode, toDisplayString, toRef } from 'vue';
2
- import { mdiUploadBox, mdiDownloadBox, mdiTrashCanOutline } from '@mdi/js';
3
- import { g as genericComponent, p as propsFactory, k as provideTheme, U as useDensity, c as useRender, q as makeThemeProps, m as makeTagProps, W 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-Bw03Jutr.js';
4
- import { I as compareIndicator, G as indicator } from './helpers-CsjKHAcK.js';
5
- import { u as updateJobsStatus, k as getJobStatusUrl, l as loadProcess, m as downloadPreviousResults, n as deleteJob } from './async-D4G-FOIc.js';
6
- import { T as Tooltip } from './index-DEmHaCL3.js';
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-C5YMrXyg.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-DHmiD7O-.js';
6
+ import { T as Tooltip } from './index-D4GBjamF.js';
7
7
 
8
8
  /**
9
9
  * The list of job result from the server
@@ -90,7 +90,6 @@ const _sfc_main = {
90
90
  },
91
91
  setup(__props) {
92
92
 
93
- /* eslint-disable @typescript-eslint/no-unused-vars */
94
93
 
95
94
  const { selectedStac, selectedCompareStac } = toRefs(useSTAcStore());
96
95
  const currentJobs = __props.enableCompare ? compareJobs : jobs;
@@ -117,7 +116,7 @@ return (_ctx, _cache) => {
117
116
  style: {"background-color":"transparent"}
118
117
  }, {
119
118
  default: withCtx(() => [
120
- _cache[1] || (_cache[1] = createElementVNode("thead", null, [
119
+ _cache[0] || (_cache[0] = createElementVNode("thead", null, [
121
120
  createElementVNode("tr", null, [
122
121
  createElementVNode("th", { class: "text-left" }, "Executed on"),
123
122
  createElementVNode("th", { class: "text-left" }, "Status"),
@@ -138,12 +137,9 @@ return (_ctx, _cache) => {
138
137
  href: unref(getJobStatusUrl)(item.jobID, unref(currentIndicator))
139
138
  }, [
140
139
  createTextVNode(toDisplayString(new Date(item.job_start_datetime).toISOString().slice(0, 16)) + " ", 1 /* TEXT */),
141
- createVNode(VIcon, null, {
142
- default: withCtx(() => [...(_cache[0] || (_cache[0] = [
143
- createTextVNode("mdi-open-in-new", -1 /* CACHED */)
144
- ]))]),
145
- _: 1 /* STABLE */
146
- })
140
+ createVNode(VIcon, {
141
+ icon: [unref(mdiOpenInNew)]
142
+ }, null, 8 /* PROPS */, ["icon"])
147
143
  ], 8 /* PROPS */, _hoisted_1)), [
148
144
  [Tooltip, 'Process details']
149
145
  ])
@@ -1,6 +1,6 @@
1
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 { ai as SUPPORTS_INTERSECTION, g as genericComponent, aj 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, ak as getCurrentInstance, o as convertToUnit, r as makeRoundedProps } from './asWebComponent-Bw03Jutr.js';
3
- import { m as makeTransitionProps$1, M as MaybeTransition } from './transition-6MJLK-_H.js';
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-C5YMrXyg.js';
3
+ import { m as makeTransitionProps$1, M as MaybeTransition } from './transition-C4YbXuIb.js';
4
4
 
5
5
  // Utilities
6
6
  function mounted(el, binding) {
@@ -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-Bw03Jutr.js';
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-C5YMrXyg.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-CRMFoNYN.js';
3
- import { g as genericComponent, p as propsFactory, x as useProxiedModel, c as useRender, Z as omit } from './asWebComponent-Bw03Jutr.js';
2
+ import { u as useScopeId, f as forwardRefs, m as makeVOverlayProps, V as VOverlay } from './forwardRefs-YqjFe8WZ.js';
3
+ import { g as genericComponent, p as propsFactory, x as useProxiedModel, c as useRender, $ as omit } from './asWebComponent-C5YMrXyg.js';
4
4
 
5
5
  const makeVTooltipProps = propsFactory({
6
6
  id: String,
@@ -19,7 +19,7 @@ const makeVTooltipProps = propsFactory({
19
19
  scrim: false,
20
20
  scrollStrategy: 'reposition',
21
21
  transition: null
22
- }), ['absolute', 'persistent'])
22
+ }), ['absolute', 'retainFocus', 'captureFocus', 'disableInitialFocus'])
23
23
  }, 'VTooltip');
24
24
  const VTooltip = genericComponent()({
25
25
  name: 'VTooltip',
@@ -67,7 +67,6 @@ const VTooltip = genericComponent()({
67
67
  "absolute": true,
68
68
  "location": location.value,
69
69
  "origin": origin.value,
70
- "persistent": true,
71
70
  "role": "tooltip",
72
71
  "activatorProps": activatorProps.value,
73
72
  "_disableGlobalStack": true
@@ -1,5 +1,5 @@
1
1
  import { ref, onMounted, nextTick, createElementBlock, openBlock, Fragment, renderList, unref, createElementVNode, toDisplayString, normalizeStyle, createBlock, resolveDynamicComponent, mergeProps } from 'vue';
2
- import { aq as useDefineWidgets, a as useLayout } from './asWebComponent-Bw03Jutr.js';
2
+ import { ap as useDefineWidgets, a as useLayout } from './asWebComponent-C5YMrXyg.js';
3
3
  import 'animated-details';
4
4
 
5
5
  const _sfc_main = {