@eeacms/volto-cca-policy 0.2.4 → 0.2.5
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 +55 -0
- package/locales/de/LC_MESSAGES/volto.po +15 -64
- package/locales/en/LC_MESSAGES/volto.po +15 -64
- package/locales/es/LC_MESSAGES/volto.po +15 -64
- package/locales/fr/LC_MESSAGES/volto.po +15 -64
- package/locales/it/LC_MESSAGES/volto.po +15 -64
- package/locales/pl/LC_MESSAGES/volto.po +15 -64
- package/locales/ro/LC_MESSAGES/volto.po +15 -64
- package/locales/volto.pot +16 -55
- package/package.json +1 -1
- package/src/components/manage/Blocks/CountryProfileDetail/CountryTabPane.js +72 -0
- package/src/components/manage/Blocks/CountryProfileDetail/CountryTabPane.test.jsx +47 -0
- package/src/components/manage/Blocks/CountryProfileDetail/View.js +59 -47
- package/src/components/manage/Blocks/CountryProfileDetail/View.test.jsx +40 -0
- package/src/components/manage/Blocks/CountryProfileDetail/styles.less +55 -0
- package/src/components/manage/Blocks/RASTBlock/RASTView.jsx +4 -2
- package/src/components/theme/ASTNavigation/ASTAccordion.jsx +20 -6
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.section-countries-regions.section-countries {
|
|
2
|
+
.secondary.menu a {
|
|
3
|
+
text-transform: uppercase;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.ui.segment.active.tab > table {
|
|
7
|
+
margin-top: 0px !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ui.segment.active.tab {
|
|
11
|
+
padding-top: 0px;
|
|
12
|
+
margin-top: 0px;
|
|
13
|
+
background-color: #ffffff;
|
|
14
|
+
|
|
15
|
+
table {
|
|
16
|
+
width: 100%;
|
|
17
|
+
margin-top: 20px !important;
|
|
18
|
+
|
|
19
|
+
tr:nth-child(even) {
|
|
20
|
+
background-color: #f9f9f9;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
th {
|
|
24
|
+
padding: 0.5em 1em;
|
|
25
|
+
border-bottom: 1px solid #d7d7d7;
|
|
26
|
+
background-color: #f9f9f9;
|
|
27
|
+
font-weight: bold;
|
|
28
|
+
text-align: left;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
td {
|
|
32
|
+
padding: 0.5em 1em;
|
|
33
|
+
border-bottom: 1px solid #d7d7d7;
|
|
34
|
+
text-align: left;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
th:not(:last-child),
|
|
38
|
+
td:not(:last-child) {
|
|
39
|
+
border-right: 1px solid #d7d7d7;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
td.bb1 {
|
|
43
|
+
border-bottom: 1px solid #d7d7d7;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ui.accordion .title:not(.ui) {
|
|
49
|
+
padding: 1rem 1rem;
|
|
50
|
+
|
|
51
|
+
span.item-title {
|
|
52
|
+
text-transform: uppercase;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -11,8 +11,10 @@ function useChildren(location) {
|
|
|
11
11
|
dispatch(action);
|
|
12
12
|
}, [location, dispatch]);
|
|
13
13
|
|
|
14
|
-
const items = useSelector(
|
|
15
|
-
(state
|
|
14
|
+
const items = useSelector((state) =>
|
|
15
|
+
(state.content.subrequests?.[location]?.data?.items || []).filter(
|
|
16
|
+
(i) => i.review_state === 'published',
|
|
17
|
+
),
|
|
16
18
|
);
|
|
17
19
|
return items;
|
|
18
20
|
}
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Link, useHistory } from 'react-router-dom';
|
|
3
3
|
import { Accordion, List } from 'semantic-ui-react';
|
|
4
|
+
import { useIntl, defineMessages } from 'react-intl';
|
|
4
5
|
import ASTLogoMap from './ASTLogoMap';
|
|
5
6
|
import UASTLogoMap from './UASTLogoMap';
|
|
6
7
|
import cx from 'classnames';
|
|
7
8
|
|
|
9
|
+
const messages = defineMessages({
|
|
10
|
+
ast_start_title: {
|
|
11
|
+
id: 'The Adaptation Support Tool - Getting started',
|
|
12
|
+
defaultMessage: 'The Adaptation Support Tool - Getting started',
|
|
13
|
+
},
|
|
14
|
+
uast_start_title: {
|
|
15
|
+
id: 'Getting started',
|
|
16
|
+
defaultMessage: 'Getting started',
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
|
|
8
20
|
const sortItems = (items) => {
|
|
9
21
|
const sortedItems = items.sort((a, b) => {
|
|
10
22
|
const idA = a['@id'];
|
|
@@ -19,7 +31,7 @@ const sortItems = (items) => {
|
|
|
19
31
|
return sortedItems;
|
|
20
32
|
};
|
|
21
33
|
|
|
22
|
-
const groupItemsByStep = (object, isAST, isUAST, lang) => {
|
|
34
|
+
const groupItemsByStep = (object, isAST, isUAST, lang, intl) => {
|
|
23
35
|
const grouped = {};
|
|
24
36
|
const items = {};
|
|
25
37
|
|
|
@@ -61,15 +73,15 @@ const groupItemsByStep = (object, isAST, isUAST, lang) => {
|
|
|
61
73
|
items[key] = grouped[key];
|
|
62
74
|
});
|
|
63
75
|
|
|
76
|
+
const astPath = 'knowledge/tools/adaptation-support-tool';
|
|
77
|
+
|
|
64
78
|
if (Object.keys(items).length !== 0) {
|
|
65
79
|
if (isAST) {
|
|
66
|
-
items['step-0'][
|
|
67
|
-
|
|
68
|
-
] = `/${lang}/knowledge/tools/adaptation-support-tool`;
|
|
69
|
-
items['step-0'].title = 'The Adaptation Support Tool - Getting started';
|
|
80
|
+
items['step-0']['@id'] = `/${lang}/${astPath}`;
|
|
81
|
+
items['step-0'].title = intl.formatMessage(messages.ast_start_title);
|
|
70
82
|
}
|
|
71
83
|
if (isUAST) {
|
|
72
|
-
items['step-0'].title =
|
|
84
|
+
items['step-0'].title = intl.formatMessage(messages.uast_start_title);
|
|
73
85
|
}
|
|
74
86
|
}
|
|
75
87
|
return items;
|
|
@@ -77,6 +89,7 @@ const groupItemsByStep = (object, isAST, isUAST, lang) => {
|
|
|
77
89
|
|
|
78
90
|
const ASTAccordion = (props) => {
|
|
79
91
|
const history = useHistory();
|
|
92
|
+
const intl = useIntl();
|
|
80
93
|
const {
|
|
81
94
|
astItems,
|
|
82
95
|
location,
|
|
@@ -90,6 +103,7 @@ const ASTAccordion = (props) => {
|
|
|
90
103
|
isAdaptationSupportTool,
|
|
91
104
|
isUrbanAdaptationSupportTool,
|
|
92
105
|
currentLanguage,
|
|
106
|
+
intl,
|
|
93
107
|
);
|
|
94
108
|
|
|
95
109
|
return (
|