This is a generic lookup component implemented on lightning web components.
- Attribute to auto select single matching record, default is false.
- Sends an event with data when a record is selected or cleared.
- Display appropriate error message when user clicks away without selecting record or in case no matching record found.
- Make object, API name and placeholder labels dynamic.
- Add dynamic object icon for lookup results.
- Add
CRUD
andFLS
check. - Make backend class generic.