@eeacms/volto-eea-map 0.1.24 → 0.1.25
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,12 +4,16 @@ 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.1.25](https://github.com/eea/volto-eea-map/compare/0.1.24...0.1.25) - 27 September 2022
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Edit privacy schema [andreiggr - [`be71616`](https://github.com/eea/volto-eea-map/commit/be716166e61a11ab76a0081bf4c578f1ff748819)]
|
|
7
12
|
### [0.1.24](https://github.com/eea/volto-eea-map/compare/0.1.23...0.1.24) - 21 September 2022
|
|
8
13
|
|
|
9
14
|
#### :hammer_and_wrench: Others
|
|
10
15
|
|
|
11
16
|
- remove renderer module [andreiggr - [`d55e99c`](https://github.com/eea/volto-eea-map/commit/d55e99c189b79727f6e076ded737b920bead4c7d)]
|
|
12
|
-
- map layer proper url [andreiggr - [`297186d`](https://github.com/eea/volto-eea-map/commit/297186daeb52c7a01f134bd4c2f0ed778aa01238)]
|
|
13
17
|
### [0.1.23](https://github.com/eea/volto-eea-map/compare/0.1.22...0.1.23) - 15 September 2022
|
|
14
18
|
|
|
15
19
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -9,7 +9,6 @@ import { getContent } from '@plone/volto/actions';
|
|
|
9
9
|
import BlockDataForm from '@plone/volto/components/manage/Form/BlockDataForm';
|
|
10
10
|
import View from './View';
|
|
11
11
|
import { Schema } from './Schema';
|
|
12
|
-
import { addPrivacyProtectionToSchema } from '@eeacms/volto-embed';
|
|
13
12
|
import '../../../styles/map.css';
|
|
14
13
|
|
|
15
14
|
import _ from 'lodash';
|
|
@@ -42,7 +41,7 @@ const Edit = (props) => {
|
|
|
42
41
|
<BlockDataForm
|
|
43
42
|
block={block}
|
|
44
43
|
title={schema.title}
|
|
45
|
-
schema={
|
|
44
|
+
schema={schema}
|
|
46
45
|
onChangeField={(id, value) => {
|
|
47
46
|
onChangeBlock(block, {
|
|
48
47
|
...data,
|
|
@@ -1,3 +1,68 @@
|
|
|
1
|
+
const ProtectionSchema = () => ({
|
|
2
|
+
title: 'Data Protection',
|
|
3
|
+
|
|
4
|
+
fieldsets: [
|
|
5
|
+
{
|
|
6
|
+
id: 'default',
|
|
7
|
+
title: 'Default',
|
|
8
|
+
fields: [
|
|
9
|
+
'privacy_statement',
|
|
10
|
+
'privacy_cookie_key',
|
|
11
|
+
'enabled',
|
|
12
|
+
'background_image',
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
|
|
17
|
+
properties: {
|
|
18
|
+
privacy_statement: {
|
|
19
|
+
title: 'Privacy statement',
|
|
20
|
+
description: 'Defined in template. Change only if necessary',
|
|
21
|
+
widget: 'slate_richtext',
|
|
22
|
+
className: 'slate-Widget',
|
|
23
|
+
defaultValue: [
|
|
24
|
+
{
|
|
25
|
+
children: [
|
|
26
|
+
{
|
|
27
|
+
text:
|
|
28
|
+
'This map is hosted by a third party, Environmental Systems Research Institute. By showing the external content you accept the terms and conditions of ',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: 'a',
|
|
32
|
+
url: 'https://www.esri.com',
|
|
33
|
+
children: [
|
|
34
|
+
{
|
|
35
|
+
text: 'esri.com',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
text:
|
|
41
|
+
'. This includes their cookie policies, which we have no control over.',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
privacy_cookie_key: {
|
|
48
|
+
title: 'Privacy cookie key',
|
|
49
|
+
description: 'Use default for Esri maps, otherwise change',
|
|
50
|
+
defaultValue: 'esri-maps',
|
|
51
|
+
},
|
|
52
|
+
enabled: {
|
|
53
|
+
title: 'Data protection disclaimer enabled',
|
|
54
|
+
description: 'Enable/disable the privacy protection',
|
|
55
|
+
type: 'boolean',
|
|
56
|
+
},
|
|
57
|
+
background_image: {
|
|
58
|
+
title: 'Static map preview image',
|
|
59
|
+
widget: 'file',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
required: [],
|
|
64
|
+
});
|
|
65
|
+
|
|
1
66
|
export const Schema = (props) => {
|
|
2
67
|
return {
|
|
3
68
|
title: 'Embed EEA Map Block',
|
|
@@ -14,6 +79,7 @@ export const Schema = (props) => {
|
|
|
14
79
|
'show_sources',
|
|
15
80
|
'enable_queries',
|
|
16
81
|
...(props.data.enable_queries ? ['data_query_params'] : []),
|
|
82
|
+
'dataprotection',
|
|
17
83
|
],
|
|
18
84
|
},
|
|
19
85
|
],
|
|
@@ -56,6 +122,10 @@ export const Schema = (props) => {
|
|
|
56
122
|
'When using page level parameters to filter the map, please map those to the corresponding field name from the ArcGIS service',
|
|
57
123
|
widget: 'data_query_widget',
|
|
58
124
|
},
|
|
125
|
+
dataprotection: {
|
|
126
|
+
widget: 'object',
|
|
127
|
+
schema: ProtectionSchema(),
|
|
128
|
+
},
|
|
59
129
|
},
|
|
60
130
|
required: [],
|
|
61
131
|
};
|