Repository navigation
feat: add custom reference date functionality to date picker - #4792
Conversation
Add custom reference date functionality. Add relevant tests.
Rename calculateDateBasedOnReferenceDate into calculateYearBasedOnReferenceDate. Move the function to date picker helper class.
Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com>
Move referenceDate into i18n. Change referenceDate object type into DatePickerDate. Add tests for exact year difference of 50. Add clarifying comments. Change variables named "date" into "day". Change the name of the function "calculateYearBasedOnReferenceDate" into "getAdjustedYear". Add tests for out of range parameters for the function "getAdjustedYear".
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
|
Kudos, SonarCloud Quality Gate passed!
|
|
Hi @ugur-vaadin , this commit cannot be picked to 23.3 by this bot, can you take a look and pick it manually? |
|
This ticket/PR has been released with Vaadin 24.0.0. |








Description
Add custom reference date functionality. Instead of a fixed reference date of 1950, the default reference date can now be configured with a default value of the current date.
Add relevant tests.
Related to vaadin/flow-components#1107
Type of change
Checklist