@truedat/dq 4.36.4 → 4.36.8

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": "4.36.4",
3
+ "version": "4.36.8",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -44,7 +44,7 @@
44
44
  "jest": "^27.0.6",
45
45
  "react": "^16.14.0",
46
46
  "react-dom": "^16.14.0",
47
- "redux-saga-test-plan": "^4.0.1",
47
+ "redux-saga-test-plan": "^4.0.4",
48
48
  "rimraf": "^3.0.2",
49
49
  "semantic-ui-react": "^2.0.3"
50
50
  },
@@ -82,8 +82,8 @@
82
82
  },
83
83
  "dependencies": {
84
84
  "@apollo/client": "^3.4.10",
85
- "@truedat/core": "4.36.4",
86
- "@truedat/df": "4.36.4",
85
+ "@truedat/core": "4.36.8",
86
+ "@truedat/df": "4.36.8",
87
87
  "axios": "^0.19.2",
88
88
  "graphql": "^15.5.3",
89
89
  "path-to-regexp": "^1.7.0",
@@ -103,5 +103,5 @@
103
103
  "react-dom": ">= 16.8.6 < 17",
104
104
  "semantic-ui-react": ">= 0.88.2 < 2.1"
105
105
  },
106
- "gitHead": "4dbf4f9e5188b82b17d053b65e76506e60aa6722"
106
+ "gitHead": "b9b8ee80998b230697593b5d207d187971bc0724"
107
107
  }
@@ -28,12 +28,7 @@ export const ActionsCell = ({
28
28
  content={formatMessage({
29
29
  id: `ruleImplementation.actions.restore.confirmation.content`,
30
30
  })}
31
- handleSubmit={() =>
32
- handleStatusChange(id, {
33
- restore: true,
34
- deleted,
35
- })
36
- }
31
+ onConfirm={() => handleStatusChange(id, { restore: true, deleted })}
37
32
  onOpen={(e) => e.stopPropagation()}
38
33
  onClose={(e) => e.stopPropagation()}
39
34
  />
@@ -63,11 +58,8 @@ export const ActionsCell = ({
63
58
  ),
64
59
  }
65
60
  )}
66
- handleSubmit={() =>
67
- handleStatusChange(id, {
68
- softDelete: active,
69
- deleted,
70
- })
61
+ onConfirm={() =>
62
+ handleStatusChange(id, { softDelete: active, deleted })
71
63
  }
72
64
  onOpen={(e) => e.stopPropagation()}
73
65
  onClose={(e) => e.stopPropagation()}
@@ -510,19 +510,7 @@ export const NewRuleImplementation = ({
510
510
  <Divider hidden />
511
511
  </Grid.Row>
512
512
  <Grid.Row stretched>
513
- {ruleImplementation.implementationType != "raw" && (
514
- <RuleImplementationForm
515
- ruleImplementation={ruleImplementation}
516
- setStructures={setDataset}
517
- setPopulation={setPopulation}
518
- setValidations={setValidations}
519
- operators={operators}
520
- setImplementationKey={setImplementationKey}
521
- onChange={onChange}
522
- handleSubmit={doSubmit}
523
- />
524
- )}
525
- {ruleImplementation.implementationType == "raw" && (
513
+ {ruleImplementation.implementationType == "raw" ? (
526
514
  <RuleImplementationRawForm
527
515
  mode={clone ? "clone" : edition ? "edition" : ""}
528
516
  implementationKey={_.prop("implementationKey")(
@@ -535,6 +523,17 @@ export const NewRuleImplementation = ({
535
523
  onChange={onChange}
536
524
  handleSubmit={doSubmit}
537
525
  />
526
+ ) : (
527
+ <RuleImplementationForm
528
+ ruleImplementation={ruleImplementation}
529
+ setStructures={setDataset}
530
+ setPopulation={setPopulation}
531
+ setValidations={setValidations}
532
+ operators={operators}
533
+ setImplementationKey={setImplementationKey}
534
+ onChange={onChange}
535
+ handleSubmit={doSubmit}
536
+ />
538
537
  )}
539
538
  </Grid.Row>
540
539
  </Grid.Column>
@@ -26,7 +26,7 @@ const ModalDelete = ({ deleteRule, id }) => (
26
26
  values={{ name: <i>{name}</i> }}
27
27
  />
28
28
  }
29
- handleSubmit={() => deleteRule({ id })}
29
+ onConfirm={() => deleteRule({ id })}
30
30
  />
31
31
  );
32
32
 
@@ -127,7 +127,7 @@ const OptionModal = ({
127
127
  }
128
128
  header={formatMessage({ id: headerMessage })}
129
129
  content={formatMessage({ id: contentMessage })}
130
- handleSubmit={() =>
130
+ onConfirm={() =>
131
131
  setRuleImplementationStatus({
132
132
  ruleId: rule.id,
133
133
  id: ruleImplementation.id,
@@ -79,7 +79,7 @@ export const RuleResultRow = ({
79
79
  content={formatMessage({
80
80
  id: "rule_result.actions.delete.confirmation.content",
81
81
  })}
82
- handleSubmit={() =>
82
+ onConfirm={() =>
83
83
  deleteRuleResult({
84
84
  id: ruleResult.id,
85
85
  rule_id: rule.id,