# KptPickList (kpt-pick-list) Transfers items between two lists (source and target). Select and move them (one at a time or all), double-click a row to send it across, or turn on `dragdrop` and drag it. The item template comes through projection: ``. Import: `import { KptPickList } from '@konce-pt/angular';` ## Inputs / model - `source`: model; `target`: model (both two-way) - `sourceHeader`/`targetHeader`: string - `dragdrop`: boolean, default false - enables dragging (opt-in, nothing changes without it) - `layoutMotion`: `'spring' | 'arc' | 'morph' | 'none'` (default from `provideKptMotion`, else `spring`) - see below ## Example {{ item.name }} ## A double-click moves one item It sends exactly the row you clicked to the other panel and appends it at the end, whatever else is selected. It does not need `dragdrop` - the two clicks underneath cancel each other out, so the rest of the selection is left alone. ## Where a dragged item lands Dropping onto a row puts the dragged item at that row's position: inside one panel that reorders, across panels it transfers. Dropping on the empty part of a panel appends at the end. An item that leaves a panel also leaves that panel's selection. ## Move motion `layoutMotion` animates moves and reorders made by the user (buttons, double-click, `Enter`, dragging): - `spring` - the row glides to its new place on a spring; - `arc` - the row lifts (shadow) and flies along an arc, tilted toward the move; - `morph` - the browser's own morph (View Transitions); without browser support the move is instant, and the transition blocks clicks on the page for ~0.5 s; - `none` - no motion. A row crossing to the other list flies as a ghost - a copy above both panels, because the panel's `overflow` would clip the real row; the real row waits invisible where it lands. Neighbours close the gap or make room with a calm spring. The receiving list scrolls to the last moved row, so the landing is visible; rows scrolled out of view do not fly. A click in the middle of a flight starts the next one from where the rows are on screen. With no value it takes `layout` from `provideKptMotion` (default `spring`); `enabled: false` there and the system "reduce motion" setting always win. Lists replaced from outside (`[source]`, `[target]`) switch instantly - the old state has to be measured before the DOM changes. ## Tokens Selection `--kpt-color-primary`; headers `--kpt-color-surface-variant`. ## Keyboard Each list is a `listbox` with `aria-multiselectable` and a single Tab stop (roving tabindex): - `ArrowDown` / `ArrowUp` move between items (wrapping), `Home` / `End` jump to the ends; - `Space` toggles the focused item's selection (`aria-selected`), the same as a click; - `Enter` moves the focused item to the other list, the same as a double-click - focus stays at that position in the list, on the next item. The move buttons act on the same selection, so the whole control works without a mouse. ## Accessibility Each list is named after its header (`aria-label`). The four move buttons are labelled from the dictionary, so "move all right" is distinguishable from "move right" without seeing the double chevron. Native HTML5 drag and drop has no keyboard equivalent - `Enter` and the buttons cover everything it does, and `dragdrop` adds to them, it never replaces them. ## Announcements and buttons A transfer between the lists is announced in a polite live region: `pickList.moved` with `{count}` and `{list}` (the target header). The move buttons carry `aria-disabled` when there is nothing to move (no selection, empty list) - they stay focusable, so focus does not drop to `` when the selection clears after a move.