import Component  from '../component.js';
import DivComponent from '../div.js'

export default class CoEuiCommonHeader extends Component {
  constructor(parent) {
    let selector = 'eui-common-header';
    super(parent, selector);
    //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/shared/eui-common-header/common-header.component.html
  }
  get labelCO(){
    return new DivComponent(this.currentPath).addPredicateClassContains('eui-common-header__label');
  }
  get labelTextCO(){
    return new DivComponent(this.labelCO).addPredicateClassContains('eui-common-header__label-text');
  }
  get labelActionsCO(){
    return new DivComponent(this.labelCO).addPredicateClassContains('eui-common-header__actions');
  }
  get subLabelCO(){
    return new DivComponent(this.currentPath).addPredicateClassContains('eui-common-header__sub-label');
  }
  async hasSubLabel(){
    return await (await this.subLabelCO.element()).isExisting();
  }
  get subLabeltextCO(){
    return new DivComponent(this.subLabelCO).addPredicateClassContains('eui-common-header__sub-label-text');
  }
}


