@oicl/openbridge-webcomponents-svelte 2.0.0-next.41 → 2.0.0-next.43
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/automation/automation-tank/ObcAutomationTank.svelte +105 -4
- package/dist/automation/automation-tank/ObcAutomationTank.svelte.d.ts +112 -3
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte +16 -0
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte.d.ts +16 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/navigation-instruments/instrument-field/ObcInstrumentField.svelte +69 -0
- package/dist/navigation-instruments/instrument-field/ObcInstrumentField.svelte.d.ts +54 -0
- package/dist/navigation-instruments/readout/ObcReadout.svelte +37 -48
- package/dist/navigation-instruments/readout/ObcReadout.svelte.d.ts +31 -42
- package/dist/navigation-instruments/readout-advice/ObcReadoutAdvice.svelte +6 -7
- package/dist/navigation-instruments/readout-advice/ObcReadoutAdvice.svelte.d.ts +6 -7
- package/dist/navigation-instruments/readout-list-item/ObcReadoutListItem.svelte +4 -6
- package/dist/navigation-instruments/readout-list-item/ObcReadoutListItem.svelte.d.ts +4 -6
- package/dist/navigation-instruments/{readout-input/ObcReadoutInput.svelte → readout-setpoint/ObcReadoutSetpoint.svelte} +14 -15
- package/dist/navigation-instruments/readout-setpoint/ObcReadoutSetpoint.svelte.d.ts +46 -0
- package/package.json +2 -2
- package/dist/navigation-instruments/readout-input/ObcReadoutInput.svelte.d.ts +0 -47
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {LineMedium} from '@oicl/openbridge-webcomponents/dist/automation/index.js';
|
|
4
|
-
export type {TankTrend,
|
|
4
|
+
export type {TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
|
|
5
|
+
export type {ChartLineDataItem} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
6
|
+
export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
7
|
+
export type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
8
|
+
export type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameStatus} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
9
|
+
export type {AutomationButtonBadgeControl, AutomationButtonBadgeAlert, AutomationButtonBadgeInterlock, AutomationButtonBadgeCommandLocked} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
5
10
|
import '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
|
|
6
11
|
import { setProperties } from "../../util.js";
|
|
7
12
|
import type {LineMedium} from '@oicl/openbridge-webcomponents/dist/automation/index.js';
|
|
8
|
-
import type {TankTrend,
|
|
13
|
+
import type {TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode} from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
|
|
14
|
+
import type {ChartLineDataItem} from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
15
|
+
import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
16
|
+
import type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
17
|
+
import type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameStatus} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
18
|
+
import type {AutomationButtonBadgeControl, AutomationButtonBadgeAlert, AutomationButtonBadgeInterlock, AutomationButtonBadgeCommandLocked} from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
9
19
|
import type { Snippet } from 'svelte';
|
|
10
20
|
|
|
11
21
|
export interface Props {
|
|
@@ -15,8 +25,99 @@ import type {TankTrend, TankVariant} from '@oicl/openbridge-webcomponents/dist/a
|
|
|
15
25
|
value?: number;
|
|
16
26
|
max?: number;
|
|
17
27
|
trend?: TankTrend;
|
|
18
|
-
|
|
19
|
-
|
|
28
|
+
type?: TankType;
|
|
29
|
+
orientation?: TankOrientation;
|
|
30
|
+
compact?: boolean;
|
|
31
|
+
/** Host positioning model — see `TankPositioning` for details. Defaults to
|
|
32
|
+
`point` for backward compatibility (fixed default dimensions + P&ID
|
|
33
|
+
top-center anchor). Set to `button` to make the host fill its parent
|
|
34
|
+
container (100% × 100%) with no anchor offset. */
|
|
35
|
+
positioning?: TankPositioning;
|
|
36
|
+
/** Static (display-only) variant. Always rendered at the compact size; the
|
|
37
|
+
inner chart/bar is hidden, the bordered area is filled with
|
|
38
|
+
`--container-section-color`, and the readout is centered inside the frame.
|
|
39
|
+
Tag is rendered below the bordered area; badges (when slotted) sit above
|
|
40
|
+
the frame inside the halo and shrink the frame just like in compact mode.
|
|
41
|
+
Overrides `compact` (a static tank is always compact-sized).
|
|
42
|
+
|
|
43
|
+
Static tanks render as a non-interactive `<div role="img">` (not a
|
|
44
|
+
`<button>`), so they are not in the tab order and do not announce as
|
|
45
|
+
activatable controls. */
|
|
46
|
+
static?: boolean;
|
|
47
|
+
tag?: string;
|
|
48
|
+
/** Chart cell rendering mode.
|
|
49
|
+
- `bar`: static fill bar driven by `value`/`max` (default).
|
|
50
|
+
- `graph`: embedded `obc-gauge-trend` line/area chart.
|
|
51
|
+
- `graphAndBar`: embedded `obc-gauge-trend` with an integrated side bar. */
|
|
52
|
+
chartMode?: TankChartMode;
|
|
53
|
+
/** Time-series data points for the embedded gauge-trend (graph modes only). */
|
|
54
|
+
chartData?: ChartLineDataItem[];
|
|
55
|
+
/** Priority hint forwarded to child charts (regular | enhanced). */
|
|
56
|
+
priority?: Priority;
|
|
57
|
+
/** Advice overlays. Forwarded to the embedded `obc-gauge-trend` in
|
|
58
|
+
`graph` / `graph-and-bar` modes, or rendered as pills over the static
|
|
59
|
+
bar in `bar` mode. */
|
|
60
|
+
advice?: LinearAdvice[];
|
|
61
|
+
/** Show advice overlays (works in all `chartMode` variants). */
|
|
62
|
+
hasAdvice?: boolean;
|
|
63
|
+
/** Overlay a 32×32 decorative icon (currently `<obi-tank>`) centered on the
|
|
64
|
+
chart cell. Works in all three `chartMode` variants (bar, graph,
|
|
65
|
+
graph-and-bar) and in both orientations. The icon is rendered above the
|
|
66
|
+
bar/graph in a fixed CSS layer (does not scale with the SVG meet
|
|
67
|
+
transform) and is silhouetted with a `--border-silhouette-color` halo so
|
|
68
|
+
it stays legible on any underlying fill. The icon size scales with the
|
|
69
|
+
ambient `obc-component-size-*` class on an ancestor via the design token
|
|
70
|
+
`--automation-components-tanks-graphs-graph-icon-size` (32 → 48 → 64 → 64
|
|
71
|
+
for regular → medium → large → xl).
|
|
72
|
+
|
|
73
|
+
TODO(future): replace the hard-coded `<obi-tank>` with a `slot="graph-icon"`
|
|
74
|
+
so consumers can pass any `<obi-*>` icon. The current API ships the
|
|
75
|
+
smallest viable surface; the slot can be added without breaking the
|
|
76
|
+
boolean property. */
|
|
77
|
+
hasGraphIcon?: boolean;
|
|
78
|
+
/** Show an `<obc-alert-frame>` overlay around the bordered tank area (the
|
|
79
|
+
`.halo` wrapper). Mirrors the API of `obc-automation-button`: same six
|
|
80
|
+
properties, same three slots (`alert-icon`, `alert-label`, `alert-timer`).
|
|
81
|
+
The ring overlays `.halo` only, so the tag and readout that sit outside
|
|
82
|
+
the halo in compact / static layouts remain unaffected. */
|
|
83
|
+
alert?: boolean;
|
|
84
|
+
alertFrameType?: ObcAlertFrameType;
|
|
85
|
+
alertFrameThickness?: ObcAlertFrameThickness;
|
|
86
|
+
alertFrameStatus?: ObcAlertFrameStatus;
|
|
87
|
+
showAlertCategoryIcon?: boolean;
|
|
88
|
+
showAlertIcon?: boolean;
|
|
89
|
+
/** Show the trend chevron / off icon next to the percent readout. Default
|
|
90
|
+
`true` preserves existing behavior. Set to `false` to hide the trend
|
|
91
|
+
indicator in both compact and non-compact readouts — useful when the
|
|
92
|
+
trend is not meaningful for a given tank, or when the consumer wants
|
|
93
|
+
to keep the readout compact. Has no effect in `static` mode, which
|
|
94
|
+
renders the tank's capacity (`max` + `unit`) instead of a percent and
|
|
95
|
+
intentionally omits the trend indicator (a static tank represents
|
|
96
|
+
"device present, current state unknown"). `attribute: false` per the
|
|
97
|
+
repo's positive-default-true boolean convention. */
|
|
98
|
+
showTrendSymbol?: boolean;
|
|
99
|
+
/** Number of fraction digits used to format the percent readout in the
|
|
100
|
+
non-compact (regular) layout. Defaults to `0` (integer percent). The
|
|
101
|
+
compact layout always renders integer percent to keep its fixed-width
|
|
102
|
+
footprint stable. The static layout renders capacity (`max` + `unit`)
|
|
103
|
+
rather than percent, so this property has no effect there — pass a
|
|
104
|
+
pre-formatted value through the `max-value` slot if fractional
|
|
105
|
+
precision is needed (see the `WithFractionDigits` story). */
|
|
106
|
+
percentFractionDigits?: number;
|
|
107
|
+
/** Enum-driven badges rendered inside the `badges` cell. Mirrors the API
|
|
108
|
+
introduced for `ObcAbstractAutomationButton` in PR #839 (#829). When set
|
|
109
|
+
to a non-`None` value, an `<obc-automation-badge>` of the corresponding
|
|
110
|
+
type is rendered as fallback content for the `badges` slot. Any content
|
|
111
|
+
the consumer slots into `badges` overrides these defaults, preserving
|
|
112
|
+
backward compatibility with the existing slot-based API.
|
|
113
|
+
|
|
114
|
+
Render order (left → right): control, alert, interlock, commandLocked —
|
|
115
|
+
matching the positional convention used by `ObcAbstractAutomationButton`
|
|
116
|
+
(top-left, top-right, bottom-left, bottom-right) read row-by-row. */
|
|
117
|
+
badgeControl?: AutomationButtonBadgeControl;
|
|
118
|
+
badgeAlert?: AutomationButtonBadgeAlert;
|
|
119
|
+
badgeInterlock?: AutomationButtonBadgeInterlock;
|
|
120
|
+
badgeCommandLocked?: AutomationButtonBadgeCommandLocked
|
|
20
121
|
}
|
|
21
122
|
export interface Events {
|
|
22
123
|
|
|
@@ -1,6 +1,11 @@
|
|
|
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,
|
|
3
|
+
import type { TankTrend, TankType, TankOrientation, TankPositioning, TankChartMode } from '@oicl/openbridge-webcomponents/dist/automation/automation-tank/automation-tank.js';
|
|
4
|
+
import type { ChartLineDataItem } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
|
|
5
|
+
import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
6
|
+
import type { LinearAdvice } from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
|
|
7
|
+
import type { ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameStatus } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
8
|
+
import type { AutomationButtonBadgeControl, AutomationButtonBadgeAlert, AutomationButtonBadgeInterlock, AutomationButtonBadgeCommandLocked } from '@oicl/openbridge-webcomponents/dist/automation/automation-button/abstract-automation-button.js';
|
|
4
9
|
import type { Snippet } from 'svelte';
|
|
5
10
|
export interface Props {
|
|
6
11
|
class?: string;
|
|
@@ -9,8 +14,99 @@ export interface Props {
|
|
|
9
14
|
value?: number;
|
|
10
15
|
max?: number;
|
|
11
16
|
trend?: TankTrend;
|
|
12
|
-
|
|
17
|
+
type?: TankType;
|
|
18
|
+
orientation?: TankOrientation;
|
|
19
|
+
compact?: boolean;
|
|
20
|
+
/** Host positioning model — see `TankPositioning` for details. Defaults to
|
|
21
|
+
`point` for backward compatibility (fixed default dimensions + P&ID
|
|
22
|
+
top-center anchor). Set to `button` to make the host fill its parent
|
|
23
|
+
container (100% × 100%) with no anchor offset. */
|
|
24
|
+
positioning?: TankPositioning;
|
|
25
|
+
/** Static (display-only) variant. Always rendered at the compact size; the
|
|
26
|
+
inner chart/bar is hidden, the bordered area is filled with
|
|
27
|
+
`--container-section-color`, and the readout is centered inside the frame.
|
|
28
|
+
Tag is rendered below the bordered area; badges (when slotted) sit above
|
|
29
|
+
the frame inside the halo and shrink the frame just like in compact mode.
|
|
30
|
+
Overrides `compact` (a static tank is always compact-sized).
|
|
31
|
+
|
|
32
|
+
Static tanks render as a non-interactive `<div role="img">` (not a
|
|
33
|
+
`<button>`), so they are not in the tab order and do not announce as
|
|
34
|
+
activatable controls. */
|
|
35
|
+
static?: boolean;
|
|
13
36
|
tag?: string;
|
|
37
|
+
/** Chart cell rendering mode.
|
|
38
|
+
- `bar`: static fill bar driven by `value`/`max` (default).
|
|
39
|
+
- `graph`: embedded `obc-gauge-trend` line/area chart.
|
|
40
|
+
- `graphAndBar`: embedded `obc-gauge-trend` with an integrated side bar. */
|
|
41
|
+
chartMode?: TankChartMode;
|
|
42
|
+
/** Time-series data points for the embedded gauge-trend (graph modes only). */
|
|
43
|
+
chartData?: ChartLineDataItem[];
|
|
44
|
+
/** Priority hint forwarded to child charts (regular | enhanced). */
|
|
45
|
+
priority?: Priority;
|
|
46
|
+
/** Advice overlays. Forwarded to the embedded `obc-gauge-trend` in
|
|
47
|
+
`graph` / `graph-and-bar` modes, or rendered as pills over the static
|
|
48
|
+
bar in `bar` mode. */
|
|
49
|
+
advice?: LinearAdvice[];
|
|
50
|
+
/** Show advice overlays (works in all `chartMode` variants). */
|
|
51
|
+
hasAdvice?: boolean;
|
|
52
|
+
/** Overlay a 32×32 decorative icon (currently `<obi-tank>`) centered on the
|
|
53
|
+
chart cell. Works in all three `chartMode` variants (bar, graph,
|
|
54
|
+
graph-and-bar) and in both orientations. The icon is rendered above the
|
|
55
|
+
bar/graph in a fixed CSS layer (does not scale with the SVG meet
|
|
56
|
+
transform) and is silhouetted with a `--border-silhouette-color` halo so
|
|
57
|
+
it stays legible on any underlying fill. The icon size scales with the
|
|
58
|
+
ambient `obc-component-size-*` class on an ancestor via the design token
|
|
59
|
+
`--automation-components-tanks-graphs-graph-icon-size` (32 → 48 → 64 → 64
|
|
60
|
+
for regular → medium → large → xl).
|
|
61
|
+
|
|
62
|
+
TODO(future): replace the hard-coded `<obi-tank>` with a `slot="graph-icon"`
|
|
63
|
+
so consumers can pass any `<obi-*>` icon. The current API ships the
|
|
64
|
+
smallest viable surface; the slot can be added without breaking the
|
|
65
|
+
boolean property. */
|
|
66
|
+
hasGraphIcon?: boolean;
|
|
67
|
+
/** Show an `<obc-alert-frame>` overlay around the bordered tank area (the
|
|
68
|
+
`.halo` wrapper). Mirrors the API of `obc-automation-button`: same six
|
|
69
|
+
properties, same three slots (`alert-icon`, `alert-label`, `alert-timer`).
|
|
70
|
+
The ring overlays `.halo` only, so the tag and readout that sit outside
|
|
71
|
+
the halo in compact / static layouts remain unaffected. */
|
|
72
|
+
alert?: boolean;
|
|
73
|
+
alertFrameType?: ObcAlertFrameType;
|
|
74
|
+
alertFrameThickness?: ObcAlertFrameThickness;
|
|
75
|
+
alertFrameStatus?: ObcAlertFrameStatus;
|
|
76
|
+
showAlertCategoryIcon?: boolean;
|
|
77
|
+
showAlertIcon?: boolean;
|
|
78
|
+
/** Show the trend chevron / off icon next to the percent readout. Default
|
|
79
|
+
`true` preserves existing behavior. Set to `false` to hide the trend
|
|
80
|
+
indicator in both compact and non-compact readouts — useful when the
|
|
81
|
+
trend is not meaningful for a given tank, or when the consumer wants
|
|
82
|
+
to keep the readout compact. Has no effect in `static` mode, which
|
|
83
|
+
renders the tank's capacity (`max` + `unit`) instead of a percent and
|
|
84
|
+
intentionally omits the trend indicator (a static tank represents
|
|
85
|
+
"device present, current state unknown"). `attribute: false` per the
|
|
86
|
+
repo's positive-default-true boolean convention. */
|
|
87
|
+
showTrendSymbol?: boolean;
|
|
88
|
+
/** Number of fraction digits used to format the percent readout in the
|
|
89
|
+
non-compact (regular) layout. Defaults to `0` (integer percent). The
|
|
90
|
+
compact layout always renders integer percent to keep its fixed-width
|
|
91
|
+
footprint stable. The static layout renders capacity (`max` + `unit`)
|
|
92
|
+
rather than percent, so this property has no effect there — pass a
|
|
93
|
+
pre-formatted value through the `max-value` slot if fractional
|
|
94
|
+
precision is needed (see the `WithFractionDigits` story). */
|
|
95
|
+
percentFractionDigits?: number;
|
|
96
|
+
/** Enum-driven badges rendered inside the `badges` cell. Mirrors the API
|
|
97
|
+
introduced for `ObcAbstractAutomationButton` in PR #839 (#829). When set
|
|
98
|
+
to a non-`None` value, an `<obc-automation-badge>` of the corresponding
|
|
99
|
+
type is rendered as fallback content for the `badges` slot. Any content
|
|
100
|
+
the consumer slots into `badges` overrides these defaults, preserving
|
|
101
|
+
backward compatibility with the existing slot-based API.
|
|
102
|
+
|
|
103
|
+
Render order (left → right): control, alert, interlock, commandLocked —
|
|
104
|
+
matching the positional convention used by `ObcAbstractAutomationButton`
|
|
105
|
+
(top-left, top-right, bottom-left, bottom-right) read row-by-row. */
|
|
106
|
+
badgeControl?: AutomationButtonBadgeControl;
|
|
107
|
+
badgeAlert?: AutomationButtonBadgeAlert;
|
|
108
|
+
badgeInterlock?: AutomationButtonBadgeInterlock;
|
|
109
|
+
badgeCommandLocked?: AutomationButtonBadgeCommandLocked;
|
|
14
110
|
}
|
|
15
111
|
export interface Events {
|
|
16
112
|
}
|
|
@@ -21,7 +117,20 @@ type $$ComponentProps = Props & Events & Slots;
|
|
|
21
117
|
declare const ObcAutomationTank: import("svelte").Component<$$ComponentProps, {
|
|
22
118
|
LineMedium: typeof LineMedium;
|
|
23
119
|
TankTrend: typeof TankTrend;
|
|
24
|
-
|
|
120
|
+
TankType: typeof TankType;
|
|
121
|
+
TankOrientation: typeof TankOrientation;
|
|
122
|
+
TankPositioning: typeof TankPositioning;
|
|
123
|
+
TankChartMode: typeof TankChartMode;
|
|
124
|
+
ChartLineDataItem: typeof ChartLineDataItem;
|
|
125
|
+
Priority: typeof Priority;
|
|
126
|
+
LinearAdvice: typeof LinearAdvice;
|
|
127
|
+
ObcAlertFrameType: typeof ObcAlertFrameType;
|
|
128
|
+
ObcAlertFrameThickness: typeof ObcAlertFrameThickness;
|
|
129
|
+
ObcAlertFrameStatus: typeof ObcAlertFrameStatus;
|
|
130
|
+
AutomationButtonBadgeControl: typeof AutomationButtonBadgeControl;
|
|
131
|
+
AutomationButtonBadgeAlert: typeof AutomationButtonBadgeAlert;
|
|
132
|
+
AutomationButtonBadgeInterlock: typeof AutomationButtonBadgeInterlock;
|
|
133
|
+
AutomationButtonBadgeCommandLocked: typeof AutomationButtonBadgeCommandLocked;
|
|
25
134
|
}, "">;
|
|
26
135
|
type ObcAutomationTank = ReturnType<typeof ObcAutomationTank>;
|
|
27
136
|
export default ObcAutomationTank;
|
|
@@ -53,6 +53,22 @@ showGridX?: boolean;
|
|
|
53
53
|
showGridY?: boolean;
|
|
54
54
|
/** Show axis tick marks and labels. */
|
|
55
55
|
showTickMarks?: boolean;
|
|
56
|
+
/** Reserve canvas padding for axis tick labels on sides without an external scale.
|
|
57
|
+
|
|
58
|
+
When `true` (default), the chart leaves room for tick labels and renders them
|
|
59
|
+
(subject to `showTickMarks` and the 192px auto-compact threshold).
|
|
60
|
+
|
|
61
|
+
When `false`, the chart renders edge-to-edge on sides without a slotted external
|
|
62
|
+
scale AND axis tick labels are force-hidden so they cannot be clipped. This also
|
|
63
|
+
suppresses the automatic edge-to-edge switch that normally happens below the
|
|
64
|
+
192px threshold, eliminating the visible padding "jump" when crossing it.
|
|
65
|
+
|
|
66
|
+
Useful when embedding the chart inside another component that owns framing
|
|
67
|
+
and never wants to show axis labels (e.g. `obc-automation-tank`).
|
|
68
|
+
|
|
69
|
+
Defaults to `true` to preserve existing behavior. Declared with `attribute: false`
|
|
70
|
+
because a `true`-default boolean cannot work as an HTML boolean attribute. */
|
|
71
|
+
hasLabelPadding?: boolean;
|
|
56
72
|
/** Show point markers on data points. Default: false. */
|
|
57
73
|
showPoints?: boolean;
|
|
58
74
|
/** Line drawing style: 'smooth' (curved), 'straight', or 'stepped'. */
|
|
@@ -49,6 +49,22 @@ Default: 384 (matches Figma design baseline). */
|
|
|
49
49
|
showGridY?: boolean;
|
|
50
50
|
/** Show axis tick marks and labels. */
|
|
51
51
|
showTickMarks?: boolean;
|
|
52
|
+
/** Reserve canvas padding for axis tick labels on sides without an external scale.
|
|
53
|
+
|
|
54
|
+
When `true` (default), the chart leaves room for tick labels and renders them
|
|
55
|
+
(subject to `showTickMarks` and the 192px auto-compact threshold).
|
|
56
|
+
|
|
57
|
+
When `false`, the chart renders edge-to-edge on sides without a slotted external
|
|
58
|
+
scale AND axis tick labels are force-hidden so they cannot be clipped. This also
|
|
59
|
+
suppresses the automatic edge-to-edge switch that normally happens below the
|
|
60
|
+
192px threshold, eliminating the visible padding "jump" when crossing it.
|
|
61
|
+
|
|
62
|
+
Useful when embedding the chart inside another component that owns framing
|
|
63
|
+
and never wants to show axis labels (e.g. `obc-automation-tank`).
|
|
64
|
+
|
|
65
|
+
Defaults to `true` to preserve existing behavior. Declared with `attribute: false`
|
|
66
|
+
because a `true`-default boolean cannot work as an HTML boolean attribute. */
|
|
67
|
+
hasLabelPadding?: boolean;
|
|
52
68
|
/** Show point markers on data points. Default: false. */
|
|
53
69
|
showPoints?: boolean;
|
|
54
70
|
/** Line drawing style: 'smooth' (curved), 'straight', or 'stepped'. */
|
package/dist/index.d.ts
CHANGED
|
@@ -2171,6 +2171,7 @@ export { default as ObcHeading } from './navigation-instruments/heading/ObcHeadi
|
|
|
2171
2171
|
export { default as ObcHeadingIndicator } from './navigation-instruments/heading-indicator/ObcHeadingIndicator.svelte';
|
|
2172
2172
|
export { default as ObcHeave } from './navigation-instruments/heave/ObcHeave.svelte';
|
|
2173
2173
|
export { default as ObcHeaveIndicator } from './navigation-instruments/heave-indicator/ObcHeaveIndicator.svelte';
|
|
2174
|
+
export { default as ObcInstrumentField } from './navigation-instruments/instrument-field/ObcInstrumentField.svelte';
|
|
2174
2175
|
export { default as ObcMainEngine } from './navigation-instruments/main-engine/ObcMainEngine.svelte';
|
|
2175
2176
|
export { default as ObcMainEngineIndicator } from './navigation-instruments/main-engine-indicator/ObcMainEngineIndicator.svelte';
|
|
2176
2177
|
export { default as ObcPitch } from './navigation-instruments/pitch/ObcPitch.svelte';
|
|
@@ -2181,8 +2182,8 @@ export { default as ObcTunnelThruster } from './navigation-instruments/propulsio
|
|
|
2181
2182
|
export { default as ObcRateOfTurn } from './navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte';
|
|
2182
2183
|
export { default as ObcReadout } from './navigation-instruments/readout/ObcReadout.svelte';
|
|
2183
2184
|
export { default as ObcReadoutAdvice } from './navigation-instruments/readout-advice/ObcReadoutAdvice.svelte';
|
|
2184
|
-
export { default as ObcReadoutInput } from './navigation-instruments/readout-input/ObcReadoutInput.svelte';
|
|
2185
2185
|
export { default as ObcReadoutListItem } from './navigation-instruments/readout-list-item/ObcReadoutListItem.svelte';
|
|
2186
|
+
export { default as ObcReadoutSetpoint } from './navigation-instruments/readout-setpoint/ObcReadoutSetpoint.svelte';
|
|
2186
2187
|
export { default as ObcRoll } from './navigation-instruments/roll/ObcRoll.svelte';
|
|
2187
2188
|
export { default as ObcRollIndicator } from './navigation-instruments/roll-indicator/ObcRollIndicator.svelte';
|
|
2188
2189
|
export { default as ObcRotIndicator } from './navigation-instruments/rot-indicator/ObcRotIndicator.svelte';
|
package/dist/index.js
CHANGED
|
@@ -2171,6 +2171,7 @@ export { default as ObcHeading } from './navigation-instruments/heading/ObcHeadi
|
|
|
2171
2171
|
export { default as ObcHeadingIndicator } from './navigation-instruments/heading-indicator/ObcHeadingIndicator.svelte';
|
|
2172
2172
|
export { default as ObcHeave } from './navigation-instruments/heave/ObcHeave.svelte';
|
|
2173
2173
|
export { default as ObcHeaveIndicator } from './navigation-instruments/heave-indicator/ObcHeaveIndicator.svelte';
|
|
2174
|
+
export { default as ObcInstrumentField } from './navigation-instruments/instrument-field/ObcInstrumentField.svelte';
|
|
2174
2175
|
export { default as ObcMainEngine } from './navigation-instruments/main-engine/ObcMainEngine.svelte';
|
|
2175
2176
|
export { default as ObcMainEngineIndicator } from './navigation-instruments/main-engine-indicator/ObcMainEngineIndicator.svelte';
|
|
2176
2177
|
export { default as ObcPitch } from './navigation-instruments/pitch/ObcPitch.svelte';
|
|
@@ -2181,8 +2182,8 @@ export { default as ObcTunnelThruster } from './navigation-instruments/propulsio
|
|
|
2181
2182
|
export { default as ObcRateOfTurn } from './navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte';
|
|
2182
2183
|
export { default as ObcReadout } from './navigation-instruments/readout/ObcReadout.svelte';
|
|
2183
2184
|
export { default as ObcReadoutAdvice } from './navigation-instruments/readout-advice/ObcReadoutAdvice.svelte';
|
|
2184
|
-
export { default as ObcReadoutInput } from './navigation-instruments/readout-input/ObcReadoutInput.svelte';
|
|
2185
2185
|
export { default as ObcReadoutListItem } from './navigation-instruments/readout-list-item/ObcReadoutListItem.svelte';
|
|
2186
|
+
export { default as ObcReadoutSetpoint } from './navigation-instruments/readout-setpoint/ObcReadoutSetpoint.svelte';
|
|
2186
2187
|
export { default as ObcRoll } from './navigation-instruments/roll/ObcRoll.svelte';
|
|
2187
2188
|
export { default as ObcRollIndicator } from './navigation-instruments/roll-indicator/ObcRollIndicator.svelte';
|
|
2188
2189
|
export { default as ObcRotIndicator } from './navigation-instruments/rot-indicator/ObcRotIndicator.svelte';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {InstrumentFieldSize} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/instrument-field/instrument-field.js';
|
|
4
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/instrument-field/instrument-field.js';
|
|
5
|
+
import { setProperties } from "../../util.js";
|
|
6
|
+
import type {InstrumentFieldSize} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/instrument-field/instrument-field.js';
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
class?: string;
|
|
11
|
+
style?: string;
|
|
12
|
+
/** The size of the instrument field. */
|
|
13
|
+
size?: InstrumentFieldSize;
|
|
14
|
+
/** The setpoint value to display. */
|
|
15
|
+
setpoint?: number | undefined;
|
|
16
|
+
/** Whether to show the setpoint. */
|
|
17
|
+
hasSetpoint?: boolean;
|
|
18
|
+
/** Whether to show the source (src) field. */
|
|
19
|
+
hasSrc?: boolean;
|
|
20
|
+
/** The primary value to display. */
|
|
21
|
+
value?: number | undefined;
|
|
22
|
+
/** The maximum number of integer digits to show (for zero padding). */
|
|
23
|
+
maxDigits?: number;
|
|
24
|
+
/** Whether to show leading zeros up to `maxDigits`. */
|
|
25
|
+
showZeroPadding?: boolean;
|
|
26
|
+
/** The number of decimal places to display. */
|
|
27
|
+
fractionDigits?: number;
|
|
28
|
+
/** The tag or label for the data (e.g., "HDG", "SPD"). */
|
|
29
|
+
tag?: string;
|
|
30
|
+
/** The unit of measurement (e.g., "DEG", "KN"). */
|
|
31
|
+
unit?: string;
|
|
32
|
+
/** The current source name (e.g., "GPS 1"). */
|
|
33
|
+
src?: string;
|
|
34
|
+
/** If true, uses a neutral color scheme instead of the default instrument color. */
|
|
35
|
+
neutralColor?: boolean;
|
|
36
|
+
/** If true, uses a horizontal layout. */
|
|
37
|
+
horizontal?: boolean;
|
|
38
|
+
/** If true, centers the content. */
|
|
39
|
+
center?: boolean;
|
|
40
|
+
/** If true, only the label (tag and unit) is displayed. */
|
|
41
|
+
labelOnly?: boolean;
|
|
42
|
+
/** If true, displays the "off" state (e.g., showing "OFF" instead of value). */
|
|
43
|
+
off?: boolean;
|
|
44
|
+
/** If true, automatically hides the setpoint when the value is close to it. */
|
|
45
|
+
autoHideSetpoint?: boolean;
|
|
46
|
+
/** The deadband within which the setpoint is hidden if `autoHideSetpoint` is true. */
|
|
47
|
+
autoHideDeadband?: number
|
|
48
|
+
}
|
|
49
|
+
export interface Events {
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
export interface Slots {
|
|
53
|
+
offValue?: Snippet
|
|
54
|
+
}
|
|
55
|
+
const { class: className, style, offValue, ...props} = $props<Props & Events & Slots>();
|
|
56
|
+
|
|
57
|
+
</script>
|
|
58
|
+
<obc-instrument-field
|
|
59
|
+
use:setProperties={props}
|
|
60
|
+
class={className}
|
|
61
|
+
style={style}
|
|
62
|
+
>
|
|
63
|
+
|
|
64
|
+
{#if offValue}
|
|
65
|
+
<div slot="off-value">
|
|
66
|
+
{@render offValue()}
|
|
67
|
+
</div>
|
|
68
|
+
{/if}
|
|
69
|
+
</obc-instrument-field>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/instrument-field/instrument-field.js';
|
|
2
|
+
import type { InstrumentFieldSize } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/instrument-field/instrument-field.js';
|
|
3
|
+
import type { Snippet } from 'svelte';
|
|
4
|
+
export interface Props {
|
|
5
|
+
class?: string;
|
|
6
|
+
style?: string;
|
|
7
|
+
/** The size of the instrument field. */
|
|
8
|
+
size?: InstrumentFieldSize;
|
|
9
|
+
/** The setpoint value to display. */
|
|
10
|
+
setpoint?: number | undefined;
|
|
11
|
+
/** Whether to show the setpoint. */
|
|
12
|
+
hasSetpoint?: boolean;
|
|
13
|
+
/** Whether to show the source (src) field. */
|
|
14
|
+
hasSrc?: boolean;
|
|
15
|
+
/** The primary value to display. */
|
|
16
|
+
value?: number | undefined;
|
|
17
|
+
/** The maximum number of integer digits to show (for zero padding). */
|
|
18
|
+
maxDigits?: number;
|
|
19
|
+
/** Whether to show leading zeros up to `maxDigits`. */
|
|
20
|
+
showZeroPadding?: boolean;
|
|
21
|
+
/** The number of decimal places to display. */
|
|
22
|
+
fractionDigits?: number;
|
|
23
|
+
/** The tag or label for the data (e.g., "HDG", "SPD"). */
|
|
24
|
+
tag?: string;
|
|
25
|
+
/** The unit of measurement (e.g., "DEG", "KN"). */
|
|
26
|
+
unit?: string;
|
|
27
|
+
/** The current source name (e.g., "GPS 1"). */
|
|
28
|
+
src?: string;
|
|
29
|
+
/** If true, uses a neutral color scheme instead of the default instrument color. */
|
|
30
|
+
neutralColor?: boolean;
|
|
31
|
+
/** If true, uses a horizontal layout. */
|
|
32
|
+
horizontal?: boolean;
|
|
33
|
+
/** If true, centers the content. */
|
|
34
|
+
center?: boolean;
|
|
35
|
+
/** If true, only the label (tag and unit) is displayed. */
|
|
36
|
+
labelOnly?: boolean;
|
|
37
|
+
/** If true, displays the "off" state (e.g., showing "OFF" instead of value). */
|
|
38
|
+
off?: boolean;
|
|
39
|
+
/** If true, automatically hides the setpoint when the value is close to it. */
|
|
40
|
+
autoHideSetpoint?: boolean;
|
|
41
|
+
/** The deadband within which the setpoint is hidden if `autoHideSetpoint` is true. */
|
|
42
|
+
autoHideDeadband?: number;
|
|
43
|
+
}
|
|
44
|
+
export interface Events {
|
|
45
|
+
}
|
|
46
|
+
export interface Slots {
|
|
47
|
+
offValue?: Snippet;
|
|
48
|
+
}
|
|
49
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
50
|
+
declare const ObcInstrumentField: import("svelte").Component<$$ComponentProps, {
|
|
51
|
+
InstrumentFieldSize: typeof InstrumentFieldSize;
|
|
52
|
+
}, "">;
|
|
53
|
+
type ObcInstrumentField = ReturnType<typeof ObcInstrumentField>;
|
|
54
|
+
export default ObcInstrumentField;
|
|
@@ -1,85 +1,74 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ReadoutSourceType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-source.js';
|
|
4
|
-
export type {ReadoutVariant, ReadoutAlertState,
|
|
4
|
+
export type {ReadoutVariant, ReadoutAlertState, ReadoutSetpointInteraction, ReadoutDirection, ReadoutStackVerticalAlignment} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
5
5
|
export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
6
|
-
export type {
|
|
6
|
+
export type {ReadoutSetpointSize, ReadoutSetpointFormat} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-setpoint/readout-setpoint.js';
|
|
7
7
|
export type {ReadoutAdviceFormat, ReadoutAdviceState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
8
8
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
9
9
|
import { setProperties } from "../../util.js";
|
|
10
10
|
import type {ReadoutSourceType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-source.js';
|
|
11
|
-
import type {ReadoutVariant, ReadoutAlertState,
|
|
11
|
+
import type {ReadoutVariant, ReadoutAlertState, ReadoutSetpointInteraction, ReadoutDirection, ReadoutStackVerticalAlignment} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
12
12
|
import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
13
|
-
import type {
|
|
13
|
+
import type {ReadoutSetpointSize, ReadoutSetpointFormat} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-setpoint/readout-setpoint.js';
|
|
14
14
|
import type {ReadoutAdviceFormat, ReadoutAdviceState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
15
15
|
import type { Snippet } from 'svelte';
|
|
16
16
|
|
|
17
17
|
export interface Props {
|
|
18
18
|
class?: string;
|
|
19
19
|
style?: string;
|
|
20
|
+
value?: number | undefined;
|
|
21
|
+
hasSetpoint?: boolean;
|
|
22
|
+
setpointValue?: number | undefined;
|
|
20
23
|
variant?: ReadoutVariant;
|
|
24
|
+
hasDegree?: boolean;
|
|
25
|
+
label?: string;
|
|
26
|
+
unit?: string | undefined;
|
|
27
|
+
src?: string | undefined;
|
|
28
|
+
off?: boolean;
|
|
21
29
|
valuePriority?: Priority | undefined;
|
|
22
30
|
alertState?: ReadoutAlertState;
|
|
23
|
-
|
|
31
|
+
setpointInteraction?: ReadoutSetpointInteraction;
|
|
24
32
|
direction?: ReadoutDirection;
|
|
25
|
-
/** Override the size of the
|
|
33
|
+
/** Override the size of the setpoint segment (when `hasSetpoint` is true).
|
|
26
34
|
|
|
27
35
|
- In `alwaysVisible` and `popUp` interaction modes: any size value applies.
|
|
28
36
|
- In `flipFlop` mode: the override is honored only when strictly smaller
|
|
29
37
|
than the variant's base size (medium for `regular`, large for
|
|
30
38
|
`enhanced`/`stack`). Larger overrides are ignored, falling back to the
|
|
31
39
|
default secondary size to preserve the flip-flop visual effect and
|
|
32
|
-
prevent
|
|
40
|
+
prevent setpoint/value overlap.
|
|
33
41
|
|
|
34
|
-
When unset, the
|
|
42
|
+
When unset, the setpoint size is derived from `variant` (and adjusted for
|
|
35
43
|
multi-line formats). */
|
|
36
|
-
|
|
44
|
+
setpointSize?: ReadoutSetpointSize | undefined;
|
|
37
45
|
alignment?: ReadoutStackVerticalAlignment;
|
|
38
46
|
hug?: boolean;
|
|
39
|
-
|
|
40
|
-
hasInput?: boolean;
|
|
41
|
-
hasInputDivider?: boolean;
|
|
47
|
+
hasSetpointDivider?: boolean;
|
|
42
48
|
hasSourceDivider?: boolean;
|
|
43
|
-
hasSrc?: boolean;
|
|
44
|
-
value?: string | number | undefined;
|
|
45
|
-
maxDigits?: number;
|
|
46
49
|
showZeroPadding?: boolean;
|
|
47
50
|
fractionDigits?: number;
|
|
48
|
-
|
|
49
|
-
valueLength?: string;
|
|
51
|
+
minValueLength?: number;
|
|
50
52
|
valueHasHintedZeros?: boolean;
|
|
51
|
-
hasDegree?: boolean;
|
|
52
|
-
unit?: string;
|
|
53
|
-
src?: string;
|
|
54
|
-
sourceDeltaValue?: string;
|
|
55
53
|
labelOnly?: boolean;
|
|
56
54
|
hasSrcPicker?: boolean;
|
|
57
|
-
|
|
58
|
-
adviceValue?: string | number | undefined;
|
|
59
|
-
setpointValue?: string | number | undefined;
|
|
60
|
-
label?: string;
|
|
55
|
+
sourceDeltaValue?: number;
|
|
61
56
|
sourceType?: ReadoutSourceType | undefined;
|
|
57
|
+
hasLeadingIcon?: boolean;
|
|
62
58
|
sourceHug?: boolean;
|
|
63
59
|
hasSourceLeadingIcon?: boolean;
|
|
64
60
|
hasSourceTrailingIcon?: boolean;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
hasUnitFixedLength?: boolean;
|
|
68
|
-
unitLength?: string;
|
|
61
|
+
hasAdvice?: boolean;
|
|
62
|
+
adviceValue?: number | undefined;
|
|
69
63
|
adviceFormat?: ReadoutAdviceFormat;
|
|
70
64
|
adviceState?: ReadoutAdviceState;
|
|
71
|
-
|
|
72
|
-
adviceHasFixedLength?: boolean;
|
|
73
|
-
adviceSecondaryValue?: string;
|
|
65
|
+
adviceSecondaryValue?: number | undefined;
|
|
74
66
|
adviceDescription?: string;
|
|
75
|
-
adviceValueLength?: string;
|
|
76
67
|
adviceHasHintedZeros?: boolean;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
inputValueLength?: string;
|
|
82
|
-
inputHasHintedZeros?: boolean
|
|
68
|
+
setpointFormat?: ReadoutSetpointFormat;
|
|
69
|
+
setpointSecondaryValue?: number | undefined;
|
|
70
|
+
setpointDescription?: string;
|
|
71
|
+
setpointHasHintedZeros?: boolean
|
|
83
72
|
}
|
|
84
73
|
export interface Events {
|
|
85
74
|
onSourceFlyoutClick?: (event: CustomEvent<{src: string, sourceType?: ReadoutSourceType}>) => void;
|
|
@@ -88,8 +77,8 @@ inputSize?: ReadoutInputSize | undefined;
|
|
|
88
77
|
export interface Slots {
|
|
89
78
|
advice?: Snippet;
|
|
90
79
|
adviceIcon?: Snippet;
|
|
91
|
-
|
|
92
|
-
|
|
80
|
+
setpoint?: Snippet;
|
|
81
|
+
setpointIcon?: Snippet;
|
|
93
82
|
leadingIcon?: Snippet;
|
|
94
83
|
valueSnippet?: Snippet;
|
|
95
84
|
labelSnippet?: Snippet;
|
|
@@ -97,7 +86,7 @@ inputSize?: ReadoutInputSize | undefined;
|
|
|
97
86
|
source?: Snippet;
|
|
98
87
|
srcPickerContent?: Snippet
|
|
99
88
|
}
|
|
100
|
-
const {onSourceFlyoutClick, onSourceChange, class: className, style, advice, adviceIcon,
|
|
89
|
+
const {onSourceFlyoutClick, onSourceChange, class: className, style, advice, adviceIcon, setpoint, setpointIcon, leadingIcon, valueSnippet, labelSnippet, unitSnippet, source, srcPickerContent, ...props} = $props<Props & Events & Slots>();
|
|
101
90
|
|
|
102
91
|
</script>
|
|
103
92
|
<obc-readout
|
|
@@ -119,15 +108,15 @@ inputSize?: ReadoutInputSize | undefined;
|
|
|
119
108
|
</div>
|
|
120
109
|
{/if}
|
|
121
110
|
|
|
122
|
-
{#if
|
|
123
|
-
<div slot="
|
|
124
|
-
{@render
|
|
111
|
+
{#if setpoint}
|
|
112
|
+
<div slot="setpoint">
|
|
113
|
+
{@render setpoint()}
|
|
125
114
|
</div>
|
|
126
115
|
{/if}
|
|
127
116
|
|
|
128
|
-
{#if
|
|
129
|
-
<div slot="
|
|
130
|
-
{@render
|
|
117
|
+
{#if setpointIcon}
|
|
118
|
+
<div slot="setpoint-icon">
|
|
119
|
+
{@render setpointIcon()}
|
|
131
120
|
</div>
|
|
132
121
|
{/if}
|
|
133
122
|
|
|
@@ -1,76 +1,65 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
2
2
|
import type { ReadoutSourceType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-source.js';
|
|
3
|
-
import type { ReadoutVariant, ReadoutAlertState,
|
|
3
|
+
import type { ReadoutVariant, ReadoutAlertState, ReadoutSetpointInteraction, ReadoutDirection, ReadoutStackVerticalAlignment } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
4
4
|
import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ReadoutSetpointSize, ReadoutSetpointFormat } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-setpoint/readout-setpoint.js';
|
|
6
6
|
import type { ReadoutAdviceFormat, ReadoutAdviceState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
export interface Props {
|
|
9
9
|
class?: string;
|
|
10
10
|
style?: string;
|
|
11
|
+
value?: number | undefined;
|
|
12
|
+
hasSetpoint?: boolean;
|
|
13
|
+
setpointValue?: number | undefined;
|
|
11
14
|
variant?: ReadoutVariant;
|
|
15
|
+
hasDegree?: boolean;
|
|
16
|
+
label?: string;
|
|
17
|
+
unit?: string | undefined;
|
|
18
|
+
src?: string | undefined;
|
|
19
|
+
off?: boolean;
|
|
12
20
|
valuePriority?: Priority | undefined;
|
|
13
21
|
alertState?: ReadoutAlertState;
|
|
14
|
-
|
|
22
|
+
setpointInteraction?: ReadoutSetpointInteraction;
|
|
15
23
|
direction?: ReadoutDirection;
|
|
16
|
-
/** Override the size of the
|
|
24
|
+
/** Override the size of the setpoint segment (when `hasSetpoint` is true).
|
|
17
25
|
|
|
18
26
|
- In `alwaysVisible` and `popUp` interaction modes: any size value applies.
|
|
19
27
|
- In `flipFlop` mode: the override is honored only when strictly smaller
|
|
20
28
|
than the variant's base size (medium for `regular`, large for
|
|
21
29
|
`enhanced`/`stack`). Larger overrides are ignored, falling back to the
|
|
22
30
|
default secondary size to preserve the flip-flop visual effect and
|
|
23
|
-
prevent
|
|
31
|
+
prevent setpoint/value overlap.
|
|
24
32
|
|
|
25
|
-
When unset, the
|
|
33
|
+
When unset, the setpoint size is derived from `variant` (and adjusted for
|
|
26
34
|
multi-line formats). */
|
|
27
|
-
|
|
35
|
+
setpointSize?: ReadoutSetpointSize | undefined;
|
|
28
36
|
alignment?: ReadoutStackVerticalAlignment;
|
|
29
37
|
hug?: boolean;
|
|
30
|
-
|
|
31
|
-
hasInput?: boolean;
|
|
32
|
-
hasInputDivider?: boolean;
|
|
38
|
+
hasSetpointDivider?: boolean;
|
|
33
39
|
hasSourceDivider?: boolean;
|
|
34
|
-
hasSrc?: boolean;
|
|
35
|
-
value?: string | number | undefined;
|
|
36
|
-
maxDigits?: number;
|
|
37
40
|
showZeroPadding?: boolean;
|
|
38
41
|
fractionDigits?: number;
|
|
39
|
-
|
|
40
|
-
valueLength?: string;
|
|
42
|
+
minValueLength?: number;
|
|
41
43
|
valueHasHintedZeros?: boolean;
|
|
42
|
-
hasDegree?: boolean;
|
|
43
|
-
unit?: string;
|
|
44
|
-
src?: string;
|
|
45
|
-
sourceDeltaValue?: string;
|
|
46
44
|
labelOnly?: boolean;
|
|
47
45
|
hasSrcPicker?: boolean;
|
|
48
|
-
|
|
49
|
-
adviceValue?: string | number | undefined;
|
|
50
|
-
setpointValue?: string | number | undefined;
|
|
51
|
-
label?: string;
|
|
46
|
+
sourceDeltaValue?: number;
|
|
52
47
|
sourceType?: ReadoutSourceType | undefined;
|
|
48
|
+
hasLeadingIcon?: boolean;
|
|
53
49
|
sourceHug?: boolean;
|
|
54
50
|
hasSourceLeadingIcon?: boolean;
|
|
55
51
|
hasSourceTrailingIcon?: boolean;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
hasUnitFixedLength?: boolean;
|
|
59
|
-
unitLength?: string;
|
|
52
|
+
hasAdvice?: boolean;
|
|
53
|
+
adviceValue?: number | undefined;
|
|
60
54
|
adviceFormat?: ReadoutAdviceFormat;
|
|
61
55
|
adviceState?: ReadoutAdviceState;
|
|
62
|
-
|
|
63
|
-
adviceHasFixedLength?: boolean;
|
|
64
|
-
adviceSecondaryValue?: string;
|
|
56
|
+
adviceSecondaryValue?: number | undefined;
|
|
65
57
|
adviceDescription?: string;
|
|
66
|
-
adviceValueLength?: string;
|
|
67
58
|
adviceHasHintedZeros?: boolean;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
inputValueLength?: string;
|
|
73
|
-
inputHasHintedZeros?: boolean;
|
|
59
|
+
setpointFormat?: ReadoutSetpointFormat;
|
|
60
|
+
setpointSecondaryValue?: number | undefined;
|
|
61
|
+
setpointDescription?: string;
|
|
62
|
+
setpointHasHintedZeros?: boolean;
|
|
74
63
|
}
|
|
75
64
|
export interface Events {
|
|
76
65
|
onSourceFlyoutClick?: (event: CustomEvent<{
|
|
@@ -85,8 +74,8 @@ export interface Events {
|
|
|
85
74
|
export interface Slots {
|
|
86
75
|
advice?: Snippet;
|
|
87
76
|
adviceIcon?: Snippet;
|
|
88
|
-
|
|
89
|
-
|
|
77
|
+
setpoint?: Snippet;
|
|
78
|
+
setpointIcon?: Snippet;
|
|
90
79
|
leadingIcon?: Snippet;
|
|
91
80
|
valueSnippet?: Snippet;
|
|
92
81
|
labelSnippet?: Snippet;
|
|
@@ -99,12 +88,12 @@ declare const ObcReadout: import("svelte").Component<$$ComponentProps, {
|
|
|
99
88
|
ReadoutSourceType: typeof ReadoutSourceType;
|
|
100
89
|
ReadoutVariant: typeof ReadoutVariant;
|
|
101
90
|
ReadoutAlertState: typeof ReadoutAlertState;
|
|
102
|
-
|
|
91
|
+
ReadoutSetpointInteraction: typeof ReadoutSetpointInteraction;
|
|
103
92
|
ReadoutDirection: typeof ReadoutDirection;
|
|
104
93
|
ReadoutStackVerticalAlignment: typeof ReadoutStackVerticalAlignment;
|
|
105
94
|
Priority: typeof Priority;
|
|
106
|
-
|
|
107
|
-
|
|
95
|
+
ReadoutSetpointSize: typeof ReadoutSetpointSize;
|
|
96
|
+
ReadoutSetpointFormat: typeof ReadoutSetpointFormat;
|
|
108
97
|
ReadoutAdviceFormat: typeof ReadoutAdviceFormat;
|
|
109
98
|
ReadoutAdviceState: typeof ReadoutAdviceState;
|
|
110
99
|
}, "">;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {ReadoutVariant, ReadoutDirection} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
4
|
-
export type {
|
|
4
|
+
export type {ReadoutSetpointSize} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-setpoint/readout-setpoint.js';
|
|
5
5
|
export type {ReadoutAdviceFormat, ReadoutAdviceState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
6
6
|
export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
7
7
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
8
8
|
import { setProperties } from "../../util.js";
|
|
9
9
|
import type {ReadoutVariant, ReadoutDirection} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
10
|
-
import type {
|
|
10
|
+
import type {ReadoutSetpointSize} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-setpoint/readout-setpoint.js';
|
|
11
11
|
import type {ReadoutAdviceFormat, ReadoutAdviceState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
12
12
|
import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
13
13
|
import type { Snippet } from 'svelte';
|
|
@@ -17,16 +17,15 @@ import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-inst
|
|
|
17
17
|
style?: string;
|
|
18
18
|
readoutStyle?: ReadoutVariant | undefined;
|
|
19
19
|
direction?: ReadoutDirection | undefined;
|
|
20
|
-
size?:
|
|
20
|
+
size?: ReadoutSetpointSize;
|
|
21
21
|
format?: ReadoutAdviceFormat | undefined;
|
|
22
22
|
priority?: Priority | undefined;
|
|
23
23
|
state?: ReadoutAdviceState;
|
|
24
24
|
hugContent?: boolean;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
secondaryValue?: string;
|
|
25
|
+
value?: number | undefined;
|
|
26
|
+
secondaryValue?: number | undefined;
|
|
28
27
|
description?: string;
|
|
29
|
-
|
|
28
|
+
minValueLength?: number;
|
|
30
29
|
hasHintedZeros?: boolean;
|
|
31
30
|
fractionDigits?: number;
|
|
32
31
|
hasDegree?: boolean
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
2
2
|
import type { ReadoutVariant, ReadoutDirection } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ReadoutSetpointSize } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-setpoint/readout-setpoint.js';
|
|
4
4
|
import type { ReadoutAdviceFormat, ReadoutAdviceState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-advice/readout-advice.js';
|
|
5
5
|
import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
6
6
|
import type { Snippet } from 'svelte';
|
|
@@ -9,16 +9,15 @@ export interface Props {
|
|
|
9
9
|
style?: string;
|
|
10
10
|
readoutStyle?: ReadoutVariant | undefined;
|
|
11
11
|
direction?: ReadoutDirection | undefined;
|
|
12
|
-
size?:
|
|
12
|
+
size?: ReadoutSetpointSize;
|
|
13
13
|
format?: ReadoutAdviceFormat | undefined;
|
|
14
14
|
priority?: Priority | undefined;
|
|
15
15
|
state?: ReadoutAdviceState;
|
|
16
16
|
hugContent?: boolean;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
secondaryValue?: string;
|
|
17
|
+
value?: number | undefined;
|
|
18
|
+
secondaryValue?: number | undefined;
|
|
20
19
|
description?: string;
|
|
21
|
-
|
|
20
|
+
minValueLength?: number;
|
|
22
21
|
hasHintedZeros?: boolean;
|
|
23
22
|
fractionDigits?: number;
|
|
24
23
|
hasDegree?: boolean;
|
|
@@ -32,7 +31,7 @@ type $$ComponentProps = Props & Events & Slots;
|
|
|
32
31
|
declare const ObcReadoutAdvice: import("svelte").Component<$$ComponentProps, {
|
|
33
32
|
ReadoutVariant: typeof ReadoutVariant;
|
|
34
33
|
ReadoutDirection: typeof ReadoutDirection;
|
|
35
|
-
|
|
34
|
+
ReadoutSetpointSize: typeof ReadoutSetpointSize;
|
|
36
35
|
ReadoutAdviceFormat: typeof ReadoutAdviceFormat;
|
|
37
36
|
ReadoutAdviceState: typeof ReadoutAdviceState;
|
|
38
37
|
Priority: typeof Priority;
|
|
@@ -16,20 +16,18 @@
|
|
|
16
16
|
label?: string;
|
|
17
17
|
unit?: string;
|
|
18
18
|
src?: string;
|
|
19
|
-
value?:
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
value?: number | undefined;
|
|
20
|
+
setpointValue?: number | undefined;
|
|
21
|
+
hasSetpoint?: boolean;
|
|
22
22
|
hasDegree?: boolean;
|
|
23
23
|
hasUnit?: boolean;
|
|
24
24
|
hasLabel?: boolean;
|
|
25
25
|
hasSource?: boolean;
|
|
26
26
|
hasLeadingIcon?: boolean;
|
|
27
27
|
hasValueIcon?: boolean;
|
|
28
|
-
maxDigits?: number;
|
|
29
28
|
fractionDigits?: number;
|
|
30
29
|
showZeroPadding?: boolean;
|
|
31
|
-
|
|
32
|
-
valueLength?: string;
|
|
30
|
+
minValueLength?: number;
|
|
33
31
|
hasHintedZeros?: boolean
|
|
34
32
|
}
|
|
35
33
|
export interface Events {
|
|
@@ -11,20 +11,18 @@ export interface Props {
|
|
|
11
11
|
label?: string;
|
|
12
12
|
unit?: string;
|
|
13
13
|
src?: string;
|
|
14
|
-
value?:
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
value?: number | undefined;
|
|
15
|
+
setpointValue?: number | undefined;
|
|
16
|
+
hasSetpoint?: boolean;
|
|
17
17
|
hasDegree?: boolean;
|
|
18
18
|
hasUnit?: boolean;
|
|
19
19
|
hasLabel?: boolean;
|
|
20
20
|
hasSource?: boolean;
|
|
21
21
|
hasLeadingIcon?: boolean;
|
|
22
22
|
hasValueIcon?: boolean;
|
|
23
|
-
maxDigits?: number;
|
|
24
23
|
fractionDigits?: number;
|
|
25
24
|
showZeroPadding?: boolean;
|
|
26
|
-
|
|
27
|
-
valueLength?: string;
|
|
25
|
+
minValueLength?: number;
|
|
28
26
|
hasHintedZeros?: boolean;
|
|
29
27
|
}
|
|
30
28
|
export interface Events {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {
|
|
3
|
+
export type {ReadoutSetpointVariant, ReadoutSetpointSize, ReadoutSetpointValueTypography, ReadoutSetpointFormat, ReadoutSetpointMode} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-setpoint/readout-setpoint.js';
|
|
4
4
|
export type {ReadoutVariant, ReadoutDirection} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
5
5
|
export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
6
|
-
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-
|
|
6
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-setpoint/readout-setpoint.js';
|
|
7
7
|
import { setProperties } from "../../util.js";
|
|
8
|
-
import type {
|
|
8
|
+
import type {ReadoutSetpointVariant, ReadoutSetpointSize, ReadoutSetpointValueTypography, ReadoutSetpointFormat, ReadoutSetpointMode} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-setpoint/readout-setpoint.js';
|
|
9
9
|
import type {ReadoutVariant, ReadoutDirection} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
10
10
|
import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
11
11
|
import type { Snippet } from 'svelte';
|
|
@@ -13,24 +13,23 @@ import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-inst
|
|
|
13
13
|
export interface Props {
|
|
14
14
|
class?: string;
|
|
15
15
|
style?: string;
|
|
16
|
-
variant?:
|
|
16
|
+
variant?: ReadoutSetpointVariant;
|
|
17
17
|
readoutStyle?: ReadoutVariant | undefined;
|
|
18
18
|
direction?: ReadoutDirection | undefined;
|
|
19
|
-
size?:
|
|
20
|
-
valueTypography?:
|
|
21
|
-
format?:
|
|
22
|
-
mode?:
|
|
19
|
+
size?: ReadoutSetpointSize;
|
|
20
|
+
valueTypography?: ReadoutSetpointValueTypography | undefined;
|
|
21
|
+
format?: ReadoutSetpointFormat | undefined;
|
|
22
|
+
mode?: ReadoutSetpointMode | undefined;
|
|
23
23
|
priority?: Priority | undefined;
|
|
24
24
|
hugContent?: boolean;
|
|
25
|
-
|
|
26
|
-
value?:
|
|
27
|
-
secondaryValue?:
|
|
25
|
+
minValueLength?: number;
|
|
26
|
+
value?: number | undefined;
|
|
27
|
+
secondaryValue?: number | undefined;
|
|
28
|
+
off?: boolean;
|
|
28
29
|
description?: string;
|
|
29
|
-
valueLength?: string;
|
|
30
30
|
hasHintedZeros?: boolean;
|
|
31
31
|
hasDegree?: boolean;
|
|
32
32
|
showZeroPadding?: boolean;
|
|
33
|
-
maxDigits?: number;
|
|
34
33
|
fractionDigits?: number
|
|
35
34
|
}
|
|
36
35
|
export interface Events {
|
|
@@ -43,7 +42,7 @@ import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-inst
|
|
|
43
42
|
const { class: className, style, icon, valueSnippet, ...props} = $props<Props & Events & Slots>();
|
|
44
43
|
|
|
45
44
|
</script>
|
|
46
|
-
<obc-readout-
|
|
45
|
+
<obc-readout-setpoint
|
|
47
46
|
use:setProperties={props}
|
|
48
47
|
class={className}
|
|
49
48
|
style={style}
|
|
@@ -60,4 +59,4 @@ import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-inst
|
|
|
60
59
|
{@render valueSnippet()}
|
|
61
60
|
</div>
|
|
62
61
|
{/if}
|
|
63
|
-
</obc-readout-
|
|
62
|
+
</obc-readout-setpoint>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-setpoint/readout-setpoint.js';
|
|
2
|
+
import type { ReadoutSetpointVariant, ReadoutSetpointSize, ReadoutSetpointValueTypography, ReadoutSetpointFormat, ReadoutSetpointMode } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-setpoint/readout-setpoint.js';
|
|
3
|
+
import type { ReadoutVariant, ReadoutDirection } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
4
|
+
import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
|
+
import type { Snippet } from 'svelte';
|
|
6
|
+
export interface Props {
|
|
7
|
+
class?: string;
|
|
8
|
+
style?: string;
|
|
9
|
+
variant?: ReadoutSetpointVariant;
|
|
10
|
+
readoutStyle?: ReadoutVariant | undefined;
|
|
11
|
+
direction?: ReadoutDirection | undefined;
|
|
12
|
+
size?: ReadoutSetpointSize;
|
|
13
|
+
valueTypography?: ReadoutSetpointValueTypography | undefined;
|
|
14
|
+
format?: ReadoutSetpointFormat | undefined;
|
|
15
|
+
mode?: ReadoutSetpointMode | undefined;
|
|
16
|
+
priority?: Priority | undefined;
|
|
17
|
+
hugContent?: boolean;
|
|
18
|
+
minValueLength?: number;
|
|
19
|
+
value?: number | undefined;
|
|
20
|
+
secondaryValue?: number | undefined;
|
|
21
|
+
off?: boolean;
|
|
22
|
+
description?: string;
|
|
23
|
+
hasHintedZeros?: boolean;
|
|
24
|
+
hasDegree?: boolean;
|
|
25
|
+
showZeroPadding?: boolean;
|
|
26
|
+
fractionDigits?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface Events {
|
|
29
|
+
}
|
|
30
|
+
export interface Slots {
|
|
31
|
+
icon?: Snippet;
|
|
32
|
+
valueSnippet?: Snippet;
|
|
33
|
+
}
|
|
34
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
35
|
+
declare const ObcReadoutSetpoint: import("svelte").Component<$$ComponentProps, {
|
|
36
|
+
ReadoutSetpointVariant: typeof ReadoutSetpointVariant;
|
|
37
|
+
ReadoutSetpointSize: typeof ReadoutSetpointSize;
|
|
38
|
+
ReadoutSetpointValueTypography: typeof ReadoutSetpointValueTypography;
|
|
39
|
+
ReadoutSetpointFormat: typeof ReadoutSetpointFormat;
|
|
40
|
+
ReadoutSetpointMode: typeof ReadoutSetpointMode;
|
|
41
|
+
ReadoutVariant: typeof ReadoutVariant;
|
|
42
|
+
ReadoutDirection: typeof ReadoutDirection;
|
|
43
|
+
Priority: typeof Priority;
|
|
44
|
+
}, "">;
|
|
45
|
+
type ObcReadoutSetpoint = ReturnType<typeof ObcReadoutSetpoint>;
|
|
46
|
+
export default ObcReadoutSetpoint;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oicl/openbridge-webcomponents-svelte",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.43",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build && npm run prepack",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@oicl/openbridge-webcomponents": "^2.0.0-next.
|
|
34
|
+
"@oicl/openbridge-webcomponents": "^2.0.0-next.42"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
2
|
-
import type { ReadoutInputVariant, ReadoutInputSize, ReadoutInputValueTypography, ReadoutInputFormat, ReadoutInputMode } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-input/readout-input.js';
|
|
3
|
-
import type { ReadoutVariant, ReadoutDirection } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
|
|
4
|
-
import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
|
-
import type { Snippet } from 'svelte';
|
|
6
|
-
export interface Props {
|
|
7
|
-
class?: string;
|
|
8
|
-
style?: string;
|
|
9
|
-
variant?: ReadoutInputVariant;
|
|
10
|
-
readoutStyle?: ReadoutVariant | undefined;
|
|
11
|
-
direction?: ReadoutDirection | undefined;
|
|
12
|
-
size?: ReadoutInputSize;
|
|
13
|
-
valueTypography?: ReadoutInputValueTypography | undefined;
|
|
14
|
-
format?: ReadoutInputFormat | undefined;
|
|
15
|
-
mode?: ReadoutInputMode | undefined;
|
|
16
|
-
priority?: Priority | undefined;
|
|
17
|
-
hugContent?: boolean;
|
|
18
|
-
hasFixedLength?: boolean;
|
|
19
|
-
value?: string | number | undefined;
|
|
20
|
-
secondaryValue?: string;
|
|
21
|
-
description?: string;
|
|
22
|
-
valueLength?: string;
|
|
23
|
-
hasHintedZeros?: boolean;
|
|
24
|
-
hasDegree?: boolean;
|
|
25
|
-
showZeroPadding?: boolean;
|
|
26
|
-
maxDigits?: number;
|
|
27
|
-
fractionDigits?: number;
|
|
28
|
-
}
|
|
29
|
-
export interface Events {
|
|
30
|
-
}
|
|
31
|
-
export interface Slots {
|
|
32
|
-
icon?: Snippet;
|
|
33
|
-
valueSnippet?: Snippet;
|
|
34
|
-
}
|
|
35
|
-
type $$ComponentProps = Props & Events & Slots;
|
|
36
|
-
declare const ObcReadoutInput: import("svelte").Component<$$ComponentProps, {
|
|
37
|
-
ReadoutInputVariant: typeof ReadoutInputVariant;
|
|
38
|
-
ReadoutInputSize: typeof ReadoutInputSize;
|
|
39
|
-
ReadoutInputValueTypography: typeof ReadoutInputValueTypography;
|
|
40
|
-
ReadoutInputFormat: typeof ReadoutInputFormat;
|
|
41
|
-
ReadoutInputMode: typeof ReadoutInputMode;
|
|
42
|
-
ReadoutVariant: typeof ReadoutVariant;
|
|
43
|
-
ReadoutDirection: typeof ReadoutDirection;
|
|
44
|
-
Priority: typeof Priority;
|
|
45
|
-
}, "">;
|
|
46
|
-
type ObcReadoutInput = ReturnType<typeof ObcReadoutInput>;
|
|
47
|
-
export default ObcReadoutInput;
|