Binds trigger/content/anchor DOM for focus, outside interaction, and positioning.
Closes and restores focus when configured by the binding.
Optionaldetails: ChangeDetails<OpenChangeReason>Releases owned listeners, timers, observers, focus scopes, and subscriptions.
Returns the current immutable snapshot, including after destruction.
Handles Arrow keys, Home/End, typeahead, Enter/Space, Escape, and submenu keys.
Removes a previously registered listener.
Registers a listener and returns an idempotent unsubscribe function.
Registers a listener that is automatically removed after its first call.
Opens and focuses the first enabled item by default.
Optionaldetails: ChangeDetails<OpenChangeReason>Registers dynamic item metadata and optional focusable DOM.
Optionalelement: HTMLElementConnects a registered submenu trigger to a child Menu controller.
Activates an enabled item with a cancellable lifecycle event.
Optionaldetails: ChangeDetails<MenuSelectReason>Sets the active item for pointer integrations without selecting it.
Subscribes to future distinct snapshots without synchronously invoking the listener.
Requests the opposite open state.
Optionaldetails: ChangeDetails<OpenChangeReason>
Shared Menu controller reused by dropdown and context-menu factories.