UNPKG

@dooboostore/dom-render

Version:
12 lines 507 B
import { ValidatorArray } from './ValidatorArray'; export class CountGreaterThanEqualsCheckedValidatorArray extends ValidatorArray { constructor(count, value, target, event, autoValid = true) { super(value, target, event, autoValid); this.count = count; } valid() { var _a; return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(it => it.checked).length >= this.count; } } //# sourceMappingURL=CountGreaterThanEqualsCheckedValidatorArray.js.map