@truedat/dd 4.36.1 → 4.36.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 +0 -6
- package/package.json +5 -5
- package/src/components/StructureSelectedFilters.js +0 -5
- package/src/components/StructureSelectorInputFieldJoin.js +7 -3
- package/src/components/__tests__/__snapshots__/GrantRequest.spec.js.snap +2 -0
- package/src/messages/en.js +0 -3
- package/src/messages/es.js +0 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dd",
|
|
3
|
-
"version": "4.36.
|
|
3
|
+
"version": "4.36.2",
|
|
4
4
|
"description": "Truedat Web Data Dictionary",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@truedat/auth": "4.36.
|
|
88
|
-
"@truedat/core": "4.36.
|
|
89
|
-
"@truedat/df": "4.36.
|
|
87
|
+
"@truedat/auth": "4.36.2",
|
|
88
|
+
"@truedat/core": "4.36.2",
|
|
89
|
+
"@truedat/df": "4.36.2",
|
|
90
90
|
"lodash": "^4.17.21",
|
|
91
91
|
"path-to-regexp": "^1.7.0",
|
|
92
92
|
"prop-types": "^15.7.2",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"react-dom": ">= 16.8.6 < 17",
|
|
108
108
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "0f4c09d90582210ae7c98e945b8c0b7af0f9a61d"
|
|
111
111
|
}
|
|
@@ -37,11 +37,6 @@ const translations = (formatMessage, structureTypes) => ({
|
|
|
37
37
|
id: `filters.with_profiling.raw.${v}`,
|
|
38
38
|
defaultMessage: v,
|
|
39
39
|
}),
|
|
40
|
-
"has_field_child.raw": (v) =>
|
|
41
|
-
formatMessage({
|
|
42
|
-
id: `filters.has_field_child.raw.${v}`,
|
|
43
|
-
defaultMessage: v,
|
|
44
|
-
}),
|
|
45
40
|
linked_concepts_count: (v) =>
|
|
46
41
|
formatMessage({
|
|
47
42
|
id: `filters.linked_concepts_count.${v}`,
|
|
@@ -124,10 +124,14 @@ export const StructureSelectorInputFieldJoin = ({
|
|
|
124
124
|
];
|
|
125
125
|
const deleteClause = (idx) => handleSelectField(removeAt(clauses, idx));
|
|
126
126
|
const handleChange = (prop, idx) => (data) => {
|
|
127
|
-
const {
|
|
127
|
+
const {
|
|
128
|
+
data_structure_id: id,
|
|
129
|
+
parent_index: parent_index,
|
|
130
|
+
name: name,
|
|
131
|
+
} = data;
|
|
128
132
|
const newClause = _.isNil(parent_index)
|
|
129
|
-
? { ...clauses[idx], [prop]: { id } }
|
|
130
|
-
: { ...clauses[idx], [prop]: { id, parent_index } };
|
|
133
|
+
? { ...clauses[idx], [prop]: { id, name } }
|
|
134
|
+
: { ...clauses[idx], [prop]: { id, parent_index, name } };
|
|
131
135
|
const newClauses = _.set(`[${idx}]`, newClause)(clauses);
|
|
132
136
|
handleSelectField(newClauses);
|
|
133
137
|
};
|
|
@@ -294,6 +294,7 @@ exports[`<GrantRequest /> matches the latest snapshot with approve actions 1`] =
|
|
|
294
294
|
<span
|
|
295
295
|
class="highlighted"
|
|
296
296
|
>
|
|
297
|
+
|
|
297
298
|
"foo"
|
|
298
299
|
</span>
|
|
299
300
|
</a>
|
|
@@ -560,6 +561,7 @@ exports[`<GrantRequest /> matches the latest snapshot with failed status 1`] = `
|
|
|
560
561
|
<span
|
|
561
562
|
class="highlighted"
|
|
562
563
|
>
|
|
564
|
+
|
|
563
565
|
"foo"
|
|
564
566
|
</span>
|
|
565
567
|
</a>
|
package/src/messages/en.js
CHANGED
|
@@ -30,9 +30,6 @@ export default {
|
|
|
30
30
|
"filters.with_profiling.raw": "Profile",
|
|
31
31
|
"filters.with_profiling.raw.false": "Without profile",
|
|
32
32
|
"filters.with_profiling.raw.true": "With profile",
|
|
33
|
-
"filters.has_field_child.raw": "Child fields",
|
|
34
|
-
"filters.has_field_child.raw.false": "Without fields",
|
|
35
|
-
"filters.has_field_child.raw.true": "With fields",
|
|
36
33
|
"grant.cell.direct_access": "Direct access",
|
|
37
34
|
"grant.cell.end_date.null": "No expiration set",
|
|
38
35
|
"grant.cell.end_date.same_user": "It's you",
|
package/src/messages/es.js
CHANGED
|
@@ -31,9 +31,6 @@ export default {
|
|
|
31
31
|
"filters.with_profiling.raw": "Perfilado",
|
|
32
32
|
"filters.with_profiling.raw.false": "Sin perfilado",
|
|
33
33
|
"filters.with_profiling.raw.true": "Contiene perfilado",
|
|
34
|
-
"filters.has_field_child.raw": "Campos hijos",
|
|
35
|
-
"filters.has_field_child.raw.false": "Sin campos",
|
|
36
|
-
"filters.has_field_child.raw.true": "Tiene campos",
|
|
37
34
|
"grant.cell.direct_access": "Acceso Directo",
|
|
38
35
|
"grant.cell.end_date.null": "Sin fecha de expiración",
|
|
39
36
|
"grant.cell.end_date.same_user": "Eres tú",
|