-
Notifications
You must be signed in to change notification settings - Fork 64
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
feat(lib): add disabled state for select item #130
Conversation
@d3lm Hey. Can you take a look at this, please? |
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.
Thanks for the PR! Very much appreciated. Left a few small comments. Otherwise it looks good 👍
src/app/app.component.html
Outdated
@@ -22,6 +22,7 @@ <h3> | |||
<mat-checkbox data-cy="selectOnDrag" [(ngModel)]="selectOnDrag">Select on Drag</mat-checkbox> | |||
<mat-checkbox data-cy="dragOverItems" [(ngModel)]="dragOverItems">Drag Over Items</mat-checkbox> | |||
<mat-checkbox data-cy="disable" [(ngModel)]="disable">Disable</mat-checkbox> | |||
<mat-checkbox data-cy="useDisableCondition" [(ngModel)]="useDisableCondition">Disable condition (even)</mat-checkbox> |
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.
For the text of the checkbox let's just say Disable even items
.
src/app/app.component.html
Outdated
@@ -22,6 +22,7 @@ <h3> | |||
<mat-checkbox data-cy="selectOnDrag" [(ngModel)]="selectOnDrag">Select on Drag</mat-checkbox> | |||
<mat-checkbox data-cy="dragOverItems" [(ngModel)]="dragOverItems">Drag Over Items</mat-checkbox> | |||
<mat-checkbox data-cy="disable" [(ngModel)]="disable">Disable</mat-checkbox> | |||
<mat-checkbox data-cy="useDisableCondition" [(ngModel)]="useDisableCondition">Disable condition (even)</mat-checkbox> |
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.
Also could you change useDisableCondition
to disableEvenItems
Hi. I've updated the notes above :) |
@d3lm We're blocked by these changes, can you take a look at this as well? |
Please rebase the PR on latest master. I have fixed CI. |
598ed7a
to
9d83093
Compare
@d3lm Done |
9d83093
to
ab74310
Compare
There're latest changes from master branch. |
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.
This looks good. One last thing, could you also add an e2e test for this? 🙏
@HostBinding('class.dts-disabled') | ||
@Input() |
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.
It's a nitpick but can you please change the order here
@HostBinding('class.dts-disabled') | |
@Input() | |
@Input() | |
@HostBinding('class.dts-disabled') |
Updated! |
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.
Awesome work! One last small thing.
Co-authored-by: Dominic Elm <d3lm@users.noreply.github.com>
Merged! Thanks a lot for this PR 🙏 |
@d3lm Thanks! I'm wondering if could you bump the new changes to the NPM? |
Definitely. I am trying to push on the other PR too so I can cut a single release that includes both new features. |
It's this one #129. |
I am not hearing anything, so maybe we can cut a release already. Alternatively you could pick up the PR and we can get it over the finish line. |
Yep, it would be nice if we released it |
So, will you bump the new version? UPD: |
It's now published. You can grab 4.2.0. |
Closes #71