@eeacms/volto-bise-policy 1.2.30 → 1.2.32
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 +18 -0
- package/package.json +1 -1
- package/src/components/Widgets/EUNISObjectListWidget.jsx +19 -36
- package/src/components/Widgets/styles.less +13 -3
- package/src/customizations/@eeacms/volto-datablocks/components/manage/Blocks/SimpleDataTable/Edit.jsx +12 -4
- package/theme/globals/eunismarinehabitat.less +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [1.2.32](https://github.com/eea/volto-bise-policy/compare/1.2.31...1.2.32) - 3 December 2025
|
|
8
|
+
|
|
9
|
+
#### :nail_care: Enhancements
|
|
10
|
+
|
|
11
|
+
- change: small changes to eunis marine habitat content type layout [laszlocseh - [`953054b`](https://github.com/eea/volto-bise-policy/commit/953054bbcfce244592d74872e5d1c49a64d2f446)]
|
|
12
|
+
|
|
13
|
+
#### :house: Internal changes
|
|
14
|
+
|
|
15
|
+
- style: Automated code fix [eea-jenkins - [`4b2ed3e`](https://github.com/eea/volto-bise-policy/commit/4b2ed3ecaec8ed601793f47570d202f9f8ea2fde)]
|
|
16
|
+
|
|
17
|
+
#### :hammer_and_wrench: Others
|
|
18
|
+
|
|
19
|
+
- test: temporarily disable sonarqube compare to master [laszlocseh - [`88ba930`](https://github.com/eea/volto-bise-policy/commit/88ba930b44432356fdbfffe023b005797091be3f)]
|
|
20
|
+
### [1.2.31](https://github.com/eea/volto-bise-policy/compare/1.2.30...1.2.31) - 28 November 2025
|
|
21
|
+
|
|
22
|
+
#### :hammer_and_wrench: Others
|
|
23
|
+
|
|
24
|
+
- test: enable sonarqube test [laszlocseh - [`2d7705f`](https://github.com/eea/volto-bise-policy/commit/2d7705fc3ee3da7071c9755cee1dd2d8453b2616)]
|
|
7
25
|
### [1.2.30](https://github.com/eea/volto-bise-policy/compare/1.2.29...1.2.30) - 7 November 2025
|
|
8
26
|
|
|
9
27
|
#### :rocket: New Features
|
package/package.json
CHANGED
|
@@ -240,7 +240,7 @@ export const EUNISMSFDView = ({ value }) => {
|
|
|
240
240
|
return (
|
|
241
241
|
<div className="eunis-widget-view">
|
|
242
242
|
{items.map((item) => (
|
|
243
|
-
<div key={item['@id']} className="
|
|
243
|
+
<div key={item['@id']} className="eunis-widget-item">
|
|
244
244
|
<div>
|
|
245
245
|
{item.relation}
|
|
246
246
|
{item.value}
|
|
@@ -287,7 +287,7 @@ export const EUNISHDView = ({ value }) => {
|
|
|
287
287
|
return (
|
|
288
288
|
<div className="eunis-widget-view">
|
|
289
289
|
{items.map((item) => (
|
|
290
|
-
<div key={item['@id']} className="
|
|
290
|
+
<div key={item['@id']} className="eunis-widget-item">
|
|
291
291
|
<div>
|
|
292
292
|
{item.link ? (
|
|
293
293
|
<>
|
|
@@ -333,7 +333,7 @@ export const EUNISEuropeanRedListView = ({ value }) => {
|
|
|
333
333
|
return (
|
|
334
334
|
<div className="eunis-widget-view">
|
|
335
335
|
{items.map((item) => (
|
|
336
|
-
<div key={item['@id']} className="
|
|
336
|
+
<div key={item['@id']} className="eunis-widget-item">
|
|
337
337
|
<div>
|
|
338
338
|
{item.link ? (
|
|
339
339
|
<>
|
|
@@ -379,7 +379,7 @@ export const EUNISLinksToFinerEUNISHabitatsView = ({ value }) => {
|
|
|
379
379
|
return (
|
|
380
380
|
<div className="eunis-widget-view">
|
|
381
381
|
{items.map((item) => (
|
|
382
|
-
<div key={item['@id']} className="
|
|
382
|
+
<div key={item['@id']} className="eunis-widget-item">
|
|
383
383
|
<div>
|
|
384
384
|
{item.link ? (
|
|
385
385
|
<>
|
|
@@ -427,7 +427,7 @@ export const EUNISCountryCodeView = ({ value }) => {
|
|
|
427
427
|
</div>
|
|
428
428
|
<div className="eunis-widget-view">
|
|
429
429
|
{country.national.map((item) => (
|
|
430
|
-
<div key={item['@id']} className="
|
|
430
|
+
<div key={item['@id']} className="eunis-widget-item">
|
|
431
431
|
<div>
|
|
432
432
|
{item.relation}
|
|
433
433
|
{item.value}
|
|
@@ -441,6 +441,15 @@ export const EUNISCountryCodeView = ({ value }) => {
|
|
|
441
441
|
|
|
442
442
|
export const EUNISRegionalSeaConventionValueView = EUNISMSFDView;
|
|
443
443
|
|
|
444
|
+
const relationChoices = [
|
|
445
|
+
['=', '= equal to'],
|
|
446
|
+
['#', '# overlaps'],
|
|
447
|
+
['<', '< included in'],
|
|
448
|
+
['>', '> including'],
|
|
449
|
+
['>=', '>= equal to/including'],
|
|
450
|
+
['<=', '<= equal to/included'],
|
|
451
|
+
];
|
|
452
|
+
|
|
444
453
|
const msfdSchema = {
|
|
445
454
|
title: 'MSFD',
|
|
446
455
|
fieldsets: [
|
|
@@ -453,12 +462,7 @@ const msfdSchema = {
|
|
|
453
462
|
properties: {
|
|
454
463
|
relation: {
|
|
455
464
|
title: 'Relation',
|
|
456
|
-
choices:
|
|
457
|
-
['=', '= equal to'],
|
|
458
|
-
['#', '# overlaps'],
|
|
459
|
-
['<', '< included in'],
|
|
460
|
-
['>', '> including'],
|
|
461
|
-
],
|
|
465
|
+
choices: relationChoices,
|
|
462
466
|
required: true,
|
|
463
467
|
},
|
|
464
468
|
value: {
|
|
@@ -481,12 +485,7 @@ const hdSchema = {
|
|
|
481
485
|
properties: {
|
|
482
486
|
relation: {
|
|
483
487
|
title: 'Relation',
|
|
484
|
-
choices:
|
|
485
|
-
['=', '= equal to'],
|
|
486
|
-
['#', '# overlaps'],
|
|
487
|
-
['<', '< included in'],
|
|
488
|
-
['>', '> including'],
|
|
489
|
-
],
|
|
488
|
+
choices: relationChoices,
|
|
490
489
|
required: true,
|
|
491
490
|
},
|
|
492
491
|
value: {
|
|
@@ -513,12 +512,7 @@ const europeanRedlistSchema = {
|
|
|
513
512
|
properties: {
|
|
514
513
|
relation: {
|
|
515
514
|
title: 'Relation',
|
|
516
|
-
choices:
|
|
517
|
-
['=', '= equal to'],
|
|
518
|
-
['#', '# overlaps'],
|
|
519
|
-
['<', '< included in'],
|
|
520
|
-
['>', '> including'],
|
|
521
|
-
],
|
|
515
|
+
choices: relationChoices,
|
|
522
516
|
required: true,
|
|
523
517
|
},
|
|
524
518
|
value: {
|
|
@@ -568,13 +562,7 @@ const regionalSeaConventionValueSchema = {
|
|
|
568
562
|
properties: {
|
|
569
563
|
relation: {
|
|
570
564
|
title: 'Relation',
|
|
571
|
-
choices:
|
|
572
|
-
['=', '= equal to'],
|
|
573
|
-
['#', '# overlaps'],
|
|
574
|
-
['<', '< included in'],
|
|
575
|
-
['>', '> including'],
|
|
576
|
-
],
|
|
577
|
-
|
|
565
|
+
choices: relationChoices,
|
|
578
566
|
required: true,
|
|
579
567
|
},
|
|
580
568
|
value: {
|
|
@@ -597,12 +585,7 @@ const nationalSchema = {
|
|
|
597
585
|
properties: {
|
|
598
586
|
relation: {
|
|
599
587
|
title: 'Relation',
|
|
600
|
-
choices:
|
|
601
|
-
['=', '= equal to'],
|
|
602
|
-
['#', '# overlaps'],
|
|
603
|
-
['<', '< included in'],
|
|
604
|
-
['>', '> including'],
|
|
605
|
-
],
|
|
588
|
+
choices: relationChoices,
|
|
606
589
|
required: true,
|
|
607
590
|
},
|
|
608
591
|
value: {
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
.country-item {
|
|
2
|
-
margin-top: 2rem;
|
|
3
|
-
margin-bottom: 1em;
|
|
2
|
+
// margin-top: 2rem;
|
|
3
|
+
// margin-bottom: 1em;
|
|
4
4
|
font-weight: 700;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.eunis-widget-view {
|
|
8
|
-
margin-bottom:
|
|
8
|
+
margin-bottom: 2em;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.eunis-widget-wrapper {
|
|
12
|
+
label {
|
|
13
|
+
margin-bottom: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.metadata.block {
|
|
17
|
+
margin-bottom: 0;
|
|
18
|
+
}
|
|
9
19
|
}
|
|
@@ -72,10 +72,18 @@ class Edit extends Component {
|
|
|
72
72
|
const choices = Array.from(
|
|
73
73
|
Object.keys(provider_data).sort((a, b) => a - b),
|
|
74
74
|
).map((n) => [n, n]);
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
|
|
76
|
+
const originalExtender = schema.properties.columns.schemaExtender;
|
|
77
|
+
|
|
78
|
+
schema.properties.columns.schemaExtender = (schema, child) => {
|
|
79
|
+
// First, apply the original schemaExtender
|
|
80
|
+
const extendedSchema = originalExtender(schema, child, this.props.intl);
|
|
81
|
+
|
|
82
|
+
// Then apply customizations
|
|
83
|
+
extendedSchema.properties.column.choices = choices;
|
|
84
|
+
extendedSchema.properties.column_link.choices = choices;
|
|
85
|
+
|
|
86
|
+
return extendedSchema;
|
|
79
87
|
};
|
|
80
88
|
|
|
81
89
|
return schema;
|
|
@@ -18,10 +18,15 @@
|
|
|
18
18
|
.contenttype-marine_eunis_habitat .help.slate_wysiwyg p.help {
|
|
19
19
|
white-space: break-spaces;
|
|
20
20
|
}
|
|
21
|
+
|
|
21
22
|
.contenttype-marine_eunis_habitat .bise-objectlist-widget p.help {
|
|
22
23
|
white-space: break-spaces;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
.
|
|
26
|
+
.contenttype-marine_eunis_habitat .eea.banner .gradient {
|
|
27
|
+
background: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.bise-objectlist-widget .inline.field>.ui.grid {
|
|
26
31
|
margin: 0;
|
|
27
32
|
}
|