set_cell_widths()} />
{#if label && label.length !== 0 && show_label}

{label}

{/if}
handle_keydown(e)} role="grid" tabindex="0" > {#if label && label.length !== 0} {/if} {#each _headers as { value, id }, i (id)} {/each} {#each max as { value, id }, j (id)} {/each}
{label}
blob_to_string(data_uri_to_blob(e.detail.data))} bind:dragging > {#if label && label.length !== 0} {label} {/if} {#each _headers as { value, id }, i (id)} { toggle_header_button(i); }} >
edit_header(i)} {select_on_focus} header {root} />
{ event.stopPropagation(); handle_sort(i); }} >
{#if editable} {/if}
{/each} {#each item as { value, id }, j (id)} start_edit(index, j)} on:click={() => { handle_cell_click(index, j); toggle_cell_button(index, j); }} on:dblclick={() => start_edit(index, j)} style:width="var(--cell-width-{j})" style={styling?.[index]?.[j] || ""} class:focus={dequal(selected, [index, j])} class:menu-active={active_cell_menu && active_cell_menu.row === index && active_cell_menu.col === j} >
((clear_on_focus = false), parent.focus())} {clear_on_focus} {root} /> {#if editable} {/if}
{/each}
{#if active_cell_menu !== null} add_row_at(active_cell_menu?.row ?? -1, "above")} on_add_row_below={() => add_row_at(active_cell_menu?.row ?? -1, "below")} on_add_column_left={() => add_col_at(active_cell_menu?.col ?? -1, "left")} on_add_column_right={() => add_col_at(active_cell_menu?.col ?? -1, "right")} /> {/if} {#if active_header_menu !== null} add_col_at(active_header_menu?.col ?? -1, "left")} on_add_column_right={() => add_col_at(active_header_menu?.col ?? -1, "right")} /> {/if}