@truedat/dd 6.13.6 → 6.14.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/dd",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.14.0",
|
|
4
4
|
"description": "Truedat Web Data Dictionary",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@apollo/client": "^3.7.1",
|
|
91
|
-
"@truedat/auth": "6.
|
|
92
|
-
"@truedat/core": "6.
|
|
93
|
-
"@truedat/df": "6.
|
|
91
|
+
"@truedat/auth": "6.14.0",
|
|
92
|
+
"@truedat/core": "6.14.0",
|
|
93
|
+
"@truedat/df": "6.14.0",
|
|
94
94
|
"lodash": "^4.17.21",
|
|
95
95
|
"moment": "^2.29.4",
|
|
96
96
|
"path-to-regexp": "^1.7.0",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"react-dom": ">= 16.8.6 < 17",
|
|
116
116
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "c93d6ae539fb9ecb3d43b63db5199726246d2024"
|
|
119
119
|
}
|
|
@@ -7,11 +7,16 @@ import { List } from "semantic-ui-react";
|
|
|
7
7
|
import { useIntl } from "react-intl";
|
|
8
8
|
import { STRUCTURES, linkTo } from "@truedat/core/routes";
|
|
9
9
|
|
|
10
|
-
const getIcon = (formatMessage, type) =>
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const getIcon = (formatMessage, type, field_type) => {
|
|
11
|
+
const id = field_type
|
|
12
|
+
? `structure.type.${field_type}.icon`
|
|
13
|
+
: `structure.type.${type}.icon`;
|
|
14
|
+
|
|
15
|
+
return formatMessage({
|
|
16
|
+
id,
|
|
13
17
|
defaultMessage: "question circle outline",
|
|
14
18
|
});
|
|
19
|
+
};
|
|
15
20
|
|
|
16
21
|
const filterQueryParams = _.flow(
|
|
17
22
|
Object.entries,
|
|
@@ -40,10 +45,7 @@ export const StructureItem = ({
|
|
|
40
45
|
navFilter,
|
|
41
46
|
original_name,
|
|
42
47
|
type,
|
|
43
|
-
|
|
44
|
-
* - true/false in bucket view (catalog view)
|
|
45
|
-
* - undefined in regular structure view
|
|
46
|
-
*/
|
|
48
|
+
field_type,
|
|
47
49
|
hasCatalogViewProp,
|
|
48
50
|
}) => {
|
|
49
51
|
const { formatMessage } = useIntl();
|
|
@@ -96,7 +98,10 @@ export const StructureItem = ({
|
|
|
96
98
|
className={toClassNames({ deleted_at, hasCatalogViewProp })}
|
|
97
99
|
active={active}
|
|
98
100
|
>
|
|
99
|
-
<List.Icon
|
|
101
|
+
<List.Icon
|
|
102
|
+
name={getIcon(formatMessage, type, field_type)}
|
|
103
|
+
verticalAlign="middle"
|
|
104
|
+
/>
|
|
100
105
|
<List.Content>
|
|
101
106
|
<List.Description>
|
|
102
107
|
{type == "bucket"
|
|
@@ -117,6 +122,7 @@ StructureItem.propTypes = {
|
|
|
117
122
|
original_name: PropTypes.string,
|
|
118
123
|
structuresAliasNameMode: PropTypes.bool,
|
|
119
124
|
type: PropTypes.string,
|
|
125
|
+
field_type: PropTypes.string,
|
|
120
126
|
hasCatalogViewProp: PropTypes.bool,
|
|
121
127
|
};
|
|
122
128
|
|