@truedat/bg 4.40.1 → 4.40.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 +6 -0
- package/package.json +4 -4
- package/src/concepts/components/__tests__/__snapshots__/ConceptManageDomain.spec.js.snap +1 -0
- package/src/messages/en.js +0 -1
- package/src/messages/es.js +0 -1
- package/src/taxonomy/components/DomainDropdownSelector.js +7 -3
- package/src/taxonomy/components/__tests__/__snapshots__/DomainDropdownSelector.spec.js.snap +1 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/bg",
|
|
3
|
-
"version": "4.40.
|
|
3
|
+
"version": "4.40.2",
|
|
4
4
|
"description": "Truedat Web Business Glossary",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
]
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@truedat/core": "4.40.
|
|
87
|
-
"@truedat/df": "4.40.
|
|
86
|
+
"@truedat/core": "4.40.2",
|
|
87
|
+
"@truedat/df": "4.40.2",
|
|
88
88
|
"file-saver": "^2.0.5",
|
|
89
89
|
"moment": "^2.24.0",
|
|
90
90
|
"path-to-regexp": "^1.7.0",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"react-dom": ">= 16.8.6 < 17",
|
|
105
105
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "86aa7e6c6e49c8e3a975f8f4f744c44035324c7f"
|
|
108
108
|
}
|
package/src/messages/en.js
CHANGED
|
@@ -242,7 +242,6 @@ export default {
|
|
|
242
242
|
"fields.pairlist.url.value.placeholder": "https://example.com",
|
|
243
243
|
"filters._confidential": "Confidential",
|
|
244
244
|
"filters.domain": "Domain",
|
|
245
|
-
"filters.domain_parents": "Domain",
|
|
246
245
|
"filters.filiacion": "Filiacion",
|
|
247
246
|
"filters.link_count": "Data fields",
|
|
248
247
|
"filters.rule_count": "Quality Rules",
|
package/src/messages/es.js
CHANGED
|
@@ -244,7 +244,6 @@ export default {
|
|
|
244
244
|
"fields.pairlist.url.value.placeholder": "https://ejemplo.es",
|
|
245
245
|
"filters._confidential": "Confidencial",
|
|
246
246
|
"filters.domain": "Dominio",
|
|
247
|
-
"filters.domain_parents": "Dominio",
|
|
248
247
|
"filters.filiacion": "Filiacion",
|
|
249
248
|
"filters.link_count": "Datos",
|
|
250
249
|
"filters.rule_count": "Reglas de calidad",
|
|
@@ -37,6 +37,7 @@ export const DomainDropdownSelector = ({
|
|
|
37
37
|
domainOptions: options,
|
|
38
38
|
hideLabel,
|
|
39
39
|
invalid,
|
|
40
|
+
multiple = false,
|
|
40
41
|
onChange,
|
|
41
42
|
value: defaultValue,
|
|
42
43
|
}) => {
|
|
@@ -95,8 +96,9 @@ export const DomainDropdownSelector = ({
|
|
|
95
96
|
|
|
96
97
|
const handleBlur = () => {
|
|
97
98
|
setQuery();
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
const lastesSelection = _.isNumber(value) ? value : _.last(value);
|
|
100
|
+
if (!_.isNil(lastesSelection)) {
|
|
101
|
+
const domain = _.find({ id: lastesSelection })(options);
|
|
100
102
|
const ancestors = _.map("id")(domain.ancestors);
|
|
101
103
|
const ids = [...ancestors, domain.id];
|
|
102
104
|
setOpen(ancestors);
|
|
@@ -169,6 +171,7 @@ export const DomainDropdownSelector = ({
|
|
|
169
171
|
)(filteredOptions)}
|
|
170
172
|
placeholder={formatMessage({ id: "domain.selector.placeholder" })}
|
|
171
173
|
search={_.identity}
|
|
174
|
+
multiple={multiple}
|
|
172
175
|
selection
|
|
173
176
|
value={value}
|
|
174
177
|
/>
|
|
@@ -182,8 +185,9 @@ DomainDropdownSelector.propTypes = {
|
|
|
182
185
|
domainOptions: PropTypes.array,
|
|
183
186
|
hideLabel: PropTypes.bool,
|
|
184
187
|
invalid: PropTypes.bool,
|
|
188
|
+
multiple: PropTypes.bool,
|
|
185
189
|
onChange: PropTypes.func,
|
|
186
|
-
value: PropTypes.number,
|
|
190
|
+
value: PropTypes.oneOfType([PropTypes.number, PropTypes.array]),
|
|
187
191
|
};
|
|
188
192
|
|
|
189
193
|
const mapStateToProps = (state, props) => ({
|