2020-03-22 04:30:11 +11:00
|
|
|
<div class="type-selector">
|
2020-04-06 11:54:16 +10:00
|
|
|
{{#if hasTypes}}
|
2021-04-12 19:49:53 +05:30
|
|
|
<a role="button" {{action "toggleTypes"}} class="active">
|
2020-04-06 11:54:16 +10:00
|
|
|
{{activeTypeLabel}}
|
|
|
|
</a>
|
2021-04-12 19:49:53 +05:30
|
|
|
|
2020-04-13 22:17:22 +10:00
|
|
|
{{#if showTypes}}
|
|
|
|
<div class="selector-types">
|
|
|
|
{{#each selectorTypes as |item|}}
|
|
|
|
{{wizard-mapper-selector-type
|
|
|
|
activeType=activeType
|
|
|
|
item=item
|
2023-07-10 07:55:54 +01:00
|
|
|
toggle=(action "toggleType")
|
|
|
|
}}
|
2020-04-13 22:17:22 +10:00
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2020-04-06 11:54:16 +10:00
|
|
|
{{else}}
|
|
|
|
<span>{{activeTypeLabel}}</span>
|
|
|
|
{{/if}}
|
2020-03-22 04:30:11 +11:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input">
|
|
|
|
{{#if showText}}
|
2023-04-03 12:28:06 +10:00
|
|
|
<Input
|
|
|
|
@type="text"
|
|
|
|
@value={{this.value}}
|
|
|
|
placeholder={{i18n placeholderKey}}
|
|
|
|
{{on "change" (action "changeInputValue")}}
|
|
|
|
/>
|
2020-03-22 04:30:11 +11:00
|
|
|
{{/if}}
|
|
|
|
|
2020-04-05 11:37:09 +10:00
|
|
|
{{#if showComboBox}}
|
2020-03-22 04:30:11 +11:00
|
|
|
{{combo-box
|
|
|
|
value=value
|
2020-04-05 11:37:09 +10:00
|
|
|
content=comboBoxContent
|
2020-04-29 11:42:39 +10:00
|
|
|
onChange=(action "changeValue")
|
2023-07-10 07:55:54 +01:00
|
|
|
options=(hash none=placeholderKey allowAny=comboBoxAllowAny)
|
|
|
|
}}
|
2020-03-22 04:30:11 +11:00
|
|
|
{{/if}}
|
2021-04-12 19:49:53 +05:30
|
|
|
|
2020-04-05 11:37:09 +10:00
|
|
|
{{#if showMultiSelect}}
|
2020-03-24 20:35:46 +11:00
|
|
|
{{multi-select
|
2020-04-05 11:37:09 +10:00
|
|
|
content=multiSelectContent
|
2020-03-24 20:35:46 +11:00
|
|
|
value=value
|
2020-04-29 11:42:39 +10:00
|
|
|
onChange=(action "changeValue")
|
2023-07-10 07:55:54 +01:00
|
|
|
options=multiSelectOptions
|
|
|
|
}}
|
2020-04-05 11:37:09 +10:00
|
|
|
{{/if}}
|
2021-04-12 19:49:53 +05:30
|
|
|
|
2020-04-05 11:37:09 +10:00
|
|
|
{{#if showList}}
|
2020-04-29 11:42:39 +10:00
|
|
|
{{wizard-value-list
|
2020-04-06 11:54:16 +10:00
|
|
|
values=value
|
2020-04-29 11:42:39 +10:00
|
|
|
addKey=placeholderKey
|
2023-07-10 07:55:54 +01:00
|
|
|
onChange=(action "changeValue")
|
|
|
|
}}
|
2020-03-23 16:41:04 +11:00
|
|
|
{{/if}}
|
2021-04-12 19:49:53 +05:30
|
|
|
|
2020-03-23 16:41:04 +11:00
|
|
|
{{#if showTag}}
|
|
|
|
{{tag-chooser
|
|
|
|
tags=value
|
2020-04-29 11:42:39 +10:00
|
|
|
onChange=(action "changeValue")
|
2021-09-06 10:45:41 +08:00
|
|
|
everyTag=true
|
2023-07-10 07:55:54 +01:00
|
|
|
options=(hash none=placeholderKey filterable=true)
|
|
|
|
}}
|
2020-03-23 16:41:04 +11:00
|
|
|
{{/if}}
|
2021-04-12 19:49:53 +05:30
|
|
|
|
2020-04-02 19:21:03 +11:00
|
|
|
{{#if showUser}}
|
2022-07-29 18:51:58 +03:00
|
|
|
{{email-group-user-chooser
|
2020-04-06 11:54:16 +10:00
|
|
|
placeholderKey=placeholderKey
|
2022-07-29 18:51:58 +03:00
|
|
|
value=value
|
2020-04-29 11:42:39 +10:00
|
|
|
autocomplete="discourse"
|
2022-07-29 18:51:58 +03:00
|
|
|
onChange=(action "changeUserValue")
|
2023-07-10 07:55:54 +01:00
|
|
|
options=(hash includeMessageableGroups="true")
|
|
|
|
}}
|
2020-04-02 19:21:03 +11:00
|
|
|
{{/if}}
|
2023-07-10 07:55:54 +01:00
|
|
|
</div>
|