Luka Doncic recorded the first triple-double in an NBA played outside the USA or Canada in the Mavericks' 122-111 victory over the Pistons in Mexico City.