| 233 | standalone: false, |
| 234 | }) |
| 235 | export class MaxValidator extends AbstractValidatorDirective { |
| 236 | /** |
| 237 | * @description |
| 238 | * Tracks changes to the max bound to this directive. |
| 239 | */ |
| 240 | @Input() max!: string | number | null; |
| 241 | /** @internal */ |
| 242 | override inputName = 'max'; |
| 243 | /** @internal */ |
| 244 | override normalizeInput = (input: string | number): number => toFloat(input); |
| 245 | /** @internal */ |
| 246 | override createValidator = (max: number): ValidatorFn => maxValidator(max); |
| 247 | } |
| 248 | |
| 249 | /** |
| 250 | * @description |
nothing calls this directly
no test coverage detected