Module: react-querybuilder
Namespaces
Interfaces
- ActionProps
- ActionWithRulesAndAddersProps
- ActionWithRulesProps
- AddOptions
- BaseFullOption
- BaseOption
- Classnames
- CombinatorSelectorProps
- CommonRuleAndGroupProperties
- CommonRuleSubComponentProps
- CommonSubComponentProps
- Controls
- DefaultRuleGroupTypeIC
- DragCollection
- DragHandleProps
- DropCollection
- DropResult
- FieldSelectorProps
- FormatQueryOptions
- FullCombinator
- FullField
- FullOperator
- FullOption
- InlineCombinatorProps
- MoveOptions
- NameLabelPair
- NotToggleProps
- OperatorSelectorProps
- Option
- OptionGroup
- ParameterizedNamedSQL
- ParameterizedSQL
- ParseCELOptions
- ParseJsonLogicOptions
- ParseMongoDbOptions
- ParseNumberOptions
- ParseSQLOptions
- ParseSpELOptions
- PreparerOptions
- QueryActions
- QueryBuilderContextProps
- RQBJsonLogicEndsWith
- RQBJsonLogicStartsWith
- RQBJsonLogicVar
- RegenerateIdOptions
- RuleGroupProps
- RuleGroupType
- RuleGroupTypeIC
- RuleProps
- RuleType
- Schema
- SelectorOrEditorProps
- ShiftActionsProps
- TransformQueryOptions
- Translation
- TranslationWithLabel
- TranslationWithPlaceholders
- Translations
- UpdateOptions
- UseControlledOrUncontrolledParams
- UseRuleDnD
- UseRuleGroupDnD
- UseSelectElementChangeHandlerParams
- ValidationResult
- ValueEditorProps
- ValueOption
- ValueProcessorOptions
- ValueSelectorProps
- ValueSourceSelectorProps
References
default
Renames and re-exports QueryBuilder
Type Aliases
AccessibleDescriptionGenerator
AccessibleDescriptionGenerator: (props
: { path
: Path
; qbId
: string
}) => string
Signature of accessibleDescriptionGenerator
prop, used by QueryBuilder to generate
accessible descriptions for each RuleGroup.
Type declaration
(props
): string
Parameters
Name | Type |
---|---|
props | Object |
props.path | Path |
props.qbId | string |
Returns
string
Defined in
packages/react-querybuilder/src/types/basic.ts:287
Arity
Arity: number
| "unary"
| "binary"
| "ternary"
Allowed values of the FullOperator property arity
. A value of "unary"
or
a number less than two will cause the default ValueEditor to render null
.
Defined in
packages/react-querybuilder/src/types/basic.ts:195
BaseOptionMap
BaseOptionMap<V
, K
>: { [k in K]?: ToFlexibleOption<V> }
Map of option identifiers to their respective Option.
Type parameters
Name | Type |
---|---|
V | extends BaseOption = BaseOption |
K | extends string = GetOptionIdentifierType <V > |
Defined in
packages/react-querybuilder/src/types/options.ts:141
Classname
Classname: string
| string
[] | Record
<string
, any
>
String of classnames, array of classname strings, or object where the
keys are classnames and those with truthy values will be included.
Suitable for passing to the clsx
package.
Defined in
packages/react-querybuilder/src/types/basic.ts:22
Combinator
Combinator<N
>: WithUnknownIndex
<SetOptional
<BaseFullOption
<N
>, "value"
> & HasOptionalClassName
>
Combinator definition used in the combinators
prop of QueryBuilder.
This type is an extension of FullCombinator where only name
and
label
are required.
The name
/value
properties of this interface can be narrowed with generics.
Type parameters
Name | Type |
---|---|
N | extends string = string |
Defined in
packages/react-querybuilder/src/types/basic.ts:259
CombinatorByValue
CombinatorByValue<N
>: WithUnknownIndex
<SetOptional
<BaseFullOption
<N
>, "name"
> & HasOptionalClassName
>
Combinator definition used in the combinators
prop of QueryBuilder.
This type is an extension of FullCombinator where only value
and
label
are required.
The name
/value
properties of this interface can be narrowed with generics.
Type parameters
Name | Type |
---|---|
N | extends string = string |
Defined in
packages/react-querybuilder/src/types/basic.ts:270
DefaultCombinator
DefaultCombinator: FullCombinator
<DefaultCombinatorName
>
A FullCombinator definition with a DefaultCombinatorName name
property.
Defined in
packages/react-querybuilder/src/types/ruleGroups.ts:120
DefaultCombinatorExtended
DefaultCombinatorExtended: FullCombinator
<DefaultCombinatorNameExtended
>
A FullCombinator definition with a DefaultCombinatorNameExtended name
property.
Defined in
packages/react-querybuilder/src/types/ruleGroups.ts:125
DefaultCombinatorName
DefaultCombinatorName: "and"
| "or"
Default allowed values for the combinator
property.
Defined in
packages/react-querybuilder/src/types/ruleGroups.ts:88
DefaultCombinatorNameExtended
DefaultCombinatorNameExtended: DefaultCombinatorName
| "xor"
Default allowed values for the combinator
property, plus "xor"
.
Defined in
packages/react-querybuilder/src/types/ruleGroups.ts:92
DefaultOperator
DefaultOperator: FullOperator
<DefaultOperatorName
>
An FullOperator definition with a DefaultOperatorName name
property.
Defined in
packages/react-querybuilder/src/types/ruleGroups.ts:130
DefaultOperatorName
DefaultOperatorName: "="
| "!="
| "<"
| ">"
| "<="
| ">="
| "contains"
| "beginsWith"
| "endsWith"
| "doesNotContain"
| "doesNotBeginWith"
| "doesNotEndWith"
| "null"
| "notNull"
| "in"
| "notIn"
| "between"
| "notBetween"
Default values for the operator
property.
Defined in
packages/react-querybuilder/src/types/ruleGroups.ts:97
DefaultRuleGroupArray
DefaultRuleGroupArray<F
>: RuleGroupArray
<DefaultRuleGroupType
, DefaultRuleType
<F
>>
The type of the rules
array in a DefaultRuleGroupType.
Type parameters
Name | Type |
---|---|
F | extends string = string |
Defined in
packages/react-querybuilder/src/types/ruleGroups.ts:64
DefaultRuleGroupICArray
DefaultRuleGroupICArray<F
>: RuleGroupICArray
<DefaultRuleGroupTypeIC
<F
>, DefaultRuleType
<F
>, DefaultCombinatorName
>
The type of the rules
array in a DefaultRuleGroupTypeIC.
Type parameters
Name | Type |
---|---|
F | extends string = string |
Defined in
packages/react-querybuilder/src/types/ruleGroupsIC.ts:52
DefaultRuleGroupType
DefaultRuleGroupType<F
>: RuleGroupType
<DefaultRuleType
<F
>, DefaultCombinatorNameExtended
> & { rules
: DefaultRuleGroupArray
<F
> }
RuleGroupType with the combinator
property limited to
DefaultCombinatorNameExtended and rules
limited to DefaultRuleType.
Type parameters
Name | Type |
---|---|
F | extends string = string |
Defined in
packages/react-querybuilder/src/types/ruleGroups.ts:73
DefaultRuleGroupTypeAny
DefaultRuleGroupTypeAny<F
>: DefaultRuleGroupType
<F
> | DefaultRuleGroupTypeIC
<F
>
Shorthand for "either DefaultRuleGroupType or DefaultRuleGroupTypeIC".
Type parameters
Name | Type |
---|---|
F | extends string = string |
Defined in
packages/react-querybuilder/src/types/ruleGroupsIC.ts:77
DefaultRuleOrGroupArray
DefaultRuleOrGroupArray<F
>: DefaultRuleGroupArray
<F
> | DefaultRuleGroupICArray
<F
>
Shorthand for "either DefaultRuleGroupArray or DefaultRuleGroupICArray".
Type parameters
Name | Type |
---|---|
F | extends string = string |
Defined in
packages/react-querybuilder/src/types/ruleGroupsIC.ts:61
DefaultRuleType
DefaultRuleType<F
>: RuleType
<F
, DefaultOperatorName
>
RuleType with the operator
property limited to DefaultOperatorName.
Type parameters
Name | Type |
---|---|
F | extends string = string |
Defined in
packages/react-querybuilder/src/types/ruleGroups.ts:83
DndDropTargetType
DndDropTargetType: "rule"
| "ruleGroup"
| "inlineCombinator"
Defined in
packages/react-querybuilder/src/types/dnd.ts:5
DraggedItem
DraggedItem: RuleType
& { path
: Path
} | RuleGroupTypeAny
& { path
: Path
}
Defined in
packages/react-querybuilder/src/types/dnd.ts:7
DropEffect
DropEffect: "move"
| "copy"
Defined in
packages/react-querybuilder/src/types/dnd.ts:9
ExportFormat
ExportFormat: "json"
| "sql"
| "json_without_ids"
| "parameterized"
| "parameterized_named"
| "mongodb"
| "cel"
| "jsonlogic"
| "spel"
| "elasticsearch"
| "jsonata"
Available export formats for formatQuery.
Defined in
packages/react-querybuilder/src/types/importExport.ts:11
Field
Field<FieldName
, OperatorName
, ValueName
, OperatorObj
>: WithUnknownIndex
<{ value?
: FieldName
} & Pick
<BaseFullField
<FieldName
, OperatorName
, ValueName
, OperatorObj
>, Exclude
<keyof BaseFullField
, "value"
>>>
Field definition used in the fields
prop of QueryBuilder.
This type is an extension of FullField where only name
and
label
are required.
The name
/value
, operators
, and values
properties of this interface
can be narrowed with generics.
Type parameters
Name | Type |
---|---|
FieldName | extends string = string |
OperatorName | extends string = string |
ValueName | extends string = string |
OperatorObj | extends Option = Option <OperatorName > |
Defined in
packages/react-querybuilder/src/types/basic.ts:134
FieldByValue
FieldByValue<FieldName
, OperatorName
, ValueName
, OperatorObj
>: WithUnknownIndex
<{ name?
: FieldName
} & Pick
<BaseFullField
<FieldName
, OperatorName
, ValueName
, OperatorObj
>, Exclude
<keyof BaseFullField
, "name"
>>>
Field definition used in the fields
prop of QueryBuilder.
This type is an extension of FullField where only value
and
label
are required.
The name
/value
, operators
, and values
properties of this interface
can be narrowed with generics.
Type parameters
Name | Type |
---|---|
FieldName | extends string = string |
OperatorName | extends string = string |
ValueName | extends string = string |
OperatorObj | extends Option = Option <OperatorName > |
Defined in
packages/react-querybuilder/src/types/basic.ts:154
FindPathReturnType
FindPathReturnType: RuleGroupTypeAny
| RuleType
| null
Return type for findPath.
Defined in
packages/react-querybuilder/src/utils/pathUtils.ts:8
FlexibleOption
FlexibleOption<N
>: WithUnknownIndex
<RequireAtLeastOne
<BaseOption
<N
>, "name"
| "value"
>>
A generic Option with either a name
or value
as its primary identifier.
OptionList-type props on the QueryBuilder component accept this type,
but corresponding props passed down to subcomponents will always be translated
to FullOption first.
Type parameters
Name | Type |
---|---|
N | extends string = string |
Defined in
packages/react-querybuilder/src/types/options.ts:54
FlexibleOptionGroup
FlexibleOptionGroup<Opt
>: Object
A BaseOption group within a FlexibleOptionList.
Type parameters
Name | Type |
---|---|
Opt | extends BaseOption = BaseOption |
Type declaration
Name | Type |
---|---|
label | string |
options | Opt extends BaseFullOption ? Opt : ToFlexibleOption <Opt >[] |
Defined in
packages/react-querybuilder/src/types/options.ts:111
FlexibleOptionList
FlexibleOptionList<Opt
>: ToFlexibleOption
<Opt
>[] | FlexibleOptionGroup
<ToFlexibleOption
<Opt
>>[]
An array of options or option groups, like OptionList, but each member may
use either name
or value
as the primary identifier.
Type parameters
Name | Type |
---|---|
Opt | extends BaseOption |
Defined in
packages/react-querybuilder/src/types/options.ts:125
FullOptionList
FullOptionList<Opt
>: Opt
extends BaseFullOption
? Opt
[] | OptionGroup
<Opt
>[] : ToFullOption
<Opt
>[] | OptionGroup
<ToFullOption
<Opt
>>[]
An array of options or option groups, like OptionList, but using
FullOption instead of Option. This means that every member is
guaranteed to have both name
and value
.
Type parameters
Name | Type |
---|---|
Opt | extends BaseOption |
Defined in
packages/react-querybuilder/src/types/options.ts:134
FullOptionMap
FullOptionMap<V
, K
>: { [k in K]?: V }
Map of option identifiers to their respective FullOption.
Type parameters
Name | Type |
---|---|
V | extends BaseFullOption |
K | extends string = GetOptionIdentifierType <V > |
Defined in
packages/react-querybuilder/src/types/options.ts:151
FullOptionRecord
FullOptionRecord<V
, K
>: Record
<K
, V
>
Map of option identifiers to their respective FullOption. Must include all possible strings from the identifier type.
Type parameters
Name | Type |
---|---|
V | extends BaseFullOption |
K | extends string = GetOptionIdentifierType <V > |
Defined in
packages/react-querybuilder/src/types/options.ts:162
GetCompatContextProviderProps
GetCompatContextProviderProps: Pick
<QueryBuilderContextProps
<FullField
, string
>, "controlClassnames"
| "controlElements"
| "translations"
> & { key
: string
}
Defined in
packages/react-querybuilder/src/utils/getCompatContextProvider.tsx:8
GetOptionIdentifierType
GetOptionIdentifierType<Opt
>: Opt
extends Option
<infer NameType> | ValueOption
<infer NameType> ? NameType
: string
Extracts the type of the identifying property from a BaseOption.
Type parameters
Name | Type |
---|---|
Opt | extends BaseOption |
Defined in
packages/react-querybuilder/src/types/options.ts:12
GetOptionType
GetOptionType<OL
>: OL
extends FlexibleOptionList
<infer Opt> ? Opt
: never
Extracts the Option type from a FlexibleOptionList.
Type parameters
Name | Type |
---|---|
OL | extends FlexibleOptionList <FullOption > |
Defined in
packages/react-querybuilder/src/types/options.ts:6
GetRuleGroupType
GetRuleGroupType<RG
>: RG
extends { combinator
: string
} ? RuleGroupType
: RuleGroupTypeIC
Determines if a type extending RuleGroupTypeAny is actually RuleGroupType or RuleGroupTypeIC.
Type parameters
Name |
---|
RG |
Defined in
packages/react-querybuilder/src/types/ruleGroupsIC.ts:85
GetRuleTypeFromGroupWithFieldAndOperator
GetRuleTypeFromGroupWithFieldAndOperator<RG
, F
, O
>: RG
extends RuleGroupType
<infer RT> | RuleGroupTypeIC
<infer RT> ? RT
extends RuleType
<infer RuleFieldName, infer RuleOperatorName, infer RuleValueName, infer RuleCombinatorName> ? RuleFieldName
extends GetOptionIdentifierType
<F
> ? RuleOperatorName
extends GetOptionIdentifierType
<O
> ? RuleType
<RuleFieldName
, RuleOperatorName
, RuleValueName
, RuleCombinatorName
> : RuleType
<RuleFieldName
, GetOptionIdentifierType
<O
>, RuleValueName
, RuleCombinatorName
> : RuleOperatorName
extends GetOptionIdentifierType
<O
> ? RuleType
<GetOptionIdentifierType
<F
>, RuleOperatorName
, RuleValueName
, RuleCombinatorName
> : RuleType
<GetOptionIdentifierType
<F
>, GetOptionIdentifierType
<O
>, RuleValueName
, RuleCombinatorName
> : never
: never
Determines the RuleType of a given RuleGroupType or RuleGroupTypeIC. If the field and operator name types of the rule type extend the identifier types of the provided Field and Operator types, the given rule type is returned as is. Otherwise, the rule type has its field and operator types narrowed to the identifier types of the provided Field and Operator types.
Type parameters
Name | Type |
---|---|
RG | extends RuleGroupTypeAny |
F | extends BaseOption |
O | extends BaseOption |
Defined in
packages/react-querybuilder/src/types/ruleGroupsIC.ts:97
InputType
InputType: "button"
| "checkbox"
| "color"
| "date"
| "datetime-local"
| "email"
| "file"
| "hidden"
| "image"
| "month"
| "number"
| "password"
| "radio"
| "range"
| "reset"
| "search"
| "submit"
| "tel"
| "text"
| "time"
| "url"
| "week"
| string
&
HTML5 input types
Defined in
packages/react-querybuilder/src/types/basic.ts:56
JsonLogicAnd
JsonLogicAnd<AddOps
>: Pick
<AllReservedOperationsInterface
<AddOps
>, "and"
>
Type parameters
Name | Type |
---|---|
AddOps | extends AdditionalOperation = never |
Defined in
node_modules/@types/json-logic-js/index.d.ts:134
JsonLogicDoubleNegation
JsonLogicDoubleNegation: Pick
<AllReservedOperationsInterface
, "!!"
>
Defined in
node_modules/@types/json-logic-js/index.d.ts:129
JsonLogicEqual
JsonLogicEqual: Pick
<AllReservedOperationsInterface
, "=="
>
Defined in
node_modules/@types/json-logic-js/index.d.ts:124
JsonLogicGreaterThan
JsonLogicGreaterThan<AddOps
>: Pick
<AllReservedOperationsInterface
<AddOps
>, ">"
>
Type parameters
Name | Type |
---|---|
AddOps | extends AdditionalOperation = never |
Defined in
node_modules/@types/json-logic-js/index.d.ts:138
JsonLogicGreaterThanOrEqual
JsonLogicGreaterThanOrEqual<AddOps
>: Pick
<AllReservedOperationsInterface
<AddOps
>, ">="
>
Type parameters
Name | Type |
---|---|
AddOps | extends AdditionalOperation = never |
Defined in
node_modules/@types/json-logic-js/index.d.ts:142
JsonLogicInArray
JsonLogicInArray<AddOps
>: RenameToIn
<Pick
<AllReservedOperationsInterface
<AddOps
>, "inArray"
>>
Type parameters
Name | Type |
---|---|
AddOps | extends AdditionalOperation = never |
Defined in
node_modules/@types/json-logic-js/index.d.ts:210
JsonLogicInString
JsonLogicInString<AddOps
>: RenameToIn
<Pick
<AllReservedOperationsInterface
<AddOps
>, "inString"
>>
Type parameters
Name | Type |
---|---|
AddOps | extends AdditionalOperation = never |
Defined in
node_modules/@types/json-logic-js/index.d.ts:213