@react-querybuilder/chakra
Advanced tools
Changelog
[v5.4.0] - 2023-01-06
id
s are no longer prefixed with "g-"
or "r-"
.#7f81a2
to #8081a2
. This difference will almost certainly be imperceptible.generateID
no longer tries to require('crypto')
which should allow its use in more environments and build targets.idGenerator
can be used to override the default generateID
function.Changelog
[v5.3.3] - 2022-12-27
jsonLogicOperations
option was causing parseJsonLogic
to return a rule instead of a group if only one JsonLogic rule was passed in.Changelog
[v5.3.2] - 2022-12-26
jsonLogicOperations
option to parseJsonLogic
to enable parsing of custom operations.Changelog
[v5.3.1] - 2022-12-23
crypto
package was used in a way that didn't work in some Node environments.Changelog
[v5.3.0] - 2022-12-23
id
s are now generated as valid v4 UUIDs using crypto.getRandomValues()
instead of Math.random()
. The generateID
function used internally is exported.NameLabelPair
has been deprecated and is now an alias for the Option
interface.showCombinatorsBetweenRules
is enabled, a combinator selector immediately above a locked rule/group will no longer be locked unless the group it belongs to is locked.jsonLogicAdditionalOperators
is exported again (documentation).queryBuilder-branches
displays "tree view" branch lines.getRuleClassname
and getRuleGroupClassname
are passed the rule or group, and the return value will be added as a class to the surrounding div
.Field
, Operator
, and new interface Combinator
now have an optional className
property that will be applied to rules or groups that specify the appropriate attribute.arity
property for operators. When arity
is either "unary" or a number less than 2, the value editor will not render when that operator is selected (similar to the standard "null"/"notNull" operators).Option
(née NameLabelPair
), Field
, and ValueEditorProps
now accept generics for name
and other properties.OptionList
type covers the options
property for all standard selection lists (field, operator, combinator, etc.). Previously this was a union type: NameLabelPair[] | OptionGroup<NameLabelPair>[]
. OptionList
is equivalent to this type, but 1) doesn't require typing the base type twice, and 2) uses the new Option
name instead of the deprecated NameLabelPair
.independentCombinators
is enabled, custom onAddRule
and onAddGroup
callbacks can add a combinatorPreceding
property to the rule/group which will end up being the combinator inserted above the new rule/group (if the parent group is not empty).Changelog
[v5.2.0] - 2022-11-26
onRemove
prop and pass rule/group to all ActionElement
s (buttons).Changelog
[v5.1.3] - 2022-11-23
antd
version 5.Changelog
[v5.1.2] - 2022-11-21
dndOver
class is no longer applied to child group headers.Changelog
[v5.1.1] - 2022-10-27
parseMongoDB
and parseJsonLogic
now respect independentCombinators
option.DefaultRuleGroupType
and DefaultRuleGroupTypeIC
, are respected by convertFromIC
and convertToIC
.