// Rôle : rend la grille du tableau et connecte les cellules aux handlers du module. import { columnIndexToName, parseCellAddress } from "./tableFormulaEngine.js"; import { HeaderLabelInput, TableRow } from "./TableGridParts.jsx"; export function TableGrid({ data, textContent, evaluatedCells, editingCell, highlightedCell, selection, movePreview, columnWidths, rowHeaderWidth, draggingSelectionRef, onColumnLabelChange, onRowLabelChange, onCellChange, onFormulaSelectionStart, onFormulaSelectionExtend, onStartMoveSelection, onMoveSelection, onSelectCell, onExtendSelection, onPasteSelection, onCellKeyDown, onStartEditing, onEditingCellClear, registerInput }) { return (
`minmax(${width}px, 1fr)`).join(" ")}`, "--table-min-width": `${rowHeaderWidth + columnWidths.reduce((total, width) => total + width, 0)}px` }} role="grid" aria-label={textContent.gridLabel || "Tableau"} >
); }