import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core'; import { NgForm } from '@angular/forms'; import { NgOption } from '@ng-select/ng-select'; import { SelectColor, SelectItem, SelectItemGroup } from '@sowatech/shared/@types'; import { DatasourceComponent } from '@sowatech/shared/ds-datasource'; import { LoggerService } from '@sowatech/shared/logger'; import { GenericEditDialogBaseComponent } from './swt-generic-edit-dialog-base.component'; import { DialogDynamicList, DialogField, DialogFieldButton, DialogFieldCategory } from './swt-generic-edit-dialog.types'; import { SwtGenericEditDialogFormComponentBase } from './templates/swt-generic-edit-dialog-form.templates'; import * as i0 from "@angular/core"; export declare class GenericEditDialogFormComponent implements OnInit, OnDestroy, AfterViewInit { private logger; changeDetectorRef: ChangeDetectorRef; private readonly locale; private readonly currencyCode; constructor(logger: LoggerService, changeDetectorRef: ChangeDetectorRef, locale: string, currencyCode: string); ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; small: boolean; master: GenericEditDialogBaseComponent; cat: DialogFieldCategory; editItem: any; dynamicLookups: DialogDynamicList[]; inputClass: string; private subscriptions; template: QueryList; get dialogForm(): NgForm; swtDropdownContainerContainer: string; onDropdownGridShown: EventEmitter; passwordConfirmInvalid(field: DialogField): boolean; fieldVisible(field: DialogField): boolean; getLookups(field: DialogField): Array; getGroupableLookups(field: DialogField): SelectItemGroup[]; /** * Used for trackBy in NgFor. * Prevents the unnecessary Destroy/Create of the Elements, what breaks ChangeDetection in Firefox */ idenitifyGroupableLookupsChanged(index: any, item: SelectItemGroup): string; private ngSelectOptionsDictionary; getLookupsWithLabel(field: DialogField): Array; hasLookups(field: DialogField): boolean; dropDownClearClicked(fieldname: string): void; getDynamicDatasource(field: DialogField): DatasourceComponent; getDisplayValue(field: DialogField): string[]; getDisplayValueOrDefault(field: DialogField, defaultValue: string): string[]; refreshDialog(): void; formValueChanged: EventEmitter; onFormValueChanged(data?: any): void; onSelectChanged(fieldname: string): void; private clearDependentSelect; formErrors: {}; formValidate(data?: any): void; fieldValidate(field: DialogField, fieldValue?: unknown, fieldValue2?: unknown): void; formatMoneyText(field: DialogField): string; private setFormErrors; private getErrorMessage; containsFormButtons(field: DialogField): boolean; formButtons(field: DialogField): DialogFieldButton[]; onButtonClicked(btn: DialogFieldButton, editItem: any): void; doOnDropdownGridShown(fieldname: string): void; clickSpinnerUp(eventData: any, field: DialogField): void; clickSpinnerDown(eventData: any, field: DialogField): void; private getHasDatePicker; private readonly hasDatePicker; useBrowserDateInput(field: DialogField): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }