@truedat/qx 7.13.9 → 7.14.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.
- package/package.json +3 -3
- package/src/components/common/ClauseViewer.js +183 -21
- package/src/components/common/expressions/Condition.js +13 -6
- package/src/components/dataViews/DataViewEditor.js +0 -2
- package/src/components/dataViews/DataViewSummary.js +73 -0
- package/src/components/dataViews/__tests__/AdvancedDataViewEditor.spec.js +4 -1
- package/src/components/dataViews/__tests__/DataViewEditor.spec.js +167 -132
- package/src/components/dataViews/__tests__/DataViewSummary.spec.js +820 -0
- package/src/components/dataViews/__tests__/DataViews.spec.js +57 -17
- package/src/components/dataViews/__tests__/SimpleDataViewEditor.spec.js +140 -141
- package/src/components/dataViews/__tests__/__snapshots__/AdvancedDataViewEditor.spec.js.snap +963 -759
- package/src/components/dataViews/__tests__/__snapshots__/DataViewSelect.spec.js.snap +17 -13
- package/src/components/dataViews/__tests__/__snapshots__/DataViewSummary.spec.js.snap +1786 -0
- package/src/components/dataViews/__tests__/__snapshots__/Queryable.spec.js.snap +18 -14
- package/src/components/dataViews/__tests__/__snapshots__/Queryables.spec.js.snap +18 -14
- package/src/components/dataViews/advancedForm/AdvancedDataViewEditor.js +59 -48
- package/src/components/dataViews/queryableProperties/Join.js +2 -1
- package/src/components/dataViews/queryableProperties/Select.js +22 -30
- package/src/components/dataViews/queryableProperties/__tests__/__snapshots__/Join.spec.js.snap +1 -1
- package/src/components/dataViews/queryableProperties/__tests__/__snapshots__/Select.spec.js.snap +37 -25
- package/src/components/dataViews/queryableSummaryHelpers.js +101 -0
- package/src/components/dataViews/simpleForm/SimpleDataViewEditor.js +9 -4
- package/src/components/dataViews/summary/From.js +45 -0
- package/src/components/dataViews/summary/GroupBy.js +82 -0
- package/src/components/dataViews/summary/Join.js +60 -0
- package/src/components/dataViews/summary/Select.js +31 -0
- package/src/components/dataViews/summary/Where.js +37 -0
- package/src/components/qualityControls/ControlPropertiesView.js +115 -63
- package/src/components/qualityControls/EditQualityControl.js +5 -3
- package/src/components/qualityControls/NewDraftQualityControl.js +8 -3
- package/src/components/qualityControls/NewQualityControl.js +5 -3
- package/src/components/qualityControls/QualityControlCrumbs.js +46 -5
- package/src/components/qualityControls/QualityControlRoutes.js +3 -1
- package/src/components/qualityControls/QualityControls.js +9 -18
- package/src/components/qualityControls/QualityControlsLabelResults.js +2 -2
- package/src/components/qualityControls/__tests__/__snapshots__/ControlPropertiesView.spec.js.snap +12 -9
- package/src/components/qualityControls/__tests__/__snapshots__/EditQualityControl.spec.js.snap +536 -493
- package/src/components/qualityControls/__tests__/__snapshots__/NewDraftQualityControl.spec.js.snap +510 -483
- package/src/components/qualityControls/__tests__/__snapshots__/NewQualityControl.spec.js.snap +261 -245
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControl.spec.js.snap +11 -8
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlCrumbs.spec.js.snap +1 -1
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlHeader.spec.js.snap +1 -1
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControls.spec.js.snap +87 -87
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlsLabelResults.spec.js.snap +6 -2
- package/src/hooks/useDataViews.js +1 -1
- package/src/styles/Expression.less +25 -1
|
@@ -117,107 +117,107 @@ exports[`<QualityControls /> matches the latest snapshot 1`] = `
|
|
|
117
117
|
</div>
|
|
118
118
|
</div>
|
|
119
119
|
<div
|
|
120
|
-
|
|
120
|
+
style="margin-bottom: 8px;"
|
|
121
121
|
>
|
|
122
|
-
|
|
122
|
+
<div
|
|
123
|
+
class="ui label quality-controls-label-results"
|
|
124
|
+
>
|
|
125
|
+
quality_controls.retrieved.results
|
|
126
|
+
</div>
|
|
123
127
|
</div>
|
|
124
|
-
<
|
|
125
|
-
class="
|
|
128
|
+
<table
|
|
129
|
+
class="ui sortable table"
|
|
126
130
|
>
|
|
127
|
-
<
|
|
128
|
-
class="
|
|
131
|
+
<thead
|
|
132
|
+
class=""
|
|
129
133
|
>
|
|
130
|
-
<
|
|
134
|
+
<tr
|
|
131
135
|
class=""
|
|
132
136
|
>
|
|
133
|
-
<
|
|
137
|
+
<th
|
|
134
138
|
class=""
|
|
135
139
|
>
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
<
|
|
140
|
+
name
|
|
141
|
+
</th>
|
|
142
|
+
<th
|
|
143
|
+
class="two wide"
|
|
144
|
+
>
|
|
145
|
+
df_type
|
|
146
|
+
</th>
|
|
147
|
+
<th
|
|
148
|
+
class="two wide"
|
|
149
|
+
>
|
|
150
|
+
control_mode
|
|
151
|
+
</th>
|
|
152
|
+
<th
|
|
153
|
+
class="two wide"
|
|
154
|
+
>
|
|
155
|
+
status
|
|
156
|
+
</th>
|
|
157
|
+
<th
|
|
158
|
+
class="two wide disabled"
|
|
159
|
+
>
|
|
160
|
+
latest_score
|
|
161
|
+
</th>
|
|
162
|
+
<th
|
|
163
|
+
class="two wide"
|
|
164
|
+
>
|
|
165
|
+
updated_at
|
|
166
|
+
</th>
|
|
167
|
+
</tr>
|
|
168
|
+
</thead>
|
|
169
|
+
<tbody
|
|
170
|
+
class=""
|
|
171
|
+
>
|
|
172
|
+
<tr
|
|
169
173
|
class=""
|
|
170
174
|
>
|
|
171
|
-
<
|
|
175
|
+
<td
|
|
172
176
|
class=""
|
|
173
177
|
>
|
|
174
|
-
<
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
<a
|
|
178
|
-
data-discover="true"
|
|
179
|
-
href="/qualityControls/8/version/1"
|
|
180
|
-
>
|
|
181
|
-
test
|
|
182
|
-
</a>
|
|
183
|
-
</td>
|
|
184
|
-
<td
|
|
185
|
-
class=""
|
|
178
|
+
<a
|
|
179
|
+
data-discover="true"
|
|
180
|
+
href="/qualityControls/8/version/1"
|
|
186
181
|
>
|
|
187
|
-
|
|
188
|
-
</
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
<
|
|
209
|
-
|
|
182
|
+
test
|
|
183
|
+
</a>
|
|
184
|
+
</td>
|
|
185
|
+
<td
|
|
186
|
+
class=""
|
|
187
|
+
>
|
|
188
|
+
template1
|
|
189
|
+
</td>
|
|
190
|
+
<td
|
|
191
|
+
class=""
|
|
192
|
+
>
|
|
193
|
+
quality_control.control_mode.percentage
|
|
194
|
+
</td>
|
|
195
|
+
<td
|
|
196
|
+
class=""
|
|
197
|
+
>
|
|
198
|
+
quality_control.status.published
|
|
199
|
+
</td>
|
|
200
|
+
<td
|
|
201
|
+
class=""
|
|
202
|
+
>
|
|
203
|
+
<i
|
|
204
|
+
aria-hidden="true"
|
|
205
|
+
class="green circle icon"
|
|
206
|
+
/>
|
|
207
|
+
100%
|
|
208
|
+
</td>
|
|
209
|
+
<td
|
|
210
|
+
class="center aligned"
|
|
211
|
+
>
|
|
212
|
+
<time
|
|
213
|
+
datetime="1732796097004"
|
|
210
214
|
>
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
</tr>
|
|
218
|
-
</tbody>
|
|
219
|
-
</table>
|
|
220
|
-
</div>
|
|
215
|
+
2024-11-28 12:14
|
|
216
|
+
</time>
|
|
217
|
+
</td>
|
|
218
|
+
</tr>
|
|
219
|
+
</tbody>
|
|
220
|
+
</table>
|
|
221
221
|
</div>
|
|
222
222
|
</div>
|
|
223
223
|
`;
|
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
exports[`<QualityControlsLabelResults /> matches the latest snapshot 1`] = `
|
|
4
4
|
<div>
|
|
5
5
|
<div
|
|
6
|
-
|
|
6
|
+
style="margin-bottom: 8px;"
|
|
7
7
|
>
|
|
8
|
-
|
|
8
|
+
<div
|
|
9
|
+
class="ui label quality-controls-label-results"
|
|
10
|
+
>
|
|
11
|
+
22 quality controls found
|
|
12
|
+
</div>
|
|
9
13
|
</div>
|
|
10
14
|
</div>
|
|
11
15
|
`;
|
|
@@ -33,7 +33,7 @@ export const useDataViewDelete = (dataView) => {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
export const useDataViewFetch = (id) => {
|
|
36
|
-
const url = compile(API_DATA_VIEW)({ id: `${id}` });
|
|
36
|
+
const url = id ? compile(API_DATA_VIEW)({ id: `${id}` }) : null;
|
|
37
37
|
const { data, error } = useSWR(url, apiJson);
|
|
38
38
|
const dataView = data?.data?.data;
|
|
39
39
|
return { dataView, error, loading: !error && !data };
|
|
@@ -282,8 +282,10 @@ ul.function-tree {
|
|
|
282
282
|
}
|
|
283
283
|
.condition-function-viewer {
|
|
284
284
|
display: flex;
|
|
285
|
-
|
|
285
|
+
flex-wrap: wrap;
|
|
286
286
|
align-items: center;
|
|
287
|
+
gap: 4px;
|
|
288
|
+
overflow: hidden;
|
|
287
289
|
}
|
|
288
290
|
|
|
289
291
|
.json-box {
|
|
@@ -312,4 +314,26 @@ ul.function-tree {
|
|
|
312
314
|
|
|
313
315
|
.no-margin {
|
|
314
316
|
margin: 0px;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.text-break-word {
|
|
320
|
+
word-break: break-word;
|
|
321
|
+
overflow-wrap: break-word;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.description-flex-wrap {
|
|
325
|
+
display: flex;
|
|
326
|
+
flex-wrap: wrap;
|
|
327
|
+
align-items: center;
|
|
328
|
+
gap: 4px;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.join-type-selector > .divider.text{
|
|
332
|
+
display: flex;
|
|
333
|
+
align-items: center;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.ui.dropdown .menu > .item {
|
|
337
|
+
display: flex;
|
|
338
|
+
align-items: center;
|
|
315
339
|
}
|