@truedat/dd 4.53.11 → 4.54.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 +6 -6
- package/src/components/UserSearchFiltersLoader.js +1 -1
- package/src/components/__tests__/__snapshots__/StructureProperties.spec.js.snap +1 -3
- package/src/components/__tests__/__snapshots__/StructureSummary.spec.js.snap +2 -6
- package/src/selectors/getStructureProperties.js +15 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dd",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.54.2",
|
|
4
4
|
"description": "Truedat Web Data Dictionary",
|
|
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.
|
|
37
|
+
"@truedat/test": "4.54.0",
|
|
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",
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@apollo/client": "^3.7.0",
|
|
91
|
-
"@truedat/auth": "4.
|
|
92
|
-
"@truedat/core": "4.
|
|
93
|
-
"@truedat/df": "4.
|
|
91
|
+
"@truedat/auth": "4.54.2",
|
|
92
|
+
"@truedat/core": "4.54.2",
|
|
93
|
+
"@truedat/df": "4.54.2",
|
|
94
94
|
"lodash": "^4.17.21",
|
|
95
95
|
"path-to-regexp": "^1.7.0",
|
|
96
96
|
"prop-types": "^15.8.1",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"react-dom": ">= 16.8.6 < 17",
|
|
113
113
|
"semantic-ui-react": ">= 0.88.2 < 2.1"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "5f8e708ced0c68fbe8a38373f3cc579702f3e7e4"
|
|
116
116
|
}
|
|
@@ -92,9 +92,7 @@ exports[`<StructureSummary /> matches the latest snapshot 1`] = `
|
|
|
92
92
|
</h5>
|
|
93
93
|
<div
|
|
94
94
|
class="description"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</div>
|
|
95
|
+
/>
|
|
98
96
|
</div>
|
|
99
97
|
</div>
|
|
100
98
|
</div>
|
|
@@ -244,9 +242,7 @@ exports[`<StructureSummary /> matches the latest snapshot with alias 1`] = `
|
|
|
244
242
|
</h5>
|
|
245
243
|
<div
|
|
246
244
|
class="description"
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
</div>
|
|
245
|
+
/>
|
|
250
246
|
</div>
|
|
251
247
|
</div>
|
|
252
248
|
</div>
|
|
@@ -2,11 +2,23 @@ import _ from "lodash/fp";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { createSelector } from "reselect";
|
|
4
4
|
import { FormattedMessage } from "react-intl";
|
|
5
|
+
import { Label } from "semantic-ui-react";
|
|
5
6
|
import EditDomainPopup from "../components/EditDomainPopup";
|
|
6
7
|
|
|
7
|
-
const domainDecorator = (
|
|
8
|
+
const domainDecorator = (domains) => (
|
|
8
9
|
<>
|
|
9
|
-
{
|
|
10
|
+
{domains.map(({ name, parents }, key) => (
|
|
11
|
+
<Label
|
|
12
|
+
key={key}
|
|
13
|
+
title={_.flow(_.map("name"), _.union([name]), _.join(" > "))(parents)}
|
|
14
|
+
style={{
|
|
15
|
+
margin: "2px",
|
|
16
|
+
cursor: "default",
|
|
17
|
+
}}
|
|
18
|
+
>
|
|
19
|
+
{name}
|
|
20
|
+
</Label>
|
|
21
|
+
))}
|
|
10
22
|
<EditDomainPopup />
|
|
11
23
|
</>
|
|
12
24
|
);
|
|
@@ -20,7 +32,7 @@ const typeDecorator = ({ type, data_structure_type }) => (
|
|
|
20
32
|
export const defaultStructureProperties = [
|
|
21
33
|
{
|
|
22
34
|
name: "domain",
|
|
23
|
-
fieldSelector: _.flow(_.propOr([], "domains"), _.
|
|
35
|
+
fieldSelector: _.flow(_.propOr([], "domains"), _.reject(_.isEmpty)),
|
|
24
36
|
fieldDecorator: domainDecorator,
|
|
25
37
|
},
|
|
26
38
|
{ name: "group" },
|