import { OnInit, OnDestroy } from '@angular/core'; import { Router } from '@angular/router'; import { DescriptorTable } from '../../descriptor/descriptor-table'; import { DescriptorAction } from '../../descriptor/descriptor-action'; import { VedraxTableComponent } from '../vedrax-table/vedrax-table.component'; import { FormDescriptorService } from '../../services/form-descriptor.service'; import { DownloadService } from '../../services/download.service'; import { VedraxApiService } from '../../services/vedrax-api.service'; import { SnackbarService } from '../../services/snackbar.service'; import { TableSelectionItem } from '../../shared/table-selection-item'; import * as i0 from "@angular/core"; /** * Class that represents a CRUD component */ export declare class VedraxCrudComponent implements OnInit, OnDestroy { private formDescriptorService; private vedraxApiService; private downloadService; private snackBarService; private router; /** * the component title */ title: string; /** * an optional back url */ backUrl?: string; /** * an optional description */ description?: string; /** * a table descriptor */ tableDescriptor: DescriptorTable; /** * an optionnal action descriptor for the create button */ createAction?: DescriptorAction; /** * The paginator */ private tableComponent?; /** * table component reference */ set table(table: VedraxTableComponent); /** * The list of subscription */ private subscription; constructor(formDescriptorService: FormDescriptorService, vedraxApiService: VedraxApiService, downloadService: DownloadService, snackBarService: SnackbarService, router: Router); ngOnInit(): void; /** * Used for unsubscribing on destroy */ ngOnDestroy(): void; /** * Method used to trigger the creation form */ create(): void; /** * Method for selecting an item in the table * * @param element the selected element */ select(selection?: TableSelectionItem): void; /** * Method used to initiate a cron job * @param endpoint * @param params */ private initJobOnServer; /** * Method used to download a document * @param endpoint * @param id * @param params */ private downloadDocument; /** * Method used to download a file * @param data * @param id * @param params */ private downloadFile; /** * Method used to open dialog for creation and update * @param endpoint * @param isForCreate */ private openFormDialog; /** * Method for returning to the providing URL * @param action the provided action object for which the URL is constructed * @param item the provided selected item */ private redirectToUrl; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }