design-comuni-plone-theme 11.10.2 → 11.11.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/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +18 -0
- package/RELEASE.md +14 -0
- package/locales/de/LC_MESSAGES/volto.po +5 -0
- package/locales/en/LC_MESSAGES/volto.po +5 -0
- package/locales/es/LC_MESSAGES/volto.po +5 -0
- package/locales/fr/LC_MESSAGES/volto.po +5 -0
- package/locales/it/LC_MESSAGES/volto.po +5 -0
- package/locales/volto.pot +6 -1
- package/package.json +1 -1
- package/publiccode.yml +2 -2
- package/src/components/ItaliaTheme/Blocks/Listing/Commons/CardCalendar.jsx +1 -1
- package/src/components/ItaliaTheme/View/Commons/Events.jsx +25 -27
- package/src/components/ItaliaTheme/View/PersonaView/PersonaDocumenti.jsx +20 -0
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [11.11.0](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.10.2...v11.11.0) (2024-04-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* modificato vista persona per mostrare anche la cartella altri allegati ([#668](https://github.com/redturtle/design-comuni-plone-theme/issues/668)) ([eb47ca0](https://github.com/redturtle/design-comuni-plone-theme/commit/eb47ca02152abf351697dac58dc2704a17a7ba57))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add event start date for subevents that do not have an image ([#667](https://github.com/redturtle/design-comuni-plone-theme/issues/667)) ([0426435](https://github.com/redturtle/design-comuni-plone-theme/commit/04264359589c05d1617fdb060aa716f9e7cab57c))
|
|
14
|
+
* added conditional chaining in cardCalendar ([#669](https://github.com/redturtle/design-comuni-plone-theme/issues/669)) ([a8dacc8](https://github.com/redturtle/design-comuni-plone-theme/commit/a8dacc8049c09b8f0742ee4c1904597610331ec7))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Documentation
|
|
18
|
+
|
|
19
|
+
* updated publiccode and release log ([1a61edf](https://github.com/redturtle/design-comuni-plone-theme/commit/1a61edf4ad4fd22b906ca012fa9c2f4f26ad2640))
|
|
20
|
+
|
|
3
21
|
## [11.10.2](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.10.1...v11.10.2) (2024-04-24)
|
|
4
22
|
|
|
5
23
|
|
package/RELEASE.md
CHANGED
|
@@ -41,6 +41,20 @@
|
|
|
41
41
|
- ...
|
|
42
42
|
-->
|
|
43
43
|
|
|
44
|
+
# Versione 11.11.0 (29/04/2024)
|
|
45
|
+
|
|
46
|
+
### Migliorie
|
|
47
|
+
|
|
48
|
+
- Aggiunte le date degli eventi figli nel caso questi non presentino immagini nella card.
|
|
49
|
+
|
|
50
|
+
### Novità
|
|
51
|
+
|
|
52
|
+
- Modificato vista del tipo di contenuto Persona per mostrare anche la cartella interna "Altri allegati".
|
|
53
|
+
|
|
54
|
+
### Fix
|
|
55
|
+
|
|
56
|
+
- Aggiustato problema per il blocco elenco, variazione card con Immagine, per gli eventi con ricorrenza.
|
|
57
|
+
|
|
44
58
|
## Versione 11.10.0 (17/04/2024)
|
|
45
59
|
|
|
46
60
|
### Migliorie
|
|
@@ -792,6 +792,11 @@ msgstr ""
|
|
|
792
792
|
msgid "altre_modalita_invio"
|
|
793
793
|
msgstr ""
|
|
794
794
|
|
|
795
|
+
#: components/ItaliaTheme/View/PersonaView/PersonaDocumenti
|
|
796
|
+
# defaultMessage: Altri allegati
|
|
797
|
+
msgid "altri_allegati"
|
|
798
|
+
msgstr ""
|
|
799
|
+
|
|
795
800
|
#: components/ItaliaTheme/View/ServizioView/ServizioAltriDocumenti
|
|
796
801
|
# defaultMessage: Documenti
|
|
797
802
|
msgid "altri_documenti"
|
|
@@ -777,6 +777,11 @@ msgstr "Other positions"
|
|
|
777
777
|
msgid "altre_modalita_invio"
|
|
778
778
|
msgstr ""
|
|
779
779
|
|
|
780
|
+
#: components/ItaliaTheme/View/PersonaView/PersonaDocumenti
|
|
781
|
+
# defaultMessage: Altri allegati
|
|
782
|
+
msgid "altri_allegati"
|
|
783
|
+
msgstr "Other attachments"
|
|
784
|
+
|
|
780
785
|
#: components/ItaliaTheme/View/ServizioView/ServizioAltriDocumenti
|
|
781
786
|
# defaultMessage: Documenti
|
|
782
787
|
msgid "altri_documenti"
|
|
@@ -786,6 +786,11 @@ msgstr "Otras posiciones"
|
|
|
786
786
|
msgid "altre_modalita_invio"
|
|
787
787
|
msgstr "Otros métodos de envío"
|
|
788
788
|
|
|
789
|
+
#: components/ItaliaTheme/View/PersonaView/PersonaDocumenti
|
|
790
|
+
# defaultMessage: Altri allegati
|
|
791
|
+
msgid "altri_allegati"
|
|
792
|
+
msgstr ""
|
|
793
|
+
|
|
789
794
|
#: components/ItaliaTheme/View/ServizioView/ServizioAltriDocumenti
|
|
790
795
|
# defaultMessage: Documenti
|
|
791
796
|
msgid "altri_documenti"
|
|
@@ -794,6 +794,11 @@ msgstr "Autres bureaux"
|
|
|
794
794
|
msgid "altre_modalita_invio"
|
|
795
795
|
msgstr ""
|
|
796
796
|
|
|
797
|
+
#: components/ItaliaTheme/View/PersonaView/PersonaDocumenti
|
|
798
|
+
# defaultMessage: Altri allegati
|
|
799
|
+
msgid "altri_allegati"
|
|
800
|
+
msgstr ""
|
|
801
|
+
|
|
797
802
|
#: components/ItaliaTheme/View/ServizioView/ServizioAltriDocumenti
|
|
798
803
|
# defaultMessage: Documenti
|
|
799
804
|
msgid "altri_documenti"
|
|
@@ -777,6 +777,11 @@ msgstr "Altre cariche"
|
|
|
777
777
|
msgid "altre_modalita_invio"
|
|
778
778
|
msgstr "Altre modalità di invio"
|
|
779
779
|
|
|
780
|
+
#: components/ItaliaTheme/View/PersonaView/PersonaDocumenti
|
|
781
|
+
# defaultMessage: Altri allegati
|
|
782
|
+
msgid "altri_allegati"
|
|
783
|
+
msgstr "Altri allegati"
|
|
784
|
+
|
|
780
785
|
#: components/ItaliaTheme/View/ServizioView/ServizioAltriDocumenti
|
|
781
786
|
# defaultMessage: Documenti
|
|
782
787
|
msgid "altri_documenti"
|
package/locales/volto.pot
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
msgid ""
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Plone\n"
|
|
4
|
-
"POT-Creation-Date: 2024-04-
|
|
4
|
+
"POT-Creation-Date: 2024-04-24T09:25:12.565Z\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
7
|
"MIME-Version: 1.0\n"
|
|
@@ -779,6 +779,11 @@ msgstr ""
|
|
|
779
779
|
msgid "altre_modalita_invio"
|
|
780
780
|
msgstr ""
|
|
781
781
|
|
|
782
|
+
#: components/ItaliaTheme/View/PersonaView/PersonaDocumenti
|
|
783
|
+
# defaultMessage: Altri allegati
|
|
784
|
+
msgid "altri_allegati"
|
|
785
|
+
msgstr ""
|
|
786
|
+
|
|
782
787
|
#: components/ItaliaTheme/View/ServizioView/ServizioAltriDocumenti
|
|
783
788
|
# defaultMessage: Documenti
|
|
784
789
|
msgid "altri_documenti"
|
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: '2024-04-
|
|
230
|
+
releaseDate: '2024-04-29'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 11.
|
|
232
|
+
softwareVersion: 11.11.0
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -84,7 +84,7 @@ export const CardCalendar = ({ start, end, recurrence, rrule }) => {
|
|
|
84
84
|
} else if (recurrenceDates) {
|
|
85
85
|
let dateFormat = 'DD/MM';
|
|
86
86
|
if (
|
|
87
|
-
!recurrenceDates?.recurrenceStart
|
|
87
|
+
!recurrenceDates?.recurrenceStart?.isSame(
|
|
88
88
|
recurrenceDates?.recurrenceEnd,
|
|
89
89
|
'year',
|
|
90
90
|
)
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import { defineMessages, useIntl } from 'react-intl';
|
|
3
|
-
import {
|
|
4
|
-
Card,
|
|
5
|
-
CardBody,
|
|
6
|
-
CardReadMore,
|
|
7
|
-
CardText,
|
|
8
|
-
CardTitle,
|
|
9
|
-
} from 'design-react-kit';
|
|
3
|
+
import { Card, CardBody, CardReadMore, CardTitle } from 'design-react-kit';
|
|
10
4
|
import config from '@plone/volto/registry';
|
|
11
5
|
import { UniversalLink } from '@plone/volto/components';
|
|
12
6
|
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
@@ -31,30 +25,35 @@ const messages = defineMessages({
|
|
|
31
25
|
const SubEvent = ({ event, show_image }) => {
|
|
32
26
|
const intl = useIntl();
|
|
33
27
|
const Image = config.getComponent({ name: 'Image' }).component;
|
|
28
|
+
const hasImage = event.image_field || event.preview_image || event.image;
|
|
34
29
|
return event ? (
|
|
35
30
|
<div className="card-wrapper card-teaser">
|
|
36
31
|
<Card noWrapper className="card no-after shadow rounded">
|
|
37
|
-
{show_image &&
|
|
38
|
-
|
|
39
|
-
<div className="img-responsive
|
|
40
|
-
<
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
)}
|
|
54
|
-
</div>
|
|
32
|
+
{show_image && hasImage && (
|
|
33
|
+
<div className="img-responsive-wrapper">
|
|
34
|
+
<div className="img-responsive">
|
|
35
|
+
<figure class="volto-image img-wrapper responsive">
|
|
36
|
+
<Image
|
|
37
|
+
item={event}
|
|
38
|
+
alt={intl.formatMessage(messages.immagine)}
|
|
39
|
+
loading="lazy"
|
|
40
|
+
sizes="(max-width:320px) 300px, (max-width:425px) 400px, (max-width:768px) 600px, 300px"
|
|
41
|
+
/>
|
|
42
|
+
</figure>
|
|
43
|
+
{event.start && (
|
|
44
|
+
<div className="card-calendar d-flex flex-column justify-content-center">
|
|
45
|
+
{viewDate(intl.locale, event.start, 'DD MMM')}
|
|
46
|
+
</div>
|
|
47
|
+
)}
|
|
55
48
|
</div>
|
|
56
|
-
|
|
49
|
+
</div>
|
|
50
|
+
)}
|
|
57
51
|
<CardBody>
|
|
52
|
+
{event.start && (!show_image || (show_image && !hasImage)) && (
|
|
53
|
+
<div className="category-top mb-2">
|
|
54
|
+
{viewDate(intl.locale, event.start, 'DD MMM YYYY')}
|
|
55
|
+
</div>
|
|
56
|
+
)}
|
|
58
57
|
<CardTitle className="h5">
|
|
59
58
|
<UniversalLink
|
|
60
59
|
href={flattenToAppURL(event['@id'])}
|
|
@@ -64,7 +63,6 @@ const SubEvent = ({ event, show_image }) => {
|
|
|
64
63
|
{event.title}
|
|
65
64
|
</UniversalLink>
|
|
66
65
|
</CardTitle>
|
|
67
|
-
<CardText> </CardText>
|
|
68
66
|
<CardReadMore
|
|
69
67
|
iconName="it-arrow-right"
|
|
70
68
|
tag={UniversalLink}
|
|
@@ -43,10 +43,16 @@ const messages = defineMessages({
|
|
|
43
43
|
id: 'spese_elettorali',
|
|
44
44
|
defaultMessage: 'Spese elettorali',
|
|
45
45
|
},
|
|
46
|
+
|
|
46
47
|
variazione_situazione_patrimoniale: {
|
|
47
48
|
id: 'variazione_situazione_patrimoniale',
|
|
48
49
|
defaultMessage: 'Variazione situazione patrimoniale',
|
|
49
50
|
},
|
|
51
|
+
|
|
52
|
+
altri_allegati: {
|
|
53
|
+
id: 'altri_allegati',
|
|
54
|
+
defaultMessage: 'Altri allegati',
|
|
55
|
+
},
|
|
50
56
|
});
|
|
51
57
|
|
|
52
58
|
const PersonaDocumenti = ({ content }) => {
|
|
@@ -186,6 +192,20 @@ const PersonaDocumenti = ({ content }) => {
|
|
|
186
192
|
/>
|
|
187
193
|
</RichTextSection>
|
|
188
194
|
)}
|
|
195
|
+
{contentFolderHasItems(content, 'altri-allegati') && (
|
|
196
|
+
<RichTextSection
|
|
197
|
+
tag_id="documenti-altri-allegati"
|
|
198
|
+
title={intl.formatMessage(messages.altri_allegati)}
|
|
199
|
+
>
|
|
200
|
+
<Attachments
|
|
201
|
+
content={content}
|
|
202
|
+
folder_name={'altri-allegati'}
|
|
203
|
+
// title={intl.formatMessage(messages.altri_allegati)}
|
|
204
|
+
as_section={false}
|
|
205
|
+
/>
|
|
206
|
+
</RichTextSection>
|
|
207
|
+
)}
|
|
208
|
+
|
|
189
209
|
</>
|
|
190
210
|
);
|
|
191
211
|
};
|