set_cell_widths()} />
{#if (label && label.length !== 0 && show_label) || (buttons === null ? true : buttons.includes("fullscreen")) || (buttons === null ? true : buttons.includes("copy")) || show_search !== "none"}
{#if label && label.length !== 0 && show_label}

{label}

{/if} await copy_table_data(data, null)} show_copy_button={buttons === null ? true : buttons.includes("copy")} {show_search} on:search={(e) => df_actions.handle_search(e.detail)} on:fullscreen on_commit_filter={commit_filter} current_search_query={$df_state.current_search_query} />
{/if}
handle_keydown(e, df_ctx)} on:mousemove={handle_mouse_move} on:mouseup={handle_mouse_up} on:mouseleave={handle_mouse_up} role="grid" tabindex="0" > {#if label && label.length !== 0} {/if} {#if show_row_numbers} {/if} {#each _headers as { value, id }, i (id)} {/each} {#if show_row_numbers} {/if} {#each max as { value, id }, j (id)} {/each} handle_file_upload( detail.data, (head) => { _headers = make_headers( head.map((h) => h ?? ""), col_count, els, make_id ); return _headers; }, (vals) => { values = vals; } )} bind:dragging aria_label={i18n("dataframe.drop_to_upload")} >
{}} > {#if show_row_numbers} {/if} {#each _headers as { value, id }, i (id)} {/each} {#if show_row_numbers} {/if} {#each item as { value, id }, j (id)} handle_mouse_down(e, r, c)} {handle_blur} toggle_cell_menu={df_actions.toggle_cell_menu} {is_cell_selected} {should_show_cell_menu} {selected_cells} {copy_flash} {active_cell_menu} styling={search_results[index][j].styling} {latex_delimiters} {line_breaks} datatype={Array.isArray(datatype) ? datatype[j] : datatype} {editing} {max_chars} {editable} is_static={static_columns.includes(j)} {i18n} {components} handle_select_column={df_actions.handle_select_column} handle_select_row={df_actions.handle_select_row} bind:el={els[id]} {is_dragging} {wrap} /> {/each}
{#if show_scroll_button} {/if}
{#if data.length === 0 && editable && row_count[1] === "dynamic"} add_row()} /> {/if} {#if active_cell_menu || active_header_menu} 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 ?? active_header_menu?.col ?? -1, "left" )} on_add_column_right={() => add_col_at( active_cell_menu?.col ?? active_header_menu?.col ?? -1, "right" )} on_delete_row={() => delete_row_at(active_cell_menu?.row ?? -1)} on_delete_col={() => delete_col_at(active_cell_menu?.col ?? active_header_menu?.col ?? -1)} {editable} can_delete_rows={!active_header_menu && data.length > 1 && editable} can_delete_cols={data.length > 0 && data[0]?.length > 1 && editable} {i18n} on_sort={active_header_menu ? (direction) => { if (active_header_menu) { handle_sort(active_header_menu.col, direction); df_actions.set_active_header_menu(null); } } : undefined} on_clear_sort={active_header_menu ? () => { clear_sort(); df_actions.set_active_header_menu(null); } : undefined} sort_direction={active_header_menu ? ($df_state.sort_state.sort_columns.find( (item) => item.col === (active_header_menu?.col ?? -1) )?.direction ?? null) : null} sort_priority={active_header_menu ? $df_state.sort_state.sort_columns.findIndex( (item) => item.col === (active_header_menu?.col ?? -1) ) + 1 || null : null} on_filter={active_header_menu ? (datatype, filter, value) => { if (active_header_menu) { handle_filter(active_header_menu.col, datatype, filter, value); df_actions.set_active_header_menu(null); } } : undefined} on_clear_filter={active_header_menu ? () => { clear_filter(); df_actions.set_active_header_menu(null); } : undefined} filter_active={active_header_menu ? $df_state.filter_state.filter_columns.some( (c) => c.col === (active_header_menu?.col ?? -1) ) : null} /> {/if}