Skip to content

Commit 3253671

Browse files
author
shuzarevich
committed
refactor(drag-node): rename and update drag node handlers and requests
- Renamed `create-drag-node-summary-handler` to `create-drag-node-handler` - Updated references to `DragNodeItemHandler` to use `DragNodeHandler` - Renamed event request classes for clarity - Adjusted method names for consistency in drag node handling - Removed deprecated fields and methods related to drag node events
1 parent 321f5cb commit 3253671

62 files changed

Lines changed: 623 additions & 560 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

projects/f-examples/advanced/drag-start-end-events/drag-start-end-events.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
FZoomDirective,
99
} from '@foblex/flow';
1010
import { generateGuid } from '@foblex/utils';
11-
import { FDragStartedEvent } from '../../../f-flow/src/f-draggable/domain/f-drag-started-event';
11+
import { FDragStartedEvent } from '@foblex/flow';
1212

1313
@Component({
1414
selector: 'drag-start-end-events',

projects/f-flow/src/domain/f-draggable/emit-selection-change-event/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

projects/f-flow/src/domain/f-draggable/end-drag-sequence/end-drag-sequence-request.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

projects/f-flow/src/domain/f-draggable/end-drag-sequence/end-drag-sequence.execution.ts

Lines changed: 0 additions & 32 deletions
This file was deleted.

projects/f-flow/src/domain/f-draggable/end-drag-sequence/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
export * from './add-dnd-to-store';
22

3-
export * from './emit-selection-change-event';
4-
5-
export * from './end-drag-sequence';
6-
73
export * from './on-pointer-move';
84

95
export * from './initialize-drag-sequence';
@@ -14,6 +10,4 @@ export * from './prepare-drag-sequence';
1410

1511
export * from './remove-dnd-from-store';
1612

17-
export * from './start-drag-sequence';
18-
1913
export * from './providers';

projects/f-flow/src/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.execution.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { inject, Injectable } from '@angular/core';
22
import { FExecutionRegister, FMediator, IExecution } from '@foblex/mediator';
33
import { PrepareDragSequenceRequest } from './prepare-drag-sequence-request';
4-
import { FDraggableDataContext } from '../../../f-draggable';
5-
import { StartDragSequenceRequest } from '../start-drag-sequence';
4+
import { EmitStartDragSequenceEventRequest, FDraggableDataContext } from '../../../f-draggable';
65

76
/**
87
* Execution that prepares the drag sequence by invoking the prepareDragSequence method on each draggable item.
@@ -17,7 +16,7 @@ export class PrepareDragSequenceExecution implements IExecution<PrepareDragSeque
1716
public handle(_request: PrepareDragSequenceRequest): void {
1817
this._callPrepareDragSequence();
1918

20-
this._mediator.execute<void>(new StartDragSequenceRequest());
19+
this._mediator.execute<void>(new EmitStartDragSequenceEventRequest());
2120
}
2221

2322
private _callPrepareDragSequence(): void {
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
11
import { AddDndToStoreExecution } from './add-dnd-to-store';
2-
import { EmitSelectionChangeEventExecution } from './emit-selection-change-event';
32
import { RemoveDndFromStoreExecution } from './remove-dnd-from-store';
43
import { PrepareDragSequenceExecution } from './prepare-drag-sequence';
5-
import { EndDragSequenceExecution } from './end-drag-sequence';
64
import { InitializeDragSequenceExecution } from './initialize-drag-sequence';
75
import { OnPointerMoveExecution } from './on-pointer-move';
86
import { IsDragStarted } from './is-drag-started';
9-
import { StartDragSequenceExecution } from './start-drag-sequence';
107

118
/**
129
* Collection of all FDraggable feature executions.
1310
*/
1411
export const F_DRAGGABLE_FEATURES = [
15-
1612
AddDndToStoreExecution,
1713

18-
EmitSelectionChangeEventExecution,
19-
20-
EndDragSequenceExecution,
21-
2214
OnPointerMoveExecution,
2315

2416
InitializeDragSequenceExecution,
@@ -27,7 +19,5 @@ export const F_DRAGGABLE_FEATURES = [
2719

2820
IsDragStarted,
2921

30-
StartDragSequenceExecution,
31-
3222
RemoveDndFromStoreExecution,
3323
];

projects/f-flow/src/domain/f-draggable/start-drag-sequence/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

projects/f-flow/src/domain/f-draggable/start-drag-sequence/start-drag-sequence-request.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)