FilterStepperComponent
Guided step-by-step UI for constructing a single filter expression.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FilterStepperComponent():
FilterStepperComponent
Returns
Section titled “Returns”FilterStepperComponent
Properties
Section titled “Properties”addLabel
Section titled “addLabel”addLabel:
InputSignal<string>
availableOperators
Section titled “availableOperators”
readonlyavailableOperators:Signal<FilterOperator[]>
Operators available for the selected field type.
boolFalseLabel
Section titled “boolFalseLabel”boolFalseLabel:
InputSignal<string>
boolTrueLabel
Section titled “boolTrueLabel”boolTrueLabel:
InputSignal<string>
canAdd
Section titled “canAdd”
readonlycanAdd:Signal<boolean>
Enable the add button when all steps are filled.
declarations
Section titled “declarations”declarations:
InputSignal<Decl[]>
The available field declarations.
exprAdd
Section titled “exprAdd”exprAdd:
OutputEmitterRef<Expr>
Emitted when the user completes all steps and adds a filter.
fieldLabel
Section titled “fieldLabel”fieldLabel:
InputSignal<string>
fields
Section titled “fields”
readonlyfields:Signal<Decl[]>
Only ident declarations (not functions).
initialField
Section titled “initialField”initialField:
InputSignal<string|null>
Optional field name to pre-select.
operatorLabel
Section titled “operatorLabel”operatorLabel:
InputSignal<string>
operatorLabels
Section titled “operatorLabels”operatorLabels:
InputSignal<Partial<Record<string,string>>>
Override display labels for operators by filterFn key.
selectedDecl
Section titled “selectedDecl”
readonlyselectedDecl:Signal<Decl|undefined>
The currently selected Decl object.
selectedFieldName
Section titled “selectedFieldName”
readonlyselectedFieldName:WritableSignal<string|null>
Currently selected Decl (by name).
selectedOperator
Section titled “selectedOperator”
readonlyselectedOperator:Signal<FilterOperator|undefined>
The currently selected operator object.
selectedOperatorFn
Section titled “selectedOperatorFn”
readonlyselectedOperatorFn:WritableSignal<string|null>
Currently selected operator filterFn.
selectedType
Section titled “selectedType”
readonlyselectedType:Signal<Type|undefined>
The Type of the selected field’s ident declaration.
showOperator
Section titled “showOperator”
readonlyshowOperator:Signal<boolean>
Show the operator step when a field is selected.
showValue
Section titled “showValue”
readonlyshowValue:Signal<boolean>
Show the value step when an operator is selected.
valueBool
Section titled “valueBool”
readonlyvalueBool:WritableSignal<boolean>
Boolean value for boolean fields.
valueKind
Section titled “valueKind”
readonlyvalueKind:Signal<ValueInputKind>
What kind of value input to show.
valueLabel
Section titled “valueLabel”valueLabel:
InputSignal<string>
valueText
Section titled “valueText”
readonlyvalueText:WritableSignal<string>
Value entered by the user.
Methods
Section titled “Methods”onAdd()
Section titled “onAdd()”onAdd():
void
Returns
Section titled “Returns”void
reset()
Section titled “reset()”reset():
void
Returns
Section titled “Returns”void