- 4.3.0
- Improved function support
- Functions used in examples now moved to
BasicFuncs
(exported with lib) - Added funcs
RELATIVE_DATETIME
,NOW
,UPPER
- Added option
showPrefix
for func args (false by default) - Added missing
mongoFormatValue
for all types in basic config (now dates are exported asDate
objects)
- 4.2.0
- Added
textarea
widget
- Added
- 4.1.1
- Fix warning about showSearch in MUI theme
- Fix incorrect override of vanilla button label (issue #347)
- Fix display default conj (issue #426)
- Don't wrap in MUI ThemeProvider if no theme or locale provided (issue #325)
- Fix canLeaveEmptyGroup logic (issue #378)
- 4.1.0
- Fixed lint errors in code
- Reorganized files in
tests
- Updated packages
- Now minimum supported NodeJs is 12.13
- Added TSC linting
- Now ESLint checks types in TS files
- Added new scripts:
install-all
,clean
,reinstall
,build-all
,check-hot
,tsc
,eslint
,smoke
,resmoke
. Renamedsandbox_ts
tosandbox-ts
,sandbox_js
tosandbox-js
. - Fixed problems with VSCode's TSLint plugin
- Moved from deprecated
prepublish
toprepare
inpackage.json
- 4.0.4
- Fixed issue #349 with drag-n-drop and office-ui-fabric-react
- Fixed issue #413 with func arg with 1 value source which is not value
- 4.0.3
- Fixed issue #386 with import select field from JsonLogic (reason: bug with func/field widget in getWidgetForFieldOp)
- Fixed issue #387 with subgroups in Material UI
- 4.0.2
- Fixed MaterialConfig import for TS projects (issue #368)
- 4.0.1
- Added custom context to isolate Query Builder store (PR #350)
- Added support for React 17 as a peer dependency
- 4.0.0
- Removed setting
useGroupsAsArrays
. Instead added field configmode
for type!group
with values:some
(default, corresponding useGroupsAsArrays = true),array
(new, user can choose one of group operators),struct
(obsolete, corresponding useGroupsAsArrays = false). - For type=
!group
and mode=array
:- new field configs are available:
conjunctions
,showNot
,operators
,defaultOperator
,initialEmptyWhere
- you can use group operators
some
,none
,all
or operators with 1 integer opearnd (for count):equal
,not_equal
,less
,between
, .. - localization setting
addSubRuleLabel
- new field configs are available:
- Removed obsolete setting
hideConjForOne
- (rare) Added field config
fieldName
to override field key for import/export - (rare) Added field config
jsonLogicVar
and settingsjsonLogic.groupVarKey
,jsonLogic.altVarKey
to override JsonLogic var key if need
- Removed setting
- 3.0.0
- Added Material-UI widgets
- 2.2.2
- Fix issue #306: Wrong import from JsonLogic and export to MongoDb for negated single-item group
- 2.2.1
- Fix issue #300: If using query builder inside a form element, buttons try to submit the form
- 2.2.0
- Fixed issues #246 and #176 related to wrong export and import from JsonLogic for multi-nested group fields
Now!group
fields are treated as arrays (added settinguseGroupsAsArrays
= true)
- Fixed issues #246 and #176 related to wrong export and import from JsonLogic for multi-nested group fields
- 2.1.19
- Fixed issue #252 ("Cannot update a component from inside the function body of a different component")
- Issue #190: Fixed TS def for getTree/2 - added 2nd param light?
- 2.1.17
- Dropped support of loading query in obsolete Immutable string format used in versions 0.* (issue #254)
- 2.1.16
- Fixed issues with export to Mongo and JsonLogic of queries with nested groups (#279, #279)
- 2.1.15
- Fixed issue #276 with TS definitions
- 2.1.14
- Require Node v10+ (for karma)
- Fixed "SyntaxError Unexpected token '<'" in sandboxes
- Fixed requirement of sass in sandboxes
- Fixed eslint warnings in sandboxes
- Improved Travis config: fixed ENOSPC, removed excess testing during install
- 2.1.12
- Added sandbox with vanilla widgets and without TS
- 2.1.11
- Minor fix for some/not JsonLogic operators can be potentially used for array types
- 2.1.10
- Fixed issues #249, #246 regarding export/import from jsonLogic and groups
- Fixed issue #272 with float numbers for vanilla widgets
- 2.1.8
- Fixed issue #263
- 2.1.7
- Fixed TS def for conjunctionOptions (#247)
- 2.1.6
- Temporary disable AntDesign 4.5.0+ because of "Invalid hook call" problem
- 2.1.4
- Fixed issue #249 with importing rules with group fields from JsonLogic format
- 2.1.3
- Fixed issue #255 with reordering
- 2.1.2
- Added config
maxNumberOfRules
- Bugfix: respect
maxNesting
andcanLeaveEmptyGroup
settings during drag-n-drop - Enabled ESLint for examples with TS
- Added config
- 2.1.1
- Fixed export of
not_like
op to JsonLogic
- Fixed export of
- 2.1.0
- Added displaying of rule validation errors, see
showErrorMessage
in config.settings - Added
QbUtils.isValidTree()
validateValue
moved from widget settings to field'sfieldSettings
- Added ESLint (unused vars & props are off for now)
- Added displaying of rule validation errors, see
- 2.0.11
- Added
starts_with
,ends_with
operators for text type
- Added
- 2.0.10
- Fixed bug with missing
funcs
in config
- Fixed bug with missing
- 2.0.9
- Fixed issues #215, #214, #208
- Fixed
validateValue
- Simpler sandbox demo
- 2.0.8
- Fixed issue #207
- 2.0.7
- Added
canShortMongoQuery
toconfig.settings
- Added
- 2.0.6
- Fixed issue #176
- 2.0.5
- Fixed TS types. Updated sandbox to TS
- 2.0.4
- Fixed import
- 2.0.2
- Fix for TS
- 2.0.1
- Fixed issues #187, #194, #182
- 2.0.0
- Added
renderConjs
,renderButton
,renderButtonGroup
,renderProvider
,renderValueSources
,renderConfirm
- Removed coupling with AntDesign. Now it should be possible to use another UI framework.
- Added vanilla widgets. Added switcher between
antd
andvanilla
in demo.
- Added
- 1.3.7
- Fixed issue #168 with dot in field name
- 1.3.6
- Added config options to disable inputs:
immutableFieldsMode
,immutableOpsMode
,immutableValuesMode
- Added config options to disable inputs:
- 1.3.5
- Issue #158
- 1.3.3
- Bugfix
- 1.3.2
- Bugfix
- 1.3.1
- Added
FieldTreeSelect
- Added
- 1.3.0
- Added support of
!group
- Added support of
- 1.2.0
- Added
treeselect
andtreemultiselect
types - Changed format of
listValues
from{<value>: <title>}
to[{value, title}]
(old is supported). Tree select also uselistValues
, format is compatible with simple select -[{value, title, parent}]
- Added
- 1.1.3
- Fixed console warnings
- Fixed dev hot reload: now state is preserving
- Added render hoooks to
config.settings
:renderBeforeWidget
,renderAfterWidget
,renderBeforeActions
,renderAfterActions
- 1.1.2
- Added import from JsonLogic
- 1.1.1
- Optimized
$eq
and$and
in MongoDb query export - Fixed error if query value is empty
- Added API in readme
- Optimized
- 1.1.0
- Added export to JsonLogic
- 1.0.12
- Added
sqlFormatFunc
,mongoFormatFunc
,renderBrackets
,renderSeps
(for func),funcs
(for field)
- Added
- 1.0.11
- Added css-class
qb-lite
for query builder (see readme if you wanna use it)
- Added css-class
- 1.0.10
- Fix when using cascader for func selection
- 1.0.9
- Allow group of functions (like with fields -
type == '!struct'
andsubfields
)
- Allow group of functions (like with fields -
- 1.0.8
- Added support for your custom functions as value source (args can be values/fields/funcs), see new section
funcs
inconfig
- Improved Mongo format: now can compare with field & use funcs with help of
$expr
- (breaking)
mongoFormatOp
- inserted arguseExpr
at 4th position - Added
hideForSelect
,hideForCompare
for field config
- Added support for your custom functions as value source (args can be values/fields/funcs), see new section
- 1.0.7
- Fixed Babel
- 1.0.6
- Added TypeScript support (
examples
uses TS,sandbox
uses JS) - Updated Babel, Webpack
- For
field
widget slightly changed format offormatValue()
andsqlFormatValue()
functions - argumentrightFieldDef
is now last one - Added
defaultValue
in field config - All
fieldSettings
will be now passed to widget props listValues
andallowCustomValues
moved insidefieldSettings
- Added TypeScript support (
- 1.0.4
- Added
QbUtils.sqlFormat()
(issue #29) - Added
like
andnot_like
operators - Added 2 params
string op, Object opDef
to end offormatValue()
,mongoFormatValue()
- Added
- 1.0.3
- Completely removed auto-loading of antd styles (issue #50)
- 1.0.2
- Fixed bug with running examples app via react-scripts
- 1.0.1
- Fixed bug with importing React
- 1.0.0
- Don't include AntDesign styles automatically (issues #50, #93)
- added:
allowCustomValues
(issue #88) - change: removed
renderFieldAndOpAsDropdown
, replaced byrenderField
(issue #109) - added
renderOperator
(issue #89) - change: query value now can be exported to JSON (instead of
Immutable.Map
), and loaded withloadTree
(old format is supported) (issue #61) - added:
canRegroup
- rename:
readonlyMode
->immutableGroupsMode
- rename:
get_children
->renderBuilder
- removed: unused
<Preview />
component and.query-preview
class - optimized renders & dragging