design-comuni-plone-theme 11.19.0 → 11.20.1
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 +35 -0
- package/RELEASE.md +6 -0
- package/locales/de/LC_MESSAGES/volto.po +1 -1
- package/locales/en/LC_MESSAGES/volto.po +66 -66
- package/locales/es/LC_MESSAGES/volto.po +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +1 -1
- package/locales/it/LC_MESSAGES/volto.po +2 -2
- package/locales/volto.pot +2 -2
- 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/Accordion/index.js +16 -0
- package/src/components/ItaliaTheme/Blocks/Alert/Edit.jsx +2 -4
- package/src/components/ItaliaTheme/Blocks/Alert/index.js +16 -0
- package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/index.js +17 -0
- package/src/components/ItaliaTheme/Blocks/BandiSearch/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/BandiSearch/index.js +16 -0
- package/src/components/ItaliaTheme/Blocks/Break/index.js +10 -0
- package/src/components/ItaliaTheme/Blocks/CTABlock/Edit.jsx +2 -2
- package/src/components/ItaliaTheme/Blocks/CTABlock/index.js +17 -0
- package/src/components/ItaliaTheme/Blocks/Calendar/Edit.jsx +2 -6
- package/src/components/ItaliaTheme/Blocks/Calendar/index.js +17 -0
- package/src/components/ItaliaTheme/Blocks/Common/SearchFilters/SelectFilter.jsx +6 -4
- package/src/components/ItaliaTheme/Blocks/ContactsBlock/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/ContactsBlock/index.js +17 -0
- package/src/components/ItaliaTheme/Blocks/CountDown/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/CountDown/index.js +16 -0
- package/src/components/ItaliaTheme/Blocks/EventSearch/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/EventSearch/index.js +17 -0
- package/src/components/ItaliaTheme/Blocks/HighlightedContent/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/HighlightedContent/getAsyncData.js +10 -0
- package/src/components/ItaliaTheme/Blocks/HighlightedContent/index.js +17 -0
- 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/IconBlocks/index.js +17 -0
- 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/NumbersBlock/index.js +17 -0
- package/src/components/ItaliaTheme/Blocks/SearchSections/Edit.jsx +3 -5
- package/src/components/ItaliaTheme/Blocks/SearchSections/index.js +17 -0
- package/src/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/TextCard/index.js +23 -0
- package/src/components/ItaliaTheme/Blocks/UOSearch/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/UOSearch/index.js +17 -0
- package/src/components/ItaliaTheme/Blocks/VideoGallery/Edit.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/VideoGallery/index.js +17 -0
- package/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx +8 -7
- package/src/components/ItaliaTheme/Icons/Icon.jsx +1 -1
- package/src/components/ItaliaTheme/View/BandoView/index.js +68 -0
- package/src/components/ItaliaTheme/View/CartellaModulisticaView/index.js +20 -0
- package/src/components/ItaliaTheme/View/Commons/Dates.jsx +15 -0
- package/src/components/ItaliaTheme/View/Commons/index.jsx +358 -20
- package/src/components/ItaliaTheme/View/DocumentoView/index.js +68 -0
- package/src/components/ItaliaTheme/View/EventoView/index.js +74 -0
- package/src/components/ItaliaTheme/View/FAQ/FaqFolder/index.js +32 -0
- package/src/components/ItaliaTheme/View/FAQ/FaqView/index.js +20 -0
- package/src/components/ItaliaTheme/View/IncaricoView/index.js +26 -0
- package/src/components/ItaliaTheme/View/ModuloView/index.js +44 -0
- package/src/components/ItaliaTheme/View/NewsItemView/index.js +62 -0
- package/src/components/ItaliaTheme/View/PageView/index.js +26 -0
- package/src/components/ItaliaTheme/View/PaginaArgomentoView/index.js +26 -0
- package/src/components/ItaliaTheme/View/PersonaView/index.js +44 -0
- package/src/components/ItaliaTheme/View/PuntoDiContattoView/index.js +26 -0
- package/src/components/ItaliaTheme/View/ServizioView/index.js +152 -0
- package/src/components/ItaliaTheme/View/TrasparenzaView/index.js +20 -0
- package/src/components/ItaliaTheme/View/UOView/index.js +86 -0
- package/src/components/ItaliaTheme/View/VenueView/index.js +86 -0
- package/src/components/ItaliaTheme/View/index.js +255 -203
- package/src/components/ItaliaTheme/index.js +43 -15
- package/src/components/ItaliaTheme/manage/Widgets/IconWidget.jsx +1 -1
- package/src/components/ItaliaTheme/manage/Widgets/index.js +94 -0
- package/src/config/Blocks/blocks.js +87 -49
- package/src/config/Views/views.js +20 -20
- package/src/config/Widgets/widgets.js +12 -10
- package/src/config/italiaConfig.js +23 -21
- package/src/config/loadables.js +5 -0
- package/src/customizations/volto/components/manage/Blocks/Listing/ListingBody.jsx +6 -1
- package/src/customizations/volto/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +31 -14
- package/src/customizations/volto/components/theme/Search/Search.jsx +6 -1
- package/src/customizations/volto-feedback/components/FeedbackForm/Steps/{Commons.jsx → Commons/FormHeader.jsx} +2 -1
- package/src/helpers/IconWidget/IconAliasHelper.js +2 -1
- package/src/helpers/index.js +1 -2
- package/src/icons/index.js +161 -0
- package/src/overrideTranslations.jsx +1 -1
- /package/src/components/ItaliaTheme/View/{__tests__/CartellaModulisticaView.test.jsx → __disabled_tests__/CartellaModulisticaView.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ModuloView.test.jsx → __disabled_tests__/ModuloView.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/PersonaView.test.jsx → __disabled_tests__/PersonaView.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioAChiSiRivolge.test.jsx → __disabled_tests__/ServizioAChiSiRivolge.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioAccedi.test.jsx → __disabled_tests__/ServizioAccedi.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioCasiParticolari.test.jsx → __disabled_tests__/ServizioCasiParticolari.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioComeFare.test.jsx → __disabled_tests__/ServizioComeFare.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioCondizioni.test.jsx → __disabled_tests__/ServizioCondizioni.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioContatti.test.jsx → __disabled_tests__/ServizioContatti.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioCosE.test.jsx → __disabled_tests__/ServizioCosE.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioCosaServe.test.jsx → __disabled_tests__/ServizioCosaServe.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioCosaSiOttiene.test.jsx → __disabled_tests__/ServizioCosaSiOttiene.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioCostiVincoli.test.jsx → __disabled_tests__/ServizioCostiVincoli.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioMetadati.test.jsx → __disabled_tests__/ServizioMetadati.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioModulistica.test.jsx → __disabled_tests__/ServizioModulistica.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioProcedure.test.jsx → __disabled_tests__/ServizioProcedure.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioSitiEsterni.test.jsx → __disabled_tests__/ServizioSitiEsterni.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioTempiScadenze.test.jsx → __disabled_tests__/ServizioTempiScadenze.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/ServizioUlterioriInformazioni.test.jsx → __disabled_tests__/ServizioUlterioriInformazioni.test__disabled.jsx} +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/TrasparenzaView.test.jsx → __disabled_tests__/TrasparenzaView.test__disabled.jsx} +0 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import loadable from '@loadable/component';
|
|
2
|
+
|
|
3
|
+
export FileWidget from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/FileWidget'; //non metterlo nel boundle dei widget perchè è usato dal blocco form in view
|
|
4
|
+
|
|
5
|
+
export const TextEditorWidget = loadable(() =>
|
|
6
|
+
import(
|
|
7
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/TextEditorWidget'
|
|
8
|
+
),
|
|
9
|
+
);
|
|
10
|
+
export const LinkToWidget = loadable(() =>
|
|
11
|
+
import(
|
|
12
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/LinkToWidget'
|
|
13
|
+
),
|
|
14
|
+
);
|
|
15
|
+
export const ColorListWidget = loadable(() =>
|
|
16
|
+
import(
|
|
17
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/ColorListWidget'
|
|
18
|
+
),
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
export const PathFiltersWidget = loadable(() =>
|
|
22
|
+
import(
|
|
23
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/PathFiltersWidget'
|
|
24
|
+
),
|
|
25
|
+
);
|
|
26
|
+
export const LocationFiltersWidget = loadable(() =>
|
|
27
|
+
import(
|
|
28
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/LocationFiltersWidget'
|
|
29
|
+
),
|
|
30
|
+
);
|
|
31
|
+
export const CanaleDigitaleWidget = loadable(() =>
|
|
32
|
+
import(
|
|
33
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/CanaleDigitaleWidget'
|
|
34
|
+
),
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
export const IconWidget = loadable(() =>
|
|
38
|
+
import(
|
|
39
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/IconWidget'
|
|
40
|
+
),
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
export const IconPreviewWidget = loadable(() =>
|
|
44
|
+
import(
|
|
45
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/IconPreviewWidget'
|
|
46
|
+
),
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
export const SearchSectionsConfigurationWidget = loadable(() =>
|
|
50
|
+
import(
|
|
51
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationWidget'
|
|
52
|
+
),
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
export const CharCounterTextareaWidget = loadable(() =>
|
|
56
|
+
import(
|
|
57
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/CharCounterTextareaWidget'
|
|
58
|
+
),
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
export const CharCounterTextWidget = loadable(() =>
|
|
62
|
+
import(
|
|
63
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/CharCounterTextWidget'
|
|
64
|
+
),
|
|
65
|
+
);
|
|
66
|
+
export const SubsiteSocialLinksWidget = loadable(() =>
|
|
67
|
+
import(
|
|
68
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/SubsiteSocialLinksWidget'
|
|
69
|
+
),
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
export const MenuConfigurationForm = loadable(() =>
|
|
73
|
+
import(
|
|
74
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/MenuConfigurationForm'
|
|
75
|
+
),
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
export const SecondaryMenuConfigurationForm = loadable(() =>
|
|
79
|
+
import(
|
|
80
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/SecondaryMenuConfigurationForm'
|
|
81
|
+
),
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
export const SubFooterConfigurationForm = loadable(() =>
|
|
85
|
+
import(
|
|
86
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/SubFooterConfigurationForm'
|
|
87
|
+
),
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
export const LuoghiCorrelatiEventoWidget = loadable(() =>
|
|
91
|
+
import(
|
|
92
|
+
/* webpackChunkName: "DCPTManage" */ 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/LuoghiCorrelatiEventoWidget'
|
|
93
|
+
),
|
|
94
|
+
);
|
|
@@ -1,69 +1,106 @@
|
|
|
1
|
-
import newsSVG from '@plone/volto/icons/news.svg';
|
|
2
1
|
import searchIcon from 'bootstrap-italia/src/svg/it-search.svg';
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
2
|
+
|
|
3
|
+
import listArrowsSVG from '@plone/volto/icons/list-arrows.svg';
|
|
4
|
+
import {
|
|
5
|
+
AccordionView,
|
|
6
|
+
AccordionEdit,
|
|
7
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Accordion';
|
|
7
8
|
|
|
8
9
|
import alertSVG from '@plone/volto/icons/alert.svg';
|
|
9
|
-
import
|
|
10
|
-
|
|
10
|
+
import {
|
|
11
|
+
AlertView,
|
|
12
|
+
AlertEdit,
|
|
13
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Alert';
|
|
11
14
|
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
+
import noteSvg from 'bootstrap-italia/src/svg/it-note.svg';
|
|
16
|
+
import {
|
|
17
|
+
ArgumentsInEvidenceView,
|
|
18
|
+
ArgumentsInEvidenceEdit,
|
|
19
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/ArgumentsInEvidence';
|
|
15
20
|
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
import {
|
|
22
|
+
BandiSearchView,
|
|
23
|
+
BandiSearchEdit,
|
|
24
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/BandiSearch';
|
|
25
|
+
|
|
26
|
+
import divideHorizontalSVG from '@plone/volto/icons/divide-horizontal.svg';
|
|
27
|
+
import {
|
|
28
|
+
ViewBreak,
|
|
29
|
+
EditBreak,
|
|
30
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Break';
|
|
20
31
|
|
|
21
|
-
import
|
|
22
|
-
import
|
|
32
|
+
import calendarSvg from 'bootstrap-italia/src/svg/it-calendar.svg';
|
|
33
|
+
import {
|
|
34
|
+
CalendarView,
|
|
35
|
+
CalendarEdit,
|
|
36
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/Calendar';
|
|
23
37
|
|
|
24
|
-
import
|
|
25
|
-
import
|
|
38
|
+
import emailSVG from '@plone/volto/icons/email.svg';
|
|
39
|
+
import {
|
|
40
|
+
ContactsBlockView,
|
|
41
|
+
ContactsBlockEdit,
|
|
42
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/ContactsBlock';
|
|
26
43
|
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
import TextCardWithImageEdit from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/TextCard/CardWithImage/Edit';
|
|
44
|
+
import { countDownSVG } from 'design-comuni-plone-theme/icons';
|
|
45
|
+
import {
|
|
46
|
+
CountDownBlockView,
|
|
47
|
+
CountDownBlockEdit,
|
|
48
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CountDown';
|
|
33
49
|
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
|
|
50
|
+
import flashSVG from '@plone/volto/icons/flash.svg';
|
|
51
|
+
import {
|
|
52
|
+
CTABlockView,
|
|
53
|
+
CTABlockEdit,
|
|
54
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/CTABlock';
|
|
37
55
|
|
|
38
|
-
import
|
|
39
|
-
|
|
40
|
-
|
|
56
|
+
import {
|
|
57
|
+
EventSearchView,
|
|
58
|
+
EventSearchEdit,
|
|
59
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/EventSearch';
|
|
41
60
|
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
|
|
61
|
+
import newsSVG from '@plone/volto/icons/news.svg';
|
|
62
|
+
import {
|
|
63
|
+
HighlightedContentView,
|
|
64
|
+
// getHiglitedContentAsyncData,
|
|
65
|
+
HighlightedContentEdit,
|
|
66
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/HighlightedContent';
|
|
45
67
|
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
|
|
68
|
+
import { iconBlocksSVG } from 'design-comuni-plone-theme/icons';
|
|
69
|
+
import {
|
|
70
|
+
IconBlocksView,
|
|
71
|
+
IconBlocksEdit,
|
|
72
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/IconBlocks';
|
|
49
73
|
|
|
50
|
-
import numbersBlockSVG from 'design-comuni-plone-theme/icons
|
|
51
|
-
import
|
|
52
|
-
|
|
74
|
+
import { numbersBlockSVG } from 'design-comuni-plone-theme/icons';
|
|
75
|
+
import {
|
|
76
|
+
NumbersBlockView,
|
|
77
|
+
NumbersBlockEdit,
|
|
78
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/NumbersBlock';
|
|
53
79
|
|
|
54
|
-
import
|
|
55
|
-
|
|
80
|
+
import {
|
|
81
|
+
SearchSectionsView,
|
|
82
|
+
SearchSectionsEdit,
|
|
83
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/SearchSections';
|
|
56
84
|
|
|
57
|
-
import
|
|
58
|
-
import
|
|
85
|
+
import { simpleTextCardSVG } from 'design-comuni-plone-theme/icons';
|
|
86
|
+
import { imageTextCardSVG } from 'design-comuni-plone-theme/icons';
|
|
87
|
+
import {
|
|
88
|
+
TextCardView,
|
|
89
|
+
TextCardEdit,
|
|
90
|
+
TextCardWithImageView,
|
|
91
|
+
TextCardWithImageEdit,
|
|
92
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/TextCard';
|
|
59
93
|
|
|
60
|
-
import
|
|
61
|
-
|
|
62
|
-
|
|
94
|
+
import {
|
|
95
|
+
UOSearchView,
|
|
96
|
+
UOSearchEdit,
|
|
97
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/UOSearch';
|
|
63
98
|
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
|
|
99
|
+
import videoSVG from '@plone/volto/icons/video.svg';
|
|
100
|
+
import {
|
|
101
|
+
VideoGalleryView,
|
|
102
|
+
VideoGalleryEdit,
|
|
103
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/VideoGallery';
|
|
67
104
|
|
|
68
105
|
import { cloneBlock } from 'design-comuni-plone-theme/config/Blocks/ListingOptions';
|
|
69
106
|
|
|
@@ -82,6 +119,7 @@ const italiaBlocks = {
|
|
|
82
119
|
view: [],
|
|
83
120
|
},
|
|
84
121
|
sidebarTab: 1,
|
|
122
|
+
// getAsyncData: getHiglitedContentAsyncData,
|
|
85
123
|
},
|
|
86
124
|
searchSections: {
|
|
87
125
|
id: 'searchSections',
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { defineMessages } from 'react-intl';
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
3
|
+
import {
|
|
4
|
+
PageView,
|
|
5
|
+
NewsItemView,
|
|
6
|
+
UOView,
|
|
7
|
+
PersonaView,
|
|
8
|
+
VenueView,
|
|
9
|
+
ServizioView,
|
|
10
|
+
EventoView,
|
|
11
|
+
PaginaArgomentoView,
|
|
12
|
+
CartellaModulisticaView,
|
|
13
|
+
DocumentoView,
|
|
14
|
+
ModuloView,
|
|
15
|
+
BandoView,
|
|
16
|
+
FaqFolderView,
|
|
17
|
+
FaqView,
|
|
18
|
+
TrasparenzaView,
|
|
19
|
+
DettagliProcedimentiView,
|
|
20
|
+
PuntoDiContattoView,
|
|
21
|
+
IncaricoView,
|
|
22
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/View';
|
|
23
23
|
|
|
24
24
|
defineMessages({
|
|
25
25
|
modulistica_view: {
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import CharCounterTextWidget from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/CharCounterTextWidget';
|
|
2
|
+
|
|
4
3
|
import { DatetimeWidget } from '@plone/volto/config/Widgets';
|
|
5
4
|
import { ArrayWidget, WysiwygWidget } from '@plone/volto/components';
|
|
6
5
|
import { MultilingualWidget } from 'volto-multilingual-widget';
|
|
7
|
-
|
|
8
|
-
import SubsiteSocialLinksWidget from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/SubsiteSocialLinksWidget';
|
|
9
|
-
import MenuConfigurationForm from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/MenuConfigurationForm';
|
|
10
|
-
import SecondaryMenuConfigurationForm from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/SecondaryMenuConfigurationForm';
|
|
11
|
-
import SubFooterConfigurationForm from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/SubFooterConfigurationForm';
|
|
12
|
-
import SearchSectionsConfigurationWidget from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets/SearchSectionsConfigurationWidget/SearchSectionsConfigurationWidget';
|
|
6
|
+
|
|
13
7
|
import { defaultIconWidgetOptions } from 'design-comuni-plone-theme/helpers';
|
|
14
8
|
import {
|
|
9
|
+
CharCounterTextareaWidget,
|
|
10
|
+
SearchSectionsConfigurationWidget,
|
|
11
|
+
CharCounterTextWidget,
|
|
12
|
+
IconWidget,
|
|
13
|
+
SubsiteSocialLinksWidget,
|
|
14
|
+
MenuConfigurationForm,
|
|
15
|
+
SecondaryMenuConfigurationForm,
|
|
16
|
+
SubFooterConfigurationForm,
|
|
15
17
|
ColorListWidget,
|
|
16
18
|
PathFiltersWidget,
|
|
17
19
|
LocationFiltersWidget,
|
|
18
20
|
CanaleDigitaleWidget,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
LuoghiCorrelatiEventoWidget,
|
|
22
|
+
} from 'design-comuni-plone-theme/components/ItaliaTheme/manage/Widgets';
|
|
21
23
|
|
|
22
24
|
const getItaliaWidgets = (config) => {
|
|
23
25
|
config.registerComponent({
|
|
@@ -40,25 +40,27 @@ import SiteSettingsExtras from 'design-comuni-plone-theme/components/ItaliaTheme
|
|
|
40
40
|
import { loadables as ItaliaLoadables } from 'design-comuni-plone-theme/config/loadables';
|
|
41
41
|
|
|
42
42
|
// CTs icons
|
|
43
|
-
import
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
43
|
+
import {
|
|
44
|
+
faFileInvoiceSVG,
|
|
45
|
+
faFolderOpenSVG,
|
|
46
|
+
faImageSVG,
|
|
47
|
+
faFileSVG,
|
|
48
|
+
faLinkSVG,
|
|
49
|
+
faBoxOpenSVG,
|
|
50
|
+
faArchiveSVG,
|
|
51
|
+
faFileAltSVG,
|
|
52
|
+
faCalendarAltSVG,
|
|
53
|
+
faMapMarkedAltSVG,
|
|
54
|
+
faNewspaperSVG,
|
|
55
|
+
faUserSVG,
|
|
56
|
+
faCogSVG,
|
|
57
|
+
faSitemapSVG,
|
|
58
|
+
faBuildingSVG,
|
|
59
|
+
faFileDownloadSVG,
|
|
60
|
+
faQuestionSVG,
|
|
61
|
+
bandoSVG,
|
|
62
|
+
logSVG,
|
|
63
|
+
} from 'design-comuni-plone-theme/icons';
|
|
62
64
|
|
|
63
65
|
import applyRichTextConfig from 'design-comuni-plone-theme/config/RichTextEditor/config';
|
|
64
66
|
|
|
@@ -68,8 +70,8 @@ import { schemaListing } from 'design-comuni-plone-theme/components/ItaliaTheme/
|
|
|
68
70
|
|
|
69
71
|
import reducers from 'design-comuni-plone-theme/reducers';
|
|
70
72
|
|
|
71
|
-
const ReleaseLog = loadable(
|
|
72
|
-
import('design-comuni-plone-theme/components/ReleaseLog/ReleaseLog'),
|
|
73
|
+
const ReleaseLog = loadable(
|
|
74
|
+
() => import('design-comuni-plone-theme/components/ReleaseLog/ReleaseLog'),
|
|
73
75
|
);
|
|
74
76
|
|
|
75
77
|
const messages = defineMessages({
|
package/src/config/loadables.js
CHANGED
|
@@ -5,5 +5,10 @@ export const loadables = {
|
|
|
5
5
|
reactSlick: loadable.lib(() => import('react-slick')),
|
|
6
6
|
rrule: loadable.lib(() => import('rrule')),
|
|
7
7
|
htmlDiffLib: loadable.lib(() => import('htmldiff-js')),
|
|
8
|
+
fontAwesomeAliases: loadable.lib(() =>
|
|
9
|
+
import(
|
|
10
|
+
/* webpackChunkName: "DCPTIcons" */ 'design-comuni-plone-theme/helpers/IconWidget/IconAliasHelper'
|
|
11
|
+
),
|
|
12
|
+
),
|
|
8
13
|
...subsitesLoadables,
|
|
9
14
|
};
|
|
@@ -6,6 +6,7 @@ CUSTOMIZATIONS:
|
|
|
6
6
|
- 'background class' and 'block class' logic for search block
|
|
7
7
|
- search block integration
|
|
8
8
|
- pass 'block' prop to listing variation
|
|
9
|
+
- added bg_color = "" if is a search block
|
|
9
10
|
*/
|
|
10
11
|
import React from 'react';
|
|
11
12
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
@@ -77,12 +78,16 @@ const ListingBody = React.memo(
|
|
|
77
78
|
? `bg-${data.bg_color}`
|
|
78
79
|
: 'bg-light';
|
|
79
80
|
|
|
81
|
+
if (isSearchBlockResults) {
|
|
82
|
+
bg_color = '';
|
|
83
|
+
}
|
|
84
|
+
|
|
80
85
|
if (block.template === 'gridGalleryTemplate') {
|
|
81
86
|
return `section section-muted section-inset-shadow py-5 ${bg_color} ${
|
|
82
87
|
isSearchBlockResults ? '' : 'full-width'
|
|
83
88
|
}`;
|
|
84
89
|
} else {
|
|
85
|
-
return `py-5 ${
|
|
90
|
+
return `py-5 ${bg_color} ${
|
|
86
91
|
isSearchBlockResults ? 'template-wrapper' : 'full-width'
|
|
87
92
|
}`;
|
|
88
93
|
}
|
package/src/customizations/volto/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx
CHANGED
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import React, { Component } from 'react';
|
|
11
|
+
import { compose } from 'redux';
|
|
12
|
+
import { connect } from 'react-redux';
|
|
11
13
|
import PropTypes from 'prop-types';
|
|
12
|
-
import
|
|
13
|
-
import { RRule, RRuleSet, rrulestr } from 'rrule';
|
|
14
|
+
//import { RRule, RRuleSet, rrulestr } from 'rrule';
|
|
14
15
|
|
|
15
16
|
import cx from 'classnames';
|
|
16
17
|
import { isEqual, map, find, concat, remove } from 'lodash';
|
|
@@ -24,6 +25,8 @@ import {
|
|
|
24
25
|
Modal,
|
|
25
26
|
Header,
|
|
26
27
|
} from 'semantic-ui-react';
|
|
28
|
+
import { toBackendLang } from '@plone/volto/helpers';
|
|
29
|
+
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
27
30
|
|
|
28
31
|
import { SelectWidget, Icon, DatetimeWidget } from '@plone/volto/components';
|
|
29
32
|
|
|
@@ -181,8 +184,10 @@ class RecurrenceWidget extends Component {
|
|
|
181
184
|
*/
|
|
182
185
|
constructor(props, intl) {
|
|
183
186
|
super(props);
|
|
187
|
+
const { RRuleSet, rrulestr } = props.rrule;
|
|
184
188
|
|
|
185
|
-
moment
|
|
189
|
+
this.moment = this.props.moment.default;
|
|
190
|
+
this.moment.locale(toBackendLang(this.props.lang));
|
|
186
191
|
|
|
187
192
|
let rruleSet = this.props.value
|
|
188
193
|
? rrulestr(props.value, {
|
|
@@ -202,8 +207,8 @@ class RecurrenceWidget extends Component {
|
|
|
202
207
|
formValues: this.getFormValues(rruleSet),
|
|
203
208
|
RRULE_LANGUAGE: rrulei18n(
|
|
204
209
|
this.props.intl,
|
|
205
|
-
moment,
|
|
206
|
-
this.props.
|
|
210
|
+
this.moment,
|
|
211
|
+
toBackendLang(this.props.lang),
|
|
207
212
|
),
|
|
208
213
|
};
|
|
209
214
|
}
|
|
@@ -279,8 +284,8 @@ class RecurrenceWidget extends Component {
|
|
|
279
284
|
|
|
280
285
|
getUTCDate = (date) => {
|
|
281
286
|
return date.match(/T(.)*(-|\+|Z)/g)
|
|
282
|
-
? moment(date).utc()
|
|
283
|
-
: moment(`${date}Z`).utc();
|
|
287
|
+
? this.moment(date).utc()
|
|
288
|
+
: this.moment(`${date}Z`).utc();
|
|
284
289
|
};
|
|
285
290
|
|
|
286
291
|
show = (dimmer) => () => {
|
|
@@ -436,17 +441,17 @@ class RecurrenceWidget extends Component {
|
|
|
436
441
|
case 'until':
|
|
437
442
|
let mDate = null;
|
|
438
443
|
if (value) {
|
|
439
|
-
mDate = moment(new Date(value));
|
|
444
|
+
mDate = this.moment(new Date(value));
|
|
440
445
|
if (typeof value === 'string') {
|
|
441
|
-
mDate = moment(new Date(value));
|
|
446
|
+
mDate = this.moment(new Date(value));
|
|
442
447
|
} else {
|
|
443
448
|
//object-->Date()
|
|
444
|
-
mDate = moment(value);
|
|
449
|
+
mDate = this.moment(value);
|
|
445
450
|
}
|
|
446
451
|
|
|
447
452
|
if (this.props.formData.end) {
|
|
448
453
|
//set time from formData.end
|
|
449
|
-
const mEnd = moment(new Date(this.props.formData.end));
|
|
454
|
+
const mEnd = this.moment(new Date(this.props.formData.end));
|
|
450
455
|
mDate.set('hour', mEnd.get('hour'));
|
|
451
456
|
mDate.set('minute', mEnd.get('minute'));
|
|
452
457
|
}
|
|
@@ -475,8 +480,8 @@ class RecurrenceWidget extends Component {
|
|
|
475
480
|
field === 'dtstart'
|
|
476
481
|
? value
|
|
477
482
|
: rruleSet.dtstart()
|
|
478
|
-
|
|
479
|
-
|
|
483
|
+
? rruleSet.dtstart()
|
|
484
|
+
: new Date();
|
|
480
485
|
var exdates =
|
|
481
486
|
field === 'exdates' ? value : Object.assign([], rruleSet.exdates());
|
|
482
487
|
|
|
@@ -485,6 +490,8 @@ class RecurrenceWidget extends Component {
|
|
|
485
490
|
|
|
486
491
|
rruleOptions.dtstart = dstart;
|
|
487
492
|
|
|
493
|
+
const { RRule, RRuleSet } = this.props.rrule;
|
|
494
|
+
|
|
488
495
|
let set = new RRuleSet();
|
|
489
496
|
//set.dtstart(dstart);
|
|
490
497
|
set.rrule(new RRule(rruleOptions));
|
|
@@ -496,6 +503,7 @@ class RecurrenceWidget extends Component {
|
|
|
496
503
|
};
|
|
497
504
|
|
|
498
505
|
getDefaultUntil = (freq) => {
|
|
506
|
+
const moment = this.moment;
|
|
499
507
|
var end = this.props.formData?.end
|
|
500
508
|
? moment(new Date(this.props.formData.end))
|
|
501
509
|
: null;
|
|
@@ -545,6 +553,7 @@ class RecurrenceWidget extends Component {
|
|
|
545
553
|
};
|
|
546
554
|
|
|
547
555
|
changeField = (formValues, field, value) => {
|
|
556
|
+
const moment = this.moment;
|
|
548
557
|
// git p.log('field', field, 'value', value);
|
|
549
558
|
//get weekday from state.
|
|
550
559
|
var byweekday =
|
|
@@ -739,6 +748,7 @@ class RecurrenceWidget extends Component {
|
|
|
739
748
|
};
|
|
740
749
|
|
|
741
750
|
addDate = (date) => {
|
|
751
|
+
const moment = this.moment;
|
|
742
752
|
let all = concat(this.state.rruleSet.all(), this.state.rruleSet.exdates());
|
|
743
753
|
|
|
744
754
|
var simpleDate = moment(new Date(date)).startOf('day').toDate().getTime();
|
|
@@ -764,6 +774,7 @@ class RecurrenceWidget extends Component {
|
|
|
764
774
|
};
|
|
765
775
|
|
|
766
776
|
remove = () => {
|
|
777
|
+
const { RRuleSet } = this.props.rrule;
|
|
767
778
|
this.props.onChange(this.props.id, null);
|
|
768
779
|
let rruleSet = new RRuleSet();
|
|
769
780
|
this.setState({
|
|
@@ -1007,4 +1018,10 @@ class RecurrenceWidget extends Component {
|
|
|
1007
1018
|
}
|
|
1008
1019
|
}
|
|
1009
1020
|
|
|
1010
|
-
export default
|
|
1021
|
+
export default compose(
|
|
1022
|
+
injectLazyLibs(['moment', 'rrule']),
|
|
1023
|
+
connect((state) => ({
|
|
1024
|
+
lang: state.intl.locale,
|
|
1025
|
+
})),
|
|
1026
|
+
injectIntl,
|
|
1027
|
+
)(RecurrenceWidget);
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* @module components/theme/Search/Search
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import loadable from '@loadable/component';
|
|
7
7
|
|
|
8
|
+
const Search = loadable(() =>
|
|
9
|
+
import(
|
|
10
|
+
/* webpackChunkName: "DCPTSearch" */ 'design-comuni-plone-theme/components/ItaliaTheme/Search/Search'
|
|
11
|
+
),
|
|
12
|
+
);
|
|
8
13
|
export default Search;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cx from 'classnames';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const FormHeader = ({ title, step, totalSteps, className, hidden }) => {
|
|
5
5
|
return (
|
|
6
6
|
<div className={className}>
|
|
7
7
|
<legend
|
|
@@ -21,3 +21,4 @@ export const FormHeader = ({ title, step, totalSteps, className, hidden }) => {
|
|
|
21
21
|
</div>
|
|
22
22
|
);
|
|
23
23
|
};
|
|
24
|
+
export default FormHeader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const fontAwesomeAliases = {
|
|
2
2
|
ad: 'rectangle-ad',
|
|
3
3
|
adjust: 'circle-half-stroke',
|
|
4
4
|
'air-freshener': 'spray-can-sparkles',
|
|
@@ -674,3 +674,4 @@ export const fontAwesomeAliases = {
|
|
|
674
674
|
'window-close': 'rectangle-xmark',
|
|
675
675
|
'wine-glass-alt': 'wine-glass-empty',
|
|
676
676
|
};
|
|
677
|
+
export default fontAwesomeAliases;
|
package/src/helpers/index.js
CHANGED
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
* @example
|
|
5
5
|
* export { Api } from './Api/Api';
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
7
|
export { defaultIconWidgetOptions } from 'design-comuni-plone-theme/helpers/IconWidget/IconWidgetHelper';
|
|
9
|
-
|
|
8
|
+
|
|
10
9
|
export {
|
|
11
10
|
getCalendarDate,
|
|
12
11
|
getEventRecurrenceMore,
|