@eeacms/volto-bise-policy 1.2.45 → 1.2.47
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/.eslintrc.js +7 -7
- package/CHANGELOG.md +38 -1
- package/jest-addon.config.js +34 -13
- package/package.json +3 -2
- package/src/components/Widgets/EUNISObjectListWidget.jsx +8 -7
- package/src/components/Widgets/GeolocationWidget.jsx +1 -1
- package/src/components/Widgets/NRRWidgets.jsx +1 -1
- package/src/components/manage/Blocks/BodyClass/View.jsx +1 -1
- package/src/components/manage/Blocks/CaseStudyExplorer/CaseStudyExplorerView.jsx +1 -1
- package/src/components/manage/Blocks/CaseStudyExplorer/CaseStudyExplorerView.test.jsx +1 -1
- package/src/components/manage/Blocks/CaseStudyExplorer/CaseStudyFilters.jsx +50 -64
- package/src/components/manage/Blocks/CaseStudyExplorer/CaseStudyFilters.test.jsx +15 -36
- package/src/components/manage/Blocks/CaseStudyExplorer/CaseStudyListing.test.jsx +13 -37
- package/src/components/manage/Blocks/CaseStudyExplorer/CaseStudyMap.jsx +1 -1
- package/src/components/manage/Blocks/CaseStudyExplorer/CaseStudyMap.test.jsx +3 -51
- package/src/components/manage/Blocks/CaseStudyExplorer/FeatureDisplay.test.jsx +1 -1
- package/src/components/manage/Blocks/CaseStudyExplorer/FeatureInteraction.test.jsx +4 -14
- package/src/components/manage/Blocks/CaseStudyExplorer/InfoOverlay.test.jsx +12 -27
- package/src/components/manage/Blocks/CaseStudyExplorer/testUtils.js +84 -0
- package/src/components/manage/Blocks/CaseStudyExplorer/utils.test.js +1 -1
- package/src/components/manage/Blocks/CustomCSS/CustomCSSEdit.jsx +1 -1
- package/src/components/manage/Blocks/CustomJS/CustomJSEdit.jsx +1 -1
- package/src/components/manage/Blocks/FactsheetsListing/FactsheetsListingEdit.jsx +1 -1
- package/src/components/manage/Blocks/FactsheetsListing/FactsheetsListingView.jsx +2 -2
- package/src/components/manage/Blocks/KeyFacts/KeyFactsEdit.jsx +1 -1
- package/src/components/manage/Blocks/MaesViewer/MaesViewerEdit.jsx +1 -1
- package/src/components/manage/Blocks/MaesViewer/MaesViewerView.jsx +3 -4
- package/src/components/manage/Blocks/MaesViewer/utils.js +12 -9
- package/src/components/manage/Blocks/Navigation/Edit.jsx +1 -1
- package/src/components/manage/Blocks/Navigation/View.jsx +2 -2
- package/src/components/manage/Blocks/schema.js +1 -1
- package/src/customizations/@eeacms/volto-datablocks/components/manage/Blocks/SimpleDataTable/Edit.jsx +1 -1
- package/src/customizations/@eeacms/volto-datablocks/components/manage/Blocks/SimpleDataTable/View.jsx +6 -6
- package/src/customizations/@eeacms/volto-datablocks/components/manage/Blocks/SimpleDataTable/templates/colored/View.jsx +1 -1
- package/src/customizations/@eeacms/volto-datablocks/components/manage/Blocks/SimpleDataTable/templates/smart/View.jsx +5 -4
- package/src/customizations/@eeacms/volto-eea-design-system/ui/Header/HeaderMenuPopUp.js +3 -1
- package/src/customizations/@eeacms/volto-eea-website-theme/components/theme/SubsiteClass.jsx +2 -1
- package/src/customizations/volto/components/theme/Header/Header.jsx +7 -11
- package/src/customizations/volto/components/theme/View/View.jsx +10 -14
- package/src/customizations/volto/reducers/breadcrumbs/breadcrumbs.js +3 -6
- package/src/customizations/volto/reducers/navigation/navigation.js +3 -6
- package/src/customizations/volto/reducers/types/types.js +2 -5
- package/src/express-middleware.js +1 -1
- package/src/helpers.js +1 -1
- package/src/index.js +11 -6
- package/src/{styles-config.js → styles-config.jsx} +49 -60
- package/theme/globals/site.overrides +4 -0
- /package/src/components/manage/Blocks/MaesViewer/{schema.js → schema.jsx} +0 -0
package/src/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getBlocks } from '@plone/volto/helpers';
|
|
1
|
+
import { getBlocks } from '@plone/volto/helpers/Blocks/Blocks';
|
|
2
2
|
import installLink from '@plone/volto-slate/editor/plugins/AdvancedLink';
|
|
3
3
|
import { addStylingFieldsetSchemaEnhancer } from '@eeacms/volto-bise-policy/components/manage/Blocks/schema';
|
|
4
4
|
|
|
@@ -121,14 +121,19 @@ const applyConfig = (config) => {
|
|
|
121
121
|
},
|
|
122
122
|
headerSearchBox: [
|
|
123
123
|
{
|
|
124
|
-
|
|
125
|
-
// to replace search path change path to whatever you want and match with the page in volto website
|
|
124
|
+
type: 'search-input',
|
|
126
125
|
path: '/advanced-search',
|
|
127
126
|
placeholder: 'Search BISE...',
|
|
128
|
-
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
type: 'info',
|
|
130
|
+
content:
|
|
129
131
|
'Looking for more information? Try searching the full EEA website content',
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
type: 'button-link',
|
|
135
|
+
title: 'Go to advanced search',
|
|
136
|
+
url: 'https://www.eea.europa.eu/en/advanced-search',
|
|
132
137
|
},
|
|
133
138
|
],
|
|
134
139
|
logoTargetUrl: '/',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
2
2
|
import contentBoxSVG from '@eeacms/volto-bise-policy/icons/content-box.svg';
|
|
3
3
|
|
|
4
4
|
const config = (config) => {
|
|
5
|
-
|
|
5
|
+
const colors = [
|
|
6
6
|
'#005248', // primary color
|
|
7
7
|
'#00A390', // secondary color
|
|
8
8
|
'#3D5265', // tertiary color
|
|
@@ -11,68 +11,57 @@ const config = (config) => {
|
|
|
11
11
|
'#F9F9F9',
|
|
12
12
|
'#004B7F',
|
|
13
13
|
'#007B6C',
|
|
14
|
-
'#3D5265',
|
|
15
14
|
'#B83230', // error state
|
|
16
15
|
'#FF9933', // warning state
|
|
17
|
-
|
|
18
|
-
'#
|
|
19
|
-
'#
|
|
20
|
-
'#
|
|
21
|
-
'#
|
|
22
|
-
|
|
23
|
-
'#
|
|
24
|
-
'#
|
|
25
|
-
'#
|
|
26
|
-
'#
|
|
27
|
-
'#
|
|
28
|
-
'#
|
|
29
|
-
|
|
30
|
-
'#
|
|
31
|
-
'#
|
|
32
|
-
'#
|
|
33
|
-
'#
|
|
34
|
-
'#
|
|
35
|
-
|
|
36
|
-
'#
|
|
37
|
-
'#
|
|
38
|
-
'#
|
|
39
|
-
'#
|
|
40
|
-
'#
|
|
41
|
-
'#
|
|
42
|
-
|
|
43
|
-
'#
|
|
44
|
-
'#
|
|
45
|
-
'#
|
|
46
|
-
'#
|
|
47
|
-
'#
|
|
48
|
-
'#
|
|
49
|
-
|
|
50
|
-
'#
|
|
51
|
-
'#
|
|
52
|
-
'#
|
|
53
|
-
'#
|
|
54
|
-
'#
|
|
55
|
-
'#
|
|
56
|
-
'#47B3FF', // blue shade
|
|
57
|
-
'#A0D7FF', // blue shade
|
|
58
|
-
'#FFFFFF', // white
|
|
59
|
-
'#000000', // grey shade
|
|
60
|
-
'#323232', // grey shade
|
|
61
|
-
'#747678', // grey shade
|
|
62
|
-
'#BCBEC0', // grey shade
|
|
63
|
-
'#E6E7E8', // grey shade
|
|
64
|
-
'#F9F9F9', // grey shade
|
|
65
|
-
'#FEFEFE', // white
|
|
66
|
-
'#FFFFFF', // white
|
|
16
|
+
// green shade
|
|
17
|
+
'#00CCB4',
|
|
18
|
+
'#00F5D8',
|
|
19
|
+
'#85FFF1',
|
|
20
|
+
'#C8FFF8',
|
|
21
|
+
// blue grey
|
|
22
|
+
'#2E3E4C',
|
|
23
|
+
'#4C677F',
|
|
24
|
+
'#6989A5',
|
|
25
|
+
'#8EA6C2',
|
|
26
|
+
'#ACCAE5',
|
|
27
|
+
'#DAE8F4',
|
|
28
|
+
// yellow shade
|
|
29
|
+
'#C35527',
|
|
30
|
+
'#FDAF20',
|
|
31
|
+
'#FAD936',
|
|
32
|
+
'#FBEC9B',
|
|
33
|
+
'#FEF6CD',
|
|
34
|
+
// red shade
|
|
35
|
+
'#5C1918',
|
|
36
|
+
'#C65B59',
|
|
37
|
+
'#D78890',
|
|
38
|
+
'#E7B2C0',
|
|
39
|
+
'#F6DDF0',
|
|
40
|
+
'#FBEEF8',
|
|
41
|
+
// blue shade
|
|
42
|
+
'#003052',
|
|
43
|
+
'#006BB8',
|
|
44
|
+
'#0083E0',
|
|
45
|
+
'#0A99FF',
|
|
46
|
+
'#47B3FF',
|
|
47
|
+
'#A0D7FF',
|
|
48
|
+
// grey shade
|
|
49
|
+
'#000000',
|
|
50
|
+
'#323232',
|
|
51
|
+
'#747678',
|
|
52
|
+
'#BCBEC0',
|
|
53
|
+
'#E6E7E8',
|
|
54
|
+
'#FEFEFE',
|
|
67
55
|
// Habitat group colors
|
|
68
|
-
'#
|
|
69
|
-
'#
|
|
70
|
-
'#
|
|
71
|
-
'#
|
|
72
|
-
'#
|
|
73
|
-
|
|
74
|
-
'#
|
|
56
|
+
'#CDE6F7',
|
|
57
|
+
'#DCEED6',
|
|
58
|
+
'#FEE2D5',
|
|
59
|
+
'#D6D7D9',
|
|
60
|
+
'#E8A7C1',
|
|
61
|
+
// white
|
|
62
|
+
'#FFFFFF',
|
|
75
63
|
];
|
|
64
|
+
config.settings.available_colors = [...new Set(colors)];
|
|
76
65
|
|
|
77
66
|
config.blocks.blocksConfig.columnsBlock =
|
|
78
67
|
config.blocks.blocksConfig.columnsBlock || {};
|
|
File without changes
|