select(item[key])}
on:dblclick={() => doubleClick(item[key])}
on:contextmenu|preventDefault={evt => showContextMenu(evt, item)}
class:selectable={canSelect}
class:selected={canSelect && !activePath[level + 1] && activePath.every(k => path.includes(k) || k === item[key]) && (activePath[level] === item[key])}
class:striped
>
{#if !hideChildrenToggles}
{#if item.children?.length}
{/if}
|
{/if}
|
{#each columns as column, columnIndex}
{#if column.inputType}
{:else}
{formatValue(keypathProxies[index][column.key])}
{/if}
|
{/each}
{#if canRemoveItems}
|
{/if}
{#if item.children && childrenOpen[item[key]]}