@truedat/df 7.5.9 → 7.5.10
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 +43 -67
- package/src/components/DynamicFieldValue.js +0 -1
- package/src/components/DynamicForm.js +5 -4
- package/src/components/DynamicFormViewer.js +0 -1
- package/src/components/DynamicFormWithTranslations.js +3 -3
- package/src/components/EditableDynamicFieldValue.js +1 -2
- package/src/components/FieldGroupDetail.js +0 -1
- package/src/components/FieldGroupSegment.js +17 -29
- package/src/components/FieldGroupWithTranslations.js +19 -38
- package/src/components/FieldViewerValue.js +4 -7
- package/src/components/OriginLabel.js +0 -1
- package/src/components/SelectDynamicFormWithTranslations.js +4 -6
- package/src/components/SelectableDynamicForm.js +5 -11
- package/src/components/__tests__/DynamicFieldValue.spec.js +0 -1
- package/src/components/__tests__/DynamicForm.spec.js +25 -23
- package/src/components/__tests__/EditableDynamicFieldValue.spec.js +0 -1
- package/src/components/__tests__/FieldGroupDetail.spec.js +0 -1
- package/src/components/__tests__/FieldViewerValue.spec.js +1 -6
- package/src/components/__tests__/SelectableDynamicForm.spec.js +102 -46
- package/src/components/__tests__/__snapshots__/DynamicFieldValue.spec.js.snap +2 -2
- package/src/components/__tests__/__snapshots__/DynamicForm.spec.js.snap +94 -81
- package/src/components/__tests__/__snapshots__/FieldGroupDetail.spec.js.snap +2 -2
- package/src/components/__tests__/__snapshots__/FieldViewerValue.spec.js.snap +1 -7
- package/src/components/__tests__/__snapshots__/SelectableDynamicForm.spec.js.snap +39 -39
- package/src/components/hierarchies/Hierarchies.js +2 -4
- package/src/components/hierarchies/HierarchiesView.js +1 -2
- package/src/components/hierarchies/HierarchyCrumbs.js +1 -2
- package/src/components/hierarchies/HierarchyRoutes.js +44 -39
- package/src/components/hierarchies/HierarchyView.js +4 -7
- package/src/components/hierarchies/__tests__/Hierarchies.spec.js +2 -3
- package/src/components/hierarchies/__tests__/HierarchiesView.spec.js +3 -7
- package/src/components/hierarchies/__tests__/HierarchyCrumbs.spec.js +0 -1
- package/src/components/hierarchies/__tests__/HierarchyRoutes.spec.js +79 -0
- package/src/components/hierarchies/__tests__/HierarchyView.spec.js +2 -10
- package/src/components/hierarchies/__tests__/__snapshots__/Hierarchies.spec.js.snap +1 -0
- package/src/components/hierarchies/__tests__/__snapshots__/HierarchiesView.spec.js.snap +7 -5
- package/src/components/hierarchies/__tests__/__snapshots__/HierarchyCrumbs.spec.js.snap +4 -2
- package/src/components/hierarchies/__tests__/__snapshots__/HierarchyRoutes.spec.js.snap +60 -0
- package/src/components/hierarchies/__tests__/__snapshots__/HierarchyView.spec.js.snap +8 -6
- package/src/components/widgets/CheckboxField.js +0 -1
- package/src/components/widgets/ColorPickerField.js +2 -3
- package/src/components/widgets/DateField.js +0 -1
- package/src/components/widgets/DateTimeField.js +0 -1
- package/src/components/widgets/DomainDropdown.js +1 -1
- package/src/components/widgets/DomainPreview.js +1 -2
- package/src/components/widgets/DropdownDataLoader.js +3 -3
- package/src/components/widgets/DropdownField.js +5 -4
- package/src/components/widgets/DynamicField.js +0 -5
- package/src/components/widgets/EnrichedTextField.js +0 -1
- package/src/components/widgets/HierarchyDropdown.js +1 -1
- package/src/components/widgets/HierarchyPreview.js +0 -1
- package/src/components/widgets/IdentifierField.js +0 -1
- package/src/components/widgets/ImageField.js +1 -1
- package/src/components/widgets/ImagePreview.js +0 -1
- package/src/components/widgets/NumberField.js +6 -7
- package/src/components/widgets/PairListField.js +5 -6
- package/src/components/widgets/PasswordField.js +1 -2
- package/src/components/widgets/RadioField.js +0 -1
- package/src/components/widgets/StandardDropdown.js +0 -1
- package/src/components/widgets/StringField.js +0 -1
- package/src/components/widgets/SystemPreview.js +2 -3
- package/src/components/widgets/TableField.js +5 -5
- package/src/components/widgets/TextField.js +1 -2
- package/src/components/widgets/__tests__/CheckboxField.spec.js +33 -23
- package/src/components/widgets/__tests__/ColorPickerField.spec.js +5 -12
- package/src/components/widgets/__tests__/DateField.spec.js +5 -5
- package/src/components/widgets/__tests__/DateTimeField.spec.js +5 -5
- package/src/components/widgets/__tests__/DomainPreview.spec.js +12 -14
- package/src/components/widgets/__tests__/DropdownDataLoader.spec.js +5 -5
- package/src/components/widgets/__tests__/DropdownField.spec.js +18 -29
- package/src/components/widgets/__tests__/DynamicField.spec.js +0 -1
- package/src/components/widgets/__tests__/HierarchyDropdown.spec.js +4 -5
- package/src/components/widgets/__tests__/HierarchyPreview.spec.js +0 -1
- package/src/components/widgets/__tests__/ImageField.spec.js +5 -10
- package/src/components/widgets/__tests__/NumberField.spec.js +23 -5
- package/src/components/widgets/__tests__/PairListField.spec.js +69 -59
- package/src/components/widgets/__tests__/PasswordField.spec.js +3 -4
- package/src/components/widgets/__tests__/RadioField.spec.js +5 -5
- package/src/components/widgets/__tests__/StandardDropdown.spec.js +45 -46
- package/src/components/widgets/__tests__/StringField.spec.js +10 -13
- package/src/components/widgets/__tests__/SystemPreview.spec.js +13 -15
- package/src/components/widgets/__tests__/TableField.spec.js +32 -32
- package/src/components/widgets/__tests__/TextField.spec.js +5 -5
- package/src/components/widgets/__tests__/__snapshots__/CheckboxField.spec.js.snap +58 -29
- package/src/components/widgets/__tests__/__snapshots__/ColorPickerField.spec.js.snap +221 -36
- package/src/components/widgets/__tests__/__snapshots__/DateField.spec.js.snap +21 -16
- package/src/components/widgets/__tests__/__snapshots__/DateTimeField.spec.js.snap +21 -20
- package/src/components/widgets/__tests__/__snapshots__/DomainPreview.spec.js.snap +26 -21
- package/src/components/widgets/__tests__/__snapshots__/DropdownDataLoader.spec.js.snap +1 -1
- package/src/components/widgets/__tests__/__snapshots__/DropdownField.spec.js.snap +93 -43
- package/src/components/widgets/__tests__/__snapshots__/DynamicField.spec.js.snap +2 -14
- package/src/components/widgets/__tests__/__snapshots__/ImageField.spec.js.snap +16 -28
- package/src/components/widgets/__tests__/__snapshots__/NumberField.spec.js.snap +11 -9
- package/src/components/widgets/__tests__/__snapshots__/PairListField.spec.js.snap +53 -39
- package/src/components/widgets/__tests__/__snapshots__/PasswordField.spec.js.snap +15 -8
- package/src/components/widgets/__tests__/__snapshots__/RadioField.spec.js.snap +41 -22
- package/src/components/widgets/__tests__/__snapshots__/StandardDropdown.spec.js.snap +78 -31
- package/src/components/widgets/__tests__/__snapshots__/StringField.spec.js.snap +78 -38
- package/src/components/widgets/__tests__/__snapshots__/SystemPreview.spec.js.snap +24 -21
- package/src/components/widgets/__tests__/__snapshots__/TableField.spec.js.snap +138 -174
- package/src/components/widgets/__tests__/__snapshots__/TextField.spec.js.snap +12 -7
- package/src/reducers/__tests__/dfMessage.spec.js +14 -18
- package/src/reducers/dfMessage.js +8 -7
- package/src/selectors/index.js +0 -1
- package/src/templates/components/NewTemplate.js +0 -1
- package/src/templates/components/Template.js +0 -2
- package/src/templates/components/TemplateCard.js +3 -4
- package/src/templates/components/TemplateCrumbs.js +2 -3
- package/src/templates/components/TemplateFilters.js +0 -1
- package/src/templates/components/TemplateLoader.js +25 -101
- package/src/templates/components/TemplateRoutes.js +29 -45
- package/src/templates/components/Templates.js +1 -5
- package/src/templates/components/TemplatesContext.js +3 -7
- package/src/templates/components/TemplatesTable.js +1 -2
- package/src/templates/components/__tests__/NewTemplate.spec.js +5 -10
- package/src/templates/components/__tests__/Template.spec.js +0 -1
- package/src/templates/components/__tests__/TemplateLoader.spec.js +71 -109
- package/src/templates/components/__tests__/TemplateRoutes.spec.js +63 -0
- package/src/templates/components/__tests__/TemplatesTable.spec.js +15 -9
- package/src/templates/components/__tests__/__snapshots__/NewTemplate.spec.js.snap +335 -22
- package/src/templates/components/__tests__/__snapshots__/Template.spec.js.snap +49 -48
- package/src/templates/components/__tests__/__snapshots__/TemplateLoader.spec.js.snap +7 -1
- package/src/templates/components/__tests__/__snapshots__/TemplateRoutes.spec.js.snap +38 -0
- package/src/templates/components/__tests__/__snapshots__/TemplatesTable.spec.js.snap +94 -1
- package/src/templates/components/index.js +1 -2
- package/src/templates/components/templateForm/ActiveGroupForm.js +1 -4
- package/src/templates/components/templateForm/ConditionalFieldForm.js +0 -1
- package/src/templates/components/templateForm/DefaultValue.js +0 -1
- package/src/templates/components/templateForm/DependentDomain.js +0 -1
- package/src/templates/components/templateForm/DependentFormField.js +0 -1
- package/src/templates/components/templateForm/FieldForm.js +5 -5
- package/src/templates/components/templateForm/GroupsList.js +0 -1
- package/src/templates/components/templateForm/HierarchiesList.js +1 -2
- package/src/templates/components/templateForm/MandatoryConditional.js +0 -1
- package/src/templates/components/templateForm/SwitchListForm.js +2 -2
- package/src/templates/components/templateForm/SwitchSegment.js +0 -1
- package/src/templates/components/templateForm/TemplateForm.js +1 -1
- package/src/templates/components/templateForm/TemplateFormActions.js +3 -4
- package/src/templates/components/templateForm/ValuesField.js +1 -3
- package/src/templates/components/templateForm/ValuesListForm.js +3 -3
- package/src/templates/components/templateForm/ValuesSelector.js +0 -1
- package/src/templates/components/templateForm/__tests__/ActiveGroupForm.spec.js +8 -13
- package/src/templates/components/templateForm/__tests__/DefaultValue.spec.js +198 -113
- package/src/templates/components/templateForm/__tests__/DependentDomain.spec.js +0 -1
- package/src/templates/components/templateForm/__tests__/DependentFormField.spec.js +0 -1
- package/src/templates/components/templateForm/__tests__/FieldForm.spec.js +106 -72
- package/src/templates/components/templateForm/__tests__/GroupsList.spec.js +7 -12
- package/src/templates/components/templateForm/__tests__/MandatoryConditional.spec.js +0 -1
- package/src/templates/components/templateForm/__tests__/SwitchListForm.spec.js +71 -50
- package/src/templates/components/templateForm/__tests__/SwitchSegment.spec.js +37 -62
- package/src/templates/components/templateForm/__tests__/TemplateForm.spec.js +0 -1
- package/src/templates/components/templateForm/__tests__/TemplateFormActions.spec.js +19 -15
- package/src/templates/components/templateForm/__tests__/ValuesField.spec.js +84 -62
- package/src/templates/components/templateForm/__tests__/ValuesListForm.spec.js +108 -144
- package/src/templates/components/templateForm/__tests__/ValuesSelector.spec.js +36 -36
- package/src/templates/components/templateForm/__tests__/__snapshots__/ActiveGroupForm.spec.js.snap +654 -86
- package/src/templates/components/templateForm/__tests__/__snapshots__/DefaultValue.spec.js.snap +45 -23
- package/src/templates/components/templateForm/__tests__/__snapshots__/FieldForm.spec.js.snap +1700 -1025
- package/src/templates/components/templateForm/__tests__/__snapshots__/GroupsList.spec.js.snap +44 -39
- package/src/templates/components/templateForm/__tests__/__snapshots__/SwitchListForm.spec.js.snap +225 -60
- package/src/templates/components/templateForm/__tests__/__snapshots__/SwitchSegment.spec.js.snap +1 -1
- package/src/templates/components/templateForm/__tests__/__snapshots__/TemplateForm.spec.js.snap +89 -92
- package/src/templates/components/templateForm/__tests__/__snapshots__/TemplateFormActions.spec.js.snap +66 -100
- package/src/templates/components/templateForm/__tests__/__snapshots__/ValuesField.spec.js.snap +542 -231
- package/src/templates/components/templateForm/__tests__/__snapshots__/ValuesListForm.spec.js.snap +264 -268
- package/src/templates/components/templateForm/__tests__/__snapshots__/ValuesSelector.spec.js.snap +146 -11
- package/src/templates/reducers/__tests__/allTemplates.spec.js +1 -1
- package/src/templates/reducers/__tests__/template.spec.js +3 -2
- package/src/templates/reducers/__tests__/templateLoading.spec.js +2 -2
- package/src/templates/reducers/__tests__/templates.spec.js +1 -1
- package/src/templates/reducers/__tests__/templatesLoading.spec.js +1 -1
- package/src/templates/reducers/allTemplates.js +1 -2
- package/src/templates/reducers/template.js +2 -1
- package/src/templates/reducers/templates.js +1 -1
- package/src/templates/reducers/templatesLoading.js +1 -1
- package/src/templates/routines.js +0 -2
- package/src/templates/sagas/__tests__/deleteTemplate.spec.js +2 -2
- package/src/templates/sagas/__tests__/fetchTemplates.spec.js +3 -6
- package/src/templates/sagas/__tests__/updateTemplate.spec.js +4 -4
- package/src/templates/sagas/deleteTemplate.js +1 -1
- package/src/templates/sagas/fetchTemplate.js +1 -1
- package/src/templates/sagas/fetchTemplates.js +1 -1
- package/src/templates/sagas/updateTemplate.js +1 -1
- package/src/templates/utils/filterSwitches.js +2 -2
- package/src/templates/utils/filterValues.js +2 -2
- package/src/api/hierarchies.js +0 -4
- package/src/components/FieldGroupCopy.js +0 -108
- package/src/components/FieldGroupSubSegment/FieldGroupSubSegment.js +0 -181
- package/src/components/FieldGroupSubSegment/__tests__/FieldGroupSubSegment.spec.js +0 -221
- package/src/components/FieldGroupSubSegment/__tests__/__snapshots__/FieldGroupSubSegment.spec.js.snap +0 -230
- package/src/components/FieldGroupSubSegment/constants.js +0 -68
- package/src/components/FieldGroupSubSegment/copyValidations.js +0 -75
- package/src/components/FieldGroupSubSegment/handleCopyModule.js +0 -186
- package/src/components/__tests__/FieldGroupCopy.spec.js +0 -14
- package/src/components/__tests__/__snapshots__/FieldGroupCopy.spec.js.snap +0 -307
- package/src/components/widgets/CopyField/CopyField.js +0 -270
- package/src/components/widgets/CopyField/CopyFieldCell.js +0 -138
- package/src/components/widgets/CopyField/CopyFieldColumn.js +0 -53
- package/src/components/widgets/CopyField/CopyFieldSelectableCell.js +0 -71
- package/src/components/widgets/CopyField/CustomStyles.js +0 -91
- package/src/components/widgets/CopyField/__tests__/CopyField.spec.js +0 -82
- package/src/components/widgets/CopyField/__tests__/CopyFieldCell.spec.js +0 -67
- package/src/components/widgets/CopyField/__tests__/CopyFieldColumn.spec.js +0 -33
- package/src/components/widgets/CopyField/__tests__/CopyFieldSelectableCell.spec.js +0 -49
- package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyField.spec.js.snap +0 -279
- package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyFieldCell.spec.js.snap +0 -67
- package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyFieldColumn.spec.js.snap +0 -42
- package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyFieldSelectableCell.spec.js.snap +0 -60
- package/src/hooks/useHierarchies.js +0 -112
- package/src/selectors/subscopedTemplates.js +0 -16
- package/src/templates/components/TemplatesLoader.js +0 -24
- package/src/templates/components/__tests__/TemplatesLoader.spec.js +0 -29
|
@@ -7,9 +7,10 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
7
7
|
>
|
|
8
8
|
<a
|
|
9
9
|
class="section"
|
|
10
|
+
data-discover="true"
|
|
10
11
|
href="/templates"
|
|
11
12
|
>
|
|
12
|
-
|
|
13
|
+
navigation.templates
|
|
13
14
|
</a>
|
|
14
15
|
<i
|
|
15
16
|
aria-hidden="true"
|
|
@@ -38,7 +39,6 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
38
39
|
<div
|
|
39
40
|
class="content"
|
|
40
41
|
>
|
|
41
|
-
|
|
42
42
|
<div
|
|
43
43
|
class="sub header"
|
|
44
44
|
/>
|
|
@@ -62,7 +62,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
62
62
|
<h4
|
|
63
63
|
class="ui header"
|
|
64
64
|
>
|
|
65
|
-
|
|
65
|
+
template.form.header
|
|
66
66
|
</h4>
|
|
67
67
|
</div>
|
|
68
68
|
<div
|
|
@@ -72,11 +72,11 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
72
72
|
class="required six wide field"
|
|
73
73
|
>
|
|
74
74
|
<label>
|
|
75
|
-
|
|
75
|
+
template.form.name
|
|
76
76
|
<div
|
|
77
77
|
class="ui left pointing label"
|
|
78
78
|
>
|
|
79
|
-
|
|
79
|
+
template.form.validation.empty_required
|
|
80
80
|
</div>
|
|
81
81
|
</label>
|
|
82
82
|
<div
|
|
@@ -95,11 +95,11 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
95
95
|
class="required six wide field"
|
|
96
96
|
>
|
|
97
97
|
<label>
|
|
98
|
-
|
|
98
|
+
template.form.label
|
|
99
99
|
<div
|
|
100
100
|
class="ui left pointing label"
|
|
101
101
|
>
|
|
102
|
-
|
|
102
|
+
template.form.validation.empty_required
|
|
103
103
|
</div>
|
|
104
104
|
</label>
|
|
105
105
|
<div
|
|
@@ -117,11 +117,11 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
117
117
|
class="required four wide field"
|
|
118
118
|
>
|
|
119
119
|
<label>
|
|
120
|
-
|
|
120
|
+
template.form.scope
|
|
121
121
|
<div
|
|
122
122
|
class="ui left pointing label"
|
|
123
123
|
>
|
|
124
|
-
|
|
124
|
+
template.form.validation.empty_required
|
|
125
125
|
</div>
|
|
126
126
|
</label>
|
|
127
127
|
<div
|
|
@@ -138,7 +138,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
138
138
|
class="divider default text"
|
|
139
139
|
role="alert"
|
|
140
140
|
>
|
|
141
|
-
|
|
141
|
+
template.form.scope.placeholder
|
|
142
142
|
</div>
|
|
143
143
|
<i
|
|
144
144
|
aria-hidden="true"
|
|
@@ -157,7 +157,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
157
157
|
<span
|
|
158
158
|
class="text"
|
|
159
159
|
>
|
|
160
|
-
|
|
160
|
+
template.scope.bg
|
|
161
161
|
</span>
|
|
162
162
|
</div>
|
|
163
163
|
<div
|
|
@@ -170,7 +170,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
170
170
|
<span
|
|
171
171
|
class="text"
|
|
172
172
|
>
|
|
173
|
-
|
|
173
|
+
template.scope.dd
|
|
174
174
|
</span>
|
|
175
175
|
</div>
|
|
176
176
|
<div
|
|
@@ -183,7 +183,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
183
183
|
<span
|
|
184
184
|
class="text"
|
|
185
185
|
>
|
|
186
|
-
|
|
186
|
+
template.scope.dq
|
|
187
187
|
</span>
|
|
188
188
|
</div>
|
|
189
189
|
<div
|
|
@@ -196,7 +196,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
196
196
|
<span
|
|
197
197
|
class="text"
|
|
198
198
|
>
|
|
199
|
-
|
|
199
|
+
template.scope.gr
|
|
200
200
|
</span>
|
|
201
201
|
</div>
|
|
202
202
|
<div
|
|
@@ -209,7 +209,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
209
209
|
<span
|
|
210
210
|
class="text"
|
|
211
211
|
>
|
|
212
|
-
|
|
212
|
+
template.scope.ie
|
|
213
213
|
</span>
|
|
214
214
|
</div>
|
|
215
215
|
<div
|
|
@@ -222,7 +222,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
222
222
|
<span
|
|
223
223
|
class="text"
|
|
224
224
|
>
|
|
225
|
-
|
|
225
|
+
template.scope.qe
|
|
226
226
|
</span>
|
|
227
227
|
</div>
|
|
228
228
|
<div
|
|
@@ -235,7 +235,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
235
235
|
<span
|
|
236
236
|
class="text"
|
|
237
237
|
>
|
|
238
|
-
|
|
238
|
+
template.scope.quality_control
|
|
239
239
|
</span>
|
|
240
240
|
</div>
|
|
241
241
|
<div
|
|
@@ -248,7 +248,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
248
248
|
<span
|
|
249
249
|
class="text"
|
|
250
250
|
>
|
|
251
|
-
|
|
251
|
+
template.scope.qxe
|
|
252
252
|
</span>
|
|
253
253
|
</div>
|
|
254
254
|
<div
|
|
@@ -261,7 +261,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
261
261
|
<span
|
|
262
262
|
class="text"
|
|
263
263
|
>
|
|
264
|
-
|
|
264
|
+
template.scope.remediation
|
|
265
265
|
</span>
|
|
266
266
|
</div>
|
|
267
267
|
<div
|
|
@@ -274,7 +274,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
274
274
|
<span
|
|
275
275
|
class="text"
|
|
276
276
|
>
|
|
277
|
-
template.scope.
|
|
277
|
+
template.scope.ri
|
|
278
278
|
</span>
|
|
279
279
|
</div>
|
|
280
280
|
</div>
|
|
@@ -284,7 +284,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
284
284
|
class="disabled six wide field"
|
|
285
285
|
>
|
|
286
286
|
<label>
|
|
287
|
-
|
|
287
|
+
template.form.subscope
|
|
288
288
|
</label>
|
|
289
289
|
<div
|
|
290
290
|
class="ui disabled input"
|
|
@@ -292,7 +292,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
292
292
|
<input
|
|
293
293
|
disabled=""
|
|
294
294
|
name="subscope"
|
|
295
|
-
placeholder="
|
|
295
|
+
placeholder="template.form.subscope.placeholder"
|
|
296
296
|
tabindex="-1"
|
|
297
297
|
type="text"
|
|
298
298
|
value=""
|
|
@@ -306,7 +306,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
306
306
|
<h4
|
|
307
307
|
class="ui header"
|
|
308
308
|
>
|
|
309
|
-
|
|
309
|
+
template.form.fieldGroups
|
|
310
310
|
</h4>
|
|
311
311
|
</div>
|
|
312
312
|
<div
|
|
@@ -325,7 +325,7 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
325
325
|
aria-hidden="true"
|
|
326
326
|
class="square plus icon"
|
|
327
327
|
/>
|
|
328
|
-
|
|
328
|
+
template.form.newGroup
|
|
329
329
|
</a>
|
|
330
330
|
</div>
|
|
331
331
|
</div>
|
|
@@ -344,12 +344,12 @@ exports[`<Template /> matches the latest snapshot for empty data 1`] = `
|
|
|
344
344
|
disabled=""
|
|
345
345
|
tabindex="-1"
|
|
346
346
|
>
|
|
347
|
-
|
|
347
|
+
actions.save
|
|
348
348
|
</button>
|
|
349
349
|
<button
|
|
350
350
|
class="ui button"
|
|
351
351
|
>
|
|
352
|
-
|
|
352
|
+
actions.cancel
|
|
353
353
|
</button>
|
|
354
354
|
</div>
|
|
355
355
|
</form>
|
|
@@ -364,9 +364,10 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
364
364
|
>
|
|
365
365
|
<a
|
|
366
366
|
class="section"
|
|
367
|
+
data-discover="true"
|
|
367
368
|
href="/templates"
|
|
368
369
|
>
|
|
369
|
-
|
|
370
|
+
navigation.templates
|
|
370
371
|
</a>
|
|
371
372
|
<i
|
|
372
373
|
aria-hidden="true"
|
|
@@ -432,7 +433,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
432
433
|
<h4
|
|
433
434
|
class="ui header"
|
|
434
435
|
>
|
|
435
|
-
|
|
436
|
+
template.form.header
|
|
436
437
|
</h4>
|
|
437
438
|
</div>
|
|
438
439
|
<div
|
|
@@ -442,7 +443,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
442
443
|
class="required six wide field"
|
|
443
444
|
>
|
|
444
445
|
<label>
|
|
445
|
-
|
|
446
|
+
template.form.name
|
|
446
447
|
</label>
|
|
447
448
|
<div
|
|
448
449
|
class="ui input"
|
|
@@ -460,7 +461,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
460
461
|
class="required six wide field"
|
|
461
462
|
>
|
|
462
463
|
<label>
|
|
463
|
-
|
|
464
|
+
template.form.label
|
|
464
465
|
</label>
|
|
465
466
|
<div
|
|
466
467
|
class="ui input"
|
|
@@ -477,7 +478,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
477
478
|
class="required four wide field"
|
|
478
479
|
>
|
|
479
480
|
<label>
|
|
480
|
-
|
|
481
|
+
template.form.scope
|
|
481
482
|
</label>
|
|
482
483
|
<div
|
|
483
484
|
aria-expanded="false"
|
|
@@ -493,7 +494,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
493
494
|
class="divider text"
|
|
494
495
|
role="alert"
|
|
495
496
|
>
|
|
496
|
-
|
|
497
|
+
template.form.scope.placeholder
|
|
497
498
|
</div>
|
|
498
499
|
<i
|
|
499
500
|
aria-hidden="true"
|
|
@@ -512,7 +513,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
512
513
|
<span
|
|
513
514
|
class="text"
|
|
514
515
|
>
|
|
515
|
-
|
|
516
|
+
template.scope.bg
|
|
516
517
|
</span>
|
|
517
518
|
</div>
|
|
518
519
|
<div
|
|
@@ -525,7 +526,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
525
526
|
<span
|
|
526
527
|
class="text"
|
|
527
528
|
>
|
|
528
|
-
|
|
529
|
+
template.scope.dd
|
|
529
530
|
</span>
|
|
530
531
|
</div>
|
|
531
532
|
<div
|
|
@@ -538,7 +539,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
538
539
|
<span
|
|
539
540
|
class="text"
|
|
540
541
|
>
|
|
541
|
-
|
|
542
|
+
template.scope.dq
|
|
542
543
|
</span>
|
|
543
544
|
</div>
|
|
544
545
|
<div
|
|
@@ -551,7 +552,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
551
552
|
<span
|
|
552
553
|
class="text"
|
|
553
554
|
>
|
|
554
|
-
|
|
555
|
+
template.scope.gr
|
|
555
556
|
</span>
|
|
556
557
|
</div>
|
|
557
558
|
<div
|
|
@@ -564,7 +565,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
564
565
|
<span
|
|
565
566
|
class="text"
|
|
566
567
|
>
|
|
567
|
-
|
|
568
|
+
template.scope.ie
|
|
568
569
|
</span>
|
|
569
570
|
</div>
|
|
570
571
|
<div
|
|
@@ -577,7 +578,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
577
578
|
<span
|
|
578
579
|
class="text"
|
|
579
580
|
>
|
|
580
|
-
|
|
581
|
+
template.scope.qe
|
|
581
582
|
</span>
|
|
582
583
|
</div>
|
|
583
584
|
<div
|
|
@@ -590,7 +591,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
590
591
|
<span
|
|
591
592
|
class="text"
|
|
592
593
|
>
|
|
593
|
-
|
|
594
|
+
template.scope.quality_control
|
|
594
595
|
</span>
|
|
595
596
|
</div>
|
|
596
597
|
<div
|
|
@@ -603,7 +604,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
603
604
|
<span
|
|
604
605
|
class="text"
|
|
605
606
|
>
|
|
606
|
-
|
|
607
|
+
template.scope.qxe
|
|
607
608
|
</span>
|
|
608
609
|
</div>
|
|
609
610
|
<div
|
|
@@ -616,7 +617,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
616
617
|
<span
|
|
617
618
|
class="text"
|
|
618
619
|
>
|
|
619
|
-
|
|
620
|
+
template.scope.remediation
|
|
620
621
|
</span>
|
|
621
622
|
</div>
|
|
622
623
|
<div
|
|
@@ -629,7 +630,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
629
630
|
<span
|
|
630
631
|
class="text"
|
|
631
632
|
>
|
|
632
|
-
template.scope.
|
|
633
|
+
template.scope.ri
|
|
633
634
|
</span>
|
|
634
635
|
</div>
|
|
635
636
|
</div>
|
|
@@ -639,7 +640,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
639
640
|
class="disabled six wide field"
|
|
640
641
|
>
|
|
641
642
|
<label>
|
|
642
|
-
|
|
643
|
+
template.form.subscope
|
|
643
644
|
</label>
|
|
644
645
|
<div
|
|
645
646
|
class="ui disabled input"
|
|
@@ -647,7 +648,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
647
648
|
<input
|
|
648
649
|
disabled=""
|
|
649
650
|
name="subscope"
|
|
650
|
-
placeholder="
|
|
651
|
+
placeholder="template.form.subscope.placeholder"
|
|
651
652
|
tabindex="-1"
|
|
652
653
|
type="text"
|
|
653
654
|
value=""
|
|
@@ -661,7 +662,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
661
662
|
<h4
|
|
662
663
|
class="ui header"
|
|
663
664
|
>
|
|
664
|
-
|
|
665
|
+
template.form.fieldGroups
|
|
665
666
|
</h4>
|
|
666
667
|
</div>
|
|
667
668
|
<div
|
|
@@ -680,7 +681,7 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
680
681
|
aria-hidden="true"
|
|
681
682
|
class="square plus icon"
|
|
682
683
|
/>
|
|
683
|
-
|
|
684
|
+
template.form.newGroup
|
|
684
685
|
</a>
|
|
685
686
|
</div>
|
|
686
687
|
</div>
|
|
@@ -699,12 +700,12 @@ exports[`<Template /> matches the latest snapshot with previous data 1`] = `
|
|
|
699
700
|
disabled=""
|
|
700
701
|
tabindex="-1"
|
|
701
702
|
>
|
|
702
|
-
|
|
703
|
+
actions.save
|
|
703
704
|
</button>
|
|
704
705
|
<button
|
|
705
706
|
class="ui button"
|
|
706
707
|
>
|
|
707
|
-
|
|
708
|
+
actions.cancel
|
|
708
709
|
</button>
|
|
709
710
|
</div>
|
|
710
711
|
</form>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`<TemplateRoutes /> renders correctly with default route 1`] = `<div />`;
|
|
4
|
+
|
|
5
|
+
exports[`<TemplateRoutes /> renders correctly with template route 1`] = `
|
|
6
|
+
<div>
|
|
7
|
+
<div>
|
|
8
|
+
TemplateLoader
|
|
9
|
+
</div>
|
|
10
|
+
<div>
|
|
11
|
+
Template
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
`;
|
|
15
|
+
|
|
16
|
+
exports[`<TemplateRoutes /> renders correctly with templates new route 1`] = `
|
|
17
|
+
<div>
|
|
18
|
+
<div>
|
|
19
|
+
NewTemplate
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
`;
|
|
23
|
+
|
|
24
|
+
exports[`<TemplateRoutes /> renders correctly with templates route 1`] = `
|
|
25
|
+
<div>
|
|
26
|
+
<div>
|
|
27
|
+
TemplatesContext
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
`;
|
|
31
|
+
|
|
32
|
+
exports[`<TemplateRoutes /> renders unauthorized component when not authorized 1`] = `
|
|
33
|
+
<div>
|
|
34
|
+
<div>
|
|
35
|
+
Unauthorized
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
`;
|
|
@@ -1,3 +1,96 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`<TemplatesTable /> matches the latest snapshot 1`] =
|
|
3
|
+
exports[`<TemplatesTable /> matches the latest snapshot 1`] = `
|
|
4
|
+
<div>
|
|
5
|
+
<table
|
|
6
|
+
class="ui sortable table"
|
|
7
|
+
>
|
|
8
|
+
<thead
|
|
9
|
+
class=""
|
|
10
|
+
>
|
|
11
|
+
<tr
|
|
12
|
+
class=""
|
|
13
|
+
>
|
|
14
|
+
<th
|
|
15
|
+
class=""
|
|
16
|
+
>
|
|
17
|
+
name
|
|
18
|
+
</th>
|
|
19
|
+
<th
|
|
20
|
+
class=""
|
|
21
|
+
>
|
|
22
|
+
label
|
|
23
|
+
</th>
|
|
24
|
+
<th
|
|
25
|
+
class="two wide"
|
|
26
|
+
>
|
|
27
|
+
scope
|
|
28
|
+
</th>
|
|
29
|
+
<th
|
|
30
|
+
class="two wide"
|
|
31
|
+
>
|
|
32
|
+
updated_at
|
|
33
|
+
</th>
|
|
34
|
+
</tr>
|
|
35
|
+
</thead>
|
|
36
|
+
<tbody
|
|
37
|
+
class=""
|
|
38
|
+
>
|
|
39
|
+
<tr
|
|
40
|
+
class=""
|
|
41
|
+
>
|
|
42
|
+
<td
|
|
43
|
+
class=""
|
|
44
|
+
>
|
|
45
|
+
<a
|
|
46
|
+
data-discover="true"
|
|
47
|
+
href="/templates/1"
|
|
48
|
+
>
|
|
49
|
+
testbg
|
|
50
|
+
</a>
|
|
51
|
+
</td>
|
|
52
|
+
<td
|
|
53
|
+
class=""
|
|
54
|
+
>
|
|
55
|
+
testbg
|
|
56
|
+
</td>
|
|
57
|
+
<td
|
|
58
|
+
class=""
|
|
59
|
+
>
|
|
60
|
+
template.scope.bg
|
|
61
|
+
</td>
|
|
62
|
+
<td
|
|
63
|
+
class="center aligned"
|
|
64
|
+
/>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr
|
|
67
|
+
class=""
|
|
68
|
+
>
|
|
69
|
+
<td
|
|
70
|
+
class=""
|
|
71
|
+
>
|
|
72
|
+
<a
|
|
73
|
+
data-discover="true"
|
|
74
|
+
href="/templates/2"
|
|
75
|
+
>
|
|
76
|
+
testdq
|
|
77
|
+
</a>
|
|
78
|
+
</td>
|
|
79
|
+
<td
|
|
80
|
+
class=""
|
|
81
|
+
>
|
|
82
|
+
testdq
|
|
83
|
+
</td>
|
|
84
|
+
<td
|
|
85
|
+
class=""
|
|
86
|
+
>
|
|
87
|
+
template.scope.dq
|
|
88
|
+
</td>
|
|
89
|
+
<td
|
|
90
|
+
class="center aligned"
|
|
91
|
+
/>
|
|
92
|
+
</tr>
|
|
93
|
+
</tbody>
|
|
94
|
+
</table>
|
|
95
|
+
</div>
|
|
96
|
+
`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
2
|
+
import { useState } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import {
|
|
5
5
|
Accordion,
|
|
@@ -95,9 +95,6 @@ export const ActiveGroupForm = ({
|
|
|
95
95
|
|
|
96
96
|
const { formatMessage } = useIntl();
|
|
97
97
|
|
|
98
|
-
const isNullOrEmpty = (value) =>
|
|
99
|
-
!_.isNumber(value) && (!value || _.isEmpty(value));
|
|
100
|
-
|
|
101
98
|
return (
|
|
102
99
|
<>
|
|
103
100
|
<Button.Group
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
2
|
+
import { useEffect } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
5
5
|
import { Form, Button, Divider, Label, Segment } from "semantic-ui-react";
|
|
@@ -18,10 +18,10 @@ const typeFromKey = (keys) =>
|
|
|
18
18
|
_.includes("role_groups")(keys)
|
|
19
19
|
? "role_groups"
|
|
20
20
|
: _.includes("role_users")(keys)
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
? "role_users"
|
|
22
|
+
: _.includes("hierarchy")(keys)
|
|
23
|
+
? "hierarchy"
|
|
24
|
+
: _.first(keys);
|
|
25
25
|
|
|
26
26
|
const defaultType = (values) => _.flow(_.map("value"), _.first)(values);
|
|
27
27
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import PropTypes from "prop-types";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { Form } from "semantic-ui-react";
|
|
6
|
-
import { useHierarchies } from "
|
|
5
|
+
import { useHierarchies } from "@truedat/core/hooks/useHierarchies";
|
|
7
6
|
|
|
8
7
|
export const HierarchiesList = ({ hierarchies, onChange, values, loading }) => {
|
|
9
8
|
const { formatMessage } = useIntl();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
2
|
+
import { Component } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { FormattedMessage, injectIntl } from "react-intl";
|
|
5
5
|
import { Form, Icon, List, Label } from "semantic-ui-react";
|
|
@@ -9,7 +9,7 @@ const initialState = {
|
|
|
9
9
|
error: false,
|
|
10
10
|
value: "",
|
|
11
11
|
};
|
|
12
|
-
export class SwitchListForm extends
|
|
12
|
+
export class SwitchListForm extends Component {
|
|
13
13
|
state = initialState;
|
|
14
14
|
|
|
15
15
|
handleSubmit = ({ key }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
5
|
import { Header, Form, Grid, Label, Divider } from "semantic-ui-react";
|