import * as _angular_core from '@angular/core'; import { TemplateRef } from '@angular/core'; /** * `` — pure read-only display of a value (text, hyperlink, or a custom template). * * Presentational proxy with no state of its own: the parent form control (``, * ``, …) computes the display string + resolved selection and passes them in; * `` only decides WHICH template renders. It is the single rendering path for every * "viewed" state across the form controls (DETAIL `viewed=true` and the `viewed='inline'` * text face), so a custom `valueTemplate` (e.g. `sdViewDef` / `#sdValue`) looks identical in * both. OnPush — re-renders only when an input signal changes. */ declare class SdView { /** Optional label rendered above the value (omitted when a parent supplies its own label). */ label: _angular_core.InputSignal; /** Raw selected value — NOT rendered directly; only exposed in the `valueTemplate` context as `value`. */ value: _angular_core.InputSignal; /** * Display string — what shows when no custom value template is bound. * why: `input.required()` forces the parent to bind `[display]` (compile error otherwise), * so the component never has to guess a fallback string from `value`. */ display: _angular_core.InputSignal; /** When set, the value renders as a link (``) instead of plain text. */ hyperlink: _angular_core.InputSignal; /** Label template handed down by a parent control (wins over `label` + `#sdLabel`). */ labelTemplate: _angular_core.InputSignal | undefined>; /** Value template handed down by a parent control (wins over `display` + `#sdValue`). */ valueTemplate: _angular_core.InputSignal | undefined>; /** * Resolved selected-item objects passed by the parent (e.g. ``). * why: the parent owns option/lazy resolution — `` is a proxy and must NOT rebuild * the list. Exposed in the value-template context so a "head +N" template can read `displayField`. */ selectedItems: _angular_core.InputSignal; /** `#sdLabel` template projected directly into `` (fallback when no `[labelTemplate]`). */ contentLabelTemplate: _angular_core.Signal | undefined>; /** `#sdValue` template projected directly into `` (fallback when no `[valueTemplate]`). */ contentValueTemplate: _angular_core.Signal | undefined>; /** * Effective label template: input from parent wins, else the projected `#sdLabel`. * why: `computed` caches the choice so the template's `@if (activeLabelTemplate())` doesn't * re-evaluate two content-child reads on every change-detection pass. */ activeLabelTemplate: _angular_core.Signal | undefined>; /** Effective value template: input from parent wins, else the projected `#sdValue`. Cached for the same reason. */ activeValueTemplate: _angular_core.Signal | undefined>; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } export { SdView };