@truedat/bg 5.6.5 → 5.7.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/bg",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"description": "Truedat Web Business Glossary",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@testing-library/jest-dom": "^5.16.5",
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@testing-library/user-event": "^13.2.1",
|
|
37
|
-
"@truedat/test": "5.6.
|
|
37
|
+
"@truedat/test": "5.6.6",
|
|
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",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@truedat/core": "5.6.
|
|
90
|
-
"@truedat/df": "5.6.
|
|
91
|
-
"@truedat/lm": "5.6.
|
|
89
|
+
"@truedat/core": "5.6.6",
|
|
90
|
+
"@truedat/df": "5.6.6",
|
|
91
|
+
"@truedat/lm": "5.6.6",
|
|
92
92
|
"decode-uri-component": "^0.2.2",
|
|
93
93
|
"file-saver": "^2.0.5",
|
|
94
94
|
"moment": "^2.29.4",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"react-dom": ">= 16.8.6 < 17",
|
|
112
112
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "cf0b90c6409291b1b345dd0279b6f2c76bf8416d"
|
|
115
115
|
}
|
|
@@ -12,7 +12,7 @@ const foo = {
|
|
|
12
12
|
system: {
|
|
13
13
|
external_id: "oracle",
|
|
14
14
|
id: 11,
|
|
15
|
-
name: "oracle"
|
|
15
|
+
name: "oracle",
|
|
16
16
|
},
|
|
17
17
|
tags: [],
|
|
18
18
|
updated_at: "2020-05-20 13:24:33Z",
|
|
@@ -21,14 +21,14 @@ const foo = {
|
|
|
21
21
|
create_link: {
|
|
22
22
|
href: "/api/business_concept_versions/11/links",
|
|
23
23
|
input: {},
|
|
24
|
-
method: "POST"
|
|
24
|
+
method: "POST",
|
|
25
25
|
},
|
|
26
26
|
delete: {
|
|
27
27
|
href: "/api/business_concept_versions/20/links/11",
|
|
28
28
|
input: {},
|
|
29
|
-
method: "DELETE"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
29
|
+
method: "DELETE",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
const bar = {
|
|
@@ -42,7 +42,7 @@ const bar = {
|
|
|
42
42
|
system: {
|
|
43
43
|
external_id: "oracle",
|
|
44
44
|
id: 11,
|
|
45
|
-
name: "oracle"
|
|
45
|
+
name: "oracle",
|
|
46
46
|
},
|
|
47
47
|
tags: [],
|
|
48
48
|
type: "Column",
|
|
@@ -50,20 +50,20 @@ const bar = {
|
|
|
50
50
|
data_structure_type: {
|
|
51
51
|
structure_type: "Column",
|
|
52
52
|
template_id: 1,
|
|
53
|
-
translation: "Columna 1"
|
|
53
|
+
translation: "Columna 1",
|
|
54
54
|
},
|
|
55
55
|
_actions: {
|
|
56
56
|
create_link: {
|
|
57
57
|
href: "/api/business_concept_versions/12/links",
|
|
58
58
|
input: {},
|
|
59
|
-
method: "POST"
|
|
59
|
+
method: "POST",
|
|
60
60
|
},
|
|
61
61
|
delete: {
|
|
62
62
|
href: "/api/business_concept_versions/20/links/12",
|
|
63
63
|
input: {},
|
|
64
|
-
method: "DELETE"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
64
|
+
method: "DELETE",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
67
|
};
|
|
68
68
|
const baz = {
|
|
69
69
|
business_concept_version_id: 20,
|
|
@@ -76,7 +76,7 @@ const baz = {
|
|
|
76
76
|
system: {
|
|
77
77
|
external_id: "oracle",
|
|
78
78
|
id: 11,
|
|
79
|
-
name: "oracle"
|
|
79
|
+
name: "oracle",
|
|
80
80
|
},
|
|
81
81
|
tags: ["business_concept_to_field_master"],
|
|
82
82
|
type: "Column",
|
|
@@ -84,41 +84,41 @@ const baz = {
|
|
|
84
84
|
data_structure_type: {
|
|
85
85
|
structure_type: "Column",
|
|
86
86
|
template_id: 1,
|
|
87
|
-
translation: "Columna 1"
|
|
87
|
+
translation: "Columna 1",
|
|
88
88
|
},
|
|
89
89
|
_actions: {
|
|
90
90
|
create_link: {
|
|
91
91
|
href: "/api/business_concept_versions/14/links",
|
|
92
92
|
input: {},
|
|
93
|
-
method: "POST"
|
|
93
|
+
method: "POST",
|
|
94
94
|
},
|
|
95
95
|
delete: {
|
|
96
96
|
href: "/api/business_concept_versions/20/links/14",
|
|
97
97
|
input: {},
|
|
98
|
-
method: "DELETE"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
98
|
+
method: "DELETE",
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
101
|
};
|
|
102
102
|
const conceptLinks = [foo, bar, baz];
|
|
103
103
|
const structuresColumns = [
|
|
104
104
|
{
|
|
105
105
|
name: "name",
|
|
106
106
|
sort: {
|
|
107
|
-
name: "name.sort"
|
|
107
|
+
name: "name.sort",
|
|
108
108
|
},
|
|
109
|
-
width: 2
|
|
109
|
+
width: 2,
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
name: "type",
|
|
113
|
-
width: 1
|
|
114
|
-
}
|
|
113
|
+
width: 1,
|
|
114
|
+
},
|
|
115
115
|
];
|
|
116
116
|
const structureTypes = [
|
|
117
117
|
{
|
|
118
118
|
structure_type: "Column",
|
|
119
119
|
template_id: 1,
|
|
120
|
-
translation: "Columna 1"
|
|
121
|
-
}
|
|
120
|
+
translation: "Columna 1",
|
|
121
|
+
},
|
|
122
122
|
];
|
|
123
123
|
|
|
124
124
|
describe("selectors: getConceptLinks", () => {
|
|
@@ -127,13 +127,12 @@ describe("selectors: getConceptLinks", () => {
|
|
|
127
127
|
it("should return all links", () => {
|
|
128
128
|
const links = _.flow(getConceptLinks, _.map(_.last))(state);
|
|
129
129
|
expect(links).toEqual([
|
|
130
|
-
["
|
|
131
|
-
["
|
|
132
|
-
["deleted", [foo]]
|
|
130
|
+
["undefined", [bar, baz]],
|
|
131
|
+
["deleted", [foo]],
|
|
133
132
|
]);
|
|
134
133
|
});
|
|
135
134
|
it("should return the keys of the concept filters which are not currently active", () => {
|
|
136
135
|
const columns = _.flow(getConceptLinks, _.map(_.first))(state);
|
|
137
|
-
expect(_.map(_.size)(columns)).toEqual([3, 3
|
|
136
|
+
expect(_.map(_.size)(columns)).toEqual([3, 3]);
|
|
138
137
|
});
|
|
139
138
|
});
|
|
@@ -96,7 +96,7 @@ const conceptLinks = (links, columns) =>
|
|
|
96
96
|
_.flow(
|
|
97
97
|
orderedLinks,
|
|
98
98
|
_.filter(({ deleted_at }) => _.isEmpty(deleted_at)),
|
|
99
|
-
_.groupBy(
|
|
99
|
+
_.groupBy("\uffee"),
|
|
100
100
|
_.toPairs,
|
|
101
101
|
_.sortBy(([k]) => k),
|
|
102
102
|
_.map((pair) => withHeaders(pair, columns))
|
package/src/messages/en.js
CHANGED
|
@@ -74,7 +74,7 @@ export default {
|
|
|
74
74
|
"conceptRelation.implementation.actions.delete.confirmation.content":
|
|
75
75
|
"You are going to delete this link. Are you sure?",
|
|
76
76
|
"conceptRelation.master": "Master relation",
|
|
77
|
-
"conceptRelation.master.table.title": "
|
|
77
|
+
"conceptRelation.master.table.title": "Links to Structures",
|
|
78
78
|
"conceptDeletedRelation.table.title": "Deleted Structures",
|
|
79
79
|
"conceptRelation.ou": "Domain",
|
|
80
80
|
"conceptRelation.ou.placeholder": "Select Domain",
|
package/src/messages/es.js
CHANGED
|
@@ -75,7 +75,7 @@ export default {
|
|
|
75
75
|
"conceptRelation.implementation.actions.delete.confirmation.content":
|
|
76
76
|
"Se eliminará la relación con la implementacion. ¿Está seguro?",
|
|
77
77
|
"conceptRelation.master": "Relación master",
|
|
78
|
-
"conceptRelation.master.table.title": "
|
|
78
|
+
"conceptRelation.master.table.title": "Enlaces a Estructuras",
|
|
79
79
|
"conceptDeletedRelation.table.title": "Estructuras Eliminadas",
|
|
80
80
|
"conceptRelation.ou": "Dominio",
|
|
81
81
|
"conceptRelation.ou.placeholder": "Seleccionar Dominio",
|