design-comuni-plone-theme 11.26.4 → 11.26.5

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.
Files changed (50) hide show
  1. package/.yarn/cache/{volto-venue-npm-4.1.0-481d5ba425-64ca36bc93.zip → volto-venue-npm-4.1.1-d5be247928-f796d519ad.zip} +0 -0
  2. package/.yarn/install-state.gz +0 -0
  3. package/CHANGELOG.md +24 -0
  4. package/RELEASE.md +22 -0
  5. package/locales/de/LC_MESSAGES/volto.po +8 -7
  6. package/locales/en/LC_MESSAGES/volto.po +9 -8
  7. package/locales/es/LC_MESSAGES/volto.po +8 -7
  8. package/locales/fr/LC_MESSAGES/volto.po +8 -7
  9. package/locales/it/LC_MESSAGES/volto.po +9 -8
  10. package/locales/volto.pot +9 -8
  11. package/package.json +2 -2
  12. package/publiccode.yml +2 -2
  13. package/src/components/ImageWithErrors/ImageWithErrors.jsx +0 -1
  14. package/src/components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate.jsx +13 -10
  15. package/src/components/ItaliaTheme/Blocks/Listing/CardWithImage/CardWithImageDefault.jsx +7 -7
  16. package/src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx +35 -13
  17. package/src/components/ItaliaTheme/Blocks/Listing/CompleteBlockLinksTemplate.jsx +16 -10
  18. package/src/components/ItaliaTheme/Blocks/Listing/ContentInEvidenceTemplate.jsx +12 -9
  19. package/src/components/ItaliaTheme/Blocks/Listing/GridGalleryTemplate.jsx +7 -7
  20. package/src/components/ItaliaTheme/Blocks/Listing/InEvidenceTemplate.jsx +9 -8
  21. package/src/components/ItaliaTheme/Blocks/Listing/PhotogalleryTemplate.jsx +7 -6
  22. package/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx +9 -6
  23. package/src/components/ItaliaTheme/Blocks/Listing/SmallBlockLinksTemplate.jsx +19 -23
  24. package/src/components/ItaliaTheme/Cards/CardPersona.jsx +5 -8
  25. package/src/components/ItaliaTheme/View/Commons/GenericCard.jsx +14 -13
  26. package/src/components/ItaliaTheme/View/Commons/LocationItem.jsx +15 -9
  27. package/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx +7 -3
  28. package/src/components/ItaliaTheme/View/Commons/Sponsors.jsx +14 -10
  29. package/src/components/ItaliaTheme/View/Commons/VenuesSmall.jsx +13 -6
  30. package/src/components/ItaliaTheme/View/EventoView/EventoContatti.jsx +8 -7
  31. package/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno.jsx +1 -12
  32. package/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno.jsx +1 -12
  33. package/src/components/ItaliaTheme/View/EventoView/EventoOrganizzatoDa.jsx +38 -0
  34. package/src/components/ItaliaTheme/View/EventoView/EventoPatrocinatoDa.jsx +38 -0
  35. package/src/components/ItaliaTheme/View/EventoView/EventoUlterioriInformazioni.jsx +0 -18
  36. package/src/components/ItaliaTheme/View/NewsItemView/NewsItemText.jsx +1 -0
  37. package/src/components/SelectInput/SelectInput.jsx +9 -4
  38. package/src/config/Blocks/ListingOptions/attachmentCardTemplate.js +1 -1
  39. package/src/customizations/volto/components/manage/UniversalLink/UniversalLink.jsx +15 -11
  40. package/src/customizations/volto/components/theme/View/ListingView.jsx +3 -3
  41. package/src/helpers/images.js +25 -1
  42. package/src/helpers/index.js +4 -1
  43. package/src/theme/ItaliaTheme/Blocks/_cardWithImage.scss +4 -0
  44. package/src/theme/ItaliaTheme/Blocks/_gridBlock.scss +9 -0
  45. package/src/theme/ItaliaTheme/Components/_cardLocationItem.scss +12 -0
  46. package/src/theme/ItaliaTheme/Components/_cardPersona.scss +19 -1
  47. package/src/theme/ItaliaTheme/Widgets/_blocksWidget.scss +36 -0
  48. package/src/theme/_cms-ui.scss +21 -0
  49. package/src/theme/bootstrap-override/_bootstrap-italia-site.scss +1 -0
  50. package/src/theme/bootstrap-override/bootstrap-italia/_avatar.scss +28 -0
Binary file
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
 
2
2
 
3
+ ## [11.26.5](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.26.4...v11.26.5) (2025-02-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * adapted cardPersona text styles to other cards ([#871](https://github.com/RedTurtle/design-comuni-plone-theme/issues/871)) ([7a25f39](https://github.com/RedTurtle/design-comuni-plone-theme/commit/7a25f39ba8f8f7f6ff92083767af514aa2a25061))
9
+ * changed cookies menu button icon ([#869](https://github.com/RedTurtle/design-comuni-plone-theme/issues/869)) ([fc5fb76](https://github.com/RedTurtle/design-comuni-plone-theme/commit/fc5fb7614c277e32c972a059a46a193d09c1c5f0))
10
+ * changed styles of headings for text editor in cts ([#864](https://github.com/RedTurtle/design-comuni-plone-theme/issues/864)) ([004e6b7](https://github.com/RedTurtle/design-comuni-plone-theme/commit/004e6b77bce8f544102a49f2158523aac6533200))
11
+ * grid block on mobile ([#873](https://github.com/RedTurtle/design-comuni-plone-theme/issues/873)) ([e4823db](https://github.com/RedTurtle/design-comuni-plone-theme/commit/e4823dbe8481a635a74a6d6ac5272ea39bb8626f))
12
+ * image checks and ListingImage ([#861](https://github.com/RedTurtle/design-comuni-plone-theme/issues/861)) ([c2f10fb](https://github.com/RedTurtle/design-comuni-plone-theme/commit/c2f10fbbbc67483f69bd8c9e528684e8cfcd391e))
13
+ * improved alignment of topic links in card with image ([#866](https://github.com/RedTurtle/design-comuni-plone-theme/issues/866)) ([fcabb1d](https://github.com/RedTurtle/design-comuni-plone-theme/commit/fcabb1d22107b62880bfd82983ec1ff13a0f9342))
14
+ * layout and style issues, customized _avatar.scss to be figma compliant ([#876](https://github.com/RedTurtle/design-comuni-plone-theme/issues/876)) ([be54848](https://github.com/RedTurtle/design-comuni-plone-theme/commit/be548486e1f78fa68b2cbbed21a03d151d0b4344))
15
+ * listing template attachments download and display file ([#868](https://github.com/RedTurtle/design-comuni-plone-theme/issues/868)) ([ffd4f4f](https://github.com/RedTurtle/design-comuni-plone-theme/commit/ffd4f4f831792403fef6da681c669ab7a9bdb054))
16
+ * locales ([97e62fb](https://github.com/RedTurtle/design-comuni-plone-theme/commit/97e62fb694249d25dd8a77af9ce791fba2b16eda))
17
+ * news item text rendering race condition ([#859](https://github.com/RedTurtle/design-comuni-plone-theme/issues/859)) ([e40680f](https://github.com/RedTurtle/design-comuni-plone-theme/commit/e40680f3c96e40242ecd16885829219bc489f563))
18
+ * rearranged contacts section for events ([#862](https://github.com/RedTurtle/design-comuni-plone-theme/issues/862)) ([e7806d4](https://github.com/RedTurtle/design-comuni-plone-theme/commit/e7806d474b003e009d6fba0a833206cd47076712))
19
+ * select input a11y ([#856](https://github.com/RedTurtle/design-comuni-plone-theme/issues/856)) ([93fcb6c](https://github.com/RedTurtle/design-comuni-plone-theme/commit/93fcb6cc92dcabd887e5ea0fe01898ecd1ffe8cd))
20
+ * updated volto-venue to restore copyright and improve a11y ([#877](https://github.com/RedTurtle/design-comuni-plone-theme/issues/877)) ([7278621](https://github.com/RedTurtle/design-comuni-plone-theme/commit/727862199c03ec8c349e4b9f80d9e63ff40ebcc3))
21
+
22
+
23
+ ### Documentation
24
+
25
+ * updated publiccode and release log ([4327d47](https://github.com/RedTurtle/design-comuni-plone-theme/commit/4327d474db85463b763f8fc80ed4cf6e38fd681e))
26
+
3
27
  ## [11.26.4](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.26.3...v11.26.4) (2025-01-16)
4
28
 
5
29
 
package/RELEASE.md CHANGED
@@ -41,6 +41,28 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 11.26.5 (06/02/2025)
45
+
46
+ ### Migliorie
47
+
48
+ - La sezione contatti del CT Evento è stata riorganizzata per una maggiore chiarezza e coerenza.
49
+ - Nei blocchi elenco, gli stili dei testi nelle card che richiamano un CT persona sono conformi alle card che rappresentano gli altri CT.
50
+ - Impostando degli heading all'interno delle sezioni di testo nei vari CT, gli stili sono ora coerenti con l'ordine corretto dei titoli utilizzati.
51
+ - Aggiornate le traduzioni italiane.
52
+ - Nella sezione Documenti della vista dei tipi di contenuto Documento vengono ora mostrati sia i Moduli che i Collegamenti.
53
+
54
+ ### Fix
55
+
56
+ - I bottoni del menu nel pannello di controllo dei cookies visualizzano correttamente le icone.
57
+ - Gli argomenti nelle card con immagine sono allineati correttamente.
58
+ - Sistemata l'opzione "Mostra i PDF in anteprima" dell template "Allegati" del blocco elenco, perchè non aveva alcun effetto.
59
+ - Sistemata la visualizzazione del blocco griglia su mobile: disposti verticalmente ogni blocco della griglia
60
+ - Sistemata l'opzione "Mostra i PDF in anteprima" dell template "Allegati" del blocco elenco, perchè non aveva alcun effetto.
61
+ - Sistemata la visualizzazione del blocco griglia su mobile: disposti verticalmente ogni blocco della griglia
62
+ - Sistemata la visualizzazione delle card con immagine in cui il contenuto rappresentato non ha un'immagine da mostrare.
63
+ - Migliorata l'accessibilità in modifica dei blocchi Contatti, Icone, Numeri.
64
+ - Sistemati alcuni problemi di visualizzazione delle card con avatar.
65
+
44
66
  ## Versione 11.26.3 (15/01/2025)
45
67
 
46
68
  ### Fix
@@ -568,6 +568,11 @@ msgstr ""
568
568
  msgid "Select all or none"
569
569
  msgstr ""
570
570
 
571
+ #: components/SelectInput/SelectInput
572
+ # defaultMessage: Seleziona un'opzione
573
+ msgid "SelectInput_default_label"
574
+ msgstr ""
575
+
571
576
  #: components/ItaliaTheme/manage/Widgets/FileWidget
572
577
  # defaultMessage: Seleziona un file
573
578
  msgid "Seleziona un file"
@@ -2857,16 +2862,11 @@ msgstr ""
2857
2862
  msgid "order_by"
2858
2863
  msgstr ""
2859
2864
 
2860
- #: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno
2865
+ #: components/ItaliaTheme/View/EventoView/EventoOrganizzatoDa
2861
2866
  # defaultMessage: Organizzato da
2862
2867
  msgid "organizzato_da"
2863
2868
  msgstr ""
2864
2869
 
2865
- #: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
2866
- # defaultMessage: Organizzatore
2867
- msgid "organizzatore"
2868
- msgstr ""
2869
-
2870
2870
  #: components/ItaliaTheme/View/Commons/TrasparenzaFields
2871
2871
  #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
2872
2872
  # defaultMessage: Organo competente adozione provvedimento finale
@@ -2914,6 +2914,7 @@ msgstr ""
2914
2914
  msgid "parteciperanno"
2915
2915
  msgstr ""
2916
2916
 
2917
+ #: components/ItaliaTheme/View/EventoView/EventoPatrocinatoDa
2917
2918
  #: components/ItaliaTheme/View/EventoView/EventoUlterioriInformazioni
2918
2919
  # defaultMessage: Patrocinato da
2919
2920
  msgid "patrocinato_da"
@@ -3752,7 +3753,7 @@ msgid "show_only_first_ribbon"
3752
3753
  msgstr ""
3753
3754
 
3754
3755
  #: config/Blocks/ListingOptions/attachmentCardTemplate
3755
- # defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati.
3756
+ # defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata. Se non impostato, i PDF vengono scaricati.
3756
3757
  msgid "show_pdf_desc"
3757
3758
  msgstr ""
3758
3759
 
@@ -553,6 +553,11 @@ msgstr "Select all content types or none"
553
553
  msgid "Select all or none"
554
554
  msgstr "Select all or none"
555
555
 
556
+ #: components/SelectInput/SelectInput
557
+ # defaultMessage: Seleziona un'opzione
558
+ msgid "SelectInput_default_label"
559
+ msgstr ""
560
+
556
561
  #: components/ItaliaTheme/manage/Widgets/FileWidget
557
562
  # defaultMessage: Seleziona un file
558
563
  msgid "Seleziona un file"
@@ -2842,16 +2847,11 @@ msgstr "Opening time"
2842
2847
  msgid "order_by"
2843
2848
  msgstr "Order by"
2844
2849
 
2845
- #: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno
2850
+ #: components/ItaliaTheme/View/EventoView/EventoOrganizzatoDa
2846
2851
  # defaultMessage: Organizzato da
2847
2852
  msgid "organizzato_da"
2848
2853
  msgstr "Organized by"
2849
2854
 
2850
- #: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
2851
- # defaultMessage: Organizzatore
2852
- msgid "organizzatore"
2853
- msgstr "Organizer"
2854
-
2855
2855
  #: components/ItaliaTheme/View/Commons/TrasparenzaFields
2856
2856
  #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
2857
2857
  # defaultMessage: Organo competente adozione provvedimento finale
@@ -2899,6 +2899,7 @@ msgstr "Page selector"
2899
2899
  msgid "parteciperanno"
2900
2900
  msgstr "Will participate"
2901
2901
 
2902
+ #: components/ItaliaTheme/View/EventoView/EventoPatrocinatoDa
2902
2903
  #: components/ItaliaTheme/View/EventoView/EventoUlterioriInformazioni
2903
2904
  # defaultMessage: Patrocinato da
2904
2905
  msgid "patrocinato_da"
@@ -3737,9 +3738,9 @@ msgid "show_only_first_ribbon"
3737
3738
  msgstr ""
3738
3739
 
3739
3740
  #: config/Blocks/ListingOptions/attachmentCardTemplate
3740
- # defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati.
3741
+ # defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata. Se non impostato, i PDF vengono scaricati.
3741
3742
  msgid "show_pdf_desc"
3742
- msgstr "Allows you to open the preview of all the PDFs in this list in a separate tab otherwise they will be downloaded."
3743
+ msgstr "Allows preview of all PDF files in this list to be opened in a separate tab. If not set, PDF files are downloaded instead."
3743
3744
 
3744
3745
  #: config/Blocks/ListingOptions/attachmentCardTemplate
3745
3746
  # defaultMessage: Mostra i PDF in anteprima
@@ -562,6 +562,11 @@ msgstr "Seleccione todos los tipos de contenido o ninguno"
562
562
  msgid "Select all or none"
563
563
  msgstr "Seleccionar todo o ninguno"
564
564
 
565
+ #: components/SelectInput/SelectInput
566
+ # defaultMessage: Seleziona un'opzione
567
+ msgid "SelectInput_default_label"
568
+ msgstr ""
569
+
565
570
  #: components/ItaliaTheme/manage/Widgets/FileWidget
566
571
  # defaultMessage: Seleziona un file
567
572
  msgid "Seleziona un file"
@@ -2851,16 +2856,11 @@ msgstr "Hora de apertura"
2851
2856
  msgid "order_by"
2852
2857
  msgstr "Ordenado por"
2853
2858
 
2854
- #: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno
2859
+ #: components/ItaliaTheme/View/EventoView/EventoOrganizzatoDa
2855
2860
  # defaultMessage: Organizzato da
2856
2861
  msgid "organizzato_da"
2857
2862
  msgstr ""
2858
2863
 
2859
- #: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
2860
- # defaultMessage: Organizzatore
2861
- msgid "organizzatore"
2862
- msgstr ""
2863
-
2864
2864
  #: components/ItaliaTheme/View/Commons/TrasparenzaFields
2865
2865
  #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
2866
2866
  # defaultMessage: Organo competente adozione provvedimento finale
@@ -2908,6 +2908,7 @@ msgstr ""
2908
2908
  msgid "parteciperanno"
2909
2909
  msgstr "Participara"
2910
2910
 
2911
+ #: components/ItaliaTheme/View/EventoView/EventoPatrocinatoDa
2911
2912
  #: components/ItaliaTheme/View/EventoView/EventoUlterioriInformazioni
2912
2913
  # defaultMessage: Patrocinato da
2913
2914
  msgid "patrocinato_da"
@@ -3746,7 +3747,7 @@ msgid "show_only_first_ribbon"
3746
3747
  msgstr "Mostrar la cinta solo en la primera tarjeta"
3747
3748
 
3748
3749
  #: config/Blocks/ListingOptions/attachmentCardTemplate
3749
- # defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati.
3750
+ # defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata. Se non impostato, i PDF vengono scaricati.
3750
3751
  msgid "show_pdf_desc"
3751
3752
  msgstr "Le permite abrir la vista previa de todos los archivos PDF en esta lista en una pestaña separada, de lo contrario, se descargarán."
3752
3753
 
@@ -570,6 +570,11 @@ msgstr "Sélectionner tous les types de contenu ou aucun"
570
570
  msgid "Select all or none"
571
571
  msgstr "Sélectionner tout ou aucun"
572
572
 
573
+ #: components/SelectInput/SelectInput
574
+ # defaultMessage: Seleziona un'opzione
575
+ msgid "SelectInput_default_label"
576
+ msgstr ""
577
+
573
578
  #: components/ItaliaTheme/manage/Widgets/FileWidget
574
579
  # defaultMessage: Seleziona un file
575
580
  msgid "Seleziona un file"
@@ -2859,16 +2864,11 @@ msgstr "Horaire d'ouverture"
2859
2864
  msgid "order_by"
2860
2865
  msgstr "Trier par"
2861
2866
 
2862
- #: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno
2867
+ #: components/ItaliaTheme/View/EventoView/EventoOrganizzatoDa
2863
2868
  # defaultMessage: Organizzato da
2864
2869
  msgid "organizzato_da"
2865
2870
  msgstr ""
2866
2871
 
2867
- #: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
2868
- # defaultMessage: Organizzatore
2869
- msgid "organizzatore"
2870
- msgstr ""
2871
-
2872
2872
  #: components/ItaliaTheme/View/Commons/TrasparenzaFields
2873
2873
  #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
2874
2874
  # defaultMessage: Organo competente adozione provvedimento finale
@@ -2916,6 +2916,7 @@ msgstr ""
2916
2916
  msgid "parteciperanno"
2917
2917
  msgstr "Participants"
2918
2918
 
2919
+ #: components/ItaliaTheme/View/EventoView/EventoPatrocinatoDa
2919
2920
  #: components/ItaliaTheme/View/EventoView/EventoUlterioriInformazioni
2920
2921
  # defaultMessage: Patrocinato da
2921
2922
  msgid "patrocinato_da"
@@ -3754,7 +3755,7 @@ msgid "show_only_first_ribbon"
3754
3755
  msgstr ""
3755
3756
 
3756
3757
  #: config/Blocks/ListingOptions/attachmentCardTemplate
3757
- # defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati.
3758
+ # defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata. Se non impostato, i PDF vengono scaricati.
3758
3759
  msgid "show_pdf_desc"
3759
3760
  msgstr "Permet d'ouvrir l'aperçu de tous les PDF de cette liste dans un onglet séparé sinon ils seront téléchargés."
3760
3761
 
@@ -553,6 +553,11 @@ msgstr "Seleziona tutti i tipi di contenuti o nessuno"
553
553
  msgid "Select all or none"
554
554
  msgstr "Seleziona tutti o nessuno"
555
555
 
556
+ #: components/SelectInput/SelectInput
557
+ # defaultMessage: Seleziona un'opzione
558
+ msgid "SelectInput_default_label"
559
+ msgstr ""
560
+
556
561
  #: components/ItaliaTheme/manage/Widgets/FileWidget
557
562
  # defaultMessage: Seleziona un file
558
563
  msgid "Seleziona un file"
@@ -2842,16 +2847,11 @@ msgstr "Orario per il pubblico"
2842
2847
  msgid "order_by"
2843
2848
  msgstr "Ordina per"
2844
2849
 
2845
- #: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno
2850
+ #: components/ItaliaTheme/View/EventoView/EventoOrganizzatoDa
2846
2851
  # defaultMessage: Organizzato da
2847
2852
  msgid "organizzato_da"
2848
2853
  msgstr "Organizzato da"
2849
2854
 
2850
- #: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
2851
- # defaultMessage: Organizzatore
2852
- msgid "organizzatore"
2853
- msgstr ""
2854
-
2855
2855
  #: components/ItaliaTheme/View/Commons/TrasparenzaFields
2856
2856
  #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
2857
2857
  # defaultMessage: Organo competente adozione provvedimento finale
@@ -2899,6 +2899,7 @@ msgstr "Selettore di pagina"
2899
2899
  msgid "parteciperanno"
2900
2900
  msgstr "Parteciperanno"
2901
2901
 
2902
+ #: components/ItaliaTheme/View/EventoView/EventoPatrocinatoDa
2902
2903
  #: components/ItaliaTheme/View/EventoView/EventoUlterioriInformazioni
2903
2904
  # defaultMessage: Patrocinato da
2904
2905
  msgid "patrocinato_da"
@@ -3737,9 +3738,9 @@ msgid "show_only_first_ribbon"
3737
3738
  msgstr "Mostra il nastro solo sulla prima card"
3738
3739
 
3739
3740
  #: config/Blocks/ListingOptions/attachmentCardTemplate
3740
- # defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati.
3741
+ # defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata. Se non impostato, i PDF vengono scaricati.
3741
3742
  msgid "show_pdf_desc"
3742
- msgstr "Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati."
3743
+ msgstr "Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata. Se non impostato, i PDF vengono scaricati."
3743
3744
 
3744
3745
  #: config/Blocks/ListingOptions/attachmentCardTemplate
3745
3746
  # defaultMessage: Mostra i PDF in anteprima
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: 2025-01-03T12:21:33.430Z\n"
4
+ "POT-Creation-Date: 2025-02-06T14:26:38.454Z\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"
@@ -555,6 +555,11 @@ msgstr ""
555
555
  msgid "Select all or none"
556
556
  msgstr ""
557
557
 
558
+ #: components/SelectInput/SelectInput
559
+ # defaultMessage: Seleziona un'opzione
560
+ msgid "SelectInput_default_label"
561
+ msgstr ""
562
+
558
563
  #: components/ItaliaTheme/manage/Widgets/FileWidget
559
564
  # defaultMessage: Seleziona un file
560
565
  msgid "Seleziona un file"
@@ -2844,16 +2849,11 @@ msgstr ""
2844
2849
  msgid "order_by"
2845
2850
  msgstr ""
2846
2851
 
2847
- #: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno
2852
+ #: components/ItaliaTheme/View/EventoView/EventoOrganizzatoDa
2848
2853
  # defaultMessage: Organizzato da
2849
2854
  msgid "organizzato_da"
2850
2855
  msgstr ""
2851
2856
 
2852
- #: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
2853
- # defaultMessage: Organizzatore
2854
- msgid "organizzatore"
2855
- msgstr ""
2856
-
2857
2857
  #: components/ItaliaTheme/View/Commons/TrasparenzaFields
2858
2858
  #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
2859
2859
  # defaultMessage: Organo competente adozione provvedimento finale
@@ -2901,6 +2901,7 @@ msgstr ""
2901
2901
  msgid "parteciperanno"
2902
2902
  msgstr ""
2903
2903
 
2904
+ #: components/ItaliaTheme/View/EventoView/EventoPatrocinatoDa
2904
2905
  #: components/ItaliaTheme/View/EventoView/EventoUlterioriInformazioni
2905
2906
  # defaultMessage: Patrocinato da
2906
2907
  msgid "patrocinato_da"
@@ -3739,7 +3740,7 @@ msgid "show_only_first_ribbon"
3739
3740
  msgstr ""
3740
3741
 
3741
3742
  #: config/Blocks/ListingOptions/attachmentCardTemplate
3742
- # defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati.
3743
+ # defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata. Se non impostato, i PDF vengono scaricati.
3743
3744
  msgid "show_pdf_desc"
3744
3745
  msgstr ""
3745
3746
 
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.4",
5
+ "version": "11.26.5",
6
6
  "main": "src/index.js",
7
7
  "repository": {
8
8
  "type": "git",
@@ -165,7 +165,7 @@
165
165
  "volto-subblocks": "2.1.0",
166
166
  "volto-subfooter": "3.1.1",
167
167
  "volto-subsites": "4.0.2",
168
- "volto-venue": "4.1.0",
168
+ "volto-venue": "4.1.1",
169
169
  "webpack-image-resize-loader": "^5.0.0"
170
170
  },
171
171
  "devDependencies": {
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-01-16'
230
+ releaseDate: '2025-02-06'
231
231
  softwareType: standalone/web
232
- softwareVersion: 11.26.4
232
+ softwareVersion: 11.26.5
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -11,7 +11,6 @@ const ImageWithErrors = ({ src, fallbackSrc = '', ...rest }) => {
11
11
  className,
12
12
  sizes,
13
13
  });
14
-
15
14
  let commonProps = { ...rest };
16
15
  const fallbackStyle = getFallbackImageStyle({
17
16
  src,
@@ -52,16 +52,18 @@ const AttachmentCardTemplate = ({
52
52
  {items.map((item, index) => {
53
53
  let itemUrl = { ...item };
54
54
  //la parte qui sotto commentata non serve perchè gestisce gia tutto UniversalLink e in view si vedrebbe /@@download/file duplicato nell url
55
- // if (item['@type'] === 'File') {
56
- // itemUrl = {
57
- // ...item,
58
- // file: item,
59
- // '@id':
60
- // show_pdf_preview && item?.mime_type === 'application/pdf'
61
- // ? item?.['@id'] + '/@@display-file/file'
62
- // : item?.['@id'] + '/@@download/file',
63
- // };
64
- // }
55
+ if (
56
+ item['@type'] === 'File' &&
57
+ item?.mime_type === 'application/pdf'
58
+ ) {
59
+ itemUrl = {
60
+ ...item,
61
+ file: item,
62
+ '@id': show_pdf_preview
63
+ ? item?.['@id'] + '/@@display-file/file'
64
+ : item?.['@id'] + '/@@download/file',
65
+ };
66
+ }
65
67
 
66
68
  return (
67
69
  <Card
@@ -86,6 +88,7 @@ const AttachmentCardTemplate = ({
86
88
  item={!isEditMode ? itemUrl : null}
87
89
  href={isEditMode ? '#' : null}
88
90
  data-element={id_lighthouse}
91
+ download={!show_pdf_preview}
89
92
  >
90
93
  {item.title || item.id}
91
94
  </UniversalLink>
@@ -21,6 +21,7 @@ import {
21
21
  getCalendarDate,
22
22
  getEventRecurrenceMore,
23
23
  getComponentWithFallback,
24
+ contentHasImage,
24
25
  } from 'design-comuni-plone-theme/helpers';
25
26
  import { getCategory } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Listing/Commons/utils';
26
27
 
@@ -61,10 +62,10 @@ const CardWithImageDefault = (props) => {
61
62
  : getEventRecurrenceMore(item, isEditMode);
62
63
  const listingText = show_description ? <ListingText item={item} /> : null;
63
64
 
64
- const image = ListingImage({ item, showTitleAttr: false });
65
-
66
- const showImage =
67
- (index < imagesToShow || always_show_image) && image != null;
65
+ const showImage = contentHasImage(
66
+ item,
67
+ index < imagesToShow || always_show_image,
68
+ );
68
69
  const category = getCategory(item, show_type, show_section, props);
69
70
  const topics = show_topics ? item.tassonomia_argomenti : null;
70
71
 
@@ -72,7 +73,6 @@ const CardWithImageDefault = (props) => {
72
73
  name: 'BlockExtraTags',
73
74
  dependencies: ['CardWithImageDefault', item['@type']],
74
75
  }).component;
75
-
76
76
  const isEventAppointment =
77
77
  item?.parent?.['@type'] === 'Event' && item?.['@type'] === 'Event';
78
78
 
@@ -106,7 +106,7 @@ const CardWithImageDefault = (props) => {
106
106
  })}
107
107
  >
108
108
  <div className="img-responsive img-responsive-panoramic">
109
- {image}
109
+ <ListingImage item={item} showTitleAttr={false} />
110
110
  {item['@type'] === 'Event' && (
111
111
  <CardCalendar
112
112
  start={item.start}
@@ -151,7 +151,7 @@ const CardWithImageDefault = (props) => {
151
151
  <BlockExtraTags {...props} item={item} itemIndex={index} />
152
152
  {topics?.length > 0 && (
153
153
  <div
154
- className={cx('', {
154
+ className={cx('card-with-image-additional-links', {
155
155
  'mb-3': eventRecurrenceMore,
156
156
  })}
157
157
  >
@@ -1,8 +1,19 @@
1
1
  import { UniversalLink } from '@plone/volto/components';
2
2
  import DefaultImageSVG from '@plone/volto/components/manage/Blocks/Listing/default-image.svg';
3
3
  import { flattenToAppURL } from '@plone/volto/helpers';
4
+ import { contentHasImage } from 'design-comuni-plone-theme/helpers';
4
5
  import config from '@plone/volto/registry';
5
6
 
7
+ const ListingImageWrapper = ({ children, item, noWrapLink }) => {
8
+ return noWrapLink ? (
9
+ children
10
+ ) : (
11
+ <UniversalLink item={item} className="img-wrapper">
12
+ {children}
13
+ </UniversalLink>
14
+ );
15
+ };
16
+
6
17
  const ListingImage = ({
7
18
  item = {},
8
19
  loading = 'lazy',
@@ -14,6 +25,26 @@ const ListingImage = ({
14
25
  noWrapLink = false,
15
26
  ...imageProps
16
27
  }) => {
28
+ if (!contentHasImage(item) && !imageProps?.image_field) {
29
+ if (showDefault) {
30
+ return (
31
+ <ListingImageWrapper item={item} noWrapLink={noWrapLink}>
32
+ <img
33
+ src={DefaultImageSVG}
34
+ alt=""
35
+ sizes={sizes}
36
+ aria-hidden={true}
37
+ role="presentation"
38
+ className="listing-image responsive"
39
+ style={{
40
+ minHeight: 'unset',
41
+ height: '100%',
42
+ }}
43
+ />
44
+ </ListingImageWrapper>
45
+ );
46
+ } else return null;
47
+ }
17
48
  const Image = config.getComponent({ name: 'Image' }).component;
18
49
  let commonImageProps = {
19
50
  item,
@@ -28,20 +59,11 @@ const ListingImage = ({
28
59
  };
29
60
  if (showTitleAttr)
30
61
  commonImageProps = { ...commonImageProps, title: item.title };
31
- // photogallery needs to check for null image
32
- // https://stackoverflow.com/questions/33136399/is-there-a-way-to-tell-if-reactelement-renders-null
33
-
34
- const image = Image(commonImageProps);
35
- const defaultImage = <img src={DefaultImageSVG} alt="" />;
36
-
37
- if (image === null && !showDefault) return null;
38
62
 
39
- return !noWrapLink ? (
40
- <UniversalLink item={item} className="img-wrapper">
41
- {image ?? defaultImage}
42
- </UniversalLink>
43
- ) : (
44
- image ?? defaultImage
63
+ return (
64
+ <ListingImageWrapper item={item} noWrapLink={noWrapLink}>
65
+ <Image {...commonImageProps} />
66
+ </ListingImageWrapper>
45
67
  );
46
68
  };
47
69
 
@@ -19,7 +19,10 @@ import {
19
19
  ListingImage,
20
20
  } from 'design-comuni-plone-theme/components/ItaliaTheme';
21
21
  import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme';
22
- import { getComponentWithFallback } from 'design-comuni-plone-theme/helpers';
22
+ import {
23
+ getComponentWithFallback,
24
+ contentHasImage,
25
+ } from 'design-comuni-plone-theme/helpers';
23
26
  import { isInternalURL } from '@plone/volto/helpers/Url/Url';
24
27
 
25
28
  import config from '@plone/volto/registry';
@@ -56,14 +59,7 @@ const CompleteBlockLinksTemplate = (props) => {
56
59
  )}
57
60
  <Row className="items">
58
61
  {items.map((item, index) => {
59
- const image = ListingImage({
60
- item,
61
- className: '',
62
- sizes: '60px',
63
- showTitleAttr: false,
64
- alt: item.title,
65
- });
66
-
62
+ const hasImage = contentHasImage(item);
67
63
  const BlockExtraTags = getComponentWithFallback({
68
64
  name: 'BlockExtraTags',
69
65
  dependencies: ['CompleteBlockLinksTemplate', item['@type']],
@@ -84,7 +80,17 @@ const CompleteBlockLinksTemplate = (props) => {
84
80
  className={'no-external-if-link'}
85
81
  >
86
82
  <div className="d-flex">
87
- {image && <div className="image-container">{image}</div>}
83
+ {hasImage && (
84
+ <div className="image-container">
85
+ <ListingImage
86
+ item={item}
87
+ className=""
88
+ sizes="60px"
89
+ showTitleAttr={false}
90
+ alt={item.title}
91
+ />
92
+ </div>
93
+ )}
88
94
  <div>
89
95
  <CardBody>
90
96
  <CardTitle tag="h3" className="text-secondary">
@@ -23,6 +23,7 @@ import {
23
23
  getCalendarDate,
24
24
  getEventRecurrenceMore,
25
25
  getComponentWithFallback,
26
+ contentHasImage,
26
27
  } from 'design-comuni-plone-theme/helpers';
27
28
  import {
28
29
  ListingCategory,
@@ -66,13 +67,7 @@ const ContentInEvidenceTemplate = (props) => {
66
67
  const date = getCalendarDate(item, rrule.rrulestr);
67
68
  const eventRecurrenceMore = getEventRecurrenceMore(item, isEditMode);
68
69
  const listingText = <ListingText item={item} />;
69
- const image = ListingImage({
70
- item,
71
- className: 'item-image',
72
- loading: 'eager',
73
- sizes: '(max-width:425px) 400px, (max-width:767px) 520px, 650px',
74
- showTitleAttr: false,
75
- });
70
+ const hasImage = contentHasImage(item);
76
71
  const icon = getItemIcon(item);
77
72
  const BlockExtraTags = getComponentWithFallback({
78
73
  name: 'BlockExtraTags',
@@ -84,8 +79,16 @@ const ContentInEvidenceTemplate = (props) => {
84
79
 
85
80
  return (
86
81
  <Row key={item['@id']} className="content-in-evidence">
87
- {image && (
88
- <Col lg={{ size: 6, offset: 1, order: 2 }}>{image}</Col>
82
+ {hasImage && (
83
+ <Col lg={{ size: 6, offset: 1, order: 2 }}>
84
+ <ListingImage
85
+ item={item}
86
+ className="item-image"
87
+ loading="eager"
88
+ sizes="(max-width:425px) 400px, (max-width:767px) 520px, 650px"
89
+ showTitleAttr={false}
90
+ />
91
+ </Col>
89
92
  )}
90
93
  <Col lg={{ size: 5, order: 1 }}>
91
94
  <Card>