API reference
@salmonui/query-builder
28 exported symbols: 1 component, 3 functions, 16 interfaces, 7 types and 1 constant. Each name links its page with the signature, docs and members. Names re-exported from another entry point are listed there, linked below.
import { … } from '@salmonui/query-builder';Components
Functions
filterRowsThe rows of rows that pass value.isQueryGroupWhether a node is a group (it has filters and no field).operatorsForThe built-in operators of a field type (Data Grid filter operator names), plus in / notIn for string and number fields.
Interfaces
FilterRowsOptionsQueryBuilderApiQueryBuilderBeforeChangeEventonBeforeChange event: cancellable.QueryBuilderButtonsQueryBuilderChangeDetailsQueryBuilderDragEventQueryBuilderDropEventonDrop event: cancellable.QueryBuilderEditorPropsSettings forwarded to the built-in editors.QueryBuilderPropsQueryFieldQueryGroupHeaderContextQueryOperatorA custom operator: labels and types here; evaluation through filterRows / the Data Grid filter module, SQL / Mongo through the converter hooks.QueryRuleRenderContextQueryValueEditorContext
Types
QueryBuilderActionQueryBuilderLocaleKeyQueryBuilderLocaleTextEvery key, plus operator<Name> labels of custom operators and validation<Rule> messages.QueryFieldTypeValue type of a field; selects the default operators and value editor.QueryFieldValueA fixed value of a field (values): a primitive, or a value with its label.
Constants
Re-exported entry points
@salmonui/query-builder/sql4 symbols: 2 interfaces and 2 types