design-comuni-plone-theme 10.4.1 → 11.0.0-alpha.0

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 (188) hide show
  1. package/.eslintrc.js +1 -1
  2. package/.github/workflows/main.yml +1 -1
  3. package/.github/workflows/prs.yml +1 -1
  4. package/.github/workflows/release.yml +1 -1
  5. package/CHANGELOG.md +19 -0
  6. package/Makefile +1 -1
  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 +44 -27
  15. package/razzle.extend.js +0 -17
  16. package/src/actions/getDettagliProcedimento.js +1 -2
  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/BandiInEvidenceTemplate.jsx +4 -6
  22. package/src/components/ItaliaTheme/Blocks/Listing/CardWithImageTemplate.jsx +3 -0
  23. package/src/components/ItaliaTheme/Blocks/Listing/CardWithSlideUpTextTemplate.jsx +1 -1
  24. package/src/components/ItaliaTheme/Blocks/Listing/Commons/CardCalendar.jsx +2 -2
  25. package/src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx +22 -25
  26. package/src/components/ItaliaTheme/Blocks/Listing/CompleteBlockLinksTemplate.jsx +5 -2
  27. package/src/components/ItaliaTheme/Blocks/Listing/ContentInEvidenceTemplate.jsx +3 -0
  28. package/src/components/ItaliaTheme/Blocks/Listing/GridGalleryTemplate.jsx +3 -1
  29. package/src/components/ItaliaTheme/Blocks/Listing/InEvidenceTemplate.jsx +7 -1
  30. package/src/components/ItaliaTheme/Blocks/Listing/PhotogalleryTemplate.jsx +4 -2
  31. package/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx +4 -1
  32. package/src/components/ItaliaTheme/Blocks/Listing/SmallBlockLinksTemplate.jsx +4 -1
  33. package/src/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/CardWithImageTemplateSkeleton.jsx +0 -2
  34. package/src/components/ItaliaTheme/Blocks/__tests__/Alert.test.jsx +1 -2
  35. package/src/components/ItaliaTheme/Blocks/__tests__/CardWithImage.test.jsx +1 -2
  36. package/src/components/ItaliaTheme/Breadcrumbs/Breadcrumbs.jsx +8 -1
  37. package/src/components/ItaliaTheme/GalleryPreview/GalleryPreview.jsx +1 -6
  38. package/src/components/ItaliaTheme/Header/HeaderSearch/SearchModal.jsx +22 -0
  39. package/src/components/ItaliaTheme/Header/HeaderSlim/UserLoggedMenu.jsx +0 -1
  40. package/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx +2 -2
  41. package/src/components/ItaliaTheme/Pagination/PaginationItem.jsx +14 -10
  42. package/src/components/ItaliaTheme/Pagination/createPaginationItems/itemFactories.js +4 -4
  43. package/src/components/ItaliaTheme/ScrollToTop/ScrollToTop.jsx +2 -1
  44. package/src/components/ItaliaTheme/Search/utils.js +5 -3
  45. package/src/components/ItaliaTheme/View/BandoView/BandoAreaResponsabile.jsx +3 -0
  46. package/src/components/ItaliaTheme/View/BandoView/BandoServizi.jsx +3 -0
  47. package/src/components/ItaliaTheme/View/Commons/ContactsCard.jsx +4 -4
  48. package/src/components/ItaliaTheme/View/Commons/ContentImage.jsx +8 -5
  49. package/src/components/ItaliaTheme/View/Commons/CuredBy.jsx +5 -9
  50. package/src/components/ItaliaTheme/View/Commons/Dates.jsx +1 -1
  51. package/src/components/ItaliaTheme/View/Commons/DownloadFileFormat.jsx +1 -0
  52. package/src/components/ItaliaTheme/View/Commons/Events.jsx +17 -28
  53. package/src/components/ItaliaTheme/View/Commons/Gallery.jsx +10 -9
  54. package/src/components/ItaliaTheme/View/Commons/GenericCard.jsx +22 -38
  55. package/src/components/ItaliaTheme/View/Commons/HelpBox.jsx +3 -4
  56. package/src/components/ItaliaTheme/View/Commons/LocationItem.jsx +25 -44
  57. package/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx +15 -40
  58. package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeader.jsx +61 -47
  59. package/src/components/ItaliaTheme/View/Commons/RelatedArticles.jsx +2 -7
  60. package/src/components/ItaliaTheme/View/Commons/RelatedItems.jsx +21 -26
  61. package/src/components/ItaliaTheme/View/Commons/SideMenu.jsx +3 -5
  62. package/src/components/ItaliaTheme/View/Commons/SideMenuByTitles.jsx +3 -5
  63. package/src/components/ItaliaTheme/View/Commons/Sponsors.jsx +18 -35
  64. package/src/components/ItaliaTheme/View/Commons/VenuesSmall.jsx +32 -59
  65. package/src/components/ItaliaTheme/View/Commons/WideImage.jsx +13 -5
  66. package/src/components/ItaliaTheme/View/DocumentoView/DocumentoAccedereServizio.jsx +1 -6
  67. package/src/components/ItaliaTheme/View/FAQ/FaqFolder/FaqFolderTree.jsx +1 -0
  68. package/src/components/ItaliaTheme/View/IncaricoView/IncaricoView.jsx +4 -12
  69. package/src/components/ItaliaTheme/View/NewsItemView/NewsItemACuraDi.jsx +3 -0
  70. package/src/components/ItaliaTheme/View/PageView/PageView.jsx +11 -15
  71. package/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoView.jsx +7 -5
  72. package/src/components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView.jsx +1 -1
  73. package/src/components/ItaliaTheme/View/ServizioView/ServizioAccedi.jsx +1 -6
  74. package/src/components/ItaliaTheme/View/ServizioView/ServizioContatti.jsx +0 -2
  75. package/src/components/ItaliaTheme/View/UOView/UOStructure.jsx +1 -7
  76. package/src/components/ItaliaTheme/View/VenueView/VenueContacts.jsx +1 -1
  77. package/src/components/ItaliaTheme/View/VenueView/VenueDescription.jsx +0 -1
  78. package/src/components/ItaliaTheme/View/VenueView/VenueView.jsx +1 -1
  79. package/src/components/ItaliaTheme/View/__tests__/PersonaView.test.jsx +928 -932
  80. package/src/components/ItaliaTheme/manage/Widgets/TextEditorWidget.jsx +12 -8
  81. package/src/components/ReleaseLog/ReleaseLog.jsx +13 -2
  82. package/src/components/SelectInput/SelectInput.jsx +16 -21
  83. package/src/components/SelectInput/select-styles.css +1 -1
  84. package/src/config/Blocks/blocks.js +4 -3
  85. package/src/config/Blocks/listingVariations.js +4 -3
  86. package/src/config/Subsites/index.js +16 -16
  87. package/src/config/italiaConfig.js +6 -5
  88. package/src/customizations/volto/components/manage/Blocks/HeroImageLeft/Edit.jsx +31 -26
  89. package/src/customizations/volto/components/manage/Blocks/Listing/withQuerystringResults.jsx +6 -6
  90. package/src/customizations/volto/components/manage/Blocks/Search/components/CheckboxFacet.jsx +2 -2
  91. package/src/customizations/volto/components/manage/Blocks/Search/components/FilterList.jsx +15 -20
  92. package/src/customizations/volto/components/manage/Blocks/Search/components/ToggleFacetFilterListEntry.jsx +2 -9
  93. package/src/customizations/volto/components/manage/Diff/DiffField.jsx +2 -9
  94. package/src/customizations/volto/components/manage/Sidebar/ObjectBrowserBody.jsx +10 -10
  95. package/src/customizations/volto/components/manage/Widgets/DatetimeWidget.jsx +4 -10
  96. package/src/customizations/volto/components/manage/Widgets/ObjectBrowserWidget.jsx +2 -9
  97. package/src/customizations/volto/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +2 -2
  98. package/src/customizations/volto/helpers/FormValidation/FormValidation.js +7 -6
  99. package/src/customizations/volto/helpers/Html/Html.jsx +2 -2
  100. package/src/customizations/volto/middleware/api.js +194 -190
  101. package/src/customizations/volto/middleware/blacklistRoutes.js +36 -34
  102. package/src/helpers/dates.js +2 -2
  103. package/src/theme/ItaliaTheme/Addons/volto-gdpr-privacy.scss +12 -5
  104. package/src/theme/ItaliaTheme/Blocks/_accordion.scss +2 -0
  105. package/src/theme/ItaliaTheme/Blocks/_alert.scss +1 -1
  106. package/src/theme/ItaliaTheme/Blocks/_bandiInEvidenceTemplate.scss +1 -1
  107. package/src/theme/ItaliaTheme/Blocks/_calendar.scss +8 -6
  108. package/src/theme/ItaliaTheme/Blocks/_cardWithImageAndInEvidence.scss +9 -7
  109. package/src/theme/ItaliaTheme/Blocks/_cardWithSlideUpTextTemplate.scss +2 -2
  110. package/src/theme/ItaliaTheme/Blocks/_completeBlockLinkstemplate.scss +4 -2
  111. package/src/theme/ItaliaTheme/Blocks/_countdown.scss +2 -2
  112. package/src/theme/ItaliaTheme/Blocks/_ctaBlock.scss +7 -5
  113. package/src/theme/ItaliaTheme/Blocks/_gridBlock.scss +8 -3
  114. package/src/theme/ItaliaTheme/Blocks/_gridGalleryTemplate.scss +1 -0
  115. package/src/theme/ItaliaTheme/Blocks/_hero.scss +1 -0
  116. package/src/theme/ItaliaTheme/Blocks/_iconBlocks.scss +2 -2
  117. package/src/theme/ItaliaTheme/Blocks/_imageBlock.scss +1 -0
  118. package/src/theme/ItaliaTheme/Blocks/_listing.scss +1 -6
  119. package/src/theme/ItaliaTheme/Blocks/_photogallerytemplate.scss +2 -0
  120. package/src/theme/ItaliaTheme/Blocks/_ribbonCardTemplate.scss +5 -4
  121. package/src/theme/ItaliaTheme/Blocks/_rssBlock.scss +3 -2
  122. package/src/theme/ItaliaTheme/Blocks/_search.scss +68 -37
  123. package/src/theme/ItaliaTheme/Blocks/_searchSections.scss +4 -3
  124. package/src/theme/ItaliaTheme/Blocks/_simpleCardTemplate.scss +6 -3
  125. package/src/theme/ItaliaTheme/Blocks/_sliderTemplate.scss +1 -1
  126. package/src/theme/ItaliaTheme/Blocks/_smallblockLinkstemplate.scss +3 -3
  127. package/src/theme/ItaliaTheme/Blocks/_subblocks-edit.scss +1 -1
  128. package/src/theme/ItaliaTheme/Blocks/_tableOfContents.scss +17 -7
  129. package/src/theme/ItaliaTheme/Blocks/_video.scss +1 -1
  130. package/src/theme/ItaliaTheme/Blocks/_videoGallery.scss +7 -6
  131. package/src/theme/ItaliaTheme/Components/_card.scss +14 -7
  132. package/src/theme/ItaliaTheme/Components/_cardPersona.scss +2 -2
  133. package/src/theme/ItaliaTheme/Components/_cmp-timeline.scss +16 -14
  134. package/src/theme/ItaliaTheme/Components/_contactsCard.scss +3 -3
  135. package/src/theme/ItaliaTheme/Components/_customerSatisfaction.scss +31 -11
  136. package/src/theme/ItaliaTheme/Components/_diffField.scss +25 -14
  137. package/src/theme/ItaliaTheme/Components/_galleryPreview.scss +14 -11
  138. package/src/theme/ItaliaTheme/Components/_mobileMenu.scss +1 -1
  139. package/src/theme/ItaliaTheme/Components/_navscroll.scss +2 -0
  140. package/src/theme/ItaliaTheme/Components/_pageHeader.scss +5 -4
  141. package/src/theme/ItaliaTheme/Components/_scrollToTop.scss +1 -0
  142. package/src/theme/ItaliaTheme/Components/_sharing.scss +1 -1
  143. package/src/theme/ItaliaTheme/Components/_sideMenu.scss +9 -5
  144. package/src/theme/ItaliaTheme/Components/_subsiteFooter.scss +1 -1
  145. package/src/theme/ItaliaTheme/Print/_all_pages.scss +5 -2
  146. package/src/theme/ItaliaTheme/Print/_bandi.scss +8 -8
  147. package/src/theme/ItaliaTheme/Print/_event.scss +11 -10
  148. package/src/theme/ItaliaTheme/Print/_news_items.scss +17 -17
  149. package/src/theme/ItaliaTheme/Print/_persona.scss +8 -8
  150. package/src/theme/ItaliaTheme/Print/_servizio.scss +8 -8
  151. package/src/theme/ItaliaTheme/Views/_bando.scss +1 -0
  152. package/src/theme/ItaliaTheme/Views/_cartellaModulistica.scss +20 -8
  153. package/src/theme/ItaliaTheme/Views/_common.scss +4 -3
  154. package/src/theme/ItaliaTheme/Views/_embeddedVideo.scss +1 -1
  155. package/src/theme/ItaliaTheme/Views/_evento.scss +1 -0
  156. package/src/theme/ItaliaTheme/Views/_faqFolder.scss +1 -0
  157. package/src/theme/ItaliaTheme/Views/_paginaArgomento.scss +1 -0
  158. package/src/theme/ItaliaTheme/Views/_puntoDiContatto.scss +3 -2
  159. package/src/theme/ItaliaTheme/Views/_servizio.scss +4 -1
  160. package/src/theme/ItaliaTheme/Views/_slider.scss +3 -3
  161. package/src/theme/ItaliaTheme/Views/_trasparenzaView.scss +2 -0
  162. package/src/theme/ItaliaTheme/Views/_uo.scss +3 -1
  163. package/src/theme/ItaliaTheme/Views/_venue.scss +3 -2
  164. package/src/theme/ItaliaTheme/Widgets/_canaleDigitaleWidget.scss +2 -1
  165. package/src/theme/ItaliaTheme/Widgets/_dataGridWidget.scss +24 -8
  166. package/src/theme/ItaliaTheme/Widgets/_iconWidget.scss +1 -1
  167. package/src/theme/ItaliaTheme/_common.scss +9 -4
  168. package/src/theme/ItaliaTheme/_main.scss +10 -13
  169. package/src/theme/_cms-ui.scss +46 -23
  170. package/src/theme/_cms-ui_container.scss +8 -3
  171. package/src/theme/_site-variables.scss +4 -2
  172. package/src/theme/bootstrap-override/_bootstrap-italia-site.scss +2 -1
  173. package/src/theme/bootstrap-override/bootstrap/_print.scss +2 -1
  174. package/src/theme/bootstrap-override/bootstrap-italia/_breadcrumb.scss +1 -1
  175. package/src/theme/bootstrap-override/bootstrap-italia/_callout.scss +5 -0
  176. package/src/theme/bootstrap-override/bootstrap-italia/_footer.scss +9 -4
  177. package/src/theme/bootstrap-override/bootstrap-italia/_form.scss +5 -3
  178. package/src/theme/bootstrap-override/bootstrap-italia/_linklist.scss +2 -0
  179. package/src/theme/bootstrap-override/bootstrap-italia/_megamenu.scss +1 -0
  180. package/src/theme/bootstrap-override/bootstrap-italia/_point-list.scss +4 -3
  181. package/src/theme/bootstrap-override/bootstrap-italia/_steppers.scss +5 -0
  182. package/src/theme/extras/_checkbox.scss +1 -1
  183. package/src/theme/extras/_modals.scss +5 -3
  184. package/src/theme/extras/_search.scss +15 -5
  185. package/src/theme/extras/_sidebar.scss +3 -0
  186. package/src/components/Image/Image.jsx +0 -165
  187. package/src/components/Image/__tests__/Image.test.jsx +0 -636
  188. package/src/components/Image/helpers.js +0 -147
package/.eslintrc.js CHANGED
@@ -8,7 +8,7 @@ module.exports = {
8
8
  mocha: true,
9
9
  jasmine: true,
10
10
  },
11
- parser: 'babel-eslint',
11
+ parser: '@babel/eslint-parser',
12
12
  parserOptions: {
13
13
  ecmaVersion: 6,
14
14
  sourceType: 'module',
@@ -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,5 +1,24 @@
1
1
 
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * upgrade to design-react-kit 5.0.0-1 and bootstrap-italia 2.6.1 (#407)
9
+ * upgrade to volto 17.5.0 (#382)
10
+
11
+ ### Features
12
+
13
+ * 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))
14
+ * 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))
15
+
16
+
17
+ ### Maintenance
18
+
19
+ * fix babel-eslint ([a7aa9a6](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a7aa9a6dff9f420bceef34809c2f7e23da883bcd))
20
+ * upgrade linters ([9d8f13a](https://github.com/RedTurtle/design-comuni-plone-theme/commit/9d8f13a34d82fb6cc9ce68f0881a46ffd8803eca))
21
+
3
22
  ## [10.4.1](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v10.4.0...v10.4.1) (2023-11-21)
4
23
 
5
24
 
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'
@@ -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.1",
5
+ "version": "11.0.0-alpha.0",
6
6
  "main": "src/index.js",
7
7
  "keywords": [
8
8
  "volto-addon",
@@ -55,12 +55,31 @@
55
55
  },
56
56
  "stylelint": {
57
57
  "extends": [
58
- "stylelint-config-prettier",
59
58
  "stylelint-config-idiomatic-order"
60
59
  ],
61
60
  "plugins": [
62
61
  "stylelint-prettier"
63
62
  ],
63
+ "overrides": [
64
+ {
65
+ "files": [
66
+ "**/*.scss"
67
+ ],
68
+ "customSyntax": "postcss-scss"
69
+ },
70
+ {
71
+ "files": [
72
+ "**/*.less"
73
+ ],
74
+ "customSyntax": "postcss-less"
75
+ },
76
+ {
77
+ "files": [
78
+ "**/*.overrides"
79
+ ],
80
+ "customSyntax": "postcss-less"
81
+ }
82
+ ],
64
83
  "rules": {
65
84
  "prettier/prettier": true,
66
85
  "rule-empty-line-before": [
@@ -85,21 +104,12 @@
85
104
  "yarn i18n",
86
105
  "git add locales"
87
106
  ],
88
- "theme/**/*.{css,less}": [
89
- "npx stylelint --fix"
90
- ],
91
107
  "src/**/*.{css,less}": [
92
108
  "npx stylelint --fix"
93
109
  ],
94
- "theme/**/*.scss": [
95
- "npx stylelint --fix --customSyntax postcss-scss"
96
- ],
97
110
  "src/**/*.scss": [
98
111
  "npx stylelint --fix --customSyntax postcss-scss"
99
112
  ],
100
- "theme/**/*.overrides": [
101
- "npx stylelint --fix --syntax less"
102
- ],
103
113
  "src/**/*.overrides": [
104
114
  "npx stylelint --fix --syntax less"
105
115
  ]
@@ -109,13 +119,14 @@
109
119
  },
110
120
  "dependencies": {
111
121
  "@babel/plugin-proposal-export-default-from": "7.18.9",
122
+ "@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
112
123
  "@babel/plugin-proposal-throw-expressions": "7.18.6",
113
124
  "@eeacms/volto-taxonomy": "^1.0.0",
114
125
  "@loadable/babel-plugin": "5.13.2",
115
126
  "@plone-collective/volto-sentry": "0.3.0",
116
- "bootstrap-italia": "2.2.0",
127
+ "bootstrap-italia": "2.6.1",
117
128
  "classnames": "^2.3.2",
118
- "design-react-kit": "italia/design-react-kit#fc9b40257ba3cb613141faf217f1f5b806489740",
129
+ "design-react-kit": "5.0.0-1",
119
130
  "htmldiff-js": "1.0.5",
120
131
  "marked": "9.0.0",
121
132
  "react-dropzone": "11.0.1",
@@ -149,31 +160,37 @@
149
160
  },
150
161
  "devDependencies": {
151
162
  "@babel/core": "7.19.6",
163
+ "@babel/eslint-parser": "7.23.3",
152
164
  "@commitlint/cli": "17.6.6",
153
165
  "@commitlint/config-conventional": "17.6.6",
154
166
  "@plone/scripts": "*",
155
167
  "@release-it/conventional-changelog": "5.1.1",
156
- "babel-eslint": "10.1.0",
157
- "eslint": "6.8.0",
158
- "eslint-config-prettier": "6.11.0",
159
- "eslint-config-react-app": "5.2.1",
168
+ "eslint": "8.54.0",
169
+ "eslint-config-prettier": "9.0.0",
170
+ "eslint-config-react-app": "7.0.1",
160
171
  "eslint-plugin-flowtype": "4.7.0",
161
- "eslint-plugin-import": "2.20.2",
162
- "eslint-plugin-jsx-a11y": "6.2.3",
163
- "eslint-plugin-prettier": "3.1.3",
164
- "eslint-plugin-react": "7.20.0",
165
- "eslint-plugin-react-hooks": "4.0.2",
172
+ "eslint-plugin-import": "2.29.0",
173
+ "eslint-plugin-jsx-a11y": "6.8.0",
174
+ "eslint-plugin-prettier": "5.0.1",
175
+ "eslint-plugin-react": "7.33.2",
176
+ "eslint-plugin-react-hooks": "4.6.0",
166
177
  "husky": "8.0.2",
167
178
  "lint-staged": "13.0.3",
168
- "prettier": "2.0.5",
179
+ "postcss": "8.4.31",
180
+ "postcss-flexbugs-fixes": "5.0.2",
181
+ "postcss-less": "6.0.0",
182
+ "postcss-load-config": "4.0.2",
183
+ "postcss-loader": "7.3.3",
184
+ "postcss-overrides": "3.1.4",
185
+ "postcss-scss": "4.0.9",
186
+ "prettier": "3.1.0",
169
187
  "release-it": "16.1.3",
170
- "stylelint": "15.10.2",
188
+ "stylelint": "15.11.0",
171
189
  "stylelint-config-idiomatic-order": "9.0.0",
172
- "stylelint-config-prettier": "9.0.5",
173
- "stylelint-prettier": "4.0.0"
190
+ "stylelint-prettier": "4.0.2"
174
191
  },
175
192
  "peerDependencies": {
176
- "@plone/volto": "17.0.0-alpha.19"
193
+ "@plone/volto": "17.5.0"
177
194
  },
178
195
  "packageManager": "yarn@3.2.3"
179
196
  }
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
 
@@ -2,8 +2,7 @@
2
2
  * Search filters action
3
3
  * @module src/actions/getDettagliProcedimento
4
4
  */
5
- export const GET_DETTAGLI_PROCEDIMENTO =
6
- 'GET_DETTAGLI_PROCEDIMENTO';
5
+ export const GET_DETTAGLI_PROCEDIMENTO = 'GET_DETTAGLI_PROCEDIMENTO';
7
6
 
8
7
  /**
9
8
  * Get search filters.
@@ -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>