import { EventEmitter, OnInit } from '@angular/core'; import { AlertService, FormValidatorService, RequestHelperService, TimelineValue } from 'ngx-techlify-core'; import { FormBuilder, FormGroup } from '@angular/forms'; import { MatTableDataSource } from '@angular/material/table'; import { SelectionModel } from '@angular/cdk/collections'; import { ActivatedRoute } from "@angular/router"; import { ExpenseService } from '../../expense/expense.service'; import { PaymentService } from '../../sale/payment/payment.service'; import { PaymentMethodTypeEnum } from '../../sale/payment/payment-method-type.enum'; import * as i0 from "@angular/core"; export declare class BillPaymentFormComponent implements OnInit { private formValidatorService; private formBuilder; private expenseService; private requestHelperService; private alertService; private paymentService; private activatedRoute; payment: any; saved: EventEmitter; cancelled: EventEmitter; form: FormGroup; filterForm: FormGroup; displayedColumns: string[]; dataSource: MatTableDataSource; selection: SelectionModel; isLoading: boolean; isSaving: boolean; billId: number; constructor(formValidatorService: FormValidatorService, formBuilder: FormBuilder, expenseService: ExpenseService, requestHelperService: RequestHelperService, alertService: AlertService, paymentService: PaymentService, activatedRoute: ActivatedRoute); ngOnInit(): void; /** Method to evaluate form fields*/ isFieldValid(field: string): any; /** Method to find error in form fields*/ getErrorMessage(field: string): any; /** * Reset the field. * * @param field */ resetField(field: string): void; /** Whether the number of selected elements matches the total number of rows. */ isAllSelected(): boolean; /** Selects all rows if they are not all selected; otherwise clear selection. */ toggleAllRows(): void; /** The label for the checkbox on the passed row */ checkboxLabel(row?: any): string; /** * Load bills. * * @private */ private loadData; /** * Handle on duration change event. * * @param timelineValue */ onDurationChange(timelineValue: TimelineValue): void; /** * Reset the bills data and reload. * * @private */ private reload; /** * Update the total payment on payment value change. * * @param event */ onPaymentChange(event: any): void; /** * Update the total payment. * * @private */ private updatePaymentsTotal; /** * Save the purchase payment. */ save(): void; /** * Prepare the bills table. * * @param response * @private */ private prepareData; protected readonly PaymentMethodTypeEnum: typeof PaymentMethodTypeEnum; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }