Skip to content

✨ 4.0.0

Compare
Choose a tag to compare
@mskocik mskocik released this 24 Jul 11:44
· 130 commits to main since this release

🤩 Now with date-range!

New:

  • add date-range picker - can be enabled by setting isRange property
  • add displayFormat and displayFormatType properties to separately control visuals representation and real value (properties format, formatType)
  • timepicker - trigger change event only on click, not on mousemove
  • add slots
  • add prop disabledDatesFn to disable dates.
  • add prop manualInput to have ability to enter the date manually

Breaking changes:

  • rename autoclose to autocommit to better reflect functionality it provides. Because it's not only about closing popup.
  • removed positionFn property
  • removed clearToggle property (now this functionality - ability to clear the value is controlled by required property)
  • method to register component as custom element has changed from registerElement to registerSveltyPicker. Also arguments has changed
  • completely rewritten event system due collisions with date-range picker, meaning change event is dispatched when expected based on mode
  • removed getLastPickerPhase accessor due to rewritten event system
  • unify css variables, there was typo that some props started with --std instead of --sdt

Fixes:

  • keyboard navigation when minuteIncrement is not 1 (#72)
  • set hour only on mouse release (#58)
  • prevent dispatching change event repeatedly (#57)