import Component  from '../component.js'
import CalendarBody from './calendar-body.js'

export default class MatMultiYearView extends Component {
    constructor(parent) {
      let selector = 'mat-multi-year-view[contains(@class, "ng-star-inserted")]';
      super(parent, selector);
    // https://github.com/angular/components/blob/master/src/material/datepicker/multi-year-view.html
    }

    get calendarTable() {
        let path = '//table[contains(@class, "mat-calendar-table")]';
        return this.currentPath + path;
    }
    get calendarTableHeader() {
        let path = '//thead[contains(@class, "mat-calendar-table-header")]';
        return this.calendarTable + path;
    }
    get calendarTableHeaderDivider() {
        let path = '//th[contains(@class, "mat-calendar-table-header-divider")]';
        return this.calendarTableHeader + path;
    }
    get calendarBodyCO() {
        return new CalendarBody(this.calendarTable);
    }
}
