mapFieldToInputs
Main field mapper function that uses the field registry to get the appropriate mapper based on the field's type property.
This function must be called within an injection context where FIELD_SIGNAL_CONTEXT is provided, as mappers inject the context to access form state.
For componentless fields (no loadComponent and no mapper), returns undefined since there's no component to bind inputs to. Callers should check for undefined and skip rendering logic for such fields.
If the field type definition specifies propsToMeta, the specified props will be merged into the meta object (with meta taking precedence).
Presentation
function mapFieldToInputs (
fieldDef: FieldDef <unknown, FieldMeta >,
fieldRegistry: Map<string, FieldTypeDefinition <any>>,
): Signal<Record<string, unknown>> | undefined;Returns
Signal<Record<string, unknown>> | undefined -Signal containing Record of input names to values, or undefined for componentless fields
Parameters
| Name | Type | Description |
|---|---|---|
| fieldDef | | The field definition to map |
| fieldRegistry | Map<string, | The registry of field type definitions |