Function: collectFieldSections()
collectFieldSections(
fields,getOverride):Map<string,string[]>
Defined in: packages/core/src/utils.ts:276
Collect section groupings from fields and a config override lookup. Returns a Map of section name → array of field keys that belong to it. Recursively visits nested children and array item templates.
Parameters
fields
The flat or nested FormField array to scan for section assignments.
getOverride
(key) => { section?: string; } | undefined
A function that returns the config override (if any) for a given field key.
Returns
Map<string, string[]>
A Map from section name to the ordered list of field keys assigned to that section.