@truedat/dd 6.9.5 → 6.10.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.10.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.10.0",
|
|
92
|
+
"@truedat/core": "6.10.0",
|
|
93
|
+
"@truedat/df": "6.10.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": "803604f0c5267ba435ea3e897873fe2b6f10d624"
|
|
119
119
|
}
|
package/src/api/queries.js
CHANGED
|
@@ -291,6 +291,7 @@ export const DATA_STRUCTURE_VERSION_QUERY = gql`
|
|
|
291
291
|
metadata
|
|
292
292
|
name
|
|
293
293
|
type
|
|
294
|
+
has_note
|
|
294
295
|
note
|
|
295
296
|
}
|
|
296
297
|
children {
|
|
@@ -302,6 +303,7 @@ export const DATA_STRUCTURE_VERSION_QUERY = gql`
|
|
|
302
303
|
metadata
|
|
303
304
|
name
|
|
304
305
|
type
|
|
306
|
+
has_note
|
|
305
307
|
note
|
|
306
308
|
}
|
|
307
309
|
siblings {
|
|
@@ -389,6 +391,7 @@ export const DATA_STRUCTURE_VERSION_QUERY = gql`
|
|
|
389
391
|
implementation_count
|
|
390
392
|
data_structure_link_count
|
|
391
393
|
|
|
394
|
+
has_note
|
|
392
395
|
note
|
|
393
396
|
profile {
|
|
394
397
|
max
|
|
@@ -442,6 +445,7 @@ export const DATA_STRUCTURE_VERSION_QUERY = gql`
|
|
|
442
445
|
total_count
|
|
443
446
|
unique_count
|
|
444
447
|
}
|
|
448
|
+
has_note
|
|
445
449
|
note(select_fields: $note_fields)
|
|
446
450
|
}
|
|
447
451
|
relations {
|
|
@@ -20,18 +20,14 @@ const linkToStructureDecorator = ({ data_structure_id: id, alias, name }) => (
|
|
|
20
20
|
<Link to={linkTo.STRUCTURE({ id })}>{_.defaultTo(name)(alias)}</Link>
|
|
21
21
|
);
|
|
22
22
|
|
|
23
|
-
const hasNoteDecorator = ({
|
|
24
|
-
|
|
25
|
-
_.isEmpty(note) ||
|
|
26
|
-
(note.hasOwnProperty("has_note") &&
|
|
27
|
-
(!note.has_note ||
|
|
28
|
-
(note.has_note.hasOwnProperty("value") && !note.has_note.value))) ? (
|
|
23
|
+
const hasNoteDecorator = ({ has_note }) =>
|
|
24
|
+
has_note ? (
|
|
29
25
|
<span className="structure.field.hasnote.false">
|
|
30
|
-
{translateDecorator("structure.field.hasnote.
|
|
26
|
+
{translateDecorator("structure.field.hasnote.true")}
|
|
31
27
|
</span>
|
|
32
28
|
) : (
|
|
33
29
|
<span className="structure.field.hasnote.true">
|
|
34
|
-
{translateDecorator("structure.field.hasnote.
|
|
30
|
+
{translateDecorator("structure.field.hasnote.false")}
|
|
35
31
|
</span>
|
|
36
32
|
);
|
|
37
33
|
|
|
@@ -95,7 +91,7 @@ export const defaultStructureFieldColumns = [
|
|
|
95
91
|
},
|
|
96
92
|
{
|
|
97
93
|
name: "note",
|
|
98
|
-
fieldSelector: _.pick(["
|
|
94
|
+
fieldSelector: _.pick(["has_note"]),
|
|
99
95
|
fieldDecorator: hasNoteDecorator,
|
|
100
96
|
},
|
|
101
97
|
];
|