@foblex/flow 17.0.7 → 17.0.8

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.
Files changed (76) hide show
  1. package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.mjs +8 -1
  2. package/esm2022/f-draggable/canvas/canvas-move-finalize/index.mjs +1 -2
  3. package/esm2022/f-draggable/canvas/canvas-move-finalize/providers.mjs +1 -3
  4. package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.mjs +8 -1
  5. package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/index.mjs +1 -2
  6. package/esm2022/f-draggable/connections/providers.mjs +3 -5
  7. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.mjs +1 -2
  8. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +8 -1
  9. package/esm2022/f-draggable/domain/is-connection-under-node/index.mjs +1 -2
  10. package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.mjs +3 -7
  11. package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.request.mjs +5 -1
  12. package/esm2022/f-draggable/domain/providers.mjs +2 -3
  13. package/esm2022/f-draggable/f-draggable.directive.mjs +11 -11
  14. package/esm2022/f-draggable/node/node-drag-to-parent-finalize/index.mjs +1 -2
  15. package/esm2022/f-draggable/node/node-drag-to-parent-finalize/node-drag-to-parent-finalize.execution.mjs +8 -1
  16. package/esm2022/f-draggable/node/node-drag-to-parent-finalize/providers.mjs +1 -3
  17. package/esm2022/f-draggable/node/node-move-finalize/index.mjs +1 -3
  18. package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +15 -2
  19. package/esm2022/f-draggable/node/providers.mjs +3 -3
  20. package/esm2022/f-draggable/node-resize/node-resize-finalize/index.mjs +1 -2
  21. package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.mjs +8 -1
  22. package/esm2022/f-draggable/node-resize/node-resize-finalize/providers.mjs +1 -3
  23. package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs +8 -1
  24. package/esm2022/f-external-item/domain/external-item-finalize/index.mjs +1 -2
  25. package/esm2022/f-external-item/domain/external-item-finalize/providers.mjs +1 -3
  26. package/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.d.ts +1 -0
  27. package/f-draggable/canvas/canvas-move-finalize/index.d.ts +0 -1
  28. package/f-draggable/canvas/canvas-move-finalize/providers.d.ts +1 -2
  29. package/f-draggable/canvas/providers.d.ts +1 -1
  30. package/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.d.ts +1 -0
  31. package/f-draggable/connections/create-connection/create-connection-finalize/index.d.ts +0 -1
  32. package/f-draggable/connections/providers.d.ts +3 -3
  33. package/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.d.ts +0 -1
  34. package/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.d.ts +1 -0
  35. package/f-draggable/domain/is-connection-under-node/index.d.ts +0 -1
  36. package/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.d.ts +0 -2
  37. package/f-draggable/domain/is-connection-under-node/is-connection-under-node.request.d.ts +3 -0
  38. package/f-draggable/domain/providers.d.ts +2 -2
  39. package/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.d.ts +1 -1
  40. package/f-draggable/node/node-drag-to-parent-finalize/index.d.ts +0 -1
  41. package/f-draggable/node/node-drag-to-parent-finalize/node-drag-to-parent-finalize.execution.d.ts +1 -0
  42. package/f-draggable/node/node-drag-to-parent-finalize/providers.d.ts +1 -2
  43. package/f-draggable/node/node-move-finalize/index.d.ts +0 -2
  44. package/f-draggable/node/node-move-finalize/node-move-finalize.execution.d.ts +2 -0
  45. package/f-draggable/node/providers.d.ts +2 -1
  46. package/f-draggable/node-resize/node-resize-finalize/index.d.ts +0 -1
  47. package/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.d.ts +1 -0
  48. package/f-draggable/node-resize/node-resize-finalize/providers.d.ts +1 -2
  49. package/f-draggable/node-resize/providers.d.ts +1 -1
  50. package/f-draggable/providers.d.ts +1 -1
  51. package/f-external-item/domain/external-item-finalize/external-item-finalize.execution.d.ts +1 -0
  52. package/f-external-item/domain/external-item-finalize/index.d.ts +0 -1
  53. package/f-external-item/domain/external-item-finalize/providers.d.ts +1 -2
  54. package/f-external-item/domain/providers.d.ts +1 -1
  55. package/f-storage/providers.d.ts +1 -1
  56. package/fesm2022/foblex-flow.mjs +281 -386
  57. package/fesm2022/foblex-flow.mjs.map +1 -1
  58. package/package.json +1 -1
  59. package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.validator.mjs +0 -26
  60. package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.validator.mjs +0 -26
  61. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.validator.mjs +0 -26
  62. package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.validator.mjs +0 -23
  63. package/esm2022/f-draggable/node/node-drag-to-parent-finalize/node-drag-to-parent-finalize.validator.mjs +0 -27
  64. package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.validator.mjs +0 -26
  65. package/esm2022/f-draggable/node/node-move-finalize/providers.mjs +0 -7
  66. package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.mjs +0 -26
  67. package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.validator.mjs +0 -26
  68. package/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.validator.d.ts +0 -11
  69. package/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.validator.d.ts +0 -11
  70. package/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.validator.d.ts +0 -11
  71. package/f-draggable/domain/is-connection-under-node/is-connection-under-node.validator.d.ts +0 -9
  72. package/f-draggable/node/node-drag-to-parent-finalize/node-drag-to-parent-finalize.validator.d.ts +0 -11
  73. package/f-draggable/node/node-move-finalize/node-move-finalize.validator.d.ts +0 -11
  74. package/f-draggable/node/node-move-finalize/providers.d.ts +0 -3
  75. package/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.d.ts +0 -11
  76. package/f-external-item/domain/external-item-finalize/external-item-finalize.validator.d.ts +0 -11
@@ -3329,6 +3329,24 @@ class CanvasMoveFinalizeRequest {
3329
3329
  }
3330
3330
  }
3331
3331
 
3332
+ class CanvasDragHandler {
3333
+ fComponentsStore;
3334
+ onPointerDownPosition = PointExtensions.initialize();
3335
+ constructor(fComponentsStore) {
3336
+ this.fComponentsStore = fComponentsStore;
3337
+ }
3338
+ prepareDragSequence() {
3339
+ this.onPointerDownPosition = this.fComponentsStore.fCanvas.transform.position;
3340
+ }
3341
+ onPointerMove(difference) {
3342
+ this.fComponentsStore.fCanvas.setPosition(Point.fromPoint(this.onPointerDownPosition).add(difference));
3343
+ this.fComponentsStore.fCanvas.redraw();
3344
+ }
3345
+ onPointerUp() {
3346
+ this.fComponentsStore.fCanvas.emitCanvasChangeEvent();
3347
+ }
3348
+ }
3349
+
3332
3350
  class FDraggableDataContext {
3333
3351
  selectedItems = [];
3334
3352
  isSelectedChanged = false;
@@ -3357,8 +3375,14 @@ let CanvasMoveFinalizeExecution = class CanvasMoveFinalizeExecution {
3357
3375
  this.fDraggableDataContext = fDraggableDataContext;
3358
3376
  }
3359
3377
  handle(request) {
3378
+ if (!this._isValid()) {
3379
+ return;
3380
+ }
3360
3381
  this.fDraggableDataContext.draggableItems.forEach((x) => x.onPointerUp?.());
3361
3382
  }
3383
+ _isValid() {
3384
+ return this.fDraggableDataContext.draggableItems.some((x) => x instanceof CanvasDragHandler);
3385
+ }
3362
3386
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CanvasMoveFinalizeExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3363
3387
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CanvasMoveFinalizeExecution });
3364
3388
  };
@@ -3369,45 +3393,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
3369
3393
  type: Injectable
3370
3394
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3371
3395
 
3372
- class CanvasDragHandler {
3373
- fComponentsStore;
3374
- onPointerDownPosition = PointExtensions.initialize();
3375
- constructor(fComponentsStore) {
3376
- this.fComponentsStore = fComponentsStore;
3377
- }
3378
- prepareDragSequence() {
3379
- this.onPointerDownPosition = this.fComponentsStore.fCanvas.transform.position;
3380
- }
3381
- onPointerMove(difference) {
3382
- this.fComponentsStore.fCanvas.setPosition(Point.fromPoint(this.onPointerDownPosition).add(difference));
3383
- this.fComponentsStore.fCanvas.redraw();
3384
- }
3385
- onPointerUp() {
3386
- this.fComponentsStore.fCanvas.emitCanvasChangeEvent();
3387
- }
3388
- }
3389
-
3390
- let CanvasMoveFinalizeValidator = class CanvasMoveFinalizeValidator {
3391
- fDraggableDataContext;
3392
- constructor(fDraggableDataContext) {
3393
- this.fDraggableDataContext = fDraggableDataContext;
3394
- }
3395
- handle(request) {
3396
- return this.fDraggableDataContext.draggableItems.some((x) => x instanceof CanvasDragHandler);
3397
- }
3398
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CanvasMoveFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3399
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CanvasMoveFinalizeValidator });
3400
- };
3401
- CanvasMoveFinalizeValidator = __decorate([
3402
- FValidatorRegister(CanvasMoveFinalizeRequest)
3403
- ], CanvasMoveFinalizeValidator);
3404
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CanvasMoveFinalizeValidator, decorators: [{
3405
- type: Injectable
3406
- }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3407
-
3408
3396
  const CANVAS_MOVE_FINALIZE_PROVIDERS = [
3409
3397
  CanvasMoveFinalizeExecution,
3410
- CanvasMoveFinalizeValidator,
3411
3398
  ];
3412
3399
 
3413
3400
  class CanvasMovePreparationRequest {
@@ -3607,6 +3594,88 @@ class FCreateConnectionEvent {
3607
3594
  }
3608
3595
  }
3609
3596
 
3597
+ class CreateConnectionDragHandler {
3598
+ fMediator;
3599
+ fComponentsStore;
3600
+ fOutput;
3601
+ onPointerDownPosition;
3602
+ toConnectorRect = new RoundedRect();
3603
+ get fConnection() {
3604
+ return this.fComponentsStore.fTempConnection;
3605
+ }
3606
+ get fSnapConnection() {
3607
+ return this.fComponentsStore.fSnapConnection;
3608
+ }
3609
+ fOutputWithRect;
3610
+ canBeConnectedInputs = [];
3611
+ constructor(fMediator, fComponentsStore, fOutput, onPointerDownPosition) {
3612
+ this.fMediator = fMediator;
3613
+ this.fComponentsStore = fComponentsStore;
3614
+ this.fOutput = fOutput;
3615
+ this.onPointerDownPosition = onPointerDownPosition;
3616
+ }
3617
+ prepareDragSequence() {
3618
+ this._initializeSnapConnection();
3619
+ this._initializeConnectionForCreate();
3620
+ this.canBeConnectedInputs = this.fMediator.send(new GetAllCanBeConnectedInputPositionsRequest(this.fOutput.fId));
3621
+ this.fOutputWithRect = this.fMediator.send(new GetConnectorWithRectRequest(this.fOutput));
3622
+ this.toConnectorRect = RoundedRect.fromRect(RectExtensions.initialize(this.onPointerDownPosition.x, this.onPointerDownPosition.y));
3623
+ this.fConnection.show();
3624
+ this.onPointerMove(PointExtensions.initialize());
3625
+ }
3626
+ _initializeSnapConnection() {
3627
+ if (!this.fSnapConnection) {
3628
+ return;
3629
+ }
3630
+ this.fSnapConnection.fOutputId = this.fOutput.fId;
3631
+ this.fSnapConnection.initialize();
3632
+ }
3633
+ _initializeConnectionForCreate() {
3634
+ this.fConnection.fOutputId = this.fOutput.fId;
3635
+ this.fConnection.initialize();
3636
+ }
3637
+ onPointerMove(difference) {
3638
+ const fClosestInput = this._findClosestInput(difference);
3639
+ this._drawConnectionForCreate(this.toConnectorRect.addPoint(difference), fClosestInput?.fConnector.fConnectableSide || EFConnectableSide.TOP);
3640
+ if (this.fSnapConnection) {
3641
+ this._drawSnapConnection(this._getClosestInputForSnapConnection(fClosestInput));
3642
+ }
3643
+ }
3644
+ _drawConnectionForCreate(fInputRect, fSide) {
3645
+ const line = this.fMediator.send(new CalculateConnectionLineByBehaviorRequest(this.fOutputWithRect.fRect, fInputRect, this.fConnection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, fSide));
3646
+ this.fConnection.setLine(line.point1, this.fOutputWithRect.fConnector.fConnectableSide, line.point2, fSide);
3647
+ this.fConnection.redraw();
3648
+ }
3649
+ _drawSnapConnection(fClosestInput) {
3650
+ if (fClosestInput) {
3651
+ const line = this.fMediator.send(new CalculateConnectionLineByBehaviorRequest(this.fOutputWithRect.fRect, fClosestInput.fRect, this.fSnapConnection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, fClosestInput.fConnector.fConnectableSide));
3652
+ this.fSnapConnection.show();
3653
+ this.fSnapConnection.setLine(line.point1, this.fOutputWithRect.fConnector.fConnectableSide, line.point2, fClosestInput.fConnector.fConnectableSide);
3654
+ this.fSnapConnection.redraw();
3655
+ }
3656
+ else {
3657
+ this.fSnapConnection?.hide();
3658
+ }
3659
+ }
3660
+ getClosetInput(difference) {
3661
+ if (!this.fSnapConnection) {
3662
+ return undefined;
3663
+ }
3664
+ return this._getClosestInputForSnapConnection(this._findClosestInput(difference));
3665
+ }
3666
+ _findClosestInput(difference) {
3667
+ return this.fMediator.send(new FindClosestInputRequest(Point.fromPoint(this.toConnectorRect).add(difference), this.canBeConnectedInputs));
3668
+ }
3669
+ _getClosestInputForSnapConnection(fClosestInput) {
3670
+ return fClosestInput && fClosestInput.distance < this.fSnapConnection.fSnapThreshold ? fClosestInput : undefined;
3671
+ }
3672
+ onPointerUp() {
3673
+ this.fConnection.redraw();
3674
+ this.fConnection.hide();
3675
+ this.fSnapConnection?.hide();
3676
+ }
3677
+ }
3678
+
3610
3679
  class GetInputUnderPointerRequest {
3611
3680
  event;
3612
3681
  dragHandler;
@@ -3735,9 +3804,15 @@ let CreateConnectionFinalizeExecution = class CreateConnectionFinalizeExecution
3735
3804
  this.fMediator = fMediator;
3736
3805
  }
3737
3806
  handle(request) {
3807
+ if (!this._isValid()) {
3808
+ return;
3809
+ }
3738
3810
  this.emitEvent(request.event);
3739
3811
  this.dragHandler.onPointerUp();
3740
3812
  }
3813
+ _isValid() {
3814
+ return this.fDraggableDataContext.draggableItems.some((x) => x instanceof CreateConnectionDragHandler);
3815
+ }
3741
3816
  getTargetOutput(output) {
3742
3817
  if (!output) {
3743
3818
  throw OutputNotFound(this.dragHandler.fConnection.fOutputId);
@@ -3766,106 +3841,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
3766
3841
  type: Injectable
3767
3842
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: i2.FMediator }] });
3768
3843
 
3769
- class CreateConnectionDragHandler {
3770
- fMediator;
3771
- fComponentsStore;
3772
- fOutput;
3773
- onPointerDownPosition;
3774
- toConnectorRect = new RoundedRect();
3775
- get fConnection() {
3776
- return this.fComponentsStore.fTempConnection;
3777
- }
3778
- get fSnapConnection() {
3779
- return this.fComponentsStore.fSnapConnection;
3780
- }
3781
- fOutputWithRect;
3782
- canBeConnectedInputs = [];
3783
- constructor(fMediator, fComponentsStore, fOutput, onPointerDownPosition) {
3784
- this.fMediator = fMediator;
3785
- this.fComponentsStore = fComponentsStore;
3786
- this.fOutput = fOutput;
3787
- this.onPointerDownPosition = onPointerDownPosition;
3788
- }
3789
- prepareDragSequence() {
3790
- this._initializeSnapConnection();
3791
- this._initializeConnectionForCreate();
3792
- this.canBeConnectedInputs = this.fMediator.send(new GetAllCanBeConnectedInputPositionsRequest(this.fOutput.fId));
3793
- this.fOutputWithRect = this.fMediator.send(new GetConnectorWithRectRequest(this.fOutput));
3794
- this.toConnectorRect = RoundedRect.fromRect(RectExtensions.initialize(this.onPointerDownPosition.x, this.onPointerDownPosition.y));
3795
- this.fConnection.show();
3796
- this.onPointerMove(PointExtensions.initialize());
3797
- }
3798
- _initializeSnapConnection() {
3799
- if (!this.fSnapConnection) {
3800
- return;
3801
- }
3802
- this.fSnapConnection.fOutputId = this.fOutput.fId;
3803
- this.fSnapConnection.initialize();
3804
- }
3805
- _initializeConnectionForCreate() {
3806
- this.fConnection.fOutputId = this.fOutput.fId;
3807
- this.fConnection.initialize();
3808
- }
3809
- onPointerMove(difference) {
3810
- const fClosestInput = this._findClosestInput(difference);
3811
- this._drawConnectionForCreate(this.toConnectorRect.addPoint(difference), fClosestInput?.fConnector.fConnectableSide || EFConnectableSide.TOP);
3812
- if (this.fSnapConnection) {
3813
- this._drawSnapConnection(this._getClosestInputForSnapConnection(fClosestInput));
3814
- }
3815
- }
3816
- _drawConnectionForCreate(fInputRect, fSide) {
3817
- const line = this.fMediator.send(new CalculateConnectionLineByBehaviorRequest(this.fOutputWithRect.fRect, fInputRect, this.fConnection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, fSide));
3818
- this.fConnection.setLine(line.point1, this.fOutputWithRect.fConnector.fConnectableSide, line.point2, fSide);
3819
- this.fConnection.redraw();
3820
- }
3821
- _drawSnapConnection(fClosestInput) {
3822
- if (fClosestInput) {
3823
- const line = this.fMediator.send(new CalculateConnectionLineByBehaviorRequest(this.fOutputWithRect.fRect, fClosestInput.fRect, this.fSnapConnection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, fClosestInput.fConnector.fConnectableSide));
3824
- this.fSnapConnection.show();
3825
- this.fSnapConnection.setLine(line.point1, this.fOutputWithRect.fConnector.fConnectableSide, line.point2, fClosestInput.fConnector.fConnectableSide);
3826
- this.fSnapConnection.redraw();
3827
- }
3828
- else {
3829
- this.fSnapConnection?.hide();
3830
- }
3831
- }
3832
- getClosetInput(difference) {
3833
- if (!this.fSnapConnection) {
3834
- return undefined;
3835
- }
3836
- return this._getClosestInputForSnapConnection(this._findClosestInput(difference));
3837
- }
3838
- _findClosestInput(difference) {
3839
- return this.fMediator.send(new FindClosestInputRequest(Point.fromPoint(this.toConnectorRect).add(difference), this.canBeConnectedInputs));
3840
- }
3841
- _getClosestInputForSnapConnection(fClosestInput) {
3842
- return fClosestInput && fClosestInput.distance < this.fSnapConnection.fSnapThreshold ? fClosestInput : undefined;
3843
- }
3844
- onPointerUp() {
3845
- this.fConnection.redraw();
3846
- this.fConnection.hide();
3847
- this.fSnapConnection?.hide();
3848
- }
3849
- }
3850
-
3851
- let CreateConnectionFinalizeValidator = class CreateConnectionFinalizeValidator {
3852
- fDraggableDataContext;
3853
- constructor(fDraggableDataContext) {
3854
- this.fDraggableDataContext = fDraggableDataContext;
3855
- }
3856
- handle(request) {
3857
- return this.fDraggableDataContext.draggableItems.some((x) => x instanceof CreateConnectionDragHandler);
3858
- }
3859
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateConnectionFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
3860
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateConnectionFinalizeValidator });
3861
- };
3862
- CreateConnectionFinalizeValidator = __decorate([
3863
- FValidatorRegister(CreateConnectionFinalizeRequest)
3864
- ], CreateConnectionFinalizeValidator);
3865
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateConnectionFinalizeValidator, decorators: [{
3866
- type: Injectable
3867
- }], ctorParameters: () => [{ type: FDraggableDataContext }] });
3868
-
3869
3844
  class CreateConnectionDragHandlerRequest {
3870
3845
  onPointerDownPosition;
3871
3846
  connector;
@@ -4082,86 +4057,29 @@ let CreateConnectionPreparationValidator = class CreateConnectionPreparationVali
4082
4057
  handle(request) {
4083
4058
  return !!this.getNode(request.event) && this.isValidConditions();
4084
4059
  }
4085
- getNode(event) {
4086
- return this.fComponentsStore
4087
- .fNodes.find(n => n.isContains(event.targetElement));
4088
- }
4089
- isValidConditions() {
4090
- return !this.fDraggableDataContext.draggableItems.length && !!this.fComponentsStore.fTempConnection;
4091
- }
4092
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateConnectionPreparationValidator, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
4093
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateConnectionPreparationValidator });
4094
- };
4095
- CreateConnectionPreparationValidator = __decorate([
4096
- FValidatorRegister(CreateConnectionPreparationRequest)
4097
- ], CreateConnectionPreparationValidator);
4098
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateConnectionPreparationValidator, decorators: [{
4099
- type: Injectable
4100
- }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
4101
-
4102
- class ReassignConnectionFinalizeRequest {
4103
- event;
4104
- constructor(event) {
4105
- this.event = event;
4106
- }
4107
- }
4108
-
4109
- class FReassignConnectionEvent {
4110
- fConnectionId;
4111
- fOutputId;
4112
- oldFInputId;
4113
- newFInputId;
4114
- fDropPosition;
4115
- constructor(fConnectionId, fOutputId, oldFInputId, newFInputId, fDropPosition) {
4116
- this.fConnectionId = fConnectionId;
4117
- this.fOutputId = fOutputId;
4118
- this.oldFInputId = oldFInputId;
4119
- this.newFInputId = newFInputId;
4120
- this.fDropPosition = fDropPosition;
4121
- }
4122
- }
4123
-
4124
- let ReassignConnectionFinalizeExecution = class ReassignConnectionFinalizeExecution {
4125
- fComponentsStore;
4126
- fDraggableDataContext;
4127
- fMediator;
4128
- get fDraggable() {
4129
- return this.fComponentsStore.fDraggable;
4130
- }
4131
- get dragHandler() {
4132
- return this.fDraggableDataContext.draggableItems[0];
4133
- }
4134
- constructor(fComponentsStore, fDraggableDataContext, fMediator) {
4135
- this.fComponentsStore = fComponentsStore;
4136
- this.fDraggableDataContext = fDraggableDataContext;
4137
- this.fMediator = fMediator;
4138
- }
4139
- handle(request) {
4140
- this.emitEvent(request.event);
4141
- this.dragHandler.onPointerUp();
4142
- }
4143
- emitEvent(event) {
4144
- const input = this.getInputUnderPointer(event);
4145
- if (!!input && !this.isReassignToDifferentInput(input)) {
4146
- return;
4147
- }
4148
- this.fDraggable.fReassignConnection.emit(new FReassignConnectionEvent(this.dragHandler.fConnection.fId, this.dragHandler.fConnection.fOutputId, this.dragHandler.fConnection.fInputId, input?.fId, event.getPosition()));
4149
- }
4150
- getInputUnderPointer(event) {
4151
- return this.fMediator.send(new GetInputUnderPointerRequest(event, this.dragHandler));
4060
+ getNode(event) {
4061
+ return this.fComponentsStore
4062
+ .fNodes.find(n => n.isContains(event.targetElement));
4152
4063
  }
4153
- isReassignToDifferentInput(inputsUnderPointer) {
4154
- return this.dragHandler.fConnection.fInputId !== inputsUnderPointer.fId;
4064
+ isValidConditions() {
4065
+ return !this.fDraggableDataContext.draggableItems.length && !!this.fComponentsStore.fTempConnection;
4155
4066
  }
4156
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ReassignConnectionFinalizeExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: i2.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
4157
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ReassignConnectionFinalizeExecution });
4067
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateConnectionPreparationValidator, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
4068
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateConnectionPreparationValidator });
4158
4069
  };
4159
- ReassignConnectionFinalizeExecution = __decorate([
4160
- FExecutionRegister(ReassignConnectionFinalizeRequest)
4161
- ], ReassignConnectionFinalizeExecution);
4162
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ReassignConnectionFinalizeExecution, decorators: [{
4070
+ CreateConnectionPreparationValidator = __decorate([
4071
+ FValidatorRegister(CreateConnectionPreparationRequest)
4072
+ ], CreateConnectionPreparationValidator);
4073
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateConnectionPreparationValidator, decorators: [{
4163
4074
  type: Injectable
4164
- }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: i2.FMediator }] });
4075
+ }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
4076
+
4077
+ class ReassignConnectionFinalizeRequest {
4078
+ event;
4079
+ constructor(event) {
4080
+ this.event = event;
4081
+ }
4082
+ }
4165
4083
 
4166
4084
  class ReassignConnectionDragHandler {
4167
4085
  fMediator;
@@ -4240,23 +4158,68 @@ class ReassignConnectionDragHandler {
4240
4158
  }
4241
4159
  }
4242
4160
 
4243
- let ReassignConnectionFinalizeValidator = class ReassignConnectionFinalizeValidator {
4161
+ class FReassignConnectionEvent {
4162
+ fConnectionId;
4163
+ fOutputId;
4164
+ oldFInputId;
4165
+ newFInputId;
4166
+ fDropPosition;
4167
+ constructor(fConnectionId, fOutputId, oldFInputId, newFInputId, fDropPosition) {
4168
+ this.fConnectionId = fConnectionId;
4169
+ this.fOutputId = fOutputId;
4170
+ this.oldFInputId = oldFInputId;
4171
+ this.newFInputId = newFInputId;
4172
+ this.fDropPosition = fDropPosition;
4173
+ }
4174
+ }
4175
+
4176
+ let ReassignConnectionFinalizeExecution = class ReassignConnectionFinalizeExecution {
4177
+ fComponentsStore;
4244
4178
  fDraggableDataContext;
4245
- constructor(fDraggableDataContext) {
4179
+ fMediator;
4180
+ get fDraggable() {
4181
+ return this.fComponentsStore.fDraggable;
4182
+ }
4183
+ get dragHandler() {
4184
+ return this.fDraggableDataContext.draggableItems[0];
4185
+ }
4186
+ constructor(fComponentsStore, fDraggableDataContext, fMediator) {
4187
+ this.fComponentsStore = fComponentsStore;
4246
4188
  this.fDraggableDataContext = fDraggableDataContext;
4189
+ this.fMediator = fMediator;
4247
4190
  }
4248
4191
  handle(request) {
4192
+ if (!this._isValid()) {
4193
+ return;
4194
+ }
4195
+ this.emitEvent(request.event);
4196
+ this.dragHandler.onPointerUp();
4197
+ }
4198
+ _isValid() {
4249
4199
  return this.fDraggableDataContext.draggableItems.some((x) => x instanceof ReassignConnectionDragHandler);
4250
4200
  }
4251
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ReassignConnectionFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
4252
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ReassignConnectionFinalizeValidator });
4201
+ emitEvent(event) {
4202
+ const input = this.getInputUnderPointer(event);
4203
+ if (!!input && !this.isReassignToDifferentInput(input)) {
4204
+ return;
4205
+ }
4206
+ this.fDraggable.fReassignConnection.emit(new FReassignConnectionEvent(this.dragHandler.fConnection.fId, this.dragHandler.fConnection.fOutputId, this.dragHandler.fConnection.fInputId, input?.fId, event.getPosition()));
4207
+ }
4208
+ getInputUnderPointer(event) {
4209
+ return this.fMediator.send(new GetInputUnderPointerRequest(event, this.dragHandler));
4210
+ }
4211
+ isReassignToDifferentInput(inputsUnderPointer) {
4212
+ return this.dragHandler.fConnection.fInputId !== inputsUnderPointer.fId;
4213
+ }
4214
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ReassignConnectionFinalizeExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: i2.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
4215
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ReassignConnectionFinalizeExecution });
4253
4216
  };
4254
- ReassignConnectionFinalizeValidator = __decorate([
4255
- FValidatorRegister(ReassignConnectionFinalizeRequest)
4256
- ], ReassignConnectionFinalizeValidator);
4257
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ReassignConnectionFinalizeValidator, decorators: [{
4217
+ ReassignConnectionFinalizeExecution = __decorate([
4218
+ FExecutionRegister(ReassignConnectionFinalizeRequest)
4219
+ ], ReassignConnectionFinalizeExecution);
4220
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ReassignConnectionFinalizeExecution, decorators: [{
4258
4221
  type: Injectable
4259
- }], ctorParameters: () => [{ type: FDraggableDataContext }] });
4222
+ }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: i2.FMediator }] });
4260
4223
 
4261
4224
  class ReassignConnectionPreparationRequest {
4262
4225
  event;
@@ -4360,7 +4323,6 @@ const CONNECTIONS_PROVIDERS = [
4360
4323
  GetInputUnderPointerExecution,
4361
4324
  GetInputUnderPointerValidator,
4362
4325
  CreateConnectionFinalizeExecution,
4363
- CreateConnectionFinalizeValidator,
4364
4326
  CreateConnectionDragHandlerExecution,
4365
4327
  CreateConnectionFromOutletPreparationExecution,
4366
4328
  GetCanBeConnectedOutputByOutletExecution,
@@ -4370,7 +4332,6 @@ const CONNECTIONS_PROVIDERS = [
4370
4332
  CreateConnectionPreparationExecution,
4371
4333
  CreateConnectionPreparationValidator,
4372
4334
  ReassignConnectionFinalizeExecution,
4373
- ReassignConnectionFinalizeValidator,
4374
4335
  ReassignConnectionPreparationExecution,
4375
4336
  ReassignConnectionPreparationValidator,
4376
4337
  ];
@@ -4501,14 +4462,17 @@ class FNodeIntersectedWithConnections {
4501
4462
  }
4502
4463
 
4503
4464
  class IsConnectionUnderNodeRequest {
4465
+ fNode;
4466
+ constructor(fNode) {
4467
+ this.fNode = fNode;
4468
+ }
4504
4469
  }
4505
4470
 
4506
4471
  let IsConnectionUnderNodeExecution = class IsConnectionUnderNodeExecution {
4507
4472
  _fMediator = inject(FMediator);
4508
4473
  _fComponentsStore = inject(FComponentsStore);
4509
- _fDraggableDataContext = inject(FDraggableDataContext);
4510
4474
  handle(request) {
4511
- const fNode = this._getDraggedNodeUnderPointer();
4475
+ const fNode = request.fNode;
4512
4476
  const fOutputConnectors = this._getNodeOutputConnectors(fNode);
4513
4477
  const fInputConnectors = this._getNodeInputConnectors(fNode);
4514
4478
  const canBeConnectedOutputs = fOutputConnectors.filter((x) => x.canBeConnected);
@@ -4524,9 +4488,6 @@ let IsConnectionUnderNodeExecution = class IsConnectionUnderNodeExecution {
4524
4488
  }
4525
4489
  }
4526
4490
  }
4527
- _getDraggedNodeUnderPointer() {
4528
- return this._fDraggableDataContext.draggableItems[0].fNode;
4529
- }
4530
4491
  _getNodeOutputConnectors(fNode) {
4531
4492
  return this._fComponentsStore.fOutputs.filter((x) => fNode.isContains(x.hostElement));
4532
4493
  }
@@ -4567,27 +4528,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
4567
4528
  type: Injectable
4568
4529
  }] });
4569
4530
 
4570
- let IsConnectionUnderNodeValidator = class IsConnectionUnderNodeValidator {
4571
- _fDraggableDataContext = inject(FDraggableDataContext);
4572
- handle(request) {
4573
- return !!this._fDraggableDataContext.draggableItems.length &&
4574
- this._fDraggableDataContext.draggableItems[0] instanceof NodeDragHandler;
4575
- }
4576
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: IsConnectionUnderNodeValidator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4577
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: IsConnectionUnderNodeValidator });
4578
- };
4579
- IsConnectionUnderNodeValidator = __decorate([
4580
- FValidatorRegister(IsConnectionUnderNodeRequest)
4581
- ], IsConnectionUnderNodeValidator);
4582
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: IsConnectionUnderNodeValidator, decorators: [{
4583
- type: Injectable
4584
- }] });
4585
-
4586
4531
  const DRAG_AND_DROP_COMMON_PROVIDERS = [
4587
4532
  GetNormalizedParentNodeRectExecution,
4588
4533
  IsArrayHasParentNodeExecution,
4589
4534
  IsConnectionUnderNodeExecution,
4590
- IsConnectionUnderNodeValidator,
4591
4535
  ];
4592
4536
 
4593
4537
  class IsDragStartedRequest {
@@ -5140,12 +5084,19 @@ let NodeDragToParentFinalizeExecution = class NodeDragToParentFinalizeExecution
5140
5084
  this.fDraggableDataContext = fDraggableDataContext;
5141
5085
  }
5142
5086
  handle(request) {
5087
+ if (!this._isValid()) {
5088
+ return;
5089
+ }
5143
5090
  const item = this.getDragHandleItem();
5144
5091
  if (item.fNodeWithRect) {
5145
5092
  this.emitDroppedChildrenEvent(item.fNodeWithRect.node.fId, request.event);
5146
5093
  }
5147
5094
  item.onPointerUp?.();
5148
5095
  }
5096
+ _isValid() {
5097
+ return this.fDraggableDataContext.draggableItems
5098
+ .some((x) => x instanceof NodeDragToParentDragHandler);
5099
+ }
5149
5100
  emitDroppedChildrenEvent(fTargetId, event) {
5150
5101
  this.fComponentsStore.fDraggable?.fDropToGroup.emit(new FDropToGroupEvent(fTargetId, this.getDraggedNodeIds(), event.getPosition()));
5151
5102
  }
@@ -5175,28 +5126,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
5175
5126
  type: Injectable
5176
5127
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
5177
5128
 
5178
- let NodeDragToParentFinalizeValidator = class NodeDragToParentFinalizeValidator {
5179
- fDraggableDataContext;
5180
- constructor(fDraggableDataContext) {
5181
- this.fDraggableDataContext = fDraggableDataContext;
5182
- }
5183
- handle(request) {
5184
- return this.fDraggableDataContext.draggableItems
5185
- .some((x) => x instanceof NodeDragToParentDragHandler);
5186
- }
5187
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeDragToParentFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
5188
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeDragToParentFinalizeValidator });
5189
- };
5190
- NodeDragToParentFinalizeValidator = __decorate([
5191
- FValidatorRegister(NodeDragToParentFinalizeRequest)
5192
- ], NodeDragToParentFinalizeValidator);
5193
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeDragToParentFinalizeValidator, decorators: [{
5194
- type: Injectable
5195
- }], ctorParameters: () => [{ type: FDraggableDataContext }] });
5196
-
5197
5129
  const NODE_DRAG_TO_PARENT_FINALIZE_PROVIDERS = [
5198
5130
  NodeDragToParentFinalizeExecution,
5199
- NodeDragToParentFinalizeValidator,
5200
5131
  ];
5201
5132
 
5202
5133
  class NodeDragToParentPreparationRequest {
@@ -5405,13 +5336,19 @@ let NodeMoveFinalizeExecution = class NodeMoveFinalizeExecution {
5405
5336
  return this._fComponentsStore.fFlow.hostElement;
5406
5337
  }
5407
5338
  handle(request) {
5339
+ if (!this._isValid()) {
5340
+ return;
5341
+ }
5408
5342
  const difference = this._getDifferenceWithLineAlignment(this._getDifferenceBetweenPreparationAndFinalize(request.event.getPosition()));
5409
5343
  const firstNodeOrGroup = this._fDraggableDataContext.draggableItems
5410
5344
  .find((x) => x instanceof NodeDragHandler);
5411
5345
  const differenceWithCellSize = firstNodeOrGroup.getDifferenceWithCellSize(difference);
5412
5346
  this._finalizeMove(differenceWithCellSize);
5413
- this._fMediator.send(new IsConnectionUnderNodeRequest());
5414
5347
  this._fDraggableDataContext.fLineAlignment?.complete();
5348
+ this._applyConnectionUnderNode();
5349
+ }
5350
+ _isValid() {
5351
+ return this._fDraggableDataContext.draggableItems.some((x) => x instanceof NodeDragHandler);
5415
5352
  }
5416
5353
  _finalizeMove(difference) {
5417
5354
  this._getItems().forEach((x) => {
@@ -5441,6 +5378,13 @@ let NodeMoveFinalizeExecution = class NodeMoveFinalizeExecution {
5441
5378
  }
5442
5379
  return difference;
5443
5380
  }
5381
+ _applyConnectionUnderNode() {
5382
+ const isDraggedJustOneNode = this._fDraggableDataContext.draggableItems[0] instanceof NodeDragHandler;
5383
+ if (isDraggedJustOneNode) {
5384
+ const fNode = this._fDraggableDataContext.draggableItems[0].fNode;
5385
+ setTimeout(() => this._fMediator.execute(new IsConnectionUnderNodeRequest(fNode)));
5386
+ }
5387
+ }
5444
5388
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMoveFinalizeExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5445
5389
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMoveFinalizeExecution });
5446
5390
  };
@@ -5451,32 +5395,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
5451
5395
  type: Injectable
5452
5396
  }] });
5453
5397
 
5454
- let NodeMoveFinalizeValidator = class NodeMoveFinalizeValidator {
5455
- fDraggableDataContext;
5456
- constructor(fDraggableDataContext) {
5457
- this.fDraggableDataContext = fDraggableDataContext;
5458
- }
5459
- handle(request) {
5460
- return this.fDraggableDataContext.draggableItems.some((x) => x instanceof NodeDragHandler);
5461
- }
5462
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMoveFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
5463
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMoveFinalizeValidator });
5464
- };
5465
- NodeMoveFinalizeValidator = __decorate([
5466
- FValidatorRegister(NodeMoveFinalizeRequest)
5467
- ], NodeMoveFinalizeValidator);
5468
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMoveFinalizeValidator, decorators: [{
5469
- type: Injectable
5470
- }], ctorParameters: () => [{ type: FDraggableDataContext }] });
5471
-
5472
- const NODE_MOVE_FINALIZE_PROVIDERS = [
5473
- NodeMoveFinalizeExecution,
5474
- NodeMoveFinalizeValidator,
5475
- ];
5476
-
5477
5398
  const NODE_PROVIDERS = [
5478
5399
  ...CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS,
5479
- ...NODE_MOVE_FINALIZE_PROVIDERS,
5400
+ NodeMoveFinalizeExecution,
5480
5401
  ...NODE_MOVE_PREPARATION_PROVIDERS,
5481
5402
  ...NODE_DRAG_TO_PARENT_PREPARATION_PROVIDERS,
5482
5403
  ...NODE_DRAG_TO_PARENT_FINALIZE_PROVIDERS
@@ -5742,26 +5663,6 @@ class NodeResizeFinalizeRequest {
5742
5663
  }
5743
5664
  }
5744
5665
 
5745
- let NodeResizeFinalizeExecution = class NodeResizeFinalizeExecution {
5746
- fDraggableDataContext;
5747
- constructor(fDraggableDataContext) {
5748
- this.fDraggableDataContext = fDraggableDataContext;
5749
- }
5750
- handle(request) {
5751
- this.fDraggableDataContext.draggableItems.forEach((x) => {
5752
- x.onPointerUp?.();
5753
- });
5754
- }
5755
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeResizeFinalizeExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
5756
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeResizeFinalizeExecution });
5757
- };
5758
- NodeResizeFinalizeExecution = __decorate([
5759
- FExecutionRegister(NodeResizeFinalizeRequest)
5760
- ], NodeResizeFinalizeExecution);
5761
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeResizeFinalizeExecution, decorators: [{
5762
- type: Injectable
5763
- }], ctorParameters: () => [{ type: FDraggableDataContext }] });
5764
-
5765
5666
  class NodeResizeDragHandler {
5766
5667
  fMediator;
5767
5668
  fNode;
@@ -5809,27 +5710,34 @@ class NodeResizeDragHandler {
5809
5710
  }
5810
5711
  }
5811
5712
 
5812
- let NodeResizeFinalizeValidator = class NodeResizeFinalizeValidator {
5713
+ let NodeResizeFinalizeExecution = class NodeResizeFinalizeExecution {
5813
5714
  fDraggableDataContext;
5814
5715
  constructor(fDraggableDataContext) {
5815
5716
  this.fDraggableDataContext = fDraggableDataContext;
5816
5717
  }
5817
5718
  handle(request) {
5719
+ if (!this._isValid()) {
5720
+ return;
5721
+ }
5722
+ this.fDraggableDataContext.draggableItems.forEach((x) => {
5723
+ x.onPointerUp?.();
5724
+ });
5725
+ }
5726
+ _isValid() {
5818
5727
  return this.fDraggableDataContext.draggableItems.some((x) => x instanceof NodeResizeDragHandler);
5819
5728
  }
5820
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeResizeFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
5821
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeResizeFinalizeValidator });
5729
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeResizeFinalizeExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
5730
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeResizeFinalizeExecution });
5822
5731
  };
5823
- NodeResizeFinalizeValidator = __decorate([
5824
- FValidatorRegister(NodeResizeFinalizeRequest)
5825
- ], NodeResizeFinalizeValidator);
5826
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeResizeFinalizeValidator, decorators: [{
5732
+ NodeResizeFinalizeExecution = __decorate([
5733
+ FExecutionRegister(NodeResizeFinalizeRequest)
5734
+ ], NodeResizeFinalizeExecution);
5735
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeResizeFinalizeExecution, decorators: [{
5827
5736
  type: Injectable
5828
5737
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
5829
5738
 
5830
5739
  const NODE_RESIZE_FINALIZE_PROVIDERS = [
5831
5740
  NodeResizeFinalizeExecution,
5832
- NodeResizeFinalizeValidator,
5833
5741
  ];
5834
5742
 
5835
5743
  class NodeResizePreparationRequest {
@@ -6071,6 +5979,43 @@ class ExternalItemFinalizeRequest {
6071
5979
  }
6072
5980
  }
6073
5981
 
5982
+ class ExternalItemDragHandler {
5983
+ externalItem;
5984
+ fBrowser;
5985
+ placeholder;
5986
+ onPointerDownRect = RectExtensions.initialize();
5987
+ difference = PointExtensions.initialize();
5988
+ constructor(externalItem, fBrowser) {
5989
+ this.externalItem = externalItem;
5990
+ this.fBrowser = fBrowser;
5991
+ }
5992
+ getStyle(position) {
5993
+ return `position: absolute; left: 0; top: 0; transform: translate(${position.x}px, ${position.y}px)`;
5994
+ }
5995
+ prepareDragSequence() {
5996
+ this.onPointerDownRect = this.getExternalItemRect();
5997
+ this.placeholder = deepCloneNode(this.externalItem.hostElement);
5998
+ this.placeholder.setAttribute('style', this.getStyle(Point.fromPoint(this.onPointerDownRect)));
5999
+ this.fBrowser.document.body.appendChild(this.placeholder);
6000
+ }
6001
+ getExternalItemRect() {
6002
+ const rect = this.externalItem.hostElement.getBoundingClientRect();
6003
+ const scrollTop = this.fBrowser.window.pageYOffset || this.fBrowser.document.documentElement.scrollTop;
6004
+ const scrollLeft = this.fBrowser.window.pageXOffset || this.fBrowser.document.documentElement.scrollLeft;
6005
+ const offsetTop = rect.top + scrollTop;
6006
+ const offsetLeft = rect.left + scrollLeft;
6007
+ return RectExtensions.initialize(offsetLeft, offsetTop, rect.width, rect.height);
6008
+ }
6009
+ onPointerMove(difference) {
6010
+ this.difference = difference;
6011
+ const position = Point.fromPoint(this.onPointerDownRect).add(this.difference);
6012
+ this.placeholder.setAttribute('style', this.getStyle(position));
6013
+ }
6014
+ onPointerUp() {
6015
+ this.fBrowser.document.body.removeChild(this.placeholder);
6016
+ }
6017
+ }
6018
+
6074
6019
  class FCreateNodeEvent {
6075
6020
  rect;
6076
6021
  data;
@@ -6101,9 +6046,15 @@ let ExternalItemFinalizeExecution = class ExternalItemFinalizeExecution {
6101
6046
  this.fBrowser = fBrowser;
6102
6047
  }
6103
6048
  handle(request) {
6049
+ if (!this._isValid()) {
6050
+ return;
6051
+ }
6104
6052
  this.emitEvent(this.getExternalItemElementsFromPoint(request.event.getPosition()));
6105
6053
  this.dragHandler.onPointerUp();
6106
6054
  }
6055
+ _isValid() {
6056
+ return this.fDraggableDataContext.draggableItems.some((x) => x instanceof ExternalItemDragHandler);
6057
+ }
6107
6058
  getExternalItemElementsFromPoint(position) {
6108
6059
  return this.fBrowser.document.elementsFromPoint(position.x, position.y)
6109
6060
  .filter(x => !x.closest('.f-external-item'));
@@ -6129,64 +6080,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
6129
6080
  type: Injectable
6130
6081
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: i2.FMediator }, { type: i1.BrowserService }] });
6131
6082
 
6132
- class ExternalItemDragHandler {
6133
- externalItem;
6134
- fBrowser;
6135
- placeholder;
6136
- onPointerDownRect = RectExtensions.initialize();
6137
- difference = PointExtensions.initialize();
6138
- constructor(externalItem, fBrowser) {
6139
- this.externalItem = externalItem;
6140
- this.fBrowser = fBrowser;
6141
- }
6142
- getStyle(position) {
6143
- return `position: absolute; left: 0; top: 0; transform: translate(${position.x}px, ${position.y}px)`;
6144
- }
6145
- prepareDragSequence() {
6146
- this.onPointerDownRect = this.getExternalItemRect();
6147
- this.placeholder = deepCloneNode(this.externalItem.hostElement);
6148
- this.placeholder.setAttribute('style', this.getStyle(Point.fromPoint(this.onPointerDownRect)));
6149
- this.fBrowser.document.body.appendChild(this.placeholder);
6150
- }
6151
- getExternalItemRect() {
6152
- const rect = this.externalItem.hostElement.getBoundingClientRect();
6153
- const scrollTop = this.fBrowser.window.pageYOffset || this.fBrowser.document.documentElement.scrollTop;
6154
- const scrollLeft = this.fBrowser.window.pageXOffset || this.fBrowser.document.documentElement.scrollLeft;
6155
- const offsetTop = rect.top + scrollTop;
6156
- const offsetLeft = rect.left + scrollLeft;
6157
- return RectExtensions.initialize(offsetLeft, offsetTop, rect.width, rect.height);
6158
- }
6159
- onPointerMove(difference) {
6160
- this.difference = difference;
6161
- const position = Point.fromPoint(this.onPointerDownRect).add(this.difference);
6162
- this.placeholder.setAttribute('style', this.getStyle(position));
6163
- }
6164
- onPointerUp() {
6165
- this.fBrowser.document.body.removeChild(this.placeholder);
6166
- }
6167
- }
6168
-
6169
- let ExternalItemFinalizeValidator = class ExternalItemFinalizeValidator {
6170
- fDraggableDataContext;
6171
- constructor(fDraggableDataContext) {
6172
- this.fDraggableDataContext = fDraggableDataContext;
6173
- }
6174
- handle(request) {
6175
- return this.fDraggableDataContext.draggableItems.some((x) => x instanceof ExternalItemDragHandler);
6176
- }
6177
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ExternalItemFinalizeValidator, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
6178
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ExternalItemFinalizeValidator });
6179
- };
6180
- ExternalItemFinalizeValidator = __decorate([
6181
- FValidatorRegister(ExternalItemFinalizeRequest)
6182
- ], ExternalItemFinalizeValidator);
6183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ExternalItemFinalizeValidator, decorators: [{
6184
- type: Injectable
6185
- }], ctorParameters: () => [{ type: FDraggableDataContext }] });
6186
-
6187
6083
  const EXTERNAL_ITEM_FINALIZE_PROVIDERS = [
6188
6084
  ExternalItemFinalizeExecution,
6189
- ExternalItemFinalizeValidator,
6190
6085
  ];
6191
6086
 
6192
6087
  class ExternalItemPreparationRequest {
@@ -6450,24 +6345,24 @@ class FDraggableDirective extends FDraggableBase {
6450
6345
  }
6451
6346
  onSelect(event) {
6452
6347
  this.plugins.forEach((x) => x.onSelect?.(event));
6453
- this._fMediator.send(new PreventDefaultIsExternalItemRequest(event));
6348
+ this._fMediator.execute(new PreventDefaultIsExternalItemRequest(event));
6454
6349
  }
6455
6350
  onPointerMove(event) {
6456
- this._fMediator.send(new OnPointerMoveRequest(event));
6351
+ this._fMediator.execute(new OnPointerMoveRequest(event));
6457
6352
  }
6458
6353
  onPointerUp(event) {
6459
6354
  this.plugins.forEach((x) => x.onPointerUp?.(event));
6460
- this._fMediator.send(new ReassignConnectionFinalizeRequest(event));
6461
- this._fMediator.send(new CreateConnectionFinalizeRequest(event));
6462
- this._fMediator.send(new NodeResizeFinalizeRequest(event));
6463
- this._fMediator.send(new NodeMoveFinalizeRequest(event));
6464
- this._fMediator.send(new NodeDragToParentFinalizeRequest(event));
6355
+ this._fMediator.execute(new ReassignConnectionFinalizeRequest(event));
6356
+ this._fMediator.execute(new CreateConnectionFinalizeRequest(event));
6357
+ this._fMediator.execute(new NodeResizeFinalizeRequest(event));
6358
+ this._fMediator.execute(new NodeMoveFinalizeRequest(event));
6359
+ this._fMediator.execute(new NodeDragToParentFinalizeRequest(event));
6465
6360
  this._fMediator.send(new CanvasMoveFinalizeRequest(event));
6466
- this._fMediator.send(new ExternalItemFinalizeRequest(event));
6467
- this._fMediator.send(new EndDragSequenceRequest());
6361
+ this._fMediator.execute(new ExternalItemFinalizeRequest(event));
6362
+ this._fMediator.execute(new EndDragSequenceRequest());
6468
6363
  }
6469
6364
  finalizeDragSequence() {
6470
- this._fMediator.send(new EmitSelectionChangeEventRequest());
6365
+ this._fMediator.execute(new EmitSelectionChangeEventRequest());
6471
6366
  }
6472
6367
  ngOnDestroy() {
6473
6368
  this._fMediator.send(new RemoveDndFromStoreRequest());
@@ -9356,5 +9251,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
9356
9251
  * Generated bundle index. Do not edit.
9357
9252
  */
9358
9253
 
9359
- export { AddBackgroundToStoreExecution, AddBackgroundToStoreRequest, AddCanvasToStoreExecution, AddCanvasToStoreRequest, AddConnectionForCreateToStoreExecution, AddConnectionForCreateToStoreRequest, AddConnectionMarkerToStoreExecution, AddConnectionMarkerToStoreRequest, AddConnectionToStoreExecution, AddConnectionToStoreRequest, AddDndToStoreExecution, AddDndToStoreRequest, AddFlowToStoreExecution, AddFlowToStoreRequest, AddInputToStoreExecution, AddInputToStoreRequest, AddLineAlignmentToStoreExecution, AddLineAlignmentToStoreRequest, AddNodeToStoreExecution, AddNodeToStoreRequest, AddOutletToStoreExecution, AddOutletToStoreRequest, AddOutputToStoreExecution, AddOutputToStoreRequest, AddPatternToBackgroundExecution, AddPatternToBackgroundRequest, AddSnapConnectionToStoreExecution, AddSnapConnectionToStoreRequest, ApplyChildResizeRestrictionsExecution, ApplyChildResizeRestrictionsRequest, ApplyParentResizeRestrictionsExecution, ApplyParentResizeRestrictionsRequest, CANVAS_MOVE_FINALIZE_PROVIDERS, CANVAS_MOVE_PREPARATION_PROVIDERS, CANVAS_PROVIDERS, COMMON_PROVIDERS, CONNECTIONS_PROVIDERS, CONNECTION_GRADIENT, CONNECTION_PATH, CONNECTION_TEXT, CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS, CalculateCenterBetweenPointsHandler, CalculateCenterBetweenPointsRequest, CalculateChangedPositionExecution, CalculateChangedPositionRequest, CalculateChangedSizeExecution, CalculateChangedSizeRequest, CalculateConnectionCenterHandler, CalculateConnectionCenterRequest, CalculateConnectionLineByBehaviorExecution, CalculateConnectionLineByBehaviorRequest, CalculateConnectorConnectableSideHandler, CalculateConnectorConnectableSideRequest, CalculateFlowPointFromMinimapPointExecution, CalculateFlowPointFromMinimapPointRequest, CalculateNodesBoundingBoxExecution, CalculateNodesBoundingBoxNormalizedPositionExecution, CalculateNodesBoundingBoxNormalizedPositionRequest, CalculateNodesBoundingBoxRequest, CanvasDragHandler, CanvasMoveFinalizeExecution, CanvasMoveFinalizeRequest, CanvasMoveFinalizeValidator, CanvasMovePreparationExecution, CanvasMovePreparationRequest, CanvasMovePreparationValidator, CenterGroupOrNodeExecution, CenterGroupOrNodeRequest, ClearSelectionExecution, ClearSelectionRequest, ConnectionBaseDragHandler, ConnectionDragHandler, ConnectionSourceDragHandler, ConnectionTargetDragHandler, CreateConnectionDragHandler, CreateConnectionDragHandlerExecution, CreateConnectionDragHandlerRequest, CreateConnectionFinalizeExecution, CreateConnectionFinalizeRequest, CreateConnectionFinalizeValidator, CreateConnectionFromOutletPreparationExecution, CreateConnectionFromOutletPreparationRequest, CreateConnectionFromOutputPreparationExecution, CreateConnectionFromOutputPreparationRequest, CreateConnectionFromOutputPreparationValidator, CreateConnectionMarkersExecution, CreateConnectionMarkersRequest, CreateConnectionPreparationExecution, CreateConnectionPreparationRequest, CreateConnectionPreparationValidator, CreateMoveNodesDragModelFromSelectionExecution, CreateMoveNodesDragModelFromSelectionRequest, DRAG_AND_DROP_COMMON_PROVIDERS, EFConnectableSide, EFConnectionBehavior, EFConnectionType, EFMarkerType, EFResizeHandleType, EXTERNAL_ITEM_FINALIZE_PROVIDERS, EXTERNAL_ITEM_PREPARATION_PROVIDERS, EmitSelectionChangeEventExecution, EmitSelectionChangeEventRequest, EndDragSequenceExecution, EndDragSequenceRequest, ExternalItemDragHandler, ExternalItemFinalizeExecution, ExternalItemFinalizeRequest, ExternalItemFinalizeValidator, ExternalItemPreparationExecution, ExternalItemPreparationRequest, ExternalItemPreparationValidator, FBackgroundBase, FBackgroundComponent, FBezierPathBuilder, FCanvasBase, FCanvasChangeEvent, FCanvasComponent, FChannel, FChannelHub, FCirclePatternComponent, FComponentsStore, FConnectionBase, FConnectionCenterDirective, FConnectionComponent, FConnectionDragHandleComponent, FConnectionFactory, FConnectionForCreateComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionTextComponent, FConnectionTextPathDirective, FConnectorBase, FCreateConnectionEvent, FCreateNodeEvent, FDragHandleDirective, FDraggableBase, FDraggableDataContext, FDraggableDirective, FDropToGroupEvent, FExternalItemBase, FExternalItemDirective, FExternalItemService, FFlowBase, FFlowComponent, FFlowModule, FGroupDirective, FLineAlignmentBase, FLineAlignmentComponent, FMarkerBase, FMarkerDirective, FMinimapCanvasDirective, FMinimapComponent, FMinimapData, FMinimapDragHandler, FMinimapFlowDirective, FMinimapViewDirective, FNodeBase, FNodeDirective, FNodeInputBase, FNodeInputDirective, FNodeIntersectedWithConnections, FNodeOutletBase, FNodeOutletDirective, FNodeOutputBase, FNodeOutputDirective, FReassignConnectionEvent, FRectPatternComponent, FResizeChannel, FResizeHandleDirective, FRotateHandleDirective, FSegmentPathBuilder, FSelectionAreaBase, FSelectionAreaComponent, FSelectionChangeEvent, FSnapConnectionComponent, FStraightPathBuilder, FZoomBase, FZoomDirective, F_BACKGROUND, F_BACKGROUND_FEATURES, F_BACKGROUND_PATTERN, F_BACKGROUND_PROVIDERS, F_CANVAS, F_CANVAS_FEATURES, F_CANVAS_PROVIDERS, F_CONNECTION_BUILDERS, F_CONNECTION_DRAG_HANDLE_CLASS, F_CONNECTION_FEATURES, F_CONNECTION_IDENTIFIERS, F_CONNECTION_PROVIDERS, F_CONNECTORS_FEATURES, F_CONNECTORS_PROVIDERS, F_DRAGGABLE_FEATURES, F_DRAGGABLE_PROVIDERS, F_DRAG_AND_DROP_PLUGIN, F_DRAG_HANDLE, F_EXTERNAL_ITEM, F_EXTERNAL_ITEM_DRAG_AND_DROP_PROVIDERS, F_EXTERNAL_ITEM_PROVIDERS, F_FLOW, F_FLOW_FEATURES, F_FLOW_PROVIDERS, F_LINE_ALIGNMENT, F_LINE_ALIGNMENT_FEATURES, F_LINE_ALIGNMENT_PROVIDERS, F_MARKER, F_MINIMAP_DRAG_AND_DROP_PROVIDERS, F_MINIMAP_PROVIDERS, F_NODE, F_NODE_FEATURES, F_NODE_INPUT, F_NODE_OUTLET, F_NODE_OUTPUT, F_NODE_PROVIDERS, F_RESIZE_HANDLE, F_SELECTED_CLASS, F_SELECTION_AREA_DRAG_AND_DROP_PROVIDERS, F_SELECTION_AREA_PROVIDERS, F_SELECTION_FEATURES, F_STORAGE_PROVIDERS, F_ZOOM, F_ZOOM_PROVIDERS, FindClosestInputExecution, FindClosestInputRequest, FitToFlowExecution, FitToFlowRequest, GET_FLOW_STATE_PROVIDERS, GetAllCanBeConnectedInputPositionsExecution, GetAllCanBeConnectedInputPositionsRequest, GetCanBeConnectedOutputByOutletExecution, GetCanBeConnectedOutputByOutletRequest, GetCanBeConnectedOutputByOutletValidator, GetCanBeSelectedItemsExecution, GetCanBeSelectedItemsRequest, GetCanvasExecution, GetCanvasRequest, GetConnectorWithRectExecution, GetConnectorWithRectRequest, GetCurrentSelectionExecution, GetCurrentSelectionRequest, GetDeepChildrenNodesAndGroupsExecution, GetDeepChildrenNodesAndGroupsRequest, GetElementRoundedRectExecution, GetElementRoundedRectRequest, GetFlowExecution, GetFlowHostElementExecution, GetFlowHostElementRequest, GetFlowRequest, GetFlowStateConnectionsExecution, GetFlowStateConnectionsRequest, GetFlowStateExecution, GetFlowStateNodesExecution, GetFlowStateNodesRequest, GetFlowStateRequest, GetInputUnderPointerExecution, GetInputUnderPointerRequest, GetInputUnderPointerValidator, GetNodeMoveRestrictionsExecution, GetNodeMoveRestrictionsRequest, GetNodePaddingExecution, GetNodePaddingRequest, GetNodeResizeRestrictionsExecution, GetNodeResizeRestrictionsRequest, GetNodesExecution, GetNodesRequest, GetNormalizedChildrenNodesRectExecution, GetNormalizedChildrenNodesRectRequest, GetNormalizedElementRectExecution, GetNormalizedElementRectRequest, GetNormalizedParentNodeRectExecution, GetNormalizedParentNodeRectRequest, GetNormalizedPointExecution, GetNormalizedPointRequest, GetParentNodesExecution, GetParentNodesRequest, InitializeDragSequenceExecution, InitializeDragSequenceRequest, InputCanvasPositionExecution, InputCanvasPositionRequest, InputCanvasScaleExecution, InputCanvasScaleRequest, IsArrayHasParentNodeExecution, IsArrayHasParentNodeRequest, IsConnectionUnderNodeExecution, IsConnectionUnderNodeRequest, IsConnectionUnderNodeValidator, IsDragStartedExecution, IsDragStartedRequest, LineElement, LineService, ListenCountChangesExecution, ListenCountChangesRequest, ListenDataChangesExecution, ListenDataChangesRequest, ListenTransformChangesExecution, ListenTransformChangesRequest, MINIMAP_DRAG_FINALIZE_PROVIDERS, MINIMAP_DRAG_PREPARATION_PROVIDERS, MinimapCalculateSvgScaleAndViewBoxExecution, MinimapCalculateSvgScaleAndViewBoxRequest, MinimapCalculateViewBoxExecution, MinimapCalculateViewBoxRequest, MinimapDragFinalizeExecution, MinimapDragFinalizeRequest, MinimapDragFinalizeValidator, MinimapDragPreparationExecution, MinimapDragPreparationRequest, MinimapDragPreparationValidator, MinimapDrawNodesExecution, MinimapDrawNodesRequest, MoveFrontElementsBeforeTargetElementExecution, MoveFrontElementsBeforeTargetElementRequest, NODE_DRAG_TO_PARENT_FINALIZE_PROVIDERS, NODE_DRAG_TO_PARENT_PREPARATION_PROVIDERS, NODE_MOVE_FINALIZE_PROVIDERS, NODE_MOVE_PREPARATION_PROVIDERS, NODE_PROVIDERS, NODE_RESIZE_FINALIZE_PROVIDERS, NODE_RESIZE_PREPARATION_PROVIDERS, NODE_RESIZE_PROVIDERS, NodeDragHandler, NodeDragToParentDragHandler, NodeDragToParentFinalizeExecution, NodeDragToParentFinalizeRequest, NodeDragToParentFinalizeValidator, NodeDragToParentPreparationExecution, NodeDragToParentPreparationRequest, NodeDragToParentPreparationValidator, NodeMoveFinalizeExecution, NodeMoveFinalizeRequest, NodeMoveFinalizeValidator, NodeMovePreparationExecution, NodeMovePreparationRequest, NodeMovePreparationValidator, NodeResizeByChildDragHandler, NodeResizeDragHandler, NodeResizeFinalizeExecution, NodeResizeFinalizeRequest, NodeResizeFinalizeValidator, NodeResizePreparationExecution, NodeResizePreparationRequest, NodeResizePreparationValidator, NotifyDataChangedExecution, NotifyDataChangedRequest, NotifyTransformChangedExecution, NotifyTransformChangedRequest, OnPointerMoveExecution, OnPointerMoveRequest, PrepareDragSequenceExecution, PrepareDragSequenceRequest, PreventDefaultIsExternalItemExecution, PreventDefaultIsExternalItemRequest, PutInputConnectionHandlersToArrayExecution, PutInputConnectionHandlersToArrayRequest, PutOutputConnectionHandlersToArrayExecution, PutOutputConnectionHandlersToArrayRequest, RESIZE_DIRECTIONS, ReassignConnectionDragHandler, ReassignConnectionFinalizeExecution, ReassignConnectionFinalizeRequest, ReassignConnectionFinalizeValidator, ReassignConnectionPreparationExecution, ReassignConnectionPreparationRequest, ReassignConnectionPreparationValidator, RedrawCanvasWithAnimationExecution, RedrawCanvasWithAnimationRequest, RedrawConnectionsExecution, RedrawConnectionsRequest, RemoveBackgroundFromStoreExecution, RemoveBackgroundFromStoreRequest, RemoveCanvasFromStoreExecution, RemoveCanvasFromStoreRequest, RemoveConnectionForCreateFromStoreExecution, RemoveConnectionForCreateFromStoreRequest, RemoveConnectionFromStoreExecution, RemoveConnectionFromStoreRequest, RemoveConnectionMarkerFromStoreExecution, RemoveConnectionMarkerFromStoreRequest, RemoveDndFromStoreExecution, RemoveDndFromStoreRequest, RemoveFlowFromStoreExecution, RemoveFlowFromStoreRequest, RemoveInputFromStoreExecution, RemoveInputFromStoreRequest, RemoveLineAlignmentFromStoreExecution, RemoveLineAlignmentFromStoreRequest, RemoveNodeFromStoreExecution, RemoveNodeFromStoreRequest, RemoveOutletFromStoreExecution, RemoveOutletFromStoreRequest, RemoveOutputFromStoreExecution, RemoveOutputFromStoreRequest, RemoveSnapConnectionFromStoreExecution, RemoveSnapConnectionFromStoreRequest, ResetScaleAndCenterExecution, ResetScaleAndCenterRequest, ResetScaleExecution, ResetScaleRequest, SELECTION_AREA_FINALIZE_PROVIDERS, SELECTION_AREA_PREPARATION_PROVIDERS, SINGLE_SELECT_PROVIDERS, SelectAllExecution, SelectAllRequest, SelectAndUpdateNodeLayerExecution, SelectAndUpdateNodeLayerRequest, SelectExecution, SelectRequest, SelectionAreaDragHandle, SelectionAreaFinalizeExecution, SelectionAreaFinalizeRequest, SelectionAreaFinalizeValidator, SelectionAreaPreparationExecution, SelectionAreaPreparationRequest, SelectionAreaPreparationValidator, SetBackgroundTransformExecution, SetBackgroundTransformRequest, SingleSelectExecution, SingleSelectRequest, SingleSelectValidator, SortItemLayersExecution, SortItemLayersRequest, SortItemsByParentExecution, SortItemsByParentRequest, SortNodeLayersExecution, SortNodeLayersRequest, StartDragSequenceExecution, StartDragSequenceRequest, UpdateItemAndChildrenLayersExecution, UpdateItemAndChildrenLayersRequest, UpdateNodeWhenStateOrSizeChangedExecution, UpdateNodeWhenStateOrSizeChangedRequest, UpdateScaleExecution, UpdateScaleRequest, createSVGElement, debounceTime, fixedCenterBehavior, fixedOutboundBehavior, floatingBehavior, getExternalItem, getMarkerEndId, getMarkerSelectedEndId, getMarkerSelectedStartId, getMarkerStartId, isExternalItem, isMobile, isNode, isNodeOutlet, isNodeOutput, mixinChangeSelection, mixinChangeVisibility, notifyOnStart, transitionEnd };
9254
+ export { AddBackgroundToStoreExecution, AddBackgroundToStoreRequest, AddCanvasToStoreExecution, AddCanvasToStoreRequest, AddConnectionForCreateToStoreExecution, AddConnectionForCreateToStoreRequest, AddConnectionMarkerToStoreExecution, AddConnectionMarkerToStoreRequest, AddConnectionToStoreExecution, AddConnectionToStoreRequest, AddDndToStoreExecution, AddDndToStoreRequest, AddFlowToStoreExecution, AddFlowToStoreRequest, AddInputToStoreExecution, AddInputToStoreRequest, AddLineAlignmentToStoreExecution, AddLineAlignmentToStoreRequest, AddNodeToStoreExecution, AddNodeToStoreRequest, AddOutletToStoreExecution, AddOutletToStoreRequest, AddOutputToStoreExecution, AddOutputToStoreRequest, AddPatternToBackgroundExecution, AddPatternToBackgroundRequest, AddSnapConnectionToStoreExecution, AddSnapConnectionToStoreRequest, ApplyChildResizeRestrictionsExecution, ApplyChildResizeRestrictionsRequest, ApplyParentResizeRestrictionsExecution, ApplyParentResizeRestrictionsRequest, CANVAS_MOVE_FINALIZE_PROVIDERS, CANVAS_MOVE_PREPARATION_PROVIDERS, CANVAS_PROVIDERS, COMMON_PROVIDERS, CONNECTIONS_PROVIDERS, CONNECTION_GRADIENT, CONNECTION_PATH, CONNECTION_TEXT, CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS, CalculateCenterBetweenPointsHandler, CalculateCenterBetweenPointsRequest, CalculateChangedPositionExecution, CalculateChangedPositionRequest, CalculateChangedSizeExecution, CalculateChangedSizeRequest, CalculateConnectionCenterHandler, CalculateConnectionCenterRequest, CalculateConnectionLineByBehaviorExecution, CalculateConnectionLineByBehaviorRequest, CalculateConnectorConnectableSideHandler, CalculateConnectorConnectableSideRequest, CalculateFlowPointFromMinimapPointExecution, CalculateFlowPointFromMinimapPointRequest, CalculateNodesBoundingBoxExecution, CalculateNodesBoundingBoxNormalizedPositionExecution, CalculateNodesBoundingBoxNormalizedPositionRequest, CalculateNodesBoundingBoxRequest, CanvasDragHandler, CanvasMoveFinalizeExecution, CanvasMoveFinalizeRequest, CanvasMovePreparationExecution, CanvasMovePreparationRequest, CanvasMovePreparationValidator, CenterGroupOrNodeExecution, CenterGroupOrNodeRequest, ClearSelectionExecution, ClearSelectionRequest, ConnectionBaseDragHandler, ConnectionDragHandler, ConnectionSourceDragHandler, ConnectionTargetDragHandler, CreateConnectionDragHandler, CreateConnectionDragHandlerExecution, CreateConnectionDragHandlerRequest, CreateConnectionFinalizeExecution, CreateConnectionFinalizeRequest, CreateConnectionFromOutletPreparationExecution, CreateConnectionFromOutletPreparationRequest, CreateConnectionFromOutputPreparationExecution, CreateConnectionFromOutputPreparationRequest, CreateConnectionFromOutputPreparationValidator, CreateConnectionMarkersExecution, CreateConnectionMarkersRequest, CreateConnectionPreparationExecution, CreateConnectionPreparationRequest, CreateConnectionPreparationValidator, CreateMoveNodesDragModelFromSelectionExecution, CreateMoveNodesDragModelFromSelectionRequest, DRAG_AND_DROP_COMMON_PROVIDERS, EFConnectableSide, EFConnectionBehavior, EFConnectionType, EFMarkerType, EFResizeHandleType, EXTERNAL_ITEM_FINALIZE_PROVIDERS, EXTERNAL_ITEM_PREPARATION_PROVIDERS, EmitSelectionChangeEventExecution, EmitSelectionChangeEventRequest, EndDragSequenceExecution, EndDragSequenceRequest, ExternalItemDragHandler, ExternalItemFinalizeExecution, ExternalItemFinalizeRequest, ExternalItemPreparationExecution, ExternalItemPreparationRequest, ExternalItemPreparationValidator, FBackgroundBase, FBackgroundComponent, FBezierPathBuilder, FCanvasBase, FCanvasChangeEvent, FCanvasComponent, FChannel, FChannelHub, FCirclePatternComponent, FComponentsStore, FConnectionBase, FConnectionCenterDirective, FConnectionComponent, FConnectionDragHandleComponent, FConnectionFactory, FConnectionForCreateComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionTextComponent, FConnectionTextPathDirective, FConnectorBase, FCreateConnectionEvent, FCreateNodeEvent, FDragHandleDirective, FDraggableBase, FDraggableDataContext, FDraggableDirective, FDropToGroupEvent, FExternalItemBase, FExternalItemDirective, FExternalItemService, FFlowBase, FFlowComponent, FFlowModule, FGroupDirective, FLineAlignmentBase, FLineAlignmentComponent, FMarkerBase, FMarkerDirective, FMinimapCanvasDirective, FMinimapComponent, FMinimapData, FMinimapDragHandler, FMinimapFlowDirective, FMinimapViewDirective, FNodeBase, FNodeDirective, FNodeInputBase, FNodeInputDirective, FNodeIntersectedWithConnections, FNodeOutletBase, FNodeOutletDirective, FNodeOutputBase, FNodeOutputDirective, FReassignConnectionEvent, FRectPatternComponent, FResizeChannel, FResizeHandleDirective, FRotateHandleDirective, FSegmentPathBuilder, FSelectionAreaBase, FSelectionAreaComponent, FSelectionChangeEvent, FSnapConnectionComponent, FStraightPathBuilder, FZoomBase, FZoomDirective, F_BACKGROUND, F_BACKGROUND_FEATURES, F_BACKGROUND_PATTERN, F_BACKGROUND_PROVIDERS, F_CANVAS, F_CANVAS_FEATURES, F_CANVAS_PROVIDERS, F_CONNECTION_BUILDERS, F_CONNECTION_DRAG_HANDLE_CLASS, F_CONNECTION_FEATURES, F_CONNECTION_IDENTIFIERS, F_CONNECTION_PROVIDERS, F_CONNECTORS_FEATURES, F_CONNECTORS_PROVIDERS, F_DRAGGABLE_FEATURES, F_DRAGGABLE_PROVIDERS, F_DRAG_AND_DROP_PLUGIN, F_DRAG_HANDLE, F_EXTERNAL_ITEM, F_EXTERNAL_ITEM_DRAG_AND_DROP_PROVIDERS, F_EXTERNAL_ITEM_PROVIDERS, F_FLOW, F_FLOW_FEATURES, F_FLOW_PROVIDERS, F_LINE_ALIGNMENT, F_LINE_ALIGNMENT_FEATURES, F_LINE_ALIGNMENT_PROVIDERS, F_MARKER, F_MINIMAP_DRAG_AND_DROP_PROVIDERS, F_MINIMAP_PROVIDERS, F_NODE, F_NODE_FEATURES, F_NODE_INPUT, F_NODE_OUTLET, F_NODE_OUTPUT, F_NODE_PROVIDERS, F_RESIZE_HANDLE, F_SELECTED_CLASS, F_SELECTION_AREA_DRAG_AND_DROP_PROVIDERS, F_SELECTION_AREA_PROVIDERS, F_SELECTION_FEATURES, F_STORAGE_PROVIDERS, F_ZOOM, F_ZOOM_PROVIDERS, FindClosestInputExecution, FindClosestInputRequest, FitToFlowExecution, FitToFlowRequest, GET_FLOW_STATE_PROVIDERS, GetAllCanBeConnectedInputPositionsExecution, GetAllCanBeConnectedInputPositionsRequest, GetCanBeConnectedOutputByOutletExecution, GetCanBeConnectedOutputByOutletRequest, GetCanBeConnectedOutputByOutletValidator, GetCanBeSelectedItemsExecution, GetCanBeSelectedItemsRequest, GetCanvasExecution, GetCanvasRequest, GetConnectorWithRectExecution, GetConnectorWithRectRequest, GetCurrentSelectionExecution, GetCurrentSelectionRequest, GetDeepChildrenNodesAndGroupsExecution, GetDeepChildrenNodesAndGroupsRequest, GetElementRoundedRectExecution, GetElementRoundedRectRequest, GetFlowExecution, GetFlowHostElementExecution, GetFlowHostElementRequest, GetFlowRequest, GetFlowStateConnectionsExecution, GetFlowStateConnectionsRequest, GetFlowStateExecution, GetFlowStateNodesExecution, GetFlowStateNodesRequest, GetFlowStateRequest, GetInputUnderPointerExecution, GetInputUnderPointerRequest, GetInputUnderPointerValidator, GetNodeMoveRestrictionsExecution, GetNodeMoveRestrictionsRequest, GetNodePaddingExecution, GetNodePaddingRequest, GetNodeResizeRestrictionsExecution, GetNodeResizeRestrictionsRequest, GetNodesExecution, GetNodesRequest, GetNormalizedChildrenNodesRectExecution, GetNormalizedChildrenNodesRectRequest, GetNormalizedElementRectExecution, GetNormalizedElementRectRequest, GetNormalizedParentNodeRectExecution, GetNormalizedParentNodeRectRequest, GetNormalizedPointExecution, GetNormalizedPointRequest, GetParentNodesExecution, GetParentNodesRequest, InitializeDragSequenceExecution, InitializeDragSequenceRequest, InputCanvasPositionExecution, InputCanvasPositionRequest, InputCanvasScaleExecution, InputCanvasScaleRequest, IsArrayHasParentNodeExecution, IsArrayHasParentNodeRequest, IsConnectionUnderNodeExecution, IsConnectionUnderNodeRequest, IsDragStartedExecution, IsDragStartedRequest, LineElement, LineService, ListenCountChangesExecution, ListenCountChangesRequest, ListenDataChangesExecution, ListenDataChangesRequest, ListenTransformChangesExecution, ListenTransformChangesRequest, MINIMAP_DRAG_FINALIZE_PROVIDERS, MINIMAP_DRAG_PREPARATION_PROVIDERS, MinimapCalculateSvgScaleAndViewBoxExecution, MinimapCalculateSvgScaleAndViewBoxRequest, MinimapCalculateViewBoxExecution, MinimapCalculateViewBoxRequest, MinimapDragFinalizeExecution, MinimapDragFinalizeRequest, MinimapDragFinalizeValidator, MinimapDragPreparationExecution, MinimapDragPreparationRequest, MinimapDragPreparationValidator, MinimapDrawNodesExecution, MinimapDrawNodesRequest, MoveFrontElementsBeforeTargetElementExecution, MoveFrontElementsBeforeTargetElementRequest, NODE_DRAG_TO_PARENT_FINALIZE_PROVIDERS, NODE_DRAG_TO_PARENT_PREPARATION_PROVIDERS, NODE_MOVE_PREPARATION_PROVIDERS, NODE_PROVIDERS, NODE_RESIZE_FINALIZE_PROVIDERS, NODE_RESIZE_PREPARATION_PROVIDERS, NODE_RESIZE_PROVIDERS, NodeDragHandler, NodeDragToParentDragHandler, NodeDragToParentFinalizeExecution, NodeDragToParentFinalizeRequest, NodeDragToParentPreparationExecution, NodeDragToParentPreparationRequest, NodeDragToParentPreparationValidator, NodeMoveFinalizeExecution, NodeMoveFinalizeRequest, NodeMovePreparationExecution, NodeMovePreparationRequest, NodeMovePreparationValidator, NodeResizeByChildDragHandler, NodeResizeDragHandler, NodeResizeFinalizeExecution, NodeResizeFinalizeRequest, NodeResizePreparationExecution, NodeResizePreparationRequest, NodeResizePreparationValidator, NotifyDataChangedExecution, NotifyDataChangedRequest, NotifyTransformChangedExecution, NotifyTransformChangedRequest, OnPointerMoveExecution, OnPointerMoveRequest, PrepareDragSequenceExecution, PrepareDragSequenceRequest, PreventDefaultIsExternalItemExecution, PreventDefaultIsExternalItemRequest, PutInputConnectionHandlersToArrayExecution, PutInputConnectionHandlersToArrayRequest, PutOutputConnectionHandlersToArrayExecution, PutOutputConnectionHandlersToArrayRequest, RESIZE_DIRECTIONS, ReassignConnectionDragHandler, ReassignConnectionFinalizeExecution, ReassignConnectionFinalizeRequest, ReassignConnectionPreparationExecution, ReassignConnectionPreparationRequest, ReassignConnectionPreparationValidator, RedrawCanvasWithAnimationExecution, RedrawCanvasWithAnimationRequest, RedrawConnectionsExecution, RedrawConnectionsRequest, RemoveBackgroundFromStoreExecution, RemoveBackgroundFromStoreRequest, RemoveCanvasFromStoreExecution, RemoveCanvasFromStoreRequest, RemoveConnectionForCreateFromStoreExecution, RemoveConnectionForCreateFromStoreRequest, RemoveConnectionFromStoreExecution, RemoveConnectionFromStoreRequest, RemoveConnectionMarkerFromStoreExecution, RemoveConnectionMarkerFromStoreRequest, RemoveDndFromStoreExecution, RemoveDndFromStoreRequest, RemoveFlowFromStoreExecution, RemoveFlowFromStoreRequest, RemoveInputFromStoreExecution, RemoveInputFromStoreRequest, RemoveLineAlignmentFromStoreExecution, RemoveLineAlignmentFromStoreRequest, RemoveNodeFromStoreExecution, RemoveNodeFromStoreRequest, RemoveOutletFromStoreExecution, RemoveOutletFromStoreRequest, RemoveOutputFromStoreExecution, RemoveOutputFromStoreRequest, RemoveSnapConnectionFromStoreExecution, RemoveSnapConnectionFromStoreRequest, ResetScaleAndCenterExecution, ResetScaleAndCenterRequest, ResetScaleExecution, ResetScaleRequest, SELECTION_AREA_FINALIZE_PROVIDERS, SELECTION_AREA_PREPARATION_PROVIDERS, SINGLE_SELECT_PROVIDERS, SelectAllExecution, SelectAllRequest, SelectAndUpdateNodeLayerExecution, SelectAndUpdateNodeLayerRequest, SelectExecution, SelectRequest, SelectionAreaDragHandle, SelectionAreaFinalizeExecution, SelectionAreaFinalizeRequest, SelectionAreaFinalizeValidator, SelectionAreaPreparationExecution, SelectionAreaPreparationRequest, SelectionAreaPreparationValidator, SetBackgroundTransformExecution, SetBackgroundTransformRequest, SingleSelectExecution, SingleSelectRequest, SingleSelectValidator, SortItemLayersExecution, SortItemLayersRequest, SortItemsByParentExecution, SortItemsByParentRequest, SortNodeLayersExecution, SortNodeLayersRequest, StartDragSequenceExecution, StartDragSequenceRequest, UpdateItemAndChildrenLayersExecution, UpdateItemAndChildrenLayersRequest, UpdateNodeWhenStateOrSizeChangedExecution, UpdateNodeWhenStateOrSizeChangedRequest, UpdateScaleExecution, UpdateScaleRequest, createSVGElement, debounceTime, fixedCenterBehavior, fixedOutboundBehavior, floatingBehavior, getExternalItem, getMarkerEndId, getMarkerSelectedEndId, getMarkerSelectedStartId, getMarkerStartId, isExternalItem, isMobile, isNode, isNodeOutlet, isNodeOutput, mixinChangeSelection, mixinChangeVisibility, notifyOnStart, transitionEnd };
9360
9255
  //# sourceMappingURL=foblex-flow.mjs.map