ngx-virtual-dnd 1.2.0 → 1.2.2
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 +22 -42
- package/fesm2022/ngx-virtual-dnd.mjs +410 -346
- package/fesm2022/ngx-virtual-dnd.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngx-virtual-dnd.d.ts +5 -9
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { InjectionToken, OnInit, AfterViewInit, OnDestroy,
|
|
2
|
+
import { InjectionToken, OnInit, AfterViewInit, OnDestroy, TemplateRef, Signal, WritableSignal } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Represents the item currently being dragged.
|
|
@@ -299,7 +299,7 @@ declare class DragStateService {
|
|
|
299
299
|
/**
|
|
300
300
|
* Start a drag operation.
|
|
301
301
|
*/
|
|
302
|
-
startDrag(item: DraggedItem,
|
|
302
|
+
startDrag(item: DraggedItem, cursorPosition?: CursorPosition, grabOffset?: GrabOffset, lockAxis?: 'x' | 'y' | null, activeDroppableId?: string | null, placeholderId?: string | null, placeholderIndex?: number | null, sourceIndex?: number | null, isKeyboardDrag?: boolean, axisLockPosition?: CursorPosition): void;
|
|
303
303
|
/**
|
|
304
304
|
* Update the drag position and targets.
|
|
305
305
|
*/
|
|
@@ -627,8 +627,6 @@ interface VisibleRangeChange {
|
|
|
627
627
|
*/
|
|
628
628
|
declare class VirtualScrollContainerComponent<T> implements OnInit, AfterViewInit, OnDestroy {
|
|
629
629
|
#private;
|
|
630
|
-
/** The scrollable container element */
|
|
631
|
-
protected readonly contentContainer: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
632
630
|
/** Template for rendering each item - passed as input instead of content child for reliability */
|
|
633
631
|
itemTemplate: _angular_core.InputSignal<TemplateRef<VirtualScrollItemContext<T>>>;
|
|
634
632
|
/** Unique ID for this scroll container (used for auto-scroll registration) */
|
|
@@ -788,6 +786,8 @@ declare class DragPreviewComponent<T = unknown> {
|
|
|
788
786
|
x: number;
|
|
789
787
|
y: number;
|
|
790
788
|
}>;
|
|
789
|
+
/** Transform-based positioning for better performance (avoid layout from left/top). */
|
|
790
|
+
protected readonly transform: _angular_core.Signal<string>;
|
|
791
791
|
/** Dimensions of the preview */
|
|
792
792
|
protected readonly dimensions: _angular_core.Signal<{
|
|
793
793
|
width: number;
|
|
@@ -1232,11 +1232,7 @@ declare class DroppableDirective implements OnInit, OnDestroy {
|
|
|
1232
1232
|
* Optional when a parent `vdndGroup` directive provides the group context.
|
|
1233
1233
|
*/
|
|
1234
1234
|
vdndDroppableGroup: _angular_core.InputSignal<string | undefined>;
|
|
1235
|
-
|
|
1236
|
-
* Resolved group name - uses explicit input or falls back to parent group.
|
|
1237
|
-
* Throws error if neither is available.
|
|
1238
|
-
*/
|
|
1239
|
-
readonly effectiveGroup: _angular_core.Signal<string>;
|
|
1235
|
+
readonly effectiveGroup: _angular_core.Signal<string | null>;
|
|
1240
1236
|
/** Optional data associated with this droppable */
|
|
1241
1237
|
vdndDroppableData: _angular_core.InputSignal<unknown>;
|
|
1242
1238
|
/** Whether this droppable is disabled */
|