-
Notifications
You must be signed in to change notification settings - Fork 18
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
Number range filter #2478
base: master
Are you sure you want to change the base?
Number range filter #2478
Conversation
Co-authored-by: christophscheuing <[email protected]>
Co-authored-by: Sebastian <[email protected]>
Deployed to https://pr-2478.aam-digital.net/ |
Remaining problem: The two input fields in the RangeInputComponent don't accept manually entering negative and decimal numbers. Not sure why this is. Probably has to do with the Not sure either why test for RangeInputComponent fails. |
2b0f66d
to
972ab4c
Compare
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.
Nice, clear code and good functionality! 😊
Just a few minor things that I commented or asked.
Functionality seems to work very well and smoothly
src/app/core/basic-datatypes/number/edit-number/edit-number.component.html
Outdated
Show resolved
Hide resolved
src/app/core/filter/filter-generator/filter-generator.service.ts
Outdated
Show resolved
Hide resolved
src/app/core/basic-datatypes/number/number-range-filter/number-range-filter.component.scss
Show resolved
Hide resolved
src/app/core/basic-datatypes/number/number-range-filter/range-input/range-input.component.ts
Outdated
Show resolved
Hide resolved
src/app/core/basic-datatypes/number/number-range-filter/range-input/range-input.component.ts
Outdated
Show resolved
Hide resolved
|
||
ngAfterViewInit() { | ||
if (this.activateValidation) { | ||
this.formControlDirective.form.addValidators([this.validatorFunction]); |
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.
we could add a unit test for this
this.formControl.value.to?.toString() ?? "", | ||
]; | ||
|
||
this.filterConfig.selectedOptionChange.emit( |
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.
we could add a unit test to ensure a formControl change correctly updates the filterConfig (and emits selectedOptionChange)
…mponent.html Co-authored-by: Sebastian <[email protected]>
…input/range-input.component.ts Co-authored-by: Sebastian <[email protected]>
Relates to #2310 .
Still WIP.