import { EventEmitter } from '@angular/core'; import { FormGroup, FormBuilder } from '@angular/forms'; import { NzModalService } from 'ng-zorro-antd/modal'; import { SuperCampo } from '../../model/superCampo'; import { AppLocaleService } from '@alfercom/common-utils'; import { TranslateService } from '@ngx-translate/core'; export declare class FiltroCompilabile { private fb; private modalController; private appLocaleService; private translateService; set campo(campo: SuperCampo); campoMapped: FiltroCompilabileType; selectLoadIndex: number; modificaFiltroEmitter: EventEmitter<{ id: string; value: any; forceDisattivazione: boolean; }>; private defaultDateTimePickerFormat; private defaultDatePickerFormat; constructor(fb: FormBuilder, modalController: NzModalService, appLocaleService: AppLocaleService, translateService: TranslateService); /** * Inizializzazione della configurazione della lingua */ initI18nConfig(): void; initFormGroup(_campo: SuperCampo): void; modificheHandler(): void; resetFormGroup(): void; emitModifica(id?: string, _value?: any, disattivaFiltro?: boolean): void; /** * Se gli elementi sono troppi per i checkbox e i radio button creo un'anteprima * @param elements */ itemsSelectable(elements?: any[]): void; itemsSelectableToItems(): void; /** * Vale solo per selezione-multipla e selezione-singola, apre un modale con tutte le opzioni possibili * Apre un modalino con tutte le opzioni */ visualizzaOpzioni(): void; setFormGroupValue(value: any): void; searchAutocomplete(label?: string): void; loadElements(itemsSearched?: { id: any; text: string; }[]): void; } export declare type FiltroCompilabileType = { id: number; label: string; labelOperatore: string; type: string; items?: any[]; itemsSelectable?: any | { label: string; value: string; disabled: boolean; checked: boolean; }[]; itemsFiltered?: { id: any; text: string; }[]; searchedValue?: string; formGroup: FormGroup; controlName: string; controlType: string; showMostraAltri: boolean; showAutoComplete?: boolean; prevValue?: any; infoFiltriSelezioneMultipla?: any; suggerimenti?: { id: number; text: string; value: any; }[]; };