@esrf/daiquiri-lib 2.0.0 → 2.2.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/dist/index.d.ts +270 -49
- package/dist/index.js +9 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3840 -2555
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
- package/src/scss/_hardware.scss +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ComponentType,
|
|
3
|
+
import React__default, { ComponentType, ReactElement, PropsWithChildren, ReactChild, ChangeEvent, KeyboardEvent, Component } from 'react';
|
|
4
|
+
import { YamlComponent as YamlComponent$2 } from '@esrf/daiquiri-lib';
|
|
4
5
|
|
|
5
6
|
interface HardwareError {
|
|
6
7
|
property: string;
|
|
@@ -121,9 +122,9 @@ declare namespace schema_d {
|
|
|
121
122
|
export type { schema_d_AnySchema as AnySchema, schema_d_GenericSchema as GenericSchema };
|
|
122
123
|
}
|
|
123
124
|
|
|
124
|
-
declare const Variants$
|
|
125
|
+
declare const Variants$q: HardwareVariant<AnySchema>;
|
|
125
126
|
|
|
126
|
-
declare const Mocks$
|
|
127
|
+
declare const Mocks$m: {
|
|
127
128
|
default: {
|
|
128
129
|
response: {
|
|
129
130
|
callables: never[];
|
|
@@ -248,16 +249,6 @@ interface BaseInfoWidgetOptions extends HardwareWidgetOptions {
|
|
|
248
249
|
}
|
|
249
250
|
declare function Info(props: HardwareWidgetProps<AnySchema, BaseInfoWidgetOptions>): JSX.Element;
|
|
250
251
|
|
|
251
|
-
interface Props$e {
|
|
252
|
-
showActions: boolean;
|
|
253
|
-
children: ReactChild | ReactChild[];
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* Wrap hardware widget passed as children with addToast and hardware
|
|
257
|
-
* change actions triggering console log.
|
|
258
|
-
*/
|
|
259
|
-
declare function Wrapper(props: Props$e): JSX.Element;
|
|
260
|
-
|
|
261
252
|
/**
|
|
262
253
|
* Hardware as exposed by Redux
|
|
263
254
|
*/
|
|
@@ -275,7 +266,7 @@ interface AirBearingSchema extends Hardware {
|
|
|
275
266
|
state: string;
|
|
276
267
|
};
|
|
277
268
|
}
|
|
278
|
-
declare const Variants$
|
|
269
|
+
declare const Variants$p: HardwareVariant<AirBearingSchema>;
|
|
279
270
|
|
|
280
271
|
declare function AirBearing(props: HardwareWidgetProps<AirBearingSchema, HardwareWidgetOptions>): JSX.Element;
|
|
281
272
|
|
|
@@ -285,7 +276,7 @@ declare function AirBearingState(props: {
|
|
|
285
276
|
hardware: AirBearingSchema;
|
|
286
277
|
}): JSX.Element;
|
|
287
278
|
|
|
288
|
-
declare const Mocks$
|
|
279
|
+
declare const Mocks$l: {
|
|
289
280
|
default: {
|
|
290
281
|
callables: string[];
|
|
291
282
|
id: string;
|
|
@@ -300,6 +291,19 @@ declare const Mocks$j: {
|
|
|
300
291
|
};
|
|
301
292
|
};
|
|
302
293
|
|
|
294
|
+
declare type PropsWithSimulator<P = Record<string, never>> = P & {
|
|
295
|
+
name: string;
|
|
296
|
+
alias?: string;
|
|
297
|
+
useHardwareContext?: () => {
|
|
298
|
+
actions: {
|
|
299
|
+
updateHardware: (name: string, hardware: Hardware) => void;
|
|
300
|
+
updateHardwareChangeActions: (name: string, actions: HardwareChangeActions) => void;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
declare function AirBearingSimulator(props: PropsWithSimulator): JSX.Element;
|
|
306
|
+
|
|
303
307
|
interface FrontendSchema extends Hardware {
|
|
304
308
|
properties: {
|
|
305
309
|
state: string;
|
|
@@ -315,11 +319,11 @@ interface FrontendSchema extends Hardware {
|
|
|
315
319
|
expitlk: string;
|
|
316
320
|
};
|
|
317
321
|
}
|
|
318
|
-
declare const Variants$
|
|
322
|
+
declare const Variants$o: HardwareVariant<FrontendSchema>;
|
|
319
323
|
|
|
320
324
|
declare function Frontend(props: HardwareWidgetProps<FrontendSchema>): JSX.Element;
|
|
321
325
|
|
|
322
|
-
declare const Mocks$
|
|
326
|
+
declare const Mocks$k: {
|
|
323
327
|
default: {
|
|
324
328
|
callables: string[];
|
|
325
329
|
id: string;
|
|
@@ -354,7 +358,7 @@ interface GaugeSchema extends Hardware {
|
|
|
354
358
|
unit?: string;
|
|
355
359
|
};
|
|
356
360
|
}
|
|
357
|
-
declare const Variants$
|
|
361
|
+
declare const Variants$n: HardwareVariant<GaugeSchema>;
|
|
358
362
|
|
|
359
363
|
interface GaugeWidgetOptions extends HardwareWidgetOptions {
|
|
360
364
|
/** Unit of pressure */
|
|
@@ -364,7 +368,7 @@ interface GaugeWidgetOptions extends HardwareWidgetOptions {
|
|
|
364
368
|
}
|
|
365
369
|
declare function Gauge(props: HardwareWidgetProps<GaugeSchema, GaugeWidgetOptions>): JSX.Element;
|
|
366
370
|
|
|
367
|
-
declare const Mocks$
|
|
371
|
+
declare const Mocks$j: {
|
|
368
372
|
default: {
|
|
369
373
|
callables: string[];
|
|
370
374
|
id: string;
|
|
@@ -404,7 +408,7 @@ interface LaserSchema extends Hardware {
|
|
|
404
408
|
power: number;
|
|
405
409
|
};
|
|
406
410
|
}
|
|
407
|
-
declare const Variants$
|
|
411
|
+
declare const Variants$m: HardwareVariant<LaserSchema>;
|
|
408
412
|
|
|
409
413
|
interface LaserWidgetOptions extends HardwareWidgetOptions {
|
|
410
414
|
/** Default step size to use for up / down arrows */
|
|
@@ -414,7 +418,7 @@ interface LaserWidgetOptions extends HardwareWidgetOptions {
|
|
|
414
418
|
}
|
|
415
419
|
declare function Laser(props: HardwareWidgetProps<LaserSchema, LaserWidgetOptions>): JSX.Element;
|
|
416
420
|
|
|
417
|
-
declare const Mocks$
|
|
421
|
+
declare const Mocks$i: {
|
|
418
422
|
default: {
|
|
419
423
|
callables: never[];
|
|
420
424
|
id: string;
|
|
@@ -442,7 +446,7 @@ interface LaserHeatingSchema extends Hardware {
|
|
|
442
446
|
current_calibration: string;
|
|
443
447
|
};
|
|
444
448
|
}
|
|
445
|
-
declare const Variants$
|
|
449
|
+
declare const Variants$l: HardwareVariant<LaserHeatingSchema>;
|
|
446
450
|
|
|
447
451
|
interface LaserHeatingWidgetOptions extends HardwareWidgetOptions {
|
|
448
452
|
/** Default step size to use for up / down arrows */
|
|
@@ -452,7 +456,7 @@ interface LaserHeatingWidgetOptions extends HardwareWidgetOptions {
|
|
|
452
456
|
}
|
|
453
457
|
declare function LaserHeating(props: HardwareWidgetProps<LaserHeatingSchema, LaserHeatingWidgetOptions>): JSX.Element;
|
|
454
458
|
|
|
455
|
-
declare const Mocks$
|
|
459
|
+
declare const Mocks$h: {
|
|
456
460
|
default: {
|
|
457
461
|
callables: never[];
|
|
458
462
|
id: string;
|
|
@@ -481,11 +485,11 @@ interface LightSchema extends Hardware {
|
|
|
481
485
|
intensity: number;
|
|
482
486
|
};
|
|
483
487
|
}
|
|
484
|
-
declare const Variants$
|
|
488
|
+
declare const Variants$k: HardwareVariant<LightSchema>;
|
|
485
489
|
|
|
486
490
|
declare function Light(props: HardwareWidgetProps<LightSchema>): JSX.Element;
|
|
487
491
|
|
|
488
|
-
declare const Mocks$
|
|
492
|
+
declare const Mocks$g: {
|
|
489
493
|
default: {
|
|
490
494
|
callables: never[];
|
|
491
495
|
id: string;
|
|
@@ -566,7 +570,7 @@ declare function useLimaHardware(name: string | null): LimaSchema | null;
|
|
|
566
570
|
* Compute the nb sub frames which will be used for a specific exposure time
|
|
567
571
|
*/
|
|
568
572
|
declare function limaGuessSubframes(exposureTime: number, accMaxExpoTime: number): [number, number];
|
|
569
|
-
declare const Variants$
|
|
573
|
+
declare const Variants$j: HardwareVariant<LimaSchema>;
|
|
570
574
|
|
|
571
575
|
declare function LimaBinning(props: HardwareWidgetProps<LimaSchema, HardwareWidgetOptions>): JSX.Element;
|
|
572
576
|
|
|
@@ -584,7 +588,7 @@ declare function LimaState(props: {
|
|
|
584
588
|
hardware: LimaSchema;
|
|
585
589
|
}): JSX.Element;
|
|
586
590
|
|
|
587
|
-
declare const Mocks$
|
|
591
|
+
declare const Mocks$f: {
|
|
588
592
|
default: {
|
|
589
593
|
id: string;
|
|
590
594
|
name: string;
|
|
@@ -671,6 +675,8 @@ declare const Mocks$d: {
|
|
|
671
675
|
};
|
|
672
676
|
};
|
|
673
677
|
|
|
678
|
+
declare function LimaSimulator(props: PropsWithSimulator): JSX.Element;
|
|
679
|
+
|
|
674
680
|
/**
|
|
675
681
|
* Hardware as exposed by Redux
|
|
676
682
|
*/
|
|
@@ -685,11 +691,37 @@ interface MeasurementGroupSchema extends Hardware {
|
|
|
685
691
|
disabled: string[];
|
|
686
692
|
};
|
|
687
693
|
}
|
|
694
|
+
declare const Variants$i: HardwareVariant<MeasurementGroupSchema>;
|
|
695
|
+
|
|
696
|
+
declare function MeasurementGroup(props: HardwareWidgetProps<MeasurementGroupSchema>): JSX.Element;
|
|
697
|
+
|
|
698
|
+
declare const Mocks$e: {
|
|
699
|
+
default: {
|
|
700
|
+
callables: never[];
|
|
701
|
+
id: string;
|
|
702
|
+
name: string;
|
|
703
|
+
online: boolean;
|
|
704
|
+
properties: {
|
|
705
|
+
available: string[];
|
|
706
|
+
disabled: string[];
|
|
707
|
+
};
|
|
708
|
+
protocol: string;
|
|
709
|
+
require_staff: boolean;
|
|
710
|
+
type: string;
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
declare function MeasurementGroupSimulator(props: PropsWithSimulator): JSX.Element;
|
|
688
715
|
|
|
689
716
|
interface MotorSchema extends Hardware {
|
|
690
717
|
properties: {
|
|
691
718
|
position: number | null;
|
|
692
|
-
|
|
719
|
+
/**
|
|
720
|
+
* Target of the actual motion.
|
|
721
|
+
*
|
|
722
|
+
* If there is no motion, it is `null`.
|
|
723
|
+
*/
|
|
724
|
+
target: number | null;
|
|
693
725
|
tolerance: number;
|
|
694
726
|
acceleration: number;
|
|
695
727
|
velocity: number;
|
|
@@ -743,7 +775,7 @@ declare function isMotorHardware(entity: Hardware): entity is MotorSchema;
|
|
|
743
775
|
* @param name: An hardware identifier
|
|
744
776
|
*/
|
|
745
777
|
declare function useMotorHardware(name: string | null): MotorSchema | null;
|
|
746
|
-
declare const Variants$
|
|
778
|
+
declare const Variants$h: HardwareVariant<MotorSchema>;
|
|
747
779
|
|
|
748
780
|
interface MotorDefaultOptions extends HardwareWidgetOptions {
|
|
749
781
|
/** Default step size to use for up / down arrows */
|
|
@@ -795,7 +827,7 @@ declare function MotorState(props: {
|
|
|
795
827
|
hardware: MotorSchema;
|
|
796
828
|
}): JSX.Element;
|
|
797
829
|
|
|
798
|
-
declare const Mocks$
|
|
830
|
+
declare const Mocks$d: {
|
|
799
831
|
default: {
|
|
800
832
|
callables: string[];
|
|
801
833
|
id: string;
|
|
@@ -930,14 +962,20 @@ declare function createMotorMock(name: string, position: number): {
|
|
|
930
962
|
online: boolean;
|
|
931
963
|
};
|
|
932
964
|
|
|
933
|
-
interface Props$
|
|
965
|
+
interface Props$e {
|
|
966
|
+
name?: string;
|
|
934
967
|
minLimit?: number;
|
|
935
968
|
maxLimit?: number;
|
|
936
969
|
initialPosition?: number;
|
|
937
970
|
initialVelocity?: number;
|
|
938
|
-
|
|
971
|
+
useHardwareContext?: () => {
|
|
972
|
+
actions: {
|
|
973
|
+
updateHardware: (name: string, hardware: Hardware) => void;
|
|
974
|
+
updateHardwareChangeActions: (name: string, actions: HardwareChangeActions) => void;
|
|
975
|
+
};
|
|
976
|
+
};
|
|
939
977
|
}
|
|
940
|
-
declare function
|
|
978
|
+
declare function MotorSimulator(props: Props$e): JSX.Element;
|
|
941
979
|
|
|
942
980
|
interface MultipositionSchema extends Hardware {
|
|
943
981
|
properties: {
|
|
@@ -954,11 +992,11 @@ interface MultipositionSchema extends Hardware {
|
|
|
954
992
|
state: string;
|
|
955
993
|
};
|
|
956
994
|
}
|
|
957
|
-
declare const Variants$
|
|
995
|
+
declare const Variants$g: HardwareVariant<MultipositionSchema>;
|
|
958
996
|
|
|
959
997
|
declare function Multiposition(props: HardwareWidgetProps<MultipositionSchema>): JSX.Element;
|
|
960
998
|
|
|
961
|
-
declare const Mocks$
|
|
999
|
+
declare const Mocks$c: {
|
|
962
1000
|
default: {
|
|
963
1001
|
callables: string[];
|
|
964
1002
|
id: string;
|
|
@@ -982,6 +1020,8 @@ declare const Mocks$b: {
|
|
|
982
1020
|
};
|
|
983
1021
|
};
|
|
984
1022
|
|
|
1023
|
+
declare function MultipositionSimulator(props: PropsWithSimulator): JSX.Element;
|
|
1024
|
+
|
|
985
1025
|
/**
|
|
986
1026
|
* Hardware as exposed by Redux
|
|
987
1027
|
*/
|
|
@@ -989,13 +1029,18 @@ interface OpticSchema extends Hardware {
|
|
|
989
1029
|
properties: {
|
|
990
1030
|
state: string;
|
|
991
1031
|
magnification: number;
|
|
992
|
-
available_magnifications: number[];
|
|
993
|
-
|
|
1032
|
+
available_magnifications: number[] | null;
|
|
1033
|
+
/**
|
|
1034
|
+
* Target of the actual motion.
|
|
1035
|
+
*
|
|
1036
|
+
* If there is no motion, it is `null `.
|
|
1037
|
+
*/
|
|
1038
|
+
target_magnification: number | null;
|
|
994
1039
|
magnification_range: [number, number] | null;
|
|
995
1040
|
};
|
|
996
1041
|
}
|
|
997
1042
|
declare function isOpticHardware(entity: Hardware): entity is OpticSchema;
|
|
998
|
-
declare const Variants$
|
|
1043
|
+
declare const Variants$f: HardwareVariant<OpticSchema>;
|
|
999
1044
|
|
|
1000
1045
|
interface OpticWidgetOptions extends HardwareWidgetOptions {
|
|
1001
1046
|
readonly?: boolean;
|
|
@@ -1008,7 +1053,7 @@ declare function OpticState(props: {
|
|
|
1008
1053
|
hardware: OpticSchema;
|
|
1009
1054
|
}): JSX.Element;
|
|
1010
1055
|
|
|
1011
|
-
declare const Mocks$
|
|
1056
|
+
declare const Mocks$b: {
|
|
1012
1057
|
default: {
|
|
1013
1058
|
callables: string[];
|
|
1014
1059
|
id: string;
|
|
@@ -1016,7 +1061,6 @@ declare const Mocks$a: {
|
|
|
1016
1061
|
online: boolean;
|
|
1017
1062
|
properties: {
|
|
1018
1063
|
state: string;
|
|
1019
|
-
status: string;
|
|
1020
1064
|
magnification: number;
|
|
1021
1065
|
target_magnification: null;
|
|
1022
1066
|
available_magnifications: number[];
|
|
@@ -1033,7 +1077,6 @@ declare const Mocks$a: {
|
|
|
1033
1077
|
online: boolean;
|
|
1034
1078
|
properties: {
|
|
1035
1079
|
state: string;
|
|
1036
|
-
status: string;
|
|
1037
1080
|
magnification: number;
|
|
1038
1081
|
target_magnification: null;
|
|
1039
1082
|
available_magnifications: number[];
|
|
@@ -1050,7 +1093,6 @@ declare const Mocks$a: {
|
|
|
1050
1093
|
online: boolean;
|
|
1051
1094
|
properties: {
|
|
1052
1095
|
state: string;
|
|
1053
|
-
status: string;
|
|
1054
1096
|
magnification: number;
|
|
1055
1097
|
target_magnification: null;
|
|
1056
1098
|
available_magnifications: number[];
|
|
@@ -1067,7 +1109,6 @@ declare const Mocks$a: {
|
|
|
1067
1109
|
online: boolean;
|
|
1068
1110
|
properties: {
|
|
1069
1111
|
state: string;
|
|
1070
|
-
status: string;
|
|
1071
1112
|
magnification: number;
|
|
1072
1113
|
target_magnification: null;
|
|
1073
1114
|
available_magnifications: number[];
|
|
@@ -1079,6 +1120,11 @@ declare const Mocks$a: {
|
|
|
1079
1120
|
};
|
|
1080
1121
|
};
|
|
1081
1122
|
|
|
1123
|
+
interface Props$d {
|
|
1124
|
+
kind: 'fixed' | 'range' | 'multi';
|
|
1125
|
+
}
|
|
1126
|
+
declare function OpticSimulator(props: PropsWithSimulator<Props$d>): JSX.Element;
|
|
1127
|
+
|
|
1082
1128
|
interface ProcedureSchema extends Hardware {
|
|
1083
1129
|
properties: {
|
|
1084
1130
|
state: string;
|
|
@@ -1087,7 +1133,7 @@ interface ProcedureSchema extends Hardware {
|
|
|
1087
1133
|
parameters: Record<string, any>;
|
|
1088
1134
|
};
|
|
1089
1135
|
}
|
|
1090
|
-
declare const Variants$
|
|
1136
|
+
declare const Variants$e: HardwareVariant<ProcedureSchema>;
|
|
1091
1137
|
|
|
1092
1138
|
interface HardwareFromProcedure {
|
|
1093
1139
|
__type__: 'hardware';
|
|
@@ -1116,7 +1162,7 @@ declare function ProcedureState(props: {
|
|
|
1116
1162
|
hardware: ProcedureSchema;
|
|
1117
1163
|
}): JSX.Element;
|
|
1118
1164
|
|
|
1119
|
-
declare const Mocks$
|
|
1165
|
+
declare const Mocks$a: {
|
|
1120
1166
|
standby: {
|
|
1121
1167
|
callables: string[];
|
|
1122
1168
|
type: string;
|
|
@@ -1182,7 +1228,7 @@ interface ShutterSchema extends Hardware {
|
|
|
1182
1228
|
closed_text: string;
|
|
1183
1229
|
};
|
|
1184
1230
|
}
|
|
1185
|
-
declare const Variants$
|
|
1231
|
+
declare const Variants$d: HardwareVariant<ShutterSchema>;
|
|
1186
1232
|
|
|
1187
1233
|
declare function ShutterDefault(props: HardwareWidgetProps<ShutterSchema, HardwareWidgetOptions>): JSX.Element;
|
|
1188
1234
|
|
|
@@ -1193,7 +1239,7 @@ declare function ShutterState(props: {
|
|
|
1193
1239
|
useReadyState?: boolean;
|
|
1194
1240
|
}): JSX.Element;
|
|
1195
1241
|
|
|
1196
|
-
declare const Mocks$
|
|
1242
|
+
declare const Mocks$9: {
|
|
1197
1243
|
default: {
|
|
1198
1244
|
callables: string[];
|
|
1199
1245
|
id: string;
|
|
@@ -1212,6 +1258,74 @@ declare const Mocks$8: {
|
|
|
1212
1258
|
};
|
|
1213
1259
|
};
|
|
1214
1260
|
|
|
1261
|
+
declare function ShutterSimulator(props: PropsWithSimulator): JSX.Element;
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* Hardware as exposed by Redux
|
|
1265
|
+
*/
|
|
1266
|
+
interface SlitSchema extends Hardware {
|
|
1267
|
+
properties: {
|
|
1268
|
+
state: string;
|
|
1269
|
+
type: 'vertical' | 'horizontal' | 'both';
|
|
1270
|
+
hgap: string;
|
|
1271
|
+
vgap: string;
|
|
1272
|
+
hoffset: string;
|
|
1273
|
+
voffset: string;
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1276
|
+
interface SlitDefaultOptions extends HardwareWidgetOptions {
|
|
1277
|
+
/** Number of decimals to show */
|
|
1278
|
+
precision?: number;
|
|
1279
|
+
/** Setup the widget to be read only */
|
|
1280
|
+
readonly?: boolean;
|
|
1281
|
+
}
|
|
1282
|
+
declare const Variants$c: HardwareVariant<SlitSchema>;
|
|
1283
|
+
|
|
1284
|
+
declare function SlitDefault(props: HardwareWidgetProps<SlitSchema, SlitDefaultOptions>): JSX.Element;
|
|
1285
|
+
|
|
1286
|
+
declare function SlitState(props: {
|
|
1287
|
+
hardware: SlitSchema;
|
|
1288
|
+
}): JSX.Element;
|
|
1289
|
+
|
|
1290
|
+
declare const Mocks$8: {
|
|
1291
|
+
default: {
|
|
1292
|
+
id: string;
|
|
1293
|
+
name: string;
|
|
1294
|
+
online: boolean;
|
|
1295
|
+
properties: {
|
|
1296
|
+
vgap: string;
|
|
1297
|
+
voffset: string;
|
|
1298
|
+
hgap: string;
|
|
1299
|
+
hoffset: string;
|
|
1300
|
+
};
|
|
1301
|
+
type: string;
|
|
1302
|
+
};
|
|
1303
|
+
horizontal: {
|
|
1304
|
+
id: string;
|
|
1305
|
+
name: string;
|
|
1306
|
+
online: boolean;
|
|
1307
|
+
properties: {
|
|
1308
|
+
vgap: string;
|
|
1309
|
+
voffset: string;
|
|
1310
|
+
hgap: string;
|
|
1311
|
+
hoffset: string;
|
|
1312
|
+
};
|
|
1313
|
+
type: string;
|
|
1314
|
+
};
|
|
1315
|
+
vertical: {
|
|
1316
|
+
id: string;
|
|
1317
|
+
name: string;
|
|
1318
|
+
online: boolean;
|
|
1319
|
+
properties: {
|
|
1320
|
+
vgap: string;
|
|
1321
|
+
voffset: string;
|
|
1322
|
+
hgap: string;
|
|
1323
|
+
hoffset: string;
|
|
1324
|
+
};
|
|
1325
|
+
type: string;
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1328
|
+
|
|
1215
1329
|
/**
|
|
1216
1330
|
* Hardware as exposed by Redux
|
|
1217
1331
|
*/
|
|
@@ -1283,6 +1397,8 @@ declare const Mocks$6: {
|
|
|
1283
1397
|
};
|
|
1284
1398
|
};
|
|
1285
1399
|
|
|
1400
|
+
declare function PusherSimulator(props: PropsWithSimulator): JSX.Element;
|
|
1401
|
+
|
|
1286
1402
|
/**
|
|
1287
1403
|
* Hardware as exposed by Redux
|
|
1288
1404
|
*/
|
|
@@ -1364,7 +1480,7 @@ declare const Mocks$4: {
|
|
|
1364
1480
|
move_in_parallel: boolean;
|
|
1365
1481
|
available_axes: string[];
|
|
1366
1482
|
motion: {
|
|
1367
|
-
|
|
1483
|
+
axisRef: string;
|
|
1368
1484
|
absolute_position: null;
|
|
1369
1485
|
relative_position: number;
|
|
1370
1486
|
}[];
|
|
@@ -1373,8 +1489,54 @@ declare const Mocks$4: {
|
|
|
1373
1489
|
require_staff: boolean;
|
|
1374
1490
|
type: string;
|
|
1375
1491
|
};
|
|
1492
|
+
sy: {
|
|
1493
|
+
callables: string[];
|
|
1494
|
+
id: string;
|
|
1495
|
+
name: string;
|
|
1496
|
+
online: boolean;
|
|
1497
|
+
properties: {
|
|
1498
|
+
offset: number;
|
|
1499
|
+
sign: number;
|
|
1500
|
+
acceleration: number;
|
|
1501
|
+
limits: number[];
|
|
1502
|
+
position: number;
|
|
1503
|
+
state: string[];
|
|
1504
|
+
tolerance: number;
|
|
1505
|
+
unit: string;
|
|
1506
|
+
velocity: number;
|
|
1507
|
+
display_digits: number;
|
|
1508
|
+
};
|
|
1509
|
+
protocol: string;
|
|
1510
|
+
require_staff: boolean;
|
|
1511
|
+
type: string;
|
|
1512
|
+
user_tags: never[];
|
|
1513
|
+
};
|
|
1514
|
+
sy2: {
|
|
1515
|
+
callables: string[];
|
|
1516
|
+
id: string;
|
|
1517
|
+
name: string;
|
|
1518
|
+
online: boolean;
|
|
1519
|
+
properties: {
|
|
1520
|
+
offset: number;
|
|
1521
|
+
sign: number;
|
|
1522
|
+
acceleration: number;
|
|
1523
|
+
limits: number[];
|
|
1524
|
+
position: number;
|
|
1525
|
+
state: string[];
|
|
1526
|
+
tolerance: number;
|
|
1527
|
+
unit: string;
|
|
1528
|
+
velocity: number;
|
|
1529
|
+
display_digits: number;
|
|
1530
|
+
};
|
|
1531
|
+
protocol: string;
|
|
1532
|
+
require_staff: boolean;
|
|
1533
|
+
type: string;
|
|
1534
|
+
user_tags: never[];
|
|
1535
|
+
};
|
|
1376
1536
|
};
|
|
1377
1537
|
|
|
1538
|
+
declare function TomoFlatMotionSimulator(props: PropsWithSimulator): JSX.Element;
|
|
1539
|
+
|
|
1378
1540
|
/**
|
|
1379
1541
|
* Hardware as exposed by Redux
|
|
1380
1542
|
*/
|
|
@@ -1517,6 +1679,8 @@ declare const Mocks$1: {
|
|
|
1517
1679
|
};
|
|
1518
1680
|
};
|
|
1519
1681
|
|
|
1682
|
+
declare function TomoImagingSimulator(props: PropsWithSimulator): JSX.Element;
|
|
1683
|
+
|
|
1520
1684
|
/**
|
|
1521
1685
|
* Hardware as exposed by Redux
|
|
1522
1686
|
*/
|
|
@@ -1750,6 +1914,59 @@ declare namespace formatting_d {
|
|
|
1750
1914
|
export { formatting_d_formatEng as formatEng, formatting_d_round as round, formatting_d_toEnergy as toEnergy, formatting_d_toHoursMins as toHoursMins, formatting_d_ucfirst as ucfirst };
|
|
1751
1915
|
}
|
|
1752
1916
|
|
|
1917
|
+
interface NoObjectProps$5 {
|
|
1918
|
+
id: string;
|
|
1919
|
+
name?: string;
|
|
1920
|
+
options: {
|
|
1921
|
+
header?: string;
|
|
1922
|
+
emptyifnone?: boolean;
|
|
1923
|
+
};
|
|
1924
|
+
}
|
|
1925
|
+
declare function NoObject$1(props: NoObjectProps$5): JSX.Element;
|
|
1926
|
+
|
|
1927
|
+
interface NoObjectProps$4 {
|
|
1928
|
+
id: string;
|
|
1929
|
+
name?: string;
|
|
1930
|
+
options: {
|
|
1931
|
+
header?: string;
|
|
1932
|
+
};
|
|
1933
|
+
}
|
|
1934
|
+
declare function LoadingObject(props: NoObjectProps$4): JSX.Element;
|
|
1935
|
+
|
|
1936
|
+
interface NoObjectProps$3 {
|
|
1937
|
+
id: string;
|
|
1938
|
+
name?: string;
|
|
1939
|
+
options: {
|
|
1940
|
+
header?: string;
|
|
1941
|
+
emptyifnone?: boolean;
|
|
1942
|
+
};
|
|
1943
|
+
}
|
|
1944
|
+
declare function MissingObject(props: NoObjectProps$3): JSX.Element;
|
|
1945
|
+
|
|
1946
|
+
interface NoObjectProps$2 {
|
|
1947
|
+
id: string;
|
|
1948
|
+
name?: string;
|
|
1949
|
+
properties?: {
|
|
1950
|
+
message?: string;
|
|
1951
|
+
};
|
|
1952
|
+
options: {
|
|
1953
|
+
header?: string;
|
|
1954
|
+
};
|
|
1955
|
+
}
|
|
1956
|
+
declare function ErrorObject(props: NoObjectProps$2): JSX.Element;
|
|
1957
|
+
|
|
1958
|
+
interface NoObjectProps$1 {
|
|
1959
|
+
id: string;
|
|
1960
|
+
name?: string;
|
|
1961
|
+
type?: string;
|
|
1962
|
+
options: {
|
|
1963
|
+
variant?: string;
|
|
1964
|
+
header?: string;
|
|
1965
|
+
emptyifnone?: boolean;
|
|
1966
|
+
};
|
|
1967
|
+
}
|
|
1968
|
+
declare function MissingComponentObject(props: NoObjectProps$1): JSX.Element;
|
|
1969
|
+
|
|
1753
1970
|
interface NoObjectProps {
|
|
1754
1971
|
id: string;
|
|
1755
1972
|
name?: string;
|
|
@@ -1810,6 +2027,10 @@ declare namespace Panel {
|
|
|
1810
2027
|
var Contents: typeof PanelContents;
|
|
1811
2028
|
}
|
|
1812
2029
|
|
|
2030
|
+
declare function Yaml$1(props: YamlComponent$2): JSX.Element;
|
|
2031
|
+
|
|
2032
|
+
declare function Yaml(props: YamlComponent$2): JSX.Element;
|
|
2033
|
+
|
|
1813
2034
|
interface YamlNode {
|
|
1814
2035
|
type: string;
|
|
1815
2036
|
children?: YamlNode[];
|
|
@@ -2096,4 +2317,4 @@ interface MonitorPanelItemProps {
|
|
|
2096
2317
|
}
|
|
2097
2318
|
declare function MonitorPanelItem(props: PropsWithChildren<MonitorPanelItemProps>): JSX.Element;
|
|
2098
2319
|
|
|
2099
|
-
export { type ActuatorSchema, AirBearing, Mocks$
|
|
2320
|
+
export { type ActuatorSchema, AirBearing, Mocks$l as AirBearingMocks, AirBearingProtected, type AirBearingSchema, AirBearingSimulator, AirBearingState, Variants$p as AirBearingVariants, type AnySchema, Info as BaseInfo, type BaseInfoWidgetOptions, Mocks$m as BaseMocks, Name as BaseName, type BaseNameWidgetOptions, Property as BaseProperty, type BasePropertyWidgetOptions, DefaultState as BaseState, Variants$q as BaseVariants, ErrorObject, type ExceptionFromProcedure, formatting_d as Formatting, Frontend, Mocks$k as FrontendMocks, type FrontendSchema, Variants$o as FrontendVariants, FullSizer, Gauge, Mocks$j as GaugeMocks, type GaugeSchema, Variants$n as GaugeVariants, type GaugeWidgetOptions, type GenericSchema, HardwareObject_d as HWObject, type Hardware, type HardwareComponentType, type HardwareFromProcedure, HardwareInputNumber, HardwareNumericStep, schema_d as HardwareSchema, State_d as HardwareState, HardwareTemplate, types_d as HardwareTypes, type HardwareVariant, KeyError, Laser, LaserHeating, Mocks$h as LaserHeatingMocks, type LaserHeatingSchema, Variants$l as LaserHeatingVariants, type LaserHeatingWidgetOptions, Mocks$i as LaserMocks, type LaserSchema, Variants$m as LaserVariants, type LaserWidgetOptions, Light, Mocks$g as LightMocks, type LightSchema, Variants$k as LightVariants, LimaBinning, LimaDefault, TomoDetectorSize$3 as LimaDescription, TomoDetectorSize$2 as LimaImageRoi, Mocks$f as LimaMocks, type LimaSchema, LimaSimulator, TomoDetectorSize$1 as LimaSize, LimaState, TomoDetectorSize as LimaTransformation, Variants$j as LimaVariants, LoadingObject, MeasurementGroup as MeasurementGroupDefault, Mocks$e as MeasurementGroupMocks, type MeasurementGroupSchema, MeasurementGroupSimulator, Variants$i as MeasurementGroupVariants, MissingComponentObject, MissingKeysError, MissingObject, type Monitor, MonitorHardware, MonitorPanel, MonitorPanelItem, type MonitorPanelProps, MotorDefault, type MotorDefaultOptions, Mocks$d as MotorMocks, type MotorSchema, MotorSimulator, MotorState, MotorText, Variants$h as MotorVariants, Multiposition, Mocks$c as MultipositionMocks, type MultipositionSchema, MultipositionSimulator, Variants$g as MultipositionVariants, NoObject$1 as NoObject, Yaml as None, NoObject as NullObject, NumericStep, Optic as OpticDefault, Mocks$b as OpticMocks, type OpticSchema, OpticSimulator, OpticState, Variants$f as OpticVariants, type OpticWidgetOptions, Panel, ProcedureExecution, ProcedureManage, Mocks$a as ProcedureMocks, type ProcedureSchema, ProcedureState, ProcedureValidate, Variants$e as ProcedureVariants, Pump as PumpDefault, Mocks$7 as PumpMocks, type PumpSchema, Variants$b as PumpVariants, Pusher as PusherDefault, Mocks$6 as PusherMocks, type PusherSchema, PusherSimulator, PusherState, Variants$a as PusherVariants, type ScanFromProcedure, ServiceDefault, Mocks$5 as ServiceMocks, ServiceProtected, type ServiceSchema, ServiceState, Variants$9 as ServiceVariants, ShutterDefault, Mocks$9 as ShutterMocks, ShutterProtected, type ShutterSchema, ShutterSimulator, ShutterState, Variants$d as ShutterVariants, SlitDefault, Mocks$8 as SlitMocks, type SlitSchema, SlitState, Variants$c as SlitVariants, Yaml$1 as Todo, TomoConfigLatencyTime, type TomoConfigSchema, Variants$2 as TomoConfigVariants, TomoDetectorAcquisitionMode, Mocks$3 as TomoDetectorMocks, TomoDetectorSamplePixelSize, type TomoDetectorSchema, TomoDetectorState, Variants$6 as TomoDetectorVariants, TomoDetectors as TomoDetectorsDefault, Mocks$2 as TomoDetectorsMocks, type TomoDetectorsSchema, TomoDetectorsState, Variants$5 as TomoDetectorsVariants, TomoFlatMotionDefault, Mocks$4 as TomoFlatMotionMocks, type TomoFlatMotionSchema, TomoFlatMotionSimulator, TomoFlatMotionSmall, TomoFlatMotionState, type TomoFlatMotionStep, Variants$8 as TomoFlatMotionVariants, type TomoHoloDistance, type TomoHoloSchema, TomoHoloState, Variants$1 as TomoHoloVariants, TomoImagingActions, TomoImagingDefault, TomoImagingExposureTime, Mocks$1 as TomoImagingMocks, type TomoImagingSchema, TomoImagingSettleTime, TomoImagingSimulator, TomoImagingState, TomoImagingUpdateMode, Variants$4 as TomoImagingVariants, TomoReferencePositionDefault, type TomoReferencePositionSchema, Variants$7 as TomoReferencePositionVariants, type TomoSampleStageSchema, Variants$3 as TomoSampleStageVariants, TypeIcon, type Props$c as TypeIconOptions, Valve as ValveDefault, Mocks as ValveMocks, type ValveSchema, Variants as ValveVariants, ErrorBoundary as YAMLErrorBoundary, Main as YAMLLayout, asserts_d as YamlAsserts, type YamlComponent$1 as YamlComponent, type YamlNode, createMotorMock, dynamicOp, isLimaHardware, isMotorHardware, isOpticHardware, isTomoConfigHardware, isTomoDetectorHardware, isTomoDetectorsHardware, isTomoFlatMotionHardware, isTomoHoloHardware, isTomoReferencePositionHardware, isTomoSampleStageHardware, limaGuessSubframes, registerHardwareComponent, registerMonitorComponent, registerRuntimeHook, registerComponent as registerYamlComponent, registerComponents as registerYamlComponents, registerYamlType, renderYamlNode, useLimaHardware, useMotorHardware, useMotorStates, useTomoConfigHardware, useTomoDetectorHardware, useTomoDetectorsHardware, useTomoFlatMotionHardware, useTomoHoloHardware, useTomoSampleStageHardware, yamlMap };
|