The application's own Listbox: base for every use, presets chosen at a
use with preset, and the call over both. mixins concatenate in that
order and words merge word by word; any other option given at the call
replaces the preset's.
An option's content in the slots Listbox and Combobox share: its icon,
its label (the stretches matching query marked, where a match slot is
given) or content of its own in the label's place, its description, what
it holds after the label where the widget has an itemTrailing slot, and
the check the chosen row shows.
What moves the open panel's highlight and indicator: on its rows,
the chosen row is measured (--fk-popup-chosen-*) and one highlight
follows the pointer to the nearest row (--fk-popup-hover-*),
and to the row the keys mark (data-active) while the pointer is away.
Pass them beside the style; until they run, each row marks itself.
Listbox is a nested Submodel: one button/backdrop/items group plus
an item per entry (and group/heading/separator where the caller
groups), so the resolver runs once per bundle and each base attribute
passes through by identity. hiddenInputs are the form inputs submitted
under name: generated markup with no styling surface, passed through
for the draw to place.
The button owns click (and pointerdown/keydown while enabled); an
item owns click while interactive. A Behavior adding its own handler to
one of those is a conflict, not a second silent owner. Disabled buttons
and items publish no click, so the contract still lists it as allowed.
The slots from itemContent on are the parts of a select drawn over the
listbox, which parts draws: an option's icon, label, description, what
it holds after the label and its check, and the trigger's value (or
placeholder) and chevron. root and clear are Listbox.view's: the
element around the listbox, and the button that empties the choice.
A module of its own, which the adapter re-exports: the Behaviors that
attach to these slots are files of their own and read it at load.
What draws the open panel's scrollBar over its scroll (ScrollBars),
in place of the browser's bar, on a pointer that can hover. Pass it beside
the style when the listbox scrolls (itemsScrollAttributes); without a
scroll there is no bar.
The parts of a select over this listbox, in its slots: option is an
item's content (itemToConfig), and trigger the button's
(buttonContent): what is chosen, or the placeholder, then the chevron.
One chosen row shows its icon and label, several their labels joined,
none the placeholder, muted; shown draws what it holds in place of that.
Pass the mixins the listbox's toView gets.
A Listbox: a button showing the choice that opens a list of rows, the
chosen ones marked; with the recipe, a custom select. The value is the
application's: it is passed at every draw, and what the reader chooses is
reported by the state (Bundles.Listbox's ChoiceChange) for the
application to fold through the same choice.