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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "io-sanita-theme",
3
- "version": "2.11.2",
3
+ "version": "2.12.0",
4
4
  "description": "io-sanita-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -42,18 +42,20 @@ const TableTemplate = (props) => {
42
42
  const ct_schemas = useSelector((state) => state.ct_schema?.subrequests);
43
43
 
44
44
  useEffect(() => {
45
- const cts = columns.reduce((acc, c) => {
46
- if (acc.indexOf(c.ct) < 0) {
47
- acc.push(c.ct);
48
- }
49
- return acc;
50
- }, []);
51
-
52
- cts.forEach((c) => {
53
- if (!ct_schemas[c]) {
54
- dispatch(getCTSchema(c));
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
  );
@@ -47,3 +47,8 @@
47
47
  height: 1rem;
48
48
  width: auto;
49
49
  }
50
+
51
+ .react-select__control .react-select__input input:focus:not(.focus--mouse) {
52
+ outline: none !important;
53
+ box-shadow: none !important;
54
+ }
@@ -18,7 +18,7 @@ const HeaderContactsWidget = (props) => {
18
18
  <ObjectListWidget
19
19
  schema={schema}
20
20
  block={'contatti_testata'}
21
- value={JSON.parse(value) ?? []}
21
+ value={value ? JSON.parse(value) : []}
22
22
  onChange={onChangeField}
23
23
  id={id}
24
24
  title="Contatti in testata"
@@ -1,7 +1,10 @@
1
1
  .siteroot,
2
- body.public-ui.contenttype-lr:not(.section-search) {
3
- .block-editor-title,
4
- .documentFirstHeading,
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
  }