@worktile/gantt 15.1.1 → 15.1.3

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.
@@ -1757,6 +1757,11 @@ class GanttTableBodyComponent {
1757
1757
  source: event.source.data?.origin,
1758
1758
  sourceParent: this.getParentByItem(event.source.data)?.origin
1759
1759
  });
1760
+ // dropEnterPredicate 方法返回值为 false 时,始终未执行 onListDropped,所以只能在 dragEnded 中移除 drag-item-hide
1761
+ const children = this.getChildrenElementsByElement(event.source.element.nativeElement);
1762
+ children.forEach((element) => {
1763
+ element.classList.remove('drag-item-hide');
1764
+ });
1760
1765
  }
1761
1766
  onListDropped(event) {
1762
1767
  if (!this.itemDropTarget) {
@@ -2862,11 +2867,9 @@ class GanttBarDrag {
2862
2867
  dragBackdropElement.style.display = 'none';
2863
2868
  }
2864
2869
  setDraggingStyles() {
2865
- this.barElement.style.pointerEvents = 'none';
2866
2870
  this.barElement.classList.add('gantt-bar-draggable-drag');
2867
2871
  }
2868
2872
  clearDraggingStyles() {
2869
- this.barElement.style.pointerEvents = '';
2870
2873
  this.barElement.classList.remove('gantt-bar-draggable-drag');
2871
2874
  }
2872
2875
  barDragMove() {
@@ -3150,7 +3153,11 @@ class NgxGanttBarComponent extends GanttItemUpper {
3150
3153
  }
3151
3154
  ngOnInit() {
3152
3155
  super.ngOnInit();
3156
+ this.dragContainer.dragStarted.pipe(takeUntil(this.unsubscribe$)).subscribe(() => {
3157
+ this.elementRef.nativeElement.style.pointerEvents = 'none';
3158
+ });
3153
3159
  this.dragContainer.dragEnded.pipe(takeUntil(this.unsubscribe$)).subscribe(() => {
3160
+ this.elementRef.nativeElement.style.pointerEvents = '';
3154
3161
  this.setContentBackground();
3155
3162
  });
3156
3163
  }