io-sanita-theme 2.24.0 → 2.25.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.25.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.24.0...2.25.0) (2026-04-21)
4
+
5
+ ### Features
6
+
7
+ * argument icon added, same pattern in io-comune ([#127](https://github.com/RedTurtle/io-sanita-theme/issues/127)) ([4f97960](https://github.com/RedTurtle/io-sanita-theme/commit/4f979605f275d87495d068efd2a1d370f1442fcf))
8
+
9
+ ### Bug Fixes
10
+
11
+ * badge of status Servizio - removed unused message ([#123](https://github.com/RedTurtle/io-sanita-theme/issues/123)) ([0b80cd9](https://github.com/RedTurtle/io-sanita-theme/commit/0b80cd92c7b1cc0739155e73b5e546676cb21acf))
12
+ * badge styles in folderContent for programmato and scaduto ([#130](https://github.com/RedTurtle/io-sanita-theme/issues/130)) ([2e25c73](https://github.com/RedTurtle/io-sanita-theme/commit/2e25c736b4d14952792d563c51c6696a382cf059))
13
+ * changed icon Struttura in folder content ([#129](https://github.com/RedTurtle/io-sanita-theme/issues/129)) ([e69b30d](https://github.com/RedTurtle/io-sanita-theme/commit/e69b30d6d438b9c2032ff60a4c0ef97553aee20c))
14
+ * show pdc description inside contact card ([#128](https://github.com/RedTurtle/io-sanita-theme/issues/128)) ([b9854c8](https://github.com/RedTurtle/io-sanita-theme/commit/b9854c8620059372b3feac7a56ba45d1bc4ad1ac))
15
+ * show related documents in ComeFarePer ([#131](https://github.com/RedTurtle/io-sanita-theme/issues/131)) ([e268b22](https://github.com/RedTurtle/io-sanita-theme/commit/e268b22f4f1ed87faa33c04aa7dbb952d4c3ad1e))
16
+ * title in contact card now is not clickable ([#125](https://github.com/RedTurtle/io-sanita-theme/issues/125)) ([8514127](https://github.com/RedTurtle/io-sanita-theme/commit/851412702cb60e6bbe8ce9cf0e312da014941913))
17
+ * video not cropped when aligned right/left ([#126](https://github.com/RedTurtle/io-sanita-theme/issues/126)) ([887ad5b](https://github.com/RedTurtle/io-sanita-theme/commit/887ad5bbdac253e227610c1de7cb082399d8edbb))
18
+ * z-index of toolbar ([#124](https://github.com/RedTurtle/io-sanita-theme/issues/124)) ([8456b1f](https://github.com/RedTurtle/io-sanita-theme/commit/8456b1ff82a9ccac24267325b77908c76826baad))
19
+
20
+ ### Maintenance
21
+
22
+ * i18n ([de9b9bb](https://github.com/RedTurtle/io-sanita-theme/commit/de9b9bb35323ebd3e3ab7b6555685df17f9266b2))
23
+ * preparing release 2.25.0 ([ab6a8e0](https://github.com/RedTurtle/io-sanita-theme/commit/ab6a8e06798d41fdc5f7a48c8bda96fd278cf7b9))
24
+
3
25
  ## [2.24.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.23.2...2.24.0) (2026-04-10)
4
26
 
5
27
  ### Features
package/RELEASE.md CHANGED
@@ -41,6 +41,20 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 2.25.0 (21/04/2026)
45
+
46
+ ### Fix
47
+
48
+ - Aggiunta la visualizzazione dell'icona nell'header delle pagine che hanno un campo icona (es. Cartella FAQ).
49
+ - Sistemata l'altezza del blocco Video quando è allineato a destra o sinistra: il video non si riduce più in altezza quando viene riprodotto.
50
+ - Rimossa la scritta "Servizio disponibile e prenotabile" dalla vista dettaglio del Servizio.
51
+ - Creato componente dedicato per il badge di stato del Servizio, riutilizzato in tutte le viste (dettaglio, card, listing).
52
+ - Rimosso il link dal titolo della card del Punto di contatto nei CT. Il titolo ora non è più cliccabile.
53
+ - Mostrare il testo della descrizione del Punto di contatto all'interno della card Contatti
54
+ - Modifica icona Struttura in Folder Content
55
+ - Sistemata la visualizzazione dell'etichetta "Programmato" accanto al titolo dei contenuti in Folder Content: ora viene mostrata come badge ben distinguibile dal titolo.
56
+ - Aggiunta la sezione Documenti correlati in ComeFarePer CT
57
+
44
58
  ## Versione 2.24.0 (10/04/2026)
45
59
 
46
60
  ### Fix
@@ -721,11 +721,6 @@ msgstr ""
721
721
  msgid "Seleziona un'icona"
722
722
  msgstr ""
723
723
 
724
- #. Default: "Servizio disponibile e prenotabile"
725
- #: components/View/commons/PageHeader/PageHeaderStatoServizio
726
- msgid "Service available"
727
- msgstr ""
728
-
729
724
  #. Default: "Sono occorsi degli errori"
730
725
  #: components/Search/Search
731
726
  msgid "Sono occorsi degli errori"
@@ -1462,11 +1457,26 @@ msgstr ""
1462
1457
  msgid "come_fare_per_a_chi_si_rivolge"
1463
1458
  msgstr ""
1464
1459
 
1460
+ #. Default: "Allegati"
1461
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1462
+ msgid "come_fare_per_allegati"
1463
+ msgstr ""
1464
+
1465
1465
  #. Default: "Come fare"
1466
1466
  #: components/View/ComeFarePer/ComeFarePerComeFare
1467
1467
  msgid "come_fare_per_come_fare"
1468
1468
  msgstr ""
1469
1469
 
1470
+ #. Default: "Documenti"
1471
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1472
+ msgid "come_fare_per_documenti"
1473
+ msgstr ""
1474
+
1475
+ #. Default: "Modulistica"
1476
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1477
+ msgid "come_fare_per_modulistica"
1478
+ msgstr ""
1479
+
1470
1480
  #. Default: "Panoramica"
1471
1481
  #: components/View/ComeFarePer/ComeFarePerDescrizione
1472
1482
  msgid "come_fare_per_panoramica"
@@ -1487,11 +1497,6 @@ msgstr ""
1487
1497
  msgid "comefareper_approfondimenti"
1488
1498
  msgstr ""
1489
1499
 
1490
- #. Default: "Documenti"
1491
- #: components/View/ComeFarePer/ComeFarePerAllegati
1492
- msgid "comefareper_documenti"
1493
- msgstr ""
1494
-
1495
1500
  #. Default: "Contatti"
1496
1501
  #: components/Blocks/Contacts/schema
1497
1502
  msgid "contacts_block_title"
@@ -2060,6 +2065,11 @@ msgstr ""
2060
2065
  msgid "iconDescription"
2061
2066
  msgstr ""
2062
2067
 
2068
+ #. Default: "Icona per {topic_title}"
2069
+ #: components/View/commons/PageHeader/HeaderIcon
2070
+ msgid "icon_title"
2071
+ msgstr ""
2072
+
2063
2073
  #. Default: "Blocco con icone"
2064
2074
  #: components/Blocks/Icons/Sidebar
2065
2075
  msgid "icons_blocks"
@@ -716,11 +716,6 @@ msgstr "Select a file"
716
716
  msgid "Seleziona un'icona"
717
717
  msgstr ""
718
718
 
719
- #. Default: "Servizio disponibile e prenotabile"
720
- #: components/View/commons/PageHeader/PageHeaderStatoServizio
721
- msgid "Service available"
722
- msgstr "Available and bookable service"
723
-
724
719
  #. Default: "Sono occorsi degli errori"
725
720
  #: components/Search/Search
726
721
  msgid "Sono occorsi degli errori"
@@ -1457,11 +1452,26 @@ msgstr ""
1457
1452
  msgid "come_fare_per_a_chi_si_rivolge"
1458
1453
  msgstr "Who is it for"
1459
1454
 
1455
+ #. Default: "Allegati"
1456
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1457
+ msgid "come_fare_per_allegati"
1458
+ msgstr ""
1459
+
1460
1460
  #. Default: "Come fare"
1461
1461
  #: components/View/ComeFarePer/ComeFarePerComeFare
1462
1462
  msgid "come_fare_per_come_fare"
1463
1463
  msgstr "How to do"
1464
1464
 
1465
+ #. Default: "Documenti"
1466
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1467
+ msgid "come_fare_per_documenti"
1468
+ msgstr ""
1469
+
1470
+ #. Default: "Modulistica"
1471
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1472
+ msgid "come_fare_per_modulistica"
1473
+ msgstr ""
1474
+
1465
1475
  #. Default: "Panoramica"
1466
1476
  #: components/View/ComeFarePer/ComeFarePerDescrizione
1467
1477
  msgid "come_fare_per_panoramica"
@@ -1482,11 +1492,6 @@ msgstr "More informations"
1482
1492
  msgid "comefareper_approfondimenti"
1483
1493
  msgstr "Insights"
1484
1494
 
1485
- #. Default: "Documenti"
1486
- #: components/View/ComeFarePer/ComeFarePerAllegati
1487
- msgid "comefareper_documenti"
1488
- msgstr "Documents"
1489
-
1490
1495
  #. Default: "Contatti"
1491
1496
  #: components/Blocks/Contacts/schema
1492
1497
  msgid "contacts_block_title"
@@ -2055,6 +2060,11 @@ msgstr ""
2055
2060
  msgid "iconDescription"
2056
2061
  msgstr ""
2057
2062
 
2063
+ #. Default: "Icona per {topic_title}"
2064
+ #: components/View/commons/PageHeader/HeaderIcon
2065
+ msgid "icon_title"
2066
+ msgstr "Icon for {topic_title}"
2067
+
2058
2068
  #. Default: "Blocco con icone"
2059
2069
  #: components/Blocks/Icons/Sidebar
2060
2070
  msgid "icons_blocks"
@@ -723,11 +723,6 @@ msgstr "Seleccione un archivo"
723
723
  msgid "Seleziona un'icona"
724
724
  msgstr ""
725
725
 
726
- #. Default: "Servizio disponibile e prenotabile"
727
- #: components/View/commons/PageHeader/PageHeaderStatoServizio
728
- msgid "Service available"
729
- msgstr ""
730
-
731
726
  #. Default: "Sono occorsi degli errori"
732
727
  #: components/Search/Search
733
728
  msgid "Sono occorsi degli errori"
@@ -1464,11 +1459,26 @@ msgstr ""
1464
1459
  msgid "come_fare_per_a_chi_si_rivolge"
1465
1460
  msgstr ""
1466
1461
 
1462
+ #. Default: "Allegati"
1463
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1464
+ msgid "come_fare_per_allegati"
1465
+ msgstr ""
1466
+
1467
1467
  #. Default: "Come fare"
1468
1468
  #: components/View/ComeFarePer/ComeFarePerComeFare
1469
1469
  msgid "come_fare_per_come_fare"
1470
1470
  msgstr ""
1471
1471
 
1472
+ #. Default: "Documenti"
1473
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1474
+ msgid "come_fare_per_documenti"
1475
+ msgstr ""
1476
+
1477
+ #. Default: "Modulistica"
1478
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1479
+ msgid "come_fare_per_modulistica"
1480
+ msgstr ""
1481
+
1472
1482
  #. Default: "Panoramica"
1473
1483
  #: components/View/ComeFarePer/ComeFarePerDescrizione
1474
1484
  msgid "come_fare_per_panoramica"
@@ -1489,11 +1499,6 @@ msgstr ""
1489
1499
  msgid "comefareper_approfondimenti"
1490
1500
  msgstr ""
1491
1501
 
1492
- #. Default: "Documenti"
1493
- #: components/View/ComeFarePer/ComeFarePerAllegati
1494
- msgid "comefareper_documenti"
1495
- msgstr ""
1496
-
1497
1502
  #. Default: "Contatti"
1498
1503
  #: components/Blocks/Contacts/schema
1499
1504
  msgid "contacts_block_title"
@@ -2062,6 +2067,11 @@ msgstr ""
2062
2067
  msgid "iconDescription"
2063
2068
  msgstr ""
2064
2069
 
2070
+ #. Default: "Icona per {topic_title}"
2071
+ #: components/View/commons/PageHeader/HeaderIcon
2072
+ msgid "icon_title"
2073
+ msgstr ""
2074
+
2065
2075
  #. Default: "Blocco con icone"
2066
2076
  #: components/Blocks/Icons/Sidebar
2067
2077
  msgid "icons_blocks"
@@ -723,11 +723,6 @@ msgstr "Sélectionner un fichier"
723
723
  msgid "Seleziona un'icona"
724
724
  msgstr ""
725
725
 
726
- #. Default: "Servizio disponibile e prenotabile"
727
- #: components/View/commons/PageHeader/PageHeaderStatoServizio
728
- msgid "Service available"
729
- msgstr ""
730
-
731
726
  #. Default: "Sono occorsi degli errori"
732
727
  #: components/Search/Search
733
728
  msgid "Sono occorsi degli errori"
@@ -1464,11 +1459,26 @@ msgstr ""
1464
1459
  msgid "come_fare_per_a_chi_si_rivolge"
1465
1460
  msgstr ""
1466
1461
 
1462
+ #. Default: "Allegati"
1463
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1464
+ msgid "come_fare_per_allegati"
1465
+ msgstr ""
1466
+
1467
1467
  #. Default: "Come fare"
1468
1468
  #: components/View/ComeFarePer/ComeFarePerComeFare
1469
1469
  msgid "come_fare_per_come_fare"
1470
1470
  msgstr ""
1471
1471
 
1472
+ #. Default: "Documenti"
1473
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1474
+ msgid "come_fare_per_documenti"
1475
+ msgstr ""
1476
+
1477
+ #. Default: "Modulistica"
1478
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1479
+ msgid "come_fare_per_modulistica"
1480
+ msgstr ""
1481
+
1472
1482
  #. Default: "Panoramica"
1473
1483
  #: components/View/ComeFarePer/ComeFarePerDescrizione
1474
1484
  msgid "come_fare_per_panoramica"
@@ -1489,11 +1499,6 @@ msgstr ""
1489
1499
  msgid "comefareper_approfondimenti"
1490
1500
  msgstr ""
1491
1501
 
1492
- #. Default: "Documenti"
1493
- #: components/View/ComeFarePer/ComeFarePerAllegati
1494
- msgid "comefareper_documenti"
1495
- msgstr ""
1496
-
1497
1502
  #. Default: "Contatti"
1498
1503
  #: components/Blocks/Contacts/schema
1499
1504
  msgid "contacts_block_title"
@@ -2062,6 +2067,11 @@ msgstr ""
2062
2067
  msgid "iconDescription"
2063
2068
  msgstr ""
2064
2069
 
2070
+ #. Default: "Icona per {topic_title}"
2071
+ #: components/View/commons/PageHeader/HeaderIcon
2072
+ msgid "icon_title"
2073
+ msgstr ""
2074
+
2065
2075
  #. Default: "Blocco con icone"
2066
2076
  #: components/Blocks/Icons/Sidebar
2067
2077
  msgid "icons_blocks"
@@ -716,11 +716,6 @@ msgstr "Seleziona un file"
716
716
  msgid "Seleziona un'icona"
717
717
  msgstr ""
718
718
 
719
- #. Default: "Servizio disponibile e prenotabile"
720
- #: components/View/commons/PageHeader/PageHeaderStatoServizio
721
- msgid "Service available"
722
- msgstr ""
723
-
724
719
  #. Default: "Sono occorsi degli errori"
725
720
  #: components/Search/Search
726
721
  msgid "Sono occorsi degli errori"
@@ -1457,11 +1452,26 @@ msgstr "Giallo"
1457
1452
  msgid "come_fare_per_a_chi_si_rivolge"
1458
1453
  msgstr ""
1459
1454
 
1455
+ #. Default: "Allegati"
1456
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1457
+ msgid "come_fare_per_allegati"
1458
+ msgstr ""
1459
+
1460
1460
  #. Default: "Come fare"
1461
1461
  #: components/View/ComeFarePer/ComeFarePerComeFare
1462
1462
  msgid "come_fare_per_come_fare"
1463
1463
  msgstr ""
1464
1464
 
1465
+ #. Default: "Documenti"
1466
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1467
+ msgid "come_fare_per_documenti"
1468
+ msgstr ""
1469
+
1470
+ #. Default: "Modulistica"
1471
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1472
+ msgid "come_fare_per_modulistica"
1473
+ msgstr ""
1474
+
1465
1475
  #. Default: "Panoramica"
1466
1476
  #: components/View/ComeFarePer/ComeFarePerDescrizione
1467
1477
  msgid "come_fare_per_panoramica"
@@ -1482,11 +1492,6 @@ msgstr ""
1482
1492
  msgid "comefareper_approfondimenti"
1483
1493
  msgstr ""
1484
1494
 
1485
- #. Default: "Documenti"
1486
- #: components/View/ComeFarePer/ComeFarePerAllegati
1487
- msgid "comefareper_documenti"
1488
- msgstr ""
1489
-
1490
1495
  #. Default: "Contatti"
1491
1496
  #: components/Blocks/Contacts/schema
1492
1497
  msgid "contacts_block_title"
@@ -2055,6 +2060,11 @@ msgstr ""
2055
2060
  msgid "iconDescription"
2056
2061
  msgstr ""
2057
2062
 
2063
+ #. Default: "Icona per {topic_title}"
2064
+ #: components/View/commons/PageHeader/HeaderIcon
2065
+ msgid "icon_title"
2066
+ msgstr ""
2067
+
2058
2068
  #. Default: "Blocco con icone"
2059
2069
  #: components/Blocks/Icons/Sidebar
2060
2070
  msgid "icons_blocks"
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: 2026-04-10T09:33:51.894Z\n"
4
+ "POT-Creation-Date: 2026-04-21T07:20:20.069Z\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
  "Content-Type: text/plain; charset=utf-8\n"
@@ -718,11 +718,6 @@ msgstr ""
718
718
  msgid "Seleziona un'icona"
719
719
  msgstr ""
720
720
 
721
- #. Default: "Servizio disponibile e prenotabile"
722
- #: components/View/commons/PageHeader/PageHeaderStatoServizio
723
- msgid "Service available"
724
- msgstr ""
725
-
726
721
  #. Default: "Sono occorsi degli errori"
727
722
  #: components/Search/Search
728
723
  msgid "Sono occorsi degli errori"
@@ -1459,11 +1454,26 @@ msgstr ""
1459
1454
  msgid "come_fare_per_a_chi_si_rivolge"
1460
1455
  msgstr ""
1461
1456
 
1457
+ #. Default: "Allegati"
1458
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1459
+ msgid "come_fare_per_allegati"
1460
+ msgstr ""
1461
+
1462
1462
  #. Default: "Come fare"
1463
1463
  #: components/View/ComeFarePer/ComeFarePerComeFare
1464
1464
  msgid "come_fare_per_come_fare"
1465
1465
  msgstr ""
1466
1466
 
1467
+ #. Default: "Documenti"
1468
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1469
+ msgid "come_fare_per_documenti"
1470
+ msgstr ""
1471
+
1472
+ #. Default: "Modulistica"
1473
+ #: components/View/ComeFarePer/ComeFarePerDocumenti
1474
+ msgid "come_fare_per_modulistica"
1475
+ msgstr ""
1476
+
1467
1477
  #. Default: "Panoramica"
1468
1478
  #: components/View/ComeFarePer/ComeFarePerDescrizione
1469
1479
  msgid "come_fare_per_panoramica"
@@ -1484,11 +1494,6 @@ msgstr ""
1484
1494
  msgid "comefareper_approfondimenti"
1485
1495
  msgstr ""
1486
1496
 
1487
- #. Default: "Documenti"
1488
- #: components/View/ComeFarePer/ComeFarePerAllegati
1489
- msgid "comefareper_documenti"
1490
- msgstr ""
1491
-
1492
1497
  #. Default: "Contatti"
1493
1498
  #: components/Blocks/Contacts/schema
1494
1499
  msgid "contacts_block_title"
@@ -2057,6 +2062,11 @@ msgstr ""
2057
2062
  msgid "iconDescription"
2058
2063
  msgstr ""
2059
2064
 
2065
+ #. Default: "Icona per {topic_title}"
2066
+ #: components/View/commons/PageHeader/HeaderIcon
2067
+ msgid "icon_title"
2068
+ msgstr ""
2069
+
2060
2070
  #. Default: "Blocco con icone"
2061
2071
  #: components/Blocks/Icons/Sidebar
2062
2072
  msgid "icons_blocks"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "io-sanita-theme",
3
- "version": "2.24.0",
3
+ "version": "2.25.0",
4
4
  "description": "io-sanita-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -6,7 +6,6 @@ import cx from 'classnames';
6
6
  import { Card, CardBody, CardText, CardTitle } from 'design-react-kit';
7
7
 
8
8
  import VoltoIcon from '@plone/volto/components/theme/Icon/Icon';
9
- import ConditionalLink from '@plone/volto/components/manage/ConditionalLink/ConditionalLink';
10
9
  import { PuntoDiContattoValue } from 'io-sanita-theme/helpers';
11
10
 
12
11
  import telephoneIcon from 'io-sanita-theme/icons/telephone_icon.svg';
@@ -19,8 +18,6 @@ const CardContatti = ({
19
18
  className,
20
19
  ...rest
21
20
  }) => {
22
- const contactUrl = item['@id'];
23
-
24
21
  return (
25
22
  <Card
26
23
  className={cx('shadow rounded card-contatti no-after', className)}
@@ -33,13 +30,7 @@ const CardContatti = ({
33
30
  className="me-2 icon-sm icon-svg-telephone"
34
31
  name={telephoneIcon}
35
32
  />
36
- <ConditionalLink
37
- to={contactUrl}
38
- condition={contactUrl != null}
39
- className="text-decoration-none"
40
- >
41
- {item.title}
42
- </ConditionalLink>
33
+ {item.title}
43
34
  </CardTitle>
44
35
  )}
45
36
  {item?.contatti?.length > 0 && (
@@ -48,10 +39,10 @@ const CardContatti = ({
48
39
  return pdc.valore ? (
49
40
  <span key={index}>
50
41
  <span className="pdc-type">{pdc.tipo_label || pdc.tipo}</span>
51
- {/* <span className="pdc-desc">
52
- {pdc.descrizione ? ` - ${pdc.descrizione}` : ''}:{' '}
53
- </span> */}
54
42
  : <PuntoDiContattoValue value={pdc} />
43
+ <span className="pdc-desc">
44
+ {pdc.descrizione ? ` - ${pdc.descrizione}` : ''}
45
+ </span>
55
46
  </span>
56
47
  ) : (
57
48
  <></>
@@ -12,10 +12,11 @@
12
12
  span {
13
13
  flex: 1 1 100%;
14
14
  font-size: 0.8886rem;
15
+ word-break: break-word;
15
16
  }
16
17
 
17
18
  .pdc-type {
18
19
  text-transform: capitalize;
19
20
  }
20
21
  }
21
- }
22
+ }
@@ -0,0 +1,56 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { defineMessages, useIntl } from 'react-intl';
4
+ import { contentFolderHasItems } from 'io-sanita-theme/helpers';
5
+ import {
6
+ BackReferences,
7
+ Attachments,
8
+ } from 'io-sanita-theme/components/View/commons';
9
+
10
+ const messages = defineMessages({
11
+ allegati: {
12
+ id: 'come_fare_per_allegati',
13
+ defaultMessage: 'Allegati',
14
+ },
15
+ modulistica: { id: 'come_fare_per_modulistica', defaultMessage: 'Modulistica' },
16
+ documenti: {
17
+ id: 'come_fare_per_documenti',
18
+ defaultMessage: 'Documenti',
19
+ },
20
+ });
21
+
22
+ const ComeFarePerDocumenti = ({ content }) => {
23
+ const intl = useIntl();
24
+
25
+ return (
26
+ <>
27
+ {contentFolderHasItems(content, 'modulistica') && (
28
+ <Attachments
29
+ content={content}
30
+ folder_name={'modulistica'}
31
+ title={intl.formatMessage(messages.modulistica)}
32
+ />
33
+ )}
34
+ {contentFolderHasItems(content, 'allegati') && (
35
+ <Attachments
36
+ content={content}
37
+ folder_name={'allegati'}
38
+ title={intl.formatMessage(messages.allegati)}
39
+ />
40
+ )}
41
+
42
+ <BackReferences
43
+ type="Documento"
44
+ content={content}
45
+ id={'documenti_correlati'}
46
+ title={intl.formatMessage(messages.documenti)}
47
+ />
48
+ </>
49
+ );
50
+ };
51
+
52
+ ComeFarePerDocumenti.propTypes = {
53
+ content: PropTypes.object.isRequired,
54
+ };
55
+
56
+ export default ComeFarePerDocumenti;
@@ -22,23 +22,23 @@ import {
22
22
  import {
23
23
  ComeFarePerDescrizione,
24
24
  ComeFarePerAChiSiRivolge,
25
- ComeFarePerAllegati,
26
25
  ComeFarePerComeFare,
27
26
  ComeFarePerApprofondimenti,
28
27
  ComeFarePerUlterioriInformazioni,
28
+ ComeFarePerDocumenti,
29
29
  ComeFarePerSchemaOrg,
30
30
  } from 'io-sanita-theme/components/View/ComeFarePer';
31
31
 
32
32
  export const ComeFarePerViewSectionsOrder = [
33
33
  { /* DESCRIZIONE ESTESA (Panoramica) */ component: ComeFarePerDescrizione },
34
34
  { /* A CHI SI RIVOLGE */ component: ComeFarePerAChiSiRivolge },
35
- { /* ALLEGATI */ component: ComeFarePerAllegati },
36
35
  { /* COME FARE */ component: ComeFarePerComeFare },
37
36
  { /* APPROFONDIMENTI */ component: ComeFarePerApprofondimenti },
38
37
  {
39
38
  /* ULTERIORI INFORMAZIONI (e Parliamo di) */ component:
40
39
  ComeFarePerUlterioriInformazioni,
41
40
  },
41
+ { /* DOCUMENTI & ALLEGATI */ component: ComeFarePerDocumenti },
42
42
  { /* METADATA */ component: Metadata },
43
43
  { /* SCHEMA ORG*/ component: ComeFarePerSchemaOrg },
44
44
  ];
@@ -10,11 +10,7 @@ export const ComeFarePerAChiSiRivolge = loadable(() =>
10
10
  /* webpackChunkName: "ISComeFarePerView" */ 'io-sanita-theme/components/View/ComeFarePer/ComeFarePerAChiSiRivolge'
11
11
  ),
12
12
  );
13
- export const ComeFarePerAllegati = loadable(() =>
14
- import(
15
- /* webpackChunkName: "ISComeFarePerView" */ 'io-sanita-theme/components/View/ComeFarePer/ComeFarePerAllegati'
16
- ),
17
- );
13
+
18
14
  export const ComeFarePerComeFare = loadable(() =>
19
15
  import(
20
16
  /* webpackChunkName: "ISComeFarePerView" */ 'io-sanita-theme/components/View/ComeFarePer/ComeFarePerComeFare'
@@ -26,6 +22,11 @@ export const ComeFarePerDescrizione = loadable(() =>
26
22
  /* webpackChunkName: "ISComeFarePerView" */ 'io-sanita-theme/components/View/ComeFarePer/ComeFarePerDescrizione'
27
23
  ),
28
24
  );
25
+ export const ComeFarePerDocumenti = loadable(() =>
26
+ import(
27
+ /* webpackChunkName: "ISComeFarePerView" */ 'io-sanita-theme/components/View/ComeFarePer/ComeFarePerDocumenti'
28
+ ),
29
+ );
29
30
  export const ComeFarePerUlterioriInformazioni = loadable(() =>
30
31
  import(
31
32
  /* webpackChunkName: "ISComeFarePerView" */ 'io-sanita-theme/components/View/ComeFarePer/ComeFarePerUlterioriInformazioni'
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { useIntl, defineMessages } from 'react-intl';
3
+ import PropTypes from 'prop-types';
4
+ import { Icon } from 'io-sanita-theme/components';
5
+
6
+ const messages = defineMessages({
7
+ iconTitle: {
8
+ id: 'icon_title',
9
+ defaultMessage: 'Icona per {topic_title}',
10
+ },
11
+ });
12
+
13
+ const HeaderIcon = ({ icon, title }) => {
14
+ const intl = useIntl();
15
+
16
+ return icon ? (
17
+ <div className="icon-argument-container mb-2">
18
+ <Icon
19
+ icon={icon}
20
+ {...(title
21
+ ? {
22
+ title: intl.formatMessage(messages.iconTitle, {
23
+ topic_title: title,
24
+ }),
25
+ }
26
+ : { 'aria-hidden': true })}
27
+ />
28
+ </div>
29
+ ) : null;
30
+ };
31
+
32
+ export default HeaderIcon;
33
+
34
+ HeaderIcon.propTypes = {
35
+ icon: PropTypes.string,
36
+ };
@@ -18,6 +18,7 @@ import {
18
18
  PageHeaderPersona,
19
19
  Sharing,
20
20
  } from 'io-sanita-theme/components/View/commons';
21
+ import HeaderIcon from 'io-sanita-theme/components/View/commons/PageHeader/HeaderIcon';
21
22
 
22
23
  const messages = defineMessages({
23
24
  reading_time: {
@@ -57,6 +58,9 @@ const PageHeader = (props) => {
57
58
  <div className="PageHeaderWrapper mb-4">
58
59
  <div className="row mb-2 mb-lg-0 page-header">
59
60
  <div className="py-lg-2 col-lg-10 page-header-left">
61
+ {(content.icon || content.icona) && (
62
+ <HeaderIcon icon={content.icon || content.icona} />
63
+ )}
60
64
  <h1
61
65
  data-element={
62
66
  content['@type'] === 'Servizio' ? 'service-title' : 'page-name'
@@ -1,25 +1,8 @@
1
- import { defineMessages, useIntl } from 'react-intl';
2
1
  import { BadgeStatusServizio } from 'io-sanita-theme/components/View/Servizio';
3
2
 
4
- const messages = defineMessages({
5
- service_available: {
6
- id: 'Service available',
7
- defaultMessage: 'Servizio disponibile e prenotabile',
8
- },
9
- });
10
-
11
3
  const PageHeaderServizio = ({ content }) => {
12
- const intl = useIntl();
13
-
14
4
  return content['@type'] === 'Servizio' ? (
15
- <div className="mb-3">
16
- <BadgeStatusServizio item={content} />
17
- {content.servizio_attivo && (
18
- <span className="px-2">
19
- {intl.formatMessage(messages.service_available)}
20
- </span>
21
- )}
22
- </div>
5
+ <BadgeStatusServizio item={content} wrapperClassName="mb-3" />
23
6
  ) : null;
24
7
  };
25
8
 
@@ -25,6 +25,7 @@ import faUserSVG from 'io-sanita-theme/icons/user.svg';
25
25
  import faCogSVG from 'io-sanita-theme/icons/cog.svg';
26
26
  import faSitemapSVG from 'io-sanita-theme/icons/sitemap.svg';
27
27
  import faBuildingSVG from 'io-sanita-theme/icons/building.svg';
28
+ import faAslSVG from 'io-sanita-theme/icons/asl.svg';
28
29
  import faFileDownloadSVG from 'io-sanita-theme/icons/file-download.svg';
29
30
  import faQuestionSVG from 'io-sanita-theme/icons/question-solid.svg';
30
31
  import bandoSVG from 'io-sanita-theme/icons/bando.svg';
@@ -141,6 +142,7 @@ export default function applyConfig(config) {
141
142
  Image: faImageSVG,
142
143
  File: faFileSVG,
143
144
  Link: faLinkSVG,
145
+ Struttura: faAslSVG,
144
146
 
145
147
  Argomento: faBoxOpenSVG,
146
148
  CartellaModulistica: faArchiveSVG,
@@ -613,6 +613,28 @@ body.cms-ui {
613
613
  .icon.icon-margin {
614
614
  width: 20px !important;
615
615
  }
616
+
617
+ .future,
618
+ .expired {
619
+ display: inline-block;
620
+ padding: 2px 8px;
621
+ margin-left: 0.5em;
622
+ border-radius: 4px;
623
+ font-size: 0.8em;
624
+ font-weight: 600;
625
+ text-decoration: none;
626
+ white-space: nowrap;
627
+ }
628
+
629
+ .future {
630
+ background-color: #0066cc;
631
+ color: white;
632
+ }
633
+
634
+ .expired {
635
+ background-color: rgb(228, 1, 102);
636
+ color: white;
637
+ }
616
638
  }
617
639
  }
618
640
  #page-contents.ui.container.folder-contents {
@@ -750,7 +772,7 @@ body.cms-ui {
750
772
  body.has-toolbar {
751
773
  #toolbar {
752
774
  .toolbar-content.show {
753
- z-index: 9;
775
+ z-index: 501;
754
776
  }
755
777
  .personal-tools {
756
778
  .avatar {
@@ -52,7 +52,7 @@
52
52
  }
53
53
  }
54
54
 
55
- &.align.center iframe,
55
+ .video-inner iframe,
56
56
  &.full .video-inner.full-width iframe {
57
57
  position: absolute;
58
58
  top: 0;
@@ -1,3 +1,23 @@
1
+ .icon-argument-container {
2
+ display: flex;
3
+ width: 44px;
4
+ min-width: 44px;
5
+ height: 44px;
6
+ min-height: 44px;
7
+ align-items: center;
8
+ justify-content: center;
9
+ border-radius: 44px;
10
+ background-color: #f5f6f7;
11
+
12
+ .icon,
13
+ svg {
14
+ width: 24px;
15
+ height: 24px;
16
+ color: $primary;
17
+ fill: $primary;
18
+ }
19
+ }
20
+
1
21
  .PageHeaderWrapper {
2
22
  h1 {
3
23
  margin-bottom: 0.67em;
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import { defineMessages, useIntl } from 'react-intl';
4
- import { Attachments } from 'io-sanita-theme/components/View/commons';
5
- import { contentFolderHasItems } from 'io-sanita-theme/helpers';
6
-
7
- const messages = defineMessages({
8
- documenti: {
9
- id: 'comefareper_documenti',
10
- defaultMessage: 'Documenti',
11
- },
12
- });
13
-
14
- const ComeFarePerAllegati = ({ content }) => {
15
- const intl = useIntl();
16
-
17
- return (
18
- contentFolderHasItems(content, 'allegati') && (
19
- <Attachments
20
- content={content}
21
- folder_name={'allegati'}
22
- title={intl.formatMessage(messages.documenti)}
23
- />
24
- )
25
- );
26
- };
27
-
28
- ComeFarePerAllegati.propTypes = {
29
- content: PropTypes.object.isRequired,
30
- };
31
-
32
- export default ComeFarePerAllegati;