design-comuni-plone-theme 11.14.0 → 11.16.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/.github/workflows/main.yml +1 -1
- package/.github/workflows/performance.yml +1 -1
- package/.github/workflows/prs.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/.yarn/cache/volto-editablefooter-npm-5.1.7-483b4be25b-ad5642959b.zip +0 -0
- package/.yarn/cache/{volto-form-block-npm-3.8.6-70f0648a8f-b038d1b89e.zip → volto-form-block-npm-3.9.2-cb78fb6cd0-a47c5241be.zip} +0 -0
- package/.yarn/cache/{volto-gdpr-privacy-npm-2.2.6-d189f5d334-604badfe72.zip → volto-gdpr-privacy-npm-2.2.7-dd2359a788-beb301d21f.zip} +0 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +37 -0
- package/Makefile +1 -1
- package/RELEASE.md +16 -0
- package/locales/de/LC_MESSAGES/volto.po +3 -1
- package/locales/en/LC_MESSAGES/volto.po +3 -1
- package/locales/es/LC_MESSAGES/volto.po +3 -1
- package/locales/fr/LC_MESSAGES/volto.po +3 -1
- package/locales/it/LC_MESSAGES/volto.po +3 -1
- package/locales/volto.pot +4 -2
- package/package.json +5 -5
- package/publiccode.yml +2 -2
- package/src/components/ItaliaTheme/View/Commons/Actions.jsx +2 -2
- package/src/components/ItaliaTheme/View/Commons/Argument/ArgumentIcon.jsx +1 -1
- package/src/components/ItaliaTheme/View/Commons/Attachment.jsx +1 -1
- package/src/components/ItaliaTheme/View/Commons/HelpBox.jsx +1 -1
- package/src/components/ItaliaTheme/View/Commons/RenderBlocks.jsx +5 -2
- package/src/components/ItaliaTheme/View/Commons/Sharing.jsx +1 -1
- package/src/components/ItaliaTheme/View/Commons/__tests__/Dates.test.jsx +1 -1
- package/src/components/ItaliaTheme/View/IncaricoView/IncaricoView.jsx +50 -8
- package/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx +49 -47
- package/src/components/ItaliaTheme/View/__tests__/ServizioTempiScadenze.test.jsx +0 -1
- package/src/customizations/volto/helpers/FormValidation/FormValidation.js +1 -1
- package/.yarn/cache/volto-editablefooter-npm-5.1.6-2df484b3b6-0e479d49c4.zip +0 -0
- /package/src/components/ItaliaTheme/View/{__tests__/IncaricoView.test.jsx → __disabled_tests__/IncaricoView.test__disabled.jsx} +0 -0
|
Binary file
|
|
Binary file
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [11.16.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.15.0...v11.16.0) (2024-07-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* added date fields to incarico view ([#711](https://github.com/RedTurtle/design-comuni-plone-theme/issues/711)) ([038ef58](https://github.com/RedTurtle/design-comuni-plone-theme/commit/038ef5803af9bcb417fc757bb8ee6a57e065bad7))
|
|
9
|
+
* updated volto-form-block v3.9.2 ([#709](https://github.com/RedTurtle/design-comuni-plone-theme/issues/709)) ([1b9fde0](https://github.com/RedTurtle/design-comuni-plone-theme/commit/1b9fde00f01f646eb27f088e09e662c9c1c8d9d6))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* update to volto 17.18.2 ([c1ce5ac](https://github.com/RedTurtle/design-comuni-plone-theme/commit/c1ce5ac3239b77b819909e224cbb07f0097230ea))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Documentation
|
|
18
|
+
|
|
19
|
+
* updated publiccode and release log ([5ea19f6](https://github.com/RedTurtle/design-comuni-plone-theme/commit/5ea19f65ffeac054e318c77014d4a0bab478415f))
|
|
20
|
+
|
|
21
|
+
## [11.15.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.14.0...v11.15.0) (2024-07-05)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* moved start and end date of incarico after incarico name ([#715](https://github.com/RedTurtle/design-comuni-plone-theme/issues/715)) ([c07c1ea](https://github.com/RedTurtle/design-comuni-plone-theme/commit/c07c1ea41b3534ad0c05ba2b9990c7b1c8f226ff))
|
|
27
|
+
* update to volto 17.18.1 ([8896926](https://github.com/RedTurtle/design-comuni-plone-theme/commit/889692614b5728bd812754dea9191c5bcb127a0a))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* updated form validation customization ([f3d2e72](https://github.com/RedTurtle/design-comuni-plone-theme/commit/f3d2e72b47c8ce33326d0b4b5ca87daf9e874668))
|
|
33
|
+
* upgrade dependencies ([4ea3806](https://github.com/RedTurtle/design-comuni-plone-theme/commit/4ea38067018f2bbd35566b4d70ed87e9362988ef))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Documentation
|
|
37
|
+
|
|
38
|
+
* updated publiccode and release log ([91a58b6](https://github.com/RedTurtle/design-comuni-plone-theme/commit/91a58b6f124da03e10437c0ee4f48b9545d51ddf))
|
|
39
|
+
|
|
3
40
|
## [11.14.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.13.0...v11.14.0) (2024-06-21)
|
|
4
41
|
|
|
5
42
|
|
package/Makefile
CHANGED
|
@@ -27,7 +27,7 @@ CURRENT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
27
27
|
# ADDON ?= "design-comuni-plone-theme"
|
|
28
28
|
|
|
29
29
|
PLONE_VERSION=6
|
|
30
|
-
VOLTO_VERSION=17.
|
|
30
|
+
VOLTO_VERSION=17.18.2
|
|
31
31
|
|
|
32
32
|
ADDON_NAME='design-comuni-plone-theme'
|
|
33
33
|
ADDON_PATH='design-comuni-plone-theme'
|
package/RELEASE.md
CHANGED
|
@@ -41,6 +41,22 @@
|
|
|
41
41
|
- ...
|
|
42
42
|
-->
|
|
43
43
|
|
|
44
|
+
## Versione 11.16.0 (10/07/2024)
|
|
45
|
+
|
|
46
|
+
### Migliorie
|
|
47
|
+
|
|
48
|
+
- Tutti i campi compilabili nel CT Incarico vengono ora visualizzati nella vista corrispondente.
|
|
49
|
+
|
|
50
|
+
### Novità
|
|
51
|
+
|
|
52
|
+
- Aggiunti due campi nel blocco Form che permettono di configurare un testo per l'intestazione e uno a piè di pagina nella mail inviata.
|
|
53
|
+
|
|
54
|
+
## Versione 11.15.0 (05/07/2024)
|
|
55
|
+
|
|
56
|
+
### Novità
|
|
57
|
+
|
|
58
|
+
- Le informazioni sulla data di inizio e fine incarico sul CT persona vengono ora mostrate subito dopo l'incarico.
|
|
59
|
+
|
|
44
60
|
## Versione 11.14.0 (21/06/2024)
|
|
45
61
|
|
|
46
62
|
### Migliorie
|
|
@@ -1468,6 +1468,7 @@ msgstr ""
|
|
|
1468
1468
|
msgid "data_conclusione"
|
|
1469
1469
|
msgstr ""
|
|
1470
1470
|
|
|
1471
|
+
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1471
1472
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1472
1473
|
# defaultMessage: Ha fatto parte dell'organizzazione comunale come {incarico} fino al
|
|
1473
1474
|
msgid "data_conclusione_incarico"
|
|
@@ -1478,6 +1479,7 @@ msgstr ""
|
|
|
1478
1479
|
msgid "data_inizio"
|
|
1479
1480
|
msgstr ""
|
|
1480
1481
|
|
|
1482
|
+
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1481
1483
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1482
1484
|
# defaultMessage: Data di inizio dell'incarico
|
|
1483
1485
|
msgid "data_inizio_incarico"
|
|
@@ -1485,7 +1487,7 @@ msgstr ""
|
|
|
1485
1487
|
|
|
1486
1488
|
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1487
1489
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1488
|
-
# defaultMessage: Data insediamento
|
|
1490
|
+
# defaultMessage: Data di insediamento
|
|
1489
1491
|
msgid "data_insediamento"
|
|
1490
1492
|
msgstr ""
|
|
1491
1493
|
|
|
@@ -1453,6 +1453,7 @@ msgstr ""
|
|
|
1453
1453
|
msgid "data_conclusione"
|
|
1454
1454
|
msgstr ""
|
|
1455
1455
|
|
|
1456
|
+
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1456
1457
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1457
1458
|
# defaultMessage: Ha fatto parte dell'organizzazione comunale come {incarico} fino al
|
|
1458
1459
|
msgid "data_conclusione_incarico"
|
|
@@ -1463,6 +1464,7 @@ msgstr "He was part of the municipal organization until"
|
|
|
1463
1464
|
msgid "data_inizio"
|
|
1464
1465
|
msgstr ""
|
|
1465
1466
|
|
|
1467
|
+
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1466
1468
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1467
1469
|
# defaultMessage: Data di inizio dell'incarico
|
|
1468
1470
|
msgid "data_inizio_incarico"
|
|
@@ -1470,7 +1472,7 @@ msgstr ""
|
|
|
1470
1472
|
|
|
1471
1473
|
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1472
1474
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1473
|
-
# defaultMessage: Data insediamento
|
|
1475
|
+
# defaultMessage: Data di insediamento
|
|
1474
1476
|
msgid "data_insediamento"
|
|
1475
1477
|
msgstr "Settlement date"
|
|
1476
1478
|
|
|
@@ -1462,6 +1462,7 @@ msgstr ""
|
|
|
1462
1462
|
msgid "data_conclusione"
|
|
1463
1463
|
msgstr ""
|
|
1464
1464
|
|
|
1465
|
+
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1465
1466
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1466
1467
|
# defaultMessage: Ha fatto parte dell'organizzazione comunale come {incarico} fino al
|
|
1467
1468
|
msgid "data_conclusione_incarico"
|
|
@@ -1472,6 +1473,7 @@ msgstr "Formó parte de la organización municipal hasta"
|
|
|
1472
1473
|
msgid "data_inizio"
|
|
1473
1474
|
msgstr ""
|
|
1474
1475
|
|
|
1476
|
+
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1475
1477
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1476
1478
|
# defaultMessage: Data di inizio dell'incarico
|
|
1477
1479
|
msgid "data_inizio_incarico"
|
|
@@ -1479,7 +1481,7 @@ msgstr ""
|
|
|
1479
1481
|
|
|
1480
1482
|
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1481
1483
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1482
|
-
# defaultMessage: Data insediamento
|
|
1484
|
+
# defaultMessage: Data di insediamento
|
|
1483
1485
|
msgid "data_insediamento"
|
|
1484
1486
|
msgstr "Fecha de liquidación"
|
|
1485
1487
|
|
|
@@ -1470,6 +1470,7 @@ msgstr ""
|
|
|
1470
1470
|
msgid "data_conclusione"
|
|
1471
1471
|
msgstr ""
|
|
1472
1472
|
|
|
1473
|
+
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1473
1474
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1474
1475
|
# defaultMessage: Ha fatto parte dell'organizzazione comunale come {incarico} fino al
|
|
1475
1476
|
msgid "data_conclusione_incarico"
|
|
@@ -1480,6 +1481,7 @@ msgstr "Date de conclusion de la mission"
|
|
|
1480
1481
|
msgid "data_inizio"
|
|
1481
1482
|
msgstr ""
|
|
1482
1483
|
|
|
1484
|
+
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1483
1485
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1484
1486
|
# defaultMessage: Data di inizio dell'incarico
|
|
1485
1487
|
msgid "data_inizio_incarico"
|
|
@@ -1487,7 +1489,7 @@ msgstr ""
|
|
|
1487
1489
|
|
|
1488
1490
|
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1489
1491
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1490
|
-
# defaultMessage: Data insediamento
|
|
1492
|
+
# defaultMessage: Data di insediamento
|
|
1491
1493
|
msgid "data_insediamento"
|
|
1492
1494
|
msgstr "Date de règlement"
|
|
1493
1495
|
|
|
@@ -1453,6 +1453,7 @@ msgstr "dal {dateStart} fino a conclusione"
|
|
|
1453
1453
|
msgid "data_conclusione"
|
|
1454
1454
|
msgstr "Data conclusione incarico"
|
|
1455
1455
|
|
|
1456
|
+
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1456
1457
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1457
1458
|
# defaultMessage: Ha fatto parte dell'organizzazione comunale come {incarico} fino al
|
|
1458
1459
|
msgid "data_conclusione_incarico"
|
|
@@ -1463,6 +1464,7 @@ msgstr "Ha fatto parte dell'organizzazione comunale come {incarico} fino al"
|
|
|
1463
1464
|
msgid "data_inizio"
|
|
1464
1465
|
msgstr "Data inizio incarico"
|
|
1465
1466
|
|
|
1467
|
+
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1466
1468
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1467
1469
|
# defaultMessage: Data di inizio dell'incarico
|
|
1468
1470
|
msgid "data_inizio_incarico"
|
|
@@ -1470,7 +1472,7 @@ msgstr "Data di inizio dell'incarico"
|
|
|
1470
1472
|
|
|
1471
1473
|
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1472
1474
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1473
|
-
# defaultMessage: Data insediamento
|
|
1475
|
+
# defaultMessage: Data di insediamento
|
|
1474
1476
|
msgid "data_insediamento"
|
|
1475
1477
|
msgstr "Data di insediamento"
|
|
1476
1478
|
|
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: 2024-06-
|
|
4
|
+
"POT-Creation-Date: 2024-06-25T15:14:34.369Z\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"
|
|
@@ -1455,6 +1455,7 @@ msgstr ""
|
|
|
1455
1455
|
msgid "data_conclusione"
|
|
1456
1456
|
msgstr ""
|
|
1457
1457
|
|
|
1458
|
+
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1458
1459
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1459
1460
|
# defaultMessage: Ha fatto parte dell'organizzazione comunale come {incarico} fino al
|
|
1460
1461
|
msgid "data_conclusione_incarico"
|
|
@@ -1465,6 +1466,7 @@ msgstr ""
|
|
|
1465
1466
|
msgid "data_inizio"
|
|
1466
1467
|
msgstr ""
|
|
1467
1468
|
|
|
1469
|
+
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1468
1470
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1469
1471
|
# defaultMessage: Data di inizio dell'incarico
|
|
1470
1472
|
msgid "data_inizio_incarico"
|
|
@@ -1472,7 +1474,7 @@ msgstr ""
|
|
|
1472
1474
|
|
|
1473
1475
|
#: components/ItaliaTheme/View/IncaricoView/IncaricoView
|
|
1474
1476
|
#: components/ItaliaTheme/View/PersonaView/PersonaRuolo
|
|
1475
|
-
# defaultMessage: Data insediamento
|
|
1477
|
+
# defaultMessage: Data di insediamento
|
|
1476
1478
|
msgid "data_insediamento"
|
|
1477
1479
|
msgstr ""
|
|
1478
1480
|
|
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.
|
|
5
|
+
"version": "11.16.0",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -149,10 +149,10 @@
|
|
|
149
149
|
"volto-blocks-widget": "3.4.1",
|
|
150
150
|
"volto-data-grid-widget": "2.3.1",
|
|
151
151
|
"volto-dropdownmenu": "4.1.3",
|
|
152
|
-
"volto-editablefooter": "5.1.
|
|
152
|
+
"volto-editablefooter": "5.1.7",
|
|
153
153
|
"volto-feedback": "0.3.2",
|
|
154
|
-
"volto-form-block": "3.
|
|
155
|
-
"volto-gdpr-privacy": "2.2.
|
|
154
|
+
"volto-form-block": "3.9.2",
|
|
155
|
+
"volto-gdpr-privacy": "2.2.7",
|
|
156
156
|
"volto-google-analytics": "2.0.0",
|
|
157
157
|
"volto-multilingual-widget": "3.2.1",
|
|
158
158
|
"volto-querywidget-with-browser": "0.4.2",
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"stylelint-prettier": "4.0.2"
|
|
199
199
|
},
|
|
200
200
|
"peerDependencies": {
|
|
201
|
-
"@plone/volto": "17.
|
|
201
|
+
"@plone/volto": "17.18.2"
|
|
202
202
|
},
|
|
203
203
|
"packageManager": "yarn@3.2.3"
|
|
204
204
|
}
|
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-
|
|
230
|
+
releaseDate: '2024-07-10'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 11.
|
|
232
|
+
softwareVersion: 11.16.0
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
Button,
|
|
11
11
|
} from 'design-react-kit';
|
|
12
12
|
import { toPublicURL } from '@plone/volto/helpers';
|
|
13
|
-
import
|
|
13
|
+
import Icon from 'design-comuni-plone-theme/components/ItaliaTheme/Icons/Icon';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Actions view component class.
|
|
@@ -98,7 +98,7 @@ const Actions = (props) => {
|
|
|
98
98
|
<LinkList>
|
|
99
99
|
{socials.map((item, i) => {
|
|
100
100
|
const commonButtonProps = {
|
|
101
|
-
icon:
|
|
101
|
+
icon: undefined,
|
|
102
102
|
title: item.title,
|
|
103
103
|
alt: item.title,
|
|
104
104
|
'aria-label': item.title,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl, defineMessages } from 'react-intl';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import
|
|
4
|
+
import Icon from 'design-comuni-plone-theme/components/ItaliaTheme/Icons/Icon';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Dates view component class.
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { defineMessages, useIntl } from 'react-intl';
|
|
4
4
|
import { Card, CardBody, CardTitle } from 'design-react-kit';
|
|
5
5
|
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
6
|
-
import
|
|
6
|
+
import Icon from 'design-comuni-plone-theme/components/ItaliaTheme/Icons/Icon';
|
|
7
7
|
|
|
8
8
|
const messages = defineMessages({
|
|
9
9
|
attachment: {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useIntl, defineMessages } from 'react-intl';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { Callout, CalloutTitle } from 'design-react-kit';
|
|
5
|
-
import
|
|
5
|
+
import Icon from 'design-comuni-plone-theme/components/ItaliaTheme/Icons/Icon';
|
|
6
6
|
import { RichText } from 'design-comuni-plone-theme/components/ItaliaTheme/View';
|
|
7
7
|
|
|
8
8
|
const HelpBox = ({ text }) => {
|
|
@@ -67,9 +67,12 @@ const RenderBlocks = ({
|
|
|
67
67
|
|
|
68
68
|
if (Block != null) {
|
|
69
69
|
return (
|
|
70
|
-
<Wrapper
|
|
70
|
+
<Wrapper
|
|
71
|
+
block={blockContent[blocksFieldname]?.[block]}
|
|
72
|
+
id={block}
|
|
73
|
+
key={block}
|
|
74
|
+
>
|
|
71
75
|
<Block
|
|
72
|
-
key={block}
|
|
73
76
|
id={block}
|
|
74
77
|
properties={content ?? data}
|
|
75
78
|
data={{
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from 'design-react-kit';
|
|
12
12
|
|
|
13
13
|
import { toPublicURL } from '@plone/volto/helpers';
|
|
14
|
-
import
|
|
14
|
+
import Icon from 'design-comuni-plone-theme/components/ItaliaTheme/Icons/Icon';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Sharing view component class.
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import { injectIntl } from 'react-intl';
|
|
9
8
|
import { defineMessages, useIntl } from 'react-intl';
|
|
10
9
|
import {
|
|
11
10
|
PageHeader,
|
|
@@ -24,12 +23,26 @@ import {
|
|
|
24
23
|
import { contentFolderHasItems } from 'design-comuni-plone-theme/helpers';
|
|
25
24
|
import { UniversalLink } from '@plone/volto/components';
|
|
26
25
|
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
26
|
+
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
27
27
|
|
|
28
28
|
const messages = defineMessages({
|
|
29
29
|
tipologia_incarico: {
|
|
30
30
|
id: 'tipologia_incarico',
|
|
31
31
|
defaultMessage: 'Tipo di incarico',
|
|
32
32
|
},
|
|
33
|
+
data_inizio_incarico: {
|
|
34
|
+
id: 'data_inizio_incarico',
|
|
35
|
+
defaultMessage: "Data di inizio dell'incarico",
|
|
36
|
+
},
|
|
37
|
+
data_conclusione_incarico: {
|
|
38
|
+
id: 'data_conclusione_incarico',
|
|
39
|
+
defaultMessage:
|
|
40
|
+
"Ha fatto parte dell'organizzazione comunale come {incarico} fino al",
|
|
41
|
+
},
|
|
42
|
+
data_insediamento: {
|
|
43
|
+
id: 'data_insediamento',
|
|
44
|
+
defaultMessage: 'Data di insediamento',
|
|
45
|
+
},
|
|
33
46
|
importi_viaggio: {
|
|
34
47
|
id: 'importi_viaggio',
|
|
35
48
|
defaultMessage: 'Importi di viaggio e/o servizio',
|
|
@@ -54,10 +67,6 @@ const messages = defineMessages({
|
|
|
54
67
|
id: 'data_conclusione',
|
|
55
68
|
defaultMessage: 'Data conclusione incarico',
|
|
56
69
|
},
|
|
57
|
-
data_insediamento: {
|
|
58
|
-
id: 'data_insediamento',
|
|
59
|
-
defaultMessage: 'Data insediamento',
|
|
60
|
-
},
|
|
61
70
|
atto_nomina: {
|
|
62
71
|
id: 'atto_nomina',
|
|
63
72
|
defaultMessage: 'Atto di nomina',
|
|
@@ -69,9 +78,10 @@ const messages = defineMessages({
|
|
|
69
78
|
* @param {Object} content Content object.
|
|
70
79
|
* @returns {string} Markup of the component.
|
|
71
80
|
*/
|
|
72
|
-
const IncaricoView = (
|
|
73
|
-
const
|
|
81
|
+
const IncaricoView = ({ content, moment: momentlib }) => {
|
|
82
|
+
const moment = momentlib.default;
|
|
74
83
|
const intl = useIntl();
|
|
84
|
+
|
|
75
85
|
return (
|
|
76
86
|
<div className="container px-4 my-4 incarico-view">
|
|
77
87
|
<SkipToMainContent />
|
|
@@ -93,6 +103,38 @@ const IncaricoView = (props) => {
|
|
|
93
103
|
<div className="font-serif">{content.tipologia_incarico.title}</div>
|
|
94
104
|
</RichTextSection>
|
|
95
105
|
)}
|
|
106
|
+
{content.data_inizio_incarico && (
|
|
107
|
+
<RichTextSection
|
|
108
|
+
tag_id="data_inizio_incarico"
|
|
109
|
+
title={intl.formatMessage(messages.data_inizio_incarico)}
|
|
110
|
+
>
|
|
111
|
+
<div className="font-serif">
|
|
112
|
+
{moment(content.data_inizio_incarico).format('D-MM-YYYY')}
|
|
113
|
+
</div>
|
|
114
|
+
</RichTextSection>
|
|
115
|
+
)}
|
|
116
|
+
{content.data_conclusione_incarico && (
|
|
117
|
+
<RichTextSection
|
|
118
|
+
tag_id="data_conclusione_incarico"
|
|
119
|
+
title={intl.formatMessage(messages.data_conclusione_incarico, {
|
|
120
|
+
incarico: content.title,
|
|
121
|
+
})}
|
|
122
|
+
>
|
|
123
|
+
<div className="font-serif">
|
|
124
|
+
{moment(content.data_conclusione_incarico).format('D-MM-YYYY')}
|
|
125
|
+
</div>
|
|
126
|
+
</RichTextSection>
|
|
127
|
+
)}
|
|
128
|
+
{content.data_insediamento && (
|
|
129
|
+
<RichTextSection
|
|
130
|
+
tag_id="data_insediamento"
|
|
131
|
+
title={intl.formatMessage(messages.data_insediamento)}
|
|
132
|
+
>
|
|
133
|
+
<div className="font-serif">
|
|
134
|
+
{moment(content.data_insediamento).format('D-MM-YYYY')}
|
|
135
|
+
</div>
|
|
136
|
+
</RichTextSection>
|
|
137
|
+
)}
|
|
96
138
|
{richTextHasContent(content.compensi) && (
|
|
97
139
|
<RichTextSection
|
|
98
140
|
data={content.compensi}
|
|
@@ -196,4 +238,4 @@ IncaricoView.propTypes = {
|
|
|
196
238
|
}).isRequired,
|
|
197
239
|
};
|
|
198
240
|
|
|
199
|
-
export default
|
|
241
|
+
export default injectLazyLibs(['moment'])(IncaricoView);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { defineMessages, useIntl } from 'react-intl';
|
|
2
3
|
import { UniversalLink } from '@plone/volto/components';
|
|
3
4
|
import {
|
|
@@ -85,12 +86,12 @@ const PersonaRuolo = ({ content }) => {
|
|
|
85
86
|
return (
|
|
86
87
|
<>
|
|
87
88
|
{content?.incarichi_persona?.length > 0 && (
|
|
88
|
-
|
|
89
|
+
<React.Fragment key={content?.incarichi_persona[0]?.id}>
|
|
89
90
|
<RichTextSection
|
|
90
91
|
tag_id="incarico"
|
|
91
92
|
title={intl.formatMessage(messages.ruolo)}
|
|
92
93
|
>
|
|
93
|
-
<div className="font-serif"
|
|
94
|
+
<div className="font-serif mb-3">
|
|
94
95
|
<p>{content?.incarichi_persona[0]?.title}</p>
|
|
95
96
|
{content?.incarichi_persona[0]?.atto_di_nomina && (
|
|
96
97
|
<UniversalLink
|
|
@@ -100,6 +101,51 @@ const PersonaRuolo = ({ content }) => {
|
|
|
100
101
|
</UniversalLink>
|
|
101
102
|
)}
|
|
102
103
|
</div>
|
|
104
|
+
|
|
105
|
+
{content.incarichi_persona[0].data_inizio_incarico && (
|
|
106
|
+
<RichTextSection
|
|
107
|
+
tag_id="data_inizio_incarico"
|
|
108
|
+
title={intl.formatMessage(messages.data_inizio_incarico)}
|
|
109
|
+
>
|
|
110
|
+
<div className="font-serif">
|
|
111
|
+
{viewDate(
|
|
112
|
+
intl.locale,
|
|
113
|
+
content.incarichi_persona[0].data_inizio_incarico,
|
|
114
|
+
'DD MMMM Y',
|
|
115
|
+
)}
|
|
116
|
+
</div>
|
|
117
|
+
</RichTextSection>
|
|
118
|
+
)}
|
|
119
|
+
{content.incarichi_persona[0].data_conclusione_incarico && (
|
|
120
|
+
<RichTextSection
|
|
121
|
+
tag_id="data_conclusione_incarico"
|
|
122
|
+
title={intl.formatMessage(messages.data_conclusione_incarico, {
|
|
123
|
+
incarico: content.incarichi_persona[0].title,
|
|
124
|
+
})}
|
|
125
|
+
>
|
|
126
|
+
<div className="font-serif">
|
|
127
|
+
{viewDate(
|
|
128
|
+
intl.locale,
|
|
129
|
+
content.incarichi_persona[0].data_conclusione_incarico,
|
|
130
|
+
'DD MMMM Y',
|
|
131
|
+
)}
|
|
132
|
+
</div>
|
|
133
|
+
</RichTextSection>
|
|
134
|
+
)}
|
|
135
|
+
{content.incarichi_persona[0].data_insediamento && (
|
|
136
|
+
<RichTextSection
|
|
137
|
+
tag_id="data_insediamento"
|
|
138
|
+
title={intl.formatMessage(messages.data_insediamento)}
|
|
139
|
+
>
|
|
140
|
+
<div className="font-serif">
|
|
141
|
+
{viewDate(
|
|
142
|
+
intl.locale,
|
|
143
|
+
content.incarichi_persona[0].data_insediamento,
|
|
144
|
+
'DD MMMM Y',
|
|
145
|
+
)}
|
|
146
|
+
</div>
|
|
147
|
+
</RichTextSection>
|
|
148
|
+
)}
|
|
103
149
|
</RichTextSection>
|
|
104
150
|
{content.incarichi_persona[0]?.tipologia_incarico?.title && (
|
|
105
151
|
<RichTextSection
|
|
@@ -191,51 +237,7 @@ const PersonaRuolo = ({ content }) => {
|
|
|
191
237
|
)}
|
|
192
238
|
</RichTextSection>
|
|
193
239
|
)}
|
|
194
|
-
|
|
195
|
-
<RichTextSection
|
|
196
|
-
tag_id="data_insediamento"
|
|
197
|
-
title={intl.formatMessage(messages.data_insediamento)}
|
|
198
|
-
>
|
|
199
|
-
<div className="font-serif">
|
|
200
|
-
{viewDate(
|
|
201
|
-
intl.locale,
|
|
202
|
-
content.incarichi_persona[0].data_insediamento,
|
|
203
|
-
'DD MMMM Y',
|
|
204
|
-
)}
|
|
205
|
-
</div>
|
|
206
|
-
</RichTextSection>
|
|
207
|
-
)}
|
|
208
|
-
{content.incarichi_persona[0].data_inizio_incarico && (
|
|
209
|
-
<RichTextSection
|
|
210
|
-
tag_id="data_inizio_incarico"
|
|
211
|
-
title={intl.formatMessage(messages.data_inizio_incarico)}
|
|
212
|
-
>
|
|
213
|
-
<div className="font-serif">
|
|
214
|
-
{viewDate(
|
|
215
|
-
intl.locale,
|
|
216
|
-
content.incarichi_persona[0].data_inizio_incarico,
|
|
217
|
-
'DD MMMM Y',
|
|
218
|
-
)}
|
|
219
|
-
</div>
|
|
220
|
-
</RichTextSection>
|
|
221
|
-
)}
|
|
222
|
-
{content.incarichi_persona[0].data_conclusione_incarico && (
|
|
223
|
-
<RichTextSection
|
|
224
|
-
tag_id="data_conclusione_incarico"
|
|
225
|
-
title={intl.formatMessage(messages.data_conclusione_incarico, {
|
|
226
|
-
incarico: content.incarichi_persona[0].title,
|
|
227
|
-
})}
|
|
228
|
-
>
|
|
229
|
-
<div className="font-serif">
|
|
230
|
-
{viewDate(
|
|
231
|
-
intl.locale,
|
|
232
|
-
content.incarichi_persona[0].data_conclusione_incarico,
|
|
233
|
-
'DD MMMM Y',
|
|
234
|
-
)}
|
|
235
|
-
</div>
|
|
236
|
-
</RichTextSection>
|
|
237
|
-
)}
|
|
238
|
-
</>
|
|
240
|
+
</React.Fragment>
|
|
239
241
|
)}
|
|
240
242
|
|
|
241
243
|
{content.incarichi_persona?.length > 1 && (
|
|
@@ -14,7 +14,6 @@ const mockStore = configureStore(middlewares);
|
|
|
14
14
|
// Warning: An update to Icon inside a test was not wrapped in act(...).
|
|
15
15
|
// When testing, code that causes React state updates should be wrapped into act(...):
|
|
16
16
|
jest.mock('design-comuni-plone-theme/components/ItaliaTheme/Icons/Icon');
|
|
17
|
-
// loadables.push('rrule');
|
|
18
17
|
jest.mock('@plone/volto/helpers/Loadable/Loadable');
|
|
19
18
|
beforeAll(
|
|
20
19
|
async () =>
|
|
@@ -188,7 +188,7 @@ const widgetValidation = {
|
|
|
188
188
|
* The string that comes my not be a valid JSON
|
|
189
189
|
* @param {string} requestItem
|
|
190
190
|
*/
|
|
191
|
-
const tryParseJSON = (requestItem) => {
|
|
191
|
+
export const tryParseJSON = (requestItem) => {
|
|
192
192
|
let resultObj = null;
|
|
193
193
|
try {
|
|
194
194
|
resultObj = JSON.parse(requestItem);
|
|
Binary file
|