@eeacms/volto-clms-theme 1.1.93 → 1.1.95

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,11 +4,25 @@ 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.93](https://github.com/eea/volto-clms-theme/compare/1.1.92...1.1.93) - 12 December 2023
7
+ ### [1.1.95](https://github.com/eea/volto-clms-theme/compare/1.1.94...1.1.95) - 14 December 2023
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat: change link behavior [Mikel Larreategi - [`bde84be`](https://github.com/eea/volto-clms-theme/commit/bde84be1c25d52667ed2567296d9149db5a11586)]
8
12
 
9
13
  #### :bug: Bug Fixes
10
14
 
11
- - fix: fix when there is no qs [Mikel Larreategi - [`457ca3b`](https://github.com/eea/volto-clms-theme/commit/457ca3b81c03efe8754a0f88159308f24a4767c8)]
15
+ - fix:CLMS-2898 [Unai - [`69594d4`](https://github.com/eea/volto-clms-theme/commit/69594d4ffc182249b8ef1b363bd77da55623bc7f)]
16
+
17
+ #### :hammer_and_wrench: Others
18
+
19
+ - test fix [Unai - [`9ff446e`](https://github.com/eea/volto-clms-theme/commit/9ff446ed7a05cc38c0855a53397d23a6d333302a)]
20
+ - ul baten barneko ul-a margin gabe [Zaloa Etxaniz - [`b8b4fc6`](https://github.com/eea/volto-clms-theme/commit/b8b4fc6a0fe4e4e3e6229490c23a2467b7807c1b)]
21
+ - lint [Mikel Larreategi - [`7573815`](https://github.com/eea/volto-clms-theme/commit/7573815970fe1fc77fdb290b6e0ef9b5274f43a1)]
22
+ - content area barneko ul guztiek azpian margina [Zaloa Etxaniz - [`491a209`](https://github.com/eea/volto-clms-theme/commit/491a20909997b82c75699e6b8ac0be46011d8219)]
23
+ ### [1.1.94](https://github.com/eea/volto-clms-theme/compare/1.1.93...1.1.94) - 12 December 2023
24
+
25
+ ### [1.1.93](https://github.com/eea/volto-clms-theme/compare/1.1.92...1.1.93) - 12 December 2023
12
26
 
13
27
  ### [1.1.92](https://github.com/eea/volto-clms-theme/compare/1.1.91...1.1.92) - 12 December 2023
14
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.93",
3
+ "version": "1.1.95",
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",
@@ -22,7 +22,6 @@ import CclButton from '@eeacms/volto-clms-theme/components/CclButton/CclButton';
22
22
  import useCartState from '@eeacms/volto-clms-utils/cart/useCartState';
23
23
  import { cleanDuplicatesEntries } from '@eeacms/volto-clms-utils/utils';
24
24
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
25
- import CclModal from '@eeacms/volto-clms-theme/components/CclModal/CclModal';
26
25
 
27
26
  import { getDownloadtool, postDownloadtool } from '../../actions';
28
27
  import { useFilteredPagination } from '../CclUtils/useFilteredPagination';
@@ -277,28 +276,14 @@ const CLMSCartContent = (props) => {
277
276
  <Table.HeaderCell></Table.HeaderCell>
278
277
  <Table.HeaderCell>
279
278
  Projection{' '}
280
- <CclModal
281
- draggable={false}
282
- trigger={
283
- /* eslint-disable jsx-a11y/anchor-is-valid */
284
- <a href="#">
285
- <Popup
286
- content="Explore EPSG details and coordinate systems with a click."
287
- trigger={
288
- <FontAwesomeIcon
289
- icon={['far', 'question-circle']}
290
- />
291
- }
292
- />
293
- </a>
294
- }
295
- size={'small'}
296
- >
297
- <div className="image-modal">
298
- Explore EPSG-related details in our{' '}
299
- <UniversalLink href="/faq">FAQ page</UniversalLink>
300
- </div>
301
- </CclModal>
279
+ <UniversalLink href="/en/faq/download/how-to-find-your-epsg-code">
280
+ <Popup
281
+ content="Explore EPSG details and coordinate systems with a click."
282
+ trigger={
283
+ <FontAwesomeIcon icon={['far', 'question-circle']} />
284
+ }
285
+ />
286
+ </UniversalLink>
302
287
  </Table.HeaderCell>
303
288
  <Table.HeaderCell>Timeseries</Table.HeaderCell>
304
289
  <Table.HeaderCell></Table.HeaderCell>
@@ -368,31 +353,17 @@ const CLMSCartContent = (props) => {
368
353
 
369
354
  <div className="mb-2">
370
355
  <strong>Format: </strong>{' '}
371
- <CclModal
372
- draggable={false}
373
- trigger={
374
- /* eslint-disable jsx-a11y/anchor-is-valid */
375
- <a href="#">
376
- <Popup
377
- content="Explore Formats details and coordinate systems with a click."
378
- trigger={
379
- <FontAwesomeIcon
380
- color="#000000"
381
- icon={['far', 'question-circle']}
382
- />
383
- }
356
+ <UniversalLink href="/en/faq/download/need-information-about-the-file-formats">
357
+ <Popup
358
+ content="Explore Formats details and coordinate systems with a click."
359
+ trigger={
360
+ <FontAwesomeIcon
361
+ color="#000000"
362
+ icon={['far', 'question-circle']}
384
363
  />
385
- </a>
386
- }
387
- size={'small'}
388
- >
389
- <div className="image-modal">
390
- Explore format-related details in our{' '}
391
- <UniversalLink href="/faq">
392
- FAQ page
393
- </UniversalLink>
394
- </div>
395
- </CclModal>
364
+ }
365
+ />
366
+ </UniversalLink>
396
367
  </div>
397
368
  {item?.layer !== null && (
398
369
  <div className="mb-2">
@@ -27,6 +27,7 @@ export const CartIconCounter = () => {
27
27
  const cartState_ref = useRef(cartState);
28
28
  const cart_icon_ref = React.useRef();
29
29
  const intl = useSelector((state) => state.intl);
30
+ const isDownload = useSelector((state) => state?.downloadtool?.loading);
30
31
  const user_id = useSelector((state) => state.users.user.id);
31
32
  const [showPopup, setshowPopup] = useState(false);
32
33
  const [cartDiff, setCartDiff] = useState(0);
@@ -77,7 +78,8 @@ export const CartIconCounter = () => {
77
78
  if (
78
79
  cartState_ref.current.set.loading &&
79
80
  cartState.set.loaded &&
80
- cartState.items.length >= cartState_ref.current.items.length
81
+ cartState.items.length >= cartState_ref.current.items.length &&
82
+ !isDownload
81
83
  ) {
82
84
  setCartDiff(cartState.items.length - cartState_ref.current.items.length);
83
85
  setCartDiffItems(
@@ -119,7 +121,7 @@ export const CartIconCounter = () => {
119
121
  <Icon
120
122
  onClick={() => setshowPopup(false)}
121
123
  name={clearSVG}
122
- size={20}
124
+ size={'20'}
123
125
  style={{ cursor: 'pointer' }}
124
126
  />
125
127
  </Segment>
@@ -500,6 +500,12 @@ body.contenttype-document .right-content ul {
500
500
  left: 0.5rem;
501
501
  margin-bottom: 1rem;
502
502
  }
503
+ .content-area ul{
504
+ margin-bottom: 1rem;
505
+ }
506
+ .content-area ul ul{
507
+ margin-bottom: 0;
508
+ }
503
509
  .card-container {
504
510
  display: flex;
505
511
  flex-wrap: wrap;