Module
@riducms/plugin-form-builder
@riducms/plugin-form-builder — Framework-neutral public form helpers plus a separately exported static admin pairing.
Functions 4
buildSubmissionInput()Split public values into scalar and upload submission rows.
validateFormValues()Provide immediate required, email, number, choice, and upload feedback.
confirmationFor()Normalize the configured message or redirect after a successful create.
getPaymentTotal()Calculate the display total with the same finite arithmetic model as Go.
Types 9
constant formBuilderAdminPluginThe static admin export declared by the Go descriptor.
constant formBuilderMessagesNamespaced fallback English plugin messages exported from the admin entrypoint.
type PriceConditionOne conditional price operation.
type FormFieldThe discriminated union a public renderer switches over.
type FormFieldDefinitionThe built-in or project-owned field definition accepted by generic helpers.
type UploadReferenceA single-target document ID or canonical Ridu polymorphic upload reference.
type FormValueOne public form control value.
type FormValuesValues keyed by editor-authored form field name.
type ConfirmationThe normalized post-submit action.
Interfaces 21
interface FormFieldBaseShared identity, label, required, and width values for input blocks.
interface TextFormFieldA text or textarea input definition.
interface EmailFormFieldAn email input definition.
interface NumberFormFieldA numeric input definition.
interface CheckboxFormFieldA checkbox input definition.
interface DateFormFieldA date input definition.
interface ChoiceOptionOne author-configured select or radio option.
interface ChoiceFormFieldA select or radio input definition.
interface CountryFormFieldA country or state input definition.
interface MessageFormFieldPresentation content inside a form.
interface UploadFormFieldAn upload reference input and its constraints.
interface PaymentFormFieldA payment total and provider selection definition.
interface CustomFormFieldA project-owned input block whose renderer and type-specific validation remain application-owned.
interface FormEmailA protected saved notification template.
interface FormRedirectA custom or relationship-backed success redirect.
interface FormDefinitionThe reusable form shape consumed by application renderers.
interface SubmissionValueOne scalar submission row.
interface PolymorphicUploadReferenceOne canonical Ridu polymorphic upload document reference.
interface SubmissionUploadOne named upload submission row.
interface FormSubmissionInputThe normalized public create payload.
interface FormValidationIssueOne immediate client validation message.