import Component from '../../component.js'
import CoUxTree from './ux-tree.js'
import CoUxDropdownButton from './ux-dropdown-button.js'
import CdkOverlayContainer from '../../cdk-overlay-container.js'

export default class CoUxDropdownTree extends Component {
    constructor(parent) {
      let selector = 'ux-dropdown-tree';
      super(parent, selector);
      //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/src/lib/ux-components/ux-dropdown-tree/ux-dropdown-tree.component.html
    }
    get dropdownButtonCO() {
      return new CoUxDropdownButton(this.currentPath);
    }
    get dropdownTreeContainer() {
      let path = '//div[contains(@class,"ux-dropdown-tree__container")]';
      return new CdkOverlayContainer('//body').overlayPane + path;
    }
    get treeCO() {
      return new CoUxTree(this.dropdownTreeContainer);
    }
}


