design-comuni-plone-theme 12.0.0-alpha.1 → 12.1.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 (439) hide show
  1. package/.github/workflows/main.yml +17 -17
  2. package/.github/workflows/{themes.yml → npm.yml} +22 -3
  3. package/.github/workflows/prs.yml +1 -1
  4. package/.github/workflows/release.yml +1 -1
  5. package/.github/workflows/{performance.yml → withnewsletter.yml} +12 -12
  6. package/.release-it.json +2 -1
  7. package/.yarn/cache/@formatjs-ecma402-abstract-npm-1.18.2-281c9afdd0-c664056cca.zip +0 -0
  8. package/.yarn/cache/@formatjs-fast-memoize-npm-2.2.0-4a46a61b8b-8697fe72a7.zip +0 -0
  9. package/.yarn/cache/@formatjs-icu-messageformat-parser-npm-2.7.6-59cd895220-d537253cbf.zip +0 -0
  10. package/.yarn/cache/@formatjs-icu-skeleton-parser-npm-1.8.0-0f1fd4bf3f-85ca45148a.zip +0 -0
  11. package/.yarn/cache/@formatjs-intl-localematcher-npm-0.5.4-e30cfcd8fd-a0af57874f.zip +0 -0
  12. package/.yarn/cache/@internationalized-date-npm-3.5.3-435a424ba4-e3b011b587.zip +0 -0
  13. package/.yarn/cache/@internationalized-message-npm-3.1.3-ed0b43d16d-76b7aadad0.zip +0 -0
  14. package/.yarn/cache/@internationalized-number-npm-3.5.2-0f0b803d0d-b622849a6c.zip +0 -0
  15. package/.yarn/cache/@internationalized-string-npm-3.2.2-dc233d6c2e-32d5944f0a.zip +0 -0
  16. package/.yarn/cache/{@plone-collective-volto-sentry-npm-0.3.0-238a1b397a-99e5493e46.zip → @plone-collective-volto-sentry-npm-0.3.1-ffea0b0844-cf3a192860.zip} +0 -0
  17. package/.yarn/cache/@plone-components-npm-2.0.0-alpha.7-ae15679e71-6eb35f5ef6.zip +0 -0
  18. package/.yarn/cache/@react-aria-breadcrumbs-npm-3.5.12-4df37e0505-19c473c624.zip +0 -0
  19. package/.yarn/cache/@react-aria-button-npm-3.9.4-bcfdfa6d77-3644f5b504.zip +0 -0
  20. package/.yarn/cache/@react-aria-calendar-npm-3.5.7-4a24a3018a-08088c27ad.zip +0 -0
  21. package/.yarn/cache/@react-aria-checkbox-npm-3.14.2-ec0875b197-33c280dbaa.zip +0 -0
  22. package/.yarn/cache/@react-aria-color-npm-3.0.0-beta.32-b69a571afd-fcaa145f2d.zip +0 -0
  23. package/.yarn/cache/@react-aria-combobox-npm-3.9.0-9d01e3bcc8-ebc3aa2523.zip +0 -0
  24. package/.yarn/cache/@react-aria-datepicker-npm-3.10.0-b44d40522c-b5b3226e0e.zip +0 -0
  25. package/.yarn/cache/@react-aria-dialog-npm-3.5.13-fd75d2058e-b03586c90b.zip +0 -0
  26. package/.yarn/cache/@react-aria-dnd-npm-3.6.0-085417ff5c-da39c859dc.zip +0 -0
  27. package/.yarn/cache/@react-aria-focus-npm-3.17.0-a0d6fd01c9-bac778f7f9.zip +0 -0
  28. package/.yarn/cache/@react-aria-form-npm-3.0.4-1f761ca8f4-97a8f25e7b.zip +0 -0
  29. package/.yarn/cache/@react-aria-grid-npm-3.9.0-cdd984835d-c3841b238b.zip +0 -0
  30. package/.yarn/cache/@react-aria-gridlist-npm-3.8.0-40b98ff740-04ab1cccee.zip +0 -0
  31. package/.yarn/cache/@react-aria-i18n-npm-3.11.0-3bd97ed4c6-c4c7c7bd16.zip +0 -0
  32. package/.yarn/cache/@react-aria-interactions-npm-3.21.2-c6fe2e70fd-df7ca376b1.zip +0 -0
  33. package/.yarn/cache/@react-aria-label-npm-3.7.7-39b24fbd65-bfa2ec757c.zip +0 -0
  34. package/.yarn/cache/@react-aria-link-npm-3.7.0-cf388c071e-0af089b4b6.zip +0 -0
  35. package/.yarn/cache/@react-aria-listbox-npm-3.12.0-c9a3fcfdc1-2591d78997.zip +0 -0
  36. package/.yarn/cache/@react-aria-live-announcer-npm-3.3.3-46433149f6-501e772dba.zip +0 -0
  37. package/.yarn/cache/@react-aria-menu-npm-3.14.0-6fa31f531d-7f716c6ef9.zip +0 -0
  38. package/.yarn/cache/@react-aria-meter-npm-3.4.12-2821308fcd-a344cbb3df.zip +0 -0
  39. package/.yarn/cache/@react-aria-numberfield-npm-3.11.2-09acd47715-4e86800c8a.zip +0 -0
  40. package/.yarn/cache/@react-aria-overlays-npm-3.22.0-90340dac2d-bc2a4ed89d.zip +0 -0
  41. package/.yarn/cache/@react-aria-progress-npm-3.4.12-dfcbd6cd8f-3ca779f189.zip +0 -0
  42. package/.yarn/cache/@react-aria-radio-npm-3.10.3-94cedc9974-62cc213b68.zip +0 -0
  43. package/.yarn/cache/@react-aria-searchfield-npm-3.7.4-aaf2343364-ca4bc43633.zip +0 -0
  44. package/.yarn/cache/@react-aria-select-npm-3.14.4-36c0aabf5a-7b091a7a9c.zip +0 -0
  45. package/.yarn/cache/@react-aria-selection-npm-3.18.0-ac9a672791-58d96d02cd.zip +0 -0
  46. package/.yarn/cache/@react-aria-separator-npm-3.3.12-cba989b17a-972f038c36.zip +0 -0
  47. package/.yarn/cache/@react-aria-slider-npm-3.7.7-ed4b28f711-3d4b8c88cc.zip +0 -0
  48. package/.yarn/cache/@react-aria-spinbutton-npm-3.6.4-1361ae7900-d3df661c3b.zip +0 -0
  49. package/.yarn/cache/@react-aria-ssr-npm-3.9.3-83f9d6a628-9bbc8fea4a.zip +0 -0
  50. package/.yarn/cache/@react-aria-switch-npm-3.6.3-491c39fd33-754bdd8fe0.zip +0 -0
  51. package/.yarn/cache/@react-aria-table-npm-3.14.0-28948a50ad-8ce75e4b03.zip +0 -0
  52. package/.yarn/cache/@react-aria-tabs-npm-3.9.0-06e5f74497-1460c136f1.zip +0 -0
  53. package/.yarn/cache/@react-aria-tag-npm-3.4.0-1910b576b8-1fcd4068af.zip +0 -0
  54. package/.yarn/cache/@react-aria-textfield-npm-3.14.4-1c110be229-b9ba98a86e.zip +0 -0
  55. package/.yarn/cache/@react-aria-toggle-npm-3.10.3-93811531bc-a54c83da54.zip +0 -0
  56. package/.yarn/cache/@react-aria-toolbar-npm-3.0.0-beta.4-8a6d41e05d-ae6fc5f49a.zip +0 -0
  57. package/.yarn/cache/@react-aria-tooltip-npm-3.7.3-e2a6890301-57743f4bbd.zip +0 -0
  58. package/.yarn/cache/@react-aria-tree-npm-3.0.0-alpha.0-48c591e08d-2829e3a0ef.zip +0 -0
  59. package/.yarn/cache/@react-aria-utils-npm-3.24.0-b754bf323d-0f0b530f06.zip +0 -0
  60. package/.yarn/cache/@react-aria-visually-hidden-npm-3.8.11-437e8b0708-5b0e770a9c.zip +0 -0
  61. package/.yarn/cache/@react-spectrum-utils-npm-3.11.6-38e10974c6-6089e7b70b.zip +0 -0
  62. package/.yarn/cache/@react-stately-calendar-npm-3.5.0-269efd3343-8395aaf34d.zip +0 -0
  63. package/.yarn/cache/@react-stately-checkbox-npm-3.6.4-a5dc7cc18a-89c38c8698.zip +0 -0
  64. package/.yarn/cache/@react-stately-collections-npm-3.10.6-669dc2c16b-bc81d37b45.zip +0 -0
  65. package/.yarn/cache/@react-stately-color-npm-3.6.0-aee6f5f342-2cf47e66f0.zip +0 -0
  66. package/.yarn/cache/@react-stately-combobox-npm-3.8.3-15ca98aa5c-dad97a15fb.zip +0 -0
  67. package/.yarn/cache/@react-stately-data-npm-3.11.3-cce895778d-dfc8d1ac9a.zip +0 -0
  68. package/.yarn/cache/@react-stately-datepicker-npm-3.9.3-fe9d43086a-c2fee2a75e.zip +0 -0
  69. package/.yarn/cache/@react-stately-dnd-npm-3.3.0-12dd68769d-afc0565ac1.zip +0 -0
  70. package/.yarn/cache/@react-stately-flags-npm-3.0.2-1ec044f94e-c2c19b6043.zip +0 -0
  71. package/.yarn/cache/@react-stately-form-npm-3.0.2-4bc729a2ea-9dfae19354.zip +0 -0
  72. package/.yarn/cache/@react-stately-grid-npm-3.8.6-907965ec36-313e63ff3b.zip +0 -0
  73. package/.yarn/cache/@react-stately-list-npm-3.10.4-77dd54c792-19325e9ab4.zip +0 -0
  74. package/.yarn/cache/@react-stately-menu-npm-3.7.0-90a0db1055-a108e379e4.zip +0 -0
  75. package/.yarn/cache/@react-stately-numberfield-npm-3.9.2-3a89f1bc42-96956b46c5.zip +0 -0
  76. package/.yarn/cache/@react-stately-overlays-npm-3.6.6-f8aa64654d-bc910b54b2.zip +0 -0
  77. package/.yarn/cache/@react-stately-radio-npm-3.10.3-071befd78c-f8d356f86a.zip +0 -0
  78. package/.yarn/cache/@react-stately-searchfield-npm-3.5.2-2f3fb6c209-43558cfff5.zip +0 -0
  79. package/.yarn/cache/@react-stately-select-npm-3.6.3-be5e642bfa-34fbe8501b.zip +0 -0
  80. package/.yarn/cache/@react-stately-selection-npm-3.15.0-8b7bc0694b-9edcb36fed.zip +0 -0
  81. package/.yarn/cache/@react-stately-slider-npm-3.5.3-562ef6c5cb-06d0a53b7c.zip +0 -0
  82. package/.yarn/cache/@react-stately-table-npm-3.11.7-5c9e0fd96a-58d51f98d6.zip +0 -0
  83. package/.yarn/cache/@react-stately-tabs-npm-3.6.5-146716fcbd-d1968d1417.zip +0 -0
  84. package/.yarn/cache/@react-stately-toggle-npm-3.7.3-37e71d088a-5c5e7b52fa.zip +0 -0
  85. package/.yarn/cache/@react-stately-tooltip-npm-3.4.8-fd6ef872a2-25cc3e3c24.zip +0 -0
  86. package/.yarn/cache/@react-stately-tree-npm-3.8.0-500b430bb7-19c17a7406.zip +0 -0
  87. package/.yarn/cache/@react-stately-utils-npm-3.10.0-066f48a98e-780dab3581.zip +0 -0
  88. package/.yarn/cache/@react-stately-virtualizer-npm-3.7.0-2e4e9a8821-c04424dfff.zip +0 -0
  89. package/.yarn/cache/@react-types-breadcrumbs-npm-3.7.4-0e067c6509-132d9d1b0a.zip +0 -0
  90. package/.yarn/cache/@react-types-button-npm-3.9.3-491d887431-a9da87eb7e.zip +0 -0
  91. package/.yarn/cache/@react-types-calendar-npm-3.4.5-9491b2662c-6e3b6e44df.zip +0 -0
  92. package/.yarn/cache/@react-types-checkbox-npm-3.8.0-fa41e40b34-9786fd8224.zip +0 -0
  93. package/.yarn/cache/@react-types-color-npm-3.0.0-beta.24-a1c15bc97a-894371276c.zip +0 -0
  94. package/.yarn/cache/@react-types-combobox-npm-3.11.0-e0a5e09d36-3bf3ad11d0.zip +0 -0
  95. package/.yarn/cache/@react-types-datepicker-npm-3.7.3-1c968964c9-1053453aee.zip +0 -0
  96. package/.yarn/cache/@react-types-dialog-npm-3.5.9-037d2817d8-efeb8dc70e.zip +0 -0
  97. package/.yarn/cache/@react-types-form-npm-3.7.3-faea9d8969-e88a1a4097.zip +0 -0
  98. package/.yarn/cache/@react-types-grid-npm-3.2.5-47670b811f-e3588328cf.zip +0 -0
  99. package/.yarn/cache/@react-types-link-npm-3.5.4-44b62607b6-5d7555e036.zip +0 -0
  100. package/.yarn/cache/@react-types-listbox-npm-3.4.8-2e0a7f4dea-31e7b4c8b1.zip +0 -0
  101. package/.yarn/cache/@react-types-menu-npm-3.9.8-a4a0f57423-d5fb6d99bc.zip +0 -0
  102. package/.yarn/cache/@react-types-meter-npm-3.4.0-768a873170-cc30fd4745.zip +0 -0
  103. package/.yarn/cache/@react-types-numberfield-npm-3.8.2-a842f6619d-e8ed43b08f.zip +0 -0
  104. package/.yarn/cache/@react-types-overlays-npm-3.8.6-78e91b1a37-8efb3c2569.zip +0 -0
  105. package/.yarn/cache/@react-types-progress-npm-3.5.3-27066d6e69-d13f2db5c3.zip +0 -0
  106. package/.yarn/cache/@react-types-radio-npm-3.8.0-5d03b4b24f-f868f13ff2.zip +0 -0
  107. package/.yarn/cache/@react-types-searchfield-npm-3.5.4-9a6cb6c41b-806f97f5d6.zip +0 -0
  108. package/.yarn/cache/@react-types-select-npm-3.9.3-436aaa190f-b3db4acb66.zip +0 -0
  109. package/.yarn/cache/@react-types-shared-npm-3.23.0-1952004986-aa3507ef30.zip +0 -0
  110. package/.yarn/cache/@react-types-slider-npm-3.7.2-369a50984c-fcdafa3511.zip +0 -0
  111. package/.yarn/cache/@react-types-switch-npm-3.5.2-19ff24a621-e8caae2da6.zip +0 -0
  112. package/.yarn/cache/@react-types-table-npm-3.9.4-0afc8754dd-80dae2adfe.zip +0 -0
  113. package/.yarn/cache/@react-types-tabs-npm-3.3.6-047a1fd9c3-69d89f3c5c.zip +0 -0
  114. package/.yarn/cache/@react-types-textfield-npm-3.9.2-2bd9f93005-9102b983c5.zip +0 -0
  115. package/.yarn/cache/@react-types-tooltip-npm-3.4.8-8d81ea0e23-a3122729eb.zip +0 -0
  116. package/.yarn/cache/@swc-helpers-npm-0.4.14-f806c3fb16-273fd3f3fc.zip +0 -0
  117. package/.yarn/cache/@swc-helpers-npm-0.4.36-507abd5d2a-20b9f021a9.zip +0 -0
  118. package/.yarn/cache/@swc-helpers-npm-0.5.11-94bd1e1b3e-5d85e641d9.zip +0 -0
  119. package/.yarn/cache/braces-npm-3.0.3-582c14023c-b95aa0b3bd.zip +0 -0
  120. package/.yarn/cache/client-only-npm-0.0.1-07d3e9505c-0c16bf660d.zip +0 -0
  121. package/.yarn/cache/clsx-npm-2.1.1-96125b98be-acd3e1ab9d.zip +0 -0
  122. package/.yarn/cache/cross-spawn-npm-7.0.6-264bddf921-8d306efaca.zip +0 -0
  123. package/.yarn/cache/fill-range-npm-7.1.1-bf491486db-b4abfbca38.zip +0 -0
  124. package/.yarn/cache/intl-messageformat-npm-10.5.11-1feb0e2115-b5574447a0.zip +0 -0
  125. package/.yarn/cache/micromatch-npm-4.0.8-c9570e4aca-79920eb634.zip +0 -0
  126. package/.yarn/cache/nanoid-npm-3.3.8-d22226208b-dfe0adbc0c.zip +0 -0
  127. package/.yarn/cache/react-aria-components-npm-1.2.0-30040153be-43319158c8.zip +0 -0
  128. package/.yarn/cache/react-aria-npm-3.33.0-688afc3857-980f9da630.zip +0 -0
  129. package/.yarn/cache/react-stately-npm-3.31.0-9465d26d77-d59440e0a7.zip +0 -0
  130. package/.yarn/cache/use-sync-external-store-npm-1.2.2-7923c915e1-fe07c071c4.zip +0 -0
  131. package/.yarn/cache/volto-blocks-widget-npm-3.4.1-c4d451e2c2-4f5c183698.zip +0 -0
  132. package/.yarn/cache/{volto-dropdownmenu-npm-4.1.1-8db37e6495-81edb60075.zip → volto-dropdownmenu-npm-4.1.3-b44ee1c98b-5dc76c2ee7.zip} +0 -0
  133. package/.yarn/cache/volto-editablefooter-npm-5.1.7-483b4be25b-ad5642959b.zip +0 -0
  134. package/.yarn/cache/{volto-feedback-npm-0.3.0-6f555b6437-5d4fe03279.zip → volto-feedback-npm-0.6.1-0de05761ad-127b69de40.zip} +0 -0
  135. package/.yarn/cache/{volto-form-block-npm-3.8.2-e49cbe07d5-5b72a06a5e.zip → volto-form-block-npm-3.10.0-8cd1c7a976-8ddce2c624.zip} +0 -0
  136. package/.yarn/cache/volto-gdpr-privacy-npm-2.2.12-fbc24c3b6f-ba1b9c0127.zip +0 -0
  137. package/.yarn/cache/volto-multilingual-widget-npm-3.2.1-6fcb25c017-c24fd5379c.zip +0 -0
  138. package/.yarn/cache/{volto-secondarymenu-npm-4.0.0-9684028dd3-cec2705740.zip → volto-secondarymenu-npm-4.1.1-f516c1891c-94eeac0bc4.zip} +0 -0
  139. package/.yarn/cache/volto-site-settings-npm-0.4.4-11da224a90-ef0c504b64.zip +0 -0
  140. package/.yarn/cache/{volto-slimheader-npm-0.1.1-6c4a32fae4-94bafa197c.zip → volto-slimheader-npm-0.1.2-8495cb2187-fb657c3274.zip} +0 -0
  141. package/.yarn/cache/{volto-subblocks-npm-2.0.0-5a53bcc26a-7e4774cd63.zip → volto-subblocks-npm-2.1.0-2f162a4b19-a1cc02ca26.zip} +0 -0
  142. package/.yarn/cache/{volto-subfooter-npm-3.0.0-bc1ad5b16c-c7619ac55e.zip → volto-subfooter-npm-3.1.1-57dfb2cf48-d03848013d.zip} +0 -0
  143. package/.yarn/cache/volto-subsites-npm-4.0.2-715672140c-77408b4ea1.zip +0 -0
  144. package/.yarn/cache/{volto-venue-npm-4.0.2-0c5b2ce94f-d6ebdb2e3d.zip → volto-venue-npm-4.1.1-d5be247928-f796d519ad.zip} +0 -0
  145. package/.yarn/install-state.gz +0 -0
  146. package/CHANGELOG.md +1619 -488
  147. package/Makefile +1 -1
  148. package/RELEASE.md +418 -9
  149. package/locales/de/LC_MESSAGES/volto.po +265 -16
  150. package/locales/en/LC_MESSAGES/volto.po +327 -78
  151. package/locales/es/LC_MESSAGES/volto.po +265 -16
  152. package/locales/fr/LC_MESSAGES/volto.po +265 -16
  153. package/locales/it/LC_MESSAGES/volto.po +268 -19
  154. package/locales/volto.pot +266 -17
  155. package/package.json +23 -17
  156. package/publiccode.yml +3 -3
  157. package/src/components/ImageWithErrors/ImageWithErrors.jsx +30 -0
  158. package/src/components/ItaliaTheme/AppExtras/GenericAppExtras.jsx +2 -8
  159. package/src/components/ItaliaTheme/AppExtras/SiteSettingsExtras.jsx +35 -0
  160. package/src/components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock.jsx +2 -1
  161. package/src/components/ItaliaTheme/Blocks/Accordion/Edit.jsx +59 -0
  162. package/src/components/ItaliaTheme/Blocks/Accordion/View.jsx +9 -0
  163. package/src/components/ItaliaTheme/Blocks/Alert/Edit.jsx +1 -1
  164. package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/BottomBody.jsx +2 -2
  165. package/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx +4 -0
  166. package/src/components/ItaliaTheme/Blocks/CTABlock/Block.jsx +2 -2
  167. package/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx +1 -0
  168. package/src/components/ItaliaTheme/Blocks/Callout/Edit.jsx +2 -2
  169. package/src/components/ItaliaTheme/Blocks/Common/SearchFilters/DateFilter.jsx +3 -2
  170. package/src/components/ItaliaTheme/Blocks/Common/SearchFilters/SelectFilter.jsx +11 -3
  171. package/src/components/ItaliaTheme/Blocks/Common/SearchFilters/TextFilter.jsx +7 -1
  172. package/src/components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock.jsx +17 -15
  173. package/src/components/ItaliaTheme/Blocks/ContactsBlock/Edit.jsx +12 -6
  174. package/src/components/ItaliaTheme/Blocks/CountDown/Edit.jsx +2 -2
  175. package/src/components/ItaliaTheme/Blocks/EventSearch/Body.jsx +17 -2
  176. package/src/components/ItaliaTheme/Blocks/EventSearch/DefaultFilters.js +8 -15
  177. package/src/components/ItaliaTheme/Blocks/EventSearch/Sidebar.jsx +16 -5
  178. package/src/components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock.jsx +12 -7
  179. package/src/components/ItaliaTheme/Blocks/IconBlocks/Block/ViewBlock.jsx +8 -14
  180. package/src/components/ItaliaTheme/Blocks/IconBlocks/Edit.jsx +17 -3
  181. package/src/components/ItaliaTheme/Blocks/IconBlocks/View.jsx +6 -1
  182. package/src/components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate.jsx +9 -5
  183. package/src/components/ItaliaTheme/Blocks/Listing/CardWithImage/CardWithImageDefault.jsx +17 -7
  184. package/src/components/ItaliaTheme/Blocks/Listing/CardWithSlideUpTextTemplate.jsx +24 -13
  185. package/src/components/ItaliaTheme/Blocks/Listing/Commons/CardCalendar.jsx +1 -1
  186. package/src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx +58 -13
  187. package/src/components/ItaliaTheme/Blocks/Listing/Commons/RassegnaInfo.jsx +28 -0
  188. package/src/components/ItaliaTheme/Blocks/Listing/CompleteBlockLinksTemplate.jsx +15 -10
  189. package/src/components/ItaliaTheme/Blocks/Listing/ContentInEvidenceTemplate.jsx +24 -10
  190. package/src/components/ItaliaTheme/Blocks/Listing/GridGalleryTemplate.jsx +4 -3
  191. package/src/components/ItaliaTheme/Blocks/Listing/InEvidenceTemplate.jsx +22 -9
  192. package/src/components/ItaliaTheme/Blocks/Listing/PhotogalleryTemplate.jsx +10 -8
  193. package/src/components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate.jsx +15 -1
  194. package/src/components/ItaliaTheme/Blocks/Listing/SimpleCard/Card/SimpleCardDefault.jsx +16 -2
  195. package/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx +12 -8
  196. package/src/components/ItaliaTheme/Blocks/Listing/SmallBlockLinksTemplate.jsx +19 -21
  197. package/src/components/ItaliaTheme/Blocks/NumbersBlock/Block/EditBlock.jsx +5 -6
  198. package/src/components/ItaliaTheme/Blocks/NumbersBlock/Edit.jsx +17 -3
  199. package/src/components/ItaliaTheme/Blocks/NumbersBlock/View.jsx +5 -1
  200. package/src/components/ItaliaTheme/Blocks/SearchSections/Body.jsx +1 -0
  201. package/src/components/ItaliaTheme/Blocks/Teaser/ItaliaTeaserBody.jsx +190 -0
  202. package/src/components/ItaliaTheme/Blocks/Teaser/schema.js +179 -0
  203. package/src/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Block.jsx +4 -2
  204. package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/Edit.jsx +2 -2
  205. package/src/components/ItaliaTheme/Blocks/UOSearch/Body.jsx +10 -2
  206. package/src/components/ItaliaTheme/Blocks/UOSearch/Sidebar.jsx +16 -0
  207. package/src/components/ItaliaTheme/Blocks/__tests__/Accordion.test.jsx +0 -3
  208. package/src/components/ItaliaTheme/BrandText/BrandText.jsx +39 -7
  209. package/src/components/ItaliaTheme/BrandTextFooter/BrandTextFooter.jsx +31 -2
  210. package/src/components/ItaliaTheme/Breadcrumbs/Breadcrumbs.jsx +16 -8
  211. package/src/components/ItaliaTheme/Cards/CardCategory.jsx +2 -3
  212. package/src/components/ItaliaTheme/Cards/CardPersona.jsx +5 -8
  213. package/src/components/ItaliaTheme/CustomerSatisfaction/FeedbackForm.jsx +27 -23
  214. package/src/components/ItaliaTheme/CustomerSatisfaction/Steps/AnswersStep.jsx +1 -0
  215. package/src/components/ItaliaTheme/CustomerSatisfaction/Steps/CommentsStep.jsx +1 -0
  216. package/src/components/ItaliaTheme/Footer/FooterInfos.jsx +5 -4
  217. package/src/components/ItaliaTheme/Footer/FooterMain.jsx +4 -4
  218. package/src/components/ItaliaTheme/Footer/FooterSmall.jsx +10 -5
  219. package/src/components/ItaliaTheme/Header/HeaderCenter.jsx +5 -6
  220. package/src/components/ItaliaTheme/Header/HeaderSearch/HeaderSearch.jsx +9 -1
  221. package/src/components/ItaliaTheme/Header/HeaderSearch/SearchModal.jsx +21 -4
  222. package/src/components/ItaliaTheme/Header/HeaderSlim/HeaderSlim.jsx +32 -9
  223. package/src/components/ItaliaTheme/Header/HeaderSlim/LoginButton.jsx +1 -1
  224. package/src/components/ItaliaTheme/Header/HeaderSlim/TertiaryMenu.jsx +2 -2
  225. package/src/components/ItaliaTheme/Header/ParentSiteMenu.jsx +17 -2
  226. package/src/components/ItaliaTheme/Icons/DesignIcon.jsx +80 -29
  227. package/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx +2 -0
  228. package/src/components/ItaliaTheme/Icons/common/common.js +9 -8
  229. package/src/components/ItaliaTheme/LoginAgid/LoginAgid.jsx +2 -5
  230. package/src/components/ItaliaTheme/Logo/Logo.jsx +15 -7
  231. package/src/components/ItaliaTheme/LogoFooter/LogoFooter.jsx +11 -3
  232. package/src/components/ItaliaTheme/MegaMenu/MegaMenu.jsx +5 -1
  233. package/src/components/ItaliaTheme/Pagination/Pagination.jsx +5 -1
  234. package/src/components/ItaliaTheme/Pagination/PaginationItem.jsx +15 -1
  235. package/src/components/ItaliaTheme/ScrollToTop/ScrollToTop.jsx +0 -1
  236. package/src/components/ItaliaTheme/Search/Search.jsx +2 -3
  237. package/src/components/ItaliaTheme/SkipLinks/SkipLinks.jsx +21 -11
  238. package/src/components/ItaliaTheme/Slider/NextArrow.jsx +1 -1
  239. package/src/components/ItaliaTheme/Slider/PrevArrow.jsx +1 -1
  240. package/src/components/ItaliaTheme/Slider/SingleSlideWrapper.jsx +5 -2
  241. package/src/components/ItaliaTheme/Unauthorized/Unauthorized.jsx +2 -5
  242. package/src/components/ItaliaTheme/View/BandoView/BandoApprofondimenti.jsx +1 -1
  243. package/src/components/ItaliaTheme/View/BandoView/BandoView.jsx +19 -1
  244. package/src/components/ItaliaTheme/View/Commons/Actions.jsx +2 -2
  245. package/src/components/ItaliaTheme/View/Commons/Argument/ArgumentIcon.jsx +1 -1
  246. package/src/components/ItaliaTheme/View/Commons/Attachment.jsx +1 -1
  247. package/src/components/ItaliaTheme/View/Commons/BandoDates.jsx +27 -47
  248. package/src/components/ItaliaTheme/View/Commons/ContactsCard.jsx +2 -31
  249. package/src/components/ItaliaTheme/View/Commons/Dates.jsx +62 -28
  250. package/src/components/ItaliaTheme/View/Commons/Events.jsx +28 -27
  251. package/src/components/ItaliaTheme/View/Commons/Gallery.jsx +36 -28
  252. package/src/components/ItaliaTheme/View/Commons/GenericCard.jsx +14 -13
  253. package/src/components/ItaliaTheme/View/Commons/HelpBox.jsx +1 -1
  254. package/src/components/ItaliaTheme/View/Commons/LocationItem.jsx +15 -9
  255. package/src/components/ItaliaTheme/View/Commons/LocationsMap.jsx +4 -18
  256. package/src/components/ItaliaTheme/View/Commons/Module.jsx +22 -31
  257. package/src/components/ItaliaTheme/View/Commons/Modules.jsx +3 -1
  258. package/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx +7 -3
  259. package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeader.jsx +3 -4
  260. package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando.jsx +3 -0
  261. package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderDates.jsx +0 -10
  262. package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderEventDates.jsx +62 -14
  263. package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderTassonomiaArgomenti.jsx +4 -5
  264. package/src/components/ItaliaTheme/View/Commons/RelatedArticles.jsx +12 -1
  265. package/src/components/ItaliaTheme/View/Commons/RelatedItemInEvidence/RelatedItemInEvidence.jsx +14 -1
  266. package/src/components/ItaliaTheme/View/Commons/RelatedItems.jsx +11 -3
  267. package/src/components/ItaliaTheme/View/Commons/RenderBlocks.jsx +5 -2
  268. package/src/components/ItaliaTheme/View/Commons/Sharing.jsx +1 -1
  269. package/src/components/ItaliaTheme/View/Commons/SideMenu.jsx +11 -7
  270. package/src/components/ItaliaTheme/View/Commons/Sponsors.jsx +14 -10
  271. package/src/components/ItaliaTheme/View/Commons/VenuesSmall.jsx +13 -6
  272. package/src/components/ItaliaTheme/View/Commons/__tests__/Dates.test.jsx +1 -1
  273. package/src/components/ItaliaTheme/View/DocumentoView/DocumentoAccedereServizio.jsx +5 -8
  274. package/src/components/ItaliaTheme/View/DocumentoView/DocumentoView.jsx +20 -1
  275. package/src/components/ItaliaTheme/View/EventoView/EventoContatti.jsx +8 -7
  276. package/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno.jsx +1 -12
  277. package/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno.jsx +1 -12
  278. package/src/components/ItaliaTheme/View/EventoView/EventoCosE.jsx +17 -2
  279. package/src/components/ItaliaTheme/View/EventoView/EventoOrganizzatoDa.jsx +38 -0
  280. package/src/components/ItaliaTheme/View/EventoView/EventoPatrocinatoDa.jsx +38 -0
  281. package/src/components/ItaliaTheme/View/EventoView/EventoUlterioriInformazioni.jsx +0 -22
  282. package/src/components/ItaliaTheme/View/EventoView/EventoView.jsx +20 -1
  283. package/src/components/ItaliaTheme/View/FAQ/FaqFolder/SearchBar.jsx +7 -0
  284. package/src/components/ItaliaTheme/View/IncaricoView/IncaricoView.jsx +47 -8
  285. package/src/components/ItaliaTheme/View/NewsItemView/NewsItemText.jsx +33 -10
  286. package/src/components/ItaliaTheme/View/NewsItemView/NewsItemView.jsx +19 -1
  287. package/src/components/ItaliaTheme/View/PageView/PageView.jsx +3 -0
  288. package/src/components/ItaliaTheme/View/PageView/Placeholder/HeaderEnd.jsx +6 -0
  289. package/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoView.jsx +15 -36
  290. package/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoViewNoBlocks.jsx +14 -1
  291. package/src/components/ItaliaTheme/View/PersonaView/PersonaDocumenti.jsx +106 -0
  292. package/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx +85 -60
  293. package/src/components/ItaliaTheme/View/PersonaView/PersonaView.jsx +20 -1
  294. package/src/components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView.jsx +2 -2
  295. package/src/components/ItaliaTheme/View/ServizioView/ServizioAccedi.jsx +5 -1
  296. package/src/components/ItaliaTheme/View/ServizioView/ServizioCondizioni.jsx +5 -1
  297. package/src/components/ItaliaTheme/View/ServizioView/ServizioMetatag.jsx +9 -1
  298. package/src/components/ItaliaTheme/View/ServizioView/ServizioView.jsx +19 -2
  299. package/src/components/ItaliaTheme/View/UOView/UOMetadati.jsx +12 -0
  300. package/src/components/ItaliaTheme/View/UOView/UOServices.jsx +20 -2
  301. package/src/components/ItaliaTheme/View/UOView/UOView.jsx +23 -1
  302. package/src/components/ItaliaTheme/View/VenueView/VenueView.jsx +24 -11
  303. package/src/components/ItaliaTheme/View/VenueView/VenueWhere.jsx +1 -1
  304. package/src/components/ItaliaTheme/View/ViewUtils.jsx +1 -2
  305. package/src/components/ItaliaTheme/View/__tests__/ServizioTempiScadenze.test.jsx +0 -1
  306. package/src/components/ItaliaTheme/View/index.js +2 -0
  307. package/src/components/ItaliaTheme/index.js +1 -1
  308. package/src/components/ItaliaTheme/manage/Widgets/HtmlSlateWidget.jsx +4 -2
  309. package/src/components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm.jsx +2 -2
  310. package/src/components/SelectInput/SelectInput.jsx +10 -4
  311. package/src/components/TextInput.jsx +1 -0
  312. package/src/components/__tests__/FormValidation.test.js +142 -0
  313. package/src/config/Blocks/ListingOptions/attachmentCardTemplate.js +1 -1
  314. package/src/config/Blocks/blocks.js +4 -3
  315. package/src/config/Slate/Blockquote/index.js +7 -0
  316. package/src/config/Views/views.js +1 -0
  317. package/src/config/italiaConfig.js +81 -20
  318. package/src/customizations/volto/actions/vocabularies/vocabularies.js +102 -0
  319. package/src/customizations/volto/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm.jsx +1 -0
  320. package/src/customizations/volto/components/manage/Blocks/Listing/ListingBody.jsx +5 -0
  321. package/src/customizations/volto/components/manage/Blocks/Search/SearchBlockView.jsx +50 -11
  322. package/src/customizations/volto/components/manage/Blocks/Search/components/DateRangeFacet.jsx +16 -2
  323. package/src/customizations/volto/components/manage/Blocks/Search/components/SearchDetails.jsx +2 -3
  324. package/src/customizations/volto/components/manage/Blocks/Search/hocs/withSearch.jsx +6 -4
  325. package/src/customizations/volto/components/manage/Blocks/Search/layout/LeftColumnFacets.jsx +21 -17
  326. package/src/customizations/volto/components/manage/Blocks/Search/layout/RightColumnFacets.jsx +21 -17
  327. package/src/customizations/volto/components/manage/Blocks/Search/schema.js +16 -0
  328. package/src/customizations/volto/components/manage/Blocks/Teaser/Body.jsx +30 -0
  329. package/src/customizations/volto/components/manage/Blocks/Video/Body.jsx +6 -5
  330. package/src/customizations/volto/components/manage/Contents/ContentsUploadModal.jsx +375 -0
  331. package/src/customizations/volto/components/manage/Controlpanels/Groups/GroupsControlpanel.jsx +709 -0
  332. package/src/customizations/volto/components/manage/Controlpanels/Groups/RenderGroups.jsx +122 -0
  333. package/src/customizations/volto/components/manage/Diff/DiffField.jsx +2 -3
  334. package/src/customizations/volto/components/manage/UniversalLink/UniversalLink.jsx +34 -23
  335. package/src/customizations/volto/components/manage/Widgets/ObjectBrowserWidget.jsx +1 -1
  336. package/src/customizations/volto/components/manage/Widgets/RecurrenceWidget/EndField.jsx +18 -11
  337. package/src/customizations/volto/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +240 -117
  338. package/src/customizations/volto/components/theme/Error/Error.jsx +86 -0
  339. package/src/customizations/volto/components/theme/Footer/Footer.jsx +17 -16
  340. package/src/customizations/volto/components/theme/Navigation/Navigation.jsx +22 -7
  341. package/src/customizations/volto/components/theme/View/LinkView.jsx +81 -0
  342. package/src/customizations/volto/components/theme/View/ListingView.jsx +3 -3
  343. package/src/{components/ItaliaTheme/RemoveBodyClass/RemoveBodyClass.jsx → customizations/volto/helpers/BodyClass/BodyClass.jsx} +19 -25
  344. package/src/customizations/volto/helpers/FormValidation/FormValidation.js +11 -8
  345. package/src/customizations/volto/helpers/Html/Html.jsx +2 -2
  346. package/src/customizations/volto-form-block/components/Field.jsx +7 -0
  347. package/src/customizations/volto-form-block/components/FormResult.jsx +43 -9
  348. package/src/customizations/volto-form-block/components/FormView.jsx +45 -41
  349. package/src/customizations/volto-form-block/components/Sidebar.jsx +328 -0
  350. package/src/customizations/volto-form-block/components/View.jsx +398 -0
  351. package/src/customizations/volto-form-block/fieldSchema.js +519 -0
  352. package/src/customizations/volto-form-block/formSchema.js +255 -0
  353. package/src/helpers/EnhanceLink.js +7 -2
  354. package/src/helpers/ListingHelper.js +1 -1
  355. package/src/helpers/blocks.js +0 -6
  356. package/src/helpers/dates.js +30 -2
  357. package/src/helpers/files.js +11 -4
  358. package/src/helpers/files.test.js +90 -0
  359. package/src/helpers/getItemsByPath.js +23 -1
  360. package/src/helpers/images.js +77 -0
  361. package/src/helpers/index.js +11 -0
  362. package/src/helpers/url.js +22 -0
  363. package/src/helpers/usePaginatedItemsSection.hook.ts +63 -0
  364. package/src/overrideTranslations.jsx +73 -0
  365. package/src/theme/ItaliaTheme/Addons/volto-gdpr-privacy.scss +0 -18
  366. package/src/theme/ItaliaTheme/Blocks/_accordion.scss +5 -4
  367. package/src/theme/ItaliaTheme/Blocks/_alert.scss +6 -11
  368. package/src/theme/ItaliaTheme/Blocks/_cardWithImage.scss +7 -2
  369. package/src/theme/ItaliaTheme/Blocks/_cardWithSlideUpTextTemplate.scss +19 -1
  370. package/src/theme/ItaliaTheme/Blocks/_contacts.scss +10 -34
  371. package/src/theme/ItaliaTheme/Blocks/_countdown.scss +10 -1
  372. package/src/theme/ItaliaTheme/Blocks/_ctaBlock.scss +8 -10
  373. package/src/theme/ItaliaTheme/Blocks/_form.scss +38 -32
  374. package/src/theme/ItaliaTheme/Blocks/_gridBlock.scss +39 -23
  375. package/src/theme/ItaliaTheme/Blocks/_iconBlocks.scss +10 -51
  376. package/src/theme/ItaliaTheme/Blocks/_inEvidenceTemplate.scss +1 -1
  377. package/src/theme/ItaliaTheme/Blocks/_listing.scss +0 -3
  378. package/src/theme/ItaliaTheme/Blocks/_numbers.scss +5 -15
  379. package/src/theme/ItaliaTheme/Blocks/_photogallerytemplate.scss +2 -2
  380. package/src/theme/ItaliaTheme/Blocks/_search.scss +20 -2
  381. package/src/theme/ItaliaTheme/Blocks/_sliderTemplate.scss +4 -4
  382. package/src/theme/ItaliaTheme/Blocks/_subblocks-edit.scss +3 -1
  383. package/src/theme/ItaliaTheme/Blocks/common/_searchBlockFilters.scss +10 -2
  384. package/src/theme/ItaliaTheme/Components/_card.scss +27 -7
  385. package/src/theme/ItaliaTheme/Components/_cardLocationItem.scss +12 -0
  386. package/src/theme/ItaliaTheme/Components/_cardPersona.scss +21 -1
  387. package/src/theme/ItaliaTheme/Components/_metadata.scss +1 -0
  388. package/src/theme/ItaliaTheme/Components/_mobileMenu.scss +12 -16
  389. package/src/theme/ItaliaTheme/Components/_pager.scss +10 -0
  390. package/src/theme/ItaliaTheme/Print/_all_pages.scss +98 -15
  391. package/src/theme/ItaliaTheme/Print/_blocks.scss +915 -8
  392. package/src/theme/ItaliaTheme/Print/_page.scss +1 -7
  393. package/src/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_contacts.scss +3 -0
  394. package/src/theme/ItaliaTheme/Views/_common.scss +27 -0
  395. package/src/theme/ItaliaTheme/Views/_servizio.scss +6 -0
  396. package/src/theme/ItaliaTheme/Views/_slider.scss +4 -0
  397. package/src/theme/ItaliaTheme/Widgets/_blocksWidget.scss +37 -0
  398. package/src/theme/ItaliaTheme/Widgets/_reactSelect.scss +5 -1
  399. package/src/theme/ItaliaTheme/_ar.scss +3 -2
  400. package/src/theme/ItaliaTheme/_common.scss +11 -6
  401. package/src/theme/ItaliaTheme/_home.scss +4 -6
  402. package/src/theme/ItaliaTheme/_main.scss +51 -1
  403. package/src/theme/ItaliaTheme/_white-header.scss +1 -1
  404. package/src/theme/_cms-ui.scss +150 -31
  405. package/src/theme/_mixins.scss +13 -0
  406. package/src/theme/_site-variables.scss +5 -6
  407. package/src/theme/bootstrap-override/_bootstrap-italia-site.scss +3 -0
  408. package/src/theme/bootstrap-override/bootstrap/_print.scss +1 -0
  409. package/src/theme/bootstrap-override/bootstrap-italia/_avatar.scss +28 -0
  410. package/src/theme/bootstrap-override/bootstrap-italia/_buttons.scss +18 -0
  411. package/src/theme/bootstrap-override/bootstrap-italia/_card.scss +12 -2
  412. package/src/theme/bootstrap-override/bootstrap-italia/_focus.scss +23 -0
  413. package/src/theme/bootstrap-override/bootstrap-italia/_footer.scss +1 -1
  414. package/src/theme/bootstrap-override/bootstrap-italia/_form-select.scss +17 -0
  415. package/src/theme/bootstrap-override/bootstrap-italia/_forms.scss +7 -0
  416. package/src/theme/bootstrap-override/bootstrap-italia/_headercenter.scss +19 -5
  417. package/src/theme/extras/_modals.scss +13 -0
  418. package/src/theme/extras/_search.scss +5 -0
  419. package/src/theme/extras/_tables.scss +12 -13
  420. package/src/theme/site.scss +0 -3
  421. package/.github/workflows/slate.yml +0 -47
  422. package/.yarn/cache/braces-npm-3.0.2-782240b28a-e2a8e769a8.zip +0 -0
  423. package/.yarn/cache/cross-spawn-npm-7.0.3-e4ff3e65b3-671cc7c728.zip +0 -0
  424. package/.yarn/cache/fill-range-npm-7.0.1-b8b1817caa-cc283f4e65.zip +0 -0
  425. package/.yarn/cache/fsevents-patch-3340e2eb10-8.zip +0 -0
  426. package/.yarn/cache/micromatch-npm-4.0.5-cfab5d7669-02a17b671c.zip +0 -0
  427. package/.yarn/cache/nanoid-npm-3.3.6-e6d6ae7e71-7d0eda6570.zip +0 -0
  428. package/.yarn/cache/volto-blocks-widget-npm-3.4.0-a61b810f4f-355675359c.zip +0 -0
  429. package/.yarn/cache/volto-editablefooter-npm-5.1.1-a6579f67d9-c9a2e1f96f.zip +0 -0
  430. package/.yarn/cache/volto-gdpr-privacy-npm-2.2.0-6be0f74d53-8a93254251.zip +0 -0
  431. package/.yarn/cache/volto-multilingual-widget-npm-3.0.0-58c1ce4fb7-3fa0611e79.zip +0 -0
  432. package/.yarn/cache/volto-subsites-npm-4.0.0-17412b8f3b-9f943abc00.zip +0 -0
  433. package/src/customizations/volto/components/manage/BlockChooser/BlockChooserButton.jsx +0 -157
  434. package/src/customizations/volto/components/theme/View/disabled_View.jsx +0 -308
  435. package/src/customizations/volto/helpers/Api/disabled_Api.js +0 -131
  436. package/src/theme/ItaliaTheme/Components/_logo.scss +0 -10
  437. package/src/theme/ItaliaTheme/Print/_bandi.scss +0 -9
  438. package/src/theme/ItaliaTheme/Print/_news_items.scss +0 -19
  439. /package/src/components/ItaliaTheme/View/{__tests__/IncaricoView.test.jsx → __disabled_tests__/IncaricoView.test__disabled.jsx} +0 -0
@@ -68,7 +68,7 @@ const Edit = (props) => {
68
68
  {...otherProps}
69
69
  data={data}
70
70
  fieldName="text"
71
- selected={selectedField === 'text'}
71
+ selected={selected && selectedField === 'text'}
72
72
  block={block}
73
73
  placeholder={intl.formatMessage(messages.text)}
74
74
  setSelected={setSelectedField}
@@ -100,7 +100,7 @@ const Edit = (props) => {
100
100
  data={data}
101
101
  block={block}
102
102
  fieldName="countdown_text"
103
- selected={selectedField === 'countdown_text'}
103
+ selected={selected && selectedField === 'countdown_text'}
104
104
  placeholder={intl.formatMessage(messages.text)}
105
105
  setSelected={setSelectedField}
106
106
  focusPrevField={() => {
@@ -75,6 +75,11 @@ const Body = ({ data, id, inEditMode, path, onChangeBlock }) => {
75
75
  o: 'plone.app.querystring.operation.selection.any',
76
76
  v: ['Event'],
77
77
  },
78
+ {
79
+ i: 'rassegna',
80
+ o: 'plone.app.querystring.operation.boolean.isFalse',
81
+ v: '',
82
+ },
78
83
  ];
79
84
 
80
85
  [filterOne, filterTwo, filterThree].forEach((f) => {
@@ -98,9 +103,11 @@ const Body = ({ data, id, inEditMode, path, onChangeBlock }) => {
98
103
  getQueryStringResults(
99
104
  subsite ? flattenToAppURL(subsite['@id']) : '',
100
105
  {
101
- fullobjects: 1,
102
106
  query: query,
107
+ metadata_fields: '_all',
103
108
  b_size: b_size,
109
+ sort_order: 'ascending',
110
+ sort_on: 'start',
104
111
  },
105
112
  id + '_events_search',
106
113
  page,
@@ -175,6 +182,7 @@ const Body = ({ data, id, inEditMode, path, onChangeBlock }) => {
175
182
  <>
176
183
  {React.createElement(filterOne.widget.component, {
177
184
  ...filterOne.widget?.props,
185
+ blockID: id,
178
186
  id: 'filterOne',
179
187
  onChange: (filter, value) => {
180
188
  dispatchFilter({
@@ -188,6 +196,7 @@ const Body = ({ data, id, inEditMode, path, onChangeBlock }) => {
188
196
  {filterTwo &&
189
197
  React.createElement(filterTwo.widget?.component, {
190
198
  ...filterTwo.widget?.props,
199
+ blockID: id,
191
200
  id: 'filterTwo',
192
201
  onChange: (filter, value) =>
193
202
  dispatchFilter({
@@ -198,6 +207,7 @@ const Body = ({ data, id, inEditMode, path, onChangeBlock }) => {
198
207
  {filterThree &&
199
208
  React.createElement(filterThree.widget?.component, {
200
209
  ...filterThree.widget?.props,
210
+ blockID: id,
201
211
  id: 'filterThree',
202
212
  onChange: (filter, value) =>
203
213
  dispatchFilter({
@@ -211,6 +221,7 @@ const Body = ({ data, id, inEditMode, path, onChangeBlock }) => {
211
221
  icon={false}
212
222
  tag="button"
213
223
  className="my-2 my-lg-1"
224
+ type="submit"
214
225
  >
215
226
  {intl.formatMessage(messages.find)}
216
227
  </Button>
@@ -223,7 +234,11 @@ const Body = ({ data, id, inEditMode, path, onChangeBlock }) => {
223
234
  items?.length > 0 ? (
224
235
  <div className="mt-4" ref={resultsRef} aria-live="polite">
225
236
  <div className="block listing">
226
- <CardWithImageTemplate items={items} full_width={false} />
237
+ <CardWithImageTemplate
238
+ items={items}
239
+ full_width={false}
240
+ always_show_image={data.always_show_image}
241
+ />
227
242
  </div>
228
243
  {querystringResults.total > b_size && (
229
244
  <Pagination
@@ -36,6 +36,8 @@ const DefaultFilters = () => {
36
36
  const intl = useIntl();
37
37
  moment.locale(intl.locale);
38
38
  const subsite = useSelector((state) => state.subsite?.data);
39
+ const isSubsiteValid = subsite && Object.keys(subsite).length > 0;
40
+ const path = isSubsiteValid ? flattenToAppURL(subsite['@id']) : '/';
39
41
 
40
42
  return {
41
43
  text_filter: {
@@ -67,19 +69,10 @@ const DefaultFilters = () => {
67
69
  value: null,
68
70
  isSearchable: true,
69
71
  options: {
70
- dispatch: {
71
- path: subsite ? flattenToAppURL(subsite['@id']) : '/',
72
- portal_types: ['Venue'],
73
- fullobjects: 0,
74
- b_size: 10000,
75
- subrequests_name: 'venues',
76
- additionalParams: {
77
- sort_on: 'sortable_title',
78
- sort_order: 'ascending',
79
- },
80
- },
72
+ vocabulary: 'design.plone.vocabularies.event_location',
81
73
  placeholder: intl.formatMessage(messages.venues),
82
74
  },
75
+ optionsQuerySize: -1,
83
76
  },
84
77
  },
85
78
  query: (value, query) => {
@@ -99,12 +92,12 @@ const DefaultFilters = () => {
99
92
  component: DateFilter,
100
93
  props: {
101
94
  value: {
102
- startDate: moment().startOf('day'),
103
- endDate: moment().endOf('day'),
95
+ startDate: null,
96
+ endDate: null,
104
97
  },
105
98
  showClearDates: true,
106
- defaultStart: moment().startOf('day'),
107
- defaultEnd: moment().endOf('day'),
99
+ defaultStart: null,
100
+ defaultEnd: null,
108
101
  isOutsideRange: () => false,
109
102
  },
110
103
  },
@@ -75,6 +75,10 @@ const messages = defineMessages({
75
75
  id: 'searchBlock_show_default_results',
76
76
  defaultMessage: 'Di default, mostra i risultati',
77
77
  },
78
+ always_show_image: {
79
+ id: 'searchBlock_always_show_image',
80
+ defaultMessage: "Mostra l'immagine per tutti gli elementi",
81
+ },
78
82
  });
79
83
 
80
84
  const Sidebar = (props) => {
@@ -161,11 +165,18 @@ const Sidebar = (props) => {
161
165
  <CheckboxWidget
162
166
  id="show_default_results"
163
167
  title={props.intl.formatMessage(messages.show_default_results)}
164
- value={
165
- props.data.show_default_results
166
- ? props.data.show_default_results
167
- : false
168
- }
168
+ value={props.data.show_default_results}
169
+ onChange={(id, value) => {
170
+ props.onChangeBlock(props.block, {
171
+ ...props.data,
172
+ [id]: value,
173
+ });
174
+ }}
175
+ />
176
+ <CheckboxWidget
177
+ id="always_show_image"
178
+ title={props.intl.formatMessage(messages.always_show_image)}
179
+ value={props.data.always_show_image}
169
180
  onChange={(id, value) => {
170
181
  props.onChangeBlock(props.block, {
171
182
  ...props.data,
@@ -54,13 +54,13 @@ class EditBlock extends SubblockEdit {
54
54
 
55
55
  componentDidMount() {
56
56
  // eslint-disable-next-line no-unused-expressions
57
- this.subblock_ref?.current?.addEventListener('keydown', (e) => {
58
- if (e.keyCode === 13) {
59
- if (!(this.state.focusOn === 'text')) {
60
- this.setState({ focusOn: 'text' });
61
- }
62
- }
63
- });
57
+ // this.subblock_ref?.current?.addEventListener('keydown', (e) => {
58
+ // if (e.keyCode === 13) {
59
+ // if (!(this.state.focusOn === 'text')) {
60
+ // this.setState({ focusOn: 'text' });
61
+ // }
62
+ // }
63
+ // });
64
64
  }
65
65
  /**
66
66
  * Render method.
@@ -149,6 +149,11 @@ class EditBlock extends SubblockEdit {
149
149
  fieldName="text"
150
150
  selected={this.props.selected && this.state.focusOn === 'text'}
151
151
  setSelected={(f) => {
152
+ if (!this.props.selected) {
153
+ //a11y - per il focus del blocco da tastiera con navigazione inversa
154
+ this.props.onSubblockChangeFocus(this.props.index);
155
+ this.props.onSelectBlock(this.props.block);
156
+ }
152
157
  this.setState({ focusOn: f });
153
158
  }}
154
159
  onChangeBlock={(block, _data) => {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ViewBlock.
3
- * @module components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock
3
+ * @module components/ItaliaTheme/Blocks/IconBlocks/Block/ViewBlock
4
4
  */
5
5
 
6
6
  import React from 'react';
@@ -9,7 +9,6 @@ import { useIntl, defineMessages } from 'react-intl';
9
9
  import { UniversalLink } from '@plone/volto/components';
10
10
 
11
11
  import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme';
12
- import { RichTextRender } from 'design-comuni-plone-theme/components/ItaliaTheme/View';
13
12
  import { Card, CardBody, CardReadMore } from 'design-react-kit';
14
13
 
15
14
  import { TextBlockView } from '@plone/volto-slate/blocks/Text';
@@ -26,16 +25,7 @@ const messages = defineMessages({
26
25
  * @class ViewBlock
27
26
  * @extends Component
28
27
  */
29
- const ViewBlock = ({ data, isOpen, toggle, id, index }) => {
30
- const rawStringRenderer = {
31
- blocks: {
32
- unstyled: (children) => {
33
- const text = children.map((child) => child[1]).join(''); // Join the text elements
34
- return text.trim(); // Remove leading/trailing whitespace
35
- },
36
- },
37
- };
38
-
28
+ const ViewBlock = ({ data, isOpen, toggle, id, index, blockHasTitle }) => {
39
29
  const intl = useIntl();
40
30
 
41
31
  return (
@@ -48,11 +38,15 @@ const ViewBlock = ({ data, isOpen, toggle, id, index }) => {
48
38
  <CardBody tag="div">
49
39
  {data.icon?.length > 0 && (
50
40
  <div className="iconblock-icon">
51
- <Icon icon={data.icon} aria-hidden={true} />
41
+ <Icon icon={data.icon} aria-hidden={true} title={data.title} />
52
42
  </div>
53
43
  )}
54
44
 
55
- {data.title && <div className="iconblock-title">{data.title}</div>}
45
+ {data.title && (
46
+ <div className="iconblock-title">
47
+ {blockHasTitle ? <h3>{data.title}</h3> : data.title}
48
+ </div>
49
+ )}
56
50
  {data.text && (
57
51
  <div className="iconblock-text">
58
52
  <TextBlockView data={{ value: data.text }} />
@@ -52,7 +52,10 @@ class Edit extends SubblocksEdit {
52
52
  UNSAFE_componentWillReceiveProps(newProps) {
53
53
  if (newProps.selected) {
54
54
  if (!this.props.selected) {
55
- this.setState({ selectedField: 'title' });
55
+ if (!this.state.selectedField && this.state.subIndexSelected < 0) {
56
+ //a11y - test subIndexSelected<0 per gestire il focus con navigazione da tastiera al contrario (dal blocco successivo a questo blocco)
57
+ this.setState({ selectedField: 'title' });
58
+ }
56
59
  }
57
60
  } else {
58
61
  this.setState({ selectedField: null });
@@ -121,7 +124,11 @@ class Edit extends SubblocksEdit {
121
124
 
122
125
  return (
123
126
  <div className="public-ui" tabIndex="-1" ref={this.nodeF}>
124
- <div className="full-width section py-5">
127
+ <div
128
+ className="full-width section py-5"
129
+ role="form"
130
+ aria-label={this.props.blocksConfig[this.props.type].title}
131
+ >
125
132
  {this.props.data.background?.[0] ? (
126
133
  <div className="background-image">
127
134
  <Image
@@ -151,6 +158,10 @@ class Edit extends SubblocksEdit {
151
158
  selectedField: f,
152
159
  subIndexSelected: -1,
153
160
  });
161
+ if (!this.props.selected) {
162
+ //a11y - per il focus del blocco da tastiera
163
+ this.props.onSelectBlock(this.props.block);
164
+ }
154
165
  }}
155
166
  placeholder={this.props.intl.formatMessage(messages.title)}
156
167
  focusNextField={() => {
@@ -200,7 +211,10 @@ class Edit extends SubblocksEdit {
200
211
  isLast={subindex === this.state.subblocks?.length - 1}
201
212
  openObjectBrowser={this.props.openObjectBrowser}
202
213
  onFocusPreviousBlock={() => {
203
- this.setState({ selectedField: 'description' });
214
+ this.setState({
215
+ selectedField: 'description',
216
+ subIndexSelected: -1,
217
+ });
204
218
  }}
205
219
  />
206
220
  </Col>
@@ -40,7 +40,11 @@ const IconsBlockView = ({ data, block }) => {
40
40
  )}
41
41
  <Container className="px-md-4">
42
42
  <div className="block-header">
43
- {data.title && <div className="title">{data.title}</div>}
43
+ {data.title && (
44
+ <div className="title">
45
+ <h2>{data.title}</h2>
46
+ </div>
47
+ )}
44
48
  {data.description && (
45
49
  <div className="description">
46
50
  <TextBlockView data={{ value: data.description }} />
@@ -55,6 +59,7 @@ const IconsBlockView = ({ data, block }) => {
55
59
  key={index}
56
60
  id={id}
57
61
  index={index}
62
+ blockHasTitle={!!data.title}
58
63
  />
59
64
  </Col>
60
65
  ))}
@@ -51,14 +51,17 @@ const AttachmentCardTemplate = ({
51
51
  <div className="card-wrapper card-teaser-wrapper card-teaser-wrapper-equal card-teaser-block-3 mb-3">
52
52
  {items.map((item, index) => {
53
53
  let itemUrl = { ...item };
54
- if (item['@type'] === 'File') {
54
+ //la parte qui sotto commentata non serve perchè gestisce gia tutto UniversalLink e in view si vedrebbe /@@download/file duplicato nell url
55
+ if (
56
+ item['@type'] === 'File' &&
57
+ item?.mime_type === 'application/pdf'
58
+ ) {
55
59
  itemUrl = {
56
60
  ...item,
57
61
  file: item,
58
- '@id':
59
- show_pdf_preview && item?.mime_type === 'application/pdf'
60
- ? item?.['@id'] + '/@@display-file/file'
61
- : item?.['@id'] + '/@@download/file',
62
+ '@id': show_pdf_preview
63
+ ? item?.['@id'] + '/@@display-file/file'
64
+ : item?.['@id'] + '/@@download/file',
62
65
  };
63
66
  }
64
67
 
@@ -85,6 +88,7 @@ const AttachmentCardTemplate = ({
85
88
  item={!isEditMode ? itemUrl : null}
86
89
  href={isEditMode ? '#' : null}
87
90
  data-element={id_lighthouse}
91
+ download={!show_pdf_preview}
88
92
  >
89
93
  {item.title || item.id}
90
94
  </UniversalLink>
@@ -21,6 +21,7 @@ import {
21
21
  getCalendarDate,
22
22
  getEventRecurrenceMore,
23
23
  getComponentWithFallback,
24
+ contentHasImage,
24
25
  } from 'design-comuni-plone-theme/helpers';
25
26
  import { getCategory } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Listing/Commons/utils';
26
27
 
@@ -31,6 +32,7 @@ import {
31
32
  ListingImage,
32
33
  ListingText,
33
34
  CardPersona,
35
+ RassegnaInfo,
34
36
  } from 'design-comuni-plone-theme/components/ItaliaTheme';
35
37
 
36
38
  const CardWithImageDefault = (props) => {
@@ -60,10 +62,10 @@ const CardWithImageDefault = (props) => {
60
62
  : getEventRecurrenceMore(item, isEditMode);
61
63
  const listingText = show_description ? <ListingText item={item} /> : null;
62
64
 
63
- const image = ListingImage({ item, showTitleAttr: false });
64
-
65
- const showImage =
66
- (index < imagesToShow || always_show_image) && image != null;
65
+ const showImage = contentHasImage(
66
+ item,
67
+ index < imagesToShow || always_show_image,
68
+ );
67
69
  const category = getCategory(item, show_type, show_section, props);
68
70
  const topics = show_topics ? item.tassonomia_argomenti : null;
69
71
 
@@ -71,6 +73,8 @@ const CardWithImageDefault = (props) => {
71
73
  name: 'BlockExtraTags',
72
74
  dependencies: ['CardWithImageDefault', item['@type']],
73
75
  }).component;
76
+ const isEventAppointment =
77
+ item?.parent?.['@type'] === 'Event' && item?.['@type'] === 'Event';
74
78
 
75
79
  return (
76
80
  <>
@@ -102,7 +106,7 @@ const CardWithImageDefault = (props) => {
102
106
  })}
103
107
  >
104
108
  <div className="img-responsive img-responsive-panoramic">
105
- <figure className="img-wrapper">{image}</figure>
109
+ <ListingImage item={item} />
106
110
  {item['@type'] === 'Event' && (
107
111
  <CardCalendar
108
112
  start={item.start}
@@ -119,7 +123,12 @@ const CardWithImageDefault = (props) => {
119
123
  <ListingCategory category={category} item={item} />
120
124
  </CardCategory>
121
125
  )}
122
- <CardTitle tag="h3">
126
+ <CardTitle
127
+ tag="h3"
128
+ className={`${
129
+ isEventAppointment ? 'rassegna-appointment-title' : ''
130
+ }`}
131
+ >
123
132
  <UniversalLink
124
133
  item={!isEditMode ? item : null}
125
134
  href={isEditMode ? '#' : ''}
@@ -129,6 +138,7 @@ const CardWithImageDefault = (props) => {
129
138
  {item.title || item.id}
130
139
  </UniversalLink>
131
140
  </CardTitle>
141
+ {isEventAppointment && <RassegnaInfo eventoPadre={item.parent} />}
132
142
  {listingText && (
133
143
  <CardText
134
144
  className={cx('', {
@@ -141,7 +151,7 @@ const CardWithImageDefault = (props) => {
141
151
  <BlockExtraTags {...props} item={item} itemIndex={index} />
142
152
  {topics?.length > 0 && (
143
153
  <div
144
- className={cx('', {
154
+ className={cx('card-with-image-additional-links', {
145
155
  'mb-3': eventRecurrenceMore,
146
156
  })}
147
157
  >
@@ -69,17 +69,13 @@ const CardWithSlideUpTextTemplate = (props) => {
69
69
  }).component;
70
70
 
71
71
  return (
72
- <UniversalLink
73
- item={!isEditMode ? item : null}
74
- href={isEditMode ? '#' : null}
72
+ <div
73
+ className="listing-item box bg-img"
75
74
  style={
76
75
  image && {
77
76
  backgroundImage: `url(${image})`,
78
77
  }
79
78
  }
80
- className="listing-item box bg-img"
81
- key={index}
82
- data-element={id_lighthouse}
83
79
  >
84
80
  <div className="bg-gradient"></div>
85
81
  {(category || date) && (
@@ -89,14 +85,24 @@ const CardWithSlideUpTextTemplate = (props) => {
89
85
  {date}
90
86
  </div>
91
87
  )}
92
- <h3
93
- className={cx('title', {
94
- ellipsis: title.length > 50,
88
+ <UniversalLink
89
+ item={!isEditMode ? item : null}
90
+ href={isEditMode ? '#' : null}
91
+ key={index}
92
+ data-element={id_lighthouse}
93
+ className={cx('title-link', {
94
+ 'auto-margin-link': !category && !date,
95
95
  })}
96
- title={title.length > 50 ? title : undefined}
97
96
  >
98
- {title.substring(0, 50)}
99
- </h3>
97
+ <h3
98
+ className={cx('title', {
99
+ ellipsis: title.length > 50,
100
+ })}
101
+ title={title.length > 50 ? title : undefined}
102
+ >
103
+ {title.substring(0, 50)}
104
+ </h3>
105
+ </UniversalLink>
100
106
  <div className="box-slide-up">
101
107
  {show_description && item.description && (
102
108
  <p>{item.description}</p>
@@ -111,7 +117,12 @@ const CardWithSlideUpTextTemplate = (props) => {
111
117
  className="justify-content-end"
112
118
  />
113
119
  </div>
114
- </UniversalLink>
120
+ <UniversalLink
121
+ item={!isEditMode ? item : null}
122
+ className="card-link"
123
+ aria-hidden="true"
124
+ ></UniversalLink>
125
+ </div>
115
126
  );
116
127
  })}
117
128
  </div>
@@ -84,7 +84,7 @@ export const CardCalendar = ({ start, end, recurrence, rrule }) => {
84
84
  } else if (recurrenceDates) {
85
85
  let dateFormat = 'DD/MM';
86
86
  if (
87
- !recurrenceDates?.recurrenceStart.isSame(
87
+ !recurrenceDates?.recurrenceStart?.isSame(
88
88
  recurrenceDates?.recurrenceEnd,
89
89
  'year',
90
90
  )
@@ -1,38 +1,83 @@
1
+ import { UniversalLink } from '@plone/volto/components';
1
2
  import DefaultImageSVG from '@plone/volto/components/manage/Blocks/Listing/default-image.svg';
2
3
  import { flattenToAppURL } from '@plone/volto/helpers';
4
+ import { contentHasImage } from 'design-comuni-plone-theme/helpers';
3
5
  import config from '@plone/volto/registry';
4
6
 
7
+ const ListingImageWrapper = ({ children, item, noWrapLink }) => {
8
+ return noWrapLink ? (
9
+ children
10
+ ) : (
11
+ <UniversalLink item={item} className="img-wrapper">
12
+ {children}
13
+ </UniversalLink>
14
+ );
15
+ };
16
+
5
17
  const ListingImage = ({
6
18
  item = {},
7
19
  loading = 'lazy',
8
20
  showDefault = false,
9
21
  className = 'listing-image',
10
22
  responsive = true,
11
- showTitleAttr = true,
12
23
  sizes = '(max-width:320px) 200px, (max-width:425px) 300px, (max-width:767px) 500px, 410px',
24
+ noWrapLink = false,
13
25
  ...imageProps
14
26
  }) => {
27
+ if (!contentHasImage(item) && !imageProps?.image_field) {
28
+ if (showDefault) {
29
+ return (
30
+ <ListingImageWrapper item={item} noWrapLink={noWrapLink}>
31
+ <img
32
+ src={DefaultImageSVG}
33
+ alt=""
34
+ sizes={sizes}
35
+ aria-hidden={true}
36
+ role="presentation"
37
+ className="listing-image responsive"
38
+ style={{
39
+ minHeight: 'unset',
40
+ height: '100%',
41
+ }}
42
+ />
43
+ </ListingImageWrapper>
44
+ );
45
+ } else return null;
46
+ }
15
47
  const Image = config.getComponent({ name: 'Image' }).component;
48
+
49
+ //Verifies if the item has a preview image or an header image
50
+ const showTitleAttr = !!(item.hasPreviewImage && item.preview_caption);
51
+
52
+ //Verifies with caption to show as alt and title text
53
+ const imageCaption =
54
+ item.hasPreviewImage && item.preview_caption ? item.preview_caption : null;
55
+
16
56
  let commonImageProps = {
17
57
  item,
18
- 'aria-hidden': true,
19
- alt: imageProps.alt ?? '',
20
- role: 'presentation',
58
+ 'aria-hidden': imageProps.alt || item.title ? false : true,
59
+ alt: imageProps.alt ?? imageCaption ?? '',
60
+ role: imageProps.alt || item.title ? '' : 'presentation',
21
61
  className,
22
62
  loading,
23
63
  responsive,
24
64
  sizes,
25
65
  ...imageProps,
26
66
  };
27
- if (showTitleAttr)
28
- commonImageProps = { ...commonImageProps, title: item.title };
29
- // photogallery needs to check for null image
30
- // https://stackoverflow.com/questions/33136399/is-there-a-way-to-tell-if-reactelement-renders-null
31
- const image = Image(commonImageProps);
32
- if (image === null)
33
- return showDefault ? <img src={DefaultImageSVG} alt="" /> : null;
34
-
35
- return image;
67
+
68
+ // show title attribute if preview_caption or image_caption is present for the alt text
69
+ if (showTitleAttr) {
70
+ commonImageProps = {
71
+ ...commonImageProps,
72
+ title: imageCaption,
73
+ };
74
+ }
75
+
76
+ return (
77
+ <ListingImageWrapper item={item} noWrapLink={noWrapLink}>
78
+ <Image {...commonImageProps} />
79
+ </ListingImageWrapper>
80
+ );
36
81
  };
37
82
 
38
83
  export const getListingImageBackground = (item = {}, size = 'listing') => {
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { defineMessages, useIntl } from 'react-intl';
3
+ import { UniversalLink } from '@plone/volto/components';
4
+
5
+ const RassegnaInfo = ({ eventoPadre }) => {
6
+ const intl = useIntl();
7
+ return (
8
+ <div className="rassegna-info mb-3 mt-1">
9
+ <span className="rassegna-label">
10
+ {intl.formatMessage(messages.rassegna_label)}
11
+ </span>
12
+ <span className="rassegna-name">
13
+ <UniversalLink href={eventoPadre['@id']}>
14
+ {eventoPadre.title}
15
+ </UniversalLink>
16
+ </span>
17
+ </div>
18
+ );
19
+ };
20
+
21
+ const messages = defineMessages({
22
+ rassegna_label: {
23
+ id: 'rassegna_label',
24
+ defaultMessage: 'Rassegna:',
25
+ },
26
+ });
27
+
28
+ export default RassegnaInfo;