2021-08-23 04:44:19 -04:00
|
|
|
<div class="select-kit-header-wrapper">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#each this.icons as |icon|}}
|
2021-08-23 04:44:19 -04:00
|
|
|
{{d-icon icon}}
|
2017-11-21 05:53:09 -05:00
|
|
|
{{/each}}
|
2020-02-03 08:22:14 -05:00
|
|
|
|
2023-07-25 11:00:02 -04:00
|
|
|
{{#if this.selectKit.options.useHeaderFilter}}
|
|
|
|
<div class="select-kit-header--filter">
|
|
|
|
{{#if this.selectedContent.length}}
|
|
|
|
{{#each this.selectedContent as |item|}}
|
|
|
|
{{component
|
|
|
|
this.selectKit.options.selectedChoiceComponent
|
|
|
|
item=item
|
|
|
|
selectKit=this.selectKit
|
|
|
|
}}
|
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
2021-08-23 04:44:19 -04:00
|
|
|
|
2023-07-25 11:00:02 -04:00
|
|
|
{{component
|
|
|
|
this.selectKit.options.filterComponent
|
|
|
|
selectKit=this.selectKit
|
|
|
|
id=(concat this.selectKit.uniqueID "-filter")
|
2023-07-26 11:43:46 -04:00
|
|
|
hidePlaceholderWithSelection=true
|
2023-07-25 11:00:02 -04:00
|
|
|
}}
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<MultiSelect::FormatSelectedContent
|
|
|
|
@content={{or this.selectedContent this.selectKit.noneItem}}
|
|
|
|
@selectKit={{this.selectKit}}
|
|
|
|
/>
|
|
|
|
|
|
|
|
{{d-icon this.caretIcon class="caret-icon"}}
|
|
|
|
{{/if}}
|
2017-11-26 11:21:39 -05:00
|
|
|
</div>
|