import { OnInit, OnDestroy, AfterViewInit, EventEmitter } from '@angular/core'; import { MatPaginator } from '@angular/material/paginator'; import { Router } from '@angular/router'; import { VedraxTableDataSource } from './vedrax-table.datasource'; import { DescriptorTable } from '../../descriptor/descriptor-table'; import { DescriptorAction } from '../../descriptor/descriptor-action'; import { VedraxApiService } from '../../services/vedrax-api.service'; import { DialogFormService } from '../../services/dialog-form.service'; import { DescriptorForm } from '../../descriptor/descriptor-form'; import * as i0 from "@angular/core"; /** * Class that defines a table component with its search box */ export declare class VedraxTableComponent implements AfterViewInit, OnInit, OnDestroy { private apiService; private dialogFormService; private router; /** * The table descriptor */ descriptor: DescriptorTable; /** * Emit an event with data for selected row */ onSelect: EventEmitter; /** * The displayed column of the table */ displayedColumns: string[]; /** * Is the request submitted */ submitted: boolean; /** * Total elements */ totalLength: number; /** * Put search form in an expansion panel by default */ search: boolean; /** * The query params */ private params; /** * The list of subscription */ private subscription; /** * The paginator */ private paginator?; /** * The Paginator reference setter */ set matPaginator(matPaginator: MatPaginator); /** * The datasource */ datasource: VedraxTableDataSource; constructor(apiService: VedraxApiService, dialogFormService: DialogFormService, router: Router); ngOnInit(): void; /** * Call API every time the paginator changes via the {@link tap} operator */ ngAfterViewInit(): void; /** * Used for unsubscribing on destroy */ ngOnDestroy(): void; /** * Method for generating the query params * according to the returned data of the search form. * * @param search */ filter(search?: any): void; /** * load data */ load(): void; /** * Method for selecting an item in the table * * @param element the selected element */ select(action: DescriptorAction, item?: any): void; /** * Method used for dynamically enabled/disabled an action on a row * * @param action the action * @param item the row item */ isActionEnable(action: DescriptorAction, item?: any): boolean; /** * Helper method for applying the provided comparator * * @param activate the activate object * @param item the row item */ private applyComparison; /** * Add manually an item * @param item */ addItem(item: any): void; /** * Update manually an item by its ID * @param item */ updateItem(item: any): void; /** * Method for opening a dialog * @param descriptorForm provided form descriptor */ openDialog(descriptorForm: DescriptorForm): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }