@esrf/daiquiri-lib 0.0.2-alpha.8 → 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 +7 -0
- package/dist/index.d.ts +154 -10
- package/dist/index.esm.js +697 -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 +3 -2
- package/src/index.ts +17 -1
- package/src/scss/_monitorpanel.scss +38 -0
- package/src/scss/main.scss +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esrf/daiquiri-lib",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -61,9 +61,10 @@
|
|
|
61
61
|
"type": "git",
|
|
62
62
|
"url": "https://gitlab.esrf.fr/ui/daiquiri-ui/lib"
|
|
63
63
|
},
|
|
64
|
+
"homepage": "https://ui.gitlab-pages.esrf.fr/daiquiri-ui/daiquiri-lib",
|
|
64
65
|
"author": "ESRF",
|
|
65
66
|
"license": "MIT",
|
|
66
|
-
"description": "",
|
|
67
|
+
"description": "Shared UI components and related machinery from daiquiri-ui",
|
|
67
68
|
"scripts": {
|
|
68
69
|
"build": "vite build && run-p build:*",
|
|
69
70
|
"build:dts": "tsc --project tsconfig.build.json && rollup -c",
|
package/src/index.ts
CHANGED
|
@@ -10,9 +10,11 @@ export { default as ShutterDefault } from './hardware/ShutterDefault';
|
|
|
10
10
|
/* Hardware Object Options */
|
|
11
11
|
// TODO: Namespace Options into HardwareOptions
|
|
12
12
|
export type { MotorDefaultOptions } from './hardware/MotorDefault';
|
|
13
|
+
export type { InfoOptions } from './hardware/Info';
|
|
13
14
|
|
|
14
15
|
/* Helpers */
|
|
15
16
|
export { default as TypeIcon } from './hardware/TypeIcon';
|
|
17
|
+
export type { Props as TypeIconOptions } from './hardware/TypeIcon';
|
|
16
18
|
export { default as HardwareTemplate } from './hardware/utils/HardwareTemplate';
|
|
17
19
|
export { default as HardwareInputNumber } from './hardware/utils/HardwareInputNumber';
|
|
18
20
|
export { default as HardwareNumericStep } from './hardware/utils/HardwareNumericStep';
|
|
@@ -29,7 +31,7 @@ export * as HardwareTypes from './hardware/utils/types';
|
|
|
29
31
|
export * as HardwareSchema from './hardware/utils/schema';
|
|
30
32
|
|
|
31
33
|
/* Layout */
|
|
32
|
-
export { default as YAMLLayout } from './yaml-layout/Main';
|
|
34
|
+
export { default as YAMLLayout, yamlMap } from './yaml-layout/Main';
|
|
33
35
|
export { default as YAMLErrorBoundary } from './yaml-layout/ErrorBoundary';
|
|
34
36
|
export {
|
|
35
37
|
renderYamlNode,
|
|
@@ -44,3 +46,17 @@ export { registerComponent as registerYamlComponent } from './yaml-layout/Compon
|
|
|
44
46
|
/* HW Layout */
|
|
45
47
|
export * as HWObject from './hardware/HardwareObject';
|
|
46
48
|
export { registerHardwareComponent } from './yaml-layout/components/HardwareGroup';
|
|
49
|
+
|
|
50
|
+
/* Monitor Panel */
|
|
51
|
+
export {
|
|
52
|
+
MonitorHardware,
|
|
53
|
+
registerRuntimeHook,
|
|
54
|
+
dynamicOp,
|
|
55
|
+
} from './monitorpanel/MonitorHardware';
|
|
56
|
+
export {
|
|
57
|
+
registerMonitorComponent,
|
|
58
|
+
MonitorPanel,
|
|
59
|
+
MonitorPanelItem,
|
|
60
|
+
} from './monitorpanel/MonitorPanel';
|
|
61
|
+
export type { MonitorPanelProps } from './monitorpanel/MonitorPanel';
|
|
62
|
+
export type { Monitor } from './monitorpanel/types';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.monitor-panel-item {
|
|
2
|
+
margin: 0 5px;
|
|
3
|
+
background: lighten(map-get($custom-colors, 't-purple'), 35%);
|
|
4
|
+
border-radius: 4px;
|
|
5
|
+
|
|
6
|
+
text-align: center;
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
|
|
9
|
+
h1 {
|
|
10
|
+
padding-top: 2px;
|
|
11
|
+
margin-bottom: 0;
|
|
12
|
+
color: darken(map-get($custom-colors, 't-purple'), 10%);
|
|
13
|
+
font-size: 0.75rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
div {
|
|
17
|
+
font-size: 0.9rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.valid {
|
|
21
|
+
color: $green;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.invalid {
|
|
25
|
+
color: $red;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.monitor-panel-light .monitor-panel-item {
|
|
30
|
+
background: lighten(map-get($custom-colors, 't-purple'), 45%);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.monitor-panel-tooltip {
|
|
34
|
+
pre {
|
|
35
|
+
margin-bottom: 0;
|
|
36
|
+
color: #fff;
|
|
37
|
+
}
|
|
38
|
+
}
|
package/src/scss/main.scss
CHANGED