{#each order as key, i (key)} {@const field = asField(meta[key])} {@const np = nodePath(key)} {@const vResult = validateField(key, field)} {@const sel = isSelected(key)} {@const anc = isAncestor(key)} {@const isGroup = field.type === 'group'} {@const groupOpen = openGroups.has(key)} {@const childKeys = isGroup ? Object.keys(field.value) : []}
onSelect(np)} onkeydown={e => { if (e.key === 'Enter') onSelect(np) }} > {#if isGroup} {:else} {/if}
{key}
{#if isGroup && groupOpen && childKeys.length > 0} {/if} {#if isGroup && groupOpen && childKeys.length === 0}
{glob.t('vcen.editor.mtas.field.emptyGroup')}
{/if} {/each}