design-comuni-plone-theme 11.32.0 → 11.32.1
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 +15 -0
- package/RELEASE.md +11 -0
- package/package.json +1 -1
- package/publiccode.yml +2 -2
- package/src/components/ItaliaTheme/Blocks/Common/SearchFilters/DateFilter.jsx +27 -2
- package/src/components/ItaliaTheme/Blocks/Listing/CardWithImage/CardWithImageDefault.jsx +2 -4
- package/src/theme/ItaliaTheme/Blocks/_completeBlockLinkstemplate.scss +5 -8
- package/src/theme/ItaliaTheme/Blocks/_listing.scss +18 -0
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [11.32.1](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.32.0...v11.32.1) (2025-08-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* added state to close the date picker modal after endDate loses focus (Tab exit) ([#981](https://github.com/RedTurtle/design-comuni-plone-theme/issues/981)) ([accf3d6](https://github.com/RedTurtle/design-comuni-plone-theme/commit/accf3d6dff277cef0b7693d4c663636e2ec1c098))
|
|
9
|
+
* contentHasImage function + showImage conditions ([#984](https://github.com/RedTurtle/design-comuni-plone-theme/issues/984)) ([bdb2901](https://github.com/RedTurtle/design-comuni-plone-theme/commit/bdb290101477fff8616498936cfc115a77b33cac))
|
|
10
|
+
* image in template "Blocco link completo" ([#971](https://github.com/RedTurtle/design-comuni-plone-theme/issues/971)) ([d5d9dc1](https://github.com/RedTurtle/design-comuni-plone-theme/commit/d5d9dc175e4d25b1f49976fbe2cfaf12d770fb92))
|
|
11
|
+
* improved link visibility on images within listing blocks ([#978](https://github.com/RedTurtle/design-comuni-plone-theme/issues/978)) ([c6e41af](https://github.com/RedTurtle/design-comuni-plone-theme/commit/c6e41af38911203b2487794a7e423921a33d51e6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Documentation
|
|
15
|
+
|
|
16
|
+
* updated publiccode and release log ([d478eb6](https://github.com/RedTurtle/design-comuni-plone-theme/commit/d478eb699e0ea75475be1d7de7120d48321873a4))
|
|
17
|
+
|
|
3
18
|
## [11.32.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.31.2...v11.32.0) (2025-07-31)
|
|
4
19
|
|
|
5
20
|
|
package/RELEASE.md
CHANGED
|
@@ -41,6 +41,17 @@
|
|
|
41
41
|
- ...
|
|
42
42
|
-->
|
|
43
43
|
|
|
44
|
+
## Versione 11.32.1 (22/08/2025)
|
|
45
|
+
|
|
46
|
+
### Fix
|
|
47
|
+
|
|
48
|
+
- Ripristinata la funzionalità per mostrare tutte le immagini del blocco elenco o solo quelle della prima fila, se presenti.
|
|
49
|
+
- Migliorata l'accessibilità rimuovendo la visibilità delle immagini di presentazione nei blocchi elenco.
|
|
50
|
+
- Sistemata la semantica dei titoli nei blocchi elenco migliorando così l'accessibilità della pagina.
|
|
51
|
+
- Sistemata la visualizzazione delle immagini all’interno della card del blocco Link completo quando sono in landscape.
|
|
52
|
+
- Ora il calendario si chiude automaticamente quando si passa al campo successivo dopo aver selezionato la data di fine, nei blocchi di ricerca dove è possibile indicare una data di inizio e fine.
|
|
53
|
+
- Migliorata la visualizzazione dei link sulle immagini nei blocchi elenco, rimosso testo non necessario con tipo e dimensione dei file.
|
|
54
|
+
|
|
44
55
|
## Versione 11.32.0 (31/07/2025)
|
|
45
56
|
|
|
46
57
|
### 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-
|
|
230
|
+
releaseDate: '2025-08-22'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 11.32.
|
|
232
|
+
softwareVersion: 11.32.1
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react';
|
|
1
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
2
2
|
import { useIntl, defineMessages } from 'react-intl';
|
|
3
3
|
import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
4
4
|
|
|
@@ -226,6 +226,31 @@ const DateFilter = (props) => {
|
|
|
226
226
|
}
|
|
227
227
|
}, []);
|
|
228
228
|
|
|
229
|
+
const endDateInputRef = useRef(null);
|
|
230
|
+
|
|
231
|
+
useEffect(() => {
|
|
232
|
+
const interval = setInterval(() => {
|
|
233
|
+
const endDateInput = document.querySelector(
|
|
234
|
+
`#end-date-filter-${blockID}`,
|
|
235
|
+
);
|
|
236
|
+
if (endDateInput && !endDateInputRef.current) {
|
|
237
|
+
endDateInputRef.current = endDateInput;
|
|
238
|
+
endDateInput.addEventListener('blur', handleEndDateBlur);
|
|
239
|
+
}
|
|
240
|
+
}, 100);
|
|
241
|
+
|
|
242
|
+
return () => {
|
|
243
|
+
clearInterval(interval);
|
|
244
|
+
if (endDateInputRef.current) {
|
|
245
|
+
endDateInputRef.current.removeEventListener('blur', handleEndDateBlur);
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
}, []);
|
|
249
|
+
|
|
250
|
+
const handleEndDateBlur = () => {
|
|
251
|
+
setFocusedDateInput(null);
|
|
252
|
+
};
|
|
253
|
+
|
|
229
254
|
return (
|
|
230
255
|
<div className="me-lg-3 my-2 my-lg-1 filter-wrapper date-filter">
|
|
231
256
|
<DateRangePicker
|
|
@@ -264,7 +289,7 @@ const DateFilter = (props) => {
|
|
|
264
289
|
customCloseIcon={
|
|
265
290
|
<Icon
|
|
266
291
|
icon="it-close"
|
|
267
|
-
color="
|
|
292
|
+
color="black"
|
|
268
293
|
title={intl.formatMessage(messages.clearDates)}
|
|
269
294
|
/>
|
|
270
295
|
}
|
|
@@ -62,10 +62,8 @@ const CardWithImageDefault = (props) => {
|
|
|
62
62
|
: getEventRecurrenceMore(item, isEditMode);
|
|
63
63
|
const listingText = show_description ? <ListingText item={item} /> : null;
|
|
64
64
|
|
|
65
|
-
const showImage =
|
|
66
|
-
item
|
|
67
|
-
index < imagesToShow || always_show_image,
|
|
68
|
-
);
|
|
65
|
+
const showImage =
|
|
66
|
+
contentHasImage(item) && (index < imagesToShow || always_show_image);
|
|
69
67
|
const category = getCategory(item, show_type, show_section, props);
|
|
70
68
|
const topics = show_topics ? item.tassonomia_argomenti : null;
|
|
71
69
|
|
|
@@ -17,14 +17,6 @@
|
|
|
17
17
|
margin: 18px 0px 0px 18px;
|
|
18
18
|
|
|
19
19
|
background-color: $white;
|
|
20
|
-
|
|
21
|
-
.volto-image {
|
|
22
|
-
img {
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 100%;
|
|
25
|
-
object-fit: cover;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
20
|
}
|
|
29
21
|
|
|
30
22
|
.card.card-bg {
|
|
@@ -52,4 +44,9 @@
|
|
|
52
44
|
.no-external-if-link > .external-link {
|
|
53
45
|
display: none;
|
|
54
46
|
}
|
|
47
|
+
|
|
48
|
+
img.responsive {
|
|
49
|
+
height: 100%;
|
|
50
|
+
object-fit: cover;
|
|
51
|
+
}
|
|
55
52
|
}
|
|
@@ -30,4 +30,22 @@
|
|
|
30
30
|
padding-bottom: 15px;
|
|
31
31
|
border-bottom: 1px solid #455b71;
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
//* customizzazione: nascondere enhance-link quando è un'immagine
|
|
35
|
+
.card-with-image-template,
|
|
36
|
+
.in-evidence,
|
|
37
|
+
.contentInEvidenceTemplate,
|
|
38
|
+
.list-template {
|
|
39
|
+
.img-responsive-wrapper {
|
|
40
|
+
.enhance-link {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
.small-block-links,
|
|
46
|
+
.contentInEvidenceTemplate {
|
|
47
|
+
.enhance-link {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
33
51
|
}
|