@esrf/daiquiri-lib 2.3.0 → 3.0.1
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 +318 -361
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1559 -1534
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ interface HardwareSchemaDescription {
|
|
|
33
33
|
uiorder?: string[];
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
interface
|
|
36
|
+
interface BaseHardware<O = boolean, P extends Record<string, any> = Record<string, never>> {
|
|
37
37
|
/** Object name */
|
|
38
38
|
name: string;
|
|
39
39
|
/** Object id */
|
|
@@ -43,11 +43,9 @@ interface Hardware {
|
|
|
43
43
|
/** A list of user tags */
|
|
44
44
|
user_tags: string[];
|
|
45
45
|
/** The object properties as defined in the relevant schema */
|
|
46
|
-
properties:
|
|
47
|
-
[name: string]: any;
|
|
48
|
-
};
|
|
46
|
+
properties: P;
|
|
49
47
|
/** Whether the device is available */
|
|
50
|
-
online:
|
|
48
|
+
online: O;
|
|
51
49
|
/** The reason why the hardware is locked, else null */
|
|
52
50
|
locked: string | null;
|
|
53
51
|
/** The object type as defined by the REST API */
|
|
@@ -55,9 +53,10 @@ interface Hardware {
|
|
|
55
53
|
/** Any potential errors initialising this object */
|
|
56
54
|
errors?: HardwareError[];
|
|
57
55
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
type OnlineHardware<P extends Record<string, any> = Record<string, never>> = BaseHardware<true, P>;
|
|
57
|
+
type OfflineHardware = BaseHardware<false, Record<string, never>>;
|
|
58
|
+
type Hardware<P extends Record<string, unknown> = Record<string, any>> = OnlineHardware<P> | OfflineHardware;
|
|
59
|
+
type AnyHardware = Hardware<any>;
|
|
61
60
|
interface HardwareChangeActions {
|
|
62
61
|
setProperty: (name: string, value: any) => Promise<void>;
|
|
63
62
|
call: (name: string, ...args: any[]) => Promise<void>;
|
|
@@ -103,27 +102,31 @@ interface HardwareVariant<H extends Hardware = Hardware> {
|
|
|
103
102
|
}
|
|
104
103
|
|
|
105
104
|
type types_d_AnyHardware = AnyHardware;
|
|
105
|
+
type types_d_BaseHardware<O = boolean, P extends Record<string, any> = Record<string, never>> = BaseHardware<O, P>;
|
|
106
106
|
type types_d_EditableHardware<H extends Hardware = Hardware> = EditableHardware<H>;
|
|
107
107
|
type types_d_EditableHardwareWidgetOptions = EditableHardwareWidgetOptions;
|
|
108
|
-
type types_d_Hardware = Hardware
|
|
108
|
+
type types_d_Hardware<P extends Record<string, unknown> = Record<string, any>> = Hardware<P>;
|
|
109
109
|
type types_d_HardwareChangeActions = HardwareChangeActions;
|
|
110
110
|
type types_d_HardwareComponentType<H extends Hardware = Hardware> = HardwareComponentType<H>;
|
|
111
111
|
type types_d_HardwareSchemaDescription = HardwareSchemaDescription;
|
|
112
112
|
type types_d_HardwareVariant<H extends Hardware = Hardware> = HardwareVariant<H>;
|
|
113
113
|
type types_d_HardwareWidgetOptions = HardwareWidgetOptions;
|
|
114
114
|
type types_d_HardwareWidgetProps<H extends Hardware = Hardware, O extends HardwareWidgetOptions = HardwareWidgetOptions> = HardwareWidgetProps<H, O>;
|
|
115
|
+
type types_d_OfflineHardware = OfflineHardware;
|
|
116
|
+
type types_d_OnlineHardware<P extends Record<string, any> = Record<string, never>> = OnlineHardware<P>;
|
|
115
117
|
declare namespace types_d {
|
|
116
|
-
export type { types_d_AnyHardware as AnyHardware, types_d_EditableHardware as EditableHardware, types_d_EditableHardwareWidgetOptions as EditableHardwareWidgetOptions, types_d_Hardware as Hardware, types_d_HardwareChangeActions as HardwareChangeActions, types_d_HardwareComponentType as HardwareComponentType, types_d_HardwareSchemaDescription as HardwareSchemaDescription, types_d_HardwareVariant as HardwareVariant, types_d_HardwareWidgetOptions as HardwareWidgetOptions, types_d_HardwareWidgetProps as HardwareWidgetProps };
|
|
118
|
+
export type { types_d_AnyHardware as AnyHardware, types_d_BaseHardware as BaseHardware, types_d_EditableHardware as EditableHardware, types_d_EditableHardwareWidgetOptions as EditableHardwareWidgetOptions, types_d_Hardware as Hardware, types_d_HardwareChangeActions as HardwareChangeActions, types_d_HardwareComponentType as HardwareComponentType, types_d_HardwareSchemaDescription as HardwareSchemaDescription, types_d_HardwareVariant as HardwareVariant, types_d_HardwareWidgetOptions as HardwareWidgetOptions, types_d_HardwareWidgetProps as HardwareWidgetProps, types_d_OfflineHardware as OfflineHardware, types_d_OnlineHardware as OnlineHardware };
|
|
117
119
|
}
|
|
118
120
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
121
|
+
/**
|
|
122
|
+
* Guess the hardware have a state
|
|
123
|
+
*
|
|
124
|
+
* FIXME: This should be dropped.
|
|
125
|
+
*/
|
|
126
|
+
type GenericSchema = Hardware<{
|
|
127
|
+
state: string;
|
|
128
|
+
}>;
|
|
129
|
+
type AnySchema = AnyHardware;
|
|
127
130
|
|
|
128
131
|
type schema_d_AnySchema = AnySchema;
|
|
129
132
|
type schema_d_GenericSchema = GenericSchema;
|
|
@@ -261,20 +264,16 @@ declare function Info(props: HardwareWidgetProps<AnySchema, BaseInfoWidgetOption
|
|
|
261
264
|
/**
|
|
262
265
|
* Hardware as exposed by Redux
|
|
263
266
|
*/
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
};
|
|
268
|
-
}
|
|
267
|
+
type ActuatorSchema = Hardware<{
|
|
268
|
+
state: string;
|
|
269
|
+
}>;
|
|
269
270
|
|
|
270
271
|
/**
|
|
271
272
|
* Hardware as exposed by Redux
|
|
272
273
|
*/
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
};
|
|
277
|
-
}
|
|
274
|
+
type AirBearingSchema = Hardware<{
|
|
275
|
+
state: string;
|
|
276
|
+
}>;
|
|
278
277
|
declare const Variants$p: HardwareVariant<AirBearingSchema>;
|
|
279
278
|
|
|
280
279
|
declare function AirBearing(props: HardwareWidgetProps<AirBearingSchema, HardwareWidgetOptions>): react_jsx_runtime.JSX.Element;
|
|
@@ -313,21 +312,19 @@ type PropsWithSimulator<P = Record<string, never>> = P & {
|
|
|
313
312
|
|
|
314
313
|
declare function AirBearingSimulator(props: PropsWithSimulator): react_jsx_runtime.JSX.Element;
|
|
315
314
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
};
|
|
330
|
-
}
|
|
315
|
+
type FrontendSchema = Hardware<{
|
|
316
|
+
state: string;
|
|
317
|
+
status: string;
|
|
318
|
+
automatic: boolean;
|
|
319
|
+
frontend: string;
|
|
320
|
+
current: number;
|
|
321
|
+
refill: number;
|
|
322
|
+
mode: string;
|
|
323
|
+
message: string;
|
|
324
|
+
feitlk: string;
|
|
325
|
+
pssitlk: string;
|
|
326
|
+
expitlk: string;
|
|
327
|
+
}>;
|
|
331
328
|
declare const Variants$o: HardwareVariant<FrontendSchema>;
|
|
332
329
|
|
|
333
330
|
declare function Frontend(props: HardwareWidgetProps<FrontendSchema>): react_jsx_runtime.JSX.Element;
|
|
@@ -359,14 +356,12 @@ declare const Mocks$k: {
|
|
|
359
356
|
/**
|
|
360
357
|
* Hardware as exposed by Redux
|
|
361
358
|
*/
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
};
|
|
369
|
-
}
|
|
359
|
+
type GaugeSchema = Hardware<{
|
|
360
|
+
state: string;
|
|
361
|
+
status: string;
|
|
362
|
+
pressure: number;
|
|
363
|
+
unit?: string;
|
|
364
|
+
}>;
|
|
370
365
|
declare const Variants$n: HardwareVariant<GaugeSchema>;
|
|
371
366
|
|
|
372
367
|
interface GaugeWidgetOptions extends HardwareWidgetOptions {
|
|
@@ -411,12 +406,10 @@ declare const Mocks$j: {
|
|
|
411
406
|
/**
|
|
412
407
|
* Hardware as exposed by Redux
|
|
413
408
|
*/
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
};
|
|
419
|
-
}
|
|
409
|
+
type LaserSchema = Hardware<{
|
|
410
|
+
state: string;
|
|
411
|
+
power: number;
|
|
412
|
+
}>;
|
|
420
413
|
declare const Variants$m: HardwareVariant<LaserSchema>;
|
|
421
414
|
|
|
422
415
|
interface LaserWidgetOptions extends HardwareWidgetOptions {
|
|
@@ -446,15 +439,13 @@ declare const Mocks$i: {
|
|
|
446
439
|
/**
|
|
447
440
|
* Hardware as exposed by Redux
|
|
448
441
|
*/
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
};
|
|
457
|
-
}
|
|
442
|
+
type LaserHeatingSchema = Hardware<{
|
|
443
|
+
state: string;
|
|
444
|
+
exposure_time: number;
|
|
445
|
+
background_mode: 'ON' | 'OFF' | 'ALWAYS';
|
|
446
|
+
fit_wavelength: number[];
|
|
447
|
+
current_calibration: string;
|
|
448
|
+
}>;
|
|
458
449
|
declare const Variants$l: HardwareVariant<LaserHeatingSchema>;
|
|
459
450
|
|
|
460
451
|
interface LaserHeatingWidgetOptions extends HardwareWidgetOptions {
|
|
@@ -487,13 +478,11 @@ declare const Mocks$h: {
|
|
|
487
478
|
/**
|
|
488
479
|
* Hardware as exposed by Redux
|
|
489
480
|
*/
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
};
|
|
496
|
-
}
|
|
481
|
+
type LightSchema = Hardware<{
|
|
482
|
+
state: string;
|
|
483
|
+
temperature: number;
|
|
484
|
+
intensity: number;
|
|
485
|
+
}>;
|
|
497
486
|
declare const Variants$k: HardwareVariant<LightSchema>;
|
|
498
487
|
|
|
499
488
|
declare function Light(props: HardwareWidgetProps<LightSchema>): react_jsx_runtime.JSX.Element;
|
|
@@ -515,70 +504,69 @@ declare const Mocks$g: {
|
|
|
515
504
|
};
|
|
516
505
|
};
|
|
517
506
|
|
|
507
|
+
interface LimaProperties extends Record<string, unknown> {
|
|
508
|
+
state: 'READY' | 'ACQUIRING' | 'CONFIGURATION' | 'FAULT' | 'UNKNOWN' | 'OFFLINE';
|
|
509
|
+
static: {
|
|
510
|
+
lima_version: string;
|
|
511
|
+
lima_type: string;
|
|
512
|
+
camera_type: string;
|
|
513
|
+
camera_model: string;
|
|
514
|
+
camera_pixelsize: [number, number];
|
|
515
|
+
image_max_dim: [number, number];
|
|
516
|
+
} | null;
|
|
517
|
+
/**
|
|
518
|
+
* Pixel size of the detector (without binning).
|
|
519
|
+
*
|
|
520
|
+
* It's a read-only property.
|
|
521
|
+
*/
|
|
522
|
+
pixel_size: [number, number];
|
|
523
|
+
/**
|
|
524
|
+
* Max exposition time of a single sub frame in accumulation.
|
|
525
|
+
*
|
|
526
|
+
* It is used (together with the exposure time) to determine the
|
|
527
|
+
* nb of sub frames and the expo time of a single sub frame.
|
|
528
|
+
* See `guessSubframes`.
|
|
529
|
+
*/
|
|
530
|
+
acc_max_expo_time: number | null;
|
|
531
|
+
/**
|
|
532
|
+
* Flip applied to the resulting image
|
|
533
|
+
*/
|
|
534
|
+
flip: [boolean, boolean];
|
|
535
|
+
/**
|
|
536
|
+
* Rotation applied to the resulting image.
|
|
537
|
+
*
|
|
538
|
+
* One of 0, 90, 180, 270
|
|
539
|
+
*/
|
|
540
|
+
rotation: 0 | 90 | 180 | 270;
|
|
541
|
+
/**
|
|
542
|
+
* Binning applied to the resulting image
|
|
543
|
+
*/
|
|
544
|
+
binning: [number, number];
|
|
545
|
+
/**
|
|
546
|
+
* Binning mode applied to the resulting image
|
|
547
|
+
*
|
|
548
|
+
* Introduced in BLISS 2.3, Lima 1.10.4
|
|
549
|
+
*/
|
|
550
|
+
binning_mode?: 'SUM' | 'MEAN';
|
|
551
|
+
/**
|
|
552
|
+
* Location and size of the ROI in the raw image.
|
|
553
|
+
*
|
|
554
|
+
* When binning=[1, 1] flip=[false, false], rotation=0
|
|
555
|
+
*/
|
|
556
|
+
raw_roi: [number, number, number, number];
|
|
557
|
+
/**
|
|
558
|
+
* Location of the ROI in the transformed image.
|
|
559
|
+
*/
|
|
560
|
+
roi: [number, number, number, number];
|
|
561
|
+
/**
|
|
562
|
+
* Final size of the detector. Including the crop of the ROI.
|
|
563
|
+
*/
|
|
564
|
+
size: [number, number];
|
|
565
|
+
}
|
|
518
566
|
/**
|
|
519
567
|
* Hardware as exposed by Redux
|
|
520
568
|
*/
|
|
521
|
-
|
|
522
|
-
properties: {
|
|
523
|
-
state: 'READY' | 'ACQUIRING' | 'CONFIGURATION' | 'FAULT' | 'UNKNOWN' | 'OFFLINE';
|
|
524
|
-
static: {
|
|
525
|
-
lima_version: string;
|
|
526
|
-
lima_type: string;
|
|
527
|
-
camera_type: string;
|
|
528
|
-
camera_model: string;
|
|
529
|
-
camera_pixelsize: [number, number];
|
|
530
|
-
image_max_dim: [number, number];
|
|
531
|
-
} | null;
|
|
532
|
-
/**
|
|
533
|
-
* Pixel size of the detector (without binning).
|
|
534
|
-
*
|
|
535
|
-
* It's a read-only property.
|
|
536
|
-
*/
|
|
537
|
-
pixel_size: [number, number];
|
|
538
|
-
/**
|
|
539
|
-
* Max exposition time of a single sub frame in accumulation.
|
|
540
|
-
*
|
|
541
|
-
* It is used (together with the exposure time) to determine the
|
|
542
|
-
* nb of sub frames and the expo time of a single sub frame.
|
|
543
|
-
* See `guessSubframes`.
|
|
544
|
-
*/
|
|
545
|
-
acc_max_expo_time: number | null;
|
|
546
|
-
/**
|
|
547
|
-
* Flip applied to the resulting image
|
|
548
|
-
*/
|
|
549
|
-
flip: [boolean, boolean];
|
|
550
|
-
/**
|
|
551
|
-
* Rotation applied to the resulting image.
|
|
552
|
-
*
|
|
553
|
-
* One of 0, 90, 180, 270
|
|
554
|
-
*/
|
|
555
|
-
rotation: 0 | 90 | 180 | 270;
|
|
556
|
-
/**
|
|
557
|
-
* Binning applied to the resulting image
|
|
558
|
-
*/
|
|
559
|
-
binning: [number, number];
|
|
560
|
-
/**
|
|
561
|
-
* Binning mode applied to the resulting image
|
|
562
|
-
*
|
|
563
|
-
* Introduced in BLISS 2.3, Lima 1.10.4
|
|
564
|
-
*/
|
|
565
|
-
binning_mode?: 'SUM' | 'MEAN';
|
|
566
|
-
/**
|
|
567
|
-
* Location and size of the ROI in the raw image.
|
|
568
|
-
*
|
|
569
|
-
* When binning=[1, 1] flip=[false, false], rotation=0
|
|
570
|
-
*/
|
|
571
|
-
raw_roi: [number, number, number, number];
|
|
572
|
-
/**
|
|
573
|
-
* Location of the ROI in the transformed image.
|
|
574
|
-
*/
|
|
575
|
-
roi: [number, number, number, number];
|
|
576
|
-
/**
|
|
577
|
-
* Final size of the detector. Including the crop of the ROI.
|
|
578
|
-
*/
|
|
579
|
-
size: [number, number];
|
|
580
|
-
};
|
|
581
|
-
}
|
|
569
|
+
type LimaSchema = Hardware<LimaProperties>;
|
|
582
570
|
declare function isLimaHardware(entity: Hardware): entity is LimaSchema;
|
|
583
571
|
declare function useLimaHardware(name: string | null): LimaSchema | null;
|
|
584
572
|
/**
|
|
@@ -745,20 +733,19 @@ declare const Mocks$f: {
|
|
|
745
733
|
|
|
746
734
|
declare function LimaSimulator(props: PropsWithSimulator): react_jsx_runtime.JSX.Element;
|
|
747
735
|
|
|
736
|
+
interface MeasurementGroupProperties extends Record<string, unknown> {
|
|
737
|
+
/** List of available counters */
|
|
738
|
+
available: string[];
|
|
739
|
+
/** List of disabled counters.
|
|
740
|
+
*
|
|
741
|
+
* It is a subset of the `available` list.
|
|
742
|
+
*/
|
|
743
|
+
disabled: string[];
|
|
744
|
+
}
|
|
748
745
|
/**
|
|
749
746
|
* Hardware as exposed by Redux
|
|
750
747
|
*/
|
|
751
|
-
|
|
752
|
-
properties: {
|
|
753
|
-
/** List of available counters */
|
|
754
|
-
available: string[];
|
|
755
|
-
/** List of disabled counters.
|
|
756
|
-
*
|
|
757
|
-
* It is a subset of the `available` list.
|
|
758
|
-
*/
|
|
759
|
-
disabled: string[];
|
|
760
|
-
};
|
|
761
|
-
}
|
|
748
|
+
type MeasurementGroupSchema = Hardware<MeasurementGroupProperties>;
|
|
762
749
|
declare const Variants$i: HardwareVariant<MeasurementGroupSchema>;
|
|
763
750
|
|
|
764
751
|
declare function MeasurementGroup(props: HardwareWidgetProps<MeasurementGroupSchema>): react_jsx_runtime.JSX.Element;
|
|
@@ -781,26 +768,24 @@ declare const Mocks$e: {
|
|
|
781
768
|
|
|
782
769
|
declare function MeasurementGroupSimulator(props: PropsWithSimulator): react_jsx_runtime.JSX.Element;
|
|
783
770
|
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
};
|
|
803
|
-
}
|
|
771
|
+
type MotorSchema = Hardware<{
|
|
772
|
+
position: number | null;
|
|
773
|
+
/**
|
|
774
|
+
* Target of the actual motion.
|
|
775
|
+
*
|
|
776
|
+
* If there is no motion, it is `null`.
|
|
777
|
+
*/
|
|
778
|
+
target: number | null;
|
|
779
|
+
tolerance: number;
|
|
780
|
+
acceleration: number;
|
|
781
|
+
velocity: number;
|
|
782
|
+
limits: [number, number];
|
|
783
|
+
state: string[];
|
|
784
|
+
unit: string;
|
|
785
|
+
offset: number;
|
|
786
|
+
sign: number;
|
|
787
|
+
display_digits: number | null;
|
|
788
|
+
}>;
|
|
804
789
|
/**
|
|
805
790
|
* Exposes the standard supported motor states
|
|
806
791
|
*/
|
|
@@ -1030,7 +1015,7 @@ declare function createMotorMock(name: string, position: number): {
|
|
|
1030
1015
|
online: boolean;
|
|
1031
1016
|
};
|
|
1032
1017
|
|
|
1033
|
-
interface Props$
|
|
1018
|
+
interface Props$d {
|
|
1034
1019
|
name?: string;
|
|
1035
1020
|
minLimit?: number;
|
|
1036
1021
|
maxLimit?: number;
|
|
@@ -1043,23 +1028,21 @@ interface Props$e {
|
|
|
1043
1028
|
};
|
|
1044
1029
|
};
|
|
1045
1030
|
}
|
|
1046
|
-
declare function MotorSimulator(props: Props$
|
|
1031
|
+
declare function MotorSimulator(props: Props$d): react_jsx_runtime.JSX.Element;
|
|
1047
1032
|
|
|
1048
|
-
|
|
1049
|
-
|
|
1033
|
+
type MultipositionSchema = Hardware<{
|
|
1034
|
+
position: string;
|
|
1035
|
+
positions: {
|
|
1050
1036
|
position: string;
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
destination: number;
|
|
1057
|
-
tolerance: number;
|
|
1058
|
-
}[];
|
|
1037
|
+
description: string;
|
|
1038
|
+
target: {
|
|
1039
|
+
axis: string;
|
|
1040
|
+
destination: number;
|
|
1041
|
+
tolerance: number;
|
|
1059
1042
|
}[];
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
}
|
|
1043
|
+
}[];
|
|
1044
|
+
state: string;
|
|
1045
|
+
}>;
|
|
1063
1046
|
declare const Variants$g: HardwareVariant<MultipositionSchema>;
|
|
1064
1047
|
|
|
1065
1048
|
declare function Multiposition(props: HardwareWidgetProps<MultipositionSchema>): react_jsx_runtime.JSX.Element;
|
|
@@ -1090,23 +1073,22 @@ declare const Mocks$c: {
|
|
|
1090
1073
|
|
|
1091
1074
|
declare function MultipositionSimulator(props: PropsWithSimulator): react_jsx_runtime.JSX.Element;
|
|
1092
1075
|
|
|
1076
|
+
interface OpticProperties extends Record<string, unknown> {
|
|
1077
|
+
state: string;
|
|
1078
|
+
magnification: number;
|
|
1079
|
+
available_magnifications: number[] | null;
|
|
1080
|
+
/**
|
|
1081
|
+
* Target of the actual motion.
|
|
1082
|
+
*
|
|
1083
|
+
* If there is no motion, it is `null `.
|
|
1084
|
+
*/
|
|
1085
|
+
target_magnification: number | null;
|
|
1086
|
+
magnification_range: [number, number] | null;
|
|
1087
|
+
}
|
|
1093
1088
|
/**
|
|
1094
1089
|
* Hardware as exposed by Redux
|
|
1095
1090
|
*/
|
|
1096
|
-
|
|
1097
|
-
properties: {
|
|
1098
|
-
state: string;
|
|
1099
|
-
magnification: number;
|
|
1100
|
-
available_magnifications: number[] | null;
|
|
1101
|
-
/**
|
|
1102
|
-
* Target of the actual motion.
|
|
1103
|
-
*
|
|
1104
|
-
* If there is no motion, it is `null `.
|
|
1105
|
-
*/
|
|
1106
|
-
target_magnification: number | null;
|
|
1107
|
-
magnification_range: [number, number] | null;
|
|
1108
|
-
};
|
|
1109
|
-
}
|
|
1091
|
+
type OpticSchema = Hardware<OpticProperties>;
|
|
1110
1092
|
declare function isOpticHardware(entity: Hardware): entity is OpticSchema;
|
|
1111
1093
|
declare const Variants$f: HardwareVariant<OpticSchema>;
|
|
1112
1094
|
|
|
@@ -1188,19 +1170,17 @@ declare const Mocks$b: {
|
|
|
1188
1170
|
};
|
|
1189
1171
|
};
|
|
1190
1172
|
|
|
1191
|
-
interface Props$
|
|
1173
|
+
interface Props$c {
|
|
1192
1174
|
kind: 'fixed' | 'range' | 'multi';
|
|
1193
1175
|
}
|
|
1194
|
-
declare function OpticSimulator(props: PropsWithSimulator<Props$
|
|
1176
|
+
declare function OpticSimulator(props: PropsWithSimulator<Props$c>): react_jsx_runtime.JSX.Element;
|
|
1195
1177
|
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
};
|
|
1203
|
-
}
|
|
1178
|
+
type ProcedureSchema = Hardware<{
|
|
1179
|
+
state: string;
|
|
1180
|
+
previous_run_state: string;
|
|
1181
|
+
previous_run_exception: string | null;
|
|
1182
|
+
parameters: Record<string, any>;
|
|
1183
|
+
}>;
|
|
1204
1184
|
declare const Variants$e: HardwareVariant<ProcedureSchema>;
|
|
1205
1185
|
|
|
1206
1186
|
interface HardwareFromProcedure {
|
|
@@ -1219,6 +1199,15 @@ interface ExceptionFromProcedure {
|
|
|
1219
1199
|
message: string;
|
|
1220
1200
|
traceback: Record<string, any>;
|
|
1221
1201
|
}
|
|
1202
|
+
declare function isProcedureHardware(entity: Hardware): entity is ProcedureSchema;
|
|
1203
|
+
/**
|
|
1204
|
+
* Return a procedure from it's hardware name.
|
|
1205
|
+
*
|
|
1206
|
+
* Return `null` if the name refers to nothing or a mismatching hardware.
|
|
1207
|
+
*
|
|
1208
|
+
* @param name: An hardware identifier
|
|
1209
|
+
*/
|
|
1210
|
+
declare function useProcedureHardware(name: string | null): ProcedureSchema | null;
|
|
1222
1211
|
|
|
1223
1212
|
declare function ProcedureExecution(props: HardwareWidgetProps<ProcedureSchema>): react_jsx_runtime.JSX.Element;
|
|
1224
1213
|
|
|
@@ -1287,15 +1276,13 @@ declare const Mocks$a: {
|
|
|
1287
1276
|
};
|
|
1288
1277
|
};
|
|
1289
1278
|
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
};
|
|
1298
|
-
}
|
|
1279
|
+
type ShutterSchema = Hardware<{
|
|
1280
|
+
state: string;
|
|
1281
|
+
status: string;
|
|
1282
|
+
valid: boolean;
|
|
1283
|
+
open_text: string;
|
|
1284
|
+
closed_text: string;
|
|
1285
|
+
}>;
|
|
1299
1286
|
declare const Variants$d: HardwareVariant<ShutterSchema>;
|
|
1300
1287
|
|
|
1301
1288
|
declare function ShutterDefault(props: HardwareWidgetProps<ShutterSchema, HardwareWidgetOptions>): react_jsx_runtime.JSX.Element;
|
|
@@ -1331,16 +1318,14 @@ declare function ShutterSimulator(props: PropsWithSimulator): react_jsx_runtime.
|
|
|
1331
1318
|
/**
|
|
1332
1319
|
* Hardware as exposed by Redux
|
|
1333
1320
|
*/
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
};
|
|
1343
|
-
}
|
|
1321
|
+
type SlitSchema = Hardware<{
|
|
1322
|
+
state: string;
|
|
1323
|
+
type: 'vertical' | 'horizontal' | 'both';
|
|
1324
|
+
hgap: string;
|
|
1325
|
+
vgap: string;
|
|
1326
|
+
hoffset: string;
|
|
1327
|
+
voffset: string;
|
|
1328
|
+
}>;
|
|
1344
1329
|
interface SlitDefaultOptions extends HardwareWidgetOptions {
|
|
1345
1330
|
/** Number of decimals to show */
|
|
1346
1331
|
precision?: number;
|
|
@@ -1397,16 +1382,14 @@ declare const Mocks$8: {
|
|
|
1397
1382
|
/**
|
|
1398
1383
|
* Hardware as exposed by Redux
|
|
1399
1384
|
*/
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
};
|
|
1409
|
-
}
|
|
1385
|
+
type PumpSchema = Hardware<{
|
|
1386
|
+
state: string;
|
|
1387
|
+
status: string;
|
|
1388
|
+
pressure: number;
|
|
1389
|
+
voltage: number;
|
|
1390
|
+
current: number;
|
|
1391
|
+
unit?: string;
|
|
1392
|
+
}>;
|
|
1410
1393
|
declare const Variants$b: HardwareVariant<PumpSchema>;
|
|
1411
1394
|
|
|
1412
1395
|
interface PumpWidgetOptions extends HardwareWidgetOptions {
|
|
@@ -1437,11 +1420,9 @@ declare const Mocks$7: {
|
|
|
1437
1420
|
/**
|
|
1438
1421
|
* Hardware as exposed by Redux
|
|
1439
1422
|
*/
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
};
|
|
1444
|
-
}
|
|
1423
|
+
type PusherSchema = Hardware<{
|
|
1424
|
+
state: string;
|
|
1425
|
+
}>;
|
|
1445
1426
|
declare const Variants$a: HardwareVariant<PusherSchema>;
|
|
1446
1427
|
|
|
1447
1428
|
declare function Pusher(props: HardwareWidgetProps<PusherSchema, HardwareWidgetOptions>): react_jsx_runtime.JSX.Element;
|
|
@@ -1470,11 +1451,9 @@ declare function PusherSimulator(props: PropsWithSimulator): react_jsx_runtime.J
|
|
|
1470
1451
|
/**
|
|
1471
1452
|
* Hardware as exposed by Redux
|
|
1472
1453
|
*/
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
};
|
|
1477
|
-
}
|
|
1454
|
+
type ServiceSchema = Hardware<{
|
|
1455
|
+
state: 'STOPPED' | 'STARTING' | 'RUNNING' | 'BACKOFF' | 'STOPPING' | 'EXITED' | 'FATAL' | 'UNKNOWN';
|
|
1456
|
+
}>;
|
|
1478
1457
|
declare const Variants$9: HardwareVariant<ServiceSchema>;
|
|
1479
1458
|
|
|
1480
1459
|
declare function ServiceDefault(props: HardwareWidgetProps<ServiceSchema, HardwareWidgetOptions>): react_jsx_runtime.JSX.Element;
|
|
@@ -1510,19 +1489,18 @@ interface TomoFlatMotionStep {
|
|
|
1510
1489
|
absolute_position: number | null;
|
|
1511
1490
|
relative_position: number | null;
|
|
1512
1491
|
}
|
|
1492
|
+
interface TomoFlatMotionProperties extends Record<string, unknown> {
|
|
1493
|
+
state: 'READY';
|
|
1494
|
+
available_axes: string[];
|
|
1495
|
+
motion: TomoFlatMotionStep[];
|
|
1496
|
+
move_in_parallel: boolean;
|
|
1497
|
+
power_onoff: boolean;
|
|
1498
|
+
settle_time: number;
|
|
1499
|
+
}
|
|
1513
1500
|
/**
|
|
1514
1501
|
* Hardware as exposed by Redux
|
|
1515
1502
|
*/
|
|
1516
|
-
|
|
1517
|
-
properties: {
|
|
1518
|
-
state: 'READY';
|
|
1519
|
-
available_axes: string[];
|
|
1520
|
-
motion: TomoFlatMotionStep[];
|
|
1521
|
-
move_in_parallel: boolean;
|
|
1522
|
-
power_onoff: boolean;
|
|
1523
|
-
settle_time: number;
|
|
1524
|
-
};
|
|
1525
|
-
}
|
|
1503
|
+
type TomoFlatMotionSchema = Hardware<TomoFlatMotionProperties>;
|
|
1526
1504
|
declare const Variants$8: HardwareVariant<TomoFlatMotionSchema>;
|
|
1527
1505
|
|
|
1528
1506
|
declare function isTomoFlatMotionHardware(entity: Hardware): entity is TomoFlatMotionSchema;
|
|
@@ -1608,9 +1586,7 @@ declare function TomoFlatMotionSimulator(props: PropsWithSimulator): react_jsx_r
|
|
|
1608
1586
|
/**
|
|
1609
1587
|
* Hardware as exposed by Redux
|
|
1610
1588
|
*/
|
|
1611
|
-
|
|
1612
|
-
properties: Record<string, never>;
|
|
1613
|
-
}
|
|
1589
|
+
type TomoReferencePositionSchema = Hardware<Record<string, never>>;
|
|
1614
1590
|
declare function isTomoReferencePositionHardware(entity: Hardware): entity is TomoReferencePositionSchema;
|
|
1615
1591
|
declare const Variants$7: HardwareVariant<TomoReferencePositionSchema>;
|
|
1616
1592
|
|
|
@@ -1619,19 +1595,17 @@ declare function TomoReferencePositionDefault(props: HardwareWidgetProps<TomoRef
|
|
|
1619
1595
|
/**
|
|
1620
1596
|
* Hardware as exposed by Redux
|
|
1621
1597
|
*/
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
};
|
|
1634
|
-
}
|
|
1598
|
+
type TomoDetectorSchema = Hardware<{
|
|
1599
|
+
state: string;
|
|
1600
|
+
user_sample_pixel_size: number | null;
|
|
1601
|
+
sample_pixel_size_mode: string;
|
|
1602
|
+
sample_pixel_size: number | null;
|
|
1603
|
+
field_of_view: number;
|
|
1604
|
+
detector: string;
|
|
1605
|
+
optic: string;
|
|
1606
|
+
source_distance: number | null;
|
|
1607
|
+
acq_mode: 'MANUAL' | 'SINGLE' | 'ACCUMULATION';
|
|
1608
|
+
}>;
|
|
1635
1609
|
declare const Variants$6: HardwareVariant<TomoDetectorSchema>;
|
|
1636
1610
|
|
|
1637
1611
|
declare function isTomoDetectorHardware(entity: Hardware): entity is TomoDetectorSchema;
|
|
@@ -1669,14 +1643,12 @@ declare const Mocks$3: {
|
|
|
1669
1643
|
/**
|
|
1670
1644
|
* Hardware as exposed by Redux
|
|
1671
1645
|
*/
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
};
|
|
1679
|
-
}
|
|
1646
|
+
type TomoDetectorsSchema = Hardware<{
|
|
1647
|
+
state: string;
|
|
1648
|
+
detectors: string[];
|
|
1649
|
+
active_detector: string;
|
|
1650
|
+
target_detector?: string;
|
|
1651
|
+
}>;
|
|
1680
1652
|
declare const Variants$5: HardwareVariant<TomoDetectorsSchema>;
|
|
1681
1653
|
|
|
1682
1654
|
declare function isTomoDetectorsHardware(entity: Hardware): entity is TomoDetectorsSchema;
|
|
@@ -1707,14 +1679,12 @@ declare const Mocks$2: {
|
|
|
1707
1679
|
/**
|
|
1708
1680
|
* Hardware as exposed by Redux
|
|
1709
1681
|
*/
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
};
|
|
1717
|
-
}
|
|
1682
|
+
type TomoImagingSchema = Hardware<{
|
|
1683
|
+
state: string;
|
|
1684
|
+
update_on_move: boolean;
|
|
1685
|
+
exposure_time: number;
|
|
1686
|
+
settle_time: number;
|
|
1687
|
+
}>;
|
|
1718
1688
|
declare const Variants$4: HardwareVariant<TomoImagingSchema>;
|
|
1719
1689
|
|
|
1720
1690
|
declare function TomoImagingActions(props: HardwareWidgetProps<TomoImagingSchema>): react_jsx_runtime.JSX.Element;
|
|
@@ -1752,20 +1722,18 @@ declare function TomoImagingSimulator(props: PropsWithSimulator): react_jsx_runt
|
|
|
1752
1722
|
/**
|
|
1753
1723
|
* Hardware as exposed by Redux
|
|
1754
1724
|
*/
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
};
|
|
1768
|
-
}
|
|
1725
|
+
type TomoSampleStageSchema = Hardware<{
|
|
1726
|
+
sx: string;
|
|
1727
|
+
sy: string;
|
|
1728
|
+
sz: string;
|
|
1729
|
+
somega: string;
|
|
1730
|
+
sampx: string;
|
|
1731
|
+
sampy: string;
|
|
1732
|
+
sampu: string;
|
|
1733
|
+
sampv: string;
|
|
1734
|
+
x_axis_focal_pos: number | null;
|
|
1735
|
+
detector_center: [number | null, number | null];
|
|
1736
|
+
}>;
|
|
1769
1737
|
declare const Variants$3: HardwareVariant<TomoSampleStageSchema>;
|
|
1770
1738
|
|
|
1771
1739
|
declare function isTomoSampleStageHardware(entity: Hardware): entity is TomoSampleStageSchema;
|
|
@@ -1774,15 +1742,13 @@ declare function useTomoSampleStageHardware(name: string | null): TomoSampleStag
|
|
|
1774
1742
|
/**
|
|
1775
1743
|
* Hardware as exposed by Redux
|
|
1776
1744
|
*/
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
};
|
|
1785
|
-
}
|
|
1745
|
+
type TomoConfigSchema = Hardware<{
|
|
1746
|
+
sample_stage: string;
|
|
1747
|
+
sxbeam: string;
|
|
1748
|
+
detectors: string;
|
|
1749
|
+
holotomo: string;
|
|
1750
|
+
latency_time: number;
|
|
1751
|
+
}>;
|
|
1786
1752
|
declare const Variants$2: HardwareVariant<TomoConfigSchema>;
|
|
1787
1753
|
|
|
1788
1754
|
declare function isTomoConfigHardware(entity: Hardware): entity is TomoConfigSchema;
|
|
@@ -1798,15 +1764,13 @@ interface TomoHoloDistance {
|
|
|
1798
1764
|
/**
|
|
1799
1765
|
* Hardware as exposed by Redux
|
|
1800
1766
|
*/
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
};
|
|
1809
|
-
}
|
|
1767
|
+
type TomoHoloSchema = Hardware<{
|
|
1768
|
+
state: string;
|
|
1769
|
+
settle_time: number;
|
|
1770
|
+
pixel_size: number | null;
|
|
1771
|
+
nb_distances: number;
|
|
1772
|
+
distances: TomoHoloDistance[];
|
|
1773
|
+
}>;
|
|
1810
1774
|
declare const Variants$1: HardwareVariant<TomoHoloSchema>;
|
|
1811
1775
|
|
|
1812
1776
|
declare function isTomoHoloHardware(entity: Hardware): entity is TomoHoloSchema;
|
|
@@ -1819,12 +1783,10 @@ declare function TomoHoloState(props: {
|
|
|
1819
1783
|
/**
|
|
1820
1784
|
* Hardware as exposed by Redux
|
|
1821
1785
|
*/
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
};
|
|
1827
|
-
}
|
|
1786
|
+
type ValveSchema = Hardware<{
|
|
1787
|
+
state: string;
|
|
1788
|
+
status: string;
|
|
1789
|
+
}>;
|
|
1828
1790
|
declare const Variants: HardwareVariant<ValveSchema>;
|
|
1829
1791
|
|
|
1830
1792
|
declare function Valve(props: HardwareWidgetProps<ValveSchema>): react_jsx_runtime.JSX.Element;
|
|
@@ -1845,7 +1807,7 @@ declare const Mocks: {
|
|
|
1845
1807
|
};
|
|
1846
1808
|
};
|
|
1847
1809
|
|
|
1848
|
-
interface Props$
|
|
1810
|
+
interface Props$b {
|
|
1849
1811
|
online: boolean;
|
|
1850
1812
|
activeMessage?: string;
|
|
1851
1813
|
inactiveMessage?: string;
|
|
@@ -1853,9 +1815,9 @@ interface Props$c {
|
|
|
1853
1815
|
icon: string;
|
|
1854
1816
|
name: string;
|
|
1855
1817
|
}
|
|
1856
|
-
declare function TypeIcon(props: Props$
|
|
1818
|
+
declare function TypeIcon(props: Props$b): react_jsx_runtime.JSX.Element;
|
|
1857
1819
|
|
|
1858
|
-
interface Props$
|
|
1820
|
+
interface Props$a {
|
|
1859
1821
|
hardware: Hardware;
|
|
1860
1822
|
headerMode?: string;
|
|
1861
1823
|
widgetIcon: ReactElement;
|
|
@@ -1866,7 +1828,7 @@ interface Props$b {
|
|
|
1866
1828
|
* Normalized way to compose hardware component in order to provide the same
|
|
1867
1829
|
* kind of layout
|
|
1868
1830
|
*/
|
|
1869
|
-
declare function HardwareTemplate(props: Props$
|
|
1831
|
+
declare function HardwareTemplate(props: Props$a): react_jsx_runtime.JSX.Element;
|
|
1870
1832
|
|
|
1871
1833
|
/**
|
|
1872
1834
|
* Input number synchronized with a hardware.
|
|
@@ -2045,12 +2007,12 @@ interface NoObjectProps {
|
|
|
2045
2007
|
}
|
|
2046
2008
|
declare function NoObject(props: NoObjectProps): react_jsx_runtime.JSX.Element;
|
|
2047
2009
|
|
|
2048
|
-
interface Props$
|
|
2010
|
+
interface Props$9 {
|
|
2049
2011
|
className?: string;
|
|
2050
2012
|
}
|
|
2051
|
-
declare function FullSizer(props: PropsWithChildren<Props$
|
|
2013
|
+
declare function FullSizer(props: PropsWithChildren<Props$9>): react_jsx_runtime.JSX.Element;
|
|
2052
2014
|
|
|
2053
|
-
interface Props$
|
|
2015
|
+
interface Props$8 {
|
|
2054
2016
|
step?: number | string;
|
|
2055
2017
|
steps?: (number | string)[];
|
|
2056
2018
|
disabled: boolean;
|
|
@@ -2073,7 +2035,7 @@ interface Props$9 {
|
|
|
2073
2035
|
}) => void;
|
|
2074
2036
|
onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
2075
2037
|
}
|
|
2076
|
-
declare const NumericStep: React$1.ForwardRefExoticComponent<Props$
|
|
2038
|
+
declare const NumericStep: React$1.ForwardRefExoticComponent<Props$8 & React$1.RefAttributes<HTMLInputElement>>;
|
|
2077
2039
|
|
|
2078
2040
|
declare function PanelHeader(props: PropsWithChildren<{
|
|
2079
2041
|
style?: Record<string, any>;
|
|
@@ -2082,12 +2044,12 @@ declare function PanelContents(props: PropsWithChildren<{
|
|
|
2082
2044
|
style?: Record<string, any>;
|
|
2083
2045
|
className?: string;
|
|
2084
2046
|
}>): react_jsx_runtime.JSX.Element;
|
|
2085
|
-
interface Props$
|
|
2047
|
+
interface Props$7 {
|
|
2086
2048
|
style?: Record<string, any>;
|
|
2087
2049
|
scroll?: boolean;
|
|
2088
2050
|
className?: string;
|
|
2089
2051
|
}
|
|
2090
|
-
declare function Panel(props: PropsWithChildren<Props$
|
|
2052
|
+
declare function Panel(props: PropsWithChildren<Props$7>): react_jsx_runtime.JSX.Element;
|
|
2091
2053
|
declare namespace Panel {
|
|
2092
2054
|
var Header: typeof PanelHeader;
|
|
2093
2055
|
var Contents: typeof PanelContents;
|
|
@@ -2116,18 +2078,19 @@ interface YamlComponent$1 {
|
|
|
2116
2078
|
[option: string]: unknown;
|
|
2117
2079
|
}
|
|
2118
2080
|
|
|
2119
|
-
interface Props$
|
|
2081
|
+
interface Props$6 {
|
|
2120
2082
|
yamlNode: AnyYamlNode;
|
|
2121
2083
|
panel: boolean;
|
|
2122
2084
|
}
|
|
2123
|
-
declare function YamlRow({ yamlNode, panel }: Props$
|
|
2085
|
+
declare function YamlRow({ yamlNode, panel }: Props$6): react_jsx_runtime.JSX.Element;
|
|
2124
2086
|
|
|
2125
|
-
interface Props$
|
|
2087
|
+
interface Props$5 {
|
|
2126
2088
|
yamlNode: AnyYamlNode;
|
|
2127
2089
|
panel: boolean;
|
|
2128
2090
|
}
|
|
2129
|
-
declare function YamlCol({ yamlNode, panel }: Props$
|
|
2091
|
+
declare function YamlCol({ yamlNode, panel }: Props$5): react_jsx_runtime.JSX.Element;
|
|
2130
2092
|
|
|
2093
|
+
declare const componentMap: Record<string, React__default.ComponentType<any>>;
|
|
2131
2094
|
declare function registerComponent(name: string, component: React__default.ComponentType<any>): void;
|
|
2132
2095
|
declare function registerComponents(map: Record<string, React__default.ComponentType<any>>): void;
|
|
2133
2096
|
interface YamlComponentNode extends YamlNode {
|
|
@@ -2142,16 +2105,16 @@ declare function YamlComponent(props: {
|
|
|
2142
2105
|
panel: boolean;
|
|
2143
2106
|
}): react_jsx_runtime.JSX.Element;
|
|
2144
2107
|
|
|
2145
|
-
interface Props$
|
|
2108
|
+
interface Props$4 {
|
|
2146
2109
|
yamlNode: {
|
|
2147
2110
|
children: any[];
|
|
2148
2111
|
options?: Record<string, any>;
|
|
2149
2112
|
};
|
|
2150
2113
|
panel: boolean;
|
|
2151
2114
|
}
|
|
2152
|
-
declare function YamlContainer({ yamlNode, panel }: Props$
|
|
2115
|
+
declare function YamlContainer({ yamlNode, panel }: Props$4): react_jsx_runtime.JSX.Element;
|
|
2153
2116
|
|
|
2154
|
-
interface Props$
|
|
2117
|
+
interface Props$3 {
|
|
2155
2118
|
yamlNode: {
|
|
2156
2119
|
children: any[];
|
|
2157
2120
|
options?: Record<string, any>;
|
|
@@ -2159,9 +2122,9 @@ interface Props$4 {
|
|
|
2159
2122
|
};
|
|
2160
2123
|
panel: boolean;
|
|
2161
2124
|
}
|
|
2162
|
-
declare function YamlPanel(props: Props$
|
|
2125
|
+
declare function YamlPanel(props: Props$3): ReactElement;
|
|
2163
2126
|
|
|
2164
|
-
interface Props$
|
|
2127
|
+
interface Props$2 {
|
|
2165
2128
|
yamlNode: {
|
|
2166
2129
|
children: any[];
|
|
2167
2130
|
options?: Record<string, any>;
|
|
@@ -2169,7 +2132,7 @@ interface Props$3 {
|
|
|
2169
2132
|
};
|
|
2170
2133
|
panel: boolean;
|
|
2171
2134
|
}
|
|
2172
|
-
declare function YamlTabs({ yamlNode, panel }: Props$
|
|
2135
|
+
declare function YamlTabs({ yamlNode, panel }: Props$2): react_jsx_runtime.JSX.Element;
|
|
2173
2136
|
|
|
2174
2137
|
interface YamlFormHeaderNode extends YamlNode {
|
|
2175
2138
|
type: 'formheader';
|
|
@@ -2211,30 +2174,24 @@ declare function YamlGrid(props: {
|
|
|
2211
2174
|
panel: boolean;
|
|
2212
2175
|
}): react_jsx_runtime.JSX.Element;
|
|
2213
2176
|
|
|
2214
|
-
|
|
2215
|
-
yamlNode: {
|
|
2216
|
-
children: any[];
|
|
2217
|
-
options?: {
|
|
2218
|
-
[name: string]: any;
|
|
2219
|
-
scroll?: boolean;
|
|
2220
|
-
style?: Record<string, any>;
|
|
2221
|
-
};
|
|
2222
|
-
label?: string;
|
|
2223
|
-
};
|
|
2224
|
-
panel: boolean;
|
|
2225
|
-
}
|
|
2226
|
-
declare function YamlLabel({ yamlNode, panel }: Props$2): react_jsx_runtime.JSX.Element;
|
|
2227
|
-
|
|
2228
|
-
declare const yamlMap: {
|
|
2177
|
+
declare const yamlContainers: {
|
|
2229
2178
|
row: typeof YamlRow;
|
|
2230
2179
|
col: typeof YamlCol;
|
|
2231
2180
|
container: typeof YamlContainer;
|
|
2181
|
+
panel: typeof YamlPanel;
|
|
2182
|
+
tabs: typeof YamlTabs;
|
|
2183
|
+
form: typeof YamlForm;
|
|
2184
|
+
grid: typeof YamlGrid;
|
|
2185
|
+
};
|
|
2186
|
+
declare const yamlMap: {
|
|
2232
2187
|
component: typeof YamlComponent;
|
|
2188
|
+
row: typeof YamlRow;
|
|
2189
|
+
col: typeof YamlCol;
|
|
2190
|
+
container: typeof YamlContainer;
|
|
2233
2191
|
panel: typeof YamlPanel;
|
|
2234
2192
|
tabs: typeof YamlTabs;
|
|
2235
2193
|
form: typeof YamlForm;
|
|
2236
2194
|
grid: typeof YamlGrid;
|
|
2237
|
-
label: typeof YamlLabel;
|
|
2238
2195
|
};
|
|
2239
2196
|
interface Props$1 {
|
|
2240
2197
|
testid: string;
|
|
@@ -2323,7 +2280,7 @@ declare namespace asserts_d {
|
|
|
2323
2280
|
}
|
|
2324
2281
|
|
|
2325
2282
|
interface RuntimeHooks {
|
|
2326
|
-
useHardware?: (id: string | null) =>
|
|
2283
|
+
useHardware?: (id: string | null) => AnyHardware | null;
|
|
2327
2284
|
useHardwareChangeActions?: (name: string | null) => HardwareChangeActions;
|
|
2328
2285
|
}
|
|
2329
2286
|
declare function registerRuntimeHook(hooks: Partial<RuntimeHooks>): void;
|
|
@@ -2383,4 +2340,4 @@ interface MonitorPanelItemProps {
|
|
|
2383
2340
|
}
|
|
2384
2341
|
declare function MonitorPanelItem(props: PropsWithChildren<MonitorPanelItemProps>): react_jsx_runtime.JSX.Element;
|
|
2385
2342
|
|
|
2386
|
-
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$2 as LimaDescription, TomoDetectorSize$1 as LimaImageRoi, Mocks$f as LimaMocks, type LimaSchema, LimaRoiShape as LimaShape, LimaSimulator, TomoDetectorSize as LimaSize, LimaState, 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$
|
|
2343
|
+
export { type ActuatorSchema, AirBearing, Mocks$l as AirBearingMocks, AirBearingProtected, type AirBearingSchema, AirBearingSimulator, AirBearingState, Variants$p as AirBearingVariants, type AnyHardware, type AnySchema, type BaseHardware, 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$2 as LimaDescription, TomoDetectorSize$1 as LimaImageRoi, Mocks$f as LimaMocks, type LimaSchema, LimaRoiShape as LimaShape, LimaSimulator, TomoDetectorSize as LimaSize, LimaState, 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$b 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, componentMap, createMotorMock, dynamicOp, isLimaHardware, isMotorHardware, isOpticHardware, isProcedureHardware, isTomoConfigHardware, isTomoDetectorHardware, isTomoDetectorsHardware, isTomoFlatMotionHardware, isTomoHoloHardware, isTomoReferencePositionHardware, isTomoSampleStageHardware, limaGuessSubframes, registerHardwareComponent, registerMonitorComponent, registerRuntimeHook, registerComponent as registerYamlComponent, registerComponents as registerYamlComponents, registerYamlType, renderYamlNode, useLimaHardware, useMotorHardware, useMotorStates, useProcedureHardware, useTomoConfigHardware, useTomoDetectorHardware, useTomoDetectorsHardware, useTomoFlatMotionHardware, useTomoHoloHardware, useTomoSampleStageHardware, yamlContainers, yamlMap };
|