Currently keyboard-highlighted index (-1 for none)
Whether the filter popover is open
Whether a search is currently loading
Whether the suggest dropdown is visible
Maximum number of preview results to display
Minimum query length before preview results are shown
ReadonlyMinAvailable min relevance presets
Min relevance percentage (0-100) for filtering preview results
Preview search results to display
Promo accept — carries the current query so the host can hand it off.
Label for the promo's accept action.
Promo dismissed — the host should persist this and stop showing it.
Promo copy (one sentence). Required when ShowPromo is true.
Current query text — used to determine whether to show recent vs preview
Recently opened records (host-loaded, e.g. from SearchService .GetRecentlyOpenedRecords). Rendered as a "Recently Opened" section in the idle/empty state so users can jump straight back to a record they just had open — the complement to Recent Searches (queries).
Emitted when the user selects a recently opened record
Recent search entries to show when query is empty/short
Emitted when the user selects a recent search
Emitted when the user selects a preview result
Emitted when the user clicks "See all N results"
Optional promo row pinned to the dropdown's bottom edge — a host-supplied nudge (e.g. Explorer advertising its command palette). The component is deliberately ignorant of WHAT is being promoted; the host provides the copy and handles both outcomes.
Whether to show the recent searches section
Total count of results for the current query (may exceed PreviewResults.length)
Number of keyboard-navigable rows currently visible (recents + recently opened + preview results + see-all). Public so the composite's Tab handling knows when the highlight has walked off the end of the list.
Whether to show preview results section
Whether to show the recently-opened-records section (idle state only)
Whether to show recent searches section
Whether to show the "See all N results" footer
Visible preview results filtered by min relevance, sorted by score descending, capped at MaxPreviewResults
Visible recently opened records (capped at 3)
Visible recent searches (capped at 5)
Format a relevance option for display
Format a score value as a percentage
Get the CSS class for a score value: high (green), medium (amber), low (gray)
Check if an item at the given index is highlighted
Whether a given option is the currently selected min relevance
Move keyboard highlight down
Move keyboard highlight up
A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
"Clear" on recent searches — click-driven so keyboard Enter/Space work; the template's mousedown-preventDefault keeps the input from blurring.
Promo accept — fired on click so keyboard Enter/Space work too; the template's mousedown-preventDefault keeps the input from blurring first.
Promo dismiss.
Handle clicking "See all"
Reset the highlighted index
Select the currently highlighted item
Set the min relevance and persist
Toggle the filter popover
Emitted when the user clicks "Clear" on recent searches