Skip to content

Releases: mskocik/svelty-picker

v5.2.0

06 Nov 13:30

Choose a tag to compare

New:

  • add option positionResolver to provide custom popup positioning action. Needed to solve use-case mentioned in #148

v5.1.1

05 Nov 16:02

Choose a tag to compare

Fixes:

v5.1.0

18 Oct 19:11

Choose a tag to compare

New:

  • add cancel event (PR #143)

Fixes:

  • re-introduce clearToggle functionality (#142)
  • set "end" calendar to proper end date when toggling modes (#144)

v5.0.0

30 Sep 17:27

Choose a tag to compare

New

  • add hour only mode (hourMode prop) (#136) (#140) by @dreinert1994
  • add thai πŸ‡ΉπŸ‡­ (th) i18n (#139)
  • add dateChange event on change with additional details.

Breaking changes

  • change CSS properties. Completely refactored and unified, with cleaner description. Refer to Theme page for current props (#137). Huge thanks to @Mero-Plaform for it.

Fixes

  • apply todayBtnClasses and clearBtnClasses to OK and Cancel buttons as well (#132)
  • properly init value from initialDate date prop

v4.1.4

30 Aug 19:24

Choose a tag to compare

Fixes

  • add file extensions to all files, #131

v4.1.3

29 Aug 08:22

Choose a tag to compare

Fixes:

  • add default entry for exports > . (#116) while solution has been mentioned in #128

v4.1.2

23 Aug 16:01

Choose a tag to compare

Fixes

  • fixes date sorting in range picker mode for date formats (#124)

v4.1.1

23 Aug 11:33

Choose a tag to compare

Fixes:

  • add --sdt-header-color to : separating hours and minutes
  • add --sdt-color-time for better customization of hour/minute buttons

v4.1.0

22 Aug 12:32

Choose a tag to compare

New:

  • add new CSS properties as requested in #118
  • new locales: danish πŸ‡©πŸ‡° (da), swedish πŸ‡ΈπŸ‡ͺ (sw) and turkish πŸ‡ΉπŸ‡· (tr)

✨ 4.0.0

24 Jul 11:44

Choose a tag to compare

🀩 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)