import Component  from '../component.js';
import CoEuiIcon from './eui-icon.js';

export default class CoEuiTableFilter extends Component {
    constructor(parent) {
      let selector = 'eui-table-filter';
      super(parent, selector);
      //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/eui-table/filter/eui-table-filter.component.html?at=support/13.x
    }
    get filter() {
      return this.currentPath + '//div[@class = "eui-table__filter"]';
    }
    get form() {
      return this.filter + '//form';
    }
    get inputWrapper() {
      return this.form + '//div[contains(@class, "eui-clearable-input-wrapper")]';
    }
    get filterInput() {
      return this.inputWrapper + '//input[contains(@class, "eui-table__filter-input")]';
    }
    get searchIconCO() {
      return new CoEuiIcon(this.inputWrapper).byAttributeContains('class','eui-table__filter-search-icon');
    }
}


