@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.
Files changed (46) hide show
  1. package/package.json +3 -3
  2. package/src/components/common/ClauseViewer.js +183 -21
  3. package/src/components/common/expressions/Condition.js +13 -6
  4. package/src/components/dataViews/DataViewEditor.js +0 -2
  5. package/src/components/dataViews/DataViewSummary.js +73 -0
  6. package/src/components/dataViews/__tests__/AdvancedDataViewEditor.spec.js +4 -1
  7. package/src/components/dataViews/__tests__/DataViewEditor.spec.js +167 -132
  8. package/src/components/dataViews/__tests__/DataViewSummary.spec.js +820 -0
  9. package/src/components/dataViews/__tests__/DataViews.spec.js +57 -17
  10. package/src/components/dataViews/__tests__/SimpleDataViewEditor.spec.js +140 -141
  11. package/src/components/dataViews/__tests__/__snapshots__/AdvancedDataViewEditor.spec.js.snap +963 -759
  12. package/src/components/dataViews/__tests__/__snapshots__/DataViewSelect.spec.js.snap +17 -13
  13. package/src/components/dataViews/__tests__/__snapshots__/DataViewSummary.spec.js.snap +1786 -0
  14. package/src/components/dataViews/__tests__/__snapshots__/Queryable.spec.js.snap +18 -14
  15. package/src/components/dataViews/__tests__/__snapshots__/Queryables.spec.js.snap +18 -14
  16. package/src/components/dataViews/advancedForm/AdvancedDataViewEditor.js +59 -48
  17. package/src/components/dataViews/queryableProperties/Join.js +2 -1
  18. package/src/components/dataViews/queryableProperties/Select.js +22 -30
  19. package/src/components/dataViews/queryableProperties/__tests__/__snapshots__/Join.spec.js.snap +1 -1
  20. package/src/components/dataViews/queryableProperties/__tests__/__snapshots__/Select.spec.js.snap +37 -25
  21. package/src/components/dataViews/queryableSummaryHelpers.js +101 -0
  22. package/src/components/dataViews/simpleForm/SimpleDataViewEditor.js +9 -4
  23. package/src/components/dataViews/summary/From.js +45 -0
  24. package/src/components/dataViews/summary/GroupBy.js +82 -0
  25. package/src/components/dataViews/summary/Join.js +60 -0
  26. package/src/components/dataViews/summary/Select.js +31 -0
  27. package/src/components/dataViews/summary/Where.js +37 -0
  28. package/src/components/qualityControls/ControlPropertiesView.js +115 -63
  29. package/src/components/qualityControls/EditQualityControl.js +5 -3
  30. package/src/components/qualityControls/NewDraftQualityControl.js +8 -3
  31. package/src/components/qualityControls/NewQualityControl.js +5 -3
  32. package/src/components/qualityControls/QualityControlCrumbs.js +46 -5
  33. package/src/components/qualityControls/QualityControlRoutes.js +3 -1
  34. package/src/components/qualityControls/QualityControls.js +9 -18
  35. package/src/components/qualityControls/QualityControlsLabelResults.js +2 -2
  36. package/src/components/qualityControls/__tests__/__snapshots__/ControlPropertiesView.spec.js.snap +12 -9
  37. package/src/components/qualityControls/__tests__/__snapshots__/EditQualityControl.spec.js.snap +536 -493
  38. package/src/components/qualityControls/__tests__/__snapshots__/NewDraftQualityControl.spec.js.snap +510 -483
  39. package/src/components/qualityControls/__tests__/__snapshots__/NewQualityControl.spec.js.snap +261 -245
  40. package/src/components/qualityControls/__tests__/__snapshots__/QualityControl.spec.js.snap +11 -8
  41. package/src/components/qualityControls/__tests__/__snapshots__/QualityControlCrumbs.spec.js.snap +1 -1
  42. package/src/components/qualityControls/__tests__/__snapshots__/QualityControlHeader.spec.js.snap +1 -1
  43. package/src/components/qualityControls/__tests__/__snapshots__/QualityControls.spec.js.snap +87 -87
  44. package/src/components/qualityControls/__tests__/__snapshots__/QualityControlsLabelResults.spec.js.snap +6 -2
  45. package/src/hooks/useDataViews.js +1 -1
  46. 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
- class="ui label quality-controls-label-results"
120
+ style="margin-bottom: 8px;"
121
121
  >
122
- quality_controls.retrieved.results
122
+ <div
123
+ class="ui label quality-controls-label-results"
124
+ >
125
+ quality_controls.retrieved.results
126
+ </div>
123
127
  </div>
124
- <div
125
- class="dimmable"
128
+ <table
129
+ class="ui sortable table"
126
130
  >
127
- <table
128
- class="ui sortable table"
131
+ <thead
132
+ class=""
129
133
  >
130
- <thead
134
+ <tr
131
135
  class=""
132
136
  >
133
- <tr
137
+ <th
134
138
  class=""
135
139
  >
136
- <th
137
- class=""
138
- >
139
- name
140
- </th>
141
- <th
142
- class="two wide"
143
- >
144
- df_type
145
- </th>
146
- <th
147
- class="two wide"
148
- >
149
- control_mode
150
- </th>
151
- <th
152
- class="two wide"
153
- >
154
- status
155
- </th>
156
- <th
157
- class="two wide disabled"
158
- >
159
- latest_score
160
- </th>
161
- <th
162
- class="two wide"
163
- >
164
- updated_at
165
- </th>
166
- </tr>
167
- </thead>
168
- <tbody
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
- <tr
175
+ <td
172
176
  class=""
173
177
  >
174
- <td
175
- class=""
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
- template1
188
- </td>
189
- <td
190
- class=""
191
- >
192
- quality_control.control_mode.percentage
193
- </td>
194
- <td
195
- class=""
196
- >
197
- quality_control.status.published
198
- </td>
199
- <td
200
- class=""
201
- >
202
- <i
203
- aria-hidden="true"
204
- class="green circle icon"
205
- />
206
- 100%
207
- </td>
208
- <td
209
- class="center aligned"
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
- <time
212
- datetime="1732796097004"
213
- >
214
- 2024-11-28 12:14
215
- </time>
216
- </td>
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
- class="ui label quality-controls-label-results"
6
+ style="margin-bottom: 8px;"
7
7
  >
8
- 22 quality controls found
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
- justify-content: center;
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
  }