@cgarciagarcia/react-query-builder 1.15.0 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
[](https://github.com/cgarciagarcia/react-query-builder/actions/workflows/test.yml)
|
|
7
7
|
[](https://opensource.org/licenses/MIT)
|
|
8
8
|
[](https://app.codacy.com/gh/cgarciagarcia/react-query-builder/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
|
9
|
+
[](https://www.npmjs.com/package/@cgarciagarcia/react-query-builder)
|
|
9
10
|
|
|
10
11
|
## Installation
|
|
11
12
|
|
|
@@ -98,7 +99,7 @@ const builder = useQueryBuilder(baseConfig)
|
|
|
98
99
|
|
|
99
100
|
<h3 style="color:#cb3837;">Clear Methods</h3>
|
|
100
101
|
|
|
101
|
-
You can use the clear methods for delete the entire data group
|
|
102
|
+
You can use the clear methods for delete the entire data group
|
|
102
103
|
|
|
103
104
|
```js
|
|
104
105
|
const builder = useQueryBuilder(baseConfig)
|
|
@@ -115,8 +116,8 @@ const builder = useQueryBuilder(baseConfig)
|
|
|
115
116
|
|
|
116
117
|
Maybe your business logic has filters that won't work together, for example you could
|
|
117
118
|
have filters like `date` filter and `between_dates` filter in your backend, but you can not filter
|
|
118
|
-
by both at the same time, so you have to be sure to clear incompatibles filters
|
|
119
|
-
before to adding a new one. With this purpose the property `pruneConflictingFilters`
|
|
119
|
+
by both at the same time, so you have to be sure to clear incompatibles filters
|
|
120
|
+
before to adding a new one. With this purpose the property `pruneConflictingFilters`
|
|
120
121
|
was created, you can define these incompatibilities in the base configuration and delegate
|
|
121
122
|
the humdrum action to the library.
|
|
122
123
|
|
|
@@ -139,7 +140,7 @@ builder.filter('date', today)
|
|
|
139
140
|
|
|
140
141
|
When you define that `date` filter is not compatible with `between_dates`, internally
|
|
141
142
|
the library define the bidirectional incompatibility for you. Too much magic? Don't
|
|
142
|
-
worry, you still could define manually the inverse incompatibility to have explicit
|
|
143
|
+
worry, you still could define manually the inverse incompatibility to have explicit
|
|
143
144
|
declaration from your side.
|
|
144
145
|
|
|
145
146
|
<h3 style="color:#cb3837;">Utilities</h3>
|
|
@@ -196,7 +197,7 @@ const MyComponent = () => {
|
|
|
196
197
|
|
|
197
198
|
```
|
|
198
199
|
|
|
199
|
-
### hasMethods()
|
|
200
|
+
### hasMethods()
|
|
200
201
|
|
|
201
202
|
|
|
202
203
|
```js
|
|
@@ -209,9 +210,9 @@ builder.hasFilter('filter', 'filter2', ...)
|
|
|
209
210
|
.hasSort('sort', ...)
|
|
210
211
|
|
|
211
212
|
```
|
|
212
|
-
##
|
|
213
|
+
## Do you have question how to implement it?
|
|
213
214
|
|
|
214
|
-
|
|
215
|
+
Feel free to generate a discussion in the github repository I will help you
|
|
215
216
|
|
|
216
217
|
|
|
217
218
|
## Consider supporting me
|