import TableCell from "./TableCell.js"; import type TableRow from "./TableRow.js"; export default function TableRowTemplate(this: TableRow, ariaColIndex: number = 1) { const OverflowButton = this._overflowButtonComponent; return ( <> { this._hasSelector && { this._tableSelection!.renderRowSelectionCell(this) } } { this.cells.flatMap(cell => { if (cell._popin) { cell.role = null; cell.ariaColIndex = null; return []; } cell.role ??= cell.ariaRole; cell.ariaColIndex = (cell.role === cell.ariaRole) ? `${ariaColIndex++}` : null; return []; })} { this._renderDummyCell && this._hasPopin && } { this._rowActionCount > 0 && { this._flexibleActions.map(action => ( ))} { this._hasOverflowActions && OverflowButton && } { this._fixedActions.map(action => ( ))} } { this._renderNavigated && } { this._renderDummyCell && !this._hasPopin && } { this._hasPopin && { this._popinCells.map(cell => ( ))} } ); }