@truedat/bg 5.8.0 → 5.8.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/package.json +6 -6
- package/src/concepts/components/ConceptLinksDropdownSelector.js +55 -0
- package/src/concepts/components/ConceptsLinksManagement.js +201 -97
- package/src/concepts/components/__tests__/ConceptLinksManagement.spec.js +0 -1
- package/src/concepts/components/__tests__/__snapshots__/ConceptLinksManagement.spec.js.snap +65 -1
- package/src/concepts/relations/components/ConceptRelationForm.js +55 -91
- package/src/concepts/relations/components/ConceptSelector.js +28 -1
- package/src/concepts/relations/components/__tests__/ConceptRelationForm.spec.js +103 -64
- package/src/concepts/relations/components/__tests__/__snapshots__/ConceptRelationForm.spec.js.snap +189 -51
- package/src/messages/en.js +6 -3
- package/src/messages/es.js +6 -3
package/src/concepts/relations/components/__tests__/__snapshots__/ConceptRelationForm.spec.js.snap
CHANGED
|
@@ -1,61 +1,199 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`<ConceptRelationForm /> matches the latest snapshot 1`] = `
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
|
|
4
|
+
<div>
|
|
5
|
+
<div
|
|
6
|
+
class="field concept-relation-form"
|
|
7
|
+
style="display: none;"
|
|
8
|
+
/>
|
|
9
|
+
<label
|
|
10
|
+
style="display: none;"
|
|
11
|
+
>
|
|
12
|
+
Related concept
|
|
13
|
+
</label>
|
|
14
|
+
<div
|
|
15
|
+
class="ui segment"
|
|
16
|
+
style="display: none;"
|
|
7
17
|
>
|
|
8
|
-
<label>
|
|
9
|
-
<MemoizedFormattedMessage
|
|
10
|
-
id="conceptRelations.relationType"
|
|
11
|
-
/>
|
|
12
|
-
</label>
|
|
13
18
|
<div
|
|
14
|
-
|
|
15
|
-
key="0"
|
|
19
|
+
class="ui action left icon input"
|
|
16
20
|
>
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
<input
|
|
22
|
+
placeholder="Search concepts..."
|
|
23
|
+
type="text"
|
|
24
|
+
value=""
|
|
25
|
+
/>
|
|
26
|
+
<i
|
|
27
|
+
aria-hidden="true"
|
|
28
|
+
class="search link icon"
|
|
24
29
|
/>
|
|
30
|
+
<div
|
|
31
|
+
aria-expanded="false"
|
|
32
|
+
class="ui button floating labeled scrolling dropdown icon"
|
|
33
|
+
role="listbox"
|
|
34
|
+
tabindex="0"
|
|
35
|
+
>
|
|
36
|
+
<div
|
|
37
|
+
aria-atomic="true"
|
|
38
|
+
aria-live="polite"
|
|
39
|
+
class="divider text"
|
|
40
|
+
role="alert"
|
|
41
|
+
>
|
|
42
|
+
Filters
|
|
43
|
+
</div>
|
|
44
|
+
<i
|
|
45
|
+
aria-hidden="true"
|
|
46
|
+
class="filter icon"
|
|
47
|
+
/>
|
|
48
|
+
<div
|
|
49
|
+
class="menu transition"
|
|
50
|
+
>
|
|
51
|
+
<div
|
|
52
|
+
class="item"
|
|
53
|
+
role="option"
|
|
54
|
+
>
|
|
55
|
+
<em>
|
|
56
|
+
(reset filters)
|
|
57
|
+
</em>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
25
61
|
</div>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
62
|
+
<div
|
|
63
|
+
class="selectedFilters"
|
|
64
|
+
>
|
|
65
|
+
<div
|
|
66
|
+
class="appliedFilters"
|
|
67
|
+
>
|
|
68
|
+
applied filters
|
|
69
|
+
</div>
|
|
70
|
+
<div
|
|
71
|
+
aria-expanded="false"
|
|
72
|
+
class="ui floating item scrolling dropdown"
|
|
73
|
+
role="listbox"
|
|
74
|
+
tabindex="0"
|
|
75
|
+
>
|
|
76
|
+
<div
|
|
77
|
+
class="ui label"
|
|
78
|
+
>
|
|
79
|
+
filter
|
|
80
|
+
<i
|
|
81
|
+
aria-hidden="true"
|
|
82
|
+
class="delete icon"
|
|
83
|
+
/>
|
|
84
|
+
</div>
|
|
85
|
+
<div
|
|
86
|
+
class="menu transition dimmable"
|
|
50
87
|
/>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
88
|
+
</div>
|
|
89
|
+
<a
|
|
90
|
+
class="resetFilters"
|
|
91
|
+
>
|
|
92
|
+
clear filters
|
|
93
|
+
</a>
|
|
94
|
+
<a
|
|
95
|
+
class="resetFilters"
|
|
96
|
+
>
|
|
97
|
+
save filters
|
|
98
|
+
</a>
|
|
99
|
+
</div>
|
|
100
|
+
<table
|
|
101
|
+
class="ui small selectable table"
|
|
102
|
+
>
|
|
103
|
+
<thead
|
|
104
|
+
class=""
|
|
105
|
+
>
|
|
106
|
+
<tr
|
|
107
|
+
class=""
|
|
108
|
+
>
|
|
109
|
+
<th
|
|
110
|
+
class=""
|
|
111
|
+
>
|
|
112
|
+
Term
|
|
113
|
+
</th>
|
|
114
|
+
<th
|
|
115
|
+
class=""
|
|
116
|
+
>
|
|
117
|
+
Domain
|
|
118
|
+
</th>
|
|
119
|
+
<th
|
|
120
|
+
class=""
|
|
121
|
+
>
|
|
122
|
+
Status
|
|
123
|
+
</th>
|
|
124
|
+
</tr>
|
|
125
|
+
</thead>
|
|
126
|
+
<tbody
|
|
127
|
+
class=""
|
|
128
|
+
>
|
|
129
|
+
<tr
|
|
130
|
+
class=""
|
|
131
|
+
>
|
|
132
|
+
<td
|
|
133
|
+
class=""
|
|
134
|
+
>
|
|
135
|
+
foo concept
|
|
136
|
+
</td>
|
|
137
|
+
<td
|
|
138
|
+
class=""
|
|
139
|
+
>
|
|
140
|
+
foo domain
|
|
141
|
+
</td>
|
|
142
|
+
<td
|
|
143
|
+
class=""
|
|
144
|
+
>
|
|
145
|
+
<div
|
|
146
|
+
class="ui green label"
|
|
147
|
+
>
|
|
148
|
+
Published
|
|
149
|
+
</div>
|
|
150
|
+
</td>
|
|
151
|
+
</tr>
|
|
152
|
+
<tr
|
|
153
|
+
class=""
|
|
154
|
+
>
|
|
155
|
+
<td
|
|
156
|
+
class=""
|
|
157
|
+
>
|
|
158
|
+
bar concept
|
|
159
|
+
</td>
|
|
160
|
+
<td
|
|
161
|
+
class=""
|
|
162
|
+
>
|
|
163
|
+
foo domain
|
|
164
|
+
</td>
|
|
165
|
+
<td
|
|
166
|
+
class=""
|
|
167
|
+
>
|
|
168
|
+
<div
|
|
169
|
+
class="ui olive label"
|
|
170
|
+
>
|
|
171
|
+
Draft
|
|
172
|
+
</div>
|
|
173
|
+
</td>
|
|
174
|
+
</tr>
|
|
175
|
+
</tbody>
|
|
176
|
+
</table>
|
|
177
|
+
</div>
|
|
178
|
+
<div
|
|
179
|
+
class="ui buttons"
|
|
180
|
+
style="display: none;"
|
|
181
|
+
>
|
|
182
|
+
<button
|
|
183
|
+
class="ui primary disabled button"
|
|
184
|
+
disabled=""
|
|
185
|
+
tabindex="-1"
|
|
186
|
+
>
|
|
187
|
+
create
|
|
188
|
+
</button>
|
|
189
|
+
<a
|
|
190
|
+
class="ui secondary button"
|
|
191
|
+
href="/"
|
|
192
|
+
role="button"
|
|
193
|
+
>
|
|
194
|
+
cancel
|
|
195
|
+
</a>
|
|
196
|
+
</div>
|
|
197
|
+
lazy
|
|
198
|
+
</div>
|
|
61
199
|
`;
|
package/src/messages/en.js
CHANGED
|
@@ -15,8 +15,6 @@ export default {
|
|
|
15
15
|
"bulkUpdate.no.concepts.header": "Empty Search",
|
|
16
16
|
business_concept_to_field_master: "Master Relation",
|
|
17
17
|
"conceptDomain.actions.update": "Update",
|
|
18
|
-
"conceptRelations.relationType.business_concept_to_field_master":
|
|
19
|
-
"Master Relation",
|
|
20
18
|
"concept.error.existing.business.concept":
|
|
21
19
|
"({text}) There is already a business term with the indicated name",
|
|
22
20
|
"domain.error.domain.existing.external_id":
|
|
@@ -60,6 +58,7 @@ export default {
|
|
|
60
58
|
"concept.changeDomain.label": "Domain",
|
|
61
59
|
"implementationDeletedRelation.table.title": "Deleted Implementations",
|
|
62
60
|
"implementationRelation.table.title": "Link to Implementation",
|
|
61
|
+
"conceptDeletedRelation.table.title": "Deleted Structures",
|
|
63
62
|
"conceptRelation.actions.create": "New Link",
|
|
64
63
|
"conceptRelation.actions.delete.confirmation.content":
|
|
65
64
|
"The Concept will be unlinked from the field. Are you sure?",
|
|
@@ -75,7 +74,6 @@ export default {
|
|
|
75
74
|
"You are going to delete this link. Are you sure?",
|
|
76
75
|
"conceptRelation.master": "Master relation",
|
|
77
76
|
"conceptRelation.master.table.title": "Links to Structures",
|
|
78
|
-
"conceptDeletedRelation.table.title": "Deleted Structures",
|
|
79
77
|
"conceptRelation.ou": "Domain",
|
|
80
78
|
"conceptRelation.ou.placeholder": "Select Domain",
|
|
81
79
|
"conceptRelation.structure": "Structure",
|
|
@@ -88,14 +86,19 @@ export default {
|
|
|
88
86
|
"conceptRelation.target": "Field",
|
|
89
87
|
"conceptRelations.empty":
|
|
90
88
|
"This concept is not currently linked to any concept",
|
|
89
|
+
"conceptRelations.from": "From",
|
|
90
|
+
"conceptRelations.linkType": "Link type",
|
|
91
91
|
"conceptRelations.relatedConcept": "Related concept",
|
|
92
92
|
"conceptRelations.relationType": "Relation type",
|
|
93
|
+
"conceptRelations.relationType.business_concept_to_field_master":
|
|
94
|
+
"Master Relation",
|
|
93
95
|
"conceptRelations.concept": "Concept",
|
|
94
96
|
"conceptRelations.concepts": "Concepts",
|
|
95
97
|
"conceptRelations.structure": "Structure",
|
|
96
98
|
"conceptRelations.structures": "Structures",
|
|
97
99
|
"conceptRelations.tag": "Tag",
|
|
98
100
|
"conceptRelations.tags": "Tags",
|
|
101
|
+
"conceptRelations.to": "To",
|
|
99
102
|
"concepts.actions.bulk_update.popup":
|
|
100
103
|
"You should select only one type in filters",
|
|
101
104
|
"concepts.actions.create": "New Concept",
|
package/src/messages/es.js
CHANGED
|
@@ -17,8 +17,6 @@ export default {
|
|
|
17
17
|
"bulkUpdate.no.concepts.header": "Búsqueda vacía",
|
|
18
18
|
business_concept_to_field_master: "Relación master",
|
|
19
19
|
"conceptDomain.actions.update": "Actualizar",
|
|
20
|
-
"conceptRelations.relationType.business_concept_to_field_master":
|
|
21
|
-
"Relación master",
|
|
22
20
|
"concept.error.existing.business.concept":
|
|
23
21
|
"({text}) Ya existe un termino de negocio con el nombre indicado",
|
|
24
22
|
"domain.error.domain.existing.external_id":
|
|
@@ -62,6 +60,7 @@ export default {
|
|
|
62
60
|
"concept.changeDomain.header": "Editar Dominio",
|
|
63
61
|
"implementationDeletedRelation.table.title": "Implementaciones Eliminadas",
|
|
64
62
|
"implementationRelation.table.title": "Relaciones a Implementación",
|
|
63
|
+
"conceptDeletedRelation.table.title": "Estructuras Eliminadas",
|
|
65
64
|
"conceptRelation.actions.create": "Crear vínculo",
|
|
66
65
|
"conceptRelation.actions.delete.confirmation.content":
|
|
67
66
|
"Se eliminará esta vinculación. ¿Estás seguro?",
|
|
@@ -76,7 +75,6 @@ export default {
|
|
|
76
75
|
"Se eliminará la relación con la implementacion. ¿Está seguro?",
|
|
77
76
|
"conceptRelation.master": "Relación master",
|
|
78
77
|
"conceptRelation.master.table.title": "Enlaces a Estructuras",
|
|
79
|
-
"conceptDeletedRelation.table.title": "Estructuras Eliminadas",
|
|
80
78
|
"conceptRelation.ou": "Dominio",
|
|
81
79
|
"conceptRelation.ou.placeholder": "Seleccionar Dominio",
|
|
82
80
|
"conceptRelation.structure": "Estructura",
|
|
@@ -87,14 +85,19 @@ export default {
|
|
|
87
85
|
"conceptRelation.target": "Campo",
|
|
88
86
|
"conceptRelations.empty":
|
|
89
87
|
"Este concepto no tiene conceptos relacionados actualmente",
|
|
88
|
+
"conceptRelations.from": "Origen",
|
|
89
|
+
"conceptRelations.linkType": "Tipo de enlace",
|
|
90
90
|
"conceptRelations.relatedConcept": "Concepto relacionado",
|
|
91
91
|
"conceptRelations.relationType": "Tipo de relación",
|
|
92
|
+
"conceptRelations.relationType.business_concept_to_field_master":
|
|
93
|
+
"Relación master",
|
|
92
94
|
"conceptRelations.concept": "Concepto",
|
|
93
95
|
"conceptRelations.concepts": "Conceptos",
|
|
94
96
|
"conceptRelations.structure": "Estructura",
|
|
95
97
|
"conceptRelations.structures": "Estructuras",
|
|
96
98
|
"conceptRelations.tag": "Etiqueta",
|
|
97
99
|
"conceptRelations.tags": "Etiquetas",
|
|
100
|
+
"conceptRelations.to": "Destino",
|
|
98
101
|
"concepts.actions.bulk_update.popup":
|
|
99
102
|
"Seleccione un único tipo en los filtros",
|
|
100
103
|
"concepts.actions.create": "Nuevo Concepto",
|