diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d418d078..fc2bce8eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,46 @@ +## [11.8.1](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.8.0...v11.8.1) (2024-03-26) + + +### Bug Fixes + +* moved HeaderSlim compoonent inside his folder to enable customizations ([#602](https://github.com/redturtle/design-comuni-plone-theme/issues/602)) ([38c6f3d](https://github.com/redturtle/design-comuni-plone-theme/commit/38c6f3d1312f3b7dbd2e73875cc51af0811adabd)) +* view background image in icons block ([#580](https://github.com/redturtle/design-comuni-plone-theme/issues/580)) ([fee11d1](https://github.com/redturtle/design-comuni-plone-theme/commit/fee11d1126f764d1cb4b3cde720714a1f2934b75)) +* volto-form-block ([#600](https://github.com/redturtle/design-comuni-plone-theme/issues/600)) ([9ac3cac](https://github.com/redturtle/design-comuni-plone-theme/commit/9ac3cac30ff846ae716b73fd1db2019e01760adc)) + + +### Documentation + +* updated publiccode ([ac87cf3](https://github.com/redturtle/design-comuni-plone-theme/commit/ac87cf398b789b1cd9dcd3c4cfed3030e8809499)) + +## [11.8.0](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.7.0...v11.8.0) (2024-03-19) + + +### Features + +* added download link to filename in file widget ([#587](https://github.com/redturtle/design-comuni-plone-theme/issues/587)) ([96649e2](https://github.com/redturtle/design-comuni-plone-theme/commit/96649e29e79a7b71bf93a27406baa4fc1994a213)) +* print styles for UO ([#581](https://github.com/redturtle/design-comuni-plone-theme/issues/581)) ([91b4752](https://github.com/redturtle/design-comuni-plone-theme/commit/91b47526b69b0957eba6c8e803798f4b3ffcf9bb)) +* TextWidget to add alt text to image ([#573](https://github.com/redturtle/design-comuni-plone-theme/issues/573)) ([d183f27](https://github.com/redturtle/design-comuni-plone-theme/commit/d183f2749a2604ebecb0f0df09ec8770d84c7f59)) +* updated volto-form-block with email validation ([#596](https://github.com/redturtle/design-comuni-plone-theme/issues/596)) ([c21f65b](https://github.com/redturtle/design-comuni-plone-theme/commit/c21f65bc7e54d2fa092ae4bcfbfd1c99670cab5c)) + + +### Bug Fixes + +* link in header doesn't change color when inside cms-ui ([#583](https://github.com/redturtle/design-comuni-plone-theme/issues/583)) ([d076b0a](https://github.com/redturtle/design-comuni-plone-theme/commit/d076b0a540cf3de3c9f7f08cefca27eff3917f70)) +* updated volto-querywidget-with-browser to fix infinite loops on lost reference ([#599](https://github.com/redturtle/design-comuni-plone-theme/issues/599)) ([c6d4cb6](https://github.com/redturtle/design-comuni-plone-theme/commit/c6d4cb6b51447514fedf2938f40031e42779644e)) +* view form block ([5ff7ea7](https://github.com/redturtle/design-comuni-plone-theme/commit/5ff7ea70474963e3dca126a44d531cc4dc17be74)) + + +### Maintenance + +* updated volto-form-block to fix view form ([80a6586](https://github.com/redturtle/design-comuni-plone-theme/commit/80a6586ac7d458c46efe51bcc4fa4a9cb3b8d619)) + + +### Documentation + +* updated publiccode and release log ([3c52c12](https://github.com/redturtle/design-comuni-plone-theme/commit/3c52c12edfed3c12a4fdac212b9f229644bf913f)) + ## [11.7.0](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.6.2...v11.7.0) (2024-03-15) diff --git a/RELEASE.md b/RELEASE.md index 441380812..89af4eb23 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -34,7 +34,7 @@ ### Novità -- ... [`Istruzioni`](url della documentazione relativa alla novità) +- ... ### Fix @@ -46,6 +46,36 @@ ### Novità - Ora i link in testata nell'header slim sono configurabili da pannello di controllo +## Versione X.X.X (dd/mm/yyyy) + +### Migliorie + +- Migliorata l'accessibilità del bottone "Ricerca". +- Migliorata l'accessibilità del blocco Icone. + +### Novità + +- Aggiunto una nuova variazione del blocco elenco "Allegati" che permette di scaricare oggetti di tipo File o aprire l'anteprima di file PDF. + +### Fix + +- L'etichetta della Card con Nastro (Blocco Elenco) non si sovrappone più all'immagine del nastro. +- Aggiustato il layout della card per il CT persone quando è impostata un'immagine. + +## Versione 11.8.0 (19/03/2024) + +### Migliorie + +- Gli stili del tipo di contenuto Unità Organizzativa sono stati ottimizzati per la stampa. + +### Novità + +- È possibile scaricare il file o l'immagine caricata dal widget di upload file cliccando sul nome del file stesso. +- È possibile aggiungere un testo alternativo per l'immagine del blocco Card con Immagine. + +### Fix + +- Nel blocco con icone, se era impostata una immagine di sfondo non si vedeva. ## Versione 11.7.0 (15/03/2024) diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index 986324175..a390876f4 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -778,6 +778,11 @@ msgstr "" msgid "allegati" msgstr "" +#: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar +# defaultMessage: Testo alternativo per l'immagine +msgid "altText" +msgstr "" + #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti # defaultMessage: Altre cariche msgid "altre_cariche" @@ -834,6 +839,12 @@ msgstr "" msgid "argoment" msgstr "" +#: components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate +#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateCompact +# defaultMessage: Icona {type} +msgid "argument_icon" +msgstr "" + #: components/ItaliaTheme/Blocks/ArgumentsInEvidence/Sidebar # defaultMessage: Argomenti in evidenza msgid "arguments_in_evidence_block" @@ -854,6 +865,7 @@ msgstr "" msgid "assessore_riferimento" msgstr "" +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/View/Commons/Attachment # defaultMessage: Allegato msgid "attachment" @@ -1101,7 +1113,7 @@ msgid "calendarBlockSidebarTitle" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "" @@ -1111,7 +1123,7 @@ msgid "calendar_no_results" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" msgstr "" @@ -1151,6 +1163,11 @@ msgstr "" msgid "casi_particolari" msgstr "" +#: components/ItaliaTheme/Cards/CardCategory +# defaultMessage: Icona categoria +msgid "category_icon" +msgstr "" + #: components/ItaliaTheme/Blocks/VideoGallery/Sidebar # defaultMessage: Link al canale msgid "channel_link" @@ -1209,6 +1226,11 @@ msgstr "" msgid "close-menu" msgstr "" +#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock +# defaultMessage: Chiudi l'accordion +msgid "closeAccordion" +msgstr "" + #: components/ItaliaTheme/Header/HeaderSearch/SearchModal # defaultMessage: Chiudi cerca msgid "closeSearch" @@ -1750,6 +1772,11 @@ msgstr "" msgid "downloadPlayVideo" msgstr "" +#: components/SelectInput/SelectInput +# defaultMessage: Apri il menu +msgid "dropdown_indicator" +msgstr "" + #: components/ItaliaTheme/manage/Widgets/MenuConfigurationForm # defaultMessage: Additional classes msgid "dropdownmenu-additionalClasses" @@ -2223,6 +2250,26 @@ msgstr "" msgid "iconDescription" msgstr "" +#: components/ItaliaTheme/View/Commons/Argument/ArgumentIcon +# defaultMessage: Icona per l'argomento {topic_title} +msgid "icon_title" +msgstr "" + +#: components/ItaliaTheme/View/Commons/LocationItem +# defaultMessage: Icona luoghi +msgid "icona_luoghi" +msgstr "" + +#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno +# defaultMessage: Icona telefono +msgid "icona_telefono" +msgstr "" + +#: components/ItaliaTheme/View/Commons/OfficeCard +# defaultMessage: Icona ufficio +msgid "icona_ufficio" +msgstr "" + #: components/ItaliaTheme/Blocks/IconBlocks/Sidebar # defaultMessage: Blocco con icone msgid "iconss_blocks" @@ -2295,6 +2342,7 @@ msgstr "" msgid "legend_required" msgstr "" +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/Blocks/SearchSections/SideBar # defaultMessage: Collegamento msgid "link" @@ -2604,6 +2652,16 @@ msgstr "" msgid "numero_progressivo_cs" msgstr "" +#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock +# defaultMessage: Apri l'accordion +msgid "openAccordion" +msgstr "" + +#: components/ItaliaTheme/Blocks/Listing/SliderTemplate +# defaultMessage: Apri il link +msgid "openLink" +msgstr "" + #: components/ItaliaTheme/Blocks/CTABlock/Block # defaultMessage: Apri link in una nuova scheda msgid "openLinkInNewTab" @@ -2743,7 +2801,6 @@ msgid "patrocinato_da" msgstr "" #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView -#: components/ItaliaTheme/View/VenueView/VenueContacts #: helpers/contentHelper # defaultMessage: PEC msgid "pec" @@ -2905,46 +2962,6 @@ msgstr "" msgid "riferimenti_normativi" msgstr "" -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Fax -msgid "riferimento_fax_luogo" -msgstr "" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Fax -msgid "riferimento_fax_struttura" -msgstr "" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: E-mail -msgid "riferimento_mail_luogo" -msgstr "" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: E-mail -msgid "riferimento_mail_struttura" -msgstr "" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: PEC -msgid "riferimento_pec_luogo" -msgstr "" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Telefono -msgid "riferimento_telefonico_luogo" -msgstr "" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Telefono -msgid "riferimento_telefonico_struttura" -msgstr "" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Web -msgid "riferimento_web" -msgstr "" - #: components/ItaliaTheme/View/Commons/Metadata # defaultMessage: Diritti msgid "rights" @@ -3594,6 +3611,16 @@ msgstr "" msgid "show_only_first_ribbon" msgstr "" +#: config/Blocks/ListingOptions/attachmentCardTemplate +# defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati. +msgid "show_pdf_desc" +msgstr "" + +#: config/Blocks/ListingOptions/attachmentCardTemplate +# defaultMessage: Mostra i PDF in anteprima +msgid "show_pdf_preview" +msgstr "" + #: config/Blocks/ListingOptions/simpleListTemplate # defaultMessage: Mostra elenco puntato msgid "show_pointer_list" @@ -3964,6 +3991,11 @@ msgstr "" msgid "ufficio_responsabile" msgstr "" +#: components/ItaliaTheme/View/Commons/HelpBox +# defaultMessage: Icona ulteriori informazioni +msgid "ulteriori_info" +msgstr "" + #: components/ItaliaTheme/View/Commons/TrasparenzaFields #: components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoViewNoBlocks #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index 6a0c569ee..ef6faef15 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -763,6 +763,11 @@ msgstr "All topics" msgid "allegati" msgstr "Attached documents" +#: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar +# defaultMessage: Testo alternativo per l'immagine +msgid "altText" +msgstr "" + #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti # defaultMessage: Altre cariche msgid "altre_cariche" @@ -819,6 +824,12 @@ msgstr "Responsible area" msgid "argoment" msgstr "Topic" +#: components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate +#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateCompact +# defaultMessage: Icona {type} +msgid "argument_icon" +msgstr "{type} Icon" + #: components/ItaliaTheme/Blocks/ArgumentsInEvidence/Sidebar # defaultMessage: Argomenti in evidenza msgid "arguments_in_evidence_block" @@ -839,6 +850,7 @@ msgstr "Councilor of" msgid "assessore_riferimento" msgstr "Reference councilor" +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/View/Commons/Attachment # defaultMessage: Allegato msgid "attachment" @@ -1086,7 +1098,7 @@ msgid "calendarBlockSidebarTitle" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "" @@ -1096,7 +1108,7 @@ msgid "calendar_no_results" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" msgstr "" @@ -1136,6 +1148,11 @@ msgstr "Downloadable formats" msgid "casi_particolari" msgstr "Special cases" +#: components/ItaliaTheme/Cards/CardCategory +# defaultMessage: Icona categoria +msgid "category_icon" +msgstr "Category icon" + #: components/ItaliaTheme/Blocks/VideoGallery/Sidebar # defaultMessage: Link al canale msgid "channel_link" @@ -1194,6 +1211,11 @@ msgstr "" msgid "close-menu" msgstr "" +#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock +# defaultMessage: Chiudi l'accordion +msgid "closeAccordion" +msgstr "Close the accordion" + #: components/ItaliaTheme/Header/HeaderSearch/SearchModal # defaultMessage: Chiudi cerca msgid "closeSearch" @@ -1735,6 +1757,11 @@ msgstr "Download" msgid "downloadPlayVideo" msgstr "" +#: components/SelectInput/SelectInput +# defaultMessage: Apri il menu +msgid "dropdown_indicator" +msgstr "Open the menu" + #: components/ItaliaTheme/manage/Widgets/MenuConfigurationForm # defaultMessage: Additional classes msgid "dropdownmenu-additionalClasses" @@ -2208,6 +2235,26 @@ msgstr "" msgid "iconDescription" msgstr "" +#: components/ItaliaTheme/View/Commons/Argument/ArgumentIcon +# defaultMessage: Icona per l'argomento {topic_title} +msgid "icon_title" +msgstr "Icon for {topic_title} topic" + +#: components/ItaliaTheme/View/Commons/LocationItem +# defaultMessage: Icona luoghi +msgid "icona_luoghi" +msgstr "Venues icon" + +#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno +# defaultMessage: Icona telefono +msgid "icona_telefono" +msgstr "Phone icon" + +#: components/ItaliaTheme/View/Commons/OfficeCard +# defaultMessage: Icona ufficio +msgid "icona_ufficio" +msgstr "Office icon" + #: components/ItaliaTheme/Blocks/IconBlocks/Sidebar # defaultMessage: Blocco con icone msgid "iconss_blocks" @@ -2280,6 +2327,7 @@ msgstr "Internal services or offices" msgid "legend_required" msgstr "Fields marked with (*) are required." +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/Blocks/SearchSections/SideBar # defaultMessage: Collegamento msgid "link" @@ -2589,6 +2637,16 @@ msgstr "" msgid "numero_progressivo_cs" msgstr "Press release number" +#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock +# defaultMessage: Apri l'accordion +msgid "openAccordion" +msgstr "Open the accordion" + +#: components/ItaliaTheme/Blocks/Listing/SliderTemplate +# defaultMessage: Apri il link +msgid "openLink" +msgstr "Open link" + #: components/ItaliaTheme/Blocks/CTABlock/Block # defaultMessage: Apri link in una nuova scheda msgid "openLinkInNewTab" @@ -2728,7 +2786,6 @@ msgid "patrocinato_da" msgstr "Sponsored by" #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView -#: components/ItaliaTheme/View/VenueView/VenueContacts #: helpers/contentHelper # defaultMessage: PEC msgid "pec" @@ -2890,46 +2947,6 @@ msgstr "" msgid "riferimenti_normativi" msgstr "Normative requirements" -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Fax -msgid "riferimento_fax_luogo" -msgstr "Fax" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Fax -msgid "riferimento_fax_struttura" -msgstr "Fax" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: E-mail -msgid "riferimento_mail_luogo" -msgstr "E-mail" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: E-mail -msgid "riferimento_mail_struttura" -msgstr "E-mail" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: PEC -msgid "riferimento_pec_luogo" -msgstr "PEC" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Telefono -msgid "riferimento_telefonico_luogo" -msgstr "Phone" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Telefono -msgid "riferimento_telefonico_struttura" -msgstr "Tel." - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Web -msgid "riferimento_web" -msgstr "Web" - #: components/ItaliaTheme/View/Commons/Metadata # defaultMessage: Diritti msgid "rights" @@ -3579,6 +3596,16 @@ msgstr "" msgid "show_only_first_ribbon" msgstr "" +#: config/Blocks/ListingOptions/attachmentCardTemplate +# defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati. +msgid "show_pdf_desc" +msgstr "Allows you to open the preview of all the PDFs in this list in a separate tab otherwise they will be downloaded." + +#: config/Blocks/ListingOptions/attachmentCardTemplate +# defaultMessage: Mostra i PDF in anteprima +msgid "show_pdf_preview" +msgstr "Show PDFs in preview" + #: config/Blocks/ListingOptions/simpleListTemplate # defaultMessage: Mostra elenco puntato msgid "show_pointer_list" @@ -3949,6 +3976,11 @@ msgstr "" msgid "ufficio_responsabile" msgstr "Responsible office" +#: components/ItaliaTheme/View/Commons/HelpBox +# defaultMessage: Icona ulteriori informazioni +msgid "ulteriori_info" +msgstr "Further information icon" + #: components/ItaliaTheme/View/Commons/TrasparenzaFields #: components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoViewNoBlocks #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView diff --git a/locales/es/LC_MESSAGES/volto.po b/locales/es/LC_MESSAGES/volto.po index af0188c2f..981bb5564 100644 --- a/locales/es/LC_MESSAGES/volto.po +++ b/locales/es/LC_MESSAGES/volto.po @@ -772,6 +772,11 @@ msgstr "Todos los temas" msgid "allegati" msgstr "Documentos adjuntos" +#: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar +# defaultMessage: Testo alternativo per l'immagine +msgid "altText" +msgstr "" + #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti # defaultMessage: Altre cariche msgid "altre_cariche" @@ -828,6 +833,12 @@ msgstr "Área responsable" msgid "argoment" msgstr "Tema" +#: components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate +#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateCompact +# defaultMessage: Icona {type} +msgid "argument_icon" +msgstr "" + #: components/ItaliaTheme/Blocks/ArgumentsInEvidence/Sidebar # defaultMessage: Argomenti in evidenza msgid "arguments_in_evidence_block" @@ -848,6 +859,7 @@ msgstr "Concejal de" msgid "assessore_riferimento" msgstr "Concejal de referencia" +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/View/Commons/Attachment # defaultMessage: Allegato msgid "attachment" @@ -1095,7 +1107,7 @@ msgid "calendarBlockSidebarTitle" msgstr "Calendario" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "Próximo" @@ -1105,7 +1117,7 @@ msgid "calendar_no_results" msgstr "No hay eventos disponibles en este momento" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" msgstr "Precedente" @@ -1145,6 +1157,11 @@ msgstr "Formatos descargables" msgid "casi_particolari" msgstr "Casos especiales" +#: components/ItaliaTheme/Cards/CardCategory +# defaultMessage: Icona categoria +msgid "category_icon" +msgstr "" + #: components/ItaliaTheme/Blocks/VideoGallery/Sidebar # defaultMessage: Link al canale msgid "channel_link" @@ -1203,6 +1220,11 @@ msgstr "" msgid "close-menu" msgstr "" +#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock +# defaultMessage: Chiudi l'accordion +msgid "closeAccordion" +msgstr "" + #: components/ItaliaTheme/Header/HeaderSearch/SearchModal # defaultMessage: Chiudi cerca msgid "closeSearch" @@ -1744,6 +1766,11 @@ msgstr "Descargar" msgid "downloadPlayVideo" msgstr "" +#: components/SelectInput/SelectInput +# defaultMessage: Apri il menu +msgid "dropdown_indicator" +msgstr "" + #: components/ItaliaTheme/manage/Widgets/MenuConfigurationForm # defaultMessage: Additional classes msgid "dropdownmenu-additionalClasses" @@ -2217,6 +2244,26 @@ msgstr "Icono" msgid "iconDescription" msgstr "Puede seleccionar un icono de los propuestos en el menú desplegable o puede escribir/pegar el nombre de un icono 'fontawesome 5' en el campo de texto" +#: components/ItaliaTheme/View/Commons/Argument/ArgumentIcon +# defaultMessage: Icona per l'argomento {topic_title} +msgid "icon_title" +msgstr "" + +#: components/ItaliaTheme/View/Commons/LocationItem +# defaultMessage: Icona luoghi +msgid "icona_luoghi" +msgstr "" + +#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno +# defaultMessage: Icona telefono +msgid "icona_telefono" +msgstr "" + +#: components/ItaliaTheme/View/Commons/OfficeCard +# defaultMessage: Icona ufficio +msgid "icona_ufficio" +msgstr "" + #: components/ItaliaTheme/Blocks/IconBlocks/Sidebar # defaultMessage: Blocco con icone msgid "iconss_blocks" @@ -2289,6 +2336,7 @@ msgstr "Servicios internos u oficinas" msgid "legend_required" msgstr "" +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/Blocks/SearchSections/SideBar # defaultMessage: Collegamento msgid "link" @@ -2598,6 +2646,16 @@ msgstr "Bloque de números" msgid "numero_progressivo_cs" msgstr "Número de comunicado de prensa" +#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock +# defaultMessage: Apri l'accordion +msgid "openAccordion" +msgstr "" + +#: components/ItaliaTheme/Blocks/Listing/SliderTemplate +# defaultMessage: Apri il link +msgid "openLink" +msgstr "" + #: components/ItaliaTheme/Blocks/CTABlock/Block # defaultMessage: Apri link in una nuova scheda msgid "openLinkInNewTab" @@ -2737,7 +2795,6 @@ msgid "patrocinato_da" msgstr "Patrocinado por" #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView -#: components/ItaliaTheme/View/VenueView/VenueContacts #: helpers/contentHelper # defaultMessage: PEC msgid "pec" @@ -2899,46 +2956,6 @@ msgstr "Responsable del procedimiento" msgid "riferimenti_normativi" msgstr "Requisitos del reglamentarios" -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Fax -msgid "riferimento_fax_luogo" -msgstr "Fax" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Fax -msgid "riferimento_fax_struttura" -msgstr "Fax" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: E-mail -msgid "riferimento_mail_luogo" -msgstr "Correo electrónico" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: E-mail -msgid "riferimento_mail_struttura" -msgstr "Correo electrónico" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: PEC -msgid "riferimento_pec_luogo" -msgstr "PEC" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Telefono -msgid "riferimento_telefonico_luogo" -msgstr "Teléfono" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Telefono -msgid "riferimento_telefonico_struttura" -msgstr "Teléfono" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Web -msgid "riferimento_web" -msgstr "Web" - #: components/ItaliaTheme/View/Commons/Metadata # defaultMessage: Diritti msgid "rights" @@ -3588,6 +3605,16 @@ msgstr "Mostrar el mapa en ancho completo" msgid "show_only_first_ribbon" msgstr "Mostrar la cinta solo en la primera tarjeta" +#: config/Blocks/ListingOptions/attachmentCardTemplate +# defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati. +msgid "show_pdf_desc" +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." + +#: config/Blocks/ListingOptions/attachmentCardTemplate +# defaultMessage: Mostra i PDF in anteprima +msgid "show_pdf_preview" +msgstr "Mostrar archivos PDF en vista previa" + #: config/Blocks/ListingOptions/simpleListTemplate # defaultMessage: Mostra elenco puntato msgid "show_pointer_list" @@ -3958,6 +3985,11 @@ msgstr "" msgid "ufficio_responsabile" msgstr "Oficina responsable" +#: components/ItaliaTheme/View/Commons/HelpBox +# defaultMessage: Icona ulteriori informazioni +msgid "ulteriori_info" +msgstr "" + #: components/ItaliaTheme/View/Commons/TrasparenzaFields #: components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoViewNoBlocks #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView diff --git a/locales/fr/LC_MESSAGES/volto.po b/locales/fr/LC_MESSAGES/volto.po index 93196a701..e92c08aa2 100644 --- a/locales/fr/LC_MESSAGES/volto.po +++ b/locales/fr/LC_MESSAGES/volto.po @@ -780,6 +780,11 @@ msgstr "Tous les sujets" msgid "allegati" msgstr "Documents attachés" +#: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar +# defaultMessage: Testo alternativo per l'immagine +msgid "altText" +msgstr "" + #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti # defaultMessage: Altre cariche msgid "altre_cariche" @@ -836,6 +841,12 @@ msgstr "Zone responsable" msgid "argoment" msgstr "Sujet" +#: components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate +#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateCompact +# defaultMessage: Icona {type} +msgid "argument_icon" +msgstr "" + #: components/ItaliaTheme/Blocks/ArgumentsInEvidence/Sidebar # defaultMessage: Argomenti in evidenza msgid "arguments_in_evidence_block" @@ -856,6 +867,7 @@ msgstr "Conseiller de" msgid "assessore_riferimento" msgstr "Référence du conseiller" +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/View/Commons/Attachment # defaultMessage: Allegato msgid "attachment" @@ -1103,7 +1115,7 @@ msgid "calendarBlockSidebarTitle" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "" @@ -1113,7 +1125,7 @@ msgid "calendar_no_results" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" msgstr "" @@ -1153,6 +1165,11 @@ msgstr "Formats téléchargeables" msgid "casi_particolari" msgstr "Cas spéciaux" +#: components/ItaliaTheme/Cards/CardCategory +# defaultMessage: Icona categoria +msgid "category_icon" +msgstr "" + #: components/ItaliaTheme/Blocks/VideoGallery/Sidebar # defaultMessage: Link al canale msgid "channel_link" @@ -1211,6 +1228,11 @@ msgstr "" msgid "close-menu" msgstr "" +#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock +# defaultMessage: Chiudi l'accordion +msgid "closeAccordion" +msgstr "" + #: components/ItaliaTheme/Header/HeaderSearch/SearchModal # defaultMessage: Chiudi cerca msgid "closeSearch" @@ -1752,6 +1774,11 @@ msgstr "Télécharger" msgid "downloadPlayVideo" msgstr "" +#: components/SelectInput/SelectInput +# defaultMessage: Apri il menu +msgid "dropdown_indicator" +msgstr "" + #: components/ItaliaTheme/manage/Widgets/MenuConfigurationForm # defaultMessage: Additional classes msgid "dropdownmenu-additionalClasses" @@ -2225,6 +2252,26 @@ msgstr "" msgid "iconDescription" msgstr "" +#: components/ItaliaTheme/View/Commons/Argument/ArgumentIcon +# defaultMessage: Icona per l'argomento {topic_title} +msgid "icon_title" +msgstr "" + +#: components/ItaliaTheme/View/Commons/LocationItem +# defaultMessage: Icona luoghi +msgid "icona_luoghi" +msgstr "" + +#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno +# defaultMessage: Icona telefono +msgid "icona_telefono" +msgstr "" + +#: components/ItaliaTheme/View/Commons/OfficeCard +# defaultMessage: Icona ufficio +msgid "icona_ufficio" +msgstr "" + #: components/ItaliaTheme/Blocks/IconBlocks/Sidebar # defaultMessage: Blocco con icone msgid "iconss_blocks" @@ -2297,6 +2344,7 @@ msgstr "" msgid "legend_required" msgstr "Les champs marqués d'une (*) sont obligatoires." +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/Blocks/SearchSections/SideBar # defaultMessage: Collegamento msgid "link" @@ -2606,6 +2654,16 @@ msgstr "" msgid "numero_progressivo_cs" msgstr "Numéro du communiqué de presse" +#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock +# defaultMessage: Apri l'accordion +msgid "openAccordion" +msgstr "" + +#: components/ItaliaTheme/Blocks/Listing/SliderTemplate +# defaultMessage: Apri il link +msgid "openLink" +msgstr "" + #: components/ItaliaTheme/Blocks/CTABlock/Block # defaultMessage: Apri link in una nuova scheda msgid "openLinkInNewTab" @@ -2745,7 +2803,6 @@ msgid "patrocinato_da" msgstr "Sponsorisé par" #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView -#: components/ItaliaTheme/View/VenueView/VenueContacts #: helpers/contentHelper # defaultMessage: PEC msgid "pec" @@ -2907,46 +2964,6 @@ msgstr "" msgid "riferimenti_normativi" msgstr "Exigences normatives" -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Fax -msgid "riferimento_fax_luogo" -msgstr "Fax" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Fax -msgid "riferimento_fax_struttura" -msgstr "Fax" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: E-mail -msgid "riferimento_mail_luogo" -msgstr "E-mail" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: E-mail -msgid "riferimento_mail_struttura" -msgstr "E-mail" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: PEC -msgid "riferimento_pec_luogo" -msgstr "PEC" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Telefono -msgid "riferimento_telefonico_luogo" -msgstr "Téléphone" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Telefono -msgid "riferimento_telefonico_struttura" -msgstr "Téléphone" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Web -msgid "riferimento_web" -msgstr "Web" - #: components/ItaliaTheme/View/Commons/Metadata # defaultMessage: Diritti msgid "rights" @@ -3596,6 +3613,16 @@ msgstr "" msgid "show_only_first_ribbon" msgstr "" +#: config/Blocks/ListingOptions/attachmentCardTemplate +# defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati. +msgid "show_pdf_desc" +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." + +#: config/Blocks/ListingOptions/attachmentCardTemplate +# defaultMessage: Mostra i PDF in anteprima +msgid "show_pdf_preview" +msgstr "Afficher les PDF en aperçu" + #: config/Blocks/ListingOptions/simpleListTemplate # defaultMessage: Mostra elenco puntato msgid "show_pointer_list" @@ -3966,6 +3993,11 @@ msgstr "" msgid "ufficio_responsabile" msgstr "Bureau responsable" +#: components/ItaliaTheme/View/Commons/HelpBox +# defaultMessage: Icona ulteriori informazioni +msgid "ulteriori_info" +msgstr "" + #: components/ItaliaTheme/View/Commons/TrasparenzaFields #: components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoViewNoBlocks #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView diff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po index e1d3de2d7..9c47e9621 100644 --- a/locales/it/LC_MESSAGES/volto.po +++ b/locales/it/LC_MESSAGES/volto.po @@ -763,6 +763,11 @@ msgstr "Tutti gli argomenti" msgid "allegati" msgstr "Documenti allegati" +#: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar +# defaultMessage: Testo alternativo per l'immagine +msgid "altText" +msgstr "" + #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti # defaultMessage: Altre cariche msgid "altre_cariche" @@ -819,6 +824,12 @@ msgstr "Area responsabile" msgid "argoment" msgstr "Argomento" +#: components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate +#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateCompact +# defaultMessage: Icona {type} +msgid "argument_icon" +msgstr "" + #: components/ItaliaTheme/Blocks/ArgumentsInEvidence/Sidebar # defaultMessage: Argomenti in evidenza msgid "arguments_in_evidence_block" @@ -839,6 +850,7 @@ msgstr "Assessore di" msgid "assessore_riferimento" msgstr "Assessore di riferimento" +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/View/Commons/Attachment # defaultMessage: Allegato msgid "attachment" @@ -1086,9 +1098,9 @@ msgid "calendarBlockSidebarTitle" msgstr "Calendario" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" -msgstr "Prossimo" +msgstr "Prossimi eventi" #: components/ItaliaTheme/Blocks/Calendar/Body # defaultMessage: Nessun evento disponibile al momento @@ -1096,9 +1108,9 @@ msgid "calendar_no_results" msgstr "Nessun evento disponibile al momento" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" -msgstr "Precedente" +msgstr "Eventi precedenti" #: components/ItaliaTheme/manage/Widgets/CanaleDigitaleWidget # defaultMessage: Accedere al servizio @@ -1136,6 +1148,11 @@ msgstr "Formati scaricabili" msgid "casi_particolari" msgstr "Casi particolari" +#: components/ItaliaTheme/Cards/CardCategory +# defaultMessage: Icona categoria +msgid "category_icon" +msgstr "" + #: components/ItaliaTheme/Blocks/VideoGallery/Sidebar # defaultMessage: Link al canale msgid "channel_link" @@ -1194,6 +1211,11 @@ msgstr "Rimuovi ricerca testuale" msgid "close-menu" msgstr "Chiudi menu" +#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock +# defaultMessage: Chiudi l'accordion +msgid "closeAccordion" +msgstr "" + #: components/ItaliaTheme/Header/HeaderSearch/SearchModal # defaultMessage: Chiudi cerca msgid "closeSearch" @@ -1735,6 +1757,11 @@ msgstr "Scarica" msgid "downloadPlayVideo" msgstr "Scarica e riproduci video" +#: components/SelectInput/SelectInput +# defaultMessage: Apri il menu +msgid "dropdown_indicator" +msgstr "" + #: components/ItaliaTheme/manage/Widgets/MenuConfigurationForm # defaultMessage: Additional classes msgid "dropdownmenu-additionalClasses" @@ -2208,6 +2235,26 @@ msgstr "Icona" msgid "iconDescription" msgstr "Puoi selezionare un’icona fra quelle proposte nel menu a tendina oppure puoi scrivere/incollare nel campo di testo il nome di un’icona di fontawesome 6" +#: components/ItaliaTheme/View/Commons/Argument/ArgumentIcon +# defaultMessage: Icona per l'argomento {topic_title} +msgid "icon_title" +msgstr "" + +#: components/ItaliaTheme/View/Commons/LocationItem +# defaultMessage: Icona luoghi +msgid "icona_luoghi" +msgstr "" + +#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno +# defaultMessage: Icona telefono +msgid "icona_telefono" +msgstr "" + +#: components/ItaliaTheme/View/Commons/OfficeCard +# defaultMessage: Icona ufficio +msgid "icona_ufficio" +msgstr "" + #: components/ItaliaTheme/Blocks/IconBlocks/Sidebar # defaultMessage: Blocco con icone msgid "iconss_blocks" @@ -2280,6 +2327,7 @@ msgstr "Servizi o uffici interni" msgid "legend_required" msgstr "I campi contrassegnati da (*) sono obbligatori." +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/Blocks/SearchSections/SideBar # defaultMessage: Collegamento msgid "link" @@ -2589,6 +2637,16 @@ msgstr "Blocco numeri" msgid "numero_progressivo_cs" msgstr "Numero del comunicato stampa" +#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock +# defaultMessage: Apri l'accordion +msgid "openAccordion" +msgstr "" + +#: components/ItaliaTheme/Blocks/Listing/SliderTemplate +# defaultMessage: Apri il link +msgid "openLink" +msgstr "" + #: components/ItaliaTheme/Blocks/CTABlock/Block # defaultMessage: Apri link in una nuova scheda msgid "openLinkInNewTab" @@ -2728,7 +2786,6 @@ msgid "patrocinato_da" msgstr "Patrocinato da" #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView -#: components/ItaliaTheme/View/VenueView/VenueContacts #: helpers/contentHelper # defaultMessage: PEC msgid "pec" @@ -2890,46 +2947,6 @@ msgstr "Responsabile del procedimento" msgid "riferimenti_normativi" msgstr "Riferimenti normativi" -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Fax -msgid "riferimento_fax_luogo" -msgstr "Fax" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Fax -msgid "riferimento_fax_struttura" -msgstr "Fax" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: E-mail -msgid "riferimento_mail_luogo" -msgstr "E-mail" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: E-mail -msgid "riferimento_mail_struttura" -msgstr "E-mail" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: PEC -msgid "riferimento_pec_luogo" -msgstr "PEC" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Telefono -msgid "riferimento_telefonico_luogo" -msgstr "Telefono" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Telefono -msgid "riferimento_telefonico_struttura" -msgstr "Telefono" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Web -msgid "riferimento_web" -msgstr "Web" - #: components/ItaliaTheme/View/Commons/Metadata # defaultMessage: Diritti msgid "rights" @@ -3579,6 +3596,16 @@ msgstr "Mostra la mappa a tutta larghezza" msgid "show_only_first_ribbon" msgstr "Mostra il nastro solo sulla prima card" +#: config/Blocks/ListingOptions/attachmentCardTemplate +# defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati. +msgid "show_pdf_desc" +msgstr "Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati." + +#: config/Blocks/ListingOptions/attachmentCardTemplate +# defaultMessage: Mostra i PDF in anteprima +msgid "show_pdf_preview" +msgstr "Mostra i PDF in anteprima" + #: config/Blocks/ListingOptions/simpleListTemplate # defaultMessage: Mostra elenco puntato msgid "show_pointer_list" @@ -3949,6 +3976,11 @@ msgstr "Unità organizzativa" msgid "ufficio_responsabile" msgstr "Ufficio responsabile" +#: components/ItaliaTheme/View/Commons/HelpBox +# defaultMessage: Icona ulteriori informazioni +msgid "ulteriori_info" +msgstr "" + #: components/ItaliaTheme/View/Commons/TrasparenzaFields #: components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoViewNoBlocks #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView diff --git a/locales/volto.pot b/locales/volto.pot index 845d7b47d..dc2b876cf 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2024-03-06T10:48:38.114Z\n" +"POT-Creation-Date: 2024-03-27T15:08:22.683Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -765,6 +765,11 @@ msgstr "" msgid "allegati" msgstr "" +#: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar +# defaultMessage: Testo alternativo per l'immagine +msgid "altText" +msgstr "" + #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti # defaultMessage: Altre cariche msgid "altre_cariche" @@ -821,6 +826,12 @@ msgstr "" msgid "argoment" msgstr "" +#: components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate +#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateCompact +# defaultMessage: Icona {type} +msgid "argument_icon" +msgstr "" + #: components/ItaliaTheme/Blocks/ArgumentsInEvidence/Sidebar # defaultMessage: Argomenti in evidenza msgid "arguments_in_evidence_block" @@ -841,6 +852,7 @@ msgstr "" msgid "assessore_riferimento" msgstr "" +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/View/Commons/Attachment # defaultMessage: Allegato msgid "attachment" @@ -1088,7 +1100,7 @@ msgid "calendarBlockSidebarTitle" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "" @@ -1098,7 +1110,7 @@ msgid "calendar_no_results" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" msgstr "" @@ -1138,6 +1150,11 @@ msgstr "" msgid "casi_particolari" msgstr "" +#: components/ItaliaTheme/Cards/CardCategory +# defaultMessage: Icona categoria +msgid "category_icon" +msgstr "" + #: components/ItaliaTheme/Blocks/VideoGallery/Sidebar # defaultMessage: Link al canale msgid "channel_link" @@ -1196,6 +1213,11 @@ msgstr "" msgid "close-menu" msgstr "" +#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock +# defaultMessage: Chiudi l'accordion +msgid "closeAccordion" +msgstr "" + #: components/ItaliaTheme/Header/HeaderSearch/SearchModal # defaultMessage: Chiudi cerca msgid "closeSearch" @@ -1737,6 +1759,11 @@ msgstr "" msgid "downloadPlayVideo" msgstr "" +#: components/SelectInput/SelectInput +# defaultMessage: Apri il menu +msgid "dropdown_indicator" +msgstr "" + #: components/ItaliaTheme/manage/Widgets/MenuConfigurationForm # defaultMessage: Additional classes msgid "dropdownmenu-additionalClasses" @@ -2210,6 +2237,26 @@ msgstr "" msgid "iconDescription" msgstr "" +#: components/ItaliaTheme/View/Commons/Argument/ArgumentIcon +# defaultMessage: Icona per l'argomento {topic_title} +msgid "icon_title" +msgstr "" + +#: components/ItaliaTheme/View/Commons/LocationItem +# defaultMessage: Icona luoghi +msgid "icona_luoghi" +msgstr "" + +#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno +# defaultMessage: Icona telefono +msgid "icona_telefono" +msgstr "" + +#: components/ItaliaTheme/View/Commons/OfficeCard +# defaultMessage: Icona ufficio +msgid "icona_ufficio" +msgstr "" + #: components/ItaliaTheme/Blocks/IconBlocks/Sidebar # defaultMessage: Blocco con icone msgid "iconss_blocks" @@ -2282,6 +2329,7 @@ msgstr "" msgid "legend_required" msgstr "" +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/Blocks/SearchSections/SideBar # defaultMessage: Collegamento msgid "link" @@ -2591,6 +2639,16 @@ msgstr "" msgid "numero_progressivo_cs" msgstr "" +#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock +# defaultMessage: Apri l'accordion +msgid "openAccordion" +msgstr "" + +#: components/ItaliaTheme/Blocks/Listing/SliderTemplate +# defaultMessage: Apri il link +msgid "openLink" +msgstr "" + #: components/ItaliaTheme/Blocks/CTABlock/Block # defaultMessage: Apri link in una nuova scheda msgid "openLinkInNewTab" @@ -2730,7 +2788,6 @@ msgid "patrocinato_da" msgstr "" #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView -#: components/ItaliaTheme/View/VenueView/VenueContacts #: helpers/contentHelper # defaultMessage: PEC msgid "pec" @@ -2892,46 +2949,6 @@ msgstr "" msgid "riferimenti_normativi" msgstr "" -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Fax -msgid "riferimento_fax_luogo" -msgstr "" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Fax -msgid "riferimento_fax_struttura" -msgstr "" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: E-mail -msgid "riferimento_mail_luogo" -msgstr "" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: E-mail -msgid "riferimento_mail_struttura" -msgstr "" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: PEC -msgid "riferimento_pec_luogo" -msgstr "" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Telefono -msgid "riferimento_telefonico_luogo" -msgstr "" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Telefono -msgid "riferimento_telefonico_struttura" -msgstr "" - -#: components/ItaliaTheme/View/VenueView/VenueContacts -# defaultMessage: Web -msgid "riferimento_web" -msgstr "" - #: components/ItaliaTheme/View/Commons/Metadata # defaultMessage: Diritti msgid "rights" @@ -3268,7 +3285,7 @@ msgid "search_startDate" msgstr "" #: helpers/Translations/searchBlockExtendedTranslations -# defaultMessage: Ricerca per: {searchedtext}. +# defaultMessage: Ricerca per: {searchedtext}. msgid "searchedFor" msgstr "" @@ -3581,6 +3598,16 @@ msgstr "" msgid "show_only_first_ribbon" msgstr "" +#: config/Blocks/ListingOptions/attachmentCardTemplate +# defaultMessage: Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati. +msgid "show_pdf_desc" +msgstr "" + +#: config/Blocks/ListingOptions/attachmentCardTemplate +# defaultMessage: Mostra i PDF in anteprima +msgid "show_pdf_preview" +msgstr "" + #: config/Blocks/ListingOptions/simpleListTemplate # defaultMessage: Mostra elenco puntato msgid "show_pointer_list" @@ -3951,6 +3978,11 @@ msgstr "" msgid "ufficio_responsabile" msgstr "" +#: components/ItaliaTheme/View/Commons/HelpBox +# defaultMessage: Icona ulteriori informazioni +msgid "ulteriori_info" +msgstr "" + #: components/ItaliaTheme/View/Commons/TrasparenzaFields #: components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoViewNoBlocks #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView diff --git a/package.json b/package.json index c7d6b555a..9d9be86fb 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "design-comuni-plone-theme", "description": "Volto Theme for Italia design guidelines", "license": "GPL-v3", - "version": "11.7.0", + "version": "11.8.1", "main": "src/index.js", "keywords": [ "volto-addon", @@ -147,11 +147,11 @@ "volto-dropdownmenu": "4.1.1", "volto-editablefooter": "5.1.0", "volto-feedback": "0.3.0", - "volto-form-block": "3.5.2", + "volto-form-block": "3.7.2", "volto-gdpr-privacy": "2.1.1", "volto-google-analytics": "2.0.0", "volto-multilingual-widget": "3.0.0", - "volto-querywidget-with-browser": "0.4.1", + "volto-querywidget-with-browser": "0.4.2", "volto-rss-block": "3.0.0", "volto-secondarymenu": "4.0.0", "volto-slimheader": "0.1.0", diff --git a/publiccode.yml b/publiccode.yml index e8acbf330..2bd9fccf3 100644 --- a/publiccode.yml +++ b/publiccode.yml @@ -227,9 +227,9 @@ maintenance: name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici platforms: - web -releaseDate: '2024-03-15' +releaseDate: '2024-03-26' softwareType: standalone/web -softwareVersion: 11.7.0 +softwareVersion: 11.8.1 url: 'https://github.com/italia/design-comuni-plone-theme' usedBy: - ASP Comuni Modenesi Area Nord diff --git a/src/components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock.jsx b/src/components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock.jsx index 44b7a7b28..7c43c54b6 100644 --- a/src/components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock.jsx +++ b/src/components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock.jsx @@ -17,6 +17,14 @@ const messages = defineMessages({ id: 'Vedi', defaultMessage: 'Vedi', }, + closeAccordion: { + id: 'closeAccordion', + defaultMessage: "Chiudi l'accordion", + }, + openAccordion: { + id: 'openAccordion', + defaultMessage: "Apri l'accordion", + }, }); /** @@ -40,6 +48,11 @@ const ViewBlock = ({ data, isOpen, toggle, id, index }) => { color="primary" icon={isOpen ? 'it-minus' : 'it-plus'} padding={false} + title={ + isOpen + ? intl.formatMessage(messages.closeAccordion) + : intl.formatMessage(messages.openAccordion) + } /> {redraft( @@ -69,7 +82,10 @@ const ViewBlock = ({ data, isOpen, toggle, id, index }) => {
{data.linkMoreTitle || intl.formatMessage(messages.vedi)} - +
)} diff --git a/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx b/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx index 7ff3e95cb..8ca345b14 100644 --- a/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx +++ b/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx @@ -30,11 +30,11 @@ const messages = defineMessages({ }, calendar_next_arrow: { id: 'calendar_next_arrow', - defaultMessage: 'Prossimo', + defaultMessage: 'Prossimi eventi', }, calendar_prev_arrow: { id: 'calendar_prev_arrow', - defaultMessage: 'Precedente', + defaultMessage: 'Eventi precedenti', }, }); @@ -172,10 +172,17 @@ const Body = ({ data, block, inEditMode, path, onChangeBlock, reactSlick }) => { const NextArrow = (props) => { const { onClick, className } = props; return ( - ); @@ -183,10 +190,17 @@ const Body = ({ data, block, inEditMode, path, onChangeBlock, reactSlick }) => { const PrevArrow = (props) => { const { onClick, className } = props; return ( - ); diff --git a/src/components/ItaliaTheme/Blocks/Common/SearchFilters/DateFilter.jsx b/src/components/ItaliaTheme/Blocks/Common/SearchFilters/DateFilter.jsx index 58989fe1d..d93d7ebd8 100644 --- a/src/components/ItaliaTheme/Blocks/Common/SearchFilters/DateFilter.jsx +++ b/src/components/ItaliaTheme/Blocks/Common/SearchFilters/DateFilter.jsx @@ -1,5 +1,6 @@ import React, { useState, useEffect } from 'react'; import { useIntl, defineMessages } from 'react-intl'; +import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme'; import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable'; @@ -174,6 +175,7 @@ const getDateRangePickerPhrases = (intl) => { ), }; }; + const DateFilter = (props) => { const intl = useIntl(); const [focusedDateInput, setFocusedDateInput] = useState(null); @@ -251,6 +253,20 @@ const DateFilter = (props) => { hideKeyboardShortcutsPanel={true} showClearDates phrases={getDateRangePickerPhrases(intl)} + customArrowIcon={ + + } + customCloseIcon={ + + } /> ); diff --git a/src/components/ItaliaTheme/Blocks/HeroImageLeft/StoresButtons.jsx b/src/components/ItaliaTheme/Blocks/HeroImageLeft/StoresButtons.jsx index b687319aa..4193376d8 100644 --- a/src/components/ItaliaTheme/Blocks/HeroImageLeft/StoresButtons.jsx +++ b/src/components/ItaliaTheme/Blocks/HeroImageLeft/StoresButtons.jsx @@ -23,14 +23,14 @@ const StoresButtons = ({ data }) => { {data.playStoreLink && ( )} {data.appStoreLink && ( )} diff --git a/src/components/ItaliaTheme/Blocks/IconBlocks/Block/ViewBlock.jsx b/src/components/ItaliaTheme/Blocks/IconBlocks/Block/ViewBlock.jsx index 6af951579..5a638ba5d 100644 --- a/src/components/ItaliaTheme/Blocks/IconBlocks/Block/ViewBlock.jsx +++ b/src/components/ItaliaTheme/Blocks/IconBlocks/Block/ViewBlock.jsx @@ -37,7 +37,7 @@ const ViewBlock = ({ data, isOpen, toggle, id, index }) => { {data.icon?.length > 0 && (
- +
)} diff --git a/src/components/ItaliaTheme/Blocks/IconBlocks/Edit.jsx b/src/components/ItaliaTheme/Blocks/IconBlocks/Edit.jsx index 685266b06..d6aa29d36 100644 --- a/src/components/ItaliaTheme/Blocks/IconBlocks/Edit.jsx +++ b/src/components/ItaliaTheme/Blocks/IconBlocks/Edit.jsx @@ -8,7 +8,7 @@ import { defineMessages } from 'react-intl'; import { Container, Row, Col } from 'design-react-kit'; import { SidebarPortal } from '@plone/volto/components'; -import { flattenToAppURL, addAppURL } from '@plone/volto/helpers'; +import { flattenToAppURL } from '@plone/volto/helpers'; import { UniversalLink } from '@plone/volto/components'; import { @@ -21,6 +21,8 @@ import { TextEditorWidget } from 'design-comuni-plone-theme/components/ItaliaThe import EditBlock from './Block/EditBlock'; import Sidebar from './Sidebar.jsx'; +import config from '@plone/volto/registry'; + const messages = defineMessages({ addItem: { id: 'Add accordion item', @@ -54,23 +56,23 @@ class Edit extends SubblocksEdit { if (__SERVER__) { return
; } + const Image = config.getComponent({ name: 'Image' }).component; return (
{this.props.data.background?.[0] ? ( -
+
+ +
) : ( -
+
)} diff --git a/src/components/ItaliaTheme/Blocks/IconBlocks/Sidebar.jsx b/src/components/ItaliaTheme/Blocks/IconBlocks/Sidebar.jsx index 3b1476cd2..b43183683 100644 --- a/src/components/ItaliaTheme/Blocks/IconBlocks/Sidebar.jsx +++ b/src/components/ItaliaTheme/Blocks/IconBlocks/Sidebar.jsx @@ -58,7 +58,10 @@ const Sidebar = ({ description="" required={false} widgetOptions={{ - pattern_options: { selectableTypes: ['Image'] }, + pattern_options: { + selectableTypes: ['Image'], + maximumSelectionSize: 1, + }, }} value={data.background ?? []} onChange={(id, value) => diff --git a/src/components/ItaliaTheme/Blocks/IconBlocks/View.jsx b/src/components/ItaliaTheme/Blocks/IconBlocks/View.jsx index 15ce7125a..85f498126 100644 --- a/src/components/ItaliaTheme/Blocks/IconBlocks/View.jsx +++ b/src/components/ItaliaTheme/Blocks/IconBlocks/View.jsx @@ -1,5 +1,5 @@ /** - * View Accordion block. + * View IconsBlock block. * @module components/ItaliaTheme/Blocks/Accordion/View */ @@ -8,35 +8,36 @@ import PropTypes from 'prop-types'; import redraft from 'redraft'; import ViewBlock from './Block/ViewBlock'; import { Container, Row, Col } from 'design-react-kit'; -import { flattenToAppURL, addAppURL } from '@plone/volto/helpers'; +import { flattenToAppURL } from '@plone/volto/helpers'; import { UniversalLink } from '@plone/volto/components'; import config from '@plone/volto/registry'; import { checkRedraftHasContent } from 'design-comuni-plone-theme/helpers'; /** - * View Accordion block class. + * View IconsBlock block class. * @class View * @extends Component */ -const AccordionView = ({ data, block }) => { +const IconsBlockView = ({ data, block }) => { const id = new Date().getTime(); + const Image = config.getComponent({ name: 'Image' }).component; return (
{data.background?.[0] ? ( -
+
+ +
) : ( -
+
)}
@@ -94,8 +95,8 @@ const AccordionView = ({ data, block }) => { * @property {Object} propTypes Property types. * @static */ -AccordionView.propTypes = { +IconsBlockView.propTypes = { data: PropTypes.objectOf(PropTypes.any).isRequired, }; -export default AccordionView; +export default IconsBlockView; diff --git a/src/components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate.jsx b/src/components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate.jsx new file mode 100644 index 000000000..aee103190 --- /dev/null +++ b/src/components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate.jsx @@ -0,0 +1,116 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import cx from 'classnames'; +import { defineMessages, useIntl } from 'react-intl'; +import { UniversalLink } from '@plone/volto/components'; +import { Container, Card, CardBody, CardTitle } from 'design-react-kit'; +import { + Icon, + ListingLinkMore, +} from 'design-comuni-plone-theme/components/ItaliaTheme'; + +const messages = defineMessages({ + link: { + id: 'link', + defaultMessage: 'Collegamento', + }, + attachment: { + id: 'attachment', + defaultMessage: 'Allegato', + }, +}); + +const AttachmentCardTemplate = ({ + items, + isEditMode, + linkTitle, + linkHref, + show_pdf_preview, + show_block_bg, + title, + id_lighthouse, + linkAlign, + titleLine, + linkmore_id_lighthouse, +}) => { + const intl = useIntl(); + + return ( + +
+ {title && ( +

+ {title} +

+ )} +
+ {items.map((item, index) => { + let itemUrl = { ...item }; + if (item['@type'] === 'File') { + itemUrl = { + ...item, + file: item, + '@id': + show_pdf_preview && item?.mime_type === 'application/pdf' + ? item?.['@id'] + '/@@display-file/file' + : item?.['@id'] + '/@@download/file', + }; + } + + return ( + + {item['@type'] === 'File' ? ( + + ) : ( + + )} + + + + {item.title || item.id} + + + + + ); + })} +
+ + +
+
+ ); +}; + +AttachmentCardTemplate.propTypes = { + items: PropTypes.arrayOf(PropTypes.any).isRequired, + isEditMode: PropTypes.bool, + linkTitle: PropTypes.any, +}; + +export default AttachmentCardTemplate; diff --git a/src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx b/src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx index f9e128e7a..34031cb52 100644 --- a/src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx +++ b/src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx @@ -16,7 +16,7 @@ const ListingImage = ({ let commonImageProps = { item, 'aria-hidden': true, - alt: '', + alt: imageProps.alt ?? '', role: 'presentation', className, loading, @@ -29,7 +29,6 @@ const ListingImage = ({ // photogallery needs to check for null image // https://stackoverflow.com/questions/33136399/is-there-a-way-to-tell-if-reactelement-renders-null const image = Image(commonImageProps); - if (image === null) return showDefault ? : null; diff --git a/src/components/ItaliaTheme/Blocks/Listing/CompleteBlockLinksTemplate.jsx b/src/components/ItaliaTheme/Blocks/Listing/CompleteBlockLinksTemplate.jsx index 9a137d09c..504086ad3 100644 --- a/src/components/ItaliaTheme/Blocks/Listing/CompleteBlockLinksTemplate.jsx +++ b/src/components/ItaliaTheme/Blocks/Listing/CompleteBlockLinksTemplate.jsx @@ -61,6 +61,7 @@ const CompleteBlockLinksTemplate = (props) => { className: '', sizes: '60px', showTitleAttr: false, + alt: item.title, }); const BlockExtraTags = getComponentWithFallback({ diff --git a/src/components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate.jsx b/src/components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate.jsx index 76338420a..ceeeb1feb 100644 --- a/src/components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate.jsx +++ b/src/components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate.jsx @@ -35,6 +35,10 @@ const messages = defineMessages({ id: 'Vedi', defaultMessage: 'Vedi', }, + argumentIcon: { + id: 'argument_icon', + defaultMessage: 'Icona {type}', + }, }); const RibbonCardTemplate = (props) => { @@ -96,7 +100,6 @@ const RibbonCardTemplate = (props) => { name: 'BlockExtraTags', dependencies: ['RibbonCardTemplate', item['@type']], }).component; - return ( { {(category || icon) && (
- {icon && } + {icon && ( + + )} {category && {category}}
)} diff --git a/src/components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateCompact.jsx b/src/components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateCompact.jsx index 032958dd1..c9f0ddb23 100644 --- a/src/components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateCompact.jsx +++ b/src/components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateCompact.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import { useIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { UniversalLink } from '@plone/volto/components'; @@ -10,6 +11,13 @@ import { ListingLinkMore, } from 'design-comuni-plone-theme/components/ItaliaTheme'; +const messages = defineMessages({ + argumentIcon: { + id: 'argument_icon', + defaultMessage: 'Icona {type}', + }, +}); + const SimpleCardTemplateCompact = ({ items, isEditMode, @@ -23,6 +31,7 @@ const SimpleCardTemplateCompact = ({ titleLine, linkmore_id_lighthouse, }) => { + const intl = useIntl(); return (
{title && ( @@ -49,7 +58,12 @@ const SimpleCardTemplateCompact = ({ > {show_icon && (
- +
)} diff --git a/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx b/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx index badf03459..832006211 100644 --- a/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx +++ b/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx @@ -50,6 +50,10 @@ const messages = defineMessages({ id: 'slideDot', defaultMessage: 'Vai alla slide {index}', }, + openLink: { + id: 'openLink', + defaultMessage: 'Apri il link', + }, }); function NextArrow(props) { @@ -81,7 +85,11 @@ function NextArrow(props) { onKeyDown={handleKeyboardUsers} id="sliderNextArrow" > - + {intl.formatMessage(messages.successivo)} @@ -126,7 +134,11 @@ function PrevArrow(props) { id="sliderPrevArrow" onKeyDown={handleKeyboardUsers} > - + {intl.formatMessage(messages.precedente)} @@ -185,11 +197,21 @@ const Slide = ({ > {full_width ? ( - {item.title} + {item.title}{' '} + ) : ( <> - {item.title} + {item.title}{' '} + )} @@ -342,6 +364,11 @@ const SliderTemplate = ({ {userAutoplay ? 'pause' : 'play'} diff --git a/src/components/ItaliaTheme/Blocks/NumbersBlock/View.jsx b/src/components/ItaliaTheme/Blocks/NumbersBlock/View.jsx index 9808b9d72..c70c5378c 100644 --- a/src/components/ItaliaTheme/Blocks/NumbersBlock/View.jsx +++ b/src/components/ItaliaTheme/Blocks/NumbersBlock/View.jsx @@ -50,9 +50,15 @@ const NumbersView = ({ data, block }) => {
{(data.icon1 || data.icon2 || data.icon3) && (
- {data.icon1?.length > 0 && } - {data.icon2?.length > 0 && } - {data.icon3?.length > 0 && } + {data.icon1?.length > 0 && ( + + )} + {data.icon2?.length > 0 && ( + + )} + {data.icon3?.length > 0 && ( + + )}
)} diff --git a/src/components/ItaliaTheme/Blocks/SearchSections/Body.jsx b/src/components/ItaliaTheme/Blocks/SearchSections/Body.jsx index 1909ef393..e1f0e0f78 100644 --- a/src/components/ItaliaTheme/Blocks/SearchSections/Body.jsx +++ b/src/components/ItaliaTheme/Blocks/SearchSections/Body.jsx @@ -61,7 +61,12 @@ const Body = ({ block, sections }) => { onClick={(e) => navigate(inputText, searchFilters())} aria-label={intl.formatMessage(messages.doSearch)} > - + +const renderImage = (image, showImage, sizeNatural, altText = '') => showImage && image ? (
@@ -117,7 +117,12 @@ const Block = ({ > {hasImage && ( - {renderImage(data?.image, hasImage, data?.sizeNatural)} + {renderImage( + data?.image, + hasImage, + data?.sizeNatural, + data?.altText, + )} )}
- {renderImage(data?.image, hasImage, data?.sizeNatural)} + {renderImage( + data?.image, + hasImage, + data?.sizeNatural, + data?.altText, + )}
{ @@ -105,6 +110,14 @@ const Sidebar = ({ data, block, onChangeBlock }) => { value={data.sizeImage || 's'} /> + { + onChangeBlock({ ...data, altText: value }); + }} + /> diff --git a/src/components/ItaliaTheme/Blocks/VideoGallery/Body.jsx b/src/components/ItaliaTheme/Blocks/VideoGallery/Body.jsx index 3f42325bd..253f8bd99 100644 --- a/src/components/ItaliaTheme/Blocks/VideoGallery/Body.jsx +++ b/src/components/ItaliaTheme/Blocks/VideoGallery/Body.jsx @@ -106,7 +106,12 @@ const Body = ({ data, children, nItems = 0, reactSlick }) => { {data?.title &&

{data.title}

} {(data?.channel_link || data?.channel_link_title) && (
- + {data.channel_link ? ( { screen.getByText(/With his brim pulled way down low/i), ).toBeInTheDocument(); //immagine di background - const backgroundImage = document.querySelector('.background-image'); - expect(backgroundImage).toHaveStyle( - `background-image: url(http://localhost:3000/is-this-the-real-life/business-teamwork-join-hands-together-business-teamwork-concept_1150-1804.webp/@@images/image/huge);`, - ); + const backgroundImage = document.querySelector('.background-image img'); + expect(backgroundImage).toBeInTheDocument(); //link ad altro expect( screen.getByRole('link', { diff --git a/src/components/ItaliaTheme/BrandText/BrandText.jsx b/src/components/ItaliaTheme/BrandText/BrandText.jsx index 44ac44469..2372068a3 100644 --- a/src/components/ItaliaTheme/BrandText/BrandText.jsx +++ b/src/components/ItaliaTheme/BrandText/BrandText.jsx @@ -7,12 +7,12 @@ const BrandText = ({ mobile = false, subsite }) => { const intl = useIntl(); return (
-

+

{subsite?.title || getSiteProperty('siteTitle', intl.locale)} -

-

+

+

{subsite?.description || getSiteProperty('siteSubtitle', intl.locale)} -

+

); }; diff --git a/src/components/ItaliaTheme/Cards/CardCategory.jsx b/src/components/ItaliaTheme/Cards/CardCategory.jsx index 5e4ef6dc8..49dfc8582 100644 --- a/src/components/ItaliaTheme/Cards/CardCategory.jsx +++ b/src/components/ItaliaTheme/Cards/CardCategory.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import { useIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { UniversalLink } from '@plone/volto/components'; @@ -10,8 +11,16 @@ const propTypes = { href: PropTypes.string, }; +const messages = defineMessages({ + categoryIcon: { + id: 'category_icon', + defaultMessage: 'Icona categoria', + }, +}); + const CardCategory = (props) => { const { iconName, date, href, children, ...rest } = props; + const intl = useIntl(); const classes = classNames({ 'category-top': date || ' ', 'categoryicon-top': iconName, @@ -29,7 +38,9 @@ const CardCategory = (props) => { const categoryText = !href && children && ( {children} ); - const categoryIcon = iconName && ; + const categoryIcon = iconName && ( + + ); return (
diff --git a/src/components/ItaliaTheme/Footer/FooterNavigation.jsx b/src/components/ItaliaTheme/Footer/FooterNavigation.jsx index f34eb012d..8e45c5241 100644 --- a/src/components/ItaliaTheme/Footer/FooterNavigation.jsx +++ b/src/components/ItaliaTheme/Footer/FooterNavigation.jsx @@ -51,7 +51,12 @@ const FooterNavigation = () => {

{ className="align-top" padding={false} size="sm" + title={social.title} /> {social.title} diff --git a/src/components/ItaliaTheme/Header/HeaderSearch/HeaderSearch.jsx b/src/components/ItaliaTheme/Header/HeaderSearch/HeaderSearch.jsx index a3a1797b2..98842f36d 100644 --- a/src/components/ItaliaTheme/Header/HeaderSearch/HeaderSearch.jsx +++ b/src/components/ItaliaTheme/Header/HeaderSearch/HeaderSearch.jsx @@ -32,9 +32,10 @@ const HeaderSearch = () => { e.preventDefault(); setShowSearchModal(true); }} - href="#search" + href="/search" + role="button" > - +

{ target="_blank" rel="noopener noreferrer" > - + ))} diff --git a/src/components/ItaliaTheme/Icons/DesignIcon.jsx b/src/components/ItaliaTheme/Icons/DesignIcon.jsx index e07e4f8fa..5c51b1332 100644 --- a/src/components/ItaliaTheme/Icons/DesignIcon.jsx +++ b/src/components/ItaliaTheme/Icons/DesignIcon.jsx @@ -1,4 +1,5 @@ -import React, { useState, useEffect, useRef } from 'react'; +import React, { useState, useEffect, useRef, useMemo } from 'react'; +import { v4 as uuid } from 'uuid'; import PropTypes from 'prop-types'; const propTypes = { @@ -19,6 +20,7 @@ const defaultProps = { const Icon = ({ icon, title, className, size }) => { const ImportedIconRef = useRef(null); const [loading, setLoading] = useState(false); + const iconID = useMemo(() => uuid(), []); useEffect(() => { setLoading(true); @@ -50,9 +52,10 @@ const Icon = ({ icon, title, className, size }) => { aria-hidden="true" dangerouslySetInnerHTML={{ __html: title - ? `${title}${name.content}` + ? `${title}${name.content}` : name.content, }} + aria-labelledby={iconID} /> ); } diff --git a/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx b/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx index 70b8a39ac..6fd082386 100644 --- a/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx +++ b/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx @@ -2,17 +2,18 @@ * Icon component. * @module components/ItaliaTheme/Icons/SectionIcon */ -import React from 'react'; +import React, { useMemo } from 'react'; +import { v4 as uuid } from 'uuid'; import { fontAwesomeAliases } from 'design-comuni-plone-theme/helpers/index'; const FontAwesomeIcon = (props) => { const { className, icon, prefix, title } = props; + const iconID = useMemo(() => uuid(), []); const [loadedIcon, setLoadedIcon] = React.useState({ module: null, iconName: '', family: 'solid', }); - const getIconAlias = (icon, aliasList) => { if (icon in aliasList) { return aliasList[icon]; @@ -35,8 +36,8 @@ const FontAwesomeIcon = (props) => { prefixKey === 'fab' ? 'brands' : prefixKey === 'far' - ? 'regular' - : 'solid', + ? 'regular' + : 'solid', iconName, ]; }; @@ -71,9 +72,11 @@ const FontAwesomeIcon = (props) => { className={`icon fa-icon ${className ?? ''}`} dangerouslySetInnerHTML={{ __html: title - ? `${title}${loadedIcon.module.content}` + ? `${title}${loadedIcon.module.content}` : loadedIcon.module.content, }} + aria-labelledby={iconID} + aria-hidden={props['aria-hidden']} /> ) : icon ? ( diff --git a/src/components/ItaliaTheme/Icons/svg/TelegramSVG.jsx b/src/components/ItaliaTheme/Icons/svg/TelegramSVG.jsx index 3fd17472a..f5350920a 100644 --- a/src/components/ItaliaTheme/Icons/svg/TelegramSVG.jsx +++ b/src/components/ItaliaTheme/Icons/svg/TelegramSVG.jsx @@ -10,6 +10,7 @@ const TelegramSVG = (props) => ( role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512" + aria-label="Telegram" > diff --git a/src/components/ItaliaTheme/Icons/svg/XTwitterSVG.jsx b/src/components/ItaliaTheme/Icons/svg/XTwitterSVG.jsx index 1d1cad9ef..52d381c43 100644 --- a/src/components/ItaliaTheme/Icons/svg/XTwitterSVG.jsx +++ b/src/components/ItaliaTheme/Icons/svg/XTwitterSVG.jsx @@ -10,6 +10,7 @@ const XTwitterSVG = (props) => ( role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512" + aria-label="Twitter" > diff --git a/src/components/ItaliaTheme/Pagination/PaginationItem.jsx b/src/components/ItaliaTheme/Pagination/PaginationItem.jsx index de8182097..b389586c8 100644 --- a/src/components/ItaliaTheme/Pagination/PaginationItem.jsx +++ b/src/components/ItaliaTheme/Pagination/PaginationItem.jsx @@ -79,6 +79,7 @@ class PaginationItem extends Component { icon="it-chevron-left" style={{ ariaHidden: true }} color="primary" + title={intl.formatMessage(messages.prevPage)} /> @@ -92,6 +93,7 @@ class PaginationItem extends Component { icon="it-chevron-right" style={{ ariaHidden: true }} color="primary" + title={intl.formatMessage(messages.nextPage)} /> {intl.formatMessage(messages.nextPage)} diff --git a/src/components/ItaliaTheme/View/Commons/Argument/ArgumentIcon.jsx b/src/components/ItaliaTheme/View/Commons/Argument/ArgumentIcon.jsx index e90c2a21a..69870950f 100644 --- a/src/components/ItaliaTheme/View/Commons/Argument/ArgumentIcon.jsx +++ b/src/components/ItaliaTheme/View/Commons/Argument/ArgumentIcon.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import { useIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme'; @@ -8,10 +9,17 @@ import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme'; * @params {object} Dates: object. * @returns {string} Markup of the component. */ -const ArgumentIcon = ({ icon }) => { +const ArgumentIcon = ({ icon, title }) => { + const intl = useIntl(); + return icon ? (
- +
) : null; }; @@ -21,3 +29,10 @@ export default ArgumentIcon; ArgumentIcon.propTypes = { icon: PropTypes.string, }; + +const messages = defineMessages({ + iconTitle: { + id: 'icon_title', + defaultMessage: "Icona per l'argomento {topic_title}", + }, +}); diff --git a/src/components/ItaliaTheme/View/Commons/ContactLink.jsx b/src/components/ItaliaTheme/View/Commons/ContactLink.jsx index 180a6f76a..7dd01862e 100644 --- a/src/components/ItaliaTheme/View/Commons/ContactLink.jsx +++ b/src/components/ItaliaTheme/View/Commons/ContactLink.jsx @@ -30,58 +30,58 @@ const messages = defineMessages({ }, }); +const phoneRegex = /(\+?[0-9](?: ?[0-9/-]+)+.?[0-9]*)/gm; +const phoneCleanRegex = /-|\/|\s/gm; +const emailRegex = /([a-zA-Z0-9+._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi; +const emailCleanRegex = /|\/|\s/gm; + const ContactLink = ({ tel, fax, email, label = true, strong = false }) => { const intl = useIntl(); let ret_label = null; let ret = null; - function ReplacePhoneNumbers(str, type) { - // eslint-disable-next-line no-useless-escape - let newhtml = str.replace(/\+?[0-9]( ?[0-9\/-]+)+.?[0-9]*/gm, function (v) { - let r = - "" + - v + - ''; - return r; - }); - return newhtml; - } + const titles = { + tel: intl.formatMessage(messages.call), + fax: intl.formatMessage(messages.call_fax), + mailto: intl.formatMessage(messages.write_to), + }; - function ReplaceEmails(str) { - let newhtml = str.replace( - /([a-zA-Z0-9+._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi, - function (v) { - let r = - "" + - v + - ''; - return r; - }, - ); - return newhtml; + function replaceString(str, type) { + const regex = type === 'mailto' ? emailRegex : phoneRegex; + return str.split(regex).reduce((acc, substr, i) => { + if (substr.trim() !== '') return acc; + return [ + ...acc, + acc.length === 0 ? '' : ' ', + substr.test(regex) ? ( + + {substr} + + ) : ( + substr + ), + ]; + }, []); } if (tel) { ret_label = intl.formatMessage(messages.telefono); - ret = ReplacePhoneNumbers(tel, 'tel'); + ret = replaceString(tel, 'tel'); } else if (fax) { ret_label = intl.formatMessage(messages.fax); - ret = ReplacePhoneNumbers(fax, 'fax'); + ret = replaceString(fax, 'fax'); } else if (email) { ret_label = intl.formatMessage(messages.email_label); - ret = ReplaceEmails(email); + ret = replaceString(email, 'mailto'); } ret_label = label ? <>{ret_label}: : null; ret_label = label ? strong ? {ret_label} : ret_label : null; @@ -89,7 +89,7 @@ const ContactLink = ({ tel, fax, email, label = true, strong = false }) => { return ret ? ( <> {ret_label} - + {ret} ) : null; }; diff --git a/src/components/ItaliaTheme/View/Commons/HelpBox.jsx b/src/components/ItaliaTheme/View/Commons/HelpBox.jsx index 688fe4b41..7636343ae 100644 --- a/src/components/ItaliaTheme/View/Commons/HelpBox.jsx +++ b/src/components/ItaliaTheme/View/Commons/HelpBox.jsx @@ -1,10 +1,12 @@ import React from 'react'; +import { useIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; import { Callout, CalloutTitle } from 'design-react-kit'; import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme'; import { RichText } from 'design-comuni-plone-theme/components/ItaliaTheme/View'; const HelpBox = ({ text }) => { + const intl = useIntl(); return text ? ( @@ -14,6 +16,7 @@ const HelpBox = ({ text }) => { padding={false} size="" aria-hidden + title={intl.formatMessage(messages.ulteriori_info)} /> @@ -28,4 +31,10 @@ HelpBox.propTypes = { text: PropTypes.object.isRequired, }; +const messages = defineMessages({ + ulteriori_info: { + id: 'ulteriori_info', + defaultMessage: 'Icona ulteriori informazioni', + }, +}); export default HelpBox; diff --git a/src/components/ItaliaTheme/View/Commons/LocationItem.jsx b/src/components/ItaliaTheme/View/Commons/LocationItem.jsx index 6c6192bd3..c383ecb42 100644 --- a/src/components/ItaliaTheme/View/Commons/LocationItem.jsx +++ b/src/components/ItaliaTheme/View/Commons/LocationItem.jsx @@ -27,6 +27,10 @@ const messages = defineMessages({ id: 'circoscrizione', defaultMessage: 'Circoscrizione', }, + icona_luoghi: { + id: 'icona_luoghi', + defaultMessage: 'Icona luoghi', + }, }); const LocationItem = ({ @@ -45,7 +49,12 @@ const LocationItem = ({ return location ? (
- {show_icon && } + {show_icon && ( + + )}
{(location.nome_sede || location.title) && ( diff --git a/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx b/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx index fe499479e..b67c5d20c 100644 --- a/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx +++ b/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx @@ -1,3 +1,4 @@ +import { useIntl, defineMessages } from 'react-intl'; import { UniversalLink } from '@plone/volto/components'; import PropTypes from 'prop-types'; import cx from 'classnames'; @@ -21,6 +22,7 @@ const OfficeCard = ({ no_details = false, ...rest }) => { + const intl = useIntl(); const Image = config.getComponent({ name: 'Image' }).component; const image = showimage && Image({ item: office, sizes: '80px', loading: 'lazy' }); @@ -36,7 +38,12 @@ const OfficeCard = ({ )} {...rest} > - {icon && } + {icon && ( + + )}
{ {intl.formatMessage(messages.modified)}: {' '} - {viewDate(intl.locale, content.modified, 'DD-MM-Y HH:MM')} + {viewDate(intl.locale, content.modified, 'DD-MM-Y HH:mm')} {children} ); diff --git a/src/components/ItaliaTheme/View/Commons/SearchSectionForm.jsx b/src/components/ItaliaTheme/View/Commons/SearchSectionForm.jsx index daa5f8b75..9854c6696 100644 --- a/src/components/ItaliaTheme/View/Commons/SearchSectionForm.jsx +++ b/src/components/ItaliaTheme/View/Commons/SearchSectionForm.jsx @@ -99,7 +99,12 @@ const SearchSectionForm = ({ content }) => { id="search-page-button" className="pe-2 py-0 rounded-0" > - +
diff --git a/src/components/ItaliaTheme/View/Commons/SmallVenue.jsx b/src/components/ItaliaTheme/View/Commons/SmallVenue.jsx index 23035376d..c301b2c3e 100644 --- a/src/components/ItaliaTheme/View/Commons/SmallVenue.jsx +++ b/src/components/ItaliaTheme/View/Commons/SmallVenue.jsx @@ -1,3 +1,4 @@ +// TODO REMOVEME Sembra non più usato, rimuovere import { useDispatch, useSelector } from 'react-redux'; import React, { useEffect } from 'react'; import { getContent } from '@plone/volto/actions'; diff --git a/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno.jsx b/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno.jsx index 32a9872e7..85ff6ea56 100644 --- a/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno.jsx +++ b/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno.jsx @@ -1,3 +1,4 @@ +import { useIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; import { Card, CardBody } from 'design-react-kit'; import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme'; @@ -8,6 +9,7 @@ import { } from 'design-comuni-plone-theme/components/ItaliaTheme/View'; const EventoContattiOrganizzatoreEsterno = ({ content }) => { + const intl = useIntl(); return richTextHasContent(content?.organizzato_da_esterno) || content?.telefono || content?.email || @@ -18,7 +20,10 @@ const EventoContattiOrganizzatoreEsterno = ({ content }) => { noWrapper={true} tag="div" > - + @@ -52,4 +57,11 @@ EventoContattiOrganizzatoreEsterno.propTypes = { content: PropTypes.object.isRequired, }; +const messages = defineMessages({ + icona_telefono: { + id: 'icona_telefono', + defaultMessage: 'Icona telefono', + }, +}); + export default EventoContattiOrganizzatoreEsterno; diff --git a/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoView.jsx b/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoView.jsx index d834bb72f..ec9e3e494 100644 --- a/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoView.jsx +++ b/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoView.jsx @@ -87,7 +87,7 @@ const PaginaArgomentoView = ({ content }) => { > - +

{content?.title}

diff --git a/src/components/ItaliaTheme/View/UOView/UOTelephones.jsx b/src/components/ItaliaTheme/View/UOView/UOTelephones.jsx index 1f41b8701..70173d2c1 100644 --- a/src/components/ItaliaTheme/View/UOView/UOTelephones.jsx +++ b/src/components/ItaliaTheme/View/UOView/UOTelephones.jsx @@ -1,3 +1,4 @@ +// TODO REMOVEME Sembra non più usato, rimuovere import React from 'react'; import PropTypes from 'prop-types'; diff --git a/src/components/ItaliaTheme/View/VenueView/VenueContacts.jsx b/src/components/ItaliaTheme/View/VenueView/VenueContacts.jsx index 7f6dd0433..6e20e79e1 100644 --- a/src/components/ItaliaTheme/View/VenueView/VenueContacts.jsx +++ b/src/components/ItaliaTheme/View/VenueView/VenueContacts.jsx @@ -15,46 +15,10 @@ const messages = defineMessages({ id: 'contatti', defaultMessage: 'Contatti', }, - riferimento_telefonico_luogo: { - id: 'riferimento_telefonico_luogo', - defaultMessage: 'Telefono', - }, - riferimento_fax_luogo: { - id: 'riferimento_fax_luogo', - defaultMessage: 'Fax', - }, - riferimento_mail_luogo: { - id: 'riferimento_mail_luogo', - defaultMessage: 'E-mail', - }, - riferimento_pec_luogo: { - id: 'riferimento_pec_luogo', - defaultMessage: 'PEC', - }, - riferimento_web: { - id: 'riferimento_web', - defaultMessage: 'Web', - }, struttura_responsabile: { id: 'struttura_responsabile', defaultMessage: 'Struttura responsabile', }, - riferimento_telefonico_struttura: { - id: 'riferimento_telefonico_struttura', - defaultMessage: 'Telefono', - }, - riferimento_fax_struttura: { - id: 'riferimento_fax_struttura', - defaultMessage: 'Fax', - }, - riferimento_mail_struttura: { - id: 'riferimento_mail_struttura', - defaultMessage: 'E-mail', - }, - riferimento_pec_struttura: { - id: 'pec', - defaultMessage: 'PEC', - }, }); const VenueContacts = ({ content }) => { @@ -62,77 +26,12 @@ const VenueContacts = ({ content }) => { return content?.contact_info?.length > 0 || content?.struttura_responsabile_correlati?.length > 0 || - // richTextHasContent(content?.struttura_responsabile) || - // content?.riferimento_telefonico_struttura || - // content?.riferimento_fax_struttura || - // content?.riferimento_mail_struttura || - // content?.riferimento_pec_struttura ? ( richTextHasContent(content?.struttura_responsabile) ? ( <> - {/* CONTATTI LUOGO */} - {/* {(content?.telefono || - content?.email || - content?.fax || - content?.pec || - content?.web) && ( - - - - - - {content.telefono && ( -

- {intl.formatMessage(messages.riferimento_telefonico_luogo)} - : -

- )} - - {content.fax && ( -

- {intl.formatMessage(messages.riferimento_fax_luogo)} - : -

- )} - - {content.email && ( -

- {intl.formatMessage(messages.riferimento_mail_luogo)}:{' '} - -

- )} - - {content.pec && ( -

- {intl.formatMessage(messages.riferimento_pec_luogo)}:{' '} - -

- )} - - {content.web && ( -

- {intl.formatMessage(messages.riferimento_web)}:{' '} - - {content.web} - -

- )} -
-
- )} */} {content?.contact_info?.length > 0 && content.contact_info.map((contact) => ( { */}
{(content?.struttura_responsabile_correlati?.length > 0 || - richTextHasContent(content?.struttura_responsabile) || - content?.riferimento_telefonico_struttura || - content?.riferimento_fax_struttura || - content?.riferimento_mail_struttura || - content?.riferimento_pec_struttura) && ( + richTextHasContent(content?.struttura_responsabile)) && ( { ) : ( //STRUTTURA RESPONSABILE <> - {/* {(richTextHasContent(content.struttura_responsabile) || - content.riferimento_telefonico_struttura || - content.riferimento_fax_struttura || - content.riferimento_mail_struttura || - content.riferimento_pec_struttura) && ( */} {richTextHasContent(content.struttura_responsabile) && ( @@ -181,64 +71,6 @@ const VenueContacts = ({ content }) => { )} - {/* - {content.riferimento_telefonico_struttura && ( -
- - {intl.formatMessage( - messages.riferimento_telefonico_struttura, - )} - : - {' '} - -
- )} - {content.riferimento_fax_struttura && ( -
- - {intl.formatMessage( - messages.riferimento_fax_struttura, - )} - : - {' '} - -
- )} - {content.riferimento_mail_struttura && ( -
- - {intl.formatMessage( - messages.riferimento_mail_struttura, - )} - : - {' '} - -
- )} - {content.riferimento_pec_struttura && ( -
- - {intl.formatMessage( - messages.riferimento_pec_struttura, - )} - : - {' '} - -
- )} -
*/}
)} diff --git a/src/components/ItaliaTheme/index.js b/src/components/ItaliaTheme/index.js index e9dd9bd30..71199cc45 100644 --- a/src/components/ItaliaTheme/index.js +++ b/src/components/ItaliaTheme/index.js @@ -32,7 +32,7 @@ export GalleryPreview from 'design-comuni-plone-theme/components/ItaliaTheme/Gal /********* LAYOUT ********* */ export LanguageSelector from 'design-comuni-plone-theme/components/ItaliaTheme/LanguageSelector/LanguageSelector'; -export HeaderSlim from 'design-comuni-plone-theme/components/ItaliaTheme/Header/HeaderSlim'; +export HeaderSlim from 'design-comuni-plone-theme/components/ItaliaTheme/Header/HeaderSlim/HeaderSlim'; export HeaderSlimRightZone from 'design-comuni-plone-theme/components/ItaliaTheme/Header/HeaderSlim/HeaderSlimRightZone'; export HeaderLogin from 'design-comuni-plone-theme/components/ItaliaTheme/Header/HeaderSlim/HeaderLogin'; export LoginButton from 'design-comuni-plone-theme/components/ItaliaTheme/Header/HeaderSlim/LoginButton'; diff --git a/src/components/SelectInput/SelectInput.jsx b/src/components/SelectInput/SelectInput.jsx index 7e0e37ec9..1902478b2 100644 --- a/src/components/SelectInput/SelectInput.jsx +++ b/src/components/SelectInput/SelectInput.jsx @@ -88,6 +88,10 @@ const messages = defineMessages({ id: 'ay11_select cancel', defaultMessage: 'Annulla', }, + dropwdown_indicator: { + id: 'dropdown_indicator', + defaultMessage: 'Apri il menu', + }, }); const SelectContainer = injectLazyLibs('reactSelect')(({ @@ -131,10 +135,15 @@ MenuList.propTypes = { }; const DropdownIndicator = injectLazyLibs('reactSelect')((props) => { + const intl = useIntl(); const components = props.reactSelect.components; return ( - + ); }); @@ -165,7 +174,11 @@ const ClearIndicator = (props) => { style={{ padding: '0px 5px' }} title={intl.formatMessage(messages.ay11_for_cancel)} > - +
); diff --git a/src/config/Blocks/ListingOptions/attachmentCardTemplate.js b/src/config/Blocks/ListingOptions/attachmentCardTemplate.js new file mode 100644 index 000000000..d54b2fe45 --- /dev/null +++ b/src/config/Blocks/ListingOptions/attachmentCardTemplate.js @@ -0,0 +1,40 @@ +import { defineMessages } from 'react-intl'; + +import { templatesOptions } from 'design-comuni-plone-theme/config/Blocks/ListingOptions'; + +const messages = defineMessages({ + show_pdf_preview: { + id: 'show_pdf_preview', + defaultMessage: 'Mostra i PDF in anteprima', + }, + show_pdf_desc: { + id: 'show_pdf_desc', + defaultMessage: + "Permette di aprire l'anteprima di tutti i PDF di questo elenco in una tab separata altrimenti vengono scaricati.", + }, +}); + +export const addAttachmentCardTemplateOptions = ( + schema, + formData, + intl, + position = 1, +) => { + let pos = position; + + pos = templatesOptions( + schema, + formData, + intl, + ['show_pdf_preview'], + { + show_pdf_preview: { + default: false, + label: intl.formatMessage(messages.show_pdf_preview), + description: intl.formatMessage(messages.show_pdf_desc), + }, + }, + pos, + ); + return pos; +}; diff --git a/src/config/Blocks/ListingOptions/index.js b/src/config/Blocks/ListingOptions/index.js index caab64e02..36cb46fb9 100644 --- a/src/config/Blocks/ListingOptions/index.js +++ b/src/config/Blocks/ListingOptions/index.js @@ -22,3 +22,4 @@ export { addSimpleListTemplateOptions } from 'design-comuni-plone-theme/config/B export { addCardWithSlideUpTextTemplateOptions } from 'design-comuni-plone-theme/config/Blocks/ListingOptions/cardWithSlideUpTextTemplate'; export { addPhotogalleryTemplateOptions } from 'design-comuni-plone-theme/config/Blocks/ListingOptions/photogalleryTemplate'; export { addSmallBlockLinksTemplateOptions } from 'design-comuni-plone-theme/config/Blocks/ListingOptions/smallBlockLinksTemplate'; +export { addAttachmentCardTemplateOptions } from 'design-comuni-plone-theme/config/Blocks/ListingOptions/attachmentCardTemplate'; diff --git a/src/config/Blocks/listingVariations.js b/src/config/Blocks/listingVariations.js index 59c5a6614..e91012edd 100644 --- a/src/config/Blocks/listingVariations.js +++ b/src/config/Blocks/listingVariations.js @@ -42,6 +42,8 @@ import SimpleListTemplateSkeleton from 'design-comuni-plone-theme/components/Ita import CardWithSlideUpTextTemplate from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Listing/CardWithSlideUpTextTemplate'; import CardWithSlideUpTextTemplateSkeleton from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/CardWithSlideUpTextTemplateSkeleton'; +import AttachmentCardTemplate from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate'; + // import AmministrazioneTrasparenteTablesTemplate from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Listing/AmministrazioneTrasparenteTablesTemplate'; // import AmministrazioneTrasparenteTablesTemplateSkeleton from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/AmministrazioneTrasparenteTablesTemplateSkeleton'; @@ -60,6 +62,7 @@ import { addPhotogalleryTemplateOptions, addLinkMoreOptions, addSmallBlockLinksTemplateOptions, + addAttachmentCardTemplateOptions, cloneBlock, } from 'design-comuni-plone-theme/config/Blocks/ListingOptions'; @@ -268,6 +271,20 @@ const italiaListingVariations = [ }, cloneData: cloneBlock, }, + { + id: 'attachmentCardTemplate', + isDefault: false, + title: 'Allegati', + template: AttachmentCardTemplate, + // used default skeleton + schemaEnhancer: ({ schema, formData, intl }) => { + let pos = addDefaultOptions(schema, formData, intl); + addAttachmentCardTemplateOptions(schema, formData, intl, pos); + addLinkMoreOptions(schema, formData, intl); + return schema; + }, + cloneData: cloneBlock, + }, // { // id: 'amministrazioneTrasparenteTablesTemplate', // isDefault: false, diff --git a/src/customizations/volto-form-block/components/Field.jsx b/src/customizations/volto-form-block/components/Field.jsx index daad047a5..1052b5813 100644 --- a/src/customizations/volto-form-block/components/Field.jsx +++ b/src/customizations/volto-form-block/components/Field.jsx @@ -10,6 +10,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { useIntl, defineMessages } from 'react-intl'; import { Input, FormGroup, Label } from 'design-react-kit'; +import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme'; import FileWidget from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/FileWidget'; import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable'; @@ -22,6 +23,24 @@ const messages = defineMessages({ id: 'form_select_a_value', defaultMessage: 'Seleziona un valore', }, + open_menu: { + id: 'open_menu', + defaultMessage: 'Apri il menu', + }, +}); + +const DropdownIndicator = injectLazyLibs('reactSelect')((props) => { + const intl = useIntl(); + const components = props.reactSelect.components; + return ( + + + + ); }); /** @@ -114,6 +133,7 @@ const Field = ({ +
+ )} + +
+ {value && ( + + {value.filename} + + )} + {value && ( + + )} +
+ + ); +}; + +/** + * Property types. + * @property {Object} propTypes Property types. + * @static + */ +FileWidget.propTypes = { + id: PropTypes.string.isRequired, + title: PropTypes.string.isRequired, + description: PropTypes.string, + required: PropTypes.bool, + error: PropTypes.arrayOf(PropTypes.string), + value: PropTypes.shape({ + '@type': PropTypes.string, + title: PropTypes.string, + }), + onChange: PropTypes.func.isRequired, + wrapped: PropTypes.bool, +}; + +/** + * Default properties. + * @property {Object} defaultProps Default properties. + * @static + */ +FileWidget.defaultProps = { + description: null, + required: false, + error: [], + value: null, +}; + +export default injectIntl(FileWidget); diff --git a/src/customizations/volto/components/theme/Navigation/Navigation.jsx b/src/customizations/volto/components/theme/Navigation/Navigation.jsx index d8d984112..f710f8533 100644 --- a/src/customizations/volto/components/theme/Navigation/Navigation.jsx +++ b/src/customizations/volto/components/theme/Navigation/Navigation.jsx @@ -100,13 +100,16 @@ const Navigation = ({ pathname }) => { { setCollapseOpen(!collapseOpen); setFocusTrapActive(!focusTrapActive); }} > - + { title={intl.formatMessage(messages.CloseMenu)} onClick={() => setCollapseOpen(!collapseOpen)} > - +
@@ -177,6 +185,10 @@ const messages = defineMessages({ id: 'close-menu', defaultMessage: 'Chiudi menu', }, + toggleNavigation: { + id: 'toggle-navigation', + defaultMessage: 'Apri il menu', + }, }); Navigation.propTypes = { diff --git a/src/helpers/IconWidget/IconAliasHelper.js b/src/helpers/IconWidget/IconAliasHelper.js index 7cbfdbfed..8a6f9866b 100644 --- a/src/helpers/IconWidget/IconAliasHelper.js +++ b/src/helpers/IconWidget/IconAliasHelper.js @@ -218,6 +218,7 @@ export const fontAwesomeAliases = { 'field-hockey': 'field-hockey-stick-ball', 'fighter-jet': 'jet-fighter', 'file-alt': 'file-lines', + 'file-ppt': 'file-powerpoint', 'file-archive': 'file-zipper', 'file-chart-line': 'file-chart-column', 'file-download': 'file-arrow-down', diff --git a/src/theme/ItaliaTheme/Blocks/_iconBlocks.scss b/src/theme/ItaliaTheme/Blocks/_iconBlocks.scss index 663fa53ec..ecb4c52d4 100644 --- a/src/theme/ItaliaTheme/Blocks/_iconBlocks.scss +++ b/src/theme/ItaliaTheme/Blocks/_iconBlocks.scss @@ -26,17 +26,35 @@ left: 0; width: 100%; height: 100%; - background-position: top center; - background-repeat: no-repeat; - background-size: cover; + overflow: hidden; + img { + position: absolute; + min-width: 100%; + min-height: 100%; + height: auto; + width: auto; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + max-width: unset; + } &:after { position: absolute; width: 100%; height: 100%; - background-color: $primary; + background-color: rgba( + $primary, + 0.85 + ); // serve per fare la trasparenza sull'immagine di sfondo. content: ''; } + + &.no-image { + &:after { + background-color: $primary; + } + } } .block-header { diff --git a/src/theme/ItaliaTheme/Blocks/_ribbonCardTemplate.scss b/src/theme/ItaliaTheme/Blocks/_ribbonCardTemplate.scss index 990e6006d..df9c276a1 100644 --- a/src/theme/ItaliaTheme/Blocks/_ribbonCardTemplate.scss +++ b/src/theme/ItaliaTheme/Blocks/_ribbonCardTemplate.scss @@ -1,5 +1,9 @@ .ribbon-card-template { .card { + .flag-icon { + width: $ribbon-width; + } + .dates { font-size: 0.8em; text-transform: uppercase; @@ -8,11 +12,10 @@ .etichetta { position: absolute; top: 3rem; - right: 0; - left: 0; - width: 100%; + right: 0px; + left: auto; + max-width: calc(100% - $ribbon-spacing-h * 3 - $ribbon-width); justify-content: inherit; - padding: 0 3rem; .icon { margin-left: auto; diff --git a/src/theme/ItaliaTheme/Components/_cardPersona.scss b/src/theme/ItaliaTheme/Components/_cardPersona.scss index ce217efce..9faaf81c7 100644 --- a/src/theme/ItaliaTheme/Components/_cardPersona.scss +++ b/src/theme/ItaliaTheme/Components/_cardPersona.scss @@ -3,6 +3,7 @@ display: flex; flex: 1; align-items: flex-start; + width: 100%; } .card-body { diff --git a/src/theme/ItaliaTheme/Print/_all_pages.scss b/src/theme/ItaliaTheme/Print/_all_pages.scss index 1cdcfd817..c2b5126bf 100644 --- a/src/theme/ItaliaTheme/Print/_all_pages.scss +++ b/src/theme/ItaliaTheme/Print/_all_pages.scss @@ -174,6 +174,9 @@ display: none; } } + .leaflet-container { + break-inside: avoid; + } #contenuti-correlati { display: none; diff --git a/src/theme/ItaliaTheme/Print/_uo.scss b/src/theme/ItaliaTheme/Print/_uo.scss new file mode 100644 index 000000000..98d52c025 --- /dev/null +++ b/src/theme/ItaliaTheme/Print/_uo.scss @@ -0,0 +1,88 @@ +.contenttype-unitaorganizzativa { + @media print { + .documentDescription { + font-size: 1rem; + } + + .card-wrapper { + padding-bottom: 0px; + &.card-teaser-wrapper { + margin: 0px; + &.row, + & { + --bs-gutter-y: 0px !important; + + .card { + border: none !important; + &.card-big-io-comune .card-body { + padding: 0px !important; + + .category-top { + display: none; + } + + .card-title a { + font-size: 16px; + display: flex; + + &::before { + content: '•'; + display: block; + margin-right: 5px; + } + } + } + + .avatar { + display: none; + } + + &.p-3, + &.p-4 { + padding: 0px !important; + } + + &.my-3 { + margin-top: 0px !important; + margin-bottom: 0px !important; + } + + &:after { + display: none; + } + + &.shadow-sm { + box-shadow: none !important; + } + } + } + } + } + + .ruolo-persone-struttura { + .card .card-body { + .card-title { + margin-bottom: 0px !important; + } + .card-text { + padding-top: 0px; + } + + h4 { + &.card-title { + & + .card-text { + padding-top: 0px; + } + } + } + } + .mb-3 { + margin-bottom: 6px !important; + } + } + + .anchor-offset:before { + display: none; + } + } +} diff --git a/src/theme/_cms-ui.scss b/src/theme/_cms-ui.scss index b4209fd67..fe3cf30ce 100644 --- a/src/theme/_cms-ui.scss +++ b/src/theme/_cms-ui.scss @@ -108,7 +108,7 @@ body.cms-ui { } } - .public-ui { + .public-ui:not(:has(.it-header-wrapper)) { a:not(.btn) { color: $link-color; } diff --git a/src/theme/_site-variables.scss b/src/theme/_site-variables.scss index ba08dcaaa..8388d11e2 100644 --- a/src/theme/_site-variables.scss +++ b/src/theme/_site-variables.scss @@ -59,3 +59,7 @@ $external-link-fill-subfooter: $tertiary-text !default; $dvt-navigation-v-padding: 15px !default; // $navigation-h-padding: 24px; + +$spacer: 16px; +$ribbon-spacing-h: calc($spacer * 3); +$ribbon-width: calc($spacer * 2); diff --git a/src/theme/site.scss b/src/theme/site.scss index 2703fc96c..eb25da48f 100644 --- a/src/theme/site.scss +++ b/src/theme/site.scss @@ -139,6 +139,7 @@ @import 'ItaliaTheme/Print/persona'; @import 'ItaliaTheme/Print/event'; @import 'ItaliaTheme/Print/servizio'; +@import 'ItaliaTheme/Print/uo'; @import 'ItaliaTheme/Print/blocks'; @import 'addonsThemeCustomizationsMain'; diff --git a/yarn.lock b/yarn.lock index 78933efb0..59d137092 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6576,11 +6576,11 @@ __metadata: volto-dropdownmenu: 4.1.1 volto-editablefooter: 5.1.0 volto-feedback: 0.3.0 - volto-form-block: 3.5.2 + volto-form-block: 3.7.2 volto-gdpr-privacy: 2.1.1 volto-google-analytics: 2.0.0 volto-multilingual-widget: 3.0.0 - volto-querywidget-with-browser: 0.4.1 + volto-querywidget-with-browser: 0.4.2 volto-rss-block: 3.0.0 volto-secondarymenu: 4.0.0 volto-slimheader: 0.1.0 @@ -14356,9 +14356,9 @@ __metadata: languageName: node linkType: hard -"volto-form-block@npm:3.5.2": - version: 3.5.2 - resolution: "volto-form-block@npm:3.5.2" +"volto-form-block@npm:3.7.2": + version: 3.7.2 + resolution: "volto-form-block@npm:3.7.2" dependencies: "@hcaptcha/react-hcaptcha": ^0.3.6 file-saver: ^2.0.5 @@ -14367,7 +14367,7 @@ __metadata: peerDependencies: "@plone/volto": ">=16.0.0-alpha.38" volto-subblocks: ^2.0.0 - checksum: 8154132d440df4cd6d240fb4b913607890ca9128fae7b9efc7d2037bf47fbe0007cab51cc009fca14793db5dc38b18432383e5b491d0d9aeb56ab89cf65942df + checksum: 7387a1b85a877c3da5dd800b33b6a01673ef60e2bcecd2c25cafd22f8474bf167e0f39befc289d2ae8614abf35fdd424066dd83a77ad0bdced2d297ef8652eeb languageName: node linkType: hard @@ -14403,12 +14403,12 @@ __metadata: languageName: node linkType: hard -"volto-querywidget-with-browser@npm:0.4.1": - version: 0.4.1 - resolution: "volto-querywidget-with-browser@npm:0.4.1" +"volto-querywidget-with-browser@npm:0.4.2": + version: 0.4.2 + resolution: "volto-querywidget-with-browser@npm:0.4.2" peerDependencies: "@plone/volto": ^17.0.0 - checksum: a01eacb7fa67561066f288c7ba18f5af177a88deca142f57c33638eb63bc1894d46ac66f01c6d2e3ea4e4f43479b762a63246a08f6600d665174d55d2a49c207 + checksum: 881cede295a8609f1f01d67835533b73f0f8199e3fc2c209f350897b670a40f9c631567dacbbd0db8160a94c36c9b97465e87c2b90a82e2e128619f07658a212 languageName: node linkType: hard