design-comuni-plone-theme 12.1.3 → 12.2.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/withnewsletter.yml +12 -12
- package/.yarn/cache/brace-expansion-npm-1.1.12-329e9ad7a1-12cb6d6310.zip +0 -0
- package/.yarn/cache/{volto-form-block-npm-3.10.0-8cd1c7a976-8ddce2c624.zip → volto-form-block-npm-3.12.0-0e050cb6bf-878c6f6af8.zip} +0 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +38 -0
- package/RELEASE.md +20 -0
- package/locales/de/LC_MESSAGES/volto.po +50 -0
- package/locales/en/LC_MESSAGES/volto.po +50 -0
- package/locales/es/LC_MESSAGES/volto.po +50 -0
- package/locales/fr/LC_MESSAGES/volto.po +50 -0
- package/locales/it/LC_MESSAGES/volto.po +50 -0
- package/locales/volto.pot +51 -1
- package/package.json +2 -2
- package/publiccode.yml +31 -7
- package/src/components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate.jsx +131 -126
- package/src/components/ItaliaTheme/Blocks/Listing/PhotogalleryTemplate.jsx +3 -2
- package/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx +1 -0
- package/src/components/ItaliaTheme/Blocks/VideoGallery/Body.jsx +1 -0
- package/src/components/ItaliaTheme/View/Commons/Gallery.jsx +1 -0
- package/src/customizations/volto-form-block/components/FormView.jsx +34 -28
- package/src/customizations/volto-form-block/components/Sidebar.jsx +9 -0
- package/src/customizations/volto-form-block/fieldSchema.js +11 -0
- package/src/overrideTranslations.jsx +30 -3
- package/src/theme/ItaliaTheme/Blocks/_bandiInEvidenceTemplate.scss +4 -54
- package/src/theme/ItaliaTheme/Blocks/_completeBlockLinkstemplate.scss +4 -0
- package/src/theme/ItaliaTheme/Blocks/_form.scss +18 -1
- package/.yarn/cache/brace-expansion-npm-1.1.11-fb95eb05ad-faf34a7bb0.zip +0 -0
|
@@ -33,15 +33,15 @@ jobs:
|
|
|
33
33
|
ADDON_PATH=design-comuni-plone-theme
|
|
34
34
|
VOLTO_VERSION=17.20.4
|
|
35
35
|
|
|
36
|
-
- name: Deploy to rancher
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
36
|
+
# - name: Deploy to rancher
|
|
37
|
+
# uses: redturtle/rancher-deploy-action@v0.2.0
|
|
38
|
+
# with:
|
|
39
|
+
# host: ${{ secrets.RANCHER_HOST }}
|
|
40
|
+
# api-username: ${{ secrets.RANCHER_API_USERNAME }}
|
|
41
|
+
# api-password: ${{ secrets.RANCHER_API_PASSWORD }}
|
|
42
|
+
# cluster-id: ${{ secrets.RANCHER_CLUSTER_ID }}
|
|
43
|
+
# project-id: ${{ secrets.RANCHER_PROJECT_ID }}
|
|
44
|
+
# namespace: ${{ secrets.RANCHER_NAMESPACE_DEVELOP }}
|
|
45
|
+
# workload: ${{ secrets.RANCHER_WORKLOAD_DEVELOP }}
|
|
46
|
+
# image: redturtletech/io-comune-base:withnewsletter
|
|
47
|
+
# slack-hook-url: ${{ secrets.RANCHER_SLACK_HOOK_URL }}
|
|
Binary file
|
|
Binary file
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [12.2.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.1.4...v12.2.0) (2025-06-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* added new feature of volto-form-block, conditions to show or hide fields ([#946](https://github.com/RedTurtle/design-comuni-plone-theme/issues/946)) ([0be0271](https://github.com/RedTurtle/design-comuni-plone-theme/commit/0be02710ae4c77bea35d0cdd81e5600ae3a80414))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* card width of bandi template ([#955](https://github.com/RedTurtle/design-comuni-plone-theme/issues/955)) ([98518f5](https://github.com/RedTurtle/design-comuni-plone-theme/commit/98518f52a566ee1e6623d03ce69a81fb2954f752))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Maintenance
|
|
17
|
+
|
|
18
|
+
* **deps:** bump brace-expansion from 1.1.11 to 1.1.12 ([#958](https://github.com/RedTurtle/design-comuni-plone-theme/issues/958)) ([853b888](https://github.com/RedTurtle/design-comuni-plone-theme/commit/853b88876cdda2751f4e196d960d3ea6ecf246da))
|
|
19
|
+
* lazyloading images in all slick slider ([#959](https://github.com/RedTurtle/design-comuni-plone-theme/issues/959)) ([46c1df8](https://github.com/RedTurtle/design-comuni-plone-theme/commit/46c1df88a467d976e3128903cf10a791664352fc))
|
|
20
|
+
* remove obsolete deployment step ([8dc263b](https://github.com/RedTurtle/design-comuni-plone-theme/commit/8dc263b069ee20006bb3958b6a0f2c7a8031b3e9))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Documentation
|
|
24
|
+
|
|
25
|
+
* nuovo logo ([#208](https://github.com/RedTurtle/design-comuni-plone-theme/issues/208)) ([463a01d](https://github.com/RedTurtle/design-comuni-plone-theme/commit/463a01d59c6bf72a18f34584dbad9e25a333395e))
|
|
26
|
+
* **publiccode:** update usedBy ([#207](https://github.com/RedTurtle/design-comuni-plone-theme/issues/207)) ([c0dcb23](https://github.com/RedTurtle/design-comuni-plone-theme/commit/c0dcb235feb4923cb6e9d3cecef1cf46b10d9993))
|
|
27
|
+
* updated publiccode and release log ([7e67449](https://github.com/RedTurtle/design-comuni-plone-theme/commit/7e67449aa992cbee59209078527ccc3ef5688f84))
|
|
28
|
+
|
|
29
|
+
## [12.1.4](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.1.3...v12.1.4) (2025-05-22)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* added a gap between the lines if the completeBlockLinks has 2+ lines of content ([#953](https://github.com/RedTurtle/design-comuni-plone-theme/issues/953)) ([a3c1269](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a3c1269cd2725d268052b08f37468356f0901ce4))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Documentation
|
|
38
|
+
|
|
39
|
+
* updated publiccode and release log ([0ac938b](https://github.com/RedTurtle/design-comuni-plone-theme/commit/0ac938bca9e948ae1ab17397ca5ad637a6374ef7))
|
|
40
|
+
|
|
3
41
|
## [12.1.3](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.1.2...v12.1.3) (2025-05-20)
|
|
4
42
|
|
|
5
43
|
|
package/RELEASE.md
CHANGED
|
@@ -41,6 +41,26 @@
|
|
|
41
41
|
- ...
|
|
42
42
|
-->
|
|
43
43
|
|
|
44
|
+
## Versione 12.2.0 (17/06/2025)
|
|
45
|
+
|
|
46
|
+
### Migliorie
|
|
47
|
+
|
|
48
|
+
- Le immagini negli slider vengono ora caricate in modalità 'lazy', in modo da alleggerire il caricamento iniziale della pagina.
|
|
49
|
+
|
|
50
|
+
### Novità
|
|
51
|
+
|
|
52
|
+
- Blocco form aggiornato, ora è possibile rendere visibili i vari campi solo quando vengono soddisfatte determinate condizioni create dal redattore.
|
|
53
|
+
|
|
54
|
+
### Fix
|
|
55
|
+
|
|
56
|
+
- Sistemata la dimensione delle card nella variazione Bandi del blocco elenco.
|
|
57
|
+
|
|
58
|
+
## Versione 12.1.4 (22/05/2025)
|
|
59
|
+
|
|
60
|
+
### Fix
|
|
61
|
+
|
|
62
|
+
- Spazio aggiunto tra le righe se la variazione "Blocco link completo" ha più di due righe di contenuto.
|
|
63
|
+
|
|
44
64
|
## Versione 12.1.3 (20/05/2025)
|
|
45
65
|
|
|
46
66
|
### Fix
|
|
@@ -1455,6 +1455,56 @@ msgstr ""
|
|
|
1455
1455
|
msgid "competenze"
|
|
1456
1456
|
msgstr ""
|
|
1457
1457
|
|
|
1458
|
+
#: overrideTranslations
|
|
1459
|
+
# defaultMessage: Contiene
|
|
1460
|
+
msgid "condition_contains"
|
|
1461
|
+
msgstr ""
|
|
1462
|
+
|
|
1463
|
+
#: overrideTranslations
|
|
1464
|
+
# defaultMessage: È maggiore o uguale
|
|
1465
|
+
msgid "condition_greater_or_equal"
|
|
1466
|
+
msgstr ""
|
|
1467
|
+
|
|
1468
|
+
#: overrideTranslations
|
|
1469
|
+
# defaultMessage: È maggiore di
|
|
1470
|
+
msgid "condition_greater_than"
|
|
1471
|
+
msgstr ""
|
|
1472
|
+
|
|
1473
|
+
#: overrideTranslations
|
|
1474
|
+
# defaultMessage: È vuoto
|
|
1475
|
+
msgid "condition_is_empty"
|
|
1476
|
+
msgstr ""
|
|
1477
|
+
|
|
1478
|
+
#: overrideTranslations
|
|
1479
|
+
# defaultMessage: È uguale a
|
|
1480
|
+
msgid "condition_is_equal_to"
|
|
1481
|
+
msgstr ""
|
|
1482
|
+
|
|
1483
|
+
#: overrideTranslations
|
|
1484
|
+
# defaultMessage: Non è vuoto
|
|
1485
|
+
msgid "condition_is_not_empty"
|
|
1486
|
+
msgstr ""
|
|
1487
|
+
|
|
1488
|
+
#: overrideTranslations
|
|
1489
|
+
# defaultMessage: Non è uguale a
|
|
1490
|
+
msgid "condition_is_not_equal_to"
|
|
1491
|
+
msgstr ""
|
|
1492
|
+
|
|
1493
|
+
#: overrideTranslations
|
|
1494
|
+
# defaultMessage: È minore o uguale
|
|
1495
|
+
msgid "condition_less_or_equal"
|
|
1496
|
+
msgstr ""
|
|
1497
|
+
|
|
1498
|
+
#: overrideTranslations
|
|
1499
|
+
# defaultMessage: È minore di
|
|
1500
|
+
msgid "condition_less_than"
|
|
1501
|
+
msgstr ""
|
|
1502
|
+
|
|
1503
|
+
#: overrideTranslations
|
|
1504
|
+
# defaultMessage: Non contiene
|
|
1505
|
+
msgid "condition_not_contains"
|
|
1506
|
+
msgstr ""
|
|
1507
|
+
|
|
1458
1508
|
#: components/ItaliaTheme/View/PersonaView/PersonaContatti
|
|
1459
1509
|
# defaultMessage: Contatti
|
|
1460
1510
|
msgid "contacts"
|
|
@@ -1440,6 +1440,56 @@ msgstr "Remunerations"
|
|
|
1440
1440
|
msgid "competenze"
|
|
1441
1441
|
msgstr "Skills"
|
|
1442
1442
|
|
|
1443
|
+
#: overrideTranslations
|
|
1444
|
+
# defaultMessage: Contiene
|
|
1445
|
+
msgid "condition_contains"
|
|
1446
|
+
msgstr "Contains"
|
|
1447
|
+
|
|
1448
|
+
#: overrideTranslations
|
|
1449
|
+
# defaultMessage: È maggiore o uguale
|
|
1450
|
+
msgid "condition_greater_or_equal"
|
|
1451
|
+
msgstr "Greater or equal"
|
|
1452
|
+
|
|
1453
|
+
#: overrideTranslations
|
|
1454
|
+
# defaultMessage: È maggiore di
|
|
1455
|
+
msgid "condition_greater_than"
|
|
1456
|
+
msgstr "Greater than"
|
|
1457
|
+
|
|
1458
|
+
#: overrideTranslations
|
|
1459
|
+
# defaultMessage: È vuoto
|
|
1460
|
+
msgid "condition_is_empty"
|
|
1461
|
+
msgstr "Is empty"
|
|
1462
|
+
|
|
1463
|
+
#: overrideTranslations
|
|
1464
|
+
# defaultMessage: È uguale a
|
|
1465
|
+
msgid "condition_is_equal_to"
|
|
1466
|
+
msgstr "Is equal to"
|
|
1467
|
+
|
|
1468
|
+
#: overrideTranslations
|
|
1469
|
+
# defaultMessage: Non è vuoto
|
|
1470
|
+
msgid "condition_is_not_empty"
|
|
1471
|
+
msgstr "Is not empty"
|
|
1472
|
+
|
|
1473
|
+
#: overrideTranslations
|
|
1474
|
+
# defaultMessage: Non è uguale a
|
|
1475
|
+
msgid "condition_is_not_equal_to"
|
|
1476
|
+
msgstr "Is not equal to"
|
|
1477
|
+
|
|
1478
|
+
#: overrideTranslations
|
|
1479
|
+
# defaultMessage: È minore o uguale
|
|
1480
|
+
msgid "condition_less_or_equal"
|
|
1481
|
+
msgstr "Less or equal"
|
|
1482
|
+
|
|
1483
|
+
#: overrideTranslations
|
|
1484
|
+
# defaultMessage: È minore di
|
|
1485
|
+
msgid "condition_less_than"
|
|
1486
|
+
msgstr "Less than"
|
|
1487
|
+
|
|
1488
|
+
#: overrideTranslations
|
|
1489
|
+
# defaultMessage: Non contiene
|
|
1490
|
+
msgid "condition_not_contains"
|
|
1491
|
+
msgstr "Not contains"
|
|
1492
|
+
|
|
1443
1493
|
#: components/ItaliaTheme/View/PersonaView/PersonaContatti
|
|
1444
1494
|
# defaultMessage: Contatti
|
|
1445
1495
|
msgid "contacts"
|
|
@@ -1449,6 +1449,56 @@ msgstr "Compensaciones"
|
|
|
1449
1449
|
msgid "competenze"
|
|
1450
1450
|
msgstr "Habilidades"
|
|
1451
1451
|
|
|
1452
|
+
#: overrideTranslations
|
|
1453
|
+
# defaultMessage: Contiene
|
|
1454
|
+
msgid "condition_contains"
|
|
1455
|
+
msgstr "Contiene"
|
|
1456
|
+
|
|
1457
|
+
#: overrideTranslations
|
|
1458
|
+
# defaultMessage: È maggiore o uguale
|
|
1459
|
+
msgid "condition_greater_or_equal"
|
|
1460
|
+
msgstr "Es mayor o igual a"
|
|
1461
|
+
|
|
1462
|
+
#: overrideTranslations
|
|
1463
|
+
# defaultMessage: È maggiore di
|
|
1464
|
+
msgid "condition_greater_than"
|
|
1465
|
+
msgstr "Es mayor que"
|
|
1466
|
+
|
|
1467
|
+
#: overrideTranslations
|
|
1468
|
+
# defaultMessage: È vuoto
|
|
1469
|
+
msgid "condition_is_empty"
|
|
1470
|
+
msgstr "Esta vacio"
|
|
1471
|
+
|
|
1472
|
+
#: overrideTranslations
|
|
1473
|
+
# defaultMessage: È uguale a
|
|
1474
|
+
msgid "condition_is_equal_to"
|
|
1475
|
+
msgstr "Es lo mismo que"
|
|
1476
|
+
|
|
1477
|
+
#: overrideTranslations
|
|
1478
|
+
# defaultMessage: Non è vuoto
|
|
1479
|
+
msgid "condition_is_not_empty"
|
|
1480
|
+
msgstr "No está vacío"
|
|
1481
|
+
|
|
1482
|
+
#: overrideTranslations
|
|
1483
|
+
# defaultMessage: Non è uguale a
|
|
1484
|
+
msgid "condition_is_not_equal_to"
|
|
1485
|
+
msgstr "No es lo mismo que"
|
|
1486
|
+
|
|
1487
|
+
#: overrideTranslations
|
|
1488
|
+
# defaultMessage: È minore o uguale
|
|
1489
|
+
msgid "condition_less_or_equal"
|
|
1490
|
+
msgstr "Es menor o igual a"
|
|
1491
|
+
|
|
1492
|
+
#: overrideTranslations
|
|
1493
|
+
# defaultMessage: È minore di
|
|
1494
|
+
msgid "condition_less_than"
|
|
1495
|
+
msgstr "Es menos que"
|
|
1496
|
+
|
|
1497
|
+
#: overrideTranslations
|
|
1498
|
+
# defaultMessage: Non contiene
|
|
1499
|
+
msgid "condition_not_contains"
|
|
1500
|
+
msgstr "No contiene"
|
|
1501
|
+
|
|
1452
1502
|
#: components/ItaliaTheme/View/PersonaView/PersonaContatti
|
|
1453
1503
|
# defaultMessage: Contatti
|
|
1454
1504
|
msgid "contacts"
|
|
@@ -1457,6 +1457,56 @@ msgstr "Compensations"
|
|
|
1457
1457
|
msgid "competenze"
|
|
1458
1458
|
msgstr "Compétences"
|
|
1459
1459
|
|
|
1460
|
+
#: overrideTranslations
|
|
1461
|
+
# defaultMessage: Contiene
|
|
1462
|
+
msgid "condition_contains"
|
|
1463
|
+
msgstr "Contient"
|
|
1464
|
+
|
|
1465
|
+
#: overrideTranslations
|
|
1466
|
+
# defaultMessage: È maggiore o uguale
|
|
1467
|
+
msgid "condition_greater_or_equal"
|
|
1468
|
+
msgstr "Il est supérieur ou égal à"
|
|
1469
|
+
|
|
1470
|
+
#: overrideTranslations
|
|
1471
|
+
# defaultMessage: È maggiore di
|
|
1472
|
+
msgid "condition_greater_than"
|
|
1473
|
+
msgstr "C'est plus grand que"
|
|
1474
|
+
|
|
1475
|
+
#: overrideTranslations
|
|
1476
|
+
# defaultMessage: È vuoto
|
|
1477
|
+
msgid "condition_is_empty"
|
|
1478
|
+
msgstr "C'est vide"
|
|
1479
|
+
|
|
1480
|
+
#: overrideTranslations
|
|
1481
|
+
# defaultMessage: È uguale a
|
|
1482
|
+
msgid "condition_is_equal_to"
|
|
1483
|
+
msgstr "C'est la même chose que"
|
|
1484
|
+
|
|
1485
|
+
#: overrideTranslations
|
|
1486
|
+
# defaultMessage: Non è vuoto
|
|
1487
|
+
msgid "condition_is_not_empty"
|
|
1488
|
+
msgstr "Ce n'est pas vide"
|
|
1489
|
+
|
|
1490
|
+
#: overrideTranslations
|
|
1491
|
+
# defaultMessage: Non è uguale a
|
|
1492
|
+
msgid "condition_is_not_equal_to"
|
|
1493
|
+
msgstr "Ce n'est pas la même chose que"
|
|
1494
|
+
|
|
1495
|
+
#: overrideTranslations
|
|
1496
|
+
# defaultMessage: È minore o uguale
|
|
1497
|
+
msgid "condition_less_or_equal"
|
|
1498
|
+
msgstr "Il est inférieur ou égal à"
|
|
1499
|
+
|
|
1500
|
+
#: overrideTranslations
|
|
1501
|
+
# defaultMessage: È minore di
|
|
1502
|
+
msgid "condition_less_than"
|
|
1503
|
+
msgstr "C'est moins que"
|
|
1504
|
+
|
|
1505
|
+
#: overrideTranslations
|
|
1506
|
+
# defaultMessage: Non contiene
|
|
1507
|
+
msgid "condition_not_contains"
|
|
1508
|
+
msgstr "Ne contient pas"
|
|
1509
|
+
|
|
1460
1510
|
#: components/ItaliaTheme/View/PersonaView/PersonaContatti
|
|
1461
1511
|
# defaultMessage: Contatti
|
|
1462
1512
|
msgid "contacts"
|
|
@@ -1440,6 +1440,56 @@ msgstr "Compensi"
|
|
|
1440
1440
|
msgid "competenze"
|
|
1441
1441
|
msgstr "Competenze"
|
|
1442
1442
|
|
|
1443
|
+
#: overrideTranslations
|
|
1444
|
+
# defaultMessage: Contiene
|
|
1445
|
+
msgid "condition_contains"
|
|
1446
|
+
msgstr ""
|
|
1447
|
+
|
|
1448
|
+
#: overrideTranslations
|
|
1449
|
+
# defaultMessage: È maggiore o uguale
|
|
1450
|
+
msgid "condition_greater_or_equal"
|
|
1451
|
+
msgstr ""
|
|
1452
|
+
|
|
1453
|
+
#: overrideTranslations
|
|
1454
|
+
# defaultMessage: È maggiore di
|
|
1455
|
+
msgid "condition_greater_than"
|
|
1456
|
+
msgstr ""
|
|
1457
|
+
|
|
1458
|
+
#: overrideTranslations
|
|
1459
|
+
# defaultMessage: È vuoto
|
|
1460
|
+
msgid "condition_is_empty"
|
|
1461
|
+
msgstr ""
|
|
1462
|
+
|
|
1463
|
+
#: overrideTranslations
|
|
1464
|
+
# defaultMessage: È uguale a
|
|
1465
|
+
msgid "condition_is_equal_to"
|
|
1466
|
+
msgstr ""
|
|
1467
|
+
|
|
1468
|
+
#: overrideTranslations
|
|
1469
|
+
# defaultMessage: Non è vuoto
|
|
1470
|
+
msgid "condition_is_not_empty"
|
|
1471
|
+
msgstr ""
|
|
1472
|
+
|
|
1473
|
+
#: overrideTranslations
|
|
1474
|
+
# defaultMessage: Non è uguale a
|
|
1475
|
+
msgid "condition_is_not_equal_to"
|
|
1476
|
+
msgstr ""
|
|
1477
|
+
|
|
1478
|
+
#: overrideTranslations
|
|
1479
|
+
# defaultMessage: È minore o uguale
|
|
1480
|
+
msgid "condition_less_or_equal"
|
|
1481
|
+
msgstr ""
|
|
1482
|
+
|
|
1483
|
+
#: overrideTranslations
|
|
1484
|
+
# defaultMessage: È minore di
|
|
1485
|
+
msgid "condition_less_than"
|
|
1486
|
+
msgstr ""
|
|
1487
|
+
|
|
1488
|
+
#: overrideTranslations
|
|
1489
|
+
# defaultMessage: Non contiene
|
|
1490
|
+
msgid "condition_not_contains"
|
|
1491
|
+
msgstr ""
|
|
1492
|
+
|
|
1443
1493
|
#: components/ItaliaTheme/View/PersonaView/PersonaContatti
|
|
1444
1494
|
# defaultMessage: Contatti
|
|
1445
1495
|
msgid "contacts"
|
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: 2025-04-
|
|
4
|
+
"POT-Creation-Date: 2025-04-29T19:12:18.732Z\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"
|
|
@@ -1442,6 +1442,56 @@ msgstr ""
|
|
|
1442
1442
|
msgid "competenze"
|
|
1443
1443
|
msgstr ""
|
|
1444
1444
|
|
|
1445
|
+
#: overrideTranslations
|
|
1446
|
+
# defaultMessage: Contiene
|
|
1447
|
+
msgid "condition_contains"
|
|
1448
|
+
msgstr ""
|
|
1449
|
+
|
|
1450
|
+
#: overrideTranslations
|
|
1451
|
+
# defaultMessage: È maggiore o uguale
|
|
1452
|
+
msgid "condition_greater_or_equal"
|
|
1453
|
+
msgstr ""
|
|
1454
|
+
|
|
1455
|
+
#: overrideTranslations
|
|
1456
|
+
# defaultMessage: È maggiore di
|
|
1457
|
+
msgid "condition_greater_than"
|
|
1458
|
+
msgstr ""
|
|
1459
|
+
|
|
1460
|
+
#: overrideTranslations
|
|
1461
|
+
# defaultMessage: È vuoto
|
|
1462
|
+
msgid "condition_is_empty"
|
|
1463
|
+
msgstr ""
|
|
1464
|
+
|
|
1465
|
+
#: overrideTranslations
|
|
1466
|
+
# defaultMessage: È uguale a
|
|
1467
|
+
msgid "condition_is_equal_to"
|
|
1468
|
+
msgstr ""
|
|
1469
|
+
|
|
1470
|
+
#: overrideTranslations
|
|
1471
|
+
# defaultMessage: Non è vuoto
|
|
1472
|
+
msgid "condition_is_not_empty"
|
|
1473
|
+
msgstr ""
|
|
1474
|
+
|
|
1475
|
+
#: overrideTranslations
|
|
1476
|
+
# defaultMessage: Non è uguale a
|
|
1477
|
+
msgid "condition_is_not_equal_to"
|
|
1478
|
+
msgstr ""
|
|
1479
|
+
|
|
1480
|
+
#: overrideTranslations
|
|
1481
|
+
# defaultMessage: È minore o uguale
|
|
1482
|
+
msgid "condition_less_or_equal"
|
|
1483
|
+
msgstr ""
|
|
1484
|
+
|
|
1485
|
+
#: overrideTranslations
|
|
1486
|
+
# defaultMessage: È minore di
|
|
1487
|
+
msgid "condition_less_than"
|
|
1488
|
+
msgstr ""
|
|
1489
|
+
|
|
1490
|
+
#: overrideTranslations
|
|
1491
|
+
# defaultMessage: Non contiene
|
|
1492
|
+
msgid "condition_not_contains"
|
|
1493
|
+
msgstr ""
|
|
1494
|
+
|
|
1445
1495
|
#: components/ItaliaTheme/View/PersonaView/PersonaContatti
|
|
1446
1496
|
# defaultMessage: Contatti
|
|
1447
1497
|
msgid "contacts"
|
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": "12.
|
|
5
|
+
"version": "12.2.0",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"volto-dropdownmenu": "4.1.3",
|
|
153
153
|
"volto-editablefooter": "5.1.7",
|
|
154
154
|
"volto-feedback": "0.6.1",
|
|
155
|
-
"volto-form-block": "3.
|
|
155
|
+
"volto-form-block": "3.12.0",
|
|
156
156
|
"volto-gdpr-privacy": "2.2.12",
|
|
157
157
|
"volto-google-analytics": "2.0.0",
|
|
158
158
|
"volto-multilingual-widget": "3.2.1",
|
package/publiccode.yml
CHANGED
|
@@ -10,9 +10,9 @@ categories:
|
|
|
10
10
|
dependsOn:
|
|
11
11
|
open:
|
|
12
12
|
- name: nodejs
|
|
13
|
-
versionMin: '
|
|
13
|
+
versionMin: '20'
|
|
14
14
|
- name: Python
|
|
15
|
-
versionMin: '3.
|
|
15
|
+
versionMin: '3.11'
|
|
16
16
|
- name: Docker
|
|
17
17
|
versionMin: '18.03'
|
|
18
18
|
optional: true
|
|
@@ -227,24 +227,28 @@ maintenance:
|
|
|
227
227
|
name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
|
|
228
228
|
platforms:
|
|
229
229
|
- web
|
|
230
|
-
releaseDate: '2025-
|
|
230
|
+
releaseDate: '2025-06-17'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 12.
|
|
232
|
+
softwareVersion: 12.2.0
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
236
236
|
- Azienda Ospedaliero-Universitaria di Ferrara
|
|
237
|
-
- Azienda
|
|
237
|
+
- Azienda Speciale Cavriago Servizi
|
|
238
238
|
- Biblioteche Pianura Est
|
|
239
239
|
- ASP Comuni Modenesi Area Nord
|
|
240
|
+
- ASP Circondario Imolese
|
|
240
241
|
- Azienda Ospedaliero-Universitaria di Ferrara
|
|
241
|
-
-
|
|
242
|
+
- AUSL Romagna
|
|
242
243
|
- Biblioteca comunale di Imola
|
|
243
244
|
- Biblioteche Pianura Est
|
|
244
245
|
- Camera di Commercio dell'Umbria
|
|
245
|
-
- Camera di Commercio di
|
|
246
|
+
- Camera di Commercio di Padova
|
|
247
|
+
- Camera di Commercio dell'Emilia
|
|
246
248
|
- Comune della Spezia
|
|
249
|
+
- Comune di Bastiglia
|
|
247
250
|
- Comune di Bibbiano
|
|
251
|
+
- Comune di Bomporto
|
|
248
252
|
- Comune di Borgo Tossignano
|
|
249
253
|
- Comune di Campegine
|
|
250
254
|
- Comune di Camposanto
|
|
@@ -253,8 +257,11 @@ usedBy:
|
|
|
253
257
|
- Comune di Casalfiumanese
|
|
254
258
|
- Comune di Castel del Rio
|
|
255
259
|
- Comune di Castel Guelfo di Bologna
|
|
260
|
+
- Comune di Castelfranco Emilia
|
|
256
261
|
- Comune di Cavezzo
|
|
257
262
|
- Comune di Cavriago
|
|
263
|
+
- Comune di Cavriago - Centro culturale Mavarta
|
|
264
|
+
- Comune di Cavriago - Centro culturale Multiplo
|
|
258
265
|
- Comune di Concordia sul Secchia
|
|
259
266
|
- Comune di Dozza
|
|
260
267
|
- Comune di Gattatico
|
|
@@ -264,22 +271,32 @@ usedBy:
|
|
|
264
271
|
- Comune di Formigine
|
|
265
272
|
- Comune di Frassinoro
|
|
266
273
|
- Comune di Imola
|
|
274
|
+
- Comune di Imola - siti tematici della rete civica
|
|
275
|
+
- Comune di Lignano Sabbiadoro
|
|
267
276
|
- Comune di Maranello
|
|
268
277
|
- Comune di Medolla
|
|
269
278
|
- Comune di Mirandola
|
|
279
|
+
- Comune di Mirandola - Centro la Raganella
|
|
270
280
|
- Comune di Modena
|
|
281
|
+
- Comune di Modena - siti tematici della rete civica
|
|
271
282
|
- Comune di Montecchio Emilia
|
|
272
283
|
- Comune di Montefiorino
|
|
273
284
|
- Comune di Mordano
|
|
285
|
+
- Comune di Nonantola
|
|
274
286
|
- Comune di Novellara
|
|
275
287
|
- Comune di Palagano
|
|
276
288
|
- Comune di Parma
|
|
289
|
+
- Comune di Parma - siti tematici del Comune di Parma
|
|
277
290
|
- Comune di Piacenza
|
|
278
291
|
- Comune di Prignano
|
|
292
|
+
- Comune di Ravarino
|
|
279
293
|
- Comune di Reggio Emilia
|
|
280
294
|
- Comune di Rolo
|
|
295
|
+
- Comune di San Cesario sul Panaro
|
|
281
296
|
- Comune di San Felice sul Panaro
|
|
282
297
|
- Comune di San Lazzaro di Savena
|
|
298
|
+
- Comune di San Lazzaro di Savena - Mediateca
|
|
299
|
+
- Comune di San Lazzaro di Savena - Sportello Sociale
|
|
283
300
|
- Comune di San Polo d'Enza
|
|
284
301
|
- Comune di San Possidonio
|
|
285
302
|
- Comune di San Prospero
|
|
@@ -288,12 +305,19 @@ usedBy:
|
|
|
288
305
|
- Comune di Toscolano Maderno
|
|
289
306
|
- Comune di Vaiano
|
|
290
307
|
- Comune di Vernio
|
|
308
|
+
- Comune di Vibo Valentia
|
|
291
309
|
- Comando Generale della Guardia di Finanza
|
|
292
310
|
- NNB Ispra Ambiente
|
|
293
311
|
- Nuovo Circondario Imolese
|
|
312
|
+
- Ospedali Galliera
|
|
294
313
|
- Ospedali Galliera - Bilancio Sociale
|
|
295
314
|
- Provincia di Pisa
|
|
315
|
+
- Provincia di Varese
|
|
316
|
+
- Regione Emilia-Romagna
|
|
317
|
+
- Regione Liguria - S3 Monitoraggio
|
|
318
|
+
- Unione Bassa Reggiana
|
|
296
319
|
- Unione Comuni Distretto Ceramico
|
|
297
320
|
- UCMAN (Unione dei Comuni Modenesi Area Nord)
|
|
321
|
+
- Unione Comuni del Sorbara
|
|
298
322
|
- Unione Val d'Enza
|
|
299
323
|
- Unione Val di Bisenzio
|
|
@@ -84,155 +84,160 @@ const BandiInEvidenceTemplate = ({
|
|
|
84
84
|
</Col>
|
|
85
85
|
</Row>
|
|
86
86
|
)}
|
|
87
|
-
|
|
87
|
+
|
|
88
|
+
<Row className={cx({ 'pb-3': show_block_bg })}>
|
|
88
89
|
{items.map((item, index) => {
|
|
89
90
|
const listingText = <ListingText item={item} />;
|
|
90
91
|
return (
|
|
91
|
-
<
|
|
92
|
-
<
|
|
93
|
-
<
|
|
94
|
-
<
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
{show_description && listingText && (
|
|
104
|
-
<div className="bando-description">{listingText}</div>
|
|
105
|
-
)}
|
|
106
|
-
<div className="bando-lower-section">
|
|
107
|
-
<div className="bando-dati mb-2">
|
|
108
|
-
{/* Ente */}
|
|
109
|
-
{show_ente && item.ente_bando?.length > 0 && (
|
|
110
|
-
<span className="d-flex flex-wrap align-items-baseline bando-dati-info">
|
|
111
|
-
<div className="bando-dati-label me-2">
|
|
112
|
-
{intl.formatMessage(messages.ente)}:
|
|
113
|
-
</div>
|
|
114
|
-
<span className="bando-dati-date">
|
|
115
|
-
{item.ente_bando.map((ente, i) => (
|
|
116
|
-
<span>
|
|
117
|
-
{ente}
|
|
118
|
-
{i < item.ente_bando.length - 1 ? ', ' : ''}
|
|
119
|
-
</span>
|
|
120
|
-
))}
|
|
121
|
-
</span>
|
|
122
|
-
</span>
|
|
123
|
-
)}
|
|
92
|
+
<Col lg={4} sm={6} xs={12} key={index} className="pb-3">
|
|
93
|
+
<Card key={index} className="listing-item card-bg mt-2">
|
|
94
|
+
<CardBody>
|
|
95
|
+
<CardTitle tag="h3" className="title">
|
|
96
|
+
<UniversalLink
|
|
97
|
+
className="bando-title"
|
|
98
|
+
item={!isEditMode ? item : null}
|
|
99
|
+
href={isEditMode ? '#' : null}
|
|
100
|
+
>
|
|
101
|
+
{item.title || item.id}
|
|
102
|
+
</UniversalLink>
|
|
103
|
+
</CardTitle>
|
|
124
104
|
|
|
125
|
-
|
|
126
|
-
{
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
105
|
+
{show_description && listingText && (
|
|
106
|
+
<div className="bando-description">{listingText}</div>
|
|
107
|
+
)}
|
|
108
|
+
<div className="bando-lower-section">
|
|
109
|
+
<div className="bando-dati mb-2">
|
|
110
|
+
{/* Ente */}
|
|
111
|
+
{show_ente && item.ente_bando?.length > 0 && (
|
|
112
|
+
<span className="d-flex flex-wrap align-items-baseline bando-dati-info">
|
|
113
|
+
<div className="bando-dati-label me-2">
|
|
114
|
+
{intl.formatMessage(messages.ente)}:
|
|
115
|
+
</div>
|
|
116
|
+
<span className="bando-dati-date">
|
|
117
|
+
{item.ente_bando.map((ente, i) => (
|
|
118
|
+
<span>
|
|
119
|
+
{ente}
|
|
120
|
+
{i < item.ente_bando.length - 1 ? ', ' : ''}
|
|
121
|
+
</span>
|
|
122
|
+
))}
|
|
123
|
+
</span>
|
|
133
124
|
</span>
|
|
134
|
-
|
|
135
|
-
)}
|
|
125
|
+
)}
|
|
136
126
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
item.effective,
|
|
147
|
-
'DD-MM-YYYY',
|
|
148
|
-
)}
|
|
127
|
+
{/* Tipologia */}
|
|
128
|
+
{show_tipologia && item?.tipologia_bando && (
|
|
129
|
+
<span className="d-flex flex-wrap align-items-baseline bando-dati-info">
|
|
130
|
+
<div className="bando-dati-label me-2">
|
|
131
|
+
{intl.formatMessage(messages.tipologia)}:
|
|
132
|
+
</div>
|
|
133
|
+
<span className="bando-dati-date">
|
|
134
|
+
{item.tipologia_bando}
|
|
135
|
+
</span>
|
|
149
136
|
</span>
|
|
150
|
-
|
|
151
|
-
)}
|
|
137
|
+
)}
|
|
152
138
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
viewDate(
|
|
139
|
+
{/* Pubblicazione */}
|
|
140
|
+
{item.effective && (
|
|
141
|
+
<span className="d-flex flex-wrap align-items-baseline bando-dati-info">
|
|
142
|
+
<div className="bando-dati-label me-2">
|
|
143
|
+
{intl.formatMessage(messages.pubblicazione)}:
|
|
144
|
+
</div>
|
|
145
|
+
<span className="bando-dati-date">
|
|
146
|
+
{viewDate(
|
|
162
147
|
intl.locale,
|
|
163
|
-
item.
|
|
148
|
+
item.effective,
|
|
164
149
|
'DD-MM-YYYY',
|
|
165
150
|
)}
|
|
151
|
+
</span>
|
|
166
152
|
</span>
|
|
167
|
-
|
|
168
|
-
)}
|
|
153
|
+
)}
|
|
169
154
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
155
|
+
{/* Scadenza */}
|
|
156
|
+
{item.scadenza_bando && (
|
|
157
|
+
<span className="d-flex flex-wrap align-items-baseline bando-dati-info">
|
|
158
|
+
<div className="bando-dati-label me-2">
|
|
159
|
+
{intl.formatMessage(messages.scadenza)}:
|
|
160
|
+
</div>
|
|
161
|
+
<span className="bando-dati-date">
|
|
162
|
+
{item.scadenza_bando &&
|
|
163
|
+
viewDate(
|
|
164
|
+
intl.locale,
|
|
165
|
+
item.scadenza_bando,
|
|
166
|
+
'DD-MM-YYYY',
|
|
167
|
+
)}
|
|
168
|
+
</span>
|
|
184
169
|
</span>
|
|
185
|
-
|
|
186
|
-
)}
|
|
187
|
-
|
|
188
|
-
{/* Stato */}
|
|
189
|
-
{item?.bando_state?.length > 0 && (
|
|
190
|
-
<span className="d-flex align-items-baseline bando-dati-info">
|
|
191
|
-
<div className="bando-dati-label me-3">
|
|
192
|
-
{intl.formatMessage(messages.stato)}:
|
|
193
|
-
</div>
|
|
170
|
+
)}
|
|
194
171
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
item.bando_state?.includes('inProgress'),
|
|
204
|
-
})}
|
|
205
|
-
>
|
|
206
|
-
<BandoStatus content={item} />
|
|
172
|
+
{/* Chiusura procedimento */}
|
|
173
|
+
{item.chiusura_procedimento_bando && (
|
|
174
|
+
<span className="d-flex flex-wrap align-items-baseline bando-dati-info">
|
|
175
|
+
<div className="bando-dati-label me-2">
|
|
176
|
+
{intl.formatMessage(
|
|
177
|
+
messages.chiusura_procedimento,
|
|
178
|
+
)}
|
|
179
|
+
:
|
|
207
180
|
</div>
|
|
181
|
+
<span className="bando-dati-date">
|
|
182
|
+
{item.chiusura_procedimento_bando &&
|
|
183
|
+
viewDate(
|
|
184
|
+
intl.locale,
|
|
185
|
+
item.chiusura_procedimento_bando,
|
|
186
|
+
'DD-MM-YYYY',
|
|
187
|
+
)}
|
|
188
|
+
</span>
|
|
208
189
|
</span>
|
|
209
|
-
|
|
210
|
-
)}
|
|
190
|
+
)}
|
|
211
191
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
192
|
+
{/* Stato */}
|
|
193
|
+
{item?.bando_state?.length > 0 && (
|
|
194
|
+
<span className="d-flex align-items-baseline bando-dati-info">
|
|
195
|
+
<div className="bando-dati-label me-3">
|
|
196
|
+
{intl.formatMessage(messages.stato)}:
|
|
197
|
+
</div>
|
|
198
|
+
|
|
199
|
+
<span className="bando-dati-date">
|
|
200
|
+
<div
|
|
201
|
+
className={cx('bando-state', {
|
|
202
|
+
open: item.bando_state?.includes('open'),
|
|
203
|
+
closed: item.bando_state?.includes('closed'),
|
|
204
|
+
scheduled:
|
|
205
|
+
item.bando_state?.includes('scheduled'),
|
|
206
|
+
'in-progress':
|
|
207
|
+
item.bando_state?.includes('inProgress'),
|
|
208
|
+
})}
|
|
209
|
+
>
|
|
210
|
+
<BandoStatus content={item} />
|
|
211
|
+
</div>
|
|
212
|
+
</span>
|
|
218
213
|
</span>
|
|
219
214
|
)}
|
|
215
|
+
|
|
216
|
+
{/* Note aggiornamenti */}
|
|
217
|
+
{item.update_note &&
|
|
218
|
+
(item.bando_state?.includes('open') ||
|
|
219
|
+
item.bando_state?.includes('inProgress')) && (
|
|
220
|
+
<span className="d-flex bando-note">
|
|
221
|
+
<strong>{item.update_note}</strong>
|
|
222
|
+
</span>
|
|
223
|
+
)}
|
|
224
|
+
</div>
|
|
225
|
+
<div className="read-more">
|
|
226
|
+
<CardReadMore
|
|
227
|
+
iconName="it-arrow-right"
|
|
228
|
+
tag={UniversalLink}
|
|
229
|
+
item={!isEditMode ? item : null}
|
|
230
|
+
href={isEditMode ? '#' : null}
|
|
231
|
+
text={intl.formatMessage(messages.vedi)}
|
|
232
|
+
/>
|
|
233
|
+
</div>
|
|
220
234
|
</div>
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
tag={UniversalLink}
|
|
225
|
-
item={!isEditMode ? item : null}
|
|
226
|
-
href={isEditMode ? '#' : null}
|
|
227
|
-
text={intl.formatMessage(messages.vedi)}
|
|
228
|
-
/>
|
|
229
|
-
</div>
|
|
230
|
-
</div>
|
|
231
|
-
</CardBody>
|
|
232
|
-
</Card>
|
|
235
|
+
</CardBody>
|
|
236
|
+
</Card>
|
|
237
|
+
</Col>
|
|
233
238
|
);
|
|
234
239
|
})}
|
|
235
|
-
</
|
|
240
|
+
</Row>
|
|
236
241
|
|
|
237
242
|
<ListingLinkMore
|
|
238
243
|
title={linkTitle}
|
|
@@ -69,6 +69,7 @@ const PhotogalleryTemplate = ({
|
|
|
69
69
|
const settings = {
|
|
70
70
|
dots: true,
|
|
71
71
|
infinite: true,
|
|
72
|
+
lazyLoad: true,
|
|
72
73
|
autoplay: autoplay,
|
|
73
74
|
speed: 500,
|
|
74
75
|
slidesToShow: items.length < 3 ? items.length : 3,
|
|
@@ -160,8 +161,8 @@ const PhotogalleryTemplate = ({
|
|
|
160
161
|
items.length === 1
|
|
161
162
|
? '1300'
|
|
162
163
|
: items.length === 2
|
|
163
|
-
|
|
164
|
-
|
|
164
|
+
? '650'
|
|
165
|
+
: '450'
|
|
165
166
|
}px`,
|
|
166
167
|
noWrapLink: true,
|
|
167
168
|
showDefault: true,
|
|
@@ -6,18 +6,19 @@
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { useIntl, defineMessages } from 'react-intl';
|
|
8
8
|
import { Card, CardBody, Row, Col, Alert, Progress } from 'design-react-kit';
|
|
9
|
-
// eslint-disable-next-line import/no-unresolved
|
|
10
9
|
import { getFieldName } from 'volto-form-block/components/utils';
|
|
11
|
-
// eslint-disable-next-line import/no-unresolved
|
|
12
10
|
import Field from 'volto-form-block/components/Field';
|
|
13
11
|
import {
|
|
14
12
|
OTPWidget,
|
|
15
13
|
OTP_FIELDNAME_EXTENDER,
|
|
16
14
|
Button,
|
|
17
15
|
} from 'volto-form-block/components/Widget';
|
|
18
|
-
import { FormResult } from 'volto-form-block/components';
|
|
19
|
-
// eslint-disable-next-line import/no-unresolved
|
|
20
16
|
import config from '@plone/volto/registry';
|
|
17
|
+
import { FormResult } from 'volto-form-block/components';
|
|
18
|
+
import { evaluateAllConditions } from 'volto-form-block/helpers/conditions-list';
|
|
19
|
+
|
|
20
|
+
/* Style */
|
|
21
|
+
import 'volto-form-block/components/FormView.css';
|
|
21
22
|
|
|
22
23
|
const messages = defineMessages({
|
|
23
24
|
default_submit_label: {
|
|
@@ -181,30 +182,35 @@ const FormView = ({
|
|
|
181
182
|
getFieldsToSendWithValue(subblock);
|
|
182
183
|
|
|
183
184
|
return (
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
185
|
+
evaluateAllConditions(
|
|
186
|
+
subblock?.visibility_conditions,
|
|
187
|
+
formData,
|
|
188
|
+
) && (
|
|
189
|
+
<Row key={'row' + index}>
|
|
190
|
+
<Col className="py-2">
|
|
191
|
+
<Field
|
|
192
|
+
{...subblock}
|
|
193
|
+
name={name}
|
|
194
|
+
onChange={(field, value) =>
|
|
195
|
+
onChangeFormData(
|
|
196
|
+
subblock.id,
|
|
197
|
+
field,
|
|
198
|
+
value,
|
|
199
|
+
fields_to_send_with_value,
|
|
200
|
+
)
|
|
201
|
+
}
|
|
202
|
+
value={
|
|
203
|
+
subblock.field_type === 'static_text'
|
|
204
|
+
? subblock.value
|
|
205
|
+
: formData[name]?.value
|
|
206
|
+
}
|
|
207
|
+
valid={isValidField(name)}
|
|
208
|
+
errorMessage={getErrorMessage(name)}
|
|
209
|
+
formHasErrors={formErrors.length > 0}
|
|
210
|
+
/>
|
|
211
|
+
</Col>
|
|
212
|
+
</Row>
|
|
213
|
+
)
|
|
208
214
|
);
|
|
209
215
|
})}
|
|
210
216
|
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
getFormData,
|
|
30
30
|
exportCsvFormData,
|
|
31
31
|
clearFormData,
|
|
32
|
+
setSubblocksIDList,
|
|
32
33
|
} from 'volto-form-block/actions';
|
|
33
34
|
|
|
34
35
|
import { BlockDataForm } from '@plone/volto/components';
|
|
@@ -119,6 +120,14 @@ const Sidebar = ({
|
|
|
119
120
|
var FormSchema = config.blocks.blocksConfig.form.formSchema;
|
|
120
121
|
var FieldSchema = config.blocks.blocksConfig.form.fieldSchema;
|
|
121
122
|
|
|
123
|
+
// update list of fields ID
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
if (data.subblocks?.length > 0) {
|
|
126
|
+
dispatch(setSubblocksIDList(data.subblocks));
|
|
127
|
+
}
|
|
128
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
129
|
+
}, [data]);
|
|
130
|
+
|
|
122
131
|
return (
|
|
123
132
|
<Form>
|
|
124
133
|
<Segment.Group raised>
|
|
@@ -18,6 +18,11 @@ const messages = defineMessages({
|
|
|
18
18
|
id: 'form_field_required',
|
|
19
19
|
defaultMessage: 'Required',
|
|
20
20
|
},
|
|
21
|
+
field_required_info_text: {
|
|
22
|
+
id: 'form_field_required_info_text',
|
|
23
|
+
defaultMessage:
|
|
24
|
+
'If visibility conditions have been added to the field, it is advisable not to apply the requirement.',
|
|
25
|
+
},
|
|
21
26
|
field_type: {
|
|
22
27
|
id: 'form_field_type',
|
|
23
28
|
defaultMessage: 'Field type',
|
|
@@ -453,6 +458,7 @@ export default (props) => {
|
|
|
453
458
|
: []),
|
|
454
459
|
...(props?.field_type === 'static_text' ? [] : ['required']),
|
|
455
460
|
'unique',
|
|
461
|
+
'visibility_conditions',
|
|
456
462
|
],
|
|
457
463
|
},
|
|
458
464
|
],
|
|
@@ -499,6 +505,7 @@ export default (props) => {
|
|
|
499
505
|
title: intl.formatMessage(messages.field_required),
|
|
500
506
|
type: 'boolean',
|
|
501
507
|
default: false,
|
|
508
|
+
description: intl.formatMessage(messages.field_required_info_text),
|
|
502
509
|
},
|
|
503
510
|
unique: {
|
|
504
511
|
title: intl.formatMessage(messages.field_unique_title),
|
|
@@ -507,6 +514,10 @@ export default (props) => {
|
|
|
507
514
|
default: false,
|
|
508
515
|
send_to_backend: true,
|
|
509
516
|
},
|
|
517
|
+
visibility_conditions: {
|
|
518
|
+
title: 'Scelte visibili se',
|
|
519
|
+
widget: 'visibility_conditions_widget',
|
|
520
|
+
},
|
|
510
521
|
...schemaExtenderValues.properties,
|
|
511
522
|
},
|
|
512
523
|
required: [
|
|
@@ -37,21 +37,48 @@ defineMessages({
|
|
|
37
37
|
id: 'rrule_weekday',
|
|
38
38
|
defaultMessage: 'giorno feriale',
|
|
39
39
|
},
|
|
40
|
+
//---- Volto-form-block ----//
|
|
40
41
|
reset: {
|
|
41
|
-
//volto-form-block
|
|
42
42
|
id: 'form_reset',
|
|
43
43
|
defaultMessage: 'Ricomincia',
|
|
44
44
|
},
|
|
45
45
|
legend_required: {
|
|
46
|
-
//volto-form-block
|
|
47
46
|
id: 'legend_required',
|
|
48
47
|
defaultMessage: 'I campi contrassegnati da (*) sono obbligatori.',
|
|
49
48
|
},
|
|
50
49
|
default_cancel_label: {
|
|
51
|
-
//volto-form-block
|
|
52
50
|
id: 'form_default_cancel_label',
|
|
53
51
|
defaultMessage: 'Annulla',
|
|
54
52
|
},
|
|
53
|
+
is_empty: { id: 'condition_is_empty', defaultMessage: 'È vuoto' },
|
|
54
|
+
is_not_empty: {
|
|
55
|
+
id: 'condition_is_not_empty',
|
|
56
|
+
defaultMessage: 'Non è vuoto',
|
|
57
|
+
},
|
|
58
|
+
is_equal_to: { id: 'condition_is_equal_to', defaultMessage: 'È uguale a' },
|
|
59
|
+
is_not_equal_to: {
|
|
60
|
+
id: 'condition_is_not_equal_to',
|
|
61
|
+
defaultMessage: 'Non è uguale a',
|
|
62
|
+
},
|
|
63
|
+
contains: { id: 'condition_contains', defaultMessage: 'Contiene' },
|
|
64
|
+
not_contains: {
|
|
65
|
+
id: 'condition_not_contains',
|
|
66
|
+
defaultMessage: 'Non contiene',
|
|
67
|
+
},
|
|
68
|
+
greater_than: {
|
|
69
|
+
id: 'condition_greater_than',
|
|
70
|
+
defaultMessage: 'È maggiore di',
|
|
71
|
+
},
|
|
72
|
+
less_than: { id: 'condition_less_than', defaultMessage: 'È minore di' },
|
|
73
|
+
greater_or_equal: {
|
|
74
|
+
id: 'condition_greater_or_equal',
|
|
75
|
+
defaultMessage: 'È maggiore o uguale',
|
|
76
|
+
},
|
|
77
|
+
less_or_equal: {
|
|
78
|
+
id: 'condition_less_or_equal',
|
|
79
|
+
defaultMessage: 'È minore o uguale',
|
|
80
|
+
},
|
|
81
|
+
//---- end Volto-form-block ----//
|
|
55
82
|
toggleMenu: {
|
|
56
83
|
id: 'toggle-menu',
|
|
57
84
|
defaultMessage: '{action} il menu',
|
|
@@ -1,24 +1,7 @@
|
|
|
1
1
|
.bandi-in-evidence {
|
|
2
|
-
.bandi-in-evidence-cards-wrapper {
|
|
3
|
-
display: -ms-grid;
|
|
4
|
-
display: grid;
|
|
5
|
-
gap: 1.3rem;
|
|
6
|
-
-ms-grid-columns: 1fr 1.3rem 1fr 1.3rem 1fr;
|
|
7
|
-
grid-template-columns: 1fr 1fr 1fr;
|
|
8
|
-
|
|
9
|
-
.read-more a.read-more {
|
|
10
|
-
flex-direction: row;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
2
|
.card-wrapper {
|
|
15
3
|
min-height: 340px;
|
|
16
4
|
|
|
17
|
-
&:first-child {
|
|
18
|
-
grid-column: 1;
|
|
19
|
-
grid-row: 1;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
5
|
.listing-item {
|
|
23
6
|
align-items: normal;
|
|
24
7
|
|
|
@@ -28,6 +11,7 @@
|
|
|
28
11
|
justify-content: space-between;
|
|
29
12
|
padding: 2.5rem;
|
|
30
13
|
padding-bottom: 0rem;
|
|
14
|
+
word-break: break-word;
|
|
31
15
|
}
|
|
32
16
|
}
|
|
33
17
|
}
|
|
@@ -46,33 +30,6 @@
|
|
|
46
30
|
}
|
|
47
31
|
}
|
|
48
32
|
|
|
49
|
-
// smartphone
|
|
50
|
-
@media (max-width: #{map-get($grid-breakpoints, sm)}) {
|
|
51
|
-
.bandi-in-evidence-cards-wrapper {
|
|
52
|
-
.card-wrapper {
|
|
53
|
-
width: 100%;
|
|
54
|
-
margin: 0px;
|
|
55
|
-
}
|
|
56
|
-
display: block;
|
|
57
|
-
height: 100%;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// tablet
|
|
62
|
-
.bandi-in-evidence-cards-wrapper {
|
|
63
|
-
@media (min-width: #{map-get($grid-breakpoints, md)}) and (max-width: #{map-get($grid-breakpoints, xl)}) {
|
|
64
|
-
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@media (min-width: #{map-get($grid-breakpoints, md)}) and (max-width: #{map-get($grid-breakpoints, lg)}) {
|
|
68
|
-
gap: 1rem;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@media (min-width: #{map-get($grid-breakpoints, sm)}) and (max-width: #{map-get($grid-breakpoints, md)}) {
|
|
72
|
-
display: block !important;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
33
|
.bando-description {
|
|
77
34
|
flex-grow: 1;
|
|
78
35
|
margin-top: 0.5rem;
|
|
@@ -123,18 +80,11 @@
|
|
|
123
80
|
bottom: 0;
|
|
124
81
|
padding-top: 0.75rem;
|
|
125
82
|
|
|
126
|
-
@media (max-width: #{map-get($grid-breakpoints,
|
|
127
|
-
display:
|
|
128
|
-
align
|
|
129
|
-
font-size: 0.77778rem;
|
|
130
|
-
font-weight: bold;
|
|
131
|
-
letter-spacing: 0.9px;
|
|
132
|
-
text-transform: uppercase;
|
|
83
|
+
@media (max-width: #{map-get($grid-breakpoints, md)}) {
|
|
84
|
+
display: block;
|
|
85
|
+
text-align: right;
|
|
133
86
|
}
|
|
134
87
|
}
|
|
135
|
-
@media (max-width: #{map-get($grid-breakpoints, sm)}) {
|
|
136
|
-
margin-top: 0;
|
|
137
|
-
}
|
|
138
88
|
}
|
|
139
89
|
|
|
140
90
|
.bando-state {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
@media (max-width: #{map-get($grid-breakpoints, md)}) {
|
|
7
7
|
.form-group {
|
|
8
8
|
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
9
|
max-width: 100%;
|
|
10
|
+
flex-direction: column;
|
|
11
11
|
|
|
12
12
|
label {
|
|
13
13
|
position: relative;
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
.volto-subblocks-wrapper,
|
|
72
72
|
.form-field {
|
|
73
73
|
max-width: 100%;
|
|
74
|
+
|
|
74
75
|
.single-block {
|
|
75
76
|
.dragsubblock {
|
|
76
77
|
top: 0.3rem;
|
|
@@ -278,6 +279,22 @@
|
|
|
278
279
|
@extend .active;
|
|
279
280
|
}
|
|
280
281
|
|
|
282
|
+
.cms-ui .ui.modal.modal_visibility_conditions {
|
|
283
|
+
.column.choice-actions {
|
|
284
|
+
padding-right: 0;
|
|
285
|
+
padding-left: 0;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.cms-ui .ui.page.modals.dimmer {
|
|
290
|
+
.ui.modal.modal_visibility_conditions {
|
|
291
|
+
.content {
|
|
292
|
+
min-height: 50vh;
|
|
293
|
+
overflow-y: auto;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
281
298
|
.grecaptcha-badge {
|
|
282
299
|
bottom: 115px !important;
|
|
283
300
|
}
|
|
Binary file
|