design-comuni-plone-theme 8.7.10 → 8.7.11
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 +13 -0
- package/package.json +1 -1
- package/publiccode.yml +2 -2
- package/src/components/ItaliaTheme/View/EventoView/EventoCosE.jsx +9 -2
- package/src/components/ItaliaTheme/View/EventoView/EventoUlterioriInformazioni.jsx +3 -3
- package/src/components/ReleaseLog/ReleaseLog.jsx +3 -3
- package/src/config/italiaConfig.js +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [8.7.11](https://github.com/redturtle/design-comuni-plone-theme/compare/v8.7.10...v8.7.11) (2023-10-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* fixed requiredBlocks config with spread and added controls in EventView props ([#374](https://github.com/redturtle/design-comuni-plone-theme/issues/374)) ([f4ec297](https://github.com/redturtle/design-comuni-plone-theme/commit/f4ec297e3e5a5b2ec7cfc60b96fa73565c202de7))
|
|
9
|
+
* tabnav label in Release log ([#373](https://github.com/redturtle/design-comuni-plone-theme/issues/373)) ([c4abcd9](https://github.com/redturtle/design-comuni-plone-theme/commit/c4abcd95d40ecc3af56baeb8aa7a06d442b9154d))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Maintenance
|
|
13
|
+
|
|
14
|
+
* preparing release 8.7.11 ([fbf6386](https://github.com/redturtle/design-comuni-plone-theme/commit/fbf638682c30de694134bcf2686714204837d5cd))
|
|
15
|
+
|
|
3
16
|
## [8.7.10](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.7.9...v8.7.10) (2023-10-19)
|
|
4
17
|
|
|
5
18
|
|
package/package.json
CHANGED
package/publiccode.yml
CHANGED
|
@@ -227,9 +227,9 @@ maintenance:
|
|
|
227
227
|
name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
|
|
228
228
|
platforms:
|
|
229
229
|
- web
|
|
230
|
-
releaseDate: '2023-10-
|
|
230
|
+
releaseDate: '2023-10-23'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 8.7.
|
|
232
|
+
softwareVersion: 8.7.11
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
richTextHasContent,
|
|
13
13
|
Gallery,
|
|
14
14
|
} from 'design-comuni-plone-theme/components/ItaliaTheme/View';
|
|
15
|
+
import { contentFolderHasItems } from 'design-comuni-plone-theme/helpers';
|
|
15
16
|
|
|
16
17
|
const messages = defineMessages({
|
|
17
18
|
cos_e: {
|
|
@@ -36,7 +37,11 @@ const messages = defineMessages({
|
|
|
36
37
|
const EventoCosE = ({ content }) => {
|
|
37
38
|
const intl = useIntl();
|
|
38
39
|
|
|
39
|
-
return (
|
|
40
|
+
return richTextHasContent(content?.descrizione_estesa) ||
|
|
41
|
+
contentFolderHasItems(content, 'immagini') ||
|
|
42
|
+
contentFolderHasItems(content, 'video') ||
|
|
43
|
+
content?.persone_amministrazione?.length > 0 ||
|
|
44
|
+
richTextHasContent(content?.descrizione_destinatari) ? (
|
|
40
45
|
<RichTextSection
|
|
41
46
|
tag_id={'text-body'}
|
|
42
47
|
title={intl.formatMessage(messages.cos_e)}
|
|
@@ -48,7 +53,7 @@ const EventoCosE = ({ content }) => {
|
|
|
48
53
|
<h5 className="parteciperanno-section">
|
|
49
54
|
{intl.formatMessage(messages.parteciperanno)}
|
|
50
55
|
</h5>
|
|
51
|
-
{content
|
|
56
|
+
{content?.persone_amministrazione?.map((item, i) => (
|
|
52
57
|
<UniversalLink
|
|
53
58
|
href={flattenToAppURL(item['@id'])}
|
|
54
59
|
key={item['@id']}
|
|
@@ -85,6 +90,8 @@ const EventoCosE = ({ content }) => {
|
|
|
85
90
|
</div>
|
|
86
91
|
)}
|
|
87
92
|
</RichTextSection>
|
|
93
|
+
) : (
|
|
94
|
+
<></>
|
|
88
95
|
);
|
|
89
96
|
};
|
|
90
97
|
|
|
@@ -34,7 +34,7 @@ const EventoUlterioriInformazioni = ({ content }) => {
|
|
|
34
34
|
richTextHasContent(content?.ulteriori_informazioni) ||
|
|
35
35
|
content?.event_url ||
|
|
36
36
|
richTextHasContent(content?.patrocinato_da) ||
|
|
37
|
-
content?.strutture_politiche
|
|
37
|
+
content?.strutture_politiche?.length > 0,
|
|
38
38
|
[content],
|
|
39
39
|
);
|
|
40
40
|
|
|
@@ -64,11 +64,11 @@ const EventoUlterioriInformazioni = ({ content }) => {
|
|
|
64
64
|
)}
|
|
65
65
|
</div>
|
|
66
66
|
)}
|
|
67
|
-
{content?.strutture_politiche
|
|
67
|
+
{content?.strutture_politiche?.length > 0 && (
|
|
68
68
|
<div className="mt-4">
|
|
69
69
|
<h5>{intl.formatMessage(messages.strutture_politiche)}</h5>
|
|
70
70
|
<div className="card-wrapper card-teaser-wrapper card-teaser-wrapper-equal">
|
|
71
|
-
{content
|
|
71
|
+
{content?.strutture_politiche?.map((item, i) => (
|
|
72
72
|
<GenericCard
|
|
73
73
|
key={i}
|
|
74
74
|
index={item['@id']}
|
|
@@ -39,12 +39,12 @@ const ReleaseLog = () => {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
const LOGS_TO_VIEW = [
|
|
42
|
-
{ name: 'io-
|
|
42
|
+
{ name: 'io-Comune', file: ReleaseDCPT },
|
|
43
43
|
{
|
|
44
|
-
name: 'io-
|
|
44
|
+
name: 'io-Cittadino',
|
|
45
45
|
file: ReleaseIoCittadino,
|
|
46
46
|
},
|
|
47
|
-
{ name: 'io-
|
|
47
|
+
{ name: 'io-Prenoto', file: ReleaseIoPrenoto },
|
|
48
48
|
];
|
|
49
49
|
|
|
50
50
|
const [activeTab, toggleTab] = useState(LOGS_TO_VIEW[0].name);
|
|
@@ -438,9 +438,7 @@ export default function applyConfig(voltoConfig) {
|
|
|
438
438
|
blocksConfig: { ...config.blocks.blocksConfig, ...customBlocks },
|
|
439
439
|
groupBlocksOrder: config.blocks.groupBlocksOrder.concat(customBlocksOrder),
|
|
440
440
|
initialBlocks: { ...config.blocks.initialBlocks, ...customInitialBlocks },
|
|
441
|
-
requiredBlocks:
|
|
442
|
-
...config.blocks.requiredBlocks.concat(...customRequiredBlocks),
|
|
443
|
-
},
|
|
441
|
+
requiredBlocks: [...config.blocks.requiredBlocks, ...customRequiredBlocks],
|
|
444
442
|
showEditBlocksInBabelView: true,
|
|
445
443
|
};
|
|
446
444
|
|