@oicl/openbridge-webcomponents 2.0.0-next.83 → 2.0.0-next.84
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/bundle/openbridge-webcomponents.bundle.js +1147 -460
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +591 -193
- package/dist/components/textbox/textbox.css.js +29 -5
- package/dist/components/textbox/textbox.css.js.map +1 -1
- package/dist/components/textbox/textbox.d.ts +5 -0
- package/dist/components/textbox/textbox.d.ts.map +1 -1
- package/dist/components/textbox/textbox.js +6 -1
- package/dist/components/textbox/textbox.js.map +1 -1
- package/dist/navigation-instruments/readout-list-item/readout-list-item.css.js +611 -230
- package/dist/navigation-instruments/readout-list-item/readout-list-item.css.js.map +1 -1
- package/dist/navigation-instruments/readout-list-item/readout-list-item.d.ts +280 -61
- package/dist/navigation-instruments/readout-list-item/readout-list-item.d.ts.map +1 -1
- package/dist/navigation-instruments/readout-list-item/readout-list-item.js +529 -247
- package/dist/navigation-instruments/readout-list-item/readout-list-item.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readout-list-item.js","sources":["../../../src/navigation-instruments/readout-list-item/readout-list-item.ts"],"sourcesContent":["import {LitElement, html, nothing, unsafeCSS} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport componentStyle from './readout-list-item.css?inline';\nimport {customElement} from '../../decorator.js';\nimport {ReadoutSetpointSize} from '../readout-setpoint/readout-setpoint.js';\nimport {ReadoutSetpointValueTypography} from '../readout-setpoint/readout-setpoint.js';\nimport {Priority} from '../types.js';\nimport '../readout-setpoint/readout-setpoint.js';\nimport '../../icons/icon-input-right.js';\nimport {ReadoutSetpointMode} from '../readout-setpoint/readout-setpoint.js';\nimport {\n type AlertFrameConfig,\n wrapWithAlertFrame,\n} from '../../components/alert-frame/alert-frame.js';\n\nexport enum ReadoutListItemDataState {\n none = 'none',\n lowIntegrity = 'low-integrity',\n invalid = 'invalid',\n}\n\nexport enum ReadoutListItemSize {\n base = 'base',\n priority = 'priority',\n enhanced = 'enhanced',\n}\n\nexport enum ReadoutListItemStacking {\n trailingUnit = 'trailing-unit',\n leadingUnit = 'leading-unit',\n leadingSrc = 'leading-src',\n}\n\nexport enum ReadoutListItemPriority {\n regular = 'regular',\n enhanced = 'enhanced',\n setpoint = 'setpoint',\n setpointFlipFlop = 'setpoint-flip-flop',\n}\n\n/**\n * `<obc-readout-list-item>` – A compact inline readout row for lists.\n *\n * Renders a compact label/value/unit composition with a dedicated size scale and stacking modes for unit and source placement. Use it when you need dense, consistent readout rows in tables or lists without bringing in the full `<obc-readout>` segment layout.\n *\n * ### Features\n * - **Sizes:** `base`, `priority`, and `enhanced` typography/padding scales.\n * - **Stacking modes:** `trailing-unit`, `leading-unit`, and `leading-src` control where unit/source appear relative to the label/value.\n * - **Priority styling:** `priority` controls emphasis and setpoint presentation (`regular`, `enhanced`, `setpoint`, `setpoint-flip-flop`).\n * - **Data states:** Supports `dataState` styling for `low-integrity` and `invalid` data quality.\n * - **Alert frame:** Optional `alert` wrapper for caution, warning, alarm, and other alert-frame statuses.\n * - **Formatting:** Supports numeric formatting, fixed-length width templates, hinted zeros, and optional degree suffix (`°`).\n *\n * ### Usage Guidelines\n * Use this component for dense readouts in list contexts. Prefer `<obc-readout>` when you need multi-segment advice/setpoint/source composition, rich layouts, or source picker/flyout behavior.\n *\n * ### Slots\n * | Slot Name | Renders When | Purpose |\n * |---------------|--------------------------|---------|\n * | leading-icon | `hasLeadingIcon` is true | Optional leading icon before the label. |\n * | value-icon | `hasValueIcon` is true | Optional icon next to the value. |\n *\n * @slot leading-icon - Optional leading icon before the label.\n * @slot value-icon - Optional icon next to the value.\n */\n@customElement('obc-readout-list-item')\nexport class ObcReadoutListItem extends LitElement {\n @property({type: String}) size: ReadoutListItemSize =\n ReadoutListItemSize.base;\n @property({type: String})\n stacking: ReadoutListItemStacking = ReadoutListItemStacking.trailingUnit;\n @property({type: String})\n priority: ReadoutListItemPriority = ReadoutListItemPriority.regular;\n @property({type: String})\n dataState: ReadoutListItemDataState = ReadoutListItemDataState.none;\n\n @property({type: Object}) alert: AlertFrameConfig | boolean = false;\n\n @property({type: String}) label = '';\n @property({type: String}) unit = '';\n @property({type: String}) src = '';\n\n @property({type: Number}) value: number | undefined = undefined;\n @property({type: Number}) setpointValue: number | undefined = undefined;\n\n @property({type: Boolean}) hasSetpoint = false;\n\n @property({type: Boolean}) hasDegree = false;\n @property({type: Boolean}) hasUnit = false;\n @property({type: Boolean}) hasLabel = false;\n @property({type: Boolean}) hasSource = false;\n @property({type: Boolean}) hasLeadingIcon = false;\n @property({type: Boolean}) hasValueIcon = false;\n\n @property({type: Number}) fractionDigits = 0;\n @property({type: Boolean}) showZeroPadding = false;\n\n @property({type: Number}) minValueLength = 0;\n @property({type: Boolean}) hasHintedZeros = false;\n\n @property({type: Boolean}) labelOnly = false;\n\n private get resolvedMainValueSize(): ReadoutSetpointSize {\n return this.size === ReadoutListItemSize.enhanced\n ? ReadoutSetpointSize.large\n : this.size === ReadoutListItemSize.priority\n ? ReadoutSetpointSize.medium\n : ReadoutSetpointSize.regular;\n }\n\n private get resolvedValueSize(): ReadoutSetpointSize {\n if (this.priority === ReadoutListItemPriority.setpointFlipFlop) {\n if (this.size === ReadoutListItemSize.priority) {\n return ReadoutSetpointSize.small;\n }\n\n if (this.size === ReadoutListItemSize.enhanced) {\n return ReadoutSetpointSize.regular;\n }\n }\n\n if (this.size === ReadoutListItemSize.enhanced) {\n return ReadoutSetpointSize.large;\n }\n return ReadoutSetpointSize.regular;\n }\n\n private get resolvedValueTypography():\n | ReadoutSetpointValueTypography\n | undefined {\n if (\n this.priority === ReadoutListItemPriority.setpointFlipFlop &&\n this.resolvedValueSize === ReadoutSetpointSize.small\n ) {\n return undefined;\n }\n\n if (\n this.priority === ReadoutListItemPriority.setpointFlipFlop &&\n this.size === ReadoutListItemSize.enhanced\n ) {\n return ReadoutSetpointValueTypography.regular;\n }\n\n switch (this.size) {\n case ReadoutListItemSize.enhanced:\n return ReadoutSetpointValueTypography.large;\n case ReadoutListItemSize.priority:\n return ReadoutSetpointValueTypography.medium;\n case ReadoutListItemSize.base:\n default:\n return ReadoutSetpointValueTypography.regular;\n }\n }\n\n private get resolvedSetpointSize(): ReadoutSetpointSize {\n if (!this.hasSetpoint) {\n return ReadoutSetpointSize.small;\n }\n\n if (\n this.priority === ReadoutListItemPriority.setpoint ||\n this.priority === ReadoutListItemPriority.setpointFlipFlop\n ) {\n return this.resolvedMainValueSize;\n }\n\n return ReadoutSetpointSize.small;\n }\n\n private get resolvedActualPriority(): Priority {\n if (\n this.priority === ReadoutListItemPriority.enhanced ||\n (this.priority === ReadoutListItemPriority.setpoint &&\n !this.hasSetpoint) ||\n this.priority === ReadoutListItemPriority.setpointFlipFlop\n ) {\n return Priority.enhanced;\n }\n\n return Priority.regular;\n }\n\n private get resolvedActualMode(): ReadoutSetpointMode {\n return this.priority === ReadoutListItemPriority.enhanced\n ? ReadoutSetpointMode.setpoint\n : ReadoutSetpointMode.display;\n }\n\n private get resolvedSetpointPriority(): Priority {\n if (\n !this.hasSetpoint ||\n this.priority === ReadoutListItemPriority.regular\n ) {\n return Priority.regular;\n }\n\n return Priority.enhanced;\n }\n\n private get resolvedSetpointMode(): ReadoutSetpointMode {\n if (\n this.hasSetpoint &&\n this.priority === ReadoutListItemPriority.setpoint\n ) {\n return ReadoutSetpointMode.setpoint;\n }\n return ReadoutSetpointMode.display;\n }\n\n private get showsTrailingSource(): boolean {\n return (\n this.hasSource && this.stacking !== ReadoutListItemStacking.leadingSrc\n );\n }\n\n private get stacksLeadingUnitVertically(): boolean {\n return (\n this.stacking === ReadoutListItemStacking.leadingUnit &&\n this.size === ReadoutListItemSize.enhanced\n );\n }\n\n private get stacksLeadingSrcVertically(): boolean {\n return (\n this.stacking === ReadoutListItemStacking.leadingSrc &&\n this.size === ReadoutListItemSize.enhanced\n );\n }\n\n private renderLabelContainer() {\n if (!this.hasLabel) {\n return nothing;\n }\n\n const showsLeadingUnit =\n this.stacking === ReadoutListItemStacking.leadingUnit && this.hasUnit;\n const showsLeadingSrc =\n this.stacking === ReadoutListItemStacking.leadingSrc && this.hasSource;\n\n if (showsLeadingUnit && !this.stacksLeadingUnitVertically) {\n return html`\n <div class=\"label-inline\" part=\"label-inline\">\n <div class=\"label\" part=\"label\">${this.label}</div>\n <div class=\"unit unit-leading\" part=\"unit-leading\">${this.unit}</div>\n </div>\n `;\n }\n\n if (showsLeadingSrc && !this.stacksLeadingSrcVertically) {\n return html`\n <div class=\"label-inline\" part=\"label-inline\">\n <div class=\"label\" part=\"label\">${this.label}</div>\n <div class=\"source source-inline\" part=\"source-inline\">\n ${this.src}\n </div>\n </div>\n `;\n }\n\n return html`\n <div class=\"label-stack\" part=\"label-stack\">\n <div class=\"label\" part=\"label\">${this.label}</div>\n ${showsLeadingUnit\n ? html`<div class=\"unit unit-leading\" part=\"unit-leading\">\n ${this.unit}\n </div>`\n : nothing}\n ${showsLeadingSrc\n ? html`<div class=\"source source-inline\" part=\"source-inline\">\n ${this.src}\n </div>`\n : nothing}\n </div>\n `;\n }\n\n private renderValueIconSlot() {\n if (!this.hasValueIcon) {\n return nothing;\n }\n return html`<span class=\"value-icon\" slot=\"icon\" aria-hidden=\"true\">\n <slot name=\"value-icon\"></slot>\n </span>`;\n }\n\n private renderSetpoint() {\n if (!this.hasSetpoint) {\n return nothing;\n }\n\n return html`\n <obc-readout-setpoint\n .variant=${'setpoint'}\n .readoutStyle=${'regular'}\n .direction=${'horizontal'}\n .size=${this.resolvedSetpointSize}\n .priority=${this.resolvedSetpointPriority}\n .mode=${this.resolvedSetpointMode}\n .hugContent=${true}\n .value=${this.setpointValue}\n .showZeroPadding=${this.showZeroPadding}\n .fractionDigits=${this.fractionDigits}\n .minValueLength=${this.minValueLength}\n .hasHintedZeros=${this.hasHintedZeros}\n .hasDegree=${this.hasDegree}\n >\n <obi-input-right slot=\"icon\"></obi-input-right>\n </obc-readout-setpoint>\n `;\n }\n\n private renderActualValue() {\n return html`\n <obc-readout-setpoint\n .variant=${'value'}\n .readoutStyle=${'regular'}\n .direction=${'horizontal'}\n .size=${this.resolvedValueSize}\n .valueTypography=${this.resolvedValueTypography ?? undefined}\n .priority=${this.resolvedActualPriority}\n .mode=${this.resolvedActualMode}\n .hugContent=${true}\n .value=${this.value}\n .showZeroPadding=${this.showZeroPadding}\n .fractionDigits=${this.fractionDigits}\n .minValueLength=${this.minValueLength}\n .hasHintedZeros=${this.hasHintedZeros}\n .hasDegree=${this.hasDegree}\n >\n ${this.renderValueIconSlot()}\n </obc-readout-setpoint>\n `;\n }\n\n private renderValue() {\n return html`\n <div class=\"value-wrap\" part=\"value-wrap\">\n ${this.hasSetpoint\n ? html`<div class=\"value-cluster\" part=\"value-cluster\">\n ${this.renderSetpoint()} ${this.renderActualValue()}\n </div>`\n : this.renderActualValue()}\n </div>\n `;\n }\n\n private renderTrailingUnit() {\n if (\n !this.hasUnit ||\n this.stacking === ReadoutListItemStacking.leadingUnit\n ) {\n return nothing;\n }\n\n return html`<div class=\"unit unit-trailing\" part=\"unit-trailing\">\n ${this.unit}\n </div>`;\n }\n\n private renderTrailingSource() {\n if (!this.showsTrailingSource) {\n return nothing;\n }\n\n return html`\n <div class=\"divider\" part=\"divider\" aria-hidden=\"true\"></div>\n <div class=\"source source-trailing\" part=\"source-trailing\">\n ${this.src}\n </div>\n `;\n }\n\n override render() {\n return wrapWithAlertFrame(\n this.alert,\n html`\n <div\n class=${classMap({\n root: true,\n [`size-${this.size}`]: true,\n [`stacking-${this.stacking}`]: true,\n 'priority-enhanced':\n this.priority === ReadoutListItemPriority.enhanced,\n 'priority-setpoint':\n this.priority === ReadoutListItemPriority.setpoint,\n 'priority-setpoint-flip-flop':\n this.priority === ReadoutListItemPriority.setpointFlipFlop,\n 'data-none': this.dataState === ReadoutListItemDataState.none,\n 'data-low-integrity':\n this.dataState === ReadoutListItemDataState.lowIntegrity,\n 'data-invalid': this.dataState === ReadoutListItemDataState.invalid,\n 'has-leading-icon': this.hasLeadingIcon,\n 'has-value-icon': this.hasValueIcon,\n })}\n part=\"root\"\n >\n <div class=\"content\" part=\"content\">\n <div class=\"label-container\" part=\"label-container\">\n ${this.hasLeadingIcon\n ? html`<span class=\"leading-icon\" aria-hidden=\"true\"\n ><slot name=\"leading-icon\"></slot\n ></span>`\n : nothing}\n ${this.renderLabelContainer()}\n </div>\n\n ${this.labelOnly\n ? nothing\n : html`\n <div class=\"value-container\" part=\"value-container\">\n ${this.renderValue()} ${this.renderTrailingUnit()}\n </div>\n\n ${this.renderTrailingSource()}\n `}\n </div>\n </div>\n `,\n true\n );\n }\n\n static override styles = unsafeCSS(componentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-readout-list-item': ObcReadoutListItem;\n }\n}\n"],"names":["ReadoutListItemDataState","ReadoutListItemSize","ReadoutListItemStacking","ReadoutListItemPriority"],"mappings":";;;;;;;;;;;;;;;;;;;AAgBO,IAAK,6CAAAA,8BAAL;AACLA,4BAAA,MAAA,IAAO;AACPA,4BAAA,cAAA,IAAe;AACfA,4BAAA,SAAA,IAAU;AAHA,SAAAA;AAAA,GAAA,4BAAA,CAAA,CAAA;AAML,IAAK,wCAAAC,yBAAL;AACLA,uBAAA,MAAA,IAAO;AACPA,uBAAA,UAAA,IAAW;AACXA,uBAAA,UAAA,IAAW;AAHD,SAAAA;AAAA,GAAA,uBAAA,CAAA,CAAA;AAML,IAAK,4CAAAC,6BAAL;AACLA,2BAAA,cAAA,IAAe;AACfA,2BAAA,aAAA,IAAc;AACdA,2BAAA,YAAA,IAAa;AAHH,SAAAA;AAAA,GAAA,2BAAA,CAAA,CAAA;AAML,IAAK,4CAAAC,6BAAL;AACLA,2BAAA,SAAA,IAAU;AACVA,2BAAA,UAAA,IAAW;AACXA,2BAAA,UAAA,IAAW;AACXA,2BAAA,kBAAA,IAAmB;AAJT,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+
{"version":3,"file":"readout-list-item.js","sources":["../../../src/navigation-instruments/readout-list-item/readout-list-item.ts"],"sourcesContent":["import {LitElement, html, nothing, unsafeCSS, type TemplateResult} from 'lit';\nimport {property, state} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport componentStyle from './readout-list-item.css?inline';\nimport {customElement} from '../../decorator.js';\nimport '../../components/textbox/textbox.js';\nimport {\n ObcTextboxSize,\n ObcTextboxFontWeight,\n} from '../../components/textbox/textbox.js';\nimport '../../icons/icon-input-right.js';\nimport '../../icons/icon-notification-advice.js';\nimport {\n formatNumericValue,\n getHintZeros,\n type ReadoutNumericFormatOptions,\n} from '../readout/readout-formatters.js';\nimport {\n type AlertFrameConfig,\n wrapWithAlertFrame,\n} from '../../components/alert-frame/alert-frame.js';\n\n// The value weight maps straight to obc-textbox's font weights (regular /\n// semibold / bold). Re-exported so consumers can set `valueOptions.weight`\n// without a second import path.\nexport {ObcTextboxFontWeight} from '../../components/textbox/textbox.js';\n\n/**\n * Density/size scale of the readout row.\n * - `small`: regular value typography (smallest, densest).\n * - `medium`: medium value typography.\n * - `large`: large value typography.\n */\nexport enum ReadoutListItemSize {\n small = 'small',\n medium = 'medium',\n large = 'large',\n}\n\n/**\n * Placement of the unit/source relative to the label and value.\n * - `trailing-unit`: unit after the value, source after a trailing divider.\n * - `leading-unit`: unit beside/under the label.\n * - `leading-src`: source beside/under the label (no trailing source).\n */\nexport enum ReadoutListItemStacking {\n trailingUnit = 'trailing-unit',\n leadingUnit = 'leading-unit',\n leadingSrc = 'leading-src',\n}\n\n/**\n * Colour emphasis of the value.\n * - `regular`: neutral.\n * - `enhanced`: accented (in-command) colour.\n */\nexport enum ReadoutListItemPriority {\n regular = 'regular',\n enhanced = 'enhanced',\n}\n\n/**\n * Measurement quality of the value. Orthogonal to the row-level `alert`\n * – a low-integrity or invalid value can also sit inside an alert frame.\n */\nexport enum ReadoutListItemDataQuality {\n lowIntegrity = 'low-integrity',\n invalid = 'invalid',\n}\n\n/**\n * Corner style of the interactive (clickable) surface.\n * - `squared` (default): no rounding (true rectangle).\n * - `round-corners`: larger rounded corners.\n * - `round`: fully rounded (pill).\n */\nexport enum ReadoutListItemBorder {\n squared = 'squared',\n round = 'round',\n roundCorners = 'round-corners',\n}\n\nexport interface ReadoutListItemClickable {\n border?: ReadoutListItemBorder;\n}\n\n/**\n * Per-block state shared by value / setpoint / advice / src. Each is independent\n * of (and nests inside) the row-level `dataQuality` / `alert` props. All\n * combinations are allowed.\n */\nexport interface ReadoutBlockState {\n /** Per-block measurement quality (low-integrity / invalid). */\n dataQuality?: ReadoutListItemDataQuality;\n /** Per-block alert frame; nests inside any row-level alert frame. */\n alert?: false | AlertFrameConfig;\n}\n\nexport interface ReadoutValueOptions extends ReadoutBlockState {\n /** Render the unfilled leading positions as muted zeroes (requires `maxDigits`). */\n hintedZeros?: boolean;\n /**\n * Value font weight — `regular` (default), `semibold`, or `bold` (the\n * obc-textbox weights). Affects weight only; it does NOT change the colour\n * (colour is driven by `priority`).\n */\n weight?: ObcTextboxFontWeight;\n /** Show the `value-icon` slot before the value. */\n hasIcon?: boolean;\n /**\n * Longest value string to reserve width for (e.g. `\"0000.0\"`), so rows align\n * across different value lengths / `fractionDigits` — set the same value on\n * every row. Combined with the `maxDigits`/`fractionDigits`-derived reserve by\n * taking whichever is **wider**, so it never reserves less than the formatted\n * value needs.\n */\n spaceReserver?: string;\n}\n\n/**\n * How the setpoint segment behaves relative to the value.\n * - `always-visible` (default): the setpoint is always shown.\n * - `flip-flop`: value and setpoint swap emphasis (size) as the value reaches\n * the setpoint.\n * - `pop-up`: the setpoint is shown only while the value has not reached it,\n * then fades out (100ms) once value === setpoint.\n */\nexport enum ReadoutListItemSetpointInteraction {\n alwaysVisible = 'always-visible',\n flipFlop = 'flip-flop',\n popUp = 'pop-up',\n}\n\nexport interface ReadoutSetpointOptions extends ReadoutBlockState {\n hintedZeros?: boolean;\n /** How the setpoint behaves relative to the value (default `always-visible`). */\n interaction?: ReadoutListItemSetpointInteraction;\n /**\n * The user is physically interacting with (adjusting) the setpoint — the\n * \"focus\" visual state. Same convention as `touching` on the instrument\n * setpoint marker (`SetpointMixin` / `svghelpers/setpoint.ts`): keeps the\n * setpoint visible and shows the lighter-blue focus triangle.\n */\n touching?: boolean;\n /** Longest value string to reserve width for; see {@link ReadoutValueOptions.spaceReserver}. */\n spaceReserver?: string;\n}\n\nexport interface ReadoutAdviceOptions extends ReadoutBlockState {\n hintedZeros?: boolean;\n /** Longest value string to reserve width for; see {@link ReadoutValueOptions.spaceReserver}. */\n spaceReserver?: string;\n}\n\nexport interface ReadoutReserverOptions {\n /** Longest expected string to reserve width for (aligns multiple rows), e.g. `\"miles\"`. */\n spaceReserver?: string;\n}\n\nexport interface ReadoutSrcOptions extends ReadoutBlockState {\n /** Longest expected source string to reserve width for; see {@link ReadoutReserverOptions.spaceReserver}. */\n spaceReserver?: string;\n}\n\nenum BlockRole {\n value = 'value',\n setpoint = 'setpoint',\n advice = 'advice',\n}\n\n/**\n * `<obc-readout-list-item>` – A compact, dense readout row for lists and tables.\n *\n * Renders a label, an optional source, an optional unit, and up to three\n * cap-height \"readout building blocks\" – advice, setpoint, and value – each a\n * fixed-width-reservable numeric segment. Dynamic data is passed as top-level\n * primitives (`value`, `setpoint`, `advice`, `label`, `unit`, `src`). Global\n * layout/format is configured via top-level props (`size`, `priority`,\n * `stacking`, `hasDegree`, `dataQuality`, `alert`, …) and per-block tweaks via one\n * object per block (`valueOptions`, `setpointOptions`, `adviceOptions`,\n * `unitOptions`, `srcOptions`).\n *\n * ### Features\n * - **Building blocks:** value, optional setpoint, and optional advice segments,\n * each cap-height-aligned and able to reserve a stable width.\n * - **Sizes:** `small`, `medium`, `large` density scales.\n * - **Stacking:** `trailing-unit`, `leading-unit`, `leading-src` placement.\n * - **Priority:** `regular`/`enhanced` colour emphasis; per-value `weight`\n * (`regular`/`semibold`/`bold`) is independent of colour.\n * - **Setpoint flip-flop:** swaps emphasis between value and setpoint as the\n * value reaches the setpoint.\n * - **Data quality:** `low-integrity`/`invalid` styling, combinable with `alert`.\n * - **Alert frame:** optional `alert` wrapper (caution/warning/alarm/level).\n * - **Clickable:** optionally rendered as a focusable button with `squared`,\n * `round-corners`, or `round` corners.\n * - **Formatting:** shared `fractionDigits`, width reservation via `maxDigits`\n * and per-segment `hintedZeros`; a `null` value renders a dash (`-`).\n *\n * ### Usage Guidelines\n * Use for dense readout rows in lists/tables. Prefer `<obc-readout>` for rich\n * multi-segment instrument layouts, source pickers, or flyout behaviour.\n *\n * @experimental This component is the pilot for the new primitives + per-block\n * options Readout API; its API may change in a future release.\n *\n * ### Slots\n * | Slot Name | Renders When | Purpose |\n * |---------------|-------------------------------|------------------------------------------|\n * | leading-icon | `hasLeadingIcon` | Icon before the label. |\n * | value-icon | `valueOptions.hasIcon` | Icon before the value. |\n * | setpoint-icon | `hasSetpoint` | Overrides the default setpoint icon. |\n * | advice-icon | `hasAdvice` | Overrides the default advice icon. |\n *\n * @slot leading-icon - Icon before the label.\n * @slot value-icon - Icon before the value.\n * @slot setpoint-icon - Overrides the default setpoint icon.\n * @slot advice-icon - Overrides the default advice icon.\n */\n@customElement('obc-readout-list-item')\nexport class ObcReadoutListItem extends LitElement {\n // Primitives (dynamic data)\n @property({type: String}) label?: string;\n @property({type: String}) unit?: string;\n @property({type: String}) src?: string;\n\n @property({type: Boolean, attribute: false}) hasValue = true;\n @property({type: Number}) value: number | null = null;\n /** Render the value as the literal \"OFF\" (e.g. equipment powered down). Affects the value only. */\n @property({type: Boolean}) off = false;\n\n @property({type: Boolean}) hasSetpoint = false;\n /** @availableWhen hasSetpoint==true */\n @property({type: Number}) setpoint?: number;\n\n @property({type: Boolean}) hasAdvice = false;\n /** @availableWhen hasAdvice==true */\n @property({type: Number}) advice?: number;\n\n // Global layout/format (each defaults via its `resolved*` getter where useful).\n @property({type: String}) size?: ReadoutListItemSize;\n @property({type: String}) priority?: ReadoutListItemPriority;\n @property({type: String}) stacking?: ReadoutListItemStacking;\n @property({type: Object}) clickable: boolean | ReadoutListItemClickable =\n false;\n @property({type: Boolean}) hasLeadingIcon = false;\n @property({type: Boolean}) hasDegree = false;\n @property({type: Boolean}) hasDegreeSpacer = false;\n @property({type: Number}) fractionDigits = 0;\n @property({type: Number}) maxDigits = 0;\n @property({type: String}) dataQuality?: ReadoutListItemDataQuality;\n // `boolean | …` (not `false | …`): the generated Angular wrapper widens a\n // literal-`false` union to `boolean`, which then won't assign back to a\n // `false`-typed element property. `wrapWithAlertFrame` treats any non-object\n // (incl. `true`) as \"no frame\", so accepting `boolean` is harmless.\n @property({type: Object}) alert: boolean | AlertFrameConfig = false;\n\n // Per-block configuration — one object per block (see the Readout*Options types).\n @property({type: Object}) valueOptions?: ReadoutValueOptions;\n @property({type: Object}) setpointOptions?: ReadoutSetpointOptions;\n @property({type: Object}) adviceOptions?: ReadoutAdviceOptions;\n @property({type: Object}) unitOptions?: ReadoutReserverOptions;\n @property({type: Object}) srcOptions?: ReadoutSrcOptions;\n\n /** Pop-up deferred-hide phase for the setpoint (see {@link updated}). */\n @state() private deferredSetpointHidePhase: 'none' | 'hiding' | 'hidden' =\n 'none';\n private deferredSetpointHideTimer?: number;\n private hasCompletedFirstUpdate = false;\n\n private get resolvedSize(): ReadoutListItemSize {\n return this.size ?? ReadoutListItemSize.small;\n }\n\n private get resolvedStacking(): ReadoutListItemStacking {\n return this.stacking ?? ReadoutListItemStacking.trailingUnit;\n }\n\n private get resolvedPriority(): ReadoutListItemPriority {\n return this.priority ?? ReadoutListItemPriority.regular;\n }\n\n private get resolvedFractionDigits(): number {\n return this.fractionDigits ?? 0;\n }\n\n private get resolvedMaxDigits(): number {\n return this.maxDigits ?? 0;\n }\n\n private get resolvedClickable(): false | Required<ReadoutListItemClickable> {\n const clickable = this.clickable;\n if (!clickable) {\n return false;\n }\n if (clickable === true) {\n return {border: ReadoutListItemBorder.squared};\n }\n return {border: clickable.border ?? ReadoutListItemBorder.squared};\n }\n\n private get isAtSetpoint(): boolean {\n if (\n !this.hasSetpoint ||\n this.value === null ||\n this.setpoint === undefined\n ) {\n return false;\n }\n // Compare what is DISPLAYED (rounded to fractionDigits), not the raw values,\n // so e.g. 29.999 and 30 at fractionDigits=0 both read \"30\" → at setpoint.\n const formatOptions = this.numericFormatOptions(this.resolvedMaxDigits);\n return (\n formatNumericValue(this.value, formatOptions) ===\n formatNumericValue(this.setpoint, formatOptions)\n );\n }\n\n private get resolvedSetpointInteraction(): ReadoutListItemSetpointInteraction {\n return (\n this.setpointOptions?.interaction ??\n ReadoutListItemSetpointInteraction.alwaysVisible\n );\n }\n\n private get isFlipFlop(): boolean {\n return (\n this.resolvedSetpointInteraction ===\n ReadoutListItemSetpointInteraction.flipFlop\n );\n }\n\n private get isPopUp(): boolean {\n return (\n this.resolvedSetpointInteraction ===\n ReadoutListItemSetpointInteraction.popUp\n );\n }\n\n private get setpointTouching(): boolean {\n return this.setpointOptions?.touching ?? false;\n }\n\n /**\n * The setpoint is rendered \"emphasised\" (primary size + SemiBold weight) when\n * it is the focus of attention: while actively adjusting (`touching`), or while\n * a flip-flop has the value away from the setpoint. Otherwise it is a secondary\n * (smaller, regular-weight) reference next to the value.\n */\n private get isSetpointEmphasized(): boolean {\n if (!this.hasSetpoint) {\n return false;\n }\n if (this.setpointTouching) {\n return true;\n }\n return this.isFlipFlop && !this.isAtSetpoint;\n }\n\n /**\n * The row's enhanced (in-command) colour state, applied uniformly to BOTH the\n * value and the setpoint — they are always either both neutral or both enhanced\n * (never a blue setpoint next to a grey value). Driven by `priority` only;\n * `valueOptions.weight` changes weight, not colour.\n */\n private get rowEnhanced(): boolean {\n return this.resolvedPriority === ReadoutListItemPriority.enhanced;\n }\n\n /** Primary value-typography size for the current density tier. */\n private get primarySize(): ObcTextboxSize {\n switch (this.resolvedSize) {\n case ReadoutListItemSize.large:\n return ObcTextboxSize.l;\n case ReadoutListItemSize.medium:\n return ObcTextboxSize.m;\n default:\n return ObcTextboxSize.s;\n }\n }\n\n /** Secondary (de-emphasised) value-typography size for the current density tier. */\n private get secondarySize(): ObcTextboxSize {\n switch (this.resolvedSize) {\n case ReadoutListItemSize.large:\n return ObcTextboxSize.s;\n case ReadoutListItemSize.medium:\n return ObcTextboxSize.s;\n default:\n return ObcTextboxSize.xs;\n }\n }\n\n private get valueSize(): ObcTextboxSize {\n // The value de-emphasises (secondary size) whenever the setpoint is the\n // focus — while actively adjusting (`touching`) or while a flip-flop holds\n // the value away from the setpoint. So \"grab the setpoint\" shrinks the value for\n // the whole adjustment (initiate + move read the same: setpoint big, value\n // small), mirroring the flip-flop convention.\n if (this.isSetpointEmphasized) {\n return this.secondarySize;\n }\n return this.primarySize;\n }\n\n private get setpointSize(): ObcTextboxSize {\n return this.isSetpointEmphasized ? this.primarySize : this.secondarySize;\n }\n\n /** Value font weight passes straight to obc-textbox; regular when unset. Colour is separate. */\n private get valueWeight(): ObcTextboxFontWeight {\n return this.valueOptions?.weight ?? ObcTextboxFontWeight.regular;\n }\n\n /** Setpoint is SemiBold only while emphasised, otherwise regular weight. */\n private get setpointWeight(): ObcTextboxFontWeight {\n return this.isSetpointEmphasized\n ? ObcTextboxFontWeight.semibold\n : ObcTextboxFontWeight.regular;\n }\n\n private numericFormatOptions(maxDigits: number): ReadoutNumericFormatOptions {\n return {\n showZeroPadding: false,\n minValueLength: maxDigits,\n fractionDigits: this.resolvedFractionDigits,\n };\n }\n\n /** Widest possible value string for width reservation (e.g. `\"000.0\"`). */\n private get reserverText(): string {\n const maxDigits = this.resolvedMaxDigits;\n if (maxDigits <= 0) {\n return '';\n }\n const fractionDigits = this.resolvedFractionDigits;\n const integer = '0'.repeat(Math.max(maxDigits, 1));\n return fractionDigits > 0\n ? `${integer}.${'0'.repeat(fractionDigits)}`\n : integer;\n }\n\n /**\n * Effective width reserver for a numeric block: the wider of the explicit\n * `spaceReserver` and the `maxDigits`/`fractionDigits`-derived reserve, so an\n * explicit reserver can never reserve *less* than the formatted value needs.\n * Under tabular-nums the rendered width is proportional to character count, so\n * \"wider\" compares string length.\n */\n private widerReserver(explicit: string | undefined, derived: string): string {\n if (!explicit) {\n return derived;\n }\n if (!derived) {\n return explicit;\n }\n return explicit.length >= derived.length ? explicit : derived;\n }\n\n /** classMap fragment for a block / source carrying per-block data quality. */\n private dataQualityClasses(\n dataQuality: ReadoutListItemDataQuality | undefined\n ): Record<string, boolean> {\n return {\n 'data-low-integrity':\n dataQuality === ReadoutListItemDataQuality.lowIntegrity,\n 'data-invalid': dataQuality === ReadoutListItemDataQuality.invalid,\n };\n }\n\n private renderIcon(role: BlockRole): TemplateResult | typeof nothing {\n if (role === BlockRole.value) {\n if (!this.valueOptions?.hasIcon) {\n return nothing;\n }\n return html`<span class=\"block-icon\" aria-hidden=\"true\"\n ><slot name=\"value-icon\"></slot\n ></span>`;\n }\n if (role === BlockRole.setpoint) {\n return html`<span class=\"block-icon\" aria-hidden=\"true\">\n <slot name=\"setpoint-icon\"><obi-input-right></obi-input-right></slot>\n </span>`;\n }\n return html`<span class=\"block-icon\" aria-hidden=\"true\">\n <slot name=\"advice-icon\"\n ><obi-notification-advice></obi-notification-advice\n ></slot>\n </span>`;\n }\n\n private renderBlock(config: {\n role: BlockRole;\n value: number | null | undefined;\n size: ObcTextboxSize;\n enhanced: boolean;\n weight: ObcTextboxFontWeight;\n hintedZeros: boolean;\n spaceReserver?: string;\n off?: boolean;\n hasDegree?: boolean;\n extraClasses?: Record<string, boolean>;\n dataQuality?: ReadoutListItemDataQuality;\n alert?: false | AlertFrameConfig;\n }): TemplateResult {\n const formatOptions = this.numericFormatOptions(this.resolvedMaxDigits);\n const valueForFormat = config.value ?? undefined;\n const text = config.off\n ? 'OFF'\n : formatNumericValue(valueForFormat, formatOptions);\n // `maxDigits` reserves INTEGER digits only (see `reserverText`), but\n // getHintZeros measures total digits (it subtracts just the decimal point),\n // so pad its target by `fractionDigits` to hint the right number of integer\n // zeros (e.g. value 1.2, maxDigits 3, fractionDigits 1 → \"001.2\", not \"01.2\").\n const hinted =\n config.off || !config.hintedZeros\n ? ''\n : getHintZeros(valueForFormat, {\n ...formatOptions,\n minValueLength:\n formatOptions.minValueLength + formatOptions.fractionDigits,\n });\n const reserver = this.widerReserver(\n config.spaceReserver,\n this.reserverText\n );\n\n const block = html`\n <div\n class=${classMap({\n block: true,\n [`block-${config.role}`]: true,\n 'tone-enhanced': config.enhanced,\n ...this.dataQualityClasses(config.dataQuality),\n ...(config.extraClasses ?? {}),\n })}\n part=\"block block-${config.role}\"\n >\n ${this.renderIcon(config.role)}\n <span class=\"block-content\">\n <obc-textbox\n class=\"block-text\"\n .size=${config.size}\n .fontWeight=${config.weight}\n .tabularNums=${true}\n >\n ${hinted\n ? html`<span class=\"hinted-zero\" aria-hidden=\"true\"\n >${hinted}</span\n >`\n : nothing}${text}\n ${reserver ? html`<span slot=\"length\">${reserver}</span>` : nothing}\n </obc-textbox>\n ${config.hasDegree\n ? this.renderDegreeGlyph(config.size, {inherit: true})\n : nothing}\n </span>\n </div>\n `;\n return wrapWithAlertFrame(config.alert ?? false, block);\n }\n\n /**\n * A cap-height `°` column whose width scales with the value size. Used after\n * the value (as the value↔unit boundary, via {@link renderValueUnitGap}) and\n * inside the setpoint / advice blocks. `inherit` makes the glyph take the\n * surrounding block's colour (setpoint/advice); otherwise it uses the value\n * colour, optionally `enhanced`.\n */\n private renderDegreeGlyph(\n size: ObcTextboxSize,\n opts: {enhanced?: boolean; inherit?: boolean} = {}\n ): TemplateResult {\n return html`\n <span\n class=${classMap({\n 'degree-column': true,\n [`degree-${size}`]: true,\n 'tone-enhanced': !opts.inherit && Boolean(opts.enhanced),\n 'degree-inherit': Boolean(opts.inherit),\n })}\n part=\"degree\"\n >\n <obc-textbox class=\"degree-glyph\" .size=${size} alignment=\"center\"\n >°</obc-textbox\n >\n </span>\n `;\n }\n\n /**\n * The gap rendered between the value digits and the unit.\n *\n * - `hasDegree`: a cap-height `°` column whose width scales with the value\n * size (the `°` replaces the default gap).\n * - otherwise: the default 2px gap (only when a trailing unit follows).\n *\n * `hasDegreeSpacer` deliberately does NOT add anything here — it keeps the 2px\n * gap and instead widens the unit column via {@link renderDegreeSpacer} (a\n * spacer AFTER the unit). That way a non-degree row's value digits stay\n * aligned with degree rows (degree column width = spacer width + 2px gap)\n * while its unit shifts left. Mirrors Figma `1:2920` (spacer) / `1:2970`\n * (degree).\n *\n * TODO(designer): cross-size alignment is deferred. Degree rows of different\n * value sizes have different `°` column widths (6/8/12px), so their value digit\n * edges stagger by `degree-width`. For degree rows of mixed sizes you cannot\n * align the value digit edges AND keep the unit column aligned — resolving it\n * needs a design decision (a constant degree reserve, which widens the smaller\n * rows' `°`, OR pinning the value edge and letting the unit column stagger).\n */\n private renderValueUnitGap(): TemplateResult | typeof nothing {\n if (!this.hasValue) {\n return nothing;\n }\n const hasTrailingUnit =\n Boolean(this.unit) &&\n this.resolvedStacking !== ReadoutListItemStacking.leadingUnit;\n\n if ((this.hasDegree ?? false) && !this.off) {\n return this.renderDegreeGlyph(this.valueSize, {\n enhanced: this.rowEnhanced,\n });\n }\n if (hasTrailingUnit) {\n return html`<span class=\"value-unit-gap\" aria-hidden=\"true\"></span>`;\n }\n return nothing;\n }\n\n /**\n * A spacer rendered AFTER the unit when `hasDegreeSpacer` is set on a\n * non-degree row. Its width (`degree-compensation-padding`) = the degree\n * column width minus the 2px gap, so the row's value digits align with degree\n * rows in the same column while its unit shifts left. See\n * {@link renderValueUnitGap}.\n */\n private renderDegreeSpacer(): TemplateResult | typeof nothing {\n const hasDegree = this.hasDegree ?? false;\n const hasDegreeSpacer = this.hasDegreeSpacer ?? false;\n if (hasDegree || !hasDegreeSpacer) {\n return nothing;\n }\n return html`<span\n class=\"degree-spacer\"\n part=\"degree-spacer\"\n aria-hidden=\"true\"\n ></span>`;\n }\n\n private renderTextbox(\n role: 'label' | 'unit' | 'source',\n text: string,\n reserver?: string,\n state?: ReadoutBlockState\n ): TemplateResult {\n const weight =\n role === 'label'\n ? ObcTextboxFontWeight.semibold\n : ObcTextboxFontWeight.regular;\n const box = html`\n <obc-textbox\n class=${classMap({\n [role]: true,\n ...this.dataQualityClasses(state?.dataQuality),\n })}\n part=${role}\n .size=${ObcTextboxSize.xs}\n .fontWeight=${weight}\n alignment=\"left\"\n >\n ${text}\n ${reserver ? html`<span slot=\"length\">${reserver}</span>` : nothing}\n </obc-textbox>\n `;\n return wrapWithAlertFrame(state?.alert ?? false, box);\n }\n\n private renderValueCluster(): TemplateResult {\n const popUpAtSetpoint =\n this.isPopUp && this.isAtSetpoint && !this.setpointTouching;\n const setpointExtraClasses = {\n 'is-hiding':\n popUpAtSetpoint && this.deferredSetpointHidePhase === 'hiding',\n 'is-hidden':\n popUpAtSetpoint && this.deferredSetpointHidePhase === 'hidden',\n touching: this.setpointTouching,\n };\n return html`\n <div class=\"value-cluster\" part=\"value-cluster\">\n ${this.hasAdvice\n ? this.renderBlock({\n role: BlockRole.advice,\n value: this.advice,\n size: this.secondarySize,\n enhanced: false,\n weight: ObcTextboxFontWeight.regular,\n hintedZeros: this.adviceOptions?.hintedZeros ?? false,\n spaceReserver: this.adviceOptions?.spaceReserver,\n hasDegree: this.hasDegree ?? false,\n dataQuality: this.adviceOptions?.dataQuality,\n alert: this.adviceOptions?.alert,\n })\n : nothing}\n ${this.hasSetpoint\n ? this.renderBlock({\n role: BlockRole.setpoint,\n value: this.setpoint,\n size: this.setpointSize,\n // Value and setpoint share the enhanced colour state (both neutral\n // or both enhanced); the setpoint is bold only while emphasised.\n enhanced: this.rowEnhanced,\n weight: this.setpointWeight,\n hintedZeros: this.setpointOptions?.hintedZeros ?? false,\n spaceReserver: this.setpointOptions?.spaceReserver,\n hasDegree: this.hasDegree ?? false,\n extraClasses: setpointExtraClasses,\n dataQuality: this.setpointOptions?.dataQuality,\n alert: this.setpointOptions?.alert,\n })\n : nothing}\n ${this.hasValue\n ? this.renderBlock({\n role: BlockRole.value,\n value: this.value,\n size: this.valueSize,\n enhanced: this.rowEnhanced,\n weight: this.valueWeight,\n hintedZeros: this.valueOptions?.hintedZeros ?? false,\n spaceReserver: this.valueOptions?.spaceReserver,\n off: this.off,\n dataQuality: this.valueOptions?.dataQuality,\n alert: this.valueOptions?.alert,\n })\n : nothing}\n </div>\n `;\n }\n\n private renderLabelContainer(): TemplateResult {\n const stacking = this.resolvedStacking;\n const showLeadingUnit =\n stacking === ReadoutListItemStacking.leadingUnit && Boolean(this.unit);\n const showLeadingSrc =\n stacking === ReadoutListItemStacking.leadingSrc && Boolean(this.src);\n\n return html`\n <div class=\"label-container\" part=\"label-container\">\n ${this.hasLeadingIcon\n ? html`<span class=\"leading-icon\" aria-hidden=\"true\"\n ><slot name=\"leading-icon\"></slot\n ></span>`\n : nothing}\n <div class=\"label-stack\" part=\"label-stack\">\n ${this.label ? this.renderTextbox('label', this.label) : nothing}\n ${showLeadingUnit\n ? this.renderTextbox(\n 'unit',\n this.unit ?? '',\n this.unitOptions?.spaceReserver\n )\n : nothing}\n ${showLeadingSrc\n ? this.renderTextbox(\n 'source',\n this.src ?? '',\n this.srcOptions?.spaceReserver,\n this.srcOptions\n )\n : nothing}\n </div>\n </div>\n `;\n }\n\n private renderTrailingUnit(): TemplateResult | typeof nothing {\n if (\n this.resolvedStacking === ReadoutListItemStacking.leadingUnit ||\n !this.unit\n ) {\n return nothing;\n }\n return this.renderTextbox(\n 'unit',\n this.unit,\n this.unitOptions?.spaceReserver\n );\n }\n\n private renderTrailingSource(): TemplateResult | typeof nothing {\n if (\n this.resolvedStacking === ReadoutListItemStacking.leadingSrc ||\n !this.src\n ) {\n return nothing;\n }\n return html`\n <div class=\"divider\" part=\"divider\" aria-hidden=\"true\"></div>\n ${this.renderTextbox(\n 'source',\n this.src,\n this.srcOptions?.spaceReserver,\n this.srcOptions\n )}\n `;\n }\n\n private renderContent(): TemplateResult {\n return html`\n <div class=\"content\" part=\"content\">\n ${this.renderLabelContainer()}\n <div class=\"value-area\" part=\"value-area\">\n ${this.renderValueCluster()} ${this.renderValueUnitGap()}\n <div class=\"unit-area\" part=\"unit-area\">\n ${this.renderTrailingUnit()} ${this.renderDegreeSpacer()}\n </div>\n </div>\n ${this.renderTrailingSource()}\n </div>\n `;\n }\n\n override updated(changed: Map<string, unknown>): void {\n super.updated(changed);\n\n const firstUpdate = !this.hasCompletedFirstUpdate;\n this.hasCompletedFirstUpdate = true;\n\n // Pop-up: hide the setpoint shortly after the value reaches it. `touching`\n // and the non-pop-up modes keep the setpoint visible.\n if (!this.isPopUp || this.setpointTouching) {\n this.clearDeferredSetpointHide();\n return;\n }\n\n const shouldHide = this.hasSetpoint && this.isAtSetpoint;\n\n if (firstUpdate) {\n // Settle to the resting state on mount without animating.\n this.deferredSetpointHidePhase = shouldHide ? 'hidden' : 'none';\n return;\n }\n\n if (!shouldHide) {\n this.clearDeferredSetpointHide();\n return;\n }\n\n if (this.deferredSetpointHidePhase !== 'none') {\n return;\n }\n\n this.deferredSetpointHidePhase = 'hiding';\n window.clearTimeout(this.deferredSetpointHideTimer);\n this.deferredSetpointHideTimer = window.setTimeout(() => {\n this.deferredSetpointHidePhase = 'hidden';\n this.deferredSetpointHideTimer = undefined;\n }, 100);\n }\n\n private clearDeferredSetpointHide(): void {\n if (this.deferredSetpointHidePhase !== 'none') {\n this.deferredSetpointHidePhase = 'none';\n }\n window.clearTimeout(this.deferredSetpointHideTimer);\n this.deferredSetpointHideTimer = undefined;\n }\n\n override disconnectedCallback(): void {\n window.clearTimeout(this.deferredSetpointHideTimer);\n this.deferredSetpointHideTimer = undefined;\n // Settle a mid-flight hide to its end state. Without this, disconnecting\n // during the 100ms window leaves the phase stuck at 'hiding' (the timer that\n // would advance it to 'hidden' is gone), so a later reconnect never resolves.\n if (this.deferredSetpointHidePhase === 'hiding') {\n this.deferredSetpointHidePhase = 'hidden';\n }\n super.disconnectedCallback();\n }\n\n override render() {\n const clickable = this.resolvedClickable;\n const dataQuality = this.dataQuality;\n const classes = classMap({\n root: true,\n [`size-${this.resolvedSize}`]: true,\n [`stacking-${this.resolvedStacking}`]: true,\n [`priority-${this.resolvedPriority}`]: true,\n 'data-low-integrity':\n dataQuality === ReadoutListItemDataQuality.lowIntegrity,\n 'data-invalid': dataQuality === ReadoutListItemDataQuality.invalid,\n 'flip-flop': this.isFlipFlop,\n clickable: Boolean(clickable),\n [`border-${clickable ? clickable.border : ReadoutListItemBorder.squared}`]:\n Boolean(clickable),\n });\n\n const surface = html`<div class=\"surface\" part=\"surface\">\n ${this.renderContent()}\n </div>`;\n\n // No `aria-label` here: it would override the button's accessible name and\n // hide the dynamic readout text (value / unit / source) from screen readers.\n // The visible content (label + value + unit + source) already forms a\n // complete accessible name; icons/reservers are aria-hidden / visibility-clipped.\n const root = clickable\n ? html`<button class=${classes} part=\"root\" type=\"button\">\n ${surface}\n </button>`\n : html`<div class=${classes} part=\"root\">${surface}</div>`;\n\n // `alert` accepts `boolean` (so the generated Angular wrapper's widened\n // `boolean` type assigns cleanly), but `wrapWithAlertFrame` ignores non-object\n // truthy values. Normalise `true` → a default frame `{}` (like `clickable:\n // true`) so it isn't a silent no-op; `false`/object pass through.\n // fullWidth=true: the row-level alert frame stretches to the readout's full\n // width (PR #1001) rather than hugging it. Per-block / src alert frames keep\n // the default (hug) so they stay inline.\n const alert = this.alert === true ? {} : this.alert;\n return wrapWithAlertFrame(alert, root, true);\n }\n\n static override styles = unsafeCSS(componentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-readout-list-item': ObcReadoutListItem;\n }\n}\n"],"names":["ReadoutListItemSize","ReadoutListItemStacking","ReadoutListItemPriority","ReadoutListItemDataQuality","ReadoutListItemBorder","ReadoutListItemSetpointInteraction","state"],"mappings":";;;;;;;;;;;;;;;;;;;;AAiCO,IAAK,wCAAAA,yBAAL;AACLA,uBAAA,OAAA,IAAQ;AACRA,uBAAA,QAAA,IAAS;AACTA,uBAAA,OAAA,IAAQ;AAHE,SAAAA;AAAA,GAAA,uBAAA,CAAA,CAAA;AAYL,IAAK,4CAAAC,6BAAL;AACLA,2BAAA,cAAA,IAAe;AACfA,2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