/* * chip-input.js — generic multi-select with typeahead + optional "+ Create new" hook. * * Used by /admin/tables (Data Packages field) and /admin/corporate-memory * (item Domains field). Vanilla — no framework deps. * * Markup (any tag with role="chip-input" or class="chip-input" works): * *
* * Emits the standard `change` event with `event.detail = { selected: [...] }`. * A hidden mirrors the selected ids as a JSON array * so the surrounding