design-comuni-plone-theme 11.3.1 → 11.3.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.
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +14 -0
- package/RELEASE.md +8 -0
- package/package.json +1 -1
- package/publiccode.yml +2 -2
- package/razzle.extend.js +1 -0
- package/src/components/ItaliaTheme/Footer/FooterNavigation.jsx +30 -38
- package/src/components/ItaliaTheme/Icons/DesignIcon.jsx +4 -2
- package/src/config/italiaConfig.js +8 -5
- package/src/customizations/volto/components/theme/Navigation/Navigation.jsx +7 -1
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [11.3.2](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.3.1...v11.3.2) (2024-01-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* bug when importing svg icons without viewBox ([#489](https://github.com/redturtle/design-comuni-plone-theme/issues/489)) ([8b2cd7d](https://github.com/redturtle/design-comuni-plone-theme/commit/8b2cd7da5e22ffe1ac279f226a872586ac43bc74))
|
|
9
|
+
* close button of menu in mobile showing when menu is closed ([#491](https://github.com/redturtle/design-comuni-plone-theme/issues/491)) ([e398437](https://github.com/redturtle/design-comuni-plone-theme/commit/e3984374d1f6e096dc089f1fb11263d4b372211b))
|
|
10
|
+
* footer second level navigation disappearing ([#490](https://github.com/redturtle/design-comuni-plone-theme/issues/490)) ([39a54be](https://github.com/redturtle/design-comuni-plone-theme/commit/39a54beeae2571d0f9187582a4ab1e4307a9fb0c))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Documentation
|
|
14
|
+
|
|
15
|
+
* updated publiccode and release log ([b9893ff](https://github.com/redturtle/design-comuni-plone-theme/commit/b9893ff17fc2bc4a0088594e00184dff7ad579b2))
|
|
16
|
+
|
|
3
17
|
## [11.3.1](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.3.0...v11.3.1) (2024-01-17)
|
|
4
18
|
|
|
5
19
|
|
package/RELEASE.md
CHANGED
|
@@ -41,6 +41,14 @@
|
|
|
41
41
|
- ...
|
|
42
42
|
-->
|
|
43
43
|
|
|
44
|
+
## Versione 11.3.2 (19/01/2023)
|
|
45
|
+
|
|
46
|
+
### Fix
|
|
47
|
+
|
|
48
|
+
- Risolto un problema di visualizzazione di alcune icone social.
|
|
49
|
+
- Risolto un problema con il menù di navigazione del footer, in cui a volte scomparivano le voci di secondo livello.
|
|
50
|
+
- Risolto problema di sovrapposizione del bottone "Chiudi" del menu laterale su mobile quando il menu è chiuso.
|
|
51
|
+
|
|
44
52
|
## Versione 11.3.0 (16/01/2024)
|
|
45
53
|
|
|
46
54
|
### Novità
|
package/package.json
CHANGED
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: '2024-01-
|
|
230
|
+
releaseDate: '2024-01-19'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 11.3.
|
|
232
|
+
softwareVersion: 11.3.2
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
package/razzle.extend.js
CHANGED
|
@@ -3,14 +3,11 @@
|
|
|
3
3
|
* @module components/ItaliaTheme/Footer/FooterNavigation
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import React, { useEffect } from 'react';
|
|
7
6
|
import { Link } from 'react-router-dom';
|
|
8
|
-
import {
|
|
7
|
+
import { useSelector } from 'react-redux';
|
|
9
8
|
|
|
10
9
|
import { defineMessages, useIntl } from 'react-intl';
|
|
11
10
|
import { isEqual } from 'lodash';
|
|
12
|
-
import { getBaseUrl } from '@plone/volto/helpers';
|
|
13
|
-
import { getNavigation } from '@plone/volto/actions';
|
|
14
11
|
import { UniversalLink } from '@plone/volto/components';
|
|
15
12
|
import { Row, Col, LinkList, LinkListItem } from 'design-react-kit';
|
|
16
13
|
import { SectionIcon } from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
@@ -25,23 +22,15 @@ const messages = defineMessages({
|
|
|
25
22
|
|
|
26
23
|
const FooterNavigation = () => {
|
|
27
24
|
const intl = useIntl();
|
|
28
|
-
const currentLang = useSelector((state) => state.intl.locale);
|
|
29
|
-
const dispatch = useDispatch();
|
|
30
25
|
const items = useSelector((state) => state.navigation.items, isEqual);
|
|
31
26
|
|
|
32
|
-
|
|
33
|
-
if (config.settings.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
useEffect(() => {
|
|
38
|
-
dispatch(
|
|
39
|
-
getNavigation(
|
|
40
|
-
getBaseUrl(path),
|
|
41
|
-
config.settings.siteProperties.footerNavigationDepth,
|
|
42
|
-
),
|
|
27
|
+
// DEPRECATED: isFooterCollapsed to be removed in version 12
|
|
28
|
+
if (config.settings.isFooterCollapsed) {
|
|
29
|
+
// eslint-disable-next-line no-console
|
|
30
|
+
console.warn(
|
|
31
|
+
'DEPRECATED: config.settings.isFooterCollapsed will be removed in version 12. Use config.settings.siteProperties.footerNavigationDepth instead.',
|
|
43
32
|
);
|
|
44
|
-
}
|
|
33
|
+
}
|
|
45
34
|
|
|
46
35
|
return (
|
|
47
36
|
<>
|
|
@@ -70,26 +59,29 @@ const FooterNavigation = () => {
|
|
|
70
59
|
{item.title}
|
|
71
60
|
</Link>
|
|
72
61
|
</h4>
|
|
73
|
-
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
62
|
+
{/* DEPRECATED: isFooterCollapsed to be removed in version 12 */}
|
|
63
|
+
{!config.settings.isFooterCollapsed &&
|
|
64
|
+
config.settings.siteProperties.footerNavigationDepth > 1 &&
|
|
65
|
+
item.items && (
|
|
66
|
+
<LinkList className="footer-list clearfix" tag="div">
|
|
67
|
+
{item.items.map((subitem) => {
|
|
68
|
+
return (
|
|
69
|
+
<LinkListItem
|
|
70
|
+
key={subitem.url}
|
|
71
|
+
href={subitem.url}
|
|
72
|
+
tag={UniversalLink}
|
|
73
|
+
title={
|
|
74
|
+
intl.formatMessage(messages.goToPage) +
|
|
75
|
+
': ' +
|
|
76
|
+
subitem.title
|
|
77
|
+
}
|
|
78
|
+
>
|
|
79
|
+
{subitem.title}
|
|
80
|
+
</LinkListItem>
|
|
81
|
+
);
|
|
82
|
+
})}
|
|
83
|
+
</LinkList>
|
|
84
|
+
)}
|
|
93
85
|
</Col>
|
|
94
86
|
))}
|
|
95
87
|
</Row>
|
|
@@ -41,8 +41,10 @@ const Icon = ({ icon, title, className, size }) => {
|
|
|
41
41
|
const { current: name } = ImportedIconRef;
|
|
42
42
|
return (
|
|
43
43
|
<svg
|
|
44
|
-
xmlns={name.attributes
|
|
45
|
-
viewBox={name.attributes
|
|
44
|
+
xmlns={name.attributes?.xmlns}
|
|
45
|
+
viewBox={name.attributes?.viewBox}
|
|
46
|
+
width={name.attributes?.width}
|
|
47
|
+
height={name.attributes?.height}
|
|
46
48
|
style={{ height: size, width: 'auto' }}
|
|
47
49
|
className={className}
|
|
48
50
|
aria-hidden="true"
|
|
@@ -65,8 +65,8 @@ import { schemaListing } from 'design-comuni-plone-theme/components/ItaliaTheme/
|
|
|
65
65
|
|
|
66
66
|
import reducers from 'design-comuni-plone-theme/reducers';
|
|
67
67
|
|
|
68
|
-
const ReleaseLog = loadable(
|
|
69
|
-
import('design-comuni-plone-theme/components/ReleaseLog/ReleaseLog'),
|
|
68
|
+
const ReleaseLog = loadable(
|
|
69
|
+
() => import('design-comuni-plone-theme/components/ReleaseLog/ReleaseLog'),
|
|
70
70
|
);
|
|
71
71
|
|
|
72
72
|
const messages = defineMessages({
|
|
@@ -104,6 +104,7 @@ export default function applyConfig(voltoConfig) {
|
|
|
104
104
|
// },
|
|
105
105
|
}),
|
|
106
106
|
isMultilingual: false,
|
|
107
|
+
// DEPRECATED: isFooterCollapsed to be removed in version 12. Use siteProperties.footerNavigationDepth instead.
|
|
107
108
|
isFooterCollapsed: false, // false(default) -> vedere il footer automatico esploso | true -> implodere il footer menu automatico
|
|
108
109
|
supportedLanguages: ['it'],
|
|
109
110
|
defaultLanguage: 'it',
|
|
@@ -112,6 +113,7 @@ export default function applyConfig(voltoConfig) {
|
|
|
112
113
|
showSelfRegistration: false,
|
|
113
114
|
useEmailAsLogin: false,
|
|
114
115
|
defaultPageSize: 24,
|
|
116
|
+
navDepth: 2,
|
|
115
117
|
cookieExpires: 15552000, //6 month
|
|
116
118
|
serverConfig: {
|
|
117
119
|
...config.settings.serverConfig,
|
|
@@ -486,9 +488,10 @@ export default function applyConfig(voltoConfig) {
|
|
|
486
488
|
},
|
|
487
489
|
};
|
|
488
490
|
// Remove Horizontal Menu variation of TOC Block
|
|
489
|
-
config.blocks.blocksConfig.toc.variations =
|
|
490
|
-
(
|
|
491
|
-
|
|
491
|
+
config.blocks.blocksConfig.toc.variations =
|
|
492
|
+
config.blocks.blocksConfig.toc.variations.filter(
|
|
493
|
+
(v) => v.id !== 'horizontalMenu',
|
|
494
|
+
);
|
|
492
495
|
|
|
493
496
|
// COMPONENTS
|
|
494
497
|
config.components = {
|
|
@@ -87,6 +87,12 @@ const Navigation = ({ pathname }) => {
|
|
|
87
87
|
document.body.removeEventListener('click', blocksClickListener);
|
|
88
88
|
}, []);
|
|
89
89
|
|
|
90
|
+
const closeButtonStyle = collapseOpen
|
|
91
|
+
? {
|
|
92
|
+
display: 'block',
|
|
93
|
+
}
|
|
94
|
+
: { display: 'none' };
|
|
95
|
+
|
|
90
96
|
return (
|
|
91
97
|
<Header theme="" type="navbar">
|
|
92
98
|
{menu?.length > 0 ? (
|
|
@@ -148,7 +154,7 @@ const Navigation = ({ pathname }) => {
|
|
|
148
154
|
{/* Headerslim Menu - parent site (if subsite) */}
|
|
149
155
|
{subsite && <ParentSiteMenu />}
|
|
150
156
|
</div>
|
|
151
|
-
<div className="close-div">
|
|
157
|
+
<div className="close-div" style={closeButtonStyle}>
|
|
152
158
|
<button
|
|
153
159
|
className="btn close-menu"
|
|
154
160
|
type="button"
|