design-comuni-plone-theme 8.8.1 → 8.9.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/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
 
2
2
 
3
+ ## [8.9.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.8.2...v8.9.0) (2023-11-03)
4
+
5
+
6
+ ### Features
7
+
8
+ * added data-element for service-link pagination ([#387](https://github.com/RedTurtle/design-comuni-plone-theme/issues/387)) ([3ef75a5](https://github.com/RedTurtle/design-comuni-plone-theme/commit/3ef75a5f8dde74b948bbfe3e61fd58575baa7c13))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * locales ([e6b8904](https://github.com/RedTurtle/design-comuni-plone-theme/commit/e6b890401222739a756a77cc06958ea3b9173759))
14
+
15
+
16
+ ### Documentation
17
+
18
+ * updated publiccode and release log ([2fe4539](https://github.com/RedTurtle/design-comuni-plone-theme/commit/2fe4539ee4cf6dcc88d0dfeb9fe9c49bb972244f))
19
+
20
+ ## [8.8.2](https://github.com/redturtle/design-comuni-plone-theme/compare/v8.8.1...v8.8.2) (2023-11-03)
21
+
22
+
23
+ ### Maintenance
24
+
25
+ * changed descrizione bando i18n id ([5bef0e8](https://github.com/redturtle/design-comuni-plone-theme/commit/5bef0e8e1ebfbf6e7254ee177817960cc829b3aa))
26
+ * preparing release 8.8.2 ([d842e66](https://github.com/redturtle/design-comuni-plone-theme/commit/d842e66c891fd19a4eef81bea2aaaf2d33c6ead7))
27
+
3
28
  ## [8.8.1](https://github.com/redturtle/design-comuni-plone-theme/compare/v8.8.0...v8.8.1) (2023-11-03)
4
29
 
5
30
 
package/RELEASE.md CHANGED
@@ -41,6 +41,12 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 8.9.0 (03/11/2023)
45
+
46
+ ### Novità
47
+
48
+ - Aggiunto data-element pager-link al paginatore per i blocchi Elenco per i quali viene impostata l'opzione service-link.
49
+
44
50
  ## Versione 8.8.1 (03/11/2023)
45
51
 
46
52
  ### Fix
@@ -1595,7 +1595,6 @@ msgstr ""
1595
1595
  msgid "desc"
1596
1596
  msgstr ""
1597
1597
 
1598
- #: components/ItaliaTheme/View/BandoView/BandoText
1599
1598
  #: components/ItaliaTheme/View/Commons/TrasparenzaFields
1600
1599
  #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
1601
1600
  #: components/ItaliaTheme/View/VenueView/VenueDescription
@@ -1604,6 +1603,11 @@ msgstr ""
1604
1603
  msgid "descrizione"
1605
1604
  msgstr ""
1606
1605
 
1606
+ #: components/ItaliaTheme/View/BandoView/BandoText
1607
+ # defaultMessage: Descrizione
1608
+ msgid "descrizione_bando"
1609
+ msgstr ""
1610
+
1607
1611
  #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
1608
1612
  # defaultMessage: Non cercare nella sezione
1609
1613
  msgid "deselectSearchSection"
@@ -1580,7 +1580,6 @@ msgstr "Delegations"
1580
1580
  msgid "desc"
1581
1581
  msgstr "Quick links"
1582
1582
 
1583
- #: components/ItaliaTheme/View/BandoView/BandoText
1584
1583
  #: components/ItaliaTheme/View/Commons/TrasparenzaFields
1585
1584
  #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
1586
1585
  #: components/ItaliaTheme/View/VenueView/VenueDescription
@@ -1589,6 +1588,11 @@ msgstr "Quick links"
1589
1588
  msgid "descrizione"
1590
1589
  msgstr "Description"
1591
1590
 
1591
+ #: components/ItaliaTheme/View/BandoView/BandoText
1592
+ # defaultMessage: Descrizione
1593
+ msgid "descrizione_bando"
1594
+ msgstr "Description"
1595
+
1592
1596
  #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
1593
1597
  # defaultMessage: Non cercare nella sezione
1594
1598
  msgid "deselectSearchSection"
@@ -1589,7 +1589,6 @@ msgstr "Delegaciones"
1589
1589
  msgid "desc"
1590
1590
  msgstr "Enlaces rápidos"
1591
1591
 
1592
- #: components/ItaliaTheme/View/BandoView/BandoText
1593
1592
  #: components/ItaliaTheme/View/Commons/TrasparenzaFields
1594
1593
  #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
1595
1594
  #: components/ItaliaTheme/View/VenueView/VenueDescription
@@ -1598,6 +1597,11 @@ msgstr "Enlaces rápidos"
1598
1597
  msgid "descrizione"
1599
1598
  msgstr "Descripción"
1600
1599
 
1600
+ #: components/ItaliaTheme/View/BandoView/BandoText
1601
+ # defaultMessage: Descrizione
1602
+ msgid "descrizione_bando"
1603
+ msgstr ""
1604
+
1601
1605
  #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
1602
1606
  # defaultMessage: Non cercare nella sezione
1603
1607
  msgid "deselectSearchSection"
@@ -1597,7 +1597,6 @@ msgstr "Déléghe"
1597
1597
  msgid "desc"
1598
1598
  msgstr "Liens rapides"
1599
1599
 
1600
- #: components/ItaliaTheme/View/BandoView/BandoText
1601
1600
  #: components/ItaliaTheme/View/Commons/TrasparenzaFields
1602
1601
  #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
1603
1602
  #: components/ItaliaTheme/View/VenueView/VenueDescription
@@ -1606,6 +1605,11 @@ msgstr "Liens rapides"
1606
1605
  msgid "descrizione"
1607
1606
  msgstr "Description"
1608
1607
 
1608
+ #: components/ItaliaTheme/View/BandoView/BandoText
1609
+ # defaultMessage: Descrizione
1610
+ msgid "descrizione_bando"
1611
+ msgstr "Description"
1612
+
1609
1613
  #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
1610
1614
  # defaultMessage: Non cercare nella sezione
1611
1615
  msgid "deselectSearchSection"
@@ -1580,7 +1580,6 @@ msgstr "Deleghe"
1580
1580
  msgid "desc"
1581
1581
  msgstr "Link rapidi"
1582
1582
 
1583
- #: components/ItaliaTheme/View/BandoView/BandoText
1584
1583
  #: components/ItaliaTheme/View/Commons/TrasparenzaFields
1585
1584
  #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
1586
1585
  #: components/ItaliaTheme/View/VenueView/VenueDescription
@@ -1589,6 +1588,11 @@ msgstr "Link rapidi"
1589
1588
  msgid "descrizione"
1590
1589
  msgstr "Descrizione"
1591
1590
 
1591
+ #: components/ItaliaTheme/View/BandoView/BandoText
1592
+ # defaultMessage: Descrizione
1593
+ msgid "descrizione_bando"
1594
+ msgstr ""
1595
+
1592
1596
  #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
1593
1597
  # defaultMessage: Non cercare nella sezione
1594
1598
  msgid "deselectSearchSection"
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: 2023-10-10T15:52:06.253Z\n"
4
+ "POT-Creation-Date: 2023-11-03T10:53:24.029Z\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"
@@ -1582,7 +1582,6 @@ msgstr ""
1582
1582
  msgid "desc"
1583
1583
  msgstr ""
1584
1584
 
1585
- #: components/ItaliaTheme/View/BandoView/BandoText
1586
1585
  #: components/ItaliaTheme/View/Commons/TrasparenzaFields
1587
1586
  #: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
1588
1587
  #: components/ItaliaTheme/View/VenueView/VenueDescription
@@ -1591,6 +1590,11 @@ msgstr ""
1591
1590
  msgid "descrizione"
1592
1591
  msgstr ""
1593
1592
 
1593
+ #: components/ItaliaTheme/View/BandoView/BandoText
1594
+ # defaultMessage: Descrizione
1595
+ msgid "descrizione_bando"
1596
+ msgstr ""
1597
+
1594
1598
  #: components/ItaliaTheme/Header/HeaderSearch/SearchModal
1595
1599
  # defaultMessage: Non cercare nella sezione
1596
1600
  msgid "deselectSearchSection"
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.8.1",
5
+ "version": "8.9.0",
6
6
  "main": "src/index.js",
7
7
  "keywords": [
8
8
  "volto-addon",
package/publiccode.yml CHANGED
@@ -229,7 +229,7 @@ platforms:
229
229
  - web
230
230
  releaseDate: '2023-11-03'
231
231
  softwareType: standalone/web
232
- softwareVersion: 8.8.1
232
+ softwareVersion: 8.9.0
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -43,6 +43,9 @@ class Pagination extends Component {
43
43
  /** Total number of pages. */
44
44
  totalPages: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
45
45
  .isRequired,
46
+
47
+ /** Lighthouse ID to set Agid data-element on pager link for CT Servizio*/
48
+ isServiceLink: PropTypes.bool,
46
49
  };
47
50
 
48
51
  static defaultProps = {
@@ -69,8 +72,13 @@ class Pagination extends Component {
69
72
  };
70
73
 
71
74
  render() {
72
- const { boundaryRange, ellipsisItem, siblingRange, totalPages } =
73
- this.props;
75
+ const {
76
+ boundaryRange,
77
+ ellipsisItem,
78
+ siblingRange,
79
+ totalPages,
80
+ isServiceLink,
81
+ } = this.props;
74
82
  const { activePage } = this.state;
75
83
 
76
84
  const items = createPaginationItems({
@@ -96,6 +104,7 @@ class Pagination extends Component {
96
104
  onClick={this.handleItemClick}
97
105
  type={type}
98
106
  ellipsisItem={ellipsisItem}
107
+ isServiceLink={isServiceLink}
99
108
  >
100
109
  {value}
101
110
  </PaginationItem>
@@ -46,6 +46,9 @@ class PaginationItem extends Component {
46
46
  'nextItem',
47
47
  'lastItem',
48
48
  ]),
49
+
50
+ /** Lighthouse ID to set Agid data-element on pager link for CT Servizio*/
51
+ isServiceLink: PropTypes.bool,
49
52
  };
50
53
 
51
54
  handleClick = (e) => {
@@ -59,7 +62,14 @@ class PaginationItem extends Component {
59
62
  };
60
63
 
61
64
  render() {
62
- const { active, type, children, intl, ellipsisItem } = this.props;
65
+ const {
66
+ active,
67
+ type,
68
+ children,
69
+ intl,
70
+ ellipsisItem,
71
+ isServiceLink,
72
+ } = this.props;
63
73
  const disabled = this.props.disabled || type === 'ellipsisItem';
64
74
  return (
65
75
  <PagerItem disabled={disabled}>
@@ -68,6 +78,7 @@ class PaginationItem extends Component {
68
78
  onClick={this.handleClick}
69
79
  onKeyDown={this.handleKeyDown}
70
80
  aria-current={active ? 'page' : null}
81
+ data-element={isServiceLink ? 'pager-link' : null}
71
82
  >
72
83
  {type === 'prevItem' && (
73
84
  <>
@@ -9,7 +9,7 @@ import {
9
9
 
10
10
  const messages = defineMessages({
11
11
  descrizione: {
12
- id: 'descrizione',
12
+ id: 'descrizione_bando',
13
13
  defaultMessage: 'Descrizione',
14
14
  },
15
15
  tipologia_bando: {
@@ -93,6 +93,11 @@ const ListingBody = React.memo(
93
93
  // Also need to purge title from searchblock schema, it's the name of the listing template used
94
94
  const listingBodyProps =
95
95
  variation?.['@type'] !== 'search' ? data : { ...variation, title: '' };
96
+
97
+ // Need to know if data-element is "service-link"
98
+ // to add data-element="pager-link" to pagination links
99
+ const isServiceLink = data.id_lighthouse === 'service-link';
100
+
96
101
  return (
97
102
  <div className="public-ui">
98
103
  {loadingQuery && (
@@ -123,6 +128,7 @@ const ListingBody = React.memo(
123
128
  activePage={currentPage}
124
129
  totalPages={totalPages}
125
130
  onPageChange={onPaginationChange}
131
+ isServiceLink={isServiceLink}
126
132
  />
127
133
  </div>
128
134
  )}