import { Component, input } from '@angular/core'; /** Molecule: one key/value row inside a CIBG Huisstijl **Datablock** (see `data-block.component.ts`) — the row primitive of the datablock/`controlestap` data summary. Used on a `
` so the `
`'s direct child is a native element (the HTML5.1 `dl > div > dt + dd` grouping), which keeps the definition list axe-clean — a bare custom element between `
` and its `
/
` trips axe's definition-list rule regardless of `display:contents`. The host is the Bootstrap `.row`; `dt.col-md-4`/`dd.col-md-8` give the label/value widths. Wrap several in a `
` (a ``). Project custom content (e.g. a badge) into the `
` via ``. */ @Component({ selector: 'div[app-data-row]', host: { class: 'row' }, template: `
{{ key() }}
{{ value() }}
`, }) export class DataRowComponent { key = input.required(); value = input(''); }