0} class:contained> {#if showHeaders && columns.some(col => col.title)} {#each columns as column} {/each} {/if} {#each _items as item (item[key])} select(item[key])} class:selected={activeKey === item[key] && !activeChildKey}> {#each columns as column} {@const value = item[column.key]} {/each} {#if item.children && childrenOpen[item[key]]} {/if} {/each}
{column.title || ''}
{#if item.children?.length} {/if} {#if typeof value !== 'object'} {value || ''} {/if}
selectChild(item[key], e.detail)} />