@esrf/daiquiri-lib 5.7.0 → 5.7.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/dist/index.d.ts +2989 -0
- package/dist/index.js +41 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +10531 -0
- package/dist/index.mjs.map +1 -0
- package/dist/node-schema.json +906 -0
- package/package.json +1 -1
|
@@ -0,0 +1,906 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"BaseInfoWidgetOptions": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"extended": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "Whether to show the extended popup"
|
|
10
|
+
},
|
|
11
|
+
"header": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Kind of header displayed"
|
|
14
|
+
},
|
|
15
|
+
"property": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The property"
|
|
18
|
+
},
|
|
19
|
+
"unit": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Unit for the property"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"additionalProperties": false
|
|
25
|
+
},
|
|
26
|
+
"BaseNameWidgetOptions": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"properties": {
|
|
29
|
+
"extended": {
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"description": "Whether to show the extended popup"
|
|
32
|
+
},
|
|
33
|
+
"header": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "Kind of header displayed"
|
|
36
|
+
},
|
|
37
|
+
"overrideName": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"emptyifnone": {
|
|
41
|
+
"type": "boolean"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
},
|
|
46
|
+
"BasePropertyWidgetOptions": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"extended": {
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"description": "Whether to show the extended popup"
|
|
52
|
+
},
|
|
53
|
+
"header": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "Kind of header displayed"
|
|
56
|
+
},
|
|
57
|
+
"property": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"unit": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
},
|
|
66
|
+
"GaugeWidgetOptions": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"extended": {
|
|
70
|
+
"type": "boolean",
|
|
71
|
+
"description": "Whether to show the extended popup"
|
|
72
|
+
},
|
|
73
|
+
"header": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "Kind of header displayed"
|
|
76
|
+
},
|
|
77
|
+
"unit": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"description": "Unit of pressure"
|
|
80
|
+
},
|
|
81
|
+
"precision": {
|
|
82
|
+
"type": "number",
|
|
83
|
+
"description": "Precision to show, default 3"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"additionalProperties": false
|
|
87
|
+
},
|
|
88
|
+
"LaserWidgetOptions": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"properties": {
|
|
91
|
+
"extended": {
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"description": "Whether to show the extended popup"
|
|
94
|
+
},
|
|
95
|
+
"header": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"description": "Kind of header displayed"
|
|
98
|
+
},
|
|
99
|
+
"step": {
|
|
100
|
+
"type": "number",
|
|
101
|
+
"description": "Default step size to use for up / down arrows"
|
|
102
|
+
},
|
|
103
|
+
"steps": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"items": {
|
|
106
|
+
"type": "number"
|
|
107
|
+
},
|
|
108
|
+
"description": "Array of selectable step sizes"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"additionalProperties": false
|
|
112
|
+
},
|
|
113
|
+
"LaserHeatingWidgetOptions": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"extended": {
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"description": "Whether to show the extended popup"
|
|
119
|
+
},
|
|
120
|
+
"header": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"description": "Kind of header displayed"
|
|
123
|
+
},
|
|
124
|
+
"exposureStep": {
|
|
125
|
+
"type": "number",
|
|
126
|
+
"description": "Default step size to use for up / down arrows"
|
|
127
|
+
},
|
|
128
|
+
"exposureSteps": {
|
|
129
|
+
"type": "array",
|
|
130
|
+
"items": {
|
|
131
|
+
"type": "number"
|
|
132
|
+
},
|
|
133
|
+
"description": "Array of selectable step sizes"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"additionalProperties": false
|
|
137
|
+
},
|
|
138
|
+
"MotorDefaultOptions": {
|
|
139
|
+
"type": "object",
|
|
140
|
+
"properties": {
|
|
141
|
+
"extended": {
|
|
142
|
+
"type": "boolean",
|
|
143
|
+
"description": "Whether to show popup to configure extended parameters"
|
|
144
|
+
},
|
|
145
|
+
"header": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"description": "Kind of header displayed"
|
|
148
|
+
},
|
|
149
|
+
"step": {
|
|
150
|
+
"type": "number",
|
|
151
|
+
"description": "Default step size to use for up / down arrows"
|
|
152
|
+
},
|
|
153
|
+
"steps": {
|
|
154
|
+
"type": "array",
|
|
155
|
+
"items": {
|
|
156
|
+
"type": "number"
|
|
157
|
+
},
|
|
158
|
+
"description": "Array of selectable step sizes"
|
|
159
|
+
},
|
|
160
|
+
"precision": {
|
|
161
|
+
"type": "number",
|
|
162
|
+
"description": "Number of decimals to show"
|
|
163
|
+
},
|
|
164
|
+
"readOnly": {
|
|
165
|
+
"type": "boolean",
|
|
166
|
+
"description": "Whether this widget is read only"
|
|
167
|
+
},
|
|
168
|
+
"stepOnly": {
|
|
169
|
+
"type": "boolean",
|
|
170
|
+
"description": "Whether this widget can only be changed using steps"
|
|
171
|
+
},
|
|
172
|
+
"incicon": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"description": "Specify a fontawesome to inc the value"
|
|
175
|
+
},
|
|
176
|
+
"decicon": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"description": "Specify a fontawesome to dec the value"
|
|
179
|
+
},
|
|
180
|
+
"swapincdec": {
|
|
181
|
+
"type": "boolean",
|
|
182
|
+
"description": "If true inc and dec icon are swapped"
|
|
183
|
+
},
|
|
184
|
+
"horizontalarrows": {
|
|
185
|
+
"type": "boolean",
|
|
186
|
+
"description": "Show the step arrows horizontally instead of vertically"
|
|
187
|
+
},
|
|
188
|
+
"largearrows": {
|
|
189
|
+
"type": "boolean",
|
|
190
|
+
"description": "Show large step arrows"
|
|
191
|
+
},
|
|
192
|
+
"clockwise": {
|
|
193
|
+
"type": "boolean",
|
|
194
|
+
"description": "Enforce the way the positive direction is displayed.\n\nFor example this can change the behavior of a knob representation."
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"additionalProperties": false
|
|
198
|
+
},
|
|
199
|
+
"MultipositionDefault2Options": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"properties": {
|
|
202
|
+
"extended": {
|
|
203
|
+
"type": "boolean",
|
|
204
|
+
"description": "Whether to show the extended popup"
|
|
205
|
+
},
|
|
206
|
+
"header": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"description": "Kind of header displayed"
|
|
209
|
+
},
|
|
210
|
+
"search": {
|
|
211
|
+
"type": "boolean",
|
|
212
|
+
"description": "Display a search input"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"additionalProperties": false
|
|
216
|
+
},
|
|
217
|
+
"OpticWidgetOptions": {
|
|
218
|
+
"type": "object",
|
|
219
|
+
"properties": {
|
|
220
|
+
"extended": {
|
|
221
|
+
"type": "boolean",
|
|
222
|
+
"description": "Whether to show the extended popup"
|
|
223
|
+
},
|
|
224
|
+
"header": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"description": "Kind of header displayed"
|
|
227
|
+
},
|
|
228
|
+
"readonly": {
|
|
229
|
+
"type": "boolean"
|
|
230
|
+
},
|
|
231
|
+
"digits": {
|
|
232
|
+
"type": "number"
|
|
233
|
+
},
|
|
234
|
+
"allowtuning": {
|
|
235
|
+
"type": "boolean"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"additionalProperties": false
|
|
239
|
+
},
|
|
240
|
+
"ProcedureOptions": {
|
|
241
|
+
"type": "object",
|
|
242
|
+
"properties": {
|
|
243
|
+
"extended": {
|
|
244
|
+
"type": "boolean",
|
|
245
|
+
"description": "Whether to show the extended popup"
|
|
246
|
+
},
|
|
247
|
+
"header": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"description": "Kind of header displayed"
|
|
250
|
+
},
|
|
251
|
+
"foreground": {
|
|
252
|
+
"type": "boolean",
|
|
253
|
+
"description": "If true, execute the procedure in the BLISS session foreground.\n\nAs result, the terminal first have to be available to start the procedure, else it fails.\n\nAlso, as it takes the prompt, it is visible by the users, so they have to kill or to wait for the end before doing anything else."
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"additionalProperties": false
|
|
257
|
+
},
|
|
258
|
+
"PumpWidgetOptions": {
|
|
259
|
+
"type": "object",
|
|
260
|
+
"properties": {
|
|
261
|
+
"extended": {
|
|
262
|
+
"type": "boolean",
|
|
263
|
+
"description": "Whether to show the extended popup"
|
|
264
|
+
},
|
|
265
|
+
"header": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"description": "Kind of header displayed"
|
|
268
|
+
},
|
|
269
|
+
"unit": {
|
|
270
|
+
"type": "string"
|
|
271
|
+
},
|
|
272
|
+
"precision": {
|
|
273
|
+
"type": "number"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"additionalProperties": false
|
|
277
|
+
},
|
|
278
|
+
"PusherOptions": {
|
|
279
|
+
"type": "object",
|
|
280
|
+
"properties": {
|
|
281
|
+
"extended": {
|
|
282
|
+
"type": "boolean",
|
|
283
|
+
"description": "Whether to show the extended popup"
|
|
284
|
+
},
|
|
285
|
+
"header": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"description": "Kind of header displayed"
|
|
288
|
+
},
|
|
289
|
+
"orientation": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"enum": [
|
|
292
|
+
"right-left",
|
|
293
|
+
"left-right"
|
|
294
|
+
],
|
|
295
|
+
"description": "Orientation of the push action.\n\nThis changes the way the widget is displayed.\n\nOne of:\n- `right-left`: Push the sample from the right to the left (default)\n- `left-right`: Push the sample from the left to the right"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"additionalProperties": false
|
|
299
|
+
},
|
|
300
|
+
"PopupPlacement": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"enum": [
|
|
303
|
+
"auto",
|
|
304
|
+
"auto-start",
|
|
305
|
+
"auto-end",
|
|
306
|
+
"top",
|
|
307
|
+
"top-start",
|
|
308
|
+
"top-end",
|
|
309
|
+
"bottom",
|
|
310
|
+
"bottom-start",
|
|
311
|
+
"bottom-end",
|
|
312
|
+
"right",
|
|
313
|
+
"right-start",
|
|
314
|
+
"right-end",
|
|
315
|
+
"left",
|
|
316
|
+
"left-start",
|
|
317
|
+
"left-end"
|
|
318
|
+
],
|
|
319
|
+
"description": "Mirrors react-bootstrap's `Placement` (itself re-exported from `@restart/ui`/`@popperjs/core` via an inline `import()` type), spelled out as a literal union so widget-options codegen (which walks these interfaces with the TypeScript compiler API to produce a JSON Schema) can represent it — codegen can't resolve through the `import()` type node."
|
|
320
|
+
},
|
|
321
|
+
"RegulationOptions": {
|
|
322
|
+
"type": "object",
|
|
323
|
+
"properties": {
|
|
324
|
+
"extended": {
|
|
325
|
+
"type": "boolean",
|
|
326
|
+
"description": "Whether to show the extended popup"
|
|
327
|
+
},
|
|
328
|
+
"header": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"description": "Kind of header displayed"
|
|
331
|
+
},
|
|
332
|
+
"step": {
|
|
333
|
+
"type": "number",
|
|
334
|
+
"description": "Default step size to use for up / down arrows"
|
|
335
|
+
},
|
|
336
|
+
"steps": {
|
|
337
|
+
"type": "array",
|
|
338
|
+
"items": {
|
|
339
|
+
"type": "number"
|
|
340
|
+
},
|
|
341
|
+
"description": "Array of selectable step sizes"
|
|
342
|
+
},
|
|
343
|
+
"plotHeight": {
|
|
344
|
+
"type": "string",
|
|
345
|
+
"description": "Plot height"
|
|
346
|
+
},
|
|
347
|
+
"plotWidth": {
|
|
348
|
+
"type": "string",
|
|
349
|
+
"description": "Plot width"
|
|
350
|
+
},
|
|
351
|
+
"showOutput": {
|
|
352
|
+
"type": "boolean",
|
|
353
|
+
"description": "Show output details",
|
|
354
|
+
"default": true
|
|
355
|
+
},
|
|
356
|
+
"buttonTitle": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"description": "Popup button title"
|
|
359
|
+
},
|
|
360
|
+
"popupPlacement": {
|
|
361
|
+
"$ref": "#/definitions/PopupPlacement",
|
|
362
|
+
"description": "Popup placement"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"additionalProperties": false
|
|
366
|
+
},
|
|
367
|
+
"ServiceProectedOptions": {
|
|
368
|
+
"type": "object",
|
|
369
|
+
"properties": {
|
|
370
|
+
"extended": {
|
|
371
|
+
"type": "boolean",
|
|
372
|
+
"description": "Whether to show the extended popup"
|
|
373
|
+
},
|
|
374
|
+
"header": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"description": "Kind of header displayed"
|
|
377
|
+
},
|
|
378
|
+
"dropDirection": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"description": "Direction to drop the menu"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"additionalProperties": false
|
|
384
|
+
},
|
|
385
|
+
"SlitDefaultOptions": {
|
|
386
|
+
"type": "object",
|
|
387
|
+
"properties": {
|
|
388
|
+
"extended": {
|
|
389
|
+
"type": "boolean",
|
|
390
|
+
"description": "Whether to show the extended popup"
|
|
391
|
+
},
|
|
392
|
+
"header": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"description": "Kind of header displayed"
|
|
395
|
+
},
|
|
396
|
+
"precision": {
|
|
397
|
+
"type": "number",
|
|
398
|
+
"description": "Number of decimals to show"
|
|
399
|
+
},
|
|
400
|
+
"readonly": {
|
|
401
|
+
"type": "boolean",
|
|
402
|
+
"description": "Setup the widget to be read only"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"additionalProperties": false
|
|
406
|
+
},
|
|
407
|
+
"TomoDetectorFieldOfViewOptions": {
|
|
408
|
+
"type": "object",
|
|
409
|
+
"properties": {
|
|
410
|
+
"extended": {
|
|
411
|
+
"type": "boolean",
|
|
412
|
+
"description": "Whether to show the extended popup"
|
|
413
|
+
},
|
|
414
|
+
"header": {
|
|
415
|
+
"type": "string",
|
|
416
|
+
"description": "Kind of header displayed"
|
|
417
|
+
},
|
|
418
|
+
"display_unit": {
|
|
419
|
+
"type": "string",
|
|
420
|
+
"description": "The unit to be used to display the field of view."
|
|
421
|
+
},
|
|
422
|
+
"digits": {
|
|
423
|
+
"type": "number",
|
|
424
|
+
"description": "Number of digits"
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"additionalProperties": false
|
|
428
|
+
},
|
|
429
|
+
"TomoDetectorSamplePixelSizeOptions": {
|
|
430
|
+
"type": "object",
|
|
431
|
+
"properties": {
|
|
432
|
+
"extended": {
|
|
433
|
+
"type": "boolean",
|
|
434
|
+
"description": "Whether to show the extended popup"
|
|
435
|
+
},
|
|
436
|
+
"header": {
|
|
437
|
+
"type": "string",
|
|
438
|
+
"description": "Kind of header displayed"
|
|
439
|
+
},
|
|
440
|
+
"display_unit": {
|
|
441
|
+
"type": [
|
|
442
|
+
"string",
|
|
443
|
+
"null"
|
|
444
|
+
]
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"additionalProperties": false
|
|
448
|
+
},
|
|
449
|
+
"TomoImagingActionsOptions": {
|
|
450
|
+
"type": "object",
|
|
451
|
+
"properties": {
|
|
452
|
+
"extended": {
|
|
453
|
+
"type": "boolean",
|
|
454
|
+
"description": "Whether to show the extended popup"
|
|
455
|
+
},
|
|
456
|
+
"header": {
|
|
457
|
+
"type": "string",
|
|
458
|
+
"description": "Kind of header displayed"
|
|
459
|
+
},
|
|
460
|
+
"restore_sample": {
|
|
461
|
+
"type": "boolean",
|
|
462
|
+
"description": "If true, the default, the sample location is restored after the action."
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
"additionalProperties": false
|
|
466
|
+
},
|
|
467
|
+
"TomoImagingOptions": {
|
|
468
|
+
"type": "object",
|
|
469
|
+
"properties": {
|
|
470
|
+
"extended": {
|
|
471
|
+
"type": "boolean",
|
|
472
|
+
"description": "Whether to show the extended popup"
|
|
473
|
+
},
|
|
474
|
+
"header": {
|
|
475
|
+
"type": "string",
|
|
476
|
+
"description": "Kind of header displayed"
|
|
477
|
+
},
|
|
478
|
+
"digits": {
|
|
479
|
+
"type": "number",
|
|
480
|
+
"description": "Number of digits for the time"
|
|
481
|
+
},
|
|
482
|
+
"unit": {
|
|
483
|
+
"type": "string",
|
|
484
|
+
"description": "Unit tailed for the time (if undefined the default is 's' for second)"
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
"additionalProperties": false
|
|
488
|
+
},
|
|
489
|
+
"TomoReferencePositionDefaultOptions": {
|
|
490
|
+
"type": "object",
|
|
491
|
+
"properties": {
|
|
492
|
+
"extended": {
|
|
493
|
+
"type": "boolean",
|
|
494
|
+
"description": "Whether to show the extended popup"
|
|
495
|
+
},
|
|
496
|
+
"header": {
|
|
497
|
+
"type": "string",
|
|
498
|
+
"description": "Kind of header displayed"
|
|
499
|
+
},
|
|
500
|
+
"label": {
|
|
501
|
+
"type": "string",
|
|
502
|
+
"description": "If defined, this label is displayed in the button."
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"additionalProperties": false
|
|
506
|
+
},
|
|
507
|
+
"EditableHardwareWidgetOptions": {
|
|
508
|
+
"type": "object",
|
|
509
|
+
"properties": {
|
|
510
|
+
"extended": {
|
|
511
|
+
"type": "boolean",
|
|
512
|
+
"description": "Whether to show the extended popup"
|
|
513
|
+
},
|
|
514
|
+
"header": {
|
|
515
|
+
"type": "string",
|
|
516
|
+
"description": "Kind of header displayed"
|
|
517
|
+
},
|
|
518
|
+
"readonly": {
|
|
519
|
+
"type": "boolean",
|
|
520
|
+
"description": "Disable edition for an editable widget"
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
"additionalProperties": false,
|
|
524
|
+
"description": "Common options exposed to user as yaml configuration for editable hardware widgets"
|
|
525
|
+
},
|
|
526
|
+
"HardwareMonitorOptions": {
|
|
527
|
+
"type": "object",
|
|
528
|
+
"properties": {
|
|
529
|
+
"extended": {
|
|
530
|
+
"type": "boolean",
|
|
531
|
+
"description": "Whether to show the extended popup"
|
|
532
|
+
},
|
|
533
|
+
"header": {
|
|
534
|
+
"type": "string",
|
|
535
|
+
"description": "Kind of header displayed"
|
|
536
|
+
},
|
|
537
|
+
"name": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"description": "Override the name of the hardware."
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"additionalProperties": false,
|
|
543
|
+
"description": "Options propagated from the monitor yaml description.\n\nIt is used for the monitor defined by the hardware.\n\nFIXME: Rework the hardware variant variants to specialize and drop HardwareWidgetOptions."
|
|
544
|
+
},
|
|
545
|
+
"Record<string,any>": {
|
|
546
|
+
"type": "object"
|
|
547
|
+
},
|
|
548
|
+
"YamlColOptions": {
|
|
549
|
+
"type": "object",
|
|
550
|
+
"properties": {
|
|
551
|
+
"style": {
|
|
552
|
+
"$ref": "#/definitions/Record%3Cstring%2Cany%3E",
|
|
553
|
+
"description": "Inline CSS styles applied to the column"
|
|
554
|
+
},
|
|
555
|
+
"xs": {
|
|
556
|
+
"type": "number",
|
|
557
|
+
"description": "Bootstrap column width (1-12)"
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"additionalProperties": false
|
|
561
|
+
},
|
|
562
|
+
"YamlContainerOptions": {
|
|
563
|
+
"type": "object",
|
|
564
|
+
"properties": {
|
|
565
|
+
"options": {
|
|
566
|
+
"$ref": "#/definitions/Record%3Cstring%2Cany%3E",
|
|
567
|
+
"description": "Options spread onto the underlying Container"
|
|
568
|
+
},
|
|
569
|
+
"style": {
|
|
570
|
+
"$ref": "#/definitions/Record%3Cstring%2Cany%3E",
|
|
571
|
+
"description": "Inline CSS styles applied to the row"
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
"additionalProperties": false
|
|
575
|
+
},
|
|
576
|
+
"YamlFormRowOptions": {
|
|
577
|
+
"type": "object",
|
|
578
|
+
"properties": {
|
|
579
|
+
"type": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"description": "Type of the node rendered in the row's content column (e.g. 'hardware')"
|
|
582
|
+
},
|
|
583
|
+
"title": {
|
|
584
|
+
"type": "string",
|
|
585
|
+
"description": "Row title shown in the first column; for hardware rows, defaults to the hardware id's name if unset"
|
|
586
|
+
},
|
|
587
|
+
"stateinheader": {
|
|
588
|
+
"type": "boolean",
|
|
589
|
+
"description": "For hardware rows, show the hardware state under the title"
|
|
590
|
+
},
|
|
591
|
+
"titlealign": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"description": "CSS align-self applied to the title cell"
|
|
594
|
+
},
|
|
595
|
+
"id": {
|
|
596
|
+
"type": "string",
|
|
597
|
+
"description": "Hardware id, used for the default title and passed to the rendered content node"
|
|
598
|
+
},
|
|
599
|
+
"variant": {
|
|
600
|
+
"type": "string",
|
|
601
|
+
"description": "Hardware variant passed to the rendered content node"
|
|
602
|
+
},
|
|
603
|
+
"options": {
|
|
604
|
+
"$ref": "#/definitions/Record%3Cstring%2Cany%3E",
|
|
605
|
+
"description": "Passed through to the rendered content node"
|
|
606
|
+
},
|
|
607
|
+
"even": {
|
|
608
|
+
"type": "boolean",
|
|
609
|
+
"description": "Passed through to the rendered content node"
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
"required": [
|
|
613
|
+
"type",
|
|
614
|
+
"title",
|
|
615
|
+
"even"
|
|
616
|
+
],
|
|
617
|
+
"additionalProperties": false,
|
|
618
|
+
"description": "A single labelled row of the form, rendering its content in the second column."
|
|
619
|
+
},
|
|
620
|
+
"YamlFormOptions": {
|
|
621
|
+
"type": "object",
|
|
622
|
+
"properties": {
|
|
623
|
+
"title": {
|
|
624
|
+
"type": "string",
|
|
625
|
+
"description": "Form panel title"
|
|
626
|
+
},
|
|
627
|
+
"options": {
|
|
628
|
+
"$ref": "#/definitions/Record%3Cstring%2Cany%3E",
|
|
629
|
+
"description": "Options spread onto the underlying Panel"
|
|
630
|
+
},
|
|
631
|
+
"style": {
|
|
632
|
+
"$ref": "#/definitions/Record%3Cstring%2Cany%3E",
|
|
633
|
+
"description": "Inline CSS styles applied to the form's content grid"
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
"additionalProperties": false
|
|
637
|
+
},
|
|
638
|
+
"YamlFormHeaderOptions": {
|
|
639
|
+
"type": "object",
|
|
640
|
+
"properties": {
|
|
641
|
+
"type": {
|
|
642
|
+
"type": "string",
|
|
643
|
+
"const": "formheader"
|
|
644
|
+
},
|
|
645
|
+
"title": {
|
|
646
|
+
"type": "string",
|
|
647
|
+
"description": "Header text"
|
|
648
|
+
},
|
|
649
|
+
"style": {
|
|
650
|
+
"$ref": "#/definitions/Record%3Cstring%2Cany%3E",
|
|
651
|
+
"description": "Inline CSS styles applied to the form's content grid"
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
"required": [
|
|
655
|
+
"type"
|
|
656
|
+
],
|
|
657
|
+
"additionalProperties": false,
|
|
658
|
+
"description": "A section header spanning both columns of the form grid."
|
|
659
|
+
},
|
|
660
|
+
"YamlGridOptions": {
|
|
661
|
+
"type": "object",
|
|
662
|
+
"properties": {
|
|
663
|
+
"title": {
|
|
664
|
+
"type": "string",
|
|
665
|
+
"description": "Grid panel title"
|
|
666
|
+
},
|
|
667
|
+
"columns": {
|
|
668
|
+
"type": "string",
|
|
669
|
+
"description": "CSS grid-template-columns value"
|
|
670
|
+
},
|
|
671
|
+
"rows": {
|
|
672
|
+
"type": "string",
|
|
673
|
+
"description": "CSS grid-template-rows value"
|
|
674
|
+
},
|
|
675
|
+
"style": {
|
|
676
|
+
"$ref": "#/definitions/Record%3Cstring%2Cany%3E",
|
|
677
|
+
"description": "Inline CSS styles applied to the column"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
"additionalProperties": false
|
|
681
|
+
},
|
|
682
|
+
"YamlGridCellOptions": {
|
|
683
|
+
"type": "object",
|
|
684
|
+
"properties": {
|
|
685
|
+
"columnSpan": {
|
|
686
|
+
"type": "number",
|
|
687
|
+
"description": "Number of grid columns this cell spans"
|
|
688
|
+
},
|
|
689
|
+
"rowSpan": {
|
|
690
|
+
"type": "number",
|
|
691
|
+
"description": "Number of grid rows this cell spans"
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
"additionalProperties": false,
|
|
695
|
+
"description": "Options for an individual cell within a grid."
|
|
696
|
+
},
|
|
697
|
+
"YamlPanelOptions": {
|
|
698
|
+
"type": "object",
|
|
699
|
+
"properties": {
|
|
700
|
+
"options": {
|
|
701
|
+
"$ref": "#/definitions/Record%3Cstring%2Cany%3E",
|
|
702
|
+
"description": "Options spread onto the underlying Panel"
|
|
703
|
+
},
|
|
704
|
+
"title": {
|
|
705
|
+
"type": "string",
|
|
706
|
+
"description": "Panel title"
|
|
707
|
+
},
|
|
708
|
+
"centerContent": {
|
|
709
|
+
"type": "boolean",
|
|
710
|
+
"description": "Center the panel's contents"
|
|
711
|
+
},
|
|
712
|
+
"style": {
|
|
713
|
+
"$ref": "#/definitions/Record%3Cstring%2Cany%3E",
|
|
714
|
+
"description": "Inline CSS styles applied to the underlying Panel"
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
"additionalProperties": false
|
|
718
|
+
},
|
|
719
|
+
"YamlRowOptions": {
|
|
720
|
+
"type": "object",
|
|
721
|
+
"properties": {
|
|
722
|
+
"style": {
|
|
723
|
+
"$ref": "#/definitions/Record%3Cstring%2Cany%3E",
|
|
724
|
+
"description": "Inline CSS styles applied to the row"
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
"additionalProperties": false
|
|
728
|
+
},
|
|
729
|
+
"YamlTabsRowOptions": {
|
|
730
|
+
"type": "object",
|
|
731
|
+
"properties": {
|
|
732
|
+
"title": {
|
|
733
|
+
"type": "string",
|
|
734
|
+
"description": "Tab header"
|
|
735
|
+
},
|
|
736
|
+
"style": {
|
|
737
|
+
"$ref": "#/definitions/Record%3Cstring%2Cany%3E",
|
|
738
|
+
"description": "Inline CSS styles applied to the tab's content pane"
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
"additionalProperties": false,
|
|
742
|
+
"description": "Options for an individual tab within Tabs"
|
|
743
|
+
},
|
|
744
|
+
"YamlTabsOptions": {
|
|
745
|
+
"type": "object",
|
|
746
|
+
"properties": {
|
|
747
|
+
"options": {
|
|
748
|
+
"$ref": "#/definitions/Record%3Cstring%2Cany%3E",
|
|
749
|
+
"description": "Options spread onto the underlying Panel"
|
|
750
|
+
},
|
|
751
|
+
"title": {
|
|
752
|
+
"type": "string",
|
|
753
|
+
"description": "Tabs panel title"
|
|
754
|
+
},
|
|
755
|
+
"style": {
|
|
756
|
+
"$ref": "#/definitions/Record%3Cstring%2Cany%3E",
|
|
757
|
+
"description": "Inline CSS styles applied to the underlying Panel"
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
"required": [
|
|
761
|
+
"title"
|
|
762
|
+
],
|
|
763
|
+
"additionalProperties": false
|
|
764
|
+
},
|
|
765
|
+
"YamlLabelOptions": {
|
|
766
|
+
"type": "object",
|
|
767
|
+
"properties": {
|
|
768
|
+
"label": {
|
|
769
|
+
"type": "string",
|
|
770
|
+
"description": "Text to display"
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
"required": [
|
|
774
|
+
"label"
|
|
775
|
+
],
|
|
776
|
+
"additionalProperties": false
|
|
777
|
+
},
|
|
778
|
+
"YamlTodoOptions": {
|
|
779
|
+
"type": "object",
|
|
780
|
+
"properties": {
|
|
781
|
+
"message": {
|
|
782
|
+
"type": "string",
|
|
783
|
+
"description": "Message to display, defaults to \"TODO\""
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
"additionalProperties": false
|
|
787
|
+
},
|
|
788
|
+
"MonitorHardwareOptions": {
|
|
789
|
+
"type": "object",
|
|
790
|
+
"properties": {
|
|
791
|
+
"id": {
|
|
792
|
+
"type": "string",
|
|
793
|
+
"description": "The hardware id to render"
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
"additionalProperties": false
|
|
797
|
+
},
|
|
798
|
+
"MonitorHardwarePropertyOptions": {
|
|
799
|
+
"type": "object",
|
|
800
|
+
"properties": {
|
|
801
|
+
"value": {
|
|
802
|
+
"type": "string",
|
|
803
|
+
"description": "The value to display, a path, for example `omega.position`"
|
|
804
|
+
},
|
|
805
|
+
"overlay": {
|
|
806
|
+
"type": "string",
|
|
807
|
+
"description": "An optional second value shown in a tooltip on hover. Again a path."
|
|
808
|
+
},
|
|
809
|
+
"comparator": {
|
|
810
|
+
"type": "string",
|
|
811
|
+
"description": "One of `COMPARATORS`, green if the comparison holds, red otherwise, grey if either `comparator` or `comparison` is unset."
|
|
812
|
+
},
|
|
813
|
+
"comparison": {
|
|
814
|
+
"description": "The value `comparator` compares the live `value` against.schema"
|
|
815
|
+
},
|
|
816
|
+
"unit": {
|
|
817
|
+
"type": "string",
|
|
818
|
+
"description": "A fixed unit string (e.g. `mA`)"
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
"required": [
|
|
822
|
+
"value"
|
|
823
|
+
],
|
|
824
|
+
"additionalProperties": false
|
|
825
|
+
},
|
|
826
|
+
"Monitor": {
|
|
827
|
+
"type": "object",
|
|
828
|
+
"properties": {
|
|
829
|
+
"name": {
|
|
830
|
+
"type": "string",
|
|
831
|
+
"description": "Title shown above the value."
|
|
832
|
+
},
|
|
833
|
+
"type": {
|
|
834
|
+
"type": "string",
|
|
835
|
+
"description": "Describe the kind of widget.\n\nNOTE: New components can be registered with `registerMonitorComponent`"
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
"required": [
|
|
839
|
+
"name"
|
|
840
|
+
],
|
|
841
|
+
"additionalProperties": false
|
|
842
|
+
},
|
|
843
|
+
"MonitorPanelProps": {
|
|
844
|
+
"type": "object",
|
|
845
|
+
"properties": {
|
|
846
|
+
"monitors": {
|
|
847
|
+
"type": "array",
|
|
848
|
+
"items": {
|
|
849
|
+
"$ref": "#/definitions/Monitor"
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
"margin": {
|
|
853
|
+
"type": [
|
|
854
|
+
"string",
|
|
855
|
+
"null"
|
|
856
|
+
],
|
|
857
|
+
"enum": [
|
|
858
|
+
"start",
|
|
859
|
+
null
|
|
860
|
+
]
|
|
861
|
+
},
|
|
862
|
+
"bg": {
|
|
863
|
+
"type": [
|
|
864
|
+
"string",
|
|
865
|
+
"null"
|
|
866
|
+
],
|
|
867
|
+
"enum": [
|
|
868
|
+
"light",
|
|
869
|
+
null
|
|
870
|
+
]
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
"required": [
|
|
874
|
+
"monitors"
|
|
875
|
+
],
|
|
876
|
+
"additionalProperties": false
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
"typeMap": {
|
|
880
|
+
"row": "YamlRowOptions",
|
|
881
|
+
"col": "YamlColOptions",
|
|
882
|
+
"container": "YamlContainerOptions",
|
|
883
|
+
"panel": "YamlPanelOptions",
|
|
884
|
+
"tabs": "YamlTabsOptions",
|
|
885
|
+
"form": "YamlFormOptions",
|
|
886
|
+
"formheader": "YamlFormHeaderOptions",
|
|
887
|
+
"grid": "YamlGridOptions",
|
|
888
|
+
"todo": "YamlTodoOptions",
|
|
889
|
+
"label": "YamlLabelOptions"
|
|
890
|
+
},
|
|
891
|
+
"nestedOptions": {
|
|
892
|
+
"tabs": [
|
|
893
|
+
"YamlTabsRowOptions"
|
|
894
|
+
],
|
|
895
|
+
"form": [
|
|
896
|
+
"YamlFormRowOptions"
|
|
897
|
+
],
|
|
898
|
+
"grid": [
|
|
899
|
+
"YamlGridCellOptions"
|
|
900
|
+
]
|
|
901
|
+
},
|
|
902
|
+
"monitorTypeMap": {
|
|
903
|
+
"hardwareproperty": "MonitorHardwarePropertyOptions",
|
|
904
|
+
"hardware": "MonitorHardwareOptions"
|
|
905
|
+
}
|
|
906
|
+
}
|