design-comuni-plone-theme 8.4.6 → 8.5.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/locales/de/LC_MESSAGES/volto.po +10 -0
  3. package/locales/en/LC_MESSAGES/volto.po +10 -0
  4. package/locales/es/LC_MESSAGES/volto.po +10 -0
  5. package/locales/fr/LC_MESSAGES/volto.po +10 -0
  6. package/locales/it/LC_MESSAGES/volto.po +10 -0
  7. package/locales/volto.pot +11 -1
  8. package/package.json +2 -2
  9. package/publiccode.yml +3 -2
  10. package/src/components/ItaliaTheme/Blocks/ContactsBlock/Block/ViewBlock.jsx +1 -1
  11. package/src/components/ItaliaTheme/Blocks/ContactsBlock/Edit.jsx +2 -2
  12. package/src/components/ItaliaTheme/Blocks/ContactsBlock/View.jsx +2 -2
  13. package/src/components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate.jsx +7 -4
  14. package/src/components/ItaliaTheme/Blocks/Listing/Commons/utils.js +9 -2
  15. package/src/components/ItaliaTheme/Blocks/Listing/PhotogalleryTemplate.jsx +3 -1
  16. package/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx +5 -5
  17. package/src/components/ItaliaTheme/Blocks/VideoGallery/Body.jsx +49 -3
  18. package/src/components/ItaliaTheme/Blocks/VideoGallery/Edit.jsx +7 -5
  19. package/src/components/ItaliaTheme/LoginAgid/LoginAgid.jsx +9 -2
  20. package/src/components/ItaliaTheme/Search/Search.jsx +76 -67
  21. package/src/components/ItaliaTheme/Unauthorized/Unauthorized.jsx +9 -6
  22. package/src/components/ItaliaTheme/View/Commons/LocationsMap.jsx +1 -6
  23. package/src/components/ItaliaTheme/View/Commons/Metadata.jsx +2 -2
  24. package/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx +4 -2
  25. package/src/components/ItaliaTheme/View/Commons/RichText.jsx +1 -1
  26. package/src/components/ItaliaTheme/View/EventoView/EventoCosE.jsx +3 -1
  27. package/src/components/ItaliaTheme/View/EventoView/EventoUlterioriInformazioni.jsx +0 -3
  28. package/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx +44 -13
  29. package/src/components/ItaliaTheme/View/__tests__/PersonaView.test.jsx +938 -928
  30. package/src/config/Blocks/blocks.js +3 -4
  31. package/src/customizations/volto/components/manage/Blocks/Grid/Edit.jsx +55 -0
  32. package/src/customizations/volto/components/manage/Blocks/Listing/withQuerystringResults.jsx +8 -3
  33. package/src/theme/ItaliaTheme/Blocks/_calendar.scss +14 -26
  34. package/src/theme/ItaliaTheme/Blocks/_contentInEvidenceTemplate.scss +1 -1
  35. package/src/theme/ItaliaTheme/Blocks/_gridBlock.scss +27 -0
  36. package/src/theme/ItaliaTheme/Blocks/_iconBlocks.scss +2 -2
  37. package/src/theme/ItaliaTheme/Blocks/_photogallerytemplate.scss +0 -1
  38. package/src/theme/ItaliaTheme/Blocks/_sliderTemplate.scss +4 -52
  39. package/src/theme/ItaliaTheme/Blocks/_videoGallery.scss +26 -3
  40. package/src/theme/ItaliaTheme/Components/_cmp-timeline.scss +1 -0
  41. package/src/theme/ItaliaTheme/Views/_evento.scss +4 -0
  42. package/src/theme/ItaliaTheme/Views/_slider.scss +58 -6
  43. package/src/theme/ItaliaTheme/_common.scss +12 -0
  44. package/src/theme/ItaliaTheme/_main.scss +1 -0
  45. package/src/theme/extras/_search.scss +6 -0
  46. package/src/theme/site.scss +1 -0
  47. /package/src/customizations/volto/components/theme/View/{View.jsx → disabled_View.jsx} +0 -0
  48. /package/src/customizations/volto/helpers/Api/{Api.jsx → disabled_Api.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
 
2
2
 
3
+ ## [8.5.1](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.5.0...v8.5.1) (2023-09-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * added clear float to page sections ([#324](https://github.com/RedTurtle/design-comuni-plone-theme/issues/324)) ([7f1e46d](https://github.com/RedTurtle/design-comuni-plone-theme/commit/7f1e46d42b8cae11b04f68b3a01988c3e9226db7))
9
+ * fix cContacts block horizontal alignment ([#329](https://github.com/RedTurtle/design-comuni-plone-theme/issues/329)) ([b68ee5e](https://github.com/RedTurtle/design-comuni-plone-theme/commit/b68ee5e9901c81db0048dc2eb29f9611cdc3fb5a))
10
+ * fix Content in Evidence template when there's more than one item ([#327](https://github.com/RedTurtle/design-comuni-plone-theme/issues/327)) ([049f520](https://github.com/RedTurtle/design-comuni-plone-theme/commit/049f5205685d2010982cf4a990479f719142fadf))
11
+ * fix height of icons in Icons Block ([#330](https://github.com/RedTurtle/design-comuni-plone-theme/issues/330)) ([c77ada8](https://github.com/RedTurtle/design-comuni-plone-theme/commit/c77ada86763de62060f95b2fec52a824cbe76011))
12
+ * gridBlock edit overlapping when using 4 columns and adding image block ([#322](https://github.com/RedTurtle/design-comuni-plone-theme/issues/322)) ([018deb7](https://github.com/RedTurtle/design-comuni-plone-theme/commit/018deb7081b3830df526304330349855e5b79d4d))
13
+ * load of locations data in LocationsMap ([#323](https://github.com/RedTurtle/design-comuni-plone-theme/issues/323)) ([093f08b](https://github.com/RedTurtle/design-comuni-plone-theme/commit/093f08bcdb92c46053ec78878b1ed2e375efd2ff))
14
+ * slider a11y ([3d5bcc4](https://github.com/RedTurtle/design-comuni-plone-theme/commit/3d5bcc485c6d280647712ad2d0e3ccf6b8c4974a))
15
+ * updated volto-dropdownmenu to remove upload image when editing dropdownmenu blocks ([#331](https://github.com/RedTurtle/design-comuni-plone-theme/issues/331)) ([2c5605f](https://github.com/RedTurtle/design-comuni-plone-theme/commit/2c5605f3be09632c923196eedc166485c15b04a3))
16
+
17
+
18
+ ### Documentation
19
+
20
+ * updated publiccode ([55e59c7](https://github.com/RedTurtle/design-comuni-plone-theme/commit/55e59c7822ca93330c4d509461d0cd32a9b2ea0b))
21
+
22
+ ## [8.5.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.4.6...v8.5.0) (2023-09-05)
23
+
24
+
25
+ ### Features
26
+
27
+ * added pec to office card info ([#312](https://github.com/RedTurtle/design-comuni-plone-theme/issues/312)) ([a555954](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a555954bbd482f27c711ac314aeda45e01537b06))
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * fixed videogallery template block and standardized slider styles ([#301](https://github.com/RedTurtle/design-comuni-plone-theme/issues/301)) ([9abe515](https://github.com/RedTurtle/design-comuni-plone-theme/commit/9abe51584c631a75c6145944f8a14a0c187dd625))
33
+ * incorrect logic for determining if search is ongoing, less layout shifts ([#313](https://github.com/RedTurtle/design-comuni-plone-theme/issues/313)) ([69bc749](https://github.com/RedTurtle/design-comuni-plone-theme/commit/69bc74963760caf6465bdf7cc6e64c0413d8d655))
34
+ * mantiene la querystring nel came_from della login ([#315](https://github.com/RedTurtle/design-comuni-plone-theme/issues/315)) ([5313e8b](https://github.com/RedTurtle/design-comuni-plone-theme/commit/5313e8b4bbcc54b492e07876abf5dc607d5b118b))
35
+ * mostra tutti i campi incarico della persona ([#311](https://github.com/RedTurtle/design-comuni-plone-theme/issues/311)) ([bd9afa2](https://github.com/RedTurtle/design-comuni-plone-theme/commit/bd9afa284f84202fece2f95c6664406bb605d66e))
36
+ * querystring results with additional filters in listing blocks ([#317](https://github.com/RedTurtle/design-comuni-plone-theme/issues/317)) ([ba52c7f](https://github.com/RedTurtle/design-comuni-plone-theme/commit/ba52c7f22b98baf4373ac580cd0a0441dc60ad01))
37
+ * revert SSR redirect backport https://github.com/plone/volto/pull/4854 ([#306](https://github.com/RedTurtle/design-comuni-plone-theme/issues/306)) ([ce80334](https://github.com/RedTurtle/design-comuni-plone-theme/commit/ce803342595693b819e9185990ea4e45777fa055))
38
+
39
+
40
+ ### Documentation
41
+
42
+ * updated publiccode ([973363a](https://github.com/RedTurtle/design-comuni-plone-theme/commit/973363a7ca46654cf79a1cfd7e9151cb97c77221))
43
+
3
44
  ## [8.4.6](https://github.com/redturtle/design-comuni-plone-theme/compare/v8.4.5...v8.4.6) (2023-08-31)
4
45
 
5
46
 
@@ -3897,6 +3897,16 @@ msgstr ""
3897
3897
  msgid "venues"
3898
3898
  msgstr ""
3899
3899
 
3900
+ #: components/ItaliaTheme/Blocks/VideoGallery/Body
3901
+ # defaultMessage: Prossimo video
3902
+ msgid "videogallery_next_arrow"
3903
+ msgstr ""
3904
+
3905
+ #: components/ItaliaTheme/Blocks/VideoGallery/Body
3906
+ # defaultMessage: Video precedente
3907
+ msgid "videogallery_prev_arrow"
3908
+ msgstr ""
3909
+
3900
3910
  #: components/ItaliaTheme/Blocks/Listing/SliderTemplate
3901
3911
  # defaultMessage: Sei attualmente in un carosello, per navigare usa le frecce sinistra e destra
3902
3912
  msgid "viewImage"
@@ -3882,6 +3882,16 @@ msgstr "Change in balance sheet"
3882
3882
  msgid "venues"
3883
3883
  msgstr "Venues"
3884
3884
 
3885
+ #: components/ItaliaTheme/Blocks/VideoGallery/Body
3886
+ # defaultMessage: Prossimo video
3887
+ msgid "videogallery_next_arrow"
3888
+ msgstr "Next video"
3889
+
3890
+ #: components/ItaliaTheme/Blocks/VideoGallery/Body
3891
+ # defaultMessage: Video precedente
3892
+ msgid "videogallery_prev_arrow"
3893
+ msgstr "Previous video"
3894
+
3885
3895
  #: components/ItaliaTheme/Blocks/Listing/SliderTemplate
3886
3896
  # defaultMessage: Sei attualmente in un carosello, per navigare usa le frecce sinistra e destra
3887
3897
  msgid "viewImage"
@@ -3891,6 +3891,16 @@ msgstr "Cambio en el balance"
3891
3891
  msgid "venues"
3892
3892
  msgstr "Lugares"
3893
3893
 
3894
+ #: components/ItaliaTheme/Blocks/VideoGallery/Body
3895
+ # defaultMessage: Prossimo video
3896
+ msgid "videogallery_next_arrow"
3897
+ msgstr ""
3898
+
3899
+ #: components/ItaliaTheme/Blocks/VideoGallery/Body
3900
+ # defaultMessage: Video precedente
3901
+ msgid "videogallery_prev_arrow"
3902
+ msgstr ""
3903
+
3894
3904
  #: components/ItaliaTheme/Blocks/Listing/SliderTemplate
3895
3905
  # defaultMessage: Sei attualmente in un carosello, per navigare usa le frecce sinistra e destra
3896
3906
  msgid "viewImage"
@@ -3899,6 +3899,16 @@ msgstr "Changement de bilan"
3899
3899
  msgid "venues"
3900
3900
  msgstr "Lieux"
3901
3901
 
3902
+ #: components/ItaliaTheme/Blocks/VideoGallery/Body
3903
+ # defaultMessage: Prossimo video
3904
+ msgid "videogallery_next_arrow"
3905
+ msgstr "Prochaine vidéo"
3906
+
3907
+ #: components/ItaliaTheme/Blocks/VideoGallery/Body
3908
+ # defaultMessage: Video precedente
3909
+ msgid "videogallery_prev_arrow"
3910
+ msgstr "Vidéo précédente"
3911
+
3902
3912
  #: components/ItaliaTheme/Blocks/Listing/SliderTemplate
3903
3913
  # defaultMessage: Sei attualmente in un carosello, per navigare usa le frecce sinistra e destra
3904
3914
  msgid "viewImage"
@@ -3882,6 +3882,16 @@ msgstr "Variazione situazione patrimoniale"
3882
3882
  msgid "venues"
3883
3883
  msgstr "Luoghi"
3884
3884
 
3885
+ #: components/ItaliaTheme/Blocks/VideoGallery/Body
3886
+ # defaultMessage: Prossimo video
3887
+ msgid "videogallery_next_arrow"
3888
+ msgstr "Prossimo video"
3889
+
3890
+ #: components/ItaliaTheme/Blocks/VideoGallery/Body
3891
+ # defaultMessage: Video precedente
3892
+ msgid "videogallery_prev_arrow"
3893
+ msgstr "Video precedente"
3894
+
3885
3895
  #: components/ItaliaTheme/Blocks/Listing/SliderTemplate
3886
3896
  # defaultMessage: Sei attualmente in un carosello, per navigare usa le frecce sinistra e destra
3887
3897
  msgid "viewImage"
package/locales/volto.pot CHANGED
@@ -1,7 +1,7 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Plone\n"
4
- "POT-Creation-Date: 2023-08-24T08:14:25.576Z\n"
4
+ "POT-Creation-Date: 2023-08-28T07:32:02.134Z\n"
5
5
  "Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
6
6
  "Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
7
7
  "MIME-Version: 1.0\n"
@@ -3884,6 +3884,16 @@ msgstr ""
3884
3884
  msgid "venues"
3885
3885
  msgstr ""
3886
3886
 
3887
+ #: components/ItaliaTheme/Blocks/VideoGallery/Body
3888
+ # defaultMessage: Prossimo video
3889
+ msgid "videogallery_next_arrow"
3890
+ msgstr ""
3891
+
3892
+ #: components/ItaliaTheme/Blocks/VideoGallery/Body
3893
+ # defaultMessage: Video precedente
3894
+ msgid "videogallery_prev_arrow"
3895
+ msgstr ""
3896
+
3887
3897
  #: components/ItaliaTheme/Blocks/Listing/SliderTemplate
3888
3898
  # defaultMessage: Sei attualmente in un carosello, per navigare usa le frecce sinistra e destra
3889
3899
  msgid "viewImage"
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": "8.4.6",
5
+ "version": "8.5.1",
6
6
  "main": "src/index.js",
7
7
  "keywords": [
8
8
  "volto-addon",
@@ -130,7 +130,7 @@
130
130
  "typeface-titillium-web": "0.0.72",
131
131
  "volto-blocks-widget": "3.1.0",
132
132
  "volto-data-grid-widget": "2.2.1",
133
- "volto-dropdownmenu": "4.0.0",
133
+ "volto-dropdownmenu": "4.1.0",
134
134
  "volto-editablefooter": "5.0.1",
135
135
  "volto-feedback": "0.1.5",
136
136
  "volto-form-block": "3.1.0",
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: '2023-08-25'
230
+ releaseDate: '2023-09-18'
231
231
  softwareType: standalone/web
232
- softwareVersion: 8.4.3
232
+ softwareVersion: 8.5.1
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -253,6 +253,7 @@ usedBy:
253
253
  - Comune di Mirandola
254
254
  - Comune di Modena
255
255
  - Comune di Montecchio Emilia
256
+ - Comune di Novellara
256
257
  - Comune di Parma
257
258
  - Comune di Piacenza
258
259
  - Comune di Reggio Emilia
@@ -20,7 +20,7 @@ import { checkRedraftHasContent } from 'design-comuni-plone-theme/helpers';
20
20
  const ViewBlock = ({ data, isOpen, toggle, id, index }) => {
21
21
  return (
22
22
  <Card
23
- className="card-bg rounded subblock-view"
23
+ className="card-bg rounded subblock-view "
24
24
  noWrapper={false}
25
25
  space
26
26
  tag="div"
@@ -106,7 +106,7 @@ class Edit extends SubblocksEdit {
106
106
  </div>
107
107
 
108
108
  <SubblocksWrapper node={this.node}>
109
- <Row>
109
+ <Row className="justify-content-center">
110
110
  {this.state.subblocks.map((subblock, subindex) => (
111
111
  <Col lg="4" key={subblock.id}>
112
112
  <EditBlock
@@ -120,7 +120,7 @@ class Edit extends SubblocksEdit {
120
120
  ))}
121
121
 
122
122
  {this.props.selected && (
123
- <Col lg={4}>
123
+ <Col lg={12} className="text-center pb-3">
124
124
  {this.renderAddBlockButton(
125
125
  this.props.intl.formatMessage(messages.addItem),
126
126
  )}
@@ -42,9 +42,9 @@ const AccordionView = ({ data, block }) => {
42
42
  )}
43
43
  </div>
44
44
  </div>
45
- <Row>
45
+ <Row className="justify-content-center">
46
46
  {data.subblocks.map((subblock, index) => (
47
- <Col lg="4" key={subblock.id}>
47
+ <Col lg="4" key={subblock.id} className="pb-3">
48
48
  <ViewBlock
49
49
  data={subblock}
50
50
  key={index}
@@ -137,6 +137,7 @@ const BandiInEvidenceTemplate = ({
137
137
  )}
138
138
 
139
139
  {/* Tipologia */}
140
+
140
141
  {show_tipologia && item.tipologia_bando?.title?.length > 0 && (
141
142
  <span className="d-flex flex-wrap align-items-baseline bando-dati-info">
142
143
  <div className="bando-dati-label me-2">
@@ -206,10 +207,12 @@ const BandiInEvidenceTemplate = ({
206
207
  className={cx('bando-state', {
207
208
  open: item.bando_state?.includes('open'),
208
209
  closed: item.bando_state?.includes('closed'),
209
- scheduled:
210
- item.bando_state?.includes('scheduled'),
211
- 'in-progress':
212
- item.bando_state?.includes('inProgress'),
210
+ scheduled: item.bando_state?.includes(
211
+ 'scheduled',
212
+ ),
213
+ 'in-progress': item.bando_state?.includes(
214
+ 'inProgress',
215
+ ),
213
216
  })}
214
217
  >
215
218
  {intl.formatMessage(messages[item.bando_state[0]])}
@@ -61,7 +61,7 @@ export const useSlider = (userAutoplay) => {
61
61
 
62
62
  if ((userAutoplay && !slide) || (userAutoplay && !slide.length > 0)) return;
63
63
 
64
- // Custom handling of focus as per Arter a11y audit and request
64
+ // Custom handling of focus for a11y
65
65
  const link = visibleSlideTitle(
66
66
  `a.slide-link[data-slide="${currentSlide}"]`,
67
67
  );
@@ -70,7 +70,14 @@ export const useSlider = (userAutoplay) => {
70
70
  return;
71
71
  }
72
72
  // eslint-disable-next-line no-unused-expressions
73
- else link.focus();
73
+ else if (
74
+ // if the focus was already on a slide, move it to the current one
75
+ Array.from(document.querySelectorAll('.slick-slide')).some((el) =>
76
+ el.contains(document.activeElement),
77
+ )
78
+ ) {
79
+ link.focus();
80
+ }
74
81
  };
75
82
 
76
83
  return {
@@ -130,7 +130,9 @@ const PhotogalleryTemplate = ({
130
130
  />
131
131
  </button>
132
132
  </div>
133
- <ul style={{ margin: '0px' }}> {dots} </ul>
133
+ <ul className="slick-dots" style={{ margin: '0px' }}>
134
+ {dots}
135
+ </ul>
134
136
  </div>
135
137
  ),
136
138
  };
@@ -50,7 +50,7 @@ const messages = defineMessages({
50
50
  });
51
51
 
52
52
  function NextArrow(props) {
53
- // Custom handling of focus as per Arter a11y audit and request
53
+ // Custom handling of focus for a11y
54
54
  const { className, style, onClick, intl, currentSlide } = props;
55
55
  const handleClick = (options) => {
56
56
  onClick(options, false);
@@ -85,7 +85,7 @@ function NextArrow(props) {
85
85
  }
86
86
 
87
87
  function PrevArrow(props) {
88
- // Custom handling of focus as per Arter a11y audit and request
88
+ // Custom handling of focus for a11y
89
89
  const {
90
90
  className,
91
91
  style,
@@ -225,7 +225,7 @@ const SliderTemplate = ({
225
225
  };
226
226
 
227
227
  const renderCustomDots = (props) => {
228
- // Custom handling of focus as per Arter a11y audit and request
228
+ // Custom handling of focus for a11y
229
229
  return (
230
230
  <ul
231
231
  className="slick-dots"
@@ -281,13 +281,13 @@ const SliderTemplate = ({
281
281
  pauseOnDotsHover: true,
282
282
  swipe: true,
283
283
  swipeToSlide: true,
284
- focusOnSelect: true,
284
+ focusOnSelect: false,
285
285
  draggable: true,
286
286
  accessibility: true,
287
287
  nextArrow: <NextArrow intl={intl} focusNext={focusNext} />,
288
288
  prevArrow: <PrevArrow intl={intl} focusNext={focusNext} />,
289
289
  appendDots: renderCustomDots,
290
- // Custom handling of focus as per Arter a11y audit and request
290
+ // Custom handling of focus for a11y
291
291
  afterChange: focusNext,
292
292
  responsive: [
293
293
  {
@@ -5,11 +5,12 @@
5
5
 
6
6
  import React from 'react';
7
7
  import PropTypes from 'prop-types';
8
- import { Container } from 'design-react-kit';
9
8
 
10
9
  import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
11
-
10
+ import { useIntl, defineMessages } from 'react-intl';
12
11
  import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme';
12
+ import { FontAwesomeIcon } from 'design-comuni-plone-theme/components/ItaliaTheme';
13
+ import { Button, Container } from 'design-react-kit';
13
14
  import { UniversalLink } from '@plone/volto/components';
14
15
 
15
16
  /**
@@ -17,11 +18,56 @@ import { UniversalLink } from '@plone/volto/components';
17
18
  * @class Body
18
19
  * @extends Component
19
20
  */
21
+
22
+ const messages = defineMessages({
23
+ videogallery_next_arrow: {
24
+ id: 'videogallery_next_arrow',
25
+ defaultMessage: 'Prossimo video',
26
+ },
27
+ videogallery_prev_arrow: {
28
+ id: 'videogallery_prev_arrow',
29
+ defaultMessage: 'Video precedente',
30
+ },
31
+ });
32
+
20
33
  const Body = ({ data, children, nItems = 0, reactSlick }) => {
34
+ const intl = useIntl();
35
+
36
+ const NextArrow = (props) => {
37
+ const { onClick, className } = props;
38
+ return (
39
+ <Button
40
+ outline
41
+ color={'unset'}
42
+ className={className}
43
+ onClick={onClick}
44
+ aria-label={intl.formatMessage(messages.videogallery_next_arrow)}
45
+ >
46
+ <FontAwesomeIcon icon={['fas', 'chevron-right']} />
47
+ </Button>
48
+ );
49
+ };
50
+ const PrevArrow = (props) => {
51
+ const { onClick, className } = props;
52
+ return (
53
+ <Button
54
+ outline
55
+ color={'unset'}
56
+ className={className}
57
+ onClick={onClick}
58
+ aria-label={intl.formatMessage(messages.videogallery_prev_arrow)}
59
+ >
60
+ <FontAwesomeIcon icon={['fas', 'chevron-left']} />
61
+ </Button>
62
+ );
63
+ };
64
+
21
65
  const Slider = reactSlick.default;
22
66
 
23
67
  const settings = {
24
68
  dots: true,
69
+ nextArrow: <NextArrow />,
70
+ prevArrow: <PrevArrow />,
25
71
  infinite: true,
26
72
  speed: 500,
27
73
  slidesToShow: nItems < 3 ? nItems : 3,
@@ -55,7 +101,7 @@ const Body = ({ data, children, nItems = 0, reactSlick }) => {
55
101
  };
56
102
 
57
103
  return (
58
- <div className="full-width py-5">
104
+ <div className="full-width">
59
105
  <Container className="px-md-4">
60
106
  {data?.title && <h2>{data.title}</h2>}
61
107
  {(data?.channel_link || data?.channel_link_title) && (
@@ -6,22 +6,24 @@
6
6
  import React from 'react';
7
7
  import { defineMessages } from 'react-intl';
8
8
  import { SidebarPortal } from '@plone/volto/components';
9
-
10
9
  import {
11
10
  withDNDContext,
12
11
  SubblocksEdit,
13
12
  SubblocksWrapper,
14
13
  } from 'volto-subblocks';
15
- import Sidebar from './Sidebar.jsx';
16
- import EditBlock from './Block/EditBlock';
17
- import Body from './Body';
14
+ import Sidebar from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/VideoGallery/Sidebar';
15
+ import Body from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/VideoGallery/Body';
16
+ import EditBlock from 'design-comuni-plone-theme/components/ItaliaTheme/Blocks/VideoGallery/Block/EditBlock';
18
17
 
19
18
  const messages = defineMessages({
20
19
  addItem: {
21
20
  id: 'Add accordion item',
22
21
  defaultMessage: 'Aggiungi elemento',
23
22
  },
24
- titlePlaceholder: { id: 'Title', defaultMessage: 'Titolo' },
23
+ titlePlaceholder: {
24
+ id: 'Title',
25
+ defaultMessage: 'Titolo',
26
+ },
25
27
  noVideos: {
26
28
  id: 'noVideos',
27
29
  defaultMessage:
@@ -58,7 +58,11 @@ const LoginAgid = (props) => {
58
58
  : process.env.RAZZLE_SPID_LOGIN_URL;
59
59
  const showFormLogin = !spidLoginUrl || query.get('login_operatore');
60
60
  const location = useLocation();
61
- const came_from = query.get('came_from') || props.origin || getBaseUrl(location.pathname);
61
+ const came_from =
62
+ query.get('came_from') ||
63
+ props.origin ||
64
+ `${getBaseUrl(location.pathname)}${location.search}` ||
65
+ '/';
62
66
 
63
67
  return (
64
68
  <>
@@ -91,7 +95,10 @@ const LoginAgid = (props) => {
91
95
  <Button
92
96
  color="primary"
93
97
  outline
94
- href={`${came_from}/login?login_operatore=1`}
98
+ href={`/login?${new URLSearchParams({
99
+ login_operatore: 1,
100
+ return_url: came_from,
101
+ }).toString()}`}
95
102
  tag="button"
96
103
  >
97
104
  <span>{intl.formatMessage(messages.loginPloneUser)}</span>