2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.collection}}
|
2015-06-09 12:19:41 -04:00
|
|
|
<div class="values">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#each this.collection as |value index|}}
|
2018-08-03 16:41:37 -04:00
|
|
|
<div data-index={{index}} class="value">
|
2022-06-30 06:30:50 -04:00
|
|
|
<DButton
|
|
|
|
@action={{action "removeValue"}}
|
|
|
|
@actionParam={{value}}
|
|
|
|
@icon="times"
|
|
|
|
@class="remove-value-btn btn-small"
|
|
|
|
/>
|
2018-08-03 16:41:37 -04:00
|
|
|
|
2022-07-08 07:00:33 -04:00
|
|
|
<Input
|
|
|
|
title={{value}}
|
|
|
|
@value={{value}}
|
|
|
|
class="value-input"
|
|
|
|
{{on "focusout" (fn (action "changeValue") index)}}
|
|
|
|
/>
|
2022-02-03 16:47:02 -05:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.showUpDownButtons}}
|
2022-06-30 06:30:50 -04:00
|
|
|
<DButton
|
|
|
|
@action={{action "shift" -1 index}}
|
|
|
|
@icon="arrow-up"
|
|
|
|
@class="shift-up-value-btn btn-small"
|
|
|
|
/>
|
|
|
|
<DButton
|
|
|
|
@action={{action "shift" 1 index}}
|
|
|
|
@icon="arrow-down"
|
|
|
|
@class="shift-down-value-btn btn-small"
|
|
|
|
/>
|
2022-02-03 16:47:02 -05:00
|
|
|
{{/if}}
|
2015-06-09 12:19:41 -04:00
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<ComboBox
|
|
|
|
@valueProperty={{null}}
|
|
|
|
@nameProperty={{null}}
|
|
|
|
@value={{this.newValue}}
|
|
|
|
@content={{this.filteredChoices}}
|
|
|
|
@onChange={{action "selectChoice"}}
|
|
|
|
@options={{hash allowAny=true none=this.noneKey}}
|
2022-06-30 06:30:50 -04:00
|
|
|
/>
|