@esrf/daiquiri-lib 2.0.0 → 2.1.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 +212 -49
- package/dist/index.js +9 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3635 -2533
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
- package/src/scss/_hardware.scss +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
4
|
|
|
5
5
|
interface HardwareError {
|
|
6
6
|
property: string;
|
|
@@ -121,9 +121,9 @@ declare namespace schema_d {
|
|
|
121
121
|
export type { schema_d_AnySchema as AnySchema, schema_d_GenericSchema as GenericSchema };
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
declare const Variants$
|
|
124
|
+
declare const Variants$q: HardwareVariant<AnySchema>;
|
|
125
125
|
|
|
126
|
-
declare const Mocks$
|
|
126
|
+
declare const Mocks$m: {
|
|
127
127
|
default: {
|
|
128
128
|
response: {
|
|
129
129
|
callables: never[];
|
|
@@ -248,16 +248,6 @@ interface BaseInfoWidgetOptions extends HardwareWidgetOptions {
|
|
|
248
248
|
}
|
|
249
249
|
declare function Info(props: HardwareWidgetProps<AnySchema, BaseInfoWidgetOptions>): JSX.Element;
|
|
250
250
|
|
|
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
251
|
/**
|
|
262
252
|
* Hardware as exposed by Redux
|
|
263
253
|
*/
|
|
@@ -275,7 +265,7 @@ interface AirBearingSchema extends Hardware {
|
|
|
275
265
|
state: string;
|
|
276
266
|
};
|
|
277
267
|
}
|
|
278
|
-
declare const Variants$
|
|
268
|
+
declare const Variants$p: HardwareVariant<AirBearingSchema>;
|
|
279
269
|
|
|
280
270
|
declare function AirBearing(props: HardwareWidgetProps<AirBearingSchema, HardwareWidgetOptions>): JSX.Element;
|
|
281
271
|
|
|
@@ -285,7 +275,7 @@ declare function AirBearingState(props: {
|
|
|
285
275
|
hardware: AirBearingSchema;
|
|
286
276
|
}): JSX.Element;
|
|
287
277
|
|
|
288
|
-
declare const Mocks$
|
|
278
|
+
declare const Mocks$l: {
|
|
289
279
|
default: {
|
|
290
280
|
callables: string[];
|
|
291
281
|
id: string;
|
|
@@ -300,6 +290,19 @@ declare const Mocks$j: {
|
|
|
300
290
|
};
|
|
301
291
|
};
|
|
302
292
|
|
|
293
|
+
declare type PropsWithSimulator<P = Record<string, never>> = P & {
|
|
294
|
+
name: string;
|
|
295
|
+
alias?: string;
|
|
296
|
+
useHardwareContext?: () => {
|
|
297
|
+
actions: {
|
|
298
|
+
updateHardware: (name: string, hardware: Hardware) => void;
|
|
299
|
+
updateHardwareChangeActions: (name: string, actions: HardwareChangeActions) => void;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
declare function AirBearingSimulator(props: PropsWithSimulator): JSX.Element;
|
|
305
|
+
|
|
303
306
|
interface FrontendSchema extends Hardware {
|
|
304
307
|
properties: {
|
|
305
308
|
state: string;
|
|
@@ -315,11 +318,11 @@ interface FrontendSchema extends Hardware {
|
|
|
315
318
|
expitlk: string;
|
|
316
319
|
};
|
|
317
320
|
}
|
|
318
|
-
declare const Variants$
|
|
321
|
+
declare const Variants$o: HardwareVariant<FrontendSchema>;
|
|
319
322
|
|
|
320
323
|
declare function Frontend(props: HardwareWidgetProps<FrontendSchema>): JSX.Element;
|
|
321
324
|
|
|
322
|
-
declare const Mocks$
|
|
325
|
+
declare const Mocks$k: {
|
|
323
326
|
default: {
|
|
324
327
|
callables: string[];
|
|
325
328
|
id: string;
|
|
@@ -354,7 +357,7 @@ interface GaugeSchema extends Hardware {
|
|
|
354
357
|
unit?: string;
|
|
355
358
|
};
|
|
356
359
|
}
|
|
357
|
-
declare const Variants$
|
|
360
|
+
declare const Variants$n: HardwareVariant<GaugeSchema>;
|
|
358
361
|
|
|
359
362
|
interface GaugeWidgetOptions extends HardwareWidgetOptions {
|
|
360
363
|
/** Unit of pressure */
|
|
@@ -364,7 +367,7 @@ interface GaugeWidgetOptions extends HardwareWidgetOptions {
|
|
|
364
367
|
}
|
|
365
368
|
declare function Gauge(props: HardwareWidgetProps<GaugeSchema, GaugeWidgetOptions>): JSX.Element;
|
|
366
369
|
|
|
367
|
-
declare const Mocks$
|
|
370
|
+
declare const Mocks$j: {
|
|
368
371
|
default: {
|
|
369
372
|
callables: string[];
|
|
370
373
|
id: string;
|
|
@@ -404,7 +407,7 @@ interface LaserSchema extends Hardware {
|
|
|
404
407
|
power: number;
|
|
405
408
|
};
|
|
406
409
|
}
|
|
407
|
-
declare const Variants$
|
|
410
|
+
declare const Variants$m: HardwareVariant<LaserSchema>;
|
|
408
411
|
|
|
409
412
|
interface LaserWidgetOptions extends HardwareWidgetOptions {
|
|
410
413
|
/** Default step size to use for up / down arrows */
|
|
@@ -414,7 +417,7 @@ interface LaserWidgetOptions extends HardwareWidgetOptions {
|
|
|
414
417
|
}
|
|
415
418
|
declare function Laser(props: HardwareWidgetProps<LaserSchema, LaserWidgetOptions>): JSX.Element;
|
|
416
419
|
|
|
417
|
-
declare const Mocks$
|
|
420
|
+
declare const Mocks$i: {
|
|
418
421
|
default: {
|
|
419
422
|
callables: never[];
|
|
420
423
|
id: string;
|
|
@@ -442,7 +445,7 @@ interface LaserHeatingSchema extends Hardware {
|
|
|
442
445
|
current_calibration: string;
|
|
443
446
|
};
|
|
444
447
|
}
|
|
445
|
-
declare const Variants$
|
|
448
|
+
declare const Variants$l: HardwareVariant<LaserHeatingSchema>;
|
|
446
449
|
|
|
447
450
|
interface LaserHeatingWidgetOptions extends HardwareWidgetOptions {
|
|
448
451
|
/** Default step size to use for up / down arrows */
|
|
@@ -452,7 +455,7 @@ interface LaserHeatingWidgetOptions extends HardwareWidgetOptions {
|
|
|
452
455
|
}
|
|
453
456
|
declare function LaserHeating(props: HardwareWidgetProps<LaserHeatingSchema, LaserHeatingWidgetOptions>): JSX.Element;
|
|
454
457
|
|
|
455
|
-
declare const Mocks$
|
|
458
|
+
declare const Mocks$h: {
|
|
456
459
|
default: {
|
|
457
460
|
callables: never[];
|
|
458
461
|
id: string;
|
|
@@ -481,11 +484,11 @@ interface LightSchema extends Hardware {
|
|
|
481
484
|
intensity: number;
|
|
482
485
|
};
|
|
483
486
|
}
|
|
484
|
-
declare const Variants$
|
|
487
|
+
declare const Variants$k: HardwareVariant<LightSchema>;
|
|
485
488
|
|
|
486
489
|
declare function Light(props: HardwareWidgetProps<LightSchema>): JSX.Element;
|
|
487
490
|
|
|
488
|
-
declare const Mocks$
|
|
491
|
+
declare const Mocks$g: {
|
|
489
492
|
default: {
|
|
490
493
|
callables: never[];
|
|
491
494
|
id: string;
|
|
@@ -566,7 +569,7 @@ declare function useLimaHardware(name: string | null): LimaSchema | null;
|
|
|
566
569
|
* Compute the nb sub frames which will be used for a specific exposure time
|
|
567
570
|
*/
|
|
568
571
|
declare function limaGuessSubframes(exposureTime: number, accMaxExpoTime: number): [number, number];
|
|
569
|
-
declare const Variants$
|
|
572
|
+
declare const Variants$j: HardwareVariant<LimaSchema>;
|
|
570
573
|
|
|
571
574
|
declare function LimaBinning(props: HardwareWidgetProps<LimaSchema, HardwareWidgetOptions>): JSX.Element;
|
|
572
575
|
|
|
@@ -584,7 +587,7 @@ declare function LimaState(props: {
|
|
|
584
587
|
hardware: LimaSchema;
|
|
585
588
|
}): JSX.Element;
|
|
586
589
|
|
|
587
|
-
declare const Mocks$
|
|
590
|
+
declare const Mocks$f: {
|
|
588
591
|
default: {
|
|
589
592
|
id: string;
|
|
590
593
|
name: string;
|
|
@@ -671,6 +674,8 @@ declare const Mocks$d: {
|
|
|
671
674
|
};
|
|
672
675
|
};
|
|
673
676
|
|
|
677
|
+
declare function LimaSimulator(props: PropsWithSimulator): JSX.Element;
|
|
678
|
+
|
|
674
679
|
/**
|
|
675
680
|
* Hardware as exposed by Redux
|
|
676
681
|
*/
|
|
@@ -685,11 +690,37 @@ interface MeasurementGroupSchema extends Hardware {
|
|
|
685
690
|
disabled: string[];
|
|
686
691
|
};
|
|
687
692
|
}
|
|
693
|
+
declare const Variants$i: HardwareVariant<MeasurementGroupSchema>;
|
|
694
|
+
|
|
695
|
+
declare function MeasurementGroup(props: HardwareWidgetProps<MeasurementGroupSchema>): JSX.Element;
|
|
696
|
+
|
|
697
|
+
declare const Mocks$e: {
|
|
698
|
+
default: {
|
|
699
|
+
callables: never[];
|
|
700
|
+
id: string;
|
|
701
|
+
name: string;
|
|
702
|
+
online: boolean;
|
|
703
|
+
properties: {
|
|
704
|
+
available: string[];
|
|
705
|
+
disabled: string[];
|
|
706
|
+
};
|
|
707
|
+
protocol: string;
|
|
708
|
+
require_staff: boolean;
|
|
709
|
+
type: string;
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
declare function MeasurementGroupSimulator(props: PropsWithSimulator): JSX.Element;
|
|
688
714
|
|
|
689
715
|
interface MotorSchema extends Hardware {
|
|
690
716
|
properties: {
|
|
691
717
|
position: number | null;
|
|
692
|
-
|
|
718
|
+
/**
|
|
719
|
+
* Target of the actual motion.
|
|
720
|
+
*
|
|
721
|
+
* If there is no motion, it is `null`.
|
|
722
|
+
*/
|
|
723
|
+
target: number | null;
|
|
693
724
|
tolerance: number;
|
|
694
725
|
acceleration: number;
|
|
695
726
|
velocity: number;
|
|
@@ -743,7 +774,7 @@ declare function isMotorHardware(entity: Hardware): entity is MotorSchema;
|
|
|
743
774
|
* @param name: An hardware identifier
|
|
744
775
|
*/
|
|
745
776
|
declare function useMotorHardware(name: string | null): MotorSchema | null;
|
|
746
|
-
declare const Variants$
|
|
777
|
+
declare const Variants$h: HardwareVariant<MotorSchema>;
|
|
747
778
|
|
|
748
779
|
interface MotorDefaultOptions extends HardwareWidgetOptions {
|
|
749
780
|
/** Default step size to use for up / down arrows */
|
|
@@ -795,7 +826,7 @@ declare function MotorState(props: {
|
|
|
795
826
|
hardware: MotorSchema;
|
|
796
827
|
}): JSX.Element;
|
|
797
828
|
|
|
798
|
-
declare const Mocks$
|
|
829
|
+
declare const Mocks$d: {
|
|
799
830
|
default: {
|
|
800
831
|
callables: string[];
|
|
801
832
|
id: string;
|
|
@@ -930,14 +961,20 @@ declare function createMotorMock(name: string, position: number): {
|
|
|
930
961
|
online: boolean;
|
|
931
962
|
};
|
|
932
963
|
|
|
933
|
-
interface Props$
|
|
964
|
+
interface Props$e {
|
|
965
|
+
name?: string;
|
|
934
966
|
minLimit?: number;
|
|
935
967
|
maxLimit?: number;
|
|
936
968
|
initialPosition?: number;
|
|
937
969
|
initialVelocity?: number;
|
|
938
|
-
|
|
970
|
+
useHardwareContext?: () => {
|
|
971
|
+
actions: {
|
|
972
|
+
updateHardware: (name: string, hardware: Hardware) => void;
|
|
973
|
+
updateHardwareChangeActions: (name: string, actions: HardwareChangeActions) => void;
|
|
974
|
+
};
|
|
975
|
+
};
|
|
939
976
|
}
|
|
940
|
-
declare function
|
|
977
|
+
declare function MotorSimulator(props: Props$e): JSX.Element;
|
|
941
978
|
|
|
942
979
|
interface MultipositionSchema extends Hardware {
|
|
943
980
|
properties: {
|
|
@@ -954,11 +991,11 @@ interface MultipositionSchema extends Hardware {
|
|
|
954
991
|
state: string;
|
|
955
992
|
};
|
|
956
993
|
}
|
|
957
|
-
declare const Variants$
|
|
994
|
+
declare const Variants$g: HardwareVariant<MultipositionSchema>;
|
|
958
995
|
|
|
959
996
|
declare function Multiposition(props: HardwareWidgetProps<MultipositionSchema>): JSX.Element;
|
|
960
997
|
|
|
961
|
-
declare const Mocks$
|
|
998
|
+
declare const Mocks$c: {
|
|
962
999
|
default: {
|
|
963
1000
|
callables: string[];
|
|
964
1001
|
id: string;
|
|
@@ -982,6 +1019,8 @@ declare const Mocks$b: {
|
|
|
982
1019
|
};
|
|
983
1020
|
};
|
|
984
1021
|
|
|
1022
|
+
declare function MultipositionSimulator(props: PropsWithSimulator): JSX.Element;
|
|
1023
|
+
|
|
985
1024
|
/**
|
|
986
1025
|
* Hardware as exposed by Redux
|
|
987
1026
|
*/
|
|
@@ -989,13 +1028,18 @@ interface OpticSchema extends Hardware {
|
|
|
989
1028
|
properties: {
|
|
990
1029
|
state: string;
|
|
991
1030
|
magnification: number;
|
|
992
|
-
available_magnifications: number[];
|
|
993
|
-
|
|
1031
|
+
available_magnifications: number[] | null;
|
|
1032
|
+
/**
|
|
1033
|
+
* Target of the actual motion.
|
|
1034
|
+
*
|
|
1035
|
+
* If there is no motion, it is `null `.
|
|
1036
|
+
*/
|
|
1037
|
+
target_magnification: number | null;
|
|
994
1038
|
magnification_range: [number, number] | null;
|
|
995
1039
|
};
|
|
996
1040
|
}
|
|
997
1041
|
declare function isOpticHardware(entity: Hardware): entity is OpticSchema;
|
|
998
|
-
declare const Variants$
|
|
1042
|
+
declare const Variants$f: HardwareVariant<OpticSchema>;
|
|
999
1043
|
|
|
1000
1044
|
interface OpticWidgetOptions extends HardwareWidgetOptions {
|
|
1001
1045
|
readonly?: boolean;
|
|
@@ -1008,7 +1052,7 @@ declare function OpticState(props: {
|
|
|
1008
1052
|
hardware: OpticSchema;
|
|
1009
1053
|
}): JSX.Element;
|
|
1010
1054
|
|
|
1011
|
-
declare const Mocks$
|
|
1055
|
+
declare const Mocks$b: {
|
|
1012
1056
|
default: {
|
|
1013
1057
|
callables: string[];
|
|
1014
1058
|
id: string;
|
|
@@ -1016,7 +1060,6 @@ declare const Mocks$a: {
|
|
|
1016
1060
|
online: boolean;
|
|
1017
1061
|
properties: {
|
|
1018
1062
|
state: string;
|
|
1019
|
-
status: string;
|
|
1020
1063
|
magnification: number;
|
|
1021
1064
|
target_magnification: null;
|
|
1022
1065
|
available_magnifications: number[];
|
|
@@ -1033,7 +1076,6 @@ declare const Mocks$a: {
|
|
|
1033
1076
|
online: boolean;
|
|
1034
1077
|
properties: {
|
|
1035
1078
|
state: string;
|
|
1036
|
-
status: string;
|
|
1037
1079
|
magnification: number;
|
|
1038
1080
|
target_magnification: null;
|
|
1039
1081
|
available_magnifications: number[];
|
|
@@ -1050,7 +1092,6 @@ declare const Mocks$a: {
|
|
|
1050
1092
|
online: boolean;
|
|
1051
1093
|
properties: {
|
|
1052
1094
|
state: string;
|
|
1053
|
-
status: string;
|
|
1054
1095
|
magnification: number;
|
|
1055
1096
|
target_magnification: null;
|
|
1056
1097
|
available_magnifications: number[];
|
|
@@ -1067,7 +1108,6 @@ declare const Mocks$a: {
|
|
|
1067
1108
|
online: boolean;
|
|
1068
1109
|
properties: {
|
|
1069
1110
|
state: string;
|
|
1070
|
-
status: string;
|
|
1071
1111
|
magnification: number;
|
|
1072
1112
|
target_magnification: null;
|
|
1073
1113
|
available_magnifications: number[];
|
|
@@ -1079,6 +1119,11 @@ declare const Mocks$a: {
|
|
|
1079
1119
|
};
|
|
1080
1120
|
};
|
|
1081
1121
|
|
|
1122
|
+
interface Props$d {
|
|
1123
|
+
kind: 'fixed' | 'range' | 'multi';
|
|
1124
|
+
}
|
|
1125
|
+
declare function OpticSimulator(props: PropsWithSimulator<Props$d>): JSX.Element;
|
|
1126
|
+
|
|
1082
1127
|
interface ProcedureSchema extends Hardware {
|
|
1083
1128
|
properties: {
|
|
1084
1129
|
state: string;
|
|
@@ -1087,7 +1132,7 @@ interface ProcedureSchema extends Hardware {
|
|
|
1087
1132
|
parameters: Record<string, any>;
|
|
1088
1133
|
};
|
|
1089
1134
|
}
|
|
1090
|
-
declare const Variants$
|
|
1135
|
+
declare const Variants$e: HardwareVariant<ProcedureSchema>;
|
|
1091
1136
|
|
|
1092
1137
|
interface HardwareFromProcedure {
|
|
1093
1138
|
__type__: 'hardware';
|
|
@@ -1116,7 +1161,7 @@ declare function ProcedureState(props: {
|
|
|
1116
1161
|
hardware: ProcedureSchema;
|
|
1117
1162
|
}): JSX.Element;
|
|
1118
1163
|
|
|
1119
|
-
declare const Mocks$
|
|
1164
|
+
declare const Mocks$a: {
|
|
1120
1165
|
standby: {
|
|
1121
1166
|
callables: string[];
|
|
1122
1167
|
type: string;
|
|
@@ -1182,7 +1227,7 @@ interface ShutterSchema extends Hardware {
|
|
|
1182
1227
|
closed_text: string;
|
|
1183
1228
|
};
|
|
1184
1229
|
}
|
|
1185
|
-
declare const Variants$
|
|
1230
|
+
declare const Variants$d: HardwareVariant<ShutterSchema>;
|
|
1186
1231
|
|
|
1187
1232
|
declare function ShutterDefault(props: HardwareWidgetProps<ShutterSchema, HardwareWidgetOptions>): JSX.Element;
|
|
1188
1233
|
|
|
@@ -1193,7 +1238,7 @@ declare function ShutterState(props: {
|
|
|
1193
1238
|
useReadyState?: boolean;
|
|
1194
1239
|
}): JSX.Element;
|
|
1195
1240
|
|
|
1196
|
-
declare const Mocks$
|
|
1241
|
+
declare const Mocks$9: {
|
|
1197
1242
|
default: {
|
|
1198
1243
|
callables: string[];
|
|
1199
1244
|
id: string;
|
|
@@ -1212,6 +1257,74 @@ declare const Mocks$8: {
|
|
|
1212
1257
|
};
|
|
1213
1258
|
};
|
|
1214
1259
|
|
|
1260
|
+
declare function ShutterSimulator(props: PropsWithSimulator): JSX.Element;
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* Hardware as exposed by Redux
|
|
1264
|
+
*/
|
|
1265
|
+
interface SlitSchema extends Hardware {
|
|
1266
|
+
properties: {
|
|
1267
|
+
state: string;
|
|
1268
|
+
type: 'vertical' | 'horizontal' | 'both';
|
|
1269
|
+
hgap: string;
|
|
1270
|
+
vgap: string;
|
|
1271
|
+
hoffset: string;
|
|
1272
|
+
voffset: string;
|
|
1273
|
+
};
|
|
1274
|
+
}
|
|
1275
|
+
interface SlitDefaultOptions extends HardwareWidgetOptions {
|
|
1276
|
+
/** Number of decimals to show */
|
|
1277
|
+
precision?: number;
|
|
1278
|
+
/** Setup the widget to be read only */
|
|
1279
|
+
readonly?: boolean;
|
|
1280
|
+
}
|
|
1281
|
+
declare const Variants$c: HardwareVariant<SlitSchema>;
|
|
1282
|
+
|
|
1283
|
+
declare function SlitDefault(props: HardwareWidgetProps<SlitSchema, SlitDefaultOptions>): JSX.Element;
|
|
1284
|
+
|
|
1285
|
+
declare function SlitState(props: {
|
|
1286
|
+
hardware: SlitSchema;
|
|
1287
|
+
}): JSX.Element;
|
|
1288
|
+
|
|
1289
|
+
declare const Mocks$8: {
|
|
1290
|
+
default: {
|
|
1291
|
+
id: string;
|
|
1292
|
+
name: string;
|
|
1293
|
+
online: boolean;
|
|
1294
|
+
properties: {
|
|
1295
|
+
vgap: string;
|
|
1296
|
+
voffset: string;
|
|
1297
|
+
hgap: string;
|
|
1298
|
+
hoffset: string;
|
|
1299
|
+
};
|
|
1300
|
+
type: string;
|
|
1301
|
+
};
|
|
1302
|
+
horizontal: {
|
|
1303
|
+
id: string;
|
|
1304
|
+
name: string;
|
|
1305
|
+
online: boolean;
|
|
1306
|
+
properties: {
|
|
1307
|
+
vgap: string;
|
|
1308
|
+
voffset: string;
|
|
1309
|
+
hgap: string;
|
|
1310
|
+
hoffset: string;
|
|
1311
|
+
};
|
|
1312
|
+
type: string;
|
|
1313
|
+
};
|
|
1314
|
+
vertical: {
|
|
1315
|
+
id: string;
|
|
1316
|
+
name: string;
|
|
1317
|
+
online: boolean;
|
|
1318
|
+
properties: {
|
|
1319
|
+
vgap: string;
|
|
1320
|
+
voffset: string;
|
|
1321
|
+
hgap: string;
|
|
1322
|
+
hoffset: string;
|
|
1323
|
+
};
|
|
1324
|
+
type: string;
|
|
1325
|
+
};
|
|
1326
|
+
};
|
|
1327
|
+
|
|
1215
1328
|
/**
|
|
1216
1329
|
* Hardware as exposed by Redux
|
|
1217
1330
|
*/
|
|
@@ -1283,6 +1396,8 @@ declare const Mocks$6: {
|
|
|
1283
1396
|
};
|
|
1284
1397
|
};
|
|
1285
1398
|
|
|
1399
|
+
declare function PusherSimulator(props: PropsWithSimulator): JSX.Element;
|
|
1400
|
+
|
|
1286
1401
|
/**
|
|
1287
1402
|
* Hardware as exposed by Redux
|
|
1288
1403
|
*/
|
|
@@ -1364,7 +1479,7 @@ declare const Mocks$4: {
|
|
|
1364
1479
|
move_in_parallel: boolean;
|
|
1365
1480
|
available_axes: string[];
|
|
1366
1481
|
motion: {
|
|
1367
|
-
|
|
1482
|
+
axisRef: string;
|
|
1368
1483
|
absolute_position: null;
|
|
1369
1484
|
relative_position: number;
|
|
1370
1485
|
}[];
|
|
@@ -1373,8 +1488,54 @@ declare const Mocks$4: {
|
|
|
1373
1488
|
require_staff: boolean;
|
|
1374
1489
|
type: string;
|
|
1375
1490
|
};
|
|
1491
|
+
sy: {
|
|
1492
|
+
callables: string[];
|
|
1493
|
+
id: string;
|
|
1494
|
+
name: string;
|
|
1495
|
+
online: boolean;
|
|
1496
|
+
properties: {
|
|
1497
|
+
offset: number;
|
|
1498
|
+
sign: number;
|
|
1499
|
+
acceleration: number;
|
|
1500
|
+
limits: number[];
|
|
1501
|
+
position: number;
|
|
1502
|
+
state: string[];
|
|
1503
|
+
tolerance: number;
|
|
1504
|
+
unit: string;
|
|
1505
|
+
velocity: number;
|
|
1506
|
+
display_digits: number;
|
|
1507
|
+
};
|
|
1508
|
+
protocol: string;
|
|
1509
|
+
require_staff: boolean;
|
|
1510
|
+
type: string;
|
|
1511
|
+
user_tags: never[];
|
|
1512
|
+
};
|
|
1513
|
+
sy2: {
|
|
1514
|
+
callables: string[];
|
|
1515
|
+
id: string;
|
|
1516
|
+
name: string;
|
|
1517
|
+
online: boolean;
|
|
1518
|
+
properties: {
|
|
1519
|
+
offset: number;
|
|
1520
|
+
sign: number;
|
|
1521
|
+
acceleration: number;
|
|
1522
|
+
limits: number[];
|
|
1523
|
+
position: number;
|
|
1524
|
+
state: string[];
|
|
1525
|
+
tolerance: number;
|
|
1526
|
+
unit: string;
|
|
1527
|
+
velocity: number;
|
|
1528
|
+
display_digits: number;
|
|
1529
|
+
};
|
|
1530
|
+
protocol: string;
|
|
1531
|
+
require_staff: boolean;
|
|
1532
|
+
type: string;
|
|
1533
|
+
user_tags: never[];
|
|
1534
|
+
};
|
|
1376
1535
|
};
|
|
1377
1536
|
|
|
1537
|
+
declare function TomoFlatMotionSimulator(props: PropsWithSimulator): JSX.Element;
|
|
1538
|
+
|
|
1378
1539
|
/**
|
|
1379
1540
|
* Hardware as exposed by Redux
|
|
1380
1541
|
*/
|
|
@@ -1517,6 +1678,8 @@ declare const Mocks$1: {
|
|
|
1517
1678
|
};
|
|
1518
1679
|
};
|
|
1519
1680
|
|
|
1681
|
+
declare function TomoImagingSimulator(props: PropsWithSimulator): JSX.Element;
|
|
1682
|
+
|
|
1520
1683
|
/**
|
|
1521
1684
|
* Hardware as exposed by Redux
|
|
1522
1685
|
*/
|
|
@@ -2096,4 +2259,4 @@ interface MonitorPanelItemProps {
|
|
|
2096
2259
|
}
|
|
2097
2260
|
declare function MonitorPanelItem(props: PropsWithChildren<MonitorPanelItemProps>): JSX.Element;
|
|
2098
2261
|
|
|
2099
|
-
export { type ActuatorSchema, AirBearing, Mocks$
|
|
2262
|
+
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, 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, MeasurementGroup as MeasurementGroupDefault, Mocks$e as MeasurementGroupMocks, type MeasurementGroupSchema, MeasurementGroupSimulator, Variants$i as MeasurementGroupVariants, MissingKeysError, 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, 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, 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 };
|