Multicomponent density-functional theory for time-dependent systems