2017-10-31 12:10:49 +03:00
|
|
|
{{!--
|
2020-01-15 16:53:51 +03:00
|
|
|
NOTE: changes from ember-power-select template...
|
2017-10-31 12:10:49 +03:00
|
|
|
- `extra` has our custom drag-tracking actions assigned to it
|
2020-01-15 16:53:51 +03:00
|
|
|
--}}
|
|
|
|
<PowerSelect
|
|
|
|
@triggerRole={{@triggerRole}}
|
|
|
|
@ariaDescribedBy={{@ariaDescribedBy}}
|
|
|
|
@ariaInvalid={{@ariaInvalid}}
|
|
|
|
@ariaLabel={{@ariaLabel}}
|
|
|
|
@ariaLabelledBy={{@ariaLabelledBy}}
|
|
|
|
@afterOptionsComponent={{@afterOptionsComponent}}
|
|
|
|
@allowClear={{@allowClear}}
|
2020-05-18 00:35:53 +03:00
|
|
|
@beforeOptionsComponent={{or @beforeOptionsComponent null}}
|
|
|
|
@buildSelection={{or @buildSelection this.defaultBuildSelection}}
|
2020-01-15 16:53:51 +03:00
|
|
|
@calculatePosition={{@calculatePosition}}
|
|
|
|
@closeOnSelect={{@closeOnSelect}}
|
|
|
|
@defaultHighlighted={{@defaultHighlighted}}
|
|
|
|
@destination={{@destination}}
|
|
|
|
@disabled={{@disabled}}
|
|
|
|
@dropdownClass={{@dropdownClass}}
|
|
|
|
@extra={{assign @extra (hash
|
|
|
|
optionMouseDown=this.optionMouseDown
|
|
|
|
optionTouchStart=this.optionTouchStart
|
|
|
|
)}}
|
|
|
|
@groupComponent={{@groupComponent}}
|
|
|
|
@horizontalPosition={{@horizontalPosition}}
|
|
|
|
@initiallyOpened={{@initiallyOpened}}
|
|
|
|
@loadingMessage={{@loadingMessage}}
|
|
|
|
@matcher={{@matcher}}
|
|
|
|
@matchTriggerWidth={{@matchTriggerWidth}}
|
|
|
|
@noMatchesMessage={{@noMatchesMessage}}
|
|
|
|
@onBlur={{@onBlur}}
|
|
|
|
@onChange={{@onChange}}
|
|
|
|
@onClose={{@onClose}}
|
|
|
|
@onFocus={{this.handleFocus}}
|
|
|
|
@onInput={{@onInput}}
|
|
|
|
@onKeydown={{this.handleKeydown}}
|
|
|
|
@onOpen={{this.handleOpen}}
|
|
|
|
@options={{@options}}
|
|
|
|
@optionsComponent={{@optionsComponent}}
|
|
|
|
@placeholder={{@placeholder}}
|
|
|
|
@placeholderComponent={{@placeholderComponent}}
|
|
|
|
@preventScroll={{@preventScroll}}
|
|
|
|
@registerAPI={{@registerAPI}}
|
|
|
|
@renderInPlace={{@renderInPlace}}
|
|
|
|
@required={{@required}}
|
|
|
|
@scrollTo={{@scrollTo}}
|
|
|
|
@search={{@search}}
|
|
|
|
@searchEnabled={{@searchEnabled}}
|
|
|
|
@searchField={{@searchField}}
|
|
|
|
@searchMessage={{@searchMessage}}
|
|
|
|
@searchPlaceholder={{@searchPlaceholder}}
|
|
|
|
@selected={{@selected}}
|
|
|
|
@selectedItemComponent={{@selectedItemComponent}}
|
|
|
|
@eventType={{@eventType}}
|
|
|
|
@title={{@title}}
|
2020-05-18 00:35:53 +03:00
|
|
|
@triggerClass="ember-power-select-multiple-trigger {{@triggerClass}}"
|
|
|
|
@triggerComponent={{component (or @triggerComponent "power-select-multiple/trigger") tabindex=@tabindex}}
|
2020-01-15 16:53:51 +03:00
|
|
|
@triggerId={{@triggerId}}
|
|
|
|
@verticalPosition={{@verticalPosition}}
|
|
|
|
@tabindex={{this.computedTabIndex}}
|
|
|
|
...attributes as |option select|>
|
2017-10-31 12:10:49 +03:00
|
|
|
{{yield option select}}
|
2020-01-15 16:53:51 +03:00
|
|
|
</PowerSelect>
|