Skip to content

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

Conversation

ivanvpetrov
Copy link
Contributor

@ivanvpetrov ivanvpetrov commented Nov 28, 2024

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):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

- 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
@desig9stein
Copy link
Contributor

desig9stein commented Jan 31, 2025

Material
The buttons for all themes should be Outlined, not Flat. there was a bug logged

Here is the bug
#15299

  1. The label and the border should be grays 600, and there is no fill color.

They are the background is transparent
image

@sbayreva
Copy link

sbayreva commented Feb 3, 2025

Indigo

  1. The space between here should be 24px, not 16px. For all themes EXCEPT Bootstrap where this gap is 16px.
    Screenshot 2025-02-03 at 14 16 00

Material

  1. The background of the whole QB in light mode should be white. Now, it is surface.
  2. Relevant for all themes: Top, Bottom, Left and Right paddings here should be 12 px
    Screenshot 2025-02-03 at 10 59 42

@@ -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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"igniteui-theming": "v14.5.0-beta.2",
"igniteui-theming": "v14.5.0-beta.3",

(click)="addCondition(expressionItem, afterExpression)"
(click)="addCondition(expressionItem, afterExpression, true)"
igxDrop
(enter)="dragService.onAddConditionEnter(addConditionButton, expressionItem)"
Copy link
Contributor

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.

Copy link
Contributor Author

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?

@gedinakova gedinakova added ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ do not merge labels Feb 5, 2025
@gedinakova gedinakova merged commit 927dc7d into dmdimitrov/query-builder-improvements Feb 5, 2025
@gedinakova gedinakova deleted the ipetrov/query-builder-drag-and-drop-nogap branch February 5, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants