v0.8.0
版本发布时间: 2016-01-19 21:12:14
cibernox/ember-power-select最新发布版本:v8.3.1(2024-09-09 14:37:17)
This is most likely the last release with breaking changes in the public API before 1.0, so you should feel safe already using it.
The "semi-public" API received by the components that are customizable by the user is approaching to stability but might take another version or two.
Below, a list of all changes since 0.7.2:
- [INTERNAL] Update to ember-cli 2.3.0-beta.1
- [ENHANCEMENT] The mouseup over on element of the list doesn't selects that element if the mouse is still in the same coordinates (+/- 2px) of the mousedown that opened the component. This allows the options list to be rendered over the trigger and not wrongly select the element above the trigger
- [BUGFIX] default
beforeOptions
component only clear the search on destroy when the search is enabled. - [BUGFIX] Not it's responsability of the component holding the searchbox to clear (or not) clear the search when the component is closed. The default components (single/multiple) do it. Maybe breaking??
- [BUGFIX] Trigger should use clearfix so when the amount of options selected (multiple selects) overflows the available width is grows.
- [BUGFIX] Do not use
let
in node code (unless you want node 0.12 to break) - [BUGFIX] Ensure that the
included
hook works when invoked from another addon (being a dependency) instead of directly by the consumer app, and also that the function is a noop the 2nd time it's invoked. - [BUGFIX] Not returning from the
search
action but instead settingoptions
to a promise does not prevent subsequent searches. - [BUGFIX] Pressing Backspace to delete the last selected option in multiple select when options are not
plain strings now works as expected. It makes
searchField
mandatory, and asserts its presence. - [INTERNAL] Refactor internals to don't force people providing custom components for slots to
implement that much logic on it. Also logic for the
closeOnSelect
configuration lies in a single place. - [INTERNAL] Remove unnecesary action. Makes customization of triggerComponent easier.
- [BUGFIX] Do not rely on significant whitepace + inlineBlock for styling selections in multiple select. Use float: left
- [FEATURE] Added a new slot that can be customized with the
selectedItemComponent
. This allows to customize the markup of the selected option(s) without forcing the user to customize the entire trigger component. This doesn't enable any new pattern but makes customization easier. - [BREAKING]
dropdownPosition
is nowverticalPosition
. It will continue to work until 0.9 but throwing a deprecation warning. - [BUGFIX]
{{power-select-multiple}}
has fallback values for the component names. Makes it composable. - [BREAKING] Renamed
selectedComponent
totriggerComponent
, which is more accurate, in preparation to add aselectedItemComponent
soon.selectedComponent
continues to work, but throws a deprecation. - [FEATURE] Add new sass variables for customize the border & padding of each option in multiple mode, and the padding of the trigger in ltr/rtl modes.
- [INTERNAL] Update ember-cli
- [BUGFIX] Update deps to ember-basic-dropdown 0.7.2. Fixed duplicated wormhole placeholder when ember-basic-dropdown is also a direct dependency of the project.
- [BREAKING] Eliminame multiple mode and create
{{#power-select-multiple}}
as a separated component for dogfooding - [BREAKING] The name of the selected property inside the custom components is now
selected
instead ofselection
for consistency with the external API. - [BREAKING] More bahaviour has been transfered from the main components to the default implementation
of the
selectedComponent
,optionsComponent
andbeforeOptionsComponent
. This makes the component more flexible but less straigtforward to extend. The API for extending the component was never publish but still, expect things to break.