Implement `hide` and `hidden` events for tabs

Closes #14772.