2020-06-04 09:33:57 -04:00
|
|
|
{{#unless selectKit.isHidden}}
|
2020-02-03 08:22:14 -05:00
|
|
|
{{component selectKit.options.headerComponent
|
|
|
|
tabindex=tabindex
|
|
|
|
value=value
|
|
|
|
selectedContent=selectedContent
|
|
|
|
selectKit=selectKit
|
2021-02-15 06:32:09 -05:00
|
|
|
id=(concat selectKit.uniqueID "-header")
|
2017-10-19 15:51:08 -04:00
|
|
|
}}
|
|
|
|
|
2021-02-15 06:32:09 -05:00
|
|
|
{{#select-kit/select-kit-body selectKit=selectKit id=(concat selectKit.uniqueID "-body")}}
|
2020-03-09 08:44:34 -04:00
|
|
|
{{#if selectKit.isLoading}}
|
|
|
|
<span class="is-loading">
|
|
|
|
{{loading-spinner size="small"}}
|
|
|
|
</span>
|
|
|
|
{{else}}
|
2020-02-03 08:22:14 -05:00
|
|
|
{{#if selectKit.filter}}
|
|
|
|
{{#if selectKit.hasNoContent}}
|
|
|
|
<span class="no-content">
|
|
|
|
{{i18n "select_kit.no_content"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2017-10-19 15:51:08 -04:00
|
|
|
|
2020-02-03 08:22:14 -05:00
|
|
|
{{#each collections as |collection|}}
|
|
|
|
{{component (component-for-collection collection.identifier selectKit)
|
|
|
|
collection=collection
|
|
|
|
selectKit=selectKit
|
|
|
|
value=value
|
|
|
|
}}
|
|
|
|
{{/each}}
|
2020-03-09 08:44:34 -04:00
|
|
|
{{/if}}
|
2020-02-03 08:22:14 -05:00
|
|
|
{{/select-kit/select-kit-body}}
|
|
|
|
|
|
|
|
<div class="select-kit-wrapper"></div>
|
|
|
|
{{/unless}}
|