collectNativeFields function ✓ 100.0%
Last updated: 2026-03-04T23:21:38.391Z
Metrics
LOC: 5
Complexity: 2
Params: 0
Coverage: 100.0% (2/2 lines, 8x executed)
Signature
collectNativeFields(): : FormField[]
Summary
Queries the DOM for native form controls, applies visibility/exclusion filters, and returns bare FormField stubs (selector, label, signals — no fieldType yet). Classification is handled separately.
Source Code
function collectNativeFields(): FormField[] {
return Array.from(document.querySelectorAll<NativeElement>(INPUT_SELECTOR))
.filter((el) => isVisible(el) && isNotCustomSelect(el))
.map(buildNativeField);
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| isVisible | calls |
| isNotCustomSelect | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| detectNativeFieldsAsync | calls |
| getActiveClassifiers | calls |
| detect | calls |