@truedat/df 8.2.4 → 8.3.1
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 +4 -4
- package/src/components/SelectableDynamicForm.js +2 -2
- package/src/components/__tests__/SelectableDynamicForm.spec.js +44 -0
- package/src/components/__tests__/__snapshots__/SelectableDynamicForm.spec.js.snap +35 -0
- package/src/hooks/useTemplateRelations.js +43 -0
- package/src/templates/api.js +2 -1
- package/src/templates/components/templateForm/TemplateForm.js +17 -2
- package/src/templates/components/templateForm/TemplateRelationsForm.js +124 -0
- package/src/templates/components/templateForm/__tests__/TemplateForm.spec.js +156 -58
- package/src/templates/components/templateForm/__tests__/TemplateRelationsForm.spec.js +94 -0
- package/src/templates/components/templateForm/__tests__/__snapshots__/TemplateForm.spec.js.snap +747 -578
- package/src/templates/components/templateForm/__tests__/__snapshots__/TemplateRelationsForm.spec.js.snap +92 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`<TemplateRelationsForm /> matches snapshot when scope is gr 1`] = `
|
|
4
|
+
<div>
|
|
5
|
+
<div
|
|
6
|
+
class="ui horizontal divider"
|
|
7
|
+
>
|
|
8
|
+
<h4
|
|
9
|
+
class="ui header"
|
|
10
|
+
>
|
|
11
|
+
template.relations.header
|
|
12
|
+
</h4>
|
|
13
|
+
</div>
|
|
14
|
+
<div
|
|
15
|
+
class="fields"
|
|
16
|
+
>
|
|
17
|
+
<div
|
|
18
|
+
class="field"
|
|
19
|
+
>
|
|
20
|
+
<div
|
|
21
|
+
class="ui checkbox"
|
|
22
|
+
>
|
|
23
|
+
<input
|
|
24
|
+
class="hidden"
|
|
25
|
+
id="template_relation_default"
|
|
26
|
+
name="template_relation_default"
|
|
27
|
+
readonly=""
|
|
28
|
+
tabindex="0"
|
|
29
|
+
type="checkbox"
|
|
30
|
+
/>
|
|
31
|
+
<label
|
|
32
|
+
for="template_relation_default"
|
|
33
|
+
>
|
|
34
|
+
template.relations.default
|
|
35
|
+
</label>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div
|
|
40
|
+
class="fields"
|
|
41
|
+
>
|
|
42
|
+
<div
|
|
43
|
+
class="field"
|
|
44
|
+
>
|
|
45
|
+
<label>
|
|
46
|
+
template.relations.related
|
|
47
|
+
</label>
|
|
48
|
+
<div
|
|
49
|
+
aria-expanded="false"
|
|
50
|
+
class="ui multiple search selection dropdown"
|
|
51
|
+
name="template_relation_resource"
|
|
52
|
+
role="combobox"
|
|
53
|
+
>
|
|
54
|
+
<input
|
|
55
|
+
aria-autocomplete="list"
|
|
56
|
+
autocomplete="off"
|
|
57
|
+
class="search"
|
|
58
|
+
tabindex="0"
|
|
59
|
+
type="text"
|
|
60
|
+
value=""
|
|
61
|
+
/>
|
|
62
|
+
<span
|
|
63
|
+
class="sizer"
|
|
64
|
+
/>
|
|
65
|
+
<div
|
|
66
|
+
aria-atomic="true"
|
|
67
|
+
aria-live="polite"
|
|
68
|
+
class="divider default text"
|
|
69
|
+
role="alert"
|
|
70
|
+
>
|
|
71
|
+
template.relations.systems.placeholder
|
|
72
|
+
</div>
|
|
73
|
+
<i
|
|
74
|
+
aria-hidden="true"
|
|
75
|
+
class="dropdown icon"
|
|
76
|
+
/>
|
|
77
|
+
<div
|
|
78
|
+
aria-multiselectable="true"
|
|
79
|
+
class="menu transition"
|
|
80
|
+
role="listbox"
|
|
81
|
+
>
|
|
82
|
+
<div
|
|
83
|
+
class="message"
|
|
84
|
+
>
|
|
85
|
+
No results found.
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
`;
|