design-comuni-plone-theme 10.6.2 → 10.6.3
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 +14 -0
- package/RELEASE.md +6 -0
- package/package.json +2 -2
- package/publiccode.yml +11 -2
- package/src/customizations/volto/components/manage/Blocks/Search/SearchBlockView.jsx +4 -1
- package/src/theme/ItaliaTheme/Blocks/_bandiInEvidenceTemplate.scss +2 -2
- package/src/theme/ItaliaTheme/Blocks/_search.scss +11 -5
- package/src/customizations/volto-gdpr-privacy/components/ConditionalEmbed/ConditionalEmbed.jsx +0 -135
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [10.6.3](https://github.com/redturtle/design-comuni-plone-theme/compare/v10.6.2...v10.6.3) (2023-12-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* different styles and ui for all Search block listing templates when compared to default Listing template ([#437](https://github.com/redturtle/design-comuni-plone-theme/issues/437)) ([d6cf41d](https://github.com/redturtle/design-comuni-plone-theme/commit/d6cf41dd63e6d1b891ff045238d5d7d9d9df5ff0))
|
|
9
|
+
* gdpr privacy conditional embed to work in diff view ([#438](https://github.com/redturtle/design-comuni-plone-theme/issues/438)) ([6a8c361](https://github.com/redturtle/design-comuni-plone-theme/commit/6a8c361feda654f0301b5026533234438469ff37))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Documentation
|
|
13
|
+
|
|
14
|
+
* aggiornamento della lista dei comuni in publiccode.yml ([#159](https://github.com/redturtle/design-comuni-plone-theme/issues/159)) ([7e87e9f](https://github.com/redturtle/design-comuni-plone-theme/commit/7e87e9f2071adeced38eae57eb8d09cee6433fa1))
|
|
15
|
+
* updated publiccode and release log ([f27a61a](https://github.com/redturtle/design-comuni-plone-theme/commit/f27a61aef3f41ac34bcbdf9e58e2a6ae0166d0f9))
|
|
16
|
+
|
|
3
17
|
## [10.6.2](https://github.com/redturtle/design-comuni-plone-theme/compare/v10.6.1...v10.6.2) (2023-12-14)
|
|
4
18
|
|
|
5
19
|
|
package/RELEASE.md
CHANGED
|
@@ -41,6 +41,12 @@
|
|
|
41
41
|
- ...
|
|
42
42
|
-->
|
|
43
43
|
|
|
44
|
+
## Versione 10.6.3 (15/12/2023)
|
|
45
|
+
|
|
46
|
+
### Fix
|
|
47
|
+
|
|
48
|
+
- Sistemati alcuni problemi di visualizzazione nei template disponibili per il blocco Cerca. Ora tutti i template disponibili per questo blocco rispecchiano graficamente quelli per il blocco Elenco sia in visualizzazione che in modifica.
|
|
49
|
+
|
|
44
50
|
## Versione 10.6.2 (14/12/2023)
|
|
45
51
|
|
|
46
52
|
### 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": "10.6.
|
|
5
|
+
"version": "10.6.3",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"volto-addon",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"volto-editablefooter": "5.0.1",
|
|
147
147
|
"volto-feedback": "0.1.5",
|
|
148
148
|
"volto-form-block": "3.1.0",
|
|
149
|
-
"volto-gdpr-privacy": "2.1.
|
|
149
|
+
"volto-gdpr-privacy": "2.1.1",
|
|
150
150
|
"volto-google-analytics": "2.0.0",
|
|
151
151
|
"volto-multilingual-widget": "3.0.0",
|
|
152
152
|
"volto-querywidget-with-browser": "0.4.0",
|
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-12-
|
|
230
|
+
releaseDate: '2023-12-15'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 10.6.
|
|
232
|
+
softwareVersion: 10.6.3
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -252,14 +252,21 @@ usedBy:
|
|
|
252
252
|
- Comune di Concordia sul Secchia
|
|
253
253
|
- Comune di Gattatico
|
|
254
254
|
- Comune di Finale Emilia
|
|
255
|
+
- Comune di Fiorano Modenese
|
|
256
|
+
- Comune di Formigine
|
|
257
|
+
- Comune di Frassinoro
|
|
255
258
|
- Comune di Imola
|
|
259
|
+
- Comune di Maranello
|
|
256
260
|
- Comune di Medolla
|
|
257
261
|
- Comune di Mirandola
|
|
258
262
|
- Comune di Modena
|
|
259
263
|
- Comune di Montecchio Emilia
|
|
264
|
+
- Comune di Montefiorino
|
|
260
265
|
- Comune di Novellara
|
|
266
|
+
- Comune di Palagano
|
|
261
267
|
- Comune di Parma
|
|
262
268
|
- Comune di Piacenza
|
|
269
|
+
- Comune di Prignano
|
|
263
270
|
- Comune di Reggio Emilia
|
|
264
271
|
- Comune di San Felice sul Panaro
|
|
265
272
|
- Comune di San Lazzaro di Savena
|
|
@@ -267,6 +274,7 @@ usedBy:
|
|
|
267
274
|
- Comune di San Possidonio
|
|
268
275
|
- Comune di San Prospero
|
|
269
276
|
- Comune di Santilario d'Enza
|
|
277
|
+
- Comune di Sassuolo
|
|
270
278
|
- Comune di Toscolano Maderno
|
|
271
279
|
- Comune di Vaiano
|
|
272
280
|
- Comune di Vernio
|
|
@@ -275,6 +283,7 @@ usedBy:
|
|
|
275
283
|
- Nuovo Circondario Imolese
|
|
276
284
|
- Ospedali Galliera - Bilancio Sociale
|
|
277
285
|
- Provincia di Pisa
|
|
286
|
+
- Unione Comuni Distretto Ceramico
|
|
278
287
|
- UCMAN (Unione dei Comuni Modenesi Area Nord)
|
|
279
288
|
- Unione Val d'Enza
|
|
280
289
|
- Unione Val di Bisenzio
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/* CUSTOMIZATIONS:
|
|
2
2
|
- Agid styling
|
|
3
|
+
- Add class .block.listing in listing body container div to use
|
|
4
|
+
existing listing template styles
|
|
3
5
|
*/
|
|
4
6
|
|
|
5
7
|
import React from 'react';
|
|
@@ -99,7 +101,8 @@ const SearchBlockView = (props) => {
|
|
|
99
101
|
selectedView={selectedView}
|
|
100
102
|
setSelectedView={setSelectedView}
|
|
101
103
|
>
|
|
102
|
-
|
|
104
|
+
{/* Add class .block.listing to benefit from existing listing template styles */}
|
|
105
|
+
<div className="block listing search-results">
|
|
103
106
|
<ListingBody
|
|
104
107
|
variation={{ ...data, ...listingBodyVariation }}
|
|
105
108
|
data={listingBodyData}
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
|
|
57
57
|
// tablet
|
|
58
58
|
.bandi-in-evidence-cards-wrapper {
|
|
59
|
-
@media (min-width: #{map-get($grid-breakpoints, md)}) and (max-width: #{map-get($grid-breakpoints,
|
|
60
|
-
grid-template-columns: auto
|
|
59
|
+
@media (min-width: #{map-get($grid-breakpoints, md)}) and (max-width: #{map-get($grid-breakpoints, xl)}) {
|
|
60
|
+
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
@media (min-width: #{map-get($grid-breakpoints, md)}) and (max-width: #{map-get($grid-breakpoints, lg)}) {
|
|
@@ -151,15 +151,13 @@
|
|
|
151
151
|
border-color: hsl(210deg, 17.6470588235%, 43.35%) !important;
|
|
152
152
|
border-bottom: 1px solid;
|
|
153
153
|
font-size: 1rem;
|
|
154
|
-
transition:
|
|
155
|
-
border-color 0.3s ease-in,
|
|
154
|
+
transition: border-color 0.3s ease-in,
|
|
156
155
|
background-color 0.2s cubic-bezier(0, 1, 0, 1) 0.2s;
|
|
157
156
|
|
|
158
157
|
&[aria-expanded='true'] {
|
|
159
158
|
border-color: transparent !important;
|
|
160
159
|
box-shadow: 0 1rem 2rem -0.25rem rgba(0, 0, 0, 0.15) !important;
|
|
161
|
-
transition:
|
|
162
|
-
background-color 0.2s cubic-bezier(0, 1, 0, 1),
|
|
160
|
+
transition: background-color 0.2s cubic-bezier(0, 1, 0, 1),
|
|
163
161
|
border-color 0.05s cubic-bezier(1, 0, 1, 0);
|
|
164
162
|
}
|
|
165
163
|
|
|
@@ -246,8 +244,16 @@
|
|
|
246
244
|
}
|
|
247
245
|
}
|
|
248
246
|
}
|
|
247
|
+
.block.listing {
|
|
248
|
+
.bandi-in-evidence .bandi-in-evidence-cards-wrapper {
|
|
249
|
+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
250
|
+
@media (min-width: #{map-get($grid-breakpoints, md)}) and (max-width: #{map-get($grid-breakpoints, lg)}) {
|
|
251
|
+
display: block !important;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
249
255
|
}
|
|
250
256
|
|
|
251
|
-
|
|
257
|
+
.cms-ui .block.search .sideColumn .columnText .draftjs-buttons a {
|
|
252
258
|
color: $primary-text;
|
|
253
259
|
}
|
package/src/customizations/volto-gdpr-privacy/components/ConditionalEmbed/ConditionalEmbed.jsx
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
CUSTOMIZATIONS
|
|
3
|
-
- permit render if server, cannot use in history diff otherwise
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import React, { useEffect, useState } from 'react';
|
|
7
|
-
import { useSelector, useDispatch } from 'react-redux';
|
|
8
|
-
import { useIntl, defineMessages } from 'react-intl';
|
|
9
|
-
import { useLocation } from 'react-router-dom';
|
|
10
|
-
import {
|
|
11
|
-
displayBanner,
|
|
12
|
-
updateGdprPrivacyConsent,
|
|
13
|
-
} from 'volto-gdpr-privacy/actions';
|
|
14
|
-
|
|
15
|
-
import {
|
|
16
|
-
usePanelConfigAndPreferences,
|
|
17
|
-
GDPRCookies,
|
|
18
|
-
getLocaleConf,
|
|
19
|
-
} from 'volto-gdpr-privacy/helpers';
|
|
20
|
-
|
|
21
|
-
import 'volto-gdpr-privacy/components/ConditionalEmbed/conditional-embed.css';
|
|
22
|
-
|
|
23
|
-
const messages = defineMessages({
|
|
24
|
-
conditionalEmbedAcceptCookiesDefaultDescription: {
|
|
25
|
-
id: 'volto-gdpr-privacy-conditional-embed-default-description',
|
|
26
|
-
defaultMessage:
|
|
27
|
-
'Please, accept {cookie_type} cookies to view this content.',
|
|
28
|
-
},
|
|
29
|
-
conditionalEmbedAcceptCookiesAcceptMessage: {
|
|
30
|
-
id: 'volto-gdpr-privacy-conditional-embed-accept-message',
|
|
31
|
-
defaultMessage: '{enable_cookie_button}, or {manage_preferences_button}',
|
|
32
|
-
},
|
|
33
|
-
specificCookieLink: {
|
|
34
|
-
id: 'volto-gdpr-privacy-conditional-embed-specific-cookie-link',
|
|
35
|
-
defaultMessage: 'Enable {cookie_type} cookies',
|
|
36
|
-
},
|
|
37
|
-
genericCookieLink: {
|
|
38
|
-
id: 'volto-gdpr-privacy-conditional-embed-generic-cookie-link',
|
|
39
|
-
defaultMessage: 'manage your cookie preferences',
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
const ConditionalEmbed = ({ code, url, children }) => {
|
|
43
|
-
const intl = useIntl();
|
|
44
|
-
const cookies = new GDPRCookies();
|
|
45
|
-
const embed = code ?? url ?? '';
|
|
46
|
-
const dispatch = useDispatch();
|
|
47
|
-
const location = useLocation();
|
|
48
|
-
|
|
49
|
-
const { defaultPreferences } = usePanelConfigAndPreferences(cookies);
|
|
50
|
-
const profilingConfig = useSelector((state) =>
|
|
51
|
-
state.gdprPrivacyConfig?.config?.profiling?.choices?.filter(
|
|
52
|
-
(c) => c?.referenceUrls?.length > 0,
|
|
53
|
-
),
|
|
54
|
-
);
|
|
55
|
-
const gdprPreferences = useSelector(
|
|
56
|
-
(state) => state.gdprPrivacyConsent.preferences ?? defaultPreferences,
|
|
57
|
-
);
|
|
58
|
-
const [urlReferenceConfig, setUrlReferenceConfig] = useState(null);
|
|
59
|
-
|
|
60
|
-
useEffect(() => {
|
|
61
|
-
if (profilingConfig && !urlReferenceConfig) {
|
|
62
|
-
let conditionalConfig = profilingConfig.filter(
|
|
63
|
-
(c) =>
|
|
64
|
-
c.referenceUrls.filter((r) => embed?.indexOf(r) >= 0)?.length > 0,
|
|
65
|
-
);
|
|
66
|
-
|
|
67
|
-
setUrlReferenceConfig(conditionalConfig?.[0] ?? null);
|
|
68
|
-
}
|
|
69
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
70
|
-
}, [profilingConfig, setUrlReferenceConfig, urlReferenceConfig, embed]);
|
|
71
|
-
|
|
72
|
-
//return value
|
|
73
|
-
let ret = <></>;
|
|
74
|
-
let embedDisabled = true;
|
|
75
|
-
|
|
76
|
-
embedDisabled =
|
|
77
|
-
urlReferenceConfig != null &&
|
|
78
|
-
!gdprPreferences[urlReferenceConfig.config_key];
|
|
79
|
-
const isDiffView = location.pathname?.includes('/diff');
|
|
80
|
-
if (__CLIENT__ && !gdprPreferences && !isDiffView) {
|
|
81
|
-
return <></>;
|
|
82
|
-
} else if (embedDisabled && !isDiffView) {
|
|
83
|
-
//embed disabled
|
|
84
|
-
const text = getLocaleConf(urlReferenceConfig.text, intl.locale);
|
|
85
|
-
const key = urlReferenceConfig.config_key;
|
|
86
|
-
ret = (
|
|
87
|
-
<div className="volto-gdpr-embed-disabled">
|
|
88
|
-
{text.conditional_embed_text ??
|
|
89
|
-
intl.formatMessage(
|
|
90
|
-
messages.conditionalEmbedAcceptCookiesDefaultDescription,
|
|
91
|
-
{ cookie_type: key },
|
|
92
|
-
)}{' '}
|
|
93
|
-
{intl.formatMessage(
|
|
94
|
-
messages.conditionalEmbedAcceptCookiesAcceptMessage,
|
|
95
|
-
{
|
|
96
|
-
enable_cookie_button: (
|
|
97
|
-
<button
|
|
98
|
-
onClick={(e) => {
|
|
99
|
-
e.preventDefault();
|
|
100
|
-
cookies.set(key, true);
|
|
101
|
-
dispatch(
|
|
102
|
-
updateGdprPrivacyConsent({
|
|
103
|
-
...gdprPreferences,
|
|
104
|
-
[key]: true,
|
|
105
|
-
}),
|
|
106
|
-
);
|
|
107
|
-
}}
|
|
108
|
-
>
|
|
109
|
-
{intl.formatMessage(messages.specificCookieLink, {
|
|
110
|
-
cookie_type: key,
|
|
111
|
-
})}
|
|
112
|
-
</button>
|
|
113
|
-
),
|
|
114
|
-
manage_preferences_button: (
|
|
115
|
-
<button
|
|
116
|
-
onClick={(e) => {
|
|
117
|
-
e.preventDefault();
|
|
118
|
-
dispatch(displayBanner(true, true));
|
|
119
|
-
}}
|
|
120
|
-
>
|
|
121
|
-
{intl.formatMessage(messages.genericCookieLink)}
|
|
122
|
-
</button>
|
|
123
|
-
),
|
|
124
|
-
},
|
|
125
|
-
)}
|
|
126
|
-
</div>
|
|
127
|
-
);
|
|
128
|
-
} else {
|
|
129
|
-
ret = <>{children}</>;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
return ret;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
export default ConditionalEmbed;
|