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

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


