Extract Radio, Numeric and Decimal wrappers

This commit is contained in:
2026-04-08 10:00:01 +01:00
parent dbebd03cac
commit 5d40fab5c4
5 changed files with 361 additions and 314 deletions
+28
View File
@@ -3670,3 +3670,31 @@ Validation:
Follow-ups:
- Remaining wrappers can continue as bounded slices (`Radiofield`, `NumericField`, `DecimalField`) if required.
---
### CL-104: 22500 wrapper extraction bundle (`Radiofield`, `NumericField`, `DecimalField`)
date: 2026-04-08
author: Cline
scope: `components/elements/index.js`, `components/elements/fields/{radioField,numericField,decimalField}.js`
type: change
rationale: Continue Phase 2 with the next bounded wrapper bundle by extracting wrappers 4/5/6 from `components/elements/index.js` into dedicated field modules without behavior change.
impact: No intended behavior change; preserves EN/CY behavior, validation wiring, and accessibility semantics while reducing monolith size.
status: completed
Summary:
- Added `components/elements/fields/radioField.js` for `Radiofield`.
- Added `components/elements/fields/numericField.js` for `NumericField`.
- Added `components/elements/fields/decimalField.js` for `DecimalField`.
- Updated `components/elements/index.js` to import/export these wrappers from field modules.
- Removed inline `Radiofield`, `NumericField`, and `DecimalField` implementations from `index.js`.
Validation:
- `npx eslint components/elements/index.js components/elements/fields/radioField.js components/elements/fields/numericField.js components/elements/fields/decimalField.js` -> pass
Follow-ups:
- Next bounded wrappers (if needed): `ReadOnlyfield`/remaining small wrappers or additional dead-code cleanup slices.