@truedat/dq 4.58.4 → 4.58.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/CHANGELOG.md +6 -0
- package/package.json +5 -5
- package/src/components/NewBasicRuleImplementation.js +4 -3
- package/src/components/NewRuleImplementation.js +9 -7
- package/src/components/RuleForm.js +1 -0
- package/src/components/ruleImplementationForm/InformationForm.js +12 -9
- package/src/components/ruleImplementationForm/RuleImplementationBasicForm.js +5 -2
- package/src/components/ruleImplementationForm/RuleImplementationForm.js +8 -5
- package/src/components/ruleImplementationForm/RuleImplementationRawForm.js +5 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dq",
|
|
3
|
-
"version": "4.58.
|
|
3
|
+
"version": "4.58.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": "4.58.
|
|
37
|
+
"@truedat/test": "4.58.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": "4.58.
|
|
96
|
-
"@truedat/df": "4.58.
|
|
95
|
+
"@truedat/core": "4.58.6",
|
|
96
|
+
"@truedat/df": "4.58.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": "6d62fbef2dea9d23cb1f3908bdc48ba36f4fd55d"
|
|
122
122
|
}
|
|
@@ -104,12 +104,13 @@ export const NewBasicRuleImplementation = ({
|
|
|
104
104
|
</Grid.Row>
|
|
105
105
|
<Grid.Row stretched>
|
|
106
106
|
<RuleImplementationBasicForm
|
|
107
|
-
mode={clone ? "clone" : edition ? "edition" : ""}
|
|
108
107
|
implementationKey={ruleImplementation.implementationKey}
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
isModification={edition}
|
|
109
|
+
mode={clone ? "clone" : edition ? "edition" : ""}
|
|
111
110
|
onChange={onChange}
|
|
112
111
|
onSubmit={doSubmit}
|
|
112
|
+
ruleImplementation={ruleImplementation}
|
|
113
|
+
setImplementationKey={setImplementationKey}
|
|
113
114
|
/>
|
|
114
115
|
</Grid.Row>
|
|
115
116
|
</Grid.Column>
|
|
@@ -579,26 +579,28 @@ export const NewRuleImplementation = ({
|
|
|
579
579
|
<Grid.Row stretched>
|
|
580
580
|
{ruleImplementation.implementationType == "raw" ? (
|
|
581
581
|
<RuleImplementationRawForm
|
|
582
|
-
mode={clone ? "clone" : edition ? "edition" : ""}
|
|
583
|
-
implementationKey={ruleImplementation.implementationKey}
|
|
584
582
|
conceptDomainId={conceptDomainId}
|
|
585
583
|
domainIds={conceptDomainIds}
|
|
584
|
+
implementationKey={ruleImplementation.implementationKey}
|
|
585
|
+
isModification={edition}
|
|
586
|
+
mode={clone ? "clone" : edition ? "edition" : ""}
|
|
587
|
+
onChange={onChange}
|
|
588
|
+
onSubmit={doSubmit}
|
|
586
589
|
rawContent={ruleImplementation.rawContent}
|
|
590
|
+
ruleImplementation={ruleImplementation}
|
|
587
591
|
setImplementationKey={setImplementationKey}
|
|
588
592
|
setImplementationRawContent={setImplementationRawContent}
|
|
589
|
-
ruleImplementation={ruleImplementation}
|
|
590
|
-
onChange={onChange}
|
|
591
|
-
onSubmit={doSubmit}
|
|
592
593
|
/>
|
|
593
594
|
) : (
|
|
594
595
|
<RuleImplementationForm
|
|
595
596
|
addPopulation={addPopulation}
|
|
596
|
-
addValidation={addValidation}
|
|
597
597
|
addSegment={addSegment}
|
|
598
|
+
addValidation={addValidation}
|
|
598
599
|
conceptDomainId={conceptDomainId}
|
|
599
600
|
domainIds={conceptDomainIds}
|
|
600
|
-
|
|
601
|
+
isModification={edition}
|
|
601
602
|
onChange={onChange}
|
|
603
|
+
onSubmit={doSubmit}
|
|
602
604
|
operators={operators}
|
|
603
605
|
ruleImplementation={ruleImplementation}
|
|
604
606
|
setImplementationKey={setImplementationKey}
|
|
@@ -325,6 +325,7 @@ export class RuleForm extends React.Component {
|
|
|
325
325
|
required
|
|
326
326
|
content={rule.df_content}
|
|
327
327
|
name={rule.df_name}
|
|
328
|
+
isModification={this.props.editMode}
|
|
328
329
|
onChange={this.handleContentChange}
|
|
329
330
|
onNameChange={(df_name) => this.setState({ df_name })}
|
|
330
331
|
/>
|
|
@@ -22,13 +22,14 @@ const DomainActionsLoader = ({ id, actions, onLoad }) => {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export const InformationForm = ({
|
|
25
|
-
|
|
25
|
+
conceptDomainId,
|
|
26
|
+
domainIds,
|
|
27
|
+
isModification,
|
|
26
28
|
onChange,
|
|
29
|
+
onDomainsLoad,
|
|
27
30
|
ruleImplementation,
|
|
31
|
+
setImplementationKey,
|
|
28
32
|
setIsValid,
|
|
29
|
-
onDomainsLoad,
|
|
30
|
-
conceptDomainId,
|
|
31
|
-
domainIds,
|
|
32
33
|
}) => {
|
|
33
34
|
const { formatMessage } = useIntl();
|
|
34
35
|
|
|
@@ -106,25 +107,27 @@ export const InformationForm = ({
|
|
|
106
107
|
<LimitsForm onChange={onChange} ruleImplementation={ruleImplementation} />
|
|
107
108
|
<SelectableDynamicForm
|
|
108
109
|
scope="ri"
|
|
109
|
-
domainIds={_.isNil(domainId) ? null : [domainId]}
|
|
110
|
-
required
|
|
111
110
|
content={ruleImplementation?.dfContent}
|
|
111
|
+
domainIds={_.isNil(domainId) ? null : [domainId]}
|
|
112
|
+
isModification={isModification}
|
|
112
113
|
name={ruleImplementation?.dfName}
|
|
113
114
|
onChange={handleContentChange}
|
|
114
115
|
onNameChange={(dfName) => onChange("dfName", dfName)}
|
|
116
|
+
required
|
|
115
117
|
/>
|
|
116
118
|
</>
|
|
117
119
|
);
|
|
118
120
|
};
|
|
119
121
|
|
|
120
122
|
InformationForm.propTypes = {
|
|
123
|
+
conceptDomainId: PropTypes.array,
|
|
124
|
+
domainIds: PropTypes.array,
|
|
125
|
+
isModification: PropTypes.bool,
|
|
121
126
|
onChange: PropTypes.func,
|
|
127
|
+
onDomainsLoad: PropTypes.func,
|
|
122
128
|
ruleImplementation: PropTypes.object,
|
|
123
129
|
setImplementationKey: PropTypes.func,
|
|
124
130
|
setIsValid: PropTypes.func,
|
|
125
|
-
onDomainsLoad: PropTypes.func,
|
|
126
|
-
conceptDomainId: PropTypes.array,
|
|
127
|
-
domainIds: PropTypes.array,
|
|
128
131
|
};
|
|
129
132
|
|
|
130
133
|
export default InformationForm;
|
|
@@ -50,6 +50,7 @@ Help.propTypes = {
|
|
|
50
50
|
|
|
51
51
|
export const RuleImplementationBasicForm = ({
|
|
52
52
|
implementationKey,
|
|
53
|
+
isModification,
|
|
53
54
|
isSubmitting,
|
|
54
55
|
onChange,
|
|
55
56
|
onSubmit,
|
|
@@ -148,12 +149,13 @@ export const RuleImplementationBasicForm = ({
|
|
|
148
149
|
<LimitsForm onChange={onChange} ruleImplementation={ruleImplementation} />
|
|
149
150
|
<SelectableDynamicForm
|
|
150
151
|
scope="ri"
|
|
151
|
-
domainIds={_.isNil(domainId) ? null : [domainId]}
|
|
152
|
-
required
|
|
153
152
|
content={ruleImplementation?.dfContent}
|
|
153
|
+
domainIds={_.isNil(domainId) ? null : [domainId]}
|
|
154
|
+
isModification={isModification}
|
|
154
155
|
name={ruleImplementation?.dfName}
|
|
155
156
|
onChange={handleContentChange}
|
|
156
157
|
onNameChange={(dfName) => onChange("dfName", dfName)}
|
|
158
|
+
required
|
|
157
159
|
/>
|
|
158
160
|
{canPublish ? (
|
|
159
161
|
<Button
|
|
@@ -187,6 +189,7 @@ export const RuleImplementationBasicForm = ({
|
|
|
187
189
|
|
|
188
190
|
RuleImplementationBasicForm.propTypes = {
|
|
189
191
|
implementationKey: PropTypes.string,
|
|
192
|
+
isModification: PropTypes.bool,
|
|
190
193
|
isSubmitting: PropTypes.bool,
|
|
191
194
|
onChange: PropTypes.func,
|
|
192
195
|
onSubmit: PropTypes.func.isRequired,
|
|
@@ -50,6 +50,7 @@ export const RuleImplementationForm = ({
|
|
|
50
50
|
addValidation,
|
|
51
51
|
conceptDomainId,
|
|
52
52
|
domainIds,
|
|
53
|
+
isModification,
|
|
53
54
|
isSubmitting,
|
|
54
55
|
onChange,
|
|
55
56
|
onSubmit,
|
|
@@ -342,16 +343,17 @@ export const RuleImplementationForm = ({
|
|
|
342
343
|
{activeStep == "information" && (
|
|
343
344
|
<InformationForm
|
|
344
345
|
{...{
|
|
345
|
-
onChange,
|
|
346
|
-
ruleImplementation,
|
|
347
|
-
setImplementationKey,
|
|
348
346
|
conceptDomainId,
|
|
349
347
|
domainIds,
|
|
350
|
-
|
|
348
|
+
isModification,
|
|
349
|
+
onChange,
|
|
351
350
|
onDomainsLoad: (domains) => {
|
|
352
351
|
setDomains(domains);
|
|
353
352
|
setIsLoadingDomains(false);
|
|
354
353
|
},
|
|
354
|
+
ruleImplementation,
|
|
355
|
+
setImplementationKey,
|
|
356
|
+
setIsValid: setContentIsValid,
|
|
355
357
|
}}
|
|
356
358
|
/>
|
|
357
359
|
)}
|
|
@@ -507,12 +509,13 @@ export const RuleImplementationForm = ({
|
|
|
507
509
|
|
|
508
510
|
RuleImplementationForm.propTypes = {
|
|
509
511
|
addPopulation: PropTypes.func,
|
|
510
|
-
addValidation: PropTypes.func,
|
|
511
512
|
addSegment: PropTypes.func,
|
|
513
|
+
addValidation: PropTypes.func,
|
|
512
514
|
authManageSegments: PropTypes.bool,
|
|
513
515
|
conceptDomainId: PropTypes.number,
|
|
514
516
|
domainIds: PropTypes.array,
|
|
515
517
|
isAdmin: PropTypes.bool,
|
|
518
|
+
isModification: PropTypes.bool,
|
|
516
519
|
isSubmitting: PropTypes.bool,
|
|
517
520
|
onChange: PropTypes.func,
|
|
518
521
|
onSubmit: PropTypes.func.isRequired,
|
|
@@ -54,6 +54,7 @@ export const RuleImplementationRawForm = ({
|
|
|
54
54
|
conceptDomainId,
|
|
55
55
|
domainIds,
|
|
56
56
|
implementationKey,
|
|
57
|
+
isModification,
|
|
57
58
|
isSubmitting,
|
|
58
59
|
onChange,
|
|
59
60
|
onSubmit,
|
|
@@ -235,12 +236,13 @@ export const RuleImplementationRawForm = ({
|
|
|
235
236
|
<LimitsForm onChange={onChange} ruleImplementation={ruleImplementation} />
|
|
236
237
|
<SelectableDynamicForm
|
|
237
238
|
scope="ri"
|
|
238
|
-
domainIds={_.isNil(domainId) ? null : [domainId]}
|
|
239
|
-
required
|
|
240
239
|
content={ruleImplementation?.dfContent}
|
|
240
|
+
domainIds={_.isNil(domainId) ? null : [domainId]}
|
|
241
|
+
isModification={isModification}
|
|
241
242
|
name={ruleImplementation?.dfName}
|
|
242
243
|
onChange={handleContentChange}
|
|
243
244
|
onNameChange={(dfName) => onChange("dfName", dfName)}
|
|
245
|
+
required
|
|
244
246
|
/>
|
|
245
247
|
<Form.Dropdown
|
|
246
248
|
label={
|
|
@@ -386,6 +388,7 @@ RuleImplementationRawForm.propTypes = {
|
|
|
386
388
|
conceptDomainId: PropTypes.number,
|
|
387
389
|
domainIds: PropTypes.array,
|
|
388
390
|
implementationKey: PropTypes.string,
|
|
391
|
+
isModification: PropTypes.bool,
|
|
389
392
|
isSubmitting: PropTypes.bool,
|
|
390
393
|
onChange: PropTypes.func,
|
|
391
394
|
onSubmit: PropTypes.func.isRequired,
|