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 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/router';
/** Custom Services */
@@ -17,7 +17,7 @@ import { OrganizationService } from '../../organization.service';
export class EditAdhocQueryComponent implements OnInit {
/** Edit Adhoc Query form. */
editAdhocQueryForm: FormGroup;
editAdhocQueryForm: UntypedFormGroup;
/** Adhoc Query template data. */
adhocQueryTemplateData: any;
/** Report run frequencies data. */
@@ -30,7 +30,7 @@ export class EditAdhocQueryComponent implements OnInit {
* @param {ActivatedRoute} route Activated Route.
* @param {Router} router Router for navigation.
*/
constructor(private formBuilder: FormBuilder,
constructor(private formBuilder: UntypedFormBuilder,
private organizationService: OrganizationService,
private route: ActivatedRoute,
private router: Router) {
@@ -69,7 +69,7 @@ export class EditAdhocQueryComponent implements OnInit {
setConditionalControls() {
this.editAdhocQueryForm.get('reportRunFrequency').valueChanges.subscribe(reportRunFrequencyId => {
if (reportRunFrequencyId === 5) {
this.editAdhocQueryForm.addControl('reportRunEvery', new FormControl('', [Validators.required, Validators.min(1)]));
this.editAdhocQueryForm.addControl('reportRunEvery', new UntypedFormControl('', [Validators.required, Validators.min(1)]));
this.editAdhocQueryForm.get('reportRunEvery').patchValue(this.adhocQueryTemplateData.reportRunEvery);
} else {
this.editAdhocQueryForm.removeControl('reportRunEvery');