@esrf/daiquiri-lib 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.d.ts +28 -1
- package/dist/index.esm.js +696 -578
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/index.ts +14 -0
- package/src/scss/_monitorpanel.scss +38 -0
- package/src/scss/main.scss +1 -0
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @esrf/daiquiri-lib
|
|
2
2
|
|
|
3
|
-
Shared UI components and associated machinary from the [daiquiri-ui](https://gitlab.esrf.fr/ui/daiquiri-ui) project for beamline control and data
|
|
3
|
+
Shared UI components and associated machinary from the [daiquiri-ui](https://gitlab.esrf.fr/ui/daiquiri-ui) project for beamline control and data acquisition. These shared components allow for a consistent look and feel for projects outside of the [daiquiri](https://ui.gitlab-pages.esrf.fr/daiquiri-landing/) core.
|
|
4
4
|
|
|
5
5
|
The library currently exports the YAML layout language, validator, and renderer, and a selection of hardware components.
|
|
6
6
|
|
|
7
|
-
See our [documentation](ui.gitlab-pages.esrf.fr/daiquiri-ui/daiquiri-lib) for more information.
|
|
7
|
+
See our [documentation](https://ui.gitlab-pages.esrf.fr/daiquiri-ui/daiquiri-lib) for more information.
|
package/dist/index.d.ts
CHANGED
|
@@ -652,4 +652,31 @@ declare namespace HardwareObject_d {
|
|
|
652
652
|
*/
|
|
653
653
|
declare function registerHardwareComponent(name: string, component: React.ComponentType<any>): void;
|
|
654
654
|
|
|
655
|
-
|
|
655
|
+
interface Monitor {
|
|
656
|
+
name: string;
|
|
657
|
+
type?: string;
|
|
658
|
+
value: string;
|
|
659
|
+
overlay?: string;
|
|
660
|
+
comparator?: string;
|
|
661
|
+
comparison?: any;
|
|
662
|
+
unit?: string;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
declare function registerRuntimeHook(name: string, hook: (id: string | null) => Hardware | null): void;
|
|
666
|
+
declare const dynamicOp: (op: string, a1: any, b1: any) => boolean | undefined;
|
|
667
|
+
declare function MonitorHardware(props: {
|
|
668
|
+
monitor: Monitor;
|
|
669
|
+
}): JSX.Element;
|
|
670
|
+
|
|
671
|
+
declare function registerMonitorComponent(name: string, component: React.ComponentType<any>): void;
|
|
672
|
+
interface MonitorPanelProps {
|
|
673
|
+
monitors: Monitor[];
|
|
674
|
+
margin?: 'start' | null;
|
|
675
|
+
bg?: 'light' | null;
|
|
676
|
+
}
|
|
677
|
+
declare function MonitorPanel(props: MonitorPanelProps): JSX.Element;
|
|
678
|
+
interface MonitorPanelItemProps {
|
|
679
|
+
}
|
|
680
|
+
declare function MonitorPanelItem(props: PropsWithChildren<MonitorPanelItemProps>): JSX.Element;
|
|
681
|
+
|
|
682
|
+
export { formatting_d as Formatting, Frontend, FullSizer, HardwareObject_d as HWObject, HardwareInputNumber, HardwareNumericStep, schema_d as HardwareSchema, State_d as HardwareState, HardwareTemplate, types_d as HardwareTypes, HardwareVariant, Info, type InfoOptions, KeyError, MissingKeysError, type Monitor, MonitorHardware, MonitorPanel, MonitorPanelItem, type MonitorPanelProps, MotorDefault, type MotorDefaultOptions, Multiposition, NoObject, NumericStep, Property, ShutterDefault, TypeIcon, type Props$b as TypeIconOptions, ErrorBoundary as YAMLErrorBoundary, Main as YAMLLayout, asserts_d as YamlAsserts, type YamlComponent$1 as YamlComponent, type YamlNode, dynamicOp, registerHardwareComponent, registerMonitorComponent, registerRuntimeHook, registerComponent as registerYamlComponent, registerYamlType, renderYamlNode, yamlMap };
|