2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.selectKit.options.showFullTitle}}
|
|
|
|
<div
|
|
|
|
lang={{this.lang}}
|
|
|
|
title={{this.title}}
|
|
|
|
data-value={{this.value}}
|
|
|
|
data-name={{this.name}}
|
|
|
|
role="option"
|
|
|
|
class="select-kit-selected-name selected-name choice"
|
|
|
|
>
|
|
|
|
{{#if this.item.icon}}
|
|
|
|
{{d-icon this.item.icon}}
|
2020-05-15 11:36:00 -04:00
|
|
|
{{/if}}
|
2020-02-03 08:22:14 -05:00
|
|
|
|
2020-05-15 11:36:00 -04:00
|
|
|
<span class="name">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{this.label}}
|
2020-05-15 11:36:00 -04:00
|
|
|
</span>
|
2020-02-03 08:22:14 -05:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.shouldDisplayClearableButton}}
|
|
|
|
<DButton
|
|
|
|
@class="btn-clear"
|
|
|
|
@icon="times"
|
|
|
|
@action={{this.selectKit.deselect}}
|
|
|
|
@actionParam={{this.item}}
|
|
|
|
@ariaLabel="clear_input"
|
|
|
|
/>
|
2020-02-03 08:22:14 -05:00
|
|
|
{{/if}}
|
2020-05-15 11:36:00 -04:00
|
|
|
</div>
|
2020-02-03 08:22:14 -05:00
|
|
|
{{else}}
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.item.icon}}
|
|
|
|
<div
|
|
|
|
role="option"
|
|
|
|
lang={{this.lang}}
|
|
|
|
class="select-kit-selected-name selected-name choice"
|
|
|
|
>
|
|
|
|
{{d-icon this.item.icon}}
|
2020-05-15 11:36:00 -04:00
|
|
|
</div>
|
2020-02-03 08:22:14 -05:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|