API Reference LiveFilter v#0.1.8

Copy Markdown View Source

Modules

Composable filter UI library for Phoenix LiveView.

LiveComponent that renders the filter bar UI.

Dropdown async select component with server-side search.

Boolean dropdown component with three options: Any, Yes, No.

Two-month calendar picker for custom date range selection.

Date range dropdown component with presets.

Datetime picker component with calendar and time selection.

Shared helper functions and icons for LiveFilter components.

Multi-select dropdown component with search support.

Radio group dropdown component supporting pills and radio button styles.

Dropdown select component with search support.

Date utility functions for LiveFilter. Handles date range calculations for presets and custom ranges.

Represents an active filter instance with a unique ID, field, operator, value, and config reference.

Defines a filterable field — its type, allowed operators, label, and options.

Human-readable labels and per-type operator option lists for UI display.

Shared helpers for resolving and formatting filter options.

Pagination state with PostgREST-compatible limit/offset.

LiveComponent that renders pagination controls.

Converts PostgREST URL query params into a list of Filter structs, matched against a provided filter config list.

Converts a list of active Filter structs into a PostgREST-compatible query param map.

Validates parsed filters for operator validity, value length limits, and list size limits.

Thin query builder that converts LiveFilter structs to PgRest AST maps and delegates to PgRest.Filter.apply_all/2.

Theme definitions for LiveFilter command-style filter chips.

Type definitions for LiveFilter.