@truedat/qx 8.10.2 → 8.10.4

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 (61) hide show
  1. package/package.json +3 -3
  2. package/src/components/QxRoutes.js +8 -7
  3. package/src/components/__tests__/QxRoutes.spec.js +2 -1
  4. package/src/components/__tests__/__fixtures__/helper.js +13 -0
  5. package/src/components/__tests__/__snapshots__/QxRoutes.spec.js.snap +1 -1
  6. package/src/components/common/ClauseViewer.js +52 -8
  7. package/src/components/common/DescriptionInput.js +9 -34
  8. package/src/components/common/TypeSelector.js +20 -10
  9. package/src/components/common/__tests__/ClauseViewer.spec.js +150 -0
  10. package/src/components/common/__tests__/DescriptionInput.spec.js +2 -5
  11. package/src/components/common/__tests__/__snapshots__/DescriptionInput.spec.js.snap +7 -10
  12. package/src/components/common/expressions/Clauses.js +22 -17
  13. package/src/components/common/expressions/Condition.js +201 -102
  14. package/src/components/common/expressions/Expression.js +17 -23
  15. package/src/components/common/expressions/FunctionSelector.js +3 -3
  16. package/src/components/common/expressions/ShapeSelector.js +1 -1
  17. package/src/components/common/expressions/__tests__/Clauses.spec.js +1 -1
  18. package/src/components/common/expressions/__tests__/Condition.spec.js +83 -26
  19. package/src/components/common/expressions/__tests__/ParamSelector.spec.js +1 -1
  20. package/src/components/common/expressions/__tests__/__snapshots__/Clauses.spec.js.snap +18 -22
  21. package/src/components/common/expressions/__tests__/__snapshots__/Condition.spec.js.snap +215 -216
  22. package/src/components/common/expressions/__tests__/__snapshots__/ConstantSelector.spec.js.snap +6 -10
  23. package/src/components/common/expressions/__tests__/__snapshots__/Expression.spec.js.snap +630 -654
  24. package/src/components/common/expressions/__tests__/__snapshots__/FunctionArgs.spec.js.snap +193 -201
  25. package/src/components/common/expressions/__tests__/__snapshots__/FunctionSelector.spec.js.snap +450 -466
  26. package/src/components/common/expressions/__tests__/__snapshots__/ShapeSelector.spec.js.snap +34 -34
  27. package/src/components/common/expressions/constantInputs/AnySelector.js +1 -0
  28. package/src/components/common/expressions/constantInputs/__tests__/__snapshots__/AnySelector.spec.js.snap +15 -15
  29. package/src/components/dataViews/__tests__/__snapshots__/AdvancedDataViewEditor.spec.js.snap +378 -406
  30. package/src/components/dataViews/__tests__/__snapshots__/DataViewSummary.spec.js.snap +6 -6
  31. package/src/components/dataViews/__tests__/__snapshots__/Queryable.spec.js.snap +489 -577
  32. package/src/components/dataViews/__tests__/__snapshots__/Queryables.spec.js.snap +400 -476
  33. package/src/components/dataViews/advancedForm/Queryable.js +56 -64
  34. package/src/components/dataViews/advancedForm/Queryables.js +11 -2
  35. package/src/components/dataViews/queryableProperties/Join.js +16 -6
  36. package/src/components/dataViews/queryableProperties/__tests__/__snapshots__/Join.spec.js.snap +0 -28
  37. package/src/components/dataViews/queryableProperties/__tests__/__snapshots__/Select.spec.js.snap +270 -282
  38. package/src/components/dataViews/queryableProperties/__tests__/__snapshots__/SelectField.spec.js.snap +172 -180
  39. package/src/components/dataViews/simpleForm/DatasetForm.js +4 -0
  40. package/src/components/dataViews/simpleForm/FormQueryable.js +49 -53
  41. package/src/components/dataViews/summary/Where.js +3 -2
  42. package/src/components/functions/FunctionEdit.js +92 -0
  43. package/src/components/functions/FunctionEditor.js +32 -10
  44. package/src/components/functions/FunctionParams.js +54 -61
  45. package/src/components/functions/FunctionsList.js +213 -0
  46. package/src/components/functions/__tests__/FunctionEdit.spec.js +168 -0
  47. package/src/components/functions/__tests__/FunctionParams.spec.js +1 -8
  48. package/src/components/functions/__tests__/FunctionsList.spec.js +62 -0
  49. package/src/components/functions/__tests__/__snapshots__/FunctionEditor.spec.js.snap +553 -469
  50. package/src/components/functions/__tests__/__snapshots__/FunctionParams.spec.js.snap +139 -161
  51. package/src/components/functions/__tests__/__snapshots__/FunctionsList.spec.js.snap +588 -0
  52. package/src/components/qualityControls/__tests__/NewQualityControl.spec.js +4 -0
  53. package/src/components/qualityControls/__tests__/QualityControlEditor.spec.js +8 -1
  54. package/src/components/qualityControls/__tests__/__snapshots__/EditQualityControl.spec.js.snap +109 -118
  55. package/src/components/qualityControls/__tests__/__snapshots__/NewDraftQualityControl.spec.js.snap +109 -118
  56. package/src/components/qualityControls/__tests__/__snapshots__/QualityControlEditor.spec.js.snap +471 -468
  57. package/src/hooks/useFunctions.js +6 -0
  58. package/src/styles/Expression.less +39 -6
  59. package/src/components/functions/Functions.js +0 -143
  60. package/src/components/functions/__tests__/Functions.spec.js +0 -56
  61. package/src/components/functions/__tests__/__snapshots__/Functions.spec.js.snap +0 -85
@@ -12,186 +12,164 @@ exports[`<FunctionParams /> matches the latest snapshot with param 1`] = `
12
12
  >
13
13
  <div>
14
14
  <div
15
- class="ui grid"
15
+ class="inline fields no-margin"
16
16
  >
17
17
  <div
18
- class="row"
18
+ class="field"
19
19
  >
20
20
  <div
21
- class="column"
22
- />
23
- <div
24
- class="fifteen wide column"
21
+ class="ui action input"
25
22
  >
23
+ <input
24
+ autocomplete="off"
25
+ placeholder="functions.form.name"
26
+ type="text"
27
+ value="param1"
28
+ />
26
29
  <div
27
- class="row"
30
+ class="field"
28
31
  >
29
32
  <div
30
- class="inline fields no-margin"
33
+ aria-expanded="false"
34
+ class="ui button fluid dropdown"
35
+ name="type"
36
+ role="listbox"
37
+ tabindex="0"
31
38
  >
32
39
  <div
33
- class="field"
40
+ aria-atomic="true"
41
+ aria-live="polite"
42
+ class="divider text"
43
+ role="alert"
44
+ >
45
+ expressions.data_type.boolean
46
+ </div>
47
+ <i
48
+ aria-hidden="true"
49
+ class="dropdown icon"
50
+ />
51
+ <div
52
+ class="menu transition"
34
53
  >
35
54
  <div
36
- class="ui action input"
55
+ aria-checked="true"
56
+ aria-selected="true"
57
+ class="active selected item"
58
+ role="option"
59
+ style="pointer-events: all;"
60
+ >
61
+ <i
62
+ aria-hidden="true"
63
+ class="adjust icon"
64
+ />
65
+ <span
66
+ class="text"
67
+ >
68
+ expressions.data_type.boolean
69
+ </span>
70
+ </div>
71
+ <div
72
+ aria-checked="false"
73
+ aria-selected="false"
74
+ class="item"
75
+ role="option"
76
+ style="pointer-events: all;"
77
+ >
78
+ <i
79
+ aria-hidden="true"
80
+ class="font icon"
81
+ />
82
+ <span
83
+ class="text"
84
+ >
85
+ expressions.data_type.string
86
+ </span>
87
+ </div>
88
+ <div
89
+ aria-checked="false"
90
+ aria-selected="false"
91
+ class="item"
92
+ role="option"
93
+ style="pointer-events: all;"
94
+ >
95
+ <i
96
+ aria-hidden="true"
97
+ class="hashtag icon"
98
+ />
99
+ <span
100
+ class="text"
101
+ >
102
+ expressions.data_type.number
103
+ </span>
104
+ </div>
105
+ <div
106
+ aria-checked="false"
107
+ aria-selected="false"
108
+ class="item"
109
+ role="option"
110
+ style="pointer-events: all;"
111
+ >
112
+ <i
113
+ aria-hidden="true"
114
+ class="calendar alternate outline icon"
115
+ />
116
+ <span
117
+ class="text"
118
+ >
119
+ expressions.data_type.date
120
+ </span>
121
+ </div>
122
+ <div
123
+ aria-checked="false"
124
+ aria-selected="false"
125
+ class="item"
126
+ role="option"
127
+ style="pointer-events: all;"
37
128
  >
38
- <input
39
- autocomplete="off"
40
- placeholder="functions.form.name"
41
- type="text"
42
- value="param1"
129
+ <i
130
+ aria-hidden="true"
131
+ class="clock outline icon"
43
132
  />
44
- <div
45
- class="field"
133
+ <span
134
+ class="text"
46
135
  >
47
- <div
48
- aria-expanded="false"
49
- class="ui button fluid dropdown"
50
- name="type"
51
- role="listbox"
52
- tabindex="0"
53
- >
54
- <div
55
- aria-atomic="true"
56
- aria-live="polite"
57
- class="divider text"
58
- role="alert"
59
- >
60
- expressions.data_type.boolean
61
- </div>
62
- <i
63
- aria-hidden="true"
64
- class="dropdown icon"
65
- />
66
- <div
67
- class="menu transition"
68
- >
69
- <div
70
- aria-checked="true"
71
- aria-selected="true"
72
- class="active selected item"
73
- role="option"
74
- style="pointer-events: all;"
75
- >
76
- <i
77
- aria-hidden="true"
78
- class="adjust icon"
79
- />
80
- <span
81
- class="text"
82
- >
83
- expressions.data_type.boolean
84
- </span>
85
- </div>
86
- <div
87
- aria-checked="false"
88
- aria-selected="false"
89
- class="item"
90
- role="option"
91
- style="pointer-events: all;"
92
- >
93
- <i
94
- aria-hidden="true"
95
- class="font icon"
96
- />
97
- <span
98
- class="text"
99
- >
100
- expressions.data_type.string
101
- </span>
102
- </div>
103
- <div
104
- aria-checked="false"
105
- aria-selected="false"
106
- class="item"
107
- role="option"
108
- style="pointer-events: all;"
109
- >
110
- <i
111
- aria-hidden="true"
112
- class="hashtag icon"
113
- />
114
- <span
115
- class="text"
116
- >
117
- expressions.data_type.number
118
- </span>
119
- </div>
120
- <div
121
- aria-checked="false"
122
- aria-selected="false"
123
- class="item"
124
- role="option"
125
- style="pointer-events: all;"
126
- >
127
- <i
128
- aria-hidden="true"
129
- class="calendar alternate outline icon"
130
- />
131
- <span
132
- class="text"
133
- >
134
- expressions.data_type.date
135
- </span>
136
- </div>
137
- <div
138
- aria-checked="false"
139
- aria-selected="false"
140
- class="item"
141
- role="option"
142
- style="pointer-events: all;"
143
- >
144
- <i
145
- aria-hidden="true"
146
- class="clock outline icon"
147
- />
148
- <span
149
- class="text"
150
- >
151
- expressions.data_type.timestamp
152
- </span>
153
- </div>
154
- <div
155
- aria-checked="false"
156
- aria-selected="false"
157
- class="item"
158
- role="option"
159
- style="pointer-events: all;"
160
- >
161
- <i
162
- aria-hidden="true"
163
- class="question circle outline icon"
164
- />
165
- <span
166
- class="text"
167
- >
168
- expressions.data_type.any
169
- </span>
170
- </div>
171
- </div>
172
- </div>
173
- </div>
136
+ expressions.data_type.timestamp
137
+ </span>
138
+ </div>
139
+ <div
140
+ aria-checked="false"
141
+ aria-selected="false"
142
+ class="item"
143
+ role="option"
144
+ style="pointer-events: all;"
145
+ >
146
+ <i
147
+ aria-hidden="true"
148
+ class="question circle outline icon"
149
+ />
150
+ <span
151
+ class="text"
152
+ >
153
+ expressions.data_type.any
154
+ </span>
174
155
  </div>
175
156
  </div>
176
157
  </div>
177
158
  </div>
178
- <div
179
- class="row"
180
- >
181
- <div
182
- class="ui horizontal link list"
183
- role="list"
184
- >
185
- <a
186
- class="item"
187
- role="listitem"
188
- style="font-style: italic; font-size: 13px; padding: 9.5px 14px;"
189
- tabindex="0"
190
- >
191
- functions.form.add_description
192
- </a>
193
- </div>
194
- </div>
159
+ </div>
160
+ </div>
161
+ <div
162
+ class="field"
163
+ >
164
+ <div
165
+ class="ui input"
166
+ >
167
+ <input
168
+ autocomplete="off"
169
+ placeholder="functions.form.description"
170
+ type="text"
171
+ value=""
172
+ />
195
173
  </div>
196
174
  </div>
197
175
  </div>