@procaaso/alphinity-ui-components 1.1.3 → 1.4.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 +11 -0
- package/dist/index.cjs +154 -116
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +175 -100
- package/dist/index.d.ts +175 -100
- package/dist/index.js +157 -119
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default from 'react';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
5
3
|
import * as _emotion_styled from '@emotion/styled';
|
|
6
4
|
import * as _emotion_react from '@emotion/react';
|
|
7
5
|
import * as _mui_system from '@mui/system';
|
|
8
6
|
import * as _mui_material from '@mui/material';
|
|
7
|
+
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
9
8
|
|
|
10
9
|
interface ButtonProps extends react__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
11
10
|
variant?: 'primary' | 'secondary';
|
|
@@ -45,6 +44,126 @@ interface SelectorProps extends Omit<react__default.HTMLAttributes<HTMLDivElemen
|
|
|
45
44
|
}
|
|
46
45
|
declare const Selector: react__default.FC<SelectorProps>;
|
|
47
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Status levels for telemetry values
|
|
49
|
+
*/
|
|
50
|
+
type TelemetryStatus$1 = 'normal' | 'warning' | 'alarm' | 'fault' | 'off';
|
|
51
|
+
/**
|
|
52
|
+
* Live telemetry value with status
|
|
53
|
+
*/
|
|
54
|
+
interface TelemetryValue {
|
|
55
|
+
/** Current value */
|
|
56
|
+
value: number | string | boolean;
|
|
57
|
+
/** Status/severity level */
|
|
58
|
+
status: TelemetryStatus$1;
|
|
59
|
+
/** Unit of measurement (optional) */
|
|
60
|
+
unit?: string;
|
|
61
|
+
/** Timestamp of last update */
|
|
62
|
+
timestamp?: number;
|
|
63
|
+
/** Quality indicator (0-100, where 100 is good) */
|
|
64
|
+
quality?: number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Uniform scaling / engineering-unit (EU) metadata for an analog value.
|
|
68
|
+
*
|
|
69
|
+
* Mirrors the control program's published `scaling` record (alphinity-tffi
|
|
70
|
+
* issue #1663): one shape carries the units, EU range, raw range, and display
|
|
71
|
+
* precision for any analog tag. When present on a TelemetryBinding it is the
|
|
72
|
+
* authoritative source for units / precision / trend-axis range - the consumer
|
|
73
|
+
* passes the live published metadata here instead of static diagram config.
|
|
74
|
+
* All fields optional so a producer can omit what does not apply.
|
|
75
|
+
*/
|
|
76
|
+
interface ScalingMetadata {
|
|
77
|
+
/** Engineering units (e.g. "psig", "LMH", "mL"). */
|
|
78
|
+
units?: string;
|
|
79
|
+
/** Engineering-unit range low / high (trend axis + faceplate range). */
|
|
80
|
+
euLow?: number;
|
|
81
|
+
euHigh?: number;
|
|
82
|
+
/** Raw signal range low / high (AnalogInputs only). */
|
|
83
|
+
rawLow?: number;
|
|
84
|
+
rawHigh?: number;
|
|
85
|
+
/** Display decimal places. */
|
|
86
|
+
decimals?: number;
|
|
87
|
+
/** Optional descriptive metadata. */
|
|
88
|
+
description?: string;
|
|
89
|
+
sensorType?: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Telemetry data binding for a node
|
|
93
|
+
*/
|
|
94
|
+
interface TelemetryBinding {
|
|
95
|
+
/** Node ID this telemetry is bound to */
|
|
96
|
+
nodeId: string;
|
|
97
|
+
/** Tag/variable name for the telemetry source */
|
|
98
|
+
tag: string;
|
|
99
|
+
/** Current telemetry value */
|
|
100
|
+
value: TelemetryValue;
|
|
101
|
+
/**
|
|
102
|
+
* Uniform scaling / EU metadata (units, range, precision). When present it is
|
|
103
|
+
* the authoritative source for the displayed units, decimal precision, and
|
|
104
|
+
* trend-axis range - overriding `value.unit` / `display.precision` and the
|
|
105
|
+
* history-derived sparkline range. Populate from the live published scaling
|
|
106
|
+
* stream rather than static diagram config (#1663).
|
|
107
|
+
*/
|
|
108
|
+
scaling?: ScalingMetadata;
|
|
109
|
+
/** Historical values for sparkline/trend (optional) */
|
|
110
|
+
history?: number[];
|
|
111
|
+
/** Thresholds for status determination */
|
|
112
|
+
thresholds?: {
|
|
113
|
+
/** High-High threshold (value >= this triggers alarm) */
|
|
114
|
+
highHigh?: number;
|
|
115
|
+
/** High threshold (value >= this triggers warning) */
|
|
116
|
+
high?: number;
|
|
117
|
+
/** Low threshold (value <= this triggers warning) */
|
|
118
|
+
low?: number;
|
|
119
|
+
/** Low-Low threshold (value <= this triggers alarm/fault) */
|
|
120
|
+
lowLow?: number;
|
|
121
|
+
/** Custom label for high-high threshold */
|
|
122
|
+
highHighLabel?: string;
|
|
123
|
+
/** Custom label for high threshold */
|
|
124
|
+
highLabel?: string;
|
|
125
|
+
/** Custom label for low threshold */
|
|
126
|
+
lowLabel?: string;
|
|
127
|
+
/** Custom label for low-low threshold */
|
|
128
|
+
lowLowLabel?: string;
|
|
129
|
+
};
|
|
130
|
+
/** Custom colors for status levels */
|
|
131
|
+
statusColors?: {
|
|
132
|
+
normal?: string;
|
|
133
|
+
warning?: string;
|
|
134
|
+
alarm?: string;
|
|
135
|
+
fault?: string;
|
|
136
|
+
off?: string;
|
|
137
|
+
};
|
|
138
|
+
/** Display configuration */
|
|
139
|
+
display?: {
|
|
140
|
+
/** Show value overlay above node */
|
|
141
|
+
showValue?: boolean;
|
|
142
|
+
/** Show status indicator */
|
|
143
|
+
showStatus?: boolean;
|
|
144
|
+
/** Custom label for the value */
|
|
145
|
+
label?: string;
|
|
146
|
+
/** Number of decimal places for numeric values */
|
|
147
|
+
precision?: number;
|
|
148
|
+
/** Show sparkline trend (requires history) */
|
|
149
|
+
showSparkline?: boolean;
|
|
150
|
+
/** Sparkline color (defaults to status color) */
|
|
151
|
+
sparklineColor?: string;
|
|
152
|
+
/** Custom background color (hex code or 'status' for status-based color) */
|
|
153
|
+
backgroundColor?: string;
|
|
154
|
+
/** Custom text color for value display (hex code) */
|
|
155
|
+
textColor?: string;
|
|
156
|
+
/** Horizontal offset from node center */
|
|
157
|
+
offsetX?: number;
|
|
158
|
+
/** Vertical offset from node center */
|
|
159
|
+
offsetY?: number;
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Map of telemetry bindings by node ID
|
|
164
|
+
*/
|
|
165
|
+
type TelemetryMap = Map<string, TelemetryBinding>;
|
|
166
|
+
|
|
48
167
|
interface ModeConfig {
|
|
49
168
|
/** Units for this mode */
|
|
50
169
|
unit?: string;
|
|
@@ -98,6 +217,15 @@ interface ControlPanelProps extends react__default.HTMLAttributes<HTMLDivElement
|
|
|
98
217
|
defaultMax?: number;
|
|
99
218
|
/** Default precision when no mode config is found */
|
|
100
219
|
defaultPrecision?: number;
|
|
220
|
+
/**
|
|
221
|
+
* Uniform scaling / EU metadata (#1663). When provided, supplies the
|
|
222
|
+
* units / min / max / precision defaults from the live published scaling
|
|
223
|
+
* record - used only where an explicit `default*` prop or a mode config does
|
|
224
|
+
* not already set the value (modeConfig > explicit default > scaling >
|
|
225
|
+
* hardcoded). Lets the consumer drive the panel from the scaling stream
|
|
226
|
+
* instead of static diagram config.
|
|
227
|
+
*/
|
|
228
|
+
scaling?: ScalingMetadata;
|
|
101
229
|
/** Status state for the entire panel */
|
|
102
230
|
status?: 'normal' | 'alarm' | 'warning' | 'disabled';
|
|
103
231
|
/** Whether the panel is collapsed */
|
|
@@ -482,10 +610,26 @@ interface DeviceControlPanelProps {
|
|
|
482
610
|
onModeChange?: (mode: string) => void;
|
|
483
611
|
/** Called when parameter changes */
|
|
484
612
|
onParameterChange?: (parameterId: string, value: any) => void;
|
|
613
|
+
/**
|
|
614
|
+
* Called when the operator activates (taps) a numeric/text parameter's value.
|
|
615
|
+
* When provided, that parameter renders as a tappable value instead of an
|
|
616
|
+
* inline input, so the consumer can open its own editor (e.g. a numpad dialog)
|
|
617
|
+
* and commit via `onParameterChange`. Read-only params are never activatable.
|
|
618
|
+
* When omitted, parameters use the default inline-edit behavior.
|
|
619
|
+
*/
|
|
620
|
+
onParameterActivate?: (parameterId: string, value: number | string | boolean) => void;
|
|
485
621
|
/** Called when start button clicked */
|
|
486
622
|
onStart?: () => void;
|
|
487
623
|
/** Called when stop button clicked */
|
|
488
624
|
onStop?: () => void;
|
|
625
|
+
/**
|
|
626
|
+
* Start command is in flight (awaiting ack). Shows a busy affordance on the
|
|
627
|
+
* START button and disables it, without locking STOP — wire from the hook's
|
|
628
|
+
* `isCommandPending(nodeId, 'start')`.
|
|
629
|
+
*/
|
|
630
|
+
startPending?: boolean;
|
|
631
|
+
/** Stop command is in flight (awaiting ack). See `startPending`. */
|
|
632
|
+
stopPending?: boolean;
|
|
489
633
|
/** Called when custom action clicked */
|
|
490
634
|
onCustomAction?: (actionId: string) => void;
|
|
491
635
|
/** Called when config button clicked (opens config panel for this device) */
|
|
@@ -501,7 +645,7 @@ interface DeviceControlPanelProps {
|
|
|
501
645
|
/** Embedded mode - uses static positioning for rendering in containers (default: false) */
|
|
502
646
|
embedded?: boolean;
|
|
503
647
|
}
|
|
504
|
-
declare function DeviceControlPanel({ binding, onClose, position, align, touchOptimized, compact, fontScale, maxHeight, maxWidth, toastDuration, onModeChange, onParameterChange, onStart, onStop, onCustomAction, onOpenConfig, showConfigButton, onUndock, undockIcon, modeSelectionStyle, embedded, }: DeviceControlPanelProps):
|
|
648
|
+
declare function DeviceControlPanel({ binding, onClose, position, align, touchOptimized, compact, fontScale, maxHeight, maxWidth, toastDuration, onModeChange, onParameterChange, onParameterActivate, onStart, onStop, startPending, stopPending, onCustomAction, onOpenConfig, showConfigButton, onUndock, undockIcon, modeSelectionStyle, embedded, }: DeviceControlPanelProps): react__default.JSX.Element | null;
|
|
505
649
|
|
|
506
650
|
type DisplayMode = 'standard' | 'dashboard';
|
|
507
651
|
interface FullscreenContainerProps {
|
|
@@ -699,7 +843,7 @@ declare const baseOverlayStyles: {
|
|
|
699
843
|
};
|
|
700
844
|
};
|
|
701
845
|
declare const overlayStyles: Record<OverlayTheme, typeof baseOverlayStyles[OverlayTheme]>;
|
|
702
|
-
declare const SVGLockedOverlay: ({ svgX, svgY, children, theme, style, className, onClick, containerSelector, }: SVGLockedOverlayProps) =>
|
|
846
|
+
declare const SVGLockedOverlay: ({ svgX, svgY, children, theme, style, className, onClick, containerSelector, }: SVGLockedOverlayProps) => react.JSX.Element;
|
|
703
847
|
declare const DashboardCard: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
|
|
704
848
|
theme?: _emotion_react.Theme;
|
|
705
849
|
} & {
|
|
@@ -722,11 +866,11 @@ declare const CardUnit: _emotion_styled.StyledComponent<{
|
|
|
722
866
|
as?: React.ElementType;
|
|
723
867
|
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
724
868
|
|
|
725
|
-
declare const TrendLine: ({ values, width, height, color, strokeWidth, backgroundColor, }: TrendLineProps) =>
|
|
726
|
-
declare const CircularGauge: ({ value, max, unit, label, size, color, }: CircularGaugeProps) =>
|
|
727
|
-
declare const Sparkline: ({ data, width, height, color }: SparklineProps) =>
|
|
728
|
-
declare const EquipmentIndicatorWithSparkline: ({ svgX, svgY, color, label, size, sparklineData, sparklineOffset, }: EquipmentIndicatorWithSparklineProps) =>
|
|
729
|
-
declare const EquipmentIndicator: ({ svgX, svgY, color, label, size, style, className, }: EquipmentIndicatorProps) =>
|
|
869
|
+
declare const TrendLine: ({ values, width, height, color, strokeWidth, backgroundColor, }: TrendLineProps) => react.JSX.Element;
|
|
870
|
+
declare const CircularGauge: ({ value, max, unit, label, size, color, }: CircularGaugeProps) => react.JSX.Element;
|
|
871
|
+
declare const Sparkline: ({ data, width, height, color }: SparklineProps) => react.JSX.Element | null;
|
|
872
|
+
declare const EquipmentIndicatorWithSparkline: ({ svgX, svgY, color, label, size, sparklineData, sparklineOffset, }: EquipmentIndicatorWithSparklineProps) => react.JSX.Element;
|
|
873
|
+
declare const EquipmentIndicator: ({ svgX, svgY, color, label, size, style, className, }: EquipmentIndicatorProps) => react.JSX.Element;
|
|
730
874
|
|
|
731
875
|
declare function FullscreenWorkspace({ svgContent, overlays, leftPanel, rightPanel, footer, tabs, activeTab, onTabChange, defaultLeftCollapsed, defaultRightCollapsed, leftCollapsed: leftCollapsedProp, rightCollapsed: rightCollapsedProp, onLeftCollapseChange, onRightCollapseChange, displayMode, defaultDisplayMode, onDisplayModeChange, showDisplayModeToggle, showZoomControls, onZoomIn, onZoomOut, onResetZoom, zoomDisabled, className, ...rest }: FullscreenWorkspaceProps): react__default.ReactElement;
|
|
732
876
|
|
|
@@ -934,93 +1078,6 @@ interface SymbolMetadata {
|
|
|
934
1078
|
tags?: string[];
|
|
935
1079
|
}
|
|
936
1080
|
|
|
937
|
-
/**
|
|
938
|
-
* Status levels for telemetry values
|
|
939
|
-
*/
|
|
940
|
-
type TelemetryStatus$1 = 'normal' | 'warning' | 'alarm' | 'fault' | 'off';
|
|
941
|
-
/**
|
|
942
|
-
* Live telemetry value with status
|
|
943
|
-
*/
|
|
944
|
-
interface TelemetryValue {
|
|
945
|
-
/** Current value */
|
|
946
|
-
value: number | string | boolean;
|
|
947
|
-
/** Status/severity level */
|
|
948
|
-
status: TelemetryStatus$1;
|
|
949
|
-
/** Unit of measurement (optional) */
|
|
950
|
-
unit?: string;
|
|
951
|
-
/** Timestamp of last update */
|
|
952
|
-
timestamp?: number;
|
|
953
|
-
/** Quality indicator (0-100, where 100 is good) */
|
|
954
|
-
quality?: number;
|
|
955
|
-
}
|
|
956
|
-
/**
|
|
957
|
-
* Telemetry data binding for a node
|
|
958
|
-
*/
|
|
959
|
-
interface TelemetryBinding {
|
|
960
|
-
/** Node ID this telemetry is bound to */
|
|
961
|
-
nodeId: string;
|
|
962
|
-
/** Tag/variable name for the telemetry source */
|
|
963
|
-
tag: string;
|
|
964
|
-
/** Current telemetry value */
|
|
965
|
-
value: TelemetryValue;
|
|
966
|
-
/** Historical values for sparkline/trend (optional) */
|
|
967
|
-
history?: number[];
|
|
968
|
-
/** Thresholds for status determination */
|
|
969
|
-
thresholds?: {
|
|
970
|
-
/** High-High threshold (value >= this triggers alarm) */
|
|
971
|
-
highHigh?: number;
|
|
972
|
-
/** High threshold (value >= this triggers warning) */
|
|
973
|
-
high?: number;
|
|
974
|
-
/** Low threshold (value <= this triggers warning) */
|
|
975
|
-
low?: number;
|
|
976
|
-
/** Low-Low threshold (value <= this triggers alarm/fault) */
|
|
977
|
-
lowLow?: number;
|
|
978
|
-
/** Custom label for high-high threshold */
|
|
979
|
-
highHighLabel?: string;
|
|
980
|
-
/** Custom label for high threshold */
|
|
981
|
-
highLabel?: string;
|
|
982
|
-
/** Custom label for low threshold */
|
|
983
|
-
lowLabel?: string;
|
|
984
|
-
/** Custom label for low-low threshold */
|
|
985
|
-
lowLowLabel?: string;
|
|
986
|
-
};
|
|
987
|
-
/** Custom colors for status levels */
|
|
988
|
-
statusColors?: {
|
|
989
|
-
normal?: string;
|
|
990
|
-
warning?: string;
|
|
991
|
-
alarm?: string;
|
|
992
|
-
fault?: string;
|
|
993
|
-
off?: string;
|
|
994
|
-
};
|
|
995
|
-
/** Display configuration */
|
|
996
|
-
display?: {
|
|
997
|
-
/** Show value overlay above node */
|
|
998
|
-
showValue?: boolean;
|
|
999
|
-
/** Show status indicator */
|
|
1000
|
-
showStatus?: boolean;
|
|
1001
|
-
/** Custom label for the value */
|
|
1002
|
-
label?: string;
|
|
1003
|
-
/** Number of decimal places for numeric values */
|
|
1004
|
-
precision?: number;
|
|
1005
|
-
/** Show sparkline trend (requires history) */
|
|
1006
|
-
showSparkline?: boolean;
|
|
1007
|
-
/** Sparkline color (defaults to status color) */
|
|
1008
|
-
sparklineColor?: string;
|
|
1009
|
-
/** Custom background color (hex code or 'status' for status-based color) */
|
|
1010
|
-
backgroundColor?: string;
|
|
1011
|
-
/** Custom text color for value display (hex code) */
|
|
1012
|
-
textColor?: string;
|
|
1013
|
-
/** Horizontal offset from node center */
|
|
1014
|
-
offsetX?: number;
|
|
1015
|
-
/** Vertical offset from node center */
|
|
1016
|
-
offsetY?: number;
|
|
1017
|
-
};
|
|
1018
|
-
}
|
|
1019
|
-
/**
|
|
1020
|
-
* Map of telemetry bindings by node ID
|
|
1021
|
-
*/
|
|
1022
|
-
type TelemetryMap = Map<string, TelemetryBinding>;
|
|
1023
|
-
|
|
1024
1081
|
interface UseViewBoxOptions {
|
|
1025
1082
|
/** Initial viewBox configuration */
|
|
1026
1083
|
initialViewBox: ViewBox;
|
|
@@ -1412,7 +1469,7 @@ interface NodeConfigPanelProps {
|
|
|
1412
1469
|
* />
|
|
1413
1470
|
* ```
|
|
1414
1471
|
*/
|
|
1415
|
-
declare function NodeConfigPanel({ node, binding, onUpdateNode, onUpdateTelemetry, onAddTelemetry, onRemove, className, style, }: NodeConfigPanelProps):
|
|
1472
|
+
declare function NodeConfigPanel({ node, binding, onUpdateNode, onUpdateTelemetry, onAddTelemetry, onRemove, className, style, }: NodeConfigPanelProps): react__default.JSX.Element;
|
|
1416
1473
|
|
|
1417
1474
|
/**
|
|
1418
1475
|
* Validates a diagram object structure
|
|
@@ -1518,11 +1575,28 @@ declare function calculateThresholdStatus(value: number, thresholds?: Thresholds
|
|
|
1518
1575
|
*/
|
|
1519
1576
|
declare const DEFAULT_THRESHOLDS: Thresholds;
|
|
1520
1577
|
|
|
1578
|
+
/** Kinds of command a node can have in flight at once. */
|
|
1579
|
+
type CommandKind = 'start' | 'stop' | 'mode' | 'parameter' | 'action';
|
|
1580
|
+
interface UseDeviceControlsOptions {
|
|
1581
|
+
/**
|
|
1582
|
+
* If set (> 0), a command whose action callback does not settle within this
|
|
1583
|
+
* many milliseconds is abandoned: the in-flight marker clears and a timeout
|
|
1584
|
+
* result is recorded as command feedback. This only bounds how long the
|
|
1585
|
+
* optional "sending…" hint shows — controls are never disabled, so a hung
|
|
1586
|
+
* command can never lock anyone out regardless of this value.
|
|
1587
|
+
*
|
|
1588
|
+
* Note: this is a UI-level abort — it stops the HMI from *waiting*, but does
|
|
1589
|
+
* not cancel an already-dispatched command (that would require the action to
|
|
1590
|
+
* honor an AbortSignal). The command may still land; telemetry remains the
|
|
1591
|
+
* source of truth for the resulting device state.
|
|
1592
|
+
*/
|
|
1593
|
+
commandTimeoutMs?: number;
|
|
1594
|
+
}
|
|
1521
1595
|
/**
|
|
1522
1596
|
* Hook for managing device control bindings
|
|
1523
1597
|
* Similar pattern to useTelemetry
|
|
1524
1598
|
*/
|
|
1525
|
-
declare function useDeviceControls(initialBindings?: DeviceControlBinding[]): {
|
|
1599
|
+
declare function useDeviceControls(initialBindings?: DeviceControlBinding[], options?: UseDeviceControlsOptions): {
|
|
1526
1600
|
controls: DeviceControlMap;
|
|
1527
1601
|
updateControl: (nodeId: string, updates: Partial<DeviceControlBinding>) => void;
|
|
1528
1602
|
updateControlBatch: (updates: Record<string, Partial<DeviceControlBinding>>) => void;
|
|
@@ -1531,6 +1605,7 @@ declare function useDeviceControls(initialBindings?: DeviceControlBinding[]): {
|
|
|
1531
1605
|
setControlBinding: (binding: DeviceControlBinding) => void;
|
|
1532
1606
|
removeControlBinding: (nodeId: string) => void;
|
|
1533
1607
|
getControlBinding: (nodeId: string) => DeviceControlBinding | undefined;
|
|
1608
|
+
isCommandPending: (nodeId: string, kind?: CommandKind) => boolean;
|
|
1534
1609
|
sendModeChange: (nodeId: string, mode: string) => Promise<void>;
|
|
1535
1610
|
sendParameterChange: (nodeId: string, parameterId: string, value: any) => Promise<void>;
|
|
1536
1611
|
sendStartCommand: (nodeId: string) => Promise<void>;
|
|
@@ -1816,7 +1891,7 @@ interface DeviceConfigPanelProps {
|
|
|
1816
1891
|
/** Embedded mode - uses static positioning for rendering in containers (default: false) */
|
|
1817
1892
|
embedded?: boolean;
|
|
1818
1893
|
}
|
|
1819
|
-
declare function DeviceConfigPanel({ binding, onClose, onUndock, undockIcon, position, align, touchOptimized, compact, fontScale, maxHeight, maxWidth, toastDuration, onOpenControls, showControlsButton, embedded, }: DeviceConfigPanelProps):
|
|
1894
|
+
declare function DeviceConfigPanel({ binding, onClose, onUndock, undockIcon, position, align, touchOptimized, compact, fontScale, maxHeight, maxWidth, toastDuration, onOpenControls, showControlsButton, embedded, }: DeviceConfigPanelProps): react__default.JSX.Element | null;
|
|
1820
1895
|
|
|
1821
1896
|
/**
|
|
1822
1897
|
* Options for simulation behavior
|
|
@@ -1856,4 +1931,4 @@ interface SimulationOptions {
|
|
|
1856
1931
|
*/
|
|
1857
1932
|
declare function useSimulation(telemetry: TelemetryMap, updateTelemetryBatch: (updates: Array<any>) => void, options?: SimulationOptions): void;
|
|
1858
1933
|
|
|
1859
|
-
export { type AnchorType, Button, type ButtonProps, CardHeader, CardUnit, CardValue, CircularGauge, type CircularGaugeProps, type ConfigActions, type ConfigDisplay, type ConfigParameter, type ConfigSection, type ConfigState, type ConfigTheme, type ControlCapabilities, type ControlMode, ControlPanel, type ControlPanelProps, type ControlParameter, type ControlState, DEFAULT_STATUS_COLORS, DEFAULT_THRESHOLDS, DashboardCard, type DataBinding, type DeviceConfigBinding, type DeviceConfigMap, DeviceConfigPanel, type DeviceConfigPanelProps, type DeviceControlBinding, type DeviceControlMap, DeviceControlPanel, type DeviceControlPanelProps, type DeviceStatus, type Diagram, type DiagramMetadata, type DisplayMode, DisplayModeToggle, type DragPoint, type DragState, EquipmentIndicator, type EquipmentIndicatorProps, EquipmentIndicatorWithSparkline, type EquipmentIndicatorWithSparklineProps, FixedSVGContainer, FooterPanel, FullscreenContainer, FullscreenWorkspace, type FullscreenWorkspaceProps, type FullscreenWorkspaceTab, type KeyboardShortcutsOptions, LeftPanel, LeftToggleButton, LegacyValueEntry, type LegacyValueEntryProps, type ModeConfig, NodeConfigPanel, type NodeConfigPanelProps, type NodeControlConfig, NodeControlsPanel, type NodeControlsPanelProps, type NodeInstance, type Overlay, type OverlayContent, type OverlayTheme, type OverlayType, PIDCanvas, type PIDCanvasControls, type PIDCanvasFeatures, type PIDCanvasProps, PanelContent, PanelTabs, type PipeEdge, type PipeStyle, type Point, type PortDefinition, type PortInstance, type PortType, RightPanel, RightToggleButton, SVGArea, SVGLockedOverlay, type SVGLockedOverlayProps, ScrollableSVGWrapper, type SelectionState, Selector, type SelectorOption, type SelectorProps, type SimulationOptions, Sparkline, type SparklineProps, type StatusColorEntry, type StatusColorMap, StatusIndicator, type StatusIndicatorProps, type SymbolCategory, type SymbolDefinition, SymbolLibrary, type SymbolLibraryProps, type SymbolMetadata, type TelemetryBinding, type TelemetryMap, type TelemetryStatus$1 as TelemetryStatus, type TelemetryValue, ThemeProvider, ThemeToggle, type ThemeToggleProps, type Thresholds, type Transform, TrendLine, type TrendLineProps, type UseDragOptions, type UseDragResult, type UseSelectionOptions, type UseSelectionResult, type UseTelemetryOptions, type UseTelemetryResult, type UseTelemetryStatusOptions, type UseViewBoxOptions, type UseViewBoxResult, ValueEntry, type ValueEntryProps, type ViewBox, ZoomButton, ZoomControls, calculateThresholdStatus, createConfigBinding, createControlBinding, exampleDiagram, exportDiagram, generateRoutePoints, getAvailableSymbols, getPortWorldPosition, getSymbolDefinition, importDiagram, mockSymbolLibrary, nodeHasPort, overlayStyles, registerSymbol, registerSymbols, resolveStatusColor, useDeviceConfigs, useDeviceControls, useDrag, useKeyboardShortcuts, useSelection, useSimulation, useTelemetry, useTelemetryStatus, useTheme, useViewBox, validateDiagram };
|
|
1934
|
+
export { type AnchorType, Button, type ButtonProps, CardHeader, CardUnit, CardValue, CircularGauge, type CircularGaugeProps, type CommandKind, type ConfigActions, type ConfigDisplay, type ConfigParameter, type ConfigSection, type ConfigState, type ConfigTheme, type ControlCapabilities, type ControlMode, ControlPanel, type ControlPanelProps, type ControlParameter, type ControlState, DEFAULT_STATUS_COLORS, DEFAULT_THRESHOLDS, DashboardCard, type DataBinding, type DeviceConfigBinding, type DeviceConfigMap, DeviceConfigPanel, type DeviceConfigPanelProps, type DeviceControlBinding, type DeviceControlMap, DeviceControlPanel, type DeviceControlPanelProps, type DeviceStatus, type Diagram, type DiagramMetadata, type DisplayMode, DisplayModeToggle, type DragPoint, type DragState, EquipmentIndicator, type EquipmentIndicatorProps, EquipmentIndicatorWithSparkline, type EquipmentIndicatorWithSparklineProps, FixedSVGContainer, FooterPanel, FullscreenContainer, FullscreenWorkspace, type FullscreenWorkspaceProps, type FullscreenWorkspaceTab, type KeyboardShortcutsOptions, LeftPanel, LeftToggleButton, LegacyValueEntry, type LegacyValueEntryProps, type ModeConfig, NodeConfigPanel, type NodeConfigPanelProps, type NodeControlConfig, NodeControlsPanel, type NodeControlsPanelProps, type NodeInstance, type Overlay, type OverlayContent, type OverlayTheme, type OverlayType, PIDCanvas, type PIDCanvasControls, type PIDCanvasFeatures, type PIDCanvasProps, PanelContent, PanelTabs, type PipeEdge, type PipeStyle, type Point, type PortDefinition, type PortInstance, type PortType, RightPanel, RightToggleButton, SVGArea, SVGLockedOverlay, type SVGLockedOverlayProps, type ScalingMetadata, ScrollableSVGWrapper, type SelectionState, Selector, type SelectorOption, type SelectorProps, type SimulationOptions, Sparkline, type SparklineProps, type StatusColorEntry, type StatusColorMap, StatusIndicator, type StatusIndicatorProps, type SymbolCategory, type SymbolDefinition, SymbolLibrary, type SymbolLibraryProps, type SymbolMetadata, type TelemetryBinding, type TelemetryMap, type TelemetryStatus$1 as TelemetryStatus, type TelemetryValue, ThemeProvider, ThemeToggle, type ThemeToggleProps, type Thresholds, type Transform, TrendLine, type TrendLineProps, type UseDeviceControlsOptions, type UseDragOptions, type UseDragResult, type UseSelectionOptions, type UseSelectionResult, type UseTelemetryOptions, type UseTelemetryResult, type UseTelemetryStatusOptions, type UseViewBoxOptions, type UseViewBoxResult, ValueEntry, type ValueEntryProps, type ViewBox, ZoomButton, ZoomControls, calculateThresholdStatus, createConfigBinding, createControlBinding, exampleDiagram, exportDiagram, generateRoutePoints, getAvailableSymbols, getPortWorldPosition, getSymbolDefinition, importDiagram, mockSymbolLibrary, nodeHasPort, overlayStyles, registerSymbol, registerSymbols, resolveStatusColor, useDeviceConfigs, useDeviceControls, useDrag, useKeyboardShortcuts, useSelection, useSimulation, useTelemetry, useTelemetryStatus, useTheme, useViewBox, validateDiagram };
|