| 622 | standalone: false, |
| 623 | }) |
| 624 | export class MaxLengthValidator extends AbstractValidatorDirective { |
| 625 | /** |
| 626 | * @description |
| 627 | * Tracks changes to the maximum length bound to this directive. |
| 628 | */ |
| 629 | @Input() maxlength!: string | number | null; |
| 630 | |
| 631 | /** @internal */ |
| 632 | override inputName = 'maxlength'; |
| 633 | |
| 634 | /** @internal */ |
| 635 | override normalizeInput = (input: string | number): number => toInteger(input); |
| 636 | |
| 637 | /** @internal */ |
| 638 | override createValidator = (maxlength: number): ValidatorFn => maxLengthValidator(maxlength); |
| 639 | } |
| 640 | |
| 641 | /** |
| 642 | * @description |
nothing calls this directly
no test coverage detected
searching dependent graphs…