Skip to content

ui/blueskylogging/logVariableSearch

Classes

VariableSearchIndex

Defined in: ui/blueskylogging/logVariableSearch.ts:18

Constructors

Constructor
new VariableSearchIndex(makeDeps, onUpdated): VariableSearchIndex;

Defined in: ui/blueskylogging/logVariableSearch.ts:31

Parameters
makeDeps

() => VariableCheckerDeps

Supplies the LSVAR round-trip dependencies.

onUpdated

() => void

Called whenever new names enter the index (so an open suggestion list can refresh).

Returns

VariableSearchIndex

Methods

seed()
seed(): void;

Defined in: ui/blueskylogging/logVariableSearch.ts:37

Discover the root parents (called when the dialog opens).

Returns

void

clear()
clear(): void;

Defined in: ui/blueskylogging/logVariableSearch.ts:44

Forget everything (e.g. after connecting to a different server).

Returns

void

search(query): string[];

Defined in: ui/blueskylogging/logVariableSearch.ts:83

Names matching query (case-insensitive), prefix matches first — both on the full dotted name and on the last component, so "mass" finds traf.perf.mass once traf.perf is indexed. Also kicks off a lazy drill into "a.b" when the query looks like "a.b." or "a.b.c", so deeper names stream into the index (onUpdated re-runs the search).

Parameters
query

string

Returns

string[]


VariableSuggestDropdown

Defined in: ui/blueskylogging/logVariableSearch.ts:118

Suggestion dropdown attached to the custom-variable input: filters the index as the user types, supports ArrowUp/Down + Enter + click to pick, and Escape to dismiss (without closing the surrounding modal).

Constructors

Constructor
new VariableSuggestDropdown(
   input, 
   listEl, 
   index, 
   onPick
): VariableSuggestDropdown;

Defined in: ui/blueskylogging/logVariableSearch.ts:128

Parameters
input

HTMLInputElement

listEl

HTMLElement

index

VariableSearchIndex

onPick

(name) => void

Returns

VariableSuggestDropdown

Methods

refresh()
refresh(): void;

Defined in: ui/blueskylogging/logVariableSearch.ts:157

Re-run the search for the current input value (also used by onUpdated).

Returns

void

isOpen()
isOpen(): boolean;

Defined in: ui/blueskylogging/logVariableSearch.ts:164

Returns

boolean

close()
close(): void;

Defined in: ui/blueskylogging/logVariableSearch.ts:168

Returns

void