@truedat/dq 5.13.8 → 5.14.0
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dq",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.14.0",
|
|
4
4
|
"description": "Truedat Web Data Quality Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"@apollo/client": "^3.7.1",
|
|
95
|
-
"@truedat/core": "5.
|
|
96
|
-
"@truedat/df": "5.
|
|
95
|
+
"@truedat/core": "5.14.0",
|
|
96
|
+
"@truedat/df": "5.14.0",
|
|
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": "f1e5448ad078ffe2eece70dabf785f2dc295f0e9"
|
|
122
122
|
}
|
|
@@ -24,11 +24,12 @@ ConceptRuleRow.propTypes = {
|
|
|
24
24
|
id: PropTypes.number,
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
export const ConceptRules = ({ conceptRules, createRuleUrl }) => {
|
|
27
|
+
export const ConceptRules = ({ conceptRules, visible, createRuleUrl }) => {
|
|
28
28
|
const { formatMessage } = useIntl();
|
|
29
|
+
|
|
29
30
|
return (
|
|
30
31
|
<Segment attached="bottom">
|
|
31
|
-
{createRuleUrl && (
|
|
32
|
+
{createRuleUrl && visible && (
|
|
32
33
|
<div style={{ height: "40px" }}>
|
|
33
34
|
<Button
|
|
34
35
|
style={{
|
|
@@ -71,6 +72,7 @@ export const ConceptRules = ({ conceptRules, createRuleUrl }) => {
|
|
|
71
72
|
ConceptRules.propTypes = {
|
|
72
73
|
conceptRules: PropTypes.array,
|
|
73
74
|
createRuleUrl: PropTypes.string,
|
|
75
|
+
visible: PropTypes.bool,
|
|
74
76
|
};
|
|
75
77
|
|
|
76
78
|
const mapStateToProps = ({ conceptRules, concept, conceptRulesActions }) => ({
|
|
@@ -79,6 +81,7 @@ const mapStateToProps = ({ conceptRules, concept, conceptRulesActions }) => ({
|
|
|
79
81
|
createRuleUrl: conceptRulesActions?.create
|
|
80
82
|
? linkTo.CONCEPT_RULES_NEW(concept)
|
|
81
83
|
: null,
|
|
84
|
+
visible: _.prop("status")(concept) != "deprecated",
|
|
82
85
|
});
|
|
83
86
|
|
|
84
87
|
export default connect(mapStateToProps)(ConceptRules);
|
|
@@ -5,18 +5,6 @@ exports[`<ConceptRules /> matches the latest snapshot 1`] = `
|
|
|
5
5
|
<div
|
|
6
6
|
class="ui bottom attached segment"
|
|
7
7
|
>
|
|
8
|
-
<div
|
|
9
|
-
style="height: 40px;"
|
|
10
|
-
>
|
|
11
|
-
<a
|
|
12
|
-
class="ui primary button"
|
|
13
|
-
href="/concepts/1/versions/2/rules/new"
|
|
14
|
-
role="button"
|
|
15
|
-
style="float: right; margin-top: 10px; margin-bottom: 10px;"
|
|
16
|
-
>
|
|
17
|
-
create
|
|
18
|
-
</a>
|
|
19
|
-
</div>
|
|
20
8
|
<table
|
|
21
9
|
class="ui selectable table"
|
|
22
10
|
style="margin-top: 10px;"
|
|
@@ -107,18 +95,6 @@ exports[`<ConceptRules /> renders message when not concept rules provided 1`] =
|
|
|
107
95
|
<div
|
|
108
96
|
class="ui bottom attached segment"
|
|
109
97
|
>
|
|
110
|
-
<div
|
|
111
|
-
style="height: 40px;"
|
|
112
|
-
>
|
|
113
|
-
<a
|
|
114
|
-
class="ui primary button"
|
|
115
|
-
href="/concepts/1/versions/2/rules/new"
|
|
116
|
-
role="button"
|
|
117
|
-
style="float: right; margin-top: 10px; margin-bottom: 10px;"
|
|
118
|
-
>
|
|
119
|
-
create
|
|
120
|
-
</a>
|
|
121
|
-
</div>
|
|
122
98
|
<div
|
|
123
99
|
class="ui message"
|
|
124
100
|
>
|