✨ 4.0.0
🤩 Now with date-range!
New:
- add date-range picker - can be enabled by setting
isRange
property - add
displayFormat
anddisplayFormatType
properties to separately control visuals representation and real value (propertiesformat
,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
toautocommit
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 byrequired
property) - method to register component as custom element has changed from
registerElement
toregisterSveltyPicker
. Also arguments has changed - completely rewritten event system due collisions with date-range picker, meaning
change
event is dispatched when expected based onmode
- removed
getLastPickerPhase
accessor due to rewritten event system - unify css variables, there was typo that some props started with
--std
instead of--sdt