@eeacms/volto-clms-theme 1.0.197 → 1.0.198

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,20 @@ 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.0.198](https://github.com/eea/volto-clms-theme/compare/1.0.197...1.0.198) - 17 April 2023
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat: clms-1336 allow user setting custom speed [Mikel Larreategi - [`b7eef2c`](https://github.com/eea/volto-clms-theme/commit/b7eef2cb1f67f88682a517da74d6f231317a6254)]
12
+ - feat: clms-2012 new field [Mikel Larreategi - [`7721139`](https://github.com/eea/volto-clms-theme/commit/7721139c55da28de71454fd0ccad33c3bb05d091)]
13
+ - feat: clms-2031 center texts in the download cart view [Mikel Larreategi - [`cc4f446`](https://github.com/eea/volto-clms-theme/commit/cc4f446cb97634ab176162325647733a5351badd)]
14
+
15
+ #### :bug: Bug Fixes
16
+
17
+ - fix: recover the 'Credits' pop-up [Mikel Larreategi - [`740935d`](https://github.com/eea/volto-clms-theme/commit/740935d43ad971ee4f04e53eb6b1db892197139b)]
18
+ - fix: clms-2008 show bounding box coordinates [Mikel Larreategi - [`d42a563`](https://github.com/eea/volto-clms-theme/commit/d42a563e1d08d49999199ea0af341c44140851c4)]
19
+ - fix: clms-1907 show name instead of fullname [Mikel Larreategi - [`be77e3d`](https://github.com/eea/volto-clms-theme/commit/be77e3d62621773554577b587eb8c42aab3af837)]
20
+
7
21
  ### [1.0.197](https://github.com/eea/volto-clms-theme/compare/1.0.196...1.0.197) - 5 April 2023
8
22
 
9
23
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.0.197",
3
+ "version": "1.0.198",
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",
@@ -4,7 +4,7 @@ import React from 'react';
4
4
 
5
5
  const CclGreenBgView = (props) => {
6
6
  const { data, isEditMode } = props;
7
- const { showInfo, setShowInfo } = props.properties;
7
+ const { showInfo, setShowInfo } = props?.content || {};
8
8
  return (
9
9
  <div className="ccl-banner-top-container">
10
10
  <div
@@ -15,7 +15,7 @@ const CclTextLinkCarouselView = (props) => {
15
15
  cssEase: 'linear',
16
16
  arrows: false,
17
17
  autoplay: true,
18
- autoplaySpeed: 2000,
18
+ autoplaySpeed: parseInt(data?.speed) || 2000,
19
19
  };
20
20
 
21
21
  return (
@@ -4,7 +4,7 @@ export const TextLinkCarouselSchema = () => ({
4
4
  {
5
5
  id: 'default',
6
6
  title: 'Default',
7
- fields: ['textLink'],
7
+ fields: ['textLink', 'speed'],
8
8
  },
9
9
  ],
10
10
  properties: {
@@ -13,6 +13,10 @@ export const TextLinkCarouselSchema = () => ({
13
13
  widget: 'text_link_widget',
14
14
  type: 'string',
15
15
  },
16
+ speed: {
17
+ title: 'Speed',
18
+ type: 'number',
19
+ },
16
20
  },
17
21
  required: [],
18
22
  });
@@ -62,6 +62,16 @@ const DownloadDataSetContent = (data, token) => {
62
62
  </div>
63
63
  )}
64
64
 
65
+ {data.download_by_area_extra_text?.data &&
66
+ data.download_by_area_extra_text?.data !== '<p><br/><p>' &&
67
+ data.download_by_area_extra_text?.data !== '<p></p>' && (
68
+ <div className="dataset-download-area">
69
+ <StringToHTML
70
+ string={data.download_by_area_extra_text?.data || ''}
71
+ />
72
+ </div>
73
+ )}
74
+
65
75
  {data.download_full_dataset_text?.data &&
66
76
  data.download_full_dataset_text?.data !== '<p><br/><p>' &&
67
77
  data.download_full_dataset_text?.data !== '<p></p>' && (
@@ -23,6 +23,7 @@ import {
23
23
  import { getAvailableConversion } from './conversion';
24
24
  import { toast } from 'react-toastify';
25
25
 
26
+ import './cart-table.less';
26
27
  /* eslint-disable react-hooks/exhaustive-deps */
27
28
  /**
28
29
  * CLMSCartContent container.
@@ -184,7 +185,16 @@ const CLMSCartContent = (props) => {
184
185
  const { item } = areaProps;
185
186
  switch (item.area?.type) {
186
187
  case 'polygon':
187
- return 'Bounding Box';
188
+ return (
189
+ <>
190
+ <span>Bounding Box</span>
191
+ <br />
192
+ <span>
193
+ {'('} {item.area.value.map((item) => item.toFixed(3)).join(', ')}
194
+ {')'}
195
+ </span>
196
+ </>
197
+ );
188
198
  case 'nuts':
189
199
  return 'NUTS: ' + (item.area.valueName || item.area.value);
190
200
  case undefined:
@@ -0,0 +1,3 @@
1
+ td {
2
+ vertical-align: middle !important;
3
+ }
@@ -168,8 +168,8 @@ class CLMSUserProfileView extends Component {
168
168
  </h1>
169
169
  <p>
170
170
  Use this form to update your profile details. Be aware that if
171
- you want to change your full name and e-mail address, you have
172
- to do so in your{' '}
171
+ you want to change your name and e-mail address, you have to do
172
+ so in your{' '}
173
173
  <UniversalLink href={'https://ecas.ec.europa.eu/cas/'}>
174
174
  EU Login account
175
175
  </UniversalLink>
@@ -179,7 +179,7 @@ class CLMSUserProfileView extends Component {
179
179
  <Segment>
180
180
  <ul>
181
181
  <li>
182
- <strong>Full name:</strong> {this.props.user.fullname}
182
+ <strong>Name:</strong> {this.props.user.fullname}
183
183
  </li>
184
184
  <li>
185
185
  <strong>E-mail:</strong> {this.props.user.email}