import TableCell from "./TableCell.js"; import CheckBox from "./CheckBox.js"; import RadioButton from "./RadioButton.js"; import Button from "./Button.js"; import ButtonDesign from "./types/ButtonDesign.js"; import iconOverflow from "@ui5/webcomponents-icons/dist/overflow.js"; import type TableRow from "./TableRow.js"; export default function TableRowTemplate(this: TableRow, ariaColIndex: number = 1) { return ( <> { this._hasSelector && { this._isMultiSelect ? : } } { 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 && } { this._fixedActions.map(action => ( ))} } { this._renderNavigated && } { this._renderDummyCell && !this._hasPopin && } { this._hasPopin && { this._popinCells.map(cell => ( ))} } ); }