import CheckBox from "./CheckBox.js";
import TableHeaderCell from "./TableHeaderCell.js";
import Icon from "./Icon.js";
import IconMode from "./types/IconMode.js";
import ClearAll from "@ui5/webcomponents-icons/dist/clear-all.js";
import IconDesign from "./types/IconDesign.js";
import type TableHeaderRow from "./TableHeaderRow.js";
export default function TableHeaderRowTemplate(this: TableHeaderRow, ariaColIndex: number = 1) {
return (
<>
{ this._hasSelector &&
{ !this._isMultiSelect ?
<>>
:
this._shouldRenderClearAll ?
:
}
}
{ 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._i18nRowActions}
}
{ this._renderNavigated &&
}
{ this._renderDummyCell && !this._hasPopin &&
}
{ this._hasPopin &&
{this._i18nRowPopin}
}
>
);
}