Add classes during typing/interaction to allow for better styling

This will allow for the hiding of adjacent and sub elements based on the search text and results received.

See:

* https://github.com/GigaOM/legacy-pro/issues/4000
* https://github.com/GigaOM/legacy-pro/issues/4001
* https://github.com/GigaOM/legacy-pro/issues/4002