Skip to content

Commit b3e4180

Browse files
committed
Merge branch 'main' into 69848-object-browser-list-status
2 parents f3c9ee5 + d607cc5 commit b3e4180

File tree

15 files changed

+109
-12
lines changed

15 files changed

+109
-12
lines changed

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# Changelog
22

3+
## [12.8.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.7.5...v12.8.0) (2025-12-29)
4+
5+
6+
### Features
7+
8+
* updated volto-form-block to have input type number ([#1052](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1052)) ([461a6a9](https://github.com/RedTurtle/design-comuni-plone-theme/commit/461a6a9c71768027e3a36389302ffcda194633f4))
9+
10+
11+
### Documentation
12+
13+
* updated publiccode and release log ([a554d41](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a554d41937aa0b373b3dce509ae4c1405a5a4dc3))
14+
15+
## [12.7.5](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.7.4...v12.7.5) (2025-12-23)
16+
17+
18+
### Bug Fixes
19+
20+
* initial block of Argomento CT ([#1053](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1053)) ([48e6d3c](https://github.com/RedTurtle/design-comuni-plone-theme/commit/48e6d3ce79ddd42c46b23172a70a52d98b038ddc))
21+
22+
23+
### Documentation
24+
25+
* updated publiccode and release log ([4678457](https://github.com/RedTurtle/design-comuni-plone-theme/commit/4678457faf0179d9da75e70e8adb164bee3546c4))
26+
27+
## [12.7.4](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.7.3...v12.7.4) (2025-12-15)
28+
29+
30+
### Bug Fixes
31+
32+
* bando type in bando cards ([#1051](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1051)) ([3c17fbb](https://github.com/RedTurtle/design-comuni-plone-theme/commit/3c17fbb002afc8d753a785314f2a7be286e9c81a))
33+
* hyphen and break word in card titles ([#1049](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1049)) ([4f94903](https://github.com/RedTurtle/design-comuni-plone-theme/commit/4f94903bbbc7683774eb9e772b4f853dc7cd7276))
34+
35+
36+
### Documentation
37+
38+
* updated publiccode and release log ([9f430f2](https://github.com/RedTurtle/design-comuni-plone-theme/commit/9f430f25b977aa58f3099ee6891cca3be9a1f62a))
39+
340
## [12.7.3](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.7.2...v12.7.3) (2025-11-26)
441

542

RELEASE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,24 @@
5454
### Fix
5555

5656
- ...
57+
## Versione 12.8.0 (29/12/2025)
58+
59+
### Novità
60+
61+
- Nel blocchi di tipo Form è ora possibile inserire campi di tipo Numero.
62+
63+
## Versione 12.7.5 (23/12/2025)
64+
65+
### Fix
66+
67+
- Il blocco di testo inserito automaticamente durante la creazione dei CT Argomento è ora basato su Slate anziché su DraftJS.
68+
69+
## Versione 12.7.4 (15/12/2025)
70+
71+
### Fix
72+
73+
- Ora i titoli molto lunghi e senza spazi nelle card vengono spezzati automaticamente con un trattino ("-") per evitare problemi di layout.
74+
- Le card del blocco elenco di tipo "Bandi" mostrano ora la tipologia bando correttamente.
5775

5876
## Versione 12.7.3 (26/11/2025)
5977

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "design-comuni-plone-theme",
33
"description": "Volto Theme for Italia design guidelines",
44
"license": "GPL-v3",
5-
"version": "12.7.3",
5+
"version": "12.8.0",
66
"main": "src/index.js",
77
"repository": {
88
"type": "git",
@@ -152,7 +152,7 @@
152152
"volto-dropdownmenu": "4.1.3",
153153
"volto-editablefooter": "5.1.7",
154154
"volto-feedback": "0.7.2",
155-
"volto-form-block": "3.14.0",
155+
"volto-form-block": "3.16.0",
156156
"volto-gdpr-privacy": "2.2.12",
157157
"volto-google-analytics": "2.0.0",
158158
"volto-multilingual-widget": "3.2.1",

publiccode.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ maintenance:
227227
name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
228228
platforms:
229229
- web
230-
releaseDate: '2025-11-26'
230+
releaseDate: '2025-12-29'
231231
softwareType: standalone/web
232-
softwareVersion: 12.7.3
232+
softwareVersion: 12.8.0
233233
url: 'https://github.com/italia/design-comuni-plone-theme'
234234
usedBy:
235235
- ASP Comuni Modenesi Area Nord

src/components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const BandiInEvidenceTemplate = ({
132132
{intl.formatMessage(messages.tipologia)}:
133133
</div>
134134
<span className="bando-dati-date">
135-
{item.tipologia_bando.title}
135+
{item.tipologia_bando_label}
136136
</span>
137137
</span>
138138
)}

src/components/ItaliaTheme/Blocks/Listing/SquaresImageTemplate.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ const SquaresImageTemplate = ({
4646
key={index}
4747
data-element={id_lighthouse}
4848
>
49-
<span className="title fw-bold">{item?.title}</span>
49+
<span className="title fw-bold" title={item?.title}>
50+
{item?.title.length > 56
51+
? `${item?.title.slice(0, 56)}…`
52+
: item?.title}
53+
</span>
5054
</UniversalLink>
5155
);
5256
})}

src/config/italiaConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ export default function applyConfig(voltoConfig) {
435435
{ id: 'search', title: 'Ricerca' },
436436
];
437437
const customInitialBlocks = {
438-
'Pagina Argomento': ['title', 'description', 'text'],
438+
'Pagina Argomento': ['title', 'description', 'slate'],
439439
'Bando Folder Deepening': ['title', 'description', 'listing'],
440440
};
441441
const customRequiredBlocks = ['description'];

src/customizations/volto-form-block/components/Field.jsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,24 @@ const Field = ({
140140
autoComplete={autocomplete}
141141
/>
142142
)}
143+
{field_type === 'number' && (
144+
<Input
145+
id={name}
146+
name={name}
147+
label={getLabel()}
148+
type="number"
149+
required={required}
150+
infoText={infoText}
151+
disabled={disabled}
152+
readOnly={disabled}
153+
invalid={isInvalid() ? 'true' : null}
154+
onChange={(e) => {
155+
onChange(name, e.target.value);
156+
}}
157+
value={value ?? ''}
158+
autoComplete={autocomplete}
159+
/>
160+
)}
143161
{field_type === 'select' && (
144162
<div className="form-group">
145163
<div

src/customizations/volto-form-block/fieldSchema.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ const messages = defineMessages({
7575
id: 'form_field_type_hidden',
7676
defaultMessage: 'Hidden',
7777
},
78+
field_type_number: {
79+
id: 'form_field_type_number',
80+
defaultMessage: 'Number',
81+
},
7882
field_unique_title: {
7983
id: 'field_unique_title',
8084
defaultMessage: 'Unique field',
@@ -284,6 +288,7 @@ export default (props) => {
284288
const baseFieldTypeChoices = [
285289
['text', intl.formatMessage(messages.field_type_text)],
286290
['textarea', intl.formatMessage(messages.field_type_textarea)],
291+
['number', intl.formatMessage(messages.field_type_number)],
287292
['select', intl.formatMessage(messages.field_type_select)],
288293
['single_choice', intl.formatMessage(messages.field_type_single_choice)],
289294
[

src/theme/ItaliaTheme/Blocks/_cardWithSlideUpTextTemplate.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
.title-link {
2929
text-decoration: none;
30+
word-break: break-word;
31+
hyphens: auto;
3032
}
3133

3234
.title {

0 commit comments

Comments
 (0)