2017-10-31 12:10:49 +03:00
|
|
|
{{!--
|
|
|
|
NOTE: changes from ember-power-select:
|
|
|
|
- `extra` has our custom drag-tracking actions assigned to it
|
|
|
|
--}}
|
|
|
|
{{#if (hasBlock "inverse")}}
|
|
|
|
{{#gh-token-input/select
|
2019-12-13 17:20:29 +03:00
|
|
|
afterOptionsComponent=this.afterOptionsComponent
|
|
|
|
allowClear=this.allowClear
|
|
|
|
ariaDescribedBy=this.ariaDescribedBy
|
|
|
|
ariaInvalid=this.ariaInvalid
|
|
|
|
ariaLabel=this.ariaLabel
|
|
|
|
ariaLabelledBy=this.ariaLabelledBy
|
|
|
|
beforeOptionsComponent=this.beforeOptionsComponent
|
2017-10-31 12:10:49 +03:00
|
|
|
buildSelection=(action "buildSelection")
|
2019-12-13 17:20:29 +03:00
|
|
|
calculatePosition=this.calculatePosition
|
|
|
|
class=this.class
|
|
|
|
closeOnSelect=this.closeOnSelect
|
|
|
|
defaultHighlighted=this.defaultHighlighted
|
2017-10-31 12:10:49 +03:00
|
|
|
destination=destination
|
2019-12-13 17:20:29 +03:00
|
|
|
dir=this.dir
|
|
|
|
disabled=this.disabled
|
|
|
|
dropdownClass=this.dropdownClass
|
|
|
|
extra=(assign this.extra (hash
|
2017-10-31 12:10:49 +03:00
|
|
|
optionMouseDown=(action "optionMouseDown")
|
|
|
|
optionTouchStart=(action "optionTouchStart")
|
|
|
|
))
|
2019-12-13 17:20:29 +03:00
|
|
|
horizontalPosition=this.horizontalPosition
|
|
|
|
initiallyOpened=this.initiallyOpened
|
|
|
|
loadingMessage=this.loadingMessage
|
|
|
|
matcher=this.matcher
|
|
|
|
matchTriggerWidth=this.matchTriggerWidth
|
|
|
|
noMatchesMessage=this.noMatchesMessage
|
|
|
|
onblur=this.onblur
|
|
|
|
onchange=this.onchange
|
|
|
|
onclose=this.onclose
|
2017-10-31 12:10:49 +03:00
|
|
|
onfocus=(action "handleFocus")
|
2019-12-13 17:20:29 +03:00
|
|
|
oninput=this.oninput
|
2017-10-31 12:10:49 +03:00
|
|
|
onkeydown=(action "handleKeydown")
|
|
|
|
onopen=(action "handleOpen")
|
|
|
|
options=options
|
2019-12-13 17:20:29 +03:00
|
|
|
optionsComponent=this.optionsComponent
|
|
|
|
groupComponent=this.groupComponent
|
2017-10-31 12:10:49 +03:00
|
|
|
placeholder=placeholder
|
2019-12-13 17:20:29 +03:00
|
|
|
registerAPI=(readonly this.registerAPI)
|
|
|
|
renderInPlace=this.renderInPlace
|
|
|
|
required=this.required
|
|
|
|
scrollTo=this.scrollTo
|
2017-10-31 12:10:49 +03:00
|
|
|
search=search
|
2019-12-13 17:20:29 +03:00
|
|
|
searchEnabled=this.searchEnabled
|
|
|
|
searchField=this.searchField
|
|
|
|
searchMessage=this.searchMessage
|
|
|
|
searchPlaceholder=this.searchPlaceholder
|
2017-10-31 12:10:49 +03:00
|
|
|
selected=selected
|
2019-12-13 17:20:29 +03:00
|
|
|
selectedItemComponent=this.selectedItemComponent
|
|
|
|
tabindex=this.computedTabIndex
|
|
|
|
tagName=this.tagName
|
|
|
|
triggerClass=this.concatenatedTriggerClass
|
|
|
|
triggerComponent=(component this.triggerComponent tabindex=this.tabindex)
|
|
|
|
triggerId=this.triggerId
|
|
|
|
verticalPosition=this.verticalPosition
|
2017-10-31 12:10:49 +03:00
|
|
|
as |option select|}}
|
|
|
|
{{yield option select}}
|
|
|
|
{{else}}
|
|
|
|
{{yield to="inverse"}}
|
|
|
|
{{/gh-token-input/select}}
|
|
|
|
{{else}}
|
|
|
|
{{#gh-token-input/select
|
2019-12-13 17:20:29 +03:00
|
|
|
afterOptionsComponent=this.afterOptionsComponent
|
|
|
|
allowClear=this.allowClear
|
|
|
|
ariaDescribedBy=this.ariaDescribedBy
|
|
|
|
ariaInvalid=this.ariaInvalid
|
|
|
|
ariaLabel=this.ariaLabel
|
|
|
|
ariaLabelledBy=this.ariaLabelledBy
|
|
|
|
beforeOptionsComponent=this.beforeOptionsComponent
|
2017-10-31 12:10:49 +03:00
|
|
|
buildSelection=(action "buildSelection")
|
2019-12-13 17:20:29 +03:00
|
|
|
calculatePosition=this.calculatePosition
|
|
|
|
class=this.class
|
|
|
|
closeOnSelect=this.closeOnSelect
|
|
|
|
defaultHighlighted=this.defaultHighlighted
|
2017-10-31 12:10:49 +03:00
|
|
|
destination=destination
|
2019-12-13 17:20:29 +03:00
|
|
|
dir=this.dir
|
|
|
|
disabled=this.disabled
|
|
|
|
dropdownClass=this.dropdownClass
|
|
|
|
extra=(assign this.extra (hash
|
2017-10-31 12:10:49 +03:00
|
|
|
optionMouseDown=(action "optionMouseDown")
|
|
|
|
optionTouchStart=(action "optionTouchStart")
|
|
|
|
))
|
2019-12-13 17:20:29 +03:00
|
|
|
horizontalPosition=this.horizontalPosition
|
|
|
|
initiallyOpened=this.initiallyOpened
|
|
|
|
loadingMessage=this.loadingMessage
|
|
|
|
matcher=this.matcher
|
|
|
|
matchTriggerWidth=this.matchTriggerWidth
|
|
|
|
noMatchesMessage=this.noMatchesMessage
|
|
|
|
onblur=this.onblur
|
|
|
|
onchange=this.onchange
|
|
|
|
onclose=this.onclose
|
2017-10-31 12:10:49 +03:00
|
|
|
onfocus=(action "handleFocus")
|
2019-12-13 17:20:29 +03:00
|
|
|
oninput=this.oninput
|
2017-10-31 12:10:49 +03:00
|
|
|
onkeydown=(action "handleKeydown")
|
|
|
|
onopen=(action "handleOpen")
|
|
|
|
options=options
|
2019-12-13 17:20:29 +03:00
|
|
|
optionsComponent=this.optionsComponent
|
|
|
|
groupComponent=this.groupComponent
|
2017-10-31 12:10:49 +03:00
|
|
|
placeholder=placeholder
|
2019-12-13 17:20:29 +03:00
|
|
|
registerAPI=(readonly this.registerAPI)
|
|
|
|
renderInPlace=this.renderInPlace
|
|
|
|
required=this.required
|
|
|
|
scrollTo=this.scrollTo
|
2017-10-31 12:10:49 +03:00
|
|
|
search=search
|
2019-12-13 17:20:29 +03:00
|
|
|
searchEnabled=this.searchEnabled
|
|
|
|
searchField=this.searchField
|
|
|
|
searchMessage=this.searchMessage
|
|
|
|
searchPlaceholder=this.searchPlaceholder
|
2017-10-31 12:10:49 +03:00
|
|
|
selected=selected
|
2019-12-13 17:20:29 +03:00
|
|
|
selectedItemComponent=this.selectedItemComponent
|
|
|
|
tabindex=this.computedTabIndex
|
|
|
|
tagName=this.tagName
|
|
|
|
triggerClass=this.concatenatedTriggerClass
|
|
|
|
triggerComponent=(component this.triggerComponent tabindex=this.tabindex)
|
|
|
|
triggerId=this.triggerId
|
|
|
|
verticalPosition=this.verticalPosition
|
2017-10-31 12:10:49 +03:00
|
|
|
as |option select|}}
|
|
|
|
{{yield option select}}
|
|
|
|
{{/gh-token-input/select}}
|
|
|
|
{{/if}}
|