@eeacms/volto-clms-theme 1.1.223 → 1.1.224

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.
Binary file
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ 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.224](https://github.com/eea/volto-clms-theme/compare/1.1.223...1.1.224) - 23 March 2025
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat: add a message about the range of the time series datasets in the Download tab of the dataset -refs #283619 [ana-oprea - [`abddead`](https://github.com/eea/volto-clms-theme/commit/abddeadc7b5c276c46341aa0fa5712648f483fcb)]
12
+
7
13
  ### [1.1.223](https://github.com/eea/volto-clms-theme/compare/1.1.222...1.1.223) - 19 March 2025
8
14
 
9
15
  #### :bug: Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.223",
3
+ "version": "1.1.224",
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",
@@ -10,7 +10,9 @@ import {
10
10
  sanitizedHTML,
11
11
  } from '@eeacms/volto-clms-theme/components/CclUtils';
12
12
 
13
- const DownloadDataSetContent = (data, token) => {
13
+ import InfoDownloadDataSet from './InfoDownloadDataSet';
14
+
15
+ const DownloadDataSetContent = (data, token, fontAwesomeSolid) => {
14
16
  const user = useSelector((state) => state?.users?.user);
15
17
  const locale = useSelector((state) => state?.intl?.locale);
16
18
  let download_other_ways_access_dataset = sanitizedHTML(
@@ -26,7 +28,16 @@ const DownloadDataSetContent = (data, token) => {
26
28
  return (
27
29
  <div>
28
30
  {data?.downloadable_full_dataset && (
29
- <div className="dataset-download-area">
31
+ <div
32
+ className={
33
+ data.download_limit_temporal_extent &&
34
+ user?.['@id'] &&
35
+ (data.mapviewer_istimeseries ||
36
+ data.download_show_auxiliary_calendar)
37
+ ? ''
38
+ : 'dataset-download-area'
39
+ }
40
+ >
30
41
  {data.mapviewer_istimeseries ||
31
42
  data.download_show_auxiliary_calendar ? (
32
43
  <>
@@ -49,11 +60,18 @@ const DownloadDataSetContent = (data, token) => {
49
60
  {user?.['@id'] ? (
50
61
  data.mapviewer_istimeseries ||
51
62
  data.download_show_auxiliary_calendar ? (
52
- <CclButton
53
- url={'/' + locale + '/map-viewer?dataset=' + data?.UID}
54
- >
55
- Go to download by area and time
56
- </CclButton>
63
+ <>
64
+ <CclButton
65
+ url={'/' + locale + '/map-viewer?dataset=' + data?.UID}
66
+ >
67
+ Go to download by area and time
68
+ </CclButton>
69
+ {data.download_limit_temporal_extent && (
70
+ <InfoDownloadDataSet
71
+ temporalLimitExtent={data.download_limit_temporal_extent}
72
+ />
73
+ )}
74
+ </>
57
75
  ) : (
58
76
  <CclButton
59
77
  url={'/' + locale + '/map-viewer?dataset=' + data?.UID}
@@ -98,7 +116,7 @@ const DownloadDataSetContent = (data, token) => {
98
116
 
99
117
  {download_other_ways_access_dataset !== '' && (
100
118
  <div className="dataset-access-container">
101
- <h2>You can also access this dataset</h2>
119
+ <h2>Access data on external site(s)</h2>
102
120
  <StringToHTML
103
121
  string={data?.download_other_ways_access_dataset?.data || ''}
104
122
  />
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+
3
+ import { FontAwesomeIcon } from '@eeacms/volto-clms-utils/components';
4
+ import { withFontAwesomeLibs } from '@eeacms/volto-clms-utils/helpers';
5
+
6
+ function InfoDownloadDataSet({ temporalLimitExtent, fontAwesomeSolid }) {
7
+ return (
8
+ <div className="info-download-dataset-container">
9
+ <span className="info-download-icon" direction="up">
10
+ <FontAwesomeIcon icon={fontAwesomeSolid.faInfoCircle} />
11
+ </span>
12
+ <div className="info-download-dataset-description">
13
+ For this product the maximum download period is{' '}
14
+ <span className="info-download-days">{temporalLimitExtent} days.</span>
15
+ </div>
16
+ </div>
17
+ );
18
+ }
19
+
20
+ export default withFontAwesomeLibs(InfoDownloadDataSet);
@@ -26,4 +26,5 @@
26
26
  @import 'order-documents-widget';
27
27
  @import 'column-product-card';
28
28
  @import 'product-tab-toggle';
29
- @import 'clms-table';
29
+ @import 'clms-table';
30
+ @import 'dataset-info-section';
@@ -0,0 +1,22 @@
1
+ .info-download-dataset-container {
2
+ background-color: #f5f5f5;
3
+ padding: 0.5rem;
4
+ width: fit-content;
5
+ color: #262626;
6
+ margin-top: 1rem;
7
+ margin-bottom: 1rem;
8
+ border-radius: 5px;
9
+
10
+ .info-download-icon {
11
+ color: #262626;
12
+ margin-right: 0.5rem;
13
+ }
14
+
15
+ .info-download-dataset-description {
16
+ display: inline-block;
17
+
18
+ .info-download-days {
19
+ font-weight: bold;
20
+ }
21
+ }
22
+ }