Spain could become the first European country with menstrual pain leave under a proposed law.