@truedat/dq 7.5.4 → 7.5.6
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/ImplementationStructureDelete.js +9 -2
- package/src/components/RuleActions.js +4 -4
- package/src/components/RuleResultRow.js +9 -2
- package/src/components/__tests__/RuleResultRow.spec.js +2 -2
- package/src/components/__tests__/__snapshots__/ImplementationStructureDelete.spec.js.snap +8 -4
- package/src/components/ruleImplementationForm/FieldsGroup.js +17 -6
- package/src/components/ruleImplementationForm/FiltersGroup.js +20 -5
- package/src/components/ruleImplementationForm/ValueConditions.js +6 -3
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/FiltersGroup.spec.js.snap +9 -5
- package/src/components/ruleImplementationForm/__tests__/__snapshots__/ValueConditions.spec.js.snap +8 -4
- package/src/styles/ruleImplementationForm/FieldsGroup.less +8 -0
- package/src/styles/ruleImplementationForm/FiltersGroup.less +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dq",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.6",
|
|
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.5",
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@testing-library/user-event": "^13.2.1",
|
|
37
|
-
"@truedat/test": "7.5.
|
|
37
|
+
"@truedat/test": "7.5.6",
|
|
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",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"@apollo/client": "^3.7.1",
|
|
95
|
-
"@truedat/core": "7.5.
|
|
96
|
-
"@truedat/df": "7.5.
|
|
95
|
+
"@truedat/core": "7.5.6",
|
|
96
|
+
"@truedat/df": "7.5.6",
|
|
97
97
|
"decode-uri-component": "^0.2.2",
|
|
98
98
|
"graphql": "^15.5.3",
|
|
99
99
|
"moment": "^2.29.4",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"react-dom": ">= 16.8.6 < 17",
|
|
119
119
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "23d70104f45068aea9795621334ee2df022d21b2"
|
|
122
122
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
|
-
import { Icon } from "semantic-ui-react";
|
|
4
|
+
import { Button, Icon } from "semantic-ui-react";
|
|
5
5
|
import { FormattedMessage } from "react-intl";
|
|
6
6
|
import { ConfirmModal } from "@truedat/core/components";
|
|
7
7
|
import { deleteImplementationStructure } from "../routines";
|
|
@@ -13,7 +13,14 @@ export const ImplementationStructureDelete = ({
|
|
|
13
13
|
}) => (
|
|
14
14
|
<ConfirmModal
|
|
15
15
|
icon="trash"
|
|
16
|
-
trigger={
|
|
16
|
+
trigger={
|
|
17
|
+
<Button
|
|
18
|
+
icon={<Icon name="trash alternate outline" color="red" />}
|
|
19
|
+
basic
|
|
20
|
+
size="mini"
|
|
21
|
+
color="red"
|
|
22
|
+
/>
|
|
23
|
+
}
|
|
17
24
|
header={
|
|
18
25
|
<FormattedMessage id="implementationsStructures.delete.confirmation.header" />
|
|
19
26
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { Link } from "react-router-dom";
|
|
4
|
-
import { connect } from "react-redux";
|
|
5
3
|
import PropTypes from "prop-types";
|
|
6
|
-
import {
|
|
4
|
+
import { connect } from "react-redux";
|
|
5
|
+
import { Link } from "react-router-dom";
|
|
6
|
+
import { Button, Icon } from "semantic-ui-react";
|
|
7
7
|
import { FormattedMessage } from "react-intl";
|
|
8
8
|
import { ConfirmModal, GroupActions } from "@truedat/core/components";
|
|
9
9
|
import { linkTo } from "@truedat/core/routes";
|
|
@@ -14,7 +14,7 @@ const ModalDelete = ({ deleteRule, id }) => (
|
|
|
14
14
|
icon="trash"
|
|
15
15
|
trigger={
|
|
16
16
|
<Button
|
|
17
|
-
icon="trash"
|
|
17
|
+
icon={<Icon name="trash alternate outline" color="red" />}
|
|
18
18
|
content={<FormattedMessage id="quality.actions.remove" />}
|
|
19
19
|
/>
|
|
20
20
|
}
|
|
@@ -4,7 +4,7 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { Link } from "react-router-dom";
|
|
7
|
-
import { Table, Icon, Label } from "semantic-ui-react";
|
|
7
|
+
import { Button, Table, Icon, Label } from "semantic-ui-react";
|
|
8
8
|
import { ConfirmModal, DateTime } from "@truedat/core/components";
|
|
9
9
|
import { useAuthorized } from "@truedat/core/hooks";
|
|
10
10
|
import { columnDecorator } from "@truedat/core/services";
|
|
@@ -103,7 +103,14 @@ export const RuleResultRow = ({
|
|
|
103
103
|
<Table.Cell onClick={(e) => e.stopPropagation()}>
|
|
104
104
|
<ConfirmModal
|
|
105
105
|
icon="trash"
|
|
106
|
-
trigger={
|
|
106
|
+
trigger={
|
|
107
|
+
<Button
|
|
108
|
+
icon="trash alternate outline"
|
|
109
|
+
color="red"
|
|
110
|
+
size="mini"
|
|
111
|
+
basic
|
|
112
|
+
/>
|
|
113
|
+
}
|
|
107
114
|
header={formatMessage({
|
|
108
115
|
id: "rule_result.actions.delete.confirmation.header",
|
|
109
116
|
})}
|
|
@@ -166,7 +166,7 @@ describe("<RuleResultRow />", () => {
|
|
|
166
166
|
</table>
|
|
167
167
|
);
|
|
168
168
|
expect(
|
|
169
|
-
container.querySelector("
|
|
169
|
+
container.querySelector("button.basic > i.trash.alternate.outline.icon")
|
|
170
170
|
).toBeInTheDocument();
|
|
171
171
|
});
|
|
172
172
|
|
|
@@ -193,7 +193,7 @@ describe("<RuleResultRow />", () => {
|
|
|
193
193
|
</table>
|
|
194
194
|
);
|
|
195
195
|
expect(
|
|
196
|
-
container.querySelector("
|
|
196
|
+
container.querySelector("button.basic > i.trash.alternate.outline.icon")
|
|
197
197
|
).not.toBeInTheDocument();
|
|
198
198
|
});
|
|
199
199
|
});
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`<ImplementationStructureDelete /> matches the latest snapshot 1`] = `
|
|
4
4
|
<div>
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
<button
|
|
6
|
+
class="ui red mini basic icon button"
|
|
7
|
+
>
|
|
8
|
+
<i
|
|
9
|
+
aria-hidden="true"
|
|
10
|
+
class="red trash alternate outline icon"
|
|
11
|
+
/>
|
|
12
|
+
</button>
|
|
9
13
|
</div>
|
|
10
14
|
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
|
-
import { Grid, Icon } from "semantic-ui-react";
|
|
4
|
+
import { Button, Grid, Icon } from "semantic-ui-react";
|
|
5
5
|
import PropTypes from "prop-types";
|
|
6
6
|
import { getStructureFieldOptionValue } from "@truedat/dd/selectors/getStructureFieldOptionValue";
|
|
7
7
|
import { getStructureFields } from "../../selectors/getStructureFields";
|
|
@@ -24,7 +24,11 @@ const Field = ({
|
|
|
24
24
|
<Grid.Row>
|
|
25
25
|
<Grid.Column width={4}>
|
|
26
26
|
<StructureFieldsDropdown
|
|
27
|
-
label={
|
|
27
|
+
label={
|
|
28
|
+
<strong>
|
|
29
|
+
{formatMessage({ id: "filtersGrid.field.label" })}
|
|
30
|
+
</strong>
|
|
31
|
+
}
|
|
28
32
|
inline={false}
|
|
29
33
|
parentStructures={parentStructures}
|
|
30
34
|
structureFields={structureFields}
|
|
@@ -32,10 +36,17 @@ const Field = ({
|
|
|
32
36
|
value={getStructureFieldOptionValue(clause?.structure)}
|
|
33
37
|
/>
|
|
34
38
|
</Grid.Column>
|
|
35
|
-
<Grid.Column
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
<Grid.Column
|
|
40
|
+
width={2}
|
|
41
|
+
verticalAlign="top"
|
|
42
|
+
className="fix-button-alignment"
|
|
43
|
+
>
|
|
44
|
+
<Button
|
|
45
|
+
icon={<Icon name="trash alternate outline" color="red" />}
|
|
46
|
+
basic
|
|
47
|
+
color="red"
|
|
48
|
+
size="mini"
|
|
49
|
+
className="selectable force-margin-bottom fix-button-alignment"
|
|
39
50
|
onClick={() => setRowValue({ index })}
|
|
40
51
|
/>
|
|
41
52
|
</Grid.Column>
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import React, { Fragment, useState } from "react";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
Accordion,
|
|
6
|
+
Divider,
|
|
7
|
+
Grid,
|
|
8
|
+
Icon,
|
|
9
|
+
Popup,
|
|
10
|
+
Button,
|
|
11
|
+
} from "semantic-ui-react";
|
|
5
12
|
import PropTypes from "prop-types";
|
|
6
13
|
import ValueConditions from "./ValueConditions";
|
|
7
14
|
import FiltersFormGroup from "./FiltersFormGroup";
|
|
@@ -64,7 +71,12 @@ const Filter = ({
|
|
|
64
71
|
operators={operators}
|
|
65
72
|
/>
|
|
66
73
|
</Grid.Column>
|
|
67
|
-
<Grid.Column
|
|
74
|
+
<Grid.Column
|
|
75
|
+
width={2}
|
|
76
|
+
floated="right"
|
|
77
|
+
verticalAlign="top"
|
|
78
|
+
className="fix-button-alignment"
|
|
79
|
+
>
|
|
68
80
|
{conditionApplies(clause) && (
|
|
69
81
|
<Popup
|
|
70
82
|
trigger={
|
|
@@ -82,9 +94,12 @@ const Filter = ({
|
|
|
82
94
|
hideOnScroll
|
|
83
95
|
/>
|
|
84
96
|
)}
|
|
85
|
-
<
|
|
86
|
-
name="trash"
|
|
87
|
-
|
|
97
|
+
<Button
|
|
98
|
+
icon={<Icon name="trash alternate outline" color="red" />}
|
|
99
|
+
color="red"
|
|
100
|
+
basic
|
|
101
|
+
size="mini"
|
|
102
|
+
className="selectable force-margin-bottom fix-button-alignment"
|
|
88
103
|
onClick={() => setRowValue({ index })}
|
|
89
104
|
/>
|
|
90
105
|
</Grid.Column>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { Grid, Icon } from "semantic-ui-react";
|
|
4
3
|
import PropTypes from "prop-types";
|
|
4
|
+
import { Button, Grid, Icon } from "semantic-ui-react";
|
|
5
5
|
import { dropAt, replaceAt } from "@truedat/core/services/arrays";
|
|
6
6
|
import FiltersFormGroup from "./FiltersFormGroup";
|
|
7
7
|
|
|
@@ -97,8 +97,11 @@ export const ValueConditions = ({
|
|
|
97
97
|
className="selectable force-margin-bottom"
|
|
98
98
|
onClick={onRowAddition}
|
|
99
99
|
/>
|
|
100
|
-
<
|
|
101
|
-
name="trash"
|
|
100
|
+
<Button
|
|
101
|
+
icon={<Icon name="trash alternate outline" color="red" />}
|
|
102
|
+
basic
|
|
103
|
+
color="red"
|
|
104
|
+
size="mini"
|
|
102
105
|
className="selectable force-margin-bottom"
|
|
103
106
|
onClick={() => onRowDelete(index)}
|
|
104
107
|
/>
|
package/src/components/ruleImplementationForm/__tests__/__snapshots__/FiltersGroup.spec.js.snap
CHANGED
|
@@ -72,12 +72,16 @@ exports[`<FiltersGroup /> matches the latest snapshot when siblings provided 1`]
|
|
|
72
72
|
</div>
|
|
73
73
|
</div>
|
|
74
74
|
<div
|
|
75
|
-
class="right floated two wide column"
|
|
75
|
+
class="right floated top aligned two wide column fix-button-alignment"
|
|
76
76
|
>
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
<button
|
|
78
|
+
class="ui red mini basic icon button selectable force-margin-bottom fix-button-alignment"
|
|
79
|
+
>
|
|
80
|
+
<i
|
|
81
|
+
aria-hidden="true"
|
|
82
|
+
class="red trash alternate outline icon"
|
|
83
|
+
/>
|
|
84
|
+
</button>
|
|
81
85
|
</div>
|
|
82
86
|
</div>
|
|
83
87
|
</div>
|
package/src/components/ruleImplementationForm/__tests__/__snapshots__/ValueConditions.spec.js.snap
CHANGED
|
@@ -77,10 +77,14 @@ exports[`<ValueConditions /> matches the latest snapshot when siblings provided
|
|
|
77
77
|
aria-hidden="true"
|
|
78
78
|
class="plus circle icon selectable force-margin-bottom"
|
|
79
79
|
/>
|
|
80
|
-
<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
<button
|
|
81
|
+
class="ui red mini basic icon button selectable force-margin-bottom"
|
|
82
|
+
>
|
|
83
|
+
<i
|
|
84
|
+
aria-hidden="true"
|
|
85
|
+
class="red trash alternate outline icon"
|
|
86
|
+
/>
|
|
87
|
+
</button>
|
|
84
88
|
</div>
|
|
85
89
|
</div>
|
|
86
90
|
</div>
|