@eeacms/volto-n2k 1.0.28 → 1.0.29
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 +5 -1
- package/package.json +1 -1
- package/src/components/manage/Blocks/ContactBlock/View.jsx +1 -1
- package/src/components/manage/Blocks/ContactBlock/styles.less +1 -1
- package/src/components/manage/Blocks/LabeledList/View.jsx +18 -15
- package/src/components/manage/Blocks/LabeledList/style.less +2 -0
- package/src/components/manage/Blocks/List/View.jsx +32 -25
- package/src/components/manage/Blocks/List/style.less +2 -0
- package/src/components/manage/Blocks/StatusList/View.jsx +27 -22
- package/src/components/manage/Blocks/StatusList/style.less +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,12 +4,16 @@ 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.0.29](https://github.com/eea/volto-n2k/compare/1.0.28...1.0.29) - 8 June 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- update [Miu Razvan - [`6f45f05`](https://github.com/eea/volto-n2k/commit/6f45f051ad9b8b19ddbe67d6c730bd5850974bd1)]
|
|
7
12
|
### [1.0.28](https://github.com/eea/volto-n2k/compare/1.0.27...1.0.28) - 7 June 2023
|
|
8
13
|
|
|
9
14
|
#### :hammer_and_wrench: Others
|
|
10
15
|
|
|
11
16
|
- prettier fix [Miu Razvan - [`3bf6510`](https://github.com/eea/volto-n2k/commit/3bf651046ff9f7cfb7e26fe97a2ac61f4ce00a48)]
|
|
12
|
-
- add more custom blocks [Miu Razvan - [`a94fe36`](https://github.com/eea/volto-n2k/commit/a94fe366dbd4fe5c679489e85950437dbed881e5)]
|
|
13
17
|
### [1.0.27](https://github.com/eea/volto-n2k/compare/1.0.26...1.0.27) - 6 June 2023
|
|
14
18
|
|
|
15
19
|
### [1.0.26](https://github.com/eea/volto-n2k/compare/1.0.25...1.0.26) - 29 May 2023
|
package/package.json
CHANGED
|
@@ -10,21 +10,24 @@ const View = (props) => {
|
|
|
10
10
|
return (
|
|
11
11
|
<div className="connected-labeled-list">
|
|
12
12
|
{props.mode === 'edit' ? <p>Connected labeled list</p> : ''}
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
{!!columns && (
|
|
14
|
+
<ul className={data.theme || 'default'}>
|
|
15
|
+
{Array(Math.max(0, columns))
|
|
16
|
+
.fill()
|
|
17
|
+
.map((_, column) => {
|
|
18
|
+
return (
|
|
19
|
+
<li key={`connected-list-${column}`}>
|
|
20
|
+
<span>
|
|
21
|
+
{(data.values || [])
|
|
22
|
+
.map((value) => provider_data[value.field]?.[column])
|
|
23
|
+
.join(data.separator || '')}
|
|
24
|
+
</span>
|
|
25
|
+
</li>
|
|
26
|
+
);
|
|
27
|
+
})}
|
|
28
|
+
</ul>
|
|
29
|
+
)}
|
|
30
|
+
{!columns && <p className="no-results">-</p>}
|
|
28
31
|
</div>
|
|
29
32
|
);
|
|
30
33
|
};
|
|
@@ -20,33 +20,40 @@ const View = (props) => {
|
|
|
20
20
|
return (
|
|
21
21
|
<div className="connected-list">
|
|
22
22
|
{props.mode === 'edit' ? <p>Connected list</p> : ''}
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<
|
|
30
|
-
{(data.labeled ?? true) && data.label ? (
|
|
31
|
-
<p className="label">{provider_data[data.label][column]}</p>
|
|
32
|
-
) : (
|
|
33
|
-
''
|
|
34
|
-
)}
|
|
35
|
-
{data.value ? (
|
|
36
|
-
<p className="value">{provider_data[data.value][column]}</p>
|
|
37
|
-
) : (
|
|
38
|
-
''
|
|
39
|
-
)}
|
|
40
|
-
</li>
|
|
41
|
-
{column < columns - 1 && data.theme === 'theme_1' && (
|
|
23
|
+
{!!columns && (
|
|
24
|
+
<ul className={data.theme || 'default'}>
|
|
25
|
+
{Array(Math.max(0, columns))
|
|
26
|
+
.fill()
|
|
27
|
+
.map((_, column) => {
|
|
28
|
+
return (
|
|
29
|
+
<React.Fragment key={`connected-list-${column}`}>
|
|
42
30
|
<li>
|
|
43
|
-
|
|
31
|
+
{(data.labeled ?? true) && data.label ? (
|
|
32
|
+
<p className="label">
|
|
33
|
+
{provider_data[data.label][column]}
|
|
34
|
+
</p>
|
|
35
|
+
) : (
|
|
36
|
+
''
|
|
37
|
+
)}
|
|
38
|
+
{data.value ? (
|
|
39
|
+
<p className="value">
|
|
40
|
+
{provider_data[data.value][column]}
|
|
41
|
+
</p>
|
|
42
|
+
) : (
|
|
43
|
+
''
|
|
44
|
+
)}
|
|
44
45
|
</li>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
{column < columns - 1 && data.theme === 'theme_1' && (
|
|
47
|
+
<li>
|
|
48
|
+
<Icon name={arrowSVG} size="64px" />
|
|
49
|
+
</li>
|
|
50
|
+
)}
|
|
51
|
+
</React.Fragment>
|
|
52
|
+
);
|
|
53
|
+
})}
|
|
54
|
+
</ul>
|
|
55
|
+
)}
|
|
56
|
+
{!columns && <p className="no-results">-</p>}
|
|
50
57
|
</div>
|
|
51
58
|
);
|
|
52
59
|
};
|
|
@@ -33,28 +33,33 @@ const View = (props) => {
|
|
|
33
33
|
return (
|
|
34
34
|
<div className="connected-status-list">
|
|
35
35
|
{props.mode === 'edit' ? <p>Connected status list</p> : ''}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
{provider_data[data.value]
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
36
|
+
{!!columns && (
|
|
37
|
+
<ul>
|
|
38
|
+
{Array(Math.max(0, columns))
|
|
39
|
+
.fill()
|
|
40
|
+
.map((_, column) => {
|
|
41
|
+
const status =
|
|
42
|
+
status_labels[
|
|
43
|
+
provider_data[data.status]?.[column]?.toLowerCase()
|
|
44
|
+
] || status_labels.unknown;
|
|
45
|
+
return (
|
|
46
|
+
<li
|
|
47
|
+
key={`connected-list-${column}`}
|
|
48
|
+
className={cx(`status-${status.value}`)}
|
|
49
|
+
>
|
|
50
|
+
{provider_data[data.value] && (
|
|
51
|
+
<span className="value">
|
|
52
|
+
{provider_data[data.value][column]}
|
|
53
|
+
</span>
|
|
54
|
+
)}
|
|
55
|
+
<Icon name={arrowSVG} size="16px" />
|
|
56
|
+
<span className="status">{status.title}</span>
|
|
57
|
+
</li>
|
|
58
|
+
);
|
|
59
|
+
})}
|
|
60
|
+
</ul>
|
|
61
|
+
)}
|
|
62
|
+
{!columns && <p className="no-results">-</p>}
|
|
58
63
|
</div>
|
|
59
64
|
);
|
|
60
65
|
};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
@import (multiple, reference, optional) '../../theme.config';
|
|
2
|
+
|
|
3
|
+
@type: extra;
|
|
4
|
+
@element: custom;
|
|
5
|
+
|
|
1
6
|
.connected-status-list {
|
|
7
|
+
margin-bottom: 1rem;
|
|
8
|
+
|
|
2
9
|
ul {
|
|
3
10
|
padding-left: 0;
|
|
4
11
|
margin-left: -0.5rem;
|
|
@@ -40,6 +47,7 @@
|
|
|
40
47
|
|
|
41
48
|
&.status-bad {
|
|
42
49
|
background-color: #dd552b;
|
|
50
|
+
color: #fff;
|
|
43
51
|
|
|
44
52
|
.icon {
|
|
45
53
|
rotate: 45deg;
|
|
@@ -47,7 +55,7 @@
|
|
|
47
55
|
}
|
|
48
56
|
|
|
49
57
|
&.status-unkown {
|
|
50
|
-
background-color:
|
|
58
|
+
background-color: @grey-2;
|
|
51
59
|
}
|
|
52
60
|
}
|
|
53
61
|
}
|