Built-in single-lever shower mixer with automatic diverter