@truedat/bg 4.44.2 → 4.44.5

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 (23) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/package.json +21 -18
  3. package/src/concepts/components/ConceptEdit.js +5 -3
  4. package/src/concepts/components/ConceptFiltersDefault.js +1 -5
  5. package/src/concepts/components/ConceptFiltersPublished.js +1 -5
  6. package/src/concepts/components/ConceptForm.js +84 -159
  7. package/src/concepts/components/ConceptRoutes.js +14 -10
  8. package/src/concepts/components/ConceptsBulkUpdate.js +1 -1
  9. package/src/concepts/components/SharedToForm.js +1 -1
  10. package/src/concepts/components/__tests__/ConceptFilters.spec.js +10 -4
  11. package/src/concepts/components/__tests__/ConceptForm.spec.js +49 -109
  12. package/src/concepts/components/__tests__/ConceptsBulkUpdate.spec.js +41 -44
  13. package/src/concepts/components/__tests__/ConceptsLabelResults.spec.js +3 -3
  14. package/src/concepts/components/__tests__/SharedToForm.spec.js +8 -24
  15. package/src/concepts/components/__tests__/__snapshots__/ConceptFilters.spec.js.snap +43 -10
  16. package/src/concepts/components/__tests__/__snapshots__/ConceptForm.spec.js.snap +603 -163
  17. package/src/concepts/components/__tests__/__snapshots__/ConceptsLabelResults.spec.js.snap +7 -12
  18. package/src/concepts/components/__tests__/__snapshots__/SharedToForm.spec.js.snap +3 -3
  19. package/src/taxonomy/components/AddMemberForm.js +1 -3
  20. package/src/taxonomy/components/__tests__/DomainActions.spec.js +3 -3
  21. package/src/taxonomy/components/__tests__/DomainCrumbs.spec.js +4 -4
  22. package/src/taxonomy/components/__tests__/__snapshots__/DomainActions.spec.js.snap +5 -10
  23. package/src/taxonomy/components/__tests__/__snapshots__/DomainCrumbs.spec.js.snap +37 -74
@@ -1,203 +1,643 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<ConceptForm /> with a single template matches the latest snapshot 1`] = `
4
- <Fragment>
5
- <lazy />
6
- <Container
7
- as={[Function]}
8
- text={true}
4
+ <div>
5
+ <div
6
+ class="ui segment ui text container"
9
7
  >
10
- <Header
11
- as="h2"
8
+ <h2
9
+ class="ui header"
12
10
  >
13
- <Icon
14
- as="i"
15
- name="book"
11
+ <i
12
+ aria-hidden="true"
13
+ class="book icon"
16
14
  />
17
- <HeaderContent>
18
- <MemoizedFormattedMessage
19
- id="concepts.actions.create"
20
- />
21
- </HeaderContent>
22
- </Header>
23
- <Form
24
- as="form"
15
+ <div
16
+ class="content"
17
+ >
18
+ New Concept
19
+ </div>
20
+ </h2>
21
+ <form
22
+ class="ui form"
25
23
  >
26
- <Header
27
- as="h3"
28
- content={
29
- <Memo(MemoizedFormattedMessage)
30
- id="concepts.form.required_fields"
31
- />
32
- }
33
- />
34
- <Connect(DomainDropdownSelector)
35
- invalid={true}
36
- name="domain"
37
- onChange={[Function]}
38
- />
39
- <FormField
40
- required={true}
24
+ <h3
25
+ class="ui header"
26
+ >
27
+ Required fields for creating
28
+ </h3>
29
+ <div
30
+ class="required field"
41
31
  >
42
32
  <label>
43
- concepts.props.name
44
- <Label
45
- pointing="left"
33
+ Domain
34
+ </label>
35
+ <div
36
+ class="field"
37
+ >
38
+ <div
39
+ aria-expanded="false"
40
+ class="ui fluid search selection dropdown"
41
+ name="domain"
42
+ role="combobox"
46
43
  >
47
- <MemoizedFormattedMessage
48
- id="template.form.validation.empty_required"
44
+ <input
45
+ aria-autocomplete="list"
46
+ autocomplete="off"
47
+ class="search"
48
+ tabindex="0"
49
+ type="text"
50
+ value=""
49
51
  />
50
- </Label>
51
- </label>
52
- <FormInput
53
- as={[Function]}
54
- control={[Function]}
55
- name="name"
56
- onChange={[Function]}
57
- value=""
58
- />
59
- </FormField>
60
- <FormField
61
- required={true}
52
+ <div
53
+ aria-atomic="true"
54
+ aria-live="polite"
55
+ class="divider text"
56
+ role="alert"
57
+ >
58
+ domain1
59
+ </div>
60
+ <i
61
+ aria-hidden="true"
62
+ class="dropdown icon"
63
+ />
64
+ <div
65
+ aria-multiselectable="false"
66
+ class="menu transition"
67
+ role="listbox"
68
+ >
69
+ <div
70
+ aria-checked="true"
71
+ aria-selected="true"
72
+ class="active selected item"
73
+ role="option"
74
+ style="pointer-events: all;"
75
+ >
76
+ <div
77
+ class="text"
78
+ style="margin-left: 0px;"
79
+ >
80
+ <i
81
+ aria-hidden="true"
82
+ class="icon"
83
+ />
84
+ domain1
85
+ </div>
86
+ </div>
87
+ </div>
88
+ </div>
89
+ </div>
90
+ </div>
91
+ <div
92
+ class="required field"
62
93
  >
63
94
  <label>
64
- concepts.props.description
65
- <Label
66
- pointing="left"
95
+ Term
96
+ <div
97
+ class="ui left pointing label"
67
98
  >
68
- <MemoizedFormattedMessage
69
- id="template.form.validation.empty_required"
99
+ Empty required field
100
+ </div>
101
+ </label>
102
+ <div
103
+ class="field"
104
+ >
105
+ <div
106
+ class="ui input"
107
+ >
108
+ <input
109
+ name="name"
110
+ type="text"
111
+ value=""
70
112
  />
71
- </Label>
113
+ </div>
114
+ </div>
115
+ </div>
116
+ <div
117
+ class="required field"
118
+ >
119
+ <label>
120
+ Description
121
+ <div
122
+ class="ui left pointing label"
123
+ >
124
+ Empty required field
125
+ </div>
72
126
  </label>
73
- <lazy
74
- name="description"
75
- onChange={[Function]}
76
- value={Object {}}
77
- />
78
- </FormField>
127
+ <div>
128
+ <div
129
+ style="border: 1px solid rgba(34, 36, 38, 0.15); border-radius: 0.28571429rem;"
130
+ >
131
+ <div
132
+ class="ui menu"
133
+ >
134
+ <div
135
+ class="disabled icon item"
136
+ >
137
+ <i
138
+ aria-hidden="true"
139
+ class="bold icon"
140
+ />
141
+ </div>
142
+ <div
143
+ class="disabled icon item"
144
+ >
145
+ <i
146
+ aria-hidden="true"
147
+ class="italic icon"
148
+ />
149
+ </div>
150
+ <div
151
+ class="disabled icon item"
152
+ >
153
+ <i
154
+ aria-hidden="true"
155
+ class="underline icon"
156
+ />
157
+ </div>
158
+ <div
159
+ class="disabled icon item"
160
+ >
161
+ <i
162
+ aria-hidden="true"
163
+ class="header icon"
164
+ />
165
+ </div>
166
+ <div
167
+ class="disabled icon item"
168
+ >
169
+ <i
170
+ aria-hidden="true"
171
+ class="h icon"
172
+ />
173
+ </div>
174
+ <div
175
+ class="disabled icon item"
176
+ >
177
+ <i
178
+ aria-hidden="true"
179
+ class="list ol icon"
180
+ />
181
+ </div>
182
+ <div
183
+ class="disabled icon item"
184
+ >
185
+ <i
186
+ aria-hidden="true"
187
+ class="list ul icon"
188
+ />
189
+ </div>
190
+ <div
191
+ class="disabled icon item"
192
+ >
193
+ <i
194
+ aria-hidden="true"
195
+ class="linkify icon"
196
+ />
197
+ </div>
198
+ </div>
199
+ <div
200
+ style="padding: 10px;"
201
+ >
202
+ <div
203
+ autocorrect="on"
204
+ contenteditable="true"
205
+ data-gramm="false"
206
+ data-key="9"
207
+ data-slate-editor="true"
208
+ role="textbox"
209
+ spellcheck="true"
210
+ style="outline: none; white-space: pre-wrap; word-wrap: break-word;"
211
+ >
212
+ <div
213
+ data-key="10"
214
+ data-slate-object="block"
215
+ style="position: relative;"
216
+ >
217
+ <span
218
+ data-key="13"
219
+ data-slate-object="text"
220
+ >
221
+ <span
222
+ data-offset-key="13:0"
223
+ data-slate-leaf="true"
224
+ >
225
+ <span>
226
+ <span
227
+ contenteditable="false"
228
+ style="pointer-events: none; display: inline-block; width: 0px; max-width: 100%; white-space: nowrap; opacity: 0.333; vertical-align: text-top;"
229
+ />
230
+ <span
231
+ data-slate-length="0"
232
+ data-slate-zero-width="n"
233
+ >
234
+ 
235
+ <br />
236
+ </span>
237
+ </span>
238
+ </span>
239
+ </span>
240
+ </div>
241
+ </div>
242
+ </div>
243
+ </div>
244
+ </div>
245
+ </div>
246
+ <h3
247
+ class="ui header"
248
+ >
249
+ Template fields (only required for publishing)
250
+ </h3>
79
251
  <div
80
- className="actions"
252
+ class="ui segment"
81
253
  >
82
- <HistoryBackButton
83
- content="actions.cancel"
84
- />
85
- <Button
86
- as="button"
87
- content={
88
- <Memo(MemoizedFormattedMessage)
89
- id="actions.create"
90
- />
91
- }
92
- disabled={true}
93
- onClick={[Function]}
94
- primary={true}
95
- />
254
+ <h4
255
+ class="ui header"
256
+ >
257
+ g1
258
+ </h4>
259
+ <div
260
+ class="field"
261
+ >
262
+ <label>
263
+ field1
264
+ </label>
265
+ <div
266
+ class="field"
267
+ >
268
+ <div
269
+ class="ui input"
270
+ >
271
+ <input
272
+ name="field1"
273
+ type="text"
274
+ value=""
275
+ />
276
+ </div>
277
+ </div>
278
+ </div>
96
279
  </div>
97
- </Form>
98
- </Container>
99
- </Fragment>
280
+ <div
281
+ class="actions"
282
+ >
283
+ <a
284
+ class="ui secondary button"
285
+ href="/"
286
+ role="button"
287
+ >
288
+ Cancel
289
+ </a>
290
+ <button
291
+ class="ui primary disabled button"
292
+ disabled=""
293
+ tabindex="-1"
294
+ >
295
+ Create
296
+ </button>
297
+ </div>
298
+ </form>
299
+ </div>
300
+ </div>
100
301
  `;
101
302
 
102
303
  exports[`<ConceptForm /> with multiple templates matches the latest snapshot 1`] = `
103
- <Fragment>
104
- <lazy />
105
- <Container
106
- as={[Function]}
107
- text={true}
304
+ <div>
305
+ <div
306
+ class="ui segment ui text container"
307
+ style=""
108
308
  >
109
- <Header
110
- as="h2"
309
+ <h2
310
+ class="ui header"
111
311
  >
112
- <Icon
113
- as="i"
114
- name="book"
312
+ <i
313
+ aria-hidden="true"
314
+ class="book icon"
115
315
  />
116
- <HeaderContent>
117
- <MemoizedFormattedMessage
118
- id="concepts.actions.create"
119
- />
120
- </HeaderContent>
121
- </Header>
122
- <Form
123
- as="form"
316
+ <div
317
+ class="content"
318
+ >
319
+ New Concept
320
+ </div>
321
+ </h2>
322
+ <form
323
+ class="ui form"
124
324
  >
125
- <Header
126
- as="h3"
127
- content={
128
- <Memo(MemoizedFormattedMessage)
129
- id="concepts.form.required_fields"
130
- />
131
- }
132
- />
133
- <Connect(DomainDropdownSelector)
134
- invalid={true}
135
- name="domain"
136
- onChange={[Function]}
137
- />
138
- <lazy
139
- name="template"
140
- onChange={[Function]}
141
- />
142
- <FormField
143
- required={true}
325
+ <h3
326
+ class="ui header"
327
+ >
328
+ Required fields for creating
329
+ </h3>
330
+ <div
331
+ class="required field"
144
332
  >
145
333
  <label>
146
- concepts.props.name
147
- <Label
148
- pointing="left"
334
+ Domain
335
+ </label>
336
+ <div
337
+ class="field"
338
+ >
339
+ <div
340
+ aria-expanded="false"
341
+ class="ui fluid search selection dropdown"
342
+ name="domain"
343
+ role="combobox"
149
344
  >
150
- <MemoizedFormattedMessage
151
- id="template.form.validation.empty_required"
345
+ <input
346
+ aria-autocomplete="list"
347
+ autocomplete="off"
348
+ class="search"
349
+ tabindex="0"
350
+ type="text"
351
+ value=""
152
352
  />
153
- </Label>
154
- </label>
155
- <FormInput
156
- as={[Function]}
157
- control={[Function]}
158
- name="name"
159
- onChange={[Function]}
160
- value=""
161
- />
162
- </FormField>
163
- <FormField
164
- required={true}
353
+ <div
354
+ aria-atomic="true"
355
+ aria-live="polite"
356
+ class="divider text"
357
+ role="alert"
358
+ >
359
+ domain1
360
+ </div>
361
+ <i
362
+ aria-hidden="true"
363
+ class="dropdown icon"
364
+ />
365
+ <div
366
+ aria-multiselectable="false"
367
+ class="menu transition"
368
+ role="listbox"
369
+ >
370
+ <div
371
+ aria-checked="true"
372
+ aria-selected="true"
373
+ class="active selected item"
374
+ role="option"
375
+ style="pointer-events: all;"
376
+ >
377
+ <div
378
+ class="text"
379
+ style="margin-left: 0px;"
380
+ >
381
+ <i
382
+ aria-hidden="true"
383
+ class="icon"
384
+ />
385
+ domain1
386
+ </div>
387
+ </div>
388
+ </div>
389
+ </div>
390
+ </div>
391
+ </div>
392
+ <div
393
+ class="required field"
165
394
  >
166
395
  <label>
167
- concepts.props.description
168
- <Label
169
- pointing="left"
396
+ Term
397
+ <div
398
+ class="ui left pointing label"
170
399
  >
171
- <MemoizedFormattedMessage
172
- id="template.form.validation.empty_required"
400
+ Empty required field
401
+ </div>
402
+ </label>
403
+ <div
404
+ class="field"
405
+ >
406
+ <div
407
+ class="ui input"
408
+ >
409
+ <input
410
+ name="name"
411
+ type="text"
412
+ value=""
173
413
  />
174
- </Label>
414
+ </div>
415
+ </div>
416
+ </div>
417
+ <div
418
+ class="required field"
419
+ >
420
+ <label>
421
+ Description
422
+ <div
423
+ class="ui left pointing label"
424
+ >
425
+ Empty required field
426
+ </div>
175
427
  </label>
176
- <lazy
177
- name="description"
178
- onChange={[Function]}
179
- value={Object {}}
180
- />
181
- </FormField>
428
+ <div>
429
+ <div
430
+ style="border: 1px solid rgba(34, 36, 38, 0.15); border-radius: 0.28571429rem;"
431
+ >
432
+ <div
433
+ class="ui menu"
434
+ >
435
+ <div
436
+ class="disabled icon item"
437
+ >
438
+ <i
439
+ aria-hidden="true"
440
+ class="bold icon"
441
+ />
442
+ </div>
443
+ <div
444
+ class="disabled icon item"
445
+ >
446
+ <i
447
+ aria-hidden="true"
448
+ class="italic icon"
449
+ />
450
+ </div>
451
+ <div
452
+ class="disabled icon item"
453
+ >
454
+ <i
455
+ aria-hidden="true"
456
+ class="underline icon"
457
+ />
458
+ </div>
459
+ <div
460
+ class="disabled icon item"
461
+ >
462
+ <i
463
+ aria-hidden="true"
464
+ class="header icon"
465
+ />
466
+ </div>
467
+ <div
468
+ class="disabled icon item"
469
+ >
470
+ <i
471
+ aria-hidden="true"
472
+ class="h icon"
473
+ />
474
+ </div>
475
+ <div
476
+ class="disabled icon item"
477
+ >
478
+ <i
479
+ aria-hidden="true"
480
+ class="list ol icon"
481
+ />
482
+ </div>
483
+ <div
484
+ class="disabled icon item"
485
+ >
486
+ <i
487
+ aria-hidden="true"
488
+ class="list ul icon"
489
+ />
490
+ </div>
491
+ <div
492
+ class="disabled icon item"
493
+ >
494
+ <i
495
+ aria-hidden="true"
496
+ class="linkify icon"
497
+ />
498
+ </div>
499
+ </div>
500
+ <div
501
+ style="padding: 10px;"
502
+ >
503
+ <div
504
+ autocorrect="on"
505
+ contenteditable="true"
506
+ data-gramm="false"
507
+ data-key="0"
508
+ data-slate-editor="true"
509
+ role="textbox"
510
+ spellcheck="true"
511
+ style="outline: none; white-space: pre-wrap; word-wrap: break-word;"
512
+ >
513
+ <div
514
+ data-key="1"
515
+ data-slate-object="block"
516
+ style="position: relative;"
517
+ >
518
+ <span
519
+ data-key="3"
520
+ data-slate-object="text"
521
+ >
522
+ <span
523
+ data-offset-key="3:0"
524
+ data-slate-leaf="true"
525
+ >
526
+ <span>
527
+ <span
528
+ contenteditable="false"
529
+ style="pointer-events: none; display: inline-block; width: 0px; max-width: 100%; white-space: nowrap; opacity: 0.333; vertical-align: text-top;"
530
+ />
531
+ <span
532
+ data-slate-length="0"
533
+ data-slate-zero-width="n"
534
+ >
535
+ 
536
+ <br />
537
+ </span>
538
+ </span>
539
+ </span>
540
+ </span>
541
+ </div>
542
+ </div>
543
+ </div>
544
+ </div>
545
+ </div>
546
+ </div>
182
547
  <div
183
- className="actions"
548
+ class="required field"
184
549
  >
185
- <HistoryBackButton
186
- content="actions.cancel"
187
- />
188
- <Button
189
- as="button"
190
- content={
191
- <Memo(MemoizedFormattedMessage)
192
- id="actions.create"
550
+ <label>
551
+ Template
552
+ <div
553
+ class="ui left pointing label"
554
+ >
555
+ Empty required field
556
+ </div>
557
+ </label>
558
+ <div
559
+ class="field"
560
+ >
561
+ <div
562
+ aria-busy="false"
563
+ aria-expanded="false"
564
+ class="ui search selection dropdown"
565
+ name="template"
566
+ role="combobox"
567
+ >
568
+ <input
569
+ aria-autocomplete="list"
570
+ autocomplete="off"
571
+ class="search"
572
+ tabindex="0"
573
+ type="text"
574
+ value=""
575
+ />
576
+ <div
577
+ aria-atomic="true"
578
+ aria-live="polite"
579
+ class="divider default text"
580
+ role="alert"
581
+ >
582
+ Select a template...
583
+ </div>
584
+ <i
585
+ aria-hidden="true"
586
+ class="dropdown icon"
193
587
  />
194
- }
195
- disabled={true}
196
- onClick={[Function]}
197
- primary={true}
198
- />
588
+ <div
589
+ class="menu transition"
590
+ role="listbox"
591
+ >
592
+ <div
593
+ aria-checked="false"
594
+ aria-selected="true"
595
+ class="selected item"
596
+ role="option"
597
+ style="pointer-events: all;"
598
+ >
599
+ <span
600
+ class="text"
601
+ >
602
+ template1
603
+ </span>
604
+ </div>
605
+ <div
606
+ aria-checked="false"
607
+ aria-selected="false"
608
+ class="item"
609
+ role="option"
610
+ style="pointer-events: all;"
611
+ >
612
+ <span
613
+ class="text"
614
+ >
615
+ template2
616
+ </span>
617
+ </div>
618
+ </div>
619
+ </div>
620
+ </div>
621
+ </div>
622
+ <div
623
+ class="actions"
624
+ >
625
+ <a
626
+ class="ui secondary button"
627
+ href="/"
628
+ role="button"
629
+ >
630
+ Cancel
631
+ </a>
632
+ <button
633
+ class="ui primary disabled button"
634
+ disabled=""
635
+ tabindex="-1"
636
+ >
637
+ Create
638
+ </button>
199
639
  </div>
200
- </Form>
201
- </Container>
202
- </Fragment>
640
+ </form>
641
+ </div>
642
+ </div>
203
643
  `;