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,10 +1,12 @@
/** 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';
/** Custom Services. */
import { LoansService } from 'app/loans/loans.service';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Add Collateral component.
@@ -12,7 +14,11 @@ import { LoansService } from 'app/loans/loans.service';
@Component({
selector: 'mifosx-add-collateral',
templateUrl: './add-collateral.component.html',
styleUrls: ['./add-collateral.component.scss']
styleUrls: ['./add-collateral.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
CdkTextareaAutosize
]
})
export class AddCollateralComponent implements OnInit {
@Input() dataObject: any;
@@ -1,14 +1,20 @@
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 { LoansService } from 'app/loans/loans.service';
import { SettingsService } from 'app/settings/settings.service';
import { DateFormatPipe } from '../../../../pipes/date-format.pipe';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@Component({
selector: 'mifosx-add-interest-pause',
templateUrl: './add-interest-pause.component.html',
styleUrls: ['./add-interest-pause.component.scss']
styleUrls: ['./add-interest-pause.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
DateFormatPipe
]
})
export class AddInterestPauseComponent implements OnInit {
@Input() dataObject: any;
@@ -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 { LoansService } from '../../../loans.service';
import { SettingsService } from 'app/settings/settings.service';
import { Dates } from 'app/core/utils/dates';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Create Add Loan Charge component.
@@ -14,7 +21,10 @@ import { Dates } from 'app/core/utils/dates';
@Component({
selector: 'mifosx-add-loan-charge',
templateUrl: './add-loan-charge.component.html',
styleUrls: ['./add-loan-charge.component.scss']
styleUrls: ['./add-loan-charge.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS
]
})
export class AddLoanChargeComponent implements OnInit {
/** Minimum Due Date allowed. */
@@ -1,14 +1,28 @@
import { Component, OnInit } from '@angular/core';
import { UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import {
UntypedFormBuilder,
UntypedFormControl,
UntypedFormGroup,
Validators,
ReactiveFormsModule
} from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { LoansService } from 'app/loans/loans.service';
import { OrganizationService } from 'app/organization/organization.service';
import { SettingsService } from 'app/settings/settings.service';
import { MatSlideToggle } from '@angular/material/slide-toggle';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@Component({
selector: 'mifosx-adjust-loan-charge',
templateUrl: './adjust-loan-charge.component.html',
styleUrls: ['./adjust-loan-charge.component.scss']
styleUrls: ['./adjust-loan-charge.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
MatSlideToggle,
CdkTextareaAutosize
]
})
export class AdjustLoanChargeComponent implements OnInit {
/** Loan Id */
@@ -1,13 +1,16 @@
/** Angular Imports. */
import { Component, OnInit, Input } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators, FormControl } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { UntypedFormGroup, UntypedFormBuilder, Validators, FormControl, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Dates } from 'app/core/utils/dates';
/** Custom Services. */
import { LoansService } from 'app/loans/loans.service';
import { SettingsService } from 'app/settings/settings.service';
import { Currency } from 'app/shared/models/general.model';
import { InputAmountComponent } from '../../../../shared/input-amount/input-amount.component';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Approve Loan component.
@@ -15,7 +18,12 @@ import { Currency } from 'app/shared/models/general.model';
@Component({
selector: 'mifosx-approve-loan',
templateUrl: './approve-loan.component.html',
styleUrls: ['./approve-loan.component.scss']
styleUrls: ['./approve-loan.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
InputAmountComponent,
CdkTextareaAutosize
]
})
export class ApproveLoanComponent implements OnInit {
/** Approve Loan form. */
@@ -1,14 +1,18 @@
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 { ExternalAssetOwnerService } from 'app/loans/services/external-asset-owner.service';
import { SettingsService } from 'app/settings/settings.service';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@Component({
selector: 'mifosx-asset-transfer-loan',
templateUrl: './asset-transfer-loan.component.html',
styleUrls: ['./asset-transfer-loan.component.scss']
styleUrls: ['./asset-transfer-loan.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS
]
})
export class AssetTransferLoanComponent implements OnInit {
BUYBACK_COMMAND = 'buyback';
@@ -1,16 +1,20 @@
import { Component, OnInit, Input } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { LoansService } from 'app/loans/loans.service';
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
import { UntypedFormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
/** Custom Services */
import { SettingsService } from 'app/settings/settings.service';
import { Dates } from 'app/core/utils/dates';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@Component({
selector: 'mifosx-assign-loan-officer',
templateUrl: './assign-loan-officer.component.html',
styleUrls: ['./assign-loan-officer.component.scss']
styleUrls: ['./assign-loan-officer.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS
]
})
export class AssignLoanOfficerComponent implements OnInit {
@Input() dataObject: any;
@@ -1,14 +1,20 @@
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 { LoansService } from 'app/loans/loans.service';
import { SettingsService } from 'app/settings/settings.service';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@Component({
selector: 'mifosx-charge-off',
templateUrl: './charge-off.component.html',
styleUrls: ['./charge-off.component.scss']
styleUrls: ['./charge-off.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
CdkTextareaAutosize
]
})
export class ChargeOffComponent implements OnInit {
@Input() dataObject: any;
@@ -1,16 +1,22 @@
import { Component, OnInit, Input } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
import { UntypedFormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
import { LoansService } from 'app/loans/loans.service';
import { ActivatedRoute, Router } from '@angular/router';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
/** Custom Services */
import { SettingsService } from 'app/settings/settings.service';
import { Dates } from 'app/core/utils/dates';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@Component({
selector: 'mifosx-close-as-rescheduled',
templateUrl: './close-as-rescheduled.component.html',
styleUrls: ['./close-as-rescheduled.component.scss']
styleUrls: ['./close-as-rescheduled.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
CdkTextareaAutosize
]
})
export class CloseAsRescheduledComponent implements OnInit {
@Input() dataObject: any;
@@ -1,13 +1,22 @@
/** Angular Imports */
import { Component, OnInit, Input, AfterViewInit } 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';
/** Custom Services */
import { LoansService } from 'app/loans/loans.service';
import { ClientsService } from 'app/clients/clients.service';
import { SettingsService } from 'app/settings/settings.service';
import { Dates } from 'app/core/utils/dates';
import { MatCheckbox } from '@angular/material/checkbox';
import { MatAutocompleteTrigger, MatAutocomplete, MatOption } from '@angular/material/autocomplete';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Create Guarantor Action
@@ -15,7 +24,13 @@ import { Dates } from 'app/core/utils/dates';
@Component({
selector: 'mifosx-create-guarantor',
templateUrl: './create-guarantor.component.html',
styleUrls: ['./create-guarantor.component.scss']
styleUrls: ['./create-guarantor.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
MatCheckbox,
MatAutocompleteTrigger,
MatAutocomplete
]
})
export class CreateGuarantorComponent implements OnInit, AfterViewInit {
@Input() dataObject: any;
@@ -1,15 +1,29 @@
import { Component, Input, OnInit } from '@angular/core';
import { UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import {
UntypedFormBuilder,
UntypedFormControl,
UntypedFormGroup,
Validators,
ReactiveFormsModule
} from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Dates } from 'app/core/utils/dates';
import { LoansService } from 'app/loans/loans.service';
import { SettingsService } from 'app/settings/settings.service';
import { Currency } from 'app/shared/models/general.model';
import { InputAmountComponent } from '../../../../shared/input-amount/input-amount.component';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@Component({
selector: 'mifosx-disburse-to-savings-account',
templateUrl: './disburse-to-savings-account.component.html',
styleUrls: ['./disburse-to-savings-account.component.scss']
styleUrls: ['./disburse-to-savings-account.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
InputAmountComponent,
CdkTextareaAutosize
]
})
export class DisburseToSavingsAccountComponent implements OnInit {
@Input() dataObject: any;
@@ -1,13 +1,23 @@
/** Angular Imports */
import { Component, OnInit, Input } 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';
/** Custom Services */
import { LoansService } from 'app/loans/loans.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';
/**
* Disburse Loan Option
@@ -15,7 +25,13 @@ import { Currency } from 'app/shared/models/general.model';
@Component({
selector: 'mifosx-disburse',
templateUrl: './disburse.component.html',
styleUrls: ['./disburse.component.scss']
styleUrls: ['./disburse.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
InputAmountComponent,
MatSlideToggle,
CdkTextareaAutosize
]
})
export class DisburseComponent implements OnInit {
@Input() dataObject: any;
@@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { ActivatedRoute, Router } from '@angular/router';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { TranslateService } from '@ngx-translate/core';
import { Dates } from 'app/core/utils/dates';
import { LoansService } from 'app/loans/loans.service';
@@ -10,11 +10,17 @@ import { FormDialogComponent } from 'app/shared/form-dialog/form-dialog.componen
import { FormfieldBase } from 'app/shared/form-dialog/formfield/model/formfield-base';
import { InputBase } from 'app/shared/form-dialog/formfield/model/input-base';
import { SelectBase } from 'app/shared/form-dialog/formfield/model/select-base';
import { RepaymentScheduleTabComponent } from '../../repayment-schedule-tab/repayment-schedule-tab.component';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@Component({
selector: 'mifosx-edit-repayment-schedule',
templateUrl: './edit-repayment-schedule.component.html',
styleUrls: ['./edit-repayment-schedule.component.scss']
styleUrls: ['./edit-repayment-schedule.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
RepaymentScheduleTabComponent
]
})
export class EditRepaymentScheduleComponent implements OnInit {
/** Loan ID. */
@@ -1,16 +1,22 @@
import { Component, Input, OnInit } from '@angular/core';
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
import { UntypedFormBuilder, UntypedFormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
import { LoansService } from 'app/loans/loans.service';
import { ActivatedRoute, Router } from '@angular/router';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
/** Custom Services */
import { SettingsService } from 'app/settings/settings.service';
import { Dates } from 'app/core/utils/dates';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@Component({
selector: 'mifosx-foreclosure',
templateUrl: './foreclosure.component.html',
styleUrls: ['./foreclosure.component.scss']
styleUrls: ['./foreclosure.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
CdkTextareaAutosize
]
})
export class ForeclosureComponent implements OnInit {
@Input() dataObject: any;
@@ -1,6 +1,36 @@
/** Angular Imports. */
import { Component } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { LoansAccountCloseComponent } from './loans-account-close/loans-account-close.component';
import { UndoApprovalComponent } from './undo-approval/undo-approval.component';
import { AssignLoanOfficerComponent } from './assign-loan-officer/assign-loan-officer.component';
import { ForeclosureComponent } from './foreclosure/foreclosure.component';
import { PrepayLoanComponent } from './prepay-loan/prepay-loan.component';
import { MakeRepaymentComponent } from './make-repayment/make-repayment.component';
import { LoanCreditBalanceRefundComponent } from './loan-credit-balance-refund/loan-credit-balance-refund.component';
import { WaiveInterestComponent } from './waive-interest/waive-interest.component';
import { WriteOffPageComponent } from './write-off-page/write-off-page.component';
import { CloseAsRescheduledComponent } from './close-as-rescheduled/close-as-rescheduled.component';
import { LoanRescheduleComponent } from './loan-reschedule/loan-reschedule.component';
import { RecoveryRepaymentComponent } from './recovery-repayment/recovery-repayment.component';
import { ViewGuarantorsComponent } from './view-guarantors/view-guarantors.component';
import { CreateGuarantorComponent } from './create-guarantor/create-guarantor.component';
import { DisburseToSavingsAccountComponent } from './disburse-to-savings-account/disburse-to-savings-account.component';
import { RejectLoanComponent } from './reject-loan/reject-loan.component';
import { DisburseComponent } from './disburse/disburse.component';
import { WithdrawnByClientComponent } from './withdrawn-by-client/withdrawn-by-client.component';
import { AddCollateralComponent } from './add-collateral/add-collateral.component';
import { UndoDisbursalComponent } from './undo-disbursal/undo-disbursal.component';
import { LoanScreenReportsComponent } from './loan-screen-reports/loan-screen-reports.component';
import { ApproveLoanComponent } from './approve-loan/approve-loan.component';
import { AddLoanChargeComponent } from './add-loan-charge/add-loan-charge.component';
import { EditRepaymentScheduleComponent } from './edit-repayment-schedule/edit-repayment-schedule.component';
import { ChargeOffComponent } from './charge-off/charge-off.component';
import { AssetTransferLoanComponent } from './asset-transfer-loan/asset-transfer-loan.component';
import { LoanReagingComponent } from './loan-reaging/loan-reaging.component';
import { LoanReamortizeComponent } from './loan-reamortize/loan-reamortize.component';
import { AddInterestPauseComponent } from './add-interest-pause/add-interest-pause.component';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Loan Account Actions component.
@@ -8,7 +38,39 @@ import { ActivatedRoute, Router } from '@angular/router';
@Component({
selector: 'mifosx-loan-account-actions',
templateUrl: './loan-account-actions.component.html',
styleUrls: ['./loan-account-actions.component.scss']
styleUrls: ['./loan-account-actions.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
LoansAccountCloseComponent,
UndoApprovalComponent,
AssignLoanOfficerComponent,
ForeclosureComponent,
PrepayLoanComponent,
MakeRepaymentComponent,
LoanCreditBalanceRefundComponent,
WaiveInterestComponent,
WriteOffPageComponent,
CloseAsRescheduledComponent,
LoanRescheduleComponent,
RecoveryRepaymentComponent,
ViewGuarantorsComponent,
CreateGuarantorComponent,
DisburseToSavingsAccountComponent,
RejectLoanComponent,
DisburseComponent,
WithdrawnByClientComponent,
AddCollateralComponent,
UndoDisbursalComponent,
LoanScreenReportsComponent,
ApproveLoanComponent,
AddLoanChargeComponent,
EditRepaymentScheduleComponent,
ChargeOffComponent,
AssetTransferLoanComponent,
LoanReagingComponent,
LoanReamortizeComponent,
AddInterestPauseComponent
]
})
export class LoanAccountActionsComponent {
/** Loan Details Data */
@@ -1,15 +1,23 @@
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 { LoansService } from 'app/loans/loans.service';
import { SettingsService } from 'app/settings/settings.service';
import { Currency } from 'app/shared/models/general.model';
import { InputAmountComponent } from '../../../../shared/input-amount/input-amount.component';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@Component({
selector: 'mifosx-loan-credit-balance-refund',
templateUrl: './loan-credit-balance-refund.component.html',
styleUrls: ['./loan-credit-balance-refund.component.scss']
styleUrls: ['./loan-credit-balance-refund.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
InputAmountComponent,
CdkTextareaAutosize
]
})
export class LoanCreditBalanceRefundComponent implements OnInit {
@Input() dataObject: any;
@@ -1,16 +1,20 @@
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 { DropdownOptions } from 'app/core/utils/dropdownOptions';
import { LoansService } from 'app/loans/loans.service';
import { SettingsService } from 'app/settings/settings.service';
import { OptionData } from 'app/shared/models/option-data.model';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@Component({
selector: 'mifosx-loan-reaging',
templateUrl: './loan-reaging.component.html',
styleUrls: ['./loan-reaging.component.scss']
styleUrls: ['./loan-reaging.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS
]
})
export class LoanReagingComponent implements OnInit {
@Input() dataObject: any;
@@ -1,12 +1,16 @@
import { Component, Input, OnInit } from '@angular/core';
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { UntypedFormBuilder, UntypedFormGroup, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { LoansService } from 'app/loans/loans.service';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@Component({
selector: 'mifosx-loan-reamortize',
templateUrl: './loan-reamortize.component.html',
styleUrls: ['./loan-reamortize.component.scss']
styleUrls: ['./loan-reamortize.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS
]
})
export class LoanReamortizeComponent implements OnInit {
@Input() dataObject: any;
@@ -1,16 +1,28 @@
import { Component, OnInit, Input } from '@angular/core';
import { LoansService } from 'app/loans/loans.service';
import { UntypedFormBuilder, UntypedFormGroup, Validators, UntypedFormControl } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import {
UntypedFormBuilder,
UntypedFormGroup,
Validators,
UntypedFormControl,
ReactiveFormsModule
} from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
/** Custom Services */
import { SettingsService } from 'app/settings/settings.service';
import { Dates } from 'app/core/utils/dates';
import { MatCheckbox } from '@angular/material/checkbox';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@Component({
selector: 'mifosx-loan-reschedule',
templateUrl: './loan-reschedule.component.html',
styleUrls: ['./loan-reschedule.component.scss']
styleUrls: ['./loan-reschedule.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
MatCheckbox
]
})
export class LoanRescheduleComponent implements OnInit {
@Input() dataObject: any;
@@ -1,11 +1,13 @@
/** Angular Imports */
import { Component, OnInit, Renderer2, ViewChild, ElementRef, SecurityContext, Input } 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 { LoansService } from 'app/loans/loans.service';
import { DomSanitizer } from '@angular/platform-browser';
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Loans Screen Reports Component.
@@ -13,7 +15,11 @@ import { DomSanitizer } from '@angular/platform-browser';
@Component({
selector: 'mifosx-loan-screen-reports',
templateUrl: './loan-screen-reports.component.html',
styleUrls: ['./loan-screen-reports.component.scss']
styleUrls: ['./loan-screen-reports.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
FaIconComponent
]
})
export class LoanScreenReportsComponent implements OnInit {
@Input() dataObject: any;
@@ -1,17 +1,23 @@
/** Angular Imports */
import { Component, OnInit, Input } from '@angular/core';
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/router';
import { UntypedFormBuilder, UntypedFormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
import { Router, ActivatedRoute, RouterLink } from '@angular/router';
import { LoansService } from 'app/loans/loans.service';
/** Custom Services */
import { SettingsService } from 'app/settings/settings.service';
import { Dates } from 'app/core/utils/dates';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
@Component({
selector: 'mifosx-loans-account-close',
templateUrl: './loans-account-close.component.html',
styleUrls: ['./loans-account-close.component.scss']
styleUrls: ['./loans-account-close.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
CdkTextareaAutosize
]
})
export class LoansAccountCloseComponent implements OnInit {
@Input() dataObject: any;
@@ -1,13 +1,24 @@
/** Angular Imports */
import { Component, OnInit, Input } 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';
/** Custom Services */
import { LoansService } from 'app/loans/loans.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 { FormatNumberPipe } from '../../../../pipes/format-number.pipe';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Loan Make Repayment Component
@@ -15,7 +26,14 @@ import { Currency } from 'app/shared/models/general.model';
@Component({
selector: 'mifosx-make-repayment',
templateUrl: './make-repayment.component.html',
styleUrls: ['./make-repayment.component.scss']
styleUrls: ['./make-repayment.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
InputAmountComponent,
MatSlideToggle,
CdkTextareaAutosize,
FormatNumberPipe
]
})
export class MakeRepaymentComponent implements OnInit {
@Input() dataObject: any;
@@ -1,13 +1,24 @@
/** Angular Imports */
import { Component, OnInit, Input } 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';
/** Custom Services */
import { LoansService } from 'app/loans/loans.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 { FormatNumberPipe } from '../../../../pipes/format-number.pipe';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Loan Prepay Loan Option
@@ -15,7 +26,14 @@ import { Currency } from 'app/shared/models/general.model';
@Component({
selector: 'mifosx-prepay-loan',
templateUrl: './prepay-loan.component.html',
styleUrls: ['./prepay-loan.component.scss']
styleUrls: ['./prepay-loan.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
InputAmountComponent,
MatSlideToggle,
CdkTextareaAutosize,
FormatNumberPipe
]
})
export class PrepayLoanComponent implements OnInit {
@Input() dataObject: any;
@@ -1,13 +1,23 @@
/** Angular Imports */
import { Component, OnInit, Input } 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';
/** Custom Services */
import { LoansService } from 'app/loans/loans.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';
/**
* Loan Recovery Repayment Action
@@ -15,7 +25,13 @@ import { Currency } from 'app/shared/models/general.model';
@Component({
selector: 'mifosx-recovery-repayment',
templateUrl: './recovery-repayment.component.html',
styleUrls: ['./recovery-repayment.component.scss']
styleUrls: ['./recovery-repayment.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
InputAmountComponent,
MatSlideToggle,
CdkTextareaAutosize
]
})
export class RecoveryRepaymentComponent implements OnInit {
@Input() dataObject: any;
@@ -1,12 +1,14 @@
/** Angular Imports. */
import { Component, OnInit } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/router';
import { UntypedFormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
import { Router, ActivatedRoute, RouterLink } from '@angular/router';
/** Custom services. */
import { LoansService } from 'app/loans/loans.service';
import { SettingsService } from 'app/settings/settings.service';
import { Dates } from 'app/core/utils/dates';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Reject Loan component.
@@ -14,7 +16,11 @@ import { Dates } from 'app/core/utils/dates';
@Component({
selector: 'mifosx-reject-loan',
templateUrl: './reject-loan.component.html',
styleUrls: ['./reject-loan.component.scss']
styleUrls: ['./reject-loan.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
CdkTextareaAutosize
]
})
export class RejectLoanComponent implements OnInit {
/** Loan Id. */
@@ -1,17 +1,21 @@
/** Angular Imports. */
import { Component, OnInit } from '@angular/core';
import { UntypedFormControl, UntypedFormBuilder } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { UntypedFormControl, UntypedFormBuilder, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
/** Custom Services. */
import { LoansService } from 'app/loans/loans.service';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Undo Loan component.
*/
@Component({
selector: 'mifosx-undo-approval',
templateUrl: './undo-approval.component.html',
styleUrls: ['./undo-approval.component.scss']
styleUrls: ['./undo-approval.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS
]
})
export class UndoApprovalComponent implements OnInit {
/** Form Controller. */
@@ -1,10 +1,12 @@
/** Angular Imports */
import { Component, Input, OnInit } from '@angular/core';
import { UntypedFormControl, UntypedFormBuilder, Validators } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/router';
import { UntypedFormControl, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
import { Router, ActivatedRoute, RouterLink } from '@angular/router';
/** Custom Services */
import { LoansService } from '../../../loans.service';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Undo Disbursal component.
@@ -12,7 +14,11 @@ import { LoansService } from '../../../loans.service';
@Component({
selector: 'mifosx-undo-disbursal',
templateUrl: './undo-disbursal.component.html',
styleUrls: ['./undo-disbursal.component.scss']
styleUrls: ['./undo-disbursal.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
CdkTextareaAutosize
]
})
export class UndoDisbursalComponent implements OnInit {
@Input() actionName: string;
@@ -10,6 +10,23 @@ import { LoansService } from 'app/loans/loans.service';
/** Dialog Components */
import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.component';
import { LoansAccountViewGuarantorDetailsDialogComponent } from 'app/loans/custom-dialog/loans-account-view-guarantor-details-dialog/loans-account-view-guarantor-details-dialog.component';
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
import { ExternalIdentifierComponent } from '../../../../shared/external-identifier/external-identifier.component';
import {
MatTable,
MatColumnDef,
MatHeaderCellDef,
MatHeaderCell,
MatCellDef,
MatCell,
MatHeaderRowDef,
MatHeaderRow,
MatRowDef,
MatRow
} from '@angular/material/table';
import { AccountsFilterPipe } from '../../../../pipes/accounts-filter.pipe';
import { FormatNumberPipe } from '../../../../pipes/format-number.pipe';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* View Guarantors Action
@@ -17,7 +34,24 @@ import { LoansAccountViewGuarantorDetailsDialogComponent } from 'app/loans/custo
@Component({
selector: 'mifosx-view-guarantors',
templateUrl: './view-guarantors.component.html',
styleUrls: ['./view-guarantors.component.scss']
styleUrls: ['./view-guarantors.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
FaIconComponent,
ExternalIdentifierComponent,
MatTable,
MatColumnDef,
MatHeaderCellDef,
MatHeaderCell,
MatCellDef,
MatCell,
MatHeaderRowDef,
MatHeaderRow,
MatRowDef,
MatRow,
AccountsFilterPipe,
FormatNumberPipe
]
})
export class ViewGuarantorsComponent implements OnInit {
@Input() dataObject: any;
@@ -1,13 +1,16 @@
/** Angular Imports. */
import { Component, OnInit, Input } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/router';
import { UntypedFormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
import { Router, ActivatedRoute, RouterLink } from '@angular/router';
/** Custom Services. */
import { LoansService } from 'app/loans/loans.service';
import { Dates } from 'app/core/utils/dates';
import { SettingsService } from 'app/settings/settings.service';
import { Currency } from 'app/shared/models/general.model';
import { InputAmountComponent } from '../../../../shared/input-amount/input-amount.component';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Waive Interest component.
@@ -15,7 +18,12 @@ import { Currency } from 'app/shared/models/general.model';
@Component({
selector: 'mifosx-waive-interest',
templateUrl: './waive-interest.component.html',
styleUrls: ['./waive-interest.component.scss']
styleUrls: ['./waive-interest.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
InputAmountComponent,
CdkTextareaAutosize
]
})
export class WaiveInterestComponent implements OnInit {
@Input() dataObject: any;
@@ -1,12 +1,14 @@
/** Angular Imports */
import { Component, OnInit, Input } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators, FormControl } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { UntypedFormGroup, UntypedFormBuilder, Validators, FormControl, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
/** Custom Services */
import { LoansService } from 'app/loans/loans.service';
import { SettingsService } from 'app/settings/settings.service';
import { Dates } from 'app/core/utils/dates';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Withdrawn By Applicant Loan Form
@@ -14,7 +16,11 @@ import { Dates } from 'app/core/utils/dates';
@Component({
selector: 'mifosx-withdrawn-by-client',
templateUrl: './withdrawn-by-client.component.html',
styleUrls: ['./withdrawn-by-client.component.scss']
styleUrls: ['./withdrawn-by-client.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
CdkTextareaAutosize
]
})
export class WithdrawnByClientComponent implements OnInit {
@Input() dataObject: any;
@@ -1,12 +1,14 @@
/** 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 { LoansService } from 'app/loans/loans.service';
import { SettingsService } from 'app/settings/settings.service';
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
/**
* Write Off component.
@@ -14,7 +16,11 @@ import { SettingsService } from 'app/settings/settings.service';
@Component({
selector: 'mifosx-write-off-page',
templateUrl: './write-off-page.component.html',
styleUrls: ['./write-off-page.component.scss']
styleUrls: ['./write-off-page.component.scss'],
imports: [
...STANDALONE_SHARED_IMPORTS,
CdkTextareaAutosize
]
})
export class WriteOffPageComponent implements OnInit {
@Input() dataObject: any;