design-comuni-plone-theme 10.4.2 → 10.5.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,39 @@
1
1
 
2
2
 
3
+ ## [10.5.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v10.4.3...v10.5.0) (2023-12-06)
4
+
5
+
6
+ ### Features
7
+
8
+ * added volto-querywidget-with-browser addon ([#426](https://github.com/RedTurtle/design-comuni-plone-theme/issues/426)) ([d1a6502](https://github.com/RedTurtle/design-comuni-plone-theme/commit/d1a65021fe594eb15bc56b76207de7d74f8f1cca))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * calendar block header size ([#425](https://github.com/RedTurtle/design-comuni-plone-theme/issues/425)) ([2ab1035](https://github.com/RedTurtle/design-comuni-plone-theme/commit/2ab1035bb3bdc3da18726445009ddd37ef9c7288))
14
+ * centered image in genericcard with image for related content ([#429](https://github.com/RedTurtle/design-comuni-plone-theme/issues/429)) ([38ffb45](https://github.com/RedTurtle/design-comuni-plone-theme/commit/38ffb452d903c2d39a9fe3d355f69cf9c220d2f2))
15
+ * feedback form con risposta obbligatoria ([#430](https://github.com/RedTurtle/design-comuni-plone-theme/issues/430)) ([f653419](https://github.com/RedTurtle/design-comuni-plone-theme/commit/f653419ae76e9cdf46edce1c9ad5b7d80e0506d7))
16
+
17
+
18
+ ### Documentation
19
+
20
+ * updated publiccode and release log ([05312b4](https://github.com/RedTurtle/design-comuni-plone-theme/commit/05312b4f8705bc4805beee9b6b2ba98e9f399e62))
21
+
22
+ ## [10.4.3](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v10.4.2...v10.4.3) (2023-11-28)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * 404 page now sends user to homepage instead of search ([#419](https://github.com/RedTurtle/design-comuni-plone-theme/issues/419)) ([4331b59](https://github.com/RedTurtle/design-comuni-plone-theme/commit/4331b5937dbcfad9fe6a22f3f8a0a53c1a17b838))
28
+ * a11y of feedback form ([#418](https://github.com/RedTurtle/design-comuni-plone-theme/issues/418)) ([52da0c7](https://github.com/RedTurtle/design-comuni-plone-theme/commit/52da0c73f67c8bb09b225e19a6535cd6a9613602))
29
+ * changed styles for BandiInEvidenceTemplate for tablet size ([#412](https://github.com/RedTurtle/design-comuni-plone-theme/issues/412)) ([fd7688a](https://github.com/RedTurtle/design-comuni-plone-theme/commit/fd7688a80b6247243730ff01e55dd682ba2edbac))
30
+ * removed pager-link data-element from prev item button in Pagination ([#420](https://github.com/RedTurtle/design-comuni-plone-theme/issues/420)) ([5812546](https://github.com/RedTurtle/design-comuni-plone-theme/commit/58125465349699396b2719a79bf70a339f4ac7e6))
31
+
32
+
33
+ ### Documentation
34
+
35
+ * updated publiccode and release log ([33b267f](https://github.com/RedTurtle/design-comuni-plone-theme/commit/33b267f2f20d68b521a1452d300f7288f1d01fb1))
36
+
3
37
  ## [10.4.2](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v10.4.1...v10.4.2) (2023-11-23)
4
38
 
5
39
 
package/RELEASE.md CHANGED
@@ -41,6 +41,29 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 10.5.0 (06/12/2023)
45
+
46
+ ### Novità
47
+
48
+ - Nel blocco elenco, nel criterio di configurazione 'Posizione', è ora presente uno strumento per facilitare la ricerca dei contenuti nel sito, senza dover scrivere il percorso a mano.
49
+
50
+ ### Fix
51
+
52
+ - Le immagini nelle card dei contenuti correlati sono centrate verticalmente.
53
+ - Il feedback form ora richiede necessariamente una risposta oltre al voto in stelle.
54
+ - Dimensione del titolo del blocco calendario uniformata ai titoli degli altri blocchi elenco.
55
+
56
+ ## Versione 10.4.3 (28/11/2023)
57
+
58
+ ### Migliorie
59
+
60
+ - Ora nella pagina 404 "Questa pagina non esiste" viene suggerito il proseguimento della navigazione verso la homepage invece che verso la ricerca.
61
+
62
+ ### Fix
63
+
64
+ - Migliorata l'accessibilità del modulo di valutazione del sito che si trova in fondo ad ogni pagina.
65
+ - Il blocco Elenco con variazione Bandi viene visualizzato correttamente anche su tablet.
66
+
44
67
  ## Versione 10.4.2 (23/11/2023)
45
68
 
46
69
  ### Fix
@@ -2153,6 +2153,11 @@ msgstr ""
2153
2153
  msgid "hide_dates"
2154
2154
  msgstr ""
2155
2155
 
2156
+ #: helpers/customizationsI18n
2157
+ # defaultMessage: Home page
2158
+ msgid "homepage"
2159
+ msgstr ""
2160
+
2156
2161
  #: components/ItaliaTheme/Blocks/HTML/Sidebar
2157
2162
  # defaultMessage: Mostra lo sfondo a tutta larghezza
2158
2163
  msgid "htmlFullWidth"
@@ -2138,6 +2138,11 @@ msgstr ""
2138
2138
  msgid "hide_dates"
2139
2139
  msgstr ""
2140
2140
 
2141
+ #: helpers/customizationsI18n
2142
+ # defaultMessage: Home page
2143
+ msgid "homepage"
2144
+ msgstr "Home page"
2145
+
2141
2146
  #: components/ItaliaTheme/Blocks/HTML/Sidebar
2142
2147
  # defaultMessage: Mostra lo sfondo a tutta larghezza
2143
2148
  msgid "htmlFullWidth"
@@ -2147,6 +2147,11 @@ msgstr "Para esta plantilla el número de resultados por página debe ser 7. Com
2147
2147
  msgid "hide_dates"
2148
2148
  msgstr "Ocultar fechas"
2149
2149
 
2150
+ #: helpers/customizationsI18n
2151
+ # defaultMessage: Home page
2152
+ msgid "homepage"
2153
+ msgstr ""
2154
+
2150
2155
  #: components/ItaliaTheme/Blocks/HTML/Sidebar
2151
2156
  # defaultMessage: Mostra lo sfondo a tutta larghezza
2152
2157
  msgid "htmlFullWidth"
@@ -2155,6 +2155,11 @@ msgstr ""
2155
2155
  msgid "hide_dates"
2156
2156
  msgstr ""
2157
2157
 
2158
+ #: helpers/customizationsI18n
2159
+ # defaultMessage: Home page
2160
+ msgid "homepage"
2161
+ msgstr ""
2162
+
2158
2163
  #: components/ItaliaTheme/Blocks/HTML/Sidebar
2159
2164
  # defaultMessage: Mostra lo sfondo a tutta larghezza
2160
2165
  msgid "htmlFullWidth"
@@ -2138,6 +2138,11 @@ msgstr "Per questo template il numero di risultati per pagina deve essere 7. Con
2138
2138
  msgid "hide_dates"
2139
2139
  msgstr "Nascondi le date"
2140
2140
 
2141
+ #: helpers/customizationsI18n
2142
+ # defaultMessage: Home page
2143
+ msgid "homepage"
2144
+ msgstr "Home page"
2145
+
2141
2146
  #: components/ItaliaTheme/Blocks/HTML/Sidebar
2142
2147
  # defaultMessage: Mostra lo sfondo a tutta larghezza
2143
2148
  msgid "htmlFullWidth"
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-11-14T17:26:17.874Z\n"
4
+ "POT-Creation-Date: 2023-11-24T12:06:19.839Z\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"
@@ -2140,6 +2140,11 @@ msgstr ""
2140
2140
  msgid "hide_dates"
2141
2141
  msgstr ""
2142
2142
 
2143
+ #: helpers/customizationsI18n
2144
+ # defaultMessage: Home page
2145
+ msgid "homepage"
2146
+ msgstr ""
2147
+
2143
2148
  #: components/ItaliaTheme/Blocks/HTML/Sidebar
2144
2149
  # defaultMessage: Mostra lo sfondo a tutta larghezza
2145
2150
  msgid "htmlFullWidth"
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.4.2",
5
+ "version": "10.5.0",
6
6
  "main": "src/index.js",
7
7
  "keywords": [
8
8
  "volto-addon",
@@ -29,6 +29,7 @@
29
29
  "volto-subfooter",
30
30
  "volto-gdpr-privacy",
31
31
  "volto-data-grid-widget",
32
+ "volto-querywidget-with-browser",
32
33
  "@eeacms/volto-taxonomy",
33
34
  "volto-feedback"
34
35
  ],
@@ -148,6 +149,7 @@
148
149
  "volto-gdpr-privacy": "2.1.0",
149
150
  "volto-google-analytics": "2.0.0",
150
151
  "volto-multilingual-widget": "3.0.0",
152
+ "volto-querywidget-with-browser": "0.4.0",
151
153
  "volto-rss-block": "3.0.0",
152
154
  "volto-secondarymenu": "4.0.0",
153
155
  "volto-social-settings": "3.0.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-11-23'
230
+ releaseDate: '2023-12-06'
231
231
  softwareType: standalone/web
232
- softwareVersion: 10.4.2
232
+ softwareVersion: 10.5.0
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -119,7 +119,7 @@ const FeedbackForm = ({ contentType, pathname }) => {
119
119
  const dispatch = useDispatch();
120
120
  const [satisfaction, setSatisfaction] = useState(null);
121
121
  const [step, setStep] = useState(0);
122
- const [invalidForm, setInvalidForm] = useState(false);
122
+ const [invalidForm, setInvalidForm] = useState(true);
123
123
  const [formData, setFormData] = useState({});
124
124
  const captcha = !!process.env.RAZZLE_RECAPTCHA_KEY ? 'GoogleReCaptcha' : null;
125
125
  const submitResults = useSelector((state) => state.submitFeedback);
@@ -140,6 +140,10 @@ const FeedbackForm = ({ contentType, pathname }) => {
140
140
  if (value?.length > 200) setInvalidForm(true);
141
141
  else setInvalidForm(false);
142
142
  }
143
+ if (field === 'answer') {
144
+ if (!value) setInvalidForm(true);
145
+ else setInvalidForm(false);
146
+ }
143
147
  setFormData({
144
148
  ...formData,
145
149
  [field]: value,
@@ -214,7 +218,7 @@ const FeedbackForm = ({ contentType, pathname }) => {
214
218
  <Container>
215
219
  <Row className="d-flex justify-content-center bg-primary">
216
220
  <Col className="col-12 col-lg-6">
217
- <div className="feedback-form">
221
+ <div className="feedback-form" role="form">
218
222
  <Card
219
223
  className="shadow card-wrapper py-4 px-4"
220
224
  data-element="feedback"
@@ -312,6 +316,7 @@ const FeedbackForm = ({ contentType, pathname }) => {
312
316
  color="primary"
313
317
  onClick={nextStep}
314
318
  className="next-action fw-bold"
319
+ disabled={invalidForm}
315
320
  type="button"
316
321
  >
317
322
  {intl.formatMessage(messages.next)}
@@ -82,12 +82,12 @@ const AnswersStep = ({
82
82
  {state?.map((s, i) => (
83
83
  <FormGroup
84
84
  check
85
- key={s}
85
+ key={'positive-' + s}
86
86
  className="border-bottom border-light mb-4"
87
87
  >
88
88
  <Input
89
- name={s}
90
- id={s}
89
+ name="answer-input-positive"
90
+ id={'positive-' + s}
91
91
  type="radio"
92
92
  checked={s === selectedAnswer}
93
93
  value={s}
@@ -95,7 +95,7 @@ const AnswersStep = ({
95
95
  addon
96
96
  />
97
97
  <Label
98
- for={s}
98
+ for={'positive-' + s}
99
99
  check
100
100
  className="mb-4"
101
101
  data-element="feedback-rating-answer"
@@ -129,12 +129,12 @@ const AnswersStep = ({
129
129
  {state?.map((s, i) => (
130
130
  <FormGroup
131
131
  check
132
- key={s}
132
+ key={'negative-' + s}
133
133
  className="border-bottom border-light mb-4"
134
134
  >
135
135
  <Input
136
- name={s}
137
- id={s}
136
+ name="answer-input-negative"
137
+ id={'negative-' + s}
138
138
  type="radio"
139
139
  checked={s === selectedAnswer}
140
140
  value={s}
@@ -142,7 +142,7 @@ const AnswersStep = ({
142
142
  addon
143
143
  />
144
144
  <Label
145
- for={s}
145
+ for={'negative-' + s}
146
146
  check
147
147
  className="mb-4"
148
148
  data-element="feedback-rating-answer"
@@ -72,7 +72,9 @@ class PaginationItem extends Component {
72
72
  onClick={this.handleClick}
73
73
  onKeyDown={this.handleKeyDown}
74
74
  aria-current={active ? 'page' : null}
75
- data-element={isServiceLink ? 'pager-link' : null}
75
+ data-element={
76
+ isServiceLink && type !== 'prevItem' ? 'pager-link' : null
77
+ }
76
78
  >
77
79
  {type === 'prevItem' && (
78
80
  <>
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  CUSTOMIZATIONS:
3
- - Removed the "Site Administration" link, added a link to the search page
3
+ - Removed the "Site Administration" link, added a link to the home page
4
4
  */
5
5
 
6
6
  import { useEffect } from 'react';
@@ -22,14 +22,13 @@ const NotFound = () => {
22
22
  const dispatch = useDispatch();
23
23
  const lang = useSelector((state) => state.intl.locale);
24
24
 
25
+ const navigationRootPath = config.settings.isMultilingual
26
+ ? `/${toBackendLang(lang)}`
27
+ : '/';
28
+
25
29
  useEffect(() => {
26
- dispatch(
27
- getNavigation(
28
- config.settings.isMultilingual ? `/${toBackendLang(lang)}` : '/',
29
- config.settings.navDepth,
30
- ),
31
- );
32
- }, [dispatch, lang]);
30
+ dispatch(getNavigation(navigationRootPath, config.settings.navDepth));
31
+ }, [dispatch, lang, navigationRootPath]);
33
32
 
34
33
  return (
35
34
  <Container className="view-wrapper">
@@ -47,8 +46,8 @@ const NotFound = () => {
47
46
  />
48
47
  </p>
49
48
  <p>
50
- <Link to="/search">
51
- <FormattedMessage id="Search Site" defaultMessage="Search Site" />
49
+ <Link to={navigationRootPath}>
50
+ <FormattedMessage id="Home page" defaultMessage="Home page" />
52
51
  </Link>
53
52
  </p>
54
53
  {/* <p>
@@ -5,4 +5,8 @@ defineMessages({
5
5
  id: 'opensInNewTab',
6
6
  defaultMessage: 'Opens in new tab',
7
7
  },
8
+ homepage: {
9
+ id: 'homepage',
10
+ defaultMessage: 'Home page',
11
+ },
8
12
  });
@@ -5,6 +5,10 @@
5
5
  gap: 1.3rem;
6
6
  -ms-grid-columns: 1fr 1.3rem 1fr 1.3rem 1fr;
7
7
  grid-template-columns: 1fr 1fr 1fr;
8
+
9
+ .read-more a.read-more {
10
+ flex-direction: row;
11
+ }
8
12
  }
9
13
 
10
14
  .card-wrapper {
@@ -39,7 +43,7 @@
39
43
  }
40
44
 
41
45
  // smartphone
42
- @media (max-width: 585px) {
46
+ @media (max-width: #{map-get($grid-breakpoints, sm)}) {
43
47
  .bandi-in-evidence-cards-wrapper {
44
48
  .card-wrapper {
45
49
  width: 100%;
@@ -51,13 +55,17 @@
51
55
  }
52
56
 
53
57
  // tablet
54
- @media (min-width: 586px) and (max-width: 1367px) {
55
- .bandi-in-evidence-cards-wrapper {
58
+ .bandi-in-evidence-cards-wrapper {
59
+ @media (min-width: #{map-get($grid-breakpoints, md)}) and (max-width: #{map-get($grid-breakpoints, xxl)}) {
56
60
  grid-template-columns: auto auto;
61
+ }
57
62
 
58
- div.read-more a.read-more {
59
- flex-direction: row;
60
- }
63
+ @media (min-width: #{map-get($grid-breakpoints, md)}) and (max-width: #{map-get($grid-breakpoints, lg)}) {
64
+ gap: 1rem;
65
+ }
66
+
67
+ @media (min-width: #{map-get($grid-breakpoints, sm)}) and (max-width: #{map-get($grid-breakpoints, md)}) {
68
+ display: block !important;
61
69
  }
62
70
  }
63
71
 
@@ -111,9 +119,8 @@
111
119
  bottom: 0;
112
120
  padding-top: 0.75rem;
113
121
 
114
- @media (max-width: 585px) {
122
+ @media (max-width: #{map-get($grid-breakpoints, sm)}) {
115
123
  display: flex;
116
- flex-direction: row;
117
124
  align-items: center;
118
125
  color: $analogue-1-a7;
119
126
  font-size: 0.77778rem;
@@ -122,7 +129,7 @@
122
129
  text-transform: uppercase;
123
130
  }
124
131
  }
125
- @media (max-width: 585px) {
132
+ @media (max-width: #{map-get($grid-breakpoints, sm)}) {
126
133
  margin-top: 0;
127
134
  }
128
135
  }
@@ -6,6 +6,11 @@
6
6
  }
7
7
 
8
8
  .template-header {
9
+ h2 {
10
+ @include rem-size(font-size, 32);
11
+ @include rem-size(line-height, 32);
12
+ }
13
+
9
14
  &.with-filters {
10
15
  /* border-bottom: 1px solid $neutral-1-a2;*/
11
16
  margin-bottom: 1em;
@@ -10,6 +10,11 @@
10
10
  max-height: 800px;
11
11
  }
12
12
 
13
+ .feedback-form #vf-more-positive[aria-hidden='true'],
14
+ .feedback-form #vf-more-negative[aria-hidden='true'] {
15
+ visibility: hidden;
16
+ }
17
+
13
18
  .feedback-form {
14
19
  padding: 2rem 0;
15
20
  margin: 0;
@@ -28,6 +33,14 @@
28
33
 
29
34
  .rating-container {
30
35
  padding-bottom: 0;
36
+
37
+ input.volto-feedback-rating:focus + label {
38
+ border: 0;
39
+ box-shadow:
40
+ 0 0 0.2rem $focus-outline-color,
41
+ 0 0 0 0.2rem $focus-outline-color !important;
42
+ outline: none;
43
+ }
31
44
  }
32
45
 
33
46
  .form-check label {
@@ -102,6 +102,11 @@ picture.volto-image.responsive img.full-width {
102
102
  }
103
103
 
104
104
  .genericcard {
105
+ .img-wrapper {
106
+ display: flex;
107
+ // align-items: center;
108
+ }
109
+
105
110
  .card-title {
106
111
  margin: 0 !important;
107
112
  margin-bottom: 0.625rem !important;