io-sanita-theme 2.11.2 → 2.12.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 +10 -0
- package/package.json +1 -1
- package/src/components/Blocks/Listing/Table/TableTemplate.jsx +14 -12
- package/src/components/Widgets/SearchFilters/SelectFilter.jsx +2 -1
- package/src/components/Widgets/SelectInput/select-styles.css +5 -0
- package/src/components/manage/Widgets/HeaderContactsWidget/HeaderContactsWidget.jsx +1 -1
- package/src/theme/io-sanita/_home.scss +11 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.12.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.11.2...2.12.0) (2025-04-14)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* searchable SelectFilter ([f653c01](https://github.com/RedTurtle/io-sanita-theme/commit/f653c0103823f8ef69507b8f78abd29a2126a933))
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* bug in columns listing table, header widget and hide h1 in homepage ([#80](https://github.com/RedTurtle/io-sanita-theme/issues/80)) ([fb9a671](https://github.com/RedTurtle/io-sanita-theme/commit/fb9a671d62eefdb1f3d6f0412bccd2e885d8be46))
|
|
12
|
+
|
|
3
13
|
## [2.11.2](https://github.com/RedTurtle/io-sanita-theme/compare/2.11.1...2.11.2) (2025-04-08)
|
|
4
14
|
|
|
5
15
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -42,18 +42,20 @@ const TableTemplate = (props) => {
|
|
|
42
42
|
const ct_schemas = useSelector((state) => state.ct_schema?.subrequests);
|
|
43
43
|
|
|
44
44
|
useEffect(() => {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
acc.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
+
}
|
|
57
59
|
}, [columns]);
|
|
58
60
|
|
|
59
61
|
let render_columns =
|
|
@@ -58,13 +58,14 @@ const SelectFilter = ({ options, value, id, onChange, placeholder }) => {
|
|
|
58
58
|
<div className="filter-wrapper select-filter">
|
|
59
59
|
<SelectInput
|
|
60
60
|
id={id}
|
|
61
|
-
value={value}
|
|
61
|
+
value={value ?? ''}
|
|
62
62
|
placeholder={options?.placeholder}
|
|
63
63
|
onChange={(opt) => {
|
|
64
64
|
onChange(id, opt);
|
|
65
65
|
}}
|
|
66
66
|
options={select_options?.filter((opt) => !!opt.value?.toString()) ?? []}
|
|
67
67
|
isClearable={true}
|
|
68
|
+
isSearchable={true}
|
|
68
69
|
/>
|
|
69
70
|
</div>
|
|
70
71
|
);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
.siteroot,
|
|
2
|
-
body.public-ui.contenttype-
|
|
3
|
-
.
|
|
4
|
-
|
|
2
|
+
body.public-ui.contenttype-lrf:not(.section-search) {
|
|
3
|
+
.documentFirstHeading {
|
|
4
|
+
visibility: hidden;
|
|
5
|
+
height: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
}
|
|
5
8
|
#briciole {
|
|
6
9
|
display: none;
|
|
7
10
|
}
|
|
@@ -10,7 +13,11 @@ body.public-ui.contenttype-lr:not(.section-search) {
|
|
|
10
13
|
body.subsite.subsite-root:not(.section-search) {
|
|
11
14
|
&,
|
|
12
15
|
.public-ui {
|
|
13
|
-
.documentFirstHeading
|
|
16
|
+
.documentFirstHeading {
|
|
17
|
+
visibility: hidden;
|
|
18
|
+
height: 0;
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
14
21
|
#briciole {
|
|
15
22
|
display: none;
|
|
16
23
|
}
|