Mixins / foldkit-mixins-ui
ComboboxSlots
const · packages/mixins-ui/src/combobox/slots.ts:27
const ComboboxSlots: Slots.Contract<{ readonly wrapper: Slot.UnnamedSlot<Capability.Capability<"Container", readonly [Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>]>, readonly Slot.EventName[], readonly Slot.AttributeName[], readonly Slot.RequirementName[], boolean>; readonly inputWrapper: Slot.UnnamedSlot<Capability.Capability<"Container", readonly [Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>]>, readonly Slot.EventName[], readonly Slot.AttributeName[], readonly Slot.RequirementName[], boolean>; readonly input: Slot.UnnamedSlot<Capability.Capability<"TextInput", readonly [Capability.Capability<"Focusable", readonly [Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>]>]>, readonly [Event.EventToken<"input">, Event.EventToken<"keydown">, Event.EventToken<"blur">, Event.EventToken<"focus">], readonly [Attr.AttrToken<"role">, Attr.AttrToken<"aria-expanded">, Attr.AttrToken<"disabled">, Attr.AttrToken<"aria-disabled">], readonly Slot.RequirementName[], boolean>; readonly toggleButton: Slot.UnnamedSlot<Capability.Capability<"Interactive", readonly [Capability.Capability<"Base", readonly []>]>, readonly [Event.EventToken<"click">], readonly [Attr.AttrToken<"aria-expanded">, Attr.AttrToken<"disabled">, Attr.AttrToken<"aria-disabled">], readonly Slot.RequirementName[], boolean>; readonly backdrop: Slot.UnnamedSlot<Capability.Capability<"Container", readonly [Capability.Cap …;Combobox is a nested Submodel: an input/inputWrapper pair with an
optional toggleButton, plus a backdrop/items group with 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
formName: generated markup with no styling surface, passed through for
the draw to place.
The input owns input/keydown/blur (and focus with openOnFocus);
an item owns click while interactive; the toggle owns click while
enabled. A Behavior adding its own handler to one of those is a
conflict, not a second silent owner.
From chips on, the slots are this package's: the chosen values as
chips in the field (the chips view input), the clear button
(clearContent), the panel shown in the list's place while there are no
items (empty), and an option's parts, which parts draws as Listbox's
does, the typed text marked in its label (match) and what a row holds
after its label (itemTrailing).
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.