@oicl/openbridge-webcomponents-svelte 2.0.0-next.87 → 2.0.0-next.89

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.
@@ -0,0 +1,77 @@
1
+
2
+ <script lang="ts">
3
+ export type {ReadoutBlockVariant, ReadoutBlockSize, ReadoutBlockDataQuality, ReadoutBlockHidePhase} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
4
+ export type {ObcTextboxSize, ObcTextboxFontWeight, ObcTextboxAlignment} from '@oicl/openbridge-webcomponents/dist/components/textbox/textbox.js';
5
+ export type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
6
+ import '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
7
+ import { setProperties } from "../../util.js";
8
+ import type {ReadoutBlockVariant, ReadoutBlockSize, ReadoutBlockDataQuality, ReadoutBlockHidePhase} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
9
+ import type {ObcTextboxSize, ObcTextboxFontWeight, ObcTextboxAlignment} from '@oicl/openbridge-webcomponents/dist/components/textbox/textbox.js';
10
+ import type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
11
+ import type { Snippet } from 'svelte';
12
+
13
+ export interface Props {
14
+ class?: string;
15
+ style?: string;
16
+ /** Semantic variant (value / setpoint / advice). */
17
+ variant?: ReadoutBlockVariant;
18
+ /** The numeric value; `null`/`undefined` renders a dash. */
19
+ value?: number | null;
20
+ /** Density tier — icon size, gap, degree tier. */
21
+ size?: ReadoutBlockSize;
22
+ /** Resolved number-typography size. When unset it is derived from `size`
23
+ (small→s, medium→m, large→l), so a parent that de-emphasises a block (e.g.
24
+ a secondary setpoint) can pass a smaller size without changing the tier. */
25
+ valueSize?: ObcTextboxSize | undefined;
26
+ /** Accent (in-command) colour tone. */
27
+ enhanced?: boolean;
28
+ /** Number font weight (regular / semibold / bold); colour is independent. */
29
+ weight?: ObcTextboxFontWeight;
30
+ /** Render the trailing cap-height degree glyph (`°`). */
31
+ hasDegree?: boolean;
32
+ /** Show the leading marker-icon container (always on for setpoint/advice). */
33
+ hasIcon?: boolean;
34
+ /** Number of fraction digits. */
35
+ fractionDigits?: number;
36
+ /** Integer digits to reserve / hint (independent of `fractionDigits`). */
37
+ maxDigits?: number;
38
+ /** Render muted leading zeros filling the integer part to `maxDigits`. */
39
+ hintedZeros?: boolean;
40
+ /** Explicit longest string to reserve width for (e.g. `"0000.0"`). */
41
+ spaceReserver?: string | undefined;
42
+ /** Render `offText` instead of a number (e.g. equipment powered down). */
43
+ off?: boolean;
44
+ /** Text shown when `off` is true. */
45
+ offText?: string;
46
+ /** Text alignment of the number within its reserved width. */
47
+ alignment?: ObcTextboxAlignment;
48
+ /** Per-block measurement quality (outline chip). */
49
+ dataQuality?: ReadoutBlockDataQuality | undefined;
50
+ /** Per-block alert frame; nests inside any parent alert frame. */
51
+ alert?: boolean | AlertFrameConfig;
52
+ /** Setpoint focus (touch) state — only meaningful for `role="setpoint"`. */
53
+ touching?: boolean;
54
+ /** Setpoint pop-up fade phase — only meaningful for `role="setpoint"`. */
55
+ hidePhase?: ReadoutBlockHidePhase
56
+ }
57
+ export interface Events {
58
+
59
+ }
60
+ export interface Slots {
61
+ icon?: Snippet
62
+ }
63
+ const { class: className, style, icon, ...props} = $props<Props & Events & Slots>();
64
+
65
+ </script>
66
+ <obc-readout-block
67
+ use:setProperties={props}
68
+ class={className}
69
+ style={style}
70
+ >
71
+
72
+ {#if icon}
73
+ <div slot="icon">
74
+ {@render icon()}
75
+ </div>
76
+ {/if}
77
+ </obc-readout-block>
@@ -0,0 +1,67 @@
1
+ import '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
2
+ import type { ReadoutBlockVariant, ReadoutBlockSize, ReadoutBlockDataQuality, ReadoutBlockHidePhase } from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
3
+ import type { ObcTextboxSize, ObcTextboxFontWeight, ObcTextboxAlignment } from '@oicl/openbridge-webcomponents/dist/components/textbox/textbox.js';
4
+ import type { AlertFrameConfig } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
5
+ import type { Snippet } from 'svelte';
6
+ export interface Props {
7
+ class?: string;
8
+ style?: string;
9
+ /** Semantic variant (value / setpoint / advice). */
10
+ variant?: ReadoutBlockVariant;
11
+ /** The numeric value; `null`/`undefined` renders a dash. */
12
+ value?: number | null;
13
+ /** Density tier — icon size, gap, degree tier. */
14
+ size?: ReadoutBlockSize;
15
+ /** Resolved number-typography size. When unset it is derived from `size`
16
+ (small→s, medium→m, large→l), so a parent that de-emphasises a block (e.g.
17
+ a secondary setpoint) can pass a smaller size without changing the tier. */
18
+ valueSize?: ObcTextboxSize | undefined;
19
+ /** Accent (in-command) colour tone. */
20
+ enhanced?: boolean;
21
+ /** Number font weight (regular / semibold / bold); colour is independent. */
22
+ weight?: ObcTextboxFontWeight;
23
+ /** Render the trailing cap-height degree glyph (`°`). */
24
+ hasDegree?: boolean;
25
+ /** Show the leading marker-icon container (always on for setpoint/advice). */
26
+ hasIcon?: boolean;
27
+ /** Number of fraction digits. */
28
+ fractionDigits?: number;
29
+ /** Integer digits to reserve / hint (independent of `fractionDigits`). */
30
+ maxDigits?: number;
31
+ /** Render muted leading zeros filling the integer part to `maxDigits`. */
32
+ hintedZeros?: boolean;
33
+ /** Explicit longest string to reserve width for (e.g. `"0000.0"`). */
34
+ spaceReserver?: string | undefined;
35
+ /** Render `offText` instead of a number (e.g. equipment powered down). */
36
+ off?: boolean;
37
+ /** Text shown when `off` is true. */
38
+ offText?: string;
39
+ /** Text alignment of the number within its reserved width. */
40
+ alignment?: ObcTextboxAlignment;
41
+ /** Per-block measurement quality (outline chip). */
42
+ dataQuality?: ReadoutBlockDataQuality | undefined;
43
+ /** Per-block alert frame; nests inside any parent alert frame. */
44
+ alert?: boolean | AlertFrameConfig;
45
+ /** Setpoint focus (touch) state — only meaningful for `role="setpoint"`. */
46
+ touching?: boolean;
47
+ /** Setpoint pop-up fade phase — only meaningful for `role="setpoint"`. */
48
+ hidePhase?: ReadoutBlockHidePhase;
49
+ }
50
+ export interface Events {
51
+ }
52
+ export interface Slots {
53
+ icon?: Snippet;
54
+ }
55
+ type $$ComponentProps = Props & Events & Slots;
56
+ declare const ObcReadoutBlock: import("svelte").Component<$$ComponentProps, {
57
+ ReadoutBlockVariant: typeof ReadoutBlockVariant;
58
+ ReadoutBlockSize: typeof ReadoutBlockSize;
59
+ ReadoutBlockDataQuality: typeof ReadoutBlockDataQuality;
60
+ ReadoutBlockHidePhase: typeof ReadoutBlockHidePhase;
61
+ ObcTextboxSize: typeof ObcTextboxSize;
62
+ ObcTextboxFontWeight: typeof ObcTextboxFontWeight;
63
+ ObcTextboxAlignment: typeof ObcTextboxAlignment;
64
+ AlertFrameConfig: typeof AlertFrameConfig;
65
+ }, "">;
66
+ type ObcReadoutBlock = ReturnType<typeof ObcReadoutBlock>;
67
+ export default ObcReadoutBlock;
package/dist/index.d.ts CHANGED
@@ -74,6 +74,7 @@ export { default as ObcBarVertical } from './building-blocks/bar-vertical/ObcBar
74
74
  export { default as ObcChartLineBase } from './building-blocks/chart-line/ObcChartLineBase.svelte';
75
75
  export { default as ObcCircularProgress } from './building-blocks/circular-progress/ObcCircularProgress.svelte';
76
76
  export { default as ObcInstrumentRadial } from './building-blocks/instrument-radial/ObcInstrumentRadial.svelte';
77
+ export { default as ObcReadoutBlock } from './building-blocks/readout-block/ObcReadoutBlock.svelte';
77
78
  export { default as SingleAxisInclinometer } from './building-blocks/single-axis-inclinometer/SingleAxisInclinometer.svelte';
78
79
  export { default as ObcAccordionCard } from './components/accordion-card/ObcAccordionCard.svelte';
79
80
  export { default as ObcAccordionItem } from './components/accordion-item/ObcAccordionItem.svelte';
@@ -2293,6 +2294,7 @@ export { default as ObcTunnelThruster } from './navigation-instruments/propulsio
2293
2294
  export { default as ObcRateOfTurn } from './navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte';
2294
2295
  export { default as ObcReadout } from './navigation-instruments/readout/ObcReadout.svelte';
2295
2296
  export { default as ObcReadoutAdvice } from './navigation-instruments/readout-advice/ObcReadoutAdvice.svelte';
2297
+ export { default as ObcReadoutList } from './navigation-instruments/readout-list/ObcReadoutList.svelte';
2296
2298
  export { default as ObcReadoutListItem } from './navigation-instruments/readout-list-item/ObcReadoutListItem.svelte';
2297
2299
  export { default as ObcReadoutSetpoint } from './navigation-instruments/readout-setpoint/ObcReadoutSetpoint.svelte';
2298
2300
  export { default as ObcRoll } from './navigation-instruments/roll/ObcRoll.svelte';
package/dist/index.js CHANGED
@@ -74,6 +74,7 @@ export { default as ObcBarVertical } from './building-blocks/bar-vertical/ObcBar
74
74
  export { default as ObcChartLineBase } from './building-blocks/chart-line/ObcChartLineBase.svelte';
75
75
  export { default as ObcCircularProgress } from './building-blocks/circular-progress/ObcCircularProgress.svelte';
76
76
  export { default as ObcInstrumentRadial } from './building-blocks/instrument-radial/ObcInstrumentRadial.svelte';
77
+ export { default as ObcReadoutBlock } from './building-blocks/readout-block/ObcReadoutBlock.svelte';
77
78
  export { default as SingleAxisInclinometer } from './building-blocks/single-axis-inclinometer/SingleAxisInclinometer.svelte';
78
79
  export { default as ObcAccordionCard } from './components/accordion-card/ObcAccordionCard.svelte';
79
80
  export { default as ObcAccordionItem } from './components/accordion-item/ObcAccordionItem.svelte';
@@ -2293,6 +2294,7 @@ export { default as ObcTunnelThruster } from './navigation-instruments/propulsio
2293
2294
  export { default as ObcRateOfTurn } from './navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte';
2294
2295
  export { default as ObcReadout } from './navigation-instruments/readout/ObcReadout.svelte';
2295
2296
  export { default as ObcReadoutAdvice } from './navigation-instruments/readout-advice/ObcReadoutAdvice.svelte';
2297
+ export { default as ObcReadoutList } from './navigation-instruments/readout-list/ObcReadoutList.svelte';
2296
2298
  export { default as ObcReadoutListItem } from './navigation-instruments/readout-list-item/ObcReadoutListItem.svelte';
2297
2299
  export { default as ObcReadoutSetpoint } from './navigation-instruments/readout-setpoint/ObcReadoutSetpoint.svelte';
2298
2300
  export { default as ObcRoll } from './navigation-instruments/roll/ObcRoll.svelte';
@@ -1,12 +1,12 @@
1
1
 
2
2
  <script lang="ts">
3
3
  export type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
4
- export type {ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
4
+ export type {ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector, GaugeRadialHorizontalAlignment, GaugeRadialVerticalAlignment} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
5
5
  export type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
6
6
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
7
7
  import { setProperties } from "../../util.js";
8
8
  import type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
9
- import type {ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
9
+ import type {ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector, GaugeRadialHorizontalAlignment, GaugeRadialVerticalAlignment} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
10
10
  import type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
11
11
  import type { Snippet } from 'svelte';
12
12
 
@@ -51,6 +51,14 @@ tertiaryTickmarkInterval?: number | undefined;
51
51
  /** Caution/alert arcs. Ignored on `sector: 90-left` / `90-right`. */
52
52
  advices?: GaugeRadialAdvice[];
53
53
  sector?: GaugeRadialSector;
54
+ /** Horizontal placement of the dial when the host is wider than the dial
55
+ (e.g. a short, wide container shrinks the dial to fit the height, leaving
56
+ horizontal slack). Default `center`. */
57
+ horizontalAlignment?: GaugeRadialHorizontalAlignment;
58
+ /** Vertical placement of the dial when the host is taller than the dial
59
+ (e.g. a tall, narrow container shrinks the dial to fit the width, leaving
60
+ vertical slack). Default `center`. */
61
+ verticalAlignment?: GaugeRadialVerticalAlignment;
54
62
  /** When `true`, shows the centre `<obc-readout>`(s) with the current value
55
63
  (and optional `label`/`unit`). Layout depends on `sector` and `type`.
56
64
  Default `false`. */
@@ -1,6 +1,6 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
2
2
  import type { InstrumentState, Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
3
- import type { ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
3
+ import type { ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector, GaugeRadialHorizontalAlignment, GaugeRadialVerticalAlignment } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
4
4
  import type { TickmarkStyle } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
5
5
  import type { Snippet } from 'svelte';
6
6
  export interface Props {
@@ -44,6 +44,14 @@ When undefined or <= 0, no tertiary tickmarks are shown. */
44
44
  /** Caution/alert arcs. Ignored on `sector: 90-left` / `90-right`. */
45
45
  advices?: GaugeRadialAdvice[];
46
46
  sector?: GaugeRadialSector;
47
+ /** Horizontal placement of the dial when the host is wider than the dial
48
+ (e.g. a short, wide container shrinks the dial to fit the height, leaving
49
+ horizontal slack). Default `center`. */
50
+ horizontalAlignment?: GaugeRadialHorizontalAlignment;
51
+ /** Vertical placement of the dial when the host is taller than the dial
52
+ (e.g. a tall, narrow container shrinks the dial to fit the width, leaving
53
+ vertical slack). Default `center`. */
54
+ verticalAlignment?: GaugeRadialVerticalAlignment;
47
55
  /** When `true`, shows the centre `<obc-readout>`(s) with the current value
48
56
  (and optional `label`/`unit`). Layout depends on `sector` and `type`.
49
57
  Default `false`. */
@@ -64,6 +72,8 @@ declare const ObcGaugeRadial: import("svelte").Component<$$ComponentProps, {
64
72
  ObcGaugeRadialType: typeof ObcGaugeRadialType;
65
73
  GaugeRadialAdvice: typeof GaugeRadialAdvice;
66
74
  GaugeRadialSector: typeof GaugeRadialSector;
75
+ GaugeRadialHorizontalAlignment: typeof GaugeRadialHorizontalAlignment;
76
+ GaugeRadialVerticalAlignment: typeof GaugeRadialVerticalAlignment;
67
77
  TickmarkStyle: typeof TickmarkStyle;
68
78
  }, "">;
69
79
  type ObcGaugeRadial = ReturnType<typeof ObcGaugeRadial>;
@@ -0,0 +1,35 @@
1
+
2
+ <script lang="ts">
3
+
4
+ import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list/readout-list.js';
5
+ import { setProperties } from "../../util.js";
6
+
7
+ import type { Snippet } from 'svelte';
8
+
9
+ export interface Props {
10
+ class?: string;
11
+ style?: string;
12
+ /** Development aid: outline each row's readout building blocks (red), degree
13
+ columns (blue) and degree spacer (green) so the reserved column widths are
14
+ visible. Propagated to every row. Off by default. */
15
+ showDebugOverlay?: boolean
16
+ }
17
+ export interface Events {
18
+
19
+ }
20
+ export interface Slots {
21
+ children?: Snippet
22
+ }
23
+ const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
24
+
25
+ </script>
26
+ <obc-readout-list
27
+ use:setProperties={props}
28
+ class={className}
29
+ style={style}
30
+ >
31
+
32
+ {#if children}
33
+ {@render children()}
34
+ {/if}
35
+ </obc-readout-list>
@@ -0,0 +1,19 @@
1
+ import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list/readout-list.js';
2
+ import type { Snippet } from 'svelte';
3
+ export interface Props {
4
+ class?: string;
5
+ style?: string;
6
+ /** Development aid: outline each row's readout building blocks (red), degree
7
+ columns (blue) and degree spacer (green) so the reserved column widths are
8
+ visible. Propagated to every row. Off by default. */
9
+ showDebugOverlay?: boolean;
10
+ }
11
+ export interface Events {
12
+ }
13
+ export interface Slots {
14
+ children?: Snippet;
15
+ }
16
+ type $$ComponentProps = Props & Events & Slots;
17
+ declare const ObcReadoutList: import("svelte").Component<$$ComponentProps, {}, "">;
18
+ type ObcReadoutList = ReturnType<typeof ObcReadoutList>;
19
+ export default ObcReadoutList;
@@ -1,10 +1,12 @@
1
1
 
2
2
  <script lang="ts">
3
- export type {ReadoutListItemSize, ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutListItemDataQuality, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
3
+ export type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
4
+ export type {ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
4
5
  export type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
5
6
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
6
7
  import { setProperties } from "../../util.js";
7
- import type {ReadoutListItemSize, ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutListItemDataQuality, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
8
+ import type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
9
+ import type {ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
8
10
  import type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
9
11
  import type { Snippet } from 'svelte';
10
12
 
@@ -16,13 +18,15 @@ import type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/compone
16
18
  src?: string | undefined;
17
19
  hasValue?: boolean;
18
20
  value?: number | null;
19
- /** Render the value as the literal "OFF" (e.g. equipment powered down). Affects the value only. */
21
+ /** Render the value as `offText` (e.g. equipment powered down). Affects the value only. */
20
22
  off?: boolean;
23
+ /** Text shown in place of the value when `off` is true. */
24
+ offText?: string;
21
25
  hasSetpoint?: boolean;
22
26
  setpoint?: number | undefined;
23
27
  hasAdvice?: boolean;
24
28
  advice?: number | undefined;
25
- size?: ReadoutListItemSize | undefined;
29
+ size?: ReadoutBlockSize | undefined;
26
30
  priority?: ReadoutListItemPriority | undefined;
27
31
  stacking?: ReadoutListItemStacking | undefined;
28
32
  clickable?: boolean | ReadoutListItemClickable;
@@ -31,13 +35,17 @@ off?: boolean;
31
35
  hasDegreeSpacer?: boolean;
32
36
  fractionDigits?: number;
33
37
  maxDigits?: number;
34
- dataQuality?: ReadoutListItemDataQuality | undefined;
38
+ dataQuality?: ReadoutBlockDataQuality | undefined;
35
39
  alert?: boolean | AlertFrameConfig;
36
40
  valueOptions?: ReadoutValueOptions | undefined;
37
41
  setpointOptions?: ReadoutSetpointOptions | undefined;
38
42
  adviceOptions?: ReadoutAdviceOptions | undefined;
39
43
  unitOptions?: ReadoutReserverOptions | undefined;
40
- srcOptions?: ReadoutSrcOptions | undefined
44
+ srcOptions?: ReadoutSrcOptions | undefined;
45
+ /** Development aid: outline the readout building blocks (red), the degree
46
+ columns (blue) and the degree spacer (green) so reserver widths / alignment
47
+ are visible. Off by default. */
48
+ showDebugOverlay?: boolean
41
49
  }
42
50
  export interface Events {
43
51
 
@@ -1,5 +1,6 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
2
- import type { ReadoutListItemSize, ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutListItemDataQuality, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
2
+ import type { ReadoutBlockSize, ReadoutBlockDataQuality } from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
3
+ import type { ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
3
4
  import type { AlertFrameConfig } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
4
5
  import type { Snippet } from 'svelte';
5
6
  export interface Props {
@@ -10,13 +11,15 @@ export interface Props {
10
11
  src?: string | undefined;
11
12
  hasValue?: boolean;
12
13
  value?: number | null;
13
- /** Render the value as the literal "OFF" (e.g. equipment powered down). Affects the value only. */
14
+ /** Render the value as `offText` (e.g. equipment powered down). Affects the value only. */
14
15
  off?: boolean;
16
+ /** Text shown in place of the value when `off` is true. */
17
+ offText?: string;
15
18
  hasSetpoint?: boolean;
16
19
  setpoint?: number | undefined;
17
20
  hasAdvice?: boolean;
18
21
  advice?: number | undefined;
19
- size?: ReadoutListItemSize | undefined;
22
+ size?: ReadoutBlockSize | undefined;
20
23
  priority?: ReadoutListItemPriority | undefined;
21
24
  stacking?: ReadoutListItemStacking | undefined;
22
25
  clickable?: boolean | ReadoutListItemClickable;
@@ -25,13 +28,17 @@ export interface Props {
25
28
  hasDegreeSpacer?: boolean;
26
29
  fractionDigits?: number;
27
30
  maxDigits?: number;
28
- dataQuality?: ReadoutListItemDataQuality | undefined;
31
+ dataQuality?: ReadoutBlockDataQuality | undefined;
29
32
  alert?: boolean | AlertFrameConfig;
30
33
  valueOptions?: ReadoutValueOptions | undefined;
31
34
  setpointOptions?: ReadoutSetpointOptions | undefined;
32
35
  adviceOptions?: ReadoutAdviceOptions | undefined;
33
36
  unitOptions?: ReadoutReserverOptions | undefined;
34
37
  srcOptions?: ReadoutSrcOptions | undefined;
38
+ /** Development aid: outline the readout building blocks (red), the degree
39
+ columns (blue) and the degree spacer (green) so reserver widths / alignment
40
+ are visible. Off by default. */
41
+ showDebugOverlay?: boolean;
35
42
  }
36
43
  export interface Events {
37
44
  }
@@ -43,11 +50,11 @@ export interface Slots {
43
50
  }
44
51
  type $$ComponentProps = Props & Events & Slots;
45
52
  declare const ObcReadoutListItem: import("svelte").Component<$$ComponentProps, {
46
- ReadoutListItemSize: typeof ReadoutListItemSize;
53
+ ReadoutBlockSize: typeof ReadoutBlockSize;
54
+ ReadoutBlockDataQuality: typeof ReadoutBlockDataQuality;
47
55
  ReadoutListItemPriority: typeof ReadoutListItemPriority;
48
56
  ReadoutListItemStacking: typeof ReadoutListItemStacking;
49
57
  ReadoutListItemClickable: typeof ReadoutListItemClickable;
50
- ReadoutListItemDataQuality: typeof ReadoutListItemDataQuality;
51
58
  ReadoutValueOptions: typeof ReadoutValueOptions;
52
59
  ReadoutSetpointOptions: typeof ReadoutSetpointOptions;
53
60
  ReadoutAdviceOptions: typeof ReadoutAdviceOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.87",
3
+ "version": "2.0.0-next.89",
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.86"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.88"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"