@acorex/cdk 20.1.9 → 20.1.11
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/drag-drop/index.d.ts
CHANGED
|
@@ -29,12 +29,12 @@ declare class AXDragDirective implements OnInit, OnDestroy {
|
|
|
29
29
|
dragBoundary: _angular_core.InputSignal<string | HTMLElement | ElementRef<HTMLElement>>;
|
|
30
30
|
dragTransitionDuration: _angular_core.InputSignal<number>;
|
|
31
31
|
dragPositionChanged: _angular_core.OutputEmitterRef<AXPositionType>;
|
|
32
|
+
isMoving: _angular_core.WritableSignal<boolean>;
|
|
32
33
|
clonedElement: _angular_core.WritableSignal<HTMLElement>;
|
|
33
34
|
currentAxis: _angular_core.WritableSignal<AXPositionType>;
|
|
34
35
|
currentCloneAxis: _angular_core.WritableSignal<AXPositionType>;
|
|
35
36
|
transitionDuration: _angular_core.WritableSignal<number>;
|
|
36
37
|
readonly element: _angular_core.WritableSignal<HTMLElement>;
|
|
37
|
-
private isMoving;
|
|
38
38
|
private dragStartTime;
|
|
39
39
|
private isDragging;
|
|
40
40
|
private elementOpacity;
|
|
@@ -400,12 +400,12 @@ class AXDragDirective {
|
|
|
400
400
|
this.dragBoundary = input();
|
|
401
401
|
this.dragTransitionDuration = input(150);
|
|
402
402
|
this.dragPositionChanged = output();
|
|
403
|
+
this.isMoving = signal(false);
|
|
403
404
|
this.clonedElement = signal(null);
|
|
404
405
|
this.currentAxis = signal({ x: 0, y: 0 });
|
|
405
406
|
this.currentCloneAxis = signal({ x: 0, y: 0 });
|
|
406
407
|
this.transitionDuration = linkedSignal(() => this.dragTransitionDuration());
|
|
407
408
|
this.element = signal(this.el.nativeElement);
|
|
408
|
-
this.isMoving = signal(false);
|
|
409
409
|
this.dragStartTime = signal(0);
|
|
410
410
|
this.isDragging = signal(false);
|
|
411
411
|
this.elementOpacity = signal('1');
|
|
@@ -508,7 +508,6 @@ class AXDragDirective {
|
|
|
508
508
|
else if (this.dragCursor() === 'grab') {
|
|
509
509
|
this.renderer.setStyle(this.handle(), 'cursor', 'grabbing');
|
|
510
510
|
}
|
|
511
|
-
e.stopPropagation();
|
|
512
511
|
this.dragStartOffset.set({ x: e.clientX - this.currentAxis().x, y: e.clientY - this.currentAxis().y });
|
|
513
512
|
this.renderer.setStyle(this.handle(), 'userSelect', 'none');
|
|
514
513
|
this.activePointerId.set(e.pointerId);
|