import CoUxTimelineItem from '../../../../components/10x/ux/ux-timeline-item.js'
import CoUxTimelineItems from '../../../../components/10x/ux/ux-timeline-items.js'
import EuiBasePage from '../eui-base.po.js'

export default class TimelineItemPage extends EuiBasePage {

  constructor() {
      super();
  }
  timelineItemByIndex(index) {
    let timelineItem =  new CoUxTimelineItems(this.mainContent).timelineItemCO;
    return timelineItem.byIndex(index);
  }
  timelineItemsByIndex(index) {
    let timelineItems =  new CoUxTimelineItems(this.mainContent);
    return timelineItems.byIndex(index);
  }
  timelineItemByTextContains(text) {
    let timelineItem = new CoUxTimelineItems(this.mainContent).timelineItemCO;
    return timelineItem.byTextContains(text);
  }
  timelineItemsByTextContains(text) {
    let timelineItems = new CoUxTimelineItems(this.mainContent);
    return timelineItems.byTextContains(text);
  }
  timelineItemByTextEqualsAndIndex(text, index, normalize=true) {
    let timelineItem = new CoUxTimelineItems(this.mainContent).timelineItemCO;
    return timelineItem.byTextEqualsAndIndex(text, index, normalize);
  }
  timelineItemsByTextEqualsAndIndex(text, index, normalize=true) {
    let timelineItems = new CoUxTimelineItems(this.mainContent);
    return timelineItems.byTextEqualsAndIndex(text, index, normalize);
  }
  timelineItemFromSectionById(id) {
    return new CoUxTimelineItem(this.sectionById(id));
  }
  timelineItemsFromSectionById(id) {
    return new CoUxTimelineItems(this.sectionById(id));
  }
  timelineItemFromSectionWithIdByIndex(id, index) {
    let timelineItem = new CoUxTimelineItem(this.sectionById(id));
    return timelineItem.byIndex(index);
  }
}


