@eodash/eodash 5.0.0-alpha.2.18 → 5.0.0-alpha.2.19

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 (34) hide show
  1. package/core/client/composables/EodashMap.js +83 -97
  2. package/core/client/eodash.js +25 -4
  3. package/core/client/store/Actions.js +6 -0
  4. package/core/client/utils/createLayers.js +25 -10
  5. package/core/client/utils/eodashSTAC.js +13 -5
  6. package/core/client/utils/helpers.js +3 -3
  7. package/dist/client/{DashboardLayout-Dk6lzKZA.js → DashboardLayout-CU4js3lr.js} +2 -2
  8. package/dist/client/{DynamicWebComponent-BkMCGU7a.js → DynamicWebComponent-BsYZdIEB.js} +2 -2
  9. package/dist/client/{EodashDatePicker-D27wn0jP.js → EodashDatePicker-DZoH_gRX.js} +24 -24
  10. package/dist/client/{EodashItemFilter-DS1mOc2p.js → EodashItemFilter-CHBfsFSm.js} +1362 -1347
  11. package/dist/client/{EodashLayerControl-BqGA6jbV.js → EodashLayerControl-CuY-cAx8.js} +4374 -4243
  12. package/dist/client/{EodashMap-BnVrfBnA.js → EodashMap-Ch43fWNv.js} +23407 -23065
  13. package/dist/client/{EodashMapBtns-rv-U1nI_.js → EodashMapBtns-CFA2uti4.js} +2 -2
  14. package/dist/client/{ExportState-C3Z1ET5c.js → ExportState-C6raDjTt.js} +58 -59
  15. package/dist/client/{Footer-BBkNiqPm.js → Footer-D8T5ROhF.js} +1 -1
  16. package/dist/client/{Header-BQKHLO5P.js → Header-B8B4Z5R9.js} +4 -4
  17. package/dist/client/{IframeWrapper-BX4e2uxq.js → IframeWrapper-BK2JxzSJ.js} +1 -1
  18. package/dist/client/{MobileLayout-C2aqobN5.js → MobileLayout-aZaYvF8V.js} +51 -51
  19. package/dist/client/{PopUp-DG3zrW12.js → PopUp-DdHXoNOP.js} +30 -30
  20. package/dist/client/{VImg-BLpHACcB.js → VImg-yb8O1cb8.js} +2 -2
  21. package/dist/client/{VMain-DOyRcpub.js → VMain-Dknnyxts.js} +2 -2
  22. package/dist/client/{VOverlay-DAiInZQP.js → VOverlay-BCOn3hd6.js} +35 -35
  23. package/dist/client/{WidgetsContainer-BqoX7R5Z.js → WidgetsContainer-BixUyr1e.js} +1 -1
  24. package/dist/client/{asWebComponent-tNU8_fkz.js → asWebComponent-CHqY8A1z.js} +6784 -6666
  25. package/dist/client/eo-dash.js +1 -1
  26. package/dist/client/{forwardRefs-BexjzXbg.js → forwardRefs-dcYA2XVU.js} +1 -1
  27. package/dist/client/{index-F73os72i.js → index-BVuSHaVu.js} +1 -1
  28. package/dist/client/{lerc-B4lXefGh-DhdntrgS.js → lerc-BPVtQnt3-08GHszVp.js} +1 -1
  29. package/dist/client/{ssrBoot-C71RpKe4.js → ssrBoot-DU2S_nLc.js} +1 -1
  30. package/dist/client/style.css +1 -1
  31. package/dist/client/{transition-DNdd2Y-1.js → transition-C_fi1aa6.js} +1 -1
  32. package/dist/client/{webfontloader-C7dpDL7m.js → webfontloader-Ofarvipf.js} +1 -1
  33. package/package.json +5 -5
  34. package/widgets/EodashLayerControl.vue +21 -4
@@ -2,7 +2,6 @@ import { EodashCollection } from "@/utils/eodashSTAC";
2
2
  import { setMapProjFromCol } from "@/utils/helpers";
3
3
  import { onMounted, onUnmounted, watch } from "vue";
4
4
  import log from "loglevel";
5
- import { datetime } from "@/store/States";
6
5
  import { useSTAcStore } from "@/store/stac";
7
6
  import { storeToRefs } from "pinia";
8
7
 
@@ -48,67 +47,27 @@ export const useHandleMapMoveEnd = (mapElement, mapPosition) => {
48
47
  };
49
48
 
50
49
  /**
51
- * Adds data layers extracted from eodash collections to Analysis Group
52
- *
53
- * @param { Record<string,any>[] | undefined} layersCollection
50
+ * Creates full layer configuration from indicator and time information
51
+ * @param {import("stac-ts").StacCatalog
52
+ * | import("stac-ts").StacCollection
53
+ * | import("stac-ts").StacItem
54
+ * | null
55
+ * } selectedIndicator
54
56
  * @param {EodashCollection[]} eodashCols
55
57
  * @param {string} [updatedTime]
56
58
  */
57
- const updateLayersConfig = async (
58
- layersCollection,
59
+
60
+ const createLayersConfig = async (
61
+ selectedIndicator,
59
62
  eodashCols,
60
63
  updatedTime,
61
64
  ) => {
62
65
  log.debug(
63
- "Updating layer configuration",
64
- layersCollection,
66
+ "Creating layers config",
67
+ selectedIndicator,
65
68
  eodashCols,
66
69
  updatedTime,
67
70
  );
68
- const dataLayersGroup = layersCollection?.find(
69
- (lyr) => lyr?.properties.id === "AnalysisGroup",
70
- );
71
- /** @type {Record<string,any>[]} */
72
- const analysisLayers = [];
73
-
74
- if (!dataLayersGroup) {
75
- log.debug("no AnalysisGroup layer found to be updated");
76
- return layersCollection;
77
- }
78
-
79
- for (const ec of eodashCols) {
80
- let layers;
81
- if (updatedTime) {
82
- layers = await ec.createLayersJson(new Date(updatedTime));
83
- } else {
84
- layers = await ec.createLayersJson();
85
- }
86
-
87
- if (layers) {
88
- analysisLayers.push(...layers);
89
- }
90
- }
91
- // Add expand to all analysis layers
92
- analysisLayers.forEach((dl) => {
93
- dl.properties.layerControlExpand = true;
94
- dl.properties.layerControlToolsExpand = true;
95
- });
96
-
97
- dataLayersGroup.layers = analysisLayers;
98
-
99
- return layersCollection;
100
- };
101
-
102
- /**
103
- * @param {import("stac-ts").StacCatalog
104
- * | import("stac-ts").StacCollection
105
- * | import("stac-ts").StacItem
106
- * | null
107
- * } selectedIndicator
108
- */
109
-
110
- const createLayersConfig = async (selectedIndicator) => {
111
- log.debug("Creating layers config", selectedIndicator);
112
71
  const layersCollection = [];
113
72
  const dataLayers = {
114
73
  type: "Group",
@@ -120,6 +79,21 @@ const createLayersConfig = async (selectedIndicator) => {
120
79
  layers: /** @type {Record<string,any>[]}*/ ([]),
121
80
  };
122
81
 
82
+ for (const ec of eodashCols) {
83
+ let layers;
84
+ if (updatedTime) {
85
+ layers = await ec.createLayersJson(new Date(updatedTime));
86
+ } else {
87
+ layers = await ec.createLayersJson();
88
+ }
89
+ // Add expand to all analysis layers
90
+ layers.forEach((dl) => {
91
+ dl.properties.layerControlExpand = true;
92
+ dl.properties.layerControlToolsExpand = true;
93
+ });
94
+ dataLayers.layers.push(...layers);
95
+ }
96
+
123
97
  layersCollection.push(dataLayers);
124
98
  const indicatorLayers =
125
99
  //@ts-expect-error indicator is collection
@@ -215,18 +189,6 @@ const createLayersConfig = async (selectedIndicator) => {
215
189
  layersCollection.unshift(overlayLayers);
216
190
  }
217
191
 
218
- // We try to set the current time selection
219
- // to latest extent date
220
- // @ts-expect-error it seems the temporal extent is not defined in type
221
- const interval = selectedIndicator?.extent?.temporal?.interval;
222
- if (interval && interval.length > 0 && interval[0].length > 1) {
223
- const endInterval = new Date(interval[0][1]);
224
- log.debug(
225
- "Datepicker: found stac extent, setting time to latest value",
226
- endInterval,
227
- );
228
- datetime.value = endInterval.toISOString();
229
- }
230
192
  return layersCollection;
231
193
  };
232
194
 
@@ -260,19 +222,21 @@ export const useInitMap = (
260
222
  [selectedIndicator, datetime],
261
223
  async ([updatedStac, updatedTime], [previousStac, previousTime]) => {
262
224
  if (updatedStac) {
225
+ log.debug(
226
+ "Selected Indicator watch triggered",
227
+ updatedStac,
228
+ updatedTime,
229
+ );
230
+
263
231
  if (mapElement?.value?.id === "main") {
264
232
  // Making sure main map gets the viewer that seems to be
265
233
  // removed when the second map is no longer rendered
266
234
  if (viewHolder !== null) {
235
+ // Set view to previous compare view
267
236
  mapElement?.value?.map.setView(viewHolder);
268
237
  viewHolder = null;
269
238
  }
270
239
  }
271
- log.debug(
272
- "Selected Indicator watch triggered",
273
- updatedStac,
274
- updatedTime,
275
- );
276
240
  let layersCollection = [];
277
241
 
278
242
  const onlyTimeChanged =
@@ -286,20 +250,20 @@ export const useInitMap = (
286
250
  } else {
287
251
  // Compare map being initialized
288
252
  if (selectedCompareStac.value !== null) {
289
- // save old view to set later
253
+ // save view of compare map
290
254
  viewHolder = mapElement?.value?.map.getView();
291
255
  /** @type {any} */
292
256
  (mapElement.value).sync = partnerMap.value;
293
257
  }
294
258
  }
295
259
 
260
+ // We re-crate the configuration if time changed
296
261
  if (onlyTimeChanged) {
297
- layersCollection =
298
- (await updateLayersConfig(
299
- [...(mapElement.value?.layers ?? [])].reverse(),
300
- eodashCols,
301
- updatedTime,
302
- )) ?? [];
262
+ layersCollection = await createLayersConfig(
263
+ updatedStac,
264
+ eodashCols,
265
+ updatedTime,
266
+ );
303
267
  log.debug(
304
268
  "Assigned layers after changing time only",
305
269
  JSON.parse(JSON.stringify(layersCollection)),
@@ -309,28 +273,50 @@ export const useInitMap = (
309
273
  }
310
274
 
311
275
  /** @type {Record<string,any>[]} */
312
- layersCollection = await createLayersConfig(updatedStac);
313
-
314
- // updates layersCollection in place
315
- await updateLayersConfig(layersCollection, eodashCols, updatedTime);
316
-
317
- // Try to move map view to extent
318
- // Sanitize extent,
319
- const b = updatedStac.extent?.spatial.bbox[0];
320
- const sanitizedExtent = [
321
- b[0] > -180 ? b[0] : -180,
322
- b[1] > -90 ? b[1] : -90,
323
- b[2] < 180 ? b[2] : 180,
324
- b[3] < 90 ? b[3] : 90,
325
- ];
326
-
327
- const reprojExtent = mapElement.value?.transformExtent(
328
- sanitizedExtent,
329
- "EPSG:4326",
330
- mapElement.value?.map?.getView().getProjection(),
276
+ layersCollection = await createLayersConfig(
277
+ updatedStac,
278
+ eodashCols,
279
+ datetime.value,
331
280
  );
332
- /** @type {any} */
333
- (mapElement.value).zoomExtent = reprojExtent;
281
+
282
+ // We try to set the current time selection to latest extent date
283
+ let endInterval = null;
284
+ const interval = updatedStac?.extent?.temporal?.interval;
285
+ if (interval && interval.length > 0 && interval[0].length > 1) {
286
+ // @ts-expect-error this is the defined STAC structure
287
+ endInterval = new Date(interval[0][1]);
288
+ log.debug(
289
+ "Indicator load: found stac extent, setting time to latest value",
290
+ endInterval,
291
+ );
292
+ }
293
+ if (
294
+ endInterval !== null &&
295
+ endInterval.toISOString() !== datetime.value
296
+ ) {
297
+ datetime.value = endInterval.toISOString();
298
+ }
299
+
300
+ // Try to move map view to extent only when main
301
+ // indicator and map changes
302
+ if (mapElement?.value?.id === "main") {
303
+ // Sanitize extent,
304
+ const b = updatedStac.extent?.spatial.bbox[0];
305
+ const sanitizedExtent = [
306
+ b[0] > -180 ? b[0] : -180,
307
+ b[1] > -90 ? b[1] : -90,
308
+ b[2] < 180 ? b[2] : 180,
309
+ b[3] < 90 ? b[3] : 90,
310
+ ];
311
+
312
+ const reprojExtent = mapElement.value?.transformExtent(
313
+ sanitizedExtent,
314
+ "EPSG:4326",
315
+ mapElement.value?.map?.getView().getProjection(),
316
+ );
317
+ /** @type {any} */
318
+ (mapElement.value).zoomExtent = reprojExtent;
319
+ }
334
320
 
335
321
  log.debug(
336
322
  "Assigned layers",
@@ -10,7 +10,8 @@ import { currentUrl } from "./store/States";
10
10
  export const eodash = reactive({
11
11
  id: "demo",
12
12
  stacEndpoint:
13
- "https://eodashcatalog.eox.at/test-style/trilateral/catalog.json",
13
+ // "https://eodashcatalog.eox.at/test-style/trilateral/catalog.json",
14
+ "https://gtif-cerulean.github.io/catalog/cerulean/catalog.json",
14
15
  brand: {
15
16
  noLayout: true,
16
17
  name: "Demo",
@@ -45,7 +46,7 @@ export const eodash = reactive({
45
46
  widget: {
46
47
  name: "EodashMap",
47
48
  properties: {
48
- // enableCompare: true,
49
+ enableCompare: true,
49
50
  },
50
51
  },
51
52
  },
@@ -58,7 +59,7 @@ export const eodash = reactive({
58
59
  widget: {
59
60
  name: "EodashItemFilter",
60
61
  properties: {
61
- // enableCompare: true,
62
+ enableCompare: true,
62
63
  aggregateResults: "collection_group",
63
64
  },
64
65
  },
@@ -72,13 +73,33 @@ export const eodash = reactive({
72
73
  name: "EodashLayerControl",
73
74
  },
74
75
  },
76
+ /*
77
+ {
78
+ defineWidget: (selectedCompareStac) => {
79
+ return selectedCompareStac
80
+ ? {
81
+ id: Symbol(),
82
+ title: "Layer Control Comparison",
83
+ layout: { x: 9, y: 6, w: 3, h: 6 },
84
+ type: "internal",
85
+ widget: {
86
+ name: "EodashLayerControl",
87
+ properties: {
88
+ map: "second",
89
+ },
90
+ },
91
+ }
92
+ : null;
93
+ },
94
+ },
95
+ */
75
96
  {
76
97
  defineWidget: (selectedSTAC) => {
77
98
  return selectedSTAC
78
99
  ? {
79
100
  id: "Information",
80
101
  title: "Information",
81
- layout: { x: 9, y: 0, w: 3, h: 12 },
102
+ layout: { x: 9, y: 0, w: 3, h: 6 },
82
103
  type: "web-component",
83
104
  widget: {
84
105
  link: async () => await import("@eox/stacinfo"),
@@ -8,6 +8,12 @@ import log from "loglevel";
8
8
  */
9
9
  export const getLayers = () => mapEl.value?.layers.toReversed();
10
10
 
11
+ /**
12
+ * Returns the current layers of {@link mapCompareEl}
13
+ * @returns {Record<string,any>[]}
14
+ */
15
+ export const getCompareLayers = () => mapCompareEl.value?.layers.toReversed();
16
+
11
17
  /**
12
18
  * Register EPSG projection in `eox-map`
13
19
  * @param {string|number|{name: string, def: string, extent?:number[]}} [projection]*/
@@ -1,4 +1,5 @@
1
1
  import { registerProjection } from "@/store/Actions";
2
+ import { mapEl } from "@/store/States";
2
3
  import {
3
4
  extractRoles,
4
5
  getProjectionCode,
@@ -116,6 +117,10 @@ export const createLayersFromLinks = async (
116
117
  const wmtsArray = item.links.filter((l) => l.rel === "wmts");
117
118
  const xyzArray = item.links.filter((l) => l.rel === "xyz") ?? [];
118
119
 
120
+ // Taking projection code from main map view, as main view defines
121
+ // projection for comparison map
122
+ const viewProjectionCode = mapEl?.value?.projection || "EPSG:3857";
123
+
119
124
  for (const wmsLink of wmsArray ?? []) {
120
125
  // Registering setting sub wms link projection
121
126
 
@@ -124,12 +129,16 @@ export const createLayersFromLinks = async (
124
129
  (wmsLink?.["proj:epsg"] || wmsLink?.["eodash:proj4_def"]);
125
130
 
126
131
  await registerProjection(wmsLinkProjection);
127
- const projectionCode = getProjectionCode(wmsLinkProjection || "EPSG:4326");
132
+
133
+ const linkProjectionCode =
134
+ getProjectionCode(wmsLinkProjection) || "EPSG:4326";
135
+ // Projection code need to be based on map view projection to make sure
136
+ // tiles are reloaded when changing projection
128
137
  const linkId = createLayerID(
129
138
  collectionId,
130
139
  item.id,
131
140
  wmsLink,
132
- projectionCode,
141
+ viewProjectionCode,
133
142
  );
134
143
  log.debug("WMS Layer added", linkId);
135
144
  let json = {
@@ -142,7 +151,7 @@ export const createLayersFromLinks = async (
142
151
  source: {
143
152
  type: "TileWMS",
144
153
  url: wmsLink.href,
145
- projection: projectionCode,
154
+ projection: linkProjectionCode,
146
155
  tileGrid: {
147
156
  tileSize: [512, 512],
148
157
  },
@@ -181,8 +190,14 @@ export const createLayersFromLinks = async (
181
190
  collectionId,
182
191
  item.id,
183
192
  wmtsLink,
184
- projectionCode,
193
+ viewProjectionCode,
185
194
  );
195
+ const dimensions = /** @type { {style:any} & Record<string,any> } */ (
196
+ wmtsLink["wmts:dimensions"] || {}
197
+ );
198
+ let { style, ...dimensionsWithoutStyle } = { ...dimensions };
199
+ let extractedStyle = /** @type { string } */ (style || "default");
200
+
186
201
  if (wmtsLink.title === "wmts capabilities") {
187
202
  log.debug(
188
203
  "Warning: WMTS Layer from capabilities added, function needs to be updated",
@@ -200,14 +215,14 @@ export const createLayersFromLinks = async (
200
215
  // TODO: Hard coding url as the current one set is for capabilities
201
216
  url: "https://wmts.marine.copernicus.eu/teroWmts",
202
217
  layer: wmtsLink["wmts:layer"],
203
- style: wmtsLink.style || "default",
218
+ style: extractedStyle,
204
219
  // TODO: Hard coding matrixSet until we find solution to wmts creation from capabilities
205
220
  matrixSet: "EPSG:3857",
206
221
  projection: projectionCode,
207
222
  tileGrid: {
208
223
  tileSize: [128, 128],
209
224
  },
210
- dimensions: wmtsLink["wmts:dimensions"],
225
+ dimensions: dimensionsWithoutStyle,
211
226
  },
212
227
  };
213
228
  } else {
@@ -224,15 +239,15 @@ export const createLayersFromLinks = async (
224
239
  },
225
240
  source: {
226
241
  type: "WMTS",
227
- url: wmtsLink,
242
+ url: wmtsLink.href,
228
243
  layer: wmtsLink["wmts:layer"],
229
- style: wmtsLink.style || "default",
244
+ style: extractedStyle,
230
245
  matrixSet: wmtsLink.matrixSet || "EPSG:3857",
231
246
  projection: projectionCode,
232
247
  tileGrid: {
233
248
  tileSize: [512, 512],
234
249
  },
235
- dimensions: wmtsLink["wmts:dimensions"],
250
+ dimensions: dimensionsWithoutStyle,
236
251
  },
237
252
  };
238
253
  }
@@ -251,7 +266,7 @@ export const createLayersFromLinks = async (
251
266
  collectionId,
252
267
  item.id,
253
268
  xyzLink,
254
- projectionCode,
269
+ viewProjectionCode,
255
270
  );
256
271
  log.debug("XYZ Layer added", linkId);
257
272
  let json = {
@@ -9,7 +9,11 @@ import {
9
9
  generateFeatures,
10
10
  replaceLayer,
11
11
  } from "./helpers";
12
- import { getLayers, registerProjection } from "@/store/Actions";
12
+ import {
13
+ getLayers,
14
+ getCompareLayers,
15
+ registerProjection,
16
+ } from "@/store/Actions";
13
17
  import { createLayersFromAssets, createLayersFromLinks } from "./createLayers";
14
18
  import axios from "@/plugins/axios";
15
19
  import log from "loglevel";
@@ -305,8 +309,9 @@ export class EodashCollection {
305
309
  *
306
310
  * @param {string} datetime
307
311
  * @param {string} layer
312
+ * @param {string} map
308
313
  */
309
- async updateLayerJson(datetime, layer) {
314
+ async updateLayerJson(datetime, layer, map) {
310
315
  await this.fetchCollection();
311
316
 
312
317
  // get the link of the specified date
@@ -327,12 +332,15 @@ export class EodashCollection {
327
332
  // create json layers from the item
328
333
  const newLayers = await this.createLayersJson(specifiedLink);
329
334
 
330
- const curentLayers = getLayers();
335
+ let currentLayers = getLayers();
336
+ if (map === "second") {
337
+ currentLayers = getCompareLayers();
338
+ }
331
339
 
332
- const oldLayer = findLayer(curentLayers, layer);
340
+ const oldLayer = findLayer(currentLayers, layer);
333
341
 
334
342
  const updatedLayers = replaceLayer(
335
- curentLayers,
343
+ currentLayers,
336
344
  /** @type {Record<string,any> & { properties:{ id:string; title:string } } } */
337
345
  (oldLayer),
338
346
  newLayers,
@@ -141,9 +141,9 @@ export const extractRoles = (properties, linkOrAsset) => {
141
141
  properties.group = role;
142
142
  //remove all the properties and replace the random ID with baselayer
143
143
  // provided ID
144
- const [_colId, _itemId, _isAsset, _random, proj] =
145
- properties.id.split(";:;");
146
- properties.id = ["", "", "", "", linkOrAsset.id, proj].join(";:;");
144
+ // const [_colId, _itemId, _isAsset, _random, proj] =
145
+ // properties.id.split(";:;");
146
+ // properties.id = ["", "", "", "", linkOrAsset.id, proj].join(";:;");
147
147
  }
148
148
 
149
149
  return properties;
@@ -1,5 +1,5 @@
1
- import { _ as y, x as m, W as x, X as d, $ as t, a0 as r, a1 as l, a9 as _, a3 as n, a6 as u, a2 as c, a4 as p, d as h, a5 as g, F as f, a7 as v, ab as w } from "./asWebComponent-tNU8_fkz.js";
2
- import { V as k } from "./VMain-DOyRcpub.js";
1
+ import { _ as y, x as m, W as x, X as d, $ as t, a0 as r, a1 as l, a9 as _, a3 as n, a6 as u, a2 as c, a4 as p, d as h, a5 as g, F as f, a7 as v, ab as w } from "./asWebComponent-CHqY8A1z.js";
2
+ import { V as k } from "./VMain-Dknnyxts.js";
3
3
  class A extends HTMLElement {
4
4
  static get observedAttributes() {
5
5
  return ["gap"];
@@ -1,4 +1,4 @@
1
- import { bM as i, aD as m, r as p, Z as d, aR as f, $ as c, a6 as g, a0 as y, d as _, a4 as k } from "./asWebComponent-tNU8_fkz.js";
1
+ import { bM as i, aC as m, r as p, Z as d, aR as f, $ as c, a6 as g, a0 as y, d as _, a4 as k } from "./asWebComponent-CHqY8A1z.js";
2
2
  const h = { class: "d-flex flex-column fill-height overflow-auto" }, N = {
3
3
  __name: "DynamicWebComponent",
4
4
  props: {
@@ -38,7 +38,7 @@ const h = { class: "d-flex flex-column fill-height overflow-auto" }, N = {
38
38
  e.onMounted?.(r.value, s);
39
39
  }), f(() => {
40
40
  e.onUnmounted?.(r.value, s);
41
- }), (n, x) => (c(), g("span", h, [
41
+ }), (n, w) => (c(), g("span", h, [
42
42
  (c(), y(
43
43
  k(o.tagName),
44
44
  _(o.properties, {
@@ -1,6 +1,6 @@
1
- import { p as O, o as R, g as _, y as $, aw as F, c as f, r as I, d as x, a as H, b as p, ax as j, ay as B, T as L, az as Y, aA as U, aB as z, aC as G, aD as N, w as J, $ as b, a6 as K, aE as W, a1 as m, a3 as k, aF as q, F as Q, aG as C, aH as S, a9 as y, aI as X, aJ as Z, t as V, a0 as T, M as P, aK as tt, V as M, aL as et, aM as h } from "./asWebComponent-tNU8_fkz.js";
2
- import { m as at, V as A } from "./VOverlay-DAiInZQP.js";
3
- import { b as nt, f as ot } from "./forwardRefs-BexjzXbg.js";
1
+ import { p as O, o as R, g as _, y as $, aw as F, c as f, r as I, d as x, a as j, b as p, ax as H, ay as B, T as Y, az as L, aA as U, aB as z, aC as G, w as N, a6 as J, aD as K, a1 as m, a3 as b, aE as W, F as q, aF as Q, $ as k, a9 as y, aG as X, aH as Z, t as V, a0 as T, M as P, aI as tt, V as A, aJ as et, aK as C, aL as S, aM as h } from "./asWebComponent-CHqY8A1z.js";
2
+ import { m as at, V as E } from "./VOverlay-BCOn3hd6.js";
3
+ import { b as nt, f as ot } from "./forwardRefs-dcYA2XVU.js";
4
4
  const st = O({
5
5
  id: String,
6
6
  text: String,
@@ -33,9 +33,9 @@ const st = O({
33
33
  } = nt(), l = F(), n = f(() => t.id || `v-tooltip-${l}`), a = I(), o = f(() => t.location.split(" ").length > 1 ? t.location : t.location + " center"), s = f(() => t.origin === "auto" || t.origin === "overlap" || t.origin.split(" ").length > 1 || t.location.split(" ").length > 1 ? t.origin : t.origin + " center"), u = f(() => t.transition ? t.transition : e.value ? "scale-transition" : "fade-transition"), g = f(() => x({
34
34
  "aria-describedby": n.value
35
35
  }, t.activatorProps));
36
- return H(() => {
37
- const w = A.filterProps(t);
38
- return p(A, x({
36
+ return j(() => {
37
+ const w = E.filterProps(t);
38
+ return p(E, x({
39
39
  ref: a,
40
40
  class: ["v-tooltip", t.class],
41
41
  style: t.style,
@@ -63,7 +63,7 @@ const st = O({
63
63
  }
64
64
  });
65
65
  function it(t, r) {
66
- const i = typeof t == "string" ? j(t) : t, e = lt(i, r);
66
+ const i = typeof t == "string" ? H(t) : t, e = lt(i, r);
67
67
  return {
68
68
  mounted: e,
69
69
  updated: e,
@@ -74,7 +74,7 @@ function it(t, r) {
74
74
  }
75
75
  function lt(t, r) {
76
76
  return function(i, e, c) {
77
- const l = typeof r == "function" ? r(e) : r, n = e.value?.text ?? e.value ?? l?.text, a = L(e.value) ? e.value : {}, o = () => n ?? i.innerHTML, s = (c.ctx === e.instance.$ ? ct(c, e.instance.$)?.provides : c.ctx?.provides) ?? e.instance.$.provides, u = Y(t, x(l, a), o);
77
+ const l = typeof r == "function" ? r(e) : r, n = e.value?.text ?? e.value ?? l?.text, a = Y(e.value) ? e.value : {}, o = () => n ?? i.textContent, s = (c.ctx === e.instance.$ ? ct(c, e.instance.$)?.provides : c.ctx?.provides) ?? e.instance.$.provides, u = L(t, x(l, a), o);
78
78
  u.appContext = Object.assign(/* @__PURE__ */ Object.create(null), e.instance.$.appContext, {
79
79
  provides: s
80
80
  }), B(u, i);
@@ -102,9 +102,9 @@ function ct(t, r) {
102
102
  return l.component;
103
103
  return r;
104
104
  }
105
- const E = it(rt, (t) => ({
105
+ const M = it(rt, (t) => ({
106
106
  activator: "parent",
107
- location: t.arg?.replace("-", " ") ?? "top",
107
+ location: t.arg?.replace("-", " "),
108
108
  text: typeof t.value == "boolean" ? void 0 : t.value
109
109
  })), ut = {
110
110
  class: "flex rounded-lg border border-gray-300 dark:border-gray-600",
@@ -121,7 +121,7 @@ const E = it(rt, (t) => ({
121
121
  }
122
122
  },
123
123
  setup(t) {
124
- const r = U((n, a) => ({
124
+ const r = Q((n, a) => ({
125
125
  get() {
126
126
  return n(), new Date(C.value).getTime();
127
127
  },
@@ -131,8 +131,8 @@ const E = it(rt, (t) => ({
131
131
  }
132
132
  })), i = I({
133
133
  input: "YYYY-MM-DD"
134
- }), e = z([]), { selectedStac: c } = G(N());
135
- J(
134
+ }), e = U([]), { selectedStac: c } = z(G());
135
+ N(
136
136
  c,
137
137
  async (n, a) => {
138
138
  if (n && a?.id !== n.id) {
@@ -193,17 +193,17 @@ const E = it(rt, (t) => ({
193
193
  }), r.value = a === -1 / 0 ? Date.now() : a === 1 / 0 ? 0 : a;
194
194
  }
195
195
  }
196
- return (n, a) => (b(), K(
197
- Q,
196
+ return (n, a) => (k(), J(
197
+ q,
198
198
  null,
199
199
  [
200
- p(k(Z), {
200
+ p(b(Z), {
201
201
  modelValue: r.value,
202
202
  "onUpdate:modelValue": a[0] || (a[0] = (o) => r.value = o),
203
203
  modelModifiers: { number: !0 },
204
204
  masks: i.value,
205
205
  attributes: e
206
- }, W({
206
+ }, K({
207
207
  default: m(({ inputValue: o, inputEvents: s }) => [
208
208
  y("div", ut, [
209
209
  y("input", x({ value: o }, X(s, !0), {
@@ -225,41 +225,41 @@ const E = it(rt, (t) => ({
225
225
  key: "0"
226
226
  } : void 0
227
227
  ]), 1032, ["modelValue", "masks", "attributes"]),
228
- p(q, {
228
+ p(W, {
229
229
  align: "center",
230
230
  justify: "center",
231
231
  style: { "margin-top": "6px" }
232
232
  }, {
233
233
  default: m(() => [
234
- V((b(), T(M, {
234
+ V((k(), T(A, {
235
235
  style: { padding: "0px", "margin-right": "4px" },
236
236
  density: "compact",
237
237
  onClick: a[1] || (a[1] = (o) => l(!0))
238
238
  }, {
239
239
  default: m(() => [
240
240
  p(P, {
241
- icon: [k(tt)]
241
+ icon: [b(tt)]
242
242
  }, null, 8, ["icon"])
243
243
  ]),
244
244
  _: 1
245
245
  /* STABLE */
246
246
  })), [
247
- [E, "Set date to oldest available dataset", "bottom"]
247
+ [M, "Set date to oldest available dataset", "bottom"]
248
248
  ]),
249
- V((b(), T(M, {
249
+ V((k(), T(A, {
250
250
  style: { padding: "0px", "margin-left": "4px" },
251
251
  density: "compact",
252
252
  onClick: a[2] || (a[2] = (o) => l(!1))
253
253
  }, {
254
254
  default: m(() => [
255
255
  p(P, {
256
- icon: [k(et)]
256
+ icon: [b(et)]
257
257
  }, null, 8, ["icon"])
258
258
  ]),
259
259
  _: 1
260
260
  /* STABLE */
261
261
  })), [
262
- [E, "Set date to latest available dataset", "bottom"]
262
+ [M, "Set date to latest available dataset", "bottom"]
263
263
  ])
264
264
  ]),
265
265
  _: 1