@orchestrator-ui/orchestrator-ui-components 5.5.1 → 5.5.2
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/.turbo/turbo-build.log +6 -6
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +5 -5
- package/CHANGELOG.md +8 -0
- package/dist/index.d.ts +7 -5
- package/dist/index.js +101 -139
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/WfoForms/formFields/SummaryField.tsx +2 -2
- package/src/components/WfoForms/formFields/SummaryFieldStyling.ts +1 -1
- package/src/components/WfoForms/formFields/index.ts +1 -0
- package/src/components/WfoPydanticForm/fields/WfoArrayField/WfoArrayField.tsx +2 -2
- package/src/components/WfoPydanticForm/fields/WfoArrayField/styles.ts +2 -0
- package/src/components/WfoPydanticForm/fields/WfoSummary.tsx +9 -50
- package/src/configuration/version.ts +1 -1
- package/src/messages/en-GB.json +2 -2
- package/src/messages/nl-NL.json +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orchestrator-ui/orchestrator-ui-components",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Library of UI Components used to display the workflow orchestrator frontend",
|
|
6
6
|
"author": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"next-query-params": "^5.0.0",
|
|
49
49
|
"object-hash": "^3.0.0",
|
|
50
50
|
"prism-themes": "^1.9.0",
|
|
51
|
-
"pydantic-forms": "^0.7.
|
|
51
|
+
"pydantic-forms": "^0.7.4",
|
|
52
52
|
"react-diff-view": "^3.2.0",
|
|
53
53
|
"react-draggable": "^4.4.6",
|
|
54
54
|
"react-redux": "^9.1.2",
|
|
@@ -18,7 +18,7 @@ import { FieldProps, connectField, filterDOMProps } from 'uniforms';
|
|
|
18
18
|
|
|
19
19
|
import { EuiFlexItem, EuiFormRow, EuiText } from '@elastic/eui';
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { summaryFieldStyles } from '@/components/WfoForms/formFields/SummaryFieldStyling';
|
|
22
22
|
import { getCommonFormFieldStyles } from '@/components/WfoForms/formFields/commonStyles';
|
|
23
23
|
import { useWithOrchestratorTheme } from '@/hooks';
|
|
24
24
|
|
|
@@ -38,7 +38,7 @@ function Summary({
|
|
|
38
38
|
data,
|
|
39
39
|
...props
|
|
40
40
|
}: SummaryFieldProps) {
|
|
41
|
-
const { summaryFieldStyle } = useWithOrchestratorTheme(
|
|
41
|
+
const { summaryFieldStyle } = useWithOrchestratorTheme(summaryFieldStyles);
|
|
42
42
|
const { formRowStyle } = useWithOrchestratorTheme(getCommonFormFieldStyles);
|
|
43
43
|
|
|
44
44
|
if (!data) {
|
|
@@ -66,9 +66,9 @@ export const PlusButton = ({
|
|
|
66
66
|
export const WfoArrayField = ({
|
|
67
67
|
pydanticFormField,
|
|
68
68
|
}: PydanticFormElementProps) => {
|
|
69
|
-
const { config,
|
|
69
|
+
const { config, reactHookForm } = usePydanticFormContext();
|
|
70
70
|
const disabled = pydanticFormField.attributes?.disabled || false;
|
|
71
|
-
const { control } =
|
|
71
|
+
const { control } = reactHookForm;
|
|
72
72
|
const { id: arrayName, arrayItem } = pydanticFormField;
|
|
73
73
|
const { minItems, maxItems } = pydanticFormField.validations;
|
|
74
74
|
const { container, fieldWrapper } = getWfoArrayFieldStyles();
|
|
@@ -2,6 +2,7 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
|
|
3
3
|
export const getWfoArrayFieldStyles = () => {
|
|
4
4
|
const container = css({
|
|
5
|
+
border: 'thin solid #eee',
|
|
5
6
|
padding: '1rem',
|
|
6
7
|
display: 'flex',
|
|
7
8
|
flexDirection: 'column',
|
|
@@ -17,6 +18,7 @@ export const getWfoArrayFieldStyles = () => {
|
|
|
17
18
|
const minusButton = css({
|
|
18
19
|
width: '40px',
|
|
19
20
|
cursor: 'pointer',
|
|
21
|
+
marginBottom: '12px',
|
|
20
22
|
});
|
|
21
23
|
|
|
22
24
|
const plusButtonWrapper = css({
|
|
@@ -1,59 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import { capitalize } from 'lodash';
|
|
3
4
|
import type { PydanticFormElement } from 'pydantic-forms';
|
|
4
5
|
|
|
5
6
|
import { EuiFlexItem, EuiFormRow, EuiText } from '@elastic/eui';
|
|
6
|
-
import { tint } from '@elastic/eui';
|
|
7
|
-
import { css } from '@emotion/react';
|
|
8
7
|
|
|
9
|
-
import { getCommonFormFieldStyles } from '@/components';
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
export const getStyles = ({ theme }: WfoTheme) => {
|
|
13
|
-
const toShadeColor = (color: string) => tint(color, 0.9);
|
|
14
|
-
|
|
15
|
-
const summaryFieldStyle = css({
|
|
16
|
-
'div.emailMessage': {
|
|
17
|
-
td: {
|
|
18
|
-
color: theme.colors.text,
|
|
19
|
-
},
|
|
20
|
-
p: {
|
|
21
|
-
color: theme.colors.text,
|
|
22
|
-
},
|
|
23
|
-
html: {
|
|
24
|
-
marginLeft: '-10px',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
'section.table-summary': {
|
|
28
|
-
marginTop: '20px',
|
|
29
|
-
width: '100%',
|
|
30
|
-
td: {
|
|
31
|
-
padding: '10px',
|
|
32
|
-
verticalAlign: 'top',
|
|
33
|
-
},
|
|
34
|
-
'td:not(:first-child):not(:last-child)': {
|
|
35
|
-
borderRight: `1px solid ${theme.colors.lightestShade}`,
|
|
36
|
-
},
|
|
37
|
-
'.label': {
|
|
38
|
-
fontWeight: 'bold',
|
|
39
|
-
color: theme.colors.lightestShade,
|
|
40
|
-
backgroundColor: theme.colors.primary,
|
|
41
|
-
borderRight: `2px solid ${theme.colors.lightestShade}`,
|
|
42
|
-
borderBottom: `1px solid ${theme.colors.lightestShade}`,
|
|
43
|
-
},
|
|
44
|
-
'.value': {
|
|
45
|
-
backgroundColor: toShadeColor(theme.colors.primary),
|
|
46
|
-
borderBottom: `1px solid ${theme.colors.lightestShade}`,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
return {
|
|
51
|
-
summaryFieldStyle: summaryFieldStyle,
|
|
52
|
-
};
|
|
53
|
-
};
|
|
8
|
+
import { getCommonFormFieldStyles, summaryFieldStyles } from '@/components';
|
|
9
|
+
import { useWithOrchestratorTheme } from '@/hooks';
|
|
10
|
+
import { snakeToHuman } from '@/utils';
|
|
54
11
|
|
|
55
12
|
export const WfoSummary: PydanticFormElement = ({ pydanticFormField }) => {
|
|
56
|
-
const { summaryFieldStyle } = useWithOrchestratorTheme(
|
|
13
|
+
const { summaryFieldStyle } = useWithOrchestratorTheme(summaryFieldStyles);
|
|
57
14
|
const { formRowStyle } = useWithOrchestratorTheme(getCommonFormFieldStyles);
|
|
58
15
|
|
|
59
16
|
const { id, title, description } = pydanticFormField;
|
|
@@ -102,12 +59,14 @@ export const WfoSummary: PydanticFormElement = ({ pydanticFormField }) => {
|
|
|
102
59
|
</tr>
|
|
103
60
|
);
|
|
104
61
|
|
|
62
|
+
const formattedTitle = snakeToHuman(capitalize(title ?? ''));
|
|
63
|
+
|
|
105
64
|
return (
|
|
106
65
|
<EuiFlexItem data-testid={id} css={[summaryFieldStyle, formRowStyle]}>
|
|
107
66
|
<section>
|
|
108
67
|
<EuiFormRow
|
|
109
|
-
label={
|
|
110
|
-
labelAppend={<EuiText size="m">{
|
|
68
|
+
label={<p className="label">{formattedTitle}</p>}
|
|
69
|
+
labelAppend={<EuiText size="m">{description}</EuiText>}
|
|
111
70
|
id={id}
|
|
112
71
|
fullWidth
|
|
113
72
|
>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const ORCHESTRATOR_UI_LIBRARY_VERSION = '5.5.
|
|
1
|
+
export const ORCHESTRATOR_UI_LIBRARY_VERSION = '5.5.2';
|
package/src/messages/en-GB.json
CHANGED
|
@@ -388,8 +388,8 @@
|
|
|
388
388
|
"tasks": {
|
|
389
389
|
"page": {
|
|
390
390
|
"taskName": "Task",
|
|
391
|
-
"rerunAll": "
|
|
392
|
-
"rerunAllQuestion": "Are you sure you want to
|
|
391
|
+
"rerunAll": "Re-try all tasks",
|
|
392
|
+
"rerunAllQuestion": "Are you sure you want to re-try all failed tasks?"
|
|
393
393
|
},
|
|
394
394
|
"tabs": {
|
|
395
395
|
"active": "Active",
|
package/src/messages/nl-NL.json
CHANGED
|
@@ -385,8 +385,8 @@
|
|
|
385
385
|
"tasks": {
|
|
386
386
|
"page": {
|
|
387
387
|
"taskName": "Taak",
|
|
388
|
-
"rerunAll": "
|
|
389
|
-
"rerunAllQuestion": "Weet u zeker dat u alle gefaalde taken opnieuw wilt
|
|
388
|
+
"rerunAll": "Alle taken herstarten",
|
|
389
|
+
"rerunAllQuestion": "Weet u zeker dat u alle gefaalde taken opnieuw wilt herstarten?"
|
|
390
390
|
},
|
|
391
391
|
"tabs": {
|
|
392
392
|
"active": "Actief",
|
|
@@ -452,6 +452,7 @@
|
|
|
452
452
|
"hamburgerMenu": {
|
|
453
453
|
"support": "Support",
|
|
454
454
|
"softwareVersions": "Software Versies",
|
|
455
|
-
"logout": "Logout"
|
|
455
|
+
"logout": "Logout",
|
|
456
|
+
"aoStatusPage": "A&O applicatie status pagina"
|
|
456
457
|
}
|
|
457
458
|
}
|