@truedat/dd 4.44.3 → 4.45.0

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 (95) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/package.json +24 -20
  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/EditDomainPopup.js +1 -1
  8. package/src/components/FilteredNav.js +9 -9
  9. package/src/components/GrantFilters.js +1 -5
  10. package/src/components/GrantRequestApprovalPopup.js +0 -1
  11. package/src/components/PendingStructureNotes.js +1 -1
  12. package/src/components/ReferenceDataset.js +23 -0
  13. package/src/components/ReferenceDatasetActions.js +88 -0
  14. package/src/components/ReferenceDatasetBreadcrumbs.js +22 -0
  15. package/src/components/ReferenceDatasetCreate.js +36 -0
  16. package/src/components/ReferenceDatasetDetail.js +42 -0
  17. package/src/components/ReferenceDatasetForm.js +109 -0
  18. package/src/components/ReferenceDatasetHeader.js +32 -0
  19. package/src/components/ReferenceDatasetRoutes.js +56 -0
  20. package/src/components/ReferenceDatasetTable.js +42 -0
  21. package/src/components/ReferenceDatasets.js +61 -0
  22. package/src/components/ReferenceDatasetsTable.js +105 -0
  23. package/src/components/StructureConfidentialButton.js +1 -1
  24. package/src/components/StructureFilters.js +1 -5
  25. package/src/components/StructureNotesEdit.js +6 -6
  26. package/src/components/StructureProperties.js +4 -1
  27. package/src/components/StructureTabPane.js +4 -2
  28. package/src/components/StructureTagsRoutes.js +0 -1
  29. package/src/components/StructureTypesCrumbs.js +0 -1
  30. package/src/components/StructureVersionListItem.js +2 -2
  31. package/src/components/StructureView.js +1 -3
  32. package/src/components/SystemForm.js +1 -1
  33. package/src/components/__tests__/LineageRoutes.spec.js +4 -4
  34. package/src/components/__tests__/ReferenceDataset.spec.js +64 -0
  35. package/src/components/__tests__/ReferenceDatasetActions.spec.js +17 -0
  36. package/src/components/__tests__/ReferenceDatasetBreadcrumbs.spec.js +12 -0
  37. package/src/components/__tests__/ReferenceDatasetCreate.spec.js +12 -0
  38. package/src/components/__tests__/ReferenceDatasetDetail.spec.js +37 -0
  39. package/src/components/__tests__/ReferenceDatasetForm.spec.js +51 -0
  40. package/src/components/__tests__/ReferenceDatasetHeader.spec.js +17 -0
  41. package/src/components/__tests__/ReferenceDatasetRoutes.spec.js +74 -0
  42. package/src/components/__tests__/ReferenceDatasetTable.spec.js +18 -0
  43. package/src/components/__tests__/ReferenceDatasets.spec.js +32 -0
  44. package/src/components/__tests__/ReferenceDatasetsTable.spec.js +22 -0
  45. package/src/components/__tests__/StructureConfidentialButton.spec.js +26 -30
  46. package/src/components/__tests__/StructureNotesEdit.spec.js +2 -9
  47. package/src/components/__tests__/StructureProperties.spec.js +6 -8
  48. package/src/components/__tests__/StructureVersionListItem.spec.js +4 -4
  49. package/src/components/__tests__/__snapshots__/DictionaryRoutes.spec.js.snap +4 -0
  50. package/src/components/__tests__/__snapshots__/LineageRoutes.spec.js.snap +1 -20
  51. package/src/components/__tests__/__snapshots__/ProfileExecution.spec.js.snap +2 -1
  52. package/src/components/__tests__/__snapshots__/ReferenceDataset.spec.js.snap +365 -0
  53. package/src/components/__tests__/__snapshots__/ReferenceDatasetActions.spec.js.snap +65 -0
  54. package/src/components/__tests__/__snapshots__/ReferenceDatasetBreadcrumbs.spec.js.snap +25 -0
  55. package/src/components/__tests__/__snapshots__/ReferenceDatasetCreate.spec.js.snap +98 -0
  56. package/src/components/__tests__/__snapshots__/ReferenceDatasetDetail.spec.js.snap +135 -0
  57. package/src/components/__tests__/__snapshots__/ReferenceDatasetForm.spec.js.snap +61 -0
  58. package/src/components/__tests__/__snapshots__/ReferenceDatasetHeader.spec.js.snap +95 -0
  59. package/src/components/__tests__/__snapshots__/ReferenceDatasetRoutes.spec.js.snap +414 -0
  60. package/src/components/__tests__/__snapshots__/ReferenceDatasetTable.spec.js.snap +75 -0
  61. package/src/components/__tests__/__snapshots__/ReferenceDatasets.spec.js.snap +128 -0
  62. package/src/components/__tests__/__snapshots__/ReferenceDatasetsTable.spec.js.snap +86 -0
  63. package/src/components/__tests__/__snapshots__/StructureConfidentialButton.spec.js.snap +13 -33
  64. package/src/components/__tests__/__snapshots__/StructureProperties.spec.js.snap +76 -71
  65. package/src/components/__tests__/__snapshots__/StructureTabPane.spec.js.snap +1 -1
  66. package/src/components/__tests__/__snapshots__/StructureVersionListItem.spec.js.snap +31 -64
  67. package/src/components/index.js +0 -6
  68. package/src/messages/en.js +18 -0
  69. package/src/messages/es.js +20 -0
  70. package/src/reducers/__tests__/ddMessage.spec.js +26 -5
  71. package/src/reducers/__tests__/graph.spec.js +1 -6
  72. package/src/reducers/__tests__/referenceDatasetSaving.spec.js +44 -0
  73. package/src/reducers/__tests__/structureRedirect.spec.js +37 -13
  74. package/src/reducers/ddMessage.js +26 -1
  75. package/src/reducers/index.js +2 -0
  76. package/src/reducers/referenceDatasetSaving.js +16 -0
  77. package/src/reducers/structureRedirect.js +36 -15
  78. package/src/reducers/structuresUploadEvents.js +0 -1
  79. package/src/routines.js +35 -74
  80. package/src/sagas/__tests__/createReferenceDataset.spec.js +90 -0
  81. package/src/sagas/__tests__/deleteReferenceDataset.spec.js +81 -0
  82. package/src/sagas/__tests__/updateReferenceDataset.spec.js +116 -0
  83. package/src/sagas/createReferenceDataset.js +34 -0
  84. package/src/sagas/deleteReferenceDataset.js +29 -0
  85. package/src/sagas/downloadReferenceDataset.js +44 -0
  86. package/src/sagas/index.js +31 -22
  87. package/src/sagas/updateReferenceDataset.js +35 -0
  88. package/src/selectors/getRelationSortingCriteria.js +3 -5
  89. package/src/selectors/getTabVisibility.js +1 -4
  90. package/src/components/ProfilingElements.js +0 -89
  91. package/src/components/ProfilingGraph.js +0 -89
  92. package/src/components/ProfilingPatterns.js +0 -57
  93. package/src/components/StructureProfiling.js +0 -124
  94. package/src/components/__tests__/StructureProfiling.spec.js +0 -45
  95. package/src/components/__tests__/__snapshots__/StructureProfiling.spec.js.snap +0 -444
@@ -1,444 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`<StructureProfiling /> matches the latest snapshot (fields) 1`] = `
4
- <div>
5
- <table
6
- class="ui 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="text-right"
21
- >
22
- unique
23
- </th>
24
- <th
25
- class="text-right"
26
- >
27
- null
28
- </th>
29
- <th
30
- class=""
31
- >
32
- min
33
- </th>
34
- <th
35
- class=""
36
- >
37
- max
38
- </th>
39
- <th
40
- class=""
41
- >
42
- mode
43
- </th>
44
- </tr>
45
- </thead>
46
- <tbody
47
- class=""
48
- >
49
- <tr
50
- class=""
51
- >
52
- <td
53
- class=""
54
- >
55
- <a
56
- href="/structures/123/profile"
57
- >
58
- field1
59
- </a>
60
- </td>
61
- <td
62
- class="text-right"
63
- >
64
- 50.00%
65
- </td>
66
- <td
67
- class="text-right"
68
- >
69
- 20.00%
70
- </td>
71
- <td
72
- class=""
73
- >
74
- <span
75
- title=""
76
- >
77
-
78
- 33
79
-
80
- </span>
81
- </td>
82
- <td
83
- class=""
84
- >
85
- <span
86
- title=""
87
- >
88
-
89
- 40
90
-
91
- </span>
92
- </td>
93
- <td
94
- class=""
95
- >
96
- bar
97
- </td>
98
- </tr>
99
- <tr
100
- class=""
101
- >
102
- <td
103
- class=""
104
- >
105
- <a
106
- href="/structures/122/profile"
107
- >
108
- field2
109
- </a>
110
- </td>
111
- <td
112
- class="text-right"
113
- >
114
- 50.00%
115
- </td>
116
- <td
117
- class="text-right"
118
- >
119
- 20.00%
120
- </td>
121
- <td
122
- class=""
123
- >
124
- <span
125
- title=""
126
- >
127
-
128
- 33
129
-
130
- </span>
131
- </td>
132
- <td
133
- class=""
134
- >
135
- <span
136
- title=""
137
- >
138
-
139
- 40
140
-
141
- </span>
142
- </td>
143
- <td
144
- class=""
145
- >
146
- bar
147
- </td>
148
- </tr>
149
- </tbody>
150
- </table>
151
- </div>
152
- `;
153
-
154
- exports[`<StructureProfiling /> matches the latest snapshot (profile) 1`] = `
155
- <div>
156
- <div
157
- class="ui grid"
158
- >
159
- <div
160
- class="sixteen wide column"
161
- >
162
- <p>
163
- Frequency chart
164
- :
165
- </p>
166
- </div>
167
- </div>
168
- <div
169
- class="rv-xy-plot "
170
- style="width: 800px; height: 400px;"
171
- >
172
- <svg
173
- class="rv-xy-plot__inner"
174
- height="400"
175
- width="800"
176
- >
177
- <g
178
- class="rv-xy-plot__axis rv-xy-plot__axis--vertical "
179
- style="font-size: 12px; width: 100px;"
180
- transform="translate(0,10)"
181
- >
182
- <line
183
- class="rv-xy-plot__axis__line"
184
- style="font-size: 12px; width: 100px;"
185
- x1="180"
186
- x2="180"
187
- y1="0"
188
- y2="350"
189
- />
190
- <g
191
- class="rv-xy-plot__axis__ticks"
192
- transform="translate(180, 0)"
193
- >
194
- <g
195
- class="rv-xy-plot__axis__tick"
196
- style="font-size: 12px; width: 100px;"
197
- transform="translate(0, 262.5)"
198
- >
199
- <line
200
- class="rv-xy-plot__axis__tick__line"
201
- style="font-size: 12px; width: 100px;"
202
- x1="6"
203
- x2="-6"
204
- y1="0"
205
- y2="0"
206
- />
207
- <text
208
- class="rv-xy-plot__axis__tick__text"
209
- dy="0.32em"
210
- style="font-size: 12px; width: 100px;"
211
- text-anchor="end"
212
- transform="translate(-14, 0)"
213
- >
214
- foo
215
- </text>
216
- </g>
217
- <g
218
- class="rv-xy-plot__axis__tick"
219
- style="font-size: 12px; width: 100px;"
220
- transform="translate(0, 87.5)"
221
- >
222
- <line
223
- class="rv-xy-plot__axis__tick__line"
224
- style="font-size: 12px; width: 100px;"
225
- x1="6"
226
- x2="-6"
227
- y1="0"
228
- y2="0"
229
- />
230
- <text
231
- class="rv-xy-plot__axis__tick__text"
232
- dy="0.32em"
233
- style="font-size: 12px; width: 100px;"
234
- text-anchor="end"
235
- transform="translate(-14, 0)"
236
- >
237
- bar
238
- </text>
239
- </g>
240
- </g>
241
- </g>
242
- <g
243
- class="rv-xy-plot__axis rv-xy-plot__axis--horizontal "
244
- style="font-size: 12px;"
245
- transform="translate(180,360)"
246
- >
247
- <line
248
- class="rv-xy-plot__axis__line"
249
- style="font-size: 12px;"
250
- x1="0"
251
- x2="610"
252
- y1="0"
253
- y2="0"
254
- />
255
- <g
256
- class="rv-xy-plot__axis__ticks"
257
- transform="translate(0, 0)"
258
- >
259
- <g
260
- class="rv-xy-plot__axis__tick"
261
- style="font-size: 12px;"
262
- transform="translate(18.484848484848484, 0)"
263
- >
264
- <line
265
- class="rv-xy-plot__axis__tick__line"
266
- style="font-size: 12px;"
267
- x1="0"
268
- x2="0"
269
- y1="-6"
270
- y2="6"
271
- />
272
- <text
273
- class="rv-xy-plot__axis__tick__text"
274
- dy="0.72em"
275
- style="font-size: 12px;"
276
- text-anchor="middle"
277
- transform="translate(0, 14)"
278
- >
279
- 10
280
- </text>
281
- </g>
282
- <g
283
- class="rv-xy-plot__axis__tick"
284
- style="font-size: 12px;"
285
- transform="translate(110.9090909090909, 0)"
286
- >
287
- <line
288
- class="rv-xy-plot__axis__tick__line"
289
- style="font-size: 12px;"
290
- x1="0"
291
- x2="0"
292
- y1="-6"
293
- y2="6"
294
- />
295
- <text
296
- class="rv-xy-plot__axis__tick__text"
297
- dy="0.72em"
298
- style="font-size: 12px;"
299
- text-anchor="middle"
300
- transform="translate(0, 14)"
301
- >
302
- 15
303
- </text>
304
- </g>
305
- <g
306
- class="rv-xy-plot__axis__tick"
307
- style="font-size: 12px;"
308
- transform="translate(203.33333333333331, 0)"
309
- >
310
- <line
311
- class="rv-xy-plot__axis__tick__line"
312
- style="font-size: 12px;"
313
- x1="0"
314
- x2="0"
315
- y1="-6"
316
- y2="6"
317
- />
318
- <text
319
- class="rv-xy-plot__axis__tick__text"
320
- dy="0.72em"
321
- style="font-size: 12px;"
322
- text-anchor="middle"
323
- transform="translate(0, 14)"
324
- >
325
- 20
326
- </text>
327
- </g>
328
- <g
329
- class="rv-xy-plot__axis__tick"
330
- style="font-size: 12px;"
331
- transform="translate(295.75757575757575, 0)"
332
- >
333
- <line
334
- class="rv-xy-plot__axis__tick__line"
335
- style="font-size: 12px;"
336
- x1="0"
337
- x2="0"
338
- y1="-6"
339
- y2="6"
340
- />
341
- <text
342
- class="rv-xy-plot__axis__tick__text"
343
- dy="0.72em"
344
- style="font-size: 12px;"
345
- text-anchor="middle"
346
- transform="translate(0, 14)"
347
- >
348
- 25
349
- </text>
350
- </g>
351
- <g
352
- class="rv-xy-plot__axis__tick"
353
- style="font-size: 12px;"
354
- transform="translate(388.1818181818182, 0)"
355
- >
356
- <line
357
- class="rv-xy-plot__axis__tick__line"
358
- style="font-size: 12px;"
359
- x1="0"
360
- x2="0"
361
- y1="-6"
362
- y2="6"
363
- />
364
- <text
365
- class="rv-xy-plot__axis__tick__text"
366
- dy="0.72em"
367
- style="font-size: 12px;"
368
- text-anchor="middle"
369
- transform="translate(0, 14)"
370
- >
371
- 30
372
- </text>
373
- </g>
374
- <g
375
- class="rv-xy-plot__axis__tick"
376
- style="font-size: 12px;"
377
- transform="translate(480.60606060606057, 0)"
378
- >
379
- <line
380
- class="rv-xy-plot__axis__tick__line"
381
- style="font-size: 12px;"
382
- x1="0"
383
- x2="0"
384
- y1="-6"
385
- y2="6"
386
- />
387
- <text
388
- class="rv-xy-plot__axis__tick__text"
389
- dy="0.72em"
390
- style="font-size: 12px;"
391
- text-anchor="middle"
392
- transform="translate(0, 14)"
393
- >
394
- 35
395
- </text>
396
- </g>
397
- <g
398
- class="rv-xy-plot__axis__tick"
399
- style="font-size: 12px;"
400
- transform="translate(573.0303030303031, 0)"
401
- >
402
- <line
403
- class="rv-xy-plot__axis__tick__line"
404
- style="font-size: 12px;"
405
- x1="0"
406
- x2="0"
407
- y1="-6"
408
- y2="6"
409
- />
410
- <text
411
- class="rv-xy-plot__axis__tick__text"
412
- dy="0.72em"
413
- style="font-size: 12px;"
414
- text-anchor="middle"
415
- transform="translate(0, 14)"
416
- >
417
- 40
418
- </text>
419
- </g>
420
- </g>
421
- </g>
422
- <g
423
- class="rv-xy-plot__series rv-xy-plot__series--bar "
424
- transform="translate(180,10)"
425
- >
426
- <rect
427
- height="148.75"
428
- style="opacity: 1; stroke: rgb(0, 32, 87); fill: rgb(0, 32, 87);"
429
- width="18.484848484848484"
430
- x="0"
431
- y="188.125"
432
- />
433
- <rect
434
- height="148.75"
435
- style="opacity: 1; stroke: rgb(0, 32, 87); fill: rgb(0, 32, 87);"
436
- width="610"
437
- x="0"
438
- y="13.125"
439
- />
440
- </g>
441
- </svg>
442
- </div>
443
- </div>
444
- `;