@eeacms/volto-clms-theme 1.1.196 → 1.1.197

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
+ ### [1.1.197](https://github.com/eea/volto-clms-theme/compare/1.1.196...1.1.197) - 11 November 2024
8
+
7
9
  ### [1.1.196](https://github.com/eea/volto-clms-theme/compare/1.1.195...1.1.196) - 6 November 2024
8
10
 
9
11
  #### :bug: Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.196",
3
+ "version": "1.1.197",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -550,6 +550,10 @@ const CLMSCartContent = (props) => {
550
550
  datasetTimeseries.datasets[item?.dataset_uid]
551
551
  ?.download_limit_temporal_extent
552
552
  }
553
+ data_arrays={
554
+ datasetTimeseries.datasets[item?.dataset_uid]
555
+ ?.data_arrays
556
+ }
553
557
  item={item}
554
558
  setTimeseriesValue={setTimeseriesValue}
555
559
  />
@@ -14,6 +14,7 @@ export const TimeseriesPicker = (props) => {
14
14
  item,
15
15
  download_limit_temporal_extent,
16
16
  setTimeseriesValue,
17
+ data_arrays,
17
18
  } = props;
18
19
  const [startValue, setStartValue] = useState(
19
20
  item?.TemporalFilter?.StartDate
@@ -33,7 +34,7 @@ export const TimeseriesPicker = (props) => {
33
34
  const diffDays = Math.round(Math.abs((start - end) / oneDay));
34
35
  return diffDays < limit;
35
36
  };
36
-
37
+ const dates_array = data_arrays.map((e) => new Date(e));
37
38
  return (
38
39
  <>
39
40
  <Popup
@@ -99,6 +100,8 @@ export const TimeseriesPicker = (props) => {
99
100
  dropdownMode="select"
100
101
  showMonthDropdown
101
102
  showYearDropdown
103
+ includeDates={dates_array}
104
+ disabledKeyboardNavigation
102
105
  >
103
106
  {(item?.TemporalFilter?.StartDate ||
104
107
  item?.TemporalFilter?.EndDate) && (