@eeacms/volto-eea-website-theme 3.5.3 → 3.5.4
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 +15 -1
- package/locales/de/LC_MESSAGES/volto.po +72 -12
- package/locales/en/LC_MESSAGES/volto.po +72 -12
- package/locales/it/LC_MESSAGES/volto.po +72 -12
- package/locales/ro/LC_MESSAGES/volto.po +72 -12
- package/locales/volto.pot +74 -14
- package/package.json +1 -1
- package/src/customizations/volto/components/manage/Controlpanels/Groups/RenderGroups.diff +15 -0
- package/src/customizations/volto/components/manage/Controlpanels/Groups/RenderGroups.jsx +125 -0
- package/src/customizations/volto/components/manage/Controlpanels/Groups/RenderGroups.test.jsx +58 -0
- package/src/index.js +9 -1
- package/src/slate.js +10 -5
package/CHANGELOG.md
CHANGED
@@ -4,7 +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
|
-
### [3.5.
|
7
|
+
### [3.5.4](https://github.com/eea/volto-eea-website-theme/compare/3.5.3...3.5.4) - 30 January 2025
|
8
|
+
|
9
|
+
#### :bug: Bug Fixes
|
10
|
+
|
11
|
+
- fix: Group title [alin - [`2014630`](https://github.com/eea/volto-eea-website-theme/commit/2014630e8fdce8edcfc3f6984c1a8c34ff111d10)]
|
12
|
+
- fix: Copy unchanged from volto 17.20.4 [alin - [`f0771cc`](https://github.com/eea/volto-eea-website-theme/commit/f0771cc43103e9bf2f51c6a983cf2cc591aef66d)]
|
13
|
+
- fix: Restrict non-GDPR blocks: video, maps, html [alin - [`a12f8e2`](https://github.com/eea/volto-eea-website-theme/commit/a12f8e2823372051163aa6e166a34c3019ac7054)]
|
14
|
+
- fix: Drop semantic list component as it cannot append the slate node - ref 278427 [dobri1408 - [`3852353`](https://github.com/eea/volto-eea-website-theme/commit/3852353ce5cfafdb25bcd252cdb711266cd70349)]
|
15
|
+
|
16
|
+
#### :hammer_and_wrench: Others
|
17
|
+
|
18
|
+
- test: Fix cypress for removed maps block [alin - [`04a3d37`](https://github.com/eea/volto-eea-website-theme/commit/04a3d37eb3e0e9d13f3f7c4ef866189577b2ec8c)]
|
19
|
+
- test: Fix snapshots [alin - [`33db177`](https://github.com/eea/volto-eea-website-theme/commit/33db177644390b0b1a9730a232086ac3e1a72f6e)]
|
20
|
+
- i18n [alin - [`f9a9d7c`](https://github.com/eea/volto-eea-website-theme/commit/f9a9d7c9e7bfc49ce702d99da44526bed1421f8e)]
|
21
|
+
### [3.5.3](https://github.com/eea/volto-eea-website-theme/compare/3.5.2...3.5.3) - 28 January 2025
|
8
22
|
|
9
23
|
#### :bug: Bug Fixes
|
10
24
|
|
@@ -11,62 +11,122 @@ msgstr ""
|
|
11
11
|
"Content-Transfer-Encoding: \n"
|
12
12
|
"Plural-Forms: \n"
|
13
13
|
|
14
|
+
#. Default: "Choices"
|
15
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
16
|
+
msgid "Choices"
|
17
|
+
msgstr ""
|
18
|
+
|
19
|
+
#. Default: "Close"
|
20
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
21
|
+
msgid "Close"
|
22
|
+
msgstr ""
|
23
|
+
|
24
|
+
#. Default: "Created"
|
14
25
|
#: components/theme/Banner/View
|
15
|
-
# defaultMessage: Created
|
16
26
|
msgid "Created"
|
17
27
|
msgstr ""
|
18
28
|
|
29
|
+
#. Default: "Default"
|
30
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
31
|
+
msgid "Default"
|
32
|
+
msgstr ""
|
33
|
+
|
34
|
+
#. Default: "Description"
|
35
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
36
|
+
msgid "Description"
|
37
|
+
msgstr ""
|
38
|
+
|
39
|
+
#. Default: "Download"
|
19
40
|
#: components/theme/Banner/View
|
20
|
-
# defaultMessage: Download
|
21
41
|
msgid "Download"
|
22
42
|
msgstr ""
|
23
43
|
|
44
|
+
#. Default: "European Environment Agency"
|
24
45
|
#: components/theme/Logo
|
25
|
-
# defaultMessage: European Environment Agency
|
26
46
|
msgid "European Environment Agency"
|
27
47
|
msgstr ""
|
28
48
|
|
49
|
+
#. Default: "Invalid block - Will be removed on saving"
|
29
50
|
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
30
|
-
# defaultMessage: Invalid block - Will be removed on saving
|
31
51
|
msgid "Invalid Block"
|
32
52
|
msgstr ""
|
33
53
|
|
54
|
+
#. Default: "Modified"
|
34
55
|
#: components/theme/Banner/View
|
35
|
-
# defaultMessage: Modified
|
36
56
|
msgid "Modified"
|
37
57
|
msgstr ""
|
38
58
|
|
59
|
+
#. Default: "Navigation"
|
60
|
+
#: components/manage/Blocks/ContextNavigation/variations/Accordion
|
61
|
+
msgid "Navigation"
|
62
|
+
msgstr ""
|
63
|
+
|
64
|
+
#. Default: "No options"
|
65
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
66
|
+
msgid "No options"
|
67
|
+
msgstr ""
|
68
|
+
|
69
|
+
#. Default: "No value"
|
70
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
71
|
+
msgid "No value"
|
72
|
+
msgstr ""
|
73
|
+
|
74
|
+
#. Default: "Published"
|
39
75
|
#: components/theme/Banner/View
|
40
|
-
# defaultMessage: Published
|
41
76
|
msgid "Published"
|
42
77
|
msgstr ""
|
43
78
|
|
79
|
+
#. Default: "Required"
|
80
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
81
|
+
msgid "Required"
|
82
|
+
msgstr ""
|
83
|
+
|
84
|
+
#. Default: "Select…"
|
85
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
86
|
+
msgid "Select…"
|
87
|
+
msgstr ""
|
88
|
+
|
89
|
+
#. Default: "Share"
|
44
90
|
#: components/theme/Banner/View
|
45
|
-
# defaultMessage: Share
|
46
91
|
msgid "Share"
|
47
92
|
msgstr ""
|
48
93
|
|
94
|
+
#. Default: "Share to"
|
49
95
|
#: components/theme/Banner/View
|
50
|
-
# defaultMessage: Share to
|
51
96
|
msgid "Share to"
|
52
97
|
msgstr ""
|
53
98
|
|
99
|
+
#. Default: "Short Name"
|
100
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
101
|
+
msgid "Short Name"
|
102
|
+
msgstr ""
|
103
|
+
|
104
|
+
#. Default: "Site"
|
54
105
|
#: components/theme/Logo
|
55
|
-
# defaultMessage: Site
|
56
106
|
msgid "Site"
|
57
107
|
msgstr ""
|
58
108
|
|
109
|
+
#. Default: "Title"
|
110
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
111
|
+
msgid "Title"
|
112
|
+
msgstr ""
|
113
|
+
|
114
|
+
#. Default: "Type the title…"
|
59
115
|
#: components/manage/Blocks/Title/Edit
|
60
|
-
# defaultMessage: Type the title…
|
61
116
|
msgid "Type the title…"
|
62
117
|
msgstr ""
|
63
118
|
|
119
|
+
#. Default: "Unknown Block {block}"
|
64
120
|
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
65
|
-
# defaultMessage: Unknown Block {block}
|
66
121
|
msgid "Unknown Block"
|
67
122
|
msgstr ""
|
68
123
|
|
124
|
+
#. Default: "Used for programmatic access to the fieldset."
|
125
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
126
|
+
msgid "Used for programmatic access to the fieldset."
|
127
|
+
msgstr ""
|
128
|
+
|
129
|
+
#. Default: "RSS Feed"
|
69
130
|
#: components/theme/Banner/View
|
70
|
-
# defaultMessage: RSS Feed
|
71
131
|
msgid "rssFeed"
|
72
132
|
msgstr ""
|
@@ -11,62 +11,122 @@ msgstr ""
|
|
11
11
|
"Content-Transfer-Encoding: \n"
|
12
12
|
"Plural-Forms: \n"
|
13
13
|
|
14
|
+
#. Default: "Choices"
|
15
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
16
|
+
msgid "Choices"
|
17
|
+
msgstr ""
|
18
|
+
|
19
|
+
#. Default: "Close"
|
20
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
21
|
+
msgid "Close"
|
22
|
+
msgstr ""
|
23
|
+
|
24
|
+
#. Default: "Created"
|
14
25
|
#: components/theme/Banner/View
|
15
|
-
# defaultMessage: Created
|
16
26
|
msgid "Created"
|
17
27
|
msgstr ""
|
18
28
|
|
29
|
+
#. Default: "Default"
|
30
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
31
|
+
msgid "Default"
|
32
|
+
msgstr ""
|
33
|
+
|
34
|
+
#. Default: "Description"
|
35
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
36
|
+
msgid "Description"
|
37
|
+
msgstr ""
|
38
|
+
|
39
|
+
#. Default: "Download"
|
19
40
|
#: components/theme/Banner/View
|
20
|
-
# defaultMessage: Download
|
21
41
|
msgid "Download"
|
22
42
|
msgstr ""
|
23
43
|
|
44
|
+
#. Default: "European Environment Agency"
|
24
45
|
#: components/theme/Logo
|
25
|
-
# defaultMessage: European Environment Agency
|
26
46
|
msgid "European Environment Agency"
|
27
47
|
msgstr ""
|
28
48
|
|
49
|
+
#. Default: "Invalid block - Will be removed on saving"
|
29
50
|
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
30
|
-
# defaultMessage: Invalid block - Will be removed on saving
|
31
51
|
msgid "Invalid Block"
|
32
52
|
msgstr ""
|
33
53
|
|
54
|
+
#. Default: "Modified"
|
34
55
|
#: components/theme/Banner/View
|
35
|
-
# defaultMessage: Modified
|
36
56
|
msgid "Modified"
|
37
57
|
msgstr ""
|
38
58
|
|
59
|
+
#. Default: "Navigation"
|
60
|
+
#: components/manage/Blocks/ContextNavigation/variations/Accordion
|
61
|
+
msgid "Navigation"
|
62
|
+
msgstr ""
|
63
|
+
|
64
|
+
#. Default: "No options"
|
65
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
66
|
+
msgid "No options"
|
67
|
+
msgstr ""
|
68
|
+
|
69
|
+
#. Default: "No value"
|
70
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
71
|
+
msgid "No value"
|
72
|
+
msgstr ""
|
73
|
+
|
74
|
+
#. Default: "Published"
|
39
75
|
#: components/theme/Banner/View
|
40
|
-
# defaultMessage: Published
|
41
76
|
msgid "Published"
|
42
77
|
msgstr ""
|
43
78
|
|
79
|
+
#. Default: "Required"
|
80
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
81
|
+
msgid "Required"
|
82
|
+
msgstr ""
|
83
|
+
|
84
|
+
#. Default: "Select…"
|
85
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
86
|
+
msgid "Select…"
|
87
|
+
msgstr ""
|
88
|
+
|
89
|
+
#. Default: "Share"
|
44
90
|
#: components/theme/Banner/View
|
45
|
-
# defaultMessage: Share
|
46
91
|
msgid "Share"
|
47
92
|
msgstr ""
|
48
93
|
|
94
|
+
#. Default: "Share to"
|
49
95
|
#: components/theme/Banner/View
|
50
|
-
# defaultMessage: Share to
|
51
96
|
msgid "Share to"
|
52
97
|
msgstr ""
|
53
98
|
|
99
|
+
#. Default: "Short Name"
|
100
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
101
|
+
msgid "Short Name"
|
102
|
+
msgstr ""
|
103
|
+
|
104
|
+
#. Default: "Site"
|
54
105
|
#: components/theme/Logo
|
55
|
-
# defaultMessage: Site
|
56
106
|
msgid "Site"
|
57
107
|
msgstr ""
|
58
108
|
|
109
|
+
#. Default: "Title"
|
110
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
111
|
+
msgid "Title"
|
112
|
+
msgstr ""
|
113
|
+
|
114
|
+
#. Default: "Type the title…"
|
59
115
|
#: components/manage/Blocks/Title/Edit
|
60
|
-
# defaultMessage: Type the title…
|
61
116
|
msgid "Type the title…"
|
62
117
|
msgstr ""
|
63
118
|
|
119
|
+
#. Default: "Unknown Block {block}"
|
64
120
|
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
65
|
-
# defaultMessage: Unknown Block {block}
|
66
121
|
msgid "Unknown Block"
|
67
122
|
msgstr ""
|
68
123
|
|
124
|
+
#. Default: "Used for programmatic access to the fieldset."
|
125
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
126
|
+
msgid "Used for programmatic access to the fieldset."
|
127
|
+
msgstr ""
|
128
|
+
|
129
|
+
#. Default: "RSS Feed"
|
69
130
|
#: components/theme/Banner/View
|
70
|
-
# defaultMessage: RSS Feed
|
71
131
|
msgid "rssFeed"
|
72
132
|
msgstr ""
|
@@ -11,62 +11,122 @@ msgstr ""
|
|
11
11
|
"Content-Transfer-Encoding: \n"
|
12
12
|
"Plural-Forms: \n"
|
13
13
|
|
14
|
+
#. Default: "Choices"
|
15
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
16
|
+
msgid "Choices"
|
17
|
+
msgstr ""
|
18
|
+
|
19
|
+
#. Default: "Close"
|
20
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
21
|
+
msgid "Close"
|
22
|
+
msgstr ""
|
23
|
+
|
24
|
+
#. Default: "Created"
|
14
25
|
#: components/theme/Banner/View
|
15
|
-
# defaultMessage: Created
|
16
26
|
msgid "Created"
|
17
27
|
msgstr ""
|
18
28
|
|
29
|
+
#. Default: "Default"
|
30
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
31
|
+
msgid "Default"
|
32
|
+
msgstr ""
|
33
|
+
|
34
|
+
#. Default: "Description"
|
35
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
36
|
+
msgid "Description"
|
37
|
+
msgstr ""
|
38
|
+
|
39
|
+
#. Default: "Download"
|
19
40
|
#: components/theme/Banner/View
|
20
|
-
# defaultMessage: Download
|
21
41
|
msgid "Download"
|
22
42
|
msgstr ""
|
23
43
|
|
44
|
+
#. Default: "European Environment Agency"
|
24
45
|
#: components/theme/Logo
|
25
|
-
# defaultMessage: European Environment Agency
|
26
46
|
msgid "European Environment Agency"
|
27
47
|
msgstr ""
|
28
48
|
|
49
|
+
#. Default: "Invalid block - Will be removed on saving"
|
29
50
|
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
30
|
-
# defaultMessage: Invalid block - Will be removed on saving
|
31
51
|
msgid "Invalid Block"
|
32
52
|
msgstr ""
|
33
53
|
|
54
|
+
#. Default: "Modified"
|
34
55
|
#: components/theme/Banner/View
|
35
|
-
# defaultMessage: Modified
|
36
56
|
msgid "Modified"
|
37
57
|
msgstr ""
|
38
58
|
|
59
|
+
#. Default: "Navigation"
|
60
|
+
#: components/manage/Blocks/ContextNavigation/variations/Accordion
|
61
|
+
msgid "Navigation"
|
62
|
+
msgstr ""
|
63
|
+
|
64
|
+
#. Default: "No options"
|
65
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
66
|
+
msgid "No options"
|
67
|
+
msgstr ""
|
68
|
+
|
69
|
+
#. Default: "No value"
|
70
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
71
|
+
msgid "No value"
|
72
|
+
msgstr ""
|
73
|
+
|
74
|
+
#. Default: "Published"
|
39
75
|
#: components/theme/Banner/View
|
40
|
-
# defaultMessage: Published
|
41
76
|
msgid "Published"
|
42
77
|
msgstr ""
|
43
78
|
|
79
|
+
#. Default: "Required"
|
80
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
81
|
+
msgid "Required"
|
82
|
+
msgstr ""
|
83
|
+
|
84
|
+
#. Default: "Select…"
|
85
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
86
|
+
msgid "Select…"
|
87
|
+
msgstr ""
|
88
|
+
|
89
|
+
#. Default: "Share"
|
44
90
|
#: components/theme/Banner/View
|
45
|
-
# defaultMessage: Share
|
46
91
|
msgid "Share"
|
47
92
|
msgstr ""
|
48
93
|
|
94
|
+
#. Default: "Share to"
|
49
95
|
#: components/theme/Banner/View
|
50
|
-
# defaultMessage: Share to
|
51
96
|
msgid "Share to"
|
52
97
|
msgstr ""
|
53
98
|
|
99
|
+
#. Default: "Short Name"
|
100
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
101
|
+
msgid "Short Name"
|
102
|
+
msgstr ""
|
103
|
+
|
104
|
+
#. Default: "Site"
|
54
105
|
#: components/theme/Logo
|
55
|
-
# defaultMessage: Site
|
56
106
|
msgid "Site"
|
57
107
|
msgstr ""
|
58
108
|
|
109
|
+
#. Default: "Title"
|
110
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
111
|
+
msgid "Title"
|
112
|
+
msgstr ""
|
113
|
+
|
114
|
+
#. Default: "Type the title…"
|
59
115
|
#: components/manage/Blocks/Title/Edit
|
60
|
-
# defaultMessage: Type the title…
|
61
116
|
msgid "Type the title…"
|
62
117
|
msgstr ""
|
63
118
|
|
119
|
+
#. Default: "Unknown Block {block}"
|
64
120
|
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
65
|
-
# defaultMessage: Unknown Block {block}
|
66
121
|
msgid "Unknown Block"
|
67
122
|
msgstr ""
|
68
123
|
|
124
|
+
#. Default: "Used for programmatic access to the fieldset."
|
125
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
126
|
+
msgid "Used for programmatic access to the fieldset."
|
127
|
+
msgstr ""
|
128
|
+
|
129
|
+
#. Default: "RSS Feed"
|
69
130
|
#: components/theme/Banner/View
|
70
|
-
# defaultMessage: RSS Feed
|
71
131
|
msgid "rssFeed"
|
72
132
|
msgstr ""
|
@@ -11,62 +11,122 @@ msgstr ""
|
|
11
11
|
"Content-Transfer-Encoding: \n"
|
12
12
|
"Plural-Forms: \n"
|
13
13
|
|
14
|
+
#. Default: "Choices"
|
15
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
16
|
+
msgid "Choices"
|
17
|
+
msgstr ""
|
18
|
+
|
19
|
+
#. Default: "Close"
|
20
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
21
|
+
msgid "Close"
|
22
|
+
msgstr ""
|
23
|
+
|
24
|
+
#. Default: "Created"
|
14
25
|
#: components/theme/Banner/View
|
15
|
-
# defaultMessage: Created
|
16
26
|
msgid "Created"
|
17
27
|
msgstr ""
|
18
28
|
|
29
|
+
#. Default: "Default"
|
30
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
31
|
+
msgid "Default"
|
32
|
+
msgstr ""
|
33
|
+
|
34
|
+
#. Default: "Description"
|
35
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
36
|
+
msgid "Description"
|
37
|
+
msgstr ""
|
38
|
+
|
39
|
+
#. Default: "Download"
|
19
40
|
#: components/theme/Banner/View
|
20
|
-
# defaultMessage: Download
|
21
41
|
msgid "Download"
|
22
42
|
msgstr ""
|
23
43
|
|
44
|
+
#. Default: "European Environment Agency"
|
24
45
|
#: components/theme/Logo
|
25
|
-
# defaultMessage: European Environment Agency
|
26
46
|
msgid "European Environment Agency"
|
27
47
|
msgstr ""
|
28
48
|
|
49
|
+
#. Default: "Invalid block - Will be removed on saving"
|
29
50
|
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
30
|
-
# defaultMessage: Invalid block - Will be removed on saving
|
31
51
|
msgid "Invalid Block"
|
32
52
|
msgstr ""
|
33
53
|
|
54
|
+
#. Default: "Modified"
|
34
55
|
#: components/theme/Banner/View
|
35
|
-
# defaultMessage: Modified
|
36
56
|
msgid "Modified"
|
37
57
|
msgstr ""
|
38
58
|
|
59
|
+
#. Default: "Navigation"
|
60
|
+
#: components/manage/Blocks/ContextNavigation/variations/Accordion
|
61
|
+
msgid "Navigation"
|
62
|
+
msgstr ""
|
63
|
+
|
64
|
+
#. Default: "No options"
|
65
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
66
|
+
msgid "No options"
|
67
|
+
msgstr ""
|
68
|
+
|
69
|
+
#. Default: "No value"
|
70
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
71
|
+
msgid "No value"
|
72
|
+
msgstr ""
|
73
|
+
|
74
|
+
#. Default: "Published"
|
39
75
|
#: components/theme/Banner/View
|
40
|
-
# defaultMessage: Published
|
41
76
|
msgid "Published"
|
42
77
|
msgstr ""
|
43
78
|
|
79
|
+
#. Default: "Required"
|
80
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
81
|
+
msgid "Required"
|
82
|
+
msgstr ""
|
83
|
+
|
84
|
+
#. Default: "Select…"
|
85
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
86
|
+
msgid "Select…"
|
87
|
+
msgstr ""
|
88
|
+
|
89
|
+
#. Default: "Share"
|
44
90
|
#: components/theme/Banner/View
|
45
|
-
# defaultMessage: Share
|
46
91
|
msgid "Share"
|
47
92
|
msgstr ""
|
48
93
|
|
94
|
+
#. Default: "Share to"
|
49
95
|
#: components/theme/Banner/View
|
50
|
-
# defaultMessage: Share to
|
51
96
|
msgid "Share to"
|
52
97
|
msgstr ""
|
53
98
|
|
99
|
+
#. Default: "Short Name"
|
100
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
101
|
+
msgid "Short Name"
|
102
|
+
msgstr ""
|
103
|
+
|
104
|
+
#. Default: "Site"
|
54
105
|
#: components/theme/Logo
|
55
|
-
# defaultMessage: Site
|
56
106
|
msgid "Site"
|
57
107
|
msgstr ""
|
58
108
|
|
109
|
+
#. Default: "Title"
|
110
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
111
|
+
msgid "Title"
|
112
|
+
msgstr ""
|
113
|
+
|
114
|
+
#. Default: "Type the title…"
|
59
115
|
#: components/manage/Blocks/Title/Edit
|
60
|
-
# defaultMessage: Type the title…
|
61
116
|
msgid "Type the title…"
|
62
117
|
msgstr ""
|
63
118
|
|
119
|
+
#. Default: "Unknown Block {block}"
|
64
120
|
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
65
|
-
# defaultMessage: Unknown Block {block}
|
66
121
|
msgid "Unknown Block"
|
67
122
|
msgstr ""
|
68
123
|
|
124
|
+
#. Default: "Used for programmatic access to the fieldset."
|
125
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
126
|
+
msgid "Used for programmatic access to the fieldset."
|
127
|
+
msgstr ""
|
128
|
+
|
129
|
+
#. Default: "RSS Feed"
|
69
130
|
#: components/theme/Banner/View
|
70
|
-
# defaultMessage: RSS Feed
|
71
131
|
msgid "rssFeed"
|
72
132
|
msgstr ""
|
package/locales/volto.pot
CHANGED
@@ -1,74 +1,134 @@
|
|
1
1
|
msgid ""
|
2
2
|
msgstr ""
|
3
3
|
"Project-Id-Version: Plone\n"
|
4
|
-
"POT-Creation-Date:
|
4
|
+
"POT-Creation-Date: 2025-01-30T18:15:27.602Z\n"
|
5
5
|
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
6
6
|
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
7
|
-
"MIME-Version: 1.0\n"
|
8
7
|
"Content-Type: text/plain; charset=utf-8\n"
|
9
8
|
"Content-Transfer-Encoding: 8bit\n"
|
10
9
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
10
|
+
"MIME-Version: 1.0\n"
|
11
11
|
"Language-Code: en\n"
|
12
12
|
"Language-Name: English\n"
|
13
13
|
"Preferred-Encodings: utf-8\n"
|
14
14
|
"Domain: volto\n"
|
15
15
|
|
16
|
+
#. Default: "Choices"
|
17
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
18
|
+
msgid "Choices"
|
19
|
+
msgstr ""
|
20
|
+
|
21
|
+
#. Default: "Close"
|
22
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
23
|
+
msgid "Close"
|
24
|
+
msgstr ""
|
25
|
+
|
26
|
+
#. Default: "Created"
|
16
27
|
#: components/theme/Banner/View
|
17
|
-
# defaultMessage: Created
|
18
28
|
msgid "Created"
|
19
29
|
msgstr ""
|
20
30
|
|
31
|
+
#. Default: "Default"
|
32
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
33
|
+
msgid "Default"
|
34
|
+
msgstr ""
|
35
|
+
|
36
|
+
#. Default: "Description"
|
37
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
38
|
+
msgid "Description"
|
39
|
+
msgstr ""
|
40
|
+
|
41
|
+
#. Default: "Download"
|
21
42
|
#: components/theme/Banner/View
|
22
|
-
# defaultMessage: Download
|
23
43
|
msgid "Download"
|
24
44
|
msgstr ""
|
25
45
|
|
46
|
+
#. Default: "European Environment Agency"
|
26
47
|
#: components/theme/Logo
|
27
|
-
# defaultMessage: European Environment Agency
|
28
48
|
msgid "European Environment Agency"
|
29
49
|
msgstr ""
|
30
50
|
|
51
|
+
#. Default: "Invalid block - Will be removed on saving"
|
31
52
|
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
32
|
-
# defaultMessage: Invalid block - Will be removed on saving
|
33
53
|
msgid "Invalid Block"
|
34
54
|
msgstr ""
|
35
55
|
|
56
|
+
#. Default: "Modified"
|
36
57
|
#: components/theme/Banner/View
|
37
|
-
# defaultMessage: Modified
|
38
58
|
msgid "Modified"
|
39
59
|
msgstr ""
|
40
60
|
|
61
|
+
#. Default: "Navigation"
|
62
|
+
#: components/manage/Blocks/ContextNavigation/variations/Accordion
|
63
|
+
msgid "Navigation"
|
64
|
+
msgstr ""
|
65
|
+
|
66
|
+
#. Default: "No options"
|
67
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
68
|
+
msgid "No options"
|
69
|
+
msgstr ""
|
70
|
+
|
71
|
+
#. Default: "No value"
|
72
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
73
|
+
msgid "No value"
|
74
|
+
msgstr ""
|
75
|
+
|
76
|
+
#. Default: "Published"
|
41
77
|
#: components/theme/Banner/View
|
42
|
-
# defaultMessage: Published
|
43
78
|
msgid "Published"
|
44
79
|
msgstr ""
|
45
80
|
|
81
|
+
#. Default: "Required"
|
82
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
83
|
+
msgid "Required"
|
84
|
+
msgstr ""
|
85
|
+
|
86
|
+
#. Default: "Select…"
|
87
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
88
|
+
msgid "Select…"
|
89
|
+
msgstr ""
|
90
|
+
|
91
|
+
#. Default: "Share"
|
46
92
|
#: components/theme/Banner/View
|
47
|
-
# defaultMessage: Share
|
48
93
|
msgid "Share"
|
49
94
|
msgstr ""
|
50
95
|
|
96
|
+
#. Default: "Share to"
|
51
97
|
#: components/theme/Banner/View
|
52
|
-
# defaultMessage: Share to
|
53
98
|
msgid "Share to"
|
54
99
|
msgstr ""
|
55
100
|
|
101
|
+
#. Default: "Short Name"
|
102
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
103
|
+
msgid "Short Name"
|
104
|
+
msgstr ""
|
105
|
+
|
106
|
+
#. Default: "Site"
|
56
107
|
#: components/theme/Logo
|
57
|
-
# defaultMessage: Site
|
58
108
|
msgid "Site"
|
59
109
|
msgstr ""
|
60
110
|
|
111
|
+
#. Default: "Title"
|
112
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
113
|
+
msgid "Title"
|
114
|
+
msgstr ""
|
115
|
+
|
116
|
+
#. Default: "Type the title…"
|
61
117
|
#: components/manage/Blocks/Title/Edit
|
62
|
-
# defaultMessage: Type the title…
|
63
118
|
msgid "Type the title…"
|
64
119
|
msgstr ""
|
65
120
|
|
121
|
+
#. Default: "Unknown Block {block}"
|
66
122
|
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
67
|
-
# defaultMessage: Unknown Block {block}
|
68
123
|
msgid "Unknown Block"
|
69
124
|
msgstr ""
|
70
125
|
|
126
|
+
#. Default: "Used for programmatic access to the fieldset."
|
127
|
+
#: components/theme/Widgets/CreatableSelectWidget
|
128
|
+
msgid "Used for programmatic access to the fieldset."
|
129
|
+
msgstr ""
|
130
|
+
|
131
|
+
#. Default: "RSS Feed"
|
71
132
|
#: components/theme/Banner/View
|
72
|
-
# defaultMessage: RSS Feed
|
73
133
|
msgid "rssFeed"
|
74
134
|
msgstr ""
|
package/package.json
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
diff --git a/src/customizations/volto/components/manage/Controlpanels/Groups/RenderGroups.jsx b/src/customizations/volto/components/manage/Controlpanels/Groups/RenderGroups.jsx
|
2
|
+
index 816ad59..3b4df8f 100644
|
3
|
+
--- a/src/customizations/volto/components/manage/Controlpanels/Groups/RenderGroups.jsx
|
4
|
+
+++ b/src/customizations/volto/components/manage/Controlpanels/Groups/RenderGroups.jsx
|
5
|
+
@@ -77,7 +77,9 @@ class RenderGroups extends Component {
|
6
|
+
render() {
|
7
|
+
return (
|
8
|
+
<Table.Row key={this.props.group.title}>
|
9
|
+
- <Table.Cell>{this.props.group.groupname}</Table.Cell>
|
10
|
+
+ <Table.Cell>
|
11
|
+
+ {this.props.group.title || this.props.group.groupname}
|
12
|
+
+ </Table.Cell>
|
13
|
+
{this.props.roles.map((role) => (
|
14
|
+
<Table.Cell key={role.id}>
|
15
|
+
{this.props.inheritedRole &&
|
@@ -0,0 +1,125 @@
|
|
1
|
+
/**
|
2
|
+
* Users controlpanel groups.
|
3
|
+
* @module components/manage/Controlpanels/UsersControlpanelGroups
|
4
|
+
*/
|
5
|
+
import PropTypes from 'prop-types';
|
6
|
+
import React, { Component } from 'react';
|
7
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
8
|
+
import { Dropdown, Table, Checkbox } from 'semantic-ui-react';
|
9
|
+
import trashSVG from '@plone/volto/icons/delete.svg';
|
10
|
+
import ploneSVG from '@plone/volto/icons/plone.svg';
|
11
|
+
import { Icon } from '@plone/volto/components';
|
12
|
+
|
13
|
+
/**
|
14
|
+
* UsersControlpanelGroups class.
|
15
|
+
* @class UsersControlpanelGroups
|
16
|
+
* @extends Component
|
17
|
+
*/
|
18
|
+
class RenderGroups extends Component {
|
19
|
+
/**
|
20
|
+
* Property types.
|
21
|
+
* @property {Object} propTypes Property types.
|
22
|
+
* @static
|
23
|
+
*/
|
24
|
+
static propTypes = {
|
25
|
+
//single group
|
26
|
+
group: PropTypes.shape({
|
27
|
+
title: PropTypes.string,
|
28
|
+
description: PropTypes.string,
|
29
|
+
email: PropTypes.string,
|
30
|
+
groupname: PropTypes.string,
|
31
|
+
roles: PropTypes.arrayOf(PropTypes.string),
|
32
|
+
}).isRequired,
|
33
|
+
|
34
|
+
roles: PropTypes.arrayOf(
|
35
|
+
PropTypes.shape({
|
36
|
+
id: PropTypes.string,
|
37
|
+
}),
|
38
|
+
).isRequired,
|
39
|
+
inheritedRole: PropTypes.array,
|
40
|
+
onDelete: PropTypes.func.isRequired,
|
41
|
+
};
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Constructor
|
45
|
+
* @method constructor
|
46
|
+
* @param {Object} props Component properties
|
47
|
+
* @constructs Sharing
|
48
|
+
*/
|
49
|
+
constructor(props) {
|
50
|
+
super(props);
|
51
|
+
this.onChange = this.onChange.bind(this);
|
52
|
+
}
|
53
|
+
|
54
|
+
/**
|
55
|
+
* @param {*} event
|
56
|
+
* @param {*} { value }
|
57
|
+
* @memberof UsersControlpanelUser
|
58
|
+
*/
|
59
|
+
onChange(event, { value }) {
|
60
|
+
const [group, role] = value.split('&role=');
|
61
|
+
this.props.updateGroups(group, role);
|
62
|
+
}
|
63
|
+
|
64
|
+
/**
|
65
|
+
*@param {*}
|
66
|
+
*@returns {Boolean}
|
67
|
+
*@memberof RenderGroups
|
68
|
+
*/
|
69
|
+
isAuthGroup = (roleId) => {
|
70
|
+
return this.props.inheritedRole.includes(roleId);
|
71
|
+
};
|
72
|
+
/**
|
73
|
+
* Render method.
|
74
|
+
* @method render
|
75
|
+
* @returns {string} Markup for the component.
|
76
|
+
*/
|
77
|
+
render() {
|
78
|
+
return (
|
79
|
+
<Table.Row key={this.props.group.title}>
|
80
|
+
<Table.Cell>
|
81
|
+
{this.props.group.title || this.props.group.groupname}
|
82
|
+
</Table.Cell>
|
83
|
+
{this.props.roles.map((role) => (
|
84
|
+
<Table.Cell key={role.id}>
|
85
|
+
{this.props.inheritedRole &&
|
86
|
+
this.props.inheritedRole.includes(role.id) &&
|
87
|
+
this.props.group.roles.includes('Authenticated') ? (
|
88
|
+
<Icon
|
89
|
+
name={ploneSVG}
|
90
|
+
size="20px"
|
91
|
+
color="#007EB1"
|
92
|
+
title={'plone-svg'}
|
93
|
+
/>
|
94
|
+
) : (
|
95
|
+
<Checkbox
|
96
|
+
checked={
|
97
|
+
this.props.group.id === 'AuthenticatedUsers'
|
98
|
+
? this.isAuthGroup(role.id)
|
99
|
+
: this.props.group.roles.includes(role.id)
|
100
|
+
}
|
101
|
+
onChange={this.onChange}
|
102
|
+
value={`${this.props.group.id}&role=${role.id}`}
|
103
|
+
/>
|
104
|
+
)}
|
105
|
+
</Table.Cell>
|
106
|
+
))}
|
107
|
+
<Table.Cell textAlign="right">
|
108
|
+
<Dropdown icon="ellipsis horizontal">
|
109
|
+
<Dropdown.Menu className="left">
|
110
|
+
<Dropdown.Item
|
111
|
+
onClick={this.props.onDelete}
|
112
|
+
value={this.props.group['@id']}
|
113
|
+
>
|
114
|
+
<Icon name={trashSVG} size="15px" />
|
115
|
+
<FormattedMessage id="Delete" defaultMessage="Delete" />
|
116
|
+
</Dropdown.Item>
|
117
|
+
</Dropdown.Menu>
|
118
|
+
</Dropdown>
|
119
|
+
</Table.Cell>
|
120
|
+
</Table.Row>
|
121
|
+
);
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
export default injectIntl(RenderGroups);
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import renderer from 'react-test-renderer';
|
3
|
+
import configureStore from 'redux-mock-store';
|
4
|
+
import { Provider } from 'react-intl-redux';
|
5
|
+
|
6
|
+
import RenderGroups from './RenderGroups';
|
7
|
+
|
8
|
+
const mockStore = configureStore();
|
9
|
+
|
10
|
+
const testGroups = {
|
11
|
+
'@id': 'http://localhost:55001/plone/@groups/Administrators',
|
12
|
+
description: '',
|
13
|
+
email: '',
|
14
|
+
groupname: 'Administrators',
|
15
|
+
id: 'Administrators',
|
16
|
+
title: 'Administrators',
|
17
|
+
roles: ['Manager'],
|
18
|
+
};
|
19
|
+
|
20
|
+
const testRoles = [
|
21
|
+
{
|
22
|
+
'@id': 'http://localhost:8080/Plone/@roles/Member',
|
23
|
+
'@type': 'role',
|
24
|
+
id: 'Member',
|
25
|
+
},
|
26
|
+
{
|
27
|
+
'@id': 'http://localhost:8080/Plone/@roles/Reader',
|
28
|
+
'@type': 'role',
|
29
|
+
id: 'Reader',
|
30
|
+
},
|
31
|
+
{
|
32
|
+
'@id': 'http://localhost:8080/Plone/@roles/Manager',
|
33
|
+
'@type': 'role',
|
34
|
+
id: 'Manager',
|
35
|
+
},
|
36
|
+
];
|
37
|
+
|
38
|
+
describe('UsersControlpanelGroups', () => {
|
39
|
+
it('renders a UsersControlpanelGroups component', () => {
|
40
|
+
const store = mockStore({
|
41
|
+
intl: {
|
42
|
+
locale: 'en',
|
43
|
+
messages: {},
|
44
|
+
},
|
45
|
+
});
|
46
|
+
const component = renderer.create(
|
47
|
+
<Provider store={store}>
|
48
|
+
<RenderGroups
|
49
|
+
group={testGroups}
|
50
|
+
roles={testRoles}
|
51
|
+
onDelete={() => {}}
|
52
|
+
/>
|
53
|
+
</Provider>,
|
54
|
+
);
|
55
|
+
const json = component.toJSON();
|
56
|
+
expect(json).toMatchSnapshot();
|
57
|
+
});
|
58
|
+
});
|
package/src/index.js
CHANGED
@@ -44,7 +44,15 @@ import { print } from './reducers';
|
|
44
44
|
|
45
45
|
import * as eea from './config';
|
46
46
|
|
47
|
-
const restrictedBlocks = [
|
47
|
+
const restrictedBlocks = [
|
48
|
+
'imagesGrid',
|
49
|
+
'teaser',
|
50
|
+
'dataFigure',
|
51
|
+
'plotly_chart',
|
52
|
+
'video',
|
53
|
+
'maps',
|
54
|
+
'html',
|
55
|
+
];
|
48
56
|
|
49
57
|
/**
|
50
58
|
* Customizes the variations of a tabs block by modifying their schema and semantic icons.
|
package/src/slate.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import cx from 'classnames';
|
3
|
-
import { List } from 'semantic-ui-react';
|
4
3
|
import {
|
5
4
|
MarkElementButton,
|
6
5
|
ToolbarButton,
|
@@ -275,15 +274,21 @@ export default function installSlate(config) {
|
|
275
274
|
|
276
275
|
// Align Slate Lists to EEA Design System
|
277
276
|
config.settings.slate.elements.ul = ({ attributes, children }) => (
|
278
|
-
<
|
277
|
+
<ul
|
278
|
+
{...attributes}
|
279
|
+
className={cx('ui bulleted list', attributes?.className)}
|
280
|
+
>
|
279
281
|
{children}
|
280
|
-
</
|
282
|
+
</ul>
|
281
283
|
);
|
282
284
|
|
283
285
|
config.settings.slate.elements.ol = ({ attributes, children }) => (
|
284
|
-
<
|
286
|
+
<ol
|
287
|
+
{...attributes}
|
288
|
+
className={cx('ui ordered list', attributes?.className)}
|
289
|
+
>
|
285
290
|
{children}
|
286
|
-
</
|
291
|
+
</ol>
|
287
292
|
);
|
288
293
|
|
289
294
|
config.settings.slate.allowedHeadlineElements.push('zotero');
|