@truedat/dq 4.34.3 → 4.35.2
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
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dq",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.35.2",
|
|
4
4
|
"description": "Truedat Web Data Quality Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@apollo/client": "^3.4.10",
|
|
85
|
-
"@truedat/core": "4.
|
|
86
|
-
"@truedat/df": "4.
|
|
85
|
+
"@truedat/core": "4.35.2",
|
|
86
|
+
"@truedat/df": "4.35.2",
|
|
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": "
|
|
106
|
+
"gitHead": "2d5ffbb16aaf62db662165ccd8088c65fcb6ec74"
|
|
107
107
|
}
|
|
@@ -110,6 +110,7 @@ const Filter = ({
|
|
|
110
110
|
composeValue={composeValue}
|
|
111
111
|
population={clause?.population || [{}]}
|
|
112
112
|
onChange={onValueConditionChange}
|
|
113
|
+
onModifierChange={onModifierChange}
|
|
113
114
|
parentStructures={parentStructures}
|
|
114
115
|
siblings={findSiblings(clause)}
|
|
115
116
|
scope="population"
|
|
@@ -64,6 +64,16 @@ export const ValueConditions = ({
|
|
|
64
64
|
|
|
65
65
|
const onRowAddition = () => onChange(_.concat(population)([{}]));
|
|
66
66
|
|
|
67
|
+
const onModifierChange = (index, modifier) => {
|
|
68
|
+
const clause = _.nth(index)(population);
|
|
69
|
+
const updatedCondition = {
|
|
70
|
+
...clause,
|
|
71
|
+
modifier,
|
|
72
|
+
};
|
|
73
|
+
const modifiedPopulation = replaceAt(index, updatedCondition)(population);
|
|
74
|
+
onChange && onChange(modifiedPopulation);
|
|
75
|
+
};
|
|
76
|
+
|
|
67
77
|
return population.map((clause, index) => (
|
|
68
78
|
<React.Fragment key={index}>
|
|
69
79
|
<Grid.Row>
|
|
@@ -74,6 +84,7 @@ export const ValueConditions = ({
|
|
|
74
84
|
onOperatorChange={onOperatorChange}
|
|
75
85
|
onStructureChange={onStructureChange}
|
|
76
86
|
onValueChange={onValueChange}
|
|
87
|
+
onModifierChange={onModifierChange}
|
|
77
88
|
parentStructures={parentStructures}
|
|
78
89
|
scope={scope}
|
|
79
90
|
siblings={siblings}
|