import { FormArray, FormGroup } from "@angular/forms"; import { SafeAny } from "../../utilities/type/type"; import { BzTableUnique } from "./table.interface"; export declare class BzTableUtils { /** * Check if the selected element has been selected yet. * * @author Federico Gambardella * @param {FormGroup} smartFormGroup * @param {SafeAny} bzSmartTable * @param {SafeAny} data * @param {number} index * @param {string} props * @returns {BzTableUnique} */ static checkForUniqueDatas(smartFormGroup: FormGroup, bzSmartTable: SafeAny, data: SafeAny, index: number, props: string): BzTableUnique; /** * Reset smartTable * * @author Federico Gambardella * @param {FormGroup} smartFormGroup * @param {SafeAny} bzSmartTable * @returns {SafeAny} */ static resetSmartTable(smartFormGroup: FormGroup, bzSmartTable: SafeAny): SafeAny; /** * Get form array. * * @author Federico Gambardella * @param {FormGroup} smartFormGroup * @returns {FormArray} */ static getFormArray(smartFormGroup: FormGroup): FormArray; /** * Update smart table. * * @author Federico Gambardella * @param bzSmartTable * @returns {SafeAny} */ static updateSmartTable(bzSmartTable: SafeAny): SafeAny; /** * Remove row. * * @author Federico Gambardella * @param {FormGroup} smartFormGroup * @param {number} index * @returns {SafeAny} */ static removeRow(smartFormGroup: FormGroup, index: number): SafeAny; /** * Get smart formarray. * * @author Federico Gambardella * @param {FormGroup} smartForm * @returns {FormArray} */ static getSmartFormArray(smartForm: FormGroup): FormArray; /** * Check if is first element and it is not empty. * * @author Federico Gambardella * @param {number} index * @param {FormGroup} smartForm * @param {string} prop * @returns {boolean} */ static isFirstAndNotEmpty(index: number, smartForm: FormGroup, prop: string): boolean; /** * Add smart form to formGroup of parent * * @author Federico Gambardella * @param formGroup * @param controlKey * @param smartArray * @param form */ static addSmartForm(formGroup: FormGroup, controlKey: string, smartArray: any, form: FormGroup, exclusions?: string): void; /** * Return a row form group. * * @author Federico Gambardella * @param index * @param smartFormGroup * @returns */ static getRowFormGroup(index: number, smartFormGroup: FormGroup): SafeAny; /** * Build an object of type BzTableUnique by input params. * * @author Federico Gambardella * @param {boolean} isUnique * @param {SafeAny} bzSmartTable * @returns {BzTableUnique} */ private static buildBzTableUniqueObject; /** * Manage exclusion. * * @author Federico Gambardella * @param {FormGroup} form * @param {string} exclusion */ private static _manageExclusion; }