@oicl/openbridge-webcomponents-svelte 2.0.0-next.134 → 2.0.0-next.136

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.
Files changed (25) hide show
  1. package/dist/automation/automation-tank/ObcAutomationTank.svelte +4 -2
  2. package/dist/automation/automation-tank/ObcAutomationTank.svelte.d.ts +3 -2
  3. package/dist/automation/gauge-generator/ObcGaugeGenerator.svelte +130 -0
  4. package/dist/automation/gauge-generator/ObcGaugeGenerator.svelte.d.ts +112 -0
  5. package/dist/automation/gauge-motors-and-pumps/ObcGaugeMotorsAndPumps.svelte +130 -0
  6. package/dist/automation/gauge-motors-and-pumps/ObcGaugeMotorsAndPumps.svelte.d.ts +112 -0
  7. package/dist/automation/gauge-valve/ObcGaugeValve.svelte +99 -0
  8. package/dist/automation/gauge-valve/ObcGaugeValve.svelte.d.ts +86 -0
  9. package/dist/automation/heat-exchanger/ObcHeatExchanger.svelte +127 -0
  10. package/dist/automation/heat-exchanger/ObcHeatExchanger.svelte.d.ts +93 -0
  11. package/dist/automation/heat-pump/ObcHeatPump.svelte +127 -0
  12. package/dist/automation/heat-pump/ObcHeatPump.svelte.d.ts +93 -0
  13. package/dist/automation/hydraulic-separator/ObcHydraulicSeparator.svelte +127 -0
  14. package/dist/automation/hydraulic-separator/ObcHydraulicSeparator.svelte.d.ts +93 -0
  15. package/dist/automation/specialty-tank/ObcAbstractSpecialtyTank.svelte +97 -0
  16. package/dist/automation/specialty-tank/ObcAbstractSpecialtyTank.svelte.d.ts +88 -0
  17. package/dist/components/automation-button-readout-stack/ObcAutomationButtonReadoutStack.svelte +4 -0
  18. package/dist/components/automation-button-readout-stack/ObcAutomationButtonReadoutStack.svelte.d.ts +4 -0
  19. package/dist/index.d.ts +8 -1
  20. package/dist/index.js +8 -1
  21. package/dist/navigation-instruments/{gauge-radial-proportional/ObcGaugeRadialProportional.svelte → gauge-proportional/ObcGaugeProportional.svelte} +50 -15
  22. package/dist/navigation-instruments/{gauge-radial-proportional/ObcGaugeRadialProportional.svelte.d.ts → gauge-proportional/ObcGaugeProportional.svelte.d.ts} +45 -16
  23. package/dist/navigation-instruments/watch/ObcWatch.svelte +2 -0
  24. package/dist/navigation-instruments/watch/ObcWatch.svelte.d.ts +2 -0
  25. package/package.json +2 -2
@@ -1,7 +1,8 @@
1
1
 
2
2
  <script lang="ts">
3
3
  export type {LineMedium} from '@oicl/openbridge-webcomponents/dist/automation/index.js';
4
- export type {TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
4
+ export type {TankTrend, TankType, TankOrientation, TankChartMode} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
5
+ export type {TankPositioning} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/tank-positioning.js';
5
6
  export type {ChartLineDataItem} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
6
7
  export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
7
8
  export type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
@@ -11,7 +12,8 @@ export type {AutomationButtonBadgeControl, AutomationButtonBadgeAlert, Automatio
11
12
  import '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
12
13
  import { setProperties, forwardEvents } from "../../util.js";
13
14
  import type {LineMedium} from '@oicl/openbridge-webcomponents/dist/automation/index.js';
14
- import type {TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
15
+ import type {TankTrend, TankType, TankOrientation, TankChartMode} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
16
+ import type {TankPositioning} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/tank-positioning.js';
15
17
  import type {ChartLineDataItem} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
16
18
  import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
17
19
  import type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
@@ -1,6 +1,7 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
2
2
  import type { LineMedium } from '@oicl/openbridge-webcomponents/dist/automation/index.js';
3
- import type { TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode } from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
3
+ import type { TankTrend, TankType, TankOrientation, TankChartMode } from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
4
+ import type { TankPositioning } from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/tank-positioning.js';
4
5
  import type { ChartLineDataItem } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
5
6
  import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
6
7
  import type { LinearAdvice } from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
@@ -157,8 +158,8 @@ declare const ObcAutomationTank: import("svelte").Component<$$ComponentProps, {
157
158
  TankTrend: typeof TankTrend;
158
159
  TankType: typeof TankType;
159
160
  TankOrientation: typeof TankOrientation;
160
- TankPositioning: typeof TankPositioning;
161
161
  TankChartMode: typeof TankChartMode;
162
+ TankPositioning: typeof TankPositioning;
162
163
  ChartLineDataItem: typeof ChartLineDataItem;
163
164
  Priority: typeof Priority;
164
165
  LinearAdvice: typeof LinearAdvice;
@@ -0,0 +1,130 @@
1
+
2
+ <script lang="ts">
3
+ export type {InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
4
+ export type {GaugeProportionalSector, GaugeProportionalAlignment, GaugeProportionalPriority, GaugeProportionalAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-proportional/gauge-proportional.js';
5
+ export type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
6
+ export type {GaugeGeneratorType} from '@oicl/openbridge-webcomponents/dist/automation/gauge-generator/gauge-generator.js';
7
+ import '@oicl/openbridge-webcomponents/dist/automation/gauge-generator/gauge-generator.js';
8
+ import { setProperties } from "../../util.js";
9
+ import type {InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
10
+ import type {GaugeProportionalSector, GaugeProportionalAlignment, GaugeProportionalPriority, GaugeProportionalAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-proportional/gauge-proportional.js';
11
+ import type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
12
+ import type {GaugeGeneratorType} from '@oicl/openbridge-webcomponents/dist/automation/gauge-generator/gauge-generator.js';
13
+ import type { Snippet } from 'svelte';
14
+
15
+ export interface Props {
16
+ class?: string;
17
+ style?: string;
18
+ value?: number;
19
+ maxValue?: number;
20
+ minValue?: number;
21
+ /** Secondary value shown as a thin line arc at the band's inner edge with a second readout (the "primary-secondary" frame type). When undefined (default), the regular single-value frame renders. */
22
+ secondaryValue?: number | undefined;
23
+ /** Instrument state (active, loading, off). `priority: off` also renders the off face. */
24
+ state?: InstrumentState;
25
+ sector?: GaugeProportionalSector;
26
+ /** Available when `large==true`. */
27
+ alignment?: GaugeProportionalAlignment;
28
+ priority?: GaugeProportionalPriority;
29
+ showLabels?: boolean;
30
+ /** Interval for primary tickmarks in value units. When undefined or <= 0, no primary tickmarks are shown. */
31
+ primaryTickmarkInterval?: number | undefined;
32
+ /** Interval for secondary tickmarks in value units. When undefined or <= 0, no secondary tickmarks are shown. */
33
+ secondaryTickmarkInterval?: number | undefined;
34
+ tickmarkStyle?: TickmarkStyle;
35
+ /** Caution/alert arcs in value units. */
36
+ advices?: GaugeProportionalAdvice[];
37
+ /**
38
+ * When `true`, shows the center readout (and the secondary readout when the split frame renders — dashed until `secondaryValue` is set). Default `false`.
39
+ *
40
+ * Available when `large==true`.
41
+ */
42
+ hasReadout?: boolean;
43
+ /** Available when `hasReadout==true`. */
44
+ label?: string;
45
+ /**
46
+ * Unit for the in-dial readout (large) and the compact stack rows.
47
+ *
48
+ * Available when `hasReadout==true`.
49
+ */
50
+ unit?: string;
51
+ /** Available when `secondaryValue!=undefined`. */
52
+ secondaryLabel?: string;
53
+ /** Available when `secondaryValue!=undefined`. */
54
+ secondaryUnit?: string;
55
+ /** Available when `hasReadout==true`. */
56
+ fractionDigits?: number;
57
+ /**
58
+ * Name row shown under the readout (uppercase overline style).
59
+ *
60
+ * Available when `large==true`.
61
+ */
62
+ name?: string;
63
+ /** Outer-ring diameter in CSS pixels. When set, the instrument renders at a fixed intrinsic size; when unset (default), it fills its container. */
64
+ faceDiameter?: number | undefined;
65
+ /** The design's Large variant: `alignment`-controlled scale labels, in-dial readouts and the name row. When `false` (default), the Small variant renders — the face cropped to the dial with icon-only center content and a readout stack below. The Large face fills its container (or `faceDiameter`); the Small face shrinks with a tight slot but caps at the design's natural 240px dial box, so it always reads smaller than a Large face in the same slot. */
66
+ large?: boolean;
67
+ /**
68
+ * Render the readout stack below the face in the compact variant.
69
+ *
70
+ * Available when `large==false`.
71
+ */
72
+ hasLabelStack?: boolean;
73
+ /**
74
+ * Identifier line under the compact readout stack, e.g. '#0001'.
75
+ *
76
+ * Available when `large==false`.
77
+ */
78
+ tag?: string;
79
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
80
+ setpoint?: number | undefined;
81
+ /** Adjustment preview for 2-step interface.
82
+ When defined, two markers are shown: original (dimmed) + new (focus). */
83
+ newSetpoint?: number | undefined;
84
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
85
+ atSetpoint?: boolean;
86
+ /** User is physically interacting with the control.
87
+ Suppresses at-setpoint calculation and triggers focus visual. */
88
+ touching?: boolean;
89
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
90
+ autoAtSetpoint?: boolean;
91
+ /** Tolerance for auto at-setpoint detection. */
92
+ autoAtSetpointDeadband?: number;
93
+ /** Tolerance for zero-snap visual state. */
94
+ setpointAtZeroDeadband?: number;
95
+ /** Override to derive the setpoint color from the instrument's `priority`
96
+ regardless of instrument state. */
97
+ setpointOverride?: boolean;
98
+ /** Enable CSS-animated confirm transition. */
99
+ animateSetpoint?: boolean;
100
+ /** The design's Type axis; `double` renders the primary-secondary frame. */
101
+ type?: GaugeGeneratorType
102
+ }
103
+ export interface Events {
104
+
105
+ }
106
+ export interface Slots {
107
+ icon?: Snippet;
108
+ secondaryIcon?: Snippet
109
+ }
110
+ const { class: className, style, icon, secondaryIcon, ...props} = $props<Props & Events & Slots>();
111
+
112
+ </script>
113
+ <obc-gauge-generator
114
+ use:setProperties={props}
115
+ class={className}
116
+ style={style}
117
+ >
118
+
119
+ {#if icon}
120
+ <div slot="icon">
121
+ {@render icon()}
122
+ </div>
123
+ {/if}
124
+
125
+ {#if secondaryIcon}
126
+ <div slot="secondary-icon">
127
+ {@render secondaryIcon()}
128
+ </div>
129
+ {/if}
130
+ </obc-gauge-generator>
@@ -0,0 +1,112 @@
1
+ import '@oicl/openbridge-webcomponents/dist/automation/gauge-generator/gauge-generator.js';
2
+ import type { InstrumentState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
3
+ import type { GaugeProportionalSector, GaugeProportionalAlignment, GaugeProportionalPriority, GaugeProportionalAdvice } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-proportional/gauge-proportional.js';
4
+ import type { TickmarkStyle } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
5
+ import type { GaugeGeneratorType } from '@oicl/openbridge-webcomponents/dist/automation/gauge-generator/gauge-generator.js';
6
+ import type { Snippet } from 'svelte';
7
+ export interface Props {
8
+ class?: string;
9
+ style?: string;
10
+ value?: number;
11
+ maxValue?: number;
12
+ minValue?: number;
13
+ /** Secondary value shown as a thin line arc at the band's inner edge with a second readout (the "primary-secondary" frame type). When undefined (default), the regular single-value frame renders. */
14
+ secondaryValue?: number | undefined;
15
+ /** Instrument state (active, loading, off). `priority: off` also renders the off face. */
16
+ state?: InstrumentState;
17
+ sector?: GaugeProportionalSector;
18
+ /** Available when `large==true`. */
19
+ alignment?: GaugeProportionalAlignment;
20
+ priority?: GaugeProportionalPriority;
21
+ showLabels?: boolean;
22
+ /** Interval for primary tickmarks in value units. When undefined or <= 0, no primary tickmarks are shown. */
23
+ primaryTickmarkInterval?: number | undefined;
24
+ /** Interval for secondary tickmarks in value units. When undefined or <= 0, no secondary tickmarks are shown. */
25
+ secondaryTickmarkInterval?: number | undefined;
26
+ tickmarkStyle?: TickmarkStyle;
27
+ /** Caution/alert arcs in value units. */
28
+ advices?: GaugeProportionalAdvice[];
29
+ /**
30
+ * When `true`, shows the center readout (and the secondary readout when the split frame renders — dashed until `secondaryValue` is set). Default `false`.
31
+ *
32
+ * Available when `large==true`.
33
+ */
34
+ hasReadout?: boolean;
35
+ /** Available when `hasReadout==true`. */
36
+ label?: string;
37
+ /**
38
+ * Unit for the in-dial readout (large) and the compact stack rows.
39
+ *
40
+ * Available when `hasReadout==true`.
41
+ */
42
+ unit?: string;
43
+ /** Available when `secondaryValue!=undefined`. */
44
+ secondaryLabel?: string;
45
+ /** Available when `secondaryValue!=undefined`. */
46
+ secondaryUnit?: string;
47
+ /** Available when `hasReadout==true`. */
48
+ fractionDigits?: number;
49
+ /**
50
+ * Name row shown under the readout (uppercase overline style).
51
+ *
52
+ * Available when `large==true`.
53
+ */
54
+ name?: string;
55
+ /** Outer-ring diameter in CSS pixels. When set, the instrument renders at a fixed intrinsic size; when unset (default), it fills its container. */
56
+ faceDiameter?: number | undefined;
57
+ /** The design's Large variant: `alignment`-controlled scale labels, in-dial readouts and the name row. When `false` (default), the Small variant renders — the face cropped to the dial with icon-only center content and a readout stack below. The Large face fills its container (or `faceDiameter`); the Small face shrinks with a tight slot but caps at the design's natural 240px dial box, so it always reads smaller than a Large face in the same slot. */
58
+ large?: boolean;
59
+ /**
60
+ * Render the readout stack below the face in the compact variant.
61
+ *
62
+ * Available when `large==false`.
63
+ */
64
+ hasLabelStack?: boolean;
65
+ /**
66
+ * Identifier line under the compact readout stack, e.g. '#0001'.
67
+ *
68
+ * Available when `large==false`.
69
+ */
70
+ tag?: string;
71
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
72
+ setpoint?: number | undefined;
73
+ /** Adjustment preview for 2-step interface.
74
+ When defined, two markers are shown: original (dimmed) + new (focus). */
75
+ newSetpoint?: number | undefined;
76
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
77
+ atSetpoint?: boolean;
78
+ /** User is physically interacting with the control.
79
+ Suppresses at-setpoint calculation and triggers focus visual. */
80
+ touching?: boolean;
81
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
82
+ autoAtSetpoint?: boolean;
83
+ /** Tolerance for auto at-setpoint detection. */
84
+ autoAtSetpointDeadband?: number;
85
+ /** Tolerance for zero-snap visual state. */
86
+ setpointAtZeroDeadband?: number;
87
+ /** Override to derive the setpoint color from the instrument's `priority`
88
+ regardless of instrument state. */
89
+ setpointOverride?: boolean;
90
+ /** Enable CSS-animated confirm transition. */
91
+ animateSetpoint?: boolean;
92
+ /** The design's Type axis; `double` renders the primary-secondary frame. */
93
+ type?: GaugeGeneratorType;
94
+ }
95
+ export interface Events {
96
+ }
97
+ export interface Slots {
98
+ icon?: Snippet;
99
+ secondaryIcon?: Snippet;
100
+ }
101
+ type $$ComponentProps = Props & Events & Slots;
102
+ declare const ObcGaugeGenerator: import("svelte").Component<$$ComponentProps, {
103
+ InstrumentState: typeof InstrumentState;
104
+ GaugeProportionalSector: typeof GaugeProportionalSector;
105
+ GaugeProportionalAlignment: typeof GaugeProportionalAlignment;
106
+ GaugeProportionalPriority: typeof GaugeProportionalPriority;
107
+ GaugeProportionalAdvice: typeof GaugeProportionalAdvice;
108
+ TickmarkStyle: typeof TickmarkStyle;
109
+ GaugeGeneratorType: typeof GaugeGeneratorType;
110
+ }, "">;
111
+ type ObcGaugeGenerator = ReturnType<typeof ObcGaugeGenerator>;
112
+ export default ObcGaugeGenerator;
@@ -0,0 +1,130 @@
1
+
2
+ <script lang="ts">
3
+ export type {InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
4
+ export type {GaugeProportionalSector, GaugeProportionalAlignment, GaugeProportionalPriority, GaugeProportionalAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-proportional/gauge-proportional.js';
5
+ export type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
6
+ export type {GaugeMotorsAndPumpsType} from '@oicl/openbridge-webcomponents/dist/automation/gauge-motors-and-pumps/gauge-motors-and-pumps.js';
7
+ import '@oicl/openbridge-webcomponents/dist/automation/gauge-motors-and-pumps/gauge-motors-and-pumps.js';
8
+ import { setProperties } from "../../util.js";
9
+ import type {InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
10
+ import type {GaugeProportionalSector, GaugeProportionalAlignment, GaugeProportionalPriority, GaugeProportionalAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-proportional/gauge-proportional.js';
11
+ import type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
12
+ import type {GaugeMotorsAndPumpsType} from '@oicl/openbridge-webcomponents/dist/automation/gauge-motors-and-pumps/gauge-motors-and-pumps.js';
13
+ import type { Snippet } from 'svelte';
14
+
15
+ export interface Props {
16
+ class?: string;
17
+ style?: string;
18
+ value?: number;
19
+ maxValue?: number;
20
+ minValue?: number;
21
+ /** Secondary value shown as a thin line arc at the band's inner edge with a second readout (the "primary-secondary" frame type). When undefined (default), the regular single-value frame renders. */
22
+ secondaryValue?: number | undefined;
23
+ /** Instrument state (active, loading, off). `priority: off` also renders the off face. */
24
+ state?: InstrumentState;
25
+ sector?: GaugeProportionalSector;
26
+ /** Available when `large==true`. */
27
+ alignment?: GaugeProportionalAlignment;
28
+ priority?: GaugeProportionalPriority;
29
+ showLabels?: boolean;
30
+ /** Interval for primary tickmarks in value units. When undefined or <= 0, no primary tickmarks are shown. */
31
+ primaryTickmarkInterval?: number | undefined;
32
+ /** Interval for secondary tickmarks in value units. When undefined or <= 0, no secondary tickmarks are shown. */
33
+ secondaryTickmarkInterval?: number | undefined;
34
+ tickmarkStyle?: TickmarkStyle;
35
+ /** Caution/alert arcs in value units. */
36
+ advices?: GaugeProportionalAdvice[];
37
+ /**
38
+ * When `true`, shows the center readout (and the secondary readout when the split frame renders — dashed until `secondaryValue` is set). Default `false`.
39
+ *
40
+ * Available when `large==true`.
41
+ */
42
+ hasReadout?: boolean;
43
+ /** Available when `hasReadout==true`. */
44
+ label?: string;
45
+ /**
46
+ * Unit for the in-dial readout (large) and the compact stack rows.
47
+ *
48
+ * Available when `hasReadout==true`.
49
+ */
50
+ unit?: string;
51
+ /** Available when `secondaryValue!=undefined`. */
52
+ secondaryLabel?: string;
53
+ /** Available when `secondaryValue!=undefined`. */
54
+ secondaryUnit?: string;
55
+ /** Available when `hasReadout==true`. */
56
+ fractionDigits?: number;
57
+ /**
58
+ * Name row shown under the readout (uppercase overline style).
59
+ *
60
+ * Available when `large==true`.
61
+ */
62
+ name?: string;
63
+ /** Outer-ring diameter in CSS pixels. When set, the instrument renders at a fixed intrinsic size; when unset (default), it fills its container. */
64
+ faceDiameter?: number | undefined;
65
+ /** The design's Large variant: `alignment`-controlled scale labels, in-dial readouts and the name row. When `false` (default), the Small variant renders — the face cropped to the dial with icon-only center content and a readout stack below. The Large face fills its container (or `faceDiameter`); the Small face shrinks with a tight slot but caps at the design's natural 240px dial box, so it always reads smaller than a Large face in the same slot. */
66
+ large?: boolean;
67
+ /**
68
+ * Render the readout stack below the face in the compact variant.
69
+ *
70
+ * Available when `large==false`.
71
+ */
72
+ hasLabelStack?: boolean;
73
+ /**
74
+ * Identifier line under the compact readout stack, e.g. '#0001'.
75
+ *
76
+ * Available when `large==false`.
77
+ */
78
+ tag?: string;
79
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
80
+ setpoint?: number | undefined;
81
+ /** Adjustment preview for 2-step interface.
82
+ When defined, two markers are shown: original (dimmed) + new (focus). */
83
+ newSetpoint?: number | undefined;
84
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
85
+ atSetpoint?: boolean;
86
+ /** User is physically interacting with the control.
87
+ Suppresses at-setpoint calculation and triggers focus visual. */
88
+ touching?: boolean;
89
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
90
+ autoAtSetpoint?: boolean;
91
+ /** Tolerance for auto at-setpoint detection. */
92
+ autoAtSetpointDeadband?: number;
93
+ /** Tolerance for zero-snap visual state. */
94
+ setpointAtZeroDeadband?: number;
95
+ /** Override to derive the setpoint color from the instrument's `priority`
96
+ regardless of instrument state. */
97
+ setpointOverride?: boolean;
98
+ /** Enable CSS-animated confirm transition. */
99
+ animateSetpoint?: boolean;
100
+ /** The design's Type axis; drives the sector and the split frame. */
101
+ type?: GaugeMotorsAndPumpsType
102
+ }
103
+ export interface Events {
104
+
105
+ }
106
+ export interface Slots {
107
+ icon?: Snippet;
108
+ secondaryIcon?: Snippet
109
+ }
110
+ const { class: className, style, icon, secondaryIcon, ...props} = $props<Props & Events & Slots>();
111
+
112
+ </script>
113
+ <obc-gauge-motors-and-pumps
114
+ use:setProperties={props}
115
+ class={className}
116
+ style={style}
117
+ >
118
+
119
+ {#if icon}
120
+ <div slot="icon">
121
+ {@render icon()}
122
+ </div>
123
+ {/if}
124
+
125
+ {#if secondaryIcon}
126
+ <div slot="secondary-icon">
127
+ {@render secondaryIcon()}
128
+ </div>
129
+ {/if}
130
+ </obc-gauge-motors-and-pumps>
@@ -0,0 +1,112 @@
1
+ import '@oicl/openbridge-webcomponents/dist/automation/gauge-motors-and-pumps/gauge-motors-and-pumps.js';
2
+ import type { InstrumentState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
3
+ import type { GaugeProportionalSector, GaugeProportionalAlignment, GaugeProportionalPriority, GaugeProportionalAdvice } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-proportional/gauge-proportional.js';
4
+ import type { TickmarkStyle } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
5
+ import type { GaugeMotorsAndPumpsType } from '@oicl/openbridge-webcomponents/dist/automation/gauge-motors-and-pumps/gauge-motors-and-pumps.js';
6
+ import type { Snippet } from 'svelte';
7
+ export interface Props {
8
+ class?: string;
9
+ style?: string;
10
+ value?: number;
11
+ maxValue?: number;
12
+ minValue?: number;
13
+ /** Secondary value shown as a thin line arc at the band's inner edge with a second readout (the "primary-secondary" frame type). When undefined (default), the regular single-value frame renders. */
14
+ secondaryValue?: number | undefined;
15
+ /** Instrument state (active, loading, off). `priority: off` also renders the off face. */
16
+ state?: InstrumentState;
17
+ sector?: GaugeProportionalSector;
18
+ /** Available when `large==true`. */
19
+ alignment?: GaugeProportionalAlignment;
20
+ priority?: GaugeProportionalPriority;
21
+ showLabels?: boolean;
22
+ /** Interval for primary tickmarks in value units. When undefined or <= 0, no primary tickmarks are shown. */
23
+ primaryTickmarkInterval?: number | undefined;
24
+ /** Interval for secondary tickmarks in value units. When undefined or <= 0, no secondary tickmarks are shown. */
25
+ secondaryTickmarkInterval?: number | undefined;
26
+ tickmarkStyle?: TickmarkStyle;
27
+ /** Caution/alert arcs in value units. */
28
+ advices?: GaugeProportionalAdvice[];
29
+ /**
30
+ * When `true`, shows the center readout (and the secondary readout when the split frame renders — dashed until `secondaryValue` is set). Default `false`.
31
+ *
32
+ * Available when `large==true`.
33
+ */
34
+ hasReadout?: boolean;
35
+ /** Available when `hasReadout==true`. */
36
+ label?: string;
37
+ /**
38
+ * Unit for the in-dial readout (large) and the compact stack rows.
39
+ *
40
+ * Available when `hasReadout==true`.
41
+ */
42
+ unit?: string;
43
+ /** Available when `secondaryValue!=undefined`. */
44
+ secondaryLabel?: string;
45
+ /** Available when `secondaryValue!=undefined`. */
46
+ secondaryUnit?: string;
47
+ /** Available when `hasReadout==true`. */
48
+ fractionDigits?: number;
49
+ /**
50
+ * Name row shown under the readout (uppercase overline style).
51
+ *
52
+ * Available when `large==true`.
53
+ */
54
+ name?: string;
55
+ /** Outer-ring diameter in CSS pixels. When set, the instrument renders at a fixed intrinsic size; when unset (default), it fills its container. */
56
+ faceDiameter?: number | undefined;
57
+ /** The design's Large variant: `alignment`-controlled scale labels, in-dial readouts and the name row. When `false` (default), the Small variant renders — the face cropped to the dial with icon-only center content and a readout stack below. The Large face fills its container (or `faceDiameter`); the Small face shrinks with a tight slot but caps at the design's natural 240px dial box, so it always reads smaller than a Large face in the same slot. */
58
+ large?: boolean;
59
+ /**
60
+ * Render the readout stack below the face in the compact variant.
61
+ *
62
+ * Available when `large==false`.
63
+ */
64
+ hasLabelStack?: boolean;
65
+ /**
66
+ * Identifier line under the compact readout stack, e.g. '#0001'.
67
+ *
68
+ * Available when `large==false`.
69
+ */
70
+ tag?: string;
71
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
72
+ setpoint?: number | undefined;
73
+ /** Adjustment preview for 2-step interface.
74
+ When defined, two markers are shown: original (dimmed) + new (focus). */
75
+ newSetpoint?: number | undefined;
76
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
77
+ atSetpoint?: boolean;
78
+ /** User is physically interacting with the control.
79
+ Suppresses at-setpoint calculation and triggers focus visual. */
80
+ touching?: boolean;
81
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
82
+ autoAtSetpoint?: boolean;
83
+ /** Tolerance for auto at-setpoint detection. */
84
+ autoAtSetpointDeadband?: number;
85
+ /** Tolerance for zero-snap visual state. */
86
+ setpointAtZeroDeadband?: number;
87
+ /** Override to derive the setpoint color from the instrument's `priority`
88
+ regardless of instrument state. */
89
+ setpointOverride?: boolean;
90
+ /** Enable CSS-animated confirm transition. */
91
+ animateSetpoint?: boolean;
92
+ /** The design's Type axis; drives the sector and the split frame. */
93
+ type?: GaugeMotorsAndPumpsType;
94
+ }
95
+ export interface Events {
96
+ }
97
+ export interface Slots {
98
+ icon?: Snippet;
99
+ secondaryIcon?: Snippet;
100
+ }
101
+ type $$ComponentProps = Props & Events & Slots;
102
+ declare const ObcGaugeMotorsAndPumps: import("svelte").Component<$$ComponentProps, {
103
+ InstrumentState: typeof InstrumentState;
104
+ GaugeProportionalSector: typeof GaugeProportionalSector;
105
+ GaugeProportionalAlignment: typeof GaugeProportionalAlignment;
106
+ GaugeProportionalPriority: typeof GaugeProportionalPriority;
107
+ GaugeProportionalAdvice: typeof GaugeProportionalAdvice;
108
+ TickmarkStyle: typeof TickmarkStyle;
109
+ GaugeMotorsAndPumpsType: typeof GaugeMotorsAndPumpsType;
110
+ }, "">;
111
+ type ObcGaugeMotorsAndPumps = ReturnType<typeof ObcGaugeMotorsAndPumps>;
112
+ export default ObcGaugeMotorsAndPumps;
@@ -0,0 +1,99 @@
1
+
2
+ <script lang="ts">
3
+ export type {GaugeValveType, GaugeValvePriority, GaugeValveStyle} from '@oicl/openbridge-webcomponents/dist/automation/gauge-valve/gauge-valve.js';
4
+ export type {GaugeValveScalePosition} from '@oicl/openbridge-webcomponents/dist/automation/gauge-valve/gauge-valve-geometry.js';
5
+ import '@oicl/openbridge-webcomponents/dist/automation/gauge-valve/gauge-valve.js';
6
+ import { setProperties } from "../../util.js";
7
+ import type {GaugeValveType, GaugeValvePriority, GaugeValveStyle} from '@oicl/openbridge-webcomponents/dist/automation/gauge-valve/gauge-valve.js';
8
+ import type {GaugeValveScalePosition} from '@oicl/openbridge-webcomponents/dist/automation/gauge-valve/gauge-valve-geometry.js';
9
+ import type { Snippet } from 'svelte';
10
+
11
+ export interface Props {
12
+ class?: string;
13
+ style?: string;
14
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
15
+ setpoint?: number | undefined;
16
+ /** Adjustment preview for 2-step interface.
17
+ When defined, two markers are shown: original (dimmed) + new (focus). */
18
+ newSetpoint?: number | undefined;
19
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
20
+ atSetpoint?: boolean;
21
+ /** User is physically interacting with the control.
22
+ Suppresses at-setpoint calculation and triggers focus visual. */
23
+ touching?: boolean;
24
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
25
+ autoAtSetpoint?: boolean;
26
+ /** Tolerance for auto at-setpoint detection. */
27
+ autoAtSetpointDeadband?: number;
28
+ /** Tolerance for zero-snap visual state. */
29
+ setpointAtZeroDeadband?: number;
30
+ /** Override to derive the setpoint color from the instrument's `priority`
31
+ regardless of instrument state. */
32
+ setpointOverride?: boolean;
33
+ /** Enable CSS-animated confirm transition. */
34
+ animateSetpoint?: boolean;
35
+ type?: GaugeValveType;
36
+ /** Colour emphasis of the value graphics (the Figma "Type" axis); `off` blanks them on a flat disc */
37
+ priority?: GaugeValvePriority;
38
+ /** Bar rendering (the Figma "Style" axis): tint (default) shows a tint bar with strong cap pills, fill a strong bar without pills */
39
+ barStyle?: GaugeValveStyle;
40
+ /** Rotates the whole layout — ports, scale, setpoint and readout side (the designs' two-way Direction / three-way Scale axis) */
41
+ scalePosition?: GaugeValveScalePosition;
42
+ /** Through-flow of the right outlet port, 0-100 (%) */
43
+ value?: number;
44
+ /**
45
+ * Bottom outlet flow, 0-100 (%).
46
+ *
47
+ * Available when `type==three-way`.
48
+ */
49
+ bottomValue?: number;
50
+ /** Show scale, labels, readout and setpoint layer */
51
+ large?: boolean;
52
+ /**
53
+ * Readout label text.
54
+ *
55
+ * Available when `large==true`.
56
+ */
57
+ label?: string;
58
+ /**
59
+ * Readout unit text.
60
+ *
61
+ * Available when `large==true`.
62
+ */
63
+ unit?: string;
64
+ /**
65
+ * Identifier line under the compact readout stack, e.g. '#0001'.
66
+ *
67
+ * Available when `large==false && hasLabelStack==true`.
68
+ */
69
+ tag?: string;
70
+ /**
71
+ * Render the readout stack below the face in the compact variant.
72
+ *
73
+ * Available when `large==false`.
74
+ */
75
+ hasLabelStack?: boolean;
76
+ /** Ring diameter in CSS pixels. When set, the face renders at a fixed intrinsic size (equal circumference across instruments sharing the value); when unset (default), the face contain-fits its container. */
77
+ faceDiameter?: number | undefined
78
+ }
79
+ export interface Events {
80
+
81
+ }
82
+ export interface Slots {
83
+ icon?: Snippet
84
+ }
85
+ const { class: className, style, icon, ...props} = $props<Props & Events & Slots>();
86
+
87
+ </script>
88
+ <obc-gauge-valve
89
+ use:setProperties={props}
90
+ class={className}
91
+ style={style}
92
+ >
93
+
94
+ {#if icon}
95
+ <div slot="icon">
96
+ {@render icon()}
97
+ </div>
98
+ {/if}
99
+ </obc-gauge-valve>