@oicl/openbridge-webcomponents-svelte 2.0.0-next.112 → 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;
@@ -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.112",
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.111"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.112"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"