2020-04-05 03:37:09 +02:00
|
|
|
{{wizard-mapper-connector
|
2023-09-14 15:05:55 +02:00
|
|
|
connector=this.input.type
|
|
|
|
connectors=this.inputTypes
|
2020-04-15 07:22:21 +02:00
|
|
|
inputTypes=true
|
2023-09-14 15:05:55 +02:00
|
|
|
inputType=this.inputType
|
2020-04-15 07:22:21 +02:00
|
|
|
connectorType="type"
|
2023-09-14 15:05:55 +02:00
|
|
|
options=this.options
|
|
|
|
onUpdate=this.onUpdate
|
2023-07-10 08:55:54 +02:00
|
|
|
}}
|
2020-03-21 18:30:11 +01:00
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.hasPairs}}
|
2020-04-01 07:03:26 +02:00
|
|
|
<div class="mapper-pairs mapper-block">
|
2023-09-14 15:18:47 +02:00
|
|
|
{{#each this.input.pairs as |pair|}}
|
2020-04-01 07:03:26 +02:00
|
|
|
{{wizard-mapper-pair
|
2020-03-23 06:41:04 +01:00
|
|
|
pair=pair
|
|
|
|
last=pair.last
|
2023-09-14 15:05:55 +02:00
|
|
|
inputType=this.inputType
|
|
|
|
options=this.options
|
2021-04-12 16:19:53 +02:00
|
|
|
removePair=(action "removePair")
|
2023-09-14 15:05:55 +02:00
|
|
|
onUpdate=this.onUpdate
|
2023-07-10 08:55:54 +02:00
|
|
|
}}
|
2020-03-23 06:41:04 +01:00
|
|
|
{{/each}}
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.canAddPair}}
|
2021-04-12 16:19:53 +02:00
|
|
|
<a role="button" {{action "addPair"}} class="add-pair">
|
|
|
|
{{d-icon "plus"}}
|
2020-03-24 10:35:46 +01:00
|
|
|
</a>
|
2020-03-23 06:41:04 +01:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2020-03-24 10:35:46 +01:00
|
|
|
{{/if}}
|
2018-05-24 07:34:58 +02:00
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.hasOutput}}
|
|
|
|
{{#if this.hasPairs}}
|
2020-04-02 07:21:57 +02:00
|
|
|
{{wizard-mapper-connector
|
2023-09-14 15:05:55 +02:00
|
|
|
connector=this.input.output_connector
|
|
|
|
connectors=this.connectors
|
2020-04-15 07:22:21 +02:00
|
|
|
connectorType="output"
|
2023-09-14 15:05:55 +02:00
|
|
|
inputType=this.inputType
|
|
|
|
options=this.options
|
|
|
|
onUpdate=this.onUpdate
|
2023-07-10 08:55:54 +02:00
|
|
|
}}
|
2020-03-24 10:35:46 +01:00
|
|
|
{{/if}}
|
2020-03-21 18:30:11 +01:00
|
|
|
|
2020-04-01 07:03:26 +02:00
|
|
|
<div class="output mapper-block">
|
|
|
|
{{wizard-mapper-selector
|
2021-04-12 16:19:53 +02:00
|
|
|
selectorType="output"
|
2023-09-14 15:05:55 +02:00
|
|
|
inputType=this.input.type
|
|
|
|
value=this.input.output
|
|
|
|
activeType=this.input.output_type
|
|
|
|
options=this.options
|
|
|
|
onUpdate=this.onUpdate
|
2023-07-10 08:55:54 +02:00
|
|
|
}}
|
2020-03-21 18:30:11 +01:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
<a role="button" class="remove-input" {{action this.remove this.input}}>
|
2021-04-12 16:19:53 +02:00
|
|
|
{{d-icon "times"}}
|
2023-07-10 08:55:54 +02:00
|
|
|
</a>
|