Skip to content

Releases: cibernox/ember-power-select

Russian Salad

17 Dec 10:06
Compare
Choose a tag to compare

Mostly bugfixing and some testing refactors.

  • [INTERNAL] Make integration test helpers runloop aware to dry tests.
  • [BUGFIX] The highliged element is reseted to default when the component is closed.
  • [BUGFIX] Update ember-basic-dropdown to defaultPrevent the behavior if the mousedown that opens the
    component, so the user does not select text if moves the finger before releasing the mouse.

Stuffed courgettes

15 Dec 11:11
Compare
Choose a tag to compare
  • [FEATURE] Finalize implementation of selectChoose and selectSearch that work in all supported
    versions of ember. Added docs for them.
  • [FEATURE] Add initial implementation of selectChoose acceptance helper to make
    interaction with the component nicer.
  • [FEATURE] Add ARIA roles for basic accesibility. Still more work on this area.
  • [FEATURE] Expose test helpers to the consumer app to make integration tests nicer.
  • [BUGFIX] Use onmousedown also in clear button (single and multiple modes) to ensure list is not opened.
  • [BREAKING] EPS no longer exports the defaultConfig because it's not needed anymore.
    Passing an undefined values for default values does not overrides the default values (null/false do).
    This makes composability easy because creating a wrapper around the component can just forward
    all properties {{#power-select searchEnabled=searchEnabled selectedComponent=selectedComponent}}
    without worrying about if this values is defined or not.
  • [BUGFIX] On a select with a selected value, if the selected value is not among the results, the
    first results becomes the highlighted one. Before this fix none was highlighted.
  • [BREAKING] The event the triggers the selection of an item is mouseup, not click, meaning that the only
    thing that matters is where the finger is lifted. This is how real selects work in chrome/safari/firefox,
    and so should this. Given that the component opens on mousedown, this allows the user to open and select
    with only one movement.
    Real usage shouldn't break, not acceptance tests, but integration tests using $().click() will. Replace
    this $().mouseup().
  • [FEATURE] EPS now accepts a triggerClass which is applied to the trigger.
  • [FEATURE] All actions (onchange, onkeydown and onfocus) now receive a richer public API object
    that is identical in shape to the one they received before but also contains highlight(option)
    and search(term) actions
  • [BREAKING] Delegate the rendering of the list's topmost element to optionsComponent. This
    allows a better customization of the list. If you use optionsComponent make sure you make it render
    the topmost element, e.g an <ul>.
  • [BREAKING] Update to ember-basic-dropdown 0.7.0-beta.1. This means that the component is opened/
    closed using mousedown instead of click. This makes the component feel more snappy. It is unlikeliy
    that this breaks real world usage but might break integration tests of people where people rely
    on $('.ember-power-select-trigger').click().
  • [FEATURE] New action: onfocus. Unsurprisingly it is invoked when the component gains focus.
    It receives (dropdown, event) and can be used, by example, to open the component on focus.
  • [FEATURE] EPS now accepts a opened boolean property used to open/close the component
    without triggering events on it. Useful to render the component already opened.

Honest Hamburger

11 Dec 16:55
Compare
Choose a tag to compare
Honest Hamburger Pre-release
Pre-release
  • [BUGFIX] On a select with a selected value, if the selected value is not among the results, the
    first results becomes the highlighted one. Before this fix none was highlighted.

Salmon crumble

08 Dec 20:48
Compare
Choose a tag to compare
Salmon crumble Pre-release
Pre-release

This version includes new features and some significant changes

  • [BREAKING] Update to ember-basic-dropdown 0.7.0-beta.1. This means that the component is opened/
    closed using mousedown instead of click. This makes the component feel more snappy. It is unlikeliy
    that this breaks real world usage but might break integration tests of people where people rely
    on $('.ember-power-select-trigger').click().
  • [FEATURE] New action: onfocus. Unsurprisingly it is invoked when the component gains focus.
    It receives (dropdown, event) and can be used, by example, to open the component on focus.
  • [FEATURE] EPS now accepts a opened boolean property used to open/close the component
    without triggering events on it. Useful to render the component already opened.

Raisukaree Chicken

04 Dec 14:43
Compare
Choose a tag to compare
v0.6.3

Released v0.6.3

Importance potatoes

02 Dec 00:11
Compare
Choose a tag to compare

This version includes internal refactors while components API approaches stability, as long as some features:

  • [FEATURE] The user can provide a onkeydown action that will be invoked whenever the user
    presses a key being the component (of the searchbox inside) focused. This enables to create
    selects components that can create options on the fly (tags).
    This action received the dropdown as first argument and the event as second argument
  • [BUGFIX] Update ember-basic-dropdown to be sure dropdown reposition is runloop aware.
  • [BUGFIX] Component not detects additions additions/removals to the options, not just substitutions
    of the entire collection.
  • [BUGFIX] The overflow-y should be auto to not show the bar until it's required by the height of the
    option list.
  • [BUGFIX] Remove loading state if a promise fulfils after the dropdown has been closed
  • [BUGFIX] Update to ember-cli 1.13.13 to remove [DEPRECATED] this.Funnel ... message.
  • [BUGFIX] Fix styles when rendering the component in place
  • [BUGFIX] Fix position calculation in firefox.
  • [BUGFIX] Using dropdownPosition=above|below adds the proper class names to the component.
  • [BUGFIX] Add missing this._super.included(app); in the included hook so runtime dependencies are
    required.
  • [BREAKING CHANGE] The arguments received by the selectComponent and optionsComponent have changed
    significantly as a result of an internal refactor. It should not affect to people that have not created
    their own customized versions of ember-power-select.
  • [BUGFIX] Ensure that open the dropdown after a search does not clear the results. Results are not
    cleared when the component is closed, like the searchText.
  • [BUGFIX] Ensure options and search play nicely toguether. The given options are the initial set of
    results until the user performs the first search. From that point on they diverge.
  • [BUGFIX] Not return from the search action is now legal. If you do so, you need to take care
    of updating the options yourself, and unless you make options a promise, you will loose the
    loading state.