import { SelectionManagerBase } from './selection-manager-base';
/**
 * Selection manager for interactive selection when the selection mode of the table is
 * `TableRowSelectionMode.single`.
 */
export class SingleSelectionManager extends SelectionManagerBase {
    handleRowSelectionToggle(rowState, isSelecting, _shiftKey) {
        this.toggleIsRowSelected(rowState, isSelecting);
        return true;
    }
    handleRowClick(rowState, _shiftKey, _ctrlKey) {
        return this.selectSingleRow(rowState);
    }
    handleActionMenuOpening(rowState) {
        if (this.actionMenusPreserveSelection) {
            return false;
        }
        return this.handleRowClick(rowState, false, false);
    }
}
//# sourceMappingURL=single-selection-manager.js.map