-
Notifications
You must be signed in to change notification settings - Fork 160
Query-builder conditions Drag&Drop functionality (take 2 - no chip gaps) #15122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query-builder conditions Drag&Drop functionality (take 2 - no chip gaps) #15122
Conversation
- make sure that the icon buttons are outlined - change the size of the fields in bootstrap - change the label inside the ghost drop indicator - change the padding inside the ghost drop
Here is the bug
|
…ithub.com/IgniteUI/igniteui-angular into ipetrov/query-builder-drag-and-drop-nogap
- fix icons - fix padding - fix gap - Add min width to he subquery - Fix bootstrap AND & OR buttons foreground color
- Add overrides for qb in context of igx-dialog
… editors template (#15330) * feat(query-builder): expose resource string for nested query value placeholder * feat(query-builder): add placeholder check in tests, fix not-in
@@ -73,7 +73,7 @@ | |||
"tslib": "^2.3.0", | |||
"igniteui-trial-watermark": "^3.0.2", | |||
"lodash-es": "^4.17.21", | |||
"igniteui-theming": "^14.3.1-beta.1", | |||
"igniteui-theming": "v14.5.0-beta.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"igniteui-theming": "v14.5.0-beta.2", | |
"igniteui-theming": "v14.5.0-beta.3", |
...ui-angular/src/lib/grids/filtering/advanced-filtering/advanced-filtering-dialog.component.ts
Show resolved
Hide resolved
projects/igniteui-angular/src/lib/query-builder/query-builder-tree.component.ts
Outdated
Show resolved
Hide resolved
projects/igniteui-angular/src/lib/query-builder/query-builder-tree.component.html
Outdated
Show resolved
Hide resolved
(click)="addCondition(expressionItem, afterExpression)" | ||
(click)="addCondition(expressionItem, afterExpression, true)" | ||
igxDrop | ||
(enter)="dragService.onAddConditionEnter(addConditionButton, expressionItem)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add wrapping div for the two buttons and move igxDrop, enter/leave logic there, so that dragging over '+ Group' button will show ghost chip as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only the '+Condition' button was discussed to be a drop zone.
I have a hunch that if we want to introduce the '+Group' button as a drop zone, the user will anticipate dropping the condition in a new group and that won't be so easy to implement.
@ig-georgeA What's your take on this? Leave it like this, or change something?
projects/igniteui-angular/src/lib/query-builder/query-builder-tree.component.html
Show resolved
Hide resolved
projects/igniteui-angular/src/lib/query-builder/query-builder-drag.service.ts
Show resolved
Hide resolved
projects/igniteui-angular/src/lib/query-builder/query-builder-drag.service.ts
Show resolved
Hide resolved
projects/igniteui-angular/src/lib/query-builder/query-builder-drag.service.ts
Show resolved
Hide resolved
projects/igniteui-angular/src/lib/query-builder/query-builder-drag.service.ts
Show resolved
Hide resolved
projects/igniteui-angular/src/lib/query-builder/query-builder-drag.service.ts
Show resolved
Hide resolved
…ry-builder-drag-and-drop-nogap
chore(*): query builder merge
…ry-builder-drag-and-drop-nogap
The difference between this PR and #15102 is that here component gaps are replaced with padding so we don't have void space between chips and the drag&drop works perfectly
Closes #14642
Additional information (check all that apply):
Checklist:
feature/README.MD
updates for the feature docsREADME.MD
CHANGELOG.MD
updates for newly added functionalityng update
migrations for the breaking changes (migrations guidelines)