@oicl/openbridge-webcomponents-svelte 2.0.0-next.145 → 2.0.0-next.146

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.
@@ -17,10 +17,10 @@ import type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/compone
17
17
  style?: string;
18
18
  /** Semantic variant (value / setpoint / advice). */
19
19
  variant?: ReadoutBlockVariant;
20
- /** [object Object],[object Object],[object Object] */
21
- value?: string | number | null;
22
- /** [object Object],[object Object],[object Object] */
23
- valueType?: ReadoutValueType;
20
+ /** The value; `null`/`undefined` renders a dash. A number by default, or text when `valueType` is `text`. */
21
+ value?: string | number | null;
22
+ /** How `value` is interpreted. `number` (default) formats it via `fractionDigits`; `text` renders it verbatim and ignores the numeric format options. Passing text while this is `number` throws. */
23
+ valueType?: ReadoutValueType;
24
24
  /** Density tier — icon size, gap, degree tier. */
25
25
  size?: ReadoutBlockSize;
26
26
  /** Resolved number-typography size. When unset it is derived from `size` (small→s, medium→m, large→l), so a parent that de-emphasises a block (e.g. a secondary setpoint) can pass a smaller size without changing the tier. */
@@ -59,8 +59,12 @@ valueType?: ReadoutValueType;
59
59
  offText?: string;
60
60
  /** Text alignment of the number within its reserved width. */
61
61
  alignment?: ObcTextboxAlignment;
62
- /** [object Object],[object Object],[object Object] */
63
- category?: ReadoutAdviceCategory;
62
+ /**
63
+ * Semantic category of an advice block — picks the default marker icon and the `active` styling. Only meaningful for `variant="advice"`.
64
+ *
65
+ * Available when `variant==advice`.
66
+ */
67
+ category?: ReadoutAdviceCategory;
64
68
  /**
65
69
  * The advice is triggered: the marker swaps to its filled/status icon and the number takes the category's triggered styling (SemiBold for regular/optimal/eco, active text colour for the alert categories). Only meaningful for `variant="advice"`.
66
70
  *
@@ -9,9 +9,9 @@ export interface Props {
9
9
  style?: string;
10
10
  /** Semantic variant (value / setpoint / advice). */
11
11
  variant?: ReadoutBlockVariant;
12
- /** [object Object],[object Object],[object Object] */
12
+ /** The value; `null`/`undefined` renders a dash. A number by default, or text when `valueType` is `text`. */
13
13
  value?: string | number | null;
14
- /** [object Object],[object Object],[object Object] */
14
+ /** How `value` is interpreted. `number` (default) formats it via `fractionDigits`; `text` renders it verbatim and ignores the numeric format options. Passing text while this is `number` throws. */
15
15
  valueType?: ReadoutValueType;
16
16
  /** Density tier — icon size, gap, degree tier. */
17
17
  size?: ReadoutBlockSize;
@@ -51,7 +51,11 @@ export interface Props {
51
51
  offText?: string;
52
52
  /** Text alignment of the number within its reserved width. */
53
53
  alignment?: ObcTextboxAlignment;
54
- /** [object Object],[object Object],[object Object] */
54
+ /**
55
+ * Semantic category of an advice block — picks the default marker icon and the `active` styling. Only meaningful for `variant="advice"`.
56
+ *
57
+ * Available when `variant==advice`.
58
+ */
55
59
  category?: ReadoutAdviceCategory;
56
60
  /**
57
61
  * The advice is triggered: the marker swaps to its filled/status icon and the number takes the category's triggered styling (SemiBold for regular/optimal/eco, active text colour for the alert categories). Only meaningful for `variant="advice"`.
@@ -17,7 +17,7 @@ import type {ObcCheckboxItemExpandToggleEvent, ObcCheckboxItemState, ObcCheckbox
17
17
  state?: ObcCheckboxItemState;
18
18
  /** Disables the row and the inner checkbox. */
19
19
  disabled?: boolean;
20
- /** Text label; also the checkbox's accessible name. */
20
+ /** Text label; also the accessible name of the checkbox and the chevron button, so it must not be empty. */
21
21
  label?: string;
22
22
  /** Secondary line under the label; hidden when empty. */
23
23
  description?: string;
@@ -11,7 +11,7 @@ export interface Props {
11
11
  state?: ObcCheckboxItemState;
12
12
  /** Disables the row and the inner checkbox. */
13
13
  disabled?: boolean;
14
- /** Text label; also the checkbox's accessible name. */
14
+ /** Text label; also the accessible name of the checkbox and the chevron button, so it must not be empty. */
15
15
  label?: string;
16
16
  /** Secondary line under the label; hidden when empty. */
17
17
  description?: string;
@@ -24,10 +24,10 @@ import type {ReadoutValueOptions, ReadoutSetpointOptions, ReadoutAdviceOptions,
24
24
  src?: string | undefined;
25
25
  /** Layout switch: `false` renders a deliberately value-less (label-only) readout that hugs its remaining parts. For a temporarily missing value keep `hasValue` and set `value` to `null` instead — the dash keeps the value block at full size, so the layout does not shift when data arrives. */
26
26
  hasValue?: boolean;
27
- /** [object Object],[object Object],[object Object] */
28
- value?: string | number | null;
29
- /** [object Object],[object Object],[object Object] */
30
- valueType?: ReadoutValueType;
27
+ /** The value; `null` renders a dash. A number by default, or text when `valueType` is `text`. */
28
+ value?: string | number | null;
29
+ /** How `value` is interpreted. `number` (default) formats it via `fractionDigits`; `text` renders it verbatim and ignores the numeric format options. Passing text while this is `number` throws. */
30
+ valueType?: ReadoutValueType;
31
31
  /** Render the value as `offText` (e.g. equipment powered down). Affects the value only. */
32
32
  off?: boolean;
33
33
  /**
@@ -14,9 +14,9 @@ export interface Props {
14
14
  src?: string | undefined;
15
15
  /** Layout switch: `false` renders a deliberately value-less (label-only) readout that hugs its remaining parts. For a temporarily missing value keep `hasValue` and set `value` to `null` instead — the dash keeps the value block at full size, so the layout does not shift when data arrives. */
16
16
  hasValue?: boolean;
17
- /** [object Object],[object Object],[object Object] */
17
+ /** The value; `null` renders a dash. A number by default, or text when `valueType` is `text`. */
18
18
  value?: string | number | null;
19
- /** [object Object],[object Object],[object Object] */
19
+ /** How `value` is interpreted. `number` (default) formats it via `fractionDigits`; `text` renders it verbatim and ignores the numeric format options. Passing text while this is `number` throws. */
20
20
  valueType?: ReadoutValueType;
21
21
  /** Render the value as `offText` (e.g. equipment powered down). Affects the value only. */
22
22
  off?: boolean;
@@ -20,10 +20,10 @@ import type {AlertFrameConfig} from '@oicl/openbridge-webcomponents/dist/compone
20
20
  src?: string | undefined;
21
21
  /** Layout switch: `false` renders a deliberately value-less (label-only) row that hugs its remaining parts. For a temporarily missing value keep `hasValue` and set `value` to `null` instead — the dash keeps the value block at full size, so the row does not shift when data arrives. */
22
22
  hasValue?: boolean;
23
- /** [object Object],[object Object],[object Object] */
24
- value?: string | number | null;
25
- /** [object Object],[object Object],[object Object] */
26
- valueType?: ReadoutValueType;
23
+ /** The value; `null` renders a dash. A number by default, or text when `valueType` is `text`. */
24
+ value?: string | number | null;
25
+ /** How `value` is interpreted. `number` (default) formats it via `fractionDigits`; `text` renders it verbatim and ignores the numeric format options. Passing text while this is `number` throws. */
26
+ valueType?: ReadoutValueType;
27
27
  /** Render the value as `offText` (e.g. equipment powered down). Affects the value only. */
28
28
  off?: boolean;
29
29
  /**
@@ -12,9 +12,9 @@ export interface Props {
12
12
  src?: string | undefined;
13
13
  /** Layout switch: `false` renders a deliberately value-less (label-only) row that hugs its remaining parts. For a temporarily missing value keep `hasValue` and set `value` to `null` instead — the dash keeps the value block at full size, so the row does not shift when data arrives. */
14
14
  hasValue?: boolean;
15
- /** [object Object],[object Object],[object Object] */
15
+ /** The value; `null` renders a dash. A number by default, or text when `valueType` is `text`. */
16
16
  value?: string | number | null;
17
- /** [object Object],[object Object],[object Object] */
17
+ /** How `value` is interpreted. `number` (default) formats it via `fractionDigits`; `text` renders it verbatim and ignores the numeric format options. Passing text while this is `number` throws. */
18
18
  valueType?: ReadoutValueType;
19
19
  /** Render the value as `offText` (e.g. equipment powered down). Affects the value only. */
20
20
  off?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.145",
3
+ "version": "2.0.0-next.146",
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.145"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.146"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"