@procaaso/alphinity-ui-components 1.4.0 → 1.7.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.cjs +847 -402
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -1
- package/dist/index.d.ts +50 -1
- package/dist/index.js +842 -398
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -647,6 +647,55 @@ interface DeviceControlPanelProps {
|
|
|
647
647
|
}
|
|
648
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;
|
|
649
649
|
|
|
650
|
+
interface NumpadDialogProps {
|
|
651
|
+
/** Whether the dialog is open */
|
|
652
|
+
isOpen: boolean;
|
|
653
|
+
/** Called when the dialog is dismissed without applying */
|
|
654
|
+
onClose: () => void;
|
|
655
|
+
/** Called with the validated, precision-rounded value when the user applies */
|
|
656
|
+
onApply: (value: number) => void;
|
|
657
|
+
/** Device / context name shown in the header */
|
|
658
|
+
deviceName?: string;
|
|
659
|
+
/** Parameter label shown in the header */
|
|
660
|
+
parameterLabel?: string;
|
|
661
|
+
/** Engineering unit shown next to the value and in range hints */
|
|
662
|
+
unit?: string;
|
|
663
|
+
/** Minimum allowed value (also enables the +/- key when negative) */
|
|
664
|
+
min?: number;
|
|
665
|
+
/** Maximum allowed value */
|
|
666
|
+
max?: number;
|
|
667
|
+
/** Step (reserved for future increment controls) */
|
|
668
|
+
step?: number;
|
|
669
|
+
/** Decimal precision applied on commit */
|
|
670
|
+
precision?: number;
|
|
671
|
+
/** Current value shown as a reference above the entry field */
|
|
672
|
+
currentValue?: number;
|
|
673
|
+
/**
|
|
674
|
+
* Optimize for touch panels (larger keys/targets). Defaults to `true` because
|
|
675
|
+
* this is aimed at industrial touchscreen HMIs; set `false` for compact
|
|
676
|
+
* desktop/keyboard-first use.
|
|
677
|
+
*/
|
|
678
|
+
touchOptimized?: boolean;
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* Modal numeric keypad for entering a device setpoint.
|
|
682
|
+
*
|
|
683
|
+
* Pairs with `DeviceControlPanel`'s `onParameterActivate` hook: the panel
|
|
684
|
+
* renders a tappable value, the consumer opens this dialog, and `onApply`
|
|
685
|
+
* commits via `onParameterChange`.
|
|
686
|
+
*
|
|
687
|
+
* Designed for BOTH touch and keyboard:
|
|
688
|
+
* - Touch: large keys, press feedback, backdrop dismiss, body scroll-lock.
|
|
689
|
+
* - Keyboard: full typing (0-9, `.`, `-`, Backspace, Enter to apply, Escape to
|
|
690
|
+
* cancel), on-screen keys kept out of the Tab order, focus trap, focus-visible
|
|
691
|
+
* outlines.
|
|
692
|
+
*
|
|
693
|
+
* Safety for setpoint use: nothing auto-commits — only Apply / Enter writes, and
|
|
694
|
+
* out-of-range values are rejected (never silently clamped). The field pre-fills
|
|
695
|
+
* with the current value so an operator never blind-zeroes a live setpoint.
|
|
696
|
+
*/
|
|
697
|
+
declare const NumpadDialog: react__default.FC<NumpadDialogProps>;
|
|
698
|
+
|
|
650
699
|
type DisplayMode = 'standard' | 'dashboard';
|
|
651
700
|
interface FullscreenContainerProps {
|
|
652
701
|
leftCollapsed: boolean;
|
|
@@ -1931,4 +1980,4 @@ interface SimulationOptions {
|
|
|
1931
1980
|
*/
|
|
1932
1981
|
declare function useSimulation(telemetry: TelemetryMap, updateTelemetryBatch: (updates: Array<any>) => void, options?: SimulationOptions): void;
|
|
1933
1982
|
|
|
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 };
|
|
1983
|
+
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, NumpadDialog, type NumpadDialogProps, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -647,6 +647,55 @@ interface DeviceControlPanelProps {
|
|
|
647
647
|
}
|
|
648
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;
|
|
649
649
|
|
|
650
|
+
interface NumpadDialogProps {
|
|
651
|
+
/** Whether the dialog is open */
|
|
652
|
+
isOpen: boolean;
|
|
653
|
+
/** Called when the dialog is dismissed without applying */
|
|
654
|
+
onClose: () => void;
|
|
655
|
+
/** Called with the validated, precision-rounded value when the user applies */
|
|
656
|
+
onApply: (value: number) => void;
|
|
657
|
+
/** Device / context name shown in the header */
|
|
658
|
+
deviceName?: string;
|
|
659
|
+
/** Parameter label shown in the header */
|
|
660
|
+
parameterLabel?: string;
|
|
661
|
+
/** Engineering unit shown next to the value and in range hints */
|
|
662
|
+
unit?: string;
|
|
663
|
+
/** Minimum allowed value (also enables the +/- key when negative) */
|
|
664
|
+
min?: number;
|
|
665
|
+
/** Maximum allowed value */
|
|
666
|
+
max?: number;
|
|
667
|
+
/** Step (reserved for future increment controls) */
|
|
668
|
+
step?: number;
|
|
669
|
+
/** Decimal precision applied on commit */
|
|
670
|
+
precision?: number;
|
|
671
|
+
/** Current value shown as a reference above the entry field */
|
|
672
|
+
currentValue?: number;
|
|
673
|
+
/**
|
|
674
|
+
* Optimize for touch panels (larger keys/targets). Defaults to `true` because
|
|
675
|
+
* this is aimed at industrial touchscreen HMIs; set `false` for compact
|
|
676
|
+
* desktop/keyboard-first use.
|
|
677
|
+
*/
|
|
678
|
+
touchOptimized?: boolean;
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* Modal numeric keypad for entering a device setpoint.
|
|
682
|
+
*
|
|
683
|
+
* Pairs with `DeviceControlPanel`'s `onParameterActivate` hook: the panel
|
|
684
|
+
* renders a tappable value, the consumer opens this dialog, and `onApply`
|
|
685
|
+
* commits via `onParameterChange`.
|
|
686
|
+
*
|
|
687
|
+
* Designed for BOTH touch and keyboard:
|
|
688
|
+
* - Touch: large keys, press feedback, backdrop dismiss, body scroll-lock.
|
|
689
|
+
* - Keyboard: full typing (0-9, `.`, `-`, Backspace, Enter to apply, Escape to
|
|
690
|
+
* cancel), on-screen keys kept out of the Tab order, focus trap, focus-visible
|
|
691
|
+
* outlines.
|
|
692
|
+
*
|
|
693
|
+
* Safety for setpoint use: nothing auto-commits — only Apply / Enter writes, and
|
|
694
|
+
* out-of-range values are rejected (never silently clamped). The field pre-fills
|
|
695
|
+
* with the current value so an operator never blind-zeroes a live setpoint.
|
|
696
|
+
*/
|
|
697
|
+
declare const NumpadDialog: react__default.FC<NumpadDialogProps>;
|
|
698
|
+
|
|
650
699
|
type DisplayMode = 'standard' | 'dashboard';
|
|
651
700
|
interface FullscreenContainerProps {
|
|
652
701
|
leftCollapsed: boolean;
|
|
@@ -1931,4 +1980,4 @@ interface SimulationOptions {
|
|
|
1931
1980
|
*/
|
|
1932
1981
|
declare function useSimulation(telemetry: TelemetryMap, updateTelemetryBatch: (updates: Array<any>) => void, options?: SimulationOptions): void;
|
|
1933
1982
|
|
|
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 };
|
|
1983
|
+
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, NumpadDialog, type NumpadDialogProps, 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 };
|