mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
3c851293c1
no issue We were in a part-way state where some touched files had been (sometimes partially) migrated to explicit `this`. The codemod that was available has now fixed the formatting issues it had so it was a good time to run it. https://github.com/ember-codemods/ember-no-implicit-this-codemod - part of the migration path for https://github.com/emberjs/rfcs/pull/308 - starts to make template resolution rules more explicit - `<MyComponent />` - always a component - `{{my-component}}` - component or helper (components _must_ have a `-`. This style of component will go away once fully migrated to angle bracket components) - `{{value}}` - a helper or local template variable - `{{this.value}}` - reference to a property on the backing context (either a controller or a component JS file)
126 lines
4.2 KiB
Handlebars
126 lines
4.2 KiB
Handlebars
{{!--
|
|
NOTE: changes from ember-power-select:
|
|
- `extra` has our custom drag-tracking actions assigned to it
|
|
--}}
|
|
{{#if (hasBlock "inverse")}}
|
|
{{#gh-token-input/select
|
|
afterOptionsComponent=this.afterOptionsComponent
|
|
allowClear=this.allowClear
|
|
ariaDescribedBy=this.ariaDescribedBy
|
|
ariaInvalid=this.ariaInvalid
|
|
ariaLabel=this.ariaLabel
|
|
ariaLabelledBy=this.ariaLabelledBy
|
|
beforeOptionsComponent=this.beforeOptionsComponent
|
|
buildSelection=(action "buildSelection")
|
|
calculatePosition=this.calculatePosition
|
|
class=this.class
|
|
closeOnSelect=this.closeOnSelect
|
|
defaultHighlighted=this.defaultHighlighted
|
|
destination=destination
|
|
dir=this.dir
|
|
disabled=this.disabled
|
|
dropdownClass=this.dropdownClass
|
|
extra=(assign this.extra (hash
|
|
optionMouseDown=(action "optionMouseDown")
|
|
optionTouchStart=(action "optionTouchStart")
|
|
))
|
|
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
|
|
onfocus=(action "handleFocus")
|
|
oninput=this.oninput
|
|
onkeydown=(action "handleKeydown")
|
|
onopen=(action "handleOpen")
|
|
options=options
|
|
optionsComponent=this.optionsComponent
|
|
groupComponent=this.groupComponent
|
|
placeholder=placeholder
|
|
registerAPI=(readonly this.registerAPI)
|
|
renderInPlace=this.renderInPlace
|
|
required=this.required
|
|
scrollTo=this.scrollTo
|
|
search=search
|
|
searchEnabled=this.searchEnabled
|
|
searchField=this.searchField
|
|
searchMessage=this.searchMessage
|
|
searchPlaceholder=this.searchPlaceholder
|
|
selected=selected
|
|
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
|
|
as |option select|}}
|
|
{{yield option select}}
|
|
{{else}}
|
|
{{yield to="inverse"}}
|
|
{{/gh-token-input/select}}
|
|
{{else}}
|
|
{{#gh-token-input/select
|
|
afterOptionsComponent=this.afterOptionsComponent
|
|
allowClear=this.allowClear
|
|
ariaDescribedBy=this.ariaDescribedBy
|
|
ariaInvalid=this.ariaInvalid
|
|
ariaLabel=this.ariaLabel
|
|
ariaLabelledBy=this.ariaLabelledBy
|
|
beforeOptionsComponent=this.beforeOptionsComponent
|
|
buildSelection=(action "buildSelection")
|
|
calculatePosition=this.calculatePosition
|
|
class=this.class
|
|
closeOnSelect=this.closeOnSelect
|
|
defaultHighlighted=this.defaultHighlighted
|
|
destination=destination
|
|
dir=this.dir
|
|
disabled=this.disabled
|
|
dropdownClass=this.dropdownClass
|
|
extra=(assign this.extra (hash
|
|
optionMouseDown=(action "optionMouseDown")
|
|
optionTouchStart=(action "optionTouchStart")
|
|
))
|
|
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
|
|
onfocus=(action "handleFocus")
|
|
oninput=this.oninput
|
|
onkeydown=(action "handleKeydown")
|
|
onopen=(action "handleOpen")
|
|
options=options
|
|
optionsComponent=this.optionsComponent
|
|
groupComponent=this.groupComponent
|
|
placeholder=placeholder
|
|
registerAPI=(readonly this.registerAPI)
|
|
renderInPlace=this.renderInPlace
|
|
required=this.required
|
|
scrollTo=this.scrollTo
|
|
search=search
|
|
searchEnabled=this.searchEnabled
|
|
searchField=this.searchField
|
|
searchMessage=this.searchMessage
|
|
searchPlaceholder=this.searchPlaceholder
|
|
selected=selected
|
|
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
|
|
as |option select|}}
|
|
{{yield option select}}
|
|
{{/gh-token-input/select}}
|
|
{{/if}}
|