@truedat/dq 4.53.10 → 4.53.11
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/package.json +5 -5
- package/src/components/ConceptRules.js +1 -1
- package/src/components/ConditionSummary.js +1 -1
- package/src/components/ImplementationStructureDelete.js +2 -6
- package/src/components/ImplementationsUploadButton.js +1 -1
- package/src/components/RuleImplementationsTable.js +1 -4
- package/src/components/RuleResultsUpload.js +2 -6
- package/src/components/RulesUploadButton.js +1 -1
- package/src/components/ruleImplementationForm/DateField.js +2 -2
- package/src/components/ruleImplementationForm/DateTimeField.js +2 -2
- package/src/components/ruleImplementationForm/FieldModifier.js +1 -1
- package/src/components/ruleImplementationForm/FiltersFormGroup.js +3 -3
- package/src/components/ruleImplementationForm/FiltersGroup.js +2 -2
- package/src/components/ruleImplementationForm/LimitsForm.js +6 -6
- package/src/components/ruleImplementationForm/ValueConditions.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dq",
|
|
3
|
-
"version": "4.53.
|
|
3
|
+
"version": "4.53.11",
|
|
4
4
|
"description": "Truedat Web Data Quality Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@testing-library/jest-dom": "^5.16.4",
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@testing-library/user-event": "^13.2.1",
|
|
37
|
-
"@truedat/test": "4.53.
|
|
37
|
+
"@truedat/test": "4.53.11",
|
|
38
38
|
"babel-jest": "^28.1.0",
|
|
39
39
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
40
40
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
95
|
"@apollo/client": "^3.7.0",
|
|
96
|
-
"@truedat/core": "4.53.
|
|
97
|
-
"@truedat/df": "4.53.
|
|
96
|
+
"@truedat/core": "4.53.11",
|
|
97
|
+
"@truedat/df": "4.53.11",
|
|
98
98
|
"graphql": "^15.5.3",
|
|
99
99
|
"path-to-regexp": "^1.7.0",
|
|
100
100
|
"prop-types": "^15.8.1",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"react-dom": ">= 16.8.6 < 17",
|
|
115
115
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "f0bff07f7491edcbe2195f2ff9d0ef74736edef9"
|
|
118
118
|
}
|
|
@@ -27,7 +27,7 @@ ConceptRuleRow.propTypes = {
|
|
|
27
27
|
export const ConceptRules = ({ conceptRules, createRuleUrl }) => {
|
|
28
28
|
const { formatMessage } = useIntl();
|
|
29
29
|
return (
|
|
30
|
-
<Segment attached=
|
|
30
|
+
<Segment attached="bottom">
|
|
31
31
|
{createRuleUrl && (
|
|
32
32
|
<div style={{ height: "40px" }}>
|
|
33
33
|
<Button
|
|
@@ -274,7 +274,7 @@ export const ConditionSummary = ({ rows, type, icon, alias }) => {
|
|
|
274
274
|
</Segment>
|
|
275
275
|
{i < wrappedRows.length - 1 ? (
|
|
276
276
|
<Divider horizontal>
|
|
277
|
-
<FormattedMessage id=
|
|
277
|
+
<FormattedMessage id="ruleImplementations.or" />
|
|
278
278
|
</Divider>
|
|
279
279
|
) : null}
|
|
280
280
|
</Fragment>
|
|
@@ -15,14 +15,10 @@ export const ImplementationStructureDelete = ({
|
|
|
15
15
|
icon="trash"
|
|
16
16
|
trigger={<Icon name="trash alternate outline" color="red" />}
|
|
17
17
|
header={
|
|
18
|
-
<FormattedMessage
|
|
19
|
-
id={"implementationsStructures.delete.confirmation.header"}
|
|
20
|
-
/>
|
|
18
|
+
<FormattedMessage id="implementationsStructures.delete.confirmation.header" />
|
|
21
19
|
}
|
|
22
20
|
content={
|
|
23
|
-
<FormattedMessage
|
|
24
|
-
id={"implementationsStructures.delete.confirmation.content"}
|
|
25
|
-
/>
|
|
21
|
+
<FormattedMessage id="implementationsStructures.delete.confirmation.content" />
|
|
26
22
|
}
|
|
27
23
|
onConfirm={() => deleteImplementationStructure({ implementationId, id })}
|
|
28
24
|
onOpen={(e) => e.stopPropagation()}
|
|
@@ -35,7 +35,7 @@ export const ImplementationsUploadButton = ({
|
|
|
35
35
|
content={
|
|
36
36
|
<FormattedMessage id="ruleImplementations.actions.upload.confirmation.content" />
|
|
37
37
|
}
|
|
38
|
-
param=
|
|
38
|
+
param="implementations"
|
|
39
39
|
handleSubmit={(data) =>
|
|
40
40
|
uploadImplementations({
|
|
41
41
|
action: "upload",
|
|
@@ -128,10 +128,7 @@ RuleImplementationsTable.propTypes = {
|
|
|
128
128
|
|
|
129
129
|
const mapStateToProps = (state, props) => ({
|
|
130
130
|
columns: getRuleImplementationColumns(state),
|
|
131
|
-
ruleImplementations:
|
|
132
|
-
props.ruleImplementations ||
|
|
133
|
-
state.structure?.implementations?.map(_.prop("implementation")) ||
|
|
134
|
-
state.ruleImplementations,
|
|
131
|
+
ruleImplementations: props.ruleImplementations || state.ruleImplementations,
|
|
135
132
|
ruleImplementationsLoading: state.ruleImplementationsLoading,
|
|
136
133
|
implementationsSort: _.path("ruleImplementationQuery.sort")(state),
|
|
137
134
|
});
|
|
@@ -25,12 +25,8 @@ export const RuleResultsUpload = ({ uploadResults, loading }) => {
|
|
|
25
25
|
content={formatMessage({
|
|
26
26
|
id: "uploadModal.actions.upload.confirmation.content",
|
|
27
27
|
})}
|
|
28
|
-
param=
|
|
29
|
-
handleSubmit={(data) =>
|
|
30
|
-
uploadResults({
|
|
31
|
-
data,
|
|
32
|
-
})
|
|
33
|
-
}
|
|
28
|
+
param="rule_results"
|
|
29
|
+
handleSubmit={(data) => uploadResults({ data })}
|
|
34
30
|
/>
|
|
35
31
|
);
|
|
36
32
|
};
|
|
@@ -11,7 +11,7 @@ export const DateField = ({ name, label, value, onChange }) => {
|
|
|
11
11
|
closable
|
|
12
12
|
animation={""}
|
|
13
13
|
name={name}
|
|
14
|
-
dateFormat=
|
|
14
|
+
dateFormat="YYYY-MM-DD"
|
|
15
15
|
label={label ? label : ""}
|
|
16
16
|
placeholder="Date"
|
|
17
17
|
value={_.isEmpty(raw) ? "" : raw}
|
|
@@ -25,7 +25,7 @@ DateField.propTypes = {
|
|
|
25
25
|
name: PropTypes.string,
|
|
26
26
|
label: PropTypes.string,
|
|
27
27
|
value: PropTypes.string,
|
|
28
|
-
onChange: PropTypes.func
|
|
28
|
+
onChange: PropTypes.func,
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export default DateField;
|
|
@@ -11,7 +11,7 @@ export const DateTimeField = ({ name, label, value, onChange }) => {
|
|
|
11
11
|
closable
|
|
12
12
|
animation={""}
|
|
13
13
|
name={name}
|
|
14
|
-
dateTimeFormat=
|
|
14
|
+
dateTimeFormat="YYYY-MM-DD HH:mm:ss"
|
|
15
15
|
label={label ? label : ""}
|
|
16
16
|
placeholder="Date Time"
|
|
17
17
|
value={_.isEmpty(raw) ? "" : raw}
|
|
@@ -25,7 +25,7 @@ DateTimeField.propTypes = {
|
|
|
25
25
|
name: PropTypes.string,
|
|
26
26
|
label: PropTypes.string,
|
|
27
27
|
value: PropTypes.string,
|
|
28
|
-
onChange: PropTypes.func
|
|
28
|
+
onChange: PropTypes.func,
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export default DateTimeField;
|
|
@@ -13,7 +13,7 @@ export default function FieldModifier({
|
|
|
13
13
|
const { formatMessage } = useIntl();
|
|
14
14
|
|
|
15
15
|
return (
|
|
16
|
-
<Form.Field className=
|
|
16
|
+
<Form.Field className="flex-column-align-end">
|
|
17
17
|
<label>
|
|
18
18
|
{formatMessage({ id: `filtersGrid.field.modifier.${modifier.name}` })}
|
|
19
19
|
{removable ? (
|
|
@@ -49,9 +49,9 @@ export const FiltersFormGroup = ({
|
|
|
49
49
|
formatMessage
|
|
50
50
|
);
|
|
51
51
|
return (
|
|
52
|
-
<Form.Group className=
|
|
52
|
+
<Form.Group className="force-margin-bottom">
|
|
53
53
|
<div>
|
|
54
|
-
<div className=
|
|
54
|
+
<div className="flex-row-align-end">
|
|
55
55
|
<Form.Field>
|
|
56
56
|
{nestedCondition ? (
|
|
57
57
|
<ValueConditionStructure
|
|
@@ -74,7 +74,7 @@ export const FiltersFormGroup = ({
|
|
|
74
74
|
!_.isEmpty(modifiers) &&
|
|
75
75
|
_.isEmpty(selectedModifier) ? (
|
|
76
76
|
<Dropdown
|
|
77
|
-
className=
|
|
77
|
+
className="icon-dropdown-margin"
|
|
78
78
|
size="mini"
|
|
79
79
|
icon="ellipsis vertical"
|
|
80
80
|
>
|
|
@@ -64,7 +64,7 @@ const Filter = ({
|
|
|
64
64
|
operators={operators}
|
|
65
65
|
/>
|
|
66
66
|
</Grid.Column>
|
|
67
|
-
<Grid.Column width={2} floated=
|
|
67
|
+
<Grid.Column width={2} floated="right">
|
|
68
68
|
{conditionApplies(clause) && (
|
|
69
69
|
<Popup
|
|
70
70
|
trigger={
|
|
@@ -90,7 +90,7 @@ const Filter = ({
|
|
|
90
90
|
</Grid.Column>
|
|
91
91
|
</Grid.Row>
|
|
92
92
|
{activePopulation && (
|
|
93
|
-
<Accordion className=
|
|
93
|
+
<Accordion className="force-margin-bottom" fluid>
|
|
94
94
|
<Accordion.Title
|
|
95
95
|
active={activeConditionIndex === index}
|
|
96
96
|
onClick={() =>
|
|
@@ -62,29 +62,29 @@ export default function LimitsForm({ onChange, ruleImplementation }) {
|
|
|
62
62
|
>
|
|
63
63
|
<Form.Group inline>
|
|
64
64
|
<Form.Radio
|
|
65
|
-
name=
|
|
65
|
+
name="result_type"
|
|
66
66
|
label={formatMessage({
|
|
67
67
|
id: "ruleImplementations.props.result_type.percentage",
|
|
68
68
|
})}
|
|
69
|
-
value=
|
|
69
|
+
value="percentage"
|
|
70
70
|
checked={ruleImplementation.result_type == "percentage"}
|
|
71
71
|
onChange={handleChange}
|
|
72
72
|
/>
|
|
73
73
|
<Form.Radio
|
|
74
|
-
name=
|
|
74
|
+
name="result_type"
|
|
75
75
|
label={formatMessage({
|
|
76
76
|
id: "ruleImplementations.props.result_type.deviation",
|
|
77
77
|
})}
|
|
78
|
-
value=
|
|
78
|
+
value="deviation"
|
|
79
79
|
checked={ruleImplementation.result_type == "deviation"}
|
|
80
80
|
onChange={handleChange}
|
|
81
81
|
/>
|
|
82
82
|
<Form.Radio
|
|
83
|
-
name=
|
|
83
|
+
name="result_type"
|
|
84
84
|
label={formatMessage({
|
|
85
85
|
id: "ruleImplementations.props.result_type.errors_number",
|
|
86
86
|
})}
|
|
87
|
-
value=
|
|
87
|
+
value="errors_number"
|
|
88
88
|
checked={ruleImplementation.result_type == "errors_number"}
|
|
89
89
|
onChange={handleChange}
|
|
90
90
|
/>
|