Expand description
Dedicated search view for the library sidebar.
The search form is a persistent Revealer that sits above the
content_stack. When search is active the form stays visible and
results render in the normal masonry grid below it. This avoids
the โsearch bar disappearsโ problem while keeping a single grid
renderer.
Structsยง
- Search
View Parts - UI widgets for the dedicated search form.
Constantsยง
- MODE_
LABELS ๐
Functionsยง
- available_
modes ๐ - build_
action_ ๐row - build_
filter_ ๐panel - Assemble all filter groups into a revealer.
- build_
search_ ๐bar - build_
search_ view - Build the search form widget tree.
- clear_
all_ filters - Reset all filter widgets to their default (empty) state.
- collect_
filters - Collect all filter widget values into a
MetadataSearchFilters. - connect_
filter_ ๐toggle - Wire the toggle button to show/hide the filters revealer.
- current_
mode ๐ - normalise_
iso_ date - Normalise a user-entered date to ISO 8601 UTC. Accepts bare YYYY-MM-DD or full RFC 3339.
- opt_
string - Convert a non-empty trimmed string to
Some, otherwiseNone. - opt_
true ๐ - select_
tag - Select
tag_idin the Tag dropdown, if it is listed. - selected_
mode - selected_
tag_ ๐id - set_
available_ modes - set_
available_ tags - Fill the Tag dropdown from the serverโs tags, keeping the current choice if it still exists.
- set_
filter_ features - stack_
groups ๐ - wrap_
in_ ๐scrolled_ revealer