UNPKG

@fluent-form/core

Version:

An Angular dynamic forms library powered by Fluent API and JSON.

30 lines (29 loc) 1.89 kB
import { type FormControlStatus, FormGroup } from '@angular/forms'; import type { AnyObject } from '@ngify/core'; import type { AbstractFormGroupSchema } from '../../schemas'; import * as i0 from "@angular/core"; export declare class FluentForm<T extends AnyObject> { private readonly formUtil; private readonly modelUtil; private readonly schemaUtil; private internalModel; protected readonly templateRef: import("@angular/core").TemplateRef<import("@fluent-form/core").FormContentTemplateContext>; readonly schema: import("@angular/core").InputSignal<AbstractFormGroupSchema>; readonly model: import("@angular/core").ModelSignal<T>; readonly patchedSchema: import("@angular/core").Signal<AbstractFormGroupSchema>; protected form: import("@angular/core").Signal<FormGroup<any>>; readonly formChange: import("@angular/core").OutputEmitterRef<FormGroup<any>>; readonly valueChanges: import("@angular/core").OutputEmitterRef<T>; readonly statusChanges: import("@angular/core").OutputEmitterRef<FormControlStatus>; readonly submit: import("@angular/core").OutputEmitterRef<SubmitEvent>; readonly onSubmit: (event: SubmitEvent) => boolean; constructor(); private onValueChanges; static ɵfac: i0.ɵɵFactoryDeclaration<FluentForm<any>, never>; static ɵcmp: i0.ɵɵComponentDeclaration<FluentForm<any>, "fluent-form", never, { "schema": { "alias": "schema"; "required": true; "isSignal": true; }; "model": { "alias": "model"; "required": true; "isSignal": true; }; }, { "model": "modelChange"; "formChange": "formChange"; "valueChanges": "valueChanges"; "statusChanges": "statusChanges"; "submit": "submit"; }, never, never, true, never>; } /** * @deprecated * This component will be removed in future versions. Please use {@link FluentForm} instead. */ export declare const FluentFormComponent: typeof FluentForm;