design-comuni-plone-theme 8.9.0 → 10.0.0
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 +19 -0
- package/RELEASE.md +6 -0
- package/package.json +1 -1
- package/publiccode.yml +1 -1
- package/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx +6 -2
- package/src/components/ItaliaTheme/CustomerSatisfaction/Steps/Commons/Rating.jsx +1 -1
- package/src/components/ItaliaTheme/View/BandoView/BandoApprofondimenti.jsx +3 -3
- package/src/components/ItaliaTheme/View/BandoView/BandoText.jsx +4 -6
- package/src/components/ItaliaTheme/View/BandoView/BandoView.jsx +2 -2
- package/src/components/ItaliaTheme/View/Commons/Attachment.jsx +1 -1
- package/src/components/ItaliaTheme/View/Commons/ContactsCard.jsx +4 -4
- package/src/components/ItaliaTheme/View/Commons/Events.jsx +9 -15
- package/src/components/ItaliaTheme/View/Commons/Gallery.jsx +1 -1
- package/src/components/ItaliaTheme/View/Commons/GenericCard.jsx +4 -4
- package/src/components/ItaliaTheme/View/Commons/LocationItem.jsx +2 -2
- package/src/components/ItaliaTheme/View/Commons/Module.jsx +1 -1
- package/src/components/ItaliaTheme/View/Commons/Modules.jsx +3 -3
- package/src/components/ItaliaTheme/View/Commons/NewsCard.jsx +2 -2
- package/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx +2 -2
- package/src/components/ItaliaTheme/View/Commons/RelatedItemInEvidence/ItemInEvidence.jsx +1 -1
- package/src/components/ItaliaTheme/View/Commons/RelatedItems.jsx +2 -2
- package/src/components/ItaliaTheme/View/Commons/RichText.jsx +4 -1
- package/src/components/ItaliaTheme/View/Commons/RichTextSection.jsx +5 -2
- package/src/components/ItaliaTheme/View/Commons/SmallVenue.jsx +2 -2
- package/src/components/ItaliaTheme/View/Commons/TrasparenzaFields.jsx +3 -3
- package/src/components/ItaliaTheme/View/Commons/VenuesSmall.jsx +2 -2
- package/src/components/ItaliaTheme/View/Commons/index.jsx +0 -1
- package/src/components/ItaliaTheme/View/DocumentoView/DocumentoAutori.jsx +2 -1
- package/src/components/ItaliaTheme/View/DocumentoView/DocumentoDocumenti.jsx +1 -0
- package/src/components/ItaliaTheme/View/DocumentoView/DocumentoUlterioriInformazioni.jsx +5 -2
- package/src/components/ItaliaTheme/View/DocumentoView/DocumentoView.jsx +2 -2
- package/src/components/ItaliaTheme/View/EventoView/EventoContatti.jsx +16 -25
- package/src/components/ItaliaTheme/View/EventoView/EventoCosE.jsx +2 -3
- package/src/components/ItaliaTheme/View/EventoView/EventoSponsors.jsx +3 -1
- package/src/components/ItaliaTheme/View/EventoView/EventoUlterioriInformazioni.jsx +4 -3
- package/src/components/ItaliaTheme/View/EventoView/EventoView.jsx +2 -2
- package/src/components/ItaliaTheme/View/IncaricoView/IncaricoPersone.jsx +6 -5
- package/src/components/ItaliaTheme/View/IncaricoView/IncaricoView.jsx +1 -1
- package/src/components/ItaliaTheme/View/NewsItemView/NewsItemView.jsx +2 -2
- package/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoViewNoBlocks.jsx +2 -2
- package/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx +0 -1
- package/src/components/ItaliaTheme/View/PersonaView/PersonaView.jsx +2 -2
- package/src/components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView.jsx +47 -45
- package/src/components/ItaliaTheme/View/ServizioView/ServizioAChiSiRivolge.jsx +6 -2
- package/src/components/ItaliaTheme/View/ServizioView/ServizioAccedi.jsx +8 -6
- package/src/components/ItaliaTheme/View/ServizioView/ServizioCostiVincoli.jsx +2 -1
- package/src/components/ItaliaTheme/View/ServizioView/ServizioSitiEsterni.jsx +1 -1
- package/src/components/ItaliaTheme/View/ServizioView/ServizioView.jsx +2 -2
- package/src/components/ItaliaTheme/View/UOView/UOContacts.jsx +6 -4
- package/src/components/ItaliaTheme/View/UOView/UOContactsParts/UOContactsContacts.jsx +7 -4
- package/src/components/ItaliaTheme/View/UOView/UOContactsParts/UOContactsLocations.jsx +1 -1
- package/src/components/ItaliaTheme/View/UOView/UOContactsParts/UOContactsSediSecondarie.jsx +8 -3
- package/src/components/ItaliaTheme/View/UOView/UODocuments.jsx +3 -5
- package/src/components/ItaliaTheme/View/UOView/UOPeople.jsx +7 -7
- package/src/components/ItaliaTheme/View/UOView/UOServices.jsx +4 -5
- package/src/components/ItaliaTheme/View/UOView/UOStructure.jsx +66 -56
- package/src/components/ItaliaTheme/View/UOView/UOView.jsx +2 -2
- package/src/components/ItaliaTheme/View/VenueView/VenueDescription.jsx +1 -1
- package/src/components/ItaliaTheme/View/VenueView/VenueView.jsx +2 -2
- package/src/components/ItaliaTheme/View/index.js +0 -1
- package/src/theme/ItaliaTheme/Views/_slider.scss +1 -1
- package/src/components/ItaliaTheme/View/Commons/RichTextArticle.jsx +0 -56
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [10.0.0](https://github.com/redturtle/design-comuni-plone-theme/compare/v8.9.0...v10.0.0) (2023-11-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* h titles in views (#381)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* h titles in views ([#381](https://github.com/redturtle/design-comuni-plone-theme/issues/381)) ([1b871e9](https://github.com/redturtle/design-comuni-plone-theme/commit/1b871e9f86b3fa5866ddf7192ccbc900e2629ce7))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Maintenance
|
|
16
|
+
|
|
17
|
+
* prapring release 9.0.1 ([7d7376c](https://github.com/redturtle/design-comuni-plone-theme/commit/7d7376cf2f536a8262c73b1e0f2aabda08818e78))
|
|
18
|
+
* preparing release 8.10.0 ([a33e32b](https://github.com/redturtle/design-comuni-plone-theme/commit/a33e32bd6cdda6aea0227140580a43e26501f475))
|
|
19
|
+
* preparing release 9.0.0 ([95f5cc0](https://github.com/redturtle/design-comuni-plone-theme/commit/95f5cc0bd486198c0b66dcd4d0b659113d51527f))
|
|
20
|
+
* preparing release 9.0.1 (9.0.0) ([e230881](https://github.com/redturtle/design-comuni-plone-theme/commit/e23088116b5422081a9ce22763288cd0b65fc4cc))
|
|
21
|
+
|
|
3
22
|
## [8.9.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.8.2...v8.9.0) (2023-11-03)
|
|
4
23
|
|
|
5
24
|
|
package/RELEASE.md
CHANGED
package/package.json
CHANGED
package/publiccode.yml
CHANGED
|
@@ -79,7 +79,9 @@ function NextArrow(props) {
|
|
|
79
79
|
id="sliderNextArrow"
|
|
80
80
|
>
|
|
81
81
|
<Icon icon="chevron-right" key="chevron-right" />
|
|
82
|
-
<span class="
|
|
82
|
+
<span class="visually-hidden">
|
|
83
|
+
{intl.formatMessage(messages.successivo)}
|
|
84
|
+
</span>
|
|
83
85
|
</button>
|
|
84
86
|
);
|
|
85
87
|
}
|
|
@@ -122,7 +124,9 @@ function PrevArrow(props) {
|
|
|
122
124
|
onKeyDown={handleKeyboardUsers}
|
|
123
125
|
>
|
|
124
126
|
<Icon icon="chevron-left" key="chevron-left-prev" />
|
|
125
|
-
<span class="
|
|
127
|
+
<span class="visually-hidden">
|
|
128
|
+
{intl.formatMessage(messages.precedente)}
|
|
129
|
+
</span>
|
|
126
130
|
</button>
|
|
127
131
|
);
|
|
128
132
|
}
|
|
@@ -47,7 +47,7 @@ const BandoApprofondimenti = ({ content }) => {
|
|
|
47
47
|
padding={false}
|
|
48
48
|
/>
|
|
49
49
|
<CardBody>
|
|
50
|
-
<CardTitle
|
|
50
|
+
<CardTitle className="title h5">
|
|
51
51
|
<UniversalLink
|
|
52
52
|
href={flattenToAppURL(item.url)}
|
|
53
53
|
rel="noopener noreferrer"
|
|
@@ -67,7 +67,7 @@ const BandoApprofondimenti = ({ content }) => {
|
|
|
67
67
|
>
|
|
68
68
|
<Icon className={undefined} icon={'it-file'} padding={false} />
|
|
69
69
|
<CardBody>
|
|
70
|
-
<CardTitle
|
|
70
|
+
<CardTitle className="title h5">
|
|
71
71
|
<UniversalLink
|
|
72
72
|
item={{
|
|
73
73
|
...item,
|
|
@@ -111,7 +111,7 @@ const BandoApprofondimenti = ({ content }) => {
|
|
|
111
111
|
<>
|
|
112
112
|
{content.approfondimento.map((item, i) => (
|
|
113
113
|
<>
|
|
114
|
-
<h5>{item.title}</
|
|
114
|
+
<h3 className="h5">{item.title}</h3>
|
|
115
115
|
<div className="card-wrapper card-teaser-wrapper card-teaser-wrapper-equal">
|
|
116
116
|
{content.approfondimento[i].children.map((inner_item, x) =>
|
|
117
117
|
inner_item.type === 'Modulo' ? (
|
|
@@ -38,20 +38,18 @@ const BandoText = ({ content }) => {
|
|
|
38
38
|
show_title={true}
|
|
39
39
|
>
|
|
40
40
|
{/* DESCRIZIONE DEL BANDO */}
|
|
41
|
-
{richTextHasContent(content?.text) &&
|
|
42
|
-
<RichText title_size="h5" title={''} data={content?.text} />
|
|
43
|
-
)}
|
|
41
|
+
{richTextHasContent(content?.text) && <RichText data={content?.text} />}
|
|
44
42
|
{/* TIPOLOGIA DEL BANDO */}
|
|
45
43
|
{content?.tipologia_bando && (
|
|
46
44
|
<>
|
|
47
|
-
<h5>{intl.formatMessage(messages.tipologia_bando)}</
|
|
45
|
+
<h3 className="h5">{intl.formatMessage(messages.tipologia_bando)}</h3>
|
|
48
46
|
<span>{content.tipologia_bando.title}</span>
|
|
49
47
|
</>
|
|
50
48
|
)}
|
|
51
49
|
{/* DESTINATARI DEL BANDO */}
|
|
52
50
|
{content?.destinatari?.length > 0 && (
|
|
53
51
|
<>
|
|
54
|
-
<h5>{intl.formatMessage(messages.destinatari)}</
|
|
52
|
+
<h3 className="h5">{intl.formatMessage(messages.destinatari)}</h3>
|
|
55
53
|
{content.destinatari.map((item, i) => (
|
|
56
54
|
<p key={'destinatari-' + i}>{item.title}</p>
|
|
57
55
|
))}
|
|
@@ -60,7 +58,7 @@ const BandoText = ({ content }) => {
|
|
|
60
58
|
{/* ENTE DEL BANDO */}
|
|
61
59
|
{content?.ente_bando?.length > 0 && (
|
|
62
60
|
<>
|
|
63
|
-
<h5>{intl.formatMessage(messages.ente)}</
|
|
61
|
+
<h3 className="h5">{intl.formatMessage(messages.ente)}</h3>
|
|
64
62
|
{content.ente_bando.map((item, i) => (
|
|
65
63
|
<span key={'ente_' + i}>
|
|
66
64
|
{item}
|
|
@@ -65,7 +65,7 @@ const BandoView = ({ content, location }) => {
|
|
|
65
65
|
showtassonomiaargomenti={true}
|
|
66
66
|
showbandostate={true}
|
|
67
67
|
/>
|
|
68
|
-
<div className="row row-column-border row-column-menu-left">
|
|
68
|
+
<div className="row row-column-border border-light row-column-menu-left">
|
|
69
69
|
<aside className="col-lg-4">
|
|
70
70
|
{__CLIENT__ && (
|
|
71
71
|
<SideMenu data={sideMenuElements} content_uid={content?.UID} />
|
|
@@ -74,7 +74,7 @@ const BandoView = ({ content, location }) => {
|
|
|
74
74
|
<section
|
|
75
75
|
ref={documentBody}
|
|
76
76
|
id="main-content-section"
|
|
77
|
-
className="col-lg-8 it-page-sections-container"
|
|
77
|
+
className="col-lg-8 it-page-sections-container border-light"
|
|
78
78
|
>
|
|
79
79
|
{/* SEZIONI */}
|
|
80
80
|
<ContentTypeViewSections
|
|
@@ -26,7 +26,7 @@ const Attachment = ({ title, description, download_url }) => {
|
|
|
26
26
|
title={intl.formatMessage(messages.attachment)}
|
|
27
27
|
/>
|
|
28
28
|
<CardBody tag="div">
|
|
29
|
-
<CardTitle
|
|
29
|
+
<CardTitle className="h5">
|
|
30
30
|
<a href={flattenToAppURL(download_url)}>{title}</a>
|
|
31
31
|
</CardTitle>
|
|
32
32
|
{description && <p>{description}</p>}
|
|
@@ -27,10 +27,10 @@ const ContactsCard = ({ contact = {}, show_title = false, ...rest }) => {
|
|
|
27
27
|
}
|
|
28
28
|
}, [dispatch, contactUrl, loading, loaded]);
|
|
29
29
|
|
|
30
|
-
useEffect(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
);
|
|
30
|
+
useEffect(() => () => dispatch(resetContent(flattenToAppURL(contactUrl))), [
|
|
31
|
+
dispatch,
|
|
32
|
+
contactUrl,
|
|
33
|
+
]);
|
|
34
34
|
|
|
35
35
|
if (error) {
|
|
36
36
|
return null;
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
|
|
11
11
|
import { UniversalLink } from '@plone/volto/components';
|
|
12
12
|
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
13
|
-
|
|
13
|
+
import { RichTextSection } from 'design-comuni-plone-theme/components/ItaliaTheme/View';
|
|
14
14
|
import Image from '@plone/volto/components/theme/Image/Image';
|
|
15
15
|
import { viewDate } from 'design-comuni-plone-theme/helpers';
|
|
16
16
|
|
|
@@ -40,7 +40,7 @@ const Evento = ({ event, show_image }) => {
|
|
|
40
40
|
|
|
41
41
|
return event ? (
|
|
42
42
|
<div className="card-wrapper card-teaser">
|
|
43
|
-
<Card noWrapper className="card-img no-after">
|
|
43
|
+
<Card noWrapper className="card card-img no-after shadow rounded">
|
|
44
44
|
{show_image &&
|
|
45
45
|
(event.image_field || event.preview_image || event.image) && (
|
|
46
46
|
<div className="img-responsive-wrapper">
|
|
@@ -65,16 +65,16 @@ const Evento = ({ event, show_image }) => {
|
|
|
65
65
|
</div>
|
|
66
66
|
)}
|
|
67
67
|
<CardBody>
|
|
68
|
-
<CardTitle
|
|
68
|
+
<CardTitle className="h5">
|
|
69
69
|
<UniversalLink
|
|
70
70
|
href={flattenToAppURL(event['@id'])}
|
|
71
71
|
title={event.title}
|
|
72
72
|
className="text-decoration-none"
|
|
73
73
|
>
|
|
74
|
-
|
|
74
|
+
{event.title}
|
|
75
75
|
</UniversalLink>
|
|
76
76
|
</CardTitle>
|
|
77
|
-
<CardText
|
|
77
|
+
<CardText> </CardText>
|
|
78
78
|
<CardReadMore
|
|
79
79
|
iconName="it-arrow-right"
|
|
80
80
|
tag={UniversalLink}
|
|
@@ -103,22 +103,16 @@ const Events = ({ content, title, show_image, folder_name, isChild }) => {
|
|
|
103
103
|
: content?.items?.filter((el) => el['@type'] === 'Event') || [];
|
|
104
104
|
|
|
105
105
|
return events.length > 0 ? (
|
|
106
|
-
<
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
aria-labelledby="header-appuntamenti"
|
|
106
|
+
<RichTextSection
|
|
107
|
+
tag_id="appuntamenti"
|
|
108
|
+
title={title || intl.formatMessage(messages.events)}
|
|
110
109
|
>
|
|
111
|
-
{title ? (
|
|
112
|
-
<h4 id="header-appuntamenti">{title}</h4>
|
|
113
|
-
) : (
|
|
114
|
-
<h4 id="header-appuntamenti">{intl.formatMessage(messages.events)}</h4>
|
|
115
|
-
)}
|
|
116
110
|
<div className="card-wrapper card-teaser-wrapper card-teaser-wrapper-equal">
|
|
117
111
|
{events.map((item, i) => (
|
|
118
112
|
<Evento key={item['@id']} event={item} show_image={show_image} />
|
|
119
113
|
))}
|
|
120
114
|
</div>
|
|
121
|
-
</
|
|
115
|
+
</RichTextSection>
|
|
122
116
|
) : null;
|
|
123
117
|
};
|
|
124
118
|
|
|
@@ -85,10 +85,10 @@ const GenericCard = ({
|
|
|
85
85
|
</div>
|
|
86
86
|
<div className="card-body px-4">
|
|
87
87
|
{infos}
|
|
88
|
-
<
|
|
88
|
+
<div className="card-title h5">
|
|
89
89
|
{show_icon && <Icon icon={show_icon} padding={false} />}
|
|
90
90
|
<UniversalLink item={item_fo}>{item_fo.title}</UniversalLink>
|
|
91
|
-
</
|
|
91
|
+
</div>
|
|
92
92
|
{(showDescription || children) && (
|
|
93
93
|
<div className="card-text">
|
|
94
94
|
{item_fo.description} {children}
|
|
@@ -105,10 +105,10 @@ const GenericCard = ({
|
|
|
105
105
|
>
|
|
106
106
|
<div className="card-body">
|
|
107
107
|
{infos}
|
|
108
|
-
<
|
|
108
|
+
<div className="card-title h5">
|
|
109
109
|
{show_icon && <Icon icon={show_icon} padding={false} />}
|
|
110
110
|
<UniversalLink item={item_fo}>{item_fo.title}</UniversalLink>
|
|
111
|
-
</
|
|
111
|
+
</div>
|
|
112
112
|
{(showDescription || children) && (
|
|
113
113
|
<div className="card-text">
|
|
114
114
|
{item_fo.description} {children}
|
|
@@ -61,7 +61,7 @@ const LocationItem = ({
|
|
|
61
61
|
<div className="card card-teaser shadow mt-3 border-left-card card-big-io-comune p-4 rounded location-item">
|
|
62
62
|
{show_icon && <Icon icon={'it-pin'} />}
|
|
63
63
|
<div className="card-body">
|
|
64
|
-
<
|
|
64
|
+
<div className="card-title h5 venue-card-title">
|
|
65
65
|
{(location_fo.nome_sede || location_fo.title) && (
|
|
66
66
|
<>
|
|
67
67
|
{location_fo['@type'] === 'Venue' ||
|
|
@@ -78,7 +78,7 @@ const LocationItem = ({
|
|
|
78
78
|
)}
|
|
79
79
|
</>
|
|
80
80
|
)}
|
|
81
|
-
</
|
|
81
|
+
</div>
|
|
82
82
|
<div className="card-text">
|
|
83
83
|
<p>{address}</p>
|
|
84
84
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
RichTextSection,
|
|
10
10
|
Module,
|
|
11
11
|
} from 'design-comuni-plone-theme/components/ItaliaTheme/View';
|
|
12
12
|
|
|
@@ -21,13 +21,13 @@ const Modules = ({ content, title, id = 'documenti' }) => {
|
|
|
21
21
|
content.items?.filter((item) => item.id !== 'multimedia') ?? [];
|
|
22
22
|
|
|
23
23
|
return moduli.length > 0 ? (
|
|
24
|
-
<
|
|
24
|
+
<RichTextSection tag_id={id} title={title}>
|
|
25
25
|
<div className="card-wrapper card-teaser-wrapper card-teaser-wrapper-equal modules">
|
|
26
26
|
{moduli.map((modulo) => (
|
|
27
27
|
<Module key={modulo['@id']} item={modulo} />
|
|
28
28
|
))}
|
|
29
29
|
</div>
|
|
30
|
-
</
|
|
30
|
+
</RichTextSection>
|
|
31
31
|
) : null;
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -28,9 +28,9 @@ const NewsCard = ({ title, typology, effective, description, id }) => {
|
|
|
28
28
|
</span>
|
|
29
29
|
) : null}
|
|
30
30
|
</div>
|
|
31
|
-
<
|
|
31
|
+
<div className="card-title h5">
|
|
32
32
|
<UniversalLink href={flattenToAppURL(id)}>{title}</UniversalLink>
|
|
33
|
-
</
|
|
33
|
+
</div>
|
|
34
34
|
<div className="card-text">{description}</div>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
@@ -55,7 +55,7 @@ const OfficeCard = ({
|
|
|
55
55
|
>
|
|
56
56
|
{icon && <Icon icon={icon}></Icon>}
|
|
57
57
|
<div className="card-body pe-3">
|
|
58
|
-
<
|
|
58
|
+
<div className="card-title h5">
|
|
59
59
|
<UniversalLink
|
|
60
60
|
item={office_fo}
|
|
61
61
|
title={office_fo.title}
|
|
@@ -63,7 +63,7 @@ const OfficeCard = ({
|
|
|
63
63
|
>
|
|
64
64
|
{office_fo.title}
|
|
65
65
|
</UniversalLink>
|
|
66
|
-
</
|
|
66
|
+
</div>
|
|
67
67
|
<p className="card-text">{office_fo.description}</p>
|
|
68
68
|
{show_contacts && office_fo?.sede?.length > 0 && (
|
|
69
69
|
<div>
|
|
@@ -32,7 +32,7 @@ const ItemInEvidence = ({ content }) => {
|
|
|
32
32
|
<Card className="card-bg rounded " noWrapper={true} tag="div">
|
|
33
33
|
<CardBody tag="div">
|
|
34
34
|
<ArgumentIcon icon={correlato_in_evidenza.icona} />
|
|
35
|
-
<CardTitle
|
|
35
|
+
<CardTitle className="h3">{correlato_in_evidenza.title}</CardTitle>
|
|
36
36
|
<CardText tag="p">{correlato_in_evidenza.description}</CardText>
|
|
37
37
|
<CardReadMore
|
|
38
38
|
iconName="it-arrow-right"
|
|
@@ -96,9 +96,9 @@ const RelatedItems = ({
|
|
|
96
96
|
<div className="card-header">
|
|
97
97
|
<Icon icon={SITE_SECTIONS[sectionId].icon} />
|
|
98
98
|
|
|
99
|
-
<
|
|
99
|
+
<div className="card-title h5">
|
|
100
100
|
{intl.formatMessage(messages[sectionId])}
|
|
101
|
-
</
|
|
101
|
+
</div>
|
|
102
102
|
</div>
|
|
103
103
|
<div className="card-body">
|
|
104
104
|
<div className="link-list-wrapper mt-3">
|
|
@@ -9,7 +9,8 @@ import { RichTextRender } from 'design-comuni-plone-theme/components/ItaliaTheme
|
|
|
9
9
|
*/
|
|
10
10
|
const RichText = ({
|
|
11
11
|
title,
|
|
12
|
-
title_size = '
|
|
12
|
+
title_size = 'h3',
|
|
13
|
+
title_class_name = 'h5',
|
|
13
14
|
data,
|
|
14
15
|
add_class,
|
|
15
16
|
children,
|
|
@@ -33,6 +34,7 @@ const RichText = ({
|
|
|
33
34
|
<Tag
|
|
34
35
|
className={cx('mt-4 it-page-subsection', {
|
|
35
36
|
'fw-bold': title_size === 'h6',
|
|
37
|
+
[title_class_name]: title_class_name,
|
|
36
38
|
})}
|
|
37
39
|
>
|
|
38
40
|
{title}
|
|
@@ -48,6 +50,7 @@ export default RichText;
|
|
|
48
50
|
RichText.propTypes = {
|
|
49
51
|
title: PropTypes.string,
|
|
50
52
|
title_size: PropTypes.oneOf(['h2', 'h3', 'h4', 'h5', 'h6']),
|
|
53
|
+
title_class_name: PropTypes.string,
|
|
51
54
|
data: PropTypes.object,
|
|
52
55
|
add_class: PropTypes.string,
|
|
53
56
|
serif: PropTypes.bool,
|
|
@@ -5,6 +5,7 @@ import { RichTextRender } from 'design-comuni-plone-theme/components/ItaliaTheme
|
|
|
5
5
|
const RichTextSection = ({
|
|
6
6
|
title,
|
|
7
7
|
title_tag = 'h2',
|
|
8
|
+
title_class_name = 'h4',
|
|
8
9
|
show_title = true,
|
|
9
10
|
data,
|
|
10
11
|
tag_id,
|
|
@@ -41,8 +42,9 @@ const RichTextSection = ({
|
|
|
41
42
|
{title && (
|
|
42
43
|
<Tag
|
|
43
44
|
id={title_tag === 'h2' ? `header-${tag_id}` : undefined}
|
|
44
|
-
className={cx('mb-3
|
|
45
|
-
'
|
|
45
|
+
className={cx('mb-3', {
|
|
46
|
+
'visually-hidden': !show_title,
|
|
47
|
+
[title_class_name]: title_class_name,
|
|
46
48
|
})}
|
|
47
49
|
>
|
|
48
50
|
{title}
|
|
@@ -58,6 +60,7 @@ export default RichTextSection;
|
|
|
58
60
|
RichTextSection.propTypes = {
|
|
59
61
|
title: PropTypes.string,
|
|
60
62
|
title_tag: PropTypes.oneOf(['h2', 'h3', 'h4', 'h5', 'h6']),
|
|
63
|
+
title_class_name: PropTypes.string,
|
|
61
64
|
data: PropTypes.object,
|
|
62
65
|
tag_id: PropTypes.string,
|
|
63
66
|
add_class: PropTypes.string,
|
|
@@ -35,11 +35,11 @@ const SmallVenue = ({ venue }) => {
|
|
|
35
35
|
<>
|
|
36
36
|
<div className="card card-teaser shadow mt-3 rounded bigborder">
|
|
37
37
|
<div className="card-body">
|
|
38
|
-
<
|
|
38
|
+
<div className="card-title h5">
|
|
39
39
|
<UniversalLink item={venue_fo} title={venue_fo.title}>
|
|
40
40
|
{venue_fo.title}
|
|
41
41
|
</UniversalLink>
|
|
42
|
-
</
|
|
42
|
+
</div>
|
|
43
43
|
<div className="card-text">
|
|
44
44
|
{venue_fo.telefono && (
|
|
45
45
|
<p>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
RichTextSection,
|
|
5
5
|
RichTextRender,
|
|
6
6
|
} from 'design-comuni-plone-theme/components/ItaliaTheme/View';
|
|
7
7
|
import { UniversalLink } from '@plone/volto/components';
|
|
@@ -284,12 +284,12 @@ const TrasparenzaFields = ({ content }) => {
|
|
|
284
284
|
});
|
|
285
285
|
|
|
286
286
|
return fields.length > 0 ? (
|
|
287
|
-
<
|
|
287
|
+
<RichTextSection
|
|
288
288
|
tag_id="trasparenza"
|
|
289
289
|
title={intl.formatMessage(messages.trasparenza)}
|
|
290
290
|
>
|
|
291
291
|
<dl className="trasparenza-fields">{fields}</dl>
|
|
292
|
-
</
|
|
292
|
+
</RichTextSection>
|
|
293
293
|
) : null;
|
|
294
294
|
};
|
|
295
295
|
|
|
@@ -47,10 +47,10 @@ const Location = ({ location, show_icon }) => {
|
|
|
47
47
|
let location_fo = locationContent?.data;
|
|
48
48
|
|
|
49
49
|
return location_fo ? (
|
|
50
|
-
<div className="card card-teaser shadow mt-3 rounded">
|
|
50
|
+
<div className="card card-teaser shadow border-left-card mt-3 rounded">
|
|
51
51
|
{show_icon && <Icon icon={'it-pin'} />}
|
|
52
52
|
<div className="card-body">
|
|
53
|
-
<
|
|
53
|
+
<div className="card-title h5">{location_fo.title}</div>
|
|
54
54
|
<div className="card-text">
|
|
55
55
|
{(location_fo.street || location_fo.zip_code) && (
|
|
56
56
|
<p>
|
|
@@ -6,7 +6,6 @@ export VenuesSmall from 'design-comuni-plone-theme/components/ItaliaTheme/View/C
|
|
|
6
6
|
export WideImage from 'design-comuni-plone-theme/components/ItaliaTheme/View/Commons/WideImage';
|
|
7
7
|
export SideMenu from 'design-comuni-plone-theme/components/ItaliaTheme/View/Commons/SideMenu';
|
|
8
8
|
export PageHeader from 'design-comuni-plone-theme/components/ItaliaTheme/View/Commons/PageHeader/PageHeader';
|
|
9
|
-
export RichTextArticle from 'design-comuni-plone-theme/components/ItaliaTheme/View/Commons/RichTextArticle';
|
|
10
9
|
export OfficeCard from 'design-comuni-plone-theme/components/ItaliaTheme/View/Commons/OfficeCard';
|
|
11
10
|
export Metadata from 'design-comuni-plone-theme/components/ItaliaTheme/View/Commons/Metadata';
|
|
12
11
|
export Sharing from 'design-comuni-plone-theme/components/ItaliaTheme/View/Commons/Sharing';
|
|
@@ -23,8 +23,9 @@ const DocumentoUlterioriInformazioni = ({ content }) => {
|
|
|
23
23
|
richTextHasContent(content?.riferimenti_normativi),
|
|
24
24
|
[content],
|
|
25
25
|
);
|
|
26
|
+
|
|
26
27
|
return (
|
|
27
|
-
<Metadata content={content} showSectionTitle={showSectionTitle}>
|
|
28
|
+
<Metadata content={content} showSectionTitle={showSectionTitle} title="">
|
|
28
29
|
{richTextHasContent(content?.ulteriori_informazioni) && (
|
|
29
30
|
<HelpBox text={content?.ulteriori_informazioni} />
|
|
30
31
|
)}
|
|
@@ -32,7 +33,9 @@ const DocumentoUlterioriInformazioni = ({ content }) => {
|
|
|
32
33
|
{/* RIFERIMENTI NORMATIVI */}
|
|
33
34
|
{richTextHasContent(content?.riferimenti_normativi) && (
|
|
34
35
|
<div className="mt-2">
|
|
35
|
-
<h5>
|
|
36
|
+
<h3 className="h5 mb-3">
|
|
37
|
+
{intl.formatMessage(messages.riferimenti_normativi)}
|
|
38
|
+
</h3>
|
|
36
39
|
<RichText serif={false} data={content.riferimenti_normativi} />
|
|
37
40
|
</div>
|
|
38
41
|
)}
|
|
@@ -72,7 +72,7 @@ const DocumentoView = ({ content, location }) => {
|
|
|
72
72
|
{/* HEADER IMAGE */}
|
|
73
73
|
<ContentImage content={content} position="afterHeader" />
|
|
74
74
|
|
|
75
|
-
<div className="row row-column-border row-column-menu-left">
|
|
75
|
+
<div className="row row-column-border border-light row-column-menu-left">
|
|
76
76
|
<aside className="col-lg-4">
|
|
77
77
|
{__CLIENT__ && (
|
|
78
78
|
<SideMenu data={sideMenuElements} content_uid={content?.UID} />
|
|
@@ -81,7 +81,7 @@ const DocumentoView = ({ content, location }) => {
|
|
|
81
81
|
<section
|
|
82
82
|
ref={documentBody}
|
|
83
83
|
id="main-content-section"
|
|
84
|
-
className="col-lg-8 it-page-sections-container"
|
|
84
|
+
className="col-lg-8 it-page-sections-container border-light"
|
|
85
85
|
>
|
|
86
86
|
{/* SEZIONI */}
|
|
87
87
|
<ContentTypeViewSections
|