import { RLFComponentType, RLFValidationType } from "../components/form/form"; const suffixOptions: string[] = ["Sr.", "Jr.", "I", "II", "III"], relationOptions: string[] = [ "Father", "Mother", "Sibling", "Other Relative", "Friend", "Enemy" ], sexOptions: string[] = ["Male", "Female", "Cheetah", "Other"]; export const Test = { data: { name: { firstName: "Cory", middleName: "Eduard", lastName: "Loeffelman", suffix: "" }, about: { age: 26, sex: "Male", birthday: "08/29/1992" }, family: { heritage: "Czechoslovakian", members: [ { firstName: "Ed", lastName: "Loeffelman", relation: "Father" }, { firstName: "Karen", lastName: "Loeffelman", relation: "Mother" }, { firstName: "Melanie", lastName: "Loeffelman", relation: "Sibling" } ] }, location: { city: "Columbia", state: "Mo", zip: "65201", permanent: false }, comments: "This is a comment!" }, labels: { family: { members: { this: "", relation: "Family Relation" } }, location: { this: "Location Info", permanent: "Permanent residence?" } }, results: { nicknames: [ { name: "VVaffle", selected: false }, { name: "VVaffleman", selected: false } ] }, options: { name: { suffix: suffixOptions }, about: { sex: sexOptions }, family: { members: { relation: relationOptions } } }, validation: { name: { suffix: RLFValidationType.RequiredForSection }, about: { age: (age: number) => !isNaN(age) }, family: { heritage: RLFValidationType.Required, members: { firstName: RLFValidationType.Required, lastName: RLFValidationType.Required } }, location: { permanent: RLFValidationType.Required }, comments: RLFValidationType.Required }, messages: { about: { age: "Age must be numeric." } }, types: { comments: RLFComponentType.Textarea } };