design-comuni-plone-theme 11.20.2 → 11.20.4

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 (96) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/CHANGELOG.md +24 -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/Alert/Edit.jsx +4 -2
  7. package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Edit.jsx +1 -1
  8. package/src/components/ItaliaTheme/Blocks/BandiSearch/Edit.jsx +1 -1
  9. package/src/components/ItaliaTheme/Blocks/CTABlock/Edit.jsx +2 -2
  10. package/src/components/ItaliaTheme/Blocks/Calendar/Edit.jsx +6 -2
  11. package/src/components/ItaliaTheme/Blocks/ContactsBlock/Edit.jsx +1 -1
  12. package/src/components/ItaliaTheme/Blocks/CountDown/Edit.jsx +1 -1
  13. package/src/components/ItaliaTheme/Blocks/EventSearch/Edit.jsx +1 -1
  14. package/src/components/ItaliaTheme/Blocks/HighlightedContent/Edit.jsx +1 -1
  15. package/src/components/ItaliaTheme/Blocks/IconBlocks/Edit.jsx +1 -1
  16. package/src/components/ItaliaTheme/Blocks/IconBlocks/Sidebar.jsx +1 -1
  17. package/src/components/ItaliaTheme/Blocks/NumbersBlock/Edit.jsx +2 -2
  18. package/src/components/ItaliaTheme/Blocks/NumbersBlock/Sidebar.jsx +1 -1
  19. package/src/components/ItaliaTheme/Blocks/SearchSections/Edit.jsx +5 -3
  20. package/src/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Edit.jsx +1 -1
  21. package/src/components/ItaliaTheme/Blocks/UOSearch/Edit.jsx +1 -1
  22. package/src/components/ItaliaTheme/Blocks/VideoGallery/Edit.jsx +1 -1
  23. package/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx +7 -8
  24. package/src/components/ItaliaTheme/Icons/Icon.jsx +1 -1
  25. package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderEventDates.jsx +14 -0
  26. package/src/components/ItaliaTheme/View/Commons/index.jsx +20 -358
  27. package/src/components/ItaliaTheme/View/index.js +203 -255
  28. package/src/components/ItaliaTheme/index.js +14 -38
  29. package/src/components/ItaliaTheme/manage/Widgets/IconWidget.jsx +1 -1
  30. package/src/config/Blocks/blocks.js +49 -87
  31. package/src/config/Views/views.js +20 -20
  32. package/src/config/Widgets/widgets.js +10 -12
  33. package/src/config/italiaConfig.js +19 -21
  34. package/src/config/loadables.js +0 -6
  35. package/src/customizations/volto/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +14 -31
  36. package/src/customizations/volto/components/theme/Search/Search.jsx +1 -6
  37. package/src/customizations/volto-feedback/components/FeedbackForm/Steps/{Commons/FormHeader.jsx → Commons.jsx} +1 -2
  38. package/src/helpers/IconWidget/IconAliasHelper.js +1 -2
  39. package/src/helpers/index.js +2 -1
  40. package/src/components/ItaliaTheme/Blocks/Accordion/index.js +0 -16
  41. package/src/components/ItaliaTheme/Blocks/Alert/index.js +0 -16
  42. package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/index.js +0 -17
  43. package/src/components/ItaliaTheme/Blocks/BandiSearch/index.js +0 -16
  44. package/src/components/ItaliaTheme/Blocks/Break/index.js +0 -10
  45. package/src/components/ItaliaTheme/Blocks/CTABlock/index.js +0 -17
  46. package/src/components/ItaliaTheme/Blocks/Calendar/index.js +0 -17
  47. package/src/components/ItaliaTheme/Blocks/ContactsBlock/index.js +0 -17
  48. package/src/components/ItaliaTheme/Blocks/CountDown/index.js +0 -16
  49. package/src/components/ItaliaTheme/Blocks/EventSearch/index.js +0 -17
  50. package/src/components/ItaliaTheme/Blocks/HighlightedContent/getAsyncData.js +0 -10
  51. package/src/components/ItaliaTheme/Blocks/HighlightedContent/index.js +0 -17
  52. package/src/components/ItaliaTheme/Blocks/IconBlocks/index.js +0 -17
  53. package/src/components/ItaliaTheme/Blocks/NumbersBlock/index.js +0 -17
  54. package/src/components/ItaliaTheme/Blocks/SearchSections/index.js +0 -17
  55. package/src/components/ItaliaTheme/Blocks/TextCard/index.js +0 -23
  56. package/src/components/ItaliaTheme/Blocks/UOSearch/index.js +0 -17
  57. package/src/components/ItaliaTheme/Blocks/VideoGallery/index.js +0 -17
  58. package/src/components/ItaliaTheme/View/BandoView/index.js +0 -68
  59. package/src/components/ItaliaTheme/View/CartellaModulisticaView/index.js +0 -20
  60. package/src/components/ItaliaTheme/View/DocumentoView/index.js +0 -68
  61. package/src/components/ItaliaTheme/View/EventoView/index.js +0 -74
  62. package/src/components/ItaliaTheme/View/FAQ/FaqFolder/index.js +0 -32
  63. package/src/components/ItaliaTheme/View/FAQ/FaqView/index.js +0 -20
  64. package/src/components/ItaliaTheme/View/IncaricoView/index.js +0 -26
  65. package/src/components/ItaliaTheme/View/ModuloView/index.js +0 -44
  66. package/src/components/ItaliaTheme/View/NewsItemView/index.js +0 -62
  67. package/src/components/ItaliaTheme/View/PageView/index.js +0 -26
  68. package/src/components/ItaliaTheme/View/PaginaArgomentoView/index.js +0 -26
  69. package/src/components/ItaliaTheme/View/PersonaView/index.js +0 -44
  70. package/src/components/ItaliaTheme/View/PuntoDiContattoView/index.js +0 -26
  71. package/src/components/ItaliaTheme/View/ServizioView/index.js +0 -152
  72. package/src/components/ItaliaTheme/View/TrasparenzaView/index.js +0 -20
  73. package/src/components/ItaliaTheme/View/UOView/index.js +0 -86
  74. package/src/components/ItaliaTheme/View/VenueView/index.js +0 -86
  75. package/src/components/ItaliaTheme/manage/Widgets/index.js +0 -94
  76. package/src/icons/index.js +0 -161
  77. /package/src/components/ItaliaTheme/View/{__disabled_tests__/CartellaModulisticaView.test__disabled.jsx → __tests__/CartellaModulisticaView.test.jsx} +0 -0
  78. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ModuloView.test__disabled.jsx → __tests__/ModuloView.test.jsx} +0 -0
  79. /package/src/components/ItaliaTheme/View/{__disabled_tests__/PersonaView.test__disabled.jsx → __tests__/PersonaView.test.jsx} +0 -0
  80. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioAChiSiRivolge.test__disabled.jsx → __tests__/ServizioAChiSiRivolge.test.jsx} +0 -0
  81. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioAccedi.test__disabled.jsx → __tests__/ServizioAccedi.test.jsx} +0 -0
  82. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioCasiParticolari.test__disabled.jsx → __tests__/ServizioCasiParticolari.test.jsx} +0 -0
  83. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioComeFare.test__disabled.jsx → __tests__/ServizioComeFare.test.jsx} +0 -0
  84. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioCondizioni.test__disabled.jsx → __tests__/ServizioCondizioni.test.jsx} +0 -0
  85. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioContatti.test__disabled.jsx → __tests__/ServizioContatti.test.jsx} +0 -0
  86. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioCosE.test__disabled.jsx → __tests__/ServizioCosE.test.jsx} +0 -0
  87. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioCosaServe.test__disabled.jsx → __tests__/ServizioCosaServe.test.jsx} +0 -0
  88. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioCosaSiOttiene.test__disabled.jsx → __tests__/ServizioCosaSiOttiene.test.jsx} +0 -0
  89. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioCostiVincoli.test__disabled.jsx → __tests__/ServizioCostiVincoli.test.jsx} +0 -0
  90. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioMetadati.test__disabled.jsx → __tests__/ServizioMetadati.test.jsx} +0 -0
  91. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioModulistica.test__disabled.jsx → __tests__/ServizioModulistica.test.jsx} +0 -0
  92. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioProcedure.test__disabled.jsx → __tests__/ServizioProcedure.test.jsx} +0 -0
  93. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioSitiEsterni.test__disabled.jsx → __tests__/ServizioSitiEsterni.test.jsx} +0 -0
  94. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioTempiScadenze.test__disabled.jsx → __tests__/ServizioTempiScadenze.test.jsx} +0 -0
  95. /package/src/components/ItaliaTheme/View/{__disabled_tests__/ServizioUlterioriInformazioni.test__disabled.jsx → __tests__/ServizioUlterioriInformazioni.test.jsx} +0 -0
  96. /package/src/components/ItaliaTheme/View/{__disabled_tests__/TrasparenzaView.test__disabled.jsx → __tests__/TrasparenzaView.test.jsx} +0 -0
Binary file
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
 
2
2
 
3
+ ## [11.20.4](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.20.3...v11.20.4) (2024-08-14)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * changed rrule translation in PageHeaderEventDates ([#743](https://github.com/RedTurtle/design-comuni-plone-theme/issues/743)) ([9a7d59f](https://github.com/RedTurtle/design-comuni-plone-theme/commit/9a7d59f0927f34dbab74c44d09029904e07d5067))
9
+
10
+
11
+ ### Documentation
12
+
13
+ * updated publiccode ([e0c1f3c](https://github.com/RedTurtle/design-comuni-plone-theme/commit/e0c1f3ceaf1134cd0b5eec8352eeab2a2632e154))
14
+
15
+ ## [11.20.3](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.20.2...v11.20.3) (2024-08-14)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * 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))
21
+
22
+
23
+ ### Documentation
24
+
25
+ * updated publiccode ([8a3681e](https://github.com/RedTurtle/design-comuni-plone-theme/commit/8a3681eacd072df73e3139f38601b760193c660a))
26
+
3
27
  ## [11.20.2](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.20.1...v11.20.2) (2024-08-12)
4
28
 
5
29
 
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.20.2",
5
+ "version": "11.20.4",
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-08-12'
230
+ releaseDate: '2024-08-14'
231
231
  softwareType: standalone/web
232
- softwareVersion: 11.20.2
232
+ softwareVersion: 11.20.4
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 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Accordion';
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 { TextEditorWidget } from 'design-comuni-plone-theme/components/ItaliaTheme';
19
- import { Sidebar as AlertSidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Alert';
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 { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/ArgumentsInEvidence';
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 { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/BandiSearch';
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 { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CTABlock';
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 { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Calendar';
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
- <Sidebar data={data} block={block} onChangeBlock={onChangeBlock} />
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 { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/ContactsBlock';
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 { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CountDown';
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 { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/EventSearch';
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 { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/HighlightedContent';
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 { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/IconBlocks';
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 { IconWidget } from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets';
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 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/NumbersBlock/Block/EditBlock';
22
- import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/NumbersBlock';
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 { IconWidget } from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets';
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 { BlockSearchSectionsBody } from 'design-comuni-plone-theme/components/ItaliaTheme';
7
- import { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/SearchSections';
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
- <Sidebar
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 { TextCardWithImageSidebar as Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/TextCard';
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 { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/UOSearch';
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 { Sidebar } from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/VideoGallery';
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
- * FontAwesomeIcon component.
3
- * @module components/ItaliaTheme/Icons/FontAwesomeIcon
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 { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
7
+ import { fontAwesomeAliases } from 'design-comuni-plone-theme/helpers/index';
8
8
 
9
9
  const FontAwesomeIcon = (props) => {
10
- const { className, icon, prefix, title, fontAwesomeAliases } = props;
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,9 +27,9 @@ const FontAwesomeIcon = (props) => {
27
27
  let iconName = '';
28
28
  if (Array.isArray(icon)) {
29
29
  prefixKey = icon[0];
30
- iconName = getIconAlias(icon[1], fontAwesomeAliases.default);
30
+ iconName = getIconAlias(icon[1], fontAwesomeAliases);
31
31
  } else {
32
- iconName = getIconAlias(icon, fontAwesomeAliases.default);
32
+ iconName = getIconAlias(icon, fontAwesomeAliases);
33
33
  }
34
34
 
35
35
  return [
@@ -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 injectLazyLibs(['fontAwesomeAliases'])(FontAwesomeIcon);
92
+ export default FontAwesomeIcon;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Icon component.
3
- * @module components/ItaliaTheme/Icons/Icon
3
+ * @module components/ItaliaTheme/Icons/SectionIcon
4
4
  */
5
5
  import React from 'react';
6
6
  import classNames from 'classnames';
@@ -34,6 +34,10 @@ const PageHeaderEventDates = ({ content, moment, rrule }) => {
34
34
 
35
35
  if (content['@type'] === 'Event') {
36
36
  if (content.recurrence) {
37
+ const isRecurrenceByDay = content.recurrence.includes('BYDAY=+');
38
+ const isWeekdaySunday = content.recurrence
39
+ .split('BYDAY')[1]
40
+ ?.includes('SU');
37
41
  const rruleSet = rrulestr(content.recurrence, {
38
42
  compatible: true, //If set to True, the parser will operate in RFC-compatible mode. Right now it means that unfold will be turned on, and if a DTSTART is found, it will be considered the first recurrence instance, as documented in the RFC.
39
43
  forceset: true,
@@ -41,6 +45,16 @@ const PageHeaderEventDates = ({ content, moment, rrule }) => {
41
45
  const RRULE_LANGUAGE = rrulei18n(intl, Moment);
42
46
  eventRecurrenceText = rruleSet.rrules()[0]?.toText(
43
47
  (t) => {
48
+ if (Moment.locale(intl.locale) === 'it' && isRecurrenceByDay) {
49
+ RRULE_LANGUAGE.strings.th = '°';
50
+ RRULE_LANGUAGE.strings.nd = '°';
51
+ RRULE_LANGUAGE.strings.rd = '°';
52
+ RRULE_LANGUAGE.strings.st = '°';
53
+
54
+ if (isWeekdaySunday) {
55
+ RRULE_LANGUAGE.strings['on the'] = 'la';
56
+ }
57
+ }
44
58
  return RRULE_LANGUAGE.strings[t];
45
59
  },
46
60
  RRULE_LANGUAGE,