import { FormGroup } from '@angular/forms'; import { CreateComponent } from '../create/create.component'; import { TranslatableForm } from '../translatable-edit/translatable-edit.component'; export declare abstract class TranslatableCreateComponent extends CreateComponent { /** * The formGroup, that is displayed. The man details (common) form. */ commonForm: FormGroup; /** * The translatable forms. Indexed by locales. */ translatableForms: TranslatableForm[]; constructor(); /** * Public property that can be used as change detection. * @returns true if there are no changes. */ readonly disabled: boolean; /** * This method extends the CreateComponent's onChildInit method with the filling of the form part. */ onChildInit(): void; /** * This function sets the CreateComponent's model before creating. */ beforeCreate(): void; /** * Private property that can be used as change detection. * @returns {boolean} true if there is an invalid form. */ protected readonly hasInvalidForm: boolean; /** * Private property that can be used as change detection. * @returns {boolean} true if there are at least one not empty and valid translatable form. */ protected readonly hasFilledTranslatableForm: boolean; /** * The abstract function, that needs to be implemented in the child element. This method will returns the FormGroup from the T model. * @returns void * @example * public getForm(): void { * this.commonForm = this.model.getFormGroup(); * } */ protected abstract getForms(): void; /** * The abstract function, that needs to be implemented in the child element. This method will transform the FormGroup into the model. * @returns void * @example * public loadModelFromForm(): void { * this.model.loadFromFormGroup(this.form); * } */ protected abstract loadModelFromForms(): void; }