WEB-446: Validation of re-Age amount during submission

This commit is contained in:
Jose Alberto Hernandez
2025-11-29 14:57:00 -05:00
parent 88b7194961
commit 0308a7d444
19 changed files with 99 additions and 34 deletions
@@ -1,8 +1,8 @@
import { Component, Input } from '@angular/core';
import { Currency } from '../models/general.model';
import { UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
import { NgIf, CurrencyPipe } from '@angular/common';
import { MatFormField, MatLabel, MatError, MatHint, MatSuffix } from '@angular/material/form-field';
import { UntypedFormControl } from '@angular/forms';
import { CurrencyPipe } from '@angular/common';
import { MatHint } from '@angular/material/form-field';
import { FormatAmountDirective } from '../../directives/format-amount.directive';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@@ -22,6 +22,8 @@ export class InputAmountComponent {
@Input() currency: Currency;
@Input() inputLabel: string;
@Input() inputFormControl: UntypedFormControl;
@Input() minVal: number;
@Input() maxVal: number;
displayHint = false;
@@ -39,12 +41,4 @@ export class InputAmountComponent {
}
return true;
}
inputBlur(): void {
this.displayHint = false;
}
inputFocus(): void {
this.displayHint = true;
}
}