2021-08-23 16:44:19 +08:00
|
|
|
<div class="select-kit-header-wrapper">
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#each this.icons as |icon|}}
|
2021-08-23 16:44:19 +08:00
|
|
|
{{d-icon icon}}
|
2017-11-21 18:53:09 +08:00
|
|
|
{{/each}}
|
2020-02-03 21:22:14 +08:00
|
|
|
|
2023-07-25 23:00:02 +08: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 16:44:19 +08:00
|
|
|
|
2023-07-25 23:00:02 +08:00
|
|
|
{{component
|
|
|
|
this.selectKit.options.filterComponent
|
|
|
|
selectKit=this.selectKit
|
|
|
|
id=(concat this.selectKit.uniqueID "-filter")
|
2023-07-26 23:43:46 +08:00
|
|
|
hidePlaceholderWithSelection=true
|
2023-07-25 23:00:02 +08: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-27 00:21:39 +08:00
|
|
|
</div>
|