@truedat/dq 4.53.3 → 4.53.5

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
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.53.4] 2022-10-07
4
+
5
+ ### Fixed
6
+
7
+ - [TD-5098] Missing value modifier parameter translations, put key in Fragment
8
+
3
9
  ## [4.53.2] 2022-10-07
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dq",
3
- "version": "4.53.3",
3
+ "version": "4.53.5",
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.4",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.53.3",
37
+ "@truedat/test": "4.53.5",
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",
@@ -93,8 +93,8 @@
93
93
  },
94
94
  "dependencies": {
95
95
  "@apollo/client": "^3.6.4",
96
- "@truedat/core": "4.53.3",
97
- "@truedat/df": "4.53.3",
96
+ "@truedat/core": "4.53.5",
97
+ "@truedat/df": "4.53.5",
98
98
  "graphql": "^15.5.3",
99
99
  "path-to-regexp": "^1.7.0",
100
100
  "prop-types": "^15.8.1",
@@ -114,5 +114,5 @@
114
114
  "react-dom": ">= 16.8.6 < 17",
115
115
  "semantic-ui-react": ">= 0.88.2 < 2.1"
116
116
  },
117
- "gitHead": "d4f6cc40692e4d1e3f13e42774938765fe49c3b7"
117
+ "gitHead": "c6d3952045da76376a962cd6309df695be40fcde"
118
118
  }
@@ -163,12 +163,12 @@ const ConditionCell = ({ row, alias }) => {
163
163
  {_.flow(
164
164
  _.prop("modifier.params"),
165
165
  _.toPairs,
166
- _.map(([key, value]) => (
167
- <div key={key} className="smaller">
166
+ _.map(([paramName, paramValue]) => (
167
+ <div key={paramName} className="smaller">
168
168
  {`${formatMessage({
169
- id: `filtersGrid.field.modifier.${row.modifier.name}.${key}`,
170
- defaultMessage: key,
171
- })}: ${value}`}
169
+ id: `filtersGrid.field.modifier.${row.modifier.name}.${paramName}`,
170
+ defaultMessage: paramName,
171
+ })}: ${paramValue}`}
172
172
  </div>
173
173
  ))
174
174
  )(row)}
@@ -201,9 +201,12 @@ const ConditionCell = ({ row, alias }) => {
201
201
  {_.flow(
202
202
  _.prop("modifier.params"),
203
203
  _.toPairs,
204
- _.map(([key, value]) => (
205
- <div key={key} className="smaller">
206
- {value}
204
+ _.map(([paramName, paramValue]) => (
205
+ <div key={paramName} className="smaller">
206
+ {`${formatMessage({
207
+ id: `filtersGrid.field.modifier.${value.modifier.name}.${paramName}`,
208
+ defaultMessage: paramName,
209
+ })}: ${paramValue}`}
207
210
  </div>
208
211
  ))
209
212
  )(value)}
@@ -1,6 +1,6 @@
1
1
  import { getOr, isEmpty } from "lodash/fp";
2
2
  import PropTypes from "prop-types";
3
- import React from "react";
3
+ import React, { Fragment } from "react";
4
4
  import { useIntl } from "react-intl";
5
5
  import { Form, Icon, Segment } from "semantic-ui-react";
6
6
 
@@ -29,15 +29,14 @@ export default function FieldModifier({
29
29
  {getOr(
30
30
  [],
31
31
  "params"
32
- )(modifier).map((param, key) => (
33
- <>
32
+ )(modifier).map((param) => (
33
+ <Fragment key={`${param.name}`}>
34
34
  <label>
35
35
  {formatMessage({
36
36
  id: `filtersGrid.field.modifier.${modifier.name}.${param.name}`,
37
37
  })}
38
38
  </label>
39
39
  <input
40
- key={key}
41
40
  placeholder={formatMessage({
42
41
  id: `filtersGrid.field.modifier.${modifier.name}.${param.name}`,
43
42
  })}
@@ -52,7 +51,7 @@ export default function FieldModifier({
52
51
  });
53
52
  }}
54
53
  />
55
- </>
54
+ </Fragment>
56
55
  ))}
57
56
  </Segment>
58
57
  )}