@oicl/openbridge-webcomponents-svelte 2.0.0-next.111 → 2.0.0-next.113

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.
@@ -1,11 +1,13 @@
1
1
 
2
2
  <script lang="ts">
3
3
  export type {ReadoutBlockVariant, ReadoutBlockSize, ReadoutBlockDataQuality, ReadoutBlockHidePhase} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
4
+ export type {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
4
5
  export type {ObcTextboxSize, ObcTextboxFontWeight, ObcTextboxAlignment} from '@oicl/openbridge-webcomponents/dist/components/textbox/textbox.js';
5
6
  export type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
6
7
  import '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
7
8
  import { setProperties } from "../../util.js";
8
9
  import type {ReadoutBlockVariant, ReadoutBlockSize, ReadoutBlockDataQuality, ReadoutBlockHidePhase} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
10
+ import type {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
9
11
  import type {ObcTextboxSize, ObcTextboxFontWeight, ObcTextboxAlignment} from '@oicl/openbridge-webcomponents/dist/components/textbox/textbox.js';
10
12
  import type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
11
13
  import type { Snippet } from 'svelte';
@@ -15,8 +17,10 @@ import type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/compone
15
17
  style?: string;
16
18
  /** Semantic variant (value / setpoint / advice). */
17
19
  variant?: ReadoutBlockVariant;
18
- /** The numeric value; `null`/`undefined` renders a dash. */
19
- value?: number | null;
20
+ /** [object Object],[object Object],[object Object] */
21
+ value?: string | number | null;
22
+ /** [object Object],[object Object],[object Object] */
23
+ valueType?: ReadoutValueType;
20
24
  /** Density tier — icon size, gap, degree tier. */
21
25
  size?: ReadoutBlockSize;
22
26
  /** Resolved number-typography size. When unset it is derived from `size`
@@ -1,5 +1,6 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
2
2
  import type { ReadoutBlockVariant, ReadoutBlockSize, ReadoutBlockDataQuality, ReadoutBlockHidePhase } from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
3
+ import type { ReadoutValueType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
3
4
  import type { ObcTextboxSize, ObcTextboxFontWeight, ObcTextboxAlignment } from '@oicl/openbridge-webcomponents/dist/components/textbox/textbox.js';
4
5
  import type { AlertFrameConfig } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
5
6
  import type { Snippet } from 'svelte';
@@ -8,8 +9,10 @@ export interface Props {
8
9
  style?: string;
9
10
  /** Semantic variant (value / setpoint / advice). */
10
11
  variant?: ReadoutBlockVariant;
11
- /** The numeric value; `null`/`undefined` renders a dash. */
12
- value?: number | null;
12
+ /** [object Object],[object Object],[object Object] */
13
+ value?: string | number | null;
14
+ /** [object Object],[object Object],[object Object] */
15
+ valueType?: ReadoutValueType;
13
16
  /** Density tier — icon size, gap, degree tier. */
14
17
  size?: ReadoutBlockSize;
15
18
  /** Resolved number-typography size. When unset it is derived from `size`
@@ -58,6 +61,7 @@ declare const ObcReadoutBlock: import("svelte").Component<$$ComponentProps, {
58
61
  ReadoutBlockSize: typeof ReadoutBlockSize;
59
62
  ReadoutBlockDataQuality: typeof ReadoutBlockDataQuality;
60
63
  ReadoutBlockHidePhase: typeof ReadoutBlockHidePhase;
64
+ ReadoutValueType: typeof ReadoutValueType;
61
65
  ObcTextboxSize: typeof ObcTextboxSize;
62
66
  ObcTextboxFontWeight: typeof ObcTextboxFontWeight;
63
67
  ObcTextboxAlignment: typeof ObcTextboxAlignment;
@@ -94,7 +94,7 @@ rotMaxValue?: number;
94
94
  /** Color priority: `Priority.enhanced` uses the blue/enhanced color palette, `Priority.regular` (default) uses the standard palette. */
95
95
  priority?: Priority;
96
96
  priorityElements?: CompassPriorityElement[];
97
- /** Show compass NSEW labels and north arrow. */
97
+ /** Show compass NSEW labels. The north arrow is always shown, independent of this flag. */
98
98
  showLabels?: boolean;
99
99
  /** When true, labels and north arrow are placed inside the outer ring. */
100
100
  tickmarksInside?: boolean;
@@ -84,7 +84,7 @@ the physical ROT API was introduced. */
84
84
  /** Color priority: `Priority.enhanced` uses the blue/enhanced color palette, `Priority.regular` (default) uses the standard palette. */
85
85
  priority?: Priority;
86
86
  priorityElements?: CompassPriorityElement[];
87
- /** Show compass NSEW labels and north arrow. */
87
+ /** Show compass NSEW labels. The north arrow is always shown, independent of this flag. */
88
88
  showLabels?: boolean;
89
89
  /** When true, labels and north arrow are placed inside the outer ring. */
90
90
  tickmarksInside?: boolean;
@@ -22,6 +22,16 @@ currentSpeed?: number | null;
22
22
  currentFromDirection?: number | null;
23
23
  /** Color priority: `Priority.enhanced` uses the blue/enhanced palette (default: `Priority.regular`). */
24
24
  priority?: Priority;
25
+ /** Show the force-graphics band pattern behind the watch face. */
26
+ hasPattern?: boolean;
27
+ /** Wavelength of the pattern bands as a multiplier on the design spacing
28
+ (1 = design, 0.5 = twice as dense). */
29
+ waveLength?: number;
30
+ /** Wave intensity: the peak opacity the pattern bands fade up to (0–1). */
31
+ waveHeight?: number;
32
+ /** Drift speed of the pattern in wavelengths per second, moving with the
33
+ flow (negative drifts against it); 0 keeps the pattern static. */
34
+ waveSpeed?: number;
25
35
  /** The image of the vessel. */
26
36
  vesselImage?: VesselImage;
27
37
  /** Vessel heading in degrees. */
@@ -15,6 +15,16 @@ rounded and clamped. `null` hides the icon. */
15
15
  currentFromDirection?: number | null;
16
16
  /** Color priority: `Priority.enhanced` uses the blue/enhanced palette (default: `Priority.regular`). */
17
17
  priority?: Priority;
18
+ /** Show the force-graphics band pattern behind the watch face. */
19
+ hasPattern?: boolean;
20
+ /** Wavelength of the pattern bands as a multiplier on the design spacing
21
+ (1 = design, 0.5 = twice as dense). */
22
+ waveLength?: number;
23
+ /** Wave intensity: the peak opacity the pattern bands fade up to (0–1). */
24
+ waveHeight?: number;
25
+ /** Drift speed of the pattern in wavelengths per second, moving with the
26
+ flow (negative drifts against it); 0 keeps the pattern static. */
27
+ waveSpeed?: number;
18
28
  /** The image of the vessel. */
19
29
  vesselImage?: VesselImage;
20
30
  /** Vessel heading in degrees. */
@@ -29,7 +29,9 @@ rotDotAnimationFactor?: number;
29
29
  /** When `true`, shows a bar in the ring band from the twelve o'clock
30
30
  position to the measured rate of turn, with a needle marker at its end
31
31
  and sector tickmarks. Pairs with `watchCircleType="double"` for the
32
- banded face. Driven by `rateOfTurnDegreesPerMinute` only. */
32
+ banded face or `"triple"` when `rotPosition` is `innerCircle`, so the
33
+ dots get their inner track too. Driven by `rateOfTurnDegreesPerMinute`
34
+ only. */
33
35
  hasTrackBar?: boolean;
34
36
  /** Bar-extent reference value in **degrees per minute**: the track bar
35
37
  reaches ±`rotArcExtent` when the measured ROT equals ±`rotMaxValue`.
@@ -23,7 +23,9 @@ keeps the legacy visual feel (≈1 rpm at 20°/min). */
23
23
  /** When `true`, shows a bar in the ring band from the twelve o'clock
24
24
  position to the measured rate of turn, with a needle marker at its end
25
25
  and sector tickmarks. Pairs with `watchCircleType="double"` for the
26
- banded face. Driven by `rateOfTurnDegreesPerMinute` only. */
26
+ banded face or `"triple"` when `rotPosition` is `innerCircle`, so the
27
+ dots get their inner track too. Driven by `rateOfTurnDegreesPerMinute`
28
+ only. */
27
29
  hasTrackBar?: boolean;
28
30
  /** Bar-extent reference value in **degrees per minute**: the track bar
29
31
  reaches ±`rotArcExtent` when the measured ROT equals ±`rotMaxValue`.
@@ -1,13 +1,15 @@
1
1
 
2
2
  <script lang="ts">
3
- export type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
3
+ export type {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
4
+ export type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
4
5
  export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
5
6
  export type {ReadoutDirection, ReadoutStacking, ReadoutAlignment, ReadoutSourceOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
6
7
  export type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
7
8
  export type {ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
8
9
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
9
10
  import { setProperties } from "../../util.js";
10
- import type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
11
+ import type {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
12
+ import type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
11
13
  import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
12
14
  import type {ReadoutDirection, ReadoutStacking, ReadoutAlignment, ReadoutSourceOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
13
15
  import type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
@@ -25,7 +27,10 @@ readout that hugs its remaining parts. For a temporarily missing value
25
27
  keep `hasValue` and set `value` to `null` instead — the dash keeps the
26
28
  value block at full size, so the layout does not shift when data arrives. */
27
29
  hasValue?: boolean;
28
- value?: number | null;
30
+ /** [object Object],[object Object],[object Object] */
31
+ value?: string | number | null;
32
+ /** [object Object],[object Object],[object Object] */
33
+ valueType?: ReadoutValueType;
29
34
  /** Render the value as `offText` (e.g. equipment powered down). Affects the value only. */
30
35
  off?: boolean;
31
36
  /** Text shown in place of the value when `off` is true. */
@@ -41,8 +46,12 @@ offText?: string;
41
46
  alignment?: ReadoutAlignment | undefined;
42
47
  hasDegree?: boolean;
43
48
  hasDegreeSpacer?: boolean;
44
- fractionDigits?: number;
45
- maxDigits?: number;
49
+ /** Also formats the numeric setpoint / advice blocks, which stay numeric
50
+ even when the value is text. */
51
+ fractionDigits?: number;
52
+ /** Also formats the numeric setpoint / advice blocks, which stay numeric
53
+ even when the value is text. */
54
+ maxDigits?: number;
46
55
  dataQuality?: ReadoutBlockDataQuality | undefined;
47
56
  alert?: boolean | AlertFrameConfig;
48
57
  valueOptions?: ReadoutValueOptions | undefined;
@@ -1,4 +1,5 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
2
+ import type { ReadoutValueType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
2
3
  import type { ReadoutBlockSize, ReadoutBlockDataQuality } from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
3
4
  import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
4
5
  import type { ReadoutDirection, ReadoutStacking, ReadoutAlignment, ReadoutSourceOptions } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout.js';
@@ -16,7 +17,10 @@ readout that hugs its remaining parts. For a temporarily missing value
16
17
  keep `hasValue` and set `value` to `null` instead — the dash keeps the
17
18
  value block at full size, so the layout does not shift when data arrives. */
18
19
  hasValue?: boolean;
19
- value?: number | null;
20
+ /** [object Object],[object Object],[object Object] */
21
+ value?: string | number | null;
22
+ /** [object Object],[object Object],[object Object] */
23
+ valueType?: ReadoutValueType;
20
24
  /** Render the value as `offText` (e.g. equipment powered down). Affects the value only. */
21
25
  off?: boolean;
22
26
  /** Text shown in place of the value when `off` is true. */
@@ -32,7 +36,11 @@ value block at full size, so the layout does not shift when data arrives. */
32
36
  alignment?: ReadoutAlignment | undefined;
33
37
  hasDegree?: boolean;
34
38
  hasDegreeSpacer?: boolean;
39
+ /** Also formats the numeric setpoint / advice blocks, which stay numeric
40
+ even when the value is text. */
35
41
  fractionDigits?: number;
42
+ /** Also formats the numeric setpoint / advice blocks, which stay numeric
43
+ even when the value is text. */
36
44
  maxDigits?: number;
37
45
  dataQuality?: ReadoutBlockDataQuality | undefined;
38
46
  alert?: boolean | AlertFrameConfig;
@@ -63,6 +71,7 @@ export interface Slots {
63
71
  }
64
72
  type $$ComponentProps = Props & Events & Slots;
65
73
  declare const ObcReadout: import("svelte").Component<$$ComponentProps, {
74
+ ReadoutValueType: typeof ReadoutValueType;
66
75
  ReadoutBlockSize: typeof ReadoutBlockSize;
67
76
  ReadoutBlockDataQuality: typeof ReadoutBlockDataQuality;
68
77
  Priority: typeof Priority;
@@ -1,11 +1,13 @@
1
1
 
2
2
  <script lang="ts">
3
- export type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
3
+ export type {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
4
+ export type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
4
5
  export type {ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
5
6
  export type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
6
7
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
7
8
  import { setProperties } from "../../util.js";
8
- import type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
9
+ import type {ReadoutValueType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
10
+ import type {ReadoutBlockSize, ReadoutBlockDataQuality} from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
9
11
  import type {ReadoutListItemPriority, ReadoutListItemStacking, ReadoutListItemClickable, ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions, ReadoutReserverOptions, ReadoutSrcOptions} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
10
12
  import type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
11
13
  import type { Snippet } from 'svelte';
@@ -21,7 +23,10 @@ row that hugs its remaining parts. For a temporarily missing value keep
21
23
  `hasValue` and set `value` to `null` instead — the dash keeps the value
22
24
  block at full size, so the row does not shift when data arrives. */
23
25
  hasValue?: boolean;
24
- value?: number | null;
26
+ /** [object Object],[object Object],[object Object] */
27
+ value?: string | number | null;
28
+ /** [object Object],[object Object],[object Object] */
29
+ valueType?: ReadoutValueType;
25
30
  /** Render the value as `offText` (e.g. equipment powered down). Affects the value only. */
26
31
  off?: boolean;
27
32
  /** Text shown in place of the value when `off` is true. */
@@ -37,8 +42,12 @@ offText?: string;
37
42
  hasLeadingIcon?: boolean;
38
43
  hasDegree?: boolean;
39
44
  hasDegreeSpacer?: boolean;
40
- fractionDigits?: number;
41
- maxDigits?: number;
45
+ /** Also formats the numeric setpoint / advice blocks, which stay numeric
46
+ even when the value is text. */
47
+ fractionDigits?: number;
48
+ /** Also formats the numeric setpoint / advice blocks, which stay numeric
49
+ even when the value is text. */
50
+ maxDigits?: number;
42
51
  dataQuality?: ReadoutBlockDataQuality | undefined;
43
52
  alert?: boolean | AlertFrameConfig;
44
53
  valueOptions?: ReadoutValueOptions | undefined;
@@ -1,4 +1,5 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout-list-item/readout-list-item.js';
2
+ import type { ReadoutValueType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/readout/readout-formatters.js';
2
3
  import type { ReadoutBlockSize, ReadoutBlockDataQuality } from '@oicl/openbridge-webcomponents/dist/building-blocks/readout-block/readout-block.js';
3
4
  import 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
  import type { AlertFrameConfig } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
@@ -14,7 +15,10 @@ row that hugs its remaining parts. For a temporarily missing value keep
14
15
  `hasValue` and set `value` to `null` instead — the dash keeps the value
15
16
  block at full size, so the row does not shift when data arrives. */
16
17
  hasValue?: boolean;
17
- value?: number | null;
18
+ /** [object Object],[object Object],[object Object] */
19
+ value?: string | number | null;
20
+ /** [object Object],[object Object],[object Object] */
21
+ valueType?: ReadoutValueType;
18
22
  /** Render the value as `offText` (e.g. equipment powered down). Affects the value only. */
19
23
  off?: boolean;
20
24
  /** Text shown in place of the value when `off` is true. */
@@ -30,7 +34,11 @@ block at full size, so the row does not shift when data arrives. */
30
34
  hasLeadingIcon?: boolean;
31
35
  hasDegree?: boolean;
32
36
  hasDegreeSpacer?: boolean;
37
+ /** Also formats the numeric setpoint / advice blocks, which stay numeric
38
+ even when the value is text. */
33
39
  fractionDigits?: number;
40
+ /** Also formats the numeric setpoint / advice blocks, which stay numeric
41
+ even when the value is text. */
34
42
  maxDigits?: number;
35
43
  dataQuality?: ReadoutBlockDataQuality | undefined;
36
44
  alert?: boolean | AlertFrameConfig;
@@ -54,6 +62,7 @@ export interface Slots {
54
62
  }
55
63
  type $$ComponentProps = Props & Events & Slots;
56
64
  declare const ObcReadoutListItem: import("svelte").Component<$$ComponentProps, {
65
+ ReadoutValueType: typeof ReadoutValueType;
57
66
  ReadoutBlockSize: typeof ReadoutBlockSize;
58
67
  ReadoutBlockDataQuality: typeof ReadoutBlockDataQuality;
59
68
  ReadoutListItemPriority: typeof ReadoutListItemPriority;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.111",
3
+ "version": "2.0.0-next.113",
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.110"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.112"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"