design-comuni-plone-theme 11.20.1 → 11.20.3
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/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +30 -0
- package/RELEASE.md +6 -0
- package/package.json +1 -1
- package/publiccode.yml +2 -2
- package/src/components/ItaliaTheme/Blocks/Accordion/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/Alert/Edit.jsx +4 -2
- package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/BandiSearch/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/CTABlock/Edit.jsx +2 -2
- package/src/components/ItaliaTheme/Blocks/Calendar/Edit.jsx +6 -2
- package/src/components/ItaliaTheme/Blocks/ContactsBlock/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/CountDown/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/EventSearch/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/HighlightedContent/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/IconBlocks/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/IconBlocks/Sidebar.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/NumbersBlock/Edit.jsx +2 -2
- package/src/components/ItaliaTheme/Blocks/NumbersBlock/Sidebar.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/SearchSections/Edit.jsx +5 -3
- package/src/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/UOSearch/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/VideoGallery/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx +13 -14
- package/src/components/ItaliaTheme/Icons/Icon.jsx +1 -1
- package/src/components/ItaliaTheme/View/Commons/index.jsx +20 -358
- package/src/components/ItaliaTheme/View/index.js +203 -255
- package/src/components/ItaliaTheme/index.js +15 -43
- package/src/components/ItaliaTheme/manage/Widgets/IconWidget.jsx +1 -1
- package/src/config/Blocks/blocks.js +49 -87
- package/src/config/Views/views.js +20 -20
- package/src/config/Widgets/widgets.js +10 -12
- package/src/config/italiaConfig.js +19 -21
- package/src/config/loadables.js +0 -5
- package/src/customizations/volto/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +14 -31
- package/src/customizations/volto/components/theme/Search/Search.jsx +1 -6
- package/src/customizations/volto-feedback/components/FeedbackForm/Steps/{Commons/FormHeader.jsx → Commons.jsx} +1 -2
- package/src/helpers/IconWidget/IconAliasHelper.js +1 -2
- package/src/helpers/index.js +2 -1
- package/.github/workflows/performance.yml +0 -47
- package/src/components/ItaliaTheme/Blocks/Accordion/index.js +0 -16
- package/src/components/ItaliaTheme/Blocks/Alert/index.js +0 -16
- package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/index.js +0 -17
- package/src/components/ItaliaTheme/Blocks/BandiSearch/index.js +0 -16
- package/src/components/ItaliaTheme/Blocks/Break/index.js +0 -10
- package/src/components/ItaliaTheme/Blocks/CTABlock/index.js +0 -17
- package/src/components/ItaliaTheme/Blocks/Calendar/index.js +0 -17
- package/src/components/ItaliaTheme/Blocks/ContactsBlock/index.js +0 -17
- package/src/components/ItaliaTheme/Blocks/CountDown/index.js +0 -16
- package/src/components/ItaliaTheme/Blocks/EventSearch/index.js +0 -17
- package/src/components/ItaliaTheme/Blocks/HighlightedContent/getAsyncData.js +0 -10
- package/src/components/ItaliaTheme/Blocks/HighlightedContent/index.js +0 -17
- package/src/components/ItaliaTheme/Blocks/IconBlocks/index.js +0 -17
- package/src/components/ItaliaTheme/Blocks/NumbersBlock/index.js +0 -17
- package/src/components/ItaliaTheme/Blocks/SearchSections/index.js +0 -17
- package/src/components/ItaliaTheme/Blocks/TextCard/index.js +0 -23
- package/src/components/ItaliaTheme/Blocks/UOSearch/index.js +0 -17
- package/src/components/ItaliaTheme/Blocks/VideoGallery/index.js +0 -17
- package/src/components/ItaliaTheme/View/BandoView/index.js +0 -68
- package/src/components/ItaliaTheme/View/CartellaModulisticaView/index.js +0 -20
- package/src/components/ItaliaTheme/View/DocumentoView/index.js +0 -68
- package/src/components/ItaliaTheme/View/EventoView/index.js +0 -74
- package/src/components/ItaliaTheme/View/FAQ/FaqFolder/index.js +0 -32
- package/src/components/ItaliaTheme/View/FAQ/FaqView/index.js +0 -20
- package/src/components/ItaliaTheme/View/IncaricoView/index.js +0 -26
- package/src/components/ItaliaTheme/View/ModuloView/index.js +0 -44
- package/src/components/ItaliaTheme/View/NewsItemView/index.js +0 -62
- package/src/components/ItaliaTheme/View/PageView/index.js +0 -26
- package/src/components/ItaliaTheme/View/PaginaArgomentoView/index.js +0 -26
- package/src/components/ItaliaTheme/View/PersonaView/index.js +0 -44
- package/src/components/ItaliaTheme/View/PuntoDiContattoView/index.js +0 -26
- package/src/components/ItaliaTheme/View/ServizioView/index.js +0 -152
- package/src/components/ItaliaTheme/View/TrasparenzaView/index.js +0 -20
- package/src/components/ItaliaTheme/View/UOView/index.js +0 -86
- package/src/components/ItaliaTheme/View/VenueView/index.js +0 -86
- package/src/components/ItaliaTheme/manage/Widgets/index.js +0 -94
- package/src/customizations/volto/components/theme/View/View.jsx +0 -353
- 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/icons/index.js +0 -161
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/CartellaModulisticaView.test__disabled.jsx → __tests__/CartellaModulisticaView.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ModuloView.test__disabled.jsx → __tests__/ModuloView.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/PersonaView.test__disabled.jsx → __tests__/PersonaView.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioAChiSiRivolge.test__disabled.jsx → __tests__/ServizioAChiSiRivolge.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioAccedi.test__disabled.jsx → __tests__/ServizioAccedi.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioCasiParticolari.test__disabled.jsx → __tests__/ServizioCasiParticolari.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioComeFare.test__disabled.jsx → __tests__/ServizioComeFare.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioCondizioni.test__disabled.jsx → __tests__/ServizioCondizioni.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioContatti.test__disabled.jsx → __tests__/ServizioContatti.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioCosE.test__disabled.jsx → __tests__/ServizioCosE.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioCosaServe.test__disabled.jsx → __tests__/ServizioCosaServe.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioCosaSiOttiene.test__disabled.jsx → __tests__/ServizioCosaSiOttiene.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioCostiVincoli.test__disabled.jsx → __tests__/ServizioCostiVincoli.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioMetadati.test__disabled.jsx → __tests__/ServizioMetadati.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioModulistica.test__disabled.jsx → __tests__/ServizioModulistica.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioProcedure.test__disabled.jsx → __tests__/ServizioProcedure.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioSitiEsterni.test__disabled.jsx → __tests__/ServizioSitiEsterni.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioTempiScadenze.test__disabled.jsx → __tests__/ServizioTempiScadenze.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioUlterioriInformazioni.test__disabled.jsx → __tests__/ServizioUlterioriInformazioni.test.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__disabled_tests__/TrasparenzaView.test__disabled.jsx → __tests__/TrasparenzaView.test.jsx} +0 -0
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [11.20.3](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.20.2...v11.20.3) (2024-08-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* reverted "chore: set the ground for performance improvements ([#659](https://github.com/RedTurtle/design-comuni-plone-theme/issues/659))" ([381d09a](https://github.com/RedTurtle/design-comuni-plone-theme/commit/381d09a27f45484d429c1424e4d746e8aca4beec))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Documentation
|
|
12
|
+
|
|
13
|
+
* updated publiccode ([8a3681e](https://github.com/RedTurtle/design-comuni-plone-theme/commit/8a3681eacd072df73e3139f38601b760193c660a))
|
|
14
|
+
|
|
15
|
+
## [11.20.2](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.20.1...v11.20.2) (2024-08-12)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* 302 redirects for aliases, removed custom cors error logging ([8348e94](https://github.com/RedTurtle/design-comuni-plone-theme/commit/8348e94940feeddc85c8f3d0364f37daa2145404))
|
|
21
|
+
* icons lazy loading race condition ([4e32354](https://github.com/RedTurtle/design-comuni-plone-theme/commit/4e3235467b886144afcc240aacda9116b729aeb8))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Maintenance
|
|
25
|
+
|
|
26
|
+
* remove unused performance workflow ([adc31a7](https://github.com/RedTurtle/design-comuni-plone-theme/commit/adc31a718b491075b03d789714354089de09a06e))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Documentation
|
|
30
|
+
|
|
31
|
+
* updated publiccode and release log ([e9a2e52](https://github.com/RedTurtle/design-comuni-plone-theme/commit/e9a2e52247683876b2599bf6938e65354457f6f4))
|
|
32
|
+
|
|
3
33
|
## [11.20.1](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.20.0...v11.20.1) (2024-08-09)
|
|
4
34
|
|
|
5
35
|
|
package/RELEASE.md
CHANGED
|
@@ -41,6 +41,12 @@
|
|
|
41
41
|
- ...
|
|
42
42
|
-->
|
|
43
43
|
|
|
44
|
+
## Versione 11.20.2 (12/08/2024)
|
|
45
|
+
|
|
46
|
+
### Fix
|
|
47
|
+
|
|
48
|
+
- Risolto un problema per cui veniva mostrato temporaneamente un messaggio di errore quando si visitava un indirizzo alternativo creato con lo strumento Gestione URL.
|
|
49
|
+
|
|
44
50
|
## Versione 11.20.1 (09/08/2024)
|
|
45
51
|
|
|
46
52
|
### Fix
|
package/package.json
CHANGED
package/publiccode.yml
CHANGED
|
@@ -227,9 +227,9 @@ maintenance:
|
|
|
227
227
|
name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
|
|
228
228
|
platforms:
|
|
229
229
|
- web
|
|
230
|
-
releaseDate: '2024-08-
|
|
230
|
+
releaseDate: '2024-08-14'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 11.20.
|
|
232
|
+
softwareVersion: 11.20.3
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from 'volto-subblocks';
|
|
15
15
|
|
|
16
16
|
import { SidebarPortal } from '@plone/volto/components';
|
|
17
|
-
import
|
|
17
|
+
import Sidebar from './Sidebar.jsx';
|
|
18
18
|
|
|
19
19
|
import { defineMessages } from 'react-intl';
|
|
20
20
|
|
|
@@ -15,8 +15,10 @@ import { createContent } from '@plone/volto/actions';
|
|
|
15
15
|
import { SidebarPortal } from '@plone/volto/components';
|
|
16
16
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
17
17
|
|
|
18
|
-
import {
|
|
19
|
-
|
|
18
|
+
import {
|
|
19
|
+
AlertSidebar,
|
|
20
|
+
TextEditorWidget,
|
|
21
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
20
22
|
|
|
21
23
|
const messages = defineMessages({
|
|
22
24
|
content_placeholder: {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
SubblocksWrapper,
|
|
10
10
|
} from 'volto-subblocks';
|
|
11
11
|
import { SidebarPortal } from '@plone/volto/components';
|
|
12
|
-
import
|
|
12
|
+
import Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Sidebar.jsx';
|
|
13
13
|
import { ArgumentsInEvidenceBackground } from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
14
14
|
|
|
15
15
|
class Edit extends SubblocksEdit {
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import Body from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/BandiSearch/Body';
|
|
4
4
|
import { SidebarPortal } from '@plone/volto/components';
|
|
5
5
|
import { getBaseUrl } from '@plone/volto/helpers';
|
|
6
|
-
import
|
|
6
|
+
import Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/BandiSearch/Sidebar';
|
|
7
7
|
import { useIntl, defineMessages } from 'react-intl';
|
|
8
8
|
|
|
9
9
|
const messages = defineMessages({
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { SidebarPortal } from '@plone/volto/components';
|
|
8
|
-
import
|
|
9
|
-
import BodyWrapper from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CTABlock/BodyWrapper';
|
|
8
|
+
import Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CTABlock/Sidebar.jsx';
|
|
9
|
+
import BodyWrapper from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CTABlock/BodyWrapper.jsx';
|
|
10
10
|
import Block from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CTABlock/Block';
|
|
11
11
|
|
|
12
12
|
class Edit extends React.Component {
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import Body from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Calendar/Body';
|
|
4
4
|
import { SidebarPortal } from '@plone/volto/components';
|
|
5
5
|
import { getBaseUrl } from '@plone/volto/helpers';
|
|
6
|
-
import
|
|
6
|
+
import ListingSidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Calendar/ListingSidebar';
|
|
7
7
|
|
|
8
8
|
const Edit = ({ data, block, onChangeBlock, selected, pathname }) => {
|
|
9
9
|
return (
|
|
@@ -16,7 +16,11 @@ const Edit = ({ data, block, onChangeBlock, selected, pathname }) => {
|
|
|
16
16
|
onChangeBlock={onChangeBlock}
|
|
17
17
|
/>
|
|
18
18
|
<SidebarPortal selected={selected}>
|
|
19
|
-
<
|
|
19
|
+
<ListingSidebar
|
|
20
|
+
data={data}
|
|
21
|
+
block={block}
|
|
22
|
+
onChangeBlock={onChangeBlock}
|
|
23
|
+
/>
|
|
20
24
|
</SidebarPortal>
|
|
21
25
|
</div>
|
|
22
26
|
);
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import { TextEditorWidget } from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
20
20
|
|
|
21
21
|
import EditBlock from './Block/EditBlock';
|
|
22
|
-
import
|
|
22
|
+
import Sidebar from './Sidebar.jsx';
|
|
23
23
|
|
|
24
24
|
const messages = defineMessages({
|
|
25
25
|
addItem: {
|
|
@@ -6,7 +6,7 @@ import { SidebarPortal } from '@plone/volto/components';
|
|
|
6
6
|
import { addAppURL, flattenToAppURL } from '@plone/volto/helpers';
|
|
7
7
|
import cx from 'classnames';
|
|
8
8
|
import { TextEditorWidget } from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
9
|
-
import
|
|
9
|
+
import Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CountDown/Sidebar';
|
|
10
10
|
import CountDown from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CountDown/CountDown';
|
|
11
11
|
|
|
12
12
|
const messages = defineMessages({
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import Body from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/EventSearch/Body';
|
|
4
4
|
import { SidebarPortal } from '@plone/volto/components';
|
|
5
5
|
import { getBaseUrl } from '@plone/volto/helpers';
|
|
6
|
-
import
|
|
6
|
+
import Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/EventSearch/Sidebar';
|
|
7
7
|
import { useIntl, defineMessages } from 'react-intl';
|
|
8
8
|
|
|
9
9
|
const messages = defineMessages({
|
|
@@ -8,7 +8,7 @@ import { SidebarPortal } from '@plone/volto/components';
|
|
|
8
8
|
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
9
9
|
|
|
10
10
|
import Body from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/HighlightedContent/Body';
|
|
11
|
-
import
|
|
11
|
+
import Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/HighlightedContent/Sidebar';
|
|
12
12
|
|
|
13
13
|
const messages = defineMessages({
|
|
14
14
|
emptySelection: {
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import { TextEditorWidget } from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
20
20
|
|
|
21
21
|
import EditBlock from './Block/EditBlock';
|
|
22
|
-
import
|
|
22
|
+
import Sidebar from './Sidebar.jsx';
|
|
23
23
|
|
|
24
24
|
import config from '@plone/volto/registry';
|
|
25
25
|
|
|
@@ -10,7 +10,7 @@ import upSVG from '@plone/volto/icons/up-key.svg';
|
|
|
10
10
|
import downSVG from '@plone/volto/icons/down-key.svg';
|
|
11
11
|
|
|
12
12
|
import { LinkToWidget } from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
13
|
-
import
|
|
13
|
+
import IconWidget from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/IconWidget';
|
|
14
14
|
import { defaultIconWidgetOptions } from 'design-comuni-plone-theme/helpers/index';
|
|
15
15
|
import config from '@plone/volto/registry';
|
|
16
16
|
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
} from 'volto-subblocks';
|
|
19
19
|
import { TextEditorWidget } from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
20
20
|
|
|
21
|
-
import EditBlock from '
|
|
22
|
-
import
|
|
21
|
+
import EditBlock from './Block/EditBlock';
|
|
22
|
+
import Sidebar from './Sidebar.jsx';
|
|
23
23
|
|
|
24
24
|
const messages = defineMessages({
|
|
25
25
|
addItem: {
|
|
@@ -5,7 +5,7 @@ import { Segment, Accordion } from 'semantic-ui-react';
|
|
|
5
5
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
6
6
|
|
|
7
7
|
import { ObjectBrowserWidget } from '@plone/volto/components';
|
|
8
|
-
import
|
|
8
|
+
import IconWidget from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/IconWidget';
|
|
9
9
|
import { defaultIconWidgetOptions } from 'design-comuni-plone-theme/helpers/index';
|
|
10
10
|
|
|
11
11
|
const messages = defineMessages({
|
|
@@ -3,8 +3,10 @@ import { useSelector } from 'react-redux';
|
|
|
3
3
|
import { useLocation } from 'react-router-dom';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { SidebarPortal } from '@plone/volto/components';
|
|
6
|
-
import {
|
|
7
|
-
|
|
6
|
+
import {
|
|
7
|
+
BlockSearchSectionsSidebar,
|
|
8
|
+
BlockSearchSectionsBody,
|
|
9
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
8
10
|
import { SearchUtils } from 'design-comuni-plone-theme/components';
|
|
9
11
|
|
|
10
12
|
const Edit = ({
|
|
@@ -32,7 +34,7 @@ const Edit = ({
|
|
|
32
34
|
<BlockSearchSectionsBody block={data} sections={sections} />
|
|
33
35
|
</div>
|
|
34
36
|
<SidebarPortal selected={selected}>
|
|
35
|
-
<
|
|
37
|
+
<BlockSearchSectionsSidebar
|
|
36
38
|
data={data}
|
|
37
39
|
block={block}
|
|
38
40
|
onChangeBlock={onChangeBlock}
|
|
@@ -7,7 +7,7 @@ import React, { Component } from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { injectIntl } from 'react-intl';
|
|
9
9
|
import { SidebarPortal } from '@plone/volto/components';
|
|
10
|
-
import
|
|
10
|
+
import Sidebar from './Sidebar.jsx';
|
|
11
11
|
import BodyWrapper from './BodyWrapper.jsx';
|
|
12
12
|
import Block from './Block';
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import Body from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/UOSearch/Body';
|
|
4
4
|
import { SidebarPortal } from '@plone/volto/components';
|
|
5
5
|
import { getBaseUrl } from '@plone/volto/helpers';
|
|
6
|
-
import
|
|
6
|
+
import Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/UOSearch/Sidebar';
|
|
7
7
|
import { useIntl, defineMessages } from 'react-intl';
|
|
8
8
|
|
|
9
9
|
const messages = defineMessages({
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
SubblocksEdit,
|
|
12
12
|
SubblocksWrapper,
|
|
13
13
|
} from 'volto-subblocks';
|
|
14
|
-
import
|
|
14
|
+
import Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/VideoGallery/Sidebar';
|
|
15
15
|
import Body from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/VideoGallery/Body';
|
|
16
16
|
import EditBlock from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/VideoGallery/Block/EditBlock';
|
|
17
17
|
import { SingleSlideWrapper } from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @module components/ItaliaTheme/Icons/
|
|
2
|
+
* Icon component.
|
|
3
|
+
* @module components/ItaliaTheme/Icons/SectionIcon
|
|
4
4
|
*/
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
6
|
import { v4 as uuid } from 'uuid';
|
|
7
|
-
import {
|
|
7
|
+
import { fontAwesomeAliases } from 'design-comuni-plone-theme/helpers/index';
|
|
8
8
|
|
|
9
9
|
const FontAwesomeIcon = (props) => {
|
|
10
|
-
const { className, icon, prefix, title
|
|
10
|
+
const { className, icon, prefix, title } = props;
|
|
11
11
|
const iconID = useMemo(() => uuid(), []);
|
|
12
12
|
const [loadedIcon, setLoadedIcon] = React.useState({
|
|
13
13
|
module: null,
|
|
@@ -27,21 +27,21 @@ const FontAwesomeIcon = (props) => {
|
|
|
27
27
|
let iconName = '';
|
|
28
28
|
if (Array.isArray(icon)) {
|
|
29
29
|
prefixKey = icon[0];
|
|
30
|
-
iconName = getIconAlias(icon[1], fontAwesomeAliases
|
|
30
|
+
iconName = getIconAlias(icon[1], fontAwesomeAliases);
|
|
31
31
|
} else {
|
|
32
|
-
iconName = getIconAlias(icon, fontAwesomeAliases
|
|
32
|
+
iconName = getIconAlias(icon, fontAwesomeAliases);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
return [
|
|
36
36
|
prefixKey === 'fab'
|
|
37
37
|
? 'brands'
|
|
38
38
|
: prefixKey === 'far'
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
? 'regular'
|
|
40
|
+
: prefixKey === 'fas'
|
|
41
|
+
? 'solid'
|
|
42
|
+
: prefixKey != null
|
|
43
|
+
? prefixKey
|
|
44
|
+
: 'solid',
|
|
45
45
|
iconName,
|
|
46
46
|
];
|
|
47
47
|
};
|
|
@@ -53,7 +53,6 @@ const FontAwesomeIcon = (props) => {
|
|
|
53
53
|
(iconName !== loadedIcon.iconName || prefixFolder !== loadedIcon.family)
|
|
54
54
|
) {
|
|
55
55
|
import(
|
|
56
|
-
/* webpackChunkName: "DCPTIcons" */
|
|
57
56
|
`design-comuni-plone-theme/icons/fontawesome-free-6.4.0-web/svgs/${prefixFolder}/${iconName}.svg`
|
|
58
57
|
)
|
|
59
58
|
.then((_loadedIcon) => {
|
|
@@ -90,4 +89,4 @@ const FontAwesomeIcon = (props) => {
|
|
|
90
89
|
);
|
|
91
90
|
};
|
|
92
91
|
|
|
93
|
-
export default
|
|
92
|
+
export default FontAwesomeIcon;
|