import { AfterViewInit } from "@angular/core"; import { FormGroup } from "@angular/forms"; import { EventBus, IEvent } from "@nova-ui/bits"; import { PizzagnaService } from "../../../../pizzagna/services/pizzagna.service"; import { PreviewService } from "../../preview.service"; import { BaseConverter } from "../base-converter"; import * as i0 from "@angular/core"; export declare class TableColumnsConverterService extends BaseConverter implements AfterViewInit { constructor(eventBus: EventBus, previewService: PreviewService, pizzagnaService: PizzagnaService); ngAfterViewInit(): void; buildForm(): void; toPreview(form: FormGroup): void; private subscribeToColumnsValueChange; /** * Filters columns which are active (visible) and don't have specified width * @param columns */ private filterColumnsWithoutSpecifiedWidth; /** * Receives columns which are active and don't have specified width and returns: * - if all columns have specified width, reset width of the last column and return its id * - if there are only one column, set this columns id as last without specified width * - if there are more than one column that don't have specified width, do nothing * @param activeColumnsWithoutWidth */ private handleColumnsWithoutSpecifiedWidth; private handleWidthValidation; private setWidthMessages; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }