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,5 +1,5 @@
import { Component, Input, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';
import { Datatables } from 'app/core/utils/datatables';
import { SettingsService } from 'app/settings/settings.service';
@@ -12,11 +12,11 @@ export class ClientDatatableStepComponent implements OnInit {
/** Input Fields Data */
@Input() datatableData: any;
/** Create Input Form */
datatableForm: FormGroup;
datatableForm: UntypedFormGroup;
datatableInputs: any = [];
constructor(private formBuilder: FormBuilder,
constructor(private formBuilder: UntypedFormBuilder,
private settingsService: SettingsService,
private datatableService: Datatables) { }
@@ -27,12 +27,12 @@ export class ClientDatatableStepComponent implements OnInit {
input.controlName = this.getInputName(input);
if (!input.isColumnNullable) {
if (this.isNumeric(input.columnDisplayType)) {
inputItems[input.controlName] = new FormControl(0, [Validators.required]);
inputItems[input.controlName] = new UntypedFormControl(0, [Validators.required]);
} else {
inputItems[input.controlName] = new FormControl('', [Validators.required]);
inputItems[input.controlName] = new UntypedFormControl('', [Validators.required]);
}
} else {
inputItems[input.controlName] = new FormControl('');
inputItems[input.controlName] = new UntypedFormControl('');
}
});
this.datatableForm = this.formBuilder.group(inputItems);