ngx-virtual-dnd 2.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -11
- package/fesm2022/ngx-virtual-dnd.mjs +281 -354
- package/fesm2022/ngx-virtual-dnd.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngx-virtual-dnd.d.ts +12 -84
package/README.md
CHANGED
|
@@ -253,7 +253,7 @@ Values: `'x'` (horizontal only), `'y'` (vertical only), or omit for free movemen
|
|
|
253
253
|
```
|
|
254
254
|
|
|
255
255
|
- `dragThreshold` — minimum distance (px) before drag starts (default: `5`). Prevents accidental drags on click.
|
|
256
|
-
- `dragDelay` — delay (ms) after pointer down before drag activates (default: `0`). Useful on touch devices to distinguish scrolling from dragging.
|
|
256
|
+
- `dragDelay` — delay (ms) after pointer down before drag activates (default: `0`). Useful on touch devices to distinguish scrolling from dragging. Use the `vdnd-drag-pending` CSS class to show visual feedback when the delay passes.
|
|
257
257
|
|
|
258
258
|
### Custom Drag Preview
|
|
259
259
|
|
|
@@ -483,16 +483,11 @@ ARIA attributes (`aria-grabbed`, `aria-dropeffect`, `tabindex`) are managed auto
|
|
|
483
483
|
|
|
484
484
|
All event types are importable from `ngx-virtual-dnd`.
|
|
485
485
|
|
|
486
|
-
| Output
|
|
487
|
-
|
|
|
488
|
-
| `(dragStart)`
|
|
489
|
-
| `(
|
|
490
|
-
| `(
|
|
491
|
-
| `(dragReadyChange)` | `boolean` | `DraggableDirective` |
|
|
492
|
-
| `(dragEnter)` | `DragEnterEvent` | `DroppableDirective`, `VirtualSortableListComponent` |
|
|
493
|
-
| `(dragLeave)` | `DragLeaveEvent` | `DroppableDirective`, `VirtualSortableListComponent` |
|
|
494
|
-
| `(dragOver)` | `DragOverEvent` | `DroppableDirective`, `VirtualSortableListComponent` |
|
|
495
|
-
| `(drop)` | `DropEvent` | `DroppableDirective`, `VirtualSortableListComponent` |
|
|
486
|
+
| Output | Event Type | Emitted By |
|
|
487
|
+
| ------------- | ---------------- | ---------------------------------------------------- |
|
|
488
|
+
| `(dragStart)` | `DragStartEvent` | `DraggableDirective` |
|
|
489
|
+
| `(dragEnd)` | `DragEndEvent` | `DraggableDirective` |
|
|
490
|
+
| `(drop)` | `DropEvent` | `DroppableDirective`, `VirtualSortableListComponent` |
|
|
496
491
|
|
|
497
492
|
`DragEndEvent` includes a `cancelled` boolean to distinguish drops from cancellations.
|
|
498
493
|
|