design-comuni-plone-theme 11.34.2 → 11.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
 
2
2
 
3
+ ## [11.35.1](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.35.0...v11.35.1) (2025-10-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * helpbox style ([#1013](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1013)) ([5dbfdf8](https://github.com/RedTurtle/design-comuni-plone-theme/commit/5dbfdf83bc44179341627083abbb0b5b74dc84ea))
9
+ * 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))
10
+
11
+
12
+ ### Documentation
13
+
14
+ * updated publiccode and release log ([66fe1de](https://github.com/RedTurtle/design-comuni-plone-theme/commit/66fe1dec7a47b4f01d01e6365b04e0d693a88c64))
15
+
16
+ ## [11.35.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.34.2...v11.35.0) (2025-10-07)
17
+
18
+
19
+ ### Features
20
+
21
+ * listing table variant is now optional ([#1018](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1018)) ([4cff9d8](https://github.com/RedTurtle/design-comuni-plone-theme/commit/4cff9d861d0b24cd8088eb9fde72160381fb0c63))
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * contact blocks styles ([#1016](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1016)) ([b4f1f2a](https://github.com/RedTurtle/design-comuni-plone-theme/commit/b4f1f2a6914fad047111f94372f929c699535e98))
27
+
28
+
29
+ ### Documentation
30
+
31
+ * updated publiccode ([d6e7bf8](https://github.com/RedTurtle/design-comuni-plone-theme/commit/d6e7bf8d7a8ef49f79840807e3b63fd6861ce100))
32
+
3
33
  ## [11.34.2](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.34.1...v11.34.2) (2025-10-03)
4
34
 
5
35
 
package/RELEASE.md CHANGED
@@ -41,6 +41,13 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 11.35.1 (09/10/2025)
45
+
46
+ ### Fix
47
+
48
+ - Il widget Contatti è ora visibile in tutte le rotte, comprese quelle del flusso prenotazioni e la ricerca.
49
+ - Sistemato paragrafo con stile callout nel campo Ulteriori Informazioni dei vari CT
50
+
44
51
  ## Versione 11.34.1 (03/10/2025)
45
52
 
46
53
  ### 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.34.2",
5
+ "version": "11.35.1",
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-03'
230
+ releaseDate: '2025-10-09'
231
231
  softwareType: standalone/web
232
- softwareVersion: 11.34.2
232
+ softwareVersion: 11.35.1
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 ?? [];
@@ -42,7 +45,7 @@ const ContactsBlock = () => {
42
45
  <Card className="contacts-box">
43
46
  <CardBody>
44
47
  <h2>{intl.formatMessage(messages.contact_block_title)}</h2>
45
- <div>
48
+ <div className="contacts-list-container">
46
49
  <ul className="mb-0 mt-3 contacts-list">
47
50
  {contactsItems.map((contact, idx) => (
48
51
  <li key={idx}>
@@ -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;
@@ -296,21 +296,6 @@ const italiaListingVariations = [
296
296
  },
297
297
  cloneData: cloneBlock,
298
298
  },
299
- {
300
- id: 'table',
301
- isDefault: false,
302
- title: 'Tabella',
303
- template: TableTemplate,
304
- skeleton: TableTemplateSkeleton,
305
- schemaEnhancer: ({ schema, formData, intl }) => {
306
- let pos = addDefaultOptions(schema, formData, intl);
307
- addTableTemplateOptions(schema, formData, intl, pos);
308
- addLinkMoreOptions(schema, formData, intl);
309
- return schema;
310
- },
311
- fullobjects: true,
312
- cloneData: cloneBlock,
313
- },
314
299
  // {
315
300
  // id: 'amministrazioneTrasparenteTablesTemplate',
316
301
  // isDefault: false,
@@ -351,3 +336,21 @@ export const removeListingVariation = (config, id) => {
351
336
  config.blocks.blocksConfig.listing.variations.splice(indexOfVariation, 1);
352
337
  }
353
338
  };
339
+
340
+ export const addTableListingVariation = (config) => {
341
+ config.blocks.blocksConfig.listing.variations.push({
342
+ id: 'table',
343
+ isDefault: false,
344
+ title: 'Tabella',
345
+ template: TableTemplate,
346
+ skeleton: TableTemplateSkeleton,
347
+ schemaEnhancer: ({ schema, formData, intl }) => {
348
+ let pos = addDefaultOptions(schema, formData, intl);
349
+ addTableTemplateOptions(schema, formData, intl, pos);
350
+ addLinkMoreOptions(schema, formData, intl);
351
+ return schema;
352
+ },
353
+ fullobjects: true,
354
+ cloneData: cloneBlock,
355
+ });
356
+ };
@@ -13,25 +13,32 @@
13
13
  line-height: 1.2;
14
14
  }
15
15
 
16
- .contacts-list {
17
- padding: 0;
18
- li {
19
- list-style-type: none;
16
+ .contacts-list-container {
17
+ display: flex;
18
+ .contacts-list {
19
+ padding: 0;
20
20
 
21
- a {
22
- column-gap: 2%;
23
- .icon-container {
24
- width: 5%;
25
- display: flex;
21
+ li {
22
+ list-style-type: none;
23
+ line-height: 2.2;
26
24
 
27
- .icon {
28
- color: currentColor;
29
- fill: currentColor;
25
+ a {
26
+ .icon-container {
27
+ min-width: 1.5rem;
28
+ display: flex;
29
+ margin-right: 0.5rem;
30
+
31
+ .icon {
32
+ max-width: 1.5rem;
33
+ height: auto;
34
+ color: currentColor;
35
+ fill: currentColor;
36
+ }
30
37
  }
31
- }
32
38
 
33
- .text-container {
34
- width: 93%;
39
+ .text-container {
40
+ width: 93%;
41
+ }
35
42
  }
36
43
  }
37
44
  }