) => {
ev.stopPropagation();
ev.preventDefault();
const {detail} = ev;
const assignedNodesList = detail.assignedNodesContent.assignedNodes;
if (detail.assignedSlotContent.slotName === 'tab') {
this._tabList = assignedNodesList;
}
if (detail.assignedSlotContent.slotName === 'tabpanel') {
this._tabpanelList = assignedNodesList;
}
this._selection.setItems(this._tabList, this._tabpanelList);
this._focusGroup.syncEntryPoint();
};
get _scrollContentTpl() {
return html`
${this._tablistTpl}
`;
}
get _tablistTpl() {
return html`
`;
}
get _separatorTpl() {
return html`
`;
}
get _indicatorsTpl() {
return html`
`;
}
get _holdTpl() {
return html`
${this._scrollContentTpl} ${this._separatorTpl} ${this._indicatorsTpl}
`;
}
get _tabpanelTpl() {
return html`
`;
}
override render() {
return html`
${this._holdTpl} ${this._tabpanelTpl}
`;
}
_scrollEdge(ev: Event) {
this._scroll.scrollEdge(ev.target instanceof HTMLElement ? ev.target : undefined);
}
_onSelectionCommit() {
this._focusGroup.syncEntryPoint();
this._scroll.scrollIntoView();
}
}