@truedat/dd 4.44.1 → 4.44.4

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 (85) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/package.json +6 -6
  3. package/src/api/mutations.js +27 -0
  4. package/src/api/queries.js +24 -0
  5. package/src/api.js +2 -0
  6. package/src/components/DictionaryRoutes.js +7 -5
  7. package/src/components/FilteredNav.js +9 -9
  8. package/src/components/GrantRequestApprovalPopup.js +0 -1
  9. package/src/components/ImplementationStructuresLoader.js +14 -11
  10. package/src/components/PendingStructureNotes.js +10 -4
  11. package/src/components/ReferenceDataset.js +23 -0
  12. package/src/components/ReferenceDatasetActions.js +88 -0
  13. package/src/components/ReferenceDatasetBreadcrumbs.js +22 -0
  14. package/src/components/ReferenceDatasetCreate.js +36 -0
  15. package/src/components/ReferenceDatasetDetail.js +42 -0
  16. package/src/components/ReferenceDatasetForm.js +109 -0
  17. package/src/components/ReferenceDatasetHeader.js +32 -0
  18. package/src/components/ReferenceDatasetRoutes.js +56 -0
  19. package/src/components/ReferenceDatasetTable.js +42 -0
  20. package/src/components/ReferenceDatasets.js +61 -0
  21. package/src/components/ReferenceDatasetsTable.js +105 -0
  22. package/src/components/StructureTagsRoutes.js +0 -1
  23. package/src/components/StructureTypesCrumbs.js +0 -1
  24. package/src/components/StructureView.js +1 -3
  25. package/src/components/SystemForm.js +1 -1
  26. package/src/components/__tests__/ImplementationStructuresLoader.spec.js +12 -54
  27. package/src/components/__tests__/LineageEventsTable.spec.js +2 -7
  28. package/src/components/__tests__/PendingStructureNoteRow.spec.js +1 -17
  29. package/src/components/__tests__/PendingStructureNotes.spec.js +5 -33
  30. package/src/components/__tests__/ReferenceDataset.spec.js +64 -0
  31. package/src/components/__tests__/ReferenceDatasetActions.spec.js +17 -0
  32. package/src/components/__tests__/ReferenceDatasetBreadcrumbs.spec.js +12 -0
  33. package/src/components/__tests__/ReferenceDatasetCreate.spec.js +12 -0
  34. package/src/components/__tests__/ReferenceDatasetDetail.spec.js +37 -0
  35. package/src/components/__tests__/ReferenceDatasetForm.spec.js +51 -0
  36. package/src/components/__tests__/ReferenceDatasetHeader.spec.js +17 -0
  37. package/src/components/__tests__/ReferenceDatasetRoutes.spec.js +74 -0
  38. package/src/components/__tests__/ReferenceDatasetTable.spec.js +18 -0
  39. package/src/components/__tests__/ReferenceDatasets.spec.js +32 -0
  40. package/src/components/__tests__/ReferenceDatasetsTable.spec.js +22 -0
  41. package/src/components/__tests__/StructureGrantRequestButton.spec.js +4 -23
  42. package/src/components/__tests__/StructureNoteActions.spec.js +2 -19
  43. package/src/components/__tests__/StructureNotes.spec.js +3 -15
  44. package/src/components/__tests__/StructureNotesEdit.spec.js +3 -16
  45. package/src/components/__tests__/StructureTagForm.spec.js +1 -3
  46. package/src/components/__tests__/StructuresOptions.spec.js +1 -7
  47. package/src/components/__tests__/StructuresUploadEventsTable.spec.js +3 -4
  48. package/src/components/__tests__/__snapshots__/DictionaryRoutes.spec.js.snap +4 -0
  49. package/src/components/__tests__/__snapshots__/PendingStructureNotes.spec.js.snap +3 -3
  50. package/src/components/__tests__/__snapshots__/ReferenceDataset.spec.js.snap +365 -0
  51. package/src/components/__tests__/__snapshots__/ReferenceDatasetActions.spec.js.snap +65 -0
  52. package/src/components/__tests__/__snapshots__/ReferenceDatasetBreadcrumbs.spec.js.snap +25 -0
  53. package/src/components/__tests__/__snapshots__/ReferenceDatasetCreate.spec.js.snap +98 -0
  54. package/src/components/__tests__/__snapshots__/ReferenceDatasetDetail.spec.js.snap +135 -0
  55. package/src/components/__tests__/__snapshots__/ReferenceDatasetForm.spec.js.snap +61 -0
  56. package/src/components/__tests__/__snapshots__/ReferenceDatasetHeader.spec.js.snap +95 -0
  57. package/src/components/__tests__/__snapshots__/ReferenceDatasetRoutes.spec.js.snap +414 -0
  58. package/src/components/__tests__/__snapshots__/ReferenceDatasetTable.spec.js.snap +75 -0
  59. package/src/components/__tests__/__snapshots__/ReferenceDatasets.spec.js.snap +128 -0
  60. package/src/components/__tests__/__snapshots__/ReferenceDatasetsTable.spec.js.snap +86 -0
  61. package/src/components/__tests__/__snapshots__/StructureNavClassified.spec.js.snap +2 -2
  62. package/src/components/__tests__/__snapshots__/StructureNotes.spec.js.snap +9 -9
  63. package/src/components/__tests__/__snapshots__/StructureNotesEdit.spec.js.snap +2 -2
  64. package/src/messages/en.js +18 -0
  65. package/src/messages/es.js +20 -0
  66. package/src/reducers/__tests__/ddMessage.spec.js +26 -5
  67. package/src/reducers/__tests__/graph.spec.js +1 -6
  68. package/src/reducers/__tests__/referenceDatasetSaving.spec.js +44 -0
  69. package/src/reducers/__tests__/structureRedirect.spec.js +37 -13
  70. package/src/reducers/ddMessage.js +26 -1
  71. package/src/reducers/index.js +2 -0
  72. package/src/reducers/referenceDatasetSaving.js +16 -0
  73. package/src/reducers/structureRedirect.js +36 -15
  74. package/src/reducers/structuresUploadEvents.js +0 -1
  75. package/src/routines.js +35 -74
  76. package/src/sagas/__tests__/createReferenceDataset.spec.js +90 -0
  77. package/src/sagas/__tests__/deleteReferenceDataset.spec.js +81 -0
  78. package/src/sagas/__tests__/updateReferenceDataset.spec.js +116 -0
  79. package/src/sagas/createReferenceDataset.js +34 -0
  80. package/src/sagas/deleteReferenceDataset.js +29 -0
  81. package/src/sagas/downloadReferenceDataset.js +44 -0
  82. package/src/sagas/index.js +31 -22
  83. package/src/sagas/updateReferenceDataset.js +35 -0
  84. package/src/selectors/getRelationSortingCriteria.js +3 -5
  85. package/src/components/__tests__/__snapshots__/ImplementationStructuresLoader.spec.js.snap +0 -30
@@ -0,0 +1,61 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<ReferenceDatasetForm /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <form
6
+ class="ui form"
7
+ >
8
+ <div
9
+ class="required field"
10
+ >
11
+ <label>
12
+ Name
13
+ </label>
14
+ <div
15
+ class="ui input"
16
+ >
17
+ <input
18
+ autocomplete="off"
19
+ required=""
20
+ type="text"
21
+ value="foo"
22
+ />
23
+ </div>
24
+ </div>
25
+ <div
26
+ class="field"
27
+ >
28
+ <label>
29
+ Dataset File
30
+ </label>
31
+ <div
32
+ class="ui input"
33
+ >
34
+ <input
35
+ accept="text/*,.csv,.txt"
36
+ type="file"
37
+ />
38
+ </div>
39
+ </div>
40
+ <div
41
+ class="actions"
42
+ >
43
+ <button
44
+ class="ui primary disabled right floated button"
45
+ disabled=""
46
+ tabindex="-1"
47
+ type="submit"
48
+ >
49
+ Save
50
+ </button>
51
+ <a
52
+ class="ui secondary button"
53
+ href="/"
54
+ role="button"
55
+ >
56
+ Cancel
57
+ </a>
58
+ </div>
59
+ </form>
60
+ </div>
61
+ `;
@@ -0,0 +1,95 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<ReferenceDatasetHeader /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <div
6
+ class="ui grid"
7
+ >
8
+ <div
9
+ class="eight wide column"
10
+ >
11
+ <h2
12
+ class="ui header"
13
+ >
14
+ <i
15
+ aria-hidden="true"
16
+ class="list ol circular icon"
17
+ />
18
+ <div
19
+ class="content"
20
+ >
21
+ foo
22
+ <div
23
+ class="sub header"
24
+ >
25
+ Reference Dataset
26
+ </div>
27
+ </div>
28
+ </h2>
29
+ </div>
30
+ <div
31
+ class="right aligned eight wide column"
32
+ >
33
+ <div
34
+ aria-expanded="false"
35
+ class="ui floating dropdown button icon group-actions"
36
+ role="listbox"
37
+ tabindex="0"
38
+ >
39
+ <i
40
+ aria-hidden="true"
41
+ class="ellipsis vertical icon"
42
+ />
43
+ <div
44
+ class="left menu transition"
45
+ >
46
+ <a
47
+ aria-checked="false"
48
+ aria-selected="true"
49
+ class="selected item"
50
+ href="/referenceDatasets/123/edit"
51
+ role="option"
52
+ style="pointer-events: all;"
53
+ >
54
+ <i
55
+ aria-hidden="true"
56
+ class="edit icon"
57
+ />
58
+ <span
59
+ class="text"
60
+ >
61
+ Edit
62
+ </span>
63
+ </a>
64
+ <a
65
+ aria-checked="false"
66
+ aria-selected="false"
67
+ class="item"
68
+ role="option"
69
+ style="pointer-events: all;"
70
+ >
71
+ <i
72
+ aria-hidden="true"
73
+ class="download icon"
74
+ />
75
+ <span
76
+ class="text"
77
+ >
78
+ Download
79
+ </span>
80
+ </a>
81
+ <button
82
+ class="ui button"
83
+ >
84
+ <i
85
+ aria-hidden="true"
86
+ class="trash icon"
87
+ />
88
+ Delete
89
+ </button>
90
+ </div>
91
+ </div>
92
+ </div>
93
+ </div>
94
+ </div>
95
+ `;
@@ -0,0 +1,414 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<ReferenceDatasetRoutes /> matches the latest snapshot (create route) 1`] = `
4
+ <div>
5
+ <div
6
+ class="ui breadcrumb"
7
+ >
8
+ <a
9
+ class="section"
10
+ href="/referenceDatasets"
11
+ >
12
+ Reference Data
13
+ </a>
14
+ <i
15
+ aria-hidden="true"
16
+ class="right angle icon divider"
17
+ />
18
+ <div
19
+ class="active section"
20
+ >
21
+ New Dataset
22
+ </div>
23
+ </div>
24
+ <div
25
+ class="ui segment ui text container"
26
+ >
27
+ <h2
28
+ class="ui header"
29
+ >
30
+ <i
31
+ aria-hidden="true"
32
+ class="list ol icon"
33
+ />
34
+ <div
35
+ class="content"
36
+ >
37
+ New Dataset
38
+ </div>
39
+ </h2>
40
+ <form
41
+ class="ui form"
42
+ >
43
+ <div
44
+ class="required field"
45
+ >
46
+ <label>
47
+ Name
48
+ </label>
49
+ <div
50
+ class="ui input"
51
+ >
52
+ <input
53
+ autocomplete="off"
54
+ required=""
55
+ type="text"
56
+ value=""
57
+ />
58
+ </div>
59
+ </div>
60
+ <div
61
+ class="required field"
62
+ >
63
+ <label>
64
+ Dataset File
65
+ </label>
66
+ <div
67
+ class="ui input"
68
+ >
69
+ <input
70
+ accept="text/*,.csv,.txt"
71
+ required=""
72
+ type="file"
73
+ />
74
+ </div>
75
+ </div>
76
+ <div
77
+ class="actions"
78
+ >
79
+ <button
80
+ class="ui primary disabled right floated button"
81
+ disabled=""
82
+ tabindex="-1"
83
+ type="submit"
84
+ >
85
+ Save
86
+ </button>
87
+ <a
88
+ class="ui secondary button"
89
+ href="/referenceDatasets/new"
90
+ role="button"
91
+ >
92
+ Cancel
93
+ </a>
94
+ </div>
95
+ </form>
96
+ </div>
97
+ </div>
98
+ `;
99
+
100
+ exports[`<ReferenceDatasetRoutes /> matches the latest snapshot (list route) 1`] = `
101
+ <div>
102
+ <div
103
+ class="ui segment"
104
+ >
105
+ <h2
106
+ class="ui header"
107
+ >
108
+ <a
109
+ class="ui primary right floated button"
110
+ href="/referenceDatasets/new"
111
+ role="button"
112
+ >
113
+ New Dataset
114
+ </a>
115
+ <i
116
+ aria-hidden="true"
117
+ class="list ol circular icon"
118
+ />
119
+ <div
120
+ class="content"
121
+ >
122
+ Reference Data
123
+ <div
124
+ class="sub header"
125
+ >
126
+ Manage reference datasets
127
+ </div>
128
+ </div>
129
+ </h2>
130
+ <div
131
+ class="ui icon input"
132
+ >
133
+ <input
134
+ placeholder="Search datasets..."
135
+ type="text"
136
+ value=""
137
+ />
138
+ <i
139
+ aria-hidden="true"
140
+ class="search link icon"
141
+ />
142
+ </div>
143
+ <table
144
+ class="ui table"
145
+ >
146
+ <caption
147
+ class="text-right"
148
+ >
149
+ One dataset found
150
+ </caption>
151
+ <thead
152
+ class=""
153
+ >
154
+ <tr
155
+ class=""
156
+ >
157
+ <th
158
+ class=""
159
+ >
160
+ Name
161
+ </th>
162
+ <th
163
+ class=""
164
+ >
165
+ Headers
166
+ </th>
167
+ <th
168
+ class="right aligned"
169
+ >
170
+ Rows
171
+ </th>
172
+ <th
173
+ class="right aligned"
174
+ >
175
+ Updated
176
+
177
+ <a>
178
+ <i
179
+ aria-hidden="true"
180
+ class="calendar outline icon"
181
+ />
182
+ </a>
183
+ </th>
184
+ </tr>
185
+ </thead>
186
+ <tbody
187
+ class=""
188
+ >
189
+ <tr
190
+ class=""
191
+ >
192
+ <td
193
+ class=""
194
+ >
195
+ <a
196
+ href="/referenceDatasets/123"
197
+ >
198
+ foo
199
+ </a>
200
+ </td>
201
+ <td
202
+ class=""
203
+ >
204
+ foo, bar, baz
205
+ </td>
206
+ <td
207
+ class="right aligned one wide"
208
+ >
209
+ 2
210
+ </td>
211
+ <td
212
+ class="right aligned three wide"
213
+ >
214
+ <time
215
+ datetime="1577836800000"
216
+ >
217
+ 2 years ago
218
+ </time>
219
+ </td>
220
+ </tr>
221
+ </tbody>
222
+ </table>
223
+ </div>
224
+ </div>
225
+ `;
226
+
227
+ exports[`<ReferenceDatasetRoutes /> matches the latest snapshot (view route) 1`] = `
228
+ <div>
229
+ <div
230
+ class="ui breadcrumb"
231
+ >
232
+ <a
233
+ class="section"
234
+ href="/referenceDatasets"
235
+ >
236
+ Reference Data
237
+ </a>
238
+ <i
239
+ aria-hidden="true"
240
+ class="right angle icon divider"
241
+ />
242
+ <div
243
+ class="active section"
244
+ >
245
+ foo
246
+ </div>
247
+ </div>
248
+ <div
249
+ class="ui segment"
250
+ >
251
+ <div
252
+ class="ui grid"
253
+ >
254
+ <div
255
+ class="eight wide column"
256
+ >
257
+ <h2
258
+ class="ui header"
259
+ >
260
+ <i
261
+ aria-hidden="true"
262
+ class="list ol circular icon"
263
+ />
264
+ <div
265
+ class="content"
266
+ >
267
+ foo
268
+ <div
269
+ class="sub header"
270
+ >
271
+ Reference Dataset
272
+ </div>
273
+ </div>
274
+ </h2>
275
+ </div>
276
+ <div
277
+ class="right aligned eight wide column"
278
+ >
279
+ <div
280
+ aria-expanded="false"
281
+ class="ui floating dropdown button icon group-actions"
282
+ role="listbox"
283
+ tabindex="0"
284
+ >
285
+ <i
286
+ aria-hidden="true"
287
+ class="ellipsis vertical icon"
288
+ />
289
+ <div
290
+ class="left menu transition"
291
+ >
292
+ <a
293
+ aria-checked="false"
294
+ aria-selected="true"
295
+ class="selected item"
296
+ href="/referenceDatasets/123/edit"
297
+ role="option"
298
+ style="pointer-events: all;"
299
+ >
300
+ <i
301
+ aria-hidden="true"
302
+ class="edit icon"
303
+ />
304
+ <span
305
+ class="text"
306
+ >
307
+ Edit
308
+ </span>
309
+ </a>
310
+ <a
311
+ aria-checked="false"
312
+ aria-selected="false"
313
+ class="item"
314
+ role="option"
315
+ style="pointer-events: all;"
316
+ >
317
+ <i
318
+ aria-hidden="true"
319
+ class="download icon"
320
+ />
321
+ <span
322
+ class="text"
323
+ >
324
+ Download
325
+ </span>
326
+ </a>
327
+ <button
328
+ class="ui button"
329
+ >
330
+ <i
331
+ aria-hidden="true"
332
+ class="trash icon"
333
+ />
334
+ Delete
335
+ </button>
336
+ </div>
337
+ </div>
338
+ </div>
339
+ </div>
340
+ <div
341
+ class="ui hidden divider"
342
+ />
343
+ <table
344
+ class="ui very basic compact table"
345
+ >
346
+ <thead
347
+ class=""
348
+ >
349
+ <tr
350
+ class=""
351
+ >
352
+ <th
353
+ class=""
354
+ >
355
+ foo
356
+ </th>
357
+ <th
358
+ class=""
359
+ >
360
+ bar
361
+ </th>
362
+ <th
363
+ class=""
364
+ >
365
+ baz
366
+ </th>
367
+ </tr>
368
+ </thead>
369
+ <tbody
370
+ class=""
371
+ >
372
+ <tr
373
+ class=""
374
+ >
375
+ <td
376
+ class=""
377
+ >
378
+ foo1
379
+ </td>
380
+ <td
381
+ class=""
382
+ >
383
+ bar1
384
+ </td>
385
+ <td
386
+ class=""
387
+ >
388
+ baz1
389
+ </td>
390
+ </tr>
391
+ <tr
392
+ class=""
393
+ >
394
+ <td
395
+ class=""
396
+ >
397
+ foo2
398
+ </td>
399
+ <td
400
+ class=""
401
+ >
402
+ bar2
403
+ </td>
404
+ <td
405
+ class=""
406
+ >
407
+ baz2
408
+ </td>
409
+ </tr>
410
+ </tbody>
411
+ </table>
412
+ </div>
413
+ </div>
414
+ `;
@@ -0,0 +1,75 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<ReferenceDatasetTable /> matches the latest snapshot 1`] = `
4
+ <div>
5
+ <table
6
+ class="ui very basic compact table"
7
+ >
8
+ <thead
9
+ class=""
10
+ >
11
+ <tr
12
+ class=""
13
+ >
14
+ <th
15
+ class=""
16
+ >
17
+ foo
18
+ </th>
19
+ <th
20
+ class=""
21
+ >
22
+ bar
23
+ </th>
24
+ <th
25
+ class=""
26
+ >
27
+ baz
28
+ </th>
29
+ </tr>
30
+ </thead>
31
+ <tbody
32
+ class=""
33
+ >
34
+ <tr
35
+ class=""
36
+ >
37
+ <td
38
+ class=""
39
+ >
40
+ foo1
41
+ </td>
42
+ <td
43
+ class=""
44
+ >
45
+ bar1
46
+ </td>
47
+ <td
48
+ class=""
49
+ >
50
+ baz1
51
+ </td>
52
+ </tr>
53
+ <tr
54
+ class=""
55
+ >
56
+ <td
57
+ class=""
58
+ >
59
+ foo2
60
+ </td>
61
+ <td
62
+ class=""
63
+ >
64
+ bar2
65
+ </td>
66
+ <td
67
+ class=""
68
+ >
69
+ baz2
70
+ </td>
71
+ </tr>
72
+ </tbody>
73
+ </table>
74
+ </div>
75
+ `;