import { OnInit, EventEmitter, ElementRef, OnDestroy } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { ApiService } from '../../services/api.service'; import { FormService } from '../../services/form.service'; import { FieldConfig } from '../../models/metadata'; import { FormViewer } from '../../models/views'; import { HttpParams } from '@angular/common/http'; import { Router } from '@angular/router'; import { MatDialog, MatDialogRef } from '@angular/material/dialog'; import { MatSnackBar } from '@angular/material/snack-bar'; import { IframeModalComponent } from '../../components/iframe-modal/iframe-modal.component'; import { SearchDialogComponent } from '../../containers/search-dialog/search-dialog.component'; import { AttachmentsService } from '../../services/attachments.service'; import { Subscription } from 'rxjs'; export declare class ModelFormComponent implements OnInit, OnDestroy { private api; private formService; private _snackBar; private dialog; private router; private creationDialogRef; private iframeModal; private attacmentsService; viewConfig: FormViewer; expanded: boolean; mode: string; id: any; submit: EventEmitter; iframe: ElementRef; formGroup: FormGroup; formsets: FieldConfig[]; subFormsets: FieldConfig[]; is_ready: boolean; controlsConfig: FieldConfig[]; actions: {}; submitButtonText: string; _visibleControls: FieldConfig[]; disabled: boolean; initialLoading: boolean; fileUrl: any; fileName: any; openedInaialog: boolean; dropDownActionButtons: any; normalActionButtons: any; response: any; isExpanded: boolean; viewMode: any; iframeSrc: string; subscriptions: Subscription; constructor(api: ApiService, formService: FormService, _snackBar: MatSnackBar, dialog: MatDialog, router: Router, creationDialogRef: MatDialogRef, iframeModal: MatDialogRef, attacmentsService: AttachmentsService); ngOnInit(): void; appendIframeSrc(id?: any): void; toggleExpansion(): void; updateFormBasedOnWindowMessages(): void; editForm(id: any, state?: any): void; populateParams(): HttpParams; getFormErrors(): void; onAction(link: any): void; private handleRequest; openIframe(link: any): void; openActionDialog(options: any): void; fillFormControls(link: any): void; requestAction(link: any): void; saveAndEdit(): void; saveAndAdd(): void; save(): void; showSuccessMessage(): void; isEmptyObject(obj: any): boolean; removeEmptyFormsets(): void; _onSubmit(action_type?: any): void; private _submitSearchFormWithFilters; changeFieldsBeforeSending(): void; modifyDateFields(ctrl: any): void; handlePostSubmit(action_type: any, res: any): void; checkForirgnKey(ctrl: any): void; elementDeleted(event: any): void; applyPostSubmit(field: FieldConfig, id: string, options?: any): void; displayError(error: any): void; checkForPostSubmit(): FieldConfig[]; updateForiegnKeyField(element: any): void; updateForiegnKeyMultipleField(element: any): void; performAction(type: any): void; _onReset(): void; openSnackBar(message: string, type: string): void; getStyles(link: any): any; cancel(ref: any): void; ngOnDestroy(): void; } //# sourceMappingURL=model-form.component.d.ts.map