2026-03-27
- Implemented Autocomplete Widget Renderer:
- Created a new standalone
AutocompleteFieldComponentto handle streaming search and dynamic suggestions. - Decided against
BaseSelectFieldComponentinheritance to avoid pre-fetching logic and maintain a cleaner, RxJS-driven architecture. - Built a robust RxJS pipeline using
Subject,debounceTime, andswitchMapto handle API search requests with automatic cancellation of in-flight requests. - Implemented
AutocompleteFieldConfigwith support for both endpoint URLs and cURL-based data fetching. - Added custom validation logic for uniqueness, ensuring selected values are checked against the suggestion set.
- Ensured error state preservation so that
requiredand other validators are not cleared when customduplicateerrors are applied.
- Created a new standalone
- Unit Testing for Autocomplete:
- Created
autocomplete-field.component.jest.spec.tswith 100% coverage for the search pipeline, selection logic, and error handling. - Updated
field-registry.jest.spec.tsto include parity checks for the new widget.
- Created
- Dynaforms Schema Updates:
- Registered the
autocompletetype inFieldRegistryService. - Updated
FormElementConfigandFieldTypeunions inform-element-config.types.ts.
- Registered the