WEB-215 Merge angular-update-19 into dev to upgrade Angular from v18 to v19 (#2530)

This commit is contained in:
Gopi Kishan
2025-06-20 19:03:06 -06:00
committed by GitHub
parent 263ddf0198
commit 6ee9897bd1
722 changed files with 17740 additions and 4075 deletions
@@ -1,12 +1,13 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { UntypedFormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Dates } from 'app/core/utils/dates';
/** Custom Services */
import { SavingsService } from 'app/savings/savings.service';
import { SettingsService } from 'app/settings/settings.service';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Activate Savings Account Component
@@ -14,7 +15,10 @@ import { SettingsService } from 'app/settings/settings.service';
@Component({
selector: 'mifosx-activate-savings-account',
templateUrl: './activate-savings-account.component.html',
styleUrls: ['./activate-savings-account.component.scss']
styleUrls: ['./activate-savings-account.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS
]
})
export class ActivateSavingsAccountComponent implements OnInit {
/** Minimum date allowed. */
@@ -1,12 +1,19 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/router';
import {
UntypedFormGroup,
UntypedFormBuilder,
Validators,
UntypedFormControl,
ReactiveFormsModule
} from '@angular/forms';
import { Router, ActivatedRoute, RouterLink } from '@angular/router';
/** Custom Services */
import { SavingsService } from '../../savings.service';
import { SettingsService } from 'app/settings/settings.service';
import { Dates } from 'app/core/utils/dates';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Add Savings Charge component.
@@ -14,7 +21,10 @@ import { Dates } from 'app/core/utils/dates';
@Component({
selector: 'mifosx-add-charge-savings-account',
templateUrl: './add-charge-savings-account.component.html',
styleUrls: ['./add-charge-savings-account.component.scss']
styleUrls: ['./add-charge-savings-account.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS
]
})
export class AddChargeSavingsAccountComponent implements OnInit {
/** Minimum Due Date allowed. */
@@ -1,12 +1,13 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { UntypedFormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Dates } from 'app/core/utils/dates';
/** Custom Services */
import { SavingsService } from 'app/savings/savings.service';
import { SettingsService } from 'app/settings/settings.service';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Apply Annual Fees Component
@@ -14,7 +15,10 @@ import { SettingsService } from 'app/settings/settings.service';
@Component({
selector: 'mifosx-apply-annual-fees-savings-account',
templateUrl: './apply-annual-fees-savings-account.component.html',
styleUrls: ['./apply-annual-fees-savings-account.component.scss']
styleUrls: ['./apply-annual-fees-savings-account.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS
]
})
export class ApplyAnnualFeesSavingsAccountComponent implements OnInit {
/** Minimum date allowed. */
@@ -1,12 +1,14 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { UntypedFormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Dates } from 'app/core/utils/dates';
/** Custom Services */
import { SavingsService } from 'app/savings/savings.service';
import { SettingsService } from 'app/settings/settings.service';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Approve Savings Account Component
@@ -14,7 +16,11 @@ import { SettingsService } from 'app/settings/settings.service';
@Component({
selector: 'mifosx-approve-savings-account',
templateUrl: './approve-savings-account.component.html',
styleUrls: ['./approve-savings-account.component.scss']
styleUrls: ['./approve-savings-account.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
CdkTextareaAutosize
]
})
export class ApproveSavingsAccountComponent implements OnInit {
/** Minimum date allowed. */
@@ -1,12 +1,22 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import {
UntypedFormGroup,
UntypedFormBuilder,
Validators,
UntypedFormControl,
ReactiveFormsModule
} from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Dates } from 'app/core/utils/dates';
/** Custom Services */
import { SavingsService } from 'app/savings/savings.service';
import { SettingsService } from 'app/settings/settings.service';
import { MatCheckbox } from '@angular/material/checkbox';
import { MatSlideToggle } from '@angular/material/slide-toggle';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Close Savings Account Component
@@ -14,7 +24,13 @@ import { SettingsService } from 'app/settings/settings.service';
@Component({
selector: 'mifosx-close-savings-account',
templateUrl: './close-savings-account.component.html',
styleUrls: ['./close-savings-account.component.scss']
styleUrls: ['./close-savings-account.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
MatCheckbox,
MatSlideToggle,
CdkTextareaAutosize
]
})
export class CloseSavingsAccountComponent implements OnInit {
/** Minimum date allowed. */
@@ -1,11 +1,14 @@
import { Component, Input, OnInit } from '@angular/core';
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { UntypedFormBuilder, UntypedFormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Dates } from 'app/core/utils/dates';
import { SavingsService } from 'app/savings/savings.service';
import { SettingsService } from 'app/settings/settings.service';
import { Currency } from 'app/shared/models/general.model';
import { SystemService } from 'app/system/system.service';
import { MatCard, MatCardTitle, MatCardContent, MatCardActions } from '@angular/material/card';
import { InputAmountComponent } from '../../../shared/input-amount/input-amount.component';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
type TransactionCommandType = 'holdamount' | 'blockaccount' | 'blockdeposit' | 'blockwithdrawal';
@@ -19,7 +22,12 @@ interface TransactionType {
@Component({
selector: 'mifosx-manage-savings-account',
templateUrl: './manage-savings-account.component.html',
styleUrls: ['./manage-savings-account.component.scss']
styleUrls: ['./manage-savings-account.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
MatCardTitle,
InputAmountComponent
]
})
export class ManageSavingsAccountComponent implements OnInit {
@Input() currency: Currency;
@@ -1,12 +1,13 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { UntypedFormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Dates } from 'app/core/utils/dates';
/** Custom Services */
import { SavingsService } from 'app/savings/savings.service';
import { SettingsService } from 'app/settings/settings.service';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Post Interest Savings Account Component
@@ -14,7 +15,10 @@ import { SettingsService } from 'app/settings/settings.service';
@Component({
selector: 'mifosx-post-interest-as-on-savings-account',
templateUrl: './post-interest-as-on-savings-account.component.html',
styleUrls: ['./post-interest-as-on-savings-account.component.scss']
styleUrls: ['./post-interest-as-on-savings-account.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS
]
})
export class PostInterestAsOnSavingsAccountComponent implements OnInit {
/** Minimum date allowed. */
@@ -1,12 +1,14 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { UntypedFormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Dates } from 'app/core/utils/dates';
/** Custom Services */
import { SavingsService } from 'app/savings/savings.service';
import { SettingsService } from 'app/settings/settings.service';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Reject Savings Account Component
@@ -14,7 +16,11 @@ import { SettingsService } from 'app/settings/settings.service';
@Component({
selector: 'mifosx-reject-savings-account',
templateUrl: './reject-savings-account.component.html',
styleUrls: ['./reject-savings-account.component.scss']
styleUrls: ['./reject-savings-account.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
CdkTextareaAutosize
]
})
export class RejectSavingsAccountComponent implements OnInit {
/** Minimum date allowed. */
@@ -2,6 +2,20 @@
import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Currency } from 'app/shared/models/general.model';
import { ApproveSavingsAccountComponent } from './approve-savings-account/approve-savings-account.component';
import { RejectSavingsAccountComponent } from './reject-savings-account/reject-savings-account.component';
import { ActivateSavingsAccountComponent } from './activate-savings-account/activate-savings-account.component';
import { UndoApprovalSavingsAccountComponent } from './undo-approval-savings-account/undo-approval-savings-account.component';
import { PostInterestAsOnSavingsAccountComponent } from './post-interest-as-on-savings-account/post-interest-as-on-savings-account.component';
import { SavingsAccountAssignStaffComponent } from './savings-account-assign-staff/savings-account-assign-staff.component';
import { SavingsAccountUnassignStaffComponent } from './savings-account-unassign-staff/savings-account-unassign-staff.component';
import { WithdrawByClientSavingsAccountComponent } from './withdraw-by-client-savings-account/withdraw-by-client-savings-account.component';
import { AddChargeSavingsAccountComponent } from './add-charge-savings-account/add-charge-savings-account.component';
import { SavingsAccountTransactionsComponent } from './savings-account-transactions/savings-account-transactions.component';
import { CloseSavingsAccountComponent } from './close-savings-account/close-savings-account.component';
import { ApplyAnnualFeesSavingsAccountComponent } from './apply-annual-fees-savings-account/apply-annual-fees-savings-account.component';
import { ManageSavingsAccountComponent } from './manage-savings-account/manage-savings-account.component';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Savings account actions component.
@@ -9,7 +23,23 @@ import { Currency } from 'app/shared/models/general.model';
@Component({
selector: 'mifosx-saving-account-actions',
templateUrl: './saving-account-actions.component.html',
styleUrls: ['./saving-account-actions.component.scss']
styleUrls: ['./saving-account-actions.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
ApproveSavingsAccountComponent,
RejectSavingsAccountComponent,
ActivateSavingsAccountComponent,
UndoApprovalSavingsAccountComponent,
PostInterestAsOnSavingsAccountComponent,
SavingsAccountAssignStaffComponent,
SavingsAccountUnassignStaffComponent,
WithdrawByClientSavingsAccountComponent,
AddChargeSavingsAccountComponent,
SavingsAccountTransactionsComponent,
CloseSavingsAccountComponent,
ApplyAnnualFeesSavingsAccountComponent,
ManageSavingsAccountComponent
]
})
export class SavingAccountActionsComponent {
/** Flag object to store possible actions and render appropriate UI to the user */
@@ -1,12 +1,13 @@
/** Angular Imports */
import { Component, OnInit, Input } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { UntypedFormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Dates } from 'app/core/utils/dates';
/** Custom Services */
import { SavingsService } from 'app/savings/savings.service';
import { SettingsService } from 'app/settings/settings.service';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Savings Account Assign Staff Component
@@ -14,7 +15,10 @@ import { SettingsService } from 'app/settings/settings.service';
@Component({
selector: 'mifosx-savings-account-assign-staff',
templateUrl: './savings-account-assign-staff.component.html',
styleUrls: ['./savings-account-assign-staff.component.scss']
styleUrls: ['./savings-account-assign-staff.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS
]
})
export class SavingsAccountAssignStaffComponent implements OnInit {
/** Minimum date allowed. */
@@ -1,13 +1,23 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/router';
import {
UntypedFormGroup,
UntypedFormBuilder,
Validators,
UntypedFormControl,
ReactiveFormsModule
} from '@angular/forms';
import { Router, ActivatedRoute, RouterLink } from '@angular/router';
/** Custom Services */
import { SavingsService } from '../../savings.service';
import { SettingsService } from 'app/settings/settings.service';
import { Dates } from 'app/core/utils/dates';
import { Currency } from 'app/shared/models/general.model';
import { InputAmountComponent } from '../../../shared/input-amount/input-amount.component';
import { MatSlideToggle } from '@angular/material/slide-toggle';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Create savings account transactions component.
@@ -15,7 +25,13 @@ import { Currency } from 'app/shared/models/general.model';
@Component({
selector: 'mifosx-savings-transactions',
templateUrl: './savings-account-transactions.component.html',
styleUrls: ['./savings-account-transactions.component.scss']
styleUrls: ['./savings-account-transactions.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
InputAmountComponent,
MatSlideToggle,
CdkTextareaAutosize
]
})
export class SavingsAccountTransactionsComponent implements OnInit {
/** Minimum Due Date allowed. */
@@ -1,12 +1,13 @@
/** Angular Imports */
import { Component, OnInit, Input } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { UntypedFormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Dates } from 'app/core/utils/dates';
/** Custom Services */
import { SavingsService } from 'app/savings/savings.service';
import { SettingsService } from 'app/settings/settings.service';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Savings Account Unassign Staff Component
@@ -14,7 +15,10 @@ import { SettingsService } from 'app/settings/settings.service';
@Component({
selector: 'mifosx-savings-account-unassign-staff',
templateUrl: './savings-account-unassign-staff.component.html',
styleUrls: ['./savings-account-unassign-staff.component.scss']
styleUrls: ['./savings-account-unassign-staff.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS
]
})
export class SavingsAccountUnassignStaffComponent implements OnInit {
/** Minimum date allowed. */
@@ -1,10 +1,12 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { UntypedFormGroup, UntypedFormBuilder, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
/** Custom Services */
import { SavingsService } from 'app/savings/savings.service';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Undo Approval Savings Account Component
@@ -12,7 +14,11 @@ import { SavingsService } from 'app/savings/savings.service';
@Component({
selector: 'mifosx-undo-approval-savings-account',
templateUrl: './undo-approval-savings-account.component.html',
styleUrls: ['./undo-approval-savings-account.component.scss']
styleUrls: ['./undo-approval-savings-account.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
CdkTextareaAutosize
]
})
export class UndoApprovalSavingsAccountComponent implements OnInit {
/** Undo Approval Savings Account form. */
@@ -1,12 +1,14 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { UntypedFormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Dates } from 'app/core/utils/dates';
/** Custom Services */
import { SavingsService } from 'app/savings/savings.service';
import { SettingsService } from 'app/settings/settings.service';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Withdrawn by Client Savings Account Component
@@ -14,7 +16,11 @@ import { SettingsService } from 'app/settings/settings.service';
@Component({
selector: 'mifosx-withdraw-by-client-savings-account',
templateUrl: './withdraw-by-client-savings-account.component.html',
styleUrls: ['./withdraw-by-client-savings-account.component.scss']
styleUrls: ['./withdraw-by-client-savings-account.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
CdkTextareaAutosize
]
})
export class WithdrawByClientSavingsAccountComponent implements OnInit {
/** Minimum date allowed. */