{#if valvesSpec} {#each Object.keys(valvesSpec.properties) as property, idx}
{valvesSpec.properties[property].title} {#if (valvesSpec?.required ?? []).includes(property)}
*required
{/if}
{ valves[property] = (valves[property] ?? null) === null ? valvesSpec.properties[property]?.default ?? '' : null; }} > {#if (valves[property] ?? null) === null}
{#if (valvesSpec?.required ?? []).includes(property)} {$i18n.t('None')} {:else} {$i18n.t('Default')} {/if}
{:else}
{$i18n.t('Custom')}
{/if}
{#if (valves[property] ?? null) !== null}
{#if valvesSpec.properties[property]?.enum ?? null}
{#each valvesSpec.properties[property].enum as option}
{option}
{/each}
{:else if (valvesSpec.properties[property]?.type ?? null) === 'boolean'}
{valves[property] ? 'Enabled' : 'Disabled'}
{:else}
{/if}
{/if} {#if (valvesSpec.properties[property]?.description ?? null) !== null}
{valvesSpec.properties[property].description}
{/if}
{/each} {:else}
No valves
{/if}