design-comuni-plone-theme 11.35.0 → 11.35.2

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.
Binary file
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
 
2
2
 
3
+ ## [11.35.2](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.35.1...v11.35.2) (2025-10-21)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * contacts block styles ([#1022](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1022)) ([2b4143b](https://github.com/RedTurtle/design-comuni-plone-theme/commit/2b4143b96e313aa35337a7fa1dbedea954cc2657))
9
+ * removed the unnecessary arguments part from content in evidence ([#1027](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1027)) ([cf05f0d](https://github.com/RedTurtle/design-comuni-plone-theme/commit/cf05f0da7360bb1d8136e7c2c01164329bd8c4d0))
10
+ * tipoIncarico conditions check for data inizio incarico widget ([#1021](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1021)) ([630613b](https://github.com/RedTurtle/design-comuni-plone-theme/commit/630613bfb56f7c3e2a50ceede57c3466c8870509))
11
+
12
+
13
+ ### Documentation
14
+
15
+ * updated publiccode and release log ([b3c11c9](https://github.com/RedTurtle/design-comuni-plone-theme/commit/b3c11c9b65aa32d9b169490a47b634daa9a79642))
16
+
17
+ ## [11.35.1](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.35.0...v11.35.1) (2025-10-09)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * helpbox style ([#1013](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1013)) ([5dbfdf8](https://github.com/RedTurtle/design-comuni-plone-theme/commit/5dbfdf83bc44179341627083abbb0b5b74dc84ea))
23
+ * non content routes query for contacts block ([#1020](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1020)) ([91acf90](https://github.com/RedTurtle/design-comuni-plone-theme/commit/91acf9084fb5cab04bb1cc32f8c45d4bfccfa293))
24
+
25
+
26
+ ### Documentation
27
+
28
+ * updated publiccode and release log ([66fe1de](https://github.com/RedTurtle/design-comuni-plone-theme/commit/66fe1dec7a47b4f01d01e6365b04e0d693a88c64))
29
+
3
30
  ## [11.35.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.34.2...v11.35.0) (2025-10-07)
4
31
 
5
32
 
package/RELEASE.md CHANGED
@@ -41,6 +41,20 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 11.35.2 (21/10/2025)
45
+
46
+ ### Fix
47
+
48
+ - Rimossi gli argomenti dalla fascia dei contenuti correlati in evidenza.
49
+ - Il widget contatti mantiene gli stili anche nelle pagine di back-office.
50
+
51
+ ## Versione 11.35.1 (09/10/2025)
52
+
53
+ ### Fix
54
+
55
+ - Il widget Contatti è ora visibile in tutte le rotte, comprese quelle del flusso prenotazioni e la ricerca.
56
+ - Sistemato paragrafo con stile callout nel campo Ulteriori Informazioni dei vari CT
57
+
44
58
  ## Versione 11.34.1 (03/10/2025)
45
59
 
46
60
  ### Fix
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.35.0",
5
+ "version": "11.35.2",
6
6
  "main": "src/index.js",
7
7
  "repository": {
8
8
  "type": "git",
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: '2025-10-07'
230
+ releaseDate: '2025-10-21'
231
231
  softwareType: standalone/web
232
- softwareVersion: 11.35.0
232
+ softwareVersion: 11.35.2
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -4,6 +4,7 @@ import { useIntl, defineMessages } from 'react-intl';
4
4
  import { useDispatch, useSelector } from 'react-redux';
5
5
  import { Container, Row, Col, Spinner, Card, CardBody } from 'design-react-kit';
6
6
  import { UniversalLink } from '@plone/volto/components';
7
+ import { getBaseUrl } from '@plone/volto/helpers';
7
8
  import { getContacts } from 'design-comuni-plone-theme/actions';
8
9
  import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme';
9
10
 
@@ -19,9 +20,11 @@ const ContactsBlock = () => {
19
20
  const { pathname } = useLocation();
20
21
  const dispatch = useDispatch();
21
22
 
23
+ const path = getBaseUrl(pathname);
24
+
22
25
  useEffect(() => {
23
- dispatch(getContacts(pathname));
24
- }, [dispatch, pathname]);
26
+ dispatch(getContacts(path));
27
+ }, [dispatch, path]);
25
28
 
26
29
  const contacts = useSelector((state) => state.contacts) ?? {};
27
30
  const contactsItems = contacts?.result?.items ?? [];
@@ -29,7 +32,7 @@ const ContactsBlock = () => {
29
32
  const isContactsLoaded = contacts.loaded;
30
33
 
31
34
  return contactsItems.length > 0 ? (
32
- <section className="contacts-block bg-light py-5">
35
+ <section className="public-ui contacts-block bg-light">
33
36
  <Container>
34
37
  <Row className="d-flex justify-content-center">
35
38
  <Col xs={12} lg={6} xl={6} xxl={6}>
@@ -5,6 +5,13 @@ import { Callout, CalloutTitle } from 'design-react-kit';
5
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
+ const messages = defineMessages({
9
+ ulteriori_info: {
10
+ id: 'ulteriori_info',
11
+ defaultMessage: 'Icona ulteriori informazioni',
12
+ },
13
+ });
14
+
8
15
  const HelpBox = ({ text }) => {
9
16
  const intl = useIntl();
10
17
  return text ? (
@@ -19,8 +26,8 @@ const HelpBox = ({ text }) => {
19
26
  title={intl.formatMessage(messages.ulteriori_info)}
20
27
  />
21
28
  <span className="text"></span>
29
+ <span className="text-line"></span>
22
30
  </CalloutTitle>
23
-
24
31
  <div>
25
32
  <RichText data={text} />
26
33
  </div>
@@ -31,10 +38,4 @@ HelpBox.propTypes = {
31
38
  text: PropTypes.object.isRequired,
32
39
  };
33
40
 
34
- const messages = defineMessages({
35
- ulteriori_info: {
36
- id: 'ulteriori_info',
37
- defaultMessage: 'Icona ulteriori informazioni',
38
- },
39
- });
40
41
  export default HelpBox;
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import ItemInEvidence from 'design-comuni-plone-theme/components/ItaliaTheme/View/Commons/RelatedItemInEvidence/ItemInEvidence';
4
- import Arguments from 'design-comuni-plone-theme/components/ItaliaTheme/View/Commons/RelatedItemInEvidence/Arguments';
5
4
  import { Container, Row, Col } from 'design-react-kit';
6
5
  import { defineMessages, useIntl } from 'react-intl';
7
6
 
@@ -34,9 +33,6 @@ const RelatedItemInEvidence = ({ content }) => {
34
33
  <Col md={6} className="px-3">
35
34
  <ItemInEvidence content={content} />
36
35
  </Col>
37
- <Col md={6} className="px-3">
38
- <Arguments content={content} />
39
- </Col>
40
36
  </Row>
41
37
  </Container>
42
38
  </div>
@@ -7,8 +7,18 @@ const ConditionallyRequiredDateWidget = (props) => {
7
7
  // Check tipo di incarico in formData
8
8
  const tipoIncarico = formData?.tipologia_incarico;
9
9
 
10
- // Make required only if tipo di incarico !== "amministrativo"
11
- const isRequired = tipoIncarico !== 'amministrativo';
10
+ // when selecting tipo di incarico, tipoIncarico is a string
11
+ // if entering in already existing incarico, the tipoIncarico value will be an object
12
+ //{
13
+ // "title": "Amministrativo",
14
+ // "token": "amministrativo"
15
+ // }
16
+ // so its necessary to check both conditions
17
+ // if tipoIncarico.token and tipoIncarico !== 'amministrativo'
18
+ // the field must not be required
19
+ const isRequired =
20
+ tipoIncarico !== 'amministrativo' &&
21
+ tipoIncarico.token !== 'amministrativo';
12
22
 
13
23
  return (
14
24
  <DatetimeWidget
@@ -1,5 +1,8 @@
1
1
  .contacts-block {
2
2
  box-shadow: inset 0 4px 6px -4px rgba(0, 0, 0, 0.3);
3
+ padding-top: 48px;
4
+ padding-bottom: 48px;
5
+
3
6
  .contacts-box {
4
7
  background-color: #fff;
5
8
 
@@ -469,6 +469,15 @@ body.cms-ui {
469
469
  }
470
470
  }
471
471
 
472
+ .bg-light {
473
+ --bs-light-rgb: 243, 252, 249;
474
+ --bs-bg-opacity: 1;
475
+ background-color: rgba(
476
+ var(--bs-light-rgb),
477
+ var(--bs-bg-opacity)
478
+ ) !important;
479
+ }
480
+
472
481
  .path-filter-widget {
473
482
  padding: 1em 0 1em 0.5em;
474
483
  border-left: 1px solid #edf1f2;