io-sanita-theme 2.20.1 → 2.20.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
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.20.3](https://github.com/RedTurtle/io-sanita-theme/compare/2.20.2...2.20.3) (2025-09-10)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* fixed b_size select filter and subsite parent header when header is sticky ([#104](https://github.com/RedTurtle/io-sanita-theme/issues/104)) ([38b19a0](https://github.com/RedTurtle/io-sanita-theme/commit/38b19a0ab7eea01841c749b89a0fb1a35003f791))
|
|
8
|
+
* fixed sort_order selectFilter options ([#106](https://github.com/RedTurtle/io-sanita-theme/issues/106)) ([6307487](https://github.com/RedTurtle/io-sanita-theme/commit/6307487b1ec92ee71a366e702e852a320fd2851d))
|
|
9
|
+
|
|
10
|
+
## [2.20.2](https://github.com/RedTurtle/io-sanita-theme/compare/2.20.1...2.20.2) (2025-09-01)
|
|
11
|
+
|
|
12
|
+
### Maintenance
|
|
13
|
+
|
|
14
|
+
* updated volto-form-block ([77734c3](https://github.com/RedTurtle/io-sanita-theme/commit/77734c37ac7b361d6d42e1fe3b62a9a6ee0e4319))
|
|
15
|
+
|
|
3
16
|
## [2.20.1](https://github.com/RedTurtle/io-sanita-theme/compare/2.20.0...2.20.1) (2025-08-27)
|
|
4
17
|
|
|
5
18
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "io-sanita-theme",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.3",
|
|
4
4
|
"description": "io-sanita-theme: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
"volto-feedback-italia",
|
|
33
33
|
"volto-subfooter",
|
|
34
34
|
"volto-querywidget-with-browser",
|
|
35
|
-
"volto-form-block",
|
|
36
35
|
"volto-form-block-italia",
|
|
37
36
|
"volto-data-grid-widget",
|
|
38
37
|
"volto-venue",
|
|
@@ -102,8 +101,7 @@
|
|
|
102
101
|
"volto-editablefooter": "5.1.9",
|
|
103
102
|
"volto-feedback": "0.6.2",
|
|
104
103
|
"volto-feedback-italia": "1.0.8",
|
|
105
|
-
"volto-form-block": "
|
|
106
|
-
"volto-form-block-italia": "1.0.5",
|
|
104
|
+
"volto-form-block-italia": "1.1.1",
|
|
107
105
|
"volto-gdpr-privacy": "2.2.15",
|
|
108
106
|
"volto-querywidget-with-browser": "0.4.3",
|
|
109
107
|
"volto-rss-block": "3.0.1",
|
|
@@ -5,7 +5,8 @@ import { useDispatch, useSelector } from 'react-redux';
|
|
|
5
5
|
import { searchContent } from '@plone/volto/actions/search/search';
|
|
6
6
|
import { getVocabulary } from '@plone/volto/actions/vocabularies/vocabularies';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
const SelectFilter = ({ options, value, id, onChange, placeholder, sortVocabulary = false, b_size = -1 }) => {
|
|
9
10
|
const dispatch = useDispatch();
|
|
10
11
|
|
|
11
12
|
const state = useSelector((state) => {
|
|
@@ -23,7 +24,6 @@ const SelectFilter = ({ options, value, id, onChange, placeholder }) => {
|
|
|
23
24
|
label: i.title,
|
|
24
25
|
};
|
|
25
26
|
});
|
|
26
|
-
|
|
27
27
|
const vocabularies = state?.vocabularies;
|
|
28
28
|
|
|
29
29
|
useEffect(() => {
|
|
@@ -46,7 +46,7 @@ const SelectFilter = ({ options, value, id, onChange, placeholder }) => {
|
|
|
46
46
|
);
|
|
47
47
|
}
|
|
48
48
|
} else if (options.vocabulary) {
|
|
49
|
-
dispatch(getVocabulary({ vocabNameOrURL: options.vocabulary }));
|
|
49
|
+
dispatch(getVocabulary({ vocabNameOrURL: options.vocabulary, size: b_size }));
|
|
50
50
|
}
|
|
51
51
|
}, []);
|
|
52
52
|
|
|
@@ -54,6 +54,10 @@ const SelectFilter = ({ options, value, id, onChange, placeholder }) => {
|
|
|
54
54
|
? vocabularies?.[options.vocabulary]?.items
|
|
55
55
|
: selectOptions;
|
|
56
56
|
|
|
57
|
+
if (sortVocabulary && select_options?.length > 0) {
|
|
58
|
+
select_options.sort((a, b) => a.label.localeCompare(b.label));
|
|
59
|
+
}
|
|
60
|
+
|
|
57
61
|
return (
|
|
58
62
|
<div className="filter-wrapper select-filter">
|
|
59
63
|
<SelectInput
|