platform icon indicating copy to clipboard operation
platform copied to clipboard

APIs for handling time and date separately in Date Time Picker

Open rolfsmeds opened this issue 2 years ago • 0 comments
trafficstars

Description

APIs in Date Time Picker for getting, setting and listening to changes in the date and time values separately.

Use cases

As a developer I want to listen to changes in the date sub-field, and set the time value separately So that I can modify the default time based on the selected date

Use cases

As a developer I want to set a default date or time So that I can give the user that convenience without making the field "filled"

Acceptance criteria

  • [ ] Java API for setting the date and time values separately: setDate(LocalDate), setTime(LocalTime)
  • [ ] Flow events for listening to data and time changes separately :addDateValueChangeListener, addTimeValueChangeListener, DateValueChangeEvent, TimeValueChangeEvent
  • [ ] WC API for setting the date and time values separately: date and time string properties corresponding to the value properties in vaadin-date-picker and vaadin-time-picker respectively
  • [ ] Clientside events for the date and time value changes: date-value-changed, time-value-changed
  • [ ] When both fields are set, and the regular valuechange event fires, it's fired after the new events

General criteria

  • [ ] APIs reviewed

  • [ ] UX/DX tests in Alpha

  • [ ] Documentation: Javadoc should be sufficient for these.

  • [ ] How to test?

  • [ ] Limitations:

Security

  • [ ] Security implications have been taken into account (elaborate or link to product security requirement specification if there are implications)

rolfsmeds avatar Jan 20 '23 10:01 rolfsmeds