design-comuni-plone-theme 11.3.3 → 11.4.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.
Binary file
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
 
2
2
 
3
+ ## [11.4.0](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.3.4...v11.4.0) (2024-02-06)
4
+
5
+
6
+ ### Features
7
+
8
+ * added csv icon for files ([#511](https://github.com/redturtle/design-comuni-plone-theme/issues/511)) ([1c2e689](https://github.com/redturtle/design-comuni-plone-theme/commit/1c2e6893de549bb1358db84b8023470901c597ab))
9
+ * enable dynamic footer generation from control panel ([#509](https://github.com/redturtle/design-comuni-plone-theme/issues/509)) ([6d3ed52](https://github.com/redturtle/design-comuni-plone-theme/commit/6d3ed5289ae441333ee65843d51a507490cc992c))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * removed extra top spacing from image block in view ([#510](https://github.com/redturtle/design-comuni-plone-theme/issues/510)) ([f6fa6bd](https://github.com/redturtle/design-comuni-plone-theme/commit/f6fa6bd76d007ecf9a9bb484e6d130fac6441139))
15
+ * simple card title changed from h4 to h3 ([#514](https://github.com/redturtle/design-comuni-plone-theme/issues/514)) ([c03f4cd](https://github.com/redturtle/design-comuni-plone-theme/commit/c03f4cd60a0d3b5753c8ce563ea73c26db60f7f0))
16
+
17
+
18
+ ### Maintenance
19
+
20
+ * preparing release v11.4.0 ([642e22e](https://github.com/redturtle/design-comuni-plone-theme/commit/642e22e81ec24ebf38629a9badd32b98b4706294))
21
+
22
+ ## [11.3.4](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.3.3...v11.3.4) (2024-01-31)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * focus when editing image blocks ([#500](https://github.com/redturtle/design-comuni-plone-theme/issues/500)) ([bdb53b9](https://github.com/redturtle/design-comuni-plone-theme/commit/bdb53b95b89a9f42a88b942434fce8d01cf45af0))
28
+ * set height for DocumentBody images ([#507](https://github.com/redturtle/design-comuni-plone-theme/issues/507)) ([80479ce](https://github.com/redturtle/design-comuni-plone-theme/commit/80479ce919da07bf6147fe2bd3038c875a5ff63f))
29
+ * updated volto-querywidget-with-browser ([#508](https://github.com/redturtle/design-comuni-plone-theme/issues/508)) ([a4285a9](https://github.com/redturtle/design-comuni-plone-theme/commit/a4285a9aef4cb832a17af1c906efb79caf129425))
30
+
31
+
32
+ ### Documentation
33
+
34
+ * updated publiccode ([c427aa4](https://github.com/redturtle/design-comuni-plone-theme/commit/c427aa42fed453e60cdd422b4d7f7ac1358834cf))
35
+
3
36
  ## [11.3.3](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.3.2...v11.3.3) (2024-01-30)
4
37
 
5
38
 
package/RELEASE.md CHANGED
@@ -41,8 +41,30 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 11.4.0 (06/02/2024)
45
+
46
+ ### Novità
47
+
48
+ - Aggiunta l'icona per il formato di file CSV
49
+ - Nel pannello di controllo di 'Design plone' è stata aggiunta la possibilità di mostrare o meno il footer autogenerato.
50
+
51
+ ### Fix
52
+
53
+ - Sistemata la gerarchia per i titoli dentro al blocco semplice
54
+
55
+ ## Versione 11.3.4 (31/01/2024)
56
+
57
+ ### Migliorie
58
+
59
+ - Migliorata l'esperienza redattore per il blocco Immagine con allineamenti laterali rispetto al corpo del testo nell'editor a blocchi
60
+ - Migliorata la resa e la responsività di alcune immagini nel corpo della pagina per diversi content type
61
+
44
62
  ## Versione 11.3.3 (30/01/2024)
45
63
 
64
+ ### Migliorie
65
+
66
+ - Migliorato il focus sulle immagini in edit del blocco Immagine quando queste sono allineate a sinistra o a destra.
67
+
46
68
  ### Fix
47
69
 
48
70
  - Sistemato il layout del blocco elenco per i Bandi
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": "11.3.3",
5
+ "version": "11.4.0",
6
6
  "main": "src/index.js",
7
7
  "keywords": [
8
8
  "volto-addon",
@@ -150,7 +150,7 @@
150
150
  "volto-gdpr-privacy": "2.1.1",
151
151
  "volto-google-analytics": "2.0.0",
152
152
  "volto-multilingual-widget": "3.0.0",
153
- "volto-querywidget-with-browser": "0.4.0",
153
+ "volto-querywidget-with-browser": "0.4.1",
154
154
  "volto-rss-block": "3.0.0",
155
155
  "volto-secondarymenu": "4.0.0",
156
156
  "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: '2024-01-30'
230
+ releaseDate: '2024-02-06'
231
231
  softwareType: standalone/web
232
- softwareVersion: 11.3.3
232
+ softwareVersion: 11.4.0
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -57,7 +57,7 @@ const Block = ({
57
57
  <div className={cx('simple-text-card', { 'cms-ui': inEditMode })}>
58
58
  {inEditMode ? (
59
59
  <>
60
- <CardTitle tag="h4">
60
+ <CardTitle tag="h3" className="h4">
61
61
  <div
62
62
  onClick={() => {
63
63
  setSelectedField('title');
@@ -122,7 +122,7 @@ const Block = ({
122
122
  </>
123
123
  ) : (
124
124
  <>
125
- <CardTitle tag="h4" id={block.id + '-title'}>
125
+ <CardTitle tag="h3" id={block.id + '-title'} className="h4">
126
126
  {title}
127
127
  </CardTitle>
128
128
  <hr />
@@ -23,6 +23,9 @@ const messages = defineMessages({
23
23
  const FooterNavigation = () => {
24
24
  const intl = useIntl();
25
25
  const items = useSelector((state) => state.navigation.items, isEqual);
26
+ const show_navigation = useSelector(
27
+ (state) => state.navigation.show_in_footer,
28
+ );
26
29
 
27
30
  // DEPRECATED: isFooterCollapsed to be removed in version 12
28
31
  if (config.settings.isFooterCollapsed) {
@@ -32,7 +35,7 @@ const FooterNavigation = () => {
32
35
  );
33
36
  }
34
37
 
35
- return (
38
+ return show_navigation ? (
36
39
  <>
37
40
  {items && (
38
41
  <Row tag="div">
@@ -87,6 +90,8 @@ const FooterNavigation = () => {
87
90
  </Row>
88
91
  )}
89
92
  </>
93
+ ) : (
94
+ <></>
90
95
  );
91
96
  };
92
97
 
@@ -31,6 +31,7 @@ const WideImage = ({
31
31
  critical
32
32
  loading="eager"
33
33
  sizes={sizes}
34
+ responsive={!fullWidth}
34
35
  />
35
36
  )}
36
37
  {caption && (
@@ -23,6 +23,7 @@ import {
23
23
  const initialState = {
24
24
  error: null,
25
25
  items: [],
26
+ show_in_footer: false,
26
27
  loaded: false,
27
28
  loading: false,
28
29
  };
@@ -69,6 +70,8 @@ export default function navigation(state = initialState, action = {}) {
69
70
  return {
70
71
  ...state,
71
72
  error: null,
73
+ show_in_footer:
74
+ action.result['@components'].navigation.show_in_footer,
72
75
  items: getRecursiveItems(
73
76
  action.result['@components'].navigation.items,
74
77
  ),
@@ -86,6 +89,8 @@ export default function navigation(state = initialState, action = {}) {
86
89
  return {
87
90
  ...state,
88
91
  error: null,
92
+ show_in_footer:
93
+ action.result['@components'].navigation.show_in_footer,
89
94
  items: getRecursiveItems(action.result.items),
90
95
  loaded: true,
91
96
  loading: false,
@@ -97,6 +102,7 @@ export default function navigation(state = initialState, action = {}) {
97
102
  ...state,
98
103
  error: action.error,
99
104
  items: [],
105
+ show_in_footer: false,
100
106
  loaded: false,
101
107
  loading: false,
102
108
  };
@@ -3,6 +3,7 @@ import faFileXsd from 'design-comuni-plone-theme/icons/file-xsd.svg';
3
3
  import faFileOdp from 'design-comuni-plone-theme/icons/file-odp.svg';
4
4
  import faFileOds from 'design-comuni-plone-theme/icons/file-ods.svg';
5
5
  import faFileOdt from 'design-comuni-plone-theme/icons/file-odt.svg';
6
+ import faFileCSV from 'design-comuni-plone-theme/icons/file-csv.svg';
6
7
 
7
8
  export const FILE_FORMATS = {
8
9
  'text/rtf': { icon: { lib: 'far', name: 'file-alt' }, format_name: 'rtf' },
@@ -87,6 +88,10 @@ export const FILE_FORMATS = {
87
88
  icon: { lib: '', name: faFileXml, svg_format: true },
88
89
  format_name: 'XML',
89
90
  },
91
+ 'text/csv': {
92
+ icon: { lib: '', name: faFileCSV, svg_format: true },
93
+ format_name: 'CSV',
94
+ },
90
95
  'application/xml': {
91
96
  icon: { lib: '', name: faFileXml, svg_format: true },
92
97
  format_name: 'XML',
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="385" height="513" viewBox="0 0 385 513"><defs><clipPath id="a"><path d="M0 0h385v513H0z"/></clipPath></defs><g clip-path="url(#a)"><path d="M369.9 98 286 14.1A48 48 0 0 0 252.1 0H48A48.16 48.16 0 0 0 0 48.1v416a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V132a48.23 48.23 0 0 0-14.1-34Zm-37.8 30.1H256V52ZM48 464.1v-416h160v104a23.94 23.94 0 0 0 24 24h104v288Z"/><g data-name="Raggruppa 1"><path data-name="Tracciato 10" d="M114.943 336.804c-7.632 0-12.04 4.286-12.04 13.384v35.463c0 9.1 4.408 13.384 12.131 13.384 10.706 0 11.373-8.168 11.777-13.384.4-4.953 4.953-6.288 10.3-6.288 7.228 0 10.574 1.87 10.574 9.9 0 17.8-14.456 27.972-33.582 27.972-17.539 0-32.117-8.562-32.117-31.581v-35.465c0-23.018 14.577-31.581 32.117-31.581 19.126 0 33.582 9.634 33.582 26.627 0 8.037-3.346 9.907-10.433 9.907-5.621 0-10.17-1.476-10.443-6.288-.12-3.477-.494-12.05-11.866-12.05Z"/><path data-name="Tracciato 11" d="M198.464 390.241c0-16.175-42.458-13.384-42.458-44.692 0-20.077 17.529-27.7 34.25-27.7 7.076 0 26.627 1.334 26.627 11.777 0 3.609-2.406 10.968-8.289 10.968-4.822 0-7.359-5.055-18.338-5.055-9.5 0-13.384 3.882-13.384 8.027 0 13.384 42.458 10.847 42.458 44.561 0 19.268-14.052 29.711-33.461 29.711-17.529 0-32.248-8.562-32.248-17.4 0-4.549 4.044-11.241 9.1-11.241 6.3 0 10.311 9.907 22.756 9.907 6.143-.068 12.987-2.484 12.987-8.863Z"/><path data-name="Tracciato 12" d="M225.536 329.253a6.5 6.5 0 0 1-.273-1.476c0-4.943 7.632-8.562 13.384-8.562 3.346 0 6.065 1.072 6.824 3.882l18.732 68.651 18.6-68.631c.8-2.81 3.478-3.882 6.824-3.882 5.752 0 13.384 3.619 13.384 8.562a6.5 6.5 0 0 1-.273 1.476l-24.929 81.611c-1.466 4.681-7.491 6.955-13.647 6.955s-12.131-2.275-13.647-6.955Z"/></g></g></svg>
@@ -13,12 +13,107 @@
13
13
  }
14
14
  }
15
15
 
16
- &.left,
17
- &.right {
16
+ .external-link {
17
+ display: none;
18
+ }
19
+
20
+ &.align.left,
21
+ &.align.right {
18
22
  margin-bottom: 0;
23
+
24
+ img {
25
+ margin-bottom: 0.5rem;
26
+ }
19
27
  }
28
+ }
20
29
 
21
- .external-link {
22
- display: none;
30
+ .cms-ui {
31
+ .block.image:has(.align.left),
32
+ .block.image:has(.align.right) {
33
+ img.small,
34
+ img.medium,
35
+ img.large {
36
+ max-width: 100%;
37
+ }
38
+ }
39
+
40
+ .block-editor-image {
41
+ &.right,
42
+ &.left {
43
+ .ui.drag.block.image {
44
+ z-index: 99;
45
+ max-width: 50%;
46
+ margin-top: 0.2rem;
47
+ margin-bottom: 0.3rem;
48
+
49
+ .block.image,
50
+ .block.image img {
51
+ margin-bottom: 0;
52
+ }
53
+ }
54
+
55
+ &:has(img.small) {
56
+ .ui.drag.block.image {
57
+ max-width: 15%;
58
+ }
59
+ }
60
+
61
+ &:has(img.medium) {
62
+ .ui.drag.block.image {
63
+ max-width: 25%;
64
+ }
65
+ }
66
+
67
+ &:has(img.large) {
68
+ .ui.drag.block.image {
69
+ max-width: 50%;
70
+ }
71
+ }
72
+ }
73
+
74
+ /* Image right */
75
+ &.right {
76
+ .block.image {
77
+ float: right;
78
+ }
79
+
80
+ .ui.drag.block.image {
81
+ margin-left: 1rem;
82
+ }
83
+
84
+ .drag.handle.wrapper {
85
+ left: 50%;
86
+ }
87
+
88
+ /* Drag and drop icon position */
89
+ &:has(img.large) {
90
+ .drag.handle.wrapper {
91
+ left: 50%;
92
+ }
93
+ }
94
+
95
+ &:has(img.medium) {
96
+ .drag.handle.wrapper {
97
+ left: 75%;
98
+ }
99
+ }
100
+
101
+ &:has(img.small) {
102
+ .drag.handle.wrapper {
103
+ left: 85%;
104
+ }
105
+ }
106
+ }
107
+
108
+ /* Image left */
109
+ &.left {
110
+ .block.image {
111
+ float: left;
112
+ }
113
+
114
+ .ui.drag.block.image {
115
+ margin-right: 1.7rem;
116
+ }
117
+ }
23
118
  }
24
119
  }
@@ -269,12 +269,6 @@ div.sticky-wrapper {
269
269
  }
270
270
  }
271
271
 
272
- .wide-image:not(.row-full-width) {
273
- img {
274
- max-width: 100%;
275
- }
276
- }
277
-
278
272
  .content-image {
279
273
  figure {
280
274
  width: 100%;