isValid(data, dirty) {
    return !this.invalidMessage(data, dirty);
  }
Returns if the component is valid or not.
@param {*} data - The data to check if the component is valid.
@param {boolean} dirty - If the component is dirty.
@returns {boolean} - TRUE if the component is valid.