feat(client): Allow the client to be used more flexibly #274
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
We use Gridify in a base table component, which adds it's own current state (such as pageSize, page, filter, sorting) within a group.
The query builder instance is not automatically built, so parent component users can add more filters.
Because of this, there may be situations - such as the grid having no specific filtering state that empty groups can occour. In that case, we would want to simply "skip" this group.
Another case would be, the base table adds its filters and we want to concatinate it with an
and()
oror()
, but if the table did not create a filter group, both operations are only informational if it would have other conditions.This PR addresses both problems as well as a bit of housekeeping in the tsconfig.
This PR also changes the query and filterExpressions to be protected, making it easier to extend the class and manage edge cases whose may not belong to the core library itself manually.
Fixes # (issue)
Type of change
Checklist