If sodium is still sodium outside of and within the salt, then we have a whole made of parts. A chemical compound is the creation of an entirely different thing, not a body with parts.
As for water, it needs light to change color, and so you cannot say that water changes color on its own.
As for water, it needs light to change color, and so you cannot say that water changes color on its own.