@truedat/qx 8.4.9 → 8.5.2
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/expressions/Clauses.js +5 -9
- package/src/components/common/expressions/Condition.js +36 -37
- package/src/components/common/expressions/__tests__/Clauses.spec.js +87 -0
- package/src/components/common/expressions/__tests__/Condition.spec.js +220 -1
- package/src/components/common/expressions/__tests__/__snapshots__/Clauses.spec.js.snap +22 -21
- package/src/components/common/expressions/__tests__/__snapshots__/Condition.spec.js.snap +212 -214
- package/src/components/dataViews/queryableProperties/GroupBy.js +4 -2
- package/src/components/dataViews/queryableProperties/__tests__/GroupBy.spec.js +134 -28
- package/src/components/qualityControls/ControlProperties.js +32 -16
- package/src/components/qualityControls/ControlPropertiesForm.js +3 -3
- package/src/components/qualityControls/ControlPropertiesSummary.js +127 -104
- package/src/components/qualityControls/ControlPropertiesView.js +48 -74
- package/src/components/qualityControls/InformationForm.js +181 -180
- package/src/components/qualityControls/ScoreCriteria.js +0 -4
- package/src/components/qualityControls/ScoreCriteriaView.js +6 -9
- package/src/components/qualityControls/__tests__/ControlProperties.spec.js +47 -16
- package/src/components/qualityControls/__tests__/ControlPropertiesForm.spec.js +100 -0
- package/src/components/qualityControls/__tests__/ControlPropertiesSummary.spec.js +141 -0
- package/src/components/qualityControls/__tests__/ControlPropertiesView.spec.js +102 -11
- package/src/components/qualityControls/__tests__/EditQualityControl.spec.js +27 -3
- package/src/components/qualityControls/__tests__/InformationForm.spec.js +342 -0
- package/src/components/qualityControls/__tests__/NewDraftQualityControl.spec.js +26 -6
- package/src/components/qualityControls/__tests__/NewQualityControl.spec.js +66 -20
- package/src/components/qualityControls/__tests__/QualityBadge.spec.js +30 -3
- package/src/components/qualityControls/__tests__/QualityControlEditor.spec.js +282 -45
- package/src/components/qualityControls/__tests__/ScoreCriteria.spec.js +25 -3
- package/src/components/qualityControls/__tests__/ScoreCriteriaView.spec.js +19 -3
- package/src/components/qualityControls/__tests__/__fixtures__/qualityControlHelper.js +1 -1
- package/src/components/qualityControls/__tests__/__snapshots__/ControlProperties.spec.js.snap +13 -1
- package/src/components/qualityControls/__tests__/__snapshots__/ControlPropertiesView.spec.js.snap +70 -40
- package/src/components/qualityControls/__tests__/__snapshots__/EditQualityControl.spec.js.snap +118 -132
- package/src/components/qualityControls/__tests__/__snapshots__/NewDraftQualityControl.spec.js.snap +118 -132
- package/src/components/qualityControls/__tests__/__snapshots__/NewQualityControl.spec.js.snap +0 -13
- package/src/components/qualityControls/__tests__/__snapshots__/QualityBadge.spec.js.snap +15 -5
- package/src/components/qualityControls/__tests__/__snapshots__/QualityControlEditor.spec.js.snap +488 -125
- package/src/components/qualityControls/__tests__/__snapshots__/ScoreCriteria.spec.js.snap +13 -5
- package/src/components/qualityControls/__tests__/qualityByControlMode.spec.js +65 -14
- package/src/components/qualityControls/controlProperties/{Ratio.js → ResourceWithValidation.js} +19 -10
- package/src/components/qualityControls/controlProperties/__tests__/ResourceWithValidation.spec.js +192 -0
- package/src/components/qualityControls/qualityByControlMode.js +6 -30
- package/src/components/qualityControls/scoreCriterias/ErrorCount.js +0 -1
- package/src/components/qualityControls/scoreCriterias/__tests__/ErrorCount.spec.js +4 -4
- package/src/components/dataViews/queryableProperties/__tests__/__snapshots__/GroupBy.spec.js.snap +0 -604
- package/src/components/qualityControls/controlProperties/Count.js +0 -56
- package/src/components/qualityControls/controlProperties/__tests__/Count.spec.js +0 -66
- package/src/components/qualityControls/controlProperties/__tests__/Ratio.spec.js +0 -95
- package/src/components/qualityControls/controlProperties/__tests__/__snapshots__/Count.spec.js.snap +0 -67
- package/src/components/qualityControls/controlProperties/__tests__/__snapshots__/Ratio.spec.js.snap +0 -161
- package/src/components/qualityControls/scoreCriterias/Count.js +0 -88
- package/src/components/qualityControls/scoreCriterias/__tests__/Count.spec.js +0 -62
- package/src/components/qualityControls/scoreCriterias/__tests__/__snapshots__/Count.spec.js.snap +0 -58
package/src/components/qualityControls/__tests__/__snapshots__/ControlPropertiesView.spec.js.snap
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`<ControlPropertiesView /> matches the latest snapshot for
|
|
3
|
+
exports[`<ControlPropertiesView /> matches the latest snapshot for empty control properties 1`] = `
|
|
4
4
|
<div>
|
|
5
5
|
<h5
|
|
6
6
|
class="ui header"
|
|
@@ -18,42 +18,12 @@ exports[`<ControlPropertiesView /> matches the latest snapshot for count 1`] = `
|
|
|
18
18
|
<div
|
|
19
19
|
class="ui segment"
|
|
20
20
|
>
|
|
21
|
-
|
|
22
|
-
class="ui list"
|
|
23
|
-
role="list"
|
|
24
|
-
>
|
|
25
|
-
<div
|
|
26
|
-
class="item"
|
|
27
|
-
role="listitem"
|
|
28
|
-
>
|
|
29
|
-
<div
|
|
30
|
-
class="header"
|
|
31
|
-
>
|
|
32
|
-
Dataset
|
|
33
|
-
</div>
|
|
34
|
-
<div
|
|
35
|
-
class="content"
|
|
36
|
-
>
|
|
37
|
-
<div
|
|
38
|
-
class="description"
|
|
39
|
-
>
|
|
40
|
-
<div
|
|
41
|
-
class="ui horizontal label"
|
|
42
|
-
>
|
|
43
|
-
Data Structure
|
|
44
|
-
</div>
|
|
45
|
-
<div
|
|
46
|
-
class="ui blue label"
|
|
47
|
-
/>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
21
|
+
Empty control properties
|
|
52
22
|
</div>
|
|
53
23
|
</div>
|
|
54
24
|
`;
|
|
55
25
|
|
|
56
|
-
exports[`<ControlPropertiesView /> matches the latest snapshot for empty
|
|
26
|
+
exports[`<ControlPropertiesView /> matches the latest snapshot for empty errors_resource 1`] = `
|
|
57
27
|
<div>
|
|
58
28
|
<h5
|
|
59
29
|
class="ui header"
|
|
@@ -71,12 +41,46 @@ exports[`<ControlPropertiesView /> matches the latest snapshot for empty control
|
|
|
71
41
|
<div
|
|
72
42
|
class="ui segment"
|
|
73
43
|
>
|
|
74
|
-
|
|
44
|
+
<div
|
|
45
|
+
class="ui list"
|
|
46
|
+
role="list"
|
|
47
|
+
>
|
|
48
|
+
<div
|
|
49
|
+
class="item"
|
|
50
|
+
role="listitem"
|
|
51
|
+
>
|
|
52
|
+
<div
|
|
53
|
+
class="header"
|
|
54
|
+
>
|
|
55
|
+
Dataset
|
|
56
|
+
</div>
|
|
57
|
+
<div
|
|
58
|
+
class="content"
|
|
59
|
+
>
|
|
60
|
+
Empty Dataset
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div
|
|
64
|
+
class="item"
|
|
65
|
+
role="listitem"
|
|
66
|
+
>
|
|
67
|
+
<div
|
|
68
|
+
class="header"
|
|
69
|
+
>
|
|
70
|
+
quality_control.count.validation
|
|
71
|
+
</div>
|
|
72
|
+
<div
|
|
73
|
+
class="content"
|
|
74
|
+
>
|
|
75
|
+
quality_control.count.validation.empty
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
75
79
|
</div>
|
|
76
80
|
</div>
|
|
77
81
|
`;
|
|
78
82
|
|
|
79
|
-
exports[`<ControlPropertiesView /> matches the latest snapshot for empty
|
|
83
|
+
exports[`<ControlPropertiesView /> matches the latest snapshot for empty ratio validation and resource 1`] = `
|
|
80
84
|
<div>
|
|
81
85
|
<h5
|
|
82
86
|
class="ui header"
|
|
@@ -110,7 +114,22 @@ exports[`<ControlPropertiesView /> matches the latest snapshot for empty errors_
|
|
|
110
114
|
<div
|
|
111
115
|
class="content"
|
|
112
116
|
>
|
|
113
|
-
Empty
|
|
117
|
+
Empty resource
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
<div
|
|
121
|
+
class="item"
|
|
122
|
+
role="listitem"
|
|
123
|
+
>
|
|
124
|
+
<div
|
|
125
|
+
class="header"
|
|
126
|
+
>
|
|
127
|
+
Validation
|
|
128
|
+
</div>
|
|
129
|
+
<div
|
|
130
|
+
class="content"
|
|
131
|
+
>
|
|
132
|
+
Empty validation
|
|
114
133
|
</div>
|
|
115
134
|
</div>
|
|
116
135
|
</div>
|
|
@@ -118,7 +137,7 @@ exports[`<ControlPropertiesView /> matches the latest snapshot for empty errors_
|
|
|
118
137
|
</div>
|
|
119
138
|
`;
|
|
120
139
|
|
|
121
|
-
exports[`<ControlPropertiesView /> matches the latest snapshot for
|
|
140
|
+
exports[`<ControlPropertiesView /> matches the latest snapshot for error_count 1`] = `
|
|
122
141
|
<div>
|
|
123
142
|
<h5
|
|
124
143
|
class="ui header"
|
|
@@ -152,7 +171,18 @@ exports[`<ControlPropertiesView /> matches the latest snapshot for empty ratio v
|
|
|
152
171
|
<div
|
|
153
172
|
class="content"
|
|
154
173
|
>
|
|
155
|
-
|
|
174
|
+
<div
|
|
175
|
+
class="description"
|
|
176
|
+
>
|
|
177
|
+
<div
|
|
178
|
+
class="ui horizontal label"
|
|
179
|
+
>
|
|
180
|
+
Data Structure
|
|
181
|
+
</div>
|
|
182
|
+
<div
|
|
183
|
+
class="ui blue label"
|
|
184
|
+
/>
|
|
185
|
+
</div>
|
|
156
186
|
</div>
|
|
157
187
|
</div>
|
|
158
188
|
<div
|
|
@@ -162,12 +192,12 @@ exports[`<ControlPropertiesView /> matches the latest snapshot for empty ratio v
|
|
|
162
192
|
<div
|
|
163
193
|
class="header"
|
|
164
194
|
>
|
|
165
|
-
|
|
195
|
+
quality_control.count.validation
|
|
166
196
|
</div>
|
|
167
197
|
<div
|
|
168
198
|
class="content"
|
|
169
199
|
>
|
|
170
|
-
|
|
200
|
+
quality_control.count.validation.empty
|
|
171
201
|
</div>
|
|
172
202
|
</div>
|
|
173
203
|
</div>
|
package/src/components/qualityControls/__tests__/__snapshots__/EditQualityControl.spec.js.snap
CHANGED
|
@@ -350,19 +350,6 @@ exports[`<EditQualityControl /> matches the latest snapshot 1`] = `
|
|
|
350
350
|
quality_control.control_mode.error_count
|
|
351
351
|
</span>
|
|
352
352
|
</div>
|
|
353
|
-
<div
|
|
354
|
-
aria-checked="false"
|
|
355
|
-
aria-selected="false"
|
|
356
|
-
class="item"
|
|
357
|
-
role="option"
|
|
358
|
-
style="pointer-events: all;"
|
|
359
|
-
>
|
|
360
|
-
<span
|
|
361
|
-
class="text"
|
|
362
|
-
>
|
|
363
|
-
quality_control.control_mode.count
|
|
364
|
-
</span>
|
|
365
|
-
</div>
|
|
366
353
|
</div>
|
|
367
354
|
</div>
|
|
368
355
|
</div>
|
|
@@ -580,176 +567,175 @@ exports[`<EditQualityControl /> matches the latest snapshot 1`] = `
|
|
|
580
567
|
<label>
|
|
581
568
|
quality_control.form.control_properties.ratio.validation
|
|
582
569
|
</label>
|
|
583
|
-
<div
|
|
570
|
+
<div
|
|
571
|
+
class="ui segment"
|
|
572
|
+
>
|
|
584
573
|
<div
|
|
585
|
-
class="
|
|
586
|
-
|
|
574
|
+
class="clause-and-group"
|
|
575
|
+
/>
|
|
576
|
+
<div
|
|
577
|
+
class="ui hidden divider"
|
|
578
|
+
/>
|
|
579
|
+
<div>
|
|
587
580
|
<div
|
|
588
|
-
class="
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
581
|
+
class="ui grid"
|
|
582
|
+
>
|
|
583
|
+
<div
|
|
584
|
+
class="fifteen wide column"
|
|
585
|
+
>
|
|
592
586
|
<div
|
|
593
|
-
class="
|
|
587
|
+
class="expression-container"
|
|
594
588
|
>
|
|
595
589
|
<div
|
|
596
|
-
|
|
590
|
+
aria-expanded="false"
|
|
591
|
+
class="ui top left pointing dropdown"
|
|
592
|
+
role="listbox"
|
|
593
|
+
tabindex="0"
|
|
597
594
|
>
|
|
598
595
|
<div
|
|
599
|
-
class="
|
|
596
|
+
class="shape-selector-trigger"
|
|
597
|
+
>
|
|
598
|
+
f(x)
|
|
599
|
+
</div>
|
|
600
|
+
<div
|
|
601
|
+
class="menu transition"
|
|
600
602
|
>
|
|
601
603
|
<div
|
|
602
|
-
aria-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
604
|
+
aria-checked="false"
|
|
605
|
+
aria-selected="false"
|
|
606
|
+
class="item"
|
|
607
|
+
role="option"
|
|
608
|
+
style="pointer-events: all;"
|
|
606
609
|
>
|
|
607
610
|
<div
|
|
608
|
-
class="
|
|
611
|
+
class="text flex-center"
|
|
609
612
|
>
|
|
610
|
-
|
|
613
|
+
<small
|
|
614
|
+
style="margin-right: 5px;"
|
|
615
|
+
>
|
|
616
|
+
<b>
|
|
617
|
+
<code>
|
|
618
|
+
[π]
|
|
619
|
+
</code>
|
|
620
|
+
</b>
|
|
621
|
+
</small>
|
|
622
|
+
functions.expression.shape.constant
|
|
611
623
|
</div>
|
|
624
|
+
</div>
|
|
625
|
+
<div
|
|
626
|
+
aria-checked="true"
|
|
627
|
+
aria-selected="true"
|
|
628
|
+
class="active selected item"
|
|
629
|
+
role="option"
|
|
630
|
+
style="pointer-events: all;"
|
|
631
|
+
>
|
|
612
632
|
<div
|
|
613
|
-
class="
|
|
633
|
+
class="text flex-center"
|
|
614
634
|
>
|
|
615
|
-
<
|
|
616
|
-
|
|
617
|
-
aria-selected="false"
|
|
618
|
-
class="item"
|
|
619
|
-
role="option"
|
|
620
|
-
style="pointer-events: all;"
|
|
621
|
-
>
|
|
622
|
-
<div
|
|
623
|
-
class="text flex-center"
|
|
624
|
-
>
|
|
625
|
-
<small
|
|
626
|
-
style="margin-right: 5px;"
|
|
627
|
-
>
|
|
628
|
-
<b>
|
|
629
|
-
<code>
|
|
630
|
-
[π]
|
|
631
|
-
</code>
|
|
632
|
-
</b>
|
|
633
|
-
</small>
|
|
634
|
-
functions.expression.shape.constant
|
|
635
|
-
</div>
|
|
636
|
-
</div>
|
|
637
|
-
<div
|
|
638
|
-
aria-checked="true"
|
|
639
|
-
aria-selected="true"
|
|
640
|
-
class="active selected item"
|
|
641
|
-
role="option"
|
|
642
|
-
style="pointer-events: all;"
|
|
635
|
+
<small
|
|
636
|
+
style="margin-right: 5px;"
|
|
643
637
|
>
|
|
644
|
-
<
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
<code>
|
|
652
|
-
f(x)
|
|
653
|
-
</code>
|
|
654
|
-
</b>
|
|
655
|
-
</small>
|
|
656
|
-
functions.expression.shape.function
|
|
657
|
-
</div>
|
|
658
|
-
</div>
|
|
638
|
+
<b>
|
|
639
|
+
<code>
|
|
640
|
+
f(x)
|
|
641
|
+
</code>
|
|
642
|
+
</b>
|
|
643
|
+
</small>
|
|
644
|
+
functions.expression.shape.function
|
|
659
645
|
</div>
|
|
660
646
|
</div>
|
|
647
|
+
</div>
|
|
648
|
+
</div>
|
|
649
|
+
<div
|
|
650
|
+
class="accordion ui fluid no-margin"
|
|
651
|
+
>
|
|
652
|
+
<div
|
|
653
|
+
class="active title no-padding"
|
|
654
|
+
>
|
|
661
655
|
<div
|
|
662
|
-
class="
|
|
656
|
+
class="flex-center"
|
|
663
657
|
>
|
|
658
|
+
<i
|
|
659
|
+
aria-hidden="true"
|
|
660
|
+
class="dropdown icon"
|
|
661
|
+
/>
|
|
664
662
|
<div
|
|
665
|
-
class="
|
|
663
|
+
class="sixteen wide field"
|
|
666
664
|
>
|
|
667
665
|
<div
|
|
668
|
-
|
|
666
|
+
aria-expanded="false"
|
|
667
|
+
class="ui fluid search selection dropdown"
|
|
668
|
+
role="combobox"
|
|
669
669
|
>
|
|
670
|
+
<input
|
|
671
|
+
aria-autocomplete="list"
|
|
672
|
+
autocomplete="off"
|
|
673
|
+
class="search"
|
|
674
|
+
tabindex="0"
|
|
675
|
+
type="text"
|
|
676
|
+
value=""
|
|
677
|
+
/>
|
|
678
|
+
<div
|
|
679
|
+
aria-atomic="true"
|
|
680
|
+
aria-live="polite"
|
|
681
|
+
class="divider text"
|
|
682
|
+
role="alert"
|
|
683
|
+
>
|
|
684
|
+
functions.form.expression.function.placeholder
|
|
685
|
+
</div>
|
|
670
686
|
<i
|
|
671
687
|
aria-hidden="true"
|
|
672
688
|
class="dropdown icon"
|
|
673
689
|
/>
|
|
674
690
|
<div
|
|
675
|
-
class="
|
|
691
|
+
class="menu transition"
|
|
692
|
+
role="listbox"
|
|
676
693
|
>
|
|
677
694
|
<div
|
|
678
|
-
|
|
679
|
-
class="ui fluid search selection dropdown"
|
|
680
|
-
role="combobox"
|
|
695
|
+
class="message"
|
|
681
696
|
>
|
|
682
|
-
|
|
683
|
-
aria-autocomplete="list"
|
|
684
|
-
autocomplete="off"
|
|
685
|
-
class="search"
|
|
686
|
-
tabindex="0"
|
|
687
|
-
type="text"
|
|
688
|
-
value=""
|
|
689
|
-
/>
|
|
690
|
-
<div
|
|
691
|
-
aria-atomic="true"
|
|
692
|
-
aria-live="polite"
|
|
693
|
-
class="divider text"
|
|
694
|
-
role="alert"
|
|
695
|
-
>
|
|
696
|
-
functions.form.expression.function.placeholder
|
|
697
|
-
</div>
|
|
698
|
-
<i
|
|
699
|
-
aria-hidden="true"
|
|
700
|
-
class="dropdown icon"
|
|
701
|
-
/>
|
|
702
|
-
<div
|
|
703
|
-
class="menu transition"
|
|
704
|
-
role="listbox"
|
|
705
|
-
>
|
|
706
|
-
<div
|
|
707
|
-
class="message"
|
|
708
|
-
>
|
|
709
|
-
No results found.
|
|
710
|
-
</div>
|
|
711
|
-
</div>
|
|
697
|
+
No results found.
|
|
712
698
|
</div>
|
|
713
699
|
</div>
|
|
714
700
|
</div>
|
|
715
701
|
</div>
|
|
716
|
-
<div
|
|
717
|
-
class="content active no-padding"
|
|
718
|
-
/>
|
|
719
702
|
</div>
|
|
720
703
|
</div>
|
|
704
|
+
<div
|
|
705
|
+
class="content active no-padding"
|
|
706
|
+
/>
|
|
721
707
|
</div>
|
|
722
|
-
<div
|
|
723
|
-
class="middle aligned one wide column"
|
|
724
|
-
/>
|
|
725
708
|
</div>
|
|
726
709
|
</div>
|
|
727
710
|
<div
|
|
728
|
-
class="
|
|
711
|
+
class="middle aligned one wide column"
|
|
729
712
|
/>
|
|
730
713
|
</div>
|
|
731
714
|
<div
|
|
732
715
|
class="ui horizontal divider"
|
|
716
|
+
/>
|
|
717
|
+
</div>
|
|
718
|
+
<div
|
|
719
|
+
class="ui horizontal divider"
|
|
720
|
+
>
|
|
721
|
+
<div
|
|
722
|
+
class="ui medium basic buttons"
|
|
733
723
|
>
|
|
734
|
-
<
|
|
735
|
-
class="ui
|
|
724
|
+
<button
|
|
725
|
+
class="ui button"
|
|
736
726
|
>
|
|
737
|
-
<
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
/>
|
|
744
|
-
expression.clause.action.addExpression
|
|
745
|
-
</button>
|
|
746
|
-
</div>
|
|
727
|
+
<i
|
|
728
|
+
aria-hidden="true"
|
|
729
|
+
class="plus icon"
|
|
730
|
+
/>
|
|
731
|
+
expression.clause.action.addExpression
|
|
732
|
+
</button>
|
|
747
733
|
</div>
|
|
748
734
|
</div>
|
|
749
|
-
<div
|
|
750
|
-
class="ui horizontal divider"
|
|
751
|
-
/>
|
|
752
735
|
</div>
|
|
736
|
+
<div
|
|
737
|
+
class="ui horizontal divider"
|
|
738
|
+
/>
|
|
753
739
|
<div
|
|
754
740
|
class="ui horizontal divider"
|
|
755
741
|
>
|