Skip to content

Commit

Permalink
feat: added appearance SimpleCard and ImageCard to listing slider tem…
Browse files Browse the repository at this point in the history
…plate (#512)

* feat: added appearance Card to slider template

* feat: added appearance SimpleCard and ImageCard to listing slider template

* fix: infos

* fix: styles

* chore: splitted cardWithImageAndInEvidence.scss file

* chore: Rename _inevidencetemplate.scss to _inEvidenceTemplate.scss

* fix: avoid items repeat if nSlides is lower than results lenght

* fix: a11y

* fix: slider a11y

* fix: slider tab

* fix: slider a11y

* chore: moved handleSlideKeydown inside slider utils2

* chore: moved useSlider in dedicated file

* fix: only carouse images

* chore: removed console.log
  • Loading branch information
giuliaghisini authored Apr 8, 2024
1 parent 47b9c70 commit a37e985
Show file tree
Hide file tree
Showing 49 changed files with 1,724 additions and 1,212 deletions.
4 changes: 4 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
- ...
-->

## Versione x.x.x (xx/xx/xxxx)

### Novità
- Nel template Slider del blocco elenco, ora è possibile scegliere l'aspetto degli elementi dello slider (default: slide semplice con immagine e titolo cliccabile, Card semplice, Card con immagine).
## Versione X.X.X (dd/mm/yyyy)

### Migliorie
Expand Down
77 changes: 41 additions & 36 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ msgid "Allow Externals"
msgstr ""

#: config/Blocks/ListingOptions/simpleCardTemplate
#: config/Blocks/ListingOptions/sliderTemplate
# defaultMessage: Aspetto
msgid "Aspetto"
msgstr ""
Expand All @@ -75,7 +76,7 @@ msgstr ""
msgid "Block style"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateDefault
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/Card/SimpleCardDefault
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateOneForRow
# defaultMessage: Vedi
msgid "Card detail label"
Expand Down Expand Up @@ -459,9 +460,8 @@ msgstr ""
msgid "Path filter filtro"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/PhotogalleryTemplate
#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
# defaultMessage: Metti in pausa
#: components/ItaliaTheme/Slider/ButtonPlayPause
# defaultMessage: Seleziona per mettere in pausa lo slider
msgid "Pause slider"
msgstr "Pause"

Expand All @@ -476,9 +476,8 @@ msgstr ""
msgid "Piccolo"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/PhotogalleryTemplate
#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
# defaultMessage: Play
#: components/ItaliaTheme/Slider/ButtonPlayPause
# defaultMessage: Seleziona per riprodurre lo slider
msgid "Play slider"
msgstr ""

Expand Down Expand Up @@ -1112,21 +1111,11 @@ msgstr ""
msgid "calendarBlockSidebarTitle"
msgstr ""

#: components/ItaliaTheme/Blocks/Calendar/Body
# defaultMessage: Prossimi eventi
msgid "calendar_next_arrow"
msgstr ""

#: components/ItaliaTheme/Blocks/Calendar/Body
# defaultMessage: Nessun evento disponibile al momento
msgid "calendar_no_results"
msgstr ""

#: components/ItaliaTheme/Blocks/Calendar/Body
# defaultMessage: Eventi precedenti
msgid "calendar_prev_arrow"
msgstr ""

#: components/ItaliaTheme/manage/Widgets/CanaleDigitaleWidget
# defaultMessage: Accedere al servizio
msgid "canale_digitale_widget_title"
Expand All @@ -1153,6 +1142,21 @@ msgstr ""
msgid "card_width_image"
msgstr ""

#: components/ItaliaTheme/Slider/CarouselWrapper
# defaultMessage: Carosello
msgid "carousel"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
# defaultMessage: Sei attualmente in un carosello, per navigare usa le frecce sinistra e destra
msgid "carousel-item-aria-label"
msgstr ""

#: components/ItaliaTheme/Slider/SingleSlideWrapper
# defaultMessage: Slide
msgid "carouselSlide"
msgstr ""

#: components/ItaliaTheme/View/CartellaModulisticaView/CartellaModulisticaView
# defaultMessage: Formati scaricabili
msgid "cartellamodulistica_formati_scaricabili"
Expand Down Expand Up @@ -2652,6 +2656,7 @@ msgstr ""
msgid "openAccordion"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/Slider/SlideItemDefault
#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
# defaultMessage: Apri il link
msgid "openLink"
Expand Down Expand Up @@ -2841,7 +2846,7 @@ msgstr ""
msgid "playStoreLink"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
#: components/ItaliaTheme/Slider/PrevArrow
# defaultMessage: Precedente
msgid "precedente"
msgstr ""
Expand All @@ -2867,7 +2872,7 @@ msgstr ""
msgid "provvedimento_finale"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateDefault
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/Card/SimpleCardDefault
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateOneForRow
# defaultMessage: Data di pubblicazione
msgid "publication_date"
Expand Down Expand Up @@ -3701,6 +3706,21 @@ msgstr ""
msgid "slideDot"
msgstr ""

#: config/Blocks/ListingOptions/sliderTemplate
# defaultMessage: Qui puoi selezionare, per il template 'Slider', un aspetto diverso da quello di default per gli elementi mostrati nello slider.
msgid "slider_listing_appearance_description"
msgstr ""

#: config/Blocks/ListingOptions/sliderTemplate
# defaultMessage: Card con immagine
msgid "slider_listing_appearance_imagecard"
msgstr ""

#: config/Blocks/ListingOptions/sliderTemplate
# defaultMessage: Card semplice
msgid "slider_listing_appearance_simplecard"
msgstr ""

#: config/Blocks/ListingOptions/sliderTemplate
# defaultMessage: N° slide da mostrare
msgid "slidesToShow"
Expand Down Expand Up @@ -3842,7 +3862,7 @@ msgstr ""
msgid "subjects"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
#: components/ItaliaTheme/Slider/NextArrow
# defaultMessage: Successivo
msgid "successivo"
msgstr ""
Expand Down Expand Up @@ -4059,7 +4079,7 @@ msgstr ""
msgid "uo_type"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateDefault
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/Card/SimpleCardDefault
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateOneForRow
# defaultMessage: Data di aggiornamento
msgid "update_date"
Expand All @@ -4085,21 +4105,6 @@ msgstr ""
msgid "venues"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Body
# defaultMessage: Prossimo video
msgid "videogallery_next_arrow"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Body
# defaultMessage: Video precedente
msgid "videogallery_prev_arrow"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
# defaultMessage: Sei attualmente in un carosello, per navigare usa le frecce sinistra e destra
msgid "viewImage"
msgstr ""

#: components/ItaliaTheme/Blocks/ArgumentsInEvidence/BottomBody
# defaultMessage: Vedi tutti
msgid "view_all"
Expand Down
77 changes: 41 additions & 36 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ msgid "Allow Externals"
msgstr "Accept external URL to embed"

#: config/Blocks/ListingOptions/simpleCardTemplate
#: config/Blocks/ListingOptions/sliderTemplate
# defaultMessage: Aspetto
msgid "Aspetto"
msgstr ""
Expand All @@ -60,7 +61,7 @@ msgstr ""
msgid "Block style"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateDefault
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/Card/SimpleCardDefault
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateOneForRow
# defaultMessage: Vedi
msgid "Card detail label"
Expand Down Expand Up @@ -444,9 +445,8 @@ msgstr "Page"
msgid "Path filter filtro"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/PhotogalleryTemplate
#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
# defaultMessage: Metti in pausa
#: components/ItaliaTheme/Slider/ButtonPlayPause
# defaultMessage: Seleziona per mettere in pausa lo slider
msgid "Pause slider"
msgstr "Pause"

Expand All @@ -461,9 +461,8 @@ msgstr ""
msgid "Piccolo"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/PhotogalleryTemplate
#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
# defaultMessage: Play
#: components/ItaliaTheme/Slider/ButtonPlayPause
# defaultMessage: Seleziona per riprodurre lo slider
msgid "Play slider"
msgstr "Play"

Expand Down Expand Up @@ -1097,21 +1096,11 @@ msgstr "Navigation path"
msgid "calendarBlockSidebarTitle"
msgstr ""

#: components/ItaliaTheme/Blocks/Calendar/Body
# defaultMessage: Prossimi eventi
msgid "calendar_next_arrow"
msgstr ""

#: components/ItaliaTheme/Blocks/Calendar/Body
# defaultMessage: Nessun evento disponibile al momento
msgid "calendar_no_results"
msgstr ""

#: components/ItaliaTheme/Blocks/Calendar/Body
# defaultMessage: Eventi precedenti
msgid "calendar_prev_arrow"
msgstr ""

#: components/ItaliaTheme/manage/Widgets/CanaleDigitaleWidget
# defaultMessage: Accedere al servizio
msgid "canale_digitale_widget_title"
Expand All @@ -1138,6 +1127,21 @@ msgstr "Read more"
msgid "card_width_image"
msgstr ""

#: components/ItaliaTheme/Slider/CarouselWrapper
# defaultMessage: Carosello
msgid "carousel"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
# defaultMessage: Sei attualmente in un carosello, per navigare usa le frecce sinistra e destra
msgid "carousel-item-aria-label"
msgstr ""

#: components/ItaliaTheme/Slider/SingleSlideWrapper
# defaultMessage: Slide
msgid "carouselSlide"
msgstr ""

#: components/ItaliaTheme/View/CartellaModulisticaView/CartellaModulisticaView
# defaultMessage: Formati scaricabili
msgid "cartellamodulistica_formati_scaricabili"
Expand Down Expand Up @@ -2637,6 +2641,7 @@ msgstr "Press release number"
msgid "openAccordion"
msgstr "Open the accordion"

#: components/ItaliaTheme/Blocks/Listing/Slider/SlideItemDefault
#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
# defaultMessage: Apri il link
msgid "openLink"
Expand Down Expand Up @@ -2826,7 +2831,7 @@ msgstr "Help text"
msgid "playStoreLink"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
#: components/ItaliaTheme/Slider/PrevArrow
# defaultMessage: Precedente
msgid "precedente"
msgstr ""
Expand All @@ -2852,7 +2857,7 @@ msgstr "Online procedure"
msgid "provvedimento_finale"
msgstr "Final provision"

#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateDefault
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/Card/SimpleCardDefault
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateOneForRow
# defaultMessage: Data di pubblicazione
msgid "publication_date"
Expand Down Expand Up @@ -3686,6 +3691,21 @@ msgstr ""
msgid "slideDot"
msgstr ""

#: config/Blocks/ListingOptions/sliderTemplate
# defaultMessage: Qui puoi selezionare, per il template 'Slider', un aspetto diverso da quello di default per gli elementi mostrati nello slider.
msgid "slider_listing_appearance_description"
msgstr ""

#: config/Blocks/ListingOptions/sliderTemplate
# defaultMessage: Card con immagine
msgid "slider_listing_appearance_imagecard"
msgstr ""

#: config/Blocks/ListingOptions/sliderTemplate
# defaultMessage: Card semplice
msgid "slider_listing_appearance_simplecard"
msgstr ""

#: config/Blocks/ListingOptions/sliderTemplate
# defaultMessage: N° slide da mostrare
msgid "slidesToShow"
Expand Down Expand Up @@ -3827,7 +3847,7 @@ msgstr ""
msgid "subjects"
msgstr "Tags"

#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
#: components/ItaliaTheme/Slider/NextArrow
# defaultMessage: Successivo
msgid "successivo"
msgstr ""
Expand Down Expand Up @@ -4044,7 +4064,7 @@ msgstr "Search for a structure"
msgid "uo_type"
msgstr "Type"

#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateDefault
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/Card/SimpleCardDefault
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateOneForRow
# defaultMessage: Data di aggiornamento
msgid "update_date"
Expand All @@ -4070,21 +4090,6 @@ msgstr "Change in balance sheet"
msgid "venues"
msgstr "Venues"

#: components/ItaliaTheme/Blocks/VideoGallery/Body
# defaultMessage: Prossimo video
msgid "videogallery_next_arrow"
msgstr "Next video"

#: components/ItaliaTheme/Blocks/VideoGallery/Body
# defaultMessage: Video precedente
msgid "videogallery_prev_arrow"
msgstr "Previous video"

#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
# defaultMessage: Sei attualmente in un carosello, per navigare usa le frecce sinistra e destra
msgid "viewImage"
msgstr "You are currently in a carousel, use left and right arrows to navigate"

#: components/ItaliaTheme/Blocks/ArgumentsInEvidence/BottomBody
# defaultMessage: Vedi tutti
msgid "view_all"
Expand Down
Loading

0 comments on commit a37e985

Please sign in to comment.