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.
- package/.github/workflows/main.yml +17 -17
- package/.github/workflows/{themes.yml → npm.yml} +22 -3
- package/.github/workflows/prs.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/.github/workflows/{performance.yml → withnewsletter.yml} +12 -12
- package/.release-it.json +2 -1
- package/.yarn/cache/@formatjs-ecma402-abstract-npm-1.18.2-281c9afdd0-c664056cca.zip +0 -0
- package/.yarn/cache/@formatjs-fast-memoize-npm-2.2.0-4a46a61b8b-8697fe72a7.zip +0 -0
- package/.yarn/cache/@formatjs-icu-messageformat-parser-npm-2.7.6-59cd895220-d537253cbf.zip +0 -0
- package/.yarn/cache/@formatjs-icu-skeleton-parser-npm-1.8.0-0f1fd4bf3f-85ca45148a.zip +0 -0
- package/.yarn/cache/@formatjs-intl-localematcher-npm-0.5.4-e30cfcd8fd-a0af57874f.zip +0 -0
- package/.yarn/cache/@internationalized-date-npm-3.5.3-435a424ba4-e3b011b587.zip +0 -0
- package/.yarn/cache/@internationalized-message-npm-3.1.3-ed0b43d16d-76b7aadad0.zip +0 -0
- package/.yarn/cache/@internationalized-number-npm-3.5.2-0f0b803d0d-b622849a6c.zip +0 -0
- package/.yarn/cache/@internationalized-string-npm-3.2.2-dc233d6c2e-32d5944f0a.zip +0 -0
- 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
- package/.yarn/cache/@plone-components-npm-2.0.0-alpha.7-ae15679e71-6eb35f5ef6.zip +0 -0
- package/.yarn/cache/@react-aria-breadcrumbs-npm-3.5.12-4df37e0505-19c473c624.zip +0 -0
- package/.yarn/cache/@react-aria-button-npm-3.9.4-bcfdfa6d77-3644f5b504.zip +0 -0
- package/.yarn/cache/@react-aria-calendar-npm-3.5.7-4a24a3018a-08088c27ad.zip +0 -0
- package/.yarn/cache/@react-aria-checkbox-npm-3.14.2-ec0875b197-33c280dbaa.zip +0 -0
- package/.yarn/cache/@react-aria-color-npm-3.0.0-beta.32-b69a571afd-fcaa145f2d.zip +0 -0
- package/.yarn/cache/@react-aria-combobox-npm-3.9.0-9d01e3bcc8-ebc3aa2523.zip +0 -0
- package/.yarn/cache/@react-aria-datepicker-npm-3.10.0-b44d40522c-b5b3226e0e.zip +0 -0
- package/.yarn/cache/@react-aria-dialog-npm-3.5.13-fd75d2058e-b03586c90b.zip +0 -0
- package/.yarn/cache/@react-aria-dnd-npm-3.6.0-085417ff5c-da39c859dc.zip +0 -0
- package/.yarn/cache/@react-aria-focus-npm-3.17.0-a0d6fd01c9-bac778f7f9.zip +0 -0
- package/.yarn/cache/@react-aria-form-npm-3.0.4-1f761ca8f4-97a8f25e7b.zip +0 -0
- package/.yarn/cache/@react-aria-grid-npm-3.9.0-cdd984835d-c3841b238b.zip +0 -0
- package/.yarn/cache/@react-aria-gridlist-npm-3.8.0-40b98ff740-04ab1cccee.zip +0 -0
- package/.yarn/cache/@react-aria-i18n-npm-3.11.0-3bd97ed4c6-c4c7c7bd16.zip +0 -0
- package/.yarn/cache/@react-aria-interactions-npm-3.21.2-c6fe2e70fd-df7ca376b1.zip +0 -0
- package/.yarn/cache/@react-aria-label-npm-3.7.7-39b24fbd65-bfa2ec757c.zip +0 -0
- package/.yarn/cache/@react-aria-link-npm-3.7.0-cf388c071e-0af089b4b6.zip +0 -0
- package/.yarn/cache/@react-aria-listbox-npm-3.12.0-c9a3fcfdc1-2591d78997.zip +0 -0
- package/.yarn/cache/@react-aria-live-announcer-npm-3.3.3-46433149f6-501e772dba.zip +0 -0
- package/.yarn/cache/@react-aria-menu-npm-3.14.0-6fa31f531d-7f716c6ef9.zip +0 -0
- package/.yarn/cache/@react-aria-meter-npm-3.4.12-2821308fcd-a344cbb3df.zip +0 -0
- package/.yarn/cache/@react-aria-numberfield-npm-3.11.2-09acd47715-4e86800c8a.zip +0 -0
- package/.yarn/cache/@react-aria-overlays-npm-3.22.0-90340dac2d-bc2a4ed89d.zip +0 -0
- package/.yarn/cache/@react-aria-progress-npm-3.4.12-dfcbd6cd8f-3ca779f189.zip +0 -0
- package/.yarn/cache/@react-aria-radio-npm-3.10.3-94cedc9974-62cc213b68.zip +0 -0
- package/.yarn/cache/@react-aria-searchfield-npm-3.7.4-aaf2343364-ca4bc43633.zip +0 -0
- package/.yarn/cache/@react-aria-select-npm-3.14.4-36c0aabf5a-7b091a7a9c.zip +0 -0
- package/.yarn/cache/@react-aria-selection-npm-3.18.0-ac9a672791-58d96d02cd.zip +0 -0
- package/.yarn/cache/@react-aria-separator-npm-3.3.12-cba989b17a-972f038c36.zip +0 -0
- package/.yarn/cache/@react-aria-slider-npm-3.7.7-ed4b28f711-3d4b8c88cc.zip +0 -0
- package/.yarn/cache/@react-aria-spinbutton-npm-3.6.4-1361ae7900-d3df661c3b.zip +0 -0
- package/.yarn/cache/@react-aria-ssr-npm-3.9.3-83f9d6a628-9bbc8fea4a.zip +0 -0
- package/.yarn/cache/@react-aria-switch-npm-3.6.3-491c39fd33-754bdd8fe0.zip +0 -0
- package/.yarn/cache/@react-aria-table-npm-3.14.0-28948a50ad-8ce75e4b03.zip +0 -0
- package/.yarn/cache/@react-aria-tabs-npm-3.9.0-06e5f74497-1460c136f1.zip +0 -0
- package/.yarn/cache/@react-aria-tag-npm-3.4.0-1910b576b8-1fcd4068af.zip +0 -0
- package/.yarn/cache/@react-aria-textfield-npm-3.14.4-1c110be229-b9ba98a86e.zip +0 -0
- package/.yarn/cache/@react-aria-toggle-npm-3.10.3-93811531bc-a54c83da54.zip +0 -0
- package/.yarn/cache/@react-aria-toolbar-npm-3.0.0-beta.4-8a6d41e05d-ae6fc5f49a.zip +0 -0
- package/.yarn/cache/@react-aria-tooltip-npm-3.7.3-e2a6890301-57743f4bbd.zip +0 -0
- package/.yarn/cache/@react-aria-tree-npm-3.0.0-alpha.0-48c591e08d-2829e3a0ef.zip +0 -0
- package/.yarn/cache/@react-aria-utils-npm-3.24.0-b754bf323d-0f0b530f06.zip +0 -0
- package/.yarn/cache/@react-aria-visually-hidden-npm-3.8.11-437e8b0708-5b0e770a9c.zip +0 -0
- package/.yarn/cache/@react-spectrum-utils-npm-3.11.6-38e10974c6-6089e7b70b.zip +0 -0
- package/.yarn/cache/@react-stately-calendar-npm-3.5.0-269efd3343-8395aaf34d.zip +0 -0
- package/.yarn/cache/@react-stately-checkbox-npm-3.6.4-a5dc7cc18a-89c38c8698.zip +0 -0
- package/.yarn/cache/@react-stately-collections-npm-3.10.6-669dc2c16b-bc81d37b45.zip +0 -0
- package/.yarn/cache/@react-stately-color-npm-3.6.0-aee6f5f342-2cf47e66f0.zip +0 -0
- package/.yarn/cache/@react-stately-combobox-npm-3.8.3-15ca98aa5c-dad97a15fb.zip +0 -0
- package/.yarn/cache/@react-stately-data-npm-3.11.3-cce895778d-dfc8d1ac9a.zip +0 -0
- package/.yarn/cache/@react-stately-datepicker-npm-3.9.3-fe9d43086a-c2fee2a75e.zip +0 -0
- package/.yarn/cache/@react-stately-dnd-npm-3.3.0-12dd68769d-afc0565ac1.zip +0 -0
- package/.yarn/cache/@react-stately-flags-npm-3.0.2-1ec044f94e-c2c19b6043.zip +0 -0
- package/.yarn/cache/@react-stately-form-npm-3.0.2-4bc729a2ea-9dfae19354.zip +0 -0
- package/.yarn/cache/@react-stately-grid-npm-3.8.6-907965ec36-313e63ff3b.zip +0 -0
- package/.yarn/cache/@react-stately-list-npm-3.10.4-77dd54c792-19325e9ab4.zip +0 -0
- package/.yarn/cache/@react-stately-menu-npm-3.7.0-90a0db1055-a108e379e4.zip +0 -0
- package/.yarn/cache/@react-stately-numberfield-npm-3.9.2-3a89f1bc42-96956b46c5.zip +0 -0
- package/.yarn/cache/@react-stately-overlays-npm-3.6.6-f8aa64654d-bc910b54b2.zip +0 -0
- package/.yarn/cache/@react-stately-radio-npm-3.10.3-071befd78c-f8d356f86a.zip +0 -0
- package/.yarn/cache/@react-stately-searchfield-npm-3.5.2-2f3fb6c209-43558cfff5.zip +0 -0
- package/.yarn/cache/@react-stately-select-npm-3.6.3-be5e642bfa-34fbe8501b.zip +0 -0
- package/.yarn/cache/@react-stately-selection-npm-3.15.0-8b7bc0694b-9edcb36fed.zip +0 -0
- package/.yarn/cache/@react-stately-slider-npm-3.5.3-562ef6c5cb-06d0a53b7c.zip +0 -0
- package/.yarn/cache/@react-stately-table-npm-3.11.7-5c9e0fd96a-58d51f98d6.zip +0 -0
- package/.yarn/cache/@react-stately-tabs-npm-3.6.5-146716fcbd-d1968d1417.zip +0 -0
- package/.yarn/cache/@react-stately-toggle-npm-3.7.3-37e71d088a-5c5e7b52fa.zip +0 -0
- package/.yarn/cache/@react-stately-tooltip-npm-3.4.8-fd6ef872a2-25cc3e3c24.zip +0 -0
- package/.yarn/cache/@react-stately-tree-npm-3.8.0-500b430bb7-19c17a7406.zip +0 -0
- package/.yarn/cache/@react-stately-utils-npm-3.10.0-066f48a98e-780dab3581.zip +0 -0
- package/.yarn/cache/@react-stately-virtualizer-npm-3.7.0-2e4e9a8821-c04424dfff.zip +0 -0
- package/.yarn/cache/@react-types-breadcrumbs-npm-3.7.4-0e067c6509-132d9d1b0a.zip +0 -0
- package/.yarn/cache/@react-types-button-npm-3.9.3-491d887431-a9da87eb7e.zip +0 -0
- package/.yarn/cache/@react-types-calendar-npm-3.4.5-9491b2662c-6e3b6e44df.zip +0 -0
- package/.yarn/cache/@react-types-checkbox-npm-3.8.0-fa41e40b34-9786fd8224.zip +0 -0
- package/.yarn/cache/@react-types-color-npm-3.0.0-beta.24-a1c15bc97a-894371276c.zip +0 -0
- package/.yarn/cache/@react-types-combobox-npm-3.11.0-e0a5e09d36-3bf3ad11d0.zip +0 -0
- package/.yarn/cache/@react-types-datepicker-npm-3.7.3-1c968964c9-1053453aee.zip +0 -0
- package/.yarn/cache/@react-types-dialog-npm-3.5.9-037d2817d8-efeb8dc70e.zip +0 -0
- package/.yarn/cache/@react-types-form-npm-3.7.3-faea9d8969-e88a1a4097.zip +0 -0
- package/.yarn/cache/@react-types-grid-npm-3.2.5-47670b811f-e3588328cf.zip +0 -0
- package/.yarn/cache/@react-types-link-npm-3.5.4-44b62607b6-5d7555e036.zip +0 -0
- package/.yarn/cache/@react-types-listbox-npm-3.4.8-2e0a7f4dea-31e7b4c8b1.zip +0 -0
- package/.yarn/cache/@react-types-menu-npm-3.9.8-a4a0f57423-d5fb6d99bc.zip +0 -0
- package/.yarn/cache/@react-types-meter-npm-3.4.0-768a873170-cc30fd4745.zip +0 -0
- package/.yarn/cache/@react-types-numberfield-npm-3.8.2-a842f6619d-e8ed43b08f.zip +0 -0
- package/.yarn/cache/@react-types-overlays-npm-3.8.6-78e91b1a37-8efb3c2569.zip +0 -0
- package/.yarn/cache/@react-types-progress-npm-3.5.3-27066d6e69-d13f2db5c3.zip +0 -0
- package/.yarn/cache/@react-types-radio-npm-3.8.0-5d03b4b24f-f868f13ff2.zip +0 -0
- package/.yarn/cache/@react-types-searchfield-npm-3.5.4-9a6cb6c41b-806f97f5d6.zip +0 -0
- package/.yarn/cache/@react-types-select-npm-3.9.3-436aaa190f-b3db4acb66.zip +0 -0
- package/.yarn/cache/@react-types-shared-npm-3.23.0-1952004986-aa3507ef30.zip +0 -0
- package/.yarn/cache/@react-types-slider-npm-3.7.2-369a50984c-fcdafa3511.zip +0 -0
- package/.yarn/cache/@react-types-switch-npm-3.5.2-19ff24a621-e8caae2da6.zip +0 -0
- package/.yarn/cache/@react-types-table-npm-3.9.4-0afc8754dd-80dae2adfe.zip +0 -0
- package/.yarn/cache/@react-types-tabs-npm-3.3.6-047a1fd9c3-69d89f3c5c.zip +0 -0
- package/.yarn/cache/@react-types-textfield-npm-3.9.2-2bd9f93005-9102b983c5.zip +0 -0
- package/.yarn/cache/@react-types-tooltip-npm-3.4.8-8d81ea0e23-a3122729eb.zip +0 -0
- package/.yarn/cache/@swc-helpers-npm-0.4.14-f806c3fb16-273fd3f3fc.zip +0 -0
- package/.yarn/cache/@swc-helpers-npm-0.4.36-507abd5d2a-20b9f021a9.zip +0 -0
- package/.yarn/cache/@swc-helpers-npm-0.5.11-94bd1e1b3e-5d85e641d9.zip +0 -0
- package/.yarn/cache/braces-npm-3.0.3-582c14023c-b95aa0b3bd.zip +0 -0
- package/.yarn/cache/client-only-npm-0.0.1-07d3e9505c-0c16bf660d.zip +0 -0
- package/.yarn/cache/clsx-npm-2.1.1-96125b98be-acd3e1ab9d.zip +0 -0
- package/.yarn/cache/cross-spawn-npm-7.0.6-264bddf921-8d306efaca.zip +0 -0
- package/.yarn/cache/fill-range-npm-7.1.1-bf491486db-b4abfbca38.zip +0 -0
- package/.yarn/cache/intl-messageformat-npm-10.5.11-1feb0e2115-b5574447a0.zip +0 -0
- package/.yarn/cache/micromatch-npm-4.0.8-c9570e4aca-79920eb634.zip +0 -0
- package/.yarn/cache/nanoid-npm-3.3.8-d22226208b-dfe0adbc0c.zip +0 -0
- package/.yarn/cache/react-aria-components-npm-1.2.0-30040153be-43319158c8.zip +0 -0
- package/.yarn/cache/react-aria-npm-3.33.0-688afc3857-980f9da630.zip +0 -0
- package/.yarn/cache/react-stately-npm-3.31.0-9465d26d77-d59440e0a7.zip +0 -0
- package/.yarn/cache/use-sync-external-store-npm-1.2.2-7923c915e1-fe07c071c4.zip +0 -0
- package/.yarn/cache/volto-blocks-widget-npm-3.4.1-c4d451e2c2-4f5c183698.zip +0 -0
- package/.yarn/cache/{volto-dropdownmenu-npm-4.1.1-8db37e6495-81edb60075.zip → volto-dropdownmenu-npm-4.1.3-b44ee1c98b-5dc76c2ee7.zip} +0 -0
- package/.yarn/cache/volto-editablefooter-npm-5.1.7-483b4be25b-ad5642959b.zip +0 -0
- package/.yarn/cache/{volto-feedback-npm-0.3.0-6f555b6437-5d4fe03279.zip → volto-feedback-npm-0.6.1-0de05761ad-127b69de40.zip} +0 -0
- 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
- package/.yarn/cache/volto-gdpr-privacy-npm-2.2.12-fbc24c3b6f-ba1b9c0127.zip +0 -0
- package/.yarn/cache/volto-multilingual-widget-npm-3.2.1-6fcb25c017-c24fd5379c.zip +0 -0
- package/.yarn/cache/{volto-secondarymenu-npm-4.0.0-9684028dd3-cec2705740.zip → volto-secondarymenu-npm-4.1.1-f516c1891c-94eeac0bc4.zip} +0 -0
- package/.yarn/cache/volto-site-settings-npm-0.4.4-11da224a90-ef0c504b64.zip +0 -0
- package/.yarn/cache/{volto-slimheader-npm-0.1.1-6c4a32fae4-94bafa197c.zip → volto-slimheader-npm-0.1.2-8495cb2187-fb657c3274.zip} +0 -0
- package/.yarn/cache/{volto-subblocks-npm-2.0.0-5a53bcc26a-7e4774cd63.zip → volto-subblocks-npm-2.1.0-2f162a4b19-a1cc02ca26.zip} +0 -0
- package/.yarn/cache/{volto-subfooter-npm-3.0.0-bc1ad5b16c-c7619ac55e.zip → volto-subfooter-npm-3.1.1-57dfb2cf48-d03848013d.zip} +0 -0
- package/.yarn/cache/volto-subsites-npm-4.0.2-715672140c-77408b4ea1.zip +0 -0
- package/.yarn/cache/{volto-venue-npm-4.0.2-0c5b2ce94f-d6ebdb2e3d.zip → volto-venue-npm-4.1.1-d5be247928-f796d519ad.zip} +0 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +1619 -488
- package/Makefile +1 -1
- package/RELEASE.md +418 -9
- package/locales/de/LC_MESSAGES/volto.po +265 -16
- package/locales/en/LC_MESSAGES/volto.po +327 -78
- package/locales/es/LC_MESSAGES/volto.po +265 -16
- package/locales/fr/LC_MESSAGES/volto.po +265 -16
- package/locales/it/LC_MESSAGES/volto.po +268 -19
- package/locales/volto.pot +266 -17
- package/package.json +23 -17
- package/publiccode.yml +3 -3
- package/src/components/ImageWithErrors/ImageWithErrors.jsx +30 -0
- package/src/components/ItaliaTheme/AppExtras/GenericAppExtras.jsx +2 -8
- package/src/components/ItaliaTheme/AppExtras/SiteSettingsExtras.jsx +35 -0
- package/src/components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock.jsx +2 -1
- package/src/components/ItaliaTheme/Blocks/Accordion/Edit.jsx +59 -0
- package/src/components/ItaliaTheme/Blocks/Accordion/View.jsx +9 -0
- package/src/components/ItaliaTheme/Blocks/Alert/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/BottomBody.jsx +2 -2
- package/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx +4 -0
- package/src/components/ItaliaTheme/Blocks/CTABlock/Block.jsx +2 -2
- package/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx +1 -0
- package/src/components/ItaliaTheme/Blocks/Callout/Edit.jsx +2 -2
- package/src/components/ItaliaTheme/Blocks/Common/SearchFilters/DateFilter.jsx +3 -2
- package/src/components/ItaliaTheme/Blocks/Common/SearchFilters/SelectFilter.jsx +11 -3
- package/src/components/ItaliaTheme/Blocks/Common/SearchFilters/TextFilter.jsx +7 -1
- package/src/components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock.jsx +17 -15
- package/src/components/ItaliaTheme/Blocks/ContactsBlock/Edit.jsx +12 -6
- package/src/components/ItaliaTheme/Blocks/CountDown/Edit.jsx +2 -2
- package/src/components/ItaliaTheme/Blocks/EventSearch/Body.jsx +17 -2
- package/src/components/ItaliaTheme/Blocks/EventSearch/DefaultFilters.js +8 -15
- package/src/components/ItaliaTheme/Blocks/EventSearch/Sidebar.jsx +16 -5
- package/src/components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock.jsx +12 -7
- package/src/components/ItaliaTheme/Blocks/IconBlocks/Block/ViewBlock.jsx +8 -14
- package/src/components/ItaliaTheme/Blocks/IconBlocks/Edit.jsx +17 -3
- package/src/components/ItaliaTheme/Blocks/IconBlocks/View.jsx +6 -1
- package/src/components/ItaliaTheme/Blocks/Listing/AttachmentCardTemplate.jsx +9 -5
- package/src/components/ItaliaTheme/Blocks/Listing/CardWithImage/CardWithImageDefault.jsx +17 -7
- package/src/components/ItaliaTheme/Blocks/Listing/CardWithSlideUpTextTemplate.jsx +24 -13
- package/src/components/ItaliaTheme/Blocks/Listing/Commons/CardCalendar.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx +58 -13
- package/src/components/ItaliaTheme/Blocks/Listing/Commons/RassegnaInfo.jsx +28 -0
- package/src/components/ItaliaTheme/Blocks/Listing/CompleteBlockLinksTemplate.jsx +15 -10
- package/src/components/ItaliaTheme/Blocks/Listing/ContentInEvidenceTemplate.jsx +24 -10
- package/src/components/ItaliaTheme/Blocks/Listing/GridGalleryTemplate.jsx +4 -3
- package/src/components/ItaliaTheme/Blocks/Listing/InEvidenceTemplate.jsx +22 -9
- package/src/components/ItaliaTheme/Blocks/Listing/PhotogalleryTemplate.jsx +10 -8
- package/src/components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate.jsx +15 -1
- package/src/components/ItaliaTheme/Blocks/Listing/SimpleCard/Card/SimpleCardDefault.jsx +16 -2
- package/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx +12 -8
- package/src/components/ItaliaTheme/Blocks/Listing/SmallBlockLinksTemplate.jsx +19 -21
- package/src/components/ItaliaTheme/Blocks/NumbersBlock/Block/EditBlock.jsx +5 -6
- package/src/components/ItaliaTheme/Blocks/NumbersBlock/Edit.jsx +17 -3
- package/src/components/ItaliaTheme/Blocks/NumbersBlock/View.jsx +5 -1
- package/src/components/ItaliaTheme/Blocks/SearchSections/Body.jsx +1 -0
- package/src/components/ItaliaTheme/Blocks/Teaser/ItaliaTeaserBody.jsx +190 -0
- package/src/components/ItaliaTheme/Blocks/Teaser/schema.js +179 -0
- package/src/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Block.jsx +4 -2
- package/src/components/ItaliaTheme/Blocks/TextCard/SimpleCard/Edit.jsx +2 -2
- package/src/components/ItaliaTheme/Blocks/UOSearch/Body.jsx +10 -2
- package/src/components/ItaliaTheme/Blocks/UOSearch/Sidebar.jsx +16 -0
- package/src/components/ItaliaTheme/Blocks/__tests__/Accordion.test.jsx +0 -3
- package/src/components/ItaliaTheme/BrandText/BrandText.jsx +39 -7
- package/src/components/ItaliaTheme/BrandTextFooter/BrandTextFooter.jsx +31 -2
- package/src/components/ItaliaTheme/Breadcrumbs/Breadcrumbs.jsx +16 -8
- package/src/components/ItaliaTheme/Cards/CardCategory.jsx +2 -3
- package/src/components/ItaliaTheme/Cards/CardPersona.jsx +5 -8
- package/src/components/ItaliaTheme/CustomerSatisfaction/FeedbackForm.jsx +27 -23
- package/src/components/ItaliaTheme/CustomerSatisfaction/Steps/AnswersStep.jsx +1 -0
- package/src/components/ItaliaTheme/CustomerSatisfaction/Steps/CommentsStep.jsx +1 -0
- package/src/components/ItaliaTheme/Footer/FooterInfos.jsx +5 -4
- package/src/components/ItaliaTheme/Footer/FooterMain.jsx +4 -4
- package/src/components/ItaliaTheme/Footer/FooterSmall.jsx +10 -5
- package/src/components/ItaliaTheme/Header/HeaderCenter.jsx +5 -6
- package/src/components/ItaliaTheme/Header/HeaderSearch/HeaderSearch.jsx +9 -1
- package/src/components/ItaliaTheme/Header/HeaderSearch/SearchModal.jsx +21 -4
- package/src/components/ItaliaTheme/Header/HeaderSlim/HeaderSlim.jsx +32 -9
- package/src/components/ItaliaTheme/Header/HeaderSlim/LoginButton.jsx +1 -1
- package/src/components/ItaliaTheme/Header/HeaderSlim/TertiaryMenu.jsx +2 -2
- package/src/components/ItaliaTheme/Header/ParentSiteMenu.jsx +17 -2
- package/src/components/ItaliaTheme/Icons/DesignIcon.jsx +80 -29
- package/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx +2 -0
- package/src/components/ItaliaTheme/Icons/common/common.js +9 -8
- package/src/components/ItaliaTheme/LoginAgid/LoginAgid.jsx +2 -5
- package/src/components/ItaliaTheme/Logo/Logo.jsx +15 -7
- package/src/components/ItaliaTheme/LogoFooter/LogoFooter.jsx +11 -3
- package/src/components/ItaliaTheme/MegaMenu/MegaMenu.jsx +5 -1
- package/src/components/ItaliaTheme/Pagination/Pagination.jsx +5 -1
- package/src/components/ItaliaTheme/Pagination/PaginationItem.jsx +15 -1
- package/src/components/ItaliaTheme/ScrollToTop/ScrollToTop.jsx +0 -1
- package/src/components/ItaliaTheme/Search/Search.jsx +2 -3
- package/src/components/ItaliaTheme/SkipLinks/SkipLinks.jsx +21 -11
- package/src/components/ItaliaTheme/Slider/NextArrow.jsx +1 -1
- package/src/components/ItaliaTheme/Slider/PrevArrow.jsx +1 -1
- package/src/components/ItaliaTheme/Slider/SingleSlideWrapper.jsx +5 -2
- package/src/components/ItaliaTheme/Unauthorized/Unauthorized.jsx +2 -5
- package/src/components/ItaliaTheme/View/BandoView/BandoApprofondimenti.jsx +1 -1
- package/src/components/ItaliaTheme/View/BandoView/BandoView.jsx +19 -1
- package/src/components/ItaliaTheme/View/Commons/Actions.jsx +2 -2
- package/src/components/ItaliaTheme/View/Commons/Argument/ArgumentIcon.jsx +1 -1
- package/src/components/ItaliaTheme/View/Commons/Attachment.jsx +1 -1
- package/src/components/ItaliaTheme/View/Commons/BandoDates.jsx +27 -47
- package/src/components/ItaliaTheme/View/Commons/ContactsCard.jsx +2 -31
- package/src/components/ItaliaTheme/View/Commons/Dates.jsx +62 -28
- package/src/components/ItaliaTheme/View/Commons/Events.jsx +28 -27
- package/src/components/ItaliaTheme/View/Commons/Gallery.jsx +36 -28
- package/src/components/ItaliaTheme/View/Commons/GenericCard.jsx +14 -13
- package/src/components/ItaliaTheme/View/Commons/HelpBox.jsx +1 -1
- package/src/components/ItaliaTheme/View/Commons/LocationItem.jsx +15 -9
- package/src/components/ItaliaTheme/View/Commons/LocationsMap.jsx +4 -18
- package/src/components/ItaliaTheme/View/Commons/Module.jsx +22 -31
- package/src/components/ItaliaTheme/View/Commons/Modules.jsx +3 -1
- package/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx +7 -3
- package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeader.jsx +3 -4
- package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando.jsx +3 -0
- package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderDates.jsx +0 -10
- package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderEventDates.jsx +62 -14
- package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderTassonomiaArgomenti.jsx +4 -5
- package/src/components/ItaliaTheme/View/Commons/RelatedArticles.jsx +12 -1
- package/src/components/ItaliaTheme/View/Commons/RelatedItemInEvidence/RelatedItemInEvidence.jsx +14 -1
- package/src/components/ItaliaTheme/View/Commons/RelatedItems.jsx +11 -3
- package/src/components/ItaliaTheme/View/Commons/RenderBlocks.jsx +5 -2
- package/src/components/ItaliaTheme/View/Commons/Sharing.jsx +1 -1
- package/src/components/ItaliaTheme/View/Commons/SideMenu.jsx +11 -7
- package/src/components/ItaliaTheme/View/Commons/Sponsors.jsx +14 -10
- package/src/components/ItaliaTheme/View/Commons/VenuesSmall.jsx +13 -6
- package/src/components/ItaliaTheme/View/Commons/__tests__/Dates.test.jsx +1 -1
- package/src/components/ItaliaTheme/View/DocumentoView/DocumentoAccedereServizio.jsx +5 -8
- package/src/components/ItaliaTheme/View/DocumentoView/DocumentoView.jsx +20 -1
- package/src/components/ItaliaTheme/View/EventoView/EventoContatti.jsx +8 -7
- package/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno.jsx +1 -12
- package/src/components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno.jsx +1 -12
- package/src/components/ItaliaTheme/View/EventoView/EventoCosE.jsx +17 -2
- package/src/components/ItaliaTheme/View/EventoView/EventoOrganizzatoDa.jsx +38 -0
- package/src/components/ItaliaTheme/View/EventoView/EventoPatrocinatoDa.jsx +38 -0
- package/src/components/ItaliaTheme/View/EventoView/EventoUlterioriInformazioni.jsx +0 -22
- package/src/components/ItaliaTheme/View/EventoView/EventoView.jsx +20 -1
- package/src/components/ItaliaTheme/View/FAQ/FaqFolder/SearchBar.jsx +7 -0
- package/src/components/ItaliaTheme/View/IncaricoView/IncaricoView.jsx +47 -8
- package/src/components/ItaliaTheme/View/NewsItemView/NewsItemText.jsx +33 -10
- package/src/components/ItaliaTheme/View/NewsItemView/NewsItemView.jsx +19 -1
- package/src/components/ItaliaTheme/View/PageView/PageView.jsx +3 -0
- package/src/components/ItaliaTheme/View/PageView/Placeholder/HeaderEnd.jsx +6 -0
- package/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoView.jsx +15 -36
- package/src/components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoViewNoBlocks.jsx +14 -1
- package/src/components/ItaliaTheme/View/PersonaView/PersonaDocumenti.jsx +106 -0
- package/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx +85 -60
- package/src/components/ItaliaTheme/View/PersonaView/PersonaView.jsx +20 -1
- package/src/components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView.jsx +2 -2
- package/src/components/ItaliaTheme/View/ServizioView/ServizioAccedi.jsx +5 -1
- package/src/components/ItaliaTheme/View/ServizioView/ServizioCondizioni.jsx +5 -1
- package/src/components/ItaliaTheme/View/ServizioView/ServizioMetatag.jsx +9 -1
- package/src/components/ItaliaTheme/View/ServizioView/ServizioView.jsx +19 -2
- package/src/components/ItaliaTheme/View/UOView/UOMetadati.jsx +12 -0
- package/src/components/ItaliaTheme/View/UOView/UOServices.jsx +20 -2
- package/src/components/ItaliaTheme/View/UOView/UOView.jsx +23 -1
- package/src/components/ItaliaTheme/View/VenueView/VenueView.jsx +24 -11
- package/src/components/ItaliaTheme/View/VenueView/VenueWhere.jsx +1 -1
- package/src/components/ItaliaTheme/View/ViewUtils.jsx +1 -2
- package/src/components/ItaliaTheme/View/__tests__/ServizioTempiScadenze.test.jsx +0 -1
- package/src/components/ItaliaTheme/View/index.js +2 -0
- package/src/components/ItaliaTheme/index.js +1 -1
- package/src/components/ItaliaTheme/manage/Widgets/HtmlSlateWidget.jsx +4 -2
- package/src/components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm.jsx +2 -2
- package/src/components/SelectInput/SelectInput.jsx +10 -4
- package/src/components/TextInput.jsx +1 -0
- package/src/components/__tests__/FormValidation.test.js +142 -0
- package/src/config/Blocks/ListingOptions/attachmentCardTemplate.js +1 -1
- package/src/config/Blocks/blocks.js +4 -3
- package/src/config/Slate/Blockquote/index.js +7 -0
- package/src/config/Views/views.js +1 -0
- package/src/config/italiaConfig.js +81 -20
- package/src/customizations/volto/actions/vocabularies/vocabularies.js +102 -0
- package/src/customizations/volto/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm.jsx +1 -0
- package/src/customizations/volto/components/manage/Blocks/Listing/ListingBody.jsx +5 -0
- package/src/customizations/volto/components/manage/Blocks/Search/SearchBlockView.jsx +50 -11
- package/src/customizations/volto/components/manage/Blocks/Search/components/DateRangeFacet.jsx +16 -2
- package/src/customizations/volto/components/manage/Blocks/Search/components/SearchDetails.jsx +2 -3
- package/src/customizations/volto/components/manage/Blocks/Search/hocs/withSearch.jsx +6 -4
- package/src/customizations/volto/components/manage/Blocks/Search/layout/LeftColumnFacets.jsx +21 -17
- package/src/customizations/volto/components/manage/Blocks/Search/layout/RightColumnFacets.jsx +21 -17
- package/src/customizations/volto/components/manage/Blocks/Search/schema.js +16 -0
- package/src/customizations/volto/components/manage/Blocks/Teaser/Body.jsx +30 -0
- package/src/customizations/volto/components/manage/Blocks/Video/Body.jsx +6 -5
- package/src/customizations/volto/components/manage/Contents/ContentsUploadModal.jsx +375 -0
- package/src/customizations/volto/components/manage/Controlpanels/Groups/GroupsControlpanel.jsx +709 -0
- package/src/customizations/volto/components/manage/Controlpanels/Groups/RenderGroups.jsx +122 -0
- package/src/customizations/volto/components/manage/Diff/DiffField.jsx +2 -3
- package/src/customizations/volto/components/manage/UniversalLink/UniversalLink.jsx +34 -23
- package/src/customizations/volto/components/manage/Widgets/ObjectBrowserWidget.jsx +1 -1
- package/src/customizations/volto/components/manage/Widgets/RecurrenceWidget/EndField.jsx +18 -11
- package/src/customizations/volto/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +240 -117
- package/src/customizations/volto/components/theme/Error/Error.jsx +86 -0
- package/src/customizations/volto/components/theme/Footer/Footer.jsx +17 -16
- package/src/customizations/volto/components/theme/Navigation/Navigation.jsx +22 -7
- package/src/customizations/volto/components/theme/View/LinkView.jsx +81 -0
- package/src/customizations/volto/components/theme/View/ListingView.jsx +3 -3
- package/src/{components/ItaliaTheme/RemoveBodyClass/RemoveBodyClass.jsx → customizations/volto/helpers/BodyClass/BodyClass.jsx} +19 -25
- package/src/customizations/volto/helpers/FormValidation/FormValidation.js +11 -8
- package/src/customizations/volto/helpers/Html/Html.jsx +2 -2
- package/src/customizations/volto-form-block/components/Field.jsx +7 -0
- package/src/customizations/volto-form-block/components/FormResult.jsx +43 -9
- package/src/customizations/volto-form-block/components/FormView.jsx +45 -41
- package/src/customizations/volto-form-block/components/Sidebar.jsx +328 -0
- package/src/customizations/volto-form-block/components/View.jsx +398 -0
- package/src/customizations/volto-form-block/fieldSchema.js +519 -0
- package/src/customizations/volto-form-block/formSchema.js +255 -0
- package/src/helpers/EnhanceLink.js +7 -2
- package/src/helpers/ListingHelper.js +1 -1
- package/src/helpers/blocks.js +0 -6
- package/src/helpers/dates.js +30 -2
- package/src/helpers/files.js +11 -4
- package/src/helpers/files.test.js +90 -0
- package/src/helpers/getItemsByPath.js +23 -1
- package/src/helpers/images.js +77 -0
- package/src/helpers/index.js +11 -0
- package/src/helpers/url.js +22 -0
- package/src/helpers/usePaginatedItemsSection.hook.ts +63 -0
- package/src/overrideTranslations.jsx +73 -0
- package/src/theme/ItaliaTheme/Addons/volto-gdpr-privacy.scss +0 -18
- package/src/theme/ItaliaTheme/Blocks/_accordion.scss +5 -4
- package/src/theme/ItaliaTheme/Blocks/_alert.scss +6 -11
- package/src/theme/ItaliaTheme/Blocks/_cardWithImage.scss +7 -2
- package/src/theme/ItaliaTheme/Blocks/_cardWithSlideUpTextTemplate.scss +19 -1
- package/src/theme/ItaliaTheme/Blocks/_contacts.scss +10 -34
- package/src/theme/ItaliaTheme/Blocks/_countdown.scss +10 -1
- package/src/theme/ItaliaTheme/Blocks/_ctaBlock.scss +8 -10
- package/src/theme/ItaliaTheme/Blocks/_form.scss +38 -32
- package/src/theme/ItaliaTheme/Blocks/_gridBlock.scss +39 -23
- package/src/theme/ItaliaTheme/Blocks/_iconBlocks.scss +10 -51
- package/src/theme/ItaliaTheme/Blocks/_inEvidenceTemplate.scss +1 -1
- package/src/theme/ItaliaTheme/Blocks/_listing.scss +0 -3
- package/src/theme/ItaliaTheme/Blocks/_numbers.scss +5 -15
- package/src/theme/ItaliaTheme/Blocks/_photogallerytemplate.scss +2 -2
- package/src/theme/ItaliaTheme/Blocks/_search.scss +20 -2
- package/src/theme/ItaliaTheme/Blocks/_sliderTemplate.scss +4 -4
- package/src/theme/ItaliaTheme/Blocks/_subblocks-edit.scss +3 -1
- package/src/theme/ItaliaTheme/Blocks/common/_searchBlockFilters.scss +10 -2
- package/src/theme/ItaliaTheme/Components/_card.scss +27 -7
- package/src/theme/ItaliaTheme/Components/_cardLocationItem.scss +12 -0
- package/src/theme/ItaliaTheme/Components/_cardPersona.scss +21 -1
- package/src/theme/ItaliaTheme/Components/_metadata.scss +1 -0
- package/src/theme/ItaliaTheme/Components/_mobileMenu.scss +12 -16
- package/src/theme/ItaliaTheme/Components/_pager.scss +10 -0
- package/src/theme/ItaliaTheme/Print/_all_pages.scss +98 -15
- package/src/theme/ItaliaTheme/Print/_blocks.scss +915 -8
- package/src/theme/ItaliaTheme/Print/_page.scss +1 -7
- package/src/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_contacts.scss +3 -0
- package/src/theme/ItaliaTheme/Views/_common.scss +27 -0
- package/src/theme/ItaliaTheme/Views/_servizio.scss +6 -0
- package/src/theme/ItaliaTheme/Views/_slider.scss +4 -0
- package/src/theme/ItaliaTheme/Widgets/_blocksWidget.scss +37 -0
- package/src/theme/ItaliaTheme/Widgets/_reactSelect.scss +5 -1
- package/src/theme/ItaliaTheme/_ar.scss +3 -2
- package/src/theme/ItaliaTheme/_common.scss +11 -6
- package/src/theme/ItaliaTheme/_home.scss +4 -6
- package/src/theme/ItaliaTheme/_main.scss +51 -1
- package/src/theme/ItaliaTheme/_white-header.scss +1 -1
- package/src/theme/_cms-ui.scss +150 -31
- package/src/theme/_mixins.scss +13 -0
- package/src/theme/_site-variables.scss +5 -6
- package/src/theme/bootstrap-override/_bootstrap-italia-site.scss +3 -0
- package/src/theme/bootstrap-override/bootstrap/_print.scss +1 -0
- package/src/theme/bootstrap-override/bootstrap-italia/_avatar.scss +28 -0
- package/src/theme/bootstrap-override/bootstrap-italia/_buttons.scss +18 -0
- package/src/theme/bootstrap-override/bootstrap-italia/_card.scss +12 -2
- package/src/theme/bootstrap-override/bootstrap-italia/_focus.scss +23 -0
- package/src/theme/bootstrap-override/bootstrap-italia/_footer.scss +1 -1
- package/src/theme/bootstrap-override/bootstrap-italia/_form-select.scss +17 -0
- package/src/theme/bootstrap-override/bootstrap-italia/_forms.scss +7 -0
- package/src/theme/bootstrap-override/bootstrap-italia/_headercenter.scss +19 -5
- package/src/theme/extras/_modals.scss +13 -0
- package/src/theme/extras/_search.scss +5 -0
- package/src/theme/extras/_tables.scss +12 -13
- package/src/theme/site.scss +0 -3
- package/.github/workflows/slate.yml +0 -47
- package/.yarn/cache/braces-npm-3.0.2-782240b28a-e2a8e769a8.zip +0 -0
- package/.yarn/cache/cross-spawn-npm-7.0.3-e4ff3e65b3-671cc7c728.zip +0 -0
- package/.yarn/cache/fill-range-npm-7.0.1-b8b1817caa-cc283f4e65.zip +0 -0
- package/.yarn/cache/fsevents-patch-3340e2eb10-8.zip +0 -0
- package/.yarn/cache/micromatch-npm-4.0.5-cfab5d7669-02a17b671c.zip +0 -0
- package/.yarn/cache/nanoid-npm-3.3.6-e6d6ae7e71-7d0eda6570.zip +0 -0
- package/.yarn/cache/volto-blocks-widget-npm-3.4.0-a61b810f4f-355675359c.zip +0 -0
- package/.yarn/cache/volto-editablefooter-npm-5.1.1-a6579f67d9-c9a2e1f96f.zip +0 -0
- package/.yarn/cache/volto-gdpr-privacy-npm-2.2.0-6be0f74d53-8a93254251.zip +0 -0
- package/.yarn/cache/volto-multilingual-widget-npm-3.0.0-58c1ce4fb7-3fa0611e79.zip +0 -0
- package/.yarn/cache/volto-subsites-npm-4.0.0-17412b8f3b-9f943abc00.zip +0 -0
- package/src/customizations/volto/components/manage/BlockChooser/BlockChooserButton.jsx +0 -157
- package/src/customizations/volto/components/theme/View/disabled_View.jsx +0 -308
- package/src/customizations/volto/helpers/Api/disabled_Api.js +0 -131
- package/src/theme/ItaliaTheme/Components/_logo.scss +0 -10
- package/src/theme/ItaliaTheme/Print/_bandi.scss +0 -9
- package/src/theme/ItaliaTheme/Print/_news_items.scss +0 -19
- /package/src/components/ItaliaTheme/View/{__tests__/IncaricoView.test.jsx → __disabled_tests__/IncaricoView.test__disabled.jsx} +0 -0
package/package.json
CHANGED
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
"name": "design-comuni-plone-theme",
|
|
3
3
|
"description": "Volto Theme for Italia design guidelines",
|
|
4
4
|
"license": "GPL-v3",
|
|
5
|
-
"version": "12.
|
|
5
|
+
"version": "12.1.0",
|
|
6
6
|
"main": "src/index.js",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/RedTurtle/design-comuni-plone-theme"
|
|
10
|
+
},
|
|
7
11
|
"keywords": [
|
|
8
12
|
"volto-addon",
|
|
9
13
|
"volto",
|
|
@@ -32,7 +36,8 @@
|
|
|
32
36
|
"volto-querywidget-with-browser",
|
|
33
37
|
"@eeacms/volto-taxonomy",
|
|
34
38
|
"volto-feedback",
|
|
35
|
-
"volto-slimheader"
|
|
39
|
+
"volto-slimheader",
|
|
40
|
+
"volto-site-settings"
|
|
36
41
|
],
|
|
37
42
|
"scripts": {
|
|
38
43
|
"prepare": "husky install",
|
|
@@ -125,7 +130,7 @@
|
|
|
125
130
|
"@babel/plugin-proposal-throw-expressions": "7.18.6",
|
|
126
131
|
"@eeacms/volto-taxonomy": "^1.0.0",
|
|
127
132
|
"@loadable/babel-plugin": "5.13.2",
|
|
128
|
-
"@plone-collective/volto-sentry": "0.3.
|
|
133
|
+
"@plone-collective/volto-sentry": "0.3.1",
|
|
129
134
|
"bootstrap-italia": "2.6.1",
|
|
130
135
|
"classnames": "^2.3.2",
|
|
131
136
|
"design-react-kit": "5.0.0-1",
|
|
@@ -142,24 +147,25 @@
|
|
|
142
147
|
"typeface-lora": "0.0.72",
|
|
143
148
|
"typeface-roboto-mono": "0.0.75",
|
|
144
149
|
"typeface-titillium-web": "0.0.72",
|
|
145
|
-
"volto-blocks-widget": "3.4.
|
|
150
|
+
"volto-blocks-widget": "3.4.1",
|
|
146
151
|
"volto-data-grid-widget": "2.3.1",
|
|
147
|
-
"volto-dropdownmenu": "4.1.
|
|
148
|
-
"volto-editablefooter": "5.1.
|
|
149
|
-
"volto-feedback": "0.
|
|
150
|
-
"volto-form-block": "3.
|
|
151
|
-
"volto-gdpr-privacy": "2.2.
|
|
152
|
+
"volto-dropdownmenu": "4.1.3",
|
|
153
|
+
"volto-editablefooter": "5.1.7",
|
|
154
|
+
"volto-feedback": "0.6.1",
|
|
155
|
+
"volto-form-block": "3.10.0",
|
|
156
|
+
"volto-gdpr-privacy": "2.2.12",
|
|
152
157
|
"volto-google-analytics": "2.0.0",
|
|
153
|
-
"volto-multilingual-widget": "3.
|
|
158
|
+
"volto-multilingual-widget": "3.2.1",
|
|
154
159
|
"volto-querywidget-with-browser": "0.4.2",
|
|
155
160
|
"volto-rss-block": "3.0.0",
|
|
156
|
-
"volto-secondarymenu": "4.
|
|
157
|
-
"volto-
|
|
161
|
+
"volto-secondarymenu": "4.1.1",
|
|
162
|
+
"volto-site-settings": "0.4.4",
|
|
163
|
+
"volto-slimheader": "0.1.2",
|
|
158
164
|
"volto-social-settings": "3.0.0",
|
|
159
|
-
"volto-subblocks": "2.
|
|
160
|
-
"volto-subfooter": "3.
|
|
161
|
-
"volto-subsites": "4.0.
|
|
162
|
-
"volto-venue": "4.
|
|
165
|
+
"volto-subblocks": "2.1.0",
|
|
166
|
+
"volto-subfooter": "3.1.1",
|
|
167
|
+
"volto-subsites": "4.0.2",
|
|
168
|
+
"volto-venue": "4.1.1",
|
|
163
169
|
"webpack-image-resize-loader": "^5.0.0"
|
|
164
170
|
},
|
|
165
171
|
"devDependencies": {
|
|
@@ -196,7 +202,7 @@
|
|
|
196
202
|
"stylelint-prettier": "4.0.2"
|
|
197
203
|
},
|
|
198
204
|
"peerDependencies": {
|
|
199
|
-
"@plone/volto": "17.
|
|
205
|
+
"@plone/volto": "17.20.4"
|
|
200
206
|
},
|
|
201
207
|
"packageManager": "yarn@3.2.3"
|
|
202
208
|
}
|
package/publiccode.yml
CHANGED
|
@@ -20,7 +20,7 @@ logo: docs/logo-io-comune.png
|
|
|
20
20
|
description:
|
|
21
21
|
it:
|
|
22
22
|
documentation: |-
|
|
23
|
-
https://docs.google.com/document/d/
|
|
23
|
+
https://docs.google.com/document/d/1BrlGYmE3Z4y6FMIrfBJWOX1P2JVEGzJZS6TRbeIiFSk/edit?tab=t.0
|
|
24
24
|
features:
|
|
25
25
|
- PNRR
|
|
26
26
|
- PNRR/Misura/1.2
|
|
@@ -227,9 +227,9 @@ maintenance:
|
|
|
227
227
|
name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
|
|
228
228
|
platforms:
|
|
229
229
|
- web
|
|
230
|
-
releaseDate: '
|
|
230
|
+
releaseDate: '2025-04-04'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion:
|
|
232
|
+
softwareVersion: 12.1.0
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Image } from '@plone/volto/components';
|
|
3
|
+
import { useFallbackImageSrc } from 'design-comuni-plone-theme/helpers';
|
|
4
|
+
|
|
5
|
+
const ImageWithErrors = ({ src, fallbackSrc = '', ...rest }) => {
|
|
6
|
+
const { className, sizes } = rest;
|
|
7
|
+
const { currentSrc, handleError, getFallbackImageStyle } =
|
|
8
|
+
useFallbackImageSrc({
|
|
9
|
+
src,
|
|
10
|
+
customFallbackSrc: fallbackSrc,
|
|
11
|
+
className,
|
|
12
|
+
sizes,
|
|
13
|
+
});
|
|
14
|
+
let commonProps = { ...rest };
|
|
15
|
+
const fallbackStyle = getFallbackImageStyle({
|
|
16
|
+
src,
|
|
17
|
+
customFallbackSrc: fallbackSrc,
|
|
18
|
+
className,
|
|
19
|
+
sizes,
|
|
20
|
+
});
|
|
21
|
+
if (fallbackStyle) {
|
|
22
|
+
commonProps = {
|
|
23
|
+
...commonProps,
|
|
24
|
+
style: { ...commonProps.style, ...fallbackStyle },
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return <Image {...commonProps} src={currentSrc} onError={handleError} />;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default ImageWithErrors;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useSelector } from 'react-redux';
|
|
3
|
-
import { useIntl } from 'react-intl';
|
|
4
3
|
import { useLocation } from 'react-router-dom';
|
|
5
|
-
import {
|
|
6
|
-
import { RemoveBodyClass } from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
7
|
-
import { getSiteProperty } from 'design-comuni-plone-theme/helpers';
|
|
4
|
+
import { BodyClass } from '@plone/volto/helpers';
|
|
8
5
|
import ScrollToTop from 'design-comuni-plone-theme/components/ItaliaTheme/ScrollToTop/ScrollToTop';
|
|
9
6
|
import { SubsiteLoader } from 'volto-subsites';
|
|
10
7
|
import config from '@plone/volto/registry';
|
|
11
8
|
|
|
12
9
|
const GenericAppExtras = (props) => {
|
|
13
|
-
const intl = useIntl();
|
|
14
10
|
const location = useLocation();
|
|
15
11
|
|
|
16
12
|
const subsite = useSelector((state) => state.subsite?.data);
|
|
@@ -19,7 +15,6 @@ const GenericAppExtras = (props) => {
|
|
|
19
15
|
if (subsiteLoadable) {
|
|
20
16
|
subsiteLoadable.load();
|
|
21
17
|
}
|
|
22
|
-
const siteTitle = subsite?.title ?? getSiteProperty('siteTitle', intl.locale);
|
|
23
18
|
|
|
24
19
|
const FORCE_PUBLIC_UI = ['/sitemap', '/search'];
|
|
25
20
|
const isPublicUI = FORCE_PUBLIC_UI.reduce(
|
|
@@ -29,11 +24,10 @@ const GenericAppExtras = (props) => {
|
|
|
29
24
|
|
|
30
25
|
return (
|
|
31
26
|
<>
|
|
32
|
-
<Helmet titleTemplate={`%s - ${siteTitle}`} />
|
|
33
27
|
{isPublicUI && (
|
|
34
28
|
<>
|
|
35
29
|
<BodyClass className="public-ui" />
|
|
36
|
-
<
|
|
30
|
+
<BodyClass className="cms-ui" remove={true} />
|
|
37
31
|
</>
|
|
38
32
|
)}
|
|
39
33
|
<ScrollToTop />
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
CUSTOMIZATIONS:
|
|
3
|
+
- get defaultValue from siteProperties
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { useIntl } from 'react-intl';
|
|
8
|
+
import { Helmet } from '@plone/volto/helpers';
|
|
9
|
+
import { SiteProperty } from 'volto-site-settings';
|
|
10
|
+
import { getSiteProperty } from 'design-comuni-plone-theme/helpers';
|
|
11
|
+
|
|
12
|
+
const SiteSettingsExtras = (props) => {
|
|
13
|
+
const intl = useIntl();
|
|
14
|
+
let siteTitle = SiteProperty({
|
|
15
|
+
property: 'site_title',
|
|
16
|
+
getValue: true,
|
|
17
|
+
defaultValue: getSiteProperty('siteTitle', intl.locale),
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const parentSiteTitle = SiteProperty({
|
|
21
|
+
property: 'site_title',
|
|
22
|
+
getValue: true,
|
|
23
|
+
getParent: true,
|
|
24
|
+
defaultValue: getSiteProperty('siteTitle', intl.locale),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
if (parentSiteTitle !== siteTitle) {
|
|
28
|
+
siteTitle = siteTitle + ' - ' + parentSiteTitle;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
siteTitle = siteTitle?.replaceAll('\\n', ' - ') ?? '';
|
|
32
|
+
|
|
33
|
+
return <Helmet titleTemplate={`%s - ${siteTitle}`} />;
|
|
34
|
+
};
|
|
35
|
+
export default SiteSettingsExtras;
|
|
@@ -66,8 +66,9 @@ const ViewBlock = ({ data, isOpen, toggle, id, index }) => {
|
|
|
66
66
|
id={`content-${id}-${index}`}
|
|
67
67
|
role="region"
|
|
68
68
|
aria-labelledby={`${id}-${index}`}
|
|
69
|
+
hidden={!isOpen}
|
|
69
70
|
>
|
|
70
|
-
<div className="accordion-inner"
|
|
71
|
+
<div className="accordion-inner">
|
|
71
72
|
<TextBlockView id={id} data={{ value: data.text }} />
|
|
72
73
|
</div>
|
|
73
74
|
{data.href && (
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
SubblocksEdit,
|
|
13
13
|
SubblocksWrapper,
|
|
14
14
|
} from 'volto-subblocks';
|
|
15
|
+
import { TextEditorWidget } from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
15
16
|
|
|
16
17
|
import { SidebarPortal } from '@plone/volto/components';
|
|
17
18
|
import { handleKeyDownOwnFocusManagement } from 'design-comuni-plone-theme/helpers/blocks';
|
|
@@ -24,6 +25,14 @@ const messages = defineMessages({
|
|
|
24
25
|
id: 'Add accordion item',
|
|
25
26
|
defaultMessage: 'Aggiungi elemento',
|
|
26
27
|
},
|
|
28
|
+
title: {
|
|
29
|
+
id: 'Title',
|
|
30
|
+
defaultMessage: 'Titolo...',
|
|
31
|
+
},
|
|
32
|
+
description: {
|
|
33
|
+
id: 'Description placeholder',
|
|
34
|
+
defaultMessage: 'Descrizione...',
|
|
35
|
+
},
|
|
27
36
|
});
|
|
28
37
|
/**
|
|
29
38
|
* Edit Accordion block class.
|
|
@@ -107,6 +116,56 @@ class Edit extends SubblocksEdit {
|
|
|
107
116
|
<div className="full-width section section-muted section-inset-shadow py-5 is-edit-mode">
|
|
108
117
|
<Container className="px-md-4">
|
|
109
118
|
<Card className="card-bg rounded" noWrapper={false} space tag="div">
|
|
119
|
+
<div className="block-header">
|
|
120
|
+
<div className="title">
|
|
121
|
+
<TextEditorWidget
|
|
122
|
+
{...this.props}
|
|
123
|
+
showToolbar={false}
|
|
124
|
+
data={this.props.data}
|
|
125
|
+
key={'title'}
|
|
126
|
+
fieldName="title"
|
|
127
|
+
selected={this.state.selectedField === 'title'}
|
|
128
|
+
setSelected={(f) => {
|
|
129
|
+
this.setState({
|
|
130
|
+
selectedField: f,
|
|
131
|
+
subIndexSelected: -1,
|
|
132
|
+
});
|
|
133
|
+
}}
|
|
134
|
+
placeholder={this.props.intl.formatMessage(messages.title)}
|
|
135
|
+
focusNextField={() => {
|
|
136
|
+
this.setState({ selectedField: 'description' });
|
|
137
|
+
}}
|
|
138
|
+
/>
|
|
139
|
+
</div>
|
|
140
|
+
|
|
141
|
+
<div className="description">
|
|
142
|
+
<TextEditorWidget
|
|
143
|
+
{...this.props}
|
|
144
|
+
showToolbar={true}
|
|
145
|
+
data={this.props.data}
|
|
146
|
+
fieldName="description"
|
|
147
|
+
selected={this.state.selectedField === 'description'}
|
|
148
|
+
setSelected={(f) => {
|
|
149
|
+
this.setState({
|
|
150
|
+
selectedField: f,
|
|
151
|
+
subIndexSelected: -1,
|
|
152
|
+
});
|
|
153
|
+
}}
|
|
154
|
+
placeholder={this.props.intl.formatMessage(
|
|
155
|
+
messages.description,
|
|
156
|
+
)}
|
|
157
|
+
focusPrevField={() => {
|
|
158
|
+
this.setState({ selectedField: 'title' });
|
|
159
|
+
}}
|
|
160
|
+
focusNextField={() => {
|
|
161
|
+
this.setState({
|
|
162
|
+
selectedField: null,
|
|
163
|
+
subIndexSelected: 0,
|
|
164
|
+
});
|
|
165
|
+
}}
|
|
166
|
+
/>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
110
169
|
<CardBody tag="div">
|
|
111
170
|
<SubblocksWrapper node={this.node}>
|
|
112
171
|
{this.state.subblocks.map((subblock, subindex) => (
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import ViewBlock from './Block/ViewBlock';
|
|
9
|
+
import { TextBlockView } from '@plone/volto-slate/blocks/Text';
|
|
9
10
|
import { Container, Card, CardBody } from 'design-react-kit';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -25,6 +26,14 @@ const AccordionView = ({ data, block }) => {
|
|
|
25
26
|
<div className="full-width section section-muted section-inset-shadow py-5">
|
|
26
27
|
<Container className="px-md-4">
|
|
27
28
|
<Card className="card-bg rounded" noWrapper={false} space tag="div">
|
|
29
|
+
<div className="block-header">
|
|
30
|
+
{data.title && <div className="title">{data.title}</div>}
|
|
31
|
+
{data.description && (
|
|
32
|
+
<div className="description">
|
|
33
|
+
<TextBlockView data={{ value: data.description }} />
|
|
34
|
+
</div>
|
|
35
|
+
)}
|
|
36
|
+
</div>
|
|
28
37
|
<CardBody tag="div">
|
|
29
38
|
{data.subblocks.map((subblock, index) => (
|
|
30
39
|
<ViewBlock
|
|
@@ -68,7 +68,7 @@ const Edit = (props) => {
|
|
|
68
68
|
{...props}
|
|
69
69
|
data={data}
|
|
70
70
|
fieldName="text"
|
|
71
|
-
selected={selectedField === 'text'}
|
|
71
|
+
selected={selected && selectedField === 'text'}
|
|
72
72
|
setSelected={setSelectedField}
|
|
73
73
|
placeholder={intl.formatMessage(messages.content_placeholder)}
|
|
74
74
|
showToolbar={true}
|
|
@@ -26,9 +26,9 @@ const BottomBody = ({ data, intl, hasArguments }) => {
|
|
|
26
26
|
<div
|
|
27
27
|
className={data?.centerAlignment ? 'col-lg-12 mb-3' : 'col-lg-auto'}
|
|
28
28
|
>
|
|
29
|
-
<
|
|
29
|
+
<p className="h6 text-uppercase text-center mt-1">
|
|
30
30
|
{intl?.formatMessage(messages.otherArguments)}
|
|
31
|
-
</
|
|
31
|
+
</p>
|
|
32
32
|
</div>
|
|
33
33
|
<div className={data?.centerAlignment ? 'col-lg-12' : 'col-lg-auto'}>
|
|
34
34
|
{data?.arguments?.map((argument, index) => (
|
|
@@ -167,6 +167,7 @@ const Body = ({ data, id, inEditMode, path, onChangeBlock }) => {
|
|
|
167
167
|
<>
|
|
168
168
|
{React.createElement(filterOne.widget.component, {
|
|
169
169
|
...filterOne.widget?.props,
|
|
170
|
+
blockID: id,
|
|
170
171
|
id: 'filterOne',
|
|
171
172
|
onChange: (filter, value) => {
|
|
172
173
|
dispatchFilter({
|
|
@@ -180,6 +181,7 @@ const Body = ({ data, id, inEditMode, path, onChangeBlock }) => {
|
|
|
180
181
|
{filterTwo &&
|
|
181
182
|
React.createElement(filterTwo.widget?.component, {
|
|
182
183
|
...filterTwo.widget?.props,
|
|
184
|
+
blockID: id,
|
|
183
185
|
id: 'filterTwo',
|
|
184
186
|
onChange: (filter, value) =>
|
|
185
187
|
dispatchFilter({
|
|
@@ -190,6 +192,7 @@ const Body = ({ data, id, inEditMode, path, onChangeBlock }) => {
|
|
|
190
192
|
{filterThree &&
|
|
191
193
|
React.createElement(filterThree.widget?.component, {
|
|
192
194
|
...filterThree.widget?.props,
|
|
195
|
+
blockID: id,
|
|
193
196
|
id: 'filterThree',
|
|
194
197
|
onChange: (filter, value) =>
|
|
195
198
|
dispatchFilter({
|
|
@@ -203,6 +206,7 @@ const Body = ({ data, id, inEditMode, path, onChangeBlock }) => {
|
|
|
203
206
|
icon={false}
|
|
204
207
|
tag="button"
|
|
205
208
|
className="my-2 my-lg-1"
|
|
209
|
+
type="submit"
|
|
206
210
|
>
|
|
207
211
|
{intl.formatMessage(messages.find)}
|
|
208
212
|
</Button>
|
|
@@ -69,7 +69,7 @@ const Block = (props) => {
|
|
|
69
69
|
showToolbar={false}
|
|
70
70
|
data={data}
|
|
71
71
|
fieldName="cta_title"
|
|
72
|
-
selected={selectedField === 'cta_title'}
|
|
72
|
+
selected={selected && selectedField === 'cta_title'}
|
|
73
73
|
setSelected={setSelectedField}
|
|
74
74
|
block={block}
|
|
75
75
|
placeholder={intl.formatMessage(messages.cta_title)}
|
|
@@ -89,7 +89,7 @@ const Block = (props) => {
|
|
|
89
89
|
data={data}
|
|
90
90
|
fieldName="cta_content"
|
|
91
91
|
block={block}
|
|
92
|
-
selected={selectedField === 'cta_content'}
|
|
92
|
+
selected={selected && selectedField === 'cta_content'}
|
|
93
93
|
placeholder={intl.formatMessage(messages.cta_content)}
|
|
94
94
|
setSelected={setSelectedField}
|
|
95
95
|
focusPrevField={() => {
|
|
@@ -123,6 +123,7 @@ const Body = ({ data, block, inEditMode, path, onChangeBlock, reactSlick }) => {
|
|
|
123
123
|
const adaptedQuery = Object.assign(
|
|
124
124
|
{
|
|
125
125
|
fullobjects: 1,
|
|
126
|
+
sort_on: !Object.keys(_querystring).includes('sort_on') ? 'start' : null,
|
|
126
127
|
},
|
|
127
128
|
...copyFields.map((name) =>
|
|
128
129
|
Object.keys(_querystring).includes(name)
|
|
@@ -57,7 +57,7 @@ const Edit = (props) => {
|
|
|
57
57
|
block={block}
|
|
58
58
|
fieldName="title"
|
|
59
59
|
onChangeBlock={onChangeBlock}
|
|
60
|
-
selected={selectedField === 'title'}
|
|
60
|
+
selected={selected && selectedField === 'title'}
|
|
61
61
|
placeholder={intl.formatMessage(messages.title)}
|
|
62
62
|
setSelected={setSelectedField}
|
|
63
63
|
focusNextField={() => {
|
|
@@ -74,7 +74,7 @@ const Edit = (props) => {
|
|
|
74
74
|
fieldName="text"
|
|
75
75
|
block={block}
|
|
76
76
|
onSelectBlock={onSelectBlock}
|
|
77
|
-
selected={selectedField === 'text'}
|
|
77
|
+
selected={selected && selectedField === 'text'}
|
|
78
78
|
placeholder={intl.formatMessage(messages.text)}
|
|
79
79
|
onChangeBlock={onChangeBlock}
|
|
80
80
|
setSelected={setSelectedField}
|
|
@@ -188,6 +188,7 @@ const DateFilter = (props) => {
|
|
|
188
188
|
endLabel,
|
|
189
189
|
defaultStart,
|
|
190
190
|
defaultEnd,
|
|
191
|
+
blockID,
|
|
191
192
|
...rest
|
|
192
193
|
} = props;
|
|
193
194
|
const { DateRangePicker } = reactDates;
|
|
@@ -230,12 +231,12 @@ const DateFilter = (props) => {
|
|
|
230
231
|
<DateRangePicker
|
|
231
232
|
{...rest}
|
|
232
233
|
startDate={value?.startDate || defaultStart}
|
|
233
|
-
startDateId=
|
|
234
|
+
startDateId={`start-date-filter-${blockID}`}
|
|
234
235
|
startDatePlaceholderText={
|
|
235
236
|
startLabel ?? intl.formatMessage(messages.eventSearchStartDate)
|
|
236
237
|
}
|
|
237
238
|
endDate={value?.endDate || defaultEnd}
|
|
238
|
-
endDateId=
|
|
239
|
+
endDateId={`end-date-filter-${blockID}`}
|
|
239
240
|
endDatePlaceholderText={
|
|
240
241
|
endLabel ?? intl.formatMessage(messages.eventSearchEndDate)
|
|
241
242
|
}
|
|
@@ -11,6 +11,7 @@ const SelectFilter = ({
|
|
|
11
11
|
onChange,
|
|
12
12
|
placeholder,
|
|
13
13
|
isSearchable = false,
|
|
14
|
+
optionsQuerySize = 25,
|
|
14
15
|
}) => {
|
|
15
16
|
const dispatch = useDispatch();
|
|
16
17
|
|
|
@@ -52,11 +53,18 @@ const SelectFilter = ({
|
|
|
52
53
|
);
|
|
53
54
|
}
|
|
54
55
|
} else if (options.vocabulary) {
|
|
55
|
-
dispatch(
|
|
56
|
+
dispatch(
|
|
57
|
+
getVocabulary({
|
|
58
|
+
vocabNameOrURL: options.vocabulary,
|
|
59
|
+
size: optionsQuerySize,
|
|
60
|
+
}),
|
|
61
|
+
);
|
|
56
62
|
}
|
|
57
63
|
}, []);
|
|
58
64
|
|
|
59
|
-
const select_options = options?.
|
|
65
|
+
const select_options = options?.choices
|
|
66
|
+
? options.choices
|
|
67
|
+
: options?.vocabulary
|
|
60
68
|
? vocabularies?.[options.vocabulary]?.items
|
|
61
69
|
: selectOptions;
|
|
62
70
|
|
|
@@ -70,7 +78,7 @@ const SelectFilter = ({
|
|
|
70
78
|
onChange(id, opt);
|
|
71
79
|
}}
|
|
72
80
|
options={select_options?.filter((opt) => !!opt.value?.toString()) ?? []}
|
|
73
|
-
isClearable={true}
|
|
81
|
+
isClearable={options?.isClearable ?? true}
|
|
74
82
|
isSearchable={isSearchable}
|
|
75
83
|
// components={{
|
|
76
84
|
// ClearIndicator: (props) => {
|
|
@@ -8,10 +8,14 @@ const messages = defineMessages({
|
|
|
8
8
|
},
|
|
9
9
|
});
|
|
10
10
|
|
|
11
|
-
const TextFilter = ({ value, id, onChange, placeholder }) => {
|
|
11
|
+
const TextFilter = ({ value, id, onChange, placeholder, blockID }) => {
|
|
12
12
|
const intl = useIntl();
|
|
13
|
+
|
|
13
14
|
return (
|
|
14
15
|
<div className="me-lg-3 my-2 my-lg-1 filter-wrapper text-filter">
|
|
16
|
+
<label htmlFor={`${blockID}-${id}`} className="visually-hidden">
|
|
17
|
+
{placeholder}
|
|
18
|
+
</label>
|
|
15
19
|
<input
|
|
16
20
|
type="text"
|
|
17
21
|
placeholder={
|
|
@@ -21,6 +25,8 @@ const TextFilter = ({ value, id, onChange, placeholder }) => {
|
|
|
21
25
|
onChange={(e, data) => {
|
|
22
26
|
onChange(id, e.target.value ?? '');
|
|
23
27
|
}}
|
|
28
|
+
autocomplete="off"
|
|
29
|
+
id={`${blockID}-${id}`}
|
|
24
30
|
/>
|
|
25
31
|
</div>
|
|
26
32
|
);
|
|
@@ -52,24 +52,13 @@ class EditBlock extends SubblockEdit {
|
|
|
52
52
|
// eslint-disable-next-line no-unused-expressions
|
|
53
53
|
this.contact_item_ref?.current?.addEventListener('keydown', (e) => {
|
|
54
54
|
if (e.keyCode === 13) {
|
|
55
|
-
if (!(this.state.focusOn === '
|
|
56
|
-
this.setState({ focusOn: '
|
|
55
|
+
if (!(this.state.focusOn === 'title')) {
|
|
56
|
+
this.setState({ focusOn: 'title' });
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
63
|
-
if (!this.props.selected && nextProps.focusOn) {
|
|
64
|
-
this.props.onSelectBlock(this.props.block);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (nextProps.selected && !this.state.focusOn) {
|
|
68
|
-
this.setState({ focusOn: 'title' });
|
|
69
|
-
} else if (!nextProps.selected) {
|
|
70
|
-
this.setState({ focusOn: null });
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
62
|
/**
|
|
74
63
|
* Render method.
|
|
75
64
|
* @method render
|
|
@@ -95,6 +84,7 @@ class EditBlock extends SubblockEdit {
|
|
|
95
84
|
{/* eslint-disable */}
|
|
96
85
|
<TextEditorWidget
|
|
97
86
|
{...this.props}
|
|
87
|
+
index={this.props.blockIndex}
|
|
98
88
|
key="title"
|
|
99
89
|
showToolbar={false}
|
|
100
90
|
data={this.props.data}
|
|
@@ -125,6 +115,7 @@ class EditBlock extends SubblockEdit {
|
|
|
125
115
|
<div className="contact-text">
|
|
126
116
|
<TextEditorWidget
|
|
127
117
|
{...this.props}
|
|
118
|
+
index={this.props.blockIndex}
|
|
128
119
|
key="text"
|
|
129
120
|
data={this.props.data}
|
|
130
121
|
fieldName="text"
|
|
@@ -135,7 +126,9 @@ class EditBlock extends SubblockEdit {
|
|
|
135
126
|
this.props.onChangeBlock(this.props.index, _data);
|
|
136
127
|
}}
|
|
137
128
|
selected={this.props.selected && this.state.focusOn === 'text'}
|
|
138
|
-
setSelected={(f) =>
|
|
129
|
+
setSelected={(f) => {
|
|
130
|
+
this.setState({ focusOn: f });
|
|
131
|
+
}}
|
|
139
132
|
focusPrevField={() => {
|
|
140
133
|
this.setState({ focusOn: 'title' });
|
|
141
134
|
}}
|
|
@@ -151,6 +144,7 @@ class EditBlock extends SubblockEdit {
|
|
|
151
144
|
</div>
|
|
152
145
|
<TextEditorWidget
|
|
153
146
|
{...this.props}
|
|
147
|
+
index={this.props.blockIndex}
|
|
154
148
|
key="tel"
|
|
155
149
|
data={this.props.data}
|
|
156
150
|
fieldName="tel"
|
|
@@ -177,6 +171,7 @@ class EditBlock extends SubblockEdit {
|
|
|
177
171
|
</div>
|
|
178
172
|
<TextEditorWidget
|
|
179
173
|
{...this.props}
|
|
174
|
+
index={this.props.blockIndex}
|
|
180
175
|
key="email"
|
|
181
176
|
wrapClass="email"
|
|
182
177
|
data={this.props.data}
|
|
@@ -188,7 +183,14 @@ class EditBlock extends SubblockEdit {
|
|
|
188
183
|
placeholder={this.props.intl.formatMessage(
|
|
189
184
|
messages.textPlaceholder,
|
|
190
185
|
)}
|
|
191
|
-
setSelected={(f) =>
|
|
186
|
+
setSelected={(f) => {
|
|
187
|
+
if (!this.props.selected) {
|
|
188
|
+
//a11y - per il focus del blocco da tastiera con navigazione inversa
|
|
189
|
+
this.props.onSubblockChangeFocus(this.props.index);
|
|
190
|
+
this.props.onSelectBlock(this.props.block);
|
|
191
|
+
}
|
|
192
|
+
this.setState({ focusOn: f });
|
|
193
|
+
}}
|
|
192
194
|
focusPrevField={() => {
|
|
193
195
|
this.setState({ focusOn: 'tel' });
|
|
194
196
|
}}
|
|
@@ -50,7 +50,10 @@ class Edit extends SubblocksEdit {
|
|
|
50
50
|
UNSAFE_componentWillReceiveProps(newProps) {
|
|
51
51
|
if (newProps.selected) {
|
|
52
52
|
if (!this.props.selected) {
|
|
53
|
-
this.
|
|
53
|
+
if (!this.state.selectedField && this.state.subIndexSelected < 0) {
|
|
54
|
+
//a11y - test subIndexSelected<0 per gestire il focus con navigazione da tastiera al contrario (dal blocco successivo a questo blocco)
|
|
55
|
+
this.setState({ selectedField: 'title' });
|
|
56
|
+
}
|
|
54
57
|
}
|
|
55
58
|
} else {
|
|
56
59
|
this.setState({ selectedField: null });
|
|
@@ -122,6 +125,8 @@ class Edit extends SubblocksEdit {
|
|
|
122
125
|
className={`full-width section bg-${
|
|
123
126
|
this.props.data.bg_color ?? 'primary'
|
|
124
127
|
} py-5`}
|
|
128
|
+
role="form"
|
|
129
|
+
aria-label={this.props.blocksConfig[this.props.type].title}
|
|
125
130
|
>
|
|
126
131
|
<Container className="px-md-4">
|
|
127
132
|
<div className="block-header">
|
|
@@ -134,9 +139,12 @@ class Edit extends SubblocksEdit {
|
|
|
134
139
|
fieldName="title"
|
|
135
140
|
selected={this.state.selectedField === 'title'}
|
|
136
141
|
placeholder={this.props.intl.formatMessage(messages.title)}
|
|
137
|
-
onSelectBlock={() => {}}
|
|
138
142
|
setSelected={(f) => {
|
|
139
143
|
this.setState({ selectedField: f, subIndexSelected: -1 });
|
|
144
|
+
if (!this.props.selected) {
|
|
145
|
+
//a11y - per il focus del blocco da tastiera
|
|
146
|
+
this.props.onSelectBlock(this.props.block);
|
|
147
|
+
}
|
|
140
148
|
}}
|
|
141
149
|
focusNextField={() => {
|
|
142
150
|
this.setState({ selectedField: 'description' });
|
|
@@ -154,7 +162,6 @@ class Edit extends SubblocksEdit {
|
|
|
154
162
|
placeholder={this.props.intl.formatMessage(
|
|
155
163
|
messages.description,
|
|
156
164
|
)}
|
|
157
|
-
onSelectBlock={() => {}}
|
|
158
165
|
setSelected={(f) => {
|
|
159
166
|
this.setState({ selectedField: f, subIndexSelected: -1 });
|
|
160
167
|
}}
|
|
@@ -182,12 +189,11 @@ class Edit extends SubblocksEdit {
|
|
|
182
189
|
{...this.props}
|
|
183
190
|
data={subblock}
|
|
184
191
|
index={subindex}
|
|
192
|
+
blockIndex={this.props.index}
|
|
185
193
|
selected={this.isSubblockSelected(subindex)}
|
|
186
194
|
{...this.subblockProps}
|
|
187
|
-
openObjectBrowser={this.props.openObjectBrowser}
|
|
188
|
-
onSubblockChangeFocus={this.onSubblockChangeFocus}
|
|
189
195
|
onChangeFocus={this.onSubblockChangeFocus}
|
|
190
|
-
isLast={this.state.subblocks.length - 1
|
|
196
|
+
isLast={subindex === this.state.subblocks.length - 1}
|
|
191
197
|
isFirst={subindex === 0}
|
|
192
198
|
onFocusPreviousBlock={() => {
|
|
193
199
|
this.setState({
|