design-comuni-plone-theme 8.2.0 → 8.3.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.
@@ -31,7 +31,7 @@ jobs:
31
31
  build-args: |
32
32
  ADDON_NAME=design-comuni-plone-theme
33
33
  ADDON_PATH=design-comuni-plone-theme
34
- VOLTO_VERSION=17.0.0-alpha.17
34
+ VOLTO_VERSION=17.0.0-alpha.19
35
35
 
36
36
  - name: Deploy to rancher
37
37
  uses: redturtle/rancher-deploy-action@v0.2.0
@@ -35,4 +35,4 @@ jobs:
35
35
  build-args: |
36
36
  ADDON_NAME=design-comuni-plone-theme
37
37
  ADDON_PATH=design-comuni-plone-theme
38
- VOLTO_VERSION=17.0.0-alpha.17
38
+ VOLTO_VERSION=17.0.0-alpha.19
@@ -34,4 +34,4 @@ jobs:
34
34
  build-args: |
35
35
  ADDON_NAME=design-comuni-plone-theme
36
36
  ADDON_PATH=design-comuni-plone-theme
37
- VOLTO_VERSION=17.0.0-alpha.17
37
+ VOLTO_VERSION=17.0.0-alpha.19
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
 
2
2
 
3
+ ## [8.3.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.2.1...v8.3.0) (2023-08-04)
4
+
5
+
6
+ ### Features
7
+
8
+ * coherent description in card persona everywhere ([#273](https://github.com/RedTurtle/design-comuni-plone-theme/issues/273)) ([137fdd5](https://github.com/RedTurtle/design-comuni-plone-theme/commit/137fdd5a17d36ccb67c736467761d645f446d116))
9
+ * rimosso link a form contatto, aggiunto link a motore di ricerca del sito ([#269](https://github.com/RedTurtle/design-comuni-plone-theme/issues/269)) ([6793855](https://github.com/RedTurtle/design-comuni-plone-theme/commit/67938552ba8829c383757d8415c24861ce729b88))
10
+ * upgrade to volto alpha.19 ([02e3096](https://github.com/RedTurtle/design-comuni-plone-theme/commit/02e3096c61331cb5137003c2782fa07aaed23c32))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * equal height for card persona in uo people ([#276](https://github.com/RedTurtle/design-comuni-plone-theme/issues/276)) ([3a5e8d1](https://github.com/RedTurtle/design-comuni-plone-theme/commit/3a5e8d1672b5700e3d1097f43588ecff86efaff1))
16
+ * height of accessibility icon for external links ([#268](https://github.com/RedTurtle/design-comuni-plone-theme/issues/268)) ([8714eb2](https://github.com/RedTurtle/design-comuni-plone-theme/commit/8714eb29ad7a05b6f40058dfdf315e046dff00ef))
17
+ * optional chaining for pdc data in OfficeCard ([#274](https://github.com/RedTurtle/design-comuni-plone-theme/issues/274)) ([88ec896](https://github.com/RedTurtle/design-comuni-plone-theme/commit/88ec896ae9cbbc357ccb8d7a69977562aef3ab1a))
18
+ * z-index moved to a generic block ([#265](https://github.com/RedTurtle/design-comuni-plone-theme/issues/265)) ([c0d729c](https://github.com/RedTurtle/design-comuni-plone-theme/commit/c0d729ceaf50021f5752bfbb961124c3e03e7133))
19
+
20
+
21
+ ### Documentation
22
+
23
+ * updated publiccode ([6329a9b](https://github.com/RedTurtle/design-comuni-plone-theme/commit/6329a9b3f47cc43d4958155db52529ce25f16807))
24
+
25
+ ## [8.2.1](https://github.com/redturtle/design-comuni-plone-theme/compare/v8.2.0...v8.2.1) (2023-07-27)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * fix LinkEntity error on create link in WysWidget and in edit ([ce16c45](https://github.com/redturtle/design-comuni-plone-theme/commit/ce16c45f0894ce1853f0185c859f85d82ec2d847))
31
+
32
+
33
+ ### Documentation
34
+
35
+ * updated publiccode ([d6affcf](https://github.com/redturtle/design-comuni-plone-theme/commit/d6affcf7f1241c4d338e40907747f93c57716343))
36
+ * updated publiccode ([12ce260](https://github.com/redturtle/design-comuni-plone-theme/commit/12ce2605354b0a380ce83d0285e33e1b75bdb5a8))
37
+
3
38
  ## [8.2.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.1.0...v8.2.0) (2023-07-26)
4
39
 
5
40
 
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.0.0-alpha.17
30
+ VOLTO_VERSION=17.0.0-alpha.19
31
31
 
32
32
  ADDON_NAME='design-comuni-plone-theme'
33
33
  ADDON_PATH='design-comuni-plone-theme'
package/README.md CHANGED
@@ -74,6 +74,7 @@ Si veda ad esempio:
74
74
  - [Comune di Canossa](https://www.comune.canossa.re.it/)
75
75
  - [Comune di Cantagallo](https://www.comune.cantagallo.po.it/)
76
76
  - [Comune di Cavriago](https://www.comune.cavriago.re.it/)
77
+ - [Comune di Gattatico](https://www.comune.gattatico.re.it/)
77
78
  - [Comune di Imola](https://www.comune.imola.bo.it)
78
79
  - [Comune di Medolla](https://www.comune.medolla.mo.it/)
79
80
  - [Comune di Mirandola](https://www.comune.mirandola.mo.it/)
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": "8.2.0",
5
+ "version": "8.3.0",
6
6
  "main": "src/index.js",
7
7
  "keywords": [
8
8
  "volto-addon",
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: '2023-07-20'
230
+ releaseDate: '2023-08-04'
231
231
  softwareType: standalone/web
232
- softwareVersion: 8.0.4
232
+ softwareVersion: 8.3.0
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -247,6 +247,7 @@ usedBy:
247
247
  - Comune di Camposanto
248
248
  - Comune di Cantagallo
249
249
  - Comune di Cavriago
250
+ - Comune di Gattatico
250
251
  - Comune di Imola
251
252
  - Comune di Medolla
252
253
  - Comune di Mirandola
@@ -107,7 +107,7 @@ const CardWithImageTemplate = (props) => {
107
107
  className="listing-item card-bg shadow-sm"
108
108
  showImage={showImage}
109
109
  natural_image_size={natural_image_size}
110
- listingText={listingText}
110
+ show_description={show_description}
111
111
  icon={icon}
112
112
  type={category}
113
113
  isEditMode={isEditMode}
@@ -92,7 +92,7 @@ const InEvidenceTemplate = (props) => {
92
92
  item={item}
93
93
  className="listing-item card-bg"
94
94
  showImage={image ? true : false}
95
- listingText={listingText}
95
+ show_description={show_description}
96
96
  icon={icon}
97
97
  isEditMode={isEditMode}
98
98
  key={index}
@@ -15,7 +15,7 @@ export const CardPersona = ({
15
15
  titleClassName = '',
16
16
  titleTagName = 'h3',
17
17
  showImage,
18
- listingText,
18
+ show_description = true,
19
19
  icon,
20
20
  type,
21
21
  isEditMode,
@@ -53,7 +53,9 @@ export const CardPersona = ({
53
53
  {item.title || item.id}
54
54
  </UniversalLink>
55
55
  </CardTitle>
56
- {listingText && <CardText>{listingText}</CardText>}
56
+ {show_description && (
57
+ <CardText>{item.incarichi || item.description}</CardText>
58
+ )}
57
59
  </CardBody>
58
60
  {showImage && (
59
61
  <div className="card-image card-image-rounded">{image}</div>
@@ -21,6 +21,7 @@ it('renders the title correctly', () => {
21
21
  item={{
22
22
  '@id': 'http://localhost:3000/persona',
23
23
  title: 'Mario Rossi',
24
+ description: '',
24
25
  id: 'persona',
25
26
  }}
26
27
  />
@@ -78,8 +78,8 @@ const OfficeCard = ({
78
78
  {sede.zip_code} {sede.city}
79
79
  </p>
80
80
  )}
81
- {office_fo.contact_info?.map((el) =>
82
- el.value_punto_contatto?.map((pdc, i) => {
81
+ {office_fo?.contact_info?.map((el) =>
82
+ el?.value_punto_contatto?.map((pdc, i) => {
83
83
  if (pdc.pdc_type === 'telefono') {
84
84
  return (
85
85
  <div key={i}>
@@ -3,7 +3,6 @@ import { defineMessages, useIntl } from 'react-intl';
3
3
  import PropTypes from 'prop-types';
4
4
 
5
5
  import { Row, Col } from 'design-react-kit';
6
- import { UniversalLink } from '@plone/volto/components';
7
6
  import { CardPersona } from 'design-comuni-plone-theme/components/ItaliaTheme';
8
7
  import { RichTextSection } from 'design-comuni-plone-theme/components/ItaliaTheme/View';
9
8
 
@@ -40,7 +39,6 @@ const DocumentoAutori = ({ autori, title }) => {
40
39
  className="shadow-sm"
41
40
  titleTagName="h5"
42
41
  showImage={true}
43
- listingText={autore?.incarichi ?? ''}
44
42
  />
45
43
  </Col>
46
44
  ))}
@@ -28,7 +28,7 @@ const UOPeople = ({ content }) => {
28
28
  <p className="mt-4">
29
29
  {intl.formatMessage(messages.persone_p_description)}:
30
30
  </p>
31
- <Row className="card-wrapper card-teaser-wrapper ruolo-persone-struttura">
31
+ <Row className="card-wrapper card-teaser-wrapper card-teaser-wrapper-equal ruolo-persone-struttura">
32
32
  {content?.persone_struttura?.map((p, _i) => {
33
33
  return (
34
34
  <Col xs="12" lg="12" xl="6" md="12" key={p['@id']}>
@@ -37,7 +37,6 @@ const UOPeople = ({ content }) => {
37
37
  className={'shadow-sm'}
38
38
  showImage={true}
39
39
  titleTagName={'h5'}
40
- listingText={p?.incarichi}
41
40
  />
42
41
  </Col>
43
42
  );
@@ -119,7 +119,6 @@ const UOStructure = ({ content }) => {
119
119
  className={'shadow-sm'}
120
120
  showImage={true}
121
121
  titleTagName={'h5'}
122
- listingText={item.incarichi}
123
122
  />
124
123
  </Col>
125
124
  ))}
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { connect } from 'react-redux';
3
3
  import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
4
+ import { IntlProvider } from 'react-intl';
4
5
 
5
6
  const LinkEntity = connect((state) => ({
6
7
  token: state.userSession.token,
@@ -10,14 +11,16 @@ const LinkEntity = connect((state) => ({
10
11
  const to = token ? url : targetUrl || url;
11
12
 
12
13
  return (
13
- <UniversalLink
14
- href={to}
15
- openLinkInNewTab={target === '_blank' || undefined}
16
- download={download}
17
- data-element={dataElement || props['data-element'] || null}
18
- >
19
- {children}
20
- </UniversalLink>
14
+ <IntlProvider>
15
+ <UniversalLink
16
+ href={to}
17
+ openLinkInNewTab={target === '_blank' || undefined}
18
+ download={download}
19
+ data-element={dataElement || props['data-element'] || null}
20
+ >
21
+ {children}
22
+ </UniversalLink>
23
+ </IntlProvider>
21
24
  );
22
25
  });
23
26
 
@@ -0,0 +1,77 @@
1
+ /*
2
+ CUSTOMIZATIONS:
3
+ - Removed the "Site Administration" link, added a link to the search page
4
+ */
5
+
6
+ import { useEffect } from 'react';
7
+ import { BodyClass, toBackendLang } from '@plone/volto/helpers';
8
+ import { FormattedMessage } from 'react-intl';
9
+ import { Link } from 'react-router-dom';
10
+ import { Container } from 'semantic-ui-react';
11
+ import { withServerErrorCode } from '@plone/volto/helpers/Utils/Utils';
12
+ import { useDispatch, useSelector } from 'react-redux';
13
+ import { getNavigation } from '@plone/volto/actions';
14
+ import config from '@plone/volto/registry';
15
+
16
+ /**
17
+ * Not found function.
18
+ * @function NotFound
19
+ * @returns {string} Markup of the not found page.
20
+ */
21
+ const NotFound = () => {
22
+ const dispatch = useDispatch();
23
+ const lang = useSelector((state) => state.intl.locale);
24
+
25
+ useEffect(() => {
26
+ dispatch(
27
+ getNavigation(
28
+ config.settings.isMultilingual ? `/${toBackendLang(lang)}` : '/',
29
+ config.settings.navDepth,
30
+ ),
31
+ );
32
+ }, [dispatch, lang]);
33
+
34
+ return (
35
+ <Container className="view-wrapper">
36
+ <BodyClass className="page-not-found" />
37
+ <h1>
38
+ <FormattedMessage
39
+ id="This page does not seem to exist…"
40
+ defaultMessage="This page does not seem to exist…"
41
+ />
42
+ </h1>
43
+ <p className="description">
44
+ <FormattedMessage
45
+ id="We apologize for the inconvenience, but the page you were trying to access is not at this address. You can use the links below to help you find what you are looking for."
46
+ defaultMessage="We apologize for the inconvenience, but the page you were trying to access is not at this address. You can use the links below to help you find what you are looking for."
47
+ />
48
+ </p>
49
+ <p>
50
+ <Link to="/search">
51
+ <FormattedMessage id="Search Site" defaultMessage="Search Site" />
52
+ </Link>
53
+ </p>
54
+ {/* <p>
55
+ <FormattedMessage
56
+ id="If you are certain you have the correct web address but are encountering an error, please contact the {site_admin}."
57
+ defaultMessage="If you are certain you have the correct web address but are encountering an error, please contact the {site_admin}."
58
+ values={{
59
+ site_admin: (
60
+ <Link to="/contact-form">
61
+ <FormattedMessage
62
+ id="Site Administration"
63
+ defaultMessage="Site Administration"
64
+ />
65
+ </Link>
66
+ ),
67
+ }}
68
+ />
69
+ </p> */}
70
+ <p>
71
+ <FormattedMessage id="Thank you." defaultMessage="Thank you." />
72
+ </p>
73
+ </Container>
74
+ );
75
+ };
76
+
77
+ export default withServerErrorCode(404)(NotFound);
@@ -61,3 +61,7 @@
61
61
  fill: $external-link-fill-subfooter !important;
62
62
  }
63
63
  }
64
+
65
+ .icon.external-link.icon-xs {
66
+ height: 1rem;
67
+ }
@@ -406,7 +406,12 @@ body.cms-ui {
406
406
  .public-DraftStyleDefault-block {
407
407
  margin-bottom: unset;
408
408
  }
409
- // z-index necessario su Volto 17 finché non passiamo ad usare slate
409
+ }
410
+ }
411
+
412
+ // z-index necessario su Volto 17 finché non passiamo ad usare slate
413
+ .block {
414
+ .DraftEditor-root {
410
415
  .DraftEditor-editorContainer,
411
416
  .public-DraftEditorPlaceholder-root {
412
417
  z-index: 0;