@eeacms/volto-clms-theme 1.0.89 → 1.0.92
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 +37 -0
- package/Jenkinsfile +2 -2
- package/package.json +4 -2
- package/src/components/Blocks/CustomTemplates/VoltoListingBlock/CclListingWorkOpportunities.jsx +8 -6
- package/src/components/CLMSDatasetDetailView/DataSetInfoContent.jsx +7 -1
- package/src/components/CLMSDownloadCartView/CLMSCartContent.jsx +1 -1
- package/src/components/CLMSDownloadCartView/conversion.js +18 -14
- package/src/components/CLMSDownloadsView/CLMSDownloadTasks.jsx +11 -0
- package/src/components/CLMSDownloadsView/FileCard.jsx +39 -6
- package/src/components/CclCard/cards.less +10 -27
- package/src/components/CclLoginModal/CclLoginModal.jsx +2 -2
- package/src/components/CclUtils/dateFormats.js +3 -3
- package/src/index.js +8 -0
- package/theme/clms/css/carousel.css +8 -0
- package/theme/clms/css/forms.css +12 -3
- package/theme/clms/css/home.css +18 -5
- package/theme/clms/css/maps.css +5 -24
- package/theme/clms/css/maps.less +9 -26
- package/theme/clms/css/menu.css +0 -1
- package/theme/clms/css/styles.less +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,45 @@ 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.92](https://github.com/eea/volto-clms-theme/compare/1.0.91...1.0.92)
|
|
8
|
+
|
|
9
|
+
- Ux improvements [`#254`](https://github.com/eea/volto-clms-theme/pull/254)
|
|
10
|
+
- Bugs n improvements [`#252`](https://github.com/eea/volto-clms-theme/pull/252)
|
|
11
|
+
- Zoom tooltip [`3c41e14`](https://github.com/eea/volto-clms-theme/commit/3c41e14e4b631193408adb741c440805ca5cc0df)
|
|
12
|
+
- ESLint fix [`1f3ead1`](https://github.com/eea/volto-clms-theme/commit/1f3ead111747613580ab5e637fc40eae46b39364)
|
|
13
|
+
- Download card icons [`5bc506d`](https://github.com/eea/volto-clms-theme/commit/5bc506d9251068962ff3e3641017f854b37666f3)
|
|
14
|
+
- Card work [`d169ff4`](https://github.com/eea/volto-clms-theme/commit/d169ff40e8d3c2fce56af6aa09677c0ba924407a)
|
|
15
|
+
- UX improvements [`72769b4`](https://github.com/eea/volto-clms-theme/commit/72769b4e0b2327b7c35cec435b2a3311a9ccee3f)
|
|
16
|
+
|
|
17
|
+
#### [1.0.91](https://github.com/eea/volto-clms-theme/compare/1.0.90...1.0.91)
|
|
18
|
+
|
|
19
|
+
> 4 April 2022
|
|
20
|
+
|
|
21
|
+
- add extra information for correct rendering to TechnicalLibraries at … [`#251`](https://github.com/eea/volto-clms-theme/pull/251)
|
|
22
|
+
- add extra information for correct rendering to TechnicalLibraries at DataSet view [`ac8578e`](https://github.com/eea/volto-clms-theme/commit/ac8578eeff8eeb3cff9944394937a52062d7caf1)
|
|
23
|
+
|
|
24
|
+
#### [1.0.90](https://github.com/eea/volto-clms-theme/compare/1.0.89...1.0.90)
|
|
25
|
+
|
|
26
|
+
> 1 April 2022
|
|
27
|
+
|
|
28
|
+
- Develop [`#250`](https://github.com/eea/volto-clms-theme/pull/250)
|
|
29
|
+
- Bugs n improvements [`#249`](https://github.com/eea/volto-clms-theme/pull/249)
|
|
30
|
+
- Develop [`#248`](https://github.com/eea/volto-clms-theme/pull/248)
|
|
31
|
+
- Cookie banner [`#247`](https://github.com/eea/volto-clms-theme/pull/247)
|
|
32
|
+
- controls [`64daf28`](https://github.com/eea/volto-clms-theme/commit/64daf28cc559f771b5cba2c47279fecf2835cef5)
|
|
33
|
+
- download cart fix [`aebb204`](https://github.com/eea/volto-clms-theme/commit/aebb204f9becf3acd79a05fca2ba7360a3e4be07)
|
|
34
|
+
- Sitemap styles [`1ab825e`](https://github.com/eea/volto-clms-theme/commit/1ab825e269742b6dcb84eb3f13682488947dc92c)
|
|
35
|
+
- Home styles review [`095a499`](https://github.com/eea/volto-clms-theme/commit/095a4997942c526714888560c8a512a3eea4193b)
|
|
36
|
+
- merge [`7a5d037`](https://github.com/eea/volto-clms-theme/commit/7a5d037c4f3349fc05e2292a53a4ec9d85598d5e)
|
|
37
|
+
- bugfix [`fb91b11`](https://github.com/eea/volto-clms-theme/commit/fb91b110ca2bab99eec1a11322f15811439368a5)
|
|
38
|
+
- add cookie banner component [`153c86e`](https://github.com/eea/volto-clms-theme/commit/153c86ece175dc5c14072f21708224db03593286)
|
|
39
|
+
- cookie banner [`4fac45d`](https://github.com/eea/volto-clms-theme/commit/4fac45d5d981a3703947d2f27daaa3c90f2f9088)
|
|
40
|
+
|
|
7
41
|
#### [1.0.89](https://github.com/eea/volto-clms-theme/compare/1.0.88...1.0.89)
|
|
8
42
|
|
|
43
|
+
> 28 March 2022
|
|
44
|
+
|
|
45
|
+
- Date formats [`#246`](https://github.com/eea/volto-clms-theme/pull/246)
|
|
9
46
|
- date formats [`e93f97d`](https://github.com/eea/volto-clms-theme/commit/e93f97dfef7c40a8e5639bac07224989df1f5b11)
|
|
10
47
|
- fix texts [`6ed7d77`](https://github.com/eea/volto-clms-theme/commit/6ed7d77257ff65cf0bb0a076766b3a0b8e572edf)
|
|
11
48
|
- profile tab texts [`d619d74`](https://github.com/eea/volto-clms-theme/commit/d619d74929ab99fba5a86444d04d43fcebded70e)
|
package/Jenkinsfile
CHANGED
|
@@ -185,10 +185,10 @@ pipeline {
|
|
|
185
185
|
unstash "xunit-reports"
|
|
186
186
|
unstash "cypress-coverage"
|
|
187
187
|
def scannerHome = tool 'SonarQubeScanner';
|
|
188
|
-
def nodeJS = tool '
|
|
188
|
+
def nodeJS = tool 'NodeJS';
|
|
189
189
|
withSonarQubeEnv('Sonarqube') {
|
|
190
190
|
sh '''sed -i "s#/opt/frontend/my-volto-project/src/addons/${GIT_NAME}/##g" xunit-reports/coverage/lcov.info'''
|
|
191
|
-
sh "export PATH=$
|
|
191
|
+
sh "export PATH=${scannerHome}/bin:${nodeJS}/bin:$PATH; sonar-scanner -Dsonar.javascript.lcov.reportPaths=./xunit-reports/coverage/lcov.info,./cypress-coverage/coverage/lcov.info -Dsonar.sources=./src -Dsonar.projectKey=$GIT_NAME-$BRANCH_NAME -Dsonar.projectVersion=$BRANCH_NAME-$BUILD_NUMBER"
|
|
192
192
|
sh '''try=2; while [ \$try -gt 0 ]; do curl -s -XPOST -u "${SONAR_AUTH_TOKEN}:" "${SONAR_HOST_URL}api/project_tags/set?project=${GIT_NAME}-${BRANCH_NAME}&tags=${SONARQUBE_TAGS},${BRANCH_NAME}" > set_tags_result; if [ \$(grep -ic error set_tags_result ) -eq 0 ]; then try=0; else cat set_tags_result; echo "... Will retry"; sleep 60; try=\$(( \$try - 1 )); fi; done'''
|
|
193
193
|
}
|
|
194
194
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-clms-theme",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.92",
|
|
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",
|
|
@@ -28,9 +28,11 @@
|
|
|
28
28
|
"@eeacms/volto-clms-utils",
|
|
29
29
|
"@eeacms/volto-react-table-widget",
|
|
30
30
|
"volto-form-block",
|
|
31
|
-
"@eeacms/volto-taxonomy"
|
|
31
|
+
"@eeacms/volto-taxonomy",
|
|
32
|
+
"volto-cookie-banner"
|
|
32
33
|
],
|
|
33
34
|
"dependencies": {
|
|
35
|
+
"volto-cookie-banner": "2.1.0",
|
|
34
36
|
"@eeacms/volto-accordion-block": "3.4.13",
|
|
35
37
|
"@eeacms/volto-arcgis-block": "*",
|
|
36
38
|
"@eeacms/volto-clms-utils": "0.1.6",
|
package/src/components/Blocks/CustomTemplates/VoltoListingBlock/CclListingWorkOpportunities.jsx
CHANGED
|
@@ -30,9 +30,11 @@ const CclWorkOpportunity = (props) => {
|
|
|
30
30
|
<br />
|
|
31
31
|
</>
|
|
32
32
|
)}
|
|
33
|
-
<div
|
|
34
|
-
<
|
|
35
|
-
|
|
33
|
+
<div class="card-work-line">
|
|
34
|
+
<h2>{item.title}</h2>
|
|
35
|
+
</div>
|
|
36
|
+
<div className="card-work-line">
|
|
37
|
+
<span className="card-work-title">
|
|
36
38
|
{item['@type'] === 'WorkOpportunity'
|
|
37
39
|
? intl.formatMessage(messages.ReferenceNo)
|
|
38
40
|
: intl.formatMessage(messages.ProcurementNo)}
|
|
@@ -43,11 +45,11 @@ const CclWorkOpportunity = (props) => {
|
|
|
43
45
|
item.procurement_no
|
|
44
46
|
)}
|
|
45
47
|
</div>
|
|
46
|
-
<div className="card-work-
|
|
48
|
+
<div className="card-work-line">
|
|
47
49
|
<p>{item.description}</p>
|
|
48
50
|
</div>
|
|
49
|
-
<div className="work-
|
|
50
|
-
<span className="card-work-
|
|
51
|
+
<div className="card-work-line">
|
|
52
|
+
<span className="card-work-title">
|
|
51
53
|
{intl.formatMessage(messages.SubmissionDeadline)}
|
|
52
54
|
</span>
|
|
53
55
|
{new Date(item.submission_deadline).toLocaleString()}
|
|
@@ -25,6 +25,7 @@ const DataSetInfoContent = (props) => {
|
|
|
25
25
|
const searchSubrequests = useSelector((state) => state.search.subrequests);
|
|
26
26
|
let libraries = searchSubrequests?.[id]?.items || [];
|
|
27
27
|
let librariesPending = searchSubrequests?.[id]?.loading;
|
|
28
|
+
const user = useSelector((state) => state.users.user);
|
|
28
29
|
React.useEffect(() => {
|
|
29
30
|
UID &&
|
|
30
31
|
dispatch(
|
|
@@ -173,7 +174,12 @@ const DataSetInfoContent = (props) => {
|
|
|
173
174
|
height={'auto'}
|
|
174
175
|
>
|
|
175
176
|
{libraries.map((item, index) => (
|
|
176
|
-
<CclCard
|
|
177
|
+
<CclCard
|
|
178
|
+
key={index}
|
|
179
|
+
type="doc"
|
|
180
|
+
card={{ Type: item['@type'], ...item }}
|
|
181
|
+
showEditor={user?.roles?.includes('Manager')}
|
|
182
|
+
/>
|
|
177
183
|
))}
|
|
178
184
|
</AnimateHeight>
|
|
179
185
|
</Accordion.Content>
|
|
@@ -379,7 +379,7 @@ const CLMSCartContent = (props) => {
|
|
|
379
379
|
<Select
|
|
380
380
|
placeholder="Select projection"
|
|
381
381
|
value={item.projection}
|
|
382
|
-
options={projections
|
|
382
|
+
options={projections?.map((projection) => {
|
|
383
383
|
return {
|
|
384
384
|
key: projection,
|
|
385
385
|
value: projection,
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
export const getAvailableConversion = (conversionTable, defaultValue) => {
|
|
2
|
-
if (conversionTable
|
|
3
|
-
|
|
2
|
+
if (conversionTable) {
|
|
3
|
+
if (conversionTable[defaultValue] === undefined) {
|
|
4
|
+
defaultValue = Object.keys(conversionTable)[0];
|
|
5
|
+
}
|
|
6
|
+
const keys = Object.keys(conversionTable[defaultValue]);
|
|
7
|
+
return keys
|
|
8
|
+
.filter((key) => {
|
|
9
|
+
return conversionTable[defaultValue][key];
|
|
10
|
+
})
|
|
11
|
+
.map((item) => {
|
|
12
|
+
return {
|
|
13
|
+
key: item,
|
|
14
|
+
value: item,
|
|
15
|
+
text: item,
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
} else {
|
|
19
|
+
return [];
|
|
4
20
|
}
|
|
5
|
-
const keys = Object.keys(conversionTable[defaultValue]);
|
|
6
|
-
return keys
|
|
7
|
-
.filter((key) => {
|
|
8
|
-
return conversionTable[defaultValue][key];
|
|
9
|
-
})
|
|
10
|
-
.map((item) => {
|
|
11
|
-
return {
|
|
12
|
-
key: item,
|
|
13
|
-
value: item,
|
|
14
|
-
text: item,
|
|
15
|
-
};
|
|
16
|
-
});
|
|
17
21
|
};
|
|
18
22
|
|
|
19
23
|
export const initializeIfNotCompatibleConversion = (
|
|
@@ -75,6 +75,17 @@ const CLMSDownloadTasks = (props) => {
|
|
|
75
75
|
return item;
|
|
76
76
|
})
|
|
77
77
|
.sort(dynamicSort('-RegistrationDateTime'))
|
|
78
|
+
.filter((item) => {
|
|
79
|
+
var FinalizationDate = new Date(
|
|
80
|
+
Date.parse(item?.FinalizationDateTime),
|
|
81
|
+
);
|
|
82
|
+
var today = new Date();
|
|
83
|
+
var daysDiff = Math.floor(
|
|
84
|
+
(today.getTime() - (FinalizationDate.getTime() || 0)) /
|
|
85
|
+
(1000 * 3600 * 24),
|
|
86
|
+
);
|
|
87
|
+
return daysDiff - 10 > -1;
|
|
88
|
+
})
|
|
78
89
|
.map((item, key) => (
|
|
79
90
|
<Grid.Column key={key}>
|
|
80
91
|
<FileCard
|
|
@@ -11,11 +11,13 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
11
11
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
12
12
|
import { Icon } from '@plone/volto/components';
|
|
13
13
|
import React from 'react';
|
|
14
|
-
import
|
|
14
|
+
import pauseSVG from '@plone/volto/icons/pause.svg';
|
|
15
15
|
import errorSVG from '@plone/volto/icons/error.svg';
|
|
16
|
+
import warningSVG from '@plone/volto/icons/warning.svg';
|
|
16
17
|
import { faInfoCircle } from '@fortawesome/free-solid-svg-icons';
|
|
17
18
|
import packSVG from '@plone/volto/icons/pack.svg';
|
|
18
19
|
import removeSVG from '@plone/volto/icons/delete.svg';
|
|
20
|
+
import blockSVG from '@plone/volto/icons/block.svg';
|
|
19
21
|
import { cclDateTimeFormat } from '@eeacms/volto-clms-theme/components/CclUtils';
|
|
20
22
|
|
|
21
23
|
const prettyBytes = require('pretty-bytes');
|
|
@@ -56,7 +58,8 @@ const FileCard = (props) => {
|
|
|
56
58
|
var FinalizationDate = new Date(Date.parse(item?.FinalizationDateTime));
|
|
57
59
|
var today = new Date();
|
|
58
60
|
var daysDiff = Math.floor(
|
|
59
|
-
(today.getTime() - FinalizationDate.getTime()) /
|
|
61
|
+
(today.getTime() - (FinalizationDate.getTime() || 0)) /
|
|
62
|
+
(1000 * 3600 * 24),
|
|
60
63
|
);
|
|
61
64
|
}
|
|
62
65
|
|
|
@@ -69,9 +72,24 @@ const FileCard = (props) => {
|
|
|
69
72
|
padded
|
|
70
73
|
className="filecard"
|
|
71
74
|
>
|
|
75
|
+
{/* {10 - daysDiff > -1 && ( */}
|
|
72
76
|
<Grid.Row>
|
|
73
77
|
<Grid.Column verticalAlign="middle" textAlign="center" width={2}>
|
|
74
|
-
{
|
|
78
|
+
{item?.Status === 'Queued' && (
|
|
79
|
+
<Popup
|
|
80
|
+
content="Queued"
|
|
81
|
+
size="small"
|
|
82
|
+
trigger={
|
|
83
|
+
<Icon
|
|
84
|
+
name={pauseSVG}
|
|
85
|
+
size={50}
|
|
86
|
+
color="#a0b128"
|
|
87
|
+
title={'Queued'}
|
|
88
|
+
/>
|
|
89
|
+
}
|
|
90
|
+
/>
|
|
91
|
+
)}
|
|
92
|
+
{item?.Status === 'In_progress' && (
|
|
75
93
|
<Popup
|
|
76
94
|
content="Preparing download files"
|
|
77
95
|
size="small"
|
|
@@ -92,15 +110,29 @@ const FileCard = (props) => {
|
|
|
92
110
|
}
|
|
93
111
|
/>
|
|
94
112
|
)}
|
|
113
|
+
{item?.Status === 'Cancelled' && (
|
|
114
|
+
<Popup
|
|
115
|
+
content="Cancelled"
|
|
116
|
+
size="small"
|
|
117
|
+
trigger={
|
|
118
|
+
<Icon
|
|
119
|
+
name={blockSVG}
|
|
120
|
+
size={50}
|
|
121
|
+
color="#a0b128"
|
|
122
|
+
title={'Cancelled'}
|
|
123
|
+
/>
|
|
124
|
+
}
|
|
125
|
+
/>
|
|
126
|
+
)}
|
|
95
127
|
{item?.Status === 'Finished_nok' && (
|
|
96
128
|
<Popup
|
|
97
129
|
content="Finished with errors"
|
|
98
130
|
size="small"
|
|
99
131
|
trigger={
|
|
100
132
|
<Icon
|
|
101
|
-
name={
|
|
133
|
+
name={warningSVG}
|
|
102
134
|
size={50}
|
|
103
|
-
color="#
|
|
135
|
+
color="#faa73e"
|
|
104
136
|
title={'Finished with errors'}
|
|
105
137
|
/>
|
|
106
138
|
}
|
|
@@ -112,7 +144,7 @@ const FileCard = (props) => {
|
|
|
112
144
|
size="small"
|
|
113
145
|
trigger={
|
|
114
146
|
<Icon
|
|
115
|
-
name={
|
|
147
|
+
name={errorSVG}
|
|
116
148
|
size={50}
|
|
117
149
|
color="#e40166"
|
|
118
150
|
title={'Rejected download'}
|
|
@@ -221,6 +253,7 @@ const FileCard = (props) => {
|
|
|
221
253
|
</Grid.Column>
|
|
222
254
|
)}
|
|
223
255
|
</Grid.Row>
|
|
256
|
+
{/* )} */}
|
|
224
257
|
</Grid>
|
|
225
258
|
</Segment>
|
|
226
259
|
);
|
|
@@ -331,11 +331,16 @@
|
|
|
331
331
|
font-weight: bold;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
.card-event-when-text p {
|
|
334
|
+
.card-event .card-event-when-text p {
|
|
335
335
|
margin-bottom: 0;
|
|
336
336
|
font-size: 1rem;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
+
.card-event svg {
|
|
340
|
+
width: 1rem;
|
|
341
|
+
margin-right: 0.5rem;
|
|
342
|
+
}
|
|
343
|
+
|
|
339
344
|
/* Documents */
|
|
340
345
|
.card-doc {
|
|
341
346
|
padding: 1rem;
|
|
@@ -381,37 +386,15 @@
|
|
|
381
386
|
margin-bottom: 1rem;
|
|
382
387
|
}
|
|
383
388
|
|
|
384
|
-
.card-work-
|
|
389
|
+
.card-work-line:not(:last-of-type) {
|
|
385
390
|
margin-bottom: 1rem;
|
|
386
391
|
}
|
|
387
392
|
|
|
388
|
-
.card-work-
|
|
389
|
-
.card-work-deadline-title {
|
|
393
|
+
.card-work-title {
|
|
390
394
|
margin-right: 0.25rem;
|
|
391
395
|
font-weight: bold;
|
|
392
396
|
}
|
|
393
397
|
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
padding: 2rem;
|
|
397
|
-
background: #a0b1280f;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.card-work:not(:last-of-type) {
|
|
401
|
-
margin-bottom: 1rem;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.card-work-number {
|
|
405
|
-
margin-bottom: 1rem;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.card-work-number-title,
|
|
409
|
-
.card-work-deadline-title {
|
|
410
|
-
margin-right: 0.25rem;
|
|
411
|
-
font-weight: bold;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.card-event svg {
|
|
415
|
-
width: 1rem;
|
|
416
|
-
margin-right: 0.5rem;
|
|
398
|
+
.card-work-line h2 {
|
|
399
|
+
margin-top: 0 !important;
|
|
417
400
|
}
|
|
@@ -35,12 +35,12 @@ function CclLoginModal() {
|
|
|
35
35
|
return (
|
|
36
36
|
<CclModal
|
|
37
37
|
trigger={
|
|
38
|
-
<
|
|
38
|
+
<span className="header-login-link">
|
|
39
39
|
<FormattedMessage
|
|
40
40
|
id="loginRegister"
|
|
41
41
|
defaultMessage="Register/Login"
|
|
42
42
|
/>
|
|
43
|
-
</
|
|
43
|
+
</span>
|
|
44
44
|
}
|
|
45
45
|
size="tiny"
|
|
46
46
|
modalStatus={modalStatus}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export const cclDateTimeFormat = (date) => {
|
|
2
2
|
const dateObj = new Date(date);
|
|
3
|
-
const day = ('0' +
|
|
3
|
+
const day = ('0' + dateObj.getDate()).slice(-2);
|
|
4
4
|
const month = ('0' + (dateObj.getMonth() + 1)).slice(-2);
|
|
5
5
|
const year = dateObj.getFullYear();
|
|
6
|
-
const hours = ('0' +
|
|
7
|
-
const minutes = ('0' +
|
|
6
|
+
const hours = ('0' + dateObj.getHours()).slice(-2);
|
|
7
|
+
const minutes = ('0' + dateObj.getMinutes()).slice(-2);
|
|
8
8
|
return `${day}.${month}.${year} ${hours}.${minutes}`;
|
|
9
9
|
};
|
|
10
10
|
|
package/src/index.js
CHANGED
|
@@ -36,6 +36,7 @@ import ProductComponentsWidget from './components/Widgets/ProductComponentsWidge
|
|
|
36
36
|
import TextLinkWidget from './components/Widgets/TextLinkWidget';
|
|
37
37
|
|
|
38
38
|
import reducers from './reducers';
|
|
39
|
+
import CookieBanner from 'volto-cookie-banner/CookieBannerContainer';
|
|
39
40
|
|
|
40
41
|
const applyConfig = (config) => {
|
|
41
42
|
config.views = {
|
|
@@ -80,6 +81,13 @@ const applyConfig = (config) => {
|
|
|
80
81
|
};
|
|
81
82
|
config.settings = {
|
|
82
83
|
...config.settings,
|
|
84
|
+
appExtras: [
|
|
85
|
+
...config.settings.appExtras,
|
|
86
|
+
{
|
|
87
|
+
match: '*',
|
|
88
|
+
component: CookieBanner,
|
|
89
|
+
},
|
|
90
|
+
],
|
|
83
91
|
nonContentRoutes: [
|
|
84
92
|
...config.settings.nonContentRoutes,
|
|
85
93
|
'/profile',
|
|
@@ -220,6 +220,14 @@
|
|
|
220
220
|
content: '\e913';
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
.tabs-block .slick-arrows .slick-arrow.slick-prev {
|
|
224
|
+
transform: translate(1rem,-50%);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.tabs-block .slick-arrows .slick-arrow.slick-next {
|
|
228
|
+
transform: translate(-1rem,-50%);
|
|
229
|
+
}
|
|
230
|
+
|
|
223
231
|
/* Dots */
|
|
224
232
|
.slick-dotted.slick-slider {
|
|
225
233
|
margin-bottom: 0;
|
package/theme/clms/css/forms.css
CHANGED
|
@@ -32,10 +32,19 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.ccl-button[disabled] {
|
|
35
|
-
border-color: #
|
|
36
|
-
color: #
|
|
35
|
+
border-color: #a0b128;
|
|
36
|
+
color: #a0b128;
|
|
37
|
+
cursor: not-allowed;
|
|
38
|
+
opacity: 0.3;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ccl-button.ccl-button-green[disabled] {
|
|
43
|
+
border-color: #a0b128;
|
|
44
|
+
background-color: #a0b128;
|
|
45
|
+
color: white;
|
|
37
46
|
cursor: not-allowed;
|
|
38
|
-
opacity: 0.
|
|
47
|
+
opacity: 0.3;
|
|
39
48
|
pointer-events: none;
|
|
40
49
|
}
|
|
41
50
|
|
package/theme/clms/css/home.css
CHANGED
|
@@ -120,14 +120,14 @@
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.home-carousel .ccl-banner-top-main {
|
|
123
|
-
padding: 4rem
|
|
123
|
+
padding: 4rem 4rem;
|
|
124
124
|
background-position: center;
|
|
125
125
|
background-repeat: no-repeat;
|
|
126
126
|
background-size: cover;
|
|
127
127
|
}
|
|
128
128
|
@media (max-width: 480px) {
|
|
129
129
|
.home-carousel .ccl-banner-top-main {
|
|
130
|
-
padding: 2rem
|
|
130
|
+
padding: 2rem 2rem;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
@@ -318,13 +318,22 @@
|
|
|
318
318
|
|
|
319
319
|
/* Map band */
|
|
320
320
|
.home-map-container {
|
|
321
|
-
padding: 4rem
|
|
321
|
+
padding: 4rem 1rem;
|
|
322
322
|
background: url(../img/home-map-background.jpg) no-repeat center;
|
|
323
323
|
background-size: cover;
|
|
324
324
|
}
|
|
325
|
+
|
|
326
|
+
.home-map-container > .ccl-container {
|
|
327
|
+
padding: 0 2rem;
|
|
328
|
+
}
|
|
329
|
+
|
|
325
330
|
@media (max-width: 480px) {
|
|
326
331
|
.home-map-container {
|
|
327
|
-
padding:
|
|
332
|
+
padding: 3rem 1rem;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.home-map-container > .ccl-container {
|
|
336
|
+
padding: 0;
|
|
328
337
|
}
|
|
329
338
|
}
|
|
330
339
|
|
|
@@ -345,10 +354,14 @@
|
|
|
345
354
|
|
|
346
355
|
/* Meet band */
|
|
347
356
|
.home-meet-container {
|
|
348
|
-
padding: 3rem
|
|
357
|
+
padding: 3rem 1rem;
|
|
349
358
|
padding-bottom: 6rem;
|
|
350
359
|
}
|
|
351
360
|
|
|
361
|
+
.home-meet-container > .ccl-container {
|
|
362
|
+
padding: 0 2rem;
|
|
363
|
+
}
|
|
364
|
+
|
|
352
365
|
.ccl-container > .ccl-button {
|
|
353
366
|
float: right;
|
|
354
367
|
}
|
package/theme/clms/css/maps.css
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
height: 36px;
|
|
35
35
|
border: none !important;
|
|
36
36
|
background-color: #a0b128cc;
|
|
37
|
+
overflow: visible;
|
|
37
38
|
box-shadow: none !important;
|
|
38
39
|
color: white;
|
|
39
40
|
font-size: 18px;
|
|
@@ -55,16 +56,15 @@
|
|
|
55
56
|
cursor: auto;
|
|
56
57
|
}
|
|
57
58
|
|
|
59
|
+
.esri-widget--button.active-widget {
|
|
60
|
+
background: #212529;
|
|
61
|
+
}
|
|
62
|
+
|
|
58
63
|
.land .basemap-container {
|
|
59
64
|
display: flex;
|
|
60
65
|
box-shadow: none !important;
|
|
61
66
|
}
|
|
62
67
|
|
|
63
|
-
.land .esri-basemap-gallery {
|
|
64
|
-
display: none;
|
|
65
|
-
margin: 0 !important;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
68
|
.land .esri-basemap-gallery__item:first-child {
|
|
69
69
|
margin-top: 0;
|
|
70
70
|
}
|
|
@@ -96,10 +96,6 @@
|
|
|
96
96
|
flex-direction: column;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
.land .measurement-panel {
|
|
100
|
-
display: none;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
99
|
.land .measurement-buttons {
|
|
104
100
|
display: flex;
|
|
105
101
|
justify-content: space-evenly;
|
|
@@ -153,10 +149,6 @@
|
|
|
153
149
|
box-shadow: none !important;
|
|
154
150
|
}
|
|
155
151
|
|
|
156
|
-
.land .esri-print {
|
|
157
|
-
display: none;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
152
|
.land .esri-print__layout-tab {
|
|
161
153
|
font-size: 1rem;
|
|
162
154
|
}
|
|
@@ -179,13 +171,6 @@
|
|
|
179
171
|
box-shadow: none !important;
|
|
180
172
|
}
|
|
181
173
|
|
|
182
|
-
.land .area-panel {
|
|
183
|
-
display: none;
|
|
184
|
-
padding: 1rem;
|
|
185
|
-
background-color: white;
|
|
186
|
-
font-size: 1rem;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
174
|
.land .area-panel .ccl-form-group:not(:first-of-type) {
|
|
190
175
|
margin-top: 0.5rem;
|
|
191
176
|
}
|
|
@@ -522,10 +507,6 @@
|
|
|
522
507
|
margin-top: 0.5rem;
|
|
523
508
|
}
|
|
524
509
|
|
|
525
|
-
.land .legend-panel {
|
|
526
|
-
display: none;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
510
|
.land .legend-container {
|
|
530
511
|
display: flex;
|
|
531
512
|
box-shadow: none !important;
|
package/theme/clms/css/maps.less
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
height: 36px;
|
|
37
37
|
border: none !important;
|
|
38
38
|
background-color: #a0b128cc;
|
|
39
|
+
overflow: visible;
|
|
39
40
|
box-shadow: none !important;
|
|
40
41
|
color: white;
|
|
41
42
|
font-size: 18px;
|
|
@@ -57,17 +58,16 @@
|
|
|
57
58
|
cursor: auto;
|
|
58
59
|
}
|
|
59
60
|
|
|
61
|
+
.esri-widget--button.active-widget {
|
|
62
|
+
background: #212529;
|
|
63
|
+
}
|
|
64
|
+
|
|
60
65
|
/* Basemap */
|
|
61
66
|
.basemap-container {
|
|
62
67
|
display: flex;
|
|
63
68
|
box-shadow: none !important;
|
|
64
69
|
}
|
|
65
70
|
|
|
66
|
-
.esri-basemap-gallery {
|
|
67
|
-
display: none;
|
|
68
|
-
margin: 0 !important;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
71
|
.esri-basemap-gallery__item:first-child {
|
|
72
72
|
margin-top: 0;
|
|
73
73
|
}
|
|
@@ -107,10 +107,6 @@
|
|
|
107
107
|
flex-direction: column;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.measurement-panel {
|
|
111
|
-
display: none;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
110
|
.measurement-buttons {
|
|
115
111
|
display: flex;
|
|
116
112
|
justify-content: space-evenly;
|
|
@@ -165,10 +161,6 @@
|
|
|
165
161
|
box-shadow: none !important;
|
|
166
162
|
}
|
|
167
163
|
|
|
168
|
-
.esri-print {
|
|
169
|
-
display: none;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
164
|
.esri-print__layout-tab {
|
|
173
165
|
font-size: 1rem;
|
|
174
166
|
}
|
|
@@ -192,13 +184,6 @@
|
|
|
192
184
|
box-shadow: none !important;
|
|
193
185
|
}
|
|
194
186
|
|
|
195
|
-
.area-panel {
|
|
196
|
-
display: none;
|
|
197
|
-
padding: 1rem;
|
|
198
|
-
background-color: white;
|
|
199
|
-
font-size: 1rem;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
187
|
.area-panel .ccl-form-group:not(:first-of-type) {
|
|
203
188
|
margin-top: 0.5rem;
|
|
204
189
|
}
|
|
@@ -286,10 +271,12 @@
|
|
|
286
271
|
height: 440px;
|
|
287
272
|
padding: 0;
|
|
288
273
|
background: #ffffff;
|
|
274
|
+
overflow-x: hidden;
|
|
289
275
|
overflow-y: auto;
|
|
290
276
|
}
|
|
291
277
|
|
|
292
278
|
.map-menu .panel {
|
|
279
|
+
position: relative;
|
|
293
280
|
display: none;
|
|
294
281
|
animation: fadein 0.8s;
|
|
295
282
|
}
|
|
@@ -404,7 +391,7 @@
|
|
|
404
391
|
.map-menu-dataset > div:first-of-type {
|
|
405
392
|
display: flex;
|
|
406
393
|
width: 100%;
|
|
407
|
-
justify-content:
|
|
394
|
+
justify-content: space-between;
|
|
408
395
|
}
|
|
409
396
|
|
|
410
397
|
.map-menu-layers-container {
|
|
@@ -419,7 +406,7 @@
|
|
|
419
406
|
}
|
|
420
407
|
|
|
421
408
|
.map-menu-icon {
|
|
422
|
-
margin-left:
|
|
409
|
+
margin-left: 1rem;
|
|
423
410
|
color: #a0b128;
|
|
424
411
|
cursor: pointer;
|
|
425
412
|
font-size: 1rem;
|
|
@@ -539,10 +526,6 @@
|
|
|
539
526
|
}
|
|
540
527
|
|
|
541
528
|
/* Legend*/
|
|
542
|
-
.legend-panel {
|
|
543
|
-
display: none;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
529
|
.legend-container {
|
|
547
530
|
display: flex;
|
|
548
531
|
box-shadow: none !important;
|
package/theme/clms/css/menu.css
CHANGED
|
@@ -1164,3 +1164,17 @@ div#page-document h1.documentFirstHeading {
|
|
|
1164
1164
|
.block-editor-accordion > .block-toolbar {
|
|
1165
1165
|
z-index: 1 !important;
|
|
1166
1166
|
}
|
|
1167
|
+
|
|
1168
|
+
/*Sitemap*/
|
|
1169
|
+
#page-sitemap ul li {
|
|
1170
|
+
margin-left: 2rem;
|
|
1171
|
+
line-height: 2.25rem;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
#page-sitemap ul > li {
|
|
1175
|
+
margin-bottom: 1rem;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
#page-sitemap ul > li > ul > li {
|
|
1179
|
+
margin-bottom: 0;
|
|
1180
|
+
}
|