import Component  from '../component.js'
import { elementAttributeContains } from '../../core/utils.js'

export default class CoEuiInputNumber extends Component {
  constructor(parent) {
    let selector = 'input[@euiInputNumber and not(@euiInputCheckBox)]';
    super(parent, selector);
    //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/eui-input-number/eui-input-number.component.ts
  }
  async isInvalid() {
    return await elementAttributeContains(this.currentPath, 'class', 'eui-input-number--invalid');
  }
}


