design-comuni-plone-theme 11.18.3 → 11.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/CHANGELOG.md +41 -0
  3. package/package.json +1 -1
  4. package/publiccode.yml +2 -2
  5. package/src/components/ItaliaTheme/Blocks/Accordion/Edit.jsx +1 -1
  6. package/src/components/ItaliaTheme/Blocks/Accordion/index.js +16 -0
  7. package/src/components/ItaliaTheme/Blocks/Alert/Edit.jsx +2 -4
  8. package/src/components/ItaliaTheme/Blocks/Alert/index.js +16 -0
  9. package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Edit.jsx +1 -1
  10. package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/index.js +17 -0
  11. package/src/components/ItaliaTheme/Blocks/BandiSearch/Edit.jsx +1 -1
  12. package/src/components/ItaliaTheme/Blocks/BandiSearch/index.js +16 -0
  13. package/src/components/ItaliaTheme/Blocks/Break/index.js +10 -0
  14. package/src/components/ItaliaTheme/Blocks/CTABlock/Edit.jsx +2 -2
  15. package/src/components/ItaliaTheme/Blocks/CTABlock/index.js +17 -0
  16. package/src/components/ItaliaTheme/Blocks/Calendar/Edit.jsx +2 -6
  17. package/src/components/ItaliaTheme/Blocks/Calendar/index.js +17 -0
  18. package/src/components/ItaliaTheme/Blocks/Common/SearchFilters/SelectFilter.jsx +6 -4
  19. package/src/components/ItaliaTheme/Blocks/ContactsBlock/Edit.jsx +1 -1
  20. package/src/components/ItaliaTheme/Blocks/ContactsBlock/index.js +17 -0
  21. package/src/components/ItaliaTheme/Blocks/CountDown/Edit.jsx +1 -1
  22. package/src/components/ItaliaTheme/Blocks/CountDown/index.js +16 -0
  23. package/src/components/ItaliaTheme/Blocks/EventSearch/Edit.jsx +1 -1
  24. package/src/components/ItaliaTheme/Blocks/EventSearch/index.js +17 -0
  25. package/src/components/ItaliaTheme/Blocks/HighlightedContent/Edit.jsx +1 -1
  26. package/src/components/ItaliaTheme/Blocks/HighlightedContent/getAsyncData.js +10 -0
  27. package/src/components/ItaliaTheme/Blocks/HighlightedContent/index.js +17 -0
  28. package/src/components/ItaliaTheme/Blocks/IconBlocks/Edit.jsx +1 -1
  29. package/src/components/ItaliaTheme/Blocks/IconBlocks/Sidebar.jsx +1 -1
  30. package/src/components/ItaliaTheme/Blocks/IconBlocks/index.js +17 -0
  31. package/src/components/ItaliaTheme/Blocks/NumbersBlock/Edit.jsx +2 -2
  32. package/src/components/ItaliaTheme/Blocks/NumbersBlock/Sidebar.jsx +1 -1
  33. package/src/components/ItaliaTheme/Blocks/NumbersBlock/index.js +17 -0
  34. package/src/components/ItaliaTheme/Blocks/SearchSections/Edit.jsx +3 -5
  35. package/src/components/ItaliaTheme/Blocks/SearchSections/index.js +17 -0
  36. package/src/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Edit.jsx +1 -1
  37. package/src/components/ItaliaTheme/Blocks/TextCard/index.js +23 -0
  38. package/src/components/ItaliaTheme/Blocks/UOSearch/Edit.jsx +1 -1
  39. package/src/components/ItaliaTheme/Blocks/UOSearch/index.js +17 -0
  40. package/src/components/ItaliaTheme/Blocks/VideoGallery/Edit.jsx +1 -1
  41. package/src/components/ItaliaTheme/Blocks/VideoGallery/index.js +17 -0
  42. package/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx +8 -7
  43. package/src/components/ItaliaTheme/Icons/Icon.jsx +1 -1
  44. package/src/components/ItaliaTheme/View/BandoView/index.js +68 -0
  45. package/src/components/ItaliaTheme/View/CartellaModulisticaView/index.js +20 -0
  46. package/src/components/ItaliaTheme/View/Commons/RelatedArticles.jsx +7 -6
  47. package/src/components/ItaliaTheme/View/Commons/index.jsx +358 -20
  48. package/src/components/ItaliaTheme/View/DocumentoView/index.js +68 -0
  49. package/src/components/ItaliaTheme/View/EventoView/index.js +74 -0
  50. package/src/components/ItaliaTheme/View/FAQ/FaqFolder/index.js +32 -0
  51. package/src/components/ItaliaTheme/View/FAQ/FaqView/index.js +20 -0
  52. package/src/components/ItaliaTheme/View/IncaricoView/index.js +26 -0
  53. package/src/components/ItaliaTheme/View/ModuloView/index.js +44 -0
  54. package/src/components/ItaliaTheme/View/NewsItemView/NewsItemText.jsx +32 -10
  55. package/src/components/ItaliaTheme/View/NewsItemView/index.js +62 -0
  56. package/src/components/ItaliaTheme/View/PageView/index.js +26 -0
  57. package/src/components/ItaliaTheme/View/PaginaArgomentoView/index.js +26 -0
  58. package/src/components/ItaliaTheme/View/PersonaView/index.js +44 -0
  59. package/src/components/ItaliaTheme/View/PuntoDiContattoView/index.js +26 -0
  60. package/src/components/ItaliaTheme/View/ServizioView/index.js +152 -0
  61. package/src/components/ItaliaTheme/View/TrasparenzaView/index.js +20 -0
  62. package/src/components/ItaliaTheme/View/UOView/UOServices.jsx +9 -7
  63. package/src/components/ItaliaTheme/View/UOView/index.js +86 -0
  64. package/src/components/ItaliaTheme/View/VenueView/index.js +86 -0
  65. package/src/components/ItaliaTheme/View/index.js +255 -203
  66. package/src/components/ItaliaTheme/index.js +43 -15
  67. package/src/components/ItaliaTheme/manage/Widgets/IconWidget.jsx +1 -1
  68. package/src/components/ItaliaTheme/manage/Widgets/index.js +94 -0
  69. package/src/config/Blocks/blocks.js +87 -49
  70. package/src/config/Views/views.js +21 -20
  71. package/src/config/Widgets/widgets.js +12 -10
  72. package/src/config/italiaConfig.js +23 -21
  73. package/src/config/loadables.js +5 -0
  74. package/src/customizations/volto/components/manage/Blocks/Listing/ListingBody.jsx +5 -0
  75. package/src/customizations/volto/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +31 -14
  76. package/src/customizations/volto/components/theme/Search/Search.jsx +6 -1
  77. package/src/customizations/volto-feedback/components/FeedbackForm/Steps/{Commons.jsx → Commons/FormHeader.jsx} +2 -1
  78. package/src/helpers/IconWidget/IconAliasHelper.js +2 -1
  79. package/src/helpers/index.js +1 -2
  80. package/src/icons/index.js +161 -0
  81. package/src/theme/ItaliaTheme/Components/_metadata.scss +1 -0
  82. package/src/theme/ItaliaTheme/Widgets/_blocksWidget.scss +1 -0
  83. /package/src/components/ItaliaTheme/View/{__tests__/CartellaModulisticaView.test.jsx → __disabled_tests__/CartellaModulisticaView.test__disabled.jsx} +0 -0
  84. /package/src/components/ItaliaTheme/View/{__tests__/ModuloView.test.jsx → __disabled_tests__/ModuloView.test__disabled.jsx} +0 -0
  85. /package/src/components/ItaliaTheme/View/{__tests__/PersonaView.test.jsx → __disabled_tests__/PersonaView.test__disabled.jsx} +0 -0
  86. /package/src/components/ItaliaTheme/View/{__tests__/ServizioAChiSiRivolge.test.jsx → __disabled_tests__/ServizioAChiSiRivolge.test__disabled.jsx} +0 -0
  87. /package/src/components/ItaliaTheme/View/{__tests__/ServizioAccedi.test.jsx → __disabled_tests__/ServizioAccedi.test__disabled.jsx} +0 -0
  88. /package/src/components/ItaliaTheme/View/{__tests__/ServizioCasiParticolari.test.jsx → __disabled_tests__/ServizioCasiParticolari.test__disabled.jsx} +0 -0
  89. /package/src/components/ItaliaTheme/View/{__tests__/ServizioComeFare.test.jsx → __disabled_tests__/ServizioComeFare.test__disabled.jsx} +0 -0
  90. /package/src/components/ItaliaTheme/View/{__tests__/ServizioCondizioni.test.jsx → __disabled_tests__/ServizioCondizioni.test__disabled.jsx} +0 -0
  91. /package/src/components/ItaliaTheme/View/{__tests__/ServizioContatti.test.jsx → __disabled_tests__/ServizioContatti.test__disabled.jsx} +0 -0
  92. /package/src/components/ItaliaTheme/View/{__tests__/ServizioCosE.test.jsx → __disabled_tests__/ServizioCosE.test__disabled.jsx} +0 -0
  93. /package/src/components/ItaliaTheme/View/{__tests__/ServizioCosaServe.test.jsx → __disabled_tests__/ServizioCosaServe.test__disabled.jsx} +0 -0
  94. /package/src/components/ItaliaTheme/View/{__tests__/ServizioCosaSiOttiene.test.jsx → __disabled_tests__/ServizioCosaSiOttiene.test__disabled.jsx} +0 -0
  95. /package/src/components/ItaliaTheme/View/{__tests__/ServizioCostiVincoli.test.jsx → __disabled_tests__/ServizioCostiVincoli.test__disabled.jsx} +0 -0
  96. /package/src/components/ItaliaTheme/View/{__tests__/ServizioMetadati.test.jsx → __disabled_tests__/ServizioMetadati.test__disabled.jsx} +0 -0
  97. /package/src/components/ItaliaTheme/View/{__tests__/ServizioModulistica.test.jsx → __disabled_tests__/ServizioModulistica.test__disabled.jsx} +0 -0
  98. /package/src/components/ItaliaTheme/View/{__tests__/ServizioProcedure.test.jsx → __disabled_tests__/ServizioProcedure.test__disabled.jsx} +0 -0
  99. /package/src/components/ItaliaTheme/View/{__tests__/ServizioSitiEsterni.test.jsx → __disabled_tests__/ServizioSitiEsterni.test__disabled.jsx} +0 -0
  100. /package/src/components/ItaliaTheme/View/{__tests__/ServizioTempiScadenze.test.jsx → __disabled_tests__/ServizioTempiScadenze.test__disabled.jsx} +0 -0
  101. /package/src/components/ItaliaTheme/View/{__tests__/ServizioUlterioriInformazioni.test.jsx → __disabled_tests__/ServizioUlterioriInformazioni.test__disabled.jsx} +0 -0
  102. /package/src/components/ItaliaTheme/View/{__tests__/TrasparenzaView.test.jsx → __disabled_tests__/TrasparenzaView.test__disabled.jsx} +0 -0
Binary file
package/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
 
2
2
 
3
+ ## [11.20.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.19.0...v11.20.0) (2024-08-06)
4
+
5
+
6
+ ### Features
7
+
8
+ * added option to pass static choices and isClearable to select filter ([f67acda](https://github.com/RedTurtle/design-comuni-plone-theme/commit/f67acdaee5b06ab615b8338bc286ae01c02b7fd4))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * added new variable to set bg null ([#737](https://github.com/RedTurtle/design-comuni-plone-theme/issues/737)) ([5be0842](https://github.com/RedTurtle/design-comuni-plone-theme/commit/5be08427dc62200440cc0d3771c0a400e2871bab))
14
+
15
+
16
+ ### Maintenance
17
+
18
+ * set the ground for performance improvements ([#659](https://github.com/RedTurtle/design-comuni-plone-theme/issues/659)) ([e5951a2](https://github.com/RedTurtle/design-comuni-plone-theme/commit/e5951a22e51acf9f5deca0d12c848ee335e850fa))
19
+
20
+
21
+ ### Documentation
22
+
23
+ * updated publiccode ([53523eb](https://github.com/RedTurtle/design-comuni-plone-theme/commit/53523eb3a968c2102bf7dcc4025518fe6fe343c5))
24
+
25
+ ## [11.19.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.18.3...v11.19.0) (2024-08-01)
26
+
27
+
28
+ ### Features
29
+
30
+ * vista news su ct ComunicatoStampa ([#727](https://github.com/RedTurtle/design-comuni-plone-theme/issues/727)) ([a161c56](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a161c56fd326f03277c50ada59dee6d6166aeba0))
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * add clear:both to bottom-metadata and richtext-blocks classes ([#735](https://github.com/RedTurtle/design-comuni-plone-theme/issues/735)) ([e1a9e9a](https://github.com/RedTurtle/design-comuni-plone-theme/commit/e1a9e9a4b0f1e1cdcf424802a74278a9ed827e85))
36
+ * removed bg from template-wrapper inside block search ([#733](https://github.com/RedTurtle/design-comuni-plone-theme/issues/733)) ([965a201](https://github.com/RedTurtle/design-comuni-plone-theme/commit/965a201cc63334eb4820f39de58d8fcdc5c35460))
37
+ * updated logic to show paginator only if pages>1 in Uo and venue ([#734](https://github.com/RedTurtle/design-comuni-plone-theme/issues/734)) ([2ab208d](https://github.com/RedTurtle/design-comuni-plone-theme/commit/2ab208d21aab76332296d2fb21e5dd35a047f3d9))
38
+
39
+
40
+ ### Documentation
41
+
42
+ * updated publiccode ([0d51acd](https://github.com/RedTurtle/design-comuni-plone-theme/commit/0d51acd2a0d7efd10b0e07fe45d26fcc167cf270))
43
+
3
44
  ## [11.18.3](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.18.2...v11.18.3) (2024-07-26)
4
45
 
5
46
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "design-comuni-plone-theme",
3
3
  "description": "Volto Theme for Italia design guidelines",
4
4
  "license": "GPL-v3",
5
- "version": "11.18.3",
5
+ "version": "11.20.0",
6
6
  "main": "src/index.js",
7
7
  "repository": {
8
8
  "type": "git",
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-07-26'
230
+ releaseDate: '2024-08-06'
231
231
  softwareType: standalone/web
232
- softwareVersion: 11.18.3
232
+ softwareVersion: 11.20.0
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 Sidebar from './Sidebar.jsx';
17
+ import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Accordion';
18
18
 
19
19
  import { defineMessages } from 'react-intl';
20
20
 
@@ -0,0 +1,16 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export AccordionView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Accordion/View';
4
+
5
+ export const AccordionEdit = loadable(
6
+ () =>
7
+ import(
8
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Accordion/Edit'
9
+ ),
10
+ );
11
+ export const Sidebar = loadable(
12
+ () =>
13
+ import(
14
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Accordion/Sidebar'
15
+ ),
16
+ );
@@ -15,10 +15,8 @@ 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
- AlertSidebar,
20
- TextEditorWidget,
21
- } from 'design-comuni-plone-theme/components/ItaliaTheme';
18
+ import { TextEditorWidget } from 'design-comuni-plone-theme/components/ItaliaTheme';
19
+ import { Sidebar as AlertSidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Alert';
22
20
 
23
21
  const messages = defineMessages({
24
22
  content_placeholder: {
@@ -0,0 +1,16 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export AlertView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Alert/View';
4
+
5
+ export const AlertEdit = loadable(
6
+ () =>
7
+ import(
8
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Alert/Edit'
9
+ ),
10
+ );
11
+ export const Sidebar = loadable(
12
+ () =>
13
+ import(
14
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Alert/Sidebar'
15
+ ),
16
+ );
@@ -9,7 +9,7 @@ import {
9
9
  SubblocksWrapper,
10
10
  } from 'volto-subblocks';
11
11
  import { SidebarPortal } from '@plone/volto/components';
12
- import Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Sidebar.jsx';
12
+ import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/ArgumentsInEvidence';
13
13
  import { ArgumentsInEvidenceBackground } from 'design-comuni-plone-theme/components/ItaliaTheme';
14
14
 
15
15
  class Edit extends SubblocksEdit {
@@ -0,0 +1,17 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export ArgumentsInEvidenceView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/ArgumentsInEvidence/View';
4
+
5
+ export const ArgumentsInEvidenceEdit = loadable(
6
+ () =>
7
+ import(
8
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Edit'
9
+ ),
10
+ );
11
+
12
+ export const Sidebar = loadable(
13
+ () =>
14
+ import(
15
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Sidebar'
16
+ ),
17
+ );
@@ -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 Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/BandiSearch/Sidebar';
6
+ import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/BandiSearch';
7
7
  import { useIntl, defineMessages } from 'react-intl';
8
8
 
9
9
  const messages = defineMessages({
@@ -0,0 +1,16 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export BandiSearchView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/BandiSearch/View';
4
+
5
+ export const BandiSearchEdit = loadable(
6
+ () =>
7
+ import(
8
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/BandiSearch/Edit'
9
+ ),
10
+ );
11
+ export const Sidebar = loadable(
12
+ () =>
13
+ import(
14
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/BandiSearch/Sidebar'
15
+ ),
16
+ );
@@ -0,0 +1,10 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export ViewBreak from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Break/View';
4
+
5
+ export const EditBreak = loadable(
6
+ () =>
7
+ import(
8
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Break/Edit'
9
+ ),
10
+ );
@@ -5,8 +5,8 @@
5
5
 
6
6
  import React from 'react';
7
7
  import { SidebarPortal } from '@plone/volto/components';
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';
8
+ import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CTABlock';
9
+ import BodyWrapper from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CTABlock/BodyWrapper';
10
10
  import Block from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CTABlock/Block';
11
11
 
12
12
  class Edit extends React.Component {
@@ -0,0 +1,17 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export CTABlockView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CTABlock/View';
4
+
5
+ export const CTABlockEdit = loadable(
6
+ () =>
7
+ import(
8
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CTABlock/Edit'
9
+ ),
10
+ );
11
+
12
+ export const Sidebar = loadable(
13
+ () =>
14
+ import(
15
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CTABlock/Sidebar'
16
+ ),
17
+ );
@@ -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 ListingSidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Calendar/ListingSidebar';
6
+ import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Calendar';
7
7
 
8
8
  const Edit = ({ data, block, onChangeBlock, selected, pathname }) => {
9
9
  return (
@@ -16,11 +16,7 @@ const Edit = ({ data, block, onChangeBlock, selected, pathname }) => {
16
16
  onChangeBlock={onChangeBlock}
17
17
  />
18
18
  <SidebarPortal selected={selected}>
19
- <ListingSidebar
20
- data={data}
21
- block={block}
22
- onChangeBlock={onChangeBlock}
23
- />
19
+ <Sidebar data={data} block={block} onChangeBlock={onChangeBlock} />
24
20
  </SidebarPortal>
25
21
  </div>
26
22
  );
@@ -0,0 +1,17 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export CalendarView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Calendar/View';
4
+
5
+ export const CalendarEdit = loadable(
6
+ () =>
7
+ import(
8
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Calendar/Edit'
9
+ ),
10
+ );
11
+
12
+ export const Sidebar = loadable(
13
+ () =>
14
+ import(
15
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Calendar/ListingSidebar'
16
+ ),
17
+ );
@@ -56,9 +56,11 @@ const SelectFilter = ({
56
56
  }
57
57
  }, []);
58
58
 
59
- const select_options = options?.vocabulary
60
- ? vocabularies?.[options.vocabulary]?.items
61
- : selectOptions;
59
+ const select_options = options?.choices
60
+ ? options.choices
61
+ : options?.vocabulary
62
+ ? vocabularies?.[options.vocabulary]?.items
63
+ : selectOptions;
62
64
 
63
65
  return (
64
66
  <div className="me-lg-3 my-2 my-lg-1 filter-wrapper select-filter">
@@ -70,7 +72,7 @@ const SelectFilter = ({
70
72
  onChange(id, opt);
71
73
  }}
72
74
  options={select_options?.filter((opt) => !!opt.value?.toString()) ?? []}
73
- isClearable={true}
75
+ isClearable={options?.isClearable ?? true}
74
76
  isSearchable={isSearchable}
75
77
  // components={{
76
78
  // ClearIndicator: (props) => {
@@ -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 Sidebar from './Sidebar.jsx';
22
+ import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/ContactsBlock';
23
23
 
24
24
  const messages = defineMessages({
25
25
  addItem: {
@@ -0,0 +1,17 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export ContactsBlockView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/ContactsBlock/View';
4
+
5
+ export const ContactsBlockEdit = loadable(
6
+ () =>
7
+ import(
8
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/ContactsBlock/Edit'
9
+ ),
10
+ );
11
+
12
+ export const Sidebar = loadable(
13
+ () =>
14
+ import(
15
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/ContactsBlock/Sidebar'
16
+ ),
17
+ );
@@ -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 Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CountDown/Sidebar';
9
+ import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CountDown';
10
10
  import CountDown from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CountDown/CountDown';
11
11
 
12
12
  const messages = defineMessages({
@@ -0,0 +1,16 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export CountDownBlockView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CountDown/View';
4
+
5
+ export const CountDownBlockEdit = loadable(
6
+ () =>
7
+ import(
8
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CountDown/Edit'
9
+ ),
10
+ );
11
+ export const Sidebar = loadable(
12
+ () =>
13
+ import(
14
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CountDown/Sidebar'
15
+ ),
16
+ );
@@ -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 Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/EventSearch/Sidebar';
6
+ import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/EventSearch';
7
7
  import { useIntl, defineMessages } from 'react-intl';
8
8
 
9
9
  const messages = defineMessages({
@@ -0,0 +1,17 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export EventSearchView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/EventSearch/View';
4
+
5
+ export const EventSearchEdit = loadable(
6
+ () =>
7
+ import(
8
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/EventSearch/Edit'
9
+ ),
10
+ );
11
+
12
+ export const Sidebar = loadable(
13
+ () =>
14
+ import(
15
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/EventSearch/Sidebar'
16
+ ),
17
+ );
@@ -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 Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/HighlightedContent/Sidebar';
11
+ import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/HighlightedContent';
12
12
 
13
13
  const messages = defineMessages({
14
14
  emptySelection: {
@@ -0,0 +1,10 @@
1
+ import { getContent } from '@plone/volto/actions';
2
+ import { flattenToAppURL } from '@plone/volto/helpers';
3
+
4
+ export default function getHiglitedContentAsyncData(props) {
5
+ const { data, id, dispatch } = props;
6
+
7
+ const subrequestID = id;
8
+
9
+ return [dispatch(getContent(flattenToAppURL(data.href), null, subrequestID))];
10
+ }
@@ -0,0 +1,17 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export HighlightedContentView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/HighlightedContent/View';
4
+ export getHiglitedContentAsyncData from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/HighlightedContent/getAsyncData';
5
+
6
+ export const HighlightedContentEdit = loadable(
7
+ () =>
8
+ import(
9
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/HighlightedContent/Edit'
10
+ ),
11
+ );
12
+ export const Sidebar = loadable(
13
+ () =>
14
+ import(
15
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/HighlightedContent/Sidebar'
16
+ ),
17
+ );
@@ -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 Sidebar from './Sidebar.jsx';
22
+ import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/IconBlocks';
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 IconWidget from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/IconWidget';
13
+ import { IconWidget } from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets';
14
14
  import { defaultIconWidgetOptions } from 'design-comuni-plone-theme/helpers/index';
15
15
  import config from '@plone/volto/registry';
16
16
 
@@ -0,0 +1,17 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export IconBlocksView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/IconBlocks/View';
4
+
5
+ export const IconBlocksEdit = loadable(
6
+ () =>
7
+ import(
8
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/IconBlocks/Edit'
9
+ ),
10
+ );
11
+
12
+ export const Sidebar = loadable(
13
+ () =>
14
+ import(
15
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/IconBlocks/Sidebar'
16
+ ),
17
+ );
@@ -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 './Block/EditBlock';
22
- import Sidebar from './Sidebar.jsx';
21
+ import EditBlock from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/NumbersBlock/Block/EditBlock';
22
+ import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/NumbersBlock';
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 IconWidget from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/IconWidget';
8
+ import { IconWidget } from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets';
9
9
  import { defaultIconWidgetOptions } from 'design-comuni-plone-theme/helpers/index';
10
10
 
11
11
  const messages = defineMessages({
@@ -0,0 +1,17 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export NumbersBlockView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/NumbersBlock/View';
4
+
5
+ export const NumbersBlockEdit = loadable(
6
+ () =>
7
+ import(
8
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/NumbersBlock/Edit'
9
+ ),
10
+ );
11
+
12
+ export const Sidebar = loadable(
13
+ () =>
14
+ import(
15
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/NumbersBlock'
16
+ ),
17
+ );
@@ -3,10 +3,8 @@ 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
- BlockSearchSectionsSidebar,
8
- BlockSearchSectionsBody,
9
- } from 'design-comuni-plone-theme/components/ItaliaTheme';
6
+ import { BlockSearchSectionsBody } from 'design-comuni-plone-theme/components/ItaliaTheme';
7
+ import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/SearchSections';
10
8
  import { SearchUtils } from 'design-comuni-plone-theme/components';
11
9
 
12
10
  const Edit = ({
@@ -34,7 +32,7 @@ const Edit = ({
34
32
  <BlockSearchSectionsBody block={data} sections={sections} />
35
33
  </div>
36
34
  <SidebarPortal selected={selected}>
37
- <BlockSearchSectionsSidebar
35
+ <Sidebar
38
36
  data={data}
39
37
  block={block}
40
38
  onChangeBlock={onChangeBlock}
@@ -0,0 +1,17 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export SearchSectionsView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/SearchSections/View';
4
+
5
+ export const SearchSectionsEdit = loadable(
6
+ () =>
7
+ import(
8
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/SearchSections/Edit'
9
+ ),
10
+ );
11
+
12
+ export const Sidebar = loadable(
13
+ () =>
14
+ import(
15
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/SearchSections/SideBar'
16
+ ),
17
+ );
@@ -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 Sidebar from './Sidebar.jsx';
10
+ import { TextCardWithImageSidebar as Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/TextCard';
11
11
  import BodyWrapper from './BodyWrapper.jsx';
12
12
  import Block from './Block';
13
13
 
@@ -0,0 +1,23 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export TextCardView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/TextCard/SimpleCard/View';
4
+ export const TextCardEdit = loadable(
5
+ () =>
6
+ import(
7
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/TextCard/SimpleCard/Edit'
8
+ ),
9
+ );
10
+
11
+ export TextCardWithImageView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/TextCard/CardWithImage/View';
12
+ export const TextCardWithImageEdit = loadable(
13
+ () =>
14
+ import(
15
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Edit'
16
+ ),
17
+ );
18
+ export const TextCardWithImageSidebar = loadable(
19
+ () =>
20
+ import(
21
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar'
22
+ ),
23
+ );
@@ -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 Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/UOSearch/Sidebar';
6
+ import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/UOSearch';
7
7
  import { useIntl, defineMessages } from 'react-intl';
8
8
 
9
9
  const messages = defineMessages({
@@ -0,0 +1,17 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export UOSearchView from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/UOSearch/View';
4
+
5
+ export const UOSearchEdit = loadable(
6
+ () =>
7
+ import(
8
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/UOSearch/Edit'
9
+ ),
10
+ );
11
+
12
+ export const Sidebar = loadable(
13
+ () =>
14
+ import(
15
+ /* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/UOSearch/Sidebar'
16
+ ),
17
+ );
@@ -11,7 +11,7 @@ import {
11
11
  SubblocksEdit,
12
12
  SubblocksWrapper,
13
13
  } from 'volto-subblocks';
14
- import Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/VideoGallery/Sidebar';
14
+ import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/VideoGallery';
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';