@eeacms/volto-arcgis-block 0.1.469 → 0.1.470

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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [0.1.470](https://github.com/eea/volto-arcgis-block/compare/0.1.469...0.1.470) - 13 August 2026
8
+
7
9
  ### [0.1.469](https://github.com/eea/volto-arcgis-block/compare/0.1.468...0.1.469) - 12 August 2026
8
10
 
9
11
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.469",
3
+ "version": "0.1.470",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -1036,11 +1036,23 @@ class MenuWidget extends React.Component {
1036
1036
  })
1037
1037
  .then((payload) => {
1038
1038
  const dates = Array.isArray(payload?.dates) ? payload.dates : [];
1039
+ const resolveTimeValue = (value, isStart) => {
1040
+ if (!value) {
1041
+ return null;
1042
+ }
1043
+ const stringValue = String(value);
1044
+ if (/^\d{4}-\d{2}-\d{2}$/.test(stringValue)) {
1045
+ return isStart
1046
+ ? `${stringValue}T00:00:00Z`
1047
+ : `${stringValue}T23:59:59Z`;
1048
+ }
1049
+ return stringValue;
1050
+ };
1039
1051
  const resolvedDateRange =
1040
1052
  dates.length > 0
1041
1053
  ? {
1042
- from: dates[0],
1043
- to: dates[dates.length - 1],
1054
+ from: resolveTimeValue(dates[0], true),
1055
+ to: resolveTimeValue(dates[dates.length - 1], false),
1044
1056
  }
1045
1057
  : null;
1046
1058
  cacheByCollection[normalizedCollectionId] = resolvedDateRange;