@truedat/df 7.5.7 → 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.
Files changed (212) hide show
  1. package/package.json +43 -67
  2. package/src/components/DynamicFieldValue.js +0 -1
  3. package/src/components/DynamicForm.js +5 -4
  4. package/src/components/DynamicFormViewer.js +0 -1
  5. package/src/components/DynamicFormWithTranslations.js +3 -3
  6. package/src/components/EditableDynamicFieldValue.js +1 -2
  7. package/src/components/FieldGroupDetail.js +0 -1
  8. package/src/components/FieldGroupSegment.js +17 -29
  9. package/src/components/FieldGroupWithTranslations.js +19 -38
  10. package/src/components/FieldViewerValue.js +4 -7
  11. package/src/components/OriginLabel.js +0 -1
  12. package/src/components/SelectDynamicFormWithTranslations.js +4 -6
  13. package/src/components/SelectableDynamicForm.js +5 -11
  14. package/src/components/__tests__/DynamicFieldValue.spec.js +0 -1
  15. package/src/components/__tests__/DynamicForm.spec.js +25 -23
  16. package/src/components/__tests__/EditableDynamicFieldValue.spec.js +0 -1
  17. package/src/components/__tests__/FieldGroupDetail.spec.js +0 -1
  18. package/src/components/__tests__/FieldViewerValue.spec.js +1 -6
  19. package/src/components/__tests__/SelectableDynamicForm.spec.js +102 -46
  20. package/src/components/__tests__/__snapshots__/DynamicFieldValue.spec.js.snap +2 -2
  21. package/src/components/__tests__/__snapshots__/DynamicForm.spec.js.snap +94 -81
  22. package/src/components/__tests__/__snapshots__/FieldGroupDetail.spec.js.snap +2 -2
  23. package/src/components/__tests__/__snapshots__/FieldViewerValue.spec.js.snap +1 -7
  24. package/src/components/__tests__/__snapshots__/SelectableDynamicForm.spec.js.snap +39 -39
  25. package/src/components/hierarchies/Hierarchies.js +2 -4
  26. package/src/components/hierarchies/HierarchiesView.js +1 -2
  27. package/src/components/hierarchies/HierarchyCrumbs.js +1 -2
  28. package/src/components/hierarchies/HierarchyRoutes.js +44 -39
  29. package/src/components/hierarchies/HierarchyView.js +4 -7
  30. package/src/components/hierarchies/__tests__/Hierarchies.spec.js +2 -3
  31. package/src/components/hierarchies/__tests__/HierarchiesView.spec.js +3 -7
  32. package/src/components/hierarchies/__tests__/HierarchyCrumbs.spec.js +0 -1
  33. package/src/components/hierarchies/__tests__/HierarchyRoutes.spec.js +79 -0
  34. package/src/components/hierarchies/__tests__/HierarchyView.spec.js +2 -10
  35. package/src/components/hierarchies/__tests__/__snapshots__/Hierarchies.spec.js.snap +1 -0
  36. package/src/components/hierarchies/__tests__/__snapshots__/HierarchiesView.spec.js.snap +7 -5
  37. package/src/components/hierarchies/__tests__/__snapshots__/HierarchyCrumbs.spec.js.snap +4 -2
  38. package/src/components/hierarchies/__tests__/__snapshots__/HierarchyRoutes.spec.js.snap +60 -0
  39. package/src/components/hierarchies/__tests__/__snapshots__/HierarchyView.spec.js.snap +8 -6
  40. package/src/components/widgets/CheckboxField.js +0 -1
  41. package/src/components/widgets/ColorPickerField.js +2 -3
  42. package/src/components/widgets/DateField.js +0 -1
  43. package/src/components/widgets/DateTimeField.js +0 -1
  44. package/src/components/widgets/DomainDropdown.js +1 -1
  45. package/src/components/widgets/DomainPreview.js +1 -2
  46. package/src/components/widgets/DropdownDataLoader.js +3 -3
  47. package/src/components/widgets/DropdownField.js +5 -4
  48. package/src/components/widgets/DynamicField.js +0 -5
  49. package/src/components/widgets/EnrichedTextField.js +0 -1
  50. package/src/components/widgets/HierarchyDropdown.js +1 -1
  51. package/src/components/widgets/HierarchyPreview.js +0 -1
  52. package/src/components/widgets/IdentifierField.js +0 -1
  53. package/src/components/widgets/ImageField.js +1 -1
  54. package/src/components/widgets/ImagePreview.js +0 -1
  55. package/src/components/widgets/NumberField.js +6 -7
  56. package/src/components/widgets/PairListField.js +5 -6
  57. package/src/components/widgets/PasswordField.js +1 -2
  58. package/src/components/widgets/RadioField.js +0 -1
  59. package/src/components/widgets/StandardDropdown.js +0 -1
  60. package/src/components/widgets/StringField.js +0 -1
  61. package/src/components/widgets/SystemPreview.js +2 -3
  62. package/src/components/widgets/TableField.js +5 -5
  63. package/src/components/widgets/TextField.js +1 -2
  64. package/src/components/widgets/__tests__/CheckboxField.spec.js +33 -23
  65. package/src/components/widgets/__tests__/ColorPickerField.spec.js +5 -12
  66. package/src/components/widgets/__tests__/DateField.spec.js +5 -5
  67. package/src/components/widgets/__tests__/DateTimeField.spec.js +5 -5
  68. package/src/components/widgets/__tests__/DomainPreview.spec.js +12 -14
  69. package/src/components/widgets/__tests__/DropdownDataLoader.spec.js +5 -5
  70. package/src/components/widgets/__tests__/DropdownField.spec.js +18 -29
  71. package/src/components/widgets/__tests__/DynamicField.spec.js +0 -1
  72. package/src/components/widgets/__tests__/HierarchyDropdown.spec.js +4 -5
  73. package/src/components/widgets/__tests__/HierarchyPreview.spec.js +0 -1
  74. package/src/components/widgets/__tests__/ImageField.spec.js +5 -10
  75. package/src/components/widgets/__tests__/NumberField.spec.js +23 -5
  76. package/src/components/widgets/__tests__/PairListField.spec.js +69 -59
  77. package/src/components/widgets/__tests__/PasswordField.spec.js +3 -4
  78. package/src/components/widgets/__tests__/RadioField.spec.js +5 -5
  79. package/src/components/widgets/__tests__/StandardDropdown.spec.js +45 -46
  80. package/src/components/widgets/__tests__/StringField.spec.js +10 -13
  81. package/src/components/widgets/__tests__/SystemPreview.spec.js +13 -15
  82. package/src/components/widgets/__tests__/TableField.spec.js +32 -32
  83. package/src/components/widgets/__tests__/TextField.spec.js +5 -5
  84. package/src/components/widgets/__tests__/__snapshots__/CheckboxField.spec.js.snap +58 -29
  85. package/src/components/widgets/__tests__/__snapshots__/ColorPickerField.spec.js.snap +221 -36
  86. package/src/components/widgets/__tests__/__snapshots__/DateField.spec.js.snap +21 -16
  87. package/src/components/widgets/__tests__/__snapshots__/DateTimeField.spec.js.snap +21 -20
  88. package/src/components/widgets/__tests__/__snapshots__/DomainPreview.spec.js.snap +26 -21
  89. package/src/components/widgets/__tests__/__snapshots__/DropdownDataLoader.spec.js.snap +1 -1
  90. package/src/components/widgets/__tests__/__snapshots__/DropdownField.spec.js.snap +93 -43
  91. package/src/components/widgets/__tests__/__snapshots__/DynamicField.spec.js.snap +2 -14
  92. package/src/components/widgets/__tests__/__snapshots__/ImageField.spec.js.snap +16 -28
  93. package/src/components/widgets/__tests__/__snapshots__/NumberField.spec.js.snap +11 -9
  94. package/src/components/widgets/__tests__/__snapshots__/PairListField.spec.js.snap +53 -39
  95. package/src/components/widgets/__tests__/__snapshots__/PasswordField.spec.js.snap +15 -8
  96. package/src/components/widgets/__tests__/__snapshots__/RadioField.spec.js.snap +41 -22
  97. package/src/components/widgets/__tests__/__snapshots__/StandardDropdown.spec.js.snap +78 -31
  98. package/src/components/widgets/__tests__/__snapshots__/StringField.spec.js.snap +78 -38
  99. package/src/components/widgets/__tests__/__snapshots__/SystemPreview.spec.js.snap +24 -21
  100. package/src/components/widgets/__tests__/__snapshots__/TableField.spec.js.snap +138 -174
  101. package/src/components/widgets/__tests__/__snapshots__/TextField.spec.js.snap +12 -7
  102. package/src/reducers/__tests__/dfMessage.spec.js +14 -18
  103. package/src/reducers/dfMessage.js +8 -7
  104. package/src/selectors/index.js +0 -1
  105. package/src/templates/components/NewTemplate.js +0 -1
  106. package/src/templates/components/Template.js +0 -2
  107. package/src/templates/components/TemplateCard.js +3 -4
  108. package/src/templates/components/TemplateCrumbs.js +2 -3
  109. package/src/templates/components/TemplateFilters.js +0 -1
  110. package/src/templates/components/TemplateLoader.js +25 -101
  111. package/src/templates/components/TemplateRoutes.js +29 -45
  112. package/src/templates/components/Templates.js +1 -5
  113. package/src/templates/components/TemplatesContext.js +3 -7
  114. package/src/templates/components/TemplatesTable.js +1 -2
  115. package/src/templates/components/__tests__/NewTemplate.spec.js +5 -10
  116. package/src/templates/components/__tests__/Template.spec.js +0 -1
  117. package/src/templates/components/__tests__/TemplateLoader.spec.js +71 -109
  118. package/src/templates/components/__tests__/TemplateRoutes.spec.js +63 -0
  119. package/src/templates/components/__tests__/TemplatesTable.spec.js +15 -9
  120. package/src/templates/components/__tests__/__snapshots__/NewTemplate.spec.js.snap +335 -22
  121. package/src/templates/components/__tests__/__snapshots__/Template.spec.js.snap +49 -48
  122. package/src/templates/components/__tests__/__snapshots__/TemplateLoader.spec.js.snap +7 -1
  123. package/src/templates/components/__tests__/__snapshots__/TemplateRoutes.spec.js.snap +38 -0
  124. package/src/templates/components/__tests__/__snapshots__/TemplatesTable.spec.js.snap +94 -1
  125. package/src/templates/components/index.js +1 -2
  126. package/src/templates/components/templateForm/ActiveGroupForm.js +1 -4
  127. package/src/templates/components/templateForm/ConditionalFieldForm.js +0 -1
  128. package/src/templates/components/templateForm/DefaultValue.js +0 -1
  129. package/src/templates/components/templateForm/DependentDomain.js +0 -1
  130. package/src/templates/components/templateForm/DependentFormField.js +0 -1
  131. package/src/templates/components/templateForm/FieldForm.js +5 -5
  132. package/src/templates/components/templateForm/GroupsList.js +0 -1
  133. package/src/templates/components/templateForm/HierarchiesList.js +1 -2
  134. package/src/templates/components/templateForm/MandatoryConditional.js +0 -1
  135. package/src/templates/components/templateForm/SwitchListForm.js +2 -2
  136. package/src/templates/components/templateForm/SwitchSegment.js +0 -1
  137. package/src/templates/components/templateForm/TemplateForm.js +1 -1
  138. package/src/templates/components/templateForm/TemplateFormActions.js +3 -4
  139. package/src/templates/components/templateForm/ValuesField.js +1 -3
  140. package/src/templates/components/templateForm/ValuesListForm.js +3 -3
  141. package/src/templates/components/templateForm/ValuesSelector.js +0 -1
  142. package/src/templates/components/templateForm/__tests__/ActiveGroupForm.spec.js +8 -13
  143. package/src/templates/components/templateForm/__tests__/DefaultValue.spec.js +198 -113
  144. package/src/templates/components/templateForm/__tests__/DependentDomain.spec.js +0 -1
  145. package/src/templates/components/templateForm/__tests__/DependentFormField.spec.js +0 -1
  146. package/src/templates/components/templateForm/__tests__/FieldForm.spec.js +106 -72
  147. package/src/templates/components/templateForm/__tests__/GroupsList.spec.js +7 -12
  148. package/src/templates/components/templateForm/__tests__/MandatoryConditional.spec.js +0 -1
  149. package/src/templates/components/templateForm/__tests__/SwitchListForm.spec.js +71 -50
  150. package/src/templates/components/templateForm/__tests__/SwitchSegment.spec.js +37 -62
  151. package/src/templates/components/templateForm/__tests__/TemplateForm.spec.js +0 -1
  152. package/src/templates/components/templateForm/__tests__/TemplateFormActions.spec.js +19 -15
  153. package/src/templates/components/templateForm/__tests__/ValuesField.spec.js +84 -62
  154. package/src/templates/components/templateForm/__tests__/ValuesListForm.spec.js +108 -144
  155. package/src/templates/components/templateForm/__tests__/ValuesSelector.spec.js +36 -36
  156. package/src/templates/components/templateForm/__tests__/__snapshots__/ActiveGroupForm.spec.js.snap +654 -86
  157. package/src/templates/components/templateForm/__tests__/__snapshots__/DefaultValue.spec.js.snap +45 -23
  158. package/src/templates/components/templateForm/__tests__/__snapshots__/FieldForm.spec.js.snap +1700 -1025
  159. package/src/templates/components/templateForm/__tests__/__snapshots__/GroupsList.spec.js.snap +44 -39
  160. package/src/templates/components/templateForm/__tests__/__snapshots__/SwitchListForm.spec.js.snap +225 -60
  161. package/src/templates/components/templateForm/__tests__/__snapshots__/SwitchSegment.spec.js.snap +1 -1
  162. package/src/templates/components/templateForm/__tests__/__snapshots__/TemplateForm.spec.js.snap +89 -92
  163. package/src/templates/components/templateForm/__tests__/__snapshots__/TemplateFormActions.spec.js.snap +66 -100
  164. package/src/templates/components/templateForm/__tests__/__snapshots__/ValuesField.spec.js.snap +542 -231
  165. package/src/templates/components/templateForm/__tests__/__snapshots__/ValuesListForm.spec.js.snap +264 -268
  166. package/src/templates/components/templateForm/__tests__/__snapshots__/ValuesSelector.spec.js.snap +146 -11
  167. package/src/templates/reducers/__tests__/allTemplates.spec.js +1 -1
  168. package/src/templates/reducers/__tests__/template.spec.js +3 -2
  169. package/src/templates/reducers/__tests__/templateLoading.spec.js +2 -2
  170. package/src/templates/reducers/__tests__/templates.spec.js +1 -1
  171. package/src/templates/reducers/__tests__/templatesLoading.spec.js +1 -1
  172. package/src/templates/reducers/allTemplates.js +1 -2
  173. package/src/templates/reducers/template.js +2 -1
  174. package/src/templates/reducers/templates.js +1 -1
  175. package/src/templates/reducers/templatesLoading.js +1 -1
  176. package/src/templates/routines.js +0 -2
  177. package/src/templates/sagas/__tests__/deleteTemplate.spec.js +2 -2
  178. package/src/templates/sagas/__tests__/fetchTemplates.spec.js +3 -6
  179. package/src/templates/sagas/__tests__/updateTemplate.spec.js +4 -4
  180. package/src/templates/sagas/deleteTemplate.js +1 -1
  181. package/src/templates/sagas/fetchTemplate.js +1 -1
  182. package/src/templates/sagas/fetchTemplates.js +1 -1
  183. package/src/templates/sagas/updateTemplate.js +1 -1
  184. package/src/templates/utils/filterSwitches.js +2 -2
  185. package/src/templates/utils/filterValues.js +2 -2
  186. package/src/api/hierarchies.js +0 -4
  187. package/src/components/FieldGroupCopy.js +0 -108
  188. package/src/components/FieldGroupSubSegment/FieldGroupSubSegment.js +0 -181
  189. package/src/components/FieldGroupSubSegment/__tests__/FieldGroupSubSegment.spec.js +0 -221
  190. package/src/components/FieldGroupSubSegment/__tests__/__snapshots__/FieldGroupSubSegment.spec.js.snap +0 -230
  191. package/src/components/FieldGroupSubSegment/constants.js +0 -68
  192. package/src/components/FieldGroupSubSegment/copyValidations.js +0 -75
  193. package/src/components/FieldGroupSubSegment/handleCopyModule.js +0 -186
  194. package/src/components/__tests__/FieldGroupCopy.spec.js +0 -14
  195. package/src/components/__tests__/__snapshots__/FieldGroupCopy.spec.js.snap +0 -307
  196. package/src/components/widgets/CopyField/CopyField.js +0 -270
  197. package/src/components/widgets/CopyField/CopyFieldCell.js +0 -138
  198. package/src/components/widgets/CopyField/CopyFieldColumn.js +0 -53
  199. package/src/components/widgets/CopyField/CopyFieldSelectableCell.js +0 -71
  200. package/src/components/widgets/CopyField/CustomStyles.js +0 -91
  201. package/src/components/widgets/CopyField/__tests__/CopyField.spec.js +0 -82
  202. package/src/components/widgets/CopyField/__tests__/CopyFieldCell.spec.js +0 -67
  203. package/src/components/widgets/CopyField/__tests__/CopyFieldColumn.spec.js +0 -33
  204. package/src/components/widgets/CopyField/__tests__/CopyFieldSelectableCell.spec.js +0 -49
  205. package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyField.spec.js.snap +0 -279
  206. package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyFieldCell.spec.js.snap +0 -67
  207. package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyFieldColumn.spec.js.snap +0 -42
  208. package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyFieldSelectableCell.spec.js.snap +0 -60
  209. package/src/hooks/useHierarchies.js +0 -112
  210. package/src/selectors/subscopedTemplates.js +0 -16
  211. package/src/templates/components/TemplatesLoader.js +0 -24
  212. 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
- Templates
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
- Template
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
- Name
75
+ template.form.name
76
76
  <div
77
77
  class="ui left pointing label"
78
78
  >
79
- Empty required field
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
- Label
98
+ template.form.label
99
99
  <div
100
100
  class="ui left pointing label"
101
101
  >
102
- Empty required field
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
- Scope
120
+ template.form.scope
121
121
  <div
122
122
  class="ui left pointing label"
123
123
  >
124
- Empty required field
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
- Select scope...
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
- Business Concept
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
- Data Catalog
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
- Data Request
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
- Grants
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
- Quality Control
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
- Quality Executions
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
- Quality Implementation
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
- Quality Rule
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
- Remediation plan
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.qxe
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
- Subscope
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="Type a subscope..."
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
- Field Groups
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
- Add Group
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
- Save
347
+ actions.save
348
348
  </button>
349
349
  <button
350
350
  class="ui button"
351
351
  >
352
- Cancel
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
- Templates
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
- Template
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
- Name
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
- Label
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
- Scope
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
- Select scope...
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
- Business Concept
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
- Data Catalog
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
- Data Request
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
- Grants
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
- Quality Control
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
- Quality Executions
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
- Quality Implementation
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
- Quality Rule
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
- Remediation plan
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.qxe
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
- Subscope
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="Type a subscope..."
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
- Field Groups
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
- Add Group
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
- Save
703
+ actions.save
703
704
  </button>
704
705
  <button
705
706
  class="ui button"
706
707
  >
707
- Cancel
708
+ actions.cancel
708
709
  </button>
709
710
  </div>
710
711
  </form>
@@ -1,3 +1,9 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`<TemplateLoader /> matches the latest snapshot 1`] = `<Loading />`;
3
+ exports[`<TemplateLoader /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <div
6
+ class="ui active loader"
7
+ />
8
+ </div>
9
+ `;
@@ -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`] = `<TemplatesTable />`;
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,4 @@
1
1
  import TemplateLoader from "./TemplateLoader";
2
2
  import TemplateRoutes from "./TemplateRoutes";
3
- import TemplatesLoader from "./TemplatesLoader";
4
3
 
5
- export { TemplateLoader, TemplateRoutes, TemplatesLoader };
4
+ export { TemplateLoader, TemplateRoutes };
@@ -1,5 +1,5 @@
1
1
  import _ from "lodash/fp";
2
- import React, { useState } from "react";
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,4 @@
1
1
  import _ from "lodash/fp";
2
- import React from "react";
3
2
  import PropTypes from "prop-types";
4
3
  import { FormattedMessage, useIntl } from "react-intl";
5
4
  import { Label } from "semantic-ui-react";
@@ -1,5 +1,4 @@
1
1
  import _ from "lodash/fp";
2
- import React from "react";
3
2
  import PropTypes from "prop-types";
4
3
  import { Form } from "semantic-ui-react";
5
4
  import NumberField from "../../../components/widgets/NumberField";
@@ -1,5 +1,4 @@
1
1
  import _ from "lodash/fp";
2
- import React from "react";
3
2
  import PropTypes from "prop-types";
4
3
  import { FormattedMessage } from "react-intl";
5
4
  import { useQuery } from "@apollo/client";
@@ -1,5 +1,4 @@
1
1
  import _ from "lodash/fp";
2
- import React from "react";
3
2
  import PropTypes from "prop-types";
4
3
  import { Form } from "semantic-ui-react";
5
4
 
@@ -1,5 +1,5 @@
1
1
  import _ from "lodash/fp";
2
- import React, { useEffect } from "react";
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
- ? "role_users"
22
- : _.includes("hierarchy")(keys)
23
- ? "hierarchy"
24
- : _.first(keys);
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,4 +1,3 @@
1
- import React from "react";
2
1
  import PropTypes from "prop-types";
3
2
  import { useIntl } from "react-intl";
4
3
  import { Menu, Label, Icon } from "semantic-ui-react";
@@ -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 "../../../hooks/useHierarchies";
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,4 @@
1
1
  import _ from "lodash/fp";
2
- import React from "react";
3
2
  import PropTypes from "prop-types";
4
3
  import { FormattedMessage, useIntl } from "react-intl";
5
4
  import { Label } from "semantic-ui-react";
@@ -1,5 +1,5 @@
1
1
  import _ from "lodash/fp";
2
- import React from "react";
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 React.Component {
12
+ export class SwitchListForm extends Component {
13
13
  state = initialState;
14
14
 
15
15
  handleSubmit = ({ key }) => {
@@ -1,5 +1,4 @@
1
1
  import _ from "lodash/fp";
2
- import React from "react";
3
2
  import PropTypes from "prop-types";
4
3
  import { Icon, Segment } from "semantic-ui-react";
5
4
  import ValuesListForm from "./ValuesListForm";
@@ -1,5 +1,5 @@
1
1
  import _ from "lodash/fp";
2
- import React, { useState, useEffect } from "react";
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";