Upgrade/angular 14 (#1853)

* Fix Loan product Payment Allocation

* Upgrade to Angular 14

---------

Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
José Alberto Hernández
2023-08-29 19:51:32 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent 2dab3b70ca
commit 80936a3ea9
336 changed files with 6657 additions and 5698 deletions
@@ -1,6 +1,6 @@
import { Component, OnInit, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { FormGroup } from '@angular/forms';
import { UntypedFormGroup } from '@angular/forms';
import { FormfieldBase } from './formfield/model/formfield-base';
@@ -30,7 +30,7 @@ export class FormDialogComponent implements OnInit {
addButtonText: 'Add'
};
form: FormGroup;
form: UntypedFormGroup;
formfields: FormfieldBase[];
pristine: boolean;
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';
import { FormfieldBase } from './formfield/model/formfield-base';
@@ -14,10 +14,10 @@ export class FormGroupService {
const group: any = {};
formfields.forEach(formfield => {
group[formfield.controlName] = formfield.required ? new FormControl(formfield.value, Validators.required) : new FormControl(formfield.value);
group[formfield.controlName] = formfield.required ? new UntypedFormControl(formfield.value, Validators.required) : new UntypedFormControl(formfield.value);
});
return new FormGroup(group);
return new UntypedFormGroup(group);
}
}
@@ -1,5 +1,5 @@
import { Component, OnInit, Input } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { UntypedFormGroup } from '@angular/forms';
import { FormfieldBase } from './model/formfield-base';
@@ -10,7 +10,7 @@ import { FormfieldBase } from './model/formfield-base';
})
export class FormfieldComponent implements OnInit {
@Input() form: FormGroup;
@Input() form: UntypedFormGroup;
@Input() formfield: FormfieldBase;
constructor() { }