EWC Selector

The flagship European Waste Catalogue picker: a hybrid segmented code entry and search-by-description dropdown, with recents, a C&D-only toggle, material filters and hazardous flagging — plus the full List of Wastes lookup modal.

$bunx shadcn@latest add @nx-ui/ewc-selector
Registry item
Installs withbadgebuttondata-ewc-codesdialoginputkbdlabelutils

EwcLookupField → EwcLookupModal

The movement-form flow: type a code straight into the mono input (a complete valid code resolves inline), or open the full lookup — search, hazard-class count pills, chapter navigation with recents, grouped rows with WM3 flag badges, and a detail pane that previews the evidence each code requires. Picking a hazardous code surfaces the auto-upgrade banner.

Used on waste paperwork (WTNs, consignment notes). Codes ending in * are hazardous.

Movement status: Waste

Hybrid picker

Type the six-digit code directly (it auto-advances and auto-selects on a valid match), paste a full code, or start typing a description to search. A red asterisk flags hazardous codes.

EWC code

Selected:

Pre-filled value

Controlled by a full code string. Selecting a hazardous code (try 17 05 03*) surfaces the hazardous badge in the summary strip.

EWC code

soil and stones containing hazardous substances

Hazardous

EwcCodeSummary

A read-only display of a code string — code, hazardous asterisk, description and badge. Renders a placeholder when empty.

17 05 03*Hazardous

soil and stones containing hazardous substances

17 05 04

soil and stones other than those mentioned in 17 05 03

EwcCodeDetail

A boxed detail card for a resolved entry — mono code, hazardous badge, full description and material category.

17 05 03Hazardous

soil and stones containing hazardous substances

Material category: Soils