import { OnDestroy, OnInit } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { Observable } from 'rxjs'; import { CardComponent } from '../card/card.component'; import { ItemService } from '../item.service'; import { MessageService } from '../message/services/message.service'; import * as i0 from "@angular/core"; /** * Reusable component for creating and editing organization items. The component does not * know anything about form specific. */ export declare class FormComponent implements OnInit, OnDestroy { protected itemService: ItemService; protected messageService: MessageService; /** * i18n root for all localizations. The i18n root key is suffixed with * either `.edit` or `.create`, depending on the usage of the component. */ i18nRoot: string; animateBack: boolean; subtitle?: string; /** * i18n key for the localizations. */ i18n: string; form$: Observable; /** * To handle the case of receiving a negative response during creation an item */ disabled$: Observable; constructor(itemService: ItemService, messageService: MessageService); save(form: FormGroup): void; protected notify(item: T, action: string): void; protected setI18nRoot(item: T): void; back(event: MouseEvent, card: CardComponent): void; ngOnInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "cx-org-form", never, { "i18nRoot": "i18nRoot"; "animateBack": "animateBack"; "subtitle": "subtitle"; }, {}, never, ["[main]"]>; }