Skip to content

Releases: mskocik/svelecte

v5.1.4

13 Jan 20:38
Compare
Choose a tag to compare

Fixes:

  • set (internal) fetch related initial value only in fetch mode to prevent updating value externally (#276)

v5.1.3

13 Jan 14:56
Compare
Choose a tag to compare

Fixes:

Multiple fixes related to creatable:

  • allow to select existing item when createFilter returns true (#275)
  • remove newly created item from list only when keepCreated is false
  • use proxy-wrapped newly created option to properly reflect changes in dropdown
  • allow keyboard nav also on creatable-row
  • allow to create item in fetch mode without need to wait for request to finish

v5.1.2

06 Jan 09:16
Compare
Choose a tag to compare

Fixes

  • update (internal) searchable props when options property changes (#274)

v5.1.1

18 Dec 10:24
Compare
Choose a tag to compare

Fixes:

  • reflect when value is cleared in multiselect (#272)

v5.1.0

13 Dec 12:00
Compare
Choose a tag to compare

New:

  • add keepSelectionInList property for SearchProps (PR #270)

v5.0.1

10 Dec 17:16
Compare
Choose a tag to compare

Fixes:

  • avoid selection removal when changing labelField (PR #269 by @petran123)

v4.5.1

10 Dec 17:16
Compare
Choose a tag to compare

Fixes:

  • avoid selection removal when changing labelField (PR #269 by @petran123)

v5.0.0

06 Dec 15:37
Compare
Choose a tag to compare

Rune mode enabled ⚡

It wasn't easy or quick, but finally it's here!

Breaking changes from v4💥

  • svelte 5 only
  • drop dispatching custom events through createEventDispatcher. Callback methods are expected instead. Previous event names has now added prefix on and are properly capitalized. This is a list of event to callback mapping:
    • change changed to onChange
    • focus changed to onFocus
    • blur changed to onBlur
    • createoption changed to onCreateOption
    • createFail changed to onCreateFail
    • enterKey changed to onEnterKey
    • fetch changed to onFetch
    • fetchError changed to onFetchError
    • invalidValue changed to onInvalidValue
  • drop support for svelte-use-form validation library (remove triggering input event on <select> element)
  • replace slots with snippets
  • remove svelte-tiny-virtual-list dependency, provide own implementation
  • remove vlHeight property, related to removal of virtual list dependency, use --max-height css property instead
  • do not automatically set multiple property if name included "[]" meaning multiple items when submitting form.

New:

  • add i18n.aria_removeItemLabel function to avoid svelte compiler warning
  • add emitValues property to emit values instead of objects
  • add html renderer since default one escapes following HTML entities: <, >, &, ' and "
  • add properties for additional CSS styling:
    • controlClass for .sv-control
    • dropdownClass for .sv_dropdown
    • optionClass for .sv-item--wrap.in-dropdown elements

v4.5.0

05 Dec 18:06
Compare
Choose a tag to compare

New:

  • add property deselectMode to define how component should behave on de-selecting items. Fixes #265 and allow both modes requested in #256

Fixes:

  • reverted fix of #256.. Desired behavior can be achieved by deselectMode property now

v4.4.1

29 Oct 17:41
Compare
Choose a tag to compare

Fixes:

  • prevent (both mouse and keyboard-triggered) item creation, if createFilter returns true (#260)