import { FormGroup } from '@angular/forms'; import { EditComponent } from '../edit/edit.component'; /** * This is the abstract edit component that can be used with Reactive forms in the edit views. * This class is highly recommended to use with Reactive Forms. */ export declare abstract class ReactiveEditComponent extends EditComponent { /** * The formGroup, that is displayed. */ form: FormGroup; /** * Original value of the initial form. */ protected originalFormContent: object; constructor(); /** * Public property that can be used as change detection. * @returns {boolean} true if there are no changes. */ readonly disabled: boolean; /** * This method extends the EditComponent's setModel method with the filling of the editForm part. */ beforeModelLoaded(): void; /** * This function sets the EditComponent's model before uploading. */ beforeUpdate(): void; /** * Private property that can be used as change detection. * @returns {boolean} true if there are no changes. */ protected readonly noChange: boolean; /** * The abstract function, that needs to be implemented in the child element. This method will returns the FormGroup from the T model. * @returns {FormGroup} * public getForm(): FormGroup { * return this.model.getFormGroup(); * } */ protected abstract getForm(): FormGroup; /** * The abstract function, that needs to be implemented in the child element. This method will transform the FormGroup into the model. * @returns {void} * public loadModelFromForm(): void { * this.model.loadFromFormGroup(this.form); * } */ protected abstract loadModelFromForm(): void; }