@esrf/daiquiri-lib 5.6.0 → 5.7.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 +98 -8
- package/dist/index.js +13 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2661 -2273
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/scss/_animate.scss +32 -0
- package/src/scss/main.scss +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { JSONSchema7 } from 'json-schema';
|
|
3
2
|
import * as react from 'react';
|
|
4
3
|
import react__default, { ComponentType, ReactElement, PropsWithChildren, ReactNode, ChangeEvent, KeyboardEvent, Component } from 'react';
|
|
@@ -180,7 +179,7 @@ declare namespace schema_d {
|
|
|
180
179
|
|
|
181
180
|
declare const BaseHardwareDesc: HardwareDesc<AnySchema>;
|
|
182
181
|
|
|
183
|
-
declare const Mocks$
|
|
182
|
+
declare const Mocks$q: {
|
|
184
183
|
default: {
|
|
185
184
|
response: {
|
|
186
185
|
callables: never[];
|
|
@@ -282,7 +281,7 @@ declare const Mocks$p: {
|
|
|
282
281
|
};
|
|
283
282
|
};
|
|
284
283
|
|
|
285
|
-
declare function DefaultState(props: HardwareWidgetProps<AnySchema>): react_jsx_runtime.JSX.Element;
|
|
284
|
+
declare function DefaultState$1(props: HardwareWidgetProps<AnySchema>): react_jsx_runtime.JSX.Element;
|
|
286
285
|
|
|
287
286
|
interface BaseNameWidgetOptions extends HardwareWidgetOptions {
|
|
288
287
|
overrideName?: string;
|
|
@@ -328,7 +327,7 @@ declare function AirBearingState(props: {
|
|
|
328
327
|
hardware: AirBearingSchema;
|
|
329
328
|
}): react_jsx_runtime.JSX.Element;
|
|
330
329
|
|
|
331
|
-
declare const Mocks$
|
|
330
|
+
declare const Mocks$p: {
|
|
332
331
|
default: {
|
|
333
332
|
callables: string[];
|
|
334
333
|
id: string;
|
|
@@ -356,6 +355,14 @@ type PropsWithSimulator<P = Record<string, never>> = P & {
|
|
|
356
355
|
|
|
357
356
|
declare function AirBearingSimulator(props: PropsWithSimulator): react_jsx_runtime.JSX.Element;
|
|
358
357
|
|
|
358
|
+
/**
|
|
359
|
+
* Hardware as exposed by Redux
|
|
360
|
+
*/
|
|
361
|
+
type BeamlineSchema = Hardware<{
|
|
362
|
+
mdt_mode: boolean;
|
|
363
|
+
}>;
|
|
364
|
+
declare const BeamlineHardwareDesc: HardwareDesc<BeamlineSchema>;
|
|
365
|
+
|
|
359
366
|
/**
|
|
360
367
|
* Hardware as exposed by Redux
|
|
361
368
|
*/
|
|
@@ -374,7 +381,7 @@ declare const BeamviewerHardwareDesc: HardwareDesc<BeamviewerSchema>;
|
|
|
374
381
|
|
|
375
382
|
declare function Beamviewer(props: HardwareWidgetProps<BeamviewerSchema>): react_jsx_runtime.JSX.Element;
|
|
376
383
|
|
|
377
|
-
declare const Mocks$
|
|
384
|
+
declare const Mocks$o: {
|
|
378
385
|
default: {
|
|
379
386
|
callables: string[];
|
|
380
387
|
id: string;
|
|
@@ -410,7 +417,7 @@ declare function EnergyManagerState(props: {
|
|
|
410
417
|
hardware: EnergyManagerSchema;
|
|
411
418
|
}): react_jsx_runtime.JSX.Element;
|
|
412
419
|
|
|
413
|
-
declare const Mocks$
|
|
420
|
+
declare const Mocks$n: {
|
|
414
421
|
default: {
|
|
415
422
|
callables: never[];
|
|
416
423
|
id: string;
|
|
@@ -430,6 +437,75 @@ declare const Mocks$m: {
|
|
|
430
437
|
|
|
431
438
|
declare function EnergyManagerSimulator(props: PropsWithSimulator): react_jsx_runtime.JSX.Element;
|
|
432
439
|
|
|
440
|
+
interface FilterDescription {
|
|
441
|
+
name: string;
|
|
442
|
+
description: string;
|
|
443
|
+
state: 'IN' | 'OUT' | 'IN_OUT' | 'MOVING' | 'UNKNOWN';
|
|
444
|
+
}
|
|
445
|
+
type FiltersetStateType = 'READY' | 'MOVING' | 'DISABLED' | 'UNKNOWN' | 'OFFLINE' | 'FAULT';
|
|
446
|
+
type FiltersetSchema = Hardware<{
|
|
447
|
+
/**
|
|
448
|
+
* Actual state of the device.
|
|
449
|
+
*
|
|
450
|
+
* Can be READY and MOVING at the same time.
|
|
451
|
+
*/
|
|
452
|
+
state: FiltersetStateType;
|
|
453
|
+
/**
|
|
454
|
+
* Human readable reason of the state
|
|
455
|
+
*/
|
|
456
|
+
status?: string | null;
|
|
457
|
+
/**
|
|
458
|
+
* Actual state of the filters
|
|
459
|
+
*/
|
|
460
|
+
filters: FilterDescription[];
|
|
461
|
+
}>;
|
|
462
|
+
declare const FiltersetHardwareDesc: HardwareDesc<FiltersetSchema>;
|
|
463
|
+
|
|
464
|
+
declare function FiltersetDefault(props: HardwareWidgetProps<FiltersetSchema, HardwareWidgetOptions>): react_jsx_runtime.JSX.Element;
|
|
465
|
+
|
|
466
|
+
declare function DefaultState(props: HardwareWidgetProps<FiltersetSchema>): react_jsx_runtime.JSX.Element;
|
|
467
|
+
|
|
468
|
+
declare const Mocks$m: {
|
|
469
|
+
default: {
|
|
470
|
+
callables: string[];
|
|
471
|
+
id: string;
|
|
472
|
+
name: string;
|
|
473
|
+
online: boolean;
|
|
474
|
+
properties: {
|
|
475
|
+
state: string;
|
|
476
|
+
status: string;
|
|
477
|
+
filters: {
|
|
478
|
+
name: string;
|
|
479
|
+
description: string;
|
|
480
|
+
state: string;
|
|
481
|
+
}[];
|
|
482
|
+
};
|
|
483
|
+
protocol: string;
|
|
484
|
+
require_staff: boolean;
|
|
485
|
+
type: string;
|
|
486
|
+
};
|
|
487
|
+
small: {
|
|
488
|
+
callables: string[];
|
|
489
|
+
id: string;
|
|
490
|
+
name: string;
|
|
491
|
+
online: boolean;
|
|
492
|
+
properties: {
|
|
493
|
+
state: string;
|
|
494
|
+
status: string;
|
|
495
|
+
filters: {
|
|
496
|
+
name: string;
|
|
497
|
+
description: string;
|
|
498
|
+
state: string;
|
|
499
|
+
}[];
|
|
500
|
+
};
|
|
501
|
+
protocol: string;
|
|
502
|
+
require_staff: boolean;
|
|
503
|
+
type: string;
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
declare function FiltersetSimulator(props: PropsWithSimulator): react_jsx_runtime.JSX.Element;
|
|
508
|
+
|
|
433
509
|
type FrontendSchema = Hardware<{
|
|
434
510
|
state: string;
|
|
435
511
|
status: string;
|
|
@@ -1373,6 +1449,9 @@ declare function isProcedureHardware(entity: Hardware): entity is ProcedureSchem
|
|
|
1373
1449
|
*/
|
|
1374
1450
|
declare function useProcedureHardware(name: string | null): ProcedureSchema | null;
|
|
1375
1451
|
|
|
1452
|
+
declare function FinishedState(props: {
|
|
1453
|
+
hardware: EditableHardware<ProcedureSchema>;
|
|
1454
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1376
1455
|
declare function ProcedureExecution(props: HardwareWidgetProps<ProcedureSchema>): react_jsx_runtime.JSX.Element;
|
|
1377
1456
|
|
|
1378
1457
|
interface ProcedureOptions extends HardwareWidgetOptions {
|
|
@@ -1388,6 +1467,11 @@ interface ProcedureOptions extends HardwareWidgetOptions {
|
|
|
1388
1467
|
*/
|
|
1389
1468
|
foreground?: boolean;
|
|
1390
1469
|
}
|
|
1470
|
+
declare function Actions(props: {
|
|
1471
|
+
hardware: EditableHardware<ProcedureSchema>;
|
|
1472
|
+
disabled: boolean;
|
|
1473
|
+
options: ProcedureOptions;
|
|
1474
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1391
1475
|
declare function ProcedureManage(props: HardwareWidgetProps<ProcedureSchema, ProcedureOptions>): react_jsx_runtime.JSX.Element;
|
|
1392
1476
|
|
|
1393
1477
|
declare function ProcedureValidate(props: HardwareWidgetProps<ProcedureSchema>): react_jsx_runtime.JSX.Element;
|
|
@@ -2202,12 +2286,16 @@ declare function HardwareNumericStep(props: {
|
|
|
2202
2286
|
*
|
|
2203
2287
|
* If `minWidth` is pecified (in `em`) it ensure the widget width will stay the
|
|
2204
2288
|
* same when the state change
|
|
2289
|
+
*
|
|
2290
|
+
* A `hardwareStatus` can be defined, which is a human readable global description
|
|
2291
|
+
* of the state of the device.
|
|
2205
2292
|
*/
|
|
2206
2293
|
declare function State$1(props: {
|
|
2207
2294
|
state: string;
|
|
2208
2295
|
variant: string;
|
|
2209
2296
|
minWidth?: number;
|
|
2210
2297
|
description?: string;
|
|
2298
|
+
hardwareStatus?: string;
|
|
2211
2299
|
}): react_jsx_runtime.JSX.Element;
|
|
2212
2300
|
/**
|
|
2213
2301
|
* Normalize the way to display an hardware exposing multiple states.
|
|
@@ -2215,6 +2303,7 @@ declare function State$1(props: {
|
|
|
2215
2303
|
* - `states` is the states exposed by the hardware.
|
|
2216
2304
|
* - `variants` contains a variant for each of this states, else `fatal` is used.
|
|
2217
2305
|
* - `descriptions` can be provided to add a description to the state.
|
|
2306
|
+
* - `hardwareStatus` A global description of the state of the device
|
|
2218
2307
|
*
|
|
2219
2308
|
* If `minWidth` is pecified (in `em`) it ensure the widget width will stay the
|
|
2220
2309
|
* same when the state change
|
|
@@ -2224,6 +2313,7 @@ declare function MultiState(props: {
|
|
|
2224
2313
|
variants?: Record<string, string>;
|
|
2225
2314
|
descriptions?: Record<string, string>;
|
|
2226
2315
|
minWidth?: number;
|
|
2316
|
+
hardwareStatus?: string;
|
|
2227
2317
|
}): react_jsx_runtime.JSX.Element;
|
|
2228
2318
|
|
|
2229
2319
|
declare function formatEng(scalar: number): {
|
|
@@ -2863,7 +2953,7 @@ interface MonitorPanelItemProps {
|
|
|
2863
2953
|
* OverlayTrigger. It contains callbacks.
|
|
2864
2954
|
*/
|
|
2865
2955
|
declare const MonitorPanelItem: react.ForwardRefExoticComponent<MonitorPanelItemProps & {
|
|
2866
|
-
children?: react.ReactNode;
|
|
2956
|
+
children?: react.ReactNode | undefined;
|
|
2867
2957
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
2868
2958
|
|
|
2869
2959
|
/**
|
|
@@ -2896,4 +2986,4 @@ declare function getHardwareVariantComponent(type: string, variant: string): Har
|
|
|
2896
2986
|
*/
|
|
2897
2987
|
declare function getAllHardwareDesc(): Record<string, HardwareDesc<AnyHardware>>;
|
|
2898
2988
|
|
|
2899
|
-
export { type ActuatorSchema, AirBearing, AirBearingHardwareDesc, Mocks$
|
|
2989
|
+
export { type ActuatorSchema, AirBearing, AirBearingHardwareDesc, Mocks$p as AirBearingMocks, AirBearingProtected, type AirBearingSchema, AirBearingSimulator, AirBearingState, type AnyHardware, type AnySchema, type BaseHardware, BaseHardwareDesc, Info as BaseInfo, type BaseInfoWidgetOptions, Mocks$q as BaseMocks, Name as BaseName, type BaseNameWidgetOptions, Property as BaseProperty, type BasePropertyWidgetOptions, DefaultState$1 as BaseState, BeamlineHardwareDesc, Beamviewer, BeamviewerHardwareDesc, Mocks$o as BeamviewerMocks, type BeamviewerSchema, BeamviewerSimulator, COMPARATORS, EnergyManagerDefault, EnergyManagerHardwareDesc, Mocks$n as EnergyManagerMocks, type EnergyManagerSchema, EnergyManagerSimulator, EnergyManagerState, ErrorObject, type ExceptionFromProcedure, FiltersetDefault, FiltersetHardwareDesc, Mocks$m as FiltersetMocks, type FiltersetSchema, FiltersetSimulator, DefaultState as FiltersetState, formatting_d as Formatting, Frontend, FrontendHardwareDesc, Mocks$l as FrontendMocks, type FrontendSchema, FullSizer, Gauge$1 as Gauge, GaugeHardwareDesc, Gauge as GaugeIndicator, Mocks$k as GaugeMocks, type GaugeSchema, type GaugeWidgetOptions, type GenericSchema, type Hardware, type HardwareComponentType, type HardwareDesc, type HardwareFromProcedure, HardwareInputNumber, HardwareNumericStep, type HardwareObjectProps, schema_d as HardwareSchema, HardwareState, HardwareTemplate, types_d as HardwareTypes, type HardwareVariant, InfiniteKnob360, KeyError, Laser, LaserHardwareDesc, LaserHeating, LaserHeatingHardwareDesc, Mocks$i as LaserHeatingMocks, type LaserHeatingSchema, type LaserHeatingWidgetOptions, Mocks$j as LaserMocks, type LaserSchema, type LaserWidgetOptions, Light, LightHardwareDesc, Mocks$h as LightMocks, type LightSchema, LimaBinning, LimaDefault, TomoDetectorSize$2 as LimaDescription, LimaHardwareDesc, TomoDetectorSize$1 as LimaImageRoi, Mocks$g as LimaMocks, type LimaSchema, LimaRoiShape as LimaShape, LimaSimulator, TomoDetectorSize as LimaSize, LimaState, LimaTransformation, LoadingObject, MeasurementGroup as MeasurementGroupDefault, MeasurementGroupHardwareDesc, Mocks$f as MeasurementGroupMocks, type MeasurementGroupSchema, MeasurementGroupSimulator, MissingComponentObject, MissingKeysError, MissingObject, type Monitor, MonitorHardware, MonitorHardwareProperty, MonitorPanel, MonitorPanelItem, type MonitorPanelProps, MotorDefault, type MotorDefaultOptions, MotorHardwareDesc, Mocks$e as MotorMocks, MotorRotation, type MotorSchema, MotorSimulator, MotorState, MotorText, MultiState, Multiposition$1 as Multiposition, Multiposition as MultipositionDefault2, type MultipositionDefault2Options, MultipositionHardwareDesc, Mocks$d as MultipositionMocks, type MultipositionSchema, MultipositionSimulator, NoObject$1 as NoObject, Yaml as None, NoObject as NullObject, NumericStep, Optic as OpticDefault, OpticHardwareDesc, Mocks$c as OpticMocks, type OpticSchema, OpticSimulator, OpticState, type OpticWidgetOptions, Panel, Actions as ProcedureActions, ProcedureExecution, FinishedState as ProcedureFinishedState, ProcedureHardwareDesc, ProcedureManage, Mocks$b as ProcedureMocks, type ProcedureOptions, type ProcedureSchema, ProcedureState, ProcedureValidate, Pump as PumpDefault, PumpHardwareDesc, Mocks$7 as PumpMocks, type PumpSchema, Pusher as PusherDefault, PusherHardwareDesc, Mocks$6 as PusherMocks, type PusherOptions, type PusherSchema, PusherSimulator, PusherState, RegulationLoop as RegulationDefault, RegulationHardwareDesc, Mocks$a as RegulationMocks, type RegulationOptions, RegulationPlot, type RegulationSchema, RegulationSimulator, type ScanFromProcedure, ServiceDefault, ServiceHardwareDesc, Mocks$5 as ServiceMocks, ServiceProtected, type ServiceSchema, ServiceState, ShutterDefault, ShutterHardwareDesc, Mocks$9 as ShutterMocks, ShutterProtected, type ShutterSchema, ShutterSimulator, ShutterState, SlitDefault, SlitHardwareDesc, Mocks$8 as SlitMocks, type SlitSchema, SlitState, State$1 as State, Synoptic, type SynopticElementType, type SynopticType, Yaml$1 as Todo, TomoConfigHardwareDesc, TomoConfigLatencyTime, type TomoConfigSchema, TomoDetectorAcquisitionMode, type TomoDetectorFieldOfViewOptions, TomoDetectorHardwareDesc, Mocks$3 as TomoDetectorMocks, TomoDetectorSamplePixelSize, type TomoDetectorSchema, TomoDetectorState, TomoDetectors as TomoDetectorsDefault, TomoDetectorsHardwareDesc, Mocks$2 as TomoDetectorsMocks, type TomoDetectorsSchema, TomoDetectorsState, TomoFlatMotionDefault, TomoFlatMotionHardwareDesc, Mocks$4 as TomoFlatMotionMocks, type TomoFlatMotionSchema, TomoFlatMotionSimulator, TomoFlatMotionSmall, TomoFlatMotionState, type TomoFlatMotionStep, type TomoHoloDistance, TomoHoloHardwareDesc, type TomoHoloSchema, TomoHoloState, TomoImagingActions, TomoImagingDefault, TomoImagingExposureTime, TomoImagingHardwareDesc, Mocks$1 as TomoImagingMocks, type TomoImagingOptions, type TomoImagingSchema, TomoImagingSettleTime, TomoImagingSimulator, TomoImagingState, TomoImagingUpdateMode, TomoReferencePositionDefault, TomoReferencePositionHardwareDesc, type TomoReferencePositionSchema, TomoSampleStageHardwareDesc, type TomoSampleStageSchema, TypeIcon, type Props$a as TypeIconOptions, Valve as ValveDefault, ValveHardwareDesc, Mocks as ValveMocks, type ValveSchema, ErrorBoundary as YAMLErrorBoundary, Main as YAMLLayout, asserts_d as YamlAsserts, type YamlColOptions, type YamlComponent, type YamlContainerOptions, type YamlFormHeaderOptions, type YamlFormOptions, type YamlFormRowOptions, type YamlGridCellOptions, type YamlGridOptions, type YamlLabelOptions, type YamlNode, type YamlPanelOptions, type YamlRowOptions, type YamlTabsOptions, type YamlTabsRowOptions, type YamlTodoOptions, createMotorMock, dynamicOp, getAllHardwareDesc, getAllMonitors, getHardwareVariantComponent, getYamlComponents, getYamlContainers, isLimaHardware, isMotorClockWise, isMotorHardware, isOpticHardware, isProcedureHardware, isTomoConfigHardware, isTomoDetectorHardware, isTomoDetectorsHardware, isTomoFlatMotionHardware, isTomoHoloHardware, isTomoReferencePositionHardware, isTomoSampleStageHardware, limaGuessSubframes, motorLimits, normalizeId, registerHardwareVariant, registerMonitorComponent, registerRuntimeHook, registerYamlComponent, registerYamlComponents, registerYamlContainer, renderYamlNode, useHardware, useHardwareChangeActions, useHardwareSchema, useLimaHardware, useMotorHardware, useMotorStates, useOperator, useProcedureHardware, useScanRunning, useTomoConfigHardware, useTomoDetectorHardware, useTomoDetectorsHardware, useTomoFlatMotionHardware, useTomoHoloHardware, useTomoSampleStageHardware, yamlComponents, yamlContainers };
|