@truedat/bg 7.2.1 → 7.2.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.
Files changed (29) hide show
  1. package/package.json +6 -6
  2. package/src/concepts/components/ConceptsUploadButton.js +1 -1
  3. package/src/concepts/components/__tests__/ConceptManageDomain.spec.js +28 -4
  4. package/src/concepts/components/__tests__/__snapshots__/ConceptForm.spec.js.snap +10 -12
  5. package/src/concepts/components/__tests__/__snapshots__/ConceptManageDomain.spec.js.snap +58 -1
  6. package/src/concepts/components/__tests__/__snapshots__/ConceptsBulkUpdate.spec.js.snap +10 -12
  7. package/src/concepts/components/__tests__/__snapshots__/SharedToForm.spec.js.snap +10 -12
  8. package/src/messages/en.js +2 -0
  9. package/src/messages/es.js +2 -0
  10. package/src/taxonomy/components/Domain.js +11 -71
  11. package/src/taxonomy/components/DomainCards.js +113 -0
  12. package/src/taxonomy/components/DomainContent.js +119 -0
  13. package/src/taxonomy/components/DomainTabs.js +92 -40
  14. package/src/taxonomy/components/Domains.js +144 -25
  15. package/src/taxonomy/components/DomainsActions.js +4 -4
  16. package/src/taxonomy/components/__tests__/Domain.spec.js +127 -2
  17. package/src/taxonomy/components/__tests__/DomainCards.spec.js +148 -0
  18. package/src/taxonomy/components/__tests__/DomainContent.spec.js +168 -0
  19. package/src/taxonomy/components/__tests__/DomainTabs.spec.js +108 -0
  20. package/src/taxonomy/components/__tests__/Domains.spec.js +149 -2
  21. package/src/taxonomy/components/__tests__/DomainsActions.spec.js +15 -8
  22. package/src/taxonomy/components/__tests__/__snapshots__/Domain.spec.js.snap +8 -0
  23. package/src/taxonomy/components/__tests__/__snapshots__/DomainCards.spec.js.snap +291 -0
  24. package/src/taxonomy/components/__tests__/__snapshots__/DomainContent.spec.js.snap +305 -0
  25. package/src/taxonomy/components/__tests__/__snapshots__/DomainTabs.spec.js.snap +40 -0
  26. package/src/taxonomy/components/__tests__/__snapshots__/Domains.spec.js.snap +74 -4
  27. package/src/taxonomy/components/__tests__/__snapshots__/DomainsActions.spec.js.snap +13 -22
  28. package/src/taxonomy/styles/domainCards.less +4 -0
  29. package/src/taxonomy/styles/domains.less +15 -0
@@ -0,0 +1,291 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<DomainCards /> matches the latest snapshot domain with subdomain 1`] = `
4
+ <div>
5
+ <h4
6
+ class="ui header"
7
+ >
8
+ <div
9
+ class="content taxonomy-domains-domaincards-header-content"
10
+ >
11
+ <div>
12
+ <div
13
+ class="ui icon input"
14
+ >
15
+ <input
16
+ placeholder="Search domains..."
17
+ type="text"
18
+ value=""
19
+ />
20
+ <i
21
+ aria-hidden="true"
22
+ class="search icon"
23
+ />
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </h4>
28
+ <div
29
+ class="ui cards"
30
+ >
31
+ <a
32
+ class="ui link card"
33
+ href="/domains/4"
34
+ >
35
+ <div
36
+ class="content"
37
+ >
38
+ <div
39
+ class="header"
40
+ >
41
+ <i
42
+ aria-hidden="true"
43
+ class="cube icon"
44
+ />
45
+ subdomain
46
+ </div>
47
+ <div
48
+ class="meta"
49
+ >
50
+ <i
51
+ aria-hidden="true"
52
+ class="object group icon"
53
+ />
54
+
55
+ DomainGroup
56
+ <br />
57
+ <span>
58
+ Domain
59
+ </span>
60
+ </div>
61
+ </div>
62
+ <div
63
+ class="content"
64
+ />
65
+ <div
66
+ class="extra content"
67
+ >
68
+ <i
69
+ aria-hidden="true"
70
+ class="cubes icon"
71
+ />
72
+ Subdomains: 0
73
+ </div>
74
+ </a>
75
+ </div>
76
+ </div>
77
+ `;
78
+
79
+ exports[`<DomainCards /> matches the latest snapshot domain without subdomain 1`] = `
80
+ <div>
81
+ <h4
82
+ class="ui header"
83
+ >
84
+ <div
85
+ class="content taxonomy-domains-domaincards-header-content"
86
+ >
87
+ <div>
88
+ <div
89
+ class="ui icon input"
90
+ >
91
+ <input
92
+ placeholder="Search domains..."
93
+ type="text"
94
+ value=""
95
+ />
96
+ <i
97
+ aria-hidden="true"
98
+ class="search icon"
99
+ />
100
+ </div>
101
+ </div>
102
+ </div>
103
+ </h4>
104
+ <div
105
+ class="ui message"
106
+ >
107
+ <div
108
+ class="content"
109
+ >
110
+ <div
111
+ class="header"
112
+ >
113
+ No subdomains found
114
+ </div>
115
+ </div>
116
+ </div>
117
+ <div
118
+ class="ui cards"
119
+ />
120
+ </div>
121
+ `;
122
+
123
+ exports[`<DomainCards /> matches the latest snapshot front page 1`] = `
124
+ <div>
125
+ <h4
126
+ class="ui header"
127
+ >
128
+ <div
129
+ class="content taxonomy-domains-domaincards-header-content"
130
+ >
131
+ <div>
132
+ <div
133
+ class="ui icon input"
134
+ >
135
+ <input
136
+ placeholder="Search domains..."
137
+ type="text"
138
+ value=""
139
+ />
140
+ <i
141
+ aria-hidden="true"
142
+ class="search icon"
143
+ />
144
+ </div>
145
+ </div>
146
+ </div>
147
+ </h4>
148
+ <div
149
+ class="ui cards"
150
+ >
151
+ <a
152
+ class="ui link card"
153
+ href="/domains/1"
154
+ >
155
+ <div
156
+ class="content"
157
+ >
158
+ <div
159
+ class="header"
160
+ >
161
+ <i
162
+ aria-hidden="true"
163
+ class="cube icon"
164
+ />
165
+ rootNoSub
166
+ </div>
167
+ <div
168
+ class="meta"
169
+ >
170
+ <i
171
+ aria-hidden="true"
172
+ class="object group icon"
173
+ />
174
+
175
+ DomainGroup
176
+ <br />
177
+ <span>
178
+ Domain
179
+ </span>
180
+ </div>
181
+ </div>
182
+ <div
183
+ class="content"
184
+ >
185
+ <div
186
+ class="description"
187
+ >
188
+ Root domain with no subdomains
189
+ </div>
190
+ </div>
191
+ <div
192
+ class="extra content"
193
+ >
194
+ <i
195
+ aria-hidden="true"
196
+ class="cubes icon"
197
+ />
198
+ Subdomains: 0
199
+ </div>
200
+ </a>
201
+ <a
202
+ class="ui link card"
203
+ href="/domains/3"
204
+ >
205
+ <div
206
+ class="content"
207
+ >
208
+ <div
209
+ class="header"
210
+ >
211
+ <i
212
+ aria-hidden="true"
213
+ class="cube icon"
214
+ />
215
+ rootOtherGroup
216
+ </div>
217
+ <div
218
+ class="meta"
219
+ >
220
+ <i
221
+ aria-hidden="true"
222
+ class="object group icon"
223
+ />
224
+
225
+ OtherDomainGroup
226
+ <br />
227
+ <span>
228
+ Domain
229
+ </span>
230
+ </div>
231
+ </div>
232
+ <div
233
+ class="content"
234
+ />
235
+ <div
236
+ class="extra content"
237
+ >
238
+ <i
239
+ aria-hidden="true"
240
+ class="cubes icon"
241
+ />
242
+ Subdomains: 0
243
+ </div>
244
+ </a>
245
+ <a
246
+ class="ui link card"
247
+ href="/domains/2"
248
+ >
249
+ <div
250
+ class="content"
251
+ >
252
+ <div
253
+ class="header"
254
+ >
255
+ <i
256
+ aria-hidden="true"
257
+ class="cube icon"
258
+ />
259
+ rootWithSub
260
+ </div>
261
+ <div
262
+ class="meta"
263
+ >
264
+ <i
265
+ aria-hidden="true"
266
+ class="object group icon"
267
+ />
268
+
269
+ DomainGroup
270
+ <br />
271
+ <span>
272
+ Domain
273
+ </span>
274
+ </div>
275
+ </div>
276
+ <div
277
+ class="content"
278
+ />
279
+ <div
280
+ class="extra content"
281
+ >
282
+ <i
283
+ aria-hidden="true"
284
+ class="cubes icon"
285
+ />
286
+ Subdomains: 1
287
+ </div>
288
+ </a>
289
+ </div>
290
+ </div>
291
+ `;
@@ -0,0 +1,305 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<DomainContent /> Render {
4
+ content: 'implementations',
5
+ domainId: 1,
6
+ textToSearch: 'You are not authorized to view this content'
7
+ } content for %s domain with text %s 1`] = `
8
+ <div>
9
+ <div
10
+ class="ui icon visible bottom attached message center"
11
+ >
12
+ <i
13
+ aria-hidden="true"
14
+ class="warning sign icon"
15
+ />
16
+ <div
17
+ class="content"
18
+ >
19
+ <div
20
+ class="header"
21
+ >
22
+ You are not authorized to view this content
23
+ </div>
24
+ <p>
25
+ If you want to update your permissions, please contact the administrator.
26
+ </p>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ `;
31
+
32
+ exports[`<DomainContent /> Render {
33
+ content: 'members',
34
+ domainId: 1,
35
+ textToSearch: 'This domain has no members'
36
+ } content for %s domain with text %s 1`] = `
37
+ <div>
38
+ <div
39
+ class="ui centered one column grid"
40
+ >
41
+ <div
42
+ class="column"
43
+ >
44
+ <div
45
+ class="ui icon input"
46
+ >
47
+ <input
48
+ placeholder="Search users…"
49
+ type="text"
50
+ value=""
51
+ />
52
+ <i
53
+ aria-hidden="true"
54
+ class="search link icon"
55
+ />
56
+ </div>
57
+ </div>
58
+ </div>
59
+ <div
60
+ class="ui icon message"
61
+ >
62
+ <i
63
+ aria-hidden="true"
64
+ class="warning icon"
65
+ />
66
+ <div
67
+ class="content"
68
+ >
69
+ <div
70
+ class="header"
71
+ >
72
+ This domain has no members
73
+ </div>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ `;
78
+
79
+ exports[`<DomainContent /> Render {
80
+ content: 'structures',
81
+ domainId: 1,
82
+ textToSearch: 'You are not authorized to view this content'
83
+ } content for %s domain with text %s 1`] = `
84
+ <div>
85
+ <div
86
+ class="ui icon visible bottom attached message center"
87
+ >
88
+ <i
89
+ aria-hidden="true"
90
+ class="warning sign icon"
91
+ />
92
+ <div
93
+ class="content"
94
+ >
95
+ <div
96
+ class="header"
97
+ >
98
+ You are not authorized to view this content
99
+ </div>
100
+ <p>
101
+ If you want to update your permissions, please contact the administrator.
102
+ </p>
103
+ </div>
104
+ </div>
105
+ </div>
106
+ `;
107
+
108
+ exports[`<DomainContent /> Render {
109
+ content: 'subdomains',
110
+ domainId: 1,
111
+ textToSearch: 'This domain has no subdomains'
112
+ } content for %s domain with text %s 1`] = `
113
+ <div>
114
+ <h4
115
+ class="ui header"
116
+ >
117
+ <div
118
+ class="content taxonomy-domains-domaincards-header-content"
119
+ >
120
+ <div>
121
+ <div
122
+ class="ui icon input"
123
+ >
124
+ <input
125
+ placeholder="Search domains..."
126
+ type="text"
127
+ value=""
128
+ />
129
+ <i
130
+ aria-hidden="true"
131
+ class="search icon"
132
+ />
133
+ </div>
134
+ </div>
135
+ </div>
136
+ </h4>
137
+ <div
138
+ class="ui message"
139
+ >
140
+ <div
141
+ class="content"
142
+ >
143
+ <div
144
+ class="header"
145
+ >
146
+ This domain has no subdomains
147
+ </div>
148
+ </div>
149
+ </div>
150
+ <div
151
+ class="ui cards"
152
+ />
153
+ </div>
154
+ `;
155
+
156
+ exports[`<DomainContent /> Render { content: 'concepts', domainId: 1, textToSearch: 'Searching...' } content for %s domain with text %s 1`] = `
157
+ <div>
158
+ <div
159
+ class="ui loading action left icon input"
160
+ >
161
+ <i
162
+ aria-hidden="true"
163
+ class="search link icon"
164
+ />
165
+ <input
166
+ placeholder="Searching"
167
+ type="text"
168
+ value=""
169
+ />
170
+ <div
171
+ aria-busy="true"
172
+ aria-disabled="false"
173
+ aria-expanded="false"
174
+ class="ui loading button floating labeled scrolling dropdown icon"
175
+ role="listbox"
176
+ tabindex="0"
177
+ >
178
+ <div
179
+ aria-atomic="true"
180
+ aria-live="polite"
181
+ class="divider text"
182
+ role="alert"
183
+ >
184
+ Filters
185
+ </div>
186
+ <i
187
+ aria-hidden="true"
188
+ class="filter icon"
189
+ />
190
+ <div
191
+ class="menu transition"
192
+ >
193
+ <div
194
+ class="item"
195
+ role="option"
196
+ >
197
+ <em>
198
+ (reset all filters)
199
+ </em>
200
+ </div>
201
+ </div>
202
+ </div>
203
+ </div>
204
+ <div
205
+ class="selectedFilters"
206
+ />
207
+ <div
208
+ class="dimmed dimmable"
209
+ >
210
+ <div
211
+ class="ui active transition visible inverted dimmer"
212
+ style="display: flex;"
213
+ >
214
+ <div
215
+ class="content"
216
+ >
217
+ <div
218
+ class="ui loader"
219
+ />
220
+ </div>
221
+ </div>
222
+ <div
223
+ class="ui label concepts-label-results"
224
+ >
225
+ Searching...
226
+ </div>
227
+ </div>
228
+ </div>
229
+ `;
230
+
231
+ exports[`<DomainContent /> Render { content: 'subdomains', domainId: 2, textToSearch: 'childSubdomain' } content for %s domain with text %s 1`] = `
232
+ <div>
233
+ <h4
234
+ class="ui header"
235
+ >
236
+ <div
237
+ class="content taxonomy-domains-domaincards-header-content"
238
+ >
239
+ <div>
240
+ <div
241
+ class="ui icon input"
242
+ >
243
+ <input
244
+ placeholder="Search domains..."
245
+ type="text"
246
+ value=""
247
+ />
248
+ <i
249
+ aria-hidden="true"
250
+ class="search icon"
251
+ />
252
+ </div>
253
+ </div>
254
+ </div>
255
+ </h4>
256
+ <div
257
+ class="ui cards"
258
+ >
259
+ <a
260
+ class="ui link card"
261
+ href="/domains/4"
262
+ >
263
+ <div
264
+ class="content"
265
+ >
266
+ <div
267
+ class="header"
268
+ >
269
+ <i
270
+ aria-hidden="true"
271
+ class="cube icon"
272
+ />
273
+ childSubdomain
274
+ </div>
275
+ <div
276
+ class="meta"
277
+ >
278
+ <i
279
+ aria-hidden="true"
280
+ class="object group icon"
281
+ />
282
+
283
+ DomainGroup
284
+ <br />
285
+ <span>
286
+ Domain
287
+ </span>
288
+ </div>
289
+ </div>
290
+ <div
291
+ class="content"
292
+ />
293
+ <div
294
+ class="extra content"
295
+ >
296
+ <i
297
+ aria-hidden="true"
298
+ class="cubes icon"
299
+ />
300
+ 0 Subdomains
301
+ </div>
302
+ </a>
303
+ </div>
304
+ </div>
305
+ `;
@@ -0,0 +1,40 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<DomainTabs /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <div
6
+ class="ui pointing secondary top attached tabular menu"
7
+ >
8
+ <a
9
+ class="item"
10
+ href="/domains/1"
11
+ >
12
+ Subdomains
13
+ </a>
14
+ <a
15
+ class="item"
16
+ href="/domains/1/concepts"
17
+ >
18
+ Concepts
19
+ </a>
20
+ <a
21
+ class="item"
22
+ href="/domains/1/structures"
23
+ >
24
+ Structures
25
+ </a>
26
+ <a
27
+ class="item"
28
+ href="/domains/1/implementations"
29
+ >
30
+ Implementations
31
+ </a>
32
+ <a
33
+ class="item"
34
+ href="/domains/1/members"
35
+ >
36
+ Members
37
+ </a>
38
+ </div>
39
+ </div>
40
+ `;