design-comuni-plone-theme 10.4.2 → 11.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/.github/workflows/main.yml +1 -1
  2. package/.github/workflows/prs.yml +1 -1
  3. package/.github/workflows/release.yml +1 -1
  4. package/CHANGELOG.md +24 -9
  5. package/Makefile +1 -1
  6. package/RELEASE.md +3 -5
  7. package/jest-addon.config.js +0 -4
  8. package/locales/de/LC_MESSAGES/volto.po +16 -0
  9. package/locales/en/LC_MESSAGES/volto.po +16 -0
  10. package/locales/es/LC_MESSAGES/volto.po +16 -0
  11. package/locales/fr/LC_MESSAGES/volto.po +16 -0
  12. package/locales/it/LC_MESSAGES/volto.po +16 -0
  13. package/locales/volto.pot +17 -1
  14. package/package.json +5 -4
  15. package/publiccode.yml +2 -2
  16. package/razzle.extend.js +0 -17
  17. package/src/components/ItaliaTheme/Blocks/CTABlock/Block.jsx +14 -17
  18. package/src/components/ItaliaTheme/Blocks/Calendar/Item.jsx +16 -12
  19. package/src/components/ItaliaTheme/Blocks/Calendar/ListingSidebar.jsx +5 -2
  20. package/src/components/ItaliaTheme/Blocks/HighlightedContent/Body.jsx +6 -2
  21. package/src/components/ItaliaTheme/Blocks/Listing/CardWithImageTemplate.jsx +3 -1
  22. package/src/components/ItaliaTheme/Blocks/Listing/CardWithSlideUpTextTemplate.jsx +11 -9
  23. package/src/components/ItaliaTheme/Blocks/Listing/Commons/CardCalendar.jsx +2 -2
  24. package/src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx +22 -25
  25. package/src/components/ItaliaTheme/Blocks/Listing/CompleteBlockLinksTemplate.jsx +5 -2
  26. package/src/components/ItaliaTheme/Blocks/Listing/ContentInEvidenceTemplate.jsx +3 -0
  27. package/src/components/ItaliaTheme/Blocks/Listing/GridGalleryTemplate.jsx +3 -1
  28. package/src/components/ItaliaTheme/Blocks/Listing/InEvidenceTemplate.jsx +8 -7
  29. package/src/components/ItaliaTheme/Blocks/Listing/PhotogalleryTemplate.jsx +4 -2
  30. package/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx +4 -1
  31. package/src/components/ItaliaTheme/Blocks/Listing/SmallBlockLinksTemplate.jsx +4 -1
  32. package/src/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/CardWithImageTemplateSkeleton.jsx +1 -7
  33. package/src/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/InEvidenceTemplateSkeleton.jsx +1 -6
  34. package/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx +1 -1
  35. package/src/components/ItaliaTheme/Blocks/RssBlock/TemplatesSkeleton/CardWithImageRssTemplateSkeleton.jsx +1 -1
  36. package/src/components/ItaliaTheme/Blocks/__disabled_tests__/CardWithImageTemplate.test_disabled.jsx +1 -1
  37. package/src/components/ItaliaTheme/Blocks/__tests__/CardWithImageRssTemplate.test.jsx +1 -1
  38. package/src/components/ItaliaTheme/Blocks/__tests__/CardWithoutImageRssTemplate.test.jsx +1 -1
  39. package/src/components/ItaliaTheme/Breadcrumbs/Breadcrumbs.jsx +8 -1
  40. package/src/components/ItaliaTheme/GalleryPreview/GalleryPreview.jsx +1 -6
  41. package/src/components/ItaliaTheme/Header/HeaderSearch/SearchModal.jsx +22 -0
  42. package/src/components/ItaliaTheme/Pagination/PaginationItem.jsx +12 -2
  43. package/src/components/ItaliaTheme/ScrollToTop/ScrollToTop.jsx +2 -1
  44. package/src/components/ItaliaTheme/View/BandoView/BandoAreaResponsabile.jsx +3 -0
  45. package/src/components/ItaliaTheme/View/BandoView/BandoServizi.jsx +3 -0
  46. package/src/components/ItaliaTheme/View/Commons/ContentImage.jsx +8 -5
  47. package/src/components/ItaliaTheme/View/Commons/CuredBy.jsx +5 -9
  48. package/src/components/ItaliaTheme/View/Commons/Dates.jsx +1 -1
  49. package/src/components/ItaliaTheme/View/Commons/DownloadFileFormat.jsx +1 -1
  50. package/src/components/ItaliaTheme/View/Commons/Events.jsx +18 -29
  51. package/src/components/ItaliaTheme/View/Commons/Gallery.jsx +10 -9
  52. package/src/components/ItaliaTheme/View/Commons/GenericCard.jsx +22 -38
  53. package/src/components/ItaliaTheme/View/Commons/HelpBox.jsx +3 -4
  54. package/src/components/ItaliaTheme/View/Commons/LocationItem.jsx +25 -44
  55. package/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx +15 -40
  56. package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeader.jsx +61 -47
  57. package/src/components/ItaliaTheme/View/Commons/RelatedArticles.jsx +2 -7
  58. package/src/components/ItaliaTheme/View/Commons/RelatedItems.jsx +21 -26
  59. package/src/components/ItaliaTheme/View/Commons/SideMenu.jsx +3 -5
  60. package/src/components/ItaliaTheme/View/Commons/SideMenuByTitles.jsx +3 -5
  61. package/src/components/ItaliaTheme/View/Commons/Sponsors.jsx +18 -35
  62. package/src/components/ItaliaTheme/View/Commons/VenuesSmall.jsx +32 -59
  63. package/src/components/ItaliaTheme/View/Commons/WideImage.jsx +13 -5
  64. package/src/components/ItaliaTheme/View/DocumentoView/DocumentoAccedereServizio.jsx +1 -6
  65. package/src/components/ItaliaTheme/View/FAQ/FaqFolder/FaqFolderTree.jsx +1 -0
  66. package/src/components/ItaliaTheme/View/IncaricoView/IncaricoView.jsx +4 -12
  67. package/src/components/ItaliaTheme/View/NewsItemView/NewsItemACuraDi.jsx +3 -0
  68. package/src/components/ItaliaTheme/View/PageView/PageView.jsx +11 -15
  69. package/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoView.jsx +7 -5
  70. package/src/components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView.jsx +1 -1
  71. package/src/components/ItaliaTheme/View/ServizioView/ServizioAccedi.jsx +1 -6
  72. package/src/components/ItaliaTheme/View/ServizioView/ServizioContatti.jsx +0 -2
  73. package/src/components/ItaliaTheme/View/UOView/UOStructure.jsx +1 -7
  74. package/src/components/ItaliaTheme/View/VenueView/VenueContacts.jsx +1 -1
  75. package/src/components/ItaliaTheme/View/VenueView/VenueDescription.jsx +0 -1
  76. package/src/components/ItaliaTheme/View/VenueView/VenueView.jsx +1 -1
  77. package/src/components/ReleaseLog/ReleaseLog.jsx +13 -2
  78. package/src/customizations/volto/components/manage/Blocks/Listing/ListingBody.jsx +2 -2
  79. package/src/theme/ItaliaTheme/Blocks/_bandiInEvidenceTemplate.scss +1 -5
  80. package/src/theme/ItaliaTheme/Blocks/_cardWithImageAndInEvidence.scss +2 -0
  81. package/src/theme/ItaliaTheme/Blocks/_cardWithSlideUpTextTemplate.scss +3 -3
  82. package/src/theme/ItaliaTheme/Blocks/_listing.scss +0 -5
  83. package/src/theme/ItaliaTheme/Blocks/_photogallerytemplate.scss +1 -0
  84. package/src/theme/ItaliaTheme/Components/_galleryPreview.scss +4 -1
  85. package/src/theme/ItaliaTheme/Views/_puntoDiContatto.scss +2 -2
  86. package/src/theme/ItaliaTheme/_main.scss +0 -6
  87. package/src/theme/bootstrap-override/_bootstrap-italia-site.scss +2 -1
  88. package/src/theme/bootstrap-override/bootstrap/_print.scss +2 -1
  89. package/src/theme/bootstrap-override/bootstrap-italia/_callout.scss +5 -0
  90. package/src/theme/bootstrap-override/bootstrap-italia/_form.scss +5 -3
  91. package/src/theme/bootstrap-override/bootstrap-italia/_steppers.scss +5 -0
  92. package/src/theme/extras/_search.scss +1 -1
  93. package/src/components/Image/Image.jsx +0 -165
  94. package/src/components/Image/__tests__/Image.test.jsx +0 -636
  95. package/src/components/Image/helpers.js +0 -147
@@ -31,7 +31,7 @@ jobs:
31
31
  build-args: |
32
32
  ADDON_NAME=design-comuni-plone-theme
33
33
  ADDON_PATH=design-comuni-plone-theme
34
- VOLTO_VERSION=17.0.0-alpha.19
34
+ VOLTO_VERSION=17.5.0
35
35
 
36
36
  - name: Deploy to rancher
37
37
  uses: redturtle/rancher-deploy-action@v0.2.0
@@ -34,4 +34,4 @@ jobs:
34
34
  build-args: |
35
35
  ADDON_NAME=design-comuni-plone-theme
36
36
  ADDON_PATH=design-comuni-plone-theme
37
- VOLTO_VERSION=17.0.0-alpha.19
37
+ VOLTO_VERSION=17.5.0
@@ -35,4 +35,4 @@ jobs:
35
35
  build-args: |
36
36
  ADDON_NAME=design-comuni-plone-theme
37
37
  ADDON_PATH=design-comuni-plone-theme
38
- VOLTO_VERSION=17.0.0-alpha.19
38
+ VOLTO_VERSION=17.5.0
package/CHANGELOG.md CHANGED
@@ -1,24 +1,39 @@
1
1
 
2
2
 
3
- ## [10.4.2](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v10.4.1...v10.4.2) (2023-11-23)
3
+ ## [11.0.0-alpha.1](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.0.0-alpha.0...v11.0.0-alpha.1) (2023-11-23)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * card image height from newest bootstrap-italia version (#406)
9
+
10
+ ### Features
11
+
12
+ * card image height from newest bootstrap-italia version ([#406](https://github.com/RedTurtle/design-comuni-plone-theme/issues/406)) ([2cf34bc](https://github.com/RedTurtle/design-comuni-plone-theme/commit/2cf34bcfc961673a94b3d76c39632a764b1e322a))
4
13
 
5
14
 
6
15
  ### Bug Fixes
7
16
 
8
- * a11y of listing block read-more with card-slide-text template ([#415](https://github.com/RedTurtle/design-comuni-plone-theme/issues/415)) ([6260983](https://github.com/RedTurtle/design-comuni-plone-theme/commit/6260983016622af038d84d0f2efd3c9e13d2fbcf))
9
- * changed layout of readMore component to avoid overlapping ([#411](https://github.com/RedTurtle/design-comuni-plone-theme/issues/411)) ([a36a8b8](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a36a8b8b1be250a27fa48316bf514d43f2aac9b7))
10
- * error in search blocks with service-link lighthouse id ([#417](https://github.com/RedTurtle/design-comuni-plone-theme/issues/417)) ([69f1a42](https://github.com/RedTurtle/design-comuni-plone-theme/commit/69f1a4243d13c077a0b0b469ce1de50a17527b95))
17
+ * listing block card-slide-text-template read-more alignment ([#416](https://github.com/RedTurtle/design-comuni-plone-theme/issues/416)) ([39c756c](https://github.com/RedTurtle/design-comuni-plone-theme/commit/39c756c9c350b9783b46259076842004df7751a6))
11
18
 
19
+ ## [11.0.0-alpha.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v10.4.1...v11.0.0-alpha.0) (2023-11-22)
12
20
 
13
- ### Maintenance
14
21
 
15
- * fix babel-eslint ([a7aa9a6](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a7aa9a6dff9f420bceef34809c2f7e23da883bcd))
16
- * upgrade linters ([9d8f13a](https://github.com/RedTurtle/design-comuni-plone-theme/commit/9d8f13a34d82fb6cc9ce68f0881a46ffd8803eca))
22
+ ### BREAKING CHANGES
17
23
 
24
+ * upgrade to design-react-kit 5.0.0-1 and bootstrap-italia 2.6.1 (#407)
25
+ * upgrade to volto 17.5.0 (#382)
26
+
27
+ ### Features
28
+
29
+ * upgrade to design-react-kit 5.0.0-1 and bootstrap-italia 2.6.1 ([#407](https://github.com/RedTurtle/design-comuni-plone-theme/issues/407)) ([ec1ec5b](https://github.com/RedTurtle/design-comuni-plone-theme/commit/ec1ec5bd693df58653a7c10d17a4085305734625))
30
+ * upgrade to volto 17.5.0 ([#382](https://github.com/RedTurtle/design-comuni-plone-theme/issues/382)) ([cef3f09](https://github.com/RedTurtle/design-comuni-plone-theme/commit/cef3f09ef971bfcc03b61dafe5e1c712ac6563da))
18
31
 
19
- ### Documentation
20
32
 
21
- * updated publiccode and release log ([603c65d](https://github.com/RedTurtle/design-comuni-plone-theme/commit/603c65d1de43952d7a1936127ea043d8a631a8b3))
33
+ ### Maintenance
34
+
35
+ * fix babel-eslint ([a7aa9a6](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a7aa9a6dff9f420bceef34809c2f7e23da883bcd))
36
+ * upgrade linters ([9d8f13a](https://github.com/RedTurtle/design-comuni-plone-theme/commit/9d8f13a34d82fb6cc9ce68f0881a46ffd8803eca))
22
37
 
23
38
  ## [10.4.1](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v10.4.0...v10.4.1) (2023-11-21)
24
39
 
package/Makefile CHANGED
@@ -27,7 +27,7 @@ CURRENT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
27
27
  # ADDON ?= "design-comuni-plone-theme"
28
28
 
29
29
  PLONE_VERSION=6
30
- VOLTO_VERSION=17.0.0-alpha.19
30
+ VOLTO_VERSION=17.5.0
31
31
 
32
32
  ADDON_NAME='design-comuni-plone-theme'
33
33
  ADDON_PATH='design-comuni-plone-theme'
package/RELEASE.md CHANGED
@@ -41,13 +41,11 @@
41
41
  - ...
42
42
  -->
43
43
 
44
- ## Versione 10.4.2 (23/11/2023)
44
+ ## Versione X.X.X (dd/mm/yyyy)
45
45
 
46
- ### Fix
46
+ ### Novità
47
47
 
48
- - Sistemato il layout della card nella variazione Bandi del Blocco Elenco per la modalità tablet
49
- - Sistemata accessibilità del read-more nel blocco elenco con variazione "Card con testo animato" quando si è in un sottosito con uno stile applicato.
50
- - Sistemato errore quando viene impostato "service-link" come ID lighthouse.
48
+ - Modificata l'altezza delle immagini delle card, per essere in linea con i template agid.
51
49
 
52
50
  ## Versione 10.4.1 (21/11/2023)
53
51
 
@@ -17,10 +17,6 @@ module.exports = {
17
17
  ],
18
18
  moduleNameMapper: {
19
19
  '\\.(css|less|scss|sass|svg)$': 'identity-obj-proxy',
20
- '@plone/volto/components/theme/Image/Image':
21
- '<rootDir>/src/addons/design-comuni-plone-theme/src/components/Image/Image.jsx',
22
- '@plone/volto/helpers/Image/Image':
23
- '<rootDir>/src/addons/design-comuni-plone-theme/src/components/Image/helpers.js',
24
20
  '@plone/volto/cypress': '<rootDir>/node_modules/@plone/volto/cypress',
25
21
  '@plone/volto/babel': '<rootDir>/node_modules/@plone/volto/babel',
26
22
  '@plone/volto/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
@@ -448,6 +448,11 @@ msgstr ""
448
448
  msgid "Open in a new tab"
449
449
  msgstr ""
450
450
 
451
+ #: components/ItaliaTheme/Pagination/PaginationItem
452
+ # defaultMessage: Pagina
453
+ msgid "Page"
454
+ msgstr ""
455
+
451
456
  #: components/ItaliaTheme/manage/Widgets/PathFiltersWidget
452
457
  #: config/Blocks/ListingOptions/utils
453
458
  # defaultMessage: Filtro
@@ -1079,6 +1084,11 @@ msgstr ""
1079
1084
  msgid "block_bg_color"
1080
1085
  msgstr ""
1081
1086
 
1087
+ #: components/ItaliaTheme/Breadcrumbs/Breadcrumbs
1088
+ # defaultMessage: Percorso di navigazione
1089
+ msgid "breadcrumb"
1090
+ msgstr ""
1091
+
1082
1092
  #: components/ItaliaTheme/Blocks/Calendar/ListingSidebar
1083
1093
  # defaultMessage: Calendario
1084
1094
  msgid "calendarBlockSidebarTitle"
@@ -1375,6 +1385,12 @@ msgstr ""
1375
1385
  msgid "cured_by_people"
1376
1386
  msgstr ""
1377
1387
 
1388
+ #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
1389
+ #: components/ReleaseLog/ReleaseLog
1390
+ # defaultMessage: attivo
1391
+ msgid "currentActive"
1392
+ msgstr ""
1393
+
1378
1394
  #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti
1379
1395
  # defaultMessage: Curriculum vitae
1380
1396
  msgid "curriculum_vitae"
@@ -433,6 +433,11 @@ msgstr "- open in a new tab"
433
433
  msgid "Open in a new tab"
434
434
  msgstr ""
435
435
 
436
+ #: components/ItaliaTheme/Pagination/PaginationItem
437
+ # defaultMessage: Pagina
438
+ msgid "Page"
439
+ msgstr "Page"
440
+
436
441
  #: components/ItaliaTheme/manage/Widgets/PathFiltersWidget
437
442
  #: config/Blocks/ListingOptions/utils
438
443
  # defaultMessage: Filtro
@@ -1064,6 +1069,11 @@ msgstr "Biography"
1064
1069
  msgid "block_bg_color"
1065
1070
  msgstr ""
1066
1071
 
1072
+ #: components/ItaliaTheme/Breadcrumbs/Breadcrumbs
1073
+ # defaultMessage: Percorso di navigazione
1074
+ msgid "breadcrumb"
1075
+ msgstr "Navigation path"
1076
+
1067
1077
  #: components/ItaliaTheme/Blocks/Calendar/ListingSidebar
1068
1078
  # defaultMessage: Calendario
1069
1079
  msgid "calendarBlockSidebarTitle"
@@ -1360,6 +1370,12 @@ msgstr "Cured by"
1360
1370
  msgid "cured_by_people"
1361
1371
  msgstr "People"
1362
1372
 
1373
+ #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
1374
+ #: components/ReleaseLog/ReleaseLog
1375
+ # defaultMessage: attivo
1376
+ msgid "currentActive"
1377
+ msgstr "active"
1378
+
1363
1379
  #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti
1364
1380
  # defaultMessage: Curriculum vitae
1365
1381
  msgid "curriculum_vitae"
@@ -442,6 +442,11 @@ msgstr "- abrir en una nueva pestaña"
442
442
  msgid "Open in a new tab"
443
443
  msgstr "Abrir en un nueva pestaña"
444
444
 
445
+ #: components/ItaliaTheme/Pagination/PaginationItem
446
+ # defaultMessage: Pagina
447
+ msgid "Page"
448
+ msgstr ""
449
+
445
450
  #: components/ItaliaTheme/manage/Widgets/PathFiltersWidget
446
451
  #: config/Blocks/ListingOptions/utils
447
452
  # defaultMessage: Filtro
@@ -1073,6 +1078,11 @@ msgstr "Biografía"
1073
1078
  msgid "block_bg_color"
1074
1079
  msgstr "Color de fondo"
1075
1080
 
1081
+ #: components/ItaliaTheme/Breadcrumbs/Breadcrumbs
1082
+ # defaultMessage: Percorso di navigazione
1083
+ msgid "breadcrumb"
1084
+ msgstr ""
1085
+
1076
1086
  #: components/ItaliaTheme/Blocks/Calendar/ListingSidebar
1077
1087
  # defaultMessage: Calendario
1078
1088
  msgid "calendarBlockSidebarTitle"
@@ -1369,6 +1379,12 @@ msgstr "Editado por"
1369
1379
  msgid "cured_by_people"
1370
1380
  msgstr "Gente"
1371
1381
 
1382
+ #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
1383
+ #: components/ReleaseLog/ReleaseLog
1384
+ # defaultMessage: attivo
1385
+ msgid "currentActive"
1386
+ msgstr ""
1387
+
1372
1388
  #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti
1373
1389
  # defaultMessage: Curriculum vitae
1374
1390
  msgid "curriculum_vitae"
@@ -450,6 +450,11 @@ msgstr ""
450
450
  msgid "Open in a new tab"
451
451
  msgstr ""
452
452
 
453
+ #: components/ItaliaTheme/Pagination/PaginationItem
454
+ # defaultMessage: Pagina
455
+ msgid "Page"
456
+ msgstr ""
457
+
453
458
  #: components/ItaliaTheme/manage/Widgets/PathFiltersWidget
454
459
  #: config/Blocks/ListingOptions/utils
455
460
  # defaultMessage: Filtro
@@ -1081,6 +1086,11 @@ msgstr "Biographie"
1081
1086
  msgid "block_bg_color"
1082
1087
  msgstr ""
1083
1088
 
1089
+ #: components/ItaliaTheme/Breadcrumbs/Breadcrumbs
1090
+ # defaultMessage: Percorso di navigazione
1091
+ msgid "breadcrumb"
1092
+ msgstr ""
1093
+
1084
1094
  #: components/ItaliaTheme/Blocks/Calendar/ListingSidebar
1085
1095
  # defaultMessage: Calendario
1086
1096
  msgid "calendarBlockSidebarTitle"
@@ -1377,6 +1387,12 @@ msgstr "Édité par"
1377
1387
  msgid "cured_by_people"
1378
1388
  msgstr "Gens"
1379
1389
 
1390
+ #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
1391
+ #: components/ReleaseLog/ReleaseLog
1392
+ # defaultMessage: attivo
1393
+ msgid "currentActive"
1394
+ msgstr ""
1395
+
1380
1396
  #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti
1381
1397
  # defaultMessage: Curriculum vitae
1382
1398
  msgid "curriculum_vitae"
@@ -433,6 +433,11 @@ msgstr "- apri in nuova scheda"
433
433
  msgid "Open in a new tab"
434
434
  msgstr "Apri in un nuovo tab"
435
435
 
436
+ #: components/ItaliaTheme/Pagination/PaginationItem
437
+ # defaultMessage: Pagina
438
+ msgid "Page"
439
+ msgstr ""
440
+
436
441
  #: components/ItaliaTheme/manage/Widgets/PathFiltersWidget
437
442
  #: config/Blocks/ListingOptions/utils
438
443
  # defaultMessage: Filtro
@@ -1064,6 +1069,11 @@ msgstr "Biografia"
1064
1069
  msgid "block_bg_color"
1065
1070
  msgstr "Colore di sfondo"
1066
1071
 
1072
+ #: components/ItaliaTheme/Breadcrumbs/Breadcrumbs
1073
+ # defaultMessage: Percorso di navigazione
1074
+ msgid "breadcrumb"
1075
+ msgstr ""
1076
+
1067
1077
  #: components/ItaliaTheme/Blocks/Calendar/ListingSidebar
1068
1078
  # defaultMessage: Calendario
1069
1079
  msgid "calendarBlockSidebarTitle"
@@ -1360,6 +1370,12 @@ msgstr "A cura di"
1360
1370
  msgid "cured_by_people"
1361
1371
  msgstr "Persone"
1362
1372
 
1373
+ #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
1374
+ #: components/ReleaseLog/ReleaseLog
1375
+ # defaultMessage: attivo
1376
+ msgid "currentActive"
1377
+ msgstr ""
1378
+
1363
1379
  #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti
1364
1380
  # defaultMessage: Curriculum vitae
1365
1381
  msgid "curriculum_vitae"
package/locales/volto.pot CHANGED
@@ -1,7 +1,7 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Plone\n"
4
- "POT-Creation-Date: 2023-11-14T17:26:17.874Z\n"
4
+ "POT-Creation-Date: 2023-11-22T09:06:53.905Z\n"
5
5
  "Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
6
6
  "Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
7
7
  "MIME-Version: 1.0\n"
@@ -435,6 +435,11 @@ msgstr ""
435
435
  msgid "Open in a new tab"
436
436
  msgstr ""
437
437
 
438
+ #: components/ItaliaTheme/Pagination/PaginationItem
439
+ # defaultMessage: Pagina
440
+ msgid "Page"
441
+ msgstr ""
442
+
438
443
  #: components/ItaliaTheme/manage/Widgets/PathFiltersWidget
439
444
  #: config/Blocks/ListingOptions/utils
440
445
  # defaultMessage: Filtro
@@ -1066,6 +1071,11 @@ msgstr ""
1066
1071
  msgid "block_bg_color"
1067
1072
  msgstr ""
1068
1073
 
1074
+ #: components/ItaliaTheme/Breadcrumbs/Breadcrumbs
1075
+ # defaultMessage: Percorso di navigazione
1076
+ msgid "breadcrumb"
1077
+ msgstr ""
1078
+
1069
1079
  #: components/ItaliaTheme/Blocks/Calendar/ListingSidebar
1070
1080
  # defaultMessage: Calendario
1071
1081
  msgid "calendarBlockSidebarTitle"
@@ -1362,6 +1372,12 @@ msgstr ""
1362
1372
  msgid "cured_by_people"
1363
1373
  msgstr ""
1364
1374
 
1375
+ #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
1376
+ #: components/ReleaseLog/ReleaseLog
1377
+ # defaultMessage: attivo
1378
+ msgid "currentActive"
1379
+ msgstr ""
1380
+
1365
1381
  #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti
1366
1382
  # defaultMessage: Curriculum vitae
1367
1383
  msgid "curriculum_vitae"
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "design-comuni-plone-theme",
3
3
  "description": "Volto Theme for Italia design guidelines",
4
4
  "license": "GPL-v3",
5
- "version": "10.4.2",
5
+ "version": "11.0.0-alpha.1",
6
6
  "main": "src/index.js",
7
7
  "keywords": [
8
8
  "volto-addon",
@@ -119,13 +119,14 @@
119
119
  },
120
120
  "dependencies": {
121
121
  "@babel/plugin-proposal-export-default-from": "7.18.9",
122
+ "@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
122
123
  "@babel/plugin-proposal-throw-expressions": "7.18.6",
123
124
  "@eeacms/volto-taxonomy": "^1.0.0",
124
125
  "@loadable/babel-plugin": "5.13.2",
125
126
  "@plone-collective/volto-sentry": "0.3.0",
126
- "bootstrap-italia": "2.2.0",
127
+ "bootstrap-italia": "2.6.1",
127
128
  "classnames": "^2.3.2",
128
- "design-react-kit": "italia/design-react-kit#fc9b40257ba3cb613141faf217f1f5b806489740",
129
+ "design-react-kit": "5.0.0-1",
129
130
  "htmldiff-js": "1.0.5",
130
131
  "marked": "9.0.0",
131
132
  "react-dropzone": "11.0.1",
@@ -189,7 +190,7 @@
189
190
  "stylelint-prettier": "4.0.2"
190
191
  },
191
192
  "peerDependencies": {
192
- "@plone/volto": "17.0.0-alpha.19"
193
+ "@plone/volto": "17.5.0"
193
194
  },
194
195
  "packageManager": "yarn@3.2.3"
195
196
  }
package/publiccode.yml CHANGED
@@ -227,9 +227,9 @@ maintenance:
227
227
  name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
228
228
  platforms:
229
229
  - web
230
- releaseDate: '2023-11-23'
230
+ releaseDate: '2023-11-21'
231
231
  softwareType: standalone/web
232
- softwareVersion: 10.4.2
232
+ softwareVersion: 10.4.1
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
package/razzle.extend.js CHANGED
@@ -108,23 +108,6 @@ const modify = (webpackConfig, { target, dev }, webpackObject) => {
108
108
  const babelLoader = webpackConfig.module.rules.find(babelLoaderFinder);
109
109
  babelLoader.include.push(/node_modules\/design-react-kit/);
110
110
 
111
- webpackConfig.resolve.alias = {
112
- // TODO remove the next two when implemented in core
113
- '@plone/volto/components/theme/Image/Image': `${__dirname}/src/components/Image/Image.jsx`,
114
- '@plone/volto/helpers/Image/Image': `${__dirname}/src/components/Image/helpers.js`,
115
- ...webpackConfig.resolve.alias,
116
- // 'design-comuni-plone-theme': `${__dirname}/src`,
117
- };
118
-
119
- // remove unused languages. (TODO: move to ENV at build time)
120
- // webpackConfig.plugins.push(
121
- // new webpackObject.ContextReplacementPlugin(
122
- // /moment[/\\]locale$/,
123
- // /(it|it-it|en-us|en-gb)$/,
124
- // ),
125
- // // Ignore all locale files of moment.js - new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
126
- // );
127
-
128
111
  return webpackConfig;
129
112
  };
130
113
 
@@ -1,10 +1,7 @@
1
1
  import { Button, Container } from 'design-react-kit';
2
- /* eslint-disable jsx-a11y/no-static-element-interactions */
3
- /* eslint-disable jsx-a11y/click-events-have-key-events */
4
2
  import React, { useRef, useState, useEffect } from 'react';
5
3
  import { defineMessages, useIntl } from 'react-intl';
6
4
 
7
- import Image from '@plone/volto/components/theme/Image/Image';
8
5
  import PropTypes from 'prop-types';
9
6
  import { TextEditorWidget } from 'design-comuni-plone-theme/components/ItaliaTheme';
10
7
  import { UniversalLink } from '@plone/volto/components';
@@ -27,6 +24,7 @@ const messages = defineMessages({
27
24
  },
28
25
  });
29
26
 
27
+
30
28
  const Block = ({
31
29
  data,
32
30
  block,
@@ -40,6 +38,7 @@ const Block = ({
40
38
  selected,
41
39
  }) => {
42
40
  const intl = useIntl();
41
+ const Image = config.getComponent({ name: 'Image' }).component;
43
42
  const title = data?.cta_title?.blocks[0]?.text;
44
43
  const hasImage = data?.showImage && data?.ctaImage?.length > 0;
45
44
  const content = data?.cta_content;
@@ -78,20 +77,18 @@ const Block = ({
78
77
  }}
79
78
  >
80
79
  {hasImage && data?.ctaImage?.length > 0 && (
81
- <Image
82
- itemUrl={data.ctaImage[0]['@id']}
83
- image={
84
- data.ctaImage[0].image_scales?.[
85
- data.ctaImage[0].image_field
86
- ]?.[0] || data.ctaImage[0]['@id']
87
- }
88
- key={data.ctaImage[0]['@id']}
89
- alt=""
90
- aria-hidden="true"
91
- loading="lazy"
92
- useOriginal={false}
93
- role="presentation"
94
- />
80
+ <figure className="img-wrapper">
81
+ <Image
82
+ item={data.ctaImage?.[0]}
83
+ sizes="100vw"
84
+ loading="lazy"
85
+ responsive={true}
86
+ alt=""
87
+ aria-hidden="true"
88
+ role="presentation"
89
+ key={data.ctaImage[0]['@id']}
90
+ />
91
+ </figure>
95
92
  )}
96
93
  <Container tag="div" className="px-3 px-md-4">
97
94
  <div className="cta-tile-text">
@@ -1,6 +1,7 @@
1
+ /*
2
+ * Component Item of Calendar block
3
+ */
1
4
  import React from 'react';
2
- import moment from 'moment';
3
-
4
5
  import { useDispatch, useSelector } from 'react-redux';
5
6
  import { defineMessages, useIntl } from 'react-intl';
6
7
  import { Spinner } from 'design-react-kit';
@@ -9,9 +10,8 @@ import useDeepCompareEffect from 'use-deep-compare-effect';
9
10
  import { getCalendarDayResults } from 'design-comuni-plone-theme/actions';
10
11
  import { ConditionalLink } from '@plone/volto/components';
11
12
  import { flattenToAppURL } from '@plone/volto/helpers';
12
- import Image from '@plone/volto/components/theme/Image/Image';
13
-
14
13
  import { viewDate } from 'design-comuni-plone-theme/helpers';
14
+ import config from '@plone/volto/registry';
15
15
 
16
16
  const messages = defineMessages({
17
17
  scadenza_bando: {
@@ -30,7 +30,7 @@ const messages = defineMessages({
30
30
 
31
31
  const Item = ({ day, path, query, inEditMode, data }) => {
32
32
  const intl = useIntl();
33
-
33
+ const Image = config.getComponent({ name: 'Image' }).component;
34
34
  const calendarDayResults = useSelector(
35
35
  (state) => state.calendarDaySearch.subrequests,
36
36
  );
@@ -79,6 +79,13 @@ const Item = ({ day, path, query, inEditMode, data }) => {
79
79
  {calendarDayResults[day] ? (
80
80
  calendarDayResults[day].items[day]?.map((item, index) => {
81
81
  const eventHasImage = Object.keys(item.image_scales).length > 0;
82
+ const item_start = new Date(item.start);
83
+ const item_start_time = item_start
84
+ ? `${item_start.getHours()}:${item_start
85
+ .getMinutes()
86
+ .toString()
87
+ .padStart(2, '0')}`
88
+ : null;
82
89
 
83
90
  return (
84
91
  <div key={index} className="calendar-item">
@@ -86,19 +93,16 @@ const Item = ({ day, path, query, inEditMode, data }) => {
86
93
  {show_preview_img && eventHasImage && (
87
94
  <div className="item-img">
88
95
  <Image
89
- image={
90
- item.image_scales?.preview_image?.[0] ||
91
- item.image_scales?.image?.[0]
92
- }
93
- itemUrl={item['@id']}
96
+ item={item}
94
97
  alt=""
95
- containerClassName="img-wrapper"
98
+ className="img-fluid"
99
+ sizes="80px"
96
100
  />
97
101
  </div>
98
102
  )}
99
103
  <div className="item-info">
100
104
  <div>{item?.type}</div>
101
- <div>{moment(item.start).format('HH:mm')}</div>
105
+ {item_start_time && <div>{item_start_time}</div>}
102
106
  <div className="calendar-type">
103
107
  <ConditionalLink
104
108
  condition={!inEditMode}
@@ -9,6 +9,7 @@ import { LocationFiltersWidget } from 'design-comuni-plone-theme/components/Ital
9
9
 
10
10
  import upSVG from '@plone/volto/icons/up-key.svg';
11
11
  import downSVG from '@plone/volto/icons/down-key.svg';
12
+ import config from '@plone/volto/registry';
12
13
 
13
14
  const messages = defineMessages({
14
15
  calendarBlockSidebarTitle: {
@@ -55,7 +56,6 @@ const ListingSidebar = (props) => {
55
56
 
56
57
  setActiveAccIndex(newIndex);
57
58
  }
58
-
59
59
  return (
60
60
  <Segment.Group raised>
61
61
  <header className="header pulled">
@@ -128,7 +128,10 @@ const ListingSidebar = (props) => {
128
128
  )}
129
129
  </Accordion.Title>
130
130
  <Accordion.Content active={activeAccIndex === 1}>
131
- <ListingData {...props} />
131
+ <ListingData
132
+ blocksConfig={{ listing: config.blocks.blocksConfig.listing }}
133
+ {...props}
134
+ />
132
135
  </Accordion.Content>
133
136
  </Accordion>
134
137
  </Segment.Group>
@@ -14,7 +14,6 @@ import {
14
14
  CardReadMore,
15
15
  } from 'design-react-kit';
16
16
 
17
- import Image from '@plone/volto/components/theme/Image/Image';
18
17
  import { flattenToAppURL } from '@plone/volto/helpers';
19
18
 
20
19
  import { getCategory } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Listing/Commons/utils';
@@ -23,10 +22,12 @@ import {
23
22
  getItemIcon,
24
23
  } from 'design-comuni-plone-theme/components/ItaliaTheme';
25
24
  import { viewDate } from 'design-comuni-plone-theme/helpers';
25
+ import config from '@plone/volto/registry';
26
26
 
27
27
  const Body = (props) => {
28
28
  const { content, block } = props;
29
29
  const intl = useIntl();
30
+ const Image = config.getComponent({ name: 'Image' }).component;
30
31
  const icon = getItemIcon(content);
31
32
 
32
33
  const { show_type = true, show_section } = block;
@@ -38,12 +39,15 @@ const Body = (props) => {
38
39
  {(content.preview_image || content.image) && (
39
40
  <Col lg={{ size: 6, offset: 1, order: 2 }}>
40
41
  <Image
41
- image={content.preview_image || content.image}
42
+ item={content}
43
+ imageField={content.preview_image ? 'preview_image' : 'image'}
42
44
  alt=""
43
45
  className={cx('item-image', {
44
46
  'natural-image-size': block.natural_image_size,
45
47
  })}
46
48
  role={null}
49
+ responsive={true}
50
+ sizes="(max-width:768px) 90vw, (max-width:1024px) 450px, 560px"
47
51
  />
48
52
  </Col>
49
53
  )}
@@ -1,3 +1,6 @@
1
+ /*
2
+ * componente per visulizzare un CT "Persona" nei Listing o in aclune pagine
3
+ */
1
4
  import React from 'react';
2
5
  import PropTypes from 'prop-types';
3
6
  import cx from 'classnames';
@@ -115,7 +118,6 @@ const CardWithImageTemplate = (props) => {
115
118
  ) : (
116
119
  <Card
117
120
  className={cx('listing-item card-bg', {
118
- 'card-img': showImage,
119
121
  'card-teaser-image card-flex no-after':
120
122
  item['@type'] === 'Persona',
121
123
  })}
@@ -53,7 +53,7 @@ const CardWithSlideUpTextTemplate = (props) => {
53
53
  </div>
54
54
  <div className="grid mb-3 mt-5">
55
55
  {items.map((item, index) => {
56
- const image = getListingImageBackground(item, 'teaser');
56
+ const image = getListingImageBackground(item, 'large');
57
57
  const category = getCategory(item, show_type, show_section, props);
58
58
  const date = hide_dates
59
59
  ? null
@@ -93,14 +93,16 @@ const CardWithSlideUpTextTemplate = (props) => {
93
93
  {show_description && item.description && (
94
94
  <p>{item.description}</p>
95
95
  )}
96
- <CardReadMore
97
- iconName="it-arrow-right"
98
- tag={UniversalLink}
99
- item={!isEditMode ? item : null}
100
- href={isEditMode ? '#' : null}
101
- text={intl.formatMessage(messages.vedi)}
102
- className="justify-content-end"
103
- />
96
+ <div className="read-more">
97
+ <CardReadMore
98
+ iconName="it-arrow-right"
99
+ tag={UniversalLink}
100
+ item={!isEditMode ? item : null}
101
+ href={isEditMode ? '#' : null}
102
+ text={intl.formatMessage(messages.vedi)}
103
+ className="justify-content-end"
104
+ />
105
+ </div>
104
106
  </div>
105
107
  </UniversalLink>
106
108
  );