io-sanita-theme 2.18.0 → 2.18.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.18.2](https://github.com/RedTurtle/io-sanita-theme/compare/2.18.1...2.18.2) (2025-07-03)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* headlines styles in richtext ([#99](https://github.com/RedTurtle/io-sanita-theme/issues/99)) ([3aa230f](https://github.com/RedTurtle/io-sanita-theme/commit/3aa230fc07a60b9cd5b3c82fa2e496ccd0f4edca))
|
|
8
|
+
|
|
9
|
+
### Maintenance
|
|
10
|
+
|
|
11
|
+
* il rilascio su npm viene fattto con release-it da cli ([822d0b5](https://github.com/RedTurtle/io-sanita-theme/commit/822d0b57d9e3ca27cbb8cfe7d0d3299a8dd734c0))
|
|
12
|
+
|
|
13
|
+
## [2.18.1](https://github.com/RedTurtle/io-sanita-theme/compare/2.18.0...2.18.1) (2025-06-27)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* Blocco search / variante table - aggiunte le proprietà dei campi nella colonna nel serializer ([#98](https://github.com/RedTurtle/io-sanita-theme/issues/98)) ([33295f9](https://github.com/RedTurtle/io-sanita-theme/commit/33295f948286126823902bef6b9f47c23b4dca5d))
|
|
18
|
+
|
|
3
19
|
## [2.18.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.17.2...2.18.0) (2025-06-24)
|
|
4
20
|
|
|
5
21
|
### Features
|
package/package.json
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Template a tabella
|
|
3
3
|
*/
|
|
4
|
-
import React
|
|
4
|
+
import React from 'react';
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
-
import { useDispatch, useSelector } from 'react-redux';
|
|
8
7
|
import { useIntl, defineMessages } from 'react-intl';
|
|
9
|
-
import { getCTSchema } from 'io-sanita-theme/actions';
|
|
10
8
|
import { Row, Col, Table } from 'design-react-kit';
|
|
11
9
|
import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
|
|
12
10
|
|
|
13
|
-
import {
|
|
14
|
-
ListingImage,
|
|
15
|
-
ListingContainer,
|
|
16
|
-
} from 'io-sanita-theme/components/Blocks';
|
|
11
|
+
import { ListingContainer } from 'io-sanita-theme/components/Blocks';
|
|
17
12
|
import { LinkMore } from 'io-sanita-theme/components';
|
|
18
13
|
import { getWidget } from '@plone/volto/helpers/Widget/utils';
|
|
19
14
|
|
|
@@ -37,26 +32,7 @@ const TableTemplate = (props) => {
|
|
|
37
32
|
} = props;
|
|
38
33
|
|
|
39
34
|
const intl = useIntl();
|
|
40
|
-
const dispatch = useDispatch();
|
|
41
35
|
const { views } = config.widgets;
|
|
42
|
-
const ct_schemas = useSelector((state) => state.ct_schema?.subrequests);
|
|
43
|
-
|
|
44
|
-
useEffect(() => {
|
|
45
|
-
if (columns?.length > 0) {
|
|
46
|
-
const cts = columns.reduce((acc, c) => {
|
|
47
|
-
if (acc.indexOf(c.ct) < 0) {
|
|
48
|
-
acc.push(c.ct);
|
|
49
|
-
}
|
|
50
|
-
return acc;
|
|
51
|
-
}, []);
|
|
52
|
-
|
|
53
|
-
cts.forEach((c) => {
|
|
54
|
-
if (!ct_schemas[c]) {
|
|
55
|
-
dispatch(getCTSchema(c));
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}, [columns]);
|
|
60
36
|
|
|
61
37
|
let render_columns =
|
|
62
38
|
(columns ?? []).filter((c) => c.field === 'title').length > 0
|
|
@@ -73,8 +49,7 @@ const TableTemplate = (props) => {
|
|
|
73
49
|
<thead className="table-light">
|
|
74
50
|
<tr>
|
|
75
51
|
{render_columns.map((c, index) => {
|
|
76
|
-
const field_properties =
|
|
77
|
-
ct_schemas?.[c.ct]?.result?.properties?.[c.field] ?? {};
|
|
52
|
+
const field_properties = c.field_properties ?? {};
|
|
78
53
|
|
|
79
54
|
return (
|
|
80
55
|
<th
|
|
@@ -96,8 +71,7 @@ const TableTemplate = (props) => {
|
|
|
96
71
|
{items.map((item, index) => (
|
|
97
72
|
<tr key={index}>
|
|
98
73
|
{render_columns.map((c, index) => {
|
|
99
|
-
const field_properties =
|
|
100
|
-
ct_schemas?.[c.ct]?.result?.properties?.[c.field];
|
|
74
|
+
const field_properties = c.field_properties ?? {};
|
|
101
75
|
let render_value = JSON.stringify(item[c.field]);
|
|
102
76
|
|
|
103
77
|
if (field_properties) {
|
|
@@ -21,6 +21,50 @@
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
#main-content-section.it-page-sections-container .richtext-blocks {
|
|
25
|
+
h1,
|
|
26
|
+
h2,
|
|
27
|
+
h3,
|
|
28
|
+
h4,
|
|
29
|
+
h5,
|
|
30
|
+
h6 {
|
|
31
|
+
font-family: var(--bs-font-sans-serif);
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
}
|
|
34
|
+
h2 {
|
|
35
|
+
font-size: 1.5rem;
|
|
36
|
+
line-height: 2rem;
|
|
37
|
+
@include media-breakpoint-up(sm) {
|
|
38
|
+
font-size: 1.75rem;
|
|
39
|
+
line-height: 2rem;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
h3 {
|
|
43
|
+
font-size: 1.25rem;
|
|
44
|
+
line-height: 1.5rem;
|
|
45
|
+
@include media-breakpoint-up(sm) {
|
|
46
|
+
font-size: 1.5rem;
|
|
47
|
+
line-height: 2rem;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
h4 {
|
|
52
|
+
font-size: 1rem;
|
|
53
|
+
line-height: 1.5rem;
|
|
54
|
+
@include media-breakpoint-up(sm) {
|
|
55
|
+
font-size: 1.125rem;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
h5,
|
|
59
|
+
h6 {
|
|
60
|
+
font-size: 1rem;
|
|
61
|
+
line-height: 1.5rem;
|
|
62
|
+
@include media-breakpoint-up(sm) {
|
|
63
|
+
font-size: 1.125rem;
|
|
64
|
+
}
|
|
65
|
+
font-weight: unset;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
24
68
|
|
|
25
69
|
// .is-block-description {
|
|
26
70
|
// &,
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
name: Release latest version on npm
|
|
2
|
-
on:
|
|
3
|
-
release:
|
|
4
|
-
types: [released]
|
|
5
|
-
|
|
6
|
-
jobs:
|
|
7
|
-
release_to_npm:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
permissions:
|
|
10
|
-
contents: read
|
|
11
|
-
id-token: write
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v4
|
|
14
|
-
|
|
15
|
-
- uses: actions/setup-node@v4
|
|
16
|
-
with:
|
|
17
|
-
node-version: '18.x'
|
|
18
|
-
registry-url: 'https://registry.npmjs.org'
|
|
19
|
-
|
|
20
|
-
- run: npm install -g npm
|
|
21
|
-
|
|
22
|
-
- run: yarn
|
|
23
|
-
|
|
24
|
-
- name: Release to npm
|
|
25
|
-
run: npm publish --provenance --access public
|
|
26
|
-
env:
|
|
27
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|