diff --git a/RELEASE.md b/RELEASE.md index f2b187401..47ae0c393 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -48,15 +48,19 @@ - Tradotto il messaggio per Screen Reader del bottone per aprire e chiudere il menu in mobile. ### 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 -- ... +- Sistemata la visualizzazione dei blocchi elenco all'interno del blocco griglia +- 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. +- Sistemato bug su blocchi di ricerca Bandi, Eventi e UO nei quali rimanevano memorizzati i risultati di ricerca anche se si lasciava la pagina con questi blocchi. ## Versione 11.8.0 (19/03/2024) diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index aaa504d59..6dab216e5 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -839,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" @@ -859,6 +865,7 @@ msgstr "" msgid "assessore_riferimento" msgstr "" +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/View/Commons/Attachment # defaultMessage: Allegato msgid "attachment" @@ -1106,7 +1113,7 @@ msgid "calendarBlockSidebarTitle" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "" @@ -1116,7 +1123,7 @@ msgid "calendar_no_results" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" msgstr "" @@ -1156,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" @@ -1214,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" @@ -1755,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" @@ -2228,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" @@ -2300,6 +2342,7 @@ msgstr "" msgid "legend_required" msgstr "" +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/Blocks/SearchSections/SideBar # defaultMessage: Collegamento msgid "link" @@ -2609,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" @@ -2748,7 +2801,6 @@ msgid "patrocinato_da" msgstr "" #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView -#: components/ItaliaTheme/View/VenueView/VenueContacts #: helpers/contentHelper # defaultMessage: PEC msgid "pec" @@ -2910,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" @@ -3599,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" @@ -3984,6 +4006,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 07b4cb3de..bafa79b08 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -824,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" @@ -844,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" @@ -1091,7 +1098,7 @@ msgid "calendarBlockSidebarTitle" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "" @@ -1101,7 +1108,7 @@ msgid "calendar_no_results" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" msgstr "" @@ -1141,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" @@ -1199,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" @@ -1740,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" @@ -2213,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" @@ -2285,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" @@ -2594,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" @@ -2733,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" @@ -2895,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" @@ -3584,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" @@ -3929,17 +3951,17 @@ msgstr "to" #: overrideTranslations # defaultMessage: {action} il menu msgid "toggle-menu" -msgstr "" +msgstr "{action} the menu" #: overrideTranslations # defaultMessage: Chiudi msgid "toggleMenu_close" -msgstr "" +msgstr "Close" #: overrideTranslations # defaultMessage: Apri msgid "toggleMenu_open" -msgstr "" +msgstr "Open" #: components/ItaliaTheme/Header/HeaderSearch/SearchModal #: components/ItaliaTheme/Search/Search @@ -3969,6 +3991,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 3b0dd01d5..994bac042 100644 --- a/locales/es/LC_MESSAGES/volto.po +++ b/locales/es/LC_MESSAGES/volto.po @@ -833,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" @@ -853,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" @@ -1100,7 +1107,7 @@ msgid "calendarBlockSidebarTitle" msgstr "Calendario" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "Próximo" @@ -1110,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" @@ -1150,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" @@ -1208,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" @@ -1749,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" @@ -2222,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" @@ -2294,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" @@ -2603,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" @@ -2742,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" @@ -2904,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" @@ -3593,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" @@ -3978,6 +4000,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 3108a9ac9..6c8900a10 100644 --- a/locales/fr/LC_MESSAGES/volto.po +++ b/locales/fr/LC_MESSAGES/volto.po @@ -841,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" @@ -861,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" @@ -1108,7 +1115,7 @@ msgid "calendarBlockSidebarTitle" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "" @@ -1118,7 +1125,7 @@ msgid "calendar_no_results" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" msgstr "" @@ -1158,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" @@ -1216,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" @@ -1757,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" @@ -2230,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" @@ -2302,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" @@ -2611,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" @@ -2750,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" @@ -2912,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" @@ -3601,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" @@ -3986,6 +4008,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 eeabf98fb..7140bf86d 100644 --- a/locales/it/LC_MESSAGES/volto.po +++ b/locales/it/LC_MESSAGES/volto.po @@ -824,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" @@ -844,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" @@ -1091,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 @@ -1101,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 @@ -1141,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" @@ -1199,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" @@ -1740,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" @@ -2213,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" @@ -2285,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" @@ -2594,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" @@ -2733,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" @@ -2895,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" @@ -3584,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" @@ -3969,6 +3991,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 5f3e67311..3e9d73c81 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,11 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" +<<<<<<< HEAD "POT-Creation-Date: 2024-03-27T13:23:48.779Z\n" +======= +"POT-Creation-Date: 2024-03-28T15:22:56.240Z\n" +>>>>>>> main "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -826,6 +830,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" @@ -846,6 +856,7 @@ msgstr "" msgid "assessore_riferimento" msgstr "" +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/View/Commons/Attachment # defaultMessage: Allegato msgid "attachment" @@ -1093,7 +1104,7 @@ msgid "calendarBlockSidebarTitle" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "" @@ -1103,7 +1114,7 @@ msgid "calendar_no_results" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" msgstr "" @@ -1143,6 +1154,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" @@ -1201,6 +1217,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" @@ -1742,6 +1763,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" @@ -2215,6 +2241,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" @@ -2287,6 +2333,7 @@ msgstr "" msgid "legend_required" msgstr "" +#: components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate #: components/ItaliaTheme/Blocks/SearchSections/SideBar # defaultMessage: Collegamento msgid "link" @@ -2596,6 +2643,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" @@ -2735,7 +2792,6 @@ msgid "patrocinato_da" msgstr "" #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView -#: components/ItaliaTheme/View/VenueView/VenueContacts #: helpers/contentHelper # defaultMessage: PEC msgid "pec" @@ -2897,46 +2953,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" @@ -3586,6 +3602,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" @@ -3971,6 +3997,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 f6125dc02..b75dee97f 100644 --- a/package.json +++ b/package.json @@ -144,9 +144,9 @@ "volto-blocks-widget": "3.4.0", "volto-data-grid-widget": "2.3.1", "volto-dropdownmenu": "4.1.1", - "volto-editablefooter": "5.1.0", + "volto-editablefooter": "5.1.1", "volto-feedback": "0.3.0", - "volto-form-block": "3.7.1", + "volto-form-block": "3.7.2", "volto-gdpr-privacy": "2.1.1", "volto-google-analytics": "2.0.0", "volto-multilingual-widget": "3.0.0", diff --git a/src/actions/index.js b/src/actions/index.js index c563bcc8b..4c7e4676c 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -14,7 +14,7 @@ import { getSearchFilters, GET_SEARCH_FILTERS } from './getSearchFilters'; import { getSearchResults, GET_SEARCH_RESULTS } from './getSearchResults'; import { getCalendarResults, GET_CALENDAR_RESULTS } from './calendarSearch'; - +import { resetQuerystringResults } from './resetQuerystringResults'; import { setOriginalQuery, ORIGINAL_QUERY } from './setOriginalQuery'; import { @@ -61,4 +61,5 @@ export { ORIGINAL_QUERY, getSearchBandiFilters, GET_SEARCH_BANDI_FILTERS, + resetQuerystringResults, }; diff --git a/src/actions/resetQuerystringResults.js b/src/actions/resetQuerystringResults.js new file mode 100644 index 000000000..7ef3e3c66 --- /dev/null +++ b/src/actions/resetQuerystringResults.js @@ -0,0 +1,18 @@ +/* +- il reducer del type RESET_QUERYSTRING_RESULTS viene già dichiarato in Volto nel file reducers/querystringsearch/querystringsearch.js +*/ + +export const RESET_QUERYSTRING_RESULTS = 'RESET_QUERYSTRING_RESULTS'; + +/** + * Reset querystring results function. + * @function resetQuerystringResults + * @param {string} subrequest Key of the subrequest. + * @returns {Object} Search content action. + */ +export function resetQuerystringResults(subrequest = null) { + return { + type: RESET_QUERYSTRING_RESULTS, + subrequest, + }; +} 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/BandiSearch/Body.jsx b/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx index b12cef130..2c807e508 100644 --- a/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx +++ b/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx @@ -9,7 +9,7 @@ import { getQueryStringResults } from '@plone/volto/actions'; import { flattenToAppURL } from '@plone/volto/helpers'; import BandiInEvidenceTemplate from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate'; import { Pagination } from 'design-comuni-plone-theme/components/ItaliaTheme'; - +import { resetQuerystringResults } from 'design-comuni-plone-theme/actions'; import FiltersConfig from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/BandiSearch/FiltersConfig'; const messages = defineMessages({ @@ -32,7 +32,7 @@ const messages = defineMessages({ }, }); -const Body = ({ data, inEditMode, path, onChangeBlock }) => { +const Body = ({ data, id, inEditMode, path, onChangeBlock }) => { const intl = useIntl(); const b_size = 6; @@ -44,14 +44,19 @@ const Body = ({ data, inEditMode, path, onChangeBlock }) => { const dispatch = useDispatch(); const querystringResults = useSelector((state) => { - return state.querystringsearch?.subrequests?.bandi_search; + return state.querystringsearch?.subrequests?.[id + '_bandi_search']; }); const items = useSelector((state) => { - return state.querystringsearch?.subrequests?.bandi_search?.items ?? []; + return ( + state.querystringsearch?.subrequests?.[id + '_bandi_search']?.items ?? [] + ); }); const loading = useSelector((state) => { - return state.querystringsearch?.subrequests?.bandi_search?.loading || false; + return ( + state.querystringsearch?.subrequests?.[id + '_bandi_search']?.loading || + false + ); }); const resultsRef = createRef(); @@ -92,7 +97,7 @@ const Body = ({ data, inEditMode, path, onChangeBlock }) => { sort_on: data.sort_on, sort_order: data.sort_order ? 'descending' : 'ascending', }, - 'bandi_search', + id + '_bandi_search', page, ), ); @@ -112,6 +117,7 @@ const Body = ({ data, inEditMode, path, onChangeBlock }) => { newState = { ...getInitialState(), }; + dispatch(resetQuerystringResults(id + '_bandi_search')); } else { const f = newState[action.filter]; const defaultReducer = (value, state) => value; diff --git a/src/components/ItaliaTheme/Blocks/BandiSearch/Edit.jsx b/src/components/ItaliaTheme/Blocks/BandiSearch/Edit.jsx index d8f1e5071..7495a50a2 100644 --- a/src/components/ItaliaTheme/Blocks/BandiSearch/Edit.jsx +++ b/src/components/ItaliaTheme/Blocks/BandiSearch/Edit.jsx @@ -14,7 +14,7 @@ const messages = defineMessages({ }, }); -const Edit = ({ data, block, onChangeBlock, selected, pathname }) => { +const Edit = ({ data, id, block, onChangeBlock, selected, pathname }) => { const intl = useIntl(); return ( @@ -24,6 +24,7 @@ const Edit = ({ data, block, onChangeBlock, selected, pathname }) => { )} {
{ 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/EventSearch/Body.jsx b/src/components/ItaliaTheme/Blocks/EventSearch/Body.jsx index 2e912e6e5..d1c4dcd23 100644 --- a/src/components/ItaliaTheme/Blocks/EventSearch/Body.jsx +++ b/src/components/ItaliaTheme/Blocks/EventSearch/Body.jsx @@ -9,7 +9,7 @@ import { getQueryStringResults } from '@plone/volto/actions'; import { flattenToAppURL } from '@plone/volto/helpers'; import CardWithImageTemplate from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Listing/CardWithImageTemplate'; import { Pagination } from 'design-comuni-plone-theme/components/ItaliaTheme'; - +import { resetQuerystringResults } from 'design-comuni-plone-theme/actions'; import FiltersConfig from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/EventSearch/FiltersConfig'; const messages = defineMessages({ @@ -32,7 +32,7 @@ const messages = defineMessages({ }, }); -const Body = ({ data, inEditMode, path, onChangeBlock }) => { +const Body = ({ data, id, inEditMode, path, onChangeBlock }) => { const intl = useIntl(); const b_size = 6; @@ -44,22 +44,25 @@ const Body = ({ data, inEditMode, path, onChangeBlock }) => { const dispatch = useDispatch(); const querystringResults = useSelector((state) => { - return state.querystringsearch?.subrequests?.events_search; + return state.querystringsearch?.subrequests?.[id + '_events_search']; }); const items = useSelector((state) => { - return state.querystringsearch?.subrequests?.events_search?.items ?? []; + return ( + state.querystringsearch?.subrequests?.[id + '_events_search']?.items ?? [] + ); }); const loading = useSelector((state) => { return ( - state.querystringsearch?.subrequests?.events_search?.loading || false + state.querystringsearch?.subrequests?.[id + '_events_search']?.loading || + false ); }); const firstLoading = useSelector((state) => { return ( - !state.querystringsearch?.subrequests?.events_search?.loading && - !state.querystringsearch?.subrequests?.events_search?.loaded + !state.querystringsearch?.subrequests?.[id + '_events_search']?.loading && + !state.querystringsearch?.subrequests?.[id + '_events_search']?.loaded ); }); @@ -99,7 +102,7 @@ const Body = ({ data, inEditMode, path, onChangeBlock }) => { query: query, b_size: b_size, }, - 'events_search', + id + '_events_search', page, ), ); @@ -123,6 +126,7 @@ const Body = ({ data, inEditMode, path, onChangeBlock }) => { newState = { ...getInitialState(), }; + dispatch(resetQuerystringResults(id + '_events_search')); } else { const f = newState[action.filter]; const defaultReducer = (value, state) => value; diff --git a/src/components/ItaliaTheme/Blocks/EventSearch/Edit.jsx b/src/components/ItaliaTheme/Blocks/EventSearch/Edit.jsx index f7749ccbc..dd175a093 100644 --- a/src/components/ItaliaTheme/Blocks/EventSearch/Edit.jsx +++ b/src/components/ItaliaTheme/Blocks/EventSearch/Edit.jsx @@ -14,7 +14,7 @@ const messages = defineMessages({ }, }); -const Edit = ({ data, block, onChangeBlock, selected, pathname }) => { +const Edit = ({ data, id, block, onChangeBlock, selected, pathname }) => { const intl = useIntl(); return ( @@ -24,6 +24,7 @@ const Edit = ({ data, block, onChangeBlock, selected, pathname }) => { )} {
{ {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/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 Body = ({ data, id, inEditMode, path, onChangeBlock }) => { const intl = useIntl(); const b_size = 6; @@ -40,14 +41,19 @@ const Body = ({ data, inEditMode, path, onChangeBlock }) => { const dispatch = useDispatch(); const querystringResults = useSelector((state) => { - return state.querystringsearch?.subrequests?.uo_search; + return state.querystringsearch?.subrequests?.[id + '_uo_search']; }); const items = useSelector((state) => { - return state.querystringsearch?.subrequests?.uo_search?.items ?? []; + return ( + state.querystringsearch?.subrequests?.[id + '_uo_search']?.items ?? [] + ); }); const loading = useSelector((state) => { - return state.querystringsearch?.subrequests?.uo_search?.loading || false; + return ( + state.querystringsearch?.subrequests?.[id + '_uo_search']?.loading || + false + ); }); const resultsRef = createRef(); @@ -86,7 +92,7 @@ const Body = ({ data, inEditMode, path, onChangeBlock }) => { query: query, b_size: b_size, }, - 'uo_search', + id + '_uo_search', page, ), ); @@ -106,6 +112,7 @@ const Body = ({ data, inEditMode, path, onChangeBlock }) => { newState = { ...getInitialState(), }; + dispatch(resetQuerystringResults(id + '_uo_search')); } else { const f = newState[action.filter]; const defaultReducer = (value, state) => value; diff --git a/src/components/ItaliaTheme/Blocks/UOSearch/Edit.jsx b/src/components/ItaliaTheme/Blocks/UOSearch/Edit.jsx index 3b0480dae..96223efc5 100644 --- a/src/components/ItaliaTheme/Blocks/UOSearch/Edit.jsx +++ b/src/components/ItaliaTheme/Blocks/UOSearch/Edit.jsx @@ -14,7 +14,7 @@ const messages = defineMessages({ }, }); -const Edit = ({ data, block, onChangeBlock, selected, pathname }) => { +const Edit = ({ data, id, block, onChangeBlock, selected, pathname }) => { const intl = useIntl(); return ( @@ -24,6 +24,7 @@ const Edit = ({ data, block, onChangeBlock, selected, pathname }) => { )} {
{ {data?.title &&

{data.title}

} {(data?.channel_link || data?.channel_link_title) && (
- + {data.channel_link ? ( { 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..b434308a0 100644 --- a/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno.jsx +++ b/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno.jsx @@ -1,6 +1,5 @@ import PropTypes from 'prop-types'; import { Card, CardBody } from 'design-react-kit'; -import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme'; import { RichText, richTextHasContent, @@ -18,8 +17,6 @@ const EventoContattiOrganizzatoreEsterno = ({ content }) => { noWrapper={true} tag="div" > - - {content?.telefono && ( diff --git a/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno.jsx b/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno.jsx index 22d9c4f4a..a0518130f 100644 --- a/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno.jsx +++ b/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno.jsx @@ -23,7 +23,6 @@ const EventoContattiOrganizzatoreInterno = ({ content }) => { margin_bottom={index < content?.organizzato_da_interno?.length - 1} key={item['@id']} office={item} - icon={'it-telephone'} > {richTextHasContent(content?.contatto_reperibilita) && (

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/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/config/italiaConfig.js b/src/config/italiaConfig.js index 05be17c8f..18685dede 100644 --- a/src/config/italiaConfig.js +++ b/src/config/italiaConfig.js @@ -384,6 +384,7 @@ export default function applyConfig(voltoConfig) { const customBlocks = { ...getItaliaBlocks(config), + listing: { ...config.blocks.blocksConfig.listing, showLinkMore: true, @@ -453,6 +454,12 @@ export default function applyConfig(voltoConfig) { showEditBlocksInBabelView: true, }; + //per avere la conf dei blocchi anche nel blocco grid, altrimenti nel blocco grid prende la conf base di volto. + config.blocks.blocksConfig.gridBlock = { + ...config.blocks.blocksConfig.gridBlock, + blocksConfig: config.blocks.blocksConfig, + }; + removeListingVariation(config, 'default'); // removes default volto template, because it will be overrided removeListingVariation(config, 'summary'); // removes summary volto template, because is unused removeListingVariation(config, 'imageGallery'); // removes imageGallery volto template, because we have our photoGallery template 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 = ({