design-comuni-plone-theme 12.7.1 → 12.7.3
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 +27 -0
- package/RELEASE.md +15 -0
- package/package.json +1 -1
- package/publiccode.yml +2 -2
- package/src/components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate.jsx +5 -1
- package/src/components/ItaliaTheme/View/Commons/GenericCard.jsx +6 -1
- package/src/components/ItaliaTheme/View/Commons/RelatedItems.jsx +1 -1
- package/src/customizations/volto-form-block/components/FormResult.jsx +16 -18
- package/src/theme/ItaliaTheme/Blocks/_iconBlocks.scss +1 -0
- package/src/theme/_cms-ui.scss +2 -1
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [12.7.3](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.7.2...v12.7.3) (2025-11-26)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* conditions to display form thankyou message ([#1047](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1047)) ([a76aba0](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a76aba05f49c15f92bf299a6247c1785a12499b5))
|
|
9
|
+
* force title color on icons block title ([#1045](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1045)) ([1a6dd7e](https://github.com/RedTurtle/design-comuni-plone-theme/commit/1a6dd7e58ddbe9f91fd27ed8baa7eaa09e161f93))
|
|
10
|
+
* generic card classes ([#1048](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1048)) ([9774b64](https://github.com/RedTurtle/design-comuni-plone-theme/commit/9774b644ee8b7422018238c680ad921025655ee4))
|
|
11
|
+
* used correct colors in bg-light class for cms-ui ([#1046](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1046)) ([2544e35](https://github.com/RedTurtle/design-comuni-plone-theme/commit/2544e35c080137d629a4e2ecad035ed0db654d34))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Documentation
|
|
15
|
+
|
|
16
|
+
* updated publiccode and release log ([e3d3914](https://github.com/RedTurtle/design-comuni-plone-theme/commit/e3d391471456d15a54f029a81b3dbad2cd7a76e0))
|
|
17
|
+
|
|
18
|
+
## [12.7.2](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.7.1...v12.7.2) (2025-11-21)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* check on token to allow display or download file in attachment card listing variation ([#1044](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1044)) ([adf38e8](https://github.com/RedTurtle/design-comuni-plone-theme/commit/adf38e8e69f3b683dd00d329dccf589bddb87058))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Documentation
|
|
27
|
+
|
|
28
|
+
* updated publiccode and release log ([4555780](https://github.com/RedTurtle/design-comuni-plone-theme/commit/4555780465fb8c1f6db7c2b977ee7d3adf8c2582))
|
|
29
|
+
|
|
3
30
|
## [12.7.1](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.7.0...v12.7.1) (2025-11-17)
|
|
4
31
|
|
|
5
32
|
|
package/RELEASE.md
CHANGED
|
@@ -41,6 +41,21 @@
|
|
|
41
41
|
- ...
|
|
42
42
|
-->
|
|
43
43
|
|
|
44
|
+
## Versione 12.7.3 (26/11/2025)
|
|
45
|
+
|
|
46
|
+
### Fix
|
|
47
|
+
|
|
48
|
+
- Il blocco "Blocchi con icone" mostra sempre il colore del titolo correttamente, sia in modalità modifica che in modalità visualizzazione.
|
|
49
|
+
- Lo sfondo del blocco elenco viene ora visualizzato nella variante colore corretta sia in modalità visualizzazione che in modalità modifica.
|
|
50
|
+
- Sistemata la visualizzazione del messaggio di ringraziamento dopo l'invio di un form.
|
|
51
|
+
- Sistemati alcuni problemi con gli stili relativi alle dimensioni dei font nelle card.
|
|
52
|
+
|
|
53
|
+
## Versione 12.7.2 (21/11/2025)
|
|
54
|
+
|
|
55
|
+
### Fix
|
|
56
|
+
|
|
57
|
+
- La variazione "Allegati" del blocco Elenco mostra ora la vista File quando un utente è autenticato, e presenta il comportamento richiesto (mostra anteprima PDF se l'opzione è selezionata e il file è un PDF, scarica il file se il file non è un PDF o l'opzione non è selezionata) se l'utente è anonimo.
|
|
58
|
+
|
|
44
59
|
## Versione 12.7.0 (12/11/2025)
|
|
45
60
|
|
|
46
61
|
### Novità
|
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: '2025-11-
|
|
230
|
+
releaseDate: '2025-11-26'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 12.7.
|
|
232
|
+
softwareVersion: 12.7.3
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
3
|
+
|
|
2
4
|
import PropTypes from 'prop-types';
|
|
3
5
|
import cx from 'classnames';
|
|
4
6
|
import { defineMessages, useIntl } from 'react-intl';
|
|
@@ -35,6 +37,8 @@ const AttachmentCardTemplate = ({
|
|
|
35
37
|
}) => {
|
|
36
38
|
const intl = useIntl();
|
|
37
39
|
|
|
40
|
+
const token = useSelector((state) => state.userSession?.token);
|
|
41
|
+
|
|
38
42
|
return (
|
|
39
43
|
<Container className="px-4 pt-3">
|
|
40
44
|
<div className="simple-card-compact-template">
|
|
@@ -53,6 +57,7 @@ const AttachmentCardTemplate = ({
|
|
|
53
57
|
let itemUrl = { ...item };
|
|
54
58
|
//la parte qui sotto commentata non serve perchè gestisce gia tutto UniversalLink e in view si vedrebbe /@@download/file duplicato nell url
|
|
55
59
|
if (
|
|
60
|
+
!token &&
|
|
56
61
|
item['@type'] === 'File' &&
|
|
57
62
|
item?.mime_type === 'application/pdf'
|
|
58
63
|
) {
|
|
@@ -88,7 +93,6 @@ const AttachmentCardTemplate = ({
|
|
|
88
93
|
item={!isEditMode ? itemUrl : null}
|
|
89
94
|
href={isEditMode ? '#' : null}
|
|
90
95
|
data-element={id_lighthouse}
|
|
91
|
-
download={!show_pdf_preview}
|
|
92
96
|
>
|
|
93
97
|
{item.title || item.id}
|
|
94
98
|
</UniversalLink>
|
|
@@ -55,7 +55,12 @@ const GenericCard = ({
|
|
|
55
55
|
|
|
56
56
|
return item ? (
|
|
57
57
|
showImage ? (
|
|
58
|
-
<div
|
|
58
|
+
<div
|
|
59
|
+
className={cx(
|
|
60
|
+
'genericcard card shadow rounded mt-3',
|
|
61
|
+
size === 'big' ? 'card-big-io-comune' : 'card-small',
|
|
62
|
+
)}
|
|
63
|
+
>
|
|
59
64
|
<div className="img-responsive-wrapper">
|
|
60
65
|
<div className="img-responsive img-responsive-panoramic">
|
|
61
66
|
<figure className="img-wrapper">
|
|
@@ -59,7 +59,6 @@ const FormResult = ({ formState, data, resetFormState }) => {
|
|
|
59
59
|
const intl = useIntl();
|
|
60
60
|
const displayThankYouInAlertMessageFormBlock =
|
|
61
61
|
config.settings.siteProperties.displayThankYouInAlertMessageFormBlock;
|
|
62
|
-
|
|
63
62
|
return (
|
|
64
63
|
<Alert
|
|
65
64
|
color={!formState.warning ? 'success' : 'warning'}
|
|
@@ -80,24 +79,23 @@ const FormResult = ({ formState, data, resetFormState }) => {
|
|
|
80
79
|
<p>{intl.formatMessage(messages.success_warning_description)}</p>
|
|
81
80
|
</>
|
|
82
81
|
)}
|
|
83
|
-
{/* Custom message */}
|
|
84
|
-
{(!formState.warning && data.send_message) ||
|
|
85
|
-
(formState.warning &&
|
|
86
|
-
displayThankYouInAlertMessageFormBlock &&
|
|
87
|
-
data.send_message && (
|
|
88
|
-
<>
|
|
89
|
-
<p
|
|
90
|
-
dangerouslySetInnerHTML={{
|
|
91
|
-
__html: replaceMessage(
|
|
92
|
-
data.send_message,
|
|
93
|
-
formState.result.data,
|
|
94
|
-
),
|
|
95
|
-
}}
|
|
96
|
-
/>
|
|
97
|
-
<br />
|
|
98
|
-
</>
|
|
99
|
-
))}
|
|
100
82
|
|
|
83
|
+
{/* Custom message */}
|
|
84
|
+
{data.send_message &&
|
|
85
|
+
(!formState.warning ||
|
|
86
|
+
(formState.warning && displayThankYouInAlertMessageFormBlock)) && (
|
|
87
|
+
<>
|
|
88
|
+
<p
|
|
89
|
+
dangerouslySetInnerHTML={{
|
|
90
|
+
__html: replaceMessage(
|
|
91
|
+
data.send_message,
|
|
92
|
+
formState.result.data,
|
|
93
|
+
),
|
|
94
|
+
}}
|
|
95
|
+
/>
|
|
96
|
+
<br />
|
|
97
|
+
</>
|
|
98
|
+
)}
|
|
101
99
|
<Button
|
|
102
100
|
color="primary"
|
|
103
101
|
outline
|
package/src/theme/_cms-ui.scss
CHANGED