UNPKG

@dooboostore/dom-render

Version:
12 lines 494 B
import { ValidatorArray } from './ValidatorArray'; export class CountGreaterThanCheckedValidatorArray 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=CountGreaterThanCheckedValidatorArray.js.map