@eeacms/volto-clms-theme 1.0.175 → 1.0.177
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 +9 -4
- package/package.json +1 -1
- package/src/components/Blocks/CclHomeUsersBlock/CclHomeUsersBlockView.jsx +5 -1
- package/src/components/Blocks/CclHomeUsersBlock/HomeUsersSchema.js +13 -1
- package/src/components/CLMSProfileView/CLMSDeleteProfileView.jsx +1 -1
- package/src/components/CLMSProfileView/CLMSNewsletterSubscriberView.jsx +1 -1
- package/src/components/CLMSSubscriptionView/ConfirmSubscriptionView.jsx +2 -2
- package/src/components/Widgets/DownloadableFilesTableWidget.jsx +10 -1
- package/src/components/Widgets/DownloadableFilesTableWidget.less +10 -0
- package/src/components/Widgets/SchemaCreatorWidget.jsx +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,15 @@ 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
|
+
### [1.0.177](https://github.com/eea/volto-clms-theme/compare/1.0.176...1.0.177) - 28 February 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- improve the schema editor buttons hover and add a loader when applying the schema [ionlizarazu - [`4294258`](https://github.com/eea/volto-clms-theme/commit/42942583f6ff570119abf626f85c864356226e7d)]
|
|
12
|
+
- more link text and link selector for home users block [ionlizarazu - [`bf16e1c`](https://github.com/eea/volto-clms-theme/commit/bf16e1c0d857cf8e5cccc966ee89701b92328050)]
|
|
13
|
+
- convert enum to choices [ionlizarazu - [`c411536`](https://github.com/eea/volto-clms-theme/commit/c411536665f0e1206695ba3f0812e486a5ef23c0)]
|
|
14
|
+
### [1.0.176](https://github.com/eea/volto-clms-theme/compare/1.0.175...1.0.176) - 28 February 2023
|
|
15
|
+
|
|
7
16
|
### [1.0.175](https://github.com/eea/volto-clms-theme/compare/1.0.174...1.0.175) - 27 February 2023
|
|
8
17
|
|
|
9
18
|
#### :rocket: New Features
|
|
@@ -784,7 +793,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
784
793
|
#### :hammer_and_wrench: Others
|
|
785
794
|
|
|
786
795
|
- related products and datasets added to news and meeting views and login-plone route created [Unai - [`5704a1a`](https://github.com/eea/volto-clms-theme/commit/5704a1a766148746162b60efaf232ea90dc20cf4)]
|
|
787
|
-
- Revert "[JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`46eb694`](https://github.com/eea/volto-clms-theme/commit/46eb69415280a3c982405299135027ae4221426a)]
|
|
788
796
|
- sort items according to the lowercased label and put those with special meaning at the end [Mikel Larreategi - [`6410abe`](https://github.com/eea/volto-clms-theme/commit/6410abe096f60dcad54dced2026c9df9b7946d68)]
|
|
789
797
|
- lint fix [Unai - [`1264a7a`](https://github.com/eea/volto-clms-theme/commit/1264a7adfe8d679fea1bd821ad087add20f4271d)]
|
|
790
798
|
- footer newsletter subscription change, global search maxLength change from 8000 to 200 and /login design change [Unai - [`a09d24a`](https://github.com/eea/volto-clms-theme/commit/a09d24adbb6fa053fb2a2cc0071506b906593b42)]
|
|
@@ -935,7 +943,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
935
943
|
- search block new features [ionlizarazu - [`8e814cb`](https://github.com/eea/volto-clms-theme/commit/8e814cbd359782540c21fe37b37ef146d331f0d6)]
|
|
936
944
|
- language selector cookie management [ionlizarazu - [`1385ac9`](https://github.com/eea/volto-clms-theme/commit/1385ac95795702206d3623ba6e780faa43a89e0a)]
|
|
937
945
|
- toolbar cookie management [ionlizarazu - [`5c23200`](https://github.com/eea/volto-clms-theme/commit/5c23200790b20e1d4f1bc966463c37bf4c808f47)]
|
|
938
|
-
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`0316a0d`](https://github.com/eea/volto-clms-theme/commit/0316a0d8b6fb0fa14af13002415f3c95d9f8ede3)]
|
|
939
946
|
### [1.0.84](https://github.com/eea/volto-clms-theme/compare/1.0.83...1.0.84) - 18 March 2022
|
|
940
947
|
|
|
941
948
|
#### :hammer_and_wrench: Others
|
|
@@ -1840,13 +1847,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1840
1847
|
#### :hammer_and_wrench: Others
|
|
1841
1848
|
|
|
1842
1849
|
- replace @collective/volto-dropdownmenu with volto-dropdownmenu [ionlizarazu - [`07f004f`](https://github.com/eea/volto-clms-theme/commit/07f004fe0219e403fb51bc045c83d34f3b981f76)]
|
|
1843
|
-
- yarn.lock [ionlizarazu - [`fe1ca04`](https://github.com/eea/volto-clms-theme/commit/fe1ca04889d29fe7b653db4c69af2751b84b8a1a)]
|
|
1844
1850
|
- add NODE_ENV parameter [ionlizarazu - [`101f27c`](https://github.com/eea/volto-clms-theme/commit/101f27c25b8fbd192e1b11865e95cf5ffee08c1b)]
|
|
1845
1851
|
- upgrade volto-dropdownmenu version [ionlizarazu - [`2081855`](https://github.com/eea/volto-clms-theme/commit/2081855301f4c708776e0dbab39db143cee00dbc)]
|
|
1846
1852
|
- HomeSearch block missing url behaviour [ionlizarazu - [`d20a378`](https://github.com/eea/volto-clms-theme/commit/d20a378ce3f254b8343692348f314bf281974542)]
|
|
1847
1853
|
- babel configuration [ionlizarazu - [`203ea2d`](https://github.com/eea/volto-clms-theme/commit/203ea2de07f99ca3403e4ca220ca74d7ce69b61d)]
|
|
1848
1854
|
- prettier [ionlizarazu - [`e79e26b`](https://github.com/eea/volto-clms-theme/commit/e79e26bf2fa40ba7b4eb53a24dabd87928221c28)]
|
|
1849
|
-
- add yarn lock [ionlizarazu - [`e1ab28b`](https://github.com/eea/volto-clms-theme/commit/e1ab28b060d5a74431c368b0de82a68dabce1eab)]
|
|
1850
1855
|
- Jenkinsfile cypress test [ionlizarazu - [`b385d65`](https://github.com/eea/volto-clms-theme/commit/b385d65986f717c60f8c434a08fc11b829d08eb4)]
|
|
1851
1856
|
- cypress [ionlizarazu - [`a243cf0`](https://github.com/eea/volto-clms-theme/commit/a243cf0182fa3dd113c16ff495c71e310252d83b)]
|
|
1852
1857
|
- some fixes [ionlizarazu - [`046279b`](https://github.com/eea/volto-clms-theme/commit/046279b9d05bea8a64eca03eed493e02621534c9)]
|
package/package.json
CHANGED
|
@@ -101,7 +101,11 @@ const CclHomeUsersBlockView = (props) => {
|
|
|
101
101
|
</div>
|
|
102
102
|
))}
|
|
103
103
|
</Slider>
|
|
104
|
-
|
|
104
|
+
{data.moreLinkUrl && data.moreLinkText && (
|
|
105
|
+
<CclButton url={data.moreLinkUrl[0]['@id']}>
|
|
106
|
+
{data.moreLinkText}
|
|
107
|
+
</CclButton>
|
|
108
|
+
)}
|
|
105
109
|
</div>
|
|
106
110
|
</div>
|
|
107
111
|
);
|
|
@@ -4,7 +4,7 @@ export const HomeUsersSchema = () => ({
|
|
|
4
4
|
{
|
|
5
5
|
id: 'default',
|
|
6
6
|
title: 'Default',
|
|
7
|
-
fields: ['title', 'customCards'],
|
|
7
|
+
fields: ['title', 'moreLinkText', 'moreLinkUrl', 'customCards'],
|
|
8
8
|
},
|
|
9
9
|
],
|
|
10
10
|
properties: {
|
|
@@ -13,6 +13,18 @@ export const HomeUsersSchema = () => ({
|
|
|
13
13
|
description: 'Friendly name for the users band',
|
|
14
14
|
type: 'string',
|
|
15
15
|
},
|
|
16
|
+
moreLinkText: {
|
|
17
|
+
title: 'More link text',
|
|
18
|
+
description: 'The text for the more items link after the band',
|
|
19
|
+
type: 'string',
|
|
20
|
+
},
|
|
21
|
+
moreLinkUrl: {
|
|
22
|
+
title: 'More link url',
|
|
23
|
+
description: 'Internal or external link for the button after the band',
|
|
24
|
+
widget: 'object_browser',
|
|
25
|
+
mode: 'link',
|
|
26
|
+
allowExternals: true,
|
|
27
|
+
},
|
|
16
28
|
customCards: {
|
|
17
29
|
title: 'User cards',
|
|
18
30
|
type: 'panels',
|
|
@@ -45,7 +45,7 @@ export const CLMSDeleteProfileView = (props) => {
|
|
|
45
45
|
<Container>
|
|
46
46
|
<div>
|
|
47
47
|
<h1 className="page-title">Delete your profile</h1>
|
|
48
|
-
<p>Click in the button
|
|
48
|
+
<p>Click in the button below to delete your profile.</p>
|
|
49
49
|
<Segment basic loading={deleting}>
|
|
50
50
|
<Modal
|
|
51
51
|
onClose={() => {
|
|
@@ -48,7 +48,7 @@ class CLMSNewsletterSubscriberView extends Component {
|
|
|
48
48
|
Download a list of newsletter subscribers
|
|
49
49
|
</h1>
|
|
50
50
|
<p>
|
|
51
|
-
Click in the button
|
|
51
|
+
Click in the button below to download a list of all the newsletter
|
|
52
52
|
subscribers.
|
|
53
53
|
</p>
|
|
54
54
|
<CclButton mode={'filled'} onClick={this.handleClick}>
|
|
@@ -16,9 +16,9 @@ const messages = defineMessages({
|
|
|
16
16
|
defaultMessage: '{type} {subscribe_or_unsubscribe} confirmation',
|
|
17
17
|
},
|
|
18
18
|
description: {
|
|
19
|
-
id: 'Click on the button
|
|
19
|
+
id: 'Click on the button below to confirm your {subscribe_or_unsubscribe}',
|
|
20
20
|
defaultMessage:
|
|
21
|
-
'Click on the button
|
|
21
|
+
'Click on the button below to confirm your {subscribe_or_unsubscribe}',
|
|
22
22
|
},
|
|
23
23
|
errorMessage: {
|
|
24
24
|
id: 'An error has occured. Please try again',
|
|
@@ -3,7 +3,7 @@ import { ReactTableWidget } from '@eeacms/volto-react-table-widget';
|
|
|
3
3
|
import { useSchema } from './SchemaCreatorWidget';
|
|
4
4
|
import { FormBuilder } from '@ginkgo-bioworks/react-json-schema-form-builder/dist/index';
|
|
5
5
|
import CclButton from '../CclButton/CclButton';
|
|
6
|
-
import { Segment } from 'semantic-ui-react';
|
|
6
|
+
import { Segment, Loader, Header, Divider } from 'semantic-ui-react';
|
|
7
7
|
import './DownloadableFilesTableWidget.less';
|
|
8
8
|
|
|
9
9
|
const DownloadableFilesTableWidget = (props) => {
|
|
@@ -64,6 +64,14 @@ const DownloadableFilesTableWidget = (props) => {
|
|
|
64
64
|
APPLY MODIFIED SCHEMA
|
|
65
65
|
</CclButton>
|
|
66
66
|
</div>
|
|
67
|
+
{!ready && (
|
|
68
|
+
<Segment placeholder>
|
|
69
|
+
<Loader active inline="centered" />
|
|
70
|
+
<Segment.Inline>
|
|
71
|
+
<Header textAlign="centered">Applying the new schema...</Header>
|
|
72
|
+
</Segment.Inline>
|
|
73
|
+
</Segment>
|
|
74
|
+
)}
|
|
67
75
|
{ready && (
|
|
68
76
|
<ReactTableWidget
|
|
69
77
|
{...props}
|
|
@@ -76,6 +84,7 @@ const DownloadableFilesTableWidget = (props) => {
|
|
|
76
84
|
}
|
|
77
85
|
/>
|
|
78
86
|
)}
|
|
87
|
+
<Divider />
|
|
79
88
|
</>
|
|
80
89
|
);
|
|
81
90
|
};
|
|
@@ -134,3 +134,13 @@ div.alert.alert-warning.fade.show,
|
|
|
134
134
|
div.ui.segment.schema-modification-alert-message {
|
|
135
135
|
font-size: 1.5em;
|
|
136
136
|
}
|
|
137
|
+
|
|
138
|
+
div.cardInteractions-0-2-6 span {
|
|
139
|
+
display: inline-block;
|
|
140
|
+
height: 25px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
div.form-body.formBody-0-2-3 > div > div > div > span {
|
|
144
|
+
display: inline-block;
|
|
145
|
+
height: 25px;
|
|
146
|
+
}
|
|
@@ -39,6 +39,10 @@ export const useSchema = (baseSchema, baseUISchema) => {
|
|
|
39
39
|
},
|
|
40
40
|
type: {
|
|
41
41
|
enum: ['Raster', 'Vector'],
|
|
42
|
+
choices: [
|
|
43
|
+
['Raster', 'Raster'],
|
|
44
|
+
['Vector', 'Vector'],
|
|
45
|
+
],
|
|
42
46
|
title: 'Type',
|
|
43
47
|
type: 'string',
|
|
44
48
|
},
|
|
@@ -89,6 +93,15 @@ export const useSchema = (baseSchema, baseUISchema) => {
|
|
|
89
93
|
const [ready, setReady] = useState(true);
|
|
90
94
|
const setSchemaHandler = (schema, uiSchema, onChange, id) => {
|
|
91
95
|
setReady(false);
|
|
96
|
+
// console.log('schema', schema);
|
|
97
|
+
Object.keys(schema.properties).forEach((pr) => {
|
|
98
|
+
if (schema.properties[pr].enum) {
|
|
99
|
+
schema.properties[pr].choices = schema.properties[pr].enum.map((en) => [
|
|
100
|
+
en,
|
|
101
|
+
en,
|
|
102
|
+
]);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
92
105
|
setSchema(schema);
|
|
93
106
|
onChange(id, schema, uiSchema);
|
|
94
107
|
// setTimeout(() => onChangeUi(id, uiSchema), 1500);
|