Interface IndicatorInputPresentation

How a settings form presents an input. The calculation never reads these: a hidden or inactive input keeps its value, and calc still receives it.

interface IndicatorInputPresentation {
    activeWhen?: IndicatorInputCondition;
    inline?: string;
    visibleWhen?: IndicatorInputCondition;
}

Hierarchy (View Summary)

Properties

The input can be edited only while this holds; otherwise the form shows it disabled, with its value readable and a reason naming what it depends on. Also inactive while an input the condition reads is hidden or inactive, because a setting nobody can change cannot be what enables another.

inline?: string

Consecutive inputs sharing this id sit on one row, the first one's label leading it: a length beside its source, a switch beside the value and colour it turns on. A multi-line text input always takes a row of its own.

The input is shown only while this holds; otherwise it leaves the form and the tab order, and any draft in it is kept for when it returns. Also hidden while an input the condition reads is hidden.