UNPKG

@uplink-protocol/form-controller

Version:

Reactive multi-step form controller with dynamic validation and state management

29 lines (28 loc) 1.19 kB
import { ConfigService } from "./config.service"; import { StepperService } from "./stepper.service"; import { FormService } from "./form.service"; import { BaseService } from "./base.service"; import { FormStep } from "../interfaces/form-step.interface"; /** * BindingManager - Manages the bindings system for the form controller * Handles subscription setup and value propagation to the binding objects */ export declare class BindingManager { private configService; private stepperService; private formService; private fieldErrorsService; private stepsValidityService; bindings: any; constructor(configService: ConfigService, stepperService: StepperService, formService: FormService, fieldErrorsService: BaseService<Record<string, Record<string, string>>>, stepsValidityService: BaseService<Record<string, boolean>>); /** * Initialize the reactive bindings system */ private initializeBindings; /** * Update binding values for the current step after navigation * @param newIndex New step index * @param step New step object */ updateBindingsAfterNavigation(newIndex: number, step: FormStep | null): void; }