-
Notifications
You must be signed in to change notification settings - Fork 76
feat: create RangeSlider component #8503
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
base: slider-component
Are you sure you want to change the base?
Conversation
Add RangeSlider component that allows selecting a numeric range with two handles. Includes RangeSliderValue record for the start/end value pair and updates SliderBase to support custom value converters. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Move the "start value cannot be greater than end value" validation from RangeSlider#setValue to the RangeSliderValue compact constructor, ensuring the invariant is enforced at construction time. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add RangeSliderTest with tests for constructors, setValue validation, interface implementations, and property setters/getters. Add RangeSliderSerializableTest for serialization testing. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add constructors with various parameter combinations including label, min/max range, step, initial value, and value change listener. Also add corresponding unit tests for all new constructors. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add RangeSliderElement testbench class and basic IT test that verifies min, max, step, and value properties are correctly set on the component. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Update RangeSlider to use SerializableBiFunction for value converters, allowing validation during conversion. Throw exceptions for invalid min/max/step changes instead of logging warnings. Remove RangeSliderWarningsTest as warnings are replaced with exceptions. Co-Authored-By: Claude Opus 4.5 <[email protected]>
TC Format Checker Report - 13:44 - 26 - Jan
Here is the list of files with format issues in your PR: |
|




Description
Add RangeSlider component that allows selecting a numeric range with two handles. Includes RangeSliderValue record for the start/end value pair and updates SliderBase to support custom value converters.
Depends on
Fixes #8481
Type of change