eufemia icon indicating copy to clipboard operation
eufemia copied to clipboard

feat(DatePicker): Convert to functional components with typescript and hooks

Open joakbjerk opened this issue 1 year ago • 11 comments

  • [x] DatePicker
  • [x] DatePickerAddon
  • [x] DatePickerCalc
  • [x] DatePickerCalendar
  • [x] DatePickerContext
  • [x] DatePickerFooter
  • [x] DatePickerInput
  • [x] DatePickerProvider
  • [x] DatePickerRange
  • [x] Fix tests
  • [x] Fix types
  • [x] Fix onClickOutside functionality
  • [x] Make tests for onClickOutside
  • [x] Fix DatePickerProvider getDerivedStateFromProps logic
  • [x] Fix DatePickerInput mask and value logic
  • [x] Fix DatePickerInput paste functionality
  • [x] General Bugfixes
  • [x] Move provider date logic to hook
  • [x] Move provider view logic to hook
  • [x] Move date correction logic closer to trigger
  • [x] Move lastEventCallCache to hook
  • [x] Fix callOnChangeHandler callback functionality
  • [x] Fix Input onChange handling
  • [x] Wrap necessary functions or values in useCallback or useMemo hooks
  • [x] Remove locale prop, and depricate (Solved by only importing the two relevant functions used by the Locale object)
  • [x] Replace all any types with more accurate ones
  • [x] Fix Range Keyboard functionality
  • [x] Clean up mess 🙏
  • [x] fix type errors
  • [x] Fix shortcuts
  • [x] Fix cancel button
  • [x] Stop cancel button from resetting date

joakbjerk avatar Oct 26 '23 10:10 joakbjerk