@eeacms/volto-clms-theme 1.1.131 → 1.1.133
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 +7 -2
- package/package.json +1 -1
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/CclVerticalTabsView.jsx +52 -1
- package/src/components/CLMSDatasetDetailView/CLMSDatasetDetailView.jsx +31 -14
- package/src/components/CLMSDownloadCartView/AreaNaming.jsx +1 -1
- package/src/components/CLMSDownloadCartView/CLMSCartContent.jsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,16 @@ 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.
|
|
7
|
+
### [1.1.133](https://github.com/eea/volto-clms-theme/compare/1.1.132...1.1.133) - 8 April 2024
|
|
8
8
|
|
|
9
9
|
#### :hammer_and_wrench: Others
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- lint [Mikel Larreategi - [`76ba7cb`](https://github.com/eea/volto-clms-theme/commit/76ba7cbc17ea624233726a5e57788c4a1ba93348)]
|
|
12
|
+
- show validation updates [Mikel Larreategi - [`8dbb259`](https://github.com/eea/volto-clms-theme/commit/8dbb259181b08eb709f5700a54f76d8e336a4391)]
|
|
13
|
+
### [1.1.132](https://github.com/eea/volto-clms-theme/compare/1.1.131...1.1.132) - 4 April 2024
|
|
14
|
+
|
|
15
|
+
### [1.1.131](https://github.com/eea/volto-clms-theme/compare/1.1.130...1.1.131) - 27 March 2024
|
|
16
|
+
|
|
12
17
|
### [1.1.130](https://github.com/eea/volto-clms-theme/compare/1.1.129...1.1.130) - 27 March 2024
|
|
13
18
|
|
|
14
19
|
### [1.1.129](https://github.com/eea/volto-clms-theme/compare/1.1.128...1.1.129) - 25 March 2024
|
package/package.json
CHANGED
|
@@ -18,6 +18,14 @@ const handleClick = (e, tab, activeTab, setActiveTab, location, tabHash) => {
|
|
|
18
18
|
location.hash = `#${tabHash}`;
|
|
19
19
|
setActiveTab(tab);
|
|
20
20
|
}
|
|
21
|
+
if (tab === 'd7706c16-7c4a-4c0e-9471-90765a302c1c') {
|
|
22
|
+
document.querySelector('#loader').style.display = 'block';
|
|
23
|
+
} else {
|
|
24
|
+
closeSpinner();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const closeSpinner = () => {
|
|
28
|
+
document.querySelector('#loader').style.display = 'none';
|
|
21
29
|
};
|
|
22
30
|
|
|
23
31
|
function isSpan(subTab, nextSubTab) {
|
|
@@ -34,6 +42,9 @@ const TabsComponent = (props) => {
|
|
|
34
42
|
tabs = {},
|
|
35
43
|
setActiveTab,
|
|
36
44
|
} = props;
|
|
45
|
+
if (activeTab === 'd7706c16-7c4a-4c0e-9471-90765a302c1c') {
|
|
46
|
+
document.querySelector('#loader').style.display = 'block';
|
|
47
|
+
}
|
|
37
48
|
const location = useLocation();
|
|
38
49
|
return (
|
|
39
50
|
<div className="left-content cont-w-25">
|
|
@@ -105,10 +116,50 @@ const PanelsComponent = (props) => {
|
|
|
105
116
|
const tabHash = `tab=${slugify(title)}`;
|
|
106
117
|
return (
|
|
107
118
|
<Route key={index} to={'#' + tabHash}>
|
|
119
|
+
<div
|
|
120
|
+
id="loader"
|
|
121
|
+
className="loading"
|
|
122
|
+
role="alert"
|
|
123
|
+
aria-busy="true"
|
|
124
|
+
aria-live="polite"
|
|
125
|
+
>
|
|
126
|
+
<div>
|
|
127
|
+
<svg
|
|
128
|
+
width="80"
|
|
129
|
+
height="80"
|
|
130
|
+
viewBox="0 0 24 24"
|
|
131
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
132
|
+
>
|
|
133
|
+
<style>
|
|
134
|
+
{`.spinner_ajPY {
|
|
135
|
+
transform-origin: center;
|
|
136
|
+
animation: spinner_AtaB .75s infinite linear;
|
|
137
|
+
fill: #a0b128; stroke-width: 3px; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));
|
|
138
|
+
}
|
|
139
|
+
@keyframes spinner_AtaB {
|
|
140
|
+
100% {
|
|
141
|
+
transform: rotate(360deg);
|
|
142
|
+
}
|
|
143
|
+
}`}
|
|
144
|
+
</style>
|
|
145
|
+
<path
|
|
146
|
+
d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z"
|
|
147
|
+
opacity=".25"
|
|
148
|
+
/>
|
|
149
|
+
<path
|
|
150
|
+
d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"
|
|
151
|
+
className="spinner_ajPY"
|
|
152
|
+
/>
|
|
153
|
+
</svg>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
108
156
|
<div
|
|
109
157
|
className={cx('panel', tab === activeTab && 'panel-selected')}
|
|
110
|
-
role="
|
|
158
|
+
role="button"
|
|
111
159
|
aria-hidden="false"
|
|
160
|
+
onLoad={() => {
|
|
161
|
+
closeSpinner();
|
|
162
|
+
}}
|
|
112
163
|
>
|
|
113
164
|
<RenderBlocks
|
|
114
165
|
{...props}
|
|
@@ -19,7 +19,6 @@ import { postImportWMSLayers, postImportWMSFields } from '../../actions';
|
|
|
19
19
|
import { GeonetworkImporterButtons } from './GeonetworkImporterButtons';
|
|
20
20
|
import { UniversalLink } from '@plone/volto/components';
|
|
21
21
|
import { cclDateTimeFormat } from '../CclUtils/dateFormats';
|
|
22
|
-
|
|
23
22
|
import jwtDecode from 'jwt-decode';
|
|
24
23
|
import PropTypes from 'prop-types';
|
|
25
24
|
|
|
@@ -344,7 +343,7 @@ const CLMSDatasetDetailView = ({ content, token }) => {
|
|
|
344
343
|
)}
|
|
345
344
|
|
|
346
345
|
<CclTabs routing={true}>
|
|
347
|
-
<div tabTitle="General
|
|
346
|
+
<div tabTitle="General info">{DataSetInfoContent(content)}</div>
|
|
348
347
|
|
|
349
348
|
{content?.downloadable_dataset && (
|
|
350
349
|
<div
|
|
@@ -392,24 +391,42 @@ const CLMSDatasetDetailView = ({ content, token }) => {
|
|
|
392
391
|
</div>
|
|
393
392
|
)}
|
|
394
393
|
|
|
395
|
-
{
|
|
394
|
+
<strong>{content.production_updates_show}</strong>
|
|
395
|
+
|
|
396
|
+
{(content.production_updates_show ||
|
|
397
|
+
(libraries && libraries.length > 0)) && (
|
|
396
398
|
<>
|
|
397
|
-
<
|
|
398
|
-
|
|
399
|
+
<div class="citation-title">Production updates</div>
|
|
400
|
+
|
|
401
|
+
{content.production_updates_show && (
|
|
402
|
+
<>
|
|
403
|
+
<div
|
|
404
|
+
className="validation-citation-container"
|
|
405
|
+
dangerouslySetInnerHTML={{
|
|
406
|
+
__html: content.production_updates_text.data,
|
|
407
|
+
}}
|
|
408
|
+
/>
|
|
409
|
+
</>
|
|
410
|
+
)}
|
|
399
411
|
|
|
400
|
-
|
|
412
|
+
{!content.production_updates_show &&
|
|
413
|
+
libraries.map((item) => {
|
|
401
414
|
const show_dt = cclDateTimeFormat(item.effective);
|
|
402
415
|
return (
|
|
403
|
-
<
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
416
|
+
<div className="validation-citation-container">
|
|
417
|
+
<p>
|
|
418
|
+
{show_dt} <br />
|
|
419
|
+
<UniversalLink item={item}>
|
|
420
|
+
{item.title}
|
|
421
|
+
</UniversalLink>
|
|
422
|
+
</p>
|
|
423
|
+
</div>
|
|
407
424
|
);
|
|
408
425
|
})}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
</
|
|
426
|
+
|
|
427
|
+
<UniversalLink href="/en/production-updates">
|
|
428
|
+
See all or subscribe to production updates
|
|
429
|
+
</UniversalLink>
|
|
413
430
|
</>
|
|
414
431
|
)}
|
|
415
432
|
</nav>
|
|
@@ -13,7 +13,7 @@ export const AreaNaming = (areaProps) => {
|
|
|
13
13
|
<>
|
|
14
14
|
<CclModal
|
|
15
15
|
draggable={true}
|
|
16
|
-
trigger={<span className="cart-modal-trigger">Bounding
|
|
16
|
+
trigger={<span className="cart-modal-trigger">Bounding box</span>}
|
|
17
17
|
size={'medium'}
|
|
18
18
|
>
|
|
19
19
|
<div className="image-modal">
|