design-comuni-plone-theme 11.26.2 → 11.26.4
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/.github/workflows/main.yml +1 -1
- package/.github/workflows/prs.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +30 -0
- package/Makefile +1 -1
- package/RELEASE.md +6 -0
- package/locales/de/LC_MESSAGES/volto.po +30 -0
- package/locales/en/LC_MESSAGES/volto.po +30 -0
- package/locales/es/LC_MESSAGES/volto.po +30 -0
- package/locales/fr/LC_MESSAGES/volto.po +30 -0
- package/locales/it/LC_MESSAGES/volto.po +30 -0
- package/locales/volto.pot +31 -1
- package/package.json +2 -2
- package/publiccode.yml +2 -2
- package/src/components/ImageWithErrors/ImageWithErrors.jsx +25 -12
- package/src/config/italiaConfig.js +8 -2
- package/src/customizations/volto/components/manage/Contents/ContentsUploadModal.jsx +5 -3
- package/src/helpers/images.js +53 -0
- package/src/helpers/index.js +5 -1
- package/src/helpers/url.js +7 -0
- package/src/overrideTranslations.jsx +25 -0
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [11.26.4](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.26.3...v11.26.4) (2025-01-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* table block translations ([#848](https://github.com/RedTurtle/design-comuni-plone-theme/issues/848)) ([a6d3871](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a6d3871b8fb9813d0978bc874627f140600b1155))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Maintenance
|
|
12
|
+
|
|
13
|
+
* upgrade to volto 17.20.4 ([1af7b75](https://github.com/RedTurtle/design-comuni-plone-theme/commit/1af7b75cc776fcd42d144b6efd6d8387425f6c5e))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Documentation
|
|
17
|
+
|
|
18
|
+
* updated publiccode ([6613335](https://github.com/RedTurtle/design-comuni-plone-theme/commit/661333568bfe420f8be0b0828d22779c237a7f09))
|
|
19
|
+
|
|
20
|
+
## [11.26.3](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.26.2...v11.26.3) (2025-01-15)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* image with error on error loop, customizable fallback image in site properties ([#852](https://github.com/RedTurtle/design-comuni-plone-theme/issues/852)) ([7187e5f](https://github.com/RedTurtle/design-comuni-plone-theme/commit/7187e5f74a3eadcf9ff2d38000386cb3f0792696))
|
|
26
|
+
* remove file upload restraint from contents modal if modules are allowed ([#854](https://github.com/RedTurtle/design-comuni-plone-theme/issues/854)) ([46357ae](https://github.com/RedTurtle/design-comuni-plone-theme/commit/46357aee85f05782fc6d1374a23a7e9d9cd89232))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Documentation
|
|
30
|
+
|
|
31
|
+
* updated publiccode and release log ([004915b](https://github.com/RedTurtle/design-comuni-plone-theme/commit/004915b0aee731b88b2d77e93a3c5c2f7ab56330))
|
|
32
|
+
|
|
3
33
|
## [11.26.2](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.26.1...v11.26.2) (2024-12-27)
|
|
4
34
|
|
|
5
35
|
|
package/Makefile
CHANGED
|
@@ -27,7 +27,7 @@ CURRENT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
27
27
|
# ADDON ?= "design-comuni-plone-theme"
|
|
28
28
|
|
|
29
29
|
PLONE_VERSION=6
|
|
30
|
-
VOLTO_VERSION=17.20.
|
|
30
|
+
VOLTO_VERSION=17.20.4
|
|
31
31
|
|
|
32
32
|
ADDON_NAME='design-comuni-plone-theme'
|
|
33
33
|
ADDON_PATH='design-comuni-plone-theme'
|
package/RELEASE.md
CHANGED
|
@@ -41,6 +41,12 @@
|
|
|
41
41
|
- ...
|
|
42
42
|
-->
|
|
43
43
|
|
|
44
|
+
## Versione 11.26.3 (15/01/2025)
|
|
45
|
+
|
|
46
|
+
### Fix
|
|
47
|
+
|
|
48
|
+
- E' possibile caricare moduli in maniera massiva nei documenti all'interno delle aree corrette dentro Documenti e Dati > Modulistica
|
|
49
|
+
|
|
44
50
|
## Versione 11.26.1 (27/12/2024)
|
|
45
51
|
|
|
46
52
|
### Fix
|
|
@@ -208,6 +208,11 @@ msgstr ""
|
|
|
208
208
|
msgid "Dimensione della mappa"
|
|
209
209
|
msgstr ""
|
|
210
210
|
|
|
211
|
+
#: overrideTranslations
|
|
212
|
+
# defaultMessage: Add border to inner columns
|
|
213
|
+
msgid "Divide each row into separate cells"
|
|
214
|
+
msgstr ""
|
|
215
|
+
|
|
211
216
|
#: components/ItaliaTheme/View/Commons/TrasparenzaFields
|
|
212
217
|
# defaultMessage: Download
|
|
213
218
|
msgid "Download"
|
|
@@ -265,6 +270,11 @@ msgstr ""
|
|
|
265
270
|
msgid "Hide all content types"
|
|
266
271
|
msgstr ""
|
|
267
272
|
|
|
273
|
+
#: overrideTranslations
|
|
274
|
+
# defaultMessage: Hide headers
|
|
275
|
+
msgid "Hide headers"
|
|
276
|
+
msgstr ""
|
|
277
|
+
|
|
268
278
|
#: components/ItaliaTheme/Breadcrumbs/Breadcrumbs
|
|
269
279
|
# defaultMessage: Home
|
|
270
280
|
msgid "Home"
|
|
@@ -379,6 +389,11 @@ msgstr ""
|
|
|
379
389
|
msgid "Luogo location filter"
|
|
380
390
|
msgstr ""
|
|
381
391
|
|
|
392
|
+
#: overrideTranslations
|
|
393
|
+
# defaultMessage: Make the table sortable
|
|
394
|
+
msgid "Make the table sortable"
|
|
395
|
+
msgstr ""
|
|
396
|
+
|
|
382
397
|
#: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar
|
|
383
398
|
# defaultMessage: Medio
|
|
384
399
|
msgid "Medio"
|
|
@@ -584,6 +599,16 @@ msgstr ""
|
|
|
584
599
|
msgid "Subscribe"
|
|
585
600
|
msgstr ""
|
|
586
601
|
|
|
602
|
+
#: overrideTranslations
|
|
603
|
+
# defaultMessage: Table block
|
|
604
|
+
msgid "Table block"
|
|
605
|
+
msgstr ""
|
|
606
|
+
|
|
607
|
+
#: overrideTranslations
|
|
608
|
+
# defaultMessage: Table color inverted
|
|
609
|
+
msgid "Table color inverted"
|
|
610
|
+
msgstr ""
|
|
611
|
+
|
|
587
612
|
#: components/ItaliaTheme/Blocks/Accordion/Block/EditBlock
|
|
588
613
|
#: components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock
|
|
589
614
|
#: components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock
|
|
@@ -718,6 +743,11 @@ msgstr ""
|
|
|
718
743
|
msgid "VideoGalleryBlock"
|
|
719
744
|
msgstr ""
|
|
720
745
|
|
|
746
|
+
#: overrideTranslations
|
|
747
|
+
# defaultMessage: Visible only in view mode
|
|
748
|
+
msgid "Visible only in view mode"
|
|
749
|
+
msgstr ""
|
|
750
|
+
|
|
721
751
|
#: components/ItaliaTheme/Unauthorized/Unauthorized
|
|
722
752
|
# defaultMessage: You are trying to access a protected resource, please {login} first.
|
|
723
753
|
msgid "You are trying to access a protected resource, please {login} first."
|
|
@@ -193,6 +193,11 @@ msgstr "Procedure details"
|
|
|
193
193
|
msgid "Dimensione della mappa"
|
|
194
194
|
msgstr "Map dimensions"
|
|
195
195
|
|
|
196
|
+
#: overrideTranslations
|
|
197
|
+
# defaultMessage: Add border to inner columns
|
|
198
|
+
msgid "Divide each row into separate cells"
|
|
199
|
+
msgstr ""
|
|
200
|
+
|
|
196
201
|
#: components/ItaliaTheme/View/Commons/TrasparenzaFields
|
|
197
202
|
# defaultMessage: Download
|
|
198
203
|
msgid "Download"
|
|
@@ -250,6 +255,11 @@ msgstr "Hide"
|
|
|
250
255
|
msgid "Hide all content types"
|
|
251
256
|
msgstr "Hide all content types"
|
|
252
257
|
|
|
258
|
+
#: overrideTranslations
|
|
259
|
+
# defaultMessage: Hide headers
|
|
260
|
+
msgid "Hide headers"
|
|
261
|
+
msgstr ""
|
|
262
|
+
|
|
253
263
|
#: components/ItaliaTheme/Breadcrumbs/Breadcrumbs
|
|
254
264
|
# defaultMessage: Home
|
|
255
265
|
msgid "Home"
|
|
@@ -364,6 +374,11 @@ msgstr "Place"
|
|
|
364
374
|
msgid "Luogo location filter"
|
|
365
375
|
msgstr ""
|
|
366
376
|
|
|
377
|
+
#: overrideTranslations
|
|
378
|
+
# defaultMessage: Make the table sortable
|
|
379
|
+
msgid "Make the table sortable"
|
|
380
|
+
msgstr ""
|
|
381
|
+
|
|
367
382
|
#: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar
|
|
368
383
|
# defaultMessage: Medio
|
|
369
384
|
msgid "Medio"
|
|
@@ -569,6 +584,16 @@ msgstr "Some errors occured"
|
|
|
569
584
|
msgid "Subscribe"
|
|
570
585
|
msgstr "Subscribe"
|
|
571
586
|
|
|
587
|
+
#: overrideTranslations
|
|
588
|
+
# defaultMessage: Table block
|
|
589
|
+
msgid "Table block"
|
|
590
|
+
msgstr ""
|
|
591
|
+
|
|
592
|
+
#: overrideTranslations
|
|
593
|
+
# defaultMessage: Table color inverted
|
|
594
|
+
msgid "Table color inverted"
|
|
595
|
+
msgstr ""
|
|
596
|
+
|
|
572
597
|
#: components/ItaliaTheme/Blocks/Accordion/Block/EditBlock
|
|
573
598
|
#: components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock
|
|
574
599
|
#: components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock
|
|
@@ -703,6 +728,11 @@ msgstr "Video"
|
|
|
703
728
|
msgid "VideoGalleryBlock"
|
|
704
729
|
msgstr ""
|
|
705
730
|
|
|
731
|
+
#: overrideTranslations
|
|
732
|
+
# defaultMessage: Visible only in view mode
|
|
733
|
+
msgid "Visible only in view mode"
|
|
734
|
+
msgstr ""
|
|
735
|
+
|
|
706
736
|
#: components/ItaliaTheme/Unauthorized/Unauthorized
|
|
707
737
|
# defaultMessage: You are trying to access a protected resource, please {login} first.
|
|
708
738
|
msgid "You are trying to access a protected resource, please {login} first."
|
|
@@ -202,6 +202,11 @@ msgstr "Detalles del procedimiento"
|
|
|
202
202
|
msgid "Dimensione della mappa"
|
|
203
203
|
msgstr "Tamaño de mapa"
|
|
204
204
|
|
|
205
|
+
#: overrideTranslations
|
|
206
|
+
# defaultMessage: Add border to inner columns
|
|
207
|
+
msgid "Divide each row into separate cells"
|
|
208
|
+
msgstr ""
|
|
209
|
+
|
|
205
210
|
#: components/ItaliaTheme/View/Commons/TrasparenzaFields
|
|
206
211
|
# defaultMessage: Download
|
|
207
212
|
msgid "Download"
|
|
@@ -259,6 +264,11 @@ msgstr "Ocultar"
|
|
|
259
264
|
msgid "Hide all content types"
|
|
260
265
|
msgstr "Ocultar todos los tipos de contenido"
|
|
261
266
|
|
|
267
|
+
#: overrideTranslations
|
|
268
|
+
# defaultMessage: Hide headers
|
|
269
|
+
msgid "Hide headers"
|
|
270
|
+
msgstr ""
|
|
271
|
+
|
|
262
272
|
#: components/ItaliaTheme/Breadcrumbs/Breadcrumbs
|
|
263
273
|
# defaultMessage: Home
|
|
264
274
|
msgid "Home"
|
|
@@ -373,6 +383,11 @@ msgstr "Lugar"
|
|
|
373
383
|
msgid "Luogo location filter"
|
|
374
384
|
msgstr "Lugar"
|
|
375
385
|
|
|
386
|
+
#: overrideTranslations
|
|
387
|
+
# defaultMessage: Make the table sortable
|
|
388
|
+
msgid "Make the table sortable"
|
|
389
|
+
msgstr ""
|
|
390
|
+
|
|
376
391
|
#: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar
|
|
377
392
|
# defaultMessage: Medio
|
|
378
393
|
msgid "Medio"
|
|
@@ -578,6 +593,16 @@ msgstr "Se produjeron algunos errores."
|
|
|
578
593
|
msgid "Subscribe"
|
|
579
594
|
msgstr "Suscribir"
|
|
580
595
|
|
|
596
|
+
#: overrideTranslations
|
|
597
|
+
# defaultMessage: Table block
|
|
598
|
+
msgid "Table block"
|
|
599
|
+
msgstr ""
|
|
600
|
+
|
|
601
|
+
#: overrideTranslations
|
|
602
|
+
# defaultMessage: Table color inverted
|
|
603
|
+
msgid "Table color inverted"
|
|
604
|
+
msgstr ""
|
|
605
|
+
|
|
581
606
|
#: components/ItaliaTheme/Blocks/Accordion/Block/EditBlock
|
|
582
607
|
#: components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock
|
|
583
608
|
#: components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock
|
|
@@ -712,6 +737,11 @@ msgstr "Vídeo"
|
|
|
712
737
|
msgid "VideoGalleryBlock"
|
|
713
738
|
msgstr "Galería de Vídeos"
|
|
714
739
|
|
|
740
|
+
#: overrideTranslations
|
|
741
|
+
# defaultMessage: Visible only in view mode
|
|
742
|
+
msgid "Visible only in view mode"
|
|
743
|
+
msgstr ""
|
|
744
|
+
|
|
715
745
|
#: components/ItaliaTheme/Unauthorized/Unauthorized
|
|
716
746
|
# defaultMessage: You are trying to access a protected resource, please {login} first.
|
|
717
747
|
msgid "You are trying to access a protected resource, please {login} first."
|
|
@@ -210,6 +210,11 @@ msgstr ""
|
|
|
210
210
|
msgid "Dimensione della mappa"
|
|
211
211
|
msgstr ""
|
|
212
212
|
|
|
213
|
+
#: overrideTranslations
|
|
214
|
+
# defaultMessage: Add border to inner columns
|
|
215
|
+
msgid "Divide each row into separate cells"
|
|
216
|
+
msgstr ""
|
|
217
|
+
|
|
213
218
|
#: components/ItaliaTheme/View/Commons/TrasparenzaFields
|
|
214
219
|
# defaultMessage: Download
|
|
215
220
|
msgid "Download"
|
|
@@ -267,6 +272,11 @@ msgstr "Cacher"
|
|
|
267
272
|
msgid "Hide all content types"
|
|
268
273
|
msgstr "Masquer tous les types de contenu"
|
|
269
274
|
|
|
275
|
+
#: overrideTranslations
|
|
276
|
+
# defaultMessage: Hide headers
|
|
277
|
+
msgid "Hide headers"
|
|
278
|
+
msgstr ""
|
|
279
|
+
|
|
270
280
|
#: components/ItaliaTheme/Breadcrumbs/Breadcrumbs
|
|
271
281
|
# defaultMessage: Home
|
|
272
282
|
msgid "Home"
|
|
@@ -381,6 +391,11 @@ msgstr "Lieu"
|
|
|
381
391
|
msgid "Luogo location filter"
|
|
382
392
|
msgstr ""
|
|
383
393
|
|
|
394
|
+
#: overrideTranslations
|
|
395
|
+
# defaultMessage: Make the table sortable
|
|
396
|
+
msgid "Make the table sortable"
|
|
397
|
+
msgstr ""
|
|
398
|
+
|
|
384
399
|
#: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar
|
|
385
400
|
# defaultMessage: Medio
|
|
386
401
|
msgid "Medio"
|
|
@@ -586,6 +601,16 @@ msgstr "Des erreurs se sont produites"
|
|
|
586
601
|
msgid "Subscribe"
|
|
587
602
|
msgstr "S'abonner"
|
|
588
603
|
|
|
604
|
+
#: overrideTranslations
|
|
605
|
+
# defaultMessage: Table block
|
|
606
|
+
msgid "Table block"
|
|
607
|
+
msgstr ""
|
|
608
|
+
|
|
609
|
+
#: overrideTranslations
|
|
610
|
+
# defaultMessage: Table color inverted
|
|
611
|
+
msgid "Table color inverted"
|
|
612
|
+
msgstr ""
|
|
613
|
+
|
|
589
614
|
#: components/ItaliaTheme/Blocks/Accordion/Block/EditBlock
|
|
590
615
|
#: components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock
|
|
591
616
|
#: components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock
|
|
@@ -720,6 +745,11 @@ msgstr "Vidéo"
|
|
|
720
745
|
msgid "VideoGalleryBlock"
|
|
721
746
|
msgstr ""
|
|
722
747
|
|
|
748
|
+
#: overrideTranslations
|
|
749
|
+
# defaultMessage: Visible only in view mode
|
|
750
|
+
msgid "Visible only in view mode"
|
|
751
|
+
msgstr ""
|
|
752
|
+
|
|
723
753
|
#: components/ItaliaTheme/Unauthorized/Unauthorized
|
|
724
754
|
# defaultMessage: You are trying to access a protected resource, please {login} first.
|
|
725
755
|
msgid "You are trying to access a protected resource, please {login} first."
|
|
@@ -193,6 +193,11 @@ msgstr "Dettagli procedimento"
|
|
|
193
193
|
msgid "Dimensione della mappa"
|
|
194
194
|
msgstr "Dimensione della mappa"
|
|
195
195
|
|
|
196
|
+
#: overrideTranslations
|
|
197
|
+
# defaultMessage: Add border to inner columns
|
|
198
|
+
msgid "Divide each row into separate cells"
|
|
199
|
+
msgstr "Mostra i margini delle colonne"
|
|
200
|
+
|
|
196
201
|
#: components/ItaliaTheme/View/Commons/TrasparenzaFields
|
|
197
202
|
# defaultMessage: Download
|
|
198
203
|
msgid "Download"
|
|
@@ -250,6 +255,11 @@ msgstr "Nascondi"
|
|
|
250
255
|
msgid "Hide all content types"
|
|
251
256
|
msgstr "Nascondi tutti i tipi di contenuto"
|
|
252
257
|
|
|
258
|
+
#: overrideTranslations
|
|
259
|
+
# defaultMessage: Hide headers
|
|
260
|
+
msgid "Hide headers"
|
|
261
|
+
msgstr "Nascondi le intestazioni"
|
|
262
|
+
|
|
253
263
|
#: components/ItaliaTheme/Breadcrumbs/Breadcrumbs
|
|
254
264
|
# defaultMessage: Home
|
|
255
265
|
msgid "Home"
|
|
@@ -364,6 +374,11 @@ msgstr "Luogo"
|
|
|
364
374
|
msgid "Luogo location filter"
|
|
365
375
|
msgstr "Luogo"
|
|
366
376
|
|
|
377
|
+
#: overrideTranslations
|
|
378
|
+
# defaultMessage: Make the table sortable
|
|
379
|
+
msgid "Make the table sortable"
|
|
380
|
+
msgstr "Rendi la tabella ordinabile"
|
|
381
|
+
|
|
367
382
|
#: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar
|
|
368
383
|
# defaultMessage: Medio
|
|
369
384
|
msgid "Medio"
|
|
@@ -569,6 +584,16 @@ msgstr "Sono occorsi degli errori"
|
|
|
569
584
|
msgid "Subscribe"
|
|
570
585
|
msgstr "Iscriviti"
|
|
571
586
|
|
|
587
|
+
#: overrideTranslations
|
|
588
|
+
# defaultMessage: Table block
|
|
589
|
+
msgid "Table block"
|
|
590
|
+
msgstr "Blocco Tabella"
|
|
591
|
+
|
|
592
|
+
#: overrideTranslations
|
|
593
|
+
# defaultMessage: Table color inverted
|
|
594
|
+
msgid "Table color inverted"
|
|
595
|
+
msgstr "Inverti i colori della tabella"
|
|
596
|
+
|
|
572
597
|
#: components/ItaliaTheme/Blocks/Accordion/Block/EditBlock
|
|
573
598
|
#: components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock
|
|
574
599
|
#: components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock
|
|
@@ -703,6 +728,11 @@ msgstr "Video"
|
|
|
703
728
|
msgid "VideoGalleryBlock"
|
|
704
729
|
msgstr "Video gallery"
|
|
705
730
|
|
|
731
|
+
#: overrideTranslations
|
|
732
|
+
# defaultMessage: Visible only in view mode
|
|
733
|
+
msgid "Visible only in view mode"
|
|
734
|
+
msgstr "Visibile solamente in modalità visualizzazione"
|
|
735
|
+
|
|
706
736
|
#: components/ItaliaTheme/Unauthorized/Unauthorized
|
|
707
737
|
# defaultMessage: You are trying to access a protected resource, please {login} first.
|
|
708
738
|
msgid "You are trying to access a protected resource, please {login} first."
|
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:
|
|
4
|
+
"POT-Creation-Date: 2025-01-03T12:21:33.430Z\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"
|
|
@@ -195,6 +195,11 @@ msgstr ""
|
|
|
195
195
|
msgid "Dimensione della mappa"
|
|
196
196
|
msgstr ""
|
|
197
197
|
|
|
198
|
+
#: overrideTranslations
|
|
199
|
+
# defaultMessage: Add border to inner columns
|
|
200
|
+
msgid "Divide each row into separate cells"
|
|
201
|
+
msgstr ""
|
|
202
|
+
|
|
198
203
|
#: components/ItaliaTheme/View/Commons/TrasparenzaFields
|
|
199
204
|
# defaultMessage: Download
|
|
200
205
|
msgid "Download"
|
|
@@ -252,6 +257,11 @@ msgstr ""
|
|
|
252
257
|
msgid "Hide all content types"
|
|
253
258
|
msgstr ""
|
|
254
259
|
|
|
260
|
+
#: overrideTranslations
|
|
261
|
+
# defaultMessage: Hide headers
|
|
262
|
+
msgid "Hide headers"
|
|
263
|
+
msgstr ""
|
|
264
|
+
|
|
255
265
|
#: components/ItaliaTheme/Breadcrumbs/Breadcrumbs
|
|
256
266
|
# defaultMessage: Home
|
|
257
267
|
msgid "Home"
|
|
@@ -366,6 +376,11 @@ msgstr ""
|
|
|
366
376
|
msgid "Luogo location filter"
|
|
367
377
|
msgstr ""
|
|
368
378
|
|
|
379
|
+
#: overrideTranslations
|
|
380
|
+
# defaultMessage: Make the table sortable
|
|
381
|
+
msgid "Make the table sortable"
|
|
382
|
+
msgstr ""
|
|
383
|
+
|
|
369
384
|
#: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar
|
|
370
385
|
# defaultMessage: Medio
|
|
371
386
|
msgid "Medio"
|
|
@@ -571,6 +586,16 @@ msgstr ""
|
|
|
571
586
|
msgid "Subscribe"
|
|
572
587
|
msgstr ""
|
|
573
588
|
|
|
589
|
+
#: overrideTranslations
|
|
590
|
+
# defaultMessage: Table block
|
|
591
|
+
msgid "Table block"
|
|
592
|
+
msgstr ""
|
|
593
|
+
|
|
594
|
+
#: overrideTranslations
|
|
595
|
+
# defaultMessage: Table color inverted
|
|
596
|
+
msgid "Table color inverted"
|
|
597
|
+
msgstr ""
|
|
598
|
+
|
|
574
599
|
#: components/ItaliaTheme/Blocks/Accordion/Block/EditBlock
|
|
575
600
|
#: components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock
|
|
576
601
|
#: components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock
|
|
@@ -705,6 +730,11 @@ msgstr ""
|
|
|
705
730
|
msgid "VideoGalleryBlock"
|
|
706
731
|
msgstr ""
|
|
707
732
|
|
|
733
|
+
#: overrideTranslations
|
|
734
|
+
# defaultMessage: Visible only in view mode
|
|
735
|
+
msgid "Visible only in view mode"
|
|
736
|
+
msgstr ""
|
|
737
|
+
|
|
708
738
|
#: components/ItaliaTheme/Unauthorized/Unauthorized
|
|
709
739
|
# defaultMessage: You are trying to access a protected resource, please {login} first.
|
|
710
740
|
msgid "You are trying to access a protected resource, please {login} first."
|
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.26.
|
|
5
|
+
"version": "11.26.4",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"stylelint-prettier": "4.0.2"
|
|
201
201
|
},
|
|
202
202
|
"peerDependencies": {
|
|
203
|
-
"@plone/volto": "17.20.
|
|
203
|
+
"@plone/volto": "17.20.4"
|
|
204
204
|
},
|
|
205
205
|
"packageManager": "yarn@3.2.3"
|
|
206
206
|
}
|
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: '
|
|
230
|
+
releaseDate: '2025-01-16'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 11.26.
|
|
232
|
+
softwareVersion: 11.26.4
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import { Image } from '@plone/volto/components';
|
|
3
|
+
import { useFallbackImageSrc } from 'design-comuni-plone-theme/helpers';
|
|
4
4
|
|
|
5
|
-
const ImageWithErrors = (
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
});
|
|
5
|
+
const ImageWithErrors = ({ src, fallbackSrc = '', ...rest }) => {
|
|
6
|
+
const { className, sizes } = rest;
|
|
7
|
+
const { currentSrc, handleError, getFallbackImageStyle } =
|
|
8
|
+
useFallbackImageSrc({
|
|
9
|
+
src,
|
|
10
|
+
customFallbackSrc: fallbackSrc,
|
|
11
|
+
className,
|
|
12
|
+
sizes,
|
|
13
|
+
});
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
let commonProps = { ...rest };
|
|
16
|
+
const fallbackStyle = getFallbackImageStyle({
|
|
17
|
+
src,
|
|
18
|
+
customFallbackSrc: fallbackSrc,
|
|
19
|
+
className,
|
|
20
|
+
sizes,
|
|
21
|
+
});
|
|
22
|
+
if (fallbackStyle) {
|
|
23
|
+
commonProps = {
|
|
24
|
+
...commonProps,
|
|
25
|
+
style: { ...commonProps.style, ...fallbackStyle },
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
return <Image {...commonProps} src={currentSrc} onError={handleError} />;
|
|
17
29
|
};
|
|
30
|
+
|
|
18
31
|
export default ImageWithErrors;
|
|
@@ -67,9 +67,13 @@ import gdprPrivacyPanelConfig from 'design-comuni-plone-theme/config/volto-gdpr-
|
|
|
67
67
|
import { schemaListing } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Listing/schema.js';
|
|
68
68
|
|
|
69
69
|
import reducers from 'design-comuni-plone-theme/reducers';
|
|
70
|
+
import {
|
|
71
|
+
FALLBACK_IMAGE_SRC,
|
|
72
|
+
FALLBACK_IMAGE_SRC_MAX_W,
|
|
73
|
+
} from 'design-comuni-plone-theme/helpers/images';
|
|
70
74
|
|
|
71
|
-
const ReleaseLog = loadable(
|
|
72
|
-
|
|
75
|
+
const ReleaseLog = loadable(() =>
|
|
76
|
+
import('design-comuni-plone-theme/components/ReleaseLog/ReleaseLog'),
|
|
73
77
|
);
|
|
74
78
|
|
|
75
79
|
const messages = defineMessages({
|
|
@@ -287,6 +291,8 @@ export default function applyConfig(voltoConfig) {
|
|
|
287
291
|
markSpecialLinks: true, // se impostato a false, non marca con icona i link esterni
|
|
288
292
|
markFooterLinks: true, // se impostato a true, viene aggiunta un'icona ai link del footer per renderli riconoscibili
|
|
289
293
|
showContentDateInListingFor: ['Modulo', 'Documento'], // elenco dei content types per i quali mostrare la data di pubblicazione/modifica in listing
|
|
294
|
+
fallbackImageSrc: FALLBACK_IMAGE_SRC,
|
|
295
|
+
fallbackImageSrcMaxW: FALLBACK_IMAGE_SRC_MAX_W,
|
|
290
296
|
},
|
|
291
297
|
apiExpanders: [
|
|
292
298
|
...config.settings.apiExpanders,
|
|
@@ -196,10 +196,12 @@ class ContentsUploadModal extends Component {
|
|
|
196
196
|
// as per agid guidelines, files cannot be uploaded in modulistica folder inside ct servizio
|
|
197
197
|
// show restraint and hide upload button when page is called modulistica and when there's a restraint
|
|
198
198
|
// this is enough to identify this only case bc even if another page is called 'modulistica', it will have 'File'
|
|
199
|
-
// as addable type
|
|
199
|
+
// and "Modulo" as addable type
|
|
200
200
|
const showFileRestraint =
|
|
201
|
-
this.props.pathname.
|
|
202
|
-
!this.props.types.some(
|
|
201
|
+
getBaseUrl(this.props.pathname).match(/\/servizi\/.*\/modulistica\/?$/) &&
|
|
202
|
+
!this.props.types.some(
|
|
203
|
+
(type) => type.id === 'File' || type.id === 'Modulo',
|
|
204
|
+
);
|
|
203
205
|
|
|
204
206
|
return (
|
|
205
207
|
this.props.open && (
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
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o4IBUwAAAABJRU5ErkJggg==';
|
|
9
|
+
|
|
10
|
+
const FALLBACK_IMAGE_SRC_MAX_W = 200;
|
|
11
|
+
|
|
12
|
+
const getFallbackImageStyle = ({
|
|
13
|
+
src,
|
|
14
|
+
customFallbackSrc,
|
|
15
|
+
className,
|
|
16
|
+
sizes,
|
|
17
|
+
}) => {
|
|
18
|
+
const fallbackSrc = customFallbackSrc || getSiteProperty('fallbackImageSrc');
|
|
19
|
+
if (src === fallbackSrc) {
|
|
20
|
+
if (!className && sizes) return { maxWidth: sizes };
|
|
21
|
+
else if (!className && !sizes)
|
|
22
|
+
return { maxWidth: getSiteProperty('fallbackImageSrcMaxW') };
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
Hook per l'utilizzo di immagini con fallback per immagini rotte.
|
|
28
|
+
NB: il backend a volte torna ./resolveuid/xxxxx se non trova il brain
|
|
29
|
+
dell'immagine nella property per la src. Siamo tutti d'accordo a
|
|
30
|
+
classificarlo come immagine rotta in questo caso.
|
|
31
|
+
*/
|
|
32
|
+
const useFallbackImageSrc = ({
|
|
33
|
+
src,
|
|
34
|
+
customFallbackSrc = '',
|
|
35
|
+
className,
|
|
36
|
+
sizes,
|
|
37
|
+
}) => {
|
|
38
|
+
const [currentSrc, setCurrentSrc] = useState(
|
|
39
|
+
!isResolveUID(src)
|
|
40
|
+
? src
|
|
41
|
+
: customFallbackSrc || getSiteProperty('fallbackImageSrc'),
|
|
42
|
+
);
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
setCurrentSrc(src); // Reset the source if props change
|
|
45
|
+
}, [src]);
|
|
46
|
+
|
|
47
|
+
const handleError = () => {
|
|
48
|
+
setCurrentSrc(getSiteProperty('fallbackImageSrc'));
|
|
49
|
+
};
|
|
50
|
+
return { currentSrc, handleError, getFallbackImageStyle };
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export { FALLBACK_IMAGE_SRC, FALLBACK_IMAGE_SRC_MAX_W, useFallbackImageSrc };
|
package/src/helpers/index.js
CHANGED
|
@@ -54,5 +54,9 @@ export {
|
|
|
54
54
|
export { commonSearchBlockMessages } from 'design-comuni-plone-theme/helpers/Translations/searchBlockExtendedTranslations';
|
|
55
55
|
|
|
56
56
|
export { getComponentWithFallback } from 'design-comuni-plone-theme/helpers/registry';
|
|
57
|
-
export {
|
|
57
|
+
export {
|
|
58
|
+
useHomePath,
|
|
59
|
+
isResolveUID,
|
|
60
|
+
} from 'design-comuni-plone-theme/helpers/url';
|
|
58
61
|
export { usePaginatedItemsSection } from 'design-comuni-plone-theme/helpers/usePaginatedItemsSection.hook.ts';
|
|
62
|
+
export { useFallbackImageSrc } from 'design-comuni-plone-theme/helpers/images';
|
package/src/helpers/url.js
CHANGED
|
@@ -13,3 +13,10 @@ export const useHomePath = () => {
|
|
|
13
13
|
}, [locale]);
|
|
14
14
|
return path;
|
|
15
15
|
};
|
|
16
|
+
|
|
17
|
+
const RESOLVEUID_RE = /^[./]*resolve[Uu]id\/([^/]*)\/?(.*)$/;
|
|
18
|
+
|
|
19
|
+
export function isResolveUID(url) {
|
|
20
|
+
const match = url?.match(RESOLVEUID_RE);
|
|
21
|
+
return Boolean(match);
|
|
22
|
+
}
|
|
@@ -99,4 +99,29 @@ defineMessages({
|
|
|
99
99
|
defaultMessage:
|
|
100
100
|
'As per the official information architecture outlined in measure 1.4.1, all forms must be properly uploaded in the designated section within Amministrazione > Documenti e Dati > Modulistica, and linked to the relevant service sheet. It is no longer possible to upload files and attachments directly into this container.',
|
|
101
101
|
},
|
|
102
|
+
//table block
|
|
103
|
+
hideHeaders: {
|
|
104
|
+
id: 'Hide headers',
|
|
105
|
+
defaultMessage: 'Hide headers',
|
|
106
|
+
},
|
|
107
|
+
sortable: {
|
|
108
|
+
id: 'Make the table sortable',
|
|
109
|
+
defaultMessage: 'Make the table sortable',
|
|
110
|
+
},
|
|
111
|
+
sortableDescription: {
|
|
112
|
+
id: 'Visible only in view mode',
|
|
113
|
+
defaultMessage: 'Visible only in view mode',
|
|
114
|
+
},
|
|
115
|
+
inverted: {
|
|
116
|
+
id: 'Table color inverted',
|
|
117
|
+
defaultMessage: 'Table color inverted',
|
|
118
|
+
},
|
|
119
|
+
table_block: {
|
|
120
|
+
id: 'Table block',
|
|
121
|
+
defaultMessage: 'Table block',
|
|
122
|
+
},
|
|
123
|
+
divideRows: {
|
|
124
|
+
id: 'Divide each row into separate cells',
|
|
125
|
+
defaultMessage: 'Add border to inner columns',
|
|
126
|
+
},
|
|
102
127
|
});
|