()
| 18735 | class ParsersNumberAtom extends AbstractParsersBackedAtom {} |
| 18736 | class ParsersIntegerAtom extends ParsersNumberAtom { |
| 18737 | _isValid() { |
| 18738 | const atom = this.getAtom() |
| 18739 | const num = parseInt(atom) |
| 18740 | if (isNaN(num)) return false |
| 18741 | return num.toString() === atom |
| 18742 | } |
| 18743 | get optionCount() { |
| 18744 | const minVal = parseInt(this.min) || -Infinity |
| 18745 | const maxVal = parseInt(this.max) || Infinity |