import Component from '../../component.js'

export default class CoUxAdateTag extends Component {
    constructor(parent) {
      let selector = 'ux-a-date-tag';
      super(parent, selector);
      //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/src/lib/ux-components/atomic/ux-a-date-tag/ux-a-date-tag.component.html?at=support/10.x
    }
    get dateContainer() {
      let path = '//span[contains(@class, "ux-a-date-tag-container")]';
      return this.currentPath + path;
    }
    get dateTag() {
      let path = '//div[@data-e2e = "ux-a-date-tag"]';
      return this.dateContainer + path;
    }
    // DAY - MONTH - YEAR
    get dateDay() {
      let path = '//div[contains(@class, "ux-a-date-tag__d")]';
      return this.dateTag + path;
    }
    get dateMonth() {
      let path = '//div[contains(@class, "ux-a-date-tag__m")]';
      return this.dateTag + path;
    }
    get dateYear() {
      let path = '//div[contains(@class, "ux-a-date-tag__y")]';
      return this.dateTag + path;
    }
    // SUB LABEL
    get dateSubLabel() {
      let path = '//div[contains(@class, "ux-a-date-tag__sub-label")]';
      return this.dateContainer + path;
    }
}


