@esrf/daiquiri-lib 4.0.1 → 5.0.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 +324 -184
- package/dist/index.js +12 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3543 -2767
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
- package/src/scss/_gauge.scss +28 -0
- package/src/scss/_monitorpanel.scss +4 -3
- package/src/scss/main.scss +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { JSONSchema7 } from 'json-schema';
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import react__default, { ComponentType, ReactElement, PropsWithChildren, ReactNode, ChangeEvent, KeyboardEvent, Component } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { YamlComponent as YamlComponent$
|
|
6
|
+
import { YamlComponent as YamlComponent$1 } from '@esrf/daiquiri-lib';
|
|
7
7
|
|
|
8
8
|
interface HardwareError {
|
|
9
9
|
property: string;
|
|
@@ -14,6 +14,19 @@ interface HardwareSchemaDescription {
|
|
|
14
14
|
properties: JSONSchema7;
|
|
15
15
|
callables: JSONSchema7;
|
|
16
16
|
}
|
|
17
|
+
interface LockDescription {
|
|
18
|
+
/**
|
|
19
|
+
* A unique key for identification purpose.
|
|
20
|
+
*
|
|
21
|
+
* It actually mangles BLISS object id, role,
|
|
22
|
+
* and PID of the owner process.
|
|
23
|
+
*
|
|
24
|
+
* For example `srot_move,pid:26567`
|
|
25
|
+
*
|
|
26
|
+
* In the future this will be split into meaningful information.
|
|
27
|
+
*/
|
|
28
|
+
reason: string;
|
|
29
|
+
}
|
|
17
30
|
interface BaseHardware<O = boolean, P extends Record<string, any> = Record<string, never>> {
|
|
18
31
|
/** Object name */
|
|
19
32
|
name: string;
|
|
@@ -28,7 +41,7 @@ interface BaseHardware<O = boolean, P extends Record<string, any> = Record<strin
|
|
|
28
41
|
/** Whether the device is available */
|
|
29
42
|
online: O;
|
|
30
43
|
/** The reason why the hardware is locked, else null */
|
|
31
|
-
locked:
|
|
44
|
+
locked: LockDescription | null;
|
|
32
45
|
/** The object type as defined by the REST API */
|
|
33
46
|
type: string;
|
|
34
47
|
/** Any potential errors initialising this object */
|
|
@@ -75,10 +88,39 @@ interface HardwareWidgetProps<H extends Hardware = Hardware, O extends HardwareW
|
|
|
75
88
|
/** True if the session have the control */
|
|
76
89
|
operator: boolean;
|
|
77
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* Options propagated from the monitor yaml description.
|
|
93
|
+
*
|
|
94
|
+
* It is used for the monitor defined by the hardware.
|
|
95
|
+
*
|
|
96
|
+
* FIXME: Rework the hardware variant variants to specialize
|
|
97
|
+
* and drop HardwareWidgetOptions.
|
|
98
|
+
*/
|
|
99
|
+
interface HardwareMonitorOptions extends HardwareWidgetOptions {
|
|
100
|
+
/**
|
|
101
|
+
* Override the name of the hardware.
|
|
102
|
+
*/
|
|
103
|
+
name?: string;
|
|
104
|
+
}
|
|
78
105
|
type HardwareComponentType<H extends Hardware = Hardware> = ComponentType<HardwareWidgetProps<H, any>>;
|
|
79
106
|
interface HardwareVariant<H extends Hardware = Hardware> {
|
|
80
107
|
[name: string]: HardwareComponentType<H>;
|
|
81
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* TODO: Add a description
|
|
111
|
+
*/
|
|
112
|
+
interface HardwareObjectProps {
|
|
113
|
+
id: string;
|
|
114
|
+
options: {
|
|
115
|
+
variant?: string;
|
|
116
|
+
header?: string;
|
|
117
|
+
width?: number;
|
|
118
|
+
colWidth?: number;
|
|
119
|
+
emptyifnone?: boolean;
|
|
120
|
+
};
|
|
121
|
+
propertiesSchema?: Record<string, unknown>;
|
|
122
|
+
callablesSchema?: Record<string, unknown>;
|
|
123
|
+
}
|
|
82
124
|
|
|
83
125
|
type types_d_AnyHardware = AnyHardware;
|
|
84
126
|
type types_d_BaseHardware<O = boolean, P extends Record<string, any> = Record<string, never>> = BaseHardware<O, P>;
|
|
@@ -87,14 +129,17 @@ type types_d_EditableHardwareWidgetOptions = EditableHardwareWidgetOptions;
|
|
|
87
129
|
type types_d_Hardware<P extends Record<string, unknown> = Record<string, any>> = Hardware<P>;
|
|
88
130
|
type types_d_HardwareChangeActions = HardwareChangeActions;
|
|
89
131
|
type types_d_HardwareComponentType<H extends Hardware = Hardware> = HardwareComponentType<H>;
|
|
132
|
+
type types_d_HardwareMonitorOptions = HardwareMonitorOptions;
|
|
133
|
+
type types_d_HardwareObjectProps = HardwareObjectProps;
|
|
90
134
|
type types_d_HardwareSchemaDescription = HardwareSchemaDescription;
|
|
91
135
|
type types_d_HardwareVariant<H extends Hardware = Hardware> = HardwareVariant<H>;
|
|
92
136
|
type types_d_HardwareWidgetOptions = HardwareWidgetOptions;
|
|
93
137
|
type types_d_HardwareWidgetProps<H extends Hardware = Hardware, O extends HardwareWidgetOptions = HardwareWidgetOptions> = HardwareWidgetProps<H, O>;
|
|
138
|
+
type types_d_LockDescription = LockDescription;
|
|
94
139
|
type types_d_OfflineHardware = OfflineHardware;
|
|
95
140
|
type types_d_OnlineHardware<P extends Record<string, any> = Record<string, never>> = OnlineHardware<P>;
|
|
96
141
|
declare namespace types_d {
|
|
97
|
-
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 };
|
|
142
|
+
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_HardwareMonitorOptions as HardwareMonitorOptions, types_d_HardwareObjectProps as HardwareObjectProps, types_d_HardwareSchemaDescription as HardwareSchemaDescription, types_d_HardwareVariant as HardwareVariant, types_d_HardwareWidgetOptions as HardwareWidgetOptions, types_d_HardwareWidgetProps as HardwareWidgetProps, types_d_LockDescription as LockDescription, types_d_OfflineHardware as OfflineHardware, types_d_OnlineHardware as OnlineHardware };
|
|
98
143
|
}
|
|
99
144
|
|
|
100
145
|
/**
|
|
@@ -113,9 +158,9 @@ declare namespace schema_d {
|
|
|
113
158
|
export type { schema_d_AnySchema as AnySchema, schema_d_GenericSchema as GenericSchema };
|
|
114
159
|
}
|
|
115
160
|
|
|
116
|
-
declare const Variants$
|
|
161
|
+
declare const Variants$r: HardwareVariant<AnySchema>;
|
|
117
162
|
|
|
118
|
-
declare const Mocks$
|
|
163
|
+
declare const Mocks$n: {
|
|
119
164
|
default: {
|
|
120
165
|
response: {
|
|
121
166
|
callables: never[];
|
|
@@ -253,7 +298,7 @@ type ActuatorSchema = Hardware<{
|
|
|
253
298
|
type AirBearingSchema = Hardware<{
|
|
254
299
|
state: string;
|
|
255
300
|
}>;
|
|
256
|
-
declare const Variants$
|
|
301
|
+
declare const Variants$q: HardwareVariant<AirBearingSchema>;
|
|
257
302
|
|
|
258
303
|
declare function AirBearing(props: HardwareWidgetProps<AirBearingSchema, HardwareWidgetOptions>): react_jsx_runtime.JSX.Element;
|
|
259
304
|
|
|
@@ -263,7 +308,7 @@ declare function AirBearingState(props: {
|
|
|
263
308
|
hardware: AirBearingSchema;
|
|
264
309
|
}): react_jsx_runtime.JSX.Element;
|
|
265
310
|
|
|
266
|
-
declare const Mocks$
|
|
311
|
+
declare const Mocks$m: {
|
|
267
312
|
default: {
|
|
268
313
|
callables: string[];
|
|
269
314
|
id: string;
|
|
@@ -291,6 +336,40 @@ type PropsWithSimulator<P = Record<string, never>> = P & {
|
|
|
291
336
|
|
|
292
337
|
declare function AirBearingSimulator(props: PropsWithSimulator): react_jsx_runtime.JSX.Element;
|
|
293
338
|
|
|
339
|
+
type EnergyManagerSchema = Hardware<{
|
|
340
|
+
energy: number | null;
|
|
341
|
+
unit: string;
|
|
342
|
+
available_source_names: string[];
|
|
343
|
+
source: string;
|
|
344
|
+
}>;
|
|
345
|
+
declare const Variants$p: HardwareVariant<EnergyManagerSchema>;
|
|
346
|
+
|
|
347
|
+
declare function EnergyManagerDefault(props: HardwareWidgetProps<EnergyManagerSchema>): react_jsx_runtime.JSX.Element;
|
|
348
|
+
|
|
349
|
+
declare function EnergyManagerState(props: {
|
|
350
|
+
hardware: EnergyManagerSchema;
|
|
351
|
+
}): react_jsx_runtime.JSX.Element;
|
|
352
|
+
|
|
353
|
+
declare const Mocks$l: {
|
|
354
|
+
default: {
|
|
355
|
+
callables: never[];
|
|
356
|
+
id: string;
|
|
357
|
+
name: string;
|
|
358
|
+
online: boolean;
|
|
359
|
+
properties: {
|
|
360
|
+
energy: number;
|
|
361
|
+
unit: string;
|
|
362
|
+
available_source_names: string[];
|
|
363
|
+
source: string;
|
|
364
|
+
};
|
|
365
|
+
protocol: string;
|
|
366
|
+
require_staff: boolean;
|
|
367
|
+
type: string;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
declare function EnergyManagerSimulator(props: PropsWithSimulator): react_jsx_runtime.JSX.Element;
|
|
372
|
+
|
|
294
373
|
type FrontendSchema = Hardware<{
|
|
295
374
|
state: string;
|
|
296
375
|
status: string;
|
|
@@ -349,7 +428,7 @@ interface GaugeWidgetOptions extends HardwareWidgetOptions {
|
|
|
349
428
|
/** Precision to show, default 3 */
|
|
350
429
|
precision?: number;
|
|
351
430
|
}
|
|
352
|
-
declare function Gauge(props: HardwareWidgetProps<GaugeSchema, GaugeWidgetOptions>): react_jsx_runtime.JSX.Element;
|
|
431
|
+
declare function Gauge$1(props: HardwareWidgetProps<GaugeSchema, GaugeWidgetOptions>): react_jsx_runtime.JSX.Element;
|
|
353
432
|
|
|
354
433
|
declare const Mocks$j: {
|
|
355
434
|
default: {
|
|
@@ -808,6 +887,18 @@ declare function isMotorHardware(entity: Hardware): entity is MotorSchema;
|
|
|
808
887
|
*/
|
|
809
888
|
declare function useMotorHardware(name: string | null): MotorSchema | null;
|
|
810
889
|
declare const Variants$h: HardwareVariant<MotorSchema>;
|
|
890
|
+
/**
|
|
891
|
+
* True if the motor positon is clock wise.
|
|
892
|
+
*
|
|
893
|
+
* This is based on dial metadata, and user sign.
|
|
894
|
+
*/
|
|
895
|
+
declare function isMotorClockWise(hardware: MotorSchema, options?: {
|
|
896
|
+
clockwise?: boolean;
|
|
897
|
+
}): boolean;
|
|
898
|
+
/**
|
|
899
|
+
* Normalize the limits as finite values or `undefined`.
|
|
900
|
+
*/
|
|
901
|
+
declare function motorLimits(hardware: MotorSchema): [number | undefined, number | undefined];
|
|
811
902
|
|
|
812
903
|
interface MotorDefaultOptions extends HardwareWidgetOptions {
|
|
813
904
|
/** Default step size to use for up / down arrows */
|
|
@@ -834,6 +925,12 @@ interface MotorDefaultOptions extends HardwareWidgetOptions {
|
|
|
834
925
|
horizontalarrows?: boolean;
|
|
835
926
|
/** Show large step arrows */
|
|
836
927
|
largearrows?: boolean;
|
|
928
|
+
/**
|
|
929
|
+
* Enforce the way the positive direction is displayed.
|
|
930
|
+
*
|
|
931
|
+
* For example this can change the behavior of a knob representation.
|
|
932
|
+
*/
|
|
933
|
+
clockwise?: boolean;
|
|
837
934
|
}
|
|
838
935
|
|
|
839
936
|
/**
|
|
@@ -846,6 +943,8 @@ declare function MotorDefault(props: HardwareWidgetProps<MotorSchema, MotorDefau
|
|
|
846
943
|
*/
|
|
847
944
|
declare function MotorText(props: HardwareWidgetProps<MotorSchema, MotorDefaultOptions>): react_jsx_runtime.JSX.Element;
|
|
848
945
|
|
|
946
|
+
declare function MotorRotation(props: HardwareWidgetProps<MotorSchema, MotorDefaultOptions>): react_jsx_runtime.JSX.Element;
|
|
947
|
+
|
|
849
948
|
/**
|
|
850
949
|
* A motor have a set of flags as state.
|
|
851
950
|
*
|
|
@@ -994,7 +1093,7 @@ declare function createMotorMock(name: string, position: number): {
|
|
|
994
1093
|
online: boolean;
|
|
995
1094
|
};
|
|
996
1095
|
|
|
997
|
-
interface Props$
|
|
1096
|
+
interface Props$9 {
|
|
998
1097
|
name?: string;
|
|
999
1098
|
minLimit?: number;
|
|
1000
1099
|
maxLimit?: number;
|
|
@@ -1007,7 +1106,7 @@ interface Props$d {
|
|
|
1007
1106
|
};
|
|
1008
1107
|
};
|
|
1009
1108
|
}
|
|
1010
|
-
declare function MotorSimulator(props: Props$
|
|
1109
|
+
declare function MotorSimulator(props: Props$9): react_jsx_runtime.JSX.Element;
|
|
1011
1110
|
|
|
1012
1111
|
type MultipositionSchema = Hardware<{
|
|
1013
1112
|
position: string;
|
|
@@ -1149,10 +1248,10 @@ declare const Mocks$b: {
|
|
|
1149
1248
|
};
|
|
1150
1249
|
};
|
|
1151
1250
|
|
|
1152
|
-
interface Props$
|
|
1251
|
+
interface Props$8 {
|
|
1153
1252
|
kind: 'fixed' | 'range' | 'multi';
|
|
1154
1253
|
}
|
|
1155
|
-
declare function OpticSimulator(props: PropsWithSimulator<Props$
|
|
1254
|
+
declare function OpticSimulator(props: PropsWithSimulator<Props$8>): react_jsx_runtime.JSX.Element;
|
|
1156
1255
|
|
|
1157
1256
|
type ProcedureSchema = Hardware<{
|
|
1158
1257
|
state: string;
|
|
@@ -1188,7 +1287,20 @@ declare function useProcedureHardware(name: string | null): ProcedureSchema | nu
|
|
|
1188
1287
|
|
|
1189
1288
|
declare function ProcedureExecution(props: HardwareWidgetProps<ProcedureSchema>): react_jsx_runtime.JSX.Element;
|
|
1190
1289
|
|
|
1191
|
-
|
|
1290
|
+
interface ProcedureOptions extends HardwareWidgetOptions {
|
|
1291
|
+
/**
|
|
1292
|
+
* If true, execute the procedure in the BLISS session foreground.
|
|
1293
|
+
*
|
|
1294
|
+
* As result, the terminal first have to be available to
|
|
1295
|
+
* start the procedure, else it fails.
|
|
1296
|
+
*
|
|
1297
|
+
* Also, as it takes the prompt, it is visible by the users,
|
|
1298
|
+
* so they have to kill or to wait for the end before doing
|
|
1299
|
+
* anything else.
|
|
1300
|
+
*/
|
|
1301
|
+
foreground?: boolean;
|
|
1302
|
+
}
|
|
1303
|
+
declare function ProcedureManage(props: HardwareWidgetProps<ProcedureSchema, ProcedureOptions>): react_jsx_runtime.JSX.Element;
|
|
1192
1304
|
|
|
1193
1305
|
declare function ProcedureValidate(props: HardwareWidgetProps<ProcedureSchema>): react_jsx_runtime.JSX.Element;
|
|
1194
1306
|
|
|
@@ -1288,6 +1400,22 @@ declare const Mocks$9: {
|
|
|
1288
1400
|
require_staff: boolean;
|
|
1289
1401
|
type: string;
|
|
1290
1402
|
};
|
|
1403
|
+
closed: {
|
|
1404
|
+
callables: string[];
|
|
1405
|
+
id: string;
|
|
1406
|
+
name: string;
|
|
1407
|
+
online: boolean;
|
|
1408
|
+
properties: {
|
|
1409
|
+
closed_text: string;
|
|
1410
|
+
open_text: string;
|
|
1411
|
+
state: string;
|
|
1412
|
+
status: string;
|
|
1413
|
+
valid: boolean;
|
|
1414
|
+
};
|
|
1415
|
+
protocol: string;
|
|
1416
|
+
require_staff: boolean;
|
|
1417
|
+
type: string;
|
|
1418
|
+
};
|
|
1291
1419
|
};
|
|
1292
1420
|
|
|
1293
1421
|
declare function ShutterSimulator(props: PropsWithSimulator): react_jsx_runtime.JSX.Element;
|
|
@@ -1796,7 +1924,7 @@ declare const Mocks: {
|
|
|
1796
1924
|
};
|
|
1797
1925
|
};
|
|
1798
1926
|
|
|
1799
|
-
interface Props$
|
|
1927
|
+
interface Props$7 {
|
|
1800
1928
|
online: boolean;
|
|
1801
1929
|
activeMessage?: string;
|
|
1802
1930
|
inactiveMessage?: string;
|
|
@@ -1804,9 +1932,9 @@ interface Props$b {
|
|
|
1804
1932
|
icon: string;
|
|
1805
1933
|
name: string;
|
|
1806
1934
|
}
|
|
1807
|
-
declare function TypeIcon(props: Props$
|
|
1935
|
+
declare function TypeIcon(props: Props$7): react_jsx_runtime.JSX.Element;
|
|
1808
1936
|
|
|
1809
|
-
interface Props$
|
|
1937
|
+
interface Props$6 {
|
|
1810
1938
|
hardware: Hardware;
|
|
1811
1939
|
headerMode?: string;
|
|
1812
1940
|
widgetIcon: ReactElement;
|
|
@@ -1817,7 +1945,7 @@ interface Props$a {
|
|
|
1817
1945
|
* Normalized way to compose hardware component in order to provide the same
|
|
1818
1946
|
* kind of layout
|
|
1819
1947
|
*/
|
|
1820
|
-
declare function HardwareTemplate(props: Props$
|
|
1948
|
+
declare function HardwareTemplate(props: Props$6): react_jsx_runtime.JSX.Element;
|
|
1821
1949
|
|
|
1822
1950
|
/**
|
|
1823
1951
|
* Input number synchronized with a hardware.
|
|
@@ -1882,7 +2010,7 @@ declare function HardwareNumericStep(props: {
|
|
|
1882
2010
|
* If `minWidth` is pecified (in `em`) it ensure the widget width will stay the
|
|
1883
2011
|
* same when the state change
|
|
1884
2012
|
*/
|
|
1885
|
-
declare function
|
|
2013
|
+
declare function State$1(props: {
|
|
1886
2014
|
state: string;
|
|
1887
2015
|
variant: string;
|
|
1888
2016
|
minWidth?: number;
|
|
@@ -1898,19 +2026,13 @@ declare function HardwareState(props: {
|
|
|
1898
2026
|
* If `minWidth` is pecified (in `em`) it ensure the widget width will stay the
|
|
1899
2027
|
* same when the state change
|
|
1900
2028
|
*/
|
|
1901
|
-
declare function
|
|
2029
|
+
declare function MultiState(props: {
|
|
1902
2030
|
states: string[];
|
|
1903
2031
|
variants?: Record<string, string>;
|
|
1904
2032
|
descriptions?: Record<string, string>;
|
|
1905
2033
|
minWidth?: number;
|
|
1906
2034
|
}): react_jsx_runtime.JSX.Element;
|
|
1907
2035
|
|
|
1908
|
-
declare const State_d_HardwareMultiState: typeof HardwareMultiState;
|
|
1909
|
-
declare const State_d_HardwareState: typeof HardwareState;
|
|
1910
|
-
declare namespace State_d {
|
|
1911
|
-
export { State_d_HardwareMultiState as HardwareMultiState, State_d_HardwareState as HardwareState };
|
|
1912
|
-
}
|
|
1913
|
-
|
|
1914
2036
|
declare function formatEng(scalar: number): {
|
|
1915
2037
|
scalar: number;
|
|
1916
2038
|
prefix: string;
|
|
@@ -1996,12 +2118,42 @@ interface NoObjectProps {
|
|
|
1996
2118
|
}
|
|
1997
2119
|
declare function NoObject(props: NoObjectProps): react_jsx_runtime.JSX.Element;
|
|
1998
2120
|
|
|
1999
|
-
interface Props$
|
|
2121
|
+
interface Props$5 {
|
|
2000
2122
|
className?: string;
|
|
2001
2123
|
}
|
|
2002
|
-
declare function FullSizer(props: PropsWithChildren<Props$
|
|
2124
|
+
declare function FullSizer(props: PropsWithChildren<Props$5>): react_jsx_runtime.JSX.Element;
|
|
2003
2125
|
|
|
2004
|
-
interface Props$
|
|
2126
|
+
interface Props$4 {
|
|
2127
|
+
size: number;
|
|
2128
|
+
value?: number | null;
|
|
2129
|
+
target?: number | null;
|
|
2130
|
+
min?: number;
|
|
2131
|
+
max?: number;
|
|
2132
|
+
disabled?: boolean;
|
|
2133
|
+
readOnly?: boolean;
|
|
2134
|
+
origin?: 'up' | 'down' | 'left' | 'right';
|
|
2135
|
+
direction?: 'clockwise' | 'anticlockwise';
|
|
2136
|
+
onChange?: (value: number) => void;
|
|
2137
|
+
onInteractiveChange?: (value: number) => void;
|
|
2138
|
+
className: string;
|
|
2139
|
+
}
|
|
2140
|
+
/**
|
|
2141
|
+
* Widget to handle cyclic angle value in degree displayed as an infinite knob
|
|
2142
|
+
*/
|
|
2143
|
+
declare function InfiniteKnob360(props: Props$4): react_jsx_runtime.JSX.Element;
|
|
2144
|
+
|
|
2145
|
+
declare function Gauge(props: {
|
|
2146
|
+
size: number;
|
|
2147
|
+
value: number | null;
|
|
2148
|
+
min: number;
|
|
2149
|
+
max: number;
|
|
2150
|
+
lowWarning?: number;
|
|
2151
|
+
hiWarning?: number;
|
|
2152
|
+
lowDanger?: number;
|
|
2153
|
+
hiDanger?: number;
|
|
2154
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2155
|
+
|
|
2156
|
+
interface Props$3 {
|
|
2005
2157
|
step?: number | string;
|
|
2006
2158
|
steps?: (number | string)[];
|
|
2007
2159
|
disabled: boolean;
|
|
@@ -2024,7 +2176,7 @@ interface Props$8 {
|
|
|
2024
2176
|
}) => void;
|
|
2025
2177
|
onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
2026
2178
|
}
|
|
2027
|
-
declare const NumericStep:
|
|
2179
|
+
declare const NumericStep: react.ForwardRefExoticComponent<Props$3 & react.RefAttributes<HTMLInputElement>>;
|
|
2028
2180
|
|
|
2029
2181
|
declare function PanelHeader(props: PropsWithChildren<{
|
|
2030
2182
|
style?: Record<string, any>;
|
|
@@ -2033,20 +2185,33 @@ declare function PanelContents(props: PropsWithChildren<{
|
|
|
2033
2185
|
style?: Record<string, any>;
|
|
2034
2186
|
className?: string;
|
|
2035
2187
|
}>): react_jsx_runtime.JSX.Element;
|
|
2036
|
-
interface Props$
|
|
2188
|
+
interface Props$2 {
|
|
2037
2189
|
style?: Record<string, any>;
|
|
2038
2190
|
scroll?: boolean;
|
|
2039
2191
|
className?: string;
|
|
2040
2192
|
}
|
|
2041
|
-
declare function Panel(props: PropsWithChildren<Props$
|
|
2193
|
+
declare function Panel(props: PropsWithChildren<Props$2>): react_jsx_runtime.JSX.Element;
|
|
2042
2194
|
declare namespace Panel {
|
|
2043
2195
|
var Header: typeof PanelHeader;
|
|
2044
2196
|
var Contents: typeof PanelContents;
|
|
2045
2197
|
}
|
|
2046
2198
|
|
|
2047
|
-
declare function Yaml$1(props: YamlComponent$
|
|
2199
|
+
declare function Yaml$1(props: YamlComponent$1): react_jsx_runtime.JSX.Element;
|
|
2200
|
+
|
|
2201
|
+
declare function Yaml(props: YamlComponent$1): react_jsx_runtime.JSX.Element;
|
|
2048
2202
|
|
|
2049
|
-
|
|
2203
|
+
/**
|
|
2204
|
+
* Component which display the state of a hardware.
|
|
2205
|
+
*
|
|
2206
|
+
* It is based on the type of the hardware, and fallback to the
|
|
2207
|
+
* `AnyHardwareState` component if no components are available.
|
|
2208
|
+
*/
|
|
2209
|
+
declare function HardwareState(props: {
|
|
2210
|
+
hardware: AnyHardware | null;
|
|
2211
|
+
options?: {
|
|
2212
|
+
emptyifnone?: boolean;
|
|
2213
|
+
};
|
|
2214
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2050
2215
|
|
|
2051
2216
|
interface YamlNode {
|
|
2052
2217
|
type: string;
|
|
@@ -2061,127 +2226,12 @@ interface YamlRoot extends YamlNode {
|
|
|
2061
2226
|
interface AnyYamlNode extends YamlNode {
|
|
2062
2227
|
[key: string]: any;
|
|
2063
2228
|
}
|
|
2064
|
-
interface YamlComponent
|
|
2229
|
+
interface YamlComponent {
|
|
2065
2230
|
providers?: Record<string, any>;
|
|
2066
2231
|
yamlNode: YamlNode;
|
|
2067
2232
|
[option: string]: unknown;
|
|
2068
2233
|
}
|
|
2069
2234
|
|
|
2070
|
-
interface Props$6 {
|
|
2071
|
-
yamlNode: AnyYamlNode;
|
|
2072
|
-
panel: boolean;
|
|
2073
|
-
}
|
|
2074
|
-
declare function YamlRow({ yamlNode, panel }: Props$6): react_jsx_runtime.JSX.Element;
|
|
2075
|
-
|
|
2076
|
-
interface Props$5 {
|
|
2077
|
-
yamlNode: AnyYamlNode;
|
|
2078
|
-
panel: boolean;
|
|
2079
|
-
}
|
|
2080
|
-
declare function YamlCol({ yamlNode, panel }: Props$5): react_jsx_runtime.JSX.Element;
|
|
2081
|
-
|
|
2082
|
-
declare const componentMap: Record<string, React__default.ComponentType<any>>;
|
|
2083
|
-
declare function registerComponent(name: string, component: React__default.ComponentType<any>): void;
|
|
2084
|
-
declare function registerComponents(map: Record<string, React__default.ComponentType<any>>): void;
|
|
2085
|
-
interface YamlComponentNode extends YamlNode {
|
|
2086
|
-
type: string;
|
|
2087
|
-
[name: string]: any;
|
|
2088
|
-
scroll?: boolean;
|
|
2089
|
-
style?: Record<string, any>;
|
|
2090
|
-
title?: string;
|
|
2091
|
-
}
|
|
2092
|
-
declare function YamlComponent(props: {
|
|
2093
|
-
yamlNode: YamlComponentNode;
|
|
2094
|
-
panel: boolean;
|
|
2095
|
-
}): react_jsx_runtime.JSX.Element;
|
|
2096
|
-
|
|
2097
|
-
interface Props$4 {
|
|
2098
|
-
yamlNode: {
|
|
2099
|
-
children: any[];
|
|
2100
|
-
options?: Record<string, any>;
|
|
2101
|
-
};
|
|
2102
|
-
panel: boolean;
|
|
2103
|
-
}
|
|
2104
|
-
declare function YamlContainer({ yamlNode, panel }: Props$4): react_jsx_runtime.JSX.Element;
|
|
2105
|
-
|
|
2106
|
-
interface Props$3 {
|
|
2107
|
-
yamlNode: {
|
|
2108
|
-
children: any[];
|
|
2109
|
-
options?: Record<string, any>;
|
|
2110
|
-
title?: string;
|
|
2111
|
-
};
|
|
2112
|
-
panel: boolean;
|
|
2113
|
-
}
|
|
2114
|
-
declare function YamlPanel(props: Props$3): ReactElement;
|
|
2115
|
-
|
|
2116
|
-
interface Props$2 {
|
|
2117
|
-
yamlNode: {
|
|
2118
|
-
children: any[];
|
|
2119
|
-
options?: Record<string, any>;
|
|
2120
|
-
title: string;
|
|
2121
|
-
};
|
|
2122
|
-
panel: boolean;
|
|
2123
|
-
}
|
|
2124
|
-
declare function YamlTabs({ yamlNode, panel }: Props$2): react_jsx_runtime.JSX.Element;
|
|
2125
|
-
|
|
2126
|
-
interface YamlFormHeaderNode extends YamlNode {
|
|
2127
|
-
type: 'formheader';
|
|
2128
|
-
title?: string;
|
|
2129
|
-
}
|
|
2130
|
-
interface YamlFormRowNode extends YamlNode {
|
|
2131
|
-
type: string;
|
|
2132
|
-
title: string;
|
|
2133
|
-
component?: string;
|
|
2134
|
-
stateinheader?: boolean;
|
|
2135
|
-
titlealign?: string;
|
|
2136
|
-
id?: string;
|
|
2137
|
-
variant?: string;
|
|
2138
|
-
options?: Record<string, any>;
|
|
2139
|
-
even: boolean;
|
|
2140
|
-
}
|
|
2141
|
-
interface YamlFormNode extends YamlNode {
|
|
2142
|
-
children: (YamlFormHeaderNode | YamlFormRowNode)[];
|
|
2143
|
-
title?: string;
|
|
2144
|
-
[key: string]: any;
|
|
2145
|
-
}
|
|
2146
|
-
declare function YamlForm(props: {
|
|
2147
|
-
yamlNode: YamlFormNode;
|
|
2148
|
-
panel: boolean;
|
|
2149
|
-
}): react_jsx_runtime.JSX.Element;
|
|
2150
|
-
|
|
2151
|
-
interface YamlGridNode extends YamlNode {
|
|
2152
|
-
children: YamlGridCellNode[];
|
|
2153
|
-
title?: string;
|
|
2154
|
-
columns?: string;
|
|
2155
|
-
rows?: string;
|
|
2156
|
-
}
|
|
2157
|
-
interface YamlGridCellNode extends YamlNode {
|
|
2158
|
-
columnSpan?: number;
|
|
2159
|
-
rowSpan?: number;
|
|
2160
|
-
}
|
|
2161
|
-
declare function YamlGrid(props: {
|
|
2162
|
-
yamlNode: YamlGridNode;
|
|
2163
|
-
panel: boolean;
|
|
2164
|
-
}): react_jsx_runtime.JSX.Element;
|
|
2165
|
-
|
|
2166
|
-
declare const yamlContainers: {
|
|
2167
|
-
row: typeof YamlRow;
|
|
2168
|
-
col: typeof YamlCol;
|
|
2169
|
-
container: typeof YamlContainer;
|
|
2170
|
-
panel: typeof YamlPanel;
|
|
2171
|
-
tabs: typeof YamlTabs;
|
|
2172
|
-
form: typeof YamlForm;
|
|
2173
|
-
grid: typeof YamlGrid;
|
|
2174
|
-
};
|
|
2175
|
-
declare const yamlMap: {
|
|
2176
|
-
component: typeof YamlComponent;
|
|
2177
|
-
row: typeof YamlRow;
|
|
2178
|
-
col: typeof YamlCol;
|
|
2179
|
-
container: typeof YamlContainer;
|
|
2180
|
-
panel: typeof YamlPanel;
|
|
2181
|
-
tabs: typeof YamlTabs;
|
|
2182
|
-
form: typeof YamlForm;
|
|
2183
|
-
grid: typeof YamlGrid;
|
|
2184
|
-
};
|
|
2185
2235
|
interface Props$1 {
|
|
2186
2236
|
testid: string;
|
|
2187
2237
|
layout: YamlRoot;
|
|
@@ -2199,7 +2249,7 @@ interface State {
|
|
|
2199
2249
|
interface Props {
|
|
2200
2250
|
resetKey?: any;
|
|
2201
2251
|
unhandledComponentDidCatch?: (error: Error, setStateCallback: (data: Record<string, any>) => void) => void;
|
|
2202
|
-
UnhandledErrorComponent?:
|
|
2252
|
+
UnhandledErrorComponent?: react__default.ComponentType<any>;
|
|
2203
2253
|
}
|
|
2204
2254
|
declare class ErrorBoundary extends Component<PropsWithChildren<Props>, State> {
|
|
2205
2255
|
constructor(props: Props);
|
|
@@ -2209,13 +2259,9 @@ declare class ErrorBoundary extends Component<PropsWithChildren<Props>, State> {
|
|
|
2209
2259
|
private readonly reload;
|
|
2210
2260
|
componentDidCatch(error: Error): void;
|
|
2211
2261
|
componentDidUpdate(prevProps: Props, prevState: State): void;
|
|
2212
|
-
render(): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<
|
|
2262
|
+
render(): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<react__default.ReactNode> | null | undefined;
|
|
2213
2263
|
}
|
|
2214
2264
|
|
|
2215
|
-
/**
|
|
2216
|
-
* Register the Yaml type with the component used to render this Yaml node.
|
|
2217
|
-
*/
|
|
2218
|
-
declare function registerYamlType(name: string, component: React.ComponentType<any>): void;
|
|
2219
2265
|
/**
|
|
2220
2266
|
* Render a Yaml node using registred component from the node type
|
|
2221
2267
|
*/
|
|
@@ -2234,6 +2280,29 @@ declare class KeyError extends LayoutError {
|
|
|
2234
2280
|
constructor(yamlNode: YamlNode, key: string, message: string);
|
|
2235
2281
|
}
|
|
2236
2282
|
|
|
2283
|
+
/**
|
|
2284
|
+
* Store the mapping from Yaml `type` to React component handling the
|
|
2285
|
+
* rendering of such Yaml node
|
|
2286
|
+
*/
|
|
2287
|
+
declare const yamlContainers: Record<string, ComponentType<any>>;
|
|
2288
|
+
/**
|
|
2289
|
+
* Register the Yaml type with the component used to render this Yaml node.
|
|
2290
|
+
*/
|
|
2291
|
+
declare function registerYamlContainer(name: string, component: ComponentType<any>): void;
|
|
2292
|
+
declare const yamlComponents: Record<string, ComponentType<any>>;
|
|
2293
|
+
/**
|
|
2294
|
+
* Register a yaml component.
|
|
2295
|
+
*
|
|
2296
|
+
* Such component is wrapped inside a `Panel`.
|
|
2297
|
+
*/
|
|
2298
|
+
declare function registerYamlComponent(name: string, component: ComponentType<any>): void;
|
|
2299
|
+
/**
|
|
2300
|
+
* Register multiple yaml components.
|
|
2301
|
+
*
|
|
2302
|
+
* Such components are wrapped inside a `Panel`.
|
|
2303
|
+
*/
|
|
2304
|
+
declare function registerYamlComponents(map: Record<string, ComponentType<any>>): void;
|
|
2305
|
+
|
|
2237
2306
|
type Defined<T> = T extends undefined ? never : T;
|
|
2238
2307
|
declare function assertKeyExpected<T>(yamlNode: YamlNode | undefined, key: string, value: T): asserts value is Defined<T>;
|
|
2239
2308
|
declare function assertString(yamlNode: YamlNode, key: string, value: any): asserts value is string;
|
|
@@ -2250,14 +2319,52 @@ declare function assertOptionalListOfType<Y>(yamlNode: YamlNode, key: string, va
|
|
|
2250
2319
|
declare function assertNoUnknownKeys(yamlNode: YamlNode | undefined, remainingContent: Record<string, any>): void;
|
|
2251
2320
|
declare function assertDataCollectionId(yamlNode: YamlNode, key: string, value: unknown): asserts value is number | 'last';
|
|
2252
2321
|
declare function assertOptionalBackend(yamlNode: YamlNode, key: string, value: unknown): asserts value is 'plotly' | 'h5web' | undefined;
|
|
2253
|
-
|
|
2322
|
+
/**
|
|
2323
|
+
* Assert function for generic 'args' as used in python
|
|
2324
|
+
* function with `*args`.
|
|
2325
|
+
*
|
|
2326
|
+
* The argument is validated as a list of unknown items.
|
|
2327
|
+
*/
|
|
2328
|
+
declare function assertOptionalArgs(yamlNode: YamlNode, key: string, value: unknown): asserts value is unknown[] | undefined;
|
|
2329
|
+
/**
|
|
2330
|
+
* Assert function for generic 'kwargs' as used in python
|
|
2331
|
+
* function with `**kwargs`.
|
|
2332
|
+
*
|
|
2333
|
+
* The argument is validated as a record from string to unknown values.
|
|
2334
|
+
*/
|
|
2335
|
+
declare function assertOptionalKwargs(yamlNode: YamlNode, key: string, value: unknown): asserts value is Record<string, unknown> | undefined;
|
|
2336
|
+
/**
|
|
2337
|
+
* Type a schema from it;s typescript description.
|
|
2338
|
+
*
|
|
2339
|
+
* See `assertStringMappingRecord`
|
|
2340
|
+
*/
|
|
2341
|
+
type Schema<T> = Record<keyof T, (yamlNode: YamlNode, key: string, value: unknown) => void>;
|
|
2342
|
+
/**
|
|
2343
|
+
* Assert function for generic record of string.
|
|
2344
|
+
*
|
|
2345
|
+
* Can be used as the basis of a specific assertion.
|
|
2346
|
+
*
|
|
2347
|
+
* The argument is validated as a record from string to unknown values.
|
|
2348
|
+
*
|
|
2349
|
+
* @param options: Parsing parameters
|
|
2350
|
+
*/
|
|
2351
|
+
declare function assertStringMappingRecord<T extends Partial<Record<string, any>>>(yamlNode: YamlNode, key: string, value: unknown, options: {
|
|
2352
|
+
/** If true, the value can be `undefined` */
|
|
2353
|
+
optional?: boolean;
|
|
2354
|
+
/** Mapping from expected keys to the relative assert function */
|
|
2355
|
+
schema: Record<string, (yamlNode: YamlNode, key: string, value: unknown) => void>;
|
|
2356
|
+
}): asserts value is T;
|
|
2357
|
+
|
|
2358
|
+
type asserts_d_Schema<T> = Schema<T>;
|
|
2254
2359
|
declare const asserts_d_assertBoolean: typeof assertBoolean;
|
|
2255
2360
|
declare const asserts_d_assertDataCollectionId: typeof assertDataCollectionId;
|
|
2256
2361
|
declare const asserts_d_assertKeyExpected: typeof assertKeyExpected;
|
|
2257
2362
|
declare const asserts_d_assertNoUnknownKeys: typeof assertNoUnknownKeys;
|
|
2258
2363
|
declare const asserts_d_assertNumber: typeof assertNumber;
|
|
2364
|
+
declare const asserts_d_assertOptionalArgs: typeof assertOptionalArgs;
|
|
2259
2365
|
declare const asserts_d_assertOptionalBackend: typeof assertOptionalBackend;
|
|
2260
2366
|
declare const asserts_d_assertOptionalBoolean: typeof assertOptionalBoolean;
|
|
2367
|
+
declare const asserts_d_assertOptionalKwargs: typeof assertOptionalKwargs;
|
|
2261
2368
|
declare const asserts_d_assertOptionalListOfType: typeof assertOptionalListOfType;
|
|
2262
2369
|
declare const asserts_d_assertOptionalNumber: typeof assertOptionalNumber;
|
|
2263
2370
|
declare const asserts_d_assertOptionalNumberList: typeof assertOptionalNumberList;
|
|
@@ -2266,8 +2373,9 @@ declare const asserts_d_assertOptionalStringList: typeof assertOptionalStringLis
|
|
|
2266
2373
|
declare const asserts_d_assertOptionalStringOrStringList: typeof assertOptionalStringOrStringList;
|
|
2267
2374
|
declare const asserts_d_assertString: typeof assertString;
|
|
2268
2375
|
declare const asserts_d_assertStringList: typeof assertStringList;
|
|
2376
|
+
declare const asserts_d_assertStringMappingRecord: typeof assertStringMappingRecord;
|
|
2269
2377
|
declare namespace asserts_d {
|
|
2270
|
-
export { asserts_d_assertBoolean as assertBoolean, asserts_d_assertDataCollectionId as assertDataCollectionId, asserts_d_assertKeyExpected as assertKeyExpected, asserts_d_assertNoUnknownKeys as assertNoUnknownKeys, asserts_d_assertNumber as assertNumber, asserts_d_assertOptionalBackend as assertOptionalBackend, asserts_d_assertOptionalBoolean as assertOptionalBoolean, asserts_d_assertOptionalListOfType as assertOptionalListOfType, asserts_d_assertOptionalNumber as assertOptionalNumber, asserts_d_assertOptionalNumberList as assertOptionalNumberList, asserts_d_assertOptionalString as assertOptionalString, asserts_d_assertOptionalStringList as assertOptionalStringList, asserts_d_assertOptionalStringOrStringList as assertOptionalStringOrStringList, asserts_d_assertString as assertString, asserts_d_assertStringList as assertStringList };
|
|
2378
|
+
export { type asserts_d_Schema as Schema, asserts_d_assertBoolean as assertBoolean, asserts_d_assertDataCollectionId as assertDataCollectionId, asserts_d_assertKeyExpected as assertKeyExpected, asserts_d_assertNoUnknownKeys as assertNoUnknownKeys, asserts_d_assertNumber as assertNumber, asserts_d_assertOptionalArgs as assertOptionalArgs, asserts_d_assertOptionalBackend as assertOptionalBackend, asserts_d_assertOptionalBoolean as assertOptionalBoolean, asserts_d_assertOptionalKwargs as assertOptionalKwargs, asserts_d_assertOptionalListOfType as assertOptionalListOfType, asserts_d_assertOptionalNumber as assertOptionalNumber, asserts_d_assertOptionalNumberList as assertOptionalNumberList, asserts_d_assertOptionalString as assertOptionalString, asserts_d_assertOptionalStringList as assertOptionalStringList, asserts_d_assertOptionalStringOrStringList as assertOptionalStringOrStringList, asserts_d_assertString as assertString, asserts_d_assertStringList as assertStringList, asserts_d_assertStringMappingRecord as assertStringMappingRecord };
|
|
2271
2379
|
}
|
|
2272
2380
|
|
|
2273
2381
|
interface RuntimeHooks {
|
|
@@ -2317,40 +2425,40 @@ declare function useOperator(): boolean;
|
|
|
2317
2425
|
*/
|
|
2318
2426
|
declare function useScanRunning(): boolean;
|
|
2319
2427
|
|
|
2320
|
-
interface HardwareObjectProps {
|
|
2321
|
-
id: string;
|
|
2322
|
-
options: {
|
|
2323
|
-
variant?: string;
|
|
2324
|
-
header?: string;
|
|
2325
|
-
width?: number;
|
|
2326
|
-
colWidth?: number;
|
|
2327
|
-
emptyifnone?: boolean;
|
|
2328
|
-
};
|
|
2329
|
-
propertiesSchema?: Record<string, unknown>;
|
|
2330
|
-
callablesSchema?: Record<string, unknown>;
|
|
2331
|
-
}
|
|
2332
|
-
|
|
2333
|
-
type HardwareObject_d_HardwareObjectProps = HardwareObjectProps;
|
|
2334
|
-
declare namespace HardwareObject_d {
|
|
2335
|
-
export type { HardwareObject_d_HardwareObjectProps as HardwareObjectProps };
|
|
2336
|
-
}
|
|
2337
|
-
|
|
2338
|
-
/**
|
|
2339
|
-
* Register the Yaml type with the component used to render this Yaml node.
|
|
2340
|
-
*/
|
|
2341
|
-
declare function registerHardwareComponent(name: string, component: React.ComponentType<any>): void;
|
|
2342
|
-
|
|
2343
2428
|
interface Monitor {
|
|
2429
|
+
/**
|
|
2430
|
+
* Similar to a title
|
|
2431
|
+
*/
|
|
2344
2432
|
name: string;
|
|
2433
|
+
/**
|
|
2434
|
+
* Describe the kind of widget.
|
|
2435
|
+
*
|
|
2436
|
+
* NOTE: New components can be registered with `registerMonitorComponent`
|
|
2437
|
+
*/
|
|
2345
2438
|
type?: string;
|
|
2439
|
+
/**
|
|
2440
|
+
* For hardwareproperty monitor
|
|
2441
|
+
*/
|
|
2346
2442
|
value: string;
|
|
2347
2443
|
overlay?: string;
|
|
2348
2444
|
comparator?: string;
|
|
2349
2445
|
comparison?: any;
|
|
2350
2446
|
unit?: string;
|
|
2447
|
+
/**
|
|
2448
|
+
* For hardware monitor
|
|
2449
|
+
*/
|
|
2450
|
+
id?: string;
|
|
2351
2451
|
}
|
|
2352
2452
|
|
|
2353
2453
|
declare const dynamicOp: (op: string, a1: any, b1: any) => boolean | undefined;
|
|
2454
|
+
declare function MonitorHardwareProperty(props: {
|
|
2455
|
+
monitor: Monitor;
|
|
2456
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
* HardwareMonitor which provide callback to get the
|
|
2460
|
+
* component from the hardware type.
|
|
2461
|
+
*/
|
|
2354
2462
|
declare function MonitorHardware(props: {
|
|
2355
2463
|
monitor: Monitor;
|
|
2356
2464
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -2362,8 +2470,40 @@ interface MonitorPanelProps {
|
|
|
2362
2470
|
bg?: 'light' | null;
|
|
2363
2471
|
}
|
|
2364
2472
|
declare function MonitorPanel(props: MonitorPanelProps): react_jsx_runtime.JSX.Element;
|
|
2473
|
+
|
|
2365
2474
|
interface MonitorPanelItemProps {
|
|
2475
|
+
className?: string;
|
|
2476
|
+
style?: Record<string, unknown>;
|
|
2366
2477
|
}
|
|
2367
|
-
|
|
2478
|
+
/**
|
|
2479
|
+
* Component for any item displayed in the monitor panel.
|
|
2480
|
+
*
|
|
2481
|
+
* The implementation with `forwardRef` and `...rest` allow
|
|
2482
|
+
* to use it inside a `OverlayTrigger`
|
|
2483
|
+
*
|
|
2484
|
+
* @param rest: Passthough to allow to wrap the component inside
|
|
2485
|
+
* OverlayTrigger. It contains callbacks.
|
|
2486
|
+
*/
|
|
2487
|
+
declare const MonitorPanelItem: react.ForwardRefExoticComponent<MonitorPanelItemProps & {
|
|
2488
|
+
children?: react.ReactNode;
|
|
2489
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
2490
|
+
|
|
2491
|
+
/**
|
|
2492
|
+
* Register an hardware variant.
|
|
2493
|
+
*/
|
|
2494
|
+
declare function registerHardwareVariant(type: string, variant: string, component: HardwareComponentType<AnySchema>): void;
|
|
2495
|
+
/**
|
|
2496
|
+
* Return a hardware variant component.
|
|
2497
|
+
*
|
|
2498
|
+
* - Check first if a hardware type and variant
|
|
2499
|
+
* is registered, return it.
|
|
2500
|
+
* - Else, check if the 'base' type and variant
|
|
2501
|
+
* is registered, return it
|
|
2502
|
+
* - Else, return null
|
|
2503
|
+
*
|
|
2504
|
+
* @param type: Type of the hardware
|
|
2505
|
+
* @param variant: Variant requested
|
|
2506
|
+
*/
|
|
2507
|
+
declare function getHardwareVariantComponent(type: string, variant: string): HardwareComponentType | null;
|
|
2368
2508
|
|
|
2369
|
-
export { type ActuatorSchema, AirBearing, Mocks$
|
|
2509
|
+
export { type ActuatorSchema, AirBearing, Mocks$m as AirBearingMocks, AirBearingProtected, type AirBearingSchema, AirBearingSimulator, AirBearingState, Variants$q as AirBearingVariants, type AnyHardware, type AnySchema, type BaseHardware, Info as BaseInfo, type BaseInfoWidgetOptions, Mocks$n as BaseMocks, Name as BaseName, type BaseNameWidgetOptions, Property as BaseProperty, type BasePropertyWidgetOptions, DefaultState as BaseState, Variants$r as BaseVariants, EnergyManagerDefault, Mocks$l as EnergyManagerMocks, type EnergyManagerSchema, EnergyManagerSimulator, EnergyManagerState, Variants$p as EnergyManagerVariants, ErrorObject, type ExceptionFromProcedure, formatting_d as Formatting, Frontend, Mocks$k as FrontendMocks, type FrontendSchema, Variants$o as FrontendVariants, FullSizer, Gauge$1 as Gauge, Gauge as GaugeIndicator, Mocks$j as GaugeMocks, type GaugeSchema, Variants$n as GaugeVariants, type GaugeWidgetOptions, type GenericSchema, type Hardware, type HardwareComponentType, type HardwareFromProcedure, HardwareInputNumber, HardwareNumericStep, type HardwareObjectProps, schema_d as HardwareSchema, HardwareState, HardwareTemplate, types_d as HardwareTypes, type HardwareVariant, InfiniteKnob360, 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, MonitorHardwareProperty, MonitorPanel, MonitorPanelItem, type MonitorPanelProps, MotorDefault, type MotorDefaultOptions, Mocks$d as MotorMocks, MotorRotation, type MotorSchema, MotorSimulator, MotorState, MotorText, Variants$h as MotorVariants, MultiState, 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, State$1 as State, 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$7 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, type YamlNode, createMotorMock, dynamicOp, getHardwareVariantComponent, isLimaHardware, isMotorClockWise, isMotorHardware, isOpticHardware, isProcedureHardware, isTomoConfigHardware, isTomoDetectorHardware, isTomoDetectorsHardware, isTomoFlatMotionHardware, isTomoHoloHardware, isTomoReferencePositionHardware, isTomoSampleStageHardware, limaGuessSubframes, motorLimits, registerHardwareVariant, registerMonitorComponent, registerRuntimeHook, registerYamlComponent, registerYamlComponents, registerYamlContainer, renderYamlNode, useHardware, useHardwareChangeActions, useHardwareSchema, useLimaHardware, useMotorHardware, useMotorStates, useOperator, useProcedureHardware, useScanRunning, useTomoConfigHardware, useTomoDetectorHardware, useTomoDetectorsHardware, useTomoFlatMotionHardware, useTomoHoloHardware, useTomoSampleStageHardware, yamlComponents, yamlContainers };
|