@skireal/form-builder
Version:
Form builder for Angular apps
59 lines (58 loc) • 2.21 kB
TypeScript
import { ConditionalLogicBlock, Field, FormField, FormFieldBooleanKeys } from '../models/form-constructor.model';
export declare enum FormFieldType {
Text = "text",
Textarea = "textarea",
Date = "date",
Select = "select",
Number = "number",
Checkbox = "checkbox",
CheckboxGroup = "checkbox-group",
Radio = "radio",
NeedContact = "need-contact",
File = "file",
Password = "password",
Email = "email",
Phone = "phone",
Likert = "likert",
Csat = "csat",
CES = "ces",
NPS = "nps",
QE = "qe",
ContactName = "contact-name",
ContactSurname = "contact-surname",
ContactEmail = "contact-email",
ContactPhone = "contact-phone",
CountryDropdown = "country-dropdown"
}
export declare enum ValidatorType {
Required = "required",
MinLength = "minlength",
MaxLength = "maxlength",
Pattern = "pattern",
Email = "email",
Min = "min",
Max = "max",
RequiredTrue = "requiredTrue"
}
export declare const formFieldTypes: FormFieldType[];
export declare const surveyFieldTypes: FormFieldType[];
export declare const fieldTypesNames: FieldTypesNames;
export declare const uniqueFieldTypes: FormFieldType[];
export declare type FieldTypesNames = Record<FormFieldType, string>;
export declare const validatorTypes: ValidatorType[];
export declare const commonFields: Field[];
export declare const fieldsByType: Record<string, Field[]>;
export declare const defaultOptionValues: {
name: string;
value: string;
}[];
export declare const controlsMap: Record<string, string[]>;
export declare const defaultConditionalLogicBlock: ConditionalLogicBlock;
export declare const conditionOptions: Record<string, string[]>;
export declare const haveOptionsFieldTypes: string[];
export declare const withoutValueValidatorTypes: string[];
export declare const booleanFields: FormFieldBooleanKeys[];
export declare const arrayProperties: (keyof FormField)[];
export declare const defaultValuesMap: Record<string, Record<string, any>>;
export declare const maxLengthMap: Record<string, number>;
export declare const requiredSubfieldsMap: Record<string, string[]>;