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