09435ecf76
no issue Keeps component JS backing files and template files in the same directory which avoids hunting across directories when working with components. Also lets you see all components when looking at one directory, whereas previously template-only or js-only components may not have been obvious without looking at both directories. - ran [codemod](https://github.com/ember-codemods/ember-component-template-colocation-migrator/) for app-level components - manually moved in-repo-addon component templates in `lib/koenig-editor` - removed all explicit `layout` imports as JS/template associations are now made at build-time removing the need for them - updated `.embercli` to default to new flat component structure
64 lines
2.4 KiB
Handlebars
64 lines
2.4 KiB
Handlebars
{{!--
|
|
NOTE: changes from ember-power-select template...
|
|
- `extra` has our custom drag-tracking actions assigned to it
|
|
--}}
|
|
<PowerSelect
|
|
@triggerRole={{@triggerRole}}
|
|
@ariaDescribedBy={{@ariaDescribedBy}}
|
|
@ariaInvalid={{@ariaInvalid}}
|
|
@ariaLabel={{@ariaLabel}}
|
|
@ariaLabelledBy={{@ariaLabelledBy}}
|
|
@afterOptionsComponent={{@afterOptionsComponent}}
|
|
@allowClear={{@allowClear}}
|
|
@beforeOptionsComponent={{or @beforeOptionsComponent null}}
|
|
@buildSelection={{or @buildSelection this.defaultBuildSelection}}
|
|
@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}}
|
|
@triggerClass="ember-power-select-multiple-trigger {{@triggerClass}}"
|
|
@triggerComponent={{component (or @triggerComponent "power-select-multiple/trigger") tabindex=@tabindex}}
|
|
@triggerId={{@triggerId}}
|
|
@verticalPosition={{@verticalPosition}}
|
|
@tabindex={{this.computedTabIndex}}
|
|
...attributes as |option select|>
|
|
{{yield option select}}
|
|
</PowerSelect> |