From 3ddcabaf2db8b82a681d9dde064fedba30969221 Mon Sep 17 00:00:00 2001 From: Mauro Amico Date: Thu, 27 Jun 2024 19:13:02 +0200 Subject: [PATCH 1/2] feat: expandItems --- locales/de/LC_MESSAGES/volto.po | 7 +++++-- locales/en/LC_MESSAGES/volto.po | 7 +++++-- locales/es/LC_MESSAGES/volto.po | 7 +++++-- locales/fr/LC_MESSAGES/volto.po | 7 +++++-- locales/it/LC_MESSAGES/volto.po | 7 +++++-- locales/volto.pot | 9 ++++++--- .../ItaliaTheme/Blocks/BandiSearch/Body.jsx | 9 --------- .../SearchSectionsConfigurationForm.jsx | 13 ++++++++++++- 8 files changed, 43 insertions(+), 23 deletions(-) diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index f36182860..ce318edb9 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -1945,6 +1945,11 @@ msgstr "" msgid "events" msgstr "" +#: components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm +# defaultMessage: Expand items +msgid "expandItems" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderDates # defaultMessage: Scadenza msgid "expire" @@ -2147,7 +2152,6 @@ msgstr "" msgid "info_color_tertiary" msgstr "" -#: components/ItaliaTheme/Blocks/BandiSearch/Body #: components/ItaliaTheme/Blocks/Calendar/Body #: components/ItaliaTheme/Blocks/EventSearch/Body #: components/ItaliaTheme/Blocks/UOSearch/Body @@ -3707,7 +3711,6 @@ msgstr "" msgid "variazione_situazione_patrimoniale" msgstr "" -#: components/ItaliaTheme/Blocks/BandiSearch/Body #: components/ItaliaTheme/Blocks/EventSearch/Body #: components/ItaliaTheme/Blocks/EventSearch/DefaultFilters #: components/ItaliaTheme/Blocks/UOSearch/Body diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index 477654897..49cbb1770 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -1930,6 +1930,11 @@ msgstr "Event website" msgid "events" msgstr "Appointments" +#: components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm +# defaultMessage: Expand items +msgid "expandItems" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderDates # defaultMessage: Scadenza msgid "expire" @@ -2132,7 +2137,6 @@ msgstr "" msgid "info_color_tertiary" msgstr "" -#: components/ItaliaTheme/Blocks/BandiSearch/Body #: components/ItaliaTheme/Blocks/Calendar/Body #: components/ItaliaTheme/Blocks/EventSearch/Body #: components/ItaliaTheme/Blocks/UOSearch/Body @@ -3692,7 +3696,6 @@ msgstr "Type" msgid "variazione_situazione_patrimoniale" msgstr "Change in balance sheet" -#: components/ItaliaTheme/Blocks/BandiSearch/Body #: components/ItaliaTheme/Blocks/EventSearch/Body #: components/ItaliaTheme/Blocks/EventSearch/DefaultFilters #: components/ItaliaTheme/Blocks/UOSearch/Body diff --git a/locales/es/LC_MESSAGES/volto.po b/locales/es/LC_MESSAGES/volto.po index 4ce8b5b09..7a8fe7189 100644 --- a/locales/es/LC_MESSAGES/volto.po +++ b/locales/es/LC_MESSAGES/volto.po @@ -1939,6 +1939,11 @@ msgstr "Sitio web del evento" msgid "events" msgstr "Cita" +#: components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm +# defaultMessage: Expand items +msgid "expandItems" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderDates # defaultMessage: Scadenza msgid "expire" @@ -2141,7 +2146,6 @@ msgstr "" msgid "info_color_tertiary" msgstr "" -#: components/ItaliaTheme/Blocks/BandiSearch/Body #: components/ItaliaTheme/Blocks/Calendar/Body #: components/ItaliaTheme/Blocks/EventSearch/Body #: components/ItaliaTheme/Blocks/UOSearch/Body @@ -3701,7 +3705,6 @@ msgstr "Tipo" msgid "variazione_situazione_patrimoniale" msgstr "Cambio en el balance" -#: components/ItaliaTheme/Blocks/BandiSearch/Body #: components/ItaliaTheme/Blocks/EventSearch/Body #: components/ItaliaTheme/Blocks/EventSearch/DefaultFilters #: components/ItaliaTheme/Blocks/UOSearch/Body diff --git a/locales/fr/LC_MESSAGES/volto.po b/locales/fr/LC_MESSAGES/volto.po index e98b64a94..392a812d2 100644 --- a/locales/fr/LC_MESSAGES/volto.po +++ b/locales/fr/LC_MESSAGES/volto.po @@ -1947,6 +1947,11 @@ msgstr "Site Web de l'événement" msgid "events" msgstr "Rendez-vous" +#: components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm +# defaultMessage: Expand items +msgid "expandItems" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderDates # defaultMessage: Scadenza msgid "expire" @@ -2149,7 +2154,6 @@ msgstr "" msgid "info_color_tertiary" msgstr "" -#: components/ItaliaTheme/Blocks/BandiSearch/Body #: components/ItaliaTheme/Blocks/Calendar/Body #: components/ItaliaTheme/Blocks/EventSearch/Body #: components/ItaliaTheme/Blocks/UOSearch/Body @@ -3709,7 +3713,6 @@ msgstr "Typologie" msgid "variazione_situazione_patrimoniale" msgstr "Changement de bilan" -#: components/ItaliaTheme/Blocks/BandiSearch/Body #: components/ItaliaTheme/Blocks/EventSearch/Body #: components/ItaliaTheme/Blocks/EventSearch/DefaultFilters #: components/ItaliaTheme/Blocks/UOSearch/Body diff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po index 90e55b986..2523890dc 100644 --- a/locales/it/LC_MESSAGES/volto.po +++ b/locales/it/LC_MESSAGES/volto.po @@ -1930,6 +1930,11 @@ msgstr "Sito web dell'evento" msgid "events" msgstr "Appuntamenti" +#: components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm +# defaultMessage: Expand items +msgid "expandItems" +msgstr "Espande i sotto-elementi nei filtri di ricerca (togliere la spunta per sezioni con un numero elevato di elementi)" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderDates # defaultMessage: Scadenza msgid "expire" @@ -2132,7 +2137,6 @@ msgstr "Colore secondario" msgid "info_color_tertiary" msgstr "Colore terziario" -#: components/ItaliaTheme/Blocks/BandiSearch/Body #: components/ItaliaTheme/Blocks/Calendar/Body #: components/ItaliaTheme/Blocks/EventSearch/Body #: components/ItaliaTheme/Blocks/UOSearch/Body @@ -3692,7 +3696,6 @@ msgstr "" msgid "variazione_situazione_patrimoniale" msgstr "Variazione situazione patrimoniale" -#: components/ItaliaTheme/Blocks/BandiSearch/Body #: components/ItaliaTheme/Blocks/EventSearch/Body #: components/ItaliaTheme/Blocks/EventSearch/DefaultFilters #: components/ItaliaTheme/Blocks/UOSearch/Body diff --git a/locales/volto.pot b/locales/volto.pot index 34568edad..394bc0e1a 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2024-06-21T09:58:51.722Z\n" +"POT-Creation-Date: 2024-06-27T17:10:09.287Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -1932,6 +1932,11 @@ msgstr "" msgid "events" msgstr "" +#: components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm +# defaultMessage: Expand items +msgid "expandItems" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderDates # defaultMessage: Scadenza msgid "expire" @@ -2134,7 +2139,6 @@ msgstr "" msgid "info_color_tertiary" msgstr "" -#: components/ItaliaTheme/Blocks/BandiSearch/Body #: components/ItaliaTheme/Blocks/Calendar/Body #: components/ItaliaTheme/Blocks/EventSearch/Body #: components/ItaliaTheme/Blocks/UOSearch/Body @@ -3694,7 +3698,6 @@ msgstr "" msgid "variazione_situazione_patrimoniale" msgstr "" -#: components/ItaliaTheme/Blocks/BandiSearch/Body #: components/ItaliaTheme/Blocks/EventSearch/Body #: components/ItaliaTheme/Blocks/EventSearch/DefaultFilters #: components/ItaliaTheme/Blocks/UOSearch/Body diff --git a/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx b/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx index c4fc46482..913480f3d 100644 --- a/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx +++ b/src/components/ItaliaTheme/Blocks/BandiSearch/Body.jsx @@ -21,15 +21,6 @@ const messages = defineMessages({ id: 'find', defaultMessage: 'Cerca', }, - insert_filter: { - id: 'insert_filter', - defaultMessage: - 'Inserire un filtro dal menù laterale per visualizzare i relativi risultati', - }, - venues: { - id: 'venues', - defaultMessage: 'Luoghi', - }, noResult: { id: 'noResult', defaultMessage: 'Nessun risultato trovato', diff --git a/src/components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm.jsx b/src/components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm.jsx index 8fd33b654..3afa01976 100644 --- a/src/components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm.jsx +++ b/src/components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm.jsx @@ -4,7 +4,7 @@ import { defineMessages, useIntl } from 'react-intl'; import { Form, Grid, Button } from 'semantic-ui-react'; import { flattenToAppURL } from '@plone/volto/helpers'; import withObjectBrowser from '@plone/volto/components/manage/Sidebar/ObjectBrowser'; -import { TextWidget } from '@plone/volto/components'; +import { TextWidget, CheckboxWidget } from '@plone/volto/components'; import navTreeSVG from '@plone/volto/icons/nav.svg'; import clearSVG from '@plone/volto/icons/clear.svg'; @@ -26,6 +26,10 @@ const messages = defineMessages({ id: 'searchsectionswidget-deleteitem-button', defaultMessage: 'Delete section item', }, + expandItems: { + id: 'expandItems', + defaultMessage: 'Expand items', + }, }); const SearchSectionsConfigurationForm = ({ @@ -116,6 +120,13 @@ const SearchSectionsConfigurationForm = ({ onChange={(id, value) => onChangeFormData('href', value)} /> + onChangeFormData('expandItems', value)} + /> + From 9ffd93c91780626b148a383d1d27981dec43ef79 Mon Sep 17 00:00:00 2001 From: Mauro Amico Date: Thu, 27 Jun 2024 19:21:46 +0200 Subject: [PATCH 2/2] chore: label desc --- locales/de/LC_MESSAGES/volto.po | 5 +++++ locales/en/LC_MESSAGES/volto.po | 5 +++++ locales/es/LC_MESSAGES/volto.po | 5 +++++ locales/fr/LC_MESSAGES/volto.po | 5 +++++ locales/it/LC_MESSAGES/volto.po | 7 ++++++- locales/volto.pot | 7 ++++++- .../SearchSectionsConfigurationForm.jsx | 5 +++++ 7 files changed, 37 insertions(+), 2 deletions(-) diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index ce318edb9..aaf22effa 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -1950,6 +1950,11 @@ msgstr "" msgid "expandItems" msgstr "" +#: components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm +# defaultMessage: Uncheck to omit children items +msgid "expandItems_description" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderDates # defaultMessage: Scadenza msgid "expire" diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index 49cbb1770..5626cfa9d 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -1935,6 +1935,11 @@ msgstr "Appointments" msgid "expandItems" msgstr "" +#: components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm +# defaultMessage: Uncheck to omit children items +msgid "expandItems_description" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderDates # defaultMessage: Scadenza msgid "expire" diff --git a/locales/es/LC_MESSAGES/volto.po b/locales/es/LC_MESSAGES/volto.po index 7a8fe7189..d6296074d 100644 --- a/locales/es/LC_MESSAGES/volto.po +++ b/locales/es/LC_MESSAGES/volto.po @@ -1944,6 +1944,11 @@ msgstr "Cita" msgid "expandItems" msgstr "" +#: components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm +# defaultMessage: Uncheck to omit children items +msgid "expandItems_description" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderDates # defaultMessage: Scadenza msgid "expire" diff --git a/locales/fr/LC_MESSAGES/volto.po b/locales/fr/LC_MESSAGES/volto.po index 392a812d2..1eaeb98ea 100644 --- a/locales/fr/LC_MESSAGES/volto.po +++ b/locales/fr/LC_MESSAGES/volto.po @@ -1952,6 +1952,11 @@ msgstr "Rendez-vous" msgid "expandItems" msgstr "" +#: components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm +# defaultMessage: Uncheck to omit children items +msgid "expandItems_description" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderDates # defaultMessage: Scadenza msgid "expire" diff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po index 2523890dc..2e2e56741 100644 --- a/locales/it/LC_MESSAGES/volto.po +++ b/locales/it/LC_MESSAGES/volto.po @@ -1933,7 +1933,12 @@ msgstr "Appuntamenti" #: components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm # defaultMessage: Expand items msgid "expandItems" -msgstr "Espande i sotto-elementi nei filtri di ricerca (togliere la spunta per sezioni con un numero elevato di elementi)" +msgstr "Espande i sotto-elementi nei filtri di ricerca" + +#: components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm +# defaultMessage: Uncheck to omit children items +msgid "expandItems_description" +msgstr "Togliere la spunta per sezioni con un numero elevato di elementi" #: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderDates # defaultMessage: Scadenza diff --git a/locales/volto.pot b/locales/volto.pot index 394bc0e1a..9c4c428a6 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2024-06-27T17:10:09.287Z\n" +"POT-Creation-Date: 2024-06-27T17:20:04.159Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -1937,6 +1937,11 @@ msgstr "" msgid "expandItems" msgstr "" +#: components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm +# defaultMessage: Uncheck to omit children items +msgid "expandItems_description" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderDates # defaultMessage: Scadenza msgid "expire" diff --git a/src/components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm.jsx b/src/components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm.jsx index 3afa01976..59d0d0d03 100644 --- a/src/components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm.jsx +++ b/src/components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationForm.jsx @@ -30,6 +30,10 @@ const messages = defineMessages({ id: 'expandItems', defaultMessage: 'Expand items', }, + expandItems_description: { + id: 'expandItems_description', + defaultMessage: 'Uncheck to omit children items', + }, }); const SearchSectionsConfigurationForm = ({ @@ -123,6 +127,7 @@ const SearchSectionsConfigurationForm = ({ onChangeFormData('expandItems', value)} />