@truedat/bg 6.1.5 → 6.2.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 +6 -6
- package/src/concepts/components/ConceptCompleteness.js +88 -10
- package/src/concepts/components/ConceptCreate.js +116 -0
- package/src/concepts/components/ConceptCrumbs.js +15 -5
- package/src/concepts/components/ConceptDetails.js +80 -9
- package/src/concepts/components/ConceptEdit.js +86 -134
- package/src/concepts/components/ConceptForm.js +68 -112
- package/src/concepts/components/ConceptFormTabs.js +75 -0
- package/src/concepts/components/ConceptForms.js +196 -0
- package/src/concepts/components/ConceptHeader.js +8 -10
- package/src/concepts/components/ConceptRoutes.js +2 -2
- package/src/concepts/components/__tests__/ConceptDetails.spec.js +11 -7
- package/src/concepts/components/__tests__/ConceptForm.spec.js +62 -45
- package/src/concepts/components/__tests__/__snapshots__/ConceptCompleteness.spec.js.snap +1 -39
- package/src/concepts/components/__tests__/__snapshots__/ConceptDetails.spec.js.snap +5 -15
- package/src/concepts/components/__tests__/__snapshots__/ConceptForm.spec.js.snap +172 -202
- package/src/concepts/components/__tests__/__snapshots__/ConceptsBulkUpdate.spec.js.snap +1 -0
- package/src/concepts/components/__tests__/__snapshots__/SharedToForm.spec.js.snap +1 -0
- package/src/concepts/index.js +1 -0
- package/src/concepts/reducers/concept.js +3 -2
- package/src/concepts/styles/conceptForms.less +12 -0
- package/src/messages/en.js +0 -1
- package/src/messages/es.js +0 -1
|
@@ -1,249 +1,219 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`<ConceptForm /> with
|
|
3
|
+
exports[`<ConceptForm /> with multiple templates matches the latest snapshot 1`] = `
|
|
4
4
|
<div>
|
|
5
|
-
<
|
|
6
|
-
class="ui
|
|
5
|
+
<form
|
|
6
|
+
class="ui form"
|
|
7
|
+
style=""
|
|
7
8
|
>
|
|
8
|
-
<
|
|
9
|
-
class="
|
|
9
|
+
<div
|
|
10
|
+
class="disabled required field fix-dropdown-selector"
|
|
10
11
|
>
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/>
|
|
12
|
+
<label>
|
|
13
|
+
Domain
|
|
14
|
+
</label>
|
|
15
15
|
<div
|
|
16
|
-
|
|
16
|
+
aria-disabled="true"
|
|
17
|
+
aria-expanded="false"
|
|
18
|
+
aria-multiselectable="false"
|
|
19
|
+
class="ui disabled floating dropdown"
|
|
20
|
+
required=""
|
|
21
|
+
role="listbox"
|
|
22
|
+
tabindex="-1"
|
|
17
23
|
>
|
|
18
|
-
New Concept
|
|
19
|
-
</div>
|
|
20
|
-
</h2>
|
|
21
|
-
<form
|
|
22
|
-
class="ui loading form"
|
|
23
|
-
>
|
|
24
|
-
<h3
|
|
25
|
-
class="ui header"
|
|
26
|
-
>
|
|
27
|
-
Required fields for creating
|
|
28
|
-
</h3>
|
|
29
|
-
<div
|
|
30
|
-
class="required field"
|
|
31
|
-
>
|
|
32
|
-
<label>
|
|
33
|
-
Term
|
|
34
|
-
<div
|
|
35
|
-
class="ui left pointing label"
|
|
36
|
-
>
|
|
37
|
-
Empty required field
|
|
38
|
-
</div>
|
|
39
|
-
</label>
|
|
40
24
|
<div
|
|
41
|
-
class="
|
|
25
|
+
class="ui label"
|
|
26
|
+
>
|
|
27
|
+
fooDomain
|
|
28
|
+
</div>
|
|
29
|
+
<i
|
|
30
|
+
aria-hidden="true"
|
|
31
|
+
class="dropdown icon"
|
|
32
|
+
/>
|
|
33
|
+
<div
|
|
34
|
+
class="menu transition"
|
|
42
35
|
>
|
|
43
36
|
<div
|
|
44
|
-
class="ui input"
|
|
37
|
+
class="ui left icon input search"
|
|
45
38
|
>
|
|
46
39
|
<input
|
|
47
|
-
name="name"
|
|
48
40
|
type="text"
|
|
49
|
-
|
|
41
|
+
/>
|
|
42
|
+
<i
|
|
43
|
+
aria-hidden="true"
|
|
44
|
+
class="search icon"
|
|
50
45
|
/>
|
|
51
46
|
</div>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
<div
|
|
55
|
-
class="actions"
|
|
56
|
-
>
|
|
57
|
-
<a
|
|
58
|
-
class="ui secondary button"
|
|
59
|
-
href="/"
|
|
60
|
-
role="button"
|
|
61
|
-
>
|
|
62
|
-
Cancel
|
|
63
|
-
</a>
|
|
64
|
-
<button
|
|
65
|
-
class="ui primary disabled button"
|
|
66
|
-
disabled=""
|
|
67
|
-
tabindex="-1"
|
|
68
|
-
>
|
|
69
|
-
Create
|
|
70
|
-
</button>
|
|
71
|
-
</div>
|
|
72
|
-
</form>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
`;
|
|
76
|
-
|
|
77
|
-
exports[`<ConceptForm /> with multiple templates matches the latest snapshot 1`] = `
|
|
78
|
-
<div>
|
|
79
|
-
<div
|
|
80
|
-
class="ui segment ui text container"
|
|
81
|
-
style=""
|
|
82
|
-
>
|
|
83
|
-
<h2
|
|
84
|
-
class="ui header"
|
|
85
|
-
>
|
|
86
|
-
<i
|
|
87
|
-
aria-hidden="true"
|
|
88
|
-
class="book icon"
|
|
89
|
-
/>
|
|
90
|
-
<div
|
|
91
|
-
class="content"
|
|
92
|
-
>
|
|
93
|
-
New Concept
|
|
94
|
-
</div>
|
|
95
|
-
</h2>
|
|
96
|
-
<form
|
|
97
|
-
class="ui form"
|
|
98
|
-
>
|
|
99
|
-
<h3
|
|
100
|
-
class="ui header"
|
|
101
|
-
>
|
|
102
|
-
Required fields for creating
|
|
103
|
-
</h3>
|
|
104
|
-
<div
|
|
105
|
-
class="required field fix-dropdown-selector"
|
|
106
|
-
>
|
|
107
|
-
<label>
|
|
108
|
-
Domain
|
|
109
|
-
</label>
|
|
110
|
-
<div
|
|
111
|
-
aria-expanded="false"
|
|
112
|
-
aria-multiselectable="false"
|
|
113
|
-
class="ui floating dropdown"
|
|
114
|
-
required=""
|
|
115
|
-
role="listbox"
|
|
116
|
-
tabindex="0"
|
|
117
|
-
>
|
|
118
|
-
<label>
|
|
119
|
-
Select a domain...
|
|
120
|
-
</label>
|
|
121
|
-
<i
|
|
122
|
-
aria-hidden="true"
|
|
123
|
-
class="dropdown icon"
|
|
124
|
-
/>
|
|
125
47
|
<div
|
|
126
|
-
class="menu transition"
|
|
48
|
+
class="scrolling menu transition"
|
|
127
49
|
>
|
|
128
50
|
<div
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
type="text"
|
|
133
|
-
/>
|
|
134
|
-
<i
|
|
135
|
-
aria-hidden="true"
|
|
136
|
-
class="search icon"
|
|
137
|
-
/>
|
|
138
|
-
</div>
|
|
139
|
-
<div
|
|
140
|
-
class="scrolling menu transition"
|
|
51
|
+
aria-selected="false"
|
|
52
|
+
class="item"
|
|
53
|
+
role="option"
|
|
141
54
|
>
|
|
142
55
|
<div
|
|
143
|
-
|
|
144
|
-
class="item"
|
|
145
|
-
role="option"
|
|
56
|
+
style="margin-left: 0px;"
|
|
146
57
|
>
|
|
147
|
-
<
|
|
148
|
-
|
|
58
|
+
<i
|
|
59
|
+
aria-hidden="true"
|
|
60
|
+
class="plus icon"
|
|
61
|
+
/>
|
|
62
|
+
<span
|
|
63
|
+
style="opacity: 1;"
|
|
149
64
|
>
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
class="plus icon"
|
|
153
|
-
/>
|
|
154
|
-
<span
|
|
155
|
-
style="opacity: 1;"
|
|
156
|
-
>
|
|
157
|
-
barDomain
|
|
158
|
-
</span>
|
|
159
|
-
</div>
|
|
65
|
+
barDomain
|
|
66
|
+
</span>
|
|
160
67
|
</div>
|
|
68
|
+
</div>
|
|
69
|
+
<div
|
|
70
|
+
aria-selected="false"
|
|
71
|
+
class="item"
|
|
72
|
+
role="option"
|
|
73
|
+
>
|
|
161
74
|
<div
|
|
162
|
-
|
|
163
|
-
class="item"
|
|
164
|
-
role="option"
|
|
75
|
+
style="margin-left: 0px;"
|
|
165
76
|
>
|
|
166
|
-
<
|
|
167
|
-
|
|
77
|
+
<i
|
|
78
|
+
aria-hidden="true"
|
|
79
|
+
class="icon"
|
|
80
|
+
/>
|
|
81
|
+
<span
|
|
82
|
+
style="opacity: 1;"
|
|
168
83
|
>
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
class="icon"
|
|
172
|
-
/>
|
|
173
|
-
<span
|
|
174
|
-
style="opacity: 1;"
|
|
175
|
-
>
|
|
176
|
-
bazDomain
|
|
177
|
-
</span>
|
|
178
|
-
</div>
|
|
84
|
+
bazDomain
|
|
85
|
+
</span>
|
|
179
86
|
</div>
|
|
87
|
+
</div>
|
|
88
|
+
<div
|
|
89
|
+
aria-selected="true"
|
|
90
|
+
class="selected item"
|
|
91
|
+
role="option"
|
|
92
|
+
>
|
|
180
93
|
<div
|
|
181
|
-
|
|
182
|
-
class="item"
|
|
183
|
-
role="option"
|
|
94
|
+
style="margin-left: 0px;"
|
|
184
95
|
>
|
|
185
|
-
<
|
|
186
|
-
|
|
96
|
+
<i
|
|
97
|
+
aria-hidden="true"
|
|
98
|
+
class="icon"
|
|
99
|
+
/>
|
|
100
|
+
<span
|
|
101
|
+
style="opacity: 1;"
|
|
187
102
|
>
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
class="icon"
|
|
191
|
-
/>
|
|
192
|
-
<span
|
|
193
|
-
style="opacity: 1;"
|
|
194
|
-
>
|
|
195
|
-
fooDomain
|
|
196
|
-
</span>
|
|
197
|
-
</div>
|
|
103
|
+
fooDomain
|
|
104
|
+
</span>
|
|
198
105
|
</div>
|
|
199
106
|
</div>
|
|
200
107
|
</div>
|
|
201
108
|
</div>
|
|
202
109
|
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<div
|
|
112
|
+
class="required field"
|
|
113
|
+
>
|
|
114
|
+
<label>
|
|
115
|
+
Term
|
|
116
|
+
<div
|
|
117
|
+
class="ui left pointing label"
|
|
118
|
+
>
|
|
119
|
+
Empty required field
|
|
120
|
+
</div>
|
|
121
|
+
</label>
|
|
203
122
|
<div
|
|
204
|
-
class="
|
|
123
|
+
class="field"
|
|
205
124
|
>
|
|
206
|
-
<label>
|
|
207
|
-
Term
|
|
208
|
-
<div
|
|
209
|
-
class="ui left pointing label"
|
|
210
|
-
>
|
|
211
|
-
Empty required field
|
|
212
|
-
</div>
|
|
213
|
-
</label>
|
|
214
125
|
<div
|
|
215
|
-
class="
|
|
126
|
+
class="ui input"
|
|
216
127
|
>
|
|
217
|
-
<
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
type="text"
|
|
223
|
-
value=""
|
|
224
|
-
/>
|
|
225
|
-
</div>
|
|
128
|
+
<input
|
|
129
|
+
name="name"
|
|
130
|
+
type="text"
|
|
131
|
+
value=""
|
|
132
|
+
/>
|
|
226
133
|
</div>
|
|
227
134
|
</div>
|
|
135
|
+
</div>
|
|
136
|
+
<div
|
|
137
|
+
class="required field"
|
|
138
|
+
>
|
|
139
|
+
<label>
|
|
140
|
+
Template
|
|
141
|
+
<div
|
|
142
|
+
class="ui left pointing label"
|
|
143
|
+
>
|
|
144
|
+
Empty required field
|
|
145
|
+
</div>
|
|
146
|
+
</label>
|
|
228
147
|
<div
|
|
229
|
-
class="
|
|
148
|
+
class="disabled field"
|
|
230
149
|
>
|
|
231
|
-
<
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
<button
|
|
239
|
-
class="ui primary disabled button"
|
|
240
|
-
disabled=""
|
|
241
|
-
tabindex="-1"
|
|
150
|
+
<div
|
|
151
|
+
aria-busy="false"
|
|
152
|
+
aria-disabled="true"
|
|
153
|
+
aria-expanded="false"
|
|
154
|
+
class="ui disabled search selection dropdown"
|
|
155
|
+
name="template"
|
|
156
|
+
role="combobox"
|
|
242
157
|
>
|
|
243
|
-
|
|
244
|
-
|
|
158
|
+
<input
|
|
159
|
+
aria-autocomplete="list"
|
|
160
|
+
autocomplete="off"
|
|
161
|
+
class="search"
|
|
162
|
+
tabindex="-1"
|
|
163
|
+
type="text"
|
|
164
|
+
value=""
|
|
165
|
+
/>
|
|
166
|
+
<div
|
|
167
|
+
aria-atomic="true"
|
|
168
|
+
aria-live="polite"
|
|
169
|
+
class="divider default text"
|
|
170
|
+
role="alert"
|
|
171
|
+
>
|
|
172
|
+
Select a template...
|
|
173
|
+
</div>
|
|
174
|
+
<i
|
|
175
|
+
aria-hidden="true"
|
|
176
|
+
class="dropdown icon"
|
|
177
|
+
/>
|
|
178
|
+
<div
|
|
179
|
+
class="menu transition"
|
|
180
|
+
role="listbox"
|
|
181
|
+
>
|
|
182
|
+
<div
|
|
183
|
+
aria-checked="false"
|
|
184
|
+
aria-selected="true"
|
|
185
|
+
class="selected item"
|
|
186
|
+
role="option"
|
|
187
|
+
style="pointer-events: all;"
|
|
188
|
+
>
|
|
189
|
+
<span
|
|
190
|
+
class="text"
|
|
191
|
+
>
|
|
192
|
+
template1
|
|
193
|
+
</span>
|
|
194
|
+
</div>
|
|
195
|
+
<div
|
|
196
|
+
aria-checked="false"
|
|
197
|
+
aria-selected="false"
|
|
198
|
+
class="item"
|
|
199
|
+
role="option"
|
|
200
|
+
style="pointer-events: all;"
|
|
201
|
+
>
|
|
202
|
+
<span
|
|
203
|
+
class="text"
|
|
204
|
+
>
|
|
205
|
+
template2
|
|
206
|
+
</span>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
245
210
|
</div>
|
|
246
|
-
</
|
|
247
|
-
|
|
211
|
+
</div>
|
|
212
|
+
<h3
|
|
213
|
+
class="ui header"
|
|
214
|
+
>
|
|
215
|
+
Template fields (only required for publishing)
|
|
216
|
+
</h3>
|
|
217
|
+
</form>
|
|
248
218
|
</div>
|
|
249
219
|
`;
|
package/src/concepts/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
clearConcept,
|
|
4
4
|
conceptAction,
|
|
5
5
|
fetchConcept,
|
|
6
|
-
setConfidentialConcept
|
|
6
|
+
setConfidentialConcept,
|
|
7
7
|
} from "../routines";
|
|
8
8
|
|
|
9
9
|
const initialState = {};
|
|
@@ -29,7 +29,8 @@ const pickFields = _.pick([
|
|
|
29
29
|
"in_progress",
|
|
30
30
|
"link_count",
|
|
31
31
|
"rule_count",
|
|
32
|
-
"concept_count"
|
|
32
|
+
"concept_count",
|
|
33
|
+
"i18n_content",
|
|
33
34
|
]);
|
|
34
35
|
|
|
35
36
|
export const concept = (state = initialState, { type, payload, meta }) => {
|
package/src/messages/en.js
CHANGED
|
@@ -134,7 +134,6 @@ export default {
|
|
|
134
134
|
"concepts.edit.bulk.confirmation.header": "Bulk update",
|
|
135
135
|
"concepts.form.aditional_fields":
|
|
136
136
|
"Template fields (only required for publishing)",
|
|
137
|
-
"concepts.form.required_fields": "Required fields for creating",
|
|
138
137
|
"concepts.header": "Business Glossary",
|
|
139
138
|
"concepts.header.edit": "Edit Business Concept",
|
|
140
139
|
"concepts.header.edit.bulk": "Edit Business Concepts",
|
package/src/messages/es.js
CHANGED
|
@@ -131,7 +131,6 @@ export default {
|
|
|
131
131
|
"concepts.edit.bulk.confirmation.header": "Actualización masiva",
|
|
132
132
|
"concepts.form.aditional_fields":
|
|
133
133
|
"Campos de la plantilla (sólo requerido para publicar)",
|
|
134
|
-
"concepts.form.required_fields": "Campos obligatórios para grabar",
|
|
135
134
|
"concepts.header": "Glosario de conceptos",
|
|
136
135
|
"concepts.header.edit": "Editar Concepto",
|
|
137
136
|
"concepts.header.edit.bulk":
|