@eeacms/volto-cca-policy 0.2.86 → 0.2.88

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,6 +4,21 @@ 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
+ ### [0.2.88](https://github.com/eea/volto-cca-policy/compare/0.2.87...0.2.88) - 6 January 2025
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Fix facet for mission tools [Tiberiu Ichim - [`a4b5787`](https://github.com/eea/volto-cca-policy/commit/a4b578762eac8da26b01b5fef7cbddbebdd78eb6)]
12
+ ### [0.2.87](https://github.com/eea/volto-cca-policy/compare/0.2.86...0.2.87) - 20 December 2024
13
+
14
+ #### :nail_care: Enhancements
15
+
16
+ - change(map): remove light blue dots for AdapteCCA from case study explorer map; code cleanup - refs #281701 [kreafox - [`046cf1b`](https://github.com/eea/volto-cca-policy/commit/046cf1bbe3e427757d30234bfdb310e10e689bc2)]
17
+
18
+ #### :hammer_and_wrench: Others
19
+
20
+ - Refs #281766 - rename Kosovo and Turkiye [Tripon Eugen - [`7728e62`](https://github.com/eea/volto-cca-policy/commit/7728e62c124f13762068bfb83a4995e38ff9844b)]
21
+ - Refs #281766 - update country list [Tripon Eugen - [`314fc4a`](https://github.com/eea/volto-cca-policy/commit/314fc4affbc543c95a6fe164453c46fbe3eac8c3)]
7
22
  ### [0.2.86](https://github.com/eea/volto-cca-policy/compare/0.2.85...0.2.86) - 18 December 2024
8
23
 
9
24
  #### :rocket: Dependency updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.2.86",
3
+ "version": "0.2.88",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useIntl, FormattedMessage } from 'react-intl';
3
- import { Accordion, Icon, Checkbox } from 'semantic-ui-react';
3
+ import { Accordion, Icon, Checkbox, Button } from 'semantic-ui-react';
4
4
 
5
5
  const AccordionIcon = ({ active }) => {
6
6
  return (
@@ -12,6 +12,7 @@ const AccordionIcon = ({ active }) => {
12
12
  };
13
13
 
14
14
  export default function CaseStudyFilters(props) {
15
+ const intl = useIntl();
15
16
  const {
16
17
  filters,
17
18
  activeFilters,
@@ -74,7 +75,6 @@ export default function CaseStudyFilters(props) {
74
75
  setQuerySectors(tempSectors);
75
76
  };
76
77
 
77
- const intl = useIntl();
78
78
  return (
79
79
  <div className="casestudy-filters">
80
80
  <Accordion exclusive={false} className="secondary">
@@ -103,6 +103,7 @@ export default function CaseStudyFilters(props) {
103
103
  ),
104
104
  )}
105
105
  </Accordion.Content>
106
+
106
107
  <Accordion.Title
107
108
  active={activeIndex.includes(1)}
108
109
  index={1}
@@ -128,6 +129,7 @@ export default function CaseStudyFilters(props) {
128
129
  ),
129
130
  )}
130
131
  </Accordion.Content>
132
+
131
133
  <Accordion.Title
132
134
  active={activeIndex.includes(2)}
133
135
  index={2}
@@ -143,9 +145,7 @@ export default function CaseStudyFilters(props) {
143
145
  {Object.entries(filters?.measures || {}).map(
144
146
  ([key, values], index) => (
145
147
  <div className="subcategory" key={'ktm' + index}>
146
- <p>
147
- <strong>{intl.formatMessage({ id: key })}</strong>
148
- </p>
148
+ <h4>{intl.formatMessage({ id: key })}</h4>
149
149
  {Object.entries(values).map(([_, valData]) => (
150
150
  <Checkbox
151
151
  label={intl.formatMessage({ id: valData.value })}
@@ -186,29 +186,28 @@ export default function CaseStudyFilters(props) {
186
186
  )}
187
187
  </Accordion.Content>
188
188
  </Accordion>
189
+
189
190
  {nrActiveFilters ? (
190
- <button
191
- className="ui primary button reset"
192
- onClick={(_e) => resetFilters()}
193
- >
191
+ <Button primary className="reset" onClick={(_e) => resetFilters()}>
194
192
  Reset
195
- </button>
193
+ </Button>
196
194
  ) : null}
195
+
197
196
  <div className="case-study-legend">
198
197
  <p>
199
- <span></span>
198
+ <span className="case-study-dot" />
200
199
  <FormattedMessage
201
200
  id="Climate-ADAPT case studies"
202
201
  defaultMessage="Climate-ADAPT case studies"
203
202
  />
204
203
  </p>
205
- <p>
206
- <span className="light-blue"></span>
204
+ {/* <p>
205
+ <span className="case-study-dot light-blue" />
207
206
  <FormattedMessage
208
207
  id="Case studies collected at national level in Spain, provided by AdapteCCA.es"
209
208
  defaultMessage="Case studies collected at national level in Spain, provided by AdapteCCA.es"
210
209
  />
211
- </p>
210
+ </p> */}
212
211
  </div>
213
212
  </div>
214
213
  );
@@ -11,45 +11,57 @@ export default function FeatureDisplay({ feature }) {
11
11
  </a>
12
12
  </strong>
13
13
  </p>
14
- <span className="img">
15
- <center>
16
- <img src={feature.image} alt={feature.title} />
17
- </center>
18
- </span>
19
- <p style={{ marginBottom: '10px' }}>
20
- <span className="blue">
21
- <FormattedMessage
22
- id="Adaptation sectors"
23
- defaultMessage="Adaptation sectors"
24
- />
25
- {': '}
26
- </span>
27
- <span>{feature.adaptations}</span>
28
- </p>
29
- <p style={{ marginBottom: '10px' }}>
30
- <span className="blue">
31
- <FormattedMessage
32
- id="Climate impacts"
33
- defaultMessage="Climate impacts"
34
- />
35
- {': '}
36
- </span>
37
- <span>{feature.impacts}</span>
38
- </p>
39
- <p>
40
- <span className="blue">
41
- <FormattedMessage
42
- id="Adaptation options"
43
- defaultMessage="Adaptation options"
44
- />
45
- {': '}
14
+
15
+ {feature.image && (
16
+ <span className="img">
17
+ <center>
18
+ <img src={feature.image} alt={feature.title} />
19
+ </center>
46
20
  </span>
47
- <span
48
- dangerouslySetInnerHTML={{
49
- __html: feature.adaptation_options_links.replaceAll('<>', '; '),
50
- }}
51
- ></span>
52
- </p>
21
+ )}
22
+
23
+ {feature.adaptations && (
24
+ <p>
25
+ <span className="blue">
26
+ <FormattedMessage
27
+ id="Adaptation sectors"
28
+ defaultMessage="Adaptation sectors"
29
+ />
30
+ {': '}
31
+ </span>
32
+ <span>{feature.adaptations}</span>
33
+ </p>
34
+ )}
35
+
36
+ {feature.impacts && (
37
+ <p>
38
+ <span className="blue">
39
+ <FormattedMessage
40
+ id="Climate impacts"
41
+ defaultMessage="Climate impacts"
42
+ />
43
+ {': '}
44
+ </span>
45
+ <span>{feature.impacts}</span>
46
+ </p>
47
+ )}
48
+
49
+ {feature.adaptation_options_links && (
50
+ <p>
51
+ <span className="blue">
52
+ <FormattedMessage
53
+ id="Adaptation options"
54
+ defaultMessage="Adaptation options"
55
+ />
56
+ {': '}
57
+ </span>
58
+ <span
59
+ dangerouslySetInnerHTML={{
60
+ __html: feature.adaptation_options_links.replaceAll('<>', '; '),
61
+ }}
62
+ ></span>
63
+ </p>
64
+ )}
53
65
  </div>
54
66
  ) : null;
55
67
  }
@@ -1,12 +1,4 @@
1
- a.dbitem {
2
- font-size: 14px;
3
- }
4
-
5
- #csepopup > span {
6
- display: 'block';
7
- margin-bottom: '10px';
8
- background-color: '#ddd';
9
- }
1
+ @mapHeight: 70vh;
10
2
 
11
3
  #csepopup {
12
4
  width: 300px;
@@ -14,14 +6,15 @@ a.dbitem {
14
6
  border-bottom: 6px solid #005c96;
15
7
  background-color: white;
16
8
 
9
+ a.dbitem {
10
+ font-size: 14px;
11
+ text-decoration: none;
12
+ }
13
+
17
14
  p {
18
- padding: 0 10px 0 10px;
15
+ padding: 0 10px;
19
16
  font-size: 13px;
20
17
 
21
- p {
22
- margin-bottom: 10px;
23
- }
24
-
25
18
  a {
26
19
  text-decoration: underline;
27
20
  }
@@ -37,26 +30,21 @@ a.dbitem {
37
30
  background-color: #ddd;
38
31
 
39
32
  img {
40
- max-height: 133px;
33
+ max-height: 130px;
41
34
  }
42
35
  }
43
36
  }
44
37
 
45
38
  .section-case-study-explorer #popup-overlay {
46
- width: 340px;
47
- // max-height: 300px;
39
+ width: 300px;
48
40
  padding: 0;
49
41
  background-color: #fff;
50
42
  }
51
43
 
52
- @mapHeight: 70vh;
53
-
54
44
  .casestudy-explorer-map {
55
- // height: @mapHeight;
56
45
  min-height: @mapHeight;
57
46
 
58
47
  .ol-map {
59
- // height: @mapHeight;
60
48
  min-height: @mapHeight;
61
49
  }
62
50
 
@@ -68,54 +56,16 @@ a.dbitem {
68
56
 
69
57
  #cse-filter {
70
58
  h4 {
71
- position: relative;
72
- padding: 10px;
73
- border-bottom: 1px solid #d8d8d8;
74
- margin-top: 0 !important;
75
- margin-bottom: 0 !important;
76
- background-color: #fff;
77
- clear: both;
78
- color: #005c96;
79
- cursor: pointer;
80
- font-size: 14px;
81
- }
82
-
83
- p {
84
- // padding: 2px;
85
- padding-bottom: 10px;
86
- clear: both;
87
- line-height: 20px;
88
-
89
- span {
90
- float: left;
91
- font-family: OpenSansM, sans-serif;
92
- font-size: 12px;
93
- }
94
-
95
- input {
96
- float: right;
97
- }
98
- }
99
-
100
- div.title {
101
- width: 100%;
59
+ font-size: 16px;
102
60
  }
103
61
 
104
62
  .ui.accordion {
105
- & > .title > .icon {
106
- line-height: 1rem;
107
- }
108
-
109
- p {
110
- margin: 0;
111
- }
112
-
113
63
  .content {
114
64
  overflow: auto;
115
65
  max-height: 400px;
116
66
 
117
67
  .subcategory {
118
- margin-bottom: 30px;
68
+ margin-bottom: 20px;
119
69
  }
120
70
  }
121
71
  }
@@ -132,7 +82,7 @@ a.dbitem {
132
82
  padding-top: 20px;
133
83
  margin-top: auto;
134
84
 
135
- span {
85
+ .case-study-dot {
136
86
  display: inline-block;
137
87
  width: 12px;
138
88
  height: 12px;
@@ -141,10 +91,10 @@ a.dbitem {
141
91
  background-color: #005c96 !important;
142
92
  background-color: #bbb;
143
93
  border-radius: 50%;
144
- }
145
94
 
146
- span.light-blue {
147
- background-color: #00ffff !important;
95
+ // &.light-blue {
96
+ // background-color: #00ffff !important;
97
+ // }
148
98
  }
149
99
  }
150
100
  }
@@ -47,14 +47,14 @@ export const ACE_COUNTRIES = {
47
47
  NL: 'Netherlands',
48
48
  PT: 'Portugal',
49
49
  NO: 'Norway',
50
- TR: 'Turkey',
50
+ TR: 'Türkiye',
51
51
  LI: 'Liechtenstein',
52
52
  LV: 'Latvia',
53
53
  LT: 'Lithuania',
54
54
  LU: 'Luxembourg',
55
55
  RO: 'Romania',
56
56
  PL: 'Poland',
57
- XK: 'Kosovo under UN Security Council Resolution 1244/99',
57
+ XK: 'Kosovo',
58
58
  CH: 'Switzerland',
59
59
  GR: 'Greece',
60
60
  EE: 'Estonia',
@@ -504,9 +504,12 @@ export const SUBNATIONAL_REGIONS = {
504
504
  };
505
505
 
506
506
  export const EU_COUNTRIES = [
507
+ 'AL',
507
508
  'AT',
509
+ 'BA',
508
510
  'BE',
509
511
  'BG',
512
+ 'CH',
510
513
  'CY',
511
514
  'CZ',
512
515
  'DE',
@@ -519,18 +522,24 @@ export const EU_COUNTRIES = [
519
522
  'HR',
520
523
  'HU',
521
524
  'IE',
525
+ 'IS',
522
526
  'IT',
523
527
  'LI',
524
528
  'LT',
525
529
  'LU',
526
530
  'LV',
531
+ 'ME',
532
+ 'MK',
527
533
  'MT',
528
534
  'NL',
529
535
  'NO',
530
536
  'PL',
531
537
  'PT',
532
538
  'RO',
539
+ 'RS',
533
540
  'SE',
534
541
  'SI',
535
542
  'SK',
543
+ 'TR',
544
+ 'XK',
536
545
  ];
@@ -1,6 +1,7 @@
1
1
  import { multiTermFacet } from '@eeacms/search';
2
2
 
3
- // import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-search-base-config.js';
3
+ import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-search-base-config.js';
4
+
4
5
  import {
5
6
  cca_climate_impacts,
6
7
  cca_adaptation_sectors,
@@ -46,7 +47,7 @@ const facets = [
46
47
  alwaysVisible: false,
47
48
  }),
48
49
  language,
49
- // ...globalSearchBaseConfig.facets,
50
+ ...globalSearchBaseConfig.facets.filter((f) => f.field !== 'language'),
50
51
  ];
51
52
 
52
53
  export default facets;