design-comuni-plone-theme 11.28.0 → 11.29.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.
Binary file
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
 
2
2
 
3
+ ## [11.29.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.28.0...v11.29.0) (2025-03-07)
4
+
5
+
6
+ ### Features
7
+
8
+ * added placeholder PagePlaceholderHeaderEnd in PageView ([#903](https://github.com/RedTurtle/design-comuni-plone-theme/issues/903)) ([dd89da5](https://github.com/RedTurtle/design-comuni-plone-theme/commit/dd89da5653dfb22c1fc7d59446b75d0292d6b6c4))
9
+ * allow ct document to contains also File content types and show as a Modulo content type; editors request to handle file cut/paste into ct documento ([#909](https://github.com/RedTurtle/design-comuni-plone-theme/issues/909)) ([71c0f91](https://github.com/RedTurtle/design-comuni-plone-theme/commit/71c0f91e730cabb1e3e9197c93e82e8d1338a73f))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * a11y bando and events timeline ([#906](https://github.com/RedTurtle/design-comuni-plone-theme/issues/906)) ([c8ea5f0](https://github.com/RedTurtle/design-comuni-plone-theme/commit/c8ea5f004b011f5031faabc3a779e45f3b0808ff))
15
+ * **a11y:** changed display mode of homepage and subsite title([#905](https://github.com/RedTurtle/design-comuni-plone-theme/issues/905)) ([48f6db1](https://github.com/RedTurtle/design-comuni-plone-theme/commit/48f6db19f5c1d7a861d6daa397ce0f2212f472c8))
16
+ * changed homepage h1 from display none to visually hidden ([#904](https://github.com/RedTurtle/design-comuni-plone-theme/issues/904)) ([af0e49b](https://github.com/RedTurtle/design-comuni-plone-theme/commit/af0e49b40e5702d92ed8b5ea96fcbb9dd9bb0eda))
17
+ * no toggle accordion on clicking inside links ([#908](https://github.com/RedTurtle/design-comuni-plone-theme/issues/908)) ([23f6857](https://github.com/RedTurtle/design-comuni-plone-theme/commit/23f68575fa7aa960ab2ef9930dda2d57db036576))
18
+ * styles for listing blocks inside grid block on mobile ([#901](https://github.com/RedTurtle/design-comuni-plone-theme/issues/901)) ([59fc1b5](https://github.com/RedTurtle/design-comuni-plone-theme/commit/59fc1b51ec9c5f158b09c11e748983352471b552))
19
+
20
+
21
+ ### Documentation
22
+
23
+ * updated publiccode and release log ([dfbc39c](https://github.com/RedTurtle/design-comuni-plone-theme/commit/dfbc39cc0d72d73db6b40226e9104467bc6b01fc))
24
+
25
+
26
+ ### Maintenance
27
+
28
+ * fix lockfile ([2c96be2](https://github.com/RedTurtle/design-comuni-plone-theme/commit/2c96be2e9ee691f287d6c66612bb0f32fc9703cf))
29
+ * volto-feedback 0.6.1 ([#902](https://github.com/RedTurtle/design-comuni-plone-theme/issues/902)) ([c69eb91](https://github.com/RedTurtle/design-comuni-plone-theme/commit/c69eb91a05847e6d0676c2bcb0f606768b85815e))
30
+
3
31
  ## [11.28.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.27.0...v11.28.0) (2025-03-04)
4
32
 
5
33
 
package/RELEASE.md CHANGED
@@ -41,6 +41,22 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 11.29.0 (07/03/2025)
45
+
46
+ ### Migliorie
47
+
48
+ - Nel CT Documento ora è possibile gestire anche il CT File tramite taglia/incolla, laddove serva spostare dei File dentro uno specifico documento.
49
+ - Correzione del testo visualizzato sul pulsante "Cancella tutti i commenti" per la Customer Satisfaction, migliorando la leggibilità e conformità.
50
+ - Migliorata l'accessibilità per il widget dei campi di tipo Slate che salvano i dati in formato HTML.
51
+ - Migliorata l'accessibilità per gli elementi di tipo blockquote.
52
+ - Migliorata la lettura delle timeline di date nel dettaglio di Bando e Evento.
53
+
54
+ ### Fix
55
+
56
+ - Sistemata la visualizzazione su mobile dei blocchi elenco inseriti all'interno dei blocchi griglia.
57
+ - Il titolo della homepage del sito è ora accessibile.
58
+ - Risolto un problema con i link all'interno dei blocchi Accordion.
59
+
44
60
  ## Versione 11.28.0 (04/03/2025)
45
61
 
46
62
  ### Migliorie
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "design-comuni-plone-theme",
3
3
  "description": "Volto Theme for Italia design guidelines",
4
4
  "license": "GPL-v3",
5
- "version": "11.28.0",
5
+ "version": "11.29.0",
6
6
  "main": "src/index.js",
7
7
  "repository": {
8
8
  "type": "git",
@@ -151,7 +151,7 @@
151
151
  "volto-data-grid-widget": "2.3.1",
152
152
  "volto-dropdownmenu": "4.1.3",
153
153
  "volto-editablefooter": "5.1.7",
154
- "volto-feedback": "0.6.0",
154
+ "volto-feedback": "0.6.1",
155
155
  "volto-form-block": "3.10.0",
156
156
  "volto-gdpr-privacy": "2.2.12",
157
157
  "volto-google-analytics": "2.0.0",
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-03-04'
230
+ releaseDate: '2025-03-07'
231
231
  softwareType: standalone/web
232
- softwareVersion: 11.28.0
232
+ softwareVersion: 11.29.0
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -72,7 +72,7 @@ const ViewBlock = ({ data, isOpen, toggle, id, index }) => {
72
72
  aria-labelledby={`${id}-${index}`}
73
73
  hidden={!isOpen}
74
74
  >
75
- <div className="accordion-inner" onFocus={toggle()}>
75
+ <div className="accordion-inner">
76
76
  {redraft(
77
77
  data.text,
78
78
  config.settings.richtextViewSettings.ToHTMLRenderers,
@@ -57,18 +57,31 @@ const BandoDates = ({ content }) => {
57
57
  ? viewDate(intl.locale, content.chiusura_procedimento_bando)
58
58
  : null;
59
59
 
60
+ const PointListDate = ({ date }) => {
61
+ return (
62
+ <div
63
+ className="point-list-aside point-list-warning"
64
+ aria-label={date.format('DD MMMM Y')}
65
+ >
66
+ <span className="point-date font-monospace" aria-hidden="true">
67
+ {date.format('DD')}
68
+ </span>
69
+ <span className="point-month" aria-hidden="true">
70
+ {date.format('MMMM')}
71
+ </span>
72
+ <span className="point-month" aria-hidden="true">
73
+ {date.format('Y')}
74
+ </span>
75
+ </div>
76
+ );
77
+ };
60
78
  return content ? (
61
79
  <>
62
80
  <div className="point-list-wrapper my-4 mb-5">
63
81
  {effective && (
64
82
  <div className="point-list">
65
- <div className="point-list-aside point-list-warning">
66
- <span className="point-date font-monospace">
67
- {effective.format('DD')}
68
- </span>
69
- <span className="point-month">{effective.format('MMMM')}</span>
70
- <span className="point-month">{effective.format('Y')}</span>
71
- </div>
83
+ <PointListDate date={effective} />
84
+
72
85
  <div className="point-list-content">
73
86
  <Card
74
87
  className="card card-teaser rounded shadow border-left-card"
@@ -87,15 +100,8 @@ const BandoDates = ({ content }) => {
87
100
 
88
101
  {apertura_bando && (
89
102
  <div className="point-list">
90
- <div className="point-list-aside point-list-warning">
91
- <span className="point-date font-monospace">
92
- {apertura_bando.format('DD')}
93
- </span>
94
- <span className="point-month">
95
- {apertura_bando.format('MMMM')}
96
- </span>
97
- <span className="point-month">{apertura_bando.format('Y')}</span>
98
- </div>
103
+ <PointListDate date={apertura_bando} />
104
+
99
105
  <div className="point-list-content">
100
106
  <Card
101
107
  className="card card-teaser rounded shadow border-left-card"
@@ -115,17 +121,8 @@ const BandoDates = ({ content }) => {
115
121
 
116
122
  {scadenza_domande_bando && (
117
123
  <div className="point-list">
118
- <div className="point-list-aside point-list-warning">
119
- <span className="point-date font-monospace">
120
- {scadenza_domande_bando.format('DD')}
121
- </span>
122
- <span className="point-month">
123
- {scadenza_domande_bando.format('MMMM')}
124
- </span>
125
- <span className="point-month">
126
- {scadenza_domande_bando.format('Y')}
127
- </span>
128
- </div>
124
+ <PointListDate date={scadenza_domande_bando} />
125
+
129
126
  <div className="point-list-content">
130
127
  <Card
131
128
  className="card card-teaser rounded shadow border-left-card"
@@ -145,15 +142,7 @@ const BandoDates = ({ content }) => {
145
142
 
146
143
  {scadenza_bando && (
147
144
  <div className="point-list">
148
- <div className="point-list-aside point-list-warning">
149
- <span className="point-date font-monospace">
150
- {scadenza_bando.format('DD')}
151
- </span>
152
- <span className="point-month">
153
- {scadenza_bando.format('MMMM')}
154
- </span>
155
- <span className="point-month">{scadenza_bando.format('Y')}</span>
156
- </div>
145
+ <PointListDate date={scadenza_bando} />
157
146
  <div className="point-list-content">
158
147
  <Card
159
148
  className="card card-teaser rounded shadow border-left-card"
@@ -173,17 +162,8 @@ const BandoDates = ({ content }) => {
173
162
 
174
163
  {chiusura_procedimento_bando && (
175
164
  <div className="point-list">
176
- <div className="point-list-aside point-list-warning">
177
- <span className="point-date font-monospace">
178
- {chiusura_procedimento_bando.format('DD')}
179
- </span>
180
- <span className="point-month">
181
- {chiusura_procedimento_bando.format('MMMM')}
182
- </span>
183
- <span className="point-month">
184
- {chiusura_procedimento_bando.format('Y')}
185
- </span>
186
- </div>
165
+ <PointListDate date={chiusura_procedimento_bando} />
166
+
187
167
  <div className="point-list-content">
188
168
  <Card
189
169
  className="card card-teaser rounded shadow border-left-card"
@@ -100,13 +100,20 @@ const Dates = ({ content, show_image, moment: momentlib, rrule }) => {
100
100
  <>
101
101
  <div className="point-list-wrapper my-4 mb-5">
102
102
  <div className="point-list">
103
- <div className="point-list-aside point-list-warning">
104
- <span className="point-date font-monospace">
103
+ <div
104
+ className="point-list-aside point-list-warning"
105
+ aria-label={start.format('DD MMMM Y')}
106
+ >
107
+ <span className="point-date font-monospace" aria-hidden={true}>
105
108
  {start.format('DD')}
106
109
  </span>
107
- <span className="point-month">{start.format('MMMM')}</span>
110
+ <span className="point-month" aria-hidden={true}>
111
+ {start.format('MMMM')}
112
+ </span>
108
113
  {!start.isSame(end, 'year') && (
109
- <span className="point-month">{start.format('YYYY')}</span>
114
+ <span className="point-month" aria-hidden={true}>
115
+ {start.format('YYYY')}
116
+ </span>
110
117
  )}
111
118
  </div>
112
119
  <div className="point-list-content">
@@ -131,13 +138,20 @@ const Dates = ({ content, show_image, moment: momentlib, rrule }) => {
131
138
  </div>
132
139
  {!openEnd && (
133
140
  <div className="point-list">
134
- <div className="point-list-aside point-list-warning">
135
- <span className="point-date font-monospace">
141
+ <div
142
+ className="point-list-aside point-list-warning"
143
+ aria-label={end.format('DD MMMM Y')}
144
+ >
145
+ <span className="point-date font-monospace" aria-hidden={true}>
136
146
  {end?.format('DD')}
137
147
  </span>
138
- <span className="point-month">{end?.format('MMMM')}</span>
148
+ <span className="point-month" aria-hidden={true}>
149
+ {end?.format('MMMM')}
150
+ </span>
139
151
  {!end?.isSame(start, 'year') && (
140
- <span className="point-month">{end?.format('YYYY')}</span>
152
+ <span className="point-month" aria-hidden={true}>
153
+ {end?.format('YYYY')}
154
+ </span>
141
155
  )}
142
156
  </div>
143
157
  <div className="point-list-content">
@@ -39,6 +39,13 @@ const Module = ({ item }) => {
39
39
 
40
40
  {item.description && <p>{item.description}</p>}
41
41
  <div className="download-formats">
42
+ <DownloadFileFormat
43
+ file={item.file}
44
+ showLabel={true}
45
+ title={item.title ?? item.file.filename}
46
+ hideFileFormatLabel={true}
47
+ className="mb-4"
48
+ />
42
49
  <DownloadFileFormat
43
50
  file={item.file_principale}
44
51
  showLabel={true}
@@ -11,6 +11,7 @@ import {
11
11
  PagePlaceholderAfterContent,
12
12
  PagePlaceholderAfterRelatedItems,
13
13
  PagePlaceholderTitle,
14
+ PagePlaceholderHeaderEnd,
14
15
  TextOrBlocks,
15
16
  RichText,
16
17
  RelatedItemInEvidence,
@@ -76,6 +77,7 @@ const PageView = ({ content, token, location, history }) => {
76
77
  </PagePlaceholderTitle>
77
78
 
78
79
  <p className="description">{content?.description}</p>
80
+
79
81
  {content?.ricerca_in_testata && (
80
82
  <SearchSectionForm content={content} />
81
83
  )}
@@ -118,6 +120,7 @@ const PageView = ({ content, token, location, history }) => {
118
120
  </div>
119
121
  )}
120
122
  </div>
123
+ <PagePlaceholderHeaderEnd content={content} />
121
124
  </div>
122
125
 
123
126
  <TextOrBlocks content={content} />
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+
3
+ const HeaderEnd = ({ content }) => {
4
+ return <></>;
5
+ };
6
+ export default HeaderEnd;
@@ -138,6 +138,7 @@ export NewsItemMetadata from 'design-comuni-plone-theme/components/ItaliaTheme/V
138
138
  export PagePlaceholderAfterContent from 'design-comuni-plone-theme/components/ItaliaTheme/View/PageView/Placeholder/AfterContent';
139
139
  export PagePlaceholderAfterRelatedItems from 'design-comuni-plone-theme/components/ItaliaTheme/View/PageView/Placeholder/AfterRelatedItems';
140
140
  export PagePlaceholderTitle from 'design-comuni-plone-theme/components/ItaliaTheme/View/PageView/Placeholder/Title';
141
+ export PagePlaceholderHeaderEnd from 'design-comuni-plone-theme/components/ItaliaTheme/View/PageView/Placeholder/HeaderEnd';
141
142
  export PaginaArgomentoPlaceholderAfterContent from 'design-comuni-plone-theme/components/ItaliaTheme/View/PaginaArgomentoView/Placeholder/AfterContent';
142
143
  export PaginaArgomentoPlaceholderAfterRelatedItems from 'design-comuni-plone-theme/components/ItaliaTheme/View/PaginaArgomentoView/Placeholder/AfterRelatedItems';
143
144
  export PaginaArgomentoViewNoBlocks from 'design-comuni-plone-theme/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoViewNoBlocks';
@@ -19,36 +19,38 @@
19
19
  width: auto !important;
20
20
  }
21
21
 
22
- &.listing {
23
- &.simpleCard,
24
- &.attachmentCardTemplate {
25
- .card-teaser-block-3 {
26
- > .card-teaser {
27
- flex: 0 0 49%; //invece di 3 elementi per riga, ne mostro due perchè c'è poco spazio
22
+ @media (min-width: #{map-get($grid-breakpoints, md)}) {
23
+ &.listing {
24
+ &.simpleCard,
25
+ &.attachmentCardTemplate {
26
+ .card-teaser-block-3 {
27
+ > .card-teaser {
28
+ flex: 0 0 49%; //invece di 3 elementi per riga, ne mostro due perchè c'è poco spazio
29
+ }
28
30
  }
29
31
  }
30
- }
31
32
 
32
- &.cardWithImageTemplate,
33
- &.ribbonCardTemplate,
34
- &.completeBlockLinksTemplate {
35
- .col-lg-4,
36
- .col-xl-4,
37
- .col-lg-3 {
38
- width: 50%; //invece di 3 elementi per riga, ne mostro due perchè c'è poco spazio
33
+ &.cardWithImageTemplate,
34
+ &.ribbonCardTemplate,
35
+ &.completeBlockLinksTemplate {
36
+ .col-lg-4,
37
+ .col-xl-4,
38
+ .col-lg-3 {
39
+ width: 50%; //invece di 3 elementi per riga, ne mostro due perchè c'è poco spazio
40
+ }
39
41
  }
40
- }
41
42
 
42
- &.cardSlideUpTextTemplate,
43
- &.quaresImageTemplate {
44
- .grid {
45
- grid-template-columns: 1fr 1fr;
43
+ &.cardSlideUpTextTemplate,
44
+ &.quaresImageTemplate {
45
+ .grid {
46
+ grid-template-columns: 1fr 1fr;
47
+ }
46
48
  }
47
- }
48
49
 
49
- &.bandiInEvidenceTemplate {
50
- .bandi-in-evidence-cards-wrapper {
51
- grid-template-columns: 1fr 1fr;
50
+ &.bandiInEvidenceTemplate {
51
+ .bandi-in-evidence-cards-wrapper {
52
+ grid-template-columns: 1fr 1fr;
53
+ }
52
54
  }
53
55
  }
54
56
  }
@@ -2,7 +2,7 @@
2
2
  body.public-ui.contenttype-lrf {
3
3
  .block-editor-title,
4
4
  .documentFirstHeading {
5
- display: none;
5
+ @include visually-hidden;
6
6
  }
7
7
  }
8
8
 
@@ -13,7 +13,9 @@ body.public-ui.contenttype-lrf {
13
13
  body.subsite.subsite-root {
14
14
  &,
15
15
  .public-ui {
16
- .documentFirstHeading,
16
+ .documentFirstHeading {
17
+ @include visually-hidden;
18
+ }
17
19
  #briciole {
18
20
  display: none;
19
21
  }