@eeacms/volto-cca-policy 0.3.89 → 0.3.91

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +29 -2
  2. package/locales/bg/LC_MESSAGES/volto.po +8 -1
  3. package/locales/cs/LC_MESSAGES/volto.po +8 -1
  4. package/locales/da/LC_MESSAGES/volto.po +8 -1
  5. package/locales/de/LC_MESSAGES/volto.po +8 -1
  6. package/locales/eea.climateadapt.pot +3 -0
  7. package/locales/el/LC_MESSAGES/volto.po +8 -1
  8. package/locales/en/LC_MESSAGES/volto.po +8 -0
  9. package/locales/es/LC_MESSAGES/volto.po +8 -1
  10. package/locales/et/LC_MESSAGES/volto.po +8 -1
  11. package/locales/fi/LC_MESSAGES/volto.po +8 -1
  12. package/locales/fr/LC_MESSAGES/volto.po +31 -24
  13. package/locales/ga/LC_MESSAGES/volto.po +8 -1
  14. package/locales/hr/LC_MESSAGES/volto.po +8 -1
  15. package/locales/hu/LC_MESSAGES/volto.po +8 -1
  16. package/locales/is/LC_MESSAGES/volto.po +8 -1
  17. package/locales/it/LC_MESSAGES/volto.po +8 -1
  18. package/locales/lt/LC_MESSAGES/volto.po +8 -1
  19. package/locales/lv/LC_MESSAGES/volto.po +20 -13
  20. package/locales/mt/LC_MESSAGES/volto.po +8 -1
  21. package/locales/nl/LC_MESSAGES/volto.po +9 -2
  22. package/locales/nn/LC_MESSAGES/volto.po +8 -1
  23. package/locales/pl/LC_MESSAGES/volto.po +8 -1
  24. package/locales/pt/LC_MESSAGES/volto.po +8 -1
  25. package/locales/ro/LC_MESSAGES/volto.po +9 -2
  26. package/locales/sk/LC_MESSAGES/volto.po +8 -1
  27. package/locales/sl/LC_MESSAGES/volto.po +8 -1
  28. package/locales/sv/LC_MESSAGES/volto.po +8 -1
  29. package/locales/tr/LC_MESSAGES/volto.po +8 -1
  30. package/locales/volto.pot +4 -1
  31. package/package.json +1 -1
  32. package/src/components/manage/Blocks/CaseStudyExplorer/CaseStudyFilters.jsx +5 -5
  33. package/src/components/manage/Blocks/Listing/OrganisationCardsListingView.jsx +12 -4
  34. package/src/components/manage/Blocks/Listing/styles.less +0 -6
  35. package/src/index.js +1 -1
  36. package/src/messages.js +96 -0
@@ -93,7 +93,7 @@ export default function CaseStudyFilters(props) {
93
93
  {Object.entries(filters?.sectors || {}).map(
94
94
  ([value, label], index) => (
95
95
  <Checkbox
96
- label={intl.formatMessage({ id: label })}
96
+ label={intl.formatMessage({ id: label.trim() })}
97
97
  value={value}
98
98
  checked={activeFilters.sectors.includes(value)}
99
99
  name="sectors"
@@ -119,7 +119,7 @@ export default function CaseStudyFilters(props) {
119
119
  {Object.entries(filters?.impacts || {}).map(
120
120
  ([value, label], index) => (
121
121
  <Checkbox
122
- label={intl.formatMessage({ id: label })}
122
+ label={intl.formatMessage({ id: label.trim() })}
123
123
  checked={activeFilters.impacts.includes(value)}
124
124
  value={value}
125
125
  name="impacts"
@@ -145,10 +145,10 @@ export default function CaseStudyFilters(props) {
145
145
  {Object.entries(filters?.measures || {}).map(
146
146
  ([key, values], index) => (
147
147
  <div className="subcategory" key={'ktm' + index}>
148
- <h4>{intl.formatMessage({ id: key })}</h4>
148
+ <h4>{intl.formatMessage({ id: key.trim() })}</h4>
149
149
  {Object.entries(values).map(([_, valData]) => (
150
150
  <Checkbox
151
- label={intl.formatMessage({ id: valData.value })}
151
+ label={intl.formatMessage({ id: valData.value.trim() })}
152
152
  value={valData.key}
153
153
  checked={activeFilters.measures.includes(valData.key)}
154
154
  name="measures"
@@ -175,7 +175,7 @@ export default function CaseStudyFilters(props) {
175
175
  {Object.entries(filters?.elements || {}).map(
176
176
  ([value, label], index) => (
177
177
  <Checkbox
178
- label={intl.formatMessage({ id: label })}
178
+ label={intl.formatMessage({ id: label.trim() })}
179
179
  value={value}
180
180
  checked={activeFilters.elements.includes(value)}
181
181
  name="elements"
@@ -1,11 +1,17 @@
1
1
  import PropTypes from 'prop-types';
2
- import { CardGroup, CardHeader, CardContent, Card } from 'semantic-ui-react';
2
+ import {
3
+ CardGroup,
4
+ CardHeader,
5
+ CardContent,
6
+ CardDescription,
7
+ Card,
8
+ } from 'semantic-ui-react';
3
9
 
4
10
  import './styles.less';
5
11
 
6
12
  const OrganisationCardsListingView = ({ items }) => {
7
13
  return (
8
- <CardGroup itemsPerRow={4}>
14
+ <CardGroup itemsPerRow={4} stackable>
9
15
  {items.map((item, index) => (
10
16
  <Card fluid className="u-card" key={index} href={item['@id']}>
11
17
  <CardContent>
@@ -16,11 +22,13 @@ const OrganisationCardsListingView = ({ items }) => {
16
22
  src={item['@id'] + '/@@images/logo/preview'}
17
23
  alt={item.title}
18
24
  className="ui image"
19
- ></img>
25
+ />
20
26
  </div>
21
27
  </div>
22
- <div className="card-title">{item.title}</div>
23
28
  </CardHeader>
29
+ <CardDescription>
30
+ <h5 className="card-title">{item.title}</h5>
31
+ </CardDescription>
24
32
  </CardContent>
25
33
  </Card>
26
34
  ))}
@@ -14,12 +14,6 @@
14
14
  text-decoration: underline;
15
15
  }
16
16
 
17
- .header {
18
- display: flex !important;
19
- height: 100%;
20
- gap: 1em;
21
- }
22
-
23
17
  .image {
24
18
  width: 100%;
25
19
  }
package/src/index.js CHANGED
@@ -474,7 +474,7 @@ const applyConfig = (config) => {
474
474
  },
475
475
  '/en/observatory/topics': {
476
476
  menuItemColumns: ['six wide column', 'six wide column'],
477
- menuItemChildrenListColumns: [2, 1],
477
+ menuItemChildrenListColumns: [3, 1],
478
478
  },
479
479
  };
480
480
 
@@ -0,0 +1,96 @@
1
+ import { defineMessages } from 'react-intl';
2
+ const messages = defineMessages({
3
+ placeholderClimateSearch: {
4
+ id: 'Search the Climate-ADAPT database',
5
+ defaultMessage: 'Search the Climate-ADAPT database',
6
+ },
7
+ placeholderObservatorySearch: {
8
+ id: 'Search the Observatory Resource Catalogue...',
9
+ defaultMessage: 'Search the Observatory Resource Catalogue...',
10
+ },
11
+ placeholderMissionSearch: {
12
+ id: 'Search the EU Mission on Adaptation',
13
+ defaultMessage: 'Search the EU Mission on Adaptation',
14
+ },
15
+ });
16
+
17
+ export const messagesList = defineMessages({
18
+ a1def: {
19
+ id: 'Governance and Institutional',
20
+ defaultMessage: 'Governance and Institutional',
21
+ },
22
+ a1: {
23
+ id: 'Policy Instruments',
24
+ defaultMessage: 'Policy Instruments',
25
+ },
26
+ a2: {
27
+ id: 'Management and planning',
28
+ defaultMessage: 'Management and planning',
29
+ },
30
+ a3: {
31
+ id: 'Coordination cooperation and networks',
32
+ defaultMessage: 'Coordination cooperation and networks',
33
+ },
34
+ b1def: {
35
+ id: 'Economic and Finance',
36
+ defaultMessage: 'Economic and Finance',
37
+ },
38
+ b1: {
39
+ id: 'Financing incentive instruments',
40
+ defaultMessage: 'Financing incentive instruments',
41
+ },
42
+ b2: {
43
+ id: 'Insurance and risk sharing instruments',
44
+ defaultMessage: 'Insurance and risk sharing instruments',
45
+ },
46
+ c1def: {
47
+ id: 'Physical and technological',
48
+ defaultMessage: 'Physical and technological',
49
+ },
50
+ c1: {
51
+ id: 'Grey options',
52
+ defaultMessage: 'Grey options',
53
+ },
54
+ c2: {
55
+ id: 'Technological options',
56
+ defaultMessage: 'Technological options',
57
+ },
58
+ d1def: {
59
+ id: 'Nature based Solutions and Ecosystem based approaches',
60
+ defaultMessage: 'Nature based Solutions and Ecosystem based approaches',
61
+ },
62
+ d1: {
63
+ id: 'Green options',
64
+ defaultMessage: 'Green options',
65
+ },
66
+ d2: {
67
+ id: 'Blue options',
68
+ defaultMessage: 'Blue options',
69
+ },
70
+ e1def: {
71
+ id: 'Knowledge and behavioural change',
72
+ defaultMessage: 'Knowledge and behavioural change',
73
+ },
74
+ e1: {
75
+ id: 'Information and awareness raising',
76
+ defaultMessage: 'Information and awareness raising',
77
+ },
78
+ e2: {
79
+ id: 'Capacity building empowering and lifestyle practices',
80
+ defaultMessage: 'Capacity building empowering and lifestyle practices',
81
+ },
82
+ e3: {
83
+ id: 'Capacity building empowering and lifestyle practices',
84
+ defaultMessage: 'Capacity building empowering and lifestyle practices',
85
+ },
86
+ healthImpacts: {
87
+ id: 'Health Impacts',
88
+ defaultMessage: 'Health Impacts',
89
+ },
90
+ types: {
91
+ id: 'Types',
92
+ defaultMessage: 'Types',
93
+ },
94
+ });
95
+
96
+ export default messages;