@truedat/df 5.4.2 → 5.5.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 (30) hide show
  1. package/package.json +8 -8
  2. package/src/components/FieldGroupSubSegment/__tests__/__snapshots__/FieldGroupSubSegment.spec.js.snap +38 -38
  3. package/src/components/__tests__/__snapshots__/DynamicFieldValue.spec.js.snap +2 -2
  4. package/src/components/__tests__/__snapshots__/DynamicForm.spec.js.snap +17 -17
  5. package/src/components/__tests__/__snapshots__/EditableDynamicFieldValue.spec.js.snap +1 -1
  6. package/src/components/__tests__/__snapshots__/FieldGroupDetail.spec.js.snap +3 -3
  7. package/src/components/hierarchies/__tests__/__snapshots__/HierarchyCrumbs.spec.js.snap +1 -1
  8. package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyField.spec.js.snap +33 -33
  9. package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyFieldCell.spec.js.snap +4 -4
  10. package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyFieldColumn.spec.js.snap +1 -1
  11. package/src/components/widgets/CopyField/__tests__/__snapshots__/CopyFieldSelectableCell.spec.js.snap +8 -8
  12. package/src/components/widgets/__tests__/__snapshots__/CheckboxField.spec.js.snap +1 -1
  13. package/src/components/widgets/__tests__/__snapshots__/ColorPickerField.spec.js.snap +3 -3
  14. package/src/components/widgets/__tests__/__snapshots__/DomainPreview.spec.js.snap +1 -1
  15. package/src/components/widgets/__tests__/__snapshots__/ImageField.spec.js.snap +2 -2
  16. package/src/components/widgets/__tests__/__snapshots__/PairListField.spec.js.snap +1 -1
  17. package/src/components/widgets/__tests__/__snapshots__/RadioField.spec.js.snap +1 -1
  18. package/src/components/widgets/__tests__/__snapshots__/StandardDropdown.spec.js.snap +4 -4
  19. package/src/components/widgets/__tests__/__snapshots__/StringField.spec.js.snap +4 -4
  20. package/src/components/widgets/__tests__/__snapshots__/TableField.spec.js.snap +3 -3
  21. package/src/templates/components/__tests__/__snapshots__/NewTemplate.spec.js.snap +1 -1
  22. package/src/templates/components/__tests__/__snapshots__/TemplateCards.spec.js.snap +3 -3
  23. package/src/templates/components/templateForm/__tests__/__snapshots__/ActiveGroupForm.spec.js.snap +13 -13
  24. package/src/templates/components/templateForm/__tests__/__snapshots__/DefaultValue.spec.js.snap +3 -3
  25. package/src/templates/components/templateForm/__tests__/__snapshots__/FieldForm.spec.js.snap +181 -181
  26. package/src/templates/components/templateForm/__tests__/__snapshots__/SwitchListForm.spec.js.snap +2 -2
  27. package/src/templates/components/templateForm/__tests__/__snapshots__/TemplateFormActions.spec.js.snap +3 -3
  28. package/src/templates/components/templateForm/__tests__/__snapshots__/ValuesField.spec.js.snap +27 -27
  29. package/src/templates/components/templateForm/__tests__/__snapshots__/ValuesSelector.spec.js.snap +1 -1
  30. package/CHANGELOG.md +0 -668
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/df",
3
- "version": "5.4.2",
3
+ "version": "5.5.0",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.16.5",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "5.3.3",
37
+ "@truedat/test": "5.5.0",
38
38
  "babel-jest": "^28.1.0",
39
39
  "babel-plugin-dynamic-import-node": "^2.3.3",
40
40
  "babel-plugin-lodash": "^3.3.4",
@@ -43,8 +43,8 @@
43
43
  "enzyme": "^3.11.0",
44
44
  "enzyme-to-json": "^3.6.2",
45
45
  "identity-obj-proxy": "^3.0.0",
46
- "jest": "^28.1.0",
47
- "jest-environment-jsdom": "^28.1.0",
46
+ "jest": "^29.0.0",
47
+ "jest-environment-jsdom": "^29.0.0",
48
48
  "react": "^16.14.0",
49
49
  "react-dom": "^16.14.0",
50
50
  "redux-saga-test-plan": "^4.0.4",
@@ -87,12 +87,12 @@
87
87
  },
88
88
  "dependencies": {
89
89
  "@apollo/client": "^3.7.1",
90
- "@truedat/auth": "5.4.2",
91
- "@truedat/core": "5.4.2",
90
+ "@truedat/auth": "5.5.0",
91
+ "@truedat/core": "5.5.0",
92
92
  "decode-uri-component": "^0.2.2",
93
93
  "path-to-regexp": "^1.7.0",
94
94
  "prop-types": "^15.8.1",
95
- "query-string": "^6.11.0",
95
+ "query-string": "^7.1.2",
96
96
  "react-color": "^2.17.3",
97
97
  "react-intl": "^5.20.10",
98
98
  "react-redux": "^7.2.4",
@@ -109,5 +109,5 @@
109
109
  "react-dom": ">= 16.8.6 < 17",
110
110
  "semantic-ui-react": ">= 2.0.3 < 2.2"
111
111
  },
112
- "gitHead": "09ddfaaacecfd66661249fe1f2009794cc5e4362"
112
+ "gitHead": "ca5e7f8fd1013de0b818798e05cbc1819a1d43ec"
113
113
  }
@@ -6,14 +6,14 @@ exports[`<FieldGroupSubSegment /> matches the latest snapshot 1`] = `
6
6
  as="h4"
7
7
  content="copy"
8
8
  style={
9
- Object {
9
+ {
10
10
  "display": "inline-block",
11
11
  }
12
12
  }
13
13
  />
14
14
  <div
15
15
  style={
16
- Object {
16
+ {
17
17
  "display": "inline-flex",
18
18
  "float": "right",
19
19
  }
@@ -29,13 +29,13 @@ exports[`<FieldGroupSubSegment /> matches the latest snapshot 1`] = `
29
29
  disabled={false}
30
30
  eventsEnabled={true}
31
31
  on={
32
- Array [
32
+ [
33
33
  "click",
34
34
  "hover",
35
35
  ]
36
36
  }
37
37
  pinned={false}
38
- popperModifiers={Array []}
38
+ popperModifiers={[]}
39
39
  position="top center"
40
40
  trigger={
41
41
  <Icon
@@ -43,7 +43,7 @@ exports[`<FieldGroupSubSegment /> matches the latest snapshot 1`] = `
43
43
  name="info circle"
44
44
  size="large"
45
45
  style={
46
- Object {
46
+ {
47
47
  "display": "none",
48
48
  }
49
49
  }
@@ -58,7 +58,7 @@ exports[`<FieldGroupSubSegment /> matches the latest snapshot 1`] = `
58
58
  positive={true}
59
59
  size="small"
60
60
  style={
61
- Object {
61
+ {
62
62
  "backgroundColor": "#002057",
63
63
  "color": "white",
64
64
  }
@@ -72,40 +72,40 @@ exports[`<FieldGroupSubSegment /> matches the latest snapshot 1`] = `
72
72
  </div>
73
73
  <DynamicField
74
74
  field={
75
- Object {
75
+ {
76
76
  "cardinality": "1",
77
77
  "description": "",
78
78
  "label": "fileFormat",
79
79
  "name": "fileFormat",
80
- "parsedValues": Array [
81
- Object {
80
+ "parsedValues": [
81
+ {
82
82
  "text": "CSV",
83
83
  "value": "CSV",
84
84
  },
85
- Object {
85
+ {
86
86
  "text": "JSON",
87
87
  "value": "JSON",
88
88
  },
89
- Object {
89
+ {
90
90
  "text": "DAT",
91
91
  "value": "DAT",
92
92
  },
93
- Object {
93
+ {
94
94
  "text": "TXT",
95
95
  "value": "TXT",
96
96
  },
97
- Object {
97
+ {
98
98
  "text": "Sin formato",
99
99
  "value": "Sin formato",
100
100
  },
101
- Object {
101
+ {
102
102
  "text": "hola",
103
103
  "value": "hola",
104
104
  },
105
105
  ],
106
106
  "type": "string",
107
107
  "value": "DAT",
108
- "values": Array [],
108
+ "values": [],
109
109
  "widget": "dropdown",
110
110
  }
111
111
  }
@@ -114,28 +114,28 @@ exports[`<FieldGroupSubSegment /> matches the latest snapshot 1`] = `
114
114
  />
115
115
  <DynamicField
116
116
  field={
117
- Object {
117
+ {
118
118
  "cardinality": "1",
119
119
  "description": "",
120
120
  "label": "header",
121
121
  "name": "header",
122
- "parsedValues": Array [
123
- Object {
122
+ "parsedValues": [
123
+ {
124
124
  "text": "true",
125
125
  "value": "true",
126
126
  },
127
- Object {
127
+ {
128
128
  "text": "false",
129
129
  "value": "false",
130
130
  },
131
131
  ],
132
132
  "type": "string",
133
133
  "value": "true",
134
- "values": Array [
135
- Object {
134
+ "values": [
135
+ {
136
136
  "true": true,
137
137
  },
138
- Object {
138
+ {
139
139
  "false": false,
140
140
  },
141
141
  ],
@@ -147,32 +147,32 @@ exports[`<FieldGroupSubSegment /> matches the latest snapshot 1`] = `
147
147
  />
148
148
  <DynamicField
149
149
  field={
150
- Object {
150
+ {
151
151
  "cardinality": "1",
152
152
  "description": "",
153
153
  "label": "compression",
154
154
  "name": "compression",
155
- "parsedValues": Array [
156
- Object {
155
+ "parsedValues": [
156
+ {
157
157
  "text": "none",
158
158
  "value": "none",
159
159
  },
160
- Object {
160
+ {
161
161
  "text": "gzip",
162
162
  "value": "gzip",
163
163
  },
164
- Object {
164
+ {
165
165
  "text": "bzip2",
166
166
  "value": "bzip2",
167
167
  },
168
- Object {
168
+ {
169
169
  "text": "brotli",
170
170
  "value": "brotli",
171
171
  },
172
172
  ],
173
173
  "type": "string",
174
174
  "value": "brotli",
175
- "values": Array [],
175
+ "values": [],
176
176
  "widget": "dropdown",
177
177
  }
178
178
  }
@@ -181,45 +181,45 @@ exports[`<FieldGroupSubSegment /> matches the latest snapshot 1`] = `
181
181
  />
182
182
  <DynamicField
183
183
  field={
184
- Object {
184
+ {
185
185
  "cardinality": "1",
186
186
  "description": "",
187
187
  "label": "fields",
188
188
  "name": "fields",
189
- "parsedValues": Array [],
189
+ "parsedValues": [],
190
190
  "type": "string",
191
- "value": Array [
192
- Object {
191
+ "value": [
192
+ {
193
193
  "name": "New3",
194
194
  "precision": 10,
195
195
  "scale": 2,
196
196
  "size": 11,
197
197
  "type": "decimal",
198
198
  },
199
- Object {
199
+ {
200
200
  "format": "%d-%m-%Y %H:%M:%S",
201
201
  "name": "New5",
202
202
  "size": 10,
203
203
  "type": "datetime",
204
204
  },
205
- Object {
205
+ {
206
206
  "name": "New1",
207
207
  "size": 40,
208
208
  "type": "string",
209
209
  },
210
- Object {
210
+ {
211
211
  "format": "%d-%m-%Y %H:%M:%S",
212
212
  "name": "New0",
213
213
  "size": 10,
214
214
  "type": "datetime",
215
215
  },
216
- Object {
216
+ {
217
217
  "name": "New4",
218
218
  "size": 40,
219
219
  "type": "string",
220
220
  },
221
221
  ],
222
- "values": Array [],
222
+ "values": [],
223
223
  "widget": "copy",
224
224
  }
225
225
  }
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<DynamicFieldValue /> matches the latest snapshot 1`] = `
4
- Object {
4
+ {
5
5
  "asFragment": [Function],
6
6
  "baseElement": <body>
7
7
  <div>
@@ -102,7 +102,7 @@ Object {
102
102
  `;
103
103
 
104
104
  exports[`<DynamicFieldValue /> matches the latest snapshot with field changed 1`] = `
105
- Object {
105
+ {
106
106
  "asFragment": [Function],
107
107
  "baseElement": <body>
108
108
  <div>
@@ -3,8 +3,8 @@
3
3
  exports[`<DynamicForm /> matches snapshot for default field 1`] = `
4
4
  <FieldGroupSegment
5
5
  fields={
6
- Array [
7
- Object {
6
+ [
7
+ {
8
8
  "name": "test",
9
9
  "required": false,
10
10
  "value": undefined,
@@ -20,28 +20,28 @@ exports[`<DynamicForm /> matches snapshot for default field 1`] = `
20
20
  exports[`<DynamicForm /> matches snapshot for domain values 1`] = `
21
21
  <FieldGroupSegment
22
22
  fields={
23
- Array [
24
- Object {
23
+ [
24
+ {
25
25
  "name": "test",
26
- "parsedValues": Array [
27
- Object {
26
+ "parsedValues": [
27
+ {
28
28
  "text": "a",
29
29
  "value": "a",
30
30
  },
31
- Object {
31
+ {
32
32
  "text": "b",
33
33
  "value": "b",
34
34
  },
35
- Object {
35
+ {
36
36
  "text": "c",
37
37
  "value": "c",
38
38
  },
39
39
  ],
40
40
  "required": false,
41
41
  "value": undefined,
42
- "values": Object {
43
- "domain": Object {
44
- "1": Array [
42
+ "values": {
43
+ "domain": {
44
+ "1": [
45
45
  "a",
46
46
  "b",
47
47
  "c",
@@ -62,19 +62,19 @@ exports[`<DynamicForm /> matches snapshot for empty content 1`] = `null`;
62
62
  exports[`<DynamicForm /> matches snapshot for role_users values 1`] = `
63
63
  <FieldGroupSegment
64
64
  fields={
65
- Array [
66
- Object {
65
+ [
66
+ {
67
67
  "name": "test",
68
- "parsedValues": Array [
69
- Object {
68
+ "parsedValues": [
69
+ {
70
70
  "text": "user1",
71
71
  "value": "user1",
72
72
  },
73
73
  ],
74
74
  "required": false,
75
75
  "value": undefined,
76
- "values": Object {
77
- "processed_users": Array [
76
+ "values": {
77
+ "processed_users": [
78
78
  "user1",
79
79
  ],
80
80
  "role_users": "role",
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<EditableDynamicFieldValue /> matches the latest snapshot 1`] = `
4
- Object {
4
+ {
5
5
  "asFragment": [Function],
6
6
  "baseElement": <body>
7
7
  <div>
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<FieldGroupDetail /> matches the latest snapshot with boxLayout 1`] = `
4
- Object {
4
+ {
5
5
  "asFragment": [Function],
6
6
  "baseElement": <body>
7
7
  <div>
@@ -164,7 +164,7 @@ Object {
164
164
  `;
165
165
 
166
166
  exports[`<FieldGroupDetail /> matches the latest snapshot with field differences 1`] = `
167
- Object {
167
+ {
168
168
  "asFragment": [Function],
169
169
  "baseElement": <body>
170
170
  <div>
@@ -329,7 +329,7 @@ Object {
329
329
  `;
330
330
 
331
331
  exports[`<FieldGroupDetail /> matches the latest snapshot without boxLayout 1`] = `
332
- Object {
332
+ {
333
333
  "asFragment": [Function],
334
334
  "baseElement": <body>
335
335
  <div>
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<HierarchyCrumbs /> matches the latest snapshot 1`] = `
4
- Object {
4
+ {
5
5
  "asFragment": [Function],
6
6
  "baseElement": <body>
7
7
  <div>
@@ -15,7 +15,7 @@ exports[`<CopyField /> matches the latest snapshot 1`] = `
15
15
  trigger={
16
16
  <div
17
17
  style={
18
- Object {
18
+ {
19
19
  "float": "right",
20
20
  "marginBottom": "20px",
21
21
  }
@@ -37,7 +37,7 @@ exports[`<CopyField /> matches the latest snapshot 1`] = `
37
37
  <ModalContent>
38
38
  <div
39
39
  style={
40
- Object {
40
+ {
41
41
  "display": "inline-flex",
42
42
  "width": "100%",
43
43
  }
@@ -52,7 +52,7 @@ exports[`<CopyField /> matches the latest snapshot 1`] = `
52
52
  onClick={[Function]}
53
53
  size="small"
54
54
  style={
55
- Object {
55
+ {
56
56
  "backgroundColor": "#002057",
57
57
  "color": "white",
58
58
  "margin": "4px 20px",
@@ -68,7 +68,7 @@ exports[`<CopyField /> matches the latest snapshot 1`] = `
68
68
  <div
69
69
  key="0"
70
70
  style={
71
- Object {
71
+ {
72
72
  "backgroundColor": "#E8E8E8",
73
73
  "color": "rgba(0, 0, 0, 0.6)",
74
74
  "minHeight": "42px",
@@ -88,45 +88,45 @@ exports[`<CopyField /> matches the latest snapshot 1`] = `
88
88
  getHelperDimensions={[Function]}
89
89
  hideSortableGhost={true}
90
90
  items={
91
- Array [
92
- Object {
91
+ [
92
+ {
93
93
  "name": "New4",
94
94
  "type": "string",
95
95
  },
96
- Object {
96
+ {
97
97
  "name": "New3",
98
98
  "type": "string",
99
99
  },
100
- Object {
100
+ {
101
101
  "name": "New2",
102
102
  "type": "string",
103
103
  },
104
- Object {
104
+ {
105
105
  "name": "New1",
106
106
  "type": "string",
107
107
  },
108
- Object {
108
+ {
109
109
  "name": "New0",
110
110
  "type": "string",
111
111
  },
112
112
  ]
113
113
  }
114
114
  keyCodes={
115
- Object {
116
- "cancel": Array [
115
+ {
116
+ "cancel": [
117
117
  27,
118
118
  ],
119
- "down": Array [
119
+ "down": [
120
120
  40,
121
121
  39,
122
122
  ],
123
- "drop": Array [
123
+ "drop": [
124
124
  32,
125
125
  ],
126
- "lift": Array [
126
+ "lift": [
127
127
  32,
128
128
  ],
129
- "up": Array [
129
+ "up": [
130
130
  38,
131
131
  37,
132
132
  ],
@@ -145,7 +145,7 @@ exports[`<CopyField /> matches the latest snapshot 1`] = `
145
145
  </div>
146
146
  <div
147
147
  style={
148
- Object {
148
+ {
149
149
  "color": "red",
150
150
  }
151
151
  }
@@ -162,7 +162,7 @@ exports[`<CopyField /> matches the latest snapshot 1`] = `
162
162
  </Modal>
163
163
  <div
164
164
  style={
165
- Object {
165
+ {
166
166
  "display": "inline-flex",
167
167
  "width": "100%",
168
168
  }
@@ -177,7 +177,7 @@ exports[`<CopyField /> matches the latest snapshot 1`] = `
177
177
  onClick={[Function]}
178
178
  size="small"
179
179
  style={
180
- Object {
180
+ {
181
181
  "backgroundColor": "#002057",
182
182
  "color": "white",
183
183
  "margin": "4px 20px",
@@ -193,7 +193,7 @@ exports[`<CopyField /> matches the latest snapshot 1`] = `
193
193
  <div
194
194
  key="0"
195
195
  style={
196
- Object {
196
+ {
197
197
  "backgroundColor": "#E8E8E8",
198
198
  "color": "rgba(0, 0, 0, 0.6)",
199
199
  "minHeight": "42px",
@@ -213,45 +213,45 @@ exports[`<CopyField /> matches the latest snapshot 1`] = `
213
213
  getHelperDimensions={[Function]}
214
214
  hideSortableGhost={true}
215
215
  items={
216
- Array [
217
- Object {
216
+ [
217
+ {
218
218
  "name": "New4",
219
219
  "type": "string",
220
220
  },
221
- Object {
221
+ {
222
222
  "name": "New3",
223
223
  "type": "string",
224
224
  },
225
- Object {
225
+ {
226
226
  "name": "New2",
227
227
  "type": "string",
228
228
  },
229
- Object {
229
+ {
230
230
  "name": "New1",
231
231
  "type": "string",
232
232
  },
233
- Object {
233
+ {
234
234
  "name": "New0",
235
235
  "type": "string",
236
236
  },
237
237
  ]
238
238
  }
239
239
  keyCodes={
240
- Object {
241
- "cancel": Array [
240
+ {
241
+ "cancel": [
242
242
  27,
243
243
  ],
244
- "down": Array [
244
+ "down": [
245
245
  40,
246
246
  39,
247
247
  ],
248
- "drop": Array [
248
+ "drop": [
249
249
  32,
250
250
  ],
251
- "lift": Array [
251
+ "lift": [
252
252
  32,
253
253
  ],
254
- "up": Array [
254
+ "up": [
255
255
  38,
256
256
  37,
257
257
  ],
@@ -270,7 +270,7 @@ exports[`<CopyField /> matches the latest snapshot 1`] = `
270
270
  </div>
271
271
  <div
272
272
  style={
273
- Object {
273
+ {
274
274
  "color": "red",
275
275
  }
276
276
  }
@@ -3,7 +3,7 @@
3
3
  exports[`<CopyFieldCell /> matches the latest snapshot 1`] = `
4
4
  <div
5
5
  style={
6
- Object {
6
+ {
7
7
  "backgroundColor": "#E8E8E8",
8
8
  "borderColor": "rgb(232, 232, 232)",
9
9
  "borderStyle": "solid",
@@ -23,7 +23,7 @@ exports[`<CopyFieldCell /> matches the latest snapshot 1`] = `
23
23
  className="cellContent"
24
24
  onClick={[Function]}
25
25
  style={
26
- Object {
26
+ {
27
27
  "cursor": "pointer",
28
28
  "float": "left",
29
29
  "overflow": "hidden",
@@ -39,7 +39,7 @@ exports[`<CopyFieldCell /> matches the latest snapshot 1`] = `
39
39
  <div
40
40
  onMouseDown={[Function]}
41
41
  style={
42
- Object {
42
+ {
43
43
  "float": "right",
44
44
  "paddingTop": "3px",
45
45
  }
@@ -50,7 +50,7 @@ exports[`<CopyFieldCell /> matches the latest snapshot 1`] = `
50
50
  icon={true}
51
51
  size="mini"
52
52
  style={
53
- Object {
53
+ {
54
54
  "backgroundColor": "#9F3A38",
55
55
  "color": "white",
56
56
  }
@@ -3,7 +3,7 @@
3
3
  exports[`<CopyFieldColumn /> matches the latest snapshot 1`] = `
4
4
  <div
5
5
  style={
6
- Object {
6
+ {
7
7
  "clear": "both",
8
8
  "minWidth": "150px",
9
9
  "overflow": "hidden",