@truedat/dq 6.9.1 → 6.9.3
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": "6.9.
|
|
3
|
+
"version": "6.9.3",
|
|
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": "6.
|
|
96
|
-
"@truedat/df": "6.
|
|
95
|
+
"@truedat/core": "6.9.3",
|
|
96
|
+
"@truedat/df": "6.9.3",
|
|
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": "de2241f37a9fa1d5324e7f7cfbd288a2f93e2985"
|
|
122
122
|
}
|
|
@@ -24,6 +24,9 @@ export const RuleImplementationTabs = ({
|
|
|
24
24
|
rule,
|
|
25
25
|
ruleImplementation,
|
|
26
26
|
canCreateLink,
|
|
27
|
+
canViewPublishedConcepts,
|
|
28
|
+
canViewDraftConcepts,
|
|
29
|
+
canViewPendingApprovalConcepts,
|
|
27
30
|
}) => {
|
|
28
31
|
const match = useRouteMatch();
|
|
29
32
|
const latest_rule_id = _.flow(
|
|
@@ -46,7 +49,10 @@ export const RuleImplementationTabs = ({
|
|
|
46
49
|
<FormattedMessage id="tabs.dq.ruleImplementation" />
|
|
47
50
|
</Menu.Item>
|
|
48
51
|
|
|
49
|
-
{canCreateLink
|
|
52
|
+
{canCreateLink ||
|
|
53
|
+
canViewPublishedConcepts ||
|
|
54
|
+
canViewDraftConcepts ||
|
|
55
|
+
canViewPendingApprovalConcepts ? (
|
|
50
56
|
<Menu.Item
|
|
51
57
|
active={
|
|
52
58
|
match.path === IMPLEMENTATION_CONCEPT_LINKS ||
|
|
@@ -60,7 +66,7 @@ export const RuleImplementationTabs = ({
|
|
|
60
66
|
>
|
|
61
67
|
<FormattedMessage id="tabs.dq.implementation.links.concepts" />
|
|
62
68
|
</Menu.Item>
|
|
63
|
-
)}
|
|
69
|
+
) : null}
|
|
64
70
|
<Menu.Item
|
|
65
71
|
active={
|
|
66
72
|
match.path === IMPLEMENTATION_STRUCTURES ||
|
|
@@ -132,16 +138,34 @@ RuleImplementationTabs.propTypes = {
|
|
|
132
138
|
ruleImplementation: PropTypes.object,
|
|
133
139
|
match: PropTypes.object,
|
|
134
140
|
canCreateLink: PropTypes.bool,
|
|
141
|
+
canViewPublishedConcepts: PropTypes.bool,
|
|
142
|
+
canViewDraftConcepts: PropTypes.bool,
|
|
143
|
+
canViewPendingApprovalConcepts: PropTypes.bool,
|
|
135
144
|
};
|
|
136
145
|
|
|
137
146
|
const mapStateToProps = ({
|
|
138
147
|
rule,
|
|
139
148
|
ruleImplementation,
|
|
140
149
|
implementationActions,
|
|
141
|
-
}) =>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
150
|
+
}) => {
|
|
151
|
+
return {
|
|
152
|
+
rule,
|
|
153
|
+
ruleImplementation,
|
|
154
|
+
links: ruleImplementation.links,
|
|
155
|
+
canCreateLink: _.propOr(false, "link_concept")(implementationActions),
|
|
156
|
+
canViewPublishedConcepts: _.propOr(
|
|
157
|
+
false,
|
|
158
|
+
"view_published_concept"
|
|
159
|
+
)(implementationActions),
|
|
160
|
+
canViewDraftConcepts: _.propOr(
|
|
161
|
+
false,
|
|
162
|
+
"view_draft_concept"
|
|
163
|
+
)(implementationActions),
|
|
164
|
+
canViewPendingApprovalConcepts: _.propOr(
|
|
165
|
+
false,
|
|
166
|
+
"view_approval_pending_concept"
|
|
167
|
+
)(implementationActions),
|
|
168
|
+
};
|
|
169
|
+
};
|
|
146
170
|
|
|
147
171
|
export default connect(mapStateToProps)(RuleImplementationTabs);
|